@timardex/cluemart-shared 1.6.112 → 1.6.130

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/affiliate-Bqqlffw8.d.mts +36 -0
  2. package/dist/affiliate-Btlp5XUp.d.ts +36 -0
  3. package/dist/affiliateAdapters-BW3BY7c5.d.mts +118 -0
  4. package/dist/affiliateAdapters-C51ISmuA.d.ts +118 -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 +2546 -951
  8. package/dist/auth/index.cjs.map +1 -1
  9. package/dist/auth/index.d.mts +28 -30
  10. package/dist/auth/index.d.ts +28 -30
  11. package/dist/auth/index.mjs +24 -25
  12. package/dist/auth/index.mjs.map +1 -1
  13. package/dist/auth-BOmAO53v.d.ts +169 -0
  14. package/dist/auth-CsITA95p.d.mts +169 -0
  15. package/dist/{chunk-VPANTTZI.mjs → chunk-DATBGC2K.mjs} +108 -23
  16. package/dist/chunk-DATBGC2K.mjs.map +1 -0
  17. package/dist/chunk-DDHECBJR.mjs +726 -0
  18. package/dist/chunk-DDHECBJR.mjs.map +1 -0
  19. package/dist/chunk-INQCDU24.mjs +139 -0
  20. package/dist/chunk-INQCDU24.mjs.map +1 -0
  21. package/dist/{chunk-SD42WIMV.mjs → chunk-NWWKI4PJ.mjs} +5 -5
  22. package/dist/chunk-NWWKI4PJ.mjs.map +1 -0
  23. package/dist/{chunk-LBEJECG3.mjs → chunk-OHHJ3KJJ.mjs} +71 -64
  24. package/dist/chunk-OHHJ3KJJ.mjs.map +1 -0
  25. package/dist/chunk-TOEFAEF2.mjs +69 -0
  26. package/dist/chunk-TOEFAEF2.mjs.map +1 -0
  27. package/dist/chunk-UKW7NZEQ.mjs +2813 -0
  28. package/dist/chunk-UKW7NZEQ.mjs.map +1 -0
  29. package/dist/dailyClue-C6WXY73z.d.mts +105 -0
  30. package/dist/dailyClue-C6WXY73z.d.ts +105 -0
  31. package/dist/enums/index.cjs +2 -229
  32. package/dist/enums/index.cjs.map +1 -1
  33. package/dist/enums/index.d.mts +5 -170
  34. package/dist/enums/index.d.ts +5 -170
  35. package/dist/enums/index.mjs +1 -41
  36. package/dist/event-C9K7CSg4.d.ts +53 -0
  37. package/dist/event-W0NhL5Cd.d.mts +53 -0
  38. package/dist/formFields/index.cjs +284 -112
  39. package/dist/formFields/index.cjs.map +1 -1
  40. package/dist/formFields/index.d.mts +4 -2
  41. package/dist/formFields/index.d.ts +4 -2
  42. package/dist/formFields/index.mjs +919 -50
  43. package/dist/formFields/index.mjs.map +1 -1
  44. package/dist/global-BbSFfYdd.d.ts +181 -0
  45. package/dist/global-C6v9tRji.d.mts +181 -0
  46. package/dist/graphql/index.cjs +2860 -2292
  47. package/dist/graphql/index.cjs.map +1 -1
  48. package/dist/graphql/index.d.mts +422 -469
  49. package/dist/graphql/index.d.ts +422 -469
  50. package/dist/graphql/index.mjs +2547 -160
  51. package/dist/graphql/index.mjs.map +1 -1
  52. package/dist/graphql-CDOfA79A.d.ts +1253 -0
  53. package/dist/graphql-CcvzTs9k.d.mts +1253 -0
  54. package/dist/hooks/index.cjs +511 -3846
  55. package/dist/hooks/index.cjs.map +1 -1
  56. package/dist/hooks/index.d.mts +10 -9
  57. package/dist/hooks/index.d.ts +10 -9
  58. package/dist/hooks/index.mjs +54 -72
  59. package/dist/hooks/index.mjs.map +1 -1
  60. package/dist/images/index.mjs +86 -21
  61. package/dist/images/index.mjs.map +1 -1
  62. package/dist/index.cjs +4414 -3168
  63. package/dist/index.cjs.map +1 -1
  64. package/dist/index.d.mts +2439 -1579
  65. package/dist/index.d.ts +2439 -1579
  66. package/dist/index.mjs +4350 -3121
  67. package/dist/index.mjs.map +1 -1
  68. package/dist/map/index.d.mts +3 -2
  69. package/dist/map/index.d.ts +3 -2
  70. package/dist/resourceActivities-CS8YRIIL.d.mts +89 -0
  71. package/dist/resourceActivities-DOdNPkhW.d.ts +89 -0
  72. package/dist/sharing/index.cjs +23 -19
  73. package/dist/sharing/index.cjs.map +1 -1
  74. package/dist/sharing/index.d.mts +16 -3
  75. package/dist/sharing/index.d.ts +16 -3
  76. package/dist/sharing/index.mjs +183 -29
  77. package/dist/sharing/index.mjs.map +1 -1
  78. package/dist/subscription-Cj_qBA7u.d.mts +20 -0
  79. package/dist/subscription-OiJ50uJb.d.ts +20 -0
  80. package/dist/theme/index.mjs +41 -5
  81. package/dist/theme/index.mjs.map +1 -1
  82. package/dist/types/index.cjs +868 -123
  83. package/dist/types/index.cjs.map +1 -1
  84. package/dist/types/index.d.mts +234 -15
  85. package/dist/types/index.d.ts +234 -15
  86. package/dist/types/index.mjs +61 -31
  87. package/dist/utils/index.cjs +292 -117
  88. package/dist/utils/index.cjs.map +1 -1
  89. package/dist/utils/index.d.mts +25 -23
  90. package/dist/utils/index.d.ts +25 -23
  91. package/dist/utils/index.mjs +6 -5
  92. package/dist/vendor-DmMi2qmx.d.mts +73 -0
  93. package/dist/vendor-M9hVZlni.d.ts +73 -0
  94. package/package.json +10 -3
  95. package/dist/ad-BUYzE6zx.d.ts +0 -181
  96. package/dist/ad-BhLoEul3.d.mts +0 -181
  97. package/dist/affiliate-BbtjeUP4.d.mts +0 -73
  98. package/dist/affiliate-C51nzKsw.d.ts +0 -73
  99. package/dist/chunk-32MKHJTX.mjs +0 -1207
  100. package/dist/chunk-32MKHJTX.mjs.map +0 -1
  101. package/dist/chunk-AYO3E4DM.mjs +0 -224
  102. package/dist/chunk-AYO3E4DM.mjs.map +0 -1
  103. package/dist/chunk-BIJ5NDXW.mjs +0 -962
  104. package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
  105. package/dist/chunk-DQ7ZHIXW.mjs +0 -26
  106. package/dist/chunk-DQ7ZHIXW.mjs.map +0 -1
  107. package/dist/chunk-ILILH7E2.mjs +0 -219
  108. package/dist/chunk-ILILH7E2.mjs.map +0 -1
  109. package/dist/chunk-LBEJECG3.mjs.map +0 -1
  110. package/dist/chunk-NPFJ2CN2.mjs +0 -109
  111. package/dist/chunk-NPFJ2CN2.mjs.map +0 -1
  112. package/dist/chunk-R6PCFOYO.mjs +0 -3650
  113. package/dist/chunk-R6PCFOYO.mjs.map +0 -1
  114. package/dist/chunk-SD42WIMV.mjs.map +0 -1
  115. package/dist/chunk-VA5YN2K3.mjs +0 -48
  116. package/dist/chunk-VA5YN2K3.mjs.map +0 -1
  117. package/dist/chunk-VPANTTZI.mjs.map +0 -1
  118. package/dist/chunk-X3OLM35T.mjs +0 -278
  119. package/dist/chunk-X3OLM35T.mjs.map +0 -1
  120. package/dist/contactUs--NoohZBu.d.ts +0 -11
  121. package/dist/contactUs-CBWzefUS.d.mts +0 -11
  122. package/dist/global-CUYYxpy2.d.ts +0 -699
  123. package/dist/global-DePDtOFt.d.mts +0 -699
  124. package/dist/resourceActivities-CMUcn2P7.d.ts +0 -130
  125. package/dist/resourceActivities-CwbJFGIp.d.mts +0 -130
  126. package/dist/subscription-BU8GvH2K.d.ts +0 -12
  127. package/dist/subscription-bmAdrnfi.d.mts +0 -12
  128. package/dist/user-D47MLFyH.d.ts +0 -134
  129. package/dist/user-DE8edl3u.d.mts +0 -134
@@ -1,6 +1,7 @@
1
- import { y as Region } from '../global-DePDtOFt.mjs';
1
+ import { b as Region } from '../global-C6v9tRji.mjs';
2
2
  import 'react-hook-form';
3
- import '../enums/index.mjs';
3
+ import '../graphql-CcvzTs9k.mjs';
4
+ import '../images/index.mjs';
4
5
 
5
6
  /** NZ map boundaries for clamping / full-country framing. */
6
7
  declare const NZ_MAP_BOUNDARIES: {
@@ -1,6 +1,7 @@
1
- import { y as Region } from '../global-CUYYxpy2.js';
1
+ import { b as Region } from '../global-BbSFfYdd.js';
2
2
  import 'react-hook-form';
3
- import '../enums/index.js';
3
+ import '../graphql-CDOfA79A.js';
4
+ import '../images/index.js';
4
5
 
5
6
  /** NZ map boundaries for clamping / full-country framing. */
6
7
  declare const NZ_MAP_BOUNDARIES: {
@@ -0,0 +1,89 @@
1
+ import { n as AdminUpdateResourceType$1, f as ResourceTypeEnum, D as DateTimeType, I as InviteEnumType, o as RelationTypeEnum, p as NotificationEnumType, N as NotificationResourceEnumType, q as ActivityEnumType, r as LocationGeoType, s as EventDateStatusEnumType, O as OsPlatformEnumType } from './graphql-CcvzTs9k.mjs';
2
+ import { S as StallType } from './event-W0NhL5Cd.mjs';
3
+
4
+ /**
5
+ * Re-export of the GraphQL schema type under the existing public name.
6
+ * @see src/generated/graphql.ts `AdminUpdateResourceType`
7
+ */
8
+ type AdminUpdateResourceType = AdminUpdateResourceType$1;
9
+
10
+ type RelationDate = {
11
+ dateTime: DateTimeType & {
12
+ stallType: StallType | null;
13
+ };
14
+ lastUpdateBy: {
15
+ resourceId: string;
16
+ userEmail: string;
17
+ };
18
+ paymentReference?: string;
19
+ status: InviteEnumType;
20
+ };
21
+ interface RelationType {
22
+ _id?: string;
23
+ active: boolean;
24
+ chatId: string;
25
+ createdAt?: Date;
26
+ deletedAt?: Date | null;
27
+ eventId: string;
28
+ lastUpdateBy: ResourceTypeEnum;
29
+ relationDates: RelationDate[];
30
+ relationType: RelationTypeEnum;
31
+ updatedAt?: Date;
32
+ vendorId: string;
33
+ }
34
+ /** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
35
+ type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
36
+ chatId?: string;
37
+ };
38
+
39
+ interface NotificationDataType {
40
+ resourceId: string;
41
+ resourceName: string;
42
+ resourceType: NotificationResourceEnumType;
43
+ }
44
+ type NotificationType = {
45
+ _id: string;
46
+ userId: string;
47
+ title: string;
48
+ message: string;
49
+ isRead: boolean;
50
+ type: NotificationEnumType;
51
+ data: NotificationDataType | null;
52
+ createdAt: Date;
53
+ updatedAt: Date;
54
+ };
55
+ type NotificationCount = {
56
+ total: number;
57
+ unread: number;
58
+ };
59
+ type CreateBulkNotificationInput = {
60
+ data: NotificationDataType | null;
61
+ message: string;
62
+ title: string;
63
+ type: NotificationEnumType;
64
+ userIds: string[];
65
+ };
66
+
67
+ type ResourceActivityEntry = {
68
+ activityType: ActivityEnumType;
69
+ location: LocationGeoType | null;
70
+ dateStatus?: EventDateStatusEnumType | null;
71
+ startDate?: string | null;
72
+ startTime?: string | null;
73
+ timestamp: Date;
74
+ userAgent: OsPlatformEnumType;
75
+ userId?: string | null;
76
+ };
77
+ type ResourceActivityType = {
78
+ _id: string;
79
+ resourceType: ResourceTypeEnum;
80
+ resourceId: string;
81
+ activity: ResourceActivityEntry[];
82
+ };
83
+ type ResourceActivityInputType = {
84
+ resourceId: string;
85
+ resourceType: ResourceTypeEnum;
86
+ activity: Omit<ResourceActivityEntry, "timestamp">;
87
+ };
88
+
89
+ export type { AdminUpdateResourceType as A, CreateBulkNotificationInput as C, NotificationCount as N, RelationDate as R, NotificationDataType as a, NotificationType as b, RelationInputType as c, RelationType as d, ResourceActivityEntry as e, ResourceActivityInputType as f, ResourceActivityType as g };
@@ -0,0 +1,89 @@
1
+ import { n as AdminUpdateResourceType$1, f as ResourceTypeEnum, D as DateTimeType, I as InviteEnumType, o as RelationTypeEnum, p as NotificationEnumType, N as NotificationResourceEnumType, q as ActivityEnumType, r as LocationGeoType, s as EventDateStatusEnumType, O as OsPlatformEnumType } from './graphql-CDOfA79A.js';
2
+ import { S as StallType } from './event-C9K7CSg4.js';
3
+
4
+ /**
5
+ * Re-export of the GraphQL schema type under the existing public name.
6
+ * @see src/generated/graphql.ts `AdminUpdateResourceType`
7
+ */
8
+ type AdminUpdateResourceType = AdminUpdateResourceType$1;
9
+
10
+ type RelationDate = {
11
+ dateTime: DateTimeType & {
12
+ stallType: StallType | null;
13
+ };
14
+ lastUpdateBy: {
15
+ resourceId: string;
16
+ userEmail: string;
17
+ };
18
+ paymentReference?: string;
19
+ status: InviteEnumType;
20
+ };
21
+ interface RelationType {
22
+ _id?: string;
23
+ active: boolean;
24
+ chatId: string;
25
+ createdAt?: Date;
26
+ deletedAt?: Date | null;
27
+ eventId: string;
28
+ lastUpdateBy: ResourceTypeEnum;
29
+ relationDates: RelationDate[];
30
+ relationType: RelationTypeEnum;
31
+ updatedAt?: Date;
32
+ vendorId: string;
33
+ }
34
+ /** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
35
+ type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
36
+ chatId?: string;
37
+ };
38
+
39
+ interface NotificationDataType {
40
+ resourceId: string;
41
+ resourceName: string;
42
+ resourceType: NotificationResourceEnumType;
43
+ }
44
+ type NotificationType = {
45
+ _id: string;
46
+ userId: string;
47
+ title: string;
48
+ message: string;
49
+ isRead: boolean;
50
+ type: NotificationEnumType;
51
+ data: NotificationDataType | null;
52
+ createdAt: Date;
53
+ updatedAt: Date;
54
+ };
55
+ type NotificationCount = {
56
+ total: number;
57
+ unread: number;
58
+ };
59
+ type CreateBulkNotificationInput = {
60
+ data: NotificationDataType | null;
61
+ message: string;
62
+ title: string;
63
+ type: NotificationEnumType;
64
+ userIds: string[];
65
+ };
66
+
67
+ type ResourceActivityEntry = {
68
+ activityType: ActivityEnumType;
69
+ location: LocationGeoType | null;
70
+ dateStatus?: EventDateStatusEnumType | null;
71
+ startDate?: string | null;
72
+ startTime?: string | null;
73
+ timestamp: Date;
74
+ userAgent: OsPlatformEnumType;
75
+ userId?: string | null;
76
+ };
77
+ type ResourceActivityType = {
78
+ _id: string;
79
+ resourceType: ResourceTypeEnum;
80
+ resourceId: string;
81
+ activity: ResourceActivityEntry[];
82
+ };
83
+ type ResourceActivityInputType = {
84
+ resourceId: string;
85
+ resourceType: ResourceTypeEnum;
86
+ activity: Omit<ResourceActivityEntry, "timestamp">;
87
+ };
88
+
89
+ export type { AdminUpdateResourceType as A, CreateBulkNotificationInput as C, NotificationCount as N, RelationDate as R, NotificationDataType as a, NotificationType as b, RelationInputType as c, RelationType as d, ResourceActivityEntry as e, ResourceActivityInputType as f, ResourceActivityType as g };
@@ -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/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 || {});
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 || {});
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(EnumEventDateStatus)
159
+ Object.values(EventDateStatusEnumType)
160
160
  ).filter(
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 */
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 */
162
162
  ).map((period) => ({
163
163
  label: period.value.replaceAll("_", " "),
164
164
  value: period.value
@@ -233,7 +233,9 @@ function isPostShareResourceType(resourceType) {
233
233
 
234
234
  // src/sharing/formatCategoryLabel.ts
235
235
  function formatCategoryLabel(category) {
236
- const subcategoryNames = category.subcategories.map((subcategory) => subcategory.name).filter(Boolean);
236
+ const subcategoryNames = (category.subcategories ?? []).filter(
237
+ (subcategory) => Boolean(subcategory)
238
+ ).map((subcategory) => subcategory.name).filter((name) => Boolean(name));
237
239
  if (subcategoryNames.length === 0) {
238
240
  return category.name;
239
241
  }
@@ -337,7 +339,9 @@ function buildInvitationShareDescription(event, eventInfo) {
337
339
  const sections = [
338
340
  event.location.fullAddress,
339
341
  formatShareRainOrShineLine(event.rainOrShine),
340
- formatShareTagsSection(event.tags),
342
+ formatShareTagsSection(
343
+ (event.tags ?? []).filter((tag) => tag != null && tag !== "")
344
+ ),
341
345
  formatShareInvitationMarketDatesSection(eventInfo.dateTime),
342
346
  formatShareInvitationApplicationDeadlineLine(
343
347
  eventInfo.applicationDeadlineHours