@compassdigital/sdk.typescript 4.108.0 → 4.109.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.
- package/lib/index.d.ts +49 -51
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +54 -53
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +5 -0
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +100 -53
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +25 -13
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +14 -2
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +59 -0
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/search.d.ts +7 -2
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/user.d.ts +10 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/manifest.json +4 -4
- package/package.json +1 -1
- package/src/index.ts +128 -126
- package/src/interface/auth.ts +6 -0
- package/src/interface/centricos.ts +165 -62
- package/src/interface/discount.ts +32 -14
- package/src/interface/menu.ts +14 -2
- package/src/interface/promo.ts +73 -0
- package/src/interface/search.ts +8 -2
- package/src/interface/user.ts +14 -2
|
@@ -50,6 +50,8 @@ export interface OrdersExportResponse {
|
|
|
50
50
|
fileName: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export type CompassLongID = Record<string, any>;
|
|
54
|
+
|
|
53
55
|
export interface DayPart {
|
|
54
56
|
label: string;
|
|
55
57
|
start: string;
|
|
@@ -107,6 +109,28 @@ export interface GetSitesResponse {
|
|
|
107
109
|
results: Site[];
|
|
108
110
|
}
|
|
109
111
|
|
|
112
|
+
export interface PriceLevelStation {
|
|
113
|
+
id: string;
|
|
114
|
+
name: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface PriceLevelBusinessUnit {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
unit_number: number;
|
|
121
|
+
stations: PriceLevelStation[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface PriceLevelSite {
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
business_units: PriceLevelBusinessUnit[];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface GetPriceLevelSitesResponse {
|
|
131
|
+
sites: PriceLevelSite[];
|
|
132
|
+
}
|
|
133
|
+
|
|
110
134
|
export interface ReviewOrderItem {
|
|
111
135
|
// Order id
|
|
112
136
|
id: string;
|
|
@@ -190,76 +214,107 @@ export interface GetStationResponse {
|
|
|
190
214
|
closure_schedules: ClosureSchedule[];
|
|
191
215
|
}
|
|
192
216
|
|
|
193
|
-
export interface
|
|
217
|
+
export interface DiscountRequestDTO {
|
|
218
|
+
// name of the discount
|
|
219
|
+
name: string;
|
|
220
|
+
// status of the discount
|
|
221
|
+
status?: Record<string, any>;
|
|
222
|
+
// user is of discount creator
|
|
223
|
+
createdBy?: string;
|
|
224
|
+
// last user who updated the discount
|
|
225
|
+
updatedBy?: string;
|
|
226
|
+
// creation timestamp
|
|
227
|
+
createdAt?: string;
|
|
228
|
+
// last update timestamp
|
|
229
|
+
updatedAt?: string;
|
|
230
|
+
// Voucherify metadata
|
|
231
|
+
meta?: Record<string, any>;
|
|
194
232
|
id?: string;
|
|
195
|
-
|
|
196
|
-
amountOff?: number;
|
|
197
|
-
percentOff?: number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface VoucherifyMetaDataDTO {
|
|
201
|
-
code?: string;
|
|
202
|
-
discount?: VoucherifyDiscountDTO;
|
|
233
|
+
is?: Record<string, any>;
|
|
203
234
|
}
|
|
204
235
|
|
|
205
|
-
export interface
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
export interface DiscountIs {
|
|
212
|
-
badgepayPromo?: boolean;
|
|
213
|
-
mealplanPromo?: boolean;
|
|
214
|
-
decliningBalancePromo?: boolean;
|
|
215
|
-
voucherPromo?: boolean;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface DiscountRequestDTO {
|
|
219
|
-
meta?: {
|
|
220
|
-
[index: string]: any;
|
|
221
|
-
} & VoucherifyMetaDataDTO;
|
|
222
|
-
id?: string;
|
|
223
|
-
createdBy?: string;
|
|
224
|
-
name?: string;
|
|
225
|
-
status?: DiscountStatus;
|
|
226
|
-
is?: DiscountIs;
|
|
227
|
-
app?: string;
|
|
236
|
+
export interface SiteDTO {
|
|
237
|
+
// The ID of the site
|
|
238
|
+
id: string;
|
|
239
|
+
// The name of the site
|
|
240
|
+
name: string;
|
|
228
241
|
}
|
|
229
242
|
|
|
230
243
|
export interface PutDiscountVoucherifyRequestDTO {
|
|
231
244
|
discount: DiscountRequestDTO;
|
|
232
|
-
sites?:
|
|
245
|
+
sites?: SiteDTO[];
|
|
233
246
|
}
|
|
234
247
|
|
|
235
248
|
export interface DiscountResponseDTO {
|
|
236
249
|
// user is of discount creator
|
|
237
250
|
createdBy: string;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
251
|
+
// last user who updated the discount
|
|
252
|
+
updatedBy: string;
|
|
253
|
+
// name of the discount
|
|
254
|
+
name: string;
|
|
255
|
+
// status of the discount
|
|
256
|
+
status?: Record<string, any>;
|
|
257
|
+
// Voucherify metadata
|
|
258
|
+
meta?: Record<string, any>;
|
|
241
259
|
id: string;
|
|
242
260
|
createdAt: string;
|
|
243
261
|
updatedAt: string;
|
|
244
|
-
|
|
245
|
-
status?: DiscountStatus;
|
|
246
|
-
is?: DiscountIs;
|
|
247
|
-
app?: string;
|
|
262
|
+
is?: Record<string, any>;
|
|
248
263
|
}
|
|
249
264
|
|
|
250
265
|
export interface PutDiscountVoucherifyResponseDTO {
|
|
251
266
|
discount: DiscountResponseDTO;
|
|
252
|
-
sites?:
|
|
267
|
+
sites?: SiteDTO[];
|
|
253
268
|
}
|
|
254
269
|
|
|
255
|
-
export
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
270
|
+
export type DiscountValidationError = Record<string, any>;
|
|
271
|
+
|
|
272
|
+
export type DiscountCreateError = Record<string, any>;
|
|
259
273
|
|
|
260
274
|
export interface PutDiscountVoucherifyPublishResponseDTO {
|
|
261
|
-
discount
|
|
262
|
-
|
|
275
|
+
// user is of discount creator
|
|
276
|
+
createdBy: string;
|
|
277
|
+
// last user who updated the discount
|
|
278
|
+
updatedBy: string;
|
|
279
|
+
// name of the discount
|
|
280
|
+
name: string;
|
|
281
|
+
// status of the discount
|
|
282
|
+
status?: Record<string, any>;
|
|
283
|
+
// Voucherify metadata
|
|
284
|
+
meta?: Record<string, any>;
|
|
285
|
+
// List of sites where discount is published
|
|
286
|
+
sites?: SiteDTO[];
|
|
287
|
+
id: string;
|
|
288
|
+
createdAt: string;
|
|
289
|
+
updatedAt: string;
|
|
290
|
+
is?: Record<string, any>;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type DiscountPublishError = Record<string, any>;
|
|
294
|
+
|
|
295
|
+
export interface DeleteDiscountsVoucherifyResponseDTO {
|
|
296
|
+
success: boolean;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type DiscountDeleteError = Record<string, any>;
|
|
300
|
+
|
|
301
|
+
export interface DiscountDTO {
|
|
302
|
+
// user is of discount creator
|
|
303
|
+
createdBy: string;
|
|
304
|
+
// last user who updated the discount
|
|
305
|
+
updatedBy: string;
|
|
306
|
+
// name of the discount
|
|
307
|
+
name: string;
|
|
308
|
+
// status of the discount
|
|
309
|
+
status?: Record<string, any>;
|
|
310
|
+
id: string;
|
|
311
|
+
createdAt: string;
|
|
312
|
+
updatedAt: string;
|
|
313
|
+
is?: Record<string, any>;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface GetDiscountResponseDTO {
|
|
317
|
+
discount: DiscountDTO;
|
|
263
318
|
}
|
|
264
319
|
|
|
265
320
|
// POST /centricos/ai/item/description - Generate item description
|
|
@@ -338,7 +393,7 @@ export interface PostCentricosOrdersExportRequest
|
|
|
338
393
|
// GET /centricos/report/group/{location_group}/config - Get report configuration for a location group. Times are in site's local timezone.
|
|
339
394
|
|
|
340
395
|
export interface GetCentricosReportGroupConfigPath {
|
|
341
|
-
// TODO:
|
|
396
|
+
// TODO: cannot use CompassLongID as path parameter
|
|
342
397
|
location_group: string;
|
|
343
398
|
}
|
|
344
399
|
|
|
@@ -357,7 +412,7 @@ export interface GetCentricosReportGroupConfigRequest
|
|
|
357
412
|
// PUT /centricos/report/group/{location_group}/config - Update report configuration for a location group. Times are in site's local timezone.
|
|
358
413
|
|
|
359
414
|
export interface PutCentricosReportGroupConfigPath {
|
|
360
|
-
// TODO:
|
|
415
|
+
// TODO: cannot use CompassLongID as path parameter
|
|
361
416
|
location_group: string;
|
|
362
417
|
}
|
|
363
418
|
|
|
@@ -374,7 +429,7 @@ export interface PutCentricosReportGroupConfigRequest
|
|
|
374
429
|
// DELETE /centricos/report/group/{location_group}/config - Delete report configuration for a location group. Times are in site's local timezone.
|
|
375
430
|
|
|
376
431
|
export interface DeleteCentricosReportGroupConfigPath {
|
|
377
|
-
// TODO:
|
|
432
|
+
// TODO: cannot use CompassLongID as path parameter
|
|
378
433
|
location_group: string;
|
|
379
434
|
}
|
|
380
435
|
|
|
@@ -387,7 +442,7 @@ export interface DeleteCentricosReportGroupConfigRequest
|
|
|
387
442
|
// GET /centricos/report/group/{location_group}/config/default - Get default report configuration. Times are in site's local timezone.
|
|
388
443
|
|
|
389
444
|
export interface GetCentricosReportConfigDefaultPath {
|
|
390
|
-
// TODO:
|
|
445
|
+
// TODO: cannot use CompassLongID as path parameter
|
|
391
446
|
location_group: string;
|
|
392
447
|
}
|
|
393
448
|
|
|
@@ -455,6 +510,26 @@ export interface GetCentricosSitesRequest
|
|
|
455
510
|
extends BaseRequest,
|
|
456
511
|
RequestQuery<GetCentricosSitesQuery> {}
|
|
457
512
|
|
|
513
|
+
// GET /centricos/sites/price-level/{price_level} - This returns specific properties from sites, locations, and stations connected to a menu price level. This does not support pagination, filtering, sorting, or searching.
|
|
514
|
+
|
|
515
|
+
export interface GetSitesFromPriceLevelPath {
|
|
516
|
+
// TODO: cannot use CompassLongID as path parameter
|
|
517
|
+
price_level: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export interface GetSitesFromPriceLevelQuery {
|
|
521
|
+
local_menu_group?: string;
|
|
522
|
+
// Graphql query string
|
|
523
|
+
_query?: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export type GetSitesFromPriceLevelResponse = GetPriceLevelSitesResponse;
|
|
527
|
+
|
|
528
|
+
export interface GetSitesFromPriceLevelRequest
|
|
529
|
+
extends BaseRequest,
|
|
530
|
+
RequestQuery<GetSitesFromPriceLevelQuery>,
|
|
531
|
+
GetSitesFromPriceLevelPath {}
|
|
532
|
+
|
|
458
533
|
// GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
|
|
459
534
|
|
|
460
535
|
export interface GetReviewOrderItemsPath {
|
|
@@ -476,7 +551,7 @@ export interface GetReviewOrderItemsRequest
|
|
|
476
551
|
// GET /centricos/station/{station_id} - Get station details
|
|
477
552
|
|
|
478
553
|
export interface GetCentricosStationPath {
|
|
479
|
-
// TODO:
|
|
554
|
+
// TODO: cannot use CompassLongID as path parameter
|
|
480
555
|
station_id: string;
|
|
481
556
|
}
|
|
482
557
|
|
|
@@ -494,27 +569,55 @@ export interface GetCentricosStationRequest
|
|
|
494
569
|
|
|
495
570
|
// PUT /centricos/discount/voucherify - Add or Update a voucherify discount and assign it to multiple sites
|
|
496
571
|
|
|
497
|
-
export type
|
|
572
|
+
export type PutCentricosDiscountVoucherifyBody = PutDiscountVoucherifyRequestDTO;
|
|
498
573
|
|
|
499
|
-
export type
|
|
574
|
+
export type PutCentricosDiscountVoucherifyResponse = PutDiscountVoucherifyResponseDTO;
|
|
500
575
|
|
|
501
|
-
export interface
|
|
502
|
-
body:
|
|
576
|
+
export interface PutCentricosDiscountVoucherifyRequest extends BaseRequest {
|
|
577
|
+
body: PutCentricosDiscountVoucherifyBody;
|
|
503
578
|
}
|
|
504
579
|
|
|
505
580
|
// PUT /centricos/discount/{id}/voucherify/publish - Update and publish a voucherify discount and assign it to multiple sites
|
|
506
581
|
|
|
507
|
-
export interface
|
|
582
|
+
export interface PutCentricosDiscountVoucherifyPublishPath {
|
|
508
583
|
// Discount ID
|
|
509
584
|
id: string;
|
|
510
585
|
}
|
|
511
586
|
|
|
512
|
-
export type
|
|
587
|
+
export type PutCentricosDiscountVoucherifyPublishResponse = PutDiscountVoucherifyPublishResponseDTO;
|
|
588
|
+
|
|
589
|
+
export interface PutCentricosDiscountVoucherifyPublishRequest
|
|
590
|
+
extends BaseRequest,
|
|
591
|
+
PutCentricosDiscountVoucherifyPublishPath {}
|
|
592
|
+
|
|
593
|
+
// DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
|
|
594
|
+
|
|
595
|
+
export interface DeleteCentricosDiscountsVoucherifyPath {
|
|
596
|
+
// Discount ID
|
|
597
|
+
id: string;
|
|
598
|
+
}
|
|
513
599
|
|
|
514
|
-
export type
|
|
600
|
+
export type DeleteCentricosDiscountsVoucherifyResponse = DeleteDiscountsVoucherifyResponseDTO;
|
|
515
601
|
|
|
516
|
-
export interface
|
|
602
|
+
export interface DeleteCentricosDiscountsVoucherifyRequest
|
|
517
603
|
extends BaseRequest,
|
|
518
|
-
|
|
519
|
-
|
|
604
|
+
DeleteCentricosDiscountsVoucherifyPath {}
|
|
605
|
+
|
|
606
|
+
// GET /centricos/discount/{id} - Get discount information by ID
|
|
607
|
+
|
|
608
|
+
export interface GetCentricosDiscountPath {
|
|
609
|
+
// ID of the discount to retrieve
|
|
610
|
+
id: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export interface GetCentricosDiscountQuery {
|
|
614
|
+
// Graphql query string
|
|
615
|
+
_query?: string;
|
|
520
616
|
}
|
|
617
|
+
|
|
618
|
+
export type GetCentricosDiscountResponse = GetDiscountResponseDTO;
|
|
619
|
+
|
|
620
|
+
export interface GetCentricosDiscountRequest
|
|
621
|
+
extends BaseRequest,
|
|
622
|
+
RequestQuery<GetCentricosDiscountQuery>,
|
|
623
|
+
GetCentricosDiscountPath {}
|
|
@@ -37,11 +37,12 @@ export interface DiscountMeta {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface GetDiscountResponseDTO {
|
|
40
|
+
// discount id
|
|
41
|
+
id: string;
|
|
40
42
|
// user id of discount creator
|
|
41
43
|
createdBy: string;
|
|
42
44
|
// user id of most recent update
|
|
43
45
|
updatedBy: string;
|
|
44
|
-
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
updatedAt: string;
|
|
47
48
|
name: string;
|
|
@@ -50,6 +51,12 @@ export interface GetDiscountResponseDTO {
|
|
|
50
51
|
meta?: DiscountMeta;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
export interface BadRequestErrorDTO {
|
|
55
|
+
message: string;
|
|
56
|
+
code: number;
|
|
57
|
+
data: Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
export interface UnauthorizedErrorDTO {
|
|
54
61
|
message: string;
|
|
55
62
|
code: number;
|
|
@@ -62,12 +69,15 @@ export interface NotFoundErrorDTO {
|
|
|
62
69
|
data: Record<string, any>;
|
|
63
70
|
}
|
|
64
71
|
|
|
72
|
+
export type InternalServerErrorException = Record<string, any>;
|
|
73
|
+
|
|
65
74
|
export interface DiscountDTO {
|
|
75
|
+
// discount id
|
|
76
|
+
id: string;
|
|
66
77
|
// user id of discount creator
|
|
67
78
|
createdBy: string;
|
|
68
79
|
// user id of most recent update
|
|
69
80
|
updatedBy: string;
|
|
70
|
-
id: string;
|
|
71
81
|
createdAt: string;
|
|
72
82
|
updatedAt: string;
|
|
73
83
|
name: string;
|
|
@@ -80,30 +90,38 @@ export interface GetDiscountsResponseDTO {
|
|
|
80
90
|
discounts: DiscountDTO[];
|
|
81
91
|
}
|
|
82
92
|
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
data: Record<string, any>;
|
|
93
|
+
export interface DiscountTaxonomy {
|
|
94
|
+
site?: string[];
|
|
95
|
+
brand?: string[];
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
export interface PostDiscountRequestDTO {
|
|
90
99
|
createdBy: string;
|
|
100
|
+
updatedBy?: string;
|
|
91
101
|
name: string;
|
|
102
|
+
status?: DiscountStatus;
|
|
103
|
+
is?: DiscountIs;
|
|
104
|
+
meta?: DiscountMeta;
|
|
105
|
+
taxonomy?: DiscountTaxonomy;
|
|
92
106
|
}
|
|
93
107
|
|
|
94
108
|
export interface PostDiscountResponseDTO {
|
|
95
|
-
createdBy: string;
|
|
96
|
-
name: string;
|
|
97
109
|
id: string;
|
|
98
110
|
createdAt: string;
|
|
99
111
|
updatedAt: string;
|
|
100
112
|
updatedBy: string;
|
|
113
|
+
name: string;
|
|
114
|
+
status?: DiscountStatus;
|
|
115
|
+
is?: DiscountIs;
|
|
116
|
+
meta?: DiscountMeta;
|
|
117
|
+
taxonomy?: DiscountTaxonomy;
|
|
118
|
+
createdBy: string;
|
|
101
119
|
}
|
|
102
120
|
|
|
103
121
|
export interface PutDiscountRequestDTO {
|
|
104
122
|
// user id of most recent update
|
|
105
123
|
updatedBy: string;
|
|
106
|
-
taxonomy?:
|
|
124
|
+
taxonomy?: DiscountTaxonomy;
|
|
107
125
|
name: string;
|
|
108
126
|
status?: DiscountStatus;
|
|
109
127
|
is?: DiscountIs;
|
|
@@ -111,11 +129,12 @@ export interface PutDiscountRequestDTO {
|
|
|
111
129
|
}
|
|
112
130
|
|
|
113
131
|
export interface PutDiscountResponseDTO {
|
|
132
|
+
// discount id
|
|
133
|
+
id: string;
|
|
114
134
|
// user id of discount creator
|
|
115
135
|
createdBy: string;
|
|
116
136
|
// user id of most recent update
|
|
117
137
|
updatedBy: string;
|
|
118
|
-
id: string;
|
|
119
138
|
createdAt: string;
|
|
120
139
|
updatedAt: string;
|
|
121
140
|
name: string;
|
|
@@ -124,19 +143,18 @@ export interface PutDiscountResponseDTO {
|
|
|
124
143
|
meta?: DiscountMeta;
|
|
125
144
|
}
|
|
126
145
|
|
|
127
|
-
export type InternalServerErrorException = Record<string, any>;
|
|
128
|
-
|
|
129
146
|
export interface PutDiscountPublishRequestDTO {
|
|
130
147
|
// user id of most recent update
|
|
131
148
|
updatedBy: string;
|
|
132
149
|
}
|
|
133
150
|
|
|
134
151
|
export interface PutDiscountPublishResponseDTO {
|
|
152
|
+
// discount id
|
|
153
|
+
id: string;
|
|
135
154
|
// user id of discount creator
|
|
136
155
|
createdBy: string;
|
|
137
156
|
// user id of most recent update
|
|
138
157
|
updatedBy: string;
|
|
139
|
-
id: string;
|
|
140
158
|
createdAt: string;
|
|
141
159
|
updatedAt: string;
|
|
142
160
|
name: string;
|
|
@@ -152,6 +170,7 @@ export interface DeleteDiscountResponseDTO {
|
|
|
152
170
|
// GET /discount/{id} - Get a discount
|
|
153
171
|
|
|
154
172
|
export interface GetDiscountPath {
|
|
173
|
+
// a discount id
|
|
155
174
|
id: string;
|
|
156
175
|
}
|
|
157
176
|
|
|
@@ -197,7 +216,6 @@ export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {
|
|
|
197
216
|
|
|
198
217
|
export interface GetDiscountsQuery {
|
|
199
218
|
taxonomyFilter: string;
|
|
200
|
-
active: boolean;
|
|
201
219
|
// Graphql query string
|
|
202
220
|
_query?: string;
|
|
203
221
|
}
|
package/src/interface/menu.ts
CHANGED
|
@@ -723,6 +723,7 @@ export interface DraftItemToModifierGroupRelationshipDTO {
|
|
|
723
723
|
brand?: DraftBrandDTO;
|
|
724
724
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
725
725
|
vendor_metadata?: VendorMetadataDTO[];
|
|
726
|
+
is_global?: boolean;
|
|
726
727
|
permissions?: Record<string, any>;
|
|
727
728
|
[index: string]: any;
|
|
728
729
|
}
|
|
@@ -768,6 +769,7 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
|
|
|
768
769
|
brand?: DraftBrandDTO;
|
|
769
770
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
770
771
|
vendor_metadata?: VendorMetadataDTO[];
|
|
772
|
+
is_global?: boolean;
|
|
771
773
|
permissions?: Record<string, any>;
|
|
772
774
|
[index: string]: any;
|
|
773
775
|
}
|
|
@@ -829,7 +831,7 @@ export interface ReportingMetadataDTO {
|
|
|
829
831
|
}
|
|
830
832
|
|
|
831
833
|
export interface ReportingCategoryMetadataDTO {
|
|
832
|
-
primary?: '
|
|
834
|
+
primary?: 'Alcohol' | 'Beverage' | 'Food' | 'Gift Cards' | 'Snack' | 'Sundry';
|
|
833
835
|
secondary?: string;
|
|
834
836
|
[index: string]: any;
|
|
835
837
|
}
|
|
@@ -1162,6 +1164,7 @@ export interface PublishedItemToModifierGroupRelationshipDTO {
|
|
|
1162
1164
|
item_id?: string;
|
|
1163
1165
|
brand_id?: string;
|
|
1164
1166
|
sequence?: number;
|
|
1167
|
+
is_global?: boolean;
|
|
1165
1168
|
permissions?: Record<string, any>;
|
|
1166
1169
|
[index: string]: any;
|
|
1167
1170
|
}
|
|
@@ -1191,6 +1194,7 @@ export interface PublishedModifierGroupToModifierRelationshipDTO {
|
|
|
1191
1194
|
modifier_group_id?: string;
|
|
1192
1195
|
brand_id?: string;
|
|
1193
1196
|
sequence?: number;
|
|
1197
|
+
is_global?: boolean;
|
|
1194
1198
|
permissions?: Record<string, any>;
|
|
1195
1199
|
[index: string]: any;
|
|
1196
1200
|
}
|
|
@@ -5573,6 +5577,7 @@ export interface PostMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
5573
5577
|
brand?: DraftBrandDTO;
|
|
5574
5578
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
5575
5579
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5580
|
+
is_global?: boolean;
|
|
5576
5581
|
permissions?: Record<string, any>;
|
|
5577
5582
|
[index: string]: any;
|
|
5578
5583
|
}
|
|
@@ -5629,6 +5634,7 @@ export interface PatchMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
5629
5634
|
brand?: DraftBrandDTO;
|
|
5630
5635
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
5631
5636
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5637
|
+
is_global?: boolean;
|
|
5632
5638
|
permissions?: Record<string, any>;
|
|
5633
5639
|
[index: string]: any;
|
|
5634
5640
|
}
|
|
@@ -5707,6 +5713,7 @@ export type PostMenuV3DraftItemRelationshipsModifierGroupsBody = {
|
|
|
5707
5713
|
brand?: DraftBrandDTO;
|
|
5708
5714
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
5709
5715
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5716
|
+
is_global?: boolean;
|
|
5710
5717
|
permissions?: Record<string, any>;
|
|
5711
5718
|
[index: string]: any;
|
|
5712
5719
|
}[];
|
|
@@ -6208,6 +6215,7 @@ export interface PostMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
6208
6215
|
brand?: DraftBrandDTO;
|
|
6209
6216
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6210
6217
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6218
|
+
is_global?: boolean;
|
|
6211
6219
|
permissions?: Record<string, any>;
|
|
6212
6220
|
[index: string]: any;
|
|
6213
6221
|
}
|
|
@@ -6264,6 +6272,7 @@ export interface PatchMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
6264
6272
|
brand?: DraftBrandDTO;
|
|
6265
6273
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6266
6274
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6275
|
+
is_global?: boolean;
|
|
6267
6276
|
permissions?: Record<string, any>;
|
|
6268
6277
|
[index: string]: any;
|
|
6269
6278
|
}
|
|
@@ -6342,6 +6351,7 @@ export type PostMenuV3DraftModifierGroupRelationshipsModifiersBody = {
|
|
|
6342
6351
|
brand?: DraftBrandDTO;
|
|
6343
6352
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6344
6353
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6354
|
+
is_global?: boolean;
|
|
6345
6355
|
permissions?: Record<string, any>;
|
|
6346
6356
|
[index: string]: any;
|
|
6347
6357
|
}[];
|
|
@@ -7037,7 +7047,7 @@ export interface PostMenuV3GlobalDiffRecoverRequest
|
|
|
7037
7047
|
|
|
7038
7048
|
export interface GetMenuV3MenuworksQuery {
|
|
7039
7049
|
unit_id?: string;
|
|
7040
|
-
MRN?:
|
|
7050
|
+
MRN?: string;
|
|
7041
7051
|
// Graphql query string
|
|
7042
7052
|
_query?: string;
|
|
7043
7053
|
}
|
|
@@ -7048,6 +7058,7 @@ export interface GetMenuV3MenuworksResponse {
|
|
|
7048
7058
|
name?: string;
|
|
7049
7059
|
short_name?: string;
|
|
7050
7060
|
description?: string;
|
|
7061
|
+
portion_size: string;
|
|
7051
7062
|
MRN?: string;
|
|
7052
7063
|
portion_quantity?: number;
|
|
7053
7064
|
portion_unit_name?: string;
|
|
@@ -9280,6 +9291,7 @@ export type PostMenuV4ModifierGroupAttachModifiersBody = {
|
|
|
9280
9291
|
brand?: DraftBrandDTO;
|
|
9281
9292
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
9282
9293
|
vendor_metadata?: VendorMetadataDTO[];
|
|
9294
|
+
is_global?: boolean;
|
|
9283
9295
|
permissions?: Record<string, any>;
|
|
9284
9296
|
[index: string]: any;
|
|
9285
9297
|
}[];
|
package/src/interface/promo.ts
CHANGED
|
@@ -149,6 +149,24 @@ export interface PromoValidateRequest {
|
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
export interface PromoVouchersValidateRequest {
|
|
153
|
+
codes?: string[];
|
|
154
|
+
email?: string;
|
|
155
|
+
app?: string;
|
|
156
|
+
realm?: string;
|
|
157
|
+
location_brand?: string;
|
|
158
|
+
shoppingcart?: {
|
|
159
|
+
id?: string;
|
|
160
|
+
date_created?: string;
|
|
161
|
+
items?: ItemResponse[];
|
|
162
|
+
};
|
|
163
|
+
totals?: {
|
|
164
|
+
amount?: number;
|
|
165
|
+
discount?: number;
|
|
166
|
+
currency?: string;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
152
170
|
export interface PromoRedeemRequest {
|
|
153
171
|
code?: string;
|
|
154
172
|
email?: string;
|
|
@@ -169,6 +187,26 @@ export interface PromoRedeemRequest {
|
|
|
169
187
|
payment_request_id?: string;
|
|
170
188
|
}
|
|
171
189
|
|
|
190
|
+
export interface PromoRedeemVouchersRequest {
|
|
191
|
+
codes?: string[];
|
|
192
|
+
email?: string;
|
|
193
|
+
app?: string;
|
|
194
|
+
realm?: string;
|
|
195
|
+
location_brand?: string;
|
|
196
|
+
shoppingcart?: {
|
|
197
|
+
id?: string;
|
|
198
|
+
date_created?: string;
|
|
199
|
+
items?: ItemResponse[];
|
|
200
|
+
};
|
|
201
|
+
totals?: {
|
|
202
|
+
amount?: number;
|
|
203
|
+
discount?: number;
|
|
204
|
+
currency?: string;
|
|
205
|
+
};
|
|
206
|
+
provider_data?: FPValidationData;
|
|
207
|
+
payment_request_id?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
172
210
|
export interface CreateVoucher {
|
|
173
211
|
code?: string;
|
|
174
212
|
discount?: {
|
|
@@ -190,6 +228,19 @@ export interface Voucher {
|
|
|
190
228
|
discount?: AppliedDiscount;
|
|
191
229
|
app?: string;
|
|
192
230
|
provider_data?: FPValidationData;
|
|
231
|
+
redeemables?: Redeemable[];
|
|
232
|
+
[index: string]: any;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface Redeemable {
|
|
236
|
+
status?: string;
|
|
237
|
+
// redeemable
|
|
238
|
+
id?: string;
|
|
239
|
+
object?: string;
|
|
240
|
+
result?: {
|
|
241
|
+
discount?: AppliedDiscount;
|
|
242
|
+
[index: string]: any;
|
|
243
|
+
};
|
|
193
244
|
[index: string]: any;
|
|
194
245
|
}
|
|
195
246
|
|
|
@@ -510,6 +561,16 @@ export interface PostPromoValidateVoucherRequest extends BaseRequest {
|
|
|
510
561
|
body: PostPromoValidateVoucherBody;
|
|
511
562
|
}
|
|
512
563
|
|
|
564
|
+
// POST /promo/validate/vouchers - Validate multiple promo vouchers
|
|
565
|
+
|
|
566
|
+
export type PostPromoValidateVouchersBody = PromoVouchersValidateRequest;
|
|
567
|
+
|
|
568
|
+
export type PostPromoValidateVouchersResponse = Voucher;
|
|
569
|
+
|
|
570
|
+
export interface PostPromoValidateVouchersRequest extends BaseRequest {
|
|
571
|
+
body: PostPromoValidateVouchersBody;
|
|
572
|
+
}
|
|
573
|
+
|
|
513
574
|
// POST /promo/redeem/voucher - Redeem a promo voucher
|
|
514
575
|
|
|
515
576
|
export type PostPromoRedeemVoucherBody = PromoRedeemRequest;
|
|
@@ -520,6 +581,18 @@ export interface PostPromoRedeemVoucherRequest extends BaseRequest {
|
|
|
520
581
|
body: PostPromoRedeemVoucherBody;
|
|
521
582
|
}
|
|
522
583
|
|
|
584
|
+
// POST /promo/redeem/vouchers - Redeem multiple promo vouchers
|
|
585
|
+
|
|
586
|
+
export type PostPromoRedeemVouchersBody = PromoRedeemVouchersRequest;
|
|
587
|
+
|
|
588
|
+
export interface PostPromoRedeemVouchersResponse {
|
|
589
|
+
redemptions?: Redemption[];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface PostPromoRedeemVouchersRequest extends BaseRequest {
|
|
593
|
+
body: PostPromoRedeemVouchersBody;
|
|
594
|
+
}
|
|
595
|
+
|
|
523
596
|
// POST /promo/voucher - Create new voucher
|
|
524
597
|
|
|
525
598
|
export type PostPromoVoucherBody = CreateVoucher;
|
package/src/interface/search.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { RequestQuery, BaseRequest } from './util';
|
|
|
6
6
|
export interface MetaResultsDto {
|
|
7
7
|
limit: number;
|
|
8
8
|
page: number;
|
|
9
|
-
sortBy?:
|
|
10
|
-
sortOrder?:
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortOrder?: string;
|
|
11
11
|
totalResults: number;
|
|
12
12
|
totalPages: number;
|
|
13
13
|
resultsCount: number;
|
|
@@ -84,6 +84,12 @@ export interface GetOrderPaginatedResult {
|
|
|
84
84
|
results: GetOrderDto[];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
export interface UnauthorizedErrorDTO {
|
|
88
|
+
message: string;
|
|
89
|
+
code: number;
|
|
90
|
+
data: Record<string, any>;
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
export interface GetLocationDto {
|
|
88
94
|
source_id: string;
|
|
89
95
|
source_type: string;
|