@emilgroup/public-api-sdk-node 1.42.1-beta.5 → 1.42.1-beta.7
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/partner-class.d.ts +0 -6
- 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/partner-class.ts +0 -6
- 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-node@1.42.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.42.1-beta.7 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.42.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.42.1-beta.7
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -37,11 +37,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
37
37
|
* @summary Retrieve the booking funnel
|
|
38
38
|
* @param {string} code Unique identifier for the object.
|
|
39
39
|
* @param {string} [authorization] Bearer Token
|
|
40
|
-
* @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
40
|
* @param {*} [options] Override http request option.
|
|
42
41
|
* @throws {RequiredError}
|
|
43
42
|
*/
|
|
44
|
-
getBookingFunnel: async (code: string, authorization?: string,
|
|
43
|
+
getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
44
|
// verify required parameter 'code' is not null or undefined
|
|
46
45
|
assertParamExists('getBookingFunnel', 'code', code)
|
|
47
46
|
const localVarPath = `/publicapi/v1/booking-funnels/{code}`
|
|
@@ -63,10 +62,6 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
63
62
|
// http bearer authentication required
|
|
64
63
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
64
|
|
|
66
|
-
if (language !== undefined) {
|
|
67
|
-
localVarQueryParameter['language'] = language;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
65
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
66
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
67
|
}
|
|
@@ -97,12 +92,11 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
|
|
|
97
92
|
* @summary Retrieve the booking funnel
|
|
98
93
|
* @param {string} code Unique identifier for the object.
|
|
99
94
|
* @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
95
|
* @param {*} [options] Override http request option.
|
|
102
96
|
* @throws {RequiredError}
|
|
103
97
|
*/
|
|
104
|
-
async getBookingFunnel(code: string, authorization?: string,
|
|
105
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization,
|
|
98
|
+
async getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, options);
|
|
106
100
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
107
101
|
},
|
|
108
102
|
}
|
|
@@ -120,12 +114,11 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
|
|
|
120
114
|
* @summary Retrieve the booking funnel
|
|
121
115
|
* @param {string} code Unique identifier for the object.
|
|
122
116
|
* @param {string} [authorization] Bearer Token
|
|
123
|
-
* @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.
|
|
124
117
|
* @param {*} [options] Override http request option.
|
|
125
118
|
* @throws {RequiredError}
|
|
126
119
|
*/
|
|
127
|
-
getBookingFunnel(code: string, authorization?: string,
|
|
128
|
-
return localVarFp.getBookingFunnel(code, authorization,
|
|
120
|
+
getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
|
|
121
|
+
return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
|
|
129
122
|
},
|
|
130
123
|
};
|
|
131
124
|
};
|
|
@@ -149,13 +142,6 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
149
142
|
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
150
143
|
*/
|
|
151
144
|
readonly authorization?: string
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* 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.
|
|
155
|
-
* @type {string}
|
|
156
|
-
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
157
|
-
*/
|
|
158
|
-
readonly language?: string
|
|
159
145
|
}
|
|
160
146
|
|
|
161
147
|
/**
|
|
@@ -174,6 +160,6 @@ export class BookingFunnelsApi extends BaseAPI {
|
|
|
174
160
|
* @memberof BookingFunnelsApi
|
|
175
161
|
*/
|
|
176
162
|
public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
|
|
177
|
-
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization,
|
|
163
|
+
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
178
164
|
}
|
|
179
165
|
}
|
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';
|
|
@@ -257,12 +255,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
257
255
|
* @summary List insured objects
|
|
258
256
|
* @param {string} productCode
|
|
259
257
|
* @param {string} [authorization] Bearer Token
|
|
260
|
-
* @param {string} [language]
|
|
261
|
-
* @param {number} [productVersionId]
|
|
262
258
|
* @param {*} [options] Override http request option.
|
|
263
259
|
* @throws {RequiredError}
|
|
264
260
|
*/
|
|
265
|
-
getInsuredObjects: async (productCode: string, authorization?: string,
|
|
261
|
+
getInsuredObjects: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
266
262
|
// verify required parameter 'productCode' is not null or undefined
|
|
267
263
|
assertParamExists('getInsuredObjects', 'productCode', productCode)
|
|
268
264
|
const localVarPath = `/publicapi/v1/products/{product_code}/insured-objects`
|
|
@@ -284,14 +280,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
284
280
|
// http bearer authentication required
|
|
285
281
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
286
282
|
|
|
287
|
-
if (language !== undefined) {
|
|
288
|
-
localVarQueryParameter['language'] = language;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (productVersionId !== undefined) {
|
|
292
|
-
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
283
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
296
284
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
297
285
|
}
|
|
@@ -308,15 +296,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
308
296
|
};
|
|
309
297
|
},
|
|
310
298
|
/**
|
|
311
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
299
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
312
300
|
* @summary Generate a custom CSS
|
|
313
301
|
* @param {string} productCode
|
|
314
302
|
* @param {string} [authorization] Bearer Token
|
|
315
|
-
* @param {string} [language]
|
|
316
303
|
* @param {*} [options] Override http request option.
|
|
317
304
|
* @throws {RequiredError}
|
|
318
305
|
*/
|
|
319
|
-
getProductCustomCss: async (productCode: string, authorization?: string,
|
|
306
|
+
getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
320
307
|
// verify required parameter 'productCode' is not null or undefined
|
|
321
308
|
assertParamExists('getProductCustomCss', 'productCode', productCode)
|
|
322
309
|
const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
|
|
@@ -338,10 +325,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
338
325
|
// http bearer authentication required
|
|
339
326
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
340
327
|
|
|
341
|
-
if (language !== undefined) {
|
|
342
|
-
localVarQueryParameter['language'] = language;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
328
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
346
329
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
347
330
|
}
|
|
@@ -363,12 +346,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
363
346
|
* @param {string} productCode
|
|
364
347
|
* @param {string} allValues
|
|
365
348
|
* @param {string} [authorization] Bearer Token
|
|
366
|
-
* @param {string} [language]
|
|
367
|
-
* @param {number} [productVersionId]
|
|
368
349
|
* @param {*} [options] Override http request option.
|
|
369
350
|
* @throws {RequiredError}
|
|
370
351
|
*/
|
|
371
|
-
getProductFactors: async (productCode: string, allValues: string, authorization?: string,
|
|
352
|
+
getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
372
353
|
// verify required parameter 'productCode' is not null or undefined
|
|
373
354
|
assertParamExists('getProductFactors', 'productCode', productCode)
|
|
374
355
|
// verify required parameter 'allValues' is not null or undefined
|
|
@@ -396,59 +377,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
396
377
|
localVarQueryParameter['all_values'] = allValues;
|
|
397
378
|
}
|
|
398
379
|
|
|
399
|
-
if (language !== undefined) {
|
|
400
|
-
localVarQueryParameter['language'] = language;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
if (productVersionId !== undefined) {
|
|
404
|
-
localVarQueryParameter['product_version_id'] = productVersionId;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
408
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
414
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
415
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
416
|
-
|
|
417
|
-
return {
|
|
418
|
-
url: toPathString(localVarUrlObj),
|
|
419
|
-
options: localVarRequestOptions,
|
|
420
|
-
};
|
|
421
|
-
},
|
|
422
|
-
/**
|
|
423
|
-
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
424
|
-
* @summary Retrieve the product languages
|
|
425
|
-
* @param {string} productCode
|
|
426
|
-
* @param {string} [authorization] Bearer Token
|
|
427
|
-
* @param {*} [options] Override http request option.
|
|
428
|
-
* @throws {RequiredError}
|
|
429
|
-
*/
|
|
430
|
-
getProductLanguages: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
431
|
-
// verify required parameter 'productCode' is not null or undefined
|
|
432
|
-
assertParamExists('getProductLanguages', 'productCode', productCode)
|
|
433
|
-
const localVarPath = `/publicapi/v1/products/{product_code}/languages`
|
|
434
|
-
.replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
|
|
435
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
436
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
437
|
-
let baseOptions;
|
|
438
|
-
let baseAccessToken;
|
|
439
|
-
if (configuration) {
|
|
440
|
-
baseOptions = configuration.baseOptions;
|
|
441
|
-
baseAccessToken = configuration.accessToken;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
445
|
-
const localVarHeaderParameter = {} as any;
|
|
446
|
-
const localVarQueryParameter = {} as any;
|
|
447
|
-
|
|
448
|
-
// authentication bearer required
|
|
449
|
-
// http bearer authentication required
|
|
450
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
451
|
-
|
|
452
380
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
453
381
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
454
382
|
}
|
|
@@ -606,26 +534,23 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
606
534
|
* @summary List insured objects
|
|
607
535
|
* @param {string} productCode
|
|
608
536
|
* @param {string} [authorization] Bearer Token
|
|
609
|
-
* @param {string} [language]
|
|
610
|
-
* @param {number} [productVersionId]
|
|
611
537
|
* @param {*} [options] Override http request option.
|
|
612
538
|
* @throws {RequiredError}
|
|
613
539
|
*/
|
|
614
|
-
async getInsuredObjects(productCode: string, authorization?: string,
|
|
615
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization,
|
|
540
|
+
async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
|
|
541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
|
|
616
542
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
617
543
|
},
|
|
618
544
|
/**
|
|
619
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
545
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
620
546
|
* @summary Generate a custom CSS
|
|
621
547
|
* @param {string} productCode
|
|
622
548
|
* @param {string} [authorization] Bearer Token
|
|
623
|
-
* @param {string} [language]
|
|
624
549
|
* @param {*} [options] Override http request option.
|
|
625
550
|
* @throws {RequiredError}
|
|
626
551
|
*/
|
|
627
|
-
async getProductCustomCss(productCode: string, authorization?: string,
|
|
628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization,
|
|
552
|
+
async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
|
|
553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
|
|
629
554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
630
555
|
},
|
|
631
556
|
/**
|
|
@@ -634,25 +559,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
634
559
|
* @param {string} productCode
|
|
635
560
|
* @param {string} allValues
|
|
636
561
|
* @param {string} [authorization] Bearer Token
|
|
637
|
-
* @param {string} [language]
|
|
638
|
-
* @param {number} [productVersionId]
|
|
639
562
|
* @param {*} [options] Override http request option.
|
|
640
563
|
* @throws {RequiredError}
|
|
641
564
|
*/
|
|
642
|
-
async getProductFactors(productCode: string, allValues: string, authorization?: string,
|
|
643
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization,
|
|
644
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
645
|
-
},
|
|
646
|
-
/**
|
|
647
|
-
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
648
|
-
* @summary Retrieve the product languages
|
|
649
|
-
* @param {string} productCode
|
|
650
|
-
* @param {string} [authorization] Bearer Token
|
|
651
|
-
* @param {*} [options] Override http request option.
|
|
652
|
-
* @throws {RequiredError}
|
|
653
|
-
*/
|
|
654
|
-
async getProductLanguages(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguagesResponseClass>> {
|
|
655
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options);
|
|
565
|
+
async getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
|
|
566
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
|
|
656
567
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
657
568
|
},
|
|
658
569
|
/**
|
|
@@ -735,25 +646,22 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
735
646
|
* @summary List insured objects
|
|
736
647
|
* @param {string} productCode
|
|
737
648
|
* @param {string} [authorization] Bearer Token
|
|
738
|
-
* @param {string} [language]
|
|
739
|
-
* @param {number} [productVersionId]
|
|
740
649
|
* @param {*} [options] Override http request option.
|
|
741
650
|
* @throws {RequiredError}
|
|
742
651
|
*/
|
|
743
|
-
getInsuredObjects(productCode: string, authorization?: string,
|
|
744
|
-
return localVarFp.getInsuredObjects(productCode, authorization,
|
|
652
|
+
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
653
|
+
return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
745
654
|
},
|
|
746
655
|
/**
|
|
747
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
656
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
748
657
|
* @summary Generate a custom CSS
|
|
749
658
|
* @param {string} productCode
|
|
750
659
|
* @param {string} [authorization] Bearer Token
|
|
751
|
-
* @param {string} [language]
|
|
752
660
|
* @param {*} [options] Override http request option.
|
|
753
661
|
* @throws {RequiredError}
|
|
754
662
|
*/
|
|
755
|
-
getProductCustomCss(productCode: string, authorization?: string,
|
|
756
|
-
return localVarFp.getProductCustomCss(productCode, authorization,
|
|
663
|
+
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
664
|
+
return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
757
665
|
},
|
|
758
666
|
/**
|
|
759
667
|
* 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.
|
|
@@ -761,24 +669,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
761
669
|
* @param {string} productCode
|
|
762
670
|
* @param {string} allValues
|
|
763
671
|
* @param {string} [authorization] Bearer Token
|
|
764
|
-
* @param {string} [language]
|
|
765
|
-
* @param {number} [productVersionId]
|
|
766
672
|
* @param {*} [options] Override http request option.
|
|
767
673
|
* @throws {RequiredError}
|
|
768
674
|
*/
|
|
769
|
-
getProductFactors(productCode: string, allValues: string, authorization?: string,
|
|
770
|
-
return localVarFp.getProductFactors(productCode, allValues, authorization,
|
|
771
|
-
},
|
|
772
|
-
/**
|
|
773
|
-
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
774
|
-
* @summary Retrieve the product languages
|
|
775
|
-
* @param {string} productCode
|
|
776
|
-
* @param {string} [authorization] Bearer Token
|
|
777
|
-
* @param {*} [options] Override http request option.
|
|
778
|
-
* @throws {RequiredError}
|
|
779
|
-
*/
|
|
780
|
-
getProductLanguages(productCode: string, authorization?: string, options?: any): AxiosPromise<GetProductLanguagesResponseClass> {
|
|
781
|
-
return localVarFp.getProductLanguages(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
675
|
+
getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
|
|
676
|
+
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
782
677
|
},
|
|
783
678
|
/**
|
|
784
679
|
* 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.
|
|
@@ -924,20 +819,6 @@ export interface ProductsApiGetInsuredObjectsRequest {
|
|
|
924
819
|
* @memberof ProductsApiGetInsuredObjects
|
|
925
820
|
*/
|
|
926
821
|
readonly authorization?: string
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
*
|
|
930
|
-
* @type {string}
|
|
931
|
-
* @memberof ProductsApiGetInsuredObjects
|
|
932
|
-
*/
|
|
933
|
-
readonly language?: string
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
*
|
|
937
|
-
* @type {number}
|
|
938
|
-
* @memberof ProductsApiGetInsuredObjects
|
|
939
|
-
*/
|
|
940
|
-
readonly productVersionId?: number
|
|
941
822
|
}
|
|
942
823
|
|
|
943
824
|
/**
|
|
@@ -959,13 +840,6 @@ export interface ProductsApiGetProductCustomCssRequest {
|
|
|
959
840
|
* @memberof ProductsApiGetProductCustomCss
|
|
960
841
|
*/
|
|
961
842
|
readonly authorization?: string
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
*
|
|
965
|
-
* @type {string}
|
|
966
|
-
* @memberof ProductsApiGetProductCustomCss
|
|
967
|
-
*/
|
|
968
|
-
readonly language?: string
|
|
969
843
|
}
|
|
970
844
|
|
|
971
845
|
/**
|
|
@@ -994,41 +868,6 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
994
868
|
* @memberof ProductsApiGetProductFactors
|
|
995
869
|
*/
|
|
996
870
|
readonly authorization?: string
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
*
|
|
1000
|
-
* @type {string}
|
|
1001
|
-
* @memberof ProductsApiGetProductFactors
|
|
1002
|
-
*/
|
|
1003
|
-
readonly language?: string
|
|
1004
|
-
|
|
1005
|
-
/**
|
|
1006
|
-
*
|
|
1007
|
-
* @type {number}
|
|
1008
|
-
* @memberof ProductsApiGetProductFactors
|
|
1009
|
-
*/
|
|
1010
|
-
readonly productVersionId?: number
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Request parameters for getProductLanguages operation in ProductsApi.
|
|
1015
|
-
* @export
|
|
1016
|
-
* @interface ProductsApiGetProductLanguagesRequest
|
|
1017
|
-
*/
|
|
1018
|
-
export interface ProductsApiGetProductLanguagesRequest {
|
|
1019
|
-
/**
|
|
1020
|
-
*
|
|
1021
|
-
* @type {string}
|
|
1022
|
-
* @memberof ProductsApiGetProductLanguages
|
|
1023
|
-
*/
|
|
1024
|
-
readonly productCode: string
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* Bearer Token
|
|
1028
|
-
* @type {string}
|
|
1029
|
-
* @memberof ProductsApiGetProductLanguages
|
|
1030
|
-
*/
|
|
1031
|
-
readonly authorization?: string
|
|
1032
871
|
}
|
|
1033
872
|
|
|
1034
873
|
/**
|
|
@@ -1158,11 +997,11 @@ export class ProductsApi extends BaseAPI {
|
|
|
1158
997
|
* @memberof ProductsApi
|
|
1159
998
|
*/
|
|
1160
999
|
public getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig) {
|
|
1161
|
-
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization,
|
|
1000
|
+
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1162
1001
|
}
|
|
1163
1002
|
|
|
1164
1003
|
/**
|
|
1165
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
1004
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
1166
1005
|
* @summary Generate a custom CSS
|
|
1167
1006
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
1168
1007
|
* @param {*} [options] Override http request option.
|
|
@@ -1170,7 +1009,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1170
1009
|
* @memberof ProductsApi
|
|
1171
1010
|
*/
|
|
1172
1011
|
public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
|
|
1173
|
-
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization,
|
|
1012
|
+
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1174
1013
|
}
|
|
1175
1014
|
|
|
1176
1015
|
/**
|
|
@@ -1182,19 +1021,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1182
1021
|
* @memberof ProductsApi
|
|
1183
1022
|
*/
|
|
1184
1023
|
public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
|
|
1185
|
-
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization,
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
/**
|
|
1189
|
-
* This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
|
|
1190
|
-
* @summary Retrieve the product languages
|
|
1191
|
-
* @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
|
|
1192
|
-
* @param {*} [options] Override http request option.
|
|
1193
|
-
* @throws {RequiredError}
|
|
1194
|
-
* @memberof ProductsApi
|
|
1195
|
-
*/
|
|
1196
|
-
public getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig) {
|
|
1197
|
-
return ProductsApiFp(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1024
|
+
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1198
1025
|
}
|
|
1199
1026
|
|
|
1200
1027
|
/**
|
|
@@ -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
|
|
@@ -101,11 +101,10 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* @summary Retrieve the booking funnel
|
|
102
102
|
* @param {string} code Unique identifier for the object.
|
|
103
103
|
* @param {string} [authorization] Bearer Token
|
|
104
|
-
* @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.
|
|
105
104
|
* @param {*} [options] Override http request option.
|
|
106
105
|
* @throws {RequiredError}
|
|
107
106
|
*/
|
|
108
|
-
getBookingFunnel: function (code, authorization,
|
|
107
|
+
getBookingFunnel: function (code, authorization, options) {
|
|
109
108
|
if (options === void 0) { options = {}; }
|
|
110
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -131,9 +130,6 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
131
130
|
// authentication bearer required
|
|
132
131
|
// http bearer authentication required
|
|
133
132
|
_a.sent();
|
|
134
|
-
if (language !== undefined) {
|
|
135
|
-
localVarQueryParameter['language'] = language;
|
|
136
|
-
}
|
|
137
133
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
138
134
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
139
135
|
}
|
|
@@ -163,16 +159,15 @@ var BookingFunnelsApiFp = function (configuration) {
|
|
|
163
159
|
* @summary Retrieve the booking funnel
|
|
164
160
|
* @param {string} code Unique identifier for the object.
|
|
165
161
|
* @param {string} [authorization] Bearer Token
|
|
166
|
-
* @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.
|
|
167
162
|
* @param {*} [options] Override http request option.
|
|
168
163
|
* @throws {RequiredError}
|
|
169
164
|
*/
|
|
170
|
-
getBookingFunnel: function (code, authorization,
|
|
165
|
+
getBookingFunnel: function (code, authorization, options) {
|
|
171
166
|
return __awaiter(this, void 0, void 0, function () {
|
|
172
167
|
var localVarAxiosArgs;
|
|
173
168
|
return __generator(this, function (_a) {
|
|
174
169
|
switch (_a.label) {
|
|
175
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization,
|
|
170
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
|
|
176
171
|
case 1:
|
|
177
172
|
localVarAxiosArgs = _a.sent();
|
|
178
173
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -195,12 +190,11 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
|
|
|
195
190
|
* @summary Retrieve the booking funnel
|
|
196
191
|
* @param {string} code Unique identifier for the object.
|
|
197
192
|
* @param {string} [authorization] Bearer Token
|
|
198
|
-
* @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.
|
|
199
193
|
* @param {*} [options] Override http request option.
|
|
200
194
|
* @throws {RequiredError}
|
|
201
195
|
*/
|
|
202
|
-
getBookingFunnel: function (code, authorization,
|
|
203
|
-
return localVarFp.getBookingFunnel(code, authorization,
|
|
196
|
+
getBookingFunnel: function (code, authorization, options) {
|
|
197
|
+
return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
204
198
|
},
|
|
205
199
|
};
|
|
206
200
|
};
|
|
@@ -226,7 +220,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
|
|
|
226
220
|
*/
|
|
227
221
|
BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
|
|
228
222
|
var _this = this;
|
|
229
|
-
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization,
|
|
223
|
+
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
230
224
|
};
|
|
231
225
|
return BookingFunnelsApi;
|
|
232
226
|
}(base_1.BaseAPI));
|