@compassdigital/sdk.typescript 4.93.0 → 4.94.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/lib/index.d.ts +182 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +211 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/location.d.ts +9 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1090 -7
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +3 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +138 -20
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +500 -1
- package/src/interface/calendar.ts +0 -2
- package/src/interface/location.ts +26 -29
- package/src/interface/menu.ts +1271 -7
- package/src/interface/order.ts +5 -4
- package/src/interface/partner.ts +194 -34
- package/src/interface/user.ts +5 -11
package/src/interface/order.ts
CHANGED
|
@@ -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
|
-
//
|
|
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
|
}
|
package/src/interface/partner.ts
CHANGED
|
@@ -32,6 +32,23 @@ export interface ShoppingCartResponse {
|
|
|
32
32
|
app?: string;
|
|
33
33
|
discount?: Record<string, any>;
|
|
34
34
|
provider_data?: FPValidationData;
|
|
35
|
+
order?: {
|
|
36
|
+
items_applied_discount_amount?: number;
|
|
37
|
+
amount?: number;
|
|
38
|
+
items_discount_amount?: number;
|
|
39
|
+
total_amount?: number;
|
|
40
|
+
total_applied_discount_amount?: number;
|
|
41
|
+
total_discount_amount?: number;
|
|
42
|
+
items?: {
|
|
43
|
+
applied_discount_amount?: number;
|
|
44
|
+
amount?: number;
|
|
45
|
+
discount_amount?: number;
|
|
46
|
+
price?: number;
|
|
47
|
+
quantity?: number;
|
|
48
|
+
source_id?: string;
|
|
49
|
+
subtotal_amount?: number;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
35
52
|
};
|
|
36
53
|
//@deprecated
|
|
37
54
|
loyalty?: {
|
|
@@ -44,15 +61,7 @@ export interface ShoppingCartResponse {
|
|
|
44
61
|
// Points to be earned for this shopping cart total
|
|
45
62
|
order_loyalty_points?: boolean;
|
|
46
63
|
};
|
|
47
|
-
discount?:
|
|
48
|
-
code?: string;
|
|
49
|
-
provider?: 'fp' | 'voucherify';
|
|
50
|
-
amount_off?: MonetaryValue;
|
|
51
|
-
percent_off?: MonetaryValue;
|
|
52
|
-
amount?: MonetaryValue;
|
|
53
|
-
discount?: Record<string, any>;
|
|
54
|
-
provider_data?: FPValidationData;
|
|
55
|
-
};
|
|
64
|
+
discount?: ShoppingCartResponse['promo'];
|
|
56
65
|
payment_method?: {
|
|
57
66
|
// Mealplan payment details
|
|
58
67
|
mealplan?: {
|
|
@@ -123,10 +132,16 @@ export interface ShoppingCartResponse {
|
|
|
123
132
|
email_tax_exempt?: boolean;
|
|
124
133
|
// Indicates to clients that a tax recalculation is required
|
|
125
134
|
tax_calculation_required?: boolean;
|
|
135
|
+
// Indicates that the shopping cart is a system 365 shopping cart
|
|
136
|
+
system365?: boolean;
|
|
126
137
|
};
|
|
127
138
|
meta?: {
|
|
128
139
|
// Raw request from any vendor integrated with CDL
|
|
129
140
|
vendor?: Record<string, any>;
|
|
141
|
+
drain_order_type?: {
|
|
142
|
+
taxable?: boolean;
|
|
143
|
+
tax_exempt?: boolean;
|
|
144
|
+
};
|
|
130
145
|
[index: string]: any;
|
|
131
146
|
};
|
|
132
147
|
}
|
|
@@ -138,6 +153,10 @@ export interface ItemResponse {
|
|
|
138
153
|
// index based on cdl id or stringified timestamp
|
|
139
154
|
_index?: string;
|
|
140
155
|
quantity: Quantity;
|
|
156
|
+
quantity_by_weight?: {
|
|
157
|
+
unit?: string;
|
|
158
|
+
value?: number;
|
|
159
|
+
};
|
|
141
160
|
unit?: number;
|
|
142
161
|
price?: Price;
|
|
143
162
|
// Final item price after LTO/Bundle/BOGO etc is applied on the item.
|
|
@@ -145,6 +164,7 @@ export interface ItemResponse {
|
|
|
145
164
|
active?: boolean;
|
|
146
165
|
amount?: MonetaryValue;
|
|
147
166
|
};
|
|
167
|
+
weighed_price?: Price;
|
|
148
168
|
// Subtotal of the item including all options
|
|
149
169
|
_subtotal?: {
|
|
150
170
|
amount?: MonetaryValue;
|
|
@@ -164,9 +184,16 @@ export interface ItemResponse {
|
|
|
164
184
|
brand?: string;
|
|
165
185
|
brand_label?: Label;
|
|
166
186
|
taxes?: string[];
|
|
187
|
+
tax?: {
|
|
188
|
+
tax_tag_code?: string;
|
|
189
|
+
tax_rate?: number;
|
|
190
|
+
tax_amount?: number;
|
|
191
|
+
};
|
|
167
192
|
menu_tax_tags?: string[];
|
|
168
193
|
orderable?: boolean;
|
|
169
194
|
volante_id?: string;
|
|
195
|
+
barcodes?: string[];
|
|
196
|
+
plu?: string;
|
|
170
197
|
[index: string]: any;
|
|
171
198
|
};
|
|
172
199
|
options?: {
|
|
@@ -175,6 +202,8 @@ export interface ItemResponse {
|
|
|
175
202
|
meta?: {
|
|
176
203
|
taxes?: string[];
|
|
177
204
|
original_label?: Label;
|
|
205
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
206
|
+
surchage_limit_value?: number;
|
|
178
207
|
};
|
|
179
208
|
items?: {
|
|
180
209
|
// option/modifier
|
|
@@ -188,6 +217,11 @@ export interface ItemResponse {
|
|
|
188
217
|
sort_number?: number;
|
|
189
218
|
original_label?: Label;
|
|
190
219
|
taxes?: string[];
|
|
220
|
+
sizing?: {
|
|
221
|
+
name?: string;
|
|
222
|
+
price?: MonetaryValue;
|
|
223
|
+
posid?: string;
|
|
224
|
+
}[];
|
|
191
225
|
};
|
|
192
226
|
amount_off_exclusions?: AmountOffExclusion[];
|
|
193
227
|
is?: {
|
|
@@ -196,6 +230,8 @@ export interface ItemResponse {
|
|
|
196
230
|
}[];
|
|
197
231
|
is?: {
|
|
198
232
|
disabled?: boolean;
|
|
233
|
+
incremental?: boolean;
|
|
234
|
+
surchage_limit?: boolean;
|
|
199
235
|
};
|
|
200
236
|
}[];
|
|
201
237
|
// Details about discount like BOGO, LTO, Bundle etc.
|
|
@@ -206,8 +242,15 @@ export interface ItemResponse {
|
|
|
206
242
|
added_on?: string;
|
|
207
243
|
meal_value?: IntegerValue;
|
|
208
244
|
category?: Label;
|
|
245
|
+
menu_label?: Label;
|
|
209
246
|
tax_rate?: MonetaryValue;
|
|
210
247
|
label?: Label;
|
|
248
|
+
reporting?: {
|
|
249
|
+
category?: {
|
|
250
|
+
primary?: string;
|
|
251
|
+
secondary?: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
211
254
|
}
|
|
212
255
|
|
|
213
256
|
export type MonetaryValue = number;
|
|
@@ -257,12 +300,62 @@ export interface Taxes {
|
|
|
257
300
|
combined_tax_rate?: MonetaryValue;
|
|
258
301
|
gst?: MonetaryValue;
|
|
259
302
|
pst?: MonetaryValue;
|
|
303
|
+
provider?: string;
|
|
260
304
|
[index: string]: any;
|
|
261
305
|
};
|
|
306
|
+
provider?: string;
|
|
307
|
+
quote_payload?: {
|
|
308
|
+
// a unique identifier representing the transaction
|
|
309
|
+
id: string;
|
|
310
|
+
// the app to associate the transaction with
|
|
311
|
+
appName: string;
|
|
312
|
+
// the order fulfillment type
|
|
313
|
+
transactionType: 'pickup' | 'delivery';
|
|
314
|
+
// numeric value of service fee
|
|
315
|
+
serviceFee?: number;
|
|
316
|
+
// numeric value of delivery fee
|
|
317
|
+
deliveryFee?: number;
|
|
318
|
+
// location data of the transaction
|
|
319
|
+
locationData: {
|
|
320
|
+
// unique location identifier
|
|
321
|
+
id: string;
|
|
322
|
+
// country of transaction
|
|
323
|
+
country: string;
|
|
324
|
+
// state or province of transaction
|
|
325
|
+
stateOrProvince: string;
|
|
326
|
+
// city of transaction
|
|
327
|
+
city: string;
|
|
328
|
+
// postal code of transaction
|
|
329
|
+
postalCode: string;
|
|
330
|
+
// street address of transaction
|
|
331
|
+
streetAddress: string;
|
|
332
|
+
};
|
|
333
|
+
// items to calculate tax on
|
|
334
|
+
items: {
|
|
335
|
+
// unique item identifier
|
|
336
|
+
id: string;
|
|
337
|
+
// indicates a tax rule for an item
|
|
338
|
+
taxTagCode: string;
|
|
339
|
+
// amount of an item
|
|
340
|
+
quantity: number;
|
|
341
|
+
// decimal price of an item
|
|
342
|
+
price: number;
|
|
343
|
+
// amount of tax charged on an item after funds are captured
|
|
344
|
+
taxedAmount?: number;
|
|
345
|
+
}[];
|
|
346
|
+
// iso timstamp of transaction date
|
|
347
|
+
transactionDate?: string;
|
|
348
|
+
// an array of items to refund
|
|
349
|
+
refunds?: {
|
|
350
|
+
// unique identifier of the refunded item
|
|
351
|
+
refundItemId: string;
|
|
352
|
+
// quantity amount of the item to be refunded
|
|
353
|
+
refundItemQuantity: number;
|
|
354
|
+
}[];
|
|
355
|
+
};
|
|
262
356
|
}
|
|
263
357
|
|
|
264
358
|
export interface LocationGroup {
|
|
265
|
-
// group
|
|
266
359
|
id?: string;
|
|
267
360
|
name?: string;
|
|
268
361
|
label?: {
|
|
@@ -274,13 +367,16 @@ export interface LocationGroup {
|
|
|
274
367
|
locations?: Location[];
|
|
275
368
|
address?: Address;
|
|
276
369
|
meta?: Record<string, any>;
|
|
277
|
-
style?:
|
|
370
|
+
style?: {
|
|
371
|
+
logo?: string | null;
|
|
372
|
+
main_logo?: string | null;
|
|
373
|
+
alt_logo?: string | null;
|
|
374
|
+
};
|
|
278
375
|
timezone?: string;
|
|
279
376
|
[index: string]: any;
|
|
280
377
|
}
|
|
281
378
|
|
|
282
379
|
export interface Location {
|
|
283
|
-
// location
|
|
284
380
|
id?: string;
|
|
285
381
|
operation_id?: number;
|
|
286
382
|
name?: string;
|
|
@@ -296,11 +392,11 @@ export interface Location {
|
|
|
296
392
|
brands?: Brand[];
|
|
297
393
|
meta?: Record<string, any>;
|
|
298
394
|
phone?: string;
|
|
299
|
-
// group
|
|
395
|
+
// The CDL is representing the group of this location
|
|
300
396
|
location_group?: string;
|
|
301
|
-
// multigroup
|
|
397
|
+
// The CDL id representing the multigroup of this location
|
|
302
398
|
location_multigroup?: string;
|
|
303
|
-
// sector
|
|
399
|
+
// The CDL id representing the sector of this location
|
|
304
400
|
sector?: string;
|
|
305
401
|
date?: {
|
|
306
402
|
deleted?: string;
|
|
@@ -318,6 +414,7 @@ export interface Location {
|
|
|
318
414
|
};
|
|
319
415
|
logo?: string;
|
|
320
416
|
is?: {
|
|
417
|
+
enabled?: boolean;
|
|
321
418
|
pickup_supported?: boolean;
|
|
322
419
|
delivery_supported?: boolean;
|
|
323
420
|
};
|
|
@@ -345,7 +442,7 @@ export interface Location {
|
|
|
345
442
|
export interface Brand {
|
|
346
443
|
// brand
|
|
347
444
|
id?: string;
|
|
348
|
-
// sector
|
|
445
|
+
// The CDL id representing the sector this brand belongs to
|
|
349
446
|
sector?: string;
|
|
350
447
|
name?: string;
|
|
351
448
|
label?: {
|
|
@@ -366,8 +463,12 @@ export interface Brand {
|
|
|
366
463
|
};
|
|
367
464
|
hours?: Hours[];
|
|
368
465
|
deliveryHours?: DeliveryHours[];
|
|
369
|
-
style?:
|
|
370
|
-
|
|
466
|
+
style?: {
|
|
467
|
+
logo?: string | null;
|
|
468
|
+
main_logo?: string | null;
|
|
469
|
+
alt_logo?: string | null;
|
|
470
|
+
};
|
|
471
|
+
// The CDL id representing the PoS for this brand
|
|
371
472
|
pos?: string;
|
|
372
473
|
terminals?: Record<string, any>[];
|
|
373
474
|
device_mapping?: Record<
|
|
@@ -398,6 +499,7 @@ export interface Brand {
|
|
|
398
499
|
is?: {
|
|
399
500
|
pickup_supported?: boolean;
|
|
400
501
|
delivery_supported?: boolean;
|
|
502
|
+
frictionless_supported?: boolean;
|
|
401
503
|
plu_enabled?: boolean;
|
|
402
504
|
promo_exemptions_enabled?: boolean;
|
|
403
505
|
local_images_enabled?: boolean;
|
|
@@ -408,21 +510,21 @@ export interface Brand {
|
|
|
408
510
|
scan_and_go_supported?: boolean;
|
|
409
511
|
calories_edit_enabled?: boolean;
|
|
410
512
|
// admin panel toggle
|
|
411
|
-
|
|
513
|
+
special_instructions_enabled?: boolean;
|
|
412
514
|
dining_hall?: boolean;
|
|
413
515
|
[index: string]: any;
|
|
414
516
|
};
|
|
415
|
-
// brand
|
|
517
|
+
// The CDL id representing the brand
|
|
416
518
|
brand?: string;
|
|
417
|
-
// location
|
|
519
|
+
// The CDL id representing the location of this brand
|
|
418
520
|
location?: string;
|
|
419
521
|
// location group
|
|
420
522
|
group?: string;
|
|
421
|
-
// payment
|
|
523
|
+
// The CDL id representing the payment provider of this brand
|
|
422
524
|
payment_provider?: string;
|
|
423
525
|
//@deprecated
|
|
424
526
|
location_description?: string;
|
|
425
|
-
// company
|
|
527
|
+
// The CDL id representing the company of this brand
|
|
426
528
|
company?: string;
|
|
427
529
|
config?: {
|
|
428
530
|
private?: Record<string, any>;
|
|
@@ -462,6 +564,9 @@ export interface Brand {
|
|
|
462
564
|
software_integrations?: {
|
|
463
565
|
system365?: string;
|
|
464
566
|
jwo?: string;
|
|
567
|
+
nextep?: {
|
|
568
|
+
mobile_app?: boolean;
|
|
569
|
+
};
|
|
465
570
|
};
|
|
466
571
|
[index: string]: any;
|
|
467
572
|
};
|
|
@@ -504,7 +609,6 @@ export interface Address {
|
|
|
504
609
|
}
|
|
505
610
|
|
|
506
611
|
export interface MenuHours {
|
|
507
|
-
// menu
|
|
508
612
|
id?: string;
|
|
509
613
|
label?: {
|
|
510
614
|
en?: string;
|
|
@@ -515,10 +619,10 @@ export interface MenuHours {
|
|
|
515
619
|
is_frictionless?: boolean;
|
|
516
620
|
// Identifies a brand or menu state, i.e open, closed or accepting preorders
|
|
517
621
|
state?: 'open' | 'closed' | 'preorder';
|
|
622
|
+
is_disabled?: boolean;
|
|
518
623
|
}
|
|
519
624
|
|
|
520
625
|
export interface Hours {
|
|
521
|
-
// hours
|
|
522
626
|
id?: string;
|
|
523
627
|
date?: {
|
|
524
628
|
deleted?: string;
|
|
@@ -533,7 +637,6 @@ export interface Hours {
|
|
|
533
637
|
}
|
|
534
638
|
|
|
535
639
|
export interface DeliveryHours {
|
|
536
|
-
// hours
|
|
537
640
|
id?: string;
|
|
538
641
|
day?: {
|
|
539
642
|
start?: number;
|
|
@@ -592,6 +695,16 @@ export interface Menu {
|
|
|
592
695
|
last_modified_user?: string;
|
|
593
696
|
centricos?: boolean;
|
|
594
697
|
version?: number;
|
|
698
|
+
// V3 Brand metadata if menu came from Centric
|
|
699
|
+
brand?: {
|
|
700
|
+
id?: string;
|
|
701
|
+
name?: string;
|
|
702
|
+
};
|
|
703
|
+
// V3 Local Menu Group metadata if menu came from Centric
|
|
704
|
+
local_menu_group?: {
|
|
705
|
+
id?: string;
|
|
706
|
+
name?: string;
|
|
707
|
+
};
|
|
595
708
|
[index: string]: any;
|
|
596
709
|
};
|
|
597
710
|
}
|
|
@@ -617,6 +730,8 @@ export interface Group {
|
|
|
617
730
|
price?: {
|
|
618
731
|
amount?: number;
|
|
619
732
|
currency?: string;
|
|
733
|
+
total_price?: number;
|
|
734
|
+
discount?: number;
|
|
620
735
|
};
|
|
621
736
|
// Meal exchange value of the item
|
|
622
737
|
meal_value?: number;
|
|
@@ -729,7 +844,6 @@ export interface Group {
|
|
|
729
844
|
sort_number?: number;
|
|
730
845
|
// menu sort order
|
|
731
846
|
menu_sort_number?: number;
|
|
732
|
-
plu?: string;
|
|
733
847
|
sizing?: {
|
|
734
848
|
name?: string;
|
|
735
849
|
posid?: string;
|
|
@@ -738,6 +852,28 @@ export interface Group {
|
|
|
738
852
|
tax?: {
|
|
739
853
|
tax_tag_code?: string;
|
|
740
854
|
};
|
|
855
|
+
recipe?: {
|
|
856
|
+
// menuworks mrn
|
|
857
|
+
mrn?: string;
|
|
858
|
+
// menuworks unit id
|
|
859
|
+
unit_id?: string;
|
|
860
|
+
// menuworks portion quantity
|
|
861
|
+
portion_quantity?: number;
|
|
862
|
+
// menuworks portion unit name
|
|
863
|
+
portion_unit_name?: string;
|
|
864
|
+
// menuworks grams
|
|
865
|
+
grams?: number;
|
|
866
|
+
// menuworks cost (per serving)
|
|
867
|
+
cost?: number;
|
|
868
|
+
// menuworks ingredients
|
|
869
|
+
ingredients?: string[];
|
|
870
|
+
// menuworks smart tags
|
|
871
|
+
smart_tags?: string[];
|
|
872
|
+
// menuworks allergen tags
|
|
873
|
+
allergen_tags?: string[];
|
|
874
|
+
};
|
|
875
|
+
// unique id of the entity
|
|
876
|
+
unique_id?: number;
|
|
741
877
|
[index: string]: any;
|
|
742
878
|
};
|
|
743
879
|
is?: {
|
|
@@ -746,6 +882,7 @@ export interface Group {
|
|
|
746
882
|
out_of_stock?: boolean;
|
|
747
883
|
};
|
|
748
884
|
amount_off_exclusions?: AmountOffExclusionTypes[];
|
|
885
|
+
line_route?: string;
|
|
749
886
|
}[];
|
|
750
887
|
min?: number;
|
|
751
888
|
max?: number;
|
|
@@ -754,10 +891,15 @@ export interface Group {
|
|
|
754
891
|
hidden?: boolean;
|
|
755
892
|
out_of_stock?: boolean;
|
|
756
893
|
incremental?: boolean;
|
|
894
|
+
surcharge_limit?: boolean;
|
|
757
895
|
};
|
|
758
896
|
meta?: {
|
|
759
897
|
// chit sort order
|
|
760
898
|
sort_number?: number;
|
|
899
|
+
// Type of mod group
|
|
900
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
901
|
+
// # of modifiers before surcharge apply
|
|
902
|
+
surcharge_limit_value?: number;
|
|
761
903
|
// menu sort order
|
|
762
904
|
menu_sort_number?: number;
|
|
763
905
|
[index: string]: any;
|
|
@@ -772,13 +914,6 @@ export interface Group {
|
|
|
772
914
|
type_id?: number;
|
|
773
915
|
type?: string;
|
|
774
916
|
};
|
|
775
|
-
featured?: {
|
|
776
|
-
sort_number?: number;
|
|
777
|
-
dates?: {
|
|
778
|
-
start?: string;
|
|
779
|
-
end?: string;
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
917
|
// chit sort order
|
|
783
918
|
sort_number?: number;
|
|
784
919
|
// menu sort order
|
|
@@ -787,7 +922,32 @@ export interface Group {
|
|
|
787
922
|
barcodes?: string[];
|
|
788
923
|
tax?: {
|
|
789
924
|
tax_tag_code?: string;
|
|
925
|
+
tax_jwo_code?: string;
|
|
926
|
+
tax_rate?: number;
|
|
927
|
+
tax_amount?: number;
|
|
928
|
+
};
|
|
929
|
+
recipe?: {
|
|
930
|
+
// menuworks mrn
|
|
931
|
+
mrn?: string;
|
|
932
|
+
// menuworks unit id
|
|
933
|
+
unit_id?: string;
|
|
934
|
+
// menuworks portion quantity
|
|
935
|
+
portion_quantity?: number;
|
|
936
|
+
// menuworks portion unit name
|
|
937
|
+
portion_unit_name?: string;
|
|
938
|
+
// menuworks grams
|
|
939
|
+
grams?: number;
|
|
940
|
+
// menuworks cost (per serving)
|
|
941
|
+
cost?: number;
|
|
942
|
+
// menuworks ingredients
|
|
943
|
+
ingredients?: string[];
|
|
944
|
+
// menuworks smart tags
|
|
945
|
+
smart_tags?: string[];
|
|
946
|
+
// menuworks allergen tags
|
|
947
|
+
allergen_tags?: string[];
|
|
790
948
|
};
|
|
949
|
+
// unique id of the entity
|
|
950
|
+
unique_id?: number;
|
|
791
951
|
};
|
|
792
952
|
category?: {
|
|
793
953
|
en?: string;
|
package/src/interface/user.ts
CHANGED
|
@@ -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
|
-
//
|
|
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
|
-
//
|
|
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;
|