@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/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.1.5
7
+ * The version of the OpenAPI document: 0.2.6
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,22 +31,22 @@ export const PaymentAccountMethodEnum = {
31
31
  Paypal: 'paypal'
32
32
  };
33
33
  /**
34
- * PaymentApi - axios parameter creator
34
+ * MenuApi - axios parameter creator
35
35
  * @export
36
36
  */
37
- export const PaymentApiAxiosParamCreator = function (configuration) {
37
+ export const MenuApiAxiosParamCreator = function (configuration) {
38
38
  return {
39
39
  /**
40
- * Authorize a Stripe payment account
41
- * @summary Authorize Stripe
40
+ * Get menu
41
+ * @summary Get menu
42
42
  * @param {string} project What project it is
43
43
  * @param {*} [options] Override http request option.
44
44
  * @throws {RequiredError}
45
45
  */
46
- authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
46
+ getMenu: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
47
47
  // verify required parameter 'project' is not null or undefined
48
- assertParamExists('authorizeStripe', 'project', project);
49
- const localVarPath = `/v1/website/payment/stripe/authorize`;
48
+ assertParamExists('getMenu', 'project', project);
49
+ const localVarPath = `/v1/website/menu`;
50
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
51
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
52
  let baseOptions;
@@ -73,26 +73,24 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
73
73
  };
74
74
  }),
75
75
  /**
76
- * Connect a Stripe payment account
77
- * @summary Connect Stripe
76
+ * Update menu
77
+ * @summary Update menu
78
78
  * @param {string} project What project it is
79
- * @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
79
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
80
80
  * @param {*} [options] Override http request option.
81
81
  * @throws {RequiredError}
82
82
  */
83
- connectStripe: (project_2, connectStripeRequest_1, ...args_2) => __awaiter(this, [project_2, connectStripeRequest_1, ...args_2], void 0, function* (project, connectStripeRequest, options = {}) {
83
+ updateMenu: (project_1, updateMenuRequest_1, ...args_1) => __awaiter(this, [project_1, updateMenuRequest_1, ...args_1], void 0, function* (project, updateMenuRequest, options = {}) {
84
84
  // verify required parameter 'project' is not null or undefined
85
- assertParamExists('connectStripe', 'project', project);
86
- // verify required parameter 'connectStripeRequest' is not null or undefined
87
- assertParamExists('connectStripe', 'connectStripeRequest', connectStripeRequest);
88
- const localVarPath = `/v1/website/payment/stripe/connect`;
85
+ assertParamExists('updateMenu', 'project', project);
86
+ const localVarPath = `/v1/website/menu`;
89
87
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
88
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
89
  let baseOptions;
92
90
  if (configuration) {
93
91
  baseOptions = configuration.baseOptions;
94
92
  }
95
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
93
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
96
94
  const localVarHeaderParameter = {};
97
95
  const localVarQueryParameter = {};
98
96
  // authentication session-oauth required
@@ -107,7 +105,152 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
107
105
  setSearchParams(localVarUrlObj, localVarQueryParameter);
108
106
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
107
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
110
- localVarRequestOptions.data = serializeDataIfNeeded(connectStripeRequest, localVarRequestOptions, configuration);
108
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration);
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions,
112
+ };
113
+ }),
114
+ };
115
+ };
116
+ /**
117
+ * MenuApi - functional programming interface
118
+ * @export
119
+ */
120
+ export const MenuApiFp = function (configuration) {
121
+ const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration);
122
+ return {
123
+ /**
124
+ * Get menu
125
+ * @summary Get menu
126
+ * @param {string} project What project it is
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ getMenu(project, options) {
131
+ return __awaiter(this, void 0, void 0, function* () {
132
+ var _a, _b, _c;
133
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMenu(project, options);
134
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
135
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.getMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
136
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
137
+ });
138
+ },
139
+ /**
140
+ * Update menu
141
+ * @summary Update menu
142
+ * @param {string} project What project it is
143
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ updateMenu(project, updateMenuRequest, options) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ var _a, _b, _c;
150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
151
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
152
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.updateMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
153
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
154
+ });
155
+ },
156
+ };
157
+ };
158
+ /**
159
+ * MenuApi - factory interface
160
+ * @export
161
+ */
162
+ export const MenuApiFactory = function (configuration, basePath, axios) {
163
+ const localVarFp = MenuApiFp(configuration);
164
+ return {
165
+ /**
166
+ * Get menu
167
+ * @summary Get menu
168
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ getMenu(requestParameters, options) {
173
+ return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
174
+ },
175
+ /**
176
+ * Update menu
177
+ * @summary Update menu
178
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ updateMenu(requestParameters, options) {
183
+ return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
184
+ },
185
+ };
186
+ };
187
+ /**
188
+ * MenuApi - object-oriented interface
189
+ * @export
190
+ * @class MenuApi
191
+ * @extends {BaseAPI}
192
+ */
193
+ export class MenuApi extends BaseAPI {
194
+ /**
195
+ * Get menu
196
+ * @summary Get menu
197
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ * @memberof MenuApi
201
+ */
202
+ getMenu(requestParameters, options) {
203
+ return MenuApiFp(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
204
+ }
205
+ /**
206
+ * Update menu
207
+ * @summary Update menu
208
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ * @memberof MenuApi
212
+ */
213
+ updateMenu(requestParameters, options) {
214
+ return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
215
+ }
216
+ }
217
+ /**
218
+ * PaymentApi - axios parameter creator
219
+ * @export
220
+ */
221
+ export const PaymentApiAxiosParamCreator = function (configuration) {
222
+ return {
223
+ /**
224
+ * Authorize a Stripe payment account
225
+ * @summary Authorize Stripe
226
+ * @param {string} project What project it is
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
231
+ // verify required parameter 'project' is not null or undefined
232
+ assertParamExists('authorizeStripe', 'project', project);
233
+ const localVarPath = `/v1/website/payment/stripe/authorize`;
234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
236
+ let baseOptions;
237
+ if (configuration) {
238
+ baseOptions = configuration.baseOptions;
239
+ }
240
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
241
+ const localVarHeaderParameter = {};
242
+ const localVarQueryParameter = {};
243
+ // authentication session-oauth required
244
+ // oauth required
245
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
246
+ // authentication api-key required
247
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
248
+ if (project !== undefined) {
249
+ localVarQueryParameter['project'] = project;
250
+ }
251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
111
254
  return {
112
255
  url: toPathString(localVarUrlObj),
113
256
  options: localVarRequestOptions,
@@ -120,7 +263,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
120
263
  * @param {*} [options] Override http request option.
121
264
  * @throws {RequiredError}
122
265
  */
123
- deauthorizeStripe: (project_3, ...args_3) => __awaiter(this, [project_3, ...args_3], void 0, function* (project, options = {}) {
266
+ deauthorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
124
267
  // verify required parameter 'project' is not null or undefined
125
268
  assertParamExists('deauthorizeStripe', 'project', project);
126
269
  const localVarPath = `/v1/website/payment/stripe/deauthorize`;
@@ -156,7 +299,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
156
299
  * @param {*} [options] Override http request option.
157
300
  * @throws {RequiredError}
158
301
  */
159
- getStripePaymentAccount: (project_4, ...args_4) => __awaiter(this, [project_4, ...args_4], void 0, function* (project, options = {}) {
302
+ getStripePaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
160
303
  // verify required parameter 'project' is not null or undefined
161
304
  assertParamExists('getStripePaymentAccount', 'project', project);
162
305
  const localVarPath = `/v1/website/payment/stripe`;
@@ -210,23 +353,6 @@ export const PaymentApiFp = function (configuration) {
210
353
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
211
354
  });
212
355
  },
213
- /**
214
- * Connect a Stripe payment account
215
- * @summary Connect Stripe
216
- * @param {string} project What project it is
217
- * @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
218
- * @param {*} [options] Override http request option.
219
- * @throws {RequiredError}
220
- */
221
- connectStripe(project, connectStripeRequest, options) {
222
- return __awaiter(this, void 0, void 0, function* () {
223
- var _a, _b, _c;
224
- const localVarAxiosArgs = yield localVarAxiosParamCreator.connectStripe(project, connectStripeRequest, options);
225
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
226
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.connectStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
227
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
228
- });
229
- },
230
356
  /**
231
357
  * Deauthorize a Stripe payment account
232
358
  * @summary Deauthorize Stripe
@@ -278,16 +404,6 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
278
404
  authorizeStripe(requestParameters, options) {
279
405
  return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
280
406
  },
281
- /**
282
- * Connect a Stripe payment account
283
- * @summary Connect Stripe
284
- * @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
285
- * @param {*} [options] Override http request option.
286
- * @throws {RequiredError}
287
- */
288
- connectStripe(requestParameters, options) {
289
- return localVarFp.connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(axios, basePath));
290
- },
291
407
  /**
292
408
  * Deauthorize a Stripe payment account
293
409
  * @summary Deauthorize Stripe
@@ -328,17 +444,6 @@ export class PaymentApi extends BaseAPI {
328
444
  authorizeStripe(requestParameters, options) {
329
445
  return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
330
446
  }
331
- /**
332
- * Connect a Stripe payment account
333
- * @summary Connect Stripe
334
- * @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
335
- * @param {*} [options] Override http request option.
336
- * @throws {RequiredError}
337
- * @memberof PaymentApi
338
- */
339
- connectStripe(requestParameters, options) {
340
- return PaymentApiFp(this.configuration).connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(this.axios, this.basePath));
341
- }
342
447
  /**
343
448
  * Deauthorize a Stripe payment account
344
449
  * @summary Deauthorize Stripe
@@ -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/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.1.5
7
+ * The version of the OpenAPI document: 0.2.6
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.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).
@@ -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.1.5
7
+ * The version of the OpenAPI document: 0.2.6
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.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).
@@ -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.1.5
7
+ * The version of the OpenAPI document: 0.2.6
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.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/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.1.5
7
+ * The version of the OpenAPI document: 0.2.6
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.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/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.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/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.1.5
7
+ * The version of the OpenAPI document: 0.2.6
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/website",
3
- "version": "0.1.5",
3
+ "version": "0.2.6",
4
4
  "description": "OpenAPI client for @teemill/website",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {