@amityco/ts-sdk 6.15.0 → 6.15.1-090bc4c.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/.env +26 -26
- package/dist/@types/core/events.d.ts +3 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/domains/analytics.d.ts +8 -1
- package/dist/@types/domains/analytics.d.ts.map +1 -1
- package/dist/@types/domains/story.d.ts +10 -4
- package/dist/@types/domains/story.d.ts.map +1 -1
- package/dist/analytic/api/queryReachUser.d.ts +3 -2
- package/dist/analytic/api/queryReachUser.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts +2 -1
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts +11 -2
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/index.cjs.js +300 -25
- package/dist/index.esm.js +300 -25
- package/dist/index.umd.js +1 -1
- package/dist/storyRepository/api/createImageStory.d.ts +1 -1
- package/dist/storyRepository/api/createImageStory.d.ts.map +1 -1
- package/dist/storyRepository/api/createVideoStory.d.ts.map +1 -1
- package/dist/storyRepository/constants.d.ts +8 -0
- package/dist/storyRepository/constants.d.ts.map +1 -0
- package/dist/storyRepository/events/onStoryLocalDataUpdated.d.ts +4 -0
- package/dist/storyRepository/events/onStoryLocalDataUpdated.d.ts.map +1 -0
- package/dist/storyRepository/internalApi/createStory.d.ts.map +1 -1
- package/dist/storyRepository/internalApi/getActiveStoriesByTarget.d.ts.map +1 -1
- package/dist/storyRepository/internalApi/getStoryByStoryId.d.ts +5 -0
- package/dist/storyRepository/internalApi/getStoryByStoryId.d.ts.map +1 -0
- package/dist/storyRepository/observers/getActiveStoriesByTarget.d.ts.map +1 -1
- package/dist/storyRepository/observers/getStoryByStoryId.d.ts +2 -0
- package/dist/storyRepository/observers/getStoryByStoryId.d.ts.map +1 -0
- package/dist/storyRepository/observers/index.d.ts +1 -0
- package/dist/storyRepository/observers/index.d.ts.map +1 -1
- package/dist/storyRepository/utils/calculateHasUnseenFlag.d.ts +6 -0
- package/dist/storyRepository/utils/calculateHasUnseenFlag.d.ts.map +1 -0
- package/dist/storyRepository/utils/mappingStoryIdToReferenceId.d.ts +2 -0
- package/dist/storyRepository/utils/mappingStoryIdToReferenceId.d.ts.map +1 -0
- package/dist/storyRepository/utils/updateLocalLastStoryExpires.d.ts +2 -0
- package/dist/storyRepository/utils/updateLocalLastStoryExpires.d.ts.map +1 -0
- package/dist/subChannelRepository/observers/getSubChannels.d.ts.map +1 -1
- package/dist/subChannelRepository/observers/liveCollection/SubChannelLiveCollectionController.d.ts.map +1 -1
- package/dist/userRepository/observers/getReachedUsers.d.ts +2 -0
- package/dist/userRepository/observers/getReachedUsers.d.ts.map +1 -0
- package/dist/userRepository/observers/getViewedUsers.d.ts +5 -0
- package/dist/userRepository/observers/getViewedUsers.d.ts.map +1 -1
- package/dist/userRepository/observers/index.d.ts +1 -0
- package/dist/userRepository/observers/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/storyLinkedObject.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/@types/core/events.ts +3 -0
- package/src/@types/domains/analytics.ts +13 -1
- package/src/@types/domains/story.ts +11 -4
- package/src/analytic/api/queryReachUser.ts +8 -3
- package/src/analytic/service/analytic/AnalyticsEngine.ts +11 -2
- package/src/analytic/service/analytic/AnalyticsEventCapturer.ts +59 -13
- package/src/storyRepository/api/createImageStory.ts +7 -1
- package/src/storyRepository/api/createVideoStory.ts +6 -0
- package/src/storyRepository/constants.ts +7 -0
- package/src/storyRepository/events/onStoryLocalDataUpdated.ts +14 -0
- package/src/storyRepository/internalApi/createStory.ts +3 -0
- package/src/storyRepository/internalApi/getActiveStoriesByTarget.ts +8 -0
- package/src/storyRepository/internalApi/getStoryByStoryId.ts +66 -0
- package/src/storyRepository/observers/getActiveStoriesByTarget.ts +24 -0
- package/src/storyRepository/observers/getStoryByStoryId.ts +33 -0
- package/src/storyRepository/observers/index.ts +1 -0
- package/src/storyRepository/utils/calculateHasUnseenFlag.ts +37 -0
- package/src/storyRepository/utils/mappingStoryIdToReferenceId.ts +8 -0
- package/src/storyRepository/utils/updateLocalLastStoryExpires.ts +15 -0
- package/src/subChannelRepository/observers/getSubChannels.ts +2 -31
- package/src/subChannelRepository/observers/liveCollection/SubChannelLiveCollectionController.ts +4 -0
- package/src/userRepository/observers/getReachedUsers.ts +100 -0
- package/src/userRepository/observers/getViewedUsers.ts +7 -1
- package/src/userRepository/observers/index.ts +1 -0
- package/src/utils/linkedObject/storyLinkedObject.ts +31 -6
package/.env
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
LIVE_STREAM_KEY='-----BEGIN PRIVATE KEY-----
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDAARz+hmBgi8pJ
|
|
3
|
+
Qb8LeY41gtHhk+ACMwRfhsn7GqpqRQNG2qU0755mzZuVDUqjQMGSo8THJB7O+OJs
|
|
4
|
+
flbZRkFXlFoFOVNw1UpNOgwEQZ6wB9oRwzepTJAfF1sVhm/o/ixvXh1zDFNDy6yZ
|
|
5
|
+
pXyiiJHUVxqyjllZhxnwdvjoVtDs6hW6awG09bB9nh/TTejlUKXoAgzqVwu/1QMu
|
|
6
|
+
UVVi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Qr1zRsG35tNLp3gGRNzGQSQyC2uQFVHw2
|
|
21
|
+
p+7mNewsfhUK/gbrXNsyFnDz6635rPlhfbII3sWuP2wWXFqkxE9CbMwR7QKBgQC6
|
|
22
|
+
awDMzxmo2/iYArrkyevSuEuPVxvFwpF1RgAI6C0QVCnPE38dmdN4UB7mfHekje4W
|
|
23
|
+
VEercMURidPp0cxZolCYBQtilUjAyL0vqC3In1/Ogjq6oy3FEMxSop1pKxMY5j+Q
|
|
24
|
+
noqFD+6deLUrddeNH7J3X4LSr4dSbX4JjG+tlgt+yQKBgQCuwTL4hA6KqeInQ0Ta
|
|
25
|
+
9VQX5Qr8hFlqJz1gpymi/k63tW/Ob8yedbg3WWNWyShwRMFYyY9S81ITFWM95uL6
|
|
26
|
+
vF3x9rmRjwElJw9PMwVu6dmf/CO0Z1wzXSp2VVD12gbrUD/0/d7MUoJ9LgC8X8f/
|
|
27
|
+
n0txLHYGHbx+nf95+JUg6lV3hg==
|
|
28
28
|
-----END PRIVATE KEY-----'
|
|
@@ -64,6 +64,9 @@ declare global {
|
|
|
64
64
|
'story.created': Amity.StoryPayload;
|
|
65
65
|
'story.deleted': Amity.StoryPayload;
|
|
66
66
|
'story.error': Amity.StoryPayload;
|
|
67
|
+
'local.story.updated': {
|
|
68
|
+
referenceIds: Amity.Story['referenceId'][];
|
|
69
|
+
};
|
|
67
70
|
};
|
|
68
71
|
type MqttCommunityUserEvents = {
|
|
69
72
|
'community.joined': Amity.CommunityMembershipPayload;
|
|
@@ -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,IAAI,CAAC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AAgB,CAAC,CAAC;YAC1F,0BAA0B,EAAE;gBAAE,WAAW,EAAE,KAAK,CAAC,UAAU,EAAE,CAAA;aAAE,CAAC;YAEhE,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC;YAExC,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;YAChD,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;SACjD,CAAC;QAEF,KAAK,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAC;KAC7D;CACF"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
declare global {
|
|
3
3
|
namespace Amity {
|
|
4
|
-
|
|
4
|
+
const enum AnalyticEventActivityType {
|
|
5
|
+
View = "view",
|
|
6
|
+
Click = "linkClicked"
|
|
7
|
+
}
|
|
5
8
|
const enum AnalyticEventContentType {
|
|
6
9
|
Post = "post",
|
|
7
10
|
Story = "story"
|
|
@@ -23,6 +26,10 @@ declare global {
|
|
|
23
26
|
type PostViewedUsersLiveCollection = {
|
|
24
27
|
postId: Amity.InternalPost['postId'];
|
|
25
28
|
} & Amity.LiveCollectionParams<QueryPostViewedUser>;
|
|
29
|
+
type ViewedUsersLiveCollection = {
|
|
30
|
+
viewedType: ValueOf<typeof AnalyticEventContentType>;
|
|
31
|
+
viewId: Amity.Post['postId'] | Amity.Story['storyId'];
|
|
32
|
+
} & Amity.LiveCollectionParams<QueryPostViewedUser>;
|
|
26
33
|
type PostViewedUsersLiveCollectionCache = Amity.LiveCollectionCache<Amity.User['userId'], {
|
|
27
34
|
page?: {
|
|
28
35
|
next?: Amity.Token;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,
|
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;YACE,IAAI,CAAC,EAAE;gBACL,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;gBACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;aACxB,CAAC;SACH,CACF,CAAC;KACH;CACF"}
|
|
@@ -40,14 +40,18 @@ declare global {
|
|
|
40
40
|
targetPublicId: string;
|
|
41
41
|
targetUpdatedAt: Amity.timestamp;
|
|
42
42
|
};
|
|
43
|
+
type StoryTargetLinkedObject = Pick<Amity.StoryTarget, 'targetId' | 'targetType'> & {
|
|
44
|
+
updatedAt: Amity.timestamp;
|
|
45
|
+
hasUnseen: boolean;
|
|
46
|
+
};
|
|
43
47
|
type StoryItemData<T extends StoryItemType> = T extends 'hyperlink' ? {
|
|
44
48
|
url: string;
|
|
45
|
-
|
|
49
|
+
customText: string;
|
|
46
50
|
} : never;
|
|
47
51
|
type StoryItem = {
|
|
48
52
|
type: StoryItemType;
|
|
49
53
|
data: StoryItemData<StoryItemType>;
|
|
50
|
-
placement
|
|
54
|
+
placement?: {
|
|
51
55
|
width: number;
|
|
52
56
|
height: number;
|
|
53
57
|
transform: {
|
|
@@ -66,11 +70,13 @@ declare global {
|
|
|
66
70
|
videoData?: Amity.File<'video'>;
|
|
67
71
|
imageData?: Amity.File<'image'>;
|
|
68
72
|
analytics: {
|
|
69
|
-
|
|
73
|
+
markAsSeen: () => void;
|
|
74
|
+
markLinkAsClicked: () => void;
|
|
70
75
|
};
|
|
71
|
-
storyTarget?: Amity.
|
|
76
|
+
storyTarget?: Amity.StoryTargetLinkedObject;
|
|
72
77
|
community?: Amity.Community;
|
|
73
78
|
communityCategories?: Amity.Category[];
|
|
79
|
+
isSeen?: boolean;
|
|
74
80
|
};
|
|
75
81
|
type RawStory = {
|
|
76
82
|
storyId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"story.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/story.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe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S,GACf,KAAK,CAAC,SAAS,CAAC;QAElB,KAAK,aAAa,GAAG,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,eAAe,CAAC;QAE5D,KAAK,kBAAkB,GAAG;YACxB,IAAI,EAAE;gBACJ,IAAI,CAAC,EAAE,MAAM,CAAC;gBACd,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC9B,QAAQ,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;gBACvC,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC;gBAC1C,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;aACrD,CAAC;YACF,WAAW,EAAE,MAAM,CAAC;YACpB,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC;YAC9B,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;YACzB,UAAU,EAAE,KAAK,CAAC,eAAe,CAAC;YAClC,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;YACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;SAC5B,CAAC;QAEF,KAAK,wBAAwB,GAAG,KAAK,CAAC,mBAAmB,CACvD,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAClC;YAAE,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAA;SAAE,CACvB,CAAC;QAEF,KAAK,KAAK,GAAG,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC;KAC5D;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const queryReachUser: ({
|
|
2
|
-
|
|
1
|
+
export declare const queryReachUser: ({ viewId, viewedType, limit, token, }: {
|
|
2
|
+
viewId: Amity.ViewedUsersLiveCollection['viewId'];
|
|
3
|
+
viewedType: Amity.ViewedUsersLiveCollection['viewedType'];
|
|
3
4
|
limit: number;
|
|
4
5
|
token?: string | undefined;
|
|
5
6
|
}) => Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryReachUser.d.ts","sourceRoot":"","sources":["../../../src/analytic/api/queryReachUser.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"queryReachUser.d.ts","sourceRoot":"","sources":["../../../src/analytic/api/queryReachUser.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;YAMjB,MAAM,yBAAyB,CAAC,QAAQ,CAAC;gBACrC,MAAM,yBAAyB,CAAC,YAAY,CAAC;WAClD,MAAM;;kBAwBd,CAAC"}
|
|
@@ -4,7 +4,8 @@ declare class AnalyticsEngine {
|
|
|
4
4
|
private _eventSyncer;
|
|
5
5
|
constructor();
|
|
6
6
|
markPostAsViewed(postId: Amity.InternalPost['postId']): void;
|
|
7
|
-
markStoryAsViewed(
|
|
7
|
+
markStoryAsViewed(story: Amity.InternalStory): void;
|
|
8
|
+
markStoryAsClicked(story: Amity.InternalStory): void;
|
|
8
9
|
established(): void;
|
|
9
10
|
handleTokenExpired(): void;
|
|
10
11
|
destroy(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsEngine.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEngine.ts"],"names":[],"mappings":"AAMA,cAAM,eAAe;IACnB,OAAO,CAAC,OAAO,CAAe;IAE9B,OAAO,CAAC,cAAc,CAAC;IAEvB,OAAO,CAAC,YAAY,CAAC;;IAQrB,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IASrD,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"AnalyticsEngine.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEngine.ts"],"names":[],"mappings":"AAMA,cAAM,eAAe;IACnB,OAAO,CAAC,OAAO,CAAe;IAE9B,OAAO,CAAC,cAAc,CAAC;IAEvB,OAAO,CAAC,YAAY,CAAC;;IAQrB,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IASrD,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAS5C,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAS7C,WAAW;IAIX,kBAAkB;IAIlB,OAAO;CAMR;;;;AAID,wBAOE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
export declare class AnalyticsEventCapturer {
|
|
2
3
|
_expireTime: number;
|
|
3
4
|
_poolLimit: number;
|
|
@@ -7,8 +8,16 @@ export declare class AnalyticsEventCapturer {
|
|
|
7
8
|
_recentHighPriorityViewed: {
|
|
8
9
|
[key: Amity.InternalStory['storyId']]: Date;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
_throttleStoryTimer: NodeJS.Timeout | undefined;
|
|
12
|
+
_bufferNewSeenStoryReferenceIds: Amity.Story['referenceId'][];
|
|
13
|
+
isAbleToEnqueue({ itemId, expireTime, isHighPriority, }: {
|
|
14
|
+
itemId: Amity.Post['postId'] | Amity.Story['storyId'];
|
|
15
|
+
expireTime: number;
|
|
16
|
+
isHighPriority?: boolean;
|
|
17
|
+
}): boolean;
|
|
11
18
|
markPostAsViewed(postId: Amity.InternalPost['postId']): void;
|
|
12
|
-
|
|
19
|
+
markStory(story: Amity.InternalStory, activityType: Amity.AnalyticEventActivityType): void;
|
|
20
|
+
markStoryAsViewed(story: Amity.InternalStory): void;
|
|
21
|
+
markStoryAsClicked(story: Amity.InternalStory): void;
|
|
13
22
|
}
|
|
14
23
|
//# sourceMappingURL=AnalyticsEventCapturer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsEventCapturer.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEventCapturer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsEventCapturer.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEventCapturer.ts"],"names":[],"mappings":";AAQA,qBAAa,sBAAsB;IACjC,WAAW,SAAc;IAEzB,UAAU,SAAQ;IAElB,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAA;KAAE,CAAM;IAElE,yBAAyB,EAAE;QAAE,CAAC,GAAG,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;KAAE,CAAM;IAGhF,mBAAmB,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAa;IAE5D,+BAA+B,EAAE,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAM;IAEnE,eAAe,CAAC,EACd,MAAM,EACN,UAAU,EACV,cAAsB,GACvB,EAAE;QACD,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACtD,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B;IAoBD,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IA6BrD,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC,yBAAyB;IA4DnF,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAI5C,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;CAG9C"}
|
package/dist/core/events.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
|
|
|
24
24
|
* @category Transport
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
|
-
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "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" | "story.created" | "story.deleted" | "story.error" | "local.channel.updated" | "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" | "tokenTerminated">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
|
|
28
|
-
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "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" | "story.created" | "story.deleted" | "story.error" | "local.channel.updated" | "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" | "tokenTerminated">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
27
|
+
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "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" | "story.created" | "story.deleted" | "story.error" | "local.story.updated" | "local.channel.updated" | "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" | "tokenTerminated">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
|
|
28
|
+
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "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" | "story.created" | "story.deleted" | "story.error" | "local.story.updated" | "local.channel.updated" | "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" | "tokenTerminated">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
29
29
|
/**
|
|
30
30
|
* Wrapper around dispatch event
|
|
31
31
|
*
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
|
-
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "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" | "story.created" | "story.deleted" | "story.error" | "local.channel.updated" | "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" | "tokenTerminated">(event: T, payload: Amity.Events[T]) => void;
|
|
34
|
+
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "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" | "story.created" | "story.deleted" | "story.error" | "local.story.updated" | "local.channel.updated" | "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" | "tokenTerminated">(event: T, payload: Amity.Events[T]) => void;
|
|
35
35
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AA+BA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAM5F,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":"AA+BA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAM5F,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,01EACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,01EAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,63EAKrB,CAAC"}
|