@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.
package/dist/index.cjs CHANGED
@@ -5334,7 +5334,6 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
5334
5334
  `;
5335
5335
  var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
5336
5336
  fragment PostContentFields on PostContentType {
5337
- _id
5338
5337
  contentData {
5339
5338
  ...PostContentDataFields
5340
5339
  }
@@ -5350,10 +5349,11 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
5350
5349
  content {
5351
5350
  ...PostContentFields
5352
5351
  }
5352
+ createdAt
5353
+ deletedAt
5353
5354
  postType
5354
5355
  tags
5355
5356
  title
5356
- createdAt
5357
5357
  updatedAt
5358
5358
  }
5359
5359
  ${POST_CONTENT_FIELDS_FRAGMENT}
@@ -5367,8 +5367,8 @@ var GET_POSTS = import_client59.gql`
5367
5367
  ${POST_FIELDS_FRAGMENT}
5368
5368
  `;
5369
5369
  var GET_POST = import_client59.gql`
5370
- query getPost($postId: ID!) {
5371
- post(postId: $postId) {
5370
+ query getPost($_id: ID!) {
5371
+ post(_id: $_id) {
5372
5372
  ...PostFields
5373
5373
  }
5374
5374
  }
@@ -5435,10 +5435,10 @@ var useGetPosts = () => {
5435
5435
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
5436
5436
  return { error, loading, posts: data?.posts || [], refetch };
5437
5437
  };
5438
- var useGetPost = (postId) => {
5438
+ var useGetPost = (_id) => {
5439
5439
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
5440
- skip: !postId,
5441
- variables: { postId }
5440
+ skip: !_id,
5441
+ variables: { _id }
5442
5442
  });
5443
5443
  return { error, loading, post: data?.post || null, refetch };
5444
5444
  };