@compassdigital/sdk.typescript 4.93.0 → 4.94.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.
@@ -22,8 +22,6 @@ export interface CreateOrder {
22
22
  // user
23
23
  customer?: string;
24
24
  is?: {
25
- //@deprecated
26
- accepted?: boolean;
27
25
  in_progress?: boolean;
28
26
  ready?: boolean;
29
27
  };
@@ -112,7 +110,6 @@ export interface Order {
112
110
  // user
113
111
  customer?: string;
114
112
  is?: {
115
- //@deprecated
116
113
  accepted?: boolean;
117
114
  in_progress?: boolean;
118
115
  ready?: boolean;
@@ -189,10 +186,12 @@ export interface Order {
189
186
  shoppingcart?: {
190
187
  total?: {
191
188
  amount?: number;
189
+ meals?: number;
192
190
  };
193
191
  // Total of first cart on order. Carts can change after refunds, so this is original value
194
192
  original_total?: {
195
193
  amount?: number;
194
+ meals?: number;
196
195
  };
197
196
  [index: string]: any;
198
197
  };
@@ -570,8 +569,10 @@ export interface GetOrderLocationBrandQuery {
570
569
  order_type?: string;
571
570
  // number of orders per page
572
571
  limit?: number;
573
- // return orders with all status types
572
+ // include not accepted checkin orders
574
573
  all_statuses?: boolean;
574
+ // return orders with specific statuses. Comma separated list of status:value pairs. Example: ready:true,cancelled:true - will return orders that are ready or cancelled
575
+ status?: string;
575
576
  // Graphql query string
576
577
  _query?: string;
577
578
  }
@@ -462,6 +462,7 @@ export interface Brand {
462
462
  software_integrations?: {
463
463
  system365?: string;
464
464
  jwo?: string;
465
+ time2eat?: string;
465
466
  };
466
467
  [index: string]: any;
467
468
  };
@@ -10,7 +10,6 @@ export interface Error {
10
10
  }
11
11
 
12
12
  export interface User {
13
- // user
14
13
  id?: string;
15
14
  email?: string;
16
15
  name?: {
@@ -27,7 +26,7 @@ export interface User {
27
26
  phone?: number;
28
27
  // User phone country code in ISO 3166-1 alpha-2 format
29
28
  phone_country_code?: string;
30
- // realm
29
+ // The ID for the realm (Boost, Thrive, etc.) that the user belongs to
31
30
  realm?: string;
32
31
  gender?: 'male' | 'female' | 'non-binary';
33
32
  meta?: UserMeta;
@@ -61,12 +60,12 @@ export interface GuestUserCreate {
61
60
  first?: string;
62
61
  last?: string;
63
62
  };
64
- // realm
63
+ // The ID for the realm (Boost, Thrive, etc.) that the user belongs to
65
64
  realm?: string;
66
65
  }
67
66
 
68
67
  export interface GuestUserToken {
69
- // realm
68
+ // The ID for the realm (Boost, Thrive, etc.) that the user belongs to
70
69
  realm?: string;
71
70
  }
72
71
 
@@ -109,7 +108,6 @@ export interface auth {
109
108
  token?: string;
110
109
  expires?: string;
111
110
  };
112
- // user
113
111
  user?: string;
114
112
  profile?: User;
115
113
  }
@@ -121,7 +119,6 @@ export interface guestAuth {
121
119
  token?: string;
122
120
  expires?: string;
123
121
  };
124
- // user
125
122
  user?: string;
126
123
  profile?: User;
127
124
  }
@@ -139,7 +136,6 @@ export interface omsauth {
139
136
  token?: string;
140
137
  expires?: string;
141
138
  };
142
- // user
143
139
  user?: string;
144
140
  profile?: User;
145
141
  }
@@ -179,7 +175,7 @@ export interface KDSDevice {
179
175
  }
180
176
 
181
177
  export interface Checkin {
182
- // checkin
178
+ // The ID for user check-in
183
179
  checkin_id?: string;
184
180
  // The colour that identifies the visit in hex code
185
181
  colour?: string;
@@ -198,7 +194,6 @@ export interface Checkin {
198
194
  // If the `User` is near or far from a store (as determined by the backend). If this is `false` for a prolonged period the client should assume the `User` is not in a standard store and stop trying to attach.
199
195
  near_store?: boolean;
200
196
  };
201
- // user
202
197
  user_id?: string;
203
198
  date_queued?: string;
204
199
  // The state of the user association process (attaching). Present for NFC check-ins only
@@ -258,7 +253,7 @@ export interface Key {
258
253
  }
259
254
 
260
255
  export interface UserDeviceAuthBody {
261
- // KDS IDFA id
256
+ // The ID for the body of the user device's authentication
262
257
  id?: string;
263
258
  // CDL encoded id of a serial_number
264
259
  serial_number?: string;
@@ -823,7 +818,6 @@ export interface GetUserProfileQuery {
823
818
  }
824
819
 
825
820
  export interface GetUserProfileResponse {
826
- // user
827
821
  id: string;
828
822
  name: {
829
823
  first?: string;