@teemill/website 0.1.5 → 0.2.6

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/dist/api.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.1.5
8
+ * The version of the OpenAPI document: 0.2.6
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PaymentAccountMethodEnum = void 0;
25
+ exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.PaymentAccountMethodEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -34,22 +34,22 @@ exports.PaymentAccountMethodEnum = {
34
34
  Paypal: 'paypal'
35
35
  };
36
36
  /**
37
- * PaymentApi - axios parameter creator
37
+ * MenuApi - axios parameter creator
38
38
  * @export
39
39
  */
40
- const PaymentApiAxiosParamCreator = function (configuration) {
40
+ const MenuApiAxiosParamCreator = function (configuration) {
41
41
  return {
42
42
  /**
43
- * Authorize a Stripe payment account
44
- * @summary Authorize Stripe
43
+ * Get menu
44
+ * @summary Get menu
45
45
  * @param {string} project What project it is
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
48
48
  */
49
- authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
49
+ getMenu: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
50
50
  // verify required parameter 'project' is not null or undefined
51
- (0, common_1.assertParamExists)('authorizeStripe', 'project', project);
52
- const localVarPath = `/v1/website/payment/stripe/authorize`;
51
+ (0, common_1.assertParamExists)('getMenu', 'project', project);
52
+ const localVarPath = `/v1/website/menu`;
53
53
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
54
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
55
55
  let baseOptions;
@@ -76,26 +76,24 @@ const PaymentApiAxiosParamCreator = function (configuration) {
76
76
  };
77
77
  }),
78
78
  /**
79
- * Connect a Stripe payment account
80
- * @summary Connect Stripe
79
+ * Update menu
80
+ * @summary Update menu
81
81
  * @param {string} project What project it is
82
- * @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
82
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
83
83
  * @param {*} [options] Override http request option.
84
84
  * @throws {RequiredError}
85
85
  */
86
- connectStripe: (project_2, connectStripeRequest_1, ...args_2) => __awaiter(this, [project_2, connectStripeRequest_1, ...args_2], void 0, function* (project, connectStripeRequest, options = {}) {
86
+ updateMenu: (project_1, updateMenuRequest_1, ...args_1) => __awaiter(this, [project_1, updateMenuRequest_1, ...args_1], void 0, function* (project, updateMenuRequest, options = {}) {
87
87
  // verify required parameter 'project' is not null or undefined
88
- (0, common_1.assertParamExists)('connectStripe', 'project', project);
89
- // verify required parameter 'connectStripeRequest' is not null or undefined
90
- (0, common_1.assertParamExists)('connectStripe', 'connectStripeRequest', connectStripeRequest);
91
- const localVarPath = `/v1/website/payment/stripe/connect`;
88
+ (0, common_1.assertParamExists)('updateMenu', 'project', project);
89
+ const localVarPath = `/v1/website/menu`;
92
90
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
93
91
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
94
92
  let baseOptions;
95
93
  if (configuration) {
96
94
  baseOptions = configuration.baseOptions;
97
95
  }
98
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
96
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
99
97
  const localVarHeaderParameter = {};
100
98
  const localVarQueryParameter = {};
101
99
  // authentication session-oauth required
@@ -110,7 +108,156 @@ const PaymentApiAxiosParamCreator = function (configuration) {
110
108
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
109
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
110
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
113
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(connectStripeRequest, localVarRequestOptions, configuration);
111
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMenuRequest, localVarRequestOptions, configuration);
112
+ return {
113
+ url: (0, common_1.toPathString)(localVarUrlObj),
114
+ options: localVarRequestOptions,
115
+ };
116
+ }),
117
+ };
118
+ };
119
+ exports.MenuApiAxiosParamCreator = MenuApiAxiosParamCreator;
120
+ /**
121
+ * MenuApi - functional programming interface
122
+ * @export
123
+ */
124
+ const MenuApiFp = function (configuration) {
125
+ const localVarAxiosParamCreator = (0, exports.MenuApiAxiosParamCreator)(configuration);
126
+ return {
127
+ /**
128
+ * Get menu
129
+ * @summary Get menu
130
+ * @param {string} project What project it is
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ getMenu(project, options) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ var _a, _b, _c;
137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMenu(project, options);
138
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
139
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MenuApi.getMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
140
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
141
+ });
142
+ },
143
+ /**
144
+ * Update menu
145
+ * @summary Update menu
146
+ * @param {string} project What project it is
147
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ updateMenu(project, updateMenuRequest, options) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ var _a, _b, _c;
154
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
155
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
156
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MenuApi.updateMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
157
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
158
+ });
159
+ },
160
+ };
161
+ };
162
+ exports.MenuApiFp = MenuApiFp;
163
+ /**
164
+ * MenuApi - factory interface
165
+ * @export
166
+ */
167
+ const MenuApiFactory = function (configuration, basePath, axios) {
168
+ const localVarFp = (0, exports.MenuApiFp)(configuration);
169
+ return {
170
+ /**
171
+ * Get menu
172
+ * @summary Get menu
173
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ getMenu(requestParameters, options) {
178
+ return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
179
+ },
180
+ /**
181
+ * Update menu
182
+ * @summary Update menu
183
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ updateMenu(requestParameters, options) {
188
+ return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
189
+ },
190
+ };
191
+ };
192
+ exports.MenuApiFactory = MenuApiFactory;
193
+ /**
194
+ * MenuApi - object-oriented interface
195
+ * @export
196
+ * @class MenuApi
197
+ * @extends {BaseAPI}
198
+ */
199
+ class MenuApi extends base_1.BaseAPI {
200
+ /**
201
+ * Get menu
202
+ * @summary Get menu
203
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ * @memberof MenuApi
207
+ */
208
+ getMenu(requestParameters, options) {
209
+ return (0, exports.MenuApiFp)(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
210
+ }
211
+ /**
212
+ * Update menu
213
+ * @summary Update menu
214
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof MenuApi
218
+ */
219
+ updateMenu(requestParameters, options) {
220
+ return (0, exports.MenuApiFp)(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
221
+ }
222
+ }
223
+ exports.MenuApi = MenuApi;
224
+ /**
225
+ * PaymentApi - axios parameter creator
226
+ * @export
227
+ */
228
+ const PaymentApiAxiosParamCreator = function (configuration) {
229
+ return {
230
+ /**
231
+ * Authorize a Stripe payment account
232
+ * @summary Authorize Stripe
233
+ * @param {string} project What project it is
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
238
+ // verify required parameter 'project' is not null or undefined
239
+ (0, common_1.assertParamExists)('authorizeStripe', 'project', project);
240
+ const localVarPath = `/v1/website/payment/stripe/authorize`;
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
248
+ const localVarHeaderParameter = {};
249
+ const localVarQueryParameter = {};
250
+ // authentication session-oauth required
251
+ // oauth required
252
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
253
+ // authentication api-key required
254
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
255
+ if (project !== undefined) {
256
+ localVarQueryParameter['project'] = project;
257
+ }
258
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
114
261
  return {
115
262
  url: (0, common_1.toPathString)(localVarUrlObj),
116
263
  options: localVarRequestOptions,
@@ -123,7 +270,7 @@ const PaymentApiAxiosParamCreator = function (configuration) {
123
270
  * @param {*} [options] Override http request option.
124
271
  * @throws {RequiredError}
125
272
  */
126
- deauthorizeStripe: (project_3, ...args_3) => __awaiter(this, [project_3, ...args_3], void 0, function* (project, options = {}) {
273
+ deauthorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
127
274
  // verify required parameter 'project' is not null or undefined
128
275
  (0, common_1.assertParamExists)('deauthorizeStripe', 'project', project);
129
276
  const localVarPath = `/v1/website/payment/stripe/deauthorize`;
@@ -159,7 +306,7 @@ const PaymentApiAxiosParamCreator = function (configuration) {
159
306
  * @param {*} [options] Override http request option.
160
307
  * @throws {RequiredError}
161
308
  */
162
- getStripePaymentAccount: (project_4, ...args_4) => __awaiter(this, [project_4, ...args_4], void 0, function* (project, options = {}) {
309
+ getStripePaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
163
310
  // verify required parameter 'project' is not null or undefined
164
311
  (0, common_1.assertParamExists)('getStripePaymentAccount', 'project', project);
165
312
  const localVarPath = `/v1/website/payment/stripe`;
@@ -214,23 +361,6 @@ const PaymentApiFp = function (configuration) {
214
361
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
215
362
  });
216
363
  },
217
- /**
218
- * Connect a Stripe payment account
219
- * @summary Connect Stripe
220
- * @param {string} project What project it is
221
- * @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
222
- * @param {*} [options] Override http request option.
223
- * @throws {RequiredError}
224
- */
225
- connectStripe(project, connectStripeRequest, options) {
226
- return __awaiter(this, void 0, void 0, function* () {
227
- var _a, _b, _c;
228
- const localVarAxiosArgs = yield localVarAxiosParamCreator.connectStripe(project, connectStripeRequest, options);
229
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
230
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.connectStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
231
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
232
- });
233
- },
234
364
  /**
235
365
  * Deauthorize a Stripe payment account
236
366
  * @summary Deauthorize Stripe
@@ -283,16 +413,6 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
283
413
  authorizeStripe(requestParameters, options) {
284
414
  return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
285
415
  },
286
- /**
287
- * Connect a Stripe payment account
288
- * @summary Connect Stripe
289
- * @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
290
- * @param {*} [options] Override http request option.
291
- * @throws {RequiredError}
292
- */
293
- connectStripe(requestParameters, options) {
294
- return localVarFp.connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(axios, basePath));
295
- },
296
416
  /**
297
417
  * Deauthorize a Stripe payment account
298
418
  * @summary Deauthorize Stripe
@@ -334,17 +454,6 @@ class PaymentApi extends base_1.BaseAPI {
334
454
  authorizeStripe(requestParameters, options) {
335
455
  return (0, exports.PaymentApiFp)(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
336
456
  }
337
- /**
338
- * Connect a Stripe payment account
339
- * @summary Connect Stripe
340
- * @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
341
- * @param {*} [options] Override http request option.
342
- * @throws {RequiredError}
343
- * @memberof PaymentApi
344
- */
345
- connectStripe(requestParameters, options) {
346
- return (0, exports.PaymentApiFp)(this.configuration).connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(this.axios, this.basePath));
347
- }
348
457
  /**
349
458
  * Deauthorize a Stripe payment account
350
459
  * @summary Deauthorize Stripe
package/dist/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.1.5
5
+ * The version of the OpenAPI document: 0.2.6
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/base.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.1.5
8
+ * The version of the OpenAPI document: 0.2.6
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/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.1.5
5
+ * The version of the OpenAPI document: 0.2.6
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/common.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.1.5
8
+ * The version of the OpenAPI document: 0.2.6
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * 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.1.5
5
+ * The version of the OpenAPI document: 0.2.6
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.1.5
8
+ * The version of the OpenAPI document: 0.2.6
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).