@amityco/ts-sdk 7.20.1-81d54d6f.0 → 7.21.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/errors.d.ts +1 -2
- package/dist/@types/core/errors.d.ts.map +1 -1
- package/dist/@types/core/events.d.ts +0 -1
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/domains/comment.d.ts +3 -1
- package/dist/@types/domains/comment.d.ts.map +1 -1
- package/dist/client/events/index.d.ts +0 -1
- package/dist/client/events/index.d.ts.map +1 -1
- package/dist/commentRepository/api/createComment.d.ts +3 -1
- package/dist/commentRepository/api/createComment.d.ts.map +1 -1
- package/dist/commentRepository/api/deleteComment.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/transports/http.d.ts +0 -4
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/index.cjs.js +132 -93
- package/dist/index.esm.js +132 -93
- package/dist/index.umd.js +3 -3
- package/dist/utils/tests/dummy/comment.d.ts +1 -0
- package/dist/utils/tests/dummy/comment.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/client/events/onVisitorUsageLimitReached.d.ts +0 -21
- package/dist/client/events/onVisitorUsageLimitReached.d.ts.map +0 -1
- package/dist/client/events/tests/onVisitorUsageLimitReached.test.d.ts +0 -2
- package/dist/client/events/tests/onVisitorUsageLimitReached.test.d.ts.map +0 -1
|
@@ -22,8 +22,7 @@ declare global {
|
|
|
22
22
|
LINK_NOT_ALLOWED = 400309,
|
|
23
23
|
BUSINESS_ERROR = 500000,
|
|
24
24
|
VISITOR_PERMISSION_DENIED = 403999,
|
|
25
|
-
BOT_PERMISSION_DENIED = 403998
|
|
26
|
-
VISITOR_USAGE_LIMIT_EXCEEDED = 400323
|
|
25
|
+
BOT_PERMISSION_DENIED = 403998
|
|
27
26
|
}
|
|
28
27
|
const enum ClientError {
|
|
29
28
|
UNKNOWN_ERROR = 800000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;SAC/B;QAED,WAAW,WAAW;YACpB,aAAa,SAAS;YACtB,kBAAkB,SAAS;YAC3B,iBAAiB,SAAS;YAC1B,gBAAgB,SAAS;YACzB,YAAY,SAAS;YACrB,aAAa,SAAS;YACtB,wBAAwB,SAAS;SAClC;QAED,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5C;CACF"}
|
|
@@ -321,7 +321,6 @@ declare global {
|
|
|
321
321
|
tokenExpired: Amity.SessionStates.TOKEN_EXPIRED;
|
|
322
322
|
tokenTerminated: Amity.SessionStates.TERMINATED;
|
|
323
323
|
unreadCountEnabled: boolean;
|
|
324
|
-
visitorUsageLimitReached: undefined;
|
|
325
324
|
} & LocalPostEvents & LocalCommentEvents & LocalCommunityEvents & LocalFollowEvents & LocalEventEvents & LocalEventRSVPEvents & LocalEventNotificationEvents;
|
|
326
325
|
type Events = WsEvents & MqttEvents & MqttRTE & LocalEvents;
|
|
327
326
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/@types/core/events.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC;QAEjE,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,IACrC,QAAQ,CAAC,CAAC,CAAC,GACX,CAAC;YACC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;SACjD,GAAG;aACD,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC/B,CAAC,CAA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
|
|
20
20
|
} & Amity.Relationship<CommentReferenceType> & Amity.Content<T> & Amity.Metadata & Amity.Flaggable & Amity.Reactable & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable & Amity.Mentionable<'user'>;
|
|
21
|
-
type InternalComment<T extends CommentContentType = any> = RawComment<T
|
|
21
|
+
type InternalComment<T extends CommentContentType = any> = RawComment<T> & {
|
|
22
|
+
syncState?: Amity.SyncState;
|
|
23
|
+
};
|
|
22
24
|
type CommentTarget = {
|
|
23
25
|
type: InternalComment['targetType'] | 'unknown';
|
|
24
26
|
communityId?: Amity.Community['communityId'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,kBAAkB,GAAG,MAAM,CAAC;QACjC,KAAK,oBAAoB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;QAEzD,KAAK,iBAAiB,GAClB,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,iBAAiB,GACjB,mBAAmB,CAAC;QAExB,KAAK,UAAU,CAAC,CAAC,SAAS,kBAAkB,GAAG,GAAG,IAAI;YACpD,SAAS,EAAE,MAAM,CAAC;YAClB,MAAM,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;YACnC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;YAChC,cAAc,EAAE,MAAM,CAAC;YACvB,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YACpC,aAAa,EAAE,MAAM,CAAC;YACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;YAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC;YACjC,QAAQ,EA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AAEjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AAEpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare type CreateCommentBundle = Pick<Amity.Comment<Amity.CommentContentType>, 'data' | 'referenceType' | 'referenceId' | 'parentId' | 'metadata' | 'mentionees' | 'attachments' | 'links'>;
|
|
1
2
|
/**
|
|
2
3
|
* ```js
|
|
3
4
|
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
@@ -12,5 +13,6 @@
|
|
|
12
13
|
* @category Comment API
|
|
13
14
|
* @async
|
|
14
15
|
*/
|
|
15
|
-
export declare const createComment: (bundle:
|
|
16
|
+
export declare const createComment: (bundle: CreateCommentBundle) => Promise<Amity.Cached<Amity.Comment>>;
|
|
17
|
+
export {};
|
|
16
18
|
//# sourceMappingURL=createComment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/createComment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/createComment.ts"],"names":[],"mappings":"AAkBA,aAAK,mBAAmB,GAAG,IAAI,CAC7B,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,EACrC,MAAM,GACN,eAAe,GACf,aAAa,GACb,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,GACb,OAAO,CACV,CAAC;AA+DF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,WAChB,mBAAmB,KAC1B,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,CAmFrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/deleteComment.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,0BAEpC,QAAQ,aAAa,
|
|
1
|
+
{"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/deleteComment.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,0BAEpC,QAAQ,aAAa,CAoFvB,CAAC"}
|
package/dist/core/events.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
|
|
|
13
13
|
* @category Transport
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
|
-
export declare const createEventSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "
|
|
17
|
-
export declare const createMqttMessageSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "
|
|
16
|
+
export declare const createEventSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T], any>) => Amity.Unsubscriber;
|
|
17
|
+
export declare const createMqttMessageSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
18
18
|
/**
|
|
19
19
|
* Wrapper around dispatch event
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
|
-
export declare const fireEvent: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "
|
|
23
|
+
export declare const fireEvent: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(event: T, payload: Amity.Events[T]) => void;
|
|
24
24
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAwCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAwCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,+8JACxB,MAAM,MAAM,aACT,MAAM,yDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,+8JAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,k/JAKrB,CAAC"}
|
|
@@ -3,10 +3,6 @@ export declare enum RequestCancelation {
|
|
|
3
3
|
UserGlobalBanned = "User Global Banned",
|
|
4
4
|
TokenExpired = "Token Expired"
|
|
5
5
|
}
|
|
6
|
-
/** Internal helper to reset module-local abort state. */
|
|
7
|
-
export declare const resetAbortController: () => void;
|
|
8
|
-
/** @internal — exported for test isolation only */
|
|
9
|
-
export declare const resetVisitorLimitThrottle: () => void;
|
|
10
6
|
/**
|
|
11
7
|
* Creates a pre-configured axios instance
|
|
12
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;AAmDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,kCAqHnD,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -257,8 +257,8 @@ exports.AnalyticsSourceTypeEnum = void 0;
|
|
|
257
257
|
|
|
258
258
|
function getVersion() {
|
|
259
259
|
try {
|
|
260
|
-
// the string ''v7.
|
|
261
|
-
return 'v7.
|
|
260
|
+
// the string ''v7.21.0-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
261
|
+
return 'v7.21.0-cjs';
|
|
262
262
|
}
|
|
263
263
|
catch (error) {
|
|
264
264
|
return '__dev__';
|
|
@@ -1877,7 +1877,7 @@ var RequestCancelation;
|
|
|
1877
1877
|
* More Info:
|
|
1878
1878
|
* https://axios-http.com/docs/cancellation
|
|
1879
1879
|
*/
|
|
1880
|
-
|
|
1880
|
+
const controller = new AbortController();
|
|
1881
1881
|
/**
|
|
1882
1882
|
* Handle Request Cancellation
|
|
1883
1883
|
*
|
|
@@ -1910,18 +1910,6 @@ const handleRequestCancelation = (cancel) => {
|
|
|
1910
1910
|
throw new ASCError('Request Aborted', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
1911
1911
|
}
|
|
1912
1912
|
};
|
|
1913
|
-
// --- Visitor usage limit deduplication ---
|
|
1914
|
-
let lastVisitorLimitEmitTime = 0;
|
|
1915
|
-
// 2 s window — prevents duplicate emissions when multiple simultaneous requests all fail with 400323
|
|
1916
|
-
const VISITOR_LIMIT_THROTTLE_MS = 2000;
|
|
1917
|
-
function throttledFireVisitorUsageLimit() {
|
|
1918
|
-
const now = Date.now();
|
|
1919
|
-
if (now - lastVisitorLimitEmitTime < VISITOR_LIMIT_THROTTLE_MS)
|
|
1920
|
-
return;
|
|
1921
|
-
lastVisitorLimitEmitTime = now;
|
|
1922
|
-
fireEvent('visitorUsageLimitReached', undefined);
|
|
1923
|
-
}
|
|
1924
|
-
// -----------------------------------------
|
|
1925
1913
|
/**
|
|
1926
1914
|
* Creates a pre-configured axios instance
|
|
1927
1915
|
*
|
|
@@ -1997,20 +1985,15 @@ const createHttpTransport = (endpoint) => {
|
|
|
1997
1985
|
});
|
|
1998
1986
|
return response;
|
|
1999
1987
|
}, error => {
|
|
2000
|
-
var _a, _b
|
|
1988
|
+
var _a, _b;
|
|
2001
1989
|
const { response } = error;
|
|
2002
1990
|
// handle unauthorized request
|
|
2003
1991
|
if ((response === null || response === void 0 ? void 0 : response.data.code) === 400100 /* Amity.ServerError.UNAUTHORIZED */) {
|
|
2004
1992
|
fireEvent('tokenTerminated', "terminated" /* Amity.SessionStates.TERMINATED */);
|
|
2005
1993
|
}
|
|
2006
|
-
// handle visitor daily usage limit exceeded
|
|
2007
|
-
if (((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.code) === 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */) {
|
|
2008
|
-
throttledFireVisitorUsageLimit();
|
|
2009
|
-
throw new ASCError('Visitor usage limit exceeded', 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
2010
|
-
}
|
|
2011
1994
|
// if it's an error with status in the response payload,
|
|
2012
1995
|
// then it's an expected error.
|
|
2013
|
-
if ((
|
|
1996
|
+
if ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.status) {
|
|
2014
1997
|
unwrapPayload(response === null || response === void 0 ? void 0 : response.data);
|
|
2015
1998
|
}
|
|
2016
1999
|
// as on request cancellation error is returned
|
|
@@ -2018,7 +2001,7 @@ const createHttpTransport = (endpoint) => {
|
|
|
2018
2001
|
throw error;
|
|
2019
2002
|
}
|
|
2020
2003
|
// unexpected error.
|
|
2021
|
-
throw new Error((
|
|
2004
|
+
throw new Error((_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : error);
|
|
2022
2005
|
});
|
|
2023
2006
|
instance.defaults.paramsSerializer = {
|
|
2024
2007
|
encode: params => encodeURIComponent(params),
|
|
@@ -9190,30 +9173,6 @@ const onClientBanned = (callback) => {
|
|
|
9190
9173
|
*/
|
|
9191
9174
|
const onNetworkActivities = (callback) => NetworkActivitiesWatcher$1.getInstance().onNetworkActivities(callback);
|
|
9192
9175
|
|
|
9193
|
-
/**
|
|
9194
|
-
* Fired when a visitor or bot user has exceeded their daily API request quota (100 req/day).
|
|
9195
|
-
* The backend returns error code `400323` (`VISITOR_USAGE_LIMIT_EXCEEDED`) on any subsequent
|
|
9196
|
-
* read request after the limit is hit.
|
|
9197
|
-
*
|
|
9198
|
-
* Subscribe to this event to show a full-page error state or prompt the user to sign in.
|
|
9199
|
-
*
|
|
9200
|
-
* ```js
|
|
9201
|
-
* import { onVisitorUsageLimitReached } from '@amityco/ts-sdk'
|
|
9202
|
-
* const dispose = onVisitorUsageLimitReached(() => {
|
|
9203
|
-
* // show usage limit UI
|
|
9204
|
-
* })
|
|
9205
|
-
* ```
|
|
9206
|
-
*
|
|
9207
|
-
* @param callback The function to call when the event is fired
|
|
9208
|
-
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
9209
|
-
*
|
|
9210
|
-
* @category Client Events
|
|
9211
|
-
*/
|
|
9212
|
-
const onVisitorUsageLimitReached = (callback) => {
|
|
9213
|
-
const client = getActiveClient();
|
|
9214
|
-
return createEventSubscriber(client, 'client/onVisitorUsageLimitReached', 'visitorUsageLimitReached', callback);
|
|
9215
|
-
};
|
|
9216
|
-
|
|
9217
9176
|
/**
|
|
9218
9177
|
* ```js
|
|
9219
9178
|
* import { onTokenExpired } from '@amityco/ts-sdk'
|
|
@@ -11243,7 +11202,6 @@ var index$s = /*#__PURE__*/Object.freeze({
|
|
|
11243
11202
|
onClientBanned: onClientBanned,
|
|
11244
11203
|
onSessionStateChange: onSessionStateChange,
|
|
11245
11204
|
onNetworkActivities: onNetworkActivities,
|
|
11246
|
-
onVisitorUsageLimitReached: onVisitorUsageLimitReached,
|
|
11247
11205
|
getUserUnread: getUserUnread,
|
|
11248
11206
|
getMarkerSyncEvents: getMarkerSyncEvents,
|
|
11249
11207
|
setMarkerSyncEvents: setMarkerSyncEvents,
|
|
@@ -13274,7 +13232,7 @@ const getWatchSessionStorage = () => {
|
|
|
13274
13232
|
return storageInstance;
|
|
13275
13233
|
};
|
|
13276
13234
|
|
|
13277
|
-
const privateKey = "
|
|
13235
|
+
const privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHo80SecH7FuF2\nhFYnb+l26/VN8UMLXAQFLnxciNTEwkGVFMpdezlH8rU2HtUJL4RETogbAOLVY0XM\njs6sPn8G1nALmh9qeDpUtVqFOVtBHxEZ910TLOtQiunjq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8hj84cZ1PJmdyvDtpYn9rpWHOZl4rxEbPvbqkIsOMyNVqdT5AoGAOSge\nmwIIU2le2FVeohbibXiToWTYKMuMmURZ5/r72AgKMmWJKbAPe+Q3wBG01/7FRBpQ\noU8Ma0HC8s6QJbliiEyIx9JwrJWd1vkdecBHONrtA4ibm/5zD2WcOllLF+FitLhi\n3qnX6+6F0IaFGFBPJrTzlv0P4dTz/OAdv52V7GECgYEA2TttOKBAqWllgOaZOkql\nLVMJVmgR7s6tLi1+cEP8ZcapV9aRbRzTAKXm4f8AEhtlG9F9kCOvHYCYGi6JaiWJ\nZkHjeex3T+eE6Di6y5Bm/Ift5jtVhJ4jCVwHOKTMej79NPUFTJfv8hCo29haBDv6\nRXFrv+T21KCcw8k3sJeJWWQ=\n-----END PRIVATE KEY-----";
|
|
13278
13236
|
/*
|
|
13279
13237
|
* The crypto algorithm used for importing key and signing string
|
|
13280
13238
|
*/
|
|
@@ -26022,9 +25980,55 @@ getCommentByIds.locally = (commentIds) => {
|
|
|
26022
25980
|
};
|
|
26023
25981
|
};
|
|
26024
25982
|
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
25983
|
+
const getLocalCommentId = () => uuid();
|
|
25984
|
+
const createCommentOptimistic = (bundle) => {
|
|
25985
|
+
const client = getActiveClient();
|
|
25986
|
+
if (!client.cache)
|
|
25987
|
+
return;
|
|
25988
|
+
const commentId = getLocalCommentId();
|
|
25989
|
+
client.log('comment/createComment.optimistically', Object.assign({ commentId }, bundle));
|
|
25990
|
+
const createdTime = new Date().toISOString();
|
|
25991
|
+
const comment = {
|
|
25992
|
+
commentId,
|
|
25993
|
+
userId: client.userId,
|
|
25994
|
+
parentId: bundle.parentId,
|
|
25995
|
+
rootId: bundle.parentId || commentId,
|
|
25996
|
+
childrenNumber: 0,
|
|
25997
|
+
children: [],
|
|
25998
|
+
segmentNumber: 0,
|
|
25999
|
+
editedAt: createdTime,
|
|
26000
|
+
referenceId: bundle.referenceId,
|
|
26001
|
+
referenceType: bundle.referenceType,
|
|
26002
|
+
data: bundle.data,
|
|
26003
|
+
metadata: bundle.metadata,
|
|
26004
|
+
mentionees: bundle.mentionees,
|
|
26005
|
+
attachments: bundle.attachments,
|
|
26006
|
+
links: bundle.links,
|
|
26007
|
+
createdAt: createdTime,
|
|
26008
|
+
updatedAt: createdTime,
|
|
26009
|
+
isDeleted: false,
|
|
26010
|
+
flagCount: 0,
|
|
26011
|
+
hashFlag: null,
|
|
26012
|
+
reactions: {},
|
|
26013
|
+
reactionsCount: 0,
|
|
26014
|
+
myReactions: [],
|
|
26015
|
+
path: '',
|
|
26016
|
+
targetId: '',
|
|
26017
|
+
targetType: 'community',
|
|
26018
|
+
dataType: 'text',
|
|
26019
|
+
syncState: "syncing" /* Amity.SyncState.Syncing */,
|
|
26020
|
+
};
|
|
26021
|
+
const cachedAt = UNSYNCED_OBJECT_CACHED_AT_VALUE;
|
|
26022
|
+
pushToCache(['comment', 'get', comment.commentId], comment, { cachedAt });
|
|
26023
|
+
fireEvent('local.comment.created', {
|
|
26024
|
+
comments: [comment],
|
|
26025
|
+
commentChildren: [],
|
|
26026
|
+
users: [],
|
|
26027
|
+
files: [],
|
|
26028
|
+
communityUsers: [],
|
|
26029
|
+
});
|
|
26030
|
+
return comment;
|
|
26031
|
+
};
|
|
26028
26032
|
/**
|
|
26029
26033
|
* ```js
|
|
26030
26034
|
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
@@ -26042,48 +26046,70 @@ getCommentByIds.locally = (commentIds) => {
|
|
|
26042
26046
|
const createComment = async (bundle) => {
|
|
26043
26047
|
const client = getActiveClient();
|
|
26044
26048
|
client.log('comment/createComment', bundle);
|
|
26045
|
-
const
|
|
26046
|
-
const
|
|
26047
|
-
|
|
26048
|
-
|
|
26049
|
-
|
|
26050
|
-
|
|
26051
|
-
|
|
26052
|
-
|
|
26053
|
-
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
|
|
26058
|
-
|
|
26059
|
-
|
|
26060
|
-
|
|
26061
|
-
|
|
26062
|
-
|
|
26063
|
-
"story" /* STORY_KEY_CACHE.STORY */,
|
|
26064
|
-
'get',
|
|
26065
|
-
storyIndex.data,
|
|
26049
|
+
const optimisticData = createCommentOptimistic(bundle);
|
|
26050
|
+
const commentId = optimisticData === null || optimisticData === void 0 ? void 0 : optimisticData.commentId;
|
|
26051
|
+
try {
|
|
26052
|
+
const { data } = await client.http.post('/api/v3/comments', Object.assign(Object.assign({}, bundle), { commentId }));
|
|
26053
|
+
const { comments } = data;
|
|
26054
|
+
// BE always returns an array of comments If it got record 0 from BE it might have a problem on creation logic
|
|
26055
|
+
if (comments.length === 0)
|
|
26056
|
+
throw new Error('Comment not created');
|
|
26057
|
+
const cachedAt = client.cache && Date.now();
|
|
26058
|
+
if (client.cache)
|
|
26059
|
+
ingestInCache(data, { cachedAt });
|
|
26060
|
+
if (['post', 'content'].includes(bundle.referenceType)) {
|
|
26061
|
+
PostCommentCountEngine$1.getInstance().queueCommentChangeTask(new CreateTask(bundle.referenceId, comments[0].commentId, data.comments[0].createdAt));
|
|
26062
|
+
}
|
|
26063
|
+
else if (bundle.referenceType === 'story') {
|
|
26064
|
+
const storyIndex = pullFromCache([
|
|
26065
|
+
"story-reference" /* STORY_KEY_CACHE.STORY_ID_TO_REFERENCE_ID */,
|
|
26066
|
+
bundle.referenceId,
|
|
26066
26067
|
]);
|
|
26067
|
-
if (
|
|
26068
|
-
|
|
26069
|
-
|
|
26070
|
-
|
|
26071
|
-
|
|
26072
|
-
|
|
26073
|
-
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
|
|
26078
|
-
|
|
26068
|
+
if (storyIndex === null || storyIndex === void 0 ? void 0 : storyIndex.data) {
|
|
26069
|
+
const cacheStory = pullFromCache([
|
|
26070
|
+
"story" /* STORY_KEY_CACHE.STORY */,
|
|
26071
|
+
'get',
|
|
26072
|
+
storyIndex.data,
|
|
26073
|
+
]);
|
|
26074
|
+
if (cacheStory === null || cacheStory === void 0 ? void 0 : cacheStory.data) {
|
|
26075
|
+
fireEvent('story.updated', {
|
|
26076
|
+
stories: [
|
|
26077
|
+
Object.assign(Object.assign({}, cacheStory.data), { commentsCount: cacheStory.data.commentsCount + 1, comments: [...new Set([...cacheStory.data.comments, comments[0].commentId])] }),
|
|
26078
|
+
],
|
|
26079
|
+
categories: [],
|
|
26080
|
+
comments,
|
|
26081
|
+
communities: [],
|
|
26082
|
+
communityUsers: data.communityUsers,
|
|
26083
|
+
files: data.files,
|
|
26084
|
+
users: data.users,
|
|
26085
|
+
});
|
|
26086
|
+
}
|
|
26079
26087
|
}
|
|
26080
26088
|
}
|
|
26089
|
+
fireEvent('local.comment.created', {
|
|
26090
|
+
comments: [Object.assign(Object.assign({}, comments[0]), { syncState: "synced" /* Amity.SyncState.Synced */ })],
|
|
26091
|
+
commentChildren: data.commentChildren,
|
|
26092
|
+
users: data.users,
|
|
26093
|
+
files: data.files,
|
|
26094
|
+
communityUsers: data.communityUsers,
|
|
26095
|
+
});
|
|
26096
|
+
return {
|
|
26097
|
+
data: LinkedObject.comment(comments[0]),
|
|
26098
|
+
cachedAt,
|
|
26099
|
+
};
|
|
26100
|
+
}
|
|
26101
|
+
catch (e) {
|
|
26102
|
+
if (optimisticData) {
|
|
26103
|
+
fireEvent('local.comment.created', {
|
|
26104
|
+
comments: [Object.assign(Object.assign({}, optimisticData), { syncState: "error" /* Amity.SyncState.Error */ })],
|
|
26105
|
+
commentChildren: [],
|
|
26106
|
+
users: [],
|
|
26107
|
+
files: [],
|
|
26108
|
+
communityUsers: [],
|
|
26109
|
+
});
|
|
26110
|
+
}
|
|
26111
|
+
throw e;
|
|
26081
26112
|
}
|
|
26082
|
-
fireEvent('local.comment.created', data);
|
|
26083
|
-
return {
|
|
26084
|
-
data: LinkedObject.comment(comments[0]),
|
|
26085
|
-
cachedAt,
|
|
26086
|
-
};
|
|
26087
26113
|
};
|
|
26088
26114
|
/* end_public_function */
|
|
26089
26115
|
|
|
@@ -26210,8 +26236,21 @@ getStoryByStoryId$1.locally = (storyId) => {
|
|
|
26210
26236
|
* @async
|
|
26211
26237
|
*/
|
|
26212
26238
|
const deleteComment = async (commentId, permanent = false) => {
|
|
26213
|
-
var _a, _b;
|
|
26239
|
+
var _a, _b, _c;
|
|
26214
26240
|
const client = getActiveClient();
|
|
26241
|
+
const cached = (_a = pullFromCache(['comment', 'get', commentId])) === null || _a === void 0 ? void 0 : _a.data;
|
|
26242
|
+
if ((cached === null || cached === void 0 ? void 0 : cached.syncState) === "error" /* Amity.SyncState.Error */) {
|
|
26243
|
+
const deletedComment = Object.assign(Object.assign({}, cached), { isDeleted: true });
|
|
26244
|
+
dropFromCache(['comment', 'get', commentId]);
|
|
26245
|
+
fireEvent('local.comment.deleted', {
|
|
26246
|
+
comments: [deletedComment],
|
|
26247
|
+
commentChildren: [],
|
|
26248
|
+
files: [],
|
|
26249
|
+
users: [],
|
|
26250
|
+
communityUsers: [],
|
|
26251
|
+
});
|
|
26252
|
+
return deletedComment;
|
|
26253
|
+
}
|
|
26215
26254
|
const comment = await getComment$2(commentId);
|
|
26216
26255
|
// API-FIX: This endpoint has not been implemented yet.
|
|
26217
26256
|
await client.http.delete(`/api/v4/comments/${encodeURIComponent(commentId)}`, {
|
|
@@ -26241,11 +26280,11 @@ const deleteComment = async (commentId, permanent = false) => {
|
|
|
26241
26280
|
});
|
|
26242
26281
|
}
|
|
26243
26282
|
else {
|
|
26244
|
-
const post = (
|
|
26283
|
+
const post = (_b = pullFromCache(['post', 'get', comment.data.referenceId])) === null || _b === void 0 ? void 0 : _b.data;
|
|
26245
26284
|
if (post) {
|
|
26246
26285
|
const engine = PostCommentCountEngine$1.getInstance();
|
|
26247
26286
|
engine.queueCommentChangeTask(new DeleteTask(post.postId, commentId));
|
|
26248
|
-
if (!deleted.parentId && ((
|
|
26287
|
+
if (!deleted.parentId && ((_c = deleted.children /* c8 ignore next */) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
26249
26288
|
// NOTE: delete the parent comment will also remove all children comments
|
|
26250
26289
|
deleted.children.forEach((childCommentId) => {
|
|
26251
26290
|
engine.queueCommentChangeTask(new DeleteTask(post.postId, childCommentId));
|