@amityco/ts-sdk 7.27.1-fe406650.0 → 7.27.1

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.
Files changed (219) hide show
  1. package/dist/@types/core/errors.d.ts +1 -2
  2. package/dist/@types/core/errors.d.ts.map +1 -1
  3. package/dist/@types/core/events.d.ts +0 -5
  4. package/dist/@types/core/events.d.ts.map +1 -1
  5. package/dist/@types/core/payload.d.ts +0 -26
  6. package/dist/@types/core/payload.d.ts.map +1 -1
  7. package/dist/@types/core/permissions.d.ts +4 -10
  8. package/dist/@types/core/permissions.d.ts.map +1 -1
  9. package/dist/@types/core/transport.d.ts +0 -1
  10. package/dist/@types/core/transport.d.ts.map +1 -1
  11. package/dist/@types/domains/analytics.d.ts +1 -3
  12. package/dist/@types/domains/analytics.d.ts.map +1 -1
  13. package/dist/@types/domains/channel.d.ts +0 -5
  14. package/dist/@types/domains/channel.d.ts.map +1 -1
  15. package/dist/@types/domains/client.d.ts +0 -104
  16. package/dist/@types/domains/client.d.ts.map +1 -1
  17. package/dist/@types/domains/comment.d.ts +0 -27
  18. package/dist/@types/domains/comment.d.ts.map +1 -1
  19. package/dist/@types/domains/community.d.ts +0 -1
  20. package/dist/@types/domains/community.d.ts.map +1 -1
  21. package/dist/@types/domains/post.d.ts +0 -11
  22. package/dist/@types/domains/post.d.ts.map +1 -1
  23. package/dist/@types/index.d.ts +1 -3
  24. package/dist/@types/index.d.ts.map +1 -1
  25. package/dist/analytic/service/analytic/AnalyticsEngine.d.ts +0 -3
  26. package/dist/analytic/service/analytic/AnalyticsEngine.d.ts.map +1 -1
  27. package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts +0 -3
  28. package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts.map +1 -1
  29. package/dist/channelRepository/events/index.d.ts +0 -2
  30. package/dist/channelRepository/events/index.d.ts.map +1 -1
  31. package/dist/channelRepository/events/onChannelMemberRoleAdded.d.ts +0 -22
  32. package/dist/channelRepository/events/onChannelMemberRoleAdded.d.ts.map +1 -1
  33. package/dist/channelRepository/events/onChannelMemberRoleRemoved.d.ts +0 -22
  34. package/dist/channelRepository/events/onChannelMemberRoleRemoved.d.ts.map +1 -1
  35. package/dist/channelRepository/observers/getChannel.d.ts.map +1 -1
  36. package/dist/channelRepository/observers/getChannels/ChannelLiveCollectionController.d.ts.map +1 -1
  37. package/dist/channelRepository/observers/getMyMembership.d.ts.map +1 -1
  38. package/dist/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.d.ts.map +1 -1
  39. package/dist/channelRepository/utils/index.d.ts +0 -2
  40. package/dist/channelRepository/utils/index.d.ts.map +1 -1
  41. package/dist/client/api/createClient.d.ts +1 -5
  42. package/dist/client/api/createClient.d.ts.map +1 -1
  43. package/dist/client/api/getSocialSettings.d.ts.map +1 -1
  44. package/dist/client/api/index.d.ts +0 -1
  45. package/dist/client/api/index.d.ts.map +1 -1
  46. package/dist/client/api/setupLoginSubscriptions.d.ts.map +1 -1
  47. package/dist/client/index.d.ts +0 -1
  48. package/dist/client/index.d.ts.map +1 -1
  49. package/dist/commentRepository/api/createComment.d.ts +1 -12
  50. package/dist/commentRepository/api/createComment.d.ts.map +1 -1
  51. package/dist/commentRepository/api/deleteComment.d.ts.map +1 -1
  52. package/dist/commentRepository/api/index.d.ts +0 -2
  53. package/dist/commentRepository/api/index.d.ts.map +1 -1
  54. package/dist/commentRepository/api/updateComment.d.ts.map +1 -1
  55. package/dist/commentRepository/events/index.d.ts +0 -1
  56. package/dist/commentRepository/events/index.d.ts.map +1 -1
  57. package/dist/commentRepository/events/utils.d.ts.map +1 -1
  58. package/dist/commentRepository/internalApi/getComment.d.ts.map +1 -1
  59. package/dist/commentRepository/observers/getComment.d.ts.map +1 -1
  60. package/dist/commentRepository/observers/getComments/CommentLiveCollectionController.d.ts +1 -1
  61. package/dist/commentRepository/observers/getComments/CommentLiveCollectionController.d.ts.map +1 -1
  62. package/dist/commentRepository/observers/getComments/CommentQueryStreamController.d.ts.map +1 -1
  63. package/dist/commentRepository/observers/getComments/enums.d.ts +0 -1
  64. package/dist/commentRepository/observers/getComments/enums.d.ts.map +1 -1
  65. package/dist/commentRepository/observers/index.d.ts +0 -1
  66. package/dist/commentRepository/observers/index.d.ts.map +1 -1
  67. package/dist/commentRepository/utils/payload.d.ts +0 -6
  68. package/dist/commentRepository/utils/payload.d.ts.map +1 -1
  69. package/dist/communityRepository/api/createCommunity.d.ts +1 -1
  70. package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
  71. package/dist/communityRepository/api/updateCommunity.d.ts +1 -1
  72. package/dist/communityRepository/api/updateCommunity.d.ts.map +1 -1
  73. package/dist/core/device.d.ts +1 -1
  74. package/dist/core/device.d.ts.map +1 -1
  75. package/dist/core/errors.d.ts +0 -20
  76. package/dist/core/errors.d.ts.map +1 -1
  77. package/dist/core/events.d.ts +3 -3
  78. package/dist/core/events.d.ts.map +1 -1
  79. package/dist/core/transports/http.d.ts.map +1 -1
  80. package/dist/core/transports/mqtt.d.ts.map +1 -1
  81. package/dist/core/transports/tests/mqtt.connackTimeout.test.d.ts +2 -0
  82. package/dist/core/transports/tests/mqtt.connackTimeout.test.d.ts.map +1 -0
  83. package/dist/core/transports/utils.d.ts +0 -8
  84. package/dist/core/transports/utils.d.ts.map +1 -1
  85. package/dist/index.cjs.js +479 -1948
  86. package/dist/index.d.ts +0 -3
  87. package/dist/index.d.ts.map +1 -1
  88. package/dist/index.esm.js +455 -1921
  89. package/dist/index.umd.js +2 -2
  90. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +0 -1
  91. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
  92. package/dist/messageRepository/api/index.d.ts +0 -2
  93. package/dist/messageRepository/api/index.d.ts.map +1 -1
  94. package/dist/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.d.ts +1 -25
  95. package/dist/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.d.ts.map +1 -1
  96. package/dist/postRepository/utils/payload.d.ts.map +1 -1
  97. package/dist/utils/constants.d.ts +0 -4
  98. package/dist/utils/constants.d.ts.map +1 -1
  99. package/dist/utils/linkedObject/commentLinkedObject.d.ts.map +1 -1
  100. package/dist/utils/linkedObject/index.d.ts +0 -1
  101. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  102. package/dist/utils/linkedObject/messageLinkedObject.d.ts.map +1 -1
  103. package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
  104. package/dist/utils/tests/dummy/comment.d.ts +0 -1
  105. package/dist/utils/tests/dummy/comment.d.ts.map +1 -1
  106. package/dist/utils/tests/dummy/index.d.ts +0 -1
  107. package/dist/utils/tests/dummy/index.d.ts.map +1 -1
  108. package/dist/utils/tests/dummy/post.d.ts.map +1 -1
  109. package/package.json +2 -3
  110. package/dist/@types/domains/curatedContent.d.ts +0 -25
  111. package/dist/@types/domains/curatedContent.d.ts.map +0 -1
  112. package/dist/@types/domains/pinnedMessage.d.ts +0 -43
  113. package/dist/@types/domains/pinnedMessage.d.ts.map +0 -1
  114. package/dist/channelRepository/events/onChannelMessagePinned.d.ts +0 -24
  115. package/dist/channelRepository/events/onChannelMessagePinned.d.ts.map +0 -1
  116. package/dist/channelRepository/events/onChannelMessageUnpinned.d.ts +0 -21
  117. package/dist/channelRepository/events/onChannelMessageUnpinned.d.ts.map +0 -1
  118. package/dist/channelRepository/events/onChannelPinnedMessageDeleted.d.ts +0 -12
  119. package/dist/channelRepository/events/onChannelPinnedMessageDeleted.d.ts.map +0 -1
  120. package/dist/channelRepository/events/tests/onChannelMemberRoleAdded.test.d.ts +0 -2
  121. package/dist/channelRepository/events/tests/onChannelMemberRoleAdded.test.d.ts.map +0 -1
  122. package/dist/channelRepository/events/tests/onChannelMemberRoleRemoved.test.d.ts +0 -2
  123. package/dist/channelRepository/events/tests/onChannelMemberRoleRemoved.test.d.ts.map +0 -1
  124. package/dist/channelRepository/events/tests/onChannelMessagePinned.test.d.ts +0 -2
  125. package/dist/channelRepository/events/tests/onChannelMessagePinned.test.d.ts.map +0 -1
  126. package/dist/channelRepository/utils/applyChannelRolePayload.d.ts +0 -21
  127. package/dist/channelRepository/utils/applyChannelRolePayload.d.ts.map +0 -1
  128. package/dist/channelRepository/utils/tests/pinnedMessage.test.d.ts +0 -2
  129. package/dist/channelRepository/utils/tests/pinnedMessage.test.d.ts.map +0 -1
  130. package/dist/channelRepository/utils/updatePinnedMessageCache.d.ts +0 -24
  131. package/dist/channelRepository/utils/updatePinnedMessageCache.d.ts.map +0 -1
  132. package/dist/client/api/getModuleSettings.d.ts +0 -25
  133. package/dist/client/api/getModuleSettings.d.ts.map +0 -1
  134. package/dist/client/api/tests/getSocialSettings.test.d.ts +0 -2
  135. package/dist/client/api/tests/getSocialSettings.test.d.ts.map +0 -1
  136. package/dist/client/api/tests/integration/moduleSettings.integration.test.d.ts +0 -2
  137. package/dist/client/api/tests/integration/moduleSettings.integration.test.d.ts.map +0 -1
  138. package/dist/client/utils/parseModuleSettings.d.ts +0 -9
  139. package/dist/client/utils/parseModuleSettings.d.ts.map +0 -1
  140. package/dist/client/utils/resolveModuleAvailability.d.ts +0 -39
  141. package/dist/client/utils/resolveModuleAvailability.d.ts.map +0 -1
  142. package/dist/client/utils/tests/resolveModuleAvailability.test.d.ts +0 -2
  143. package/dist/client/utils/tests/resolveModuleAvailability.test.d.ts.map +0 -1
  144. package/dist/commentRepository/api/approveComment.d.ts +0 -17
  145. package/dist/commentRepository/api/approveComment.d.ts.map +0 -1
  146. package/dist/commentRepository/api/declineComment.d.ts +0 -18
  147. package/dist/commentRepository/api/declineComment.d.ts.map +0 -1
  148. package/dist/commentRepository/api/tests/approveComment.test.d.ts +0 -2
  149. package/dist/commentRepository/api/tests/approveComment.test.d.ts.map +0 -1
  150. package/dist/commentRepository/api/tests/createComment.optimistic.test.d.ts +0 -2
  151. package/dist/commentRepository/api/tests/createComment.optimistic.test.d.ts.map +0 -1
  152. package/dist/commentRepository/api/tests/declineComment.test.d.ts +0 -2
  153. package/dist/commentRepository/api/tests/declineComment.test.d.ts.map +0 -1
  154. package/dist/commentRepository/events/onCommentApproved.d.ts +0 -17
  155. package/dist/commentRepository/events/onCommentApproved.d.ts.map +0 -1
  156. package/dist/commentRepository/events/tests/onCommentApproved.test.d.ts +0 -2
  157. package/dist/commentRepository/events/tests/onCommentApproved.test.d.ts.map +0 -1
  158. package/dist/commentRepository/events/tests/onCommentCreated.count.test.d.ts +0 -2
  159. package/dist/commentRepository/events/tests/onCommentCreated.count.test.d.ts.map +0 -1
  160. package/dist/commentRepository/observers/getCommentReviewQueue/LiveCollectionController.d.ts +0 -13
  161. package/dist/commentRepository/observers/getCommentReviewQueue/LiveCollectionController.d.ts.map +0 -1
  162. package/dist/commentRepository/observers/getCommentReviewQueue/PaginationController.d.ts +0 -5
  163. package/dist/commentRepository/observers/getCommentReviewQueue/PaginationController.d.ts.map +0 -1
  164. package/dist/commentRepository/observers/getCommentReviewQueue/QueryStreamController.d.ts +0 -15
  165. package/dist/commentRepository/observers/getCommentReviewQueue/QueryStreamController.d.ts.map +0 -1
  166. package/dist/commentRepository/observers/getCommentReviewQueue.d.ts +0 -22
  167. package/dist/commentRepository/observers/getCommentReviewQueue.d.ts.map +0 -1
  168. package/dist/commentRepository/observers/tests/integrations/getCommentReviewQueue.integration.test.d.ts +0 -2
  169. package/dist/commentRepository/observers/tests/integrations/getCommentReviewQueue.integration.test.d.ts.map +0 -1
  170. package/dist/commentRepository/utils/approval.d.ts +0 -49
  171. package/dist/commentRepository/utils/approval.d.ts.map +0 -1
  172. package/dist/commentRepository/utils/tests/approval.test.d.ts +0 -2
  173. package/dist/commentRepository/utils/tests/approval.test.d.ts.map +0 -1
  174. package/dist/commentRepository/utils/tests/payload.test.d.ts +0 -2
  175. package/dist/commentRepository/utils/tests/payload.test.d.ts.map +0 -1
  176. package/dist/core/tests/device.test.d.ts +0 -2
  177. package/dist/core/tests/device.test.d.ts.map +0 -1
  178. package/dist/core/transports/tests/moduleNotEntitled.test.d.ts +0 -2
  179. package/dist/core/transports/tests/moduleNotEntitled.test.d.ts.map +0 -1
  180. package/dist/curatedContentRepository/api/getPool.d.ts +0 -2
  181. package/dist/curatedContentRepository/api/getPool.d.ts.map +0 -1
  182. package/dist/curatedContentRepository/api/index.d.ts +0 -2
  183. package/dist/curatedContentRepository/api/index.d.ts.map +0 -1
  184. package/dist/curatedContentRepository/api/tests/getPool.test.d.ts +0 -2
  185. package/dist/curatedContentRepository/api/tests/getPool.test.d.ts.map +0 -1
  186. package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts +0 -2
  187. package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts.map +0 -1
  188. package/dist/curatedContentRepository/index.d.ts +0 -2
  189. package/dist/curatedContentRepository/index.d.ts.map +0 -1
  190. package/dist/messageRepository/api/pinMessage.d.ts +0 -29
  191. package/dist/messageRepository/api/pinMessage.d.ts.map +0 -1
  192. package/dist/messageRepository/api/tests/pinMessage.test.d.ts +0 -2
  193. package/dist/messageRepository/api/tests/pinMessage.test.d.ts.map +0 -1
  194. package/dist/messageRepository/api/tests/unpinMessage.test.d.ts +0 -2
  195. package/dist/messageRepository/api/tests/unpinMessage.test.d.ts.map +0 -1
  196. package/dist/messageRepository/api/unpinMessage.d.ts +0 -28
  197. package/dist/messageRepository/api/unpinMessage.d.ts.map +0 -1
  198. package/dist/messageRepository/utils/refreshChannelPermissionsForMessage.d.ts +0 -13
  199. package/dist/messageRepository/utils/refreshChannelPermissionsForMessage.d.ts.map +0 -1
  200. package/dist/postRepository/utils/PostCommentCountEngine/ApproveTask.d.ts +0 -16
  201. package/dist/postRepository/utils/PostCommentCountEngine/ApproveTask.d.ts.map +0 -1
  202. package/dist/postRepository/utils/PostCommentCountEngine/postCommentCountEngineOnLoginHandler.d.ts +0 -9
  203. package/dist/postRepository/utils/PostCommentCountEngine/postCommentCountEngineOnLoginHandler.d.ts.map +0 -1
  204. package/dist/postRepository/utils/PostCommentCountEngine/tests/getLocalCommentCount.test.d.ts +0 -2
  205. package/dist/postRepository/utils/PostCommentCountEngine/tests/getLocalCommentCount.test.d.ts.map +0 -1
  206. package/dist/postRepository/utils/PostCommentCountEngine/tests/pendingAuthoredComments.test.d.ts +0 -2
  207. package/dist/postRepository/utils/PostCommentCountEngine/tests/pendingAuthoredComments.test.d.ts.map +0 -1
  208. package/dist/postRepository/utils/latestComments.d.ts +0 -10
  209. package/dist/postRepository/utils/latestComments.d.ts.map +0 -1
  210. package/dist/postRepository/utils/tests/latestComments.test.d.ts +0 -2
  211. package/dist/postRepository/utils/tests/latestComments.test.d.ts.map +0 -1
  212. package/dist/postRepository/utils/tests/payload.test.d.ts +0 -2
  213. package/dist/postRepository/utils/tests/payload.test.d.ts.map +0 -1
  214. package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts +0 -2
  215. package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts.map +0 -1
  216. package/dist/utils/linkedObject/tests/postLinkedObject.test.d.ts +0 -2
  217. package/dist/utils/linkedObject/tests/postLinkedObject.test.d.ts.map +0 -1
  218. package/dist/utils/tests/dummy/pinnedMessage.d.ts +0 -2
  219. package/dist/utils/tests/dummy/pinnedMessage.d.ts.map +0 -1
@@ -20,7 +20,6 @@ export declare const getChannelMessagePreviewWithUser: (channel: Amity.StaticInt
20
20
  messageCount: number;
21
21
  moderatorMemberCount?: number | undefined;
22
22
  messagePreviewId?: string | undefined;
23
- pinnedMessage?: Amity.RawPinnedMessage<any> | null | undefined;
24
23
  isPublic?: boolean | undefined;
25
24
  lastActivity: string;
26
25
  attachedTo?: {
@@ -1 +1 @@
1
- {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
1
+ {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
@@ -3,8 +3,6 @@ export * from './updateMessage';
3
3
  export * from './editMessage';
4
4
  export * from './deleteMessage';
5
5
  export * from './softDeleteMessage';
6
- export * from './pinMessage';
7
- export * from './unpinMessage';
8
6
  export * from './markAsDelivered';
9
7
  export * from './getReadUsers';
10
8
  export * from './getDeliveredUsers';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
@@ -3,37 +3,13 @@ export declare class PostCommentCountEngine {
3
3
  private isProcessing;
4
4
  private tasks;
5
5
  private commentChangeTracker;
6
- private pendingAuthoredCommentIds;
7
6
  private static readonly BATCH_SIZE;
8
7
  queueCommentChangeTask(task: CommentChangeTask): void;
9
- addPendingAuthoredComment(postId: string, commentId: string, { publish }?: {
10
- publish?: boolean;
11
- }): void;
12
- removePendingAuthoredComment(postId: string, commentId: string, { publish }?: {
13
- publish?: boolean;
14
- }): boolean;
15
- /** Whether a post payload has seeded this post; without one every count is `0`. */
16
- hasTracker(postId: string): boolean;
17
- isPendingAuthoredComment(postId: string, commentId: string): boolean;
18
- reset(): void;
19
- private publishIfTracked;
20
8
  private processCommentChangeTask;
21
9
  private processResetTaskInternal;
22
10
  private processCreateTaskInternal;
23
- private processApproveTaskInternal;
24
11
  private processDeleteTaskInternal;
25
- /**
26
- * The count as this session sees it: the last server figure plus the local delta.
27
- *
28
- * `includePending` adds the logged-in user's own pending comments — the author's view. A
29
- * pending id is added only while the public delta does not already count it, so a comment
30
- * present in both sets counts once: a `comment.created` that arrives pending after the
31
- * `comment.approved` hand-over adds nothing, while an approved comment sent back to review
32
- * (created, deleted and pending all hold its id) keeps the author's +1.
33
- *
34
- * `0` for a post no payload has seeded yet; callers fall back to the post's own figure.
35
- */
36
- getLocalCommentCount(postId: string, includePending?: boolean): number;
12
+ private computeCommentCount;
37
13
  private static publishUpdate;
38
14
  }
39
15
  declare const _default: {
@@ -1 +1 @@
1
- {"version":3,"file":"PostCommentCountEngine.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.ts"],"names":[],"mappings":"AAMA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEnE,qBAAa,sBAAsB;IACjC,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,oBAAoB,CAAyC;IAKrE,OAAO,CAAC,yBAAyB,CAAuC;IAExE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAM;IAExC,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI;IAOrD,yBAAyB,CACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,EAAE,OAAc,EAAE,GAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAO,GAC7C,IAAI;IAUP,4BAA4B,CAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,EAAE,OAAc,EAAE,GAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAO,GAC7C,OAAO;IAUV,mFAAmF;IACnF,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAInC,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;IAKpE,KAAK,IAAI,IAAI;IAMb,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,wBAAwB;IAsChC,OAAO,CAAC,wBAAwB;IAShC,OAAO,CAAC,yBAAyB;IAejC,OAAO,CAAC,0BAA0B;IAelC,OAAO,CAAC,yBAAyB;IAQjC;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,UAAQ,GAAG,MAAM;IAiBpE,OAAO,CAAC,MAAM,CAAC,aAAa;CAc7B;;;;AAID,wBAOE"}
1
+ {"version":3,"file":"PostCommentCountEngine.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAInE,qBAAa,sBAAsB;IACjC,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,oBAAoB,CAAyC;IAErE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAM;IAExC,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI;IAOrD,OAAO,CAAC,wBAAwB;IAqChC,OAAO,CAAC,wBAAwB;IAShC,OAAO,CAAC,yBAAyB;IASjC,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,MAAM,CAAC,aAAa;CAc7B;;;;AAID,wBAOE"}
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/postRepository/utils/payload.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,kBAAkB,YAAa,MAAM,WAAW,KAAG,MAAM,oBAiFrE,CAAC;AAEF,eAAO,MAAM,gCAAgC,4CAI1C,MAAM,yBAAyB,KAAG,MAAM,kCAO1C,CAAC"}
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/postRepository/utils/payload.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,kBAAkB,YAAa,MAAM,WAAW,KAAG,MAAM,oBA2ErE,CAAC;AAEF,eAAO,MAAM,gCAAgC,4CAI1C,MAAM,yBAAyB,KAAG,MAAM,kCAO1C,CAAC"}
@@ -1,5 +1,4 @@
1
1
  export declare const COLLECTION_DEFAULT_PAGINATION_LIMIT = 5;
2
- export declare const LATEST_COMMENTS_LIMIT = 5;
3
2
  export declare const COLLECTION_DEFAULT_PAGINATION_SIZE = 20;
4
3
  export declare const COLLECTION_DEFAULT_CACHING_POLICY: Amity.QueryPolicy;
5
4
  export declare const ENABLE_CACHE_MESSAGE = "For using Live Collection feature you need to enable Cache!";
@@ -16,8 +15,5 @@ export declare const YEAR: number;
16
15
  export declare const ACCESS_TOKEN_WATCHER_INTERVAL: number;
17
16
  export declare const API_ENDPOINTS: {
18
17
  forYouFeed: string;
19
- commentReviewQueue: (communityId: Amity.Community['communityId']) => string;
20
18
  };
21
- export declare const COMMENT_REVIEW_QUEUE_DEFAULT_PAGINATION_SIZE = 10;
22
- export declare const COMMENT_REVIEW_QUEUE_MAX_PAGINATION_SIZE = 100;
23
19
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,WAAiC,CAAC;AACxF,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAClG,eAAO,MAAM,gCAAgC,4DACc,CAAC;AAC5D,eAAO,MAAM,iCAAiC,+DACgB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,MAAM,OAAO,CAAC;AAC3B,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAO,MAAM,IAAI,QAAc,CAAC;AAChC,eAAO,MAAM,GAAG,QAAY,CAAC;AAC7B,eAAO,MAAM,IAAI,QAAU,CAAC;AAC5B,eAAO,MAAM,KAAK,QAAW,CAAC;AAC9B,eAAO,MAAM,IAAI,QAAY,CAAC;AAC9B,eAAO,MAAM,6BAA6B,QAAc,CAAC;AAEzD,eAAO,MAAM,aAAa;;sCAEU,MAAM,SAAS,CAAC,aAAa,CAAC;CAEjE,CAAC;AAGF,eAAO,MAAM,4CAA4C,KAAK,CAAC;AAC/D,eAAO,MAAM,wCAAwC,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,WAAiC,CAAC;AACxF,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAClG,eAAO,MAAM,gCAAgC,4DACc,CAAC;AAC5D,eAAO,MAAM,iCAAiC,+DACgB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,MAAM,OAAO,CAAC;AAC3B,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAO,MAAM,IAAI,QAAc,CAAC;AAChC,eAAO,MAAM,GAAG,QAAY,CAAC;AAC7B,eAAO,MAAM,IAAI,QAAU,CAAC;AAC5B,eAAO,MAAM,KAAK,QAAW,CAAC;AAC9B,eAAO,MAAM,IAAI,QAAY,CAAC;AAC9B,eAAO,MAAM,6BAA6B,QAAc,CAAC;AAEzD,eAAO,MAAM,aAAa;;CAEzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"commentLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/commentLinkedObject.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB,YAAa,MAAM,eAAe,KAAG,aA+DpE,CAAC"}
1
+ {"version":3,"file":"commentLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/commentLinkedObject.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,YAAa,MAAM,eAAe,KAAG,aA6DpE,CAAC"}
@@ -22,6 +22,5 @@ export declare const LinkedObject: {
22
22
  eventResponse: (event: Amity.RawEventResponse) => Amity.EventResponse;
23
23
  product: (product: Amity.RawProduct) => Amity.Product;
24
24
  poll: (poll: Amity.RawPoll) => Amity.Poll;
25
- curatedContentTopic: (topic: Amity.RawCuratedContentTopic) => Amity.CuratedContentTopic;
26
25
  };
27
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;CAwBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"messageLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/messageLinkedObject.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,YAAa,MAAM,eAAe,KAAG,MAAM,OAkB1E,CAAC"}
1
+ {"version":3,"file":"messageLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/messageLinkedObject.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,YAAa,MAAM,eAAe,KAAG,MAAM,OAiB1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IA2MjE,CAAC"}
1
+ {"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAwMjE,CAAC"}
@@ -20,7 +20,6 @@ export declare const generateComment: (params?: Partial<Amity.InternalComment>)
20
20
  targetId: string;
21
21
  targetType: "user" | "community" | "content";
22
22
  links?: Amity.Link[] | undefined;
23
- approvalStatus?: "pending" | "approved" | "rejected" | undefined;
24
23
  referenceId: string;
25
24
  referenceType: Amity.CommentReferenceType;
26
25
  dataType?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMxD,wBAAgB,uBAAuB,CAC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AAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAYpF,CAAC"}
@@ -21,5 +21,4 @@ export * from './community';
21
21
  export * from './category';
22
22
  export * from './stream';
23
23
  export * from './feed';
24
- export * from './pinnedMessage';
25
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAA2B,CAAC;AAC7C,eAAO,MAAM,mBAAmB;;;CAAiC,CAAC;AAElE,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAE3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAEzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAE3B,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAA2B,CAAC;AAC7C,eAAO,MAAM,mBAAmB;;;CAAiC,CAAC;AAElE,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAE3B,cAAc,WAAW,CAAC;AAC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AAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;CAUlC,CAAC"}
1
+ {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/post.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,YAAY,CA+B7F;AAED,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CA2BrE;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAqB,CAAC;AAEjD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAO1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAQ1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAI1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,YAAqC,CAAC;AAEzE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,YAGlC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,YAGlC,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CAc5B,CAAC;AAIF,eAAO,MAAM,iBAAiB;;;;;;CAU7B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAU9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;CAUlC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.27.1-fe406650.0",
3
+ "version": "7.27.1",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -76,7 +76,6 @@
76
76
  "mitt": "^3.0.0",
77
77
  "mqtt": "^5.15.2",
78
78
  "object-hash": "^3.0.0",
79
- "react-native-uuid": "^2.0.1",
80
- "ua-parser-js": "^2.0.10"
79
+ "react-native-uuid": "^2.0.1"
81
80
  }
82
81
  }
@@ -1,25 +0,0 @@
1
- export {};
2
- declare global {
3
- namespace Amity {
4
- type RawCuratedContentTopic = {
5
- topicId: string;
6
- topicName: string;
7
- refreshedAt: string | null;
8
- poolSize: number;
9
- };
10
- type InternalCuratedContentTopic = Amity.RawCuratedContentTopic;
11
- type CuratedContentAnalytics = {
12
- markAsViewed(): void;
13
- markPostAsViewed(postId: string): void;
14
- markPostClick(postId: string): void;
15
- };
16
- type CuratedContentTopic = Amity.InternalCuratedContentTopic & {
17
- readonly analytics: Amity.CuratedContentAnalytics;
18
- };
19
- type CuratedContentPool = {
20
- topic: Amity.CuratedContentTopic;
21
- posts: Amity.Post[];
22
- };
23
- }
24
- }
25
- //# sourceMappingURL=curatedContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"curatedContent.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/curatedContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,sBAAsB,GAAG;YAC5B,OAAO,EAAE,MAAM,CAAC;YAChB,SAAS,EAAE,MAAM,CAAC;YAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;YAC3B,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QAEF,KAAK,2BAA2B,GAAG,KAAK,CAAC,sBAAsB,CAAC;QAEhE,KAAK,uBAAuB,GAAG;YAC7B,YAAY,IAAI,IAAI,CAAC;YACrB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;YACvC,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;SACrC,CAAC;QAEF,KAAK,mBAAmB,GAAG,KAAK,CAAC,2BAA2B,GAAG;YAC7D,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,uBAAuB,CAAC;SACnD,CAAC;QAEF,KAAK,kBAAkB,GAAG;YACxB,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC;YACjC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;SACrB,CAAC;KACH;CACF"}
@@ -1,43 +0,0 @@
1
- export {};
2
- declare global {
3
- namespace Amity {
4
- /**
5
- * The single pinned message of a livestream (`live`) channel, as serialized by the
6
- * server on every channel payload (`channel.pinnedMessage`) and on the
7
- * `channel.messagePinned` realtime event. Body fields match a message preview;
8
- * `pinnedBy` / `pinnedAt` are the only additions.
9
- */
10
- type RawPinnedMessage<T extends Amity.MessageContentType = any> = {
11
- /** internal id of the pinned message (the id `MessageRepository.*` functions take) */
12
- messageId: Amity.Message['messageId'];
13
- /** set only when the pinned message is a reply */
14
- parentId?: Amity.Message['messageId'] | null;
15
- /** channel internal id */
16
- channelId: Amity.Channel['channelInternalId'];
17
- channelPublicId: Amity.Channel['channelId'];
18
- messageFeedId: Amity.SubChannel['subChannelId'];
19
- segment: number;
20
- dataType: T;
21
- data: Amity.ContentData<T>;
22
- /** the message author */
23
- creatorId: Amity.InternalUser['userId'];
24
- creatorPublicId: Amity.User['userId'];
25
- isDeleted: boolean;
26
- /** the user who pinned the message */
27
- pinnedBy: Amity.InternalUser['userId'];
28
- pinnedAt: Amity.timestamp;
29
- } & Amity.Timestamps;
30
- type PinnedMessage<T extends Amity.MessageContentType = any> = RawPinnedMessage<T>;
31
- /**
32
- * `data` of the `channel.messagePinned` / `channel.messageUnpinned` realtime events.
33
- * `channelId` is the channel **public** id. `pinnedMessage` and `users` are present on
34
- * `messagePinned` only; `messageUnpinned` carries just the `channelId`.
35
- */
36
- type ChannelPinnedMessagePayload = {
37
- channelId: Amity.Channel['channelId'];
38
- pinnedMessage?: Amity.RawPinnedMessage | null;
39
- users?: Amity.RawUser[];
40
- };
41
- }
42
- }
43
- //# sourceMappingURL=pinnedMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinnedMessage.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/pinnedMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd;;;;;WAKG;QACH,KAAK,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,kBAAkB,GAAG,GAAG,IAAI;YAChE,sFAAsF;YACtF,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YACtC,kDAAkD;YAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;YAC7C,0BAA0B;YAC1B,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;YAC9C,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC5C,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;YAChD,OAAO,EAAE,MAAM,CAAC;YAChB,QAAQ,EAAE,CAAC,CAAC;YACZ,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAC3B,yBAAyB;YACzB,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACxC,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACtC,SAAS,EAAE,OAAO,CAAC;YACnB,sCAAsC;YACtC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;SAC3B,GAAG,KAAK,CAAC,UAAU,CAAC;QAErB,KAAK,aAAa,CAAC,CAAC,SAAS,KAAK,CAAC,kBAAkB,GAAG,GAAG,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAEnF;;;;WAIG;QACH,KAAK,2BAA2B,GAAG;YACjC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YACtC,aAAa,CAAC,EAAE,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAC9C,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;KACH;CACF"}
@@ -1,24 +0,0 @@
1
- declare type CallbackFn = Amity.Listener<Amity.StaticInternalChannel>;
2
- /**
3
- * ```js
4
- * import { onChannelMessagePinned } from '@amityco/ts-sdk'
5
- * const dispose = onChannelMessagePinned(channel => {
6
- * // channel.pinnedMessage is the new pin
7
- * })
8
- * ```
9
- *
10
- * Fired when a message is pinned in a channel (the `channel.messagePinned` realtime
11
- * event). Pinning a different message while one is already pinned emits a single
12
- * `messagePinned` carrying the replacement — treat every payload as a full snapshot.
13
- *
14
- * The updated channel is written to cache before the callback runs, so
15
- * `ChannelRepository.getChannel` observers see `channel.pinnedMessage` change.
16
- *
17
- * @param callback The function to call when the event was fired
18
- * @returns an {@link Amity.Unsubscriber} function to run when willing to stop listening
19
- *
20
- * @category Channel Events
21
- */
22
- export declare const onChannelMessagePinned: (callback: CallbackFn) => Amity.Unsubscriber;
23
- export {};
24
- //# sourceMappingURL=onChannelMessagePinned.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onChannelMessagePinned.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/events/onChannelMessagePinned.ts"],"names":[],"mappings":"AAQA,aAAK,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAiB9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,sBAAsB,aAAc,UAAU,KAAG,MAAM,YA2BnE,CAAC"}
@@ -1,21 +0,0 @@
1
- declare type CallbackFn = Amity.Listener<Amity.StaticInternalChannel>;
2
- /**
3
- * ```js
4
- * import { onChannelMessageUnpinned } from '@amityco/ts-sdk'
5
- * const dispose = onChannelMessageUnpinned(channel => {
6
- * // channel.pinnedMessage is now null
7
- * })
8
- * ```
9
- *
10
- * Fired when a channel's pinned message is removed (the `channel.messageUnpinned`
11
- * realtime event) — either by an explicit unpin or automatically by the server when the
12
- * pinned message is deleted or its author is banned from the channel / globally.
13
- *
14
- * @param callback The function to call when the event was fired
15
- * @returns an {@link Amity.Unsubscriber} function to run when willing to stop listening
16
- *
17
- * @category Channel Events
18
- */
19
- export declare const onChannelMessageUnpinned: (callback: CallbackFn) => Amity.Unsubscriber;
20
- export {};
21
- //# sourceMappingURL=onChannelMessageUnpinned.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onChannelMessageUnpinned.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/events/onChannelMessageUnpinned.ts"],"names":[],"mappings":"AAQA,aAAK,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAiB9D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,aAAc,UAAU,KAAG,MAAM,YAuBrE,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Defensive clear of `channel.pinnedMessage` when the pinned message itself is deleted.
3
- *
4
- * The server also emits `channel.messageUnpinned` in this case, but realtime events are
5
- * fire-and-forget and their order is not guaranteed. Clearing on `message.deleted`
6
- * (MQTT or local) makes the banner disappear even if the unpin event is lost; the
7
- * server's own `messageUnpinned` then becomes a no-op.
8
- *
9
- * Internal — wired into the `getChannel` live object; not exported publicly.
10
- */
11
- export declare const onChannelPinnedMessageDeleted: (callback: Amity.Listener<Amity.StaticInternalChannel>) => Amity.Unsubscriber;
12
- //# sourceMappingURL=onChannelPinnedMessageDeleted.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onChannelPinnedMessageDeleted.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/events/onChannelPinnedMessageDeleted.ts"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,aAC9B,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,KACpD,MAAM,YAOL,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=onChannelMemberRoleAdded.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onChannelMemberRoleAdded.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/events/tests/onChannelMemberRoleAdded.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=onChannelMemberRoleRemoved.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onChannelMemberRoleRemoved.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/events/tests/onChannelMemberRoleRemoved.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=onChannelMessagePinned.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onChannelMessagePinned.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/events/tests/onChannelMessagePinned.test.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- /**
2
- * Applies a `channel.roleAdded` / `channel.roleRemoved` realtime payload to the cache.
3
- *
4
- * The event names every member the role request affected together with the
5
- * roles and channel-scoped permissions each of them is left holding. That is a
6
- * full state, not a delta, so it is written straight over the cached membership.
7
- *
8
- * Members the SDK has not fetched yet are skipped: the payload does not carry
9
- * enough to build a full {@link Amity.Membership} and the live collections only
10
- * emit rows that already exist in cache.
11
- *
12
- * @param payload the `data` of the realtime event
13
- * @returns the refreshed channel (when resolvable) and the updated cached memberships
14
- *
15
- * @hidden
16
- */
17
- export declare const applyChannelRolePayload: (payload: Amity.ChannelRolePayload) => {
18
- channel?: Amity.StaticInternalChannel<any> | undefined;
19
- members: Amity.Membership<'channel'>[];
20
- };
21
- //# sourceMappingURL=applyChannelRolePayload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applyChannelRolePayload.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/utils/applyChannelRolePayload.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,YACzB,MAAM,kBAAkB;;aACkB,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE;CA+BjF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pinnedMessage.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinnedMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/utils/tests/pinnedMessage.test.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- /**
2
- * Find a cached channel by any of its ids (internal, public, or `channelId`).
3
- *
4
- * The channel cache is keyed by the channel internal id (see `idResolvers.channel`), but
5
- * realtime payloads reference channels by different ids: pin events carry the **public**
6
- * id, messages carry `channelId`. Try the cheap direct lookup first, then scan.
7
- */
8
- export declare const findCachedChannelByAnyId: (id: string | undefined) => Amity.StaticInternalChannel | undefined;
9
- /**
10
- * Resolve the cached channel a `channel.messagePinned` / `channel.messageUnpinned` event
11
- * refers to. `data.channelId` is the channel public id; a pinned message body (present on
12
- * `messagePinned` only) also carries the internal id, which is the direct cache key.
13
- */
14
- export declare const findCachedChannelForPin: (payload: Amity.ChannelPinnedMessagePayload) => Amity.StaticInternalChannel | undefined;
15
- /**
16
- * Write a new pin snapshot (or `null` to clear) on a cached channel and ingest any
17
- * users delivered with it (the pin author and the message author), so the banner can
18
- * render a byline without a second fetch.
19
- *
20
- * Every `messagePinned` payload is a full snapshot — "this is the pin now" — so the last
21
- * one received always wins; there is no merging with the previous pin.
22
- */
23
- export declare const updatePinnedMessageCache: (channel: Amity.StaticInternalChannel, pinnedMessage: Amity.RawPinnedMessage | null, users?: Amity.RawUser[]) => Amity.StaticInternalChannel;
24
- //# sourceMappingURL=updatePinnedMessageCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updatePinnedMessageCache.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/utils/updatePinnedMessageCache.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,OAC/B,MAAM,GAAG,SAAS,KACrB,MAAM,qBAAqB,GAAG,SAUhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,YACzB,MAAM,2BAA2B,KACzC,MAAM,qBAAqB,GAAG,SAEY,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,YAC1B,MAAM,qBAAqB,iBACrB,MAAM,gBAAgB,GAAG,IAAI,UACpC,MAAM,OAAO,EAAE,KACtB,MAAM,qBASR,CAAC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * ```js
3
- * import { Client } from '@amityco/ts-sdk'
4
- * const moduleSettings = await Client.getModuleSettings()
5
- * ```
6
- *
7
- * Fetches the network's module entitlements: which modules the network was
8
- * granted, whether core is enforcing those grants, and the catalog of all
9
- * modules with their dependency chains.
10
- *
11
- * The payload is returned whole — `catalog` is the dependency table
12
- * {@link resolveModuleAvailability} reads, and a client that cannot see it has
13
- * to hardcode one.
14
- *
15
- * The read is **advisory**. It tells a host what to offer; under `enforce` the
16
- * backend refuses a call to an unowned module regardless of what was resolved
17
- * here, and that refusal arrives as `AmityModuleNotEntitledError`.
18
- *
19
- * @returns A Promise of {@link Amity.ModuleSettings} object
20
- *
21
- * @category Client API
22
- * @async
23
- */
24
- export declare const getModuleSettings: () => Promise<Amity.ModuleSettings>;
25
- //# sourceMappingURL=getModuleSettings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getModuleSettings.d.ts","sourceRoot":"","sources":["../../../src/client/api/getModuleSettings.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,QAAa,QAAQ,MAAM,cAAc,CAQtE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=getSocialSettings.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSocialSettings.test.d.ts","sourceRoot":"","sources":["../../../../src/client/api/tests/getSocialSettings.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=moduleSettings.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moduleSettings.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/client/api/tests/integration/moduleSettings.integration.test.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- /**
2
- * Decodes `GET /api/v3/network-settings/modules`. Nothing is trimmed: the
3
- * catalog is the dependency table callers resolve against, and a client that
4
- * cannot see it has to hardcode one.
5
- *
6
- * @category private
7
- */
8
- export declare const parseModuleSettings: (raw: Amity.RawModuleSettings) => Amity.ModuleSettings;
9
- //# sourceMappingURL=parseModuleSettings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseModuleSettings.d.ts","sourceRoot":"","sources":["../../../src/client/utils/parseModuleSettings.ts"],"names":[],"mappings":"AAkDA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,QAAS,MAAM,iBAAiB,KAAG,MAAM,cAIvE,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * ```js
3
- * import { Client, resolveModuleAvailability } from '@amityco/ts-sdk'
4
- *
5
- * const moduleSettings = await Client.getModuleSettings()
6
- *
7
- * if (resolveModuleAvailability(moduleSettings, 'live').isAvailable) {
8
- * // offer the Live entry point
9
- * }
10
- * ```
11
- *
12
- * Resolves whether one module is usable on this network.
13
- *
14
- * Availability is a function of all three fields of
15
- * {@link Amity.ModuleSettings} — the enforcement mode, the module's own grant,
16
- * and its prerequisite chain — combined in that order. Reading `modules`
17
- * directly contradicts the mode: staging answers `mode: 'off'` with
18
- * `modules: {}`, and every module still works.
19
- *
20
- * The dependency table comes from the payload's `catalog`, never from a
21
- * hardcoded copy, so a chain the backend changes takes effect without an SDK
22
- * release.
23
- *
24
- * The SDK does not hold the settings — the caller keeps what it fetched and
25
- * resolves against it. With no settings at all (a fetch that never succeeded)
26
- * the caller reads that as every module available: under `enforce` the backend
27
- * refuses the calls anyway, so the exposure is a screen that offers too much,
28
- * not one that withholds what a customer paid for.
29
- *
30
- * @param moduleSettings The network's module settings
31
- * @param moduleKey The module to resolve — an {@link Amity.ModuleKey}, so the
32
- * 15 keys this build knows complete and type-check while a catalog entry it
33
- * does not know still resolves.
34
- * @returns An {@link Amity.ModuleAvailability} answer
35
- *
36
- * @category Client API
37
- */
38
- export declare const resolveModuleAvailability: (moduleSettings: Amity.ModuleSettings, moduleKey: Amity.ModuleKey, seen?: Set<Amity.ModuleKey>) => Amity.ModuleAvailability;
39
- //# sourceMappingURL=resolveModuleAvailability.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveModuleAvailability.d.ts","sourceRoot":"","sources":["../../../src/client/utils/resolveModuleAvailability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,yBAAyB,mBACpB,MAAM,cAAc,aACzB,MAAM,SAAS,SACpB,IAAI,MAAM,SAAS,CAAC,KACzB,MAAM,kBAuDR,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resolveModuleAvailability.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveModuleAvailability.test.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/tests/resolveModuleAvailability.test.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- /**
2
- * ```js
3
- * import { CommentRepository } from '@amityco/ts-sdk'
4
- *
5
- * const { data: comment } = await CommentRepository.approveComment('commentId')
6
- * ```
7
- *
8
- * Approves a {@link Amity.Comment} held for review, making it visible to everyone
9
- *
10
- * @param commentId The {@link Amity.Comment} ID to be approved
11
- * @return The {@link Amity.Comment} that was approved
12
- *
13
- * @category Comment API
14
- * @async
15
- */
16
- export declare const approveComment: (commentId: Amity.Comment['commentId']) => Promise<Amity.Cached<Amity.Comment>>;
17
- //# sourceMappingURL=approveComment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approveComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/approveComment.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,cACd,aAAa,CAAC,WAAW,CAAC,KACpC,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,CA2BrC,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * ```js
3
- * import { CommentRepository } from '@amityco/ts-sdk'
4
- *
5
- * const { data: comment } = await CommentRepository.declineComment('commentId', 'Off-topic')
6
- * ```
7
- *
8
- * Declines a {@link Amity.Comment} held for review. A declined comment is also a deleted comment
9
- *
10
- * @param commentId The {@link Amity.Comment} ID to be declined
11
- * @param reason Optional reviewer's note, at most 250 characters, kept for the moderation record only
12
- * @return The {@link Amity.Comment} that was declined
13
- *
14
- * @category Comment API
15
- * @async
16
- */
17
- export declare const declineComment: (commentId: Amity.Comment['commentId'], reason?: string) => Promise<Amity.Cached<Amity.Comment>>;
18
- //# sourceMappingURL=declineComment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"declineComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/declineComment.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,cACd,aAAa,CAAC,WAAW,CAAC,WAC5B,MAAM,KACd,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,CAmDrC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=approveComment.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approveComment.test.d.ts","sourceRoot":"","sources":["../../../../src/commentRepository/api/tests/approveComment.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=createComment.optimistic.test.d.ts.map