@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
package/api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL InsuranceService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -28,6 +28,10 @@ import { InsuredObjectTypesApi } from './api';
|
|
|
28
28
|
import { InsuredObjectsApi } from './api';
|
|
29
29
|
import { LeadsApi } from './api';
|
|
30
30
|
import { PoliciesApi } from './api';
|
|
31
|
+
import { PremiumFormulasApi } from './api';
|
|
32
|
+
import { ProductFactorsApi } from './api';
|
|
33
|
+
import { ProductFieldsApi } from './api';
|
|
34
|
+
import { ProductVersionsApi } from './api';
|
|
31
35
|
import { ProductsApi } from './api';
|
|
32
36
|
|
|
33
37
|
|
|
@@ -35,6 +39,10 @@ export * from './api/insured-object-types-api';
|
|
|
35
39
|
export * from './api/insured-objects-api';
|
|
36
40
|
export * from './api/leads-api';
|
|
37
41
|
export * from './api/policies-api';
|
|
42
|
+
export * from './api/premium-formulas-api';
|
|
43
|
+
export * from './api/product-factors-api';
|
|
44
|
+
export * from './api/product-fields-api';
|
|
45
|
+
export * from './api/product-versions-api';
|
|
38
46
|
export * from './api/products-api';
|
|
39
47
|
|
|
40
48
|
|
package/base.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL InsuranceService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
|
@@ -42,7 +42,6 @@ export const COLLECTION_FORMATS = {
|
|
|
42
42
|
export interface LoginClass {
|
|
43
43
|
accessToken: string;
|
|
44
44
|
permissions: Array<string>;
|
|
45
|
-
newPasswordRequired: boolean;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
export enum Environment {
|
|
@@ -50,6 +49,13 @@ export enum Environment {
|
|
|
50
49
|
Test = 'https://apiv2-test.emil.de',
|
|
51
50
|
}
|
|
52
51
|
|
|
52
|
+
let _retry_count = 0
|
|
53
|
+
let _retry = null
|
|
54
|
+
|
|
55
|
+
export function resetRetry() {
|
|
56
|
+
_retry_count = 0
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @export
|
|
@@ -60,6 +66,8 @@ export interface RequestArgs {
|
|
|
60
66
|
options: AxiosRequestConfig;
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
const NETWORK_ERROR_MESSAGE = "Network Error";
|
|
70
|
+
|
|
63
71
|
/**
|
|
64
72
|
*
|
|
65
73
|
* @export
|
|
@@ -154,15 +162,16 @@ export class BaseAPI {
|
|
|
154
162
|
const response = await globalAxios.request<LoginClass>(options);
|
|
155
163
|
|
|
156
164
|
const { data: { accessToken } } = response;
|
|
157
|
-
const refreshToken = this.extractRefreshToken(response)
|
|
158
|
-
|
|
159
165
|
this.configuration.username = username;
|
|
160
166
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
167
|
+
|
|
168
|
+
const refreshToken = this.extractRefreshToken(response)
|
|
161
169
|
this.configuration.refreshToken = refreshToken;
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
async refreshToken(): Promise<string> {
|
|
165
173
|
const { username, refreshToken } = this.configuration;
|
|
174
|
+
|
|
166
175
|
|
|
167
176
|
if (!username || !refreshToken) {
|
|
168
177
|
return '';
|
|
@@ -204,7 +213,7 @@ export class BaseAPI {
|
|
|
204
213
|
return res;
|
|
205
214
|
},
|
|
206
215
|
async (err) => {
|
|
207
|
-
|
|
216
|
+
let originalConfig = err.config;
|
|
208
217
|
if (err.response) {
|
|
209
218
|
// Access Token was expired
|
|
210
219
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
@@ -213,17 +222,11 @@ export class BaseAPI {
|
|
|
213
222
|
const tokenString = await this.refreshToken();
|
|
214
223
|
const accessToken = `Bearer ${tokenString}`;
|
|
215
224
|
|
|
216
|
-
|
|
217
|
-
localVarHeaderParameter['Authorization'] = accessToken;
|
|
218
|
-
|
|
219
|
-
originalConfig.headers = {
|
|
220
|
-
...originalConfig.headers,
|
|
221
|
-
...localVarHeaderParameter,
|
|
222
|
-
};
|
|
225
|
+
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
223
226
|
|
|
224
227
|
this.configuration.accessToken = accessToken;
|
|
225
228
|
|
|
226
|
-
return axios(originalConfig);
|
|
229
|
+
return axios.request(originalConfig);
|
|
227
230
|
} catch (_error) {
|
|
228
231
|
if (_error.response && _error.response.data) {
|
|
229
232
|
return Promise.reject(_error.response.data);
|
|
@@ -234,6 +237,30 @@ export class BaseAPI {
|
|
|
234
237
|
if (err.response.status === 403 && err.response.data) {
|
|
235
238
|
return Promise.reject(err.response.data);
|
|
236
239
|
}
|
|
240
|
+
} else if(err.message === NETWORK_ERROR_MESSAGE
|
|
241
|
+
&& err.isAxiosError
|
|
242
|
+
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
243
|
+
&& _retry_count < 4
|
|
244
|
+
){
|
|
245
|
+
_retry_count++;
|
|
246
|
+
try {
|
|
247
|
+
const tokenString = await this.refreshToken();
|
|
248
|
+
const accessToken = `Bearer ${tokenString}`;
|
|
249
|
+
|
|
250
|
+
_retry = true;
|
|
251
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
252
|
+
|
|
253
|
+
this.configuration.accessToken = accessToken;
|
|
254
|
+
|
|
255
|
+
return axios.request({
|
|
256
|
+
...originalConfig,
|
|
257
|
+
});
|
|
258
|
+
} catch (_error) {
|
|
259
|
+
if (_error.response && _error.response.data) {
|
|
260
|
+
return Promise.reject(_error.response.data);
|
|
261
|
+
}
|
|
262
|
+
return Promise.reject(_error);
|
|
263
|
+
}
|
|
237
264
|
}
|
|
238
265
|
return Promise.reject(err);
|
|
239
266
|
}
|
|
@@ -253,3 +280,4 @@ export class RequiredError extends Error {
|
|
|
253
280
|
super(msg);
|
|
254
281
|
}
|
|
255
282
|
}
|
|
283
|
+
|
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL InsuranceService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -136,3 +136,64 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
136
136
|
return axios.request<T, R>(axiosRequestArgs);
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
/* tslint:disable */
|
|
141
|
+
/* eslint-disable */
|
|
142
|
+
/**
|
|
143
|
+
* EMIL InsuranceService
|
|
144
|
+
* The EMIL InsuranceService API description
|
|
145
|
+
*
|
|
146
|
+
* The version of the OpenAPI document: 1.0
|
|
147
|
+
* Contact: kontakt@emil.de
|
|
148
|
+
*
|
|
149
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
150
|
+
* https://openapi-generator.tech
|
|
151
|
+
* Do not edit the class manually.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
export interface IStorageConverter<D, SD> {
|
|
156
|
+
toStorageData( data: D ): SD;
|
|
157
|
+
fromStorageData( storageData: SD ): D;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface IStorage {
|
|
161
|
+
get<T>( key: string, converter?: IStorageConverter<T, any> ): T | null;
|
|
162
|
+
set<T>( key: string, value: T, converter?: IStorageConverter<T, any> ): void;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class LocalStorage implements IStorage {
|
|
166
|
+
readonly storage: Storage;
|
|
167
|
+
|
|
168
|
+
constructor() {
|
|
169
|
+
this.storage = localStorage;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
get<T>( key: string, converter?: IStorageConverter<T, any> ): T | null {
|
|
173
|
+
const jsonValue = this.storage.getItem( key );
|
|
174
|
+
if ( jsonValue === null ) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
const value = JSON.parse( jsonValue );
|
|
178
|
+
if ( converter !== undefined ) {
|
|
179
|
+
return converter.fromStorageData( value );
|
|
180
|
+
} else {
|
|
181
|
+
return value as T;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
set<T>( key: string, value: T, converter?: IStorageConverter<T, any> ): void {
|
|
186
|
+
let valueToStore: any = value;
|
|
187
|
+
if ( converter !== undefined ) {
|
|
188
|
+
valueToStore = converter.toStorageData( value );
|
|
189
|
+
}
|
|
190
|
+
const jsonValue = JSON.stringify( valueToStore );
|
|
191
|
+
this.storage.setItem( key, jsonValue );
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
let _defaultStorage: IStorage = null;
|
|
196
|
+
|
|
197
|
+
export const defaultStorage = (): IStorage => {
|
|
198
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
199
|
+
};
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL InsuranceService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -19,15 +19,15 @@ import { ListInsuredObjectTypesResponseClass } from '../models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const InsuredObjectTypesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
|
-
* Returns a list of insured
|
|
23
|
-
* @summary List insured
|
|
22
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
23
|
+
* @summary List insured object types
|
|
24
24
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
|
-
* @param {number} [pageSize] Page size
|
|
26
|
-
* @param {string} [pageToken] Page token
|
|
25
|
+
* @param {number} [pageSize] Page size.
|
|
26
|
+
* @param {string} [pageToken] Page token.
|
|
27
27
|
* @param {string} [filter] List filter
|
|
28
|
-
* @param {string} [search] Search query
|
|
29
|
-
* @param {string} [order] Ordering criteria
|
|
30
|
-
* @param {string} [expand] Extra fields to fetch
|
|
28
|
+
* @param {string} [search] Search query.
|
|
29
|
+
* @param {string} [order] Ordering criteria.
|
|
30
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
@@ -39,15 +39,15 @@ export declare const InsuredObjectTypesApiAxiosParamCreator: (configuration?: Co
|
|
|
39
39
|
*/
|
|
40
40
|
export declare const InsuredObjectTypesApiFp: (configuration?: Configuration) => {
|
|
41
41
|
/**
|
|
42
|
-
* Returns a list of insured
|
|
43
|
-
* @summary List insured
|
|
42
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
43
|
+
* @summary List insured object types
|
|
44
44
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
|
-
* @param {number} [pageSize] Page size
|
|
46
|
-
* @param {string} [pageToken] Page token
|
|
45
|
+
* @param {number} [pageSize] Page size.
|
|
46
|
+
* @param {string} [pageToken] Page token.
|
|
47
47
|
* @param {string} [filter] List filter
|
|
48
|
-
* @param {string} [search] Search query
|
|
49
|
-
* @param {string} [order] Ordering criteria
|
|
50
|
-
* @param {string} [expand] Extra fields to fetch
|
|
48
|
+
* @param {string} [search] Search query.
|
|
49
|
+
* @param {string} [order] Ordering criteria.
|
|
50
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
*/
|
|
@@ -59,15 +59,15 @@ export declare const InsuredObjectTypesApiFp: (configuration?: Configuration) =>
|
|
|
59
59
|
*/
|
|
60
60
|
export declare const InsuredObjectTypesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
61
61
|
/**
|
|
62
|
-
* Returns a list of insured
|
|
63
|
-
* @summary List insured
|
|
62
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
63
|
+
* @summary List insured object types
|
|
64
64
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
-
* @param {number} [pageSize] Page size
|
|
66
|
-
* @param {string} [pageToken] Page token
|
|
65
|
+
* @param {number} [pageSize] Page size.
|
|
66
|
+
* @param {string} [pageToken] Page token.
|
|
67
67
|
* @param {string} [filter] List filter
|
|
68
|
-
* @param {string} [search] Search query
|
|
69
|
-
* @param {string} [order] Ordering criteria
|
|
70
|
-
* @param {string} [expand] Extra fields to fetch
|
|
68
|
+
* @param {string} [search] Search query.
|
|
69
|
+
* @param {string} [order] Ordering criteria.
|
|
70
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
*/
|
|
@@ -86,13 +86,13 @@ export interface InsuredObjectTypesApiListInsuredObjectTypesRequest {
|
|
|
86
86
|
*/
|
|
87
87
|
readonly authorization?: string;
|
|
88
88
|
/**
|
|
89
|
-
* Page size
|
|
89
|
+
* Page size.
|
|
90
90
|
* @type {number}
|
|
91
91
|
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
92
92
|
*/
|
|
93
93
|
readonly pageSize?: number;
|
|
94
94
|
/**
|
|
95
|
-
* Page token
|
|
95
|
+
* Page token.
|
|
96
96
|
* @type {string}
|
|
97
97
|
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
98
98
|
*/
|
|
@@ -104,19 +104,19 @@ export interface InsuredObjectTypesApiListInsuredObjectTypesRequest {
|
|
|
104
104
|
*/
|
|
105
105
|
readonly filter?: string;
|
|
106
106
|
/**
|
|
107
|
-
* Search query
|
|
107
|
+
* Search query.
|
|
108
108
|
* @type {string}
|
|
109
109
|
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
110
110
|
*/
|
|
111
111
|
readonly search?: string;
|
|
112
112
|
/**
|
|
113
|
-
* Ordering criteria
|
|
113
|
+
* Ordering criteria.
|
|
114
114
|
* @type {string}
|
|
115
115
|
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
116
116
|
*/
|
|
117
117
|
readonly order?: string;
|
|
118
118
|
/**
|
|
119
|
-
* Extra fields to fetch
|
|
119
|
+
* Extra fields to fetch.
|
|
120
120
|
* @type {string}
|
|
121
121
|
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
122
122
|
*/
|
|
@@ -130,8 +130,8 @@ export interface InsuredObjectTypesApiListInsuredObjectTypesRequest {
|
|
|
130
130
|
*/
|
|
131
131
|
export declare class InsuredObjectTypesApi extends BaseAPI {
|
|
132
132
|
/**
|
|
133
|
-
* Returns a list of insured
|
|
134
|
-
* @summary List insured
|
|
133
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
134
|
+
* @summary List insured object types
|
|
135
135
|
* @param {InsuredObjectTypesApiListInsuredObjectTypesRequest} requestParameters Request parameters.
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL InsuranceService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -97,15 +97,15 @@ var InsuredObjectTypesApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* Returns a list of insured
|
|
101
|
-
* @summary List insured
|
|
100
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
101
|
+
* @summary List insured object types
|
|
102
102
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
-
* @param {number} [pageSize] Page size
|
|
104
|
-
* @param {string} [pageToken] Page token
|
|
103
|
+
* @param {number} [pageSize] Page size.
|
|
104
|
+
* @param {string} [pageToken] Page token.
|
|
105
105
|
* @param {string} [filter] List filter
|
|
106
|
-
* @param {string} [search] Search query
|
|
107
|
-
* @param {string} [order] Ordering criteria
|
|
108
|
-
* @param {string} [expand] Extra fields to fetch
|
|
106
|
+
* @param {string} [search] Search query.
|
|
107
|
+
* @param {string} [order] Ordering criteria.
|
|
108
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
@@ -175,15 +175,15 @@ var InsuredObjectTypesApiFp = function (configuration) {
|
|
|
175
175
|
var localVarAxiosParamCreator = (0, exports.InsuredObjectTypesApiAxiosParamCreator)(configuration);
|
|
176
176
|
return {
|
|
177
177
|
/**
|
|
178
|
-
* Returns a list of insured
|
|
179
|
-
* @summary List insured
|
|
178
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
179
|
+
* @summary List insured object types
|
|
180
180
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
181
|
-
* @param {number} [pageSize] Page size
|
|
182
|
-
* @param {string} [pageToken] Page token
|
|
181
|
+
* @param {number} [pageSize] Page size.
|
|
182
|
+
* @param {string} [pageToken] Page token.
|
|
183
183
|
* @param {string} [filter] List filter
|
|
184
|
-
* @param {string} [search] Search query
|
|
185
|
-
* @param {string} [order] Ordering criteria
|
|
186
|
-
* @param {string} [expand] Extra fields to fetch
|
|
184
|
+
* @param {string} [search] Search query.
|
|
185
|
+
* @param {string} [order] Ordering criteria.
|
|
186
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
@@ -211,15 +211,15 @@ var InsuredObjectTypesApiFactory = function (configuration, basePath, axios) {
|
|
|
211
211
|
var localVarFp = (0, exports.InsuredObjectTypesApiFp)(configuration);
|
|
212
212
|
return {
|
|
213
213
|
/**
|
|
214
|
-
* Returns a list of insured
|
|
215
|
-
* @summary List insured
|
|
214
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
215
|
+
* @summary List insured object types
|
|
216
216
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
217
|
-
* @param {number} [pageSize] Page size
|
|
218
|
-
* @param {string} [pageToken] Page token
|
|
217
|
+
* @param {number} [pageSize] Page size.
|
|
218
|
+
* @param {string} [pageToken] Page token.
|
|
219
219
|
* @param {string} [filter] List filter
|
|
220
|
-
* @param {string} [search] Search query
|
|
221
|
-
* @param {string} [order] Ordering criteria
|
|
222
|
-
* @param {string} [expand] Extra fields to fetch
|
|
220
|
+
* @param {string} [search] Search query.
|
|
221
|
+
* @param {string} [order] Ordering criteria.
|
|
222
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
223
223
|
* @param {*} [options] Override http request option.
|
|
224
224
|
* @throws {RequiredError}
|
|
225
225
|
*/
|
|
@@ -241,8 +241,8 @@ var InsuredObjectTypesApi = /** @class */ (function (_super) {
|
|
|
241
241
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
* Returns a list of insured
|
|
245
|
-
* @summary List insured
|
|
244
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
245
|
+
* @summary List insured object types
|
|
246
246
|
* @param {InsuredObjectTypesApiListInsuredObjectTypesRequest} requestParameters Request parameters.
|
|
247
247
|
* @param {*} [options] Override http request option.
|
|
248
248
|
* @throws {RequiredError}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL InsuranceService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -33,22 +33,23 @@ export declare const InsuredObjectsApiAxiosParamCreator: (configuration?: Config
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
35
35
|
* @summary Retrieve the insured object
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {number} id
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {string} [expand] Fields to expand response by.
|
|
38
39
|
* @param {*} [options] Override http request option.
|
|
39
40
|
* @throws {RequiredError}
|
|
40
41
|
*/
|
|
41
|
-
getInsuredObject: (id:
|
|
42
|
+
getInsuredObject: (id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
43
|
/**
|
|
43
44
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
44
45
|
* @summary List insured objects
|
|
45
46
|
* @param {string} [authorization] Bearer Token
|
|
46
|
-
* @param {number} [pageSize] Page size
|
|
47
|
-
* @param {string} [pageToken] Page token
|
|
47
|
+
* @param {number} [pageSize] Page size.
|
|
48
|
+
* @param {string} [pageToken] Page token.
|
|
48
49
|
* @param {string} [filter] List filter
|
|
49
|
-
* @param {string} [search] Search query
|
|
50
|
-
* @param {string} [order] Ordering criteria
|
|
51
|
-
* @param {string} [expand] Extra fields to fetch
|
|
50
|
+
* @param {string} [search] Search query.
|
|
51
|
+
* @param {string} [order] Ordering criteria.
|
|
52
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
52
53
|
* @param {*} [options] Override http request option.
|
|
53
54
|
* @throws {RequiredError}
|
|
54
55
|
*/
|
|
@@ -71,22 +72,23 @@ export declare const InsuredObjectsApiFp: (configuration?: Configuration) => {
|
|
|
71
72
|
/**
|
|
72
73
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
73
74
|
* @summary Retrieve the insured object
|
|
74
|
-
* @param {
|
|
75
|
+
* @param {number} id
|
|
75
76
|
* @param {string} [authorization] Bearer Token
|
|
77
|
+
* @param {string} [expand] Fields to expand response by.
|
|
76
78
|
* @param {*} [options] Override http request option.
|
|
77
79
|
* @throws {RequiredError}
|
|
78
80
|
*/
|
|
79
|
-
getInsuredObject(id:
|
|
81
|
+
getInsuredObject(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInsuredObjectResponseClass>>;
|
|
80
82
|
/**
|
|
81
83
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
82
84
|
* @summary List insured objects
|
|
83
85
|
* @param {string} [authorization] Bearer Token
|
|
84
|
-
* @param {number} [pageSize] Page size
|
|
85
|
-
* @param {string} [pageToken] Page token
|
|
86
|
+
* @param {number} [pageSize] Page size.
|
|
87
|
+
* @param {string} [pageToken] Page token.
|
|
86
88
|
* @param {string} [filter] List filter
|
|
87
|
-
* @param {string} [search] Search query
|
|
88
|
-
* @param {string} [order] Ordering criteria
|
|
89
|
-
* @param {string} [expand] Extra fields to fetch
|
|
89
|
+
* @param {string} [search] Search query.
|
|
90
|
+
* @param {string} [order] Ordering criteria.
|
|
91
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
90
92
|
* @param {*} [options] Override http request option.
|
|
91
93
|
* @throws {RequiredError}
|
|
92
94
|
*/
|
|
@@ -109,22 +111,23 @@ export declare const InsuredObjectsApiFactory: (configuration?: Configuration, b
|
|
|
109
111
|
/**
|
|
110
112
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
111
113
|
* @summary Retrieve the insured object
|
|
112
|
-
* @param {
|
|
114
|
+
* @param {number} id
|
|
113
115
|
* @param {string} [authorization] Bearer Token
|
|
116
|
+
* @param {string} [expand] Fields to expand response by.
|
|
114
117
|
* @param {*} [options] Override http request option.
|
|
115
118
|
* @throws {RequiredError}
|
|
116
119
|
*/
|
|
117
|
-
getInsuredObject(id:
|
|
120
|
+
getInsuredObject(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetInsuredObjectResponseClass>;
|
|
118
121
|
/**
|
|
119
122
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
120
123
|
* @summary List insured objects
|
|
121
124
|
* @param {string} [authorization] Bearer Token
|
|
122
|
-
* @param {number} [pageSize] Page size
|
|
123
|
-
* @param {string} [pageToken] Page token
|
|
125
|
+
* @param {number} [pageSize] Page size.
|
|
126
|
+
* @param {string} [pageToken] Page token.
|
|
124
127
|
* @param {string} [filter] List filter
|
|
125
|
-
* @param {string} [search] Search query
|
|
126
|
-
* @param {string} [order] Ordering criteria
|
|
127
|
-
* @param {string} [expand] Extra fields to fetch
|
|
128
|
+
* @param {string} [search] Search query.
|
|
129
|
+
* @param {string} [order] Ordering criteria.
|
|
130
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
128
131
|
* @param {*} [options] Override http request option.
|
|
129
132
|
* @throws {RequiredError}
|
|
130
133
|
*/
|
|
@@ -157,16 +160,22 @@ export interface InsuredObjectsApiCreateInsuredObjectRequest {
|
|
|
157
160
|
export interface InsuredObjectsApiGetInsuredObjectRequest {
|
|
158
161
|
/**
|
|
159
162
|
*
|
|
160
|
-
* @type {
|
|
163
|
+
* @type {number}
|
|
161
164
|
* @memberof InsuredObjectsApiGetInsuredObject
|
|
162
165
|
*/
|
|
163
|
-
readonly id:
|
|
166
|
+
readonly id: number;
|
|
164
167
|
/**
|
|
165
168
|
* Bearer Token
|
|
166
169
|
* @type {string}
|
|
167
170
|
* @memberof InsuredObjectsApiGetInsuredObject
|
|
168
171
|
*/
|
|
169
172
|
readonly authorization?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Fields to expand response by.
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof InsuredObjectsApiGetInsuredObject
|
|
177
|
+
*/
|
|
178
|
+
readonly expand?: string;
|
|
170
179
|
}
|
|
171
180
|
/**
|
|
172
181
|
* Request parameters for listInsuredObjects operation in InsuredObjectsApi.
|
|
@@ -181,13 +190,13 @@ export interface InsuredObjectsApiListInsuredObjectsRequest {
|
|
|
181
190
|
*/
|
|
182
191
|
readonly authorization?: string;
|
|
183
192
|
/**
|
|
184
|
-
* Page size
|
|
193
|
+
* Page size.
|
|
185
194
|
* @type {number}
|
|
186
195
|
* @memberof InsuredObjectsApiListInsuredObjects
|
|
187
196
|
*/
|
|
188
197
|
readonly pageSize?: number;
|
|
189
198
|
/**
|
|
190
|
-
* Page token
|
|
199
|
+
* Page token.
|
|
191
200
|
* @type {string}
|
|
192
201
|
* @memberof InsuredObjectsApiListInsuredObjects
|
|
193
202
|
*/
|
|
@@ -199,19 +208,19 @@ export interface InsuredObjectsApiListInsuredObjectsRequest {
|
|
|
199
208
|
*/
|
|
200
209
|
readonly filter?: string;
|
|
201
210
|
/**
|
|
202
|
-
* Search query
|
|
211
|
+
* Search query.
|
|
203
212
|
* @type {string}
|
|
204
213
|
* @memberof InsuredObjectsApiListInsuredObjects
|
|
205
214
|
*/
|
|
206
215
|
readonly search?: string;
|
|
207
216
|
/**
|
|
208
|
-
* Ordering criteria
|
|
217
|
+
* Ordering criteria.
|
|
209
218
|
* @type {string}
|
|
210
219
|
* @memberof InsuredObjectsApiListInsuredObjects
|
|
211
220
|
*/
|
|
212
221
|
readonly order?: string;
|
|
213
222
|
/**
|
|
214
|
-
* Extra fields to fetch
|
|
223
|
+
* Extra fields to fetch.
|
|
215
224
|
* @type {string}
|
|
216
225
|
* @memberof InsuredObjectsApiListInsuredObjects
|
|
217
226
|
*/
|