@amityco/ts-sdk 7.11.1-fec87c5.0 → 7.12.1-27702e75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/core/events.d.ts +5 -4
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/linkPreviewMetadata.d.ts +12 -0
- package/dist/@types/core/linkPreviewMetadata.d.ts.map +1 -0
- package/dist/@types/domains/community.d.ts +2 -7
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/liveStreamPlayer.d.ts +6 -2
- package/dist/@types/domains/liveStreamPlayer.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +10 -0
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/domains/room.d.ts +41 -2
- package/dist/@types/domains/room.d.ts.map +1 -1
- package/dist/client/api/fetchLinkPreview.d.ts +3 -0
- package/dist/client/api/fetchLinkPreview.d.ts.map +1 -1
- package/dist/client/api/getLinkPreviewMetadata.d.ts +14 -0
- package/dist/client/api/getLinkPreviewMetadata.d.ts.map +1 -0
- package/dist/client/api/index.d.ts +1 -0
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/eventRepository/internalApi/getEvent.d.ts.map +1 -1
- package/dist/index.cjs.js +922 -430
- package/dist/index.esm.js +902 -410
- package/dist/index.umd.js +3 -3
- package/dist/liveReactionRepository/api/createReaction.d.ts +7 -2
- package/dist/liveReactionRepository/api/createReaction.d.ts.map +1 -1
- package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts +3 -2
- package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts.map +1 -1
- package/dist/liveReactionRepository/service/ReactionSyncEngine.d.ts +2 -1
- package/dist/liveReactionRepository/service/ReactionSyncEngine.d.ts.map +1 -1
- package/dist/liveStreamPlayer/utils/cryptoSignatureUtils.d.ts +2 -2
- package/dist/liveStreamPlayer/utils/cryptoSignatureUtils.d.ts.map +1 -1
- package/dist/postRepository/api/createPost.d.ts +1 -0
- package/dist/postRepository/api/createPost.d.ts.map +1 -1
- package/dist/postRepository/api/editPost.d.ts +1 -0
- package/dist/postRepository/api/editPost.d.ts.map +1 -1
- package/dist/roomRepository/api/analytics/AmityRoomAnalytics.d.ts +30 -0
- package/dist/roomRepository/api/analytics/AmityRoomAnalytics.d.ts.map +1 -0
- package/dist/roomRepository/api/analytics/WatchSessionStorage.d.ts +38 -0
- package/dist/roomRepository/api/analytics/WatchSessionStorage.d.ts.map +1 -0
- package/dist/roomRepository/api/analytics/index.d.ts +4 -0
- package/dist/roomRepository/api/analytics/index.d.ts.map +1 -0
- package/dist/roomRepository/api/analytics/syncWatchSessions.d.ts +6 -0
- package/dist/roomRepository/api/analytics/syncWatchSessions.d.ts.map +1 -0
- package/dist/roomRepository/api/index.d.ts +1 -0
- package/dist/roomRepository/api/index.d.ts.map +1 -1
- package/dist/roomRepository/events/index.d.ts +2 -0
- package/dist/roomRepository/events/index.d.ts.map +1 -1
- package/dist/roomRepository/events/onRoomParticipantJoined.d.ts +1 -1
- package/dist/roomRepository/events/onRoomParticipantJoined.d.ts.map +1 -1
- package/dist/roomRepository/events/onRoomParticipantLeft.d.ts +1 -1
- package/dist/roomRepository/events/onRoomParticipantLeft.d.ts.map +1 -1
- package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts +1 -1
- package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts.map +1 -1
- package/dist/roomRepository/events/onRoomParticipantStageJoined.d.ts +17 -0
- package/dist/roomRepository/events/onRoomParticipantStageJoined.d.ts.map +1 -0
- package/dist/roomRepository/events/onRoomParticipantStageLeft.d.ts +17 -0
- package/dist/roomRepository/events/onRoomParticipantStageLeft.d.ts.map +1 -0
- package/dist/roomRepository/observers/getRoom.d.ts.map +1 -1
- package/dist/roomRepository/observers/getRooms/RoomLiveCollectionController.d.ts.map +1 -1
- package/dist/roomRepository/observers/utils.d.ts +1 -0
- package/dist/roomRepository/observers/utils.d.ts.map +1 -1
- package/dist/utils/linkedObject/roomLinkedObject.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,13 +14,18 @@
|
|
|
14
14
|
* @param referenceType should be 'post'
|
|
15
15
|
* @param reactionName that is the reaction name
|
|
16
16
|
* @param streamId stream id
|
|
17
|
+
* @param roomId room id
|
|
17
18
|
* @returns a success boolean if the reaction was added
|
|
18
19
|
*
|
|
19
20
|
* @category Live Reaction API
|
|
20
21
|
* @async
|
|
21
22
|
*/
|
|
22
|
-
export declare const createReaction: ({ referenceId, referenceType, reactionName, roomId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & {
|
|
23
|
+
export declare const createReaction: ({ referenceId, referenceType, reactionName, streamId, roomId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & {
|
|
23
24
|
referenceId: string;
|
|
24
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated streamId is deprecated. Use `roomId` instead.
|
|
27
|
+
*/
|
|
28
|
+
streamId?: string | undefined;
|
|
29
|
+
roomId?: string | undefined;
|
|
25
30
|
}) => Promise<boolean>;
|
|
26
31
|
//# sourceMappingURL=createReaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,cAAc;iBAOZ,MAAM;IACnB;;OAEG;;;MAGD,QAAQ,OAAO,CAkClB,CAAC"}
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* @category Live Reaction API
|
|
14
14
|
* @async
|
|
15
15
|
*/
|
|
16
|
-
export declare const createLiveReaction: ({ reactions, liveStreamId, }: {
|
|
16
|
+
export declare const createLiveReaction: ({ reactions, liveStreamId, roomId, }: {
|
|
17
17
|
reactions: Amity.CreateLiveReactionRequest[];
|
|
18
|
-
liveStreamId
|
|
18
|
+
liveStreamId?: string | undefined;
|
|
19
|
+
roomId?: string | undefined;
|
|
19
20
|
}) => Promise<Amity.CreateLiveReactionResponse>;
|
|
20
21
|
//# 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;
|
|
1
|
+
{"version":3,"file":"createLiveReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/internalApi/createLiveReaction.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;eAKlB,MAAM,yBAAyB,EAAE;;;MAG1C,QAAQ,MAAM,0BAA0B,CAe3C,CAAC"}
|
|
@@ -9,7 +9,8 @@ declare class LiveReactionSyncEngine {
|
|
|
9
9
|
startReactionsSync(): void;
|
|
10
10
|
stopReactionsSync(): void;
|
|
11
11
|
createLiveReaction(liveReaction: Amity.CreateLiveReactionRequest & {
|
|
12
|
-
roomId
|
|
12
|
+
roomId?: string;
|
|
13
|
+
streamId?: string;
|
|
13
14
|
}): void;
|
|
14
15
|
private addConnectionListener;
|
|
15
16
|
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,CAAoF;IAElG,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,CAChB,YAAY,EAAE,KAAK,CAAC,yBAAyB,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;IAKxF,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,iBAAiB;IAoDzB,OAAO,CAAC,WAAW;IAKnB,oBAAoB;IAKpB,kBAAkB;IAclB,cAAc;CAGf;;;;AAID,wBAOE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function createSignature({ timestamp,
|
|
1
|
+
export declare function createSignature({ timestamp, rooms, }: {
|
|
2
2
|
timestamp: string;
|
|
3
|
-
|
|
3
|
+
rooms: Amity.UsageDataModel[];
|
|
4
4
|
}): Promise<{
|
|
5
5
|
signature: string;
|
|
6
6
|
nonceStr: string | number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptoSignatureUtils.d.ts","sourceRoot":"","sources":["../../../src/liveStreamPlayer/utils/cryptoSignatureUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cryptoSignatureUtils.d.ts","sourceRoot":"","sources":["../../../src/liveStreamPlayer/utils/cryptoSignatureUtils.ts"],"names":[],"mappings":"AA8KA,wBAAsB,eAAe,CAAC,EACpC,SAAS,EACT,KAAK,GACN,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC;CAC/B;;;eAwBA"}
|
|
@@ -25,5 +25,6 @@ export declare const createPost: <T extends string>(bundle: Pick<Amity.Post<T>,
|
|
|
25
25
|
type: T;
|
|
26
26
|
fileId: Amity.File['fileId'];
|
|
27
27
|
}[] | undefined;
|
|
28
|
+
links?: Amity.Link[] | undefined;
|
|
28
29
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
29
30
|
//# sourceMappingURL=createPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU;;;;;;;gBAKgB,UAAU,CAAC,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU;;;;;;;gBAKgB,UAAU,CAAC,QAAQ,CAAC;;;MAGxD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAyBlC,CAAC"}
|
|
@@ -20,5 +20,6 @@ export declare const editPost: <T extends string>(postId: Amity.Post['postId'],
|
|
|
20
20
|
type: T;
|
|
21
21
|
fileId: Amity.File['fileId'];
|
|
22
22
|
}[] | undefined;
|
|
23
|
+
links?: Amity.Link[] | undefined;
|
|
23
24
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
24
25
|
//# sourceMappingURL=editPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/editPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,6BACX,MAAM,IAAI,CAAC,QAAQ,CAAC;;;gBAIhB,UAAU,CAAC,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"editPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/editPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,6BACX,MAAM,IAAI,CAAC,QAAQ,CAAC;;;gBAIhB,UAAU,CAAC,QAAQ,CAAC;;;MAI/B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAsBlC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AmityRoomAnalytics provides analytics capabilities for room watch sessions
|
|
3
|
+
*/
|
|
4
|
+
export declare class AmityRoomAnalytics implements Amity.RoomAnalytics {
|
|
5
|
+
private room;
|
|
6
|
+
private storage;
|
|
7
|
+
private client;
|
|
8
|
+
constructor(room: Amity.Room);
|
|
9
|
+
/**
|
|
10
|
+
* Create a new watch session for the current room
|
|
11
|
+
* @param startedAt The timestamp when watching started
|
|
12
|
+
* @returns Promise<string> sessionId unique identifier for this watch session
|
|
13
|
+
* @throws ASCApiError if room is not in watchable state (not LIVE or RECORDED)
|
|
14
|
+
*/
|
|
15
|
+
createWatchSession(startedAt: Date): Promise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Update an existing watch session with duration
|
|
18
|
+
* @param sessionId The unique identifier of the watch session
|
|
19
|
+
* @param duration The total watch duration in seconds
|
|
20
|
+
* @param endedAt The timestamp when this update occurred
|
|
21
|
+
* @returns Promise<void> Completion status
|
|
22
|
+
*/
|
|
23
|
+
updateWatchSession(sessionId: string, duration: number, endedAt: Date): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Sync all pending watch sessions to backend
|
|
26
|
+
* This function uses jitter delay and handles network resilience
|
|
27
|
+
*/
|
|
28
|
+
syncPendingWatchSessions(): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=AmityRoomAnalytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmityRoomAnalytics.d.ts","sourceRoot":"","sources":["../../../../src/roomRepository/api/analytics/AmityRoomAnalytics.ts"],"names":[],"mappings":"AAiDA;;GAEG;AACH,qBAAa,kBAAmB,YAAW,KAAK,CAAC,aAAa;IAC5D,OAAO,CAAC,IAAI,CAAa;IAEzB,OAAO,CAAC,OAAO,CAA4B;IAE3C,OAAO,CAAC,MAAM,CAAqB;gBAEvB,IAAI,EAAE,KAAK,CAAC,IAAI;IAI5B;;;;;OAKG;IACG,kBAAkB,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAgC1D;;;;;;OAMG;IACG,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAc3F;;;OAGG;IACH,wBAAwB,IAAI,IAAI;CAgCjC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WatchSessionStorage manages watch session data in memory
|
|
3
|
+
* Similar to UsageCollector for stream watch minutes
|
|
4
|
+
*/
|
|
5
|
+
export declare class WatchSessionStorage {
|
|
6
|
+
private sessions;
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* Add a new watch session
|
|
10
|
+
*/
|
|
11
|
+
addSession(session: Amity.WatchSessionEntity): void;
|
|
12
|
+
/**
|
|
13
|
+
* Get a watch session by sessionId
|
|
14
|
+
*/
|
|
15
|
+
getSession(sessionId: string): Amity.WatchSessionEntity | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Update a watch session
|
|
18
|
+
*/
|
|
19
|
+
updateSession(sessionId: string, updates: Partial<Amity.WatchSessionEntity>): void;
|
|
20
|
+
/**
|
|
21
|
+
* Get all sessions with a specific sync state
|
|
22
|
+
*/
|
|
23
|
+
getSessionsByState(state: Amity.SyncState): Amity.WatchSessionEntity[];
|
|
24
|
+
/**
|
|
25
|
+
* Delete a session
|
|
26
|
+
*/
|
|
27
|
+
deleteSession(sessionId: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Get all pending sessions
|
|
30
|
+
*/
|
|
31
|
+
getPendingSessions(): Amity.WatchSessionEntity[];
|
|
32
|
+
/**
|
|
33
|
+
* Get all syncing sessions
|
|
34
|
+
*/
|
|
35
|
+
getSyncingSessions(): Amity.WatchSessionEntity[];
|
|
36
|
+
}
|
|
37
|
+
export declare const getWatchSessionStorage: () => WatchSessionStorage;
|
|
38
|
+
//# sourceMappingURL=WatchSessionStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchSessionStorage.d.ts","sourceRoot":"","sources":["../../../../src/roomRepository/api/analytics/WatchSessionStorage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAwC;;IAMxD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,kBAAkB,GAAG,IAAI;IAInD;;OAEG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,kBAAkB,GAAG,SAAS;IAInE;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,IAAI;IAOlF;;OAEG;IACH,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,kBAAkB,EAAE;IAItE;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAItC;;OAEG;IACH,kBAAkB,IAAI,KAAK,CAAC,kBAAkB,EAAE;IAIhD;;OAEG;IACH,kBAAkB,IAAI,KAAK,CAAC,kBAAkB,EAAE;CAGjD;AAKD,eAAO,MAAM,sBAAsB,QAAO,mBAKzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/roomRepository/api/analytics/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncWatchSessions.d.ts","sourceRoot":"","sources":["../../../../src/roomRepository/api/analytics/syncWatchSessions.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,CAiF1D"}
|
|
@@ -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,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,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;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -8,6 +8,8 @@ export * from './onRoomCoHostInviteRejected';
|
|
|
8
8
|
export * from './onRoomCoHostInviteCanceled';
|
|
9
9
|
export * from './onRoomParticipantJoined';
|
|
10
10
|
export * from './onRoomParticipantLeft';
|
|
11
|
+
export * from './onRoomParticipantStageLeft';
|
|
12
|
+
export * from './onRoomParticipantStageJoined';
|
|
11
13
|
export * from './onRoomTerminated';
|
|
12
14
|
export * from './onRoomCreated';
|
|
13
15
|
export * from './onRoomUpdated';
|
|
@@ -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,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,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;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AAGnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Room Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onRoomParticipantJoined: (callback: Amity.Listener<Amity.
|
|
16
|
+
export declare const onRoomParticipantJoined: (callback: Amity.Listener<Amity.CoHostEvent>) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onRoomParticipantJoined.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onRoomParticipantJoined.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantJoined.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onRoomParticipantJoined.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantJoined.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAC1C,MAAM,YAkBR,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Room Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onRoomParticipantLeft: (callback: Amity.Listener<Amity.
|
|
16
|
+
export declare const onRoomParticipantLeft: (callback: Amity.Listener<Amity.CoHostEvent>) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onRoomParticipantLeft.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onRoomParticipantLeft.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantLeft.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onRoomParticipantLeft.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantLeft.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAC1C,MAAM,YAkBR,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Room Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onRoomParticipantRemoved: (callback: Amity.Listener<Amity.
|
|
16
|
+
export declare const onRoomParticipantRemoved: (callback: Amity.Listener<Amity.CoHostEvent>) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onRoomParticipantRemoved.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onRoomParticipantRemoved.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantRemoved.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onRoomParticipantRemoved.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantRemoved.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,aACzB,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAC1C,MAAM,YAkBR,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomParticipantStageJoined } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomParticipantStageJoined(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a participant has joined the stage of 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 onRoomParticipantStageJoined: (callback: Amity.Listener<Amity.CoHostEvent>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomParticipantStageJoined.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomParticipantStageJoined.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantStageJoined.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,4BAA4B,aAC7B,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAC1C,MAAM,YAkBR,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onRoomParticipantStageLeft } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onRoomParticipantStageLeft(room => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a participant has left the stage of 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 onRoomParticipantStageLeft: (callback: Amity.Listener<Amity.CoHostEvent>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onRoomParticipantStageLeft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onRoomParticipantStageLeft.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantStageLeft.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAC1C,MAAM,YAkBR,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":"AAmBA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YA2BR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/roomRepository/observers/getRooms/RoomLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"RoomLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/roomRepository/observers/getRooms/RoomLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAM1F,qBAAa,4BAA6B,SAAQ,wBAAwB,CACxE,MAAM,EACN,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,IAAI,EACV,wBAAwB,CACzB;IACC,OAAO,CAAC,qBAAqB,CAA4B;IAEzD,OAAO,CAAC,KAAK,CAA2B;gBAE5B,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAAE,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAmB/F,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU;IAI/E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,MAAM,CAAC;IAIvD,iBAAiB;IAIjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE;CA2BvC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EnumRoomActions } from './enums';
|
|
2
|
+
export declare const convertToRoomEventPayload: (eventHandler: (callback: Amity.Listener<Amity.CoHostEvent>) => Amity.Unsubscriber) => (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
|
|
2
3
|
export declare const getRoomSubscription: () => {
|
|
3
4
|
fn: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
|
|
4
5
|
action: EnumRoomActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAgB1C,eAAO,MAAM,yBAAyB,4BACV,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAAK,MAAM,YAAY,gBACvE,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,uBAGjC,CAAC;AAGP,eAAO,MAAM,mBAAmB;mBACf,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KAAK,MAAM,YAAY;YAC3D,eAAe;GA8CxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/roomLinkedObject.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roomLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/roomLinkedObject.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAsDjE,CAAC"}
|
package/package.json
CHANGED