@emilgroup/public-api-sdk-node 1.42.1-beta.0 → 1.42.1-beta.10
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/README.md +2 -2
- package/api/booking-funnels-api.ts +20 -6
- package/api/products-api.ts +24 -10
- 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 +16 -7
- package/dist/api/products-api.js +16 -10
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/product-version-class.d.ts +6 -0
- package/models/partner-class.ts +6 -0
- package/models/product-version-class.ts +6 -0
- package/package.json +1 -1
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.10 --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.10
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -37,10 +37,11 @@ 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.
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
getBookingFunnel: async (code: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
45
|
// verify required parameter 'code' is not null or undefined
|
|
45
46
|
assertParamExists('getBookingFunnel', 'code', code)
|
|
46
47
|
const localVarPath = `/publicapi/v1/booking-funnels/{code}`
|
|
@@ -62,6 +63,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
62
63
|
// http bearer authentication required
|
|
63
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
64
65
|
|
|
66
|
+
if (language !== undefined) {
|
|
67
|
+
localVarQueryParameter['language'] = language;
|
|
68
|
+
}
|
|
69
|
+
|
|
65
70
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
66
71
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
67
72
|
}
|
|
@@ -92,11 +97,12 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
|
|
|
92
97
|
* @summary Retrieve the booking funnel
|
|
93
98
|
* @param {string} code Unique identifier for the object.
|
|
94
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.
|
|
95
101
|
* @param {*} [options] Override http request option.
|
|
96
102
|
* @throws {RequiredError}
|
|
97
103
|
*/
|
|
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);
|
|
104
|
+
async getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
|
|
105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options);
|
|
100
106
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
107
|
},
|
|
102
108
|
}
|
|
@@ -114,11 +120,12 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
|
|
|
114
120
|
* @summary Retrieve the booking funnel
|
|
115
121
|
* @param {string} code Unique identifier for the object.
|
|
116
122
|
* @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.
|
|
117
124
|
* @param {*} [options] Override http request option.
|
|
118
125
|
* @throws {RequiredError}
|
|
119
126
|
*/
|
|
120
|
-
getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
|
|
121
|
-
return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
|
|
127
|
+
getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
|
|
128
|
+
return localVarFp.getBookingFunnel(code, authorization, language, options).then((request) => request(axios, basePath));
|
|
122
129
|
},
|
|
123
130
|
};
|
|
124
131
|
};
|
|
@@ -142,6 +149,13 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
142
149
|
* @memberof BookingFunnelsApiGetBookingFunnel
|
|
143
150
|
*/
|
|
144
151
|
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
|
|
145
159
|
}
|
|
146
160
|
|
|
147
161
|
/**
|
|
@@ -160,6 +174,6 @@ export class BookingFunnelsApi extends BaseAPI {
|
|
|
160
174
|
* @memberof BookingFunnelsApi
|
|
161
175
|
*/
|
|
162
176
|
public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
|
|
163
|
-
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
177
|
+
return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
164
178
|
}
|
|
165
179
|
}
|
package/api/products-api.ts
CHANGED
|
@@ -308,14 +308,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
308
308
|
};
|
|
309
309
|
},
|
|
310
310
|
/**
|
|
311
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
311
|
+
* 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.
|
|
312
312
|
* @summary Generate a custom CSS
|
|
313
313
|
* @param {string} productCode
|
|
314
314
|
* @param {string} [authorization] Bearer Token
|
|
315
|
+
* @param {string} [language]
|
|
315
316
|
* @param {*} [options] Override http request option.
|
|
316
317
|
* @throws {RequiredError}
|
|
317
318
|
*/
|
|
318
|
-
getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
319
|
+
getProductCustomCss: async (productCode: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
319
320
|
// verify required parameter 'productCode' is not null or undefined
|
|
320
321
|
assertParamExists('getProductCustomCss', 'productCode', productCode)
|
|
321
322
|
const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
|
|
@@ -337,6 +338,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
337
338
|
// http bearer authentication required
|
|
338
339
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
340
|
|
|
341
|
+
if (language !== undefined) {
|
|
342
|
+
localVarQueryParameter['language'] = language;
|
|
343
|
+
}
|
|
344
|
+
|
|
340
345
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
346
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
342
347
|
}
|
|
@@ -611,15 +616,16 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
611
616
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
612
617
|
},
|
|
613
618
|
/**
|
|
614
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
619
|
+
* 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.
|
|
615
620
|
* @summary Generate a custom CSS
|
|
616
621
|
* @param {string} productCode
|
|
617
622
|
* @param {string} [authorization] Bearer Token
|
|
623
|
+
* @param {string} [language]
|
|
618
624
|
* @param {*} [options] Override http request option.
|
|
619
625
|
* @throws {RequiredError}
|
|
620
626
|
*/
|
|
621
|
-
async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
|
|
622
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
|
|
627
|
+
async getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options);
|
|
623
629
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
624
630
|
},
|
|
625
631
|
/**
|
|
@@ -738,15 +744,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
738
744
|
return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
|
|
739
745
|
},
|
|
740
746
|
/**
|
|
741
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
747
|
+
* 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.
|
|
742
748
|
* @summary Generate a custom CSS
|
|
743
749
|
* @param {string} productCode
|
|
744
750
|
* @param {string} [authorization] Bearer Token
|
|
751
|
+
* @param {string} [language]
|
|
745
752
|
* @param {*} [options] Override http request option.
|
|
746
753
|
* @throws {RequiredError}
|
|
747
754
|
*/
|
|
748
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
749
|
-
return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
755
|
+
getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
756
|
+
return localVarFp.getProductCustomCss(productCode, authorization, language, options).then((request) => request(axios, basePath));
|
|
750
757
|
},
|
|
751
758
|
/**
|
|
752
759
|
* 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.
|
|
@@ -952,6 +959,13 @@ export interface ProductsApiGetProductCustomCssRequest {
|
|
|
952
959
|
* @memberof ProductsApiGetProductCustomCss
|
|
953
960
|
*/
|
|
954
961
|
readonly authorization?: string
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
*
|
|
965
|
+
* @type {string}
|
|
966
|
+
* @memberof ProductsApiGetProductCustomCss
|
|
967
|
+
*/
|
|
968
|
+
readonly language?: string
|
|
955
969
|
}
|
|
956
970
|
|
|
957
971
|
/**
|
|
@@ -1148,7 +1162,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1148
1162
|
}
|
|
1149
1163
|
|
|
1150
1164
|
/**
|
|
1151
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
1165
|
+
* 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.
|
|
1152
1166
|
* @summary Generate a custom CSS
|
|
1153
1167
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
1154
1168
|
* @param {*} [options] Override http request option.
|
|
@@ -1156,7 +1170,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
1156
1170
|
* @memberof ProductsApi
|
|
1157
1171
|
*/
|
|
1158
1172
|
public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
|
|
1159
|
-
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1173
|
+
return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
1160
1174
|
}
|
|
1161
1175
|
|
|
1162
1176
|
/**
|
|
@@ -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
|
|
@@ -101,10 +101,11 @@ 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.
|
|
104
105
|
* @param {*} [options] Override http request option.
|
|
105
106
|
* @throws {RequiredError}
|
|
106
107
|
*/
|
|
107
|
-
getBookingFunnel: function (code, authorization, options) {
|
|
108
|
+
getBookingFunnel: function (code, authorization, language, options) {
|
|
108
109
|
if (options === void 0) { options = {}; }
|
|
109
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
111
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -130,6 +131,9 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
130
131
|
// authentication bearer required
|
|
131
132
|
// http bearer authentication required
|
|
132
133
|
_a.sent();
|
|
134
|
+
if (language !== undefined) {
|
|
135
|
+
localVarQueryParameter['language'] = language;
|
|
136
|
+
}
|
|
133
137
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
138
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
139
|
}
|
|
@@ -159,15 +163,16 @@ var BookingFunnelsApiFp = function (configuration) {
|
|
|
159
163
|
* @summary Retrieve the booking funnel
|
|
160
164
|
* @param {string} code Unique identifier for the object.
|
|
161
165
|
* @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.
|
|
162
167
|
* @param {*} [options] Override http request option.
|
|
163
168
|
* @throws {RequiredError}
|
|
164
169
|
*/
|
|
165
|
-
getBookingFunnel: function (code, authorization, options) {
|
|
170
|
+
getBookingFunnel: function (code, authorization, language, options) {
|
|
166
171
|
return __awaiter(this, void 0, void 0, function () {
|
|
167
172
|
var localVarAxiosArgs;
|
|
168
173
|
return __generator(this, function (_a) {
|
|
169
174
|
switch (_a.label) {
|
|
170
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
|
|
175
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options)];
|
|
171
176
|
case 1:
|
|
172
177
|
localVarAxiosArgs = _a.sent();
|
|
173
178
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -190,11 +195,12 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
|
|
|
190
195
|
* @summary Retrieve the booking funnel
|
|
191
196
|
* @param {string} code Unique identifier for the object.
|
|
192
197
|
* @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.
|
|
193
199
|
* @param {*} [options] Override http request option.
|
|
194
200
|
* @throws {RequiredError}
|
|
195
201
|
*/
|
|
196
|
-
getBookingFunnel: function (code, authorization, options) {
|
|
197
|
-
return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
202
|
+
getBookingFunnel: function (code, authorization, language, options) {
|
|
203
|
+
return localVarFp.getBookingFunnel(code, authorization, language, options).then(function (request) { return request(axios, basePath); });
|
|
198
204
|
},
|
|
199
205
|
};
|
|
200
206
|
};
|
|
@@ -220,7 +226,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
|
|
|
220
226
|
*/
|
|
221
227
|
BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
|
|
222
228
|
var _this = this;
|
|
223
|
-
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
229
|
+
return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
224
230
|
};
|
|
225
231
|
return BookingFunnelsApi;
|
|
226
232
|
}(base_1.BaseAPI));
|
|
@@ -80,14 +80,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
80
80
|
*/
|
|
81
81
|
getInsuredObjects: (productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
82
|
/**
|
|
83
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
83
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
84
84
|
* @summary Generate a custom CSS
|
|
85
85
|
* @param {string} productCode
|
|
86
86
|
* @param {string} [authorization] Bearer Token
|
|
87
|
+
* @param {string} [language]
|
|
87
88
|
* @param {*} [options] Override http request option.
|
|
88
89
|
* @throws {RequiredError}
|
|
89
90
|
*/
|
|
90
|
-
getProductCustomCss: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
|
+
getProductCustomCss: (productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
92
|
/**
|
|
92
93
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
93
94
|
* @summary List product factors
|
|
@@ -181,14 +182,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
181
182
|
*/
|
|
182
183
|
getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
|
|
183
184
|
/**
|
|
184
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
185
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
185
186
|
* @summary Generate a custom CSS
|
|
186
187
|
* @param {string} productCode
|
|
187
188
|
* @param {string} [authorization] Bearer Token
|
|
189
|
+
* @param {string} [language]
|
|
188
190
|
* @param {*} [options] Override http request option.
|
|
189
191
|
* @throws {RequiredError}
|
|
190
192
|
*/
|
|
191
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>>;
|
|
193
|
+
getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>>;
|
|
192
194
|
/**
|
|
193
195
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
194
196
|
* @summary List product factors
|
|
@@ -282,14 +284,15 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
282
284
|
*/
|
|
283
285
|
getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
|
|
284
286
|
/**
|
|
285
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
287
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
286
288
|
* @summary Generate a custom CSS
|
|
287
289
|
* @param {string} productCode
|
|
288
290
|
* @param {string} [authorization] Bearer Token
|
|
291
|
+
* @param {string} [language]
|
|
289
292
|
* @param {*} [options] Override http request option.
|
|
290
293
|
* @throws {RequiredError}
|
|
291
294
|
*/
|
|
292
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass>;
|
|
295
|
+
getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetCustomCssResponseClass>;
|
|
293
296
|
/**
|
|
294
297
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
295
298
|
* @summary List product factors
|
|
@@ -470,6 +473,12 @@ export interface ProductsApiGetProductCustomCssRequest {
|
|
|
470
473
|
* @memberof ProductsApiGetProductCustomCss
|
|
471
474
|
*/
|
|
472
475
|
readonly authorization?: string;
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof ProductsApiGetProductCustomCss
|
|
480
|
+
*/
|
|
481
|
+
readonly language?: string;
|
|
473
482
|
}
|
|
474
483
|
/**
|
|
475
484
|
* Request parameters for getProductFactors operation in ProductsApi.
|
|
@@ -635,7 +644,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
635
644
|
*/
|
|
636
645
|
getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectClass[], any, {}>>;
|
|
637
646
|
/**
|
|
638
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
647
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
639
648
|
* @summary Generate a custom CSS
|
|
640
649
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
641
650
|
* @param {*} [options] Override http request option.
|
package/dist/api/products-api.js
CHANGED
|
@@ -360,14 +360,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
360
360
|
});
|
|
361
361
|
},
|
|
362
362
|
/**
|
|
363
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
363
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
364
364
|
* @summary Generate a custom CSS
|
|
365
365
|
* @param {string} productCode
|
|
366
366
|
* @param {string} [authorization] Bearer Token
|
|
367
|
+
* @param {string} [language]
|
|
367
368
|
* @param {*} [options] Override http request option.
|
|
368
369
|
* @throws {RequiredError}
|
|
369
370
|
*/
|
|
370
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
371
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
371
372
|
if (options === void 0) { options = {}; }
|
|
372
373
|
return __awaiter(_this, void 0, void 0, function () {
|
|
373
374
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -393,6 +394,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
393
394
|
// authentication bearer required
|
|
394
395
|
// http bearer authentication required
|
|
395
396
|
_a.sent();
|
|
397
|
+
if (language !== undefined) {
|
|
398
|
+
localVarQueryParameter['language'] = language;
|
|
399
|
+
}
|
|
396
400
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
397
401
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
398
402
|
}
|
|
@@ -710,19 +714,20 @@ var ProductsApiFp = function (configuration) {
|
|
|
710
714
|
});
|
|
711
715
|
},
|
|
712
716
|
/**
|
|
713
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
717
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
714
718
|
* @summary Generate a custom CSS
|
|
715
719
|
* @param {string} productCode
|
|
716
720
|
* @param {string} [authorization] Bearer Token
|
|
721
|
+
* @param {string} [language]
|
|
717
722
|
* @param {*} [options] Override http request option.
|
|
718
723
|
* @throws {RequiredError}
|
|
719
724
|
*/
|
|
720
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
725
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
721
726
|
return __awaiter(this, void 0, void 0, function () {
|
|
722
727
|
var localVarAxiosArgs;
|
|
723
728
|
return __generator(this, function (_a) {
|
|
724
729
|
switch (_a.label) {
|
|
725
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
|
|
730
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options)];
|
|
726
731
|
case 1:
|
|
727
732
|
localVarAxiosArgs = _a.sent();
|
|
728
733
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -873,15 +878,16 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
873
878
|
return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
|
|
874
879
|
},
|
|
875
880
|
/**
|
|
876
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
881
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
877
882
|
* @summary Generate a custom CSS
|
|
878
883
|
* @param {string} productCode
|
|
879
884
|
* @param {string} [authorization] Bearer Token
|
|
885
|
+
* @param {string} [language]
|
|
880
886
|
* @param {*} [options] Override http request option.
|
|
881
887
|
* @throws {RequiredError}
|
|
882
888
|
*/
|
|
883
|
-
getProductCustomCss: function (productCode, authorization, options) {
|
|
884
|
-
return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
889
|
+
getProductCustomCss: function (productCode, authorization, language, options) {
|
|
890
|
+
return localVarFp.getProductCustomCss(productCode, authorization, language, options).then(function (request) { return request(axios, basePath); });
|
|
885
891
|
},
|
|
886
892
|
/**
|
|
887
893
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -1000,7 +1006,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1000
1006
|
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1001
1007
|
};
|
|
1002
1008
|
/**
|
|
1003
|
-
* This will generate a custom css for booking funnel, based on product.
|
|
1009
|
+
* This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
|
|
1004
1010
|
* @summary Generate a custom CSS
|
|
1005
1011
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
1006
1012
|
* @param {*} [options] Override http request option.
|
|
@@ -1009,7 +1015,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
1009
1015
|
*/
|
|
1010
1016
|
ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
|
|
1011
1017
|
var _this = this;
|
|
1012
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1018
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1013
1019
|
};
|
|
1014
1020
|
/**
|
|
1015
1021
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -57,4 +57,10 @@ export interface PartnerClass {
|
|
|
57
57
|
* @memberof PartnerClass
|
|
58
58
|
*/
|
|
59
59
|
'updatedBy'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof PartnerClass
|
|
64
|
+
*/
|
|
65
|
+
'subtypes': Array<string>;
|
|
60
66
|
}
|
|
@@ -27,6 +27,12 @@ export interface ProductVersionClass {
|
|
|
27
27
|
* @memberof ProductVersionClass
|
|
28
28
|
*/
|
|
29
29
|
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductVersionClass
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
30
36
|
/**
|
|
31
37
|
* Unique identifier referencing the product.
|
|
32
38
|
* @type {number}
|
package/models/partner-class.ts
CHANGED
|
@@ -62,5 +62,11 @@ export interface PartnerClass {
|
|
|
62
62
|
* @memberof PartnerClass
|
|
63
63
|
*/
|
|
64
64
|
'updatedBy'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof PartnerClass
|
|
69
|
+
*/
|
|
70
|
+
'subtypes': Array<string>;
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -32,6 +32,12 @@ export interface ProductVersionClass {
|
|
|
32
32
|
* @memberof ProductVersionClass
|
|
33
33
|
*/
|
|
34
34
|
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProductVersionClass
|
|
39
|
+
*/
|
|
40
|
+
'slug': string;
|
|
35
41
|
/**
|
|
36
42
|
* Unique identifier referencing the product.
|
|
37
43
|
* @type {number}
|