@compassdigital/sdk.typescript 4.45.0 → 4.46.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.map +1 -1
- package/lib/base.js +2 -2
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +4 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +9 -8
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +46 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/base.ts +2 -3
- package/src/index.ts +9 -9
- package/src/interface/auth.ts +12 -10
- package/src/interface/menu.ts +46 -0
- package/test/client.test.ts +1 -1
package/lib/interface/menu.d.ts
CHANGED
|
@@ -292,6 +292,7 @@ export interface DraftBrandDTO {
|
|
|
292
292
|
global_menu_group_id?: string;
|
|
293
293
|
posid_segment?: string;
|
|
294
294
|
is_simplified_view?: boolean;
|
|
295
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
295
296
|
permissions?: Record<string, any>;
|
|
296
297
|
[index: string]: any;
|
|
297
298
|
}
|
|
@@ -474,6 +475,8 @@ export interface DraftItemDTO {
|
|
|
474
475
|
id?: string;
|
|
475
476
|
parent_id?: string;
|
|
476
477
|
name?: string;
|
|
478
|
+
name_on_receipt?: string;
|
|
479
|
+
name_on_kds?: string;
|
|
477
480
|
label?: string;
|
|
478
481
|
description?: string;
|
|
479
482
|
reporting?: Record<string, any>;
|
|
@@ -490,6 +493,7 @@ export interface DraftItemDTO {
|
|
|
490
493
|
menu_works?: Record<string, any>;
|
|
491
494
|
is_out_of_stock?: boolean;
|
|
492
495
|
tax_tag_code?: string;
|
|
496
|
+
tags?: string[];
|
|
493
497
|
applied_diff_snapshot?: Record<string, any>;
|
|
494
498
|
brand?: DraftBrandDTO;
|
|
495
499
|
categories?: Record<string, any>[];
|
|
@@ -568,6 +572,8 @@ export interface DraftModifierDTO {
|
|
|
568
572
|
id?: string;
|
|
569
573
|
parent_id?: string;
|
|
570
574
|
name?: string;
|
|
575
|
+
name_on_receipt?: string;
|
|
576
|
+
name_on_kds?: string;
|
|
571
577
|
label?: string;
|
|
572
578
|
description?: string;
|
|
573
579
|
price?: number;
|
|
@@ -586,6 +592,7 @@ export interface DraftModifierDTO {
|
|
|
586
592
|
pre_surcharge?: number;
|
|
587
593
|
post_surcharge?: number;
|
|
588
594
|
tax_tag_code?: string;
|
|
595
|
+
tags?: string[];
|
|
589
596
|
applied_diff_snapshot?: Record<string, any>;
|
|
590
597
|
brand?: DraftBrandDTO;
|
|
591
598
|
changes?: ModifierChangeDTO[];
|
|
@@ -811,6 +818,8 @@ export interface PublishedItemDTO {
|
|
|
811
818
|
id?: string;
|
|
812
819
|
parent_id?: string;
|
|
813
820
|
name?: string;
|
|
821
|
+
name_on_receipt?: string;
|
|
822
|
+
name_on_kds?: string;
|
|
814
823
|
label?: string;
|
|
815
824
|
description?: string;
|
|
816
825
|
price?: number;
|
|
@@ -825,6 +834,7 @@ export interface PublishedItemDTO {
|
|
|
825
834
|
posid_segment?: string;
|
|
826
835
|
is_out_of_stock?: boolean;
|
|
827
836
|
tax_tag_code?: string;
|
|
837
|
+
tags?: string[];
|
|
828
838
|
permissions?: Record<string, any>;
|
|
829
839
|
[index: string]: any;
|
|
830
840
|
}
|
|
@@ -869,6 +879,8 @@ export interface PublishedModifierDTO {
|
|
|
869
879
|
id?: string;
|
|
870
880
|
parent_id?: string;
|
|
871
881
|
name?: string;
|
|
882
|
+
name_on_receipt?: string;
|
|
883
|
+
name_on_kds?: string;
|
|
872
884
|
label?: string;
|
|
873
885
|
description?: string;
|
|
874
886
|
price?: number;
|
|
@@ -885,6 +897,7 @@ export interface PublishedModifierDTO {
|
|
|
885
897
|
pre_surcharge?: number;
|
|
886
898
|
post_surcharge?: number;
|
|
887
899
|
tax_tag_code?: string;
|
|
900
|
+
tags?: string[];
|
|
888
901
|
permissions?: Record<string, any>;
|
|
889
902
|
[index: string]: any;
|
|
890
903
|
}
|
|
@@ -1124,6 +1137,8 @@ export interface DraftItemEntityDTO {
|
|
|
1124
1137
|
deleted_at?: string;
|
|
1125
1138
|
parent_id?: string;
|
|
1126
1139
|
name: string;
|
|
1140
|
+
name_on_receipt?: string;
|
|
1141
|
+
name_on_kds?: string;
|
|
1127
1142
|
label?: string;
|
|
1128
1143
|
description?: string;
|
|
1129
1144
|
reporting: ReportingMetadataDTO;
|
|
@@ -1140,6 +1155,7 @@ export interface DraftItemEntityDTO {
|
|
|
1140
1155
|
menu_works?: MenuWorksDTO;
|
|
1141
1156
|
is_out_of_stock?: boolean;
|
|
1142
1157
|
tax_tag_code?: string;
|
|
1158
|
+
tags?: string[];
|
|
1143
1159
|
applied_diff_snapshot?: Record<string, any>;
|
|
1144
1160
|
version?: number;
|
|
1145
1161
|
brand?: DraftBrandDTO;
|
|
@@ -1161,6 +1177,8 @@ export interface DraftModifierEntityDTO {
|
|
|
1161
1177
|
deleted_at?: string;
|
|
1162
1178
|
parent_id?: string;
|
|
1163
1179
|
name: string;
|
|
1180
|
+
name_on_receipt?: string;
|
|
1181
|
+
name_on_kds?: string;
|
|
1164
1182
|
label?: string;
|
|
1165
1183
|
description?: string;
|
|
1166
1184
|
price: number;
|
|
@@ -1179,6 +1197,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1179
1197
|
pre_surcharge?: number;
|
|
1180
1198
|
post_surcharge?: number;
|
|
1181
1199
|
tax_tag_code?: string;
|
|
1200
|
+
tags?: string[];
|
|
1182
1201
|
applied_diff_snapshot?: Record<string, any>;
|
|
1183
1202
|
version?: number;
|
|
1184
1203
|
brand?: DraftBrandDTO;
|
|
@@ -1916,6 +1935,7 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
1916
1935
|
global_menu_group_id?: string;
|
|
1917
1936
|
posid_segment?: string;
|
|
1918
1937
|
is_simplified_view?: boolean;
|
|
1938
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
1919
1939
|
changes?: BrandChangeDTO[];
|
|
1920
1940
|
local_menu_group?: LocalMenuGroupDTO;
|
|
1921
1941
|
global_menu_group?: GlobalMenuGroupDTO;
|
|
@@ -1964,6 +1984,7 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
1964
1984
|
global_menu_group_id?: string;
|
|
1965
1985
|
posid_segment?: string;
|
|
1966
1986
|
is_simplified_view?: boolean;
|
|
1987
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
1967
1988
|
version?: number;
|
|
1968
1989
|
changes?: BrandChangeDTO[];
|
|
1969
1990
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -2025,6 +2046,7 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
2025
2046
|
global_menu_group_id?: string;
|
|
2026
2047
|
posid_segment?: string;
|
|
2027
2048
|
is_simplified_view?: boolean;
|
|
2049
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
2028
2050
|
changes?: BrandChangeDTO[];
|
|
2029
2051
|
local_menu_group?: LocalMenuGroupDTO;
|
|
2030
2052
|
global_menu_group?: GlobalMenuGroupDTO;
|
|
@@ -3007,6 +3029,8 @@ export interface PostMenuV3DraftItemBody {
|
|
|
3007
3029
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
3008
3030
|
parent_id?: string;
|
|
3009
3031
|
name: string;
|
|
3032
|
+
name_on_receipt?: string;
|
|
3033
|
+
name_on_kds?: string;
|
|
3010
3034
|
label?: string;
|
|
3011
3035
|
description?: string;
|
|
3012
3036
|
reporting: ReportingMetadataDTO;
|
|
@@ -3023,6 +3047,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
3023
3047
|
menu_works?: MenuWorksDTO;
|
|
3024
3048
|
is_out_of_stock?: boolean;
|
|
3025
3049
|
tax_tag_code?: string;
|
|
3050
|
+
tags?: string[];
|
|
3026
3051
|
applied_diff_snapshot?: Record<string, any>;
|
|
3027
3052
|
brand?: DraftBrandDTO;
|
|
3028
3053
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -3058,6 +3083,8 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
3058
3083
|
id?: string;
|
|
3059
3084
|
parent_id?: string;
|
|
3060
3085
|
name?: string;
|
|
3086
|
+
name_on_receipt?: string;
|
|
3087
|
+
name_on_kds?: string;
|
|
3061
3088
|
label?: string;
|
|
3062
3089
|
description?: string;
|
|
3063
3090
|
reporting?: ReportingMetadataDTO;
|
|
@@ -3074,6 +3101,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
3074
3101
|
menu_works?: MenuWorksDTO;
|
|
3075
3102
|
is_out_of_stock?: boolean;
|
|
3076
3103
|
tax_tag_code?: string;
|
|
3104
|
+
tags?: string[];
|
|
3077
3105
|
applied_diff_snapshot?: Record<string, any>;
|
|
3078
3106
|
version?: number;
|
|
3079
3107
|
brand?: DraftBrandDTO;
|
|
@@ -3122,6 +3150,8 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
3122
3150
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
3123
3151
|
parent_id?: string;
|
|
3124
3152
|
name: string;
|
|
3153
|
+
name_on_receipt?: string;
|
|
3154
|
+
name_on_kds?: string;
|
|
3125
3155
|
label?: string;
|
|
3126
3156
|
description?: string;
|
|
3127
3157
|
reporting: ReportingMetadataDTO;
|
|
@@ -3138,6 +3168,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
3138
3168
|
menu_works?: MenuWorksDTO;
|
|
3139
3169
|
is_out_of_stock?: boolean;
|
|
3140
3170
|
tax_tag_code?: string;
|
|
3171
|
+
tags?: string[];
|
|
3141
3172
|
applied_diff_snapshot?: Record<string, any>;
|
|
3142
3173
|
brand?: DraftBrandDTO;
|
|
3143
3174
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -3186,6 +3217,8 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
3186
3217
|
id?: string;
|
|
3187
3218
|
parent_id?: string;
|
|
3188
3219
|
name?: string;
|
|
3220
|
+
name_on_receipt?: string;
|
|
3221
|
+
name_on_kds?: string;
|
|
3189
3222
|
label?: string;
|
|
3190
3223
|
description?: string;
|
|
3191
3224
|
reporting?: ReportingMetadataDTO;
|
|
@@ -3202,6 +3235,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
3202
3235
|
menu_works?: MenuWorksDTO;
|
|
3203
3236
|
is_out_of_stock?: boolean;
|
|
3204
3237
|
tax_tag_code?: string;
|
|
3238
|
+
tags?: string[];
|
|
3205
3239
|
applied_diff_snapshot?: Record<string, any>;
|
|
3206
3240
|
brand?: DraftBrandDTO;
|
|
3207
3241
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -3855,6 +3889,8 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
3855
3889
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
3856
3890
|
parent_id?: string;
|
|
3857
3891
|
name: string;
|
|
3892
|
+
name_on_receipt?: string;
|
|
3893
|
+
name_on_kds?: string;
|
|
3858
3894
|
label?: string;
|
|
3859
3895
|
description?: string;
|
|
3860
3896
|
price: number;
|
|
@@ -3873,6 +3909,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
3873
3909
|
pre_surcharge?: number;
|
|
3874
3910
|
post_surcharge?: number;
|
|
3875
3911
|
tax_tag_code?: string;
|
|
3912
|
+
tags?: string[];
|
|
3876
3913
|
applied_diff_snapshot?: Record<string, any>;
|
|
3877
3914
|
brand?: DraftBrandDTO;
|
|
3878
3915
|
changes?: ModifierChangeDTO[];
|
|
@@ -3907,6 +3944,8 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
3907
3944
|
id?: string;
|
|
3908
3945
|
parent_id?: string;
|
|
3909
3946
|
name?: string;
|
|
3947
|
+
name_on_receipt?: string;
|
|
3948
|
+
name_on_kds?: string;
|
|
3910
3949
|
label?: string;
|
|
3911
3950
|
description?: string;
|
|
3912
3951
|
price?: number;
|
|
@@ -3925,6 +3964,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
3925
3964
|
pre_surcharge?: number;
|
|
3926
3965
|
post_surcharge?: number;
|
|
3927
3966
|
tax_tag_code?: string;
|
|
3967
|
+
tags?: string[];
|
|
3928
3968
|
applied_diff_snapshot?: Record<string, any>;
|
|
3929
3969
|
version?: number;
|
|
3930
3970
|
brand?: DraftBrandDTO;
|
|
@@ -3972,6 +4012,8 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
3972
4012
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
3973
4013
|
parent_id?: string;
|
|
3974
4014
|
name: string;
|
|
4015
|
+
name_on_receipt?: string;
|
|
4016
|
+
name_on_kds?: string;
|
|
3975
4017
|
label?: string;
|
|
3976
4018
|
description?: string;
|
|
3977
4019
|
price: number;
|
|
@@ -3990,6 +4032,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
3990
4032
|
pre_surcharge?: number;
|
|
3991
4033
|
post_surcharge?: number;
|
|
3992
4034
|
tax_tag_code?: string;
|
|
4035
|
+
tags?: string[];
|
|
3993
4036
|
applied_diff_snapshot?: Record<string, any>;
|
|
3994
4037
|
brand?: DraftBrandDTO;
|
|
3995
4038
|
changes?: ModifierChangeDTO[];
|
|
@@ -4025,6 +4068,8 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
4025
4068
|
id?: string;
|
|
4026
4069
|
parent_id?: string;
|
|
4027
4070
|
name?: string;
|
|
4071
|
+
name_on_receipt?: string;
|
|
4072
|
+
name_on_kds?: string;
|
|
4028
4073
|
label?: string;
|
|
4029
4074
|
description?: string;
|
|
4030
4075
|
price?: number;
|
|
@@ -4043,6 +4088,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
4043
4088
|
pre_surcharge?: number;
|
|
4044
4089
|
post_surcharge?: number;
|
|
4045
4090
|
tax_tag_code?: string;
|
|
4091
|
+
tags?: string[];
|
|
4046
4092
|
applied_diff_snapshot?: Record<string, any>;
|
|
4047
4093
|
brand?: DraftBrandDTO;
|
|
4048
4094
|
changes?: ModifierChangeDTO[];
|