@compassdigital/sdk.typescript 4.193.0 → 4.195.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 +4 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/interface/consumer.d.ts +124 -29
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/search.d.ts +1 -2
- package/lib/interface/search.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -4
- package/src/interface/consumer.ts +226 -35
- package/src/interface/search.ts +2 -4
|
@@ -1487,43 +1487,234 @@ export interface ConsumerGetActiveMenusResponse {
|
|
|
1487
1487
|
menus: ConsumerMenuHours[];
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
export interface
|
|
1490
|
+
export interface GetMenuLabelConsumer {
|
|
1491
|
+
// English
|
|
1492
|
+
en?: string;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
export interface GetMenuGroupLabelConsumer {
|
|
1496
|
+
// English
|
|
1497
|
+
en?: string;
|
|
1498
|
+
// French
|
|
1499
|
+
fr?: string;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
export interface GetMenuItemLabelConsumer {
|
|
1503
|
+
// English
|
|
1504
|
+
en?: string;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
export interface GetMenuItemPriceConsumer {
|
|
1508
|
+
// Amount
|
|
1509
|
+
amount?: number;
|
|
1510
|
+
// Currency code
|
|
1511
|
+
currency?: string;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
export interface GetMenuItemCalorieConsumer {
|
|
1515
|
+
// Amount
|
|
1516
|
+
amount?: number;
|
|
1517
|
+
// Unit of measurement
|
|
1518
|
+
unit?: string;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
export interface GetMenuItemNutritionConsumer {
|
|
1522
|
+
// Calories
|
|
1523
|
+
calories?: GetMenuItemCalorieConsumer;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
export interface Certified {
|
|
1527
|
+
// Certified vegan
|
|
1528
|
+
vegan?: boolean;
|
|
1529
|
+
// Certified vegetarian
|
|
1530
|
+
vegetarian?: boolean;
|
|
1531
|
+
// Seafood Watch certified (sustainable seafood)
|
|
1532
|
+
seafood_watch?: boolean;
|
|
1533
|
+
// Certified for general wellbeing
|
|
1534
|
+
wellbeing?: boolean;
|
|
1535
|
+
// Farm to Fork certified (locally sourced)
|
|
1536
|
+
farm_to_fork?: boolean;
|
|
1537
|
+
// In Balance certified (nutritionally balanced)
|
|
1538
|
+
in_balance?: boolean;
|
|
1539
|
+
// Certified organic
|
|
1540
|
+
organic?: boolean;
|
|
1541
|
+
// No gluten ingredients present
|
|
1542
|
+
no_gluten_ingredients?: boolean;
|
|
1543
|
+
// Certified halal
|
|
1544
|
+
halal?: boolean;
|
|
1545
|
+
// Certified kosher
|
|
1546
|
+
kosher?: boolean;
|
|
1547
|
+
// Certified humane (animal welfare)
|
|
1548
|
+
humane?: boolean;
|
|
1549
|
+
// Locally crafted product
|
|
1550
|
+
locally_crafted?: boolean;
|
|
1551
|
+
// Contains nuts
|
|
1552
|
+
nuts?: boolean;
|
|
1553
|
+
// Oracle Garden Grown certified
|
|
1554
|
+
oracle_garden_grown?: boolean;
|
|
1555
|
+
// Oracle OYES certified
|
|
1556
|
+
oracle_oyes?: boolean;
|
|
1557
|
+
// Peanut free
|
|
1558
|
+
peanut_free?: boolean;
|
|
1559
|
+
// Tree nut free
|
|
1560
|
+
tree_nut_free?: boolean;
|
|
1561
|
+
// Wheat free
|
|
1562
|
+
wheat_free?: boolean;
|
|
1563
|
+
// Non-GMO certified
|
|
1564
|
+
non_gmo?: boolean;
|
|
1565
|
+
// Milk free
|
|
1566
|
+
milk_free?: boolean;
|
|
1567
|
+
// Egg free
|
|
1568
|
+
egg_free?: boolean;
|
|
1569
|
+
// Soy free
|
|
1570
|
+
soy_free?: boolean;
|
|
1571
|
+
// Fair Trade certified
|
|
1572
|
+
fair_trade?: boolean;
|
|
1573
|
+
// Rainforest Alliance certified
|
|
1574
|
+
rainforest_alliance?: boolean;
|
|
1575
|
+
// Salt free
|
|
1576
|
+
salt_free?: boolean;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
export interface GetMenuOptionNutritionConsumer {
|
|
1580
|
+
// Calories
|
|
1581
|
+
calories?: GetMenuItemCalorieConsumer;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
export interface GetMenuItemOptionSizingConsumer {
|
|
1585
|
+
// Sizing name
|
|
1586
|
+
name?: string;
|
|
1587
|
+
// POS ID for sizing
|
|
1588
|
+
posid?: string;
|
|
1589
|
+
// Price for this sizing
|
|
1590
|
+
price?: number;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
export interface GetMenuItemOptionMetaConsumer {
|
|
1594
|
+
// Available sizings
|
|
1595
|
+
sizing?: GetMenuItemOptionSizingConsumer[];
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
export interface GetMenuItemOptionConsumer {
|
|
1599
|
+
// Menu Option ID
|
|
1600
|
+
id?: string;
|
|
1601
|
+
// Label for the option
|
|
1602
|
+
label?: GetMenuItemLabelConsumer;
|
|
1603
|
+
// Price
|
|
1604
|
+
price?: GetMenuItemPriceConsumer;
|
|
1605
|
+
// Nutrition
|
|
1606
|
+
nutrition?: GetMenuOptionNutritionConsumer;
|
|
1607
|
+
// Metadata for the option
|
|
1608
|
+
meta?: GetMenuItemOptionMetaConsumer;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
export interface GetMenuItemGroupIsConsumer {
|
|
1612
|
+
// Options group incremental?
|
|
1613
|
+
incremental?: boolean;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
export interface GetMenuItemGroupMetaConsumer {
|
|
1617
|
+
// Type of mod group
|
|
1618
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export interface GetMenuItemOptionsGroupConsumer {
|
|
1622
|
+
// Menu Options Group ID
|
|
1623
|
+
id?: string;
|
|
1624
|
+
// Label for the options group
|
|
1625
|
+
label?: GetMenuItemLabelConsumer;
|
|
1626
|
+
// Options group items
|
|
1627
|
+
items?: GetMenuItemOptionConsumer[];
|
|
1628
|
+
// Minimum number of options
|
|
1629
|
+
min?: number;
|
|
1630
|
+
// Maximum number of options
|
|
1631
|
+
max?: number;
|
|
1632
|
+
// Object containing quick boolean details
|
|
1633
|
+
is?: GetMenuItemGroupIsConsumer;
|
|
1634
|
+
// Metadata for the options group
|
|
1635
|
+
meta?: GetMenuItemGroupMetaConsumer;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
export interface GetMenuItemRecipeConsumer {
|
|
1639
|
+
// Smart tags
|
|
1640
|
+
smart_tags?: string[];
|
|
1641
|
+
// Allergen tags
|
|
1642
|
+
allergen_tags?: string[];
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
export interface GetMenuItemMetaConsumer {
|
|
1646
|
+
// Barcodes of the item
|
|
1647
|
+
barcodes?: string[];
|
|
1648
|
+
// Recipe meta
|
|
1649
|
+
recipe?: GetMenuItemRecipeConsumer;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
export interface GetMenuItemImageSizesConsumer {
|
|
1653
|
+
// Image URL
|
|
1654
|
+
original?: string;
|
|
1655
|
+
// 80x80 thumbnail image URL
|
|
1656
|
+
thumbnail_80_80?: string;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
export interface GetMenuItemImageConsumer {
|
|
1660
|
+
// Image source URL
|
|
1661
|
+
src?: string;
|
|
1662
|
+
// Image sizes
|
|
1663
|
+
sizes?: GetMenuItemImageSizesConsumer;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
export interface GetMenuItemIsConsumer {
|
|
1667
|
+
// Is the item out of stock?
|
|
1668
|
+
out_of_stock?: boolean;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
export interface GetMenuItemConsumer {
|
|
1672
|
+
// Menu Item ID
|
|
1673
|
+
id?: string;
|
|
1674
|
+
// Label for the menu item
|
|
1675
|
+
label?: GetMenuItemLabelConsumer;
|
|
1676
|
+
// Description of the item
|
|
1677
|
+
description?: GetMenuItemLabelConsumer;
|
|
1678
|
+
// Item price
|
|
1679
|
+
price?: GetMenuItemPriceConsumer;
|
|
1680
|
+
// Meal exchange value of the item
|
|
1681
|
+
meal_value?: number;
|
|
1682
|
+
// Sale price of the item
|
|
1683
|
+
sale_price?: GetMenuItemPriceConsumer;
|
|
1684
|
+
// Number of units for the item. For example, a dozen doughnuts should have a unit value of 12
|
|
1685
|
+
unit?: number;
|
|
1686
|
+
// Item nutrition
|
|
1687
|
+
nutrition?: GetMenuItemNutritionConsumer;
|
|
1688
|
+
// Food certifications like vegan, organic, etc
|
|
1689
|
+
certified?: Certified;
|
|
1690
|
+
// Item options/modifiers
|
|
1691
|
+
options?: GetMenuItemOptionsGroupConsumer[];
|
|
1692
|
+
// Metadata for the item
|
|
1693
|
+
meta?: GetMenuItemMetaConsumer;
|
|
1694
|
+
// Item image data
|
|
1695
|
+
image?: GetMenuItemImageConsumer;
|
|
1696
|
+
// Quick boolean details
|
|
1697
|
+
is?: GetMenuItemIsConsumer;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
export interface GetMenuGroupConsumer {
|
|
1701
|
+
// Menu Group ID
|
|
1702
|
+
id?: string;
|
|
1703
|
+
// Menu Group label
|
|
1704
|
+
label?: GetMenuGroupLabelConsumer;
|
|
1705
|
+
// Menu Items
|
|
1706
|
+
items?: GetMenuItemConsumer[];
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
export interface GetMenuResponseConsumer {
|
|
1491
1710
|
// menu id
|
|
1492
1711
|
id: string;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
modified?: string;
|
|
1496
|
-
published?: string;
|
|
1497
|
-
};
|
|
1498
|
-
label?: {
|
|
1499
|
-
en?: string;
|
|
1500
|
-
};
|
|
1712
|
+
// menu label
|
|
1713
|
+
label?: GetMenuLabelConsumer;
|
|
1501
1714
|
// menu groups
|
|
1502
|
-
groups:
|
|
1715
|
+
groups: GetMenuGroupConsumer[];
|
|
1503
1716
|
// menu parent id
|
|
1504
1717
|
parent_id: string;
|
|
1505
|
-
// menu location brand
|
|
1506
|
-
location_brand?: string;
|
|
1507
|
-
// menu company
|
|
1508
|
-
company?: string;
|
|
1509
|
-
// menu sector
|
|
1510
|
-
sector?: string;
|
|
1511
|
-
is?: {
|
|
1512
|
-
disabled?: boolean;
|
|
1513
|
-
hidden?: boolean;
|
|
1514
|
-
linked?: boolean;
|
|
1515
|
-
promo_exemptions_enabled?: boolean;
|
|
1516
|
-
plu_enabled?: boolean;
|
|
1517
|
-
item_images_enabled?: boolean;
|
|
1518
|
-
item_showcase_enabled?: boolean;
|
|
1519
|
-
item_desc_edit_enabled?: boolean;
|
|
1520
|
-
calories_edit_enabled?: boolean;
|
|
1521
|
-
item_label_edit_enabled?: boolean;
|
|
1522
|
-
frictionless?: boolean;
|
|
1523
|
-
category_images_enabled?: boolean;
|
|
1524
|
-
};
|
|
1525
|
-
// menu meta
|
|
1526
|
-
meta?: Record<string, any>;
|
|
1527
1718
|
}
|
|
1528
1719
|
|
|
1529
1720
|
export interface ConsumerOption {
|
|
@@ -2550,10 +2741,10 @@ export interface GetConsumerActiveMenusQuery {
|
|
|
2550
2741
|
|
|
2551
2742
|
export type GetConsumerActiveMenusResponse = ConsumerGetActiveMenusResponse;
|
|
2552
2743
|
|
|
2553
|
-
// GET /consumer/menu/{id} -
|
|
2744
|
+
// GET /consumer/menu/{id} - Get full Menu by ID
|
|
2554
2745
|
|
|
2555
2746
|
export interface GetConsumerMenuPath {
|
|
2556
|
-
// Menu ID as Encoded CDL ID
|
|
2747
|
+
// Menu ID as Encoded CDL ID
|
|
2557
2748
|
id: string;
|
|
2558
2749
|
}
|
|
2559
2750
|
|
|
@@ -2562,7 +2753,7 @@ export interface GetConsumerMenuQuery {
|
|
|
2562
2753
|
_query?: string;
|
|
2563
2754
|
}
|
|
2564
2755
|
|
|
2565
|
-
export type GetConsumerMenuResponse
|
|
2756
|
+
export type GetConsumerMenuResponse = GetMenuResponseConsumer;
|
|
2566
2757
|
|
|
2567
2758
|
// GET /consumer/menu/{id}/items - Provide the front end with menu items
|
|
2568
2759
|
|
package/src/interface/search.ts
CHANGED
|
@@ -110,8 +110,6 @@ export interface Error {
|
|
|
110
110
|
data: ErrorData;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export type Object = Record<string, any>;
|
|
114
|
-
|
|
115
113
|
export interface GetLocationDto {
|
|
116
114
|
source_id: string;
|
|
117
115
|
source_type: string;
|
|
@@ -194,8 +192,8 @@ export interface GetSearchLocationQuery {
|
|
|
194
192
|
source_type?: 'brand' | 'location' | 'group' | 'multigroup' | 'sector' | 'company';
|
|
195
193
|
// Filter entities with specific group id as a parent
|
|
196
194
|
source_group_parent?: string;
|
|
197
|
-
// Filter entities with specific multigroup id as a parent
|
|
198
|
-
source_multigroup_parent?:
|
|
195
|
+
// Filter entities with specific multigroup id as a parent (string or comma-separated string)
|
|
196
|
+
source_multigroup_parent?: string;
|
|
199
197
|
// Graphql query string
|
|
200
198
|
_query?: string;
|
|
201
199
|
}
|