@timardex/cluemart-server-shared 1.0.43 → 1.0.45

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.
@@ -9745,7 +9745,9 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql`
9745
9745
  }
9746
9746
  list {
9747
9747
  title
9748
- items
9748
+ items {
9749
+ text
9750
+ }
9749
9751
  }
9750
9752
  }
9751
9753
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
@@ -9764,6 +9766,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql`
9764
9766
  var POST_FIELDS_FRAGMENT = gql`
9765
9767
  fragment PostFields on PostType {
9766
9768
  _id
9769
+ active
9767
9770
  content {
9768
9771
  ...PostContentFields
9769
9772
  }
@@ -10400,7 +10403,11 @@ var videoContentSchema = create$3({
10400
10403
  });
10401
10404
  var listContentSchema = create$3({
10402
10405
  list: create$3({
10403
- items: create$2().of(create$6().required()).min(1, "List must contain at least one item").required(),
10406
+ items: create$2().of(
10407
+ create$3({
10408
+ text: create$6().required("List item text is required")
10409
+ })
10410
+ ).min(1, "List must contain at least one item").required(),
10404
10411
  title: create$6().optional()
10405
10412
  }).required()
10406
10413
  });
@@ -10435,9 +10442,10 @@ var postContentSchema = create$3().shape({
10435
10442
  contentType: create$8().oneOf(Object.values(EnumPostContentType)).required()
10436
10443
  });
10437
10444
  var postSchema = create$3().shape({
10445
+ active: create$7().required(),
10438
10446
  content: create$2().of(postContentSchema).required(),
10439
10447
  postType: create$8().oneOf(Object.values(EnumPostType)).required(),
10440
- tags: create$2().of(create$6()).nullable().optional(),
10448
+ tags: create$2().of(create$6().required()).nullable().optional(),
10441
10449
  title: create$6().required()
10442
10450
  });
10443
10451
  var defaultLocation = {
@@ -11621,6 +11629,7 @@ var contentSchema = new MongooseSchema16(
11621
11629
  );
11622
11630
  var schema12 = new MongooseSchema16(
11623
11631
  {
11632
+ active: { default: true, required: true, type: Boolean },
11624
11633
  content: { required: true, type: contentSchema },
11625
11634
  postType: {
11626
11635
  enum: Object.values(EnumPostType),
@@ -11692,4 +11701,4 @@ react/cjs/react.development.js:
11692
11701
  * LICENSE file in the root directory of this source tree.
11693
11702
  *)
11694
11703
  */
11695
- //# sourceMappingURL=chunk-QA4UVYI6.mjs.map
11704
+ //# sourceMappingURL=chunk-ABSUDG4T.mjs.map