@simonarcher/fika-types 1.0.0 → 1.0.1

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 +10 -12
  2. package/package.json +2 -2
package/dist/shop.d.ts CHANGED
@@ -108,18 +108,7 @@ export type ShopData = {
108
108
  hasPlatformLoyaltyRewards?: boolean;
109
109
  stampsRequired?: number;
110
110
  };
111
- info?: {
112
- hasWifi: boolean;
113
- wifiName: string;
114
- wifiPassword: string;
115
- laptopFriendly: boolean;
116
- hasKitchen: boolean;
117
- servesBreakfast: boolean;
118
- servesLunch: boolean;
119
- servesVegetarianFood: boolean;
120
- discountOnReusableCup: boolean;
121
- hasLoyaltyRewards: boolean;
122
- };
111
+ info?: ShopInfo;
123
112
  socials?: {
124
113
  instagram: string;
125
114
  facebook: string;
@@ -152,6 +141,15 @@ export type ShopData = {
152
141
  menu?: string[];
153
142
  };
154
143
  };
144
+ export interface ShopInfo {
145
+ features: Partial<Record<ShopFeatureKey, boolean>> & Record<string, boolean>;
146
+ wifiDetails?: {
147
+ name?: string;
148
+ password?: string;
149
+ showPublicly?: boolean;
150
+ };
151
+ }
152
+ export type ShopFeatureKey = 'powerOutlets' | 'laptopFriendly' | 'seating' | 'outdoorSeating' | 'accessibility' | 'alcohol' | 'indoor-seating' | 'breakfast' | 'outdoor-seating' | 'lunch' | 'vegtarian' | 'petFriendly' | 'restrooms' | 'parking' | 'wifi' | 'creditCards' | 'discountOnReusableCup' | 'glutenFree' | 'loyaltyCard' | 'delivery' | 'espresso' | 'batchBrew' | 'handBrew' | 'coldBrew' | 'plantBasedMilk';
155
153
  interface OpeningTime {
156
154
  day: number;
157
155
  hour: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "firebase-admin": "^12.0.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "firebase": "^10.0.0",
19
+ "firebase": ">=10.0.0",
20
20
  "firebase-admin": "^12.0.0"
21
21
  },
22
22
  "files": [