@simonarcher/fika-types 1.0.82 → 1.0.84
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/shop.d.ts +17 -0
- package/package.json +1 -1
package/dist/shop.d.ts
CHANGED
|
@@ -191,6 +191,7 @@ export type ShopData = {
|
|
|
191
191
|
communityStats?: ShopCommunityStats;
|
|
192
192
|
spotifyPlaylistId?: string;
|
|
193
193
|
paymentOptions?: ShopPaymentOptions;
|
|
194
|
+
offersWorkshopsAndTraining?: boolean;
|
|
194
195
|
/**
|
|
195
196
|
* --------- NEW FOR SPECIALTY SCORING (all optional/merge-friendly) ----------
|
|
196
197
|
*/
|
|
@@ -206,6 +207,7 @@ export type ShopData = {
|
|
|
206
207
|
events?: string[];
|
|
207
208
|
sustainability?: Array<'direct trade' | 'traceable' | 'organic' | 'b-corp' | string>;
|
|
208
209
|
baristaAchievements?: BaristaAchievement[];
|
|
210
|
+
awards?: ShopAward[];
|
|
209
211
|
signals?: SpecialtySignals;
|
|
210
212
|
specialty?: SpecialtyMeta;
|
|
211
213
|
onboarding?: {
|
|
@@ -458,6 +460,7 @@ export interface PublicShopData extends Omit<ShopData, 'analytics' | 'googleRati
|
|
|
458
460
|
fans: string[];
|
|
459
461
|
total: number;
|
|
460
462
|
};
|
|
463
|
+
awards?: ShopAward[];
|
|
461
464
|
}
|
|
462
465
|
export type SpecialtyOverride = {
|
|
463
466
|
score: number;
|
|
@@ -503,6 +506,20 @@ export type BaristaAchievement = {
|
|
|
503
506
|
year?: number;
|
|
504
507
|
notes?: string;
|
|
505
508
|
};
|
|
509
|
+
export type ShopAwardType = 'shop' | 'barista';
|
|
510
|
+
export type AwardCategory = 'Competition Win' | 'Certification' | 'Shop Award' | 'Recognition' | 'Other';
|
|
511
|
+
export interface ShopAward {
|
|
512
|
+
id: string;
|
|
513
|
+
type: ShopAwardType;
|
|
514
|
+
awardType: AwardCategory;
|
|
515
|
+
title: string;
|
|
516
|
+
year?: number;
|
|
517
|
+
notes?: string;
|
|
518
|
+
imageUrl?: string;
|
|
519
|
+
issuedBy?: string;
|
|
520
|
+
createdAt?: number;
|
|
521
|
+
updatedAt?: number;
|
|
522
|
+
}
|
|
506
523
|
/**
|
|
507
524
|
* Denormalized version used when displaying or exporting reviews.
|
|
508
525
|
* Mirrors PostShopReviewData but includes IDs, timestamps, and optional ISO string.
|