@compassdigital/sdk.typescript 4.114.0 → 4.115.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 +465 -17
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +9 -3
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/consumer.ts +508 -22
- package/src/interface/mealplan.ts +9 -3
|
@@ -124,8 +124,8 @@ export interface OrderMeta {
|
|
|
124
124
|
}
|
|
125
125
|
export interface CustomerOrderBrandDTO {
|
|
126
126
|
id: string;
|
|
127
|
-
name
|
|
128
|
-
location_description
|
|
127
|
+
name?: string;
|
|
128
|
+
location_description?: string;
|
|
129
129
|
}
|
|
130
130
|
export interface OrderDate {
|
|
131
131
|
accepted?: string;
|
|
@@ -586,11 +586,223 @@ export interface HeroImage {
|
|
|
586
586
|
end: string;
|
|
587
587
|
images: string[];
|
|
588
588
|
}
|
|
589
|
+
export interface HomePageOrder {
|
|
590
|
+
meta?: {
|
|
591
|
+
[index: string]: any;
|
|
592
|
+
} & OrderMeta;
|
|
593
|
+
id?: string;
|
|
594
|
+
reorder_eligibility?: 'eligible' | 'order_type_ineligible' | 'location_ineligible' | 'active_order' | 'old_order' | 'marketplace_order' | 'duplicate_order' | 'brand_unavailable' | 'menu_unavailable' | 'items_unavailable' | 'refunded_order' | 'modifiers_unavailable' | 'modified_items' | 'cancelled_order';
|
|
595
|
+
location_brand?: string;
|
|
596
|
+
location?: string;
|
|
597
|
+
date?: OrderDate;
|
|
598
|
+
details?: OrderDetails;
|
|
599
|
+
requested_date?: string;
|
|
600
|
+
refunds?: OrderRefundItem[];
|
|
601
|
+
customer?: string;
|
|
602
|
+
pickup_id?: string;
|
|
603
|
+
payment?: OrderPayment;
|
|
604
|
+
mealplan?: OrderMealplan;
|
|
605
|
+
meal_swipes?: OrderMealSwipes;
|
|
606
|
+
is?: OrderIs;
|
|
607
|
+
issue?: OrderIssue;
|
|
608
|
+
shoppingcart?: string;
|
|
609
|
+
}
|
|
610
|
+
export interface ConsumerAddress {
|
|
611
|
+
suite?: string;
|
|
612
|
+
address?: string;
|
|
613
|
+
city?: string;
|
|
614
|
+
state?: string;
|
|
615
|
+
country?: string;
|
|
616
|
+
zip?: string;
|
|
617
|
+
coordinates?: {
|
|
618
|
+
latitude?: number;
|
|
619
|
+
longitude?: number;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
export interface ConsumerMenuHours {
|
|
623
|
+
id?: string;
|
|
624
|
+
label?: {
|
|
625
|
+
en?: string;
|
|
626
|
+
};
|
|
627
|
+
hours?: Record<string, any>[];
|
|
628
|
+
is_pickup?: boolean;
|
|
629
|
+
is_delivery?: boolean;
|
|
630
|
+
is_frictionless?: boolean;
|
|
631
|
+
state?: Record<string, any>;
|
|
632
|
+
is_disabled?: boolean;
|
|
633
|
+
}
|
|
634
|
+
export interface ConsumerHours {
|
|
635
|
+
id?: string;
|
|
636
|
+
date?: {
|
|
637
|
+
deleted?: string;
|
|
638
|
+
start?: string;
|
|
639
|
+
end?: string;
|
|
640
|
+
};
|
|
641
|
+
day?: {
|
|
642
|
+
start?: number;
|
|
643
|
+
end?: number;
|
|
644
|
+
};
|
|
645
|
+
hours?: string;
|
|
646
|
+
}
|
|
647
|
+
export interface ConsumerDeliveryHours {
|
|
648
|
+
id?: string;
|
|
649
|
+
day?: {
|
|
650
|
+
start?: number;
|
|
651
|
+
end?: number;
|
|
652
|
+
};
|
|
653
|
+
hours?: string;
|
|
654
|
+
}
|
|
655
|
+
export interface ConsumerWaitTime {
|
|
656
|
+
max: number;
|
|
657
|
+
min: number;
|
|
658
|
+
ready_time: number;
|
|
659
|
+
}
|
|
660
|
+
export interface ConsumerBrand {
|
|
661
|
+
id?: string;
|
|
662
|
+
sector?: string;
|
|
663
|
+
name?: string;
|
|
664
|
+
label?: {
|
|
665
|
+
en?: string;
|
|
666
|
+
fr?: string;
|
|
667
|
+
};
|
|
668
|
+
timezone?: string;
|
|
669
|
+
description?: string;
|
|
670
|
+
latitude?: number;
|
|
671
|
+
longitude?: number;
|
|
672
|
+
address?: ConsumerAddress;
|
|
673
|
+
menus?: ConsumerMenuHours[];
|
|
674
|
+
date?: {
|
|
675
|
+
deleted?: string;
|
|
676
|
+
created?: string;
|
|
677
|
+
};
|
|
678
|
+
hours?: ConsumerHours[];
|
|
679
|
+
deliveryHours?: ConsumerDeliveryHours[];
|
|
680
|
+
style?: {
|
|
681
|
+
logo?: string | null;
|
|
682
|
+
main_logo?: string | null;
|
|
683
|
+
alt_logo?: string | null;
|
|
684
|
+
};
|
|
685
|
+
pos?: string;
|
|
686
|
+
terminals?: Record<string, any>[];
|
|
687
|
+
device_mapping?: Record<string, any>;
|
|
688
|
+
timeslots?: {
|
|
689
|
+
time?: string;
|
|
690
|
+
averagePrepTime?: string;
|
|
691
|
+
duration_minutes?: number;
|
|
692
|
+
customers_per_slot?: number;
|
|
693
|
+
menu_items_per_slot?: number;
|
|
694
|
+
delivery_time?: string;
|
|
695
|
+
delivery_customers_per_slot?: number;
|
|
696
|
+
delivery_menu_items_per_slot?: number;
|
|
697
|
+
delivery_prep_time?: string;
|
|
698
|
+
delivery_is_user_defined?: boolean;
|
|
699
|
+
};
|
|
700
|
+
brand?: string;
|
|
701
|
+
location?: string;
|
|
702
|
+
group?: string;
|
|
703
|
+
payment_provider?: string;
|
|
704
|
+
location_description?: string;
|
|
705
|
+
company?: string;
|
|
706
|
+
config?: {
|
|
707
|
+
private?: Record<string, any>;
|
|
708
|
+
public?: Record<string, any>;
|
|
709
|
+
};
|
|
710
|
+
tax_rate?: number;
|
|
711
|
+
descriptions?: {
|
|
712
|
+
location: {
|
|
713
|
+
en?: string;
|
|
714
|
+
fr?: string;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
estimated_wait_time?: {
|
|
718
|
+
delivery?: ConsumerWaitTime;
|
|
719
|
+
pickup?: ConsumerWaitTime;
|
|
720
|
+
};
|
|
721
|
+
state?: {
|
|
722
|
+
pickup?: Record<string, any>;
|
|
723
|
+
delivery?: Record<string, any>;
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
export interface ConsumerLocation {
|
|
727
|
+
id?: string;
|
|
728
|
+
operation_id?: number;
|
|
729
|
+
name?: string;
|
|
730
|
+
label?: {
|
|
731
|
+
en?: string;
|
|
732
|
+
fr?: string;
|
|
733
|
+
};
|
|
734
|
+
search?: string[];
|
|
735
|
+
app?: string;
|
|
736
|
+
address?: ConsumerAddress;
|
|
737
|
+
latitude?: number;
|
|
738
|
+
longitude?: number;
|
|
739
|
+
brands?: ConsumerBrand[];
|
|
740
|
+
meta?: Record<string, any>;
|
|
741
|
+
phone?: string;
|
|
742
|
+
location_group?: string;
|
|
743
|
+
location_multigroup?: string;
|
|
744
|
+
sector?: string;
|
|
745
|
+
date?: {
|
|
746
|
+
deleted?: string;
|
|
747
|
+
created?: string;
|
|
748
|
+
modified?: string;
|
|
749
|
+
};
|
|
750
|
+
market_place?: {
|
|
751
|
+
label: {
|
|
752
|
+
en?: string;
|
|
753
|
+
fr?: string;
|
|
754
|
+
};
|
|
755
|
+
location_description: {
|
|
756
|
+
en?: string;
|
|
757
|
+
fr?: string;
|
|
758
|
+
};
|
|
759
|
+
logo?: string;
|
|
760
|
+
is: {
|
|
761
|
+
enabled?: boolean;
|
|
762
|
+
pickup_supported?: boolean;
|
|
763
|
+
delivery_supported?: boolean;
|
|
764
|
+
};
|
|
765
|
+
delivery_details: {
|
|
766
|
+
show_single_timeslot?: boolean;
|
|
767
|
+
show_instructions?: boolean;
|
|
768
|
+
runner_app_enabled?: boolean;
|
|
769
|
+
};
|
|
770
|
+
delivery_destinations?: string[];
|
|
771
|
+
pickup_instruction: {
|
|
772
|
+
en?: string;
|
|
773
|
+
fr?: string;
|
|
774
|
+
};
|
|
775
|
+
hours?: ConsumerHours[];
|
|
776
|
+
deliveryHours?: ConsumerDeliveryHours[];
|
|
777
|
+
service_fee: {
|
|
778
|
+
type?: string;
|
|
779
|
+
value?: number;
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
export interface ConsumerGroup {
|
|
784
|
+
id?: string;
|
|
785
|
+
name?: string;
|
|
786
|
+
label?: {
|
|
787
|
+
en?: string;
|
|
788
|
+
fr?: string;
|
|
789
|
+
};
|
|
790
|
+
distance?: number;
|
|
791
|
+
locations?: ConsumerLocation[];
|
|
792
|
+
address?: ConsumerAddress;
|
|
793
|
+
meta?: Record<string, any>;
|
|
794
|
+
style?: {
|
|
795
|
+
logo?: string | null;
|
|
796
|
+
main_logo?: string | null;
|
|
797
|
+
alt_logo?: string | null;
|
|
798
|
+
};
|
|
799
|
+
timezone?: string;
|
|
800
|
+
}
|
|
589
801
|
export interface HomePageResponse {
|
|
590
802
|
greetingMessage: DiverseGreetingMessages;
|
|
591
803
|
heroImages: HeroImage;
|
|
592
|
-
orders?:
|
|
593
|
-
location?:
|
|
804
|
+
orders?: HomePageOrder[];
|
|
805
|
+
location?: ConsumerGroup;
|
|
594
806
|
}
|
|
595
807
|
export interface FrictionlessCheckinResponse {
|
|
596
808
|
id: string;
|
|
@@ -646,10 +858,10 @@ export interface GetConsumerLocationGroupResponse {
|
|
|
646
858
|
export interface GetConsumerLocationMultiGroupResponse {
|
|
647
859
|
id: string;
|
|
648
860
|
name: string;
|
|
649
|
-
groups:
|
|
861
|
+
groups: ConsumerGroup[];
|
|
650
862
|
}
|
|
651
863
|
export interface ConsumerGetActiveMenusResponse {
|
|
652
|
-
menus:
|
|
864
|
+
menus: ConsumerMenuHours[];
|
|
653
865
|
}
|
|
654
866
|
export interface GetConsumerMenuResponse {
|
|
655
867
|
id: string;
|
|
@@ -661,7 +873,7 @@ export interface GetConsumerMenuResponse {
|
|
|
661
873
|
label?: {
|
|
662
874
|
en?: string;
|
|
663
875
|
};
|
|
664
|
-
groups:
|
|
876
|
+
groups: ConsumerGroup[];
|
|
665
877
|
parent_id: string;
|
|
666
878
|
location_brand?: string;
|
|
667
879
|
company?: string;
|
|
@@ -682,9 +894,161 @@ export interface GetConsumerMenuResponse {
|
|
|
682
894
|
};
|
|
683
895
|
meta?: Record<string, any>;
|
|
684
896
|
}
|
|
897
|
+
export interface ConsumerOption {
|
|
898
|
+
id?: string;
|
|
899
|
+
label?: {
|
|
900
|
+
en?: string;
|
|
901
|
+
};
|
|
902
|
+
name?: string;
|
|
903
|
+
description?: {
|
|
904
|
+
en?: string;
|
|
905
|
+
};
|
|
906
|
+
price?: {
|
|
907
|
+
amount?: number;
|
|
908
|
+
currency?: string;
|
|
909
|
+
};
|
|
910
|
+
reporting?: {
|
|
911
|
+
category: {
|
|
912
|
+
primary?: string;
|
|
913
|
+
secondary?: string;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
weight?: {
|
|
917
|
+
unit?: string;
|
|
918
|
+
amount?: number;
|
|
919
|
+
};
|
|
920
|
+
image?: {
|
|
921
|
+
src?: string;
|
|
922
|
+
sizes: {
|
|
923
|
+
original?: string;
|
|
924
|
+
thumbnail_80_80?: string;
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
sku?: number;
|
|
928
|
+
nutrition?: {
|
|
929
|
+
kcal?: number;
|
|
930
|
+
calories?: Record<string, any>;
|
|
931
|
+
};
|
|
932
|
+
certified?: {
|
|
933
|
+
vegan?: boolean;
|
|
934
|
+
};
|
|
935
|
+
is?: {
|
|
936
|
+
disabled?: boolean;
|
|
937
|
+
hidden?: boolean;
|
|
938
|
+
out_of_stock?: boolean;
|
|
939
|
+
};
|
|
940
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
941
|
+
line_route?: string;
|
|
942
|
+
}
|
|
943
|
+
export interface ConsumerOptionsGroup {
|
|
944
|
+
id?: string;
|
|
945
|
+
label?: {
|
|
946
|
+
en?: string;
|
|
947
|
+
};
|
|
948
|
+
unique_name?: string;
|
|
949
|
+
name?: string;
|
|
950
|
+
items?: ConsumerOption[];
|
|
951
|
+
min?: number;
|
|
952
|
+
max?: number;
|
|
953
|
+
is?: {
|
|
954
|
+
disabled?: boolean;
|
|
955
|
+
hidden?: boolean;
|
|
956
|
+
out_of_stock?: boolean;
|
|
957
|
+
incremental?: boolean;
|
|
958
|
+
surcharge_limit?: boolean;
|
|
959
|
+
};
|
|
960
|
+
limit?: number;
|
|
961
|
+
}
|
|
962
|
+
export interface ConsumerItem {
|
|
963
|
+
id?: string;
|
|
964
|
+
label?: {
|
|
965
|
+
en?: string;
|
|
966
|
+
};
|
|
967
|
+
name?: string;
|
|
968
|
+
description?: {
|
|
969
|
+
en?: string;
|
|
970
|
+
};
|
|
971
|
+
price?: {
|
|
972
|
+
amount?: number;
|
|
973
|
+
currency?: string;
|
|
974
|
+
total_price?: number;
|
|
975
|
+
discount?: number;
|
|
976
|
+
};
|
|
977
|
+
meal_value?: number;
|
|
978
|
+
sale_price?: {
|
|
979
|
+
amount?: number;
|
|
980
|
+
currency?: string;
|
|
981
|
+
};
|
|
982
|
+
unit?: number;
|
|
983
|
+
ingredients?: Record<string, any>[];
|
|
984
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
985
|
+
certified?: {
|
|
986
|
+
vegan?: boolean;
|
|
987
|
+
vegetarian?: boolean;
|
|
988
|
+
seafood_watch?: boolean;
|
|
989
|
+
wellbeing?: boolean;
|
|
990
|
+
farm_to_fork?: boolean;
|
|
991
|
+
in_balance?: boolean;
|
|
992
|
+
organic?: boolean;
|
|
993
|
+
no_gluten_ingredients?: boolean;
|
|
994
|
+
halal?: boolean;
|
|
995
|
+
kosher?: boolean;
|
|
996
|
+
humane?: boolean;
|
|
997
|
+
locally_crafted?: boolean;
|
|
998
|
+
nuts?: boolean;
|
|
999
|
+
oracle_garden_grown?: boolean;
|
|
1000
|
+
oracle_oyes?: boolean;
|
|
1001
|
+
peanut_free?: boolean;
|
|
1002
|
+
tree_nut_free?: boolean;
|
|
1003
|
+
wheat_free?: boolean;
|
|
1004
|
+
non_gmo?: boolean;
|
|
1005
|
+
milk_free?: boolean;
|
|
1006
|
+
egg_free?: boolean;
|
|
1007
|
+
soy_free?: boolean;
|
|
1008
|
+
fair_trade?: boolean;
|
|
1009
|
+
rainforest_alliance?: boolean;
|
|
1010
|
+
salt_free?: boolean;
|
|
1011
|
+
};
|
|
1012
|
+
options?: ConsumerOptionsGroup[];
|
|
1013
|
+
required?: boolean;
|
|
1014
|
+
special?: boolean;
|
|
1015
|
+
category?: {
|
|
1016
|
+
en?: string;
|
|
1017
|
+
};
|
|
1018
|
+
location?: string;
|
|
1019
|
+
sku?: number;
|
|
1020
|
+
item_number?: number;
|
|
1021
|
+
image?: {
|
|
1022
|
+
src?: string;
|
|
1023
|
+
sizes: {
|
|
1024
|
+
original?: string;
|
|
1025
|
+
thumbnail_80_80?: string;
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
weight?: {
|
|
1029
|
+
unit?: string;
|
|
1030
|
+
amount?: number;
|
|
1031
|
+
};
|
|
1032
|
+
line_route?: string;
|
|
1033
|
+
reporting?: {
|
|
1034
|
+
category: {
|
|
1035
|
+
primary?: string;
|
|
1036
|
+
secondary?: string;
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
is_deleted?: boolean;
|
|
1040
|
+
is?: {
|
|
1041
|
+
disabled?: boolean;
|
|
1042
|
+
hidden?: boolean;
|
|
1043
|
+
meq_eligible?: boolean;
|
|
1044
|
+
out_of_stock?: boolean;
|
|
1045
|
+
deleted?: boolean;
|
|
1046
|
+
featured?: boolean;
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
685
1049
|
export interface GetConsumerMenuItemsResponse {
|
|
686
1050
|
meta?: Record<string, any>;
|
|
687
|
-
items:
|
|
1051
|
+
items: ConsumerItem[];
|
|
688
1052
|
}
|
|
689
1053
|
export interface PostConsumerRecommendedRequest {
|
|
690
1054
|
excludedItems: string[];
|
|
@@ -692,11 +1056,19 @@ export interface PostConsumerRecommendedRequest {
|
|
|
692
1056
|
export interface PostConsumerRecommendedResponse {
|
|
693
1057
|
items: string[];
|
|
694
1058
|
}
|
|
1059
|
+
export interface ConsumerTimeslot {
|
|
1060
|
+
id?: number;
|
|
1061
|
+
brand_id?: string;
|
|
1062
|
+
start_time?: string;
|
|
1063
|
+
duration?: string;
|
|
1064
|
+
is_available?: boolean;
|
|
1065
|
+
number_orders?: number;
|
|
1066
|
+
}
|
|
695
1067
|
export interface PostConsumerLocationMarketplaceTimeslotsResponse {
|
|
696
|
-
timeslots?:
|
|
1068
|
+
timeslots?: ConsumerTimeslot[];
|
|
697
1069
|
}
|
|
698
1070
|
export interface PostConsumerLocationMarketplaceTimeslotsDeliveryResponse {
|
|
699
|
-
timeslots?:
|
|
1071
|
+
timeslots?: ConsumerTimeslot[];
|
|
700
1072
|
}
|
|
701
1073
|
export interface ConsumerDeleteUserResponse {
|
|
702
1074
|
success: boolean;
|
|
@@ -708,6 +1080,41 @@ export interface PostConsumerUserChangePasswordRequest {
|
|
|
708
1080
|
password: string;
|
|
709
1081
|
new_password: string;
|
|
710
1082
|
}
|
|
1083
|
+
export interface ConsumerCashlessLog {
|
|
1084
|
+
added?: string;
|
|
1085
|
+
deleted?: string;
|
|
1086
|
+
}
|
|
1087
|
+
export interface ConsumerUserMeta {
|
|
1088
|
+
marketing_opt_in?: boolean;
|
|
1089
|
+
marketing_opt_in_date?: string;
|
|
1090
|
+
marketing_opt_in_source?: Record<string, any>;
|
|
1091
|
+
order_status_notification?: {
|
|
1092
|
+
send_emails?: boolean;
|
|
1093
|
+
send_emails_date_updated?: string;
|
|
1094
|
+
};
|
|
1095
|
+
mealplan_added_date?: string;
|
|
1096
|
+
login_limit?: {
|
|
1097
|
+
login_attempts?: number;
|
|
1098
|
+
last_attempt_date?: string;
|
|
1099
|
+
};
|
|
1100
|
+
password_verification?: {
|
|
1101
|
+
attempts?: number;
|
|
1102
|
+
first_attempted?: string;
|
|
1103
|
+
};
|
|
1104
|
+
phone_verification?: {
|
|
1105
|
+
verification_code?: string;
|
|
1106
|
+
date_generated?: number;
|
|
1107
|
+
failed_attempts?: number;
|
|
1108
|
+
consecutive_failed_attempts?: number;
|
|
1109
|
+
};
|
|
1110
|
+
cashless?: {
|
|
1111
|
+
stipend?: ConsumerCashlessLog;
|
|
1112
|
+
voucher?: ConsumerCashlessLog;
|
|
1113
|
+
badge_pay?: ConsumerCashlessLog;
|
|
1114
|
+
coupon_voucher?: ConsumerCashlessLog;
|
|
1115
|
+
};
|
|
1116
|
+
last_location?: string;
|
|
1117
|
+
}
|
|
711
1118
|
export interface PostConsumerUserChangePasswordResponse {
|
|
712
1119
|
id: string;
|
|
713
1120
|
email: string;
|
|
@@ -720,12 +1127,17 @@ export interface PostConsumerUserChangePasswordResponse {
|
|
|
720
1127
|
modified?: string;
|
|
721
1128
|
};
|
|
722
1129
|
gender?: Record<string, any>;
|
|
723
|
-
meta?:
|
|
1130
|
+
meta?: ConsumerUserMeta;
|
|
724
1131
|
is?: {
|
|
725
1132
|
locked_out?: boolean;
|
|
726
1133
|
verified?: boolean;
|
|
727
1134
|
};
|
|
728
1135
|
}
|
|
1136
|
+
export type ConsumerAcl = Record<string, any>;
|
|
1137
|
+
export interface ConsumerScopes {
|
|
1138
|
+
scopes?: string[];
|
|
1139
|
+
acl?: ConsumerAcl;
|
|
1140
|
+
}
|
|
729
1141
|
export interface PutConsumerUserRequest {
|
|
730
1142
|
id?: string;
|
|
731
1143
|
email?: string;
|
|
@@ -743,7 +1155,7 @@ export interface PutConsumerUserRequest {
|
|
|
743
1155
|
phone_country_code?: string;
|
|
744
1156
|
realm?: string;
|
|
745
1157
|
gender?: Record<string, any>;
|
|
746
|
-
meta?:
|
|
1158
|
+
meta?: ConsumerUserMeta;
|
|
747
1159
|
is?: {
|
|
748
1160
|
disabled?: boolean;
|
|
749
1161
|
locked_out?: boolean;
|
|
@@ -752,7 +1164,7 @@ export interface PutConsumerUserRequest {
|
|
|
752
1164
|
deleted?: boolean;
|
|
753
1165
|
placeholder?: boolean;
|
|
754
1166
|
};
|
|
755
|
-
permissions?:
|
|
1167
|
+
permissions?: ConsumerScopes;
|
|
756
1168
|
location_group?: string;
|
|
757
1169
|
ssoId?: string;
|
|
758
1170
|
}
|
|
@@ -773,7 +1185,9 @@ export interface PutConsumerUserResponse {
|
|
|
773
1185
|
phone_country_code?: string;
|
|
774
1186
|
realm?: string;
|
|
775
1187
|
gender?: Record<string, any>;
|
|
776
|
-
meta?:
|
|
1188
|
+
meta?: {
|
|
1189
|
+
[index: string]: any;
|
|
1190
|
+
} & ConsumerUserMeta;
|
|
777
1191
|
is?: {
|
|
778
1192
|
disabled?: boolean;
|
|
779
1193
|
locked_out?: boolean;
|
|
@@ -782,7 +1196,7 @@ export interface PutConsumerUserResponse {
|
|
|
782
1196
|
deleted?: boolean;
|
|
783
1197
|
placeholder?: boolean;
|
|
784
1198
|
};
|
|
785
|
-
permissions?:
|
|
1199
|
+
permissions?: ConsumerScopes;
|
|
786
1200
|
location_group?: string;
|
|
787
1201
|
ssoId?: string;
|
|
788
1202
|
}
|
|
@@ -803,7 +1217,9 @@ export interface GetConsumerUserResponse {
|
|
|
803
1217
|
phone_country_code?: string;
|
|
804
1218
|
realm?: string;
|
|
805
1219
|
gender?: Record<string, any>;
|
|
806
|
-
meta?:
|
|
1220
|
+
meta?: {
|
|
1221
|
+
[index: string]: any;
|
|
1222
|
+
} & ConsumerUserMeta;
|
|
807
1223
|
is?: {
|
|
808
1224
|
disabled?: boolean;
|
|
809
1225
|
locked_out?: boolean;
|
|
@@ -812,7 +1228,7 @@ export interface GetConsumerUserResponse {
|
|
|
812
1228
|
deleted?: boolean;
|
|
813
1229
|
placeholder?: boolean;
|
|
814
1230
|
};
|
|
815
|
-
permissions?:
|
|
1231
|
+
permissions?: ConsumerScopes;
|
|
816
1232
|
location_group?: string;
|
|
817
1233
|
ssoId?: string;
|
|
818
1234
|
}
|
|
@@ -934,6 +1350,36 @@ export interface PutConsumerShoppingCartResponse {
|
|
|
934
1350
|
system365?: boolean;
|
|
935
1351
|
};
|
|
936
1352
|
}
|
|
1353
|
+
export interface PostConsumerPromoValidateRequest {
|
|
1354
|
+
code?: string;
|
|
1355
|
+
email?: string;
|
|
1356
|
+
app?: string;
|
|
1357
|
+
realm?: string;
|
|
1358
|
+
location_brand?: string;
|
|
1359
|
+
shoppingcart?: {
|
|
1360
|
+
id?: string;
|
|
1361
|
+
date_created?: string;
|
|
1362
|
+
items?: ShoppingcartItem[];
|
|
1363
|
+
};
|
|
1364
|
+
totals?: {
|
|
1365
|
+
amount?: number;
|
|
1366
|
+
currency?: string;
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
export interface ConsumerAppliedDiscount {
|
|
1370
|
+
type?: string;
|
|
1371
|
+
amount_off?: number;
|
|
1372
|
+
percent_off?: number;
|
|
1373
|
+
amount_limit?: number;
|
|
1374
|
+
}
|
|
1375
|
+
export interface ConsumerVoucher {
|
|
1376
|
+
provider?: Record<string, any>;
|
|
1377
|
+
code?: string;
|
|
1378
|
+
valid?: boolean;
|
|
1379
|
+
discount?: ConsumerAppliedDiscount;
|
|
1380
|
+
app?: string;
|
|
1381
|
+
provider_data?: ShoppingcartFPValidationData;
|
|
1382
|
+
}
|
|
937
1383
|
export interface HealthCheckControllerExecuteQuery {
|
|
938
1384
|
_query?: string;
|
|
939
1385
|
}
|
|
@@ -1093,4 +1539,6 @@ export interface PutConsumerShoppingcartPath {
|
|
|
1093
1539
|
}
|
|
1094
1540
|
export type PutConsumerShoppingcartBody = PutConsumerShoppingCartItemsRequest;
|
|
1095
1541
|
export type PutConsumerShoppingcartResponse = PutConsumerShoppingCartResponse;
|
|
1542
|
+
export type PostConsumerPromoValidateBody = PostConsumerPromoValidateRequest;
|
|
1543
|
+
export type PostConsumerPromoValidateResponse = ConsumerVoucher;
|
|
1096
1544
|
//# sourceMappingURL=consumer.d.ts.map
|