@emilgroup/customer-sdk-node 1.44.1-beta.0 → 1.46.1-beta.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 (40) hide show
  1. package/README.md +2 -2
  2. package/api/claims-api.ts +40 -40
  3. package/api/customers-api.ts +40 -40
  4. package/api/documents-api.ts +40 -40
  5. package/api/invites-api.ts +4 -4
  6. package/api/invoices-api.ts +40 -40
  7. package/api/leads-api.ts +70 -70
  8. package/api/policies-api.ts +40 -40
  9. package/api/products-api.ts +40 -40
  10. package/base.ts +1 -1
  11. package/common.ts +2 -2
  12. package/configuration.ts +9 -0
  13. package/dist/api/authentication-api.js +60 -23
  14. package/dist/api/claims-api.d.ts +40 -40
  15. package/dist/api/claims-api.js +67 -38
  16. package/dist/api/customers-api.d.ts +40 -40
  17. package/dist/api/customers-api.js +74 -41
  18. package/dist/api/default-api.js +18 -5
  19. package/dist/api/documents-api.d.ts +43 -43
  20. package/dist/api/documents-api.js +53 -32
  21. package/dist/api/invites-api.d.ts +4 -4
  22. package/dist/api/invites-api.js +43 -18
  23. package/dist/api/invoices-api.d.ts +40 -40
  24. package/dist/api/invoices-api.js +39 -26
  25. package/dist/api/leads-api.d.ts +56 -56
  26. package/dist/api/leads-api.js +84 -59
  27. package/dist/api/payments-api.js +25 -8
  28. package/dist/api/policies-api.d.ts +40 -40
  29. package/dist/api/policies-api.js +81 -44
  30. package/dist/api/products-api.d.ts +40 -40
  31. package/dist/api/products-api.js +46 -29
  32. package/dist/base.js +25 -15
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +4 -4
  35. package/dist/configuration.d.ts +6 -0
  36. package/dist/configuration.js +8 -0
  37. package/dist/models/policy-class.d.ts +48 -0
  38. package/models/policy-class.ts +48 -0
  39. package/package.json +4 -4
  40. package/tsconfig.json +1 -0
@@ -36,41 +36,41 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
36
36
  /**
37
37
  * 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.
38
38
  * @summary Retrieve the lead
39
- * @param {string} leadCode The unique identification code of the lead.
39
+ * @param {string} code Unique identifier for the object.
40
40
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
41
41
  * @param {string} [authorization] Bearer Token
42
42
  * @param {string} [expand]
43
43
  * @param {*} [options] Override http request option.
44
44
  * @throws {RequiredError}
45
45
  */
46
- getLead: (leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ getLead: (code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
47
  /**
48
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.
49
49
  * @summary List leads
50
50
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
51
51
  * @param {string} [authorization] Bearer Token
52
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
53
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
54
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
55
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
56
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
57
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
58
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
52
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
53
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
54
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
55
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
56
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
57
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
58
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
59
59
  * @param {*} [options] Override http request option.
60
60
  * @throws {RequiredError}
61
61
  */
62
- listLeads: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
62
+ listLeads: (customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
63
63
  /**
64
64
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
65
65
  * @summary Update the lead
66
- * @param {string} leadCode The unique identification code of the lead.
66
+ * @param {string} code Unique identifier for the object.
67
67
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
68
68
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
69
69
  * @param {string} [authorization] Bearer Token
70
70
  * @param {*} [options] Override http request option.
71
71
  * @throws {RequiredError}
72
72
  */
73
- updateLead: (leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
73
+ updateLead: (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
74
  };
75
75
  /**
76
76
  * LeadsApi - functional programming interface
@@ -90,41 +90,41 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
90
90
  /**
91
91
  * 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.
92
92
  * @summary Retrieve the lead
93
- * @param {string} leadCode The unique identification code of the lead.
93
+ * @param {string} code Unique identifier for the object.
94
94
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
95
95
  * @param {string} [authorization] Bearer Token
96
96
  * @param {string} [expand]
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- getLead(leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
100
+ getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
101
101
  /**
102
102
  * 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.
103
103
  * @summary List leads
104
104
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
105
105
  * @param {string} [authorization] Bearer Token
106
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
107
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
108
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
109
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
110
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
111
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
112
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
106
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
107
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
108
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
109
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
110
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
111
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
112
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
115
  */
116
- listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
116
+ listLeads(customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
117
117
  /**
118
118
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
119
119
  * @summary Update the lead
120
- * @param {string} leadCode The unique identification code of the lead.
120
+ * @param {string} code Unique identifier for the object.
121
121
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
122
122
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
123
123
  * @param {string} [authorization] Bearer Token
124
124
  * @param {*} [options] Override http request option.
125
125
  * @throws {RequiredError}
126
126
  */
127
- updateLead(leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
127
+ updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
128
128
  };
129
129
  /**
130
130
  * LeadsApi - factory interface
@@ -144,41 +144,41 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
144
144
  /**
145
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.
146
146
  * @summary Retrieve the lead
147
- * @param {string} leadCode The unique identification code of the lead.
147
+ * @param {string} code Unique identifier for the object.
148
148
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
149
149
  * @param {string} [authorization] Bearer Token
150
150
  * @param {string} [expand]
151
151
  * @param {*} [options] Override http request option.
152
152
  * @throws {RequiredError}
153
153
  */
154
- getLead(leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
154
+ getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
155
155
  /**
156
156
  * 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.
157
157
  * @summary List leads
158
158
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
159
159
  * @param {string} [authorization] Bearer Token
160
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
161
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
162
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
163
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
164
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
165
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
166
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
160
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
161
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
162
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
163
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
164
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
165
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
166
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
170
- listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
170
+ listLeads(customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListLeadsResponseClass>;
171
171
  /**
172
172
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
173
173
  * @summary Update the lead
174
- * @param {string} leadCode The unique identification code of the lead.
174
+ * @param {string} code Unique identifier for the object.
175
175
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
176
176
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
177
177
  * @param {string} [authorization] Bearer Token
178
178
  * @param {*} [options] Override http request option.
179
179
  * @throws {RequiredError}
180
180
  */
181
- updateLead(leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
181
+ updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
182
182
  };
183
183
  /**
184
184
  * Request parameters for createLead operation in LeadsApi.
@@ -212,11 +212,11 @@ export interface LeadsApiCreateLeadRequest {
212
212
  */
213
213
  export interface LeadsApiGetLeadRequest {
214
214
  /**
215
- * The unique identification code of the lead.
215
+ * Unique identifier for the object.
216
216
  * @type {string}
217
217
  * @memberof LeadsApiGetLead
218
218
  */
219
- readonly leadCode: string;
219
+ readonly code: string;
220
220
  /**
221
221
  * The customer code or \&quot;me\&quot; for the currently logged in customer.
222
222
  * @type {string}
@@ -256,46 +256,46 @@ export interface LeadsApiListLeadsRequest {
256
256
  readonly authorization?: string;
257
257
  /**
258
258
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
259
- * @type {any}
259
+ * @type {number}
260
260
  * @memberof LeadsApiListLeads
261
261
  */
262
- readonly pageSize?: any;
262
+ readonly pageSize?: number;
263
263
  /**
264
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
265
- * @type {any}
264
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
265
+ * @type {string}
266
266
  * @memberof LeadsApiListLeads
267
267
  */
268
- readonly pageToken?: any;
268
+ readonly pageToken?: string;
269
269
  /**
270
270
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
271
- * @type {any}
271
+ * @type {string}
272
272
  * @memberof LeadsApiListLeads
273
273
  */
274
- readonly filter?: any;
274
+ readonly filter?: string;
275
275
  /**
276
276
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
277
- * @type {any}
277
+ * @type {string}
278
278
  * @memberof LeadsApiListLeads
279
279
  */
280
- readonly search?: any;
280
+ readonly search?: string;
281
281
  /**
282
282
  * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
283
- * @type {any}
283
+ * @type {string}
284
284
  * @memberof LeadsApiListLeads
285
285
  */
286
- readonly order?: any;
286
+ readonly order?: string;
287
287
  /**
288
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
289
- * @type {any}
288
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
289
+ * @type {string}
290
290
  * @memberof LeadsApiListLeads
291
291
  */
292
- readonly expand?: any;
292
+ readonly expand?: string;
293
293
  /**
294
294
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
295
- * @type {any}
295
+ * @type {string}
296
296
  * @memberof LeadsApiListLeads
297
297
  */
298
- readonly filters?: any;
298
+ readonly filters?: string;
299
299
  }
300
300
  /**
301
301
  * Request parameters for updateLead operation in LeadsApi.
@@ -304,11 +304,11 @@ export interface LeadsApiListLeadsRequest {
304
304
  */
305
305
  export interface LeadsApiUpdateLeadRequest {
306
306
  /**
307
- * The unique identification code of the lead.
307
+ * Unique identifier for the object.
308
308
  * @type {string}
309
309
  * @memberof LeadsApiUpdateLead
310
310
  */
311
- readonly leadCode: string;
311
+ readonly code: string;
312
312
  /**
313
313
  * The customer code or \&quot;me\&quot; for the currently logged in customer.
314
314
  * @type {string}
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -105,10 +114,14 @@ var LeadsApiAxiosParamCreator = function (configuration) {
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
107
116
  */
108
- createLead: function (customerCode, createLeadRequestDto, authorization, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
117
+ createLead: function (customerCode_1, createLeadRequestDto_1, authorization_1) {
118
+ var args_1 = [];
119
+ for (var _i = 3; _i < arguments.length; _i++) {
120
+ args_1[_i - 3] = arguments[_i];
121
+ }
122
+ return __awaiter(_this, __spreadArray([customerCode_1, createLeadRequestDto_1, authorization_1], args_1, true), void 0, function (customerCode, createLeadRequestDto, authorization, options) {
111
123
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
124
+ if (options === void 0) { options = {}; }
112
125
  return __generator(this, function (_a) {
113
126
  switch (_a.label) {
114
127
  case 0:
@@ -152,26 +165,30 @@ var LeadsApiAxiosParamCreator = function (configuration) {
152
165
  /**
153
166
  * 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.
154
167
  * @summary Retrieve the lead
155
- * @param {string} leadCode The unique identification code of the lead.
168
+ * @param {string} code Unique identifier for the object.
156
169
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
157
170
  * @param {string} [authorization] Bearer Token
158
171
  * @param {string} [expand]
159
172
  * @param {*} [options] Override http request option.
160
173
  * @throws {RequiredError}
161
174
  */
162
- getLead: function (leadCode, customerCode, authorization, expand, options) {
163
- if (options === void 0) { options = {}; }
164
- return __awaiter(_this, void 0, void 0, function () {
175
+ getLead: function (code_1, customerCode_1, authorization_1, expand_1) {
176
+ var args_1 = [];
177
+ for (var _i = 4; _i < arguments.length; _i++) {
178
+ args_1[_i - 4] = arguments[_i];
179
+ }
180
+ return __awaiter(_this, __spreadArray([code_1, customerCode_1, authorization_1, expand_1], args_1, true), void 0, function (code, customerCode, authorization, expand, options) {
165
181
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
182
+ if (options === void 0) { options = {}; }
166
183
  return __generator(this, function (_a) {
167
184
  switch (_a.label) {
168
185
  case 0:
169
- // verify required parameter 'leadCode' is not null or undefined
170
- (0, common_1.assertParamExists)('getLead', 'leadCode', leadCode);
186
+ // verify required parameter 'code' is not null or undefined
187
+ (0, common_1.assertParamExists)('getLead', 'code', code);
171
188
  // verify required parameter 'customerCode' is not null or undefined
172
189
  (0, common_1.assertParamExists)('getLead', 'customerCode', customerCode);
173
- localVarPath = "/v1/customers/{customerCode}/leads/{leadCode}"
174
- .replace("{".concat("leadCode", "}"), encodeURIComponent(String(leadCode)))
190
+ localVarPath = "/v1/customers/{customerCode}/leads/{code}"
191
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
175
192
  .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
176
193
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
177
194
  if (configuration) {
@@ -210,20 +227,24 @@ var LeadsApiAxiosParamCreator = function (configuration) {
210
227
  * @summary List leads
211
228
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
212
229
  * @param {string} [authorization] Bearer Token
213
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
214
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
215
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
216
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
217
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
218
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
219
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
230
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
231
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
232
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
233
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
234
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
235
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
236
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
220
237
  * @param {*} [options] Override http request option.
221
238
  * @throws {RequiredError}
222
239
  */
223
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
224
- if (options === void 0) { options = {}; }
225
- return __awaiter(_this, void 0, void 0, function () {
240
+ listLeads: function (customerCode_1, authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
241
+ var args_1 = [];
242
+ for (var _i = 9; _i < arguments.length; _i++) {
243
+ args_1[_i - 9] = arguments[_i];
244
+ }
245
+ return __awaiter(_this, __spreadArray([customerCode_1, authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
226
246
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
247
+ if (options === void 0) { options = {}; }
227
248
  return __generator(this, function (_a) {
228
249
  switch (_a.label) {
229
250
  case 0:
@@ -284,28 +305,32 @@ var LeadsApiAxiosParamCreator = function (configuration) {
284
305
  /**
285
306
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
286
307
  * @summary Update the lead
287
- * @param {string} leadCode The unique identification code of the lead.
308
+ * @param {string} code Unique identifier for the object.
288
309
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
289
310
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
290
311
  * @param {string} [authorization] Bearer Token
291
312
  * @param {*} [options] Override http request option.
292
313
  * @throws {RequiredError}
293
314
  */
294
- updateLead: function (leadCode, customerCode, updateLeadRequestDto, authorization, options) {
295
- if (options === void 0) { options = {}; }
296
- return __awaiter(_this, void 0, void 0, function () {
315
+ updateLead: function (code_1, customerCode_1, updateLeadRequestDto_1, authorization_1) {
316
+ var args_1 = [];
317
+ for (var _i = 4; _i < arguments.length; _i++) {
318
+ args_1[_i - 4] = arguments[_i];
319
+ }
320
+ return __awaiter(_this, __spreadArray([code_1, customerCode_1, updateLeadRequestDto_1, authorization_1], args_1, true), void 0, function (code, customerCode, updateLeadRequestDto, authorization, options) {
297
321
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
322
+ if (options === void 0) { options = {}; }
298
323
  return __generator(this, function (_a) {
299
324
  switch (_a.label) {
300
325
  case 0:
301
- // verify required parameter 'leadCode' is not null or undefined
302
- (0, common_1.assertParamExists)('updateLead', 'leadCode', leadCode);
326
+ // verify required parameter 'code' is not null or undefined
327
+ (0, common_1.assertParamExists)('updateLead', 'code', code);
303
328
  // verify required parameter 'customerCode' is not null or undefined
304
329
  (0, common_1.assertParamExists)('updateLead', 'customerCode', customerCode);
305
330
  // verify required parameter 'updateLeadRequestDto' is not null or undefined
306
331
  (0, common_1.assertParamExists)('updateLead', 'updateLeadRequestDto', updateLeadRequestDto);
307
- localVarPath = "/v1/customers/{customerCode}/leads/{leadCode}"
308
- .replace("{".concat("leadCode", "}"), encodeURIComponent(String(leadCode)))
332
+ localVarPath = "/v1/customers/{customerCode}/leads/{code}"
333
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
309
334
  .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
310
335
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
311
336
  if (configuration) {
@@ -373,19 +398,19 @@ var LeadsApiFp = function (configuration) {
373
398
  /**
374
399
  * 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.
375
400
  * @summary Retrieve the lead
376
- * @param {string} leadCode The unique identification code of the lead.
401
+ * @param {string} code Unique identifier for the object.
377
402
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
378
403
  * @param {string} [authorization] Bearer Token
379
404
  * @param {string} [expand]
380
405
  * @param {*} [options] Override http request option.
381
406
  * @throws {RequiredError}
382
407
  */
383
- getLead: function (leadCode, customerCode, authorization, expand, options) {
408
+ getLead: function (code, customerCode, authorization, expand, options) {
384
409
  return __awaiter(this, void 0, void 0, function () {
385
410
  var localVarAxiosArgs;
386
411
  return __generator(this, function (_a) {
387
412
  switch (_a.label) {
388
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(leadCode, customerCode, authorization, expand, options)];
413
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options)];
389
414
  case 1:
390
415
  localVarAxiosArgs = _a.sent();
391
416
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -398,13 +423,13 @@ var LeadsApiFp = function (configuration) {
398
423
  * @summary List leads
399
424
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
400
425
  * @param {string} [authorization] Bearer Token
401
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
402
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
403
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
404
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
405
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
406
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
407
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
426
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
427
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
428
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
429
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
430
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
431
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
432
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
408
433
  * @param {*} [options] Override http request option.
409
434
  * @throws {RequiredError}
410
435
  */
@@ -424,19 +449,19 @@ var LeadsApiFp = function (configuration) {
424
449
  /**
425
450
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
426
451
  * @summary Update the lead
427
- * @param {string} leadCode The unique identification code of the lead.
452
+ * @param {string} code Unique identifier for the object.
428
453
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
429
454
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
430
455
  * @param {string} [authorization] Bearer Token
431
456
  * @param {*} [options] Override http request option.
432
457
  * @throws {RequiredError}
433
458
  */
434
- updateLead: function (leadCode, customerCode, updateLeadRequestDto, authorization, options) {
459
+ updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
435
460
  return __awaiter(this, void 0, void 0, function () {
436
461
  var localVarAxiosArgs;
437
462
  return __generator(this, function (_a) {
438
463
  switch (_a.label) {
439
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(leadCode, customerCode, updateLeadRequestDto, authorization, options)];
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options)];
440
465
  case 1:
441
466
  localVarAxiosArgs = _a.sent();
442
467
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -469,28 +494,28 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
469
494
  /**
470
495
  * 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.
471
496
  * @summary Retrieve the lead
472
- * @param {string} leadCode The unique identification code of the lead.
497
+ * @param {string} code Unique identifier for the object.
473
498
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
474
499
  * @param {string} [authorization] Bearer Token
475
500
  * @param {string} [expand]
476
501
  * @param {*} [options] Override http request option.
477
502
  * @throws {RequiredError}
478
503
  */
479
- getLead: function (leadCode, customerCode, authorization, expand, options) {
480
- return localVarFp.getLead(leadCode, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
504
+ getLead: function (code, customerCode, authorization, expand, options) {
505
+ return localVarFp.getLead(code, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
481
506
  },
482
507
  /**
483
508
  * 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.
484
509
  * @summary List leads
485
510
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
486
511
  * @param {string} [authorization] Bearer Token
487
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
488
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
489
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
490
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
491
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
492
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
493
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
512
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
513
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
514
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
515
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
516
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
517
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
518
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
494
519
  * @param {*} [options] Override http request option.
495
520
  * @throws {RequiredError}
496
521
  */
@@ -500,15 +525,15 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
500
525
  /**
501
526
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
502
527
  * @summary Update the lead
503
- * @param {string} leadCode The unique identification code of the lead.
528
+ * @param {string} code Unique identifier for the object.
504
529
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
505
530
  * @param {UpdateLeadRequestDto} updateLeadRequestDto
506
531
  * @param {string} [authorization] Bearer Token
507
532
  * @param {*} [options] Override http request option.
508
533
  * @throws {RequiredError}
509
534
  */
510
- updateLead: function (leadCode, customerCode, updateLeadRequestDto, authorization, options) {
511
- return localVarFp.updateLead(leadCode, customerCode, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
535
+ updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
536
+ return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
512
537
  },
513
538
  };
514
539
  };
@@ -546,7 +571,7 @@ var LeadsApi = /** @class */ (function (_super) {
546
571
  */
547
572
  LeadsApi.prototype.getLead = function (requestParameters, options) {
548
573
  var _this = this;
549
- return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.leadCode, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
+ return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
550
575
  };
551
576
  /**
552
577
  * 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.
@@ -570,7 +595,7 @@ var LeadsApi = /** @class */ (function (_super) {
570
595
  */
571
596
  LeadsApi.prototype.updateLead = function (requestParameters, options) {
572
597
  var _this = this;
573
- return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.leadCode, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
598
+ return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
599
  };
575
600
  return LeadsApi;
576
601
  }(base_1.BaseAPI));