@simonarcher/fika-types 1.0.88 → 1.0.90
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 +36 -0
- package/package.json +1 -1
package/dist/shop.d.ts
CHANGED
|
@@ -143,6 +143,37 @@ export type ShopOpeningTimes = {
|
|
|
143
143
|
close: string;
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
+
/**
|
|
147
|
+
* Franchise/Chain type for managing multiple shop locations
|
|
148
|
+
* with shared branding, roasters, features, and menu items
|
|
149
|
+
*/
|
|
150
|
+
export interface Franchise {
|
|
151
|
+
id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
description?: string;
|
|
154
|
+
logoImage?: string;
|
|
155
|
+
coverImage?: string;
|
|
156
|
+
roasterRefs?: RoasterRef[];
|
|
157
|
+
roasterRefsIds?: string[];
|
|
158
|
+
sharedFeatures?: Partial<Record<ShopFeatureKey, boolean | null>>;
|
|
159
|
+
sharedSpecialties?: ShopSpecialtyKey[];
|
|
160
|
+
menu?: MenuItem[];
|
|
161
|
+
totalLocations?: number;
|
|
162
|
+
countryCode?: string;
|
|
163
|
+
website?: string;
|
|
164
|
+
socials?: SocialMedia;
|
|
165
|
+
createdAt: AdminTimestamp;
|
|
166
|
+
updatedAt: AdminTimestamp;
|
|
167
|
+
createdBy?: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Denormalized franchise reference for quick access in shop data
|
|
171
|
+
*/
|
|
172
|
+
export interface FranchiseRef {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
logoImage?: string;
|
|
176
|
+
}
|
|
146
177
|
export type ShopData = {
|
|
147
178
|
id: string;
|
|
148
179
|
active: boolean;
|
|
@@ -163,6 +194,8 @@ export type ShopData = {
|
|
|
163
194
|
logoImage?: string;
|
|
164
195
|
addedByUser?: string;
|
|
165
196
|
ownerId?: string;
|
|
197
|
+
franchiseId?: string;
|
|
198
|
+
franchiseRef?: FranchiseRef;
|
|
166
199
|
platformLoyaltyRewards?: {
|
|
167
200
|
hasPlatformLoyaltyRewards?: boolean;
|
|
168
201
|
stampsRequired?: number;
|
|
@@ -202,6 +235,7 @@ export type ShopData = {
|
|
|
202
235
|
brewMethods?: string[];
|
|
203
236
|
menuKeywords?: string[];
|
|
204
237
|
hasBrewBar?: boolean;
|
|
238
|
+
hasSingleOriginEspresso?: boolean;
|
|
205
239
|
brewBarDescription?: string;
|
|
206
240
|
servesPlantBasedMilk?: boolean;
|
|
207
241
|
decafOptions?: boolean;
|
|
@@ -442,6 +476,7 @@ export interface RoastingAndBeansInfo {
|
|
|
442
476
|
}
|
|
443
477
|
export interface PublicShopData extends Omit<ShopData, 'analytics' | 'googleRating' | 'contactDetails' | 'placeId'> {
|
|
444
478
|
hasBrewBar?: boolean;
|
|
479
|
+
hasSingleOriginEspresso?: boolean;
|
|
445
480
|
brewBarDescription?: string;
|
|
446
481
|
menu: MenuItem[];
|
|
447
482
|
staffMembers: StaffMember[];
|
|
@@ -595,6 +630,7 @@ export interface PostShopReviewData {
|
|
|
595
630
|
* Whether the shop has a brew bar.
|
|
596
631
|
*/
|
|
597
632
|
hasBrewBar?: boolean;
|
|
633
|
+
hasSingleOriginEspresso?: boolean;
|
|
598
634
|
brewBarDescription?: string;
|
|
599
635
|
/**
|
|
600
636
|
* Roasters observed or confirmed at the shop.
|