@teemill/website 0.1.6 → 0.3.0
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.ts +735 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +505 -1
- package/dist/api.js +390 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +505 -1
- package/dist/esm/api.js +382 -4
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,13 +23,391 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from './common';
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
export const PaymentAccountMethodEnum = {
|
|
30
30
|
Stripe: 'stripe',
|
|
31
31
|
Paypal: 'paypal'
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* CrossSellApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const CrossSellApiAxiosParamCreator = function (configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
41
|
+
* @summary Attach cross-sell products
|
|
42
|
+
* @param {string} project What project it is
|
|
43
|
+
* @param {string} productId Product\'s unique identifier
|
|
44
|
+
* @param {Array<string>} [requestBody]
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
attachCrossSellProducts: (project_1, productId_1, requestBody_1, ...args_1) => __awaiter(this, [project_1, productId_1, requestBody_1, ...args_1], void 0, function* (project, productId, requestBody, options = {}) {
|
|
49
|
+
// verify required parameter 'project' is not null or undefined
|
|
50
|
+
assertParamExists('attachCrossSellProducts', 'project', project);
|
|
51
|
+
// verify required parameter 'productId' is not null or undefined
|
|
52
|
+
assertParamExists('attachCrossSellProducts', 'productId', productId);
|
|
53
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
54
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication session-oauth required
|
|
65
|
+
// oauth required
|
|
66
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
67
|
+
// authentication api-key required
|
|
68
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
69
|
+
if (project !== undefined) {
|
|
70
|
+
localVarQueryParameter['project'] = project;
|
|
71
|
+
}
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
77
|
+
return {
|
|
78
|
+
url: toPathString(localVarUrlObj),
|
|
79
|
+
options: localVarRequestOptions,
|
|
80
|
+
};
|
|
81
|
+
}),
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Get cross-sell products linked to a product
|
|
85
|
+
* @param {string} project What project it is
|
|
86
|
+
* @param {string} productId Product\'s unique identifier
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
getCrossSellProducts: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
|
|
91
|
+
// verify required parameter 'project' is not null or undefined
|
|
92
|
+
assertParamExists('getCrossSellProducts', 'project', project);
|
|
93
|
+
// verify required parameter 'productId' is not null or undefined
|
|
94
|
+
assertParamExists('getCrossSellProducts', 'productId', productId);
|
|
95
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
96
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
}
|
|
103
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
104
|
+
const localVarHeaderParameter = {};
|
|
105
|
+
const localVarQueryParameter = {};
|
|
106
|
+
// authentication session-oauth required
|
|
107
|
+
// oauth required
|
|
108
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
109
|
+
// authentication api-key required
|
|
110
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
111
|
+
if (project !== undefined) {
|
|
112
|
+
localVarQueryParameter['project'] = project;
|
|
113
|
+
}
|
|
114
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
117
|
+
return {
|
|
118
|
+
url: toPathString(localVarUrlObj),
|
|
119
|
+
options: localVarRequestOptions,
|
|
120
|
+
};
|
|
121
|
+
}),
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* CrossSellApi - functional programming interface
|
|
126
|
+
* @export
|
|
127
|
+
*/
|
|
128
|
+
export const CrossSellApiFp = function (configuration) {
|
|
129
|
+
const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration);
|
|
130
|
+
return {
|
|
131
|
+
/**
|
|
132
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
133
|
+
* @summary Attach cross-sell products
|
|
134
|
+
* @param {string} project What project it is
|
|
135
|
+
* @param {string} productId Product\'s unique identifier
|
|
136
|
+
* @param {Array<string>} [requestBody]
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
attachCrossSellProducts(project, productId, requestBody, options) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
var _a, _b, _c;
|
|
143
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId, requestBody, options);
|
|
144
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
145
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.attachCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @summary Get cross-sell products linked to a product
|
|
152
|
+
* @param {string} project What project it is
|
|
153
|
+
* @param {string} productId Product\'s unique identifier
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
getCrossSellProducts(project, productId, options) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
|
|
161
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
162
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.getCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
163
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* CrossSellApi - factory interface
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export const CrossSellApiFactory = function (configuration, basePath, axios) {
|
|
173
|
+
const localVarFp = CrossSellApiFp(configuration);
|
|
174
|
+
return {
|
|
175
|
+
/**
|
|
176
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
177
|
+
* @summary Attach cross-sell products
|
|
178
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
attachCrossSellProducts(requestParameters, options) {
|
|
183
|
+
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @summary Get cross-sell products linked to a product
|
|
188
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
getCrossSellProducts(requestParameters, options) {
|
|
193
|
+
return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* CrossSellApi - object-oriented interface
|
|
199
|
+
* @export
|
|
200
|
+
* @class CrossSellApi
|
|
201
|
+
* @extends {BaseAPI}
|
|
202
|
+
*/
|
|
203
|
+
export class CrossSellApi extends BaseAPI {
|
|
204
|
+
/**
|
|
205
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
206
|
+
* @summary Attach cross-sell products
|
|
207
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
* @memberof CrossSellApi
|
|
211
|
+
*/
|
|
212
|
+
attachCrossSellProducts(requestParameters, options) {
|
|
213
|
+
return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @summary Get cross-sell products linked to a product
|
|
218
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
* @memberof CrossSellApi
|
|
222
|
+
*/
|
|
223
|
+
getCrossSellProducts(requestParameters, options) {
|
|
224
|
+
return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* MenuApi - axios parameter creator
|
|
229
|
+
* @export
|
|
230
|
+
*/
|
|
231
|
+
export const MenuApiAxiosParamCreator = function (configuration) {
|
|
232
|
+
return {
|
|
233
|
+
/**
|
|
234
|
+
* Get menu
|
|
235
|
+
* @summary Get menu
|
|
236
|
+
* @param {string} project What project it is
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
getMenu: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
241
|
+
// verify required parameter 'project' is not null or undefined
|
|
242
|
+
assertParamExists('getMenu', 'project', project);
|
|
243
|
+
const localVarPath = `/v1/website/menu`;
|
|
244
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
246
|
+
let baseOptions;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
}
|
|
250
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
251
|
+
const localVarHeaderParameter = {};
|
|
252
|
+
const localVarQueryParameter = {};
|
|
253
|
+
// authentication session-oauth required
|
|
254
|
+
// oauth required
|
|
255
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
256
|
+
// authentication api-key required
|
|
257
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
258
|
+
if (project !== undefined) {
|
|
259
|
+
localVarQueryParameter['project'] = project;
|
|
260
|
+
}
|
|
261
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
264
|
+
return {
|
|
265
|
+
url: toPathString(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
};
|
|
268
|
+
}),
|
|
269
|
+
/**
|
|
270
|
+
* Update menu
|
|
271
|
+
* @summary Update menu
|
|
272
|
+
* @param {string} project What project it is
|
|
273
|
+
* @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
updateMenu: (project_1, updateMenuRequest_1, ...args_1) => __awaiter(this, [project_1, updateMenuRequest_1, ...args_1], void 0, function* (project, updateMenuRequest, options = {}) {
|
|
278
|
+
// verify required parameter 'project' is not null or undefined
|
|
279
|
+
assertParamExists('updateMenu', 'project', project);
|
|
280
|
+
const localVarPath = `/v1/website/menu`;
|
|
281
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
282
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
283
|
+
let baseOptions;
|
|
284
|
+
if (configuration) {
|
|
285
|
+
baseOptions = configuration.baseOptions;
|
|
286
|
+
}
|
|
287
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
288
|
+
const localVarHeaderParameter = {};
|
|
289
|
+
const localVarQueryParameter = {};
|
|
290
|
+
// authentication session-oauth required
|
|
291
|
+
// oauth required
|
|
292
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
293
|
+
// authentication api-key required
|
|
294
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
295
|
+
if (project !== undefined) {
|
|
296
|
+
localVarQueryParameter['project'] = project;
|
|
297
|
+
}
|
|
298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
302
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration);
|
|
303
|
+
return {
|
|
304
|
+
url: toPathString(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions,
|
|
306
|
+
};
|
|
307
|
+
}),
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* MenuApi - functional programming interface
|
|
312
|
+
* @export
|
|
313
|
+
*/
|
|
314
|
+
export const MenuApiFp = function (configuration) {
|
|
315
|
+
const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration);
|
|
316
|
+
return {
|
|
317
|
+
/**
|
|
318
|
+
* Get menu
|
|
319
|
+
* @summary Get menu
|
|
320
|
+
* @param {string} project What project it is
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
getMenu(project, options) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
var _a, _b, _c;
|
|
327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMenu(project, options);
|
|
328
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
329
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.getMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
330
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
331
|
+
});
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* Update menu
|
|
335
|
+
* @summary Update menu
|
|
336
|
+
* @param {string} project What project it is
|
|
337
|
+
* @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
updateMenu(project, updateMenuRequest, options) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
var _a, _b, _c;
|
|
344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
|
|
345
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
346
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.updateMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
348
|
+
});
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* MenuApi - factory interface
|
|
354
|
+
* @export
|
|
355
|
+
*/
|
|
356
|
+
export const MenuApiFactory = function (configuration, basePath, axios) {
|
|
357
|
+
const localVarFp = MenuApiFp(configuration);
|
|
358
|
+
return {
|
|
359
|
+
/**
|
|
360
|
+
* Get menu
|
|
361
|
+
* @summary Get menu
|
|
362
|
+
* @param {MenuApiGetMenuRequest} requestParameters Request parameters.
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
getMenu(requestParameters, options) {
|
|
367
|
+
return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
368
|
+
},
|
|
369
|
+
/**
|
|
370
|
+
* Update menu
|
|
371
|
+
* @summary Update menu
|
|
372
|
+
* @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
updateMenu(requestParameters, options) {
|
|
377
|
+
return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
|
|
378
|
+
},
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* MenuApi - object-oriented interface
|
|
383
|
+
* @export
|
|
384
|
+
* @class MenuApi
|
|
385
|
+
* @extends {BaseAPI}
|
|
386
|
+
*/
|
|
387
|
+
export class MenuApi extends BaseAPI {
|
|
388
|
+
/**
|
|
389
|
+
* Get menu
|
|
390
|
+
* @summary Get menu
|
|
391
|
+
* @param {MenuApiGetMenuRequest} requestParameters Request parameters.
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
* @memberof MenuApi
|
|
395
|
+
*/
|
|
396
|
+
getMenu(requestParameters, options) {
|
|
397
|
+
return MenuApiFp(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Update menu
|
|
401
|
+
* @summary Update menu
|
|
402
|
+
* @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
* @memberof MenuApi
|
|
406
|
+
*/
|
|
407
|
+
updateMenu(requestParameters, options) {
|
|
408
|
+
return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
33
411
|
/**
|
|
34
412
|
* PaymentApi - axios parameter creator
|
|
35
413
|
* @export
|
|
@@ -79,7 +457,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
79
457
|
* @param {*} [options] Override http request option.
|
|
80
458
|
* @throws {RequiredError}
|
|
81
459
|
*/
|
|
82
|
-
deauthorizeStripe: (
|
|
460
|
+
deauthorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
83
461
|
// verify required parameter 'project' is not null or undefined
|
|
84
462
|
assertParamExists('deauthorizeStripe', 'project', project);
|
|
85
463
|
const localVarPath = `/v1/website/payment/stripe/deauthorize`;
|
|
@@ -115,7 +493,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
115
493
|
* @param {*} [options] Override http request option.
|
|
116
494
|
* @throws {RequiredError}
|
|
117
495
|
*/
|
|
118
|
-
getStripePaymentAccount: (
|
|
496
|
+
getStripePaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
119
497
|
// verify required parameter 'project' is not null or undefined
|
|
120
498
|
assertParamExists('getStripePaymentAccount', 'project', project);
|
|
121
499
|
const localVarPath = `/v1/website/payment/stripe`;
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|