@simonarcher/fika-types 1.0.88 → 1.0.89

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/shop.d.ts +33 -0
  2. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",