@emilgroup/insurance-sdk-node 1.1.1 → 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 +25 -5
- package/README.md +3 -3
- 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 +483 -25
- 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 +229 -2557
- package/api.ts +9 -1
- package/base.ts +42 -14
- 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 +277 -25
- package/dist/api/policies-api.js +408 -20
- 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 +36 -1325
- package/dist/api/products-api.js +140 -2013
- package/dist/api.d.ts +5 -1
- package/dist/api.js +5 -1
- package/dist/base.d.ts +2 -2
- package/dist/base.js +40 -12
- 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 +13 -6
- package/dist/models/calculate-premium-request-dto.js +1 -1
- package/dist/models/create-account-request-dto.d.ts +31 -12
- 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 +10 -3
- 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 +25 -18
- 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 +23 -4
- 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 +36 -0
- package/dist/models/get-product-factors-for-version-request-dto.js +15 -0
- package/dist/models/get-product-factors-for-version-response-class.d.ts +25 -0
- package/dist/models/get-product-factors-for-version-response-class.js +15 -0
- 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 +21 -5
- package/dist/models/index.js +21 -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 +12 -6
- 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 +54 -0
- package/dist/models/{create-claim-request-dto.js → premium-override-dto.js} +10 -9
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- 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/shared-update-premium-formula-request-dto.js +26 -0
- 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 +24 -0
- package/dist/models/terminate-policy-request-dto.js +15 -0
- package/dist/models/terminate-policy-response-class.d.ts +25 -0
- package/dist/models/terminate-policy-response-class.js +15 -0
- 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 +12 -11
- 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 +29 -3
- 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 +25 -0
- package/dist/models/withdraw-policy-response-class.js +15 -0
- package/index.ts +1 -1
- package/models/calculate-custom-premium-request-dto.ts +3 -3
- package/models/calculate-premium-request-dto.ts +13 -6
- package/models/create-account-request-dto.ts +34 -12
- 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 +10 -3
- 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 +24 -17
- package/models/create-lead-response-class.ts +31 -0
- package/models/create-policy-request-dto.ts +23 -4
- 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 +42 -0
- package/models/get-product-factors-for-version-response-class.ts +31 -0
- 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 +21 -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 +12 -6
- package/models/policy-version-class.ts +6 -6
- package/models/premium-formula-class.ts +10 -17
- package/models/premium-override-dto.ts +64 -0
- package/models/premium-override-request-dto.ts +31 -0
- 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 +30 -0
- package/models/terminate-policy-response-class.ts +31 -0
- package/models/timeslice-class.ts +8 -8
- package/models/update-insured-object-request-dto.ts +6 -6
- package/models/update-lead-request-dto.ts +11 -10
- package/models/update-lead-response-class.ts +31 -0
- package/models/update-policy-request-dto.ts +32 -3
- 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 +31 -0
- package/package.json +3 -3
- package/dist/models/create-claim-request-dto.d.ts +0 -83
- package/dist/models/grpc-update-policy-request-dto.d.ts +0 -43
- package/dist/models/to-grpc-create-policy-request-dto.d.ts +0 -37
- package/models/create-claim-request-dto.ts +0 -93
- package/models/grpc-update-policy-request-dto.ts +0 -49
- package/models/to-grpc-create-policy-request-dto.ts +0 -43
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
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
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.ProductFactorsApi = exports.ProductFactorsApiFactory = exports.ProductFactorsApiFp = exports.ProductFactorsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* ProductFactorsApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var ProductFactorsApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* 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.
|
|
101
|
+
* @summary Retrieve the product factor
|
|
102
|
+
* @param {number} id
|
|
103
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
104
|
+
* @param {string} [authorization] Bearer Token
|
|
105
|
+
* @param {string} [expand] Fields to expand response by
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
getProductFactor: function (id, id2, authorization, expand, options) {
|
|
110
|
+
if (options === void 0) { options = {}; }
|
|
111
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0:
|
|
116
|
+
// verify required parameter 'id' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('getProductFactor', 'id', id);
|
|
118
|
+
// verify required parameter 'id2' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('getProductFactor', 'id2', id2);
|
|
120
|
+
localVarPath = "/insuranceservice/v1/product-factors/{id}"
|
|
121
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
122
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
baseAccessToken = configuration.accessToken;
|
|
126
|
+
}
|
|
127
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
128
|
+
localVarHeaderParameter = {};
|
|
129
|
+
localVarQueryParameter = {};
|
|
130
|
+
// authentication bearer required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
133
|
+
case 1:
|
|
134
|
+
// authentication bearer required
|
|
135
|
+
// http bearer authentication required
|
|
136
|
+
_a.sent();
|
|
137
|
+
if (id2 !== undefined) {
|
|
138
|
+
localVarQueryParameter['id'] = id2;
|
|
139
|
+
}
|
|
140
|
+
if (expand !== undefined) {
|
|
141
|
+
localVarQueryParameter['expand'] = expand;
|
|
142
|
+
}
|
|
143
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
144
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
145
|
+
}
|
|
146
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
147
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
149
|
+
return [2 /*return*/, {
|
|
150
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
151
|
+
options: localVarRequestOptions,
|
|
152
|
+
}];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
/**
|
|
158
|
+
* Get the value corresponding to a specific product factor.
|
|
159
|
+
* @summary Get product factor value
|
|
160
|
+
* @param {number} productVersionId Product Version Id
|
|
161
|
+
* @param {string} label Product factor label
|
|
162
|
+
* @param {string} key Key for the product factor value
|
|
163
|
+
* @param {string} name Name for the product factor value
|
|
164
|
+
* @param {string} [authorization] Bearer Token
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
|
|
169
|
+
if (options === void 0) { options = {}; }
|
|
170
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
171
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
switch (_a.label) {
|
|
174
|
+
case 0:
|
|
175
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('getProductFactorValue', 'productVersionId', productVersionId);
|
|
177
|
+
// verify required parameter 'label' is not null or undefined
|
|
178
|
+
(0, common_1.assertParamExists)('getProductFactorValue', 'label', label);
|
|
179
|
+
// verify required parameter 'key' is not null or undefined
|
|
180
|
+
(0, common_1.assertParamExists)('getProductFactorValue', 'key', key);
|
|
181
|
+
// verify required parameter 'name' is not null or undefined
|
|
182
|
+
(0, common_1.assertParamExists)('getProductFactorValue', 'name', name);
|
|
183
|
+
localVarPath = "/insuranceservice/v1/product-factors/values";
|
|
184
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
baseAccessToken = configuration.accessToken;
|
|
188
|
+
}
|
|
189
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
190
|
+
localVarHeaderParameter = {};
|
|
191
|
+
localVarQueryParameter = {};
|
|
192
|
+
// authentication bearer required
|
|
193
|
+
// http bearer authentication required
|
|
194
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
195
|
+
case 1:
|
|
196
|
+
// authentication bearer required
|
|
197
|
+
// http bearer authentication required
|
|
198
|
+
_a.sent();
|
|
199
|
+
if (productVersionId !== undefined) {
|
|
200
|
+
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
201
|
+
}
|
|
202
|
+
if (label !== undefined) {
|
|
203
|
+
localVarQueryParameter['label'] = label;
|
|
204
|
+
}
|
|
205
|
+
if (key !== undefined) {
|
|
206
|
+
localVarQueryParameter['key'] = key;
|
|
207
|
+
}
|
|
208
|
+
if (name !== undefined) {
|
|
209
|
+
localVarQueryParameter['name'] = name;
|
|
210
|
+
}
|
|
211
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
212
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
213
|
+
}
|
|
214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
215
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
217
|
+
return [2 /*return*/, {
|
|
218
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
219
|
+
options: localVarRequestOptions,
|
|
220
|
+
}];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
* 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).
|
|
227
|
+
* @summary Returns all product factors for the product version.
|
|
228
|
+
* @param {number} productVersionId Unique identifier referencing the product Version.
|
|
229
|
+
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
|
|
230
|
+
* @param {string} [authorization] Bearer Token
|
|
231
|
+
* @param {boolean} [forPublic] true if this is a call from PublicAPI or false otherwise (default).
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
|
|
236
|
+
if (options === void 0) { options = {}; }
|
|
237
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
238
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
switch (_a.label) {
|
|
241
|
+
case 0:
|
|
242
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
243
|
+
(0, common_1.assertParamExists)('getProductFactorsForVersion', 'productVersionId', productVersionId);
|
|
244
|
+
// verify required parameter 'values' is not null or undefined
|
|
245
|
+
(0, common_1.assertParamExists)('getProductFactorsForVersion', 'values', values);
|
|
246
|
+
localVarPath = "/insuranceservice/v1/product-factors/for-version";
|
|
247
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
248
|
+
if (configuration) {
|
|
249
|
+
baseOptions = configuration.baseOptions;
|
|
250
|
+
baseAccessToken = configuration.accessToken;
|
|
251
|
+
}
|
|
252
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
253
|
+
localVarHeaderParameter = {};
|
|
254
|
+
localVarQueryParameter = {};
|
|
255
|
+
// authentication bearer required
|
|
256
|
+
// http bearer authentication required
|
|
257
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
258
|
+
case 1:
|
|
259
|
+
// authentication bearer required
|
|
260
|
+
// http bearer authentication required
|
|
261
|
+
_a.sent();
|
|
262
|
+
if (productVersionId !== undefined) {
|
|
263
|
+
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
264
|
+
}
|
|
265
|
+
if (values !== undefined) {
|
|
266
|
+
localVarQueryParameter['values'] = values;
|
|
267
|
+
}
|
|
268
|
+
if (forPublic !== undefined) {
|
|
269
|
+
localVarQueryParameter['forPublic'] = forPublic;
|
|
270
|
+
}
|
|
271
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
272
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
273
|
+
}
|
|
274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
277
|
+
return [2 /*return*/, {
|
|
278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
279
|
+
options: localVarRequestOptions,
|
|
280
|
+
}];
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
* 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.
|
|
287
|
+
* @summary List product factors
|
|
288
|
+
* @param {string} [authorization] Bearer Token
|
|
289
|
+
* @param {number} [pageSize] Page size.
|
|
290
|
+
* @param {string} [pageToken] Page token.
|
|
291
|
+
* @param {string} [filter] List filter
|
|
292
|
+
* @param {string} [search] Search query.
|
|
293
|
+
* @param {string} [order] Ordering criteria.
|
|
294
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
299
|
+
if (options === void 0) { options = {}; }
|
|
300
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
301
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
302
|
+
return __generator(this, function (_a) {
|
|
303
|
+
switch (_a.label) {
|
|
304
|
+
case 0:
|
|
305
|
+
localVarPath = "/insuranceservice/v1/product-factors";
|
|
306
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
307
|
+
if (configuration) {
|
|
308
|
+
baseOptions = configuration.baseOptions;
|
|
309
|
+
baseAccessToken = configuration.accessToken;
|
|
310
|
+
}
|
|
311
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
312
|
+
localVarHeaderParameter = {};
|
|
313
|
+
localVarQueryParameter = {};
|
|
314
|
+
// authentication bearer required
|
|
315
|
+
// http bearer authentication required
|
|
316
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
317
|
+
case 1:
|
|
318
|
+
// authentication bearer required
|
|
319
|
+
// http bearer authentication required
|
|
320
|
+
_a.sent();
|
|
321
|
+
if (pageSize !== undefined) {
|
|
322
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
323
|
+
}
|
|
324
|
+
if (pageToken !== undefined) {
|
|
325
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
326
|
+
}
|
|
327
|
+
if (filter !== undefined) {
|
|
328
|
+
localVarQueryParameter['filter'] = filter;
|
|
329
|
+
}
|
|
330
|
+
if (search !== undefined) {
|
|
331
|
+
localVarQueryParameter['search'] = search;
|
|
332
|
+
}
|
|
333
|
+
if (order !== undefined) {
|
|
334
|
+
localVarQueryParameter['order'] = order;
|
|
335
|
+
}
|
|
336
|
+
if (expand !== undefined) {
|
|
337
|
+
localVarQueryParameter['expand'] = expand;
|
|
338
|
+
}
|
|
339
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
340
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
341
|
+
}
|
|
342
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
343
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
345
|
+
return [2 /*return*/, {
|
|
346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
347
|
+
options: localVarRequestOptions,
|
|
348
|
+
}];
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
* 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.
|
|
355
|
+
* @summary Upload product factors
|
|
356
|
+
* @param {string} [authorization] Bearer Token
|
|
357
|
+
* @param {number} [productVersionId]
|
|
358
|
+
* @param {any} [factors]
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
storeProductFactors: function (authorization, productVersionId, factors, options) {
|
|
363
|
+
if (options === void 0) { options = {}; }
|
|
364
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
365
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
366
|
+
return __generator(this, function (_a) {
|
|
367
|
+
switch (_a.label) {
|
|
368
|
+
case 0:
|
|
369
|
+
localVarPath = "/insuranceservice/v1/product-factors";
|
|
370
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
371
|
+
if (configuration) {
|
|
372
|
+
baseOptions = configuration.baseOptions;
|
|
373
|
+
baseAccessToken = configuration.accessToken;
|
|
374
|
+
}
|
|
375
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
376
|
+
localVarHeaderParameter = {};
|
|
377
|
+
localVarQueryParameter = {};
|
|
378
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
379
|
+
// authentication bearer required
|
|
380
|
+
// http bearer authentication required
|
|
381
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
382
|
+
case 1:
|
|
383
|
+
// authentication bearer required
|
|
384
|
+
// http bearer authentication required
|
|
385
|
+
_a.sent();
|
|
386
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
387
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
388
|
+
}
|
|
389
|
+
if (productVersionId !== undefined) {
|
|
390
|
+
localVarFormParams.append('productVersionId', productVersionId);
|
|
391
|
+
}
|
|
392
|
+
if (factors !== undefined) {
|
|
393
|
+
localVarFormParams.append('factors', factors);
|
|
394
|
+
}
|
|
395
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
397
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
399
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
400
|
+
return [2 /*return*/, {
|
|
401
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
402
|
+
options: localVarRequestOptions,
|
|
403
|
+
}];
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
410
|
+
* @summary Validate product factors
|
|
411
|
+
* @param {string} [authorization] Bearer Token
|
|
412
|
+
* @param {any} [factors]
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
validateProductFactors: function (authorization, factors, options) {
|
|
417
|
+
if (options === void 0) { options = {}; }
|
|
418
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
419
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
switch (_a.label) {
|
|
422
|
+
case 0:
|
|
423
|
+
localVarPath = "/insuranceservice/v1/product-factors/validate";
|
|
424
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
425
|
+
if (configuration) {
|
|
426
|
+
baseOptions = configuration.baseOptions;
|
|
427
|
+
baseAccessToken = configuration.accessToken;
|
|
428
|
+
}
|
|
429
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
430
|
+
localVarHeaderParameter = {};
|
|
431
|
+
localVarQueryParameter = {};
|
|
432
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
433
|
+
// authentication bearer required
|
|
434
|
+
// http bearer authentication required
|
|
435
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
436
|
+
case 1:
|
|
437
|
+
// authentication bearer required
|
|
438
|
+
// http bearer authentication required
|
|
439
|
+
_a.sent();
|
|
440
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
441
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
442
|
+
}
|
|
443
|
+
if (factors !== undefined) {
|
|
444
|
+
localVarFormParams.append('factors', factors);
|
|
445
|
+
}
|
|
446
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
447
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
448
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
449
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
450
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
451
|
+
return [2 /*return*/, {
|
|
452
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
453
|
+
options: localVarRequestOptions,
|
|
454
|
+
}];
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
});
|
|
458
|
+
},
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
exports.ProductFactorsApiAxiosParamCreator = ProductFactorsApiAxiosParamCreator;
|
|
462
|
+
/**
|
|
463
|
+
* ProductFactorsApi - functional programming interface
|
|
464
|
+
* @export
|
|
465
|
+
*/
|
|
466
|
+
var ProductFactorsApiFp = function (configuration) {
|
|
467
|
+
var localVarAxiosParamCreator = (0, exports.ProductFactorsApiAxiosParamCreator)(configuration);
|
|
468
|
+
return {
|
|
469
|
+
/**
|
|
470
|
+
* 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.
|
|
471
|
+
* @summary Retrieve the product factor
|
|
472
|
+
* @param {number} id
|
|
473
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
474
|
+
* @param {string} [authorization] Bearer Token
|
|
475
|
+
* @param {string} [expand] Fields to expand response by
|
|
476
|
+
* @param {*} [options] Override http request option.
|
|
477
|
+
* @throws {RequiredError}
|
|
478
|
+
*/
|
|
479
|
+
getProductFactor: function (id, id2, authorization, expand, options) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
481
|
+
var localVarAxiosArgs;
|
|
482
|
+
return __generator(this, function (_a) {
|
|
483
|
+
switch (_a.label) {
|
|
484
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactor(id, id2, authorization, expand, options)];
|
|
485
|
+
case 1:
|
|
486
|
+
localVarAxiosArgs = _a.sent();
|
|
487
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
});
|
|
491
|
+
},
|
|
492
|
+
/**
|
|
493
|
+
* Get the value corresponding to a specific product factor.
|
|
494
|
+
* @summary Get product factor value
|
|
495
|
+
* @param {number} productVersionId Product Version Id
|
|
496
|
+
* @param {string} label Product factor label
|
|
497
|
+
* @param {string} key Key for the product factor value
|
|
498
|
+
* @param {string} name Name for the product factor value
|
|
499
|
+
* @param {string} [authorization] Bearer Token
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
+
var localVarAxiosArgs;
|
|
506
|
+
return __generator(this, function (_a) {
|
|
507
|
+
switch (_a.label) {
|
|
508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactorValue(productVersionId, label, key, name, authorization, options)];
|
|
509
|
+
case 1:
|
|
510
|
+
localVarAxiosArgs = _a.sent();
|
|
511
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
* 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).
|
|
518
|
+
* @summary Returns all product factors for the product version.
|
|
519
|
+
* @param {number} productVersionId Unique identifier referencing the product Version.
|
|
520
|
+
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
|
|
521
|
+
* @param {string} [authorization] Bearer Token
|
|
522
|
+
* @param {boolean} [forPublic] true if this is a call from PublicAPI or false otherwise (default).
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
528
|
+
var localVarAxiosArgs;
|
|
529
|
+
return __generator(this, function (_a) {
|
|
530
|
+
switch (_a.label) {
|
|
531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options)];
|
|
532
|
+
case 1:
|
|
533
|
+
localVarAxiosArgs = _a.sent();
|
|
534
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
* 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.
|
|
541
|
+
* @summary List product factors
|
|
542
|
+
* @param {string} [authorization] Bearer Token
|
|
543
|
+
* @param {number} [pageSize] Page size.
|
|
544
|
+
* @param {string} [pageToken] Page token.
|
|
545
|
+
* @param {string} [filter] List filter
|
|
546
|
+
* @param {string} [search] Search query.
|
|
547
|
+
* @param {string} [order] Ordering criteria.
|
|
548
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
554
|
+
var localVarAxiosArgs;
|
|
555
|
+
return __generator(this, function (_a) {
|
|
556
|
+
switch (_a.label) {
|
|
557
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
558
|
+
case 1:
|
|
559
|
+
localVarAxiosArgs = _a.sent();
|
|
560
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
});
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
* 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.
|
|
567
|
+
* @summary Upload product factors
|
|
568
|
+
* @param {string} [authorization] Bearer Token
|
|
569
|
+
* @param {number} [productVersionId]
|
|
570
|
+
* @param {any} [factors]
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
storeProductFactors: function (authorization, productVersionId, factors, options) {
|
|
575
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
576
|
+
var localVarAxiosArgs;
|
|
577
|
+
return __generator(this, function (_a) {
|
|
578
|
+
switch (_a.label) {
|
|
579
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.storeProductFactors(authorization, productVersionId, factors, options)];
|
|
580
|
+
case 1:
|
|
581
|
+
localVarAxiosArgs = _a.sent();
|
|
582
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
});
|
|
586
|
+
},
|
|
587
|
+
/**
|
|
588
|
+
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
589
|
+
* @summary Validate product factors
|
|
590
|
+
* @param {string} [authorization] Bearer Token
|
|
591
|
+
* @param {any} [factors]
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
validateProductFactors: function (authorization, factors, options) {
|
|
596
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
597
|
+
var localVarAxiosArgs;
|
|
598
|
+
return __generator(this, function (_a) {
|
|
599
|
+
switch (_a.label) {
|
|
600
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateProductFactors(authorization, factors, options)];
|
|
601
|
+
case 1:
|
|
602
|
+
localVarAxiosArgs = _a.sent();
|
|
603
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
exports.ProductFactorsApiFp = ProductFactorsApiFp;
|
|
611
|
+
/**
|
|
612
|
+
* ProductFactorsApi - factory interface
|
|
613
|
+
* @export
|
|
614
|
+
*/
|
|
615
|
+
var ProductFactorsApiFactory = function (configuration, basePath, axios) {
|
|
616
|
+
var localVarFp = (0, exports.ProductFactorsApiFp)(configuration);
|
|
617
|
+
return {
|
|
618
|
+
/**
|
|
619
|
+
* 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.
|
|
620
|
+
* @summary Retrieve the product factor
|
|
621
|
+
* @param {number} id
|
|
622
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
623
|
+
* @param {string} [authorization] Bearer Token
|
|
624
|
+
* @param {string} [expand] Fields to expand response by
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
getProductFactor: function (id, id2, authorization, expand, options) {
|
|
629
|
+
return localVarFp.getProductFactor(id, id2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
630
|
+
},
|
|
631
|
+
/**
|
|
632
|
+
* Get the value corresponding to a specific product factor.
|
|
633
|
+
* @summary Get product factor value
|
|
634
|
+
* @param {number} productVersionId Product Version Id
|
|
635
|
+
* @param {string} label Product factor label
|
|
636
|
+
* @param {string} key Key for the product factor value
|
|
637
|
+
* @param {string} name Name for the product factor value
|
|
638
|
+
* @param {string} [authorization] Bearer Token
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
|
|
643
|
+
return localVarFp.getProductFactorValue(productVersionId, label, key, name, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
* 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).
|
|
647
|
+
* @summary Returns all product factors for the product version.
|
|
648
|
+
* @param {number} productVersionId Unique identifier referencing the product Version.
|
|
649
|
+
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
|
|
650
|
+
* @param {string} [authorization] Bearer Token
|
|
651
|
+
* @param {boolean} [forPublic] true if this is a call from PublicAPI or false otherwise (default).
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
|
|
656
|
+
return localVarFp.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options).then(function (request) { return request(axios, basePath); });
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
* 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.
|
|
660
|
+
* @summary List product factors
|
|
661
|
+
* @param {string} [authorization] Bearer Token
|
|
662
|
+
* @param {number} [pageSize] Page size.
|
|
663
|
+
* @param {string} [pageToken] Page token.
|
|
664
|
+
* @param {string} [filter] List filter
|
|
665
|
+
* @param {string} [search] Search query.
|
|
666
|
+
* @param {string} [order] Ordering criteria.
|
|
667
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
672
|
+
return localVarFp.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
673
|
+
},
|
|
674
|
+
/**
|
|
675
|
+
* 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.
|
|
676
|
+
* @summary Upload product factors
|
|
677
|
+
* @param {string} [authorization] Bearer Token
|
|
678
|
+
* @param {number} [productVersionId]
|
|
679
|
+
* @param {any} [factors]
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
storeProductFactors: function (authorization, productVersionId, factors, options) {
|
|
684
|
+
return localVarFp.storeProductFactors(authorization, productVersionId, factors, options).then(function (request) { return request(axios, basePath); });
|
|
685
|
+
},
|
|
686
|
+
/**
|
|
687
|
+
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
688
|
+
* @summary Validate product factors
|
|
689
|
+
* @param {string} [authorization] Bearer Token
|
|
690
|
+
* @param {any} [factors]
|
|
691
|
+
* @param {*} [options] Override http request option.
|
|
692
|
+
* @throws {RequiredError}
|
|
693
|
+
*/
|
|
694
|
+
validateProductFactors: function (authorization, factors, options) {
|
|
695
|
+
return localVarFp.validateProductFactors(authorization, factors, options).then(function (request) { return request(axios, basePath); });
|
|
696
|
+
},
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
exports.ProductFactorsApiFactory = ProductFactorsApiFactory;
|
|
700
|
+
/**
|
|
701
|
+
* ProductFactorsApi - object-oriented interface
|
|
702
|
+
* @export
|
|
703
|
+
* @class ProductFactorsApi
|
|
704
|
+
* @extends {BaseAPI}
|
|
705
|
+
*/
|
|
706
|
+
var ProductFactorsApi = /** @class */ (function (_super) {
|
|
707
|
+
__extends(ProductFactorsApi, _super);
|
|
708
|
+
function ProductFactorsApi() {
|
|
709
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* 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.
|
|
713
|
+
* @summary Retrieve the product factor
|
|
714
|
+
* @param {ProductFactorsApiGetProductFactorRequest} requestParameters Request parameters.
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
* @memberof ProductFactorsApi
|
|
718
|
+
*/
|
|
719
|
+
ProductFactorsApi.prototype.getProductFactor = function (requestParameters, options) {
|
|
720
|
+
var _this = this;
|
|
721
|
+
return (0, exports.ProductFactorsApiFp)(this.configuration).getProductFactor(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
722
|
+
};
|
|
723
|
+
/**
|
|
724
|
+
* Get the value corresponding to a specific product factor.
|
|
725
|
+
* @summary Get product factor value
|
|
726
|
+
* @param {ProductFactorsApiGetProductFactorValueRequest} requestParameters Request parameters.
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
* @memberof ProductFactorsApi
|
|
730
|
+
*/
|
|
731
|
+
ProductFactorsApi.prototype.getProductFactorValue = function (requestParameters, options) {
|
|
732
|
+
var _this = this;
|
|
733
|
+
return (0, exports.ProductFactorsApiFp)(this.configuration).getProductFactorValue(requestParameters.productVersionId, requestParameters.label, requestParameters.key, requestParameters.name, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
734
|
+
};
|
|
735
|
+
/**
|
|
736
|
+
* 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).
|
|
737
|
+
* @summary Returns all product factors for the product version.
|
|
738
|
+
* @param {ProductFactorsApiGetProductFactorsForVersionRequest} requestParameters Request parameters.
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
* @memberof ProductFactorsApi
|
|
742
|
+
*/
|
|
743
|
+
ProductFactorsApi.prototype.getProductFactorsForVersion = function (requestParameters, options) {
|
|
744
|
+
var _this = this;
|
|
745
|
+
return (0, exports.ProductFactorsApiFp)(this.configuration).getProductFactorsForVersion(requestParameters.productVersionId, requestParameters.values, requestParameters.authorization, requestParameters.forPublic, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* 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.
|
|
749
|
+
* @summary List product factors
|
|
750
|
+
* @param {ProductFactorsApiListProductFactorsRequest} requestParameters Request parameters.
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
* @memberof ProductFactorsApi
|
|
754
|
+
*/
|
|
755
|
+
ProductFactorsApi.prototype.listProductFactors = function (requestParameters, options) {
|
|
756
|
+
var _this = this;
|
|
757
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
758
|
+
return (0, exports.ProductFactorsApiFp)(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); });
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* 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.
|
|
762
|
+
* @summary Upload product factors
|
|
763
|
+
* @param {ProductFactorsApiStoreProductFactorsRequest} requestParameters Request parameters.
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
* @memberof ProductFactorsApi
|
|
767
|
+
*/
|
|
768
|
+
ProductFactorsApi.prototype.storeProductFactors = function (requestParameters, options) {
|
|
769
|
+
var _this = this;
|
|
770
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
771
|
+
return (0, exports.ProductFactorsApiFp)(this.configuration).storeProductFactors(requestParameters.authorization, requestParameters.productVersionId, requestParameters.factors, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
772
|
+
};
|
|
773
|
+
/**
|
|
774
|
+
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
775
|
+
* @summary Validate product factors
|
|
776
|
+
* @param {ProductFactorsApiValidateProductFactorsRequest} requestParameters Request parameters.
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
* @memberof ProductFactorsApi
|
|
780
|
+
*/
|
|
781
|
+
ProductFactorsApi.prototype.validateProductFactors = function (requestParameters, options) {
|
|
782
|
+
var _this = this;
|
|
783
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
784
|
+
return (0, exports.ProductFactorsApiFp)(this.configuration).validateProductFactors(requestParameters.authorization, requestParameters.factors, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
785
|
+
};
|
|
786
|
+
return ProductFactorsApi;
|
|
787
|
+
}(base_1.BaseAPI));
|
|
788
|
+
exports.ProductFactorsApi = ProductFactorsApi;
|