@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.
- 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 +70 -70
- 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 +56 -56
- package/dist/api/leads-api.js +84 -59
- 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
|
@@ -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 {
|
|
37
|
-
* @param {
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {
|
|
42
|
-
* @param {
|
|
36
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
37
|
+
* @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.
|
|
38
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
39
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
40
|
+
* @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.
|
|
41
|
+
* @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.
|
|
42
|
+
* @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.
|
|
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?:
|
|
47
|
+
listProducts: (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, 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 {
|
|
69
|
-
* @param {
|
|
70
|
-
* @param {
|
|
71
|
-
* @param {
|
|
72
|
-
* @param {
|
|
73
|
-
* @param {
|
|
74
|
-
* @param {
|
|
68
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
69
|
+
* @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.
|
|
70
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
71
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
72
|
+
* @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.
|
|
73
|
+
* @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.
|
|
74
|
+
* @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.
|
|
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?:
|
|
79
|
+
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>>;
|
|
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 {
|
|
101
|
-
* @param {
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
100
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
101
|
+
* @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.
|
|
102
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
103
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
104
|
+
* @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.
|
|
105
|
+
* @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.
|
|
106
|
+
* @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.
|
|
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?:
|
|
111
|
+
listProducts(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
* Request parameters for getProduct operation in ProductsApi.
|
|
@@ -149,46 +149,46 @@ export interface ProductsApiListProductsRequest {
|
|
|
149
149
|
readonly customerCode: string;
|
|
150
150
|
/**
|
|
151
151
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
152
|
-
* @type {
|
|
152
|
+
* @type {number}
|
|
153
153
|
* @memberof ProductsApiListProducts
|
|
154
154
|
*/
|
|
155
|
-
readonly pageSize?:
|
|
155
|
+
readonly pageSize?: number;
|
|
156
156
|
/**
|
|
157
|
-
* 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,
|
|
158
|
-
* @type {
|
|
157
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
158
|
+
* @type {string}
|
|
159
159
|
* @memberof ProductsApiListProducts
|
|
160
160
|
*/
|
|
161
|
-
readonly pageToken?:
|
|
161
|
+
readonly pageToken?: string;
|
|
162
162
|
/**
|
|
163
163
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
164
|
-
* @type {
|
|
164
|
+
* @type {string}
|
|
165
165
|
* @memberof ProductsApiListProducts
|
|
166
166
|
*/
|
|
167
|
-
readonly filter?:
|
|
167
|
+
readonly filter?: string;
|
|
168
168
|
/**
|
|
169
169
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
170
|
-
* @type {
|
|
170
|
+
* @type {string}
|
|
171
171
|
* @memberof ProductsApiListProducts
|
|
172
172
|
*/
|
|
173
|
-
readonly search?:
|
|
173
|
+
readonly search?: string;
|
|
174
174
|
/**
|
|
175
175
|
* 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.
|
|
176
|
-
* @type {
|
|
176
|
+
* @type {string}
|
|
177
177
|
* @memberof ProductsApiListProducts
|
|
178
178
|
*/
|
|
179
|
-
readonly order?:
|
|
179
|
+
readonly order?: string;
|
|
180
180
|
/**
|
|
181
|
-
* 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
|
|
182
|
-
* @type {
|
|
181
|
+
* 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.
|
|
182
|
+
* @type {string}
|
|
183
183
|
* @memberof ProductsApiListProducts
|
|
184
184
|
*/
|
|
185
|
-
readonly expand?:
|
|
185
|
+
readonly expand?: string;
|
|
186
186
|
/**
|
|
187
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 {
|
|
188
|
+
* @type {string}
|
|
189
189
|
* @memberof ProductsApiListProducts
|
|
190
190
|
*/
|
|
191
|
-
readonly filters?:
|
|
191
|
+
readonly filters?: string;
|
|
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
|
@@ -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 ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
105
114
|
* @param {*} [options] Override http request option.
|
|
106
115
|
* @throws {RequiredError}
|
|
107
116
|
*/
|
|
108
|
-
getProduct: function (
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
getProduct: function (productCode_1, customerCode_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([productCode_1, customerCode_1, authorization_1], args_1, true), void 0, function (productCode, customerCode, 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 'productCode' is not null or undefined
|
|
114
127
|
(0, common_1.assertParamExists)('getProduct', 'productCode', productCode);
|
|
@@ -142,21 +155,25 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
142
155
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
143
156
|
* @summary List available products
|
|
144
157
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
145
|
-
* @param {
|
|
146
|
-
* @param {
|
|
147
|
-
* @param {
|
|
148
|
-
* @param {
|
|
149
|
-
* @param {
|
|
150
|
-
* @param {
|
|
151
|
-
* @param {
|
|
158
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
159
|
+
* @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.
|
|
160
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
161
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
162
|
+
* @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.
|
|
163
|
+
* @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.
|
|
164
|
+
* @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.
|
|
152
165
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
166
|
* @param {*} [options] Override http request option.
|
|
154
167
|
* @throws {RequiredError}
|
|
155
168
|
*/
|
|
156
|
-
listProducts: function (
|
|
157
|
-
|
|
158
|
-
|
|
169
|
+
listProducts: function (customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1) {
|
|
170
|
+
var args_1 = [];
|
|
171
|
+
for (var _i = 9; _i < arguments.length; _i++) {
|
|
172
|
+
args_1[_i - 9] = arguments[_i];
|
|
173
|
+
}
|
|
174
|
+
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) {
|
|
159
175
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
+
if (options === void 0) { options = {}; }
|
|
160
177
|
return __generator(this, function (_a) {
|
|
161
178
|
// verify required parameter 'customerCode' is not null or undefined
|
|
162
179
|
(0, common_1.assertParamExists)('listProducts', 'customerCode', customerCode);
|
|
@@ -240,13 +257,13 @@ var ProductsApiFp = function (configuration) {
|
|
|
240
257
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
241
258
|
* @summary List available products
|
|
242
259
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
243
|
-
* @param {
|
|
244
|
-
* @param {
|
|
245
|
-
* @param {
|
|
246
|
-
* @param {
|
|
247
|
-
* @param {
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {
|
|
260
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
261
|
+
* @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.
|
|
262
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
263
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
264
|
+
* @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.
|
|
265
|
+
* @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.
|
|
266
|
+
* @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.
|
|
250
267
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
268
|
* @param {*} [options] Override http request option.
|
|
252
269
|
* @throws {RequiredError}
|
|
@@ -290,13 +307,13 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
290
307
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
291
308
|
* @summary List available products
|
|
292
309
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
293
|
-
* @param {
|
|
294
|
-
* @param {
|
|
295
|
-
* @param {
|
|
296
|
-
* @param {
|
|
297
|
-
* @param {
|
|
298
|
-
* @param {
|
|
299
|
-
* @param {
|
|
310
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
311
|
+
* @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.
|
|
312
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
313
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
314
|
+
* @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.
|
|
315
|
+
* @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.
|
|
316
|
+
* @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.
|
|
300
317
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
301
318
|
* @param {*} [options] Override http request option.
|
|
302
319
|
* @throws {RequiredError}
|
package/dist/base.js
CHANGED
|
@@ -54,13 +54,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
54
54
|
}) : function(o, v) {
|
|
55
55
|
o["default"] = v;
|
|
56
56
|
});
|
|
57
|
-
var __importStar = (this && this.__importStar) || function (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
57
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
58
|
+
var ownKeys = function(o) {
|
|
59
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
60
|
+
var ar = [];
|
|
61
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
62
|
+
return ar;
|
|
63
|
+
};
|
|
64
|
+
return ownKeys(o);
|
|
65
|
+
};
|
|
66
|
+
return function (mod) {
|
|
67
|
+
if (mod && mod.__esModule) return mod;
|
|
68
|
+
var result = {};
|
|
69
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
70
|
+
__setModuleDefault(result, mod);
|
|
71
|
+
return result;
|
|
72
|
+
};
|
|
73
|
+
})();
|
|
64
74
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
65
75
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
66
76
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -71,8 +81,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
71
81
|
});
|
|
72
82
|
};
|
|
73
83
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
74
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
75
|
-
return g =
|
|
84
|
+
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);
|
|
85
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
76
86
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
77
87
|
function step(op) {
|
|
78
88
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -101,7 +111,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
101
111
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
102
112
|
};
|
|
103
113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104
|
-
exports.RequiredError = exports.BaseAPI = exports.
|
|
114
|
+
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
115
|
+
exports.resetRetry = resetRetry;
|
|
105
116
|
var configuration_1 = require("./configuration");
|
|
106
117
|
// Some imports not used depending on template conditions
|
|
107
118
|
// @ts-ignore
|
|
@@ -132,13 +143,12 @@ var Environment;
|
|
|
132
143
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
133
144
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
134
145
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
135
|
-
})(Environment
|
|
146
|
+
})(Environment || (exports.Environment = Environment = {}));
|
|
136
147
|
var _retry_count = 0;
|
|
137
148
|
var _retry = null;
|
|
138
149
|
function resetRetry() {
|
|
139
150
|
_retry_count = 0;
|
|
140
151
|
}
|
|
141
|
-
exports.resetRetry = resetRetry;
|
|
142
152
|
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
143
153
|
/**
|
|
144
154
|
*
|
|
@@ -163,9 +173,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
163
173
|
}
|
|
164
174
|
this.attachInterceptor(axios);
|
|
165
175
|
}
|
|
166
|
-
BaseAPI.prototype.initialize = function (
|
|
167
|
-
|
|
168
|
-
|
|
176
|
+
BaseAPI.prototype.initialize = function () {
|
|
177
|
+
return __awaiter(this, arguments, void 0, function (env) {
|
|
178
|
+
if (env === void 0) { env = Environment.Production; }
|
|
169
179
|
return __generator(this, function (_a) {
|
|
170
180
|
switch (_a.label) {
|
|
171
181
|
case 0:
|
package/dist/common.d.ts
CHANGED
|
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
-
return g =
|
|
36
|
+
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);
|
|
37
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -141,7 +141,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
141
141
|
_b.label = 4;
|
|
142
142
|
case 4:
|
|
143
143
|
accessToken = _a;
|
|
144
|
-
object["Authorization"] =
|
|
144
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
145
145
|
_b.label = 5;
|
|
146
146
|
case 5: return [2 /*return*/];
|
|
147
147
|
}
|
|
@@ -171,7 +171,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
171
171
|
_b.label = 4;
|
|
172
172
|
case 4:
|
|
173
173
|
localVarAccessTokenValue = _a;
|
|
174
|
-
object["Authorization"] =
|
|
174
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
175
175
|
_b.label = 5;
|
|
176
176
|
case 5: return [2 /*return*/];
|
|
177
177
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -95,4 +95,10 @@ export declare class Configuration {
|
|
|
95
95
|
* @return True if the given MIME is JSON, false otherwise.
|
|
96
96
|
*/
|
|
97
97
|
isJsonMime(mime: string): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Returns "Bearer" token.
|
|
100
|
+
* @param token - access token.
|
|
101
|
+
* @return Bearer token.
|
|
102
|
+
*/
|
|
103
|
+
getBearerToken(token?: string): string;
|
|
98
104
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -40,6 +40,14 @@ var Configuration = /** @class */ (function () {
|
|
|
40
40
|
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
41
41
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Returns "Bearer" token.
|
|
45
|
+
* @param token - access token.
|
|
46
|
+
* @return Bearer token.
|
|
47
|
+
*/
|
|
48
|
+
Configuration.prototype.getBearerToken = function (token) {
|
|
49
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
50
|
+
};
|
|
43
51
|
return Configuration;
|
|
44
52
|
}());
|
|
45
53
|
exports.Configuration = Configuration;
|
|
@@ -77,6 +77,54 @@ export interface PolicyClass {
|
|
|
77
77
|
* @memberof PolicyClass
|
|
78
78
|
*/
|
|
79
79
|
'leadCode'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Product version ID
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof PolicyClass
|
|
84
|
+
*/
|
|
85
|
+
'productVersionId': number;
|
|
86
|
+
/**
|
|
87
|
+
* Product ID
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof PolicyClass
|
|
90
|
+
*/
|
|
91
|
+
'productId': number;
|
|
92
|
+
/**
|
|
93
|
+
* Policy start date
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof PolicyClass
|
|
96
|
+
*/
|
|
97
|
+
'policyStartDate': string;
|
|
98
|
+
/**
|
|
99
|
+
* Policy holder name
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof PolicyClass
|
|
102
|
+
*/
|
|
103
|
+
'holder': string;
|
|
104
|
+
/**
|
|
105
|
+
* Identifier of the user who created the record.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof PolicyClass
|
|
108
|
+
*/
|
|
109
|
+
'createdBy': string;
|
|
110
|
+
/**
|
|
111
|
+
* Identifier of the user who last updated the record.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof PolicyClass
|
|
114
|
+
*/
|
|
115
|
+
'updatedBy': string;
|
|
116
|
+
/**
|
|
117
|
+
* Product name
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof PolicyClass
|
|
120
|
+
*/
|
|
121
|
+
'productName': string;
|
|
122
|
+
/**
|
|
123
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof PolicyClass
|
|
126
|
+
*/
|
|
127
|
+
'productSlug': string;
|
|
80
128
|
/**
|
|
81
129
|
* Organization name.
|
|
82
130
|
* @type {string}
|
package/models/policy-class.ts
CHANGED
|
@@ -82,6 +82,54 @@ export interface PolicyClass {
|
|
|
82
82
|
* @memberof PolicyClass
|
|
83
83
|
*/
|
|
84
84
|
'leadCode'?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Product version ID
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof PolicyClass
|
|
89
|
+
*/
|
|
90
|
+
'productVersionId': number;
|
|
91
|
+
/**
|
|
92
|
+
* Product ID
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof PolicyClass
|
|
95
|
+
*/
|
|
96
|
+
'productId': number;
|
|
97
|
+
/**
|
|
98
|
+
* Policy start date
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof PolicyClass
|
|
101
|
+
*/
|
|
102
|
+
'policyStartDate': string;
|
|
103
|
+
/**
|
|
104
|
+
* Policy holder name
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof PolicyClass
|
|
107
|
+
*/
|
|
108
|
+
'holder': string;
|
|
109
|
+
/**
|
|
110
|
+
* Identifier of the user who created the record.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof PolicyClass
|
|
113
|
+
*/
|
|
114
|
+
'createdBy': string;
|
|
115
|
+
/**
|
|
116
|
+
* Identifier of the user who last updated the record.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof PolicyClass
|
|
119
|
+
*/
|
|
120
|
+
'updatedBy': string;
|
|
121
|
+
/**
|
|
122
|
+
* Product name
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof PolicyClass
|
|
125
|
+
*/
|
|
126
|
+
'productName': string;
|
|
127
|
+
/**
|
|
128
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof PolicyClass
|
|
131
|
+
*/
|
|
132
|
+
'productSlug': string;
|
|
85
133
|
/**
|
|
86
134
|
* Organization name.
|
|
87
135
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/customer-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.1-beta.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/customer-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^
|
|
21
|
+
"axios": "^1.9.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
27
|
-
"typescript": "^
|
|
26
|
+
"@types/node": "^22.15.18",
|
|
27
|
+
"typescript": "^5.8"
|
|
28
28
|
}
|
|
29
29
|
}
|