@simonarcher/fika-types 1.0.71 → 1.0.73

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/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './loyalty';
11
11
  export * from './actions';
12
12
  export * from './rewards';
13
13
  export * from './shopAnalytics';
14
+ export * from './shopCorrections';
package/dist/index.js CHANGED
@@ -40,3 +40,5 @@ __exportStar(require("./actions"), exports);
40
40
  __exportStar(require("./rewards"), exports);
41
41
  // Export all shop analytics-related types
42
42
  __exportStar(require("./shopAnalytics"), exports);
43
+ // Export all shop correction-related types
44
+ __exportStar(require("./shopCorrections"), exports);
package/dist/shop.d.ts CHANGED
@@ -199,6 +199,8 @@ export type ShopData = {
199
199
  houseRoasted?: boolean;
200
200
  brewMethods?: string[];
201
201
  menuKeywords?: string[];
202
+ hasBrewBar?: boolean;
203
+ brewBarDescription?: string;
202
204
  events?: string[];
203
205
  sustainability?: Array<'direct trade' | 'traceable' | 'organic' | 'b-corp' | string>;
204
206
  baristaAchievements?: BaristaAchievement[];
@@ -423,6 +425,8 @@ export interface RoastingAndBeansInfo {
423
425
  seasonal?: boolean;
424
426
  }
425
427
  export interface PublicShopData extends Omit<ShopData, 'analytics' | 'googleRating' | 'contactDetails' | 'placeId'> {
428
+ hasBrewBar?: boolean;
429
+ brewBarDescription?: string;
426
430
  menu: MenuItem[];
427
431
  staffMembers: StaffMember[];
428
432
  communityStats: Omit<ShopCommunityStats, 'lastCheckIn'>;
@@ -0,0 +1,53 @@
1
+ import type { Timestamp } from "firebase-admin/firestore";
2
+ /**
3
+ * Type for different correction categories
4
+ */
5
+ export type CorrectionType = 'coffee' | 'brewMethods' | 'features' | 'menu' | 'other';
6
+ /**
7
+ * Interface for coffee-related corrections (roaster associations)
8
+ */
9
+ export interface CoffeeCorrection {
10
+ roastersToAdd: Array<{
11
+ id?: string;
12
+ name: string;
13
+ isCustom: boolean;
14
+ }>;
15
+ roastersToRemove: Array<{
16
+ id: string;
17
+ name: string;
18
+ }>;
19
+ existingRoasters: Array<{
20
+ id: string;
21
+ name: string;
22
+ }>;
23
+ }
24
+ /**
25
+ * Interface for shop correction submission data
26
+ */
27
+ export interface ShopCorrectionData {
28
+ shopId: string;
29
+ shopName: string;
30
+ correctionType: CorrectionType;
31
+ coffeeCorrection?: CoffeeCorrection;
32
+ userId: string;
33
+ userName?: string;
34
+ timestamp: number;
35
+ }
36
+ /**
37
+ * Interface for shop correction submissions stored in database
38
+ * Used for future review workflow
39
+ */
40
+ export interface ShopCorrectionSubmission {
41
+ id: string;
42
+ shopId: string;
43
+ shopName: string;
44
+ correctionType: CorrectionType;
45
+ correctionData: any;
46
+ userId: string;
47
+ userName?: string;
48
+ status: 'pending' | 'approved' | 'rejected' | 'applied';
49
+ submittedAt: Timestamp;
50
+ reviewedAt?: Timestamp;
51
+ reviewedBy?: string;
52
+ notes?: string;
53
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",