@amityco/ts-sdk 6.25.1 → 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.
|
@@ -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 */);
|
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 */);
|