@qrush/types 2.1.18 → 2.1.20
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/README.md +6 -0
- package/dist/Common.d.ts +5 -3
- package/dist/Common.js +42 -42
- package/dist/Events.d.ts +7 -2
- package/dist/Location.d.ts +10 -5
- package/dist/Location.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/Common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GeoPoint } from
|
|
1
|
+
import type { GeoPoint } from "@firebase/firestore";
|
|
2
2
|
export type PaymentMethod = "Card" | "Cash";
|
|
3
3
|
export type Features = {
|
|
4
4
|
isAccessible: boolean;
|
|
@@ -17,7 +17,7 @@ export type Features = {
|
|
|
17
17
|
paymentMethods: PaymentMethod[];
|
|
18
18
|
};
|
|
19
19
|
export interface DeviceInfo {
|
|
20
|
-
platform:
|
|
20
|
+
platform: "ios" | "android" | "web";
|
|
21
21
|
appVersion?: string;
|
|
22
22
|
}
|
|
23
23
|
export type Address = {
|
|
@@ -29,12 +29,14 @@ export type Address = {
|
|
|
29
29
|
state?: string;
|
|
30
30
|
country?: string;
|
|
31
31
|
};
|
|
32
|
+
export type SupportedLanguage = "de" | "en" | "es";
|
|
33
|
+
export type TranslationMap = Partial<Record<SupportedLanguage, string>>;
|
|
32
34
|
export type Location = {
|
|
33
35
|
address: Address;
|
|
34
36
|
geopoint: GeoPoint;
|
|
35
37
|
};
|
|
36
38
|
/** @deprecated Use EventCategorySlug instead */
|
|
37
|
-
export type EventCategory =
|
|
39
|
+
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";
|
|
38
40
|
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
41
|
export type EventCategorySlug = (typeof EVENT_CATEGORY_SLUGS)[number];
|
|
40
42
|
/** @deprecated Use EventCategorySlug instead */
|
package/dist/Common.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
// Array of all possible event category slugs - single source of truth
|
|
2
2
|
export const EVENT_CATEGORY_SLUGS = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
24
|
];
|
|
25
25
|
// Array of all possible event categories for UI rendering
|
|
26
26
|
/** @deprecated Use EventCategorySlug instead */
|
|
27
27
|
export const eventCategories = [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
28
|
+
"Clubnight",
|
|
29
|
+
"Concert",
|
|
30
|
+
"Party",
|
|
31
|
+
"Festival",
|
|
32
|
+
"Open-Air",
|
|
33
|
+
"Rave",
|
|
34
|
+
"Live-Musik",
|
|
35
|
+
"Comedy",
|
|
36
|
+
"Karaoke",
|
|
37
|
+
"Quiz-Night",
|
|
38
|
+
"Open-Mic",
|
|
39
|
+
"Pub-Crawl",
|
|
40
|
+
"LGBTQ+",
|
|
41
|
+
"Drag-Show",
|
|
42
|
+
"Speed-Dating",
|
|
43
|
+
"Burlesque-Show",
|
|
44
|
+
"After-Work",
|
|
45
|
+
"Bar-Event",
|
|
46
|
+
"Stadtfest",
|
|
47
|
+
"Bootsparty",
|
|
48
|
+
"Bingo",
|
|
49
49
|
];
|
|
50
50
|
// Add any other types that are commonly shared across your data definitions.
|
|
51
51
|
// For example, if IFireMetaPossibleTags or FireQueryDocSnapshotRef are used broadly,
|
package/dist/Events.d.ts
CHANGED
|
@@ -3,15 +3,20 @@ import { FireQueryDocSnapshotRef } from "./CustomDocType.js";
|
|
|
3
3
|
import { IFireMetaPossibleTags } from "./Meta.js";
|
|
4
4
|
import musicGenres from "./Genres.js";
|
|
5
5
|
import { LocationTypeArray, LocationTypeSlugArray } from "./Location.js";
|
|
6
|
-
import { Features, Location, EventCategory, EventCategorySlug } from "./Common.js";
|
|
6
|
+
import { Features, Location, EventCategory, EventCategorySlug, TranslationMap, SupportedLanguage } from "./Common.js";
|
|
7
7
|
import { PromotionTeaser } from "./Promotion.js";
|
|
8
8
|
export { EventCategory, EventCategorySlug, eventCategories, Features, Location, } from "./Common.js";
|
|
9
9
|
export interface IFireEvent {
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
12
|
nameSlug: string;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use descriptionMarkdown instead
|
|
15
|
+
*/
|
|
13
16
|
description?: string;
|
|
14
17
|
descriptionMarkdown?: string | undefined;
|
|
18
|
+
primaryLang?: SupportedLanguage;
|
|
19
|
+
descriptionTranslations?: TranslationMap;
|
|
15
20
|
imageURI: string;
|
|
16
21
|
mapsImageURI?: string | undefined;
|
|
17
22
|
eventGallery?: string[];
|
|
@@ -88,7 +93,7 @@ export type FireGuestSnapshotRef = FireQueryDocSnapshotRef<IFireGuest>;
|
|
|
88
93
|
export interface EventPermission {
|
|
89
94
|
eventId: string;
|
|
90
95
|
userId: string;
|
|
91
|
-
permissionType:
|
|
96
|
+
permissionType: "event";
|
|
92
97
|
userName: string;
|
|
93
98
|
userEmail: string;
|
|
94
99
|
isOwner: boolean;
|
package/dist/Location.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FireQueryDocSnapshotRef } from "./CustomDocType.js";
|
|
2
|
-
import { Location as BaseLocation, EventCategorySlug, Features } from "./Common.js";
|
|
2
|
+
import { Location as BaseLocation, EventCategorySlug, Features, SupportedLanguage, TranslationMap } from "./Common.js";
|
|
3
3
|
import { PromotionTeaser } from "./Promotion.js";
|
|
4
4
|
/** @deprecated Use locationTypeSlug instead */
|
|
5
5
|
export declare const LOCATION_TYPE_MAPPING: {
|
|
@@ -47,12 +47,20 @@ export type DaySchedule = {
|
|
|
47
47
|
eventStart?: TimeFormat;
|
|
48
48
|
eventEnd?: TimeFormat;
|
|
49
49
|
};
|
|
50
|
+
export type CommunityNote = {
|
|
51
|
+
title: string;
|
|
52
|
+
titleTranslations?: TranslationMap;
|
|
53
|
+
content: string;
|
|
54
|
+
contentTranslations?: TranslationMap;
|
|
55
|
+
};
|
|
50
56
|
export type IFireLocation = {
|
|
51
57
|
id: string;
|
|
52
58
|
title: string;
|
|
53
59
|
titleSlug: string;
|
|
54
60
|
isPremium: boolean;
|
|
55
61
|
description: string;
|
|
62
|
+
primaryLang?: SupportedLanguage;
|
|
63
|
+
descriptionTranslations?: TranslationMap;
|
|
56
64
|
imageUrl: string;
|
|
57
65
|
galleryImageUrls: string[];
|
|
58
66
|
venueType?: VenueType;
|
|
@@ -64,10 +72,7 @@ export type IFireLocation = {
|
|
|
64
72
|
highlights?: string;
|
|
65
73
|
locationHighlights?: LocationHighlightSlug[];
|
|
66
74
|
eventCategories?: EventCategorySlug[];
|
|
67
|
-
communityNote?:
|
|
68
|
-
title: string;
|
|
69
|
-
content: string;
|
|
70
|
-
};
|
|
75
|
+
communityNote?: CommunityNote;
|
|
71
76
|
features: Features;
|
|
72
77
|
openingHours: {
|
|
73
78
|
monday?: {
|
package/dist/Location.js
CHANGED