@compassdigital/sdk.typescript 3.38.0 → 3.40.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 (77) hide show
  1. package/lib/base.d.ts +3 -3
  2. package/lib/base.d.ts.map +1 -1
  3. package/lib/index.d.ts +185 -74
  4. package/lib/index.d.ts.map +1 -1
  5. package/lib/index.js +10 -3
  6. package/lib/index.js.map +1 -1
  7. package/lib/interface/announcement.d.ts +14 -9
  8. package/lib/interface/announcement.d.ts.map +1 -1
  9. package/lib/interface/calendar.d.ts +12 -7
  10. package/lib/interface/calendar.d.ts.map +1 -1
  11. package/lib/interface/compassconnect.d.ts +2 -1
  12. package/lib/interface/compassconnect.d.ts.map +1 -1
  13. package/lib/interface/config.d.ts +27 -18
  14. package/lib/interface/config.d.ts.map +1 -1
  15. package/lib/interface/datalake.d.ts +7 -4
  16. package/lib/interface/datalake.d.ts.map +1 -1
  17. package/lib/interface/email.d.ts +2 -2
  18. package/lib/interface/email.d.ts.map +1 -1
  19. package/lib/interface/file.d.ts +1 -1
  20. package/lib/interface/file.d.ts.map +1 -1
  21. package/lib/interface/kds.d.ts +12 -8
  22. package/lib/interface/kds.d.ts.map +1 -1
  23. package/lib/interface/location.d.ts +112 -76
  24. package/lib/interface/location.d.ts.map +1 -1
  25. package/lib/interface/loyalty.d.ts +42 -17
  26. package/lib/interface/loyalty.d.ts.map +1 -1
  27. package/lib/interface/mealplan.d.ts +16 -10
  28. package/lib/interface/mealplan.d.ts.map +1 -1
  29. package/lib/interface/menu.d.ts +83 -44
  30. package/lib/interface/menu.d.ts.map +1 -1
  31. package/lib/interface/notification.d.ts +12 -8
  32. package/lib/interface/notification.d.ts.map +1 -1
  33. package/lib/interface/order.d.ts +32 -18
  34. package/lib/interface/order.d.ts.map +1 -1
  35. package/lib/interface/partner.d.ts +473 -426
  36. package/lib/interface/partner.d.ts.map +1 -1
  37. package/lib/interface/payment.d.ts +25 -15
  38. package/lib/interface/payment.d.ts.map +1 -1
  39. package/lib/interface/permission.d.ts +20 -15
  40. package/lib/interface/permission.d.ts.map +1 -1
  41. package/lib/interface/promo.d.ts +32 -26
  42. package/lib/interface/promo.d.ts.map +1 -1
  43. package/lib/interface/report.d.ts +16 -10
  44. package/lib/interface/report.d.ts.map +1 -1
  45. package/lib/interface/shoppingcart.d.ts +25 -22
  46. package/lib/interface/shoppingcart.d.ts.map +1 -1
  47. package/lib/interface/task.d.ts +28 -16
  48. package/lib/interface/task.d.ts.map +1 -1
  49. package/lib/interface/user.d.ts +72 -46
  50. package/lib/interface/user.d.ts.map +1 -1
  51. package/lib/interface/util.d.ts +1 -1
  52. package/lib/interface/util.d.ts.map +1 -1
  53. package/lib/interface/vendor.d.ts +42 -28
  54. package/lib/interface/vendor.d.ts.map +1 -1
  55. package/package.json +2 -2
  56. package/src/index.ts +281 -56
  57. package/src/interface/announcement.ts +13 -1
  58. package/src/interface/calendar.ts +12 -1
  59. package/src/interface/compassconnect.ts +2 -0
  60. package/src/interface/config.ts +26 -3
  61. package/src/interface/datalake.ts +6 -1
  62. package/src/interface/kds.ts +8 -1
  63. package/src/interface/location.ts +81 -9
  64. package/src/interface/loyalty.ts +65 -5
  65. package/src/interface/mealplan.ts +18 -2
  66. package/src/interface/menu.ts +96 -7
  67. package/src/interface/notification.ts +10 -1
  68. package/src/interface/order.ts +26 -1
  69. package/src/interface/partner.ts +550 -474
  70. package/src/interface/payment.ts +30 -6
  71. package/src/interface/permission.ts +13 -1
  72. package/src/interface/promo.ts +14 -1
  73. package/src/interface/report.ts +12 -0
  74. package/src/interface/shoppingcart.ts +9 -1
  75. package/src/interface/task.ts +30 -3
  76. package/src/interface/user.ts +42 -2
  77. 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> {}
@@ -309,6 +309,10 @@ export interface MultiGroup {
309
309
  [index: string]: any;
310
310
  }
311
311
 
312
+ export interface success {
313
+ success?: boolean;
314
+ }
315
+
312
316
  export interface Error {
313
317
  error?: string;
314
318
  code?: number;
@@ -437,6 +441,8 @@ export interface WaitTime {
437
441
  max: number;
438
442
  // minimum wait time to the next time slot in minutes
439
443
  min: number;
444
+ // the epoch timestamp of the next available ready time for a station
445
+ ready_time: number;
440
446
  }
441
447
 
442
448
  // POST /location - Create a new location
@@ -451,9 +457,14 @@ export interface PostLocationRequest extends BaseRequest {
451
457
 
452
458
  // GET /location - Get all location
453
459
 
460
+ export interface GetLocationsQuery {
461
+ // Graphql query string
462
+ _query?: string;
463
+ }
464
+
454
465
  export type GetLocationsResponse = Locations;
455
466
 
456
- export interface GetLocationsRequest extends BaseRequest {}
467
+ export interface GetLocationsRequest extends BaseRequest, RequestQuery<GetLocationsQuery> {}
457
468
 
458
469
  // GET /location/search - Gets Location within a radius of the provided point
459
470
 
@@ -464,6 +475,8 @@ export interface GetLocationSearchQuery {
464
475
  long?: number;
465
476
  // Operation id to be used
466
477
  operation_id?: number;
478
+ // Graphql query string
479
+ _query?: string;
467
480
  }
468
481
 
469
482
  export type GetLocationSearchResponse = Locations;
@@ -486,6 +499,8 @@ export interface GetLocationQuery {
486
499
  active_cafes?: any[];
487
500
  // show additional hidden properties/entities
488
501
  extended?: boolean;
502
+ // Graphql query string
503
+ _query?: string;
489
504
  nocache?: boolean;
490
505
  }
491
506
 
@@ -551,9 +566,17 @@ export interface GetLocationPosPath {
551
566
  id: string;
552
567
  }
553
568
 
569
+ export interface GetLocationPosQuery {
570
+ // Graphql query string
571
+ _query?: string;
572
+ }
573
+
554
574
  export type GetLocationPosResponse = POS;
555
575
 
556
- export interface GetLocationPosRequest extends BaseRequest, GetLocationPosPath {}
576
+ export interface GetLocationPosRequest
577
+ extends BaseRequest,
578
+ RequestQuery<GetLocationPosQuery>,
579
+ GetLocationPosPath {}
557
580
 
558
581
  // PUT /location/pos/{id} - Set information about a POS
559
582
 
@@ -573,6 +596,8 @@ export interface PutLocationPosRequest extends BaseRequest, PutLocationPosPath {
573
596
  // GET /location/multigroup - Get all the top level multigroups
574
597
 
575
598
  export interface GetLocationMultigroupsQuery {
599
+ // Graphql query string
600
+ _query?: string;
576
601
  nocache?: boolean;
577
602
  }
578
603
 
@@ -618,6 +643,8 @@ export interface GetLocationMultigroupQuery {
618
643
  non_market_places?: boolean;
619
644
  // filters for non-scan & go locations only
620
645
  non_scan_go?: boolean;
646
+ // Graphql query string
647
+ _query?: string;
621
648
  nocache?: boolean;
622
649
  }
623
650
 
@@ -687,6 +714,8 @@ export interface GetLocationUserMultigroupPath {
687
714
 
688
715
  export interface GetLocationUserMultigroupQuery {
689
716
  expanded?: boolean;
717
+ // Graphql query string
718
+ _query?: string;
690
719
  nocache?: boolean;
691
720
  }
692
721
 
@@ -729,6 +758,8 @@ export interface GetLocationGroupQuery {
729
758
  non_market_places?: boolean;
730
759
  // return only groups with non-scan & go locations/brands
731
760
  non_scan_go?: boolean;
761
+ // Graphql query string
762
+ _query?: string;
732
763
  nocache?: boolean;
733
764
  }
734
765
 
@@ -797,6 +828,8 @@ export interface GetLocationGroupDeliverydestinationsPath {
797
828
  export interface GetLocationGroupDeliverydestinationsQuery {
798
829
  // Delivery destination name
799
830
  name?: string;
831
+ // Graphql query string
832
+ _query?: string;
800
833
  }
801
834
 
802
835
  export interface GetLocationGroupDeliverydestinationsResponse {
@@ -876,10 +909,16 @@ export interface GetLocationGroupDeliverydestinationPath {
876
909
  delivery_destination: string;
877
910
  }
878
911
 
912
+ export interface GetLocationGroupDeliverydestinationQuery {
913
+ // Graphql query string
914
+ _query?: string;
915
+ }
916
+
879
917
  export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
880
918
 
881
919
  export interface GetLocationGroupDeliverydestinationRequest
882
920
  extends BaseRequest,
921
+ RequestQuery<GetLocationGroupDeliverydestinationQuery>,
883
922
  GetLocationGroupDeliverydestinationPath {}
884
923
 
885
924
  // GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
@@ -894,6 +933,8 @@ export interface GetLocationUserGroupPath {
894
933
  export interface GetLocationUserGroupQuery {
895
934
  latitude?: number;
896
935
  longitude?: number;
936
+ // Graphql query string
937
+ _query?: string;
897
938
  nocache?: boolean;
898
939
  }
899
940
 
@@ -906,11 +947,18 @@ export interface GetLocationUserGroupRequest
906
947
 
907
948
  // GET /location/brands - Get all location brands
908
949
 
950
+ export interface GetLocationBrandsQuery {
951
+ // Graphql query string
952
+ _query?: string;
953
+ }
954
+
909
955
  export interface GetLocationBrandsResponse {
910
956
  brands?: Brands;
911
957
  }
912
958
 
913
- export interface GetLocationBrandsRequest extends BaseRequest {}
959
+ export interface GetLocationBrandsRequest
960
+ extends BaseRequest,
961
+ RequestQuery<GetLocationBrandsQuery> {}
914
962
 
915
963
  // GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
916
964
 
@@ -919,10 +967,16 @@ export interface GetLocationBrandDestinationsPath {
919
967
  id: string;
920
968
  }
921
969
 
970
+ export interface GetLocationBrandDestinationsQuery {
971
+ // Graphql query string
972
+ _query?: string;
973
+ }
974
+
922
975
  export type GetLocationBrandDestinationsResponse = DeliveryDestinationIDs;
923
976
 
924
977
  export interface GetLocationBrandDestinationsRequest
925
978
  extends BaseRequest,
979
+ RequestQuery<GetLocationBrandDestinationsQuery>,
926
980
  GetLocationBrandDestinationsPath {}
927
981
 
928
982
  // POST /location/brand/{id}/document - Attach document to a brand
@@ -984,10 +1038,16 @@ export interface GetLocationBrandDocumentsPath {
984
1038
  id: string;
985
1039
  }
986
1040
 
1041
+ export interface GetLocationBrandDocumentsQuery {
1042
+ // Graphql query string
1043
+ _query?: string;
1044
+ }
1045
+
987
1046
  export type GetLocationBrandDocumentsResponse = BrandDocumentsResponse;
988
1047
 
989
1048
  export interface GetLocationBrandDocumentsRequest
990
1049
  extends BaseRequest,
1050
+ RequestQuery<GetLocationBrandDocumentsQuery>,
991
1051
  GetLocationBrandDocumentsPath {}
992
1052
 
993
1053
  // GET /location/brand/{id}/timeslots - Get location brand timeslots
@@ -1002,6 +1062,8 @@ export interface GetLocationBrandTimeslotsQuery {
1002
1062
  date?: number;
1003
1063
  // Limit the number of timeslots returned
1004
1064
  limit?: number;
1065
+ // Graphql query string
1066
+ _query?: string;
1005
1067
  }
1006
1068
 
1007
1069
  export type GetLocationBrandTimeslotsResponse = TimeSlots;
@@ -1063,6 +1125,8 @@ export interface GetLocationBrandMenuTimeslotsQuery {
1063
1125
  date?: number;
1064
1126
  // Limit the number of timeslots returned
1065
1127
  limit?: number;
1128
+ // Graphql query string
1129
+ _query?: string;
1066
1130
  }
1067
1131
 
1068
1132
  export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
@@ -1084,6 +1148,8 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
1084
1148
  date?: number;
1085
1149
  // Limit the number of timeslots returned
1086
1150
  limit?: number;
1151
+ // Graphql query string
1152
+ _query?: string;
1087
1153
  }
1088
1154
 
1089
1155
  export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
@@ -1107,6 +1173,8 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
1107
1173
  date?: number;
1108
1174
  // Limit the number of timeslots returned
1109
1175
  limit?: number;
1176
+ // Graphql query string
1177
+ _query?: string;
1110
1178
  }
1111
1179
 
1112
1180
  export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
@@ -1138,6 +1206,8 @@ export interface GetLocationBrandQuery {
1138
1206
  include_config?: boolean;
1139
1207
  // show additional hidden properties/entities
1140
1208
  extended?: boolean;
1209
+ // Graphql query string
1210
+ _query?: string;
1141
1211
  nocache?: boolean;
1142
1212
  }
1143
1213
 
@@ -1170,13 +1240,9 @@ export interface DeleteLocationBrandPath {
1170
1240
  id: string;
1171
1241
  }
1172
1242
 
1173
- export type DeleteLocationBrandBody = Brand;
1243
+ export type DeleteLocationBrandResponse = success;
1174
1244
 
1175
- export type DeleteLocationBrandResponse = Brand;
1176
-
1177
- export interface DeleteLocationBrandRequest extends BaseRequest, DeleteLocationBrandPath {
1178
- body: DeleteLocationBrandBody;
1179
- }
1245
+ export interface DeleteLocationBrandRequest extends BaseRequest, DeleteLocationBrandPath {}
1180
1246
 
1181
1247
  // PUT /location/brand/{id} - Update location brand
1182
1248
 
@@ -1196,6 +1262,8 @@ export interface PutLocationBrandRequest extends BaseRequest, PutLocationBrandPa
1196
1262
  // GET /location/sector - Get list of all the sectors
1197
1263
 
1198
1264
  export interface GetLocationSectorsQuery {
1265
+ // Graphql query string
1266
+ _query?: string;
1199
1267
  nocache?: boolean;
1200
1268
  }
1201
1269
 
@@ -1225,6 +1293,8 @@ export interface GetLocationSectorPath {
1225
1293
  export interface GetLocationSectorQuery {
1226
1294
  // Omits nested children of a sector if false
1227
1295
  expanded?: boolean;
1296
+ // Graphql query string
1297
+ _query?: string;
1228
1298
  nocache?: boolean;
1229
1299
  }
1230
1300
 
@@ -1286,6 +1356,8 @@ export interface GetLocationCompanyPath {
1286
1356
 
1287
1357
  export interface GetLocationCompanyQuery {
1288
1358
  expanded?: boolean;
1359
+ // Graphql query string
1360
+ _query?: string;
1289
1361
  }
1290
1362
 
1291
1363
  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