@qrush/types 2.1.13 → 2.1.14

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/Common.d.ts CHANGED
@@ -33,6 +33,9 @@ export type Location = {
33
33
  address: Address;
34
34
  geopoint: GeoPoint;
35
35
  };
36
+ /** @deprecated Use EventCategorySlug instead */
36
37
  export type EventCategory = 'Clubnight' | 'Concert' | 'Party' | 'Festival' | 'Open-Air' | 'Rave' | 'Live-Musik' | 'Comedy' | 'Karaoke' | 'Quiz-Night' | 'Open-Mic' | 'Pub-Crawl' | 'LGBTQ+' | 'Drag-Show' | 'Speed-Dating' | 'Burlesque-Show' | 'After-Work' | 'Bar-Event' | 'Stadtfest' | 'Bootsparty' | 'Bingo';
37
- export type EventCategorySlug = 'clubnight' | 'concert' | 'party' | 'festival' | 'open-air' | 'rave' | 'live-musik' | 'comedy' | 'karaoke' | 'quiz-night' | 'open-mic' | 'pub-crawl' | 'lgbtq' | 'drag-show' | 'speed-dating' | 'burlesque-show' | 'after-work' | 'bar-event' | 'stadtfest' | 'bootsparty' | 'bingo';
38
+ export declare const EVENT_CATEGORY_SLUGS: readonly ["clubnight", "concert", "party", "festival", "open-air", "rave", "live-musik", "comedy", "karaoke", "quiz-night", "open-mic", "pub-crawl", "lgbtq", "drag-show", "speed-dating", "burlesque-show", "after-work", "bar-event", "stadtfest", "bootsparty", "bingo"];
39
+ export type EventCategorySlug = (typeof EVENT_CATEGORY_SLUGS)[number];
40
+ /** @deprecated Use EventCategorySlug instead */
38
41
  export declare const eventCategories: EventCategory[];
package/dist/Common.js CHANGED
@@ -1,4 +1,29 @@
1
+ // Array of all possible event category slugs - single source of truth
2
+ export const EVENT_CATEGORY_SLUGS = [
3
+ 'clubnight',
4
+ 'concert',
5
+ 'party',
6
+ 'festival',
7
+ 'open-air',
8
+ 'rave',
9
+ 'live-musik',
10
+ 'comedy',
11
+ 'karaoke',
12
+ 'quiz-night',
13
+ 'open-mic',
14
+ 'pub-crawl',
15
+ 'lgbtq',
16
+ 'drag-show',
17
+ 'speed-dating',
18
+ 'burlesque-show',
19
+ 'after-work',
20
+ 'bar-event',
21
+ 'stadtfest',
22
+ 'bootsparty',
23
+ 'bingo'
24
+ ];
1
25
  // Array of all possible event categories for UI rendering
26
+ /** @deprecated Use EventCategorySlug instead */
2
27
  export const eventCategories = [
3
28
  'Clubnight',
4
29
  'Concert',
@@ -1,6 +1,7 @@
1
1
  import { FireQueryDocSnapshotRef } from "./CustomDocType.js";
2
2
  import { Location as BaseLocation, EventCategorySlug, Features } from "./Common.js";
3
3
  import { PromotionTeaser } from "./Promotion.js";
4
+ /** @deprecated Use locationTypeSlug instead */
4
5
  export declare const LOCATION_TYPE_MAPPING: {
5
6
  readonly Bar: "bars";
6
7
  readonly Outdoor: "outdoor";
@@ -12,10 +13,14 @@ export declare const LOCATION_TYPE_MAPPING: {
12
13
  export type LocationTypeKey = keyof typeof LOCATION_TYPE_MAPPING;
13
14
  export type LocationTypeSlug = (typeof LOCATION_TYPE_MAPPING)[LocationTypeKey];
14
15
  export declare const LOCATION_TYPE_TO_SLUG_MAPPING: Record<LocationTypeKey, LocationTypeSlug>;
16
+ /** @deprecated Use locationTypeSlug instead */
15
17
  export type LocationType = LocationTypeKey[];
18
+ /** @deprecated Use locationTypeSlug instead */
16
19
  export type LocationTypeSlugArray = LocationTypeSlug[];
20
+ /** @deprecated Use locationTypeSlug instead */
17
21
  export type LocationTypeArray = LocationTypeKey[];
18
- export type LocationHighlightSlug = "rooftop" | "whirlpool" | "pool-table" | "billiard" | "darts" | "dance-floor" | "outdoor-area" | "beer-garden" | "terrace" | "sauna" | "hot-tub" | "game-room" | "live-sports" | string;
22
+ export declare const LOCATION_HIGHLIGHT_SLUGS: readonly ["rooftop", "whirlpool", "pool-table", "billiard", "darts", "dance-floor", "outdoor-area", "beer-garden", "terrace", "sauna", "hot-tub", "game-room", "live-sports"];
23
+ export type LocationHighlightSlug = (typeof LOCATION_HIGHLIGHT_SLUGS)[number];
19
24
  /**
20
25
  * @deprecated Old type, replaced by LocationType. Handle migration for 'Open Air' to 'Outdoor' and for 'Other'.
21
26
  */
@@ -46,6 +51,7 @@ export type IFireLocation = {
46
51
  imageUrl: string;
47
52
  galleryImageUrls: string[];
48
53
  venueType?: VenueType;
54
+ /** @deprecated Use locationTypeSlug instead */
49
55
  locationType: LocationType;
50
56
  locationTypeSlug: LocationTypeSlugArray;
51
57
  citySlug: string;
package/dist/Location.js CHANGED
@@ -1,3 +1,4 @@
1
+ /** @deprecated Use locationTypeSlug instead */
1
2
  export const LOCATION_TYPE_MAPPING = {
2
3
  Bar: "bars",
3
4
  Outdoor: "outdoor",
@@ -7,3 +8,19 @@ export const LOCATION_TYPE_MAPPING = {
7
8
  "City Festival": "cityfestivals",
8
9
  };
9
10
  export const LOCATION_TYPE_TO_SLUG_MAPPING = LOCATION_TYPE_MAPPING;
11
+ // Array of all possible location highlight slugs - single source of truth
12
+ export const LOCATION_HIGHLIGHT_SLUGS = [
13
+ "rooftop",
14
+ "whirlpool",
15
+ "pool-table",
16
+ "billiard",
17
+ "darts",
18
+ "dance-floor",
19
+ "outdoor-area",
20
+ "beer-garden",
21
+ "terrace",
22
+ "sauna",
23
+ "hot-tub",
24
+ "game-room",
25
+ "live-sports",
26
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "scripts": {