@compassdigital/sdk.typescript 3.38.0 → 3.39.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.
Files changed (68) hide show
  1. package/lib/index.d.ts +176 -72
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js.map +1 -1
  4. package/lib/interface/announcement.d.ts +6 -1
  5. package/lib/interface/announcement.d.ts.map +1 -1
  6. package/lib/interface/calendar.d.ts +6 -1
  7. package/lib/interface/calendar.d.ts.map +1 -1
  8. package/lib/interface/compassconnect.d.ts +1 -0
  9. package/lib/interface/compassconnect.d.ts.map +1 -1
  10. package/lib/interface/config.d.ts +13 -4
  11. package/lib/interface/config.d.ts.map +1 -1
  12. package/lib/interface/datalake.d.ts +5 -2
  13. package/lib/interface/datalake.d.ts.map +1 -1
  14. package/lib/interface/kds.d.ts +5 -1
  15. package/lib/interface/kds.d.ts.map +1 -1
  16. package/lib/interface/location.d.ts +40 -6
  17. package/lib/interface/location.d.ts.map +1 -1
  18. package/lib/interface/loyalty.d.ts +31 -6
  19. package/lib/interface/loyalty.d.ts.map +1 -1
  20. package/lib/interface/mealplan.d.ts +8 -2
  21. package/lib/interface/mealplan.d.ts.map +1 -1
  22. package/lib/interface/menu.d.ts +39 -8
  23. package/lib/interface/menu.d.ts.map +1 -1
  24. package/lib/interface/notification.d.ts +5 -1
  25. package/lib/interface/notification.d.ts.map +1 -1
  26. package/lib/interface/order.d.ts +13 -2
  27. package/lib/interface/order.d.ts.map +1 -1
  28. package/lib/interface/partner.d.ts +21 -6
  29. package/lib/interface/partner.d.ts.map +1 -1
  30. package/lib/interface/payment.d.ts +13 -2
  31. package/lib/interface/payment.d.ts.map +1 -1
  32. package/lib/interface/permission.d.ts +6 -1
  33. package/lib/interface/permission.d.ts.map +1 -1
  34. package/lib/interface/promo.d.ts +7 -1
  35. package/lib/interface/promo.d.ts.map +1 -1
  36. package/lib/interface/report.d.ts +7 -1
  37. package/lib/interface/report.d.ts.map +1 -1
  38. package/lib/interface/shoppingcart.d.ts +5 -2
  39. package/lib/interface/shoppingcart.d.ts.map +1 -1
  40. package/lib/interface/task.d.ts +15 -3
  41. package/lib/interface/task.d.ts.map +1 -1
  42. package/lib/interface/user.d.ts +14 -2
  43. package/lib/interface/user.d.ts.map +1 -1
  44. package/lib/interface/vendor.d.ts +18 -4
  45. package/lib/interface/vendor.d.ts.map +1 -1
  46. package/package.json +2 -2
  47. package/src/index.ts +258 -52
  48. package/src/interface/announcement.ts +13 -1
  49. package/src/interface/calendar.ts +12 -1
  50. package/src/interface/compassconnect.ts +2 -0
  51. package/src/interface/config.ts +26 -3
  52. package/src/interface/datalake.ts +6 -1
  53. package/src/interface/kds.ts +8 -1
  54. package/src/interface/location.ts +73 -3
  55. package/src/interface/loyalty.ts +65 -5
  56. package/src/interface/mealplan.ts +18 -2
  57. package/src/interface/menu.ts +81 -7
  58. package/src/interface/notification.ts +10 -1
  59. package/src/interface/order.ts +22 -1
  60. package/src/interface/partner.ts +41 -5
  61. package/src/interface/payment.ts +28 -2
  62. package/src/interface/permission.ts +13 -1
  63. package/src/interface/promo.ts +14 -1
  64. package/src/interface/report.ts +12 -0
  65. package/src/interface/shoppingcart.ts +9 -1
  66. package/src/interface/task.ts +30 -3
  67. package/src/interface/user.ts +27 -2
  68. package/src/interface/vendor.ts +34 -4
@@ -68,6 +68,8 @@ export interface GetAnnouncementResourceQuery {
68
68
  // Resource Id linked to announcement
69
69
  allowed_resource_id?: string;
70
70
  disabled?: boolean;
71
+ // Graphql query string
72
+ _query?: string;
71
73
  }
72
74
 
73
75
  export type GetAnnouncementResourceResponse = Announcements;
@@ -81,6 +83,8 @@ export interface GetAnnouncementResourceRequest
81
83
 
82
84
  export interface GetAnnouncementResourcesQuery {
83
85
  disabled?: boolean;
86
+ // Graphql query string
87
+ _query?: string;
84
88
  }
85
89
 
86
90
  export type GetAnnouncementResourcesResponse = Announcements;
@@ -96,9 +100,17 @@ export interface GetAnnouncementPath {
96
100
  id: string;
97
101
  }
98
102
 
103
+ export interface GetAnnouncementQuery {
104
+ // Graphql query string
105
+ _query?: string;
106
+ }
107
+
99
108
  export type GetAnnouncementResponse = Announcement;
100
109
 
101
- export interface GetAnnouncementRequest extends BaseRequest, GetAnnouncementPath {}
110
+ export interface GetAnnouncementRequest
111
+ extends BaseRequest,
112
+ RequestQuery<GetAnnouncementQuery>,
113
+ GetAnnouncementPath {}
102
114
 
103
115
  // PUT /announcement/{id} - Update Announcement
104
116
 
@@ -68,6 +68,8 @@ export interface GetCalendarPath {
68
68
  }
69
69
 
70
70
  export interface GetCalendarQuery {
71
+ // Graphql query string
72
+ _query?: string;
71
73
  nocache?: boolean;
72
74
  }
73
75
 
@@ -114,6 +116,8 @@ export interface GetCalendarCdlPath {
114
116
  export interface GetCalendarCdlQuery {
115
117
  // Start date in ms to get 7 day calendar from. Defaults now.
116
118
  start_date?: number;
119
+ // Graphql query string
120
+ _query?: string;
117
121
  }
118
122
 
119
123
  export type GetCalendarCdlResponse = CDLCalendar;
@@ -125,11 +129,18 @@ export interface GetCalendarCdlRequest
125
129
 
126
130
  // GET /calendar/swagger.json
127
131
 
132
+ export interface GetCalendarSwaggerQuery {
133
+ // Graphql query string
134
+ _query?: string;
135
+ }
136
+
128
137
  export interface GetCalendarSwaggerResponse {
129
138
  [index: string]: any;
130
139
  }
131
140
 
132
- export interface GetCalendarSwaggerRequest extends BaseRequest {}
141
+ export interface GetCalendarSwaggerRequest
142
+ extends BaseRequest,
143
+ RequestQuery<GetCalendarSwaggerQuery> {}
133
144
 
134
145
  // POST /calendar/{id}/sync - Trigger synchronization of calendar to location API
135
146
 
@@ -45,6 +45,8 @@ export interface GetCompassconnectOmsTokenQuery {
45
45
  callback_uri: string;
46
46
  // The urle
47
47
  oms_url: string;
48
+ // Graphql query string
49
+ _query?: string;
48
50
  }
49
51
 
50
52
  export type GetCompassconnectOmsTokenResponse = Auth;
@@ -19,9 +19,16 @@ export interface Success {
19
19
 
20
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
21
 
22
+ export interface GetConfigAppconfigQuery {
23
+ // Graphql query string
24
+ _query?: string;
25
+ }
26
+
22
27
  export type GetConfigAppconfigResponse = Config;
23
28
 
24
- export interface GetConfigAppconfigRequest extends BaseRequest {}
29
+ export interface GetConfigAppconfigRequest
30
+ extends BaseRequest,
31
+ RequestQuery<GetConfigAppconfigQuery> {}
25
32
 
26
33
  // GET /config/{key} - get a configuration
27
34
 
@@ -30,9 +37,17 @@ export interface GetConfigPath {
30
37
  key: string;
31
38
  }
32
39
 
40
+ export interface GetConfigQuery {
41
+ // Graphql query string
42
+ _query?: string;
43
+ }
44
+
33
45
  export type GetConfigResponse = Config;
34
46
 
35
- export interface GetConfigRequest extends BaseRequest, GetConfigPath {}
47
+ export interface GetConfigRequest
48
+ extends BaseRequest,
49
+ RequestQuery<GetConfigQuery>,
50
+ GetConfigPath {}
36
51
 
37
52
  // POST /config/{key} - Create a configuration
38
53
 
@@ -82,9 +97,17 @@ export interface GetConfigPublicPath {
82
97
  key: string;
83
98
  }
84
99
 
100
+ export interface GetConfigPublicQuery {
101
+ // Graphql query string
102
+ _query?: string;
103
+ }
104
+
85
105
  export type GetConfigPublicResponse = Config;
86
106
 
87
- export interface GetConfigPublicRequest extends BaseRequest, GetConfigPublicPath {}
107
+ export interface GetConfigPublicRequest
108
+ extends BaseRequest,
109
+ RequestQuery<GetConfigPublicQuery>,
110
+ GetConfigPublicPath {}
88
111
 
89
112
  // POST /config/public/{key} - Create a public configuration
90
113
 
@@ -27,6 +27,11 @@ export interface PostDatalakeSqlRequest extends BaseRequest {
27
27
 
28
28
  // GET /swagger.json
29
29
 
30
+ export interface GetSwaggerQuery {
31
+ // Graphql query string
32
+ _query?: string;
33
+ }
34
+
30
35
  export type GetSwaggerResponse = any;
31
36
 
32
- export interface GetSwaggerRequest extends BaseRequest {}
37
+ export interface GetSwaggerRequest extends BaseRequest, RequestQuery<GetSwaggerQuery> {}
@@ -63,6 +63,8 @@ export interface GetKdsDevicesQuery {
63
63
  unitNumber: string;
64
64
  // Do not return cached device information
65
65
  nocache?: boolean;
66
+ // Graphql query string
67
+ _query?: string;
66
68
  }
67
69
 
68
70
  export type GetKdsDevicesResponse = Units;
@@ -118,8 +120,13 @@ export interface DeleteKdsDeviceInfoRequest extends BaseRequest, DeleteKdsDevice
118
120
 
119
121
  // GET /kds/swagger.json - Get a swagger for kds service
120
122
 
123
+ export interface GetKdsSwaggerQuery {
124
+ // Graphql query string
125
+ _query?: string;
126
+ }
127
+
121
128
  export interface GetKdsSwaggerResponse {
122
129
  [index: string]: any;
123
130
  }
124
131
 
125
- export interface GetKdsSwaggerRequest extends BaseRequest {}
132
+ export interface GetKdsSwaggerRequest extends BaseRequest, RequestQuery<GetKdsSwaggerQuery> {}
@@ -451,9 +451,14 @@ export interface PostLocationRequest extends BaseRequest {
451
451
 
452
452
  // GET /location - Get all location
453
453
 
454
+ export interface GetLocationsQuery {
455
+ // Graphql query string
456
+ _query?: string;
457
+ }
458
+
454
459
  export type GetLocationsResponse = Locations;
455
460
 
456
- export interface GetLocationsRequest extends BaseRequest {}
461
+ export interface GetLocationsRequest extends BaseRequest, RequestQuery<GetLocationsQuery> {}
457
462
 
458
463
  // GET /location/search - Gets Location within a radius of the provided point
459
464
 
@@ -464,6 +469,8 @@ export interface GetLocationSearchQuery {
464
469
  long?: number;
465
470
  // Operation id to be used
466
471
  operation_id?: number;
472
+ // Graphql query string
473
+ _query?: string;
467
474
  }
468
475
 
469
476
  export type GetLocationSearchResponse = Locations;
@@ -486,6 +493,8 @@ export interface GetLocationQuery {
486
493
  active_cafes?: any[];
487
494
  // show additional hidden properties/entities
488
495
  extended?: boolean;
496
+ // Graphql query string
497
+ _query?: string;
489
498
  nocache?: boolean;
490
499
  }
491
500
 
@@ -551,9 +560,17 @@ export interface GetLocationPosPath {
551
560
  id: string;
552
561
  }
553
562
 
563
+ export interface GetLocationPosQuery {
564
+ // Graphql query string
565
+ _query?: string;
566
+ }
567
+
554
568
  export type GetLocationPosResponse = POS;
555
569
 
556
- export interface GetLocationPosRequest extends BaseRequest, GetLocationPosPath {}
570
+ export interface GetLocationPosRequest
571
+ extends BaseRequest,
572
+ RequestQuery<GetLocationPosQuery>,
573
+ GetLocationPosPath {}
557
574
 
558
575
  // PUT /location/pos/{id} - Set information about a POS
559
576
 
@@ -573,6 +590,8 @@ export interface PutLocationPosRequest extends BaseRequest, PutLocationPosPath {
573
590
  // GET /location/multigroup - Get all the top level multigroups
574
591
 
575
592
  export interface GetLocationMultigroupsQuery {
593
+ // Graphql query string
594
+ _query?: string;
576
595
  nocache?: boolean;
577
596
  }
578
597
 
@@ -618,6 +637,8 @@ export interface GetLocationMultigroupQuery {
618
637
  non_market_places?: boolean;
619
638
  // filters for non-scan & go locations only
620
639
  non_scan_go?: boolean;
640
+ // Graphql query string
641
+ _query?: string;
621
642
  nocache?: boolean;
622
643
  }
623
644
 
@@ -687,6 +708,8 @@ export interface GetLocationUserMultigroupPath {
687
708
 
688
709
  export interface GetLocationUserMultigroupQuery {
689
710
  expanded?: boolean;
711
+ // Graphql query string
712
+ _query?: string;
690
713
  nocache?: boolean;
691
714
  }
692
715
 
@@ -729,6 +752,8 @@ export interface GetLocationGroupQuery {
729
752
  non_market_places?: boolean;
730
753
  // return only groups with non-scan & go locations/brands
731
754
  non_scan_go?: boolean;
755
+ // Graphql query string
756
+ _query?: string;
732
757
  nocache?: boolean;
733
758
  }
734
759
 
@@ -797,6 +822,8 @@ export interface GetLocationGroupDeliverydestinationsPath {
797
822
  export interface GetLocationGroupDeliverydestinationsQuery {
798
823
  // Delivery destination name
799
824
  name?: string;
825
+ // Graphql query string
826
+ _query?: string;
800
827
  }
801
828
 
802
829
  export interface GetLocationGroupDeliverydestinationsResponse {
@@ -876,10 +903,16 @@ export interface GetLocationGroupDeliverydestinationPath {
876
903
  delivery_destination: string;
877
904
  }
878
905
 
906
+ export interface GetLocationGroupDeliverydestinationQuery {
907
+ // Graphql query string
908
+ _query?: string;
909
+ }
910
+
879
911
  export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
880
912
 
881
913
  export interface GetLocationGroupDeliverydestinationRequest
882
914
  extends BaseRequest,
915
+ RequestQuery<GetLocationGroupDeliverydestinationQuery>,
883
916
  GetLocationGroupDeliverydestinationPath {}
884
917
 
885
918
  // GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
@@ -894,6 +927,8 @@ export interface GetLocationUserGroupPath {
894
927
  export interface GetLocationUserGroupQuery {
895
928
  latitude?: number;
896
929
  longitude?: number;
930
+ // Graphql query string
931
+ _query?: string;
897
932
  nocache?: boolean;
898
933
  }
899
934
 
@@ -906,11 +941,18 @@ export interface GetLocationUserGroupRequest
906
941
 
907
942
  // GET /location/brands - Get all location brands
908
943
 
944
+ export interface GetLocationBrandsQuery {
945
+ // Graphql query string
946
+ _query?: string;
947
+ }
948
+
909
949
  export interface GetLocationBrandsResponse {
910
950
  brands?: Brands;
911
951
  }
912
952
 
913
- export interface GetLocationBrandsRequest extends BaseRequest {}
953
+ export interface GetLocationBrandsRequest
954
+ extends BaseRequest,
955
+ RequestQuery<GetLocationBrandsQuery> {}
914
956
 
915
957
  // GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
916
958
 
@@ -919,10 +961,16 @@ export interface GetLocationBrandDestinationsPath {
919
961
  id: string;
920
962
  }
921
963
 
964
+ export interface GetLocationBrandDestinationsQuery {
965
+ // Graphql query string
966
+ _query?: string;
967
+ }
968
+
922
969
  export type GetLocationBrandDestinationsResponse = DeliveryDestinationIDs;
923
970
 
924
971
  export interface GetLocationBrandDestinationsRequest
925
972
  extends BaseRequest,
973
+ RequestQuery<GetLocationBrandDestinationsQuery>,
926
974
  GetLocationBrandDestinationsPath {}
927
975
 
928
976
  // POST /location/brand/{id}/document - Attach document to a brand
@@ -984,10 +1032,16 @@ export interface GetLocationBrandDocumentsPath {
984
1032
  id: string;
985
1033
  }
986
1034
 
1035
+ export interface GetLocationBrandDocumentsQuery {
1036
+ // Graphql query string
1037
+ _query?: string;
1038
+ }
1039
+
987
1040
  export type GetLocationBrandDocumentsResponse = BrandDocumentsResponse;
988
1041
 
989
1042
  export interface GetLocationBrandDocumentsRequest
990
1043
  extends BaseRequest,
1044
+ RequestQuery<GetLocationBrandDocumentsQuery>,
991
1045
  GetLocationBrandDocumentsPath {}
992
1046
 
993
1047
  // GET /location/brand/{id}/timeslots - Get location brand timeslots
@@ -1002,6 +1056,8 @@ export interface GetLocationBrandTimeslotsQuery {
1002
1056
  date?: number;
1003
1057
  // Limit the number of timeslots returned
1004
1058
  limit?: number;
1059
+ // Graphql query string
1060
+ _query?: string;
1005
1061
  }
1006
1062
 
1007
1063
  export type GetLocationBrandTimeslotsResponse = TimeSlots;
@@ -1063,6 +1119,8 @@ export interface GetLocationBrandMenuTimeslotsQuery {
1063
1119
  date?: number;
1064
1120
  // Limit the number of timeslots returned
1065
1121
  limit?: number;
1122
+ // Graphql query string
1123
+ _query?: string;
1066
1124
  }
1067
1125
 
1068
1126
  export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
@@ -1084,6 +1142,8 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
1084
1142
  date?: number;
1085
1143
  // Limit the number of timeslots returned
1086
1144
  limit?: number;
1145
+ // Graphql query string
1146
+ _query?: string;
1087
1147
  }
1088
1148
 
1089
1149
  export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
@@ -1107,6 +1167,8 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
1107
1167
  date?: number;
1108
1168
  // Limit the number of timeslots returned
1109
1169
  limit?: number;
1170
+ // Graphql query string
1171
+ _query?: string;
1110
1172
  }
1111
1173
 
1112
1174
  export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
@@ -1138,6 +1200,8 @@ export interface GetLocationBrandQuery {
1138
1200
  include_config?: boolean;
1139
1201
  // show additional hidden properties/entities
1140
1202
  extended?: boolean;
1203
+ // Graphql query string
1204
+ _query?: string;
1141
1205
  nocache?: boolean;
1142
1206
  }
1143
1207
 
@@ -1196,6 +1260,8 @@ export interface PutLocationBrandRequest extends BaseRequest, PutLocationBrandPa
1196
1260
  // GET /location/sector - Get list of all the sectors
1197
1261
 
1198
1262
  export interface GetLocationSectorsQuery {
1263
+ // Graphql query string
1264
+ _query?: string;
1199
1265
  nocache?: boolean;
1200
1266
  }
1201
1267
 
@@ -1225,6 +1291,8 @@ export interface GetLocationSectorPath {
1225
1291
  export interface GetLocationSectorQuery {
1226
1292
  // Omits nested children of a sector if false
1227
1293
  expanded?: boolean;
1294
+ // Graphql query string
1295
+ _query?: string;
1228
1296
  nocache?: boolean;
1229
1297
  }
1230
1298
 
@@ -1286,6 +1354,8 @@ export interface GetLocationCompanyPath {
1286
1354
 
1287
1355
  export interface GetLocationCompanyQuery {
1288
1356
  expanded?: boolean;
1357
+ // Graphql query string
1358
+ _query?: string;
1289
1359
  }
1290
1360
 
1291
1361
  export type GetLocationCompanyResponse = Company;
@@ -192,6 +192,8 @@ export interface GetLoyaltyPointsPath {
192
192
  export interface GetLoyaltyPointsQuery {
193
193
  // event type
194
194
  event: string;
195
+ // Graphql query string
196
+ _query?: string;
195
197
  }
196
198
 
197
199
  export type GetLoyaltyPointsResponse = Points;
@@ -210,11 +212,19 @@ export interface GetLoyaltyOffersPath {
210
212
  user_id: string;
211
213
  }
212
214
 
215
+ export interface GetLoyaltyOffersQuery {
216
+ // Graphql query string
217
+ _query?: string;
218
+ }
219
+
213
220
  export interface GetLoyaltyOffersResponse {
214
221
  offers?: Offer[];
215
222
  }
216
223
 
217
- export interface GetLoyaltyOffersRequest extends BaseRequest, GetLoyaltyOffersPath {}
224
+ export interface GetLoyaltyOffersRequest
225
+ extends BaseRequest,
226
+ RequestQuery<GetLoyaltyOffersQuery>,
227
+ GetLoyaltyOffersPath {}
218
228
 
219
229
  // GET /loyalty/{id}/enrollmentstatus/{user_id} - Get enrollment status for logged in user
220
230
 
@@ -225,10 +235,16 @@ export interface GetLoyaltyEnrollmentstatusPath {
225
235
  user_id: string;
226
236
  }
227
237
 
238
+ export interface GetLoyaltyEnrollmentstatusQuery {
239
+ // Graphql query string
240
+ _query?: string;
241
+ }
242
+
228
243
  export type GetLoyaltyEnrollmentstatusResponse = EnrollmentStatus;
229
244
 
230
245
  export interface GetLoyaltyEnrollmentstatusRequest
231
246
  extends BaseRequest,
247
+ RequestQuery<GetLoyaltyEnrollmentstatusQuery>,
232
248
  GetLoyaltyEnrollmentstatusPath {}
233
249
 
234
250
  // GET /loyalty/{id}/balance/{user_id} - Get loyalty point balance for logged in user
@@ -240,9 +256,17 @@ export interface GetLoyaltyBalancePath {
240
256
  user_id: string;
241
257
  }
242
258
 
259
+ export interface GetLoyaltyBalanceQuery {
260
+ // Graphql query string
261
+ _query?: string;
262
+ }
263
+
243
264
  export type GetLoyaltyBalanceResponse = Points;
244
265
 
245
- export interface GetLoyaltyBalanceRequest extends BaseRequest, GetLoyaltyBalancePath {}
266
+ export interface GetLoyaltyBalanceRequest
267
+ extends BaseRequest,
268
+ RequestQuery<GetLoyaltyBalanceQuery>,
269
+ GetLoyaltyBalancePath {}
246
270
 
247
271
  // GET /loyalty/{id}/opportunities/{user_id} - Get earning opportunities for the logged in user
248
272
 
@@ -256,6 +280,8 @@ export interface GetLoyaltyOpportunitiesPath {
256
280
  export interface GetLoyaltyOpportunitiesQuery {
257
281
  // Choose what opportunities should not be returned, can be several comma separated
258
282
  filter?: string;
283
+ // Graphql query string
284
+ _query?: string;
259
285
  }
260
286
 
261
287
  export interface GetLoyaltyOpportunitiesResponse {
@@ -299,11 +325,19 @@ export interface GetLoyaltyRewardsPath {
299
325
  user_id: string;
300
326
  }
301
327
 
328
+ export interface GetLoyaltyRewardsQuery {
329
+ // Graphql query string
330
+ _query?: string;
331
+ }
332
+
302
333
  export interface GetLoyaltyRewardsResponse {
303
334
  rewards?: Reward[];
304
335
  }
305
336
 
306
- export interface GetLoyaltyRewardsRequest extends BaseRequest, GetLoyaltyRewardsPath {}
337
+ export interface GetLoyaltyRewardsRequest
338
+ extends BaseRequest,
339
+ RequestQuery<GetLoyaltyRewardsQuery>,
340
+ GetLoyaltyRewardsPath {}
307
341
 
308
342
  // GET /loyalty/{id}/coupons/{user_id} - Get coupons available for the logged in user
309
343
 
@@ -314,11 +348,19 @@ export interface GetLoyaltyCouponsPath {
314
348
  user_id: string;
315
349
  }
316
350
 
351
+ export interface GetLoyaltyCouponsQuery {
352
+ // Graphql query string
353
+ _query?: string;
354
+ }
355
+
317
356
  export interface GetLoyaltyCouponsResponse {
318
357
  coupons?: Coupon[];
319
358
  }
320
359
 
321
- export interface GetLoyaltyCouponsRequest extends BaseRequest, GetLoyaltyCouponsPath {}
360
+ export interface GetLoyaltyCouponsRequest
361
+ extends BaseRequest,
362
+ RequestQuery<GetLoyaltyCouponsQuery>,
363
+ GetLoyaltyCouponsPath {}
322
364
 
323
365
  // GET /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for an order based on amount.
324
366
 
@@ -332,6 +374,8 @@ export interface GetLoyaltyOrderpointsPath {
332
374
  export interface GetLoyaltyOrderpointsQuery {
333
375
  // Order amount before taxes to check potential loyalty points
334
376
  order_amount: number;
377
+ // Graphql query string
378
+ _query?: string;
335
379
  }
336
380
 
337
381
  export type GetLoyaltyOrderpointsResponse = Points;
@@ -436,6 +480,8 @@ export interface GetLoyaltyHistoryQuery {
436
480
  page_number?: number;
437
481
  // How many entries to return per request. If not specified will return first 1000 events
438
482
  entries_per_page?: number;
483
+ // Graphql query string
484
+ _query?: string;
439
485
  }
440
486
 
441
487
  export interface GetLoyaltyHistoryResponse {
@@ -458,13 +504,21 @@ export interface GetLoyaltyCouponPath {
458
504
  coupon_id: string;
459
505
  }
460
506
 
507
+ export interface GetLoyaltyCouponQuery {
508
+ // Graphql query string
509
+ _query?: string;
510
+ }
511
+
461
512
  export interface GetLoyaltyCouponResponse {
462
513
  coupon?: Coupon;
463
514
  // This will be true if the coupon status is either 'redeemed' or 'reissued'
464
515
  is_valid?: boolean;
465
516
  }
466
517
 
467
- export interface GetLoyaltyCouponRequest extends BaseRequest, GetLoyaltyCouponPath {}
518
+ export interface GetLoyaltyCouponRequest
519
+ extends BaseRequest,
520
+ RequestQuery<GetLoyaltyCouponQuery>,
521
+ GetLoyaltyCouponPath {}
468
522
 
469
523
  // PATCH /loyalty/{id}/coupon/{user_id}/{coupon_id} - Update coupon's status
470
524
 
@@ -498,6 +552,8 @@ export interface GetLoyaltySearchPath {
498
552
  export interface GetLoyaltySearchQuery {
499
553
  // User id in 500friends
500
554
  search_id: number;
555
+ // Graphql query string
556
+ _query?: string;
501
557
  }
502
558
 
503
559
  export type GetLoyaltySearchResponse = UserId;
@@ -519,6 +575,8 @@ export interface GetLoyaltyUsersQuery {
519
575
  page_number?: number;
520
576
  // Start date to search from
521
577
  from_date: string;
578
+ // Graphql query string
579
+ _query?: string;
522
580
  }
523
581
 
524
582
  export interface GetLoyaltyUsersResponse {
@@ -542,6 +600,8 @@ export interface GetLoyaltyEventsQuery {
542
600
  page_number?: number;
543
601
  // Start date to search from
544
602
  from_date: string;
603
+ // Graphql query string
604
+ _query?: string;
545
605
  }
546
606
 
547
607
  export interface GetLoyaltyEventsResponse {
@@ -106,9 +106,17 @@ export interface GetMealplanPath {
106
106
  id: string;
107
107
  }
108
108
 
109
+ export interface GetMealplanQuery {
110
+ // Graphql query string
111
+ _query?: string;
112
+ }
113
+
109
114
  export type GetMealplanResponse = TendersAndAuth;
110
115
 
111
- export interface GetMealplanRequest extends BaseRequest, GetMealplanPath {}
116
+ export interface GetMealplanRequest
117
+ extends BaseRequest,
118
+ RequestQuery<GetMealplanQuery>,
119
+ GetMealplanPath {}
112
120
 
113
121
  // DELETE /mealplan/{id} - Delete a mealplan or a tender from the user's account
114
122
 
@@ -151,9 +159,17 @@ export interface GetMealplanTenderPath {
151
159
  tender: string;
152
160
  }
153
161
 
162
+ export interface GetMealplanTenderQuery {
163
+ // Graphql query string
164
+ _query?: string;
165
+ }
166
+
154
167
  export type GetMealplanTenderResponse = Tender;
155
168
 
156
- export interface GetMealplanTenderRequest extends BaseRequest, GetMealplanTenderPath {}
169
+ export interface GetMealplanTenderRequest
170
+ extends BaseRequest,
171
+ RequestQuery<GetMealplanTenderQuery>,
172
+ GetMealplanTenderPath {}
157
173
 
158
174
  // DELETE /mealplan/{id}/tender/{tender} - Debit an amount from the tender balance
159
175