@emilgroup/public-api-sdk 1.40.1-beta.0 → 1.40.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 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.0 --save
20
+ npm install @emilgroup/public-api-sdk@1.40.1-beta.10 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk@1.40.1-beta.0
24
+ yarn add @emilgroup/public-api-sdk@1.40.1-beta.10
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -33,10 +33,11 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
33
33
  * @summary Retrieve the booking funnel
34
34
  * @param {string} code Unique identifier for the object.
35
35
  * @param {string} [authorization] Bearer Token
36
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
36
37
  * @param {*} [options] Override http request option.
37
38
  * @throws {RequiredError}
38
39
  */
39
- getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40
+ getBookingFunnel: async (code: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40
41
  // verify required parameter 'code' is not null or undefined
41
42
  assertParamExists('getBookingFunnel', 'code', code)
42
43
  const localVarPath = `/publicapi/v1/booking-funnels/{code}`
@@ -58,6 +59,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
58
59
  // http bearer authentication required
59
60
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
61
 
62
+ if (language !== undefined) {
63
+ localVarQueryParameter['language'] = language;
64
+ }
65
+
61
66
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
62
67
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
68
  }
@@ -88,11 +93,12 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
88
93
  * @summary Retrieve the booking funnel
89
94
  * @param {string} code Unique identifier for the object.
90
95
  * @param {string} [authorization] Bearer Token
96
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
91
97
  * @param {*} [options] Override http request option.
92
98
  * @throws {RequiredError}
93
99
  */
94
- async getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
95
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, options);
100
+ async getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options);
96
102
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
97
103
  },
98
104
  }
@@ -110,11 +116,12 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
110
116
  * @summary Retrieve the booking funnel
111
117
  * @param {string} code Unique identifier for the object.
112
118
  * @param {string} [authorization] Bearer Token
119
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
113
120
  * @param {*} [options] Override http request option.
114
121
  * @throws {RequiredError}
115
122
  */
116
- getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
117
- return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
123
+ getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
124
+ return localVarFp.getBookingFunnel(code, authorization, language, options).then((request) => request(axios, basePath));
118
125
  },
119
126
  };
120
127
  };
@@ -138,6 +145,13 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
138
145
  * @memberof BookingFunnelsApiGetBookingFunnel
139
146
  */
140
147
  readonly authorization?: string
148
+
149
+ /**
150
+ * Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
151
+ * @type {string}
152
+ * @memberof BookingFunnelsApiGetBookingFunnel
153
+ */
154
+ readonly language?: string
141
155
  }
142
156
 
143
157
  /**
@@ -156,6 +170,6 @@ export class BookingFunnelsApi extends BaseAPI {
156
170
  * @memberof BookingFunnelsApi
157
171
  */
158
172
  public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
159
- return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
173
+ return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
160
174
  }
161
175
  }
@@ -304,14 +304,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
304
304
  };
305
305
  },
306
306
  /**
307
- * This will generate a custom css for booking funnel, based on product.
307
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
308
308
  * @summary Generate a custom CSS
309
309
  * @param {string} productCode
310
310
  * @param {string} [authorization] Bearer Token
311
+ * @param {string} [language]
311
312
  * @param {*} [options] Override http request option.
312
313
  * @throws {RequiredError}
313
314
  */
314
- getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
315
+ getProductCustomCss: async (productCode: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
315
316
  // verify required parameter 'productCode' is not null or undefined
316
317
  assertParamExists('getProductCustomCss', 'productCode', productCode)
317
318
  const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
@@ -333,6 +334,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
333
334
  // http bearer authentication required
334
335
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
335
336
 
337
+ if (language !== undefined) {
338
+ localVarQueryParameter['language'] = language;
339
+ }
340
+
336
341
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
337
342
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
338
343
  }
@@ -607,15 +612,16 @@ export const ProductsApiFp = function(configuration?: Configuration) {
607
612
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
608
613
  },
609
614
  /**
610
- * This will generate a custom css for booking funnel, based on product.
615
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
611
616
  * @summary Generate a custom CSS
612
617
  * @param {string} productCode
613
618
  * @param {string} [authorization] Bearer Token
619
+ * @param {string} [language]
614
620
  * @param {*} [options] Override http request option.
615
621
  * @throws {RequiredError}
616
622
  */
617
- async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
618
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
623
+ async getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options);
619
625
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
620
626
  },
621
627
  /**
@@ -734,15 +740,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
734
740
  return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
735
741
  },
736
742
  /**
737
- * This will generate a custom css for booking funnel, based on product.
743
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
738
744
  * @summary Generate a custom CSS
739
745
  * @param {string} productCode
740
746
  * @param {string} [authorization] Bearer Token
747
+ * @param {string} [language]
741
748
  * @param {*} [options] Override http request option.
742
749
  * @throws {RequiredError}
743
750
  */
744
- getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
745
- return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
751
+ getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
752
+ return localVarFp.getProductCustomCss(productCode, authorization, language, options).then((request) => request(axios, basePath));
746
753
  },
747
754
  /**
748
755
  * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -948,6 +955,13 @@ export interface ProductsApiGetProductCustomCssRequest {
948
955
  * @memberof ProductsApiGetProductCustomCss
949
956
  */
950
957
  readonly authorization?: string
958
+
959
+ /**
960
+ *
961
+ * @type {string}
962
+ * @memberof ProductsApiGetProductCustomCss
963
+ */
964
+ readonly language?: string
951
965
  }
952
966
 
953
967
  /**
@@ -1144,7 +1158,7 @@ export class ProductsApi extends BaseAPI {
1144
1158
  }
1145
1159
 
1146
1160
  /**
1147
- * This will generate a custom css for booking funnel, based on product.
1161
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
1148
1162
  * @summary Generate a custom CSS
1149
1163
  * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
1150
1164
  * @param {*} [options] Override http request option.
@@ -1152,7 +1166,7 @@ export class ProductsApi extends BaseAPI {
1152
1166
  * @memberof ProductsApi
1153
1167
  */
1154
1168
  public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
1155
- return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1169
+ return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
1156
1170
  }
1157
1171
 
1158
1172
  /**
@@ -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\&#39;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\&#39;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\&#39;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\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
84
+ * @type {string}
85
+ * @memberof BookingFunnelsApiGetBookingFunnel
86
+ */
87
+ readonly language?: string;
79
88
  }
80
89
  /**
81
90
  * BookingFunnelsApi - object-oriented interface
@@ -97,10 +97,11 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
97
97
  * @summary Retrieve the booking funnel
98
98
  * @param {string} code Unique identifier for the object.
99
99
  * @param {string} [authorization] Bearer Token
100
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
100
101
  * @param {*} [options] Override http request option.
101
102
  * @throws {RequiredError}
102
103
  */
103
- getBookingFunnel: function (code, authorization, options) {
104
+ getBookingFunnel: function (code, authorization, language, options) {
104
105
  if (options === void 0) { options = {}; }
105
106
  return __awaiter(_this, void 0, void 0, function () {
106
107
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -126,6 +127,9 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
126
127
  // authentication bearer required
127
128
  // http bearer authentication required
128
129
  _a.sent();
130
+ if (language !== undefined) {
131
+ localVarQueryParameter['language'] = language;
132
+ }
129
133
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
134
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
135
  }
@@ -155,15 +159,16 @@ var BookingFunnelsApiFp = function (configuration) {
155
159
  * @summary Retrieve the booking funnel
156
160
  * @param {string} code Unique identifier for the object.
157
161
  * @param {string} [authorization] Bearer Token
162
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
158
163
  * @param {*} [options] Override http request option.
159
164
  * @throws {RequiredError}
160
165
  */
161
- getBookingFunnel: function (code, authorization, options) {
166
+ getBookingFunnel: function (code, authorization, language, options) {
162
167
  return __awaiter(this, void 0, void 0, function () {
163
168
  var localVarAxiosArgs;
164
169
  return __generator(this, function (_a) {
165
170
  switch (_a.label) {
166
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
171
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options)];
167
172
  case 1:
168
173
  localVarAxiosArgs = _a.sent();
169
174
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -186,11 +191,12 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
186
191
  * @summary Retrieve the booking funnel
187
192
  * @param {string} code Unique identifier for the object.
188
193
  * @param {string} [authorization] Bearer Token
194
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
189
195
  * @param {*} [options] Override http request option.
190
196
  * @throws {RequiredError}
191
197
  */
192
- getBookingFunnel: function (code, authorization, options) {
193
- return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
198
+ getBookingFunnel: function (code, authorization, language, options) {
199
+ return localVarFp.getBookingFunnel(code, authorization, language, options).then(function (request) { return request(axios, basePath); });
194
200
  },
195
201
  };
196
202
  };
@@ -216,7 +222,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
216
222
  */
217
223
  BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
218
224
  var _this = this;
219
- return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
225
+ return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
220
226
  };
221
227
  return BookingFunnelsApi;
222
228
  }(base_1.BaseAPI));
@@ -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.
@@ -356,14 +356,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
356
356
  });
357
357
  },
358
358
  /**
359
- * This will generate a custom css for booking funnel, based on product.
359
+ * 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.
360
360
  * @summary Generate a custom CSS
361
361
  * @param {string} productCode
362
362
  * @param {string} [authorization] Bearer Token
363
+ * @param {string} [language]
363
364
  * @param {*} [options] Override http request option.
364
365
  * @throws {RequiredError}
365
366
  */
366
- getProductCustomCss: function (productCode, authorization, options) {
367
+ getProductCustomCss: function (productCode, authorization, language, options) {
367
368
  if (options === void 0) { options = {}; }
368
369
  return __awaiter(_this, void 0, void 0, function () {
369
370
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -389,6 +390,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
389
390
  // authentication bearer required
390
391
  // http bearer authentication required
391
392
  _a.sent();
393
+ if (language !== undefined) {
394
+ localVarQueryParameter['language'] = language;
395
+ }
392
396
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
393
397
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
394
398
  }
@@ -706,19 +710,20 @@ var ProductsApiFp = function (configuration) {
706
710
  });
707
711
  },
708
712
  /**
709
- * This will generate a custom css for booking funnel, based on product.
713
+ * 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.
710
714
  * @summary Generate a custom CSS
711
715
  * @param {string} productCode
712
716
  * @param {string} [authorization] Bearer Token
717
+ * @param {string} [language]
713
718
  * @param {*} [options] Override http request option.
714
719
  * @throws {RequiredError}
715
720
  */
716
- getProductCustomCss: function (productCode, authorization, options) {
721
+ getProductCustomCss: function (productCode, authorization, language, options) {
717
722
  return __awaiter(this, void 0, void 0, function () {
718
723
  var localVarAxiosArgs;
719
724
  return __generator(this, function (_a) {
720
725
  switch (_a.label) {
721
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
726
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options)];
722
727
  case 1:
723
728
  localVarAxiosArgs = _a.sent();
724
729
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -869,15 +874,16 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
869
874
  return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
870
875
  },
871
876
  /**
872
- * This will generate a custom css for booking funnel, based on product.
877
+ * 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.
873
878
  * @summary Generate a custom CSS
874
879
  * @param {string} productCode
875
880
  * @param {string} [authorization] Bearer Token
881
+ * @param {string} [language]
876
882
  * @param {*} [options] Override http request option.
877
883
  * @throws {RequiredError}
878
884
  */
879
- getProductCustomCss: function (productCode, authorization, options) {
880
- return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
885
+ getProductCustomCss: function (productCode, authorization, language, options) {
886
+ return localVarFp.getProductCustomCss(productCode, authorization, language, options).then(function (request) { return request(axios, basePath); });
881
887
  },
882
888
  /**
883
889
  * 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.
@@ -996,7 +1002,7 @@ var ProductsApi = /** @class */ (function (_super) {
996
1002
  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); });
997
1003
  };
998
1004
  /**
999
- * This will generate a custom css for booking funnel, based on product.
1005
+ * 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.
1000
1006
  * @summary Generate a custom CSS
1001
1007
  * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
1002
1008
  * @param {*} [options] Override http request option.
@@ -1005,7 +1011,7 @@ var ProductsApi = /** @class */ (function (_super) {
1005
1011
  */
1006
1012
  ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
1007
1013
  var _this = this;
1008
- return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1014
+ return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
1009
1015
  };
1010
1016
  /**
1011
1017
  * 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}
@@ -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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/public-api-sdk",
3
- "version": "1.40.1-beta.0",
3
+ "version": "1.40.1-beta.10",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [