@emilgroup/customer-sdk-node 1.46.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 +40 -40
  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 +40 -40
  26. package/dist/api/leads-api.js +60 -35
  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,18 +36,18 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
36
36
  * List all the invoices of a customer.
37
37
  * @summary List invoices of a customer
38
38
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
39
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
- * @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.
41
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
43
- * @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.
44
- * @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.
45
- * @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.
39
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
41
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
43
+ * @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.
44
+ * @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.
45
+ * @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.
46
46
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
47
47
  * @param {*} [options] Override http request option.
48
48
  * @throws {RequiredError}
49
49
  */
50
- listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ listInvoices: async (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
51
  // verify required parameter 'customerCode' is not null or undefined
52
52
  assertParamExists('listInvoices', 'customerCode', customerCode)
53
53
  const localVarPath = `/v1/customers/{customerCode}/invoices`
@@ -122,18 +122,18 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
122
122
  * List all the invoices of a customer.
123
123
  * @summary List invoices of a customer
124
124
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
125
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
- * @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.
127
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
128
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
129
- * @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.
130
- * @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.
131
- * @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.
125
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
+ * @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.
127
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
128
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
129
+ * @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.
130
+ * @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.
131
+ * @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.
132
132
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
133
133
  * @param {*} [options] Override http request option.
134
134
  * @throws {RequiredError}
135
135
  */
136
- async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
136
+ async listInvoices(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
137
137
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
138
138
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
139
139
  },
@@ -151,18 +151,18 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
151
151
  * List all the invoices of a customer.
152
152
  * @summary List invoices of a customer
153
153
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
154
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
155
- * @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.
156
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
157
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
158
- * @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.
159
- * @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.
160
- * @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.
154
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
155
+ * @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.
156
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
157
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
158
+ * @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.
159
+ * @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.
160
+ * @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.
161
161
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
162
  * @param {*} [options] Override http request option.
163
163
  * @throws {RequiredError}
164
164
  */
165
- listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
165
+ listInvoices(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
166
166
  return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
167
167
  },
168
168
  };
@@ -183,52 +183,52 @@ export interface InvoicesApiListInvoicesRequest {
183
183
 
184
184
  /**
185
185
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
186
- * @type {any}
186
+ * @type {number}
187
187
  * @memberof InvoicesApiListInvoices
188
188
  */
189
- readonly pageSize?: any
189
+ readonly pageSize?: number
190
190
 
191
191
  /**
192
- * 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.
193
- * @type {any}
192
+ * 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.
193
+ * @type {string}
194
194
  * @memberof InvoicesApiListInvoices
195
195
  */
196
- readonly pageToken?: any
196
+ readonly pageToken?: string
197
197
 
198
198
  /**
199
199
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
200
- * @type {any}
200
+ * @type {string}
201
201
  * @memberof InvoicesApiListInvoices
202
202
  */
203
- readonly filter?: any
203
+ readonly filter?: string
204
204
 
205
205
  /**
206
206
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
207
- * @type {any}
207
+ * @type {string}
208
208
  * @memberof InvoicesApiListInvoices
209
209
  */
210
- readonly search?: any
210
+ readonly search?: string
211
211
 
212
212
  /**
213
213
  * 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.
214
- * @type {any}
214
+ * @type {string}
215
215
  * @memberof InvoicesApiListInvoices
216
216
  */
217
- readonly order?: any
217
+ readonly order?: string
218
218
 
219
219
  /**
220
- * 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.
221
- * @type {any}
220
+ * 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.
221
+ * @type {string}
222
222
  * @memberof InvoicesApiListInvoices
223
223
  */
224
- readonly expand?: any
224
+ readonly expand?: string
225
225
 
226
226
  /**
227
227
  * 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.
228
- * @type {any}
228
+ * @type {string}
229
229
  * @memberof InvoicesApiListInvoices
230
230
  */
231
- readonly filters?: any
231
+ readonly filters?: string
232
232
 
233
233
  /**
234
234
  * Bearer Token: provided by the login endpoint under the name accessToken.
package/api/leads-api.ts CHANGED
@@ -152,17 +152,17 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
152
152
  * @summary List leads
153
153
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
154
154
  * @param {string} [authorization] Bearer Token
155
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
- * @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.
157
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
- * @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.
160
- * @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.
161
- * @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.
155
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
+ * @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.
157
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
+ * @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.
160
+ * @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.
161
+ * @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.
162
162
  * @param {*} [options] Override http request option.
163
163
  * @throws {RequiredError}
164
164
  */
165
- listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ listLeads: async (customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
166
  // verify required parameter 'customerCode' is not null or undefined
167
167
  assertParamExists('listLeads', 'customerCode', customerCode)
168
168
  const localVarPath = `/v1/customers/{customerCode}/leads`
@@ -324,17 +324,17 @@ export const LeadsApiFp = function(configuration?: Configuration) {
324
324
  * @summary List leads
325
325
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
326
326
  * @param {string} [authorization] Bearer Token
327
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
328
- * @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.
329
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
330
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
331
- * @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.
332
- * @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.
333
- * @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.
327
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
328
+ * @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.
329
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
330
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
331
+ * @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.
332
+ * @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.
333
+ * @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.
334
334
  * @param {*} [options] Override http request option.
335
335
  * @throws {RequiredError}
336
336
  */
337
- async 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>> {
337
+ async 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>> {
338
338
  const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
339
339
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
340
340
  },
@@ -392,17 +392,17 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
392
392
  * @summary List leads
393
393
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
394
394
  * @param {string} [authorization] Bearer Token
395
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
- * @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.
397
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
398
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
399
- * @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.
400
- * @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.
401
- * @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.
395
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
+ * @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.
397
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
398
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
399
+ * @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.
400
+ * @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.
401
+ * @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.
402
402
  * @param {*} [options] Override http request option.
403
403
  * @throws {RequiredError}
404
404
  */
405
- listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
405
+ listLeads(customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListLeadsResponseClass> {
406
406
  return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
407
407
  },
408
408
  /**
@@ -506,52 +506,52 @@ export interface LeadsApiListLeadsRequest {
506
506
 
507
507
  /**
508
508
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
509
- * @type {any}
509
+ * @type {number}
510
510
  * @memberof LeadsApiListLeads
511
511
  */
512
- readonly pageSize?: any
512
+ readonly pageSize?: number
513
513
 
514
514
  /**
515
- * 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.
516
- * @type {any}
515
+ * 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.
516
+ * @type {string}
517
517
  * @memberof LeadsApiListLeads
518
518
  */
519
- readonly pageToken?: any
519
+ readonly pageToken?: string
520
520
 
521
521
  /**
522
522
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
523
- * @type {any}
523
+ * @type {string}
524
524
  * @memberof LeadsApiListLeads
525
525
  */
526
- readonly filter?: any
526
+ readonly filter?: string
527
527
 
528
528
  /**
529
529
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
530
- * @type {any}
530
+ * @type {string}
531
531
  * @memberof LeadsApiListLeads
532
532
  */
533
- readonly search?: any
533
+ readonly search?: string
534
534
 
535
535
  /**
536
536
  * 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.
537
- * @type {any}
537
+ * @type {string}
538
538
  * @memberof LeadsApiListLeads
539
539
  */
540
- readonly order?: any
540
+ readonly order?: string
541
541
 
542
542
  /**
543
- * 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.
544
- * @type {any}
543
+ * 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.
544
+ * @type {string}
545
545
  * @memberof LeadsApiListLeads
546
546
  */
547
- readonly expand?: any
547
+ readonly expand?: string
548
548
 
549
549
  /**
550
550
  * 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.
551
- * @type {any}
551
+ * @type {string}
552
552
  * @memberof LeadsApiListLeads
553
553
  */
554
- readonly filters?: any
554
+ readonly filters?: string
555
555
  }
556
556
 
557
557
  /**
@@ -152,18 +152,18 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
152
152
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
153
153
  * @summary List policies
154
154
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
155
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
- * @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.
157
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
- * @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.
160
- * @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.
161
- * @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.
155
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
+ * @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.
157
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
+ * @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.
160
+ * @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.
161
+ * @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.
162
162
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
163
  * @param {*} [options] Override http request option.
164
164
  * @throws {RequiredError}
165
165
  */
166
- listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
+ listPolicies: async (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
167
  // verify required parameter 'customerCode' is not null or undefined
168
168
  assertParamExists('listPolicies', 'customerCode', customerCode)
169
169
  const localVarPath = `/v1/customers/{customerCode}/policies`
@@ -459,18 +459,18 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
459
459
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
460
460
  * @summary List policies
461
461
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
462
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
463
- * @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.
464
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
465
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
466
- * @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.
467
- * @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.
468
- * @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.
462
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
463
+ * @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.
464
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
465
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
466
+ * @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.
467
+ * @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.
468
+ * @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.
469
469
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
470
  * @param {*} [options] Override http request option.
471
471
  * @throws {RequiredError}
472
472
  */
473
- async listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
473
+ async listPolicies(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
474
474
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
475
475
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
476
  },
@@ -568,18 +568,18 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
568
568
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
569
569
  * @summary List policies
570
570
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
571
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
572
- * @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.
573
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
574
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
575
- * @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.
576
- * @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.
577
- * @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.
571
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
572
+ * @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.
573
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
574
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
575
+ * @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.
576
+ * @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.
577
+ * @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.
578
578
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
579
579
  * @param {*} [options] Override http request option.
580
580
  * @throws {RequiredError}
581
581
  */
582
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
582
+ listPolicies(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
583
583
  return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
584
584
  },
585
585
  /**
@@ -720,52 +720,52 @@ export interface PoliciesApiListPoliciesRequest {
720
720
 
721
721
  /**
722
722
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
723
- * @type {any}
723
+ * @type {number}
724
724
  * @memberof PoliciesApiListPolicies
725
725
  */
726
- readonly pageSize?: any
726
+ readonly pageSize?: number
727
727
 
728
728
  /**
729
- * 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.
730
- * @type {any}
729
+ * 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.
730
+ * @type {string}
731
731
  * @memberof PoliciesApiListPolicies
732
732
  */
733
- readonly pageToken?: any
733
+ readonly pageToken?: string
734
734
 
735
735
  /**
736
736
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
737
- * @type {any}
737
+ * @type {string}
738
738
  * @memberof PoliciesApiListPolicies
739
739
  */
740
- readonly filter?: any
740
+ readonly filter?: string
741
741
 
742
742
  /**
743
743
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
744
- * @type {any}
744
+ * @type {string}
745
745
  * @memberof PoliciesApiListPolicies
746
746
  */
747
- readonly search?: any
747
+ readonly search?: string
748
748
 
749
749
  /**
750
750
  * 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.
751
- * @type {any}
751
+ * @type {string}
752
752
  * @memberof PoliciesApiListPolicies
753
753
  */
754
- readonly order?: any
754
+ readonly order?: string
755
755
 
756
756
  /**
757
- * 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.
758
- * @type {any}
757
+ * 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.
758
+ * @type {string}
759
759
  * @memberof PoliciesApiListPolicies
760
760
  */
761
- readonly expand?: any
761
+ readonly expand?: string
762
762
 
763
763
  /**
764
764
  * 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.
765
- * @type {any}
765
+ * @type {string}
766
766
  * @memberof PoliciesApiListPolicies
767
767
  */
768
- readonly filters?: any
768
+ readonly filters?: string
769
769
 
770
770
  /**
771
771
  * Bearer Token: provided by the login endpoint under the name accessToken.