@emilgroup/public-api-sdk 1.40.1-beta.2 → 1.40.1-beta.4
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/products-api.ts +24 -10
- package/dist/api/products-api.d.ts +16 -7
- package/dist/api/products-api.js +16 -10
- 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@1.40.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.40.1-beta.4 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.40.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.40.1-beta.4
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/products-api.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -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
|
@@ -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.
|