@emilgroup/insurance-sdk-node 1.49.0 → 1.49.1

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 (129) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -8
  4. package/api/booking-funnels-api.ts +12 -12
  5. package/api/emil-functions-api.ts +1314 -0
  6. package/api/insured-object-types-api.ts +4 -4
  7. package/api/insured-objects-api.ts +8 -8
  8. package/api/lead-statuses-api.ts +104 -20
  9. package/api/lead-versions-api.ts +8 -8
  10. package/api/leads-api.ts +8 -8
  11. package/api/named-ranges-api.ts +8 -8
  12. package/api/policies-api.ts +107 -109
  13. package/api/policy-partner-roles-api.ts +8 -8
  14. package/api/premium-formulas-api.ts +8 -8
  15. package/api/product-factors-api.ts +8 -8
  16. package/api/product-fields-api.ts +119 -12
  17. package/api/product-versions-api.ts +4 -4
  18. package/api/products-api.ts +20 -20
  19. package/api/status-transition-rules-api.ts +8 -8
  20. package/api.ts +2 -0
  21. package/dist/api/booking-funnel-versions-api.d.ts +8 -8
  22. package/dist/api/booking-funnel-versions-api.js +8 -8
  23. package/dist/api/booking-funnels-api.d.ts +12 -12
  24. package/dist/api/booking-funnels-api.js +12 -12
  25. package/dist/api/emil-functions-api.d.ts +727 -0
  26. package/dist/api/emil-functions-api.js +1202 -0
  27. package/dist/api/insured-object-types-api.d.ts +4 -4
  28. package/dist/api/insured-object-types-api.js +4 -4
  29. package/dist/api/insured-objects-api.d.ts +8 -8
  30. package/dist/api/insured-objects-api.js +8 -8
  31. package/dist/api/lead-statuses-api.d.ts +71 -17
  32. package/dist/api/lead-statuses-api.js +53 -17
  33. package/dist/api/lead-versions-api.d.ts +8 -8
  34. package/dist/api/lead-versions-api.js +8 -8
  35. package/dist/api/leads-api.d.ts +8 -8
  36. package/dist/api/leads-api.js +8 -8
  37. package/dist/api/named-ranges-api.d.ts +8 -8
  38. package/dist/api/named-ranges-api.js +8 -8
  39. package/dist/api/policies-api.d.ts +103 -103
  40. package/dist/api/policies-api.js +63 -64
  41. package/dist/api/policy-partner-roles-api.d.ts +8 -8
  42. package/dist/api/policy-partner-roles-api.js +8 -8
  43. package/dist/api/premium-formulas-api.d.ts +8 -8
  44. package/dist/api/premium-formulas-api.js +8 -8
  45. package/dist/api/product-factors-api.d.ts +8 -8
  46. package/dist/api/product-factors-api.js +8 -8
  47. package/dist/api/product-fields-api.d.ts +69 -12
  48. package/dist/api/product-fields-api.js +105 -12
  49. package/dist/api/product-versions-api.d.ts +4 -4
  50. package/dist/api/product-versions-api.js +4 -4
  51. package/dist/api/products-api.d.ts +20 -20
  52. package/dist/api/products-api.js +18 -18
  53. package/dist/api/status-transition-rules-api.d.ts +8 -8
  54. package/dist/api/status-transition-rules-api.js +8 -8
  55. package/dist/api.d.ts +1 -0
  56. package/dist/api.js +1 -0
  57. package/dist/models/booking-funnel-class.d.ts +1 -1
  58. package/dist/models/create-booking-funnel-request-dto.d.ts +1 -1
  59. package/dist/models/create-emil-function-request-dto.d.ts +42 -0
  60. package/dist/models/create-emil-function-request-dto.js +15 -0
  61. package/dist/models/create-emil-function-secret-request-dto.d.ts +36 -0
  62. package/dist/models/create-emil-function-secret-request-dto.js +15 -0
  63. package/dist/models/create-policy-partner-role-request-dto.d.ts +1 -1
  64. package/dist/models/create-product-field-request-dto.d.ts +7 -1
  65. package/dist/models/create-product-request-dto.d.ts +1 -1
  66. package/dist/models/emil-function-class.d.ts +60 -0
  67. package/dist/models/emil-function-class.js +15 -0
  68. package/dist/models/emil-function-secret-class.d.ts +30 -0
  69. package/dist/models/emil-function-secret-class.js +15 -0
  70. package/dist/models/execute-emil-function-request-dto.d.ts +24 -0
  71. package/dist/models/execute-emil-function-request-dto.js +15 -0
  72. package/dist/models/get-emil-function-secret-response-class.d.ts +24 -0
  73. package/dist/models/get-emil-function-secret-response-class.js +15 -0
  74. package/dist/models/get-product-request-dto.d.ts +1 -1
  75. package/dist/models/index.d.ts +11 -0
  76. package/dist/models/index.js +11 -0
  77. package/dist/models/insured-object-type-class.d.ts +1 -1
  78. package/dist/models/lead-class.d.ts +1 -1
  79. package/dist/models/lead-status-class.d.ts +1 -1
  80. package/dist/models/list-emil-function-secrets-response-class.d.ts +25 -0
  81. package/dist/models/list-emil-function-secrets-response-class.js +15 -0
  82. package/dist/models/list-emil-functions-response-class.d.ts +31 -0
  83. package/dist/models/list-emil-functions-response-class.js +15 -0
  84. package/dist/models/patch-draft-policy-request-dto.d.ts +1 -1
  85. package/dist/models/policy-partner-role-class.d.ts +1 -1
  86. package/dist/models/product-class.d.ts +1 -1
  87. package/dist/models/product-field-class.d.ts +6 -0
  88. package/dist/models/shared-product-field-class.d.ts +6 -0
  89. package/dist/models/status-transition-rule-class.d.ts +1 -1
  90. package/dist/models/swap-product-fields-order-request-dto.d.ts +30 -0
  91. package/dist/models/swap-product-fields-order-request-dto.js +15 -0
  92. package/dist/models/update-emil-function-request-dto.d.ts +42 -0
  93. package/dist/models/update-emil-function-request-dto.js +15 -0
  94. package/dist/models/update-emil-function-secret-request-dto.d.ts +30 -0
  95. package/dist/models/update-emil-function-secret-request-dto.js +15 -0
  96. package/dist/models/update-policy-partner-role-request-dto.d.ts +1 -1
  97. package/dist/models/update-product-field-request-dto.d.ts +7 -1
  98. package/dist/models/update-product-request-dto.d.ts +1 -1
  99. package/models/booking-funnel-class.ts +1 -1
  100. package/models/create-booking-funnel-request-dto.ts +1 -1
  101. package/models/create-emil-function-request-dto.ts +48 -0
  102. package/models/create-emil-function-secret-request-dto.ts +42 -0
  103. package/models/create-policy-partner-role-request-dto.ts +1 -1
  104. package/models/create-product-field-request-dto.ts +7 -1
  105. package/models/create-product-request-dto.ts +1 -1
  106. package/models/emil-function-class.ts +66 -0
  107. package/models/emil-function-secret-class.ts +36 -0
  108. package/models/execute-emil-function-request-dto.ts +30 -0
  109. package/models/get-emil-function-secret-response-class.ts +30 -0
  110. package/models/get-product-request-dto.ts +1 -1
  111. package/models/index.ts +11 -0
  112. package/models/insured-object-type-class.ts +1 -1
  113. package/models/lead-class.ts +1 -1
  114. package/models/lead-status-class.ts +1 -1
  115. package/models/list-emil-function-secrets-response-class.ts +31 -0
  116. package/models/list-emil-functions-response-class.ts +37 -0
  117. package/models/patch-draft-policy-request-dto.ts +1 -1
  118. package/models/policy-partner-role-class.ts +1 -1
  119. package/models/product-class.ts +1 -1
  120. package/models/product-field-class.ts +6 -0
  121. package/models/shared-product-field-class.ts +6 -0
  122. package/models/status-transition-rule-class.ts +1 -1
  123. package/models/swap-product-fields-order-request-dto.ts +36 -0
  124. package/models/update-emil-function-request-dto.ts +48 -0
  125. package/models/update-emil-function-secret-request-dto.ts +36 -0
  126. package/models/update-policy-partner-role-request-dto.ts +1 -1
  127. package/models/update-product-field-request-dto.ts +7 -1
  128. package/models/update-product-request-dto.ts +1 -1
  129. package/package.json +1 -1
@@ -33,7 +33,7 @@ const FormData = require('form-data');
33
33
  export const InsuredObjectTypesApiAxiosParamCreator = function (configuration?: Configuration) {
34
34
  return {
35
35
  /**
36
- * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
36
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
37
37
  * @summary List insured object types
38
38
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
39
  * @param {number} [pageSize] Page size.
@@ -119,7 +119,7 @@ export const InsuredObjectTypesApiFp = function(configuration?: Configuration) {
119
119
  const localVarAxiosParamCreator = InsuredObjectTypesApiAxiosParamCreator(configuration)
120
120
  return {
121
121
  /**
122
- * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
122
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
123
123
  * @summary List insured object types
124
124
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
125
125
  * @param {number} [pageSize] Page size.
@@ -147,7 +147,7 @@ export const InsuredObjectTypesApiFactory = function (configuration?: Configurat
147
147
  const localVarFp = InsuredObjectTypesApiFp(configuration)
148
148
  return {
149
149
  /**
150
- * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
150
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
151
151
  * @summary List insured object types
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {number} [pageSize] Page size.
@@ -237,7 +237,7 @@ export interface InsuredObjectTypesApiListInsuredObjectTypesRequest {
237
237
  */
238
238
  export class InsuredObjectTypesApi extends BaseAPI {
239
239
  /**
240
- * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
240
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
241
241
  * @summary List insured object types
242
242
  * @param {InsuredObjectTypesApiListInsuredObjectTypesRequest} requestParameters Request parameters.
243
243
  * @param {*} [options] Override http request option.
@@ -131,7 +131,7 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
131
131
  };
132
132
  },
133
133
  /**
134
- * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
134
+ * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
135
135
  * @summary Retrieve the insured object
136
136
  * @param {number} id
137
137
  * @param {string} [authorization] Bearer Token
@@ -178,7 +178,7 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
178
178
  };
179
179
  },
180
180
  /**
181
- * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
181
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
182
182
  * @summary List insured objects
183
183
  * @param {string} [authorization] Bearer Token
184
184
  * @param {number} [pageSize] Page size.
@@ -288,7 +288,7 @@ export const InsuredObjectsApiFp = function(configuration?: Configuration) {
288
288
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
289
289
  },
290
290
  /**
291
- * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
291
+ * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
292
292
  * @summary Retrieve the insured object
293
293
  * @param {number} id
294
294
  * @param {string} [authorization] Bearer Token
@@ -301,7 +301,7 @@ export const InsuredObjectsApiFp = function(configuration?: Configuration) {
301
301
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
302
302
  },
303
303
  /**
304
- * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
305
305
  * @summary List insured objects
306
306
  * @param {string} [authorization] Bearer Token
307
307
  * @param {number} [pageSize] Page size.
@@ -351,7 +351,7 @@ export const InsuredObjectsApiFactory = function (configuration?: Configuration,
351
351
  return localVarFp.deleteInsuredObject(id, authorization, options).then((request) => request(axios, basePath));
352
352
  },
353
353
  /**
354
- * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
354
+ * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
355
355
  * @summary Retrieve the insured object
356
356
  * @param {number} id
357
357
  * @param {string} [authorization] Bearer Token
@@ -363,7 +363,7 @@ export const InsuredObjectsApiFactory = function (configuration?: Configuration,
363
363
  return localVarFp.getInsuredObject(id, authorization, expand, options).then((request) => request(axios, basePath));
364
364
  },
365
365
  /**
366
- * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
366
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
367
367
  * @summary List insured objects
368
368
  * @param {string} [authorization] Bearer Token
369
369
  * @param {number} [pageSize] Page size.
@@ -547,7 +547,7 @@ export class InsuredObjectsApi extends BaseAPI {
547
547
  }
548
548
 
549
549
  /**
550
- * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
550
+ * Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
551
551
  * @summary Retrieve the insured object
552
552
  * @param {InsuredObjectsApiGetInsuredObjectRequest} requestParameters Request parameters.
553
553
  * @param {*} [options] Override http request option.
@@ -559,7 +559,7 @@ export class InsuredObjectsApi extends BaseAPI {
559
559
  }
560
560
 
561
561
  /**
562
- * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
562
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
563
563
  * @summary List insured objects
564
564
  * @param {InsuredObjectsApiListInsuredObjectsRequest} requestParameters Request parameters.
565
565
  * @param {*} [options] Override http request option.
@@ -133,7 +133,7 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
133
133
  };
134
134
  },
135
135
  /**
136
- * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
136
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
137
137
  * @summary Retrieve the lead status
138
138
  * @param {number} id
139
139
  * @param {string} [authorization] Bearer Token
@@ -178,14 +178,20 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
178
178
  };
179
179
  },
180
180
  /**
181
- * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
181
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
182
182
  * @summary List lead statuses
183
183
  * @param {string} [authorization] Bearer Token
184
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
184
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
186
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
187
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
188
+ * @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.
189
+ * @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.
190
+ * @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.
185
191
  * @param {*} [options] Override http request option.
186
192
  * @throws {RequiredError}
187
193
  */
188
- listLeadStatuses: async (authorization?: string, filter?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
194
+ listLeadStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
189
195
  const localVarPath = `/insuranceservice/v1/lead-statuses`;
190
196
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
191
197
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -204,10 +210,34 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
204
210
  // http bearer authentication required
205
211
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
206
212
 
213
+ if (pageSize !== undefined) {
214
+ localVarQueryParameter['pageSize'] = pageSize;
215
+ }
216
+
217
+ if (pageToken !== undefined) {
218
+ localVarQueryParameter['pageToken'] = pageToken;
219
+ }
220
+
207
221
  if (filter !== undefined) {
208
222
  localVarQueryParameter['filter'] = filter;
209
223
  }
210
224
 
225
+ if (search !== undefined) {
226
+ localVarQueryParameter['search'] = search;
227
+ }
228
+
229
+ if (order !== undefined) {
230
+ localVarQueryParameter['order'] = order;
231
+ }
232
+
233
+ if (expand !== undefined) {
234
+ localVarQueryParameter['expand'] = expand;
235
+ }
236
+
237
+ if (filters !== undefined) {
238
+ localVarQueryParameter['filters'] = filters;
239
+ }
240
+
211
241
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
212
242
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
213
243
  }
@@ -258,7 +288,7 @@ export const LeadStatusesApiFp = function(configuration?: Configuration) {
258
288
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
259
289
  },
260
290
  /**
261
- * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
291
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
262
292
  * @summary Retrieve the lead status
263
293
  * @param {number} id
264
294
  * @param {string} [authorization] Bearer Token
@@ -270,15 +300,21 @@ export const LeadStatusesApiFp = function(configuration?: Configuration) {
270
300
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
271
301
  },
272
302
  /**
273
- * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
303
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
274
304
  * @summary List lead statuses
275
305
  * @param {string} [authorization] Bearer Token
276
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
306
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
307
+ * @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.
308
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
309
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
310
+ * @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.
311
+ * @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.
312
+ * @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.
277
313
  * @param {*} [options] Override http request option.
278
314
  * @throws {RequiredError}
279
315
  */
280
- async listLeadStatuses(authorization?: string, filter?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadStatusesResponseClass>> {
281
- const localVarAxiosArgs = await localVarAxiosParamCreator.listLeadStatuses(authorization, filter, options);
316
+ async listLeadStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadStatusesResponseClass>> {
317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLeadStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
282
318
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
319
  },
284
320
  }
@@ -314,7 +350,7 @@ export const LeadStatusesApiFactory = function (configuration?: Configuration, b
314
350
  return localVarFp.deleteLeadStatus(id, authorization, options).then((request) => request(axios, basePath));
315
351
  },
316
352
  /**
317
- * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
353
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
318
354
  * @summary Retrieve the lead status
319
355
  * @param {number} id
320
356
  * @param {string} [authorization] Bearer Token
@@ -325,15 +361,21 @@ export const LeadStatusesApiFactory = function (configuration?: Configuration, b
325
361
  return localVarFp.getLeadStatus(id, authorization, options).then((request) => request(axios, basePath));
326
362
  },
327
363
  /**
328
- * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
364
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
329
365
  * @summary List lead statuses
330
366
  * @param {string} [authorization] Bearer Token
331
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
367
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @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.
369
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
370
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
371
+ * @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.
372
+ * @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.
373
+ * @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.
332
374
  * @param {*} [options] Override http request option.
333
375
  * @throws {RequiredError}
334
376
  */
335
- listLeadStatuses(authorization?: string, filter?: string, options?: any): AxiosPromise<ListLeadStatusesResponseClass> {
336
- return localVarFp.listLeadStatuses(authorization, filter, options).then((request) => request(axios, basePath));
377
+ listLeadStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadStatusesResponseClass> {
378
+ return localVarFp.listLeadStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
337
379
  },
338
380
  };
339
381
  };
@@ -415,11 +457,53 @@ export interface LeadStatusesApiListLeadStatusesRequest {
415
457
  readonly authorization?: string
416
458
 
417
459
  /**
418
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
419
- * @type {string}
460
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
461
+ * @type {any}
462
+ * @memberof LeadStatusesApiListLeadStatuses
463
+ */
464
+ readonly pageSize?: any
465
+
466
+ /**
467
+ * 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.
468
+ * @type {any}
469
+ * @memberof LeadStatusesApiListLeadStatuses
470
+ */
471
+ readonly pageToken?: any
472
+
473
+ /**
474
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
475
+ * @type {any}
476
+ * @memberof LeadStatusesApiListLeadStatuses
477
+ */
478
+ readonly filter?: any
479
+
480
+ /**
481
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
482
+ * @type {any}
483
+ * @memberof LeadStatusesApiListLeadStatuses
484
+ */
485
+ readonly search?: any
486
+
487
+ /**
488
+ * 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.
489
+ * @type {any}
490
+ * @memberof LeadStatusesApiListLeadStatuses
491
+ */
492
+ readonly order?: any
493
+
494
+ /**
495
+ * 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.
496
+ * @type {any}
497
+ * @memberof LeadStatusesApiListLeadStatuses
498
+ */
499
+ readonly expand?: any
500
+
501
+ /**
502
+ * 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.
503
+ * @type {any}
420
504
  * @memberof LeadStatusesApiListLeadStatuses
421
505
  */
422
- readonly filter?: string
506
+ readonly filters?: any
423
507
  }
424
508
 
425
509
  /**
@@ -454,7 +538,7 @@ export class LeadStatusesApi extends BaseAPI {
454
538
  }
455
539
 
456
540
  /**
457
- * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
541
+ * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
458
542
  * @summary Retrieve the lead status
459
543
  * @param {LeadStatusesApiGetLeadStatusRequest} requestParameters Request parameters.
460
544
  * @param {*} [options] Override http request option.
@@ -466,7 +550,7 @@ export class LeadStatusesApi extends BaseAPI {
466
550
  }
467
551
 
468
552
  /**
469
- * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
553
+ * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
470
554
  * @summary List lead statuses
471
555
  * @param {LeadStatusesApiListLeadStatusesRequest} requestParameters Request parameters.
472
556
  * @param {*} [options] Override http request option.
@@ -474,6 +558,6 @@ export class LeadStatusesApi extends BaseAPI {
474
558
  * @memberof LeadStatusesApi
475
559
  */
476
560
  public listLeadStatuses(requestParameters: LeadStatusesApiListLeadStatusesRequest = {}, options?: AxiosRequestConfig) {
477
- return LeadStatusesApiFp(this.configuration).listLeadStatuses(requestParameters.authorization, requestParameters.filter, options).then((request) => request(this.axios, this.basePath));
561
+ return LeadStatusesApiFp(this.configuration).listLeadStatuses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
478
562
  }
479
563
  }
@@ -35,7 +35,7 @@ const FormData = require('form-data');
35
35
  export const LeadVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
38
+ * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
39
39
  * @summary Retrieve the lead version
40
40
  * @param {string} code
41
41
  * @param {number} version
@@ -84,7 +84,7 @@ export const LeadVersionsApiAxiosParamCreator = function (configuration?: Config
84
84
  };
85
85
  },
86
86
  /**
87
- * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
87
+ * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
88
88
  * @summary List lead versions
89
89
  * @param {string} code
90
90
  * @param {string} [authorization] Bearer Token
@@ -174,7 +174,7 @@ export const LeadVersionsApiFp = function(configuration?: Configuration) {
174
174
  const localVarAxiosParamCreator = LeadVersionsApiAxiosParamCreator(configuration)
175
175
  return {
176
176
  /**
177
- * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
177
+ * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
178
178
  * @summary Retrieve the lead version
179
179
  * @param {string} code
180
180
  * @param {number} version
@@ -187,7 +187,7 @@ export const LeadVersionsApiFp = function(configuration?: Configuration) {
187
187
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
188
188
  },
189
189
  /**
190
- * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
190
+ * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
191
191
  * @summary List lead versions
192
192
  * @param {string} code
193
193
  * @param {string} [authorization] Bearer Token
@@ -216,7 +216,7 @@ export const LeadVersionsApiFactory = function (configuration?: Configuration, b
216
216
  const localVarFp = LeadVersionsApiFp(configuration)
217
217
  return {
218
218
  /**
219
- * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
219
+ * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
220
220
  * @summary Retrieve the lead version
221
221
  * @param {string} code
222
222
  * @param {number} version
@@ -228,7 +228,7 @@ export const LeadVersionsApiFactory = function (configuration?: Configuration, b
228
228
  return localVarFp.getLeadVersion(code, version, authorization, options).then((request) => request(axios, basePath));
229
229
  },
230
230
  /**
231
- * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
231
+ * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
232
232
  * @summary List lead versions
233
233
  * @param {string} code
234
234
  * @param {string} [authorization] Bearer Token
@@ -354,7 +354,7 @@ export interface LeadVersionsApiListLeadVersionsRequest {
354
354
  */
355
355
  export class LeadVersionsApi extends BaseAPI {
356
356
  /**
357
- * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
357
+ * Retrieves the details of the lead version that was previously created. Supply the unique lead version code that was returned when you created it and Emil Api will return the corresponding lead version information.
358
358
  * @summary Retrieve the lead version
359
359
  * @param {LeadVersionsApiGetLeadVersionRequest} requestParameters Request parameters.
360
360
  * @param {*} [options] Override http request option.
@@ -366,7 +366,7 @@ export class LeadVersionsApi extends BaseAPI {
366
366
  }
367
367
 
368
368
  /**
369
- * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
369
+ * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
370
370
  * @summary List lead versions
371
371
  * @param {LeadVersionsApiListLeadVersionsRequest} requestParameters Request parameters.
372
372
  * @param {*} [options] Override http request option.
package/api/leads-api.ts CHANGED
@@ -237,7 +237,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
237
237
  };
238
238
  },
239
239
  /**
240
- * 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.
240
+ * 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.
241
241
  * @summary Retrieve the lead
242
242
  * @param {string} code Unique identifier for the object.
243
243
  * @param {string} [authorization] Bearer Token
@@ -287,7 +287,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
287
287
  };
288
288
  },
289
289
  /**
290
- * 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.
290
+ * 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.
291
291
  * @summary List leads
292
292
  * @param {string} [authorization] Bearer Token
293
293
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -574,7 +574,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
574
574
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
575
575
  },
576
576
  /**
577
- * 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.
577
+ * 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.
578
578
  * @summary Retrieve the lead
579
579
  * @param {string} code Unique identifier for the object.
580
580
  * @param {string} [authorization] Bearer Token
@@ -587,7 +587,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
587
587
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
588
588
  },
589
589
  /**
590
- * 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.
590
+ * 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.
591
591
  * @summary List leads
592
592
  * @param {string} [authorization] Bearer Token
593
593
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -698,7 +698,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
698
698
  return localVarFp.deleteLead(code, authorization, options).then((request) => request(axios, basePath));
699
699
  },
700
700
  /**
701
- * 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.
701
+ * 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.
702
702
  * @summary Retrieve the lead
703
703
  * @param {string} code Unique identifier for the object.
704
704
  * @param {string} [authorization] Bearer Token
@@ -710,7 +710,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
710
710
  return localVarFp.getLead(code, authorization, expand, options).then((request) => request(axios, basePath));
711
711
  },
712
712
  /**
713
- * 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.
713
+ * 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.
714
714
  * @summary List leads
715
715
  * @param {string} [authorization] Bearer Token
716
716
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1080,7 +1080,7 @@ export class LeadsApi extends BaseAPI {
1080
1080
  }
1081
1081
 
1082
1082
  /**
1083
- * 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.
1083
+ * 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.
1084
1084
  * @summary Retrieve the lead
1085
1085
  * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
1086
1086
  * @param {*} [options] Override http request option.
@@ -1092,7 +1092,7 @@ export class LeadsApi extends BaseAPI {
1092
1092
  }
1093
1093
 
1094
1094
  /**
1095
- * 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.
1095
+ * 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.
1096
1096
  * @summary List leads
1097
1097
  * @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
1098
1098
  * @param {*} [options] Override http request option.
@@ -209,7 +209,7 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
209
209
  };
210
210
  },
211
211
  /**
212
- * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
212
+ * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
213
213
  * @summary Retrieve the named range
214
214
  * @param {number} id
215
215
  * @param {string} [authorization] Bearer Token
@@ -254,7 +254,7 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
254
254
  };
255
255
  },
256
256
  /**
257
- * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
257
+ * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
258
258
  * @summary List named ranges
259
259
  * @param {string} [authorization] Bearer Token
260
260
  * @param {number} [pageSize] Page size.
@@ -432,7 +432,7 @@ export const NamedRangesApiFp = function(configuration?: Configuration) {
432
432
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
433
433
  },
434
434
  /**
435
- * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
435
+ * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
436
436
  * @summary Retrieve the named range
437
437
  * @param {number} id
438
438
  * @param {string} [authorization] Bearer Token
@@ -444,7 +444,7 @@ export const NamedRangesApiFp = function(configuration?: Configuration) {
444
444
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
445
445
  },
446
446
  /**
447
- * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
447
+ * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
448
448
  * @summary List named ranges
449
449
  * @param {string} [authorization] Bearer Token
450
450
  * @param {number} [pageSize] Page size.
@@ -523,7 +523,7 @@ export const NamedRangesApiFactory = function (configuration?: Configuration, ba
523
523
  return localVarFp.filterNamedRanges(code, authorization, pageSize, pageToken, filters, search, order, options).then((request) => request(axios, basePath));
524
524
  },
525
525
  /**
526
- * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
526
+ * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
527
527
  * @summary Retrieve the named range
528
528
  * @param {number} id
529
529
  * @param {string} [authorization] Bearer Token
@@ -534,7 +534,7 @@ export const NamedRangesApiFactory = function (configuration?: Configuration, ba
534
534
  return localVarFp.getNamedRange(id, authorization, options).then((request) => request(axios, basePath));
535
535
  },
536
536
  /**
537
- * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
537
+ * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
538
538
  * @summary List named ranges
539
539
  * @param {string} [authorization] Bearer Token
540
540
  * @param {number} [pageSize] Page size.
@@ -819,7 +819,7 @@ export class NamedRangesApi extends BaseAPI {
819
819
  }
820
820
 
821
821
  /**
822
- * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
822
+ * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
823
823
  * @summary Retrieve the named range
824
824
  * @param {NamedRangesApiGetNamedRangeRequest} requestParameters Request parameters.
825
825
  * @param {*} [options] Override http request option.
@@ -831,7 +831,7 @@ export class NamedRangesApi extends BaseAPI {
831
831
  }
832
832
 
833
833
  /**
834
- * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
834
+ * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
835
835
  * @summary List named ranges
836
836
  * @param {NamedRangesApiListNamedRangesRequest} requestParameters Request parameters.
837
837
  * @param {*} [options] Override http request option.