@emilgroup/public-api-sdk 1.40.1-beta.0 → 1.40.1-beta.2
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/dist/api/booking-funnels-api.d.ts +12 -3
- package/dist/api/booking-funnels-api.js +12 -6
- 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@1.40.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.40.1-beta.2 --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.2
|
|
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\'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\'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\'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
|
}
|
|
@@ -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
|
|
@@ -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\'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\'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\'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));
|
|
@@ -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}
|