@qrush/types 2.0.11 → 2.0.12

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.
@@ -45,9 +45,9 @@ export interface PromotionInstance {
45
45
  saving: number;
46
46
  itemType: PromotionItemType;
47
47
  dealType: PromotionDealType;
48
- activeDays: number[];
49
- resetMinutes: number;
50
- resetTime: number;
48
+ activeDays?: number[];
49
+ resetMinutes?: number;
50
+ resetTime?: number;
51
51
  customizationRules: CustomizationRules;
52
52
  dailyRedemptionCount: number;
53
53
  totalRedemptionCount: number;
@@ -87,9 +87,6 @@ export interface LocationPermission {
87
87
  locationId: string;
88
88
  userName: string;
89
89
  userEmail: string;
90
- /**
91
- * @deprecated Use the `role` field instead.
92
- */
93
90
  isOwner?: boolean;
94
91
  role: "owner" | "manager" | "promoter" | "staff";
95
92
  canCreateEvents: boolean;
@@ -109,6 +106,9 @@ export interface LocationPermission {
109
106
  export interface ActivePromotion {
110
107
  instanceId: string;
111
108
  timeSlots?: TimeSlot[];
109
+ activeDays?: number[];
110
+ resetMinutes?: number;
111
+ resetTime?: number;
112
112
  displayOrder?: number;
113
113
  titleSnapshot: string;
114
114
  savingSnapshot: number;
@@ -121,9 +121,3 @@ export interface TimeSlot {
121
121
  from: Timestamp;
122
122
  to: Timestamp;
123
123
  }
124
- export interface AvailablePromotion {
125
- instance: PromotionInstance;
126
- permission: PromotionInstancePermission;
127
- isActive: boolean;
128
- nextAvailableAt?: Timestamp;
129
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "scripts": {