@compassdigital/sdk.typescript 3.44.3 → 3.45.1
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/lib/index.d.ts +283 -74
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +312 -71
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +316 -88
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +11 -12
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +108 -54
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +754 -181
- package/src/interface/location.ts +1 -1
- package/src/interface/menu.ts +522 -129
- package/src/interface/partner.ts +18 -14
- package/src/interface/shoppingcart.ts +127 -54
package/src/interface/menu.ts
CHANGED
|
@@ -17,11 +17,37 @@ export interface ItemsListResponse {
|
|
|
17
17
|
results?: LocalItem[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export interface MenuV2ListResponse {
|
|
21
|
+
meta?: Meta;
|
|
22
|
+
results?: MenuV2[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface LayoutListResponse {
|
|
26
|
+
meta?: Meta;
|
|
27
|
+
results?: Layout[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface CategoryListResponse {
|
|
31
|
+
meta?: Meta;
|
|
32
|
+
results?: Category[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ItemToModifierGroupRelationshipList = ItemToModifierGroupRelationship[];
|
|
36
|
+
|
|
37
|
+
export type CategoryToItemRelationshipList = CategoryToItemRelationship[];
|
|
38
|
+
|
|
39
|
+
export type ModifierGroupToModifierRelationshipList = ModifierGroupToModifierRelationship[];
|
|
40
|
+
|
|
20
41
|
export interface ItemToModifierGroupRelationshipListResponse {
|
|
21
42
|
meta?: Meta;
|
|
22
43
|
results?: ItemToModifierGroupRelationship[];
|
|
23
44
|
}
|
|
24
45
|
|
|
46
|
+
export interface CategoryToItemRelationshipListResponse {
|
|
47
|
+
meta?: Meta;
|
|
48
|
+
results?: CategoryToItemRelationship[];
|
|
49
|
+
}
|
|
50
|
+
|
|
25
51
|
export interface ModifierGroupToModifierRelationshipListResponse {
|
|
26
52
|
meta?: Meta;
|
|
27
53
|
results?: ModifierGroupToModifierRelationship[];
|
|
@@ -46,6 +72,7 @@ export interface Modifier {
|
|
|
46
72
|
label?: string;
|
|
47
73
|
price?: number;
|
|
48
74
|
calories?: number;
|
|
75
|
+
priority?: number;
|
|
49
76
|
posid?: string;
|
|
50
77
|
tax_tags?: string[];
|
|
51
78
|
is_active?: boolean;
|
|
@@ -63,6 +90,7 @@ export interface ModifierGroup {
|
|
|
63
90
|
min?: number;
|
|
64
91
|
max?: number;
|
|
65
92
|
is_active?: boolean;
|
|
93
|
+
priority?: number;
|
|
66
94
|
created_at?: string;
|
|
67
95
|
updated_at?: string;
|
|
68
96
|
deleted_at?: string;
|
|
@@ -76,6 +104,7 @@ export interface LocalItem {
|
|
|
76
104
|
label?: string;
|
|
77
105
|
price?: number;
|
|
78
106
|
calories?: number;
|
|
107
|
+
priority?: number;
|
|
79
108
|
posid?: string;
|
|
80
109
|
barcode?: string;
|
|
81
110
|
tax_tags?: string[];
|
|
@@ -87,6 +116,37 @@ export interface LocalItem {
|
|
|
87
116
|
[index: string]: any;
|
|
88
117
|
}
|
|
89
118
|
|
|
119
|
+
export interface MenuV2 {
|
|
120
|
+
id?: string;
|
|
121
|
+
name?: string;
|
|
122
|
+
created_at?: string;
|
|
123
|
+
updated_at?: string;
|
|
124
|
+
deleted_at?: string;
|
|
125
|
+
[index: string]: any;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface Layout {
|
|
129
|
+
id?: string;
|
|
130
|
+
name?: string;
|
|
131
|
+
created_at?: string;
|
|
132
|
+
updated_at?: string;
|
|
133
|
+
deleted_at?: string;
|
|
134
|
+
[index: string]: any;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface Category {
|
|
138
|
+
id?: string;
|
|
139
|
+
name?: string;
|
|
140
|
+
label?: string;
|
|
141
|
+
sequence?: number;
|
|
142
|
+
is_active?: boolean;
|
|
143
|
+
priority?: number;
|
|
144
|
+
created_at?: string;
|
|
145
|
+
updated_at?: string;
|
|
146
|
+
deleted_at?: string;
|
|
147
|
+
[index: string]: any;
|
|
148
|
+
}
|
|
149
|
+
|
|
90
150
|
export interface ItemToModifierGroupRelationship {
|
|
91
151
|
id?: string;
|
|
92
152
|
item?: Item;
|
|
@@ -100,6 +160,19 @@ export interface ItemToModifierGroupRelationship {
|
|
|
100
160
|
[index: string]: any;
|
|
101
161
|
}
|
|
102
162
|
|
|
163
|
+
export interface CategoryToItemRelationship {
|
|
164
|
+
id?: string;
|
|
165
|
+
item?: Item;
|
|
166
|
+
item_id?: string;
|
|
167
|
+
category?: Category;
|
|
168
|
+
category_id?: string;
|
|
169
|
+
sequence?: number;
|
|
170
|
+
created_at?: string;
|
|
171
|
+
updated_at?: string;
|
|
172
|
+
deleted_at?: string;
|
|
173
|
+
[index: string]: any;
|
|
174
|
+
}
|
|
175
|
+
|
|
103
176
|
export interface ModifierGroupToModifierRelationship {
|
|
104
177
|
id?: string;
|
|
105
178
|
modifier?: Modifier;
|
|
@@ -410,326 +483,646 @@ export interface ZippedExcelExport {
|
|
|
410
483
|
format?: string;
|
|
411
484
|
}
|
|
412
485
|
|
|
413
|
-
// GET /menu/
|
|
486
|
+
// GET /menu/v3/modifiers
|
|
414
487
|
|
|
415
|
-
export interface
|
|
488
|
+
export interface GetMenuV3ModifiersQuery {
|
|
416
489
|
// Graphql query string
|
|
417
490
|
_query?: string;
|
|
418
491
|
}
|
|
419
492
|
|
|
420
|
-
export type
|
|
493
|
+
export type GetMenuV3ModifiersResponse = ModifiersListResponse;
|
|
421
494
|
|
|
422
|
-
export interface
|
|
495
|
+
export interface GetMenuV3ModifiersRequest
|
|
423
496
|
extends BaseRequest,
|
|
424
|
-
RequestQuery<
|
|
497
|
+
RequestQuery<GetMenuV3ModifiersQuery> {}
|
|
425
498
|
|
|
426
|
-
// GET /menu/
|
|
499
|
+
// GET /menu/v3/modifier/{id}
|
|
427
500
|
|
|
428
|
-
export interface
|
|
501
|
+
export interface GetMenuV3ModifierPath {
|
|
429
502
|
id: string;
|
|
430
503
|
}
|
|
431
504
|
|
|
432
|
-
export interface
|
|
505
|
+
export interface GetMenuV3ModifierQuery {
|
|
433
506
|
// Graphql query string
|
|
434
507
|
_query?: string;
|
|
435
508
|
}
|
|
436
509
|
|
|
437
|
-
export type
|
|
510
|
+
export type GetMenuV3ModifierResponse = Modifier;
|
|
438
511
|
|
|
439
|
-
export interface
|
|
512
|
+
export interface GetMenuV3ModifierRequest
|
|
440
513
|
extends BaseRequest,
|
|
441
|
-
RequestQuery<
|
|
442
|
-
|
|
514
|
+
RequestQuery<GetMenuV3ModifierQuery>,
|
|
515
|
+
GetMenuV3ModifierPath {}
|
|
443
516
|
|
|
444
|
-
// PATCH /menu/
|
|
517
|
+
// PATCH /menu/v3/modifier/{id}
|
|
445
518
|
|
|
446
|
-
export interface
|
|
519
|
+
export interface PatchMenuV3ModifierPath {
|
|
447
520
|
id: string;
|
|
448
521
|
}
|
|
449
522
|
|
|
450
|
-
export type
|
|
523
|
+
export type PatchMenuV3ModifierBody = Modifier;
|
|
451
524
|
|
|
452
|
-
export type
|
|
525
|
+
export type PatchMenuV3ModifierResponse = Modifier;
|
|
453
526
|
|
|
454
|
-
export interface
|
|
455
|
-
body:
|
|
527
|
+
export interface PatchMenuV3ModifierRequest extends BaseRequest, PatchMenuV3ModifierPath {
|
|
528
|
+
body: PatchMenuV3ModifierBody;
|
|
456
529
|
}
|
|
457
530
|
|
|
458
|
-
// POST /menu/
|
|
531
|
+
// POST /menu/v3/modifier
|
|
459
532
|
|
|
460
|
-
export type
|
|
533
|
+
export type PostMenuV3ModifierBody = Modifier;
|
|
461
534
|
|
|
462
|
-
export type
|
|
535
|
+
export type PostMenuV3ModifierResponse = Modifier;
|
|
463
536
|
|
|
464
|
-
export interface
|
|
465
|
-
body:
|
|
537
|
+
export interface PostMenuV3ModifierRequest extends BaseRequest {
|
|
538
|
+
body: PostMenuV3ModifierBody;
|
|
466
539
|
}
|
|
467
540
|
|
|
468
|
-
// GET /menu/
|
|
541
|
+
// GET /menu/v3/modifier/count
|
|
469
542
|
|
|
470
|
-
export interface
|
|
543
|
+
export interface GetMenuV3ModifierCountQuery {
|
|
471
544
|
// Graphql query string
|
|
472
545
|
_query?: string;
|
|
473
546
|
}
|
|
474
547
|
|
|
475
|
-
export interface
|
|
548
|
+
export interface GetMenuV3ModifierCountResponse {
|
|
476
549
|
count?: number;
|
|
477
550
|
}
|
|
478
551
|
|
|
479
|
-
export interface
|
|
552
|
+
export interface GetMenuV3ModifierCountRequest
|
|
480
553
|
extends BaseRequest,
|
|
481
|
-
RequestQuery<
|
|
554
|
+
RequestQuery<GetMenuV3ModifierCountQuery> {}
|
|
482
555
|
|
|
483
|
-
// GET /menu/
|
|
556
|
+
// GET /menu/v3/modifier-groups
|
|
484
557
|
|
|
485
|
-
export interface
|
|
558
|
+
export interface GetMenuV3ModifierGroupsQuery {
|
|
486
559
|
// Graphql query string
|
|
487
560
|
_query?: string;
|
|
488
561
|
}
|
|
489
562
|
|
|
490
|
-
export type
|
|
563
|
+
export type GetMenuV3ModifierGroupsResponse = ModifierGroupsListResponse;
|
|
491
564
|
|
|
492
|
-
export interface
|
|
565
|
+
export interface GetMenuV3ModifierGroupsRequest
|
|
493
566
|
extends BaseRequest,
|
|
494
|
-
RequestQuery<
|
|
567
|
+
RequestQuery<GetMenuV3ModifierGroupsQuery> {}
|
|
495
568
|
|
|
496
|
-
// POST /menu/
|
|
569
|
+
// POST /menu/v3/modifier-group
|
|
497
570
|
|
|
498
|
-
export type
|
|
571
|
+
export type PostMenuV3ModifierGroupBody = ModifierGroup;
|
|
499
572
|
|
|
500
|
-
export type
|
|
573
|
+
export type PostMenuV3ModifierGroupResponse = ModifierGroup;
|
|
501
574
|
|
|
502
|
-
export interface
|
|
503
|
-
body:
|
|
575
|
+
export interface PostMenuV3ModifierGroupRequest extends BaseRequest {
|
|
576
|
+
body: PostMenuV3ModifierGroupBody;
|
|
504
577
|
}
|
|
505
578
|
|
|
506
|
-
// GET /menu/
|
|
579
|
+
// GET /menu/v3/modifier-group/{id}
|
|
507
580
|
|
|
508
|
-
export interface
|
|
581
|
+
export interface GetMenuV3ModifierGroupPath {
|
|
509
582
|
id: string;
|
|
510
583
|
}
|
|
511
584
|
|
|
512
|
-
export interface
|
|
585
|
+
export interface GetMenuV3ModifierGroupQuery {
|
|
513
586
|
// Graphql query string
|
|
514
587
|
_query?: string;
|
|
515
588
|
}
|
|
516
589
|
|
|
517
|
-
export type
|
|
590
|
+
export type GetMenuV3ModifierGroupResponse = ModifierGroup;
|
|
518
591
|
|
|
519
|
-
export interface
|
|
592
|
+
export interface GetMenuV3ModifierGroupRequest
|
|
520
593
|
extends BaseRequest,
|
|
521
|
-
RequestQuery<
|
|
522
|
-
|
|
594
|
+
RequestQuery<GetMenuV3ModifierGroupQuery>,
|
|
595
|
+
GetMenuV3ModifierGroupPath {}
|
|
523
596
|
|
|
524
|
-
// PATCH /menu/
|
|
597
|
+
// PATCH /menu/v3/modifier-group/{id}
|
|
525
598
|
|
|
526
|
-
export interface
|
|
599
|
+
export interface PatchMenuV3ModifierGroupPath {
|
|
527
600
|
id: string;
|
|
528
601
|
}
|
|
529
602
|
|
|
530
|
-
export type
|
|
603
|
+
export type PatchMenuV3ModifierGroupBody = ModifierGroup;
|
|
531
604
|
|
|
532
|
-
export type
|
|
605
|
+
export type PatchMenuV3ModifierGroupResponse = ModifierGroup;
|
|
533
606
|
|
|
534
|
-
export interface
|
|
535
|
-
body:
|
|
607
|
+
export interface PatchMenuV3ModifierGroupRequest extends BaseRequest, PatchMenuV3ModifierGroupPath {
|
|
608
|
+
body: PatchMenuV3ModifierGroupBody;
|
|
536
609
|
}
|
|
537
610
|
|
|
538
|
-
// GET /menu/
|
|
611
|
+
// GET /menu/v3/modifier-group/count
|
|
539
612
|
|
|
540
|
-
export interface
|
|
613
|
+
export interface GetMenuV3ModifierGroupCountQuery {
|
|
541
614
|
// Graphql query string
|
|
542
615
|
_query?: string;
|
|
543
616
|
}
|
|
544
617
|
|
|
545
|
-
export interface
|
|
618
|
+
export interface GetMenuV3ModifierGroupCountResponse {
|
|
546
619
|
count?: number;
|
|
547
620
|
}
|
|
548
621
|
|
|
549
|
-
export interface
|
|
622
|
+
export interface GetMenuV3ModifierGroupCountRequest
|
|
550
623
|
extends BaseRequest,
|
|
551
|
-
RequestQuery<
|
|
624
|
+
RequestQuery<GetMenuV3ModifierGroupCountQuery> {}
|
|
552
625
|
|
|
553
|
-
// GET /menu/
|
|
626
|
+
// GET /menu/v3/modifier-group/relationships/modifiers
|
|
554
627
|
|
|
555
|
-
export interface
|
|
628
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifiersQuery {
|
|
556
629
|
// Graphql query string
|
|
557
630
|
_query?: string;
|
|
558
631
|
}
|
|
559
632
|
|
|
560
|
-
export type
|
|
633
|
+
export type GetMenuV3ModifierGroupRelationshipsModifiersResponse =
|
|
561
634
|
ModifierGroupToModifierRelationshipListResponse;
|
|
562
635
|
|
|
563
|
-
export interface
|
|
636
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifiersRequest
|
|
564
637
|
extends BaseRequest,
|
|
565
|
-
RequestQuery<
|
|
638
|
+
RequestQuery<GetMenuV3ModifierGroupRelationshipsModifiersQuery> {}
|
|
566
639
|
|
|
567
|
-
// POST /menu/
|
|
640
|
+
// POST /menu/v3/modifier-group/relationships/modifiers
|
|
568
641
|
|
|
569
|
-
export type
|
|
642
|
+
export type PostMenuV3ModifierGroupRelationshipsModifiersBody =
|
|
643
|
+
ModifierGroupToModifierRelationshipList;
|
|
570
644
|
|
|
571
|
-
export type
|
|
645
|
+
export type PostMenuV3ModifierGroupRelationshipsModifiersResponse =
|
|
646
|
+
ModifierGroupToModifierRelationshipListResponse;
|
|
647
|
+
|
|
648
|
+
export interface PostMenuV3ModifierGroupRelationshipsModifiersRequest extends BaseRequest {
|
|
649
|
+
body: PostMenuV3ModifierGroupRelationshipsModifiersBody;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// POST /menu/v3/modifier-group/relationships/modifier
|
|
653
|
+
|
|
654
|
+
export type PostMenuV3ModifierGroupRelationshipsModifierBody = ModifierGroupToModifierRelationship;
|
|
655
|
+
|
|
656
|
+
export type PostMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
572
657
|
ModifierGroupToModifierRelationship;
|
|
573
658
|
|
|
574
|
-
export interface
|
|
575
|
-
body:
|
|
659
|
+
export interface PostMenuV3ModifierGroupRelationshipsModifierRequest extends BaseRequest {
|
|
660
|
+
body: PostMenuV3ModifierGroupRelationshipsModifierBody;
|
|
576
661
|
}
|
|
577
662
|
|
|
578
|
-
// GET /menu/
|
|
663
|
+
// GET /menu/v3/modifier-group/relationships/modifier/{id}
|
|
579
664
|
|
|
580
|
-
export interface
|
|
665
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifierPath {
|
|
581
666
|
id: string;
|
|
582
667
|
}
|
|
583
668
|
|
|
584
|
-
export interface
|
|
669
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifierQuery {
|
|
585
670
|
// Graphql query string
|
|
586
671
|
_query?: string;
|
|
587
672
|
}
|
|
588
673
|
|
|
589
|
-
export type
|
|
674
|
+
export type GetMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
590
675
|
ModifierGroupToModifierRelationship;
|
|
591
676
|
|
|
592
|
-
export interface
|
|
677
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifierRequest
|
|
593
678
|
extends BaseRequest,
|
|
594
|
-
RequestQuery<
|
|
595
|
-
|
|
679
|
+
RequestQuery<GetMenuV3ModifierGroupRelationshipsModifierQuery>,
|
|
680
|
+
GetMenuV3ModifierGroupRelationshipsModifierPath {}
|
|
596
681
|
|
|
597
|
-
// PATCH /menu/
|
|
682
|
+
// PATCH /menu/v3/modifier-group/relationships/modifier/{id}
|
|
598
683
|
|
|
599
|
-
export interface
|
|
684
|
+
export interface PatchMenuV3ModifierGroupRelationshipsModifierPath {
|
|
600
685
|
id: string;
|
|
601
686
|
}
|
|
602
687
|
|
|
603
|
-
export type
|
|
688
|
+
export type PatchMenuV3ModifierGroupRelationshipsModifierBody = ModifierGroupToModifierRelationship;
|
|
604
689
|
|
|
605
|
-
export type
|
|
690
|
+
export type PatchMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
606
691
|
ModifierGroupToModifierRelationship;
|
|
607
692
|
|
|
608
|
-
export interface
|
|
693
|
+
export interface PatchMenuV3ModifierGroupRelationshipsModifierRequest
|
|
609
694
|
extends BaseRequest,
|
|
610
|
-
|
|
611
|
-
body:
|
|
695
|
+
PatchMenuV3ModifierGroupRelationshipsModifierPath {
|
|
696
|
+
body: PatchMenuV3ModifierGroupRelationshipsModifierBody;
|
|
612
697
|
}
|
|
613
698
|
|
|
614
|
-
// GET /menu/
|
|
699
|
+
// GET /menu/v3/items
|
|
615
700
|
|
|
616
|
-
export interface
|
|
701
|
+
export interface GetMenuV3ItemsQuery {
|
|
617
702
|
// Graphql query string
|
|
618
703
|
_query?: string;
|
|
619
704
|
}
|
|
620
705
|
|
|
621
|
-
export type
|
|
706
|
+
export type GetMenuV3ItemsResponse = ItemsListResponse;
|
|
622
707
|
|
|
623
|
-
export interface
|
|
708
|
+
export interface GetMenuV3ItemsRequest extends BaseRequest, RequestQuery<GetMenuV3ItemsQuery> {}
|
|
624
709
|
|
|
625
|
-
// GET /menu/
|
|
710
|
+
// GET /menu/v3/item/{id}
|
|
626
711
|
|
|
627
|
-
export interface
|
|
712
|
+
export interface GetMenuV3ItemPath {
|
|
628
713
|
id: string;
|
|
629
714
|
}
|
|
630
715
|
|
|
631
|
-
export interface
|
|
716
|
+
export interface GetMenuV3ItemQuery {
|
|
632
717
|
// Graphql query string
|
|
633
718
|
_query?: string;
|
|
634
719
|
}
|
|
635
720
|
|
|
636
|
-
export type
|
|
721
|
+
export type GetMenuV3ItemResponse = LocalItem;
|
|
637
722
|
|
|
638
|
-
export interface
|
|
723
|
+
export interface GetMenuV3ItemRequest
|
|
639
724
|
extends BaseRequest,
|
|
640
|
-
RequestQuery<
|
|
641
|
-
|
|
725
|
+
RequestQuery<GetMenuV3ItemQuery>,
|
|
726
|
+
GetMenuV3ItemPath {}
|
|
642
727
|
|
|
643
|
-
// PATCH /menu/
|
|
728
|
+
// PATCH /menu/v3/item/{id}
|
|
644
729
|
|
|
645
|
-
export interface
|
|
730
|
+
export interface PatchMenuV3ItemPath {
|
|
646
731
|
id: string;
|
|
647
732
|
}
|
|
648
733
|
|
|
649
|
-
export type
|
|
734
|
+
export type PatchMenuV3ItemBody = LocalItem;
|
|
650
735
|
|
|
651
|
-
export type
|
|
736
|
+
export type PatchMenuV3ItemResponse = LocalItem;
|
|
652
737
|
|
|
653
|
-
export interface
|
|
654
|
-
body:
|
|
738
|
+
export interface PatchMenuV3ItemRequest extends BaseRequest, PatchMenuV3ItemPath {
|
|
739
|
+
body: PatchMenuV3ItemBody;
|
|
655
740
|
}
|
|
656
741
|
|
|
657
|
-
// POST /menu/
|
|
742
|
+
// POST /menu/v3/item
|
|
658
743
|
|
|
659
|
-
export type
|
|
744
|
+
export type PostMenuV3ItemBody = LocalItem;
|
|
660
745
|
|
|
661
|
-
export type
|
|
746
|
+
export type PostMenuV3ItemResponse = LocalItem;
|
|
662
747
|
|
|
663
|
-
export interface
|
|
664
|
-
body:
|
|
748
|
+
export interface PostMenuV3ItemRequest extends BaseRequest {
|
|
749
|
+
body: PostMenuV3ItemBody;
|
|
665
750
|
}
|
|
666
751
|
|
|
667
|
-
// GET /menu/
|
|
752
|
+
// GET /menu/v3/items/count
|
|
668
753
|
|
|
669
|
-
export interface
|
|
754
|
+
export interface GetMenuV3ItemsCountQuery {
|
|
670
755
|
// Graphql query string
|
|
671
756
|
_query?: string;
|
|
672
757
|
}
|
|
673
758
|
|
|
674
|
-
export interface
|
|
759
|
+
export interface GetMenuV3ItemsCountResponse {
|
|
675
760
|
count?: number;
|
|
676
761
|
}
|
|
677
762
|
|
|
678
|
-
export interface
|
|
763
|
+
export interface GetMenuV3ItemsCountRequest
|
|
679
764
|
extends BaseRequest,
|
|
680
|
-
RequestQuery<
|
|
765
|
+
RequestQuery<GetMenuV3ItemsCountQuery> {}
|
|
681
766
|
|
|
682
|
-
// GET /menu/
|
|
767
|
+
// GET /menu/v3/item/relationships/modifier-groups
|
|
683
768
|
|
|
684
|
-
export interface
|
|
769
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupsQuery {
|
|
685
770
|
// Graphql query string
|
|
686
771
|
_query?: string;
|
|
687
772
|
}
|
|
688
773
|
|
|
689
|
-
export type
|
|
774
|
+
export type GetMenuV3ItemRelationshipsModifierGroupsResponse =
|
|
775
|
+
ItemToModifierGroupRelationshipListResponse;
|
|
776
|
+
|
|
777
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupsRequest
|
|
778
|
+
extends BaseRequest,
|
|
779
|
+
RequestQuery<GetMenuV3ItemRelationshipsModifierGroupsQuery> {}
|
|
780
|
+
|
|
781
|
+
// POST /menu/v3/item/relationships/modifier-groups
|
|
782
|
+
|
|
783
|
+
export type PostMenuV3ItemRelationshipsModifierGroupsBody = ItemToModifierGroupRelationshipList;
|
|
784
|
+
|
|
785
|
+
export type PostMenuV3ItemRelationshipsModifierGroupsResponse =
|
|
690
786
|
ItemToModifierGroupRelationshipListResponse;
|
|
691
787
|
|
|
692
|
-
export interface
|
|
788
|
+
export interface PostMenuV3ItemRelationshipsModifierGroupsRequest extends BaseRequest {
|
|
789
|
+
body: PostMenuV3ItemRelationshipsModifierGroupsBody;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
// POST /menu/v3/item/relationships/modifier-group
|
|
793
|
+
|
|
794
|
+
export type PostMenuV3ItemRelationshipsModifierGroupBody = ItemToModifierGroupRelationship;
|
|
795
|
+
|
|
796
|
+
export type PostMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationship;
|
|
797
|
+
|
|
798
|
+
export interface PostMenuV3ItemRelationshipsModifierGroupRequest extends BaseRequest {
|
|
799
|
+
body: PostMenuV3ItemRelationshipsModifierGroupBody;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// PATCH /menu/v3/item/relationships/modifier-group/{id}
|
|
803
|
+
|
|
804
|
+
export interface PatchMenuV3ItemRelationshipsModifierGroupPath {
|
|
805
|
+
id: string;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export type PatchMenuV3ItemRelationshipsModifierGroupBody = ItemToModifierGroupRelationship;
|
|
809
|
+
|
|
810
|
+
export type PatchMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationship;
|
|
811
|
+
|
|
812
|
+
export interface PatchMenuV3ItemRelationshipsModifierGroupRequest
|
|
813
|
+
extends BaseRequest,
|
|
814
|
+
PatchMenuV3ItemRelationshipsModifierGroupPath {
|
|
815
|
+
body: PatchMenuV3ItemRelationshipsModifierGroupBody;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
// DELETE /menu/v3/item/relationships/modifier-group/{id}
|
|
819
|
+
|
|
820
|
+
export interface DeleteMenuV3ItemRelationshipsModifierGroupPath {
|
|
821
|
+
id: string;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export type DeleteMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationship;
|
|
825
|
+
|
|
826
|
+
export interface DeleteMenuV3ItemRelationshipsModifierGroupRequest
|
|
827
|
+
extends BaseRequest,
|
|
828
|
+
DeleteMenuV3ItemRelationshipsModifierGroupPath {}
|
|
829
|
+
|
|
830
|
+
// GET /menu/v3/menus
|
|
831
|
+
|
|
832
|
+
export interface GetMenuV3MenusQuery {
|
|
833
|
+
// Graphql query string
|
|
834
|
+
_query?: string;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export type GetMenuV3MenusResponse = MenuV2ListResponse;
|
|
838
|
+
|
|
839
|
+
export interface GetMenuV3MenusRequest extends BaseRequest, RequestQuery<GetMenuV3MenusQuery> {}
|
|
840
|
+
|
|
841
|
+
// GET /menu/v3/menu/{id}
|
|
842
|
+
|
|
843
|
+
export interface GetMenuV3MenuPath {
|
|
844
|
+
id: string;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export interface GetMenuV3MenuQuery {
|
|
848
|
+
// Graphql query string
|
|
849
|
+
_query?: string;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export type GetMenuV3MenuResponse = MenuV2;
|
|
853
|
+
|
|
854
|
+
export interface GetMenuV3MenuRequest
|
|
855
|
+
extends BaseRequest,
|
|
856
|
+
RequestQuery<GetMenuV3MenuQuery>,
|
|
857
|
+
GetMenuV3MenuPath {}
|
|
858
|
+
|
|
859
|
+
// PATCH /menu/v3/menu/{id}
|
|
860
|
+
|
|
861
|
+
export interface PatchMenuV3MenuPath {
|
|
862
|
+
id: string;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export type PatchMenuV3MenuBody = MenuV2;
|
|
866
|
+
|
|
867
|
+
export type PatchMenuV3MenuResponse = MenuV2;
|
|
868
|
+
|
|
869
|
+
export interface PatchMenuV3MenuRequest extends BaseRequest, PatchMenuV3MenuPath {
|
|
870
|
+
body: PatchMenuV3MenuBody;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// DELETE /menu/v3/menu/{id}
|
|
874
|
+
|
|
875
|
+
export interface DeleteMenuV3MenuPath {
|
|
876
|
+
id: string;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export type DeleteMenuV3MenuResponse = MenuV2;
|
|
880
|
+
|
|
881
|
+
export interface DeleteMenuV3MenuRequest extends BaseRequest, DeleteMenuV3MenuPath {}
|
|
882
|
+
|
|
883
|
+
// POST /menu/v3/menu
|
|
884
|
+
|
|
885
|
+
export type PostMenuV3MenuBody = MenuV2;
|
|
886
|
+
|
|
887
|
+
export type PostMenuV3MenuResponse = MenuV2;
|
|
888
|
+
|
|
889
|
+
export interface PostMenuV3MenuRequest extends BaseRequest {
|
|
890
|
+
body: PostMenuV3MenuBody;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
// GET /menu/v3/menus/count
|
|
894
|
+
|
|
895
|
+
export interface GetMenuV3MenusCountQuery {
|
|
896
|
+
// Graphql query string
|
|
897
|
+
_query?: string;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export interface GetMenuV3MenusCountResponse {
|
|
901
|
+
count?: number;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export interface GetMenuV3MenusCountRequest
|
|
905
|
+
extends BaseRequest,
|
|
906
|
+
RequestQuery<GetMenuV3MenusCountQuery> {}
|
|
907
|
+
|
|
908
|
+
// GET /menu/v3/layouts
|
|
909
|
+
|
|
910
|
+
export interface GetMenuV3LayoutsQuery {
|
|
911
|
+
// Graphql query string
|
|
912
|
+
_query?: string;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
export type GetMenuV3LayoutsResponse = LayoutListResponse;
|
|
916
|
+
|
|
917
|
+
export interface GetMenuV3LayoutsRequest extends BaseRequest, RequestQuery<GetMenuV3LayoutsQuery> {}
|
|
918
|
+
|
|
919
|
+
// GET /menu/v3/layout/{id}
|
|
920
|
+
|
|
921
|
+
export interface GetMenuV3LayoutPath {
|
|
922
|
+
id: string;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export interface GetMenuV3LayoutQuery {
|
|
926
|
+
// Graphql query string
|
|
927
|
+
_query?: string;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
export type GetMenuV3LayoutResponse = Layout;
|
|
931
|
+
|
|
932
|
+
export interface GetMenuV3LayoutRequest
|
|
933
|
+
extends BaseRequest,
|
|
934
|
+
RequestQuery<GetMenuV3LayoutQuery>,
|
|
935
|
+
GetMenuV3LayoutPath {}
|
|
936
|
+
|
|
937
|
+
// PATCH /menu/v3/layout/{id}
|
|
938
|
+
|
|
939
|
+
export interface PatchMenuV3LayoutPath {
|
|
940
|
+
id: string;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
export type PatchMenuV3LayoutBody = Layout;
|
|
944
|
+
|
|
945
|
+
export type PatchMenuV3LayoutResponse = Layout;
|
|
946
|
+
|
|
947
|
+
export interface PatchMenuV3LayoutRequest extends BaseRequest, PatchMenuV3LayoutPath {
|
|
948
|
+
body: PatchMenuV3LayoutBody;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
// DELETE /menu/v3/layout/{id}
|
|
952
|
+
|
|
953
|
+
export interface DeleteMenuV3LayoutPath {
|
|
954
|
+
id: string;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export type DeleteMenuV3LayoutResponse = Layout;
|
|
958
|
+
|
|
959
|
+
export interface DeleteMenuV3LayoutRequest extends BaseRequest, DeleteMenuV3LayoutPath {}
|
|
960
|
+
|
|
961
|
+
// POST /menu/v3/layout
|
|
962
|
+
|
|
963
|
+
export type PostMenuV3LayoutBody = Layout;
|
|
964
|
+
|
|
965
|
+
export type PostMenuV3LayoutResponse = Layout;
|
|
966
|
+
|
|
967
|
+
export interface PostMenuV3LayoutRequest extends BaseRequest {
|
|
968
|
+
body: PostMenuV3LayoutBody;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
// GET /menu/v3/layouts/count
|
|
972
|
+
|
|
973
|
+
export interface GetMenuV3LayoutsCountQuery {
|
|
974
|
+
// Graphql query string
|
|
975
|
+
_query?: string;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export interface GetMenuV3LayoutsCountResponse {
|
|
979
|
+
count?: number;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export interface GetMenuV3LayoutsCountRequest
|
|
983
|
+
extends BaseRequest,
|
|
984
|
+
RequestQuery<GetMenuV3LayoutsCountQuery> {}
|
|
985
|
+
|
|
986
|
+
// GET /menu/v3/categories
|
|
987
|
+
|
|
988
|
+
export interface GetMenuV3CategoriesQuery {
|
|
989
|
+
// Graphql query string
|
|
990
|
+
_query?: string;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export type GetMenuV3CategoriesResponse = CategoryListResponse;
|
|
994
|
+
|
|
995
|
+
export interface GetMenuV3CategoriesRequest
|
|
996
|
+
extends BaseRequest,
|
|
997
|
+
RequestQuery<GetMenuV3CategoriesQuery> {}
|
|
998
|
+
|
|
999
|
+
// GET /menu/v3/category/{id}
|
|
1000
|
+
|
|
1001
|
+
export interface GetMenuV3CategoryPath {
|
|
1002
|
+
id: string;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
export interface GetMenuV3CategoryQuery {
|
|
1006
|
+
// Graphql query string
|
|
1007
|
+
_query?: string;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export type GetMenuV3CategoryResponse = Category;
|
|
1011
|
+
|
|
1012
|
+
export interface GetMenuV3CategoryRequest
|
|
1013
|
+
extends BaseRequest,
|
|
1014
|
+
RequestQuery<GetMenuV3CategoryQuery>,
|
|
1015
|
+
GetMenuV3CategoryPath {}
|
|
1016
|
+
|
|
1017
|
+
// PATCH /menu/v3/category/{id}
|
|
1018
|
+
|
|
1019
|
+
export interface PatchMenuV3CategoryPath {
|
|
1020
|
+
id: string;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export type PatchMenuV3CategoryBody = Category;
|
|
1024
|
+
|
|
1025
|
+
export type PatchMenuV3CategoryResponse = Category;
|
|
1026
|
+
|
|
1027
|
+
export interface PatchMenuV3CategoryRequest extends BaseRequest, PatchMenuV3CategoryPath {
|
|
1028
|
+
body: PatchMenuV3CategoryBody;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// DELETE /menu/v3/category/{id}
|
|
1032
|
+
|
|
1033
|
+
export interface DeleteMenuV3CategoryPath {
|
|
1034
|
+
id: string;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export type DeleteMenuV3CategoryResponse = Category;
|
|
1038
|
+
|
|
1039
|
+
export interface DeleteMenuV3CategoryRequest extends BaseRequest, DeleteMenuV3CategoryPath {}
|
|
1040
|
+
|
|
1041
|
+
// POST /menu/v3/category
|
|
1042
|
+
|
|
1043
|
+
export type PostMenuV3CategoryBody = Category;
|
|
1044
|
+
|
|
1045
|
+
export type PostMenuV3CategoryResponse = Category;
|
|
1046
|
+
|
|
1047
|
+
export interface PostMenuV3CategoryRequest extends BaseRequest {
|
|
1048
|
+
body: PostMenuV3CategoryBody;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// GET /menu/v3/categories/count
|
|
1052
|
+
|
|
1053
|
+
export interface GetMenuV3CategoriesCountQuery {
|
|
1054
|
+
// Graphql query string
|
|
1055
|
+
_query?: string;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export interface GetMenuV3CategoriesCountResponse {
|
|
1059
|
+
count?: number;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export interface GetMenuV3CategoriesCountRequest
|
|
693
1063
|
extends BaseRequest,
|
|
694
|
-
RequestQuery<
|
|
1064
|
+
RequestQuery<GetMenuV3CategoriesCountQuery> {}
|
|
1065
|
+
|
|
1066
|
+
// GET /menu/v3/category/relationships/items
|
|
1067
|
+
|
|
1068
|
+
export interface GetMenuV3CategoryRelationshipsItemsQuery {
|
|
1069
|
+
// Graphql query string
|
|
1070
|
+
_query?: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export type GetMenuV3CategoryRelationshipsItemsResponse = CategoryToItemRelationshipListResponse;
|
|
1074
|
+
|
|
1075
|
+
export interface GetMenuV3CategoryRelationshipsItemsRequest
|
|
1076
|
+
extends BaseRequest,
|
|
1077
|
+
RequestQuery<GetMenuV3CategoryRelationshipsItemsQuery> {}
|
|
1078
|
+
|
|
1079
|
+
// POST /menu/v3/category/relationships/items
|
|
1080
|
+
|
|
1081
|
+
export type PostMenuV3CategoryRelationshipsItemsBody = CategoryToItemRelationshipList;
|
|
1082
|
+
|
|
1083
|
+
export type PostMenuV3CategoryRelationshipsItemsResponse = CategoryToItemRelationshipListResponse;
|
|
1084
|
+
|
|
1085
|
+
export interface PostMenuV3CategoryRelationshipsItemsRequest extends BaseRequest {
|
|
1086
|
+
body: PostMenuV3CategoryRelationshipsItemsBody;
|
|
1087
|
+
}
|
|
695
1088
|
|
|
696
|
-
// POST /menu/
|
|
1089
|
+
// POST /menu/v3/category/relationships/item
|
|
697
1090
|
|
|
698
|
-
export type
|
|
1091
|
+
export type PostMenuV3CategoryRelationshipsItemBody = CategoryToItemRelationship;
|
|
699
1092
|
|
|
700
|
-
export type
|
|
1093
|
+
export type PostMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationship;
|
|
701
1094
|
|
|
702
|
-
export interface
|
|
703
|
-
body:
|
|
1095
|
+
export interface PostMenuV3CategoryRelationshipsItemRequest extends BaseRequest {
|
|
1096
|
+
body: PostMenuV3CategoryRelationshipsItemBody;
|
|
704
1097
|
}
|
|
705
1098
|
|
|
706
|
-
// PATCH /menu/
|
|
1099
|
+
// PATCH /menu/v3/category/relationships/item/{id}
|
|
707
1100
|
|
|
708
|
-
export interface
|
|
1101
|
+
export interface PatchMenuV3CategoryRelationshipsItemPath {
|
|
709
1102
|
id: string;
|
|
710
1103
|
}
|
|
711
1104
|
|
|
712
|
-
export type
|
|
1105
|
+
export type PatchMenuV3CategoryRelationshipsItemBody = CategoryToItemRelationship;
|
|
713
1106
|
|
|
714
|
-
export type
|
|
1107
|
+
export type PatchMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationship;
|
|
715
1108
|
|
|
716
|
-
export interface
|
|
1109
|
+
export interface PatchMenuV3CategoryRelationshipsItemRequest
|
|
717
1110
|
extends BaseRequest,
|
|
718
|
-
|
|
719
|
-
body:
|
|
1111
|
+
PatchMenuV3CategoryRelationshipsItemPath {
|
|
1112
|
+
body: PatchMenuV3CategoryRelationshipsItemBody;
|
|
720
1113
|
}
|
|
721
1114
|
|
|
722
|
-
// DELETE /menu/
|
|
1115
|
+
// DELETE /menu/v3/category/relationships/item/{id}
|
|
723
1116
|
|
|
724
|
-
export interface
|
|
1117
|
+
export interface DeleteMenuV3CategoryRelationshipsItemPath {
|
|
725
1118
|
id: string;
|
|
726
1119
|
}
|
|
727
1120
|
|
|
728
|
-
export type
|
|
1121
|
+
export type DeleteMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationship;
|
|
729
1122
|
|
|
730
|
-
export interface
|
|
1123
|
+
export interface DeleteMenuV3CategoryRelationshipsItemRequest
|
|
731
1124
|
extends BaseRequest,
|
|
732
|
-
|
|
1125
|
+
DeleteMenuV3CategoryRelationshipsItemPath {}
|
|
733
1126
|
|
|
734
1127
|
// GET /menu/client/{client_id} - Get menu client
|
|
735
1128
|
|