@timardex/cluemart-shared 1.3.18 → 1.3.20

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
@@ -918,7 +918,7 @@ declare enum EnumPostContentType {
918
918
  }
919
919
  type PostContentCover = {
920
920
  cover: ResourceImageType;
921
- coverUpload?: ResourceImageType | null;
921
+ coverUpload?: File | null;
922
922
  };
923
923
  type PostContentTextarea = {
924
924
  textarea: {
@@ -928,7 +928,7 @@ type PostContentTextarea = {
928
928
  };
929
929
  type PostContentImage = {
930
930
  images: ResourceImageType[] | null;
931
- imagesUpload?: ResourceImageType[] | null;
931
+ imagesUpload?: File[] | null;
932
932
  };
933
933
  type PostContentVideo = {
934
934
  video: {
@@ -947,8 +947,8 @@ type PostContentList = {
947
947
  type PostContentData = PostContentCover | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
948
948
  type PostContentFormData = {
949
949
  contentData?: PostContentData | null;
950
- contentOrder: number;
951
- contentType: EnumPostContentType;
950
+ contentOrder?: number | null;
951
+ contentType?: EnumPostContentType | null;
952
952
  };
953
953
  interface PostFormData {
954
954
  active: boolean;
package/dist/index.d.ts CHANGED
@@ -918,7 +918,7 @@ declare enum EnumPostContentType {
918
918
  }
919
919
  type PostContentCover = {
920
920
  cover: ResourceImageType;
921
- coverUpload?: ResourceImageType | null;
921
+ coverUpload?: File | null;
922
922
  };
923
923
  type PostContentTextarea = {
924
924
  textarea: {
@@ -928,7 +928,7 @@ type PostContentTextarea = {
928
928
  };
929
929
  type PostContentImage = {
930
930
  images: ResourceImageType[] | null;
931
- imagesUpload?: ResourceImageType[] | null;
931
+ imagesUpload?: File[] | null;
932
932
  };
933
933
  type PostContentVideo = {
934
934
  video: {
@@ -947,8 +947,8 @@ type PostContentList = {
947
947
  type PostContentData = PostContentCover | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
948
948
  type PostContentFormData = {
949
949
  contentData?: PostContentData | null;
950
- contentOrder: number;
951
- contentType: EnumPostContentType;
950
+ contentOrder?: number | null;
951
+ contentType?: EnumPostContentType | null;
952
952
  };
953
953
  interface PostFormData {
954
954
  active: boolean;
package/dist/index.mjs CHANGED
@@ -5923,8 +5923,8 @@ var contentDataSchema = yup9.mixed().required("Content data is required").test(
5923
5923
  );
5924
5924
  var postContentSchema = yup9.object().shape({
5925
5925
  contentData: contentDataSchema.optional().nullable(),
5926
- contentOrder: yup9.number().min(0).nullable().required(),
5927
- contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).nullable().required()
5926
+ contentOrder: yup9.number().nullable(),
5927
+ contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
5928
5928
  });
5929
5929
  var postSchema = yup9.object().shape({
5930
5930
  active: yup9.boolean().required(),