@compassdigital/sdk.typescript 4.29.0 → 4.32.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/.vscode/settings.json +5 -0
- package/lib/base.js +5 -5
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +67 -28
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +73 -31
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +2 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/location.d.ts +3 -3
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +68 -4
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +3 -2
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +0 -11
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +67 -0
- package/lib/interface/tax.d.ts.map +1 -0
- package/lib/interface/tax.js +5 -0
- package/lib/interface/tax.js.map +1 -0
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +144 -48
- package/src/interface/consumer.ts +3 -1
- package/src/interface/location.ts +3 -3
- package/src/interface/menu.ts +99 -4
- package/src/interface/partner.ts +3 -2
- package/src/interface/payment.ts +8 -28
- package/src/interface/promo.ts +2 -4
- package/src/interface/shoppingcart.ts +3 -3
- package/src/interface/tax.ts +113 -0
package/lib/interface/menu.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export interface Menu {
|
|
|
25
25
|
item_desc_edit_enabled?: boolean;
|
|
26
26
|
calories_edit_enabled?: boolean;
|
|
27
27
|
item_label_edit_enabled?: boolean;
|
|
28
|
-
frictionless?: boolean;
|
|
29
28
|
};
|
|
30
29
|
meta?: {
|
|
31
30
|
locked_by_user?: string;
|
|
@@ -561,6 +560,7 @@ export interface DraftModifierGroupDTO {
|
|
|
561
560
|
order_type?: "selection" | "option" | "quantity";
|
|
562
561
|
sizing?: string;
|
|
563
562
|
is_out_of_stock?: FilterFieldDTO;
|
|
563
|
+
is_incremental?: FilterFieldDTO;
|
|
564
564
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
565
565
|
brand?: Record<string, any>;
|
|
566
566
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -657,7 +657,6 @@ export interface MenuWorksDTO {
|
|
|
657
657
|
portion_unit_name?: FilterFieldDTO;
|
|
658
658
|
grams?: number;
|
|
659
659
|
cost?: number;
|
|
660
|
-
calories?: number;
|
|
661
660
|
id?: Record<string, any>;
|
|
662
661
|
[index: string]: any;
|
|
663
662
|
}
|
|
@@ -734,6 +733,21 @@ export interface BrandStatusDTO {
|
|
|
734
733
|
permissions?: FilterFieldDTO;
|
|
735
734
|
[index: string]: any;
|
|
736
735
|
}
|
|
736
|
+
export interface SiteGroupWithMenuGroupNameResponseDTO {
|
|
737
|
+
site_id: string;
|
|
738
|
+
local_menu_group_id: string;
|
|
739
|
+
local_menu_group_name: string;
|
|
740
|
+
created_at?: string;
|
|
741
|
+
updated_at?: string;
|
|
742
|
+
[index: string]: any;
|
|
743
|
+
}
|
|
744
|
+
export interface SiteGroupDTO {
|
|
745
|
+
site_id: string;
|
|
746
|
+
local_menu_group_id: string;
|
|
747
|
+
created_at?: string;
|
|
748
|
+
updated_at?: string;
|
|
749
|
+
[index: string]: any;
|
|
750
|
+
}
|
|
737
751
|
export interface DraftMenuDraftMenuDTO {
|
|
738
752
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
739
753
|
parent_id?: FilterFieldDTO;
|
|
@@ -804,6 +818,7 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
|
|
|
804
818
|
order_type?: FilterFieldDTO;
|
|
805
819
|
sizing?: FilterFieldDTO;
|
|
806
820
|
is_out_of_stock?: FilterFieldDTO;
|
|
821
|
+
is_incremental?: FilterFieldDTO;
|
|
807
822
|
id?: FilterFieldDTO;
|
|
808
823
|
version?: FilterFieldDTO;
|
|
809
824
|
created_at?: FilterFieldDTO;
|
|
@@ -992,6 +1007,7 @@ export interface PublishedModifierGroupDTO {
|
|
|
992
1007
|
order_type?: "selection" | "option" | "quantity";
|
|
993
1008
|
sizing?: string;
|
|
994
1009
|
is_out_of_stock?: boolean;
|
|
1010
|
+
is_incremental?: boolean;
|
|
995
1011
|
permissions?: Record<string, any>;
|
|
996
1012
|
[index: string]: any;
|
|
997
1013
|
}
|
|
@@ -1511,6 +1527,7 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
|
|
|
1511
1527
|
order_type?: FilterFieldDTO;
|
|
1512
1528
|
sizing?: FilterFieldDTO;
|
|
1513
1529
|
is_out_of_stock?: FilterFieldDTO;
|
|
1530
|
+
is_incremental?: FilterFieldDTO;
|
|
1514
1531
|
id?: FilterFieldDTO;
|
|
1515
1532
|
version?: FilterFieldDTO;
|
|
1516
1533
|
created_at?: FilterFieldDTO;
|
|
@@ -1694,6 +1711,7 @@ export interface GetMenuQuery {
|
|
|
1694
1711
|
extended?: boolean;
|
|
1695
1712
|
show_unlinked?: boolean;
|
|
1696
1713
|
include_items_with_weight?: boolean;
|
|
1714
|
+
show_out_of_stock?: boolean;
|
|
1697
1715
|
_query?: string;
|
|
1698
1716
|
nocache?: boolean;
|
|
1699
1717
|
}
|
|
@@ -2168,6 +2186,48 @@ export interface PostMenuV3LocalMenuGroupImportBrandsResponse {
|
|
|
2168
2186
|
}
|
|
2169
2187
|
export interface PostMenuV3LocalMenuGroupImportBrandsRequest extends BaseRequest, RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>, PostMenuV3LocalMenuGroupImportBrandsPath {
|
|
2170
2188
|
}
|
|
2189
|
+
export interface GetMenuV3LocalMenuGroupSitePath {
|
|
2190
|
+
id: string;
|
|
2191
|
+
}
|
|
2192
|
+
export interface GetMenuV3LocalMenuGroupSiteQuery {
|
|
2193
|
+
_query?: string;
|
|
2194
|
+
}
|
|
2195
|
+
export interface GetMenuV3LocalMenuGroupSiteResponse {
|
|
2196
|
+
results?: SiteGroupWithMenuGroupNameResponseDTO[];
|
|
2197
|
+
}
|
|
2198
|
+
export interface GetMenuV3LocalMenuGroupSiteRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupSiteQuery>, GetMenuV3LocalMenuGroupSitePath {
|
|
2199
|
+
}
|
|
2200
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupPath {
|
|
2201
|
+
id: string;
|
|
2202
|
+
}
|
|
2203
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupQuery {
|
|
2204
|
+
_query?: string;
|
|
2205
|
+
}
|
|
2206
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupResponse {
|
|
2207
|
+
results?: SiteGroupWithMenuGroupNameResponseDTO[];
|
|
2208
|
+
}
|
|
2209
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupMenuGroupQuery>, GetMenuV3LocalMenuGroupMenuGroupPath {
|
|
2210
|
+
}
|
|
2211
|
+
export type PostMenuV3LocalMenuGroupsSiteGroupsBody = {
|
|
2212
|
+
site_id: string;
|
|
2213
|
+
local_menu_group_id: string;
|
|
2214
|
+
created_at?: string;
|
|
2215
|
+
updated_at?: string;
|
|
2216
|
+
[index: string]: any;
|
|
2217
|
+
}[];
|
|
2218
|
+
export interface PostMenuV3LocalMenuGroupsSiteGroupsResponse {
|
|
2219
|
+
results?: SiteGroupDTO[];
|
|
2220
|
+
}
|
|
2221
|
+
export interface PostMenuV3LocalMenuGroupsSiteGroupsRequest extends BaseRequest {
|
|
2222
|
+
body: PostMenuV3LocalMenuGroupsSiteGroupsBody;
|
|
2223
|
+
}
|
|
2224
|
+
export type DeleteMenuV3LocalMenuGroupsSiteGroupsBody = SiteGroupDTO[];
|
|
2225
|
+
export interface DeleteMenuV3LocalMenuGroupsSiteGroupsResponse {
|
|
2226
|
+
results?: SiteGroupDTO[];
|
|
2227
|
+
}
|
|
2228
|
+
export interface DeleteMenuV3LocalMenuGroupsSiteGroupsRequest extends BaseRequest {
|
|
2229
|
+
body: DeleteMenuV3LocalMenuGroupsSiteGroupsBody;
|
|
2230
|
+
}
|
|
2171
2231
|
export interface PostMenuV3GlobalMenuGroupBody {
|
|
2172
2232
|
name: string;
|
|
2173
2233
|
is_active?: boolean;
|
|
@@ -3983,6 +4043,7 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
3983
4043
|
order_type?: "selection" | "option" | "quantity";
|
|
3984
4044
|
sizing?: string;
|
|
3985
4045
|
is_out_of_stock?: boolean;
|
|
4046
|
+
is_incremental?: boolean;
|
|
3986
4047
|
id?: Record<string, any>;
|
|
3987
4048
|
applied_diff_snapshot?: Record<string, any>;
|
|
3988
4049
|
brand?: DraftBrandDTO;
|
|
@@ -4026,6 +4087,7 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
4026
4087
|
order_type?: "selection" | "option" | "quantity";
|
|
4027
4088
|
sizing?: string;
|
|
4028
4089
|
is_out_of_stock?: boolean;
|
|
4090
|
+
is_incremental?: boolean;
|
|
4029
4091
|
applied_diff_snapshot?: Record<string, any>;
|
|
4030
4092
|
version?: number;
|
|
4031
4093
|
brand?: DraftBrandDTO;
|
|
@@ -4080,6 +4142,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
4080
4142
|
order_type?: "selection" | "option" | "quantity";
|
|
4081
4143
|
sizing?: string;
|
|
4082
4144
|
is_out_of_stock?: boolean;
|
|
4145
|
+
is_incremental?: boolean;
|
|
4083
4146
|
id?: Record<string, any>;
|
|
4084
4147
|
applied_diff_snapshot?: Record<string, any>;
|
|
4085
4148
|
brand?: DraftBrandDTO;
|
|
@@ -4131,6 +4194,7 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
4131
4194
|
order_type?: "selection" | "option" | "quantity";
|
|
4132
4195
|
sizing?: string;
|
|
4133
4196
|
is_out_of_stock?: boolean;
|
|
4197
|
+
is_incremental?: boolean;
|
|
4134
4198
|
applied_diff_snapshot?: Record<string, any>;
|
|
4135
4199
|
version?: number;
|
|
4136
4200
|
brand?: DraftBrandDTO;
|
|
@@ -4696,17 +4760,17 @@ export interface GetMenuV3GlobalDiffsCountRequest extends BaseRequest, RequestQu
|
|
|
4696
4760
|
}
|
|
4697
4761
|
export interface GetMenuV3MenuworksQuery {
|
|
4698
4762
|
unit_id?: string;
|
|
4699
|
-
MRN?:
|
|
4763
|
+
MRN?: number;
|
|
4700
4764
|
_query?: string;
|
|
4701
4765
|
}
|
|
4702
4766
|
export interface GetMenuV3MenuworksResponse {
|
|
4767
|
+
calories?: number;
|
|
4703
4768
|
MRN?: string;
|
|
4704
4769
|
unit_id?: string;
|
|
4705
4770
|
portion_quantity?: number;
|
|
4706
4771
|
portion_unit_name?: string;
|
|
4707
4772
|
grams?: number;
|
|
4708
4773
|
cost?: number;
|
|
4709
|
-
calories?: number;
|
|
4710
4774
|
[index: string]: any;
|
|
4711
4775
|
}
|
|
4712
4776
|
export interface GetMenuV3MenuworksRequest extends BaseRequest, RequestQuery<GetMenuV3MenuworksQuery> {
|