@simonarcher/fika-types 1.0.25 → 1.0.26

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/coffee.d.ts +10 -4
  2. package/package.json +1 -1
package/dist/coffee.d.ts CHANGED
@@ -68,6 +68,14 @@ export type DecafMethod = "Swiss Water" | "Sugarcane / Ethyl Acetate" | "Carbon
68
68
  export declare const DECAF_METHODS: readonly ["Swiss Water", "Sugarcane / Ethyl Acetate", "Carbon Dioxide (CO₂)", "Methylene Chloride", "Mountain Water", "Unknown"];
69
69
  export type CoffeeProcessingMethod = "Washed (Wet)" | "Natural (Dry)" | "Honey" | "Anaerobic Fermentation" | "Carbonic Maceration" | "Wet-Hulled" | "Semi-Washed" | "Experimental / Other" | "Unknown";
70
70
  export type RoastLevel = 'Light' | 'Medium' | 'Dark' | 'Medium-Dark' | 'Medium-Light' | 'Espresso';
71
+ export interface Origin {
72
+ countryCode?: string;
73
+ countryName?: string;
74
+ region?: string;
75
+ subregion?: string;
76
+ elevationMinMeters?: number;
77
+ elevationMaxMeters?: number;
78
+ }
71
79
  export interface CoffeeBean {
72
80
  active: boolean;
73
81
  id: string;
@@ -77,6 +85,7 @@ export interface CoffeeBean {
77
85
  roasterId: string;
78
86
  farmId?: string;
79
87
  farm?: LinkedFarm;
88
+ origins?: Origin[];
80
89
  varieties?: string[];
81
90
  harvestYear?: number;
82
91
  lotName?: string;
@@ -102,10 +111,7 @@ export interface SubmissionCoffeeBeanData {
102
111
  description?: string;
103
112
  image?: string;
104
113
  roasterId: string;
105
- country?: string;
106
- region?: string;
107
- origin?: string;
108
- elevation?: number;
114
+ origins?: Origin[];
109
115
  processing?: CoffeeProcessingMethod;
110
116
  tastingNotes?: string[];
111
117
  isDecaf: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",