@emilgroup/public-api-sdk 1.40.1-beta.8 → 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/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
package/.openapi-generator/FILES
CHANGED
|
@@ -73,6 +73,7 @@ models/get-lead-response-class.ts
|
|
|
73
73
|
models/get-product-config-tariffs-response-class.ts
|
|
74
74
|
models/get-product-document-download-url-request-rest-dto.ts
|
|
75
75
|
models/get-product-document-download-url-response-class.ts
|
|
76
|
+
models/get-product-languages-response-class.ts
|
|
76
77
|
models/get-public-psp-settings-response-class.ts
|
|
77
78
|
models/index.ts
|
|
78
79
|
models/initiate-adyen-payment-setup-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk@1.40.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.40.1-beta.9 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.40.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.40.1-beta.9
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -33,10 +33,11 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
33
33
|
* @summary Retrieve the booking funnel
|
|
34
34
|
* @param {string} code Unique identifier for the object.
|
|
35
35
|
* @param {string} [authorization] Bearer Token
|
|
36
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
36
37
|
* @param {*} [options] Override http request option.
|
|
37
38
|
* @throws {RequiredError}
|
|
38
39
|
*/
|
|
39
|
-
getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
+
getBookingFunnel: async (code: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
41
|
// verify required parameter 'code' is not null or undefined
|
|
41
42
|
assertParamExists('getBookingFunnel', 'code', code)
|
|
42
43
|
const localVarPath = `/publicapi/v1/booking-funnels/{code}`
|
|
@@ -58,6 +59,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
58
59
|
// http bearer authentication required
|
|
59
60
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
61
|
|
|
62
|
+
if (language !== undefined) {
|
|
63
|
+
localVarQueryParameter['language'] = language;
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
62
67
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
63
68
|
}
|
|
@@ -88,11 +93,12 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
|
|
|
88
93
|
* @summary Retrieve the booking funnel
|
|
89
94
|
* @param {string} code Unique identifier for the object.
|
|
90
95
|
* @param {string} [authorization] Bearer Token
|
|
96
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
91
97
|
* @param {*} [options] Override http request option.
|
|
92
98
|
* @throws {RequiredError}
|
|
93
99
|
*/
|
|
94
|
-
async getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
|
|
95
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, options);
|
|
100
|
+
async getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
|
|
101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options);
|
|
96
102
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
97
103
|
},
|
|
98
104
|
}
|
|
@@ -110,11 +116,12 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
|
|
|
110
116
|
* @summary Retrieve the booking funnel
|
|
111
117
|
* @param {string} code Unique identifier for the object.
|
|
112
118
|
* @param {string} [authorization] Bearer Token
|
|
119
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
113
120
|
* @param {*} [options] Override http request option.
|
|
114
121
|
* @throws {RequiredError}
|
|
115
122
|
*/
|
|
116
|
-
getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
|
|
117
|
-
return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
|
|
123
|
+
getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
|
|
124
|
+
return localVarFp.getBookingFunnel(code, authorization, language, options).then((request) => request(axios, basePath));
|
|
118
125
|
},
|
|
119
126
|
};
|
|
120
127
|
};
|
|
@@ -138,6 +145,13 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
138
145
|
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
139
146
|
*/
|
|
140
147
|
readonly authorization?: string
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
153
|
+
*/
|
|
154
|
+
readonly language?: string
|
|
141
155
|
}
|
|
142
156
|
|
|
143
157
|
/**
|
|
@@ -156,6 +170,6 @@ export class BookingFunnelsApi extends BaseAPI {
|
|
|
156
170
|
* @memberof BookingFunnelsApi
|
|
157
171
|
*/
|
|
158
172
|
public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
|
|
159
|
-
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
173
|
+
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
160
174
|
}
|
|
161
175
|
}
|
package/api/products-api.ts
CHANGED
|
@@ -35,6 +35,8 @@ import { CreateEstimatedInvoiceResponseClass } from '../models';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { GetCustomCssResponseClass } from '../models';
|
|
37
37
|
// @ts-ignore
|
|
38
|
+
import { GetProductLanguagesResponseClass } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
38
40
|
import { InsuredObjectClass } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
import { InsuredObjectTypeClass } from '../models';
|
|
@@ -251,10 +253,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
251
253
|
* @summary List insured objects
|
|
252
254
|
* @param {string} productCode
|
|
253
255
|
* @param {string} [authorization] Bearer Token
|
|
256
|
+
* @param {string} [language]
|
|
257
|
+
* @param {number} [productVersionId]
|
|
254
258
|
* @param {*} [options] Override http request option.
|
|
255
259
|
* @throws {RequiredError}
|
|
256
260
|
*/
|
|
257
|
-
getInsuredObjects: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
|
+
getInsuredObjects: async (productCode: string, authorization?: string, language?: string, productVersionId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
258
262
|
// verify required parameter 'productCode' is not null or undefined
|
|
259
263
|
assertParamExists('getInsuredObjects', 'productCode', productCode)
|
|
260
264
|
const localVarPath = `/publicapi/v1/products/{product_code}/insured-objects`
|
|
@@ -276,6 +280,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
276
280
|
// http bearer authentication required
|
|
277
281
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
278
282
|
|
|
283
|
+
if (language !== undefined) {
|
|
284
|
+
localVarQueryParameter['language'] = language;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (productVersionId !== undefined) {
|
|
288
|
+
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
289
|
+
}
|
|
290
|
+
|
|
279
291
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
280
292
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
281
293
|
}
|
|
@@ -292,14 +304,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
292
304
|
};
|
|
293
305
|
},
|
|
294
306
|
/**
|
|
295
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
307
|
+
* 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.
|
|
296
308
|
* @summary Generate a custom CSS
|
|
297
309
|
* @param {string} productCode
|
|
298
310
|
* @param {string} [authorization] Bearer Token
|
|
311
|
+
* @param {string} [language]
|
|
299
312
|
* @param {*} [options] Override http request option.
|
|
300
313
|
* @throws {RequiredError}
|
|
301
314
|
*/
|
|
302
|
-
getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
315
|
+
getProductCustomCss: async (productCode: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
303
316
|
// verify required parameter 'productCode' is not null or undefined
|
|
304
317
|
assertParamExists('getProductCustomCss', 'productCode', productCode)
|
|
305
318
|
const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
|
|
@@ -321,6 +334,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
321
334
|
// http bearer authentication required
|
|
322
335
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
323
336
|
|
|
337
|
+
if (language !== undefined) {
|
|
338
|
+
localVarQueryParameter['language'] = language;
|
|
339
|
+
}
|
|
340
|
+
|
|
324
341
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
325
342
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
326
343
|
}
|
|
@@ -342,10 +359,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
342
359
|
* @param {string} productCode
|
|
343
360
|
* @param {string} allValues
|
|
344
361
|
* @param {string} [authorization] Bearer Token
|
|
362
|
+
* @param {string} [language]
|
|
363
|
+
* @param {number} [productVersionId]
|
|
345
364
|
* @param {*} [options] Override http request option.
|
|
346
365
|
* @throws {RequiredError}
|
|
347
366
|
*/
|
|
348
|
-
getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
367
|
+
getProductFactors: async (productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
349
368
|
// verify required parameter 'productCode' is not null or undefined
|
|
350
369
|
assertParamExists('getProductFactors', 'productCode', productCode)
|
|
351
370
|
// verify required parameter 'allValues' is not null or undefined
|
|
@@ -373,6 +392,59 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
373
392
|
localVarQueryParameter['all_values'] = allValues;
|
|
374
393
|
}
|
|
375
394
|
|
|
395
|
+
if (language !== undefined) {
|
|
396
|
+
localVarQueryParameter['language'] = language;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (productVersionId !== undefined) {
|
|
400
|
+
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
404
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
410
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
411
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
412
|
+
|
|
413
|
+
return {
|
|
414
|
+
url: toPathString(localVarUrlObj),
|
|
415
|
+
options: localVarRequestOptions,
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
420
|
+
* @summary Retrieve the product languages
|
|
421
|
+
* @param {string} productCode
|
|
422
|
+
* @param {string} [authorization] Bearer Token
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
getProductLanguages: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
427
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
428
|
+
assertParamExists('getProductLanguages', 'productCode', productCode)
|
|
429
|
+
const localVarPath = `/publicapi/v1/products/{product_code}/languages`
|
|
430
|
+
.replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
|
|
431
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
432
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
433
|
+
let baseOptions;
|
|
434
|
+
let baseAccessToken;
|
|
435
|
+
if (configuration) {
|
|
436
|
+
baseOptions = configuration.baseOptions;
|
|
437
|
+
baseAccessToken = configuration.accessToken;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
441
|
+
const localVarHeaderParameter = {} as any;
|
|
442
|
+
const localVarQueryParameter = {} as any;
|
|
443
|
+
|
|
444
|
+
// authentication bearer required
|
|
445
|
+
// http bearer authentication required
|
|
446
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
447
|
+
|
|
376
448
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
377
449
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
378
450
|
}
|
|
@@ -530,23 +602,26 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
530
602
|
* @summary List insured objects
|
|
531
603
|
* @param {string} productCode
|
|
532
604
|
* @param {string} [authorization] Bearer Token
|
|
605
|
+
* @param {string} [language]
|
|
606
|
+
* @param {number} [productVersionId]
|
|
533
607
|
* @param {*} [options] Override http request option.
|
|
534
608
|
* @throws {RequiredError}
|
|
535
609
|
*/
|
|
536
|
-
async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
|
|
537
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
|
|
610
|
+
async getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
|
|
611
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, language, productVersionId, options);
|
|
538
612
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
539
613
|
},
|
|
540
614
|
/**
|
|
541
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
615
|
+
* 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.
|
|
542
616
|
* @summary Generate a custom CSS
|
|
543
617
|
* @param {string} productCode
|
|
544
618
|
* @param {string} [authorization] Bearer Token
|
|
619
|
+
* @param {string} [language]
|
|
545
620
|
* @param {*} [options] Override http request option.
|
|
546
621
|
* @throws {RequiredError}
|
|
547
622
|
*/
|
|
548
|
-
async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
|
|
549
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
|
|
623
|
+
async getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
|
|
624
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options);
|
|
550
625
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
551
626
|
},
|
|
552
627
|
/**
|
|
@@ -555,11 +630,25 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
555
630
|
* @param {string} productCode
|
|
556
631
|
* @param {string} allValues
|
|
557
632
|
* @param {string} [authorization] Bearer Token
|
|
633
|
+
* @param {string} [language]
|
|
634
|
+
* @param {number} [productVersionId]
|
|
558
635
|
* @param {*} [options] Override http request option.
|
|
559
636
|
* @throws {RequiredError}
|
|
560
637
|
*/
|
|
561
|
-
async getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
|
|
562
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
|
|
638
|
+
async getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
|
|
639
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, language, productVersionId, options);
|
|
640
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
641
|
+
},
|
|
642
|
+
/**
|
|
643
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
644
|
+
* @summary Retrieve the product languages
|
|
645
|
+
* @param {string} productCode
|
|
646
|
+
* @param {string} [authorization] Bearer Token
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
async getProductLanguages(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguagesResponseClass>> {
|
|
651
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options);
|
|
563
652
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
564
653
|
},
|
|
565
654
|
/**
|
|
@@ -642,22 +731,25 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
642
731
|
* @summary List insured objects
|
|
643
732
|
* @param {string} productCode
|
|
644
733
|
* @param {string} [authorization] Bearer Token
|
|
734
|
+
* @param {string} [language]
|
|
735
|
+
* @param {number} [productVersionId]
|
|
645
736
|
* @param {*} [options] Override http request option.
|
|
646
737
|
* @throws {RequiredError}
|
|
647
738
|
*/
|
|
648
|
-
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
649
|
-
return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
739
|
+
getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
740
|
+
return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
|
|
650
741
|
},
|
|
651
742
|
/**
|
|
652
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
743
|
+
* 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.
|
|
653
744
|
* @summary Generate a custom CSS
|
|
654
745
|
* @param {string} productCode
|
|
655
746
|
* @param {string} [authorization] Bearer Token
|
|
747
|
+
* @param {string} [language]
|
|
656
748
|
* @param {*} [options] Override http request option.
|
|
657
749
|
* @throws {RequiredError}
|
|
658
750
|
*/
|
|
659
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
660
|
-
return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
751
|
+
getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
752
|
+
return localVarFp.getProductCustomCss(productCode, authorization, language, options).then((request) => request(axios, basePath));
|
|
661
753
|
},
|
|
662
754
|
/**
|
|
663
755
|
* 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.
|
|
@@ -665,11 +757,24 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
665
757
|
* @param {string} productCode
|
|
666
758
|
* @param {string} allValues
|
|
667
759
|
* @param {string} [authorization] Bearer Token
|
|
760
|
+
* @param {string} [language]
|
|
761
|
+
* @param {number} [productVersionId]
|
|
668
762
|
* @param {*} [options] Override http request option.
|
|
669
763
|
* @throws {RequiredError}
|
|
670
764
|
*/
|
|
671
|
-
getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
|
|
672
|
-
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
765
|
+
getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
|
|
766
|
+
return localVarFp.getProductFactors(productCode, allValues, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
770
|
+
* @summary Retrieve the product languages
|
|
771
|
+
* @param {string} productCode
|
|
772
|
+
* @param {string} [authorization] Bearer Token
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
getProductLanguages(productCode: string, authorization?: string, options?: any): AxiosPromise<GetProductLanguagesResponseClass> {
|
|
777
|
+
return localVarFp.getProductLanguages(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
673
778
|
},
|
|
674
779
|
/**
|
|
675
780
|
* 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.
|
|
@@ -815,6 +920,20 @@ export interface ProductsApiGetInsuredObjectsRequest {
|
|
|
815
920
|
* @memberof ProductsApiGetInsuredObjects
|
|
816
921
|
*/
|
|
817
922
|
readonly authorization?: string
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
*
|
|
926
|
+
* @type {string}
|
|
927
|
+
* @memberof ProductsApiGetInsuredObjects
|
|
928
|
+
*/
|
|
929
|
+
readonly language?: string
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @type {number}
|
|
934
|
+
* @memberof ProductsApiGetInsuredObjects
|
|
935
|
+
*/
|
|
936
|
+
readonly productVersionId?: number
|
|
818
937
|
}
|
|
819
938
|
|
|
820
939
|
/**
|
|
@@ -836,6 +955,13 @@ export interface ProductsApiGetProductCustomCssRequest {
|
|
|
836
955
|
* @memberof ProductsApiGetProductCustomCss
|
|
837
956
|
*/
|
|
838
957
|
readonly authorization?: string
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @type {string}
|
|
962
|
+
* @memberof ProductsApiGetProductCustomCss
|
|
963
|
+
*/
|
|
964
|
+
readonly language?: string
|
|
839
965
|
}
|
|
840
966
|
|
|
841
967
|
/**
|
|
@@ -864,6 +990,41 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
864
990
|
* @memberof ProductsApiGetProductFactors
|
|
865
991
|
*/
|
|
866
992
|
readonly authorization?: string
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
*
|
|
996
|
+
* @type {string}
|
|
997
|
+
* @memberof ProductsApiGetProductFactors
|
|
998
|
+
*/
|
|
999
|
+
readonly language?: string
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @type {number}
|
|
1004
|
+
* @memberof ProductsApiGetProductFactors
|
|
1005
|
+
*/
|
|
1006
|
+
readonly productVersionId?: number
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Request parameters for getProductLanguages operation in ProductsApi.
|
|
1011
|
+
* @export
|
|
1012
|
+
* @interface ProductsApiGetProductLanguagesRequest
|
|
1013
|
+
*/
|
|
1014
|
+
export interface ProductsApiGetProductLanguagesRequest {
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof ProductsApiGetProductLanguages
|
|
1019
|
+
*/
|
|
1020
|
+
readonly productCode: string
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Bearer Token
|
|
1024
|
+
* @type {string}
|
|
1025
|
+
* @memberof ProductsApiGetProductLanguages
|
|
1026
|
+
*/
|
|
1027
|
+
readonly authorization?: string
|
|
867
1028
|
}
|
|
868
1029
|
|
|
869
1030
|
/**
|
|
@@ -993,11 +1154,11 @@ export class ProductsApi extends BaseAPI {
|
|
|
993
1154
|
* @memberof ProductsApi
|
|
994
1155
|
*/
|
|
995
1156
|
public getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig) {
|
|
996
|
-
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1157
|
+
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then((request) => request(this.axios, this.basePath));
|
|
997
1158
|
}
|
|
998
1159
|
|
|
999
1160
|
/**
|
|
1000
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
1161
|
+
* 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.
|
|
1001
1162
|
* @summary Generate a custom CSS
|
|
1002
1163
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
1003
1164
|
* @param {*} [options] Override http request option.
|
|
@@ -1005,7 +1166,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1005
1166
|
* @memberof ProductsApi
|
|
1006
1167
|
*/
|
|
1007
1168
|
public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
|
|
1008
|
-
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1169
|
+
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
1009
1170
|
}
|
|
1010
1171
|
|
|
1011
1172
|
/**
|
|
@@ -1017,7 +1178,19 @@ export class ProductsApi extends BaseAPI {
|
|
|
1017
1178
|
* @memberof ProductsApi
|
|
1018
1179
|
*/
|
|
1019
1180
|
public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
|
|
1020
|
-
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1181
|
+
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then((request) => request(this.axios, this.basePath));
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
1186
|
+
* @summary Retrieve the product languages
|
|
1187
|
+
* @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
* @memberof ProductsApi
|
|
1191
|
+
*/
|
|
1192
|
+
public getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig) {
|
|
1193
|
+
return ProductsApiFp(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1021
1194
|
}
|
|
1022
1195
|
|
|
1023
1196
|
/**
|
|
@@ -23,10 +23,11 @@ export declare const BookingFunnelsApiAxiosParamCreator: (configuration?: Config
|
|
|
23
23
|
* @summary Retrieve the booking funnel
|
|
24
24
|
* @param {string} code Unique identifier for the object.
|
|
25
25
|
* @param {string} [authorization] Bearer Token
|
|
26
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
26
27
|
* @param {*} [options] Override http request option.
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
*/
|
|
29
|
-
getBookingFunnel: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
getBookingFunnel: (code: string, authorization?: string, language?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* BookingFunnelsApi - functional programming interface
|
|
@@ -38,10 +39,11 @@ export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
|
|
|
38
39
|
* @summary Retrieve the booking funnel
|
|
39
40
|
* @param {string} code Unique identifier for the object.
|
|
40
41
|
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
41
43
|
* @param {*} [options] Override http request option.
|
|
42
44
|
* @throws {RequiredError}
|
|
43
45
|
*/
|
|
44
|
-
getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>>;
|
|
46
|
+
getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>>;
|
|
45
47
|
};
|
|
46
48
|
/**
|
|
47
49
|
* BookingFunnelsApi - factory interface
|
|
@@ -53,10 +55,11 @@ export declare const BookingFunnelsApiFactory: (configuration?: Configuration, b
|
|
|
53
55
|
* @summary Retrieve the booking funnel
|
|
54
56
|
* @param {string} code Unique identifier for the object.
|
|
55
57
|
* @param {string} [authorization] Bearer Token
|
|
58
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
56
59
|
* @param {*} [options] Override http request option.
|
|
57
60
|
* @throws {RequiredError}
|
|
58
61
|
*/
|
|
59
|
-
getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass>;
|
|
62
|
+
getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass>;
|
|
60
63
|
};
|
|
61
64
|
/**
|
|
62
65
|
* Request parameters for getBookingFunnel operation in BookingFunnelsApi.
|
|
@@ -76,6 +79,12 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
76
79
|
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
77
80
|
*/
|
|
78
81
|
readonly authorization?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
86
|
+
*/
|
|
87
|
+
readonly language?: string;
|
|
79
88
|
}
|
|
80
89
|
/**
|
|
81
90
|
* BookingFunnelsApi - object-oriented interface
|
|
@@ -97,10 +97,11 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
* @summary Retrieve the booking funnel
|
|
98
98
|
* @param {string} code Unique identifier for the object.
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
100
101
|
* @param {*} [options] Override http request option.
|
|
101
102
|
* @throws {RequiredError}
|
|
102
103
|
*/
|
|
103
|
-
getBookingFunnel: function (code, authorization, options) {
|
|
104
|
+
getBookingFunnel: function (code, authorization, language, options) {
|
|
104
105
|
if (options === void 0) { options = {}; }
|
|
105
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -126,6 +127,9 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
126
127
|
// authentication bearer required
|
|
127
128
|
// http bearer authentication required
|
|
128
129
|
_a.sent();
|
|
130
|
+
if (language !== undefined) {
|
|
131
|
+
localVarQueryParameter['language'] = language;
|
|
132
|
+
}
|
|
129
133
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
134
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
135
|
}
|
|
@@ -155,15 +159,16 @@ var BookingFunnelsApiFp = function (configuration) {
|
|
|
155
159
|
* @summary Retrieve the booking funnel
|
|
156
160
|
* @param {string} code Unique identifier for the object.
|
|
157
161
|
* @param {string} [authorization] Bearer Token
|
|
162
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
158
163
|
* @param {*} [options] Override http request option.
|
|
159
164
|
* @throws {RequiredError}
|
|
160
165
|
*/
|
|
161
|
-
getBookingFunnel: function (code, authorization, options) {
|
|
166
|
+
getBookingFunnel: function (code, authorization, language, options) {
|
|
162
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
163
168
|
var localVarAxiosArgs;
|
|
164
169
|
return __generator(this, function (_a) {
|
|
165
170
|
switch (_a.label) {
|
|
166
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
|
|
171
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options)];
|
|
167
172
|
case 1:
|
|
168
173
|
localVarAxiosArgs = _a.sent();
|
|
169
174
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -186,11 +191,12 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
|
|
|
186
191
|
* @summary Retrieve the booking funnel
|
|
187
192
|
* @param {string} code Unique identifier for the object.
|
|
188
193
|
* @param {string} [authorization] Bearer Token
|
|
194
|
+
* @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
|
|
189
195
|
* @param {*} [options] Override http request option.
|
|
190
196
|
* @throws {RequiredError}
|
|
191
197
|
*/
|
|
192
|
-
getBookingFunnel: function (code, authorization, options) {
|
|
193
|
-
return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
198
|
+
getBookingFunnel: function (code, authorization, language, options) {
|
|
199
|
+
return localVarFp.getBookingFunnel(code, authorization, language, options).then(function (request) { return request(axios, basePath); });
|
|
194
200
|
},
|
|
195
201
|
};
|
|
196
202
|
};
|
|
@@ -216,7 +222,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
|
|
|
216
222
|
*/
|
|
217
223
|
BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
|
|
218
224
|
var _this = this;
|
|
219
|
-
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
225
|
+
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
220
226
|
};
|
|
221
227
|
return BookingFunnelsApi;
|
|
222
228
|
}(base_1.BaseAPI));
|