@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.
- package/lib/base.d.ts +3 -3
- package/lib/base.d.ts.map +1 -1
- package/lib/index.d.ts +185 -74
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +14 -9
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +12 -7
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +27 -18
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +7 -4
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -2
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +1 -1
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +12 -8
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +112 -76
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/loyalty.d.ts +42 -17
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +16 -10
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +83 -44
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +12 -8
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +32 -18
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +473 -426
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +25 -15
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +20 -15
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +32 -26
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +16 -10
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +25 -22
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +28 -16
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +72 -46
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +1 -1
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +42 -28
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +281 -56
- package/src/interface/announcement.ts +13 -1
- package/src/interface/calendar.ts +12 -1
- package/src/interface/compassconnect.ts +2 -0
- package/src/interface/config.ts +26 -3
- package/src/interface/datalake.ts +6 -1
- package/src/interface/kds.ts +8 -1
- package/src/interface/location.ts +81 -9
- package/src/interface/loyalty.ts +65 -5
- package/src/interface/mealplan.ts +18 -2
- package/src/interface/menu.ts +96 -7
- package/src/interface/notification.ts +10 -1
- package/src/interface/order.ts +26 -1
- package/src/interface/partner.ts +550 -474
- package/src/interface/payment.ts +30 -6
- package/src/interface/permission.ts +13 -1
- package/src/interface/promo.ts +14 -1
- package/src/interface/report.ts +12 -0
- package/src/interface/shoppingcart.ts +9 -1
- package/src/interface/task.ts +30 -3
- package/src/interface/user.ts +42 -2
- package/src/interface/vendor.ts +34 -4
package/src/interface/menu.ts
CHANGED
|
@@ -299,20 +299,45 @@ export interface ZippedExcelExport {
|
|
|
299
299
|
format?: string;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
// GET /menu/modifier/count
|
|
303
|
+
|
|
304
|
+
export interface GetMenuModifierCountQuery {
|
|
305
|
+
// Graphql query string
|
|
306
|
+
_query?: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export interface GetMenuModifierCountResponse {
|
|
310
|
+
count?: number;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface GetMenuModifierCountRequest
|
|
314
|
+
extends BaseRequest,
|
|
315
|
+
RequestQuery<GetMenuModifierCountQuery> {}
|
|
316
|
+
|
|
302
317
|
// GET /menu/client/{client_id} - Get menu client
|
|
303
318
|
|
|
304
319
|
export interface GetMenuClientPath {
|
|
305
320
|
client_id: string;
|
|
306
321
|
}
|
|
307
322
|
|
|
323
|
+
export interface GetMenuClientQuery {
|
|
324
|
+
// Graphql query string
|
|
325
|
+
_query?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
308
328
|
export type GetMenuClientResponse = Menus;
|
|
309
329
|
|
|
310
|
-
export interface GetMenuClientRequest
|
|
330
|
+
export interface GetMenuClientRequest
|
|
331
|
+
extends BaseRequest,
|
|
332
|
+
RequestQuery<GetMenuClientQuery>,
|
|
333
|
+
GetMenuClientPath {}
|
|
311
334
|
|
|
312
335
|
// GET /menu - Get Menus or search for Menus
|
|
313
336
|
|
|
314
337
|
export interface GetMenusQuery {
|
|
315
338
|
query: string;
|
|
339
|
+
// Graphql query string
|
|
340
|
+
_query?: string;
|
|
316
341
|
}
|
|
317
342
|
|
|
318
343
|
export type GetMenusResponse = Menus;
|
|
@@ -357,7 +382,7 @@ export interface GetMenuQuery {
|
|
|
357
382
|
extended?: boolean;
|
|
358
383
|
// Show unlinked groups
|
|
359
384
|
show_unlinked?: boolean;
|
|
360
|
-
//
|
|
385
|
+
// Graphql query string
|
|
361
386
|
_query?: string;
|
|
362
387
|
nocache?: boolean;
|
|
363
388
|
}
|
|
@@ -446,6 +471,8 @@ export interface GetMenuItemPath {
|
|
|
446
471
|
}
|
|
447
472
|
|
|
448
473
|
export interface GetMenuItemQuery {
|
|
474
|
+
// Graphql query string
|
|
475
|
+
_query?: string;
|
|
449
476
|
nocache?: boolean;
|
|
450
477
|
}
|
|
451
478
|
|
|
@@ -481,6 +508,8 @@ export interface PostMenuItemRequest extends BaseRequest {
|
|
|
481
508
|
|
|
482
509
|
export interface GetMenuItemsQuery {
|
|
483
510
|
query: string;
|
|
511
|
+
// Graphql query string
|
|
512
|
+
_query?: string;
|
|
484
513
|
}
|
|
485
514
|
|
|
486
515
|
export type GetMenuItemsResponse = Items;
|
|
@@ -507,9 +536,17 @@ export interface GetMenuLocationItemsPath {
|
|
|
507
536
|
location: string;
|
|
508
537
|
}
|
|
509
538
|
|
|
539
|
+
export interface GetMenuLocationItemsQuery {
|
|
540
|
+
// Graphql query string
|
|
541
|
+
_query?: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
510
544
|
export type GetMenuLocationItemsResponse = Items;
|
|
511
545
|
|
|
512
|
-
export interface GetMenuLocationItemsRequest
|
|
546
|
+
export interface GetMenuLocationItemsRequest
|
|
547
|
+
extends BaseRequest,
|
|
548
|
+
RequestQuery<GetMenuLocationItemsQuery>,
|
|
549
|
+
GetMenuLocationItemsPath {}
|
|
513
550
|
|
|
514
551
|
// GET /menu/item/random/location/{location} - Get a random item
|
|
515
552
|
|
|
@@ -525,6 +562,8 @@ export interface GetMenuLocationItemRandomQuery {
|
|
|
525
562
|
is_public?: boolean;
|
|
526
563
|
// The start of the session, prevents duplicates for any items voted on from the start time.
|
|
527
564
|
start_time?: number;
|
|
565
|
+
// Graphql query string
|
|
566
|
+
_query?: string;
|
|
528
567
|
}
|
|
529
568
|
|
|
530
569
|
export type GetMenuLocationItemRandomResponse = Item;
|
|
@@ -550,6 +589,8 @@ export interface GetMenuLocationItemsRandomQuery {
|
|
|
550
589
|
count?: number;
|
|
551
590
|
// The start of the session, prevents duplicates for any items voted on from the start time.
|
|
552
591
|
start_time?: number;
|
|
592
|
+
// Graphql query string
|
|
593
|
+
_query?: string;
|
|
553
594
|
}
|
|
554
595
|
|
|
555
596
|
export type GetMenuLocationItemsRandomResponse = Items;
|
|
@@ -566,9 +607,17 @@ export interface GetMenuSectorMenusPath {
|
|
|
566
607
|
sector: string;
|
|
567
608
|
}
|
|
568
609
|
|
|
610
|
+
export interface GetMenuSectorMenusQuery {
|
|
611
|
+
// Graphql query string
|
|
612
|
+
_query?: string;
|
|
613
|
+
}
|
|
614
|
+
|
|
569
615
|
export type GetMenuSectorMenusResponse = Menus;
|
|
570
616
|
|
|
571
|
-
export interface GetMenuSectorMenusRequest
|
|
617
|
+
export interface GetMenuSectorMenusRequest
|
|
618
|
+
extends BaseRequest,
|
|
619
|
+
RequestQuery<GetMenuSectorMenusQuery>,
|
|
620
|
+
GetMenuSectorMenusPath {}
|
|
572
621
|
|
|
573
622
|
// GET /menu/company/{company} - Get menus that belong to company
|
|
574
623
|
|
|
@@ -577,9 +626,17 @@ export interface GetMenuCompanyMenusPath {
|
|
|
577
626
|
company: string;
|
|
578
627
|
}
|
|
579
628
|
|
|
629
|
+
export interface GetMenuCompanyMenusQuery {
|
|
630
|
+
// Graphql query string
|
|
631
|
+
_query?: string;
|
|
632
|
+
}
|
|
633
|
+
|
|
580
634
|
export type GetMenuCompanyMenusResponse = Menus;
|
|
581
635
|
|
|
582
|
-
export interface GetMenuCompanyMenusRequest
|
|
636
|
+
export interface GetMenuCompanyMenusRequest
|
|
637
|
+
extends BaseRequest,
|
|
638
|
+
RequestQuery<GetMenuCompanyMenusQuery>,
|
|
639
|
+
GetMenuCompanyMenusPath {}
|
|
583
640
|
|
|
584
641
|
// POST /menu/modifier/group - Create a new Menu Modifier Group
|
|
585
642
|
|
|
@@ -598,9 +655,17 @@ export interface GetMenuModifierGroupPath {
|
|
|
598
655
|
id: string;
|
|
599
656
|
}
|
|
600
657
|
|
|
658
|
+
export interface GetMenuModifierGroupQuery {
|
|
659
|
+
// Graphql query string
|
|
660
|
+
_query?: string;
|
|
661
|
+
}
|
|
662
|
+
|
|
601
663
|
export type GetMenuModifierGroupResponse = OptionsGroup;
|
|
602
664
|
|
|
603
|
-
export interface GetMenuModifierGroupRequest
|
|
665
|
+
export interface GetMenuModifierGroupRequest
|
|
666
|
+
extends BaseRequest,
|
|
667
|
+
RequestQuery<GetMenuModifierGroupQuery>,
|
|
668
|
+
GetMenuModifierGroupPath {}
|
|
604
669
|
|
|
605
670
|
// PUT /menu/modifier/group/{id} - Update a Menu Modifier Group
|
|
606
671
|
|
|
@@ -635,10 +700,16 @@ export interface GetMenuCompanyModifierGroupsPath {
|
|
|
635
700
|
company: string;
|
|
636
701
|
}
|
|
637
702
|
|
|
703
|
+
export interface GetMenuCompanyModifierGroupsQuery {
|
|
704
|
+
// Graphql query string
|
|
705
|
+
_query?: string;
|
|
706
|
+
}
|
|
707
|
+
|
|
638
708
|
export type GetMenuCompanyModifierGroupsResponse = OptionsGroupList;
|
|
639
709
|
|
|
640
710
|
export interface GetMenuCompanyModifierGroupsRequest
|
|
641
711
|
extends BaseRequest,
|
|
712
|
+
RequestQuery<GetMenuCompanyModifierGroupsQuery>,
|
|
642
713
|
GetMenuCompanyModifierGroupsPath {}
|
|
643
714
|
|
|
644
715
|
// GET /menu/modifier/group/company/{company}/export - Export company modifier groups to zipped excel file.
|
|
@@ -648,10 +719,16 @@ export interface GetMenuCompanyModifierGroupsExportPath {
|
|
|
648
719
|
company: string;
|
|
649
720
|
}
|
|
650
721
|
|
|
722
|
+
export interface GetMenuCompanyModifierGroupsExportQuery {
|
|
723
|
+
// Graphql query string
|
|
724
|
+
_query?: string;
|
|
725
|
+
}
|
|
726
|
+
|
|
651
727
|
export type GetMenuCompanyModifierGroupsExportResponse = ZippedExcelExport;
|
|
652
728
|
|
|
653
729
|
export interface GetMenuCompanyModifierGroupsExportRequest
|
|
654
730
|
extends BaseRequest,
|
|
731
|
+
RequestQuery<GetMenuCompanyModifierGroupsExportQuery>,
|
|
655
732
|
GetMenuCompanyModifierGroupsExportPath {}
|
|
656
733
|
|
|
657
734
|
// GET /menu/{id}/export - Export menu set to zipped excel file.
|
|
@@ -661,9 +738,17 @@ export interface GetMenuExportPath {
|
|
|
661
738
|
id: string;
|
|
662
739
|
}
|
|
663
740
|
|
|
741
|
+
export interface GetMenuExportQuery {
|
|
742
|
+
// Graphql query string
|
|
743
|
+
_query?: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
664
746
|
export type GetMenuExportResponse = ZippedExcelExport;
|
|
665
747
|
|
|
666
|
-
export interface GetMenuExportRequest
|
|
748
|
+
export interface GetMenuExportRequest
|
|
749
|
+
extends BaseRequest,
|
|
750
|
+
RequestQuery<GetMenuExportQuery>,
|
|
751
|
+
GetMenuExportPath {}
|
|
667
752
|
|
|
668
753
|
// GET /menu/partial/{id}/groups - Get an individual menu with its categories only partially loaded. (No items)
|
|
669
754
|
|
|
@@ -677,6 +762,8 @@ export interface GetMenuPartialGroupsQuery {
|
|
|
677
762
|
extended?: boolean;
|
|
678
763
|
// Show unlinked groups
|
|
679
764
|
show_unlinked?: boolean;
|
|
765
|
+
// Graphql query string
|
|
766
|
+
_query?: string;
|
|
680
767
|
}
|
|
681
768
|
|
|
682
769
|
export type GetMenuPartialGroupsResponse = Menu;
|
|
@@ -698,6 +785,8 @@ export interface GetMenuPartialGroupItemsPath {
|
|
|
698
785
|
export interface GetMenuPartialGroupItemsQuery {
|
|
699
786
|
// Show additional fields like hidden menu items, parent_id. Defaults to false
|
|
700
787
|
extended?: boolean;
|
|
788
|
+
// Graphql query string
|
|
789
|
+
_query?: string;
|
|
701
790
|
}
|
|
702
791
|
|
|
703
792
|
export type GetMenuPartialGroupItemsResponse = Items;
|
|
@@ -46,6 +46,8 @@ export interface GetNotificationsQuery {
|
|
|
46
46
|
start?: string;
|
|
47
47
|
// End date of the notifications. If not provided will default to current date.
|
|
48
48
|
end?: string;
|
|
49
|
+
// Graphql query string
|
|
50
|
+
_query?: string;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
export interface GetNotificationsResponse {
|
|
@@ -107,8 +109,15 @@ export interface PostNotificationStatusRequest extends BaseRequest, PostNotifica
|
|
|
107
109
|
|
|
108
110
|
// GET /notification/swagger.json - Get a swagger for notification service
|
|
109
111
|
|
|
112
|
+
export interface GetNotificationSwaggerQuery {
|
|
113
|
+
// Graphql query string
|
|
114
|
+
_query?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
110
117
|
export interface GetNotificationSwaggerResponse {
|
|
111
118
|
[index: string]: any;
|
|
112
119
|
}
|
|
113
120
|
|
|
114
|
-
export interface GetNotificationSwaggerRequest
|
|
121
|
+
export interface GetNotificationSwaggerRequest
|
|
122
|
+
extends BaseRequest,
|
|
123
|
+
RequestQuery<GetNotificationSwaggerQuery> {}
|
package/src/interface/order.ts
CHANGED
|
@@ -144,6 +144,8 @@ export interface Order {
|
|
|
144
144
|
amount?: number;
|
|
145
145
|
meals?: number;
|
|
146
146
|
};
|
|
147
|
+
// the amount remaining on the transaction after refund - remaining amount available for refund
|
|
148
|
+
transaction_remainder_amount?: number;
|
|
147
149
|
[index: string]: any;
|
|
148
150
|
};
|
|
149
151
|
// Shoppingcart details
|
|
@@ -172,6 +174,8 @@ export interface RefundTransaction {
|
|
|
172
174
|
refund_date?: string;
|
|
173
175
|
// user
|
|
174
176
|
issued_by?: string;
|
|
177
|
+
amount?: number;
|
|
178
|
+
refund_amount?: number;
|
|
175
179
|
[index: string]: any;
|
|
176
180
|
}
|
|
177
181
|
|
|
@@ -324,9 +328,14 @@ export interface GetOrderPath {
|
|
|
324
328
|
id: string;
|
|
325
329
|
}
|
|
326
330
|
|
|
331
|
+
export interface GetOrderQuery {
|
|
332
|
+
// Graphql query string
|
|
333
|
+
_query?: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
327
336
|
export type GetOrderResponse = Order;
|
|
328
337
|
|
|
329
|
-
export interface GetOrderRequest extends BaseRequest, GetOrderPath {}
|
|
338
|
+
export interface GetOrderRequest extends BaseRequest, RequestQuery<GetOrderQuery>, GetOrderPath {}
|
|
330
339
|
|
|
331
340
|
// PUT /order/{id} - Update an individual order
|
|
332
341
|
|
|
@@ -404,6 +413,8 @@ export interface GetOrderCustomerOrdersQuery {
|
|
|
404
413
|
start?: number;
|
|
405
414
|
// This is the key for which the query will be made. E.g if order_type equals 'delivery', the response will include the results based on delivery
|
|
406
415
|
order_type?: string;
|
|
416
|
+
// Graphql query string
|
|
417
|
+
_query?: string;
|
|
407
418
|
}
|
|
408
419
|
|
|
409
420
|
export interface GetOrderCustomerOrdersResponse {
|
|
@@ -424,10 +435,16 @@ export interface GetOrderCustomerOrdersBrandPath {
|
|
|
424
435
|
location_brand: string;
|
|
425
436
|
}
|
|
426
437
|
|
|
438
|
+
export interface GetOrderCustomerOrdersBrandQuery {
|
|
439
|
+
// Graphql query string
|
|
440
|
+
_query?: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
427
443
|
export type GetOrderCustomerOrdersBrandResponse = Orders;
|
|
428
444
|
|
|
429
445
|
export interface GetOrderCustomerOrdersBrandRequest
|
|
430
446
|
extends BaseRequest,
|
|
447
|
+
RequestQuery<GetOrderCustomerOrdersBrandQuery>,
|
|
431
448
|
GetOrderCustomerOrdersBrandPath {}
|
|
432
449
|
|
|
433
450
|
// GET /order/location/brand/{id} - Get all orders for a location Brand
|
|
@@ -454,6 +471,8 @@ export interface GetOrderLocationBrandQuery {
|
|
|
454
471
|
limit?: number;
|
|
455
472
|
// return orders with all status types
|
|
456
473
|
all_statuses?: boolean;
|
|
474
|
+
// Graphql query string
|
|
475
|
+
_query?: string;
|
|
457
476
|
}
|
|
458
477
|
|
|
459
478
|
export type GetOrderLocationBrandResponse = Orders;
|
|
@@ -485,6 +504,8 @@ export interface GetOrderLocationOrdersQuery {
|
|
|
485
504
|
order_type?: string;
|
|
486
505
|
// List of brands you want orders for inside this location. Example: 616kLp3ADNUE2RO8qqzdto8avzyRrOhXRDW5,or2ayBJePqUP4ORXeeGgTw96vKle47IgemPk
|
|
487
506
|
brands?: string;
|
|
507
|
+
// Graphql query string
|
|
508
|
+
_query?: string;
|
|
488
509
|
}
|
|
489
510
|
|
|
490
511
|
export type GetOrderLocationOrdersResponse = Orders;
|
|
@@ -514,6 +535,8 @@ export interface GetOrderGroupOrdersQuery {
|
|
|
514
535
|
brand?: string;
|
|
515
536
|
// show additional hidden properties/entities
|
|
516
537
|
extended?: boolean;
|
|
538
|
+
// Graphql query string
|
|
539
|
+
_query?: string;
|
|
517
540
|
}
|
|
518
541
|
|
|
519
542
|
export interface GetOrderGroupOrdersResponse {
|
|
@@ -541,6 +564,8 @@ export interface GetOrderUserOrdersQuery {
|
|
|
541
564
|
end?: number;
|
|
542
565
|
// show additional hidden properties/entities
|
|
543
566
|
extended?: boolean;
|
|
567
|
+
// Graphql query string
|
|
568
|
+
_query?: string;
|
|
544
569
|
}
|
|
545
570
|
|
|
546
571
|
export interface GetOrderUserOrdersResponse {
|