@emilgroup/public-api-sdk-node 1.42.1-beta.8 → 1.42.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/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/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
|
@@ -308,10 +308,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
308
308
|
* @summary List insured objects
|
|
309
309
|
* @param {string} productCode
|
|
310
310
|
* @param {string} [authorization] Bearer Token
|
|
311
|
+
* @param {string} [language]
|
|
312
|
+
* @param {number} [productVersionId]
|
|
311
313
|
* @param {*} [options] Override http request option.
|
|
312
314
|
* @throws {RequiredError}
|
|
313
315
|
*/
|
|
314
|
-
getInsuredObjects: function (productCode, authorization, options) {
|
|
316
|
+
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
315
317
|
if (options === void 0) { options = {}; }
|
|
316
318
|
return __awaiter(_this, void 0, void 0, function () {
|
|
317
319
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -337,6 +339,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
337
339
|
// authentication bearer required
|
|
338
340
|
// http bearer authentication required
|
|
339
341
|
_a.sent();
|
|
342
|
+
if (language !== undefined) {
|
|
343
|
+
localVarQueryParameter['language'] = language;
|
|
344
|
+
}
|
|
345
|
+
if (productVersionId !== undefined) {
|
|
346
|
+
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
347
|
+
}
|
|
340
348
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
349
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
342
350
|
}
|
|
@@ -352,14 +360,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
352
360
|
});
|
|
353
361
|
},
|
|
354
362
|
/**
|
|
355
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
363
|
+
* 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.
|
|
356
364
|
* @summary Generate a custom CSS
|
|
357
365
|
* @param {string} productCode
|
|
358
366
|
* @param {string} [authorization] Bearer Token
|
|
367
|
+
* @param {string} [language]
|
|
359
368
|
* @param {*} [options] Override http request option.
|
|
360
369
|
* @throws {RequiredError}
|
|
361
370
|
*/
|
|
362
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
371
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
363
372
|
if (options === void 0) { options = {}; }
|
|
364
373
|
return __awaiter(_this, void 0, void 0, function () {
|
|
365
374
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -385,6 +394,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
385
394
|
// authentication bearer required
|
|
386
395
|
// http bearer authentication required
|
|
387
396
|
_a.sent();
|
|
397
|
+
if (language !== undefined) {
|
|
398
|
+
localVarQueryParameter['language'] = language;
|
|
399
|
+
}
|
|
388
400
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
389
401
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
390
402
|
}
|
|
@@ -405,10 +417,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
405
417
|
* @param {string} productCode
|
|
406
418
|
* @param {string} allValues
|
|
407
419
|
* @param {string} [authorization] Bearer Token
|
|
420
|
+
* @param {string} [language]
|
|
421
|
+
* @param {number} [productVersionId]
|
|
408
422
|
* @param {*} [options] Override http request option.
|
|
409
423
|
* @throws {RequiredError}
|
|
410
424
|
*/
|
|
411
|
-
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
425
|
+
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
412
426
|
if (options === void 0) { options = {}; }
|
|
413
427
|
return __awaiter(_this, void 0, void 0, function () {
|
|
414
428
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -439,6 +453,60 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
439
453
|
if (allValues !== undefined) {
|
|
440
454
|
localVarQueryParameter['all_values'] = allValues;
|
|
441
455
|
}
|
|
456
|
+
if (language !== undefined) {
|
|
457
|
+
localVarQueryParameter['language'] = language;
|
|
458
|
+
}
|
|
459
|
+
if (productVersionId !== undefined) {
|
|
460
|
+
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
461
|
+
}
|
|
462
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
463
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
464
|
+
}
|
|
465
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
466
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
467
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
468
|
+
return [2 /*return*/, {
|
|
469
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
470
|
+
options: localVarRequestOptions,
|
|
471
|
+
}];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
478
|
+
* @summary Retrieve the product languages
|
|
479
|
+
* @param {string} productCode
|
|
480
|
+
* @param {string} [authorization] Bearer Token
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getProductLanguages: function (productCode, authorization, options) {
|
|
485
|
+
if (options === void 0) { options = {}; }
|
|
486
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
487
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
488
|
+
return __generator(this, function (_a) {
|
|
489
|
+
switch (_a.label) {
|
|
490
|
+
case 0:
|
|
491
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
492
|
+
(0, common_1.assertParamExists)('getProductLanguages', 'productCode', productCode);
|
|
493
|
+
localVarPath = "/publicapi/v1/products/{product_code}/languages"
|
|
494
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
495
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
496
|
+
if (configuration) {
|
|
497
|
+
baseOptions = configuration.baseOptions;
|
|
498
|
+
baseAccessToken = configuration.accessToken;
|
|
499
|
+
}
|
|
500
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
501
|
+
localVarHeaderParameter = {};
|
|
502
|
+
localVarQueryParameter = {};
|
|
503
|
+
// authentication bearer required
|
|
504
|
+
// http bearer authentication required
|
|
505
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
506
|
+
case 1:
|
|
507
|
+
// authentication bearer required
|
|
508
|
+
// http bearer authentication required
|
|
509
|
+
_a.sent();
|
|
442
510
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
443
511
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
444
512
|
}
|
|
@@ -627,15 +695,17 @@ var ProductsApiFp = function (configuration) {
|
|
|
627
695
|
* @summary List insured objects
|
|
628
696
|
* @param {string} productCode
|
|
629
697
|
* @param {string} [authorization] Bearer Token
|
|
698
|
+
* @param {string} [language]
|
|
699
|
+
* @param {number} [productVersionId]
|
|
630
700
|
* @param {*} [options] Override http request option.
|
|
631
701
|
* @throws {RequiredError}
|
|
632
702
|
*/
|
|
633
|
-
getInsuredObjects: function (productCode, authorization, options) {
|
|
703
|
+
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
634
704
|
return __awaiter(this, void 0, void 0, function () {
|
|
635
705
|
var localVarAxiosArgs;
|
|
636
706
|
return __generator(this, function (_a) {
|
|
637
707
|
switch (_a.label) {
|
|
638
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
|
|
708
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, language, productVersionId, options)];
|
|
639
709
|
case 1:
|
|
640
710
|
localVarAxiosArgs = _a.sent();
|
|
641
711
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -644,19 +714,20 @@ var ProductsApiFp = function (configuration) {
|
|
|
644
714
|
});
|
|
645
715
|
},
|
|
646
716
|
/**
|
|
647
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
717
|
+
* 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
718
|
* @summary Generate a custom CSS
|
|
649
719
|
* @param {string} productCode
|
|
650
720
|
* @param {string} [authorization] Bearer Token
|
|
721
|
+
* @param {string} [language]
|
|
651
722
|
* @param {*} [options] Override http request option.
|
|
652
723
|
* @throws {RequiredError}
|
|
653
724
|
*/
|
|
654
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
725
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
655
726
|
return __awaiter(this, void 0, void 0, function () {
|
|
656
727
|
var localVarAxiosArgs;
|
|
657
728
|
return __generator(this, function (_a) {
|
|
658
729
|
switch (_a.label) {
|
|
659
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
|
|
730
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options)];
|
|
660
731
|
case 1:
|
|
661
732
|
localVarAxiosArgs = _a.sent();
|
|
662
733
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -670,15 +741,38 @@ var ProductsApiFp = function (configuration) {
|
|
|
670
741
|
* @param {string} productCode
|
|
671
742
|
* @param {string} allValues
|
|
672
743
|
* @param {string} [authorization] Bearer Token
|
|
744
|
+
* @param {string} [language]
|
|
745
|
+
* @param {number} [productVersionId]
|
|
673
746
|
* @param {*} [options] Override http request option.
|
|
674
747
|
* @throws {RequiredError}
|
|
675
748
|
*/
|
|
676
|
-
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
749
|
+
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
677
750
|
return __awaiter(this, void 0, void 0, function () {
|
|
678
751
|
var localVarAxiosArgs;
|
|
679
752
|
return __generator(this, function (_a) {
|
|
680
753
|
switch (_a.label) {
|
|
681
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options)];
|
|
754
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, language, productVersionId, options)];
|
|
755
|
+
case 1:
|
|
756
|
+
localVarAxiosArgs = _a.sent();
|
|
757
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
},
|
|
762
|
+
/**
|
|
763
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
764
|
+
* @summary Retrieve the product languages
|
|
765
|
+
* @param {string} productCode
|
|
766
|
+
* @param {string} [authorization] Bearer Token
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
getProductLanguages: function (productCode, authorization, options) {
|
|
771
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
772
|
+
var localVarAxiosArgs;
|
|
773
|
+
return __generator(this, function (_a) {
|
|
774
|
+
switch (_a.label) {
|
|
775
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options)];
|
|
682
776
|
case 1:
|
|
683
777
|
localVarAxiosArgs = _a.sent();
|
|
684
778
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -775,22 +869,25 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
775
869
|
* @summary List insured objects
|
|
776
870
|
* @param {string} productCode
|
|
777
871
|
* @param {string} [authorization] Bearer Token
|
|
872
|
+
* @param {string} [language]
|
|
873
|
+
* @param {number} [productVersionId]
|
|
778
874
|
* @param {*} [options] Override http request option.
|
|
779
875
|
* @throws {RequiredError}
|
|
780
876
|
*/
|
|
781
|
-
getInsuredObjects: function (productCode, authorization, options) {
|
|
782
|
-
return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
877
|
+
getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
|
|
878
|
+
return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
|
|
783
879
|
},
|
|
784
880
|
/**
|
|
785
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
881
|
+
* 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.
|
|
786
882
|
* @summary Generate a custom CSS
|
|
787
883
|
* @param {string} productCode
|
|
788
884
|
* @param {string} [authorization] Bearer Token
|
|
885
|
+
* @param {string} [language]
|
|
789
886
|
* @param {*} [options] Override http request option.
|
|
790
887
|
* @throws {RequiredError}
|
|
791
888
|
*/
|
|
792
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
793
|
-
return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
889
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
890
|
+
return localVarFp.getProductCustomCss(productCode, authorization, language, options).then(function (request) { return request(axios, basePath); });
|
|
794
891
|
},
|
|
795
892
|
/**
|
|
796
893
|
* 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.
|
|
@@ -798,11 +895,24 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
798
895
|
* @param {string} productCode
|
|
799
896
|
* @param {string} allValues
|
|
800
897
|
* @param {string} [authorization] Bearer Token
|
|
898
|
+
* @param {string} [language]
|
|
899
|
+
* @param {number} [productVersionId]
|
|
801
900
|
* @param {*} [options] Override http request option.
|
|
802
901
|
* @throws {RequiredError}
|
|
803
902
|
*/
|
|
804
|
-
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
805
|
-
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
903
|
+
getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
|
|
904
|
+
return localVarFp.getProductFactors(productCode, allValues, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
908
|
+
* @summary Retrieve the product languages
|
|
909
|
+
* @param {string} productCode
|
|
910
|
+
* @param {string} [authorization] Bearer Token
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
getProductLanguages: function (productCode, authorization, options) {
|
|
915
|
+
return localVarFp.getProductLanguages(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
806
916
|
},
|
|
807
917
|
/**
|
|
808
918
|
* 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.
|
|
@@ -893,10 +1003,10 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
893
1003
|
*/
|
|
894
1004
|
ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
|
|
895
1005
|
var _this = this;
|
|
896
|
-
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1006
|
+
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); });
|
|
897
1007
|
};
|
|
898
1008
|
/**
|
|
899
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
1009
|
+
* 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.
|
|
900
1010
|
* @summary Generate a custom CSS
|
|
901
1011
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
902
1012
|
* @param {*} [options] Override http request option.
|
|
@@ -905,7 +1015,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
905
1015
|
*/
|
|
906
1016
|
ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
|
|
907
1017
|
var _this = this;
|
|
908
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1018
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
909
1019
|
};
|
|
910
1020
|
/**
|
|
911
1021
|
* 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.
|
|
@@ -917,7 +1027,19 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
917
1027
|
*/
|
|
918
1028
|
ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
|
|
919
1029
|
var _this = this;
|
|
920
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1030
|
+
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); });
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
1034
|
+
* @summary Retrieve the product languages
|
|
1035
|
+
* @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
* @memberof ProductsApi
|
|
1039
|
+
*/
|
|
1040
|
+
ProductsApi.prototype.getProductLanguages = function (requestParameters, options) {
|
|
1041
|
+
var _this = this;
|
|
1042
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
921
1043
|
};
|
|
922
1044
|
/**
|
|
923
1045
|
* 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);
|
|
@@ -39,6 +39,24 @@ export interface ProductFieldClass {
|
|
|
39
39
|
* @memberof ProductFieldClass
|
|
40
40
|
*/
|
|
41
41
|
'label': string;
|
|
42
|
+
/**
|
|
43
|
+
* Label shown for this field on the booking funnel.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProductFieldClass
|
|
46
|
+
*/
|
|
47
|
+
'bfLabel'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Description shown under this field on the booking funnel.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProductFieldClass
|
|
52
|
+
*/
|
|
53
|
+
'bfDescription'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Tooltip shown next to this field on the booking funnel.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ProductFieldClass
|
|
58
|
+
*/
|
|
59
|
+
'bfTooltip'?: string;
|
|
42
60
|
/**
|
|
43
61
|
* Product field type.
|
|
44
62
|
* @type {string}
|