@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/dist/esm/api.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.6
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).
@@ -45,6 +45,56 @@ export interface AuthorizeStripe200Response {
45
45
  */
46
46
  'redirect_url': string;
47
47
  }
48
+ /**
49
+ *
50
+ * @export
51
+ * @interface Menu
52
+ */
53
+ export interface Menu {
54
+ /**
55
+ *
56
+ * @type {Array<MenuItem>}
57
+ * @memberof Menu
58
+ */
59
+ 'items': Array<MenuItem>;
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ * @interface MenuItem
65
+ */
66
+ export interface MenuItem {
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof MenuItem
71
+ */
72
+ 'id': string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof MenuItem
77
+ */
78
+ 'text': string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof MenuItem
83
+ */
84
+ 'link': string;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof MenuItem
89
+ */
90
+ 'order': number;
91
+ /**
92
+ *
93
+ * @type {Array<SubmenuInner>}
94
+ * @memberof MenuItem
95
+ */
96
+ 'submenu': Array<SubmenuInner>;
97
+ }
48
98
  /**
49
99
  *
50
100
  * @export
@@ -77,6 +127,460 @@ export declare const PaymentAccountMethodEnum: {
77
127
  readonly Paypal: "paypal";
78
128
  };
79
129
  export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
130
+ /**
131
+ *
132
+ * @export
133
+ * @interface SubmenuInner
134
+ */
135
+ export interface SubmenuInner {
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof SubmenuInner
140
+ */
141
+ 'id': string;
142
+ /**
143
+ *
144
+ * @type {string}
145
+ * @memberof SubmenuInner
146
+ */
147
+ 'title': string;
148
+ /**
149
+ *
150
+ * @type {string}
151
+ * @memberof SubmenuInner
152
+ */
153
+ 'image': string | null;
154
+ /**
155
+ *
156
+ * @type {number}
157
+ * @memberof SubmenuInner
158
+ */
159
+ 'order': number;
160
+ /**
161
+ *
162
+ * @type {Array<SubmenuItem>}
163
+ * @memberof SubmenuInner
164
+ */
165
+ 'items': Array<SubmenuItem>;
166
+ }
167
+ /**
168
+ *
169
+ * @export
170
+ * @interface SubmenuItem
171
+ */
172
+ export interface SubmenuItem {
173
+ /**
174
+ *
175
+ * @type {string}
176
+ * @memberof SubmenuItem
177
+ */
178
+ 'id': string;
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof SubmenuItem
183
+ */
184
+ 'text': string;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof SubmenuItem
189
+ */
190
+ 'link': string;
191
+ /**
192
+ *
193
+ * @type {number}
194
+ * @memberof SubmenuItem
195
+ */
196
+ 'order': number;
197
+ }
198
+ /**
199
+ *
200
+ * @export
201
+ * @interface UpdateMenuRequest
202
+ */
203
+ export interface UpdateMenuRequest {
204
+ /**
205
+ *
206
+ * @type {Array<UpdateMenuRequestItem>}
207
+ * @memberof UpdateMenuRequest
208
+ */
209
+ 'items'?: Array<UpdateMenuRequestItem>;
210
+ }
211
+ /**
212
+ *
213
+ * @export
214
+ * @interface UpdateMenuRequestItem
215
+ */
216
+ export interface UpdateMenuRequestItem {
217
+ /**
218
+ *
219
+ * @type {string}
220
+ * @memberof UpdateMenuRequestItem
221
+ */
222
+ 'id': string | null;
223
+ /**
224
+ *
225
+ * @type {string}
226
+ * @memberof UpdateMenuRequestItem
227
+ */
228
+ 'text': string;
229
+ /**
230
+ *
231
+ * @type {string}
232
+ * @memberof UpdateMenuRequestItem
233
+ */
234
+ 'link': string;
235
+ /**
236
+ *
237
+ * @type {number}
238
+ * @memberof UpdateMenuRequestItem
239
+ */
240
+ 'order': number;
241
+ /**
242
+ *
243
+ * @type {Array<UpdateMenuRequestItemSubmenuInner>}
244
+ * @memberof UpdateMenuRequestItem
245
+ */
246
+ 'submenu': Array<UpdateMenuRequestItemSubmenuInner>;
247
+ }
248
+ /**
249
+ *
250
+ * @export
251
+ * @interface UpdateMenuRequestItemSubmenuInner
252
+ */
253
+ export interface UpdateMenuRequestItemSubmenuInner {
254
+ /**
255
+ *
256
+ * @type {string}
257
+ * @memberof UpdateMenuRequestItemSubmenuInner
258
+ */
259
+ 'id': string | null;
260
+ /**
261
+ *
262
+ * @type {string}
263
+ * @memberof UpdateMenuRequestItemSubmenuInner
264
+ */
265
+ 'title': string;
266
+ /**
267
+ *
268
+ * @type {string}
269
+ * @memberof UpdateMenuRequestItemSubmenuInner
270
+ */
271
+ 'image': string | null;
272
+ /**
273
+ *
274
+ * @type {number}
275
+ * @memberof UpdateMenuRequestItemSubmenuInner
276
+ */
277
+ 'order': number;
278
+ /**
279
+ *
280
+ * @type {Array<UpdateMenuRequestSubmenuItem>}
281
+ * @memberof UpdateMenuRequestItemSubmenuInner
282
+ */
283
+ 'items': Array<UpdateMenuRequestSubmenuItem>;
284
+ }
285
+ /**
286
+ *
287
+ * @export
288
+ * @interface UpdateMenuRequestSubmenuItem
289
+ */
290
+ export interface UpdateMenuRequestSubmenuItem {
291
+ /**
292
+ *
293
+ * @type {string}
294
+ * @memberof UpdateMenuRequestSubmenuItem
295
+ */
296
+ 'id': string | null;
297
+ /**
298
+ *
299
+ * @type {string}
300
+ * @memberof UpdateMenuRequestSubmenuItem
301
+ */
302
+ 'text': string;
303
+ /**
304
+ *
305
+ * @type {string}
306
+ * @memberof UpdateMenuRequestSubmenuItem
307
+ */
308
+ 'link': string;
309
+ /**
310
+ *
311
+ * @type {number}
312
+ * @memberof UpdateMenuRequestSubmenuItem
313
+ */
314
+ 'order': number;
315
+ }
316
+ /**
317
+ * CrossSellApi - axios parameter creator
318
+ * @export
319
+ */
320
+ export declare const CrossSellApiAxiosParamCreator: (configuration?: Configuration) => {
321
+ /**
322
+ * Attaches a list of products to the given product as cross-sell products.
323
+ * @summary Attach cross-sell products
324
+ * @param {string} project What project it is
325
+ * @param {string} productId Product\&#39;s unique identifier
326
+ * @param {Array<string>} [requestBody]
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ attachCrossSellProducts: (project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
331
+ /**
332
+ *
333
+ * @summary Get cross-sell products linked to a product
334
+ * @param {string} project What project it is
335
+ * @param {string} productId Product\&#39;s unique identifier
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ getCrossSellProducts: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
340
+ };
341
+ /**
342
+ * CrossSellApi - functional programming interface
343
+ * @export
344
+ */
345
+ export declare const CrossSellApiFp: (configuration?: Configuration) => {
346
+ /**
347
+ * Attaches a list of products to the given product as cross-sell products.
348
+ * @summary Attach cross-sell products
349
+ * @param {string} project What project it is
350
+ * @param {string} productId Product\&#39;s unique identifier
351
+ * @param {Array<string>} [requestBody]
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ attachCrossSellProducts(project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
356
+ /**
357
+ *
358
+ * @summary Get cross-sell products linked to a product
359
+ * @param {string} project What project it is
360
+ * @param {string} productId Product\&#39;s unique identifier
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
365
+ };
366
+ /**
367
+ * CrossSellApi - factory interface
368
+ * @export
369
+ */
370
+ export declare const CrossSellApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
371
+ /**
372
+ * Attaches a list of products to the given product as cross-sell products.
373
+ * @summary Attach cross-sell products
374
+ * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
379
+ /**
380
+ *
381
+ * @summary Get cross-sell products linked to a product
382
+ * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
387
+ };
388
+ /**
389
+ * Request parameters for attachCrossSellProducts operation in CrossSellApi.
390
+ * @export
391
+ * @interface CrossSellApiAttachCrossSellProductsRequest
392
+ */
393
+ export interface CrossSellApiAttachCrossSellProductsRequest {
394
+ /**
395
+ * What project it is
396
+ * @type {string}
397
+ * @memberof CrossSellApiAttachCrossSellProducts
398
+ */
399
+ readonly project: string;
400
+ /**
401
+ * Product\&#39;s unique identifier
402
+ * @type {string}
403
+ * @memberof CrossSellApiAttachCrossSellProducts
404
+ */
405
+ readonly productId: string;
406
+ /**
407
+ *
408
+ * @type {Array<string>}
409
+ * @memberof CrossSellApiAttachCrossSellProducts
410
+ */
411
+ readonly requestBody?: Array<string>;
412
+ }
413
+ /**
414
+ * Request parameters for getCrossSellProducts operation in CrossSellApi.
415
+ * @export
416
+ * @interface CrossSellApiGetCrossSellProductsRequest
417
+ */
418
+ export interface CrossSellApiGetCrossSellProductsRequest {
419
+ /**
420
+ * What project it is
421
+ * @type {string}
422
+ * @memberof CrossSellApiGetCrossSellProducts
423
+ */
424
+ readonly project: string;
425
+ /**
426
+ * Product\&#39;s unique identifier
427
+ * @type {string}
428
+ * @memberof CrossSellApiGetCrossSellProducts
429
+ */
430
+ readonly productId: string;
431
+ }
432
+ /**
433
+ * CrossSellApi - object-oriented interface
434
+ * @export
435
+ * @class CrossSellApi
436
+ * @extends {BaseAPI}
437
+ */
438
+ export declare class CrossSellApi extends BaseAPI {
439
+ /**
440
+ * Attaches a list of products to the given product as cross-sell products.
441
+ * @summary Attach cross-sell products
442
+ * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ * @memberof CrossSellApi
446
+ */
447
+ attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
448
+ /**
449
+ *
450
+ * @summary Get cross-sell products linked to a product
451
+ * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ * @memberof CrossSellApi
455
+ */
456
+ getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
457
+ }
458
+ /**
459
+ * MenuApi - axios parameter creator
460
+ * @export
461
+ */
462
+ export declare const MenuApiAxiosParamCreator: (configuration?: Configuration) => {
463
+ /**
464
+ * Get menu
465
+ * @summary Get menu
466
+ * @param {string} project What project it is
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ getMenu: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
471
+ /**
472
+ * Update menu
473
+ * @summary Update menu
474
+ * @param {string} project What project it is
475
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ updateMenu: (project: string, updateMenuRequest?: UpdateMenuRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
480
+ };
481
+ /**
482
+ * MenuApi - functional programming interface
483
+ * @export
484
+ */
485
+ export declare const MenuApiFp: (configuration?: Configuration) => {
486
+ /**
487
+ * Get menu
488
+ * @summary Get menu
489
+ * @param {string} project What project it is
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ getMenu(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>>;
494
+ /**
495
+ * Update menu
496
+ * @summary Update menu
497
+ * @param {string} project What project it is
498
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ updateMenu(project: string, updateMenuRequest?: UpdateMenuRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>>;
503
+ };
504
+ /**
505
+ * MenuApi - factory interface
506
+ * @export
507
+ */
508
+ export declare const MenuApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
509
+ /**
510
+ * Get menu
511
+ * @summary Get menu
512
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu>;
517
+ /**
518
+ * Update menu
519
+ * @summary Update menu
520
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu>;
525
+ };
526
+ /**
527
+ * Request parameters for getMenu operation in MenuApi.
528
+ * @export
529
+ * @interface MenuApiGetMenuRequest
530
+ */
531
+ export interface MenuApiGetMenuRequest {
532
+ /**
533
+ * What project it is
534
+ * @type {string}
535
+ * @memberof MenuApiGetMenu
536
+ */
537
+ readonly project: string;
538
+ }
539
+ /**
540
+ * Request parameters for updateMenu operation in MenuApi.
541
+ * @export
542
+ * @interface MenuApiUpdateMenuRequest
543
+ */
544
+ export interface MenuApiUpdateMenuRequest {
545
+ /**
546
+ * What project it is
547
+ * @type {string}
548
+ * @memberof MenuApiUpdateMenu
549
+ */
550
+ readonly project: string;
551
+ /**
552
+ * Update menu request
553
+ * @type {UpdateMenuRequest}
554
+ * @memberof MenuApiUpdateMenu
555
+ */
556
+ readonly updateMenuRequest?: UpdateMenuRequest;
557
+ }
558
+ /**
559
+ * MenuApi - object-oriented interface
560
+ * @export
561
+ * @class MenuApi
562
+ * @extends {BaseAPI}
563
+ */
564
+ export declare class MenuApi extends BaseAPI {
565
+ /**
566
+ * Get menu
567
+ * @summary Get menu
568
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ * @memberof MenuApi
572
+ */
573
+ getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Menu, any>>;
574
+ /**
575
+ * Update menu
576
+ * @summary Update menu
577
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ * @memberof MenuApi
581
+ */
582
+ updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Menu, any>>;
583
+ }
80
584
  /**
81
585
  * PaymentApi - axios parameter creator
82
586
  * @export