@emilgroup/customer-sdk-node 1.32.0 → 1.33.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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/claims-api.ts +20 -6
- package/api/customers-api.ts +20 -6
- package/api/documents-api.ts +20 -6
- package/api/invoices-api.ts +20 -6
- package/api/leads-api.ts +20 -6
- package/api/policies-api.ts +20 -6
- package/api/products-api.ts +20 -6
- package/dist/api/claims-api.d.ts +12 -3
- package/dist/api/claims-api.js +12 -6
- package/dist/api/customers-api.d.ts +12 -3
- package/dist/api/customers-api.js +12 -6
- package/dist/api/documents-api.d.ts +12 -3
- package/dist/api/documents-api.js +12 -6
- package/dist/api/invoices-api.d.ts +12 -3
- package/dist/api/invoices-api.js +12 -6
- package/dist/api/leads-api.d.ts +12 -3
- package/dist/api/leads-api.js +12 -6
- package/dist/api/policies-api.d.ts +12 -3
- package/dist/api/policies-api.js +12 -6
- package/dist/api/products-api.d.ts +12 -3
- package/dist/api/products-api.js +12 -6
- package/dist/models/create-bank-account-request-dto.d.ts +6 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/lead-bank-account-class.d.ts +6 -0
- package/dist/models/lead-class.d.ts +7 -0
- package/dist/models/partner-link-class.d.ts +72 -0
- package/dist/models/partner-link-class.js +15 -0
- package/dist/models/policy-class.d.ts +6 -0
- package/models/create-bank-account-request-dto.ts +6 -0
- package/models/index.ts +1 -0
- package/models/lead-bank-account-class.ts +6 -0
- package/models/lead-class.ts +7 -0
- package/models/partner-link-class.ts +78 -0
- package/models/policy-class.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -71,6 +71,7 @@ models/list-invoices-response-class.ts
|
|
|
71
71
|
models/list-leads-response-class.ts
|
|
72
72
|
models/list-policies-response-class.ts
|
|
73
73
|
models/list-products-response-class.ts
|
|
74
|
+
models/partner-link-class.ts
|
|
74
75
|
models/policy-class.ts
|
|
75
76
|
models/policy-object-class.ts
|
|
76
77
|
models/policy-object-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.33.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.33.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/claims-api.ts
CHANGED
|
@@ -154,13 +154,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
154
154
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
155
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
156
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
157
158
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
158
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.
|
|
159
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.
|
|
160
161
|
* @param {*} [options] Override http request option.
|
|
161
162
|
* @throws {RequiredError}
|
|
162
163
|
*/
|
|
163
|
-
listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
164
|
+
listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
164
165
|
// verify required parameter 'customerCode' is not null or undefined
|
|
165
166
|
assertParamExists('listCustomerClaims', 'customerCode', customerCode)
|
|
166
167
|
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
@@ -194,6 +195,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
194
195
|
localVarQueryParameter['filter'] = filter;
|
|
195
196
|
}
|
|
196
197
|
|
|
198
|
+
if (filters !== undefined) {
|
|
199
|
+
localVarQueryParameter['filters'] = filters;
|
|
200
|
+
}
|
|
201
|
+
|
|
197
202
|
if (search !== undefined) {
|
|
198
203
|
localVarQueryParameter['search'] = search;
|
|
199
204
|
}
|
|
@@ -375,14 +380,15 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
375
380
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
376
381
|
* @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.
|
|
377
382
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
383
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
378
384
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
379
385
|
* @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.
|
|
380
386
|
* @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.
|
|
381
387
|
* @param {*} [options] Override http request option.
|
|
382
388
|
* @throws {RequiredError}
|
|
383
389
|
*/
|
|
384
|
-
async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
|
|
385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
390
|
+
async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
|
|
391
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options);
|
|
386
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
387
393
|
},
|
|
388
394
|
/**
|
|
@@ -455,14 +461,15 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
455
461
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
456
462
|
* @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.
|
|
457
463
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
464
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
458
465
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
459
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.
|
|
460
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.
|
|
461
468
|
* @param {*} [options] Override http request option.
|
|
462
469
|
* @throws {RequiredError}
|
|
463
470
|
*/
|
|
464
|
-
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
|
|
465
|
-
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
471
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
|
|
472
|
+
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
466
473
|
},
|
|
467
474
|
/**
|
|
468
475
|
* Update claim for customer.
|
|
@@ -590,6 +597,13 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
590
597
|
*/
|
|
591
598
|
readonly filter?: any
|
|
592
599
|
|
|
600
|
+
/**
|
|
601
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
602
|
+
* @type {any}
|
|
603
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
604
|
+
*/
|
|
605
|
+
readonly filters?: any
|
|
606
|
+
|
|
593
607
|
/**
|
|
594
608
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
595
609
|
* @type {any}
|
|
@@ -722,7 +736,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
722
736
|
* @memberof ClaimsApi
|
|
723
737
|
*/
|
|
724
738
|
public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
|
|
725
|
-
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
739
|
+
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
726
740
|
}
|
|
727
741
|
|
|
728
742
|
/**
|
package/api/customers-api.ts
CHANGED
|
@@ -88,6 +88,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
88
88
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
89
89
|
* @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.
|
|
90
90
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
91
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
91
92
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
92
93
|
* @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.
|
|
93
94
|
* @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.
|
|
@@ -95,7 +96,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
95
96
|
* @param {*} [options] Override http request option.
|
|
96
97
|
* @throws {RequiredError}
|
|
97
98
|
*/
|
|
98
|
-
listCustomers: async (pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
listCustomers: async (pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
100
|
const localVarPath = `/v1/customers`;
|
|
100
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -122,6 +123,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
122
123
|
localVarQueryParameter['filter'] = filter;
|
|
123
124
|
}
|
|
124
125
|
|
|
126
|
+
if (filters !== undefined) {
|
|
127
|
+
localVarQueryParameter['filters'] = filters;
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
if (search !== undefined) {
|
|
126
131
|
localVarQueryParameter['search'] = search;
|
|
127
132
|
}
|
|
@@ -225,6 +230,7 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
225
230
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
226
231
|
* @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.
|
|
227
232
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
233
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
228
234
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
229
235
|
* @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.
|
|
230
236
|
* @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.
|
|
@@ -232,8 +238,8 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
232
238
|
* @param {*} [options] Override http request option.
|
|
233
239
|
* @throws {RequiredError}
|
|
234
240
|
*/
|
|
235
|
-
async listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
236
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
241
|
+
async listCustomers(pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
|
|
237
243
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
238
244
|
},
|
|
239
245
|
/**
|
|
@@ -277,6 +283,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
277
283
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
278
284
|
* @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.
|
|
279
285
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
286
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
280
287
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
281
288
|
* @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.
|
|
282
289
|
* @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.
|
|
@@ -284,8 +291,8 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
284
291
|
* @param {*} [options] Override http request option.
|
|
285
292
|
* @throws {RequiredError}
|
|
286
293
|
*/
|
|
287
|
-
listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<object> {
|
|
288
|
-
return localVarFp.listCustomers(pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
294
|
+
listCustomers(pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<object> {
|
|
295
|
+
return localVarFp.listCustomers(pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
289
296
|
},
|
|
290
297
|
/**
|
|
291
298
|
* Update customer details like phone, email, names, addresses etc.
|
|
@@ -357,6 +364,13 @@ export interface CustomersApiListCustomersRequest {
|
|
|
357
364
|
*/
|
|
358
365
|
readonly filter?: any
|
|
359
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
369
|
+
* @type {any}
|
|
370
|
+
* @memberof CustomersApiListCustomers
|
|
371
|
+
*/
|
|
372
|
+
readonly filters?: any
|
|
373
|
+
|
|
360
374
|
/**
|
|
361
375
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
362
376
|
* @type {any}
|
|
@@ -442,7 +456,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
442
456
|
* @memberof CustomersApi
|
|
443
457
|
*/
|
|
444
458
|
public listCustomers(requestParameters: CustomersApiListCustomersRequest = {}, options?: AxiosRequestConfig) {
|
|
445
|
-
return CustomersApiFp(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
459
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
446
460
|
}
|
|
447
461
|
|
|
448
462
|
/**
|
package/api/documents-api.ts
CHANGED
|
@@ -88,6 +88,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
88
88
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
89
89
|
* @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.
|
|
90
90
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
91
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
91
92
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
92
93
|
* @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.
|
|
93
94
|
* @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.
|
|
@@ -95,7 +96,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
95
96
|
* @param {*} [options] Override http request option.
|
|
96
97
|
* @throws {RequiredError}
|
|
97
98
|
*/
|
|
98
|
-
listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
100
|
// verify required parameter 'customerCode' is not null or undefined
|
|
100
101
|
assertParamExists('listDocuments', 'customerCode', customerCode)
|
|
101
102
|
const localVarPath = `/v1/customers/{customerCode}/documents`
|
|
@@ -125,6 +126,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
125
126
|
localVarQueryParameter['filter'] = filter;
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
if (filters !== undefined) {
|
|
130
|
+
localVarQueryParameter['filters'] = filters;
|
|
131
|
+
}
|
|
132
|
+
|
|
128
133
|
if (search !== undefined) {
|
|
129
134
|
localVarQueryParameter['search'] = search;
|
|
130
135
|
}
|
|
@@ -218,6 +223,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
218
223
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
219
224
|
* @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.
|
|
220
225
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
226
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
221
227
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
222
228
|
* @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.
|
|
223
229
|
* @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.
|
|
@@ -225,8 +231,8 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
225
231
|
* @param {*} [options] Override http request option.
|
|
226
232
|
* @throws {RequiredError}
|
|
227
233
|
*/
|
|
228
|
-
async listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
|
|
229
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
234
|
+
async listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
|
|
235
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
|
|
230
236
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
231
237
|
},
|
|
232
238
|
/**
|
|
@@ -269,6 +275,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
269
275
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
270
276
|
* @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.
|
|
271
277
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
278
|
+
* @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
272
279
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
273
280
|
* @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.
|
|
274
281
|
* @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.
|
|
@@ -276,8 +283,8 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
276
283
|
* @param {*} [options] Override http request option.
|
|
277
284
|
* @throws {RequiredError}
|
|
278
285
|
*/
|
|
279
|
-
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
280
|
-
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
286
|
+
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
287
|
+
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
281
288
|
},
|
|
282
289
|
/**
|
|
283
290
|
* API to upload and attach documents to an account.
|
|
@@ -354,6 +361,13 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
354
361
|
*/
|
|
355
362
|
readonly filter?: any
|
|
356
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
366
|
+
* @type {any}
|
|
367
|
+
* @memberof DocumentsApiListDocuments
|
|
368
|
+
*/
|
|
369
|
+
readonly filters?: any
|
|
370
|
+
|
|
357
371
|
/**
|
|
358
372
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
359
373
|
* @type {any}
|
|
@@ -425,7 +439,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
425
439
|
* @memberof DocumentsApi
|
|
426
440
|
*/
|
|
427
441
|
public listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig) {
|
|
428
|
-
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
442
|
+
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
429
443
|
}
|
|
430
444
|
|
|
431
445
|
/**
|
package/api/invoices-api.ts
CHANGED
|
@@ -39,6 +39,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
39
39
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
40
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
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
42
43
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
43
44
|
* @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
45
|
* @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.
|
|
@@ -46,7 +47,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
46
47
|
* @param {*} [options] Override http request option.
|
|
47
48
|
* @throws {RequiredError}
|
|
48
49
|
*/
|
|
49
|
-
listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
51
|
// verify required parameter 'customerCode' is not null or undefined
|
|
51
52
|
assertParamExists('listInvoices', 'customerCode', customerCode)
|
|
52
53
|
const localVarPath = `/v1/customers/{customerCode}/invoices`
|
|
@@ -76,6 +77,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
76
77
|
localVarQueryParameter['filter'] = filter;
|
|
77
78
|
}
|
|
78
79
|
|
|
80
|
+
if (filters !== undefined) {
|
|
81
|
+
localVarQueryParameter['filters'] = filters;
|
|
82
|
+
}
|
|
83
|
+
|
|
79
84
|
if (search !== undefined) {
|
|
80
85
|
localVarQueryParameter['search'] = search;
|
|
81
86
|
}
|
|
@@ -120,6 +125,7 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
120
125
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
121
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
122
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
123
129
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
124
130
|
* @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.
|
|
125
131
|
* @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.
|
|
@@ -127,8 +133,8 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
127
133
|
* @param {*} [options] Override http request option.
|
|
128
134
|
* @throws {RequiredError}
|
|
129
135
|
*/
|
|
130
|
-
async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
|
|
131
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
136
|
+
async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
|
|
137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
|
|
132
138
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
133
139
|
},
|
|
134
140
|
}
|
|
@@ -148,6 +154,7 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
148
154
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
149
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
150
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
151
158
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
152
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.
|
|
153
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.
|
|
@@ -155,8 +162,8 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
155
162
|
* @param {*} [options] Override http request option.
|
|
156
163
|
* @throws {RequiredError}
|
|
157
164
|
*/
|
|
158
|
-
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
159
|
-
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
165
|
+
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
166
|
+
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
160
167
|
},
|
|
161
168
|
};
|
|
162
169
|
};
|
|
@@ -195,6 +202,13 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
195
202
|
*/
|
|
196
203
|
readonly filter?: any
|
|
197
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
207
|
+
* @type {any}
|
|
208
|
+
* @memberof InvoicesApiListInvoices
|
|
209
|
+
*/
|
|
210
|
+
readonly filters?: any
|
|
211
|
+
|
|
198
212
|
/**
|
|
199
213
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
200
214
|
* @type {any}
|
|
@@ -240,6 +254,6 @@ export class InvoicesApi extends BaseAPI {
|
|
|
240
254
|
* @memberof InvoicesApi
|
|
241
255
|
*/
|
|
242
256
|
public listInvoices(requestParameters: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig) {
|
|
243
|
-
return InvoicesApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
257
|
+
return InvoicesApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
244
258
|
}
|
|
245
259
|
}
|
package/api/leads-api.ts
CHANGED
|
@@ -155,13 +155,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
155
155
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
156
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
157
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
159
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
159
160
|
* @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
161
|
* @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
162
|
* @param {*} [options] Override http request option.
|
|
162
163
|
* @throws {RequiredError}
|
|
163
164
|
*/
|
|
164
|
-
listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
|
+
listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
166
|
// verify required parameter 'customerCode' is not null or undefined
|
|
166
167
|
assertParamExists('listLeads', 'customerCode', customerCode)
|
|
167
168
|
const localVarPath = `/v1/customers/{customerCode}/leads`
|
|
@@ -195,6 +196,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
195
196
|
localVarQueryParameter['filter'] = filter;
|
|
196
197
|
}
|
|
197
198
|
|
|
199
|
+
if (filters !== undefined) {
|
|
200
|
+
localVarQueryParameter['filters'] = filters;
|
|
201
|
+
}
|
|
202
|
+
|
|
198
203
|
if (search !== undefined) {
|
|
199
204
|
localVarQueryParameter['search'] = search;
|
|
200
205
|
}
|
|
@@ -322,14 +327,15 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
322
327
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
323
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
324
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
325
331
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
326
332
|
* @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.
|
|
327
333
|
* @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.
|
|
328
334
|
* @param {*} [options] Override http request option.
|
|
329
335
|
* @throws {RequiredError}
|
|
330
336
|
*/
|
|
331
|
-
async listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>> {
|
|
332
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
337
|
+
async listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>> {
|
|
338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options);
|
|
333
339
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
334
340
|
},
|
|
335
341
|
/**
|
|
@@ -389,14 +395,15 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
389
395
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
390
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
391
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
392
399
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
393
400
|
* @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.
|
|
394
401
|
* @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.
|
|
395
402
|
* @param {*} [options] Override http request option.
|
|
396
403
|
* @throws {RequiredError}
|
|
397
404
|
*/
|
|
398
|
-
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
|
|
399
|
-
return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
405
|
+
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
|
|
406
|
+
return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
400
407
|
},
|
|
401
408
|
/**
|
|
402
409
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -518,6 +525,13 @@ export interface LeadsApiListLeadsRequest {
|
|
|
518
525
|
*/
|
|
519
526
|
readonly filter?: any
|
|
520
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
530
|
+
* @type {any}
|
|
531
|
+
* @memberof LeadsApiListLeads
|
|
532
|
+
*/
|
|
533
|
+
readonly filters?: any
|
|
534
|
+
|
|
521
535
|
/**
|
|
522
536
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
523
537
|
* @type {any}
|
|
@@ -615,7 +629,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
615
629
|
* @memberof LeadsApi
|
|
616
630
|
*/
|
|
617
631
|
public listLeads(requestParameters: LeadsApiListLeadsRequest, options?: AxiosRequestConfig) {
|
|
618
|
-
return LeadsApiFp(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
632
|
+
return LeadsApiFp(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
619
633
|
}
|
|
620
634
|
|
|
621
635
|
/**
|
package/api/policies-api.ts
CHANGED
|
@@ -155,6 +155,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
155
155
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
156
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
157
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
159
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
159
160
|
* @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
161
|
* @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.
|
|
@@ -162,7 +163,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
162
163
|
* @param {*} [options] Override http request option.
|
|
163
164
|
* @throws {RequiredError}
|
|
164
165
|
*/
|
|
165
|
-
listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
166
|
+
listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
166
167
|
// verify required parameter 'customerCode' is not null or undefined
|
|
167
168
|
assertParamExists('listPolicies', 'customerCode', customerCode)
|
|
168
169
|
const localVarPath = `/v1/customers/{customerCode}/policies`
|
|
@@ -192,6 +193,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
192
193
|
localVarQueryParameter['filter'] = filter;
|
|
193
194
|
}
|
|
194
195
|
|
|
196
|
+
if (filters !== undefined) {
|
|
197
|
+
localVarQueryParameter['filters'] = filters;
|
|
198
|
+
}
|
|
199
|
+
|
|
195
200
|
if (search !== undefined) {
|
|
196
201
|
localVarQueryParameter['search'] = search;
|
|
197
202
|
}
|
|
@@ -457,6 +462,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
457
462
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
458
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
459
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
460
466
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
461
467
|
* @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.
|
|
462
468
|
* @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.
|
|
@@ -464,8 +470,8 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
464
470
|
* @param {*} [options] Override http request option.
|
|
465
471
|
* @throws {RequiredError}
|
|
466
472
|
*/
|
|
467
|
-
async listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
|
|
468
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
473
|
+
async listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
|
|
474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
|
|
469
475
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
470
476
|
},
|
|
471
477
|
/**
|
|
@@ -565,6 +571,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
565
571
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
566
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
567
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} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
568
575
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
569
576
|
* @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.
|
|
570
577
|
* @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.
|
|
@@ -572,8 +579,8 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
572
579
|
* @param {*} [options] Override http request option.
|
|
573
580
|
* @throws {RequiredError}
|
|
574
581
|
*/
|
|
575
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
576
|
-
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
582
|
+
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
583
|
+
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
577
584
|
},
|
|
578
585
|
/**
|
|
579
586
|
* Request to update an existing policy by customer.
|
|
@@ -732,6 +739,13 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
732
739
|
*/
|
|
733
740
|
readonly filter?: any
|
|
734
741
|
|
|
742
|
+
/**
|
|
743
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
744
|
+
* @type {any}
|
|
745
|
+
* @memberof PoliciesApiListPolicies
|
|
746
|
+
*/
|
|
747
|
+
readonly filters?: any
|
|
748
|
+
|
|
735
749
|
/**
|
|
736
750
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
737
751
|
* @type {any}
|
|
@@ -927,7 +941,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
927
941
|
* @memberof PoliciesApi
|
|
928
942
|
*/
|
|
929
943
|
public listPolicies(requestParameters: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig) {
|
|
930
|
-
return PoliciesApiFp(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
944
|
+
return PoliciesApiFp(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
931
945
|
}
|
|
932
946
|
|
|
933
947
|
/**
|