@compassdigital/sdk.typescript 4.111.0 → 4.113.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 +109 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +118 -7
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +21 -14
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +329 -15
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +11 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +12 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +34 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/package.json +6 -3
- package/src/index.ts +300 -12
- package/src/interface/centricos.ts +23 -22
- package/src/interface/consumer.ts +465 -26
- package/src/interface/mealplan.ts +19 -0
- package/src/interface/menu.ts +12 -0
- package/src/interface/shoppingcart.ts +40 -0
- package/lib/interface/delivery.d.ts +0 -92
- package/lib/interface/delivery.d.ts.map +0 -1
- package/lib/interface/delivery.js +0 -5
- package/lib/interface/delivery.js.map +0 -1
- package/src/interface/delivery.ts +0 -143
|
@@ -488,7 +488,7 @@ export interface ShoppingcartItem {
|
|
|
488
488
|
export interface ShoppingcartDiscountIncentives {
|
|
489
489
|
id?: string;
|
|
490
490
|
program?: {
|
|
491
|
-
code
|
|
491
|
+
code?: string;
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
|
|
@@ -762,18 +762,6 @@ export interface PostReviewOrderItemsResponseDTO {
|
|
|
762
762
|
reviews: OrderItemReview[];
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
export interface HomePageRequest {
|
|
766
|
-
// site id
|
|
767
|
-
siteId: string;
|
|
768
|
-
// start date as a long
|
|
769
|
-
start: number;
|
|
770
|
-
// end date as a long
|
|
771
|
-
end: number;
|
|
772
|
-
// current date as a long
|
|
773
|
-
date: number;
|
|
774
|
-
reorderEligible: boolean;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
765
|
export interface LocalizedGreetingMessage {
|
|
778
766
|
en: string;
|
|
779
767
|
fr: string;
|
|
@@ -795,9 +783,10 @@ export interface HeroImage {
|
|
|
795
783
|
export interface HomePageResponse {
|
|
796
784
|
greetingMessage: DiverseGreetingMessages;
|
|
797
785
|
heroImages: HeroImage;
|
|
798
|
-
|
|
786
|
+
// array of orders
|
|
787
|
+
orders?: Record<string, any>[];
|
|
799
788
|
// location object for the site
|
|
800
|
-
location
|
|
789
|
+
location?: Record<string, any>;
|
|
801
790
|
}
|
|
802
791
|
|
|
803
792
|
export interface FrictionlessCheckinResponse {
|
|
@@ -921,6 +910,313 @@ export interface GetConsumerMenuResponse {
|
|
|
921
910
|
meta?: Record<string, any>;
|
|
922
911
|
}
|
|
923
912
|
|
|
913
|
+
export interface GetConsumerMenuItemsResponse {
|
|
914
|
+
// meta
|
|
915
|
+
meta?: Record<string, any>;
|
|
916
|
+
// items
|
|
917
|
+
items: Record<string, any>[];
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
export interface PostConsumerRecommendedRequest {
|
|
921
|
+
// excluded items
|
|
922
|
+
excludedItems: string[];
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export interface PostConsumerRecommendedResponse {
|
|
926
|
+
// items
|
|
927
|
+
items: string[];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
export interface PostConsumerLocationMarketplaceTimeslotsResponse {
|
|
931
|
+
// The timeslots
|
|
932
|
+
timeslots?: Record<string, any>[];
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export interface PostConsumerLocationMarketplaceTimeslotsDeliveryResponse {
|
|
936
|
+
// The timeslots
|
|
937
|
+
timeslots?: Record<string, any>[];
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export interface ConsumerDeleteUserResponse {
|
|
941
|
+
// success
|
|
942
|
+
success: boolean;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
export interface ConsumerDeleteUserLogoutResponse {
|
|
946
|
+
// success
|
|
947
|
+
success: boolean;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export interface PostConsumerUserChangePasswordRequest {
|
|
951
|
+
// password
|
|
952
|
+
password: string;
|
|
953
|
+
// new_password
|
|
954
|
+
new_password: string;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export interface PostConsumerUserChangePasswordResponse {
|
|
958
|
+
// The ID of the user
|
|
959
|
+
id: string;
|
|
960
|
+
// The email of the user
|
|
961
|
+
email: string;
|
|
962
|
+
name?: {
|
|
963
|
+
first?: string;
|
|
964
|
+
last?: string;
|
|
965
|
+
};
|
|
966
|
+
date?: {
|
|
967
|
+
created?: string;
|
|
968
|
+
modified?: string;
|
|
969
|
+
};
|
|
970
|
+
// The gender of the user
|
|
971
|
+
gender?: Record<string, any>;
|
|
972
|
+
meta?: Record<string, any>;
|
|
973
|
+
is?: {
|
|
974
|
+
locked_out?: boolean;
|
|
975
|
+
verified?: boolean;
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export interface PutConsumerUserRequest {
|
|
980
|
+
id?: string;
|
|
981
|
+
email?: string;
|
|
982
|
+
name?: {
|
|
983
|
+
first?: string;
|
|
984
|
+
last?: string;
|
|
985
|
+
};
|
|
986
|
+
date?: {
|
|
987
|
+
created?: string;
|
|
988
|
+
modified?: string;
|
|
989
|
+
};
|
|
990
|
+
birthday?: string;
|
|
991
|
+
password?: string;
|
|
992
|
+
phone?: number;
|
|
993
|
+
phone_country_code?: string;
|
|
994
|
+
realm?: string;
|
|
995
|
+
gender?: Record<string, any>;
|
|
996
|
+
meta?: Record<string, any>;
|
|
997
|
+
is?: {
|
|
998
|
+
disabled?: boolean;
|
|
999
|
+
locked_out?: boolean;
|
|
1000
|
+
verified?: boolean;
|
|
1001
|
+
phone_verified?: boolean;
|
|
1002
|
+
deleted?: boolean;
|
|
1003
|
+
placeholder?: boolean;
|
|
1004
|
+
};
|
|
1005
|
+
permissions?: Record<string, any>;
|
|
1006
|
+
location_group?: string;
|
|
1007
|
+
ssoId?: string;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export interface PutConsumerUserResponse {
|
|
1011
|
+
// The ID of the user
|
|
1012
|
+
id: string;
|
|
1013
|
+
// The email of the user
|
|
1014
|
+
email: string;
|
|
1015
|
+
name?: {
|
|
1016
|
+
first?: string;
|
|
1017
|
+
last?: string;
|
|
1018
|
+
};
|
|
1019
|
+
date?: {
|
|
1020
|
+
created?: string;
|
|
1021
|
+
modified?: string;
|
|
1022
|
+
};
|
|
1023
|
+
// The birthday of the user
|
|
1024
|
+
birthday?: string;
|
|
1025
|
+
// The password of the user
|
|
1026
|
+
password?: string;
|
|
1027
|
+
// The phone of the user
|
|
1028
|
+
phone?: number;
|
|
1029
|
+
// The phone country code of the user
|
|
1030
|
+
phone_country_code?: string;
|
|
1031
|
+
// The realm of the user
|
|
1032
|
+
realm?: string;
|
|
1033
|
+
// The gender of the user
|
|
1034
|
+
gender?: Record<string, any>;
|
|
1035
|
+
// The meta of the user
|
|
1036
|
+
meta?: Record<string, any>;
|
|
1037
|
+
is?: {
|
|
1038
|
+
disabled?: boolean;
|
|
1039
|
+
locked_out?: boolean;
|
|
1040
|
+
verified?: boolean;
|
|
1041
|
+
phone_verified?: boolean;
|
|
1042
|
+
deleted?: boolean;
|
|
1043
|
+
placeholder?: boolean;
|
|
1044
|
+
};
|
|
1045
|
+
// The permissions of the user
|
|
1046
|
+
permissions?: Record<string, any>;
|
|
1047
|
+
// The location group of the user
|
|
1048
|
+
location_group?: string;
|
|
1049
|
+
// The ssoId of the user
|
|
1050
|
+
ssoId?: string;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export interface GetConsumerUserResponse {
|
|
1054
|
+
// The ID of the user
|
|
1055
|
+
id: string;
|
|
1056
|
+
// The email of the user
|
|
1057
|
+
email: string;
|
|
1058
|
+
name?: {
|
|
1059
|
+
first?: string;
|
|
1060
|
+
last?: string;
|
|
1061
|
+
};
|
|
1062
|
+
date?: {
|
|
1063
|
+
created?: string;
|
|
1064
|
+
modified?: string;
|
|
1065
|
+
};
|
|
1066
|
+
// The birthday of the user
|
|
1067
|
+
birthday?: string;
|
|
1068
|
+
// The password of the user
|
|
1069
|
+
password?: string;
|
|
1070
|
+
// The phone of the user
|
|
1071
|
+
phone?: number;
|
|
1072
|
+
// The phone country code of the user
|
|
1073
|
+
phone_country_code?: string;
|
|
1074
|
+
// The realm of the user
|
|
1075
|
+
realm?: string;
|
|
1076
|
+
// The gender of the user
|
|
1077
|
+
gender?: Record<string, any>;
|
|
1078
|
+
// The meta of the user
|
|
1079
|
+
meta?: Record<string, any>;
|
|
1080
|
+
is?: {
|
|
1081
|
+
disabled?: boolean;
|
|
1082
|
+
locked_out?: boolean;
|
|
1083
|
+
verified?: boolean;
|
|
1084
|
+
phone_verified?: boolean;
|
|
1085
|
+
deleted?: boolean;
|
|
1086
|
+
placeholder?: boolean;
|
|
1087
|
+
};
|
|
1088
|
+
// The permissions of the user
|
|
1089
|
+
permissions?: Record<string, any>;
|
|
1090
|
+
// The location group of the user
|
|
1091
|
+
location_group?: string;
|
|
1092
|
+
// The ssoId of the user
|
|
1093
|
+
ssoId?: string;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
export interface GetConsumerShoppingCartResponse {
|
|
1097
|
+
id?: string;
|
|
1098
|
+
location?: string;
|
|
1099
|
+
menu?: string;
|
|
1100
|
+
brand?: string;
|
|
1101
|
+
date?: Record<string, any>;
|
|
1102
|
+
items?: ShoppingcartItem[];
|
|
1103
|
+
sub_total?: {
|
|
1104
|
+
amount?: number;
|
|
1105
|
+
};
|
|
1106
|
+
promo?: ShoppingcartPromoDetails;
|
|
1107
|
+
loyalty?: {
|
|
1108
|
+
coupon: {
|
|
1109
|
+
code?: string;
|
|
1110
|
+
amount_off?: number;
|
|
1111
|
+
amount?: number;
|
|
1112
|
+
name?: string;
|
|
1113
|
+
};
|
|
1114
|
+
order_loyalty_points?: boolean;
|
|
1115
|
+
};
|
|
1116
|
+
discount?: ShoppingcartPromoDetails;
|
|
1117
|
+
payment_method?: ShoppingcartPaymentMethod;
|
|
1118
|
+
taxes?: ShoppingcartTaxes;
|
|
1119
|
+
total?: {
|
|
1120
|
+
amount?: number;
|
|
1121
|
+
meals?: number;
|
|
1122
|
+
};
|
|
1123
|
+
exemptions?: {
|
|
1124
|
+
tax?: boolean;
|
|
1125
|
+
};
|
|
1126
|
+
order?: {
|
|
1127
|
+
id?: string;
|
|
1128
|
+
};
|
|
1129
|
+
service_fee?: {
|
|
1130
|
+
amount?: number;
|
|
1131
|
+
};
|
|
1132
|
+
delivery_fee?: {
|
|
1133
|
+
amount?: number;
|
|
1134
|
+
};
|
|
1135
|
+
is?: {
|
|
1136
|
+
type?: Record<string, any>;
|
|
1137
|
+
mx_cart?: boolean;
|
|
1138
|
+
email_tax_exempt?: boolean;
|
|
1139
|
+
tax_calculation_required?: boolean;
|
|
1140
|
+
system365?: boolean;
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
export interface ConsumerLabel {
|
|
1145
|
+
en?: string;
|
|
1146
|
+
fr?: string;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
export interface ConsumerModifierGroupRequest {
|
|
1150
|
+
label?: ConsumerLabel;
|
|
1151
|
+
id?: string;
|
|
1152
|
+
items?: ConsumerModifierGroupRequest[];
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export interface ConsumerItemRequest {
|
|
1156
|
+
id: string;
|
|
1157
|
+
quantity: number;
|
|
1158
|
+
quantity_by_weight?: {
|
|
1159
|
+
unit?: string;
|
|
1160
|
+
value?: number;
|
|
1161
|
+
};
|
|
1162
|
+
options?: ConsumerModifierGroupRequest[];
|
|
1163
|
+
_index?: string;
|
|
1164
|
+
special_instructions?: string;
|
|
1165
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export interface PutConsumerShoppingCartItemsRequest {
|
|
1169
|
+
items?: ConsumerItemRequest[];
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export interface PutConsumerShoppingCartResponse {
|
|
1173
|
+
id?: string;
|
|
1174
|
+
location?: string;
|
|
1175
|
+
menu?: string;
|
|
1176
|
+
brand?: string;
|
|
1177
|
+
date?: Record<string, any>;
|
|
1178
|
+
items?: ShoppingcartItem[];
|
|
1179
|
+
sub_total?: {
|
|
1180
|
+
amount?: number;
|
|
1181
|
+
};
|
|
1182
|
+
promo?: ShoppingcartPromoDetails;
|
|
1183
|
+
loyalty?: {
|
|
1184
|
+
coupon: {
|
|
1185
|
+
code?: string;
|
|
1186
|
+
amount_off?: number;
|
|
1187
|
+
amount?: number;
|
|
1188
|
+
name?: string;
|
|
1189
|
+
};
|
|
1190
|
+
order_loyalty_points?: boolean;
|
|
1191
|
+
};
|
|
1192
|
+
discount?: ShoppingcartPromoDetails;
|
|
1193
|
+
payment_method?: ShoppingcartPaymentMethod;
|
|
1194
|
+
taxes?: ShoppingcartTaxes;
|
|
1195
|
+
total?: {
|
|
1196
|
+
amount?: number;
|
|
1197
|
+
meals?: number;
|
|
1198
|
+
};
|
|
1199
|
+
exemptions?: {
|
|
1200
|
+
tax?: boolean;
|
|
1201
|
+
};
|
|
1202
|
+
order?: {
|
|
1203
|
+
id?: string;
|
|
1204
|
+
};
|
|
1205
|
+
service_fee?: {
|
|
1206
|
+
amount?: number;
|
|
1207
|
+
};
|
|
1208
|
+
delivery_fee?: {
|
|
1209
|
+
amount?: number;
|
|
1210
|
+
};
|
|
1211
|
+
is?: {
|
|
1212
|
+
type?: Record<string, any>;
|
|
1213
|
+
mx_cart?: boolean;
|
|
1214
|
+
email_tax_exempt?: boolean;
|
|
1215
|
+
tax_calculation_required?: boolean;
|
|
1216
|
+
system365?: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
|
|
924
1220
|
// GET /consumer/v1/health-check
|
|
925
1221
|
|
|
926
1222
|
export interface HealthCheckControllerExecuteQuery {
|
|
@@ -967,11 +1263,27 @@ export type PostReviewOrderItemsBody = PostReviewOrderItemsRequestDTO;
|
|
|
967
1263
|
|
|
968
1264
|
export type PostReviewOrderItemsResponse = PostReviewOrderItemsResponseDTO;
|
|
969
1265
|
|
|
970
|
-
//
|
|
1266
|
+
// GET /consumer/home/{siteId} - Provide the front end all the data required to render the home page
|
|
1267
|
+
|
|
1268
|
+
export interface GetConsumerHomePagePath {
|
|
1269
|
+
// Site ID as Encoded CDL ID
|
|
1270
|
+
siteId: string;
|
|
1271
|
+
}
|
|
971
1272
|
|
|
972
|
-
export
|
|
1273
|
+
export interface GetConsumerHomePageQuery {
|
|
1274
|
+
// order start time in epoch time
|
|
1275
|
+
start: number;
|
|
1276
|
+
// order end time in epoch time
|
|
1277
|
+
end: number;
|
|
1278
|
+
// current date in epoch time
|
|
1279
|
+
date: number;
|
|
1280
|
+
// reorder eligible
|
|
1281
|
+
reorderEligible: boolean;
|
|
1282
|
+
// Graphql query string
|
|
1283
|
+
_query?: string;
|
|
1284
|
+
}
|
|
973
1285
|
|
|
974
|
-
export type
|
|
1286
|
+
export type GetConsumerHomePageResponse = HomePageResponse;
|
|
975
1287
|
|
|
976
1288
|
// GET /consumer/frictionless/checkin/{id} - Allow a user to check in to a location using frictionless technology
|
|
977
1289
|
|
|
@@ -1005,7 +1317,7 @@ export type PostConsumerAddSecretResponse = AddUserSecretResponse;
|
|
|
1005
1317
|
// GET /consumer/location-group/{id} - Get location group
|
|
1006
1318
|
|
|
1007
1319
|
export interface GetConsumerLocationGroupPath {
|
|
1008
|
-
// TODO:
|
|
1320
|
+
// Location Group ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1009
1321
|
id: string;
|
|
1010
1322
|
}
|
|
1011
1323
|
|
|
@@ -1034,8 +1346,6 @@ export interface GetConsumerLocationGroupQuery {
|
|
|
1034
1346
|
_query?: string;
|
|
1035
1347
|
// Latitude of the user
|
|
1036
1348
|
nocache?: boolean;
|
|
1037
|
-
// Location Group ID as Encoded CDL ID
|
|
1038
|
-
id?: string;
|
|
1039
1349
|
}
|
|
1040
1350
|
|
|
1041
1351
|
export type GetConsumerLocationGroupResponse$0 = GetConsumerLocationGroupResponse;
|
|
@@ -1043,7 +1353,7 @@ export type GetConsumerLocationGroupResponse$0 = GetConsumerLocationGroupRespons
|
|
|
1043
1353
|
// GET /consumer/location-multigroup/{id} - Get location multi group
|
|
1044
1354
|
|
|
1045
1355
|
export interface GetConsumerLocationMultigroupPath {
|
|
1046
|
-
// TODO:
|
|
1356
|
+
// Location Group ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1047
1357
|
id: string;
|
|
1048
1358
|
}
|
|
1049
1359
|
|
|
@@ -1069,8 +1379,6 @@ export interface GetConsumerLocationMultigroupQuery {
|
|
|
1069
1379
|
// Graphql query string
|
|
1070
1380
|
_query?: string;
|
|
1071
1381
|
nocache?: boolean;
|
|
1072
|
-
// Location Group ID as Encoded CDL ID
|
|
1073
|
-
id?: string;
|
|
1074
1382
|
}
|
|
1075
1383
|
|
|
1076
1384
|
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|
|
@@ -1078,13 +1386,13 @@ export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGrou
|
|
|
1078
1386
|
// GET /consumer/active-menus/{stationId} - Get current menu
|
|
1079
1387
|
|
|
1080
1388
|
export interface GetConsumerActiveMenusPath {
|
|
1389
|
+
// Station ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1390
|
+
id: string;
|
|
1081
1391
|
// TODO: add parameter to swagger.json
|
|
1082
1392
|
stationId: string;
|
|
1083
1393
|
}
|
|
1084
1394
|
|
|
1085
1395
|
export interface GetConsumerActiveMenusQuery {
|
|
1086
|
-
// Station ID as Encoded CDL ID
|
|
1087
|
-
id?: string;
|
|
1088
1396
|
// current time in epoch time
|
|
1089
1397
|
currentTime: number;
|
|
1090
1398
|
// is pickup
|
|
@@ -1100,6 +1408,7 @@ export type GetConsumerActiveMenusResponse = ConsumerGetActiveMenusResponse;
|
|
|
1100
1408
|
// GET /consumer/menu/{id} - Provide the front end all the data required to render the home page
|
|
1101
1409
|
|
|
1102
1410
|
export interface GetConsumerMenuPath {
|
|
1411
|
+
// Menu ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1103
1412
|
id: string;
|
|
1104
1413
|
}
|
|
1105
1414
|
|
|
@@ -1109,3 +1418,133 @@ export interface GetConsumerMenuQuery {
|
|
|
1109
1418
|
}
|
|
1110
1419
|
|
|
1111
1420
|
export type GetConsumerMenuResponse$0 = GetConsumerMenuResponse;
|
|
1421
|
+
|
|
1422
|
+
// GET /consumer/menu/{id}/items - Provide the front end with menu items
|
|
1423
|
+
|
|
1424
|
+
export interface GetConsumerMenuItemsPath {
|
|
1425
|
+
// Menu ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1426
|
+
id: string;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
export interface GetConsumerMenuItemsQuery {
|
|
1430
|
+
// Comma separated barcodes
|
|
1431
|
+
barcodes: string;
|
|
1432
|
+
// Brand ID
|
|
1433
|
+
brand_id: string;
|
|
1434
|
+
// GraphQL query
|
|
1435
|
+
query: string;
|
|
1436
|
+
// Graphql query string
|
|
1437
|
+
_query?: string;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export type GetConsumerMenuItemsResponse$0 = GetConsumerMenuItemsResponse;
|
|
1441
|
+
|
|
1442
|
+
// POST /consumer/menu/{id}/recommended - Get recommended items
|
|
1443
|
+
|
|
1444
|
+
export interface PostConsumerMenuRecommendedItemsPath {
|
|
1445
|
+
// Menu ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1446
|
+
id: string;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
export type PostConsumerMenuRecommendedItemsBody = PostConsumerRecommendedRequest;
|
|
1450
|
+
|
|
1451
|
+
export type PostConsumerMenuRecommendedItemsResponse = PostConsumerRecommendedResponse;
|
|
1452
|
+
|
|
1453
|
+
// POST /consumer/location/marketplace/timeslots - Get Marketplace timeslots
|
|
1454
|
+
|
|
1455
|
+
export interface PostConsumerLocationsMarketplaceTimeslotsQuery {
|
|
1456
|
+
// Date of the timeslot
|
|
1457
|
+
date?: number;
|
|
1458
|
+
// Limit the number of timeslots returned
|
|
1459
|
+
limit?: number;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
export type PostConsumerLocationsMarketplaceTimeslotsResponse =
|
|
1463
|
+
PostConsumerLocationMarketplaceTimeslotsResponse;
|
|
1464
|
+
|
|
1465
|
+
// POST /consumer/location/marketplace/timeslots/delivery - Get Marketplace timeslots
|
|
1466
|
+
|
|
1467
|
+
export interface PostConsumerLocationsMarketplaceTimeslotsDeliveryQuery {
|
|
1468
|
+
// Date of the timeslot
|
|
1469
|
+
date?: number;
|
|
1470
|
+
// Limit the number of timeslots returned
|
|
1471
|
+
limit?: number;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
export type PostConsumerLocationsMarketplaceTimeslotsDeliveryResponse =
|
|
1475
|
+
PostConsumerLocationMarketplaceTimeslotsDeliveryResponse;
|
|
1476
|
+
|
|
1477
|
+
// DELETE /consumer/user/{id} - Delete user
|
|
1478
|
+
|
|
1479
|
+
export interface DeleteConsumerUserPath {
|
|
1480
|
+
id: string;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
export interface DeleteConsumerUserQuery {
|
|
1484
|
+
// Use ACL permission system
|
|
1485
|
+
acl?: boolean;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
export type DeleteConsumerUserResponse = ConsumerDeleteUserResponse;
|
|
1489
|
+
|
|
1490
|
+
// PUT /consumer/user/{id} - Change password
|
|
1491
|
+
|
|
1492
|
+
export interface PutConsumerUserPath {
|
|
1493
|
+
id: string;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
export type PutConsumerUserBody = PutConsumerUserRequest;
|
|
1497
|
+
|
|
1498
|
+
export type PutConsumerUserResponse$0 = PutConsumerUserResponse;
|
|
1499
|
+
|
|
1500
|
+
// GET /consumer/user/{id} - Get user
|
|
1501
|
+
|
|
1502
|
+
export interface GetConsumerUserPath {
|
|
1503
|
+
id: string;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
export interface GetConsumerUserQuery {
|
|
1507
|
+
// Graphql query string
|
|
1508
|
+
_query?: string;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
export type GetConsumerUserResponse$0 = GetConsumerUserResponse;
|
|
1512
|
+
|
|
1513
|
+
// DELETE /consumer/user/logout - Delete user
|
|
1514
|
+
|
|
1515
|
+
export type DeleteConsumerLogoutResponse = ConsumerDeleteUserLogoutResponse;
|
|
1516
|
+
|
|
1517
|
+
// POST /consumer/user/{id}/changepassword - Change password
|
|
1518
|
+
|
|
1519
|
+
export interface PostConsumerChangePasswordPath {
|
|
1520
|
+
id: string;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export type PostConsumerChangePasswordBody = PostConsumerUserChangePasswordRequest;
|
|
1524
|
+
|
|
1525
|
+
export type PostConsumerChangePasswordResponse = PostConsumerUserChangePasswordResponse;
|
|
1526
|
+
|
|
1527
|
+
// GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
|
|
1528
|
+
|
|
1529
|
+
export interface GetConsumerShoppingcartPath {
|
|
1530
|
+
// Shopping Cart ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1531
|
+
id: string;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
export interface GetConsumerShoppingcartQuery {
|
|
1535
|
+
// Graphql query string
|
|
1536
|
+
_query?: string;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
export type GetConsumerShoppingcartResponse = GetConsumerShoppingCartResponse;
|
|
1540
|
+
|
|
1541
|
+
// PUT /consumer/shoppingcart/{id} - Update a shopping cart by ID
|
|
1542
|
+
|
|
1543
|
+
export interface PutConsumerShoppingcartPath {
|
|
1544
|
+
// Shopping Cart ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
1545
|
+
id: string;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export type PutConsumerShoppingcartBody = PutConsumerShoppingCartItemsRequest;
|
|
1549
|
+
|
|
1550
|
+
export type PutConsumerShoppingcartResponse = PutConsumerShoppingCartResponse;
|
|
@@ -266,6 +266,25 @@ export interface PatchMealplanTenderRequest extends BaseRequest, PatchMealplanTe
|
|
|
266
266
|
body: PatchMealplanTenderBody;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
// POST /mealplan/{id}/tender/{tender} - Check the user's tender balance
|
|
270
|
+
|
|
271
|
+
export interface PostMealplanTenderPath {
|
|
272
|
+
// Meal plan ID
|
|
273
|
+
id: string;
|
|
274
|
+
// Tender ID
|
|
275
|
+
tender: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface PostMealplanTenderBody {
|
|
279
|
+
card_data?: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type PostMealplanTenderResponse = Tender;
|
|
283
|
+
|
|
284
|
+
export interface PostMealplanTenderRequest extends BaseRequest, PostMealplanTenderPath {
|
|
285
|
+
body: PostMealplanTenderBody;
|
|
286
|
+
}
|
|
287
|
+
|
|
269
288
|
// POST /mealplan/{id}/verify - Send verification email to user linking a mealplan
|
|
270
289
|
|
|
271
290
|
export interface PostMealplanVerifyPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -443,6 +443,7 @@ export interface DraftBrandDTO {
|
|
|
443
443
|
global_menu_group_id?: string;
|
|
444
444
|
posid_segment?: string;
|
|
445
445
|
is_simplified_view?: boolean;
|
|
446
|
+
auto_push_to_local?: boolean;
|
|
446
447
|
frictionless_partner?: string;
|
|
447
448
|
meta?: BrandMeta;
|
|
448
449
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -466,6 +467,7 @@ export interface PublishedBrandDTO {
|
|
|
466
467
|
global_menu_group_id?: string;
|
|
467
468
|
posid_segment?: string;
|
|
468
469
|
is_simplified_view?: boolean;
|
|
470
|
+
auto_push_to_local?: boolean;
|
|
469
471
|
frictionless_partner?: string;
|
|
470
472
|
meta?: Record<string, any>;
|
|
471
473
|
permissions?: Record<string, any>;
|
|
@@ -2942,6 +2944,7 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
2942
2944
|
global_menu_group_id?: string;
|
|
2943
2945
|
posid_segment?: string;
|
|
2944
2946
|
is_simplified_view?: boolean;
|
|
2947
|
+
auto_push_to_local?: boolean;
|
|
2945
2948
|
frictionless_partner?: string;
|
|
2946
2949
|
meta?: BrandMeta;
|
|
2947
2950
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3014,6 +3017,7 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
3014
3017
|
global_menu_group_id?: string;
|
|
3015
3018
|
posid_segment?: string;
|
|
3016
3019
|
is_simplified_view?: boolean;
|
|
3020
|
+
auto_push_to_local?: boolean;
|
|
3017
3021
|
frictionless_partner?: string;
|
|
3018
3022
|
meta?: BrandMeta;
|
|
3019
3023
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3108,6 +3112,7 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
3108
3112
|
global_menu_group_id?: string;
|
|
3109
3113
|
posid_segment?: string;
|
|
3110
3114
|
is_simplified_view?: boolean;
|
|
3115
|
+
auto_push_to_local?: boolean;
|
|
3111
3116
|
frictionless_partner?: string;
|
|
3112
3117
|
meta?: BrandMeta;
|
|
3113
3118
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3614,6 +3619,7 @@ export interface PostMenuV3BrandBody {
|
|
|
3614
3619
|
global_menu_group_id?: string;
|
|
3615
3620
|
posid_segment?: string;
|
|
3616
3621
|
is_simplified_view?: boolean;
|
|
3622
|
+
auto_push_to_local?: boolean;
|
|
3617
3623
|
frictionless_partner?: string;
|
|
3618
3624
|
meta?: BrandMeta;
|
|
3619
3625
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -3684,6 +3690,7 @@ export interface PatchMenuV3BrandBody {
|
|
|
3684
3690
|
global_menu_group_id?: string;
|
|
3685
3691
|
posid_segment?: string;
|
|
3686
3692
|
is_simplified_view?: boolean;
|
|
3693
|
+
auto_push_to_local?: boolean;
|
|
3687
3694
|
frictionless_partner?: string;
|
|
3688
3695
|
meta?: BrandMeta;
|
|
3689
3696
|
version?: number;
|
|
@@ -3778,6 +3785,7 @@ export type PostMenuV3BrandsBody = {
|
|
|
3778
3785
|
global_menu_group_id?: string;
|
|
3779
3786
|
posid_segment?: string;
|
|
3780
3787
|
is_simplified_view?: boolean;
|
|
3788
|
+
auto_push_to_local?: boolean;
|
|
3781
3789
|
frictionless_partner?: string;
|
|
3782
3790
|
meta?: BrandMeta;
|
|
3783
3791
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -7236,6 +7244,7 @@ export interface PostMenuV4BrandBody {
|
|
|
7236
7244
|
global_menu_group_id?: string;
|
|
7237
7245
|
posid_segment?: string;
|
|
7238
7246
|
is_simplified_view?: boolean;
|
|
7247
|
+
auto_push_to_local?: boolean;
|
|
7239
7248
|
frictionless_partner?: string;
|
|
7240
7249
|
meta?: BrandMeta;
|
|
7241
7250
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -7277,6 +7286,7 @@ export interface PostMenuV4BrandResponse {
|
|
|
7277
7286
|
global_menu_group_id?: string;
|
|
7278
7287
|
posid_segment?: string;
|
|
7279
7288
|
is_simplified_view?: boolean;
|
|
7289
|
+
auto_push_to_local?: boolean;
|
|
7280
7290
|
frictionless_partner?: string;
|
|
7281
7291
|
meta?: BrandMeta;
|
|
7282
7292
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -7335,6 +7345,7 @@ export interface GetMenuV4BrandResponse {
|
|
|
7335
7345
|
global_menu_group_id?: string;
|
|
7336
7346
|
posid_segment?: string;
|
|
7337
7347
|
is_simplified_view?: boolean;
|
|
7348
|
+
auto_push_to_local?: boolean;
|
|
7338
7349
|
frictionless_partner?: string;
|
|
7339
7350
|
meta?: BrandMeta;
|
|
7340
7351
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -7388,6 +7399,7 @@ export interface DeleteMenuV4BrandResponse {
|
|
|
7388
7399
|
global_menu_group_id?: string;
|
|
7389
7400
|
posid_segment?: string;
|
|
7390
7401
|
is_simplified_view?: boolean;
|
|
7402
|
+
auto_push_to_local?: boolean;
|
|
7391
7403
|
frictionless_partner?: string;
|
|
7392
7404
|
meta?: BrandMeta;
|
|
7393
7405
|
applied_diff_snapshot?: Record<string, any>;
|