@emilgroup/public-api-sdk 1.40.1-beta.7 → 1.40.1-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +20 -6
- package/api/products-api.ts +195 -22
- package/dist/api/booking-funnels-api.d.ts +12 -3
- package/dist/api/booking-funnels-api.js +12 -6
- package/dist/api/products-api.d.ts +114 -13
- package/dist/api/products-api.js +144 -22
- package/dist/models/get-product-languages-response-class.d.ts +30 -0
- package/dist/models/get-product-languages-response-class.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/product-field-class.d.ts +18 -0
- package/dist/models/product-version-class.d.ts +6 -0
- package/models/get-product-languages-response-class.ts +36 -0
- package/models/index.ts +1 -0
- package/models/partner-class.ts +6 -0
- package/models/product-field-class.ts +18 -0
- package/models/product-version-class.ts +6 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ import { CreateCustomApplicationResponseClass } from '../models';
|
|
|
19
19
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
20
20
|
import { CreateEstimatedInvoiceResponseClass } from '../models';
|
|
21
21
|
import { GetCustomCssResponseClass } from '../models';
|
|
22
|
+
import { GetProductLanguagesResponseClass } from '../models';
|
|
22
23
|
import { InsuredObjectClass } from '../models';
|
|
23
24
|
import { InsuredObjectTypeClass } from '../models';
|
|
24
25
|
import { ListProductsResponseClass } from '../models';
|
|
@@ -72,29 +73,43 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
72
73
|
* @summary List insured objects
|
|
73
74
|
* @param {string} productCode
|
|
74
75
|
* @param {string} [authorization] Bearer Token
|
|
76
|
+
* @param {string} [language]
|
|
77
|
+
* @param {number} [productVersionId]
|
|
75
78
|
* @param {*} [options] Override http request option.
|
|
76
79
|
* @throws {RequiredError}
|
|
77
80
|
*/
|
|
78
|
-
getInsuredObjects: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
|
+
getInsuredObjects: (productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
82
|
/**
|
|
80
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
83
|
+
* 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.
|
|
81
84
|
* @summary Generate a custom CSS
|
|
82
85
|
* @param {string} productCode
|
|
83
86
|
* @param {string} [authorization] Bearer Token
|
|
87
|
+
* @param {string} [language]
|
|
84
88
|
* @param {*} [options] Override http request option.
|
|
85
89
|
* @throws {RequiredError}
|
|
86
90
|
*/
|
|
87
|
-
getProductCustomCss: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
|
+
getProductCustomCss: (productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
88
92
|
/**
|
|
89
93
|
* 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.
|
|
90
94
|
* @summary List product factors
|
|
91
95
|
* @param {string} productCode
|
|
92
96
|
* @param {string} allValues
|
|
93
97
|
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {string} [language]
|
|
99
|
+
* @param {number} [productVersionId]
|
|
94
100
|
* @param {*} [options] Override http request option.
|
|
95
101
|
* @throws {RequiredError}
|
|
96
102
|
*/
|
|
97
|
-
getProductFactors: (productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
103
|
+
getProductFactors: (productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
104
|
+
/**
|
|
105
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
106
|
+
* @summary Retrieve the product languages
|
|
107
|
+
* @param {string} productCode
|
|
108
|
+
* @param {string} [authorization] Bearer Token
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
getProductLanguages: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
98
113
|
/**
|
|
99
114
|
* 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.
|
|
100
115
|
* @summary List products
|
|
@@ -160,29 +175,43 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
160
175
|
* @summary List insured objects
|
|
161
176
|
* @param {string} productCode
|
|
162
177
|
* @param {string} [authorization] Bearer Token
|
|
178
|
+
* @param {string} [language]
|
|
179
|
+
* @param {number} [productVersionId]
|
|
163
180
|
* @param {*} [options] Override http request option.
|
|
164
181
|
* @throws {RequiredError}
|
|
165
182
|
*/
|
|
166
|
-
getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
|
|
183
|
+
getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
|
|
167
184
|
/**
|
|
168
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
185
|
+
* 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.
|
|
169
186
|
* @summary Generate a custom CSS
|
|
170
187
|
* @param {string} productCode
|
|
171
188
|
* @param {string} [authorization] Bearer Token
|
|
189
|
+
* @param {string} [language]
|
|
172
190
|
* @param {*} [options] Override http request option.
|
|
173
191
|
* @throws {RequiredError}
|
|
174
192
|
*/
|
|
175
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>>;
|
|
193
|
+
getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>>;
|
|
176
194
|
/**
|
|
177
195
|
* 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.
|
|
178
196
|
* @summary List product factors
|
|
179
197
|
* @param {string} productCode
|
|
180
198
|
* @param {string} allValues
|
|
181
199
|
* @param {string} [authorization] Bearer Token
|
|
200
|
+
* @param {string} [language]
|
|
201
|
+
* @param {number} [productVersionId]
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>>;
|
|
206
|
+
/**
|
|
207
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
208
|
+
* @summary Retrieve the product languages
|
|
209
|
+
* @param {string} productCode
|
|
210
|
+
* @param {string} [authorization] Bearer Token
|
|
182
211
|
* @param {*} [options] Override http request option.
|
|
183
212
|
* @throws {RequiredError}
|
|
184
213
|
*/
|
|
185
|
-
|
|
214
|
+
getProductLanguages(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguagesResponseClass>>;
|
|
186
215
|
/**
|
|
187
216
|
* 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.
|
|
188
217
|
* @summary List products
|
|
@@ -248,29 +277,43 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
248
277
|
* @summary List insured objects
|
|
249
278
|
* @param {string} productCode
|
|
250
279
|
* @param {string} [authorization] Bearer Token
|
|
280
|
+
* @param {string} [language]
|
|
281
|
+
* @param {number} [productVersionId]
|
|
251
282
|
* @param {*} [options] Override http request option.
|
|
252
283
|
* @throws {RequiredError}
|
|
253
284
|
*/
|
|
254
|
-
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
|
|
285
|
+
getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
|
|
255
286
|
/**
|
|
256
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
287
|
+
* 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.
|
|
257
288
|
* @summary Generate a custom CSS
|
|
258
289
|
* @param {string} productCode
|
|
259
290
|
* @param {string} [authorization] Bearer Token
|
|
291
|
+
* @param {string} [language]
|
|
260
292
|
* @param {*} [options] Override http request option.
|
|
261
293
|
* @throws {RequiredError}
|
|
262
294
|
*/
|
|
263
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass>;
|
|
295
|
+
getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetCustomCssResponseClass>;
|
|
264
296
|
/**
|
|
265
297
|
* 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.
|
|
266
298
|
* @summary List product factors
|
|
267
299
|
* @param {string} productCode
|
|
268
300
|
* @param {string} allValues
|
|
269
301
|
* @param {string} [authorization] Bearer Token
|
|
302
|
+
* @param {string} [language]
|
|
303
|
+
* @param {number} [productVersionId]
|
|
270
304
|
* @param {*} [options] Override http request option.
|
|
271
305
|
* @throws {RequiredError}
|
|
272
306
|
*/
|
|
273
|
-
getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>>;
|
|
307
|
+
getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>>;
|
|
308
|
+
/**
|
|
309
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
310
|
+
* @summary Retrieve the product languages
|
|
311
|
+
* @param {string} productCode
|
|
312
|
+
* @param {string} [authorization] Bearer Token
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
getProductLanguages(productCode: string, authorization?: string, options?: any): AxiosPromise<GetProductLanguagesResponseClass>;
|
|
274
317
|
/**
|
|
275
318
|
* 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.
|
|
276
319
|
* @summary List products
|
|
@@ -399,6 +442,18 @@ export interface ProductsApiGetInsuredObjectsRequest {
|
|
|
399
442
|
* @memberof ProductsApiGetInsuredObjects
|
|
400
443
|
*/
|
|
401
444
|
readonly authorization?: string;
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @type {string}
|
|
448
|
+
* @memberof ProductsApiGetInsuredObjects
|
|
449
|
+
*/
|
|
450
|
+
readonly language?: string;
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @type {number}
|
|
454
|
+
* @memberof ProductsApiGetInsuredObjects
|
|
455
|
+
*/
|
|
456
|
+
readonly productVersionId?: number;
|
|
402
457
|
}
|
|
403
458
|
/**
|
|
404
459
|
* Request parameters for getProductCustomCss operation in ProductsApi.
|
|
@@ -418,6 +473,12 @@ export interface ProductsApiGetProductCustomCssRequest {
|
|
|
418
473
|
* @memberof ProductsApiGetProductCustomCss
|
|
419
474
|
*/
|
|
420
475
|
readonly authorization?: string;
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof ProductsApiGetProductCustomCss
|
|
480
|
+
*/
|
|
481
|
+
readonly language?: string;
|
|
421
482
|
}
|
|
422
483
|
/**
|
|
423
484
|
* Request parameters for getProductFactors operation in ProductsApi.
|
|
@@ -443,6 +504,37 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
443
504
|
* @memberof ProductsApiGetProductFactors
|
|
444
505
|
*/
|
|
445
506
|
readonly authorization?: string;
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof ProductsApiGetProductFactors
|
|
511
|
+
*/
|
|
512
|
+
readonly language?: string;
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {number}
|
|
516
|
+
* @memberof ProductsApiGetProductFactors
|
|
517
|
+
*/
|
|
518
|
+
readonly productVersionId?: number;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Request parameters for getProductLanguages operation in ProductsApi.
|
|
522
|
+
* @export
|
|
523
|
+
* @interface ProductsApiGetProductLanguagesRequest
|
|
524
|
+
*/
|
|
525
|
+
export interface ProductsApiGetProductLanguagesRequest {
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof ProductsApiGetProductLanguages
|
|
530
|
+
*/
|
|
531
|
+
readonly productCode: string;
|
|
532
|
+
/**
|
|
533
|
+
* Bearer Token
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof ProductsApiGetProductLanguages
|
|
536
|
+
*/
|
|
537
|
+
readonly authorization?: string;
|
|
446
538
|
}
|
|
447
539
|
/**
|
|
448
540
|
* Request parameters for listProducts operation in ProductsApi.
|
|
@@ -552,7 +644,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
552
644
|
*/
|
|
553
645
|
getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectClass[], any, {}>>;
|
|
554
646
|
/**
|
|
555
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
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.
|
|
556
648
|
* @summary Generate a custom CSS
|
|
557
649
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
558
650
|
* @param {*} [options] Override http request option.
|
|
@@ -569,6 +661,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
569
661
|
* @memberof ProductsApi
|
|
570
662
|
*/
|
|
571
663
|
getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductFactorForVersionClass[], any, {}>>;
|
|
664
|
+
/**
|
|
665
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
666
|
+
* @summary Retrieve the product languages
|
|
667
|
+
* @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
* @memberof ProductsApi
|
|
671
|
+
*/
|
|
672
|
+
getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguagesResponseClass, any, {}>>;
|
|
572
673
|
/**
|
|
573
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.
|
|
574
675
|
* @summary List products
|
package/dist/api/products-api.js
CHANGED
|
@@ -304,10 +304,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
304
304
|
* @summary List insured objects
|
|
305
305
|
* @param {string} productCode
|
|
306
306
|
* @param {string} [authorization] Bearer Token
|
|
307
|
+
* @param {string} [language]
|
|
308
|
+
* @param {number} [productVersionId]
|
|
307
309
|
* @param {*} [options] Override http request option.
|
|
308
310
|
* @throws {RequiredError}
|
|
309
311
|
*/
|
|
310
|
-
getInsuredObjects: function (productCode, authorization, options) {
|
|
312
|
+
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
311
313
|
if (options === void 0) { options = {}; }
|
|
312
314
|
return __awaiter(_this, void 0, void 0, function () {
|
|
313
315
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -333,6 +335,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
333
335
|
// authentication bearer required
|
|
334
336
|
// http bearer authentication required
|
|
335
337
|
_a.sent();
|
|
338
|
+
if (language !== undefined) {
|
|
339
|
+
localVarQueryParameter['language'] = language;
|
|
340
|
+
}
|
|
341
|
+
if (productVersionId !== undefined) {
|
|
342
|
+
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
343
|
+
}
|
|
336
344
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
337
345
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
338
346
|
}
|
|
@@ -348,14 +356,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
348
356
|
});
|
|
349
357
|
},
|
|
350
358
|
/**
|
|
351
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
359
|
+
* 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.
|
|
352
360
|
* @summary Generate a custom CSS
|
|
353
361
|
* @param {string} productCode
|
|
354
362
|
* @param {string} [authorization] Bearer Token
|
|
363
|
+
* @param {string} [language]
|
|
355
364
|
* @param {*} [options] Override http request option.
|
|
356
365
|
* @throws {RequiredError}
|
|
357
366
|
*/
|
|
358
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
367
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
359
368
|
if (options === void 0) { options = {}; }
|
|
360
369
|
return __awaiter(_this, void 0, void 0, function () {
|
|
361
370
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -381,6 +390,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
381
390
|
// authentication bearer required
|
|
382
391
|
// http bearer authentication required
|
|
383
392
|
_a.sent();
|
|
393
|
+
if (language !== undefined) {
|
|
394
|
+
localVarQueryParameter['language'] = language;
|
|
395
|
+
}
|
|
384
396
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
385
397
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
386
398
|
}
|
|
@@ -401,10 +413,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
401
413
|
* @param {string} productCode
|
|
402
414
|
* @param {string} allValues
|
|
403
415
|
* @param {string} [authorization] Bearer Token
|
|
416
|
+
* @param {string} [language]
|
|
417
|
+
* @param {number} [productVersionId]
|
|
404
418
|
* @param {*} [options] Override http request option.
|
|
405
419
|
* @throws {RequiredError}
|
|
406
420
|
*/
|
|
407
|
-
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
421
|
+
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
408
422
|
if (options === void 0) { options = {}; }
|
|
409
423
|
return __awaiter(_this, void 0, void 0, function () {
|
|
410
424
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -435,6 +449,60 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
435
449
|
if (allValues !== undefined) {
|
|
436
450
|
localVarQueryParameter['all_values'] = allValues;
|
|
437
451
|
}
|
|
452
|
+
if (language !== undefined) {
|
|
453
|
+
localVarQueryParameter['language'] = language;
|
|
454
|
+
}
|
|
455
|
+
if (productVersionId !== undefined) {
|
|
456
|
+
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
457
|
+
}
|
|
458
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
459
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
460
|
+
}
|
|
461
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
462
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
463
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
464
|
+
return [2 /*return*/, {
|
|
465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
466
|
+
options: localVarRequestOptions,
|
|
467
|
+
}];
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
},
|
|
472
|
+
/**
|
|
473
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
474
|
+
* @summary Retrieve the product languages
|
|
475
|
+
* @param {string} productCode
|
|
476
|
+
* @param {string} [authorization] Bearer Token
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
getProductLanguages: function (productCode, authorization, options) {
|
|
481
|
+
if (options === void 0) { options = {}; }
|
|
482
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
483
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
484
|
+
return __generator(this, function (_a) {
|
|
485
|
+
switch (_a.label) {
|
|
486
|
+
case 0:
|
|
487
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
488
|
+
(0, common_1.assertParamExists)('getProductLanguages', 'productCode', productCode);
|
|
489
|
+
localVarPath = "/publicapi/v1/products/{product_code}/languages"
|
|
490
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
491
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
492
|
+
if (configuration) {
|
|
493
|
+
baseOptions = configuration.baseOptions;
|
|
494
|
+
baseAccessToken = configuration.accessToken;
|
|
495
|
+
}
|
|
496
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
497
|
+
localVarHeaderParameter = {};
|
|
498
|
+
localVarQueryParameter = {};
|
|
499
|
+
// authentication bearer required
|
|
500
|
+
// http bearer authentication required
|
|
501
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
502
|
+
case 1:
|
|
503
|
+
// authentication bearer required
|
|
504
|
+
// http bearer authentication required
|
|
505
|
+
_a.sent();
|
|
438
506
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
439
507
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
440
508
|
}
|
|
@@ -623,15 +691,17 @@ var ProductsApiFp = function (configuration) {
|
|
|
623
691
|
* @summary List insured objects
|
|
624
692
|
* @param {string} productCode
|
|
625
693
|
* @param {string} [authorization] Bearer Token
|
|
694
|
+
* @param {string} [language]
|
|
695
|
+
* @param {number} [productVersionId]
|
|
626
696
|
* @param {*} [options] Override http request option.
|
|
627
697
|
* @throws {RequiredError}
|
|
628
698
|
*/
|
|
629
|
-
getInsuredObjects: function (productCode, authorization, options) {
|
|
699
|
+
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
630
700
|
return __awaiter(this, void 0, void 0, function () {
|
|
631
701
|
var localVarAxiosArgs;
|
|
632
702
|
return __generator(this, function (_a) {
|
|
633
703
|
switch (_a.label) {
|
|
634
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
|
|
704
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, language, productVersionId, options)];
|
|
635
705
|
case 1:
|
|
636
706
|
localVarAxiosArgs = _a.sent();
|
|
637
707
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -640,19 +710,20 @@ var ProductsApiFp = function (configuration) {
|
|
|
640
710
|
});
|
|
641
711
|
},
|
|
642
712
|
/**
|
|
643
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
713
|
+
* 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.
|
|
644
714
|
* @summary Generate a custom CSS
|
|
645
715
|
* @param {string} productCode
|
|
646
716
|
* @param {string} [authorization] Bearer Token
|
|
717
|
+
* @param {string} [language]
|
|
647
718
|
* @param {*} [options] Override http request option.
|
|
648
719
|
* @throws {RequiredError}
|
|
649
720
|
*/
|
|
650
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
721
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
651
722
|
return __awaiter(this, void 0, void 0, function () {
|
|
652
723
|
var localVarAxiosArgs;
|
|
653
724
|
return __generator(this, function (_a) {
|
|
654
725
|
switch (_a.label) {
|
|
655
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
|
|
726
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options)];
|
|
656
727
|
case 1:
|
|
657
728
|
localVarAxiosArgs = _a.sent();
|
|
658
729
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -666,15 +737,38 @@ var ProductsApiFp = function (configuration) {
|
|
|
666
737
|
* @param {string} productCode
|
|
667
738
|
* @param {string} allValues
|
|
668
739
|
* @param {string} [authorization] Bearer Token
|
|
740
|
+
* @param {string} [language]
|
|
741
|
+
* @param {number} [productVersionId]
|
|
669
742
|
* @param {*} [options] Override http request option.
|
|
670
743
|
* @throws {RequiredError}
|
|
671
744
|
*/
|
|
672
|
-
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
745
|
+
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
673
746
|
return __awaiter(this, void 0, void 0, function () {
|
|
674
747
|
var localVarAxiosArgs;
|
|
675
748
|
return __generator(this, function (_a) {
|
|
676
749
|
switch (_a.label) {
|
|
677
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options)];
|
|
750
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, language, productVersionId, options)];
|
|
751
|
+
case 1:
|
|
752
|
+
localVarAxiosArgs = _a.sent();
|
|
753
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
});
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
760
|
+
* @summary Retrieve the product languages
|
|
761
|
+
* @param {string} productCode
|
|
762
|
+
* @param {string} [authorization] Bearer Token
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
getProductLanguages: function (productCode, authorization, options) {
|
|
767
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
768
|
+
var localVarAxiosArgs;
|
|
769
|
+
return __generator(this, function (_a) {
|
|
770
|
+
switch (_a.label) {
|
|
771
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options)];
|
|
678
772
|
case 1:
|
|
679
773
|
localVarAxiosArgs = _a.sent();
|
|
680
774
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -771,22 +865,25 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
771
865
|
* @summary List insured objects
|
|
772
866
|
* @param {string} productCode
|
|
773
867
|
* @param {string} [authorization] Bearer Token
|
|
868
|
+
* @param {string} [language]
|
|
869
|
+
* @param {number} [productVersionId]
|
|
774
870
|
* @param {*} [options] Override http request option.
|
|
775
871
|
* @throws {RequiredError}
|
|
776
872
|
*/
|
|
777
|
-
getInsuredObjects: function (productCode, authorization, options) {
|
|
778
|
-
return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
873
|
+
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
874
|
+
return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
|
|
779
875
|
},
|
|
780
876
|
/**
|
|
781
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
877
|
+
* 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.
|
|
782
878
|
* @summary Generate a custom CSS
|
|
783
879
|
* @param {string} productCode
|
|
784
880
|
* @param {string} [authorization] Bearer Token
|
|
881
|
+
* @param {string} [language]
|
|
785
882
|
* @param {*} [options] Override http request option.
|
|
786
883
|
* @throws {RequiredError}
|
|
787
884
|
*/
|
|
788
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
789
|
-
return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
885
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
886
|
+
return localVarFp.getProductCustomCss(productCode, authorization, language, options).then(function (request) { return request(axios, basePath); });
|
|
790
887
|
},
|
|
791
888
|
/**
|
|
792
889
|
* 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.
|
|
@@ -794,11 +891,24 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
794
891
|
* @param {string} productCode
|
|
795
892
|
* @param {string} allValues
|
|
796
893
|
* @param {string} [authorization] Bearer Token
|
|
894
|
+
* @param {string} [language]
|
|
895
|
+
* @param {number} [productVersionId]
|
|
797
896
|
* @param {*} [options] Override http request option.
|
|
798
897
|
* @throws {RequiredError}
|
|
799
898
|
*/
|
|
800
|
-
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
801
|
-
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
899
|
+
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
900
|
+
return localVarFp.getProductFactors(productCode, allValues, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
|
|
901
|
+
},
|
|
902
|
+
/**
|
|
903
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
904
|
+
* @summary Retrieve the product languages
|
|
905
|
+
* @param {string} productCode
|
|
906
|
+
* @param {string} [authorization] Bearer Token
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
getProductLanguages: function (productCode, authorization, options) {
|
|
911
|
+
return localVarFp.getProductLanguages(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
802
912
|
},
|
|
803
913
|
/**
|
|
804
914
|
* 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.
|
|
@@ -889,10 +999,10 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
889
999
|
*/
|
|
890
1000
|
ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
|
|
891
1001
|
var _this = this;
|
|
892
|
-
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
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); });
|
|
893
1003
|
};
|
|
894
1004
|
/**
|
|
895
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
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.
|
|
896
1006
|
* @summary Generate a custom CSS
|
|
897
1007
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
898
1008
|
* @param {*} [options] Override http request option.
|
|
@@ -901,7 +1011,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
901
1011
|
*/
|
|
902
1012
|
ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
|
|
903
1013
|
var _this = this;
|
|
904
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1014
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
905
1015
|
};
|
|
906
1016
|
/**
|
|
907
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.
|
|
@@ -913,7 +1023,19 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
913
1023
|
*/
|
|
914
1024
|
ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
|
|
915
1025
|
var _this = this;
|
|
916
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
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); });
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
1030
|
+
* @summary Retrieve the product languages
|
|
1031
|
+
* @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
* @memberof ProductsApi
|
|
1035
|
+
*/
|
|
1036
|
+
ProductsApi.prototype.getProductLanguages = function (requestParameters, options) {
|
|
1037
|
+
var _this = this;
|
|
1038
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
917
1039
|
};
|
|
918
1040
|
/**
|
|
919
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.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetProductLanguagesResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GetProductLanguagesResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* The language the product itself is written in.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetProductLanguagesResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'defaultLanguage': string;
|
|
24
|
+
/**
|
|
25
|
+
* Languages the product can be shown in: its default language, followed by every additional language that has been activated.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof GetProductLanguagesResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'languages': Array<string>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './get-lead-response-class';
|
|
|
51
51
|
export * from './get-product-config-tariffs-response-class';
|
|
52
52
|
export * from './get-product-document-download-url-request-rest-dto';
|
|
53
53
|
export * from './get-product-document-download-url-response-class';
|
|
54
|
+
export * from './get-product-languages-response-class';
|
|
54
55
|
export * from './get-public-psp-settings-response-class';
|
|
55
56
|
export * from './initiate-adyen-payment-setup-request-dto';
|
|
56
57
|
export * from './initiate-adyen-payment-setup-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./get-lead-response-class"), exports);
|
|
|
67
67
|
__exportStar(require("./get-product-config-tariffs-response-class"), exports);
|
|
68
68
|
__exportStar(require("./get-product-document-download-url-request-rest-dto"), exports);
|
|
69
69
|
__exportStar(require("./get-product-document-download-url-response-class"), exports);
|
|
70
|
+
__exportStar(require("./get-product-languages-response-class"), exports);
|
|
70
71
|
__exportStar(require("./get-public-psp-settings-response-class"), exports);
|
|
71
72
|
__exportStar(require("./initiate-adyen-payment-setup-request-dto"), exports);
|
|
72
73
|
__exportStar(require("./initiate-adyen-payment-setup-response-class"), exports);
|
|
@@ -57,4 +57,10 @@ export interface PartnerClass {
|
|
|
57
57
|
* @memberof PartnerClass
|
|
58
58
|
*/
|
|
59
59
|
'updatedBy'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof PartnerClass
|
|
64
|
+
*/
|
|
65
|
+
'subtypes': Array<string>;
|
|
60
66
|
}
|