@emilgroup/customer-sdk-node 1.41.0 → 1.44.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/claims-api.ts +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 +62 -62
- 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 +40 -40
- package/dist/api/leads-api.js +48 -48
- 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
|
@@ -22,18 +22,18 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
22
22
|
* List all the invoices of a customer.
|
|
23
23
|
* @summary List invoices of a customer
|
|
24
24
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
25
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
25
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
26
26
|
* @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.
|
|
27
27
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
28
|
-
* @param {any} [
|
|
29
|
-
* @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.
|
|
28
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
30
29
|
* @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.
|
|
31
30
|
* @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.
|
|
31
|
+
* @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.
|
|
32
32
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
33
33
|
* @param {*} [options] Override http request option.
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
*/
|
|
36
|
-
listInvoices: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
36
|
+
listInvoices: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* InvoicesApi - functional programming interface
|
|
@@ -44,18 +44,18 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
|
44
44
|
* List all the invoices of a customer.
|
|
45
45
|
* @summary List invoices of a customer
|
|
46
46
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
47
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
47
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
48
48
|
* @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.
|
|
49
49
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
50
|
-
* @param {any} [
|
|
51
|
-
* @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.
|
|
50
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
52
51
|
* @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.
|
|
53
52
|
* @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.
|
|
53
|
+
* @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.
|
|
54
54
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
|
-
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
58
|
+
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* InvoicesApi - factory interface
|
|
@@ -66,18 +66,18 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
|
|
|
66
66
|
* List all the invoices of a customer.
|
|
67
67
|
* @summary List invoices of a customer
|
|
68
68
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
69
|
-
* @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.
|
|
70
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.
|
|
71
71
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
72
|
-
* @param {any} [
|
|
73
|
-
* @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
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
74
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.
|
|
75
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.
|
|
76
76
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
77
77
|
* @param {*} [options] Override http request option.
|
|
78
78
|
* @throws {RequiredError}
|
|
79
79
|
*/
|
|
80
|
-
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
80
|
+
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* Request parameters for listInvoices operation in InvoicesApi.
|
|
@@ -92,7 +92,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
92
92
|
*/
|
|
93
93
|
readonly customerCode: string;
|
|
94
94
|
/**
|
|
95
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
95
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
96
96
|
* @type {any}
|
|
97
97
|
* @memberof InvoicesApiListInvoices
|
|
98
98
|
*/
|
|
@@ -110,13 +110,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
110
110
|
*/
|
|
111
111
|
readonly filter?: any;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {any}
|
|
115
|
-
* @memberof InvoicesApiListInvoices
|
|
116
|
-
*/
|
|
117
|
-
readonly filters?: any;
|
|
118
|
-
/**
|
|
119
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
113
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
120
114
|
* @type {any}
|
|
121
115
|
* @memberof InvoicesApiListInvoices
|
|
122
116
|
*/
|
|
@@ -133,6 +127,12 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
133
127
|
* @memberof InvoicesApiListInvoices
|
|
134
128
|
*/
|
|
135
129
|
readonly expand?: any;
|
|
130
|
+
/**
|
|
131
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
132
|
+
* @type {any}
|
|
133
|
+
* @memberof InvoicesApiListInvoices
|
|
134
|
+
*/
|
|
135
|
+
readonly filters?: any;
|
|
136
136
|
/**
|
|
137
137
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
138
138
|
* @type {string}
|
package/dist/api/invoices-api.js
CHANGED
|
@@ -100,18 +100,18 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
* List all the invoices of a customer.
|
|
101
101
|
* @summary List invoices of a customer
|
|
102
102
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
103
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
104
104
|
* @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.
|
|
105
105
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
106
|
-
* @param {any} [
|
|
107
|
-
* @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.
|
|
106
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
108
107
|
* @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.
|
|
109
108
|
* @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.
|
|
109
|
+
* @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.
|
|
110
110
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
111
111
|
* @param {*} [options] Override http request option.
|
|
112
112
|
* @throws {RequiredError}
|
|
113
113
|
*/
|
|
114
|
-
listInvoices: function (customerCode, pageSize, pageToken, filter,
|
|
114
|
+
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
115
115
|
if (options === void 0) { options = {}; }
|
|
116
116
|
return __awaiter(_this, void 0, void 0, function () {
|
|
117
117
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -137,9 +137,6 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
137
137
|
if (filter !== undefined) {
|
|
138
138
|
localVarQueryParameter['filter'] = filter;
|
|
139
139
|
}
|
|
140
|
-
if (filters !== undefined) {
|
|
141
|
-
localVarQueryParameter['filters'] = filters;
|
|
142
|
-
}
|
|
143
140
|
if (search !== undefined) {
|
|
144
141
|
localVarQueryParameter['search'] = search;
|
|
145
142
|
}
|
|
@@ -149,6 +146,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
149
146
|
if (expand !== undefined) {
|
|
150
147
|
localVarQueryParameter['expand'] = expand;
|
|
151
148
|
}
|
|
149
|
+
if (filters !== undefined) {
|
|
150
|
+
localVarQueryParameter['filters'] = filters;
|
|
151
|
+
}
|
|
152
152
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
153
153
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
154
154
|
}
|
|
@@ -176,23 +176,23 @@ var InvoicesApiFp = function (configuration) {
|
|
|
176
176
|
* List all the invoices of a customer.
|
|
177
177
|
* @summary List invoices of a customer
|
|
178
178
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
179
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
179
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
180
180
|
* @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.
|
|
181
181
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
182
|
-
* @param {any} [
|
|
183
|
-
* @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.
|
|
182
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
184
183
|
* @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.
|
|
185
184
|
* @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.
|
|
185
|
+
* @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.
|
|
186
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
listInvoices: function (customerCode, pageSize, pageToken, filter,
|
|
190
|
+
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
191
191
|
return __awaiter(this, void 0, void 0, function () {
|
|
192
192
|
var localVarAxiosArgs;
|
|
193
193
|
return __generator(this, function (_a) {
|
|
194
194
|
switch (_a.label) {
|
|
195
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter,
|
|
195
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
196
196
|
case 1:
|
|
197
197
|
localVarAxiosArgs = _a.sent();
|
|
198
198
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -214,19 +214,19 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
214
214
|
* List all the invoices of a customer.
|
|
215
215
|
* @summary List invoices of a customer
|
|
216
216
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
217
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
217
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
218
218
|
* @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.
|
|
219
219
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
220
|
-
* @param {any} [
|
|
221
|
-
* @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.
|
|
220
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
222
221
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
223
222
|
* @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.
|
|
223
|
+
* @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.
|
|
224
224
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
|
-
listInvoices: function (customerCode, pageSize, pageToken, filter,
|
|
229
|
-
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter,
|
|
228
|
+
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
229
|
+
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
230
230
|
},
|
|
231
231
|
};
|
|
232
232
|
};
|
|
@@ -252,7 +252,7 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
252
252
|
*/
|
|
253
253
|
InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
|
|
254
254
|
var _this = this;
|
|
255
|
-
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
255
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(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); });
|
|
256
256
|
};
|
|
257
257
|
return InvoicesApi;
|
|
258
258
|
}(base_1.BaseAPI));
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -34,43 +34,43 @@ 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
|
-
* @param {string}
|
|
39
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
40
40
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
42
|
* @param {string} [expand]
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
getLead: (
|
|
46
|
+
getLead: (leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
48
|
* 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.
|
|
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
|
|
66
|
-
* @param {string}
|
|
66
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
67
67
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
68
68
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
69
69
|
* @param {string} [authorization] Bearer Token
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
updateLead: (
|
|
73
|
+
updateLead: (leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* LeadsApi - functional programming interface
|
|
@@ -88,43 +88,43 @@ 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
|
-
* @param {string}
|
|
93
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
95
95
|
* @param {string} [authorization] Bearer Token
|
|
96
96
|
* @param {string} [expand]
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
getLead(
|
|
100
|
+
getLead(leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
101
101
|
/**
|
|
102
102
|
* 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.
|
|
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
|
|
120
|
-
* @param {string}
|
|
120
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
121
121
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
122
122
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
123
123
|
* @param {string} [authorization] Bearer Token
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
updateLead(
|
|
127
|
+
updateLead(leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* LeadsApi - factory interface
|
|
@@ -142,43 +142,43 @@ 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
|
-
* @param {string}
|
|
147
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
148
148
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
149
149
|
* @param {string} [authorization] Bearer Token
|
|
150
150
|
* @param {string} [expand]
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
*/
|
|
154
|
-
getLead(
|
|
154
|
+
getLead(leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
155
155
|
/**
|
|
156
156
|
* 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.
|
|
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
|
|
174
|
-
* @param {string}
|
|
174
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
175
175
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
176
176
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
177
177
|
* @param {string} [authorization] Bearer Token
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
updateLead(
|
|
181
|
+
updateLead(leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
182
182
|
};
|
|
183
183
|
/**
|
|
184
184
|
* Request parameters for createLead operation in LeadsApi.
|
|
@@ -212,11 +212,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
212
212
|
*/
|
|
213
213
|
export interface LeadsApiGetLeadRequest {
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* The unique identification code of the lead.
|
|
216
216
|
* @type {string}
|
|
217
217
|
* @memberof LeadsApiGetLead
|
|
218
218
|
*/
|
|
219
|
-
readonly
|
|
219
|
+
readonly leadCode: string;
|
|
220
220
|
/**
|
|
221
221
|
* The customer code or \"me\" for the currently logged in customer.
|
|
222
222
|
* @type {string}
|
|
@@ -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.
|
|
@@ -304,11 +304,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
304
304
|
*/
|
|
305
305
|
export interface LeadsApiUpdateLeadRequest {
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
307
|
+
* The unique identification code of the lead.
|
|
308
308
|
* @type {string}
|
|
309
309
|
* @memberof LeadsApiUpdateLead
|
|
310
310
|
*/
|
|
311
|
-
readonly
|
|
311
|
+
readonly leadCode: string;
|
|
312
312
|
/**
|
|
313
313
|
* The customer code or \"me\" for the currently logged in customer.
|
|
314
314
|
* @type {string}
|
|
@@ -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.
|