@chopkola/common 1.0.181 → 1.0.183
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/build/types/vendor.d.ts +10 -1
- package/package.json +1 -1
package/build/types/vendor.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { AddressI } from "./address";
|
|
2
2
|
import { PromotionTypeEnum, VendorBusinessTypeEnum, VendorStatusEnum } from "./enum/collection";
|
|
3
3
|
import { AddressPayloadType, UUID } from "./global";
|
|
4
|
+
import { MenuWithMeals } from "./menu_n_meal";
|
|
4
5
|
export type CuisineType = "African" | "Asian" | "Continental" | "Mediterranean" | "American";
|
|
5
6
|
export type AmbienceType = "Casual" | "Fine Dining" | "Family Friendly" | "Romantic" | "Outdoor" | "Rooftop";
|
|
6
7
|
export type StoreType = "Supermarket" | "Organic Store" | "Wholesale" | "Convenience Store" | "Mini Mart";
|
|
7
8
|
export type GroceryCategory = "Fresh Produce" | "Frozen Foods" | "Household Items" | "Beverages" | "Snacks" | "Meat & Poultry" | "Dairy";
|
|
9
|
+
type OperatingHours = {
|
|
10
|
+
day: "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
|
|
11
|
+
open: string;
|
|
12
|
+
close: string;
|
|
13
|
+
is_closed: boolean;
|
|
14
|
+
};
|
|
8
15
|
export interface Vendor {
|
|
9
16
|
id: UUID;
|
|
10
17
|
owner_id: UUID;
|
|
@@ -20,7 +27,7 @@ export interface Vendor {
|
|
|
20
27
|
location?: string;
|
|
21
28
|
logo_url: string | null;
|
|
22
29
|
banner_url: string | null;
|
|
23
|
-
operating_hours:
|
|
30
|
+
operating_hours: OperatingHours[];
|
|
24
31
|
is_accepting_orders: boolean;
|
|
25
32
|
avg_preparation_time_minutes: number | null;
|
|
26
33
|
rating: number;
|
|
@@ -97,6 +104,7 @@ export type VendorAggregateForWeb = VendorAggregate & {
|
|
|
97
104
|
deliveryFee?: number;
|
|
98
105
|
reviews?: number;
|
|
99
106
|
rating?: number;
|
|
107
|
+
menus?: MenuWithMeals[];
|
|
100
108
|
};
|
|
101
109
|
export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" | "business_status" | "approved_by" | "approved_on" | "created_at" | "updated_at"> & {
|
|
102
110
|
address_payload: AddressPayloadType;
|
|
@@ -113,3 +121,4 @@ export type WebApplicationRestaurantsResourceData = {
|
|
|
113
121
|
cuisines: CuisineType[];
|
|
114
122
|
ambience: AmbienceType[];
|
|
115
123
|
};
|
|
124
|
+
export {};
|