@emilgroup/insurance-sdk-node 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +18 -5
- package/README.md +2 -2
- package/api/insured-object-types-api.ts +29 -29
- package/api/insured-objects-api.ts +44 -33
- package/api/leads-api.ts +187 -7
- package/api/policies-api.ts +276 -41
- package/api/premium-formulas-api.ts +669 -0
- package/api/product-factors-api.ts +889 -0
- package/api/product-fields-api.ts +843 -0
- package/api/product-versions-api.ts +301 -0
- package/api/products-api.ts +201 -2665
- package/api.ts +9 -1
- package/base.ts +23 -33
- package/common.ts +62 -1
- package/configuration.ts +1 -1
- package/dist/api/insured-object-types-api.d.ts +29 -29
- package/dist/api/insured-object-types-api.js +25 -25
- package/dist/api/insured-objects-api.d.ts +38 -29
- package/dist/api/insured-objects-api.js +31 -27
- package/dist/api/leads-api.d.ts +114 -10
- package/dist/api/leads-api.js +125 -2
- package/dist/api/policies-api.d.ts +171 -41
- package/dist/api/policies-api.js +231 -34
- package/dist/api/premium-formulas-api.d.ts +376 -0
- package/dist/api/premium-formulas-api.js +634 -0
- package/dist/api/product-factors-api.d.ts +493 -0
- package/dist/api/product-factors-api.js +788 -0
- package/dist/api/product-fields-api.d.ts +477 -0
- package/dist/api/product-fields-api.js +757 -0
- package/dist/api/product-versions-api.d.ts +171 -0
- package/dist/api/product-versions-api.js +334 -0
- package/dist/api/products-api.d.ts +25 -1388
- package/dist/api/products-api.js +137 -2118
- package/dist/api.d.ts +5 -1
- package/dist/api.js +5 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -22
- package/dist/common.d.ts +27 -1
- package/dist/common.js +36 -3
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/calculate-custom-premium-request-dto.d.ts +4 -4
- package/dist/models/calculate-custom-premium-request-dto.js +1 -1
- package/dist/models/calculate-premium-request-dto.d.ts +9 -9
- package/dist/models/calculate-premium-request-dto.js +1 -1
- package/dist/models/create-account-request-dto.d.ts +26 -13
- package/dist/models/create-account-request-dto.js +8 -1
- package/dist/models/create-bank-account-request-dto.d.ts +3 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-custom-application-request-dto.d.ts +5 -5
- package/dist/models/create-custom-application-request-dto.js +1 -1
- package/dist/models/create-dummy-policy-request-dto.d.ts +4 -4
- package/dist/models/create-dummy-policy-request-dto.js +1 -1
- package/dist/models/create-insured-object-request-dto.d.ts +5 -5
- package/dist/models/create-insured-object-request-dto.js +1 -1
- package/dist/models/create-insured-object-response-class.d.ts +5 -5
- package/dist/models/create-insured-object-response-class.js +1 -1
- package/dist/models/create-lead-request-dto.d.ts +23 -23
- package/dist/models/create-lead-request-dto.js +1 -1
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/{grpc-policy-object-dto.js → create-lead-response-class.js} +1 -1
- package/dist/models/create-policy-request-dto.d.ts +19 -7
- package/dist/models/create-policy-request-dto.js +1 -1
- package/dist/models/create-policy-response-class.d.ts +1 -1
- package/dist/models/create-policy-response-class.js +1 -1
- package/dist/models/create-premium-formula-request-dto.d.ts +10 -9
- package/dist/models/create-premium-formula-request-dto.js +3 -2
- package/dist/models/create-premium-formula-response-class.d.ts +2 -2
- package/dist/models/create-premium-formula-response-class.js +1 -1
- package/dist/models/create-product-field-request-dto.d.ts +2 -2
- package/dist/models/create-product-field-request-dto.js +1 -1
- package/dist/models/create-product-field-response-class.d.ts +2 -2
- package/dist/models/create-product-field-response-class.js +1 -1
- package/dist/models/create-product-request-dto.d.ts +6 -6
- package/dist/models/create-product-request-dto.js +1 -1
- package/dist/models/create-product-response-class.d.ts +1 -1
- package/dist/models/create-product-response-class.js +1 -1
- package/dist/models/csv-product-factor-dto.d.ts +6 -6
- package/dist/models/csv-product-factor-dto.js +1 -1
- package/dist/models/delete-request-dto.d.ts +2 -2
- package/dist/models/delete-request-dto.js +1 -1
- package/dist/models/{get-insured-object-request-dto.d.ts → delete-response-class.d.ts} +7 -7
- package/dist/models/{to-grpc-create-policy-request-dto.js → delete-response-class.js} +1 -1
- package/dist/models/get-insured-object-response-class.d.ts +2 -2
- package/dist/models/get-insured-object-response-class.js +1 -1
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/{grpc-update-policy-request-dto.js → get-lead-response-class.js} +1 -1
- package/dist/models/{grpc-policy-object-dto.d.ts → get-policy-data-by-date-request-dto.d.ts} +11 -11
- package/dist/models/{get-insured-object-request-dto.js → get-policy-data-by-date-request-dto.js} +1 -1
- package/dist/models/get-policy-request-dto.d.ts +3 -3
- package/dist/models/get-policy-request-dto.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +2 -2
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/get-premium-formula-request-dto.d.ts +2 -2
- package/dist/models/get-premium-formula-request-dto.js +1 -1
- package/dist/models/get-premium-formula-response-class.d.ts +2 -2
- package/dist/models/get-premium-formula-response-class.js +1 -1
- package/dist/models/get-product-factor-response-class.d.ts +2 -2
- package/dist/models/get-product-factor-response-class.js +1 -1
- package/dist/models/get-product-factor-value-request-dto.d.ts +1 -1
- package/dist/models/get-product-factor-value-request-dto.js +1 -1
- package/dist/models/get-product-factor-value-response-class.d.ts +2 -2
- package/dist/models/get-product-factor-value-response-class.js +1 -1
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +4 -4
- package/dist/models/get-product-factors-for-version-request-dto.js +1 -1
- package/dist/models/get-product-factors-for-version-response-class.d.ts +1 -1
- package/dist/models/get-product-factors-for-version-response-class.js +1 -1
- package/dist/models/get-product-field-request-dto.d.ts +2 -2
- package/dist/models/get-product-field-request-dto.js +1 -1
- package/dist/models/get-product-field-response-class.d.ts +2 -2
- package/dist/models/get-product-field-response-class.js +1 -1
- package/dist/models/get-product-request-dto.d.ts +1 -1
- package/dist/models/get-product-request-dto.js +1 -1
- package/dist/models/get-product-response-class.d.ts +1 -1
- package/dist/models/get-product-response-class.js +1 -1
- package/dist/models/get-product-version-request-dto.d.ts +2 -2
- package/dist/models/get-product-version-request-dto.js +1 -1
- package/dist/models/get-product-version-response-class.d.ts +1 -1
- package/dist/models/get-product-version-response-class.js +1 -1
- package/dist/models/grouped-product-factor-class.d.ts +4 -4
- package/dist/models/grouped-product-factor-class.js +1 -1
- package/dist/models/grouped-product-factor-value-class.d.ts +10 -4
- package/dist/models/grouped-product-factor-value-class.js +1 -1
- package/dist/models/grouped-product-factors-response-class.d.ts +1 -1
- package/dist/models/grouped-product-factors-response-class.js +1 -1
- package/dist/models/index.d.ts +14 -5
- package/dist/models/index.js +14 -5
- package/dist/models/insured-object-class.d.ts +12 -12
- package/dist/models/insured-object-class.js +1 -1
- package/dist/models/insured-object-type-class.d.ts +6 -6
- package/dist/models/insured-object-type-class.js +1 -1
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +95 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +3 -3
- package/dist/models/list-insured-object-types-response-class.js +1 -1
- package/dist/models/list-insured-objects-response-class.d.ts +5 -4
- package/dist/models/list-insured-objects-response-class.js +1 -1
- package/dist/models/list-leads-response-class.d.ts +31 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +2 -2
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/list-premium-formulas-response-class.d.ts +3 -3
- package/dist/models/list-premium-formulas-response-class.js +1 -1
- package/dist/models/list-product-factors-response-class.d.ts +7 -7
- package/dist/models/list-product-factors-response-class.js +1 -1
- package/dist/models/list-product-field-types-response-class.d.ts +6 -5
- package/dist/models/list-product-field-types-response-class.js +1 -1
- package/dist/models/list-product-fields-response-class.d.ts +3 -3
- package/dist/models/list-product-fields-response-class.js +1 -1
- package/dist/models/list-products-response-class.d.ts +3 -3
- package/dist/models/list-products-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +6 -6
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/omit-type-class.d.ts +60 -0
- package/dist/models/omit-type-class.js +15 -0
- package/dist/models/policy-class.d.ts +32 -14
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +5 -5
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-object-dto.d.ts +3 -3
- package/dist/models/policy-object-dto.js +1 -1
- package/dist/models/policy-premium-class.d.ts +5 -5
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +7 -7
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +6 -6
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/premium-formula-class.d.ts +10 -17
- package/dist/models/premium-formula-class.js +1 -1
- package/dist/models/premium-override-dto.d.ts +7 -6
- package/dist/models/premium-override-dto.js +3 -2
- package/dist/models/premium-override-request-dto.d.ts +2 -2
- package/dist/models/premium-override-request-dto.js +1 -1
- package/dist/models/product-class.d.ts +10 -10
- package/dist/models/product-class.js +1 -1
- package/dist/models/product-factor-class.d.ts +9 -9
- package/dist/models/product-factor-class.js +1 -1
- package/dist/models/product-factor-value-class.d.ts +8 -28
- package/dist/models/product-factor-value-class.js +1 -1
- package/dist/models/product-field-class.d.ts +10 -10
- package/dist/models/product-field-class.js +1 -1
- package/dist/models/product-field-type-class.d.ts +48 -0
- package/dist/models/product-field-type-class.js +15 -0
- package/dist/models/product-version-class.d.ts +15 -8
- package/dist/models/product-version-class.js +8 -1
- package/dist/models/shared-product-field-class.d.ts +114 -0
- package/dist/models/shared-product-field-class.js +15 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +72 -0
- package/dist/models/{create-claim-request-dto.js → shared-update-premium-formula-request-dto.js} +10 -9
- package/dist/models/store-product-factors-request-dto.d.ts +2 -2
- package/dist/models/store-product-factors-request-dto.js +1 -1
- package/dist/models/store-product-factors-response-class.d.ts +1 -1
- package/dist/models/store-product-factors-response-class.js +1 -1
- package/dist/models/suspend-policy-request-dto.d.ts +24 -0
- package/dist/models/suspend-policy-request-dto.js +15 -0
- package/dist/models/suspend-policy-response-class.d.ts +25 -0
- package/dist/models/suspend-policy-response-class.js +15 -0
- package/dist/models/terminate-policy-request-dto.d.ts +3 -3
- package/dist/models/terminate-policy-request-dto.js +1 -1
- package/dist/models/terminate-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +8 -8
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/update-insured-object-request-dto.d.ts +6 -6
- package/dist/models/update-insured-object-request-dto.js +1 -1
- package/dist/models/update-lead-request-dto.d.ts +8 -14
- package/dist/models/update-lead-request-dto.js +1 -1
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/update-policy-request-dto.d.ts +24 -5
- package/dist/models/update-policy-request-dto.js +8 -1
- package/dist/models/update-policy-response-class.d.ts +1 -1
- package/dist/models/update-policy-response-class.js +1 -1
- package/dist/models/update-premium-formula-request-dto.d.ts +10 -15
- package/dist/models/update-premium-formula-request-dto.js +3 -2
- package/dist/models/update-premium-formula-response-class.d.ts +2 -2
- package/dist/models/update-premium-formula-response-class.js +1 -1
- package/dist/models/update-product-field-request-dto.d.ts +15 -15
- package/dist/models/update-product-field-request-dto.js +1 -1
- package/dist/models/update-product-field-response-class.d.ts +2 -2
- package/dist/models/update-product-field-response-class.js +1 -1
- package/dist/models/update-product-request-dto.d.ts +5 -5
- package/dist/models/update-product-request-dto.js +1 -1
- package/dist/models/update-product-response-class.d.ts +1 -1
- package/dist/models/update-product-response-class.js +1 -1
- package/dist/models/update-product-version-request-dto.d.ts +5 -5
- package/dist/models/update-product-version-request-dto.js +1 -1
- package/dist/models/update-product-version-response-class.d.ts +1 -1
- package/dist/models/update-product-version-response-class.js +1 -1
- package/dist/models/uploaded-document-dto.d.ts +2 -2
- package/dist/models/uploaded-document-dto.js +1 -1
- package/dist/models/validate-product-factors-request-dto.d.ts +2 -2
- package/dist/models/validate-product-factors-request-dto.js +1 -1
- package/dist/models/withdraw-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/calculate-custom-premium-request-dto.ts +3 -3
- package/models/calculate-premium-request-dto.ts +9 -9
- package/models/create-account-request-dto.ts +29 -13
- package/models/create-bank-account-request-dto.ts +3 -3
- package/models/create-custom-application-request-dto.ts +4 -4
- package/models/create-dummy-policy-request-dto.ts +4 -4
- package/models/create-insured-object-request-dto.ts +5 -5
- package/models/create-insured-object-response-class.ts +5 -5
- package/models/create-lead-request-dto.ts +22 -22
- package/models/create-lead-response-class.ts +31 -0
- package/models/create-policy-request-dto.ts +19 -7
- package/models/create-policy-response-class.ts +1 -1
- package/models/create-premium-formula-request-dto.ts +9 -8
- package/models/create-premium-formula-response-class.ts +2 -2
- package/models/create-product-field-request-dto.ts +1 -1
- package/models/create-product-field-response-class.ts +2 -2
- package/models/create-product-request-dto.ts +5 -5
- package/models/create-product-response-class.ts +1 -1
- package/models/csv-product-factor-dto.ts +6 -6
- package/models/delete-request-dto.ts +2 -2
- package/models/{get-insured-object-request-dto.ts → delete-response-class.ts} +7 -7
- package/models/get-insured-object-response-class.ts +2 -2
- package/models/get-lead-response-class.ts +31 -0
- package/models/{grpc-policy-object-dto.ts → get-policy-data-by-date-request-dto.ts} +11 -11
- package/models/get-policy-request-dto.ts +3 -3
- package/models/get-policy-response-class.ts +2 -2
- package/models/get-premium-formula-request-dto.ts +2 -2
- package/models/get-premium-formula-response-class.ts +2 -2
- package/models/get-product-factor-response-class.ts +2 -2
- package/models/get-product-factor-value-request-dto.ts +1 -1
- package/models/get-product-factor-value-response-class.ts +2 -2
- package/models/get-product-factors-for-version-request-dto.ts +4 -4
- package/models/get-product-factors-for-version-response-class.ts +1 -1
- package/models/get-product-field-request-dto.ts +2 -2
- package/models/get-product-field-response-class.ts +2 -2
- package/models/get-product-request-dto.ts +1 -1
- package/models/get-product-response-class.ts +1 -1
- package/models/get-product-version-request-dto.ts +2 -2
- package/models/get-product-version-response-class.ts +1 -1
- package/models/grouped-product-factor-class.ts +4 -4
- package/models/grouped-product-factor-value-class.ts +10 -4
- package/models/grouped-product-factors-response-class.ts +1 -1
- package/models/index.ts +14 -5
- package/models/insured-object-class.ts +12 -12
- package/models/insured-object-type-class.ts +6 -6
- package/models/lead-bank-account-class.ts +36 -0
- package/models/lead-class.ts +101 -0
- package/models/list-insured-object-types-response-class.ts +3 -3
- package/models/list-insured-objects-response-class.ts +5 -4
- package/models/list-leads-response-class.ts +37 -0
- package/models/list-policies-response-class.ts +2 -2
- package/models/list-premium-formulas-response-class.ts +3 -3
- package/models/list-product-factors-response-class.ts +7 -7
- package/models/list-product-field-types-response-class.ts +6 -5
- package/models/list-product-fields-response-class.ts +3 -3
- package/models/list-products-response-class.ts +3 -3
- package/models/list-request-dto.ts +6 -6
- package/models/omit-type-class.ts +66 -0
- package/models/policy-class.ts +32 -14
- package/models/policy-object-class.ts +5 -5
- package/models/policy-object-dto.ts +3 -3
- package/models/policy-premium-class.ts +5 -5
- package/models/policy-premium-item-class.ts +7 -7
- package/models/policy-version-class.ts +6 -6
- package/models/premium-formula-class.ts +10 -17
- package/models/premium-override-dto.ts +6 -5
- package/models/premium-override-request-dto.ts +2 -2
- package/models/product-class.ts +10 -10
- package/models/product-factor-class.ts +9 -9
- package/models/product-factor-value-class.ts +8 -28
- package/models/product-field-class.ts +10 -10
- package/models/product-field-type-class.ts +54 -0
- package/models/product-version-class.ts +18 -8
- package/models/shared-product-field-class.ts +120 -0
- package/models/shared-update-premium-formula-request-dto.ts +82 -0
- package/models/store-product-factors-request-dto.ts +2 -2
- package/models/store-product-factors-response-class.ts +1 -1
- package/models/suspend-policy-request-dto.ts +30 -0
- package/models/suspend-policy-response-class.ts +31 -0
- package/models/terminate-policy-request-dto.ts +3 -3
- package/models/terminate-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +8 -8
- package/models/update-insured-object-request-dto.ts +6 -6
- package/models/update-lead-request-dto.ts +7 -13
- package/models/update-lead-response-class.ts +31 -0
- package/models/update-policy-request-dto.ts +27 -5
- package/models/update-policy-response-class.ts +1 -1
- package/models/update-premium-formula-request-dto.ts +9 -14
- package/models/update-premium-formula-response-class.ts +2 -2
- package/models/update-product-field-request-dto.ts +14 -14
- package/models/update-product-field-response-class.ts +2 -2
- package/models/update-product-request-dto.ts +5 -5
- package/models/update-product-response-class.ts +1 -1
- package/models/update-product-version-request-dto.ts +4 -4
- package/models/update-product-version-response-class.ts +1 -1
- package/models/uploaded-document-dto.ts +2 -2
- package/models/validate-product-factors-request-dto.ts +2 -2
- package/models/withdraw-policy-response-class.ts +1 -1
- package/package.json +2 -3
- package/dist/models/create-claim-request-dto.d.ts +0 -83
- package/dist/models/grpc-update-policy-request-dto.d.ts +0 -50
- package/dist/models/to-grpc-create-policy-request-dto.d.ts +0 -44
- package/models/create-claim-request-dto.ts +0 -93
- package/models/grpc-update-policy-request-dto.ts +0 -56
- package/models/to-grpc-create-policy-request-dto.ts +0 -50
|
@@ -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]) {
|
|
@@ -148,12 +148,13 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
/**
|
|
149
149
|
* 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.
|
|
150
150
|
* @summary Retrieve the insured object
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {number} id
|
|
152
152
|
* @param {string} [authorization] Bearer Token
|
|
153
|
+
* @param {string} [expand] Fields to expand response by.
|
|
153
154
|
* @param {*} [options] Override http request option.
|
|
154
155
|
* @throws {RequiredError}
|
|
155
156
|
*/
|
|
156
|
-
getInsuredObject: function (id, authorization, options) {
|
|
157
|
+
getInsuredObject: function (id, authorization, expand, options) {
|
|
157
158
|
if (options === void 0) { options = {}; }
|
|
158
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -163,7 +164,8 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
|
|
|
163
164
|
// verify required parameter 'id' is not null or undefined
|
|
164
165
|
(0, common_1.assertParamExists)('getInsuredObject', 'id', id);
|
|
165
166
|
localVarPath = "/insuranceservice/v1/insured-objects/{id}"
|
|
166
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
167
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
168
|
+
.replace("{".concat("expand", "}"), encodeURIComponent(String(expand)));
|
|
167
169
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
170
|
if (configuration) {
|
|
169
171
|
baseOptions = configuration.baseOptions;
|
|
@@ -197,12 +199,12 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
|
|
|
197
199
|
* 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.
|
|
198
200
|
* @summary List insured objects
|
|
199
201
|
* @param {string} [authorization] Bearer Token
|
|
200
|
-
* @param {number} [pageSize] Page size
|
|
201
|
-
* @param {string} [pageToken] Page token
|
|
202
|
+
* @param {number} [pageSize] Page size.
|
|
203
|
+
* @param {string} [pageToken] Page token.
|
|
202
204
|
* @param {string} [filter] List filter
|
|
203
|
-
* @param {string} [search] Search query
|
|
204
|
-
* @param {string} [order] Ordering criteria
|
|
205
|
-
* @param {string} [expand] Extra fields to fetch
|
|
205
|
+
* @param {string} [search] Search query.
|
|
206
|
+
* @param {string} [order] Ordering criteria.
|
|
207
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
206
208
|
* @param {*} [options] Override http request option.
|
|
207
209
|
* @throws {RequiredError}
|
|
208
210
|
*/
|
|
@@ -295,17 +297,18 @@ var InsuredObjectsApiFp = function (configuration) {
|
|
|
295
297
|
/**
|
|
296
298
|
* 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.
|
|
297
299
|
* @summary Retrieve the insured object
|
|
298
|
-
* @param {
|
|
300
|
+
* @param {number} id
|
|
299
301
|
* @param {string} [authorization] Bearer Token
|
|
302
|
+
* @param {string} [expand] Fields to expand response by.
|
|
300
303
|
* @param {*} [options] Override http request option.
|
|
301
304
|
* @throws {RequiredError}
|
|
302
305
|
*/
|
|
303
|
-
getInsuredObject: function (id, authorization, options) {
|
|
306
|
+
getInsuredObject: function (id, authorization, expand, options) {
|
|
304
307
|
return __awaiter(this, void 0, void 0, function () {
|
|
305
308
|
var localVarAxiosArgs;
|
|
306
309
|
return __generator(this, function (_a) {
|
|
307
310
|
switch (_a.label) {
|
|
308
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObject(id, authorization, options)];
|
|
311
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObject(id, authorization, expand, options)];
|
|
309
312
|
case 1:
|
|
310
313
|
localVarAxiosArgs = _a.sent();
|
|
311
314
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -317,12 +320,12 @@ var InsuredObjectsApiFp = function (configuration) {
|
|
|
317
320
|
* 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.
|
|
318
321
|
* @summary List insured objects
|
|
319
322
|
* @param {string} [authorization] Bearer Token
|
|
320
|
-
* @param {number} [pageSize] Page size
|
|
321
|
-
* @param {string} [pageToken] Page token
|
|
323
|
+
* @param {number} [pageSize] Page size.
|
|
324
|
+
* @param {string} [pageToken] Page token.
|
|
322
325
|
* @param {string} [filter] List filter
|
|
323
|
-
* @param {string} [search] Search query
|
|
324
|
-
* @param {string} [order] Ordering criteria
|
|
325
|
-
* @param {string} [expand] Extra fields to fetch
|
|
326
|
+
* @param {string} [search] Search query.
|
|
327
|
+
* @param {string} [order] Ordering criteria.
|
|
328
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
326
329
|
* @param {*} [options] Override http request option.
|
|
327
330
|
* @throws {RequiredError}
|
|
328
331
|
*/
|
|
@@ -363,24 +366,25 @@ var InsuredObjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
363
366
|
/**
|
|
364
367
|
* 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.
|
|
365
368
|
* @summary Retrieve the insured object
|
|
366
|
-
* @param {
|
|
369
|
+
* @param {number} id
|
|
367
370
|
* @param {string} [authorization] Bearer Token
|
|
371
|
+
* @param {string} [expand] Fields to expand response by.
|
|
368
372
|
* @param {*} [options] Override http request option.
|
|
369
373
|
* @throws {RequiredError}
|
|
370
374
|
*/
|
|
371
|
-
getInsuredObject: function (id, authorization, options) {
|
|
372
|
-
return localVarFp.getInsuredObject(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
375
|
+
getInsuredObject: function (id, authorization, expand, options) {
|
|
376
|
+
return localVarFp.getInsuredObject(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
373
377
|
},
|
|
374
378
|
/**
|
|
375
379
|
* 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.
|
|
376
380
|
* @summary List insured objects
|
|
377
381
|
* @param {string} [authorization] Bearer Token
|
|
378
|
-
* @param {number} [pageSize] Page size
|
|
379
|
-
* @param {string} [pageToken] Page token
|
|
382
|
+
* @param {number} [pageSize] Page size.
|
|
383
|
+
* @param {string} [pageToken] Page token.
|
|
380
384
|
* @param {string} [filter] List filter
|
|
381
|
-
* @param {string} [search] Search query
|
|
382
|
-
* @param {string} [order] Ordering criteria
|
|
383
|
-
* @param {string} [expand] Extra fields to fetch
|
|
385
|
+
* @param {string} [search] Search query.
|
|
386
|
+
* @param {string} [order] Ordering criteria.
|
|
387
|
+
* @param {string} [expand] Extra fields to fetch.
|
|
384
388
|
* @param {*} [options] Override http request option.
|
|
385
389
|
* @throws {RequiredError}
|
|
386
390
|
*/
|
|
@@ -423,7 +427,7 @@ var InsuredObjectsApi = /** @class */ (function (_super) {
|
|
|
423
427
|
*/
|
|
424
428
|
InsuredObjectsApi.prototype.getInsuredObject = function (requestParameters, options) {
|
|
425
429
|
var _this = this;
|
|
426
|
-
return (0, exports.InsuredObjectsApiFp)(this.configuration).getInsuredObject(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
430
|
+
return (0, exports.InsuredObjectsApiFp)(this.configuration).getInsuredObject(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
427
431
|
};
|
|
428
432
|
/**
|
|
429
433
|
* 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.
|
package/dist/api/leads-api.d.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
|
|
@@ -13,7 +13,11 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateLeadRequestDto } from '../models';
|
|
16
|
+
import { CreateLeadResponseClass } from '../models';
|
|
17
|
+
import { GetLeadResponseClass } from '../models';
|
|
18
|
+
import { ListLeadsResponseClass } from '../models';
|
|
16
19
|
import { UpdateLeadRequestDto } from '../models';
|
|
20
|
+
import { UpdateLeadResponseClass } from '../models';
|
|
17
21
|
/**
|
|
18
22
|
* LeadsApi - axios parameter creator
|
|
19
23
|
* @export
|
|
@@ -38,6 +42,20 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
38
42
|
* @throws {RequiredError}
|
|
39
43
|
*/
|
|
40
44
|
getLead: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
47
|
+
* @summary List lead
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
50
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
51
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
52
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
53
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
54
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
listLeads: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
59
|
/**
|
|
42
60
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
43
61
|
* @summary Update the lead
|
|
@@ -62,7 +80,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
62
80
|
* @param {*} [options] Override http request option.
|
|
63
81
|
* @throws {RequiredError}
|
|
64
82
|
*/
|
|
65
|
-
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
83
|
+
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
66
84
|
/**
|
|
67
85
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
68
86
|
* @summary Retrieve the lead
|
|
@@ -72,7 +90,21 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
72
90
|
* @param {*} [options] Override http request option.
|
|
73
91
|
* @throws {RequiredError}
|
|
74
92
|
*/
|
|
75
|
-
getLead(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
93
|
+
getLead(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
94
|
+
/**
|
|
95
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
96
|
+
* @summary List lead
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
99
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
100
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
101
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
102
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
103
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
|
|
76
108
|
/**
|
|
77
109
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
78
110
|
* @summary Update the lead
|
|
@@ -82,7 +114,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
82
114
|
* @param {*} [options] Override http request option.
|
|
83
115
|
* @throws {RequiredError}
|
|
84
116
|
*/
|
|
85
|
-
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
117
|
+
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
86
118
|
};
|
|
87
119
|
/**
|
|
88
120
|
* LeadsApi - factory interface
|
|
@@ -97,7 +129,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
97
129
|
* @param {*} [options] Override http request option.
|
|
98
130
|
* @throws {RequiredError}
|
|
99
131
|
*/
|
|
100
|
-
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
132
|
+
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
101
133
|
/**
|
|
102
134
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
103
135
|
* @summary Retrieve the lead
|
|
@@ -107,7 +139,21 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
107
139
|
* @param {*} [options] Override http request option.
|
|
108
140
|
* @throws {RequiredError}
|
|
109
141
|
*/
|
|
110
|
-
getLead(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<
|
|
142
|
+
getLead(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
143
|
+
/**
|
|
144
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
145
|
+
* @summary List lead
|
|
146
|
+
* @param {string} [authorization] Bearer Token
|
|
147
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
148
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
149
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
150
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
151
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
152
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
|
|
111
157
|
/**
|
|
112
158
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
113
159
|
* @summary Update the lead
|
|
@@ -117,7 +163,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
117
163
|
* @param {*} [options] Override http request option.
|
|
118
164
|
* @throws {RequiredError}
|
|
119
165
|
*/
|
|
120
|
-
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
166
|
+
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
121
167
|
};
|
|
122
168
|
/**
|
|
123
169
|
* Request parameters for createLead operation in LeadsApi.
|
|
@@ -163,6 +209,55 @@ export interface LeadsApiGetLeadRequest {
|
|
|
163
209
|
*/
|
|
164
210
|
readonly authorization?: string;
|
|
165
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* Request parameters for listLeads operation in LeadsApi.
|
|
214
|
+
* @export
|
|
215
|
+
* @interface LeadsApiListLeadsRequest
|
|
216
|
+
*/
|
|
217
|
+
export interface LeadsApiListLeadsRequest {
|
|
218
|
+
/**
|
|
219
|
+
* Bearer Token
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof LeadsApiListLeads
|
|
222
|
+
*/
|
|
223
|
+
readonly authorization?: string;
|
|
224
|
+
/**
|
|
225
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
226
|
+
* @type {any}
|
|
227
|
+
* @memberof LeadsApiListLeads
|
|
228
|
+
*/
|
|
229
|
+
readonly pageSize?: any;
|
|
230
|
+
/**
|
|
231
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
232
|
+
* @type {any}
|
|
233
|
+
* @memberof LeadsApiListLeads
|
|
234
|
+
*/
|
|
235
|
+
readonly pageToken?: any;
|
|
236
|
+
/**
|
|
237
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
238
|
+
* @type {any}
|
|
239
|
+
* @memberof LeadsApiListLeads
|
|
240
|
+
*/
|
|
241
|
+
readonly filter?: any;
|
|
242
|
+
/**
|
|
243
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
244
|
+
* @type {any}
|
|
245
|
+
* @memberof LeadsApiListLeads
|
|
246
|
+
*/
|
|
247
|
+
readonly search?: any;
|
|
248
|
+
/**
|
|
249
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
250
|
+
* @type {any}
|
|
251
|
+
* @memberof LeadsApiListLeads
|
|
252
|
+
*/
|
|
253
|
+
readonly order?: any;
|
|
254
|
+
/**
|
|
255
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
256
|
+
* @type {any}
|
|
257
|
+
* @memberof LeadsApiListLeads
|
|
258
|
+
*/
|
|
259
|
+
readonly expand?: any;
|
|
260
|
+
}
|
|
166
261
|
/**
|
|
167
262
|
* Request parameters for updateLead operation in LeadsApi.
|
|
168
263
|
* @export
|
|
@@ -203,7 +298,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
203
298
|
* @throws {RequiredError}
|
|
204
299
|
* @memberof LeadsApi
|
|
205
300
|
*/
|
|
206
|
-
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
301
|
+
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
207
302
|
/**
|
|
208
303
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
209
304
|
* @summary Retrieve the lead
|
|
@@ -212,7 +307,16 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
212
307
|
* @throws {RequiredError}
|
|
213
308
|
* @memberof LeadsApi
|
|
214
309
|
*/
|
|
215
|
-
getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
310
|
+
getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any>>;
|
|
311
|
+
/**
|
|
312
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
313
|
+
* @summary List lead
|
|
314
|
+
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
* @memberof LeadsApi
|
|
318
|
+
*/
|
|
319
|
+
listLeads(requestParameters?: LeadsApiListLeadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadsResponseClass, any>>;
|
|
216
320
|
/**
|
|
217
321
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
218
322
|
* @summary Update the lead
|
|
@@ -221,5 +325,5 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
221
325
|
* @throws {RequiredError}
|
|
222
326
|
* @memberof LeadsApi
|
|
223
327
|
*/
|
|
224
|
-
updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
328
|
+
updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any>>;
|
|
225
329
|
}
|
package/dist/api/leads-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL InsuranceService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -199,6 +199,74 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
201
|
},
|
|
202
|
+
/**
|
|
203
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
204
|
+
* @summary List lead
|
|
205
|
+
* @param {string} [authorization] Bearer Token
|
|
206
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
207
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
208
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
209
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
210
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
211
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
216
|
+
if (options === void 0) { options = {}; }
|
|
217
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
219
|
+
return __generator(this, function (_a) {
|
|
220
|
+
switch (_a.label) {
|
|
221
|
+
case 0:
|
|
222
|
+
localVarPath = "/insuranceservice/v1/leads";
|
|
223
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
224
|
+
if (configuration) {
|
|
225
|
+
baseOptions = configuration.baseOptions;
|
|
226
|
+
baseAccessToken = configuration.accessToken;
|
|
227
|
+
}
|
|
228
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
229
|
+
localVarHeaderParameter = {};
|
|
230
|
+
localVarQueryParameter = {};
|
|
231
|
+
// authentication bearer required
|
|
232
|
+
// http bearer authentication required
|
|
233
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
234
|
+
case 1:
|
|
235
|
+
// authentication bearer required
|
|
236
|
+
// http bearer authentication required
|
|
237
|
+
_a.sent();
|
|
238
|
+
if (pageSize !== undefined) {
|
|
239
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
240
|
+
}
|
|
241
|
+
if (pageToken !== undefined) {
|
|
242
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
243
|
+
}
|
|
244
|
+
if (filter !== undefined) {
|
|
245
|
+
localVarQueryParameter['filter'] = filter;
|
|
246
|
+
}
|
|
247
|
+
if (search !== undefined) {
|
|
248
|
+
localVarQueryParameter['search'] = search;
|
|
249
|
+
}
|
|
250
|
+
if (order !== undefined) {
|
|
251
|
+
localVarQueryParameter['order'] = order;
|
|
252
|
+
}
|
|
253
|
+
if (expand !== undefined) {
|
|
254
|
+
localVarQueryParameter['expand'] = expand;
|
|
255
|
+
}
|
|
256
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
257
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
258
|
+
}
|
|
259
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
260
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
261
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
262
|
+
return [2 /*return*/, {
|
|
263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
}];
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
},
|
|
202
270
|
/**
|
|
203
271
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
204
272
|
* @summary Update the lead
|
|
@@ -305,6 +373,32 @@ var LeadsApiFp = function (configuration) {
|
|
|
305
373
|
});
|
|
306
374
|
});
|
|
307
375
|
},
|
|
376
|
+
/**
|
|
377
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
378
|
+
* @summary List lead
|
|
379
|
+
* @param {string} [authorization] Bearer Token
|
|
380
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
381
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
382
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
383
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
384
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
385
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
*/
|
|
389
|
+
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
391
|
+
var localVarAxiosArgs;
|
|
392
|
+
return __generator(this, function (_a) {
|
|
393
|
+
switch (_a.label) {
|
|
394
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
395
|
+
case 1:
|
|
396
|
+
localVarAxiosArgs = _a.sent();
|
|
397
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
},
|
|
308
402
|
/**
|
|
309
403
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
310
404
|
* @summary Update the lead
|
|
@@ -360,6 +454,22 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
360
454
|
getLead: function (code, expand, authorization, options) {
|
|
361
455
|
return localVarFp.getLead(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
362
456
|
},
|
|
457
|
+
/**
|
|
458
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
459
|
+
* @summary List lead
|
|
460
|
+
* @param {string} [authorization] Bearer Token
|
|
461
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
462
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
463
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
464
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
465
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
466
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
471
|
+
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
472
|
+
},
|
|
363
473
|
/**
|
|
364
474
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
365
475
|
* @summary Update the lead
|
|
@@ -410,6 +520,19 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
410
520
|
var _this = this;
|
|
411
521
|
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
412
522
|
};
|
|
523
|
+
/**
|
|
524
|
+
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
525
|
+
* @summary List lead
|
|
526
|
+
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
* @memberof LeadsApi
|
|
530
|
+
*/
|
|
531
|
+
LeadsApi.prototype.listLeads = function (requestParameters, options) {
|
|
532
|
+
var _this = this;
|
|
533
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
534
|
+
return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
535
|
+
};
|
|
413
536
|
/**
|
|
414
537
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
415
538
|
* @summary Update the lead
|