@timardex/cluemart-shared 1.2.46 → 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;
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;
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}
@@ -4704,6 +4708,7 @@ var startTimeCannotBeInPastTest = yup.string().test(
4704
4708
  }
4705
4709
  );
4706
4710
  var dateTimeSchema = yup.object().shape({
4711
+ dateStatus: yup.mixed().oneOf(Object.values(EnumEventDateStatus)).required("Date status is required"),
4707
4712
  endDate: yup.string().label("End Date").concat(endDateNotInPastTest).concat(endDateAfterStartDateTest).required("End date is required"),
4708
4713
  endTime: yup.string().label("End Time").concat(endTimeMustBeAfterStartTimeTest).required("End time is required"),
4709
4714
  startDate: yup.string().label("Start Date").concat(startDateNotInPastTest).required("Start date is required"),