@amityco/ts-sdk 7.11.1-7526ae66.0 → 7.11.1-78c2ad3f.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 +48 -10
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +4 -0
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +17 -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/event.d.ts +81 -0
- package/dist/@types/domains/event.d.ts.map +1 -0
- 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/room.d.ts +25 -17
- package/dist/@types/domains/room.d.ts.map +1 -1
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/channelRepository/api/createChannel.d.ts +1 -0
- 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 +2 -0
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/eventRepository/api/createEvent.d.ts +16 -0
- package/dist/eventRepository/api/createEvent.d.ts.map +1 -0
- 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 +4 -0
- package/dist/eventRepository/api/index.d.ts.map +1 -0
- package/dist/eventRepository/api/updateEvent.d.ts +17 -0
- package/dist/eventRepository/api/updateEvent.d.ts.map +1 -0
- 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 +4 -0
- package/dist/eventRepository/index.d.ts.map +1 -0
- 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 +3 -0
- package/dist/eventRepository/utils/index.d.ts.map +1 -0
- package/dist/eventRepository/utils/prepareEventPayload.d.ts +2 -0
- package/dist/eventRepository/utils/prepareEventPayload.d.ts.map +1 -0
- package/dist/index.cjs.js +3858 -2738
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2140 -1023
- 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/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 +1 -0
- package/dist/invitationRepository/observers/index.d.ts.map +1 -1
- package/dist/invitationRepository/observers/observeInvitations.d.ts +34 -0
- package/dist/invitationRepository/observers/observeInvitations.d.ts.map +1 -0
- 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/roomRepository/api/getBroadcasterData.d.ts +16 -0
- package/dist/roomRepository/api/getBroadcasterData.d.ts.map +1 -0
- package/dist/roomRepository/api/index.d.ts +3 -1
- package/dist/roomRepository/api/index.d.ts.map +1 -1
- 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/updateRoom.d.ts +1 -1
- package/dist/roomRepository/api/updateRoom.d.ts.map +1 -1
- package/dist/roomRepository/events/index.d.ts +6 -1
- package/dist/roomRepository/events/index.d.ts.map +1 -1
- 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/{onRoomParticipantInviting.d.ts → onRoomCoHostInvited.d.ts} +2 -2
- package/dist/roomRepository/events/onRoomCoHostInvited.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/onRoomParticipantRemoved.d.ts +17 -0
- package/dist/roomRepository/events/onRoomParticipantRemoved.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/index.d.ts +1 -0
- package/dist/roomRepository/internalApi/index.d.ts.map +1 -1
- package/dist/roomRepository/observers/getRoom.d.ts.map +1 -1
- package/dist/roomRepository/observers/utils.d.ts +1 -1
- package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/eventLinkObject.d.ts +2 -0
- package/dist/utils/linkedObject/eventLinkObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +2 -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/package.json +1 -1
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +0 -17
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +0 -1
- package/dist/roomRepository/api/getRoomToken.d.ts +0 -16
- package/dist/roomRepository/api/getRoomToken.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomParticipantInviting.d.ts.map +0 -1
|
@@ -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"}
|
|
@@ -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
|
|
@@ -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,yBAAyB,8BAA8B;CACxD"}
|
|
@@ -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,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -2,6 +2,8 @@ export * from './createRoom';
|
|
|
2
2
|
export * from './updateRoom';
|
|
3
3
|
export * from './deleteRoom';
|
|
4
4
|
export * from './stopRoom';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './getBroadcasterData';
|
|
6
6
|
export * from './getRecordedUrl';
|
|
7
|
+
export * from './removeParticipant';
|
|
8
|
+
export * from './leaveRoom';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,CAYd,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const updateRoom: (roomId: string, bundle: Partial<{
|
|
|
18
18
|
thumbnailFileId: string;
|
|
19
19
|
description: string;
|
|
20
20
|
metadata: Record<string, any>;
|
|
21
|
-
|
|
21
|
+
liveChatEnabled: boolean;
|
|
22
22
|
parentRoomId: string;
|
|
23
23
|
}>) => Promise<Amity.Cached<Amity.Room>>;
|
|
24
24
|
//# sourceMappingURL=updateRoom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/updateRoom.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -2,11 +2,16 @@ export * from './onRoomStartBroadcasting';
|
|
|
2
2
|
export * from './onRoomWaitingReconnect';
|
|
3
3
|
export * from './onRoomEndBroadcasting';
|
|
4
4
|
export * from './onRoomRecordedAvailable';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './onRoomCoHostInvited';
|
|
6
|
+
export * from './onRoomCoHostInviteAccepted';
|
|
7
|
+
export * from './onRoomCoHostInviteRejected';
|
|
8
|
+
export * from './onRoomCoHostInviteCanceled';
|
|
6
9
|
export * from './onRoomParticipantJoined';
|
|
7
10
|
export * from './onRoomParticipantLeft';
|
|
8
11
|
export * from './onRoomCreated';
|
|
9
12
|
export * from './onRoomUpdated';
|
|
10
13
|
export * from './onRoomDeleted';
|
|
11
14
|
export * from './onRoomStopped';
|
|
15
|
+
export * from './onRoomParticipantRemoved';
|
|
16
|
+
export * from './onRoomLeft';
|
|
12
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomCoHostInviteRejected } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomCoHostInviteRejected(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a co-host invitation is rejected 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 onRoomCoHostInviteRejected: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomCoHostInviteRejected.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomCoHostInviteRejected.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteRejected.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAgBR,CAAC"}
|
package/dist/roomRepository/events/{onRoomParticipantInviting.d.ts → onRoomCoHostInvited.d.ts}
RENAMED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Room Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const
|
|
17
|
-
//# sourceMappingURL=
|
|
16
|
+
export declare const onRoomCoHostInvited: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomCoHostInvited.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomCoHostInvited.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInvited.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aACpB,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAWR,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomLeft } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomLeft(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a user has left a {@link Amity.Room} locally
|
|
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 onRoomLeft: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomLeft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomLeft.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomLeft.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,aAAc,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAAG,MAAM,YAS/E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomParticipantRemoved } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomParticipantRemoved(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a participant has been removed from a {@link Amity.Room} locally
|
|
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 onRoomParticipantRemoved: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomParticipantRemoved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomParticipantRemoved.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantRemoved.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,aACzB,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAC3C,MAAM,YAcR,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { RoomRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const stream = await getStream('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Fetches a {@link Amity.Channel} object linked with a current stream
|
|
8
|
+
*
|
|
9
|
+
* @param stream {@link Amity.Stream} that has linked live channel
|
|
10
|
+
* @returns the associated {@link Amity.Channel<'live'>} object
|
|
11
|
+
*
|
|
12
|
+
* @category Stream API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getLiveChat: (room: Amity.InternalRoom) => Promise<Amity.Channel<'live'> | undefined>;
|
|
16
|
+
//# sourceMappingURL=getLiveChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLiveChat.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/getLiveChat.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,WAAW,SAChB,MAAM,YAAY,KACvB,QAAQ,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,CAkC3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAoBR,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumRoomActions } from './enums';
|
|
2
2
|
export declare const getRoomSubscription: () => {
|
|
3
|
-
fn: (callback: Amity.Listener<Amity.
|
|
3
|
+
fn: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
|
|
4
4
|
action: EnumRoomActions;
|
|
5
5
|
}[];
|
|
6
6
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -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,SA4DhF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventLinkObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/eventLinkObject.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,UAAW,MAAM,aAAa,KAAG,WAqC9D,CAAC"}
|
|
@@ -16,5 +16,7 @@ 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
|
+
event: (event: Amity.RawEvent) => Amity.Event;
|
|
19
21
|
};
|
|
20
22
|
//# 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":"AAoBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAoBxB,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":"AAmBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAoGjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roomLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/roomLinkedObject.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAoEjE,CAAC"}
|