@blocklet/sdk 1.16.15-beta-e143b1cf → 1.16.15-beta-12f50442
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/lib/service/auth.d.ts +4 -1
- package/lib/service/auth.js +3 -0
- package/package.json +7 -7
package/lib/service/auth.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ interface AuthService {
|
|
|
23
23
|
enableConnectedAccount?: boolean;
|
|
24
24
|
}): Promise<Client.ResponseUser>;
|
|
25
25
|
getUsers(args?: OmitTeamDid<Client.RequestUsersInput>): Promise<Client.ResponseUsers>;
|
|
26
|
+
getUsersCount(args?: OmitTeamDid<Client.TeamInput>): Promise<Client.ResponseGetUsersCount>;
|
|
27
|
+
getUsersCountPerRole(args?: OmitTeamDid<Client.TeamInput>): Promise<Client.ResponseGetUsersCountPerRole>;
|
|
26
28
|
getOwner(): Promise<Client.ResponseUser>;
|
|
27
29
|
switchProfile(did: string, profile: {
|
|
28
30
|
avatar?: string;
|
|
@@ -46,6 +48,7 @@ interface AuthService {
|
|
|
46
48
|
createPermission(args: OmitTeamDid<Client.RequestCreatePermissionInput>): Promise<Client.ResponsePermission>;
|
|
47
49
|
updatePermission(args: OmitTeamDid<Client.PermissionInput>): Promise<Client.ResponsePermission>;
|
|
48
50
|
deletePermission(name: string): Promise<Client.GeneralResponse>;
|
|
49
|
-
getBlocklet(attachRuntimeInfo
|
|
51
|
+
getBlocklet(attachRuntimeInfo?: boolean): Promise<Client.ResponseBlocklet>;
|
|
52
|
+
clearCache(args?: OmitTeamDid<Client.RequestClearCacheInput>): Promise<Client.ResponseClearCache>;
|
|
50
53
|
}
|
|
51
54
|
export = AuthService;
|
package/lib/service/auth.js
CHANGED
|
@@ -68,6 +68,8 @@ class AuthService {
|
|
|
68
68
|
'switchProfile',
|
|
69
69
|
'refreshSession',
|
|
70
70
|
'getUsers',
|
|
71
|
+
'getUsersCount',
|
|
72
|
+
'getUsersCountPerRole',
|
|
71
73
|
'getUser',
|
|
72
74
|
'getOwner',
|
|
73
75
|
// 'removeUser',
|
|
@@ -104,6 +106,7 @@ class AuthService {
|
|
|
104
106
|
// 'configTrustedFactories',
|
|
105
107
|
// blocklet
|
|
106
108
|
'getBlocklet',
|
|
109
|
+
'clearCache',
|
|
107
110
|
];
|
|
108
111
|
const teamDid = process.env.BLOCKLET_DID;
|
|
109
112
|
const apiFallback = (fn) => (params = {}, ...args) => fn({ input: { ...params, teamDid }, ...args });
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.15-beta-
|
|
6
|
+
"version": "1.16.15-beta-12f50442",
|
|
7
7
|
"description": "graphql client to read/write data on abt node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"typings": "lib/index.d.ts",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@abtnode/client": "1.16.15-beta-
|
|
30
|
-
"@abtnode/constant": "1.16.15-beta-
|
|
29
|
+
"@abtnode/client": "1.16.15-beta-12f50442",
|
|
30
|
+
"@abtnode/constant": "1.16.15-beta-12f50442",
|
|
31
31
|
"@arcblock/did": "1.18.89",
|
|
32
32
|
"@arcblock/did-auth": "1.18.89",
|
|
33
33
|
"@arcblock/jwt": "1.18.89",
|
|
34
34
|
"@arcblock/ws": "1.18.89",
|
|
35
|
-
"@blocklet/constant": "1.16.15-beta-
|
|
36
|
-
"@blocklet/env": "1.16.15-beta-
|
|
37
|
-
"@blocklet/meta": "1.16.15-beta-
|
|
35
|
+
"@blocklet/constant": "1.16.15-beta-12f50442",
|
|
36
|
+
"@blocklet/env": "1.16.15-beta-12f50442",
|
|
37
|
+
"@blocklet/meta": "1.16.15-beta-12f50442",
|
|
38
38
|
"@did-connect/authenticator": "^2.2.0",
|
|
39
39
|
"@did-connect/handler": "^2.2.0",
|
|
40
40
|
"@nedb/core": "^2.1.5",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"ts-node": "^10.9.1",
|
|
75
75
|
"typescript": "^5.0.4"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "48bda4b29eb31a70e0eb9cab0bce6e544960c7fd"
|
|
78
78
|
}
|