@emilgroup/customer-sdk-node 1.46.0 → 1.46.1-beta.1
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/README.md +2 -2
- package/api/claims-api.ts +40 -40
- package/api/customers-api.ts +40 -40
- package/api/documents-api.ts +40 -40
- package/api/invites-api.ts +4 -4
- package/api/invoices-api.ts +40 -40
- package/api/leads-api.ts +40 -40
- package/api/policies-api.ts +40 -40
- package/api/products-api.ts +40 -40
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/authentication-api.js +60 -23
- package/dist/api/claims-api.d.ts +40 -40
- package/dist/api/claims-api.js +67 -38
- package/dist/api/customers-api.d.ts +40 -40
- package/dist/api/customers-api.js +74 -41
- package/dist/api/default-api.js +18 -5
- package/dist/api/documents-api.d.ts +43 -43
- package/dist/api/documents-api.js +53 -32
- package/dist/api/invites-api.d.ts +4 -4
- package/dist/api/invites-api.js +43 -18
- package/dist/api/invoices-api.d.ts +40 -40
- package/dist/api/invoices-api.js +39 -26
- package/dist/api/leads-api.d.ts +40 -40
- package/dist/api/leads-api.js +60 -35
- package/dist/api/payments-api.js +25 -8
- package/dist/api/policies-api.d.ts +40 -40
- package/dist/api/policies-api.js +81 -44
- package/dist/api/products-api.d.ts +40 -40
- package/dist/api/products-api.js +46 -29
- package/dist/base.js +25 -15
- package/dist/common.d.ts +1 -1
- package/dist/common.js +4 -4
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/policy-class.d.ts +48 -0
- package/models/policy-class.ts +48 -0
- package/package.json +4 -4
- package/tsconfig.json +1 -0
package/api/products-api.ts
CHANGED
|
@@ -83,18 +83,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
83
83
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
84
84
|
* @summary List available products
|
|
85
85
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
90
|
-
* @param {
|
|
91
|
-
* @param {
|
|
92
|
-
* @param {
|
|
86
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
87
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
88
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
89
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
90
|
+
* @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.
|
|
91
|
+
* @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.
|
|
92
|
+
* @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.
|
|
93
93
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
94
94
|
* @param {*} [options] Override http request option.
|
|
95
95
|
* @throws {RequiredError}
|
|
96
96
|
*/
|
|
97
|
-
listProducts: async (customerCode: string, pageSize?:
|
|
97
|
+
listProducts: async (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
98
|
// verify required parameter 'customerCode' is not null or undefined
|
|
99
99
|
assertParamExists('listProducts', 'customerCode', customerCode)
|
|
100
100
|
const localVarPath = `/v1/customers/{customerCode}/products`
|
|
@@ -182,18 +182,18 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
182
182
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
183
183
|
* @summary List available products
|
|
184
184
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {
|
|
188
|
-
* @param {
|
|
189
|
-
* @param {
|
|
190
|
-
* @param {
|
|
191
|
-
* @param {
|
|
185
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
188
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
|
+
* @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.
|
|
190
|
+
* @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.
|
|
191
|
+
* @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.
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
async listProducts(customerCode: string, pageSize?:
|
|
196
|
+
async listProducts(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<ListProductsResponseClass>> {
|
|
197
197
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
198
198
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
199
199
|
},
|
|
@@ -223,18 +223,18 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
223
223
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
224
224
|
* @summary List available products
|
|
225
225
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
226
|
-
* @param {
|
|
227
|
-
* @param {
|
|
228
|
-
* @param {
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {
|
|
231
|
-
* @param {
|
|
232
|
-
* @param {
|
|
226
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
227
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
228
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
229
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
230
|
+
* @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.
|
|
231
|
+
* @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.
|
|
232
|
+
* @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.
|
|
233
233
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
234
234
|
* @param {*} [options] Override http request option.
|
|
235
235
|
* @throws {RequiredError}
|
|
236
236
|
*/
|
|
237
|
-
listProducts(customerCode: string, pageSize?:
|
|
237
|
+
listProducts(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
238
238
|
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
239
239
|
},
|
|
240
240
|
};
|
|
@@ -283,52 +283,52 @@ export interface ProductsApiListProductsRequest {
|
|
|
283
283
|
|
|
284
284
|
/**
|
|
285
285
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
286
|
-
* @type {
|
|
286
|
+
* @type {number}
|
|
287
287
|
* @memberof ProductsApiListProducts
|
|
288
288
|
*/
|
|
289
|
-
readonly pageSize?:
|
|
289
|
+
readonly pageSize?: number
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
* 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,
|
|
293
|
-
* @type {
|
|
292
|
+
* 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.
|
|
293
|
+
* @type {string}
|
|
294
294
|
* @memberof ProductsApiListProducts
|
|
295
295
|
*/
|
|
296
|
-
readonly pageToken?:
|
|
296
|
+
readonly pageToken?: string
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
300
|
-
* @type {
|
|
300
|
+
* @type {string}
|
|
301
301
|
* @memberof ProductsApiListProducts
|
|
302
302
|
*/
|
|
303
|
-
readonly filter?:
|
|
303
|
+
readonly filter?: string
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
307
|
-
* @type {
|
|
307
|
+
* @type {string}
|
|
308
308
|
* @memberof ProductsApiListProducts
|
|
309
309
|
*/
|
|
310
|
-
readonly search?:
|
|
310
|
+
readonly search?: string
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
314
|
-
* @type {
|
|
314
|
+
* @type {string}
|
|
315
315
|
* @memberof ProductsApiListProducts
|
|
316
316
|
*/
|
|
317
|
-
readonly order?:
|
|
317
|
+
readonly order?: string
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* 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
|
|
321
|
-
* @type {
|
|
320
|
+
* 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.
|
|
321
|
+
* @type {string}
|
|
322
322
|
* @memberof ProductsApiListProducts
|
|
323
323
|
*/
|
|
324
|
-
readonly expand?:
|
|
324
|
+
readonly expand?: string
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
327
|
* 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.
|
|
328
|
-
* @type {
|
|
328
|
+
* @type {string}
|
|
329
329
|
* @memberof ProductsApiListProducts
|
|
330
330
|
*/
|
|
331
|
-
readonly filters?:
|
|
331
|
+
readonly filters?: string
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
package/base.ts
CHANGED
|
@@ -372,7 +372,7 @@ export class BaseAPI {
|
|
|
372
372
|
* @extends {Error}
|
|
373
373
|
*/
|
|
374
374
|
export class RequiredError extends Error {
|
|
375
|
-
name: "RequiredError" = "RequiredError";
|
|
375
|
+
override name: "RequiredError" = "RequiredError";
|
|
376
376
|
constructor(public field: string, msg?: string) {
|
|
377
377
|
super(msg);
|
|
378
378
|
}
|
package/common.ts
CHANGED
|
@@ -67,7 +67,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
67
67
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
68
68
|
? await configuration.accessToken()
|
|
69
69
|
: await configuration.accessToken;
|
|
70
|
-
object["Authorization"] =
|
|
70
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -80,7 +80,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
80
80
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
81
81
|
? await configuration.accessToken(name, scopes)
|
|
82
82
|
: await configuration.accessToken;
|
|
83
|
-
object["Authorization"] =
|
|
83
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
package/configuration.ts
CHANGED
|
@@ -115,4 +115,13 @@ export class Configuration {
|
|
|
115
115
|
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
116
116
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Returns "Bearer" token.
|
|
121
|
+
* @param token - access token.
|
|
122
|
+
* @return Bearer token.
|
|
123
|
+
*/
|
|
124
|
+
public getBearerToken(token?: string): string {
|
|
125
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
126
|
+
}
|
|
118
127
|
}
|
|
@@ -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 =
|
|
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
|
};
|
|
@@ -105,10 +114,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
105
114
|
* @param {*} [options] Override http request option.
|
|
106
115
|
* @throws {RequiredError}
|
|
107
116
|
*/
|
|
108
|
-
changePassword: function (
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
changePassword: function (customerCode_1, changePasswordRequestDto_1, authorization_1) {
|
|
118
|
+
var args_1 = [];
|
|
119
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
120
|
+
args_1[_i - 3] = arguments[_i];
|
|
121
|
+
}
|
|
122
|
+
return __awaiter(_this, __spreadArray([customerCode_1, changePasswordRequestDto_1, authorization_1], args_1, true), void 0, function (customerCode, changePasswordRequestDto, authorization, options) {
|
|
111
123
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
124
|
+
if (options === void 0) { options = {}; }
|
|
112
125
|
return __generator(this, function (_a) {
|
|
113
126
|
// verify required parameter 'customerCode' is not null or undefined
|
|
114
127
|
(0, common_1.assertParamExists)('changePassword', 'customerCode', customerCode);
|
|
@@ -146,10 +159,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
146
159
|
* @param {*} [options] Override http request option.
|
|
147
160
|
* @throws {RequiredError}
|
|
148
161
|
*/
|
|
149
|
-
forgotPassword: function (
|
|
150
|
-
|
|
151
|
-
|
|
162
|
+
forgotPassword: function (forgotPasswordRequestDto_1) {
|
|
163
|
+
var args_1 = [];
|
|
164
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
165
|
+
args_1[_i - 1] = arguments[_i];
|
|
166
|
+
}
|
|
167
|
+
return __awaiter(_this, __spreadArray([forgotPasswordRequestDto_1], args_1, true), void 0, function (forgotPasswordRequestDto, options) {
|
|
152
168
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
169
|
+
if (options === void 0) { options = {}; }
|
|
153
170
|
return __generator(this, function (_a) {
|
|
154
171
|
// verify required parameter 'forgotPasswordRequestDto' is not null or undefined
|
|
155
172
|
(0, common_1.assertParamExists)('forgotPassword', 'forgotPasswordRequestDto', forgotPasswordRequestDto);
|
|
@@ -181,10 +198,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
181
198
|
* @param {*} [options] Override http request option.
|
|
182
199
|
* @throws {RequiredError}
|
|
183
200
|
*/
|
|
184
|
-
initiateAuth: function (
|
|
185
|
-
|
|
186
|
-
|
|
201
|
+
initiateAuth: function (initiateAuthRequestDto_1) {
|
|
202
|
+
var args_1 = [];
|
|
203
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
204
|
+
args_1[_i - 1] = arguments[_i];
|
|
205
|
+
}
|
|
206
|
+
return __awaiter(_this, __spreadArray([initiateAuthRequestDto_1], args_1, true), void 0, function (initiateAuthRequestDto, options) {
|
|
187
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
208
|
+
if (options === void 0) { options = {}; }
|
|
188
209
|
return __generator(this, function (_a) {
|
|
189
210
|
// verify required parameter 'initiateAuthRequestDto' is not null or undefined
|
|
190
211
|
(0, common_1.assertParamExists)('initiateAuth', 'initiateAuthRequestDto', initiateAuthRequestDto);
|
|
@@ -217,10 +238,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
217
238
|
* @param {*} [options] Override http request option.
|
|
218
239
|
* @throws {RequiredError}
|
|
219
240
|
*/
|
|
220
|
-
refreshToken: function (
|
|
221
|
-
|
|
222
|
-
|
|
241
|
+
refreshToken: function (refreshTokenDto_1, cookie_1) {
|
|
242
|
+
var args_1 = [];
|
|
243
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
244
|
+
args_1[_i - 2] = arguments[_i];
|
|
245
|
+
}
|
|
246
|
+
return __awaiter(_this, __spreadArray([refreshTokenDto_1, cookie_1], args_1, true), void 0, function (refreshTokenDto, cookie, options) {
|
|
223
247
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
248
|
+
if (options === void 0) { options = {}; }
|
|
224
249
|
return __generator(this, function (_a) {
|
|
225
250
|
// verify required parameter 'refreshTokenDto' is not null or undefined
|
|
226
251
|
(0, common_1.assertParamExists)('refreshToken', 'refreshTokenDto', refreshTokenDto);
|
|
@@ -255,10 +280,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
255
280
|
* @param {*} [options] Override http request option.
|
|
256
281
|
* @throws {RequiredError}
|
|
257
282
|
*/
|
|
258
|
-
resetPassword: function (
|
|
259
|
-
|
|
260
|
-
|
|
283
|
+
resetPassword: function (resetPasswordByCustomerRequestDto_1) {
|
|
284
|
+
var args_1 = [];
|
|
285
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
286
|
+
args_1[_i - 1] = arguments[_i];
|
|
287
|
+
}
|
|
288
|
+
return __awaiter(_this, __spreadArray([resetPasswordByCustomerRequestDto_1], args_1, true), void 0, function (resetPasswordByCustomerRequestDto, options) {
|
|
261
289
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
290
|
+
if (options === void 0) { options = {}; }
|
|
262
291
|
return __generator(this, function (_a) {
|
|
263
292
|
// verify required parameter 'resetPasswordByCustomerRequestDto' is not null or undefined
|
|
264
293
|
(0, common_1.assertParamExists)('resetPassword', 'resetPasswordByCustomerRequestDto', resetPasswordByCustomerRequestDto);
|
|
@@ -290,10 +319,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
290
319
|
* @param {*} [options] Override http request option.
|
|
291
320
|
* @throws {RequiredError}
|
|
292
321
|
*/
|
|
293
|
-
respondToAuthChallenge: function (
|
|
294
|
-
|
|
295
|
-
|
|
322
|
+
respondToAuthChallenge: function (respondToAuthChallengeRequestDto_1) {
|
|
323
|
+
var args_1 = [];
|
|
324
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
325
|
+
args_1[_i - 1] = arguments[_i];
|
|
326
|
+
}
|
|
327
|
+
return __awaiter(_this, __spreadArray([respondToAuthChallengeRequestDto_1], args_1, true), void 0, function (respondToAuthChallengeRequestDto, options) {
|
|
296
328
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
if (options === void 0) { options = {}; }
|
|
297
330
|
return __generator(this, function (_a) {
|
|
298
331
|
// verify required parameter 'respondToAuthChallengeRequestDto' is not null or undefined
|
|
299
332
|
(0, common_1.assertParamExists)('respondToAuthChallenge', 'respondToAuthChallengeRequestDto', respondToAuthChallengeRequestDto);
|
|
@@ -325,10 +358,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
325
358
|
* @param {*} [options] Override http request option.
|
|
326
359
|
* @throws {RequiredError}
|
|
327
360
|
*/
|
|
328
|
-
verifyResetPasswordToken: function (
|
|
329
|
-
|
|
330
|
-
|
|
361
|
+
verifyResetPasswordToken: function (resetToken_1) {
|
|
362
|
+
var args_1 = [];
|
|
363
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
364
|
+
args_1[_i - 1] = arguments[_i];
|
|
365
|
+
}
|
|
366
|
+
return __awaiter(_this, __spreadArray([resetToken_1], args_1, true), void 0, function (resetToken, options) {
|
|
331
367
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
368
|
+
if (options === void 0) { options = {}; }
|
|
332
369
|
return __generator(this, function (_a) {
|
|
333
370
|
// verify required parameter 'resetToken' is not null or undefined
|
|
334
371
|
(0, common_1.assertParamExists)('verifyResetPasswordToken', 'resetToken', resetToken);
|
package/dist/api/claims-api.d.ts
CHANGED
|
@@ -50,17 +50,17 @@ export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
50
50
|
* @summary List claims
|
|
51
51
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
52
52
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
-
* @param {
|
|
54
|
-
* @param {
|
|
55
|
-
* @param {
|
|
56
|
-
* @param {
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {
|
|
53
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
54
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
55
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
56
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
57
|
+
* @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.
|
|
58
|
+
* @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.
|
|
59
|
+
* @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.
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
*/
|
|
63
|
-
listCustomerClaims: (customerCode: string, authorization?: string, pageSize?:
|
|
63
|
+
listCustomerClaims: (customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
64
|
/**
|
|
65
65
|
* Update claim for customer.
|
|
66
66
|
* @summary Update claim
|
|
@@ -114,17 +114,17 @@ export declare const ClaimsApiFp: (configuration?: Configuration) => {
|
|
|
114
114
|
* @summary List claims
|
|
115
115
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
116
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
-
* @param {
|
|
118
|
-
* @param {
|
|
119
|
-
* @param {
|
|
120
|
-
* @param {
|
|
121
|
-
* @param {
|
|
122
|
-
* @param {
|
|
123
|
-
* @param {
|
|
117
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
121
|
+
* @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.
|
|
122
|
+
* @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.
|
|
123
|
+
* @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.
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
listCustomerClaims(customerCode: string, authorization?: string, pageSize?:
|
|
127
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>>;
|
|
128
128
|
/**
|
|
129
129
|
* Update claim for customer.
|
|
130
130
|
* @summary Update claim
|
|
@@ -178,17 +178,17 @@ export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?
|
|
|
178
178
|
* @summary List claims
|
|
179
179
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
180
180
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
181
|
-
* @param {
|
|
182
|
-
* @param {
|
|
183
|
-
* @param {
|
|
184
|
-
* @param {
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {
|
|
181
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
182
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
183
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
184
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
185
|
+
* @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.
|
|
186
|
+
* @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.
|
|
187
|
+
* @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.
|
|
188
188
|
* @param {*} [options] Override http request option.
|
|
189
189
|
* @throws {RequiredError}
|
|
190
190
|
*/
|
|
191
|
-
listCustomerClaims(customerCode: string, authorization?: string, pageSize?:
|
|
191
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCustomerClaimsResponseClass>;
|
|
192
192
|
/**
|
|
193
193
|
* Update claim for customer.
|
|
194
194
|
* @summary Update claim
|
|
@@ -282,46 +282,46 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
282
282
|
readonly authorization?: string;
|
|
283
283
|
/**
|
|
284
284
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
285
|
-
* @type {
|
|
285
|
+
* @type {number}
|
|
286
286
|
* @memberof ClaimsApiListCustomerClaims
|
|
287
287
|
*/
|
|
288
|
-
readonly pageSize?:
|
|
288
|
+
readonly pageSize?: number;
|
|
289
289
|
/**
|
|
290
|
-
* 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,
|
|
291
|
-
* @type {
|
|
290
|
+
* 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.
|
|
291
|
+
* @type {string}
|
|
292
292
|
* @memberof ClaimsApiListCustomerClaims
|
|
293
293
|
*/
|
|
294
|
-
readonly pageToken?:
|
|
294
|
+
readonly pageToken?: string;
|
|
295
295
|
/**
|
|
296
296
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
297
|
-
* @type {
|
|
297
|
+
* @type {string}
|
|
298
298
|
* @memberof ClaimsApiListCustomerClaims
|
|
299
299
|
*/
|
|
300
|
-
readonly filter?:
|
|
300
|
+
readonly filter?: string;
|
|
301
301
|
/**
|
|
302
302
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
303
|
-
* @type {
|
|
303
|
+
* @type {string}
|
|
304
304
|
* @memberof ClaimsApiListCustomerClaims
|
|
305
305
|
*/
|
|
306
|
-
readonly search?:
|
|
306
|
+
readonly search?: string;
|
|
307
307
|
/**
|
|
308
308
|
* 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.
|
|
309
|
-
* @type {
|
|
309
|
+
* @type {string}
|
|
310
310
|
* @memberof ClaimsApiListCustomerClaims
|
|
311
311
|
*/
|
|
312
|
-
readonly order?:
|
|
312
|
+
readonly order?: string;
|
|
313
313
|
/**
|
|
314
|
-
* 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
|
|
315
|
-
* @type {
|
|
314
|
+
* 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.
|
|
315
|
+
* @type {string}
|
|
316
316
|
* @memberof ClaimsApiListCustomerClaims
|
|
317
317
|
*/
|
|
318
|
-
readonly expand?:
|
|
318
|
+
readonly expand?: string;
|
|
319
319
|
/**
|
|
320
320
|
* 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.
|
|
321
|
-
* @type {
|
|
321
|
+
* @type {string}
|
|
322
322
|
* @memberof ClaimsApiListCustomerClaims
|
|
323
323
|
*/
|
|
324
|
-
readonly filters?:
|
|
324
|
+
readonly filters?: string;
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* Request parameters for updateCustomerClaim operation in ClaimsApi.
|