organify-ui 0.2.12 → 0.2.13

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.js CHANGED
@@ -4525,14 +4525,14 @@ function CommentThread({
4525
4525
  if (onAdd) return onAdd(input);
4526
4526
  const data = await gql(
4527
4527
  "projects",
4528
- `mutation($input: CreateTaskCommentInput!) {
4529
- createTaskComment(input: $input) {
4528
+ `mutation($input: CreateCommentInput!) {
4529
+ createComment(input: $input) {
4530
4530
  id content parentId isEdited createdAt updatedAt
4531
4531
  }
4532
4532
  }`,
4533
4533
  { input: { taskId: input.entityId, content: input.content, parentId: input.parentId } }
4534
4534
  );
4535
- return mapTaskComment(data.createTaskComment, currentUser);
4535
+ return mapTaskComment(data.createComment, currentUser);
4536
4536
  },
4537
4537
  // eslint-disable-next-line react-hooks/exhaustive-deps
4538
4538
  [gql, onAdd, currentUser.id]
@@ -4542,14 +4542,14 @@ function CommentThread({
4542
4542
  if (onEdit) return onEdit(commentId, content);
4543
4543
  const data = await gql(
4544
4544
  "projects",
4545
- `mutation($commentId: ID!, $content: String!) {
4546
- updateTaskComment(commentId: $commentId, input: { content: $content }) {
4545
+ `mutation($commentId: String!, $content: String!) {
4546
+ updateComment(id: $commentId, input: { content: $content }) {
4547
4547
  id content isEdited editedAt updatedAt
4548
4548
  }
4549
4549
  }`,
4550
4550
  { commentId, content }
4551
4551
  );
4552
- const raw = data.updateTaskComment;
4552
+ const raw = data.updateComment;
4553
4553
  return {
4554
4554
  id: raw.id,
4555
4555
  content: raw.content,
@@ -4564,7 +4564,7 @@ function CommentThread({
4564
4564
  if (onDelete) return onDelete(commentId);
4565
4565
  await gql(
4566
4566
  "projects",
4567
- `mutation($commentId: ID!) { deleteTaskComment(commentId: $commentId) }`,
4567
+ `mutation($commentId: String!) { deleteComment(id: $commentId) { success message } }`,
4568
4568
  { commentId }
4569
4569
  );
4570
4570
  },