@compassdigital/sdk.typescript 3.49.0 → 3.50.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.
@@ -526,27 +526,24 @@ export interface CategoryDTO {
526
526
  is_active?: boolean;
527
527
  layout_id?: string;
528
528
  id?: string;
529
- layout?: LayoutDTO;
530
- items?: any[];
531
529
  [index: string]: any;
532
530
  }
533
531
 
534
532
  export interface LayoutDTO {
535
533
  name: string;
536
- categories?: any[];
534
+ categories?: CategoryDTO[];
537
535
  brand_id: string;
538
536
  station_id: string;
539
- id?: any;
537
+ id?: string;
538
+ created_at?: string;
539
+ updated_at?: string;
540
+ deleted_at?: string;
540
541
  brand?: BrandDTO;
541
- station?: any;
542
+ station?: StationDTO;
542
543
  [index: string]: any;
543
544
  }
544
545
 
545
546
  export interface BrandDTO {
546
- layouts?: any[];
547
- items?: ItemDTO[];
548
- modifier_groups?: any[];
549
- modifiers?: any[];
550
547
  id?: string;
551
548
  [index: string]: any;
552
549
  }
@@ -563,13 +560,9 @@ export interface ItemDTO {
563
560
  is_in_stock?: boolean;
564
561
  posid?: string;
565
562
  tax_tags?: string[];
566
- modifier_groups?: ItemToModifierGroupRelationshipDTO[];
567
563
  brand_id?: string;
568
564
  station_id?: string;
569
565
  id?: string;
570
- categories?: CategoryToItemRelationshipDTO[];
571
- brand?: any;
572
- station?: any;
573
566
  [index: string]: any;
574
567
  }
575
568
 
@@ -578,8 +571,6 @@ export interface ItemToModifierGroupRelationshipDTO {
578
571
  item_id?: string;
579
572
  sequence?: number;
580
573
  id?: string;
581
- modifier_group?: ModifierGroupDTO;
582
- item?: any;
583
574
  [index: string]: any;
584
575
  }
585
576
 
@@ -590,13 +581,9 @@ export interface ModifierGroupDTO {
590
581
  max?: number;
591
582
  is_active?: boolean;
592
583
  priority?: number;
593
- modifiers?: ModifierGroupToModifierRelationshipDTO[];
594
- items?: any[];
595
584
  brand_id?: string;
596
585
  station_id?: string;
597
586
  id?: string;
598
- brand?: any;
599
- station?: any;
600
587
  [index: string]: any;
601
588
  }
602
589
 
@@ -605,8 +592,6 @@ export interface ModifierGroupToModifierRelationshipDTO {
605
592
  modifier_group_id?: string;
606
593
  sequence?: number;
607
594
  id?: string;
608
- modifier?: ModifierDTO;
609
- modifier_group?: any;
610
595
  [index: string]: any;
611
596
  }
612
597
 
@@ -621,21 +606,15 @@ export interface ModifierDTO {
621
606
  is_active?: boolean;
622
607
  is_in_stock?: boolean;
623
608
  posid?: string;
624
- modifier_groups?: any[];
625
609
  brand_id?: string;
626
610
  station_id?: string;
627
611
  id?: string;
628
- brand?: any;
629
- station?: StationDTO;
630
612
  [index: string]: any;
631
613
  }
632
614
 
633
615
  export interface StationDTO {
634
- layouts?: any[];
635
- items?: any[];
636
- modifier_groups?: any[];
637
- modifiers?: any[];
638
616
  id?: string;
617
+ name?: string;
639
618
  [index: string]: any;
640
619
  }
641
620
 
@@ -644,8 +623,6 @@ export interface CategoryToItemRelationshipDTO {
644
623
  item_id?: string;
645
624
  sequence?: number;
646
625
  id?: string;
647
- category?: any;
648
- item?: any;
649
626
  [index: string]: any;
650
627
  }
651
628
 
@@ -677,7 +654,7 @@ export interface NotFoundErrorDTO {
677
654
 
678
655
  export interface FilterFieldDTO {
679
656
  // Alternatively you can pass in the value directly (like '{ key: value }' instead of '{ key : { $equal : value } }
680
- $equal?: string;
657
+ $equals?: string;
681
658
  $more_than?: string;
682
659
  $more_than_or_equal?: string;
683
660
  $less_than?: string;
@@ -728,6 +705,78 @@ export interface PaginationMetaDTO {
728
705
  [index: string]: any;
729
706
  }
730
707
 
708
+ export interface UnauthorizedErrorDTO {
709
+ number: number;
710
+ message: string;
711
+ [index: string]: any;
712
+ }
713
+
714
+ export interface ModifierEntityDTO {
715
+ name: string;
716
+ label?: string;
717
+ description?: string;
718
+ price: number;
719
+ calories?: number;
720
+ priority?: number;
721
+ tax_tags?: string[];
722
+ is_active?: boolean;
723
+ is_in_stock?: boolean;
724
+ posid: string;
725
+ modifier_groups?: ModifierGroupToModifierRelationshipDTO[];
726
+ brand_id: string;
727
+ station_id?: string;
728
+ id?: string;
729
+ created_at?: string;
730
+ updated_at?: string;
731
+ deleted_at?: string;
732
+ brand?: BrandDTO;
733
+ station?: StationDTO;
734
+ [index: string]: any;
735
+ }
736
+
737
+ export interface ModifierGroupEntityDTO {
738
+ name: string;
739
+ label?: string;
740
+ min?: number;
741
+ max?: number;
742
+ is_active?: boolean;
743
+ priority?: number;
744
+ modifiers?: ModifierGroupToModifierRelationshipDTO[];
745
+ items?: ItemToModifierGroupRelationshipDTO[];
746
+ brand_id: string;
747
+ station_id?: string;
748
+ id?: string;
749
+ created_at?: string;
750
+ updated_at?: string;
751
+ deleted_at?: string;
752
+ brand?: BrandDTO;
753
+ station?: StationDTO;
754
+ [index: string]: any;
755
+ }
756
+
757
+ export interface ItemEntityDTO {
758
+ name: string;
759
+ label?: string;
760
+ description?: string;
761
+ price: number;
762
+ calories?: number;
763
+ priority?: number;
764
+ tax_tags?: string[];
765
+ is_active?: boolean;
766
+ is_in_stock?: boolean;
767
+ posid: string;
768
+ modifier_groups?: ModifierGroupToModifierRelationshipDTO[];
769
+ brand_id: string;
770
+ station_id?: string;
771
+ id?: string;
772
+ created_at?: string;
773
+ updated_at?: string;
774
+ deleted_at?: string;
775
+ brand?: BrandDTO;
776
+ station?: StationDTO;
777
+ [index: string]: any;
778
+ }
779
+
731
780
  // GET /menu/v3/modifiers
732
781
 
733
782
  export interface GetMenuV3ModifiersQuery {
@@ -871,7 +920,6 @@ export interface PostMenuV3ModifierBody {
871
920
  modifier_groups?: ModifierGroupToModifierRelationshipDTO[];
872
921
  brand_id: string;
873
922
  station_id?: string;
874
- id?: any;
875
923
  brand?: BrandDTO;
876
924
  station?: StationDTO;
877
925
  [index: string]: any;
@@ -971,7 +1019,6 @@ export interface PostMenuV3ModifierGroupBody {
971
1019
  items?: ItemToModifierGroupRelationshipDTO[];
972
1020
  brand_id: string;
973
1021
  station_id?: string;
974
- id?: any;
975
1022
  brand?: BrandDTO;
976
1023
  station?: StationDTO;
977
1024
  [index: string]: any;
@@ -1120,7 +1167,6 @@ export interface PostMenuV3ModifierGroupRelationshipsModifierBody {
1120
1167
  modifier_id: string;
1121
1168
  modifier_group_id: string;
1122
1169
  sequence?: number;
1123
- id?: any;
1124
1170
  modifier?: ModifierDTO;
1125
1171
  modifier_group?: ModifierGroupDTO;
1126
1172
  [index: string]: any;
@@ -1340,7 +1386,6 @@ export interface PostMenuV3ItemBody {
1340
1386
  modifier_groups?: ItemToModifierGroupRelationshipDTO[];
1341
1387
  brand_id: string;
1342
1388
  station_id?: string;
1343
- id?: any;
1344
1389
  categories?: CategoryToItemRelationshipDTO[];
1345
1390
  brand?: BrandDTO;
1346
1391
  station?: StationDTO;
@@ -1430,7 +1475,6 @@ export interface PostMenuV3ItemRelationshipsModifierGroupBody {
1430
1475
  modifier_group_id: string;
1431
1476
  item_id: string;
1432
1477
  sequence?: number;
1433
- id?: any;
1434
1478
  modifier_group?: ModifierGroupDTO;
1435
1479
  item?: ItemDTO;
1436
1480
  [index: string]: any;
@@ -1603,7 +1647,19 @@ export interface GetMenuV3LayoutQuery {
1603
1647
  _query?: string;
1604
1648
  }
1605
1649
 
1606
- export type GetMenuV3LayoutResponse = LayoutDTO;
1650
+ export interface GetMenuV3LayoutResponse {
1651
+ name: string;
1652
+ categories?: CategoryDTO[];
1653
+ brand_id: string;
1654
+ station_id: string;
1655
+ id?: string;
1656
+ created_at?: string;
1657
+ updated_at?: string;
1658
+ deleted_at?: string;
1659
+ brand?: BrandDTO;
1660
+ station?: StationDTO;
1661
+ [index: string]: any;
1662
+ }
1607
1663
 
1608
1664
  export interface GetMenuV3LayoutRequest
1609
1665
  extends BaseRequest,
@@ -1627,7 +1683,19 @@ export interface PatchMenuV3LayoutBody {
1627
1683
  [index: string]: any;
1628
1684
  }
1629
1685
 
1630
- export type PatchMenuV3LayoutResponse = LayoutDTO;
1686
+ export interface PatchMenuV3LayoutResponse {
1687
+ name: string;
1688
+ categories?: CategoryDTO[];
1689
+ brand_id: string;
1690
+ station_id: string;
1691
+ id?: string;
1692
+ created_at?: string;
1693
+ updated_at?: string;
1694
+ deleted_at?: string;
1695
+ brand?: BrandDTO;
1696
+ station?: StationDTO;
1697
+ [index: string]: any;
1698
+ }
1631
1699
 
1632
1700
  export interface PatchMenuV3LayoutRequest extends BaseRequest, PatchMenuV3LayoutPath {
1633
1701
  body: PatchMenuV3LayoutBody;
@@ -1639,7 +1707,19 @@ export interface DeleteMenuV3LayoutPath {
1639
1707
  id: string;
1640
1708
  }
1641
1709
 
1642
- export type DeleteMenuV3LayoutResponse = LayoutDTO;
1710
+ export interface DeleteMenuV3LayoutResponse {
1711
+ name: string;
1712
+ categories?: CategoryDTO[];
1713
+ brand_id: string;
1714
+ station_id: string;
1715
+ id?: string;
1716
+ created_at?: string;
1717
+ updated_at?: string;
1718
+ deleted_at?: string;
1719
+ brand?: BrandDTO;
1720
+ station?: StationDTO;
1721
+ [index: string]: any;
1722
+ }
1643
1723
 
1644
1724
  export interface DeleteMenuV3LayoutRequest extends BaseRequest, DeleteMenuV3LayoutPath {}
1645
1725
 
@@ -1650,13 +1730,24 @@ export interface PostMenuV3LayoutBody {
1650
1730
  categories?: CategoryDTO[];
1651
1731
  brand_id: string;
1652
1732
  station_id: string;
1653
- id?: any;
1654
- brand?: any;
1655
- station?: any;
1733
+ brand?: BrandDTO;
1734
+ station?: StationDTO;
1656
1735
  [index: string]: any;
1657
1736
  }
1658
1737
 
1659
- export type PostMenuV3LayoutResponse = LayoutDTO;
1738
+ export interface PostMenuV3LayoutResponse {
1739
+ name: string;
1740
+ categories?: CategoryDTO[];
1741
+ brand_id: string;
1742
+ station_id: string;
1743
+ id?: string;
1744
+ created_at?: string;
1745
+ updated_at?: string;
1746
+ deleted_at?: string;
1747
+ brand?: BrandDTO;
1748
+ station?: StationDTO;
1749
+ [index: string]: any;
1750
+ }
1660
1751
 
1661
1752
  export interface PostMenuV3LayoutRequest extends BaseRequest {
1662
1753
  body: PostMenuV3LayoutBody;
@@ -1680,37 +1771,6 @@ export interface GetMenuV3LayoutsCountRequest
1680
1771
  extends BaseRequest,
1681
1772
  RequestQuery<GetMenuV3LayoutsCountQuery> {}
1682
1773
 
1683
- // GET /menu/v3/categories
1684
-
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[];
1700
- // Graphql query string
1701
- _query?: string;
1702
- }
1703
-
1704
- export interface GetMenuV3CategoriesResponse {
1705
- meta: PaginationMetaDTO;
1706
- results: CategoryDTO[];
1707
- [index: string]: any;
1708
- }
1709
-
1710
- export interface GetMenuV3CategoriesRequest
1711
- extends BaseRequest,
1712
- RequestQuery<GetMenuV3CategoriesQuery> {}
1713
-
1714
1774
  // GET /menu/v3/category/{id}
1715
1775
 
1716
1776
  export interface GetMenuV3CategoryPath {
@@ -1777,7 +1837,6 @@ export interface PostMenuV3CategoryBody {
1777
1837
  priority?: number;
1778
1838
  is_active?: boolean;
1779
1839
  layout_id: string;
1780
- id?: any;
1781
1840
  layout?: LayoutDTO;
1782
1841
  items?: CategoryToItemRelationshipDTO[];
1783
1842
  [index: string]: any;
@@ -1866,7 +1925,6 @@ export interface PostMenuV3CategoryRelationshipsItemBody {
1866
1925
  category_id: string;
1867
1926
  item_id: string;
1868
1927
  sequence?: number;
1869
- id?: any;
1870
1928
  category?: CategoryDTO;
1871
1929
  item?: ItemDTO;
1872
1930
  [index: string]: any;
@@ -2154,7 +2212,6 @@ export interface PostMenuV3BrandBody {
2154
2212
  items?: ItemDTO[];
2155
2213
  modifier_groups?: ModifierGroupDTO[];
2156
2214
  modifiers?: ModifierDTO[];
2157
- id?: any;
2158
2215
  [index: string]: any;
2159
2216
  }
2160
2217
 
@@ -2221,6 +2278,7 @@ export type PostMenuV3StationsBody = {
2221
2278
  modifier_groups?: ModifierGroupDTO[];
2222
2279
  modifiers?: ModifierDTO[];
2223
2280
  id?: any;
2281
+ name?: string;
2224
2282
  [index: string]: any;
2225
2283
  }[];
2226
2284
 
@@ -2268,6 +2326,7 @@ export interface PatchMenuV3StationBody {
2268
2326
  modifier_groups?: ModifierGroupDTO[];
2269
2327
  modifiers?: ModifierDTO[];
2270
2328
  id?: string;
2329
+ name?: string;
2271
2330
  [index: string]: any;
2272
2331
  }
2273
2332
 
@@ -2294,7 +2353,7 @@ export interface PostMenuV3StationBody {
2294
2353
  items?: ItemDTO[];
2295
2354
  modifier_groups?: ModifierGroupDTO[];
2296
2355
  modifiers?: ModifierDTO[];
2297
- id?: any;
2356
+ name?: string;
2298
2357
  [index: string]: any;
2299
2358
  }
2300
2359
 
@@ -2985,7 +3044,6 @@ export interface GetMenuV3StationModifiersPath {
2985
3044
  }
2986
3045
 
2987
3046
  export interface GetMenuV3StationModifiersQuery {
2988
- // The fields that filtering is allowed on
2989
3047
  filter?: any;
2990
3048
  // Number of records to load per page
2991
3049
  limit?: number;
@@ -3005,7 +3063,7 @@ export interface GetMenuV3StationModifiersQuery {
3005
3063
 
3006
3064
  export interface GetMenuV3StationModifiersResponse {
3007
3065
  meta: PaginationMetaDTO;
3008
- results: ModifierDTO[];
3066
+ results: ModifierEntityDTO[];
3009
3067
  [index: string]: any;
3010
3068
  }
3011
3069
 
@@ -3021,7 +3079,6 @@ export interface GetMenuV3StationModifierGroupsPath {
3021
3079
  }
3022
3080
 
3023
3081
  export interface GetMenuV3StationModifierGroupsQuery {
3024
- // The fields that filtering is allowed on
3025
3082
  filter?: any;
3026
3083
  // Number of records to load per page
3027
3084
  limit?: number;
@@ -3041,7 +3098,7 @@ export interface GetMenuV3StationModifierGroupsQuery {
3041
3098
 
3042
3099
  export interface GetMenuV3StationModifierGroupsResponse {
3043
3100
  meta: PaginationMetaDTO;
3044
- results: ModifierGroupDTO[];
3101
+ results: ModifierGroupEntityDTO[];
3045
3102
  [index: string]: any;
3046
3103
  }
3047
3104
 
@@ -3057,7 +3114,6 @@ export interface GetMenuV3StationItemsPath {
3057
3114
  }
3058
3115
 
3059
3116
  export interface GetMenuV3StationItemsQuery {
3060
- // The fields that filtering is allowed on
3061
3117
  filter?: any;
3062
3118
  // Number of records to load per page
3063
3119
  limit?: number;
@@ -3077,7 +3133,7 @@ export interface GetMenuV3StationItemsQuery {
3077
3133
 
3078
3134
  export interface GetMenuV3StationItemsResponse {
3079
3135
  meta: PaginationMetaDTO;
3080
- results: ItemDTO[];
3136
+ results: ItemEntityDTO[];
3081
3137
  [index: string]: any;
3082
3138
  }
3083
3139
 
@@ -202,6 +202,8 @@ export interface GetPaymentClienttokenPath {
202
202
  }
203
203
 
204
204
  export interface GetPaymentClienttokenQuery {
205
+ // hCaptcha response key
206
+ captchaResponseKey: string;
205
207
  // Graphql query string
206
208
  _query?: string;
207
209
  }
@@ -39,6 +39,11 @@ export interface User {
39
39
  send_emails_date_updated?: string;
40
40
  };
41
41
  mealplan_added_date?: string;
42
+ // limit set to prevent too many login attempts with incorrect password
43
+ login_limit?: {
44
+ login_attempts?: number;
45
+ last_attempt_date?: string;
46
+ };
42
47
  // forgot password verification details
43
48
  password_verification?: {
44
49
  attempts?: number;
@@ -55,6 +60,8 @@ export interface User {
55
60
  };
56
61
  is?: {
57
62
  disabled?: boolean;
63
+ // User locked out status
64
+ locked_out?: boolean;
58
65
  // If the users email is verified
59
66
  verified?: boolean;
60
67
  // User phone number verification