@emilgroup/customer-sdk-node 1.44.1-beta.0 → 1.46.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/api/claims-api.ts +40 -40
  3. package/api/customers-api.ts +40 -40
  4. package/api/documents-api.ts +40 -40
  5. package/api/invites-api.ts +4 -4
  6. package/api/invoices-api.ts +40 -40
  7. package/api/leads-api.ts +70 -70
  8. package/api/policies-api.ts +40 -40
  9. package/api/products-api.ts +40 -40
  10. package/base.ts +1 -1
  11. package/common.ts +2 -2
  12. package/configuration.ts +9 -0
  13. package/dist/api/authentication-api.js +60 -23
  14. package/dist/api/claims-api.d.ts +40 -40
  15. package/dist/api/claims-api.js +67 -38
  16. package/dist/api/customers-api.d.ts +40 -40
  17. package/dist/api/customers-api.js +74 -41
  18. package/dist/api/default-api.js +18 -5
  19. package/dist/api/documents-api.d.ts +43 -43
  20. package/dist/api/documents-api.js +53 -32
  21. package/dist/api/invites-api.d.ts +4 -4
  22. package/dist/api/invites-api.js +43 -18
  23. package/dist/api/invoices-api.d.ts +40 -40
  24. package/dist/api/invoices-api.js +39 -26
  25. package/dist/api/leads-api.d.ts +56 -56
  26. package/dist/api/leads-api.js +84 -59
  27. package/dist/api/payments-api.js +25 -8
  28. package/dist/api/policies-api.d.ts +40 -40
  29. package/dist/api/policies-api.js +81 -44
  30. package/dist/api/products-api.d.ts +40 -40
  31. package/dist/api/products-api.js +46 -29
  32. package/dist/base.js +25 -15
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +4 -4
  35. package/dist/configuration.d.ts +6 -0
  36. package/dist/configuration.js +8 -0
  37. package/dist/models/policy-class.d.ts +48 -0
  38. package/models/policy-class.ts +48 -0
  39. package/package.json +4 -4
  40. package/tsconfig.json +1 -0
@@ -42,7 +42,7 @@ export declare const InvitesApiAxiosParamCreator: (configuration?: Configuration
42
42
  */
43
43
  inviteByCustomer: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
44
  /**
45
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
45
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
46
46
  * @summary Invite a customer by tenant
47
47
  * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
48
48
  * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
@@ -82,7 +82,7 @@ export declare const InvitesApiFp: (configuration?: Configuration) => {
82
82
  */
83
83
  inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByCustomerResponseClass>>;
84
84
  /**
85
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
85
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
86
86
  * @summary Invite a customer by tenant
87
87
  * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
88
88
  * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
@@ -122,7 +122,7 @@ export declare const InvitesApiFactory: (configuration?: Configuration, basePath
122
122
  */
123
123
  inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByCustomerResponseClass>;
124
124
  /**
125
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
125
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
126
126
  * @summary Invite a customer by tenant
127
127
  * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
128
128
  * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
@@ -229,7 +229,7 @@ export declare class InvitesApi extends BaseAPI {
229
229
  */
230
230
  inviteByCustomer(requestParameters: InvitesApiInviteByCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByCustomerResponseClass, any>>;
231
231
  /**
232
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
232
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
233
233
  * @summary Invite a customer by tenant
234
234
  * @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
235
235
  * @param {*} [options] Override http request option.
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -103,10 +112,14 @@ var InvitesApiAxiosParamCreator = function (configuration) {
103
112
  * @param {*} [options] Override http request option.
104
113
  * @throws {RequiredError}
105
114
  */
106
- createCustomer: function (createCustomerRequestDto, options) {
107
- if (options === void 0) { options = {}; }
108
- return __awaiter(_this, void 0, void 0, function () {
115
+ createCustomer: function (createCustomerRequestDto_1) {
116
+ var args_1 = [];
117
+ for (var _i = 1; _i < arguments.length; _i++) {
118
+ args_1[_i - 1] = arguments[_i];
119
+ }
120
+ return __awaiter(_this, __spreadArray([createCustomerRequestDto_1], args_1, true), void 0, function (createCustomerRequestDto, options) {
109
121
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
122
+ if (options === void 0) { options = {}; }
110
123
  return __generator(this, function (_a) {
111
124
  // verify required parameter 'createCustomerRequestDto' is not null or undefined
112
125
  (0, common_1.assertParamExists)('createCustomer', 'createCustomerRequestDto', createCustomerRequestDto);
@@ -139,10 +152,14 @@ var InvitesApiAxiosParamCreator = function (configuration) {
139
152
  * @param {*} [options] Override http request option.
140
153
  * @throws {RequiredError}
141
154
  */
142
- inviteByCustomer: function (inviteByCustomerRequestDto, authorization, options) {
143
- if (options === void 0) { options = {}; }
144
- return __awaiter(_this, void 0, void 0, function () {
155
+ inviteByCustomer: function (inviteByCustomerRequestDto_1, authorization_1) {
156
+ var args_1 = [];
157
+ for (var _i = 2; _i < arguments.length; _i++) {
158
+ args_1[_i - 2] = arguments[_i];
159
+ }
160
+ return __awaiter(_this, __spreadArray([inviteByCustomerRequestDto_1, authorization_1], args_1, true), void 0, function (inviteByCustomerRequestDto, authorization, options) {
145
161
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ if (options === void 0) { options = {}; }
146
163
  return __generator(this, function (_a) {
147
164
  // verify required parameter 'inviteByCustomerRequestDto' is not null or undefined
148
165
  (0, common_1.assertParamExists)('inviteByCustomer', 'inviteByCustomerRequestDto', inviteByCustomerRequestDto);
@@ -171,17 +188,21 @@ var InvitesApiAxiosParamCreator = function (configuration) {
171
188
  });
172
189
  },
173
190
  /**
174
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
191
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
175
192
  * @summary Invite a customer by tenant
176
193
  * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
177
194
  * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
178
195
  * @param {*} [options] Override http request option.
179
196
  * @throws {RequiredError}
180
197
  */
181
- inviteByTenant: function (inviteByTenantRequestDto, authorization, options) {
182
- if (options === void 0) { options = {}; }
183
- return __awaiter(_this, void 0, void 0, function () {
198
+ inviteByTenant: function (inviteByTenantRequestDto_1, authorization_1) {
199
+ var args_1 = [];
200
+ for (var _i = 2; _i < arguments.length; _i++) {
201
+ args_1[_i - 2] = arguments[_i];
202
+ }
203
+ return __awaiter(_this, __spreadArray([inviteByTenantRequestDto_1, authorization_1], args_1, true), void 0, function (inviteByTenantRequestDto, authorization, options) {
184
204
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ if (options === void 0) { options = {}; }
185
206
  return __generator(this, function (_a) {
186
207
  // verify required parameter 'inviteByTenantRequestDto' is not null or undefined
187
208
  (0, common_1.assertParamExists)('inviteByTenant', 'inviteByTenantRequestDto', inviteByTenantRequestDto);
@@ -216,10 +237,14 @@ var InvitesApiAxiosParamCreator = function (configuration) {
216
237
  * @param {*} [options] Override http request option.
217
238
  * @throws {RequiredError}
218
239
  */
219
- verifyInvite: function (inviteToken, options) {
220
- if (options === void 0) { options = {}; }
221
- return __awaiter(_this, void 0, void 0, function () {
240
+ verifyInvite: function (inviteToken_1) {
241
+ var args_1 = [];
242
+ for (var _i = 1; _i < arguments.length; _i++) {
243
+ args_1[_i - 1] = arguments[_i];
244
+ }
245
+ return __awaiter(_this, __spreadArray([inviteToken_1], args_1, true), void 0, function (inviteToken, options) {
222
246
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
247
+ if (options === void 0) { options = {}; }
223
248
  return __generator(this, function (_a) {
224
249
  // verify required parameter 'inviteToken' is not null or undefined
225
250
  (0, common_1.assertParamExists)('verifyInvite', 'inviteToken', inviteToken);
@@ -297,7 +322,7 @@ var InvitesApiFp = function (configuration) {
297
322
  });
298
323
  },
299
324
  /**
300
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
325
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
301
326
  * @summary Invite a customer by tenant
302
327
  * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
303
328
  * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
@@ -369,7 +394,7 @@ var InvitesApiFactory = function (configuration, basePath, axios) {
369
394
  return localVarFp.inviteByCustomer(inviteByCustomerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
370
395
  },
371
396
  /**
372
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
397
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
373
398
  * @summary Invite a customer by tenant
374
399
  * @param {InviteByTenantRequestDto} inviteByTenantRequestDto
375
400
  * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
@@ -428,7 +453,7 @@ var InvitesApi = /** @class */ (function (_super) {
428
453
  return (0, exports.InvitesApiFp)(this.configuration).inviteByCustomer(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
429
454
  };
430
455
  /**
431
- * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
456
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
432
457
  * @summary Invite a customer by tenant
433
458
  * @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
434
459
  * @param {*} [options] Override http request option.
@@ -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 \&quot;me\&quot; 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 50. Default: 10.
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.
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.
25
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
26
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
27
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
28
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
29
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
30
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
31
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ listInvoices: (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, 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 \&quot;me\&quot; 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 50. Default: 10.
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.
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.
47
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
48
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
49
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
50
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
51
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
52
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
53
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
58
+ listInvoices(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
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 \&quot;me\&quot; 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 50. Default: 10.
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.
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.
69
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
70
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
71
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
72
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
73
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
74
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
75
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
80
+ listInvoices(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
81
81
  };
82
82
  /**
83
83
  * Request parameters for listInvoices operation in InvoicesApi.
@@ -93,46 +93,46 @@ export interface InvoicesApiListInvoicesRequest {
93
93
  readonly customerCode: string;
94
94
  /**
95
95
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
96
- * @type {any}
96
+ * @type {number}
97
97
  * @memberof InvoicesApiListInvoices
98
98
  */
99
- readonly pageSize?: any;
99
+ readonly pageSize?: number;
100
100
  /**
101
- * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
102
- * @type {any}
101
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
102
+ * @type {string}
103
103
  * @memberof InvoicesApiListInvoices
104
104
  */
105
- readonly pageToken?: any;
105
+ readonly pageToken?: string;
106
106
  /**
107
107
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
108
- * @type {any}
108
+ * @type {string}
109
109
  * @memberof InvoicesApiListInvoices
110
110
  */
111
- readonly filter?: any;
111
+ readonly filter?: string;
112
112
  /**
113
113
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
114
- * @type {any}
114
+ * @type {string}
115
115
  * @memberof InvoicesApiListInvoices
116
116
  */
117
- readonly search?: any;
117
+ readonly search?: string;
118
118
  /**
119
119
  * 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.
120
- * @type {any}
120
+ * @type {string}
121
121
  * @memberof InvoicesApiListInvoices
122
122
  */
123
- readonly order?: any;
123
+ readonly order?: string;
124
124
  /**
125
- * 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.
126
- * @type {any}
125
+ * 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.
126
+ * @type {string}
127
127
  * @memberof InvoicesApiListInvoices
128
128
  */
129
- readonly expand?: any;
129
+ readonly expand?: string;
130
130
  /**
131
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}
132
+ * @type {string}
133
133
  * @memberof InvoicesApiListInvoices
134
134
  */
135
- readonly filters?: any;
135
+ readonly filters?: string;
136
136
  /**
137
137
  * Bearer Token: provided by the login endpoint under the name accessToken.
138
138
  * @type {string}
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -100,21 +109,25 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
100
109
  * List all the invoices of a customer.
101
110
  * @summary List invoices of a customer
102
111
  * @param {string} customerCode The customer code or \&quot;me\&quot; 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 50. Default: 10.
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.
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.
112
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
113
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
114
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
115
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
116
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
117
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
118
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
110
119
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
111
120
  * @param {*} [options] Override http request option.
112
121
  * @throws {RequiredError}
113
122
  */
114
- listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
115
- if (options === void 0) { options = {}; }
116
- return __awaiter(_this, void 0, void 0, function () {
123
+ listInvoices: function (customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1) {
124
+ var args_1 = [];
125
+ for (var _i = 9; _i < arguments.length; _i++) {
126
+ args_1[_i - 9] = arguments[_i];
127
+ }
128
+ return __awaiter(_this, __spreadArray([customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1], args_1, true), void 0, function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
117
129
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
130
+ if (options === void 0) { options = {}; }
118
131
  return __generator(this, function (_a) {
119
132
  // verify required parameter 'customerCode' is not null or undefined
120
133
  (0, common_1.assertParamExists)('listInvoices', 'customerCode', customerCode);
@@ -176,13 +189,13 @@ var InvoicesApiFp = function (configuration) {
176
189
  * List all the invoices of a customer.
177
190
  * @summary List invoices of a customer
178
191
  * @param {string} customerCode The customer code or \&quot;me\&quot; 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 50. Default: 10.
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.
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.
192
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
193
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
195
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
196
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
197
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
198
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
186
199
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
200
  * @param {*} [options] Override http request option.
188
201
  * @throws {RequiredError}
@@ -214,13 +227,13 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
214
227
  * List all the invoices of a customer.
215
228
  * @summary List invoices of a customer
216
229
  * @param {string} customerCode The customer code or \&quot;me\&quot; 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 50. Default: 10.
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.
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.
230
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
231
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
232
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
233
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
234
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
235
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
236
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
224
237
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
225
238
  * @param {*} [options] Override http request option.
226
239
  * @throws {RequiredError}