@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.
Files changed (129) hide show
  1. package/dist/ad-BUYzE6zx.d.ts +181 -0
  2. package/dist/ad-BhLoEul3.d.mts +181 -0
  3. package/dist/affiliate-BbtjeUP4.d.mts +73 -0
  4. package/dist/affiliate-C51nzKsw.d.ts +73 -0
  5. package/dist/apollo/index.d.mts +3 -3
  6. package/dist/apollo/index.d.ts +3 -3
  7. package/dist/auth/index.cjs +951 -2546
  8. package/dist/auth/index.cjs.map +1 -1
  9. package/dist/auth/index.d.mts +30 -28
  10. package/dist/auth/index.d.ts +30 -28
  11. package/dist/auth/index.mjs +25 -24
  12. package/dist/auth/index.mjs.map +1 -1
  13. package/dist/chunk-32MKHJTX.mjs +1207 -0
  14. package/dist/chunk-32MKHJTX.mjs.map +1 -0
  15. package/dist/chunk-AYO3E4DM.mjs +224 -0
  16. package/dist/chunk-AYO3E4DM.mjs.map +1 -0
  17. package/dist/chunk-BIJ5NDXW.mjs +962 -0
  18. package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
  19. package/dist/chunk-DQ7ZHIXW.mjs +26 -0
  20. package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
  21. package/dist/chunk-ILILH7E2.mjs +219 -0
  22. package/dist/chunk-ILILH7E2.mjs.map +1 -0
  23. package/dist/{chunk-OHHJ3KJJ.mjs → chunk-LBEJECG3.mjs} +64 -71
  24. package/dist/chunk-LBEJECG3.mjs.map +1 -0
  25. package/dist/chunk-NPFJ2CN2.mjs +109 -0
  26. package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
  27. package/dist/chunk-R6PCFOYO.mjs +3650 -0
  28. package/dist/chunk-R6PCFOYO.mjs.map +1 -0
  29. package/dist/{chunk-NWWKI4PJ.mjs → chunk-SD42WIMV.mjs} +5 -5
  30. package/dist/chunk-SD42WIMV.mjs.map +1 -0
  31. package/dist/chunk-VA5YN2K3.mjs +48 -0
  32. package/dist/chunk-VA5YN2K3.mjs.map +1 -0
  33. package/dist/{chunk-DATBGC2K.mjs → chunk-VPANTTZI.mjs} +23 -108
  34. package/dist/chunk-VPANTTZI.mjs.map +1 -0
  35. package/dist/chunk-X3OLM35T.mjs +278 -0
  36. package/dist/chunk-X3OLM35T.mjs.map +1 -0
  37. package/dist/contactUs--NoohZBu.d.ts +11 -0
  38. package/dist/contactUs-CBWzefUS.d.mts +11 -0
  39. package/dist/enums/index.cjs +229 -2
  40. package/dist/enums/index.cjs.map +1 -1
  41. package/dist/enums/index.d.mts +170 -5
  42. package/dist/enums/index.d.ts +170 -5
  43. package/dist/enums/index.mjs +41 -1
  44. package/dist/formFields/index.cjs +112 -284
  45. package/dist/formFields/index.cjs.map +1 -1
  46. package/dist/formFields/index.d.mts +2 -4
  47. package/dist/formFields/index.d.ts +2 -4
  48. package/dist/formFields/index.mjs +50 -919
  49. package/dist/formFields/index.mjs.map +1 -1
  50. package/dist/global-CUYYxpy2.d.ts +699 -0
  51. package/dist/global-DePDtOFt.d.mts +699 -0
  52. package/dist/graphql/index.cjs +2304 -2872
  53. package/dist/graphql/index.cjs.map +1 -1
  54. package/dist/graphql/index.d.mts +469 -422
  55. package/dist/graphql/index.d.ts +469 -422
  56. package/dist/graphql/index.mjs +160 -2547
  57. package/dist/graphql/index.mjs.map +1 -1
  58. package/dist/hooks/index.cjs +3869 -534
  59. package/dist/hooks/index.cjs.map +1 -1
  60. package/dist/hooks/index.d.mts +9 -10
  61. package/dist/hooks/index.d.ts +9 -10
  62. package/dist/hooks/index.mjs +72 -54
  63. package/dist/hooks/index.mjs.map +1 -1
  64. package/dist/images/index.mjs +21 -86
  65. package/dist/images/index.mjs.map +1 -1
  66. package/dist/index.cjs +4477 -5723
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.mts +1679 -2539
  69. package/dist/index.d.ts +1679 -2539
  70. package/dist/index.mjs +4453 -5682
  71. package/dist/index.mjs.map +1 -1
  72. package/dist/map/index.d.mts +2 -3
  73. package/dist/map/index.d.ts +2 -3
  74. package/dist/resourceActivities-CMUcn2P7.d.ts +130 -0
  75. package/dist/resourceActivities-CwbJFGIp.d.mts +130 -0
  76. package/dist/sharing/index.cjs +19 -23
  77. package/dist/sharing/index.cjs.map +1 -1
  78. package/dist/sharing/index.d.mts +3 -16
  79. package/dist/sharing/index.d.ts +3 -16
  80. package/dist/sharing/index.mjs +29 -183
  81. package/dist/sharing/index.mjs.map +1 -1
  82. package/dist/subscription-BU8GvH2K.d.ts +12 -0
  83. package/dist/subscription-bmAdrnfi.d.mts +12 -0
  84. package/dist/theme/index.mjs +5 -41
  85. package/dist/theme/index.mjs.map +1 -1
  86. package/dist/types/index.cjs +123 -868
  87. package/dist/types/index.cjs.map +1 -1
  88. package/dist/types/index.d.mts +15 -234
  89. package/dist/types/index.d.ts +15 -234
  90. package/dist/types/index.mjs +31 -61
  91. package/dist/user-D47MLFyH.d.ts +134 -0
  92. package/dist/user-DE8edl3u.d.mts +134 -0
  93. package/dist/utils/index.cjs +117 -292
  94. package/dist/utils/index.cjs.map +1 -1
  95. package/dist/utils/index.d.mts +23 -25
  96. package/dist/utils/index.d.ts +23 -25
  97. package/dist/utils/index.mjs +5 -6
  98. package/package.json +3 -10
  99. package/dist/affiliate-Bqqlffw8.d.mts +0 -36
  100. package/dist/affiliate-Btlp5XUp.d.ts +0 -36
  101. package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
  102. package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
  103. package/dist/auth-BOmAO53v.d.ts +0 -169
  104. package/dist/auth-CsITA95p.d.mts +0 -169
  105. package/dist/chunk-DATBGC2K.mjs.map +0 -1
  106. package/dist/chunk-DDHECBJR.mjs +0 -726
  107. package/dist/chunk-DDHECBJR.mjs.map +0 -1
  108. package/dist/chunk-INQCDU24.mjs +0 -139
  109. package/dist/chunk-INQCDU24.mjs.map +0 -1
  110. package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
  111. package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
  112. package/dist/chunk-TOEFAEF2.mjs +0 -69
  113. package/dist/chunk-TOEFAEF2.mjs.map +0 -1
  114. package/dist/chunk-UKW7NZEQ.mjs +0 -2813
  115. package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
  116. package/dist/dailyClue-C6WXY73z.d.mts +0 -105
  117. package/dist/dailyClue-C6WXY73z.d.ts +0 -105
  118. package/dist/event-C9K7CSg4.d.ts +0 -53
  119. package/dist/event-W0NhL5Cd.d.mts +0 -53
  120. package/dist/global-BbSFfYdd.d.ts +0 -181
  121. package/dist/global-C6v9tRji.d.mts +0 -181
  122. package/dist/graphql-CDOfA79A.d.ts +0 -1253
  123. package/dist/graphql-CcvzTs9k.d.mts +0 -1253
  124. package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
  125. package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
  126. package/dist/subscription-Cj_qBA7u.d.mts +0 -20
  127. package/dist/subscription-OiJ50uJb.d.ts +0 -20
  128. package/dist/vendor-DmMi2qmx.d.mts +0 -73
  129. package/dist/vendor-M9hVZlni.d.ts +0 -73
@@ -1,7 +1,6 @@
1
- import { b as Region } from '../global-C6v9tRji.mjs';
1
+ import { y as Region } from '../global-DePDtOFt.mjs';
2
2
  import 'react-hook-form';
3
- import '../graphql-CcvzTs9k.mjs';
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: {
@@ -1,7 +1,6 @@
1
- import { b as Region } from '../global-BbSFfYdd.js';
1
+ import { y as Region } from '../global-CUYYxpy2.js';
2
2
  import 'react-hook-form';
3
- import '../graphql-CDOfA79A.js';
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 };
@@ -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/generated/graphql.ts
114
- var EventDateStatusEnumType = /* @__PURE__ */ ((EventDateStatusEnumType2) => {
115
- EventDateStatusEnumType2["Canceled"] = "Canceled";
116
- EventDateStatusEnumType2["Ended"] = "Ended";
117
- EventDateStatusEnumType2["Invalid"] = "Invalid";
118
- EventDateStatusEnumType2["NextWeek"] = "Next_Week";
119
- EventDateStatusEnumType2["Rescheduled"] = "Rescheduled";
120
- EventDateStatusEnumType2["Started"] = "Started";
121
- EventDateStatusEnumType2["StartingSoon"] = "Starting_Soon";
122
- EventDateStatusEnumType2["ThisWeek"] = "This_Week";
123
- EventDateStatusEnumType2["Today"] = "Today";
124
- EventDateStatusEnumType2["Tomorrow"] = "Tomorrow";
125
- EventDateStatusEnumType2["Upcoming"] = "Upcoming";
126
- return EventDateStatusEnumType2;
127
- })(EventDateStatusEnumType || {});
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(EventDateStatusEnumType)
159
+ Object.values(EnumEventDateStatus)
160
160
  ).filter(
161
- (period) => period.value !== "Starting_Soon" /* StartingSoon */ && period.value !== "Canceled" /* Canceled */ && period.value !== "Rescheduled" /* Rescheduled */ && period.value !== "Started" /* Started */ && period.value !== "Ended" /* Ended */ && period.value !== "Invalid" /* Invalid */
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 = (category.subcategories ?? []).filter(
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