@emilgroup/insurance-sdk-node 1.32.0 → 1.35.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/README.md +2 -2
- package/api/insured-objects-api.ts +8 -8
- package/api/policies-api.ts +23 -23
- package/api/product-fields-api.ts +24 -24
- package/api/products-api.ts +60 -12
- package/models/create-payment-method-request-dto.ts +1 -9
- package/models/get-product-request-dto.ts +4 -4
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-field-class.ts +1 -1
- package/models/shared-product-field-class.ts +1 -1
- package/models/terminate-policy-request-dto.ts +23 -0
- package/models/update-policy-request-dto.ts +8 -1
- package/package.json +2 -2
- package/dist/api/default-api.d.ts +0 -66
- package/dist/api/default-api.js +0 -200
- package/dist/api/insured-object-types-api.d.ts +0 -141
- package/dist/api/insured-object-types-api.js +0 -258
- package/dist/api/insured-objects-api.d.ts +0 -318
- package/dist/api/insured-objects-api.js +0 -539
- package/dist/api/lead-statuses-api.d.ts +0 -265
- package/dist/api/lead-statuses-api.js +0 -505
- package/dist/api/leads-api.d.ts +0 -626
- package/dist/api/leads-api.js +0 -1024
- package/dist/api/named-ranges-api.d.ts +0 -376
- package/dist/api/named-ranges-api.js +0 -634
- package/dist/api/policies-api.d.ts +0 -722
- package/dist/api/policies-api.js +0 -1141
- package/dist/api/premium-formulas-api.d.ts +0 -433
- package/dist/api/premium-formulas-api.js +0 -727
- package/dist/api/product-factors-api.d.ts +0 -493
- package/dist/api/product-factors-api.js +0 -788
- package/dist/api/product-fields-api.d.ts +0 -477
- package/dist/api/product-fields-api.js +0 -757
- package/dist/api/product-versions-api.d.ts +0 -189
- package/dist/api/product-versions-api.js +0 -346
- package/dist/api/products-api.d.ts +0 -458
- package/dist/api/products-api.js +0 -748
- package/dist/api.d.ts +0 -23
- package/dist/api.js +0 -41
- package/dist/base.d.ts +0 -78
- package/dist/base.js +0 -394
- package/dist/common.d.ts +0 -92
- package/dist/common.js +0 -277
- package/dist/configuration.d.ts +0 -90
- package/dist/configuration.js +0 -44
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/activate-policy-request-dto.d.ts +0 -24
- package/dist/models/activate-policy-request-dto.js +0 -15
- package/dist/models/activate-policy-response-class.d.ts +0 -25
- package/dist/models/activate-policy-response-class.js +0 -15
- package/dist/models/calculate-custom-premium-request-dto.d.ts +0 -35
- package/dist/models/calculate-custom-premium-request-dto.js +0 -20
- package/dist/models/calculate-premium-request-dto.d.ts +0 -38
- package/dist/models/calculate-premium-request-dto.js +0 -15
- package/dist/models/calculate-product-fields-request-dto.d.ts +0 -31
- package/dist/models/calculate-product-fields-request-dto.js +0 -15
- package/dist/models/clone-product-version-request-dto.d.ts +0 -36
- package/dist/models/clone-product-version-request-dto.js +0 -15
- package/dist/models/create-account-request-dto.d.ts +0 -120
- package/dist/models/create-account-request-dto.js +0 -26
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-custom-application-request-dto.d.ts +0 -41
- package/dist/models/create-custom-application-request-dto.js +0 -20
- package/dist/models/create-dummy-policy-request-dto.d.ts +0 -44
- package/dist/models/create-dummy-policy-request-dto.js +0 -15
- package/dist/models/create-insured-object-request-dto.d.ts +0 -60
- package/dist/models/create-insured-object-request-dto.js +0 -15
- package/dist/models/create-insured-object-response-class.d.ts +0 -25
- package/dist/models/create-insured-object-response-class.js +0 -15
- package/dist/models/create-lead-async-response-class.d.ts +0 -24
- package/dist/models/create-lead-async-response-class.js +0 -15
- package/dist/models/create-lead-policy-request-dto.d.ts +0 -56
- package/dist/models/create-lead-policy-request-dto.js +0 -15
- package/dist/models/create-lead-request-dto.d.ts +0 -96
- package/dist/models/create-lead-request-dto.js +0 -15
- package/dist/models/create-lead-response-class.d.ts +0 -25
- package/dist/models/create-lead-response-class.js +0 -15
- package/dist/models/create-lead-status-request-dto.d.ts +0 -30
- package/dist/models/create-lead-status-request-dto.js +0 -15
- package/dist/models/create-lead-status-response-class.d.ts +0 -25
- package/dist/models/create-lead-status-response-class.js +0 -15
- package/dist/models/create-named-range-request-dto.d.ts +0 -55
- package/dist/models/create-named-range-request-dto.js +0 -15
- package/dist/models/create-named-range-response-class.d.ts +0 -25
- package/dist/models/create-named-range-response-class.js +0 -15
- package/dist/models/create-named-request-s3-data-class.d.ts +0 -30
- package/dist/models/create-named-request-s3-data-class.js +0 -15
- package/dist/models/create-payment-method-request-dto.d.ts +0 -36
- package/dist/models/create-payment-method-request-dto.js +0 -20
- package/dist/models/create-policy-request-dto.d.ts +0 -62
- package/dist/models/create-policy-request-dto.js +0 -15
- package/dist/models/create-policy-response-class.d.ts +0 -25
- package/dist/models/create-policy-response-class.js +0 -15
- package/dist/models/create-premium-formula-request-dto.d.ts +0 -105
- package/dist/models/create-premium-formula-request-dto.js +0 -39
- package/dist/models/create-premium-formula-response-class.d.ts +0 -25
- package/dist/models/create-premium-formula-response-class.js +0 -15
- package/dist/models/create-product-field-request-dto.d.ts +0 -137
- package/dist/models/create-product-field-request-dto.js +0 -20
- package/dist/models/create-product-field-response-class.d.ts +0 -25
- package/dist/models/create-product-field-response-class.js +0 -15
- package/dist/models/create-product-request-dto.d.ts +0 -85
- package/dist/models/create-product-request-dto.js +0 -51
- package/dist/models/create-product-response-class.d.ts +0 -25
- package/dist/models/create-product-response-class.js +0 -15
- package/dist/models/csv-product-factor-dto.d.ts +0 -48
- package/dist/models/csv-product-factor-dto.js +0 -15
- package/dist/models/delete-request-dto.d.ts +0 -24
- package/dist/models/delete-request-dto.js +0 -15
- package/dist/models/delete-response-class.d.ts +0 -24
- package/dist/models/delete-response-class.js +0 -15
- package/dist/models/empty-response-class.d.ts +0 -24
- package/dist/models/empty-response-class.js +0 -15
- package/dist/models/get-insured-object-response-class.d.ts +0 -25
- package/dist/models/get-insured-object-response-class.js +0 -15
- package/dist/models/get-lead-response-class.d.ts +0 -25
- package/dist/models/get-lead-response-class.js +0 -15
- package/dist/models/get-lead-status-response-class.d.ts +0 -25
- package/dist/models/get-lead-status-response-class.js +0 -15
- package/dist/models/get-named-range-response-class.d.ts +0 -25
- package/dist/models/get-named-range-response-class.js +0 -15
- package/dist/models/get-policy-data-by-date-request-dto.d.ts +0 -30
- package/dist/models/get-policy-data-by-date-request-dto.js +0 -15
- package/dist/models/get-policy-request-dto.d.ts +0 -30
- package/dist/models/get-policy-request-dto.js +0 -15
- package/dist/models/get-policy-response-class.d.ts +0 -25
- package/dist/models/get-policy-response-class.js +0 -15
- package/dist/models/get-premium-formula-request-dto.d.ts +0 -24
- package/dist/models/get-premium-formula-request-dto.js +0 -15
- package/dist/models/get-premium-formula-response-class.d.ts +0 -25
- package/dist/models/get-premium-formula-response-class.js +0 -15
- package/dist/models/get-product-factor-response-class.d.ts +0 -32
- package/dist/models/get-product-factor-response-class.js +0 -15
- package/dist/models/get-product-factor-value-request-dto.d.ts +0 -42
- package/dist/models/get-product-factor-value-request-dto.js +0 -15
- package/dist/models/get-product-factor-value-response-class.d.ts +0 -25
- package/dist/models/get-product-factor-value-response-class.js +0 -15
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +0 -36
- package/dist/models/get-product-factors-for-version-request-dto.js +0 -15
- package/dist/models/get-product-factors-for-version-response-class.d.ts +0 -25
- package/dist/models/get-product-factors-for-version-response-class.js +0 -15
- package/dist/models/get-product-field-request-dto.d.ts +0 -24
- package/dist/models/get-product-field-request-dto.js +0 -15
- package/dist/models/get-product-field-response-class.d.ts +0 -25
- package/dist/models/get-product-field-response-class.js +0 -15
- package/dist/models/get-product-request-dto.d.ts +0 -42
- package/dist/models/get-product-request-dto.js +0 -15
- package/dist/models/get-product-response-class.d.ts +0 -25
- package/dist/models/get-product-response-class.js +0 -15
- package/dist/models/get-product-version-request-dto.d.ts +0 -36
- package/dist/models/get-product-version-request-dto.js +0 -15
- package/dist/models/get-product-version-response-class.d.ts +0 -25
- package/dist/models/get-product-version-response-class.js +0 -15
- package/dist/models/grouped-product-factor-class.d.ts +0 -37
- package/dist/models/grouped-product-factor-class.js +0 -15
- package/dist/models/grouped-product-factor-value-class.d.ts +0 -42
- package/dist/models/grouped-product-factor-value-class.js +0 -15
- package/dist/models/grouped-product-factors-response-class.d.ts +0 -25
- package/dist/models/grouped-product-factors-response-class.js +0 -15
- package/dist/models/grpc-patch-lead-request-dto.d.ts +0 -102
- package/dist/models/grpc-patch-lead-request-dto.js +0 -15
- package/dist/models/grpc-update-lead-request-dto.d.ts +0 -102
- package/dist/models/grpc-update-lead-request-dto.js +0 -15
- package/dist/models/index.d.ts +0 -136
- package/dist/models/index.js +0 -152
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/insured-object-class.d.ts +0 -85
- package/dist/models/insured-object-class.js +0 -15
- package/dist/models/insured-object-type-class.d.ts +0 -48
- package/dist/models/insured-object-type-class.js +0 -15
- package/dist/models/invoice-item-class.d.ts +0 -117
- package/dist/models/invoice-item-class.js +0 -24
- package/dist/models/invoice-status-class.d.ts +0 -47
- package/dist/models/invoice-status-class.js +0 -20
- package/dist/models/lead-bank-account-class.d.ts +0 -30
- package/dist/models/lead-bank-account-class.js +0 -15
- package/dist/models/lead-class.d.ts +0 -133
- package/dist/models/lead-class.js +0 -15
- package/dist/models/lead-status-class.d.ts +0 -36
- package/dist/models/lead-status-class.js +0 -15
- package/dist/models/list-insured-object-types-response-class.d.ts +0 -31
- package/dist/models/list-insured-object-types-response-class.js +0 -15
- package/dist/models/list-insured-objects-response-class.d.ts +0 -31
- package/dist/models/list-insured-objects-response-class.js +0 -15
- package/dist/models/list-lead-statuses-response-class.d.ts +0 -31
- package/dist/models/list-lead-statuses-response-class.js +0 -15
- package/dist/models/list-leads-response-class.d.ts +0 -43
- package/dist/models/list-leads-response-class.js +0 -15
- package/dist/models/list-named-ranges-response-class.d.ts +0 -30
- package/dist/models/list-named-ranges-response-class.js +0 -15
- package/dist/models/list-policies-response-class.d.ts +0 -43
- package/dist/models/list-policies-response-class.js +0 -15
- package/dist/models/list-premium-formulas-response-class.d.ts +0 -31
- package/dist/models/list-premium-formulas-response-class.js +0 -15
- package/dist/models/list-product-factors-response-class.d.ts +0 -31
- package/dist/models/list-product-factors-response-class.js +0 -15
- package/dist/models/list-product-field-types-response-class.d.ts +0 -31
- package/dist/models/list-product-field-types-response-class.js +0 -15
- package/dist/models/list-product-fields-response-class.d.ts +0 -31
- package/dist/models/list-product-fields-response-class.js +0 -15
- package/dist/models/list-products-response-class.d.ts +0 -31
- package/dist/models/list-products-response-class.js +0 -15
- package/dist/models/list-request-dto.d.ts +0 -54
- package/dist/models/list-request-dto.js +0 -15
- package/dist/models/named-range-class.d.ts +0 -78
- package/dist/models/named-range-class.js +0 -15
- package/dist/models/patch-lead-request-dto.d.ts +0 -90
- package/dist/models/patch-lead-request-dto.js +0 -15
- package/dist/models/patch-lead-response-class.d.ts +0 -25
- package/dist/models/patch-lead-response-class.js +0 -15
- package/dist/models/patch-policy-request-dto.d.ts +0 -50
- package/dist/models/patch-policy-request-dto.js +0 -15
- package/dist/models/patch-policy-response-class.d.ts +0 -25
- package/dist/models/patch-policy-response-class.js +0 -15
- package/dist/models/policy-class.d.ts +0 -128
- package/dist/models/policy-class.js +0 -15
- package/dist/models/policy-object-class.d.ts +0 -60
- package/dist/models/policy-object-class.js +0 -15
- package/dist/models/policy-object-dto.d.ts +0 -42
- package/dist/models/policy-object-dto.js +0 -15
- package/dist/models/policy-premium-class.d.ts +0 -49
- package/dist/models/policy-premium-class.js +0 -15
- package/dist/models/policy-premium-item-class.d.ts +0 -55
- package/dist/models/policy-premium-item-class.js +0 -15
- package/dist/models/policy-version-class.d.ts +0 -55
- package/dist/models/policy-version-class.js +0 -15
- package/dist/models/premium-formula-class.d.ts +0 -96
- package/dist/models/premium-formula-class.js +0 -15
- package/dist/models/premium-override-dto.d.ts +0 -55
- package/dist/models/premium-override-dto.js +0 -27
- package/dist/models/premium-override-request-class.d.ts +0 -25
- package/dist/models/premium-override-request-class.js +0 -15
- package/dist/models/premium-override-request-dto.d.ts +0 -25
- package/dist/models/premium-override-request-dto.js +0 -15
- package/dist/models/product-class.d.ts +0 -80
- package/dist/models/product-class.js +0 -15
- package/dist/models/product-factor-class.d.ts +0 -61
- package/dist/models/product-factor-class.js +0 -15
- package/dist/models/product-factor-for-version-class.d.ts +0 -61
- package/dist/models/product-factor-for-version-class.js +0 -15
- package/dist/models/product-factor-value-class.d.ts +0 -60
- package/dist/models/product-factor-value-class.js +0 -15
- package/dist/models/product-factor-value-for-version-class.d.ts +0 -42
- package/dist/models/product-factor-value-for-version-class.js +0 -15
- package/dist/models/product-field-class.d.ts +0 -132
- package/dist/models/product-field-class.js +0 -15
- package/dist/models/product-field-type-class.d.ts +0 -48
- package/dist/models/product-field-type-class.js +0 -15
- package/dist/models/product-version-class.d.ts +0 -61
- package/dist/models/product-version-class.js +0 -22
- package/dist/models/sepa-dto.d.ts +0 -30
- package/dist/models/sepa-dto.js +0 -15
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +0 -56
- package/dist/models/shared-create-lead-policy-request-dto.js +0 -15
- package/dist/models/shared-invoice-class.d.ts +0 -150
- package/dist/models/shared-invoice-class.js +0 -30
- package/dist/models/shared-lead-policy-object-dto.d.ts +0 -42
- package/dist/models/shared-lead-policy-object-dto.js +0 -15
- package/dist/models/shared-product-field-class.d.ts +0 -132
- package/dist/models/shared-product-field-class.js +0 -15
- package/dist/models/shared-update-named-range-request-dto.d.ts +0 -42
- package/dist/models/shared-update-named-range-request-dto.js +0 -15
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -111
- package/dist/models/shared-update-premium-formula-request-dto.js +0 -39
- package/dist/models/store-product-factors-request-dto.d.ts +0 -31
- package/dist/models/store-product-factors-request-dto.js +0 -15
- package/dist/models/store-product-factors-response-class.d.ts +0 -25
- package/dist/models/store-product-factors-response-class.js +0 -15
- package/dist/models/suspend-policy-request-dto.d.ts +0 -24
- package/dist/models/suspend-policy-request-dto.js +0 -15
- package/dist/models/suspend-policy-response-class.d.ts +0 -25
- package/dist/models/suspend-policy-response-class.js +0 -15
- package/dist/models/swap-premium-formulas-order-request-dto.d.ts +0 -30
- package/dist/models/swap-premium-formulas-order-request-dto.js +0 -15
- package/dist/models/terminate-policy-request-dto.d.ts +0 -24
- package/dist/models/terminate-policy-request-dto.js +0 -15
- package/dist/models/terminate-policy-response-class.d.ts +0 -25
- package/dist/models/terminate-policy-response-class.js +0 -15
- package/dist/models/timeslice-class.d.ts +0 -62
- package/dist/models/timeslice-class.js +0 -15
- package/dist/models/update-insured-object-request-dto.d.ts +0 -66
- package/dist/models/update-insured-object-request-dto.js +0 -15
- package/dist/models/update-lead-request-dto.d.ts +0 -90
- package/dist/models/update-lead-request-dto.js +0 -15
- package/dist/models/update-lead-response-class.d.ts +0 -25
- package/dist/models/update-lead-response-class.js +0 -15
- package/dist/models/update-named-range-request-dto.d.ts +0 -36
- package/dist/models/update-named-range-request-dto.js +0 -15
- package/dist/models/update-named-range-response-class.d.ts +0 -25
- package/dist/models/update-named-range-response-class.js +0 -15
- package/dist/models/update-policy-request-dto.d.ts +0 -69
- package/dist/models/update-policy-request-dto.js +0 -22
- package/dist/models/update-policy-response-class.d.ts +0 -25
- package/dist/models/update-policy-response-class.js +0 -15
- package/dist/models/update-premium-formula-request-dto.d.ts +0 -105
- package/dist/models/update-premium-formula-request-dto.js +0 -39
- package/dist/models/update-premium-formula-response-class.d.ts +0 -25
- package/dist/models/update-premium-formula-response-class.js +0 -15
- package/dist/models/update-product-field-request-dto.d.ts +0 -143
- package/dist/models/update-product-field-request-dto.js +0 -20
- package/dist/models/update-product-field-response-class.d.ts +0 -25
- package/dist/models/update-product-field-response-class.js +0 -15
- package/dist/models/update-product-request-dto.d.ts +0 -42
- package/dist/models/update-product-request-dto.js +0 -15
- package/dist/models/update-product-response-class.d.ts +0 -25
- package/dist/models/update-product-response-class.js +0 -15
- package/dist/models/update-product-version-request-dto.d.ts +0 -43
- package/dist/models/update-product-version-request-dto.js +0 -22
- package/dist/models/update-product-version-response-class.d.ts +0 -25
- package/dist/models/update-product-version-response-class.js +0 -15
- package/dist/models/uploaded-document-dto.d.ts +0 -24
- package/dist/models/uploaded-document-dto.js +0 -15
- package/dist/models/validate-product-factors-request-dto.d.ts +0 -31
- package/dist/models/validate-product-factors-request-dto.js +0 -15
- package/dist/models/withdraw-policy-response-class.d.ts +0 -25
- package/dist/models/withdraw-policy-response-class.js +0 -15
package/dist/api/products-api.js
DELETED
|
@@ -1,748 +0,0 @@
|
|
|
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.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = 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
|
-
* ProductsApi - axios parameter creator
|
|
94
|
-
* @export
|
|
95
|
-
*/
|
|
96
|
-
var ProductsApiAxiosParamCreator = function (configuration) {
|
|
97
|
-
var _this = this;
|
|
98
|
-
return {
|
|
99
|
-
/**
|
|
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
|
-
* @param {*} [options] Override http request option.
|
|
105
|
-
* @throws {RequiredError}
|
|
106
|
-
*/
|
|
107
|
-
createProduct: function (createProductRequestDto, authorization, options) {
|
|
108
|
-
if (options === void 0) { options = {}; }
|
|
109
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
-
return __generator(this, function (_a) {
|
|
112
|
-
switch (_a.label) {
|
|
113
|
-
case 0:
|
|
114
|
-
// verify required parameter 'createProductRequestDto' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('createProduct', 'createProductRequestDto', createProductRequestDto);
|
|
116
|
-
localVarPath = "/insuranceservice/v1/products";
|
|
117
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
-
if (configuration) {
|
|
119
|
-
baseOptions = configuration.baseOptions;
|
|
120
|
-
baseAccessToken = configuration.accessToken;
|
|
121
|
-
}
|
|
122
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
-
localVarHeaderParameter = {};
|
|
124
|
-
localVarQueryParameter = {};
|
|
125
|
-
// authentication bearer required
|
|
126
|
-
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
-
case 1:
|
|
129
|
-
// authentication bearer required
|
|
130
|
-
// http bearer authentication required
|
|
131
|
-
_a.sent();
|
|
132
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
-
}
|
|
135
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductRequestDto, localVarRequestOptions, configuration);
|
|
140
|
-
return [2 /*return*/, {
|
|
141
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
-
options: localVarRequestOptions,
|
|
143
|
-
}];
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
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
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
deleteProduct: function (id, authorization, options) {
|
|
157
|
-
if (options === void 0) { options = {}; }
|
|
158
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0:
|
|
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)));
|
|
167
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
-
if (configuration) {
|
|
169
|
-
baseOptions = configuration.baseOptions;
|
|
170
|
-
baseAccessToken = configuration.accessToken;
|
|
171
|
-
}
|
|
172
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
173
|
-
localVarHeaderParameter = {};
|
|
174
|
-
localVarQueryParameter = {};
|
|
175
|
-
// authentication bearer required
|
|
176
|
-
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
-
case 1:
|
|
179
|
-
// authentication bearer required
|
|
180
|
-
// http bearer authentication required
|
|
181
|
-
_a.sent();
|
|
182
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
-
}
|
|
185
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
return [2 /*return*/, {
|
|
189
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
-
options: localVarRequestOptions,
|
|
191
|
-
}];
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
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 Unique identifier referencing the product.
|
|
201
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
202
|
-
* @param {string} [expand] Fields to expand response by
|
|
203
|
-
* @param {*} [options] Override http request option.
|
|
204
|
-
* @throws {RequiredError}
|
|
205
|
-
*/
|
|
206
|
-
getProductByCode: function (code, id, authorization, expand, options) {
|
|
207
|
-
if (options === void 0) { options = {}; }
|
|
208
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
-
return __generator(this, function (_a) {
|
|
211
|
-
switch (_a.label) {
|
|
212
|
-
case 0:
|
|
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)));
|
|
219
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
-
if (configuration) {
|
|
221
|
-
baseOptions = configuration.baseOptions;
|
|
222
|
-
baseAccessToken = configuration.accessToken;
|
|
223
|
-
}
|
|
224
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
225
|
-
localVarHeaderParameter = {};
|
|
226
|
-
localVarQueryParameter = {};
|
|
227
|
-
// authentication bearer required
|
|
228
|
-
// http bearer authentication required
|
|
229
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
230
|
-
case 1:
|
|
231
|
-
// authentication bearer required
|
|
232
|
-
// http bearer authentication required
|
|
233
|
-
_a.sent();
|
|
234
|
-
if (id !== undefined) {
|
|
235
|
-
localVarQueryParameter['id'] = id;
|
|
236
|
-
}
|
|
237
|
-
if (expand !== undefined) {
|
|
238
|
-
localVarQueryParameter['expand'] = expand;
|
|
239
|
-
}
|
|
240
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
241
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
242
|
-
}
|
|
243
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
244
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
245
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
246
|
-
return [2 /*return*/, {
|
|
247
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
248
|
-
options: localVarRequestOptions,
|
|
249
|
-
}];
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
/**
|
|
255
|
-
* 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.
|
|
256
|
-
* @summary Retrieve the product
|
|
257
|
-
* @param {number} id Unique identifier referencing the product.
|
|
258
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
259
|
-
* @param {string} [expand] Fields to expand response by
|
|
260
|
-
* @param {*} [options] Override http request option.
|
|
261
|
-
* @throws {RequiredError}
|
|
262
|
-
*/
|
|
263
|
-
getProductByIdentifier: function (id, authorization, expand, options) {
|
|
264
|
-
if (options === void 0) { options = {}; }
|
|
265
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
266
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
|
-
return __generator(this, function (_a) {
|
|
268
|
-
switch (_a.label) {
|
|
269
|
-
case 0:
|
|
270
|
-
// verify required parameter 'id' is not null or undefined
|
|
271
|
-
(0, common_1.assertParamExists)('getProductByIdentifier', 'id', id);
|
|
272
|
-
localVarPath = "/insuranceservice/v1/products/get-by-identifier";
|
|
273
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
274
|
-
if (configuration) {
|
|
275
|
-
baseOptions = configuration.baseOptions;
|
|
276
|
-
baseAccessToken = configuration.accessToken;
|
|
277
|
-
}
|
|
278
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
279
|
-
localVarHeaderParameter = {};
|
|
280
|
-
localVarQueryParameter = {};
|
|
281
|
-
// authentication bearer required
|
|
282
|
-
// http bearer authentication required
|
|
283
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
284
|
-
case 1:
|
|
285
|
-
// authentication bearer required
|
|
286
|
-
// http bearer authentication required
|
|
287
|
-
_a.sent();
|
|
288
|
-
if (id !== undefined) {
|
|
289
|
-
localVarQueryParameter['id'] = id;
|
|
290
|
-
}
|
|
291
|
-
if (expand !== undefined) {
|
|
292
|
-
localVarQueryParameter['expand'] = expand;
|
|
293
|
-
}
|
|
294
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
296
|
-
}
|
|
297
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
298
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
300
|
-
return [2 /*return*/, {
|
|
301
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
302
|
-
options: localVarRequestOptions,
|
|
303
|
-
}];
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
},
|
|
308
|
-
/**
|
|
309
|
-
* 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.
|
|
310
|
-
* @summary List products
|
|
311
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
312
|
-
* @param {number} [pageSize] Page size.
|
|
313
|
-
* @param {string} [pageToken] Page token.
|
|
314
|
-
* @param {string} [filter] List filter
|
|
315
|
-
* @param {string} [search] Search query.
|
|
316
|
-
* @param {string} [order] Ordering criteria.
|
|
317
|
-
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
318
|
-
* @param {*} [options] Override http request option.
|
|
319
|
-
* @throws {RequiredError}
|
|
320
|
-
*/
|
|
321
|
-
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
322
|
-
if (options === void 0) { options = {}; }
|
|
323
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
324
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
325
|
-
return __generator(this, function (_a) {
|
|
326
|
-
switch (_a.label) {
|
|
327
|
-
case 0:
|
|
328
|
-
localVarPath = "/insuranceservice/v1/products";
|
|
329
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
330
|
-
if (configuration) {
|
|
331
|
-
baseOptions = configuration.baseOptions;
|
|
332
|
-
baseAccessToken = configuration.accessToken;
|
|
333
|
-
}
|
|
334
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
335
|
-
localVarHeaderParameter = {};
|
|
336
|
-
localVarQueryParameter = {};
|
|
337
|
-
// authentication bearer required
|
|
338
|
-
// http bearer authentication required
|
|
339
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
340
|
-
case 1:
|
|
341
|
-
// authentication bearer required
|
|
342
|
-
// http bearer authentication required
|
|
343
|
-
_a.sent();
|
|
344
|
-
if (pageSize !== undefined) {
|
|
345
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
346
|
-
}
|
|
347
|
-
if (pageToken !== undefined) {
|
|
348
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
349
|
-
}
|
|
350
|
-
if (filter !== undefined) {
|
|
351
|
-
localVarQueryParameter['filter'] = filter;
|
|
352
|
-
}
|
|
353
|
-
if (search !== undefined) {
|
|
354
|
-
localVarQueryParameter['search'] = search;
|
|
355
|
-
}
|
|
356
|
-
if (order !== undefined) {
|
|
357
|
-
localVarQueryParameter['order'] = order;
|
|
358
|
-
}
|
|
359
|
-
if (expand !== undefined) {
|
|
360
|
-
localVarQueryParameter['expand'] = expand;
|
|
361
|
-
}
|
|
362
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
363
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
364
|
-
}
|
|
365
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
366
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
368
|
-
return [2 /*return*/, {
|
|
369
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
370
|
-
options: localVarRequestOptions,
|
|
371
|
-
}];
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
});
|
|
375
|
-
},
|
|
376
|
-
/**
|
|
377
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
378
|
-
* @summary Update the product
|
|
379
|
-
* @param {number} id
|
|
380
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
381
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
382
|
-
* @param {*} [options] Override http request option.
|
|
383
|
-
* @throws {RequiredError}
|
|
384
|
-
*/
|
|
385
|
-
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
386
|
-
if (options === void 0) { options = {}; }
|
|
387
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
388
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
389
|
-
return __generator(this, function (_a) {
|
|
390
|
-
switch (_a.label) {
|
|
391
|
-
case 0:
|
|
392
|
-
// verify required parameter 'id' is not null or undefined
|
|
393
|
-
(0, common_1.assertParamExists)('updateProduct', 'id', id);
|
|
394
|
-
// verify required parameter 'updateProductRequestDto' is not null or undefined
|
|
395
|
-
(0, common_1.assertParamExists)('updateProduct', 'updateProductRequestDto', updateProductRequestDto);
|
|
396
|
-
localVarPath = "/insuranceservice/v1/products/{id}"
|
|
397
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
398
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
399
|
-
if (configuration) {
|
|
400
|
-
baseOptions = configuration.baseOptions;
|
|
401
|
-
baseAccessToken = configuration.accessToken;
|
|
402
|
-
}
|
|
403
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
404
|
-
localVarHeaderParameter = {};
|
|
405
|
-
localVarQueryParameter = {};
|
|
406
|
-
// authentication bearer required
|
|
407
|
-
// http bearer authentication required
|
|
408
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
409
|
-
case 1:
|
|
410
|
-
// authentication bearer required
|
|
411
|
-
// http bearer authentication required
|
|
412
|
-
_a.sent();
|
|
413
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
414
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
415
|
-
}
|
|
416
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
417
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
418
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
420
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequestDto, localVarRequestOptions, configuration);
|
|
421
|
-
return [2 /*return*/, {
|
|
422
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
423
|
-
options: localVarRequestOptions,
|
|
424
|
-
}];
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
|
-
},
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
|
|
432
|
-
/**
|
|
433
|
-
* ProductsApi - functional programming interface
|
|
434
|
-
* @export
|
|
435
|
-
*/
|
|
436
|
-
var ProductsApiFp = function (configuration) {
|
|
437
|
-
var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
|
|
438
|
-
return {
|
|
439
|
-
/**
|
|
440
|
-
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
441
|
-
* @summary Create the product
|
|
442
|
-
* @param {CreateProductRequestDto} createProductRequestDto
|
|
443
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
444
|
-
* @param {*} [options] Override http request option.
|
|
445
|
-
* @throws {RequiredError}
|
|
446
|
-
*/
|
|
447
|
-
createProduct: function (createProductRequestDto, authorization, options) {
|
|
448
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
449
|
-
var localVarAxiosArgs;
|
|
450
|
-
return __generator(this, function (_a) {
|
|
451
|
-
switch (_a.label) {
|
|
452
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options)];
|
|
453
|
-
case 1:
|
|
454
|
-
localVarAxiosArgs = _a.sent();
|
|
455
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
});
|
|
459
|
-
},
|
|
460
|
-
/**
|
|
461
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
462
|
-
* @summary Delete the product
|
|
463
|
-
* @param {number} id
|
|
464
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
|
-
* @param {*} [options] Override http request option.
|
|
466
|
-
* @throws {RequiredError}
|
|
467
|
-
*/
|
|
468
|
-
deleteProduct: function (id, authorization, options) {
|
|
469
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
470
|
-
var localVarAxiosArgs;
|
|
471
|
-
return __generator(this, function (_a) {
|
|
472
|
-
switch (_a.label) {
|
|
473
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProduct(id, authorization, options)];
|
|
474
|
-
case 1:
|
|
475
|
-
localVarAxiosArgs = _a.sent();
|
|
476
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
477
|
-
}
|
|
478
|
-
});
|
|
479
|
-
});
|
|
480
|
-
},
|
|
481
|
-
/**
|
|
482
|
-
* 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.
|
|
483
|
-
* @summary Retrieve the product
|
|
484
|
-
* @param {string} code Unique identifier for the object.
|
|
485
|
-
* @param {number} id Unique identifier referencing the product.
|
|
486
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
487
|
-
* @param {string} [expand] Fields to expand response by
|
|
488
|
-
* @param {*} [options] Override http request option.
|
|
489
|
-
* @throws {RequiredError}
|
|
490
|
-
*/
|
|
491
|
-
getProductByCode: function (code, id, authorization, expand, options) {
|
|
492
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
493
|
-
var localVarAxiosArgs;
|
|
494
|
-
return __generator(this, function (_a) {
|
|
495
|
-
switch (_a.label) {
|
|
496
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options)];
|
|
497
|
-
case 1:
|
|
498
|
-
localVarAxiosArgs = _a.sent();
|
|
499
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
});
|
|
503
|
-
},
|
|
504
|
-
/**
|
|
505
|
-
* 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.
|
|
506
|
-
* @summary Retrieve the product
|
|
507
|
-
* @param {number} id Unique identifier referencing the product.
|
|
508
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
509
|
-
* @param {string} [expand] Fields to expand response by
|
|
510
|
-
* @param {*} [options] Override http request option.
|
|
511
|
-
* @throws {RequiredError}
|
|
512
|
-
*/
|
|
513
|
-
getProductByIdentifier: function (id, authorization, expand, options) {
|
|
514
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
515
|
-
var localVarAxiosArgs;
|
|
516
|
-
return __generator(this, function (_a) {
|
|
517
|
-
switch (_a.label) {
|
|
518
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options)];
|
|
519
|
-
case 1:
|
|
520
|
-
localVarAxiosArgs = _a.sent();
|
|
521
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
522
|
-
}
|
|
523
|
-
});
|
|
524
|
-
});
|
|
525
|
-
},
|
|
526
|
-
/**
|
|
527
|
-
* 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.
|
|
528
|
-
* @summary List products
|
|
529
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
530
|
-
* @param {number} [pageSize] Page size.
|
|
531
|
-
* @param {string} [pageToken] Page token.
|
|
532
|
-
* @param {string} [filter] List filter
|
|
533
|
-
* @param {string} [search] Search query.
|
|
534
|
-
* @param {string} [order] Ordering criteria.
|
|
535
|
-
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
536
|
-
* @param {*} [options] Override http request option.
|
|
537
|
-
* @throws {RequiredError}
|
|
538
|
-
*/
|
|
539
|
-
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
540
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
541
|
-
var localVarAxiosArgs;
|
|
542
|
-
return __generator(this, function (_a) {
|
|
543
|
-
switch (_a.label) {
|
|
544
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
545
|
-
case 1:
|
|
546
|
-
localVarAxiosArgs = _a.sent();
|
|
547
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
});
|
|
551
|
-
},
|
|
552
|
-
/**
|
|
553
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
554
|
-
* @summary Update the product
|
|
555
|
-
* @param {number} id
|
|
556
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
557
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
558
|
-
* @param {*} [options] Override http request option.
|
|
559
|
-
* @throws {RequiredError}
|
|
560
|
-
*/
|
|
561
|
-
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
562
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
563
|
-
var localVarAxiosArgs;
|
|
564
|
-
return __generator(this, function (_a) {
|
|
565
|
-
switch (_a.label) {
|
|
566
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options)];
|
|
567
|
-
case 1:
|
|
568
|
-
localVarAxiosArgs = _a.sent();
|
|
569
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
});
|
|
573
|
-
},
|
|
574
|
-
};
|
|
575
|
-
};
|
|
576
|
-
exports.ProductsApiFp = ProductsApiFp;
|
|
577
|
-
/**
|
|
578
|
-
* ProductsApi - factory interface
|
|
579
|
-
* @export
|
|
580
|
-
*/
|
|
581
|
-
var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
582
|
-
var localVarFp = (0, exports.ProductsApiFp)(configuration);
|
|
583
|
-
return {
|
|
584
|
-
/**
|
|
585
|
-
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
586
|
-
* @summary Create the product
|
|
587
|
-
* @param {CreateProductRequestDto} createProductRequestDto
|
|
588
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
589
|
-
* @param {*} [options] Override http request option.
|
|
590
|
-
* @throws {RequiredError}
|
|
591
|
-
*/
|
|
592
|
-
createProduct: function (createProductRequestDto, authorization, options) {
|
|
593
|
-
return localVarFp.createProduct(createProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
594
|
-
},
|
|
595
|
-
/**
|
|
596
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
597
|
-
* @summary Delete the product
|
|
598
|
-
* @param {number} id
|
|
599
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
600
|
-
* @param {*} [options] Override http request option.
|
|
601
|
-
* @throws {RequiredError}
|
|
602
|
-
*/
|
|
603
|
-
deleteProduct: function (id, authorization, options) {
|
|
604
|
-
return localVarFp.deleteProduct(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
605
|
-
},
|
|
606
|
-
/**
|
|
607
|
-
* 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.
|
|
608
|
-
* @summary Retrieve the product
|
|
609
|
-
* @param {string} code Unique identifier for the object.
|
|
610
|
-
* @param {number} id Unique identifier referencing the product.
|
|
611
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
612
|
-
* @param {string} [expand] Fields to expand response by
|
|
613
|
-
* @param {*} [options] Override http request option.
|
|
614
|
-
* @throws {RequiredError}
|
|
615
|
-
*/
|
|
616
|
-
getProductByCode: function (code, id, authorization, expand, options) {
|
|
617
|
-
return localVarFp.getProductByCode(code, id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
618
|
-
},
|
|
619
|
-
/**
|
|
620
|
-
* 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.
|
|
621
|
-
* @summary Retrieve the product
|
|
622
|
-
* @param {number} id Unique identifier referencing the product.
|
|
623
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
624
|
-
* @param {string} [expand] Fields to expand response by
|
|
625
|
-
* @param {*} [options] Override http request option.
|
|
626
|
-
* @throws {RequiredError}
|
|
627
|
-
*/
|
|
628
|
-
getProductByIdentifier: function (id, authorization, expand, options) {
|
|
629
|
-
return localVarFp.getProductByIdentifier(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
630
|
-
},
|
|
631
|
-
/**
|
|
632
|
-
* 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.
|
|
633
|
-
* @summary List products
|
|
634
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
635
|
-
* @param {number} [pageSize] Page size.
|
|
636
|
-
* @param {string} [pageToken] Page token.
|
|
637
|
-
* @param {string} [filter] List filter
|
|
638
|
-
* @param {string} [search] Search query.
|
|
639
|
-
* @param {string} [order] Ordering criteria.
|
|
640
|
-
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
641
|
-
* @param {*} [options] Override http request option.
|
|
642
|
-
* @throws {RequiredError}
|
|
643
|
-
*/
|
|
644
|
-
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
645
|
-
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
646
|
-
},
|
|
647
|
-
/**
|
|
648
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
649
|
-
* @summary Update the product
|
|
650
|
-
* @param {number} id
|
|
651
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
652
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
653
|
-
* @param {*} [options] Override http request option.
|
|
654
|
-
* @throws {RequiredError}
|
|
655
|
-
*/
|
|
656
|
-
updateProduct: function (id, updateProductRequestDto, authorization, options) {
|
|
657
|
-
return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
658
|
-
},
|
|
659
|
-
};
|
|
660
|
-
};
|
|
661
|
-
exports.ProductsApiFactory = ProductsApiFactory;
|
|
662
|
-
/**
|
|
663
|
-
* ProductsApi - object-oriented interface
|
|
664
|
-
* @export
|
|
665
|
-
* @class ProductsApi
|
|
666
|
-
* @extends {BaseAPI}
|
|
667
|
-
*/
|
|
668
|
-
var ProductsApi = /** @class */ (function (_super) {
|
|
669
|
-
__extends(ProductsApi, _super);
|
|
670
|
-
function ProductsApi() {
|
|
671
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
672
|
-
}
|
|
673
|
-
/**
|
|
674
|
-
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
675
|
-
* @summary Create the product
|
|
676
|
-
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
677
|
-
* @param {*} [options] Override http request option.
|
|
678
|
-
* @throws {RequiredError}
|
|
679
|
-
* @memberof ProductsApi
|
|
680
|
-
*/
|
|
681
|
-
ProductsApi.prototype.createProduct = function (requestParameters, options) {
|
|
682
|
-
var _this = this;
|
|
683
|
-
return (0, exports.ProductsApiFp)(this.configuration).createProduct(requestParameters.createProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
684
|
-
};
|
|
685
|
-
/**
|
|
686
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
687
|
-
* @summary Delete the product
|
|
688
|
-
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
689
|
-
* @param {*} [options] Override http request option.
|
|
690
|
-
* @throws {RequiredError}
|
|
691
|
-
* @memberof ProductsApi
|
|
692
|
-
*/
|
|
693
|
-
ProductsApi.prototype.deleteProduct = function (requestParameters, options) {
|
|
694
|
-
var _this = this;
|
|
695
|
-
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
696
|
-
};
|
|
697
|
-
/**
|
|
698
|
-
* 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.
|
|
699
|
-
* @summary Retrieve the product
|
|
700
|
-
* @param {ProductsApiGetProductByCodeRequest} requestParameters Request parameters.
|
|
701
|
-
* @param {*} [options] Override http request option.
|
|
702
|
-
* @throws {RequiredError}
|
|
703
|
-
* @memberof ProductsApi
|
|
704
|
-
*/
|
|
705
|
-
ProductsApi.prototype.getProductByCode = function (requestParameters, options) {
|
|
706
|
-
var _this = this;
|
|
707
|
-
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); });
|
|
708
|
-
};
|
|
709
|
-
/**
|
|
710
|
-
* 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.
|
|
711
|
-
* @summary Retrieve the product
|
|
712
|
-
* @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
|
|
713
|
-
* @param {*} [options] Override http request option.
|
|
714
|
-
* @throws {RequiredError}
|
|
715
|
-
* @memberof ProductsApi
|
|
716
|
-
*/
|
|
717
|
-
ProductsApi.prototype.getProductByIdentifier = function (requestParameters, options) {
|
|
718
|
-
var _this = this;
|
|
719
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
720
|
-
};
|
|
721
|
-
/**
|
|
722
|
-
* 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.
|
|
723
|
-
* @summary List products
|
|
724
|
-
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
725
|
-
* @param {*} [options] Override http request option.
|
|
726
|
-
* @throws {RequiredError}
|
|
727
|
-
* @memberof ProductsApi
|
|
728
|
-
*/
|
|
729
|
-
ProductsApi.prototype.listProducts = function (requestParameters, options) {
|
|
730
|
-
var _this = this;
|
|
731
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
732
|
-
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); });
|
|
733
|
-
};
|
|
734
|
-
/**
|
|
735
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
736
|
-
* @summary Update the product
|
|
737
|
-
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
738
|
-
* @param {*} [options] Override http request option.
|
|
739
|
-
* @throws {RequiredError}
|
|
740
|
-
* @memberof ProductsApi
|
|
741
|
-
*/
|
|
742
|
-
ProductsApi.prototype.updateProduct = function (requestParameters, options) {
|
|
743
|
-
var _this = this;
|
|
744
|
-
return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.id, requestParameters.updateProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
745
|
-
};
|
|
746
|
-
return ProductsApi;
|
|
747
|
-
}(base_1.BaseAPI));
|
|
748
|
-
exports.ProductsApi = ProductsApi;
|