@chopkola/common 1.0.183 → 1.0.185

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
  }
@@ -73,6 +69,8 @@ export interface MenuWithMeals extends Menu {
73
69
  meals: (MealWithModifiers & {
74
70
  sort_order: number;
75
71
  })[];
72
+ today_order_items_count?: number;
73
+ all_time_order_items_count?: number;
76
74
  }
77
75
  export interface SelectedModifierOption {
78
76
  modifier_group_id: UUID;
@@ -1,5 +1,2 @@
1
1
  "use strict";
2
- /* =========================================================
3
- Shared / Core Types
4
- ========================================================= */
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.183",
3
+ "version": "1.0.185",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",