@simonarcher/fika-types 1.0.2 → 1.0.3

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 +24 -19
  2. package/package.json +1 -1
package/dist/shop.d.ts CHANGED
@@ -111,31 +111,14 @@ export type ShopData = {
111
111
  stampsRequired?: number;
112
112
  };
113
113
  info?: ShopInfo;
114
- socials?: {
115
- instagram: string;
116
- facebook: string;
117
- tiktok: string;
118
- twitter: string;
119
- };
114
+ socials?: SocialMedia;
120
115
  location?: {
121
116
  latitude: number;
122
117
  longitude: number;
123
118
  };
124
119
  geoPoint?: GeoPoint;
125
120
  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
- };
121
+ contactDetails?: ShopContactDetails;
139
122
  addedAt?: AdminTimestamp;
140
123
  images?: {
141
124
  cover?: string;
@@ -151,6 +134,28 @@ export interface ShopInfo {
151
134
  showPublicly?: boolean;
152
135
  };
153
136
  }
137
+ export interface SocialMedia {
138
+ instagram: string;
139
+ facebook: string;
140
+ tiktok: string;
141
+ twitter: string;
142
+ }
143
+ export interface ShopContactDetails {
144
+ contactNumber: string;
145
+ email: string;
146
+ website: string;
147
+ address: {
148
+ formattedAddress: string;
149
+ shortFormattedAddress: string;
150
+ addressLine1: string;
151
+ addressLine2: string;
152
+ postalCode: string;
153
+ province: string;
154
+ country: string;
155
+ city: string;
156
+ };
157
+ updatedAt?: Date;
158
+ }
154
159
  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
160
  interface OpeningTime {
156
161
  day: number;
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.3",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",