ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Returns {
          loading: boolean;
          error: string | null;
          createPost: (data: CreatePostData) => Promise<Post | null>;
          updatePost: (id: string, data: UpdatePostData) => Promise<Post | null>;
          deletePost: (id: string) => Promise<boolean>;
          toggleLike: (
              postId: string,
          ) => Promise<{ liked: boolean; likesCount: number } | null>;
          addComment: (
              postId: string,
              data: CreateCommentData,
          ) => Promise<PostComment | null>;
          deleteComment: (postId: string, commentId: string) => Promise<boolean>;
          getComments: (postId: string) => Promise<PostComment[]>;
      }