@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.
- package/dist/affiliate-Bqqlffw8.d.mts +36 -0
- package/dist/affiliate-Btlp5XUp.d.ts +36 -0
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +118 -0
- package/dist/affiliateAdapters-C51ISmuA.d.ts +118 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +2546 -951
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +28 -30
- package/dist/auth/index.d.ts +28 -30
- package/dist/auth/index.mjs +24 -25
- package/dist/auth/index.mjs.map +1 -1
- package/dist/auth-BOmAO53v.d.ts +169 -0
- package/dist/auth-CsITA95p.d.mts +169 -0
- package/dist/{chunk-VPANTTZI.mjs → chunk-DATBGC2K.mjs} +108 -23
- package/dist/chunk-DATBGC2K.mjs.map +1 -0
- package/dist/chunk-DDHECBJR.mjs +726 -0
- package/dist/chunk-DDHECBJR.mjs.map +1 -0
- package/dist/chunk-INQCDU24.mjs +139 -0
- package/dist/chunk-INQCDU24.mjs.map +1 -0
- package/dist/{chunk-SD42WIMV.mjs → chunk-NWWKI4PJ.mjs} +5 -5
- package/dist/chunk-NWWKI4PJ.mjs.map +1 -0
- package/dist/{chunk-LBEJECG3.mjs → chunk-OHHJ3KJJ.mjs} +71 -64
- package/dist/chunk-OHHJ3KJJ.mjs.map +1 -0
- package/dist/chunk-TOEFAEF2.mjs +69 -0
- package/dist/chunk-TOEFAEF2.mjs.map +1 -0
- package/dist/chunk-UKW7NZEQ.mjs +2813 -0
- package/dist/chunk-UKW7NZEQ.mjs.map +1 -0
- package/dist/dailyClue-C6WXY73z.d.mts +105 -0
- package/dist/dailyClue-C6WXY73z.d.ts +105 -0
- package/dist/enums/index.cjs +2 -229
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +5 -170
- package/dist/enums/index.d.ts +5 -170
- package/dist/enums/index.mjs +1 -41
- package/dist/event-C9K7CSg4.d.ts +53 -0
- package/dist/event-W0NhL5Cd.d.mts +53 -0
- package/dist/formFields/index.cjs +284 -112
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +4 -2
- package/dist/formFields/index.d.ts +4 -2
- package/dist/formFields/index.mjs +919 -50
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BbSFfYdd.d.ts +181 -0
- package/dist/global-C6v9tRji.d.mts +181 -0
- package/dist/graphql/index.cjs +2860 -2292
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +422 -469
- package/dist/graphql/index.d.ts +422 -469
- package/dist/graphql/index.mjs +2547 -160
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/graphql-CDOfA79A.d.ts +1253 -0
- package/dist/graphql-CcvzTs9k.d.mts +1253 -0
- package/dist/hooks/index.cjs +511 -3846
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +10 -9
- package/dist/hooks/index.d.ts +10 -9
- package/dist/hooks/index.mjs +54 -72
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +86 -21
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4414 -3168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2439 -1579
- package/dist/index.d.ts +2439 -1579
- package/dist/index.mjs +4350 -3121
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +3 -2
- package/dist/map/index.d.ts +3 -2
- package/dist/resourceActivities-CS8YRIIL.d.mts +89 -0
- package/dist/resourceActivities-DOdNPkhW.d.ts +89 -0
- package/dist/sharing/index.cjs +23 -19
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +16 -3
- package/dist/sharing/index.d.ts +16 -3
- package/dist/sharing/index.mjs +183 -29
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-Cj_qBA7u.d.mts +20 -0
- package/dist/subscription-OiJ50uJb.d.ts +20 -0
- package/dist/theme/index.mjs +41 -5
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +868 -123
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +234 -15
- package/dist/types/index.d.ts +234 -15
- package/dist/types/index.mjs +61 -31
- package/dist/utils/index.cjs +292 -117
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +25 -23
- package/dist/utils/index.d.ts +25 -23
- package/dist/utils/index.mjs +6 -5
- package/dist/vendor-DmMi2qmx.d.mts +73 -0
- package/dist/vendor-M9hVZlni.d.ts +73 -0
- package/package.json +10 -3
- package/dist/ad-BUYzE6zx.d.ts +0 -181
- package/dist/ad-BhLoEul3.d.mts +0 -181
- package/dist/affiliate-BbtjeUP4.d.mts +0 -73
- package/dist/affiliate-C51nzKsw.d.ts +0 -73
- package/dist/chunk-32MKHJTX.mjs +0 -1207
- package/dist/chunk-32MKHJTX.mjs.map +0 -1
- package/dist/chunk-AYO3E4DM.mjs +0 -224
- package/dist/chunk-AYO3E4DM.mjs.map +0 -1
- package/dist/chunk-BIJ5NDXW.mjs +0 -962
- package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
- package/dist/chunk-DQ7ZHIXW.mjs +0 -26
- package/dist/chunk-DQ7ZHIXW.mjs.map +0 -1
- package/dist/chunk-ILILH7E2.mjs +0 -219
- package/dist/chunk-ILILH7E2.mjs.map +0 -1
- package/dist/chunk-LBEJECG3.mjs.map +0 -1
- package/dist/chunk-NPFJ2CN2.mjs +0 -109
- package/dist/chunk-NPFJ2CN2.mjs.map +0 -1
- package/dist/chunk-R6PCFOYO.mjs +0 -3650
- package/dist/chunk-R6PCFOYO.mjs.map +0 -1
- package/dist/chunk-SD42WIMV.mjs.map +0 -1
- package/dist/chunk-VA5YN2K3.mjs +0 -48
- package/dist/chunk-VA5YN2K3.mjs.map +0 -1
- package/dist/chunk-VPANTTZI.mjs.map +0 -1
- package/dist/chunk-X3OLM35T.mjs +0 -278
- package/dist/chunk-X3OLM35T.mjs.map +0 -1
- package/dist/contactUs--NoohZBu.d.ts +0 -11
- package/dist/contactUs-CBWzefUS.d.mts +0 -11
- package/dist/global-CUYYxpy2.d.ts +0 -699
- package/dist/global-DePDtOFt.d.mts +0 -699
- package/dist/resourceActivities-CMUcn2P7.d.ts +0 -130
- package/dist/resourceActivities-CwbJFGIp.d.mts +0 -130
- package/dist/subscription-BU8GvH2K.d.ts +0 -12
- package/dist/subscription-bmAdrnfi.d.mts +0 -12
- package/dist/user-D47MLFyH.d.ts +0 -134
- package/dist/user-DE8edl3u.d.mts +0 -134
package/dist/map/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as Region } from '../global-C6v9tRji.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
|
-
import '../
|
|
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: {
|
package/dist/map/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as Region } from '../global-BbSFfYdd.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
|
-
import '../
|
|
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 };
|
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/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(
|
|
159
|
+
Object.values(EventDateStatusEnumType)
|
|
160
160
|
).filter(
|
|
161
|
-
(period) => period.value !== "Starting_Soon" /*
|
|
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
|
|
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(
|
|
342
|
+
formatShareTagsSection(
|
|
343
|
+
(event.tags ?? []).filter((tag) => tag != null && tag !== "")
|
|
344
|
+
),
|
|
341
345
|
formatShareInvitationMarketDatesSection(eventInfo.dateTime),
|
|
342
346
|
formatShareInvitationApplicationDeadlineLine(
|
|
343
347
|
eventInfo.applicationDeadlineHours
|