@compassdigital/sdk.typescript 3.45.2 → 3.46.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/lib/index.d.ts +194 -22
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +212 -18
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/announcement.js +1 -0
- package/lib/interface/announcement.js.map +1 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/calendar.js +1 -0
- package/lib/interface/calendar.js.map +1 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/compassconnect.js +1 -0
- package/lib/interface/compassconnect.js.map +1 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/config.js +1 -0
- package/lib/interface/config.js.map +1 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/datalake.js +1 -0
- package/lib/interface/datalake.js.map +1 -1
- package/lib/interface/delivery.d.ts +13 -13
- package/lib/interface/delivery.d.ts.map +1 -1
- package/lib/interface/delivery.js +1 -0
- package/lib/interface/delivery.js.map +1 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/email.js +1 -0
- package/lib/interface/email.js.map +1 -1
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/file.js +1 -0
- package/lib/interface/file.js.map +1 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/kds.js +1 -0
- package/lib/interface/kds.js.map +1 -1
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/location.js +1 -0
- package/lib/interface/location.js.map +1 -1
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/loyalty.js +1 -0
- package/lib/interface/loyalty.js.map +1 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/mealplan.js +1 -0
- package/lib/interface/mealplan.js.map +1 -1
- package/lib/interface/menu.d.ts +1058 -82
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/menu.js +1 -0
- package/lib/interface/menu.js.map +1 -1
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/notification.js +1 -0
- package/lib/interface/notification.js.map +1 -1
- package/lib/interface/order.d.ts +2 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/order.js +1 -0
- package/lib/interface/order.js.map +1 -1
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/partner.js +1 -0
- package/lib/interface/partner.js.map +1 -1
- package/lib/interface/payment.d.ts +7 -21
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/payment.js +1 -0
- package/lib/interface/payment.js.map +1 -1
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/permission.js +1 -0
- package/lib/interface/permission.js.map +1 -1
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/promo.js +1 -0
- package/lib/interface/promo.js.map +1 -1
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/report.js +1 -0
- package/lib/interface/report.js.map +1 -1
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/shoppingcart.js +1 -0
- package/lib/interface/shoppingcart.js.map +1 -1
- package/lib/interface/sms.js +1 -0
- package/lib/interface/sms.js.map +1 -1
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/task.js +1 -0
- package/lib/interface/task.js.map +1 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/user.js +1 -0
- package/lib/interface/user.js.map +1 -1
- package/lib/interface/vendor.d.ts.map +1 -1
- package/lib/interface/vendor.js +1 -0
- package/lib/interface/vendor.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +509 -36
- package/src/interface/announcement.ts +1 -0
- package/src/interface/calendar.ts +1 -0
- package/src/interface/compassconnect.ts +1 -0
- package/src/interface/config.ts +1 -0
- package/src/interface/datalake.ts +1 -0
- package/src/interface/delivery.ts +14 -13
- package/src/interface/email.ts +1 -0
- package/src/interface/file.ts +1 -0
- package/src/interface/kds.ts +1 -0
- package/src/interface/location.ts +1 -0
- package/src/interface/loyalty.ts +1 -0
- package/src/interface/mealplan.ts +1 -0
- package/src/interface/menu.ts +1392 -89
- package/src/interface/notification.ts +1 -0
- package/src/interface/order.ts +4 -0
- package/src/interface/partner.ts +1 -0
- package/src/interface/payment.ts +15 -41
- package/src/interface/permission.ts +1 -0
- package/src/interface/promo.ts +1 -0
- package/src/interface/report.ts +1 -0
- package/src/interface/shoppingcart.ts +1 -0
- package/src/interface/sms.ts +1 -0
- package/src/interface/task.ts +1 -0
- package/src/interface/user.ts +1 -0
- package/src/interface/vendor.ts +1 -0
package/src/interface/menu.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// /* eslint-disable */
|
|
1
2
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
3
|
|
|
3
4
|
import { RequestQuery, BaseRequest } from "./util";
|
|
@@ -517,19 +518,279 @@ export interface ZippedExcelExport {
|
|
|
517
518
|
format?: string;
|
|
518
519
|
}
|
|
519
520
|
|
|
521
|
+
export interface CategoryDTO {
|
|
522
|
+
name?: string;
|
|
523
|
+
label?: string;
|
|
524
|
+
sequence?: number;
|
|
525
|
+
priority?: number;
|
|
526
|
+
is_active?: boolean;
|
|
527
|
+
layout_id?: string;
|
|
528
|
+
id?: string;
|
|
529
|
+
layout?: LayoutDTO;
|
|
530
|
+
items?: any[];
|
|
531
|
+
[index: string]: any;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
export interface LayoutDTO {
|
|
535
|
+
name: string;
|
|
536
|
+
categories?: any[];
|
|
537
|
+
brand_id: string;
|
|
538
|
+
station_id: string;
|
|
539
|
+
id?: any;
|
|
540
|
+
brand?: BrandDTO;
|
|
541
|
+
station?: any;
|
|
542
|
+
[index: string]: any;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export interface BrandDTO {
|
|
546
|
+
layouts?: any[];
|
|
547
|
+
items?: ItemDTO[];
|
|
548
|
+
modifier_groups?: any[];
|
|
549
|
+
modifiers?: any[];
|
|
550
|
+
id?: string;
|
|
551
|
+
[index: string]: any;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export interface ItemDTO {
|
|
555
|
+
name?: string;
|
|
556
|
+
label?: string;
|
|
557
|
+
description?: string;
|
|
558
|
+
price?: number;
|
|
559
|
+
barcode?: string;
|
|
560
|
+
calories?: number;
|
|
561
|
+
priority?: number;
|
|
562
|
+
is_active?: boolean;
|
|
563
|
+
is_in_stock?: boolean;
|
|
564
|
+
posid?: string;
|
|
565
|
+
tax_tags?: string[];
|
|
566
|
+
modifier_groups?: ItemToModifierGroupRelationshipDTO[];
|
|
567
|
+
brand_id?: string;
|
|
568
|
+
station_id?: string;
|
|
569
|
+
id?: string;
|
|
570
|
+
categories?: CategoryToItemRelationshipDTO[];
|
|
571
|
+
brand?: any;
|
|
572
|
+
station?: any;
|
|
573
|
+
[index: string]: any;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export interface ItemToModifierGroupRelationshipDTO {
|
|
577
|
+
modifier_group_id?: string;
|
|
578
|
+
item_id?: string;
|
|
579
|
+
sequence?: number;
|
|
580
|
+
id?: string;
|
|
581
|
+
modifier_group?: ModifierGroupDTO;
|
|
582
|
+
item?: any;
|
|
583
|
+
[index: string]: any;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export interface ModifierGroupDTO {
|
|
587
|
+
name?: string;
|
|
588
|
+
label?: string;
|
|
589
|
+
min?: number;
|
|
590
|
+
max?: number;
|
|
591
|
+
is_active?: boolean;
|
|
592
|
+
priority?: number;
|
|
593
|
+
modifiers?: ModifierGroupToModifierRelationshipDTO[];
|
|
594
|
+
items?: any[];
|
|
595
|
+
brand_id?: string;
|
|
596
|
+
station_id?: string;
|
|
597
|
+
id?: string;
|
|
598
|
+
brand?: any;
|
|
599
|
+
station?: any;
|
|
600
|
+
[index: string]: any;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export interface ModifierGroupToModifierRelationshipDTO {
|
|
604
|
+
modifier_id?: string;
|
|
605
|
+
modifier_group_id?: string;
|
|
606
|
+
sequence?: number;
|
|
607
|
+
id?: string;
|
|
608
|
+
modifier?: ModifierDTO;
|
|
609
|
+
modifier_group?: any;
|
|
610
|
+
[index: string]: any;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export interface ModifierDTO {
|
|
614
|
+
name?: string;
|
|
615
|
+
label?: string;
|
|
616
|
+
description?: string;
|
|
617
|
+
price?: number;
|
|
618
|
+
calories?: number;
|
|
619
|
+
priority?: number;
|
|
620
|
+
tax_tags?: string[];
|
|
621
|
+
is_active?: boolean;
|
|
622
|
+
is_in_stock?: boolean;
|
|
623
|
+
posid?: string;
|
|
624
|
+
modifier_groups?: any[];
|
|
625
|
+
brand_id?: string;
|
|
626
|
+
station_id?: string;
|
|
627
|
+
id?: string;
|
|
628
|
+
brand?: any;
|
|
629
|
+
station?: StationDTO;
|
|
630
|
+
[index: string]: any;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export interface StationDTO {
|
|
634
|
+
layouts?: any[];
|
|
635
|
+
items?: any[];
|
|
636
|
+
modifier_groups?: any[];
|
|
637
|
+
modifiers?: any[];
|
|
638
|
+
id?: string;
|
|
639
|
+
[index: string]: any;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export interface CategoryToItemRelationshipDTO {
|
|
643
|
+
category_id?: string;
|
|
644
|
+
item_id?: string;
|
|
645
|
+
sequence?: number;
|
|
646
|
+
id?: string;
|
|
647
|
+
category?: any;
|
|
648
|
+
item?: any;
|
|
649
|
+
[index: string]: any;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface InvalidInputErrorDTO {
|
|
653
|
+
number: number;
|
|
654
|
+
message: string;
|
|
655
|
+
[index: string]: any;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export interface InternalServerErrorDTO {
|
|
659
|
+
number: number;
|
|
660
|
+
message: string;
|
|
661
|
+
[index: string]: any;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export interface ReadParamsDTO {
|
|
665
|
+
// If specified, only the selected fields will be returned
|
|
666
|
+
select?: string[];
|
|
667
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
668
|
+
relationships?: string[];
|
|
669
|
+
[index: string]: any;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export interface NotFoundErrorDTO {
|
|
673
|
+
number: number;
|
|
674
|
+
message: string;
|
|
675
|
+
[index: string]: any;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export interface FilterFieldDTO {
|
|
679
|
+
// Alternatively you can pass in the value directly (like '{ key: value }' instead of '{ key : { $equal : value } }
|
|
680
|
+
$equal?: string;
|
|
681
|
+
$more_than?: string;
|
|
682
|
+
$more_than_or_equal?: string;
|
|
683
|
+
$less_than?: string;
|
|
684
|
+
$less_than_or_equal?: string;
|
|
685
|
+
// Accepts two 'range' values passed in an array (like '{ key : { $between : [ '2020-01-01', '2021-01-01' ] } }')
|
|
686
|
+
$between?: string[];
|
|
687
|
+
// Can be combined with other operators (such as '{ key : { $not : { $more_than: 2 } } }')
|
|
688
|
+
$not?: string;
|
|
689
|
+
$in?: string[];
|
|
690
|
+
$array_contains?: string[];
|
|
691
|
+
$contains?: string;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export interface PaginationParamsDTO {
|
|
695
|
+
// Number of records to load per page
|
|
696
|
+
limit?: number;
|
|
697
|
+
page?: number;
|
|
698
|
+
// A field to sort the results based on
|
|
699
|
+
sort_by?: string;
|
|
700
|
+
sort_order?: string;
|
|
701
|
+
// How soft deleted records should be shown in the list
|
|
702
|
+
soft_deleted?: string;
|
|
703
|
+
// If specified, only the selected fields will be returned
|
|
704
|
+
select?: string[];
|
|
705
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
706
|
+
relationships?: string[];
|
|
707
|
+
[index: string]: any;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface PaginationMetaDTO {
|
|
711
|
+
// Number of total records available based on the filter criteria
|
|
712
|
+
total_results?: number;
|
|
713
|
+
total_pages?: number;
|
|
714
|
+
// Number of records shown in the current page.
|
|
715
|
+
result_count?: number;
|
|
716
|
+
// If specified, only the selected fields will be returned
|
|
717
|
+
select?: string[];
|
|
718
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
719
|
+
relationships?: string[];
|
|
720
|
+
// Number of records to load per page
|
|
721
|
+
limit?: number;
|
|
722
|
+
page?: number;
|
|
723
|
+
// A field to sort the results based on
|
|
724
|
+
sort_by?: string;
|
|
725
|
+
sort_order?: string;
|
|
726
|
+
// How soft deleted records should be shown in the list
|
|
727
|
+
soft_deleted?: string;
|
|
728
|
+
[index: string]: any;
|
|
729
|
+
}
|
|
730
|
+
|
|
520
731
|
// GET /menu/v3/modifiers
|
|
521
732
|
|
|
522
733
|
export interface GetMenuV3ModifiersQuery {
|
|
734
|
+
// The fields that filtering is allowed on
|
|
735
|
+
filter?: any;
|
|
736
|
+
// Number of records to load per page
|
|
737
|
+
limit?: number;
|
|
738
|
+
page?: number;
|
|
739
|
+
// A field to sort the results based on
|
|
740
|
+
sort_by?: string;
|
|
741
|
+
sort_order?: string;
|
|
742
|
+
// How soft deleted records should be shown in the list
|
|
743
|
+
soft_deleted?: string;
|
|
744
|
+
// If specified, only the selected fields will be returned
|
|
745
|
+
select?: string[];
|
|
746
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
747
|
+
relationships?: string[];
|
|
523
748
|
// Graphql query string
|
|
524
749
|
_query?: string;
|
|
525
750
|
}
|
|
526
751
|
|
|
527
|
-
export
|
|
752
|
+
export interface GetMenuV3ModifiersResponse {
|
|
753
|
+
meta: PaginationMetaDTO;
|
|
754
|
+
results: ModifierDTO[];
|
|
755
|
+
[index: string]: any;
|
|
756
|
+
}
|
|
528
757
|
|
|
529
758
|
export interface GetMenuV3ModifiersRequest
|
|
530
759
|
extends BaseRequest,
|
|
531
760
|
RequestQuery<GetMenuV3ModifiersQuery> {}
|
|
532
761
|
|
|
762
|
+
// POST /menu/v3/modifiers
|
|
763
|
+
|
|
764
|
+
export type PostMenuV3ModifiersBody = {
|
|
765
|
+
name: string;
|
|
766
|
+
label?: string;
|
|
767
|
+
description?: string;
|
|
768
|
+
price: number;
|
|
769
|
+
calories?: number;
|
|
770
|
+
priority?: number;
|
|
771
|
+
tax_tags?: string[];
|
|
772
|
+
is_active?: boolean;
|
|
773
|
+
is_in_stock?: boolean;
|
|
774
|
+
posid: string;
|
|
775
|
+
modifier_groups?: ModifierGroupToModifierRelationshipDTO[];
|
|
776
|
+
brand_id: string;
|
|
777
|
+
station_id?: string;
|
|
778
|
+
id?: any;
|
|
779
|
+
brand?: BrandDTO;
|
|
780
|
+
station?: StationDTO;
|
|
781
|
+
[index: string]: any;
|
|
782
|
+
}[];
|
|
783
|
+
|
|
784
|
+
export interface PostMenuV3ModifiersResponse {
|
|
785
|
+
meta: PaginationMetaDTO;
|
|
786
|
+
results: ModifierDTO[];
|
|
787
|
+
[index: string]: any;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export interface PostMenuV3ModifiersRequest extends BaseRequest {
|
|
791
|
+
body: PostMenuV3ModifiersBody;
|
|
792
|
+
}
|
|
793
|
+
|
|
533
794
|
// GET /menu/v3/modifier/{id}
|
|
534
795
|
|
|
535
796
|
export interface GetMenuV3ModifierPath {
|
|
@@ -537,11 +798,15 @@ export interface GetMenuV3ModifierPath {
|
|
|
537
798
|
}
|
|
538
799
|
|
|
539
800
|
export interface GetMenuV3ModifierQuery {
|
|
801
|
+
// If specified, only the selected fields will be returned
|
|
802
|
+
select?: string[];
|
|
803
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
804
|
+
relationships?: string[];
|
|
540
805
|
// Graphql query string
|
|
541
806
|
_query?: string;
|
|
542
807
|
}
|
|
543
808
|
|
|
544
|
-
export type GetMenuV3ModifierResponse =
|
|
809
|
+
export type GetMenuV3ModifierResponse = ModifierDTO;
|
|
545
810
|
|
|
546
811
|
export interface GetMenuV3ModifierRequest
|
|
547
812
|
extends BaseRequest,
|
|
@@ -554,19 +819,65 @@ export interface PatchMenuV3ModifierPath {
|
|
|
554
819
|
id: string;
|
|
555
820
|
}
|
|
556
821
|
|
|
557
|
-
export
|
|
822
|
+
export interface PatchMenuV3ModifierBody {
|
|
823
|
+
name?: string;
|
|
824
|
+
label?: string;
|
|
825
|
+
description?: string;
|
|
826
|
+
price?: number;
|
|
827
|
+
calories?: number;
|
|
828
|
+
priority?: number;
|
|
829
|
+
tax_tags?: string[];
|
|
830
|
+
is_active?: boolean;
|
|
831
|
+
is_in_stock?: boolean;
|
|
832
|
+
posid?: string;
|
|
833
|
+
modifier_groups?: ModifierGroupToModifierRelationshipDTO[];
|
|
834
|
+
brand_id?: string;
|
|
835
|
+
station_id?: string;
|
|
836
|
+
id?: string;
|
|
837
|
+
brand?: BrandDTO;
|
|
838
|
+
station?: StationDTO;
|
|
839
|
+
[index: string]: any;
|
|
840
|
+
}
|
|
558
841
|
|
|
559
|
-
export type PatchMenuV3ModifierResponse =
|
|
842
|
+
export type PatchMenuV3ModifierResponse = ModifierDTO;
|
|
560
843
|
|
|
561
844
|
export interface PatchMenuV3ModifierRequest extends BaseRequest, PatchMenuV3ModifierPath {
|
|
562
845
|
body: PatchMenuV3ModifierBody;
|
|
563
846
|
}
|
|
564
847
|
|
|
848
|
+
// DELETE /menu/v3/modifier/{id}
|
|
849
|
+
|
|
850
|
+
export interface DeleteMenuV3ModifierPath {
|
|
851
|
+
id: string;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export type DeleteMenuV3ModifierResponse = ModifierDTO;
|
|
855
|
+
|
|
856
|
+
export interface DeleteMenuV3ModifierRequest extends BaseRequest, DeleteMenuV3ModifierPath {}
|
|
857
|
+
|
|
565
858
|
// POST /menu/v3/modifier
|
|
566
859
|
|
|
567
|
-
export
|
|
860
|
+
export interface PostMenuV3ModifierBody {
|
|
861
|
+
name: string;
|
|
862
|
+
label?: string;
|
|
863
|
+
description?: string;
|
|
864
|
+
price: number;
|
|
865
|
+
calories?: number;
|
|
866
|
+
priority?: number;
|
|
867
|
+
tax_tags?: string[];
|
|
868
|
+
is_active?: boolean;
|
|
869
|
+
is_in_stock?: boolean;
|
|
870
|
+
posid: string;
|
|
871
|
+
modifier_groups?: ModifierGroupToModifierRelationshipDTO[];
|
|
872
|
+
brand_id: string;
|
|
873
|
+
station_id?: string;
|
|
874
|
+
id?: any;
|
|
875
|
+
brand?: BrandDTO;
|
|
876
|
+
station?: StationDTO;
|
|
877
|
+
[index: string]: any;
|
|
878
|
+
}
|
|
568
879
|
|
|
569
|
-
export type PostMenuV3ModifierResponse =
|
|
880
|
+
export type PostMenuV3ModifierResponse = ModifierDTO;
|
|
570
881
|
|
|
571
882
|
export interface PostMenuV3ModifierRequest extends BaseRequest {
|
|
572
883
|
body: PostMenuV3ModifierBody;
|
|
@@ -590,21 +901,83 @@ export interface GetMenuV3ModifierCountRequest
|
|
|
590
901
|
// GET /menu/v3/modifier-groups
|
|
591
902
|
|
|
592
903
|
export interface GetMenuV3ModifierGroupsQuery {
|
|
904
|
+
// The fields that filtering is allowed on
|
|
905
|
+
filter?: any;
|
|
906
|
+
// Number of records to load per page
|
|
907
|
+
limit?: number;
|
|
908
|
+
page?: number;
|
|
909
|
+
// A field to sort the results based on
|
|
910
|
+
sort_by?: string;
|
|
911
|
+
sort_order?: string;
|
|
912
|
+
// How soft deleted records should be shown in the list
|
|
913
|
+
soft_deleted?: string;
|
|
914
|
+
// If specified, only the selected fields will be returned
|
|
915
|
+
select?: string[];
|
|
916
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
917
|
+
relationships?: string[];
|
|
593
918
|
// Graphql query string
|
|
594
919
|
_query?: string;
|
|
595
920
|
}
|
|
596
921
|
|
|
597
|
-
export
|
|
922
|
+
export interface GetMenuV3ModifierGroupsResponse {
|
|
923
|
+
meta: PaginationMetaDTO;
|
|
924
|
+
results: ModifierGroupDTO[];
|
|
925
|
+
[index: string]: any;
|
|
926
|
+
}
|
|
598
927
|
|
|
599
928
|
export interface GetMenuV3ModifierGroupsRequest
|
|
600
929
|
extends BaseRequest,
|
|
601
930
|
RequestQuery<GetMenuV3ModifierGroupsQuery> {}
|
|
602
931
|
|
|
932
|
+
// POST /menu/v3/modifier-groups
|
|
933
|
+
|
|
934
|
+
export type PostMenuV3ModifierGroupsBody = {
|
|
935
|
+
name: string;
|
|
936
|
+
label?: string;
|
|
937
|
+
min?: number;
|
|
938
|
+
max?: number;
|
|
939
|
+
is_active?: boolean;
|
|
940
|
+
priority?: number;
|
|
941
|
+
modifiers?: ModifierGroupToModifierRelationshipDTO[];
|
|
942
|
+
items?: ItemToModifierGroupRelationshipDTO[];
|
|
943
|
+
brand_id: string;
|
|
944
|
+
station_id?: string;
|
|
945
|
+
id?: any;
|
|
946
|
+
brand?: BrandDTO;
|
|
947
|
+
station?: StationDTO;
|
|
948
|
+
[index: string]: any;
|
|
949
|
+
}[];
|
|
950
|
+
|
|
951
|
+
export interface PostMenuV3ModifierGroupsResponse {
|
|
952
|
+
meta: PaginationMetaDTO;
|
|
953
|
+
results: ModifierGroupDTO[];
|
|
954
|
+
[index: string]: any;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export interface PostMenuV3ModifierGroupsRequest extends BaseRequest {
|
|
958
|
+
body: PostMenuV3ModifierGroupsBody;
|
|
959
|
+
}
|
|
960
|
+
|
|
603
961
|
// POST /menu/v3/modifier-group
|
|
604
962
|
|
|
605
|
-
export
|
|
963
|
+
export interface PostMenuV3ModifierGroupBody {
|
|
964
|
+
name: string;
|
|
965
|
+
label?: string;
|
|
966
|
+
min?: number;
|
|
967
|
+
max?: number;
|
|
968
|
+
is_active?: boolean;
|
|
969
|
+
priority?: number;
|
|
970
|
+
modifiers?: ModifierGroupToModifierRelationshipDTO[];
|
|
971
|
+
items?: ItemToModifierGroupRelationshipDTO[];
|
|
972
|
+
brand_id: string;
|
|
973
|
+
station_id?: string;
|
|
974
|
+
id?: any;
|
|
975
|
+
brand?: BrandDTO;
|
|
976
|
+
station?: StationDTO;
|
|
977
|
+
[index: string]: any;
|
|
978
|
+
}
|
|
606
979
|
|
|
607
|
-
export type PostMenuV3ModifierGroupResponse =
|
|
980
|
+
export type PostMenuV3ModifierGroupResponse = ModifierGroupDTO;
|
|
608
981
|
|
|
609
982
|
export interface PostMenuV3ModifierGroupRequest extends BaseRequest {
|
|
610
983
|
body: PostMenuV3ModifierGroupBody;
|
|
@@ -617,11 +990,15 @@ export interface GetMenuV3ModifierGroupPath {
|
|
|
617
990
|
}
|
|
618
991
|
|
|
619
992
|
export interface GetMenuV3ModifierGroupQuery {
|
|
993
|
+
// If specified, only the selected fields will be returned
|
|
994
|
+
select?: string[];
|
|
995
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
996
|
+
relationships?: string[];
|
|
620
997
|
// Graphql query string
|
|
621
998
|
_query?: string;
|
|
622
999
|
}
|
|
623
1000
|
|
|
624
|
-
export type GetMenuV3ModifierGroupResponse =
|
|
1001
|
+
export type GetMenuV3ModifierGroupResponse = ModifierGroupDTO;
|
|
625
1002
|
|
|
626
1003
|
export interface GetMenuV3ModifierGroupRequest
|
|
627
1004
|
extends BaseRequest,
|
|
@@ -634,14 +1011,41 @@ export interface PatchMenuV3ModifierGroupPath {
|
|
|
634
1011
|
id: string;
|
|
635
1012
|
}
|
|
636
1013
|
|
|
637
|
-
export
|
|
1014
|
+
export interface PatchMenuV3ModifierGroupBody {
|
|
1015
|
+
name?: string;
|
|
1016
|
+
label?: string;
|
|
1017
|
+
min?: number;
|
|
1018
|
+
max?: number;
|
|
1019
|
+
is_active?: boolean;
|
|
1020
|
+
priority?: number;
|
|
1021
|
+
modifiers?: ModifierGroupToModifierRelationshipDTO[];
|
|
1022
|
+
items?: ItemToModifierGroupRelationshipDTO[];
|
|
1023
|
+
brand_id?: string;
|
|
1024
|
+
station_id?: string;
|
|
1025
|
+
id?: string;
|
|
1026
|
+
brand?: BrandDTO;
|
|
1027
|
+
station?: StationDTO;
|
|
1028
|
+
[index: string]: any;
|
|
1029
|
+
}
|
|
638
1030
|
|
|
639
|
-
export type PatchMenuV3ModifierGroupResponse =
|
|
1031
|
+
export type PatchMenuV3ModifierGroupResponse = ModifierGroupDTO;
|
|
640
1032
|
|
|
641
1033
|
export interface PatchMenuV3ModifierGroupRequest extends BaseRequest, PatchMenuV3ModifierGroupPath {
|
|
642
1034
|
body: PatchMenuV3ModifierGroupBody;
|
|
643
1035
|
}
|
|
644
1036
|
|
|
1037
|
+
// DELETE /menu/v3/modifier-group/{id}
|
|
1038
|
+
|
|
1039
|
+
export interface DeleteMenuV3ModifierGroupPath {
|
|
1040
|
+
id: string;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export type DeleteMenuV3ModifierGroupResponse = ModifierGroupDTO;
|
|
1044
|
+
|
|
1045
|
+
export interface DeleteMenuV3ModifierGroupRequest
|
|
1046
|
+
extends BaseRequest,
|
|
1047
|
+
DeleteMenuV3ModifierGroupPath {}
|
|
1048
|
+
|
|
645
1049
|
// GET /menu/v3/modifier-group/count
|
|
646
1050
|
|
|
647
1051
|
export interface GetMenuV3ModifierGroupCountQuery {
|
|
@@ -660,12 +1064,29 @@ export interface GetMenuV3ModifierGroupCountRequest
|
|
|
660
1064
|
// GET /menu/v3/modifier-group/relationships/modifiers
|
|
661
1065
|
|
|
662
1066
|
export interface GetMenuV3ModifierGroupRelationshipsModifiersQuery {
|
|
1067
|
+
// The fields that filtering is allowed on
|
|
1068
|
+
filter?: any;
|
|
1069
|
+
// Number of records to load per page
|
|
1070
|
+
limit?: number;
|
|
1071
|
+
page?: number;
|
|
1072
|
+
// A field to sort the results based on
|
|
1073
|
+
sort_by?: string;
|
|
1074
|
+
sort_order?: string;
|
|
1075
|
+
// How soft deleted records should be shown in the list
|
|
1076
|
+
soft_deleted?: string;
|
|
1077
|
+
// If specified, only the selected fields will be returned
|
|
1078
|
+
select?: string[];
|
|
1079
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1080
|
+
relationships?: string[];
|
|
663
1081
|
// Graphql query string
|
|
664
1082
|
_query?: string;
|
|
665
1083
|
}
|
|
666
1084
|
|
|
667
|
-
export
|
|
668
|
-
|
|
1085
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifiersResponse {
|
|
1086
|
+
meta: PaginationMetaDTO;
|
|
1087
|
+
results: ModifierGroupToModifierRelationshipDTO[];
|
|
1088
|
+
[index: string]: any;
|
|
1089
|
+
}
|
|
669
1090
|
|
|
670
1091
|
export interface GetMenuV3ModifierGroupRelationshipsModifiersRequest
|
|
671
1092
|
extends BaseRequest,
|
|
@@ -673,11 +1094,21 @@ export interface GetMenuV3ModifierGroupRelationshipsModifiersRequest
|
|
|
673
1094
|
|
|
674
1095
|
// POST /menu/v3/modifier-group/relationships/modifiers
|
|
675
1096
|
|
|
676
|
-
export type PostMenuV3ModifierGroupRelationshipsModifiersBody =
|
|
677
|
-
|
|
1097
|
+
export type PostMenuV3ModifierGroupRelationshipsModifiersBody = {
|
|
1098
|
+
modifier_id: string;
|
|
1099
|
+
modifier_group_id: string;
|
|
1100
|
+
sequence?: number;
|
|
1101
|
+
id?: any;
|
|
1102
|
+
modifier?: ModifierDTO;
|
|
1103
|
+
modifier_group?: ModifierGroupDTO;
|
|
1104
|
+
[index: string]: any;
|
|
1105
|
+
}[];
|
|
678
1106
|
|
|
679
|
-
export
|
|
680
|
-
|
|
1107
|
+
export interface PostMenuV3ModifierGroupRelationshipsModifiersResponse {
|
|
1108
|
+
meta: PaginationMetaDTO;
|
|
1109
|
+
results: ModifierGroupToModifierRelationshipDTO[];
|
|
1110
|
+
[index: string]: any;
|
|
1111
|
+
}
|
|
681
1112
|
|
|
682
1113
|
export interface PostMenuV3ModifierGroupRelationshipsModifiersRequest extends BaseRequest {
|
|
683
1114
|
body: PostMenuV3ModifierGroupRelationshipsModifiersBody;
|
|
@@ -685,10 +1116,18 @@ export interface PostMenuV3ModifierGroupRelationshipsModifiersRequest extends Ba
|
|
|
685
1116
|
|
|
686
1117
|
// POST /menu/v3/modifier-group/relationships/modifier
|
|
687
1118
|
|
|
688
|
-
export
|
|
1119
|
+
export interface PostMenuV3ModifierGroupRelationshipsModifierBody {
|
|
1120
|
+
modifier_id: string;
|
|
1121
|
+
modifier_group_id: string;
|
|
1122
|
+
sequence?: number;
|
|
1123
|
+
id?: any;
|
|
1124
|
+
modifier?: ModifierDTO;
|
|
1125
|
+
modifier_group?: ModifierGroupDTO;
|
|
1126
|
+
[index: string]: any;
|
|
1127
|
+
}
|
|
689
1128
|
|
|
690
1129
|
export type PostMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
691
|
-
|
|
1130
|
+
ModifierGroupToModifierRelationshipDTO;
|
|
692
1131
|
|
|
693
1132
|
export interface PostMenuV3ModifierGroupRelationshipsModifierRequest extends BaseRequest {
|
|
694
1133
|
body: PostMenuV3ModifierGroupRelationshipsModifierBody;
|
|
@@ -701,12 +1140,16 @@ export interface GetMenuV3ModifierGroupRelationshipsModifierPath {
|
|
|
701
1140
|
}
|
|
702
1141
|
|
|
703
1142
|
export interface GetMenuV3ModifierGroupRelationshipsModifierQuery {
|
|
1143
|
+
// If specified, only the selected fields will be returned
|
|
1144
|
+
select?: string[];
|
|
1145
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1146
|
+
relationships?: string[];
|
|
704
1147
|
// Graphql query string
|
|
705
1148
|
_query?: string;
|
|
706
1149
|
}
|
|
707
1150
|
|
|
708
1151
|
export type GetMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
709
|
-
|
|
1152
|
+
ModifierGroupToModifierRelationshipDTO;
|
|
710
1153
|
|
|
711
1154
|
export interface GetMenuV3ModifierGroupRelationshipsModifierRequest
|
|
712
1155
|
extends BaseRequest,
|
|
@@ -719,10 +1162,18 @@ export interface PatchMenuV3ModifierGroupRelationshipsModifierPath {
|
|
|
719
1162
|
id: string;
|
|
720
1163
|
}
|
|
721
1164
|
|
|
722
|
-
export
|
|
1165
|
+
export interface PatchMenuV3ModifierGroupRelationshipsModifierBody {
|
|
1166
|
+
modifier_id?: string;
|
|
1167
|
+
modifier_group_id?: string;
|
|
1168
|
+
sequence?: number;
|
|
1169
|
+
id?: string;
|
|
1170
|
+
modifier?: ModifierDTO;
|
|
1171
|
+
modifier_group?: ModifierGroupDTO;
|
|
1172
|
+
[index: string]: any;
|
|
1173
|
+
}
|
|
723
1174
|
|
|
724
1175
|
export type PatchMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
725
|
-
|
|
1176
|
+
ModifierGroupToModifierRelationshipDTO;
|
|
726
1177
|
|
|
727
1178
|
export interface PatchMenuV3ModifierGroupRelationshipsModifierRequest
|
|
728
1179
|
extends BaseRequest,
|
|
@@ -730,17 +1181,82 @@ export interface PatchMenuV3ModifierGroupRelationshipsModifierRequest
|
|
|
730
1181
|
body: PatchMenuV3ModifierGroupRelationshipsModifierBody;
|
|
731
1182
|
}
|
|
732
1183
|
|
|
1184
|
+
// DELETE /menu/v3/modifier-group/relationships/modifier/{id}
|
|
1185
|
+
|
|
1186
|
+
export interface DeleteMenuV3ModifierGroupRelationshipsModifierPath {
|
|
1187
|
+
id: string;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
export type DeleteMenuV3ModifierGroupRelationshipsModifierResponse =
|
|
1191
|
+
ModifierGroupToModifierRelationshipDTO;
|
|
1192
|
+
|
|
1193
|
+
export interface DeleteMenuV3ModifierGroupRelationshipsModifierRequest
|
|
1194
|
+
extends BaseRequest,
|
|
1195
|
+
DeleteMenuV3ModifierGroupRelationshipsModifierPath {}
|
|
1196
|
+
|
|
733
1197
|
// GET /menu/v3/items
|
|
734
1198
|
|
|
735
1199
|
export interface GetMenuV3ItemsQuery {
|
|
1200
|
+
// The fields that filtering is allowed on
|
|
1201
|
+
filter?: any;
|
|
1202
|
+
// Number of records to load per page
|
|
1203
|
+
limit?: number;
|
|
1204
|
+
page?: number;
|
|
1205
|
+
// A field to sort the results based on
|
|
1206
|
+
sort_by?: string;
|
|
1207
|
+
sort_order?: string;
|
|
1208
|
+
// How soft deleted records should be shown in the list
|
|
1209
|
+
soft_deleted?: string;
|
|
1210
|
+
// If specified, only the selected fields will be returned
|
|
1211
|
+
select?: string[];
|
|
1212
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1213
|
+
relationships?: string[];
|
|
736
1214
|
// Graphql query string
|
|
737
1215
|
_query?: string;
|
|
738
1216
|
}
|
|
739
1217
|
|
|
740
|
-
export
|
|
1218
|
+
export interface GetMenuV3ItemsResponse {
|
|
1219
|
+
meta: PaginationMetaDTO;
|
|
1220
|
+
results: ItemDTO[];
|
|
1221
|
+
[index: string]: any;
|
|
1222
|
+
}
|
|
741
1223
|
|
|
742
1224
|
export interface GetMenuV3ItemsRequest extends BaseRequest, RequestQuery<GetMenuV3ItemsQuery> {}
|
|
743
1225
|
|
|
1226
|
+
// POST /menu/v3/items
|
|
1227
|
+
|
|
1228
|
+
export type PostMenuV3ItemsBody = {
|
|
1229
|
+
name: string;
|
|
1230
|
+
label?: string;
|
|
1231
|
+
description?: string;
|
|
1232
|
+
price: number;
|
|
1233
|
+
barcode?: string;
|
|
1234
|
+
calories?: number;
|
|
1235
|
+
priority?: number;
|
|
1236
|
+
is_active?: boolean;
|
|
1237
|
+
is_in_stock?: boolean;
|
|
1238
|
+
posid: string;
|
|
1239
|
+
tax_tags?: string[];
|
|
1240
|
+
modifier_groups?: ItemToModifierGroupRelationshipDTO[];
|
|
1241
|
+
brand_id: string;
|
|
1242
|
+
station_id?: string;
|
|
1243
|
+
id?: any;
|
|
1244
|
+
categories?: CategoryToItemRelationshipDTO[];
|
|
1245
|
+
brand?: BrandDTO;
|
|
1246
|
+
station?: StationDTO;
|
|
1247
|
+
[index: string]: any;
|
|
1248
|
+
}[];
|
|
1249
|
+
|
|
1250
|
+
export interface PostMenuV3ItemsResponse {
|
|
1251
|
+
meta: PaginationMetaDTO;
|
|
1252
|
+
results: ItemDTO[];
|
|
1253
|
+
[index: string]: any;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export interface PostMenuV3ItemsRequest extends BaseRequest {
|
|
1257
|
+
body: PostMenuV3ItemsBody;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
744
1260
|
// GET /menu/v3/item/{id}
|
|
745
1261
|
|
|
746
1262
|
export interface GetMenuV3ItemPath {
|
|
@@ -748,11 +1264,15 @@ export interface GetMenuV3ItemPath {
|
|
|
748
1264
|
}
|
|
749
1265
|
|
|
750
1266
|
export interface GetMenuV3ItemQuery {
|
|
1267
|
+
// If specified, only the selected fields will be returned
|
|
1268
|
+
select?: string[];
|
|
1269
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1270
|
+
relationships?: string[];
|
|
751
1271
|
// Graphql query string
|
|
752
1272
|
_query?: string;
|
|
753
1273
|
}
|
|
754
1274
|
|
|
755
|
-
export type GetMenuV3ItemResponse =
|
|
1275
|
+
export type GetMenuV3ItemResponse = ItemDTO;
|
|
756
1276
|
|
|
757
1277
|
export interface GetMenuV3ItemRequest
|
|
758
1278
|
extends BaseRequest,
|
|
@@ -765,19 +1285,69 @@ export interface PatchMenuV3ItemPath {
|
|
|
765
1285
|
id: string;
|
|
766
1286
|
}
|
|
767
1287
|
|
|
768
|
-
export
|
|
1288
|
+
export interface PatchMenuV3ItemBody {
|
|
1289
|
+
name?: string;
|
|
1290
|
+
label?: string;
|
|
1291
|
+
description?: string;
|
|
1292
|
+
price?: number;
|
|
1293
|
+
barcode?: string;
|
|
1294
|
+
calories?: number;
|
|
1295
|
+
priority?: number;
|
|
1296
|
+
is_active?: boolean;
|
|
1297
|
+
is_in_stock?: boolean;
|
|
1298
|
+
posid?: string;
|
|
1299
|
+
tax_tags?: string[];
|
|
1300
|
+
modifier_groups?: ItemToModifierGroupRelationshipDTO[];
|
|
1301
|
+
brand_id?: string;
|
|
1302
|
+
station_id?: string;
|
|
1303
|
+
id?: string;
|
|
1304
|
+
categories?: CategoryToItemRelationshipDTO[];
|
|
1305
|
+
brand?: BrandDTO;
|
|
1306
|
+
station?: StationDTO;
|
|
1307
|
+
[index: string]: any;
|
|
1308
|
+
}
|
|
769
1309
|
|
|
770
|
-
export type PatchMenuV3ItemResponse =
|
|
1310
|
+
export type PatchMenuV3ItemResponse = ItemDTO;
|
|
771
1311
|
|
|
772
1312
|
export interface PatchMenuV3ItemRequest extends BaseRequest, PatchMenuV3ItemPath {
|
|
773
1313
|
body: PatchMenuV3ItemBody;
|
|
774
1314
|
}
|
|
775
1315
|
|
|
1316
|
+
// DELETE /menu/v3/item/{id}
|
|
1317
|
+
|
|
1318
|
+
export interface DeleteMenuV3ItemPath {
|
|
1319
|
+
id: string;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
export type DeleteMenuV3ItemResponse = ItemDTO;
|
|
1323
|
+
|
|
1324
|
+
export interface DeleteMenuV3ItemRequest extends BaseRequest, DeleteMenuV3ItemPath {}
|
|
1325
|
+
|
|
776
1326
|
// POST /menu/v3/item
|
|
777
1327
|
|
|
778
|
-
export
|
|
1328
|
+
export interface PostMenuV3ItemBody {
|
|
1329
|
+
name: string;
|
|
1330
|
+
label?: string;
|
|
1331
|
+
description?: string;
|
|
1332
|
+
price: number;
|
|
1333
|
+
barcode?: string;
|
|
1334
|
+
calories?: number;
|
|
1335
|
+
priority?: number;
|
|
1336
|
+
is_active?: boolean;
|
|
1337
|
+
is_in_stock?: boolean;
|
|
1338
|
+
posid: string;
|
|
1339
|
+
tax_tags?: string[];
|
|
1340
|
+
modifier_groups?: ItemToModifierGroupRelationshipDTO[];
|
|
1341
|
+
brand_id: string;
|
|
1342
|
+
station_id?: string;
|
|
1343
|
+
id?: any;
|
|
1344
|
+
categories?: CategoryToItemRelationshipDTO[];
|
|
1345
|
+
brand?: BrandDTO;
|
|
1346
|
+
station?: StationDTO;
|
|
1347
|
+
[index: string]: any;
|
|
1348
|
+
}
|
|
779
1349
|
|
|
780
|
-
export type PostMenuV3ItemResponse =
|
|
1350
|
+
export type PostMenuV3ItemResponse = ItemDTO;
|
|
781
1351
|
|
|
782
1352
|
export interface PostMenuV3ItemRequest extends BaseRequest {
|
|
783
1353
|
body: PostMenuV3ItemBody;
|
|
@@ -786,12 +1356,15 @@ export interface PostMenuV3ItemRequest extends BaseRequest {
|
|
|
786
1356
|
// GET /menu/v3/items/count
|
|
787
1357
|
|
|
788
1358
|
export interface GetMenuV3ItemsCountQuery {
|
|
1359
|
+
// The fields that filtering is allowed on
|
|
1360
|
+
filter?: any;
|
|
789
1361
|
// Graphql query string
|
|
790
1362
|
_query?: string;
|
|
791
1363
|
}
|
|
792
1364
|
|
|
793
1365
|
export interface GetMenuV3ItemsCountResponse {
|
|
794
|
-
count
|
|
1366
|
+
count: number;
|
|
1367
|
+
[index: string]: any;
|
|
795
1368
|
}
|
|
796
1369
|
|
|
797
1370
|
export interface GetMenuV3ItemsCountRequest
|
|
@@ -801,12 +1374,29 @@ export interface GetMenuV3ItemsCountRequest
|
|
|
801
1374
|
// GET /menu/v3/item/relationships/modifier-groups
|
|
802
1375
|
|
|
803
1376
|
export interface GetMenuV3ItemRelationshipsModifierGroupsQuery {
|
|
1377
|
+
// The fields that filtering is allowed on
|
|
1378
|
+
filter?: any;
|
|
1379
|
+
// Number of records to load per page
|
|
1380
|
+
limit?: number;
|
|
1381
|
+
page?: number;
|
|
1382
|
+
// A field to sort the results based on
|
|
1383
|
+
sort_by?: string;
|
|
1384
|
+
sort_order?: string;
|
|
1385
|
+
// How soft deleted records should be shown in the list
|
|
1386
|
+
soft_deleted?: string;
|
|
1387
|
+
// If specified, only the selected fields will be returned
|
|
1388
|
+
select?: string[];
|
|
1389
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1390
|
+
relationships?: string[];
|
|
804
1391
|
// Graphql query string
|
|
805
1392
|
_query?: string;
|
|
806
1393
|
}
|
|
807
1394
|
|
|
808
|
-
export
|
|
809
|
-
|
|
1395
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupsResponse {
|
|
1396
|
+
meta: PaginationMetaDTO;
|
|
1397
|
+
results: ItemToModifierGroupRelationshipDTO[];
|
|
1398
|
+
[index: string]: any;
|
|
1399
|
+
}
|
|
810
1400
|
|
|
811
1401
|
export interface GetMenuV3ItemRelationshipsModifierGroupsRequest
|
|
812
1402
|
extends BaseRequest,
|
|
@@ -814,10 +1404,21 @@ export interface GetMenuV3ItemRelationshipsModifierGroupsRequest
|
|
|
814
1404
|
|
|
815
1405
|
// POST /menu/v3/item/relationships/modifier-groups
|
|
816
1406
|
|
|
817
|
-
export type PostMenuV3ItemRelationshipsModifierGroupsBody =
|
|
1407
|
+
export type PostMenuV3ItemRelationshipsModifierGroupsBody = {
|
|
1408
|
+
modifier_group_id: string;
|
|
1409
|
+
item_id: string;
|
|
1410
|
+
sequence?: number;
|
|
1411
|
+
id?: any;
|
|
1412
|
+
modifier_group?: ModifierGroupDTO;
|
|
1413
|
+
item?: ItemDTO;
|
|
1414
|
+
[index: string]: any;
|
|
1415
|
+
}[];
|
|
818
1416
|
|
|
819
|
-
export
|
|
820
|
-
|
|
1417
|
+
export interface PostMenuV3ItemRelationshipsModifierGroupsResponse {
|
|
1418
|
+
meta: PaginationMetaDTO;
|
|
1419
|
+
results: ItemToModifierGroupRelationshipDTO[];
|
|
1420
|
+
[index: string]: any;
|
|
1421
|
+
}
|
|
821
1422
|
|
|
822
1423
|
export interface PostMenuV3ItemRelationshipsModifierGroupsRequest extends BaseRequest {
|
|
823
1424
|
body: PostMenuV3ItemRelationshipsModifierGroupsBody;
|
|
@@ -825,23 +1426,61 @@ export interface PostMenuV3ItemRelationshipsModifierGroupsRequest extends BaseRe
|
|
|
825
1426
|
|
|
826
1427
|
// POST /menu/v3/item/relationships/modifier-group
|
|
827
1428
|
|
|
828
|
-
export
|
|
1429
|
+
export interface PostMenuV3ItemRelationshipsModifierGroupBody {
|
|
1430
|
+
modifier_group_id: string;
|
|
1431
|
+
item_id: string;
|
|
1432
|
+
sequence?: number;
|
|
1433
|
+
id?: any;
|
|
1434
|
+
modifier_group?: ModifierGroupDTO;
|
|
1435
|
+
item?: ItemDTO;
|
|
1436
|
+
[index: string]: any;
|
|
1437
|
+
}
|
|
829
1438
|
|
|
830
|
-
export type PostMenuV3ItemRelationshipsModifierGroupResponse =
|
|
1439
|
+
export type PostMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationshipDTO;
|
|
831
1440
|
|
|
832
1441
|
export interface PostMenuV3ItemRelationshipsModifierGroupRequest extends BaseRequest {
|
|
833
1442
|
body: PostMenuV3ItemRelationshipsModifierGroupBody;
|
|
834
1443
|
}
|
|
835
1444
|
|
|
1445
|
+
// GET /menu/v3/item/relationships/modifier-group/{id}
|
|
1446
|
+
|
|
1447
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupPath {
|
|
1448
|
+
id: string;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupQuery {
|
|
1452
|
+
// If specified, only the selected fields will be returned
|
|
1453
|
+
select?: string[];
|
|
1454
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1455
|
+
relationships?: string[];
|
|
1456
|
+
// Graphql query string
|
|
1457
|
+
_query?: string;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
export type GetMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationshipDTO;
|
|
1461
|
+
|
|
1462
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupRequest
|
|
1463
|
+
extends BaseRequest,
|
|
1464
|
+
RequestQuery<GetMenuV3ItemRelationshipsModifierGroupQuery>,
|
|
1465
|
+
GetMenuV3ItemRelationshipsModifierGroupPath {}
|
|
1466
|
+
|
|
836
1467
|
// PATCH /menu/v3/item/relationships/modifier-group/{id}
|
|
837
1468
|
|
|
838
1469
|
export interface PatchMenuV3ItemRelationshipsModifierGroupPath {
|
|
839
1470
|
id: string;
|
|
840
1471
|
}
|
|
841
1472
|
|
|
842
|
-
export
|
|
1473
|
+
export interface PatchMenuV3ItemRelationshipsModifierGroupBody {
|
|
1474
|
+
modifier_group_id?: string;
|
|
1475
|
+
item_id?: string;
|
|
1476
|
+
sequence?: number;
|
|
1477
|
+
id?: string;
|
|
1478
|
+
modifier_group?: ModifierGroupDTO;
|
|
1479
|
+
item?: ItemDTO;
|
|
1480
|
+
[index: string]: any;
|
|
1481
|
+
}
|
|
843
1482
|
|
|
844
|
-
export type PatchMenuV3ItemRelationshipsModifierGroupResponse =
|
|
1483
|
+
export type PatchMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationshipDTO;
|
|
845
1484
|
|
|
846
1485
|
export interface PatchMenuV3ItemRelationshipsModifierGroupRequest
|
|
847
1486
|
extends BaseRequest,
|
|
@@ -855,7 +1494,7 @@ export interface DeleteMenuV3ItemRelationshipsModifierGroupPath {
|
|
|
855
1494
|
id: string;
|
|
856
1495
|
}
|
|
857
1496
|
|
|
858
|
-
export type DeleteMenuV3ItemRelationshipsModifierGroupResponse =
|
|
1497
|
+
export type DeleteMenuV3ItemRelationshipsModifierGroupResponse = ItemToModifierGroupRelationshipDTO;
|
|
859
1498
|
|
|
860
1499
|
export interface DeleteMenuV3ItemRelationshipsModifierGroupRequest
|
|
861
1500
|
extends BaseRequest,
|
|
@@ -864,14 +1503,55 @@ export interface DeleteMenuV3ItemRelationshipsModifierGroupRequest
|
|
|
864
1503
|
// GET /menu/v3/layouts
|
|
865
1504
|
|
|
866
1505
|
export interface GetMenuV3LayoutsQuery {
|
|
1506
|
+
// The fields that filtering is allowed on
|
|
1507
|
+
filter?: any;
|
|
1508
|
+
// Number of records to load per page
|
|
1509
|
+
limit?: number;
|
|
1510
|
+
page?: number;
|
|
1511
|
+
// A field to sort the results based on
|
|
1512
|
+
sort_by?: string;
|
|
1513
|
+
sort_order?: string;
|
|
1514
|
+
// How soft deleted records should be shown in the list
|
|
1515
|
+
soft_deleted?: string;
|
|
1516
|
+
// If specified, only the selected fields will be returned
|
|
1517
|
+
select?: string[];
|
|
1518
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1519
|
+
relationships?: string[];
|
|
867
1520
|
// Graphql query string
|
|
868
1521
|
_query?: string;
|
|
869
1522
|
}
|
|
870
1523
|
|
|
871
|
-
export
|
|
1524
|
+
export interface GetMenuV3LayoutsResponse {
|
|
1525
|
+
meta: PaginationMetaDTO;
|
|
1526
|
+
results: LayoutDTO[];
|
|
1527
|
+
[index: string]: any;
|
|
1528
|
+
}
|
|
872
1529
|
|
|
873
1530
|
export interface GetMenuV3LayoutsRequest extends BaseRequest, RequestQuery<GetMenuV3LayoutsQuery> {}
|
|
874
1531
|
|
|
1532
|
+
// POST /menu/v3/layouts
|
|
1533
|
+
|
|
1534
|
+
export type PostMenuV3LayoutsBody = {
|
|
1535
|
+
name: string;
|
|
1536
|
+
categories?: CategoryDTO[];
|
|
1537
|
+
brand_id: string;
|
|
1538
|
+
station_id: string;
|
|
1539
|
+
id?: any;
|
|
1540
|
+
brand?: BrandDTO;
|
|
1541
|
+
station?: StationDTO;
|
|
1542
|
+
[index: string]: any;
|
|
1543
|
+
}[];
|
|
1544
|
+
|
|
1545
|
+
export interface PostMenuV3LayoutsResponse {
|
|
1546
|
+
meta: PaginationMetaDTO;
|
|
1547
|
+
results: LayoutDTO[];
|
|
1548
|
+
[index: string]: any;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
export interface PostMenuV3LayoutsRequest extends BaseRequest {
|
|
1552
|
+
body: PostMenuV3LayoutsBody;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
875
1555
|
// GET /menu/v3/layout/{id}/categories
|
|
876
1556
|
|
|
877
1557
|
export interface GetMenuV3LayoutCategoriesPath {
|
|
@@ -879,11 +1559,29 @@ export interface GetMenuV3LayoutCategoriesPath {
|
|
|
879
1559
|
}
|
|
880
1560
|
|
|
881
1561
|
export interface GetMenuV3LayoutCategoriesQuery {
|
|
1562
|
+
// The fields that filtering is allowed on
|
|
1563
|
+
filter?: any;
|
|
1564
|
+
// Number of records to load per page
|
|
1565
|
+
limit?: number;
|
|
1566
|
+
page?: number;
|
|
1567
|
+
// A field to sort the results based on
|
|
1568
|
+
sort_by?: string;
|
|
1569
|
+
sort_order?: string;
|
|
1570
|
+
// How soft deleted records should be shown in the list
|
|
1571
|
+
soft_deleted?: string;
|
|
1572
|
+
// If specified, only the selected fields will be returned
|
|
1573
|
+
select?: string[];
|
|
1574
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1575
|
+
relationships?: string[];
|
|
882
1576
|
// Graphql query string
|
|
883
1577
|
_query?: string;
|
|
884
1578
|
}
|
|
885
1579
|
|
|
886
|
-
export
|
|
1580
|
+
export interface GetMenuV3LayoutCategoriesResponse {
|
|
1581
|
+
meta: PaginationMetaDTO;
|
|
1582
|
+
results: CategoryDTO[];
|
|
1583
|
+
[index: string]: any;
|
|
1584
|
+
}
|
|
887
1585
|
|
|
888
1586
|
export interface GetMenuV3LayoutCategoriesRequest
|
|
889
1587
|
extends BaseRequest,
|
|
@@ -897,11 +1595,15 @@ export interface GetMenuV3LayoutPath {
|
|
|
897
1595
|
}
|
|
898
1596
|
|
|
899
1597
|
export interface GetMenuV3LayoutQuery {
|
|
1598
|
+
// If specified, only the selected fields will be returned
|
|
1599
|
+
select?: string[];
|
|
1600
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1601
|
+
relationships?: string[];
|
|
900
1602
|
// Graphql query string
|
|
901
1603
|
_query?: string;
|
|
902
1604
|
}
|
|
903
1605
|
|
|
904
|
-
export type GetMenuV3LayoutResponse =
|
|
1606
|
+
export type GetMenuV3LayoutResponse = LayoutDTO;
|
|
905
1607
|
|
|
906
1608
|
export interface GetMenuV3LayoutRequest
|
|
907
1609
|
extends BaseRequest,
|
|
@@ -914,9 +1616,18 @@ export interface PatchMenuV3LayoutPath {
|
|
|
914
1616
|
id: string;
|
|
915
1617
|
}
|
|
916
1618
|
|
|
917
|
-
export
|
|
1619
|
+
export interface PatchMenuV3LayoutBody {
|
|
1620
|
+
name?: string;
|
|
1621
|
+
categories?: CategoryDTO[];
|
|
1622
|
+
brand_id?: string;
|
|
1623
|
+
station_id?: string;
|
|
1624
|
+
id?: string;
|
|
1625
|
+
brand?: BrandDTO;
|
|
1626
|
+
station?: StationDTO;
|
|
1627
|
+
[index: string]: any;
|
|
1628
|
+
}
|
|
918
1629
|
|
|
919
|
-
export type PatchMenuV3LayoutResponse =
|
|
1630
|
+
export type PatchMenuV3LayoutResponse = LayoutDTO;
|
|
920
1631
|
|
|
921
1632
|
export interface PatchMenuV3LayoutRequest extends BaseRequest, PatchMenuV3LayoutPath {
|
|
922
1633
|
body: PatchMenuV3LayoutBody;
|
|
@@ -928,15 +1639,24 @@ export interface DeleteMenuV3LayoutPath {
|
|
|
928
1639
|
id: string;
|
|
929
1640
|
}
|
|
930
1641
|
|
|
931
|
-
export type DeleteMenuV3LayoutResponse =
|
|
1642
|
+
export type DeleteMenuV3LayoutResponse = LayoutDTO;
|
|
932
1643
|
|
|
933
1644
|
export interface DeleteMenuV3LayoutRequest extends BaseRequest, DeleteMenuV3LayoutPath {}
|
|
934
1645
|
|
|
935
1646
|
// POST /menu/v3/layout
|
|
936
1647
|
|
|
937
|
-
export
|
|
1648
|
+
export interface PostMenuV3LayoutBody {
|
|
1649
|
+
name: string;
|
|
1650
|
+
categories?: CategoryDTO[];
|
|
1651
|
+
brand_id: string;
|
|
1652
|
+
station_id: string;
|
|
1653
|
+
id?: any;
|
|
1654
|
+
brand?: any;
|
|
1655
|
+
station?: any;
|
|
1656
|
+
[index: string]: any;
|
|
1657
|
+
}
|
|
938
1658
|
|
|
939
|
-
export type PostMenuV3LayoutResponse =
|
|
1659
|
+
export type PostMenuV3LayoutResponse = LayoutDTO;
|
|
940
1660
|
|
|
941
1661
|
export interface PostMenuV3LayoutRequest extends BaseRequest {
|
|
942
1662
|
body: PostMenuV3LayoutBody;
|
|
@@ -945,12 +1665,15 @@ export interface PostMenuV3LayoutRequest extends BaseRequest {
|
|
|
945
1665
|
// GET /menu/v3/layouts/count
|
|
946
1666
|
|
|
947
1667
|
export interface GetMenuV3LayoutsCountQuery {
|
|
1668
|
+
// The fields that filtering is allowed on
|
|
1669
|
+
filter?: any;
|
|
948
1670
|
// Graphql query string
|
|
949
1671
|
_query?: string;
|
|
950
1672
|
}
|
|
951
1673
|
|
|
952
1674
|
export interface GetMenuV3LayoutsCountResponse {
|
|
953
|
-
count
|
|
1675
|
+
count: number;
|
|
1676
|
+
[index: string]: any;
|
|
954
1677
|
}
|
|
955
1678
|
|
|
956
1679
|
export interface GetMenuV3LayoutsCountRequest
|
|
@@ -960,11 +1683,29 @@ export interface GetMenuV3LayoutsCountRequest
|
|
|
960
1683
|
// GET /menu/v3/categories
|
|
961
1684
|
|
|
962
1685
|
export interface GetMenuV3CategoriesQuery {
|
|
1686
|
+
// The fields that filtering is allowed on
|
|
1687
|
+
filter?: any;
|
|
1688
|
+
// Number of records to load per page
|
|
1689
|
+
limit?: number;
|
|
1690
|
+
page?: number;
|
|
1691
|
+
// A field to sort the results based on
|
|
1692
|
+
sort_by?: string;
|
|
1693
|
+
sort_order?: string;
|
|
1694
|
+
// How soft deleted records should be shown in the list
|
|
1695
|
+
soft_deleted?: string;
|
|
1696
|
+
// If specified, only the selected fields will be returned
|
|
1697
|
+
select?: string[];
|
|
1698
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1699
|
+
relationships?: string[];
|
|
963
1700
|
// Graphql query string
|
|
964
1701
|
_query?: string;
|
|
965
1702
|
}
|
|
966
1703
|
|
|
967
|
-
export
|
|
1704
|
+
export interface GetMenuV3CategoriesResponse {
|
|
1705
|
+
meta: PaginationMetaDTO;
|
|
1706
|
+
results: CategoryDTO[];
|
|
1707
|
+
[index: string]: any;
|
|
1708
|
+
}
|
|
968
1709
|
|
|
969
1710
|
export interface GetMenuV3CategoriesRequest
|
|
970
1711
|
extends BaseRequest,
|
|
@@ -977,11 +1718,15 @@ export interface GetMenuV3CategoryPath {
|
|
|
977
1718
|
}
|
|
978
1719
|
|
|
979
1720
|
export interface GetMenuV3CategoryQuery {
|
|
1721
|
+
// If specified, only the selected fields will be returned
|
|
1722
|
+
select?: string[];
|
|
1723
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1724
|
+
relationships?: string[];
|
|
980
1725
|
// Graphql query string
|
|
981
1726
|
_query?: string;
|
|
982
1727
|
}
|
|
983
1728
|
|
|
984
|
-
export type GetMenuV3CategoryResponse =
|
|
1729
|
+
export type GetMenuV3CategoryResponse = CategoryDTO;
|
|
985
1730
|
|
|
986
1731
|
export interface GetMenuV3CategoryRequest
|
|
987
1732
|
extends BaseRequest,
|
|
@@ -994,9 +1739,20 @@ export interface PatchMenuV3CategoryPath {
|
|
|
994
1739
|
id: string;
|
|
995
1740
|
}
|
|
996
1741
|
|
|
997
|
-
export
|
|
1742
|
+
export interface PatchMenuV3CategoryBody {
|
|
1743
|
+
name?: string;
|
|
1744
|
+
label?: string;
|
|
1745
|
+
sequence?: number;
|
|
1746
|
+
priority?: number;
|
|
1747
|
+
is_active?: boolean;
|
|
1748
|
+
layout_id?: string;
|
|
1749
|
+
id?: string;
|
|
1750
|
+
layout?: LayoutDTO;
|
|
1751
|
+
items?: CategoryToItemRelationshipDTO[];
|
|
1752
|
+
[index: string]: any;
|
|
1753
|
+
}
|
|
998
1754
|
|
|
999
|
-
export type PatchMenuV3CategoryResponse =
|
|
1755
|
+
export type PatchMenuV3CategoryResponse = CategoryDTO;
|
|
1000
1756
|
|
|
1001
1757
|
export interface PatchMenuV3CategoryRequest extends BaseRequest, PatchMenuV3CategoryPath {
|
|
1002
1758
|
body: PatchMenuV3CategoryBody;
|
|
@@ -1008,15 +1764,26 @@ export interface DeleteMenuV3CategoryPath {
|
|
|
1008
1764
|
id: string;
|
|
1009
1765
|
}
|
|
1010
1766
|
|
|
1011
|
-
export type DeleteMenuV3CategoryResponse =
|
|
1767
|
+
export type DeleteMenuV3CategoryResponse = CategoryDTO;
|
|
1012
1768
|
|
|
1013
1769
|
export interface DeleteMenuV3CategoryRequest extends BaseRequest, DeleteMenuV3CategoryPath {}
|
|
1014
1770
|
|
|
1015
1771
|
// POST /menu/v3/category
|
|
1016
1772
|
|
|
1017
|
-
export
|
|
1773
|
+
export interface PostMenuV3CategoryBody {
|
|
1774
|
+
name: string;
|
|
1775
|
+
label?: string;
|
|
1776
|
+
sequence?: number;
|
|
1777
|
+
priority?: number;
|
|
1778
|
+
is_active?: boolean;
|
|
1779
|
+
layout_id: string;
|
|
1780
|
+
id?: any;
|
|
1781
|
+
layout?: LayoutDTO;
|
|
1782
|
+
items?: CategoryToItemRelationshipDTO[];
|
|
1783
|
+
[index: string]: any;
|
|
1784
|
+
}
|
|
1018
1785
|
|
|
1019
|
-
export type PostMenuV3CategoryResponse =
|
|
1786
|
+
export type PostMenuV3CategoryResponse = CategoryDTO;
|
|
1020
1787
|
|
|
1021
1788
|
export interface PostMenuV3CategoryRequest extends BaseRequest {
|
|
1022
1789
|
body: PostMenuV3CategoryBody;
|
|
@@ -1025,12 +1792,15 @@ export interface PostMenuV3CategoryRequest extends BaseRequest {
|
|
|
1025
1792
|
// GET /menu/v3/categories/count
|
|
1026
1793
|
|
|
1027
1794
|
export interface GetMenuV3CategoriesCountQuery {
|
|
1795
|
+
// The fields that filtering is allowed on
|
|
1796
|
+
filter?: any;
|
|
1028
1797
|
// Graphql query string
|
|
1029
1798
|
_query?: string;
|
|
1030
1799
|
}
|
|
1031
1800
|
|
|
1032
1801
|
export interface GetMenuV3CategoriesCountResponse {
|
|
1033
|
-
count
|
|
1802
|
+
count: number;
|
|
1803
|
+
[index: string]: any;
|
|
1034
1804
|
}
|
|
1035
1805
|
|
|
1036
1806
|
export interface GetMenuV3CategoriesCountRequest
|
|
@@ -1040,11 +1810,29 @@ export interface GetMenuV3CategoriesCountRequest
|
|
|
1040
1810
|
// GET /menu/v3/category/relationships/items
|
|
1041
1811
|
|
|
1042
1812
|
export interface GetMenuV3CategoryRelationshipsItemsQuery {
|
|
1813
|
+
// The fields that filtering is allowed on
|
|
1814
|
+
filter?: any;
|
|
1815
|
+
// Number of records to load per page
|
|
1816
|
+
limit?: number;
|
|
1817
|
+
page?: number;
|
|
1818
|
+
// A field to sort the results based on
|
|
1819
|
+
sort_by?: string;
|
|
1820
|
+
sort_order?: string;
|
|
1821
|
+
// How soft deleted records should be shown in the list
|
|
1822
|
+
soft_deleted?: string;
|
|
1823
|
+
// If specified, only the selected fields will be returned
|
|
1824
|
+
select?: string[];
|
|
1825
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1826
|
+
relationships?: string[];
|
|
1043
1827
|
// Graphql query string
|
|
1044
1828
|
_query?: string;
|
|
1045
1829
|
}
|
|
1046
1830
|
|
|
1047
|
-
export
|
|
1831
|
+
export interface GetMenuV3CategoryRelationshipsItemsResponse {
|
|
1832
|
+
meta: PaginationMetaDTO;
|
|
1833
|
+
results: CategoryToItemRelationshipDTO[];
|
|
1834
|
+
[index: string]: any;
|
|
1835
|
+
}
|
|
1048
1836
|
|
|
1049
1837
|
export interface GetMenuV3CategoryRelationshipsItemsRequest
|
|
1050
1838
|
extends BaseRequest,
|
|
@@ -1052,9 +1840,21 @@ export interface GetMenuV3CategoryRelationshipsItemsRequest
|
|
|
1052
1840
|
|
|
1053
1841
|
// POST /menu/v3/category/relationships/items
|
|
1054
1842
|
|
|
1055
|
-
export type PostMenuV3CategoryRelationshipsItemsBody =
|
|
1843
|
+
export type PostMenuV3CategoryRelationshipsItemsBody = {
|
|
1844
|
+
category_id: string;
|
|
1845
|
+
item_id: string;
|
|
1846
|
+
sequence?: number;
|
|
1847
|
+
id?: any;
|
|
1848
|
+
category?: CategoryDTO;
|
|
1849
|
+
item?: ItemDTO;
|
|
1850
|
+
[index: string]: any;
|
|
1851
|
+
}[];
|
|
1056
1852
|
|
|
1057
|
-
export
|
|
1853
|
+
export interface PostMenuV3CategoryRelationshipsItemsResponse {
|
|
1854
|
+
meta: PaginationMetaDTO;
|
|
1855
|
+
results: CategoryToItemRelationshipDTO[];
|
|
1856
|
+
[index: string]: any;
|
|
1857
|
+
}
|
|
1058
1858
|
|
|
1059
1859
|
export interface PostMenuV3CategoryRelationshipsItemsRequest extends BaseRequest {
|
|
1060
1860
|
body: PostMenuV3CategoryRelationshipsItemsBody;
|
|
@@ -1062,23 +1862,61 @@ export interface PostMenuV3CategoryRelationshipsItemsRequest extends BaseRequest
|
|
|
1062
1862
|
|
|
1063
1863
|
// POST /menu/v3/category/relationships/item
|
|
1064
1864
|
|
|
1065
|
-
export
|
|
1865
|
+
export interface PostMenuV3CategoryRelationshipsItemBody {
|
|
1866
|
+
category_id: string;
|
|
1867
|
+
item_id: string;
|
|
1868
|
+
sequence?: number;
|
|
1869
|
+
id?: any;
|
|
1870
|
+
category?: CategoryDTO;
|
|
1871
|
+
item?: ItemDTO;
|
|
1872
|
+
[index: string]: any;
|
|
1873
|
+
}
|
|
1066
1874
|
|
|
1067
|
-
export type PostMenuV3CategoryRelationshipsItemResponse =
|
|
1875
|
+
export type PostMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationshipDTO;
|
|
1068
1876
|
|
|
1069
1877
|
export interface PostMenuV3CategoryRelationshipsItemRequest extends BaseRequest {
|
|
1070
1878
|
body: PostMenuV3CategoryRelationshipsItemBody;
|
|
1071
1879
|
}
|
|
1072
1880
|
|
|
1881
|
+
// GET /menu/v3/category/relationships/item/{id}
|
|
1882
|
+
|
|
1883
|
+
export interface GetMenuV3CategoryRelationshipsItemPath {
|
|
1884
|
+
id: string;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
export interface GetMenuV3CategoryRelationshipsItemQuery {
|
|
1888
|
+
// If specified, only the selected fields will be returned
|
|
1889
|
+
select?: string[];
|
|
1890
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1891
|
+
relationships?: string[];
|
|
1892
|
+
// Graphql query string
|
|
1893
|
+
_query?: string;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
export type GetMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationshipDTO;
|
|
1897
|
+
|
|
1898
|
+
export interface GetMenuV3CategoryRelationshipsItemRequest
|
|
1899
|
+
extends BaseRequest,
|
|
1900
|
+
RequestQuery<GetMenuV3CategoryRelationshipsItemQuery>,
|
|
1901
|
+
GetMenuV3CategoryRelationshipsItemPath {}
|
|
1902
|
+
|
|
1073
1903
|
// PATCH /menu/v3/category/relationships/item/{id}
|
|
1074
1904
|
|
|
1075
1905
|
export interface PatchMenuV3CategoryRelationshipsItemPath {
|
|
1076
1906
|
id: string;
|
|
1077
1907
|
}
|
|
1078
1908
|
|
|
1079
|
-
export
|
|
1909
|
+
export interface PatchMenuV3CategoryRelationshipsItemBody {
|
|
1910
|
+
category_id?: string;
|
|
1911
|
+
item_id?: string;
|
|
1912
|
+
sequence?: number;
|
|
1913
|
+
id?: string;
|
|
1914
|
+
category?: CategoryDTO;
|
|
1915
|
+
item?: ItemDTO;
|
|
1916
|
+
[index: string]: any;
|
|
1917
|
+
}
|
|
1080
1918
|
|
|
1081
|
-
export type PatchMenuV3CategoryRelationshipsItemResponse =
|
|
1919
|
+
export type PatchMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationshipDTO;
|
|
1082
1920
|
|
|
1083
1921
|
export interface PatchMenuV3CategoryRelationshipsItemRequest
|
|
1084
1922
|
extends BaseRequest,
|
|
@@ -1092,7 +1930,7 @@ export interface DeleteMenuV3CategoryRelationshipsItemPath {
|
|
|
1092
1930
|
id: string;
|
|
1093
1931
|
}
|
|
1094
1932
|
|
|
1095
|
-
export type DeleteMenuV3CategoryRelationshipsItemResponse =
|
|
1933
|
+
export type DeleteMenuV3CategoryRelationshipsItemResponse = CategoryToItemRelationshipDTO;
|
|
1096
1934
|
|
|
1097
1935
|
export interface DeleteMenuV3CategoryRelationshipsItemRequest
|
|
1098
1936
|
extends BaseRequest,
|
|
@@ -1101,14 +1939,53 @@ export interface DeleteMenuV3CategoryRelationshipsItemRequest
|
|
|
1101
1939
|
// GET /menu/v3/brands
|
|
1102
1940
|
|
|
1103
1941
|
export interface GetMenuV3BrandsQuery {
|
|
1942
|
+
// The fields that filtering is allowed on
|
|
1943
|
+
filter?: any;
|
|
1944
|
+
// Number of records to load per page
|
|
1945
|
+
limit?: number;
|
|
1946
|
+
page?: number;
|
|
1947
|
+
// A field to sort the results based on
|
|
1948
|
+
sort_by?: string;
|
|
1949
|
+
sort_order?: string;
|
|
1950
|
+
// How soft deleted records should be shown in the list
|
|
1951
|
+
soft_deleted?: string;
|
|
1952
|
+
// If specified, only the selected fields will be returned
|
|
1953
|
+
select?: string[];
|
|
1954
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
1955
|
+
relationships?: string[];
|
|
1104
1956
|
// Graphql query string
|
|
1105
1957
|
_query?: string;
|
|
1106
1958
|
}
|
|
1107
1959
|
|
|
1108
|
-
export
|
|
1960
|
+
export interface GetMenuV3BrandsResponse {
|
|
1961
|
+
meta: PaginationMetaDTO;
|
|
1962
|
+
results: BrandDTO[];
|
|
1963
|
+
[index: string]: any;
|
|
1964
|
+
}
|
|
1109
1965
|
|
|
1110
1966
|
export interface GetMenuV3BrandsRequest extends BaseRequest, RequestQuery<GetMenuV3BrandsQuery> {}
|
|
1111
1967
|
|
|
1968
|
+
// POST /menu/v3/brands
|
|
1969
|
+
|
|
1970
|
+
export type PostMenuV3BrandsBody = {
|
|
1971
|
+
layouts?: LayoutDTO[];
|
|
1972
|
+
items?: ItemDTO[];
|
|
1973
|
+
modifier_groups?: ModifierGroupDTO[];
|
|
1974
|
+
modifiers?: ModifierDTO[];
|
|
1975
|
+
id?: any;
|
|
1976
|
+
[index: string]: any;
|
|
1977
|
+
}[];
|
|
1978
|
+
|
|
1979
|
+
export interface PostMenuV3BrandsResponse {
|
|
1980
|
+
meta: PaginationMetaDTO;
|
|
1981
|
+
results: BrandDTO[];
|
|
1982
|
+
[index: string]: any;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
export interface PostMenuV3BrandsRequest extends BaseRequest {
|
|
1986
|
+
body: PostMenuV3BrandsBody;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1112
1989
|
// GET /menu/v3/brand/{id}/modifiers
|
|
1113
1990
|
|
|
1114
1991
|
export interface GetMenuV3BrandModifiersPath {
|
|
@@ -1116,11 +1993,29 @@ export interface GetMenuV3BrandModifiersPath {
|
|
|
1116
1993
|
}
|
|
1117
1994
|
|
|
1118
1995
|
export interface GetMenuV3BrandModifiersQuery {
|
|
1996
|
+
// The fields that filtering is allowed on
|
|
1997
|
+
filter?: any;
|
|
1998
|
+
// Number of records to load per page
|
|
1999
|
+
limit?: number;
|
|
2000
|
+
page?: number;
|
|
2001
|
+
// A field to sort the results based on
|
|
2002
|
+
sort_by?: string;
|
|
2003
|
+
sort_order?: string;
|
|
2004
|
+
// How soft deleted records should be shown in the list
|
|
2005
|
+
soft_deleted?: string;
|
|
2006
|
+
// If specified, only the selected fields will be returned
|
|
2007
|
+
select?: string[];
|
|
2008
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2009
|
+
relationships?: string[];
|
|
1119
2010
|
// Graphql query string
|
|
1120
2011
|
_query?: string;
|
|
1121
2012
|
}
|
|
1122
2013
|
|
|
1123
|
-
export
|
|
2014
|
+
export interface GetMenuV3BrandModifiersResponse {
|
|
2015
|
+
meta: PaginationMetaDTO;
|
|
2016
|
+
results: ModifierDTO[];
|
|
2017
|
+
[index: string]: any;
|
|
2018
|
+
}
|
|
1124
2019
|
|
|
1125
2020
|
export interface GetMenuV3BrandModifiersRequest
|
|
1126
2021
|
extends BaseRequest,
|
|
@@ -1129,21 +2024,39 @@ export interface GetMenuV3BrandModifiersRequest
|
|
|
1129
2024
|
|
|
1130
2025
|
// GET /menu/v3/brand/{id}/modifier_groups
|
|
1131
2026
|
|
|
1132
|
-
export interface
|
|
2027
|
+
export interface GetMenuV3BrandModifierGroupsPath {
|
|
1133
2028
|
id: string;
|
|
1134
2029
|
}
|
|
1135
2030
|
|
|
1136
|
-
export interface
|
|
2031
|
+
export interface GetMenuV3BrandModifierGroupsQuery {
|
|
2032
|
+
// The fields that filtering is allowed on
|
|
2033
|
+
filter?: any;
|
|
2034
|
+
// Number of records to load per page
|
|
2035
|
+
limit?: number;
|
|
2036
|
+
page?: number;
|
|
2037
|
+
// A field to sort the results based on
|
|
2038
|
+
sort_by?: string;
|
|
2039
|
+
sort_order?: string;
|
|
2040
|
+
// How soft deleted records should be shown in the list
|
|
2041
|
+
soft_deleted?: string;
|
|
2042
|
+
// If specified, only the selected fields will be returned
|
|
2043
|
+
select?: string[];
|
|
2044
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2045
|
+
relationships?: string[];
|
|
1137
2046
|
// Graphql query string
|
|
1138
2047
|
_query?: string;
|
|
1139
2048
|
}
|
|
1140
2049
|
|
|
1141
|
-
export
|
|
2050
|
+
export interface GetMenuV3BrandModifierGroupsResponse {
|
|
2051
|
+
meta: PaginationMetaDTO;
|
|
2052
|
+
results: ModifierGroupDTO[];
|
|
2053
|
+
[index: string]: any;
|
|
2054
|
+
}
|
|
1142
2055
|
|
|
1143
|
-
export interface
|
|
2056
|
+
export interface GetMenuV3BrandModifierGroupsRequest
|
|
1144
2057
|
extends BaseRequest,
|
|
1145
|
-
RequestQuery<
|
|
1146
|
-
|
|
2058
|
+
RequestQuery<GetMenuV3BrandModifierGroupsQuery>,
|
|
2059
|
+
GetMenuV3BrandModifierGroupsPath {}
|
|
1147
2060
|
|
|
1148
2061
|
// GET /menu/v3/brand/{id}/items
|
|
1149
2062
|
|
|
@@ -1152,11 +2065,29 @@ export interface GetMenuV3BrandItemsPath {
|
|
|
1152
2065
|
}
|
|
1153
2066
|
|
|
1154
2067
|
export interface GetMenuV3BrandItemsQuery {
|
|
2068
|
+
// The fields that filtering is allowed on
|
|
2069
|
+
filter?: any;
|
|
2070
|
+
// Number of records to load per page
|
|
2071
|
+
limit?: number;
|
|
2072
|
+
page?: number;
|
|
2073
|
+
// A field to sort the results based on
|
|
2074
|
+
sort_by?: string;
|
|
2075
|
+
sort_order?: string;
|
|
2076
|
+
// How soft deleted records should be shown in the list
|
|
2077
|
+
soft_deleted?: string;
|
|
2078
|
+
// If specified, only the selected fields will be returned
|
|
2079
|
+
select?: string[];
|
|
2080
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2081
|
+
relationships?: string[];
|
|
1155
2082
|
// Graphql query string
|
|
1156
2083
|
_query?: string;
|
|
1157
2084
|
}
|
|
1158
2085
|
|
|
1159
|
-
export
|
|
2086
|
+
export interface GetMenuV3BrandItemsResponse {
|
|
2087
|
+
meta: PaginationMetaDTO;
|
|
2088
|
+
results: ItemDTO[];
|
|
2089
|
+
[index: string]: any;
|
|
2090
|
+
}
|
|
1160
2091
|
|
|
1161
2092
|
export interface GetMenuV3BrandItemsRequest
|
|
1162
2093
|
extends BaseRequest,
|
|
@@ -1170,11 +2101,15 @@ export interface GetMenuV3BrandPath {
|
|
|
1170
2101
|
}
|
|
1171
2102
|
|
|
1172
2103
|
export interface GetMenuV3BrandQuery {
|
|
2104
|
+
// If specified, only the selected fields will be returned
|
|
2105
|
+
select?: string[];
|
|
2106
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2107
|
+
relationships?: string[];
|
|
1173
2108
|
// Graphql query string
|
|
1174
2109
|
_query?: string;
|
|
1175
2110
|
}
|
|
1176
2111
|
|
|
1177
|
-
export type GetMenuV3BrandResponse =
|
|
2112
|
+
export type GetMenuV3BrandResponse = BrandDTO;
|
|
1178
2113
|
|
|
1179
2114
|
export interface GetMenuV3BrandRequest
|
|
1180
2115
|
extends BaseRequest,
|
|
@@ -1187,9 +2122,16 @@ export interface PatchMenuV3BrandPath {
|
|
|
1187
2122
|
id: string;
|
|
1188
2123
|
}
|
|
1189
2124
|
|
|
1190
|
-
export
|
|
2125
|
+
export interface PatchMenuV3BrandBody {
|
|
2126
|
+
layouts?: LayoutDTO[];
|
|
2127
|
+
items?: ItemDTO[];
|
|
2128
|
+
modifier_groups?: ModifierGroupDTO[];
|
|
2129
|
+
modifiers?: ModifierDTO[];
|
|
2130
|
+
id?: string;
|
|
2131
|
+
[index: string]: any;
|
|
2132
|
+
}
|
|
1191
2133
|
|
|
1192
|
-
export type PatchMenuV3BrandResponse =
|
|
2134
|
+
export type PatchMenuV3BrandResponse = BrandDTO;
|
|
1193
2135
|
|
|
1194
2136
|
export interface PatchMenuV3BrandRequest extends BaseRequest, PatchMenuV3BrandPath {
|
|
1195
2137
|
body: PatchMenuV3BrandBody;
|
|
@@ -1201,15 +2143,22 @@ export interface DeleteMenuV3BrandPath {
|
|
|
1201
2143
|
id: string;
|
|
1202
2144
|
}
|
|
1203
2145
|
|
|
1204
|
-
export type DeleteMenuV3BrandResponse =
|
|
2146
|
+
export type DeleteMenuV3BrandResponse = BrandDTO;
|
|
1205
2147
|
|
|
1206
2148
|
export interface DeleteMenuV3BrandRequest extends BaseRequest, DeleteMenuV3BrandPath {}
|
|
1207
2149
|
|
|
1208
2150
|
// POST /menu/v3/brand
|
|
1209
2151
|
|
|
1210
|
-
export
|
|
2152
|
+
export interface PostMenuV3BrandBody {
|
|
2153
|
+
layouts?: LayoutDTO[];
|
|
2154
|
+
items?: ItemDTO[];
|
|
2155
|
+
modifier_groups?: ModifierGroupDTO[];
|
|
2156
|
+
modifiers?: ModifierDTO[];
|
|
2157
|
+
id?: any;
|
|
2158
|
+
[index: string]: any;
|
|
2159
|
+
}
|
|
1211
2160
|
|
|
1212
|
-
export type PostMenuV3BrandResponse =
|
|
2161
|
+
export type PostMenuV3BrandResponse = BrandDTO;
|
|
1213
2162
|
|
|
1214
2163
|
export interface PostMenuV3BrandRequest extends BaseRequest {
|
|
1215
2164
|
body: PostMenuV3BrandBody;
|
|
@@ -1218,12 +2167,15 @@ export interface PostMenuV3BrandRequest extends BaseRequest {
|
|
|
1218
2167
|
// GET /menu/v3/brands/count
|
|
1219
2168
|
|
|
1220
2169
|
export interface GetMenuV3BrandsCountQuery {
|
|
2170
|
+
// The fields that filtering is allowed on
|
|
2171
|
+
filter?: any;
|
|
1221
2172
|
// Graphql query string
|
|
1222
2173
|
_query?: string;
|
|
1223
2174
|
}
|
|
1224
2175
|
|
|
1225
2176
|
export interface GetMenuV3BrandsCountResponse {
|
|
1226
|
-
count
|
|
2177
|
+
count: number;
|
|
2178
|
+
[index: string]: any;
|
|
1227
2179
|
}
|
|
1228
2180
|
|
|
1229
2181
|
export interface GetMenuV3BrandsCountRequest
|
|
@@ -1233,16 +2185,55 @@ export interface GetMenuV3BrandsCountRequest
|
|
|
1233
2185
|
// GET /menu/v3/stations
|
|
1234
2186
|
|
|
1235
2187
|
export interface GetMenuV3StationsQuery {
|
|
2188
|
+
// The fields that filtering is allowed on
|
|
2189
|
+
filter?: any;
|
|
2190
|
+
// Number of records to load per page
|
|
2191
|
+
limit?: number;
|
|
2192
|
+
page?: number;
|
|
2193
|
+
// A field to sort the results based on
|
|
2194
|
+
sort_by?: string;
|
|
2195
|
+
sort_order?: string;
|
|
2196
|
+
// How soft deleted records should be shown in the list
|
|
2197
|
+
soft_deleted?: string;
|
|
2198
|
+
// If specified, only the selected fields will be returned
|
|
2199
|
+
select?: string[];
|
|
2200
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2201
|
+
relationships?: string[];
|
|
1236
2202
|
// Graphql query string
|
|
1237
2203
|
_query?: string;
|
|
1238
2204
|
}
|
|
1239
2205
|
|
|
1240
|
-
export
|
|
2206
|
+
export interface GetMenuV3StationsResponse {
|
|
2207
|
+
meta: PaginationMetaDTO;
|
|
2208
|
+
results: StationDTO[];
|
|
2209
|
+
[index: string]: any;
|
|
2210
|
+
}
|
|
1241
2211
|
|
|
1242
2212
|
export interface GetMenuV3StationsRequest
|
|
1243
2213
|
extends BaseRequest,
|
|
1244
2214
|
RequestQuery<GetMenuV3StationsQuery> {}
|
|
1245
2215
|
|
|
2216
|
+
// POST /menu/v3/stations
|
|
2217
|
+
|
|
2218
|
+
export type PostMenuV3StationsBody = {
|
|
2219
|
+
layouts?: LayoutDTO[];
|
|
2220
|
+
items?: ItemDTO[];
|
|
2221
|
+
modifier_groups?: ModifierGroupDTO[];
|
|
2222
|
+
modifiers?: ModifierDTO[];
|
|
2223
|
+
id?: any;
|
|
2224
|
+
[index: string]: any;
|
|
2225
|
+
}[];
|
|
2226
|
+
|
|
2227
|
+
export interface PostMenuV3StationsResponse {
|
|
2228
|
+
meta: PaginationMetaDTO;
|
|
2229
|
+
results: StationDTO[];
|
|
2230
|
+
[index: string]: any;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
export interface PostMenuV3StationsRequest extends BaseRequest {
|
|
2234
|
+
body: PostMenuV3StationsBody;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
1246
2237
|
// GET /menu/v3/station/{id}
|
|
1247
2238
|
|
|
1248
2239
|
export interface GetMenuV3StationPath {
|
|
@@ -1250,11 +2241,15 @@ export interface GetMenuV3StationPath {
|
|
|
1250
2241
|
}
|
|
1251
2242
|
|
|
1252
2243
|
export interface GetMenuV3StationQuery {
|
|
2244
|
+
// If specified, only the selected fields will be returned
|
|
2245
|
+
select?: string[];
|
|
2246
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2247
|
+
relationships?: string[];
|
|
1253
2248
|
// Graphql query string
|
|
1254
2249
|
_query?: string;
|
|
1255
2250
|
}
|
|
1256
2251
|
|
|
1257
|
-
export type GetMenuV3StationResponse =
|
|
2252
|
+
export type GetMenuV3StationResponse = StationDTO;
|
|
1258
2253
|
|
|
1259
2254
|
export interface GetMenuV3StationRequest
|
|
1260
2255
|
extends BaseRequest,
|
|
@@ -1267,9 +2262,16 @@ export interface PatchMenuV3StationPath {
|
|
|
1267
2262
|
id: string;
|
|
1268
2263
|
}
|
|
1269
2264
|
|
|
1270
|
-
export
|
|
2265
|
+
export interface PatchMenuV3StationBody {
|
|
2266
|
+
layouts?: LayoutDTO[];
|
|
2267
|
+
items?: ItemDTO[];
|
|
2268
|
+
modifier_groups?: ModifierGroupDTO[];
|
|
2269
|
+
modifiers?: ModifierDTO[];
|
|
2270
|
+
id?: string;
|
|
2271
|
+
[index: string]: any;
|
|
2272
|
+
}
|
|
1271
2273
|
|
|
1272
|
-
export type PatchMenuV3StationResponse =
|
|
2274
|
+
export type PatchMenuV3StationResponse = StationDTO;
|
|
1273
2275
|
|
|
1274
2276
|
export interface PatchMenuV3StationRequest extends BaseRequest, PatchMenuV3StationPath {
|
|
1275
2277
|
body: PatchMenuV3StationBody;
|
|
@@ -1281,15 +2283,22 @@ export interface DeleteMenuV3StationPath {
|
|
|
1281
2283
|
id: string;
|
|
1282
2284
|
}
|
|
1283
2285
|
|
|
1284
|
-
export type DeleteMenuV3StationResponse =
|
|
2286
|
+
export type DeleteMenuV3StationResponse = StationDTO;
|
|
1285
2287
|
|
|
1286
2288
|
export interface DeleteMenuV3StationRequest extends BaseRequest, DeleteMenuV3StationPath {}
|
|
1287
2289
|
|
|
1288
2290
|
// POST /menu/v3/station
|
|
1289
2291
|
|
|
1290
|
-
export
|
|
2292
|
+
export interface PostMenuV3StationBody {
|
|
2293
|
+
layouts?: LayoutDTO[];
|
|
2294
|
+
items?: ItemDTO[];
|
|
2295
|
+
modifier_groups?: ModifierGroupDTO[];
|
|
2296
|
+
modifiers?: ModifierDTO[];
|
|
2297
|
+
id?: any;
|
|
2298
|
+
[index: string]: any;
|
|
2299
|
+
}
|
|
1291
2300
|
|
|
1292
|
-
export type PostMenuV3StationResponse =
|
|
2301
|
+
export type PostMenuV3StationResponse = StationDTO;
|
|
1293
2302
|
|
|
1294
2303
|
export interface PostMenuV3StationRequest extends BaseRequest {
|
|
1295
2304
|
body: PostMenuV3StationBody;
|
|
@@ -1298,12 +2307,15 @@ export interface PostMenuV3StationRequest extends BaseRequest {
|
|
|
1298
2307
|
// GET /menu/v3/stations/count
|
|
1299
2308
|
|
|
1300
2309
|
export interface GetMenuV3StationsCountQuery {
|
|
2310
|
+
// The fields that filtering is allowed on
|
|
2311
|
+
filter?: any;
|
|
1301
2312
|
// Graphql query string
|
|
1302
2313
|
_query?: string;
|
|
1303
2314
|
}
|
|
1304
2315
|
|
|
1305
2316
|
export interface GetMenuV3StationsCountResponse {
|
|
1306
|
-
count
|
|
2317
|
+
count: number;
|
|
2318
|
+
[index: string]: any;
|
|
1307
2319
|
}
|
|
1308
2320
|
|
|
1309
2321
|
export interface GetMenuV3StationsCountRequest
|
|
@@ -1818,3 +2830,294 @@ export interface PostMenuPartialGroupItemOptionsRequest
|
|
|
1818
2830
|
PostMenuPartialGroupItemOptionsPath {
|
|
1819
2831
|
body: PostMenuPartialGroupItemOptionsBody;
|
|
1820
2832
|
}
|
|
2833
|
+
|
|
2834
|
+
// POST /menu/v3/layout/{id}/publish
|
|
2835
|
+
|
|
2836
|
+
export interface PostMenuV3LayoutPublishPath {
|
|
2837
|
+
id: string;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
export interface PostMenuV3LayoutPublishQuery {
|
|
2841
|
+
// The fields that filtering is allowed on
|
|
2842
|
+
filter?: any;
|
|
2843
|
+
// Number of records to load per page
|
|
2844
|
+
limit?: number;
|
|
2845
|
+
page?: number;
|
|
2846
|
+
// A field to sort the results based on
|
|
2847
|
+
sort_by?: string;
|
|
2848
|
+
sort_order?: string;
|
|
2849
|
+
// How soft deleted records should be shown in the list
|
|
2850
|
+
soft_deleted?: string;
|
|
2851
|
+
// If specified, only the selected fields will be returned
|
|
2852
|
+
select?: string[];
|
|
2853
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2854
|
+
relationships?: string[];
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
export interface PostMenuV3LayoutPublishResponse {
|
|
2858
|
+
status?: string;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
export interface PostMenuV3LayoutPublishRequest
|
|
2862
|
+
extends BaseRequest,
|
|
2863
|
+
RequestQuery<PostMenuV3LayoutPublishQuery>,
|
|
2864
|
+
PostMenuV3LayoutPublishPath {}
|
|
2865
|
+
|
|
2866
|
+
// POST /menu/v3/categorys
|
|
2867
|
+
|
|
2868
|
+
export type PostMenuV3CategorysBody = {
|
|
2869
|
+
name: string;
|
|
2870
|
+
label?: string;
|
|
2871
|
+
sequence?: number;
|
|
2872
|
+
priority?: number;
|
|
2873
|
+
is_active?: boolean;
|
|
2874
|
+
layout_id: string;
|
|
2875
|
+
id?: any;
|
|
2876
|
+
layout?: LayoutDTO;
|
|
2877
|
+
items?: CategoryToItemRelationshipDTO[];
|
|
2878
|
+
[index: string]: any;
|
|
2879
|
+
}[];
|
|
2880
|
+
|
|
2881
|
+
export interface PostMenuV3CategorysResponse {
|
|
2882
|
+
meta: PaginationMetaDTO;
|
|
2883
|
+
results: CategoryDTO[];
|
|
2884
|
+
[index: string]: any;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
export interface PostMenuV3CategorysRequest extends BaseRequest {
|
|
2888
|
+
body: PostMenuV3CategorysBody;
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
// GET /menu/v3/category/relationships/items/count
|
|
2892
|
+
|
|
2893
|
+
export interface GetMenuV3CategoryRelationshipsItemsCountQuery {
|
|
2894
|
+
// The fields that filtering is allowed on
|
|
2895
|
+
filter?: any;
|
|
2896
|
+
// Graphql query string
|
|
2897
|
+
_query?: string;
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
export interface GetMenuV3CategoryRelationshipsItemsCountResponse {
|
|
2901
|
+
count: number;
|
|
2902
|
+
[index: string]: any;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
export interface GetMenuV3CategoryRelationshipsItemsCountRequest
|
|
2906
|
+
extends BaseRequest,
|
|
2907
|
+
RequestQuery<GetMenuV3CategoryRelationshipsItemsCountQuery> {}
|
|
2908
|
+
|
|
2909
|
+
// GET /menu/v3/item/relationships/modifier-groups/count
|
|
2910
|
+
|
|
2911
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupsCountQuery {
|
|
2912
|
+
// The fields that filtering is allowed on
|
|
2913
|
+
filter?: any;
|
|
2914
|
+
// Graphql query string
|
|
2915
|
+
_query?: string;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupsCountResponse {
|
|
2919
|
+
count: number;
|
|
2920
|
+
[index: string]: any;
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
export interface GetMenuV3ItemRelationshipsModifierGroupsCountRequest
|
|
2924
|
+
extends BaseRequest,
|
|
2925
|
+
RequestQuery<GetMenuV3ItemRelationshipsModifierGroupsCountQuery> {}
|
|
2926
|
+
|
|
2927
|
+
// GET /menu/v3/modifier-groups/count
|
|
2928
|
+
|
|
2929
|
+
export interface GetMenuV3ModifierGroupsCountQuery {
|
|
2930
|
+
// The fields that filtering is allowed on
|
|
2931
|
+
filter?: any;
|
|
2932
|
+
// Graphql query string
|
|
2933
|
+
_query?: string;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
export interface GetMenuV3ModifierGroupsCountResponse {
|
|
2937
|
+
count: number;
|
|
2938
|
+
[index: string]: any;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
export interface GetMenuV3ModifierGroupsCountRequest
|
|
2942
|
+
extends BaseRequest,
|
|
2943
|
+
RequestQuery<GetMenuV3ModifierGroupsCountQuery> {}
|
|
2944
|
+
|
|
2945
|
+
// GET /menu/v3/modifier-group/relationships/modifiers/count
|
|
2946
|
+
|
|
2947
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifiersCountQuery {
|
|
2948
|
+
// The fields that filtering is allowed on
|
|
2949
|
+
filter?: any;
|
|
2950
|
+
// Graphql query string
|
|
2951
|
+
_query?: string;
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifiersCountResponse {
|
|
2955
|
+
count: number;
|
|
2956
|
+
[index: string]: any;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
export interface GetMenuV3ModifierGroupRelationshipsModifiersCountRequest
|
|
2960
|
+
extends BaseRequest,
|
|
2961
|
+
RequestQuery<GetMenuV3ModifierGroupRelationshipsModifiersCountQuery> {}
|
|
2962
|
+
|
|
2963
|
+
// GET /menu/v3/modifiers/count
|
|
2964
|
+
|
|
2965
|
+
export interface GetMenuV3ModifiersCountQuery {
|
|
2966
|
+
// The fields that filtering is allowed on
|
|
2967
|
+
filter?: any;
|
|
2968
|
+
// Graphql query string
|
|
2969
|
+
_query?: string;
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
export interface GetMenuV3ModifiersCountResponse {
|
|
2973
|
+
count: number;
|
|
2974
|
+
[index: string]: any;
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
export interface GetMenuV3ModifiersCountRequest
|
|
2978
|
+
extends BaseRequest,
|
|
2979
|
+
RequestQuery<GetMenuV3ModifiersCountQuery> {}
|
|
2980
|
+
|
|
2981
|
+
// GET /menu/v3/station/{id}/modifiers
|
|
2982
|
+
|
|
2983
|
+
export interface GetMenuV3StationModifiersPath {
|
|
2984
|
+
id: string;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
export interface GetMenuV3StationModifiersQuery {
|
|
2988
|
+
// The fields that filtering is allowed on
|
|
2989
|
+
filter?: any;
|
|
2990
|
+
// Number of records to load per page
|
|
2991
|
+
limit?: number;
|
|
2992
|
+
page?: number;
|
|
2993
|
+
// A field to sort the results based on
|
|
2994
|
+
sort_by?: string;
|
|
2995
|
+
sort_order?: string;
|
|
2996
|
+
// How soft deleted records should be shown in the list
|
|
2997
|
+
soft_deleted?: string;
|
|
2998
|
+
// If specified, only the selected fields will be returned
|
|
2999
|
+
select?: string[];
|
|
3000
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
3001
|
+
relationships?: string[];
|
|
3002
|
+
// Graphql query string
|
|
3003
|
+
_query?: string;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
export interface GetMenuV3StationModifiersResponse {
|
|
3007
|
+
meta: PaginationMetaDTO;
|
|
3008
|
+
results: ModifierDTO[];
|
|
3009
|
+
[index: string]: any;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
export interface GetMenuV3StationModifiersRequest
|
|
3013
|
+
extends BaseRequest,
|
|
3014
|
+
RequestQuery<GetMenuV3StationModifiersQuery>,
|
|
3015
|
+
GetMenuV3StationModifiersPath {}
|
|
3016
|
+
|
|
3017
|
+
// GET /menu/v3/station/{id}/modifier_groups
|
|
3018
|
+
|
|
3019
|
+
export interface GetMenuV3StationModifierGroupsPath {
|
|
3020
|
+
id: string;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
export interface GetMenuV3StationModifierGroupsQuery {
|
|
3024
|
+
// The fields that filtering is allowed on
|
|
3025
|
+
filter?: any;
|
|
3026
|
+
// Number of records to load per page
|
|
3027
|
+
limit?: number;
|
|
3028
|
+
page?: number;
|
|
3029
|
+
// A field to sort the results based on
|
|
3030
|
+
sort_by?: string;
|
|
3031
|
+
sort_order?: string;
|
|
3032
|
+
// How soft deleted records should be shown in the list
|
|
3033
|
+
soft_deleted?: string;
|
|
3034
|
+
// If specified, only the selected fields will be returned
|
|
3035
|
+
select?: string[];
|
|
3036
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
3037
|
+
relationships?: string[];
|
|
3038
|
+
// Graphql query string
|
|
3039
|
+
_query?: string;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
export interface GetMenuV3StationModifierGroupsResponse {
|
|
3043
|
+
meta: PaginationMetaDTO;
|
|
3044
|
+
results: ModifierGroupDTO[];
|
|
3045
|
+
[index: string]: any;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
export interface GetMenuV3StationModifierGroupsRequest
|
|
3049
|
+
extends BaseRequest,
|
|
3050
|
+
RequestQuery<GetMenuV3StationModifierGroupsQuery>,
|
|
3051
|
+
GetMenuV3StationModifierGroupsPath {}
|
|
3052
|
+
|
|
3053
|
+
// GET /menu/v3/station/{id}/items
|
|
3054
|
+
|
|
3055
|
+
export interface GetMenuV3StationItemsPath {
|
|
3056
|
+
id: string;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
export interface GetMenuV3StationItemsQuery {
|
|
3060
|
+
// The fields that filtering is allowed on
|
|
3061
|
+
filter?: any;
|
|
3062
|
+
// Number of records to load per page
|
|
3063
|
+
limit?: number;
|
|
3064
|
+
page?: number;
|
|
3065
|
+
// A field to sort the results based on
|
|
3066
|
+
sort_by?: string;
|
|
3067
|
+
sort_order?: string;
|
|
3068
|
+
// How soft deleted records should be shown in the list
|
|
3069
|
+
soft_deleted?: string;
|
|
3070
|
+
// If specified, only the selected fields will be returned
|
|
3071
|
+
select?: string[];
|
|
3072
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
3073
|
+
relationships?: string[];
|
|
3074
|
+
// Graphql query string
|
|
3075
|
+
_query?: string;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
export interface GetMenuV3StationItemsResponse {
|
|
3079
|
+
meta: PaginationMetaDTO;
|
|
3080
|
+
results: ItemDTO[];
|
|
3081
|
+
[index: string]: any;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
export interface GetMenuV3StationItemsRequest
|
|
3085
|
+
extends BaseRequest,
|
|
3086
|
+
RequestQuery<GetMenuV3StationItemsQuery>,
|
|
3087
|
+
GetMenuV3StationItemsPath {}
|
|
3088
|
+
|
|
3089
|
+
// GET /menu/v3/site/{id}/layouts
|
|
3090
|
+
|
|
3091
|
+
export interface GetMenuV3SiteLayoutsPath {
|
|
3092
|
+
id: string;
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
export interface GetMenuV3SiteLayoutsQuery {
|
|
3096
|
+
// The fields that filtering is allowed on
|
|
3097
|
+
filter?: any;
|
|
3098
|
+
// Number of records to load per page
|
|
3099
|
+
limit?: number;
|
|
3100
|
+
page?: number;
|
|
3101
|
+
// A field to sort the results based on
|
|
3102
|
+
sort_by?: string;
|
|
3103
|
+
sort_order?: string;
|
|
3104
|
+
// How soft deleted records should be shown in the list
|
|
3105
|
+
soft_deleted?: string;
|
|
3106
|
+
// If specified, only the selected fields will be returned
|
|
3107
|
+
select?: string[];
|
|
3108
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
3109
|
+
relationships?: string[];
|
|
3110
|
+
// Graphql query string
|
|
3111
|
+
_query?: string;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
export interface GetMenuV3SiteLayoutsResponse {
|
|
3115
|
+
meta: PaginationMetaDTO;
|
|
3116
|
+
results: LayoutDTO[];
|
|
3117
|
+
[index: string]: any;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
export interface GetMenuV3SiteLayoutsRequest
|
|
3121
|
+
extends BaseRequest,
|
|
3122
|
+
RequestQuery<GetMenuV3SiteLayoutsQuery>,
|
|
3123
|
+
GetMenuV3SiteLayoutsPath {}
|