@emilgroup/insurance-sdk-node 1.11.0 → 1.13.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 +3 -0
- package/README.md +2 -2
- package/api/leads-api.ts +120 -0
- package/dist/api/leads-api.d.ts +66 -0
- package/dist/api/leads-api.js +99 -0
- package/dist/models/create-insured-object-request-dto.d.ts +7 -7
- package/dist/models/grpc-patch-lead-request-dto.d.ts +77 -0
- package/dist/models/grpc-patch-lead-request-dto.js +15 -0
- package/dist/models/grpc-update-lead-request-dto.d.ts +89 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/insured-object-class.d.ts +7 -7
- package/dist/models/patch-lead-request-dto.d.ts +22 -22
- package/dist/models/patch-lead-response-class.d.ts +25 -0
- package/dist/models/patch-lead-response-class.js +15 -0
- package/dist/models/update-insured-object-request-dto.d.ts +7 -7
- package/dist/models/update-lead-request-dto.d.ts +1 -7
- package/models/create-insured-object-request-dto.ts +7 -7
- package/models/grpc-patch-lead-request-dto.ts +83 -0
- package/models/grpc-update-lead-request-dto.ts +95 -0
- package/models/index.ts +3 -0
- package/models/insured-object-class.ts +7 -7
- package/models/patch-lead-request-dto.ts +22 -22
- package/models/patch-lead-response-class.ts +31 -0
- package/models/update-insured-object-request-dto.ts +7 -7
- package/models/update-lead-request-dto.ts +1 -7
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -65,6 +65,8 @@ models/get-product-version-response-class.ts
|
|
|
65
65
|
models/grouped-product-factor-class.ts
|
|
66
66
|
models/grouped-product-factor-value-class.ts
|
|
67
67
|
models/grouped-product-factors-response-class.ts
|
|
68
|
+
models/grpc-patch-lead-request-dto.ts
|
|
69
|
+
models/grpc-update-lead-request-dto.ts
|
|
68
70
|
models/index.ts
|
|
69
71
|
models/insured-object-class.ts
|
|
70
72
|
models/insured-object-type-class.ts
|
|
@@ -85,6 +87,7 @@ models/list-product-fields-response-class.ts
|
|
|
85
87
|
models/list-products-response-class.ts
|
|
86
88
|
models/list-request-dto.ts
|
|
87
89
|
models/patch-lead-request-dto.ts
|
|
90
|
+
models/patch-lead-response-class.ts
|
|
88
91
|
models/policy-class.ts
|
|
89
92
|
models/policy-object-class.ts
|
|
90
93
|
models/policy-object-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.13.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.13.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -29,6 +29,10 @@ import { GetLeadResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListLeadsResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { PatchLeadRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { PatchLeadResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
32
36
|
import { UpdateLeadRequestDto } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
38
|
import { UpdateLeadResponseClass } from '../models';
|
|
@@ -210,6 +214,57 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
210
214
|
options: localVarRequestOptions,
|
|
211
215
|
};
|
|
212
216
|
},
|
|
217
|
+
/**
|
|
218
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
219
|
+
* @summary Update the lead
|
|
220
|
+
* @param {string} code Unique identifier for the object.
|
|
221
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
222
|
+
* @param {string} [authorization] Bearer Token
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
patchLead: async (code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
227
|
+
// verify required parameter 'code' is not null or undefined
|
|
228
|
+
assertParamExists('patchLead', 'code', code)
|
|
229
|
+
// verify required parameter 'patchLeadRequestDto' is not null or undefined
|
|
230
|
+
assertParamExists('patchLead', 'patchLeadRequestDto', patchLeadRequestDto)
|
|
231
|
+
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
232
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
235
|
+
let baseOptions;
|
|
236
|
+
let baseAccessToken;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
baseAccessToken = configuration.accessToken;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
243
|
+
const localVarHeaderParameter = {} as any;
|
|
244
|
+
const localVarQueryParameter = {} as any;
|
|
245
|
+
|
|
246
|
+
// authentication bearer required
|
|
247
|
+
// http bearer authentication required
|
|
248
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
|
+
|
|
250
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
257
|
+
|
|
258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchLeadRequestDto, localVarRequestOptions, configuration)
|
|
262
|
+
|
|
263
|
+
return {
|
|
264
|
+
url: toPathString(localVarUrlObj),
|
|
265
|
+
options: localVarRequestOptions,
|
|
266
|
+
};
|
|
267
|
+
},
|
|
213
268
|
/**
|
|
214
269
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
215
270
|
* @summary Update the lead
|
|
@@ -313,6 +368,19 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
313
368
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
314
369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
315
370
|
},
|
|
371
|
+
/**
|
|
372
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
373
|
+
* @summary Update the lead
|
|
374
|
+
* @param {string} code Unique identifier for the object.
|
|
375
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
376
|
+
* @param {string} [authorization] Bearer Token
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
async patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchLeadResponseClass>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchLead(code, patchLeadRequestDto, authorization, options);
|
|
382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
|
+
},
|
|
316
384
|
/**
|
|
317
385
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
318
386
|
* @summary Update the lead
|
|
@@ -375,6 +443,18 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
375
443
|
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
|
|
376
444
|
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
377
445
|
},
|
|
446
|
+
/**
|
|
447
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
448
|
+
* @summary Update the lead
|
|
449
|
+
* @param {string} code Unique identifier for the object.
|
|
450
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
451
|
+
* @param {string} [authorization] Bearer Token
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
*/
|
|
455
|
+
patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: any): AxiosPromise<PatchLeadResponseClass> {
|
|
456
|
+
return localVarFp.patchLead(code, patchLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
457
|
+
},
|
|
378
458
|
/**
|
|
379
459
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
380
460
|
* @summary Update the lead
|
|
@@ -495,6 +575,34 @@ export interface LeadsApiListLeadsRequest {
|
|
|
495
575
|
readonly expand?: any
|
|
496
576
|
}
|
|
497
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Request parameters for patchLead operation in LeadsApi.
|
|
580
|
+
* @export
|
|
581
|
+
* @interface LeadsApiPatchLeadRequest
|
|
582
|
+
*/
|
|
583
|
+
export interface LeadsApiPatchLeadRequest {
|
|
584
|
+
/**
|
|
585
|
+
* Unique identifier for the object.
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof LeadsApiPatchLead
|
|
588
|
+
*/
|
|
589
|
+
readonly code: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {PatchLeadRequestDto}
|
|
594
|
+
* @memberof LeadsApiPatchLead
|
|
595
|
+
*/
|
|
596
|
+
readonly patchLeadRequestDto: PatchLeadRequestDto
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Bearer Token
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof LeadsApiPatchLead
|
|
602
|
+
*/
|
|
603
|
+
readonly authorization?: string
|
|
604
|
+
}
|
|
605
|
+
|
|
498
606
|
/**
|
|
499
607
|
* Request parameters for updateLead operation in LeadsApi.
|
|
500
608
|
* @export
|
|
@@ -566,6 +674,18 @@ export class LeadsApi extends BaseAPI {
|
|
|
566
674
|
return LeadsApiFp(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
567
675
|
}
|
|
568
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
679
|
+
* @summary Update the lead
|
|
680
|
+
* @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
* @memberof LeadsApi
|
|
684
|
+
*/
|
|
685
|
+
public patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig) {
|
|
686
|
+
return LeadsApiFp(this.configuration).patchLead(requestParameters.code, requestParameters.patchLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
687
|
+
}
|
|
688
|
+
|
|
569
689
|
/**
|
|
570
690
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
571
691
|
* @summary Update the lead
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import { CreateLeadRequestDto } from '../models';
|
|
|
16
16
|
import { CreateLeadResponseClass } from '../models';
|
|
17
17
|
import { GetLeadResponseClass } from '../models';
|
|
18
18
|
import { ListLeadsResponseClass } from '../models';
|
|
19
|
+
import { PatchLeadRequestDto } from '../models';
|
|
20
|
+
import { PatchLeadResponseClass } from '../models';
|
|
19
21
|
import { UpdateLeadRequestDto } from '../models';
|
|
20
22
|
import { UpdateLeadResponseClass } from '../models';
|
|
21
23
|
/**
|
|
@@ -56,6 +58,16 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
56
58
|
* @throws {RequiredError}
|
|
57
59
|
*/
|
|
58
60
|
listLeads: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
63
|
+
* @summary Update the lead
|
|
64
|
+
* @param {string} code Unique identifier for the object.
|
|
65
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
66
|
+
* @param {string} [authorization] Bearer Token
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
patchLead: (code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
71
|
/**
|
|
60
72
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
61
73
|
* @summary Update the lead
|
|
@@ -105,6 +117,16 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
105
117
|
* @throws {RequiredError}
|
|
106
118
|
*/
|
|
107
119
|
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
|
|
120
|
+
/**
|
|
121
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
122
|
+
* @summary Update the lead
|
|
123
|
+
* @param {string} code Unique identifier for the object.
|
|
124
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
125
|
+
* @param {string} [authorization] Bearer Token
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchLeadResponseClass>>;
|
|
108
130
|
/**
|
|
109
131
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
110
132
|
* @summary Update the lead
|
|
@@ -154,6 +176,16 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
154
176
|
* @throws {RequiredError}
|
|
155
177
|
*/
|
|
156
178
|
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
|
|
179
|
+
/**
|
|
180
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
181
|
+
* @summary Update the lead
|
|
182
|
+
* @param {string} code Unique identifier for the object.
|
|
183
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
184
|
+
* @param {string} [authorization] Bearer Token
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: any): AxiosPromise<PatchLeadResponseClass>;
|
|
157
189
|
/**
|
|
158
190
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
159
191
|
* @summary Update the lead
|
|
@@ -258,6 +290,31 @@ export interface LeadsApiListLeadsRequest {
|
|
|
258
290
|
*/
|
|
259
291
|
readonly expand?: any;
|
|
260
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Request parameters for patchLead operation in LeadsApi.
|
|
295
|
+
* @export
|
|
296
|
+
* @interface LeadsApiPatchLeadRequest
|
|
297
|
+
*/
|
|
298
|
+
export interface LeadsApiPatchLeadRequest {
|
|
299
|
+
/**
|
|
300
|
+
* Unique identifier for the object.
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof LeadsApiPatchLead
|
|
303
|
+
*/
|
|
304
|
+
readonly code: string;
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @type {PatchLeadRequestDto}
|
|
308
|
+
* @memberof LeadsApiPatchLead
|
|
309
|
+
*/
|
|
310
|
+
readonly patchLeadRequestDto: PatchLeadRequestDto;
|
|
311
|
+
/**
|
|
312
|
+
* Bearer Token
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof LeadsApiPatchLead
|
|
315
|
+
*/
|
|
316
|
+
readonly authorization?: string;
|
|
317
|
+
}
|
|
261
318
|
/**
|
|
262
319
|
* Request parameters for updateLead operation in LeadsApi.
|
|
263
320
|
* @export
|
|
@@ -317,6 +374,15 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
317
374
|
* @memberof LeadsApi
|
|
318
375
|
*/
|
|
319
376
|
listLeads(requestParameters?: LeadsApiListLeadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadsResponseClass, any>>;
|
|
377
|
+
/**
|
|
378
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
379
|
+
* @summary Update the lead
|
|
380
|
+
* @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
* @memberof LeadsApi
|
|
384
|
+
*/
|
|
385
|
+
patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchLeadResponseClass, any>>;
|
|
320
386
|
/**
|
|
321
387
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
322
388
|
* @summary Update the lead
|
package/dist/api/leads-api.js
CHANGED
|
@@ -265,6 +265,59 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
267
|
},
|
|
268
|
+
/**
|
|
269
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
270
|
+
* @summary Update the lead
|
|
271
|
+
* @param {string} code Unique identifier for the object.
|
|
272
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
273
|
+
* @param {string} [authorization] Bearer Token
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
patchLead: function (code, patchLeadRequestDto, authorization, options) {
|
|
278
|
+
if (options === void 0) { options = {}; }
|
|
279
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
280
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
281
|
+
return __generator(this, function (_a) {
|
|
282
|
+
switch (_a.label) {
|
|
283
|
+
case 0:
|
|
284
|
+
// verify required parameter 'code' is not null or undefined
|
|
285
|
+
(0, common_1.assertParamExists)('patchLead', 'code', code);
|
|
286
|
+
// verify required parameter 'patchLeadRequestDto' is not null or undefined
|
|
287
|
+
(0, common_1.assertParamExists)('patchLead', 'patchLeadRequestDto', patchLeadRequestDto);
|
|
288
|
+
localVarPath = "/insuranceservice/v1/leads/{code}"
|
|
289
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
290
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
291
|
+
if (configuration) {
|
|
292
|
+
baseOptions = configuration.baseOptions;
|
|
293
|
+
baseAccessToken = configuration.accessToken;
|
|
294
|
+
}
|
|
295
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
296
|
+
localVarHeaderParameter = {};
|
|
297
|
+
localVarQueryParameter = {};
|
|
298
|
+
// authentication bearer required
|
|
299
|
+
// http bearer authentication required
|
|
300
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
301
|
+
case 1:
|
|
302
|
+
// authentication bearer required
|
|
303
|
+
// http bearer authentication required
|
|
304
|
+
_a.sent();
|
|
305
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
306
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
307
|
+
}
|
|
308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
310
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchLeadRequestDto, localVarRequestOptions, configuration);
|
|
313
|
+
return [2 /*return*/, {
|
|
314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
}];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
},
|
|
268
321
|
/**
|
|
269
322
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
270
323
|
* @summary Update the lead
|
|
@@ -397,6 +450,28 @@ var LeadsApiFp = function (configuration) {
|
|
|
397
450
|
});
|
|
398
451
|
});
|
|
399
452
|
},
|
|
453
|
+
/**
|
|
454
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
455
|
+
* @summary Update the lead
|
|
456
|
+
* @param {string} code Unique identifier for the object.
|
|
457
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
458
|
+
* @param {string} [authorization] Bearer Token
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
patchLead: function (code, patchLeadRequestDto, authorization, options) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
464
|
+
var localVarAxiosArgs;
|
|
465
|
+
return __generator(this, function (_a) {
|
|
466
|
+
switch (_a.label) {
|
|
467
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchLead(code, patchLeadRequestDto, authorization, options)];
|
|
468
|
+
case 1:
|
|
469
|
+
localVarAxiosArgs = _a.sent();
|
|
470
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
},
|
|
400
475
|
/**
|
|
401
476
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
402
477
|
* @summary Update the lead
|
|
@@ -468,6 +543,18 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
468
543
|
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
469
544
|
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
470
545
|
},
|
|
546
|
+
/**
|
|
547
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
548
|
+
* @summary Update the lead
|
|
549
|
+
* @param {string} code Unique identifier for the object.
|
|
550
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
551
|
+
* @param {string} [authorization] Bearer Token
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
patchLead: function (code, patchLeadRequestDto, authorization, options) {
|
|
556
|
+
return localVarFp.patchLead(code, patchLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
557
|
+
},
|
|
471
558
|
/**
|
|
472
559
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
473
560
|
* @summary Update the lead
|
|
@@ -531,6 +618,18 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
531
618
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
532
619
|
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); });
|
|
533
620
|
};
|
|
621
|
+
/**
|
|
622
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
623
|
+
* @summary Update the lead
|
|
624
|
+
* @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
* @memberof LeadsApi
|
|
628
|
+
*/
|
|
629
|
+
LeadsApi.prototype.patchLead = function (requestParameters, options) {
|
|
630
|
+
var _this = this;
|
|
631
|
+
return (0, exports.LeadsApiFp)(this.configuration).patchLead(requestParameters.code, requestParameters.patchLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
632
|
+
};
|
|
534
633
|
/**
|
|
535
634
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
536
635
|
* @summary Update the lead
|
|
@@ -40,21 +40,21 @@ export interface CreateInsuredObjectRequestDto {
|
|
|
40
40
|
*/
|
|
41
41
|
'insuredObjectTypeId': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* A boolean value indicating whether the insured object accepts multiple objects.
|
|
44
|
+
* @type {boolean}
|
|
45
45
|
* @memberof CreateInsuredObjectRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'isMultiInsuredObject'?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
* Minimum insured object count.
|
|
49
|
+
* Minimum insured object count, required if isMultiInsuredObject is true.
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof CreateInsuredObjectRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'
|
|
53
|
+
'minInsuredObjectsCount'?: number;
|
|
54
54
|
/**
|
|
55
|
-
* Maximum insured object count.
|
|
55
|
+
* Maximum insured object count, required if isMultiInsuredObject is true.
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof CreateInsuredObjectRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'
|
|
59
|
+
'maxInsuredObjectsCount'?: number;
|
|
60
60
|
}
|
|
@@ -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 GrpcPatchLeadRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface GrpcPatchLeadRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier referencing the product version.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'productVersionId'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Account
|
|
31
|
+
* @type {CreateAccountRequestDto}
|
|
32
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'account'?: CreateAccountRequestDto;
|
|
35
|
+
/**
|
|
36
|
+
* Policy
|
|
37
|
+
* @type {CreatePolicyRequestDto}
|
|
38
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'policy'?: CreatePolicyRequestDto;
|
|
41
|
+
/**
|
|
42
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'status'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Bank account
|
|
49
|
+
* @type {CreateBankAccountRequestDto}
|
|
50
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'bankAccount'?: CreateBankAccountRequestDto;
|
|
53
|
+
/**
|
|
54
|
+
* Custom data.
|
|
55
|
+
* @type {object}
|
|
56
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'customData'?: object;
|
|
59
|
+
/**
|
|
60
|
+
* Upload document
|
|
61
|
+
* @type {UploadedDocumentDto}
|
|
62
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'uploadedDocument'?: UploadedDocumentDto;
|
|
65
|
+
/**
|
|
66
|
+
* Premium Override
|
|
67
|
+
* @type {PremiumOverrideRequestDto}
|
|
68
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
71
|
+
/**
|
|
72
|
+
* Unique identifier of the account that this object belongs to.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof GrpcPatchLeadRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'accountCode'?: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,89 @@
|
|
|
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 GrpcUpdateLeadRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface GrpcUpdateLeadRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier referencing the product version.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
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 GrpcUpdateLeadRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'status': string;
|
|
35
|
+
/**
|
|
36
|
+
* Custom data.
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'customData'?: object;
|
|
41
|
+
/**
|
|
42
|
+
* Premium Override
|
|
43
|
+
* @type {Array<PremiumOverrideRequestDto>}
|
|
44
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'code': string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CreateAccountRequestDto}
|
|
56
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'account': CreateAccountRequestDto;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CreatePolicyRequestDto}
|
|
62
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'policy': CreatePolicyRequestDto;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'shouldTriggerWorkflow'?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {CreateBankAccountRequestDto}
|
|
74
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'bankAccount'?: CreateBankAccountRequestDto;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {UploadedDocumentDto}
|
|
80
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'uploadedDocument'?: UploadedDocumentDto;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'accountCode'?: string;
|
|
89
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export * from './get-product-version-response-class';
|
|
|
45
45
|
export * from './grouped-product-factor-class';
|
|
46
46
|
export * from './grouped-product-factor-value-class';
|
|
47
47
|
export * from './grouped-product-factors-response-class';
|
|
48
|
+
export * from './grpc-patch-lead-request-dto';
|
|
49
|
+
export * from './grpc-update-lead-request-dto';
|
|
48
50
|
export * from './insured-object-class';
|
|
49
51
|
export * from './insured-object-type-class';
|
|
50
52
|
export * from './invoice-item-class';
|
|
@@ -64,6 +66,7 @@ export * from './list-product-fields-response-class';
|
|
|
64
66
|
export * from './list-products-response-class';
|
|
65
67
|
export * from './list-request-dto';
|
|
66
68
|
export * from './patch-lead-request-dto';
|
|
69
|
+
export * from './patch-lead-response-class';
|
|
67
70
|
export * from './policy-class';
|
|
68
71
|
export * from './policy-object-class';
|
|
69
72
|
export * from './policy-object-dto';
|