@blocklet/sdk 1.7.26 → 1.8.1

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/README.md CHANGED
@@ -48,7 +48,29 @@ Get owner of the app
48
48
 
49
49
  Get all users of the app
50
50
 
51
- - _@return_ `{ code, users }`
51
+ - _@param_ **paging** `Object`
52
+ - **paging.pageSize** ``
53
+ - **paging.page** ``
54
+ - _@param_ **query** `Object`
55
+ - **query.role** `String` Match users by role name
56
+ - `$none`: Match users which does not have a role
57
+ - **query.approved** `Boolean` Match users by approved
58
+ - **query.search** `String` Match users by did or fullName
59
+ - _@param_ **sort** `Object`
60
+ - **sort.createdAt** `Number`
61
+ - **sort.updatedAt** `Number`
62
+ - **sort.lastLoginAt** `Number`
63
+ - > `-1`: The latest time is at first. `1`: The latest time is at last.
64
+ - _@return_ `{ code, users, paging }`
65
+
66
+ ```
67
+ Paging {
68
+ total: number of users
69
+ pageSize: number of users per page
70
+ pageCount: number of page
71
+ page: current page number
72
+ }
73
+ ```
52
74
 
53
75
  #### client.getPermissionsByRole(role)
54
76
 
@@ -123,6 +123,7 @@ class AuthService extends Client {
123
123
  this[api] = apiFnMap[api] ? apiFnMap[api](fn) : apiFallback(fn);
124
124
  });
125
125
 
126
+ // eslint-disable-next-line no-constructor-return
126
127
  return new Proxy(this, {
127
128
  get(target, propKey) {
128
129
  if (!apiList.includes(propKey)) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.26",
6
+ "version": "1.8.1",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,14 +19,14 @@
19
19
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@abtnode/client": "1.7.26",
23
- "@abtnode/constant": "1.7.26",
24
- "@abtnode/logger": "1.7.26",
22
+ "@abtnode/client": "1.8.1",
23
+ "@abtnode/constant": "1.8.1",
24
+ "@abtnode/logger": "1.8.1",
25
25
  "@arcblock/did-auth": "1.17.0",
26
26
  "@arcblock/jwt": "1.17.0",
27
27
  "@arcblock/ws": "1.17.0",
28
- "@blocklet/meta": "1.7.26",
29
- "@nedb/core": "^1.2.2",
28
+ "@blocklet/meta": "1.8.1",
29
+ "@nedb/core": "^1.3.1",
30
30
  "@ocap/mcrypto": "1.17.0",
31
31
  "@ocap/wallet": "1.17.0",
32
32
  "axios": "^0.27.2",
@@ -40,5 +40,5 @@
40
40
  "detect-port": "^1.3.0",
41
41
  "jest": "^27.4.5"
42
42
  },
43
- "gitHead": "b7ef9b4ddb18f7a0c3898177fe06d9cefe966566"
43
+ "gitHead": "c970b8a386bebd7fe6dbc8b8eedf8bd8328b4bb5"
44
44
  }