@simonarcher/fika-types 1.0.1 → 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.
- package/dist/shop.d.ts +26 -19
- package/package.json +1 -1
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;
|
|
@@ -109,31 +111,14 @@ export type ShopData = {
|
|
|
109
111
|
stampsRequired?: number;
|
|
110
112
|
};
|
|
111
113
|
info?: ShopInfo;
|
|
112
|
-
socials?:
|
|
113
|
-
instagram: string;
|
|
114
|
-
facebook: string;
|
|
115
|
-
tiktok: string;
|
|
116
|
-
twitter: string;
|
|
117
|
-
};
|
|
114
|
+
socials?: SocialMedia;
|
|
118
115
|
location?: {
|
|
119
116
|
latitude: number;
|
|
120
117
|
longitude: number;
|
|
121
118
|
};
|
|
122
119
|
geoPoint?: GeoPoint;
|
|
123
120
|
regularOpeningHours?: DayOpeningHours[];
|
|
124
|
-
contactDetails?:
|
|
125
|
-
contactNumber: string;
|
|
126
|
-
website: string;
|
|
127
|
-
address: {
|
|
128
|
-
formattedAddress: string;
|
|
129
|
-
shortFormattedAddress: string;
|
|
130
|
-
addressLine1: string;
|
|
131
|
-
addressLine2: string;
|
|
132
|
-
postalCode: string;
|
|
133
|
-
province: string;
|
|
134
|
-
country: string;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
121
|
+
contactDetails?: ShopContactDetails;
|
|
137
122
|
addedAt?: AdminTimestamp;
|
|
138
123
|
images?: {
|
|
139
124
|
cover?: string;
|
|
@@ -149,6 +134,28 @@ export interface ShopInfo {
|
|
|
149
134
|
showPublicly?: boolean;
|
|
150
135
|
};
|
|
151
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
|
+
}
|
|
152
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';
|
|
153
160
|
interface OpeningTime {
|
|
154
161
|
day: number;
|