@amityco/ts-sdk 7.33.2-e5a19559.0 → 7.34.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.
|
@@ -9,6 +9,7 @@ declare global {
|
|
|
9
9
|
POST_REACT = "reaction_on_post",
|
|
10
10
|
COMMENT_REACT = "reaction_on_comment",
|
|
11
11
|
REPLY_REACT = "reaction_on_reply",
|
|
12
|
+
POLL_REACT = "reaction_on_poll",
|
|
12
13
|
RESPONSE_JOIN_REQUEST = "respond_on_join_request",
|
|
13
14
|
FOLLOW_USER = "follow",
|
|
14
15
|
EVENT_REMINDER = "event_reminder",
|
|
@@ -25,7 +26,10 @@ declare global {
|
|
|
25
26
|
MENTION = "mention",
|
|
26
27
|
REPLY = "reply",
|
|
27
28
|
JOIN_REQUEST = "join_request",
|
|
28
|
-
USER = "user"
|
|
29
|
+
USER = "user",
|
|
30
|
+
FOLLOW = "follow",
|
|
31
|
+
EVENT = "event",
|
|
32
|
+
INVITATION = "invitation"
|
|
29
33
|
}
|
|
30
34
|
type RawNotificationTrayItem = {
|
|
31
35
|
_id: string;
|
|
@@ -37,12 +41,20 @@ declare global {
|
|
|
37
41
|
lastActedAt: Amity.timestamp;
|
|
38
42
|
}[];
|
|
39
43
|
actorsCount: number;
|
|
40
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Also accepts values the backend adds before the SDK lists them.
|
|
46
|
+
* `(string & {})` keeps editor suggestions for the known values.
|
|
47
|
+
*/
|
|
48
|
+
trayItemCategory?: TrayItemCategoryType | (string & {});
|
|
41
49
|
targetId: string;
|
|
42
50
|
targetType: string;
|
|
43
51
|
referenceId?: string;
|
|
44
52
|
referenceType?: string;
|
|
45
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Also accepts values the backend adds before the SDK lists them.
|
|
55
|
+
* `(string & {})` keeps editor suggestions for the known values.
|
|
56
|
+
*/
|
|
57
|
+
actionType: TrayAction | (string & {});
|
|
46
58
|
actionReferenceId?: string;
|
|
47
59
|
parentId?: string;
|
|
48
60
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,oBAAoB;YAC7B,YAAY,oBAAoB;YAChC,eAAe,uBAAuB;YACtC,aAAa,qBAAqB;YAClC,YAAY,oBAAoB;YAChC,UAAU,qBAAqB;YAC/B,aAAa,wBAAwB;YACrC,WAAW,sBAAsB;YACjC,qBAAqB,4BAA4B;YACjD,WAAW,WAAW;YACtB,cAAc,mBAAmB;YACjC,aAAa,kBAAkB;YAC/B,aAAa,kBAAkB;YAC/B,kBAAkB,uBAAuB;YACzC,kBAAkB,uBAAuB;SAC1C;QAED,WAAW,UAAU;YACnB,IAAI,SAAS;YACb,IAAI,SAAS;YACb,OAAO,YAAY;YACnB,QAAQ,aAAa;YACrB,OAAO,YAAY;YACnB,KAAK,UAAU;YACf,YAAY,iBAAiB;YAC7B,IAAI,SAAS;
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,oBAAoB;YAC7B,YAAY,oBAAoB;YAChC,eAAe,uBAAuB;YACtC,aAAa,qBAAqB;YAClC,YAAY,oBAAoB;YAChC,UAAU,qBAAqB;YAC/B,aAAa,wBAAwB;YACrC,WAAW,sBAAsB;YACjC,UAAU,qBAAqB;YAC/B,qBAAqB,4BAA4B;YACjD,WAAW,WAAW;YACtB,cAAc,mBAAmB;YACjC,aAAa,kBAAkB;YAC/B,aAAa,kBAAkB;YAC/B,kBAAkB,uBAAuB;YACzC,kBAAkB,uBAAuB;SAC1C;QAED,WAAW,UAA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|
* A new post, the current user's own included, is not added in real time: it appears
|
|
19
19
|
* when the feed is next loaded from the first page (for example, a new subscription).
|
|
20
20
|
* With `customRanking` the server may take up to 5 minutes to include it.
|
|
21
|
-
* Deleted and declined posts are removed at once.
|
|
21
|
+
* Deleted and declined posts are removed at once.
|
|
22
22
|
*
|
|
23
23
|
* When the network enforces module entitlement and the `feed` module is not entitled,
|
|
24
24
|
* the request fails with `400325` (`ModuleNotEntitled`), reported through `error`.
|
package/dist/index.cjs.js
CHANGED
|
@@ -372,8 +372,8 @@ exports.AmityLiveViewerCountMode = void 0;
|
|
|
372
372
|
|
|
373
373
|
function getVersion() {
|
|
374
374
|
try {
|
|
375
|
-
// the string ''v7.
|
|
376
|
-
return 'v7.
|
|
375
|
+
// the string ''v7.34.0-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
376
|
+
return 'v7.34.0-cjs';
|
|
377
377
|
}
|
|
378
378
|
catch (error) {
|
|
379
379
|
return '__dev__';
|
|
@@ -14394,7 +14394,7 @@ const getWatchSessionStorage = () => {
|
|
|
14394
14394
|
return storageInstance;
|
|
14395
14395
|
};
|
|
14396
14396
|
|
|
14397
|
-
const privateKey = "
|
|
14397
|
+
const privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHo80SecH7FuF2\nhFYnb+l26/VN8UMLXAQFLnxciNTEwkGVFMpdezlH8rU2HtUJL4RETogbAOLVY0XM\njs6sPn8G1nALmh9qeDpUtVqFOVtBHxEZ910TLOtQiunjqJKO5nWdqZ71EC3OFluR\niGQkO84BiIFbv37ub7xl3S8XarbtKoLcyVpkDHi+1wx1pgCAn6gtBUgckPL5NR8j\nLseabl3HAXQfhTCKo4tmOFM2Dxwl1IUMmIJrJg/aIU/U0tj/1Eoo7mG0JcNWX19l\nW3EecCbi0ncCJOrkUdwlBrcjaMayaX/ubEwyUeTGiLdyc4L3GRLHjyK8xgVNXRMH\nbZWJ2a5N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YEA2TttOKBAqWllgOaZOkql\nLVMJVmgR7s6tLi1+cEP8ZcapV9aRbRzTAKXm4f8AEhtlG9F9kCOvHYCYGi6JaiWJ\nZkHjeex3T+eE6Di6y5Bm/Ift5jtVhJ4jCVwHOKTMej79NPUFTJfv8hCo29haBDv6\nRXFrv+T21KCcw8k3sJeJWWQ=\n-----END PRIVATE KEY-----";
|
|
14398
14398
|
/*
|
|
14399
14399
|
* The crypto algorithm used for importing key and signing string
|
|
14400
14400
|
*/
|
|
@@ -30885,7 +30885,7 @@ class FollowingFeedLiveCollectionController extends LiveCollectionController {
|
|
|
30885
30885
|
* A new post, the current user's own included, is not added in real time: it appears
|
|
30886
30886
|
* when the feed is next loaded from the first page (for example, a new subscription).
|
|
30887
30887
|
* With `customRanking` the server may take up to 5 minutes to include it.
|
|
30888
|
-
* Deleted and declined posts are removed at once.
|
|
30888
|
+
* Deleted and declined posts are removed at once.
|
|
30889
30889
|
*
|
|
30890
30890
|
* When the network enforces module entitlement and the `feed` module is not entitled,
|
|
30891
30891
|
* the request fails with `400325` (`ModuleNotEntitled`), reported through `error`.
|
package/dist/index.esm.js
CHANGED
|
@@ -356,8 +356,8 @@ var AmityLiveViewerCountMode;
|
|
|
356
356
|
|
|
357
357
|
function getVersion() {
|
|
358
358
|
try {
|
|
359
|
-
// the string ''v7.
|
|
360
|
-
return 'v7.
|
|
359
|
+
// the string ''v7.34.0-esm'' should be replaced by actual value by @rollup/plugin-replace
|
|
360
|
+
return 'v7.34.0-esm';
|
|
361
361
|
}
|
|
362
362
|
catch (error) {
|
|
363
363
|
return '__dev__';
|
|
@@ -14394,7 +14394,7 @@ const getWatchSessionStorage = () => {
|
|
|
14394
14394
|
return storageInstance;
|
|
14395
14395
|
};
|
|
14396
14396
|
|
|
14397
|
-
const privateKey = "
|
|
14397
|
+
const privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHo80SecH7FuF2\nh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WQz7mEjGiR2/1W+XXb8hQ1zr709\nw1r6Gb+EghRpnZ3fBpYGGbYOMFx8wKHM+N6qW3F0ReX8v2juFGE8aRSa5oYBrWzt\nU16Idjbv8hj84cZ1PJmdyvDtpYn9rpWHOZl4rxEbPvbqkIsOMyNVqdT5AoGAOSge\nmwIIU2le2FVeohbibXiToWTYKMuMmURZ5/r72AgKMmWJKbAPe+Q3wBG01/7FRBpQ\noU8Ma0HC8s6QJbliiEyIx9JwrJWd1vkdecBHONrtA4ibm/5zD2WcOllLF+FitLhi\n3qnX6+6F0IaFGFBPJrTzlv0P4dTz/OAdv52V7GECgYEA2TttOKBAqWllgOaZOkql\nLVMJVmgR7s6tLi1+cEP8ZcapV9aRbRzTAKXm4f8AEhtlG9F9kCOvHYCYGi6JaiWJ\nZkHjeex3T+eE6Di6y5Bm/Ift5jtVhJ4jCVwHOKTMej79NPUFTJfv8hCo29haBDv6\nRXFrv+T21KCcw8k3sJeJWWQ=\n-----END PRIVATE KEY-----";
|
|
14398
14398
|
/*
|
|
14399
14399
|
* The crypto algorithm used for importing key and signing string
|
|
14400
14400
|
*/
|
|
@@ -30885,7 +30885,7 @@ class FollowingFeedLiveCollectionController extends LiveCollectionController {
|
|
|
30885
30885
|
* A new post, the current user's own included, is not added in real time: it appears
|
|
30886
30886
|
* when the feed is next loaded from the first page (for example, a new subscription).
|
|
30887
30887
|
* With `customRanking` the server may take up to 5 minutes to include it.
|
|
30888
|
-
* Deleted and declined posts are removed at once.
|
|
30888
|
+
* Deleted and declined posts are removed at once.
|
|
30889
30889
|
*
|
|
30890
30890
|
* When the network enforces module entitlement and the `feed` module is not entitled,
|
|
30891
30891
|
* the request fails with `400325` (`ModuleNotEntitled`), reported through `error`.
|