@simonarcher/fika-types 1.0.16 → 1.0.18

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.
Files changed (2) hide show
  1. package/dist/shop.d.ts +13 -0
  2. package/package.json +21 -21
package/dist/shop.d.ts CHANGED
@@ -130,7 +130,20 @@ export type ShopData = {
130
130
  menu?: string[];
131
131
  };
132
132
  placeId?: string;
133
+ communityStats?: ShopCommunityStats;
133
134
  };
135
+ export interface ShopCommunityStats {
136
+ totalCheckIns: number;
137
+ uniqueVisitors: number;
138
+ lastCheckIn?: AdminTimestamp;
139
+ lastUpdated: AdminTimestamp;
140
+ topVisitor?: {
141
+ userId: string;
142
+ userName: string;
143
+ visitCount: number;
144
+ lastVisit: AdminTimestamp;
145
+ };
146
+ }
134
147
  export interface ShopInfo {
135
148
  features: Partial<Record<ShopFeatureKey, boolean | null>> & Record<string, boolean | null>;
136
149
  wifiDetails?: {
package/package.json CHANGED
@@ -1,44 +1,44 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
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
- "build": "tsc",
9
- "dev": "tsc --watch",
10
- "clean": "rm -rf dist",
11
- "prepublishOnly": "npm run build"
8
+ "build": "tsc",
9
+ "dev": "tsc --watch",
10
+ "clean": "rm -rf dist",
11
+ "prepublishOnly": "npm run build"
12
12
  },
13
13
  "devDependencies": {
14
- "typescript": "^5.0.0",
15
- "firebase": "^10.8.1",
16
- "firebase-admin": "^12.0.0"
14
+ "typescript": "^5.0.0",
15
+ "firebase": "^10.8.1",
16
+ "firebase-admin": "^12.0.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "firebase": ">=10.0.0",
20
- "firebase-admin": "^12.0.0"
19
+ "firebase": ">=10.0.0",
20
+ "firebase-admin": "^12.0.0"
21
21
  },
22
22
  "files": [
23
- "dist/**/*"
23
+ "dist/**/*"
24
24
  ],
25
25
  "publishConfig": {
26
- "access": "public"
26
+ "access": "public"
27
27
  },
28
28
  "repository": {
29
- "type": "git",
30
- "url": "https://github.com/simonarcher/FIKA-schema.git"
29
+ "type": "git",
30
+ "url": "https://github.com/simonarcher/FIKA-schema.git"
31
31
  },
32
32
  "keywords": [
33
- "typescript",
34
- "types",
35
- "fika",
36
- "coffee",
37
- "firebase"
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
- "node": ">=16.0.0"
42
+ "node": ">=16.0.0"
43
43
  }
44
- }
44
+ }