@simonarcher/fika-types 1.1.6 → 1.2.0
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 +6 -2
- package/dist/shop.js +65 -0
- package/package.json +1 -1
package/dist/shop.d.ts
CHANGED
|
@@ -314,8 +314,12 @@ export interface ShopContactDetails {
|
|
|
314
314
|
updatedAt?: Date;
|
|
315
315
|
}
|
|
316
316
|
export type ShopFeatureKey = 'powerOutlets' | 'laptopFriendly' | 'outdoorSeating' | 'indoorSeating' | 'accessibility' | 'alcohol' | 'breakfast' | 'lunch' | 'vegetarian' | 'petFriendly' | 'restrooms' | 'parking' | 'wifi' | 'acceptsCash' | 'acceptsCreditCards' | 'acceptsNfc' | 'discountOnReusableCup' | 'glutenFree' | 'loyaltyCard' | 'takeaway' | 'delivery' | 'inHouseRoasting' | 'walkInOnly';
|
|
317
|
-
export type ShopSpecialtyKey = '
|
|
318
|
-
export type SpecialtyCategoryKey = 'Coffee
|
|
317
|
+
export type ShopSpecialtyKey = 'inHouseRoastery' | 'pourOverSpecialty' | 'espressoExpert' | 'singleOriginFocus' | 'rotatingRoasters' | 'tastingNotesOnMenu' | 'naturalFermentedFocus' | 'cuppingAndEducation' | 'cozyAmbiance' | 'bustlingEnergy' | 'espressoBarStanding' | 'vinylRecords' | 'uniqueExperience' | 'inHouseBakery' | 'freshPastries' | 'localBakeryPartner' | 'dessertDestination' | 'lgbtqFriendly' | 'womenOwned' | 'zeroWasteFocus' | 'communityHub' | 'laptopWelcome' | 'fastWifi' | 'longStayOk';
|
|
318
|
+
export type SpecialtyCategoryKey = 'Coffee' | 'Atmosphere' | 'Food & Treats' | 'Identity & Values' | 'Workspace';
|
|
319
|
+
/** Maps each specialty key to its category. Single source of truth for admin and mobile. */
|
|
320
|
+
export declare const specialtyCategoryMap: Record<ShopSpecialtyKey, SpecialtyCategoryKey>;
|
|
321
|
+
/** Display labels for each specialty key. Single source of truth for admin and mobile. */
|
|
322
|
+
export declare const specialtyLabelMap: Record<ShopSpecialtyKey, string>;
|
|
319
323
|
export interface ShopSpecialties {
|
|
320
324
|
highlighted: ShopSpecialtyKey[];
|
|
321
325
|
additional: ShopSpecialtyKey[];
|
package/dist/shop.js
CHANGED
|
@@ -1,2 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.specialtyLabelMap = exports.specialtyCategoryMap = void 0;
|
|
4
|
+
/** Maps each specialty key to its category. Single source of truth for admin and mobile. */
|
|
5
|
+
exports.specialtyCategoryMap = {
|
|
6
|
+
// Coffee
|
|
7
|
+
inHouseRoastery: 'Coffee',
|
|
8
|
+
pourOverSpecialty: 'Coffee',
|
|
9
|
+
espressoExpert: 'Coffee',
|
|
10
|
+
singleOriginFocus: 'Coffee',
|
|
11
|
+
rotatingRoasters: 'Coffee',
|
|
12
|
+
tastingNotesOnMenu: 'Coffee',
|
|
13
|
+
naturalFermentedFocus: 'Coffee',
|
|
14
|
+
cuppingAndEducation: 'Coffee',
|
|
15
|
+
// Atmosphere
|
|
16
|
+
cozyAmbiance: 'Atmosphere',
|
|
17
|
+
bustlingEnergy: 'Atmosphere',
|
|
18
|
+
espressoBarStanding: 'Atmosphere',
|
|
19
|
+
vinylRecords: 'Atmosphere',
|
|
20
|
+
uniqueExperience: 'Atmosphere',
|
|
21
|
+
// Food & Treats
|
|
22
|
+
inHouseBakery: 'Food & Treats',
|
|
23
|
+
freshPastries: 'Food & Treats',
|
|
24
|
+
localBakeryPartner: 'Food & Treats',
|
|
25
|
+
dessertDestination: 'Food & Treats',
|
|
26
|
+
// Identity & Values
|
|
27
|
+
lgbtqFriendly: 'Identity & Values',
|
|
28
|
+
womenOwned: 'Identity & Values',
|
|
29
|
+
zeroWasteFocus: 'Identity & Values',
|
|
30
|
+
communityHub: 'Identity & Values',
|
|
31
|
+
// Workspace
|
|
32
|
+
laptopWelcome: 'Workspace',
|
|
33
|
+
fastWifi: 'Workspace',
|
|
34
|
+
longStayOk: 'Workspace',
|
|
35
|
+
};
|
|
36
|
+
/** Display labels for each specialty key. Single source of truth for admin and mobile. */
|
|
37
|
+
exports.specialtyLabelMap = {
|
|
38
|
+
// Coffee
|
|
39
|
+
inHouseRoastery: 'In-House Roastery',
|
|
40
|
+
pourOverSpecialty: 'Pour-Over / Filter Focus',
|
|
41
|
+
espressoExpert: 'Espresso Specialists',
|
|
42
|
+
singleOriginFocus: 'Single Origin Focus',
|
|
43
|
+
rotatingRoasters: 'Rotating / Guest Roasters',
|
|
44
|
+
tastingNotesOnMenu: 'Tasting Notes on Menu',
|
|
45
|
+
naturalFermentedFocus: 'Natural & Fermented Coffees',
|
|
46
|
+
cuppingAndEducation: 'Cuppings & Education',
|
|
47
|
+
// Atmosphere
|
|
48
|
+
cozyAmbiance: 'Cosy & Welcoming',
|
|
49
|
+
bustlingEnergy: 'Lively Atmosphere',
|
|
50
|
+
espressoBarStanding: 'Espresso Bar / Standing Only',
|
|
51
|
+
vinylRecords: 'Vinyl Records',
|
|
52
|
+
uniqueExperience: 'Unique Concept',
|
|
53
|
+
// Food & Treats
|
|
54
|
+
inHouseBakery: 'In-House Bakery',
|
|
55
|
+
freshPastries: 'Fresh Pastries',
|
|
56
|
+
localBakeryPartner: 'Local Bakery Partner',
|
|
57
|
+
dessertDestination: 'Dessert Destination',
|
|
58
|
+
// Identity & Values
|
|
59
|
+
lgbtqFriendly: 'LGBTQ+ Friendly',
|
|
60
|
+
womenOwned: 'Women Owned & Led',
|
|
61
|
+
zeroWasteFocus: 'Zero Waste Focused',
|
|
62
|
+
communityHub: 'Community Hub',
|
|
63
|
+
// Workspace
|
|
64
|
+
laptopWelcome: 'Laptop Welcome',
|
|
65
|
+
fastWifi: 'Fast WiFi',
|
|
66
|
+
longStayOk: 'Long Stay OK',
|
|
67
|
+
};
|