OpenAPI with updated backend
This commit is contained in:
Generated
+105
-31
@@ -20,6 +20,7 @@
|
|||||||
"browser-image-compression": "^2.0.2",
|
"browser-image-compression": "^2.0.2",
|
||||||
"ng-zorro-antd": "^20.4.0",
|
"ng-zorro-antd": "^20.4.0",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
|
"rimraf": "^6.1.3",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
"tailwindcss": "^4.1.17",
|
"tailwindcss": "^4.1.17",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
@@ -502,7 +503,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.11.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.11.tgz",
|
||||||
"integrity": "sha512-zQ8xlyUBS+UDAUKk7z/hhWdTtQU2oc/Dwo7jXpyrYlz9y2X1A6sAZpUigdYpbrBkIaNs3MplJevgMiCm3kmN8g==",
|
"integrity": "sha512-zQ8xlyUBS+UDAUKk7z/hhWdTtQU2oc/Dwo7jXpyrYlz9y2X1A6sAZpUigdYpbrBkIaNs3MplJevgMiCm3kmN8g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -519,7 +519,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.11.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.11.tgz",
|
||||||
"integrity": "sha512-3O0iMPttD8a4QQQrjVfIjboiZZ17ErkZuqK8BXJBTn2rplpkq1m3kVhgsmzN2OANRR05GF9Ed1dTf8ycTrO1yg==",
|
"integrity": "sha512-3O0iMPttD8a4QQQrjVfIjboiZZ17ErkZuqK8BXJBTn2rplpkq1m3kVhgsmzN2OANRR05GF9Ed1dTf8ycTrO1yg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -533,7 +532,6 @@
|
|||||||
"integrity": "sha512-u6T8kxj7LzK3btEln6Vd8y7p+O1eNXrLiGwqPuRF/QoyjBrRkTYufZ1I4TvzUxdd0ot6mPDRfdmiD15q//Y+oQ==",
|
"integrity": "sha512-u6T8kxj7LzK3btEln6Vd8y7p+O1eNXrLiGwqPuRF/QoyjBrRkTYufZ1I4TvzUxdd0ot6mPDRfdmiD15q//Y+oQ==",
|
||||||
"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",
|
||||||
@@ -566,7 +564,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.11.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.11.tgz",
|
||||||
"integrity": "sha512-tOXlxG0SI9Yy1b/ntGyBahfffDpFg7vAbAt+9riOb5ZZ8GYyyOzg78Lqa/lrdBVEG0PXdDjEa0MV93qCyqwYlg==",
|
"integrity": "sha512-tOXlxG0SI9Yy1b/ntGyBahfffDpFg7vAbAt+9riOb5ZZ8GYyyOzg78Lqa/lrdBVEG0PXdDjEa0MV93qCyqwYlg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -592,7 +589,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.11.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.11.tgz",
|
||||||
"integrity": "sha512-jXDvW6a9HUzmLmvgPE+hVoZzc6QJBtQ1kYNn/FZDhbtmjRThJtaMW9YfS0Vz/a9KT9cxBf+8O8Q+yspvgsh3fg==",
|
"integrity": "sha512-jXDvW6a9HUzmLmvgPE+hVoZzc6QJBtQ1kYNn/FZDhbtmjRThJtaMW9YfS0Vz/a9KT9cxBf+8O8Q+yspvgsh3fg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -611,7 +607,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.11.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.11.tgz",
|
||||||
"integrity": "sha512-hh+8O8m4QzYYlQr9WGew472P37GF1u64NF3HfHmUKJ0xSqqTOHfpni3utev8upJAFJXBKOUZETgeHu2JRcGavg==",
|
"integrity": "sha512-hh+8O8m4QzYYlQr9WGew472P37GF1u64NF3HfHmUKJ0xSqqTOHfpni3utev8upJAFJXBKOUZETgeHu2JRcGavg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -634,7 +629,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.11.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.11.tgz",
|
||||||
"integrity": "sha512-kuv7Yso7GY3tfRtQN0kW4v2Or4NUEBdjxTz5C8YuAhGDpiKXxDNkXzFliYTVWpJkr3EkTuR9mt9IAc+wxof3Pw==",
|
"integrity": "sha512-kuv7Yso7GY3tfRtQN0kW4v2Or4NUEBdjxTz5C8YuAhGDpiKXxDNkXzFliYTVWpJkr3EkTuR9mt9IAc+wxof3Pw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -716,7 +710,6 @@
|
|||||||
"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",
|
||||||
@@ -1658,7 +1651,6 @@
|
|||||||
"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",
|
||||||
@@ -2518,7 +2510,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.9.tgz",
|
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.9.tgz",
|
||||||
"integrity": "sha512-zDntUTReRbAThIfSp3dQZ9kKqI+LjgLp5YZN5c1bgNRDuoeLySAoZg46Bg1a+uV8TMgIRziHocglKGNzr6l+bQ==",
|
"integrity": "sha512-zDntUTReRbAThIfSp3dQZ9kKqI+LjgLp5YZN5c1bgNRDuoeLySAoZg46Bg1a+uV8TMgIRziHocglKGNzr6l+bQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"file-type": "21.1.0",
|
"file-type": "21.1.0",
|
||||||
"iterare": "1.2.1",
|
"iterare": "1.2.1",
|
||||||
@@ -4282,7 +4273,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz",
|
||||||
"integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==",
|
"integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.6",
|
"follow-redirects": "^1.15.6",
|
||||||
"form-data": "^4.0.4",
|
"form-data": "^4.0.4",
|
||||||
@@ -4462,7 +4452,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"baseline-browser-mapping": "^2.8.25",
|
"baseline-browser-mapping": "^2.8.25",
|
||||||
"caniuse-lite": "^1.0.30001754",
|
"caniuse-lite": "^1.0.30001754",
|
||||||
@@ -5661,7 +5650,6 @@
|
|||||||
"integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
|
"integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"accepts": "^2.0.0",
|
"accepts": "^2.0.0",
|
||||||
"body-parser": "^2.2.0",
|
"body-parser": "^2.2.0",
|
||||||
@@ -6917,7 +6905,6 @@
|
|||||||
"integrity": "sha512-j1n1IuTX1VQjIy3tT7cyGbX7nvQOsFLoIqobZv4ttI5axP923gA44zUj6miiA6R5Aoms4sEGVIIcucXUbRI14g==",
|
"integrity": "sha512-j1n1IuTX1VQjIy3tT7cyGbX7nvQOsFLoIqobZv4ttI5axP923gA44zUj6miiA6R5Aoms4sEGVIIcucXUbRI14g==",
|
||||||
"devOptional": true,
|
"devOptional": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"copy-anything": "^2.0.1",
|
"copy-anything": "^2.0.1",
|
||||||
"parse-node-version": "^1.0.1",
|
"parse-node-version": "^1.0.1",
|
||||||
@@ -7205,7 +7192,6 @@
|
|||||||
"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",
|
||||||
@@ -7594,10 +7580,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minipass": {
|
"node_modules/minipass": {
|
||||||
"version": "7.1.2",
|
"version": "7.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
|
||||||
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
|
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
|
||||||
"license": "ISC",
|
"license": "BlueOak-1.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.17"
|
||||||
}
|
}
|
||||||
@@ -8403,7 +8389,6 @@
|
|||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
||||||
"integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
|
"integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
|
||||||
"dev": true,
|
|
||||||
"license": "BlueOak-1.0.0"
|
"license": "BlueOak-1.0.0"
|
||||||
},
|
},
|
||||||
"node_modules/pacote": {
|
"node_modules/pacote": {
|
||||||
@@ -8861,8 +8846,7 @@
|
|||||||
"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",
|
||||||
@@ -8938,6 +8922,103 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/rimraf": {
|
||||||
|
"version": "6.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.3.tgz",
|
||||||
|
"integrity": "sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==",
|
||||||
|
"license": "BlueOak-1.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"glob": "^13.0.3",
|
||||||
|
"package-json-from-dist": "^1.0.1"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rimraf": "dist/esm/bin.mjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "20 || >=22"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/balanced-match": {
|
||||||
|
"version": "4.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
||||||
|
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": "18 || 20 || >=22"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/brace-expansion": {
|
||||||
|
"version": "5.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
|
||||||
|
"integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"balanced-match": "^4.0.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "18 || 20 || >=22"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/glob": {
|
||||||
|
"version": "13.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
|
||||||
|
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
|
||||||
|
"license": "BlueOak-1.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"minimatch": "^10.2.2",
|
||||||
|
"minipass": "^7.1.3",
|
||||||
|
"path-scurry": "^2.0.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "18 || 20 || >=22"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/lru-cache": {
|
||||||
|
"version": "11.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.1.tgz",
|
||||||
|
"integrity": "sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==",
|
||||||
|
"license": "BlueOak-1.0.0",
|
||||||
|
"engines": {
|
||||||
|
"node": "20 || >=22"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/minimatch": {
|
||||||
|
"version": "10.2.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
|
||||||
|
"integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
|
||||||
|
"license": "BlueOak-1.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"brace-expansion": "^5.0.5"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "18 || 20 || >=22"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/path-scurry": {
|
||||||
|
"version": "2.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
|
||||||
|
"license": "BlueOak-1.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"lru-cache": "^11.0.0",
|
||||||
|
"minipass": "^7.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "18 || 20 || >=22"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/rollup": {
|
"node_modules/rollup": {
|
||||||
"version": "4.52.3",
|
"version": "4.52.3",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz",
|
||||||
@@ -9010,7 +9091,6 @@
|
|||||||
"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"
|
||||||
}
|
}
|
||||||
@@ -9047,7 +9127,6 @@
|
|||||||
"integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
|
"integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
|
||||||
"devOptional": true,
|
"devOptional": 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",
|
||||||
@@ -9796,8 +9875,7 @@
|
|||||||
"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": "3.1.0",
|
"version": "3.1.0",
|
||||||
@@ -9847,7 +9925,6 @@
|
|||||||
"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"
|
||||||
@@ -10014,7 +10091,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.11.tgz",
|
||||||
"integrity": "sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==",
|
"integrity": "sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"fdir": "^6.5.0",
|
"fdir": "^6.5.0",
|
||||||
@@ -10402,7 +10478,6 @@
|
|||||||
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/colinhacks"
|
"url": "https://github.com/sponsors/colinhacks"
|
||||||
}
|
}
|
||||||
@@ -10421,8 +10496,7 @@
|
|||||||
"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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
"browser-image-compression": "^2.0.2",
|
"browser-image-compression": "^2.0.2",
|
||||||
"ng-zorro-antd": "^20.4.0",
|
"ng-zorro-antd": "^20.4.0",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
|
"rimraf": "^6.1.3",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
"tailwindcss": "^4.1.17",
|
"tailwindcss": "^4.1.17",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
||||||
import {CustomHttpParameterCodec} from './encoder';
|
import { CustomHttpParameterCodec } from './encoder';
|
||||||
import {Configuration} from './configuration';
|
import { Configuration } from './configuration';
|
||||||
|
|
||||||
export class BaseService {
|
export class BaseService {
|
||||||
protected basePath = 'http://localhost:5298';
|
protected basePath = 'http://localhost:5298';
|
||||||
@@ -17,7 +17,7 @@ export class BaseService {
|
|||||||
public configuration: Configuration;
|
public configuration: Configuration;
|
||||||
public encoder: HttpParameterCodec;
|
public encoder: HttpParameterCodec;
|
||||||
|
|
||||||
constructor(basePath?: string | string[], configuration?: Configuration) {
|
constructor(basePath?: string|string[], configuration?: Configuration) {
|
||||||
this.configuration = configuration || new Configuration();
|
this.configuration = configuration || new Configuration();
|
||||||
if (typeof this.configuration.basePath !== 'string') {
|
if (typeof this.configuration.basePath !== 'string') {
|
||||||
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core';
|
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
||||||
import {Configuration} from './configuration';
|
import { Configuration } from './configuration';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [],
|
imports: [],
|
||||||
declarations: [],
|
declarations: [],
|
||||||
exports: [],
|
exports: [],
|
||||||
providers: []
|
providers: []
|
||||||
})
|
})
|
||||||
export class ApiModule {
|
export class ApiModule {
|
||||||
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
||||||
return {
|
return {
|
||||||
ngModule: ApiModule,
|
ngModule: ApiModule,
|
||||||
providers: [{provide: Configuration, useFactory: configurationFactory}]
|
providers: [ { provide: Configuration, useFactory: configurationFactory } ]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(@Optional() @SkipSelf() parentModule: ApiModule,
|
constructor( @Optional() @SkipSelf() parentModule: ApiModule,
|
||||||
@Optional() http: HttpClient) {
|
@Optional() http: HttpClient) {
|
||||||
if (parentModule) {
|
if (parentModule) {
|
||||||
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
||||||
}
|
}
|
||||||
if (!http) {
|
if (!http) {
|
||||||
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
||||||
'See also https://github.com/angular/angular/issues/20575');
|
'See also https://github.com/angular/angular/issues/20575');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,43 +1,29 @@
|
|||||||
export * from './customers.service';
|
export * from './customers.service';
|
||||||
import {CustomersService} from './customers.service';
|
import { CustomersService } from './customers.service';
|
||||||
|
|
||||||
export * from './deliverers.service';
|
export * from './deliverers.service';
|
||||||
import {DeliverersService} from './deliverers.service';
|
import { DeliverersService } from './deliverers.service';
|
||||||
|
|
||||||
export * from './deliverynotes.service';
|
export * from './deliverynotes.service';
|
||||||
import {DeliverynotesService} from './deliverynotes.service';
|
import { DeliverynotesService } from './deliverynotes.service';
|
||||||
|
|
||||||
export * from './prices.service';
|
export * from './prices.service';
|
||||||
import {PricesService} from './prices.service';
|
import { PricesService } from './prices.service';
|
||||||
|
|
||||||
export * from './products.service';
|
export * from './products.service';
|
||||||
import {ProductsService} from './products.service';
|
import { ProductsService } from './products.service';
|
||||||
|
|
||||||
export * from './purchaseorders.service';
|
export * from './purchaseorders.service';
|
||||||
import {PurchaseordersService} from './purchaseorders.service';
|
import { PurchaseordersService } from './purchaseorders.service';
|
||||||
|
|
||||||
export * from './quotations.service';
|
export * from './quotations.service';
|
||||||
import {QuotationsService} from './quotations.service';
|
import { QuotationsService } from './quotations.service';
|
||||||
|
|
||||||
export * from './refresh.service';
|
export * from './refresh.service';
|
||||||
import {RefreshService} from './refresh.service';
|
import { RefreshService } from './refresh.service';
|
||||||
|
|
||||||
export * from './settings.service';
|
export * from './settings.service';
|
||||||
import {SettingsService} from './settings.service';
|
import { SettingsService } from './settings.service';
|
||||||
|
|
||||||
export * from './suppliers.service';
|
export * from './suppliers.service';
|
||||||
import {SuppliersService} from './suppliers.service';
|
import { SuppliersService } from './suppliers.service';
|
||||||
|
|
||||||
export * from './user.service';
|
export * from './user.service';
|
||||||
import {UserService} from './user.service';
|
import { UserService } from './user.service';
|
||||||
|
|
||||||
export * from './users.service';
|
export * from './users.service';
|
||||||
import {UsersService} from './users.service';
|
import { UsersService } from './users.service';
|
||||||
|
|
||||||
export * from './warehouseproducts.service';
|
export * from './warehouseproducts.service';
|
||||||
import {WarehouseproductsService} from './warehouseproducts.service';
|
import { WarehouseproductsService } from './warehouseproducts.service';
|
||||||
|
|
||||||
export * from './warehouses.service';
|
export * from './warehouses.service';
|
||||||
import {WarehousesService} from './warehouses.service';
|
import { WarehousesService } from './warehouses.service';
|
||||||
|
|
||||||
export const APIS = [CustomersService, DeliverersService, DeliverynotesService, PricesService, ProductsService, PurchaseordersService, QuotationsService, RefreshService, SettingsService, SuppliersService, UserService, UsersService, WarehouseproductsService, WarehousesService];
|
export const APIS = [CustomersService, DeliverersService, DeliverynotesService, PricesService, ProductsService, PurchaseordersService, QuotationsService, RefreshService, SettingsService, SuppliersService, UserService, UsersService, WarehouseproductsService, WarehousesService];
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetCustomerDto} from '../model/get-customer-dto';
|
import { GetCustomerDto } from '../model/get-customer-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class CustomersService extends BaseService {
|
export class CustomersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,26 +40,10 @@ export class CustomersService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllCustomersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllCustomersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetCustomerDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllCustomersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetCustomerDto>>>;
|
||||||
context?: HttpContext,
|
public getAllCustomersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetCustomerDto>>>;
|
||||||
transferCache?: boolean
|
public getAllCustomersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetCustomerDto>>;
|
|
||||||
public getAllCustomersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetCustomerDto>>>;
|
|
||||||
public getAllCustomersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetCustomerDto>>>;
|
|
||||||
public getAllCustomersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -90,15 +74,15 @@ export class CustomersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/customers`;
|
let localVarPath = `/API/customers`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetCustomerDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetCustomerDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,62 +9,46 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreateDelivererDto} from '../model/create-deliverer-dto';
|
import { CreateDelivererDto } from '../model/create-deliverer-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetDelivererDto} from '../model/get-deliverer-dto';
|
import { GetDelivererDto } from '../model/get-deliverer-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {UpdateDelivererDto} from '../model/update-deliverer-dto';
|
import { UpdateDelivererDto } from '../model/update-deliverer-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class DeliverersService extends BaseService {
|
export class DeliverersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/deliverers
|
* @endpoint post /API/deliverers
|
||||||
* @param createDelivererDto
|
* @param createDelivererDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDelivererDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDelivererDto>>;
|
||||||
context?: HttpContext,
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDelivererDto>>;
|
||||||
transferCache?: boolean
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetDelivererDto>;
|
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetDelivererDto>>;
|
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetDelivererDto>>;
|
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createDelivererDto === null || createDelivererDto === undefined) {
|
if (createDelivererDto === null || createDelivererDto === undefined) {
|
||||||
throw new Error('Required parameter createDelivererDto was null or undefined when calling createDelivererEndpoint.');
|
throw new Error('Required parameter createDelivererDto was null or undefined when calling createDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -107,16 +91,16 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers`;
|
let localVarPath = `/API/deliverers`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetDelivererDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDelivererDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createDelivererDto,
|
body: createDelivererDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -124,30 +108,14 @@ export class DeliverersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/deliverers/{delivererId}
|
* @endpoint delete /API/deliverers/{delivererId}
|
||||||
* @param delivererId
|
* @param delivererId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (delivererId === null || delivererId === undefined) {
|
if (delivererId === null || delivererId === undefined) {
|
||||||
throw new Error('Required parameter delivererId was null or undefined when calling deleteDelivererEndpoint.');
|
throw new Error('Required parameter delivererId was null or undefined when calling deleteDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -157,7 +125,8 @@ export class DeliverersService 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);
|
||||||
}
|
}
|
||||||
@@ -178,24 +147,16 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "delivererId", value: delivererId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "delivererId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: delivererId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -206,26 +167,10 @@ export class DeliverersService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDelivererDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllDelivererEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDelivererDto>>>;
|
||||||
context?: HttpContext,
|
public getAllDelivererEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDelivererDto>>>;
|
||||||
transferCache?: boolean
|
public getAllDelivererEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetDelivererDto>>;
|
|
||||||
public getAllDelivererEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetDelivererDto>>>;
|
|
||||||
public getAllDelivererEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetDelivererDto>>>;
|
|
||||||
public getAllDelivererEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -256,15 +201,15 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers`;
|
let localVarPath = `/API/deliverers`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetDelivererDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetDelivererDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -272,30 +217,14 @@ export class DeliverersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/deliverers/{delivererId}
|
* @endpoint get /API/deliverers/{delivererId}
|
||||||
* @param delivererId
|
* @param delivererId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDelivererDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDelivererDto>>;
|
||||||
context?: HttpContext,
|
public getDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDelivererDto>>;
|
||||||
transferCache?: boolean
|
public getDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetDelivererDto>;
|
|
||||||
public getDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetDelivererDto>>;
|
|
||||||
public getDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetDelivererDto>>;
|
|
||||||
public getDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (delivererId === null || delivererId === undefined) {
|
if (delivererId === null || delivererId === undefined) {
|
||||||
throw new Error('Required parameter delivererId was null or undefined when calling getDelivererEndpoint.');
|
throw new Error('Required parameter delivererId was null or undefined when calling getDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -328,24 +257,16 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "delivererId", value: delivererId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "delivererId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: delivererId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetDelivererDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDelivererDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -353,31 +274,15 @@ export class DeliverersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/deliverers/{id}
|
* @endpoint put /API/deliverers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateDelivererDto
|
* @param updateDelivererDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDelivererDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDelivererDto>>;
|
||||||
context?: HttpContext,
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDelivererDto>>;
|
||||||
transferCache?: boolean
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetDelivererDto>;
|
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetDelivererDto>>;
|
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetDelivererDto>>;
|
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, 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 updateDelivererEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -422,25 +327,17 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetDelivererDto>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDelivererDto>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateDelivererDto,
|
body: updateDelivererDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,64 +9,48 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreateDeliveryNoteDto} from '../model/create-delivery-note-dto';
|
import { CreateDeliveryNoteDto } from '../model/create-delivery-note-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetDeliveryNoteDto} from '../model/get-delivery-note-dto';
|
import { GetDeliveryNoteDto } from '../model/get-delivery-note-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchDeliveryNoteRealDeliveryDateDto} from '../model/patch-delivery-note-real-delivery-date-dto';
|
import { PatchDeliveryNoteRealDeliveryDateDto } from '../model/patch-delivery-note-real-delivery-date-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {UpdateDeliveryNoteDto} from '../model/update-delivery-note-dto';
|
import { UpdateDeliveryNoteDto } from '../model/update-delivery-note-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class DeliverynotesService extends BaseService {
|
export class DeliverynotesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/deliveryNotes
|
* @endpoint post /API/deliveryNotes
|
||||||
* @param createDeliveryNoteDto
|
* @param createDeliveryNoteDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createDeliveryNoteDto === null || createDeliveryNoteDto === undefined) {
|
if (createDeliveryNoteDto === null || createDeliveryNoteDto === undefined) {
|
||||||
throw new Error('Required parameter createDeliveryNoteDto was null or undefined when calling createDeliveryNoteEndpoint.');
|
throw new Error('Required parameter createDeliveryNoteDto was null or undefined when calling createDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -76,7 +60,8 @@ export class DeliverynotesService 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);
|
||||||
}
|
}
|
||||||
@@ -107,16 +92,16 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes`;
|
let localVarPath = `/API/deliveryNotes`;
|
||||||
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}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createDeliveryNoteDto,
|
body: createDeliveryNoteDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -124,30 +109,14 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/deliveryNotes/{id}
|
* @endpoint delete /API/deliveryNotes/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteDeliveryNoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteDeliveryNoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteDeliveryNoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteDeliveryNoteEndpoint(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 deleteDeliveryNoteEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -157,7 +126,8 @@ export class DeliverynotesService 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);
|
||||||
}
|
}
|
||||||
@@ -178,24 +148,16 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -206,26 +168,10 @@ export class DeliverynotesService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDeliveryNoteDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllDeliveryNoteEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDeliveryNoteDto>>>;
|
||||||
context?: HttpContext,
|
public getAllDeliveryNoteEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDeliveryNoteDto>>>;
|
||||||
transferCache?: boolean
|
public getAllDeliveryNoteEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetDeliveryNoteDto>>;
|
|
||||||
public getAllDeliveryNoteEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetDeliveryNoteDto>>>;
|
|
||||||
public getAllDeliveryNoteEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetDeliveryNoteDto>>>;
|
|
||||||
public getAllDeliveryNoteEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -256,15 +202,15 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes`;
|
let localVarPath = `/API/deliveryNotes`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -275,26 +221,10 @@ export class DeliverynotesService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDeliveryNoteDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDeliveryNoteDto>>>;
|
||||||
context?: HttpContext,
|
public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDeliveryNoteDto>>>;
|
||||||
transferCache?: boolean
|
public getAllDeliveryNotesNotArrivedEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetDeliveryNoteDto>>;
|
|
||||||
public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetDeliveryNoteDto>>>;
|
|
||||||
public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetDeliveryNoteDto>>>;
|
|
||||||
public getAllDeliveryNotesNotArrivedEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -325,15 +255,15 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/validation`;
|
let localVarPath = `/API/deliveryNotes/validation`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -341,30 +271,14 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/deliveryNotes/{deliveryNoteId}
|
* @endpoint get /API/deliveryNotes/{deliveryNoteId}
|
||||||
* @param deliveryNoteId
|
* @param deliveryNoteId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDeliveryNoteDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
||||||
context?: HttpContext,
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
||||||
transferCache?: boolean
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetDeliveryNoteDto>;
|
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (deliveryNoteId === null || deliveryNoteId === undefined) {
|
if (deliveryNoteId === null || deliveryNoteId === undefined) {
|
||||||
throw new Error('Required parameter deliveryNoteId was null or undefined when calling getDeliveryNoteEndpoint.');
|
throw new Error('Required parameter deliveryNoteId was null or undefined when calling getDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -397,24 +311,16 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "deliveryNoteId", value: deliveryNoteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "deliveryNoteId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: deliveryNoteId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetDeliveryNoteDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDeliveryNoteDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -422,30 +328,14 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/deliveryNotes/{id}/pdf
|
* @endpoint get /API/deliveryNotes/{id}/pdf
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<Blob>;
|
||||||
httpHeaderAccept?: 'application/pdf',
|
public getDeliveryNotePdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Blob>>;
|
||||||
context?: HttpContext,
|
public getDeliveryNotePdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Blob>>;
|
||||||
transferCache?: boolean
|
public getDeliveryNotePdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Blob>;
|
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Blob>>;
|
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Blob>>;
|
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
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 getDeliveryNotePdfEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getDeliveryNotePdfEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -467,24 +357,16 @@ export class DeliverynotesService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/pdf`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -492,31 +374,15 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/deliveryNotes/{id}
|
* @endpoint patch /API/deliveryNotes/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchDeliveryNoteRealDeliveryDateDto
|
* @param patchDeliveryNoteRealDeliveryDateDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, 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 patchRealDeliveryDateEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchRealDeliveryDateEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -529,7 +395,8 @@ export class DeliverynotesService 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);
|
||||||
}
|
}
|
||||||
@@ -559,25 +426,17 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchDeliveryNoteRealDeliveryDateDto,
|
body: patchDeliveryNoteRealDeliveryDateDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -585,31 +444,15 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/deliveryNotes/{id}
|
* @endpoint put /API/deliveryNotes/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateDeliveryNoteDto
|
* @param updateDeliveryNoteDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, 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 updateDeliveryNoteEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -622,7 +465,8 @@ export class DeliverynotesService 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);
|
||||||
}
|
}
|
||||||
@@ -652,25 +496,17 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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: updateDeliveryNoteDto,
|
body: updateDeliveryNoteDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,60 +9,44 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchPriceSellingPriceDto} from '../model/patch-price-selling-price-dto';
|
import { PatchPriceSellingPriceDto } from '../model/patch-price-selling-price-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class PricesService extends BaseService {
|
export class PricesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/prices/{productId}/{supplierId}/SellingPrice
|
* @endpoint patch /API/prices/{productId}/{supplierId}/SellingPrice
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param supplierId
|
* @param supplierId
|
||||||
* @param patchPriceSellingPriceDto
|
* @param patchPriceSellingPriceDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchPriceEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling patchPriceEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -78,7 +62,8 @@ export class PricesService 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);
|
||||||
}
|
}
|
||||||
@@ -108,33 +93,17 @@ export class PricesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/prices/${this.configuration.encodeParam({
|
let localVarPath = `/API/prices/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "supplierId", value: supplierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/SellingPrice`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "supplierId",
|
|
||||||
value: supplierId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/SellingPrice`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchPriceSellingPriceDto,
|
body: patchPriceSellingPriceDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,62 +9,46 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetProductDto} from '../model/get-product-dto';
|
import { GetProductDto } from '../model/get-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchProductMinimalStockDto} from '../model/patch-product-minimal-stock-dto';
|
import { PatchProductMinimalStockDto } from '../model/patch-product-minimal-stock-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {UpdateProductDto} from '../model/update-product-dto';
|
import { UpdateProductDto } from '../model/update-product-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class ProductsService extends BaseService {
|
export class ProductsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/products/{productId}
|
* @endpoint delete /API/products/{productId}
|
||||||
* @param productId
|
* @param productId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteProductEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteProductEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteProductEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteProductEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteProductEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteProductEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deleteProductEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -74,7 +58,8 @@ export class ProductsService 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);
|
||||||
}
|
}
|
||||||
@@ -95,24 +80,16 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -123,26 +100,10 @@ export class ProductsService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetProductDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllProductsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetProductDto>>>;
|
||||||
context?: HttpContext,
|
public getAllProductsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetProductDto>>>;
|
||||||
transferCache?: boolean
|
public getAllProductsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetProductDto>>;
|
|
||||||
public getAllProductsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetProductDto>>>;
|
|
||||||
public getAllProductsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetProductDto>>>;
|
|
||||||
public getAllProductsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -173,15 +134,15 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products`;
|
let localVarPath = `/API/products`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -192,26 +153,10 @@ export class ProductsService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetProductDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllProductsUnderLimitEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetProductDto>>>;
|
||||||
context?: HttpContext,
|
public getAllProductsUnderLimitEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetProductDto>>>;
|
||||||
transferCache?: boolean
|
public getAllProductsUnderLimitEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetProductDto>>;
|
|
||||||
public getAllProductsUnderLimitEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetProductDto>>>;
|
|
||||||
public getAllProductsUnderLimitEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetProductDto>>>;
|
|
||||||
public getAllProductsUnderLimitEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -242,15 +187,15 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/underLimit`;
|
let localVarPath = `/API/products/underLimit`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -258,30 +203,14 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/products/{id}
|
* @endpoint get /API/products/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetProductDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getProductEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetProductDto>>;
|
||||||
context?: HttpContext,
|
public getProductEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetProductDto>>;
|
||||||
transferCache?: boolean
|
public getProductEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetProductDto>;
|
|
||||||
public getProductEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetProductDto>>;
|
|
||||||
public getProductEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetProductDto>>;
|
|
||||||
public getProductEndpoint(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 getProductEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getProductEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -314,24 +243,16 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetProductDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetProductDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -339,31 +260,15 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/products/{id}/MinimalStock
|
* @endpoint patch /API/products/{id}/MinimalStock
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchProductMinimalStockDto
|
* @param patchProductMinimalStockDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, 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 patchProductMinimalStockEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchProductMinimalStockEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -376,7 +281,8 @@ export class ProductsService 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);
|
||||||
}
|
}
|
||||||
@@ -406,25 +312,17 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/MinimalStock`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/MinimalStock`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchProductMinimalStockDto,
|
body: patchProductMinimalStockDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -432,31 +330,15 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/products/{id}
|
* @endpoint put /API/products/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateProductDto
|
* @param updateProductDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, 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 updateProductEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateProductEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -469,7 +351,8 @@ export class ProductsService 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);
|
||||||
}
|
}
|
||||||
@@ -499,25 +382,17 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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: updateProductDto,
|
body: updateProductDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,68 +9,52 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreatePurchaseOrderDto} from '../model/create-purchase-order-dto';
|
import { CreatePurchaseOrderDto } from '../model/create-purchase-order-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreatePurchaseProductDto} from '../model/create-purchase-product-dto';
|
import { CreatePurchaseProductDto } from '../model/create-purchase-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetPurchaseOrderDto} from '../model/get-purchase-order-dto';
|
import { GetPurchaseOrderDto } from '../model/get-purchase-order-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchPurchaseOrderPurchaseConditionsDto} from '../model/patch-purchase-order-purchase-conditions-dto';
|
import { PatchPurchaseOrderPurchaseConditionsDto } from '../model/patch-purchase-order-purchase-conditions-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchPurchaseProductQuantityDto} from '../model/patch-purchase-product-quantity-dto';
|
import { PatchPurchaseProductQuantityDto } from '../model/patch-purchase-product-quantity-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class PurchaseordersService extends BaseService {
|
export class PurchaseordersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/purchaseOrders/{purchaseOrderId}/{productId}
|
* @endpoint post /API/purchaseOrders/{purchaseOrderId}/{productId}
|
||||||
* @param purchaseOrderId
|
* @param purchaseOrderId
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param createPurchaseProductDto
|
* @param createPurchaseProductDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
||||||
throw new Error('Required parameter purchaseOrderId was null or undefined when calling addProductFromPurchaseOrderEndpoint.');
|
throw new Error('Required parameter purchaseOrderId was null or undefined when calling addProductFromPurchaseOrderEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -86,7 +70,8 @@ export class PurchaseordersService 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);
|
||||||
}
|
}
|
||||||
@@ -116,33 +101,17 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "purchaseOrderId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: purchaseOrderId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "productId",
|
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createPurchaseProductDto,
|
body: createPurchaseProductDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -150,30 +119,14 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/purchaseOrders
|
* @endpoint post /API/purchaseOrders
|
||||||
* @param createPurchaseOrderDto
|
* @param createPurchaseOrderDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseOrderDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
||||||
context?: HttpContext,
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
||||||
transferCache?: boolean
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetPurchaseOrderDto>;
|
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createPurchaseOrderDto === null || createPurchaseOrderDto === undefined) {
|
if (createPurchaseOrderDto === null || createPurchaseOrderDto === undefined) {
|
||||||
throw new Error('Required parameter createPurchaseOrderDto was null or undefined when calling createPurchaseOrder.');
|
throw new Error('Required parameter createPurchaseOrderDto was null or undefined when calling createPurchaseOrder.');
|
||||||
}
|
}
|
||||||
@@ -216,16 +169,16 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders`;
|
let localVarPath = `/API/purchaseOrders`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetPurchaseOrderDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetPurchaseOrderDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createPurchaseOrderDto,
|
body: createPurchaseOrderDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -233,31 +186,15 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/purchaseOrders/{productId}/{purchaseOrderId}
|
* @endpoint delete /API/purchaseOrders/{productId}/{purchaseOrderId}
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param purchaseOrderId
|
* @param purchaseOrderId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deleteProductFromPurchaseOrderEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductFromPurchaseOrderEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -270,7 +207,8 @@ export class PurchaseordersService 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);
|
||||||
}
|
}
|
||||||
@@ -291,32 +229,16 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "purchaseOrderId",
|
|
||||||
value: purchaseOrderId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -324,30 +246,14 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/purchaseOrders/{id}
|
* @endpoint delete /API/purchaseOrders/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deletePurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deletePurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deletePurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deletePurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deletePurchaseOrderEndpoint(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 deletePurchaseOrderEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deletePurchaseOrderEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -357,7 +263,8 @@ export class PurchaseordersService 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);
|
||||||
}
|
}
|
||||||
@@ -378,24 +285,16 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -406,26 +305,10 @@ export class PurchaseordersService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetPurchaseOrderDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllPurchaseOrderEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetPurchaseOrderDto>>>;
|
||||||
context?: HttpContext,
|
public getAllPurchaseOrderEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetPurchaseOrderDto>>>;
|
||||||
transferCache?: boolean
|
public getAllPurchaseOrderEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetPurchaseOrderDto>>;
|
|
||||||
public getAllPurchaseOrderEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetPurchaseOrderDto>>>;
|
|
||||||
public getAllPurchaseOrderEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetPurchaseOrderDto>>>;
|
|
||||||
public getAllPurchaseOrderEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -456,15 +339,15 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders`;
|
let localVarPath = `/API/purchaseOrders`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetPurchaseOrderDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetPurchaseOrderDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -472,30 +355,14 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/purchaseOrders/{id}
|
* @endpoint get /API/purchaseOrders/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseOrderDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getPurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
||||||
context?: HttpContext,
|
public getPurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
||||||
transferCache?: boolean
|
public getPurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetPurchaseOrderDto>;
|
|
||||||
public getPurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
|
||||||
public getPurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
|
||||||
public getPurchaseOrderEndpoint(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 getPurchaseOrderEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -528,24 +395,16 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetPurchaseOrderDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetPurchaseOrderDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -553,30 +412,14 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/purchaseOrders/{id}/pdf
|
* @endpoint get /API/purchaseOrders/{id}/pdf
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<Blob>;
|
||||||
httpHeaderAccept?: 'application/pdf',
|
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Blob>>;
|
||||||
context?: HttpContext,
|
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Blob>>;
|
||||||
transferCache?: boolean
|
public getPurchaseOrderPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Blob>;
|
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Blob>>;
|
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Blob>>;
|
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
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 getPurchaseOrderPdfEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderPdfEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -598,24 +441,16 @@ export class PurchaseordersService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/pdf`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -623,31 +458,15 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/purchaseOrders/{id}/PurchaseConditions
|
* @endpoint patch /API/purchaseOrders/{id}/PurchaseConditions
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchPurchaseOrderPurchaseConditionsDto
|
* @param patchPurchaseOrderPurchaseConditionsDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, 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 patchPurchaseOrderPurchaseConditionsEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchPurchaseOrderPurchaseConditionsEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -660,7 +479,8 @@ export class PurchaseordersService 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);
|
||||||
}
|
}
|
||||||
@@ -690,25 +510,17 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/PurchaseConditions`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/PurchaseConditions`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchPurchaseOrderPurchaseConditionsDto,
|
body: patchPurchaseOrderPurchaseConditionsDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -716,32 +528,16 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/purchaseOrders/{productId}/{purchaseOrderId}/Quantity
|
* @endpoint patch /API/purchaseOrders/{productId}/{purchaseOrderId}/Quantity
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param purchaseOrderId
|
* @param purchaseOrderId
|
||||||
* @param patchPurchaseProductQuantityDto
|
* @param patchPurchaseProductQuantityDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -757,7 +553,8 @@ export class PurchaseordersService 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);
|
||||||
}
|
}
|
||||||
@@ -787,33 +584,17 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Quantity`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "purchaseOrderId",
|
|
||||||
value: purchaseOrderId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Quantity`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchPurchaseProductQuantityDto,
|
body: patchPurchaseProductQuantityDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,71 +9,55 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {AddQuotationProductDto} from '../model/add-quotation-product-dto';
|
import { AddQuotationProductDto } from '../model/add-quotation-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreateQuotationDto} from '../model/create-quotation-dto';
|
import { CreateQuotationDto } from '../model/create-quotation-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetQuotationDto} from '../model/get-quotation-dto';
|
import { GetQuotationDto } from '../model/get-quotation-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchQuotationConditionsSaleDto} from '../model/patch-quotation-conditions-sale-dto';
|
import { PatchQuotationConditionsSaleDto } from '../model/patch-quotation-conditions-sale-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchQuotationMessageDto} from '../model/patch-quotation-message-dto';
|
import { PatchQuotationMessageDto } from '../model/patch-quotation-message-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchQuotationProductQuantityDto} from '../model/patch-quotation-product-quantity-dto';
|
import { PatchQuotationProductQuantityDto } from '../model/patch-quotation-product-quantity-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {UpdateQuotationDto} from '../model/update-quotation-dto';
|
import { UpdateQuotationDto } from '../model/update-quotation-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class QuotationsService extends BaseService {
|
export class QuotationsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/quotations/{productId}/products
|
* @endpoint post /API/quotations/{productId}/products
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param addQuotationProductDto
|
* @param addQuotationProductDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling addProductoToQuotationEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling addProductoToQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -86,7 +70,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -116,25 +101,17 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/products`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/products`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: addQuotationProductDto,
|
body: addQuotationProductDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -142,30 +119,14 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/quotations
|
* @endpoint post /API/quotations
|
||||||
* @param createQuotationDto
|
* @param createQuotationDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createQuotationDto === null || createQuotationDto === undefined) {
|
if (createQuotationDto === null || createQuotationDto === undefined) {
|
||||||
throw new Error('Required parameter createQuotationDto was null or undefined when calling createQuotationEndpoint.');
|
throw new Error('Required parameter createQuotationDto was null or undefined when calling createQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -175,7 +136,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -206,16 +168,16 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations`;
|
let localVarPath = `/API/quotations`;
|
||||||
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}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createQuotationDto,
|
body: createQuotationDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -223,31 +185,15 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/quotations/{productId}/{quotationId}
|
* @endpoint delete /API/quotations/{productId}/{quotationId}
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param quotationId
|
* @param quotationId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deleteProductFromQuotationEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductFromQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -260,7 +206,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -281,32 +228,16 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "quotationId", value: quotationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "quotationId",
|
|
||||||
value: quotationId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -314,30 +245,14 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/quotations/{id}
|
* @endpoint delete /API/quotations/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteQuotationEndpoint(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 deleteQuotationEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -347,7 +262,8 @@ export class QuotationsService 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,24 +284,16 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -396,26 +304,10 @@ export class QuotationsService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetQuotationDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllQuotationEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetQuotationDto>>>;
|
||||||
context?: HttpContext,
|
public getAllQuotationEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetQuotationDto>>>;
|
||||||
transferCache?: boolean
|
public getAllQuotationEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetQuotationDto>>;
|
|
||||||
public getAllQuotationEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetQuotationDto>>>;
|
|
||||||
public getAllQuotationEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetQuotationDto>>>;
|
|
||||||
public getAllQuotationEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -446,15 +338,15 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations`;
|
let localVarPath = `/API/quotations`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetQuotationDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetQuotationDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -462,30 +354,14 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/quotations/{id}
|
* @endpoint get /API/quotations/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
||||||
context?: HttpContext,
|
public getQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
||||||
transferCache?: boolean
|
public getQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetQuotationDto>;
|
|
||||||
public getQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetQuotationDto>>;
|
|
||||||
public getQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetQuotationDto>>;
|
|
||||||
public getQuotationEndpoint(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 getQuotationEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -518,24 +394,16 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetQuotationDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetQuotationDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -543,30 +411,14 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/quotations/{id}/pdf
|
* @endpoint get /API/quotations/{id}/pdf
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<Blob>;
|
||||||
httpHeaderAccept?: 'application/pdf',
|
public getQuotationPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Blob>>;
|
||||||
context?: HttpContext,
|
public getQuotationPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Blob>>;
|
||||||
transferCache?: boolean
|
public getQuotationPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Blob>;
|
|
||||||
public getQuotationPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Blob>>;
|
|
||||||
public getQuotationPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Blob>>;
|
|
||||||
public getQuotationPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/pdf',
|
|
||||||
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 getQuotationPdfEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getQuotationPdfEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -588,24 +440,16 @@ export class QuotationsService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/pdf`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -613,31 +457,15 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/quotations/{id}/saleConditions
|
* @endpoint patch /API/quotations/{id}/saleConditions
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchQuotationConditionsSaleDto
|
* @param patchQuotationConditionsSaleDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, 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 patchQuotationConditionsSaleEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchQuotationConditionsSaleEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -650,7 +478,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -680,25 +509,17 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/saleConditions`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/saleConditions`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchQuotationConditionsSaleDto,
|
body: patchQuotationConditionsSaleDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -706,31 +527,15 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/quotations/{id}/message
|
* @endpoint patch /API/quotations/{id}/message
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchQuotationMessageDto
|
* @param patchQuotationMessageDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, 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 patchQuotationMessageEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchQuotationMessageEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -743,7 +548,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -773,25 +579,17 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/message`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/message`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchQuotationMessageDto,
|
body: patchQuotationMessageDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -799,32 +597,16 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/quotations/{productId}/{quotationId}/Quantity
|
* @endpoint patch /API/quotations/{productId}/{quotationId}/Quantity
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param quotationId
|
* @param quotationId
|
||||||
* @param patchQuotationProductQuantityDto
|
* @param patchQuotationProductQuantityDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -840,7 +622,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -870,33 +653,17 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "quotationId", value: quotationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Quantity`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "quotationId",
|
|
||||||
value: quotationId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/Quantity`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchQuotationProductQuantityDto,
|
body: patchQuotationProductQuantityDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -904,31 +671,15 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/quotations/{id}
|
* @endpoint put /API/quotations/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateQuotationDto
|
* @param updateQuotationDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, 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 updateQuotationEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -941,7 +692,8 @@ export class QuotationsService 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);
|
||||||
}
|
}
|
||||||
@@ -971,25 +723,17 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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: updateQuotationDto,
|
body: updateQuotationDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,60 +9,44 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetRefreshTokenDto} from '../model/get-refresh-token-dto';
|
import { GetRefreshTokenDto } from '../model/get-refresh-token-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {RefreshTokenDto} from '../model/refresh-token-dto';
|
import { RefreshTokenDto } from '../model/refresh-token-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class RefreshService extends BaseService {
|
export class RefreshService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/refresh
|
* @endpoint post /API/refresh
|
||||||
* @param refreshTokenDto
|
* @param refreshTokenDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetRefreshTokenDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetRefreshTokenDto>>;
|
||||||
context?: HttpContext,
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetRefreshTokenDto>>;
|
||||||
transferCache?: boolean
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetRefreshTokenDto>;
|
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetRefreshTokenDto>>;
|
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetRefreshTokenDto>>;
|
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/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.');
|
||||||
}
|
}
|
||||||
@@ -102,16 +86,16 @@ export class RefreshService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/refresh`;
|
let localVarPath = `/API/refresh`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetRefreshTokenDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetRefreshTokenDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: refreshTokenDto,
|
body: refreshTokenDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetSettingDto} from '../model/get-setting-dto';
|
import { GetSettingDto } from '../model/get-setting-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class SettingsService extends BaseService {
|
export class SettingsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,26 +40,10 @@ export class SettingsService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getSettingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getSettingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSettingDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getSettingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
||||||
context?: HttpContext,
|
public getSettingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
||||||
transferCache?: boolean
|
public getSettingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetSettingDto>;
|
|
||||||
public getSettingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetSettingDto>>;
|
|
||||||
public getSettingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetSettingDto>>;
|
|
||||||
public getSettingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -90,15 +74,15 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings`;
|
let localVarPath = `/API/settings`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetSettingDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetSettingDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -106,37 +90,22 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/settings/electronicSignature
|
* @endpoint patch /API/settings/electronicSignature
|
||||||
* @param electronicSignature
|
* @param electronicSignature
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, 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);
|
||||||
}
|
}
|
||||||
@@ -180,16 +149,16 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings/electronicSignature`;
|
let localVarPath = `/API/settings/electronicSignature`;
|
||||||
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}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -197,37 +166,22 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/settings/logo
|
* @endpoint patch /API/settings/logo
|
||||||
* @param logo
|
* @param logo
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchSettingLogoEndpoint(logo?: Blob, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchSettingLogoEndpoint(logo?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchSettingLogoEndpoint(logo?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchSettingLogoEndpoint(logo?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchSettingLogoEndpoint(logo?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchSettingLogoEndpoint(logo?: Blob, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchSettingLogoEndpoint(logo?: Blob, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchSettingLogoEndpoint(logo?: Blob, 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);
|
||||||
}
|
}
|
||||||
@@ -271,16 +225,16 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings/logo`;
|
let localVarPath = `/API/settings/logo`;
|
||||||
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}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,68 +9,52 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreatePriceDto} from '../model/create-price-dto';
|
import { CreatePriceDto } from '../model/create-price-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreateSupplierDto} from '../model/create-supplier-dto';
|
import { CreateSupplierDto } from '../model/create-supplier-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetSupplierDto} from '../model/get-supplier-dto';
|
import { GetSupplierDto } from '../model/get-supplier-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchSupplierDeliveryDelayDto} from '../model/patch-supplier-delivery-delay-dto';
|
import { PatchSupplierDeliveryDelayDto } from '../model/patch-supplier-delivery-delay-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {UpdateSupplierDto} from '../model/update-supplier-dto';
|
import { UpdateSupplierDto } from '../model/update-supplier-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class SuppliersService extends BaseService {
|
export class SuppliersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/suppliers/{supplierId}/{productId}
|
* @endpoint post /API/suppliers/{supplierId}/{productId}
|
||||||
* @param supplierId
|
* @param supplierId
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param createPriceDto
|
* @param createPriceDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (supplierId === null || supplierId === undefined) {
|
if (supplierId === null || supplierId === undefined) {
|
||||||
throw new Error('Required parameter supplierId was null or undefined when calling addProductToSupplierEndpoint.');
|
throw new Error('Required parameter supplierId was null or undefined when calling addProductToSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -86,7 +70,8 @@ export class SuppliersService 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);
|
||||||
}
|
}
|
||||||
@@ -116,33 +101,17 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "supplierId", value: supplierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "supplierId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: supplierId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "productId",
|
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createPriceDto,
|
body: createPriceDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -150,30 +119,14 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/suppliers
|
* @endpoint post /API/suppliers
|
||||||
* @param createSupplierDto
|
* @param createSupplierDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (createSupplierDto === null || createSupplierDto === undefined) {
|
if (createSupplierDto === null || createSupplierDto === undefined) {
|
||||||
throw new Error('Required parameter createSupplierDto was null or undefined when calling createSupplierEndpoint.');
|
throw new Error('Required parameter createSupplierDto was null or undefined when calling createSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -183,7 +136,8 @@ export class SuppliersService 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);
|
||||||
}
|
}
|
||||||
@@ -214,16 +168,16 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers`;
|
let localVarPath = `/API/suppliers`;
|
||||||
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}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createSupplierDto,
|
body: createSupplierDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -231,31 +185,15 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/suppliers/{supplierId}/{productId}
|
* @endpoint delete /API/suppliers/{supplierId}/{productId}
|
||||||
* @param supplierId
|
* @param supplierId
|
||||||
* @param productId
|
* @param productId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (supplierId === null || supplierId === undefined) {
|
if (supplierId === null || supplierId === undefined) {
|
||||||
throw new Error('Required parameter supplierId was null or undefined when calling deleteProductToSupplierEndpoint.');
|
throw new Error('Required parameter supplierId was null or undefined when calling deleteProductToSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -268,7 +206,8 @@ export class SuppliersService 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);
|
||||||
}
|
}
|
||||||
@@ -289,32 +228,16 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "supplierId", value: supplierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "supplierId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: supplierId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "productId",
|
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -322,30 +245,14 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/suppliers/{id}
|
* @endpoint delete /API/suppliers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteSupplierEndpoint(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 deleteSupplierEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -355,7 +262,8 @@ export class SuppliersService 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);
|
||||||
}
|
}
|
||||||
@@ -376,24 +284,16 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -404,26 +304,10 @@ export class SuppliersService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetSupplierDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllSuppliersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetSupplierDto>>>;
|
||||||
context?: HttpContext,
|
public getAllSuppliersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetSupplierDto>>>;
|
||||||
transferCache?: boolean
|
public getAllSuppliersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetSupplierDto>>;
|
|
||||||
public getAllSuppliersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetSupplierDto>>>;
|
|
||||||
public getAllSuppliersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetSupplierDto>>>;
|
|
||||||
public getAllSuppliersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -454,15 +338,15 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers`;
|
let localVarPath = `/API/suppliers`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetSupplierDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetSupplierDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -470,30 +354,14 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/suppliers/{id}
|
* @endpoint get /API/suppliers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSupplierDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
||||||
context?: HttpContext,
|
public getSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
||||||
transferCache?: boolean
|
public getSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetSupplierDto>;
|
|
||||||
public getSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetSupplierDto>>;
|
|
||||||
public getSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetSupplierDto>>;
|
|
||||||
public getSupplierEndpoint(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 getSupplierEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -526,24 +394,16 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetSupplierDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetSupplierDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -551,31 +411,15 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/suppliers/{id}/deliveryDelay
|
* @endpoint patch /API/suppliers/{id}/deliveryDelay
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchSupplierDeliveryDelayDto
|
* @param patchSupplierDeliveryDelayDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, 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 patchSupplierDeliveryDelayEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchSupplierDeliveryDelayEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -588,7 +432,8 @@ export class SuppliersService 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);
|
||||||
}
|
}
|
||||||
@@ -618,25 +463,17 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/deliveryDelay`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/deliveryDelay`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchSupplierDeliveryDelayDto,
|
body: patchSupplierDeliveryDelayDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -644,31 +481,15 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/suppliers/{id}
|
* @endpoint put /API/suppliers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateSupplierDto
|
* @param updateSupplierDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, 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 updateSupplierEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -681,7 +502,8 @@ export class SuppliersService 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);
|
||||||
}
|
}
|
||||||
@@ -711,25 +533,17 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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: updateSupplierDto,
|
body: updateSupplierDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetUserDto} from '../model/get-user-dto';
|
import { GetUserDto } from '../model/get-user-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class UserService extends BaseService {
|
export class UserService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,26 +40,10 @@ export class UserService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
||||||
context?: HttpContext,
|
public getUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
||||||
transferCache?: boolean
|
public getUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetUserDto>;
|
|
||||||
public getUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetUserDto>>;
|
|
||||||
public getUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetUserDto>>;
|
|
||||||
public getUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -90,15 +74,15 @@ export class UserService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/user`;
|
let localVarPath = `/API/user`;
|
||||||
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}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,68 +9,52 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {ConnectUserDto} from '../model/connect-user-dto';
|
import { ConnectUserDto } from '../model/connect-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {CreateUserDto} from '../model/create-user-dto';
|
import { CreateUserDto } from '../model/create-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetTokenDto} from '../model/get-token-dto';
|
import { GetTokenDto } from '../model/get-token-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetUserDto} from '../model/get-user-dto';
|
import { GetUserDto } from '../model/get-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchUserPasswordDto} from '../model/patch-user-password-dto';
|
import { PatchUserPasswordDto } from '../model/patch-user-password-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {UpdateUserDto} from '../model/update-user-dto';
|
import { UpdateUserDto } from '../model/update-user-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class UsersService extends BaseService {
|
export class UsersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/users/connection
|
* @endpoint post /API/users/connection
|
||||||
* @param connectUserDto
|
* @param connectUserDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
|
||||||
context?: HttpContext,
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
|
||||||
transferCache?: boolean
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetTokenDto>;
|
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetTokenDto>>;
|
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetTokenDto>>;
|
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (connectUserDto === null || connectUserDto === undefined) {
|
if (connectUserDto === null || connectUserDto === undefined) {
|
||||||
throw new Error('Required parameter connectUserDto was null or undefined when calling connectUserEndpoint.');
|
throw new Error('Required parameter connectUserDto was null or undefined when calling connectUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -110,16 +94,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users/connection`;
|
let localVarPath = `/API/users/connection`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: connectUserDto,
|
body: connectUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -127,30 +111,14 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/users
|
* @endpoint post /API/users
|
||||||
* @param createUserDto
|
* @param createUserDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
||||||
context?: HttpContext,
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
||||||
transferCache?: boolean
|
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetUserDto>;
|
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetUserDto>>;
|
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetUserDto>>;
|
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/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.');
|
||||||
}
|
}
|
||||||
@@ -193,16 +161,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users`;
|
let localVarPath = `/API/users`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createUserDto,
|
body: createUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -210,30 +178,14 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/users/{id}
|
* @endpoint delete /API/users/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||||
httpHeaderAccept?: undefined,
|
public deleteUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||||
context?: HttpContext,
|
public deleteUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||||
transferCache?: boolean
|
public deleteUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<any>;
|
|
||||||
public deleteUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: undefined,
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteUserEndpoint(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 deleteUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -243,7 +195,8 @@ export class UsersService 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);
|
||||||
}
|
}
|
||||||
@@ -264,24 +217,16 @@ 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",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
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,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -292,26 +237,10 @@ export class UsersService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
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;
|
||||||
|
|
||||||
@@ -342,15 +271,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users`;
|
let localVarPath = `/API/users`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -358,31 +287,15 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/users/{id}/password
|
* @endpoint patch /API/users/{id}/password
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchUserPasswordDto
|
* @param patchUserPasswordDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
||||||
context?: HttpContext,
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
||||||
transferCache?: boolean
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetUserDto>;
|
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetUserDto>>;
|
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetUserDto>>;
|
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, 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 patchUserPasswordEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchUserPasswordEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -427,25 +340,17 @@ 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"})}/password`;
|
||||||
name: "id",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/password`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetUserDto>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchUserPasswordDto,
|
body: patchUserPasswordDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -453,31 +358,15 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/users/{id}
|
* @endpoint put /API/users/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateUserDto
|
* @param updateUserDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
||||||
context?: HttpContext,
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
||||||
transferCache?: boolean
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetUserDto>;
|
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetUserDto>>;
|
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetUserDto>>;
|
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, 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 updateUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -522,25 +411,17 @@ 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",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: id,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetUserDto>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateUserDto,
|
body: updateUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,62 +9,46 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetTotalQuantityDto} from '../model/get-total-quantity-dto';
|
import { GetTotalQuantityDto } from '../model/get-total-quantity-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetWareHouseProductDto} from '../model/get-ware-house-product-dto';
|
import { GetWareHouseProductDto } from '../model/get-ware-house-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {PatchWareHouseProductQuantityDto} from '../model/patch-ware-house-product-quantity-dto';
|
import { PatchWareHouseProductQuantityDto } from '../model/patch-ware-house-product-quantity-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class WarehouseproductsService extends BaseService {
|
export class WarehouseproductsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/wareHouseProducts/{productId}
|
* @endpoint get /API/wareHouseProducts/{productId}
|
||||||
* @param productId
|
* @param productId
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetTotalQuantityDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getTotalQuantityEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTotalQuantityDto>>;
|
||||||
context?: HttpContext,
|
public getTotalQuantityEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTotalQuantityDto>>;
|
||||||
transferCache?: boolean
|
public getTotalQuantityEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetTotalQuantityDto>;
|
|
||||||
public getTotalQuantityEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetTotalQuantityDto>>;
|
|
||||||
public getTotalQuantityEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetTotalQuantityDto>>;
|
|
||||||
public getTotalQuantityEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling getTotalQuantityEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling getTotalQuantityEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -97,24 +81,16 @@ export class WarehouseproductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({
|
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetTotalQuantityDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetTotalQuantityDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -122,32 +98,16 @@ export class WarehouseproductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/wareHouseProducts/{productId}/{wareHouseId}/quantity
|
* @endpoint patch /API/wareHouseProducts/{productId}/{wareHouseId}/quantity
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param wareHouseId
|
* @param wareHouseId
|
||||||
* @param patchWareHouseProductQuantityDto
|
* @param patchWareHouseProductQuantityDto
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetWareHouseProductDto>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetWareHouseProductDto>>;
|
||||||
context?: HttpContext,
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetWareHouseProductDto>>;
|
||||||
transferCache?: boolean
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<GetWareHouseProductDto>;
|
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<GetWareHouseProductDto>>;
|
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<GetWareHouseProductDto>>;
|
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchWareHouseProductQuantityEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling patchWareHouseProductQuantityEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -195,33 +155,17 @@ export class WarehouseproductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({
|
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "wareHouseId", value: wareHouseId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/quantity`;
|
||||||
name: "productId",
|
const { basePath, withCredentials } = this.configuration;
|
||||||
value: productId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/${this.configuration.encodeParam({
|
|
||||||
name: "wareHouseId",
|
|
||||||
value: wareHouseId,
|
|
||||||
in: "path",
|
|
||||||
style: "simple",
|
|
||||||
explode: false,
|
|
||||||
dataType: "number",
|
|
||||||
dataFormat: "int32"
|
|
||||||
})}/quantity`;
|
|
||||||
const {basePath, withCredentials} = this.configuration;
|
|
||||||
return this.httpClient.request<GetWareHouseProductDto>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetWareHouseProductDto>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchWareHouseProductQuantityDto,
|
body: patchWareHouseProductQuantityDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* 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, HttpParameterCodec, HttpContext
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
} from '@angular/common/http';
|
||||||
} from '@angular/common/http';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import {CustomHttpParameterCodec} from '../encoder';
|
import { Observable } from 'rxjs';
|
||||||
import {Observable} from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GetWareHouseDto} from '../model/get-ware-house-dto';
|
import { GetWareHouseDto } from '../model/get-ware-house-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||||
import {Configuration} from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import {BaseService} from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class WarehousesService extends BaseService {
|
export class WarehousesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,26 +40,10 @@ export class WarehousesService extends BaseService {
|
|||||||
* @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.
|
||||||
*/
|
*/
|
||||||
public getAllWarehouseEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
public getAllWarehouseEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetWareHouseDto>>;
|
||||||
httpHeaderAccept?: 'application/json',
|
public getAllWarehouseEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetWareHouseDto>>>;
|
||||||
context?: HttpContext,
|
public getAllWarehouseEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetWareHouseDto>>>;
|
||||||
transferCache?: boolean
|
public getAllWarehouseEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||||
}): Observable<Array<GetWareHouseDto>>;
|
|
||||||
public getAllWarehouseEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpResponse<Array<GetWareHouseDto>>>;
|
|
||||||
public getAllWarehouseEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<HttpEvent<Array<GetWareHouseDto>>>;
|
|
||||||
public getAllWarehouseEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
|
||||||
httpHeaderAccept?: 'application/json',
|
|
||||||
context?: HttpContext,
|
|
||||||
transferCache?: boolean
|
|
||||||
}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -90,15 +74,15 @@ export class WarehousesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/wareHouses`;
|
let localVarPath = `/API/wareHouses`;
|
||||||
const {basePath, withCredentials} = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<GetWareHouseDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetWareHouseDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? {withCredentials} : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
||||||
import {Param} from './param';
|
import { Param } from './param';
|
||||||
|
|
||||||
export interface ConfigurationParameters {
|
export interface ConfigurationParameters {
|
||||||
/**
|
/**
|
||||||
* @deprecated Since 5.0. Use credentials instead
|
* @deprecated Since 5.0. Use credentials instead
|
||||||
*/
|
*/
|
||||||
apiKeys?: { [key: string]: string };
|
apiKeys?: {[ key: string ]: string};
|
||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
/**
|
/**
|
||||||
@@ -31,14 +31,14 @@ export interface ConfigurationParameters {
|
|||||||
* document. They should map to the value used for authentication
|
* document. They should map to the value used for authentication
|
||||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||||
*/
|
*/
|
||||||
credentials?: { [key: string]: string | (() => string | undefined) };
|
credentials?: {[ key: string ]: string | (() => string | undefined)};
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Configuration {
|
export class Configuration {
|
||||||
/**
|
/**
|
||||||
* @deprecated Since 5.0. Use credentials instead
|
* @deprecated Since 5.0. Use credentials instead
|
||||||
*/
|
*/
|
||||||
apiKeys?: { [key: string]: string };
|
apiKeys?: {[ key: string ]: string};
|
||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
/**
|
/**
|
||||||
@@ -64,19 +64,9 @@ export class Configuration {
|
|||||||
* document. They should map to the value used for authentication
|
* document. They should map to the value used for authentication
|
||||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||||
*/
|
*/
|
||||||
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;
|
||||||
}
|
}
|
||||||
@@ -118,7 +108,7 @@ export class Configuration {
|
|||||||
* @param contentTypes - the array of content types that are available for selection
|
* @param contentTypes - the array of content types that are available for selection
|
||||||
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
||||||
*/
|
*/
|
||||||
public selectHeaderContentType(contentTypes: string[]): string | undefined {
|
public selectHeaderContentType (contentTypes: string[]): string | undefined {
|
||||||
if (contentTypes.length === 0) {
|
if (contentTypes.length === 0) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {HttpParameterCodec} from '@angular/common/http';
|
import { HttpParameterCodec } from '@angular/common/http';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom HttpParameterCodec
|
* Custom HttpParameterCodec
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface AddQuotationProductDto {
|
export interface AddQuotationProductDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
quotationId?: number;
|
quotationId?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface ConnectUserDto {
|
export interface ConnectUserDto {
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateDelivererDto {
|
export interface CreateDelivererDto {
|
||||||
transporter?: string | null;
|
transporter?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateDeliveryNoteDto {
|
export interface CreateDeliveryNoteDto {
|
||||||
trackingNumber?: string | null;
|
trackingNumber?: string | null;
|
||||||
delivererId?: number;
|
delivererId?: number;
|
||||||
supplierId?: number;
|
supplierId?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePriceDto {
|
export interface CreatePriceDto {
|
||||||
sellingPrice?: number;
|
sellingPrice?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateProductQuotationDto {
|
export interface CreateProductQuotationDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {CreatePurchaseOrderProductDto} from './create-purchase-order-product-dto';
|
import { CreatePurchaseOrderProductDto } from './create-purchase-order-product-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePurchaseOrderDto {
|
export interface CreatePurchaseOrderDto {
|
||||||
purchaseConditions?: string | null;
|
purchaseConditions?: string | null;
|
||||||
supplierId?: number;
|
supplierId?: number;
|
||||||
products?: Array<CreatePurchaseOrderProductDto> | null;
|
products?: Array<CreatePurchaseOrderProductDto> | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePurchaseOrderProductDto {
|
export interface CreatePurchaseOrderProductDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePurchaseProductDto {
|
export interface CreatePurchaseProductDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {CreateProductQuotationDto} from './create-product-quotation-dto';
|
import { CreateProductQuotationDto } from './create-product-quotation-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface CreateQuotationDto {
|
export interface CreateQuotationDto {
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
conditionsSale?: string | null;
|
conditionsSale?: string | null;
|
||||||
customerId?: number;
|
customerId?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateSupplierDto {
|
export interface CreateSupplierDto {
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
email?: string | null;
|
email?: string | null;
|
||||||
phone?: string | null;
|
phone?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateUserDto {
|
export interface CreateUserDto {
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
fonction?: string | null;
|
fonction?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetCustomerDto {
|
export interface GetCustomerDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
note?: string | null;
|
note?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {GetDeliveryNoteDto} from './get-delivery-note-dto';
|
import { GetDeliveryNoteDto } from './get-delivery-note-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetDelivererDto {
|
export interface GetDelivererDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
transporter?: string | null;
|
transporter?: string | null;
|
||||||
deliveryNotes?: Array<GetDeliveryNoteDto> | null;
|
deliveryNotes?: Array<GetDeliveryNoteDto> | null;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {GetProductDeliveryDto} from './get-product-delivery-dto';
|
import { GetProductDeliveryDto } from './get-product-delivery-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetDeliveryNoteDto {
|
export interface GetDeliveryNoteDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
trackingNumber?: string | null;
|
trackingNumber?: string | null;
|
||||||
estimateDeliveryDate?: string;
|
estimateDeliveryDate?: string;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetPriceDto {
|
export interface GetPriceDto {
|
||||||
sellingPrice?: number;
|
sellingPrice?: number;
|
||||||
productId?: number;
|
productId?: number;
|
||||||
productReference?: string | null;
|
productReference?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetProductDeliveryDto {
|
export interface GetProductDeliveryDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
productReference?: string | null;
|
productReference?: string | null;
|
||||||
productName?: string | null;
|
productName?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetProductDto {
|
export interface GetProductDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
references?: string | null;
|
references?: string | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {GetPurchaseProductDto} from './get-purchase-product-dto';
|
import { GetPurchaseProductDto } from './get-purchase-product-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetPurchaseOrderDto {
|
export interface GetPurchaseOrderDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
purchaseConditions?: string | null;
|
purchaseConditions?: string | null;
|
||||||
supplierId?: number;
|
supplierId?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetPurchaseProductDto {
|
export interface GetPurchaseProductDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
productReference?: string | null;
|
productReference?: string | null;
|
||||||
productName?: string | null;
|
productName?: string | null;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {GetQuotationProductDto} from './get-quotation-product-dto';
|
import { GetQuotationProductDto } from './get-quotation-product-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetQuotationDto {
|
export interface GetQuotationDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
conditionsSale?: string | null;
|
conditionsSale?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetQuotationProductDto {
|
export interface GetQuotationProductDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
productId?: number;
|
productId?: number;
|
||||||
productReference?: string | null;
|
productReference?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetRefreshTokenDto {
|
export interface GetRefreshTokenDto {
|
||||||
token?: string | null;
|
token?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetSettingDto {
|
export interface GetSettingDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
electronicSignature?: string | null;
|
electronicSignature?: string | null;
|
||||||
logo?: string | null;
|
logo?: string | null;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import {GetPriceDto} from './get-price-dto';
|
import { GetPriceDto } from './get-price-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetSupplierDto {
|
export interface GetSupplierDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
email?: string | null;
|
email?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetTokenDto {
|
export interface GetTokenDto {
|
||||||
token?: string | null;
|
token?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetTotalQuantityDto {
|
export interface GetTotalQuantityDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
totalQuantity?: number;
|
totalQuantity?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserDto {
|
export interface GetUserDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetWareHouseDto {
|
export interface GetWareHouseDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetWareHouseProductDto {
|
export interface GetWareHouseProductDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
wareHouseId?: number;
|
wareHouseId?: number;
|
||||||
productId?: number;
|
productId?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchDeliveryNoteRealDeliveryDateDto {
|
export interface PatchDeliveryNoteRealDeliveryDateDto {
|
||||||
realDeliveryDate?: string;
|
realDeliveryDate?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchPriceSellingPriceDto {
|
export interface PatchPriceSellingPriceDto {
|
||||||
sellingPrice?: number;
|
sellingPrice?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchProductMinimalStockDto {
|
export interface PatchProductMinimalStockDto {
|
||||||
minimalQuantity?: number;
|
minimalQuantity?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchPurchaseOrderPurchaseConditionsDto {
|
export interface PatchPurchaseOrderPurchaseConditionsDto {
|
||||||
purchaseConditions?: string | null;
|
purchaseConditions?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchPurchaseProductQuantityDto {
|
export interface PatchPurchaseProductQuantityDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchQuotationConditionsSaleDto {
|
export interface PatchQuotationConditionsSaleDto {
|
||||||
conditionsSale?: string | null;
|
conditionsSale?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchQuotationMessageDto {
|
export interface PatchQuotationMessageDto {
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchQuotationProductQuantityDto {
|
export interface PatchQuotationProductQuantityDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchSupplierDeliveryDelayDto {
|
export interface PatchSupplierDeliveryDelayDto {
|
||||||
deliveryDelay?: number;
|
deliveryDelay?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchUserPasswordDto {
|
export interface PatchUserPasswordDto {
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchWareHouseProductQuantityDto {
|
export interface PatchWareHouseProductQuantityDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface RefreshTokenDto {
|
export interface RefreshTokenDto {
|
||||||
token?: string | null;
|
token?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateDelivererDto {
|
export interface UpdateDelivererDto {
|
||||||
transporter?: string | null;
|
transporter?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateDeliveryNoteDto {
|
export interface UpdateDeliveryNoteDto {
|
||||||
trackingNumber?: string | null;
|
trackingNumber?: string | null;
|
||||||
estimateDeliveryDate?: string;
|
estimateDeliveryDate?: string;
|
||||||
expeditionDate?: string;
|
expeditionDate?: string;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateProductDto {
|
export interface UpdateProductDto {
|
||||||
references?: string | null;
|
references?: string | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
duration?: number;
|
duration?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateQuotationDto {
|
export interface UpdateQuotationDto {
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
conditionsSale?: string | null;
|
conditionsSale?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateSupplierDto {
|
export interface UpdateSupplierDto {
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
email?: string | null;
|
email?: string | null;
|
||||||
phone?: string | null;
|
phone?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateUserDto {
|
export interface UpdateUserDto {
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
fonction?: string | null;
|
fonction?: string | null;
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
* Standard parameter styles defined by OpenAPI spec
|
* Standard parameter styles defined by OpenAPI spec
|
||||||
*/
|
*/
|
||||||
export type StandardParamStyle =
|
export type StandardParamStyle =
|
||||||
| 'matrix'
|
| 'matrix'
|
||||||
| 'label'
|
| 'label'
|
||||||
| 'form'
|
| 'form'
|
||||||
| 'simple'
|
| 'simple'
|
||||||
| 'spaceDelimited'
|
| 'spaceDelimited'
|
||||||
| 'pipeDelimited'
|
| 'pipeDelimited'
|
||||||
| 'deepObject'
|
| 'deepObject'
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
||||||
@@ -25,13 +25,13 @@ export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|||||||
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
||||||
*/
|
*/
|
||||||
export type StandardDataType =
|
export type StandardDataType =
|
||||||
| "integer"
|
| "integer"
|
||||||
| "number"
|
| "number"
|
||||||
| "boolean"
|
| "boolean"
|
||||||
| "string"
|
| "string"
|
||||||
| "object"
|
| "object"
|
||||||
| "array"
|
| "array"
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard {@link DataType}s plus your own types/classes.
|
* Standard {@link DataType}s plus your own types/classes.
|
||||||
@@ -42,16 +42,16 @@ export type DataType = StandardDataType | string;
|
|||||||
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
||||||
*/
|
*/
|
||||||
export type StandardDataFormat =
|
export type StandardDataFormat =
|
||||||
| "int32"
|
| "int32"
|
||||||
| "int64"
|
| "int64"
|
||||||
| "float"
|
| "float"
|
||||||
| "double"
|
| "double"
|
||||||
| "byte"
|
| "byte"
|
||||||
| "binary"
|
| "binary"
|
||||||
| "date"
|
| "date"
|
||||||
| "date-time"
|
| "date-time"
|
||||||
| "password"
|
| "password"
|
||||||
;
|
;
|
||||||
|
|
||||||
export type DataFormat = StandardDataFormat | string;
|
export type DataFormat = StandardDataFormat | string;
|
||||||
|
|
||||||
@@ -59,11 +59,11 @@ export type DataFormat = StandardDataFormat | string;
|
|||||||
* The parameter to encode.
|
* The parameter to encode.
|
||||||
*/
|
*/
|
||||||
export interface Param {
|
export interface Param {
|
||||||
name: string;
|
name: string;
|
||||||
value: unknown;
|
value: unknown;
|
||||||
in: ParamLocation;
|
in: ParamLocation;
|
||||||
style: ParamStyle,
|
style: ParamStyle,
|
||||||
explode: boolean;
|
explode: boolean;
|
||||||
dataType: DataType;
|
dataType: DataType;
|
||||||
dataFormat: DataFormat | undefined;
|
dataFormat: DataFormat | undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import {EnvironmentProviders, makeEnvironmentProviders} from "@angular/core";
|
import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core";
|
||||||
import {Configuration, ConfigurationParameters} from './configuration';
|
import { Configuration, ConfigurationParameters } from './configuration';
|
||||||
import {BASE_PATH} from './variables';
|
import { BASE_PATH } from './variables';
|
||||||
|
|
||||||
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
||||||
export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {
|
export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {
|
||||||
return makeEnvironmentProviders([
|
return makeEnvironmentProviders([
|
||||||
typeof configOrBasePath === "string"
|
typeof configOrBasePath === "string"
|
||||||
? {provide: BASE_PATH, useValue: configOrBasePath}
|
? { provide: BASE_PATH, useValue: configOrBasePath }
|
||||||
: {
|
: {
|
||||||
provide: Configuration,
|
provide: Configuration,
|
||||||
useValue: new Configuration({...configOrBasePath}),
|
useValue: new Configuration({ ...configOrBasePath }),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import {InjectionToken} from '@angular/core';
|
import { InjectionToken } from '@angular/core';
|
||||||
|
|
||||||
export const BASE_PATH = new InjectionToken<string>('basePath');
|
export const BASE_PATH = new InjectionToken<string>('basePath');
|
||||||
export const COLLECTION_FORMATS = {
|
export const COLLECTION_FORMATS = {
|
||||||
|
|||||||
Reference in New Issue
Block a user