@simonarcher/fika-types 1.0.0 → 1.0.2

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 +12 -12
  2. package/package.json +2 -2
package/dist/shop.d.ts CHANGED
@@ -91,6 +91,8 @@ export type ShopData = {
91
91
  id: string;
92
92
  name: string;
93
93
  about?: string;
94
+ city: string;
95
+ countryCode: string;
94
96
  businessStatus?: string;
95
97
  fikaRating?: number;
96
98
  totalReviews?: number;
@@ -108,18 +110,7 @@ export type ShopData = {
108
110
  hasPlatformLoyaltyRewards?: boolean;
109
111
  stampsRequired?: number;
110
112
  };
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
- };
113
+ info?: ShopInfo;
123
114
  socials?: {
124
115
  instagram: string;
125
116
  facebook: string;
@@ -152,6 +143,15 @@ export type ShopData = {
152
143
  menu?: string[];
153
144
  };
154
145
  };
146
+ export interface ShopInfo {
147
+ features: Partial<Record<ShopFeatureKey, boolean>> & Record<string, boolean>;
148
+ wifiDetails?: {
149
+ name?: string;
150
+ password?: string;
151
+ showPublicly?: boolean;
152
+ };
153
+ }
154
+ 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
155
  interface OpeningTime {
156
156
  day: number;
157
157
  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.2",
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": [