@emilgroup/public-api-sdk-node 1.42.1-beta.1 → 1.42.1-beta.11
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/dist/models/partner-class.d.ts +6 -0
- package/models/partner-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.11 --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.11
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
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
|
/**
|
|
@@ -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
|
}
|
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
|
|