@qrush/types 2.0.10 → 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.
- package/dist/Promotion.d.ts +7 -12
- package/package.json +1 -1
package/dist/Promotion.d.ts
CHANGED
|
@@ -45,9 +45,9 @@ export interface PromotionInstance {
|
|
|
45
45
|
saving: number;
|
|
46
46
|
itemType: PromotionItemType;
|
|
47
47
|
dealType: PromotionDealType;
|
|
48
|
-
activeDays
|
|
49
|
-
resetMinutes
|
|
50
|
-
resetTime
|
|
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;
|
|
@@ -98,6 +95,7 @@ export interface LocationPermission {
|
|
|
98
95
|
canViewAnalytics: boolean;
|
|
99
96
|
canManagePromotions: boolean;
|
|
100
97
|
canUseLocationPromotions: boolean;
|
|
98
|
+
canUseOwnPromotions: boolean;
|
|
101
99
|
grantedAt: Timestamp;
|
|
102
100
|
grantedBy: string;
|
|
103
101
|
expiresAt?: Timestamp;
|
|
@@ -108,6 +106,9 @@ export interface LocationPermission {
|
|
|
108
106
|
export interface ActivePromotion {
|
|
109
107
|
instanceId: string;
|
|
110
108
|
timeSlots?: TimeSlot[];
|
|
109
|
+
activeDays?: number[];
|
|
110
|
+
resetMinutes?: number;
|
|
111
|
+
resetTime?: number;
|
|
111
112
|
displayOrder?: number;
|
|
112
113
|
titleSnapshot: string;
|
|
113
114
|
savingSnapshot: number;
|
|
@@ -120,9 +121,3 @@ export interface TimeSlot {
|
|
|
120
121
|
from: Timestamp;
|
|
121
122
|
to: Timestamp;
|
|
122
123
|
}
|
|
123
|
-
export interface AvailablePromotion {
|
|
124
|
-
instance: PromotionInstance;
|
|
125
|
-
permission: PromotionInstancePermission;
|
|
126
|
-
isActive: boolean;
|
|
127
|
-
nextAvailableAt?: Timestamp;
|
|
128
|
-
}
|