@compassdigital/sdk.typescript 3.11.0 → 3.12.1
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/bin/gen.js +10 -1
- package/gen.ts +10 -2
- package/lib/index.d.ts +7 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +3 -2
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/brand.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +3 -2
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +2 -0
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/delivery.d.ts.map +1 -1
- package/lib/interface/dh.d.ts.map +1 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +2 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +22 -21
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/logger.d.ts +2 -1
- package/lib/interface/logger.d.ts.map +1 -1
- package/lib/interface/loyalty.d.ts +12 -11
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +2 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +11 -10
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/message.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +2 -1
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +6 -5
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +5 -4
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +3 -2
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +5 -4
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +9 -8
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/schedule.d.ts +2 -1
- package/lib/interface/schedule.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/sms.d.ts +1 -0
- package/lib/interface/sms.js +1 -0
- package/lib/interface/task.d.ts +11 -10
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +15 -14
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +7 -0
- package/lib/interface/util.d.ts.map +1 -0
- package/lib/interface/util.js +3 -0
- package/lib/interface/util.js.map +1 -0
- package/lib/interface/vendor.d.ts +4 -3
- package/lib/interface/vendor.d.ts.map +1 -1
- package/lib/interface/vote.d.ts +2 -1
- package/lib/interface/vote.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +17 -0
- package/src/interface/announcement.ts +5 -2
- package/src/interface/brand.ts +2 -0
- package/src/interface/calendar.ts +6 -2
- package/src/interface/compassconnect.ts +4 -1
- package/src/interface/config.ts +8 -0
- package/src/interface/datalake.ts +2 -0
- package/src/interface/delivery.ts +2 -0
- package/src/interface/dh.ts +2 -0
- package/src/interface/email.ts +2 -0
- package/src/interface/file.ts +2 -0
- package/src/interface/kds.ts +3 -1
- package/src/interface/location.ts +29 -21
- package/src/interface/logger.ts +3 -1
- package/src/interface/loyalty.ts +25 -11
- package/src/interface/mealplan.ts +5 -1
- package/src/interface/menu.ts +12 -10
- package/src/interface/message.ts +2 -0
- package/src/interface/notification.ts +3 -1
- package/src/interface/order.ts +7 -5
- package/src/interface/partner.ts +2 -0
- package/src/interface/payment.ts +8 -4
- package/src/interface/permission.ts +4 -2
- package/src/interface/promo.ts +6 -4
- package/src/interface/report.ts +12 -8
- package/src/interface/schedule.ts +3 -1
- package/src/interface/shoppingcart.ts +2 -0
- package/src/interface/sms.ts +2 -0
- package/src/interface/task.ts +14 -10
- package/src/interface/user.ts +20 -14
- package/src/interface/util.ts +6 -0
- package/src/interface/vendor.ts +5 -3
- package/src/interface/vote.ts +3 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Error {
|
|
4
6
|
code?: number;
|
|
5
7
|
message?: string;
|
|
@@ -71,7 +73,7 @@ export interface GetAnnouncementResourceQuery {
|
|
|
71
73
|
export type GetAnnouncementResourceResponse = Announcements;
|
|
72
74
|
|
|
73
75
|
export interface GetAnnouncementResourceRequest
|
|
74
|
-
extends GetAnnouncementResourceQuery
|
|
76
|
+
extends RequestQuery<GetAnnouncementResourceQuery>,
|
|
75
77
|
GetAnnouncementResourcePath {}
|
|
76
78
|
|
|
77
79
|
// GET /announcement/resource - Get Announcements
|
|
@@ -82,7 +84,8 @@ export interface GetAnnouncementResourcesQuery {
|
|
|
82
84
|
|
|
83
85
|
export type GetAnnouncementResourcesResponse = Announcements;
|
|
84
86
|
|
|
85
|
-
export interface GetAnnouncementResourcesRequest
|
|
87
|
+
export interface GetAnnouncementResourcesRequest
|
|
88
|
+
extends RequestQuery<GetAnnouncementResourcesQuery> {}
|
|
86
89
|
|
|
87
90
|
// GET /announcement/{id} - Get Announcement
|
|
88
91
|
|
package/src/interface/brand.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Error {
|
|
4
6
|
message?: string;
|
|
5
7
|
code?: number;
|
|
@@ -71,7 +73,7 @@ export interface GetCalendarQuery {
|
|
|
71
73
|
|
|
72
74
|
export type GetCalendarResponse = Calendar;
|
|
73
75
|
|
|
74
|
-
export interface GetCalendarRequest extends GetCalendarQuery
|
|
76
|
+
export interface GetCalendarRequest extends RequestQuery<GetCalendarQuery>, GetCalendarPath {}
|
|
75
77
|
|
|
76
78
|
// PUT /calendar/{id} - Set the calendar for an id. Overrides previous record
|
|
77
79
|
|
|
@@ -113,7 +115,9 @@ export interface GetCalendarCdlQuery {
|
|
|
113
115
|
|
|
114
116
|
export type GetCalendarCdlResponse = CDLCalendar;
|
|
115
117
|
|
|
116
|
-
export interface GetCalendarCdlRequest
|
|
118
|
+
export interface GetCalendarCdlRequest
|
|
119
|
+
extends RequestQuery<GetCalendarCdlQuery>,
|
|
120
|
+
GetCalendarCdlPath {}
|
|
117
121
|
|
|
118
122
|
// GET /calendar/swagger.json
|
|
119
123
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface OMSRequest {
|
|
4
6
|
code: string;
|
|
5
7
|
client_id: string;
|
|
@@ -47,4 +49,5 @@ export interface GetCompassconnectOmsTokenQuery {
|
|
|
47
49
|
|
|
48
50
|
export type GetCompassconnectOmsTokenResponse = Auth;
|
|
49
51
|
|
|
50
|
-
export interface GetCompassconnectOmsTokenRequest
|
|
52
|
+
export interface GetCompassconnectOmsTokenRequest
|
|
53
|
+
extends RequestQuery<GetCompassconnectOmsTokenQuery> {}
|
package/src/interface/config.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export type CreateConfig = any;
|
|
4
6
|
|
|
5
7
|
export interface Config {
|
|
@@ -15,6 +17,12 @@ export interface Success {
|
|
|
15
17
|
success?: boolean;
|
|
16
18
|
}
|
|
17
19
|
|
|
20
|
+
// GET /config/appconfig - get appconfig - an object with data for clients including minimum versions apps (boost, thrive, J&J) should be running and a link to the respective app store
|
|
21
|
+
|
|
22
|
+
export type GetConfigAppconfigResponse = Config;
|
|
23
|
+
|
|
24
|
+
export type GetConfigAppconfigRequest = {};
|
|
25
|
+
|
|
18
26
|
// GET /config/{key} - get a configuration
|
|
19
27
|
|
|
20
28
|
export interface GetConfigPath {
|
package/src/interface/dh.ts
CHANGED
package/src/interface/email.ts
CHANGED
package/src/interface/file.ts
CHANGED
package/src/interface/kds.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Success {
|
|
4
6
|
success: boolean;
|
|
5
7
|
}
|
|
@@ -65,7 +67,7 @@ export interface GetKdsDevicesQuery {
|
|
|
65
67
|
|
|
66
68
|
export type GetKdsDevicesResponse = Units;
|
|
67
69
|
|
|
68
|
-
export interface GetKdsDevicesRequest extends GetKdsDevicesQuery {}
|
|
70
|
+
export interface GetKdsDevicesRequest extends RequestQuery<GetKdsDevicesQuery> {}
|
|
69
71
|
|
|
70
72
|
// POST /kds/device/auth - Get auth token for a device
|
|
71
73
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface POS {
|
|
4
6
|
// pos
|
|
5
7
|
id?: string;
|
|
@@ -446,7 +448,7 @@ export interface GetLocationSearchQuery {
|
|
|
446
448
|
|
|
447
449
|
export type GetLocationSearchResponse = Locations;
|
|
448
450
|
|
|
449
|
-
export interface GetLocationSearchRequest extends GetLocationSearchQuery {}
|
|
451
|
+
export interface GetLocationSearchRequest extends RequestQuery<GetLocationSearchQuery> {}
|
|
450
452
|
|
|
451
453
|
// GET /location/{id} - Get an individual Location
|
|
452
454
|
|
|
@@ -467,7 +469,7 @@ export interface GetLocationQuery {
|
|
|
467
469
|
|
|
468
470
|
export type GetLocationResponse = Location;
|
|
469
471
|
|
|
470
|
-
export interface GetLocationRequest extends GetLocationQuery
|
|
472
|
+
export interface GetLocationRequest extends RequestQuery<GetLocationQuery>, GetLocationPath {}
|
|
471
473
|
|
|
472
474
|
// PUT /location/{id} - Override a complete Location
|
|
473
475
|
|
|
@@ -551,7 +553,7 @@ export interface GetLocationMultigroupsQuery {
|
|
|
551
553
|
|
|
552
554
|
export type GetLocationMultigroupsResponse = Multigroups;
|
|
553
555
|
|
|
554
|
-
export interface GetLocationMultigroupsRequest extends GetLocationMultigroupsQuery {}
|
|
556
|
+
export interface GetLocationMultigroupsRequest extends RequestQuery<GetLocationMultigroupsQuery> {}
|
|
555
557
|
|
|
556
558
|
// POST /location/multigroup - Create a new multigroup
|
|
557
559
|
|
|
@@ -595,7 +597,7 @@ export interface GetLocationMultigroupQuery {
|
|
|
595
597
|
export type GetLocationMultigroupResponse = MultiGroup;
|
|
596
598
|
|
|
597
599
|
export interface GetLocationMultigroupRequest
|
|
598
|
-
extends GetLocationMultigroupQuery
|
|
600
|
+
extends RequestQuery<GetLocationMultigroupQuery>,
|
|
599
601
|
GetLocationMultigroupPath {}
|
|
600
602
|
|
|
601
603
|
// PUT /location/multigroup/{id} - Override a complete multigroup
|
|
@@ -663,7 +665,7 @@ export interface GetLocationUserMultigroupQuery {
|
|
|
663
665
|
export type GetLocationUserMultigroupResponse = Groups;
|
|
664
666
|
|
|
665
667
|
export interface GetLocationUserMultigroupRequest
|
|
666
|
-
extends GetLocationUserMultigroupQuery
|
|
668
|
+
extends RequestQuery<GetLocationUserMultigroupQuery>,
|
|
667
669
|
GetLocationUserMultigroupPath {}
|
|
668
670
|
|
|
669
671
|
// POST /location/group - Create a new group
|
|
@@ -703,7 +705,9 @@ export interface GetLocationGroupQuery {
|
|
|
703
705
|
|
|
704
706
|
export type GetLocationGroupResponse = Group;
|
|
705
707
|
|
|
706
|
-
export interface GetLocationGroupRequest
|
|
708
|
+
export interface GetLocationGroupRequest
|
|
709
|
+
extends RequestQuery<GetLocationGroupQuery>,
|
|
710
|
+
GetLocationGroupPath {}
|
|
707
711
|
|
|
708
712
|
// PUT /location/group/{id} - Override a complete Group
|
|
709
713
|
|
|
@@ -770,7 +774,7 @@ export interface GetLocationGroupDeliverydestinationsResponse {
|
|
|
770
774
|
}
|
|
771
775
|
|
|
772
776
|
export interface GetLocationGroupDeliverydestinationsRequest
|
|
773
|
-
extends GetLocationGroupDeliverydestinationsQuery
|
|
777
|
+
extends RequestQuery<GetLocationGroupDeliverydestinationsQuery>,
|
|
774
778
|
GetLocationGroupDeliverydestinationsPath {}
|
|
775
779
|
|
|
776
780
|
// POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
|
|
@@ -861,7 +865,7 @@ export interface GetLocationUserGroupQuery {
|
|
|
861
865
|
export type GetLocationUserGroupResponse = Group;
|
|
862
866
|
|
|
863
867
|
export interface GetLocationUserGroupRequest
|
|
864
|
-
extends GetLocationUserGroupQuery
|
|
868
|
+
extends RequestQuery<GetLocationUserGroupQuery>,
|
|
865
869
|
GetLocationUserGroupPath {}
|
|
866
870
|
|
|
867
871
|
// GET /location/brands - Get all location brands
|
|
@@ -959,7 +963,7 @@ export interface GetLocationBrandTimeslotsQuery {
|
|
|
959
963
|
export type GetLocationBrandTimeslotsResponse = TimeSlots;
|
|
960
964
|
|
|
961
965
|
export interface GetLocationBrandTimeslotsRequest
|
|
962
|
-
extends GetLocationBrandTimeslotsQuery
|
|
966
|
+
extends RequestQuery<GetLocationBrandTimeslotsQuery>,
|
|
963
967
|
GetLocationBrandTimeslotsPath {}
|
|
964
968
|
|
|
965
969
|
// POST /location/marketplace/timeslots - Get Market Place timeslots
|
|
@@ -976,7 +980,7 @@ export type PostLocationMarketplaceTimeslotsBody = MarketPlace;
|
|
|
976
980
|
export type PostLocationMarketplaceTimeslotsResponse = TimeSlots;
|
|
977
981
|
|
|
978
982
|
export interface PostLocationMarketplaceTimeslotsRequest
|
|
979
|
-
extends PostLocationMarketplaceTimeslotsQuery {
|
|
983
|
+
extends RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
|
|
980
984
|
body: PostLocationMarketplaceTimeslotsBody;
|
|
981
985
|
}
|
|
982
986
|
|
|
@@ -994,7 +998,7 @@ export type PostLocationMarketplaceTimeslotsDeliveryBody = MarketPlace;
|
|
|
994
998
|
export type PostLocationMarketplaceTimeslotsDeliveryResponse = TimeSlots;
|
|
995
999
|
|
|
996
1000
|
export interface PostLocationMarketplaceTimeslotsDeliveryRequest
|
|
997
|
-
extends PostLocationMarketplaceTimeslotsDeliveryQuery {
|
|
1001
|
+
extends RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
|
|
998
1002
|
body: PostLocationMarketplaceTimeslotsDeliveryBody;
|
|
999
1003
|
}
|
|
1000
1004
|
|
|
@@ -1017,7 +1021,7 @@ export interface GetLocationBrandMenuTimeslotsQuery {
|
|
|
1017
1021
|
export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
|
|
1018
1022
|
|
|
1019
1023
|
export interface GetLocationBrandMenuTimeslotsRequest
|
|
1020
|
-
extends GetLocationBrandMenuTimeslotsQuery
|
|
1024
|
+
extends RequestQuery<GetLocationBrandMenuTimeslotsQuery>,
|
|
1021
1025
|
GetLocationBrandMenuTimeslotsPath {}
|
|
1022
1026
|
|
|
1023
1027
|
// GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
|
|
@@ -1037,7 +1041,7 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
|
|
|
1037
1041
|
export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
|
|
1038
1042
|
|
|
1039
1043
|
export interface GetLocationBrandDeliveryTimeslotsRequest
|
|
1040
|
-
extends GetLocationBrandDeliveryTimeslotsQuery
|
|
1044
|
+
extends RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>,
|
|
1041
1045
|
GetLocationBrandDeliveryTimeslotsPath {}
|
|
1042
1046
|
|
|
1043
1047
|
// GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
|
|
@@ -1059,7 +1063,7 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
|
|
|
1059
1063
|
export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
|
|
1060
1064
|
|
|
1061
1065
|
export interface GetLocationBrandMenuDeliveryTimeslostsRequest
|
|
1062
|
-
extends GetLocationBrandMenuDeliveryTimeslostsQuery
|
|
1066
|
+
extends RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>,
|
|
1063
1067
|
GetLocationBrandMenuDeliveryTimeslostsPath {}
|
|
1064
1068
|
|
|
1065
1069
|
// POST /location/brand - Create a new Brand
|
|
@@ -1089,7 +1093,9 @@ export interface GetLocationBrandQuery {
|
|
|
1089
1093
|
|
|
1090
1094
|
export type GetLocationBrandResponse = Brand;
|
|
1091
1095
|
|
|
1092
|
-
export interface GetLocationBrandRequest
|
|
1096
|
+
export interface GetLocationBrandRequest
|
|
1097
|
+
extends RequestQuery<GetLocationBrandQuery>,
|
|
1098
|
+
GetLocationBrandPath {}
|
|
1093
1099
|
|
|
1094
1100
|
// PATCH /location/brand/{id} - Update location brand
|
|
1095
1101
|
|
|
@@ -1144,7 +1150,7 @@ export interface GetLocationSectorsQuery {
|
|
|
1144
1150
|
|
|
1145
1151
|
export type GetLocationSectorsResponse = Sectors;
|
|
1146
1152
|
|
|
1147
|
-
export interface GetLocationSectorsRequest extends GetLocationSectorsQuery {}
|
|
1153
|
+
export interface GetLocationSectorsRequest extends RequestQuery<GetLocationSectorsQuery> {}
|
|
1148
1154
|
|
|
1149
1155
|
// POST /location/sector - Create a new sector
|
|
1150
1156
|
|
|
@@ -1171,7 +1177,9 @@ export interface GetLocationSectorQuery {
|
|
|
1171
1177
|
|
|
1172
1178
|
export type GetLocationSectorResponse = Sector;
|
|
1173
1179
|
|
|
1174
|
-
export interface GetLocationSectorRequest
|
|
1180
|
+
export interface GetLocationSectorRequest
|
|
1181
|
+
extends RequestQuery<GetLocationSectorQuery>,
|
|
1182
|
+
GetLocationSectorPath {}
|
|
1175
1183
|
|
|
1176
1184
|
// PATCH /location/sector/{id} - Update a sector
|
|
1177
1185
|
|
|
@@ -1190,7 +1198,7 @@ export type PatchLocationSectorBody = CreateSector;
|
|
|
1190
1198
|
export type PatchLocationSectorResponse = Sector;
|
|
1191
1199
|
|
|
1192
1200
|
export interface PatchLocationSectorRequest
|
|
1193
|
-
extends PatchLocationSectorQuery
|
|
1201
|
+
extends RequestQuery<PatchLocationSectorQuery>,
|
|
1194
1202
|
PatchLocationSectorPath {
|
|
1195
1203
|
body: PatchLocationSectorBody;
|
|
1196
1204
|
}
|
|
@@ -1228,7 +1236,7 @@ export interface GetLocationCompanyQuery {
|
|
|
1228
1236
|
export type GetLocationCompanyResponse = Company;
|
|
1229
1237
|
|
|
1230
1238
|
export interface GetLocationCompanyRequest
|
|
1231
|
-
extends GetLocationCompanyQuery
|
|
1239
|
+
extends RequestQuery<GetLocationCompanyQuery>,
|
|
1232
1240
|
GetLocationCompanyPath {}
|
|
1233
1241
|
|
|
1234
1242
|
// PATCH /location/company/{id} - Update a company
|
|
@@ -1260,7 +1268,7 @@ export interface GetLocationBrandExternalQuery {
|
|
|
1260
1268
|
export type GetLocationBrandExternalResponse = Location;
|
|
1261
1269
|
|
|
1262
1270
|
export interface GetLocationBrandExternalRequest
|
|
1263
|
-
extends GetLocationBrandExternalQuery
|
|
1271
|
+
extends RequestQuery<GetLocationBrandExternalQuery>,
|
|
1264
1272
|
GetLocationBrandExternalPath {}
|
|
1265
1273
|
|
|
1266
1274
|
// DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
|
|
@@ -1280,5 +1288,5 @@ export interface DeleteLocationRecordResponse {
|
|
|
1280
1288
|
}
|
|
1281
1289
|
|
|
1282
1290
|
export interface DeleteLocationRecordRequest
|
|
1283
|
-
extends DeleteLocationRecordQuery
|
|
1291
|
+
extends RequestQuery<DeleteLocationRecordQuery>,
|
|
1284
1292
|
DeleteLocationRecordPath {}
|
package/src/interface/logger.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Error {
|
|
4
6
|
error?: string;
|
|
5
7
|
code?: number;
|
|
@@ -42,5 +44,5 @@ export interface GetLoggerBrandStatusResponse {
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export interface GetLoggerBrandStatusRequest
|
|
45
|
-
extends GetLoggerBrandStatusQuery
|
|
47
|
+
extends RequestQuery<GetLoggerBrandStatusQuery>,
|
|
46
48
|
GetLoggerBrandStatusPath {}
|
package/src/interface/loyalty.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Error {
|
|
4
6
|
message?: string;
|
|
5
7
|
code?: number;
|
|
@@ -173,7 +175,9 @@ export interface PostLoyaltyEnrollQuery {
|
|
|
173
175
|
|
|
174
176
|
export type PostLoyaltyEnrollResponse = EnrollResponse;
|
|
175
177
|
|
|
176
|
-
export interface PostLoyaltyEnrollRequest
|
|
178
|
+
export interface PostLoyaltyEnrollRequest
|
|
179
|
+
extends RequestQuery<PostLoyaltyEnrollQuery>,
|
|
180
|
+
PostLoyaltyEnrollPath {}
|
|
177
181
|
|
|
178
182
|
// GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
|
|
179
183
|
|
|
@@ -191,7 +195,9 @@ export interface GetLoyaltyPointsQuery {
|
|
|
191
195
|
|
|
192
196
|
export type GetLoyaltyPointsResponse = Points;
|
|
193
197
|
|
|
194
|
-
export interface GetLoyaltyPointsRequest
|
|
198
|
+
export interface GetLoyaltyPointsRequest
|
|
199
|
+
extends RequestQuery<GetLoyaltyPointsQuery>,
|
|
200
|
+
GetLoyaltyPointsPath {}
|
|
195
201
|
|
|
196
202
|
// GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
|
|
197
203
|
|
|
@@ -253,7 +259,7 @@ export interface GetLoyaltyOpportunitiesResponse {
|
|
|
253
259
|
}
|
|
254
260
|
|
|
255
261
|
export interface GetLoyaltyOpportunitiesRequest
|
|
256
|
-
extends GetLoyaltyOpportunitiesQuery
|
|
262
|
+
extends RequestQuery<GetLoyaltyOpportunitiesQuery>,
|
|
257
263
|
GetLoyaltyOpportunitiesPath {}
|
|
258
264
|
|
|
259
265
|
// POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
|
|
@@ -275,7 +281,7 @@ export interface PostLoyaltyOpportunitiesQuery {
|
|
|
275
281
|
export type PostLoyaltyOpportunitiesResponse = RecordResponse;
|
|
276
282
|
|
|
277
283
|
export interface PostLoyaltyOpportunitiesRequest
|
|
278
|
-
extends PostLoyaltyOpportunitiesQuery
|
|
284
|
+
extends RequestQuery<PostLoyaltyOpportunitiesQuery>,
|
|
279
285
|
PostLoyaltyOpportunitiesPath {}
|
|
280
286
|
|
|
281
287
|
// GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
|
|
@@ -325,7 +331,7 @@ export interface GetLoyaltyOrderpointsQuery {
|
|
|
325
331
|
export type GetLoyaltyOrderpointsResponse = Points;
|
|
326
332
|
|
|
327
333
|
export interface GetLoyaltyOrderpointsRequest
|
|
328
|
-
extends GetLoyaltyOrderpointsQuery
|
|
334
|
+
extends RequestQuery<GetLoyaltyOrderpointsQuery>,
|
|
329
335
|
GetLoyaltyOrderpointsPath {}
|
|
330
336
|
|
|
331
337
|
// POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
|
|
@@ -380,7 +386,7 @@ export interface PostLoyaltyPurchaseBody {
|
|
|
380
386
|
export type PostLoyaltyPurchaseResponse = RecordResponse;
|
|
381
387
|
|
|
382
388
|
export interface PostLoyaltyPurchaseRequest
|
|
383
|
-
extends PostLoyaltyPurchaseQuery
|
|
389
|
+
extends RequestQuery<PostLoyaltyPurchaseQuery>,
|
|
384
390
|
PostLoyaltyPurchasePath {
|
|
385
391
|
body: PostLoyaltyPurchaseBody;
|
|
386
392
|
}
|
|
@@ -406,7 +412,7 @@ export interface PostLoyaltyBuyrewardBody {
|
|
|
406
412
|
export type PostLoyaltyBuyrewardResponse = RewardInfo;
|
|
407
413
|
|
|
408
414
|
export interface PostLoyaltyBuyrewardRequest
|
|
409
|
-
extends PostLoyaltyBuyrewardQuery
|
|
415
|
+
extends RequestQuery<PostLoyaltyBuyrewardQuery>,
|
|
410
416
|
PostLoyaltyBuyrewardPath {
|
|
411
417
|
body: PostLoyaltyBuyrewardBody;
|
|
412
418
|
}
|
|
@@ -431,7 +437,9 @@ export interface GetLoyaltyHistoryResponse {
|
|
|
431
437
|
transactions?: HistoryTransaction[];
|
|
432
438
|
}
|
|
433
439
|
|
|
434
|
-
export interface GetLoyaltyHistoryRequest
|
|
440
|
+
export interface GetLoyaltyHistoryRequest
|
|
441
|
+
extends RequestQuery<GetLoyaltyHistoryQuery>,
|
|
442
|
+
GetLoyaltyHistoryPath {}
|
|
435
443
|
|
|
436
444
|
// GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
|
|
437
445
|
|
|
@@ -488,7 +496,9 @@ export interface GetLoyaltySearchQuery {
|
|
|
488
496
|
|
|
489
497
|
export type GetLoyaltySearchResponse = UserId;
|
|
490
498
|
|
|
491
|
-
export interface GetLoyaltySearchRequest
|
|
499
|
+
export interface GetLoyaltySearchRequest
|
|
500
|
+
extends RequestQuery<GetLoyaltySearchQuery>,
|
|
501
|
+
GetLoyaltySearchPath {}
|
|
492
502
|
|
|
493
503
|
// GET /loyalty/{id}/users - Get all loyalty users updated after specific date
|
|
494
504
|
|
|
@@ -508,7 +518,9 @@ export interface GetLoyaltyUsersResponse {
|
|
|
508
518
|
users?: LoyaltyUser[];
|
|
509
519
|
}
|
|
510
520
|
|
|
511
|
-
export interface GetLoyaltyUsersRequest
|
|
521
|
+
export interface GetLoyaltyUsersRequest
|
|
522
|
+
extends RequestQuery<GetLoyaltyUsersQuery>,
|
|
523
|
+
GetLoyaltyUsersPath {}
|
|
512
524
|
|
|
513
525
|
// GET /loyalty/{id}/events - Get all loyalty events updated after specific date
|
|
514
526
|
|
|
@@ -528,4 +540,6 @@ export interface GetLoyaltyEventsResponse {
|
|
|
528
540
|
events?: Event[];
|
|
529
541
|
}
|
|
530
542
|
|
|
531
|
-
export interface GetLoyaltyEventsRequest
|
|
543
|
+
export interface GetLoyaltyEventsRequest
|
|
544
|
+
extends RequestQuery<GetLoyaltyEventsQuery>,
|
|
545
|
+
GetLoyaltyEventsPath {}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Error {
|
|
4
6
|
code?: number;
|
|
5
7
|
message?: string;
|
|
@@ -215,7 +217,9 @@ export type PostMealplanVerifyBody = VerifyEmail;
|
|
|
215
217
|
|
|
216
218
|
export type PostMealplanVerifyResponse = success;
|
|
217
219
|
|
|
218
|
-
export interface PostMealplanVerifyRequest
|
|
220
|
+
export interface PostMealplanVerifyRequest
|
|
221
|
+
extends RequestQuery<PostMealplanVerifyQuery>,
|
|
222
|
+
PostMealplanVerifyPath {
|
|
219
223
|
body: PostMealplanVerifyBody;
|
|
220
224
|
}
|
|
221
225
|
|
package/src/interface/menu.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Menu {
|
|
4
6
|
// menu
|
|
5
7
|
id?: string;
|
|
@@ -315,7 +317,7 @@ export interface GetMenusQuery {
|
|
|
315
317
|
|
|
316
318
|
export type GetMenusResponse = Menus;
|
|
317
319
|
|
|
318
|
-
export interface GetMenusRequest extends GetMenusQuery {}
|
|
320
|
+
export interface GetMenusRequest extends RequestQuery<GetMenusQuery> {}
|
|
319
321
|
|
|
320
322
|
// POST /menu - Create a new Menu
|
|
321
323
|
|
|
@@ -341,7 +343,7 @@ export interface HeadMenuQuery {
|
|
|
341
343
|
|
|
342
344
|
export type HeadMenuResponse = any;
|
|
343
345
|
|
|
344
|
-
export interface HeadMenuRequest extends HeadMenuQuery
|
|
346
|
+
export interface HeadMenuRequest extends RequestQuery<HeadMenuQuery>, HeadMenuPath {}
|
|
345
347
|
|
|
346
348
|
// GET /menu/{id} - Get an individual Menu
|
|
347
349
|
|
|
@@ -362,7 +364,7 @@ export interface GetMenuQuery {
|
|
|
362
364
|
|
|
363
365
|
export type GetMenuResponse = Menu;
|
|
364
366
|
|
|
365
|
-
export interface GetMenuRequest extends GetMenuQuery
|
|
367
|
+
export interface GetMenuRequest extends RequestQuery<GetMenuQuery>, GetMenuPath {}
|
|
366
368
|
|
|
367
369
|
// PUT /menu/{id} - Override a complete Menu
|
|
368
370
|
|
|
@@ -380,7 +382,7 @@ export type PutMenuBody = Menu;
|
|
|
380
382
|
|
|
381
383
|
export type PutMenuResponse = Menu;
|
|
382
384
|
|
|
383
|
-
export interface PutMenuRequest extends PutMenuQuery
|
|
385
|
+
export interface PutMenuRequest extends RequestQuery<PutMenuQuery>, PutMenuPath {
|
|
384
386
|
body: PutMenuBody;
|
|
385
387
|
}
|
|
386
388
|
|
|
@@ -398,7 +400,7 @@ export interface DeleteMenuQuery {
|
|
|
398
400
|
|
|
399
401
|
export type DeleteMenuResponse = Success;
|
|
400
402
|
|
|
401
|
-
export interface DeleteMenuRequest extends DeleteMenuQuery
|
|
403
|
+
export interface DeleteMenuRequest extends RequestQuery<DeleteMenuQuery>, DeleteMenuPath {}
|
|
402
404
|
|
|
403
405
|
// PATCH /menu/{id} - Update a menu
|
|
404
406
|
|
|
@@ -416,7 +418,7 @@ export type PatchMenuBody = PatchMenu;
|
|
|
416
418
|
|
|
417
419
|
export type PatchMenuResponse = Menu;
|
|
418
420
|
|
|
419
|
-
export interface PatchMenuRequest extends PatchMenuQuery
|
|
421
|
+
export interface PatchMenuRequest extends RequestQuery<PatchMenuQuery>, PatchMenuPath {
|
|
420
422
|
body: PatchMenuBody;
|
|
421
423
|
}
|
|
422
424
|
|
|
@@ -448,7 +450,7 @@ export interface GetMenuItemQuery {
|
|
|
448
450
|
|
|
449
451
|
export type GetMenuItemResponse = Item;
|
|
450
452
|
|
|
451
|
-
export interface GetMenuItemRequest extends GetMenuItemQuery
|
|
453
|
+
export interface GetMenuItemRequest extends RequestQuery<GetMenuItemQuery>, GetMenuItemPath {}
|
|
452
454
|
|
|
453
455
|
// DELETE /menu/item/{id} - Delete a menu item
|
|
454
456
|
|
|
@@ -479,7 +481,7 @@ export interface GetMenuItemsQuery {
|
|
|
479
481
|
|
|
480
482
|
export type GetMenuItemsResponse = Items;
|
|
481
483
|
|
|
482
|
-
export interface GetMenuItemsRequest extends GetMenuItemsQuery {}
|
|
484
|
+
export interface GetMenuItemsRequest extends RequestQuery<GetMenuItemsQuery> {}
|
|
483
485
|
|
|
484
486
|
// POST /menu/items/import/{location} - trigger import items
|
|
485
487
|
|
|
@@ -522,7 +524,7 @@ export interface GetMenuLocationItemRandomQuery {
|
|
|
522
524
|
export type GetMenuLocationItemRandomResponse = Item;
|
|
523
525
|
|
|
524
526
|
export interface GetMenuLocationItemRandomRequest
|
|
525
|
-
extends GetMenuLocationItemRandomQuery
|
|
527
|
+
extends RequestQuery<GetMenuLocationItemRandomQuery>,
|
|
526
528
|
GetMenuLocationItemRandomPath {}
|
|
527
529
|
|
|
528
530
|
// GET /menu/items/random/location/{location} - Get a set of random items
|
|
@@ -546,7 +548,7 @@ export interface GetMenuLocationItemsRandomQuery {
|
|
|
546
548
|
export type GetMenuLocationItemsRandomResponse = Items;
|
|
547
549
|
|
|
548
550
|
export interface GetMenuLocationItemsRandomRequest
|
|
549
|
-
extends GetMenuLocationItemsRandomQuery
|
|
551
|
+
extends RequestQuery<GetMenuLocationItemsRandomQuery>,
|
|
550
552
|
GetMenuLocationItemsRandomPath {}
|
|
551
553
|
|
|
552
554
|
// GET /menu/sector/{sector} - Get menus that belong to sector
|
package/src/interface/message.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface Error {
|
|
4
6
|
error?: string;
|
|
5
7
|
code?: number;
|
|
@@ -50,7 +52,7 @@ export interface GetNotificationsResponse {
|
|
|
50
52
|
notifications?: Notification[];
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
export interface GetNotificationsRequest extends GetNotificationsQuery {}
|
|
55
|
+
export interface GetNotificationsRequest extends RequestQuery<GetNotificationsQuery> {}
|
|
54
56
|
|
|
55
57
|
// POST /notification - Create a notification
|
|
56
58
|
|
package/src/interface/order.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
|
+
|
|
3
5
|
export interface CreateOrder {
|
|
4
6
|
// brand
|
|
5
7
|
location_brand?: string;
|
|
@@ -287,7 +289,7 @@ export type PostOrderBody = CreateOrder;
|
|
|
287
289
|
|
|
288
290
|
export type PostOrderResponse = Order;
|
|
289
291
|
|
|
290
|
-
export interface PostOrderRequest extends PostOrderQuery {
|
|
292
|
+
export interface PostOrderRequest extends RequestQuery<PostOrderQuery> {
|
|
291
293
|
body: PostOrderBody;
|
|
292
294
|
}
|
|
293
295
|
|
|
@@ -385,7 +387,7 @@ export interface GetOrderCustomerOrdersResponse {
|
|
|
385
387
|
}
|
|
386
388
|
|
|
387
389
|
export interface GetOrderCustomerOrdersRequest
|
|
388
|
-
extends GetOrderCustomerOrdersQuery
|
|
390
|
+
extends RequestQuery<GetOrderCustomerOrdersQuery>,
|
|
389
391
|
GetOrderCustomerOrdersPath {}
|
|
390
392
|
|
|
391
393
|
// GET /order/customer/{id}/location/brand/{location_brand} - Get all orders for a Customer for a specific Location Brand
|
|
@@ -428,7 +430,7 @@ export interface GetOrderLocationBrandQuery {
|
|
|
428
430
|
export type GetOrderLocationBrandResponse = Orders;
|
|
429
431
|
|
|
430
432
|
export interface GetOrderLocationBrandRequest
|
|
431
|
-
extends GetOrderLocationBrandQuery
|
|
433
|
+
extends RequestQuery<GetOrderLocationBrandQuery>,
|
|
432
434
|
GetOrderLocationBrandPath {}
|
|
433
435
|
|
|
434
436
|
// GET /order/location/{id} - Get all orders for a location
|
|
@@ -458,7 +460,7 @@ export interface GetOrderLocationOrdersQuery {
|
|
|
458
460
|
export type GetOrderLocationOrdersResponse = Orders;
|
|
459
461
|
|
|
460
462
|
export interface GetOrderLocationOrdersRequest
|
|
461
|
-
extends GetOrderLocationOrdersQuery
|
|
463
|
+
extends RequestQuery<GetOrderLocationOrdersQuery>,
|
|
462
464
|
GetOrderLocationOrdersPath {}
|
|
463
465
|
|
|
464
466
|
// GET /order/location/group/{id} - Get all orders for a location group
|
|
@@ -486,7 +488,7 @@ export interface GetOrderGroupOrdersResponse {
|
|
|
486
488
|
}
|
|
487
489
|
|
|
488
490
|
export interface GetOrderGroupOrdersRequest
|
|
489
|
-
extends GetOrderGroupOrdersQuery
|
|
491
|
+
extends RequestQuery<GetOrderGroupOrdersQuery>,
|
|
490
492
|
GetOrderGroupOrdersPath {}
|
|
491
493
|
|
|
492
494
|
// PATCH /order/{id}/checkin - Accept an order by checking in
|