@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.
- package/lib/index.d.ts +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +324 -35
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +21 -0
- package/src/interface/consumer.ts +383 -91
|
@@ -1321,7 +1321,14 @@ export interface ConsumerItem {
|
|
|
1321
1321
|
primary?: string;
|
|
1322
1322
|
secondary?: string;
|
|
1323
1323
|
};
|
|
1324
|
+
jde_category?: string;
|
|
1324
1325
|
};
|
|
1326
|
+
parent_id?: string;
|
|
1327
|
+
menu_labels?: {
|
|
1328
|
+
id?: string;
|
|
1329
|
+
text?: string;
|
|
1330
|
+
s3_link?: string;
|
|
1331
|
+
}[];
|
|
1325
1332
|
is_deleted?: boolean;
|
|
1326
1333
|
is?: {
|
|
1327
1334
|
disabled?: boolean;
|
|
@@ -1357,33 +1364,6 @@ export interface GetMenuItemNutritionValueConsumer {
|
|
|
1357
1364
|
export interface GetMenuItemNutritionConsumer {
|
|
1358
1365
|
calories?: GetMenuItemNutritionValueConsumer;
|
|
1359
1366
|
}
|
|
1360
|
-
export interface Certified {
|
|
1361
|
-
vegan?: boolean;
|
|
1362
|
-
vegetarian?: boolean;
|
|
1363
|
-
seafood_watch?: boolean;
|
|
1364
|
-
wellbeing?: boolean;
|
|
1365
|
-
farm_to_fork?: boolean;
|
|
1366
|
-
in_balance?: boolean;
|
|
1367
|
-
organic?: boolean;
|
|
1368
|
-
no_gluten_ingredients?: boolean;
|
|
1369
|
-
halal?: boolean;
|
|
1370
|
-
kosher?: boolean;
|
|
1371
|
-
humane?: boolean;
|
|
1372
|
-
locally_crafted?: boolean;
|
|
1373
|
-
nuts?: boolean;
|
|
1374
|
-
oracle_garden_grown?: boolean;
|
|
1375
|
-
oracle_oyes?: boolean;
|
|
1376
|
-
peanut_free?: boolean;
|
|
1377
|
-
tree_nut_free?: boolean;
|
|
1378
|
-
wheat_free?: boolean;
|
|
1379
|
-
non_gmo?: boolean;
|
|
1380
|
-
milk_free?: boolean;
|
|
1381
|
-
egg_free?: boolean;
|
|
1382
|
-
soy_free?: boolean;
|
|
1383
|
-
fair_trade?: boolean;
|
|
1384
|
-
rainforest_alliance?: boolean;
|
|
1385
|
-
salt_free?: boolean;
|
|
1386
|
-
}
|
|
1387
1367
|
export interface GetMenuOptionNutritionConsumer {
|
|
1388
1368
|
calories?: GetMenuItemNutritionValueConsumer;
|
|
1389
1369
|
total_fat?: GetMenuItemNutritionValueConsumer;
|
|
@@ -1405,6 +1385,14 @@ export interface GetMenuItemOptionSizingConsumer {
|
|
|
1405
1385
|
export interface GetMenuItemOptionMetaConsumer {
|
|
1406
1386
|
sizing?: GetMenuItemOptionSizingConsumer[];
|
|
1407
1387
|
}
|
|
1388
|
+
export interface GetMenuItemImageSizesConsumer {
|
|
1389
|
+
original?: string;
|
|
1390
|
+
thumbnail_80_80?: string;
|
|
1391
|
+
}
|
|
1392
|
+
export interface GetMenuItemImageConsumer {
|
|
1393
|
+
src?: string;
|
|
1394
|
+
sizes?: GetMenuItemImageSizesConsumer;
|
|
1395
|
+
}
|
|
1408
1396
|
export interface GetMenuItemOptionConsumer {
|
|
1409
1397
|
id?: string;
|
|
1410
1398
|
label?: GetMenuItemLabelConsumer;
|
|
@@ -1435,14 +1423,6 @@ export interface GetMenuItemMetaConsumer {
|
|
|
1435
1423
|
barcodes?: string[];
|
|
1436
1424
|
recipe?: GetMenuItemRecipeConsumer;
|
|
1437
1425
|
}
|
|
1438
|
-
export interface GetMenuItemImageSizesConsumer {
|
|
1439
|
-
original?: string;
|
|
1440
|
-
thumbnail_80_80?: string;
|
|
1441
|
-
}
|
|
1442
|
-
export interface GetMenuItemImageConsumer {
|
|
1443
|
-
src?: string;
|
|
1444
|
-
sizes?: GetMenuItemImageSizesConsumer;
|
|
1445
|
-
}
|
|
1446
1426
|
export interface GetMenuItemIsConsumer {
|
|
1447
1427
|
out_of_stock?: boolean;
|
|
1448
1428
|
}
|
|
@@ -2624,6 +2604,311 @@ export interface GetConsumerLocationResponse {
|
|
|
2624
2604
|
locations?: ConsumerLocation[];
|
|
2625
2605
|
address?: ConsumerAddress;
|
|
2626
2606
|
}
|
|
2607
|
+
export interface GetMenuItemNutritionValueConsumerV2 {
|
|
2608
|
+
amount?: number;
|
|
2609
|
+
unit?: string;
|
|
2610
|
+
display?: string;
|
|
2611
|
+
}
|
|
2612
|
+
export interface GetMenuItemNutritionConsumerV2 {
|
|
2613
|
+
kcal?: number;
|
|
2614
|
+
calories?: GetMenuItemNutritionValueConsumerV2;
|
|
2615
|
+
serving_size?: GetMenuItemNutritionValueConsumerV2;
|
|
2616
|
+
total_fat?: GetMenuItemNutritionValueConsumerV2;
|
|
2617
|
+
saturated_fat?: GetMenuItemNutritionValueConsumerV2;
|
|
2618
|
+
trans_fat?: GetMenuItemNutritionValueConsumerV2;
|
|
2619
|
+
cholesterol?: GetMenuItemNutritionValueConsumerV2;
|
|
2620
|
+
sodium?: GetMenuItemNutritionValueConsumerV2;
|
|
2621
|
+
total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
|
|
2622
|
+
dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
|
|
2623
|
+
sugars?: GetMenuItemNutritionValueConsumerV2;
|
|
2624
|
+
total_sugars?: GetMenuItemNutritionValueConsumerV2;
|
|
2625
|
+
protein?: GetMenuItemNutritionValueConsumerV2;
|
|
2626
|
+
well_being?: GetMenuItemNutritionValueConsumerV2;
|
|
2627
|
+
}
|
|
2628
|
+
export interface GetMenuOptionNutritionConsumerV2 {
|
|
2629
|
+
calories?: GetMenuItemNutritionValueConsumerV2;
|
|
2630
|
+
total_fat?: GetMenuItemNutritionValueConsumerV2;
|
|
2631
|
+
saturated_fat?: GetMenuItemNutritionValueConsumerV2;
|
|
2632
|
+
total_carbohydrate?: GetMenuItemNutritionValueConsumerV2;
|
|
2633
|
+
total_sugars?: GetMenuItemNutritionValueConsumerV2;
|
|
2634
|
+
protein?: GetMenuItemNutritionValueConsumerV2;
|
|
2635
|
+
dietary_fiber?: GetMenuItemNutritionValueConsumerV2;
|
|
2636
|
+
sodium?: GetMenuItemNutritionValueConsumerV2;
|
|
2637
|
+
trans_fat?: GetMenuItemNutritionValueConsumerV2;
|
|
2638
|
+
cholesterol?: GetMenuItemNutritionValueConsumerV2;
|
|
2639
|
+
added_sugars?: GetMenuItemNutritionValueConsumerV2;
|
|
2640
|
+
}
|
|
2641
|
+
export interface GetMenuItemPriceConsumerV2 {
|
|
2642
|
+
amount?: number;
|
|
2643
|
+
currency?: string;
|
|
2644
|
+
total_price?: number;
|
|
2645
|
+
discount?: number;
|
|
2646
|
+
}
|
|
2647
|
+
export interface GetMenuItemImageSizesConsumerV2 {
|
|
2648
|
+
original?: string;
|
|
2649
|
+
thumbnail_80_80?: string;
|
|
2650
|
+
}
|
|
2651
|
+
export interface GetMenuItemImageConsumerV2 {
|
|
2652
|
+
src?: string;
|
|
2653
|
+
sizes?: GetMenuItemImageSizesConsumerV2;
|
|
2654
|
+
}
|
|
2655
|
+
export interface GetMenuItemCertifiedConsumerV2 {
|
|
2656
|
+
vegan?: boolean;
|
|
2657
|
+
vegetarian?: boolean;
|
|
2658
|
+
seafood_watch?: boolean;
|
|
2659
|
+
wellbeing?: boolean;
|
|
2660
|
+
farm_to_fork?: boolean;
|
|
2661
|
+
in_balance?: boolean;
|
|
2662
|
+
organic?: boolean;
|
|
2663
|
+
no_gluten_ingredients?: boolean;
|
|
2664
|
+
halal?: boolean;
|
|
2665
|
+
kosher?: boolean;
|
|
2666
|
+
humane?: boolean;
|
|
2667
|
+
locally_crafted?: boolean;
|
|
2668
|
+
nuts?: boolean;
|
|
2669
|
+
oracle_garden_grown?: boolean;
|
|
2670
|
+
oracle_oyes?: boolean;
|
|
2671
|
+
peanut_free?: boolean;
|
|
2672
|
+
tree_nut_free?: boolean;
|
|
2673
|
+
wheat_free?: boolean;
|
|
2674
|
+
non_gmo?: boolean;
|
|
2675
|
+
milk_free?: boolean;
|
|
2676
|
+
egg_free?: boolean;
|
|
2677
|
+
soy_free?: boolean;
|
|
2678
|
+
fair_trade?: boolean;
|
|
2679
|
+
rainforest_alliance?: boolean;
|
|
2680
|
+
salt_free?: boolean;
|
|
2681
|
+
}
|
|
2682
|
+
export interface GetMenuItemReportingConsumerV2 {
|
|
2683
|
+
category?: {
|
|
2684
|
+
primary?: string;
|
|
2685
|
+
secondary?: string;
|
|
2686
|
+
};
|
|
2687
|
+
jde_category?: string;
|
|
2688
|
+
}
|
|
2689
|
+
export interface GetMenuItemIsConsumerV2 {
|
|
2690
|
+
disabled?: boolean;
|
|
2691
|
+
hidden?: boolean;
|
|
2692
|
+
meq_eligible?: boolean;
|
|
2693
|
+
out_of_stock?: boolean;
|
|
2694
|
+
deleted?: boolean;
|
|
2695
|
+
featured?: boolean;
|
|
2696
|
+
}
|
|
2697
|
+
export interface GetMenuItemMenuLabelConsumerV2 {
|
|
2698
|
+
id?: string;
|
|
2699
|
+
text?: string;
|
|
2700
|
+
s3_link?: string;
|
|
2701
|
+
}
|
|
2702
|
+
export interface GetMenuItemOptionMetaConsumerV2 {
|
|
2703
|
+
sizing?: {
|
|
2704
|
+
name?: string;
|
|
2705
|
+
posid?: string;
|
|
2706
|
+
price?: number;
|
|
2707
|
+
}[];
|
|
2708
|
+
sort_number?: number;
|
|
2709
|
+
menu_sort_number?: number;
|
|
2710
|
+
unique_id?: number;
|
|
2711
|
+
tax?: {
|
|
2712
|
+
tax_tag_code?: string;
|
|
2713
|
+
};
|
|
2714
|
+
}
|
|
2715
|
+
export interface GetMenuItemOptionIsConsumerV2 {
|
|
2716
|
+
disabled?: boolean;
|
|
2717
|
+
hidden?: boolean;
|
|
2718
|
+
out_of_stock?: boolean;
|
|
2719
|
+
}
|
|
2720
|
+
export interface GetMenuItemOptionConsumerV2 {
|
|
2721
|
+
id?: string;
|
|
2722
|
+
label?: {
|
|
2723
|
+
en?: string;
|
|
2724
|
+
};
|
|
2725
|
+
name?: string;
|
|
2726
|
+
description?: {
|
|
2727
|
+
en?: string;
|
|
2728
|
+
};
|
|
2729
|
+
price?: GetMenuItemPriceConsumerV2;
|
|
2730
|
+
nutrition?: GetMenuOptionNutritionConsumerV2;
|
|
2731
|
+
meta?: GetMenuItemOptionMetaConsumerV2;
|
|
2732
|
+
image?: GetMenuItemImageConsumerV2;
|
|
2733
|
+
certified?: GetMenuItemCertifiedConsumerV2;
|
|
2734
|
+
is?: GetMenuItemOptionIsConsumerV2;
|
|
2735
|
+
reporting?: GetMenuItemReportingConsumerV2;
|
|
2736
|
+
sku?: number;
|
|
2737
|
+
weight?: {
|
|
2738
|
+
unit?: string;
|
|
2739
|
+
amount?: number;
|
|
2740
|
+
};
|
|
2741
|
+
line_route?: string;
|
|
2742
|
+
amount_off_exclusions?: string[];
|
|
2743
|
+
}
|
|
2744
|
+
export interface GetMenuItemGroupIsConsumerV2 {
|
|
2745
|
+
incremental?: boolean;
|
|
2746
|
+
}
|
|
2747
|
+
export interface GetMenuItemGroupMetaConsumerV2 {
|
|
2748
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
2749
|
+
sort_number?: number;
|
|
2750
|
+
menu_sort_number?: number;
|
|
2751
|
+
surcharge_limit_value?: number;
|
|
2752
|
+
}
|
|
2753
|
+
export interface GetMenuItemOptionsGroupConsumerV2 {
|
|
2754
|
+
id?: string;
|
|
2755
|
+
label?: {
|
|
2756
|
+
en?: string;
|
|
2757
|
+
};
|
|
2758
|
+
items?: GetMenuItemOptionConsumerV2[];
|
|
2759
|
+
min?: number;
|
|
2760
|
+
max?: number;
|
|
2761
|
+
is?: GetMenuItemGroupIsConsumerV2;
|
|
2762
|
+
meta?: GetMenuItemGroupMetaConsumerV2;
|
|
2763
|
+
}
|
|
2764
|
+
export interface GetMenuItemRecipeConsumerV2 {
|
|
2765
|
+
smart_tags?: string[];
|
|
2766
|
+
allergen_tags?: string[];
|
|
2767
|
+
mrn?: string;
|
|
2768
|
+
unit_id?: string;
|
|
2769
|
+
portion_quantity?: number;
|
|
2770
|
+
portion_unit_name?: string;
|
|
2771
|
+
grams?: number;
|
|
2772
|
+
cost?: number;
|
|
2773
|
+
ingredients?: string[];
|
|
2774
|
+
}
|
|
2775
|
+
export interface GetMenuItemMetaConsumerV2 {
|
|
2776
|
+
barcodes?: string[];
|
|
2777
|
+
recipe?: GetMenuItemRecipeConsumerV2;
|
|
2778
|
+
superplate?: {
|
|
2779
|
+
type_id?: number;
|
|
2780
|
+
type?: string;
|
|
2781
|
+
};
|
|
2782
|
+
sort_number?: number;
|
|
2783
|
+
menu_sort_number?: number;
|
|
2784
|
+
unique_id?: number;
|
|
2785
|
+
tax?: {
|
|
2786
|
+
tax_tag_code?: string;
|
|
2787
|
+
tax_jwo_code?: string;
|
|
2788
|
+
tax_rate?: number;
|
|
2789
|
+
tax_amount?: number;
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
export interface GetMenuItemConsumerV2 {
|
|
2793
|
+
id?: string;
|
|
2794
|
+
label?: {
|
|
2795
|
+
en?: string;
|
|
2796
|
+
};
|
|
2797
|
+
name?: string;
|
|
2798
|
+
description?: {
|
|
2799
|
+
en?: string;
|
|
2800
|
+
};
|
|
2801
|
+
price?: GetMenuItemPriceConsumerV2;
|
|
2802
|
+
meal_value?: number;
|
|
2803
|
+
sale_price?: GetMenuItemPriceConsumerV2;
|
|
2804
|
+
unit?: number;
|
|
2805
|
+
sku?: number;
|
|
2806
|
+
item_number?: number;
|
|
2807
|
+
parent_id?: string;
|
|
2808
|
+
location?: string;
|
|
2809
|
+
line_route?: string;
|
|
2810
|
+
weight?: {
|
|
2811
|
+
unit?: string;
|
|
2812
|
+
amount?: number;
|
|
2813
|
+
};
|
|
2814
|
+
category?: {
|
|
2815
|
+
en?: string;
|
|
2816
|
+
};
|
|
2817
|
+
ingredients?: Record<string, any>[];
|
|
2818
|
+
amount_off_exclusions?: string[];
|
|
2819
|
+
nutrition?: GetMenuItemNutritionConsumerV2;
|
|
2820
|
+
certified?: GetMenuItemCertifiedConsumerV2;
|
|
2821
|
+
options?: GetMenuItemOptionsGroupConsumerV2[];
|
|
2822
|
+
meta?: GetMenuItemMetaConsumerV2;
|
|
2823
|
+
image?: GetMenuItemImageConsumerV2;
|
|
2824
|
+
is?: GetMenuItemIsConsumerV2;
|
|
2825
|
+
menu_labels?: GetMenuItemMenuLabelConsumerV2[];
|
|
2826
|
+
reporting?: GetMenuItemReportingConsumerV2;
|
|
2827
|
+
}
|
|
2828
|
+
export interface GetMenuGroupConsumerV2 {
|
|
2829
|
+
id: string;
|
|
2830
|
+
label?: {
|
|
2831
|
+
en?: string;
|
|
2832
|
+
fr?: string;
|
|
2833
|
+
};
|
|
2834
|
+
items?: GetMenuItemConsumerV2[];
|
|
2835
|
+
}
|
|
2836
|
+
export interface GetMenuIsConsumerV2 {
|
|
2837
|
+
disabled?: boolean;
|
|
2838
|
+
hidden?: boolean;
|
|
2839
|
+
linked?: boolean;
|
|
2840
|
+
promo_exemptions_enabled?: boolean;
|
|
2841
|
+
plu_enabled?: boolean;
|
|
2842
|
+
item_images_enabled?: boolean;
|
|
2843
|
+
item_showcase_enabled?: boolean;
|
|
2844
|
+
item_desc_edit_enabled?: boolean;
|
|
2845
|
+
calories_edit_enabled?: boolean;
|
|
2846
|
+
item_label_edit_enabled?: boolean;
|
|
2847
|
+
frictionless?: boolean;
|
|
2848
|
+
category_images_enabled?: boolean;
|
|
2849
|
+
}
|
|
2850
|
+
export interface GetMenuMetaConsumerV2 {
|
|
2851
|
+
locked_by_user?: string;
|
|
2852
|
+
last_modified_user?: string;
|
|
2853
|
+
centricos?: boolean;
|
|
2854
|
+
version?: number;
|
|
2855
|
+
revision?: string;
|
|
2856
|
+
}
|
|
2857
|
+
export interface GetMenuDateConsumerV2 {
|
|
2858
|
+
created?: string;
|
|
2859
|
+
modified?: string;
|
|
2860
|
+
published?: string;
|
|
2861
|
+
}
|
|
2862
|
+
export interface GetMenuImageSizesConsumerV2 {
|
|
2863
|
+
original?: string;
|
|
2864
|
+
thumbnail_80_80?: string;
|
|
2865
|
+
}
|
|
2866
|
+
export interface GetMenuImageConsumerV2 {
|
|
2867
|
+
src?: string;
|
|
2868
|
+
sizes?: GetMenuImageSizesConsumerV2;
|
|
2869
|
+
}
|
|
2870
|
+
export interface GetMenuResponseConsumerV2 {
|
|
2871
|
+
id: string;
|
|
2872
|
+
label?: {
|
|
2873
|
+
en?: string;
|
|
2874
|
+
};
|
|
2875
|
+
groups?: GetMenuGroupConsumerV2[];
|
|
2876
|
+
parent_id?: string;
|
|
2877
|
+
location_brand?: string;
|
|
2878
|
+
company?: string;
|
|
2879
|
+
sector?: string;
|
|
2880
|
+
date?: GetMenuDateConsumerV2;
|
|
2881
|
+
is?: GetMenuIsConsumerV2;
|
|
2882
|
+
meta?: GetMenuMetaConsumerV2;
|
|
2883
|
+
image?: GetMenuImageConsumerV2;
|
|
2884
|
+
}
|
|
2885
|
+
export interface Certified {
|
|
2886
|
+
vegan?: boolean;
|
|
2887
|
+
vegetarian?: boolean;
|
|
2888
|
+
seafood_watch?: boolean;
|
|
2889
|
+
wellbeing?: boolean;
|
|
2890
|
+
farm_to_fork?: boolean;
|
|
2891
|
+
in_balance?: boolean;
|
|
2892
|
+
organic?: boolean;
|
|
2893
|
+
no_gluten_ingredients?: boolean;
|
|
2894
|
+
halal?: boolean;
|
|
2895
|
+
kosher?: boolean;
|
|
2896
|
+
humane?: boolean;
|
|
2897
|
+
locally_crafted?: boolean;
|
|
2898
|
+
nuts?: boolean;
|
|
2899
|
+
oracle_garden_grown?: boolean;
|
|
2900
|
+
oracle_oyes?: boolean;
|
|
2901
|
+
peanut_free?: boolean;
|
|
2902
|
+
tree_nut_free?: boolean;
|
|
2903
|
+
wheat_free?: boolean;
|
|
2904
|
+
non_gmo?: boolean;
|
|
2905
|
+
milk_free?: boolean;
|
|
2906
|
+
egg_free?: boolean;
|
|
2907
|
+
soy_free?: boolean;
|
|
2908
|
+
fair_trade?: boolean;
|
|
2909
|
+
rainforest_alliance?: boolean;
|
|
2910
|
+
salt_free?: boolean;
|
|
2911
|
+
}
|
|
2627
2912
|
export type HealthCheckControllerExecuteResponse = {};
|
|
2628
2913
|
export interface GetPaymentListByBrandQuery {
|
|
2629
2914
|
brandID?: string;
|
|
@@ -3005,4 +3290,8 @@ export interface GetConsumerLocationQuery {
|
|
|
3005
3290
|
active_cafes?: string[];
|
|
3006
3291
|
}
|
|
3007
3292
|
export type GetConsumerLocationResponse$0 = GetConsumerLocationResponse;
|
|
3293
|
+
export interface GetConsumerMenuV2Path {
|
|
3294
|
+
id: string;
|
|
3295
|
+
}
|
|
3296
|
+
export type GetConsumerMenuV2Response = GetMenuResponseConsumerV2;
|
|
3008
3297
|
//# sourceMappingURL=consumer.d.ts.map
|