@timardex/cluemart-shared 1.2.45 → 1.2.47

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
@@ -226,15 +226,14 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
226
226
  };
227
227
 
228
228
  type RelationDate = {
229
+ dateTime: DateTimeType & {
230
+ stallType: StallType | null;
231
+ };
229
232
  lastUpdateBy: {
230
233
  resourceId: string;
231
234
  userEmail: string;
232
235
  };
233
- dateStatus?: EnumEventDateStatus | null;
234
236
  paymentReference?: string;
235
- stallType: StallType | null;
236
- startDate: string;
237
- startTime: string;
238
237
  status: EnumInviteStatus;
239
238
  };
240
239
  interface RelationType {
@@ -420,7 +419,7 @@ type LocationType = {
420
419
  type: "Point";
421
420
  };
422
421
  type DateTimeType = {
423
- dateStatus?: EnumEventDateStatus | null;
422
+ dateStatus: EnumEventDateStatus;
424
423
  endDate: string;
425
424
  endTime: string;
426
425
  startDate: string;
@@ -555,7 +554,8 @@ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificati
555
554
 
556
555
  type ParticipantType = {
557
556
  active: boolean;
558
- email: string;
557
+ userAvatar: string | null;
558
+ userEmail: string;
559
559
  userId: string;
560
560
  userName: string;
561
561
  };
@@ -567,9 +567,7 @@ interface ChatMessageType {
567
567
  _id?: string;
568
568
  content: string;
569
569
  createdAt?: string;
570
- senderAvatar: string | null;
571
570
  senderId: string;
572
- senderName: string;
573
571
  updatedAt?: string;
574
572
  }
575
573
  interface ChatType {
@@ -666,7 +664,7 @@ type UserFormData = {
666
664
  };
667
665
  type CreateUserFormData = CreateFormData<UserFormData>;
668
666
  type UserActivityEvent = {
669
- dateStatus?: EnumEventDateStatus | null;
667
+ dateStatus: EnumEventDateStatus;
670
668
  resourceId: string;
671
669
  startDate: string;
672
670
  startTime: string;
package/dist/index.d.ts CHANGED
@@ -226,15 +226,14 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
226
226
  };
227
227
 
228
228
  type RelationDate = {
229
+ dateTime: DateTimeType & {
230
+ stallType: StallType | null;
231
+ };
229
232
  lastUpdateBy: {
230
233
  resourceId: string;
231
234
  userEmail: string;
232
235
  };
233
- dateStatus?: EnumEventDateStatus | null;
234
236
  paymentReference?: string;
235
- stallType: StallType | null;
236
- startDate: string;
237
- startTime: string;
238
237
  status: EnumInviteStatus;
239
238
  };
240
239
  interface RelationType {
@@ -420,7 +419,7 @@ type LocationType = {
420
419
  type: "Point";
421
420
  };
422
421
  type DateTimeType = {
423
- dateStatus?: EnumEventDateStatus | null;
422
+ dateStatus: EnumEventDateStatus;
424
423
  endDate: string;
425
424
  endTime: string;
426
425
  startDate: string;
@@ -555,7 +554,8 @@ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificati
555
554
 
556
555
  type ParticipantType = {
557
556
  active: boolean;
558
- email: string;
557
+ userAvatar: string | null;
558
+ userEmail: string;
559
559
  userId: string;
560
560
  userName: string;
561
561
  };
@@ -567,9 +567,7 @@ interface ChatMessageType {
567
567
  _id?: string;
568
568
  content: string;
569
569
  createdAt?: string;
570
- senderAvatar: string | null;
571
570
  senderId: string;
572
- senderName: string;
573
571
  updatedAt?: string;
574
572
  }
575
573
  interface ChatType {
@@ -666,7 +664,7 @@ type UserFormData = {
666
664
  };
667
665
  type CreateUserFormData = CreateFormData<UserFormData>;
668
666
  type UserActivityEvent = {
669
- dateStatus?: EnumEventDateStatus | null;
667
+ dateStatus: EnumEventDateStatus;
670
668
  resourceId: string;
671
669
  startDate: string;
672
670
  startTime: string;
package/dist/index.mjs CHANGED
@@ -2149,17 +2149,21 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql2`
2149
2149
  `;
2150
2150
  var RELATION_DATES_FRAGMENT = gql2`
2151
2151
  fragment RelationDates on RelationDateType {
2152
+ dateTime {
2153
+ dateStatus
2154
+ endDate
2155
+ endTime
2156
+ startDate
2157
+ startTime
2158
+ stallType {
2159
+ ...StallTypeFields
2160
+ }
2161
+ }
2152
2162
  lastUpdateBy {
2153
2163
  resourceId
2154
2164
  userEmail
2155
2165
  }
2156
2166
  paymentReference
2157
- stallType {
2158
- ...StallTypeFields
2159
- }
2160
- dateStatus
2161
- startDate
2162
- startTime
2163
2167
  status
2164
2168
  }
2165
2169
  ${STALL_TYPE_FIELDS_FRAGMENT}
@@ -2693,16 +2697,15 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql6`
2693
2697
  _id
2694
2698
  content
2695
2699
  createdAt
2696
- senderAvatar
2697
2700
  senderId
2698
- senderName
2699
2701
  updatedAt
2700
2702
  }
2701
2703
  `;
2702
2704
  var CHAT_PARTICIPANT = gql6`
2703
2705
  fragment ChatParticipantFields on ChatParticipantType {
2704
2706
  active
2705
- email
2707
+ userAvatar
2708
+ userEmail
2706
2709
  userId
2707
2710
  userName
2708
2711
  }
@@ -4705,6 +4708,7 @@ var startTimeCannotBeInPastTest = yup.string().test(
4705
4708
  }
4706
4709
  );
4707
4710
  var dateTimeSchema = yup.object().shape({
4711
+ dateStatus: yup.mixed().oneOf(Object.values(EnumEventDateStatus)).required("Date status is required"),
4708
4712
  endDate: yup.string().label("End Date").concat(endDateNotInPastTest).concat(endDateAfterStartDateTest).required("End date is required"),
4709
4713
  endTime: yup.string().label("End Time").concat(endTimeMustBeAfterStartTimeTest).required("End time is required"),
4710
4714
  startDate: yup.string().label("Start Date").concat(startDateNotInPastTest).required("Start date is required"),