@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.
- package/README.md +2 -2
- package/api/claims-api.ts +40 -40
- package/api/customers-api.ts +40 -40
- package/api/documents-api.ts +40 -40
- package/api/invites-api.ts +4 -4
- package/api/invoices-api.ts +40 -40
- package/api/leads-api.ts +40 -40
- package/api/policies-api.ts +40 -40
- package/api/products-api.ts +40 -40
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/authentication-api.js +60 -23
- package/dist/api/claims-api.d.ts +40 -40
- package/dist/api/claims-api.js +67 -38
- package/dist/api/customers-api.d.ts +40 -40
- package/dist/api/customers-api.js +74 -41
- package/dist/api/default-api.js +18 -5
- package/dist/api/documents-api.d.ts +43 -43
- package/dist/api/documents-api.js +53 -32
- package/dist/api/invites-api.d.ts +4 -4
- package/dist/api/invites-api.js +43 -18
- package/dist/api/invoices-api.d.ts +40 -40
- package/dist/api/invoices-api.js +39 -26
- package/dist/api/leads-api.d.ts +40 -40
- package/dist/api/leads-api.js +60 -35
- package/dist/api/payments-api.js +25 -8
- package/dist/api/policies-api.d.ts +40 -40
- package/dist/api/policies-api.js +81 -44
- package/dist/api/products-api.d.ts +40 -40
- package/dist/api/products-api.js +46 -29
- package/dist/base.js +25 -15
- package/dist/common.d.ts +1 -1
- package/dist/common.js +4 -4
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/policy-class.d.ts +48 -0
- package/models/policy-class.ts +48 -0
- package/package.json +4 -4
- package/tsconfig.json +1 -0
package/api/invoices-api.ts
CHANGED
|
@@ -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 {
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
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?:
|
|
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 \"me\" for the currently logged in customer.
|
|
125
|
-
* @param {
|
|
126
|
-
* @param {
|
|
127
|
-
* @param {
|
|
128
|
-
* @param {
|
|
129
|
-
* @param {
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 \"me\" for the currently logged in customer.
|
|
154
|
-
* @param {
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 {
|
|
186
|
+
* @type {number}
|
|
187
187
|
* @memberof InvoicesApiListInvoices
|
|
188
188
|
*/
|
|
189
|
-
readonly pageSize?:
|
|
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=1,
|
|
193
|
-
* @type {
|
|
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
193
|
+
* @type {string}
|
|
194
194
|
* @memberof InvoicesApiListInvoices
|
|
195
195
|
*/
|
|
196
|
-
readonly pageToken?:
|
|
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 {
|
|
200
|
+
* @type {string}
|
|
201
201
|
* @memberof InvoicesApiListInvoices
|
|
202
202
|
*/
|
|
203
|
-
readonly filter?:
|
|
203
|
+
readonly filter?: string
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
207
|
-
* @type {
|
|
207
|
+
* @type {string}
|
|
208
208
|
* @memberof InvoicesApiListInvoices
|
|
209
209
|
*/
|
|
210
|
-
readonly search?:
|
|
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 {
|
|
214
|
+
* @type {string}
|
|
215
215
|
* @memberof InvoicesApiListInvoices
|
|
216
216
|
*/
|
|
217
|
-
readonly order?:
|
|
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
|
|
221
|
-
* @type {
|
|
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?:
|
|
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 {
|
|
228
|
+
* @type {string}
|
|
229
229
|
* @memberof InvoicesApiListInvoices
|
|
230
230
|
*/
|
|
231
|
-
readonly filters?:
|
|
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 \"me\" for the currently logged in customer.
|
|
154
154
|
* @param {string} [authorization] Bearer Token
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
161
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 \"me\" for the currently logged in customer.
|
|
326
326
|
* @param {string} [authorization] Bearer Token
|
|
327
|
-
* @param {
|
|
328
|
-
* @param {
|
|
329
|
-
* @param {
|
|
330
|
-
* @param {
|
|
331
|
-
* @param {
|
|
332
|
-
* @param {
|
|
333
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 \"me\" for the currently logged in customer.
|
|
394
394
|
* @param {string} [authorization] Bearer Token
|
|
395
|
-
* @param {
|
|
396
|
-
* @param {
|
|
397
|
-
* @param {
|
|
398
|
-
* @param {
|
|
399
|
-
* @param {
|
|
400
|
-
* @param {
|
|
401
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 {
|
|
509
|
+
* @type {number}
|
|
510
510
|
* @memberof LeadsApiListLeads
|
|
511
511
|
*/
|
|
512
|
-
readonly pageSize?:
|
|
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=1,
|
|
516
|
-
* @type {
|
|
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
516
|
+
* @type {string}
|
|
517
517
|
* @memberof LeadsApiListLeads
|
|
518
518
|
*/
|
|
519
|
-
readonly pageToken?:
|
|
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 {
|
|
523
|
+
* @type {string}
|
|
524
524
|
* @memberof LeadsApiListLeads
|
|
525
525
|
*/
|
|
526
|
-
readonly filter?:
|
|
526
|
+
readonly filter?: string
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
530
|
-
* @type {
|
|
530
|
+
* @type {string}
|
|
531
531
|
* @memberof LeadsApiListLeads
|
|
532
532
|
*/
|
|
533
|
-
readonly search?:
|
|
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 {
|
|
537
|
+
* @type {string}
|
|
538
538
|
* @memberof LeadsApiListLeads
|
|
539
539
|
*/
|
|
540
|
-
readonly order?:
|
|
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
|
|
544
|
-
* @type {
|
|
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?:
|
|
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 {
|
|
551
|
+
* @type {string}
|
|
552
552
|
* @memberof LeadsApiListLeads
|
|
553
553
|
*/
|
|
554
|
-
readonly filters?:
|
|
554
|
+
readonly filters?: string
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
/**
|
package/api/policies-api.ts
CHANGED
|
@@ -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 \"me\" for the currently logged in customer.
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
161
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 \"me\" for the currently logged in customer.
|
|
462
|
-
* @param {
|
|
463
|
-
* @param {
|
|
464
|
-
* @param {
|
|
465
|
-
* @param {
|
|
466
|
-
* @param {
|
|
467
|
-
* @param {
|
|
468
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 \"me\" for the currently logged in customer.
|
|
571
|
-
* @param {
|
|
572
|
-
* @param {
|
|
573
|
-
* @param {
|
|
574
|
-
* @param {
|
|
575
|
-
* @param {
|
|
576
|
-
* @param {
|
|
577
|
-
* @param {
|
|
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=1, your subsequent call can include pageToken=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=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?:
|
|
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 {
|
|
723
|
+
* @type {number}
|
|
724
724
|
* @memberof PoliciesApiListPolicies
|
|
725
725
|
*/
|
|
726
|
-
readonly pageSize?:
|
|
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=1,
|
|
730
|
-
* @type {
|
|
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
730
|
+
* @type {string}
|
|
731
731
|
* @memberof PoliciesApiListPolicies
|
|
732
732
|
*/
|
|
733
|
-
readonly pageToken?:
|
|
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 {
|
|
737
|
+
* @type {string}
|
|
738
738
|
* @memberof PoliciesApiListPolicies
|
|
739
739
|
*/
|
|
740
|
-
readonly filter?:
|
|
740
|
+
readonly filter?: string
|
|
741
741
|
|
|
742
742
|
/**
|
|
743
743
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
744
|
-
* @type {
|
|
744
|
+
* @type {string}
|
|
745
745
|
* @memberof PoliciesApiListPolicies
|
|
746
746
|
*/
|
|
747
|
-
readonly search?:
|
|
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 {
|
|
751
|
+
* @type {string}
|
|
752
752
|
* @memberof PoliciesApiListPolicies
|
|
753
753
|
*/
|
|
754
|
-
readonly order?:
|
|
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
|
|
758
|
-
* @type {
|
|
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?:
|
|
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 {
|
|
765
|
+
* @type {string}
|
|
766
766
|
* @memberof PoliciesApiListPolicies
|
|
767
767
|
*/
|
|
768
|
-
readonly filters?:
|
|
768
|
+
readonly filters?: string
|
|
769
769
|
|
|
770
770
|
/**
|
|
771
771
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|