@emilgroup/insurance-sdk-node 1.24.1 → 1.25.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 +4 -0
- package/README.md +2 -2
- package/api/leads-api.ts +326 -0
- package/api/premium-formulas-api.ts +107 -0
- package/api/products-api.ts +122 -4
- package/dist/api/leads-api.d.ts +176 -0
- package/dist/api/leads-api.js +285 -0
- package/dist/api/premium-formulas-api.d.ts +57 -0
- package/dist/api/premium-formulas-api.js +93 -0
- package/dist/api/products-api.d.ts +68 -4
- package/dist/api/products-api.js +103 -3
- package/dist/models/create-lead-async-response-class.d.ts +24 -0
- package/dist/models/create-lead-async-response-class.js +15 -0
- 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-lead-sync-response-class.d.ts +24 -0
- package/dist/models/create-lead-sync-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +12 -0
- package/dist/models/empty-response-class.d.ts +24 -0
- package/dist/models/empty-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +10 -4
- 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 +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/lead-class.d.ts +6 -0
- package/dist/models/list-leads-response-class.d.ts +12 -0
- package/dist/models/list-policies-response-class.d.ts +12 -0
- 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 +12 -0
- 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 +12 -0
- package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
- package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +7 -7
- package/dist/models/update-premium-formula-request-dto.d.ts +12 -0
- package/models/create-lead-async-response-class.ts +30 -0
- package/models/create-lead-policy-request-dto.ts +1 -1
- package/models/create-lead-request-dto.ts +7 -7
- package/models/create-lead-sync-response-class.ts +30 -0
- package/models/create-premium-formula-request-dto.ts +12 -0
- package/models/empty-response-class.ts +30 -0
- package/models/get-product-request-dto.ts +10 -4
- package/models/grpc-patch-lead-request-dto.ts +1 -1
- package/models/grpc-update-lead-request-dto.ts +7 -7
- package/models/index.ts +4 -0
- package/models/lead-class.ts +6 -0
- package/models/list-leads-response-class.ts +12 -0
- package/models/list-policies-response-class.ts +12 -0
- package/models/patch-lead-request-dto.ts +1 -1
- package/models/policy-object-dto.ts +1 -1
- package/models/premium-formula-class.ts +12 -0
- 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 +12 -0
- package/models/swap-premium-formulas-order-request-dto.ts +36 -0
- package/models/update-lead-request-dto.ts +7 -7
- package/models/update-premium-formula-request-dto.ts +12 -0
- package/package.json +1 -1
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 Unique identifier referencing the product.
|
|
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,6 +184,59 @@ 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
|
+
|
|
187
240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
188
241
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
242
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -353,7 +406,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
353
406
|
* 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.
|
|
354
407
|
* @summary Retrieve the product
|
|
355
408
|
* @param {string} code Unique identifier for the object.
|
|
356
|
-
* @param {number} id
|
|
409
|
+
* @param {number} id Unique identifier referencing the product.
|
|
357
410
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
358
411
|
* @param {string} [expand] Fields to expand response by
|
|
359
412
|
* @param {*} [options] Override http request option.
|
|
@@ -363,6 +416,19 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
363
416
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
|
|
364
417
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
365
418
|
},
|
|
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
|
+
},
|
|
366
432
|
/**
|
|
367
433
|
* 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.
|
|
368
434
|
* @summary List products
|
|
@@ -429,7 +495,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
429
495
|
* 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.
|
|
430
496
|
* @summary Retrieve the product
|
|
431
497
|
* @param {string} code Unique identifier for the object.
|
|
432
|
-
* @param {number} id
|
|
498
|
+
* @param {number} id Unique identifier referencing the product.
|
|
433
499
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
434
500
|
* @param {string} [expand] Fields to expand response by
|
|
435
501
|
* @param {*} [options] Override http request option.
|
|
@@ -438,6 +504,18 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
438
504
|
getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
439
505
|
return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
440
506
|
},
|
|
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
|
+
},
|
|
441
519
|
/**
|
|
442
520
|
* 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.
|
|
443
521
|
* @summary List products
|
|
@@ -525,7 +603,7 @@ export interface ProductsApiGetProductByCodeRequest {
|
|
|
525
603
|
readonly code: string
|
|
526
604
|
|
|
527
605
|
/**
|
|
528
|
-
*
|
|
606
|
+
* Unique identifier referencing the product.
|
|
529
607
|
* @type {number}
|
|
530
608
|
* @memberof ProductsApiGetProductByCode
|
|
531
609
|
*/
|
|
@@ -546,6 +624,34 @@ export interface ProductsApiGetProductByCodeRequest {
|
|
|
546
624
|
readonly expand?: string
|
|
547
625
|
}
|
|
548
626
|
|
|
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
|
+
|
|
549
655
|
/**
|
|
550
656
|
* Request parameters for listProducts operation in ProductsApi.
|
|
551
657
|
* @export
|
|
@@ -673,6 +779,18 @@ export class ProductsApi extends BaseAPI {
|
|
|
673
779
|
return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
674
780
|
}
|
|
675
781
|
|
|
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
|
+
|
|
676
794
|
/**
|
|
677
795
|
* 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.
|
|
678
796
|
* @summary List products
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateLeadAsyncResponseClass } from '../models';
|
|
15
16
|
import { CreateLeadRequestDto } from '../models';
|
|
16
17
|
import { CreateLeadResponseClass } from '../models';
|
|
18
|
+
import { CreateLeadSyncResponseClass } from '../models';
|
|
17
19
|
import { GetLeadResponseClass } from '../models';
|
|
18
20
|
import { ListLeadsResponseClass } from '../models';
|
|
19
21
|
import { PatchLeadRequestDto } from '../models';
|
|
@@ -34,6 +36,24 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
34
36
|
* @throws {RequiredError}
|
|
35
37
|
*/
|
|
36
38
|
createLead: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
|
+
/**
|
|
40
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
41
|
+
* @summary Create the lead asynchronously
|
|
42
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
43
|
+
* @param {string} [authorization] Bearer Token
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
createLeadAsync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
|
+
/**
|
|
49
|
+
* 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.
|
|
50
|
+
* @summary Create the lead
|
|
51
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
52
|
+
* @param {string} [authorization] Bearer Token
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
57
|
/**
|
|
38
58
|
* 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.
|
|
39
59
|
* @summary Retrieve the lead
|
|
@@ -78,6 +98,16 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
78
98
|
* @throws {RequiredError}
|
|
79
99
|
*/
|
|
80
100
|
updateLead: (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
101
|
+
/**
|
|
102
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
103
|
+
* @summary Update the lead
|
|
104
|
+
* @param {string} code Unique identifier for the object.
|
|
105
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
106
|
+
* @param {string} [authorization] Bearer Token
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
updateLeadSync: (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
111
|
};
|
|
82
112
|
/**
|
|
83
113
|
* LeadsApi - functional programming interface
|
|
@@ -93,6 +123,24 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
93
123
|
* @throws {RequiredError}
|
|
94
124
|
*/
|
|
95
125
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
126
|
+
/**
|
|
127
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
128
|
+
* @summary Create the lead asynchronously
|
|
129
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
130
|
+
* @param {string} [authorization] Bearer Token
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadAsyncResponseClass>>;
|
|
135
|
+
/**
|
|
136
|
+
* 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.
|
|
137
|
+
* @summary Create the lead
|
|
138
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
139
|
+
* @param {string} [authorization] Bearer Token
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadSyncResponseClass>>;
|
|
96
144
|
/**
|
|
97
145
|
* 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.
|
|
98
146
|
* @summary Retrieve the lead
|
|
@@ -137,6 +185,16 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
137
185
|
* @throws {RequiredError}
|
|
138
186
|
*/
|
|
139
187
|
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
188
|
+
/**
|
|
189
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
190
|
+
* @summary Update the lead
|
|
191
|
+
* @param {string} code Unique identifier for the object.
|
|
192
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
193
|
+
* @param {string} [authorization] Bearer Token
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
140
198
|
};
|
|
141
199
|
/**
|
|
142
200
|
* LeadsApi - factory interface
|
|
@@ -152,6 +210,24 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
152
210
|
* @throws {RequiredError}
|
|
153
211
|
*/
|
|
154
212
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
213
|
+
/**
|
|
214
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
215
|
+
* @summary Create the lead asynchronously
|
|
216
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
217
|
+
* @param {string} [authorization] Bearer Token
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadAsyncResponseClass>;
|
|
222
|
+
/**
|
|
223
|
+
* 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.
|
|
224
|
+
* @summary Create the lead
|
|
225
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
226
|
+
* @param {string} [authorization] Bearer Token
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadSyncResponseClass>;
|
|
155
231
|
/**
|
|
156
232
|
* 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.
|
|
157
233
|
* @summary Retrieve the lead
|
|
@@ -196,6 +272,16 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
196
272
|
* @throws {RequiredError}
|
|
197
273
|
*/
|
|
198
274
|
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
275
|
+
/**
|
|
276
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
277
|
+
* @summary Update the lead
|
|
278
|
+
* @param {string} code Unique identifier for the object.
|
|
279
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
280
|
+
* @param {string} [authorization] Bearer Token
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
199
285
|
};
|
|
200
286
|
/**
|
|
201
287
|
* Request parameters for createLead operation in LeadsApi.
|
|
@@ -216,6 +302,44 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
216
302
|
*/
|
|
217
303
|
readonly authorization?: string;
|
|
218
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* Request parameters for createLeadAsync operation in LeadsApi.
|
|
307
|
+
* @export
|
|
308
|
+
* @interface LeadsApiCreateLeadAsyncRequest
|
|
309
|
+
*/
|
|
310
|
+
export interface LeadsApiCreateLeadAsyncRequest {
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @type {CreateLeadRequestDto}
|
|
314
|
+
* @memberof LeadsApiCreateLeadAsync
|
|
315
|
+
*/
|
|
316
|
+
readonly createLeadRequestDto: CreateLeadRequestDto;
|
|
317
|
+
/**
|
|
318
|
+
* Bearer Token
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof LeadsApiCreateLeadAsync
|
|
321
|
+
*/
|
|
322
|
+
readonly authorization?: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Request parameters for createLeadSync operation in LeadsApi.
|
|
326
|
+
* @export
|
|
327
|
+
* @interface LeadsApiCreateLeadSyncRequest
|
|
328
|
+
*/
|
|
329
|
+
export interface LeadsApiCreateLeadSyncRequest {
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @type {CreateLeadRequestDto}
|
|
333
|
+
* @memberof LeadsApiCreateLeadSync
|
|
334
|
+
*/
|
|
335
|
+
readonly createLeadRequestDto: CreateLeadRequestDto;
|
|
336
|
+
/**
|
|
337
|
+
* Bearer Token
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof LeadsApiCreateLeadSync
|
|
340
|
+
*/
|
|
341
|
+
readonly authorization?: string;
|
|
342
|
+
}
|
|
219
343
|
/**
|
|
220
344
|
* Request parameters for getLead operation in LeadsApi.
|
|
221
345
|
* @export
|
|
@@ -340,6 +464,31 @@ export interface LeadsApiUpdateLeadRequest {
|
|
|
340
464
|
*/
|
|
341
465
|
readonly authorization?: string;
|
|
342
466
|
}
|
|
467
|
+
/**
|
|
468
|
+
* Request parameters for updateLeadSync operation in LeadsApi.
|
|
469
|
+
* @export
|
|
470
|
+
* @interface LeadsApiUpdateLeadSyncRequest
|
|
471
|
+
*/
|
|
472
|
+
export interface LeadsApiUpdateLeadSyncRequest {
|
|
473
|
+
/**
|
|
474
|
+
* Unique identifier for the object.
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
477
|
+
*/
|
|
478
|
+
readonly code: string;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {UpdateLeadRequestDto}
|
|
482
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
483
|
+
*/
|
|
484
|
+
readonly updateLeadRequestDto: UpdateLeadRequestDto;
|
|
485
|
+
/**
|
|
486
|
+
* Bearer Token
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
489
|
+
*/
|
|
490
|
+
readonly authorization?: string;
|
|
491
|
+
}
|
|
343
492
|
/**
|
|
344
493
|
* LeadsApi - object-oriented interface
|
|
345
494
|
* @export
|
|
@@ -356,6 +505,24 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
356
505
|
* @memberof LeadsApi
|
|
357
506
|
*/
|
|
358
507
|
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
508
|
+
/**
|
|
509
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
510
|
+
* @summary Create the lead asynchronously
|
|
511
|
+
* @param {LeadsApiCreateLeadAsyncRequest} requestParameters Request parameters.
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
* @memberof LeadsApi
|
|
515
|
+
*/
|
|
516
|
+
createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any>>;
|
|
517
|
+
/**
|
|
518
|
+
* 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.
|
|
519
|
+
* @summary Create the lead
|
|
520
|
+
* @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
* @memberof LeadsApi
|
|
524
|
+
*/
|
|
525
|
+
createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadSyncResponseClass, any>>;
|
|
359
526
|
/**
|
|
360
527
|
* 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.
|
|
361
528
|
* @summary Retrieve the lead
|
|
@@ -392,4 +559,13 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
392
559
|
* @memberof LeadsApi
|
|
393
560
|
*/
|
|
394
561
|
updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any>>;
|
|
562
|
+
/**
|
|
563
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
564
|
+
* @summary Update the lead
|
|
565
|
+
* @param {LeadsApiUpdateLeadSyncRequest} requestParameters Request parameters.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
* @memberof LeadsApi
|
|
569
|
+
*/
|
|
570
|
+
updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any>>;
|
|
395
571
|
}
|