@emilgroup/public-api-sdk 1.40.1-beta.6 → 1.40.1-beta.8
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 +0 -1
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +6 -20
- package/api/products-api.ts +22 -195
- package/dist/api/booking-funnels-api.d.ts +3 -12
- package/dist/api/booking-funnels-api.js +6 -12
- package/dist/api/products-api.d.ts +13 -114
- package/dist/api/products-api.js +22 -144
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/product-field-class.d.ts +0 -18
- package/dist/models/product-version-class.d.ts +0 -6
- package/models/index.ts +0 -1
- package/models/product-field-class.ts +0 -18
- package/models/product-version-class.ts +0 -6
- package/package.json +1 -1
- package/dist/models/get-product-languages-response-class.d.ts +0 -30
- package/dist/models/get-product-languages-response-class.js +0 -15
- package/models/get-product-languages-response-class.ts +0 -36
package/.openapi-generator/FILES
CHANGED
|
@@ -73,7 +73,6 @@ 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
|
|
77
76
|
models/get-public-psp-settings-response-class.ts
|
|
78
77
|
models/index.ts
|
|
79
78
|
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.8 --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.8
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -33,11 +33,10 @@ 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.
|
|
37
36
|
* @param {*} [options] Override http request option.
|
|
38
37
|
* @throws {RequiredError}
|
|
39
38
|
*/
|
|
40
|
-
getBookingFunnel: async (code: string, authorization?: string,
|
|
39
|
+
getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
40
|
// verify required parameter 'code' is not null or undefined
|
|
42
41
|
assertParamExists('getBookingFunnel', 'code', code)
|
|
43
42
|
const localVarPath = `/publicapi/v1/booking-funnels/{code}`
|
|
@@ -59,10 +58,6 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
59
58
|
// http bearer authentication required
|
|
60
59
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
60
|
|
|
62
|
-
if (language !== undefined) {
|
|
63
|
-
localVarQueryParameter['language'] = language;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
61
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
62
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
63
|
}
|
|
@@ -93,12 +88,11 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
|
|
|
93
88
|
* @summary Retrieve the booking funnel
|
|
94
89
|
* @param {string} code Unique identifier for the object.
|
|
95
90
|
* @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.
|
|
97
91
|
* @param {*} [options] Override http request option.
|
|
98
92
|
* @throws {RequiredError}
|
|
99
93
|
*/
|
|
100
|
-
async getBookingFunnel(code: string, authorization?: string,
|
|
101
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization,
|
|
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);
|
|
102
96
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
103
97
|
},
|
|
104
98
|
}
|
|
@@ -116,12 +110,11 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
|
|
|
116
110
|
* @summary Retrieve the booking funnel
|
|
117
111
|
* @param {string} code Unique identifier for the object.
|
|
118
112
|
* @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.
|
|
120
113
|
* @param {*} [options] Override http request option.
|
|
121
114
|
* @throws {RequiredError}
|
|
122
115
|
*/
|
|
123
|
-
getBookingFunnel(code: string, authorization?: string,
|
|
124
|
-
return localVarFp.getBookingFunnel(code, authorization,
|
|
116
|
+
getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
|
|
117
|
+
return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
|
|
125
118
|
},
|
|
126
119
|
};
|
|
127
120
|
};
|
|
@@ -145,13 +138,6 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
145
138
|
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
146
139
|
*/
|
|
147
140
|
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
|
|
155
141
|
}
|
|
156
142
|
|
|
157
143
|
/**
|
|
@@ -170,6 +156,6 @@ export class BookingFunnelsApi extends BaseAPI {
|
|
|
170
156
|
* @memberof BookingFunnelsApi
|
|
171
157
|
*/
|
|
172
158
|
public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
|
|
173
|
-
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization,
|
|
159
|
+
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
174
160
|
}
|
|
175
161
|
}
|
package/api/products-api.ts
CHANGED
|
@@ -35,8 +35,6 @@ 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
|
|
40
38
|
import { InsuredObjectClass } from '../models';
|
|
41
39
|
// @ts-ignore
|
|
42
40
|
import { InsuredObjectTypeClass } from '../models';
|
|
@@ -253,12 +251,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
253
251
|
* @summary List insured objects
|
|
254
252
|
* @param {string} productCode
|
|
255
253
|
* @param {string} [authorization] Bearer Token
|
|
256
|
-
* @param {string} [language]
|
|
257
|
-
* @param {number} [productVersionId]
|
|
258
254
|
* @param {*} [options] Override http request option.
|
|
259
255
|
* @throws {RequiredError}
|
|
260
256
|
*/
|
|
261
|
-
getInsuredObjects: async (productCode: string, authorization?: string,
|
|
257
|
+
getInsuredObjects: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
262
258
|
// verify required parameter 'productCode' is not null or undefined
|
|
263
259
|
assertParamExists('getInsuredObjects', 'productCode', productCode)
|
|
264
260
|
const localVarPath = `/publicapi/v1/products/{product_code}/insured-objects`
|
|
@@ -280,14 +276,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
280
276
|
// http bearer authentication required
|
|
281
277
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
282
278
|
|
|
283
|
-
if (language !== undefined) {
|
|
284
|
-
localVarQueryParameter['language'] = language;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
if (productVersionId !== undefined) {
|
|
288
|
-
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
279
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
292
280
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
293
281
|
}
|
|
@@ -304,15 +292,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
304
292
|
};
|
|
305
293
|
},
|
|
306
294
|
/**
|
|
307
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
295
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
308
296
|
* @summary Generate a custom CSS
|
|
309
297
|
* @param {string} productCode
|
|
310
298
|
* @param {string} [authorization] Bearer Token
|
|
311
|
-
* @param {string} [language]
|
|
312
299
|
* @param {*} [options] Override http request option.
|
|
313
300
|
* @throws {RequiredError}
|
|
314
301
|
*/
|
|
315
|
-
getProductCustomCss: async (productCode: string, authorization?: string,
|
|
302
|
+
getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
316
303
|
// verify required parameter 'productCode' is not null or undefined
|
|
317
304
|
assertParamExists('getProductCustomCss', 'productCode', productCode)
|
|
318
305
|
const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
|
|
@@ -334,10 +321,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
334
321
|
// http bearer authentication required
|
|
335
322
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
336
323
|
|
|
337
|
-
if (language !== undefined) {
|
|
338
|
-
localVarQueryParameter['language'] = language;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
324
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
342
325
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
343
326
|
}
|
|
@@ -359,12 +342,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
359
342
|
* @param {string} productCode
|
|
360
343
|
* @param {string} allValues
|
|
361
344
|
* @param {string} [authorization] Bearer Token
|
|
362
|
-
* @param {string} [language]
|
|
363
|
-
* @param {number} [productVersionId]
|
|
364
345
|
* @param {*} [options] Override http request option.
|
|
365
346
|
* @throws {RequiredError}
|
|
366
347
|
*/
|
|
367
|
-
getProductFactors: async (productCode: string, allValues: string, authorization?: string,
|
|
348
|
+
getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
368
349
|
// verify required parameter 'productCode' is not null or undefined
|
|
369
350
|
assertParamExists('getProductFactors', 'productCode', productCode)
|
|
370
351
|
// verify required parameter 'allValues' is not null or undefined
|
|
@@ -392,59 +373,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
392
373
|
localVarQueryParameter['all_values'] = allValues;
|
|
393
374
|
}
|
|
394
375
|
|
|
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
|
-
|
|
448
376
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
449
377
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
450
378
|
}
|
|
@@ -602,26 +530,23 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
602
530
|
* @summary List insured objects
|
|
603
531
|
* @param {string} productCode
|
|
604
532
|
* @param {string} [authorization] Bearer Token
|
|
605
|
-
* @param {string} [language]
|
|
606
|
-
* @param {number} [productVersionId]
|
|
607
533
|
* @param {*} [options] Override http request option.
|
|
608
534
|
* @throws {RequiredError}
|
|
609
535
|
*/
|
|
610
|
-
async getInsuredObjects(productCode: string, authorization?: string,
|
|
611
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization,
|
|
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);
|
|
612
538
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
613
539
|
},
|
|
614
540
|
/**
|
|
615
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
541
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
616
542
|
* @summary Generate a custom CSS
|
|
617
543
|
* @param {string} productCode
|
|
618
544
|
* @param {string} [authorization] Bearer Token
|
|
619
|
-
* @param {string} [language]
|
|
620
545
|
* @param {*} [options] Override http request option.
|
|
621
546
|
* @throws {RequiredError}
|
|
622
547
|
*/
|
|
623
|
-
async getProductCustomCss(productCode: string, authorization?: string,
|
|
624
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization,
|
|
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);
|
|
625
550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
626
551
|
},
|
|
627
552
|
/**
|
|
@@ -630,25 +555,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
630
555
|
* @param {string} productCode
|
|
631
556
|
* @param {string} allValues
|
|
632
557
|
* @param {string} [authorization] Bearer Token
|
|
633
|
-
* @param {string} [language]
|
|
634
|
-
* @param {number} [productVersionId]
|
|
635
558
|
* @param {*} [options] Override http request option.
|
|
636
559
|
* @throws {RequiredError}
|
|
637
560
|
*/
|
|
638
|
-
async getProductFactors(productCode: string, allValues: string, authorization?: string,
|
|
639
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization,
|
|
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);
|
|
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);
|
|
652
563
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
653
564
|
},
|
|
654
565
|
/**
|
|
@@ -731,25 +642,22 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
731
642
|
* @summary List insured objects
|
|
732
643
|
* @param {string} productCode
|
|
733
644
|
* @param {string} [authorization] Bearer Token
|
|
734
|
-
* @param {string} [language]
|
|
735
|
-
* @param {number} [productVersionId]
|
|
736
645
|
* @param {*} [options] Override http request option.
|
|
737
646
|
* @throws {RequiredError}
|
|
738
647
|
*/
|
|
739
|
-
getInsuredObjects(productCode: string, authorization?: string,
|
|
740
|
-
return localVarFp.getInsuredObjects(productCode, authorization,
|
|
648
|
+
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
649
|
+
return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
741
650
|
},
|
|
742
651
|
/**
|
|
743
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
652
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
744
653
|
* @summary Generate a custom CSS
|
|
745
654
|
* @param {string} productCode
|
|
746
655
|
* @param {string} [authorization] Bearer Token
|
|
747
|
-
* @param {string} [language]
|
|
748
656
|
* @param {*} [options] Override http request option.
|
|
749
657
|
* @throws {RequiredError}
|
|
750
658
|
*/
|
|
751
|
-
getProductCustomCss(productCode: string, authorization?: string,
|
|
752
|
-
return localVarFp.getProductCustomCss(productCode, authorization,
|
|
659
|
+
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
660
|
+
return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
753
661
|
},
|
|
754
662
|
/**
|
|
755
663
|
* 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.
|
|
@@ -757,24 +665,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
757
665
|
* @param {string} productCode
|
|
758
666
|
* @param {string} allValues
|
|
759
667
|
* @param {string} [authorization] Bearer Token
|
|
760
|
-
* @param {string} [language]
|
|
761
|
-
* @param {number} [productVersionId]
|
|
762
668
|
* @param {*} [options] Override http request option.
|
|
763
669
|
* @throws {RequiredError}
|
|
764
670
|
*/
|
|
765
|
-
getProductFactors(productCode: string, allValues: string, authorization?: string,
|
|
766
|
-
return localVarFp.getProductFactors(productCode, allValues, authorization,
|
|
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));
|
|
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));
|
|
778
673
|
},
|
|
779
674
|
/**
|
|
780
675
|
* 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.
|
|
@@ -920,20 +815,6 @@ export interface ProductsApiGetInsuredObjectsRequest {
|
|
|
920
815
|
* @memberof ProductsApiGetInsuredObjects
|
|
921
816
|
*/
|
|
922
817
|
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
|
|
937
818
|
}
|
|
938
819
|
|
|
939
820
|
/**
|
|
@@ -955,13 +836,6 @@ export interface ProductsApiGetProductCustomCssRequest {
|
|
|
955
836
|
* @memberof ProductsApiGetProductCustomCss
|
|
956
837
|
*/
|
|
957
838
|
readonly authorization?: string
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
*
|
|
961
|
-
* @type {string}
|
|
962
|
-
* @memberof ProductsApiGetProductCustomCss
|
|
963
|
-
*/
|
|
964
|
-
readonly language?: string
|
|
965
839
|
}
|
|
966
840
|
|
|
967
841
|
/**
|
|
@@ -990,41 +864,6 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
990
864
|
* @memberof ProductsApiGetProductFactors
|
|
991
865
|
*/
|
|
992
866
|
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
|
|
1028
867
|
}
|
|
1029
868
|
|
|
1030
869
|
/**
|
|
@@ -1154,11 +993,11 @@ export class ProductsApi extends BaseAPI {
|
|
|
1154
993
|
* @memberof ProductsApi
|
|
1155
994
|
*/
|
|
1156
995
|
public getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig) {
|
|
1157
|
-
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization,
|
|
996
|
+
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1158
997
|
}
|
|
1159
998
|
|
|
1160
999
|
/**
|
|
1161
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
1000
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
1162
1001
|
* @summary Generate a custom CSS
|
|
1163
1002
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
1164
1003
|
* @param {*} [options] Override http request option.
|
|
@@ -1166,7 +1005,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1166
1005
|
* @memberof ProductsApi
|
|
1167
1006
|
*/
|
|
1168
1007
|
public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
|
|
1169
|
-
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization,
|
|
1008
|
+
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1170
1009
|
}
|
|
1171
1010
|
|
|
1172
1011
|
/**
|
|
@@ -1178,19 +1017,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1178
1017
|
* @memberof ProductsApi
|
|
1179
1018
|
*/
|
|
1180
1019
|
public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
|
|
1181
|
-
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization,
|
|
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));
|
|
1020
|
+
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1194
1021
|
}
|
|
1195
1022
|
|
|
1196
1023
|
/**
|
|
@@ -23,11 +23,10 @@ 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.
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getBookingFunnel: (code: string, authorization?: string,
|
|
29
|
+
getBookingFunnel: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
30
|
};
|
|
32
31
|
/**
|
|
33
32
|
* BookingFunnelsApi - functional programming interface
|
|
@@ -39,11 +38,10 @@ export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
|
|
|
39
38
|
* @summary Retrieve the booking funnel
|
|
40
39
|
* @param {string} code Unique identifier for the object.
|
|
41
40
|
* @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.
|
|
43
41
|
* @param {*} [options] Override http request option.
|
|
44
42
|
* @throws {RequiredError}
|
|
45
43
|
*/
|
|
46
|
-
getBookingFunnel(code: string, authorization?: string,
|
|
44
|
+
getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>>;
|
|
47
45
|
};
|
|
48
46
|
/**
|
|
49
47
|
* BookingFunnelsApi - factory interface
|
|
@@ -55,11 +53,10 @@ export declare const BookingFunnelsApiFactory: (configuration?: Configuration, b
|
|
|
55
53
|
* @summary Retrieve the booking funnel
|
|
56
54
|
* @param {string} code Unique identifier for the object.
|
|
57
55
|
* @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.
|
|
59
56
|
* @param {*} [options] Override http request option.
|
|
60
57
|
* @throws {RequiredError}
|
|
61
58
|
*/
|
|
62
|
-
getBookingFunnel(code: string, authorization?: string,
|
|
59
|
+
getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass>;
|
|
63
60
|
};
|
|
64
61
|
/**
|
|
65
62
|
* Request parameters for getBookingFunnel operation in BookingFunnelsApi.
|
|
@@ -79,12 +76,6 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
79
76
|
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
80
77
|
*/
|
|
81
78
|
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;
|
|
88
79
|
}
|
|
89
80
|
/**
|
|
90
81
|
* BookingFunnelsApi - object-oriented interface
|
|
@@ -97,11 +97,10 @@ 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.
|
|
101
100
|
* @param {*} [options] Override http request option.
|
|
102
101
|
* @throws {RequiredError}
|
|
103
102
|
*/
|
|
104
|
-
getBookingFunnel: function (code, authorization,
|
|
103
|
+
getBookingFunnel: function (code, authorization, options) {
|
|
105
104
|
if (options === void 0) { options = {}; }
|
|
106
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -127,9 +126,6 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
127
126
|
// authentication bearer required
|
|
128
127
|
// http bearer authentication required
|
|
129
128
|
_a.sent();
|
|
130
|
-
if (language !== undefined) {
|
|
131
|
-
localVarQueryParameter['language'] = language;
|
|
132
|
-
}
|
|
133
129
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
130
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
131
|
}
|
|
@@ -159,16 +155,15 @@ var BookingFunnelsApiFp = function (configuration) {
|
|
|
159
155
|
* @summary Retrieve the booking funnel
|
|
160
156
|
* @param {string} code Unique identifier for the object.
|
|
161
157
|
* @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.
|
|
163
158
|
* @param {*} [options] Override http request option.
|
|
164
159
|
* @throws {RequiredError}
|
|
165
160
|
*/
|
|
166
|
-
getBookingFunnel: function (code, authorization,
|
|
161
|
+
getBookingFunnel: function (code, authorization, options) {
|
|
167
162
|
return __awaiter(this, void 0, void 0, function () {
|
|
168
163
|
var localVarAxiosArgs;
|
|
169
164
|
return __generator(this, function (_a) {
|
|
170
165
|
switch (_a.label) {
|
|
171
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization,
|
|
166
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
|
|
172
167
|
case 1:
|
|
173
168
|
localVarAxiosArgs = _a.sent();
|
|
174
169
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -191,12 +186,11 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
|
|
|
191
186
|
* @summary Retrieve the booking funnel
|
|
192
187
|
* @param {string} code Unique identifier for the object.
|
|
193
188
|
* @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.
|
|
195
189
|
* @param {*} [options] Override http request option.
|
|
196
190
|
* @throws {RequiredError}
|
|
197
191
|
*/
|
|
198
|
-
getBookingFunnel: function (code, authorization,
|
|
199
|
-
return localVarFp.getBookingFunnel(code, authorization,
|
|
192
|
+
getBookingFunnel: function (code, authorization, options) {
|
|
193
|
+
return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
200
194
|
},
|
|
201
195
|
};
|
|
202
196
|
};
|
|
@@ -222,7 +216,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
|
|
|
222
216
|
*/
|
|
223
217
|
BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
|
|
224
218
|
var _this = this;
|
|
225
|
-
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization,
|
|
219
|
+
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
226
220
|
};
|
|
227
221
|
return BookingFunnelsApi;
|
|
228
222
|
}(base_1.BaseAPI));
|