@simonarcher/fika-types 1.0.17 → 1.0.19
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/shop.d.ts +20 -0
- package/package.json +21 -21
package/dist/shop.d.ts
CHANGED
|
@@ -137,6 +137,26 @@ export interface ShopCommunityStats {
|
|
|
137
137
|
uniqueVisitors: number;
|
|
138
138
|
lastCheckIn?: AdminTimestamp;
|
|
139
139
|
lastUpdated: AdminTimestamp;
|
|
140
|
+
topVisitor?: {
|
|
141
|
+
userId: string;
|
|
142
|
+
userName: string;
|
|
143
|
+
visitCount: number;
|
|
144
|
+
lastVisit: AdminTimestamp;
|
|
145
|
+
};
|
|
146
|
+
topVisitor30Day?: {
|
|
147
|
+
userId: string;
|
|
148
|
+
userName: string;
|
|
149
|
+
checkIns30Day: number;
|
|
150
|
+
lastCalculated: AdminTimestamp;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export interface DailyVisitorStats {
|
|
154
|
+
date: string;
|
|
155
|
+
userCheckIns: Record<string, number>;
|
|
156
|
+
totalCheckIns: number;
|
|
157
|
+
uniqueVisitors: number;
|
|
158
|
+
createdAt: AdminTimestamp;
|
|
159
|
+
updatedAt: AdminTimestamp;
|
|
140
160
|
}
|
|
141
161
|
export interface ShopInfo {
|
|
142
162
|
features: Partial<Record<ShopFeatureKey, boolean | null>> & Record<string, boolean | null>;
|
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonarcher/fika-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Shared TypeScript types for Fika projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"dev": "tsc --watch",
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"prepublishOnly": "npm run build"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"typescript": "^5.0.0",
|
|
15
|
+
"firebase": "^10.8.1",
|
|
16
|
+
"firebase-admin": "^12.0.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
"firebase": ">=10.0.0",
|
|
20
|
+
"firebase-admin": "^12.0.0"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
|
-
|
|
23
|
+
"dist/**/*"
|
|
24
24
|
],
|
|
25
25
|
"publishConfig": {
|
|
26
|
-
|
|
26
|
+
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/simonarcher/FIKA-schema.git"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
"typescript",
|
|
34
|
+
"types",
|
|
35
|
+
"fika",
|
|
36
|
+
"coffee",
|
|
37
|
+
"firebase"
|
|
38
38
|
],
|
|
39
39
|
"author": "Simon Archer",
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"engines": {
|
|
42
|
-
|
|
42
|
+
"node": ">=16.0.0"
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
}
|