@compassdigital/sdk.typescript 3.12.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 +9 -3
- package/gen.ts +9 -4
- package/lib/interface/announcement.d.ts +3 -3
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +3 -3
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -2
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +2 -2
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +22 -22
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/logger.d.ts +2 -2
- package/lib/interface/logger.d.ts.map +1 -1
- package/lib/interface/loyalty.d.ts +12 -12
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +2 -2
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +11 -11
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +2 -2
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +6 -6
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +5 -5
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +3 -3
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +5 -5
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +9 -9
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/schedule.d.ts +2 -2
- package/lib/interface/schedule.d.ts.map +1 -1
- package/lib/interface/task.d.ts +11 -11
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +15 -15
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +3 -3
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +4 -4
- package/lib/interface/vendor.d.ts.map +1 -1
- package/lib/interface/vote.d.ts +2 -2
- package/lib/interface/vote.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/interface/announcement.ts +3 -3
- package/src/interface/brand.ts +1 -1
- package/src/interface/calendar.ts +3 -3
- package/src/interface/compassconnect.ts +2 -2
- package/src/interface/config.ts +1 -1
- package/src/interface/datalake.ts +1 -1
- package/src/interface/delivery.ts +1 -1
- package/src/interface/dh.ts +1 -1
- package/src/interface/email.ts +1 -1
- package/src/interface/file.ts +1 -1
- package/src/interface/kds.ts +2 -2
- package/src/interface/location.ts +22 -23
- package/src/interface/logger.ts +2 -2
- package/src/interface/loyalty.ts +12 -12
- package/src/interface/mealplan.ts +2 -2
- package/src/interface/menu.ts +11 -11
- package/src/interface/message.ts +1 -1
- package/src/interface/notification.ts +2 -2
- package/src/interface/order.ts +6 -6
- package/src/interface/partner.ts +1 -1
- package/src/interface/payment.ts +5 -5
- package/src/interface/permission.ts +3 -3
- package/src/interface/promo.ts +5 -5
- package/src/interface/report.ts +9 -9
- package/src/interface/schedule.ts +2 -2
- package/src/interface/shoppingcart.ts +1 -1
- package/src/interface/sms.ts +1 -1
- package/src/interface/task.ts +11 -11
- package/src/interface/user.ts +15 -15
- package/src/interface/util.ts +3 -4
- package/src/interface/vendor.ts +4 -4
- package/src/interface/vote.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface POS {
|
|
6
6
|
// pos
|
|
@@ -448,7 +448,7 @@ export interface GetLocationSearchQuery {
|
|
|
448
448
|
|
|
449
449
|
export type GetLocationSearchResponse = Locations;
|
|
450
450
|
|
|
451
|
-
export interface GetLocationSearchRequest extends
|
|
451
|
+
export interface GetLocationSearchRequest extends RequestQuery<GetLocationSearchQuery> {}
|
|
452
452
|
|
|
453
453
|
// GET /location/{id} - Get an individual Location
|
|
454
454
|
|
|
@@ -469,7 +469,7 @@ export interface GetLocationQuery {
|
|
|
469
469
|
|
|
470
470
|
export type GetLocationResponse = Location;
|
|
471
471
|
|
|
472
|
-
export interface GetLocationRequest extends
|
|
472
|
+
export interface GetLocationRequest extends RequestQuery<GetLocationQuery>, GetLocationPath {}
|
|
473
473
|
|
|
474
474
|
// PUT /location/{id} - Override a complete Location
|
|
475
475
|
|
|
@@ -553,8 +553,7 @@ export interface GetLocationMultigroupsQuery {
|
|
|
553
553
|
|
|
554
554
|
export type GetLocationMultigroupsResponse = Multigroups;
|
|
555
555
|
|
|
556
|
-
export interface GetLocationMultigroupsRequest
|
|
557
|
-
extends WithStringProps<GetLocationMultigroupsQuery> {}
|
|
556
|
+
export interface GetLocationMultigroupsRequest extends RequestQuery<GetLocationMultigroupsQuery> {}
|
|
558
557
|
|
|
559
558
|
// POST /location/multigroup - Create a new multigroup
|
|
560
559
|
|
|
@@ -598,7 +597,7 @@ export interface GetLocationMultigroupQuery {
|
|
|
598
597
|
export type GetLocationMultigroupResponse = MultiGroup;
|
|
599
598
|
|
|
600
599
|
export interface GetLocationMultigroupRequest
|
|
601
|
-
extends
|
|
600
|
+
extends RequestQuery<GetLocationMultigroupQuery>,
|
|
602
601
|
GetLocationMultigroupPath {}
|
|
603
602
|
|
|
604
603
|
// PUT /location/multigroup/{id} - Override a complete multigroup
|
|
@@ -666,7 +665,7 @@ export interface GetLocationUserMultigroupQuery {
|
|
|
666
665
|
export type GetLocationUserMultigroupResponse = Groups;
|
|
667
666
|
|
|
668
667
|
export interface GetLocationUserMultigroupRequest
|
|
669
|
-
extends
|
|
668
|
+
extends RequestQuery<GetLocationUserMultigroupQuery>,
|
|
670
669
|
GetLocationUserMultigroupPath {}
|
|
671
670
|
|
|
672
671
|
// POST /location/group - Create a new group
|
|
@@ -707,7 +706,7 @@ export interface GetLocationGroupQuery {
|
|
|
707
706
|
export type GetLocationGroupResponse = Group;
|
|
708
707
|
|
|
709
708
|
export interface GetLocationGroupRequest
|
|
710
|
-
extends
|
|
709
|
+
extends RequestQuery<GetLocationGroupQuery>,
|
|
711
710
|
GetLocationGroupPath {}
|
|
712
711
|
|
|
713
712
|
// PUT /location/group/{id} - Override a complete Group
|
|
@@ -775,7 +774,7 @@ export interface GetLocationGroupDeliverydestinationsResponse {
|
|
|
775
774
|
}
|
|
776
775
|
|
|
777
776
|
export interface GetLocationGroupDeliverydestinationsRequest
|
|
778
|
-
extends
|
|
777
|
+
extends RequestQuery<GetLocationGroupDeliverydestinationsQuery>,
|
|
779
778
|
GetLocationGroupDeliverydestinationsPath {}
|
|
780
779
|
|
|
781
780
|
// POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
|
|
@@ -866,7 +865,7 @@ export interface GetLocationUserGroupQuery {
|
|
|
866
865
|
export type GetLocationUserGroupResponse = Group;
|
|
867
866
|
|
|
868
867
|
export interface GetLocationUserGroupRequest
|
|
869
|
-
extends
|
|
868
|
+
extends RequestQuery<GetLocationUserGroupQuery>,
|
|
870
869
|
GetLocationUserGroupPath {}
|
|
871
870
|
|
|
872
871
|
// GET /location/brands - Get all location brands
|
|
@@ -964,7 +963,7 @@ export interface GetLocationBrandTimeslotsQuery {
|
|
|
964
963
|
export type GetLocationBrandTimeslotsResponse = TimeSlots;
|
|
965
964
|
|
|
966
965
|
export interface GetLocationBrandTimeslotsRequest
|
|
967
|
-
extends
|
|
966
|
+
extends RequestQuery<GetLocationBrandTimeslotsQuery>,
|
|
968
967
|
GetLocationBrandTimeslotsPath {}
|
|
969
968
|
|
|
970
969
|
// POST /location/marketplace/timeslots - Get Market Place timeslots
|
|
@@ -981,7 +980,7 @@ export type PostLocationMarketplaceTimeslotsBody = MarketPlace;
|
|
|
981
980
|
export type PostLocationMarketplaceTimeslotsResponse = TimeSlots;
|
|
982
981
|
|
|
983
982
|
export interface PostLocationMarketplaceTimeslotsRequest
|
|
984
|
-
extends
|
|
983
|
+
extends RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
|
|
985
984
|
body: PostLocationMarketplaceTimeslotsBody;
|
|
986
985
|
}
|
|
987
986
|
|
|
@@ -999,7 +998,7 @@ export type PostLocationMarketplaceTimeslotsDeliveryBody = MarketPlace;
|
|
|
999
998
|
export type PostLocationMarketplaceTimeslotsDeliveryResponse = TimeSlots;
|
|
1000
999
|
|
|
1001
1000
|
export interface PostLocationMarketplaceTimeslotsDeliveryRequest
|
|
1002
|
-
extends
|
|
1001
|
+
extends RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
|
|
1003
1002
|
body: PostLocationMarketplaceTimeslotsDeliveryBody;
|
|
1004
1003
|
}
|
|
1005
1004
|
|
|
@@ -1022,7 +1021,7 @@ export interface GetLocationBrandMenuTimeslotsQuery {
|
|
|
1022
1021
|
export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
|
|
1023
1022
|
|
|
1024
1023
|
export interface GetLocationBrandMenuTimeslotsRequest
|
|
1025
|
-
extends
|
|
1024
|
+
extends RequestQuery<GetLocationBrandMenuTimeslotsQuery>,
|
|
1026
1025
|
GetLocationBrandMenuTimeslotsPath {}
|
|
1027
1026
|
|
|
1028
1027
|
// GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
|
|
@@ -1042,7 +1041,7 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
|
|
|
1042
1041
|
export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
|
|
1043
1042
|
|
|
1044
1043
|
export interface GetLocationBrandDeliveryTimeslotsRequest
|
|
1045
|
-
extends
|
|
1044
|
+
extends RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>,
|
|
1046
1045
|
GetLocationBrandDeliveryTimeslotsPath {}
|
|
1047
1046
|
|
|
1048
1047
|
// GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
|
|
@@ -1064,7 +1063,7 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
|
|
|
1064
1063
|
export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
|
|
1065
1064
|
|
|
1066
1065
|
export interface GetLocationBrandMenuDeliveryTimeslostsRequest
|
|
1067
|
-
extends
|
|
1066
|
+
extends RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>,
|
|
1068
1067
|
GetLocationBrandMenuDeliveryTimeslostsPath {}
|
|
1069
1068
|
|
|
1070
1069
|
// POST /location/brand - Create a new Brand
|
|
@@ -1095,7 +1094,7 @@ export interface GetLocationBrandQuery {
|
|
|
1095
1094
|
export type GetLocationBrandResponse = Brand;
|
|
1096
1095
|
|
|
1097
1096
|
export interface GetLocationBrandRequest
|
|
1098
|
-
extends
|
|
1097
|
+
extends RequestQuery<GetLocationBrandQuery>,
|
|
1099
1098
|
GetLocationBrandPath {}
|
|
1100
1099
|
|
|
1101
1100
|
// PATCH /location/brand/{id} - Update location brand
|
|
@@ -1151,7 +1150,7 @@ export interface GetLocationSectorsQuery {
|
|
|
1151
1150
|
|
|
1152
1151
|
export type GetLocationSectorsResponse = Sectors;
|
|
1153
1152
|
|
|
1154
|
-
export interface GetLocationSectorsRequest extends
|
|
1153
|
+
export interface GetLocationSectorsRequest extends RequestQuery<GetLocationSectorsQuery> {}
|
|
1155
1154
|
|
|
1156
1155
|
// POST /location/sector - Create a new sector
|
|
1157
1156
|
|
|
@@ -1179,7 +1178,7 @@ export interface GetLocationSectorQuery {
|
|
|
1179
1178
|
export type GetLocationSectorResponse = Sector;
|
|
1180
1179
|
|
|
1181
1180
|
export interface GetLocationSectorRequest
|
|
1182
|
-
extends
|
|
1181
|
+
extends RequestQuery<GetLocationSectorQuery>,
|
|
1183
1182
|
GetLocationSectorPath {}
|
|
1184
1183
|
|
|
1185
1184
|
// PATCH /location/sector/{id} - Update a sector
|
|
@@ -1199,7 +1198,7 @@ export type PatchLocationSectorBody = CreateSector;
|
|
|
1199
1198
|
export type PatchLocationSectorResponse = Sector;
|
|
1200
1199
|
|
|
1201
1200
|
export interface PatchLocationSectorRequest
|
|
1202
|
-
extends
|
|
1201
|
+
extends RequestQuery<PatchLocationSectorQuery>,
|
|
1203
1202
|
PatchLocationSectorPath {
|
|
1204
1203
|
body: PatchLocationSectorBody;
|
|
1205
1204
|
}
|
|
@@ -1237,7 +1236,7 @@ export interface GetLocationCompanyQuery {
|
|
|
1237
1236
|
export type GetLocationCompanyResponse = Company;
|
|
1238
1237
|
|
|
1239
1238
|
export interface GetLocationCompanyRequest
|
|
1240
|
-
extends
|
|
1239
|
+
extends RequestQuery<GetLocationCompanyQuery>,
|
|
1241
1240
|
GetLocationCompanyPath {}
|
|
1242
1241
|
|
|
1243
1242
|
// PATCH /location/company/{id} - Update a company
|
|
@@ -1269,7 +1268,7 @@ export interface GetLocationBrandExternalQuery {
|
|
|
1269
1268
|
export type GetLocationBrandExternalResponse = Location;
|
|
1270
1269
|
|
|
1271
1270
|
export interface GetLocationBrandExternalRequest
|
|
1272
|
-
extends
|
|
1271
|
+
extends RequestQuery<GetLocationBrandExternalQuery>,
|
|
1273
1272
|
GetLocationBrandExternalPath {}
|
|
1274
1273
|
|
|
1275
1274
|
// DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
|
|
@@ -1289,5 +1288,5 @@ export interface DeleteLocationRecordResponse {
|
|
|
1289
1288
|
}
|
|
1290
1289
|
|
|
1291
1290
|
export interface DeleteLocationRecordRequest
|
|
1292
|
-
extends
|
|
1291
|
+
extends RequestQuery<DeleteLocationRecordQuery>,
|
|
1293
1292
|
DeleteLocationRecordPath {}
|
package/src/interface/logger.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
error?: string;
|
|
@@ -44,5 +44,5 @@ export interface GetLoggerBrandStatusResponse {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface GetLoggerBrandStatusRequest
|
|
47
|
-
extends
|
|
47
|
+
extends RequestQuery<GetLoggerBrandStatusQuery>,
|
|
48
48
|
GetLoggerBrandStatusPath {}
|
package/src/interface/loyalty.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
message?: string;
|
|
@@ -176,7 +176,7 @@ export interface PostLoyaltyEnrollQuery {
|
|
|
176
176
|
export type PostLoyaltyEnrollResponse = EnrollResponse;
|
|
177
177
|
|
|
178
178
|
export interface PostLoyaltyEnrollRequest
|
|
179
|
-
extends
|
|
179
|
+
extends RequestQuery<PostLoyaltyEnrollQuery>,
|
|
180
180
|
PostLoyaltyEnrollPath {}
|
|
181
181
|
|
|
182
182
|
// GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
|
|
@@ -196,7 +196,7 @@ export interface GetLoyaltyPointsQuery {
|
|
|
196
196
|
export type GetLoyaltyPointsResponse = Points;
|
|
197
197
|
|
|
198
198
|
export interface GetLoyaltyPointsRequest
|
|
199
|
-
extends
|
|
199
|
+
extends RequestQuery<GetLoyaltyPointsQuery>,
|
|
200
200
|
GetLoyaltyPointsPath {}
|
|
201
201
|
|
|
202
202
|
// GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
|
|
@@ -259,7 +259,7 @@ export interface GetLoyaltyOpportunitiesResponse {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
export interface GetLoyaltyOpportunitiesRequest
|
|
262
|
-
extends
|
|
262
|
+
extends RequestQuery<GetLoyaltyOpportunitiesQuery>,
|
|
263
263
|
GetLoyaltyOpportunitiesPath {}
|
|
264
264
|
|
|
265
265
|
// POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
|
|
@@ -281,7 +281,7 @@ export interface PostLoyaltyOpportunitiesQuery {
|
|
|
281
281
|
export type PostLoyaltyOpportunitiesResponse = RecordResponse;
|
|
282
282
|
|
|
283
283
|
export interface PostLoyaltyOpportunitiesRequest
|
|
284
|
-
extends
|
|
284
|
+
extends RequestQuery<PostLoyaltyOpportunitiesQuery>,
|
|
285
285
|
PostLoyaltyOpportunitiesPath {}
|
|
286
286
|
|
|
287
287
|
// GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
|
|
@@ -331,7 +331,7 @@ export interface GetLoyaltyOrderpointsQuery {
|
|
|
331
331
|
export type GetLoyaltyOrderpointsResponse = Points;
|
|
332
332
|
|
|
333
333
|
export interface GetLoyaltyOrderpointsRequest
|
|
334
|
-
extends
|
|
334
|
+
extends RequestQuery<GetLoyaltyOrderpointsQuery>,
|
|
335
335
|
GetLoyaltyOrderpointsPath {}
|
|
336
336
|
|
|
337
337
|
// POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
|
|
@@ -386,7 +386,7 @@ export interface PostLoyaltyPurchaseBody {
|
|
|
386
386
|
export type PostLoyaltyPurchaseResponse = RecordResponse;
|
|
387
387
|
|
|
388
388
|
export interface PostLoyaltyPurchaseRequest
|
|
389
|
-
extends
|
|
389
|
+
extends RequestQuery<PostLoyaltyPurchaseQuery>,
|
|
390
390
|
PostLoyaltyPurchasePath {
|
|
391
391
|
body: PostLoyaltyPurchaseBody;
|
|
392
392
|
}
|
|
@@ -412,7 +412,7 @@ export interface PostLoyaltyBuyrewardBody {
|
|
|
412
412
|
export type PostLoyaltyBuyrewardResponse = RewardInfo;
|
|
413
413
|
|
|
414
414
|
export interface PostLoyaltyBuyrewardRequest
|
|
415
|
-
extends
|
|
415
|
+
extends RequestQuery<PostLoyaltyBuyrewardQuery>,
|
|
416
416
|
PostLoyaltyBuyrewardPath {
|
|
417
417
|
body: PostLoyaltyBuyrewardBody;
|
|
418
418
|
}
|
|
@@ -438,7 +438,7 @@ export interface GetLoyaltyHistoryResponse {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
export interface GetLoyaltyHistoryRequest
|
|
441
|
-
extends
|
|
441
|
+
extends RequestQuery<GetLoyaltyHistoryQuery>,
|
|
442
442
|
GetLoyaltyHistoryPath {}
|
|
443
443
|
|
|
444
444
|
// GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
|
|
@@ -497,7 +497,7 @@ export interface GetLoyaltySearchQuery {
|
|
|
497
497
|
export type GetLoyaltySearchResponse = UserId;
|
|
498
498
|
|
|
499
499
|
export interface GetLoyaltySearchRequest
|
|
500
|
-
extends
|
|
500
|
+
extends RequestQuery<GetLoyaltySearchQuery>,
|
|
501
501
|
GetLoyaltySearchPath {}
|
|
502
502
|
|
|
503
503
|
// GET /loyalty/{id}/users - Get all loyalty users updated after specific date
|
|
@@ -519,7 +519,7 @@ export interface GetLoyaltyUsersResponse {
|
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
export interface GetLoyaltyUsersRequest
|
|
522
|
-
extends
|
|
522
|
+
extends RequestQuery<GetLoyaltyUsersQuery>,
|
|
523
523
|
GetLoyaltyUsersPath {}
|
|
524
524
|
|
|
525
525
|
// GET /loyalty/{id}/events - Get all loyalty events updated after specific date
|
|
@@ -541,5 +541,5 @@ export interface GetLoyaltyEventsResponse {
|
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
export interface GetLoyaltyEventsRequest
|
|
544
|
-
extends
|
|
544
|
+
extends RequestQuery<GetLoyaltyEventsQuery>,
|
|
545
545
|
GetLoyaltyEventsPath {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
code?: number;
|
|
@@ -218,7 +218,7 @@ export type PostMealplanVerifyBody = VerifyEmail;
|
|
|
218
218
|
export type PostMealplanVerifyResponse = success;
|
|
219
219
|
|
|
220
220
|
export interface PostMealplanVerifyRequest
|
|
221
|
-
extends
|
|
221
|
+
extends RequestQuery<PostMealplanVerifyQuery>,
|
|
222
222
|
PostMealplanVerifyPath {
|
|
223
223
|
body: PostMealplanVerifyBody;
|
|
224
224
|
}
|
package/src/interface/menu.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Menu {
|
|
6
6
|
// menu
|
|
@@ -317,7 +317,7 @@ export interface GetMenusQuery {
|
|
|
317
317
|
|
|
318
318
|
export type GetMenusResponse = Menus;
|
|
319
319
|
|
|
320
|
-
export interface GetMenusRequest extends
|
|
320
|
+
export interface GetMenusRequest extends RequestQuery<GetMenusQuery> {}
|
|
321
321
|
|
|
322
322
|
// POST /menu - Create a new Menu
|
|
323
323
|
|
|
@@ -343,7 +343,7 @@ export interface HeadMenuQuery {
|
|
|
343
343
|
|
|
344
344
|
export type HeadMenuResponse = any;
|
|
345
345
|
|
|
346
|
-
export interface HeadMenuRequest extends
|
|
346
|
+
export interface HeadMenuRequest extends RequestQuery<HeadMenuQuery>, HeadMenuPath {}
|
|
347
347
|
|
|
348
348
|
// GET /menu/{id} - Get an individual Menu
|
|
349
349
|
|
|
@@ -364,7 +364,7 @@ export interface GetMenuQuery {
|
|
|
364
364
|
|
|
365
365
|
export type GetMenuResponse = Menu;
|
|
366
366
|
|
|
367
|
-
export interface GetMenuRequest extends
|
|
367
|
+
export interface GetMenuRequest extends RequestQuery<GetMenuQuery>, GetMenuPath {}
|
|
368
368
|
|
|
369
369
|
// PUT /menu/{id} - Override a complete Menu
|
|
370
370
|
|
|
@@ -382,7 +382,7 @@ export type PutMenuBody = Menu;
|
|
|
382
382
|
|
|
383
383
|
export type PutMenuResponse = Menu;
|
|
384
384
|
|
|
385
|
-
export interface PutMenuRequest extends
|
|
385
|
+
export interface PutMenuRequest extends RequestQuery<PutMenuQuery>, PutMenuPath {
|
|
386
386
|
body: PutMenuBody;
|
|
387
387
|
}
|
|
388
388
|
|
|
@@ -400,7 +400,7 @@ export interface DeleteMenuQuery {
|
|
|
400
400
|
|
|
401
401
|
export type DeleteMenuResponse = Success;
|
|
402
402
|
|
|
403
|
-
export interface DeleteMenuRequest extends
|
|
403
|
+
export interface DeleteMenuRequest extends RequestQuery<DeleteMenuQuery>, DeleteMenuPath {}
|
|
404
404
|
|
|
405
405
|
// PATCH /menu/{id} - Update a menu
|
|
406
406
|
|
|
@@ -418,7 +418,7 @@ export type PatchMenuBody = PatchMenu;
|
|
|
418
418
|
|
|
419
419
|
export type PatchMenuResponse = Menu;
|
|
420
420
|
|
|
421
|
-
export interface PatchMenuRequest extends
|
|
421
|
+
export interface PatchMenuRequest extends RequestQuery<PatchMenuQuery>, PatchMenuPath {
|
|
422
422
|
body: PatchMenuBody;
|
|
423
423
|
}
|
|
424
424
|
|
|
@@ -450,7 +450,7 @@ export interface GetMenuItemQuery {
|
|
|
450
450
|
|
|
451
451
|
export type GetMenuItemResponse = Item;
|
|
452
452
|
|
|
453
|
-
export interface GetMenuItemRequest extends
|
|
453
|
+
export interface GetMenuItemRequest extends RequestQuery<GetMenuItemQuery>, GetMenuItemPath {}
|
|
454
454
|
|
|
455
455
|
// DELETE /menu/item/{id} - Delete a menu item
|
|
456
456
|
|
|
@@ -481,7 +481,7 @@ export interface GetMenuItemsQuery {
|
|
|
481
481
|
|
|
482
482
|
export type GetMenuItemsResponse = Items;
|
|
483
483
|
|
|
484
|
-
export interface GetMenuItemsRequest extends
|
|
484
|
+
export interface GetMenuItemsRequest extends RequestQuery<GetMenuItemsQuery> {}
|
|
485
485
|
|
|
486
486
|
// POST /menu/items/import/{location} - trigger import items
|
|
487
487
|
|
|
@@ -524,7 +524,7 @@ export interface GetMenuLocationItemRandomQuery {
|
|
|
524
524
|
export type GetMenuLocationItemRandomResponse = Item;
|
|
525
525
|
|
|
526
526
|
export interface GetMenuLocationItemRandomRequest
|
|
527
|
-
extends
|
|
527
|
+
extends RequestQuery<GetMenuLocationItemRandomQuery>,
|
|
528
528
|
GetMenuLocationItemRandomPath {}
|
|
529
529
|
|
|
530
530
|
// GET /menu/items/random/location/{location} - Get a set of random items
|
|
@@ -548,7 +548,7 @@ export interface GetMenuLocationItemsRandomQuery {
|
|
|
548
548
|
export type GetMenuLocationItemsRandomResponse = Items;
|
|
549
549
|
|
|
550
550
|
export interface GetMenuLocationItemsRandomRequest
|
|
551
|
-
extends
|
|
551
|
+
extends RequestQuery<GetMenuLocationItemsRandomQuery>,
|
|
552
552
|
GetMenuLocationItemsRandomPath {}
|
|
553
553
|
|
|
554
554
|
// GET /menu/sector/{sector} - Get menus that belong to sector
|
package/src/interface/message.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
error?: string;
|
|
@@ -52,7 +52,7 @@ export interface GetNotificationsResponse {
|
|
|
52
52
|
notifications?: Notification[];
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export interface GetNotificationsRequest extends
|
|
55
|
+
export interface GetNotificationsRequest extends RequestQuery<GetNotificationsQuery> {}
|
|
56
56
|
|
|
57
57
|
// POST /notification - Create a notification
|
|
58
58
|
|
package/src/interface/order.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface CreateOrder {
|
|
6
6
|
// brand
|
|
@@ -289,7 +289,7 @@ export type PostOrderBody = CreateOrder;
|
|
|
289
289
|
|
|
290
290
|
export type PostOrderResponse = Order;
|
|
291
291
|
|
|
292
|
-
export interface PostOrderRequest extends
|
|
292
|
+
export interface PostOrderRequest extends RequestQuery<PostOrderQuery> {
|
|
293
293
|
body: PostOrderBody;
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -387,7 +387,7 @@ export interface GetOrderCustomerOrdersResponse {
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
export interface GetOrderCustomerOrdersRequest
|
|
390
|
-
extends
|
|
390
|
+
extends RequestQuery<GetOrderCustomerOrdersQuery>,
|
|
391
391
|
GetOrderCustomerOrdersPath {}
|
|
392
392
|
|
|
393
393
|
// GET /order/customer/{id}/location/brand/{location_brand} - Get all orders for a Customer for a specific Location Brand
|
|
@@ -430,7 +430,7 @@ export interface GetOrderLocationBrandQuery {
|
|
|
430
430
|
export type GetOrderLocationBrandResponse = Orders;
|
|
431
431
|
|
|
432
432
|
export interface GetOrderLocationBrandRequest
|
|
433
|
-
extends
|
|
433
|
+
extends RequestQuery<GetOrderLocationBrandQuery>,
|
|
434
434
|
GetOrderLocationBrandPath {}
|
|
435
435
|
|
|
436
436
|
// GET /order/location/{id} - Get all orders for a location
|
|
@@ -460,7 +460,7 @@ export interface GetOrderLocationOrdersQuery {
|
|
|
460
460
|
export type GetOrderLocationOrdersResponse = Orders;
|
|
461
461
|
|
|
462
462
|
export interface GetOrderLocationOrdersRequest
|
|
463
|
-
extends
|
|
463
|
+
extends RequestQuery<GetOrderLocationOrdersQuery>,
|
|
464
464
|
GetOrderLocationOrdersPath {}
|
|
465
465
|
|
|
466
466
|
// GET /order/location/group/{id} - Get all orders for a location group
|
|
@@ -488,7 +488,7 @@ export interface GetOrderGroupOrdersResponse {
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
export interface GetOrderGroupOrdersRequest
|
|
491
|
-
extends
|
|
491
|
+
extends RequestQuery<GetOrderGroupOrdersQuery>,
|
|
492
492
|
GetOrderGroupOrdersPath {}
|
|
493
493
|
|
|
494
494
|
// PATCH /order/{id}/checkin - Accept an order by checking in
|
package/src/interface/partner.ts
CHANGED
package/src/interface/payment.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Transaction {
|
|
6
6
|
success?: boolean;
|
|
@@ -265,7 +265,7 @@ export interface GetPaymentMethodResponse {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
export interface GetPaymentMethodRequest
|
|
268
|
-
extends
|
|
268
|
+
extends RequestQuery<GetPaymentMethodQuery>,
|
|
269
269
|
GetPaymentMethodPath {}
|
|
270
270
|
|
|
271
271
|
// DELETE /payment/{id}/method/{method_id}
|
|
@@ -305,7 +305,7 @@ export interface GetPaymentTokenQuery {
|
|
|
305
305
|
|
|
306
306
|
export type GetPaymentTokenResponse = TokenInformation;
|
|
307
307
|
|
|
308
|
-
export interface GetPaymentTokenRequest extends
|
|
308
|
+
export interface GetPaymentTokenRequest extends RequestQuery<GetPaymentTokenQuery> {}
|
|
309
309
|
|
|
310
310
|
// POST /payment/token
|
|
311
311
|
|
|
@@ -374,7 +374,7 @@ export interface GetPaymentMethodsResponse {
|
|
|
374
374
|
recordsTotal?: number;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
export interface GetPaymentMethodsRequest extends
|
|
377
|
+
export interface GetPaymentMethodsRequest extends RequestQuery<GetPaymentMethodsQuery> {}
|
|
378
378
|
|
|
379
379
|
// GET /payment/hpc
|
|
380
380
|
|
|
@@ -390,4 +390,4 @@ export interface GetPaymentHpcResponse {
|
|
|
390
390
|
sessionKey?: string;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
export interface GetPaymentHpcRequest extends
|
|
393
|
+
export interface GetPaymentHpcRequest extends RequestQuery<GetPaymentHpcQuery> {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Success {
|
|
6
6
|
success?: boolean;
|
|
@@ -150,7 +150,7 @@ export interface GetPermissionRoleQuery {
|
|
|
150
150
|
|
|
151
151
|
export type GetPermissionRoleResponse = Roles;
|
|
152
152
|
|
|
153
|
-
export interface GetPermissionRoleRequest extends
|
|
153
|
+
export interface GetPermissionRoleRequest extends RequestQuery<GetPermissionRoleQuery> {}
|
|
154
154
|
|
|
155
155
|
// POST /permission/role - Create a new role
|
|
156
156
|
|
|
@@ -194,7 +194,7 @@ export interface GetPermissionRecipientQuery {
|
|
|
194
194
|
export type GetPermissionRecipientResponse = Permissions;
|
|
195
195
|
|
|
196
196
|
export interface GetPermissionRecipientRequest
|
|
197
|
-
extends
|
|
197
|
+
extends RequestQuery<GetPermissionRecipientQuery>,
|
|
198
198
|
GetPermissionRecipientPath {}
|
|
199
199
|
|
|
200
200
|
// GET /permission/role/user/{user_id} - Get a list of role assignments for a user
|
package/src/interface/promo.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RequestQuery } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
message?: string;
|
|
@@ -261,7 +261,7 @@ export interface GetPromosQuery {
|
|
|
261
261
|
|
|
262
262
|
export type GetPromosResponse = Promotions;
|
|
263
263
|
|
|
264
|
-
export interface GetPromosRequest extends
|
|
264
|
+
export interface GetPromosRequest extends RequestQuery<GetPromosQuery> {}
|
|
265
265
|
|
|
266
266
|
// GET /promo/{id} - Get an individual promotion
|
|
267
267
|
|
|
@@ -277,7 +277,7 @@ export interface GetPromoQuery {
|
|
|
277
277
|
|
|
278
278
|
export type GetPromoResponse = Promotion;
|
|
279
279
|
|
|
280
|
-
export interface GetPromoRequest extends
|
|
280
|
+
export interface GetPromoRequest extends RequestQuery<GetPromoQuery>, GetPromoPath {}
|
|
281
281
|
|
|
282
282
|
// PUT /promo/{id} - Update a promotion
|
|
283
283
|
|
|
@@ -323,7 +323,7 @@ export interface GetPromoCompanyLocationGroupQuery {
|
|
|
323
323
|
export type GetPromoCompanyLocationGroupResponse = Promotions;
|
|
324
324
|
|
|
325
325
|
export interface GetPromoCompanyLocationGroupRequest
|
|
326
|
-
extends
|
|
326
|
+
extends RequestQuery<GetPromoCompanyLocationGroupQuery>,
|
|
327
327
|
GetPromoCompanyLocationGroupPath {}
|
|
328
328
|
|
|
329
329
|
// POST /promo/validate/voucher - Validate a promo voucher
|
|
@@ -388,7 +388,7 @@ export interface DeletePromoVoucherResponse {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
export interface DeletePromoVoucherRequest
|
|
391
|
-
extends
|
|
391
|
+
extends RequestQuery<DeletePromoVoucherQuery>,
|
|
392
392
|
DeletePromoVoucherPath {}
|
|
393
393
|
|
|
394
394
|
// POST /promo/customer/ - Add user to voucherify
|