@timardex/cluemart-shared 1.2.77 → 1.2.79
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-xdJwfxlP.d.ts → ad-CLjv4m2E.d.ts} +1 -1
- package/dist/{ad-gZ1qDsbZ.d.mts → ad-CcI9-QNk.d.mts} +1 -1
- package/dist/{auth-CUYS6mTa.d.ts → auth-BUwz80HU.d.ts} +1 -1
- package/dist/{auth-3LaB7wSd.d.mts → auth-L5bnPQy9.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-C36I4j_Z.d.ts → global-DT-3QYQ7.d.ts} +3 -3
- package/dist/{global-Cc11i_-I.d.mts → global-QQsak61D.d.mts} +3 -3
- package/dist/graphql/index.cjs +1 -8
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -8
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +5 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +5 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +6 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.mjs +6 -12
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-DB-fx51l.d.mts → resourceActivities-CJRTZROh.d.mts} +2 -7
- package/dist/{resourceActivities-Ezt7CDPH.d.ts → resourceActivities-CVwxvGeC.d.ts} +2 -7
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -195,14 +195,15 @@ interface RelationType {
|
|
|
195
195
|
_id?: string;
|
|
196
196
|
active: boolean;
|
|
197
197
|
apiMessage?: string;
|
|
198
|
+
chatId: string;
|
|
198
199
|
createdAt?: string;
|
|
199
200
|
deletedAt?: string | null;
|
|
200
|
-
lastUpdateBy: EnumResourceType;
|
|
201
201
|
eventId: string;
|
|
202
|
+
lastUpdateBy: EnumResourceType;
|
|
202
203
|
relationDates: RelationDate[];
|
|
203
204
|
relationType: EnumRelationResource;
|
|
204
|
-
vendorId: string;
|
|
205
205
|
updatedAt?: string;
|
|
206
|
+
vendorId: string;
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
type StallType = {
|
|
@@ -506,7 +507,6 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
506
507
|
_id: string;
|
|
507
508
|
adIds?: string[] | null;
|
|
508
509
|
associates: AssociateType[] | null;
|
|
509
|
-
chatIds?: string[] | null;
|
|
510
510
|
createdAt: Date;
|
|
511
511
|
deletedAt: Date | null;
|
|
512
512
|
owner: OwnerType;
|
|
@@ -678,18 +678,13 @@ interface ChatMessageType {
|
|
|
678
678
|
interface ChatType {
|
|
679
679
|
_id: string;
|
|
680
680
|
active: boolean;
|
|
681
|
-
chatType: EnumChatType;
|
|
682
681
|
chatName: string;
|
|
682
|
+
chatType: EnumChatType;
|
|
683
683
|
createdAt: Date;
|
|
684
|
+
deletedAt: Date | null;
|
|
684
685
|
messages: ChatMessageType[];
|
|
685
686
|
participants: ParticipantType[];
|
|
686
|
-
resourceInfo: {
|
|
687
|
-
eventId: string | null;
|
|
688
|
-
partnerId: string | null;
|
|
689
|
-
vendorId: string | null;
|
|
690
|
-
} | null;
|
|
691
687
|
updatedAt: Date | null;
|
|
692
|
-
deletedAt: Date | null;
|
|
693
688
|
}
|
|
694
689
|
|
|
695
690
|
type ContactUsFormData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -195,14 +195,15 @@ interface RelationType {
|
|
|
195
195
|
_id?: string;
|
|
196
196
|
active: boolean;
|
|
197
197
|
apiMessage?: string;
|
|
198
|
+
chatId: string;
|
|
198
199
|
createdAt?: string;
|
|
199
200
|
deletedAt?: string | null;
|
|
200
|
-
lastUpdateBy: EnumResourceType;
|
|
201
201
|
eventId: string;
|
|
202
|
+
lastUpdateBy: EnumResourceType;
|
|
202
203
|
relationDates: RelationDate[];
|
|
203
204
|
relationType: EnumRelationResource;
|
|
204
|
-
vendorId: string;
|
|
205
205
|
updatedAt?: string;
|
|
206
|
+
vendorId: string;
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
type StallType = {
|
|
@@ -506,7 +507,6 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
506
507
|
_id: string;
|
|
507
508
|
adIds?: string[] | null;
|
|
508
509
|
associates: AssociateType[] | null;
|
|
509
|
-
chatIds?: string[] | null;
|
|
510
510
|
createdAt: Date;
|
|
511
511
|
deletedAt: Date | null;
|
|
512
512
|
owner: OwnerType;
|
|
@@ -678,18 +678,13 @@ interface ChatMessageType {
|
|
|
678
678
|
interface ChatType {
|
|
679
679
|
_id: string;
|
|
680
680
|
active: boolean;
|
|
681
|
-
chatType: EnumChatType;
|
|
682
681
|
chatName: string;
|
|
682
|
+
chatType: EnumChatType;
|
|
683
683
|
createdAt: Date;
|
|
684
|
+
deletedAt: Date | null;
|
|
684
685
|
messages: ChatMessageType[];
|
|
685
686
|
participants: ParticipantType[];
|
|
686
|
-
resourceInfo: {
|
|
687
|
-
eventId: string | null;
|
|
688
|
-
partnerId: string | null;
|
|
689
|
-
vendorId: string | null;
|
|
690
|
-
} | null;
|
|
691
687
|
updatedAt: Date | null;
|
|
692
|
-
deletedAt: Date | null;
|
|
693
688
|
}
|
|
694
689
|
|
|
695
690
|
type ContactUsFormData = {
|
package/dist/index.mjs
CHANGED
|
@@ -2396,7 +2396,6 @@ var EVENT = gql3`
|
|
|
2396
2396
|
contactDetails {
|
|
2397
2397
|
...ContactDetailsFields
|
|
2398
2398
|
}
|
|
2399
|
-
chatIds
|
|
2400
2399
|
dateTime {
|
|
2401
2400
|
...EventDateTimeFields
|
|
2402
2401
|
}
|
|
@@ -2554,7 +2553,6 @@ var VENDOR = gql4`
|
|
|
2554
2553
|
cover {
|
|
2555
2554
|
...ResourceImageFields
|
|
2556
2555
|
}
|
|
2557
|
-
chatIds
|
|
2558
2556
|
createdAt
|
|
2559
2557
|
description
|
|
2560
2558
|
deletedAt
|
|
@@ -2876,11 +2874,6 @@ var CHAT_FIELDS_FRAGMENT = gql6`
|
|
|
2876
2874
|
participants {
|
|
2877
2875
|
...ChatParticipantFields
|
|
2878
2876
|
}
|
|
2879
|
-
resourceInfo {
|
|
2880
|
-
eventId
|
|
2881
|
-
partnerId
|
|
2882
|
-
vendorId
|
|
2883
|
-
}
|
|
2884
2877
|
updatedAt
|
|
2885
2878
|
}
|
|
2886
2879
|
${CHAT_MESSAGE_FIELDS_FRAGMENT}
|
|
@@ -3107,7 +3100,6 @@ var PARTNER = gql11`
|
|
|
3107
3100
|
contactDetails {
|
|
3108
3101
|
...ContactDetailsFields
|
|
3109
3102
|
}
|
|
3110
|
-
chatIds
|
|
3111
3103
|
description
|
|
3112
3104
|
deletedAt
|
|
3113
3105
|
images {
|
|
@@ -3668,6 +3660,7 @@ var RELATION_FIELDS_FRAGMENT = gql18`
|
|
|
3668
3660
|
_id
|
|
3669
3661
|
active
|
|
3670
3662
|
apiMessage
|
|
3663
|
+
chatId
|
|
3671
3664
|
createdAt
|
|
3672
3665
|
lastUpdateBy
|
|
3673
3666
|
eventId
|
|
@@ -5225,16 +5218,17 @@ import * as yup2 from "yup";
|
|
|
5225
5218
|
var eventSchema = globalResourceSchema.shape({
|
|
5226
5219
|
dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Event date required").max(50, "You can only add up to 50 Event dates").required("DateTime is required").test(
|
|
5227
5220
|
"unique-start-date-time",
|
|
5228
|
-
"Start Date must be unique",
|
|
5221
|
+
"Start Date and Start Time must be unique",
|
|
5229
5222
|
function(value) {
|
|
5230
5223
|
if (!value) return true;
|
|
5231
5224
|
const seen = /* @__PURE__ */ new Set();
|
|
5232
5225
|
for (const item of value) {
|
|
5233
|
-
if (!item.startDate) continue;
|
|
5234
|
-
|
|
5226
|
+
if (!item.startDate || !item.startTime) continue;
|
|
5227
|
+
const key = `${item.startDate}_${item.startTime}`;
|
|
5228
|
+
if (seen.has(key)) {
|
|
5235
5229
|
return false;
|
|
5236
5230
|
}
|
|
5237
|
-
seen.add(
|
|
5231
|
+
seen.add(key);
|
|
5238
5232
|
}
|
|
5239
5233
|
return true;
|
|
5240
5234
|
}
|