@simonarcher/fika-types 1.0.10 → 1.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/coffee.d.ts CHANGED
@@ -23,6 +23,7 @@ export interface RoasterData {
23
23
  city: string;
24
24
  };
25
25
  };
26
+ farms?: LinkedFarm[];
26
27
  addedByUser?: string;
27
28
  active: boolean;
28
29
  createdAt?: Timestamp;
@@ -56,25 +57,42 @@ export interface SubmissionRoasterData {
56
57
  additionalInfo?: string;
57
58
  geoPoint?: GeoPoint;
58
59
  }
60
+ export interface LinkedFarm {
61
+ id: string;
62
+ name: string;
63
+ country: string;
64
+ region?: string;
65
+ logo?: string;
66
+ }
59
67
  export type DecafMethod = "Swiss Water" | "Sugarcane / Ethyl Acetate" | "Carbon Dioxide (CO₂)" | "Methylene Chloride" | "Mountain Water" | "Unknown";
60
68
  export type CoffeeProcessingMethod = "Washed (Wet)" | "Natural (Dry)" | "Honey" | "Anaerobic Fermentation" | "Carbonic Maceration" | "Wet-Hulled" | "Semi-Washed" | "Experimental / Other" | "Unknown";
61
69
  export type RoastLevel = 'Light' | 'Medium' | 'Dark' | 'Medium-Dark' | 'Medium-Light' | 'Espresso';
62
- export interface CoffeeBeanData {
70
+ export interface CoffeeBean {
71
+ active: boolean;
63
72
  id: string;
64
73
  name: string;
65
74
  description?: string;
66
75
  image?: string;
67
76
  roasterId: string;
68
- country?: string;
69
- region?: string;
70
- origin?: string;
71
- elevation?: number;
77
+ farmId?: string;
78
+ farm?: LinkedFarm;
79
+ varieties?: string[];
80
+ harvestYear?: number;
81
+ lotName?: string;
82
+ scaScore?: number;
83
+ roastLevel?: "Light" | "Medium-Light" | "Medium" | "Medium-Dark" | "Dark";
72
84
  processing?: CoffeeProcessingMethod;
85
+ processingDetails?: string;
73
86
  tastingNotes?: string[];
87
+ cupProfile?: string;
88
+ brewRecommendations?: BrewMethod[];
74
89
  isDecaf: boolean;
75
90
  decafMethod?: DecafMethod;
76
91
  shops?: string[];
77
- active: boolean;
92
+ farmerStory?: string;
93
+ impactNotes?: string;
94
+ awards?: string[];
95
+ limitedEdition?: boolean;
78
96
  createdAt?: Timestamp;
79
97
  updatedAt?: Timestamp;
80
98
  }
@@ -96,3 +114,4 @@ export interface SubmissionCoffeeBeanData {
96
114
  active: boolean;
97
115
  }
98
116
  export declare const COFFEE_PRODUCING_COUNTRIES: string[];
117
+ export type BrewMethod = "Espresso" | "Filter" | "Pour Over" | "Aeropress" | "French Press" | "Cold Brew" | "Moka Pot" | "Siphon" | "Other";
package/dist/farm.d.ts ADDED
@@ -0,0 +1,46 @@
1
+ export interface Coordinates {
2
+ latitude: number;
3
+ longitude: number;
4
+ }
5
+ export interface SocialMediaLinks {
6
+ instagram?: string;
7
+ facebook?: string;
8
+ twitter?: string;
9
+ [key: string]: string | undefined;
10
+ }
11
+ export interface LinkedRoaster {
12
+ id: string;
13
+ name: string;
14
+ logo?: string;
15
+ }
16
+ export interface Farm {
17
+ id: string;
18
+ name: string;
19
+ aliases?: string[];
20
+ owner?: string;
21
+ manager?: string;
22
+ establishedYear?: number;
23
+ country: string;
24
+ region: string;
25
+ subregion?: string;
26
+ coordinates?: Coordinates;
27
+ altitudeMin?: number;
28
+ altitudeMax?: number;
29
+ soilType?: string;
30
+ climateNotes?: string;
31
+ certifications?: string[];
32
+ processingFacilities?: string[];
33
+ processingMethods?: string[];
34
+ annualProductionKg?: number;
35
+ varieties?: string[];
36
+ knownFor?: string;
37
+ notes?: string;
38
+ sustainabilityPractices?: string[];
39
+ website?: string;
40
+ socialMedia?: SocialMediaLinks;
41
+ photos?: string[];
42
+ logo?: string;
43
+ roasters?: LinkedRoaster[];
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ }
package/dist/farm.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
package/dist/shop.d.ts CHANGED
@@ -161,7 +161,7 @@ export interface ShopContactDetails {
161
161
  };
162
162
  updatedAt?: Date;
163
163
  }
164
- export type ShopFeatureKey = 'powerOutlets' | 'laptopFriendly' | 'seating' | 'outdoorSeating' | 'indoorSeating' | 'accessibility' | 'alcohol' | 'breakfast' | 'lunch' | 'vegetarian' | 'petFriendly' | 'restrooms' | 'parking' | 'wifi' | 'creditCards' | 'acceptsCash' | 'acceptsCreditCards' | 'acceptsNfc' | 'discountOnReusableCup' | 'glutenFree' | 'loyaltyCard' | 'delivery' | 'espresso' | 'batchBrew' | 'handBrew' | 'coldBrew' | 'plantBasedMilk';
164
+ export type ShopFeatureKey = 'powerOutlets' | 'laptopFriendly' | 'outdoorSeating' | 'indoorSeating' | 'accessibility' | 'alcohol' | 'breakfast' | 'lunch' | 'vegetarian' | 'petFriendly' | 'restrooms' | 'parking' | 'wifi' | 'acceptsCash' | 'acceptsCreditCards' | 'acceptsNfc' | 'discountOnReusableCup' | 'glutenFree' | 'loyaltyCard' | 'takeaway' | 'delivery';
165
165
  interface OpeningTime {
166
166
  day: number;
167
167
  hour: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",