@emilgroup/insurance-sdk-node 1.24.0 → 1.24.1
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 +0 -3
- package/README.md +2 -2
- package/api/leads-api.ts +0 -105
- package/api/premium-formulas-api.ts +0 -107
- package/api/products-api.ts +4 -122
- package/dist/api/leads-api.d.ts +0 -56
- package/dist/api/leads-api.js +0 -93
- package/dist/api/premium-formulas-api.d.ts +0 -57
- package/dist/api/premium-formulas-api.js +0 -93
- package/dist/api/products-api.d.ts +4 -68
- package/dist/api/products-api.js +3 -103
- package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
- package/dist/models/create-lead-request-dto.d.ts +7 -7
- package/dist/models/create-premium-formula-request-dto.d.ts +0 -12
- package/dist/models/get-product-request-dto.d.ts +4 -10
- package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
- package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/models/list-leads-response-class.d.ts +0 -12
- package/dist/models/list-policies-response-class.d.ts +0 -12
- package/dist/models/patch-lead-request-dto.d.ts +1 -1
- package/dist/models/policy-object-dto.d.ts +1 -1
- package/dist/models/premium-formula-class.d.ts +0 -12
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
- package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -12
- package/dist/models/update-lead-request-dto.d.ts +7 -7
- package/dist/models/update-premium-formula-request-dto.d.ts +0 -12
- package/models/create-lead-policy-request-dto.ts +1 -1
- package/models/create-lead-request-dto.ts +7 -7
- package/models/create-premium-formula-request-dto.ts +0 -12
- package/models/get-product-request-dto.ts +4 -10
- package/models/grpc-patch-lead-request-dto.ts +1 -1
- package/models/grpc-update-lead-request-dto.ts +7 -7
- package/models/index.ts +0 -3
- package/models/list-leads-response-class.ts +0 -12
- package/models/list-policies-response-class.ts +0 -12
- package/models/patch-lead-request-dto.ts +1 -1
- package/models/policy-object-dto.ts +1 -1
- package/models/premium-formula-class.ts +0 -12
- package/models/shared-create-lead-policy-request-dto.ts +1 -1
- package/models/shared-lead-policy-object-dto.ts +1 -1
- package/models/shared-update-premium-formula-request-dto.ts +0 -12
- package/models/update-lead-request-dto.ts +7 -7
- package/models/update-premium-formula-request-dto.ts +0 -12
- package/package.json +1 -1
- package/dist/models/create-lead-sync-response-class.d.ts +0 -24
- package/dist/models/create-lead-sync-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/swap-premium-formulas-order-requestt-dto.d.ts +0 -30
- package/dist/models/swap-premium-formulas-order-requestt-dto.js +0 -15
- package/models/create-lead-sync-response-class.ts +0 -30
- package/models/empty-response-class.ts +0 -30
- package/models/swap-premium-formulas-order-requestt-dto.ts +0 -36
package/.openapi-generator/FILES
CHANGED
|
@@ -34,7 +34,6 @@ models/create-lead-request-dto.ts
|
|
|
34
34
|
models/create-lead-response-class.ts
|
|
35
35
|
models/create-lead-status-request-dto.ts
|
|
36
36
|
models/create-lead-status-response-class.ts
|
|
37
|
-
models/create-lead-sync-response-class.ts
|
|
38
37
|
models/create-named-range-request-dto.ts
|
|
39
38
|
models/create-named-range-response-class.ts
|
|
40
39
|
models/create-named-request-s3-data-class.ts
|
|
@@ -50,7 +49,6 @@ models/create-product-response-class.ts
|
|
|
50
49
|
models/csv-product-factor-dto.ts
|
|
51
50
|
models/delete-request-dto.ts
|
|
52
51
|
models/delete-response-class.ts
|
|
53
|
-
models/empty-response-class.ts
|
|
54
52
|
models/get-insured-object-response-class.ts
|
|
55
53
|
models/get-lead-response-class.ts
|
|
56
54
|
models/get-lead-status-response-class.ts
|
|
@@ -128,7 +126,6 @@ models/store-product-factors-request-dto.ts
|
|
|
128
126
|
models/store-product-factors-response-class.ts
|
|
129
127
|
models/suspend-policy-request-dto.ts
|
|
130
128
|
models/suspend-policy-response-class.ts
|
|
131
|
-
models/swap-premium-formulas-order-requestt-dto.ts
|
|
132
129
|
models/terminate-policy-request-dto.ts
|
|
133
130
|
models/terminate-policy-response-class.ts
|
|
134
131
|
models/timeslice-class.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.24.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.24.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.24.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.24.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -25,8 +25,6 @@ import { CreateLeadRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateLeadResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { CreateLeadSyncResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
28
|
import { GetLeadResponseClass } from '../models';
|
|
31
29
|
// @ts-ignore
|
|
32
30
|
import { ListLeadsResponseClass } from '../models';
|
|
@@ -83,53 +81,6 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
83
81
|
|
|
84
82
|
|
|
85
83
|
|
|
86
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
87
|
-
|
|
88
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
91
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
url: toPathString(localVarUrlObj),
|
|
95
|
-
options: localVarRequestOptions,
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
/**
|
|
99
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
100
|
-
* @summary Create the lead
|
|
101
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
102
|
-
* @param {string} [authorization] Bearer Token
|
|
103
|
-
* @param {*} [options] Override http request option.
|
|
104
|
-
* @throws {RequiredError}
|
|
105
|
-
*/
|
|
106
|
-
createLeadSync: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
-
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
108
|
-
assertParamExists('createLeadSync', 'createLeadRequestDto', createLeadRequestDto)
|
|
109
|
-
const localVarPath = `/insuranceservice/v1/leads/sync`;
|
|
110
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
112
|
-
let baseOptions;
|
|
113
|
-
let baseAccessToken;
|
|
114
|
-
if (configuration) {
|
|
115
|
-
baseOptions = configuration.baseOptions;
|
|
116
|
-
baseAccessToken = configuration.accessToken;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
120
|
-
const localVarHeaderParameter = {} as any;
|
|
121
|
-
const localVarQueryParameter = {} as any;
|
|
122
|
-
|
|
123
|
-
// authentication bearer required
|
|
124
|
-
// http bearer authentication required
|
|
125
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
126
|
-
|
|
127
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
128
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
84
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
134
85
|
|
|
135
86
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -387,18 +338,6 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
387
338
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options);
|
|
388
339
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
389
340
|
},
|
|
390
|
-
/**
|
|
391
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
392
|
-
* @summary Create the lead
|
|
393
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
394
|
-
* @param {string} [authorization] Bearer Token
|
|
395
|
-
* @param {*} [options] Override http request option.
|
|
396
|
-
* @throws {RequiredError}
|
|
397
|
-
*/
|
|
398
|
-
async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadSyncResponseClass>> {
|
|
399
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options);
|
|
400
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
|
-
},
|
|
402
341
|
/**
|
|
403
342
|
* 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.
|
|
404
343
|
* @summary Retrieve the lead
|
|
@@ -476,17 +415,6 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
476
415
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass> {
|
|
477
416
|
return localVarFp.createLead(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
478
417
|
},
|
|
479
|
-
/**
|
|
480
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
481
|
-
* @summary Create the lead
|
|
482
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
483
|
-
* @param {string} [authorization] Bearer Token
|
|
484
|
-
* @param {*} [options] Override http request option.
|
|
485
|
-
* @throws {RequiredError}
|
|
486
|
-
*/
|
|
487
|
-
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadSyncResponseClass> {
|
|
488
|
-
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
489
|
-
},
|
|
490
418
|
/**
|
|
491
419
|
* 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.
|
|
492
420
|
* @summary Retrieve the lead
|
|
@@ -563,27 +491,6 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
563
491
|
readonly authorization?: string
|
|
564
492
|
}
|
|
565
493
|
|
|
566
|
-
/**
|
|
567
|
-
* Request parameters for createLeadSync operation in LeadsApi.
|
|
568
|
-
* @export
|
|
569
|
-
* @interface LeadsApiCreateLeadSyncRequest
|
|
570
|
-
*/
|
|
571
|
-
export interface LeadsApiCreateLeadSyncRequest {
|
|
572
|
-
/**
|
|
573
|
-
*
|
|
574
|
-
* @type {CreateLeadRequestDto}
|
|
575
|
-
* @memberof LeadsApiCreateLeadSync
|
|
576
|
-
*/
|
|
577
|
-
readonly createLeadRequestDto: CreateLeadRequestDto
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* Bearer Token
|
|
581
|
-
* @type {string}
|
|
582
|
-
* @memberof LeadsApiCreateLeadSync
|
|
583
|
-
*/
|
|
584
|
-
readonly authorization?: string
|
|
585
|
-
}
|
|
586
|
-
|
|
587
494
|
/**
|
|
588
495
|
* Request parameters for getLead operation in LeadsApi.
|
|
589
496
|
* @export
|
|
@@ -743,18 +650,6 @@ export class LeadsApi extends BaseAPI {
|
|
|
743
650
|
return LeadsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
744
651
|
}
|
|
745
652
|
|
|
746
|
-
/**
|
|
747
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
748
|
-
* @summary Create the lead
|
|
749
|
-
* @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
|
|
750
|
-
* @param {*} [options] Override http request option.
|
|
751
|
-
* @throws {RequiredError}
|
|
752
|
-
* @memberof LeadsApi
|
|
753
|
-
*/
|
|
754
|
-
public createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig) {
|
|
755
|
-
return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
756
|
-
}
|
|
757
|
-
|
|
758
653
|
/**
|
|
759
654
|
* 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.
|
|
760
655
|
* @summary Retrieve the lead
|
|
@@ -27,14 +27,10 @@ import { CreatePremiumFormulaResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { DeleteResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
import { EmptyResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
30
|
import { GetPremiumFormulaResponseClass } from '../models';
|
|
33
31
|
// @ts-ignore
|
|
34
32
|
import { ListPremiumFormulasResponseClass } from '../models';
|
|
35
33
|
// @ts-ignore
|
|
36
|
-
import { SwapPremiumFormulasOrderRequesttDto } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
34
|
import { UpdatePremiumFormulaRequestDto } from '../models';
|
|
39
35
|
// @ts-ignore
|
|
40
36
|
import { UpdatePremiumFormulaResponseClass } from '../models';
|
|
@@ -256,53 +252,6 @@ export const PremiumFormulasApiAxiosParamCreator = function (configuration?: Con
|
|
|
256
252
|
options: localVarRequestOptions,
|
|
257
253
|
};
|
|
258
254
|
},
|
|
259
|
-
/**
|
|
260
|
-
* Swaps premium formulas order.
|
|
261
|
-
* @summary Swaps premium formulas order
|
|
262
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
263
|
-
* @param {string} [authorization] Bearer Token
|
|
264
|
-
* @param {*} [options] Override http request option.
|
|
265
|
-
* @throws {RequiredError}
|
|
266
|
-
*/
|
|
267
|
-
swapPremiumFormulasOrder: async (swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
268
|
-
// verify required parameter 'swapPremiumFormulasOrderRequesttDto' is not null or undefined
|
|
269
|
-
assertParamExists('swapPremiumFormulasOrder', 'swapPremiumFormulasOrderRequesttDto', swapPremiumFormulasOrderRequesttDto)
|
|
270
|
-
const localVarPath = `/insuranceservice/v1/premium-formulas/reorder`;
|
|
271
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
273
|
-
let baseOptions;
|
|
274
|
-
let baseAccessToken;
|
|
275
|
-
if (configuration) {
|
|
276
|
-
baseOptions = configuration.baseOptions;
|
|
277
|
-
baseAccessToken = configuration.accessToken;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
281
|
-
const localVarHeaderParameter = {} as any;
|
|
282
|
-
const localVarQueryParameter = {} as any;
|
|
283
|
-
|
|
284
|
-
// authentication bearer required
|
|
285
|
-
// http bearer authentication required
|
|
286
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
287
|
-
|
|
288
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
295
|
-
|
|
296
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(swapPremiumFormulasOrderRequesttDto, localVarRequestOptions, configuration)
|
|
300
|
-
|
|
301
|
-
return {
|
|
302
|
-
url: toPathString(localVarUrlObj),
|
|
303
|
-
options: localVarRequestOptions,
|
|
304
|
-
};
|
|
305
|
-
},
|
|
306
255
|
/**
|
|
307
256
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
308
257
|
* @summary Update the premium formula
|
|
@@ -417,18 +366,6 @@ export const PremiumFormulasApiFp = function(configuration?: Configuration) {
|
|
|
417
366
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
418
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
419
368
|
},
|
|
420
|
-
/**
|
|
421
|
-
* Swaps premium formulas order.
|
|
422
|
-
* @summary Swaps premium formulas order
|
|
423
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
424
|
-
* @param {string} [authorization] Bearer Token
|
|
425
|
-
* @param {*} [options] Override http request option.
|
|
426
|
-
* @throws {RequiredError}
|
|
427
|
-
*/
|
|
428
|
-
async swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>> {
|
|
429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options);
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
},
|
|
432
369
|
/**
|
|
433
370
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
434
371
|
* @summary Update the premium formula
|
|
@@ -501,17 +438,6 @@ export const PremiumFormulasApiFactory = function (configuration?: Configuration
|
|
|
501
438
|
listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass> {
|
|
502
439
|
return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
503
440
|
},
|
|
504
|
-
/**
|
|
505
|
-
* Swaps premium formulas order.
|
|
506
|
-
* @summary Swaps premium formulas order
|
|
507
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
508
|
-
* @param {string} [authorization] Bearer Token
|
|
509
|
-
* @param {*} [options] Override http request option.
|
|
510
|
-
* @throws {RequiredError}
|
|
511
|
-
*/
|
|
512
|
-
swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass> {
|
|
513
|
-
return localVarFp.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options).then((request) => request(axios, basePath));
|
|
514
|
-
},
|
|
515
441
|
/**
|
|
516
442
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
517
443
|
* @summary Update the premium formula
|
|
@@ -646,27 +572,6 @@ export interface PremiumFormulasApiListPremiumFormulasRequest {
|
|
|
646
572
|
readonly expand?: string
|
|
647
573
|
}
|
|
648
574
|
|
|
649
|
-
/**
|
|
650
|
-
* Request parameters for swapPremiumFormulasOrder operation in PremiumFormulasApi.
|
|
651
|
-
* @export
|
|
652
|
-
* @interface PremiumFormulasApiSwapPremiumFormulasOrderRequest
|
|
653
|
-
*/
|
|
654
|
-
export interface PremiumFormulasApiSwapPremiumFormulasOrderRequest {
|
|
655
|
-
/**
|
|
656
|
-
*
|
|
657
|
-
* @type {SwapPremiumFormulasOrderRequesttDto}
|
|
658
|
-
* @memberof PremiumFormulasApiSwapPremiumFormulasOrder
|
|
659
|
-
*/
|
|
660
|
-
readonly swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Bearer Token
|
|
664
|
-
* @type {string}
|
|
665
|
-
* @memberof PremiumFormulasApiSwapPremiumFormulasOrder
|
|
666
|
-
*/
|
|
667
|
-
readonly authorization?: string
|
|
668
|
-
}
|
|
669
|
-
|
|
670
575
|
/**
|
|
671
576
|
* Request parameters for updatePremiumFormula operation in PremiumFormulasApi.
|
|
672
577
|
* @export
|
|
@@ -750,18 +655,6 @@ export class PremiumFormulasApi extends BaseAPI {
|
|
|
750
655
|
return PremiumFormulasApiFp(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
751
656
|
}
|
|
752
657
|
|
|
753
|
-
/**
|
|
754
|
-
* Swaps premium formulas order.
|
|
755
|
-
* @summary Swaps premium formulas order
|
|
756
|
-
* @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
|
|
757
|
-
* @param {*} [options] Override http request option.
|
|
758
|
-
* @throws {RequiredError}
|
|
759
|
-
* @memberof PremiumFormulasApi
|
|
760
|
-
*/
|
|
761
|
-
public swapPremiumFormulasOrder(requestParameters: PremiumFormulasApiSwapPremiumFormulasOrderRequest, options?: AxiosRequestConfig) {
|
|
762
|
-
return PremiumFormulasApiFp(this.configuration).swapPremiumFormulasOrder(requestParameters.swapPremiumFormulasOrderRequesttDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
-
}
|
|
764
|
-
|
|
765
658
|
/**
|
|
766
659
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
767
660
|
* @summary Update the premium formula
|
package/api/products-api.ts
CHANGED
|
@@ -140,7 +140,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
140
140
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
141
141
|
* @summary Retrieve the product
|
|
142
142
|
* @param {string} code Unique identifier for the object.
|
|
143
|
-
* @param {number} id
|
|
143
|
+
* @param {number} id Product id
|
|
144
144
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
145
|
* @param {string} [expand] Fields to expand response by
|
|
146
146
|
* @param {*} [options] Override http request option.
|
|
@@ -184,59 +184,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
188
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
190
|
-
|
|
191
|
-
return {
|
|
192
|
-
url: toPathString(localVarUrlObj),
|
|
193
|
-
options: localVarRequestOptions,
|
|
194
|
-
};
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
198
|
-
* @summary Retrieve the product
|
|
199
|
-
* @param {number} id Unique identifier referencing the product.
|
|
200
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
|
-
* @param {string} [expand] Fields to expand response by
|
|
202
|
-
* @param {*} [options] Override http request option.
|
|
203
|
-
* @throws {RequiredError}
|
|
204
|
-
*/
|
|
205
|
-
getProductByIdentifier: async (id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
206
|
-
// verify required parameter 'id' is not null or undefined
|
|
207
|
-
assertParamExists('getProductByIdentifier', 'id', id)
|
|
208
|
-
const localVarPath = `/insuranceservice/v1/products/get-by-identifier`;
|
|
209
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
211
|
-
let baseOptions;
|
|
212
|
-
let baseAccessToken;
|
|
213
|
-
if (configuration) {
|
|
214
|
-
baseOptions = configuration.baseOptions;
|
|
215
|
-
baseAccessToken = configuration.accessToken;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
219
|
-
const localVarHeaderParameter = {} as any;
|
|
220
|
-
const localVarQueryParameter = {} as any;
|
|
221
|
-
|
|
222
|
-
// authentication bearer required
|
|
223
|
-
// http bearer authentication required
|
|
224
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
225
|
-
|
|
226
|
-
if (id !== undefined) {
|
|
227
|
-
localVarQueryParameter['id'] = id;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (expand !== undefined) {
|
|
231
|
-
localVarQueryParameter['expand'] = expand;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
235
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
187
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
189
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -406,7 +353,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
406
353
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
407
354
|
* @summary Retrieve the product
|
|
408
355
|
* @param {string} code Unique identifier for the object.
|
|
409
|
-
* @param {number} id
|
|
356
|
+
* @param {number} id Product id
|
|
410
357
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
358
|
* @param {string} [expand] Fields to expand response by
|
|
412
359
|
* @param {*} [options] Override http request option.
|
|
@@ -416,19 +363,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
416
363
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
|
|
417
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
365
|
},
|
|
419
|
-
/**
|
|
420
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
421
|
-
* @summary Retrieve the product
|
|
422
|
-
* @param {number} id Unique identifier referencing the product.
|
|
423
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
424
|
-
* @param {string} [expand] Fields to expand response by
|
|
425
|
-
* @param {*} [options] Override http request option.
|
|
426
|
-
* @throws {RequiredError}
|
|
427
|
-
*/
|
|
428
|
-
async getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
|
|
429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options);
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
},
|
|
432
366
|
/**
|
|
433
367
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
434
368
|
* @summary List products
|
|
@@ -495,7 +429,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
495
429
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
496
430
|
* @summary Retrieve the product
|
|
497
431
|
* @param {string} code Unique identifier for the object.
|
|
498
|
-
* @param {number} id
|
|
432
|
+
* @param {number} id Product id
|
|
499
433
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
500
434
|
* @param {string} [expand] Fields to expand response by
|
|
501
435
|
* @param {*} [options] Override http request option.
|
|
@@ -504,18 +438,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
504
438
|
getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
505
439
|
return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
506
440
|
},
|
|
507
|
-
/**
|
|
508
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
509
|
-
* @summary Retrieve the product
|
|
510
|
-
* @param {number} id Unique identifier referencing the product.
|
|
511
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
|
-
* @param {string} [expand] Fields to expand response by
|
|
513
|
-
* @param {*} [options] Override http request option.
|
|
514
|
-
* @throws {RequiredError}
|
|
515
|
-
*/
|
|
516
|
-
getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
517
|
-
return localVarFp.getProductByIdentifier(id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
518
|
-
},
|
|
519
441
|
/**
|
|
520
442
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
521
443
|
* @summary List products
|
|
@@ -603,7 +525,7 @@ export interface ProductsApiGetProductByCodeRequest {
|
|
|
603
525
|
readonly code: string
|
|
604
526
|
|
|
605
527
|
/**
|
|
606
|
-
*
|
|
528
|
+
* Product id
|
|
607
529
|
* @type {number}
|
|
608
530
|
* @memberof ProductsApiGetProductByCode
|
|
609
531
|
*/
|
|
@@ -624,34 +546,6 @@ export interface ProductsApiGetProductByCodeRequest {
|
|
|
624
546
|
readonly expand?: string
|
|
625
547
|
}
|
|
626
548
|
|
|
627
|
-
/**
|
|
628
|
-
* Request parameters for getProductByIdentifier operation in ProductsApi.
|
|
629
|
-
* @export
|
|
630
|
-
* @interface ProductsApiGetProductByIdentifierRequest
|
|
631
|
-
*/
|
|
632
|
-
export interface ProductsApiGetProductByIdentifierRequest {
|
|
633
|
-
/**
|
|
634
|
-
* Unique identifier referencing the product.
|
|
635
|
-
* @type {number}
|
|
636
|
-
* @memberof ProductsApiGetProductByIdentifier
|
|
637
|
-
*/
|
|
638
|
-
readonly id: number
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
642
|
-
* @type {string}
|
|
643
|
-
* @memberof ProductsApiGetProductByIdentifier
|
|
644
|
-
*/
|
|
645
|
-
readonly authorization?: string
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* Fields to expand response by
|
|
649
|
-
* @type {string}
|
|
650
|
-
* @memberof ProductsApiGetProductByIdentifier
|
|
651
|
-
*/
|
|
652
|
-
readonly expand?: string
|
|
653
|
-
}
|
|
654
|
-
|
|
655
549
|
/**
|
|
656
550
|
* Request parameters for listProducts operation in ProductsApi.
|
|
657
551
|
* @export
|
|
@@ -779,18 +673,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
779
673
|
return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
780
674
|
}
|
|
781
675
|
|
|
782
|
-
/**
|
|
783
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
784
|
-
* @summary Retrieve the product
|
|
785
|
-
* @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
|
|
786
|
-
* @param {*} [options] Override http request option.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
* @memberof ProductsApi
|
|
789
|
-
*/
|
|
790
|
-
public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig) {
|
|
791
|
-
return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
-
}
|
|
793
|
-
|
|
794
676
|
/**
|
|
795
677
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
796
678
|
* @summary List products
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateLeadRequestDto } from '../models';
|
|
16
16
|
import { CreateLeadResponseClass } from '../models';
|
|
17
|
-
import { CreateLeadSyncResponseClass } from '../models';
|
|
18
17
|
import { GetLeadResponseClass } from '../models';
|
|
19
18
|
import { ListLeadsResponseClass } from '../models';
|
|
20
19
|
import { PatchLeadRequestDto } from '../models';
|
|
@@ -35,15 +34,6 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
35
34
|
* @throws {RequiredError}
|
|
36
35
|
*/
|
|
37
36
|
createLead: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
-
/**
|
|
39
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
40
|
-
* @summary Create the lead
|
|
41
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
42
|
-
* @param {string} [authorization] Bearer Token
|
|
43
|
-
* @param {*} [options] Override http request option.
|
|
44
|
-
* @throws {RequiredError}
|
|
45
|
-
*/
|
|
46
|
-
createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
37
|
/**
|
|
48
38
|
* 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.
|
|
49
39
|
* @summary Retrieve the lead
|
|
@@ -103,15 +93,6 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
103
93
|
* @throws {RequiredError}
|
|
104
94
|
*/
|
|
105
95
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
106
|
-
/**
|
|
107
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
108
|
-
* @summary Create the lead
|
|
109
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
110
|
-
* @param {string} [authorization] Bearer Token
|
|
111
|
-
* @param {*} [options] Override http request option.
|
|
112
|
-
* @throws {RequiredError}
|
|
113
|
-
*/
|
|
114
|
-
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadSyncResponseClass>>;
|
|
115
96
|
/**
|
|
116
97
|
* 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.
|
|
117
98
|
* @summary Retrieve the lead
|
|
@@ -171,15 +152,6 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
171
152
|
* @throws {RequiredError}
|
|
172
153
|
*/
|
|
173
154
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
174
|
-
/**
|
|
175
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
176
|
-
* @summary Create the lead
|
|
177
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
178
|
-
* @param {string} [authorization] Bearer Token
|
|
179
|
-
* @param {*} [options] Override http request option.
|
|
180
|
-
* @throws {RequiredError}
|
|
181
|
-
*/
|
|
182
|
-
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadSyncResponseClass>;
|
|
183
155
|
/**
|
|
184
156
|
* 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.
|
|
185
157
|
* @summary Retrieve the lead
|
|
@@ -244,25 +216,6 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
244
216
|
*/
|
|
245
217
|
readonly authorization?: string;
|
|
246
218
|
}
|
|
247
|
-
/**
|
|
248
|
-
* Request parameters for createLeadSync operation in LeadsApi.
|
|
249
|
-
* @export
|
|
250
|
-
* @interface LeadsApiCreateLeadSyncRequest
|
|
251
|
-
*/
|
|
252
|
-
export interface LeadsApiCreateLeadSyncRequest {
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* @type {CreateLeadRequestDto}
|
|
256
|
-
* @memberof LeadsApiCreateLeadSync
|
|
257
|
-
*/
|
|
258
|
-
readonly createLeadRequestDto: CreateLeadRequestDto;
|
|
259
|
-
/**
|
|
260
|
-
* Bearer Token
|
|
261
|
-
* @type {string}
|
|
262
|
-
* @memberof LeadsApiCreateLeadSync
|
|
263
|
-
*/
|
|
264
|
-
readonly authorization?: string;
|
|
265
|
-
}
|
|
266
219
|
/**
|
|
267
220
|
* Request parameters for getLead operation in LeadsApi.
|
|
268
221
|
* @export
|
|
@@ -403,15 +356,6 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
403
356
|
* @memberof LeadsApi
|
|
404
357
|
*/
|
|
405
358
|
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
406
|
-
/**
|
|
407
|
-
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
408
|
-
* @summary Create the lead
|
|
409
|
-
* @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
|
|
410
|
-
* @param {*} [options] Override http request option.
|
|
411
|
-
* @throws {RequiredError}
|
|
412
|
-
* @memberof LeadsApi
|
|
413
|
-
*/
|
|
414
|
-
createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadSyncResponseClass, any>>;
|
|
415
359
|
/**
|
|
416
360
|
* 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.
|
|
417
361
|
* @summary Retrieve the lead
|