@emilgroup/insurance-sdk-node 1.10.1 → 1.12.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 +5 -1
- package/README.md +2 -2
- package/api/leads-api.ts +133 -15
- package/base.ts +1 -1
- package/dist/api/leads-api.d.ts +76 -10
- package/dist/api/leads-api.js +108 -11
- package/dist/base.js +1 -1
- package/dist/models/create-insured-object-request-dto.d.ts +20 -2
- package/dist/models/create-lead-request-dto.d.ts +18 -12
- package/dist/models/currency-class.d.ts +1 -1
- package/dist/models/grpc-patch-lead-request-dto.d.ts +77 -0
- package/dist/models/grpc-update-lead-request-dto.d.ts +89 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/dist/models/insured-object-class.d.ts +18 -0
- package/dist/models/invoice-item-class.d.ts +1 -1
- package/dist/models/invoice-status-class.d.ts +1 -1
- package/dist/models/lead-class.d.ts +9 -3
- package/dist/models/patch-lead-request-dto.d.ts +77 -0
- package/dist/models/patch-lead-request-dto.js +15 -0
- package/dist/models/patch-lead-response-class.d.ts +25 -0
- package/dist/models/patch-lead-response-class.js +15 -0
- package/dist/models/{invoice-class.d.ts → shared-invoice-class.d.ts} +40 -24
- package/dist/models/shared-invoice-class.js +30 -0
- package/dist/models/update-insured-object-request-dto.d.ts +18 -0
- package/dist/models/update-lead-request-dto.d.ts +7 -1
- package/models/create-insured-object-request-dto.ts +20 -2
- package/models/create-lead-request-dto.ts +18 -12
- package/models/currency-class.ts +1 -1
- package/models/grpc-patch-lead-request-dto.ts +83 -0
- package/models/grpc-update-lead-request-dto.ts +95 -0
- package/models/index.ts +5 -1
- package/models/insured-object-class.ts +18 -0
- package/models/invoice-item-class.ts +1 -1
- package/models/invoice-status-class.ts +1 -1
- package/models/lead-class.ts +9 -3
- package/models/patch-lead-request-dto.ts +83 -0
- package/models/patch-lead-response-class.ts +31 -0
- package/models/{invoice-class.ts → shared-invoice-class.ts} +44 -24
- package/models/update-insured-object-request-dto.ts +18 -0
- package/models/update-lead-request-dto.ts +7 -1
- package/package.json +2 -2
- /package/dist/models/{invoice-class.js → grpc-patch-lead-request-dto.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -65,10 +65,11 @@ models/get-product-version-response-class.ts
|
|
|
65
65
|
models/grouped-product-factor-class.ts
|
|
66
66
|
models/grouped-product-factor-value-class.ts
|
|
67
67
|
models/grouped-product-factors-response-class.ts
|
|
68
|
+
models/grpc-patch-lead-request-dto.ts
|
|
69
|
+
models/grpc-update-lead-request-dto.ts
|
|
68
70
|
models/index.ts
|
|
69
71
|
models/insured-object-class.ts
|
|
70
72
|
models/insured-object-type-class.ts
|
|
71
|
-
models/invoice-class.ts
|
|
72
73
|
models/invoice-item-class.ts
|
|
73
74
|
models/invoice-status-class.ts
|
|
74
75
|
models/lead-bank-account-class.ts
|
|
@@ -85,6 +86,8 @@ models/list-product-field-types-response-class.ts
|
|
|
85
86
|
models/list-product-fields-response-class.ts
|
|
86
87
|
models/list-products-response-class.ts
|
|
87
88
|
models/list-request-dto.ts
|
|
89
|
+
models/patch-lead-request-dto.ts
|
|
90
|
+
models/patch-lead-response-class.ts
|
|
88
91
|
models/policy-class.ts
|
|
89
92
|
models/policy-object-class.ts
|
|
90
93
|
models/policy-object-dto.ts
|
|
@@ -101,6 +104,7 @@ models/product-factor-value-class.ts
|
|
|
101
104
|
models/product-field-class.ts
|
|
102
105
|
models/product-field-type-class.ts
|
|
103
106
|
models/product-version-class.ts
|
|
107
|
+
models/shared-invoice-class.ts
|
|
104
108
|
models/shared-product-field-class.ts
|
|
105
109
|
models/shared-update-premium-formula-request-dto.ts
|
|
106
110
|
models/store-product-factors-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/insurance-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.12.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.12.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -29,6 +29,10 @@ import { GetLeadResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListLeadsResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { PatchLeadRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { PatchLeadResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
32
36
|
import { UpdateLeadRequestDto } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
38
|
import { UpdateLeadResponseClass } from '../models';
|
|
@@ -93,16 +97,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
93
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.
|
|
94
98
|
* @summary Retrieve the lead
|
|
95
99
|
* @param {string} code Unique identifier for the object.
|
|
96
|
-
* @param {string} expand
|
|
97
100
|
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {string} [expand]
|
|
98
102
|
* @param {*} [options] Override http request option.
|
|
99
103
|
* @throws {RequiredError}
|
|
100
104
|
*/
|
|
101
|
-
getLead: async (code: string,
|
|
105
|
+
getLead: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
106
|
// verify required parameter 'code' is not null or undefined
|
|
103
107
|
assertParamExists('getLead', 'code', code)
|
|
104
|
-
// verify required parameter 'expand' is not null or undefined
|
|
105
|
-
assertParamExists('getLead', 'expand', expand)
|
|
106
108
|
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
107
109
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
108
110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -212,6 +214,57 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
212
214
|
options: localVarRequestOptions,
|
|
213
215
|
};
|
|
214
216
|
},
|
|
217
|
+
/**
|
|
218
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
219
|
+
* @summary Update the lead
|
|
220
|
+
* @param {string} code Unique identifier for the object.
|
|
221
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
222
|
+
* @param {string} [authorization] Bearer Token
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
patchLead: async (code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
227
|
+
// verify required parameter 'code' is not null or undefined
|
|
228
|
+
assertParamExists('patchLead', 'code', code)
|
|
229
|
+
// verify required parameter 'patchLeadRequestDto' is not null or undefined
|
|
230
|
+
assertParamExists('patchLead', 'patchLeadRequestDto', patchLeadRequestDto)
|
|
231
|
+
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
232
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
235
|
+
let baseOptions;
|
|
236
|
+
let baseAccessToken;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
baseAccessToken = configuration.accessToken;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
243
|
+
const localVarHeaderParameter = {} as any;
|
|
244
|
+
const localVarQueryParameter = {} as any;
|
|
245
|
+
|
|
246
|
+
// authentication bearer required
|
|
247
|
+
// http bearer authentication required
|
|
248
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
|
+
|
|
250
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
257
|
+
|
|
258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchLeadRequestDto, localVarRequestOptions, configuration)
|
|
262
|
+
|
|
263
|
+
return {
|
|
264
|
+
url: toPathString(localVarUrlObj),
|
|
265
|
+
options: localVarRequestOptions,
|
|
266
|
+
};
|
|
267
|
+
},
|
|
215
268
|
/**
|
|
216
269
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
217
270
|
* @summary Update the lead
|
|
@@ -289,13 +342,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
289
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.
|
|
290
343
|
* @summary Retrieve the lead
|
|
291
344
|
* @param {string} code Unique identifier for the object.
|
|
292
|
-
* @param {string} expand
|
|
293
345
|
* @param {string} [authorization] Bearer Token
|
|
346
|
+
* @param {string} [expand]
|
|
294
347
|
* @param {*} [options] Override http request option.
|
|
295
348
|
* @throws {RequiredError}
|
|
296
349
|
*/
|
|
297
|
-
async getLead(code: string,
|
|
298
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code,
|
|
350
|
+
async getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, expand, options);
|
|
299
352
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
300
353
|
},
|
|
301
354
|
/**
|
|
@@ -315,6 +368,19 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
315
368
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
316
369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
370
|
},
|
|
371
|
+
/**
|
|
372
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
373
|
+
* @summary Update the lead
|
|
374
|
+
* @param {string} code Unique identifier for the object.
|
|
375
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
376
|
+
* @param {string} [authorization] Bearer Token
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
async patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchLeadResponseClass>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchLead(code, patchLeadRequestDto, authorization, options);
|
|
382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
|
+
},
|
|
318
384
|
/**
|
|
319
385
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
320
386
|
* @summary Update the lead
|
|
@@ -353,13 +419,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
353
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.
|
|
354
420
|
* @summary Retrieve the lead
|
|
355
421
|
* @param {string} code Unique identifier for the object.
|
|
356
|
-
* @param {string} expand
|
|
357
422
|
* @param {string} [authorization] Bearer Token
|
|
423
|
+
* @param {string} [expand]
|
|
358
424
|
* @param {*} [options] Override http request option.
|
|
359
425
|
* @throws {RequiredError}
|
|
360
426
|
*/
|
|
361
|
-
getLead(code: string,
|
|
362
|
-
return localVarFp.getLead(code,
|
|
427
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
428
|
+
return localVarFp.getLead(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
363
429
|
},
|
|
364
430
|
/**
|
|
365
431
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -377,6 +443,18 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
377
443
|
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
|
|
378
444
|
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
379
445
|
},
|
|
446
|
+
/**
|
|
447
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
448
|
+
* @summary Update the lead
|
|
449
|
+
* @param {string} code Unique identifier for the object.
|
|
450
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
451
|
+
* @param {string} [authorization] Bearer Token
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
*/
|
|
455
|
+
patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: any): AxiosPromise<PatchLeadResponseClass> {
|
|
456
|
+
return localVarFp.patchLead(code, patchLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
457
|
+
},
|
|
380
458
|
/**
|
|
381
459
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
382
460
|
* @summary Update the lead
|
|
@@ -427,18 +505,18 @@ export interface LeadsApiGetLeadRequest {
|
|
|
427
505
|
readonly code: string
|
|
428
506
|
|
|
429
507
|
/**
|
|
430
|
-
*
|
|
508
|
+
* Bearer Token
|
|
431
509
|
* @type {string}
|
|
432
510
|
* @memberof LeadsApiGetLead
|
|
433
511
|
*/
|
|
434
|
-
readonly
|
|
512
|
+
readonly authorization?: string
|
|
435
513
|
|
|
436
514
|
/**
|
|
437
|
-
*
|
|
515
|
+
*
|
|
438
516
|
* @type {string}
|
|
439
517
|
* @memberof LeadsApiGetLead
|
|
440
518
|
*/
|
|
441
|
-
readonly
|
|
519
|
+
readonly expand?: string
|
|
442
520
|
}
|
|
443
521
|
|
|
444
522
|
/**
|
|
@@ -497,6 +575,34 @@ export interface LeadsApiListLeadsRequest {
|
|
|
497
575
|
readonly expand?: any
|
|
498
576
|
}
|
|
499
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Request parameters for patchLead operation in LeadsApi.
|
|
580
|
+
* @export
|
|
581
|
+
* @interface LeadsApiPatchLeadRequest
|
|
582
|
+
*/
|
|
583
|
+
export interface LeadsApiPatchLeadRequest {
|
|
584
|
+
/**
|
|
585
|
+
* Unique identifier for the object.
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof LeadsApiPatchLead
|
|
588
|
+
*/
|
|
589
|
+
readonly code: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {PatchLeadRequestDto}
|
|
594
|
+
* @memberof LeadsApiPatchLead
|
|
595
|
+
*/
|
|
596
|
+
readonly patchLeadRequestDto: PatchLeadRequestDto
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Bearer Token
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof LeadsApiPatchLead
|
|
602
|
+
*/
|
|
603
|
+
readonly authorization?: string
|
|
604
|
+
}
|
|
605
|
+
|
|
500
606
|
/**
|
|
501
607
|
* Request parameters for updateLead operation in LeadsApi.
|
|
502
608
|
* @export
|
|
@@ -553,7 +659,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
553
659
|
* @memberof LeadsApi
|
|
554
660
|
*/
|
|
555
661
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
556
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
662
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
557
663
|
}
|
|
558
664
|
|
|
559
665
|
/**
|
|
@@ -568,6 +674,18 @@ export class LeadsApi extends BaseAPI {
|
|
|
568
674
|
return LeadsApiFp(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
569
675
|
}
|
|
570
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
679
|
+
* @summary Update the lead
|
|
680
|
+
* @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
* @memberof LeadsApi
|
|
684
|
+
*/
|
|
685
|
+
public patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig) {
|
|
686
|
+
return LeadsApiFp(this.configuration).patchLead(requestParameters.code, requestParameters.patchLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
687
|
+
}
|
|
688
|
+
|
|
571
689
|
/**
|
|
572
690
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
573
691
|
* @summary Update the lead
|
package/base.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import { CreateLeadRequestDto } from '../models';
|
|
|
16
16
|
import { CreateLeadResponseClass } from '../models';
|
|
17
17
|
import { GetLeadResponseClass } from '../models';
|
|
18
18
|
import { ListLeadsResponseClass } from '../models';
|
|
19
|
+
import { PatchLeadRequestDto } from '../models';
|
|
20
|
+
import { PatchLeadResponseClass } from '../models';
|
|
19
21
|
import { UpdateLeadRequestDto } from '../models';
|
|
20
22
|
import { UpdateLeadResponseClass } from '../models';
|
|
21
23
|
/**
|
|
@@ -36,12 +38,12 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
36
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.
|
|
37
39
|
* @summary Retrieve the lead
|
|
38
40
|
* @param {string} code Unique identifier for the object.
|
|
39
|
-
* @param {string} expand
|
|
40
41
|
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {string} [expand]
|
|
41
43
|
* @param {*} [options] Override http request option.
|
|
42
44
|
* @throws {RequiredError}
|
|
43
45
|
*/
|
|
44
|
-
getLead: (code: string,
|
|
46
|
+
getLead: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
47
|
/**
|
|
46
48
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
47
49
|
* @summary List leads
|
|
@@ -56,6 +58,16 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
56
58
|
* @throws {RequiredError}
|
|
57
59
|
*/
|
|
58
60
|
listLeads: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
63
|
+
* @summary Update the lead
|
|
64
|
+
* @param {string} code Unique identifier for the object.
|
|
65
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
66
|
+
* @param {string} [authorization] Bearer Token
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
patchLead: (code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
71
|
/**
|
|
60
72
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
61
73
|
* @summary Update the lead
|
|
@@ -85,12 +97,12 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
85
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.
|
|
86
98
|
* @summary Retrieve the lead
|
|
87
99
|
* @param {string} code Unique identifier for the object.
|
|
88
|
-
* @param {string} expand
|
|
89
100
|
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {string} [expand]
|
|
90
102
|
* @param {*} [options] Override http request option.
|
|
91
103
|
* @throws {RequiredError}
|
|
92
104
|
*/
|
|
93
|
-
getLead(code: string,
|
|
105
|
+
getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
94
106
|
/**
|
|
95
107
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
96
108
|
* @summary List leads
|
|
@@ -105,6 +117,16 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
105
117
|
* @throws {RequiredError}
|
|
106
118
|
*/
|
|
107
119
|
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
|
|
120
|
+
/**
|
|
121
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
122
|
+
* @summary Update the lead
|
|
123
|
+
* @param {string} code Unique identifier for the object.
|
|
124
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
125
|
+
* @param {string} [authorization] Bearer Token
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchLeadResponseClass>>;
|
|
108
130
|
/**
|
|
109
131
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
110
132
|
* @summary Update the lead
|
|
@@ -134,12 +156,12 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
134
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.
|
|
135
157
|
* @summary Retrieve the lead
|
|
136
158
|
* @param {string} code Unique identifier for the object.
|
|
137
|
-
* @param {string} expand
|
|
138
159
|
* @param {string} [authorization] Bearer Token
|
|
160
|
+
* @param {string} [expand]
|
|
139
161
|
* @param {*} [options] Override http request option.
|
|
140
162
|
* @throws {RequiredError}
|
|
141
163
|
*/
|
|
142
|
-
getLead(code: string,
|
|
164
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
143
165
|
/**
|
|
144
166
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
145
167
|
* @summary List leads
|
|
@@ -154,6 +176,16 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
154
176
|
* @throws {RequiredError}
|
|
155
177
|
*/
|
|
156
178
|
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
|
|
179
|
+
/**
|
|
180
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
181
|
+
* @summary Update the lead
|
|
182
|
+
* @param {string} code Unique identifier for the object.
|
|
183
|
+
* @param {PatchLeadRequestDto} patchLeadRequestDto
|
|
184
|
+
* @param {string} [authorization] Bearer Token
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: any): AxiosPromise<PatchLeadResponseClass>;
|
|
157
189
|
/**
|
|
158
190
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
159
191
|
* @summary Update the lead
|
|
@@ -197,17 +229,17 @@ export interface LeadsApiGetLeadRequest {
|
|
|
197
229
|
*/
|
|
198
230
|
readonly code: string;
|
|
199
231
|
/**
|
|
200
|
-
*
|
|
232
|
+
* Bearer Token
|
|
201
233
|
* @type {string}
|
|
202
234
|
* @memberof LeadsApiGetLead
|
|
203
235
|
*/
|
|
204
|
-
readonly
|
|
236
|
+
readonly authorization?: string;
|
|
205
237
|
/**
|
|
206
|
-
*
|
|
238
|
+
*
|
|
207
239
|
* @type {string}
|
|
208
240
|
* @memberof LeadsApiGetLead
|
|
209
241
|
*/
|
|
210
|
-
readonly
|
|
242
|
+
readonly expand?: string;
|
|
211
243
|
}
|
|
212
244
|
/**
|
|
213
245
|
* Request parameters for listLeads operation in LeadsApi.
|
|
@@ -258,6 +290,31 @@ export interface LeadsApiListLeadsRequest {
|
|
|
258
290
|
*/
|
|
259
291
|
readonly expand?: any;
|
|
260
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Request parameters for patchLead operation in LeadsApi.
|
|
295
|
+
* @export
|
|
296
|
+
* @interface LeadsApiPatchLeadRequest
|
|
297
|
+
*/
|
|
298
|
+
export interface LeadsApiPatchLeadRequest {
|
|
299
|
+
/**
|
|
300
|
+
* Unique identifier for the object.
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof LeadsApiPatchLead
|
|
303
|
+
*/
|
|
304
|
+
readonly code: string;
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @type {PatchLeadRequestDto}
|
|
308
|
+
* @memberof LeadsApiPatchLead
|
|
309
|
+
*/
|
|
310
|
+
readonly patchLeadRequestDto: PatchLeadRequestDto;
|
|
311
|
+
/**
|
|
312
|
+
* Bearer Token
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof LeadsApiPatchLead
|
|
315
|
+
*/
|
|
316
|
+
readonly authorization?: string;
|
|
317
|
+
}
|
|
261
318
|
/**
|
|
262
319
|
* Request parameters for updateLead operation in LeadsApi.
|
|
263
320
|
* @export
|
|
@@ -317,6 +374,15 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
317
374
|
* @memberof LeadsApi
|
|
318
375
|
*/
|
|
319
376
|
listLeads(requestParameters?: LeadsApiListLeadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadsResponseClass, any>>;
|
|
377
|
+
/**
|
|
378
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
379
|
+
* @summary Update the lead
|
|
380
|
+
* @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
* @memberof LeadsApi
|
|
384
|
+
*/
|
|
385
|
+
patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchLeadResponseClass, any>>;
|
|
320
386
|
/**
|
|
321
387
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
322
388
|
* @summary Update the lead
|