@timardex/cluemart-shared 1.3.22 → 1.3.24

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.
@@ -3054,7 +3054,6 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
3054
3054
  `;
3055
3055
  var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
3056
3056
  fragment PostContentFields on PostContentType {
3057
- _id
3058
3057
  contentData {
3059
3058
  ...PostContentDataFields
3060
3059
  }
@@ -3070,10 +3069,11 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
3070
3069
  content {
3071
3070
  ...PostContentFields
3072
3071
  }
3072
+ createdAt
3073
+ deletedAt
3073
3074
  postType
3074
3075
  tags
3075
3076
  title
3076
- createdAt
3077
3077
  updatedAt
3078
3078
  }
3079
3079
  ${POST_CONTENT_FIELDS_FRAGMENT}
@@ -3087,8 +3087,8 @@ var GET_POSTS = import_client59.gql`
3087
3087
  ${POST_FIELDS_FRAGMENT}
3088
3088
  `;
3089
3089
  var GET_POST = import_client59.gql`
3090
- query getPost($postId: ID!) {
3091
- post(postId: $postId) {
3090
+ query getPost($_id: ID!) {
3091
+ post(_id: $_id) {
3092
3092
  ...PostFields
3093
3093
  }
3094
3094
  }
@@ -3155,10 +3155,10 @@ var useGetPosts = () => {
3155
3155
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
3156
3156
  return { error, loading, posts: data?.posts || [], refetch };
3157
3157
  };
3158
- var useGetPost = (postId) => {
3158
+ var useGetPost = (_id) => {
3159
3159
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
3160
- skip: !postId,
3161
- variables: { postId }
3160
+ skip: !_id,
3161
+ variables: { _id }
3162
3162
  });
3163
3163
  return { error, loading, post: data?.post || null, refetch };
3164
3164
  };