@emilgroup/insurance-sdk-node 1.44.0 → 1.46.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 +10 -0
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +791 -0
- package/api/lead-versions-api.ts +24 -10
- package/api/leads-api.ts +24 -10
- package/api/policies-api.ts +507 -8
- package/api/product-factors-api.ts +2 -0
- package/api/status-transition-rules-api.ts +24 -10
- package/api.ts +2 -0
- package/dist/api/booking-funnels-api.d.ts +443 -0
- package/dist/api/booking-funnels-api.js +735 -0
- package/dist/api/lead-versions-api.d.ts +16 -7
- package/dist/api/lead-versions-api.js +15 -9
- package/dist/api/leads-api.d.ts +16 -7
- package/dist/api/leads-api.js +15 -9
- package/dist/api/policies-api.d.ts +285 -8
- package/dist/api/policies-api.js +416 -6
- package/dist/api/status-transition-rules-api.d.ts +16 -7
- package/dist/api/status-transition-rules-api.js +15 -9
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/booking-funnel-class.d.ts +84 -0
- package/dist/models/booking-funnel-class.js +15 -0
- package/dist/models/create-booking-funnel-request-dto.d.ts +66 -0
- package/dist/models/create-booking-funnel-request-dto.js +15 -0
- package/dist/models/create-draft-policy-request-dto.d.ts +70 -0
- package/dist/models/create-draft-policy-request-dto.js +23 -0
- package/dist/models/delete-draft-policy-request-dto.d.ts +24 -0
- package/dist/models/delete-draft-policy-request-dto.js +15 -0
- package/dist/models/get-draft-policy-request-dto.d.ts +30 -0
- package/dist/models/get-draft-policy-request-dto.js +15 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/list-booking-funnels-response-class.d.ts +31 -0
- package/dist/models/list-booking-funnels-response-class.js +15 -0
- package/dist/models/patch-booking-funnel-request-dto.d.ts +60 -0
- package/dist/models/patch-booking-funnel-request-dto.js +15 -0
- package/dist/models/patch-draft-policy-request-dto.d.ts +70 -0
- package/dist/models/patch-draft-policy-request-dto.js +23 -0
- package/dist/models/patch-policy-request-dto.d.ts +0 -6
- package/dist/models/policy-version-class.d.ts +12 -0
- package/dist/models/update-booking-funnel-request-dto.d.ts +60 -0
- package/dist/models/update-booking-funnel-request-dto.js +15 -0
- package/dist/models/update-policy-request-dto.d.ts +0 -6
- package/models/booking-funnel-class.ts +90 -0
- package/models/create-booking-funnel-request-dto.ts +72 -0
- package/models/create-draft-policy-request-dto.ts +79 -0
- package/models/delete-draft-policy-request-dto.ts +30 -0
- package/models/get-draft-policy-request-dto.ts +36 -0
- package/models/index.ts +9 -0
- package/models/list-booking-funnels-response-class.ts +37 -0
- package/models/patch-booking-funnel-request-dto.ts +66 -0
- package/models/patch-draft-policy-request-dto.ts +79 -0
- package/models/patch-policy-request-dto.ts +0 -6
- package/models/policy-version-class.ts +12 -0
- package/models/update-booking-funnel-request-dto.ts +66 -0
- package/models/update-policy-request-dto.ts +0 -6
- package/package.json +1 -1
|
@@ -34,16 +34,17 @@ export declare const LeadVersionsApiAxiosParamCreator: (configuration?: Configur
|
|
|
34
34
|
* @summary List lead versions
|
|
35
35
|
* @param {string} code
|
|
36
36
|
* @param {string} [authorization] Bearer Token
|
|
37
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
37
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
38
38
|
* @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.
|
|
39
39
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
40
40
|
* @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.
|
|
41
41
|
* @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.
|
|
42
42
|
* @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.
|
|
43
|
+
* @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.
|
|
43
44
|
* @param {*} [options] Override http request option.
|
|
44
45
|
* @throws {RequiredError}
|
|
45
46
|
*/
|
|
46
|
-
listLeadVersions: (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
listLeadVersions: (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* LeadVersionsApi - functional programming interface
|
|
@@ -65,16 +66,17 @@ export declare const LeadVersionsApiFp: (configuration?: Configuration) => {
|
|
|
65
66
|
* @summary List lead versions
|
|
66
67
|
* @param {string} code
|
|
67
68
|
* @param {string} [authorization] Bearer Token
|
|
68
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
69
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
69
70
|
* @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.
|
|
70
71
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
71
72
|
* @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.
|
|
72
73
|
* @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.
|
|
73
74
|
* @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.
|
|
75
|
+
* @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.
|
|
74
76
|
* @param {*} [options] Override http request option.
|
|
75
77
|
* @throws {RequiredError}
|
|
76
78
|
*/
|
|
77
|
-
listLeadVersions(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadVersionsResponseClass>>;
|
|
79
|
+
listLeadVersions(code: 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<ListLeadVersionsResponseClass>>;
|
|
78
80
|
};
|
|
79
81
|
/**
|
|
80
82
|
* LeadVersionsApi - factory interface
|
|
@@ -96,16 +98,17 @@ export declare const LeadVersionsApiFactory: (configuration?: Configuration, bas
|
|
|
96
98
|
* @summary List lead versions
|
|
97
99
|
* @param {string} code
|
|
98
100
|
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
101
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
100
102
|
* @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.
|
|
101
103
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
102
104
|
* @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.
|
|
103
105
|
* @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.
|
|
104
106
|
* @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.
|
|
107
|
+
* @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.
|
|
105
108
|
* @param {*} [options] Override http request option.
|
|
106
109
|
* @throws {RequiredError}
|
|
107
110
|
*/
|
|
108
|
-
listLeadVersions(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadVersionsResponseClass>;
|
|
111
|
+
listLeadVersions(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadVersionsResponseClass>;
|
|
109
112
|
};
|
|
110
113
|
/**
|
|
111
114
|
* Request parameters for getLeadVersion operation in LeadVersionsApi.
|
|
@@ -151,7 +154,7 @@ export interface LeadVersionsApiListLeadVersionsRequest {
|
|
|
151
154
|
*/
|
|
152
155
|
readonly authorization?: string;
|
|
153
156
|
/**
|
|
154
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
157
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
155
158
|
* @type {any}
|
|
156
159
|
* @memberof LeadVersionsApiListLeadVersions
|
|
157
160
|
*/
|
|
@@ -186,6 +189,12 @@ export interface LeadVersionsApiListLeadVersionsRequest {
|
|
|
186
189
|
* @memberof LeadVersionsApiListLeadVersions
|
|
187
190
|
*/
|
|
188
191
|
readonly expand?: any;
|
|
192
|
+
/**
|
|
193
|
+
* 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.
|
|
194
|
+
* @type {any}
|
|
195
|
+
* @memberof LeadVersionsApiListLeadVersions
|
|
196
|
+
*/
|
|
197
|
+
readonly filters?: any;
|
|
189
198
|
}
|
|
190
199
|
/**
|
|
191
200
|
* LeadVersionsApi - object-oriented interface
|
|
@@ -153,16 +153,17 @@ var LeadVersionsApiAxiosParamCreator = function (configuration) {
|
|
|
153
153
|
* @summary List lead versions
|
|
154
154
|
* @param {string} code
|
|
155
155
|
* @param {string} [authorization] Bearer Token
|
|
156
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
156
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
157
157
|
* @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.
|
|
158
158
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
159
159
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
160
160
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
161
161
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
162
|
+
* @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.
|
|
162
163
|
* @param {*} [options] Override http request option.
|
|
163
164
|
* @throws {RequiredError}
|
|
164
165
|
*/
|
|
165
|
-
listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
166
|
+
listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
166
167
|
if (options === void 0) { options = {}; }
|
|
167
168
|
return __awaiter(_this, void 0, void 0, function () {
|
|
168
169
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -206,6 +207,9 @@ var LeadVersionsApiAxiosParamCreator = function (configuration) {
|
|
|
206
207
|
if (expand !== undefined) {
|
|
207
208
|
localVarQueryParameter['expand'] = expand;
|
|
208
209
|
}
|
|
210
|
+
if (filters !== undefined) {
|
|
211
|
+
localVarQueryParameter['filters'] = filters;
|
|
212
|
+
}
|
|
209
213
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
210
214
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
211
215
|
}
|
|
@@ -257,21 +261,22 @@ var LeadVersionsApiFp = function (configuration) {
|
|
|
257
261
|
* @summary List lead versions
|
|
258
262
|
* @param {string} code
|
|
259
263
|
* @param {string} [authorization] Bearer Token
|
|
260
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
264
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
261
265
|
* @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.
|
|
262
266
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
263
267
|
* @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.
|
|
264
268
|
* @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.
|
|
265
269
|
* @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.
|
|
270
|
+
* @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.
|
|
266
271
|
* @param {*} [options] Override http request option.
|
|
267
272
|
* @throws {RequiredError}
|
|
268
273
|
*/
|
|
269
|
-
listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
274
|
+
listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
270
275
|
return __awaiter(this, void 0, void 0, function () {
|
|
271
276
|
var localVarAxiosArgs;
|
|
272
277
|
return __generator(this, function (_a) {
|
|
273
278
|
switch (_a.label) {
|
|
274
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeadVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
279
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeadVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
275
280
|
case 1:
|
|
276
281
|
localVarAxiosArgs = _a.sent();
|
|
277
282
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -306,17 +311,18 @@ var LeadVersionsApiFactory = function (configuration, basePath, axios) {
|
|
|
306
311
|
* @summary List lead versions
|
|
307
312
|
* @param {string} code
|
|
308
313
|
* @param {string} [authorization] Bearer Token
|
|
309
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
314
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
315
|
* @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.
|
|
311
316
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
312
317
|
* @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.
|
|
313
318
|
* @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.
|
|
314
319
|
* @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.
|
|
320
|
+
* @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.
|
|
315
321
|
* @param {*} [options] Override http request option.
|
|
316
322
|
* @throws {RequiredError}
|
|
317
323
|
*/
|
|
318
|
-
listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
319
|
-
return localVarFp.listLeadVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
324
|
+
listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
325
|
+
return localVarFp.listLeadVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
320
326
|
},
|
|
321
327
|
};
|
|
322
328
|
};
|
|
@@ -354,7 +360,7 @@ var LeadVersionsApi = /** @class */ (function (_super) {
|
|
|
354
360
|
*/
|
|
355
361
|
LeadVersionsApi.prototype.listLeadVersions = function (requestParameters, options) {
|
|
356
362
|
var _this = this;
|
|
357
|
-
return (0, exports.LeadVersionsApiFp)(this.configuration).listLeadVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
363
|
+
return (0, exports.LeadVersionsApiFp)(this.configuration).listLeadVersions(requestParameters.code, 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); });
|
|
358
364
|
};
|
|
359
365
|
return LeadVersionsApi;
|
|
360
366
|
}(base_1.BaseAPI));
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -77,16 +77,17 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
77
77
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
78
78
|
* @summary List leads
|
|
79
79
|
* @param {string} [authorization] Bearer Token
|
|
80
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
80
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
81
81
|
* @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.
|
|
82
82
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
83
83
|
* @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.
|
|
84
84
|
* @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.
|
|
85
85
|
* @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.
|
|
86
|
+
* @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.
|
|
86
87
|
* @param {*} [options] Override http request option.
|
|
87
88
|
* @throws {RequiredError}
|
|
88
89
|
*/
|
|
89
|
-
listLeads: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
|
+
listLeads: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
91
|
/**
|
|
91
92
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
92
93
|
* @summary Patch the lead
|
|
@@ -173,16 +174,17 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
173
174
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
174
175
|
* @summary List leads
|
|
175
176
|
* @param {string} [authorization] Bearer Token
|
|
176
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
177
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
178
|
* @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.
|
|
178
179
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
179
180
|
* @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.
|
|
180
181
|
* @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.
|
|
181
182
|
* @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.
|
|
183
|
+
* @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.
|
|
182
184
|
* @param {*} [options] Override http request option.
|
|
183
185
|
* @throws {RequiredError}
|
|
184
186
|
*/
|
|
185
|
-
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
|
|
187
|
+
listLeads(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>>;
|
|
186
188
|
/**
|
|
187
189
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
188
190
|
* @summary Patch the lead
|
|
@@ -269,16 +271,17 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
269
271
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
270
272
|
* @summary List leads
|
|
271
273
|
* @param {string} [authorization] Bearer Token
|
|
272
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
274
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
273
275
|
* @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.
|
|
274
276
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
275
277
|
* @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.
|
|
276
278
|
* @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.
|
|
277
279
|
* @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.
|
|
280
|
+
* @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.
|
|
278
281
|
* @param {*} [options] Override http request option.
|
|
279
282
|
* @throws {RequiredError}
|
|
280
283
|
*/
|
|
281
|
-
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
|
|
284
|
+
listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
|
|
282
285
|
/**
|
|
283
286
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
284
287
|
* @summary Patch the lead
|
|
@@ -424,7 +427,7 @@ export interface LeadsApiListLeadsRequest {
|
|
|
424
427
|
*/
|
|
425
428
|
readonly authorization?: string;
|
|
426
429
|
/**
|
|
427
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
430
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
428
431
|
* @type {any}
|
|
429
432
|
* @memberof LeadsApiListLeads
|
|
430
433
|
*/
|
|
@@ -459,6 +462,12 @@ export interface LeadsApiListLeadsRequest {
|
|
|
459
462
|
* @memberof LeadsApiListLeads
|
|
460
463
|
*/
|
|
461
464
|
readonly expand?: any;
|
|
465
|
+
/**
|
|
466
|
+
* 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.
|
|
467
|
+
* @type {any}
|
|
468
|
+
* @memberof LeadsApiListLeads
|
|
469
|
+
*/
|
|
470
|
+
readonly filters?: any;
|
|
462
471
|
}
|
|
463
472
|
/**
|
|
464
473
|
* Request parameters for patchLead operation in LeadsApi.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -347,16 +347,17 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
347
347
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
348
348
|
* @summary List leads
|
|
349
349
|
* @param {string} [authorization] Bearer Token
|
|
350
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
350
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
351
351
|
* @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.
|
|
352
352
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
353
353
|
* @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.
|
|
354
354
|
* @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.
|
|
355
355
|
* @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.
|
|
356
|
+
* @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.
|
|
356
357
|
* @param {*} [options] Override http request option.
|
|
357
358
|
* @throws {RequiredError}
|
|
358
359
|
*/
|
|
359
|
-
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
360
|
+
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
360
361
|
if (options === void 0) { options = {}; }
|
|
361
362
|
return __awaiter(_this, void 0, void 0, function () {
|
|
362
363
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -397,6 +398,9 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
397
398
|
if (expand !== undefined) {
|
|
398
399
|
localVarQueryParameter['expand'] = expand;
|
|
399
400
|
}
|
|
401
|
+
if (filters !== undefined) {
|
|
402
|
+
localVarQueryParameter['filters'] = filters;
|
|
403
|
+
}
|
|
400
404
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
401
405
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
402
406
|
}
|
|
@@ -690,21 +694,22 @@ var LeadsApiFp = function (configuration) {
|
|
|
690
694
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
691
695
|
* @summary List leads
|
|
692
696
|
* @param {string} [authorization] Bearer Token
|
|
693
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
697
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
694
698
|
* @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.
|
|
695
699
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
696
700
|
* @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.
|
|
697
701
|
* @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.
|
|
698
702
|
* @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.
|
|
703
|
+
* @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.
|
|
699
704
|
* @param {*} [options] Override http request option.
|
|
700
705
|
* @throws {RequiredError}
|
|
701
706
|
*/
|
|
702
|
-
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
707
|
+
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
703
708
|
return __awaiter(this, void 0, void 0, function () {
|
|
704
709
|
var localVarAxiosArgs;
|
|
705
710
|
return __generator(this, function (_a) {
|
|
706
711
|
switch (_a.label) {
|
|
707
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
712
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
708
713
|
case 1:
|
|
709
714
|
localVarAxiosArgs = _a.sent();
|
|
710
715
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -848,17 +853,18 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
848
853
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
849
854
|
* @summary List leads
|
|
850
855
|
* @param {string} [authorization] Bearer Token
|
|
851
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
856
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
852
857
|
* @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.
|
|
853
858
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
854
859
|
* @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.
|
|
855
860
|
* @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.
|
|
856
861
|
* @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.
|
|
862
|
+
* @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.
|
|
857
863
|
* @param {*} [options] Override http request option.
|
|
858
864
|
* @throws {RequiredError}
|
|
859
865
|
*/
|
|
860
|
-
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
861
|
-
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
866
|
+
listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
867
|
+
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
862
868
|
},
|
|
863
869
|
/**
|
|
864
870
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -981,7 +987,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
981
987
|
LeadsApi.prototype.listLeads = function (requestParameters, options) {
|
|
982
988
|
var _this = this;
|
|
983
989
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
984
|
-
return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
990
|
+
return (0, exports.LeadsApiFp)(this.configuration).listLeads(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); });
|
|
985
991
|
};
|
|
986
992
|
/**
|
|
987
993
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|