@emilgroup/public-api-sdk 1.40.1-beta.27 → 1.40.1-beta.28
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/address-completions-validations-api.ts +6 -16
- package/api/booking-funnels-api.ts +3 -8
- package/api/documents-api.ts +21 -56
- package/api/health-api.ts +1 -1
- package/api/ibanvalidator-api.ts +3 -8
- package/api/leads-api.ts +24 -64
- package/api/named-ranges-api.ts +3 -8
- package/api/notifications-api.ts +9 -24
- package/api/partners-api.ts +3 -8
- package/api/payments-setup-api.ts +20 -60
- package/api/product-versions-api.ts +12 -32
- package/api/products-api.ts +27 -72
- package/base.ts +54 -310
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/address-completions-validations-api.d.ts +2 -2
- package/dist/api/address-completions-validations-api.js +14 -22
- package/dist/api/booking-funnels-api.d.ts +1 -1
- package/dist/api/booking-funnels-api.js +7 -11
- package/dist/api/documents-api.d.ts +7 -7
- package/dist/api/documents-api.js +53 -93
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +8 -15
- package/dist/api/leads-api.d.ts +8 -8
- package/dist/api/leads-api.js +64 -120
- package/dist/api/named-ranges-api.d.ts +1 -1
- package/dist/api/named-ranges-api.js +7 -11
- package/dist/api/notifications-api.d.ts +3 -3
- package/dist/api/notifications-api.js +24 -45
- package/dist/api/partners-api.d.ts +1 -1
- package/dist/api/partners-api.js +8 -15
- package/dist/api/payments-setup-api.d.ts +4 -4
- package/dist/api/payments-setup-api.js +40 -80
- package/dist/api/product-versions-api.d.ts +4 -4
- package/dist/api/product-versions-api.js +31 -56
- package/dist/api/products-api.d.ts +9 -9
- package/dist/api/products-api.js +68 -119
- package/dist/base.d.ts +0 -33
- package/dist/base.js +72 -308
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/package.json +2 -2
|
@@ -606,7 +606,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
606
606
|
* @throws {RequiredError}
|
|
607
607
|
* @memberof ProductsApi
|
|
608
608
|
*/
|
|
609
|
-
calculateProductFields(requestParameters: ProductsApiCalculateProductFieldsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CalculateProductFieldsResponseClass, any, {}
|
|
609
|
+
calculateProductFields(requestParameters: ProductsApiCalculateProductFieldsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CalculateProductFieldsResponseClass, any, {}>>;
|
|
610
610
|
/**
|
|
611
611
|
* This will create an invoice product.
|
|
612
612
|
* @summary Create the invoice product
|
|
@@ -615,7 +615,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
615
615
|
* @throws {RequiredError}
|
|
616
616
|
* @memberof ProductsApi
|
|
617
617
|
*/
|
|
618
|
-
createEstimatedInvoice(requestParameters: ProductsApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any, {}
|
|
618
|
+
createEstimatedInvoice(requestParameters: ProductsApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any, {}>>;
|
|
619
619
|
/**
|
|
620
620
|
* This will create a custom application for a specific provider.
|
|
621
621
|
* @summary Create the custom application
|
|
@@ -624,7 +624,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
624
624
|
* @throws {RequiredError}
|
|
625
625
|
* @memberof ProductsApi
|
|
626
626
|
*/
|
|
627
|
-
customApplication(requestParameters: ProductsApiCustomApplicationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomApplicationResponseClass, any, {}
|
|
627
|
+
customApplication(requestParameters: ProductsApiCustomApplicationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomApplicationResponseClass, any, {}>>;
|
|
628
628
|
/**
|
|
629
629
|
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
630
630
|
* @summary List insured object types
|
|
@@ -633,7 +633,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
633
633
|
* @throws {RequiredError}
|
|
634
634
|
* @memberof ProductsApi
|
|
635
635
|
*/
|
|
636
|
-
getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectTypeClass[], any, {}
|
|
636
|
+
getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectTypeClass[], any, {}>>;
|
|
637
637
|
/**
|
|
638
638
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
639
639
|
* @summary List insured objects
|
|
@@ -642,7 +642,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
642
642
|
* @throws {RequiredError}
|
|
643
643
|
* @memberof ProductsApi
|
|
644
644
|
*/
|
|
645
|
-
getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectClass[], any, {}
|
|
645
|
+
getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectClass[], any, {}>>;
|
|
646
646
|
/**
|
|
647
647
|
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
648
648
|
* @summary Generate a custom CSS
|
|
@@ -651,7 +651,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
651
651
|
* @throws {RequiredError}
|
|
652
652
|
* @memberof ProductsApi
|
|
653
653
|
*/
|
|
654
|
-
getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomCssResponseClass, any, {}
|
|
654
|
+
getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomCssResponseClass, any, {}>>;
|
|
655
655
|
/**
|
|
656
656
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
657
657
|
* @summary List product factors
|
|
@@ -660,7 +660,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
660
660
|
* @throws {RequiredError}
|
|
661
661
|
* @memberof ProductsApi
|
|
662
662
|
*/
|
|
663
|
-
getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductFactorForVersionClass[], any, {}
|
|
663
|
+
getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductFactorForVersionClass[], any, {}>>;
|
|
664
664
|
/**
|
|
665
665
|
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
666
666
|
* @summary Retrieve the product languages
|
|
@@ -669,7 +669,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
669
669
|
* @throws {RequiredError}
|
|
670
670
|
* @memberof ProductsApi
|
|
671
671
|
*/
|
|
672
|
-
getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguagesResponseClass, any, {}
|
|
672
|
+
getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguagesResponseClass, any, {}>>;
|
|
673
673
|
/**
|
|
674
674
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
675
675
|
* @summary List products
|
|
@@ -678,5 +678,5 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
678
678
|
* @throws {RequiredError}
|
|
679
679
|
* @memberof ProductsApi
|
|
680
680
|
*/
|
|
681
|
-
listProducts(requestParameters?: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsResponseClass, any, {}
|
|
681
|
+
listProducts(requestParameters?: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsResponseClass, any, {}>>;
|
|
682
682
|
}
|
package/dist/api/products-api.js
CHANGED
|
@@ -104,10 +104,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
switch (_b.label) {
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
111
110
|
case 0:
|
|
112
111
|
// verify required parameter 'productCode' is not null or undefined
|
|
113
112
|
(0, common_1.assertParamExists)('calculateProductFields', 'productCode', productCode);
|
|
@@ -125,19 +124,13 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
localVarQueryParameter = {};
|
|
126
125
|
// authentication bearer required
|
|
127
126
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
128
|
case 1:
|
|
133
129
|
// authentication bearer required
|
|
134
130
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
140
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
141
134
|
}
|
|
142
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -164,10 +157,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
164
157
|
createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
|
|
165
158
|
if (options === void 0) { options = {}; }
|
|
166
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
167
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
switch (_b.label) {
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
171
163
|
case 0:
|
|
172
164
|
// verify required parameter 'productCode' is not null or undefined
|
|
173
165
|
(0, common_1.assertParamExists)('createEstimatedInvoice', 'productCode', productCode);
|
|
@@ -185,19 +177,13 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
185
177
|
localVarQueryParameter = {};
|
|
186
178
|
// authentication bearer required
|
|
187
179
|
// http bearer authentication required
|
|
188
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
189
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
190
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
191
|
-
];
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
192
181
|
case 1:
|
|
193
182
|
// authentication bearer required
|
|
194
183
|
// http bearer authentication required
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
199
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
200
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
|
+
_a.sent();
|
|
185
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
201
187
|
}
|
|
202
188
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
203
189
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -224,10 +210,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
224
210
|
customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
|
|
225
211
|
if (options === void 0) { options = {}; }
|
|
226
212
|
return __awaiter(_this, void 0, void 0, function () {
|
|
227
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
switch (_b.label) {
|
|
213
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
+
return __generator(this, function (_a) {
|
|
215
|
+
switch (_a.label) {
|
|
231
216
|
case 0:
|
|
232
217
|
// verify required parameter 'productCode' is not null or undefined
|
|
233
218
|
(0, common_1.assertParamExists)('customApplication', 'productCode', productCode);
|
|
@@ -245,19 +230,13 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
245
230
|
localVarQueryParameter = {};
|
|
246
231
|
// authentication bearer required
|
|
247
232
|
// http bearer authentication required
|
|
248
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
249
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
250
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
251
|
-
];
|
|
233
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
252
234
|
case 1:
|
|
253
235
|
// authentication bearer required
|
|
254
236
|
// http bearer authentication required
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
259
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
260
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
237
|
+
_a.sent();
|
|
238
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
239
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
261
240
|
}
|
|
262
241
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
263
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -283,10 +262,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
283
262
|
getInsuredObjectTypes: function (productCode, authorization, options) {
|
|
284
263
|
if (options === void 0) { options = {}; }
|
|
285
264
|
return __awaiter(_this, void 0, void 0, function () {
|
|
286
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
switch (_b.label) {
|
|
265
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
266
|
+
return __generator(this, function (_a) {
|
|
267
|
+
switch (_a.label) {
|
|
290
268
|
case 0:
|
|
291
269
|
// verify required parameter 'productCode' is not null or undefined
|
|
292
270
|
(0, common_1.assertParamExists)('getInsuredObjectTypes', 'productCode', productCode);
|
|
@@ -302,19 +280,13 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
302
280
|
localVarQueryParameter = {};
|
|
303
281
|
// authentication bearer required
|
|
304
282
|
// http bearer authentication required
|
|
305
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
306
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
307
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
308
|
-
];
|
|
283
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
309
284
|
case 1:
|
|
310
285
|
// authentication bearer required
|
|
311
286
|
// http bearer authentication required
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
316
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
317
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
287
|
+
_a.sent();
|
|
288
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
290
|
}
|
|
319
291
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
292
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -340,10 +312,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
340
312
|
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
341
313
|
if (options === void 0) { options = {}; }
|
|
342
314
|
return __awaiter(_this, void 0, void 0, function () {
|
|
343
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
switch (_b.label) {
|
|
315
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
316
|
+
return __generator(this, function (_a) {
|
|
317
|
+
switch (_a.label) {
|
|
347
318
|
case 0:
|
|
348
319
|
// verify required parameter 'productCode' is not null or undefined
|
|
349
320
|
(0, common_1.assertParamExists)('getInsuredObjects', 'productCode', productCode);
|
|
@@ -363,18 +334,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
363
334
|
case 1:
|
|
364
335
|
// authentication bearer required
|
|
365
336
|
// http bearer authentication required
|
|
366
|
-
|
|
337
|
+
_a.sent();
|
|
367
338
|
if (language !== undefined) {
|
|
368
339
|
localVarQueryParameter['language'] = language;
|
|
369
340
|
}
|
|
370
341
|
if (productVersionId !== undefined) {
|
|
371
342
|
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
372
343
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
376
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
377
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
344
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
345
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
378
346
|
}
|
|
379
347
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
380
348
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -399,10 +367,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
399
367
|
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
400
368
|
if (options === void 0) { options = {}; }
|
|
401
369
|
return __awaiter(_this, void 0, void 0, function () {
|
|
402
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
switch (_b.label) {
|
|
370
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
371
|
+
return __generator(this, function (_a) {
|
|
372
|
+
switch (_a.label) {
|
|
406
373
|
case 0:
|
|
407
374
|
// verify required parameter 'productCode' is not null or undefined
|
|
408
375
|
(0, common_1.assertParamExists)('getProductCustomCss', 'productCode', productCode);
|
|
@@ -422,15 +389,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
422
389
|
case 1:
|
|
423
390
|
// authentication bearer required
|
|
424
391
|
// http bearer authentication required
|
|
425
|
-
|
|
392
|
+
_a.sent();
|
|
426
393
|
if (language !== undefined) {
|
|
427
394
|
localVarQueryParameter['language'] = language;
|
|
428
395
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
432
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
433
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
396
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
397
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
434
398
|
}
|
|
435
399
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
436
400
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -457,10 +421,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
457
421
|
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
458
422
|
if (options === void 0) { options = {}; }
|
|
459
423
|
return __awaiter(_this, void 0, void 0, function () {
|
|
460
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
switch (_b.label) {
|
|
424
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
425
|
+
return __generator(this, function (_a) {
|
|
426
|
+
switch (_a.label) {
|
|
464
427
|
case 0:
|
|
465
428
|
// verify required parameter 'productCode' is not null or undefined
|
|
466
429
|
(0, common_1.assertParamExists)('getProductFactors', 'productCode', productCode);
|
|
@@ -482,7 +445,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
482
445
|
case 1:
|
|
483
446
|
// authentication bearer required
|
|
484
447
|
// http bearer authentication required
|
|
485
|
-
|
|
448
|
+
_a.sent();
|
|
486
449
|
if (allValues !== undefined) {
|
|
487
450
|
localVarQueryParameter['all_values'] = allValues;
|
|
488
451
|
}
|
|
@@ -492,11 +455,8 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
492
455
|
if (productVersionId !== undefined) {
|
|
493
456
|
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
494
457
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
498
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
499
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
458
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
459
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
500
460
|
}
|
|
501
461
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
502
462
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -520,10 +480,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
520
480
|
getProductLanguages: function (productCode, authorization, options) {
|
|
521
481
|
if (options === void 0) { options = {}; }
|
|
522
482
|
return __awaiter(_this, void 0, void 0, function () {
|
|
523
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
switch (_b.label) {
|
|
483
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
484
|
+
return __generator(this, function (_a) {
|
|
485
|
+
switch (_a.label) {
|
|
527
486
|
case 0:
|
|
528
487
|
// verify required parameter 'productCode' is not null or undefined
|
|
529
488
|
(0, common_1.assertParamExists)('getProductLanguages', 'productCode', productCode);
|
|
@@ -539,19 +498,13 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
539
498
|
localVarQueryParameter = {};
|
|
540
499
|
// authentication bearer required
|
|
541
500
|
// http bearer authentication required
|
|
542
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
543
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
544
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
545
|
-
];
|
|
501
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
546
502
|
case 1:
|
|
547
503
|
// authentication bearer required
|
|
548
504
|
// http bearer authentication required
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
553
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
554
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
505
|
+
_a.sent();
|
|
506
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
507
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
555
508
|
}
|
|
556
509
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
557
510
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -581,10 +534,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
581
534
|
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
582
535
|
if (options === void 0) { options = {}; }
|
|
583
536
|
return __awaiter(_this, void 0, void 0, function () {
|
|
584
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
switch (_b.label) {
|
|
537
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
538
|
+
return __generator(this, function (_a) {
|
|
539
|
+
switch (_a.label) {
|
|
588
540
|
case 0:
|
|
589
541
|
localVarPath = "/publicapi/v1/products";
|
|
590
542
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -601,7 +553,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
601
553
|
case 1:
|
|
602
554
|
// authentication bearer required
|
|
603
555
|
// http bearer authentication required
|
|
604
|
-
|
|
556
|
+
_a.sent();
|
|
605
557
|
if (pageSize !== undefined) {
|
|
606
558
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
607
559
|
}
|
|
@@ -623,11 +575,8 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
623
575
|
if (filters !== undefined) {
|
|
624
576
|
localVarQueryParameter['filters'] = filters;
|
|
625
577
|
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
629
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
630
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
578
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
579
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
631
580
|
}
|
|
632
581
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
633
582
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1002,7 +951,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1002
951
|
*/
|
|
1003
952
|
ProductsApi.prototype.calculateProductFields = function (requestParameters, options) {
|
|
1004
953
|
var _this = this;
|
|
1005
|
-
return (0, exports.ProductsApiFp)(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization,
|
|
954
|
+
return (0, exports.ProductsApiFp)(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1006
955
|
};
|
|
1007
956
|
/**
|
|
1008
957
|
* This will create an invoice product.
|
|
@@ -1014,7 +963,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1014
963
|
*/
|
|
1015
964
|
ProductsApi.prototype.createEstimatedInvoice = function (requestParameters, options) {
|
|
1016
965
|
var _this = this;
|
|
1017
|
-
return (0, exports.ProductsApiFp)(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization,
|
|
966
|
+
return (0, exports.ProductsApiFp)(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1018
967
|
};
|
|
1019
968
|
/**
|
|
1020
969
|
* This will create a custom application for a specific provider.
|
|
@@ -1026,7 +975,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1026
975
|
*/
|
|
1027
976
|
ProductsApi.prototype.customApplication = function (requestParameters, options) {
|
|
1028
977
|
var _this = this;
|
|
1029
|
-
return (0, exports.ProductsApiFp)(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization,
|
|
978
|
+
return (0, exports.ProductsApiFp)(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1030
979
|
};
|
|
1031
980
|
/**
|
|
1032
981
|
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -1038,7 +987,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1038
987
|
*/
|
|
1039
988
|
ProductsApi.prototype.getInsuredObjectTypes = function (requestParameters, options) {
|
|
1040
989
|
var _this = this;
|
|
1041
|
-
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjectTypes(requestParameters.productCode, requestParameters.authorization,
|
|
990
|
+
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjectTypes(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1042
991
|
};
|
|
1043
992
|
/**
|
|
1044
993
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -1050,7 +999,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1050
999
|
*/
|
|
1051
1000
|
ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
|
|
1052
1001
|
var _this = this;
|
|
1053
|
-
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId,
|
|
1002
|
+
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1054
1003
|
};
|
|
1055
1004
|
/**
|
|
1056
1005
|
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
@@ -1062,7 +1011,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1062
1011
|
*/
|
|
1063
1012
|
ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
|
|
1064
1013
|
var _this = this;
|
|
1065
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language,
|
|
1014
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1066
1015
|
};
|
|
1067
1016
|
/**
|
|
1068
1017
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -1074,7 +1023,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1074
1023
|
*/
|
|
1075
1024
|
ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
|
|
1076
1025
|
var _this = this;
|
|
1077
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId,
|
|
1026
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1078
1027
|
};
|
|
1079
1028
|
/**
|
|
1080
1029
|
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
@@ -1086,7 +1035,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1086
1035
|
*/
|
|
1087
1036
|
ProductsApi.prototype.getProductLanguages = function (requestParameters, options) {
|
|
1088
1037
|
var _this = this;
|
|
1089
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization,
|
|
1038
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1090
1039
|
};
|
|
1091
1040
|
/**
|
|
1092
1041
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -1099,7 +1048,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1099
1048
|
ProductsApi.prototype.listProducts = function (requestParameters, options) {
|
|
1100
1049
|
var _this = this;
|
|
1101
1050
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1102
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1051
|
+
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1103
1052
|
};
|
|
1104
1053
|
return ProductsApi;
|
|
1105
1054
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -22,19 +22,9 @@ export declare const COLLECTION_FORMATS: {
|
|
|
22
22
|
tsv: string;
|
|
23
23
|
pipes: string;
|
|
24
24
|
};
|
|
25
|
-
export interface SessionClass {
|
|
26
|
-
sub: string;
|
|
27
|
-
username?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
tenantSlug?: string;
|
|
30
|
-
permissions?: string;
|
|
31
|
-
expiresAt?: number;
|
|
32
|
-
}
|
|
33
25
|
export interface LoginClass {
|
|
34
26
|
accessToken: string;
|
|
35
27
|
permissions: string;
|
|
36
|
-
authMode?: string;
|
|
37
|
-
session?: SessionClass;
|
|
38
28
|
}
|
|
39
29
|
export interface SwitchWorkspaceRequest {
|
|
40
30
|
username: string;
|
|
@@ -43,8 +33,6 @@ export interface SwitchWorkspaceRequest {
|
|
|
43
33
|
export interface SwitchWorkspaceResponseClass {
|
|
44
34
|
accessToken: string;
|
|
45
35
|
permissions: string;
|
|
46
|
-
authMode?: string;
|
|
47
|
-
session?: SessionClass;
|
|
48
36
|
}
|
|
49
37
|
export declare enum Environment {
|
|
50
38
|
Production = "https://apiv2.emil.de",
|
|
@@ -75,18 +63,6 @@ export declare class BaseAPI {
|
|
|
75
63
|
protected configuration: Configuration | undefined;
|
|
76
64
|
private tokenData?;
|
|
77
65
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
78
|
-
private sessionAccount;
|
|
79
|
-
private authBasePath;
|
|
80
|
-
private usesSession;
|
|
81
|
-
private useSessionAuth;
|
|
82
|
-
private useHeaderAuth;
|
|
83
|
-
private applyTokenReply;
|
|
84
|
-
private sessionHeaders;
|
|
85
|
-
private withCurrentAuth;
|
|
86
|
-
private canRetryWithToken;
|
|
87
|
-
private canResend;
|
|
88
|
-
private switchToToken;
|
|
89
|
-
private retryWithToken;
|
|
90
66
|
selectEnvironment(env: Environment): void;
|
|
91
67
|
selectBasePath(path: string): void;
|
|
92
68
|
getPermissions(): Array<string>;
|
|
@@ -96,15 +72,6 @@ export declare class BaseAPI {
|
|
|
96
72
|
private storeTokenData;
|
|
97
73
|
loadTokenData(): void;
|
|
98
74
|
cleanTokenData(): void;
|
|
99
|
-
private static readonly REQUEST_OWNER;
|
|
100
|
-
private ownAccount;
|
|
101
|
-
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
|
|
102
|
-
private sentByOtherAccount;
|
|
103
|
-
private sharedRefresh;
|
|
104
|
-
private refreshRunning;
|
|
105
|
-
private static shareRefresh;
|
|
106
|
-
private mayRefreshAfterNetworkError;
|
|
107
|
-
private rejectEndedSession;
|
|
108
75
|
private attachInterceptor;
|
|
109
76
|
}
|
|
110
77
|
/**
|