@emilgroup/insurance-sdk 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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +5 -1
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +133 -15
  4. package/base.ts +2 -0
  5. package/dist/api/leads-api.d.ts +76 -10
  6. package/dist/api/leads-api.js +108 -11
  7. package/dist/base.js +3 -0
  8. package/dist/models/create-insured-object-request-dto.d.ts +20 -2
  9. package/dist/models/create-lead-request-dto.d.ts +18 -12
  10. package/dist/models/currency-class.d.ts +1 -1
  11. package/dist/models/grpc-patch-lead-request-dto.d.ts +77 -0
  12. package/dist/models/grpc-update-lead-request-dto.d.ts +89 -0
  13. package/dist/models/grpc-update-lead-request-dto.js +15 -0
  14. package/dist/models/index.d.ts +5 -1
  15. package/dist/models/index.js +5 -1
  16. package/dist/models/insured-object-class.d.ts +18 -0
  17. package/dist/models/invoice-item-class.d.ts +1 -1
  18. package/dist/models/invoice-status-class.d.ts +1 -1
  19. package/dist/models/lead-class.d.ts +9 -3
  20. package/dist/models/patch-lead-request-dto.d.ts +77 -0
  21. package/dist/models/patch-lead-request-dto.js +15 -0
  22. package/dist/models/patch-lead-response-class.d.ts +25 -0
  23. package/dist/models/patch-lead-response-class.js +15 -0
  24. package/dist/models/{invoice-class.d.ts → shared-invoice-class.d.ts} +40 -24
  25. package/dist/models/shared-invoice-class.js +30 -0
  26. package/dist/models/update-insured-object-request-dto.d.ts +18 -0
  27. package/dist/models/update-lead-request-dto.d.ts +7 -1
  28. package/models/create-insured-object-request-dto.ts +20 -2
  29. package/models/create-lead-request-dto.ts +18 -12
  30. package/models/currency-class.ts +1 -1
  31. package/models/grpc-patch-lead-request-dto.ts +83 -0
  32. package/models/grpc-update-lead-request-dto.ts +95 -0
  33. package/models/index.ts +5 -1
  34. package/models/insured-object-class.ts +18 -0
  35. package/models/invoice-item-class.ts +1 -1
  36. package/models/invoice-status-class.ts +1 -1
  37. package/models/lead-class.ts +9 -3
  38. package/models/patch-lead-request-dto.ts +83 -0
  39. package/models/patch-lead-response-class.ts +31 -0
  40. package/models/{invoice-class.ts → shared-invoice-class.ts} +44 -24
  41. package/models/update-insured-object-request-dto.ts +18 -0
  42. package/models/update-lead-request-dto.ts +7 -1
  43. package/package.json +1 -2
  44. /package/dist/models/{invoice-class.js → grpc-patch-lead-request-dto.js} +0 -0
@@ -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@1.10.1 --save
20
+ npm install @emilgroup/insurance-sdk@1.12.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.10.1
24
+ yarn add @emilgroup/insurance-sdk@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';
@@ -89,16 +93,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
89
93
  * 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.
90
94
  * @summary Retrieve the lead
91
95
  * @param {string} code Unique identifier for the object.
92
- * @param {string} expand
93
96
  * @param {string} [authorization] Bearer Token
97
+ * @param {string} [expand]
94
98
  * @param {*} [options] Override http request option.
95
99
  * @throws {RequiredError}
96
100
  */
97
- getLead: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ getLead: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
102
  // verify required parameter 'code' is not null or undefined
99
103
  assertParamExists('getLead', 'code', code)
100
- // verify required parameter 'expand' is not null or undefined
101
- assertParamExists('getLead', 'expand', expand)
102
104
  const localVarPath = `/insuranceservice/v1/leads/{code}`
103
105
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
104
106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -208,6 +210,57 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
208
210
  options: localVarRequestOptions,
209
211
  };
210
212
  },
213
+ /**
214
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
215
+ * @summary Update the lead
216
+ * @param {string} code Unique identifier for the object.
217
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
218
+ * @param {string} [authorization] Bearer Token
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ patchLead: async (code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
223
+ // verify required parameter 'code' is not null or undefined
224
+ assertParamExists('patchLead', 'code', code)
225
+ // verify required parameter 'patchLeadRequestDto' is not null or undefined
226
+ assertParamExists('patchLead', 'patchLeadRequestDto', patchLeadRequestDto)
227
+ const localVarPath = `/insuranceservice/v1/leads/{code}`
228
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
230
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
231
+ let baseOptions;
232
+ let baseAccessToken;
233
+ if (configuration) {
234
+ baseOptions = configuration.baseOptions;
235
+ baseAccessToken = configuration.accessToken;
236
+ }
237
+
238
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
239
+ const localVarHeaderParameter = {} as any;
240
+ const localVarQueryParameter = {} as any;
241
+
242
+ // authentication bearer required
243
+ // http bearer authentication required
244
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
245
+
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
+ }
249
+
250
+
251
+
252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
253
+
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
+ localVarRequestOptions.data = serializeDataIfNeeded(patchLeadRequestDto, localVarRequestOptions, configuration)
258
+
259
+ return {
260
+ url: toPathString(localVarUrlObj),
261
+ options: localVarRequestOptions,
262
+ };
263
+ },
211
264
  /**
212
265
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
213
266
  * @summary Update the lead
@@ -285,13 +338,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
285
338
  * 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.
286
339
  * @summary Retrieve the lead
287
340
  * @param {string} code Unique identifier for the object.
288
- * @param {string} expand
289
341
  * @param {string} [authorization] Bearer Token
342
+ * @param {string} [expand]
290
343
  * @param {*} [options] Override http request option.
291
344
  * @throws {RequiredError}
292
345
  */
293
- async getLead(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
294
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, expand, authorization, options);
346
+ async getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, expand, options);
295
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
296
349
  },
297
350
  /**
@@ -311,6 +364,19 @@ export const LeadsApiFp = function(configuration?: Configuration) {
311
364
  const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options);
312
365
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
313
366
  },
367
+ /**
368
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
369
+ * @summary Update the lead
370
+ * @param {string} code Unique identifier for the object.
371
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
372
+ * @param {string} [authorization] Bearer Token
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ async patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchLeadResponseClass>> {
377
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchLead(code, patchLeadRequestDto, authorization, options);
378
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
379
+ },
314
380
  /**
315
381
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
316
382
  * @summary Update the lead
@@ -349,13 +415,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
349
415
  * 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.
350
416
  * @summary Retrieve the lead
351
417
  * @param {string} code Unique identifier for the object.
352
- * @param {string} expand
353
418
  * @param {string} [authorization] Bearer Token
419
+ * @param {string} [expand]
354
420
  * @param {*} [options] Override http request option.
355
421
  * @throws {RequiredError}
356
422
  */
357
- getLead(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
358
- return localVarFp.getLead(code, expand, authorization, options).then((request) => request(axios, basePath));
423
+ getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
424
+ return localVarFp.getLead(code, authorization, expand, options).then((request) => request(axios, basePath));
359
425
  },
360
426
  /**
361
427
  * 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.
@@ -373,6 +439,18 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
373
439
  listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
374
440
  return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
375
441
  },
442
+ /**
443
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
444
+ * @summary Update the lead
445
+ * @param {string} code Unique identifier for the object.
446
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
447
+ * @param {string} [authorization] Bearer Token
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: any): AxiosPromise<PatchLeadResponseClass> {
452
+ return localVarFp.patchLead(code, patchLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
453
+ },
376
454
  /**
377
455
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
378
456
  * @summary Update the lead
@@ -423,18 +501,18 @@ export interface LeadsApiGetLeadRequest {
423
501
  readonly code: string
424
502
 
425
503
  /**
426
- *
504
+ * Bearer Token
427
505
  * @type {string}
428
506
  * @memberof LeadsApiGetLead
429
507
  */
430
- readonly expand: string
508
+ readonly authorization?: string
431
509
 
432
510
  /**
433
- * Bearer Token
511
+ *
434
512
  * @type {string}
435
513
  * @memberof LeadsApiGetLead
436
514
  */
437
- readonly authorization?: string
515
+ readonly expand?: string
438
516
  }
439
517
 
440
518
  /**
@@ -493,6 +571,34 @@ export interface LeadsApiListLeadsRequest {
493
571
  readonly expand?: any
494
572
  }
495
573
 
574
+ /**
575
+ * Request parameters for patchLead operation in LeadsApi.
576
+ * @export
577
+ * @interface LeadsApiPatchLeadRequest
578
+ */
579
+ export interface LeadsApiPatchLeadRequest {
580
+ /**
581
+ * Unique identifier for the object.
582
+ * @type {string}
583
+ * @memberof LeadsApiPatchLead
584
+ */
585
+ readonly code: string
586
+
587
+ /**
588
+ *
589
+ * @type {PatchLeadRequestDto}
590
+ * @memberof LeadsApiPatchLead
591
+ */
592
+ readonly patchLeadRequestDto: PatchLeadRequestDto
593
+
594
+ /**
595
+ * Bearer Token
596
+ * @type {string}
597
+ * @memberof LeadsApiPatchLead
598
+ */
599
+ readonly authorization?: string
600
+ }
601
+
496
602
  /**
497
603
  * Request parameters for updateLead operation in LeadsApi.
498
604
  * @export
@@ -549,7 +655,7 @@ export class LeadsApi extends BaseAPI {
549
655
  * @memberof LeadsApi
550
656
  */
551
657
  public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
552
- return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
658
+ return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
553
659
  }
554
660
 
555
661
  /**
@@ -564,6 +670,18 @@ export class LeadsApi extends BaseAPI {
564
670
  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));
565
671
  }
566
672
 
673
+ /**
674
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
675
+ * @summary Update the lead
676
+ * @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ * @memberof LeadsApi
680
+ */
681
+ public patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig) {
682
+ return LeadsApiFp(this.configuration).patchLead(requestParameters.code, requestParameters.patchLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
683
+ }
684
+
567
685
  /**
568
686
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
569
687
  * @summary Update the lead
package/base.ts CHANGED
@@ -160,6 +160,8 @@ export class BaseAPI {
160
160
  public loadTokenData() {
161
161
  if (typeof window !== 'undefined') {
162
162
  this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
163
+ } else {
164
+ this.tokenData = {};
163
165
  }
164
166
  }
165
167
 
@@ -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, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
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, expand: string, authorization?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
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 expand: string;
236
+ readonly authorization?: string;
205
237
  /**
206
- * Bearer Token
238
+ *
207
239
  * @type {string}
208
240
  * @memberof LeadsApiGetLead
209
241
  */
210
- readonly authorization?: string;
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