@compassdigital/sdk.typescript 4.35.0 → 4.37.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 +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/calendar.d.ts +4 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/location.d.ts +4 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +55 -559
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +10 -1
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/user.d.ts +20 -0
- package/lib/interface/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +15 -0
- package/src/interface/calendar.ts +5 -2
- package/src/interface/location.ts +4 -0
- package/src/interface/menu.ts +55 -578
- package/src/interface/partner.ts +10 -1
- package/src/interface/user.ts +29 -0
package/src/interface/partner.ts
CHANGED
|
@@ -374,6 +374,10 @@ export interface Brand {
|
|
|
374
374
|
// pos
|
|
375
375
|
pos?: string;
|
|
376
376
|
terminals?: Record<string, any>[];
|
|
377
|
+
device_mapping?: {
|
|
378
|
+
device_type: string;
|
|
379
|
+
site_device_id: string;
|
|
380
|
+
}[];
|
|
377
381
|
timeslots?: {
|
|
378
382
|
time?: string;
|
|
379
383
|
averagePrepTime?: string;
|
|
@@ -574,7 +578,6 @@ export interface Menu {
|
|
|
574
578
|
item_desc_edit_enabled?: boolean;
|
|
575
579
|
calories_edit_enabled?: boolean;
|
|
576
580
|
item_label_edit_enabled?: boolean;
|
|
577
|
-
frictionless?: boolean;
|
|
578
581
|
};
|
|
579
582
|
meta?: {
|
|
580
583
|
// User ID
|
|
@@ -698,6 +701,9 @@ export interface Group {
|
|
|
698
701
|
sort_number?: number;
|
|
699
702
|
// menu sort order
|
|
700
703
|
menu_sort_number?: number;
|
|
704
|
+
tax?: {
|
|
705
|
+
tax_tag_code?: string;
|
|
706
|
+
};
|
|
701
707
|
[index: string]: any;
|
|
702
708
|
};
|
|
703
709
|
is?: {
|
|
@@ -743,6 +749,9 @@ export interface Group {
|
|
|
743
749
|
menu_sort_number?: number;
|
|
744
750
|
// barcodes of the item
|
|
745
751
|
barcodes?: string[];
|
|
752
|
+
tax?: {
|
|
753
|
+
tax_tag_code?: string;
|
|
754
|
+
};
|
|
746
755
|
};
|
|
747
756
|
category?: {
|
|
748
757
|
en?: string;
|
package/src/interface/user.ts
CHANGED
|
@@ -816,3 +816,32 @@ export interface PostUserEmbedurlResponse {
|
|
|
816
816
|
export interface PostUserEmbedurlRequest extends BaseRequest {
|
|
817
817
|
body: PostUserEmbedurlBody;
|
|
818
818
|
}
|
|
819
|
+
|
|
820
|
+
// GET /user/profile - Returns user profile with limited information
|
|
821
|
+
|
|
822
|
+
export interface GetUserProfileQuery {
|
|
823
|
+
// user's email address
|
|
824
|
+
email: string;
|
|
825
|
+
// app realm
|
|
826
|
+
realm: string;
|
|
827
|
+
// Graphql query string
|
|
828
|
+
_query?: string;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export interface GetUserProfileResponse {
|
|
832
|
+
// user
|
|
833
|
+
id?: string;
|
|
834
|
+
name?: {
|
|
835
|
+
first?: string;
|
|
836
|
+
last?: string;
|
|
837
|
+
};
|
|
838
|
+
email?: string;
|
|
839
|
+
// User phone number
|
|
840
|
+
phone?: number;
|
|
841
|
+
date?: {
|
|
842
|
+
created?: string;
|
|
843
|
+
modified?: string;
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export interface GetUserProfileRequest extends BaseRequest, RequestQuery<GetUserProfileQuery> {}
|