@amityco/ts-sdk 6.25.0 → 6.25.2
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/client/api/getToken.d.ts +1 -1
- package/dist/client/api/getToken.d.ts.map +1 -1
- package/dist/index.cjs.js +4 -3
- package/dist/index.esm.js +4 -3
- package/dist/index.umd.js +2 -2
- package/dist/reactionRepository/events/onReactionAdded.d.ts.map +1 -1
- package/dist/reactionRepository/events/onReactorAdded.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/api/getToken.ts +1 -1
- package/src/client/api/login.ts +1 -1
- package/src/reactionRepository/events/onReactionAdded.ts +0 -1
- package/src/reactionRepository/events/onReactorAdded.ts +1 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const getToken: (params: {
|
|
14
14
|
userId: Amity.InternalUser['userId'];
|
|
15
|
-
displayName
|
|
15
|
+
displayName?: Amity.InternalUser['displayName'];
|
|
16
16
|
authToken?: string;
|
|
17
17
|
deviceId: Amity.Device['deviceId'];
|
|
18
18
|
}) => Promise<Amity.Tokens & {
|
|
@@ -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,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,EAAE,MAAM,YAAY,CAAC,aAAa,CAAC,CAAC;
|
|
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,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,YAAY,CAAC,aAAa,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACpC;WAMiE,MAAM,YAAY,EAAE;EAarF,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -97,8 +97,8 @@ const PostContentType = Object.freeze({
|
|
|
97
97
|
|
|
98
98
|
function getVersion() {
|
|
99
99
|
try {
|
|
100
|
-
// the string ''v6.25.
|
|
101
|
-
return 'v6.25.
|
|
100
|
+
// the string ''v6.25.2-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
101
|
+
return 'v6.25.2-cjs';
|
|
102
102
|
}
|
|
103
103
|
catch (error) {
|
|
104
104
|
return '__dev__';
|
|
@@ -8775,7 +8775,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
8775
8775
|
// default values
|
|
8776
8776
|
const defaultDeviceId = await getDeviceId();
|
|
8777
8777
|
try {
|
|
8778
|
-
const { users } = await setClientToken(Object.assign(Object.assign({}, params), { displayName:
|
|
8778
|
+
const { users } = await setClientToken(Object.assign(Object.assign({}, params), { displayName: params === null || params === void 0 ? void 0 : params.displayName, deviceId: (params === null || params === void 0 ? void 0 : params.deviceId) || defaultDeviceId }));
|
|
8779
8779
|
const user = users.find(u => u.userId === params.userId);
|
|
8780
8780
|
if (user == null) {
|
|
8781
8781
|
throw new ASCError(`${params.userId} has not been founded`, 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
@@ -13287,6 +13287,7 @@ const onReactorAdded = (referenceType, referenceId, callback) => {
|
|
|
13287
13287
|
if (!payload.reactions[0])
|
|
13288
13288
|
return;
|
|
13289
13289
|
ingestInCache(payload);
|
|
13290
|
+
ingestInCache({ reactors: payload.reactions });
|
|
13290
13291
|
callbackWrapper('message', payload.messages[0].messageId, payload.reactions[0]);
|
|
13291
13292
|
};
|
|
13292
13293
|
return createEventSubscriber(client, 'reaction/onReactorAdded', 'message.reactionAdded', filter);
|
package/dist/index.esm.js
CHANGED
|
@@ -82,8 +82,8 @@ const PostContentType = Object.freeze({
|
|
|
82
82
|
|
|
83
83
|
function getVersion() {
|
|
84
84
|
try {
|
|
85
|
-
// the string ''v6.25.
|
|
86
|
-
return 'v6.25.
|
|
85
|
+
// the string ''v6.25.2-esm'' should be replaced by actual value by @rollup/plugin-replace
|
|
86
|
+
return 'v6.25.2-esm';
|
|
87
87
|
}
|
|
88
88
|
catch (error) {
|
|
89
89
|
return '__dev__';
|
|
@@ -24865,7 +24865,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24865
24865
|
// default values
|
|
24866
24866
|
const defaultDeviceId = await getDeviceId();
|
|
24867
24867
|
try {
|
|
24868
|
-
const { users } = await setClientToken(Object.assign(Object.assign({}, params), { displayName:
|
|
24868
|
+
const { users } = await setClientToken(Object.assign(Object.assign({}, params), { displayName: params === null || params === void 0 ? void 0 : params.displayName, deviceId: (params === null || params === void 0 ? void 0 : params.deviceId) || defaultDeviceId }));
|
|
24869
24869
|
const user = users.find(u => u.userId === params.userId);
|
|
24870
24870
|
if (user == null) {
|
|
24871
24871
|
throw new ASCError(`${params.userId} has not been founded`, 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
@@ -29377,6 +29377,7 @@ const onReactorAdded = (referenceType, referenceId, callback) => {
|
|
|
29377
29377
|
if (!payload.reactions[0])
|
|
29378
29378
|
return;
|
|
29379
29379
|
ingestInCache(payload);
|
|
29380
|
+
ingestInCache({ reactors: payload.reactions });
|
|
29380
29381
|
callbackWrapper('message', payload.messages[0].messageId, payload.reactions[0]);
|
|
29381
29382
|
};
|
|
29382
29383
|
return createEventSubscriber(client, 'reaction/onReactorAdded', 'message.reactionAdded', filter);
|