@emilgroup/public-api-sdk-node 1.42.1-beta.0 → 1.42.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 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.0 --save
20
+ npm install @emilgroup/public-api-sdk-node@1.42.1-beta.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk-node@1.42.1-beta.0
24
+ yarn add @emilgroup/public-api-sdk-node@1.42.1-beta.2
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -37,10 +37,11 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
37
37
  * @summary Retrieve the booking funnel
38
38
  * @param {string} code Unique identifier for the object.
39
39
  * @param {string} [authorization] Bearer Token
40
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
40
41
  * @param {*} [options] Override http request option.
41
42
  * @throws {RequiredError}
42
43
  */
43
- getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ getBookingFunnel: async (code: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
45
  // verify required parameter 'code' is not null or undefined
45
46
  assertParamExists('getBookingFunnel', 'code', code)
46
47
  const localVarPath = `/publicapi/v1/booking-funnels/{code}`
@@ -62,6 +63,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
62
63
  // http bearer authentication required
63
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
64
65
 
66
+ if (language !== undefined) {
67
+ localVarQueryParameter['language'] = language;
68
+ }
69
+
65
70
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
66
71
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
72
  }
@@ -92,11 +97,12 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
92
97
  * @summary Retrieve the booking funnel
93
98
  * @param {string} code Unique identifier for the object.
94
99
  * @param {string} [authorization] Bearer Token
100
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
95
101
  * @param {*} [options] Override http request option.
96
102
  * @throws {RequiredError}
97
103
  */
98
- async getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, options);
104
+ async getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options);
100
106
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
107
  },
102
108
  }
@@ -114,11 +120,12 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
114
120
  * @summary Retrieve the booking funnel
115
121
  * @param {string} code Unique identifier for the object.
116
122
  * @param {string} [authorization] Bearer Token
123
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
117
124
  * @param {*} [options] Override http request option.
118
125
  * @throws {RequiredError}
119
126
  */
120
- getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
121
- return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
127
+ getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
128
+ return localVarFp.getBookingFunnel(code, authorization, language, options).then((request) => request(axios, basePath));
122
129
  },
123
130
  };
124
131
  };
@@ -142,6 +149,13 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
142
149
  * @memberof BookingFunnelsApiGetBookingFunnel
143
150
  */
144
151
  readonly authorization?: string
152
+
153
+ /**
154
+ * Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
155
+ * @type {string}
156
+ * @memberof BookingFunnelsApiGetBookingFunnel
157
+ */
158
+ readonly language?: string
145
159
  }
146
160
 
147
161
  /**
@@ -160,6 +174,6 @@ export class BookingFunnelsApi extends BaseAPI {
160
174
  * @memberof BookingFunnelsApi
161
175
  */
162
176
  public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
163
- return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
177
+ return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
164
178
  }
165
179
  }
@@ -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
@@ -101,10 +101,11 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
101
101
  * @summary Retrieve the booking funnel
102
102
  * @param {string} code Unique identifier for the object.
103
103
  * @param {string} [authorization] Bearer Token
104
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
104
105
  * @param {*} [options] Override http request option.
105
106
  * @throws {RequiredError}
106
107
  */
107
- getBookingFunnel: function (code, authorization, options) {
108
+ getBookingFunnel: function (code, authorization, language, options) {
108
109
  if (options === void 0) { options = {}; }
109
110
  return __awaiter(_this, void 0, void 0, function () {
110
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -130,6 +131,9 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
130
131
  // authentication bearer required
131
132
  // http bearer authentication required
132
133
  _a.sent();
134
+ if (language !== undefined) {
135
+ localVarQueryParameter['language'] = language;
136
+ }
133
137
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
138
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
139
  }
@@ -159,15 +163,16 @@ var BookingFunnelsApiFp = function (configuration) {
159
163
  * @summary Retrieve the booking funnel
160
164
  * @param {string} code Unique identifier for the object.
161
165
  * @param {string} [authorization] Bearer Token
166
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
162
167
  * @param {*} [options] Override http request option.
163
168
  * @throws {RequiredError}
164
169
  */
165
- getBookingFunnel: function (code, authorization, options) {
170
+ getBookingFunnel: function (code, authorization, language, options) {
166
171
  return __awaiter(this, void 0, void 0, function () {
167
172
  var localVarAxiosArgs;
168
173
  return __generator(this, function (_a) {
169
174
  switch (_a.label) {
170
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
175
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options)];
171
176
  case 1:
172
177
  localVarAxiosArgs = _a.sent();
173
178
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -190,11 +195,12 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
190
195
  * @summary Retrieve the booking funnel
191
196
  * @param {string} code Unique identifier for the object.
192
197
  * @param {string} [authorization] Bearer Token
198
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
193
199
  * @param {*} [options] Override http request option.
194
200
  * @throws {RequiredError}
195
201
  */
196
- getBookingFunnel: function (code, authorization, options) {
197
- return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
202
+ getBookingFunnel: function (code, authorization, language, options) {
203
+ return localVarFp.getBookingFunnel(code, authorization, language, options).then(function (request) { return request(axios, basePath); });
198
204
  },
199
205
  };
200
206
  };
@@ -220,7 +226,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
220
226
  */
221
227
  BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
222
228
  var _this = this;
223
- return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
229
+ return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
224
230
  };
225
231
  return BookingFunnelsApi;
226
232
  }(base_1.BaseAPI));
@@ -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-node",
3
- "version": "1.42.1-beta.0",
3
+ "version": "1.42.1-beta.2",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [