@chopkola/common 1.0.205 → 1.0.207
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PermissionCollectionType } from "../../global";
|
|
2
|
-
import { Permission,
|
|
2
|
+
import { Permission, RoleWithPermissions } from "../../role_n_permission";
|
|
3
3
|
export type AccessControlListResourceData = {
|
|
4
4
|
resources: string[];
|
|
5
5
|
permissionActions: PermissionCollectionType[];
|
|
6
6
|
permissions: Permission[];
|
|
7
|
-
roles:
|
|
7
|
+
roles: RoleWithPermissions[];
|
|
8
8
|
};
|
package/build/types/cart.d.ts
CHANGED
|
@@ -100,3 +100,14 @@ export interface GroceryCart extends BaseCart<ProductCartItem> {
|
|
|
100
100
|
total_estimate?: MoneyString;
|
|
101
101
|
}
|
|
102
102
|
export type CartAggregate = RestaurantCart | GroceryCart;
|
|
103
|
+
export interface HydratedCartItem {
|
|
104
|
+
id: string;
|
|
105
|
+
cart_item_id: UUID;
|
|
106
|
+
name: string;
|
|
107
|
+
image: string;
|
|
108
|
+
unit_price: MoneyString;
|
|
109
|
+
total_price: MoneyString;
|
|
110
|
+
quantity: number;
|
|
111
|
+
item_type: CartItemTypeEnum;
|
|
112
|
+
options_summary?: string;
|
|
113
|
+
}
|