@emilgroup/insurance-sdk-node 1.32.1 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/models/product-field-class.ts +1 -1
- package/models/shared-product-field-class.ts +1 -1
- package/models/terminate-policy-request-dto.ts +23 -0
- package/models/update-policy-request-dto.ts +6 -0
- package/package.json +2 -2
- package/dist/api/default-api.d.ts +0 -66
- package/dist/api/default-api.js +0 -200
- package/dist/api/insured-object-types-api.d.ts +0 -141
- package/dist/api/insured-object-types-api.js +0 -258
- package/dist/api/insured-objects-api.d.ts +0 -318
- package/dist/api/insured-objects-api.js +0 -539
- package/dist/api/lead-statuses-api.d.ts +0 -265
- package/dist/api/lead-statuses-api.js +0 -505
- package/dist/api/leads-api.d.ts +0 -626
- package/dist/api/leads-api.js +0 -1024
- package/dist/api/named-ranges-api.d.ts +0 -376
- package/dist/api/named-ranges-api.js +0 -634
- package/dist/api/policies-api.d.ts +0 -722
- package/dist/api/policies-api.js +0 -1141
- package/dist/api/premium-formulas-api.d.ts +0 -433
- package/dist/api/premium-formulas-api.js +0 -727
- package/dist/api/product-factors-api.d.ts +0 -493
- package/dist/api/product-factors-api.js +0 -788
- package/dist/api/product-fields-api.d.ts +0 -477
- package/dist/api/product-fields-api.js +0 -757
- package/dist/api/product-versions-api.d.ts +0 -189
- package/dist/api/product-versions-api.js +0 -346
- package/dist/api/products-api.d.ts +0 -485
- package/dist/api/products-api.js +0 -772
- package/dist/api.d.ts +0 -23
- package/dist/api.js +0 -41
- package/dist/base.d.ts +0 -78
- package/dist/base.js +0 -394
- package/dist/common.d.ts +0 -92
- package/dist/common.js +0 -277
- package/dist/configuration.d.ts +0 -90
- package/dist/configuration.js +0 -44
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/activate-policy-request-dto.d.ts +0 -24
- package/dist/models/activate-policy-request-dto.js +0 -15
- package/dist/models/activate-policy-response-class.d.ts +0 -25
- package/dist/models/activate-policy-response-class.js +0 -15
- package/dist/models/calculate-custom-premium-request-dto.d.ts +0 -35
- package/dist/models/calculate-custom-premium-request-dto.js +0 -20
- package/dist/models/calculate-premium-request-dto.d.ts +0 -38
- package/dist/models/calculate-premium-request-dto.js +0 -15
- package/dist/models/calculate-product-fields-request-dto.d.ts +0 -31
- package/dist/models/calculate-product-fields-request-dto.js +0 -15
- package/dist/models/clone-product-version-request-dto.d.ts +0 -36
- package/dist/models/clone-product-version-request-dto.js +0 -15
- package/dist/models/create-account-request-dto.d.ts +0 -120
- package/dist/models/create-account-request-dto.js +0 -26
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-custom-application-request-dto.d.ts +0 -41
- package/dist/models/create-custom-application-request-dto.js +0 -20
- package/dist/models/create-dummy-policy-request-dto.d.ts +0 -44
- package/dist/models/create-dummy-policy-request-dto.js +0 -15
- package/dist/models/create-insured-object-request-dto.d.ts +0 -60
- package/dist/models/create-insured-object-request-dto.js +0 -15
- package/dist/models/create-insured-object-response-class.d.ts +0 -25
- package/dist/models/create-insured-object-response-class.js +0 -15
- package/dist/models/create-lead-async-response-class.d.ts +0 -24
- package/dist/models/create-lead-async-response-class.js +0 -15
- package/dist/models/create-lead-policy-request-dto.d.ts +0 -56
- package/dist/models/create-lead-policy-request-dto.js +0 -15
- package/dist/models/create-lead-request-dto.d.ts +0 -96
- package/dist/models/create-lead-request-dto.js +0 -15
- package/dist/models/create-lead-response-class.d.ts +0 -25
- package/dist/models/create-lead-response-class.js +0 -15
- package/dist/models/create-lead-status-request-dto.d.ts +0 -30
- package/dist/models/create-lead-status-request-dto.js +0 -15
- package/dist/models/create-lead-status-response-class.d.ts +0 -25
- package/dist/models/create-lead-status-response-class.js +0 -15
- package/dist/models/create-named-range-request-dto.d.ts +0 -55
- package/dist/models/create-named-range-request-dto.js +0 -15
- package/dist/models/create-named-range-response-class.d.ts +0 -25
- package/dist/models/create-named-range-response-class.js +0 -15
- package/dist/models/create-named-request-s3-data-class.d.ts +0 -30
- package/dist/models/create-named-request-s3-data-class.js +0 -15
- package/dist/models/create-payment-method-request-dto.d.ts +0 -31
- package/dist/models/create-payment-method-request-dto.js +0 -15
- package/dist/models/create-policy-request-dto.d.ts +0 -62
- package/dist/models/create-policy-request-dto.js +0 -15
- package/dist/models/create-policy-response-class.d.ts +0 -25
- package/dist/models/create-policy-response-class.js +0 -15
- package/dist/models/create-premium-formula-request-dto.d.ts +0 -105
- package/dist/models/create-premium-formula-request-dto.js +0 -39
- package/dist/models/create-premium-formula-response-class.d.ts +0 -25
- package/dist/models/create-premium-formula-response-class.js +0 -15
- package/dist/models/create-product-field-request-dto.d.ts +0 -137
- package/dist/models/create-product-field-request-dto.js +0 -20
- package/dist/models/create-product-field-response-class.d.ts +0 -25
- package/dist/models/create-product-field-response-class.js +0 -15
- package/dist/models/create-product-request-dto.d.ts +0 -85
- package/dist/models/create-product-request-dto.js +0 -51
- package/dist/models/create-product-response-class.d.ts +0 -25
- package/dist/models/create-product-response-class.js +0 -15
- package/dist/models/csv-product-factor-dto.d.ts +0 -48
- package/dist/models/csv-product-factor-dto.js +0 -15
- package/dist/models/delete-request-dto.d.ts +0 -24
- package/dist/models/delete-request-dto.js +0 -15
- package/dist/models/delete-response-class.d.ts +0 -24
- package/dist/models/delete-response-class.js +0 -15
- package/dist/models/empty-response-class.d.ts +0 -24
- package/dist/models/empty-response-class.js +0 -15
- package/dist/models/get-insured-object-response-class.d.ts +0 -25
- package/dist/models/get-insured-object-response-class.js +0 -15
- package/dist/models/get-lead-response-class.d.ts +0 -25
- package/dist/models/get-lead-response-class.js +0 -15
- package/dist/models/get-lead-status-response-class.d.ts +0 -25
- package/dist/models/get-lead-status-response-class.js +0 -15
- package/dist/models/get-named-range-response-class.d.ts +0 -25
- package/dist/models/get-named-range-response-class.js +0 -15
- package/dist/models/get-policy-data-by-date-request-dto.d.ts +0 -30
- package/dist/models/get-policy-data-by-date-request-dto.js +0 -15
- package/dist/models/get-policy-request-dto.d.ts +0 -30
- package/dist/models/get-policy-request-dto.js +0 -15
- package/dist/models/get-policy-response-class.d.ts +0 -25
- package/dist/models/get-policy-response-class.js +0 -15
- package/dist/models/get-premium-formula-request-dto.d.ts +0 -24
- package/dist/models/get-premium-formula-request-dto.js +0 -15
- package/dist/models/get-premium-formula-response-class.d.ts +0 -25
- package/dist/models/get-premium-formula-response-class.js +0 -15
- package/dist/models/get-product-factor-response-class.d.ts +0 -32
- package/dist/models/get-product-factor-response-class.js +0 -15
- package/dist/models/get-product-factor-value-request-dto.d.ts +0 -42
- package/dist/models/get-product-factor-value-request-dto.js +0 -15
- package/dist/models/get-product-factor-value-response-class.d.ts +0 -25
- package/dist/models/get-product-factor-value-response-class.js +0 -15
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +0 -36
- package/dist/models/get-product-factors-for-version-request-dto.js +0 -15
- package/dist/models/get-product-factors-for-version-response-class.d.ts +0 -25
- package/dist/models/get-product-factors-for-version-response-class.js +0 -15
- package/dist/models/get-product-field-request-dto.d.ts +0 -24
- package/dist/models/get-product-field-request-dto.js +0 -15
- package/dist/models/get-product-field-response-class.d.ts +0 -25
- package/dist/models/get-product-field-response-class.js +0 -15
- package/dist/models/get-product-request-dto.d.ts +0 -42
- package/dist/models/get-product-request-dto.js +0 -15
- package/dist/models/get-product-response-class.d.ts +0 -25
- package/dist/models/get-product-response-class.js +0 -15
- package/dist/models/get-product-version-request-dto.d.ts +0 -36
- package/dist/models/get-product-version-request-dto.js +0 -15
- package/dist/models/get-product-version-response-class.d.ts +0 -25
- package/dist/models/get-product-version-response-class.js +0 -15
- package/dist/models/grouped-product-factor-class.d.ts +0 -37
- package/dist/models/grouped-product-factor-class.js +0 -15
- package/dist/models/grouped-product-factor-value-class.d.ts +0 -42
- package/dist/models/grouped-product-factor-value-class.js +0 -15
- package/dist/models/grouped-product-factors-response-class.d.ts +0 -25
- package/dist/models/grouped-product-factors-response-class.js +0 -15
- package/dist/models/grpc-patch-lead-request-dto.d.ts +0 -102
- package/dist/models/grpc-patch-lead-request-dto.js +0 -15
- package/dist/models/grpc-update-lead-request-dto.d.ts +0 -102
- package/dist/models/grpc-update-lead-request-dto.js +0 -15
- package/dist/models/index.d.ts +0 -136
- package/dist/models/index.js +0 -152
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/insured-object-class.d.ts +0 -85
- package/dist/models/insured-object-class.js +0 -15
- package/dist/models/insured-object-type-class.d.ts +0 -48
- package/dist/models/insured-object-type-class.js +0 -15
- package/dist/models/invoice-item-class.d.ts +0 -117
- package/dist/models/invoice-item-class.js +0 -24
- package/dist/models/invoice-status-class.d.ts +0 -47
- package/dist/models/invoice-status-class.js +0 -20
- package/dist/models/lead-bank-account-class.d.ts +0 -30
- package/dist/models/lead-bank-account-class.js +0 -15
- package/dist/models/lead-class.d.ts +0 -133
- package/dist/models/lead-class.js +0 -15
- package/dist/models/lead-status-class.d.ts +0 -36
- package/dist/models/lead-status-class.js +0 -15
- package/dist/models/list-insured-object-types-response-class.d.ts +0 -31
- package/dist/models/list-insured-object-types-response-class.js +0 -15
- package/dist/models/list-insured-objects-response-class.d.ts +0 -31
- package/dist/models/list-insured-objects-response-class.js +0 -15
- package/dist/models/list-lead-statuses-response-class.d.ts +0 -31
- package/dist/models/list-lead-statuses-response-class.js +0 -15
- package/dist/models/list-leads-response-class.d.ts +0 -43
- package/dist/models/list-leads-response-class.js +0 -15
- package/dist/models/list-named-ranges-response-class.d.ts +0 -30
- package/dist/models/list-named-ranges-response-class.js +0 -15
- package/dist/models/list-policies-response-class.d.ts +0 -43
- package/dist/models/list-policies-response-class.js +0 -15
- package/dist/models/list-premium-formulas-response-class.d.ts +0 -31
- package/dist/models/list-premium-formulas-response-class.js +0 -15
- package/dist/models/list-product-factors-response-class.d.ts +0 -31
- package/dist/models/list-product-factors-response-class.js +0 -15
- package/dist/models/list-product-field-types-response-class.d.ts +0 -31
- package/dist/models/list-product-field-types-response-class.js +0 -15
- package/dist/models/list-product-fields-response-class.d.ts +0 -31
- package/dist/models/list-product-fields-response-class.js +0 -15
- package/dist/models/list-products-response-class.d.ts +0 -31
- package/dist/models/list-products-response-class.js +0 -15
- package/dist/models/list-request-dto.d.ts +0 -54
- package/dist/models/list-request-dto.js +0 -15
- package/dist/models/named-range-class.d.ts +0 -78
- package/dist/models/named-range-class.js +0 -15
- package/dist/models/patch-lead-request-dto.d.ts +0 -90
- package/dist/models/patch-lead-request-dto.js +0 -15
- package/dist/models/patch-lead-response-class.d.ts +0 -25
- package/dist/models/patch-lead-response-class.js +0 -15
- package/dist/models/patch-policy-request-dto.d.ts +0 -50
- package/dist/models/patch-policy-request-dto.js +0 -15
- package/dist/models/patch-policy-response-class.d.ts +0 -25
- package/dist/models/patch-policy-response-class.js +0 -15
- package/dist/models/policy-class.d.ts +0 -128
- package/dist/models/policy-class.js +0 -15
- package/dist/models/policy-object-class.d.ts +0 -60
- package/dist/models/policy-object-class.js +0 -15
- package/dist/models/policy-object-dto.d.ts +0 -42
- package/dist/models/policy-object-dto.js +0 -15
- package/dist/models/policy-premium-class.d.ts +0 -49
- package/dist/models/policy-premium-class.js +0 -15
- package/dist/models/policy-premium-item-class.d.ts +0 -55
- package/dist/models/policy-premium-item-class.js +0 -15
- package/dist/models/policy-version-class.d.ts +0 -55
- package/dist/models/policy-version-class.js +0 -15
- package/dist/models/premium-formula-class.d.ts +0 -96
- package/dist/models/premium-formula-class.js +0 -15
- package/dist/models/premium-override-dto.d.ts +0 -55
- package/dist/models/premium-override-dto.js +0 -27
- package/dist/models/premium-override-request-class.d.ts +0 -25
- package/dist/models/premium-override-request-class.js +0 -15
- package/dist/models/premium-override-request-dto.d.ts +0 -25
- package/dist/models/premium-override-request-dto.js +0 -15
- package/dist/models/product-class.d.ts +0 -80
- package/dist/models/product-class.js +0 -15
- package/dist/models/product-factor-class.d.ts +0 -61
- package/dist/models/product-factor-class.js +0 -15
- package/dist/models/product-factor-for-version-class.d.ts +0 -61
- package/dist/models/product-factor-for-version-class.js +0 -15
- package/dist/models/product-factor-value-class.d.ts +0 -60
- package/dist/models/product-factor-value-class.js +0 -15
- package/dist/models/product-factor-value-for-version-class.d.ts +0 -42
- package/dist/models/product-factor-value-for-version-class.js +0 -15
- package/dist/models/product-field-class.d.ts +0 -132
- package/dist/models/product-field-class.js +0 -15
- package/dist/models/product-field-type-class.d.ts +0 -48
- package/dist/models/product-field-type-class.js +0 -15
- package/dist/models/product-version-class.d.ts +0 -61
- package/dist/models/product-version-class.js +0 -22
- package/dist/models/sepa-dto.d.ts +0 -30
- package/dist/models/sepa-dto.js +0 -15
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +0 -56
- package/dist/models/shared-create-lead-policy-request-dto.js +0 -15
- package/dist/models/shared-invoice-class.d.ts +0 -150
- package/dist/models/shared-invoice-class.js +0 -30
- package/dist/models/shared-lead-policy-object-dto.d.ts +0 -42
- package/dist/models/shared-lead-policy-object-dto.js +0 -15
- package/dist/models/shared-product-field-class.d.ts +0 -132
- package/dist/models/shared-product-field-class.js +0 -15
- package/dist/models/shared-update-named-range-request-dto.d.ts +0 -42
- package/dist/models/shared-update-named-range-request-dto.js +0 -15
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -111
- package/dist/models/shared-update-premium-formula-request-dto.js +0 -39
- package/dist/models/store-product-factors-request-dto.d.ts +0 -31
- package/dist/models/store-product-factors-request-dto.js +0 -15
- package/dist/models/store-product-factors-response-class.d.ts +0 -25
- package/dist/models/store-product-factors-response-class.js +0 -15
- package/dist/models/suspend-policy-request-dto.d.ts +0 -24
- package/dist/models/suspend-policy-request-dto.js +0 -15
- package/dist/models/suspend-policy-response-class.d.ts +0 -25
- package/dist/models/suspend-policy-response-class.js +0 -15
- package/dist/models/swap-premium-formulas-order-request-dto.d.ts +0 -30
- package/dist/models/swap-premium-formulas-order-request-dto.js +0 -15
- package/dist/models/terminate-policy-request-dto.d.ts +0 -24
- package/dist/models/terminate-policy-request-dto.js +0 -15
- package/dist/models/terminate-policy-response-class.d.ts +0 -25
- package/dist/models/terminate-policy-response-class.js +0 -15
- package/dist/models/timeslice-class.d.ts +0 -62
- package/dist/models/timeslice-class.js +0 -15
- package/dist/models/update-insured-object-request-dto.d.ts +0 -66
- package/dist/models/update-insured-object-request-dto.js +0 -15
- package/dist/models/update-lead-request-dto.d.ts +0 -90
- package/dist/models/update-lead-request-dto.js +0 -15
- package/dist/models/update-lead-response-class.d.ts +0 -25
- package/dist/models/update-lead-response-class.js +0 -15
- package/dist/models/update-named-range-request-dto.d.ts +0 -36
- package/dist/models/update-named-range-request-dto.js +0 -15
- package/dist/models/update-named-range-response-class.d.ts +0 -25
- package/dist/models/update-named-range-response-class.js +0 -15
- package/dist/models/update-policy-request-dto.d.ts +0 -70
- package/dist/models/update-policy-request-dto.js +0 -23
- package/dist/models/update-policy-response-class.d.ts +0 -25
- package/dist/models/update-policy-response-class.js +0 -15
- package/dist/models/update-premium-formula-request-dto.d.ts +0 -105
- package/dist/models/update-premium-formula-request-dto.js +0 -39
- package/dist/models/update-premium-formula-response-class.d.ts +0 -25
- package/dist/models/update-premium-formula-response-class.js +0 -15
- package/dist/models/update-product-field-request-dto.d.ts +0 -143
- package/dist/models/update-product-field-request-dto.js +0 -20
- package/dist/models/update-product-field-response-class.d.ts +0 -25
- package/dist/models/update-product-field-response-class.js +0 -15
- package/dist/models/update-product-request-dto.d.ts +0 -42
- package/dist/models/update-product-request-dto.js +0 -15
- package/dist/models/update-product-response-class.d.ts +0 -25
- package/dist/models/update-product-response-class.js +0 -15
- package/dist/models/update-product-version-request-dto.d.ts +0 -43
- package/dist/models/update-product-version-request-dto.js +0 -22
- package/dist/models/update-product-version-response-class.d.ts +0 -25
- package/dist/models/update-product-version-response-class.js +0 -15
- package/dist/models/uploaded-document-dto.d.ts +0 -24
- package/dist/models/uploaded-document-dto.js +0 -15
- package/dist/models/validate-product-factors-request-dto.d.ts +0 -31
- package/dist/models/validate-product-factors-request-dto.js +0 -15
- package/dist/models/withdraw-policy-response-class.d.ts +0 -25
- package/dist/models/withdraw-policy-response-class.js +0 -15
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL InsuranceService
|
|
6
|
-
* The EMIL InsuranceService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
-
};
|
|
80
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.LeadStatusesApi = exports.LeadStatusesApiFactory = exports.LeadStatusesApiFp = exports.LeadStatusesApiAxiosParamCreator = void 0;
|
|
82
|
-
var axios_1 = __importDefault(require("axios"));
|
|
83
|
-
// Some imports not used depending on template conditions
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
var common_1 = require("../common");
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var base_1 = require("../base");
|
|
88
|
-
// URLSearchParams not necessarily used
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
var url_1 = require("url");
|
|
91
|
-
var FormData = require('form-data');
|
|
92
|
-
/**
|
|
93
|
-
* LeadStatusesApi - axios parameter creator
|
|
94
|
-
* @export
|
|
95
|
-
*/
|
|
96
|
-
var LeadStatusesApiAxiosParamCreator = function (configuration) {
|
|
97
|
-
var _this = this;
|
|
98
|
-
return {
|
|
99
|
-
/**
|
|
100
|
-
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
101
|
-
* @summary Create the lead status
|
|
102
|
-
* @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
|
|
103
|
-
* @param {string} [authorization] Bearer Token
|
|
104
|
-
* @param {*} [options] Override http request option.
|
|
105
|
-
* @throws {RequiredError}
|
|
106
|
-
*/
|
|
107
|
-
createLeadStatus: function (createLeadStatusRequestDto, authorization, options) {
|
|
108
|
-
if (options === void 0) { options = {}; }
|
|
109
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
-
return __generator(this, function (_a) {
|
|
112
|
-
switch (_a.label) {
|
|
113
|
-
case 0:
|
|
114
|
-
// verify required parameter 'createLeadStatusRequestDto' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('createLeadStatus', 'createLeadStatusRequestDto', createLeadStatusRequestDto);
|
|
116
|
-
localVarPath = "/insuranceservice/v1/lead-statuses";
|
|
117
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
-
if (configuration) {
|
|
119
|
-
baseOptions = configuration.baseOptions;
|
|
120
|
-
baseAccessToken = configuration.accessToken;
|
|
121
|
-
}
|
|
122
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
-
localVarHeaderParameter = {};
|
|
124
|
-
localVarQueryParameter = {};
|
|
125
|
-
// authentication bearer required
|
|
126
|
-
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
-
case 1:
|
|
129
|
-
// authentication bearer required
|
|
130
|
-
// http bearer authentication required
|
|
131
|
-
_a.sent();
|
|
132
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
-
}
|
|
135
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLeadStatusRequestDto, localVarRequestOptions, configuration);
|
|
140
|
-
return [2 /*return*/, {
|
|
141
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
-
options: localVarRequestOptions,
|
|
143
|
-
}];
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
149
|
-
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
150
|
-
* @summary Delete the lead status
|
|
151
|
-
* @param {number} id
|
|
152
|
-
* @param {string} [authorization] Bearer Token
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
deleteLeadStatus: function (id, authorization, options) {
|
|
157
|
-
if (options === void 0) { options = {}; }
|
|
158
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
// verify required parameter 'id' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('deleteLeadStatus', 'id', id);
|
|
165
|
-
localVarPath = "/insuranceservice/v1/lead-statuses/{id}"
|
|
166
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
167
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
-
if (configuration) {
|
|
169
|
-
baseOptions = configuration.baseOptions;
|
|
170
|
-
baseAccessToken = configuration.accessToken;
|
|
171
|
-
}
|
|
172
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
173
|
-
localVarHeaderParameter = {};
|
|
174
|
-
localVarQueryParameter = {};
|
|
175
|
-
// authentication bearer required
|
|
176
|
-
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
-
case 1:
|
|
179
|
-
// authentication bearer required
|
|
180
|
-
// http bearer authentication required
|
|
181
|
-
_a.sent();
|
|
182
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
-
}
|
|
185
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
return [2 /*return*/, {
|
|
189
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
-
options: localVarRequestOptions,
|
|
191
|
-
}];
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
198
|
-
* @summary Retrieve the lead status
|
|
199
|
-
* @param {number} id
|
|
200
|
-
* @param {string} [authorization] Bearer Token
|
|
201
|
-
* @param {*} [options] Override http request option.
|
|
202
|
-
* @throws {RequiredError}
|
|
203
|
-
*/
|
|
204
|
-
getLeadStatus: function (id, authorization, options) {
|
|
205
|
-
if (options === void 0) { options = {}; }
|
|
206
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
207
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
208
|
-
return __generator(this, function (_a) {
|
|
209
|
-
switch (_a.label) {
|
|
210
|
-
case 0:
|
|
211
|
-
// verify required parameter 'id' is not null or undefined
|
|
212
|
-
(0, common_1.assertParamExists)('getLeadStatus', 'id', id);
|
|
213
|
-
localVarPath = "/insuranceservice/v1/lead-statuses/{id}"
|
|
214
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
215
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
|
-
if (configuration) {
|
|
217
|
-
baseOptions = configuration.baseOptions;
|
|
218
|
-
baseAccessToken = configuration.accessToken;
|
|
219
|
-
}
|
|
220
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
221
|
-
localVarHeaderParameter = {};
|
|
222
|
-
localVarQueryParameter = {};
|
|
223
|
-
// authentication bearer required
|
|
224
|
-
// http bearer authentication required
|
|
225
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
226
|
-
case 1:
|
|
227
|
-
// authentication bearer required
|
|
228
|
-
// http bearer authentication required
|
|
229
|
-
_a.sent();
|
|
230
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
|
-
}
|
|
233
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
-
return [2 /*return*/, {
|
|
237
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
238
|
-
options: localVarRequestOptions,
|
|
239
|
-
}];
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
},
|
|
244
|
-
/**
|
|
245
|
-
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
246
|
-
* @summary List lead statuses
|
|
247
|
-
* @param {string} [authorization] Bearer Token
|
|
248
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
249
|
-
* @param {*} [options] Override http request option.
|
|
250
|
-
* @throws {RequiredError}
|
|
251
|
-
*/
|
|
252
|
-
listLeadStatuses: function (authorization, filter, options) {
|
|
253
|
-
if (options === void 0) { options = {}; }
|
|
254
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
255
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
256
|
-
return __generator(this, function (_a) {
|
|
257
|
-
switch (_a.label) {
|
|
258
|
-
case 0:
|
|
259
|
-
localVarPath = "/insuranceservice/v1/lead-statuses";
|
|
260
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
|
-
if (configuration) {
|
|
262
|
-
baseOptions = configuration.baseOptions;
|
|
263
|
-
baseAccessToken = configuration.accessToken;
|
|
264
|
-
}
|
|
265
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
266
|
-
localVarHeaderParameter = {};
|
|
267
|
-
localVarQueryParameter = {};
|
|
268
|
-
// authentication bearer required
|
|
269
|
-
// http bearer authentication required
|
|
270
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
271
|
-
case 1:
|
|
272
|
-
// authentication bearer required
|
|
273
|
-
// http bearer authentication required
|
|
274
|
-
_a.sent();
|
|
275
|
-
if (filter !== undefined) {
|
|
276
|
-
localVarQueryParameter['filter'] = filter;
|
|
277
|
-
}
|
|
278
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
280
|
-
}
|
|
281
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
282
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
283
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
284
|
-
return [2 /*return*/, {
|
|
285
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
286
|
-
options: localVarRequestOptions,
|
|
287
|
-
}];
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
});
|
|
291
|
-
},
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
exports.LeadStatusesApiAxiosParamCreator = LeadStatusesApiAxiosParamCreator;
|
|
295
|
-
/**
|
|
296
|
-
* LeadStatusesApi - functional programming interface
|
|
297
|
-
* @export
|
|
298
|
-
*/
|
|
299
|
-
var LeadStatusesApiFp = function (configuration) {
|
|
300
|
-
var localVarAxiosParamCreator = (0, exports.LeadStatusesApiAxiosParamCreator)(configuration);
|
|
301
|
-
return {
|
|
302
|
-
/**
|
|
303
|
-
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
304
|
-
* @summary Create the lead status
|
|
305
|
-
* @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
|
|
306
|
-
* @param {string} [authorization] Bearer Token
|
|
307
|
-
* @param {*} [options] Override http request option.
|
|
308
|
-
* @throws {RequiredError}
|
|
309
|
-
*/
|
|
310
|
-
createLeadStatus: function (createLeadStatusRequestDto, authorization, options) {
|
|
311
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
-
var localVarAxiosArgs;
|
|
313
|
-
return __generator(this, function (_a) {
|
|
314
|
-
switch (_a.label) {
|
|
315
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLeadStatus(createLeadStatusRequestDto, authorization, options)];
|
|
316
|
-
case 1:
|
|
317
|
-
localVarAxiosArgs = _a.sent();
|
|
318
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
},
|
|
323
|
-
/**
|
|
324
|
-
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
325
|
-
* @summary Delete the lead status
|
|
326
|
-
* @param {number} id
|
|
327
|
-
* @param {string} [authorization] Bearer Token
|
|
328
|
-
* @param {*} [options] Override http request option.
|
|
329
|
-
* @throws {RequiredError}
|
|
330
|
-
*/
|
|
331
|
-
deleteLeadStatus: function (id, authorization, options) {
|
|
332
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
333
|
-
var localVarAxiosArgs;
|
|
334
|
-
return __generator(this, function (_a) {
|
|
335
|
-
switch (_a.label) {
|
|
336
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLeadStatus(id, authorization, options)];
|
|
337
|
-
case 1:
|
|
338
|
-
localVarAxiosArgs = _a.sent();
|
|
339
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
},
|
|
344
|
-
/**
|
|
345
|
-
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
346
|
-
* @summary Retrieve the lead status
|
|
347
|
-
* @param {number} id
|
|
348
|
-
* @param {string} [authorization] Bearer Token
|
|
349
|
-
* @param {*} [options] Override http request option.
|
|
350
|
-
* @throws {RequiredError}
|
|
351
|
-
*/
|
|
352
|
-
getLeadStatus: function (id, authorization, options) {
|
|
353
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
354
|
-
var localVarAxiosArgs;
|
|
355
|
-
return __generator(this, function (_a) {
|
|
356
|
-
switch (_a.label) {
|
|
357
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLeadStatus(id, authorization, options)];
|
|
358
|
-
case 1:
|
|
359
|
-
localVarAxiosArgs = _a.sent();
|
|
360
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
});
|
|
364
|
-
},
|
|
365
|
-
/**
|
|
366
|
-
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
367
|
-
* @summary List lead statuses
|
|
368
|
-
* @param {string} [authorization] Bearer Token
|
|
369
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
370
|
-
* @param {*} [options] Override http request option.
|
|
371
|
-
* @throws {RequiredError}
|
|
372
|
-
*/
|
|
373
|
-
listLeadStatuses: function (authorization, filter, options) {
|
|
374
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
375
|
-
var localVarAxiosArgs;
|
|
376
|
-
return __generator(this, function (_a) {
|
|
377
|
-
switch (_a.label) {
|
|
378
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeadStatuses(authorization, filter, options)];
|
|
379
|
-
case 1:
|
|
380
|
-
localVarAxiosArgs = _a.sent();
|
|
381
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
},
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
exports.LeadStatusesApiFp = LeadStatusesApiFp;
|
|
389
|
-
/**
|
|
390
|
-
* LeadStatusesApi - factory interface
|
|
391
|
-
* @export
|
|
392
|
-
*/
|
|
393
|
-
var LeadStatusesApiFactory = function (configuration, basePath, axios) {
|
|
394
|
-
var localVarFp = (0, exports.LeadStatusesApiFp)(configuration);
|
|
395
|
-
return {
|
|
396
|
-
/**
|
|
397
|
-
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
398
|
-
* @summary Create the lead status
|
|
399
|
-
* @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
|
|
400
|
-
* @param {string} [authorization] Bearer Token
|
|
401
|
-
* @param {*} [options] Override http request option.
|
|
402
|
-
* @throws {RequiredError}
|
|
403
|
-
*/
|
|
404
|
-
createLeadStatus: function (createLeadStatusRequestDto, authorization, options) {
|
|
405
|
-
return localVarFp.createLeadStatus(createLeadStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
406
|
-
},
|
|
407
|
-
/**
|
|
408
|
-
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
409
|
-
* @summary Delete the lead status
|
|
410
|
-
* @param {number} id
|
|
411
|
-
* @param {string} [authorization] Bearer Token
|
|
412
|
-
* @param {*} [options] Override http request option.
|
|
413
|
-
* @throws {RequiredError}
|
|
414
|
-
*/
|
|
415
|
-
deleteLeadStatus: function (id, authorization, options) {
|
|
416
|
-
return localVarFp.deleteLeadStatus(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
417
|
-
},
|
|
418
|
-
/**
|
|
419
|
-
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
420
|
-
* @summary Retrieve the lead status
|
|
421
|
-
* @param {number} id
|
|
422
|
-
* @param {string} [authorization] Bearer Token
|
|
423
|
-
* @param {*} [options] Override http request option.
|
|
424
|
-
* @throws {RequiredError}
|
|
425
|
-
*/
|
|
426
|
-
getLeadStatus: function (id, authorization, options) {
|
|
427
|
-
return localVarFp.getLeadStatus(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
428
|
-
},
|
|
429
|
-
/**
|
|
430
|
-
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
431
|
-
* @summary List lead statuses
|
|
432
|
-
* @param {string} [authorization] Bearer Token
|
|
433
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
434
|
-
* @param {*} [options] Override http request option.
|
|
435
|
-
* @throws {RequiredError}
|
|
436
|
-
*/
|
|
437
|
-
listLeadStatuses: function (authorization, filter, options) {
|
|
438
|
-
return localVarFp.listLeadStatuses(authorization, filter, options).then(function (request) { return request(axios, basePath); });
|
|
439
|
-
},
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
exports.LeadStatusesApiFactory = LeadStatusesApiFactory;
|
|
443
|
-
/**
|
|
444
|
-
* LeadStatusesApi - object-oriented interface
|
|
445
|
-
* @export
|
|
446
|
-
* @class LeadStatusesApi
|
|
447
|
-
* @extends {BaseAPI}
|
|
448
|
-
*/
|
|
449
|
-
var LeadStatusesApi = /** @class */ (function (_super) {
|
|
450
|
-
__extends(LeadStatusesApi, _super);
|
|
451
|
-
function LeadStatusesApi() {
|
|
452
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
456
|
-
* @summary Create the lead status
|
|
457
|
-
* @param {LeadStatusesApiCreateLeadStatusRequest} requestParameters Request parameters.
|
|
458
|
-
* @param {*} [options] Override http request option.
|
|
459
|
-
* @throws {RequiredError}
|
|
460
|
-
* @memberof LeadStatusesApi
|
|
461
|
-
*/
|
|
462
|
-
LeadStatusesApi.prototype.createLeadStatus = function (requestParameters, options) {
|
|
463
|
-
var _this = this;
|
|
464
|
-
return (0, exports.LeadStatusesApiFp)(this.configuration).createLeadStatus(requestParameters.createLeadStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
465
|
-
};
|
|
466
|
-
/**
|
|
467
|
-
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
468
|
-
* @summary Delete the lead status
|
|
469
|
-
* @param {LeadStatusesApiDeleteLeadStatusRequest} requestParameters Request parameters.
|
|
470
|
-
* @param {*} [options] Override http request option.
|
|
471
|
-
* @throws {RequiredError}
|
|
472
|
-
* @memberof LeadStatusesApi
|
|
473
|
-
*/
|
|
474
|
-
LeadStatusesApi.prototype.deleteLeadStatus = function (requestParameters, options) {
|
|
475
|
-
var _this = this;
|
|
476
|
-
return (0, exports.LeadStatusesApiFp)(this.configuration).deleteLeadStatus(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
480
|
-
* @summary Retrieve the lead status
|
|
481
|
-
* @param {LeadStatusesApiGetLeadStatusRequest} requestParameters Request parameters.
|
|
482
|
-
* @param {*} [options] Override http request option.
|
|
483
|
-
* @throws {RequiredError}
|
|
484
|
-
* @memberof LeadStatusesApi
|
|
485
|
-
*/
|
|
486
|
-
LeadStatusesApi.prototype.getLeadStatus = function (requestParameters, options) {
|
|
487
|
-
var _this = this;
|
|
488
|
-
return (0, exports.LeadStatusesApiFp)(this.configuration).getLeadStatus(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
489
|
-
};
|
|
490
|
-
/**
|
|
491
|
-
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
492
|
-
* @summary List lead statuses
|
|
493
|
-
* @param {LeadStatusesApiListLeadStatusesRequest} requestParameters Request parameters.
|
|
494
|
-
* @param {*} [options] Override http request option.
|
|
495
|
-
* @throws {RequiredError}
|
|
496
|
-
* @memberof LeadStatusesApi
|
|
497
|
-
*/
|
|
498
|
-
LeadStatusesApi.prototype.listLeadStatuses = function (requestParameters, options) {
|
|
499
|
-
var _this = this;
|
|
500
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
501
|
-
return (0, exports.LeadStatusesApiFp)(this.configuration).listLeadStatuses(requestParameters.authorization, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
502
|
-
};
|
|
503
|
-
return LeadStatusesApi;
|
|
504
|
-
}(base_1.BaseAPI));
|
|
505
|
-
exports.LeadStatusesApi = LeadStatusesApi;
|