@emilgroup/customer-sdk-node 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -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 +36 -36
- package/api/payments-api.ts +23 -6
- package/api/policies-api.ts +28 -28
- package/api/products-api.ts +28 -28
- package/base.ts +14 -23
- 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 +28 -28
- package/dist/api/leads-api.js +26 -26
- package/dist/api/payments-api.d.ts +13 -3
- package/dist/api/payments-api.js +13 -6
- 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 +3 -4
- package/dist/base.js +29 -37
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/card-details-dto.d.ts +42 -0
- package/dist/models/card-details-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +13 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +3 -2
- 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 +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/lead-class.d.ts +1 -1
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/payment-method-class.d.ts +78 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +2 -2
- package/dist/models/policy-premium-class.d.ts +2 -2
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- 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/card-details-dto.ts +48 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
- package/models/complete-payment-setup-psp-request.ts +13 -0
- package/models/complete-payment-setup-response-class.ts +3 -2
- 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 +7 -0
- package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
- package/models/initiate-payment-setup-request-dto.ts +36 -0
- package/models/initiate-payment-setup-response-class.ts +7 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/lead-class.ts +1 -1
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/payment-method-class.ts +84 -0
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-premium-class.ts +2 -2
- package/models/sepa-direct-dto.ts +30 -0
- package/models/update-lead-request-dto.ts +1 -1
- package/models/upload-account-documents-request-dto.ts +55 -0
- package/package.json +1 -1
|
@@ -52,18 +52,18 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
52
52
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
53
53
|
* @summary List policies
|
|
54
54
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
55
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
55
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
56
56
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
57
57
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
58
|
-
* @param {any} [
|
|
59
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
58
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
60
59
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
61
60
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
61
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
62
62
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
64
64
|
* @throws {RequiredError}
|
|
65
65
|
*/
|
|
66
|
-
listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
66
|
+
listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
67
|
/**
|
|
68
68
|
* Request to update an existing policy by customer.
|
|
69
69
|
* @summary Request policy update
|
|
@@ -138,18 +138,18 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
138
138
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
139
139
|
* @summary List policies
|
|
140
140
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
141
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
141
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
142
142
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
143
143
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
144
|
-
* @param {any} [
|
|
145
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
144
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
146
145
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
147
146
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
147
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
152
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
152
|
+
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
|
|
153
153
|
/**
|
|
154
154
|
* Request to update an existing policy by customer.
|
|
155
155
|
* @summary Request policy update
|
|
@@ -224,18 +224,18 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
224
224
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
225
225
|
* @summary List policies
|
|
226
226
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
227
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
227
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
228
228
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
229
229
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
230
|
-
* @param {any} [
|
|
231
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
230
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
232
231
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
233
232
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
233
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
234
234
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
235
235
|
* @param {*} [options] Override http request option.
|
|
236
236
|
* @throws {RequiredError}
|
|
237
237
|
*/
|
|
238
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
238
|
+
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
|
|
239
239
|
/**
|
|
240
240
|
* Request to update an existing policy by customer.
|
|
241
241
|
* @summary Request policy update
|
|
@@ -354,7 +354,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
354
354
|
*/
|
|
355
355
|
readonly customerCode: string;
|
|
356
356
|
/**
|
|
357
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
357
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
358
358
|
* @type {any}
|
|
359
359
|
* @memberof PoliciesApiListPolicies
|
|
360
360
|
*/
|
|
@@ -372,13 +372,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
372
372
|
*/
|
|
373
373
|
readonly filter?: any;
|
|
374
374
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @type {any}
|
|
377
|
-
* @memberof PoliciesApiListPolicies
|
|
378
|
-
*/
|
|
379
|
-
readonly filters?: any;
|
|
380
|
-
/**
|
|
381
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
375
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
382
376
|
* @type {any}
|
|
383
377
|
* @memberof PoliciesApiListPolicies
|
|
384
378
|
*/
|
|
@@ -395,6 +389,12 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
395
389
|
* @memberof PoliciesApiListPolicies
|
|
396
390
|
*/
|
|
397
391
|
readonly expand?: any;
|
|
392
|
+
/**
|
|
393
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
394
|
+
* @type {any}
|
|
395
|
+
* @memberof PoliciesApiListPolicies
|
|
396
|
+
*/
|
|
397
|
+
readonly filters?: any;
|
|
398
398
|
/**
|
|
399
399
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
400
|
* @type {string}
|
package/dist/api/policies-api.js
CHANGED
|
@@ -192,18 +192,18 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
193
193
|
* @summary List policies
|
|
194
194
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
195
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
195
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
196
196
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
197
197
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
198
|
-
* @param {any} [
|
|
199
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
198
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
200
199
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
201
200
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
201
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
202
202
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
203
|
* @param {*} [options] Override http request option.
|
|
204
204
|
* @throws {RequiredError}
|
|
205
205
|
*/
|
|
206
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter,
|
|
206
|
+
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
207
207
|
if (options === void 0) { options = {}; }
|
|
208
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
209
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -229,9 +229,6 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
229
229
|
if (filter !== undefined) {
|
|
230
230
|
localVarQueryParameter['filter'] = filter;
|
|
231
231
|
}
|
|
232
|
-
if (filters !== undefined) {
|
|
233
|
-
localVarQueryParameter['filters'] = filters;
|
|
234
|
-
}
|
|
235
232
|
if (search !== undefined) {
|
|
236
233
|
localVarQueryParameter['search'] = search;
|
|
237
234
|
}
|
|
@@ -241,6 +238,9 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
241
238
|
if (expand !== undefined) {
|
|
242
239
|
localVarQueryParameter['expand'] = expand;
|
|
243
240
|
}
|
|
241
|
+
if (filters !== undefined) {
|
|
242
|
+
localVarQueryParameter['filters'] = filters;
|
|
243
|
+
}
|
|
244
244
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
245
245
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
246
246
|
}
|
|
@@ -493,23 +493,23 @@ var PoliciesApiFp = function (configuration) {
|
|
|
493
493
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
494
494
|
* @summary List policies
|
|
495
495
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
496
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
496
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
497
497
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
498
498
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
499
|
-
* @param {any} [
|
|
500
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
499
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
501
500
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
502
501
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
502
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
503
503
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
504
504
|
* @param {*} [options] Override http request option.
|
|
505
505
|
* @throws {RequiredError}
|
|
506
506
|
*/
|
|
507
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter,
|
|
507
|
+
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
508
508
|
return __awaiter(this, void 0, void 0, function () {
|
|
509
509
|
var localVarAxiosArgs;
|
|
510
510
|
return __generator(this, function (_a) {
|
|
511
511
|
switch (_a.label) {
|
|
512
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter,
|
|
512
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
513
513
|
case 1:
|
|
514
514
|
localVarAxiosArgs = _a.sent();
|
|
515
515
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -647,19 +647,19 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
647
647
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
648
648
|
* @summary List policies
|
|
649
649
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
650
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
650
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
651
651
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
652
652
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
653
|
-
* @param {any} [
|
|
654
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
653
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
655
654
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
656
655
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
656
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
657
657
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
*/
|
|
661
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter,
|
|
662
|
-
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter,
|
|
661
|
+
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
662
|
+
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
663
663
|
},
|
|
664
664
|
/**
|
|
665
665
|
* Request to update an existing policy by customer.
|
|
@@ -759,7 +759,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
759
759
|
*/
|
|
760
760
|
PoliciesApi.prototype.listPolicies = function (requestParameters, options) {
|
|
761
761
|
var _this = this;
|
|
762
|
-
return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
762
|
+
return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
763
763
|
};
|
|
764
764
|
/**
|
|
765
765
|
* Request to update an existing policy by customer.
|
|
@@ -33,18 +33,18 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
33
33
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
34
34
|
* @summary List available products
|
|
35
35
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
36
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
36
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
37
37
|
* @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.
|
|
38
38
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
39
|
-
* @param {any} [
|
|
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.
|
|
39
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
41
40
|
* @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
41
|
* @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.
|
|
42
|
+
* @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
43
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
listProducts: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
47
|
+
listProducts: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* ProductsApi - functional programming interface
|
|
@@ -65,18 +65,18 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
65
65
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
66
66
|
* @summary List available products
|
|
67
67
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
68
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
68
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
69
69
|
* @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
70
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
71
|
-
* @param {any} [
|
|
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.
|
|
71
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
73
72
|
* @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
73
|
* @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.
|
|
74
|
+
* @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.
|
|
75
75
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
76
|
* @param {*} [options] Override http request option.
|
|
77
77
|
* @throws {RequiredError}
|
|
78
78
|
*/
|
|
79
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
79
|
+
listProducts(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<ListProductsResponseClass>>;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
* ProductsApi - factory interface
|
|
@@ -97,18 +97,18 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
97
97
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
98
98
|
* @summary List available products
|
|
99
99
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
100
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
100
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
101
101
|
* @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.
|
|
102
102
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
103
|
-
* @param {any} [
|
|
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
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
105
104
|
* @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.
|
|
106
105
|
* @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.
|
|
106
|
+
* @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.
|
|
107
107
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
111
|
+
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
* Request parameters for getProduct operation in ProductsApi.
|
|
@@ -148,7 +148,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
148
148
|
*/
|
|
149
149
|
readonly customerCode: string;
|
|
150
150
|
/**
|
|
151
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
151
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
152
152
|
* @type {any}
|
|
153
153
|
* @memberof ProductsApiListProducts
|
|
154
154
|
*/
|
|
@@ -166,13 +166,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
166
166
|
*/
|
|
167
167
|
readonly filter?: any;
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @type {any}
|
|
171
|
-
* @memberof ProductsApiListProducts
|
|
172
|
-
*/
|
|
173
|
-
readonly filters?: any;
|
|
174
|
-
/**
|
|
175
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
169
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
176
170
|
* @type {any}
|
|
177
171
|
* @memberof ProductsApiListProducts
|
|
178
172
|
*/
|
|
@@ -189,6 +183,12 @@ export interface ProductsApiListProductsRequest {
|
|
|
189
183
|
* @memberof ProductsApiListProducts
|
|
190
184
|
*/
|
|
191
185
|
readonly expand?: any;
|
|
186
|
+
/**
|
|
187
|
+
* 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.
|
|
188
|
+
* @type {any}
|
|
189
|
+
* @memberof ProductsApiListProducts
|
|
190
|
+
*/
|
|
191
|
+
readonly filters?: any;
|
|
192
192
|
/**
|
|
193
193
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
194
194
|
* @type {string}
|
package/dist/api/products-api.js
CHANGED
|
@@ -142,18 +142,18 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
143
143
|
* @summary List available products
|
|
144
144
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
145
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
145
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
146
146
|
* @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.
|
|
147
147
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
148
|
-
* @param {any} [
|
|
149
|
-
* @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.
|
|
148
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
150
149
|
* @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.
|
|
151
150
|
* @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.
|
|
151
|
+
* @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.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
156
|
-
listProducts: function (customerCode, pageSize, pageToken, filter,
|
|
156
|
+
listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
157
157
|
if (options === void 0) { options = {}; }
|
|
158
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -179,9 +179,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
179
179
|
if (filter !== undefined) {
|
|
180
180
|
localVarQueryParameter['filter'] = filter;
|
|
181
181
|
}
|
|
182
|
-
if (filters !== undefined) {
|
|
183
|
-
localVarQueryParameter['filters'] = filters;
|
|
184
|
-
}
|
|
185
182
|
if (search !== undefined) {
|
|
186
183
|
localVarQueryParameter['search'] = search;
|
|
187
184
|
}
|
|
@@ -191,6 +188,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
191
188
|
if (expand !== undefined) {
|
|
192
189
|
localVarQueryParameter['expand'] = expand;
|
|
193
190
|
}
|
|
191
|
+
if (filters !== undefined) {
|
|
192
|
+
localVarQueryParameter['filters'] = filters;
|
|
193
|
+
}
|
|
194
194
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
195
195
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
196
196
|
}
|
|
@@ -240,23 +240,23 @@ var ProductsApiFp = function (configuration) {
|
|
|
240
240
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
241
241
|
* @summary List available products
|
|
242
242
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
243
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
243
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
244
244
|
* @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.
|
|
245
245
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
246
|
-
* @param {any} [
|
|
247
|
-
* @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.
|
|
246
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
248
247
|
* @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.
|
|
249
248
|
* @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.
|
|
249
|
+
* @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.
|
|
250
250
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
251
|
* @param {*} [options] Override http request option.
|
|
252
252
|
* @throws {RequiredError}
|
|
253
253
|
*/
|
|
254
|
-
listProducts: function (customerCode, pageSize, pageToken, filter,
|
|
254
|
+
listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
255
255
|
return __awaiter(this, void 0, void 0, function () {
|
|
256
256
|
var localVarAxiosArgs;
|
|
257
257
|
return __generator(this, function (_a) {
|
|
258
258
|
switch (_a.label) {
|
|
259
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter,
|
|
259
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
260
260
|
case 1:
|
|
261
261
|
localVarAxiosArgs = _a.sent();
|
|
262
262
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -290,19 +290,19 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
290
290
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
291
291
|
* @summary List available products
|
|
292
292
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
293
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
293
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
294
294
|
* @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.
|
|
295
295
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
296
|
-
* @param {any} [
|
|
297
|
-
* @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.
|
|
296
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
298
297
|
* @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.
|
|
299
298
|
* @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.
|
|
299
|
+
* @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.
|
|
300
300
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
301
301
|
* @param {*} [options] Override http request option.
|
|
302
302
|
* @throws {RequiredError}
|
|
303
303
|
*/
|
|
304
|
-
listProducts: function (customerCode, pageSize, pageToken, filter,
|
|
305
|
-
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter,
|
|
304
|
+
listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
305
|
+
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
306
306
|
},
|
|
307
307
|
};
|
|
308
308
|
};
|
|
@@ -340,7 +340,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
340
340
|
*/
|
|
341
341
|
ProductsApi.prototype.listProducts = function (requestParameters, options) {
|
|
342
342
|
var _this = this;
|
|
343
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
343
|
+
return (0, exports.ProductsApiFp)(this.configuration).listProducts(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); });
|
|
344
344
|
};
|
|
345
345
|
return ProductsApi;
|
|
346
346
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface LoginClass {
|
|
|
30
30
|
export declare enum Environment {
|
|
31
31
|
Production = "https://apiv2.emil.de",
|
|
32
32
|
Test = "https://apiv2-test.emil.de",
|
|
33
|
+
Staging = "https://apiv2-staging.emil.de",
|
|
33
34
|
Development = "https://apiv2-dev.emil.de",
|
|
34
35
|
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
35
36
|
}
|
|
@@ -55,19 +56,17 @@ export declare class BaseAPI {
|
|
|
55
56
|
private username?;
|
|
56
57
|
private password?;
|
|
57
58
|
private isCustomerToken;
|
|
58
|
-
private permissions?;
|
|
59
59
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
60
60
|
initialize(env?: Environment): Promise<void>;
|
|
61
61
|
private loadCredentials;
|
|
62
62
|
private readConfigFile;
|
|
63
63
|
private readEnvVariables;
|
|
64
64
|
selectEnvironment(env: Environment): void;
|
|
65
|
-
getPermissions(): Array<string>;
|
|
66
65
|
authorize(username: string, password: string): Promise<void>;
|
|
67
66
|
initiateAuthorization(username: string, password: string, tenantSlug: string): Promise<AxiosResponse<InitiateAuthResponseClass>>;
|
|
68
67
|
respondToAuthorizationChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto): Promise<AxiosResponse<RespondToAuthChallengeClass>>;
|
|
69
|
-
refreshTokenTenant(): Promise<
|
|
70
|
-
refreshTokenCustomer(): Promise<
|
|
68
|
+
refreshTokenTenant(): Promise<string>;
|
|
69
|
+
refreshTokenCustomer(): Promise<string>;
|
|
71
70
|
private extractRefreshToken;
|
|
72
71
|
private attachInterceptor;
|
|
73
72
|
}
|