@timardex/cluemart-shared 1.2.77 → 1.2.78

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/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 | null;
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 = {
@@ -330,6 +331,7 @@ interface UserType {
330
331
  active: boolean;
331
332
  associates?: AssociateType[] | null;
332
333
  avatar: ResourceImageType | null;
334
+ chatIds: string[] | null;
333
335
  createdAt: Date;
334
336
  deletedAt: Date | null;
335
337
  email: string;
@@ -506,7 +508,6 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
506
508
  _id: string;
507
509
  adIds?: string[] | null;
508
510
  associates: AssociateType[] | null;
509
- chatIds?: string[] | null;
510
511
  createdAt: Date;
511
512
  deletedAt: Date | null;
512
513
  owner: OwnerType;
@@ -678,18 +679,13 @@ interface ChatMessageType {
678
679
  interface ChatType {
679
680
  _id: string;
680
681
  active: boolean;
681
- chatType: EnumChatType;
682
682
  chatName: string;
683
+ chatType: EnumChatType;
683
684
  createdAt: Date;
685
+ deletedAt: Date | null;
684
686
  messages: ChatMessageType[];
685
687
  participants: ParticipantType[];
686
- resourceInfo: {
687
- eventId: string | null;
688
- partnerId: string | null;
689
- vendorId: string | null;
690
- } | null;
691
688
  updatedAt: Date | null;
692
- deletedAt: Date | null;
693
689
  }
694
690
 
695
691
  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 | null;
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 = {
@@ -330,6 +331,7 @@ interface UserType {
330
331
  active: boolean;
331
332
  associates?: AssociateType[] | null;
332
333
  avatar: ResourceImageType | null;
334
+ chatIds: string[] | null;
333
335
  createdAt: Date;
334
336
  deletedAt: Date | null;
335
337
  email: string;
@@ -506,7 +508,6 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
506
508
  _id: string;
507
509
  adIds?: string[] | null;
508
510
  associates: AssociateType[] | null;
509
- chatIds?: string[] | null;
510
511
  createdAt: Date;
511
512
  deletedAt: Date | null;
512
513
  owner: OwnerType;
@@ -678,18 +679,13 @@ interface ChatMessageType {
678
679
  interface ChatType {
679
680
  _id: string;
680
681
  active: boolean;
681
- chatType: EnumChatType;
682
682
  chatName: string;
683
+ chatType: EnumChatType;
683
684
  createdAt: Date;
685
+ deletedAt: Date | null;
684
686
  messages: ChatMessageType[];
685
687
  participants: ParticipantType[];
686
- resourceInfo: {
687
- eventId: string | null;
688
- partnerId: string | null;
689
- vendorId: string | null;
690
- } | null;
691
688
  updatedAt: Date | null;
692
- deletedAt: Date | null;
693
689
  }
694
690
 
695
691
  type ContactUsFormData = {
package/dist/index.mjs CHANGED
@@ -2260,6 +2260,7 @@ var USER_FIELDS_FRAGMENT = gql2`
2260
2260
  ...ResourceImageFields
2261
2261
  }
2262
2262
  createdAt
2263
+ chatIds
2263
2264
  deletedAt
2264
2265
  email
2265
2266
  events
@@ -2396,7 +2397,6 @@ var EVENT = gql3`
2396
2397
  contactDetails {
2397
2398
  ...ContactDetailsFields
2398
2399
  }
2399
- chatIds
2400
2400
  dateTime {
2401
2401
  ...EventDateTimeFields
2402
2402
  }
@@ -2554,7 +2554,6 @@ var VENDOR = gql4`
2554
2554
  cover {
2555
2555
  ...ResourceImageFields
2556
2556
  }
2557
- chatIds
2558
2557
  createdAt
2559
2558
  description
2560
2559
  deletedAt
@@ -2876,11 +2875,6 @@ var CHAT_FIELDS_FRAGMENT = gql6`
2876
2875
  participants {
2877
2876
  ...ChatParticipantFields
2878
2877
  }
2879
- resourceInfo {
2880
- eventId
2881
- partnerId
2882
- vendorId
2883
- }
2884
2878
  updatedAt
2885
2879
  }
2886
2880
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
@@ -3107,7 +3101,6 @@ var PARTNER = gql11`
3107
3101
  contactDetails {
3108
3102
  ...ContactDetailsFields
3109
3103
  }
3110
- chatIds
3111
3104
  description
3112
3105
  deletedAt
3113
3106
  images {
@@ -3668,6 +3661,7 @@ var RELATION_FIELDS_FRAGMENT = gql18`
3668
3661
  _id
3669
3662
  active
3670
3663
  apiMessage
3664
+ chatId
3671
3665
  createdAt
3672
3666
  lastUpdateBy
3673
3667
  eventId
@@ -5225,16 +5219,17 @@ import * as yup2 from "yup";
5225
5219
  var eventSchema = globalResourceSchema.shape({
5226
5220
  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
5221
  "unique-start-date-time",
5228
- "Start Date must be unique",
5222
+ "Start Date and Start Time must be unique",
5229
5223
  function(value) {
5230
5224
  if (!value) return true;
5231
5225
  const seen = /* @__PURE__ */ new Set();
5232
5226
  for (const item of value) {
5233
- if (!item.startDate) continue;
5234
- if (seen.has(item.startDate)) {
5227
+ if (!item.startDate || !item.startTime) continue;
5228
+ const key = `${item.startDate}_${item.startTime}`;
5229
+ if (seen.has(key)) {
5235
5230
  return false;
5236
5231
  }
5237
- seen.add(item.startDate);
5232
+ seen.add(key);
5238
5233
  }
5239
5234
  return true;
5240
5235
  }