@emilgroup/customer-sdk-node 1.41.0 → 1.42.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 +28 -28
- package/api/customers-api.ts +28 -28
- package/api/documents-api.ts +51 -34
- package/api/invoices-api.ts +28 -28
- package/api/leads-api.ts +32 -32
- package/api/policies-api.ts +28 -28
- package/api/products-api.ts +28 -28
- package/base.ts +1 -0
- package/dist/api/claims-api.d.ts +20 -20
- package/dist/api/claims-api.js +18 -18
- package/dist/api/customers-api.d.ts +20 -20
- package/dist/api/customers-api.js +18 -18
- package/dist/api/documents-api.d.ts +33 -23
- package/dist/api/documents-api.js +31 -24
- package/dist/api/invoices-api.d.ts +20 -20
- package/dist/api/invoices-api.js +18 -18
- package/dist/api/leads-api.d.ts +24 -24
- package/dist/api/leads-api.js +22 -22
- package/dist/api/policies-api.d.ts +20 -20
- package/dist/api/policies-api.js +18 -18
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +18 -18
- package/dist/base.d.ts +1 -0
- package/dist/base.js +1 -0
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/create-account-request-dto.d.ts +2 -8
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/customer-product-class.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/policy-object-dto.d.ts +2 -2
- package/dist/models/policy-premium-class.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
- package/dist/models/upload-account-documents-request-dto.js +19 -0
- package/models/account-class.ts +1 -1
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/create-account-request-dto.ts +2 -8
- package/models/customer-product-class.ts +2 -2
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-premium-class.ts +2 -2
- package/models/update-lead-request-dto.ts +1 -1
- package/models/upload-account-documents-request-dto.ts +55 -0
- package/package.json +1 -1
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
34
34
|
*/
|
|
35
35
|
createLead: (customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
37
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
38
38
|
* @summary Retrieve the lead
|
|
39
39
|
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -49,17 +49,17 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
49
49
|
* @summary List leads
|
|
50
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
51
|
* @param {string} [authorization] Bearer Token
|
|
52
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
52
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
53
53
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
54
54
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
55
|
-
* @param {any} [
|
|
56
|
-
* @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.
|
|
55
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
57
56
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
58
57
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
58
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
listLeads: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
62
|
+
listLeads: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
63
|
/**
|
|
64
64
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
65
65
|
* @summary Update the lead
|
|
@@ -88,7 +88,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
88
88
|
*/
|
|
89
89
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
90
90
|
/**
|
|
91
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
91
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
92
92
|
* @summary Retrieve the lead
|
|
93
93
|
* @param {string} code Unique identifier for the object.
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -103,17 +103,17 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
103
103
|
* @summary List leads
|
|
104
104
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
105
105
|
* @param {string} [authorization] Bearer Token
|
|
106
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
106
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
107
107
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
108
108
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
109
|
-
* @param {any} [
|
|
110
|
-
* @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.
|
|
109
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
111
110
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
112
111
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
112
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
115
115
|
*/
|
|
116
|
-
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
116
|
+
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
|
|
117
117
|
/**
|
|
118
118
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
119
119
|
* @summary Update the lead
|
|
@@ -142,7 +142,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
142
142
|
*/
|
|
143
143
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
144
144
|
/**
|
|
145
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
145
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
146
146
|
* @summary Retrieve the lead
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -157,17 +157,17 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
157
157
|
* @summary List leads
|
|
158
158
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
159
159
|
* @param {string} [authorization] Bearer Token
|
|
160
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
160
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
161
161
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
162
162
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
163
|
-
* @param {any} [
|
|
164
|
-
* @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.
|
|
163
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
165
164
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
166
165
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
166
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
169
169
|
*/
|
|
170
|
-
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
170
|
+
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
|
|
171
171
|
/**
|
|
172
172
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
173
173
|
* @summary Update the lead
|
|
@@ -255,7 +255,7 @@ export interface LeadsApiListLeadsRequest {
|
|
|
255
255
|
*/
|
|
256
256
|
readonly authorization?: string;
|
|
257
257
|
/**
|
|
258
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
258
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
259
259
|
* @type {any}
|
|
260
260
|
* @memberof LeadsApiListLeads
|
|
261
261
|
*/
|
|
@@ -273,13 +273,7 @@ export interface LeadsApiListLeadsRequest {
|
|
|
273
273
|
*/
|
|
274
274
|
readonly filter?: any;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
277
|
-
* @type {any}
|
|
278
|
-
* @memberof LeadsApiListLeads
|
|
279
|
-
*/
|
|
280
|
-
readonly filters?: any;
|
|
281
|
-
/**
|
|
282
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
276
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
283
277
|
* @type {any}
|
|
284
278
|
* @memberof LeadsApiListLeads
|
|
285
279
|
*/
|
|
@@ -296,6 +290,12 @@ export interface LeadsApiListLeadsRequest {
|
|
|
296
290
|
* @memberof LeadsApiListLeads
|
|
297
291
|
*/
|
|
298
292
|
readonly expand?: any;
|
|
293
|
+
/**
|
|
294
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
295
|
+
* @type {any}
|
|
296
|
+
* @memberof LeadsApiListLeads
|
|
297
|
+
*/
|
|
298
|
+
readonly filters?: any;
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
301
|
* Request parameters for updateLead operation in LeadsApi.
|
|
@@ -345,7 +345,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
345
345
|
*/
|
|
346
346
|
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
347
347
|
/**
|
|
348
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
348
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
349
349
|
* @summary Retrieve the lead
|
|
350
350
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
351
351
|
* @param {*} [options] Override http request option.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -150,7 +150,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
});
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
153
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
154
154
|
* @summary Retrieve the lead
|
|
155
155
|
* @param {string} code Unique identifier for the object.
|
|
156
156
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -210,17 +210,17 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
210
210
|
* @summary List leads
|
|
211
211
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
212
212
|
* @param {string} [authorization] Bearer Token
|
|
213
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
213
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
214
214
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
215
215
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
216
|
-
* @param {any} [
|
|
217
|
-
* @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.
|
|
216
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
218
217
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
219
218
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
219
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
220
220
|
* @param {*} [options] Override http request option.
|
|
221
221
|
* @throws {RequiredError}
|
|
222
222
|
*/
|
|
223
|
-
listLeads: function (customerCode, authorization, pageSize, pageToken, filter,
|
|
223
|
+
listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
224
224
|
if (options === void 0) { options = {}; }
|
|
225
225
|
return __awaiter(_this, void 0, void 0, function () {
|
|
226
226
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -255,9 +255,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
255
255
|
if (filter !== undefined) {
|
|
256
256
|
localVarQueryParameter['filter'] = filter;
|
|
257
257
|
}
|
|
258
|
-
if (filters !== undefined) {
|
|
259
|
-
localVarQueryParameter['filters'] = filters;
|
|
260
|
-
}
|
|
261
258
|
if (search !== undefined) {
|
|
262
259
|
localVarQueryParameter['search'] = search;
|
|
263
260
|
}
|
|
@@ -267,6 +264,9 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
267
264
|
if (expand !== undefined) {
|
|
268
265
|
localVarQueryParameter['expand'] = expand;
|
|
269
266
|
}
|
|
267
|
+
if (filters !== undefined) {
|
|
268
|
+
localVarQueryParameter['filters'] = filters;
|
|
269
|
+
}
|
|
270
270
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
271
271
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
272
272
|
}
|
|
@@ -371,7 +371,7 @@ var LeadsApiFp = function (configuration) {
|
|
|
371
371
|
});
|
|
372
372
|
},
|
|
373
373
|
/**
|
|
374
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
374
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
375
375
|
* @summary Retrieve the lead
|
|
376
376
|
* @param {string} code Unique identifier for the object.
|
|
377
377
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -398,22 +398,22 @@ var LeadsApiFp = function (configuration) {
|
|
|
398
398
|
* @summary List leads
|
|
399
399
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
400
400
|
* @param {string} [authorization] Bearer Token
|
|
401
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
401
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
402
402
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
403
403
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
404
|
-
* @param {any} [
|
|
405
|
-
* @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.
|
|
404
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
406
405
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
407
406
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
407
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
408
408
|
* @param {*} [options] Override http request option.
|
|
409
409
|
* @throws {RequiredError}
|
|
410
410
|
*/
|
|
411
|
-
listLeads: function (customerCode, authorization, pageSize, pageToken, filter,
|
|
411
|
+
listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
412
412
|
return __awaiter(this, void 0, void 0, function () {
|
|
413
413
|
var localVarAxiosArgs;
|
|
414
414
|
return __generator(this, function (_a) {
|
|
415
415
|
switch (_a.label) {
|
|
416
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter,
|
|
416
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
417
417
|
case 1:
|
|
418
418
|
localVarAxiosArgs = _a.sent();
|
|
419
419
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -467,7 +467,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
467
467
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
470
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
471
471
|
* @summary Retrieve the lead
|
|
472
472
|
* @param {string} code Unique identifier for the object.
|
|
473
473
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -484,18 +484,18 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
484
484
|
* @summary List leads
|
|
485
485
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
486
486
|
* @param {string} [authorization] Bearer Token
|
|
487
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
487
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
488
488
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
489
489
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
490
|
-
* @param {any} [
|
|
491
|
-
* @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.
|
|
490
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
492
491
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
493
492
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
493
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
494
494
|
* @param {*} [options] Override http request option.
|
|
495
495
|
* @throws {RequiredError}
|
|
496
496
|
*/
|
|
497
|
-
listLeads: function (customerCode, authorization, pageSize, pageToken, filter,
|
|
498
|
-
return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter,
|
|
497
|
+
listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
498
|
+
return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
499
499
|
},
|
|
500
500
|
/**
|
|
501
501
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -537,7 +537,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
537
537
|
return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.customerCode, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
538
538
|
};
|
|
539
539
|
/**
|
|
540
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
540
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
541
541
|
* @summary Retrieve the lead
|
|
542
542
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
543
543
|
* @param {*} [options] Override http request option.
|
|
@@ -558,7 +558,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
558
558
|
*/
|
|
559
559
|
LeadsApi.prototype.listLeads = function (requestParameters, options) {
|
|
560
560
|
var _this = this;
|
|
561
|
-
return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
561
|
+
return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
562
562
|
};
|
|
563
563
|
/**
|
|
564
564
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -52,18 +52,18 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
52
52
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
53
53
|
* @summary List policies
|
|
54
54
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
55
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
55
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
56
56
|
* @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.
|
|
57
57
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
58
|
-
* @param {any} [
|
|
59
|
-
* @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.
|
|
58
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
60
59
|
* @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.
|
|
61
60
|
* @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.
|
|
61
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
62
62
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
64
64
|
* @throws {RequiredError}
|
|
65
65
|
*/
|
|
66
|
-
listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
66
|
+
listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
67
|
/**
|
|
68
68
|
* Request to update an existing policy by customer.
|
|
69
69
|
* @summary Request policy update
|
|
@@ -138,18 +138,18 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
138
138
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
139
139
|
* @summary List policies
|
|
140
140
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
141
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
141
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
142
142
|
* @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.
|
|
143
143
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
144
|
-
* @param {any} [
|
|
145
|
-
* @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.
|
|
144
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
146
145
|
* @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.
|
|
147
146
|
* @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.
|
|
147
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
152
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
152
|
+
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
|
|
153
153
|
/**
|
|
154
154
|
* Request to update an existing policy by customer.
|
|
155
155
|
* @summary Request policy update
|
|
@@ -224,18 +224,18 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
224
224
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
225
225
|
* @summary List policies
|
|
226
226
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
227
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
227
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
228
228
|
* @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.
|
|
229
229
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
230
|
-
* @param {any} [
|
|
231
|
-
* @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.
|
|
230
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
232
231
|
* @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.
|
|
233
232
|
* @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.
|
|
233
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
234
234
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
235
235
|
* @param {*} [options] Override http request option.
|
|
236
236
|
* @throws {RequiredError}
|
|
237
237
|
*/
|
|
238
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
238
|
+
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
|
|
239
239
|
/**
|
|
240
240
|
* Request to update an existing policy by customer.
|
|
241
241
|
* @summary Request policy update
|
|
@@ -354,7 +354,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
354
354
|
*/
|
|
355
355
|
readonly customerCode: string;
|
|
356
356
|
/**
|
|
357
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
357
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
358
358
|
* @type {any}
|
|
359
359
|
* @memberof PoliciesApiListPolicies
|
|
360
360
|
*/
|
|
@@ -372,13 +372,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
372
372
|
*/
|
|
373
373
|
readonly filter?: any;
|
|
374
374
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @type {any}
|
|
377
|
-
* @memberof PoliciesApiListPolicies
|
|
378
|
-
*/
|
|
379
|
-
readonly filters?: any;
|
|
380
|
-
/**
|
|
381
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
375
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
382
376
|
* @type {any}
|
|
383
377
|
* @memberof PoliciesApiListPolicies
|
|
384
378
|
*/
|
|
@@ -395,6 +389,12 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
395
389
|
* @memberof PoliciesApiListPolicies
|
|
396
390
|
*/
|
|
397
391
|
readonly expand?: any;
|
|
392
|
+
/**
|
|
393
|
+
* 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.
|
|
394
|
+
* @type {any}
|
|
395
|
+
* @memberof PoliciesApiListPolicies
|
|
396
|
+
*/
|
|
397
|
+
readonly filters?: any;
|
|
398
398
|
/**
|
|
399
399
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
400
|
* @type {string}
|
package/dist/api/policies-api.js
CHANGED
|
@@ -192,18 +192,18 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
193
193
|
* @summary List policies
|
|
194
194
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
195
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
195
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
196
196
|
* @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.
|
|
197
197
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
198
|
-
* @param {any} [
|
|
199
|
-
* @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.
|
|
198
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
200
199
|
* @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.
|
|
201
200
|
* @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.
|
|
201
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
202
202
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
203
|
* @param {*} [options] Override http request option.
|
|
204
204
|
* @throws {RequiredError}
|
|
205
205
|
*/
|
|
206
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter,
|
|
206
|
+
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
207
207
|
if (options === void 0) { options = {}; }
|
|
208
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
209
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -229,9 +229,6 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
229
229
|
if (filter !== undefined) {
|
|
230
230
|
localVarQueryParameter['filter'] = filter;
|
|
231
231
|
}
|
|
232
|
-
if (filters !== undefined) {
|
|
233
|
-
localVarQueryParameter['filters'] = filters;
|
|
234
|
-
}
|
|
235
232
|
if (search !== undefined) {
|
|
236
233
|
localVarQueryParameter['search'] = search;
|
|
237
234
|
}
|
|
@@ -241,6 +238,9 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
241
238
|
if (expand !== undefined) {
|
|
242
239
|
localVarQueryParameter['expand'] = expand;
|
|
243
240
|
}
|
|
241
|
+
if (filters !== undefined) {
|
|
242
|
+
localVarQueryParameter['filters'] = filters;
|
|
243
|
+
}
|
|
244
244
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
245
245
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
246
246
|
}
|
|
@@ -493,23 +493,23 @@ var PoliciesApiFp = function (configuration) {
|
|
|
493
493
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
494
494
|
* @summary List policies
|
|
495
495
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
496
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
496
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
497
497
|
* @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.
|
|
498
498
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
499
|
-
* @param {any} [
|
|
500
|
-
* @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.
|
|
499
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
501
500
|
* @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.
|
|
502
501
|
* @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.
|
|
502
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
503
503
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
504
504
|
* @param {*} [options] Override http request option.
|
|
505
505
|
* @throws {RequiredError}
|
|
506
506
|
*/
|
|
507
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter,
|
|
507
|
+
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
508
508
|
return __awaiter(this, void 0, void 0, function () {
|
|
509
509
|
var localVarAxiosArgs;
|
|
510
510
|
return __generator(this, function (_a) {
|
|
511
511
|
switch (_a.label) {
|
|
512
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter,
|
|
512
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
513
513
|
case 1:
|
|
514
514
|
localVarAxiosArgs = _a.sent();
|
|
515
515
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -647,19 +647,19 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
647
647
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
648
648
|
* @summary List policies
|
|
649
649
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
650
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
650
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
651
651
|
* @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.
|
|
652
652
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
653
|
-
* @param {any} [
|
|
654
|
-
* @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.
|
|
653
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
655
654
|
* @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.
|
|
656
655
|
* @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.
|
|
656
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
657
657
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
*/
|
|
661
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter,
|
|
662
|
-
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter,
|
|
661
|
+
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
662
|
+
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
663
663
|
},
|
|
664
664
|
/**
|
|
665
665
|
* Request to update an existing policy by customer.
|
|
@@ -759,7 +759,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
759
759
|
*/
|
|
760
760
|
PoliciesApi.prototype.listPolicies = function (requestParameters, options) {
|
|
761
761
|
var _this = this;
|
|
762
|
-
return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
762
|
+
return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
763
763
|
};
|
|
764
764
|
/**
|
|
765
765
|
* Request to update an existing policy by customer.
|