@amityco/ts-sdk 7.11.1-ec3d3468.0 → 7.11.1-f0f4372a.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 +6 -21
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +0 -3
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +0 -6
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/channel.d.ts +0 -1
- package/dist/@types/domains/channel.d.ts.map +1 -1
- package/dist/@types/domains/content.d.ts +1 -4
- package/dist/@types/domains/content.d.ts.map +1 -1
- package/dist/@types/domains/event.d.ts +9 -1
- package/dist/@types/domains/event.d.ts.map +1 -1
- package/dist/@types/domains/feed.d.ts +1 -2
- package/dist/@types/domains/feed.d.ts.map +1 -1
- package/dist/@types/domains/invitation.d.ts +2 -7
- package/dist/@types/domains/invitation.d.ts.map +1 -1
- package/dist/@types/domains/notification.d.ts +3 -1
- package/dist/@types/domains/notification.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +0 -2
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/index.d.ts +0 -2
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/channelRepository/api/createChannel.d.ts +0 -1
- package/dist/channelRepository/api/createChannel.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/core/subscription.d.ts +0 -2
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/eventRepository/events/enums.d.ts +3 -1
- package/dist/eventRepository/events/enums.d.ts.map +1 -1
- package/dist/eventRepository/events/index.d.ts +4 -0
- package/dist/eventRepository/events/index.d.ts.map +1 -1
- package/dist/eventRepository/events/onLocalRSVPCreated.d.ts +17 -0
- package/dist/eventRepository/events/onLocalRSVPCreated.d.ts.map +1 -0
- package/dist/eventRepository/events/onLocalRSVPUpdated.d.ts +17 -0
- package/dist/eventRepository/events/onLocalRSVPUpdated.d.ts.map +1 -0
- package/dist/eventRepository/events/onRSVPCreated.d.ts +17 -0
- package/dist/eventRepository/events/onRSVPCreated.d.ts.map +1 -0
- package/dist/eventRepository/events/onRSVPUpdated.d.ts +17 -0
- package/dist/eventRepository/events/onRSVPUpdated.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/createRSVP.d.ts +16 -0
- package/dist/eventRepository/internalApi/createRSVP.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/getMyRSVP.d.ts +32 -0
- package/dist/eventRepository/internalApi/getMyRSVP.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/index.d.ts +3 -0
- package/dist/eventRepository/internalApi/index.d.ts.map +1 -1
- package/dist/eventRepository/internalApi/updateRSVP.d.ts +17 -0
- package/dist/eventRepository/internalApi/updateRSVP.d.ts.map +1 -0
- package/dist/eventRepository/observers/getRSVPs/LiveCollectionController.d.ts +13 -0
- package/dist/eventRepository/observers/getRSVPs/LiveCollectionController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getRSVPs/PaginationController.d.ts +5 -0
- package/dist/eventRepository/observers/getRSVPs/PaginationController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getRSVPs/QueryStreamController.d.ts +15 -0
- package/dist/eventRepository/observers/getRSVPs/QueryStreamController.d.ts.map +1 -0
- package/dist/eventRepository/observers/getRSVPs.d.ts +12 -0
- package/dist/eventRepository/observers/getRSVPs.d.ts.map +1 -0
- package/dist/eventRepository/observers/index.d.ts +1 -0
- package/dist/eventRepository/observers/index.d.ts.map +1 -1
- package/dist/index.cjs.js +2840 -3669
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2134 -2960
- package/dist/index.umd.js +3 -3
- package/dist/invitationRepository/events/index.d.ts +1 -1
- package/dist/invitationRepository/events/index.d.ts.map +1 -1
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +1 -0
- package/dist/invitationRepository/index.d.ts +0 -1
- 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/observers/getInvitations/enums.d.ts +1 -1
- package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +1 -1
- package/dist/invitationRepository/observers/index.d.ts +0 -1
- 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 +0 -1
- package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
- package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
- 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 +0 -1
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/postTypePredicate.d.ts +0 -1
- 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/@types/domains/room.d.ts +0 -80
- package/dist/@types/domains/room.d.ts.map +0 -1
- package/dist/invitationRepository/api/acceptInvitation.d.ts +0 -16
- package/dist/invitationRepository/api/acceptInvitation.d.ts.map +0 -1
- package/dist/invitationRepository/api/cancelInvitation.d.ts +0 -16
- package/dist/invitationRepository/api/cancelInvitation.d.ts.map +0 -1
- package/dist/invitationRepository/api/getMyInvitation.d.ts +0 -16
- package/dist/invitationRepository/api/getMyInvitation.d.ts.map +0 -1
- package/dist/invitationRepository/api/index.d.ts +0 -3
- package/dist/invitationRepository/api/index.d.ts.map +0 -1
- package/dist/invitationRepository/events/onLocalInvitationCanceled.d.ts +0 -17
- package/dist/invitationRepository/events/onLocalInvitationCanceled.d.ts.map +0 -1
- package/dist/invitationRepository/observers/observeInvitations.d.ts +0 -34
- package/dist/invitationRepository/observers/observeInvitations.d.ts.map +0 -1
- package/dist/roomRepository/api/createRoom.d.ts +0 -24
- package/dist/roomRepository/api/createRoom.d.ts.map +0 -1
- package/dist/roomRepository/api/deleteRoom.d.ts +0 -16
- package/dist/roomRepository/api/deleteRoom.d.ts.map +0 -1
- package/dist/roomRepository/api/getBroadcasterData.d.ts +0 -16
- package/dist/roomRepository/api/getBroadcasterData.d.ts.map +0 -1
- package/dist/roomRepository/api/getRecordedUrl.d.ts +0 -19
- package/dist/roomRepository/api/getRecordedUrl.d.ts.map +0 -1
- package/dist/roomRepository/api/index.d.ts +0 -9
- package/dist/roomRepository/api/index.d.ts.map +0 -1
- package/dist/roomRepository/api/leaveRoom.d.ts +0 -16
- package/dist/roomRepository/api/leaveRoom.d.ts.map +0 -1
- package/dist/roomRepository/api/removeParticipant.d.ts +0 -17
- package/dist/roomRepository/api/removeParticipant.d.ts.map +0 -1
- package/dist/roomRepository/api/stopRoom.d.ts +0 -16
- package/dist/roomRepository/api/stopRoom.d.ts.map +0 -1
- package/dist/roomRepository/api/updateRoom.d.ts +0 -24
- package/dist/roomRepository/api/updateRoom.d.ts.map +0 -1
- package/dist/roomRepository/events/index.d.ts +0 -17
- package/dist/roomRepository/events/index.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts +0 -17
- package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomCoHostInviteCanceled.d.ts +0 -17
- package/dist/roomRepository/events/onRoomCoHostInviteCanceled.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomCoHostInviteRejected.d.ts +0 -17
- package/dist/roomRepository/events/onRoomCoHostInviteRejected.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomCoHostInvited.d.ts +0 -17
- package/dist/roomRepository/events/onRoomCoHostInvited.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomCreated.d.ts +0 -17
- package/dist/roomRepository/events/onRoomCreated.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomDeleted.d.ts +0 -17
- package/dist/roomRepository/events/onRoomDeleted.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomEndBroadcasting.d.ts +0 -17
- package/dist/roomRepository/events/onRoomEndBroadcasting.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomLeft.d.ts +0 -17
- package/dist/roomRepository/events/onRoomLeft.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomParticipantJoined.d.ts +0 -17
- package/dist/roomRepository/events/onRoomParticipantJoined.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomParticipantLeft.d.ts +0 -17
- package/dist/roomRepository/events/onRoomParticipantLeft.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts +0 -17
- package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomRecordedAvailable.d.ts +0 -17
- package/dist/roomRepository/events/onRoomRecordedAvailable.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomStartBroadcasting.d.ts +0 -17
- package/dist/roomRepository/events/onRoomStartBroadcasting.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomStopped.d.ts +0 -17
- package/dist/roomRepository/events/onRoomStopped.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomUpdated.d.ts +0 -17
- package/dist/roomRepository/events/onRoomUpdated.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomWaitingReconnect.d.ts +0 -17
- package/dist/roomRepository/events/onRoomWaitingReconnect.d.ts.map +0 -1
- package/dist/roomRepository/index.d.ts +0 -4
- package/dist/roomRepository/index.d.ts.map +0 -1
- package/dist/roomRepository/internalApi/getLiveChat.d.ts +0 -16
- package/dist/roomRepository/internalApi/getLiveChat.d.ts.map +0 -1
- package/dist/roomRepository/internalApi/getRoomById.d.ts +0 -5
- package/dist/roomRepository/internalApi/getRoomById.d.ts.map +0 -1
- package/dist/roomRepository/internalApi/index.d.ts +0 -3
- package/dist/roomRepository/internalApi/index.d.ts.map +0 -1
- package/dist/roomRepository/observers/enums.d.ts +0 -10
- package/dist/roomRepository/observers/enums.d.ts.map +0 -1
- package/dist/roomRepository/observers/getRoom.d.ts +0 -2
- package/dist/roomRepository/observers/getRoom.d.ts.map +0 -1
- package/dist/roomRepository/observers/getRooms/RoomLiveCollectionController.d.ts +0 -14
- package/dist/roomRepository/observers/getRooms/RoomLiveCollectionController.d.ts.map +0 -1
- package/dist/roomRepository/observers/getRooms/RoomPaginationController.d.ts +0 -5
- package/dist/roomRepository/observers/getRooms/RoomPaginationController.d.ts.map +0 -1
- package/dist/roomRepository/observers/getRooms/RoomQueryStreamController.d.ts +0 -15
- package/dist/roomRepository/observers/getRooms/RoomQueryStreamController.d.ts.map +0 -1
- package/dist/roomRepository/observers/getRooms.d.ts +0 -29
- package/dist/roomRepository/observers/getRooms.d.ts.map +0 -1
- package/dist/roomRepository/observers/index.d.ts +0 -3
- package/dist/roomRepository/observers/index.d.ts.map +0 -1
- package/dist/roomRepository/observers/utils.d.ts +0 -6
- package/dist/roomRepository/observers/utils.d.ts.map +0 -1
- package/dist/utils/linkedObject/roomLinkedObject.d.ts +0 -2
- package/dist/utils/linkedObject/roomLinkedObject.d.ts.map +0 -1
|
@@ -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,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onLocalInvitationDeleted } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onLocalInvitationDeleted(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 onLocalInvitationDeleted: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onLocalInvitationDeleted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onLocalInvitationDeleted.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/onLocalInvitationDeleted.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,aACzB,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAYR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invitationRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invitationRepository/index.ts"],"names":[],"mappings":"AAAA,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: (targetType: Amity.Invitation['targetType'], targetId: Amity.Invitation['targetId']) => 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,eACZ,MAAM,UAAU,CAAC,YAAY,CAAC,YAChC,MAAM,UAAU,CAAC,UAAU,CAAC,KACrC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,CAmBpD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum InvitationActionsEnum {
|
|
2
2
|
OnLocalInvitationCreated = "onLocalInvitationCreated",
|
|
3
3
|
OnLocalInvitationUpdated = "onLocalInvitationUpdated",
|
|
4
|
-
|
|
4
|
+
OnLocalInvitationDeleted = "onLocalInvitationDeleted"
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getInvitations/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getInvitations/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;CACtD"}
|
|
@@ -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"}
|
|
@@ -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, streamId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & {
|
|
23
23
|
referenceId: string;
|
|
24
|
-
|
|
24
|
+
streamId: 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;cACT,MAAM;MACd,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, liveStreamId, }: {
|
|
17
17
|
reactions: Amity.CreateLiveReactionRequest[];
|
|
18
|
-
|
|
18
|
+
liveStreamId: 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;kBAC9B,MAAM;MAClB,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
|
+
streamId: 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,CAAkE;IAEhF,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,QAAQ,EAAE,MAAM,CAAA;KAAE;IAIvF,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,7 +24,6 @@ export declare const getChannelMessagePreviewWithUser: (channel: Amity.StaticInt
|
|
|
24
24
|
attachedTo?: {
|
|
25
25
|
postId?: string | undefined;
|
|
26
26
|
videoStreamId?: string | undefined;
|
|
27
|
-
roomId?: string | undefined;
|
|
28
27
|
} | undefined;
|
|
29
28
|
} & Amity.Metadata<Record<string, any>> & Amity.Taggable & Amity.CreatedAt & Amity.UpdatedAt & Amity.DeletedAt & {
|
|
30
29
|
isDeleted?: boolean | undefined;
|
|
@@ -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 |
|
|
6
|
+
data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | undefined;
|
|
7
7
|
dataType?: any;
|
|
8
8
|
channelId: string;
|
|
9
9
|
subChannelId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communityLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/communityLinkedObject.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,qBAAqB,cAAe,MAAM,iBAAiB,KAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"communityLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/communityLinkedObject.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,qBAAqB,cAAe,MAAM,iBAAiB,KAAG,MAAM,SAyDhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventLinkObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/eventLinkObject.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eventLinkObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/eventLinkObject.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,UAAW,MAAM,aAAa,KAAG,WAqD9D,CAAC"}
|
|
@@ -16,7 +16,6 @@ export declare const LinkedObject: {
|
|
|
16
16
|
invitation: (invitation: Amity.InternalInvitation) => Amity.Invitation;
|
|
17
17
|
joinRequest: (joinRequest: Amity.InternalJoinRequest) => Amity.JoinRequest;
|
|
18
18
|
channelMember: (channelMember: Amity.Membership<"channel">) => Amity.Membership<"channel">;
|
|
19
|
-
room: (room: Amity.RawRoom) => Amity.Room;
|
|
20
19
|
event: (event: Amity.RawEvent) => Amity.Event;
|
|
21
20
|
};
|
|
22
21
|
//# 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":"AAmBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CAmBxB,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":"AAiBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IA8FjE,CAAC"}
|
|
@@ -5,5 +5,4 @@ export declare function isAmityLivestreamPost(post: Amity.InternalPost): post is
|
|
|
5
5
|
export declare function isAmityPollPost(post: Amity.InternalPost): post is Amity.Post<'poll'>;
|
|
6
6
|
export declare function isAmityClipPost(post: Amity.InternalPost): post is Amity.Post<'clip'>;
|
|
7
7
|
export declare function isAmityAudioPost(post: Amity.InternalPost): post is Amity.Post<'audio'>;
|
|
8
|
-
export declare function isAmityRoomPost(post: Amity.InternalPost): post is Amity.Post<'room'>;
|
|
9
8
|
//# sourceMappingURL=postTypePredicate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postTypePredicate.d.ts","sourceRoot":"","sources":["../../src/utils/postTypePredicate.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAQtF;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAOhG;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF
|
|
1
|
+
{"version":3,"file":"postTypePredicate.d.ts","sourceRoot":"","sources":["../../src/utils/postTypePredicate.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAQtF;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAOhG;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF"}
|
|
@@ -23,7 +23,7 @@ export declare const generateComment: (params?: Partial<Amity.InternalComment>)
|
|
|
23
23
|
referenceType: Amity.CommentReferenceType;
|
|
24
24
|
dataType?: any;
|
|
25
25
|
dataTypes?: any[] | undefined;
|
|
26
|
-
data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip |
|
|
26
|
+
data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | undefined;
|
|
27
27
|
metadata?: Record<string, any> | undefined;
|
|
28
28
|
flagCount: number;
|
|
29
29
|
hashFlag: {
|
package/package.json
CHANGED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
declare global {
|
|
3
|
-
namespace Amity {
|
|
4
|
-
type RoomType = 'directStreaming' | 'coHosts';
|
|
5
|
-
type RoomTargetType = 'community' | 'user';
|
|
6
|
-
type RoomTargetVisibility = 'public' | 'private';
|
|
7
|
-
type RoomReferenceType = 'post' | 'event';
|
|
8
|
-
type RoomStatus = 'idle' | 'live' | 'waiting_reconnect' | 'ended' | 'recorded';
|
|
9
|
-
type RoomParticipant = {
|
|
10
|
-
type: 'host' | 'coHost';
|
|
11
|
-
userId: string;
|
|
12
|
-
};
|
|
13
|
-
type RawRoom = {
|
|
14
|
-
_id: string;
|
|
15
|
-
roomId: string;
|
|
16
|
-
type: RoomType;
|
|
17
|
-
targetId?: string;
|
|
18
|
-
targetType?: RoomTargetType;
|
|
19
|
-
targetVisibility?: RoomTargetVisibility;
|
|
20
|
-
referenceType?: RoomReferenceType;
|
|
21
|
-
referenceId?: string;
|
|
22
|
-
liveChannelId?: string;
|
|
23
|
-
liveChatEnabled: boolean;
|
|
24
|
-
title: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
thumbnailFileId?: string;
|
|
27
|
-
status: RoomStatus;
|
|
28
|
-
participants: RoomParticipant[];
|
|
29
|
-
livePlaybackUrl?: string;
|
|
30
|
-
liveThumbnailUrl?: string;
|
|
31
|
-
recordedPlaybackInfos: {
|
|
32
|
-
url: string;
|
|
33
|
-
thumbnailUrl: string;
|
|
34
|
-
}[];
|
|
35
|
-
durationSeconds?: number;
|
|
36
|
-
moderation?: Record<string, any>;
|
|
37
|
-
parentRoomId?: string;
|
|
38
|
-
childRoomIds?: string[];
|
|
39
|
-
createdAt: string;
|
|
40
|
-
createdBy: string;
|
|
41
|
-
updatedAt: string;
|
|
42
|
-
liveAt?: string;
|
|
43
|
-
endedAt?: string;
|
|
44
|
-
recordedAt?: string;
|
|
45
|
-
isDeleted: boolean;
|
|
46
|
-
deletedAt: string;
|
|
47
|
-
deletedBy: string;
|
|
48
|
-
creatorInternalId: string;
|
|
49
|
-
path: string;
|
|
50
|
-
};
|
|
51
|
-
type InternalRoom = RawRoom;
|
|
52
|
-
type RoomLinkedObject = {
|
|
53
|
-
moderation?: Amity.StreamModeration;
|
|
54
|
-
post?: Amity.InternalPost;
|
|
55
|
-
childRooms: Amity.Room[];
|
|
56
|
-
getLiveChat: () => Promise<Amity.Channel<'live'> | undefined>;
|
|
57
|
-
createInvitation: (userId: string) => Promise<Amity.Cached<Amity.InternalInvitation[]>>;
|
|
58
|
-
getInvitations: (params: Pick<Amity.InvitationLiveCollection, 'limit' | 'sortBy' | 'statuses'>, callback: Amity.LiveCollectionCallback<Amity.Invitation>) => Amity.Unsubscriber;
|
|
59
|
-
getMyInvitation: () => Promise<Amity.Invitation | undefined>;
|
|
60
|
-
};
|
|
61
|
-
type Room = InternalRoom & RoomLinkedObject;
|
|
62
|
-
type RoomLiveCollection = {
|
|
63
|
-
type?: RoomType;
|
|
64
|
-
statuses?: RoomStatus[];
|
|
65
|
-
sortBy?: 'firstCreated' | 'lastCreated';
|
|
66
|
-
limit?: number;
|
|
67
|
-
includeDeleted?: boolean;
|
|
68
|
-
};
|
|
69
|
-
type RoomLiveCollectionCache = {
|
|
70
|
-
data: string[];
|
|
71
|
-
params: Record<string, any>;
|
|
72
|
-
};
|
|
73
|
-
type BroadcasterData = {
|
|
74
|
-
coHostToken?: string;
|
|
75
|
-
coHostUrl?: string;
|
|
76
|
-
directStreamUrl?: string;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=room.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/room.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* ```js
|
|
4
|
-
* import { observeInvitations } from '@amityco/ts-sdk';
|
|
5
|
-
*
|
|
6
|
-
* // For room invitations
|
|
7
|
-
* const unsubscribe = observeInvitations(
|
|
8
|
-
* { targetId: 'room123', targetType: 'room' },
|
|
9
|
-
* response => {
|
|
10
|
-
* console.log('Room invitation event:', response.room, response.users, response.eventType)
|
|
11
|
-
* }
|
|
12
|
-
* );
|
|
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
|
|
30
|
-
*/
|
|
31
|
-
export declare const observeInvitations: <T extends "community" | "room">(params: Pick<Amity.QueryInvitations, "targetId" | "targetType"> & {
|
|
32
|
-
targetType: T;
|
|
33
|
-
}, callback: Amity.Listener<Amity.Invitation[]>) => Amity.Unsubscriber;
|
|
34
|
-
//# sourceMappingURL=observeInvitations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observeInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/observeInvitations.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,kBAAkB;;aAEnB,MAAM,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,KAC3C,MAAM,YA4CR,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAYd,CAAC"}
|