@compassdigital/sdk.typescript 4.977.0 → 4.979.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.
|
@@ -167,7 +167,7 @@ export interface OrderMeta {
|
|
|
167
167
|
// Check-in UUID for frictionless orders
|
|
168
168
|
checkin_uuid?: string;
|
|
169
169
|
// which ui the order was placed on
|
|
170
|
-
source?: 'web' | 'mobile' | 'centric_hub';
|
|
170
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
171
171
|
// details pertaining to the amount charged on the order
|
|
172
172
|
transaction?: OrderTransaction;
|
|
173
173
|
// Shoppingcart details
|
|
@@ -524,7 +524,7 @@ export interface ShoppingcartItemModifier {
|
|
|
524
524
|
// index
|
|
525
525
|
_index?: string;
|
|
526
526
|
meta?: ShoppingcartItemModifierMeta;
|
|
527
|
-
amount_off_exclusions?:
|
|
527
|
+
amount_off_exclusions?: ('discount' | 'promo')[];
|
|
528
528
|
id?: string;
|
|
529
529
|
price?: ShoppingcartMonetaryValue;
|
|
530
530
|
quantity?: number;
|
|
@@ -587,7 +587,7 @@ export interface ShoppingcartItem {
|
|
|
587
587
|
item_discount?: Record<string, any>;
|
|
588
588
|
// user specified instructions for the item
|
|
589
589
|
special_instructions?: string;
|
|
590
|
-
amount_off_exclusions?:
|
|
590
|
+
amount_off_exclusions?: ('discount' | 'promo')[];
|
|
591
591
|
description?: ShoppingcartLabel;
|
|
592
592
|
quantity: number;
|
|
593
593
|
quantity_by_weight?: ShoppingcartQuantityByWeight;
|
|
@@ -1095,7 +1095,7 @@ export interface PlacedOrderMeta {
|
|
|
1095
1095
|
// Check-in UUID for frictionless orders
|
|
1096
1096
|
checkin_uuid?: string;
|
|
1097
1097
|
// which ui the order was placed on
|
|
1098
|
-
source?: 'web' | 'mobile' | 'centric_hub';
|
|
1098
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
1099
1099
|
// details pertaining to the amount charged on the order
|
|
1100
1100
|
transaction?: OrderTransaction;
|
|
1101
1101
|
// Shoppingcart details
|
|
@@ -1471,6 +1471,18 @@ export interface ConsumerAddress {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
|
+
export interface ConsumerBrandAppIntegration {
|
|
1475
|
+
enabled?: boolean;
|
|
1476
|
+
robot_delivery?: boolean;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export interface ConsumerBrandMetaSoftwareIntegrations {
|
|
1480
|
+
system365?: string;
|
|
1481
|
+
jwo?: string;
|
|
1482
|
+
thrive?: ConsumerBrandAppIntegration;
|
|
1483
|
+
boost?: ConsumerBrandAppIntegration;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1474
1486
|
export interface ConsumerBrandMeta {
|
|
1475
1487
|
scout?: {
|
|
1476
1488
|
user_id?: string;
|
|
@@ -1498,24 +1510,12 @@ export interface ConsumerBrandMeta {
|
|
|
1498
1510
|
business_number?: number;
|
|
1499
1511
|
website?: string;
|
|
1500
1512
|
cuisine_types?: string[];
|
|
1501
|
-
status?:
|
|
1513
|
+
status?: 'completed' | 'await_partner' | 'await_scout';
|
|
1502
1514
|
active?: boolean;
|
|
1503
1515
|
max_showcase_items?: number;
|
|
1504
1516
|
jde_category?: string;
|
|
1505
1517
|
}
|
|
1506
1518
|
|
|
1507
|
-
export interface ConsumerBrandMetaSoftwareIntegrations {
|
|
1508
|
-
system365?: string;
|
|
1509
|
-
jwo?: string;
|
|
1510
|
-
thrive?: ConsumerBrandAppIntegration;
|
|
1511
|
-
boost?: ConsumerBrandAppIntegration;
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
export interface ConsumerBrandAppIntegration {
|
|
1515
|
-
enabled?: boolean;
|
|
1516
|
-
robot_delivery?: boolean;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
1519
|
export interface ConsumerDayOfWeekConfig {
|
|
1520
1520
|
// whether this day is active
|
|
1521
1521
|
active: boolean;
|
|
@@ -1625,7 +1625,7 @@ export interface ConsumerMenuHours {
|
|
|
1625
1625
|
is_pickup?: boolean;
|
|
1626
1626
|
is_delivery?: boolean;
|
|
1627
1627
|
is_frictionless?: boolean;
|
|
1628
|
-
state?:
|
|
1628
|
+
state?: 'open' | 'closed' | 'preorder';
|
|
1629
1629
|
is_disabled?: boolean;
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
@@ -1717,8 +1717,8 @@ export interface ConsumerBrand {
|
|
|
1717
1717
|
pickup?: ConsumerWaitTime;
|
|
1718
1718
|
};
|
|
1719
1719
|
state?: {
|
|
1720
|
-
pickup?:
|
|
1721
|
-
delivery?:
|
|
1720
|
+
pickup?: 'open' | 'closed' | 'preorder';
|
|
1721
|
+
delivery?: 'open' | 'closed' | 'preorder';
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
@@ -1943,7 +1943,7 @@ export interface GetConsumerLocationGroupResponse {
|
|
|
1943
1943
|
// timezone
|
|
1944
1944
|
timezone?: string;
|
|
1945
1945
|
// site operational status
|
|
1946
|
-
status?:
|
|
1946
|
+
status?: 'active' | 'inactive' | 'archived';
|
|
1947
1947
|
// client slug the site is assigned to
|
|
1948
1948
|
client?: string;
|
|
1949
1949
|
locations?: ConsumerLocation[];
|
|
@@ -2071,7 +2071,7 @@ export interface ConsumerOption {
|
|
|
2071
2071
|
hidden?: boolean;
|
|
2072
2072
|
out_of_stock?: boolean;
|
|
2073
2073
|
};
|
|
2074
|
-
amount_off_exclusions?:
|
|
2074
|
+
amount_off_exclusions?: ('discount' | 'promo' | 'loyalty')[];
|
|
2075
2075
|
line_route?: string;
|
|
2076
2076
|
}
|
|
2077
2077
|
|
|
@@ -2121,7 +2121,7 @@ export interface ConsumerItem {
|
|
|
2121
2121
|
};
|
|
2122
2122
|
unit?: number;
|
|
2123
2123
|
ingredients?: Record<string, any>[];
|
|
2124
|
-
amount_off_exclusions?:
|
|
2124
|
+
amount_off_exclusions?: ('discount' | 'promo' | 'loyalty')[];
|
|
2125
2125
|
certified?: {
|
|
2126
2126
|
vegan?: boolean;
|
|
2127
2127
|
vegetarian?: boolean;
|
|
@@ -2724,7 +2724,7 @@ export interface GetMenuItemOptionConsumerV2 {
|
|
|
2724
2724
|
// Line route
|
|
2725
2725
|
line_route?: string;
|
|
2726
2726
|
// Amount off exclusion types
|
|
2727
|
-
amount_off_exclusions?:
|
|
2727
|
+
amount_off_exclusions?: ('discount' | 'promo' | 'loyalty')[];
|
|
2728
2728
|
}
|
|
2729
2729
|
|
|
2730
2730
|
export interface GetMenuItemGroupIsConsumerV2 {
|
|
@@ -2821,7 +2821,7 @@ export interface GetMenuItemConsumerV2 {
|
|
|
2821
2821
|
// Ingredients list
|
|
2822
2822
|
ingredients?: Record<string, any>[];
|
|
2823
2823
|
// Amount off exclusion types
|
|
2824
|
-
amount_off_exclusions?:
|
|
2824
|
+
amount_off_exclusions?: ('discount' | 'promo' | 'loyalty')[];
|
|
2825
2825
|
// @deprecated
|
|
2826
2826
|
nutrition?: GetMenuItemNutritionConsumerV2;
|
|
2827
2827
|
// Ordered nutrition breakdown for display, following FDA Nutrition Facts label order and indentation
|
|
@@ -3579,7 +3579,7 @@ export interface PostConsumerPaymentTokenResponse {
|
|
|
3579
3579
|
|
|
3580
3580
|
export interface PromoDetails {
|
|
3581
3581
|
code?: string;
|
|
3582
|
-
provider?:
|
|
3582
|
+
provider?: 'voucherify' | 'fp';
|
|
3583
3583
|
amount_off?: number;
|
|
3584
3584
|
percent_off?: number;
|
|
3585
3585
|
amount?: number;
|
|
@@ -3639,7 +3639,7 @@ export interface GetConsumerShoppingCartResponse {
|
|
|
3639
3639
|
amount?: number;
|
|
3640
3640
|
};
|
|
3641
3641
|
is?: {
|
|
3642
|
-
type?:
|
|
3642
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
3643
3643
|
mx_cart?: boolean;
|
|
3644
3644
|
email_tax_exempt?: boolean;
|
|
3645
3645
|
tax_calculation_required?: boolean;
|
|
@@ -3775,7 +3775,7 @@ export interface PutConsumerShoppingCartResponse {
|
|
|
3775
3775
|
amount?: number;
|
|
3776
3776
|
};
|
|
3777
3777
|
is?: {
|
|
3778
|
-
type?:
|
|
3778
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
3779
3779
|
mx_cart?: boolean;
|
|
3780
3780
|
email_tax_exempt?: boolean;
|
|
3781
3781
|
tax_calculation_required?: boolean;
|
|
@@ -3808,7 +3808,7 @@ export interface ConsumerModifierRequest {
|
|
|
3808
3808
|
label?: ConsumerLabel;
|
|
3809
3809
|
_index?: string;
|
|
3810
3810
|
quantity?: number;
|
|
3811
|
-
amount_off_exclusions?:
|
|
3811
|
+
amount_off_exclusions?: ('discount' | 'promo')[];
|
|
3812
3812
|
meta?: ConsumerModifierRequestMeta;
|
|
3813
3813
|
isSelected?: boolean;
|
|
3814
3814
|
parentLabel?: ConsumerLabel;
|
|
@@ -3840,7 +3840,7 @@ export interface ConsumerItemRequest {
|
|
|
3840
3840
|
_index?: string;
|
|
3841
3841
|
special_instructions?: string;
|
|
3842
3842
|
meta?: ConsumerItemRequestMeta;
|
|
3843
|
-
amount_off_exclusions?:
|
|
3843
|
+
amount_off_exclusions?: ('discount' | 'promo')[];
|
|
3844
3844
|
}
|
|
3845
3845
|
|
|
3846
3846
|
export interface PutConsumerShoppingCartItemsRequest {
|
|
@@ -3879,7 +3879,7 @@ export interface PostConsumerShoppingCartBodyRequest {
|
|
|
3879
3879
|
service_fee?: ShoppingcartMonetaryValue;
|
|
3880
3880
|
delivery_fee?: ShoppingcartMonetaryValue;
|
|
3881
3881
|
is?: {
|
|
3882
|
-
type?:
|
|
3882
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
3883
3883
|
mx_cart?: boolean;
|
|
3884
3884
|
email_tax_exempt?: boolean;
|
|
3885
3885
|
tax_calculation_required?: boolean;
|
|
@@ -3936,7 +3936,7 @@ export interface PostConsumerShoppingCartResponse {
|
|
|
3936
3936
|
amount?: number;
|
|
3937
3937
|
};
|
|
3938
3938
|
is?: {
|
|
3939
|
-
type?:
|
|
3939
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
3940
3940
|
mx_cart?: boolean;
|
|
3941
3941
|
email_tax_exempt?: boolean;
|
|
3942
3942
|
tax_calculation_required?: boolean;
|
|
@@ -3987,13 +3987,13 @@ export interface RedeemableOrder {
|
|
|
3987
3987
|
export interface ConsumerRedeemable {
|
|
3988
3988
|
status: string;
|
|
3989
3989
|
id: string;
|
|
3990
|
-
object:
|
|
3990
|
+
object: 'voucher' | 'promotion_stack' | 'promotion_tier';
|
|
3991
3991
|
result?: RedeemableResult;
|
|
3992
3992
|
order?: RedeemableOrder;
|
|
3993
3993
|
}
|
|
3994
3994
|
|
|
3995
3995
|
export interface ConsumerVoucher {
|
|
3996
|
-
provider?:
|
|
3996
|
+
provider?: 'voucherify' | 'fp';
|
|
3997
3997
|
code?: string;
|
|
3998
3998
|
valid?: boolean;
|
|
3999
3999
|
discount?: ConsumerAppliedDiscount;
|
|
@@ -4228,7 +4228,7 @@ export interface GetConsumerConfigSitePublicResponse {
|
|
|
4228
4228
|
chat_enabled?: boolean;
|
|
4229
4229
|
frictionless_supported?: boolean;
|
|
4230
4230
|
jwo?: Record<string, any>;
|
|
4231
|
-
tax_exemption_overrides?: Record<string,
|
|
4231
|
+
tax_exemption_overrides?: Record<string, boolean>;
|
|
4232
4232
|
}
|
|
4233
4233
|
|
|
4234
4234
|
export interface GetConsumerConfigStationPublicResponse {
|
|
@@ -4319,7 +4319,14 @@ export interface PatchCheckinOrderResponseDTO {
|
|
|
4319
4319
|
export interface GetAppThemeResponse {
|
|
4320
4320
|
id: string;
|
|
4321
4321
|
seedColor: string;
|
|
4322
|
-
dynamicSchemeVariant?:
|
|
4322
|
+
dynamicSchemeVariant?:
|
|
4323
|
+
| 'content'
|
|
4324
|
+
| 'tonalSpot'
|
|
4325
|
+
| 'fidelity'
|
|
4326
|
+
| 'monochrome'
|
|
4327
|
+
| 'neutral'
|
|
4328
|
+
| 'vibrant'
|
|
4329
|
+
| 'expressive';
|
|
4323
4330
|
logo?: string;
|
|
4324
4331
|
}
|
|
4325
4332
|
|
|
@@ -4434,7 +4441,7 @@ export interface DeleteConsumerShoppingCartResponse {
|
|
|
4434
4441
|
amount?: number;
|
|
4435
4442
|
};
|
|
4436
4443
|
is?: {
|
|
4437
|
-
type?:
|
|
4444
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
4438
4445
|
mx_cart?: boolean;
|
|
4439
4446
|
email_tax_exempt?: boolean;
|
|
4440
4447
|
tax_calculation_required?: boolean;
|
|
@@ -4475,7 +4482,7 @@ export interface PatchConsumerShoppingCartRequest {
|
|
|
4475
4482
|
amount?: number;
|
|
4476
4483
|
};
|
|
4477
4484
|
is?: {
|
|
4478
|
-
type?:
|
|
4485
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
4479
4486
|
mx_cart?: boolean;
|
|
4480
4487
|
email_tax_exempt?: boolean;
|
|
4481
4488
|
tax_calculation_required?: boolean;
|
|
@@ -4520,7 +4527,7 @@ export interface PatchConsumerShoppingCartResponse {
|
|
|
4520
4527
|
amount?: number;
|
|
4521
4528
|
};
|
|
4522
4529
|
is?: {
|
|
4523
|
-
type?:
|
|
4530
|
+
type?: 'pickup' | 'delivery' | 'scan_and_go' | 'frictionless';
|
|
4524
4531
|
mx_cart?: boolean;
|
|
4525
4532
|
email_tax_exempt?: boolean;
|
|
4526
4533
|
tax_calculation_required?: boolean;
|
|
@@ -4559,7 +4566,7 @@ export interface ConsumerNextRewardDTO {
|
|
|
4559
4566
|
|
|
4560
4567
|
export interface ConsumerRewardDiscountDTO {
|
|
4561
4568
|
// discount type
|
|
4562
|
-
type: 'AMOUNT_OFF' | 'PERCENT_OFF';
|
|
4569
|
+
type: 'AMOUNT_OFF' | 'PERCENT_OFF' | 'FREE_ITEM';
|
|
4563
4570
|
// percentage off for the discount
|
|
4564
4571
|
percentOff?: number;
|
|
4565
4572
|
// amount off for the discount
|
|
@@ -4881,7 +4888,7 @@ export interface DeleteConsumerPaymentCashlessResponse {
|
|
|
4881
4888
|
}
|
|
4882
4889
|
|
|
4883
4890
|
export interface ReviewDTO {
|
|
4884
|
-
taxonomy?: Record<string,
|
|
4891
|
+
taxonomy?: Record<string, string>;
|
|
4885
4892
|
id: string;
|
|
4886
4893
|
createdAt: string;
|
|
4887
4894
|
updatedAt: string;
|
|
@@ -5356,8 +5363,6 @@ export interface GetConsumerLocationMultigroupPath {
|
|
|
5356
5363
|
}
|
|
5357
5364
|
|
|
5358
5365
|
export interface GetConsumerLocationMultigroupQuery {
|
|
5359
|
-
// Site statuses to include. Accepts a comma-separated list (e.g. active,inactive). Allowed values: active, inactive. Defaults to returning only active sites.
|
|
5360
|
-
status?: ('active' | 'inactive')[];
|
|
5361
5366
|
// Latitude of the user
|
|
5362
5367
|
latitude?: number;
|
|
5363
5368
|
// Longitude of the user
|
|
@@ -5378,6 +5383,8 @@ export interface GetConsumerLocationMultigroupQuery {
|
|
|
5378
5383
|
non_scan_go?: boolean;
|
|
5379
5384
|
_query?: string;
|
|
5380
5385
|
nocache?: boolean;
|
|
5386
|
+
// Site statuses to include. Accepts a comma-separated list (e.g. active,inactive). Allowed values: active, inactive. Defaults to returning only active sites.
|
|
5387
|
+
status?: ('active' | 'inactive')[];
|
|
5381
5388
|
}
|
|
5382
5389
|
|
|
5383
5390
|
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|