@compassdigital/sdk.typescript 4.107.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 -44
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +54 -44
- 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/consumer.d.ts +17 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +25 -18
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +1 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +15 -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 -111
- package/src/interface/auth.ts +6 -0
- package/src/interface/centricos.ts +165 -62
- package/src/interface/consumer.ts +31 -0
- package/src/interface/discount.ts +32 -19
- package/src/interface/mealplan.ts +1 -0
- package/src/interface/menu.ts +15 -2
- package/src/interface/promo.ts +73 -0
- package/src/interface/search.ts +8 -2
- package/src/interface/user.ts +14 -2
package/lib/interface/menu.d.ts
CHANGED
|
@@ -628,6 +628,7 @@ export interface DraftItemToModifierGroupRelationshipDTO {
|
|
|
628
628
|
brand?: DraftBrandDTO;
|
|
629
629
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
630
630
|
vendor_metadata?: VendorMetadataDTO[];
|
|
631
|
+
is_global?: boolean;
|
|
631
632
|
permissions?: Record<string, any>;
|
|
632
633
|
[index: string]: any;
|
|
633
634
|
}
|
|
@@ -671,6 +672,7 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
|
|
|
671
672
|
brand?: DraftBrandDTO;
|
|
672
673
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
673
674
|
vendor_metadata?: VendorMetadataDTO[];
|
|
675
|
+
is_global?: boolean;
|
|
674
676
|
permissions?: Record<string, any>;
|
|
675
677
|
[index: string]: any;
|
|
676
678
|
}
|
|
@@ -728,7 +730,7 @@ export interface ReportingMetadataDTO {
|
|
|
728
730
|
[index: string]: any;
|
|
729
731
|
}
|
|
730
732
|
export interface ReportingCategoryMetadataDTO {
|
|
731
|
-
primary?: '
|
|
733
|
+
primary?: 'Alcohol' | 'Beverage' | 'Food' | 'Gift Cards' | 'Snack' | 'Sundry';
|
|
732
734
|
secondary?: string;
|
|
733
735
|
[index: string]: any;
|
|
734
736
|
}
|
|
@@ -1030,6 +1032,7 @@ export interface PublishedItemToModifierGroupRelationshipDTO {
|
|
|
1030
1032
|
item_id?: string;
|
|
1031
1033
|
brand_id?: string;
|
|
1032
1034
|
sequence?: number;
|
|
1035
|
+
is_global?: boolean;
|
|
1033
1036
|
permissions?: Record<string, any>;
|
|
1034
1037
|
[index: string]: any;
|
|
1035
1038
|
}
|
|
@@ -1057,6 +1060,7 @@ export interface PublishedModifierGroupToModifierRelationshipDTO {
|
|
|
1057
1060
|
modifier_group_id?: string;
|
|
1058
1061
|
brand_id?: string;
|
|
1059
1062
|
sequence?: number;
|
|
1063
|
+
is_global?: boolean;
|
|
1060
1064
|
permissions?: Record<string, any>;
|
|
1061
1065
|
[index: string]: any;
|
|
1062
1066
|
}
|
|
@@ -4022,6 +4026,7 @@ export interface PostMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
4022
4026
|
brand?: DraftBrandDTO;
|
|
4023
4027
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
4024
4028
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4029
|
+
is_global?: boolean;
|
|
4025
4030
|
permissions?: Record<string, any>;
|
|
4026
4031
|
[index: string]: any;
|
|
4027
4032
|
}
|
|
@@ -4059,6 +4064,7 @@ export interface PatchMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
4059
4064
|
brand?: DraftBrandDTO;
|
|
4060
4065
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
4061
4066
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4067
|
+
is_global?: boolean;
|
|
4062
4068
|
permissions?: Record<string, any>;
|
|
4063
4069
|
[index: string]: any;
|
|
4064
4070
|
}
|
|
@@ -4107,6 +4113,7 @@ export type PostMenuV3DraftItemRelationshipsModifierGroupsBody = {
|
|
|
4107
4113
|
brand?: DraftBrandDTO;
|
|
4108
4114
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
4109
4115
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4116
|
+
is_global?: boolean;
|
|
4110
4117
|
permissions?: Record<string, any>;
|
|
4111
4118
|
[index: string]: any;
|
|
4112
4119
|
}[];
|
|
@@ -4434,6 +4441,7 @@ export interface PostMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
4434
4441
|
brand?: DraftBrandDTO;
|
|
4435
4442
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
4436
4443
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4444
|
+
is_global?: boolean;
|
|
4437
4445
|
permissions?: Record<string, any>;
|
|
4438
4446
|
[index: string]: any;
|
|
4439
4447
|
}
|
|
@@ -4471,6 +4479,7 @@ export interface PatchMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
4471
4479
|
brand?: DraftBrandDTO;
|
|
4472
4480
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
4473
4481
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4482
|
+
is_global?: boolean;
|
|
4474
4483
|
permissions?: Record<string, any>;
|
|
4475
4484
|
[index: string]: any;
|
|
4476
4485
|
}
|
|
@@ -4519,6 +4528,7 @@ export type PostMenuV3DraftModifierGroupRelationshipsModifiersBody = {
|
|
|
4519
4528
|
brand?: DraftBrandDTO;
|
|
4520
4529
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
4521
4530
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4531
|
+
is_global?: boolean;
|
|
4522
4532
|
permissions?: Record<string, any>;
|
|
4523
4533
|
[index: string]: any;
|
|
4524
4534
|
}[];
|
|
@@ -4979,7 +4989,7 @@ export interface PostMenuV3GlobalDiffRecoverRequest extends BaseRequest, PostMen
|
|
|
4979
4989
|
}
|
|
4980
4990
|
export interface GetMenuV3MenuworksQuery {
|
|
4981
4991
|
unit_id?: string;
|
|
4982
|
-
MRN?:
|
|
4992
|
+
MRN?: string;
|
|
4983
4993
|
_query?: string;
|
|
4984
4994
|
}
|
|
4985
4995
|
export interface GetMenuV3MenuworksResponse {
|
|
@@ -4988,6 +4998,7 @@ export interface GetMenuV3MenuworksResponse {
|
|
|
4988
4998
|
name?: string;
|
|
4989
4999
|
short_name?: string;
|
|
4990
5000
|
description?: string;
|
|
5001
|
+
portion_size: string;
|
|
4991
5002
|
MRN?: string;
|
|
4992
5003
|
portion_quantity?: number;
|
|
4993
5004
|
portion_unit_name?: string;
|
|
@@ -6906,6 +6917,7 @@ export type PostMenuV4ModifierGroupAttachModifiersBody = {
|
|
|
6906
6917
|
brand?: DraftBrandDTO;
|
|
6907
6918
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6908
6919
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6920
|
+
is_global?: boolean;
|
|
6909
6921
|
permissions?: Record<string, any>;
|
|
6910
6922
|
[index: string]: any;
|
|
6911
6923
|
}[];
|
|
@@ -7121,6 +7133,7 @@ export interface PostMenuV4ScheduleMenuRequest extends BaseRequest {
|
|
|
7121
7133
|
}
|
|
7122
7134
|
export interface PostMenuV4UnscheduleMenuBody {
|
|
7123
7135
|
menu_id: string;
|
|
7136
|
+
station_id: string;
|
|
7124
7137
|
[index: string]: any;
|
|
7125
7138
|
}
|
|
7126
7139
|
export interface PostMenuV4UnscheduleMenuResponse {
|