@compassdigital/sdk.typescript 4.620.0 → 4.622.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.
@@ -160,6 +160,7 @@ export interface OrderDetails {
160
160
  order_type?: string;
161
161
  duration?: string;
162
162
  destination?: string;
163
+ receiptEmail?: string;
163
164
  }
164
165
  export interface OrderMonetaryValue {
165
166
  amount?: number;
@@ -181,6 +182,10 @@ export interface OrderCashlessPayment {
181
182
  total?: number;
182
183
  name?: string;
183
184
  }
185
+ export interface OrderPOSPayment {
186
+ type?: string;
187
+ transaction?: Record<string, any>;
188
+ }
184
189
  export interface OrderPayment {
185
190
  token?: string;
186
191
  credit_card?: OrderCreditCard;
@@ -189,6 +194,7 @@ export interface OrderPayment {
189
194
  stipend?: OrderCashlessPayment;
190
195
  voucher?: OrderCashlessPayment;
191
196
  coupon_voucher?: OrderCashlessPayment;
197
+ pos?: OrderPOSPayment;
192
198
  }
193
199
  export interface OrderMealplan {
194
200
  id?: string;
@@ -238,8 +244,14 @@ export interface OrderItemWithIssue {
238
244
  meta?: Record<string, any>;
239
245
  options?: OrderedItemOptionGroup[];
240
246
  }
247
+ export interface OrderNoRefundMeta {
248
+ reason?: string;
249
+ no_refund_date?: string;
250
+ processed_by?: string;
251
+ }
241
252
  export interface OrderIssueMeta {
242
253
  created_at?: string;
254
+ no_refund?: OrderNoRefundMeta;
243
255
  }
244
256
  export interface OrderIssue {
245
257
  id?: string;
@@ -247,6 +259,7 @@ export interface OrderIssue {
247
259
  reason?: string;
248
260
  meta?: OrderIssueMeta;
249
261
  type?: string;
262
+ item?: Record<string, any>;
250
263
  }
251
264
  export interface ShoppingcartSalePrice {
252
265
  active?: boolean;
@@ -600,6 +613,32 @@ export interface CustomerOrder {
600
613
  export interface GetCustomerOrdersResponseDTO {
601
614
  orders: CustomerOrder[];
602
615
  }
616
+ export interface CustomerOrderV2 {
617
+ meta?: OrderMeta;
618
+ id?: string;
619
+ reorder_eligibility?: string;
620
+ location_brand?: string;
621
+ location?: string;
622
+ customer?: string;
623
+ date?: OrderDate;
624
+ details?: OrderDetails;
625
+ pickup?: string;
626
+ pickup_name?: string;
627
+ requested_date?: string;
628
+ refunds?: OrderRefundItem[];
629
+ pickup_id?: string;
630
+ payment?: OrderPayment;
631
+ mealplan?: OrderMealplan;
632
+ meal_swipes?: OrderMealSwipes;
633
+ is?: OrderIs;
634
+ issue?: OrderIssue;
635
+ past_issues?: OrderIssue[];
636
+ shoppingcart?: string;
637
+ runner?: string;
638
+ }
639
+ export interface GetCustomerOrdersV2ResponseDTO {
640
+ orders: CustomerOrderV2[];
641
+ }
603
642
  export interface GooglePayToken {
604
643
  signature?: string;
605
644
  protocolVersion?: string;
@@ -631,12 +670,14 @@ export interface CreateOrderMeta {
631
670
  export interface CreateOrderDetails {
632
671
  name?: string;
633
672
  contact_number?: string;
673
+ country_code?: string;
634
674
  order_type?: string;
635
675
  duration?: string;
636
676
  destination?: string;
637
677
  instructions?: string;
638
678
  }
639
679
  export interface PostOrderBodyDto {
680
+ id?: string;
640
681
  location_brand?: string;
641
682
  location?: string;
642
683
  shoppingcart?: string;
@@ -650,6 +691,38 @@ export interface PostOrderBodyDto {
650
691
  requested_date?: string;
651
692
  details?: CreateOrderDetails;
652
693
  }
694
+ export interface OrderDiscountEffect {
695
+ type?: string;
696
+ amount_off?: number;
697
+ percent_off?: number;
698
+ }
699
+ export interface OrderDiscountItem {
700
+ id?: string;
701
+ date?: string;
702
+ result?: boolean;
703
+ discount?: OrderDiscountEffect;
704
+ type?: string;
705
+ original_redemption?: string;
706
+ app?: string;
707
+ name?: string;
708
+ resource_id?: string;
709
+ }
710
+ export interface OrderDiscountsRefundItem {
711
+ source_id?: string;
712
+ quantity?: number;
713
+ price?: number;
714
+ }
715
+ export interface OrderDiscountsRefund {
716
+ app?: string;
717
+ date?: string;
718
+ order_created_at?: string;
719
+ order_id?: string;
720
+ order_items?: OrderDiscountsRefundItem[];
721
+ order_total?: number;
722
+ reason?: string;
723
+ redemption_id?: string;
724
+ result?: boolean;
725
+ }
653
726
  export interface PlacedOrderMeta {
654
727
  checkin_uuid?: string;
655
728
  source?: 'web' | 'mobile' | 'centric_hub';
@@ -662,6 +735,14 @@ export interface PlacedOrderMeta {
662
735
  type_of_kds?: string;
663
736
  cancel_eligible?: boolean;
664
737
  refunds?: OrderRefundTransaction[];
738
+ pickup_instruction?: MultiLanguageLabel;
739
+ market_place_label?: MultiLanguageLabel;
740
+ market_place_description?: MultiLanguageLabel;
741
+ apex_code?: string;
742
+ apex_qr?: string;
743
+ apex_codes?: ApexCodes;
744
+ discounts?: OrderDiscountItem[];
745
+ discounts_refund?: OrderDiscountsRefund;
665
746
  }
666
747
  export interface PostOrderResponseDTO {
667
748
  id?: string;
@@ -1363,6 +1444,33 @@ export interface GetMenuItemNutritionValueConsumer {
1363
1444
  export interface GetMenuItemNutritionConsumer {
1364
1445
  calories?: GetMenuItemNutritionValueConsumer;
1365
1446
  }
1447
+ export interface Certified {
1448
+ vegan?: boolean;
1449
+ vegetarian?: boolean;
1450
+ seafood_watch?: boolean;
1451
+ wellbeing?: boolean;
1452
+ farm_to_fork?: boolean;
1453
+ in_balance?: boolean;
1454
+ organic?: boolean;
1455
+ no_gluten_ingredients?: boolean;
1456
+ halal?: boolean;
1457
+ kosher?: boolean;
1458
+ humane?: boolean;
1459
+ locally_crafted?: boolean;
1460
+ nuts?: boolean;
1461
+ oracle_garden_grown?: boolean;
1462
+ oracle_oyes?: boolean;
1463
+ peanut_free?: boolean;
1464
+ tree_nut_free?: boolean;
1465
+ wheat_free?: boolean;
1466
+ non_gmo?: boolean;
1467
+ milk_free?: boolean;
1468
+ egg_free?: boolean;
1469
+ soy_free?: boolean;
1470
+ fair_trade?: boolean;
1471
+ rainforest_alliance?: boolean;
1472
+ salt_free?: boolean;
1473
+ }
1366
1474
  export interface GetMenuOptionNutritionConsumer {
1367
1475
  calories?: GetMenuItemNutritionValueConsumer;
1368
1476
  total_fat?: GetMenuItemNutritionValueConsumer;
@@ -1384,14 +1492,6 @@ export interface GetMenuItemOptionSizingConsumer {
1384
1492
  export interface GetMenuItemOptionMetaConsumer {
1385
1493
  sizing?: GetMenuItemOptionSizingConsumer[];
1386
1494
  }
1387
- export interface GetMenuItemImageSizesConsumer {
1388
- original?: string;
1389
- thumbnail_80_80?: string;
1390
- }
1391
- export interface GetMenuItemImageConsumer {
1392
- src?: string;
1393
- sizes?: GetMenuItemImageSizesConsumer;
1394
- }
1395
1495
  export interface GetMenuItemOptionConsumer {
1396
1496
  id?: string;
1397
1497
  label?: GetMenuItemLabelConsumer;
@@ -1422,6 +1522,14 @@ export interface GetMenuItemMetaConsumer {
1422
1522
  barcodes?: string[];
1423
1523
  recipe?: GetMenuItemRecipeConsumer;
1424
1524
  }
1525
+ export interface GetMenuItemImageSizesConsumer {
1526
+ original?: string;
1527
+ thumbnail_80_80?: string;
1528
+ }
1529
+ export interface GetMenuItemImageConsumer {
1530
+ src?: string;
1531
+ sizes?: GetMenuItemImageSizesConsumer;
1532
+ }
1425
1533
  export interface GetMenuItemIsConsumer {
1426
1534
  out_of_stock?: boolean;
1427
1535
  }
@@ -1457,94 +1565,368 @@ export interface GetMenuResponseConsumer {
1457
1565
  groups?: GetMenuGroupConsumer[];
1458
1566
  parent_id?: string;
1459
1567
  }
1460
- export interface GetConsumerMenuItemsResponse {
1461
- meta?: Record<string, any>;
1462
- items: ConsumerItem[];
1463
- }
1464
- export interface ConsumerTimeslot {
1465
- id?: number;
1466
- brand_id?: string;
1467
- start_time?: string;
1468
- duration?: string;
1469
- is_available?: boolean;
1470
- number_orders?: number;
1471
- delivery_destinations?: string[];
1568
+ export interface GetMenuLabelConsumerV2 {
1569
+ en?: string;
1472
1570
  }
1473
- export interface PostConsumerLocationMarketplaceTimeslotsResponse {
1474
- timeslots?: ConsumerTimeslot[];
1571
+ export interface GetMenuGroupLabelConsumerV2 {
1572
+ en?: string;
1573
+ fr?: string;
1475
1574
  }
1476
- export interface PostConsumerLocationMarketplaceTimeslotsDeliveryResponse {
1477
- timeslots?: ConsumerTimeslot[];
1575
+ export interface GetMenuItemLabelConsumerV2 {
1576
+ en?: string;
1478
1577
  }
1479
- export interface ConsumerDeleteUserResponse {
1480
- success: boolean;
1578
+ export interface GetMenuItemPriceConsumerV2 {
1579
+ amount?: number;
1580
+ currency?: string;
1581
+ total_price?: number;
1582
+ discount?: number;
1481
1583
  }
1482
- export interface ConsumerDeleteUserLogoutResponse {
1483
- success: boolean;
1584
+ export interface GetMenuItemNutritionValueConsumerV2 {
1585
+ amount?: number;
1586
+ unit?: string;
1587
+ display?: string;
1484
1588
  }
1485
- export interface PostConsumerUserChangePasswordRequest {
1486
- password: string;
1487
- new_password: string;
1589
+ export interface GetMenuItemNutritionConsumerV2 {
1590
+ kcal?: number;
1591
+ calories?: GetMenuItemNutritionValueConsumerV2;
1592
+ serving_size?: GetMenuItemNutritionValueConsumerV2;
1593
+ total_fat?: GetMenuItemNutritionValueConsumerV2;
1594
+ saturated_fat?: GetMenuItemNutritionValueConsumerV2;
1595
+ trans_fat?: GetMenuItemNutritionValueConsumerV2;
1596
+ cholesterol?: GetMenuItemNutritionValueConsumerV2;
1597
+ sodium?: GetMenuItemNutritionValueConsumerV2;
1598
+ total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
1599
+ dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
1600
+ sugars?: GetMenuItemNutritionValueConsumerV2;
1601
+ total_sugars?: GetMenuItemNutritionValueConsumerV2;
1602
+ protein?: GetMenuItemNutritionValueConsumerV2;
1603
+ well_being?: GetMenuItemNutritionValueConsumerV2;
1488
1604
  }
1489
- export interface ConsumerUserName {
1490
- first: string;
1491
- last: string;
1605
+ export interface GetMenuItemCertifiedConsumerV2 {
1606
+ vegan?: boolean;
1607
+ vegetarian?: boolean;
1608
+ seafood_watch?: boolean;
1609
+ wellbeing?: boolean;
1610
+ farm_to_fork?: boolean;
1611
+ in_balance?: boolean;
1612
+ organic?: boolean;
1613
+ no_gluten_ingredients?: boolean;
1614
+ halal?: boolean;
1615
+ kosher?: boolean;
1616
+ humane?: boolean;
1617
+ locally_crafted?: boolean;
1618
+ nuts?: boolean;
1619
+ oracle_garden_grown?: boolean;
1620
+ oracle_oyes?: boolean;
1621
+ peanut_free?: boolean;
1622
+ tree_nut_free?: boolean;
1623
+ wheat_free?: boolean;
1624
+ non_gmo?: boolean;
1625
+ milk_free?: boolean;
1626
+ egg_free?: boolean;
1627
+ soy_free?: boolean;
1628
+ fair_trade?: boolean;
1629
+ rainforest_alliance?: boolean;
1630
+ salt_free?: boolean;
1492
1631
  }
1493
- export interface ConsumerUserDate {
1494
- created: string;
1495
- modified: string;
1632
+ export interface GetMenuOptionNutritionConsumerV2 {
1633
+ calories?: GetMenuItemNutritionValueConsumerV2;
1634
+ total_fat?: GetMenuItemNutritionValueConsumerV2;
1635
+ saturated_fat?: GetMenuItemNutritionValueConsumerV2;
1636
+ total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
1637
+ total_sugars?: GetMenuItemNutritionValueConsumerV2;
1638
+ protein?: GetMenuItemNutritionValueConsumerV2;
1639
+ dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
1640
+ sodium?: GetMenuItemNutritionValueConsumerV2;
1641
+ trans_fat?: GetMenuItemNutritionValueConsumerV2;
1642
+ cholesterol?: GetMenuItemNutritionValueConsumerV2;
1643
+ added_sugars?: GetMenuItemNutritionValueConsumerV2;
1496
1644
  }
1497
- export interface ConsumerCashlessLog {
1498
- added?: string;
1499
- deleted?: string;
1645
+ export interface GetMenuItemOptionSizingConsumerV2 {
1646
+ name?: string;
1647
+ posid?: string;
1648
+ price?: number;
1500
1649
  }
1501
- export interface ConsumerUserMeta {
1502
- marketing_opt_in?: boolean;
1503
- marketing_opt_in_date?: string;
1504
- marketing_opt_in_source?: 'App' | 'Web';
1505
- order_status_notification?: {
1506
- send_emails?: boolean;
1507
- send_emails_date_updated?: string;
1508
- };
1509
- mealplan_added_date?: string;
1510
- login_limit?: {
1511
- login_attempts?: number;
1512
- last_attempt_date?: string;
1513
- };
1514
- password_verification?: {
1515
- attempts?: number;
1516
- first_attempted?: string;
1517
- };
1518
- phone_verification?: {
1519
- verification_code?: string;
1520
- date_generated?: number;
1521
- failed_attempts?: number;
1522
- consecutive_failed_attempts?: number;
1523
- };
1524
- cashless?: {
1525
- stipend?: ConsumerCashlessLog;
1526
- voucher?: ConsumerCashlessLog;
1527
- badge_pay?: ConsumerCashlessLog;
1528
- coupon_voucher?: ConsumerCashlessLog;
1650
+ export interface GetMenuItemOptionMetaConsumerV2 {
1651
+ sizing?: GetMenuItemOptionSizingConsumerV2[];
1652
+ sort_number?: number;
1653
+ menu_sort_number?: number;
1654
+ unique_id?: number;
1655
+ tax?: {
1656
+ tax_tag_code?: string;
1529
1657
  };
1530
- last_location?: string;
1531
1658
  }
1532
- export interface ConsumerUserIs {
1533
- disabled?: boolean;
1534
- locked_out?: boolean;
1535
- verified?: boolean;
1536
- phone_verified?: boolean;
1537
- deleted?: boolean;
1538
- placeholder?: boolean;
1659
+ export interface GetMenuItemImageSizesConsumerV2 {
1660
+ original?: string;
1661
+ thumbnail_80_80?: string;
1539
1662
  }
1540
- export interface ConsumerScopes {
1541
- scopes?: string[];
1663
+ export interface GetMenuItemImageConsumerV2 {
1664
+ src?: string;
1665
+ sizes?: GetMenuItemImageSizesConsumerV2;
1542
1666
  }
1543
- export interface ConsumerTemporaryPermissions {
1544
- expiry: string;
1545
- scopes: string[];
1667
+ export interface GetMenuItemOptionIsConsumerV2 {
1668
+ disabled?: boolean;
1669
+ hidden?: boolean;
1670
+ out_of_stock?: boolean;
1546
1671
  }
1547
- export interface PostConsumerUserChangePasswordResponse {
1672
+ export interface GetMenuItemReportingConsumerV2 {
1673
+ category?: {
1674
+ primary?: string;
1675
+ secondary?: string;
1676
+ };
1677
+ jde_category?: string;
1678
+ }
1679
+ export interface GetMenuItemOptionConsumerV2 {
1680
+ id?: string;
1681
+ label?: GetMenuItemLabelConsumerV2;
1682
+ name?: string;
1683
+ description?: GetMenuItemLabelConsumerV2;
1684
+ price?: GetMenuItemPriceConsumerV2;
1685
+ nutrition?: GetMenuOptionNutritionConsumerV2;
1686
+ meta?: GetMenuItemOptionMetaConsumerV2;
1687
+ image?: GetMenuItemImageConsumerV2;
1688
+ certified?: GetMenuItemCertifiedConsumerV2;
1689
+ is?: GetMenuItemOptionIsConsumerV2;
1690
+ reporting?: GetMenuItemReportingConsumerV2;
1691
+ sku?: number;
1692
+ weight?: {
1693
+ unit?: string;
1694
+ amount?: number;
1695
+ };
1696
+ line_route?: string;
1697
+ amount_off_exclusions?: string[];
1698
+ }
1699
+ export interface GetMenuItemGroupIsConsumerV2 {
1700
+ incremental?: boolean;
1701
+ }
1702
+ export interface GetMenuItemGroupMetaConsumerV2 {
1703
+ order_type?: 'selection' | 'option' | 'quantity';
1704
+ sort_number?: number;
1705
+ menu_sort_number?: number;
1706
+ surcharge_limit_value?: number;
1707
+ }
1708
+ export interface GetMenuItemOptionsGroupConsumerV2 {
1709
+ id?: string;
1710
+ label?: GetMenuItemLabelConsumerV2;
1711
+ items?: GetMenuItemOptionConsumerV2[];
1712
+ min?: number;
1713
+ max?: number;
1714
+ is?: GetMenuItemGroupIsConsumerV2;
1715
+ meta?: GetMenuItemGroupMetaConsumerV2;
1716
+ }
1717
+ export interface GetMenuItemRecipeConsumerV2 {
1718
+ smart_tags?: string[];
1719
+ allergen_tags?: string[];
1720
+ mrn?: string;
1721
+ unit_id?: string;
1722
+ portion_quantity?: number;
1723
+ portion_unit_name?: string;
1724
+ grams?: number;
1725
+ cost?: number;
1726
+ ingredients?: string[];
1727
+ }
1728
+ export interface GetMenuItemMetaConsumerV2 {
1729
+ barcodes?: string[];
1730
+ recipe?: GetMenuItemRecipeConsumerV2;
1731
+ superplate?: {
1732
+ type_id?: number;
1733
+ type?: string;
1734
+ };
1735
+ sort_number?: number;
1736
+ menu_sort_number?: number;
1737
+ unique_id?: number;
1738
+ tax?: {
1739
+ tax_tag_code?: string;
1740
+ tax_jwo_code?: string;
1741
+ tax_rate?: number;
1742
+ tax_amount?: number;
1743
+ };
1744
+ }
1745
+ export interface GetMenuItemIsConsumerV2 {
1746
+ disabled?: boolean;
1747
+ hidden?: boolean;
1748
+ meq_eligible?: boolean;
1749
+ out_of_stock?: boolean;
1750
+ deleted?: boolean;
1751
+ featured?: boolean;
1752
+ }
1753
+ export interface GetMenuItemMenuLabelConsumerV2 {
1754
+ id?: string;
1755
+ text?: string;
1756
+ s3_link?: string;
1757
+ }
1758
+ export interface GetMenuItemConsumerV2 {
1759
+ id?: string;
1760
+ label?: GetMenuItemLabelConsumerV2;
1761
+ name?: string;
1762
+ description?: GetMenuItemLabelConsumerV2;
1763
+ price?: GetMenuItemPriceConsumerV2;
1764
+ meal_value?: number;
1765
+ sale_price?: GetMenuItemPriceConsumerV2;
1766
+ unit?: number;
1767
+ sku?: number;
1768
+ item_number?: number;
1769
+ parent_id?: string;
1770
+ location?: string;
1771
+ line_route?: string;
1772
+ weight?: {
1773
+ unit?: string;
1774
+ amount?: number;
1775
+ };
1776
+ category?: {
1777
+ en?: string;
1778
+ };
1779
+ ingredients?: Record<string, any>[];
1780
+ amount_off_exclusions?: string[];
1781
+ nutrition?: GetMenuItemNutritionConsumerV2;
1782
+ certified?: GetMenuItemCertifiedConsumerV2;
1783
+ options?: GetMenuItemOptionsGroupConsumerV2[];
1784
+ meta?: GetMenuItemMetaConsumerV2;
1785
+ image?: GetMenuItemImageConsumerV2;
1786
+ is?: GetMenuItemIsConsumerV2;
1787
+ menu_labels?: GetMenuItemMenuLabelConsumerV2[];
1788
+ reporting?: GetMenuItemReportingConsumerV2;
1789
+ }
1790
+ export interface GetMenuGroupConsumerV2 {
1791
+ id?: string;
1792
+ label?: GetMenuGroupLabelConsumerV2;
1793
+ items?: GetMenuItemConsumerV2[];
1794
+ }
1795
+ export interface GetMenuDateConsumerV2 {
1796
+ created?: string;
1797
+ modified?: string;
1798
+ published?: string;
1799
+ }
1800
+ export interface GetMenuIsConsumerV2 {
1801
+ disabled?: boolean;
1802
+ hidden?: boolean;
1803
+ linked?: boolean;
1804
+ promo_exemptions_enabled?: boolean;
1805
+ plu_enabled?: boolean;
1806
+ item_images_enabled?: boolean;
1807
+ item_showcase_enabled?: boolean;
1808
+ item_desc_edit_enabled?: boolean;
1809
+ calories_edit_enabled?: boolean;
1810
+ item_label_edit_enabled?: boolean;
1811
+ frictionless?: boolean;
1812
+ category_images_enabled?: boolean;
1813
+ }
1814
+ export interface GetMenuMetaConsumerV2 {
1815
+ locked_by_user?: string;
1816
+ last_modified_user?: string;
1817
+ centricos?: boolean;
1818
+ version?: number;
1819
+ revision?: string;
1820
+ }
1821
+ export interface GetMenuImageSizesConsumerV2 {
1822
+ original?: string;
1823
+ thumbnail_80_80?: string;
1824
+ }
1825
+ export interface GetMenuImageConsumerV2 {
1826
+ src?: string;
1827
+ sizes?: GetMenuImageSizesConsumerV2;
1828
+ }
1829
+ export interface GetMenuResponseConsumerV2 {
1830
+ id: string;
1831
+ label?: GetMenuLabelConsumerV2;
1832
+ groups?: GetMenuGroupConsumerV2[];
1833
+ parent_id?: string;
1834
+ location_brand?: string;
1835
+ company?: string;
1836
+ sector?: string;
1837
+ date?: GetMenuDateConsumerV2;
1838
+ is?: GetMenuIsConsumerV2;
1839
+ meta?: GetMenuMetaConsumerV2;
1840
+ image?: GetMenuImageConsumerV2;
1841
+ }
1842
+ export interface GetConsumerMenuItemsResponse {
1843
+ meta?: Record<string, any>;
1844
+ items: ConsumerItem[];
1845
+ }
1846
+ export interface ConsumerTimeslot {
1847
+ id?: number;
1848
+ brand_id?: string;
1849
+ start_time?: string;
1850
+ duration?: string;
1851
+ is_available?: boolean;
1852
+ number_orders?: number;
1853
+ delivery_destinations?: string[];
1854
+ }
1855
+ export interface PostConsumerLocationMarketplaceTimeslotsResponse {
1856
+ timeslots?: ConsumerTimeslot[];
1857
+ }
1858
+ export interface PostConsumerLocationMarketplaceTimeslotsDeliveryResponse {
1859
+ timeslots?: ConsumerTimeslot[];
1860
+ }
1861
+ export interface ConsumerDeleteUserResponse {
1862
+ success: boolean;
1863
+ }
1864
+ export interface ConsumerDeleteUserLogoutResponse {
1865
+ success: boolean;
1866
+ }
1867
+ export interface PostConsumerUserChangePasswordRequest {
1868
+ password: string;
1869
+ new_password: string;
1870
+ }
1871
+ export interface ConsumerUserName {
1872
+ first: string;
1873
+ last: string;
1874
+ }
1875
+ export interface ConsumerUserDate {
1876
+ created: string;
1877
+ modified: string;
1878
+ }
1879
+ export interface ConsumerCashlessLog {
1880
+ added?: string;
1881
+ deleted?: string;
1882
+ }
1883
+ export interface ConsumerUserMeta {
1884
+ marketing_opt_in?: boolean;
1885
+ marketing_opt_in_date?: string;
1886
+ marketing_opt_in_source?: 'App' | 'Web';
1887
+ order_status_notification?: {
1888
+ send_emails?: boolean;
1889
+ send_emails_date_updated?: string;
1890
+ };
1891
+ mealplan_added_date?: string;
1892
+ login_limit?: {
1893
+ login_attempts?: number;
1894
+ last_attempt_date?: string;
1895
+ };
1896
+ password_verification?: {
1897
+ attempts?: number;
1898
+ first_attempted?: string;
1899
+ };
1900
+ phone_verification?: {
1901
+ verification_code?: string;
1902
+ date_generated?: number;
1903
+ failed_attempts?: number;
1904
+ consecutive_failed_attempts?: number;
1905
+ };
1906
+ cashless?: {
1907
+ stipend?: ConsumerCashlessLog;
1908
+ voucher?: ConsumerCashlessLog;
1909
+ badge_pay?: ConsumerCashlessLog;
1910
+ coupon_voucher?: ConsumerCashlessLog;
1911
+ };
1912
+ last_location?: string;
1913
+ }
1914
+ export interface ConsumerUserIs {
1915
+ disabled?: boolean;
1916
+ locked_out?: boolean;
1917
+ verified?: boolean;
1918
+ phone_verified?: boolean;
1919
+ deleted?: boolean;
1920
+ placeholder?: boolean;
1921
+ }
1922
+ export interface ConsumerScopes {
1923
+ scopes?: string[];
1924
+ }
1925
+ export interface ConsumerTemporaryPermissions {
1926
+ expiry: string;
1927
+ scopes: string[];
1928
+ }
1929
+ export interface PostConsumerUserChangePasswordResponse {
1548
1930
  id: string;
1549
1931
  email: string;
1550
1932
  name?: ConsumerUserName;
@@ -1652,9 +2034,8 @@ export interface GetConsumerUserResponse {
1652
2034
  export interface ConsumerCashlessTender {
1653
2035
  balance?: number;
1654
2036
  id?: string;
1655
- name?: string;
1656
- total?: number;
1657
2037
  tender?: string;
2038
+ name?: string;
1658
2039
  type?: 'badge_pay' | 'stipend' | 'voucher' | 'coupon_voucher';
1659
2040
  }
1660
2041
  export interface ConsumerGetPaymentCashlessResponse {
@@ -1903,8 +2284,8 @@ export interface ConsumerModifierRequest {
1903
2284
  quantity?: number;
1904
2285
  amount_off_exclusions?: Record<string, any>[];
1905
2286
  meta?: ConsumerModifierRequestMeta;
1906
- is_selected?: boolean;
1907
- parent_label?: ConsumerLabel;
2287
+ isSelected?: boolean;
2288
+ parentLabel?: ConsumerLabel;
1908
2289
  price?: ConsumerPrice;
1909
2290
  }
1910
2291
  export interface ConsumerModifierGroupRequest {
@@ -2027,6 +2408,7 @@ export interface PostConsumerShoppingCartResponse {
2027
2408
  }
2028
2409
  export interface PostConsumerPromoValidateRequest {
2029
2410
  code?: string;
2411
+ customer_id?: string;
2030
2412
  email?: string;
2031
2413
  app?: string;
2032
2414
  realm?: string;
@@ -2047,19 +2429,54 @@ export interface ConsumerAppliedDiscount {
2047
2429
  percent_off?: number;
2048
2430
  amount_limit?: number;
2049
2431
  }
2050
- export interface ConsumerVoucher {
2051
- provider?: Record<string, any>;
2432
+ export interface RedeemableResult {
2433
+ discount?: ConsumerAppliedDiscount;
2434
+ }
2435
+ export interface RedeemableOrder {
2436
+ total_applied_discount_amount?: number;
2437
+ }
2438
+ export interface ConsumerRedeemable {
2439
+ status: string;
2440
+ id: string;
2441
+ object: Record<string, any>;
2442
+ result?: RedeemableResult;
2443
+ order?: RedeemableOrder;
2444
+ }
2445
+ export interface ConsumerVoucher {
2446
+ provider?: Record<string, any>;
2052
2447
  code?: string;
2053
2448
  valid?: boolean;
2054
2449
  discount?: ConsumerAppliedDiscount;
2055
2450
  app?: string;
2056
2451
  provider_data?: ShoppingcartFPValidationData;
2452
+ stacked_total?: number;
2453
+ redeemables?: ConsumerRedeemable[];
2454
+ stacked_vouchers?: ConsumerRedeemable[];
2455
+ inapplicable_redeemables?: ConsumerRedeemable[];
2456
+ }
2457
+ export interface PromoRedeemShoppingcart {
2458
+ id?: string;
2459
+ date_created?: string;
2460
+ items?: Record<string, any>[];
2461
+ }
2462
+ export interface PromoRedeemTotals {
2463
+ amount?: number;
2464
+ discount?: number;
2465
+ currency?: string;
2057
2466
  }
2058
2467
  export interface PostConsumerPromoRedeemRequest {
2059
2468
  code: string;
2060
- email: string;
2061
- app: string;
2469
+ email?: string;
2470
+ app?: string;
2471
+ realm?: string;
2062
2472
  location_brand?: string;
2473
+ customer_id?: string;
2474
+ order_id?: string;
2475
+ brand_id?: string;
2476
+ site_id?: string;
2477
+ payment_request_id?: string;
2478
+ shoppingcart?: PromoRedeemShoppingcart;
2479
+ totals?: PromoRedeemTotals;
2063
2480
  }
2064
2481
  export interface ConsumerRedemption {
2065
2482
  id?: string;
@@ -2344,9 +2761,9 @@ export interface PatchConsumerShoppingCartResponse {
2344
2761
  incentives?: ConsumerIncentives;
2345
2762
  }
2346
2763
  export interface PostConsumerShoppingCartCloneBodyRequest {
2347
- menu: string;
2348
- order_type: string;
2349
- items_to_clone: string[];
2764
+ menu?: string;
2765
+ order_type?: string;
2766
+ items_to_clone?: string[];
2350
2767
  }
2351
2768
  export interface PostCustomerRewardsBodyDTO {
2352
2769
  shoppingcartBrands?: string[];
@@ -2603,311 +3020,6 @@ export interface GetConsumerLocationResponse {
2603
3020
  locations?: ConsumerLocation[];
2604
3021
  address?: ConsumerAddress;
2605
3022
  }
2606
- export interface GetMenuItemNutritionValueConsumerV2 {
2607
- amount?: number;
2608
- unit?: string;
2609
- display?: string;
2610
- }
2611
- export interface GetMenuItemNutritionConsumerV2 {
2612
- kcal?: number;
2613
- calories?: GetMenuItemNutritionValueConsumerV2;
2614
- serving_size?: GetMenuItemNutritionValueConsumerV2;
2615
- total_fat?: GetMenuItemNutritionValueConsumerV2;
2616
- saturated_fat?: GetMenuItemNutritionValueConsumerV2;
2617
- trans_fat?: GetMenuItemNutritionValueConsumerV2;
2618
- cholesterol?: GetMenuItemNutritionValueConsumerV2;
2619
- sodium?: GetMenuItemNutritionValueConsumerV2;
2620
- total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
2621
- dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
2622
- sugars?: GetMenuItemNutritionValueConsumerV2;
2623
- total_sugars?: GetMenuItemNutritionValueConsumerV2;
2624
- protein?: GetMenuItemNutritionValueConsumerV2;
2625
- well_being?: GetMenuItemNutritionValueConsumerV2;
2626
- }
2627
- export interface GetMenuOptionNutritionConsumerV2 {
2628
- calories?: GetMenuItemNutritionValueConsumerV2;
2629
- total_fat?: GetMenuItemNutritionValueConsumerV2;
2630
- saturated_fat?: GetMenuItemNutritionValueConsumerV2;
2631
- total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
2632
- total_sugars?: GetMenuItemNutritionValueConsumerV2;
2633
- protein?: GetMenuItemNutritionValueConsumerV2;
2634
- dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
2635
- sodium?: GetMenuItemNutritionValueConsumerV2;
2636
- trans_fat?: GetMenuItemNutritionValueConsumerV2;
2637
- cholesterol?: GetMenuItemNutritionValueConsumerV2;
2638
- added_sugars?: GetMenuItemNutritionValueConsumerV2;
2639
- }
2640
- export interface GetMenuItemPriceConsumerV2 {
2641
- amount?: number;
2642
- currency?: string;
2643
- total_price?: number;
2644
- discount?: number;
2645
- }
2646
- export interface GetMenuItemImageSizesConsumerV2 {
2647
- original?: string;
2648
- thumbnail_80_80?: string;
2649
- }
2650
- export interface GetMenuItemImageConsumerV2 {
2651
- src?: string;
2652
- sizes?: GetMenuItemImageSizesConsumerV2;
2653
- }
2654
- export interface GetMenuItemCertifiedConsumerV2 {
2655
- vegan?: boolean;
2656
- vegetarian?: boolean;
2657
- seafood_watch?: boolean;
2658
- wellbeing?: boolean;
2659
- farm_to_fork?: boolean;
2660
- in_balance?: boolean;
2661
- organic?: boolean;
2662
- no_gluten_ingredients?: boolean;
2663
- halal?: boolean;
2664
- kosher?: boolean;
2665
- humane?: boolean;
2666
- locally_crafted?: boolean;
2667
- nuts?: boolean;
2668
- oracle_garden_grown?: boolean;
2669
- oracle_oyes?: boolean;
2670
- peanut_free?: boolean;
2671
- tree_nut_free?: boolean;
2672
- wheat_free?: boolean;
2673
- non_gmo?: boolean;
2674
- milk_free?: boolean;
2675
- egg_free?: boolean;
2676
- soy_free?: boolean;
2677
- fair_trade?: boolean;
2678
- rainforest_alliance?: boolean;
2679
- salt_free?: boolean;
2680
- }
2681
- export interface GetMenuItemReportingConsumerV2 {
2682
- category?: {
2683
- primary?: string;
2684
- secondary?: string;
2685
- };
2686
- jde_category?: string;
2687
- }
2688
- export interface GetMenuItemIsConsumerV2 {
2689
- disabled?: boolean;
2690
- hidden?: boolean;
2691
- meq_eligible?: boolean;
2692
- out_of_stock?: boolean;
2693
- deleted?: boolean;
2694
- featured?: boolean;
2695
- }
2696
- export interface GetMenuItemMenuLabelConsumerV2 {
2697
- id?: string;
2698
- text?: string;
2699
- s3_link?: string;
2700
- }
2701
- export interface GetMenuItemOptionMetaConsumerV2 {
2702
- sizing?: {
2703
- name?: string;
2704
- posid?: string;
2705
- price?: number;
2706
- }[];
2707
- sort_number?: number;
2708
- menu_sort_number?: number;
2709
- unique_id?: number;
2710
- tax?: {
2711
- tax_tag_code?: string;
2712
- };
2713
- }
2714
- export interface GetMenuItemOptionIsConsumerV2 {
2715
- disabled?: boolean;
2716
- hidden?: boolean;
2717
- out_of_stock?: boolean;
2718
- }
2719
- export interface GetMenuItemOptionConsumerV2 {
2720
- id?: string;
2721
- label?: {
2722
- en?: string;
2723
- };
2724
- name?: string;
2725
- description?: {
2726
- en?: string;
2727
- };
2728
- price?: GetMenuItemPriceConsumerV2;
2729
- nutrition?: GetMenuOptionNutritionConsumerV2;
2730
- meta?: GetMenuItemOptionMetaConsumerV2;
2731
- image?: GetMenuItemImageConsumerV2;
2732
- certified?: GetMenuItemCertifiedConsumerV2;
2733
- is?: GetMenuItemOptionIsConsumerV2;
2734
- reporting?: GetMenuItemReportingConsumerV2;
2735
- sku?: number;
2736
- weight?: {
2737
- unit?: string;
2738
- amount?: number;
2739
- };
2740
- line_route?: string;
2741
- amount_off_exclusions?: string[];
2742
- }
2743
- export interface GetMenuItemGroupIsConsumerV2 {
2744
- incremental?: boolean;
2745
- }
2746
- export interface GetMenuItemGroupMetaConsumerV2 {
2747
- order_type?: 'selection' | 'option' | 'quantity';
2748
- sort_number?: number;
2749
- menu_sort_number?: number;
2750
- surcharge_limit_value?: number;
2751
- }
2752
- export interface GetMenuItemOptionsGroupConsumerV2 {
2753
- id?: string;
2754
- label?: {
2755
- en?: string;
2756
- };
2757
- items?: GetMenuItemOptionConsumerV2[];
2758
- min?: number;
2759
- max?: number;
2760
- is?: GetMenuItemGroupIsConsumerV2;
2761
- meta?: GetMenuItemGroupMetaConsumerV2;
2762
- }
2763
- export interface GetMenuItemRecipeConsumerV2 {
2764
- smart_tags?: string[];
2765
- allergen_tags?: string[];
2766
- mrn?: string;
2767
- unit_id?: string;
2768
- portion_quantity?: number;
2769
- portion_unit_name?: string;
2770
- grams?: number;
2771
- cost?: number;
2772
- ingredients?: string[];
2773
- }
2774
- export interface GetMenuItemMetaConsumerV2 {
2775
- barcodes?: string[];
2776
- recipe?: GetMenuItemRecipeConsumerV2;
2777
- superplate?: {
2778
- type_id?: number;
2779
- type?: string;
2780
- };
2781
- sort_number?: number;
2782
- menu_sort_number?: number;
2783
- unique_id?: number;
2784
- tax?: {
2785
- tax_tag_code?: string;
2786
- tax_jwo_code?: string;
2787
- tax_rate?: number;
2788
- tax_amount?: number;
2789
- };
2790
- }
2791
- export interface GetMenuItemConsumerV2 {
2792
- id?: string;
2793
- label?: {
2794
- en?: string;
2795
- };
2796
- name?: string;
2797
- description?: {
2798
- en?: string;
2799
- };
2800
- price?: GetMenuItemPriceConsumerV2;
2801
- meal_value?: number;
2802
- sale_price?: GetMenuItemPriceConsumerV2;
2803
- unit?: number;
2804
- sku?: number;
2805
- item_number?: number;
2806
- parent_id?: string;
2807
- location?: string;
2808
- line_route?: string;
2809
- weight?: {
2810
- unit?: string;
2811
- amount?: number;
2812
- };
2813
- category?: {
2814
- en?: string;
2815
- };
2816
- ingredients?: Record<string, any>[];
2817
- amount_off_exclusions?: string[];
2818
- nutrition?: GetMenuItemNutritionConsumerV2;
2819
- certified?: GetMenuItemCertifiedConsumerV2;
2820
- options?: GetMenuItemOptionsGroupConsumerV2[];
2821
- meta?: GetMenuItemMetaConsumerV2;
2822
- image?: GetMenuItemImageConsumerV2;
2823
- is?: GetMenuItemIsConsumerV2;
2824
- menu_labels?: GetMenuItemMenuLabelConsumerV2[];
2825
- reporting?: GetMenuItemReportingConsumerV2;
2826
- }
2827
- export interface GetMenuGroupConsumerV2 {
2828
- id: string;
2829
- label?: {
2830
- en?: string;
2831
- fr?: string;
2832
- };
2833
- items?: GetMenuItemConsumerV2[];
2834
- }
2835
- export interface GetMenuIsConsumerV2 {
2836
- disabled?: boolean;
2837
- hidden?: boolean;
2838
- linked?: boolean;
2839
- promo_exemptions_enabled?: boolean;
2840
- plu_enabled?: boolean;
2841
- item_images_enabled?: boolean;
2842
- item_showcase_enabled?: boolean;
2843
- item_desc_edit_enabled?: boolean;
2844
- calories_edit_enabled?: boolean;
2845
- item_label_edit_enabled?: boolean;
2846
- frictionless?: boolean;
2847
- category_images_enabled?: boolean;
2848
- }
2849
- export interface GetMenuMetaConsumerV2 {
2850
- locked_by_user?: string;
2851
- last_modified_user?: string;
2852
- centricos?: boolean;
2853
- version?: number;
2854
- revision?: string;
2855
- }
2856
- export interface GetMenuDateConsumerV2 {
2857
- created?: string;
2858
- modified?: string;
2859
- published?: string;
2860
- }
2861
- export interface GetMenuImageSizesConsumerV2 {
2862
- original?: string;
2863
- thumbnail_80_80?: string;
2864
- }
2865
- export interface GetMenuImageConsumerV2 {
2866
- src?: string;
2867
- sizes?: GetMenuImageSizesConsumerV2;
2868
- }
2869
- export interface GetMenuResponseConsumerV2 {
2870
- id: string;
2871
- label?: {
2872
- en?: string;
2873
- };
2874
- groups?: GetMenuGroupConsumerV2[];
2875
- parent_id?: string;
2876
- location_brand?: string;
2877
- company?: string;
2878
- sector?: string;
2879
- date?: GetMenuDateConsumerV2;
2880
- is?: GetMenuIsConsumerV2;
2881
- meta?: GetMenuMetaConsumerV2;
2882
- image?: GetMenuImageConsumerV2;
2883
- }
2884
- export interface Certified {
2885
- vegan?: boolean;
2886
- vegetarian?: boolean;
2887
- seafood_watch?: boolean;
2888
- wellbeing?: boolean;
2889
- farm_to_fork?: boolean;
2890
- in_balance?: boolean;
2891
- organic?: boolean;
2892
- no_gluten_ingredients?: boolean;
2893
- halal?: boolean;
2894
- kosher?: boolean;
2895
- humane?: boolean;
2896
- locally_crafted?: boolean;
2897
- nuts?: boolean;
2898
- oracle_garden_grown?: boolean;
2899
- oracle_oyes?: boolean;
2900
- peanut_free?: boolean;
2901
- tree_nut_free?: boolean;
2902
- wheat_free?: boolean;
2903
- non_gmo?: boolean;
2904
- milk_free?: boolean;
2905
- egg_free?: boolean;
2906
- soy_free?: boolean;
2907
- fair_trade?: boolean;
2908
- rainforest_alliance?: boolean;
2909
- salt_free?: boolean;
2910
- }
2911
3023
  export type HealthCheckControllerExecuteResponse = {};
2912
3024
  export interface GetPaymentListByBrandQuery {
2913
3025
  brandID?: string;
@@ -2923,6 +3035,15 @@ export interface GetCustomerOrdersQuery {
2923
3035
  reorderEligible?: boolean;
2924
3036
  }
2925
3037
  export type GetCustomerOrdersResponse = GetCustomerOrdersResponseDTO;
3038
+ export interface GetCustomerOrdersV2Path {
3039
+ userId: string;
3040
+ }
3041
+ export interface GetCustomerOrdersV2Query {
3042
+ start?: number;
3043
+ end?: number;
3044
+ reorderEligible?: boolean;
3045
+ }
3046
+ export type GetCustomerOrdersV2Response = GetCustomerOrdersV2ResponseDTO;
2926
3047
  export type PostConsumerOrderBody = PostOrderBodyDto;
2927
3048
  export type PostConsumerOrderResponse = PostOrderResponseDTO;
2928
3049
  export interface PatchConsumerOrderCancelPath {
@@ -3024,6 +3145,10 @@ export interface GetConsumerMenuPath {
3024
3145
  id: string;
3025
3146
  }
3026
3147
  export type GetConsumerMenuResponse = GetMenuResponseConsumer;
3148
+ export interface GetConsumerMenuV2Path {
3149
+ id: string;
3150
+ }
3151
+ export type GetConsumerMenuV2Response = GetMenuResponseConsumerV2;
3027
3152
  export interface GetConsumerMenuItemsPath {
3028
3153
  id: string;
3029
3154
  }
@@ -3289,8 +3414,4 @@ export interface GetConsumerLocationQuery {
3289
3414
  active_cafes?: string[];
3290
3415
  }
3291
3416
  export type GetConsumerLocationResponse$0 = GetConsumerLocationResponse;
3292
- export interface GetConsumerMenuV2Path {
3293
- id: string;
3294
- }
3295
- export type GetConsumerMenuV2Response = GetMenuResponseConsumerV2;
3296
3417
  //# sourceMappingURL=consumer.d.ts.map