@emilgroup/insurance-sdk-node 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +18 -5
- package/README.md +2 -2
- package/api/insured-object-types-api.ts +29 -29
- package/api/insured-objects-api.ts +44 -33
- package/api/leads-api.ts +187 -7
- package/api/policies-api.ts +276 -41
- package/api/premium-formulas-api.ts +669 -0
- package/api/product-factors-api.ts +889 -0
- package/api/product-fields-api.ts +843 -0
- package/api/product-versions-api.ts +301 -0
- package/api/products-api.ts +201 -2665
- package/api.ts +9 -1
- package/base.ts +23 -33
- package/common.ts +62 -1
- package/configuration.ts +1 -1
- package/dist/api/insured-object-types-api.d.ts +29 -29
- package/dist/api/insured-object-types-api.js +25 -25
- package/dist/api/insured-objects-api.d.ts +38 -29
- package/dist/api/insured-objects-api.js +31 -27
- package/dist/api/leads-api.d.ts +114 -10
- package/dist/api/leads-api.js +125 -2
- package/dist/api/policies-api.d.ts +171 -41
- package/dist/api/policies-api.js +231 -34
- package/dist/api/premium-formulas-api.d.ts +376 -0
- package/dist/api/premium-formulas-api.js +634 -0
- package/dist/api/product-factors-api.d.ts +493 -0
- package/dist/api/product-factors-api.js +788 -0
- package/dist/api/product-fields-api.d.ts +477 -0
- package/dist/api/product-fields-api.js +757 -0
- package/dist/api/product-versions-api.d.ts +171 -0
- package/dist/api/product-versions-api.js +334 -0
- package/dist/api/products-api.d.ts +25 -1388
- package/dist/api/products-api.js +137 -2118
- package/dist/api.d.ts +5 -1
- package/dist/api.js +5 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -22
- package/dist/common.d.ts +27 -1
- package/dist/common.js +36 -3
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/calculate-custom-premium-request-dto.d.ts +4 -4
- package/dist/models/calculate-custom-premium-request-dto.js +1 -1
- package/dist/models/calculate-premium-request-dto.d.ts +9 -9
- package/dist/models/calculate-premium-request-dto.js +1 -1
- package/dist/models/create-account-request-dto.d.ts +26 -13
- package/dist/models/create-account-request-dto.js +8 -1
- package/dist/models/create-bank-account-request-dto.d.ts +3 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-custom-application-request-dto.d.ts +5 -5
- package/dist/models/create-custom-application-request-dto.js +1 -1
- package/dist/models/create-dummy-policy-request-dto.d.ts +4 -4
- package/dist/models/create-dummy-policy-request-dto.js +1 -1
- package/dist/models/create-insured-object-request-dto.d.ts +5 -5
- package/dist/models/create-insured-object-request-dto.js +1 -1
- package/dist/models/create-insured-object-response-class.d.ts +5 -5
- package/dist/models/create-insured-object-response-class.js +1 -1
- package/dist/models/create-lead-request-dto.d.ts +23 -23
- package/dist/models/create-lead-request-dto.js +1 -1
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/{grpc-policy-object-dto.js → create-lead-response-class.js} +1 -1
- package/dist/models/create-policy-request-dto.d.ts +19 -7
- package/dist/models/create-policy-request-dto.js +1 -1
- package/dist/models/create-policy-response-class.d.ts +1 -1
- package/dist/models/create-policy-response-class.js +1 -1
- package/dist/models/create-premium-formula-request-dto.d.ts +10 -9
- package/dist/models/create-premium-formula-request-dto.js +3 -2
- package/dist/models/create-premium-formula-response-class.d.ts +2 -2
- package/dist/models/create-premium-formula-response-class.js +1 -1
- package/dist/models/create-product-field-request-dto.d.ts +2 -2
- package/dist/models/create-product-field-request-dto.js +1 -1
- package/dist/models/create-product-field-response-class.d.ts +2 -2
- package/dist/models/create-product-field-response-class.js +1 -1
- package/dist/models/create-product-request-dto.d.ts +6 -6
- package/dist/models/create-product-request-dto.js +1 -1
- package/dist/models/create-product-response-class.d.ts +1 -1
- package/dist/models/create-product-response-class.js +1 -1
- package/dist/models/csv-product-factor-dto.d.ts +6 -6
- package/dist/models/csv-product-factor-dto.js +1 -1
- package/dist/models/delete-request-dto.d.ts +2 -2
- package/dist/models/delete-request-dto.js +1 -1
- package/dist/models/{get-insured-object-request-dto.d.ts → delete-response-class.d.ts} +7 -7
- package/dist/models/{to-grpc-create-policy-request-dto.js → delete-response-class.js} +1 -1
- package/dist/models/get-insured-object-response-class.d.ts +2 -2
- package/dist/models/get-insured-object-response-class.js +1 -1
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/{grpc-update-policy-request-dto.js → get-lead-response-class.js} +1 -1
- package/dist/models/{grpc-policy-object-dto.d.ts → get-policy-data-by-date-request-dto.d.ts} +11 -11
- package/dist/models/{get-insured-object-request-dto.js → get-policy-data-by-date-request-dto.js} +1 -1
- package/dist/models/get-policy-request-dto.d.ts +3 -3
- package/dist/models/get-policy-request-dto.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +2 -2
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/get-premium-formula-request-dto.d.ts +2 -2
- package/dist/models/get-premium-formula-request-dto.js +1 -1
- package/dist/models/get-premium-formula-response-class.d.ts +2 -2
- package/dist/models/get-premium-formula-response-class.js +1 -1
- package/dist/models/get-product-factor-response-class.d.ts +2 -2
- package/dist/models/get-product-factor-response-class.js +1 -1
- package/dist/models/get-product-factor-value-request-dto.d.ts +1 -1
- package/dist/models/get-product-factor-value-request-dto.js +1 -1
- package/dist/models/get-product-factor-value-response-class.d.ts +2 -2
- package/dist/models/get-product-factor-value-response-class.js +1 -1
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +4 -4
- package/dist/models/get-product-factors-for-version-request-dto.js +1 -1
- package/dist/models/get-product-factors-for-version-response-class.d.ts +1 -1
- package/dist/models/get-product-factors-for-version-response-class.js +1 -1
- package/dist/models/get-product-field-request-dto.d.ts +2 -2
- package/dist/models/get-product-field-request-dto.js +1 -1
- package/dist/models/get-product-field-response-class.d.ts +2 -2
- package/dist/models/get-product-field-response-class.js +1 -1
- package/dist/models/get-product-request-dto.d.ts +1 -1
- package/dist/models/get-product-request-dto.js +1 -1
- package/dist/models/get-product-response-class.d.ts +1 -1
- package/dist/models/get-product-response-class.js +1 -1
- package/dist/models/get-product-version-request-dto.d.ts +2 -2
- package/dist/models/get-product-version-request-dto.js +1 -1
- package/dist/models/get-product-version-response-class.d.ts +1 -1
- package/dist/models/get-product-version-response-class.js +1 -1
- package/dist/models/grouped-product-factor-class.d.ts +4 -4
- package/dist/models/grouped-product-factor-class.js +1 -1
- package/dist/models/grouped-product-factor-value-class.d.ts +10 -4
- package/dist/models/grouped-product-factor-value-class.js +1 -1
- package/dist/models/grouped-product-factors-response-class.d.ts +1 -1
- package/dist/models/grouped-product-factors-response-class.js +1 -1
- package/dist/models/index.d.ts +14 -5
- package/dist/models/index.js +14 -5
- package/dist/models/insured-object-class.d.ts +12 -12
- package/dist/models/insured-object-class.js +1 -1
- package/dist/models/insured-object-type-class.d.ts +6 -6
- package/dist/models/insured-object-type-class.js +1 -1
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +95 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +3 -3
- package/dist/models/list-insured-object-types-response-class.js +1 -1
- package/dist/models/list-insured-objects-response-class.d.ts +5 -4
- package/dist/models/list-insured-objects-response-class.js +1 -1
- package/dist/models/list-leads-response-class.d.ts +31 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +2 -2
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/list-premium-formulas-response-class.d.ts +3 -3
- package/dist/models/list-premium-formulas-response-class.js +1 -1
- package/dist/models/list-product-factors-response-class.d.ts +7 -7
- package/dist/models/list-product-factors-response-class.js +1 -1
- package/dist/models/list-product-field-types-response-class.d.ts +6 -5
- package/dist/models/list-product-field-types-response-class.js +1 -1
- package/dist/models/list-product-fields-response-class.d.ts +3 -3
- package/dist/models/list-product-fields-response-class.js +1 -1
- package/dist/models/list-products-response-class.d.ts +3 -3
- package/dist/models/list-products-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +6 -6
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/omit-type-class.d.ts +60 -0
- package/dist/models/omit-type-class.js +15 -0
- package/dist/models/policy-class.d.ts +32 -14
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +5 -5
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-object-dto.d.ts +3 -3
- package/dist/models/policy-object-dto.js +1 -1
- package/dist/models/policy-premium-class.d.ts +5 -5
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +7 -7
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +6 -6
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/premium-formula-class.d.ts +10 -17
- package/dist/models/premium-formula-class.js +1 -1
- package/dist/models/premium-override-dto.d.ts +7 -6
- package/dist/models/premium-override-dto.js +3 -2
- package/dist/models/premium-override-request-dto.d.ts +2 -2
- package/dist/models/premium-override-request-dto.js +1 -1
- package/dist/models/product-class.d.ts +10 -10
- package/dist/models/product-class.js +1 -1
- package/dist/models/product-factor-class.d.ts +9 -9
- package/dist/models/product-factor-class.js +1 -1
- package/dist/models/product-factor-value-class.d.ts +8 -28
- package/dist/models/product-factor-value-class.js +1 -1
- package/dist/models/product-field-class.d.ts +10 -10
- package/dist/models/product-field-class.js +1 -1
- package/dist/models/product-field-type-class.d.ts +48 -0
- package/dist/models/product-field-type-class.js +15 -0
- package/dist/models/product-version-class.d.ts +15 -8
- package/dist/models/product-version-class.js +8 -1
- package/dist/models/shared-product-field-class.d.ts +114 -0
- package/dist/models/shared-product-field-class.js +15 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +72 -0
- package/dist/models/{create-claim-request-dto.js → shared-update-premium-formula-request-dto.js} +10 -9
- package/dist/models/store-product-factors-request-dto.d.ts +2 -2
- package/dist/models/store-product-factors-request-dto.js +1 -1
- package/dist/models/store-product-factors-response-class.d.ts +1 -1
- package/dist/models/store-product-factors-response-class.js +1 -1
- package/dist/models/suspend-policy-request-dto.d.ts +24 -0
- package/dist/models/suspend-policy-request-dto.js +15 -0
- package/dist/models/suspend-policy-response-class.d.ts +25 -0
- package/dist/models/suspend-policy-response-class.js +15 -0
- package/dist/models/terminate-policy-request-dto.d.ts +3 -3
- package/dist/models/terminate-policy-request-dto.js +1 -1
- package/dist/models/terminate-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +8 -8
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/update-insured-object-request-dto.d.ts +6 -6
- package/dist/models/update-insured-object-request-dto.js +1 -1
- package/dist/models/update-lead-request-dto.d.ts +8 -14
- package/dist/models/update-lead-request-dto.js +1 -1
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/update-policy-request-dto.d.ts +24 -5
- package/dist/models/update-policy-request-dto.js +8 -1
- package/dist/models/update-policy-response-class.d.ts +1 -1
- package/dist/models/update-policy-response-class.js +1 -1
- package/dist/models/update-premium-formula-request-dto.d.ts +10 -15
- package/dist/models/update-premium-formula-request-dto.js +3 -2
- package/dist/models/update-premium-formula-response-class.d.ts +2 -2
- package/dist/models/update-premium-formula-response-class.js +1 -1
- package/dist/models/update-product-field-request-dto.d.ts +15 -15
- package/dist/models/update-product-field-request-dto.js +1 -1
- package/dist/models/update-product-field-response-class.d.ts +2 -2
- package/dist/models/update-product-field-response-class.js +1 -1
- package/dist/models/update-product-request-dto.d.ts +5 -5
- package/dist/models/update-product-request-dto.js +1 -1
- package/dist/models/update-product-response-class.d.ts +1 -1
- package/dist/models/update-product-response-class.js +1 -1
- package/dist/models/update-product-version-request-dto.d.ts +5 -5
- package/dist/models/update-product-version-request-dto.js +1 -1
- package/dist/models/update-product-version-response-class.d.ts +1 -1
- package/dist/models/update-product-version-response-class.js +1 -1
- package/dist/models/uploaded-document-dto.d.ts +2 -2
- package/dist/models/uploaded-document-dto.js +1 -1
- package/dist/models/validate-product-factors-request-dto.d.ts +2 -2
- package/dist/models/validate-product-factors-request-dto.js +1 -1
- package/dist/models/withdraw-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/calculate-custom-premium-request-dto.ts +3 -3
- package/models/calculate-premium-request-dto.ts +9 -9
- package/models/create-account-request-dto.ts +29 -13
- package/models/create-bank-account-request-dto.ts +3 -3
- package/models/create-custom-application-request-dto.ts +4 -4
- package/models/create-dummy-policy-request-dto.ts +4 -4
- package/models/create-insured-object-request-dto.ts +5 -5
- package/models/create-insured-object-response-class.ts +5 -5
- package/models/create-lead-request-dto.ts +22 -22
- package/models/create-lead-response-class.ts +31 -0
- package/models/create-policy-request-dto.ts +19 -7
- package/models/create-policy-response-class.ts +1 -1
- package/models/create-premium-formula-request-dto.ts +9 -8
- package/models/create-premium-formula-response-class.ts +2 -2
- package/models/create-product-field-request-dto.ts +1 -1
- package/models/create-product-field-response-class.ts +2 -2
- package/models/create-product-request-dto.ts +5 -5
- package/models/create-product-response-class.ts +1 -1
- package/models/csv-product-factor-dto.ts +6 -6
- package/models/delete-request-dto.ts +2 -2
- package/models/{get-insured-object-request-dto.ts → delete-response-class.ts} +7 -7
- package/models/get-insured-object-response-class.ts +2 -2
- package/models/get-lead-response-class.ts +31 -0
- package/models/{grpc-policy-object-dto.ts → get-policy-data-by-date-request-dto.ts} +11 -11
- package/models/get-policy-request-dto.ts +3 -3
- package/models/get-policy-response-class.ts +2 -2
- package/models/get-premium-formula-request-dto.ts +2 -2
- package/models/get-premium-formula-response-class.ts +2 -2
- package/models/get-product-factor-response-class.ts +2 -2
- package/models/get-product-factor-value-request-dto.ts +1 -1
- package/models/get-product-factor-value-response-class.ts +2 -2
- package/models/get-product-factors-for-version-request-dto.ts +4 -4
- package/models/get-product-factors-for-version-response-class.ts +1 -1
- package/models/get-product-field-request-dto.ts +2 -2
- package/models/get-product-field-response-class.ts +2 -2
- package/models/get-product-request-dto.ts +1 -1
- package/models/get-product-response-class.ts +1 -1
- package/models/get-product-version-request-dto.ts +2 -2
- package/models/get-product-version-response-class.ts +1 -1
- package/models/grouped-product-factor-class.ts +4 -4
- package/models/grouped-product-factor-value-class.ts +10 -4
- package/models/grouped-product-factors-response-class.ts +1 -1
- package/models/index.ts +14 -5
- package/models/insured-object-class.ts +12 -12
- package/models/insured-object-type-class.ts +6 -6
- package/models/lead-bank-account-class.ts +36 -0
- package/models/lead-class.ts +101 -0
- package/models/list-insured-object-types-response-class.ts +3 -3
- package/models/list-insured-objects-response-class.ts +5 -4
- package/models/list-leads-response-class.ts +37 -0
- package/models/list-policies-response-class.ts +2 -2
- package/models/list-premium-formulas-response-class.ts +3 -3
- package/models/list-product-factors-response-class.ts +7 -7
- package/models/list-product-field-types-response-class.ts +6 -5
- package/models/list-product-fields-response-class.ts +3 -3
- package/models/list-products-response-class.ts +3 -3
- package/models/list-request-dto.ts +6 -6
- package/models/omit-type-class.ts +66 -0
- package/models/policy-class.ts +32 -14
- package/models/policy-object-class.ts +5 -5
- package/models/policy-object-dto.ts +3 -3
- package/models/policy-premium-class.ts +5 -5
- package/models/policy-premium-item-class.ts +7 -7
- package/models/policy-version-class.ts +6 -6
- package/models/premium-formula-class.ts +10 -17
- package/models/premium-override-dto.ts +6 -5
- package/models/premium-override-request-dto.ts +2 -2
- package/models/product-class.ts +10 -10
- package/models/product-factor-class.ts +9 -9
- package/models/product-factor-value-class.ts +8 -28
- package/models/product-field-class.ts +10 -10
- package/models/product-field-type-class.ts +54 -0
- package/models/product-version-class.ts +18 -8
- package/models/shared-product-field-class.ts +120 -0
- package/models/shared-update-premium-formula-request-dto.ts +82 -0
- package/models/store-product-factors-request-dto.ts +2 -2
- package/models/store-product-factors-response-class.ts +1 -1
- package/models/suspend-policy-request-dto.ts +30 -0
- package/models/suspend-policy-response-class.ts +31 -0
- package/models/terminate-policy-request-dto.ts +3 -3
- package/models/terminate-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +8 -8
- package/models/update-insured-object-request-dto.ts +6 -6
- package/models/update-lead-request-dto.ts +7 -13
- package/models/update-lead-response-class.ts +31 -0
- package/models/update-policy-request-dto.ts +27 -5
- package/models/update-policy-response-class.ts +1 -1
- package/models/update-premium-formula-request-dto.ts +9 -14
- package/models/update-premium-formula-response-class.ts +2 -2
- package/models/update-product-field-request-dto.ts +14 -14
- package/models/update-product-field-response-class.ts +2 -2
- package/models/update-product-request-dto.ts +5 -5
- package/models/update-product-response-class.ts +1 -1
- package/models/update-product-version-request-dto.ts +4 -4
- package/models/update-product-version-response-class.ts +1 -1
- package/models/uploaded-document-dto.ts +2 -2
- package/models/validate-product-factors-request-dto.ts +2 -2
- package/models/withdraw-policy-response-class.ts +1 -1
- package/package.json +2 -3
- package/dist/models/create-claim-request-dto.d.ts +0 -83
- package/dist/models/grpc-update-policy-request-dto.d.ts +0 -50
- package/dist/models/to-grpc-create-policy-request-dto.d.ts +0 -44
- package/models/create-claim-request-dto.ts +0 -93
- package/models/grpc-update-policy-request-dto.ts +0 -56
- package/models/to-grpc-create-policy-request-dto.ts +0 -50
package/dist/api/products-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL InsuranceService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -97,23 +97,23 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Create the
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
101
|
+
* @summary Create the product
|
|
102
|
+
* @param {CreateProductRequestDto} createProductRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
createProduct: function (createProductRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('
|
|
116
|
-
localVarPath = "/insuranceservice/v1/
|
|
114
|
+
// verify required parameter 'createProductRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createProduct', 'createProductRequestDto', createProductRequestDto);
|
|
116
|
+
localVarPath = "/insuranceservice/v1/products";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
119
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -136,7 +136,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductRequestDto, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -146,29 +146,30 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @summary
|
|
151
|
-
* @param {
|
|
149
|
+
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
150
|
+
* @summary Delete the product
|
|
151
|
+
* @param {number} id
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
deleteProduct: function (id, authorization, options) {
|
|
157
157
|
if (options === void 0) { options = {}; }
|
|
158
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
160
|
return __generator(this, function (_a) {
|
|
161
161
|
switch (_a.label) {
|
|
162
162
|
case 0:
|
|
163
|
-
// verify required parameter '
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
165
|
-
localVarPath = "/insuranceservice/v1/products"
|
|
163
|
+
// verify required parameter 'id' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('deleteProduct', 'id', id);
|
|
165
|
+
localVarPath = "/insuranceservice/v1/products/{id}"
|
|
166
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
166
167
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
168
|
if (configuration) {
|
|
168
169
|
baseOptions = configuration.baseOptions;
|
|
169
170
|
baseAccessToken = configuration.accessToken;
|
|
170
171
|
}
|
|
171
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
172
173
|
localVarHeaderParameter = {};
|
|
173
174
|
localVarQueryParameter = {};
|
|
174
175
|
// authentication bearer required
|
|
@@ -181,11 +182,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
181
182
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
183
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
184
|
}
|
|
184
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
187
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductRequestDto, localVarRequestOptions, configuration);
|
|
189
188
|
return [2 /*return*/, {
|
|
190
189
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
190
|
options: localVarRequestOptions,
|
|
@@ -195,29 +194,34 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
195
194
|
});
|
|
196
195
|
},
|
|
197
196
|
/**
|
|
198
|
-
*
|
|
199
|
-
* @summary
|
|
200
|
-
* @param {
|
|
201
|
-
* @param {
|
|
197
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
198
|
+
* @summary Retrieve the product
|
|
199
|
+
* @param {string} code Unique identifier for the object.
|
|
200
|
+
* @param {number} id Product id
|
|
201
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
202
|
+
* @param {string} [expand] Fields to expand response by
|
|
202
203
|
* @param {*} [options] Override http request option.
|
|
203
204
|
* @throws {RequiredError}
|
|
204
205
|
*/
|
|
205
|
-
|
|
206
|
+
getProductByCode: function (code, id, authorization, expand, options) {
|
|
206
207
|
if (options === void 0) { options = {}; }
|
|
207
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
209
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
210
|
return __generator(this, function (_a) {
|
|
210
211
|
switch (_a.label) {
|
|
211
212
|
case 0:
|
|
212
|
-
// verify required parameter '
|
|
213
|
-
(0, common_1.assertParamExists)('
|
|
214
|
-
|
|
213
|
+
// verify required parameter 'code' is not null or undefined
|
|
214
|
+
(0, common_1.assertParamExists)('getProductByCode', 'code', code);
|
|
215
|
+
// verify required parameter 'id' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('getProductByCode', 'id', id);
|
|
217
|
+
localVarPath = "/insuranceservice/v1/products/code/{code}"
|
|
218
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
215
219
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
220
|
if (configuration) {
|
|
217
221
|
baseOptions = configuration.baseOptions;
|
|
218
222
|
baseAccessToken = configuration.accessToken;
|
|
219
223
|
}
|
|
220
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
224
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
221
225
|
localVarHeaderParameter = {};
|
|
222
226
|
localVarQueryParameter = {};
|
|
223
227
|
// authentication bearer required
|
|
@@ -227,14 +231,18 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
227
231
|
// authentication bearer required
|
|
228
232
|
// http bearer authentication required
|
|
229
233
|
_a.sent();
|
|
234
|
+
if (id !== undefined) {
|
|
235
|
+
localVarQueryParameter['id'] = id;
|
|
236
|
+
}
|
|
237
|
+
if (expand !== undefined) {
|
|
238
|
+
localVarQueryParameter['expand'] = expand;
|
|
239
|
+
}
|
|
230
240
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
241
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
242
|
}
|
|
233
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
243
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
244
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
245
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
237
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductFieldRequestDto, localVarRequestOptions, configuration);
|
|
238
246
|
return [2 /*return*/, {
|
|
239
247
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
248
|
options: localVarRequestOptions,
|
|
@@ -244,30 +252,32 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
244
252
|
});
|
|
245
253
|
},
|
|
246
254
|
/**
|
|
247
|
-
*
|
|
248
|
-
* @summary
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {
|
|
255
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
256
|
+
* @summary List products
|
|
257
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
258
|
+
* @param {number} [pageSize] Page size.
|
|
259
|
+
* @param {string} [pageToken] Page token.
|
|
260
|
+
* @param {string} [filter] List filter
|
|
261
|
+
* @param {string} [search] Search query.
|
|
262
|
+
* @param {string} [order] Ordering criteria.
|
|
263
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
251
264
|
* @param {*} [options] Override http request option.
|
|
252
265
|
* @throws {RequiredError}
|
|
253
266
|
*/
|
|
254
|
-
|
|
267
|
+
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
255
268
|
if (options === void 0) { options = {}; }
|
|
256
269
|
return __awaiter(_this, void 0, void 0, function () {
|
|
257
270
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
258
271
|
return __generator(this, function (_a) {
|
|
259
272
|
switch (_a.label) {
|
|
260
273
|
case 0:
|
|
261
|
-
|
|
262
|
-
(0, common_1.assertParamExists)('deletePremiumFormula', 'id', id);
|
|
263
|
-
localVarPath = "/insuranceservice/v1/premium-formulas/{id}"
|
|
264
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
274
|
+
localVarPath = "/insuranceservice/v1/products";
|
|
265
275
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
266
276
|
if (configuration) {
|
|
267
277
|
baseOptions = configuration.baseOptions;
|
|
268
278
|
baseAccessToken = configuration.accessToken;
|
|
269
279
|
}
|
|
270
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
280
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
271
281
|
localVarHeaderParameter = {};
|
|
272
282
|
localVarQueryParameter = {};
|
|
273
283
|
// authentication bearer required
|
|
@@ -277,6 +287,24 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
277
287
|
// authentication bearer required
|
|
278
288
|
// http bearer authentication required
|
|
279
289
|
_a.sent();
|
|
290
|
+
if (pageSize !== undefined) {
|
|
291
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
292
|
+
}
|
|
293
|
+
if (pageToken !== undefined) {
|
|
294
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
295
|
+
}
|
|
296
|
+
if (filter !== undefined) {
|
|
297
|
+
localVarQueryParameter['filter'] = filter;
|
|
298
|
+
}
|
|
299
|
+
if (search !== undefined) {
|
|
300
|
+
localVarQueryParameter['search'] = search;
|
|
301
|
+
}
|
|
302
|
+
if (order !== undefined) {
|
|
303
|
+
localVarQueryParameter['order'] = order;
|
|
304
|
+
}
|
|
305
|
+
if (expand !== undefined) {
|
|
306
|
+
localVarQueryParameter['expand'] = expand;
|
|
307
|
+
}
|
|
280
308
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
281
309
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
282
310
|
}
|
|
@@ -292,14 +320,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
292
320
|
});
|
|
293
321
|
},
|
|
294
322
|
/**
|
|
295
|
-
*
|
|
296
|
-
* @summary
|
|
323
|
+
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
324
|
+
* @summary Update the product
|
|
297
325
|
* @param {number} id
|
|
326
|
+
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
298
327
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
328
|
* @param {*} [options] Override http request option.
|
|
300
329
|
* @throws {RequiredError}
|
|
301
330
|
*/
|
|
302
|
-
|
|
331
|
+
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
303
332
|
if (options === void 0) { options = {}; }
|
|
304
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
305
334
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -307,7 +336,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
307
336
|
switch (_a.label) {
|
|
308
337
|
case 0:
|
|
309
338
|
// verify required parameter 'id' is not null or undefined
|
|
310
|
-
(0, common_1.assertParamExists)('
|
|
339
|
+
(0, common_1.assertParamExists)('updateProduct', 'id', id);
|
|
340
|
+
// verify required parameter 'updateProductRequestDto' is not null or undefined
|
|
341
|
+
(0, common_1.assertParamExists)('updateProduct', 'updateProductRequestDto', updateProductRequestDto);
|
|
311
342
|
localVarPath = "/insuranceservice/v1/products/{id}"
|
|
312
343
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
313
344
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -315,7 +346,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
315
346
|
baseOptions = configuration.baseOptions;
|
|
316
347
|
baseAccessToken = configuration.accessToken;
|
|
317
348
|
}
|
|
318
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
349
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
319
350
|
localVarHeaderParameter = {};
|
|
320
351
|
localVarQueryParameter = {};
|
|
321
352
|
// authentication bearer required
|
|
@@ -328,9 +359,11 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
328
359
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
329
360
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
330
361
|
}
|
|
362
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
363
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
332
364
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
365
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
366
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequestDto, localVarRequestOptions, configuration);
|
|
334
367
|
return [2 /*return*/, {
|
|
335
368
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
336
369
|
options: localVarRequestOptions,
|
|
@@ -339,104 +372,54 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
339
372
|
});
|
|
340
373
|
});
|
|
341
374
|
},
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
|
|
378
|
+
/**
|
|
379
|
+
* ProductsApi - functional programming interface
|
|
380
|
+
* @export
|
|
381
|
+
*/
|
|
382
|
+
var ProductsApiFp = function (configuration) {
|
|
383
|
+
var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
|
|
384
|
+
return {
|
|
342
385
|
/**
|
|
343
|
-
*
|
|
344
|
-
* @summary
|
|
345
|
-
* @param {
|
|
346
|
-
* @param {string} [authorization] Bearer Token
|
|
386
|
+
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
387
|
+
* @summary Create the product
|
|
388
|
+
* @param {CreateProductRequestDto} createProductRequestDto
|
|
389
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
347
390
|
* @param {*} [options] Override http request option.
|
|
348
391
|
* @throws {RequiredError}
|
|
349
392
|
*/
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
393
|
+
createProduct: function (createProductRequestDto, authorization, options) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
395
|
+
var localVarAxiosArgs;
|
|
354
396
|
return __generator(this, function (_a) {
|
|
355
397
|
switch (_a.label) {
|
|
356
|
-
case 0:
|
|
357
|
-
// verify required parameter 'id' is not null or undefined
|
|
358
|
-
(0, common_1.assertParamExists)('deleteProductField', 'id', id);
|
|
359
|
-
localVarPath = "/insuranceservice/v1/product-fields/{id}"
|
|
360
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
361
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
362
|
-
if (configuration) {
|
|
363
|
-
baseOptions = configuration.baseOptions;
|
|
364
|
-
baseAccessToken = configuration.accessToken;
|
|
365
|
-
}
|
|
366
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
367
|
-
localVarHeaderParameter = {};
|
|
368
|
-
localVarQueryParameter = {};
|
|
369
|
-
// authentication bearer required
|
|
370
|
-
// http bearer authentication required
|
|
371
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
398
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options)];
|
|
372
399
|
case 1:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
_a.sent();
|
|
376
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
377
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
378
|
-
}
|
|
379
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
380
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
381
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
382
|
-
return [2 /*return*/, {
|
|
383
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
384
|
-
options: localVarRequestOptions,
|
|
385
|
-
}];
|
|
400
|
+
localVarAxiosArgs = _a.sent();
|
|
401
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
386
402
|
}
|
|
387
403
|
});
|
|
388
404
|
});
|
|
389
405
|
},
|
|
390
406
|
/**
|
|
391
|
-
*
|
|
392
|
-
* @summary
|
|
393
|
-
* @param {
|
|
394
|
-
* @param {
|
|
395
|
-
* @param {string} [authorization] Bearer Token
|
|
407
|
+
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
408
|
+
* @summary Delete the product
|
|
409
|
+
* @param {number} id
|
|
410
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
396
411
|
* @param {*} [options] Override http request option.
|
|
397
412
|
* @throws {RequiredError}
|
|
398
413
|
*/
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
414
|
+
deleteProduct: function (id, authorization, options) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
416
|
+
var localVarAxiosArgs;
|
|
403
417
|
return __generator(this, function (_a) {
|
|
404
418
|
switch (_a.label) {
|
|
405
|
-
case 0:
|
|
406
|
-
// verify required parameter 'id' is not null or undefined
|
|
407
|
-
(0, common_1.assertParamExists)('getPremiumFormula', 'id', id);
|
|
408
|
-
// verify required parameter 'id2' is not null or undefined
|
|
409
|
-
(0, common_1.assertParamExists)('getPremiumFormula', 'id2', id2);
|
|
410
|
-
localVarPath = "/insuranceservice/v1/premium-formulas/{id}"
|
|
411
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
412
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
413
|
-
if (configuration) {
|
|
414
|
-
baseOptions = configuration.baseOptions;
|
|
415
|
-
baseAccessToken = configuration.accessToken;
|
|
416
|
-
}
|
|
417
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
418
|
-
localVarHeaderParameter = {};
|
|
419
|
-
localVarQueryParameter = {};
|
|
420
|
-
// authentication bearer required
|
|
421
|
-
// http bearer authentication required
|
|
422
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
419
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProduct(id, authorization, options)];
|
|
423
420
|
case 1:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
_a.sent();
|
|
427
|
-
if (id2 !== undefined) {
|
|
428
|
-
localVarQueryParameter['id'] = id2;
|
|
429
|
-
}
|
|
430
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
431
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
432
|
-
}
|
|
433
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
434
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
435
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
436
|
-
return [2 /*return*/, {
|
|
437
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
438
|
-
options: localVarRequestOptions,
|
|
439
|
-
}];
|
|
421
|
+
localVarAxiosArgs = _a.sent();
|
|
422
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
440
423
|
}
|
|
441
424
|
});
|
|
442
425
|
});
|
|
@@ -452,1413 +435,34 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
452
435
|
* @throws {RequiredError}
|
|
453
436
|
*/
|
|
454
437
|
getProductByCode: function (code, id, authorization, expand, options) {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
438
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
439
|
+
var localVarAxiosArgs;
|
|
458
440
|
return __generator(this, function (_a) {
|
|
459
441
|
switch (_a.label) {
|
|
460
|
-
case 0:
|
|
461
|
-
// verify required parameter 'code' is not null or undefined
|
|
462
|
-
(0, common_1.assertParamExists)('getProductByCode', 'code', code);
|
|
463
|
-
// verify required parameter 'id' is not null or undefined
|
|
464
|
-
(0, common_1.assertParamExists)('getProductByCode', 'id', id);
|
|
465
|
-
localVarPath = "/insuranceservice/v1/products/code/{code}"
|
|
466
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
467
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
468
|
-
if (configuration) {
|
|
469
|
-
baseOptions = configuration.baseOptions;
|
|
470
|
-
baseAccessToken = configuration.accessToken;
|
|
471
|
-
}
|
|
472
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
473
|
-
localVarHeaderParameter = {};
|
|
474
|
-
localVarQueryParameter = {};
|
|
475
|
-
// authentication bearer required
|
|
476
|
-
// http bearer authentication required
|
|
477
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
442
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options)];
|
|
478
443
|
case 1:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
_a.sent();
|
|
482
|
-
if (id !== undefined) {
|
|
483
|
-
localVarQueryParameter['id'] = id;
|
|
484
|
-
}
|
|
485
|
-
if (expand !== undefined) {
|
|
486
|
-
localVarQueryParameter['expand'] = expand;
|
|
487
|
-
}
|
|
488
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
489
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
490
|
-
}
|
|
491
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
492
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
493
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
494
|
-
return [2 /*return*/, {
|
|
495
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
496
|
-
options: localVarRequestOptions,
|
|
497
|
-
}];
|
|
444
|
+
localVarAxiosArgs = _a.sent();
|
|
445
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
498
446
|
}
|
|
499
447
|
});
|
|
500
448
|
});
|
|
501
449
|
},
|
|
502
450
|
/**
|
|
503
|
-
*
|
|
504
|
-
* @summary
|
|
505
|
-
* @param {
|
|
506
|
-
* @param {number}
|
|
507
|
-
* @param {string} [
|
|
508
|
-
* @param {string} [
|
|
451
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
452
|
+
* @summary List products
|
|
453
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
|
+
* @param {number} [pageSize] Page size.
|
|
455
|
+
* @param {string} [pageToken] Page token.
|
|
456
|
+
* @param {string} [filter] List filter
|
|
457
|
+
* @param {string} [search] Search query.
|
|
458
|
+
* @param {string} [order] Ordering criteria.
|
|
459
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
509
460
|
* @param {*} [options] Override http request option.
|
|
510
461
|
* @throws {RequiredError}
|
|
511
462
|
*/
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
516
|
-
return __generator(this, function (_a) {
|
|
517
|
-
switch (_a.label) {
|
|
518
|
-
case 0:
|
|
519
|
-
// verify required parameter 'id' is not null or undefined
|
|
520
|
-
(0, common_1.assertParamExists)('getProductFactor', 'id', id);
|
|
521
|
-
// verify required parameter 'id2' is not null or undefined
|
|
522
|
-
(0, common_1.assertParamExists)('getProductFactor', 'id2', id2);
|
|
523
|
-
localVarPath = "/insuranceservice/v1/product-factors/{id}"
|
|
524
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
525
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
526
|
-
if (configuration) {
|
|
527
|
-
baseOptions = configuration.baseOptions;
|
|
528
|
-
baseAccessToken = configuration.accessToken;
|
|
529
|
-
}
|
|
530
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
531
|
-
localVarHeaderParameter = {};
|
|
532
|
-
localVarQueryParameter = {};
|
|
533
|
-
// authentication bearer required
|
|
534
|
-
// http bearer authentication required
|
|
535
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
536
|
-
case 1:
|
|
537
|
-
// authentication bearer required
|
|
538
|
-
// http bearer authentication required
|
|
539
|
-
_a.sent();
|
|
540
|
-
if (id2 !== undefined) {
|
|
541
|
-
localVarQueryParameter['id'] = id2;
|
|
542
|
-
}
|
|
543
|
-
if (expand !== undefined) {
|
|
544
|
-
localVarQueryParameter['expand'] = expand;
|
|
545
|
-
}
|
|
546
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
547
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
548
|
-
}
|
|
549
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
550
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
551
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
552
|
-
return [2 /*return*/, {
|
|
553
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
554
|
-
options: localVarRequestOptions,
|
|
555
|
-
}];
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
},
|
|
560
|
-
/**
|
|
561
|
-
* Get the value corresponding to a specific product factor.
|
|
562
|
-
* @summary Get product factor value
|
|
563
|
-
* @param {number} productVersionId Product Version Id
|
|
564
|
-
* @param {string} label Product factor label
|
|
565
|
-
* @param {string} key Key for the product factor value
|
|
566
|
-
* @param {string} name Name for the product factor value
|
|
567
|
-
* @param {string} [authorization] Bearer Token
|
|
568
|
-
* @param {*} [options] Override http request option.
|
|
569
|
-
* @throws {RequiredError}
|
|
570
|
-
*/
|
|
571
|
-
getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
|
|
572
|
-
if (options === void 0) { options = {}; }
|
|
573
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
574
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
575
|
-
return __generator(this, function (_a) {
|
|
576
|
-
switch (_a.label) {
|
|
577
|
-
case 0:
|
|
578
|
-
// verify required parameter 'productVersionId' is not null or undefined
|
|
579
|
-
(0, common_1.assertParamExists)('getProductFactorValue', 'productVersionId', productVersionId);
|
|
580
|
-
// verify required parameter 'label' is not null or undefined
|
|
581
|
-
(0, common_1.assertParamExists)('getProductFactorValue', 'label', label);
|
|
582
|
-
// verify required parameter 'key' is not null or undefined
|
|
583
|
-
(0, common_1.assertParamExists)('getProductFactorValue', 'key', key);
|
|
584
|
-
// verify required parameter 'name' is not null or undefined
|
|
585
|
-
(0, common_1.assertParamExists)('getProductFactorValue', 'name', name);
|
|
586
|
-
localVarPath = "/insuranceservice/v1/product-factors/values";
|
|
587
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
588
|
-
if (configuration) {
|
|
589
|
-
baseOptions = configuration.baseOptions;
|
|
590
|
-
baseAccessToken = configuration.accessToken;
|
|
591
|
-
}
|
|
592
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
593
|
-
localVarHeaderParameter = {};
|
|
594
|
-
localVarQueryParameter = {};
|
|
595
|
-
// authentication bearer required
|
|
596
|
-
// http bearer authentication required
|
|
597
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
598
|
-
case 1:
|
|
599
|
-
// authentication bearer required
|
|
600
|
-
// http bearer authentication required
|
|
601
|
-
_a.sent();
|
|
602
|
-
if (productVersionId !== undefined) {
|
|
603
|
-
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
604
|
-
}
|
|
605
|
-
if (label !== undefined) {
|
|
606
|
-
localVarQueryParameter['label'] = label;
|
|
607
|
-
}
|
|
608
|
-
if (key !== undefined) {
|
|
609
|
-
localVarQueryParameter['key'] = key;
|
|
610
|
-
}
|
|
611
|
-
if (name !== undefined) {
|
|
612
|
-
localVarQueryParameter['name'] = name;
|
|
613
|
-
}
|
|
614
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
615
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
616
|
-
}
|
|
617
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
618
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
619
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
620
|
-
return [2 /*return*/, {
|
|
621
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
622
|
-
options: localVarRequestOptions,
|
|
623
|
-
}];
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
});
|
|
627
|
-
},
|
|
628
|
-
/**
|
|
629
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
630
|
-
* @summary Returns all product factors for the product version with all without values
|
|
631
|
-
* @param {number} productVersionId Product Version Id
|
|
632
|
-
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All)
|
|
633
|
-
* @param {string} [authorization] Bearer Token
|
|
634
|
-
* @param {boolean} [forPublic] true if this is a call from PublivAPI or false otherwise (default)
|
|
635
|
-
* @param {*} [options] Override http request option.
|
|
636
|
-
* @throws {RequiredError}
|
|
637
|
-
*/
|
|
638
|
-
getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
|
|
639
|
-
if (options === void 0) { options = {}; }
|
|
640
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
641
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
642
|
-
return __generator(this, function (_a) {
|
|
643
|
-
switch (_a.label) {
|
|
644
|
-
case 0:
|
|
645
|
-
// verify required parameter 'productVersionId' is not null or undefined
|
|
646
|
-
(0, common_1.assertParamExists)('getProductFactorsForVersion', 'productVersionId', productVersionId);
|
|
647
|
-
// verify required parameter 'values' is not null or undefined
|
|
648
|
-
(0, common_1.assertParamExists)('getProductFactorsForVersion', 'values', values);
|
|
649
|
-
localVarPath = "/insuranceservice/v1/product-factors/for-version";
|
|
650
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
651
|
-
if (configuration) {
|
|
652
|
-
baseOptions = configuration.baseOptions;
|
|
653
|
-
baseAccessToken = configuration.accessToken;
|
|
654
|
-
}
|
|
655
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
656
|
-
localVarHeaderParameter = {};
|
|
657
|
-
localVarQueryParameter = {};
|
|
658
|
-
// authentication bearer required
|
|
659
|
-
// http bearer authentication required
|
|
660
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
661
|
-
case 1:
|
|
662
|
-
// authentication bearer required
|
|
663
|
-
// http bearer authentication required
|
|
664
|
-
_a.sent();
|
|
665
|
-
if (productVersionId !== undefined) {
|
|
666
|
-
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
667
|
-
}
|
|
668
|
-
if (values !== undefined) {
|
|
669
|
-
localVarQueryParameter['values'] = values;
|
|
670
|
-
}
|
|
671
|
-
if (forPublic !== undefined) {
|
|
672
|
-
localVarQueryParameter['forPublic'] = forPublic;
|
|
673
|
-
}
|
|
674
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
675
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
676
|
-
}
|
|
677
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
678
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
679
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
680
|
-
return [2 /*return*/, {
|
|
681
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
682
|
-
options: localVarRequestOptions,
|
|
683
|
-
}];
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
});
|
|
687
|
-
},
|
|
688
|
-
/**
|
|
689
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
690
|
-
* @summary Retrieve the product field
|
|
691
|
-
* @param {string} id
|
|
692
|
-
* @param {string} [authorization] Bearer Token
|
|
693
|
-
* @param {*} [options] Override http request option.
|
|
694
|
-
* @throws {RequiredError}
|
|
695
|
-
*/
|
|
696
|
-
getProductField: function (id, authorization, options) {
|
|
697
|
-
if (options === void 0) { options = {}; }
|
|
698
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
699
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
700
|
-
return __generator(this, function (_a) {
|
|
701
|
-
switch (_a.label) {
|
|
702
|
-
case 0:
|
|
703
|
-
// verify required parameter 'id' is not null or undefined
|
|
704
|
-
(0, common_1.assertParamExists)('getProductField', 'id', id);
|
|
705
|
-
localVarPath = "/insuranceservice/v1/product-fields/{id}"
|
|
706
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
707
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
708
|
-
if (configuration) {
|
|
709
|
-
baseOptions = configuration.baseOptions;
|
|
710
|
-
baseAccessToken = configuration.accessToken;
|
|
711
|
-
}
|
|
712
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
713
|
-
localVarHeaderParameter = {};
|
|
714
|
-
localVarQueryParameter = {};
|
|
715
|
-
// authentication bearer required
|
|
716
|
-
// http bearer authentication required
|
|
717
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
718
|
-
case 1:
|
|
719
|
-
// authentication bearer required
|
|
720
|
-
// http bearer authentication required
|
|
721
|
-
_a.sent();
|
|
722
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
723
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
724
|
-
}
|
|
725
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
726
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
727
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
728
|
-
return [2 /*return*/, {
|
|
729
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
730
|
-
options: localVarRequestOptions,
|
|
731
|
-
}];
|
|
732
|
-
}
|
|
733
|
-
});
|
|
734
|
-
});
|
|
735
|
-
},
|
|
736
|
-
/**
|
|
737
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
738
|
-
* @summary Retrieve the product version
|
|
739
|
-
* @param {string} id
|
|
740
|
-
* @param {number} id2 Product version id
|
|
741
|
-
* @param {string} [authorization] Bearer Token
|
|
742
|
-
* @param {*} [options] Override http request option.
|
|
743
|
-
* @throws {RequiredError}
|
|
744
|
-
*/
|
|
745
|
-
getProductVersion: function (id, id2, authorization, options) {
|
|
746
|
-
if (options === void 0) { options = {}; }
|
|
747
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
748
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
749
|
-
return __generator(this, function (_a) {
|
|
750
|
-
switch (_a.label) {
|
|
751
|
-
case 0:
|
|
752
|
-
// verify required parameter 'id' is not null or undefined
|
|
753
|
-
(0, common_1.assertParamExists)('getProductVersion', 'id', id);
|
|
754
|
-
// verify required parameter 'id2' is not null or undefined
|
|
755
|
-
(0, common_1.assertParamExists)('getProductVersion', 'id2', id2);
|
|
756
|
-
localVarPath = "/insuranceservice/v1/product-versions/{id}"
|
|
757
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
758
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
759
|
-
if (configuration) {
|
|
760
|
-
baseOptions = configuration.baseOptions;
|
|
761
|
-
baseAccessToken = configuration.accessToken;
|
|
762
|
-
}
|
|
763
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
764
|
-
localVarHeaderParameter = {};
|
|
765
|
-
localVarQueryParameter = {};
|
|
766
|
-
// authentication bearer required
|
|
767
|
-
// http bearer authentication required
|
|
768
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
769
|
-
case 1:
|
|
770
|
-
// authentication bearer required
|
|
771
|
-
// http bearer authentication required
|
|
772
|
-
_a.sent();
|
|
773
|
-
if (id2 !== undefined) {
|
|
774
|
-
localVarQueryParameter['id'] = id2;
|
|
775
|
-
}
|
|
776
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
777
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
778
|
-
}
|
|
779
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
780
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
781
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
782
|
-
return [2 /*return*/, {
|
|
783
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
784
|
-
options: localVarRequestOptions,
|
|
785
|
-
}];
|
|
786
|
-
}
|
|
787
|
-
});
|
|
788
|
-
});
|
|
789
|
-
},
|
|
790
|
-
/**
|
|
791
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
792
|
-
* @summary List premium formulas
|
|
793
|
-
* @param {string} [authorization] Bearer Token
|
|
794
|
-
* @param {number} [pageSize] Page size
|
|
795
|
-
* @param {string} [pageToken] Page token
|
|
796
|
-
* @param {string} [filter] List filter
|
|
797
|
-
* @param {string} [search] Search query
|
|
798
|
-
* @param {string} [order] Ordering criteria
|
|
799
|
-
* @param {string} [expand] Extra fields to fetch
|
|
800
|
-
* @param {*} [options] Override http request option.
|
|
801
|
-
* @throws {RequiredError}
|
|
802
|
-
*/
|
|
803
|
-
listPremiumFormulas: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
804
|
-
if (options === void 0) { options = {}; }
|
|
805
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
806
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
807
|
-
return __generator(this, function (_a) {
|
|
808
|
-
switch (_a.label) {
|
|
809
|
-
case 0:
|
|
810
|
-
localVarPath = "/insuranceservice/v1/premium-formulas";
|
|
811
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
812
|
-
if (configuration) {
|
|
813
|
-
baseOptions = configuration.baseOptions;
|
|
814
|
-
baseAccessToken = configuration.accessToken;
|
|
815
|
-
}
|
|
816
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
817
|
-
localVarHeaderParameter = {};
|
|
818
|
-
localVarQueryParameter = {};
|
|
819
|
-
// authentication bearer required
|
|
820
|
-
// http bearer authentication required
|
|
821
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
822
|
-
case 1:
|
|
823
|
-
// authentication bearer required
|
|
824
|
-
// http bearer authentication required
|
|
825
|
-
_a.sent();
|
|
826
|
-
if (pageSize !== undefined) {
|
|
827
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
828
|
-
}
|
|
829
|
-
if (pageToken !== undefined) {
|
|
830
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
831
|
-
}
|
|
832
|
-
if (filter !== undefined) {
|
|
833
|
-
localVarQueryParameter['filter'] = filter;
|
|
834
|
-
}
|
|
835
|
-
if (search !== undefined) {
|
|
836
|
-
localVarQueryParameter['search'] = search;
|
|
837
|
-
}
|
|
838
|
-
if (order !== undefined) {
|
|
839
|
-
localVarQueryParameter['order'] = order;
|
|
840
|
-
}
|
|
841
|
-
if (expand !== undefined) {
|
|
842
|
-
localVarQueryParameter['expand'] = expand;
|
|
843
|
-
}
|
|
844
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
845
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
846
|
-
}
|
|
847
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
848
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
849
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
850
|
-
return [2 /*return*/, {
|
|
851
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
852
|
-
options: localVarRequestOptions,
|
|
853
|
-
}];
|
|
854
|
-
}
|
|
855
|
-
});
|
|
856
|
-
});
|
|
857
|
-
},
|
|
858
|
-
/**
|
|
859
|
-
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
860
|
-
* @summary List product factors
|
|
861
|
-
* @param {string} [authorization] Bearer Token
|
|
862
|
-
* @param {number} [pageSize] Page size
|
|
863
|
-
* @param {string} [pageToken] Page token
|
|
864
|
-
* @param {string} [filter] List filter
|
|
865
|
-
* @param {string} [search] Search query
|
|
866
|
-
* @param {string} [order] Ordering criteria
|
|
867
|
-
* @param {string} [expand] Extra fields to fetch
|
|
868
|
-
* @param {*} [options] Override http request option.
|
|
869
|
-
* @throws {RequiredError}
|
|
870
|
-
*/
|
|
871
|
-
listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
872
|
-
if (options === void 0) { options = {}; }
|
|
873
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
874
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
875
|
-
return __generator(this, function (_a) {
|
|
876
|
-
switch (_a.label) {
|
|
877
|
-
case 0:
|
|
878
|
-
localVarPath = "/insuranceservice/v1/product-factors";
|
|
879
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
880
|
-
if (configuration) {
|
|
881
|
-
baseOptions = configuration.baseOptions;
|
|
882
|
-
baseAccessToken = configuration.accessToken;
|
|
883
|
-
}
|
|
884
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
885
|
-
localVarHeaderParameter = {};
|
|
886
|
-
localVarQueryParameter = {};
|
|
887
|
-
// authentication bearer required
|
|
888
|
-
// http bearer authentication required
|
|
889
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
890
|
-
case 1:
|
|
891
|
-
// authentication bearer required
|
|
892
|
-
// http bearer authentication required
|
|
893
|
-
_a.sent();
|
|
894
|
-
if (pageSize !== undefined) {
|
|
895
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
896
|
-
}
|
|
897
|
-
if (pageToken !== undefined) {
|
|
898
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
899
|
-
}
|
|
900
|
-
if (filter !== undefined) {
|
|
901
|
-
localVarQueryParameter['filter'] = filter;
|
|
902
|
-
}
|
|
903
|
-
if (search !== undefined) {
|
|
904
|
-
localVarQueryParameter['search'] = search;
|
|
905
|
-
}
|
|
906
|
-
if (order !== undefined) {
|
|
907
|
-
localVarQueryParameter['order'] = order;
|
|
908
|
-
}
|
|
909
|
-
if (expand !== undefined) {
|
|
910
|
-
localVarQueryParameter['expand'] = expand;
|
|
911
|
-
}
|
|
912
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
913
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
914
|
-
}
|
|
915
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
916
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
917
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
918
|
-
return [2 /*return*/, {
|
|
919
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
920
|
-
options: localVarRequestOptions,
|
|
921
|
-
}];
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
});
|
|
925
|
-
},
|
|
926
|
-
/**
|
|
927
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
928
|
-
* @summary List product field types
|
|
929
|
-
* @param {string} [authorization] Bearer Token
|
|
930
|
-
* @param {number} [pageSize] Page size
|
|
931
|
-
* @param {string} [pageToken] Page token
|
|
932
|
-
* @param {string} [filter] List filter
|
|
933
|
-
* @param {string} [search] Search query
|
|
934
|
-
* @param {string} [order] Ordering criteria
|
|
935
|
-
* @param {string} [expand] Extra fields to fetch
|
|
936
|
-
* @param {*} [options] Override http request option.
|
|
937
|
-
* @throws {RequiredError}
|
|
938
|
-
*/
|
|
939
|
-
listProductFieldTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
940
|
-
if (options === void 0) { options = {}; }
|
|
941
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
942
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
943
|
-
return __generator(this, function (_a) {
|
|
944
|
-
switch (_a.label) {
|
|
945
|
-
case 0:
|
|
946
|
-
localVarPath = "/insuranceservice/v1/product-fields/types";
|
|
947
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
948
|
-
if (configuration) {
|
|
949
|
-
baseOptions = configuration.baseOptions;
|
|
950
|
-
baseAccessToken = configuration.accessToken;
|
|
951
|
-
}
|
|
952
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
953
|
-
localVarHeaderParameter = {};
|
|
954
|
-
localVarQueryParameter = {};
|
|
955
|
-
// authentication bearer required
|
|
956
|
-
// http bearer authentication required
|
|
957
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
958
|
-
case 1:
|
|
959
|
-
// authentication bearer required
|
|
960
|
-
// http bearer authentication required
|
|
961
|
-
_a.sent();
|
|
962
|
-
if (pageSize !== undefined) {
|
|
963
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
964
|
-
}
|
|
965
|
-
if (pageToken !== undefined) {
|
|
966
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
967
|
-
}
|
|
968
|
-
if (filter !== undefined) {
|
|
969
|
-
localVarQueryParameter['filter'] = filter;
|
|
970
|
-
}
|
|
971
|
-
if (search !== undefined) {
|
|
972
|
-
localVarQueryParameter['search'] = search;
|
|
973
|
-
}
|
|
974
|
-
if (order !== undefined) {
|
|
975
|
-
localVarQueryParameter['order'] = order;
|
|
976
|
-
}
|
|
977
|
-
if (expand !== undefined) {
|
|
978
|
-
localVarQueryParameter['expand'] = expand;
|
|
979
|
-
}
|
|
980
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
981
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
982
|
-
}
|
|
983
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
984
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
986
|
-
return [2 /*return*/, {
|
|
987
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
988
|
-
options: localVarRequestOptions,
|
|
989
|
-
}];
|
|
990
|
-
}
|
|
991
|
-
});
|
|
992
|
-
});
|
|
993
|
-
},
|
|
994
|
-
/**
|
|
995
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
996
|
-
* @summary List product fields
|
|
997
|
-
* @param {string} [authorization] Bearer Token
|
|
998
|
-
* @param {number} [pageSize] Page size
|
|
999
|
-
* @param {string} [pageToken] Page token
|
|
1000
|
-
* @param {string} [filter] List filter
|
|
1001
|
-
* @param {string} [search] Search query
|
|
1002
|
-
* @param {string} [order] Ordering criteria
|
|
1003
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1004
|
-
* @param {*} [options] Override http request option.
|
|
1005
|
-
* @throws {RequiredError}
|
|
1006
|
-
*/
|
|
1007
|
-
listProductFields: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1008
|
-
if (options === void 0) { options = {}; }
|
|
1009
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1010
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1011
|
-
return __generator(this, function (_a) {
|
|
1012
|
-
switch (_a.label) {
|
|
1013
|
-
case 0:
|
|
1014
|
-
localVarPath = "/insuranceservice/v1/product-fields";
|
|
1015
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1016
|
-
if (configuration) {
|
|
1017
|
-
baseOptions = configuration.baseOptions;
|
|
1018
|
-
baseAccessToken = configuration.accessToken;
|
|
1019
|
-
}
|
|
1020
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1021
|
-
localVarHeaderParameter = {};
|
|
1022
|
-
localVarQueryParameter = {};
|
|
1023
|
-
// authentication bearer required
|
|
1024
|
-
// http bearer authentication required
|
|
1025
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1026
|
-
case 1:
|
|
1027
|
-
// authentication bearer required
|
|
1028
|
-
// http bearer authentication required
|
|
1029
|
-
_a.sent();
|
|
1030
|
-
if (pageSize !== undefined) {
|
|
1031
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1032
|
-
}
|
|
1033
|
-
if (pageToken !== undefined) {
|
|
1034
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1035
|
-
}
|
|
1036
|
-
if (filter !== undefined) {
|
|
1037
|
-
localVarQueryParameter['filter'] = filter;
|
|
1038
|
-
}
|
|
1039
|
-
if (search !== undefined) {
|
|
1040
|
-
localVarQueryParameter['search'] = search;
|
|
1041
|
-
}
|
|
1042
|
-
if (order !== undefined) {
|
|
1043
|
-
localVarQueryParameter['order'] = order;
|
|
1044
|
-
}
|
|
1045
|
-
if (expand !== undefined) {
|
|
1046
|
-
localVarQueryParameter['expand'] = expand;
|
|
1047
|
-
}
|
|
1048
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1049
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1050
|
-
}
|
|
1051
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1052
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1053
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1054
|
-
return [2 /*return*/, {
|
|
1055
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1056
|
-
options: localVarRequestOptions,
|
|
1057
|
-
}];
|
|
1058
|
-
}
|
|
1059
|
-
});
|
|
1060
|
-
});
|
|
1061
|
-
},
|
|
1062
|
-
/**
|
|
1063
|
-
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1064
|
-
* @summary List products
|
|
1065
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1066
|
-
* @param {number} [pageSize] Page size
|
|
1067
|
-
* @param {string} [pageToken] Page token
|
|
1068
|
-
* @param {string} [filter] List filter
|
|
1069
|
-
* @param {string} [search] Search query
|
|
1070
|
-
* @param {string} [order] Ordering criteria
|
|
1071
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1072
|
-
* @param {*} [options] Override http request option.
|
|
1073
|
-
* @throws {RequiredError}
|
|
1074
|
-
*/
|
|
1075
|
-
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1076
|
-
if (options === void 0) { options = {}; }
|
|
1077
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1078
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1079
|
-
return __generator(this, function (_a) {
|
|
1080
|
-
switch (_a.label) {
|
|
1081
|
-
case 0:
|
|
1082
|
-
localVarPath = "/insuranceservice/v1/products";
|
|
1083
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1084
|
-
if (configuration) {
|
|
1085
|
-
baseOptions = configuration.baseOptions;
|
|
1086
|
-
baseAccessToken = configuration.accessToken;
|
|
1087
|
-
}
|
|
1088
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1089
|
-
localVarHeaderParameter = {};
|
|
1090
|
-
localVarQueryParameter = {};
|
|
1091
|
-
// authentication bearer required
|
|
1092
|
-
// http bearer authentication required
|
|
1093
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1094
|
-
case 1:
|
|
1095
|
-
// authentication bearer required
|
|
1096
|
-
// http bearer authentication required
|
|
1097
|
-
_a.sent();
|
|
1098
|
-
if (pageSize !== undefined) {
|
|
1099
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1100
|
-
}
|
|
1101
|
-
if (pageToken !== undefined) {
|
|
1102
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1103
|
-
}
|
|
1104
|
-
if (filter !== undefined) {
|
|
1105
|
-
localVarQueryParameter['filter'] = filter;
|
|
1106
|
-
}
|
|
1107
|
-
if (search !== undefined) {
|
|
1108
|
-
localVarQueryParameter['search'] = search;
|
|
1109
|
-
}
|
|
1110
|
-
if (order !== undefined) {
|
|
1111
|
-
localVarQueryParameter['order'] = order;
|
|
1112
|
-
}
|
|
1113
|
-
if (expand !== undefined) {
|
|
1114
|
-
localVarQueryParameter['expand'] = expand;
|
|
1115
|
-
}
|
|
1116
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1117
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1118
|
-
}
|
|
1119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1120
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1121
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1122
|
-
return [2 /*return*/, {
|
|
1123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1124
|
-
options: localVarRequestOptions,
|
|
1125
|
-
}];
|
|
1126
|
-
}
|
|
1127
|
-
});
|
|
1128
|
-
});
|
|
1129
|
-
},
|
|
1130
|
-
/**
|
|
1131
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
1132
|
-
* @summary Upload product factors
|
|
1133
|
-
* @param {string} [authorization] Bearer Token
|
|
1134
|
-
* @param {number} [productVersionId]
|
|
1135
|
-
* @param {any} [factors]
|
|
1136
|
-
* @param {*} [options] Override http request option.
|
|
1137
|
-
* @throws {RequiredError}
|
|
1138
|
-
*/
|
|
1139
|
-
storeProductFactors: function (authorization, productVersionId, factors, options) {
|
|
1140
|
-
if (options === void 0) { options = {}; }
|
|
1141
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1142
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
1143
|
-
return __generator(this, function (_a) {
|
|
1144
|
-
switch (_a.label) {
|
|
1145
|
-
case 0:
|
|
1146
|
-
localVarPath = "/insuranceservice/v1/product-factors";
|
|
1147
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1148
|
-
if (configuration) {
|
|
1149
|
-
baseOptions = configuration.baseOptions;
|
|
1150
|
-
baseAccessToken = configuration.accessToken;
|
|
1151
|
-
}
|
|
1152
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1153
|
-
localVarHeaderParameter = {};
|
|
1154
|
-
localVarQueryParameter = {};
|
|
1155
|
-
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1156
|
-
// authentication bearer required
|
|
1157
|
-
// http bearer authentication required
|
|
1158
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1159
|
-
case 1:
|
|
1160
|
-
// authentication bearer required
|
|
1161
|
-
// http bearer authentication required
|
|
1162
|
-
_a.sent();
|
|
1163
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1164
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1165
|
-
}
|
|
1166
|
-
if (productVersionId !== undefined) {
|
|
1167
|
-
localVarFormParams.append('productVersionId', productVersionId);
|
|
1168
|
-
}
|
|
1169
|
-
if (factors !== undefined) {
|
|
1170
|
-
localVarFormParams.append('factors', factors);
|
|
1171
|
-
}
|
|
1172
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
1173
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1174
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1175
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1176
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1177
|
-
return [2 /*return*/, {
|
|
1178
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1179
|
-
options: localVarRequestOptions,
|
|
1180
|
-
}];
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
},
|
|
1185
|
-
/**
|
|
1186
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1187
|
-
* @summary Update the premium formula
|
|
1188
|
-
* @param {number} id
|
|
1189
|
-
* @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
|
|
1190
|
-
* @param {string} [authorization] Bearer Token
|
|
1191
|
-
* @param {*} [options] Override http request option.
|
|
1192
|
-
* @throws {RequiredError}
|
|
1193
|
-
*/
|
|
1194
|
-
updatePremiumFormula: function (id, updatePremiumFormulaRequestDto, authorization, options) {
|
|
1195
|
-
if (options === void 0) { options = {}; }
|
|
1196
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1197
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1198
|
-
return __generator(this, function (_a) {
|
|
1199
|
-
switch (_a.label) {
|
|
1200
|
-
case 0:
|
|
1201
|
-
// verify required parameter 'id' is not null or undefined
|
|
1202
|
-
(0, common_1.assertParamExists)('updatePremiumFormula', 'id', id);
|
|
1203
|
-
// verify required parameter 'updatePremiumFormulaRequestDto' is not null or undefined
|
|
1204
|
-
(0, common_1.assertParamExists)('updatePremiumFormula', 'updatePremiumFormulaRequestDto', updatePremiumFormulaRequestDto);
|
|
1205
|
-
localVarPath = "/insuranceservice/v1/premium-formulas/{id}"
|
|
1206
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1207
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1208
|
-
if (configuration) {
|
|
1209
|
-
baseOptions = configuration.baseOptions;
|
|
1210
|
-
baseAccessToken = configuration.accessToken;
|
|
1211
|
-
}
|
|
1212
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1213
|
-
localVarHeaderParameter = {};
|
|
1214
|
-
localVarQueryParameter = {};
|
|
1215
|
-
// authentication bearer required
|
|
1216
|
-
// http bearer authentication required
|
|
1217
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1218
|
-
case 1:
|
|
1219
|
-
// authentication bearer required
|
|
1220
|
-
// http bearer authentication required
|
|
1221
|
-
_a.sent();
|
|
1222
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1223
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1224
|
-
}
|
|
1225
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1226
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1227
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1228
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1229
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePremiumFormulaRequestDto, localVarRequestOptions, configuration);
|
|
1230
|
-
return [2 /*return*/, {
|
|
1231
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1232
|
-
options: localVarRequestOptions,
|
|
1233
|
-
}];
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
|
-
});
|
|
1237
|
-
},
|
|
1238
|
-
/**
|
|
1239
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1240
|
-
* @summary Update the product
|
|
1241
|
-
* @param {number} id
|
|
1242
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
1243
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1244
|
-
* @param {*} [options] Override http request option.
|
|
1245
|
-
* @throws {RequiredError}
|
|
1246
|
-
*/
|
|
1247
|
-
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
1248
|
-
if (options === void 0) { options = {}; }
|
|
1249
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1250
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1251
|
-
return __generator(this, function (_a) {
|
|
1252
|
-
switch (_a.label) {
|
|
1253
|
-
case 0:
|
|
1254
|
-
// verify required parameter 'id' is not null or undefined
|
|
1255
|
-
(0, common_1.assertParamExists)('updateProduct', 'id', id);
|
|
1256
|
-
// verify required parameter 'updateProductRequestDto' is not null or undefined
|
|
1257
|
-
(0, common_1.assertParamExists)('updateProduct', 'updateProductRequestDto', updateProductRequestDto);
|
|
1258
|
-
localVarPath = "/insuranceservice/v1/products/{id}"
|
|
1259
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1260
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1261
|
-
if (configuration) {
|
|
1262
|
-
baseOptions = configuration.baseOptions;
|
|
1263
|
-
baseAccessToken = configuration.accessToken;
|
|
1264
|
-
}
|
|
1265
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1266
|
-
localVarHeaderParameter = {};
|
|
1267
|
-
localVarQueryParameter = {};
|
|
1268
|
-
// authentication bearer required
|
|
1269
|
-
// http bearer authentication required
|
|
1270
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1271
|
-
case 1:
|
|
1272
|
-
// authentication bearer required
|
|
1273
|
-
// http bearer authentication required
|
|
1274
|
-
_a.sent();
|
|
1275
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1276
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1277
|
-
}
|
|
1278
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1279
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1280
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1281
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1282
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequestDto, localVarRequestOptions, configuration);
|
|
1283
|
-
return [2 /*return*/, {
|
|
1284
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1285
|
-
options: localVarRequestOptions,
|
|
1286
|
-
}];
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
|
-
});
|
|
1290
|
-
},
|
|
1291
|
-
/**
|
|
1292
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1293
|
-
* @summary Update the product
|
|
1294
|
-
* @param {string} id
|
|
1295
|
-
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
1296
|
-
* @param {string} [authorization] Bearer Token
|
|
1297
|
-
* @param {*} [options] Override http request option.
|
|
1298
|
-
* @throws {RequiredError}
|
|
1299
|
-
*/
|
|
1300
|
-
updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
|
|
1301
|
-
if (options === void 0) { options = {}; }
|
|
1302
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1303
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1304
|
-
return __generator(this, function (_a) {
|
|
1305
|
-
switch (_a.label) {
|
|
1306
|
-
case 0:
|
|
1307
|
-
// verify required parameter 'id' is not null or undefined
|
|
1308
|
-
(0, common_1.assertParamExists)('updateProductField', 'id', id);
|
|
1309
|
-
// verify required parameter 'updateProductFieldRequestDto' is not null or undefined
|
|
1310
|
-
(0, common_1.assertParamExists)('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto);
|
|
1311
|
-
localVarPath = "/insuranceservice/v1/product-fields/{id}"
|
|
1312
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1313
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1314
|
-
if (configuration) {
|
|
1315
|
-
baseOptions = configuration.baseOptions;
|
|
1316
|
-
baseAccessToken = configuration.accessToken;
|
|
1317
|
-
}
|
|
1318
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1319
|
-
localVarHeaderParameter = {};
|
|
1320
|
-
localVarQueryParameter = {};
|
|
1321
|
-
// authentication bearer required
|
|
1322
|
-
// http bearer authentication required
|
|
1323
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1324
|
-
case 1:
|
|
1325
|
-
// authentication bearer required
|
|
1326
|
-
// http bearer authentication required
|
|
1327
|
-
_a.sent();
|
|
1328
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1329
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1330
|
-
}
|
|
1331
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1332
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1333
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1334
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1335
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductFieldRequestDto, localVarRequestOptions, configuration);
|
|
1336
|
-
return [2 /*return*/, {
|
|
1337
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1338
|
-
options: localVarRequestOptions,
|
|
1339
|
-
}];
|
|
1340
|
-
}
|
|
1341
|
-
});
|
|
1342
|
-
});
|
|
1343
|
-
},
|
|
1344
|
-
/**
|
|
1345
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1346
|
-
* @summary Update the product version
|
|
1347
|
-
* @param {number} id
|
|
1348
|
-
* @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
|
|
1349
|
-
* @param {string} [authorization] Bearer Token
|
|
1350
|
-
* @param {*} [options] Override http request option.
|
|
1351
|
-
* @throws {RequiredError}
|
|
1352
|
-
*/
|
|
1353
|
-
updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
|
|
1354
|
-
if (options === void 0) { options = {}; }
|
|
1355
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1356
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1357
|
-
return __generator(this, function (_a) {
|
|
1358
|
-
switch (_a.label) {
|
|
1359
|
-
case 0:
|
|
1360
|
-
// verify required parameter 'id' is not null or undefined
|
|
1361
|
-
(0, common_1.assertParamExists)('updateProductVersion', 'id', id);
|
|
1362
|
-
// verify required parameter 'updateProductVersionRequestDto' is not null or undefined
|
|
1363
|
-
(0, common_1.assertParamExists)('updateProductVersion', 'updateProductVersionRequestDto', updateProductVersionRequestDto);
|
|
1364
|
-
localVarPath = "/insuranceservice/v1/product-versions/{id}"
|
|
1365
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1366
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1367
|
-
if (configuration) {
|
|
1368
|
-
baseOptions = configuration.baseOptions;
|
|
1369
|
-
baseAccessToken = configuration.accessToken;
|
|
1370
|
-
}
|
|
1371
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1372
|
-
localVarHeaderParameter = {};
|
|
1373
|
-
localVarQueryParameter = {};
|
|
1374
|
-
// authentication bearer required
|
|
1375
|
-
// http bearer authentication required
|
|
1376
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1377
|
-
case 1:
|
|
1378
|
-
// authentication bearer required
|
|
1379
|
-
// http bearer authentication required
|
|
1380
|
-
_a.sent();
|
|
1381
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1382
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1383
|
-
}
|
|
1384
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1385
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1386
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1387
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1388
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductVersionRequestDto, localVarRequestOptions, configuration);
|
|
1389
|
-
return [2 /*return*/, {
|
|
1390
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1391
|
-
options: localVarRequestOptions,
|
|
1392
|
-
}];
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
});
|
|
1396
|
-
},
|
|
1397
|
-
/**
|
|
1398
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
1399
|
-
* @summary Validate product factors
|
|
1400
|
-
* @param {string} [authorization] Bearer Token
|
|
1401
|
-
* @param {any} [factors]
|
|
1402
|
-
* @param {*} [options] Override http request option.
|
|
1403
|
-
* @throws {RequiredError}
|
|
1404
|
-
*/
|
|
1405
|
-
validateProductFactors: function (authorization, factors, options) {
|
|
1406
|
-
if (options === void 0) { options = {}; }
|
|
1407
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1408
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
1409
|
-
return __generator(this, function (_a) {
|
|
1410
|
-
switch (_a.label) {
|
|
1411
|
-
case 0:
|
|
1412
|
-
localVarPath = "/insuranceservice/v1/product-factors/validate";
|
|
1413
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1414
|
-
if (configuration) {
|
|
1415
|
-
baseOptions = configuration.baseOptions;
|
|
1416
|
-
baseAccessToken = configuration.accessToken;
|
|
1417
|
-
}
|
|
1418
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1419
|
-
localVarHeaderParameter = {};
|
|
1420
|
-
localVarQueryParameter = {};
|
|
1421
|
-
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1422
|
-
// authentication bearer required
|
|
1423
|
-
// http bearer authentication required
|
|
1424
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1425
|
-
case 1:
|
|
1426
|
-
// authentication bearer required
|
|
1427
|
-
// http bearer authentication required
|
|
1428
|
-
_a.sent();
|
|
1429
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1430
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1431
|
-
}
|
|
1432
|
-
if (factors !== undefined) {
|
|
1433
|
-
localVarFormParams.append('factors', factors);
|
|
1434
|
-
}
|
|
1435
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
1436
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1437
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1438
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1439
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1440
|
-
return [2 /*return*/, {
|
|
1441
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1442
|
-
options: localVarRequestOptions,
|
|
1443
|
-
}];
|
|
1444
|
-
}
|
|
1445
|
-
});
|
|
1446
|
-
});
|
|
1447
|
-
},
|
|
1448
|
-
};
|
|
1449
|
-
};
|
|
1450
|
-
exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
|
|
1451
|
-
/**
|
|
1452
|
-
* ProductsApi - functional programming interface
|
|
1453
|
-
* @export
|
|
1454
|
-
*/
|
|
1455
|
-
var ProductsApiFp = function (configuration) {
|
|
1456
|
-
var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
|
|
1457
|
-
return {
|
|
1458
|
-
/**
|
|
1459
|
-
* Creates a premium formula.
|
|
1460
|
-
* @summary Create the premium formula
|
|
1461
|
-
* @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
|
|
1462
|
-
* @param {string} [authorization] Bearer Token
|
|
1463
|
-
* @param {*} [options] Override http request option.
|
|
1464
|
-
* @throws {RequiredError}
|
|
1465
|
-
*/
|
|
1466
|
-
createPremiumFormula: function (createPremiumFormulaRequestDto, authorization, options) {
|
|
1467
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1468
|
-
var localVarAxiosArgs;
|
|
1469
|
-
return __generator(this, function (_a) {
|
|
1470
|
-
switch (_a.label) {
|
|
1471
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPremiumFormula(createPremiumFormulaRequestDto, authorization, options)];
|
|
1472
|
-
case 1:
|
|
1473
|
-
localVarAxiosArgs = _a.sent();
|
|
1474
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1475
|
-
}
|
|
1476
|
-
});
|
|
1477
|
-
});
|
|
1478
|
-
},
|
|
1479
|
-
/**
|
|
1480
|
-
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
1481
|
-
* @summary Create the product
|
|
1482
|
-
* @param {CreateProductRequestDto} createProductRequestDto
|
|
1483
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1484
|
-
* @param {*} [options] Override http request option.
|
|
1485
|
-
* @throws {RequiredError}
|
|
1486
|
-
*/
|
|
1487
|
-
createProduct: function (createProductRequestDto, authorization, options) {
|
|
1488
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1489
|
-
var localVarAxiosArgs;
|
|
1490
|
-
return __generator(this, function (_a) {
|
|
1491
|
-
switch (_a.label) {
|
|
1492
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options)];
|
|
1493
|
-
case 1:
|
|
1494
|
-
localVarAxiosArgs = _a.sent();
|
|
1495
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1496
|
-
}
|
|
1497
|
-
});
|
|
1498
|
-
});
|
|
1499
|
-
},
|
|
1500
|
-
/**
|
|
1501
|
-
* Create a product field in the database.
|
|
1502
|
-
* @summary Create the product field
|
|
1503
|
-
* @param {CreateProductFieldRequestDto} createProductFieldRequestDto
|
|
1504
|
-
* @param {string} [authorization] Bearer Token
|
|
1505
|
-
* @param {*} [options] Override http request option.
|
|
1506
|
-
* @throws {RequiredError}
|
|
1507
|
-
*/
|
|
1508
|
-
createProductField: function (createProductFieldRequestDto, authorization, options) {
|
|
1509
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1510
|
-
var localVarAxiosArgs;
|
|
1511
|
-
return __generator(this, function (_a) {
|
|
1512
|
-
switch (_a.label) {
|
|
1513
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductField(createProductFieldRequestDto, authorization, options)];
|
|
1514
|
-
case 1:
|
|
1515
|
-
localVarAxiosArgs = _a.sent();
|
|
1516
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1517
|
-
}
|
|
1518
|
-
});
|
|
1519
|
-
});
|
|
1520
|
-
},
|
|
1521
|
-
/**
|
|
1522
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
1523
|
-
* @summary Delete the premium formula
|
|
1524
|
-
* @param {number} id
|
|
1525
|
-
* @param {string} [authorization] Bearer Token
|
|
1526
|
-
* @param {*} [options] Override http request option.
|
|
1527
|
-
* @throws {RequiredError}
|
|
1528
|
-
*/
|
|
1529
|
-
deletePremiumFormula: function (id, authorization, options) {
|
|
1530
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1531
|
-
var localVarAxiosArgs;
|
|
1532
|
-
return __generator(this, function (_a) {
|
|
1533
|
-
switch (_a.label) {
|
|
1534
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePremiumFormula(id, authorization, options)];
|
|
1535
|
-
case 1:
|
|
1536
|
-
localVarAxiosArgs = _a.sent();
|
|
1537
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1538
|
-
}
|
|
1539
|
-
});
|
|
1540
|
-
});
|
|
1541
|
-
},
|
|
1542
|
-
/**
|
|
1543
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
1544
|
-
* @summary Delete the product
|
|
1545
|
-
* @param {number} id
|
|
1546
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1547
|
-
* @param {*} [options] Override http request option.
|
|
1548
|
-
* @throws {RequiredError}
|
|
1549
|
-
*/
|
|
1550
|
-
deleteProduct: function (id, authorization, options) {
|
|
1551
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1552
|
-
var localVarAxiosArgs;
|
|
1553
|
-
return __generator(this, function (_a) {
|
|
1554
|
-
switch (_a.label) {
|
|
1555
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProduct(id, authorization, options)];
|
|
1556
|
-
case 1:
|
|
1557
|
-
localVarAxiosArgs = _a.sent();
|
|
1558
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1559
|
-
}
|
|
1560
|
-
});
|
|
1561
|
-
});
|
|
1562
|
-
},
|
|
1563
|
-
/**
|
|
1564
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
1565
|
-
* @summary Delete the product
|
|
1566
|
-
* @param {string} id
|
|
1567
|
-
* @param {string} [authorization] Bearer Token
|
|
1568
|
-
* @param {*} [options] Override http request option.
|
|
1569
|
-
* @throws {RequiredError}
|
|
1570
|
-
*/
|
|
1571
|
-
deleteProductField: function (id, authorization, options) {
|
|
1572
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1573
|
-
var localVarAxiosArgs;
|
|
1574
|
-
return __generator(this, function (_a) {
|
|
1575
|
-
switch (_a.label) {
|
|
1576
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductField(id, authorization, options)];
|
|
1577
|
-
case 1:
|
|
1578
|
-
localVarAxiosArgs = _a.sent();
|
|
1579
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
});
|
|
1583
|
-
},
|
|
1584
|
-
/**
|
|
1585
|
-
* Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
|
|
1586
|
-
* @summary Retrieve the premium formula
|
|
1587
|
-
* @param {string} id
|
|
1588
|
-
* @param {number} id2 Product formula id
|
|
1589
|
-
* @param {string} [authorization] Bearer Token
|
|
1590
|
-
* @param {*} [options] Override http request option.
|
|
1591
|
-
* @throws {RequiredError}
|
|
1592
|
-
*/
|
|
1593
|
-
getPremiumFormula: function (id, id2, authorization, options) {
|
|
1594
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1595
|
-
var localVarAxiosArgs;
|
|
1596
|
-
return __generator(this, function (_a) {
|
|
1597
|
-
switch (_a.label) {
|
|
1598
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPremiumFormula(id, id2, authorization, options)];
|
|
1599
|
-
case 1:
|
|
1600
|
-
localVarAxiosArgs = _a.sent();
|
|
1601
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1602
|
-
}
|
|
1603
|
-
});
|
|
1604
|
-
});
|
|
1605
|
-
},
|
|
1606
|
-
/**
|
|
1607
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
1608
|
-
* @summary Retrieve the product
|
|
1609
|
-
* @param {string} code Unique identifier for the object.
|
|
1610
|
-
* @param {number} id Product id
|
|
1611
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1612
|
-
* @param {string} [expand] Fields to expand response by
|
|
1613
|
-
* @param {*} [options] Override http request option.
|
|
1614
|
-
* @throws {RequiredError}
|
|
1615
|
-
*/
|
|
1616
|
-
getProductByCode: function (code, id, authorization, expand, options) {
|
|
1617
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1618
|
-
var localVarAxiosArgs;
|
|
1619
|
-
return __generator(this, function (_a) {
|
|
1620
|
-
switch (_a.label) {
|
|
1621
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options)];
|
|
1622
|
-
case 1:
|
|
1623
|
-
localVarAxiosArgs = _a.sent();
|
|
1624
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1625
|
-
}
|
|
1626
|
-
});
|
|
1627
|
-
});
|
|
1628
|
-
},
|
|
1629
|
-
/**
|
|
1630
|
-
* Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
|
|
1631
|
-
* @summary Retrieve the product factor
|
|
1632
|
-
* @param {number} id
|
|
1633
|
-
* @param {number} id2 Product factor id
|
|
1634
|
-
* @param {string} [authorization] Bearer Token
|
|
1635
|
-
* @param {string} [expand] Fields to expand response by
|
|
1636
|
-
* @param {*} [options] Override http request option.
|
|
1637
|
-
* @throws {RequiredError}
|
|
1638
|
-
*/
|
|
1639
|
-
getProductFactor: function (id, id2, authorization, expand, options) {
|
|
1640
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1641
|
-
var localVarAxiosArgs;
|
|
1642
|
-
return __generator(this, function (_a) {
|
|
1643
|
-
switch (_a.label) {
|
|
1644
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactor(id, id2, authorization, expand, options)];
|
|
1645
|
-
case 1:
|
|
1646
|
-
localVarAxiosArgs = _a.sent();
|
|
1647
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1648
|
-
}
|
|
1649
|
-
});
|
|
1650
|
-
});
|
|
1651
|
-
},
|
|
1652
|
-
/**
|
|
1653
|
-
* Get the value corresponding to a specific product factor.
|
|
1654
|
-
* @summary Get product factor value
|
|
1655
|
-
* @param {number} productVersionId Product Version Id
|
|
1656
|
-
* @param {string} label Product factor label
|
|
1657
|
-
* @param {string} key Key for the product factor value
|
|
1658
|
-
* @param {string} name Name for the product factor value
|
|
1659
|
-
* @param {string} [authorization] Bearer Token
|
|
1660
|
-
* @param {*} [options] Override http request option.
|
|
1661
|
-
* @throws {RequiredError}
|
|
1662
|
-
*/
|
|
1663
|
-
getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
|
|
1664
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1665
|
-
var localVarAxiosArgs;
|
|
1666
|
-
return __generator(this, function (_a) {
|
|
1667
|
-
switch (_a.label) {
|
|
1668
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactorValue(productVersionId, label, key, name, authorization, options)];
|
|
1669
|
-
case 1:
|
|
1670
|
-
localVarAxiosArgs = _a.sent();
|
|
1671
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1672
|
-
}
|
|
1673
|
-
});
|
|
1674
|
-
});
|
|
1675
|
-
},
|
|
1676
|
-
/**
|
|
1677
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
1678
|
-
* @summary Returns all product factors for the product version with all without values
|
|
1679
|
-
* @param {number} productVersionId Product Version Id
|
|
1680
|
-
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All)
|
|
1681
|
-
* @param {string} [authorization] Bearer Token
|
|
1682
|
-
* @param {boolean} [forPublic] true if this is a call from PublivAPI or false otherwise (default)
|
|
1683
|
-
* @param {*} [options] Override http request option.
|
|
1684
|
-
* @throws {RequiredError}
|
|
1685
|
-
*/
|
|
1686
|
-
getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
|
|
1687
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1688
|
-
var localVarAxiosArgs;
|
|
1689
|
-
return __generator(this, function (_a) {
|
|
1690
|
-
switch (_a.label) {
|
|
1691
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options)];
|
|
1692
|
-
case 1:
|
|
1693
|
-
localVarAxiosArgs = _a.sent();
|
|
1694
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1695
|
-
}
|
|
1696
|
-
});
|
|
1697
|
-
});
|
|
1698
|
-
},
|
|
1699
|
-
/**
|
|
1700
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
1701
|
-
* @summary Retrieve the product field
|
|
1702
|
-
* @param {string} id
|
|
1703
|
-
* @param {string} [authorization] Bearer Token
|
|
1704
|
-
* @param {*} [options] Override http request option.
|
|
1705
|
-
* @throws {RequiredError}
|
|
1706
|
-
*/
|
|
1707
|
-
getProductField: function (id, authorization, options) {
|
|
1708
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1709
|
-
var localVarAxiosArgs;
|
|
1710
|
-
return __generator(this, function (_a) {
|
|
1711
|
-
switch (_a.label) {
|
|
1712
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductField(id, authorization, options)];
|
|
1713
|
-
case 1:
|
|
1714
|
-
localVarAxiosArgs = _a.sent();
|
|
1715
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1716
|
-
}
|
|
1717
|
-
});
|
|
1718
|
-
});
|
|
1719
|
-
},
|
|
1720
|
-
/**
|
|
1721
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
1722
|
-
* @summary Retrieve the product version
|
|
1723
|
-
* @param {string} id
|
|
1724
|
-
* @param {number} id2 Product version id
|
|
1725
|
-
* @param {string} [authorization] Bearer Token
|
|
1726
|
-
* @param {*} [options] Override http request option.
|
|
1727
|
-
* @throws {RequiredError}
|
|
1728
|
-
*/
|
|
1729
|
-
getProductVersion: function (id, id2, authorization, options) {
|
|
1730
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1731
|
-
var localVarAxiosArgs;
|
|
1732
|
-
return __generator(this, function (_a) {
|
|
1733
|
-
switch (_a.label) {
|
|
1734
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductVersion(id, id2, authorization, options)];
|
|
1735
|
-
case 1:
|
|
1736
|
-
localVarAxiosArgs = _a.sent();
|
|
1737
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1738
|
-
}
|
|
1739
|
-
});
|
|
1740
|
-
});
|
|
1741
|
-
},
|
|
1742
|
-
/**
|
|
1743
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1744
|
-
* @summary List premium formulas
|
|
1745
|
-
* @param {string} [authorization] Bearer Token
|
|
1746
|
-
* @param {number} [pageSize] Page size
|
|
1747
|
-
* @param {string} [pageToken] Page token
|
|
1748
|
-
* @param {string} [filter] List filter
|
|
1749
|
-
* @param {string} [search] Search query
|
|
1750
|
-
* @param {string} [order] Ordering criteria
|
|
1751
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1752
|
-
* @param {*} [options] Override http request option.
|
|
1753
|
-
* @throws {RequiredError}
|
|
1754
|
-
*/
|
|
1755
|
-
listPremiumFormulas: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1756
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1757
|
-
var localVarAxiosArgs;
|
|
1758
|
-
return __generator(this, function (_a) {
|
|
1759
|
-
switch (_a.label) {
|
|
1760
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
1761
|
-
case 1:
|
|
1762
|
-
localVarAxiosArgs = _a.sent();
|
|
1763
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1764
|
-
}
|
|
1765
|
-
});
|
|
1766
|
-
});
|
|
1767
|
-
},
|
|
1768
|
-
/**
|
|
1769
|
-
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1770
|
-
* @summary List product factors
|
|
1771
|
-
* @param {string} [authorization] Bearer Token
|
|
1772
|
-
* @param {number} [pageSize] Page size
|
|
1773
|
-
* @param {string} [pageToken] Page token
|
|
1774
|
-
* @param {string} [filter] List filter
|
|
1775
|
-
* @param {string} [search] Search query
|
|
1776
|
-
* @param {string} [order] Ordering criteria
|
|
1777
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1778
|
-
* @param {*} [options] Override http request option.
|
|
1779
|
-
* @throws {RequiredError}
|
|
1780
|
-
*/
|
|
1781
|
-
listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1782
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1783
|
-
var localVarAxiosArgs;
|
|
1784
|
-
return __generator(this, function (_a) {
|
|
1785
|
-
switch (_a.label) {
|
|
1786
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
1787
|
-
case 1:
|
|
1788
|
-
localVarAxiosArgs = _a.sent();
|
|
1789
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1790
|
-
}
|
|
1791
|
-
});
|
|
1792
|
-
});
|
|
1793
|
-
},
|
|
1794
|
-
/**
|
|
1795
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1796
|
-
* @summary List product field types
|
|
1797
|
-
* @param {string} [authorization] Bearer Token
|
|
1798
|
-
* @param {number} [pageSize] Page size
|
|
1799
|
-
* @param {string} [pageToken] Page token
|
|
1800
|
-
* @param {string} [filter] List filter
|
|
1801
|
-
* @param {string} [search] Search query
|
|
1802
|
-
* @param {string} [order] Ordering criteria
|
|
1803
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1804
|
-
* @param {*} [options] Override http request option.
|
|
1805
|
-
* @throws {RequiredError}
|
|
1806
|
-
*/
|
|
1807
|
-
listProductFieldTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1808
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1809
|
-
var localVarAxiosArgs;
|
|
1810
|
-
return __generator(this, function (_a) {
|
|
1811
|
-
switch (_a.label) {
|
|
1812
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductFieldTypes(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
1813
|
-
case 1:
|
|
1814
|
-
localVarAxiosArgs = _a.sent();
|
|
1815
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
});
|
|
1819
|
-
},
|
|
1820
|
-
/**
|
|
1821
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1822
|
-
* @summary List product fields
|
|
1823
|
-
* @param {string} [authorization] Bearer Token
|
|
1824
|
-
* @param {number} [pageSize] Page size
|
|
1825
|
-
* @param {string} [pageToken] Page token
|
|
1826
|
-
* @param {string} [filter] List filter
|
|
1827
|
-
* @param {string} [search] Search query
|
|
1828
|
-
* @param {string} [order] Ordering criteria
|
|
1829
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1830
|
-
* @param {*} [options] Override http request option.
|
|
1831
|
-
* @throws {RequiredError}
|
|
1832
|
-
*/
|
|
1833
|
-
listProductFields: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1834
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1835
|
-
var localVarAxiosArgs;
|
|
1836
|
-
return __generator(this, function (_a) {
|
|
1837
|
-
switch (_a.label) {
|
|
1838
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductFields(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
1839
|
-
case 1:
|
|
1840
|
-
localVarAxiosArgs = _a.sent();
|
|
1841
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1842
|
-
}
|
|
1843
|
-
});
|
|
1844
|
-
});
|
|
1845
|
-
},
|
|
1846
|
-
/**
|
|
1847
|
-
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1848
|
-
* @summary List products
|
|
1849
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1850
|
-
* @param {number} [pageSize] Page size
|
|
1851
|
-
* @param {string} [pageToken] Page token
|
|
1852
|
-
* @param {string} [filter] List filter
|
|
1853
|
-
* @param {string} [search] Search query
|
|
1854
|
-
* @param {string} [order] Ordering criteria
|
|
1855
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1856
|
-
* @param {*} [options] Override http request option.
|
|
1857
|
-
* @throws {RequiredError}
|
|
1858
|
-
*/
|
|
1859
|
-
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
1860
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1861
|
-
var localVarAxiosArgs;
|
|
463
|
+
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
465
|
+
var localVarAxiosArgs;
|
|
1862
466
|
return __generator(this, function (_a) {
|
|
1863
467
|
switch (_a.label) {
|
|
1864
468
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
@@ -1869,130 +473,21 @@ var ProductsApiFp = function (configuration) {
|
|
|
1869
473
|
});
|
|
1870
474
|
});
|
|
1871
475
|
},
|
|
1872
|
-
/**
|
|
1873
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
1874
|
-
* @summary Upload product factors
|
|
1875
|
-
* @param {string} [authorization] Bearer Token
|
|
1876
|
-
* @param {number} [productVersionId]
|
|
1877
|
-
* @param {any} [factors]
|
|
1878
|
-
* @param {*} [options] Override http request option.
|
|
1879
|
-
* @throws {RequiredError}
|
|
1880
|
-
*/
|
|
1881
|
-
storeProductFactors: function (authorization, productVersionId, factors, options) {
|
|
1882
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1883
|
-
var localVarAxiosArgs;
|
|
1884
|
-
return __generator(this, function (_a) {
|
|
1885
|
-
switch (_a.label) {
|
|
1886
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.storeProductFactors(authorization, productVersionId, factors, options)];
|
|
1887
|
-
case 1:
|
|
1888
|
-
localVarAxiosArgs = _a.sent();
|
|
1889
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1890
|
-
}
|
|
1891
|
-
});
|
|
1892
|
-
});
|
|
1893
|
-
},
|
|
1894
|
-
/**
|
|
1895
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1896
|
-
* @summary Update the premium formula
|
|
1897
|
-
* @param {number} id
|
|
1898
|
-
* @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
|
|
1899
|
-
* @param {string} [authorization] Bearer Token
|
|
1900
|
-
* @param {*} [options] Override http request option.
|
|
1901
|
-
* @throws {RequiredError}
|
|
1902
|
-
*/
|
|
1903
|
-
updatePremiumFormula: function (id, updatePremiumFormulaRequestDto, authorization, options) {
|
|
1904
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1905
|
-
var localVarAxiosArgs;
|
|
1906
|
-
return __generator(this, function (_a) {
|
|
1907
|
-
switch (_a.label) {
|
|
1908
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options)];
|
|
1909
|
-
case 1:
|
|
1910
|
-
localVarAxiosArgs = _a.sent();
|
|
1911
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1912
|
-
}
|
|
1913
|
-
});
|
|
1914
|
-
});
|
|
1915
|
-
},
|
|
1916
|
-
/**
|
|
1917
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1918
|
-
* @summary Update the product
|
|
1919
|
-
* @param {number} id
|
|
1920
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
1921
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1922
|
-
* @param {*} [options] Override http request option.
|
|
1923
|
-
* @throws {RequiredError}
|
|
1924
|
-
*/
|
|
1925
|
-
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
1926
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1927
|
-
var localVarAxiosArgs;
|
|
1928
|
-
return __generator(this, function (_a) {
|
|
1929
|
-
switch (_a.label) {
|
|
1930
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options)];
|
|
1931
|
-
case 1:
|
|
1932
|
-
localVarAxiosArgs = _a.sent();
|
|
1933
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1934
|
-
}
|
|
1935
|
-
});
|
|
1936
|
-
});
|
|
1937
|
-
},
|
|
1938
476
|
/**
|
|
1939
477
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1940
478
|
* @summary Update the product
|
|
1941
|
-
* @param {
|
|
1942
|
-
* @param {
|
|
1943
|
-
* @param {string} [authorization] Bearer Token
|
|
1944
|
-
* @param {*} [options] Override http request option.
|
|
1945
|
-
* @throws {RequiredError}
|
|
1946
|
-
*/
|
|
1947
|
-
updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
|
|
1948
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1949
|
-
var localVarAxiosArgs;
|
|
1950
|
-
return __generator(this, function (_a) {
|
|
1951
|
-
switch (_a.label) {
|
|
1952
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options)];
|
|
1953
|
-
case 1:
|
|
1954
|
-
localVarAxiosArgs = _a.sent();
|
|
1955
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1956
|
-
}
|
|
1957
|
-
});
|
|
1958
|
-
});
|
|
1959
|
-
},
|
|
1960
|
-
/**
|
|
1961
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1962
|
-
* @summary Update the product version
|
|
1963
|
-
* @param {number} id
|
|
1964
|
-
* @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
|
|
1965
|
-
* @param {string} [authorization] Bearer Token
|
|
1966
|
-
* @param {*} [options] Override http request option.
|
|
1967
|
-
* @throws {RequiredError}
|
|
1968
|
-
*/
|
|
1969
|
-
updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
|
|
1970
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1971
|
-
var localVarAxiosArgs;
|
|
1972
|
-
return __generator(this, function (_a) {
|
|
1973
|
-
switch (_a.label) {
|
|
1974
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductVersion(id, updateProductVersionRequestDto, authorization, options)];
|
|
1975
|
-
case 1:
|
|
1976
|
-
localVarAxiosArgs = _a.sent();
|
|
1977
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1978
|
-
}
|
|
1979
|
-
});
|
|
1980
|
-
});
|
|
1981
|
-
},
|
|
1982
|
-
/**
|
|
1983
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
1984
|
-
* @summary Validate product factors
|
|
1985
|
-
* @param {string} [authorization] Bearer Token
|
|
1986
|
-
* @param {any} [factors]
|
|
479
|
+
* @param {number} id
|
|
480
|
+
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
481
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1987
482
|
* @param {*} [options] Override http request option.
|
|
1988
483
|
* @throws {RequiredError}
|
|
1989
484
|
*/
|
|
1990
|
-
|
|
485
|
+
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
1991
486
|
return __awaiter(this, void 0, void 0, function () {
|
|
1992
487
|
var localVarAxiosArgs;
|
|
1993
488
|
return __generator(this, function (_a) {
|
|
1994
489
|
switch (_a.label) {
|
|
1995
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
490
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options)];
|
|
1996
491
|
case 1:
|
|
1997
492
|
localVarAxiosArgs = _a.sent();
|
|
1998
493
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2010,17 +505,6 @@ exports.ProductsApiFp = ProductsApiFp;
|
|
|
2010
505
|
var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
2011
506
|
var localVarFp = (0, exports.ProductsApiFp)(configuration);
|
|
2012
507
|
return {
|
|
2013
|
-
/**
|
|
2014
|
-
* Creates a premium formula.
|
|
2015
|
-
* @summary Create the premium formula
|
|
2016
|
-
* @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
|
|
2017
|
-
* @param {string} [authorization] Bearer Token
|
|
2018
|
-
* @param {*} [options] Override http request option.
|
|
2019
|
-
* @throws {RequiredError}
|
|
2020
|
-
*/
|
|
2021
|
-
createPremiumFormula: function (createPremiumFormulaRequestDto, authorization, options) {
|
|
2022
|
-
return localVarFp.createPremiumFormula(createPremiumFormulaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2023
|
-
},
|
|
2024
508
|
/**
|
|
2025
509
|
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
2026
510
|
* @summary Create the product
|
|
@@ -2032,28 +516,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
2032
516
|
createProduct: function (createProductRequestDto, authorization, options) {
|
|
2033
517
|
return localVarFp.createProduct(createProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2034
518
|
},
|
|
2035
|
-
/**
|
|
2036
|
-
* Create a product field in the database.
|
|
2037
|
-
* @summary Create the product field
|
|
2038
|
-
* @param {CreateProductFieldRequestDto} createProductFieldRequestDto
|
|
2039
|
-
* @param {string} [authorization] Bearer Token
|
|
2040
|
-
* @param {*} [options] Override http request option.
|
|
2041
|
-
* @throws {RequiredError}
|
|
2042
|
-
*/
|
|
2043
|
-
createProductField: function (createProductFieldRequestDto, authorization, options) {
|
|
2044
|
-
return localVarFp.createProductField(createProductFieldRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2045
|
-
},
|
|
2046
|
-
/**
|
|
2047
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
2048
|
-
* @summary Delete the premium formula
|
|
2049
|
-
* @param {number} id
|
|
2050
|
-
* @param {string} [authorization] Bearer Token
|
|
2051
|
-
* @param {*} [options] Override http request option.
|
|
2052
|
-
* @throws {RequiredError}
|
|
2053
|
-
*/
|
|
2054
|
-
deletePremiumFormula: function (id, authorization, options) {
|
|
2055
|
-
return localVarFp.deletePremiumFormula(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2056
|
-
},
|
|
2057
519
|
/**
|
|
2058
520
|
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
2059
521
|
* @summary Delete the product
|
|
@@ -2065,29 +527,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
2065
527
|
deleteProduct: function (id, authorization, options) {
|
|
2066
528
|
return localVarFp.deleteProduct(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2067
529
|
},
|
|
2068
|
-
/**
|
|
2069
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
2070
|
-
* @summary Delete the product
|
|
2071
|
-
* @param {string} id
|
|
2072
|
-
* @param {string} [authorization] Bearer Token
|
|
2073
|
-
* @param {*} [options] Override http request option.
|
|
2074
|
-
* @throws {RequiredError}
|
|
2075
|
-
*/
|
|
2076
|
-
deleteProductField: function (id, authorization, options) {
|
|
2077
|
-
return localVarFp.deleteProductField(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2078
|
-
},
|
|
2079
|
-
/**
|
|
2080
|
-
* Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
|
|
2081
|
-
* @summary Retrieve the premium formula
|
|
2082
|
-
* @param {string} id
|
|
2083
|
-
* @param {number} id2 Product formula id
|
|
2084
|
-
* @param {string} [authorization] Bearer Token
|
|
2085
|
-
* @param {*} [options] Override http request option.
|
|
2086
|
-
* @throws {RequiredError}
|
|
2087
|
-
*/
|
|
2088
|
-
getPremiumFormula: function (id, id2, authorization, options) {
|
|
2089
|
-
return localVarFp.getPremiumFormula(id, id2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2090
|
-
},
|
|
2091
530
|
/**
|
|
2092
531
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
2093
532
|
* @summary Retrieve the product
|
|
@@ -2101,173 +540,22 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
2101
540
|
getProductByCode: function (code, id, authorization, expand, options) {
|
|
2102
541
|
return localVarFp.getProductByCode(code, id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2103
542
|
},
|
|
2104
|
-
/**
|
|
2105
|
-
* Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
|
|
2106
|
-
* @summary Retrieve the product factor
|
|
2107
|
-
* @param {number} id
|
|
2108
|
-
* @param {number} id2 Product factor id
|
|
2109
|
-
* @param {string} [authorization] Bearer Token
|
|
2110
|
-
* @param {string} [expand] Fields to expand response by
|
|
2111
|
-
* @param {*} [options] Override http request option.
|
|
2112
|
-
* @throws {RequiredError}
|
|
2113
|
-
*/
|
|
2114
|
-
getProductFactor: function (id, id2, authorization, expand, options) {
|
|
2115
|
-
return localVarFp.getProductFactor(id, id2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2116
|
-
},
|
|
2117
|
-
/**
|
|
2118
|
-
* Get the value corresponding to a specific product factor.
|
|
2119
|
-
* @summary Get product factor value
|
|
2120
|
-
* @param {number} productVersionId Product Version Id
|
|
2121
|
-
* @param {string} label Product factor label
|
|
2122
|
-
* @param {string} key Key for the product factor value
|
|
2123
|
-
* @param {string} name Name for the product factor value
|
|
2124
|
-
* @param {string} [authorization] Bearer Token
|
|
2125
|
-
* @param {*} [options] Override http request option.
|
|
2126
|
-
* @throws {RequiredError}
|
|
2127
|
-
*/
|
|
2128
|
-
getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
|
|
2129
|
-
return localVarFp.getProductFactorValue(productVersionId, label, key, name, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2130
|
-
},
|
|
2131
|
-
/**
|
|
2132
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
2133
|
-
* @summary Returns all product factors for the product version with all without values
|
|
2134
|
-
* @param {number} productVersionId Product Version Id
|
|
2135
|
-
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All)
|
|
2136
|
-
* @param {string} [authorization] Bearer Token
|
|
2137
|
-
* @param {boolean} [forPublic] true if this is a call from PublivAPI or false otherwise (default)
|
|
2138
|
-
* @param {*} [options] Override http request option.
|
|
2139
|
-
* @throws {RequiredError}
|
|
2140
|
-
*/
|
|
2141
|
-
getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
|
|
2142
|
-
return localVarFp.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options).then(function (request) { return request(axios, basePath); });
|
|
2143
|
-
},
|
|
2144
|
-
/**
|
|
2145
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
2146
|
-
* @summary Retrieve the product field
|
|
2147
|
-
* @param {string} id
|
|
2148
|
-
* @param {string} [authorization] Bearer Token
|
|
2149
|
-
* @param {*} [options] Override http request option.
|
|
2150
|
-
* @throws {RequiredError}
|
|
2151
|
-
*/
|
|
2152
|
-
getProductField: function (id, authorization, options) {
|
|
2153
|
-
return localVarFp.getProductField(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2154
|
-
},
|
|
2155
|
-
/**
|
|
2156
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
2157
|
-
* @summary Retrieve the product version
|
|
2158
|
-
* @param {string} id
|
|
2159
|
-
* @param {number} id2 Product version id
|
|
2160
|
-
* @param {string} [authorization] Bearer Token
|
|
2161
|
-
* @param {*} [options] Override http request option.
|
|
2162
|
-
* @throws {RequiredError}
|
|
2163
|
-
*/
|
|
2164
|
-
getProductVersion: function (id, id2, authorization, options) {
|
|
2165
|
-
return localVarFp.getProductVersion(id, id2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2166
|
-
},
|
|
2167
|
-
/**
|
|
2168
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2169
|
-
* @summary List premium formulas
|
|
2170
|
-
* @param {string} [authorization] Bearer Token
|
|
2171
|
-
* @param {number} [pageSize] Page size
|
|
2172
|
-
* @param {string} [pageToken] Page token
|
|
2173
|
-
* @param {string} [filter] List filter
|
|
2174
|
-
* @param {string} [search] Search query
|
|
2175
|
-
* @param {string} [order] Ordering criteria
|
|
2176
|
-
* @param {string} [expand] Extra fields to fetch
|
|
2177
|
-
* @param {*} [options] Override http request option.
|
|
2178
|
-
* @throws {RequiredError}
|
|
2179
|
-
*/
|
|
2180
|
-
listPremiumFormulas: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
2181
|
-
return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2182
|
-
},
|
|
2183
|
-
/**
|
|
2184
|
-
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2185
|
-
* @summary List product factors
|
|
2186
|
-
* @param {string} [authorization] Bearer Token
|
|
2187
|
-
* @param {number} [pageSize] Page size
|
|
2188
|
-
* @param {string} [pageToken] Page token
|
|
2189
|
-
* @param {string} [filter] List filter
|
|
2190
|
-
* @param {string} [search] Search query
|
|
2191
|
-
* @param {string} [order] Ordering criteria
|
|
2192
|
-
* @param {string} [expand] Extra fields to fetch
|
|
2193
|
-
* @param {*} [options] Override http request option.
|
|
2194
|
-
* @throws {RequiredError}
|
|
2195
|
-
*/
|
|
2196
|
-
listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
2197
|
-
return localVarFp.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2198
|
-
},
|
|
2199
|
-
/**
|
|
2200
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2201
|
-
* @summary List product field types
|
|
2202
|
-
* @param {string} [authorization] Bearer Token
|
|
2203
|
-
* @param {number} [pageSize] Page size
|
|
2204
|
-
* @param {string} [pageToken] Page token
|
|
2205
|
-
* @param {string} [filter] List filter
|
|
2206
|
-
* @param {string} [search] Search query
|
|
2207
|
-
* @param {string} [order] Ordering criteria
|
|
2208
|
-
* @param {string} [expand] Extra fields to fetch
|
|
2209
|
-
* @param {*} [options] Override http request option.
|
|
2210
|
-
* @throws {RequiredError}
|
|
2211
|
-
*/
|
|
2212
|
-
listProductFieldTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
2213
|
-
return localVarFp.listProductFieldTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2214
|
-
},
|
|
2215
|
-
/**
|
|
2216
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2217
|
-
* @summary List product fields
|
|
2218
|
-
* @param {string} [authorization] Bearer Token
|
|
2219
|
-
* @param {number} [pageSize] Page size
|
|
2220
|
-
* @param {string} [pageToken] Page token
|
|
2221
|
-
* @param {string} [filter] List filter
|
|
2222
|
-
* @param {string} [search] Search query
|
|
2223
|
-
* @param {string} [order] Ordering criteria
|
|
2224
|
-
* @param {string} [expand] Extra fields to fetch
|
|
2225
|
-
* @param {*} [options] Override http request option.
|
|
2226
|
-
* @throws {RequiredError}
|
|
2227
|
-
*/
|
|
2228
|
-
listProductFields: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
2229
|
-
return localVarFp.listProductFields(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2230
|
-
},
|
|
2231
543
|
/**
|
|
2232
544
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2233
545
|
* @summary List products
|
|
2234
546
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2235
|
-
* @param {number} [pageSize] Page size
|
|
2236
|
-
* @param {string} [pageToken] Page token
|
|
547
|
+
* @param {number} [pageSize] Page size.
|
|
548
|
+
* @param {string} [pageToken] Page token.
|
|
2237
549
|
* @param {string} [filter] List filter
|
|
2238
|
-
* @param {string} [search] Search query
|
|
2239
|
-
* @param {string} [order] Ordering criteria
|
|
2240
|
-
* @param {string} [expand] Extra fields to fetch
|
|
550
|
+
* @param {string} [search] Search query.
|
|
551
|
+
* @param {string} [order] Ordering criteria.
|
|
552
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
2241
553
|
* @param {*} [options] Override http request option.
|
|
2242
554
|
* @throws {RequiredError}
|
|
2243
555
|
*/
|
|
2244
556
|
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
2245
557
|
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
2246
558
|
},
|
|
2247
|
-
/**
|
|
2248
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
2249
|
-
* @summary Upload product factors
|
|
2250
|
-
* @param {string} [authorization] Bearer Token
|
|
2251
|
-
* @param {number} [productVersionId]
|
|
2252
|
-
* @param {any} [factors]
|
|
2253
|
-
* @param {*} [options] Override http request option.
|
|
2254
|
-
* @throws {RequiredError}
|
|
2255
|
-
*/
|
|
2256
|
-
storeProductFactors: function (authorization, productVersionId, factors, options) {
|
|
2257
|
-
return localVarFp.storeProductFactors(authorization, productVersionId, factors, options).then(function (request) { return request(axios, basePath); });
|
|
2258
|
-
},
|
|
2259
|
-
/**
|
|
2260
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2261
|
-
* @summary Update the premium formula
|
|
2262
|
-
* @param {number} id
|
|
2263
|
-
* @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
|
|
2264
|
-
* @param {string} [authorization] Bearer Token
|
|
2265
|
-
* @param {*} [options] Override http request option.
|
|
2266
|
-
* @throws {RequiredError}
|
|
2267
|
-
*/
|
|
2268
|
-
updatePremiumFormula: function (id, updatePremiumFormulaRequestDto, authorization, options) {
|
|
2269
|
-
return localVarFp.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2270
|
-
},
|
|
2271
559
|
/**
|
|
2272
560
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2273
561
|
* @summary Update the product
|
|
@@ -2280,41 +568,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
2280
568
|
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
2281
569
|
return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2282
570
|
},
|
|
2283
|
-
/**
|
|
2284
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2285
|
-
* @summary Update the product
|
|
2286
|
-
* @param {string} id
|
|
2287
|
-
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
2288
|
-
* @param {string} [authorization] Bearer Token
|
|
2289
|
-
* @param {*} [options] Override http request option.
|
|
2290
|
-
* @throws {RequiredError}
|
|
2291
|
-
*/
|
|
2292
|
-
updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
|
|
2293
|
-
return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2294
|
-
},
|
|
2295
|
-
/**
|
|
2296
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2297
|
-
* @summary Update the product version
|
|
2298
|
-
* @param {number} id
|
|
2299
|
-
* @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
|
|
2300
|
-
* @param {string} [authorization] Bearer Token
|
|
2301
|
-
* @param {*} [options] Override http request option.
|
|
2302
|
-
* @throws {RequiredError}
|
|
2303
|
-
*/
|
|
2304
|
-
updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
|
|
2305
|
-
return localVarFp.updateProductVersion(id, updateProductVersionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
2306
|
-
},
|
|
2307
|
-
/**
|
|
2308
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
2309
|
-
* @summary Validate product factors
|
|
2310
|
-
* @param {string} [authorization] Bearer Token
|
|
2311
|
-
* @param {any} [factors]
|
|
2312
|
-
* @param {*} [options] Override http request option.
|
|
2313
|
-
* @throws {RequiredError}
|
|
2314
|
-
*/
|
|
2315
|
-
validateProductFactors: function (authorization, factors, options) {
|
|
2316
|
-
return localVarFp.validateProductFactors(authorization, factors, options).then(function (request) { return request(axios, basePath); });
|
|
2317
|
-
},
|
|
2318
571
|
};
|
|
2319
572
|
};
|
|
2320
573
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -2329,18 +582,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
2329
582
|
function ProductsApi() {
|
|
2330
583
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2331
584
|
}
|
|
2332
|
-
/**
|
|
2333
|
-
* Creates a premium formula.
|
|
2334
|
-
* @summary Create the premium formula
|
|
2335
|
-
* @param {ProductsApiCreatePremiumFormulaRequest} requestParameters Request parameters.
|
|
2336
|
-
* @param {*} [options] Override http request option.
|
|
2337
|
-
* @throws {RequiredError}
|
|
2338
|
-
* @memberof ProductsApi
|
|
2339
|
-
*/
|
|
2340
|
-
ProductsApi.prototype.createPremiumFormula = function (requestParameters, options) {
|
|
2341
|
-
var _this = this;
|
|
2342
|
-
return (0, exports.ProductsApiFp)(this.configuration).createPremiumFormula(requestParameters.createPremiumFormulaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2343
|
-
};
|
|
2344
585
|
/**
|
|
2345
586
|
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
2346
587
|
* @summary Create the product
|
|
@@ -2353,30 +594,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
2353
594
|
var _this = this;
|
|
2354
595
|
return (0, exports.ProductsApiFp)(this.configuration).createProduct(requestParameters.createProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2355
596
|
};
|
|
2356
|
-
/**
|
|
2357
|
-
* Create a product field in the database.
|
|
2358
|
-
* @summary Create the product field
|
|
2359
|
-
* @param {ProductsApiCreateProductFieldRequest} requestParameters Request parameters.
|
|
2360
|
-
* @param {*} [options] Override http request option.
|
|
2361
|
-
* @throws {RequiredError}
|
|
2362
|
-
* @memberof ProductsApi
|
|
2363
|
-
*/
|
|
2364
|
-
ProductsApi.prototype.createProductField = function (requestParameters, options) {
|
|
2365
|
-
var _this = this;
|
|
2366
|
-
return (0, exports.ProductsApiFp)(this.configuration).createProductField(requestParameters.createProductFieldRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2367
|
-
};
|
|
2368
|
-
/**
|
|
2369
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
2370
|
-
* @summary Delete the premium formula
|
|
2371
|
-
* @param {ProductsApiDeletePremiumFormulaRequest} requestParameters Request parameters.
|
|
2372
|
-
* @param {*} [options] Override http request option.
|
|
2373
|
-
* @throws {RequiredError}
|
|
2374
|
-
* @memberof ProductsApi
|
|
2375
|
-
*/
|
|
2376
|
-
ProductsApi.prototype.deletePremiumFormula = function (requestParameters, options) {
|
|
2377
|
-
var _this = this;
|
|
2378
|
-
return (0, exports.ProductsApiFp)(this.configuration).deletePremiumFormula(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2379
|
-
};
|
|
2380
597
|
/**
|
|
2381
598
|
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
2382
599
|
* @summary Delete the product
|
|
@@ -2389,30 +606,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
2389
606
|
var _this = this;
|
|
2390
607
|
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2391
608
|
};
|
|
2392
|
-
/**
|
|
2393
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
2394
|
-
* @summary Delete the product
|
|
2395
|
-
* @param {ProductsApiDeleteProductFieldRequest} requestParameters Request parameters.
|
|
2396
|
-
* @param {*} [options] Override http request option.
|
|
2397
|
-
* @throws {RequiredError}
|
|
2398
|
-
* @memberof ProductsApi
|
|
2399
|
-
*/
|
|
2400
|
-
ProductsApi.prototype.deleteProductField = function (requestParameters, options) {
|
|
2401
|
-
var _this = this;
|
|
2402
|
-
return (0, exports.ProductsApiFp)(this.configuration).deleteProductField(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2403
|
-
};
|
|
2404
|
-
/**
|
|
2405
|
-
* Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
|
|
2406
|
-
* @summary Retrieve the premium formula
|
|
2407
|
-
* @param {ProductsApiGetPremiumFormulaRequest} requestParameters Request parameters.
|
|
2408
|
-
* @param {*} [options] Override http request option.
|
|
2409
|
-
* @throws {RequiredError}
|
|
2410
|
-
* @memberof ProductsApi
|
|
2411
|
-
*/
|
|
2412
|
-
ProductsApi.prototype.getPremiumFormula = function (requestParameters, options) {
|
|
2413
|
-
var _this = this;
|
|
2414
|
-
return (0, exports.ProductsApiFp)(this.configuration).getPremiumFormula(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2415
|
-
};
|
|
2416
609
|
/**
|
|
2417
610
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
2418
611
|
* @summary Retrieve the product
|
|
@@ -2425,118 +618,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
2425
618
|
var _this = this;
|
|
2426
619
|
return (0, exports.ProductsApiFp)(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2427
620
|
};
|
|
2428
|
-
/**
|
|
2429
|
-
* Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
|
|
2430
|
-
* @summary Retrieve the product factor
|
|
2431
|
-
* @param {ProductsApiGetProductFactorRequest} requestParameters Request parameters.
|
|
2432
|
-
* @param {*} [options] Override http request option.
|
|
2433
|
-
* @throws {RequiredError}
|
|
2434
|
-
* @memberof ProductsApi
|
|
2435
|
-
*/
|
|
2436
|
-
ProductsApi.prototype.getProductFactor = function (requestParameters, options) {
|
|
2437
|
-
var _this = this;
|
|
2438
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductFactor(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2439
|
-
};
|
|
2440
|
-
/**
|
|
2441
|
-
* Get the value corresponding to a specific product factor.
|
|
2442
|
-
* @summary Get product factor value
|
|
2443
|
-
* @param {ProductsApiGetProductFactorValueRequest} requestParameters Request parameters.
|
|
2444
|
-
* @param {*} [options] Override http request option.
|
|
2445
|
-
* @throws {RequiredError}
|
|
2446
|
-
* @memberof ProductsApi
|
|
2447
|
-
*/
|
|
2448
|
-
ProductsApi.prototype.getProductFactorValue = function (requestParameters, options) {
|
|
2449
|
-
var _this = this;
|
|
2450
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductFactorValue(requestParameters.productVersionId, requestParameters.label, requestParameters.key, requestParameters.name, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2451
|
-
};
|
|
2452
|
-
/**
|
|
2453
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
2454
|
-
* @summary Returns all product factors for the product version with all without values
|
|
2455
|
-
* @param {ProductsApiGetProductFactorsForVersionRequest} requestParameters Request parameters.
|
|
2456
|
-
* @param {*} [options] Override http request option.
|
|
2457
|
-
* @throws {RequiredError}
|
|
2458
|
-
* @memberof ProductsApi
|
|
2459
|
-
*/
|
|
2460
|
-
ProductsApi.prototype.getProductFactorsForVersion = function (requestParameters, options) {
|
|
2461
|
-
var _this = this;
|
|
2462
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductFactorsForVersion(requestParameters.productVersionId, requestParameters.values, requestParameters.authorization, requestParameters.forPublic, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2463
|
-
};
|
|
2464
|
-
/**
|
|
2465
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
2466
|
-
* @summary Retrieve the product field
|
|
2467
|
-
* @param {ProductsApiGetProductFieldRequest} requestParameters Request parameters.
|
|
2468
|
-
* @param {*} [options] Override http request option.
|
|
2469
|
-
* @throws {RequiredError}
|
|
2470
|
-
* @memberof ProductsApi
|
|
2471
|
-
*/
|
|
2472
|
-
ProductsApi.prototype.getProductField = function (requestParameters, options) {
|
|
2473
|
-
var _this = this;
|
|
2474
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductField(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2475
|
-
};
|
|
2476
|
-
/**
|
|
2477
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
2478
|
-
* @summary Retrieve the product version
|
|
2479
|
-
* @param {ProductsApiGetProductVersionRequest} requestParameters Request parameters.
|
|
2480
|
-
* @param {*} [options] Override http request option.
|
|
2481
|
-
* @throws {RequiredError}
|
|
2482
|
-
* @memberof ProductsApi
|
|
2483
|
-
*/
|
|
2484
|
-
ProductsApi.prototype.getProductVersion = function (requestParameters, options) {
|
|
2485
|
-
var _this = this;
|
|
2486
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2487
|
-
};
|
|
2488
|
-
/**
|
|
2489
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2490
|
-
* @summary List premium formulas
|
|
2491
|
-
* @param {ProductsApiListPremiumFormulasRequest} requestParameters Request parameters.
|
|
2492
|
-
* @param {*} [options] Override http request option.
|
|
2493
|
-
* @throws {RequiredError}
|
|
2494
|
-
* @memberof ProductsApi
|
|
2495
|
-
*/
|
|
2496
|
-
ProductsApi.prototype.listPremiumFormulas = function (requestParameters, options) {
|
|
2497
|
-
var _this = this;
|
|
2498
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2499
|
-
return (0, exports.ProductsApiFp)(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2500
|
-
};
|
|
2501
|
-
/**
|
|
2502
|
-
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2503
|
-
* @summary List product factors
|
|
2504
|
-
* @param {ProductsApiListProductFactorsRequest} requestParameters Request parameters.
|
|
2505
|
-
* @param {*} [options] Override http request option.
|
|
2506
|
-
* @throws {RequiredError}
|
|
2507
|
-
* @memberof ProductsApi
|
|
2508
|
-
*/
|
|
2509
|
-
ProductsApi.prototype.listProductFactors = function (requestParameters, options) {
|
|
2510
|
-
var _this = this;
|
|
2511
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2512
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProductFactors(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2513
|
-
};
|
|
2514
|
-
/**
|
|
2515
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2516
|
-
* @summary List product field types
|
|
2517
|
-
* @param {ProductsApiListProductFieldTypesRequest} requestParameters Request parameters.
|
|
2518
|
-
* @param {*} [options] Override http request option.
|
|
2519
|
-
* @throws {RequiredError}
|
|
2520
|
-
* @memberof ProductsApi
|
|
2521
|
-
*/
|
|
2522
|
-
ProductsApi.prototype.listProductFieldTypes = function (requestParameters, options) {
|
|
2523
|
-
var _this = this;
|
|
2524
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2525
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProductFieldTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2526
|
-
};
|
|
2527
|
-
/**
|
|
2528
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2529
|
-
* @summary List product fields
|
|
2530
|
-
* @param {ProductsApiListProductFieldsRequest} requestParameters Request parameters.
|
|
2531
|
-
* @param {*} [options] Override http request option.
|
|
2532
|
-
* @throws {RequiredError}
|
|
2533
|
-
* @memberof ProductsApi
|
|
2534
|
-
*/
|
|
2535
|
-
ProductsApi.prototype.listProductFields = function (requestParameters, options) {
|
|
2536
|
-
var _this = this;
|
|
2537
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2538
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProductFields(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2539
|
-
};
|
|
2540
621
|
/**
|
|
2541
622
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
2542
623
|
* @summary List products
|
|
@@ -2550,31 +631,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
2550
631
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2551
632
|
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2552
633
|
};
|
|
2553
|
-
/**
|
|
2554
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
2555
|
-
* @summary Upload product factors
|
|
2556
|
-
* @param {ProductsApiStoreProductFactorsRequest} requestParameters Request parameters.
|
|
2557
|
-
* @param {*} [options] Override http request option.
|
|
2558
|
-
* @throws {RequiredError}
|
|
2559
|
-
* @memberof ProductsApi
|
|
2560
|
-
*/
|
|
2561
|
-
ProductsApi.prototype.storeProductFactors = function (requestParameters, options) {
|
|
2562
|
-
var _this = this;
|
|
2563
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2564
|
-
return (0, exports.ProductsApiFp)(this.configuration).storeProductFactors(requestParameters.authorization, requestParameters.productVersionId, requestParameters.factors, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2565
|
-
};
|
|
2566
|
-
/**
|
|
2567
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2568
|
-
* @summary Update the premium formula
|
|
2569
|
-
* @param {ProductsApiUpdatePremiumFormulaRequest} requestParameters Request parameters.
|
|
2570
|
-
* @param {*} [options] Override http request option.
|
|
2571
|
-
* @throws {RequiredError}
|
|
2572
|
-
* @memberof ProductsApi
|
|
2573
|
-
*/
|
|
2574
|
-
ProductsApi.prototype.updatePremiumFormula = function (requestParameters, options) {
|
|
2575
|
-
var _this = this;
|
|
2576
|
-
return (0, exports.ProductsApiFp)(this.configuration).updatePremiumFormula(requestParameters.id, requestParameters.updatePremiumFormulaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2577
|
-
};
|
|
2578
634
|
/**
|
|
2579
635
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2580
636
|
* @summary Update the product
|
|
@@ -2587,43 +643,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
2587
643
|
var _this = this;
|
|
2588
644
|
return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.id, requestParameters.updateProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2589
645
|
};
|
|
2590
|
-
/**
|
|
2591
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2592
|
-
* @summary Update the product
|
|
2593
|
-
* @param {ProductsApiUpdateProductFieldRequest} requestParameters Request parameters.
|
|
2594
|
-
* @param {*} [options] Override http request option.
|
|
2595
|
-
* @throws {RequiredError}
|
|
2596
|
-
* @memberof ProductsApi
|
|
2597
|
-
*/
|
|
2598
|
-
ProductsApi.prototype.updateProductField = function (requestParameters, options) {
|
|
2599
|
-
var _this = this;
|
|
2600
|
-
return (0, exports.ProductsApiFp)(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2601
|
-
};
|
|
2602
|
-
/**
|
|
2603
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2604
|
-
* @summary Update the product version
|
|
2605
|
-
* @param {ProductsApiUpdateProductVersionRequest} requestParameters Request parameters.
|
|
2606
|
-
* @param {*} [options] Override http request option.
|
|
2607
|
-
* @throws {RequiredError}
|
|
2608
|
-
* @memberof ProductsApi
|
|
2609
|
-
*/
|
|
2610
|
-
ProductsApi.prototype.updateProductVersion = function (requestParameters, options) {
|
|
2611
|
-
var _this = this;
|
|
2612
|
-
return (0, exports.ProductsApiFp)(this.configuration).updateProductVersion(requestParameters.id, requestParameters.updateProductVersionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2613
|
-
};
|
|
2614
|
-
/**
|
|
2615
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
2616
|
-
* @summary Validate product factors
|
|
2617
|
-
* @param {ProductsApiValidateProductFactorsRequest} requestParameters Request parameters.
|
|
2618
|
-
* @param {*} [options] Override http request option.
|
|
2619
|
-
* @throws {RequiredError}
|
|
2620
|
-
* @memberof ProductsApi
|
|
2621
|
-
*/
|
|
2622
|
-
ProductsApi.prototype.validateProductFactors = function (requestParameters, options) {
|
|
2623
|
-
var _this = this;
|
|
2624
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2625
|
-
return (0, exports.ProductsApiFp)(this.configuration).validateProductFactors(requestParameters.authorization, requestParameters.factors, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2626
|
-
};
|
|
2627
646
|
return ProductsApi;
|
|
2628
647
|
}(base_1.BaseAPI));
|
|
2629
648
|
exports.ProductsApi = ProductsApi;
|