@emilgroup/insurance-sdk-node 1.10.1 → 1.11.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 +2 -1
- package/README.md +2 -2
- package/api/leads-api.ts +13 -15
- package/base.ts +1 -1
- package/dist/api/leads-api.d.ts +10 -10
- package/dist/api/leads-api.js +9 -11
- package/dist/base.js +1 -1
- package/dist/models/create-insured-object-request-dto.d.ts +20 -2
- package/dist/models/create-lead-request-dto.d.ts +18 -12
- package/dist/models/currency-class.d.ts +1 -1
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/models/insured-object-class.d.ts +18 -0
- package/dist/models/invoice-item-class.d.ts +1 -1
- package/dist/models/invoice-status-class.d.ts +1 -1
- package/dist/models/lead-class.d.ts +9 -3
- package/dist/models/patch-lead-request-dto.d.ts +77 -0
- package/dist/models/{invoice-class.d.ts → shared-invoice-class.d.ts} +40 -24
- package/dist/models/shared-invoice-class.js +30 -0
- package/dist/models/update-insured-object-request-dto.d.ts +18 -0
- package/dist/models/update-lead-request-dto.d.ts +12 -0
- package/models/create-insured-object-request-dto.ts +20 -2
- package/models/create-lead-request-dto.ts +18 -12
- package/models/currency-class.ts +1 -1
- package/models/index.ts +2 -1
- package/models/insured-object-class.ts +18 -0
- package/models/invoice-item-class.ts +1 -1
- package/models/invoice-status-class.ts +1 -1
- package/models/lead-class.ts +9 -3
- package/models/patch-lead-request-dto.ts +83 -0
- package/models/{invoice-class.ts → shared-invoice-class.ts} +44 -24
- package/models/update-insured-object-request-dto.ts +18 -0
- package/models/update-lead-request-dto.ts +12 -0
- package/package.json +1 -1
- /package/dist/models/{invoice-class.js → patch-lead-request-dto.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -68,7 +68,6 @@ models/grouped-product-factors-response-class.ts
|
|
|
68
68
|
models/index.ts
|
|
69
69
|
models/insured-object-class.ts
|
|
70
70
|
models/insured-object-type-class.ts
|
|
71
|
-
models/invoice-class.ts
|
|
72
71
|
models/invoice-item-class.ts
|
|
73
72
|
models/invoice-status-class.ts
|
|
74
73
|
models/lead-bank-account-class.ts
|
|
@@ -85,6 +84,7 @@ models/list-product-field-types-response-class.ts
|
|
|
85
84
|
models/list-product-fields-response-class.ts
|
|
86
85
|
models/list-products-response-class.ts
|
|
87
86
|
models/list-request-dto.ts
|
|
87
|
+
models/patch-lead-request-dto.ts
|
|
88
88
|
models/policy-class.ts
|
|
89
89
|
models/policy-object-class.ts
|
|
90
90
|
models/policy-object-dto.ts
|
|
@@ -101,6 +101,7 @@ models/product-factor-value-class.ts
|
|
|
101
101
|
models/product-field-class.ts
|
|
102
102
|
models/product-field-type-class.ts
|
|
103
103
|
models/product-version-class.ts
|
|
104
|
+
models/shared-invoice-class.ts
|
|
104
105
|
models/shared-product-field-class.ts
|
|
105
106
|
models/shared-update-premium-formula-request-dto.ts
|
|
106
107
|
models/store-product-factors-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/insurance-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.11.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.11.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -93,16 +93,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
93
93
|
* 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.
|
|
94
94
|
* @summary Retrieve the lead
|
|
95
95
|
* @param {string} code Unique identifier for the object.
|
|
96
|
-
* @param {string} expand
|
|
97
96
|
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {string} [expand]
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
|
-
getLead: async (code: string,
|
|
101
|
+
getLead: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
102
|
// verify required parameter 'code' is not null or undefined
|
|
103
103
|
assertParamExists('getLead', 'code', code)
|
|
104
|
-
// verify required parameter 'expand' is not null or undefined
|
|
105
|
-
assertParamExists('getLead', 'expand', expand)
|
|
106
104
|
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
107
105
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
108
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -289,13 +287,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
289
287
|
* 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.
|
|
290
288
|
* @summary Retrieve the lead
|
|
291
289
|
* @param {string} code Unique identifier for the object.
|
|
292
|
-
* @param {string} expand
|
|
293
290
|
* @param {string} [authorization] Bearer Token
|
|
291
|
+
* @param {string} [expand]
|
|
294
292
|
* @param {*} [options] Override http request option.
|
|
295
293
|
* @throws {RequiredError}
|
|
296
294
|
*/
|
|
297
|
-
async getLead(code: string,
|
|
298
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code,
|
|
295
|
+
async getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, expand, options);
|
|
299
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
300
298
|
},
|
|
301
299
|
/**
|
|
@@ -353,13 +351,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
353
351
|
* 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.
|
|
354
352
|
* @summary Retrieve the lead
|
|
355
353
|
* @param {string} code Unique identifier for the object.
|
|
356
|
-
* @param {string} expand
|
|
357
354
|
* @param {string} [authorization] Bearer Token
|
|
355
|
+
* @param {string} [expand]
|
|
358
356
|
* @param {*} [options] Override http request option.
|
|
359
357
|
* @throws {RequiredError}
|
|
360
358
|
*/
|
|
361
|
-
getLead(code: string,
|
|
362
|
-
return localVarFp.getLead(code,
|
|
359
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
360
|
+
return localVarFp.getLead(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
363
361
|
},
|
|
364
362
|
/**
|
|
365
363
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -427,18 +425,18 @@ export interface LeadsApiGetLeadRequest {
|
|
|
427
425
|
readonly code: string
|
|
428
426
|
|
|
429
427
|
/**
|
|
430
|
-
*
|
|
428
|
+
* Bearer Token
|
|
431
429
|
* @type {string}
|
|
432
430
|
* @memberof LeadsApiGetLead
|
|
433
431
|
*/
|
|
434
|
-
readonly
|
|
432
|
+
readonly authorization?: string
|
|
435
433
|
|
|
436
434
|
/**
|
|
437
|
-
*
|
|
435
|
+
*
|
|
438
436
|
* @type {string}
|
|
439
437
|
* @memberof LeadsApiGetLead
|
|
440
438
|
*/
|
|
441
|
-
readonly
|
|
439
|
+
readonly expand?: string
|
|
442
440
|
}
|
|
443
441
|
|
|
444
442
|
/**
|
|
@@ -553,7 +551,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
553
551
|
* @memberof LeadsApi
|
|
554
552
|
*/
|
|
555
553
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
556
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
554
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
557
555
|
}
|
|
558
556
|
|
|
559
557
|
/**
|
package/base.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -36,12 +36,12 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
36
36
|
* 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.
|
|
37
37
|
* @summary Retrieve the lead
|
|
38
38
|
* @param {string} code Unique identifier for the object.
|
|
39
|
-
* @param {string} expand
|
|
40
39
|
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {string} [expand]
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
getLead: (code: string,
|
|
44
|
+
getLead: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
46
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
47
47
|
* @summary List leads
|
|
@@ -85,12 +85,12 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
85
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.
|
|
86
86
|
* @summary Retrieve the lead
|
|
87
87
|
* @param {string} code Unique identifier for the object.
|
|
88
|
-
* @param {string} expand
|
|
89
88
|
* @param {string} [authorization] Bearer Token
|
|
89
|
+
* @param {string} [expand]
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
|
-
getLead(code: string,
|
|
93
|
+
getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
94
94
|
/**
|
|
95
95
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
96
96
|
* @summary List leads
|
|
@@ -134,12 +134,12 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
134
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.
|
|
135
135
|
* @summary Retrieve the lead
|
|
136
136
|
* @param {string} code Unique identifier for the object.
|
|
137
|
-
* @param {string} expand
|
|
138
137
|
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @param {string} [expand]
|
|
139
139
|
* @param {*} [options] Override http request option.
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
*/
|
|
142
|
-
getLead(code: string,
|
|
142
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
143
143
|
/**
|
|
144
144
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
145
145
|
* @summary List leads
|
|
@@ -197,17 +197,17 @@ export interface LeadsApiGetLeadRequest {
|
|
|
197
197
|
*/
|
|
198
198
|
readonly code: string;
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
200
|
+
* Bearer Token
|
|
201
201
|
* @type {string}
|
|
202
202
|
* @memberof LeadsApiGetLead
|
|
203
203
|
*/
|
|
204
|
-
readonly
|
|
204
|
+
readonly authorization?: string;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
*
|
|
207
207
|
* @type {string}
|
|
208
208
|
* @memberof LeadsApiGetLead
|
|
209
209
|
*/
|
|
210
|
-
readonly
|
|
210
|
+
readonly expand?: string;
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* Request parameters for listLeads operation in LeadsApi.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -149,12 +149,12 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
* 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.
|
|
150
150
|
* @summary Retrieve the lead
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
|
-
* @param {string} expand
|
|
153
152
|
* @param {string} [authorization] Bearer Token
|
|
153
|
+
* @param {string} [expand]
|
|
154
154
|
* @param {*} [options] Override http request option.
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
157
|
-
getLead: function (code,
|
|
157
|
+
getLead: function (code, authorization, expand, options) {
|
|
158
158
|
if (options === void 0) { options = {}; }
|
|
159
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
160
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -163,8 +163,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
163
163
|
case 0:
|
|
164
164
|
// verify required parameter 'code' is not null or undefined
|
|
165
165
|
(0, common_1.assertParamExists)('getLead', 'code', code);
|
|
166
|
-
// verify required parameter 'expand' is not null or undefined
|
|
167
|
-
(0, common_1.assertParamExists)('getLead', 'expand', expand);
|
|
168
166
|
localVarPath = "/insuranceservice/v1/leads/{code}"
|
|
169
167
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
170
168
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -355,17 +353,17 @@ var LeadsApiFp = function (configuration) {
|
|
|
355
353
|
* 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.
|
|
356
354
|
* @summary Retrieve the lead
|
|
357
355
|
* @param {string} code Unique identifier for the object.
|
|
358
|
-
* @param {string} expand
|
|
359
356
|
* @param {string} [authorization] Bearer Token
|
|
357
|
+
* @param {string} [expand]
|
|
360
358
|
* @param {*} [options] Override http request option.
|
|
361
359
|
* @throws {RequiredError}
|
|
362
360
|
*/
|
|
363
|
-
getLead: function (code,
|
|
361
|
+
getLead: function (code, authorization, expand, options) {
|
|
364
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
365
363
|
var localVarAxiosArgs;
|
|
366
364
|
return __generator(this, function (_a) {
|
|
367
365
|
switch (_a.label) {
|
|
368
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code,
|
|
366
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, authorization, expand, options)];
|
|
369
367
|
case 1:
|
|
370
368
|
localVarAxiosArgs = _a.sent();
|
|
371
369
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -446,13 +444,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
446
444
|
* 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.
|
|
447
445
|
* @summary Retrieve the lead
|
|
448
446
|
* @param {string} code Unique identifier for the object.
|
|
449
|
-
* @param {string} expand
|
|
450
447
|
* @param {string} [authorization] Bearer Token
|
|
448
|
+
* @param {string} [expand]
|
|
451
449
|
* @param {*} [options] Override http request option.
|
|
452
450
|
* @throws {RequiredError}
|
|
453
451
|
*/
|
|
454
|
-
getLead: function (code,
|
|
455
|
-
return localVarFp.getLead(code,
|
|
452
|
+
getLead: function (code, authorization, expand, options) {
|
|
453
|
+
return localVarFp.getLead(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
456
454
|
},
|
|
457
455
|
/**
|
|
458
456
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -518,7 +516,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
518
516
|
*/
|
|
519
517
|
LeadsApi.prototype.getLead = function (requestParameters, options) {
|
|
520
518
|
var _this = this;
|
|
521
|
-
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
519
|
+
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
522
520
|
};
|
|
523
521
|
/**
|
|
524
522
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
package/dist/base.js
CHANGED
|
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
109
109
|
var fs = __importStar(require("fs"));
|
|
110
110
|
var path = __importStar(require("path"));
|
|
111
111
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
112
|
+
exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
113
113
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
114
|
var CONFIG_FILENAME = 'credentials';
|
|
115
115
|
var KEY_USERNAME = 'emil_username';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateInsuredObjectRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
* Unique identifier referencing the
|
|
19
|
+
* Unique identifier referencing the Product version.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof CreateInsuredObjectRequestDto
|
|
22
22
|
*/
|
|
@@ -34,9 +34,27 @@ export interface CreateInsuredObjectRequestDto {
|
|
|
34
34
|
*/
|
|
35
35
|
'label': string;
|
|
36
36
|
/**
|
|
37
|
-
* Unique identifier referencing the
|
|
37
|
+
* Unique identifier referencing the Insured object type.
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof CreateInsuredObjectRequestDto
|
|
40
40
|
*/
|
|
41
41
|
'insuredObjectTypeId': number;
|
|
42
|
+
/**
|
|
43
|
+
* Insured object count.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CreateInsuredObjectRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'count'?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Minimum insured object count.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreateInsuredObjectRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'min'?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum insured object count.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CreateInsuredObjectRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'max'?: number;
|
|
42
60
|
}
|
|
@@ -32,6 +32,24 @@ export interface CreateLeadRequestDto {
|
|
|
32
32
|
* @memberof CreateLeadRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'productVersionId'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Account code. The create lead request should either contain accountCode or account.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateLeadRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'accountCode'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Account. The create lead request should either contain accountCode or account.
|
|
43
|
+
* @type {CreateAccountRequestDto}
|
|
44
|
+
* @memberof CreateLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'account'?: CreateAccountRequestDto;
|
|
47
|
+
/**
|
|
48
|
+
* Policy
|
|
49
|
+
* @type {CreatePolicyRequestDto}
|
|
50
|
+
* @memberof CreateLeadRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'policy': CreatePolicyRequestDto;
|
|
35
53
|
/**
|
|
36
54
|
* Bank account details.
|
|
37
55
|
* @type {CreateBankAccountRequestDto}
|
|
@@ -62,16 +80,4 @@ export interface CreateLeadRequestDto {
|
|
|
62
80
|
* @memberof CreateLeadRequestDto
|
|
63
81
|
*/
|
|
64
82
|
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {CreateAccountRequestDto}
|
|
68
|
-
* @memberof CreateLeadRequestDto
|
|
69
|
-
*/
|
|
70
|
-
'account': CreateAccountRequestDto;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {CreatePolicyRequestDto}
|
|
74
|
-
* @memberof CreateLeadRequestDto
|
|
75
|
-
*/
|
|
76
|
-
'policy': CreatePolicyRequestDto;
|
|
77
83
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -47,7 +47,6 @@ export * from './grouped-product-factor-value-class';
|
|
|
47
47
|
export * from './grouped-product-factors-response-class';
|
|
48
48
|
export * from './insured-object-class';
|
|
49
49
|
export * from './insured-object-type-class';
|
|
50
|
-
export * from './invoice-class';
|
|
51
50
|
export * from './invoice-item-class';
|
|
52
51
|
export * from './invoice-status-class';
|
|
53
52
|
export * from './lead-bank-account-class';
|
|
@@ -64,6 +63,7 @@ export * from './list-product-field-types-response-class';
|
|
|
64
63
|
export * from './list-product-fields-response-class';
|
|
65
64
|
export * from './list-products-response-class';
|
|
66
65
|
export * from './list-request-dto';
|
|
66
|
+
export * from './patch-lead-request-dto';
|
|
67
67
|
export * from './policy-class';
|
|
68
68
|
export * from './policy-object-class';
|
|
69
69
|
export * from './policy-object-dto';
|
|
@@ -80,6 +80,7 @@ export * from './product-factor-value-class';
|
|
|
80
80
|
export * from './product-field-class';
|
|
81
81
|
export * from './product-field-type-class';
|
|
82
82
|
export * from './product-version-class';
|
|
83
|
+
export * from './shared-invoice-class';
|
|
83
84
|
export * from './shared-product-field-class';
|
|
84
85
|
export * from './shared-update-premium-formula-request-dto';
|
|
85
86
|
export * from './store-product-factors-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -63,7 +63,6 @@ __exportStar(require("./grouped-product-factor-value-class"), exports);
|
|
|
63
63
|
__exportStar(require("./grouped-product-factors-response-class"), exports);
|
|
64
64
|
__exportStar(require("./insured-object-class"), exports);
|
|
65
65
|
__exportStar(require("./insured-object-type-class"), exports);
|
|
66
|
-
__exportStar(require("./invoice-class"), exports);
|
|
67
66
|
__exportStar(require("./invoice-item-class"), exports);
|
|
68
67
|
__exportStar(require("./invoice-status-class"), exports);
|
|
69
68
|
__exportStar(require("./lead-bank-account-class"), exports);
|
|
@@ -80,6 +79,7 @@ __exportStar(require("./list-product-field-types-response-class"), exports);
|
|
|
80
79
|
__exportStar(require("./list-product-fields-response-class"), exports);
|
|
81
80
|
__exportStar(require("./list-products-response-class"), exports);
|
|
82
81
|
__exportStar(require("./list-request-dto"), exports);
|
|
82
|
+
__exportStar(require("./patch-lead-request-dto"), exports);
|
|
83
83
|
__exportStar(require("./policy-class"), exports);
|
|
84
84
|
__exportStar(require("./policy-object-class"), exports);
|
|
85
85
|
__exportStar(require("./policy-object-dto"), exports);
|
|
@@ -96,6 +96,7 @@ __exportStar(require("./product-factor-value-class"), exports);
|
|
|
96
96
|
__exportStar(require("./product-field-class"), exports);
|
|
97
97
|
__exportStar(require("./product-field-type-class"), exports);
|
|
98
98
|
__exportStar(require("./product-version-class"), exports);
|
|
99
|
+
__exportStar(require("./shared-invoice-class"), exports);
|
|
99
100
|
__exportStar(require("./shared-product-field-class"), exports);
|
|
100
101
|
__exportStar(require("./shared-update-premium-formula-request-dto"), exports);
|
|
101
102
|
__exportStar(require("./store-product-factors-request-dto"), exports);
|
|
@@ -46,6 +46,24 @@ export interface InsuredObjectClass {
|
|
|
46
46
|
* @memberof InsuredObjectClass
|
|
47
47
|
*/
|
|
48
48
|
'insuredObjectTypeId': number;
|
|
49
|
+
/**
|
|
50
|
+
* Insured object count default to 1.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof InsuredObjectClass
|
|
53
|
+
*/
|
|
54
|
+
'count': number;
|
|
55
|
+
/**
|
|
56
|
+
* Minimum insured object count default to 0.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof InsuredObjectClass
|
|
59
|
+
*/
|
|
60
|
+
'min': number;
|
|
61
|
+
/**
|
|
62
|
+
* Maximum insured object count default to 1.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof InsuredObjectClass
|
|
65
|
+
*/
|
|
66
|
+
'max': number;
|
|
49
67
|
/**
|
|
50
68
|
* Product fields.
|
|
51
69
|
* @type {Array<SharedProductFieldClass>}
|
|
@@ -40,7 +40,7 @@ export interface InvoiceItemClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'taxCode': string;
|
|
42
42
|
/**
|
|
43
|
-
* Unit of Premium
|
|
43
|
+
* Unit of Premium units are determined based on time or distance.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof InvoiceItemClass
|
|
46
46
|
*/
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
13
13
|
import { CreatePolicyRequestDto } from './create-policy-request-dto';
|
|
14
|
-
import { InvoiceClass } from './invoice-class';
|
|
15
14
|
import { LeadBankAccountClass } from './lead-bank-account-class';
|
|
16
15
|
import { PremiumOverrideRequestClass } from './premium-override-request-class';
|
|
16
|
+
import { SharedInvoiceClass } from './shared-invoice-class';
|
|
17
17
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -33,6 +33,12 @@ export interface LeadClass {
|
|
|
33
33
|
* @memberof LeadClass
|
|
34
34
|
*/
|
|
35
35
|
'code'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier of the account that this object belongs to.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LeadClass
|
|
40
|
+
*/
|
|
41
|
+
'accountCode'?: string;
|
|
36
42
|
/**
|
|
37
43
|
* Lead status.
|
|
38
44
|
* @type {string}
|
|
@@ -95,8 +101,8 @@ export interface LeadClass {
|
|
|
95
101
|
'updatedAt': string;
|
|
96
102
|
/**
|
|
97
103
|
* Quote or price details.
|
|
98
|
-
* @type {
|
|
104
|
+
* @type {SharedInvoiceClass}
|
|
99
105
|
* @memberof LeadClass
|
|
100
106
|
*/
|
|
101
|
-
'quote':
|
|
107
|
+
'quote': SharedInvoiceClass;
|
|
102
108
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
13
|
+
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
14
|
+
import { CreatePolicyRequestDto } from './create-policy-request-dto';
|
|
15
|
+
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
16
|
+
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PatchLeadRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface PatchLeadRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier referencing the product version.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PatchLeadRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'productVersionId'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PatchLeadRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'status'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Custom data.
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof PatchLeadRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'customData'?: object;
|
|
41
|
+
/**
|
|
42
|
+
* Premium Override
|
|
43
|
+
* @type {Array<PremiumOverrideRequestDto>}
|
|
44
|
+
* @memberof PatchLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {CreateAccountRequestDto}
|
|
50
|
+
* @memberof PatchLeadRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'account'?: CreateAccountRequestDto;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CreatePolicyRequestDto}
|
|
56
|
+
* @memberof PatchLeadRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'policy'?: CreatePolicyRequestDto;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CreateBankAccountRequestDto}
|
|
62
|
+
* @memberof PatchLeadRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'bankAccount'?: CreateBankAccountRequestDto;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {UploadedDocumentDto}
|
|
68
|
+
* @memberof PatchLeadRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'uploadedDocument'?: UploadedDocumentDto;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PatchLeadRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'accountCode'?: string;
|
|
77
|
+
}
|