@simonarcher/fika-types 1.0.2 → 1.0.4

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 +40 -19
  2. package/package.json +1 -1
package/dist/shop.d.ts CHANGED
@@ -110,32 +110,18 @@ export type ShopData = {
110
110
  hasPlatformLoyaltyRewards?: boolean;
111
111
  stampsRequired?: number;
112
112
  };
113
+ staffMembers?: StaffMember[];
114
+ roastingAndBeansInfo?: RoastingAndBeansInfo;
113
115
  info?: ShopInfo;
114
- socials?: {
115
- instagram: string;
116
- facebook: string;
117
- tiktok: string;
118
- twitter: string;
119
- };
116
+ socials?: SocialMedia;
117
+ menu?: MenuItem[];
120
118
  location?: {
121
119
  latitude: number;
122
120
  longitude: number;
123
121
  };
124
122
  geoPoint?: GeoPoint;
125
123
  regularOpeningHours?: DayOpeningHours[];
126
- contactDetails?: {
127
- contactNumber: string;
128
- website: string;
129
- address: {
130
- formattedAddress: string;
131
- shortFormattedAddress: string;
132
- addressLine1: string;
133
- addressLine2: string;
134
- postalCode: string;
135
- province: string;
136
- country: string;
137
- };
138
- };
124
+ contactDetails?: ShopContactDetails;
139
125
  addedAt?: AdminTimestamp;
140
126
  images?: {
141
127
  cover?: string;
@@ -151,6 +137,28 @@ export interface ShopInfo {
151
137
  showPublicly?: boolean;
152
138
  };
153
139
  }
140
+ export interface SocialMedia {
141
+ instagram: string;
142
+ facebook: string;
143
+ tiktok: string;
144
+ twitter: string;
145
+ }
146
+ export interface ShopContactDetails {
147
+ contactNumber: string;
148
+ email: string;
149
+ website: string;
150
+ address: {
151
+ formattedAddress: string;
152
+ shortFormattedAddress: string;
153
+ addressLine1: string;
154
+ addressLine2: string;
155
+ postalCode: string;
156
+ province: string;
157
+ country: string;
158
+ city: string;
159
+ };
160
+ updatedAt?: Date;
161
+ }
154
162
  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
163
  interface OpeningTime {
156
164
  day: number;
@@ -296,4 +304,17 @@ export interface LoyaltyStamp {
296
304
  valid: boolean;
297
305
  voucherId?: string;
298
306
  }
307
+ export interface RoastingAndBeansInfo {
308
+ roasters?: string[];
309
+ hasDecaf?: boolean;
310
+ decafMethods?: DecafMethod[];
311
+ flavourNotes?: string[];
312
+ coffeeBeans?: string[];
313
+ coffeeOriginCountries?: string[];
314
+ processingMethods?: CoffeeProcessingMethod[];
315
+ roastLevels?: RoastLevel[];
316
+ singleOrigin?: boolean;
317
+ directTrade?: boolean;
318
+ seasonal?: boolean;
319
+ }
299
320
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",