@amityco/ts-sdk 0.0.1-306fa85.0 → 0.0.1-32fe080.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/core/events.d.ts +15 -8
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/transport.d.ts +3 -2
- package/dist/@types/core/transport.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +2 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +1 -0
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/client/api/connectClient.d.ts.map +1 -1
- package/dist/client/api/getToken.d.ts +3 -1
- package/dist/client/api/getToken.d.ts.map +1 -1
- package/dist/comment/api/queryComments.d.ts +1 -1
- package/dist/comment/events/onCommentReactionAdded.d.ts.map +1 -1
- package/dist/comment/events/onCommentReactionRemoved.d.ts.map +1 -1
- package/dist/comment/events/utils.d.ts.map +1 -1
- package/dist/comment/observers/observeComment.d.ts.map +1 -1
- package/dist/community/events/utils.d.ts.map +1 -1
- package/dist/community/observers/observeCommunity.d.ts.map +1 -1
- package/dist/core/cache/ingest.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/model/index.d.ts +1 -0
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/core/model/isMatch.d.ts +3 -0
- package/dist/core/model/isMatch.d.ts.map +1 -0
- package/dist/core/query/paging.d.ts.map +1 -1
- package/dist/core/subscription.d.ts +6 -2
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/core/transports/mqtt.d.ts +1 -0
- package/dist/core/transports/mqtt.d.ts.map +1 -1
- package/dist/index.cjs.js +804 -570
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +799 -571
- package/dist/index.umd.js +4 -4
- package/dist/post/events/onPostDeleted.d.ts.map +1 -1
- package/dist/post/events/onPostReactionAdded.d.ts.map +1 -1
- package/dist/post/events/onPostReactionRemoved.d.ts.map +1 -1
- package/dist/post/events/utils.d.ts.map +1 -1
- package/dist/post/observers/observePost.d.ts.map +1 -1
- package/dist/reaction/events/onReactionAdded.d.ts +4 -2
- package/dist/reaction/events/onReactionAdded.d.ts.map +1 -1
- package/dist/reaction/events/onReactionRemoved.d.ts +4 -2
- package/dist/reaction/events/onReactionRemoved.d.ts.map +1 -1
- package/dist/reaction/utils/index.d.ts +1 -0
- package/dist/reaction/utils/index.d.ts.map +1 -1
- package/dist/reaction/utils/preparePayloadForCache.d.ts +3 -0
- package/dist/reaction/utils/preparePayloadForCache.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/@types/core/events.ts +6 -8
- package/src/@types/core/transport.ts +4 -2
- package/src/@types/domains/client.ts +2 -0
- package/src/@types/domains/user.ts +1 -0
- package/src/client/api/connectClient.ts +4 -6
- package/src/client/api/getToken.ts +3 -2
- package/src/comment/api/queryComments.ts +9 -8
- package/src/comment/events/onCommentReactionAdded.ts +34 -3
- package/src/comment/events/onCommentReactionRemoved.ts +34 -3
- package/src/comment/events/utils.ts +12 -2
- package/src/comment/observers/observeComment.ts +16 -19
- package/src/community/api/leaveCommunity.ts +1 -1
- package/src/community/events/utils.ts +12 -2
- package/src/community/observers/observeCommunity.ts +18 -17
- package/src/core/cache/ingest.ts +19 -3
- package/src/core/events.ts +0 -2
- package/src/core/model/index.ts +1 -0
- package/src/core/model/isMatch.ts +12 -0
- package/src/core/query/paging.ts +4 -0
- package/src/core/subscription.ts +56 -18
- package/src/core/transports/mqtt.ts +68 -12
- package/src/index.ts +1 -0
- package/src/post/api/deletePost.ts +1 -1
- package/src/post/events/onPostDeleted.ts +1 -1
- package/src/post/events/onPostReactionAdded.ts +34 -3
- package/src/post/events/onPostReactionRemoved.ts +34 -3
- package/src/post/events/utils.ts +21 -5
- package/src/post/observers/observePost.ts +18 -21
- package/src/reaction/events/onReactionAdded.ts +36 -17
- package/src/reaction/events/onReactionRemoved.ts +37 -14
- package/src/reaction/utils/index.ts +1 -0
- package/src/reaction/utils/preparePayloadForCache.ts +45 -0
|
@@ -4,11 +4,11 @@ export {};
|
|
|
4
4
|
declare global {
|
|
5
5
|
namespace Amity {
|
|
6
6
|
type Listener<T = any> = (params: T) => void;
|
|
7
|
-
type ObjectListener<T, K extends string[]> =
|
|
7
|
+
type ObjectListener<T, K extends string[]> = {
|
|
8
8
|
onEvent?: (event: K[number], params: T) => void;
|
|
9
9
|
} & {
|
|
10
10
|
[P in K[number]]?: Listener<T>;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
type Unsubscriber = () => void;
|
|
13
13
|
type Subscriber<T = any> = (fn: Amity.Listener<T>) => Unsubscriber;
|
|
14
14
|
type WsEvents = {
|
|
@@ -17,7 +17,6 @@ declare global {
|
|
|
17
17
|
connect_error: Amity.ErrorResponse | undefined;
|
|
18
18
|
reconnect_error: Amity.ErrorResponse | undefined;
|
|
19
19
|
reconnect_failed: Amity.ErrorResponse | undefined;
|
|
20
|
-
'v3.user.didUpdate': Amity.UserPayload;
|
|
21
20
|
'v3.channel.didCreate': Amity.ChannelPayload;
|
|
22
21
|
'v3.channel.didUpdate': Amity.ChannelPayload;
|
|
23
22
|
'v3.channel.didDelete': Amity.ChannelPayload;
|
|
@@ -57,13 +56,17 @@ declare global {
|
|
|
57
56
|
type MqttPostMessageEvents = {
|
|
58
57
|
'post.created': Amity.PostPayload;
|
|
59
58
|
'post.updated': Amity.PostPayload;
|
|
60
|
-
'post.
|
|
59
|
+
'post.deleted': Amity.PostPayload;
|
|
61
60
|
'post.approved': Amity.PostPayload;
|
|
62
61
|
'post.declined': Amity.PostPayload;
|
|
63
62
|
'post.flagged': Amity.PostPayload;
|
|
64
63
|
'post.unflagged': Amity.PostPayload;
|
|
65
|
-
'post.addReaction': Amity.PostPayload
|
|
66
|
-
|
|
64
|
+
'post.addReaction': Amity.PostPayload & {
|
|
65
|
+
reactor: Amity.Reaction;
|
|
66
|
+
};
|
|
67
|
+
'post.removeReaction': Amity.PostPayload & {
|
|
68
|
+
reactor: Amity.Reaction;
|
|
69
|
+
};
|
|
67
70
|
};
|
|
68
71
|
type MqttCommentMessageEvents = {
|
|
69
72
|
'comment.created': Amity.CommentPayload;
|
|
@@ -71,8 +74,12 @@ declare global {
|
|
|
71
74
|
'comment.deleted': Amity.CommentPayload;
|
|
72
75
|
'comment.flagged': Amity.CommentPayload;
|
|
73
76
|
'comment.unflagged': Amity.CommentPayload;
|
|
74
|
-
'comment.addReaction': Amity.CommentPayload
|
|
75
|
-
|
|
77
|
+
'comment.addReaction': Amity.CommentPayload & {
|
|
78
|
+
reactor: Amity.Reaction;
|
|
79
|
+
};
|
|
80
|
+
'comment.removeReaction': Amity.CommentPayload & {
|
|
81
|
+
reactor: Amity.Reaction;
|
|
82
|
+
};
|
|
76
83
|
};
|
|
77
84
|
type MqttUserMessageEvents = {
|
|
78
85
|
'user.updated': Amity.UserPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/@types/core/events.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAExE,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;QAE5C,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/@types/core/events.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAExE,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;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|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ASCError } from '~/core/errors';
|
|
1
2
|
export {};
|
|
2
3
|
declare global {
|
|
3
4
|
namespace Amity {
|
|
@@ -33,8 +34,8 @@ declare global {
|
|
|
33
34
|
once: <T extends keyof Amity.MqttEvents>(event: T, handler: (payload: Amity.MqttEvents[T]) => void) => void;
|
|
34
35
|
off: <T extends keyof Amity.MqttEvents>(event: T, handler?: (payload: Amity.MqttEvents[T]) => void) => void;
|
|
35
36
|
removeAllListeners: () => void;
|
|
36
|
-
subscribe: (topic: string,
|
|
37
|
-
unsubscribe: (topic: string
|
|
37
|
+
subscribe: (topic: string, onError?: Amity.Listener<ASCError>) => Amity.Unsubscriber;
|
|
38
|
+
unsubscribe: (topic: string) => void;
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/@types/core/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,eAAe,CAAC,CAAC,IAAI;YACxB,MAAM,EAAE,SAAS,CAAA;YACjB,IAAI,EAAE,CAAC,CAAA;SACR,CAAA;QAED,KAAK,YAAY,GAAG;YAClB,MAAM,EAAE,MAAM,CAAA;YACd,IAAI,EAAE,KAAK,CAAC,WAAW,CAAA;SACxB,CAAA;QAED,KAAK,aAAa,GAAG;YACnB,MAAM,EAAE,OAAO,CAAA;YACf,OAAO,EAAE,MAAM,CAAA;YACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAA;SACxB,CAAA;QAED,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,aAAa,CAAC,CAAA;QAEtE,KAAK,KAAK,GAAG,MAAM,CAAA;QAEnB,KAAK,UAAU,GAAG;YAChB,MAAM,EAAE;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3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAE9B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,MAAM,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;QAErD,KAAK,MAAM,GAAG;YACZ,OAAO,EAAE,MAAM,CAAA;YAEf,GAAG,EAAE,MAAM,CAAA;YACX,IAAI,EAAE,aAAa,CAAA;YACnB,IAAI,EAAE,KAAK,CAAC,UAAU,CAAA;YACtB,EAAE,EAAE,cAAc,CAAC,MAAM,CAAA;YACzB,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;YAE9B,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAA;YAEnB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAA;YACjB,WAAW,CAAC,EAAE,MAAM,CAAA;YAEpB,GAAG,EAAE,MAAM,IAAI,CAAA;SAChB,CAAA;QAED,KAAK,MAAM,GAAG;YACZ,QAAQ,EAAE,MAAM,CAAA;YAChB,UAAU,EAAE;gBACV,OAAO,EAAE,MAAM,CAAA;gBACf,IAAI,EAAE,MAAM,GAAG,KAAK,CAAA;gBACpB,KAAK,CAAC,EAAE,MAAM,CAAA;aACf,CAAA;SACF,CAAA;QAED,KAAK,MAAM,GAAG;YACZ,WAAW,EAAE,MAAM,CAAA;YACnB,YAAY,EAAE,MAAM,CAAA;SACrB,CAAA;KACF;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,IAAI,GAAG;YACV,MAAM,EAAE,MAAM,CAAA;YACd,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;YAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,GACC,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,SAAS,GACf,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,YAAY,CAAA;KACrB;CACF"}
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,IAAI,GAAG;YACV,GAAG,EAAE,MAAM,CAAA;YACX,MAAM,EAAE,MAAM,CAAA;YACd,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;YAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,GACC,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,SAAS,GACf,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,YAAY,CAAA;KACrB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/connectClient.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,WAAkB;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACrC,KAAG,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"connectClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/connectClient.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,WAAkB;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACrC,KAAG,QAAQ,OAAO,CAsClB,CAAA"}
|
|
@@ -15,5 +15,7 @@ export declare const getToken: (params: {
|
|
|
15
15
|
displayName: Amity.User['displayName'];
|
|
16
16
|
authToken?: string;
|
|
17
17
|
deviceId: Amity.Device['deviceId'];
|
|
18
|
-
}) => Promise<Amity.Tokens
|
|
18
|
+
}) => Promise<Amity.Tokens & {
|
|
19
|
+
users: Amity.User[];
|
|
20
|
+
}>;
|
|
19
21
|
//# sourceMappingURL=getToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getToken.d.ts","sourceRoot":"","sources":["../../../src/client/api/getToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,WAAkB;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACpC,
|
|
1
|
+
{"version":3,"file":"getToken.d.ts","sourceRoot":"","sources":["../../../src/client/api/getToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,WAAkB;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACpC;WAMiE,MAAM,IAAI,EAAE;EAQ7E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommentReactionAdded.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionAdded.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onCommentReactionAdded.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionAdded.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,oEAEhC,MAAM,YA2BR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommentReactionRemoved.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionRemoved.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onCommentReactionRemoved.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionRemoved.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,oEAElC,MAAM,YA2BR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/comment/events/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/comment/events/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B,4BAChC,MAAM,MAAM,wBAAwB,mEA0B5C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observeComment.d.ts","sourceRoot":"","sources":["../../../src/comment/observers/observeComment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"observeComment.d.ts","sourceRoot":"","sources":["../../../src/comment/observers/observeComment.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,sIACd,MAAM;;2CAET,MAAM,WAAW,KACxB,MAAM,YAkDR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/community/events/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/community/events/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B,UAClC,MAAM,MAAM,0BAA0B,YACnC,MAAM,QAAQ,CAAC,MAAM,SAAS,CAAC,uBAyB1C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observeCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/observers/observeCommunity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"observeCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/observers/observeCommunity.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,0JACd,MAAM;;qCAElB,MAAM,YAmDR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../../../src/core/cache/ingest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../../../src/core/cache/ingest.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,aACf,OAAO,MAAM,EAAE,GAAG,EAAE,CAAC,2BAwB/B,CAAA"}
|
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" | "v3.
|
|
28
|
-
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.
|
|
27
|
+
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "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.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared">(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" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "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.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared">(client: Amity.Client, namespace: string, event: string, fn: (params: Object) => 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" | "v3.
|
|
34
|
+
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "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.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared">(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":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAoCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAI5F,CAAA;AAED,eAAO,MAAM,eAAe,eAAgB,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAWjG,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,+oCACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAiBR,CAAA;AAED,eAAO,MAAM,2BAA2B,+oCAC9B,MAAM,MAAM,aACT,MAAM,SACV,MAAM,eACA,MAAM,KAAK,IAAI,KAC3B,MAAM,YAaR,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,krCAMrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isMatch.d.ts","sourceRoot":"","sources":["../../../src/core/model/isMatch.ts"],"names":[],"mappings":"AAEA,cAAc;AACd,eAAO,MAAM,OAAO,0FAQnB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../../src/core/query/paging.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,sCAEvC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,SAAU,MAAM,wCAEzC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,YAAa,GAAG,gCAMnC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,WACV,MAAM,IAAI,GAAG,SAAS,SACvB,WAAW,GAAG,aAAa,KAEjC,MAAM,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../../src/core/query/paging.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,sCAEvC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,SAAU,MAAM,wCAEzC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,YAAa,GAAG,gCAMnC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,WACV,MAAM,IAAI,GAAG,SAAS,SACvB,WAAW,GAAG,aAAa,KAEjC,MAAM,KAAK,GAAG,SA2ChB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,kCAA0B,MAAM,IAAI,GAAG,IA0BzD,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,qIAsBzB,CAAA"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import { ASCError } from '~/core/errors';
|
|
2
|
+
export declare const getCommunityTopic: ({ path }: Amity.Subscribable, level?: 'community' | 'post' | 'comment' | 'post_and_comment') => string;
|
|
3
|
+
export declare const getUserTopic: ({ path }: Amity.Subscribable, level?: 'user' | 'post' | 'comment' | 'post_and_comment') => string;
|
|
4
|
+
export declare const getPostTopic: ({ path }: Amity.Subscribable, level?: 'post' | 'comment') => string;
|
|
5
|
+
export declare const getCommentTopic: ({ path }: Amity.Subscribable) => string;
|
|
6
|
+
export declare function subscribeTopic(topic: string, onError?: Amity.Listener<ASCError>): Amity.Unsubscriber;
|
|
3
7
|
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/core/subscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/core/subscription.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAmB,MAAM,eAAe,CAAA;AAmBzD,eAAO,MAAM,iBAAiB,aAClB,MAAM,YAAY,UACrB,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,kBAAkB,KAC3D,MACqC,CAAA;AAExC,eAAO,MAAM,YAAY,aACb,MAAM,YAAY,UACrB,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,kBAAkB,KACtD,MACqC,CAAA;AAExC,eAAO,MAAM,YAAY,aACb,MAAM,YAAY,UACrB,MAAM,GAAG,SAAS,KACxB,MAOF,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,MAAM,YAAY,KAAG,MAE9D,CAAC;AAIF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,GACjC,KAAK,CAAC,YAAY,CAUpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAcvD,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAgBhH;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,gBAyFtD,CAAA"}
|