@amityco/ts-sdk 7.1.1-e887d15f.0 → 7.2.1-3663404.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 +4 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +4 -0
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +45 -1
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/channel.d.ts +2 -2
- package/dist/@types/domains/channel.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +1 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/file.d.ts +1 -20
- package/dist/@types/domains/file.d.ts.map +1 -1
- package/dist/@types/domains/notification.d.ts +78 -0
- package/dist/@types/domains/notification.d.ts.map +1 -0
- package/dist/@types/domains/post.d.ts +4 -0
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/channelRepository/events/onChannelDeleted.d.ts.map +1 -1
- package/dist/channelRepository/internalApi/getTotalChannelsUnread.d.ts +11 -0
- package/dist/channelRepository/internalApi/getTotalChannelsUnread.d.ts.map +1 -0
- package/dist/channelRepository/observers/getTotalChannelsUnread.d.ts +20 -0
- package/dist/channelRepository/observers/getTotalChannelsUnread.d.ts.map +1 -0
- package/dist/channelRepository/observers/index.d.ts +1 -0
- package/dist/channelRepository/observers/index.d.ts.map +1 -1
- package/dist/channelRepository/utils/prepareChannelPayload.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts +1 -0
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +1 -1
- package/dist/client/utils/endpoints.d.ts +1 -0
- package/dist/client/utils/endpoints.d.ts.map +1 -1
- package/dist/client/utils/setClientToken.d.ts.map +1 -1
- package/dist/commentRepository/events/utils.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/model/idResolvers.d.ts.map +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/fileRepository/api/index.d.ts +1 -0
- package/dist/fileRepository/api/index.d.ts.map +1 -1
- package/dist/fileRepository/api/updateAltText.d.ts +17 -0
- package/dist/fileRepository/api/updateAltText.d.ts.map +1 -0
- package/dist/fileRepository/api/uploadImage.d.ts +2 -1
- package/dist/fileRepository/api/uploadImage.d.ts.map +1 -1
- package/dist/index.cjs.js +748 -73
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +731 -57
- package/dist/index.umd.js +4 -4
- package/dist/messageRepository/events/onMessageCreated.d.ts.map +1 -1
- package/dist/messageRepository/observers/getMessage.d.ts.map +1 -1
- package/dist/notificationTray/api/index.d.ts +3 -0
- package/dist/notificationTray/api/index.d.ts.map +1 -0
- package/dist/notificationTray/api/markItemsSeen.d.ts +16 -0
- package/dist/notificationTray/api/markItemsSeen.d.ts.map +1 -0
- package/dist/notificationTray/api/markTraySeen.d.ts +19 -0
- package/dist/notificationTray/api/markTraySeen.d.ts.map +1 -0
- package/dist/notificationTray/events/index.d.ts +2 -0
- package/dist/notificationTray/events/index.d.ts.map +1 -0
- package/dist/notificationTray/events/onNotificationTraySeenUpdated.d.ts +17 -0
- package/dist/notificationTray/events/onNotificationTraySeenUpdated.d.ts.map +1 -0
- package/dist/notificationTray/index.d.ts +4 -0
- package/dist/notificationTray/index.d.ts.map +1 -0
- package/dist/notificationTray/internalApi/getNotificationTraySeen.d.ts +30 -0
- package/dist/notificationTray/internalApi/getNotificationTraySeen.d.ts.map +1 -0
- package/dist/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsLiveCollectionController.d.ts +13 -0
- package/dist/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsLiveCollectionController.d.ts.map +1 -0
- package/dist/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsPaginationController.d.ts +9 -0
- package/dist/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsPaginationController.d.ts.map +1 -0
- package/dist/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsQuerystreamController.d.ts +9 -0
- package/dist/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsQuerystreamController.d.ts.map +1 -0
- package/dist/notificationTray/observers/getNotificationTrayItems.d.ts +12 -0
- package/dist/notificationTray/observers/getNotificationTrayItems.d.ts.map +1 -0
- package/dist/notificationTray/observers/getNotificationTraySeen.d.ts +20 -0
- package/dist/notificationTray/observers/getNotificationTraySeen.d.ts.map +1 -0
- package/dist/notificationTray/observers/index.d.ts +3 -0
- package/dist/notificationTray/observers/index.d.ts.map +1 -0
- package/dist/notificationTray/utils/prepareNotificationTrayItemsPayload.d.ts +2 -0
- package/dist/notificationTray/utils/prepareNotificationTrayItemsPayload.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/notificationTrayLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/notificationTrayLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/postTypePredicate.d.ts +4 -0
- package/dist/utils/postTypePredicate.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/@types/core/events.ts +5 -0
- package/src/@types/core/model.ts +6 -0
- package/src/@types/core/payload.ts +52 -1
- package/src/@types/domains/channel.ts +2 -2
- package/src/@types/domains/client.ts +1 -0
- package/src/@types/domains/file.ts +1 -21
- package/src/@types/domains/notification.ts +94 -0
- package/src/@types/domains/post.ts +4 -0
- package/src/@types/index.ts +1 -0
- package/src/channelRepository/events/onChannelDeleted.ts +9 -2
- package/src/channelRepository/internalApi/getTotalChannelsUnread.ts +38 -0
- package/src/channelRepository/observers/getTotalChannelsUnread.ts +129 -0
- package/src/channelRepository/observers/index.ts +1 -0
- package/src/channelRepository/utils/prepareChannelPayload.ts +21 -10
- package/src/client/api/createClient.ts +4 -1
- package/src/client/utils/ReadReceiptSync/readReceiptSyncEngine.ts +5 -1
- package/src/client/utils/endpoints.ts +1 -0
- package/src/client/utils/setClientToken.ts +8 -0
- package/src/commentRepository/events/utils.ts +73 -0
- package/src/core/model/idResolvers.ts +3 -0
- package/src/core/model/index.ts +2 -0
- package/src/fileRepository/api/index.ts +1 -0
- package/src/fileRepository/api/updateAltText.ts +39 -0
- package/src/fileRepository/api/uploadFile.ts +1 -1
- package/src/fileRepository/api/uploadImage.ts +23 -4
- package/src/fileRepository/api/uploadVideo.ts +1 -1
- package/src/index.ts +2 -0
- package/src/messageRepository/events/onMessageCreated.ts +19 -9
- package/src/messageRepository/observers/getMessage.ts +0 -1
- package/src/notificationTray/api/index.ts +2 -0
- package/src/notificationTray/api/markItemsSeen.ts +62 -0
- package/src/notificationTray/api/markTraySeen.ts +65 -0
- package/src/notificationTray/events/index.ts +1 -0
- package/src/notificationTray/events/onNotificationTraySeenUpdated.ts +36 -0
- package/src/notificationTray/index.ts +3 -0
- package/src/notificationTray/internalApi/getNotificationTraySeen.ts +80 -0
- package/src/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsLiveCollectionController.ts +96 -0
- package/src/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsPaginationController.ts +31 -0
- package/src/notificationTray/observers/getNotificationTrayItems/NotificationTrayItemsQuerystreamController.ts +68 -0
- package/src/notificationTray/observers/getNotificationTrayItems.ts +44 -0
- package/src/notificationTray/observers/getNotificationTraySeen.ts +60 -0
- package/src/notificationTray/observers/index.ts +2 -0
- package/src/notificationTray/utils/prepareNotificationTrayItemsPayload.ts +12 -0
- package/src/utils/linkedObject/index.ts +2 -0
- package/src/utils/linkedObject/notificationTrayLinkedObject.ts +19 -0
- package/src/utils/linkedObject/postLinkedObject.ts +29 -0
- package/src/utils/postTypePredicate.ts +27 -0
package/dist/core/events.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
|
|
|
24
24
|
* @category Transport
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
|
-
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "user.didGlobalBan" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
|
|
28
|
-
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "user.didGlobalBan" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
27
|
+
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "user.didGlobalBan" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
|
|
28
|
+
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "user.didGlobalBan" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
29
29
|
/**
|
|
30
30
|
* Wrapper around dispatch event
|
|
31
31
|
*
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
|
-
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "user.didGlobalBan" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined">(event: T, payload: Amity.Events[T]) => void;
|
|
34
|
+
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "user.didGlobalBan" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined">(event: T, payload: Amity.Events[T]) => void;
|
|
35
35
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAqCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAM5F,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAqCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAM5F,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,kkHACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,kkHAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,qmHAKrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idResolvers.d.ts","sourceRoot":"","sources":["../../../src/core/model/idResolvers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,aAAK,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"idResolvers.d.ts","sourceRoot":"","sources":["../../../src/core/model/idResolvers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,aAAK,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AA8D5E;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wDAAsE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAiDtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAMhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fileRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fileRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { FileRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const updated = await FileRepository.updateAltText(fileId, altText)
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Updates an {@link Amity.File<'image'>['altText']}.
|
|
8
|
+
*
|
|
9
|
+
* @param fileId The ID of the {@link Amity.File<'image'>} to edit
|
|
10
|
+
* @param altText The new alt text for the {@link Amity.File<'image'>}
|
|
11
|
+
* @returns the updated {@link Amity.File<'image'>} object
|
|
12
|
+
*
|
|
13
|
+
* @category File API
|
|
14
|
+
* @async
|
|
15
|
+
*/
|
|
16
|
+
export declare const updateAltText: (fileId: Amity.File['fileId'], altText: string) => Promise<boolean>;
|
|
17
|
+
//# sourceMappingURL=updateAltText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateAltText.d.ts","sourceRoot":"","sources":["../../../src/fileRepository/api/updateAltText.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,WAChB,UAAU,CAAC,QAAQ,CAAC,WACnB,MAAM,KACd,QAAQ,OAAO,CAajB,CAAC"}
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @param formData The data necessary to create a new {@link Amity.File<'image'>}
|
|
10
10
|
* @param onProgress The callback to track the upload progress
|
|
11
|
+
* @param altText The alt text for the image
|
|
11
12
|
* @returns The newly created {@link Amity.File<'image'>}
|
|
12
13
|
*
|
|
13
14
|
* @category File API
|
|
14
15
|
* @async
|
|
15
16
|
*/
|
|
16
|
-
export declare const uploadImage: (formData: FormData, onProgress?: ((percent: number) => void) | undefined) => Promise<Amity.Cached<Amity.File<'image'>[]>>;
|
|
17
|
+
export declare const uploadImage: (formData: FormData, onProgress?: ((percent: number) => void) | undefined, altText?: string) => Promise<Amity.Cached<Amity.File<'image'>[]>>;
|
|
17
18
|
//# sourceMappingURL=uploadImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadImage.d.ts","sourceRoot":"","sources":["../../../src/fileRepository/api/uploadImage.ts"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"uploadImage.d.ts","sourceRoot":"","sources":["../../../src/fileRepository/api/uploadImage.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,WAAW,aACZ,QAAQ,0BACK,MAAM,KAAK,IAAI,yBAC5B,MAAM,KACf,QAAQ,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAuD7C,CAAC"}
|