@timardex/cluemart-shared 1.6.130 → 1.7.1
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/ad-BUYzE6zx.d.ts +181 -0
- package/dist/ad-BhLoEul3.d.mts +181 -0
- package/dist/affiliate-BbtjeUP4.d.mts +73 -0
- package/dist/affiliate-C51nzKsw.d.ts +73 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +951 -2546
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +30 -28
- package/dist/auth/index.d.ts +30 -28
- package/dist/auth/index.mjs +25 -24
- package/dist/auth/index.mjs.map +1 -1
- package/dist/chunk-32MKHJTX.mjs +1207 -0
- package/dist/chunk-32MKHJTX.mjs.map +1 -0
- package/dist/chunk-AYO3E4DM.mjs +224 -0
- package/dist/chunk-AYO3E4DM.mjs.map +1 -0
- package/dist/chunk-BIJ5NDXW.mjs +962 -0
- package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/chunk-ILILH7E2.mjs +219 -0
- package/dist/chunk-ILILH7E2.mjs.map +1 -0
- package/dist/{chunk-OHHJ3KJJ.mjs → chunk-LBEJECG3.mjs} +64 -71
- package/dist/chunk-LBEJECG3.mjs.map +1 -0
- package/dist/chunk-NPFJ2CN2.mjs +109 -0
- package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
- package/dist/chunk-R6PCFOYO.mjs +3650 -0
- package/dist/chunk-R6PCFOYO.mjs.map +1 -0
- package/dist/{chunk-NWWKI4PJ.mjs → chunk-SD42WIMV.mjs} +5 -5
- package/dist/chunk-SD42WIMV.mjs.map +1 -0
- package/dist/chunk-VA5YN2K3.mjs +48 -0
- package/dist/chunk-VA5YN2K3.mjs.map +1 -0
- package/dist/{chunk-DATBGC2K.mjs → chunk-VPANTTZI.mjs} +23 -108
- package/dist/chunk-VPANTTZI.mjs.map +1 -0
- package/dist/chunk-X3OLM35T.mjs +278 -0
- package/dist/chunk-X3OLM35T.mjs.map +1 -0
- package/dist/contactUs--NoohZBu.d.ts +11 -0
- package/dist/contactUs-CBWzefUS.d.mts +11 -0
- package/dist/enums/index.cjs +229 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +170 -5
- package/dist/enums/index.d.ts +170 -5
- package/dist/enums/index.mjs +41 -1
- package/dist/formFields/index.cjs +112 -284
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -4
- package/dist/formFields/index.d.ts +2 -4
- package/dist/formFields/index.mjs +50 -919
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-CUYYxpy2.d.ts +699 -0
- package/dist/global-DePDtOFt.d.mts +699 -0
- package/dist/graphql/index.cjs +2304 -2872
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +469 -422
- package/dist/graphql/index.d.ts +469 -422
- package/dist/graphql/index.mjs +160 -2547
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3869 -534
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +9 -10
- package/dist/hooks/index.d.ts +9 -10
- package/dist/hooks/index.mjs +72 -54
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +21 -86
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4477 -5723
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1679 -2539
- package/dist/index.d.ts +1679 -2539
- package/dist/index.mjs +4453 -5682
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +2 -3
- package/dist/map/index.d.ts +2 -3
- package/dist/resourceActivities-CMUcn2P7.d.ts +130 -0
- package/dist/resourceActivities-CwbJFGIp.d.mts +130 -0
- package/dist/sharing/index.cjs +19 -23
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +3 -16
- package/dist/sharing/index.d.ts +3 -16
- package/dist/sharing/index.mjs +29 -183
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/theme/index.mjs +5 -41
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +123 -868
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +15 -234
- package/dist/types/index.d.ts +15 -234
- package/dist/types/index.mjs +31 -61
- package/dist/user-D47MLFyH.d.ts +134 -0
- package/dist/user-DE8edl3u.d.mts +134 -0
- package/dist/utils/index.cjs +117 -292
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +23 -25
- package/dist/utils/index.d.ts +23 -25
- package/dist/utils/index.mjs +5 -6
- package/package.json +3 -10
- package/dist/affiliate-Bqqlffw8.d.mts +0 -36
- package/dist/affiliate-Btlp5XUp.d.ts +0 -36
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
- package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
- package/dist/auth-BOmAO53v.d.ts +0 -169
- package/dist/auth-CsITA95p.d.mts +0 -169
- package/dist/chunk-DATBGC2K.mjs.map +0 -1
- package/dist/chunk-DDHECBJR.mjs +0 -726
- package/dist/chunk-DDHECBJR.mjs.map +0 -1
- package/dist/chunk-INQCDU24.mjs +0 -139
- package/dist/chunk-INQCDU24.mjs.map +0 -1
- package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
- package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
- package/dist/chunk-TOEFAEF2.mjs +0 -69
- package/dist/chunk-TOEFAEF2.mjs.map +0 -1
- package/dist/chunk-UKW7NZEQ.mjs +0 -2813
- package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
- package/dist/dailyClue-C6WXY73z.d.mts +0 -105
- package/dist/dailyClue-C6WXY73z.d.ts +0 -105
- package/dist/event-C9K7CSg4.d.ts +0 -53
- package/dist/event-W0NhL5Cd.d.mts +0 -53
- package/dist/global-BbSFfYdd.d.ts +0 -181
- package/dist/global-C6v9tRji.d.mts +0 -181
- package/dist/graphql-CDOfA79A.d.ts +0 -1253
- package/dist/graphql-CcvzTs9k.d.mts +0 -1253
- package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
- package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
- package/dist/subscription-Cj_qBA7u.d.mts +0 -20
- package/dist/subscription-OiJ50uJb.d.ts +0 -20
- package/dist/vendor-DmMi2qmx.d.mts +0 -73
- package/dist/vendor-M9hVZlni.d.ts +0 -73
package/dist/map/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as Region } from '../global-DePDtOFt.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
|
-
import '../
|
|
4
|
-
import '../images/index.mjs';
|
|
3
|
+
import '../enums/index.mjs';
|
|
5
4
|
|
|
6
5
|
/** NZ map boundaries for clamping / full-country framing. */
|
|
7
6
|
declare const NZ_MAP_BOUNDARIES: {
|
package/dist/map/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as Region } from '../global-CUYYxpy2.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
|
-
import '../
|
|
4
|
-
import '../images/index.js';
|
|
3
|
+
import '../enums/index.js';
|
|
5
4
|
|
|
6
5
|
/** NZ map boundaries for clamping / full-country framing. */
|
|
7
6
|
declare const NZ_MAP_BOUNDARIES: {
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EnumResourceType, EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.js';
|
|
2
|
+
import { a5 as LocationGeoType } from './global-CUYYxpy2.js';
|
|
3
|
+
|
|
4
|
+
interface AdminUpdateResourceType {
|
|
5
|
+
active: boolean;
|
|
6
|
+
resourceId: string;
|
|
7
|
+
resourceType: EnumResourceType;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ParticipantType = {
|
|
11
|
+
active: boolean;
|
|
12
|
+
userAvatar: string | null;
|
|
13
|
+
userEmail: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
userName: string;
|
|
16
|
+
};
|
|
17
|
+
interface ChatMessageInput {
|
|
18
|
+
content: string;
|
|
19
|
+
replyToMessageId?: string | null;
|
|
20
|
+
senderId: string;
|
|
21
|
+
}
|
|
22
|
+
type ChatMessageReplyPreview = {
|
|
23
|
+
senderId: string;
|
|
24
|
+
senderName: string;
|
|
25
|
+
contentPreview: string;
|
|
26
|
+
};
|
|
27
|
+
type ChatMessageReaction = {
|
|
28
|
+
userId: string;
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
};
|
|
31
|
+
type ChatMessageSeen = {
|
|
32
|
+
userId: string;
|
|
33
|
+
seenAt: Date;
|
|
34
|
+
};
|
|
35
|
+
interface ChatMessageType {
|
|
36
|
+
_id?: string;
|
|
37
|
+
content: string;
|
|
38
|
+
createdAt?: Date;
|
|
39
|
+
replyToMessageId?: string | null;
|
|
40
|
+
replyPreview?: ChatMessageReplyPreview | null;
|
|
41
|
+
likedBy?: ChatMessageReaction[];
|
|
42
|
+
senderId: string;
|
|
43
|
+
seenBy?: ChatMessageSeen[];
|
|
44
|
+
updatedAt?: Date;
|
|
45
|
+
}
|
|
46
|
+
interface ChatType {
|
|
47
|
+
_id: string;
|
|
48
|
+
active: boolean;
|
|
49
|
+
chatDescription?: string | null;
|
|
50
|
+
chatName: string;
|
|
51
|
+
chatType: EnumChatType;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
deletedAt: Date | null;
|
|
54
|
+
messages: ChatMessageType[];
|
|
55
|
+
participants: ParticipantType[];
|
|
56
|
+
region: string | null;
|
|
57
|
+
updatedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
interface ReportChatUser {
|
|
60
|
+
_id: string;
|
|
61
|
+
chatId: string;
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
reason: {
|
|
64
|
+
reasonType: EnumChatReportReason;
|
|
65
|
+
details: string | null;
|
|
66
|
+
};
|
|
67
|
+
reportedUserId: string;
|
|
68
|
+
reporterUserId: string;
|
|
69
|
+
resolved: boolean;
|
|
70
|
+
updatedAt: Date | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface NotificationDataType {
|
|
74
|
+
resourceId: string;
|
|
75
|
+
resourceName: string;
|
|
76
|
+
resourceType: EnumNotificationResourceType;
|
|
77
|
+
}
|
|
78
|
+
type NotificationType = {
|
|
79
|
+
_id: string;
|
|
80
|
+
userId: string;
|
|
81
|
+
title: string;
|
|
82
|
+
message: string;
|
|
83
|
+
isRead: boolean;
|
|
84
|
+
type: EnumNotificationType;
|
|
85
|
+
data: NotificationDataType | null;
|
|
86
|
+
createdAt: Date;
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
};
|
|
89
|
+
type NotificationCount = {
|
|
90
|
+
total: number;
|
|
91
|
+
unread: number;
|
|
92
|
+
};
|
|
93
|
+
type CreateBulkNotificationInput = {
|
|
94
|
+
data: NotificationDataType | null;
|
|
95
|
+
message: string;
|
|
96
|
+
title: string;
|
|
97
|
+
type: EnumNotificationType;
|
|
98
|
+
userIds: string[];
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
declare enum EnumActivity {
|
|
102
|
+
FAVORITE = "FAVORITE",
|
|
103
|
+
GOING = "GOING",
|
|
104
|
+
INTERESTED = "INTERESTED",
|
|
105
|
+
PRESENT = "PRESENT",
|
|
106
|
+
VIEW = "VIEW"
|
|
107
|
+
}
|
|
108
|
+
type ResourceActivityEntry = {
|
|
109
|
+
activityType: EnumActivity;
|
|
110
|
+
location: LocationGeoType | null;
|
|
111
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
112
|
+
startDate?: string | null;
|
|
113
|
+
startTime?: string | null;
|
|
114
|
+
timestamp: Date;
|
|
115
|
+
userAgent: EnumOSPlatform;
|
|
116
|
+
userId?: string | null;
|
|
117
|
+
};
|
|
118
|
+
type ResourceActivityType = {
|
|
119
|
+
_id: string;
|
|
120
|
+
resourceType: EnumResourceType;
|
|
121
|
+
resourceId: string;
|
|
122
|
+
activity: ResourceActivityEntry[];
|
|
123
|
+
};
|
|
124
|
+
type ResourceActivityInputType = {
|
|
125
|
+
resourceId: string;
|
|
126
|
+
resourceType: EnumResourceType;
|
|
127
|
+
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { type AdminUpdateResourceType as A, type ChatType as C, EnumActivity as E, type NotificationType as N, type ParticipantType as P, type ReportChatUser as R, type NotificationCount as a, type ResourceActivityType as b, type ChatMessageInput as c, type ChatMessageReaction as d, type ChatMessageReplyPreview as e, type ChatMessageSeen as f, type ChatMessageType as g, type CreateBulkNotificationInput as h, type NotificationDataType as i, type ResourceActivityEntry as j, type ResourceActivityInputType as k };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EnumResourceType, EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.mjs';
|
|
2
|
+
import { a5 as LocationGeoType } from './global-DePDtOFt.mjs';
|
|
3
|
+
|
|
4
|
+
interface AdminUpdateResourceType {
|
|
5
|
+
active: boolean;
|
|
6
|
+
resourceId: string;
|
|
7
|
+
resourceType: EnumResourceType;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ParticipantType = {
|
|
11
|
+
active: boolean;
|
|
12
|
+
userAvatar: string | null;
|
|
13
|
+
userEmail: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
userName: string;
|
|
16
|
+
};
|
|
17
|
+
interface ChatMessageInput {
|
|
18
|
+
content: string;
|
|
19
|
+
replyToMessageId?: string | null;
|
|
20
|
+
senderId: string;
|
|
21
|
+
}
|
|
22
|
+
type ChatMessageReplyPreview = {
|
|
23
|
+
senderId: string;
|
|
24
|
+
senderName: string;
|
|
25
|
+
contentPreview: string;
|
|
26
|
+
};
|
|
27
|
+
type ChatMessageReaction = {
|
|
28
|
+
userId: string;
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
};
|
|
31
|
+
type ChatMessageSeen = {
|
|
32
|
+
userId: string;
|
|
33
|
+
seenAt: Date;
|
|
34
|
+
};
|
|
35
|
+
interface ChatMessageType {
|
|
36
|
+
_id?: string;
|
|
37
|
+
content: string;
|
|
38
|
+
createdAt?: Date;
|
|
39
|
+
replyToMessageId?: string | null;
|
|
40
|
+
replyPreview?: ChatMessageReplyPreview | null;
|
|
41
|
+
likedBy?: ChatMessageReaction[];
|
|
42
|
+
senderId: string;
|
|
43
|
+
seenBy?: ChatMessageSeen[];
|
|
44
|
+
updatedAt?: Date;
|
|
45
|
+
}
|
|
46
|
+
interface ChatType {
|
|
47
|
+
_id: string;
|
|
48
|
+
active: boolean;
|
|
49
|
+
chatDescription?: string | null;
|
|
50
|
+
chatName: string;
|
|
51
|
+
chatType: EnumChatType;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
deletedAt: Date | null;
|
|
54
|
+
messages: ChatMessageType[];
|
|
55
|
+
participants: ParticipantType[];
|
|
56
|
+
region: string | null;
|
|
57
|
+
updatedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
interface ReportChatUser {
|
|
60
|
+
_id: string;
|
|
61
|
+
chatId: string;
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
reason: {
|
|
64
|
+
reasonType: EnumChatReportReason;
|
|
65
|
+
details: string | null;
|
|
66
|
+
};
|
|
67
|
+
reportedUserId: string;
|
|
68
|
+
reporterUserId: string;
|
|
69
|
+
resolved: boolean;
|
|
70
|
+
updatedAt: Date | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface NotificationDataType {
|
|
74
|
+
resourceId: string;
|
|
75
|
+
resourceName: string;
|
|
76
|
+
resourceType: EnumNotificationResourceType;
|
|
77
|
+
}
|
|
78
|
+
type NotificationType = {
|
|
79
|
+
_id: string;
|
|
80
|
+
userId: string;
|
|
81
|
+
title: string;
|
|
82
|
+
message: string;
|
|
83
|
+
isRead: boolean;
|
|
84
|
+
type: EnumNotificationType;
|
|
85
|
+
data: NotificationDataType | null;
|
|
86
|
+
createdAt: Date;
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
};
|
|
89
|
+
type NotificationCount = {
|
|
90
|
+
total: number;
|
|
91
|
+
unread: number;
|
|
92
|
+
};
|
|
93
|
+
type CreateBulkNotificationInput = {
|
|
94
|
+
data: NotificationDataType | null;
|
|
95
|
+
message: string;
|
|
96
|
+
title: string;
|
|
97
|
+
type: EnumNotificationType;
|
|
98
|
+
userIds: string[];
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
declare enum EnumActivity {
|
|
102
|
+
FAVORITE = "FAVORITE",
|
|
103
|
+
GOING = "GOING",
|
|
104
|
+
INTERESTED = "INTERESTED",
|
|
105
|
+
PRESENT = "PRESENT",
|
|
106
|
+
VIEW = "VIEW"
|
|
107
|
+
}
|
|
108
|
+
type ResourceActivityEntry = {
|
|
109
|
+
activityType: EnumActivity;
|
|
110
|
+
location: LocationGeoType | null;
|
|
111
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
112
|
+
startDate?: string | null;
|
|
113
|
+
startTime?: string | null;
|
|
114
|
+
timestamp: Date;
|
|
115
|
+
userAgent: EnumOSPlatform;
|
|
116
|
+
userId?: string | null;
|
|
117
|
+
};
|
|
118
|
+
type ResourceActivityType = {
|
|
119
|
+
_id: string;
|
|
120
|
+
resourceType: EnumResourceType;
|
|
121
|
+
resourceId: string;
|
|
122
|
+
activity: ResourceActivityEntry[];
|
|
123
|
+
};
|
|
124
|
+
type ResourceActivityInputType = {
|
|
125
|
+
resourceId: string;
|
|
126
|
+
resourceType: EnumResourceType;
|
|
127
|
+
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { type AdminUpdateResourceType as A, type ChatType as C, EnumActivity as E, type NotificationType as N, type ParticipantType as P, type ReportChatUser as R, type NotificationCount as a, type ResourceActivityType as b, type ChatMessageInput as c, type ChatMessageReaction as d, type ChatMessageReplyPreview as e, type ChatMessageSeen as f, type ChatMessageType as g, type CreateBulkNotificationInput as h, type NotificationDataType as i, type ResourceActivityEntry as j, type ResourceActivityInputType as k };
|
package/dist/sharing/index.cjs
CHANGED
|
@@ -110,21 +110,21 @@ var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
|
110
110
|
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
111
111
|
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
|
|
112
112
|
|
|
113
|
-
// src/
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
return
|
|
127
|
-
})(
|
|
113
|
+
// src/enums/index.ts
|
|
114
|
+
var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
|
|
115
|
+
EnumEventDateStatus2["STARTING_SOON"] = "Starting_Soon";
|
|
116
|
+
EnumEventDateStatus2["STARTED"] = "Started";
|
|
117
|
+
EnumEventDateStatus2["TODAY"] = "Today";
|
|
118
|
+
EnumEventDateStatus2["TOMORROW"] = "Tomorrow";
|
|
119
|
+
EnumEventDateStatus2["THIS_WEEK"] = "This_Week";
|
|
120
|
+
EnumEventDateStatus2["NEXT_WEEK"] = "Next_Week";
|
|
121
|
+
EnumEventDateStatus2["UPCOMING"] = "Upcoming";
|
|
122
|
+
EnumEventDateStatus2["ENDED"] = "Ended";
|
|
123
|
+
EnumEventDateStatus2["RE_SCHEDULED"] = "Rescheduled";
|
|
124
|
+
EnumEventDateStatus2["CANCELED"] = "Canceled";
|
|
125
|
+
EnumEventDateStatus2["INVALID"] = "Invalid";
|
|
126
|
+
return EnumEventDateStatus2;
|
|
127
|
+
})(EnumEventDateStatus || {});
|
|
128
128
|
|
|
129
129
|
// src/utils/mapArrayToOptions.ts
|
|
130
130
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
@@ -156,9 +156,9 @@ var formatDate = (dateStr, display = "datetime", timeStr) => {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
var futureTimePeriods = mapArrayToOptions(
|
|
159
|
-
Object.values(
|
|
159
|
+
Object.values(EnumEventDateStatus)
|
|
160
160
|
).filter(
|
|
161
|
-
(period) => period.value !== "Starting_Soon" /*
|
|
161
|
+
(period) => period.value !== "Starting_Soon" /* STARTING_SOON */ && period.value !== "Canceled" /* CANCELED */ && period.value !== "Rescheduled" /* RE_SCHEDULED */ && period.value !== "Started" /* STARTED */ && period.value !== "Ended" /* ENDED */ && period.value !== "Invalid" /* INVALID */
|
|
162
162
|
).map((period) => ({
|
|
163
163
|
label: period.value.replaceAll("_", " "),
|
|
164
164
|
value: period.value
|
|
@@ -233,9 +233,7 @@ function isPostShareResourceType(resourceType) {
|
|
|
233
233
|
|
|
234
234
|
// src/sharing/formatCategoryLabel.ts
|
|
235
235
|
function formatCategoryLabel(category) {
|
|
236
|
-
const subcategoryNames =
|
|
237
|
-
(subcategory) => Boolean(subcategory)
|
|
238
|
-
).map((subcategory) => subcategory.name).filter((name) => Boolean(name));
|
|
236
|
+
const subcategoryNames = category.subcategories.map((subcategory) => subcategory.name).filter(Boolean);
|
|
239
237
|
if (subcategoryNames.length === 0) {
|
|
240
238
|
return category.name;
|
|
241
239
|
}
|
|
@@ -339,9 +337,7 @@ function buildInvitationShareDescription(event, eventInfo) {
|
|
|
339
337
|
const sections = [
|
|
340
338
|
event.location.fullAddress,
|
|
341
339
|
formatShareRainOrShineLine(event.rainOrShine),
|
|
342
|
-
formatShareTagsSection(
|
|
343
|
-
(event.tags ?? []).filter((tag) => tag != null && tag !== "")
|
|
344
|
-
),
|
|
340
|
+
formatShareTagsSection(event.tags),
|
|
345
341
|
formatShareInvitationMarketDatesSection(eventInfo.dateTime),
|
|
346
342
|
formatShareInvitationApplicationDeadlineLine(
|
|
347
343
|
eventInfo.applicationDeadlineHours
|