@compassdigital/sdk.typescript 4.10.0 → 4.12.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/README.md +2 -11
- package/lib/base.d.ts +11 -1
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +21 -3
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/config.d.ts +5 -3
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/location.d.ts +1 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +22 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +1 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +3 -3
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/report.d.ts +23 -0
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/util.d.ts +0 -19
- package/lib/interface/util.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/base.ts +25 -6
- package/src/index.ts +24 -0
- package/src/interface/config.ts +5 -3
- package/src/interface/location.ts +2 -0
- package/src/interface/menu.ts +22 -0
- package/src/interface/order.ts +1 -0
- package/src/interface/payment.ts +3 -3
- package/src/interface/report.ts +36 -0
- package/src/interface/util.ts +0 -21
- package/test/client.test.ts +0 -30
package/lib/interface/menu.d.ts
CHANGED
|
@@ -444,6 +444,7 @@ export interface DraftMenuDTO {
|
|
|
444
444
|
parent_id?: string;
|
|
445
445
|
name?: string;
|
|
446
446
|
brand_id?: string;
|
|
447
|
+
category_images_enabled?: boolean;
|
|
447
448
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
448
449
|
brand?: Record<string, any>;
|
|
449
450
|
changes?: MenuChangeDTO[];
|
|
@@ -462,6 +463,7 @@ export interface DraftCategoryDTO {
|
|
|
462
463
|
is_active?: boolean;
|
|
463
464
|
brand_id?: string;
|
|
464
465
|
menu_id?: string;
|
|
466
|
+
item_images_enabled?: boolean;
|
|
465
467
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
466
468
|
menu?: Record<string, any>;
|
|
467
469
|
items?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -549,6 +551,7 @@ export interface DraftModifierGroupDTO {
|
|
|
549
551
|
min?: number;
|
|
550
552
|
max?: number;
|
|
551
553
|
is_active?: boolean;
|
|
554
|
+
limit?: number;
|
|
552
555
|
brand_id?: string;
|
|
553
556
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
554
557
|
brand?: Record<string, any>;
|
|
@@ -711,6 +714,7 @@ export interface DraftMenuDraftMenuDTO {
|
|
|
711
714
|
parent_id?: FilterFieldDTO;
|
|
712
715
|
name?: FilterFieldDTO;
|
|
713
716
|
brand_id?: FilterFieldDTO;
|
|
717
|
+
category_images_enabled?: FilterFieldDTO;
|
|
714
718
|
id?: FilterFieldDTO;
|
|
715
719
|
version?: FilterFieldDTO;
|
|
716
720
|
created_at?: FilterFieldDTO;
|
|
@@ -764,6 +768,7 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
|
|
|
764
768
|
min?: FilterFieldDTO;
|
|
765
769
|
max?: FilterFieldDTO;
|
|
766
770
|
is_active?: FilterFieldDTO;
|
|
771
|
+
limit?: FilterFieldDTO;
|
|
767
772
|
brand_id?: FilterFieldDTO;
|
|
768
773
|
id?: FilterFieldDTO;
|
|
769
774
|
version?: FilterFieldDTO;
|
|
@@ -880,6 +885,7 @@ export interface PublishedMenuDTO {
|
|
|
880
885
|
parent_id?: string;
|
|
881
886
|
name?: string;
|
|
882
887
|
brand_id?: string;
|
|
888
|
+
category_images_enabled?: boolean;
|
|
883
889
|
permissions?: Record<string, any>;
|
|
884
890
|
[index: string]: any;
|
|
885
891
|
}
|
|
@@ -892,6 +898,7 @@ export interface PublishedCategoryDTO {
|
|
|
892
898
|
is_active?: boolean;
|
|
893
899
|
brand_id?: string;
|
|
894
900
|
menu_id?: string;
|
|
901
|
+
item_images_enabled?: boolean;
|
|
895
902
|
permissions?: Record<string, any>;
|
|
896
903
|
[index: string]: any;
|
|
897
904
|
}
|
|
@@ -941,6 +948,7 @@ export interface PublishedModifierGroupDTO {
|
|
|
941
948
|
min?: number;
|
|
942
949
|
max?: number;
|
|
943
950
|
is_active?: boolean;
|
|
951
|
+
limit?: number;
|
|
944
952
|
brand_id?: string;
|
|
945
953
|
permissions?: Record<string, any>;
|
|
946
954
|
[index: string]: any;
|
|
@@ -1011,6 +1019,7 @@ export interface DraftCategoryDraftCategoryDTO {
|
|
|
1011
1019
|
is_active?: FilterFieldDTO;
|
|
1012
1020
|
brand_id?: FilterFieldDTO;
|
|
1013
1021
|
menu_id?: FilterFieldDTO;
|
|
1022
|
+
item_images_enabled?: FilterFieldDTO;
|
|
1014
1023
|
id?: FilterFieldDTO;
|
|
1015
1024
|
version?: FilterFieldDTO;
|
|
1016
1025
|
created_at?: FilterFieldDTO;
|
|
@@ -1031,6 +1040,7 @@ export interface PublishedMenuPublishedMenuDTO {
|
|
|
1031
1040
|
parent_id?: FilterFieldDTO;
|
|
1032
1041
|
name?: FilterFieldDTO;
|
|
1033
1042
|
brand_id?: FilterFieldDTO;
|
|
1043
|
+
category_images_enabled?: FilterFieldDTO;
|
|
1034
1044
|
id?: FilterFieldDTO;
|
|
1035
1045
|
version?: FilterFieldDTO;
|
|
1036
1046
|
created_at?: FilterFieldDTO;
|
|
@@ -1051,6 +1061,7 @@ export interface PublishedCategoryPublishedCategoryDTO {
|
|
|
1051
1061
|
is_active?: FilterFieldDTO;
|
|
1052
1062
|
brand_id?: FilterFieldDTO;
|
|
1053
1063
|
menu_id?: FilterFieldDTO;
|
|
1064
|
+
item_images_enabled?: FilterFieldDTO;
|
|
1054
1065
|
id?: FilterFieldDTO;
|
|
1055
1066
|
version?: FilterFieldDTO;
|
|
1056
1067
|
created_at?: FilterFieldDTO;
|
|
@@ -1221,6 +1232,7 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
|
|
|
1221
1232
|
min?: FilterFieldDTO;
|
|
1222
1233
|
max?: FilterFieldDTO;
|
|
1223
1234
|
is_active?: FilterFieldDTO;
|
|
1235
|
+
limit?: FilterFieldDTO;
|
|
1224
1236
|
brand_id?: FilterFieldDTO;
|
|
1225
1237
|
id?: FilterFieldDTO;
|
|
1226
1238
|
version?: FilterFieldDTO;
|
|
@@ -2670,6 +2682,7 @@ export interface PostMenuV3DraftMenuBody {
|
|
|
2670
2682
|
parent_id?: string;
|
|
2671
2683
|
name: string;
|
|
2672
2684
|
brand_id: string;
|
|
2685
|
+
category_images_enabled?: boolean;
|
|
2673
2686
|
id?: Record<string, any>;
|
|
2674
2687
|
applied_diff_snapshot?: Record<string, any>;
|
|
2675
2688
|
brand?: DraftBrandDTO;
|
|
@@ -2704,6 +2717,7 @@ export interface PatchMenuV3DraftMenuBody {
|
|
|
2704
2717
|
parent_id?: string;
|
|
2705
2718
|
name?: string;
|
|
2706
2719
|
brand_id?: string;
|
|
2720
|
+
category_images_enabled?: boolean;
|
|
2707
2721
|
applied_diff_snapshot?: Record<string, any>;
|
|
2708
2722
|
version?: number;
|
|
2709
2723
|
brand?: DraftBrandDTO;
|
|
@@ -2749,6 +2763,7 @@ export type PostMenuV3DraftMenusBody = {
|
|
|
2749
2763
|
parent_id?: string;
|
|
2750
2764
|
name: string;
|
|
2751
2765
|
brand_id: string;
|
|
2766
|
+
category_images_enabled?: boolean;
|
|
2752
2767
|
id?: Record<string, any>;
|
|
2753
2768
|
applied_diff_snapshot?: Record<string, any>;
|
|
2754
2769
|
brand?: DraftBrandDTO;
|
|
@@ -2888,6 +2903,7 @@ export interface PostMenuV3DraftCategoryBody {
|
|
|
2888
2903
|
is_active?: boolean;
|
|
2889
2904
|
brand_id: string;
|
|
2890
2905
|
menu_id: string;
|
|
2906
|
+
item_images_enabled?: boolean;
|
|
2891
2907
|
id?: Record<string, any>;
|
|
2892
2908
|
applied_diff_snapshot?: Record<string, any>;
|
|
2893
2909
|
menu?: DraftMenuDTO;
|
|
@@ -2928,6 +2944,7 @@ export interface PatchMenuV3DraftCategoryBody {
|
|
|
2928
2944
|
is_active?: boolean;
|
|
2929
2945
|
brand_id?: string;
|
|
2930
2946
|
menu_id?: string;
|
|
2947
|
+
item_images_enabled?: boolean;
|
|
2931
2948
|
applied_diff_snapshot?: Record<string, any>;
|
|
2932
2949
|
version?: number;
|
|
2933
2950
|
menu?: DraftMenuDTO;
|
|
@@ -2971,6 +2988,7 @@ export type PostMenuV3DraftCategoriesBody = {
|
|
|
2971
2988
|
is_active?: boolean;
|
|
2972
2989
|
brand_id: string;
|
|
2973
2990
|
menu_id: string;
|
|
2991
|
+
item_images_enabled?: boolean;
|
|
2974
2992
|
id?: Record<string, any>;
|
|
2975
2993
|
applied_diff_snapshot?: Record<string, any>;
|
|
2976
2994
|
menu?: DraftMenuDTO;
|
|
@@ -3673,6 +3691,7 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
3673
3691
|
min?: number;
|
|
3674
3692
|
max?: number;
|
|
3675
3693
|
is_active?: boolean;
|
|
3694
|
+
limit?: number;
|
|
3676
3695
|
brand_id: string;
|
|
3677
3696
|
id?: Record<string, any>;
|
|
3678
3697
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3712,6 +3731,7 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
3712
3731
|
min?: number;
|
|
3713
3732
|
max?: number;
|
|
3714
3733
|
is_active?: boolean;
|
|
3734
|
+
limit?: number;
|
|
3715
3735
|
brand_id?: string;
|
|
3716
3736
|
applied_diff_snapshot?: Record<string, any>;
|
|
3717
3737
|
version?: number;
|
|
@@ -3762,6 +3782,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
3762
3782
|
min?: number;
|
|
3763
3783
|
max?: number;
|
|
3764
3784
|
is_active?: boolean;
|
|
3785
|
+
limit?: number;
|
|
3765
3786
|
brand_id: string;
|
|
3766
3787
|
id?: Record<string, any>;
|
|
3767
3788
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3809,6 +3830,7 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
3809
3830
|
min?: number;
|
|
3810
3831
|
max?: number;
|
|
3811
3832
|
is_active?: boolean;
|
|
3833
|
+
limit?: number;
|
|
3812
3834
|
brand_id: string;
|
|
3813
3835
|
applied_diff_snapshot?: Record<string, any>;
|
|
3814
3836
|
version?: number;
|