@chopkola/common 1.0.182 → 1.0.184
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,6 @@
|
|
|
1
1
|
import { Category } from "./category";
|
|
2
2
|
import { MoneyString, Timestamps, TimeString, UUID } from "./global";
|
|
3
|
-
/** Strongly typed days of week */
|
|
4
3
|
export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
|
|
5
|
-
/** Predefined dietary flags (extensible via custom string union if needed) */
|
|
6
4
|
export type DietaryFlag = "vegan" | "vegetarian" | "gluten-free" | "spicy" | "halal" | "kosher";
|
|
7
5
|
export interface AvailabilityScheduleEntry {
|
|
8
6
|
day: DayOfWeek;
|
|
@@ -19,7 +17,6 @@ export interface Menu extends Timestamps {
|
|
|
19
17
|
daily_max_orders: number;
|
|
20
18
|
is_active: boolean;
|
|
21
19
|
availability_schedule: AvailabilityScheduleEntry[] | null;
|
|
22
|
-
/** Optional aggregated values */
|
|
23
20
|
all_time_ordered_meals_count?: number;
|
|
24
21
|
today_ordered_meals_count?: number;
|
|
25
22
|
}
|
|
@@ -40,7 +37,6 @@ export interface ModifierGroup extends Timestamps {
|
|
|
40
37
|
id: UUID;
|
|
41
38
|
vendor_id: UUID;
|
|
42
39
|
name: string;
|
|
43
|
-
/** Validation rules */
|
|
44
40
|
min_selection: number;
|
|
45
41
|
max_selection: number;
|
|
46
42
|
}
|
package/build/types/vendor.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ export type CuisineType = "African" | "Asian" | "Continental" | "Mediterranean"
|
|
|
6
6
|
export type AmbienceType = "Casual" | "Fine Dining" | "Family Friendly" | "Romantic" | "Outdoor" | "Rooftop";
|
|
7
7
|
export type StoreType = "Supermarket" | "Organic Store" | "Wholesale" | "Convenience Store" | "Mini Mart";
|
|
8
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
|
+
};
|
|
9
15
|
export interface Vendor {
|
|
10
16
|
id: UUID;
|
|
11
17
|
owner_id: UUID;
|
|
@@ -21,7 +27,7 @@ export interface Vendor {
|
|
|
21
27
|
location?: string;
|
|
22
28
|
logo_url: string | null;
|
|
23
29
|
banner_url: string | null;
|
|
24
|
-
operating_hours:
|
|
30
|
+
operating_hours: OperatingHours[];
|
|
25
31
|
is_accepting_orders: boolean;
|
|
26
32
|
avg_preparation_time_minutes: number | null;
|
|
27
33
|
rating: number;
|
|
@@ -115,3 +121,4 @@ export type WebApplicationRestaurantsResourceData = {
|
|
|
115
121
|
cuisines: CuisineType[];
|
|
116
122
|
ambience: AmbienceType[];
|
|
117
123
|
};
|
|
124
|
+
export {};
|