@compassdigital/sdk.typescript 4.617.0 → 4.618.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.
@@ -1802,7 +1802,14 @@ export interface ConsumerItem {
1802
1802
  primary?: string;
1803
1803
  secondary?: string;
1804
1804
  };
1805
+ jde_category?: string;
1805
1806
  };
1807
+ parent_id?: string;
1808
+ menu_labels?: {
1809
+ id?: string;
1810
+ text?: string;
1811
+ s3_link?: string;
1812
+ }[];
1806
1813
  is_deleted?: boolean;
1807
1814
  is?: {
1808
1815
  disabled?: boolean;
@@ -1857,90 +1864,23 @@ export interface GetMenuItemNutritionConsumer {
1857
1864
  calories?: GetMenuItemNutritionValueConsumer;
1858
1865
  }
1859
1866
 
1860
- export interface Certified {
1861
- // Certified vegan
1862
- vegan?: boolean;
1863
- // Certified vegetarian
1864
- vegetarian?: boolean;
1865
- // Seafood Watch certified (sustainable seafood)
1866
- seafood_watch?: boolean;
1867
- // Certified for general wellbeing
1868
- wellbeing?: boolean;
1869
- // Farm to Fork certified (locally sourced)
1870
- farm_to_fork?: boolean;
1871
- // In Balance certified (nutritionally balanced)
1872
- in_balance?: boolean;
1873
- // Certified organic
1874
- organic?: boolean;
1875
- // No gluten ingredients present
1876
- no_gluten_ingredients?: boolean;
1877
- // Certified halal
1878
- halal?: boolean;
1879
- // Certified kosher
1880
- kosher?: boolean;
1881
- // Certified humane (animal welfare)
1882
- humane?: boolean;
1883
- // Locally crafted product
1884
- locally_crafted?: boolean;
1885
- // Contains nuts
1886
- nuts?: boolean;
1887
- // Oracle Garden Grown certified
1888
- oracle_garden_grown?: boolean;
1889
- // Oracle OYES certified
1890
- oracle_oyes?: boolean;
1891
- // Peanut free
1892
- peanut_free?: boolean;
1893
- // Tree nut free
1894
- tree_nut_free?: boolean;
1895
- // Wheat free
1896
- wheat_free?: boolean;
1897
- // Non-GMO certified
1898
- non_gmo?: boolean;
1899
- // Milk free
1900
- milk_free?: boolean;
1901
- // Egg free
1902
- egg_free?: boolean;
1903
- // Soy free
1904
- soy_free?: boolean;
1905
- // Fair Trade certified
1906
- fair_trade?: boolean;
1907
- // Rainforest Alliance certified
1908
- rainforest_alliance?: boolean;
1909
- // Salt free
1910
- salt_free?: boolean;
1911
- }
1912
-
1913
1867
  export interface GetMenuOptionNutritionConsumer {
1914
- // Calories
1915
1868
  calories?: GetMenuItemNutritionValueConsumer;
1916
- // Total fat
1917
1869
  total_fat?: GetMenuItemNutritionValueConsumer;
1918
- // Saturated fat
1919
1870
  saturated_fat?: GetMenuItemNutritionValueConsumer;
1920
- // Total carbohydrates
1921
1871
  total_carbohydrate?: GetMenuItemNutritionValueConsumer;
1922
- // Total sugars
1923
1872
  total_sugars?: GetMenuItemNutritionValueConsumer;
1924
- // Protein
1925
1873
  protein?: GetMenuItemNutritionValueConsumer;
1926
- // Dietary fiber
1927
1874
  dietary_fiber?: GetMenuItemNutritionValueConsumer;
1928
- // Sodium
1929
1875
  sodium?: GetMenuItemNutritionValueConsumer;
1930
- // Trans fat
1931
1876
  trans_fat?: GetMenuItemNutritionValueConsumer;
1932
- // Cholesterol
1933
1877
  cholesterol?: GetMenuItemNutritionValueConsumer;
1934
- // Added sugars
1935
1878
  added_sugars?: GetMenuItemNutritionValueConsumer;
1936
1879
  }
1937
1880
 
1938
1881
  export interface GetMenuItemOptionSizingConsumer {
1939
- // Sizing name
1940
1882
  name?: string;
1941
- // POS ID for sizing
1942
1883
  posid?: string;
1943
- // Price for this sizing
1944
1884
  price?: number;
1945
1885
  }
1946
1886
 
@@ -1949,6 +1889,16 @@ export interface GetMenuItemOptionMetaConsumer {
1949
1889
  sizing?: GetMenuItemOptionSizingConsumer[];
1950
1890
  }
1951
1891
 
1892
+ export interface GetMenuItemImageSizesConsumer {
1893
+ original?: string;
1894
+ thumbnail_80_80?: string;
1895
+ }
1896
+
1897
+ export interface GetMenuItemImageConsumer {
1898
+ src?: string;
1899
+ sizes?: GetMenuItemImageSizesConsumer;
1900
+ }
1901
+
1952
1902
  export interface GetMenuItemOptionConsumer {
1953
1903
  // Menu Option ID
1954
1904
  id?: string;
@@ -1963,7 +1913,6 @@ export interface GetMenuItemOptionConsumer {
1963
1913
  }
1964
1914
 
1965
1915
  export interface GetMenuItemGroupIsConsumer {
1966
- // Options group incremental?
1967
1916
  incremental?: boolean;
1968
1917
  }
1969
1918
 
@@ -1975,17 +1924,11 @@ export interface GetMenuItemGroupMetaConsumer {
1975
1924
  export interface GetMenuItemOptionsGroupConsumer {
1976
1925
  // Menu Options Group ID
1977
1926
  id?: string;
1978
- // Label for the options group
1979
1927
  label?: GetMenuItemLabelConsumer;
1980
- // Options group items
1981
1928
  items?: GetMenuItemOptionConsumer[];
1982
- // Minimum number of options
1983
1929
  min?: number;
1984
- // Maximum number of options
1985
1930
  max?: number;
1986
- // Object containing quick boolean details
1987
1931
  is?: GetMenuItemGroupIsConsumer;
1988
- // Metadata for the options group
1989
1932
  meta?: GetMenuItemGroupMetaConsumer;
1990
1933
  }
1991
1934
 
@@ -2003,31 +1946,14 @@ export interface GetMenuItemMetaConsumer {
2003
1946
  recipe?: GetMenuItemRecipeConsumer;
2004
1947
  }
2005
1948
 
2006
- export interface GetMenuItemImageSizesConsumer {
2007
- // Image URL
2008
- original?: string;
2009
- // 80x80 thumbnail image URL
2010
- thumbnail_80_80?: string;
2011
- }
2012
-
2013
- export interface GetMenuItemImageConsumer {
2014
- // Image source URL
2015
- src?: string;
2016
- // Image sizes
2017
- sizes?: GetMenuItemImageSizesConsumer;
2018
- }
2019
-
2020
1949
  export interface GetMenuItemIsConsumer {
2021
1950
  // Is the item out of stock?
2022
1951
  out_of_stock?: boolean;
2023
1952
  }
2024
1953
 
2025
1954
  export interface GetMenuItemMenuLabelConsumer {
2026
- // Menu label ID
2027
1955
  id?: string;
2028
- // Menu label text
2029
1956
  text?: string;
2030
- // Image for Menu label S3 link
2031
1957
  s3_link?: string;
2032
1958
  }
2033
1959
 
@@ -3792,6 +3718,363 @@ export interface GetConsumerLocationResponse {
3792
3718
  address?: ConsumerAddress;
3793
3719
  }
3794
3720
 
3721
+ export interface GetMenuItemNutritionValueConsumerV2 {
3722
+ amount?: number;
3723
+ unit?: string;
3724
+ display?: string;
3725
+ }
3726
+
3727
+ export interface GetMenuItemNutritionConsumerV2 {
3728
+ kcal?: number;
3729
+ calories?: GetMenuItemNutritionValueConsumerV2;
3730
+ serving_size?: GetMenuItemNutritionValueConsumerV2;
3731
+ total_fat?: GetMenuItemNutritionValueConsumerV2;
3732
+ saturated_fat?: GetMenuItemNutritionValueConsumerV2;
3733
+ trans_fat?: GetMenuItemNutritionValueConsumerV2;
3734
+ cholesterol?: GetMenuItemNutritionValueConsumerV2;
3735
+ sodium?: GetMenuItemNutritionValueConsumerV2;
3736
+ total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
3737
+ dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
3738
+ sugars?: GetMenuItemNutritionValueConsumerV2;
3739
+ total_sugars?: GetMenuItemNutritionValueConsumerV2;
3740
+ protein?: GetMenuItemNutritionValueConsumerV2;
3741
+ well_being?: GetMenuItemNutritionValueConsumerV2;
3742
+ }
3743
+
3744
+ export interface GetMenuOptionNutritionConsumerV2 {
3745
+ calories?: GetMenuItemNutritionValueConsumerV2;
3746
+ total_fat?: GetMenuItemNutritionValueConsumerV2;
3747
+ saturated_fat?: GetMenuItemNutritionValueConsumerV2;
3748
+ total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
3749
+ total_sugars?: GetMenuItemNutritionValueConsumerV2;
3750
+ protein?: GetMenuItemNutritionValueConsumerV2;
3751
+ dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
3752
+ sodium?: GetMenuItemNutritionValueConsumerV2;
3753
+ trans_fat?: GetMenuItemNutritionValueConsumerV2;
3754
+ cholesterol?: GetMenuItemNutritionValueConsumerV2;
3755
+ added_sugars?: GetMenuItemNutritionValueConsumerV2;
3756
+ }
3757
+
3758
+ export interface GetMenuItemPriceConsumerV2 {
3759
+ amount?: number;
3760
+ currency?: string;
3761
+ total_price?: number;
3762
+ discount?: number;
3763
+ }
3764
+
3765
+ export interface GetMenuItemImageSizesConsumerV2 {
3766
+ original?: string;
3767
+ thumbnail_80_80?: string;
3768
+ }
3769
+
3770
+ export interface GetMenuItemImageConsumerV2 {
3771
+ src?: string;
3772
+ sizes?: GetMenuItemImageSizesConsumerV2;
3773
+ }
3774
+
3775
+ export interface GetMenuItemCertifiedConsumerV2 {
3776
+ vegan?: boolean;
3777
+ vegetarian?: boolean;
3778
+ seafood_watch?: boolean;
3779
+ wellbeing?: boolean;
3780
+ farm_to_fork?: boolean;
3781
+ in_balance?: boolean;
3782
+ organic?: boolean;
3783
+ no_gluten_ingredients?: boolean;
3784
+ halal?: boolean;
3785
+ kosher?: boolean;
3786
+ humane?: boolean;
3787
+ locally_crafted?: boolean;
3788
+ nuts?: boolean;
3789
+ oracle_garden_grown?: boolean;
3790
+ oracle_oyes?: boolean;
3791
+ peanut_free?: boolean;
3792
+ tree_nut_free?: boolean;
3793
+ wheat_free?: boolean;
3794
+ non_gmo?: boolean;
3795
+ milk_free?: boolean;
3796
+ egg_free?: boolean;
3797
+ soy_free?: boolean;
3798
+ fair_trade?: boolean;
3799
+ rainforest_alliance?: boolean;
3800
+ salt_free?: boolean;
3801
+ }
3802
+
3803
+ export interface GetMenuItemReportingConsumerV2 {
3804
+ category?: {
3805
+ primary?: string;
3806
+ secondary?: string;
3807
+ };
3808
+ jde_category?: string;
3809
+ }
3810
+
3811
+ export interface GetMenuItemIsConsumerV2 {
3812
+ disabled?: boolean;
3813
+ hidden?: boolean;
3814
+ meq_eligible?: boolean;
3815
+ out_of_stock?: boolean;
3816
+ deleted?: boolean;
3817
+ featured?: boolean;
3818
+ }
3819
+
3820
+ export interface GetMenuItemMenuLabelConsumerV2 {
3821
+ id?: string;
3822
+ text?: string;
3823
+ s3_link?: string;
3824
+ }
3825
+
3826
+ export interface GetMenuItemOptionMetaConsumerV2 {
3827
+ sizing?: {
3828
+ name?: string;
3829
+ posid?: string;
3830
+ price?: number;
3831
+ }[];
3832
+ sort_number?: number;
3833
+ menu_sort_number?: number;
3834
+ unique_id?: number;
3835
+ tax?: {
3836
+ tax_tag_code?: string;
3837
+ };
3838
+ }
3839
+
3840
+ export interface GetMenuItemOptionIsConsumerV2 {
3841
+ disabled?: boolean;
3842
+ hidden?: boolean;
3843
+ out_of_stock?: boolean;
3844
+ }
3845
+
3846
+ export interface GetMenuItemOptionConsumerV2 {
3847
+ id?: string;
3848
+ label?: {
3849
+ en?: string;
3850
+ };
3851
+ name?: string;
3852
+ description?: {
3853
+ en?: string;
3854
+ };
3855
+ price?: GetMenuItemPriceConsumerV2;
3856
+ nutrition?: GetMenuOptionNutritionConsumerV2;
3857
+ meta?: GetMenuItemOptionMetaConsumerV2;
3858
+ image?: GetMenuItemImageConsumerV2;
3859
+ certified?: GetMenuItemCertifiedConsumerV2;
3860
+ is?: GetMenuItemOptionIsConsumerV2;
3861
+ reporting?: GetMenuItemReportingConsumerV2;
3862
+ sku?: number;
3863
+ weight?: {
3864
+ unit?: string;
3865
+ amount?: number;
3866
+ };
3867
+ line_route?: string;
3868
+ amount_off_exclusions?: string[];
3869
+ }
3870
+
3871
+ export interface GetMenuItemGroupIsConsumerV2 {
3872
+ incremental?: boolean;
3873
+ }
3874
+
3875
+ export interface GetMenuItemGroupMetaConsumerV2 {
3876
+ order_type?: 'selection' | 'option' | 'quantity';
3877
+ sort_number?: number;
3878
+ menu_sort_number?: number;
3879
+ surcharge_limit_value?: number;
3880
+ }
3881
+
3882
+ export interface GetMenuItemOptionsGroupConsumerV2 {
3883
+ id?: string;
3884
+ label?: {
3885
+ en?: string;
3886
+ };
3887
+ items?: GetMenuItemOptionConsumerV2[];
3888
+ min?: number;
3889
+ max?: number;
3890
+ is?: GetMenuItemGroupIsConsumerV2;
3891
+ meta?: GetMenuItemGroupMetaConsumerV2;
3892
+ }
3893
+
3894
+ export interface GetMenuItemRecipeConsumerV2 {
3895
+ smart_tags?: string[];
3896
+ allergen_tags?: string[];
3897
+ mrn?: string;
3898
+ unit_id?: string;
3899
+ portion_quantity?: number;
3900
+ portion_unit_name?: string;
3901
+ grams?: number;
3902
+ cost?: number;
3903
+ ingredients?: string[];
3904
+ }
3905
+
3906
+ export interface GetMenuItemMetaConsumerV2 {
3907
+ barcodes?: string[];
3908
+ recipe?: GetMenuItemRecipeConsumerV2;
3909
+ superplate?: {
3910
+ type_id?: number;
3911
+ type?: string;
3912
+ };
3913
+ sort_number?: number;
3914
+ menu_sort_number?: number;
3915
+ unique_id?: number;
3916
+ tax?: {
3917
+ tax_tag_code?: string;
3918
+ tax_jwo_code?: string;
3919
+ tax_rate?: number;
3920
+ tax_amount?: number;
3921
+ };
3922
+ }
3923
+
3924
+ export interface GetMenuItemConsumerV2 {
3925
+ id?: string;
3926
+ label?: {
3927
+ en?: string;
3928
+ };
3929
+ name?: string;
3930
+ description?: {
3931
+ en?: string;
3932
+ };
3933
+ price?: GetMenuItemPriceConsumerV2;
3934
+ meal_value?: number;
3935
+ sale_price?: GetMenuItemPriceConsumerV2;
3936
+ unit?: number;
3937
+ sku?: number;
3938
+ item_number?: number;
3939
+ parent_id?: string;
3940
+ location?: string;
3941
+ line_route?: string;
3942
+ weight?: {
3943
+ unit?: string;
3944
+ amount?: number;
3945
+ };
3946
+ category?: {
3947
+ en?: string;
3948
+ };
3949
+ ingredients?: Record<string, any>[];
3950
+ amount_off_exclusions?: string[];
3951
+ nutrition?: GetMenuItemNutritionConsumerV2;
3952
+ certified?: GetMenuItemCertifiedConsumerV2;
3953
+ options?: GetMenuItemOptionsGroupConsumerV2[];
3954
+ meta?: GetMenuItemMetaConsumerV2;
3955
+ image?: GetMenuItemImageConsumerV2;
3956
+ is?: GetMenuItemIsConsumerV2;
3957
+ menu_labels?: GetMenuItemMenuLabelConsumerV2[];
3958
+ reporting?: GetMenuItemReportingConsumerV2;
3959
+ }
3960
+
3961
+ export interface GetMenuGroupConsumerV2 {
3962
+ id: string;
3963
+ label?: {
3964
+ en?: string;
3965
+ fr?: string;
3966
+ };
3967
+ items?: GetMenuItemConsumerV2[];
3968
+ }
3969
+
3970
+ export interface GetMenuIsConsumerV2 {
3971
+ disabled?: boolean;
3972
+ hidden?: boolean;
3973
+ linked?: boolean;
3974
+ promo_exemptions_enabled?: boolean;
3975
+ plu_enabled?: boolean;
3976
+ item_images_enabled?: boolean;
3977
+ item_showcase_enabled?: boolean;
3978
+ item_desc_edit_enabled?: boolean;
3979
+ calories_edit_enabled?: boolean;
3980
+ item_label_edit_enabled?: boolean;
3981
+ frictionless?: boolean;
3982
+ category_images_enabled?: boolean;
3983
+ }
3984
+
3985
+ export interface GetMenuMetaConsumerV2 {
3986
+ locked_by_user?: string;
3987
+ last_modified_user?: string;
3988
+ centricos?: boolean;
3989
+ version?: number;
3990
+ revision?: string;
3991
+ }
3992
+
3993
+ export interface GetMenuDateConsumerV2 {
3994
+ created?: string;
3995
+ modified?: string;
3996
+ published?: string;
3997
+ }
3998
+
3999
+ export interface GetMenuImageSizesConsumerV2 {
4000
+ original?: string;
4001
+ thumbnail_80_80?: string;
4002
+ }
4003
+
4004
+ export interface GetMenuImageConsumerV2 {
4005
+ src?: string;
4006
+ sizes?: GetMenuImageSizesConsumerV2;
4007
+ }
4008
+
4009
+ export interface GetMenuResponseConsumerV2 {
4010
+ id: string;
4011
+ label?: {
4012
+ en?: string;
4013
+ };
4014
+ groups?: GetMenuGroupConsumerV2[];
4015
+ parent_id?: string;
4016
+ location_brand?: string;
4017
+ company?: string;
4018
+ sector?: string;
4019
+ date?: GetMenuDateConsumerV2;
4020
+ is?: GetMenuIsConsumerV2;
4021
+ meta?: GetMenuMetaConsumerV2;
4022
+ image?: GetMenuImageConsumerV2;
4023
+ }
4024
+
4025
+ export interface Certified {
4026
+ // Certified vegan
4027
+ vegan?: boolean;
4028
+ // Certified vegetarian
4029
+ vegetarian?: boolean;
4030
+ // Seafood Watch certified (sustainable seafood)
4031
+ seafood_watch?: boolean;
4032
+ // Certified for general wellbeing
4033
+ wellbeing?: boolean;
4034
+ // Farm to Fork certified (locally sourced)
4035
+ farm_to_fork?: boolean;
4036
+ // In Balance certified (nutritionally balanced)
4037
+ in_balance?: boolean;
4038
+ // Certified organic
4039
+ organic?: boolean;
4040
+ // No gluten ingredients present
4041
+ no_gluten_ingredients?: boolean;
4042
+ // Certified halal
4043
+ halal?: boolean;
4044
+ // Certified kosher
4045
+ kosher?: boolean;
4046
+ // Certified humane (animal welfare)
4047
+ humane?: boolean;
4048
+ // Locally crafted product
4049
+ locally_crafted?: boolean;
4050
+ // Contains nuts
4051
+ nuts?: boolean;
4052
+ // Oracle Garden Grown certified
4053
+ oracle_garden_grown?: boolean;
4054
+ // Oracle OYES certified
4055
+ oracle_oyes?: boolean;
4056
+ // Peanut free
4057
+ peanut_free?: boolean;
4058
+ // Tree nut free
4059
+ tree_nut_free?: boolean;
4060
+ // Wheat free
4061
+ wheat_free?: boolean;
4062
+ // Non-GMO certified
4063
+ non_gmo?: boolean;
4064
+ // Milk free
4065
+ milk_free?: boolean;
4066
+ // Egg free
4067
+ egg_free?: boolean;
4068
+ // Soy free
4069
+ soy_free?: boolean;
4070
+ // Fair Trade certified
4071
+ fair_trade?: boolean;
4072
+ // Rainforest Alliance certified
4073
+ rainforest_alliance?: boolean;
4074
+ // Salt free
4075
+ salt_free?: boolean;
4076
+ }
4077
+
3795
4078
  // GET /consumer/v1/health-check
3796
4079
 
3797
4080
  export type HealthCheckControllerExecuteResponse = {};
@@ -4611,3 +4894,12 @@ export interface GetConsumerLocationQuery {
4611
4894
  }
4612
4895
 
4613
4896
  export type GetConsumerLocationResponse$0 = GetConsumerLocationResponse;
4897
+
4898
+ // GET /consumer/v2/menu/{id} - Get full Menu by ID (v2)
4899
+
4900
+ export interface GetConsumerMenuV2Path {
4901
+ // Menu ID as Encoded CDL ID
4902
+ id: string;
4903
+ }
4904
+
4905
+ export type GetConsumerMenuV2Response = GetMenuResponseConsumerV2;