@qrush/types 2.0.11 → 2.0.13

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;
@@ -108,7 +105,11 @@ export interface LocationPermission {
108
105
  }
109
106
  export interface ActivePromotion {
110
107
  instanceId: string;
108
+ ownerType: 'location' | 'user';
111
109
  timeSlots?: TimeSlot[];
110
+ activeDays?: number[];
111
+ resetMinutes?: number;
112
+ resetTime?: number;
112
113
  displayOrder?: number;
113
114
  titleSnapshot: string;
114
115
  savingSnapshot: number;
@@ -121,9 +122,3 @@ export interface TimeSlot {
121
122
  from: Timestamp;
122
123
  to: Timestamp;
123
124
  }
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.13",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "scripts": {