@emilgroup/public-api-sdk 1.14.0 → 1.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api/leads-api.ts +326 -0
- package/dist/api/leads-api.d.ts +176 -0
- package/dist/api/leads-api.js +285 -0
- package/dist/models/create-document-request-dto.d.ts +17 -0
- package/dist/models/create-document-request-dto.js +5 -1
- 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-request-dto.d.ts +7 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/lead-policy-object-class.d.ts +2 -2
- package/dist/models/lead-sync-response-class.d.ts +24 -0
- package/dist/models/lead-sync-response-class.js +15 -0
- package/dist/models/policy-object-request-dto.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +9 -3
- package/models/create-document-request-dto.ts +18 -0
- package/models/create-lead-async-response-class.ts +30 -0
- package/models/create-lead-request-dto.ts +7 -1
- package/models/index.ts +2 -0
- package/models/lead-policy-object-class.ts +2 -2
- package/models/lead-sync-response-class.ts +30 -0
- package/models/policy-object-request-dto.ts +2 -2
- package/models/update-lead-request-dto.ts +9 -3
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -31,6 +31,7 @@ models/create-custom-application-response-class.ts
|
|
|
31
31
|
models/create-document-request-dto.ts
|
|
32
32
|
models/create-estimated-invoice-request-dto.ts
|
|
33
33
|
models/create-estimated-invoice-response-class.ts
|
|
34
|
+
models/create-lead-async-response-class.ts
|
|
34
35
|
models/create-lead-request-dto.ts
|
|
35
36
|
models/create-lead-response-class.ts
|
|
36
37
|
models/create-payment-method-request-dto.ts
|
|
@@ -63,6 +64,7 @@ models/lead-bank-account-class.ts
|
|
|
63
64
|
models/lead-class.ts
|
|
64
65
|
models/lead-policy-class.ts
|
|
65
66
|
models/lead-policy-object-class.ts
|
|
67
|
+
models/lead-sync-response-class.ts
|
|
66
68
|
models/list-documents-response-class.ts
|
|
67
69
|
models/list-product-documents-response-class.ts
|
|
68
70
|
models/list-products-response-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/public-api-sdk@1.14.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.14.3 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.14.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.14.3
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreateLeadAsyncResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreateLeadRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreateLeadResponseClass } from '../models';
|
|
@@ -29,6 +31,8 @@ import { GetLeadResponseClass } from '../models';
|
|
|
29
31
|
// @ts-ignore
|
|
30
32
|
import { InitiateLeadResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
34
|
+
import { LeadSyncResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
32
36
|
import { UpdateLeadRequestDto } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
38
|
import { UpdateLeadResponseClass } from '../models';
|
|
@@ -73,6 +77,100 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
73
77
|
|
|
74
78
|
|
|
75
79
|
|
|
80
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* 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\'.
|
|
94
|
+
* @summary Create the lead asynchronously
|
|
95
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
createLeadAsync: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
102
|
+
assertParamExists('createLeadAsync', 'createLeadRequestDto', createLeadRequestDto)
|
|
103
|
+
const localVarPath = `/publicapi/v1/leads-async`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* 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.
|
|
141
|
+
* @summary Create the lead
|
|
142
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
143
|
+
* @param {string} [authorization] Bearer Token
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
createLeadSync: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
149
|
+
assertParamExists('createLeadSync', 'createLeadRequestDto', createLeadRequestDto)
|
|
150
|
+
const localVarPath = `/publicapi/v1/leads-sync`;
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
let baseAccessToken;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
baseAccessToken = configuration.accessToken;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
161
|
+
const localVarHeaderParameter = {} as any;
|
|
162
|
+
const localVarQueryParameter = {} as any;
|
|
163
|
+
|
|
164
|
+
// authentication bearer required
|
|
165
|
+
// http bearer authentication required
|
|
166
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
|
+
|
|
168
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
169
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
76
174
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77
175
|
|
|
78
176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -210,6 +308,57 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
210
308
|
|
|
211
309
|
|
|
212
310
|
|
|
311
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
312
|
+
|
|
313
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
315
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
316
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLeadRequestDto, localVarRequestOptions, configuration)
|
|
317
|
+
|
|
318
|
+
return {
|
|
319
|
+
url: toPathString(localVarUrlObj),
|
|
320
|
+
options: localVarRequestOptions,
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
/**
|
|
324
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
325
|
+
* @summary Update the lead
|
|
326
|
+
* @param {string} code Unique identifier for the object.
|
|
327
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
328
|
+
* @param {string} [authorization] Bearer Token
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
updateLeadSync: async (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
333
|
+
// verify required parameter 'code' is not null or undefined
|
|
334
|
+
assertParamExists('updateLeadSync', 'code', code)
|
|
335
|
+
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
336
|
+
assertParamExists('updateLeadSync', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
337
|
+
const localVarPath = `/publicapi/v1/leads-sync/{code}`
|
|
338
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
341
|
+
let baseOptions;
|
|
342
|
+
let baseAccessToken;
|
|
343
|
+
if (configuration) {
|
|
344
|
+
baseOptions = configuration.baseOptions;
|
|
345
|
+
baseAccessToken = configuration.accessToken;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
349
|
+
const localVarHeaderParameter = {} as any;
|
|
350
|
+
const localVarQueryParameter = {} as any;
|
|
351
|
+
|
|
352
|
+
// authentication bearer required
|
|
353
|
+
// http bearer authentication required
|
|
354
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
355
|
+
|
|
356
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
357
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
213
362
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
214
363
|
|
|
215
364
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -244,6 +393,30 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
244
393
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options);
|
|
245
394
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
395
|
},
|
|
396
|
+
/**
|
|
397
|
+
* 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\'.
|
|
398
|
+
* @summary Create the lead asynchronously
|
|
399
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
400
|
+
* @param {string} [authorization] Bearer Token
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
async createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadAsyncResponseClass>> {
|
|
405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadAsync(createLeadRequestDto, authorization, options);
|
|
406
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* 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.
|
|
410
|
+
* @summary Create the lead
|
|
411
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
412
|
+
* @param {string} [authorization] Bearer Token
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeadSyncResponseClass>> {
|
|
417
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options);
|
|
418
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
419
|
+
},
|
|
247
420
|
/**
|
|
248
421
|
* 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.
|
|
249
422
|
* @summary Retrieve the lead
|
|
@@ -280,6 +453,19 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
280
453
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, updateLeadRequestDto, authorization, options);
|
|
281
454
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
282
455
|
},
|
|
456
|
+
/**
|
|
457
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
458
|
+
* @summary Update the lead
|
|
459
|
+
* @param {string} code Unique identifier for the object.
|
|
460
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
461
|
+
* @param {string} [authorization] Bearer Token
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
async updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeadSyncResponseClass>> {
|
|
466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLeadSync(code, updateLeadRequestDto, authorization, options);
|
|
467
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
468
|
+
},
|
|
283
469
|
}
|
|
284
470
|
};
|
|
285
471
|
|
|
@@ -301,6 +487,28 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
301
487
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass> {
|
|
302
488
|
return localVarFp.createLead(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
303
489
|
},
|
|
490
|
+
/**
|
|
491
|
+
* 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\'.
|
|
492
|
+
* @summary Create the lead asynchronously
|
|
493
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
494
|
+
* @param {string} [authorization] Bearer Token
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
*/
|
|
498
|
+
createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadAsyncResponseClass> {
|
|
499
|
+
return localVarFp.createLeadAsync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
500
|
+
},
|
|
501
|
+
/**
|
|
502
|
+
* 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.
|
|
503
|
+
* @summary Create the lead
|
|
504
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
505
|
+
* @param {string} [authorization] Bearer Token
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<LeadSyncResponseClass> {
|
|
510
|
+
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
511
|
+
},
|
|
304
512
|
/**
|
|
305
513
|
* 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.
|
|
306
514
|
* @summary Retrieve the lead
|
|
@@ -334,6 +542,18 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
334
542
|
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass> {
|
|
335
543
|
return localVarFp.updateLead(code, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
336
544
|
},
|
|
545
|
+
/**
|
|
546
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
547
|
+
* @summary Update the lead
|
|
548
|
+
* @param {string} code Unique identifier for the object.
|
|
549
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
550
|
+
* @param {string} [authorization] Bearer Token
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<LeadSyncResponseClass> {
|
|
555
|
+
return localVarFp.updateLeadSync(code, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
556
|
+
},
|
|
337
557
|
};
|
|
338
558
|
};
|
|
339
559
|
|
|
@@ -358,6 +578,48 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
358
578
|
readonly authorization?: string
|
|
359
579
|
}
|
|
360
580
|
|
|
581
|
+
/**
|
|
582
|
+
* Request parameters for createLeadAsync operation in LeadsApi.
|
|
583
|
+
* @export
|
|
584
|
+
* @interface LeadsApiCreateLeadAsyncRequest
|
|
585
|
+
*/
|
|
586
|
+
export interface LeadsApiCreateLeadAsyncRequest {
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {CreateLeadRequestDto}
|
|
590
|
+
* @memberof LeadsApiCreateLeadAsync
|
|
591
|
+
*/
|
|
592
|
+
readonly createLeadRequestDto: CreateLeadRequestDto
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Bearer Token
|
|
596
|
+
* @type {string}
|
|
597
|
+
* @memberof LeadsApiCreateLeadAsync
|
|
598
|
+
*/
|
|
599
|
+
readonly authorization?: string
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Request parameters for createLeadSync operation in LeadsApi.
|
|
604
|
+
* @export
|
|
605
|
+
* @interface LeadsApiCreateLeadSyncRequest
|
|
606
|
+
*/
|
|
607
|
+
export interface LeadsApiCreateLeadSyncRequest {
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {CreateLeadRequestDto}
|
|
611
|
+
* @memberof LeadsApiCreateLeadSync
|
|
612
|
+
*/
|
|
613
|
+
readonly createLeadRequestDto: CreateLeadRequestDto
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Bearer Token
|
|
617
|
+
* @type {string}
|
|
618
|
+
* @memberof LeadsApiCreateLeadSync
|
|
619
|
+
*/
|
|
620
|
+
readonly authorization?: string
|
|
621
|
+
}
|
|
622
|
+
|
|
361
623
|
/**
|
|
362
624
|
* Request parameters for getLead operation in LeadsApi.
|
|
363
625
|
* @export
|
|
@@ -421,6 +683,34 @@ export interface LeadsApiUpdateLeadRequest {
|
|
|
421
683
|
readonly authorization?: string
|
|
422
684
|
}
|
|
423
685
|
|
|
686
|
+
/**
|
|
687
|
+
* Request parameters for updateLeadSync operation in LeadsApi.
|
|
688
|
+
* @export
|
|
689
|
+
* @interface LeadsApiUpdateLeadSyncRequest
|
|
690
|
+
*/
|
|
691
|
+
export interface LeadsApiUpdateLeadSyncRequest {
|
|
692
|
+
/**
|
|
693
|
+
* Unique identifier for the object.
|
|
694
|
+
* @type {string}
|
|
695
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
696
|
+
*/
|
|
697
|
+
readonly code: string
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @type {UpdateLeadRequestDto}
|
|
702
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
703
|
+
*/
|
|
704
|
+
readonly updateLeadRequestDto: UpdateLeadRequestDto
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Bearer Token
|
|
708
|
+
* @type {string}
|
|
709
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
710
|
+
*/
|
|
711
|
+
readonly authorization?: string
|
|
712
|
+
}
|
|
713
|
+
|
|
424
714
|
/**
|
|
425
715
|
* LeadsApi - object-oriented interface
|
|
426
716
|
* @export
|
|
@@ -440,6 +730,30 @@ export class LeadsApi extends BaseAPI {
|
|
|
440
730
|
return LeadsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
441
731
|
}
|
|
442
732
|
|
|
733
|
+
/**
|
|
734
|
+
* 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\'.
|
|
735
|
+
* @summary Create the lead asynchronously
|
|
736
|
+
* @param {LeadsApiCreateLeadAsyncRequest} requestParameters Request parameters.
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
* @memberof LeadsApi
|
|
740
|
+
*/
|
|
741
|
+
public createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig) {
|
|
742
|
+
return LeadsApiFp(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* 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.
|
|
747
|
+
* @summary Create the lead
|
|
748
|
+
* @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
* @memberof LeadsApi
|
|
752
|
+
*/
|
|
753
|
+
public createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig) {
|
|
754
|
+
return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
755
|
+
}
|
|
756
|
+
|
|
443
757
|
/**
|
|
444
758
|
* 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.
|
|
445
759
|
* @summary Retrieve the lead
|
|
@@ -475,4 +789,16 @@ export class LeadsApi extends BaseAPI {
|
|
|
475
789
|
public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
476
790
|
return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
477
791
|
}
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
795
|
+
* @summary Update the lead
|
|
796
|
+
* @param {LeadsApiUpdateLeadSyncRequest} requestParameters Request parameters.
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
* @memberof LeadsApi
|
|
800
|
+
*/
|
|
801
|
+
public updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig) {
|
|
802
|
+
return LeadsApiFp(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
803
|
+
}
|
|
478
804
|
}
|