@xhub-short/contracts 0.1.0-beta.7 → 0.1.0-beta.9

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.ts CHANGED
@@ -436,11 +436,13 @@ interface EditCommentPayload {
436
436
  * Payload for deleting a comment/reply
437
437
  */
438
438
  interface DeleteCommentPayload {
439
+ /** Video/Reel ID */
440
+ videoId: string;
439
441
  /** Comment/Reply ID */
440
- id: string;
441
- /** Whether this is a reply (affects API endpoint) */
442
+ commentId: string;
443
+ /** Whether this is a reply (affects local state update) */
442
444
  isReply?: boolean;
443
- /** Parent comment ID (required if isReply) */
445
+ /** Parent comment ID (required if isReply, for local state update) */
444
446
  parentId?: string;
445
447
  }
446
448
  /**
@@ -1408,7 +1410,7 @@ interface CommentEndpoints {
1408
1410
  postReply: string;
1409
1411
  /** Edit comment: PATCH /comments/:id */
1410
1412
  edit: string;
1411
- /** Delete comment: DELETE /comments/:id */
1413
+ /** Delete comment: DELETE /reels/:id/comments/:commentId */
1412
1414
  delete: string;
1413
1415
  /** Like comment: POST /comments/:id/like */
1414
1416
  like: string;
@@ -1479,7 +1481,7 @@ type MessageValues = Record<string, MessageValue>;
1479
1481
  * - number.* : Number formatting suffixes
1480
1482
  * - error.* : Generic errors
1481
1483
  */
1482
- type MessageKey = 'feed.loading' | 'feed.empty' | 'feed.endReached' | 'feed.error' | 'feed.retry' | 'player.loading' | 'player.error' | 'player.error.network' | 'player.error.decode' | 'player.error.notSupported' | 'player.error.aborted' | 'player.tapToRetry' | 'comment.title' | 'comment.placeholder' | 'comment.empty' | 'comment.loading' | 'comment.error' | 'comment.retry' | 'comment.post' | 'comment.reply' | 'comment.replyTo' | 'comment.viewReplies' | 'comment.hideReplies' | 'comment.loadReplies' | 'comment.viewMoreReplies' | 'comment.delete' | 'comment.report' | 'comment.count' | 'comment.replyCount' | 'comment.expand' | 'comment.collapse' | 'action.like' | 'action.liked' | 'action.comment' | 'action.share' | 'action.bookmark' | 'action.bookmarked' | 'action.follow' | 'action.following' | 'time.now' | 'time.seconds' | 'time.minutes' | 'time.hours' | 'time.days' | 'time.weeks' | 'time.months' | 'time.years' | 'number.thousand' | 'number.million' | 'number.billion' | 'error.generic' | 'error.network' | 'error.timeout' | 'cancel' | 'close' | 'ok' | 'done' | 'aria.loading' | 'aria.videoPlayer' | 'aria.retry' | 'aria.sortComments' | 'aria.closeComments' | 'aria.addMedia' | 'aria.submitComment' | 'aria.openEmoji' | 'aria.cancelReply' | 'guest.loginToComment';
1484
+ type MessageKey = 'feed.loading' | 'feed.empty' | 'feed.endReached' | 'feed.error' | 'feed.retry' | 'player.loading' | 'player.error' | 'player.error.network' | 'player.error.decode' | 'player.error.notSupported' | 'player.error.aborted' | 'player.tapToRetry' | 'comment.title' | 'comment.placeholder' | 'comment.empty' | 'comment.loading' | 'comment.error' | 'comment.retry' | 'comment.post' | 'comment.reply' | 'comment.replyTo' | 'comment.viewReplies' | 'comment.hideReplies' | 'comment.loadReplies' | 'comment.viewMoreReplies' | 'comment.delete' | 'comment.edit' | 'comment.report' | 'comment.deleteConfirmTitle' | 'comment.deleteConfirmMessage' | 'comment.deleteConfirmButton' | 'comment.count' | 'comment.replyCount' | 'comment.expand' | 'comment.collapse' | 'action.like' | 'action.liked' | 'action.comment' | 'action.share' | 'action.bookmark' | 'action.bookmarked' | 'action.follow' | 'action.following' | 'time.now' | 'time.seconds' | 'time.minutes' | 'time.hours' | 'time.days' | 'time.weeks' | 'time.months' | 'time.years' | 'number.thousand' | 'number.million' | 'number.billion' | 'error.generic' | 'error.network' | 'error.timeout' | 'common.cancel' | 'cancel' | 'close' | 'ok' | 'done' | 'aria.loading' | 'aria.videoPlayer' | 'aria.retry' | 'aria.sortComments' | 'aria.closeComments' | 'aria.addMedia' | 'aria.submitComment' | 'aria.openEmoji' | 'aria.cancelReply' | 'guest.loginToComment';
1483
1485
  /**
1484
1486
  * Complete message catalog type
1485
1487
  * All keys must be present
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ var DEFAULT_COMMENT_ENDPOINTS = {
19
19
  post: "/videos/:videoId/comments",
20
20
  postReply: "/comments/:commentId/replies",
21
21
  edit: "/comments/:id",
22
- delete: "/comments/:id",
22
+ delete: "/reels/:id/comments/:commentId",
23
23
  like: "/comments/:id/like",
24
24
  unlike: "/comments/:id/like",
25
25
  report: "/comments/:id/report"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xhub-short/contracts",
3
3
  "sideEffects": false,
4
- "version": "0.1.0-beta.7",
4
+ "version": "0.1.0-beta.9",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"