@amityco/ts-sdk-react-native 7.27.2-60f0571.0 → 7.28.1-ea5533e.0
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/@types/core/events.d.ts +5 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +26 -0
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/core/permissions.d.ts +10 -4
- package/dist/@types/core/permissions.d.ts.map +1 -1
- package/dist/@types/domains/analytics.d.ts +3 -1
- package/dist/@types/domains/analytics.d.ts.map +1 -1
- package/dist/@types/domains/channel.d.ts +5 -0
- package/dist/@types/domains/channel.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +18 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/comment.d.ts +27 -0
- package/dist/@types/domains/comment.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +1 -0
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/curatedContent.d.ts +25 -0
- package/dist/@types/domains/curatedContent.d.ts.map +1 -0
- package/dist/@types/domains/pinnedMessage.d.ts +43 -0
- package/dist/@types/domains/pinnedMessage.d.ts.map +1 -0
- package/dist/@types/domains/post.d.ts +11 -0
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/index.d.ts +3 -1
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts +3 -0
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts +3 -0
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts.map +1 -1
- package/dist/channelRepository/api/createChannel.d.ts.map +1 -1
- package/dist/channelRepository/events/index.d.ts +2 -0
- package/dist/channelRepository/events/index.d.ts.map +1 -1
- package/dist/channelRepository/events/onChannelMemberRoleAdded.d.ts +22 -0
- package/dist/channelRepository/events/onChannelMemberRoleAdded.d.ts.map +1 -1
- package/dist/channelRepository/events/onChannelMemberRoleRemoved.d.ts +22 -0
- package/dist/channelRepository/events/onChannelMemberRoleRemoved.d.ts.map +1 -1
- package/dist/channelRepository/events/onChannelMessagePinned.d.ts +24 -0
- package/dist/channelRepository/events/onChannelMessagePinned.d.ts.map +1 -0
- package/dist/channelRepository/events/onChannelMessageUnpinned.d.ts +21 -0
- package/dist/channelRepository/events/onChannelMessageUnpinned.d.ts.map +1 -0
- package/dist/channelRepository/events/onChannelPinnedMessageDeleted.d.ts +12 -0
- package/dist/channelRepository/events/onChannelPinnedMessageDeleted.d.ts.map +1 -0
- package/dist/channelRepository/events/tests/onChannelMemberRoleAdded.test.d.ts +2 -0
- package/dist/channelRepository/events/tests/onChannelMemberRoleAdded.test.d.ts.map +1 -0
- package/dist/channelRepository/events/tests/onChannelMemberRoleRemoved.test.d.ts +2 -0
- package/dist/channelRepository/events/tests/onChannelMemberRoleRemoved.test.d.ts.map +1 -0
- package/dist/channelRepository/events/tests/onChannelMessagePinned.test.d.ts +2 -0
- package/dist/channelRepository/events/tests/onChannelMessagePinned.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/getChannel.d.ts.map +1 -1
- package/dist/channelRepository/observers/getChannels/ChannelLiveCollectionController.d.ts.map +1 -1
- package/dist/channelRepository/observers/getMyMembership.d.ts.map +1 -1
- package/dist/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.d.ts.map +1 -1
- package/dist/channelRepository/utils/applyChannelRolePayload.d.ts +21 -0
- package/dist/channelRepository/utils/applyChannelRolePayload.d.ts.map +1 -0
- package/dist/channelRepository/utils/index.d.ts +2 -0
- package/dist/channelRepository/utils/index.d.ts.map +1 -1
- package/dist/channelRepository/utils/tests/pinnedMessage.test.d.ts +2 -0
- package/dist/channelRepository/utils/tests/pinnedMessage.test.d.ts.map +1 -0
- package/dist/channelRepository/utils/updatePinnedMessageCache.d.ts +24 -0
- package/dist/channelRepository/utils/updatePinnedMessageCache.d.ts.map +1 -0
- package/dist/client/api/createClient.d.ts +5 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/getSocialSettings.d.ts.map +1 -1
- package/dist/client/api/setupLoginSubscriptions.d.ts.map +1 -1
- package/dist/client/api/tests/getSocialSettings.test.d.ts +2 -0
- package/dist/client/api/tests/getSocialSettings.test.d.ts.map +1 -0
- package/dist/commentRepository/api/approveComment.d.ts +17 -0
- package/dist/commentRepository/api/approveComment.d.ts.map +1 -0
- package/dist/commentRepository/api/createComment.d.ts +12 -1
- package/dist/commentRepository/api/createComment.d.ts.map +1 -1
- package/dist/commentRepository/api/declineComment.d.ts +18 -0
- package/dist/commentRepository/api/declineComment.d.ts.map +1 -0
- package/dist/commentRepository/api/deleteComment.d.ts.map +1 -1
- package/dist/commentRepository/api/index.d.ts +2 -0
- package/dist/commentRepository/api/index.d.ts.map +1 -1
- package/dist/commentRepository/api/tests/approveComment.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/approveComment.test.d.ts.map +1 -0
- package/dist/commentRepository/api/tests/createComment.optimistic.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/createComment.optimistic.test.d.ts.map +1 -0
- package/dist/commentRepository/api/tests/declineComment.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/declineComment.test.d.ts.map +1 -0
- package/dist/commentRepository/api/updateComment.d.ts.map +1 -1
- package/dist/commentRepository/events/index.d.ts +1 -0
- package/dist/commentRepository/events/index.d.ts.map +1 -1
- package/dist/commentRepository/events/onCommentApproved.d.ts +17 -0
- package/dist/commentRepository/events/onCommentApproved.d.ts.map +1 -0
- package/dist/commentRepository/events/tests/onCommentApproved.test.d.ts +2 -0
- package/dist/commentRepository/events/tests/onCommentApproved.test.d.ts.map +1 -0
- package/dist/commentRepository/events/tests/onCommentCreated.count.test.d.ts +2 -0
- package/dist/commentRepository/events/tests/onCommentCreated.count.test.d.ts.map +1 -0
- package/dist/commentRepository/events/utils.d.ts.map +1 -1
- package/dist/commentRepository/internalApi/getComment.d.ts.map +1 -1
- package/dist/commentRepository/observers/getComment.d.ts.map +1 -1
- package/dist/commentRepository/observers/getCommentReviewQueue/LiveCollectionController.d.ts +13 -0
- package/dist/commentRepository/observers/getCommentReviewQueue/LiveCollectionController.d.ts.map +1 -0
- package/dist/commentRepository/observers/getCommentReviewQueue/PaginationController.d.ts +5 -0
- package/dist/commentRepository/observers/getCommentReviewQueue/PaginationController.d.ts.map +1 -0
- package/dist/commentRepository/observers/getCommentReviewQueue/QueryStreamController.d.ts +15 -0
- package/dist/commentRepository/observers/getCommentReviewQueue/QueryStreamController.d.ts.map +1 -0
- package/dist/commentRepository/observers/getCommentReviewQueue.d.ts +22 -0
- package/dist/commentRepository/observers/getCommentReviewQueue.d.ts.map +1 -0
- package/dist/commentRepository/observers/getComments/CommentLiveCollectionController.d.ts +1 -1
- package/dist/commentRepository/observers/getComments/CommentLiveCollectionController.d.ts.map +1 -1
- package/dist/commentRepository/observers/getComments/CommentQueryStreamController.d.ts.map +1 -1
- package/dist/commentRepository/observers/getComments/enums.d.ts +1 -0
- package/dist/commentRepository/observers/getComments/enums.d.ts.map +1 -1
- package/dist/commentRepository/observers/index.d.ts +1 -0
- package/dist/commentRepository/observers/index.d.ts.map +1 -1
- package/dist/commentRepository/observers/tests/integrations/getCommentReviewQueue.integration.test.d.ts +2 -0
- package/dist/commentRepository/observers/tests/integrations/getCommentReviewQueue.integration.test.d.ts.map +1 -0
- package/dist/commentRepository/utils/approval.d.ts +49 -0
- package/dist/commentRepository/utils/approval.d.ts.map +1 -0
- package/dist/commentRepository/utils/payload.d.ts +6 -0
- package/dist/commentRepository/utils/payload.d.ts.map +1 -1
- package/dist/commentRepository/utils/tests/approval.test.d.ts +2 -0
- package/dist/commentRepository/utils/tests/approval.test.d.ts.map +1 -0
- package/dist/commentRepository/utils/tests/payload.test.d.ts +2 -0
- package/dist/commentRepository/utils/tests/payload.test.d.ts.map +1 -0
- package/dist/communityRepository/api/createCommunity.d.ts +1 -1
- package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
- package/dist/communityRepository/api/updateCommunity.d.ts +1 -1
- package/dist/communityRepository/api/updateCommunity.d.ts.map +1 -1
- package/dist/core/device.d.ts +1 -1
- package/dist/core/device.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/tests/device.test.d.ts +2 -0
- package/dist/core/tests/device.test.d.ts.map +1 -0
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/core/transports/utils.d.ts +8 -0
- package/dist/core/transports/utils.d.ts.map +1 -1
- package/dist/curatedContentRepository/api/getPool.d.ts +2 -0
- package/dist/curatedContentRepository/api/getPool.d.ts.map +1 -0
- package/dist/curatedContentRepository/api/index.d.ts +2 -0
- package/dist/curatedContentRepository/api/index.d.ts.map +1 -0
- package/dist/curatedContentRepository/api/tests/getPool.test.d.ts +2 -0
- package/dist/curatedContentRepository/api/tests/getPool.test.d.ts.map +1 -0
- package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts +2 -0
- package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts.map +1 -0
- package/dist/curatedContentRepository/index.d.ts +2 -0
- package/dist/curatedContentRepository/index.d.ts.map +1 -0
- package/dist/index.cjs.js +1743 -478
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1718 -454
- package/dist/index.umd.js +1 -1
- package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +1 -0
- package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
- package/dist/messageRepository/api/index.d.ts +2 -0
- package/dist/messageRepository/api/index.d.ts.map +1 -1
- package/dist/messageRepository/api/pinMessage.d.ts +29 -0
- package/dist/messageRepository/api/pinMessage.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/pinMessage.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/pinMessage.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/unpinMessage.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/unpinMessage.test.d.ts.map +1 -0
- package/dist/messageRepository/api/unpinMessage.d.ts +28 -0
- package/dist/messageRepository/api/unpinMessage.d.ts.map +1 -0
- package/dist/messageRepository/utils/refreshChannelPermissionsForMessage.d.ts +13 -0
- package/dist/messageRepository/utils/refreshChannelPermissionsForMessage.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/ApproveTask.d.ts +16 -0
- package/dist/postRepository/utils/PostCommentCountEngine/ApproveTask.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.d.ts +25 -1
- package/dist/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.d.ts.map +1 -1
- package/dist/postRepository/utils/PostCommentCountEngine/postCommentCountEngineOnLoginHandler.d.ts +9 -0
- package/dist/postRepository/utils/PostCommentCountEngine/postCommentCountEngineOnLoginHandler.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/tests/getLocalCommentCount.test.d.ts +2 -0
- package/dist/postRepository/utils/PostCommentCountEngine/tests/getLocalCommentCount.test.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/tests/pendingAuthoredComments.test.d.ts +2 -0
- package/dist/postRepository/utils/PostCommentCountEngine/tests/pendingAuthoredComments.test.d.ts.map +1 -0
- package/dist/postRepository/utils/latestComments.d.ts +10 -0
- package/dist/postRepository/utils/latestComments.d.ts.map +1 -0
- package/dist/postRepository/utils/payload.d.ts.map +1 -1
- package/dist/postRepository/utils/tests/latestComments.test.d.ts +2 -0
- package/dist/postRepository/utils/tests/latestComments.test.d.ts.map +1 -0
- package/dist/postRepository/utils/tests/payload.test.d.ts +2 -0
- package/dist/postRepository/utils/tests/payload.test.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +4 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/linkedObject/commentLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +1 -0
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/messageLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/tests/postLinkedObject.test.d.ts +2 -0
- package/dist/utils/linkedObject/tests/postLinkedObject.test.d.ts.map +1 -0
- package/dist/utils/tests/dummy/comment.d.ts +1 -0
- package/dist/utils/tests/dummy/comment.d.ts.map +1 -1
- package/dist/utils/tests/dummy/index.d.ts +1 -0
- package/dist/utils/tests/dummy/index.d.ts.map +1 -1
- package/dist/utils/tests/dummy/pinnedMessage.d.ts +2 -0
- package/dist/utils/tests/dummy/pinnedMessage.d.ts.map +1 -0
- package/dist/utils/tests/dummy/post.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -20,6 +20,7 @@ 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;
|
|
23
24
|
isPublic?: boolean | undefined;
|
|
24
25
|
lastActivity: string;
|
|
25
26
|
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
|
|
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,6 +3,8 @@ 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';
|
|
6
8
|
export * from './markAsDelivered';
|
|
7
9
|
export * from './getReadUsers';
|
|
8
10
|
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,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,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { MessageRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const channel = await MessageRepository.pinMessage(messageId)
|
|
5
|
+
* console.log(channel.pinnedMessage)
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* Pins a {@link Amity.Message} in its livestream (`live`) channel. A channel holds at
|
|
9
|
+
* most one pinned message: pinning a different message replaces the current pin in a
|
|
10
|
+
* single step — no unpin is needed first. Pinning the message that is already pinned is
|
|
11
|
+
* rejected by the server (400).
|
|
12
|
+
*
|
|
13
|
+
* The caller must hold the `PIN_MESSAGE` permission in the channel (or be an admin with
|
|
14
|
+
* `ModerateChannel`). The server also rejects pinning a deleted message, a message whose
|
|
15
|
+
* author is banned from the channel or globally banned, and pinning in any channel type
|
|
16
|
+
* other than `live`. On any error the pin state is left unchanged.
|
|
17
|
+
*
|
|
18
|
+
* The response is the affected channel; it is ingested into cache and fires
|
|
19
|
+
* `local.channel.updated`, so `ChannelRepository.getChannel` observers update without
|
|
20
|
+
* waiting for the `channel.messagePinned` realtime event.
|
|
21
|
+
*
|
|
22
|
+
* @param messageId the **internal** ID of the {@link Amity.Message} to pin
|
|
23
|
+
* @returns the updated {@link Amity.Channel}, with `pinnedMessage` set
|
|
24
|
+
*
|
|
25
|
+
* @category Message API
|
|
26
|
+
* @async
|
|
27
|
+
*/
|
|
28
|
+
export declare const pinMessage: (messageId: Amity.Message['messageId']) => Promise<Amity.Channel>;
|
|
29
|
+
//# sourceMappingURL=pinMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/pinMessage.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,UAAU,cAAqB,MAAM,OAAO,CAAC,WAAW,CAAC,KAAG,QAAQ,MAAM,OAAO,CAuB7F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/messageRepository/api/tests/pinMessage.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpinMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/messageRepository/api/tests/unpinMessage.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { MessageRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const channel = await MessageRepository.unpinMessage(messageId)
|
|
5
|
+
* console.log(channel.pinnedMessage) // null
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* Removes the pin from a {@link Amity.Message}. `messageId` must be the message that is
|
|
9
|
+
* **currently** pinned in its channel; otherwise the server answers 400 — this is
|
|
10
|
+
* deliberate, so a stale client cannot clear a pin that someone else has since replaced.
|
|
11
|
+
* On that error, re-read the channel (or rely on the `channel.messagePinned` event) to
|
|
12
|
+
* get the current pin.
|
|
13
|
+
*
|
|
14
|
+
* The caller must hold the `PIN_MESSAGE` permission in the channel (or be an admin with
|
|
15
|
+
* `ModerateChannel`). Unpinning is allowed regardless of channel type and stream state.
|
|
16
|
+
*
|
|
17
|
+
* The response is the affected channel; it is ingested into cache and fires
|
|
18
|
+
* `local.channel.updated`, so `ChannelRepository.getChannel` observers update without
|
|
19
|
+
* waiting for the `channel.messageUnpinned` realtime event.
|
|
20
|
+
*
|
|
21
|
+
* @param messageId the **internal** ID of the currently pinned {@link Amity.Message}
|
|
22
|
+
* @returns the updated {@link Amity.Channel}, with `pinnedMessage` cleared
|
|
23
|
+
*
|
|
24
|
+
* @category Message API
|
|
25
|
+
* @async
|
|
26
|
+
*/
|
|
27
|
+
export declare const unpinMessage: (messageId: Amity.Message['messageId']) => Promise<Amity.Channel>;
|
|
28
|
+
//# sourceMappingURL=unpinMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpinMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/unpinMessage.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,cACZ,MAAM,OAAO,CAAC,WAAW,CAAC,KACpC,QAAQ,MAAM,OAAO,CAuBvB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fire-and-forget refresh of `channelUsers[...].permissions` for the channel a
|
|
3
|
+
* message belongs to. Used by `pinMessage` / `unpinMessage` on `403` so the next
|
|
4
|
+
* `hasPermission(PIN_MESSAGE).channel(channelId)` reflects a revoked role
|
|
5
|
+
* ([`pinMessage` REQ-010](../../@types/../..) / [`unpinMessage` REQ-008](../../@types/../..)).
|
|
6
|
+
*
|
|
7
|
+
* The API only receives a `messageId`, so the channel is resolved through the
|
|
8
|
+
* local cache: first the message row, then any cached channel whose current pin
|
|
9
|
+
* is that message. When nothing matches the refresh is skipped — the next
|
|
10
|
+
* channel read picks up the fresh permissions anyway.
|
|
11
|
+
*/
|
|
12
|
+
export declare const refreshChannelPermissionsForMessage: (messageId: Amity.Message['messageId']) => void;
|
|
13
|
+
//# sourceMappingURL=refreshChannelPermissionsForMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refreshChannelPermissionsForMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/utils/refreshChannelPermissionsForMessage.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mCAAmC,cACnC,MAAM,OAAO,CAAC,WAAW,CAAC,KACpC,IAeF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CommentChangeTask } from './CommentChange';
|
|
2
|
+
/**
|
|
3
|
+
* A pending comment was approved and now counts publicly. Unlike `CreateTask` it carries no
|
|
4
|
+
* `createdAt` and bypasses the age guard on purpose: the comment was written before the last post
|
|
5
|
+
* payload (so its `createdAt` is old) but entered the server count only now. Same rule as iOS.
|
|
6
|
+
*
|
|
7
|
+
* Accepted trade-off (plan 40 §9): if a `ResetTask` that already includes this comment lands
|
|
8
|
+
* between the approve response and the late `comment.approved` event, the count reads +1 until
|
|
9
|
+
* the next server sync — the same self-correcting drift accepted for stale deletes.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ApproveTask implements CommentChangeTask {
|
|
12
|
+
postId: string;
|
|
13
|
+
commentId: string;
|
|
14
|
+
constructor(postId: string, commentId: string);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ApproveTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApproveTask.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/PostCommentCountEngine/ApproveTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;GAQG;AACH,qBAAa,WAAY,YAAW,iBAAiB;IACnD,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;gBAEN,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAI9C"}
|
|
@@ -3,13 +3,37 @@ export declare class PostCommentCountEngine {
|
|
|
3
3
|
private isProcessing;
|
|
4
4
|
private tasks;
|
|
5
5
|
private commentChangeTracker;
|
|
6
|
+
private pendingAuthoredCommentIds;
|
|
6
7
|
private static readonly BATCH_SIZE;
|
|
7
8
|
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;
|
|
8
20
|
private processCommentChangeTask;
|
|
9
21
|
private processResetTaskInternal;
|
|
10
22
|
private processCreateTaskInternal;
|
|
23
|
+
private processApproveTaskInternal;
|
|
11
24
|
private processDeleteTaskInternal;
|
|
12
|
-
|
|
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;
|
|
13
37
|
private static publishUpdate;
|
|
14
38
|
}
|
|
15
39
|
declare const _default: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostCommentCountEngine.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/postRepository/utils/PostCommentCountEngine/postCommentCountEngineOnLoginHandler.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment-count state is per user — in particular the ids of the logged-in user's own pending
|
|
3
|
+
* comments — so it must not survive a logout or a user switch.
|
|
4
|
+
*
|
|
5
|
+
* @category private
|
|
6
|
+
*/
|
|
7
|
+
declare const postCommentCountEngineOnLoginHandler: () => Amity.Unsubscriber;
|
|
8
|
+
export default postCommentCountEngineOnLoginHandler;
|
|
9
|
+
//# sourceMappingURL=postCommentCountEngineOnLoginHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postCommentCountEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/PostCommentCountEngine/postCommentCountEngineOnLoginHandler.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,QAAA,MAAM,oCAAoC,QAAO,MAAM,YAKnD,CAAC;AAEL,eAAe,oCAAoC,CAAC"}
|
package/dist/postRepository/utils/PostCommentCountEngine/tests/getLocalCommentCount.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocalCommentCount.test.d.ts","sourceRoot":"","sources":["../../../../../src/postRepository/utils/PostCommentCountEngine/tests/getLocalCommentCount.test.ts"],"names":[],"mappings":""}
|
package/dist/postRepository/utils/PostCommentCountEngine/tests/pendingAuthoredComments.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendingAuthoredComments.test.d.ts","sourceRoot":"","sources":["../../../../../src/postRepository/utils/PostCommentCountEngine/tests/pendingAuthoredComments.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The server's list is oldest → newest, so the newest ids are the last ones. Kept unique so the
|
|
3
|
+
* create response, the local event and the realtime echo cannot each add the same comment.
|
|
4
|
+
*/
|
|
5
|
+
export declare const capLatestCommentIds: (commentIds: string[]) => string[];
|
|
6
|
+
/** A comment belongs in the post preview only while it is cached, not deleted and public. */
|
|
7
|
+
export declare const isPreviewableComment: (comment: Amity.InternalComment | undefined) => comment is Amity.InternalComment<any>;
|
|
8
|
+
/** The post's preview list after one of the user's own top-level comments is created. */
|
|
9
|
+
export declare const appendLatestCommentId: (post: Amity.InternalPost, commentId: string) => string[];
|
|
10
|
+
//# sourceMappingURL=latestComments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latestComments.d.ts","sourceRoot":"","sources":["../../../src/postRepository/utils/latestComments.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,eAAgB,MAAM,EAAE,KAAG,MAAM,EACT,CAAC;AAEzD,6FAA6F;AAC7F,eAAO,MAAM,oBAAoB,YACtB,MAAM,eAAe,GAAG,SAAS,0CAE+B,CAAC;AAE5E,yFAAyF;AACzF,eAAO,MAAM,qBAAqB,SAAU,MAAM,YAAY,aAAa,MAAM,KAAG,MAAM,EAC9B,CAAC"}
|
|
@@ -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,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latestComments.test.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/tests/latestComments.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.test.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/utils/tests/payload.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const COLLECTION_DEFAULT_PAGINATION_LIMIT = 5;
|
|
2
|
+
export declare const LATEST_COMMENTS_LIMIT = 5;
|
|
2
3
|
export declare const COLLECTION_DEFAULT_PAGINATION_SIZE = 20;
|
|
3
4
|
export declare const COLLECTION_DEFAULT_CACHING_POLICY: Amity.QueryPolicy;
|
|
4
5
|
export declare const ENABLE_CACHE_MESSAGE = "For using Live Collection feature you need to enable Cache!";
|
|
@@ -15,5 +16,8 @@ export declare const YEAR: number;
|
|
|
15
16
|
export declare const ACCESS_TOKEN_WATCHER_INTERVAL: number;
|
|
16
17
|
export declare const API_ENDPOINTS: {
|
|
17
18
|
forYouFeed: string;
|
|
19
|
+
commentReviewQueue: (communityId: Amity.Community['communityId']) => string;
|
|
18
20
|
};
|
|
21
|
+
export declare const COMMENT_REVIEW_QUEUE_DEFAULT_PAGINATION_SIZE = 10;
|
|
22
|
+
export declare const COMMENT_REVIEW_QUEUE_MAX_PAGINATION_SIZE = 100;
|
|
19
23
|
//# 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,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;;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commentLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/commentLinkedObject.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curatedContentTopicLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/curatedContentTopicLinkedObject.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,UACnC,MAAM,2BAA2B,KACvC,MAAM,mBAgBR,CAAC"}
|
|
@@ -22,5 +22,6 @@ 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;
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/messageLinkedObject.ts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postLinkedObject.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/linkedObject/tests/postLinkedObject.test.ts"],"names":[],"mappings":""}
|
|
@@ -20,6 +20,7 @@ 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;
|
|
23
24
|
referenceId: string;
|
|
24
25
|
referenceType: Amity.CommentReferenceType;
|
|
25
26
|
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,CACrC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,GACtC,KAAK,CAAC,eAAe,CA+BvB;AAED,eAAO,MAAM,eAAe,YAAa,QAAQ,MAAM,eAAe,CAAC
|
|
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,CACrC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,GACtC,KAAK,CAAC,eAAe,CA+BvB;AAED,eAAO,MAAM,eAAe,YAAa,QAAQ,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYtE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,eAAmC,CAAC;AAElE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,eASjC,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,eASrC,CAAC;AAEH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,eAOvC,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,eAG5B,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,eAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,eAGrC,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,cAMtC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,cAMpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,cAMvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,cAM3C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,cAM7C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,oBAc/B,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,cAMnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,cAmBzC,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;CAO/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;CAOhC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;CAOpC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;CAOtC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;CAOvC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;CAOlC,CAAC;AAGF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAMzE,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAOjF,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAS1E,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAY9E,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAYpF,CAAC"}
|
|
@@ -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"}
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinnedMessage.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/pinnedMessage.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CACtC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,GACvC,KAAK,CAAC,gBAAgB,CAoBxB"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CA4BrE;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-react-native",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.28.1-ea5533e.0",
|
|
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",
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
"mqtt": "^5.15.2",
|
|
87
87
|
"object-hash": "^3.0.0",
|
|
88
88
|
"react-native-uuid": "^2.0.1",
|
|
89
|
-
"ts-jest": "^28.0.3"
|
|
89
|
+
"ts-jest": "^28.0.3",
|
|
90
|
+
"ua-parser-js": "^2.0.10"
|
|
90
91
|
},
|
|
91
92
|
"peerDependencies": {
|
|
92
93
|
"react-native": ">=0.70.13"
|