@amityco/ts-sdk 7.11.1-ec3d3468.0 → 7.11.1-f05493be.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.
Files changed (126) hide show
  1. package/dist/@types/core/events.d.ts +4 -3
  2. package/dist/@types/core/events.d.ts.map +1 -1
  3. package/dist/@types/core/model.d.ts +2 -2
  4. package/dist/@types/core/model.d.ts.map +1 -1
  5. package/dist/@types/core/payload.d.ts +20 -4
  6. package/dist/@types/core/payload.d.ts.map +1 -1
  7. package/dist/@types/domains/community.d.ts +10 -7
  8. package/dist/@types/domains/community.d.ts.map +1 -1
  9. package/dist/@types/domains/event.d.ts +20 -8
  10. package/dist/@types/domains/event.d.ts.map +1 -1
  11. package/dist/@types/domains/room.d.ts +18 -3
  12. package/dist/@types/domains/room.d.ts.map +1 -1
  13. package/dist/client/api/getPresenceSetting.d.ts +2 -0
  14. package/dist/client/api/getPresenceSetting.d.ts.map +1 -0
  15. package/dist/client/api/resumeSession.d.ts.map +1 -1
  16. package/dist/client/events/onUserDeleted.d.ts +17 -0
  17. package/dist/client/events/onUserDeleted.d.ts.map +1 -0
  18. package/dist/client/services/ObjectResolver/objectResolverEngine.d.ts.map +1 -0
  19. package/dist/client/services/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts.map +1 -0
  20. package/dist/client/services/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts.map +1 -0
  21. package/dist/client/services/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts.map +1 -0
  22. package/dist/client/services/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +1 -0
  23. package/dist/client/services/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts.map +1 -0
  24. package/dist/core/events.d.ts +3 -3
  25. package/dist/core/events.d.ts.map +1 -1
  26. package/dist/core/model/idResolvers.d.ts.map +1 -1
  27. package/dist/core/model/index.d.ts.map +1 -1
  28. package/dist/eventRepository/observers/index.d.ts +0 -1
  29. package/dist/eventRepository/observers/index.d.ts.map +1 -1
  30. package/dist/index.cjs.js +464 -285
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.esm.js +450 -272
  34. package/dist/index.umd.js +3 -3
  35. package/dist/invitationRepository/api/index.d.ts +0 -1
  36. package/dist/invitationRepository/api/index.d.ts.map +1 -1
  37. package/dist/invitationRepository/internalObservers/getInvitations/InvitationsLiveCollectionController.d.ts.map +1 -0
  38. package/dist/invitationRepository/internalObservers/getInvitations/InvitationsPaginationController.d.ts.map +1 -0
  39. package/dist/invitationRepository/internalObservers/getInvitations/InvitationsQueryStreamController.d.ts.map +1 -0
  40. package/dist/invitationRepository/internalObservers/getInvitations/enums.d.ts.map +1 -0
  41. package/dist/invitationRepository/internalObservers/getInvitations.d.ts +12 -0
  42. package/dist/invitationRepository/internalObservers/getInvitations.d.ts.map +1 -0
  43. package/dist/invitationRepository/observers/getInvitations.d.ts +28 -6
  44. package/dist/invitationRepository/observers/getInvitations.d.ts.map +1 -1
  45. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts +1 -1
  46. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts.map +1 -1
  47. package/dist/invitationRepository/observers/index.d.ts +1 -1
  48. package/dist/invitationRepository/observers/index.d.ts.map +1 -1
  49. package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts +2 -2
  50. package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts.map +1 -1
  51. package/dist/roomPresenceRepository/api/getRoomOnlineUsers.d.ts +18 -0
  52. package/dist/roomPresenceRepository/api/getRoomOnlineUsers.d.ts.map +1 -0
  53. package/dist/roomPresenceRepository/api/getRoomUserCount.d.ts +17 -0
  54. package/dist/roomPresenceRepository/api/getRoomUserCount.d.ts.map +1 -0
  55. package/dist/roomPresenceRepository/api/index.d.ts +5 -0
  56. package/dist/roomPresenceRepository/api/index.d.ts.map +1 -0
  57. package/dist/roomPresenceRepository/api/startHeartbeat.d.ts +15 -0
  58. package/dist/roomPresenceRepository/api/startHeartbeat.d.ts.map +1 -0
  59. package/dist/roomPresenceRepository/api/stopHeartbeat.d.ts +15 -0
  60. package/dist/roomPresenceRepository/api/stopHeartbeat.d.ts.map +1 -0
  61. package/dist/roomPresenceRepository/index.d.ts +2 -0
  62. package/dist/roomPresenceRepository/index.d.ts.map +1 -0
  63. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/RoomPresenceSyncEngine.d.ts +38 -0
  64. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/RoomPresenceSyncEngine.d.ts.map +1 -0
  65. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/index.d.ts +2 -0
  66. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/index.d.ts.map +1 -0
  67. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/roomPresenceSyncEngineFactory.d.ts +32 -0
  68. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/roomPresenceSyncEngineFactory.d.ts.map +1 -0
  69. package/dist/roomPresenceRepository/services/index.d.ts +2 -0
  70. package/dist/roomPresenceRepository/services/index.d.ts.map +1 -0
  71. package/dist/roomRepository/api/removeParticipant.d.ts.map +1 -1
  72. package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts +1 -1
  73. package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts.map +1 -1
  74. package/dist/roomRepository/events/onRoomEndBroadcasting.d.ts +1 -1
  75. package/dist/roomRepository/events/onRoomEndBroadcasting.d.ts.map +1 -1
  76. package/dist/roomRepository/events/onRoomParticipantJoined.d.ts +1 -1
  77. package/dist/roomRepository/events/onRoomParticipantJoined.d.ts.map +1 -1
  78. package/dist/roomRepository/events/onRoomParticipantLeft.d.ts +1 -1
  79. package/dist/roomRepository/events/onRoomParticipantLeft.d.ts.map +1 -1
  80. package/dist/roomRepository/events/onRoomParticipantRemovedLocal.d.ts +17 -0
  81. package/dist/roomRepository/events/onRoomParticipantRemovedLocal.d.ts.map +1 -0
  82. package/dist/roomRepository/events/onRoomRecordedAvailable.d.ts +1 -1
  83. package/dist/roomRepository/events/onRoomRecordedAvailable.d.ts.map +1 -1
  84. package/dist/roomRepository/events/onRoomStartBroadcasting.d.ts +1 -1
  85. package/dist/roomRepository/events/onRoomStartBroadcasting.d.ts.map +1 -1
  86. package/dist/roomRepository/events/onRoomWaitingReconnect.d.ts +1 -1
  87. package/dist/roomRepository/events/onRoomWaitingReconnect.d.ts.map +1 -1
  88. package/dist/roomRepository/observers/getRoom.d.ts.map +1 -1
  89. package/dist/roomRepository/observers/utils.d.ts +1 -1
  90. package/dist/utils/linkedObject/eventLinkObject.d.ts.map +1 -1
  91. package/dist/utils/linkedObject/roomLinkedObject.d.ts.map +1 -1
  92. package/package.json +1 -1
  93. package/dist/client/utils/ObjectResolver/objectResolverEngine.d.ts.map +0 -1
  94. package/dist/client/utils/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts.map +0 -1
  95. package/dist/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts.map +0 -1
  96. package/dist/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts.map +0 -1
  97. package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +0 -1
  98. package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts.map +0 -1
  99. package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts +0 -13
  100. package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts.map +0 -1
  101. package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts +0 -5
  102. package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts.map +0 -1
  103. package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts +0 -15
  104. package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts.map +0 -1
  105. package/dist/eventRepository/observers/getMyEvents.d.ts +0 -12
  106. package/dist/eventRepository/observers/getMyEvents.d.ts.map +0 -1
  107. package/dist/invitationRepository/api/acceptInvitation.d.ts +0 -16
  108. package/dist/invitationRepository/api/acceptInvitation.d.ts.map +0 -1
  109. package/dist/invitationRepository/api/getMyInvitation.d.ts +0 -16
  110. package/dist/invitationRepository/api/getMyInvitation.d.ts.map +0 -1
  111. package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts.map +0 -1
  112. package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts.map +0 -1
  113. package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts.map +0 -1
  114. package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +0 -1
  115. package/dist/invitationRepository/observers/observeInvitations.d.ts +0 -34
  116. package/dist/invitationRepository/observers/observeInvitations.d.ts.map +0 -1
  117. /package/dist/client/{utils → services}/ObjectResolver/objectResolverEngine.d.ts +0 -0
  118. /package/dist/client/{utils → services}/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts +0 -0
  119. /package/dist/client/{utils → services}/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts +0 -0
  120. /package/dist/client/{utils → services}/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts +0 -0
  121. /package/dist/client/{utils → services}/ReadReceiptSync/readReceiptSyncEngine.d.ts +0 -0
  122. /package/dist/client/{utils → services}/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts +0 -0
  123. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsLiveCollectionController.d.ts +0 -0
  124. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsPaginationController.d.ts +0 -0
  125. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsQueryStreamController.d.ts +0 -0
  126. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/enums.d.ts +0 -0
@@ -1,3 +1,2 @@
1
1
  export * from './cancelInvitation';
2
- export * from './acceptInvitation';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationsLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/InvitationsLiveCollectionController.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAQ1F,qBAAa,mCAAoC,SAAQ,wBAAwB,CAC/E,YAAY,EACZ,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CAAC,UAAU,EAChB,+BAA+B,CAChC;IACC,OAAO,CAAC,qBAAqB,CAAmC;IAEhE,OAAO,CAAC,KAAK,CAAiC;gBAG5C,KAAK,EAAE,KAAK,CAAC,wBAAwB,EACrC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC;IAoB1D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU;IAIrF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,YAAY,CAAC;IAI7D,iBAAiB;IAiBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE;CAsCrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationsPaginationController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/InvitationsPaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,+BAAgC,SAAQ,oBAAoB,CACvE,YAAY,EACZ,KAAK,CAAC,wBAAwB,CAC/B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,wBAAwB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAWxF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationsQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/InvitationsQueryStreamController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,qBAAa,gCAAiC,SAAQ,qBAAqB,CACzE,KAAK,CAAC,iBAAiB,EACvB,KAAK,CAAC,wBAAwB,CAC/B;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAA0E;gBAG9F,KAAK,EAAE,KAAK,CAAC,wBAAwB,EACrC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB,KAAK,KAAK,CAAC,0BAA0B;IAOnF,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB;IAWpD,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAC7D,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAoBjB,OAAO,CAAC,MAAM,EAAE,qBAAqB,iBACd,MAAM,kBAAkB,EAAE;IA2BjD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;QAChF,MAAM,EAAE,qBAAqB,CAAC;KAC/B,EAAE;CAIN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/internalObservers/getInvitations/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;CACxD"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Get invitations
3
+ *
4
+ * @param params the query parameters
5
+ * @param callback the callback to be called when the invitations are updated
6
+ * @returns invitations
7
+ *
8
+ * @category Invitation Live Collection
9
+ *
10
+ */
11
+ export declare const getInvitations: (params: Amity.InvitationLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Invitation>, config?: Amity.LiveCollectionConfig) => () => void;
12
+ //# sourceMappingURL=getInvitations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/internalObservers/getInvitations.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,WACjB,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,WAC/C,MAAM,oBAAoB,eAyBpC,CAAC"}
@@ -1,12 +1,34 @@
1
1
  /**
2
- * Get invitations
3
2
  *
4
- * @param params the query parameters
5
- * @param callback the callback to be called when the invitations are updated
6
- * @returns invitations
3
+ * ```js
4
+ * import { InvitationRepository } from '@amityco/ts-sdk';
7
5
  *
8
- * @category Invitation Live Collection
6
+ * // For room invitations
7
+ * const unsubscribe = InvitationRepository.getInvitations(
8
+ * { targetId: 'room123', targetType: 'room' },
9
+ * response => {
10
+ * console.log('Room invitation event:', response.room, response.users, response.eventType)
11
+ * }
12
+ * );
9
13
  *
14
+ * // For community invitations (when implemented)
15
+ * const unsubscribe2 = observeInvitations(
16
+ * { targetId: 'community456', targetType: 'community' },
17
+ * response => {
18
+ * console.log('Community invitation event:', response.community, response.users, response.eventType)
19
+ * }
20
+ * );
21
+ * ```
22
+ *
23
+ * Observe invitations events including invited, accepted, rejected, and canceled
24
+ *
25
+ * @param params The target ID and type to observe invitations for
26
+ * @param callback The function to call when new invitation events are available
27
+ * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the events
28
+ *
29
+ * @category Invitation Observable
10
30
  */
11
- export declare const getInvitations: (params: Amity.InvitationLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Invitation>, config?: Amity.LiveCollectionConfig) => () => void;
31
+ export declare const getInvitations: <T extends "community" | "room">(params: Pick<Amity.QueryInvitations, "targetId" | "targetType"> & {
32
+ targetType: T;
33
+ }, callback: Amity.Listener<Amity.Invitation[]>) => Amity.Unsubscriber;
12
34
  //# sourceMappingURL=getInvitations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/getInvitations.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,WACjB,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,WAC/C,MAAM,oBAAoB,eAyBpC,CAAC"}
1
+ {"version":3,"file":"getInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/getInvitations.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,cAAc;;aAEf,MAAM,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,KAC3C,MAAM,YA4CR,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
2
- import { InvitationActionsEnum } from '../getInvitations/enums';
2
+ import { InvitationActionsEnum } from '../../internalObservers/getInvitations/enums';
3
3
  export declare class MyInvitationsQueryStreamController extends QueryStreamController<Amity.MyInvitationsPayload, Amity.MyInvitationsLiveCollection> {
4
4
  private notifyChange;
5
5
  private preparePayload;
@@ -1 +1 @@
1
- {"version":3,"file":"MyInvitationsQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,qBAAa,kCAAmC,SAAQ,qBAAqB,CAC3E,KAAK,CAAC,oBAAoB,EAC1B,KAAK,CAAC,2BAA2B,CAClC;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEmB;gBAGvC,KAAK,EAAE,KAAK,CAAC,2BAA2B,EACxC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB,KAAK,KAAK,CAAC,6BAA6B;IAOzF,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB;IAWvD,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAChE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAoBjB,OAAO,CAAC,MAAM,EAAE,qBAAqB,iBACd,MAAM,kBAAkB,EAAE;IAiCjD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;QAChF,MAAM,EAAE,qBAAqB,CAAC;KAC/B,EAAE;CAIN"}
1
+ {"version":3,"file":"MyInvitationsQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAErF,qBAAa,kCAAmC,SAAQ,qBAAqB,CAC3E,KAAK,CAAC,oBAAoB,EAC1B,KAAK,CAAC,2BAA2B,CAClC;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEmB;gBAGvC,KAAK,EAAE,KAAK,CAAC,2BAA2B,EACxC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB,KAAK,KAAK,CAAC,6BAA6B;IAOzF,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB;IAWvD,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAChE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAoBjB,OAAO,CAAC,MAAM,EAAE,qBAAqB,iBACd,MAAM,kBAAkB,EAAE;IAiCjD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;QAChF,MAAM,EAAE,qBAAqB,CAAC;KAC/B,EAAE;CAIN"}
@@ -1,3 +1,3 @@
1
1
  export * from './getMyCommunityInvitations';
2
- export * from './observeInvitations';
2
+ export * from './getInvitations';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
@@ -13,8 +13,8 @@
13
13
  * @category Live Reaction API
14
14
  * @async
15
15
  */
16
- export declare const createLiveReaction: ({ reactions, roomId, }: {
16
+ export declare const createLiveReaction: ({ reactions, liveStreamId, }: {
17
17
  reactions: Amity.CreateLiveReactionRequest[];
18
- roomId: string;
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;YACpC,MAAM;MACZ,QAAQ,MAAM,0BAA0B,CAc3C,CAAC"}
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"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * ```js
3
+ * import { getRoomOnlineUsers } from '@amityco/ts-sdk'
4
+ * const result = await getRoomOnlineUsers('roomId')
5
+ * ```
6
+ *
7
+ * Retrieves the list of users currently online in a specific room.
8
+ * This function fetches all users who are actively watching or present in the room,
9
+ * handling pagination automatically for large numbers of users.
10
+ *
11
+ * @param roomId The ID of the room to get online users for
12
+ * @returns Promise that resolves with a cached list of online users
13
+ *
14
+ * @category Room Presence API
15
+ * @async
16
+ */
17
+ export declare const getRoomOnlineUsers: (roomId: string) => Promise<Amity.Cached<Amity.User[]>>;
18
+ //# sourceMappingURL=getRoomOnlineUsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoomOnlineUsers.d.ts","sourceRoot":"","sources":["../../../src/roomPresenceRepository/api/getRoomOnlineUsers.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,WAAkB,MAAM,KAAG,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAmC3F,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { getRoomUserCount } from '@amityco/ts-sdk'
4
+ * const count = await getRoomUserCount('roomId')
5
+ * ```
6
+ *
7
+ * Retrieves the count of users currently watching or present in a specific room.
8
+ * This function returns the total number of online users without fetching their full user data.
9
+ *
10
+ * @param roomId The ID of the room to get the user count for
11
+ * @returns Promise that resolves with the room watching count data
12
+ *
13
+ * @category Room Presence API
14
+ * @async
15
+ */
16
+ export declare const getRoomUserCount: (roomId: string) => Promise<Amity.RoomWatchingCount>;
17
+ //# sourceMappingURL=getRoomUserCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoomUserCount.d.ts","sourceRoot":"","sources":["../../../src/roomPresenceRepository/api/getRoomUserCount.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,WAAkB,MAAM,KAAG,QAAQ,MAAM,iBAAiB,CAatF,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './getRoomOnlineUsers';
2
+ export * from './getRoomUserCount';
3
+ export * from './startHeartbeat';
4
+ export * from './stopHeartbeat';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomPresenceRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * ```js
3
+ * import { startHeartbeat } from '@amityco/ts-sdk'
4
+ * startHeartbeat('roomId')
5
+ * ```
6
+ *
7
+ * Starts sending heartbeat signals for a specific room to maintain presence status.
8
+ * This enables the room presence tracking and notifies the server that the user is actively viewing the room.
9
+ *
10
+ * @param roomId The ID of the room to start heartbeat for
11
+ *
12
+ * @category Room Presence API
13
+ */
14
+ export declare const startHeartbeat: (roomId: string) => void;
15
+ //# sourceMappingURL=startHeartbeat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startHeartbeat.d.ts","sourceRoot":"","sources":["../../../src/roomPresenceRepository/api/startHeartbeat.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,KAAG,IAG/C,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * ```js
3
+ * import { stopHeartbeat } from '@amityco/ts-sdk'
4
+ * stopHeartbeat('roomId')
5
+ * ```
6
+ *
7
+ * Stops sending heartbeat signals for a specific room.
8
+ * This disables the room presence tracking for the specified room and stops notifying the server of the user's presence.
9
+ *
10
+ * @param roomId The ID of the room to stop heartbeat for
11
+ *
12
+ * @category Room Presence API
13
+ */
14
+ export declare const stopHeartbeat: (roomId: string) => void;
15
+ //# sourceMappingURL=stopHeartbeat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stopHeartbeat.d.ts","sourceRoot":"","sources":["../../../src/roomPresenceRepository/api/stopHeartbeat.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,IAK9C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/roomPresenceRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,38 @@
1
+ declare class RoomPresenceSyncEngine {
2
+ private heartbeatTimer;
3
+ private roomId;
4
+ private isEnabled;
5
+ private config;
6
+ constructor(roomId: string);
7
+ private initializeConfig;
8
+ private static getPresenceSettingWithRetry;
9
+ /**
10
+ * Start heartbeat for the room
11
+ */
12
+ start(): void;
13
+ /**
14
+ * Stop heartbeat for the room
15
+ */
16
+ stop(): void;
17
+ /**
18
+ * Send heartbeat to the room
19
+ */
20
+ private sendHeartbeat;
21
+ /**
22
+ * Get the room ID
23
+ */
24
+ getRoomId(): string;
25
+ /**
26
+ * Check if the engine is enabled
27
+ */
28
+ isActive(): boolean;
29
+ /**
30
+ * Cleanup method to stop all timers and release resources
31
+ * Call this when the engine instance is no longer needed
32
+ */
33
+ destroy(): void;
34
+ onSessionDestroyed(): void;
35
+ onTokenExpired(): void;
36
+ }
37
+ export default RoomPresenceSyncEngine;
38
+ //# sourceMappingURL=RoomPresenceSyncEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomPresenceSyncEngine.d.ts","sourceRoot":"","sources":["../../../../src/roomPresenceRepository/services/RoomPresenceSyncEngine/RoomPresenceSyncEngine.ts"],"names":[],"mappings":"AAQA,cAAM,sBAAsB;IAC1B,OAAO,CAAC,cAAc,CAA2B;IAEjD,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,MAAM,CAEZ;gBAEU,MAAM,EAAE,MAAM;YAQZ,gBAAgB;mBAqBT,2BAA2B;IAoChD;;OAEG;IACH,KAAK;IAcL;;OAEG;IACH,IAAI;IAUJ;;OAEG;YACW,aAAa;IAS3B;;OAEG;IACH,SAAS,IAAI,MAAM;IAInB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;;OAGG;IACH,OAAO;IAMP,kBAAkB;IAKlB,cAAc;CAIf;AAED,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './watchingSyncEngineFactory';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/roomPresenceRepository/services/RoomPresenceSyncEngine/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,32 @@
1
+ import RoomPresenceSyncEngine from './RoomPresenceSyncEngine';
2
+ /**
3
+ * Get or create a RoomPresenceSyncEngine instance for a specific room
4
+ *
5
+ * @param roomId The room ID to get/create engine for
6
+ * @returns RoomPresenceSyncEngine instance for the room
7
+ */
8
+ export declare const getRoomPresenceSyncEngine: (roomId: string) => RoomPresenceSyncEngine;
9
+ /**
10
+ * Destroy the engine instance for a specific room
11
+ *
12
+ * @param roomId The room ID to destroy engine for
13
+ */
14
+ export declare const destroyRoomPresenceSyncEngine: (roomId: string) => void;
15
+ /**
16
+ * Get all active room IDs with engines
17
+ */
18
+ export declare const getActiveRoomIds: () => string[];
19
+ /**
20
+ * Check if a room has an active engine
21
+ */
22
+ export declare const hasRoomPresenceSyncEngine: (roomId: string) => boolean;
23
+ /**
24
+ * Destroy all engine instances
25
+ */
26
+ export declare const destroyAllRoomPresenceSyncEngines: () => void;
27
+ /**
28
+ * Session management functions
29
+ */
30
+ export declare const onRoomPresenceSyncSessionDestroyed: () => void;
31
+ export declare const onRoomPresenceSyncTokenExpired: () => void;
32
+ //# sourceMappingURL=roomPresenceSyncEngineFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roomPresenceSyncEngineFactory.d.ts","sourceRoot":"","sources":["../../../../src/roomPresenceRepository/services/RoomPresenceSyncEngine/roomPresenceSyncEngineFactory.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAK9D;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,WAAY,MAAM,KAAG,sBAS1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,WAAY,MAAM,KAAG,IAM9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,MAAM,EAEzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,WAAY,MAAM,KAAG,OAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iCAAiC,QAAO,IAKpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC,QAAO,IAErD,CAAC;AAEF,eAAO,MAAM,8BAA8B,QAAO,IAIjD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './RoomPresenceSyncEngine';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomPresenceRepository/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"removeParticipant.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/removeParticipant.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,WACpB,MAAM,qBACK,MAAM,KACxB,QAAQ,IAAI,CAUd,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomCoHostInviteAccepted: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
16
+ export declare const onRoomCoHostInviteAccepted: (callback: Amity.Listener<Amity.InternalInvitation>) => Amity.Unsubscriber;
17
17
  //# sourceMappingURL=onRoomCoHostInviteAccepted.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"onRoomCoHostInviteAccepted.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteAccepted.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,CAAC,KACjD,MAAM,YAiBR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomEndBroadcasting: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
16
+ export declare const onRoomEndBroadcasting: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
17
17
  //# sourceMappingURL=onRoomEndBroadcasting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onRoomEndBroadcasting.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomEndBroadcasting.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,aAAc,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAG,MAAM,YAclF,CAAC"}
1
+ {"version":3,"file":"onRoomEndBroadcasting.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomEndBroadcasting.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YAcR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomParticipantJoined: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
16
+ export declare const onRoomParticipantJoined: (callback: Amity.Listener<Amity.RawRoom>) => 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":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,KACnC,MAAM,YAcR,CAAC"}
1
+ {"version":3,"file":"onRoomParticipantJoined.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantJoined.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YAcR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomParticipantLeft: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
16
+ export declare const onRoomParticipantLeft: (callback: Amity.Listener<Amity.RawRoom>) => 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":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,aAAc,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAG,MAAM,YAclF,CAAC"}
1
+ {"version":3,"file":"onRoomParticipantLeft.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantLeft.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YAcR,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 onRoomParticipantRemovedLocal: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomParticipantRemovedLocal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomParticipantRemovedLocal.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantRemovedLocal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B,aAC9B,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAC3C,MAAM,YAcR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomRecordedAvailable: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
16
+ export declare const onRoomRecordedAvailable: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
17
17
  //# sourceMappingURL=onRoomRecordedAvailable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onRoomRecordedAvailable.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomRecordedAvailable.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,KACnC,MAAM,YAcR,CAAC"}
1
+ {"version":3,"file":"onRoomRecordedAvailable.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomRecordedAvailable.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YAcR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomStartBroadcasting: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
16
+ export declare const onRoomStartBroadcasting: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
17
17
  //# sourceMappingURL=onRoomStartBroadcasting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onRoomStartBroadcasting.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomStartBroadcasting.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,KACnC,MAAM,YAcR,CAAC"}
1
+ {"version":3,"file":"onRoomStartBroadcasting.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomStartBroadcasting.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YAcR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomWaitingReconnect: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
16
+ export declare const onRoomWaitingReconnect: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
17
17
  //# sourceMappingURL=onRoomWaitingReconnect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onRoomWaitingReconnect.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomWaitingReconnect.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,aACvB,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,KACnC,MAAM,YAcR,CAAC"}
1
+ {"version":3,"file":"onRoomWaitingReconnect.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomWaitingReconnect.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,aACvB,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YAcR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAqBR,CAAC"}
1
+ {"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAyBR,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { EnumRoomActions } from './enums';
2
2
  export declare const getRoomSubscription: () => {
3
- fn: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
3
+ fn: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
4
4
  action: EnumRoomActions;
5
5
  }[];
6
6
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"eventLinkObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/eventLinkObject.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB,UAAW,MAAM,aAAa,KAAG,WAmC9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"roomLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/roomLinkedObject.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IA4DjE,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.11.1-ec3d3468.0",
3
+ "version": "7.11.1-f05493be.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectResolverEngine.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/ObjectResolver/objectResolverEngine.ts"],"names":[],"mappings":"AAOA,cAAM,oBAAoB;IACxB,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAU;IAE5C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAO;IAEvC,OAAO,CAAC,MAAM,CAGZ;IAEF,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,kBAAkB,CAAsB;IAEhD,OAAO,CAAC,WAAW,CAAQ;;IAM3B,aAAa;IAQb,YAAY;IAOZ,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa;IAYtD,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,SAAS;IAKjB,oBAAoB;IAKpB,kBAAkB;IAclB,cAAc;CAGf;;;;AAID,wBAKE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectResolverEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/ObjectResolver/objectResolverEngineOnLoginHandler.ts"],"names":[],"mappings":";AAGA,wBAiBE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"legacyReadReceiptSyncEngine.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngine.ts"],"names":[],"mappings":"AAMA,qBAAa,kCAAkC;IAC7C,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,SAAS,CAAK;IAEtB,OAAO,CAAC,cAAc,CAAO;IAE7B,OAAO,CAAC,QAAQ,CAAwC;IAExD,OAAO,CAAC,KAAK,CAA2B;IAGxC,OAAO,CAAC,qBAAqB,CAAK;;IASlC,oBAAoB;IAQpB,gBAAgB,IAAI,IAAI;IASxB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,cAAc;YA2BR,WAAW;IA8BzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,8BAA8B;IAOtC,OAAO,CAAC,6BAA6B;IAgBrC,oBAAoB,IAAI,IAAI;IAI5B,kBAAkB,IAAI,IAAI;IAK1B,cAAc,IAAI,IAAI;IAKtB,gBAAgB,IAAI,IAAI;IAKxB,eAAe,IAAI,IAAI;IAKvB,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAoBrD,OAAO,CAAC,kBAAkB;IAsC1B,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,kBAAkB;CAM3B;;;;AAID,wBAME"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"legacyReadReceiptSyncEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.ts"],"names":[],"mappings":";AAGA,wBAiBE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readReceiptSyncEngine.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/ReadReceiptSync/readReceiptSyncEngine.ts"],"names":[],"mappings":"AAKA,qBAAa,4BAA4B;IACvC,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,SAAS,CAAK;IAEtB,OAAO,CAAC,cAAc,CAAO;IAE7B,OAAO,CAAC,QAAQ,CAAkC;IAElD,OAAO,CAAC,KAAK,CAA2B;IAGxC,OAAO,CAAC,qBAAqB,CAAK;;IASlC,oBAAoB;IAQpB,gBAAgB,IAAI,IAAI;IASxB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,eAAe;YAaT,WAAW;IAuCzB,OAAO,CAAC,8BAA8B;IAOtC,OAAO,CAAC,6BAA6B;IAerC,oBAAoB,IAAI,IAAI;IAI5B,kBAAkB,IAAI,IAAI;IAK1B,cAAc,IAAI,IAAI;IAKtB,gBAAgB,IAAI,IAAI;IAKxB,eAAe,IAAI,IAAI;IAKvB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAqBlD,OAAO,CAAC,kBAAkB;IAmC1B,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,UAAU;CASnB;;;;AAID,wBAME"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readReceiptSyncEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/client/utils/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.ts"],"names":[],"mappings":";AAGA,wBAiBE"}
@@ -1,13 +0,0 @@
1
- import { MyEventPaginationController } from './PaginationController';
2
- import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
3
- export declare class MyEventLiveCollectionController extends LiveCollectionController<'event', Amity.MyEventLiveCollection, Amity.Event, MyEventPaginationController> {
4
- private queryStreamController;
5
- private query;
6
- constructor(query: Amity.MyEventLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Event>);
7
- protected setup(): void;
8
- protected persistModel(queryPayload: Amity.EventPayload & Amity.Pagination): Promise<void>;
9
- protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'event'>): void;
10
- startSubscription(): Amity.Unsubscriber[];
11
- notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
12
- }
13
- //# sourceMappingURL=LiveCollectionController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getMyEvents/LiveCollectionController.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAU1F,qBAAa,+BAAgC,SAAQ,wBAAwB,CAC3E,OAAO,EACP,KAAK,CAAC,qBAAqB,EAC3B,KAAK,CAAC,KAAK,EACX,2BAA2B,CAC5B;IACC,OAAO,CAAC,qBAAqB,CAA+B;IAE5D,OAAO,CAAC,KAAK,CAA8B;gBAGzC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC;IAoBrD,SAAS,CAAC,KAAK;cAKC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU;IAIhF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,OAAO,CAAC;IAIxD,iBAAiB;IAWjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;CAqB1E"}
@@ -1,5 +0,0 @@
1
- import { PaginationController } from '~/core/liveCollection/PaginationController';
2
- export declare class MyEventPaginationController extends PaginationController<'event', Amity.MyEventLiveCollection> {
3
- getRequest(queryParams: Amity.MyEventLiveCollection, token: string | undefined): Promise<Amity.EventPayload & Amity.Pagination>;
4
- }
5
- //# sourceMappingURL=PaginationController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaginationController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getMyEvents/PaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,2BAA4B,SAAQ,oBAAoB,CACnE,OAAO,EACP,KAAK,CAAC,qBAAqB,CAC5B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAWrF"}
@@ -1,15 +0,0 @@
1
- import { EventActionsEnum } from '~/eventRepository/events/enums';
2
- import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
3
- export declare class MyEventQueryStreamController extends QueryStreamController<Amity.EventPayload, Amity.MyEventLiveCollection> {
4
- private notifyChange;
5
- private preparePayload;
6
- constructor(query: Amity.MyEventLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.EventPayload) => Amity.ProcessedEventPayload);
7
- saveToMainDB(response: Amity.EventPayload): Promise<void>;
8
- appendToQueryStream(response: Amity.EventPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
9
- reactor(action: EventActionsEnum): (event: Amity.InternalEvent) => void;
10
- subscribeRTE(createSubscriber: {
11
- fn: (reactor: (event: Amity.InternalEvent) => void) => Amity.Unsubscriber;
12
- action: EventActionsEnum;
13
- }[]): Amity.Unsubscriber[];
14
- }
15
- //# sourceMappingURL=QueryStreamController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getMyEvents/QueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,qBAAa,4BAA6B,SAAQ,qBAAqB,CACrE,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,qBAAqB,CAC5B;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAAgE;gBAGpF,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,qBAAqB;IAOzE,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY;IAS/C,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EACxD,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAgBjB,OAAO,CAAC,MAAM,EAAE,gBAAgB,WACf,MAAM,aAAa;IAsBpC,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,KAAK,KAAK,CAAC,YAAY,CAAC;QAC1E,MAAM,EAAE,gBAAgB,CAAC;KAC1B,EAAE;CAIN"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Get my events
3
- *
4
- * @param params the query parameters
5
- * @param callback the callback to be called when the events are updated
6
- * @returns events
7
- *
8
- * @category Event Live Collection
9
- *
10
- */
11
- export declare const getMyEvents: (params: Amity.MyEventLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Event>, config?: Amity.LiveCollectionConfig) => () => void;
12
- //# sourceMappingURL=getMyEvents.d.ts.map