@qrush/types 2.1.48 → 2.1.49
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/Location.d.ts +4 -3
- package/dist/Location.js +11 -2
- package/package.json +1 -1
package/dist/Location.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FireQueryDocSnapshotRef } from "./CustomDocType.js";
|
|
2
2
|
import { Location as BaseLocation, EventCategorySlug, Features, SupportedLanguage, TranslationMap } from "./Common.js";
|
|
3
3
|
import { PromotionTeaser } from "./Promotion.js";
|
|
4
|
-
|
|
4
|
+
export declare const LOCATION_TYPE_SLUGS: readonly ["bars", "outdoor", "clubs", "festivals", "concerts", "cityfestivals"];
|
|
5
|
+
export type LocationTypeSlug = (typeof LOCATION_TYPE_SLUGS)[number];
|
|
6
|
+
/** @deprecated Use LOCATION_TYPE_SLUGS instead */
|
|
5
7
|
export declare const LOCATION_TYPE_MAPPING: {
|
|
6
8
|
readonly Bar: "bars";
|
|
7
9
|
readonly Outdoor: "outdoor";
|
|
@@ -12,8 +14,7 @@ export declare const LOCATION_TYPE_MAPPING: {
|
|
|
12
14
|
};
|
|
13
15
|
/** @deprecated Use LocationTypeSlug instead */
|
|
14
16
|
export type LocationTypeKey = keyof typeof LOCATION_TYPE_MAPPING;
|
|
15
|
-
|
|
16
|
-
/** @deprecated Use LocationTypeSlug instead */
|
|
17
|
+
/** @deprecated Use LOCATION_TYPE_SLUGS instead */
|
|
17
18
|
export declare const LOCATION_TYPE_TO_SLUG_MAPPING: Record<LocationTypeKey, LocationTypeSlug>;
|
|
18
19
|
/** @deprecated Use locationTypeSlug instead */
|
|
19
20
|
export type LocationType = LocationTypeKey[];
|
package/dist/Location.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
// Array of all possible location type slugs - single source of truth
|
|
2
|
+
export const LOCATION_TYPE_SLUGS = [
|
|
3
|
+
"bars",
|
|
4
|
+
"outdoor",
|
|
5
|
+
"clubs",
|
|
6
|
+
"festivals",
|
|
7
|
+
"concerts",
|
|
8
|
+
"cityfestivals",
|
|
9
|
+
];
|
|
10
|
+
/** @deprecated Use LOCATION_TYPE_SLUGS instead */
|
|
2
11
|
export const LOCATION_TYPE_MAPPING = {
|
|
3
12
|
Bar: "bars",
|
|
4
13
|
Outdoor: "outdoor",
|
|
@@ -7,7 +16,7 @@ export const LOCATION_TYPE_MAPPING = {
|
|
|
7
16
|
Concert: "concerts",
|
|
8
17
|
"City Festival": "cityfestivals",
|
|
9
18
|
};
|
|
10
|
-
/** @deprecated Use
|
|
19
|
+
/** @deprecated Use LOCATION_TYPE_SLUGS instead */
|
|
11
20
|
export const LOCATION_TYPE_TO_SLUG_MAPPING = LOCATION_TYPE_MAPPING;
|
|
12
21
|
// Array of all possible location highlight slugs - single source of truth
|
|
13
22
|
export const LOCATION_HIGHLIGHT_SLUGS = [
|