From d8d36d5c1eb94726228b818db7e2d1643cd095ee Mon Sep 17 00:00:00 2001 From: Cristiano Date: Thu, 28 May 2026 16:23:30 +0200 Subject: [PATCH] OpenAPI with updated backend --- package-lock.json | 136 ++++- package.json | 1 + src/app/services/api/README.md | 6 +- src/app/services/api/api.base.service.ts | 10 +- src/app/services/api/api.module.ts | 22 +- src/app/services/api/api/api.ts | 42 +- src/app/services/api/api/customers.service.ts | 58 +- .../services/api/api/deliverers.service.ts | 225 ++------ .../services/api/api/deliverynotes.service.ts | 352 +++--------- src/app/services/api/api/prices.service.ts | 85 +-- src/app/services/api/api/products.service.ts | 273 +++------ .../api/api/purchaseorders.service.ts | 443 ++++----------- .../services/api/api/quotations.service.ts | 534 +++++------------- src/app/services/api/api/refresh.service.ts | 62 +- src/app/services/api/api/settings.service.ts | 128 ++--- src/app/services/api/api/suppliers.service.ts | 394 ++++--------- src/app/services/api/api/user.service.ts | 58 +- src/app/services/api/api/users.service.ts | 265 +++------ .../api/api/warehouseproducts.service.ts | 128 ++--- .../services/api/api/warehouses.service.ts | 58 +- src/app/services/api/configuration.ts | 26 +- src/app/services/api/encoder.ts | 5 +- .../api/model/add-quotation-product-dto.ts | 4 +- .../services/api/model/connect-user-dto.ts | 4 +- .../api/model/create-deliverer-dto.ts | 4 +- .../api/model/create-delivery-note-dto.ts | 4 +- .../services/api/model/create-price-dto.ts | 4 +- .../api/model/create-product-quotation-dto.ts | 4 +- .../api/model/create-purchase-order-dto.ts | 6 +- .../create-purchase-order-product-dto.ts | 4 +- .../api/model/create-purchase-product-dto.ts | 4 +- .../api/model/create-quotation-dto.ts | 6 +- .../services/api/model/create-supplier-dto.ts | 4 +- src/app/services/api/model/create-user-dto.ts | 4 +- .../services/api/model/get-customer-dto.ts | 4 +- .../services/api/model/get-deliverer-dto.ts | 6 +- .../api/model/get-delivery-note-dto.ts | 6 +- src/app/services/api/model/get-price-dto.ts | 4 +- .../api/model/get-product-delivery-dto.ts | 4 +- src/app/services/api/model/get-product-dto.ts | 4 +- .../api/model/get-purchase-order-dto.ts | 6 +- .../api/model/get-purchase-product-dto.ts | 4 +- .../services/api/model/get-quotation-dto.ts | 6 +- .../api/model/get-quotation-product-dto.ts | 4 +- .../api/model/get-refresh-token-dto.ts | 4 +- src/app/services/api/model/get-setting-dto.ts | 4 +- .../services/api/model/get-supplier-dto.ts | 6 +- src/app/services/api/model/get-token-dto.ts | 4 +- .../api/model/get-total-quantity-dto.ts | 4 +- src/app/services/api/model/get-user-dto.ts | 4 +- .../services/api/model/get-ware-house-dto.ts | 4 +- .../api/model/get-ware-house-product-dto.ts | 4 +- ...ch-delivery-note-real-delivery-date-dto.ts | 4 +- .../model/patch-price-selling-price-dto.ts | 4 +- .../model/patch-product-minimal-stock-dto.ts | 4 +- ...-purchase-order-purchase-conditions-dto.ts | 4 +- .../patch-purchase-product-quantity-dto.ts | 4 +- .../patch-quotation-conditions-sale-dto.ts | 4 +- .../api/model/patch-quotation-message-dto.ts | 4 +- .../patch-quotation-product-quantity-dto.ts | 4 +- .../patch-supplier-delivery-delay-dto.ts | 4 +- .../api/model/patch-user-password-dto.ts | 4 +- .../patch-ware-house-product-quantity-dto.ts | 4 +- .../services/api/model/refresh-token-dto.ts | 4 +- .../api/model/update-deliverer-dto.ts | 4 +- .../api/model/update-delivery-note-dto.ts | 4 +- .../services/api/model/update-product-dto.ts | 4 +- .../api/model/update-quotation-dto.ts | 4 +- .../services/api/model/update-supplier-dto.ts | 4 +- src/app/services/api/model/update-user-dto.ts | 4 +- src/app/services/api/param.ts | 64 +-- src/app/services/api/provide-api.ts | 10 +- src/app/services/api/variables.ts | 2 +- 73 files changed, 1134 insertions(+), 2459 deletions(-) diff --git a/package-lock.json b/package-lock.json index 45c2168..0263ae2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "browser-image-compression": "^2.0.2", "ng-zorro-antd": "^20.4.0", "postcss": "^8.5.6", + "rimraf": "^6.1.3", "rxjs": "~7.8.0", "tailwindcss": "^4.1.17", "tslib": "^2.3.0", @@ -502,7 +503,6 @@ "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.11.tgz", "integrity": "sha512-zQ8xlyUBS+UDAUKk7z/hhWdTtQU2oc/Dwo7jXpyrYlz9y2X1A6sAZpUigdYpbrBkIaNs3MplJevgMiCm3kmN8g==", "license": "MIT", - "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -519,7 +519,6 @@ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.11.tgz", "integrity": "sha512-3O0iMPttD8a4QQQrjVfIjboiZZ17ErkZuqK8BXJBTn2rplpkq1m3kVhgsmzN2OANRR05GF9Ed1dTf8ycTrO1yg==", "license": "MIT", - "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -533,7 +532,6 @@ "integrity": "sha512-u6T8kxj7LzK3btEln6Vd8y7p+O1eNXrLiGwqPuRF/QoyjBrRkTYufZ1I4TvzUxdd0ot6mPDRfdmiD15q//Y+oQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/core": "7.28.3", "@jridgewell/sourcemap-codec": "^1.4.14", @@ -566,7 +564,6 @@ "resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.11.tgz", "integrity": "sha512-tOXlxG0SI9Yy1b/ntGyBahfffDpFg7vAbAt+9riOb5ZZ8GYyyOzg78Lqa/lrdBVEG0PXdDjEa0MV93qCyqwYlg==", "license": "MIT", - "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -592,7 +589,6 @@ "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.11.tgz", "integrity": "sha512-jXDvW6a9HUzmLmvgPE+hVoZzc6QJBtQ1kYNn/FZDhbtmjRThJtaMW9YfS0Vz/a9KT9cxBf+8O8Q+yspvgsh3fg==", "license": "MIT", - "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -611,7 +607,6 @@ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.11.tgz", "integrity": "sha512-hh+8O8m4QzYYlQr9WGew472P37GF1u64NF3HfHmUKJ0xSqqTOHfpni3utev8upJAFJXBKOUZETgeHu2JRcGavg==", "license": "MIT", - "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -634,7 +629,6 @@ "resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.11.tgz", "integrity": "sha512-kuv7Yso7GY3tfRtQN0kW4v2Or4NUEBdjxTz5C8YuAhGDpiKXxDNkXzFliYTVWpJkr3EkTuR9mt9IAc+wxof3Pw==", "license": "MIT", - "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -716,7 +710,6 @@ "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.27.1", @@ -1658,7 +1651,6 @@ "integrity": "sha512-nqhDw2ZcAUrKNPwhjinJny903bRhI0rQhiDz1LksjeRxqa36i3l75+4iXbOy0rlDpLJGxqtgoPavQjmmyS5UJw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@inquirer/checkbox": "^4.2.1", "@inquirer/confirm": "^5.1.14", @@ -2518,7 +2510,6 @@ "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.9.tgz", "integrity": "sha512-zDntUTReRbAThIfSp3dQZ9kKqI+LjgLp5YZN5c1bgNRDuoeLySAoZg46Bg1a+uV8TMgIRziHocglKGNzr6l+bQ==", "license": "MIT", - "peer": true, "dependencies": { "file-type": "21.1.0", "iterare": "1.2.1", @@ -4282,7 +4273,6 @@ "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz", "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==", "license": "MIT", - "peer": true, "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.4", @@ -4462,7 +4452,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "baseline-browser-mapping": "^2.8.25", "caniuse-lite": "^1.0.30001754", @@ -5661,7 +5650,6 @@ "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.0", @@ -6917,7 +6905,6 @@ "integrity": "sha512-j1n1IuTX1VQjIy3tT7cyGbX7nvQOsFLoIqobZv4ttI5axP923gA44zUj6miiA6R5Aoms4sEGVIIcucXUbRI14g==", "devOptional": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "copy-anything": "^2.0.1", "parse-node-version": "^1.0.1", @@ -7205,7 +7192,6 @@ "integrity": "sha512-SL0JY3DaxylDuo/MecFeiC+7pedM0zia33zl0vcjgwcq1q1FWWF1To9EIauPbl8GbMCU0R2e0uJ8bZunhYKD2g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "cli-truncate": "^4.0.0", "colorette": "^2.0.20", @@ -7594,10 +7580,10 @@ } }, "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "license": "ISC", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "license": "BlueOak-1.0.0", "engines": { "node": ">=16 || 14 >=14.17" } @@ -8403,7 +8389,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, "license": "BlueOak-1.0.0" }, "node_modules/pacote": { @@ -8861,8 +8846,7 @@ "version": "0.2.2", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", - "license": "Apache-2.0", - "peer": true + "license": "Apache-2.0" }, "node_modules/require-directory": { "version": "2.1.1", @@ -8938,6 +8922,103 @@ "dev": true, "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": { "version": "4.52.3", "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", "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", "license": "Apache-2.0", - "peer": true, "dependencies": { "tslib": "^2.1.0" } @@ -9047,7 +9127,6 @@ "integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==", "devOptional": true, "license": "MIT", - "peer": true, "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", @@ -9796,8 +9875,7 @@ "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD", - "peer": true + "license": "0BSD" }, "node_modules/tuf-js": { "version": "3.1.0", @@ -9847,7 +9925,6 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -10014,7 +10091,6 @@ "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.11.tgz", "integrity": "sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==", "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", @@ -10402,7 +10478,6 @@ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "dev": true, "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } @@ -10421,8 +10496,7 @@ "version": "0.15.1", "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.15.1.tgz", "integrity": "sha512-XE96n56IQpJM7NAoXswY3XRLcWFW83xe0BiAOeMD7K5k5xecOeul3Qcpx6GqEeeHNkW5DWL5zOyTbEfB4eti8w==", - "license": "MIT", - "peer": true + "license": "MIT" } } } diff --git a/package.json b/package.json index f329542..29eea29 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "browser-image-compression": "^2.0.2", "ng-zorro-antd": "^20.4.0", "postcss": "^8.5.6", + "rimraf": "^6.1.3", "rxjs": "~7.8.0", "tailwindcss": "^4.1.17", "tslib": "^2.3.0", diff --git a/src/app/services/api/README.md b/src/app/services/api/README.md index 29f22fe..c2ba935 100644 --- a/src/app/services/api/README.md +++ b/src/app/services/api/README.md @@ -73,9 +73,7 @@ export const appConfig: ApplicationConfig = { ``` **NOTE** -If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you -can still import an Angular module: - +If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: ```typescript 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 - [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 diff --git a/src/app/services/api/api.base.service.ts b/src/app/services/api/api.base.service.ts index ed63bc3..1e0f210 100644 --- a/src/app/services/api/api.base.service.ts +++ b/src/app/services/api/api.base.service.ts @@ -1,15 +1,15 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http'; -import {CustomHttpParameterCodec} from './encoder'; -import {Configuration} from './configuration'; +import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; +import { CustomHttpParameterCodec } from './encoder'; +import { Configuration } from './configuration'; export class BaseService { protected basePath = 'http://localhost:5298'; @@ -17,7 +17,7 @@ export class BaseService { public configuration: Configuration; public encoder: HttpParameterCodec; - constructor(basePath?: string | string[], configuration?: Configuration) { + constructor(basePath?: string|string[], configuration?: Configuration) { this.configuration = configuration || new Configuration(); if (typeof this.configuration.basePath !== 'string') { const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; diff --git a/src/app/services/api/api.module.ts b/src/app/services/api/api.module.ts index 68ca8d7..58d341f 100644 --- a/src/app/services/api/api.module.ts +++ b/src/app/services/api/api.module.ts @@ -1,30 +1,30 @@ -import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core'; -import {Configuration} from './configuration'; -import {HttpClient} from '@angular/common/http'; +import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; +import { Configuration } from './configuration'; +import { HttpClient } from '@angular/common/http'; @NgModule({ - imports: [], - declarations: [], - exports: [], - providers: [] + imports: [], + declarations: [], + exports: [], + providers: [] }) export class ApiModule { public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders { return { ngModule: ApiModule, - providers: [{provide: Configuration, useFactory: configurationFactory}] + providers: [ { provide: Configuration, useFactory: configurationFactory } ] }; } - constructor(@Optional() @SkipSelf() parentModule: ApiModule, - @Optional() http: HttpClient) { + constructor( @Optional() @SkipSelf() parentModule: ApiModule, + @Optional() http: HttpClient) { if (parentModule) { throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); } if (!http) { 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'); } } } diff --git a/src/app/services/api/api/api.ts b/src/app/services/api/api/api.ts index 8be993e..060b5a1 100644 --- a/src/app/services/api/api/api.ts +++ b/src/app/services/api/api/api.ts @@ -1,43 +1,29 @@ export * from './customers.service'; -import {CustomersService} from './customers.service'; - +import { CustomersService } from './customers.service'; export * from './deliverers.service'; -import {DeliverersService} from './deliverers.service'; - +import { DeliverersService } from './deliverers.service'; export * from './deliverynotes.service'; -import {DeliverynotesService} from './deliverynotes.service'; - +import { DeliverynotesService } from './deliverynotes.service'; export * from './prices.service'; -import {PricesService} from './prices.service'; - +import { PricesService } from './prices.service'; export * from './products.service'; -import {ProductsService} from './products.service'; - +import { ProductsService } from './products.service'; export * from './purchaseorders.service'; -import {PurchaseordersService} from './purchaseorders.service'; - +import { PurchaseordersService } from './purchaseorders.service'; export * from './quotations.service'; -import {QuotationsService} from './quotations.service'; - +import { QuotationsService } from './quotations.service'; export * from './refresh.service'; -import {RefreshService} from './refresh.service'; - +import { RefreshService } from './refresh.service'; export * from './settings.service'; -import {SettingsService} from './settings.service'; - +import { SettingsService } from './settings.service'; export * from './suppliers.service'; -import {SuppliersService} from './suppliers.service'; - +import { SuppliersService } from './suppliers.service'; export * from './user.service'; -import {UserService} from './user.service'; - +import { UserService } from './user.service'; export * from './users.service'; -import {UsersService} from './users.service'; - +import { UsersService } from './users.service'; export * from './warehouseproducts.service'; -import {WarehouseproductsService} from './warehouseproducts.service'; - +import { WarehouseproductsService } from './warehouseproducts.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]; diff --git a/src/app/services/api/api/customers.service.ts b/src/app/services/api/api/customers.service.ts index 626e3d1..53415ce 100644 --- a/src/app/services/api/api/customers.service.ts +++ b/src/app/services/api/api/customers.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetCustomerDto} from '../model/get-customer-dto'; +import { GetCustomerDto } from '../model/get-customer-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } @@ -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 reportProgress flag to report request and response progress. */ - public getAllCustomersEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllCustomersEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllCustomersEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllCustomersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllCustomersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllCustomersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllCustomersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllCustomersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -90,15 +74,15 @@ export class CustomersService extends BaseService { } let localVarPath = `/API/customers`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/deliverers.service.ts b/src/app/services/api/api/deliverers.service.ts index b1b443a..7810c10 100644 --- a/src/app/services/api/api/deliverers.service.ts +++ b/src/app/services/api/api/deliverers.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,62 +9,46 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {CreateDelivererDto} from '../model/create-deliverer-dto'; +import { CreateDelivererDto } from '../model/create-deliverer-dto'; // @ts-ignore -import {GetDelivererDto} from '../model/get-deliverer-dto'; +import { GetDelivererDto } from '../model/get-deliverer-dto'; // @ts-ignore -import {UpdateDelivererDto} from '../model/update-deliverer-dto'; +import { UpdateDelivererDto } from '../model/update-deliverer-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @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 reportProgress flag to report request and response progress. */ - public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (createDelivererDto === null || createDelivererDto === undefined) { 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`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createDelivererDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -124,30 +108,14 @@ export class DeliverersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (delivererId === null || delivererId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -178,24 +147,16 @@ export class DeliverersService extends BaseService { } } - let localVarPath = `/API/deliverers/${this.configuration.encodeParam({ - name: "delivererId", - value: delivererId, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "delivererId", value: delivererId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllDelivererEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllDelivererEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllDelivererEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllDelivererEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllDelivererEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllDelivererEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -256,15 +201,15 @@ export class DeliverersService extends BaseService { } let localVarPath = `/API/deliverers`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -272,30 +217,14 @@ export class DeliverersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (delivererId === null || delivererId === undefined) { 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({ - name: "delivererId", - value: delivererId, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "delivererId", value: delivererId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -353,31 +274,15 @@ export class DeliverersService extends BaseService { /** * @endpoint put /API/deliverers/{id} - * @param id - * @param updateDelivererDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateDelivererDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/deliverynotes.service.ts b/src/app/services/api/api/deliverynotes.service.ts index d3402bb..811e64c 100644 --- a/src/app/services/api/api/deliverynotes.service.ts +++ b/src/app/services/api/api/deliverynotes.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,64 +9,48 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {CreateDeliveryNoteDto} from '../model/create-delivery-note-dto'; +import { CreateDeliveryNoteDto } from '../model/create-delivery-note-dto'; // @ts-ignore -import {GetDeliveryNoteDto} from '../model/get-delivery-note-dto'; +import { GetDeliveryNoteDto } from '../model/get-delivery-note-dto'; // @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 -import {UpdateDeliveryNoteDto} from '../model/update-delivery-note-dto'; +import { UpdateDeliveryNoteDto } from '../model/update-delivery-note-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @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 reportProgress flag to report request and response progress. */ - public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (createDeliveryNoteDto === null || createDeliveryNoteDto === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -107,16 +92,16 @@ export class DeliverynotesService extends BaseService { } let localVarPath = `/API/deliveryNotes`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createDeliveryNoteDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -124,30 +109,14 @@ export class DeliverynotesService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteDeliveryNoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteDeliveryNoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteDeliveryNoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteDeliveryNoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteDeliveryNoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteDeliveryNoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -178,24 +148,16 @@ export class DeliverynotesService extends BaseService { } } - let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllDeliveryNoteEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllDeliveryNoteEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllDeliveryNoteEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllDeliveryNoteEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllDeliveryNoteEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllDeliveryNoteEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -256,15 +202,15 @@ export class DeliverynotesService extends BaseService { } let localVarPath = `/API/deliveryNotes`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllDeliveryNotesNotArrivedEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllDeliveryNotesNotArrivedEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllDeliveryNotesNotArrivedEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -325,15 +255,15 @@ export class DeliverynotesService extends BaseService { } let localVarPath = `/API/deliveryNotes/validation`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -341,30 +271,14 @@ export class DeliverynotesService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getDeliveryNoteEndpoint(deliveryNoteId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDeliveryNoteEndpoint(deliveryNoteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (deliveryNoteId === null || deliveryNoteId === undefined) { 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({ - name: "deliveryNoteId", - value: deliveryNoteId, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "deliveryNoteId", value: deliveryNoteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -422,30 +328,14 @@ export class DeliverynotesService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getDeliveryNotePdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getDeliveryNotePdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getDeliveryNotePdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable; + public getDeliveryNotePdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDeliveryNotePdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDeliveryNotePdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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; - let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/pdf`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", 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}`, { context: localVarHttpContext, responseType: "blob", - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -492,31 +374,15 @@ export class DeliverynotesService extends BaseService { /** * @endpoint patch /API/deliveryNotes/{id} - * @param id - * @param patchDeliveryNoteRealDeliveryDateDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -559,25 +426,17 @@ export class DeliverynotesService extends BaseService { } } - let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchDeliveryNoteRealDeliveryDateDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -585,31 +444,15 @@ export class DeliverynotesService extends BaseService { /** * @endpoint put /API/deliveryNotes/{id} - * @param id - * @param updateDeliveryNoteDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -652,25 +496,17 @@ export class DeliverynotesService extends BaseService { } } - let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateDeliveryNoteDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/prices.service.ts b/src/app/services/api/api/prices.service.ts index 3aa2f34..dd9463a 100644 --- a/src/app/services/api/api/prices.service.ts +++ b/src/app/services/api/api/prices.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,60 +9,44 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {PatchPriceSellingPriceDto} from '../model/patch-price-selling-price-dto'; +import { PatchPriceSellingPriceDto } from '../model/patch-price-selling-price-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @endpoint patch /API/prices/{productId}/{supplierId}/SellingPrice - * @param productId - * @param supplierId - * @param patchPriceSellingPriceDto + * @param productId + * @param supplierId + * @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 reportProgress flag to report request and response progress. */ - public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -108,33 +93,17 @@ export class PricesService extends BaseService { } } - 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`; - const {basePath, withCredentials} = this.configuration; + 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`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchPriceSellingPriceDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/products.service.ts b/src/app/services/api/api/products.service.ts index f957266..1d7e297 100644 --- a/src/app/services/api/api/products.service.ts +++ b/src/app/services/api/api/products.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,62 +9,46 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetProductDto} from '../model/get-product-dto'; +import { GetProductDto } from '../model/get-product-dto'; // @ts-ignore -import {PatchProductMinimalStockDto} from '../model/patch-product-minimal-stock-dto'; +import { PatchProductMinimalStockDto } from '../model/patch-product-minimal-stock-dto'; // @ts-ignore -import {UpdateProductDto} from '../model/update-product-dto'; +import { UpdateProductDto } from '../model/update-product-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @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 reportProgress flag to report request and response progress. */ - public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteProductEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteProductEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -95,24 +80,16 @@ export class ProductsService extends BaseService { } } - let localVarPath = `/API/products/${this.configuration.encodeParam({ - name: "productId", - value: productId, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/products/${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('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllProductsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllProductsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllProductsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllProductsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllProductsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllProductsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -173,15 +134,15 @@ export class ProductsService extends BaseService { } let localVarPath = `/API/products`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllProductsUnderLimitEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllProductsUnderLimitEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllProductsUnderLimitEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllProductsUnderLimitEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllProductsUnderLimitEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllProductsUnderLimitEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -242,15 +187,15 @@ export class ProductsService extends BaseService { } let localVarPath = `/API/products/underLimit`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -258,30 +203,14 @@ export class ProductsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getProductEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getProductEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getProductEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getProductEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getProductEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getProductEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -339,31 +260,15 @@ export class ProductsService extends BaseService { /** * @endpoint patch /API/products/{id}/MinimalStock - * @param id - * @param patchProductMinimalStockDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -406,25 +312,17 @@ export class ProductsService extends BaseService { } } - let localVarPath = `/API/products/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/MinimalStock`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/MinimalStock`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchProductMinimalStockDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -432,31 +330,15 @@ export class ProductsService extends BaseService { /** * @endpoint put /API/products/{id} - * @param id - * @param updateProductDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -499,25 +382,17 @@ export class ProductsService extends BaseService { } } - let localVarPath = `/API/products/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateProductDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/purchaseorders.service.ts b/src/app/services/api/api/purchaseorders.service.ts index 1597427..90f0984 100644 --- a/src/app/services/api/api/purchaseorders.service.ts +++ b/src/app/services/api/api/purchaseorders.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,68 +9,52 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {CreatePurchaseOrderDto} from '../model/create-purchase-order-dto'; +import { CreatePurchaseOrderDto } from '../model/create-purchase-order-dto'; // @ts-ignore -import {CreatePurchaseProductDto} from '../model/create-purchase-product-dto'; +import { CreatePurchaseProductDto } from '../model/create-purchase-product-dto'; // @ts-ignore -import {GetPurchaseOrderDto} from '../model/get-purchase-order-dto'; +import { GetPurchaseOrderDto } from '../model/get-purchase-order-dto'; // @ts-ignore -import {PatchPurchaseOrderPurchaseConditionsDto} from '../model/patch-purchase-order-purchase-conditions-dto'; +import { PatchPurchaseOrderPurchaseConditionsDto } from '../model/patch-purchase-order-purchase-conditions-dto'; // @ts-ignore -import {PatchPurchaseProductQuantityDto} from '../model/patch-purchase-product-quantity-dto'; +import { PatchPurchaseProductQuantityDto } from '../model/patch-purchase-product-quantity-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @endpoint post /API/purchaseOrders/{purchaseOrderId}/{productId} - * @param purchaseOrderId - * @param productId - * @param createPurchaseProductDto + * @param purchaseOrderId + * @param productId + * @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 reportProgress flag to report request and response progress. */ - public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (purchaseOrderId === null || purchaseOrderId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -116,33 +101,17 @@ export class PurchaseordersService extends BaseService { } } - 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" - })}`; - const {basePath, withCredentials} = this.configuration; + 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"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createPurchaseProductDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -150,30 +119,14 @@ export class PurchaseordersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (createPurchaseOrderDto === null || createPurchaseOrderDto === undefined) { 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`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createPurchaseOrderDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -233,31 +186,15 @@ export class PurchaseordersService extends BaseService { /** * @endpoint delete /API/purchaseOrders/{productId}/{purchaseOrderId} - * @param productId - * @param purchaseOrderId + * @param productId + * @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 reportProgress flag to report request and response progress. */ - public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -291,32 +229,16 @@ export class PurchaseordersService extends BaseService { } } - 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" - })}`; - const {basePath, withCredentials} = this.configuration; + 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"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -324,30 +246,14 @@ export class PurchaseordersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public deletePurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deletePurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deletePurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deletePurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deletePurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deletePurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deletePurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deletePurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -378,24 +285,16 @@ export class PurchaseordersService extends BaseService { } } - let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllPurchaseOrderEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllPurchaseOrderEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllPurchaseOrderEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllPurchaseOrderEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllPurchaseOrderEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllPurchaseOrderEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -456,15 +339,15 @@ export class PurchaseordersService extends BaseService { } let localVarPath = `/API/purchaseOrders`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -472,30 +355,14 @@ export class PurchaseordersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getPurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getPurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getPurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getPurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -553,30 +412,14 @@ export class PurchaseordersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getPurchaseOrderPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getPurchaseOrderPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getPurchaseOrderPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable; + public getPurchaseOrderPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPurchaseOrderPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPurchaseOrderPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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; - let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/pdf`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", 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}`, { context: localVarHttpContext, responseType: "blob", - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -623,31 +458,15 @@ export class PurchaseordersService extends BaseService { /** * @endpoint patch /API/purchaseOrders/{id}/PurchaseConditions - * @param id - * @param patchPurchaseOrderPurchaseConditionsDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -690,25 +510,17 @@ export class PurchaseordersService extends BaseService { } } - let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/PurchaseConditions`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/PurchaseConditions`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchPurchaseOrderPurchaseConditionsDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -716,32 +528,16 @@ export class PurchaseordersService extends BaseService { /** * @endpoint patch /API/purchaseOrders/{productId}/{purchaseOrderId}/Quantity - * @param productId - * @param purchaseOrderId - * @param patchPurchaseProductQuantityDto + * @param productId + * @param purchaseOrderId + * @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 reportProgress flag to report request and response progress. */ - public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -787,33 +584,17 @@ export class PurchaseordersService extends BaseService { } } - 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`; - const {basePath, withCredentials} = this.configuration; + 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`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchPurchaseProductQuantityDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/quotations.service.ts b/src/app/services/api/api/quotations.service.ts index f1fb69d..362f1c4 100644 --- a/src/app/services/api/api/quotations.service.ts +++ b/src/app/services/api/api/quotations.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,71 +9,55 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {AddQuotationProductDto} from '../model/add-quotation-product-dto'; +import { AddQuotationProductDto } from '../model/add-quotation-product-dto'; // @ts-ignore -import {CreateQuotationDto} from '../model/create-quotation-dto'; +import { CreateQuotationDto } from '../model/create-quotation-dto'; // @ts-ignore -import {GetQuotationDto} from '../model/get-quotation-dto'; +import { GetQuotationDto } from '../model/get-quotation-dto'; // @ts-ignore -import {PatchQuotationConditionsSaleDto} from '../model/patch-quotation-conditions-sale-dto'; +import { PatchQuotationConditionsSaleDto } from '../model/patch-quotation-conditions-sale-dto'; // @ts-ignore -import {PatchQuotationMessageDto} from '../model/patch-quotation-message-dto'; +import { PatchQuotationMessageDto } from '../model/patch-quotation-message-dto'; // @ts-ignore -import {PatchQuotationProductQuantityDto} from '../model/patch-quotation-product-quantity-dto'; +import { PatchQuotationProductQuantityDto } from '../model/patch-quotation-product-quantity-dto'; // @ts-ignore -import {UpdateQuotationDto} from '../model/update-quotation-dto'; +import { UpdateQuotationDto } from '../model/update-quotation-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @endpoint post /API/quotations/{productId}/products - * @param productId - * @param addQuotationProductDto + * @param productId + * @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 reportProgress flag to report request and response progress. */ - public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -116,25 +101,17 @@ export class QuotationsService extends BaseService { } } - let localVarPath = `/API/quotations/${this.configuration.encodeParam({ - name: "productId", - value: productId, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/products`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/products`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: addQuotationProductDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -142,30 +119,14 @@ export class QuotationsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (createQuotationDto === null || createQuotationDto === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -206,16 +168,16 @@ export class QuotationsService extends BaseService { } let localVarPath = `/API/quotations`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createQuotationDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -223,31 +185,15 @@ export class QuotationsService extends BaseService { /** * @endpoint delete /API/quotations/{productId}/{quotationId} - * @param productId - * @param quotationId + * @param productId + * @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 reportProgress flag to report request and response progress. */ - public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -281,32 +228,16 @@ export class QuotationsService extends BaseService { } } - 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" - })}`; - const {basePath, withCredentials} = this.configuration; + 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"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -314,30 +245,14 @@ export class QuotationsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public deleteQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -368,24 +284,16 @@ export class QuotationsService extends BaseService { } } - let localVarPath = `/API/quotations/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllQuotationEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllQuotationEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllQuotationEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllQuotationEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllQuotationEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllQuotationEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -446,15 +338,15 @@ export class QuotationsService extends BaseService { } let localVarPath = `/API/quotations`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -462,30 +354,14 @@ export class QuotationsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -543,30 +411,14 @@ export class QuotationsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getQuotationPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getQuotationPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getQuotationPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/pdf', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable; + public getQuotationPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable>; + public getQuotationPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable>; + public getQuotationPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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; - let localVarPath = `/API/quotations/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/pdf`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", 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}`, { context: localVarHttpContext, responseType: "blob", - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -613,31 +457,15 @@ export class QuotationsService extends BaseService { /** * @endpoint patch /API/quotations/{id}/saleConditions - * @param id - * @param patchQuotationConditionsSaleDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -680,25 +509,17 @@ export class QuotationsService extends BaseService { } } - let localVarPath = `/API/quotations/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/saleConditions`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/saleConditions`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchQuotationConditionsSaleDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -706,31 +527,15 @@ export class QuotationsService extends BaseService { /** * @endpoint patch /API/quotations/{id}/message - * @param id - * @param patchQuotationMessageDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -773,25 +579,17 @@ export class QuotationsService extends BaseService { } } - let localVarPath = `/API/quotations/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/message`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/message`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchQuotationMessageDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -799,32 +597,16 @@ export class QuotationsService extends BaseService { /** * @endpoint patch /API/quotations/{productId}/{quotationId}/Quantity - * @param productId - * @param quotationId - * @param patchQuotationProductQuantityDto + * @param productId + * @param quotationId + * @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 reportProgress flag to report request and response progress. */ - public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -870,33 +653,17 @@ export class QuotationsService extends BaseService { } } - 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`; - const {basePath, withCredentials} = this.configuration; + 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`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchQuotationProductQuantityDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -904,31 +671,15 @@ export class QuotationsService extends BaseService { /** * @endpoint put /API/quotations/{id} - * @param id - * @param updateQuotationDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -971,25 +723,17 @@ export class QuotationsService extends BaseService { } } - let localVarPath = `/API/quotations/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateQuotationDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/refresh.service.ts b/src/app/services/api/api/refresh.service.ts index 4497a1f..e9ef225 100644 --- a/src/app/services/api/api/refresh.service.ts +++ b/src/app/services/api/api/refresh.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,60 +9,44 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetRefreshTokenDto} from '../model/get-refresh-token-dto'; +import { GetRefreshTokenDto } from '../model/get-refresh-token-dto'; // @ts-ignore -import {RefreshTokenDto} from '../model/refresh-token-dto'; +import { RefreshTokenDto } from '../model/refresh-token-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @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 reportProgress flag to report request and response progress. */ - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (refreshTokenDto === null || refreshTokenDto === undefined) { 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`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: refreshTokenDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/settings.service.ts b/src/app/services/api/api/settings.service.ts index 2fec76e..4627a7e 100644 --- a/src/app/services/api/api/settings.service.ts +++ b/src/app/services/api/api/settings.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetSettingDto} from '../model/get-setting-dto'; +import { GetSettingDto } from '../model/get-setting-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } @@ -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 reportProgress flag to report request and response progress. */ - public getSettingEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getSettingEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getSettingEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getSettingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getSettingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getSettingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSettingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSettingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -90,15 +74,15 @@ export class SettingsService extends BaseService { } let localVarPath = `/API/settings`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -106,37 +90,22 @@ export class SettingsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSettingElectronicSignatureEndpoint(electronicSignature?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; // authentication (JWTBearerAuth) required 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -180,16 +149,16 @@ export class SettingsService extends BaseService { } let localVarPath = `/API/settings/electronicSignature`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -197,37 +166,22 @@ export class SettingsService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public patchSettingLogoEndpoint(logo?: Blob, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchSettingLogoEndpoint(logo?: Blob, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchSettingLogoEndpoint(logo?: Blob, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchSettingLogoEndpoint(logo?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchSettingLogoEndpoint(logo?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchSettingLogoEndpoint(logo?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSettingLogoEndpoint(logo?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSettingLogoEndpoint(logo?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; // authentication (JWTBearerAuth) required 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -271,16 +225,16 @@ export class SettingsService extends BaseService { } let localVarPath = `/API/settings/logo`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/suppliers.service.ts b/src/app/services/api/api/suppliers.service.ts index 0e21535..a8ce906 100644 --- a/src/app/services/api/api/suppliers.service.ts +++ b/src/app/services/api/api/suppliers.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,68 +9,52 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {CreatePriceDto} from '../model/create-price-dto'; +import { CreatePriceDto } from '../model/create-price-dto'; // @ts-ignore -import {CreateSupplierDto} from '../model/create-supplier-dto'; +import { CreateSupplierDto } from '../model/create-supplier-dto'; // @ts-ignore -import {GetSupplierDto} from '../model/get-supplier-dto'; +import { GetSupplierDto } from '../model/get-supplier-dto'; // @ts-ignore -import {PatchSupplierDeliveryDelayDto} from '../model/patch-supplier-delivery-delay-dto'; +import { PatchSupplierDeliveryDelayDto } from '../model/patch-supplier-delivery-delay-dto'; // @ts-ignore -import {UpdateSupplierDto} from '../model/update-supplier-dto'; +import { UpdateSupplierDto } from '../model/update-supplier-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @endpoint post /API/suppliers/{supplierId}/{productId} - * @param supplierId - * @param productId - * @param createPriceDto + * @param supplierId + * @param productId + * @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 reportProgress flag to report request and response progress. */ - public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (supplierId === null || supplierId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -116,33 +101,17 @@ export class SuppliersService extends BaseService { } } - 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" - })}`; - const {basePath, withCredentials} = this.configuration; + 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"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createPriceDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -150,30 +119,14 @@ export class SuppliersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (createSupplierDto === null || createSupplierDto === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -214,16 +168,16 @@ export class SuppliersService extends BaseService { } let localVarPath = `/API/suppliers`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createSupplierDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -231,31 +185,15 @@ export class SuppliersService extends BaseService { /** * @endpoint delete /API/suppliers/{supplierId}/{productId} - * @param supplierId - * @param productId + * @param supplierId + * @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 reportProgress flag to report request and response progress. */ - public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (supplierId === null || supplierId === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -289,32 +228,16 @@ export class SuppliersService extends BaseService { } } - 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" - })}`; - const {basePath, withCredentials} = this.configuration; + 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"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -322,30 +245,14 @@ export class SuppliersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public deleteSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -376,24 +284,16 @@ export class SuppliersService extends BaseService { } } - let localVarPath = `/API/suppliers/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllSuppliersEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllSuppliersEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllSuppliersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllSuppliersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllSuppliersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllSuppliersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -454,15 +338,15 @@ export class SuppliersService extends BaseService { } let localVarPath = `/API/suppliers`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -470,30 +354,14 @@ export class SuppliersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -551,31 +411,15 @@ export class SuppliersService extends BaseService { /** * @endpoint patch /API/suppliers/{id}/deliveryDelay - * @param id - * @param patchSupplierDeliveryDelayDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -618,25 +463,17 @@ export class SuppliersService extends BaseService { } } - let localVarPath = `/API/suppliers/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/deliveryDelay`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/deliveryDelay`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchSupplierDeliveryDelayDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -644,31 +481,15 @@ export class SuppliersService extends BaseService { /** * @endpoint put /API/suppliers/{id} - * @param id - * @param updateSupplierDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -711,25 +533,17 @@ export class SuppliersService extends BaseService { } } - let localVarPath = `/API/suppliers/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateSupplierDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/user.service.ts b/src/app/services/api/api/user.service.ts index 8849462..97160c8 100644 --- a/src/app/services/api/api/user.service.ts +++ b/src/app/services/api/api/user.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetUserDto} from '../model/get-user-dto'; +import { GetUserDto } from '../model/get-user-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } @@ -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 reportProgress flag to report request and response progress. */ - public getUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -90,15 +74,15 @@ export class UserService extends BaseService { } let localVarPath = `/API/user`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/users.service.ts b/src/app/services/api/api/users.service.ts index 5e0c99e..8136b2b 100644 --- a/src/app/services/api/api/users.service.ts +++ b/src/app/services/api/api/users.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,68 +9,52 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {ConnectUserDto} from '../model/connect-user-dto'; +import { ConnectUserDto } from '../model/connect-user-dto'; // @ts-ignore -import {CreateUserDto} from '../model/create-user-dto'; +import { CreateUserDto } from '../model/create-user-dto'; // @ts-ignore -import {GetTokenDto} from '../model/get-token-dto'; +import { GetTokenDto } from '../model/get-token-dto'; // @ts-ignore -import {GetUserDto} from '../model/get-user-dto'; +import { GetUserDto } from '../model/get-user-dto'; // @ts-ignore -import {PatchUserPasswordDto} from '../model/patch-user-password-dto'; +import { PatchUserPasswordDto } from '../model/patch-user-password-dto'; // @ts-ignore -import {UpdateUserDto} from '../model/update-user-dto'; +import { UpdateUserDto } from '../model/update-user-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @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 reportProgress flag to report request and response progress. */ - public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public connectUserEndpoint(connectUserDto: ConnectUserDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public connectUserEndpoint(connectUserDto: ConnectUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (connectUserDto === null || connectUserDto === undefined) { 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`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: connectUserDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -127,30 +111,14 @@ export class UsersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (createUserDto === null || createUserDto === undefined) { 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`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createUserDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -210,30 +178,14 @@ export class UsersService extends BaseService { /** * @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 reportProgress flag to report request and response progress. */ - public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable; - public deleteUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public deleteUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: undefined, - context?: HttpContext, - transferCache?: boolean - }): Observable { + public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public deleteUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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 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) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -264,24 +217,16 @@ export class UsersService extends BaseService { } } - let localVarPath = `/API/users/${this.configuration.encodeParam({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), 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 reportProgress flag to report request and response progress. */ - public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -342,15 +271,15 @@ export class UsersService extends BaseService { } let localVarPath = `/API/users`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -358,31 +287,15 @@ export class UsersService extends BaseService { /** * @endpoint patch /API/users/{id}/password - * @param id - * @param patchUserPasswordDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}/password`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/password`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchUserPasswordDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -453,31 +358,15 @@ export class UsersService extends BaseService { /** * @endpoint put /API/users/{id} - * @param id - * @param updateUserDto + * @param id + * @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 reportProgress flag to report request and response progress. */ - public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { 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({ - name: "id", - value: id, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateUserDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/warehouseproducts.service.ts b/src/app/services/api/api/warehouseproducts.service.ts index 016354e..320b72a 100644 --- a/src/app/services/api/api/warehouseproducts.service.ts +++ b/src/app/services/api/api/warehouseproducts.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,62 +9,46 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetTotalQuantityDto} from '../model/get-total-quantity-dto'; +import { GetTotalQuantityDto } from '../model/get-total-quantity-dto'; // @ts-ignore -import {GetWareHouseProductDto} from '../model/get-ware-house-product-dto'; +import { GetWareHouseProductDto } from '../model/get-ware-house-product-dto'; // @ts-ignore -import {PatchWareHouseProductQuantityDto} from '../model/patch-ware-house-product-quantity-dto'; +import { PatchWareHouseProductQuantityDto } from '../model/patch-ware-house-product-quantity-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } /** * @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 reportProgress flag to report request and response progress. */ - public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public getTotalQuantityEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getTotalQuantityEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getTotalQuantityEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getTotalQuantityEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTotalQuantityEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTotalQuantityEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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({ - name: "productId", - value: productId, - in: "path", - style: "simple", - explode: false, - dataType: "number", - dataFormat: "int32" - })}`; - const {basePath, withCredentials} = this.configuration; + let localVarPath = `/API/wareHouseProducts/${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('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); @@ -122,32 +98,16 @@ export class WarehouseproductsService extends BaseService { /** * @endpoint patch /API/wareHouseProducts/{productId}/{wareHouseId}/quantity - * @param productId - * @param wareHouseId - * @param patchWareHouseProductQuantityDto + * @param productId + * @param wareHouseId + * @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 reportProgress flag to report request and response progress. */ - public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable; - public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (productId === null || productId === undefined) { 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({ - 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`; - const {basePath, withCredentials} = this.configuration; + 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`; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchWareHouseProductQuantityDto, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/warehouses.service.ts b/src/app/services/api/api/warehouses.service.ts index d835c37..a087ed4 100644 --- a/src/app/services/api/api/warehouses.service.ts +++ b/src/app/services/api/api/warehouses.service.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import {Inject, Injectable, Optional} from '@angular/core'; -import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext -} from '@angular/common/http'; -import {CustomHttpParameterCodec} from '../encoder'; -import {Observable} from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore -import {GetWareHouseDto} from '../model/get-ware-house-dto'; +import { GetWareHouseDto } from '../model/get-ware-house-dto'; // @ts-ignore -import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; -import {Configuration} from '../configuration'; -import {BaseService} from '../api.base.service'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + @Injectable({ - providedIn: 'root' + providedIn: 'root' }) 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); } @@ -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 reportProgress flag to report request and response progress. */ - public getAllWarehouseEndpoint(observe?: 'body', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>; - public getAllWarehouseEndpoint(observe?: 'response', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllWarehouseEndpoint(observe?: 'events', reportProgress?: boolean, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable>>; - public getAllWarehouseEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { - httpHeaderAccept?: 'application/json', - context?: HttpContext, - transferCache?: boolean - }): Observable { + public getAllWarehouseEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllWarehouseEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllWarehouseEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getAllWarehouseEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -90,15 +74,15 @@ export class WarehousesService extends BaseService { } let localVarPath = `/API/wareHouses`; - const {basePath, withCredentials} = this.configuration; + const { basePath, withCredentials } = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? {withCredentials} : {}), + ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/configuration.ts b/src/app/services/api/configuration.ts index 1dc1e57..5ffdfbb 100644 --- a/src/app/services/api/configuration.ts +++ b/src/app/services/api/configuration.ts @@ -1,11 +1,11 @@ -import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http'; -import {Param} from './param'; +import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; +import { Param } from './param'; export interface ConfigurationParameters { /** * @deprecated Since 5.0. Use credentials instead */ - apiKeys?: { [key: string]: string }; + apiKeys?: {[ key: string ]: string}; username?: string; password?: string; /** @@ -31,14 +31,14 @@ export interface ConfigurationParameters { * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ - credentials?: { [key: string]: string | (() => string | undefined) }; + credentials?: {[ key: string ]: string | (() => string | undefined)}; } export class Configuration { /** * @deprecated Since 5.0. Use credentials instead */ - apiKeys?: { [key: string]: string }; + apiKeys?: {[ key: string ]: string}; username?: string; password?: string; /** @@ -64,19 +64,9 @@ export class Configuration { * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ - credentials: { [key: string]: string | (() => string | undefined) }; + credentials: {[ key: string ]: string | (() => string | undefined)}; - constructor({ - accessToken, - apiKeys, - basePath, - credentials, - encodeParam, - encoder, - password, - username, - withCredentials - }: ConfigurationParameters = {}) { +constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) { if (apiKeys) { this.apiKeys = apiKeys; } @@ -118,7 +108,7 @@ export class Configuration { * @param contentTypes - the array of content types that are available for selection * @returns the selected content-type or undefined if no selection could be made. */ - public selectHeaderContentType(contentTypes: string[]): string | undefined { + public selectHeaderContentType (contentTypes: string[]): string | undefined { if (contentTypes.length === 0) { return undefined; } diff --git a/src/app/services/api/encoder.ts b/src/app/services/api/encoder.ts index 8e4032a..138c4d5 100644 --- a/src/app/services/api/encoder.ts +++ b/src/app/services/api/encoder.ts @@ -1,4 +1,4 @@ -import {HttpParameterCodec} from '@angular/common/http'; +import { HttpParameterCodec } from '@angular/common/http'; /** * Custom HttpParameterCodec @@ -8,15 +8,12 @@ export class CustomHttpParameterCodec implements HttpParameterCodec { encodeKey(k: string): string { return encodeURIComponent(k); } - encodeValue(v: string): string { return encodeURIComponent(v); } - decodeKey(k: string): string { return decodeURIComponent(k); } - decodeValue(v: string): string { return decodeURIComponent(v); } diff --git a/src/app/services/api/model/add-quotation-product-dto.ts b/src/app/services/api/model/add-quotation-product-dto.ts index 0685086..9f7b593 100644 --- a/src/app/services/api/model/add-quotation-product-dto.ts +++ b/src/app/services/api/model/add-quotation-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface AddQuotationProductDto { +export interface AddQuotationProductDto { quantity?: number; quotationId?: number; } diff --git a/src/app/services/api/model/connect-user-dto.ts b/src/app/services/api/model/connect-user-dto.ts index a2f2960..2ce7974 100644 --- a/src/app/services/api/model/connect-user-dto.ts +++ b/src/app/services/api/model/connect-user-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface ConnectUserDto { +export interface ConnectUserDto { name?: string | null; password?: string | null; } diff --git a/src/app/services/api/model/create-deliverer-dto.ts b/src/app/services/api/model/create-deliverer-dto.ts index bf30aa5..d7b5980 100644 --- a/src/app/services/api/model/create-deliverer-dto.ts +++ b/src/app/services/api/model/create-deliverer-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateDelivererDto { +export interface CreateDelivererDto { transporter?: string | null; } diff --git a/src/app/services/api/model/create-delivery-note-dto.ts b/src/app/services/api/model/create-delivery-note-dto.ts index 52d718e..cfbc14c 100644 --- a/src/app/services/api/model/create-delivery-note-dto.ts +++ b/src/app/services/api/model/create-delivery-note-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateDeliveryNoteDto { +export interface CreateDeliveryNoteDto { trackingNumber?: string | null; delivererId?: number; supplierId?: number; diff --git a/src/app/services/api/model/create-price-dto.ts b/src/app/services/api/model/create-price-dto.ts index b488dce..edd391a 100644 --- a/src/app/services/api/model/create-price-dto.ts +++ b/src/app/services/api/model/create-price-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreatePriceDto { +export interface CreatePriceDto { sellingPrice?: number; } diff --git a/src/app/services/api/model/create-product-quotation-dto.ts b/src/app/services/api/model/create-product-quotation-dto.ts index a87e116..76033ca 100644 --- a/src/app/services/api/model/create-product-quotation-dto.ts +++ b/src/app/services/api/model/create-product-quotation-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateProductQuotationDto { +export interface CreateProductQuotationDto { productId?: number; quantity?: number; } diff --git a/src/app/services/api/model/create-purchase-order-dto.ts b/src/app/services/api/model/create-purchase-order-dto.ts index 45b399f..4da387c 100644 --- a/src/app/services/api/model/create-purchase-order-dto.ts +++ b/src/app/services/api/model/create-purchase-order-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; supplierId?: number; products?: Array | null; diff --git a/src/app/services/api/model/create-purchase-order-product-dto.ts b/src/app/services/api/model/create-purchase-order-product-dto.ts index 2d74e61..256d725 100644 --- a/src/app/services/api/model/create-purchase-order-product-dto.ts +++ b/src/app/services/api/model/create-purchase-order-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreatePurchaseOrderProductDto { +export interface CreatePurchaseOrderProductDto { productId?: number; quantity?: number; } diff --git a/src/app/services/api/model/create-purchase-product-dto.ts b/src/app/services/api/model/create-purchase-product-dto.ts index 3593b4a..c0a4548 100644 --- a/src/app/services/api/model/create-purchase-product-dto.ts +++ b/src/app/services/api/model/create-purchase-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreatePurchaseProductDto { +export interface CreatePurchaseProductDto { quantity?: number; } diff --git a/src/app/services/api/model/create-quotation-dto.ts b/src/app/services/api/model/create-quotation-dto.ts index c5bd555..7d879fd 100644 --- a/src/app/services/api/model/create-quotation-dto.ts +++ b/src/app/services/api/model/create-quotation-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; conditionsSale?: string | null; customerId?: number; diff --git a/src/app/services/api/model/create-supplier-dto.ts b/src/app/services/api/model/create-supplier-dto.ts index 395892b..fc44016 100644 --- a/src/app/services/api/model/create-supplier-dto.ts +++ b/src/app/services/api/model/create-supplier-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateSupplierDto { +export interface CreateSupplierDto { name?: string | null; email?: string | null; phone?: string | null; diff --git a/src/app/services/api/model/create-user-dto.ts b/src/app/services/api/model/create-user-dto.ts index b0ae0c0..1c7145c 100644 --- a/src/app/services/api/model/create-user-dto.ts +++ b/src/app/services/api/model/create-user-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateUserDto { +export interface CreateUserDto { name?: string | null; password?: string | null; fonction?: string | null; diff --git a/src/app/services/api/model/get-customer-dto.ts b/src/app/services/api/model/get-customer-dto.ts index 65fe9c3..edcb955 100644 --- a/src/app/services/api/model/get-customer-dto.ts +++ b/src/app/services/api/model/get-customer-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetCustomerDto { +export interface GetCustomerDto { id?: number; note?: string | null; } diff --git a/src/app/services/api/model/get-deliverer-dto.ts b/src/app/services/api/model/get-deliverer-dto.ts index 56bbe33..ee6e20d 100644 --- a/src/app/services/api/model/get-deliverer-dto.ts +++ b/src/app/services/api/model/get-deliverer-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; transporter?: string | null; deliveryNotes?: Array | null; diff --git a/src/app/services/api/model/get-delivery-note-dto.ts b/src/app/services/api/model/get-delivery-note-dto.ts index 56c4fea..d749a8a 100644 --- a/src/app/services/api/model/get-delivery-note-dto.ts +++ b/src/app/services/api/model/get-delivery-note-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; trackingNumber?: string | null; estimateDeliveryDate?: string; diff --git a/src/app/services/api/model/get-price-dto.ts b/src/app/services/api/model/get-price-dto.ts index e427bc2..3b9fa89 100644 --- a/src/app/services/api/model/get-price-dto.ts +++ b/src/app/services/api/model/get-price-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetPriceDto { +export interface GetPriceDto { sellingPrice?: number; productId?: number; productReference?: string | null; diff --git a/src/app/services/api/model/get-product-delivery-dto.ts b/src/app/services/api/model/get-product-delivery-dto.ts index 382ad9a..de1a601 100644 --- a/src/app/services/api/model/get-product-delivery-dto.ts +++ b/src/app/services/api/model/get-product-delivery-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetProductDeliveryDto { +export interface GetProductDeliveryDto { productId?: number; productReference?: string | null; productName?: string | null; diff --git a/src/app/services/api/model/get-product-dto.ts b/src/app/services/api/model/get-product-dto.ts index c199b1a..812aed6 100644 --- a/src/app/services/api/model/get-product-dto.ts +++ b/src/app/services/api/model/get-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetProductDto { +export interface GetProductDto { id?: number; references?: string | null; name?: string | null; diff --git a/src/app/services/api/model/get-purchase-order-dto.ts b/src/app/services/api/model/get-purchase-order-dto.ts index 3c21f66..d5602ea 100644 --- a/src/app/services/api/model/get-purchase-order-dto.ts +++ b/src/app/services/api/model/get-purchase-order-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; purchaseConditions?: string | null; supplierId?: number; diff --git a/src/app/services/api/model/get-purchase-product-dto.ts b/src/app/services/api/model/get-purchase-product-dto.ts index 5b3a7a1..c5e68bd 100644 --- a/src/app/services/api/model/get-purchase-product-dto.ts +++ b/src/app/services/api/model/get-purchase-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetPurchaseProductDto { +export interface GetPurchaseProductDto { productId?: number; productReference?: string | null; productName?: string | null; diff --git a/src/app/services/api/model/get-quotation-dto.ts b/src/app/services/api/model/get-quotation-dto.ts index 75b859a..a8d25be 100644 --- a/src/app/services/api/model/get-quotation-dto.ts +++ b/src/app/services/api/model/get-quotation-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; message?: string | null; conditionsSale?: string | null; diff --git a/src/app/services/api/model/get-quotation-product-dto.ts b/src/app/services/api/model/get-quotation-product-dto.ts index c6eb321..f52b18a 100644 --- a/src/app/services/api/model/get-quotation-product-dto.ts +++ b/src/app/services/api/model/get-quotation-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetQuotationProductDto { +export interface GetQuotationProductDto { quantity?: number; productId?: number; productReference?: string | null; diff --git a/src/app/services/api/model/get-refresh-token-dto.ts b/src/app/services/api/model/get-refresh-token-dto.ts index e279288..5d154b6 100644 --- a/src/app/services/api/model/get-refresh-token-dto.ts +++ b/src/app/services/api/model/get-refresh-token-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetRefreshTokenDto { +export interface GetRefreshTokenDto { token?: string | null; } diff --git a/src/app/services/api/model/get-setting-dto.ts b/src/app/services/api/model/get-setting-dto.ts index c6f3dbb..8d73ba9 100644 --- a/src/app/services/api/model/get-setting-dto.ts +++ b/src/app/services/api/model/get-setting-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetSettingDto { +export interface GetSettingDto { id?: number; electronicSignature?: string | null; logo?: string | null; diff --git a/src/app/services/api/model/get-supplier-dto.ts b/src/app/services/api/model/get-supplier-dto.ts index ae71fdc..b7c2f3d 100644 --- a/src/app/services/api/model/get-supplier-dto.ts +++ b/src/app/services/api/model/get-supplier-dto.ts @@ -1,16 +1,16 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * 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; name?: string | null; email?: string | null; diff --git a/src/app/services/api/model/get-token-dto.ts b/src/app/services/api/model/get-token-dto.ts index 3419c33..1078bed 100644 --- a/src/app/services/api/model/get-token-dto.ts +++ b/src/app/services/api/model/get-token-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetTokenDto { +export interface GetTokenDto { token?: string | null; } diff --git a/src/app/services/api/model/get-total-quantity-dto.ts b/src/app/services/api/model/get-total-quantity-dto.ts index c23620f..6231f8e 100644 --- a/src/app/services/api/model/get-total-quantity-dto.ts +++ b/src/app/services/api/model/get-total-quantity-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetTotalQuantityDto { +export interface GetTotalQuantityDto { productId?: number; totalQuantity?: number; } diff --git a/src/app/services/api/model/get-user-dto.ts b/src/app/services/api/model/get-user-dto.ts index f6ee3a4..65a3e25 100644 --- a/src/app/services/api/model/get-user-dto.ts +++ b/src/app/services/api/model/get-user-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetUserDto { +export interface GetUserDto { id?: number; name?: string | null; password?: string | null; diff --git a/src/app/services/api/model/get-ware-house-dto.ts b/src/app/services/api/model/get-ware-house-dto.ts index f98b212..8cb445f 100644 --- a/src/app/services/api/model/get-ware-house-dto.ts +++ b/src/app/services/api/model/get-ware-house-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetWareHouseDto { +export interface GetWareHouseDto { id?: number; name?: string | null; } diff --git a/src/app/services/api/model/get-ware-house-product-dto.ts b/src/app/services/api/model/get-ware-house-product-dto.ts index 8efc1de..8e4e0fb 100644 --- a/src/app/services/api/model/get-ware-house-product-dto.ts +++ b/src/app/services/api/model/get-ware-house-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetWareHouseProductDto { +export interface GetWareHouseProductDto { quantity?: number; wareHouseId?: number; productId?: number; diff --git a/src/app/services/api/model/patch-delivery-note-real-delivery-date-dto.ts b/src/app/services/api/model/patch-delivery-note-real-delivery-date-dto.ts index 8095bf9..c851cdf 100644 --- a/src/app/services/api/model/patch-delivery-note-real-delivery-date-dto.ts +++ b/src/app/services/api/model/patch-delivery-note-real-delivery-date-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchDeliveryNoteRealDeliveryDateDto { +export interface PatchDeliveryNoteRealDeliveryDateDto { realDeliveryDate?: string; } diff --git a/src/app/services/api/model/patch-price-selling-price-dto.ts b/src/app/services/api/model/patch-price-selling-price-dto.ts index 89d4afb..29333df 100644 --- a/src/app/services/api/model/patch-price-selling-price-dto.ts +++ b/src/app/services/api/model/patch-price-selling-price-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchPriceSellingPriceDto { +export interface PatchPriceSellingPriceDto { sellingPrice?: number; } diff --git a/src/app/services/api/model/patch-product-minimal-stock-dto.ts b/src/app/services/api/model/patch-product-minimal-stock-dto.ts index 94df8ec..b37e9db 100644 --- a/src/app/services/api/model/patch-product-minimal-stock-dto.ts +++ b/src/app/services/api/model/patch-product-minimal-stock-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchProductMinimalStockDto { +export interface PatchProductMinimalStockDto { minimalQuantity?: number; } diff --git a/src/app/services/api/model/patch-purchase-order-purchase-conditions-dto.ts b/src/app/services/api/model/patch-purchase-order-purchase-conditions-dto.ts index 5826679..710de0d 100644 --- a/src/app/services/api/model/patch-purchase-order-purchase-conditions-dto.ts +++ b/src/app/services/api/model/patch-purchase-order-purchase-conditions-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchPurchaseOrderPurchaseConditionsDto { +export interface PatchPurchaseOrderPurchaseConditionsDto { purchaseConditions?: string | null; } diff --git a/src/app/services/api/model/patch-purchase-product-quantity-dto.ts b/src/app/services/api/model/patch-purchase-product-quantity-dto.ts index f793a24..d8355ee 100644 --- a/src/app/services/api/model/patch-purchase-product-quantity-dto.ts +++ b/src/app/services/api/model/patch-purchase-product-quantity-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchPurchaseProductQuantityDto { +export interface PatchPurchaseProductQuantityDto { quantity?: number; } diff --git a/src/app/services/api/model/patch-quotation-conditions-sale-dto.ts b/src/app/services/api/model/patch-quotation-conditions-sale-dto.ts index 4a7921b..36fd3db 100644 --- a/src/app/services/api/model/patch-quotation-conditions-sale-dto.ts +++ b/src/app/services/api/model/patch-quotation-conditions-sale-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchQuotationConditionsSaleDto { +export interface PatchQuotationConditionsSaleDto { conditionsSale?: string | null; } diff --git a/src/app/services/api/model/patch-quotation-message-dto.ts b/src/app/services/api/model/patch-quotation-message-dto.ts index 7b281f6..5990a10 100644 --- a/src/app/services/api/model/patch-quotation-message-dto.ts +++ b/src/app/services/api/model/patch-quotation-message-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchQuotationMessageDto { +export interface PatchQuotationMessageDto { message?: string | null; } diff --git a/src/app/services/api/model/patch-quotation-product-quantity-dto.ts b/src/app/services/api/model/patch-quotation-product-quantity-dto.ts index 67b5f1a..e32072a 100644 --- a/src/app/services/api/model/patch-quotation-product-quantity-dto.ts +++ b/src/app/services/api/model/patch-quotation-product-quantity-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchQuotationProductQuantityDto { +export interface PatchQuotationProductQuantityDto { quantity?: number; } diff --git a/src/app/services/api/model/patch-supplier-delivery-delay-dto.ts b/src/app/services/api/model/patch-supplier-delivery-delay-dto.ts index de9555b..41585ec 100644 --- a/src/app/services/api/model/patch-supplier-delivery-delay-dto.ts +++ b/src/app/services/api/model/patch-supplier-delivery-delay-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchSupplierDeliveryDelayDto { +export interface PatchSupplierDeliveryDelayDto { deliveryDelay?: number; } diff --git a/src/app/services/api/model/patch-user-password-dto.ts b/src/app/services/api/model/patch-user-password-dto.ts index f9dec43..c9ac320 100644 --- a/src/app/services/api/model/patch-user-password-dto.ts +++ b/src/app/services/api/model/patch-user-password-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchUserPasswordDto { +export interface PatchUserPasswordDto { password?: string | null; } diff --git a/src/app/services/api/model/patch-ware-house-product-quantity-dto.ts b/src/app/services/api/model/patch-ware-house-product-quantity-dto.ts index ccc0dad..4899b61 100644 --- a/src/app/services/api/model/patch-ware-house-product-quantity-dto.ts +++ b/src/app/services/api/model/patch-ware-house-product-quantity-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchWareHouseProductQuantityDto { +export interface PatchWareHouseProductQuantityDto { quantity?: number; } diff --git a/src/app/services/api/model/refresh-token-dto.ts b/src/app/services/api/model/refresh-token-dto.ts index cddb8f8..8954835 100644 --- a/src/app/services/api/model/refresh-token-dto.ts +++ b/src/app/services/api/model/refresh-token-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface RefreshTokenDto { +export interface RefreshTokenDto { token?: string | null; } diff --git a/src/app/services/api/model/update-deliverer-dto.ts b/src/app/services/api/model/update-deliverer-dto.ts index 843fe76..68032be 100644 --- a/src/app/services/api/model/update-deliverer-dto.ts +++ b/src/app/services/api/model/update-deliverer-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateDelivererDto { +export interface UpdateDelivererDto { transporter?: string | null; } diff --git a/src/app/services/api/model/update-delivery-note-dto.ts b/src/app/services/api/model/update-delivery-note-dto.ts index 7d11f6a..181449d 100644 --- a/src/app/services/api/model/update-delivery-note-dto.ts +++ b/src/app/services/api/model/update-delivery-note-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateDeliveryNoteDto { +export interface UpdateDeliveryNoteDto { trackingNumber?: string | null; estimateDeliveryDate?: string; expeditionDate?: string; diff --git a/src/app/services/api/model/update-product-dto.ts b/src/app/services/api/model/update-product-dto.ts index c1aeeb2..f191e22 100644 --- a/src/app/services/api/model/update-product-dto.ts +++ b/src/app/services/api/model/update-product-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateProductDto { +export interface UpdateProductDto { references?: string | null; name?: string | null; duration?: number; diff --git a/src/app/services/api/model/update-quotation-dto.ts b/src/app/services/api/model/update-quotation-dto.ts index 8ddeab3..5895594 100644 --- a/src/app/services/api/model/update-quotation-dto.ts +++ b/src/app/services/api/model/update-quotation-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateQuotationDto { +export interface UpdateQuotationDto { message?: string | null; conditionsSale?: string | null; } diff --git a/src/app/services/api/model/update-supplier-dto.ts b/src/app/services/api/model/update-supplier-dto.ts index d835318..d2c7c5a 100644 --- a/src/app/services/api/model/update-supplier-dto.ts +++ b/src/app/services/api/model/update-supplier-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateSupplierDto { +export interface UpdateSupplierDto { name?: string | null; email?: string | null; phone?: string | null; diff --git a/src/app/services/api/model/update-user-dto.ts b/src/app/services/api/model/update-user-dto.ts index d8d4d7c..672015b 100644 --- a/src/app/services/api/model/update-user-dto.ts +++ b/src/app/services/api/model/update-user-dto.ts @@ -1,7 +1,7 @@ /** * PyroFetes * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateUserDto { +export interface UpdateUserDto { name?: string | null; password?: string | null; fonction?: string | null; diff --git a/src/app/services/api/param.ts b/src/app/services/api/param.ts index 7f0592c..78a2d20 100644 --- a/src/app/services/api/param.ts +++ b/src/app/services/api/param.ts @@ -2,14 +2,14 @@ * Standard parameter styles defined by OpenAPI spec */ export type StandardParamStyle = - | 'matrix' - | 'label' - | 'form' - | 'simple' - | 'spaceDelimited' - | 'pipeDelimited' - | 'deepObject' - ; + | 'matrix' + | 'label' + | 'form' + | 'simple' + | 'spaceDelimited' + | 'pipeDelimited' + | 'deepObject' + ; /** * 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 OpenAPI Specification: Data Types */ export type StandardDataType = - | "integer" - | "number" - | "boolean" - | "string" - | "object" - | "array" - ; + | "integer" + | "number" + | "boolean" + | "string" + | "object" + | "array" + ; /** * Standard {@link DataType}s plus your own types/classes. @@ -42,16 +42,16 @@ export type DataType = StandardDataType | string; * Standard formats as defined in OpenAPI Specification: Data Types */ export type StandardDataFormat = - | "int32" - | "int64" - | "float" - | "double" - | "byte" - | "binary" - | "date" - | "date-time" - | "password" - ; + | "int32" + | "int64" + | "float" + | "double" + | "byte" + | "binary" + | "date" + | "date-time" + | "password" + ; export type DataFormat = StandardDataFormat | string; @@ -59,11 +59,11 @@ export type DataFormat = StandardDataFormat | string; * The parameter to encode. */ export interface Param { - name: string; - value: unknown; - in: ParamLocation; - style: ParamStyle, - explode: boolean; - dataType: DataType; - dataFormat: DataFormat | undefined; + name: string; + value: unknown; + in: ParamLocation; + style: ParamStyle, + explode: boolean; + dataType: DataType; + dataFormat: DataFormat | undefined; } diff --git a/src/app/services/api/provide-api.ts b/src/app/services/api/provide-api.ts index b63aa71..19c762a 100644 --- a/src/app/services/api/provide-api.ts +++ b/src/app/services/api/provide-api.ts @@ -1,15 +1,15 @@ -import {EnvironmentProviders, makeEnvironmentProviders} from "@angular/core"; -import {Configuration, ConfigurationParameters} from './configuration'; -import {BASE_PATH} from './variables'; +import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core"; +import { Configuration, ConfigurationParameters } from './configuration'; +import { BASE_PATH } from './variables'; // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig). export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders { return makeEnvironmentProviders([ typeof configOrBasePath === "string" - ? {provide: BASE_PATH, useValue: configOrBasePath} + ? { provide: BASE_PATH, useValue: configOrBasePath } : { provide: Configuration, - useValue: new Configuration({...configOrBasePath}), + useValue: new Configuration({ ...configOrBasePath }), }, ]); } \ No newline at end of file diff --git a/src/app/services/api/variables.ts b/src/app/services/api/variables.ts index ac9262f..6fe5854 100644 --- a/src/app/services/api/variables.ts +++ b/src/app/services/api/variables.ts @@ -1,4 +1,4 @@ -import {InjectionToken} from '@angular/core'; +import { InjectionToken } from '@angular/core'; export const BASE_PATH = new InjectionToken('basePath'); export const COLLECTION_FORMATS = {