@compassdigital/sdk.typescript 4.608.0 → 4.610.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.
@@ -1330,13 +1330,13 @@ export interface GetMenuItemPriceConsumer {
1330
1330
  amount?: number;
1331
1331
  currency?: string;
1332
1332
  }
1333
- export interface GetMenuItemCalorieConsumer {
1333
+ export interface GetMenuItemNutritionValueConsumer {
1334
1334
  amount?: number;
1335
1335
  unit?: string;
1336
1336
  display?: string;
1337
1337
  }
1338
1338
  export interface GetMenuItemNutritionConsumer {
1339
- calories?: GetMenuItemCalorieConsumer;
1339
+ calories?: GetMenuItemNutritionValueConsumer;
1340
1340
  }
1341
1341
  export interface Certified {
1342
1342
  vegan?: boolean;
@@ -1366,7 +1366,17 @@ export interface Certified {
1366
1366
  salt_free?: boolean;
1367
1367
  }
1368
1368
  export interface GetMenuOptionNutritionConsumer {
1369
- calories?: GetMenuItemCalorieConsumer;
1369
+ calories?: GetMenuItemNutritionValueConsumer;
1370
+ total_fat?: GetMenuItemNutritionValueConsumer;
1371
+ saturated_fat?: GetMenuItemNutritionValueConsumer;
1372
+ total_carbohydrate?: GetMenuItemNutritionValueConsumer;
1373
+ total_sugars?: GetMenuItemNutritionValueConsumer;
1374
+ protein?: GetMenuItemNutritionValueConsumer;
1375
+ dietary_fiber?: GetMenuItemNutritionValueConsumer;
1376
+ sodium?: GetMenuItemNutritionValueConsumer;
1377
+ trans_fat?: GetMenuItemNutritionValueConsumer;
1378
+ cholesterol?: GetMenuItemNutritionValueConsumer;
1379
+ added_sugars?: GetMenuItemNutritionValueConsumer;
1370
1380
  }
1371
1381
  export interface GetMenuItemOptionSizingConsumer {
1372
1382
  name?: string;
@@ -1760,59 +1770,49 @@ export interface GetConsumerShoppingCartResponse {
1760
1770
  };
1761
1771
  incentives?: ConsumerIncentives;
1762
1772
  }
1763
- export interface ConsumerLabel {
1764
- en?: string;
1765
- fr?: string;
1766
- }
1767
- export interface ConsumerModifierSizingInner {
1768
- name?: string;
1769
- price?: number;
1770
- posid?: string;
1773
+ export interface ConsumerMealplan {
1774
+ id?: string;
1775
+ tender?: string;
1776
+ total?: number;
1777
+ type?: string;
1771
1778
  }
1772
- export interface ConsumerModifierRequestMeta {
1773
- sizing?: ConsumerModifierSizingInner[];
1779
+ export interface ConsumerCreditCard {
1780
+ card_type?: string;
1781
+ last4?: string;
1782
+ total?: number;
1783
+ type?: string;
1774
1784
  }
1775
- export interface ConsumerPrice {
1776
- amount?: number;
1785
+ export interface ConsumerDigitalWalletPay {
1786
+ wallet_type?: string;
1787
+ total: number;
1788
+ type: string;
1777
1789
  }
1778
- export interface ConsumerModifierRequest {
1790
+ export interface ConsumerMealSwipes {
1779
1791
  id?: string;
1780
- label?: ConsumerLabel;
1781
- _index?: string;
1782
- quantity?: number;
1783
- amount_off_exclusions?: Record<string, any>[];
1784
- meta?: ConsumerModifierRequestMeta;
1785
- is_selected?: boolean;
1786
- parent_label?: ConsumerLabel;
1787
- price?: ConsumerPrice;
1792
+ tender?: string;
1793
+ tender_type?: string;
1794
+ tender_name?: string;
1795
+ swipes?: number;
1796
+ rate?: number;
1797
+ total?: number;
1798
+ type?: string;
1788
1799
  }
1789
- export interface ConsumerModifierGroupRequest {
1790
- label?: ConsumerLabel;
1800
+ export interface ConsumerMealExchange {
1791
1801
  id?: string;
1792
- items?: ConsumerModifierRequest[];
1793
- }
1794
- export interface ConsumerItemRequestMeta {
1795
- brand?: string;
1796
- brand_label?: ConsumerLabel;
1797
- menu?: string;
1798
- barcodes?: string[];
1799
- plu?: string;
1800
- }
1801
- export interface ConsumerItemRequest {
1802
- id: string;
1803
- quantity: number;
1804
- quantity_by_weight?: {
1805
- unit?: string;
1806
- value?: number;
1807
- };
1808
- options?: ConsumerModifierGroupRequest[];
1809
- _index?: string;
1810
- special_instructions?: string;
1811
- meta?: ConsumerItemRequestMeta;
1812
- amount_off_exclusions?: Record<string, any>[];
1802
+ tender?: string;
1803
+ type?: string;
1813
1804
  }
1814
- export interface PutConsumerShoppingCartItemsRequest {
1815
- items?: ConsumerItemRequest[];
1805
+ export interface PutConsumerShoppingCartPaymentRequestDto {
1806
+ email?: string;
1807
+ mealplan?: ConsumerMealplan;
1808
+ credit_card?: ConsumerCreditCard;
1809
+ digital_wallet_pay?: ConsumerDigitalWalletPay;
1810
+ meal_swipes?: ConsumerMealSwipes;
1811
+ meal_exchange?: ConsumerMealExchange;
1812
+ badge_pay?: ConsumerCashlessTender;
1813
+ voucher?: ConsumerCashlessTender;
1814
+ coupon_voucher?: ConsumerCashlessTender;
1815
+ stipend?: ConsumerCashlessTender;
1816
1816
  }
1817
1817
  export interface PutConsumerShoppingCartResponse {
1818
1818
  id?: string;
@@ -1867,6 +1867,60 @@ export interface PutConsumerShoppingCartResponse {
1867
1867
  };
1868
1868
  incentives?: ConsumerIncentives;
1869
1869
  }
1870
+ export interface ConsumerLabel {
1871
+ en?: string;
1872
+ fr?: string;
1873
+ }
1874
+ export interface ConsumerModifierSizingInner {
1875
+ name?: string;
1876
+ price?: number;
1877
+ posid?: string;
1878
+ }
1879
+ export interface ConsumerModifierRequestMeta {
1880
+ sizing?: ConsumerModifierSizingInner[];
1881
+ }
1882
+ export interface ConsumerPrice {
1883
+ amount?: number;
1884
+ }
1885
+ export interface ConsumerModifierRequest {
1886
+ id?: string;
1887
+ label?: ConsumerLabel;
1888
+ _index?: string;
1889
+ quantity?: number;
1890
+ amount_off_exclusions?: Record<string, any>[];
1891
+ meta?: ConsumerModifierRequestMeta;
1892
+ is_selected?: boolean;
1893
+ parent_label?: ConsumerLabel;
1894
+ price?: ConsumerPrice;
1895
+ }
1896
+ export interface ConsumerModifierGroupRequest {
1897
+ label?: ConsumerLabel;
1898
+ id?: string;
1899
+ items?: ConsumerModifierRequest[];
1900
+ }
1901
+ export interface ConsumerItemRequestMeta {
1902
+ brand?: string;
1903
+ brand_label?: ConsumerLabel;
1904
+ menu?: string;
1905
+ barcodes?: string[];
1906
+ plu?: string;
1907
+ }
1908
+ export interface ConsumerItemRequest {
1909
+ id: string;
1910
+ quantity: number;
1911
+ quantity_by_weight?: {
1912
+ unit?: string;
1913
+ value?: number;
1914
+ };
1915
+ options?: ConsumerModifierGroupRequest[];
1916
+ _index?: string;
1917
+ special_instructions?: string;
1918
+ meta?: ConsumerItemRequestMeta;
1919
+ amount_off_exclusions?: Record<string, any>[];
1920
+ }
1921
+ export interface PutConsumerShoppingCartItemsRequest {
1922
+ items?: ConsumerItemRequest[];
1923
+ }
1870
1924
  export interface PostConsumerRecommendedRequest {
1871
1925
  excludedItems: string[];
1872
1926
  }
@@ -2139,50 +2193,6 @@ export interface ConsumerPutMealplanBody {
2139
2193
  export interface ConsumerPutMealplanResponse {
2140
2194
  tenders?: ConsumerTender[];
2141
2195
  }
2142
- export interface ConsumerMealplan {
2143
- id?: string;
2144
- tender?: string;
2145
- total?: number;
2146
- type?: string;
2147
- }
2148
- export interface ConsumerCreditCard {
2149
- card_type?: string;
2150
- last4?: string;
2151
- total?: number;
2152
- type?: string;
2153
- }
2154
- export interface ConsumerDigitalWalletPay {
2155
- wallet_type?: string;
2156
- total: number;
2157
- type: string;
2158
- }
2159
- export interface ConsumerMealSwipes {
2160
- id?: string;
2161
- tender?: string;
2162
- tender_type?: string;
2163
- tender_name?: string;
2164
- swipes?: number;
2165
- rate?: number;
2166
- total?: number;
2167
- type?: string;
2168
- }
2169
- export interface ConsumerMealExchange {
2170
- id?: string;
2171
- tender?: string;
2172
- type?: string;
2173
- }
2174
- export interface PutConsumerShoppingCartPaymentRequestDto {
2175
- email?: string;
2176
- mealplan?: ConsumerMealplan;
2177
- credit_card?: ConsumerCreditCard;
2178
- digital_wallet_pay?: ConsumerDigitalWalletPay;
2179
- meal_swipes?: ConsumerMealSwipes;
2180
- meal_exchange?: ConsumerMealExchange;
2181
- badge_pay?: ConsumerCashlessTender;
2182
- voucher?: ConsumerCashlessTender;
2183
- coupon_voucher?: ConsumerCashlessTender;
2184
- stipend?: ConsumerCashlessTender;
2185
- }
2186
2196
  export interface PutConsumerShoppingCartPromoRequestDto {
2187
2197
  code?: string;
2188
2198
  email?: string;
@@ -2561,6 +2571,29 @@ export interface PostExternalExchangeLoginCodeResponseDTO {
2561
2571
  access: AccessTokenPartDTO;
2562
2572
  profile: ExchangeProfileDTO;
2563
2573
  }
2574
+ export interface GetConsumerLocationResponse {
2575
+ id: string;
2576
+ date?: {
2577
+ created?: string;
2578
+ modified?: string;
2579
+ };
2580
+ name: string;
2581
+ label?: {
2582
+ en?: string;
2583
+ fr?: string;
2584
+ };
2585
+ distance?: number;
2586
+ meta?: Record<string, any>;
2587
+ style?: {
2588
+ logo?: string | null;
2589
+ main_logo?: string | null;
2590
+ alt_logo?: string | null;
2591
+ };
2592
+ timezone?: string;
2593
+ status?: Record<string, any>;
2594
+ locations?: ConsumerLocation[];
2595
+ address?: ConsumerAddress;
2596
+ }
2564
2597
  export type HealthCheckControllerExecuteResponse = {};
2565
2598
  export interface GetPaymentListByBrandQuery {
2566
2599
  brandID?: string;
@@ -2766,6 +2799,11 @@ export interface PatchConsumerShoppingcartPath {
2766
2799
  }
2767
2800
  export type PatchConsumerShoppingcartBody = PatchConsumerShoppingCartRequest;
2768
2801
  export type PatchConsumerShoppingcartResponse = PatchConsumerShoppingCartResponse;
2802
+ export interface PutConsumerShoppingcartPaymentPath {
2803
+ id: string;
2804
+ }
2805
+ export type PutConsumerShoppingcartPaymentBody = PutConsumerShoppingCartPaymentRequestDto;
2806
+ export type PutConsumerShoppingcartPaymentResponse = PutConsumerShoppingCartResponse;
2769
2807
  export interface PostConsumerShoppingcartRecommendedItemsPath {
2770
2808
  id: string;
2771
2809
  }
@@ -2842,11 +2880,6 @@ export interface GetConsumerConfigPublicPath {
2842
2880
  id: string;
2843
2881
  }
2844
2882
  export type GetConsumerConfigPublicResponse$0 = GetConsumerConfigPublicResponse;
2845
- export interface PutConsumerShoppingcartPaymentPath {
2846
- id: string;
2847
- }
2848
- export type PutConsumerShoppingcartPaymentBody = PutConsumerShoppingCartPaymentRequestDto;
2849
- export type PutConsumerShoppingcartPaymentResponse = PutConsumerShoppingCartResponse;
2850
2883
  export interface PutConsumerShoppingcartPromoPath {
2851
2884
  id: string;
2852
2885
  }
@@ -2923,4 +2956,14 @@ export interface GetConsumerUserMealplanBarcodePath {
2923
2956
  locationId: string;
2924
2957
  }
2925
2958
  export type GetConsumerUserMealplanBarcodeResponse = {};
2959
+ export interface GetConsumerLocationPath {
2960
+ id: string;
2961
+ }
2962
+ export interface GetConsumerLocationQuery {
2963
+ show_disabled_marketplace?: boolean;
2964
+ include_brands_config?: boolean;
2965
+ extended?: boolean;
2966
+ active_cafes?: string[];
2967
+ }
2968
+ export type GetConsumerLocationResponse$0 = GetConsumerLocationResponse;
2926
2969
  //# sourceMappingURL=consumer.d.ts.map