@compassdigital/sdk.typescript 4.113.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 +23 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +27 -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/location.d.ts +14 -0
- package/lib/interface/location.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 +66 -0
- package/src/interface/consumer.ts +508 -22
- package/src/interface/location.ts +24 -0
- package/src/interface/mealplan.ts +9 -3
|
@@ -161,8 +161,8 @@ export interface OrderMeta {
|
|
|
161
161
|
|
|
162
162
|
export interface CustomerOrderBrandDTO {
|
|
163
163
|
id: string;
|
|
164
|
-
name
|
|
165
|
-
location_description
|
|
164
|
+
name?: string;
|
|
165
|
+
location_description?: string;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export interface OrderDate {
|
|
@@ -780,13 +780,247 @@ export interface HeroImage {
|
|
|
780
780
|
images: string[];
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
+
export interface HomePageOrder {
|
|
784
|
+
meta?: {
|
|
785
|
+
[index: string]: any;
|
|
786
|
+
} & OrderMeta;
|
|
787
|
+
id?: string;
|
|
788
|
+
reorder_eligibility?:
|
|
789
|
+
| 'eligible'
|
|
790
|
+
| 'order_type_ineligible'
|
|
791
|
+
| 'location_ineligible'
|
|
792
|
+
| 'active_order'
|
|
793
|
+
| 'old_order'
|
|
794
|
+
| 'marketplace_order'
|
|
795
|
+
| 'duplicate_order'
|
|
796
|
+
| 'brand_unavailable'
|
|
797
|
+
| 'menu_unavailable'
|
|
798
|
+
| 'items_unavailable'
|
|
799
|
+
| 'refunded_order'
|
|
800
|
+
| 'modifiers_unavailable'
|
|
801
|
+
| 'modified_items'
|
|
802
|
+
| 'cancelled_order';
|
|
803
|
+
location_brand?: string;
|
|
804
|
+
location?: string;
|
|
805
|
+
date?: OrderDate;
|
|
806
|
+
details?: OrderDetails;
|
|
807
|
+
requested_date?: string;
|
|
808
|
+
refunds?: OrderRefundItem[];
|
|
809
|
+
customer?: string;
|
|
810
|
+
pickup_id?: string;
|
|
811
|
+
payment?: OrderPayment;
|
|
812
|
+
mealplan?: OrderMealplan;
|
|
813
|
+
meal_swipes?: OrderMealSwipes;
|
|
814
|
+
is?: OrderIs;
|
|
815
|
+
issue?: OrderIssue;
|
|
816
|
+
shoppingcart?: string;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
export interface ConsumerAddress {
|
|
820
|
+
suite?: string;
|
|
821
|
+
address?: string;
|
|
822
|
+
city?: string;
|
|
823
|
+
state?: string;
|
|
824
|
+
country?: string;
|
|
825
|
+
zip?: string;
|
|
826
|
+
coordinates?: {
|
|
827
|
+
latitude?: number;
|
|
828
|
+
longitude?: number;
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface ConsumerMenuHours {
|
|
833
|
+
id?: string;
|
|
834
|
+
label?: {
|
|
835
|
+
en?: string;
|
|
836
|
+
};
|
|
837
|
+
hours?: Record<string, any>[];
|
|
838
|
+
is_pickup?: boolean;
|
|
839
|
+
is_delivery?: boolean;
|
|
840
|
+
is_frictionless?: boolean;
|
|
841
|
+
state?: Record<string, any>;
|
|
842
|
+
is_disabled?: boolean;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export interface ConsumerHours {
|
|
846
|
+
id?: string;
|
|
847
|
+
date?: {
|
|
848
|
+
deleted?: string;
|
|
849
|
+
start?: string;
|
|
850
|
+
end?: string;
|
|
851
|
+
};
|
|
852
|
+
day?: {
|
|
853
|
+
start?: number;
|
|
854
|
+
end?: number;
|
|
855
|
+
};
|
|
856
|
+
hours?: string;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export interface ConsumerDeliveryHours {
|
|
860
|
+
id?: string;
|
|
861
|
+
day?: {
|
|
862
|
+
start?: number;
|
|
863
|
+
end?: number;
|
|
864
|
+
};
|
|
865
|
+
hours?: string;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export interface ConsumerWaitTime {
|
|
869
|
+
max: number;
|
|
870
|
+
min: number;
|
|
871
|
+
ready_time: number;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export interface ConsumerBrand {
|
|
875
|
+
id?: string;
|
|
876
|
+
sector?: string;
|
|
877
|
+
name?: string;
|
|
878
|
+
label?: {
|
|
879
|
+
en?: string;
|
|
880
|
+
fr?: string;
|
|
881
|
+
};
|
|
882
|
+
timezone?: string;
|
|
883
|
+
description?: string;
|
|
884
|
+
latitude?: number;
|
|
885
|
+
longitude?: number;
|
|
886
|
+
address?: ConsumerAddress;
|
|
887
|
+
menus?: ConsumerMenuHours[];
|
|
888
|
+
date?: {
|
|
889
|
+
deleted?: string;
|
|
890
|
+
created?: string;
|
|
891
|
+
};
|
|
892
|
+
hours?: ConsumerHours[];
|
|
893
|
+
deliveryHours?: ConsumerDeliveryHours[];
|
|
894
|
+
style?: {
|
|
895
|
+
logo?: string | null;
|
|
896
|
+
main_logo?: string | null;
|
|
897
|
+
alt_logo?: string | null;
|
|
898
|
+
};
|
|
899
|
+
pos?: string;
|
|
900
|
+
terminals?: Record<string, any>[];
|
|
901
|
+
device_mapping?: Record<string, any>;
|
|
902
|
+
timeslots?: {
|
|
903
|
+
time?: string;
|
|
904
|
+
averagePrepTime?: string;
|
|
905
|
+
duration_minutes?: number;
|
|
906
|
+
customers_per_slot?: number;
|
|
907
|
+
menu_items_per_slot?: number;
|
|
908
|
+
delivery_time?: string;
|
|
909
|
+
delivery_customers_per_slot?: number;
|
|
910
|
+
delivery_menu_items_per_slot?: number;
|
|
911
|
+
delivery_prep_time?: string;
|
|
912
|
+
delivery_is_user_defined?: boolean;
|
|
913
|
+
};
|
|
914
|
+
brand?: string;
|
|
915
|
+
location?: string;
|
|
916
|
+
group?: string;
|
|
917
|
+
payment_provider?: string;
|
|
918
|
+
location_description?: string;
|
|
919
|
+
company?: string;
|
|
920
|
+
config?: {
|
|
921
|
+
private?: Record<string, any>;
|
|
922
|
+
public?: Record<string, any>;
|
|
923
|
+
};
|
|
924
|
+
tax_rate?: number;
|
|
925
|
+
descriptions?: {
|
|
926
|
+
location: {
|
|
927
|
+
en?: string;
|
|
928
|
+
fr?: string;
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
estimated_wait_time?: {
|
|
932
|
+
delivery?: ConsumerWaitTime;
|
|
933
|
+
pickup?: ConsumerWaitTime;
|
|
934
|
+
};
|
|
935
|
+
state?: {
|
|
936
|
+
pickup?: Record<string, any>;
|
|
937
|
+
delivery?: Record<string, any>;
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export interface ConsumerLocation {
|
|
942
|
+
id?: string;
|
|
943
|
+
operation_id?: number;
|
|
944
|
+
name?: string;
|
|
945
|
+
label?: {
|
|
946
|
+
en?: string;
|
|
947
|
+
fr?: string;
|
|
948
|
+
};
|
|
949
|
+
search?: string[];
|
|
950
|
+
app?: string;
|
|
951
|
+
address?: ConsumerAddress;
|
|
952
|
+
latitude?: number;
|
|
953
|
+
longitude?: number;
|
|
954
|
+
brands?: ConsumerBrand[];
|
|
955
|
+
meta?: Record<string, any>;
|
|
956
|
+
phone?: string;
|
|
957
|
+
location_group?: string;
|
|
958
|
+
location_multigroup?: string;
|
|
959
|
+
sector?: string;
|
|
960
|
+
date?: {
|
|
961
|
+
deleted?: string;
|
|
962
|
+
created?: string;
|
|
963
|
+
modified?: string;
|
|
964
|
+
};
|
|
965
|
+
market_place?: {
|
|
966
|
+
label: {
|
|
967
|
+
en?: string;
|
|
968
|
+
fr?: string;
|
|
969
|
+
};
|
|
970
|
+
location_description: {
|
|
971
|
+
en?: string;
|
|
972
|
+
fr?: string;
|
|
973
|
+
};
|
|
974
|
+
logo?: string;
|
|
975
|
+
is: {
|
|
976
|
+
enabled?: boolean;
|
|
977
|
+
pickup_supported?: boolean;
|
|
978
|
+
delivery_supported?: boolean;
|
|
979
|
+
};
|
|
980
|
+
delivery_details: {
|
|
981
|
+
show_single_timeslot?: boolean;
|
|
982
|
+
show_instructions?: boolean;
|
|
983
|
+
runner_app_enabled?: boolean;
|
|
984
|
+
};
|
|
985
|
+
delivery_destinations?: string[];
|
|
986
|
+
pickup_instruction: {
|
|
987
|
+
en?: string;
|
|
988
|
+
fr?: string;
|
|
989
|
+
};
|
|
990
|
+
hours?: ConsumerHours[];
|
|
991
|
+
deliveryHours?: ConsumerDeliveryHours[];
|
|
992
|
+
service_fee: {
|
|
993
|
+
type?: string;
|
|
994
|
+
value?: number;
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export interface ConsumerGroup {
|
|
1000
|
+
id?: string;
|
|
1001
|
+
name?: string;
|
|
1002
|
+
label?: {
|
|
1003
|
+
en?: string;
|
|
1004
|
+
fr?: string;
|
|
1005
|
+
};
|
|
1006
|
+
distance?: number;
|
|
1007
|
+
locations?: ConsumerLocation[];
|
|
1008
|
+
address?: ConsumerAddress;
|
|
1009
|
+
meta?: Record<string, any>;
|
|
1010
|
+
style?: {
|
|
1011
|
+
logo?: string | null;
|
|
1012
|
+
main_logo?: string | null;
|
|
1013
|
+
alt_logo?: string | null;
|
|
1014
|
+
};
|
|
1015
|
+
timezone?: string;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
783
1018
|
export interface HomePageResponse {
|
|
784
1019
|
greetingMessage: DiverseGreetingMessages;
|
|
785
1020
|
heroImages: HeroImage;
|
|
786
1021
|
// array of orders
|
|
787
|
-
orders?:
|
|
788
|
-
|
|
789
|
-
location?: Record<string, any>;
|
|
1022
|
+
orders?: HomePageOrder[];
|
|
1023
|
+
location?: ConsumerGroup;
|
|
790
1024
|
}
|
|
791
1025
|
|
|
792
1026
|
export interface FrictionlessCheckinResponse {
|
|
@@ -863,12 +1097,12 @@ export interface GetConsumerLocationMultiGroupResponse {
|
|
|
863
1097
|
// name
|
|
864
1098
|
name: string;
|
|
865
1099
|
// groups
|
|
866
|
-
groups:
|
|
1100
|
+
groups: ConsumerGroup[];
|
|
867
1101
|
}
|
|
868
1102
|
|
|
869
1103
|
export interface ConsumerGetActiveMenusResponse {
|
|
870
1104
|
// menus
|
|
871
|
-
menus:
|
|
1105
|
+
menus: ConsumerMenuHours[];
|
|
872
1106
|
}
|
|
873
1107
|
|
|
874
1108
|
export interface GetConsumerMenuResponse {
|
|
@@ -883,7 +1117,7 @@ export interface GetConsumerMenuResponse {
|
|
|
883
1117
|
en?: string;
|
|
884
1118
|
};
|
|
885
1119
|
// menu groups
|
|
886
|
-
groups:
|
|
1120
|
+
groups: ConsumerGroup[];
|
|
887
1121
|
// menu parent id
|
|
888
1122
|
parent_id: string;
|
|
889
1123
|
// menu location brand
|
|
@@ -910,11 +1144,166 @@ export interface GetConsumerMenuResponse {
|
|
|
910
1144
|
meta?: Record<string, any>;
|
|
911
1145
|
}
|
|
912
1146
|
|
|
1147
|
+
export interface ConsumerOption {
|
|
1148
|
+
id?: string;
|
|
1149
|
+
label?: {
|
|
1150
|
+
en?: string;
|
|
1151
|
+
};
|
|
1152
|
+
name?: string;
|
|
1153
|
+
description?: {
|
|
1154
|
+
en?: string;
|
|
1155
|
+
};
|
|
1156
|
+
price?: {
|
|
1157
|
+
amount?: number;
|
|
1158
|
+
currency?: string;
|
|
1159
|
+
};
|
|
1160
|
+
reporting?: {
|
|
1161
|
+
category: {
|
|
1162
|
+
primary?: string;
|
|
1163
|
+
secondary?: string;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
weight?: {
|
|
1167
|
+
unit?: string;
|
|
1168
|
+
amount?: number;
|
|
1169
|
+
};
|
|
1170
|
+
image?: {
|
|
1171
|
+
src?: string;
|
|
1172
|
+
sizes: {
|
|
1173
|
+
original?: string;
|
|
1174
|
+
thumbnail_80_80?: string;
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
sku?: number;
|
|
1178
|
+
nutrition?: {
|
|
1179
|
+
kcal?: number;
|
|
1180
|
+
calories?: Record<string, any>;
|
|
1181
|
+
};
|
|
1182
|
+
certified?: {
|
|
1183
|
+
vegan?: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
is?: {
|
|
1186
|
+
disabled?: boolean;
|
|
1187
|
+
hidden?: boolean;
|
|
1188
|
+
out_of_stock?: boolean;
|
|
1189
|
+
};
|
|
1190
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
1191
|
+
line_route?: string;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export interface ConsumerOptionsGroup {
|
|
1195
|
+
id?: string;
|
|
1196
|
+
label?: {
|
|
1197
|
+
en?: string;
|
|
1198
|
+
};
|
|
1199
|
+
unique_name?: string;
|
|
1200
|
+
name?: string;
|
|
1201
|
+
items?: ConsumerOption[];
|
|
1202
|
+
min?: number;
|
|
1203
|
+
max?: number;
|
|
1204
|
+
is?: {
|
|
1205
|
+
disabled?: boolean;
|
|
1206
|
+
hidden?: boolean;
|
|
1207
|
+
out_of_stock?: boolean;
|
|
1208
|
+
incremental?: boolean;
|
|
1209
|
+
surcharge_limit?: boolean;
|
|
1210
|
+
};
|
|
1211
|
+
limit?: number;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
export interface ConsumerItem {
|
|
1215
|
+
id?: string;
|
|
1216
|
+
label?: {
|
|
1217
|
+
en?: string;
|
|
1218
|
+
};
|
|
1219
|
+
name?: string;
|
|
1220
|
+
description?: {
|
|
1221
|
+
en?: string;
|
|
1222
|
+
};
|
|
1223
|
+
price?: {
|
|
1224
|
+
amount?: number;
|
|
1225
|
+
currency?: string;
|
|
1226
|
+
total_price?: number;
|
|
1227
|
+
discount?: number;
|
|
1228
|
+
};
|
|
1229
|
+
meal_value?: number;
|
|
1230
|
+
sale_price?: {
|
|
1231
|
+
amount?: number;
|
|
1232
|
+
currency?: string;
|
|
1233
|
+
};
|
|
1234
|
+
unit?: number;
|
|
1235
|
+
ingredients?: Record<string, any>[];
|
|
1236
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
1237
|
+
certified?: {
|
|
1238
|
+
vegan?: boolean;
|
|
1239
|
+
vegetarian?: boolean;
|
|
1240
|
+
seafood_watch?: boolean;
|
|
1241
|
+
wellbeing?: boolean;
|
|
1242
|
+
farm_to_fork?: boolean;
|
|
1243
|
+
in_balance?: boolean;
|
|
1244
|
+
organic?: boolean;
|
|
1245
|
+
no_gluten_ingredients?: boolean;
|
|
1246
|
+
halal?: boolean;
|
|
1247
|
+
kosher?: boolean;
|
|
1248
|
+
humane?: boolean;
|
|
1249
|
+
locally_crafted?: boolean;
|
|
1250
|
+
nuts?: boolean;
|
|
1251
|
+
oracle_garden_grown?: boolean;
|
|
1252
|
+
oracle_oyes?: boolean;
|
|
1253
|
+
peanut_free?: boolean;
|
|
1254
|
+
tree_nut_free?: boolean;
|
|
1255
|
+
wheat_free?: boolean;
|
|
1256
|
+
non_gmo?: boolean;
|
|
1257
|
+
milk_free?: boolean;
|
|
1258
|
+
egg_free?: boolean;
|
|
1259
|
+
soy_free?: boolean;
|
|
1260
|
+
fair_trade?: boolean;
|
|
1261
|
+
rainforest_alliance?: boolean;
|
|
1262
|
+
salt_free?: boolean;
|
|
1263
|
+
};
|
|
1264
|
+
options?: ConsumerOptionsGroup[];
|
|
1265
|
+
required?: boolean;
|
|
1266
|
+
special?: boolean;
|
|
1267
|
+
category?: {
|
|
1268
|
+
en?: string;
|
|
1269
|
+
};
|
|
1270
|
+
location?: string;
|
|
1271
|
+
sku?: number;
|
|
1272
|
+
item_number?: number;
|
|
1273
|
+
image?: {
|
|
1274
|
+
src?: string;
|
|
1275
|
+
sizes: {
|
|
1276
|
+
original?: string;
|
|
1277
|
+
thumbnail_80_80?: string;
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
weight?: {
|
|
1281
|
+
unit?: string;
|
|
1282
|
+
amount?: number;
|
|
1283
|
+
};
|
|
1284
|
+
line_route?: string;
|
|
1285
|
+
reporting?: {
|
|
1286
|
+
category: {
|
|
1287
|
+
primary?: string;
|
|
1288
|
+
secondary?: string;
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
is_deleted?: boolean;
|
|
1292
|
+
is?: {
|
|
1293
|
+
disabled?: boolean;
|
|
1294
|
+
hidden?: boolean;
|
|
1295
|
+
meq_eligible?: boolean;
|
|
1296
|
+
out_of_stock?: boolean;
|
|
1297
|
+
deleted?: boolean;
|
|
1298
|
+
featured?: boolean;
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
|
|
913
1302
|
export interface GetConsumerMenuItemsResponse {
|
|
914
1303
|
// meta
|
|
915
1304
|
meta?: Record<string, any>;
|
|
916
1305
|
// items
|
|
917
|
-
items:
|
|
1306
|
+
items: ConsumerItem[];
|
|
918
1307
|
}
|
|
919
1308
|
|
|
920
1309
|
export interface PostConsumerRecommendedRequest {
|
|
@@ -927,14 +1316,23 @@ export interface PostConsumerRecommendedResponse {
|
|
|
927
1316
|
items: string[];
|
|
928
1317
|
}
|
|
929
1318
|
|
|
1319
|
+
export interface ConsumerTimeslot {
|
|
1320
|
+
id?: number;
|
|
1321
|
+
brand_id?: string;
|
|
1322
|
+
start_time?: string;
|
|
1323
|
+
duration?: string;
|
|
1324
|
+
is_available?: boolean;
|
|
1325
|
+
number_orders?: number;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
930
1328
|
export interface PostConsumerLocationMarketplaceTimeslotsResponse {
|
|
931
1329
|
// The timeslots
|
|
932
|
-
timeslots?:
|
|
1330
|
+
timeslots?: ConsumerTimeslot[];
|
|
933
1331
|
}
|
|
934
1332
|
|
|
935
1333
|
export interface PostConsumerLocationMarketplaceTimeslotsDeliveryResponse {
|
|
936
1334
|
// The timeslots
|
|
937
|
-
timeslots?:
|
|
1335
|
+
timeslots?: ConsumerTimeslot[];
|
|
938
1336
|
}
|
|
939
1337
|
|
|
940
1338
|
export interface ConsumerDeleteUserResponse {
|
|
@@ -954,6 +1352,43 @@ export interface PostConsumerUserChangePasswordRequest {
|
|
|
954
1352
|
new_password: string;
|
|
955
1353
|
}
|
|
956
1354
|
|
|
1355
|
+
export interface ConsumerCashlessLog {
|
|
1356
|
+
added?: string;
|
|
1357
|
+
deleted?: string;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
export interface ConsumerUserMeta {
|
|
1361
|
+
marketing_opt_in?: boolean;
|
|
1362
|
+
marketing_opt_in_date?: string;
|
|
1363
|
+
marketing_opt_in_source?: Record<string, any>;
|
|
1364
|
+
order_status_notification?: {
|
|
1365
|
+
send_emails?: boolean;
|
|
1366
|
+
send_emails_date_updated?: string;
|
|
1367
|
+
};
|
|
1368
|
+
mealplan_added_date?: string;
|
|
1369
|
+
login_limit?: {
|
|
1370
|
+
login_attempts?: number;
|
|
1371
|
+
last_attempt_date?: string;
|
|
1372
|
+
};
|
|
1373
|
+
password_verification?: {
|
|
1374
|
+
attempts?: number;
|
|
1375
|
+
first_attempted?: string;
|
|
1376
|
+
};
|
|
1377
|
+
phone_verification?: {
|
|
1378
|
+
verification_code?: string;
|
|
1379
|
+
date_generated?: number;
|
|
1380
|
+
failed_attempts?: number;
|
|
1381
|
+
consecutive_failed_attempts?: number;
|
|
1382
|
+
};
|
|
1383
|
+
cashless?: {
|
|
1384
|
+
stipend?: ConsumerCashlessLog;
|
|
1385
|
+
voucher?: ConsumerCashlessLog;
|
|
1386
|
+
badge_pay?: ConsumerCashlessLog;
|
|
1387
|
+
coupon_voucher?: ConsumerCashlessLog;
|
|
1388
|
+
};
|
|
1389
|
+
last_location?: string;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
957
1392
|
export interface PostConsumerUserChangePasswordResponse {
|
|
958
1393
|
// The ID of the user
|
|
959
1394
|
id: string;
|
|
@@ -969,13 +1404,20 @@ export interface PostConsumerUserChangePasswordResponse {
|
|
|
969
1404
|
};
|
|
970
1405
|
// The gender of the user
|
|
971
1406
|
gender?: Record<string, any>;
|
|
972
|
-
meta?:
|
|
1407
|
+
meta?: ConsumerUserMeta;
|
|
973
1408
|
is?: {
|
|
974
1409
|
locked_out?: boolean;
|
|
975
1410
|
verified?: boolean;
|
|
976
1411
|
};
|
|
977
1412
|
}
|
|
978
1413
|
|
|
1414
|
+
export type ConsumerAcl = Record<string, any>;
|
|
1415
|
+
|
|
1416
|
+
export interface ConsumerScopes {
|
|
1417
|
+
scopes?: string[];
|
|
1418
|
+
acl?: ConsumerAcl;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
979
1421
|
export interface PutConsumerUserRequest {
|
|
980
1422
|
id?: string;
|
|
981
1423
|
email?: string;
|
|
@@ -993,7 +1435,7 @@ export interface PutConsumerUserRequest {
|
|
|
993
1435
|
phone_country_code?: string;
|
|
994
1436
|
realm?: string;
|
|
995
1437
|
gender?: Record<string, any>;
|
|
996
|
-
meta?:
|
|
1438
|
+
meta?: ConsumerUserMeta;
|
|
997
1439
|
is?: {
|
|
998
1440
|
disabled?: boolean;
|
|
999
1441
|
locked_out?: boolean;
|
|
@@ -1002,7 +1444,7 @@ export interface PutConsumerUserRequest {
|
|
|
1002
1444
|
deleted?: boolean;
|
|
1003
1445
|
placeholder?: boolean;
|
|
1004
1446
|
};
|
|
1005
|
-
permissions?:
|
|
1447
|
+
permissions?: ConsumerScopes;
|
|
1006
1448
|
location_group?: string;
|
|
1007
1449
|
ssoId?: string;
|
|
1008
1450
|
}
|
|
@@ -1032,8 +1474,9 @@ export interface PutConsumerUserResponse {
|
|
|
1032
1474
|
realm?: string;
|
|
1033
1475
|
// The gender of the user
|
|
1034
1476
|
gender?: Record<string, any>;
|
|
1035
|
-
|
|
1036
|
-
|
|
1477
|
+
meta?: {
|
|
1478
|
+
[index: string]: any;
|
|
1479
|
+
} & ConsumerUserMeta;
|
|
1037
1480
|
is?: {
|
|
1038
1481
|
disabled?: boolean;
|
|
1039
1482
|
locked_out?: boolean;
|
|
@@ -1042,8 +1485,7 @@ export interface PutConsumerUserResponse {
|
|
|
1042
1485
|
deleted?: boolean;
|
|
1043
1486
|
placeholder?: boolean;
|
|
1044
1487
|
};
|
|
1045
|
-
|
|
1046
|
-
permissions?: Record<string, any>;
|
|
1488
|
+
permissions?: ConsumerScopes;
|
|
1047
1489
|
// The location group of the user
|
|
1048
1490
|
location_group?: string;
|
|
1049
1491
|
// The ssoId of the user
|
|
@@ -1075,8 +1517,9 @@ export interface GetConsumerUserResponse {
|
|
|
1075
1517
|
realm?: string;
|
|
1076
1518
|
// The gender of the user
|
|
1077
1519
|
gender?: Record<string, any>;
|
|
1078
|
-
|
|
1079
|
-
|
|
1520
|
+
meta?: {
|
|
1521
|
+
[index: string]: any;
|
|
1522
|
+
} & ConsumerUserMeta;
|
|
1080
1523
|
is?: {
|
|
1081
1524
|
disabled?: boolean;
|
|
1082
1525
|
locked_out?: boolean;
|
|
@@ -1085,8 +1528,7 @@ export interface GetConsumerUserResponse {
|
|
|
1085
1528
|
deleted?: boolean;
|
|
1086
1529
|
placeholder?: boolean;
|
|
1087
1530
|
};
|
|
1088
|
-
|
|
1089
|
-
permissions?: Record<string, any>;
|
|
1531
|
+
permissions?: ConsumerScopes;
|
|
1090
1532
|
// The location group of the user
|
|
1091
1533
|
location_group?: string;
|
|
1092
1534
|
// The ssoId of the user
|
|
@@ -1217,6 +1659,44 @@ export interface PutConsumerShoppingCartResponse {
|
|
|
1217
1659
|
};
|
|
1218
1660
|
}
|
|
1219
1661
|
|
|
1662
|
+
export interface PostConsumerPromoValidateRequest {
|
|
1663
|
+
// The code of the promo voucher
|
|
1664
|
+
code?: string;
|
|
1665
|
+
// The email of the customer
|
|
1666
|
+
email?: string;
|
|
1667
|
+
// The app of the customer
|
|
1668
|
+
app?: string;
|
|
1669
|
+
// The realm of the customer
|
|
1670
|
+
realm?: string;
|
|
1671
|
+
// The location brand of the customer
|
|
1672
|
+
location_brand?: string;
|
|
1673
|
+
shoppingcart?: {
|
|
1674
|
+
id?: string;
|
|
1675
|
+
date_created?: string;
|
|
1676
|
+
items?: ShoppingcartItem[];
|
|
1677
|
+
};
|
|
1678
|
+
totals?: {
|
|
1679
|
+
amount?: number;
|
|
1680
|
+
currency?: string;
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
export interface ConsumerAppliedDiscount {
|
|
1685
|
+
type?: string;
|
|
1686
|
+
amount_off?: number;
|
|
1687
|
+
percent_off?: number;
|
|
1688
|
+
amount_limit?: number;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
export interface ConsumerVoucher {
|
|
1692
|
+
provider?: Record<string, any>;
|
|
1693
|
+
code?: string;
|
|
1694
|
+
valid?: boolean;
|
|
1695
|
+
discount?: ConsumerAppliedDiscount;
|
|
1696
|
+
app?: string;
|
|
1697
|
+
provider_data?: ShoppingcartFPValidationData;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1220
1700
|
// GET /consumer/v1/health-check
|
|
1221
1701
|
|
|
1222
1702
|
export interface HealthCheckControllerExecuteQuery {
|
|
@@ -1548,3 +2028,9 @@ export interface PutConsumerShoppingcartPath {
|
|
|
1548
2028
|
export type PutConsumerShoppingcartBody = PutConsumerShoppingCartItemsRequest;
|
|
1549
2029
|
|
|
1550
2030
|
export type PutConsumerShoppingcartResponse = PutConsumerShoppingCartResponse;
|
|
2031
|
+
|
|
2032
|
+
// POST /consumer/promo/validate - Validate a promo voucher
|
|
2033
|
+
|
|
2034
|
+
export type PostConsumerPromoValidateBody = PostConsumerPromoValidateRequest;
|
|
2035
|
+
|
|
2036
|
+
export type PostConsumerPromoValidateResponse = ConsumerVoucher;
|
|
@@ -602,6 +602,18 @@ export interface PatchLocationRequest extends BaseRequest, PatchLocationPath {
|
|
|
602
602
|
body: PatchLocationBody;
|
|
603
603
|
}
|
|
604
604
|
|
|
605
|
+
// POST /location/batch-get - Get multiple locations by their IDs
|
|
606
|
+
|
|
607
|
+
export interface PostLocationBatchGetBody {
|
|
608
|
+
ids?: string[];
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export type PostLocationBatchGetResponse = Locations;
|
|
612
|
+
|
|
613
|
+
export interface PostLocationBatchGetRequest extends BaseRequest {
|
|
614
|
+
body: PostLocationBatchGetBody;
|
|
615
|
+
}
|
|
616
|
+
|
|
605
617
|
// GET /location/multigroup - Get all the top level multigroups
|
|
606
618
|
|
|
607
619
|
export interface GetLocationMultigroupsQuery {
|
|
@@ -830,6 +842,18 @@ export interface PatchLocationGroupRequest extends BaseRequest, PatchLocationGro
|
|
|
830
842
|
body: PatchLocationGroupBody;
|
|
831
843
|
}
|
|
832
844
|
|
|
845
|
+
// POST /location/group/batch-get - Get multiple location groups by their IDs
|
|
846
|
+
|
|
847
|
+
export interface PostLocationGroupBatchGetBody {
|
|
848
|
+
ids?: string[];
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
export type PostLocationGroupBatchGetResponse = Groups;
|
|
852
|
+
|
|
853
|
+
export interface PostLocationGroupBatchGetRequest extends BaseRequest {
|
|
854
|
+
body: PostLocationGroupBatchGetBody;
|
|
855
|
+
}
|
|
856
|
+
|
|
833
857
|
// GET /location/group/{id}/waittimes - Get an individual Group's estimated wait times based on id
|
|
834
858
|
|
|
835
859
|
export interface GetLocationGroupWaittimesPath {
|
|
@@ -217,7 +217,9 @@ export interface DeleteMealplanTenderBody {
|
|
|
217
217
|
type?: string;
|
|
218
218
|
conversion_amount?: number;
|
|
219
219
|
terminal_id?: string;
|
|
220
|
-
|
|
220
|
+
overrides?: {
|
|
221
|
+
credentials?: string;
|
|
222
|
+
};
|
|
221
223
|
drain_order_type?: {
|
|
222
224
|
taxable?: boolean;
|
|
223
225
|
tax_exempt?: boolean;
|
|
@@ -257,7 +259,9 @@ export interface PatchMealplanTenderBody {
|
|
|
257
259
|
// Amount for order paid by user
|
|
258
260
|
transaction_amount?: number;
|
|
259
261
|
terminal_id?: string;
|
|
260
|
-
|
|
262
|
+
overrides?: {
|
|
263
|
+
credentials?: string;
|
|
264
|
+
};
|
|
261
265
|
}
|
|
262
266
|
|
|
263
267
|
export type PatchMealplanTenderResponse = Tender;
|
|
@@ -276,7 +280,9 @@ export interface PostMealplanTenderPath {
|
|
|
276
280
|
}
|
|
277
281
|
|
|
278
282
|
export interface PostMealplanTenderBody {
|
|
279
|
-
|
|
283
|
+
overrides?: {
|
|
284
|
+
credentials?: string;
|
|
285
|
+
};
|
|
280
286
|
}
|
|
281
287
|
|
|
282
288
|
export type PostMealplanTenderResponse = Tender;
|