Created social page
This commit is contained in:
Generated
+29
-3
@@ -292,6 +292,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.20.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.20.tgz",
|
||||||
"integrity": "sha512-Iobw7He3yJVR2aQ6JN9Kq/2ldD8+uHzJZwd41SQ91A+TzPrBRSV0t80WHHrANZ7xnAjtHDc7zSSGp/i7DzUc9g==",
|
"integrity": "sha512-Iobw7He3yJVR2aQ6JN9Kq/2ldD8+uHzJZwd41SQ91A+TzPrBRSV0t80WHHrANZ7xnAjtHDc7zSSGp/i7DzUc9g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "8.18.0",
|
"ajv": "8.18.0",
|
||||||
"ajv-formats": "3.0.1",
|
"ajv-formats": "3.0.1",
|
||||||
@@ -319,6 +320,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.20.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.20.tgz",
|
||||||
"integrity": "sha512-+NNHQhQHcgQWZopStZ6os30YuP99lRzNS4wOnkJmoROy40SZct8lPnl2QW50a9Vc0AtaHx1a1NUZ+ohbf6fXqw==",
|
"integrity": "sha512-+NNHQhQHcgQWZopStZ6os30YuP99lRzNS4wOnkJmoROy40SZct8lPnl2QW50a9Vc0AtaHx1a1NUZ+ohbf6fXqw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular-devkit/core": "20.3.20",
|
"@angular-devkit/core": "20.3.20",
|
||||||
"jsonc-parser": "3.3.1",
|
"jsonc-parser": "3.3.1",
|
||||||
@@ -471,6 +473,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.17.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.17.tgz",
|
||||||
"integrity": "sha512-Dqd8f8o9MehszTZIB7o7jrERlwLOSK64gNngK14DCQazz5lpIhAF6hBjx7zjHpa7L9eAYPK1TaxQUXypjzj18Q==",
|
"integrity": "sha512-Dqd8f8o9MehszTZIB7o7jrERlwLOSK64gNngK14DCQazz5lpIhAF6hBjx7zjHpa7L9eAYPK1TaxQUXypjzj18Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -487,6 +490,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.17.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.17.tgz",
|
||||||
"integrity": "sha512-cj3x6aFk9xOOxX+qEdeN8T5YbnBNWJ4UMHB/LQoDr7/xCJJGa40IhcOAuJeuF2kGqTwx6MCXnvjO8XOQfHhe9g==",
|
"integrity": "sha512-cj3x6aFk9xOOxX+qEdeN8T5YbnBNWJ4UMHB/LQoDr7/xCJJGa40IhcOAuJeuF2kGqTwx6MCXnvjO8XOQfHhe9g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -500,6 +504,7 @@
|
|||||||
"integrity": "sha512-w5pmO1pXO9tUMgUMWstpDmAWh5s1lJWo+2GI/ByaUEgBZkXd2S92sWoDL+bhy+JSvFzdLGdua6BncHBOX7hEjA==",
|
"integrity": "sha512-w5pmO1pXO9tUMgUMWstpDmAWh5s1lJWo+2GI/ByaUEgBZkXd2S92sWoDL+bhy+JSvFzdLGdua6BncHBOX7hEjA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "7.28.3",
|
"@babel/core": "7.28.3",
|
||||||
"@jridgewell/sourcemap-codec": "^1.4.14",
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
||||||
@@ -532,6 +537,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.17.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.17.tgz",
|
||||||
"integrity": "sha512-YlQqxMeHI9XJw7I7oM3hYFQd4lQbK37IdlD9ztROIw5FjX6i6lmLU7+X1MQGSRi2r+X9l3IZtl33hRTNvkoUBw==",
|
"integrity": "sha512-YlQqxMeHI9XJw7I7oM3hYFQd4lQbK37IdlD9ztROIw5FjX6i6lmLU7+X1MQGSRi2r+X9l3IZtl33hRTNvkoUBw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -557,6 +563,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.17.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.17.tgz",
|
||||||
"integrity": "sha512-iGS6NwzcyJzinbPMapsQtcN0ZJ62vr6hcul+FNa40CaK2ePC04S+C5n+DIphzwnwsFHDBIWuTQRfk/lNYdN1JA==",
|
"integrity": "sha512-iGS6NwzcyJzinbPMapsQtcN0ZJ62vr6hcul+FNa40CaK2ePC04S+C5n+DIphzwnwsFHDBIWuTQRfk/lNYdN1JA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -575,6 +582,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.17.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.17.tgz",
|
||||||
"integrity": "sha512-GA8pK+0F2/KGdYn5LMpLBrPTkQUwGjQE8Q+qsivOa150cK3OuD0po5PvYK58l+niGIVvm0wB1xGKTHTOiX/+4A==",
|
"integrity": "sha512-GA8pK+0F2/KGdYn5LMpLBrPTkQUwGjQE8Q+qsivOa150cK3OuD0po5PvYK58l+niGIVvm0wB1xGKTHTOiX/+4A==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -597,6 +605,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.17.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.17.tgz",
|
||||||
"integrity": "sha512-p0r0IOJhUcn8WHx4gkSlfwifkkYO5mSDtq4iM5OunZTlSaeSxLb1vTRg2VBgwdzpgAM+eZSMBTTVF/M3pdoELQ==",
|
"integrity": "sha512-p0r0IOJhUcn8WHx4gkSlfwifkkYO5mSDtq4iM5OunZTlSaeSxLb1vTRg2VBgwdzpgAM+eZSMBTTVF/M3pdoELQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -641,6 +650,7 @@
|
|||||||
"integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==",
|
"integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.2.0",
|
"@ampproject/remapping": "^2.2.0",
|
||||||
"@babel/code-frame": "^7.27.1",
|
"@babel/code-frame": "^7.27.1",
|
||||||
@@ -983,6 +993,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.3.0.tgz",
|
||||||
"integrity": "sha512-S4ajn4G/fS3VJj8salxqH/3LO5PPWv1VxGKQ27OCajnDcLJjEg9VXwgMPnlypgkIOqCJ2fmQLtk8GT+BlI9/rw==",
|
"integrity": "sha512-S4ajn4G/fS3VJj8salxqH/3LO5PPWv1VxGKQ27OCajnDcLJjEg9VXwgMPnlypgkIOqCJ2fmQLtk8GT+BlI9/rw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.1.0"
|
"tslib": "^2.1.0"
|
||||||
}
|
}
|
||||||
@@ -1691,6 +1702,7 @@
|
|||||||
"integrity": "sha512-nqhDw2ZcAUrKNPwhjinJny903bRhI0rQhiDz1LksjeRxqa36i3l75+4iXbOy0rlDpLJGxqtgoPavQjmmyS5UJw==",
|
"integrity": "sha512-nqhDw2ZcAUrKNPwhjinJny903bRhI0rQhiDz1LksjeRxqa36i3l75+4iXbOy0rlDpLJGxqtgoPavQjmmyS5UJw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@inquirer/checkbox": "^4.2.1",
|
"@inquirer/checkbox": "^4.2.1",
|
||||||
"@inquirer/confirm": "^5.1.14",
|
"@inquirer/confirm": "^5.1.14",
|
||||||
@@ -2775,6 +2787,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.16.tgz",
|
||||||
"integrity": "sha512-JSIeW+USuMJkkcNbiOdcPkVCeI3TSnXstIVEPpp3HiaKnPRuSbUUKm9TY9o/XpIcPHWUOQItAtC5BiAwFdVITQ==",
|
"integrity": "sha512-JSIeW+USuMJkkcNbiOdcPkVCeI3TSnXstIVEPpp3HiaKnPRuSbUUKm9TY9o/XpIcPHWUOQItAtC5BiAwFdVITQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"file-type": "21.3.0",
|
"file-type": "21.3.0",
|
||||||
"iterare": "1.2.1",
|
"iterare": "1.2.1",
|
||||||
@@ -4824,6 +4837,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz",
|
||||||
"integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==",
|
"integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.11",
|
"follow-redirects": "^1.15.11",
|
||||||
"form-data": "^4.0.5",
|
"form-data": "^4.0.5",
|
||||||
@@ -4989,6 +5003,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"baseline-browser-mapping": "^2.9.0",
|
"baseline-browser-mapping": "^2.9.0",
|
||||||
"caniuse-lite": "^1.0.30001759",
|
"caniuse-lite": "^1.0.30001759",
|
||||||
@@ -6116,6 +6131,7 @@
|
|||||||
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
|
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"accepts": "^2.0.0",
|
"accepts": "^2.0.0",
|
||||||
"body-parser": "^2.2.1",
|
"body-parser": "^2.2.1",
|
||||||
@@ -6590,6 +6606,7 @@
|
|||||||
"integrity": "sha512-jq9l1DM0zVIvsm3lv9Nw9nlJnMNPOcAtsbsgiUhWcFzPE99Gvo6yRTlszSLLYacMeQ6quHD6hMfId8crVHvexw==",
|
"integrity": "sha512-jq9l1DM0zVIvsm3lv9Nw9nlJnMNPOcAtsbsgiUhWcFzPE99Gvo6yRTlszSLLYacMeQ6quHD6hMfId8crVHvexw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.9.0"
|
||||||
}
|
}
|
||||||
@@ -7341,6 +7358,7 @@
|
|||||||
"integrity": "sha512-SL0JY3DaxylDuo/MecFeiC+7pedM0zia33zl0vcjgwcq1q1FWWF1To9EIauPbl8GbMCU0R2e0uJ8bZunhYKD2g==",
|
"integrity": "sha512-SL0JY3DaxylDuo/MecFeiC+7pedM0zia33zl0vcjgwcq1q1FWWF1To9EIauPbl8GbMCU0R2e0uJ8bZunhYKD2g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cli-truncate": "^4.0.0",
|
"cli-truncate": "^4.0.0",
|
||||||
"colorette": "^2.0.20",
|
"colorette": "^2.0.20",
|
||||||
@@ -8794,7 +8812,8 @@
|
|||||||
"version": "0.2.2",
|
"version": "0.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",
|
||||||
"integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==",
|
"integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==",
|
||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0",
|
||||||
|
"peer": true
|
||||||
},
|
},
|
||||||
"node_modules/require-directory": {
|
"node_modules/require-directory": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
@@ -8963,6 +8982,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
|
||||||
"integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
|
"integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.1.0"
|
"tslib": "^2.1.0"
|
||||||
}
|
}
|
||||||
@@ -9001,6 +9021,7 @@
|
|||||||
"integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
|
"integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chokidar": "^4.0.0",
|
"chokidar": "^4.0.0",
|
||||||
"immutable": "^5.0.2",
|
"immutable": "^5.0.2",
|
||||||
@@ -9608,7 +9629,8 @@
|
|||||||
"version": "2.8.1",
|
"version": "2.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
||||||
"license": "0BSD"
|
"license": "0BSD",
|
||||||
|
"peer": true
|
||||||
},
|
},
|
||||||
"node_modules/tuf-js": {
|
"node_modules/tuf-js": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
@@ -9658,6 +9680,7 @@
|
|||||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
@@ -9815,6 +9838,7 @@
|
|||||||
"integrity": "sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==",
|
"integrity": "sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"fdir": "^6.5.0",
|
"fdir": "^6.5.0",
|
||||||
@@ -10159,6 +10183,7 @@
|
|||||||
"integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==",
|
"integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/colinhacks"
|
"url": "https://github.com/sponsors/colinhacks"
|
||||||
}
|
}
|
||||||
@@ -10177,7 +10202,8 @@
|
|||||||
"version": "0.15.1",
|
"version": "0.15.1",
|
||||||
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.15.1.tgz",
|
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.15.1.tgz",
|
||||||
"integrity": "sha512-XE96n56IQpJM7NAoXswY3XRLcWFW83xe0BiAOeMD7K5k5xecOeul3Qcpx6GqEeeHNkW5DWL5zOyTbEfB4eti8w==",
|
"integrity": "sha512-XE96n56IQpJM7NAoXswY3XRLcWFW83xe0BiAOeMD7K5k5xecOeul3Qcpx6GqEeeHNkW5DWL5zOyTbEfB4eti8w==",
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"peer": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
@if (friendsRequest().length > 0) {
|
||||||
|
<div class="rounded-3xl px-5 m-3 bg-white overflow-auto font-mono border-1 border-gray-300">
|
||||||
|
<ion-list>
|
||||||
|
@for (request of friendsRequest(); track request.userId; let i = $index) {
|
||||||
|
@if (i == friendsRequest().length - 1) {
|
||||||
|
<ion-item lines="none">
|
||||||
|
<ion-avatar slot="start" class="w-5 h-5">
|
||||||
|
<img alt="Silhouette of a person's head"
|
||||||
|
src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
|
||||||
|
</ion-avatar>
|
||||||
|
<ion-label class="text-xs font-mono">{{ request.username }}</ion-label>
|
||||||
|
<ion-button fill="clear" (touchstart)="acceptRequest(request)">
|
||||||
|
<ion-icon slot="icon-only" name="check" class="text-green-600 m-0"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
<app-pipe></app-pipe>
|
||||||
|
<ion-button fill="clear" (touchstart)="rejectRequest(request.userId)">
|
||||||
|
<ion-icon slot="icon-only" name="close" class="text-red-600 m-0"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-item>
|
||||||
|
} @else {
|
||||||
|
<ion-item lines="full">
|
||||||
|
<ion-avatar slot="start" class="w-5 h-5">
|
||||||
|
<img alt="Silhouette of a person's head"
|
||||||
|
src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
|
||||||
|
</ion-avatar>
|
||||||
|
<ion-label class="text-xs font-mono">{{ request.username }}</ion-label>
|
||||||
|
<ion-button fill="clear" (touchstart)="acceptRequest(request)">
|
||||||
|
<ion-icon slot="icon-only" name="check" class="text-green-600 m-0"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
<app-pipe></app-pipe>
|
||||||
|
<ion-button fill="clear" (touchstart)="rejectRequest(request.userId)">
|
||||||
|
<ion-icon slot="icon-only" name="close" class="text-red-600 m-0"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-item>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
} @else {
|
||||||
|
<div class="flex justify-center items-center p-4">
|
||||||
|
<p class="text-center text-sm italic text-gray-500 font-serif">
|
||||||
|
Vous n'avez aucune demande d'ami
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
import {Component, inject, OnInit, signal} from '@angular/core';
|
||||||
|
import {IonicModule, ToastController} from "@ionic/angular";
|
||||||
|
import {checkmarkCircleOutline, closeCircleOutline} from 'ionicons/icons';
|
||||||
|
import {addIcons} from "ionicons";
|
||||||
|
import {PipeComponent} from "../pipe/pipe.component";
|
||||||
|
import {FriendsService, GetFriendDto, GetFriendRequestDto} from "../../services/api";
|
||||||
|
import {firstValueFrom} from "rxjs";
|
||||||
|
import {FriendsStateService} from "../../services/friends-state";
|
||||||
|
|
||||||
|
addIcons({
|
||||||
|
'check': checkmarkCircleOutline,
|
||||||
|
'close': closeCircleOutline
|
||||||
|
});
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-friend-request',
|
||||||
|
templateUrl: './friend-request.component.html',
|
||||||
|
styleUrls: ['./friend-request.component.scss'],
|
||||||
|
imports: [
|
||||||
|
IonicModule,
|
||||||
|
PipeComponent
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class FriendRequestComponent implements OnInit {
|
||||||
|
private friendsService = inject(FriendsService);
|
||||||
|
private toastCtrl = inject(ToastController);
|
||||||
|
private friendsState = inject(FriendsStateService);
|
||||||
|
|
||||||
|
friendsRequest = this.friendsState.requests;
|
||||||
|
|
||||||
|
async ngOnInit() {
|
||||||
|
await this.fetchFriendsRequest();
|
||||||
|
}
|
||||||
|
|
||||||
|
async fetchFriendsRequest() {
|
||||||
|
try {
|
||||||
|
const requests = await firstValueFrom(this.friendsService.getAllFriendRequestsEndpoint());
|
||||||
|
this.friendsState.setRequests(requests);
|
||||||
|
} catch (e) {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Erreur lors du chargement des demandes d\'amis',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'primary'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
console.log(this.friendsState.requests());
|
||||||
|
}
|
||||||
|
|
||||||
|
async acceptRequest(request: GetFriendRequestDto) {
|
||||||
|
try {
|
||||||
|
await firstValueFrom(this.friendsService.acceptFriendRequestEndpoint(request.userId));
|
||||||
|
this.friendsState.acceptRequest(request);
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Demande d\'ami acceptée',
|
||||||
|
duration: 1000,
|
||||||
|
color: 'success'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
} catch (e) {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Echec de l\'acceptation',
|
||||||
|
duration: 1000,
|
||||||
|
color: 'danger'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async rejectRequest(id: number) {
|
||||||
|
try {
|
||||||
|
await firstValueFrom(this.friendsService.rejectFriendRequestEndpoint(id));
|
||||||
|
this.friendsState.removeRequest(id);
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Demande d\'ami refusée',
|
||||||
|
duration: 1000,
|
||||||
|
color: 'success'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
} catch (e) {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Echec du refus',
|
||||||
|
duration: 1000,
|
||||||
|
color: 'danger'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
@if (friends().length > 0) {
|
||||||
|
<div class="rounded-3xl px-5 m-3 bg-white overflow-auto font-mono border-1 border-gray-300">
|
||||||
|
<ion-list>
|
||||||
|
@for (friend of friends(); track friend.friendId; let i = $index) {
|
||||||
|
@if (i == friends().length - 1) {
|
||||||
|
<ion-item lines="none">
|
||||||
|
<ion-avatar slot="start" class="w-5 h-5">
|
||||||
|
<img alt="Silhouette of a person's head"
|
||||||
|
src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
|
||||||
|
</ion-avatar>
|
||||||
|
<ion-label class="text-xs font-mono font-bold">{{ friend.username }}</ion-label>
|
||||||
|
<ion-label class="text-xs font-mono text-gray-400">{{ friend.score }} <em>pts</em></ion-label>
|
||||||
|
<ion-button fill="clear" (touchstart)="deleteFriend(friend.friendId)">
|
||||||
|
<ion-icon slot="icon-only" name="close" class="text-red-600"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-item>
|
||||||
|
} @else {
|
||||||
|
<ion-item lines="full">
|
||||||
|
<ion-avatar slot="start" class="w-5 h-5">
|
||||||
|
<img alt="Silhouette of a person's head"
|
||||||
|
src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
|
||||||
|
</ion-avatar>
|
||||||
|
<ion-label class="text-xs font-mono font-bold">{{ friend.username }}</ion-label>
|
||||||
|
<ion-label class="text-xs font-mono text-gray-400">{{ friend.score }} <em>pts</em></ion-label>
|
||||||
|
<ion-button fill="clear" (touchstart)="deleteFriend(friend.friendId)">
|
||||||
|
<ion-icon slot="icon-only" name="close" class="text-red-600"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-item>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
} @else {
|
||||||
|
<div class="flex justify-center items-center p-4">
|
||||||
|
<p class="text-center text-sm italic text-gray-500 font-serif">
|
||||||
|
C'est plus marrant à plusieurs, ajoute des amis !
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
import {Component, inject, OnInit, signal} from '@angular/core';
|
||||||
|
import {IonicModule, ToastController} from "@ionic/angular";
|
||||||
|
import {closeCircleOutline} from 'ionicons/icons';
|
||||||
|
import {addIcons} from "ionicons";
|
||||||
|
import {FriendsService, GetFriendDto} from "../../services/api";
|
||||||
|
import {firstValueFrom} from "rxjs";
|
||||||
|
import {FriendsStateService} from "../../services/friends-state";
|
||||||
|
|
||||||
|
addIcons({
|
||||||
|
'close': closeCircleOutline,
|
||||||
|
});
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-friends-list',
|
||||||
|
templateUrl: './friends-list.component.html',
|
||||||
|
styleUrls: ['./friends-list.component.scss'],
|
||||||
|
imports: [
|
||||||
|
IonicModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class FriendsListComponent implements OnInit {
|
||||||
|
private friendsService = inject(FriendsService);
|
||||||
|
private toastCtrl = inject(ToastController);
|
||||||
|
private friendsState = inject(FriendsStateService);
|
||||||
|
|
||||||
|
friends = this.friendsState.friends;
|
||||||
|
|
||||||
|
async ngOnInit() {
|
||||||
|
await this.fetchFriends();
|
||||||
|
}
|
||||||
|
|
||||||
|
async fetchFriends() {
|
||||||
|
try {
|
||||||
|
const friends = await firstValueFrom(this.friendsService.getAllFriendsEndpoint());
|
||||||
|
this.friendsState.setFriends(friends);
|
||||||
|
} catch (e) {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Amis introuvables',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'primary'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async deleteFriend(friendId: number) {
|
||||||
|
try {
|
||||||
|
await firstValueFrom(this.friendsService.deleteFriendEndpoint(friendId));
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Vous avez supprimé cet ami',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'success'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
} catch (e) {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Vous ne pouvez pas supprimer cet ami',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'danger'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
this.friendsState.removeFriend(friendId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//TODO : QUAND ON CLIQUE SUR UN JOUEUR ON PEUT VOIR SA PAGE (VAUT AUSSI POUR CLASSEMENT
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<p class="text-gray-300 text-[12px]">|</p>
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-pipe',
|
||||||
|
templateUrl: './pipe.component.html',
|
||||||
|
styleUrls: ['./pipe.component.scss'],
|
||||||
|
})
|
||||||
|
export class PipeComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p class="font-sans font-semibold ml-4 mt-0 mb-0 text-[14px] text-gray-500">
|
||||||
|
• <em> {{ textInfo() }} </em>
|
||||||
|
</p>
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import {Component, input} from '@angular/core';
|
||||||
|
import {IonicModule} from "@ionic/angular";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-title-part',
|
||||||
|
templateUrl: './title-part.component.html',
|
||||||
|
styleUrls: ['./title-part.component.scss'],
|
||||||
|
imports: [
|
||||||
|
IonicModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class TitlePartComponent {
|
||||||
|
textInfo = input.required<string>();
|
||||||
|
}
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
<ion-header class="bg-white">
|
<ion-header>
|
||||||
<p class="text-center font-bold font-sans">Classement général</p>
|
<ion-toolbar>
|
||||||
|
<ion-title class="font-mono">
|
||||||
|
Classement général
|
||||||
|
</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content style="--background: #f7f6f2;">
|
<ion-content style="--background: #f7f6f2;">
|
||||||
<div class="rounded-3xl px-5 m-3 bg-white overflow-auto font-mono">
|
<div class="rounded-3xl px-5 m-3 bg-white overflow-auto font-mono">
|
||||||
@for (user of users(); track user.id; let i = $index) {
|
@for (user of users(); track user.id; let i = $index) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export class RankingComponent implements OnInit {
|
|||||||
const loading = await this.loadCtrl.create({
|
const loading = await this.loadCtrl.create({
|
||||||
message: 'Chargement...',
|
message: 'Chargement...',
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
spinner: 'circles'
|
spinner: 'lines-sharp-small'
|
||||||
});
|
});
|
||||||
await loading.present();
|
await loading.present();
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<ion-header>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-title class="font-mono">
|
||||||
|
Mes amis
|
||||||
|
</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
<ion-content style="--background: #f7f6f2;">
|
||||||
|
<ion-searchbar placeholder="Rechercher par pseudo..." class="mt-2"></ion-searchbar>
|
||||||
|
|
||||||
|
<app-title-part textInfo="Demandes reçues"></app-title-part>
|
||||||
|
<app-friend-request></app-friend-request>
|
||||||
|
|
||||||
|
<app-title-part textInfo="Amis"></app-title-part>
|
||||||
|
<app-friends-list></app-friends-list>
|
||||||
|
</ion-content>
|
||||||
@@ -1,10 +1,19 @@
|
|||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
import {TitlePartComponent} from "../../components/title-part/title-part.component";
|
||||||
|
import {IonicModule} from "@ionic/angular";
|
||||||
|
import {FriendRequestComponent} from "../../components/friend-request/friend-request.component";
|
||||||
|
import {FriendsListComponent} from "../../components/friends/friends-list.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-social',
|
selector: 'app-social',
|
||||||
templateUrl: './social.component.html',
|
templateUrl: './social.component.html',
|
||||||
styleUrls: ['./social.component.scss'],
|
styleUrls: ['./social.component.scss'],
|
||||||
imports: []
|
imports: [
|
||||||
|
TitlePartComponent,
|
||||||
|
IonicModule,
|
||||||
|
FriendRequestComponent,
|
||||||
|
FriendsListComponent
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class SocialComponent {
|
export class SocialComponent {
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,10 @@ configuration.ts
|
|||||||
encoder.ts
|
encoder.ts
|
||||||
git_push.sh
|
git_push.sh
|
||||||
index.ts
|
index.ts
|
||||||
model/accept-friend-request.ts
|
|
||||||
model/create-group-dto.ts
|
model/create-group-dto.ts
|
||||||
model/create-message-dto.ts
|
model/create-message-dto.ts
|
||||||
model/create-user-dto.ts
|
model/create-user-dto.ts
|
||||||
model/create-user-group-dto.ts
|
model/create-user-group-dto.ts
|
||||||
model/delete-friend-request.ts
|
|
||||||
model/error-response.ts
|
model/error-response.ts
|
||||||
model/get-achievement-dto.ts
|
model/get-achievement-dto.ts
|
||||||
model/get-designation-dto.ts
|
model/get-designation-dto.ts
|
||||||
@@ -47,7 +45,6 @@ model/patch-user-designation-dto.ts
|
|||||||
model/patch-user-password-dto.ts
|
model/patch-user-password-dto.ts
|
||||||
model/random-challenge-proof-request.ts
|
model/random-challenge-proof-request.ts
|
||||||
model/refresh-token-dto.ts
|
model/refresh-token-dto.ts
|
||||||
model/reject-friend-request.ts
|
|
||||||
model/update-user-dto.ts
|
model/update-user-dto.ts
|
||||||
model/user-proof-request.ts
|
model/user-proof-request.ts
|
||||||
model/user-vote-request.ts
|
model/user-vote-request.ts
|
||||||
|
|||||||
@@ -73,9 +73,7 @@ export const appConfig: ApplicationConfig = {
|
|||||||
```
|
```
|
||||||
|
|
||||||
**NOTE**
|
**NOTE**
|
||||||
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you
|
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
|
||||||
can still import an Angular module:
|
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { ApiModule } from '';
|
import { ApiModule } from '';
|
||||||
```
|
```
|
||||||
@@ -183,7 +181,5 @@ new Configuration({
|
|||||||
```
|
```
|
||||||
|
|
||||||
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
||||||
|
|
||||||
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
||||||
|
|
||||||
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -28,6 +27,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -43,26 +43,10 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
||||||
context?: HttpContext,
|
public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
||||||
transferCache?: boolean
|
public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetAchievementDto>>;
|
|
||||||
public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
|
||||||
public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
|
||||||
public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -113,26 +97,10 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
||||||
context?: HttpContext,
|
public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
||||||
transferCache?: boolean
|
public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetAchievementDto>>;
|
|
||||||
public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
|
||||||
public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
|
||||||
public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -183,26 +151,10 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
||||||
context?: HttpContext,
|
public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
||||||
transferCache?: boolean
|
public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetAchievementDto>>;
|
|
||||||
public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
|
||||||
public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
|
||||||
public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -254,26 +206,10 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (achievementId === null || achievementId === undefined) {
|
if (achievementId === null || achievementId === undefined) {
|
||||||
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
|
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -306,15 +242,7 @@ export class AchievementsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Achievements/${this.configuration.encodeParam({
|
let localVarPath = `/API/Achievements/${this.configuration.encodeParam({name: "achievementId", value: achievementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
|
||||||
name: "achievementId",
|
|
||||||
value: achievementId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,28 +1,19 @@
|
|||||||
export * from './achievements.service';
|
export * from './achievements.service';
|
||||||
import { AchievementsService } from './achievements.service';
|
import { AchievementsService } from './achievements.service';
|
||||||
|
|
||||||
export * from './auth.service';
|
export * from './auth.service';
|
||||||
import { AuthService } from './auth.service';
|
import { AuthService } from './auth.service';
|
||||||
|
|
||||||
export * from './designations.service';
|
export * from './designations.service';
|
||||||
import { DesignationsService } from './designations.service';
|
import { DesignationsService } from './designations.service';
|
||||||
|
|
||||||
export * from './friends.service';
|
export * from './friends.service';
|
||||||
import { FriendsService } from './friends.service';
|
import { FriendsService } from './friends.service';
|
||||||
|
|
||||||
export * from './groups.service';
|
export * from './groups.service';
|
||||||
import { GroupsService } from './groups.service';
|
import { GroupsService } from './groups.service';
|
||||||
|
|
||||||
export * from './messages.service';
|
export * from './messages.service';
|
||||||
import { MessagesService } from './messages.service';
|
import { MessagesService } from './messages.service';
|
||||||
|
|
||||||
export * from './overallranking.service';
|
export * from './overallranking.service';
|
||||||
import { OverallrankingService } from './overallranking.service';
|
import { OverallrankingService } from './overallranking.service';
|
||||||
|
|
||||||
export * from './randomchallenges.service';
|
export * from './randomchallenges.service';
|
||||||
import { RandomchallengesService } from './randomchallenges.service';
|
import { RandomchallengesService } from './randomchallenges.service';
|
||||||
|
|
||||||
export * from './users.service';
|
export * from './users.service';
|
||||||
import { UsersService } from './users.service';
|
import { UsersService } from './users.service';
|
||||||
|
|
||||||
export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, RandomchallengesService, UsersService];
|
export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, RandomchallengesService, UsersService];
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -32,6 +31,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -48,26 +48,10 @@ export class AuthService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
|
||||||
context?: HttpContext,
|
public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
|
||||||
transferCache?: boolean
|
public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetTokenDto>;
|
|
||||||
public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetTokenDto>>;
|
|
||||||
public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetTokenDto>>;
|
|
||||||
public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (loginDto === null || loginDto === undefined) {
|
if (loginDto === null || loginDto === undefined) {
|
||||||
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
|
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -130,26 +114,10 @@ export class AuthService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
|
||||||
context?: HttpContext,
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
|
||||||
transferCache?: boolean
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetTokenDto>;
|
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetTokenDto>>;
|
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetTokenDto>>;
|
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (refreshTokenDto === null || refreshTokenDto === undefined) {
|
if (refreshTokenDto === null || refreshTokenDto === undefined) {
|
||||||
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
|
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -26,6 +25,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -41,26 +41,10 @@ export class DesignationsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDesignationDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDesignationDto>>>;
|
||||||
context?: HttpContext,
|
public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDesignationDto>>>;
|
||||||
transferCache?: boolean
|
public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetDesignationDto>>;
|
|
||||||
public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetDesignationDto>>>;
|
|
||||||
public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetDesignationDto>>>;
|
|
||||||
public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
|||||||
@@ -10,23 +10,16 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import {AcceptFriendRequest} from '../model/accept-friend-request';
|
|
||||||
// @ts-ignore
|
|
||||||
import {DeleteFriendRequest} from '../model/delete-friend-request';
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetFriendDto } from '../model/get-friend-dto';
|
import { GetFriendDto } from '../model/get-friend-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetFriendRequestDto } from '../model/get-friend-request-dto';
|
import { GetFriendRequestDto } from '../model/get-friend-request-dto';
|
||||||
// @ts-ignore
|
|
||||||
import {RejectFriendRequest} from '../model/reject-friend-request';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
@@ -34,6 +27,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -44,46 +38,27 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/Friends/{@FriendId}/Request
|
* @endpoint put /API/Friends/{friendId}/Request
|
||||||
* @param friendId
|
* @param friendId
|
||||||
* @param acceptFriendRequest
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
|
||||||
}
|
}
|
||||||
if (acceptFriendRequest === null || acceptFriendRequest === undefined) {
|
|
||||||
throw new Error('Required parameter acceptFriendRequest was null or undefined when calling acceptFriendRequestEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -93,15 +68,6 @@ export class FriendsService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
@@ -113,20 +79,11 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
|
||||||
name: "friendId",
|
|
||||||
value: friendId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "string",
|
|
||||||
dataFormat: undefined
|
|
||||||
})}/Request`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: acceptFriendRequest,
|
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
@@ -138,34 +95,18 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Friends
|
* @endpoint delete /API/Friends/{friendId}
|
||||||
* @param deleteFriendRequest
|
* @param friendId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
if (friendId === null || friendId === undefined) {
|
||||||
public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.');
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (deleteFriendRequest === null || deleteFriendRequest === undefined) {
|
|
||||||
throw new Error('Required parameter deleteFriendRequest was null or undefined when calling deleteFriendEndpoint.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
@@ -173,7 +114,8 @@ export class FriendsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -183,15 +125,6 @@ export class FriendsService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
@@ -203,12 +136,11 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends`;
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: deleteFriendRequest,
|
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
@@ -225,26 +157,10 @@ export class FriendsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetFriendRequestDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetFriendRequestDto>>>;
|
||||||
context?: HttpContext,
|
public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetFriendRequestDto>>>;
|
||||||
transferCache?: boolean
|
public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetFriendRequestDto>>;
|
|
||||||
public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetFriendRequestDto>>>;
|
|
||||||
public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetFriendRequestDto>>>;
|
|
||||||
public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -295,26 +211,10 @@ export class FriendsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetFriendDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetFriendDto>>>;
|
||||||
context?: HttpContext,
|
public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetFriendDto>>>;
|
||||||
transferCache?: boolean
|
public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetFriendDto>>;
|
|
||||||
public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetFriendDto>>>;
|
|
||||||
public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetFriendDto>>>;
|
|
||||||
public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -360,46 +260,27 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Friends/{@FriendId}/Request
|
* @endpoint delete /API/Friends/{friendId}/Request
|
||||||
* @param friendId
|
* @param friendId
|
||||||
* @param rejectFriendRequest
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
|
||||||
}
|
}
|
||||||
if (rejectFriendRequest === null || rejectFriendRequest === undefined) {
|
|
||||||
throw new Error('Required parameter rejectFriendRequest was null or undefined when calling rejectFriendRequestEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -409,15 +290,6 @@ export class FriendsService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
@@ -429,20 +301,11 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
|
||||||
name: "friendId",
|
|
||||||
value: friendId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "string",
|
|
||||||
dataFormat: undefined
|
|
||||||
})}/Request`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: rejectFriendRequest,
|
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
@@ -460,26 +323,10 @@ export class FriendsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -489,7 +336,8 @@ export class FriendsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -510,15 +358,7 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "friendId",
|
|
||||||
value: friendId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -42,6 +41,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -59,26 +59,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -91,7 +75,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -112,23 +97,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users/${this.configuration.encodeParam({
|
|
||||||
name: "userId",
|
|
||||||
value: userId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -150,26 +119,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createGroupDto === null || createGroupDto === undefined) {
|
if (createGroupDto === null || createGroupDto === undefined) {
|
||||||
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.');
|
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -234,26 +187,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -263,7 +200,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -284,15 +222,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -315,26 +245,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -347,7 +261,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -368,23 +283,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users/${this.configuration.encodeParam({
|
|
||||||
name: "userId",
|
|
||||||
value: userId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -406,26 +305,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserGroupDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserGroupDto>>>;
|
||||||
context?: HttpContext,
|
public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserGroupDto>>>;
|
||||||
transferCache?: boolean
|
public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetUserGroupDto>>;
|
|
||||||
public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetUserGroupDto>>>;
|
|
||||||
public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetUserGroupDto>>>;
|
|
||||||
public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getAllGroupUsersEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getAllGroupUsersEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -458,15 +341,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserGroupDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserGroupDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -487,26 +362,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetGroupDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetGroupDto>>>;
|
||||||
context?: HttpContext,
|
public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetGroupDto>>>;
|
||||||
transferCache?: boolean
|
public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetGroupDto>>;
|
|
||||||
public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetGroupDto>>>;
|
|
||||||
public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetGroupDto>>>;
|
|
||||||
public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -558,26 +417,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetProofDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetProofDto>>>;
|
||||||
context?: HttpContext,
|
public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetProofDto>>>;
|
||||||
transferCache?: boolean
|
public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetProofDto>>;
|
|
||||||
public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetProofDto>>>;
|
|
||||||
public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetProofDto>>>;
|
|
||||||
public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getAllProofsEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getAllProofsEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -610,15 +453,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proofs`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Proofs`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetProofDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetProofDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -640,26 +475,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetGroupDetailsDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetGroupDetailsDto>>;
|
||||||
context?: HttpContext,
|
public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetGroupDetailsDto>>;
|
||||||
transferCache?: boolean
|
public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetGroupDetailsDto>;
|
|
||||||
public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetGroupDetailsDto>>;
|
|
||||||
public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetGroupDetailsDto>>;
|
|
||||||
public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getGroupDetailsEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getGroupDetailsEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -692,15 +511,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetGroupDetailsDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetGroupDetailsDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -722,26 +533,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetGroupRankingDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetGroupRankingDto>>>;
|
||||||
context?: HttpContext,
|
public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetGroupRankingDto>>>;
|
||||||
transferCache?: boolean
|
public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetGroupRankingDto>>;
|
|
||||||
public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetGroupRankingDto>>>;
|
|
||||||
public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetGroupRankingDto>>>;
|
|
||||||
public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getGroupRankingEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getGroupRankingEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -774,15 +569,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/GroupRank`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/GroupRank`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetGroupRankingDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetGroupRankingDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -804,26 +591,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling patchGroupStatusEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling patchGroupStatusEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -833,7 +604,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -854,15 +626,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Status`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Status`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -885,26 +649,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserProofEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserProofEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -917,7 +665,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -947,15 +696,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Proof`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users/Proof`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -979,26 +720,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -1011,7 +736,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -1032,23 +758,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Role`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users/${this.configuration.encodeParam({
|
|
||||||
name: "userId",
|
|
||||||
value: userId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Role`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -1071,26 +781,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling patchVoteEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling patchVoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -1103,7 +797,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -1133,15 +828,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Vote`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Users/Vote`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -1164,26 +851,10 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public startVoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public startVoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public startVoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public startVoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public startVoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public startVoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public startVoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public startVoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling startVoteEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling startVoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -1193,7 +864,8 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -1214,15 +886,7 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Vote`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Vote`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -30,6 +29,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -47,26 +47,10 @@ export class MessagesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteMessageEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteMessageEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -79,7 +63,8 @@ export class MessagesService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -100,23 +85,7 @@ export class MessagesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Messages/${this.configuration.encodeParam({
|
let localVarPath = `/API/Messages/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Groups/${this.configuration.encodeParam({
|
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -138,26 +107,10 @@ export class MessagesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetMessageDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetMessageDto>>>;
|
||||||
context?: HttpContext,
|
public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetMessageDto>>>;
|
||||||
transferCache?: boolean
|
public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetMessageDto>>;
|
|
||||||
public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetMessageDto>>>;
|
|
||||||
public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetMessageDto>>>;
|
|
||||||
public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -190,15 +143,7 @@ export class MessagesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -221,26 +166,10 @@ export class MessagesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -285,15 +214,7 @@ export class MessagesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({
|
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "groupId",
|
|
||||||
value: groupId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -26,6 +25,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -41,26 +41,10 @@ export class OverallrankingService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
|
||||||
context?: HttpContext,
|
public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
|
||||||
transferCache?: boolean
|
public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetUserDto>>;
|
|
||||||
public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetUserDto>>>;
|
|
||||||
public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetUserDto>>>;
|
|
||||||
public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -28,6 +27,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -43,33 +43,18 @@ export class RandomchallengesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -112,26 +97,10 @@ export class RandomchallengesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetRandomChallengeDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetRandomChallengeDto>>;
|
||||||
context?: HttpContext,
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetRandomChallengeDto>>;
|
||||||
transferCache?: boolean
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetRandomChallengeDto>;
|
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetRandomChallengeDto>>;
|
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetRandomChallengeDto>>;
|
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (randomChallengeId === null || randomChallengeId === undefined) {
|
if (randomChallengeId === null || randomChallengeId === undefined) {
|
||||||
throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.');
|
throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -164,15 +133,7 @@ export class RandomchallengesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({
|
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "randomChallengeId",
|
|
||||||
value: randomChallengeId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetRandomChallengeDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetRandomChallengeDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -195,26 +156,10 @@ export class RandomchallengesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (randomChallengeId === null || randomChallengeId === undefined) {
|
if (randomChallengeId === null || randomChallengeId === undefined) {
|
||||||
throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.');
|
throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -227,7 +172,8 @@ export class RandomchallengesService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -257,15 +203,7 @@ export class RandomchallengesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({
|
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proof`;
|
||||||
name: "randomChallengeId",
|
|
||||||
value: randomChallengeId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Proof`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import {
|
import { HttpClient, HttpHeaders, HttpParams,
|
||||||
HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpResponse, HttpEvent, HttpContext
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -42,6 +41,7 @@ import {Configuration} from '../configuration';
|
|||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -58,26 +58,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createUserDto === null || createUserDto === undefined) {
|
if (createUserDto === null || createUserDto === undefined) {
|
||||||
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -138,33 +122,18 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||||
|
]);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -206,26 +175,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserChallengeDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserChallengeDto>>>;
|
||||||
context?: HttpContext,
|
public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserChallengeDto>>>;
|
||||||
transferCache?: boolean
|
public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetUserChallengeDto>>;
|
|
||||||
public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetUserChallengeDto>>>;
|
|
||||||
public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetUserChallengeDto>>>;
|
|
||||||
public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -276,26 +229,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserProofDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserProofDto>>>;
|
||||||
context?: HttpContext,
|
public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserProofDto>>>;
|
||||||
transferCache?: boolean
|
public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetUserProofDto>>;
|
|
||||||
public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetUserProofDto>>>;
|
|
||||||
public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetUserProofDto>>>;
|
|
||||||
public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -346,26 +283,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
|
||||||
context?: HttpContext,
|
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
|
||||||
transferCache?: boolean
|
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetUserDto>>;
|
|
||||||
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetUserDto>>>;
|
|
||||||
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetUserDto>>>;
|
|
||||||
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -416,26 +337,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDetailsDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDetailsDto>>;
|
||||||
context?: HttpContext,
|
public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDetailsDto>>;
|
||||||
transferCache?: boolean
|
public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetUserDetailsDto>;
|
|
||||||
public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetUserDetailsDto>>;
|
|
||||||
public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetUserDetailsDto>>;
|
|
||||||
public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -487,26 +392,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
||||||
context?: HttpContext,
|
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
||||||
transferCache?: boolean
|
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetUserDto>;
|
|
||||||
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetUserDto>>;
|
|
||||||
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetUserDto>>;
|
|
||||||
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -539,15 +428,7 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/${this.configuration.encodeParam({
|
let localVarPath = `/API/Users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
@@ -569,26 +450,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) {
|
if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) {
|
||||||
throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.');
|
throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -653,26 +518,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) {
|
if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) {
|
||||||
throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.');
|
throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -737,26 +586,10 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/problem+json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (updateUserDto === null || updateUserDto === undefined) {
|
if (updateUserDto === null || updateUserDto === undefined) {
|
||||||
throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.');
|
throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,17 +67,7 @@ export class Configuration {
|
|||||||
*/
|
*/
|
||||||
credentials: {[ key: string ]: string | (() => string | undefined)};
|
credentials: {[ key: string ]: string | (() => string | undefined)};
|
||||||
|
|
||||||
constructor({
|
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) {
|
||||||
accessToken,
|
|
||||||
apiKeys,
|
|
||||||
basePath,
|
|
||||||
credentials,
|
|
||||||
encodeParam,
|
|
||||||
encoder,
|
|
||||||
password,
|
|
||||||
username,
|
|
||||||
withCredentials
|
|
||||||
}: ConfigurationParameters = {}) {
|
|
||||||
if (apiKeys) {
|
if (apiKeys) {
|
||||||
this.apiKeys = apiKeys;
|
this.apiKeys = apiKeys;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,15 +8,12 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
|
|||||||
encodeKey(k: string): string {
|
encodeKey(k: string): string {
|
||||||
return encodeURIComponent(k);
|
return encodeURIComponent(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
encodeValue(v: string): string {
|
encodeValue(v: string): string {
|
||||||
return encodeURIComponent(v);
|
return encodeURIComponent(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeKey(k: string): string {
|
decodeKey(k: string): string {
|
||||||
return decodeURIComponent(k);
|
return decodeURIComponent(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeValue(v: string): string {
|
decodeValue(v: string): string {
|
||||||
return decodeURIComponent(v);
|
return decodeURIComponent(v);
|
||||||
}
|
}
|
||||||
@@ -26,15 +23,12 @@ export class IdentityHttpParameterCodec implements HttpParameterCodec {
|
|||||||
encodeKey(k: string): string {
|
encodeKey(k: string): string {
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
encodeValue(v: string): string {
|
encodeValue(v: string): string {
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeKey(k: string): string {
|
decodeKey(k: string): string {
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeValue(v: string): string {
|
decodeValue(v: string): string {
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
/**
|
|
||||||
* BeReadyBackend
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
export interface AcceptFriendRequest {
|
|
||||||
friendId?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
/**
|
|
||||||
* BeReadyBackend
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
export interface DeleteFriendRequest {
|
|
||||||
friendId?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
export interface GetFriendDto {
|
export interface GetFriendDto {
|
||||||
|
friendId?: number;
|
||||||
username?: string | null;
|
username?: string | null;
|
||||||
score?: number;
|
score?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
export interface GetFriendRequestDto {
|
export interface GetFriendRequestDto {
|
||||||
|
userId?: number;
|
||||||
username?: string | null;
|
username?: string | null;
|
||||||
score?: number;
|
score?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
export * from './accept-friend-request';
|
|
||||||
export * from './create-group-dto';
|
export * from './create-group-dto';
|
||||||
export * from './create-message-dto';
|
export * from './create-message-dto';
|
||||||
export * from './create-user-dto';
|
export * from './create-user-dto';
|
||||||
export * from './create-user-group-dto';
|
export * from './create-user-group-dto';
|
||||||
export * from './delete-friend-request';
|
|
||||||
export * from './error-response';
|
export * from './error-response';
|
||||||
export * from './get-achievement-dto';
|
export * from './get-achievement-dto';
|
||||||
export * from './get-designation-dto';
|
export * from './get-designation-dto';
|
||||||
@@ -27,7 +25,6 @@ export * from './patch-user-designation-dto';
|
|||||||
export * from './patch-user-password-dto';
|
export * from './patch-user-password-dto';
|
||||||
export * from './random-challenge-proof-request';
|
export * from './random-challenge-proof-request';
|
||||||
export * from './refresh-token-dto';
|
export * from './refresh-token-dto';
|
||||||
export * from './reject-friend-request';
|
|
||||||
export * from './update-user-dto';
|
export * from './update-user-dto';
|
||||||
export * from './user-proof-request';
|
export * from './user-proof-request';
|
||||||
export * from './user-vote-request';
|
export * from './user-vote-request';
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
/**
|
|
||||||
* BeReadyBackend
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
export interface RejectFriendRequest {
|
|
||||||
friendId?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
import {Injectable, signal} from '@angular/core';
|
||||||
|
import {GetFriendDto, GetFriendRequestDto} from "./api";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
|
||||||
|
export class FriendsStateService {
|
||||||
|
friends = signal<GetFriendDto[]>([]);
|
||||||
|
requests = signal<GetFriendRequestDto[]>([]);
|
||||||
|
|
||||||
|
setFriends(friends: GetFriendDto[]) {
|
||||||
|
this.friends.set(friends);
|
||||||
|
}
|
||||||
|
|
||||||
|
setRequests(requests: GetFriendRequestDto[]) {
|
||||||
|
this.requests.set(requests);
|
||||||
|
}
|
||||||
|
|
||||||
|
acceptRequest(request: GetFriendRequestDto) {
|
||||||
|
this.requests.set(this.requests().filter(x => x.userId != request.userId));
|
||||||
|
|
||||||
|
this.friends.set([
|
||||||
|
...this.friends(),
|
||||||
|
{
|
||||||
|
friendId: request.userId,
|
||||||
|
username: request.username
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
removeFriend(friendId: number) {
|
||||||
|
this.friends.set(this.friends().filter(x => x.friendId !== friendId));
|
||||||
|
}
|
||||||
|
|
||||||
|
removeRequest(friendId: number) {
|
||||||
|
this.requests.set(this.requests().filter(x => x.userId !== friendId));
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>BeReady</title>
|
<title>BeReady</title>
|
||||||
|
|||||||
Reference in New Issue
Block a user