@simonarcher/fika-types 2.0.0 → 2.1.0

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.
@@ -26,7 +26,13 @@ export type BeanScanAction = "pending" | "saved" | "tried" | "rejected" | "creat
26
26
  */
27
27
  export interface BeanScan {
28
28
  id: string;
29
- userId?: string;
29
+ /**
30
+ * Firebase UID. Required: anon-first onboarding (FIK-92 / FIK-95) means
31
+ * every user has a UID at app launch via `signInAnonymously`, so there is
32
+ * no "truly no user" state to model. The `bean_scans.user_id` column is
33
+ * NOT NULL.
34
+ */
35
+ userId: string;
30
36
  photoUrl: string;
31
37
  ocrText?: string;
32
38
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",