@amityco/ts-sdk 7.11.1-8ca038e4.0 → 7.11.1-8e65d700.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 +23 -2
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +5 -0
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +22 -0
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/core/permissions.d.ts +5 -1
- package/dist/@types/core/permissions.d.ts.map +1 -1
- package/dist/@types/core/transport.d.ts +3 -0
- package/dist/@types/core/transport.d.ts.map +1 -1
- package/dist/@types/domains/channel.d.ts +1 -0
- package/dist/@types/domains/channel.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +11 -1
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/content.d.ts +4 -1
- package/dist/@types/domains/content.d.ts.map +1 -1
- package/dist/@types/domains/event.d.ts +33 -9
- package/dist/@types/domains/event.d.ts.map +1 -1
- package/dist/@types/domains/feed.d.ts +2 -1
- package/dist/@types/domains/feed.d.ts.map +1 -1
- package/dist/@types/domains/invitation.d.ts +7 -2
- package/dist/@types/domains/invitation.d.ts.map +1 -1
- package/dist/@types/domains/partials.d.ts +2 -2
- package/dist/@types/domains/partials.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +2 -0
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/domains/room.d.ts +88 -0
- package/dist/@types/domains/room.d.ts.map +1 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/channelRepository/api/createChannel.d.ts +1 -0
- package/dist/channelRepository/api/createChannel.d.ts.map +1 -1
- package/dist/client/api/getPresenceSetting.d.ts +2 -0
- package/dist/client/api/getPresenceSetting.d.ts.map +1 -0
- package/dist/client/api/resumeSession.d.ts.map +1 -1
- package/dist/client/services/ObjectResolver/objectResolverEngine.d.ts.map +1 -0
- package/dist/client/services/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts.map +1 -0
- package/dist/client/services/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts.map +1 -0
- package/dist/client/services/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts.map +1 -0
- package/dist/client/services/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +1 -0
- package/dist/client/services/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts.map +1 -0
- 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/core/subscription.d.ts +2 -0
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/eventRepository/api/deleteEvent.d.ts +15 -0
- package/dist/eventRepository/api/deleteEvent.d.ts.map +1 -0
- package/dist/eventRepository/api/index.d.ts +1 -0
- package/dist/eventRepository/api/index.d.ts.map +1 -1
- package/dist/eventRepository/events/enums.d.ts +6 -0
- package/dist/eventRepository/events/enums.d.ts.map +1 -0
- package/dist/eventRepository/events/index.d.ts +7 -0
- package/dist/eventRepository/events/index.d.ts.map +1 -0
- package/dist/eventRepository/events/onEventCreated.d.ts +17 -0
- package/dist/eventRepository/events/onEventCreated.d.ts.map +1 -0
- package/dist/eventRepository/events/onEventDeleted.d.ts +17 -0
- package/dist/eventRepository/events/onEventDeleted.d.ts.map +1 -0
- package/dist/eventRepository/events/onEventUpdated.d.ts +17 -0
- package/dist/eventRepository/events/onEventUpdated.d.ts.map +1 -0
- package/dist/eventRepository/events/onLocalEventCreated.d.ts +17 -0
- package/dist/eventRepository/events/onLocalEventCreated.d.ts.map +1 -0
- package/dist/eventRepository/events/onLocalEventDeleted.d.ts +17 -0
- package/dist/eventRepository/events/onLocalEventDeleted.d.ts.map +1 -0
- package/dist/eventRepository/events/onLocalEventUpdated.d.ts +17 -0
- package/dist/eventRepository/events/onLocalEventUpdated.d.ts.map +1 -0
- package/dist/eventRepository/index.d.ts +2 -0
- package/dist/eventRepository/index.d.ts.map +1 -1
- package/dist/eventRepository/internalApi/getEvent.d.ts +32 -0
- package/dist/eventRepository/internalApi/getEvent.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/index.d.ts +2 -0
- package/dist/eventRepository/internalApi/index.d.ts.map +1 -0
- package/dist/eventRepository/observers/getEvent.d.ts +21 -0
- package/dist/eventRepository/observers/getEvent.d.ts.map +1 -0
- package/dist/eventRepository/observers/getEvents/LiveCollectionController.d.ts +13 -0
- package/dist/eventRepository/observers/getEvents/LiveCollectionController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getEvents/PaginationController.d.ts +5 -0
- package/dist/eventRepository/observers/getEvents/PaginationController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getEvents/QueryStreamController.d.ts +15 -0
- package/dist/eventRepository/observers/getEvents/QueryStreamController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getEvents.d.ts +12 -0
- package/dist/eventRepository/observers/getEvents.d.ts.map +1 -0
- package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts +13 -0
- package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts +5 -0
- package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts +15 -0
- package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getMyEvents.d.ts +12 -0
- package/dist/eventRepository/observers/getMyEvents.d.ts.map +1 -0
- package/dist/eventRepository/observers/index.d.ts +4 -0
- package/dist/eventRepository/observers/index.d.ts.map +1 -0
- package/dist/eventRepository/utils/createEventEventSubscriber.d.ts +2 -0
- package/dist/eventRepository/utils/createEventEventSubscriber.d.ts.map +1 -0
- package/dist/eventRepository/utils/index.d.ts +1 -0
- package/dist/eventRepository/utils/index.d.ts.map +1 -1
- package/dist/index.cjs.js +5232 -3088
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +4568 -2427
- package/dist/index.umd.js +3 -3
- package/dist/invitationRepository/api/acceptInvitation.d.ts +16 -0
- package/dist/invitationRepository/api/acceptInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/api/cancelInvitation.d.ts +16 -0
- package/dist/invitationRepository/api/cancelInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/api/getMyInvitation.d.ts +16 -0
- package/dist/invitationRepository/api/getMyInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/api/index.d.ts +3 -0
- package/dist/invitationRepository/api/index.d.ts.map +1 -0
- package/dist/invitationRepository/events/index.d.ts +1 -1
- package/dist/invitationRepository/events/index.d.ts.map +1 -1
- package/dist/invitationRepository/events/onLocalInvitationCanceled.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationCanceled.d.ts.map +1 -0
- package/dist/invitationRepository/index.d.ts +1 -0
- package/dist/invitationRepository/index.d.ts.map +1 -1
- package/dist/invitationRepository/internalApi/getInvitation.d.ts +1 -1
- package/dist/invitationRepository/internalApi/getInvitation.d.ts.map +1 -1
- package/dist/invitationRepository/internalObservers/getInvitations/InvitationsLiveCollectionController.d.ts.map +1 -0
- package/dist/invitationRepository/internalObservers/getInvitations/InvitationsPaginationController.d.ts.map +1 -0
- package/dist/invitationRepository/internalObservers/getInvitations/InvitationsQueryStreamController.d.ts.map +1 -0
- package/dist/invitationRepository/{observers → internalObservers}/getInvitations/enums.d.ts +1 -1
- package/dist/invitationRepository/internalObservers/getInvitations/enums.d.ts.map +1 -0
- package/dist/invitationRepository/internalObservers/getInvitations.d.ts +12 -0
- package/dist/invitationRepository/internalObservers/getInvitations.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getInvitations.d.ts +28 -6
- package/dist/invitationRepository/observers/getInvitations.d.ts.map +1 -1
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts +1 -1
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts.map +1 -1
- package/dist/invitationRepository/observers/index.d.ts +1 -0
- package/dist/invitationRepository/observers/index.d.ts.map +1 -1
- package/dist/liveReactionRepository/api/createReaction.d.ts +2 -2
- package/dist/liveReactionRepository/api/createReaction.d.ts.map +1 -1
- package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts +2 -2
- package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts.map +1 -1
- package/dist/liveReactionRepository/service/ReactionSyncEngine.d.ts +1 -1
- package/dist/liveReactionRepository/service/ReactionSyncEngine.d.ts.map +1 -1
- package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +2 -1
- package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
- package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
- package/dist/roomRepository/api/createRoom.d.ts +24 -0
- package/dist/roomRepository/api/createRoom.d.ts.map +1 -0
- package/dist/roomRepository/api/deleteRoom.d.ts +16 -0
- package/dist/roomRepository/api/deleteRoom.d.ts.map +1 -0
- package/dist/roomRepository/api/getBroadcasterData.d.ts +16 -0
- package/dist/roomRepository/api/getBroadcasterData.d.ts.map +1 -0
- package/dist/roomRepository/api/getRecordedUrl.d.ts +19 -0
- package/dist/roomRepository/api/getRecordedUrl.d.ts.map +1 -0
- package/dist/roomRepository/api/index.d.ts +9 -0
- package/dist/roomRepository/api/index.d.ts.map +1 -0
- package/dist/roomRepository/api/leaveRoom.d.ts +16 -0
- package/dist/roomRepository/api/leaveRoom.d.ts.map +1 -0
- package/dist/roomRepository/api/removeParticipant.d.ts +17 -0
- package/dist/roomRepository/api/removeParticipant.d.ts.map +1 -0
- package/dist/roomRepository/api/stopRoom.d.ts +16 -0
- package/dist/roomRepository/api/stopRoom.d.ts.map +1 -0
- package/dist/roomRepository/api/updateRoom.d.ts +24 -0
- package/dist/roomRepository/api/updateRoom.d.ts.map +1 -0
- package/dist/roomRepository/events/index.d.ts +17 -0
- package/dist/roomRepository/events/index.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts +17 -0
- package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomCoHostInviteCanceled.d.ts +17 -0
- package/dist/roomRepository/events/onRoomCoHostInviteCanceled.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomCoHostInviteRejected.d.ts +17 -0
- package/dist/roomRepository/events/onRoomCoHostInviteRejected.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomCoHostInvited.d.ts +17 -0
- package/dist/roomRepository/events/onRoomCoHostInvited.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomCreated.d.ts +17 -0
- package/dist/roomRepository/events/onRoomCreated.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomDeleted.d.ts +17 -0
- package/dist/roomRepository/events/onRoomDeleted.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomEndBroadcasting.d.ts +17 -0
- package/dist/roomRepository/events/onRoomEndBroadcasting.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomLeft.d.ts +17 -0
- package/dist/roomRepository/events/onRoomLeft.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomParticipantJoined.d.ts +17 -0
- package/dist/roomRepository/events/onRoomParticipantJoined.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomParticipantLeft.d.ts +17 -0
- package/dist/roomRepository/events/onRoomParticipantLeft.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts +17 -0
- package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomRecordedAvailable.d.ts +17 -0
- package/dist/roomRepository/events/onRoomRecordedAvailable.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomStartBroadcasting.d.ts +17 -0
- package/dist/roomRepository/events/onRoomStartBroadcasting.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomStopped.d.ts +17 -0
- package/dist/roomRepository/events/onRoomStopped.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomUpdated.d.ts +17 -0
- package/dist/roomRepository/events/onRoomUpdated.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomWaitingReconnect.d.ts +17 -0
- package/dist/roomRepository/events/onRoomWaitingReconnect.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomWatchingCountUpdated.d.ts +17 -0
- package/dist/roomRepository/events/onRoomWatchingCountUpdated.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomWatchingUsersFetched.d.ts +17 -0
- package/dist/roomRepository/events/onRoomWatchingUsersFetched.d.ts.map +1 -0
- package/dist/roomRepository/index.d.ts +5 -0
- package/dist/roomRepository/index.d.ts.map +1 -0
- package/dist/roomRepository/internalApi/getLiveChat.d.ts +16 -0
- package/dist/roomRepository/internalApi/getLiveChat.d.ts.map +1 -0
- package/dist/roomRepository/internalApi/getRoomById.d.ts +5 -0
- package/dist/roomRepository/internalApi/getRoomById.d.ts.map +1 -0
- package/dist/roomRepository/internalApi/getWatchingCount.d.ts +2 -0
- package/dist/roomRepository/internalApi/getWatchingCount.d.ts.map +1 -0
- package/dist/roomRepository/internalApi/getWatchingUsers.d.ts +2 -0
- package/dist/roomRepository/internalApi/getWatchingUsers.d.ts.map +1 -0
- package/dist/roomRepository/internalApi/index.d.ts +5 -0
- package/dist/roomRepository/internalApi/index.d.ts.map +1 -0
- package/dist/roomRepository/observers/enums.d.ts +10 -0
- package/dist/roomRepository/observers/enums.d.ts.map +1 -0
- package/dist/roomRepository/observers/getRoom.d.ts +2 -0
- package/dist/roomRepository/observers/getRoom.d.ts.map +1 -0
- package/dist/roomRepository/observers/getRooms/RoomLiveCollectionController.d.ts +14 -0
- package/dist/roomRepository/observers/getRooms/RoomLiveCollectionController.d.ts.map +1 -0
- package/dist/roomRepository/observers/getRooms/RoomPaginationController.d.ts +5 -0
- package/dist/roomRepository/observers/getRooms/RoomPaginationController.d.ts.map +1 -0
- package/dist/roomRepository/observers/getRooms/RoomQueryStreamController.d.ts +15 -0
- package/dist/roomRepository/observers/getRooms/RoomQueryStreamController.d.ts.map +1 -0
- package/dist/roomRepository/observers/getRooms.d.ts +29 -0
- package/dist/roomRepository/observers/getRooms.d.ts.map +1 -0
- package/dist/roomRepository/observers/getWatchingCount.d.ts +18 -0
- package/dist/roomRepository/observers/getWatchingCount.d.ts.map +1 -0
- package/dist/roomRepository/observers/getWatchingUsers.d.ts +18 -0
- package/dist/roomRepository/observers/getWatchingUsers.d.ts.map +1 -0
- package/dist/roomRepository/observers/index.d.ts +5 -0
- package/dist/roomRepository/observers/index.d.ts.map +1 -0
- package/dist/roomRepository/observers/utils.d.ts +6 -0
- package/dist/roomRepository/observers/utils.d.ts.map +1 -0
- package/dist/roomRepository/services/WatchingSync/WatchingSyncEngine.d.ts +24 -0
- package/dist/roomRepository/services/WatchingSync/WatchingSyncEngine.d.ts.map +1 -0
- package/dist/roomRepository/services/WatchingSync/index.d.ts +2 -0
- package/dist/roomRepository/services/WatchingSync/index.d.ts.map +1 -0
- package/dist/roomRepository/services/WatchingSync/watchingSyncEngineFactory.d.ts +32 -0
- package/dist/roomRepository/services/WatchingSync/watchingSyncEngineFactory.d.ts.map +1 -0
- package/dist/roomRepository/services/index.d.ts +2 -0
- package/dist/roomRepository/services/index.d.ts.map +1 -0
- package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/eventLinkObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/index.d.ts +1 -0
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/roomLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/roomLinkedObject.d.ts.map +1 -0
- package/dist/utils/postTypePredicate.d.ts +1 -0
- package/dist/utils/postTypePredicate.d.ts.map +1 -1
- package/dist/utils/tests/dummy/comment.d.ts +1 -1
- package/package.json +1 -1
- package/dist/client/utils/ObjectResolver/objectResolverEngine.d.ts.map +0 -1
- package/dist/client/utils/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts.map +0 -1
- package/dist/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts.map +0 -1
- package/dist/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts.map +0 -1
- package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +0 -1
- package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts.map +0 -1
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +0 -17
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +0 -1
- package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts.map +0 -1
- package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts.map +0 -1
- package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts.map +0 -1
- package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +0 -1
- /package/dist/client/{utils → services}/ObjectResolver/objectResolverEngine.d.ts +0 -0
- /package/dist/client/{utils → services}/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts +0 -0
- /package/dist/client/{utils → services}/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts +0 -0
- /package/dist/client/{utils → services}/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts +0 -0
- /package/dist/client/{utils → services}/ReadReceiptSync/readReceiptSyncEngine.d.ts +0 -0
- /package/dist/client/{utils → services}/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts +0 -0
- /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsLiveCollectionController.d.ts +0 -0
- /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsPaginationController.d.ts +0 -0
- /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsQueryStreamController.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { acceptInvitation } from '@amityco/ts-sdk'
|
|
4
|
+
* const isAccepted = await acceptInvitation(invitationId)
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Accepts a {@link Amity.Invitation} object
|
|
8
|
+
*
|
|
9
|
+
* @param invitationId the {@link Amity.Invitation} to accept
|
|
10
|
+
* @returns A success boolean if the {@link Amity.Invitation} was accepted
|
|
11
|
+
*
|
|
12
|
+
* @category Invitation API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const acceptInvitation: (invitationId: Amity.Invitation['_id']) => Promise<boolean>;
|
|
16
|
+
//# sourceMappingURL=acceptInvitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/acceptInvitation.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,iBAAwB,MAAM,UAAU,CAAC,KAAK,CAAC,KAAG,QAAQ,OAAO,CAE7F,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { rejectInvitation } from '@amityco/ts-sdk'
|
|
4
|
+
* const isRejected = await rejectInvitation(invitationId)
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Rejects a {@link Amity.Invitation} object
|
|
8
|
+
*
|
|
9
|
+
* @param invitationId the {@link Amity.Invitation} to reject
|
|
10
|
+
* @returns A success boolean if the {@link Amity.Invitation} was rejected
|
|
11
|
+
*
|
|
12
|
+
* @category Invitation API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const cancelInvitation: (invitationId: Amity.Invitation['_id']) => Promise<boolean>;
|
|
16
|
+
//# sourceMappingURL=cancelInvitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancelInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/cancelInvitation.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,iBAAwB,MAAM,UAAU,CAAC,KAAK,CAAC,KAAG,QAAQ,OAAO,CAmB7F,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { acceptInvitation } from '@amityco/ts-sdk'
|
|
4
|
+
* const isAccepted = await acceptInvitation(invitationId)
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Accepts a {@link Amity.Invitation} object
|
|
8
|
+
*
|
|
9
|
+
* @param invitationId the {@link Amity.Invitation} to accept
|
|
10
|
+
* @returns A success boolean if the {@link Amity.Invitation} was accepted
|
|
11
|
+
*
|
|
12
|
+
* @category Invitation API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const acceptInvitation: (invitationId: Amity.Invitation['_id']) => Promise<boolean>;
|
|
16
|
+
//# sourceMappingURL=getMyInvitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMyInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/getMyInvitation.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,iBAAwB,MAAM,UAAU,CAAC,KAAK,CAAC,KAAG,QAAQ,OAAO,CAE7F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onLocalInvitationCanceled } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onLocalInvitationCanceled(data => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when an {@link Amity.InvitationPayload} has been deleted
|
|
10
|
+
*
|
|
11
|
+
* @param callback The function to call when the event was fired
|
|
12
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
+
*
|
|
14
|
+
* @category Invitation Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onLocalInvitationCanceled: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onLocalInvitationCanceled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onLocalInvitationCanceled.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/onLocalInvitationCanceled.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,aAC1B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAeR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invitationRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invitationRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* @category Invitation API
|
|
14
14
|
* @async
|
|
15
15
|
*/
|
|
16
|
-
export declare const getInvitation: (
|
|
16
|
+
export declare const getInvitation: (params: Pick<Amity.QueryMyInvitations, 'targetId' | 'targetType' | 'type' | 'statuses'>) => Promise<Amity.Cached<Amity.Invitation | undefined>>;
|
|
17
17
|
//# sourceMappingURL=getInvitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/internalApi/getInvitation.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"getInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/internalApi/getInvitation.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,WAChB,KAAK,MAAM,kBAAkB,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC,KACtF,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,CAmBpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationsLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/InvitationsLiveCollectionController.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAQ1F,qBAAa,mCAAoC,SAAQ,wBAAwB,CAC/E,YAAY,EACZ,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CAAC,UAAU,EAChB,+BAA+B,CAChC;IACC,OAAO,CAAC,qBAAqB,CAAmC;IAEhE,OAAO,CAAC,KAAK,CAAiC;gBAG5C,KAAK,EAAE,KAAK,CAAC,wBAAwB,EACrC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC;IAoB1D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU;IAIrF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,YAAY,CAAC;IAI7D,iBAAiB;IAiBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE;CAsCrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationsPaginationController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/InvitationsPaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,+BAAgC,SAAQ,oBAAoB,CACvE,YAAY,EACZ,KAAK,CAAC,wBAAwB,CAC/B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,wBAAwB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAWxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationsQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/InvitationsQueryStreamController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,qBAAa,gCAAiC,SAAQ,qBAAqB,CACzE,KAAK,CAAC,iBAAiB,EACvB,KAAK,CAAC,wBAAwB,CAC/B;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAA0E;gBAG9F,KAAK,EAAE,KAAK,CAAC,wBAAwB,EACrC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB,KAAK,KAAK,CAAC,0BAA0B;IAOnF,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB;IAWpD,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAC7D,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAoBjB,OAAO,CAAC,MAAM,EAAE,qBAAqB,iBACd,MAAM,kBAAkB,EAAE;IA2BjD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;QAChF,MAAM,EAAE,qBAAqB,CAAC;KAC/B,EAAE;CAIN"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum InvitationActionsEnum {
|
|
2
2
|
OnLocalInvitationCreated = "onLocalInvitationCreated",
|
|
3
3
|
OnLocalInvitationUpdated = "onLocalInvitationUpdated",
|
|
4
|
-
|
|
4
|
+
OnLocalInvitationCanceled = "onLocalInvitationCanceled"
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;CACxD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get invitations
|
|
3
|
+
*
|
|
4
|
+
* @param params the query parameters
|
|
5
|
+
* @param callback the callback to be called when the invitations are updated
|
|
6
|
+
* @returns invitations
|
|
7
|
+
*
|
|
8
|
+
* @category Invitation Live Collection
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare const getInvitations: (params: Amity.InvitationLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Invitation>, config?: Amity.LiveCollectionConfig) => () => void;
|
|
12
|
+
//# sourceMappingURL=getInvitations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/internalObservers/getInvitations.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,WACjB,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,WAC/C,MAAM,oBAAoB,eAyBpC,CAAC"}
|
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Get invitations
|
|
3
2
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @returns invitations
|
|
3
|
+
* ```js
|
|
4
|
+
* import { InvitationRepository } from '@amityco/ts-sdk';
|
|
7
5
|
*
|
|
8
|
-
*
|
|
6
|
+
* // For room invitations
|
|
7
|
+
* const unsubscribe = InvitationRepository.getInvitations(
|
|
8
|
+
* { targetId: 'room123', targetType: 'room' },
|
|
9
|
+
* response => {
|
|
10
|
+
* console.log('Room invitation event:', response.room, response.users, response.eventType)
|
|
11
|
+
* }
|
|
12
|
+
* );
|
|
9
13
|
*
|
|
14
|
+
* // For community invitations (when implemented)
|
|
15
|
+
* const unsubscribe2 = observeInvitations(
|
|
16
|
+
* { targetId: 'community456', targetType: 'community' },
|
|
17
|
+
* response => {
|
|
18
|
+
* console.log('Community invitation event:', response.community, response.users, response.eventType)
|
|
19
|
+
* }
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Observe invitations events including invited, accepted, rejected, and canceled
|
|
24
|
+
*
|
|
25
|
+
* @param params The target ID and type to observe invitations for
|
|
26
|
+
* @param callback The function to call when new invitation events are available
|
|
27
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the events
|
|
28
|
+
*
|
|
29
|
+
* @category Invitation Observable
|
|
10
30
|
*/
|
|
11
|
-
export declare const getInvitations: (params: Amity.
|
|
31
|
+
export declare const getInvitations: <T extends "community" | "room">(params: Pick<Amity.QueryInvitations, "targetId" | "targetType"> & {
|
|
32
|
+
targetType: T;
|
|
33
|
+
}, callback: Amity.Listener<Amity.Invitation[]>) => Amity.Unsubscriber;
|
|
12
34
|
//# sourceMappingURL=getInvitations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/getInvitations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/getInvitations.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,cAAc;;aAEf,MAAM,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,KAC3C,MAAM,YA4CR,CAAC"}
|
package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
|
|
2
|
-
import { InvitationActionsEnum } from '
|
|
2
|
+
import { InvitationActionsEnum } from '../../internalObservers/getInvitations/enums';
|
|
3
3
|
export declare class MyInvitationsQueryStreamController extends QueryStreamController<Amity.MyInvitationsPayload, Amity.MyInvitationsLiveCollection> {
|
|
4
4
|
private notifyChange;
|
|
5
5
|
private preparePayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MyInvitationsQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"MyInvitationsQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAErF,qBAAa,kCAAmC,SAAQ,qBAAqB,CAC3E,KAAK,CAAC,oBAAoB,EAC1B,KAAK,CAAC,2BAA2B,CAClC;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEmB;gBAGvC,KAAK,EAAE,KAAK,CAAC,2BAA2B,EACxC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB,KAAK,KAAK,CAAC,6BAA6B;IAOzF,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB;IAWvD,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAChE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAoBjB,OAAO,CAAC,MAAM,EAAE,qBAAqB,iBACd,MAAM,kBAAkB,EAAE;IAiCjD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;QAChF,MAAM,EAAE,qBAAqB,CAAC;KAC/B,EAAE;CAIN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* @category Live Reaction API
|
|
20
20
|
* @async
|
|
21
21
|
*/
|
|
22
|
-
export declare const createReaction: ({ referenceId, referenceType, reactionName,
|
|
22
|
+
export declare const createReaction: ({ referenceId, referenceType, reactionName, roomId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & {
|
|
23
23
|
referenceId: string;
|
|
24
|
-
|
|
24
|
+
roomId: string;
|
|
25
25
|
}) => Promise<boolean>;
|
|
26
26
|
//# sourceMappingURL=createReaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;iBAMZ,MAAM;
|
|
1
|
+
{"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;iBAMZ,MAAM;YACX,MAAM;MACZ,QAAQ,OAAO,CAwBlB,CAAC"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* @category Live Reaction API
|
|
14
14
|
* @async
|
|
15
15
|
*/
|
|
16
|
-
export declare const createLiveReaction: ({ reactions,
|
|
16
|
+
export declare const createLiveReaction: ({ reactions, roomId, }: {
|
|
17
17
|
reactions: Amity.CreateLiveReactionRequest[];
|
|
18
|
-
|
|
18
|
+
roomId: string;
|
|
19
19
|
}) => Promise<Amity.CreateLiveReactionResponse>;
|
|
20
20
|
//# sourceMappingURL=createLiveReaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLiveReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/internalApi/createLiveReaction.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;eAIlB,MAAM,yBAAyB,EAAE;
|
|
1
|
+
{"version":3,"file":"createLiveReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/internalApi/createLiveReaction.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;eAIlB,MAAM,yBAAyB,EAAE;YACpC,MAAM;MACZ,QAAQ,MAAM,0BAA0B,CAc3C,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare class LiveReactionSyncEngine {
|
|
|
9
9
|
startReactionsSync(): void;
|
|
10
10
|
stopReactionsSync(): void;
|
|
11
11
|
createLiveReaction(liveReaction: Amity.CreateLiveReactionRequest & {
|
|
12
|
-
|
|
12
|
+
roomId: string;
|
|
13
13
|
}): void;
|
|
14
14
|
private addConnectionListener;
|
|
15
15
|
private removeConnectionListener;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionSyncEngine.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/service/ReactionSyncEngine.ts"],"names":[],"mappings":"AAKA,cAAM,sBAAsB;IAC1B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAc;IAEhD,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ReactionSyncEngine.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/service/ReactionSyncEngine.ts"],"names":[],"mappings":"AAKA,cAAM,sBAAsB;IAC1B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAc;IAEhD,OAAO,CAAC,MAAM,CAAgE;IAE9E,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,kBAAkB,CAAsB;IAEhD,OAAO,CAAC,WAAW,CAAQ;;IAM3B,kBAAkB;IAQlB,iBAAiB;IAOjB,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,yBAAyB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;IAIrF,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,WAAW;IAKnB,oBAAoB;IAKpB,kBAAkB;IAclB,cAAc;CAGf;;;;AAID,wBAOE"}
|
|
@@ -24,8 +24,9 @@ export declare const getChannelMessagePreviewWithUser: (channel: Amity.StaticInt
|
|
|
24
24
|
attachedTo?: {
|
|
25
25
|
postId?: string | undefined;
|
|
26
26
|
videoStreamId?: string | undefined;
|
|
27
|
+
roomId?: string | undefined;
|
|
27
28
|
} | undefined;
|
|
28
|
-
} & Amity.Metadata & Amity.Taggable & Amity.CreatedAt & Amity.UpdatedAt & Amity.DeletedAt & {
|
|
29
|
+
} & Amity.Metadata<Record<string, any>> & Amity.Taggable & Amity.CreatedAt & Amity.UpdatedAt & Amity.DeletedAt & {
|
|
29
30
|
isDeleted?: boolean | undefined;
|
|
30
31
|
} & Amity.Subscribable & {
|
|
31
32
|
defaultSubChannelId: string;
|
|
@@ -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,7 +3,7 @@ export declare const getSubChannelMessagePreviewWithUser: (subChannel: Amity.Sub
|
|
|
3
3
|
user: Amity.InternalUser | undefined;
|
|
4
4
|
messagePreviewId: string;
|
|
5
5
|
subChannelName: string;
|
|
6
|
-
data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | undefined;
|
|
6
|
+
data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | Amity.ContentDataRoom | undefined;
|
|
7
7
|
dataType?: any;
|
|
8
8
|
channelId: string;
|
|
9
9
|
subChannelId: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { createRoom } from '@amityco/ts-sdk'
|
|
4
|
+
* const created = await createRoom({ title: 'my room', 'thumbnailFileId': fileId })
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Creates an {@link Amity.Room}
|
|
8
|
+
*
|
|
9
|
+
* @param bundle The data necessary to create a new {@link Amity.Room}
|
|
10
|
+
* @returns The newly created {@link Amity.Room}
|
|
11
|
+
*
|
|
12
|
+
* @category Room API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const createRoom: (bundle: {
|
|
16
|
+
title: string;
|
|
17
|
+
thumbnailFileId?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
metadata?: Record<string, any>;
|
|
20
|
+
liveChatEnabled?: boolean;
|
|
21
|
+
parentRoomId?: string;
|
|
22
|
+
type?: Amity.RoomType;
|
|
23
|
+
}) => Promise<Amity.Cached<Amity.Room>>;
|
|
24
|
+
//# sourceMappingURL=createRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/createRoom.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,UAAU,WAAkB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;CACvB,KAAG,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAkBnC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { deleteRoom } from '@amityco/ts-sdk'
|
|
4
|
+
* const result = await deleteRoom('roomId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Deletes an {@link Amity.Room}
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to delete
|
|
10
|
+
* @returns Promise that resolves when the room is deleted
|
|
11
|
+
*
|
|
12
|
+
* @category Room API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const deleteRoom: (roomId: string) => Promise<void>;
|
|
16
|
+
//# sourceMappingURL=deleteRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/deleteRoom.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,WAAkB,MAAM,KAAG,QAAQ,IAAI,CAO7D,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { getBroadcasterData } from '@amityco/ts-sdk'
|
|
4
|
+
* const token = await getBroadcasterData('roomId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Gets broadcaster data for a room
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to get token for
|
|
10
|
+
* @returns The broadcaster data of the room including coHostToken, coHostUrl and direactStreamUrl
|
|
11
|
+
*
|
|
12
|
+
* @category Room API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getBroadcasterData: (roomId: string) => Promise<Amity.BroadcasterData>;
|
|
16
|
+
//# sourceMappingURL=getBroadcasterData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBroadcasterData.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/getBroadcasterData.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,WAAkB,MAAM,KAAG,QAAQ,MAAM,eAAe,CAOtF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { getRecordedUrl } from '@amityco/ts-sdk'
|
|
4
|
+
* const recordedUrl = await getRecordedUrl('roomId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Gets the recorded URL for a room
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to get recorded URL for
|
|
10
|
+
* @returns The recorded URL information
|
|
11
|
+
*
|
|
12
|
+
* @category Room API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getRecordedUrl: (roomId: string) => Promise<{
|
|
16
|
+
url: string;
|
|
17
|
+
expiresAt?: string;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=getRecordedUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecordedUrl.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/getRecordedUrl.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,WACjB,MAAM,KACb,QAAQ;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAS7C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './createRoom';
|
|
2
|
+
export * from './updateRoom';
|
|
3
|
+
export * from './deleteRoom';
|
|
4
|
+
export * from './stopRoom';
|
|
5
|
+
export * from './getBroadcasterData';
|
|
6
|
+
export * from './getRecordedUrl';
|
|
7
|
+
export * from './removeParticipant';
|
|
8
|
+
export * from './leaveRoom';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { leaveRoom } from '@amityco/ts-sdk'
|
|
4
|
+
* const result = await leaveRoom('roomId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Leaves an {@link Amity.Room}
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to leave
|
|
10
|
+
* @returns Promise that resolves when the user has left the room
|
|
11
|
+
*
|
|
12
|
+
* @category Room API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const leaveRoom: (roomId: string) => Promise<void>;
|
|
16
|
+
//# sourceMappingURL=leaveRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leaveRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/leaveRoom.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,WAAkB,MAAM,KAAG,QAAQ,IAAI,CAS5D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { removeParticipant } from '@amityco/ts-sdk'
|
|
4
|
+
* const result = await removeParticipant('roomId', 'participantUserId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Removes a participant from an {@link Amity.Room}
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to remove participant from
|
|
10
|
+
* @param participantUserId The ID of the user to remove as participant
|
|
11
|
+
* @returns Promise that resolves when the participant is removed
|
|
12
|
+
*
|
|
13
|
+
* @category Room API
|
|
14
|
+
* @async
|
|
15
|
+
*/
|
|
16
|
+
export declare const removeParticipant: (roomId: string, participantUserId: string) => Promise<void>;
|
|
17
|
+
//# sourceMappingURL=removeParticipant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeParticipant.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/removeParticipant.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,WACpB,MAAM,qBACK,MAAM,KACxB,QAAQ,IAAI,CAUd,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { stopRoom } from '@amityco/ts-sdk'
|
|
4
|
+
* const result = await stopRoom('roomId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Stops a room's broadcasting
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to stop
|
|
10
|
+
* @returns The updated room data
|
|
11
|
+
*
|
|
12
|
+
* @category Room API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const stopRoom: (roomId: string) => Promise<Amity.Cached<Amity.Room>>;
|
|
16
|
+
//# sourceMappingURL=stopRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stopRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/stopRoom.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,WAAkB,MAAM,KAAG,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAiB/E,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { updateRoom } from '@amityco/ts-sdk'
|
|
4
|
+
* const updated = await updateRoom('roomId', { title: 'updated title' })
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Updates an {@link Amity.InternalRoom}
|
|
8
|
+
*
|
|
9
|
+
* @param roomId The ID of the room to update
|
|
10
|
+
* @param bundle The data to update the room with
|
|
11
|
+
* @returns The updated {@link Amity.InternalRoom}
|
|
12
|
+
*
|
|
13
|
+
* @category Room API
|
|
14
|
+
* @async
|
|
15
|
+
*/
|
|
16
|
+
export declare const updateRoom: (roomId: string, bundle: Partial<{
|
|
17
|
+
title: string;
|
|
18
|
+
thumbnailFileId: string;
|
|
19
|
+
description: string;
|
|
20
|
+
metadata: Record<string, any>;
|
|
21
|
+
liveChatEnabled: boolean;
|
|
22
|
+
parentRoomId: string;
|
|
23
|
+
}>) => Promise<Amity.Cached<Amity.Room>>;
|
|
24
|
+
//# sourceMappingURL=updateRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/updateRoom.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,UACN,QAAQ;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,KACD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAiBlC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './onRoomStartBroadcasting';
|
|
2
|
+
export * from './onRoomWaitingReconnect';
|
|
3
|
+
export * from './onRoomEndBroadcasting';
|
|
4
|
+
export * from './onRoomRecordedAvailable';
|
|
5
|
+
export * from './onRoomCoHostInvited';
|
|
6
|
+
export * from './onRoomCoHostInviteAccepted';
|
|
7
|
+
export * from './onRoomCoHostInviteRejected';
|
|
8
|
+
export * from './onRoomCoHostInviteCanceled';
|
|
9
|
+
export * from './onRoomParticipantJoined';
|
|
10
|
+
export * from './onRoomParticipantLeft';
|
|
11
|
+
export * from './onRoomCreated';
|
|
12
|
+
export * from './onRoomUpdated';
|
|
13
|
+
export * from './onRoomDeleted';
|
|
14
|
+
export * from './onRoomStopped';
|
|
15
|
+
export * from './onRoomParticipantRemoved';
|
|
16
|
+
export * from './onRoomLeft';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomCoHostInviteAccepted } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomCoHostInviteAccepted(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a co-host invitation is accepted for a {@link Amity.Room}
|
|
10
|
+
*
|
|
11
|
+
* @param callback The function to call when the event was fired
|
|
12
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
+
*
|
|
14
|
+
* @category Room Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onRoomCoHostInviteAccepted: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomCoHostInviteAccepted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomCoHostInviteAccepted.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteAccepted.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAgBR,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomCoHostInviteCanceled } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomCoHostInviteCanceled(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a co-host invitation is canceled for a {@link Amity.Room}
|
|
10
|
+
*
|
|
11
|
+
* @param callback The function to call when the event was fired
|
|
12
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
+
*
|
|
14
|
+
* @category Room Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onRoomCoHostInviteCanceled: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomCoHostInviteCanceled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomCoHostInviteCanceled.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteCanceled.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAgBR,CAAC"}
|