@abtnode/schema 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 +48 -17
- package/lib/index.js +82 -40
- package/lib/schema.graphqls +82 -40
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,13 +5,44 @@ Defines data structure for ABT Node backend API, and maintains schema for GQL en
|
|
|
5
5
|
## Development
|
|
6
6
|
|
|
7
7
|
You can choose one of the following two ways to build schema.
|
|
8
|
+
It is recommended to build with Docker.
|
|
8
9
|
|
|
9
|
-
### Option 1. Build schema with
|
|
10
|
+
### Option 1. Build schema with Docker
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
Requirements:
|
|
12
13
|
|
|
13
|
-
-
|
|
14
|
-
|
|
14
|
+
- Docker
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
docker pull arcblock/blocklet-server-proto
|
|
18
|
+
docker run --rm -v {absolute path of core/schema}:/home/root/schema arcblock/blocklet-server-proto
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Option 2. Build schema with Go
|
|
22
|
+
|
|
23
|
+
Requirements:
|
|
24
|
+
|
|
25
|
+
- go 1.8+
|
|
26
|
+
|
|
27
|
+
#### Install go
|
|
28
|
+
|
|
29
|
+
- Mac: brew install go
|
|
30
|
+
- Other platform: https://go.dev/doc/install
|
|
31
|
+
|
|
32
|
+
```shell
|
|
33
|
+
# you can use `go env` to check the go environment
|
|
34
|
+
go env
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Install gnu-sed(MacOS)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Install(Mac OS), other platform: https://www.gnu.org/software/sed/
|
|
42
|
+
brew install gnu-sed
|
|
43
|
+
# Make `sed` command work, only for homebrew:
|
|
44
|
+
PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
|
|
45
|
+
```
|
|
15
46
|
|
|
16
47
|
#### Install protobuf
|
|
17
48
|
|
|
@@ -21,18 +52,27 @@ You can choose one of the following two ways to build schema.
|
|
|
21
52
|
#### Add to `~/.profile`
|
|
22
53
|
|
|
23
54
|
```shell
|
|
55
|
+
|
|
56
|
+
vim ~/.profile
|
|
57
|
+
|
|
58
|
+
# add the profile to the end of the file
|
|
59
|
+
# ----------------------------------------------------------
|
|
60
|
+
|
|
24
61
|
export GO111MODULE=on
|
|
25
62
|
export GOPROXY=https://goproxy.cn
|
|
26
63
|
|
|
27
|
-
|
|
64
|
+
# you can query the GOROOT/GOPATH/GOBIN by `go env`
|
|
65
|
+
export GOROOT=/usr/local/Cellar/go/1.15.5/libexec // replace to your local go path
|
|
28
66
|
export GOPATH=$HOME/.golang
|
|
29
67
|
export GOBIN=$GOPATH/bin
|
|
30
68
|
export PATH=$PATH:$GOROOT:$GOPATH:$GOBIN
|
|
31
|
-
|
|
32
|
-
|
|
69
|
+
|
|
70
|
+
# ----------------------------------------------------------
|
|
33
71
|
|
|
34
72
|
source ~/.profile
|
|
35
73
|
|
|
74
|
+
```
|
|
75
|
+
|
|
36
76
|
#### Install other dependencies
|
|
37
77
|
|
|
38
78
|
Run `make init`
|
|
@@ -43,15 +83,6 @@ Run `make init`
|
|
|
43
83
|
|
|
44
84
|
Run `make build`
|
|
45
85
|
|
|
46
|
-
### Option 2. Build schema with Docker
|
|
47
|
-
|
|
48
|
-
If you don't want to install Go-related dependencies, you can build them via the docker:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
docker pull arcblock/blocklet-server-proto
|
|
52
|
-
docker run --rm -v {absolute path of core/schema}:/home/root/schema arcblock/blocklet-server-proto
|
|
53
|
-
```
|
|
54
|
-
|
|
55
86
|
## How To Update Schema
|
|
56
87
|
|
|
57
88
|
### 1. update core/schema proto
|
|
@@ -68,7 +99,7 @@ just run:
|
|
|
68
99
|
node tools/start-upgrade-server.js
|
|
69
100
|
```
|
|
70
101
|
|
|
71
|
-
> should make sure the DB Proxy is running
|
|
102
|
+
> should make sure the DB Proxy is running, if not, run `yarn start` in a new terminal
|
|
72
103
|
|
|
73
104
|
### 3. go to core/client do finally update
|
|
74
105
|
|
package/lib/index.js
CHANGED
|
@@ -59,23 +59,6 @@ input IssuerInput {
|
|
|
59
59
|
pk: String
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
input MemberInfoInput {
|
|
63
|
-
did: String
|
|
64
|
-
pk: String
|
|
65
|
-
role: String
|
|
66
|
-
avatar: String
|
|
67
|
-
fullName: String
|
|
68
|
-
email: String
|
|
69
|
-
approved: Boolean
|
|
70
|
-
createdAt: String
|
|
71
|
-
updatedAt: String
|
|
72
|
-
locale: String
|
|
73
|
-
passports: [PassportInput!]
|
|
74
|
-
firstLoginAt: String
|
|
75
|
-
lastLoginAt: String
|
|
76
|
-
remark: String
|
|
77
|
-
}
|
|
78
|
-
|
|
79
62
|
input NodeInfoInput {
|
|
80
63
|
name: String
|
|
81
64
|
description: String
|
|
@@ -174,6 +157,11 @@ input RequestConfigPassportIssuanceInput {
|
|
|
174
157
|
enable: Boolean
|
|
175
158
|
}
|
|
176
159
|
|
|
160
|
+
input RequestConfigPublicToStoreInput {
|
|
161
|
+
did: String
|
|
162
|
+
publicToStore: Boolean
|
|
163
|
+
}
|
|
164
|
+
|
|
177
165
|
input RequestConfigTrustedPassportsInput {
|
|
178
166
|
teamDid: String
|
|
179
167
|
trustedPassports: [TrustedPassportInput!]
|
|
@@ -336,6 +324,8 @@ input RequestInstallComponentInput {
|
|
|
336
324
|
deleteSet: [String!]
|
|
337
325
|
name: String
|
|
338
326
|
title: String
|
|
327
|
+
configs: [ConfigEntryInput!]
|
|
328
|
+
downloadToken: String
|
|
339
329
|
}
|
|
340
330
|
|
|
341
331
|
input RequestInstallFromVcInput {
|
|
@@ -418,7 +408,7 @@ input RequestTeamRoleInput {
|
|
|
418
408
|
|
|
419
409
|
input RequestTeamUserInput {
|
|
420
410
|
teamDid: String
|
|
421
|
-
user:
|
|
411
|
+
user: UserInfoInput
|
|
422
412
|
}
|
|
423
413
|
|
|
424
414
|
input RequestUpdateAccessKeyInput {
|
|
@@ -463,6 +453,13 @@ input RequestUpgradeBlockletInput {
|
|
|
463
453
|
registryUrl: String
|
|
464
454
|
}
|
|
465
455
|
|
|
456
|
+
input RequestUsersInput {
|
|
457
|
+
teamDid: String
|
|
458
|
+
query: UserQueryInput
|
|
459
|
+
sort: UserSortInput
|
|
460
|
+
paging: PagingInput
|
|
461
|
+
}
|
|
462
|
+
|
|
466
463
|
input RequestVersionedBlockletInput {
|
|
467
464
|
did: String
|
|
468
465
|
url: String
|
|
@@ -472,6 +469,7 @@ input RequestVersionedBlockletInput {
|
|
|
472
469
|
title: String
|
|
473
470
|
description: String
|
|
474
471
|
startImmediately: Boolean
|
|
472
|
+
downloadToken: String
|
|
475
473
|
}
|
|
476
474
|
|
|
477
475
|
input RequsetCreateInvitationInput {
|
|
@@ -551,6 +549,35 @@ input TrustedPassportMappingToInput {
|
|
|
551
549
|
role: String
|
|
552
550
|
}
|
|
553
551
|
|
|
552
|
+
input UserInfoInput {
|
|
553
|
+
did: String
|
|
554
|
+
pk: String
|
|
555
|
+
role: String
|
|
556
|
+
avatar: String
|
|
557
|
+
fullName: String
|
|
558
|
+
email: String
|
|
559
|
+
approved: Boolean
|
|
560
|
+
createdAt: String
|
|
561
|
+
updatedAt: String
|
|
562
|
+
locale: String
|
|
563
|
+
passports: [PassportInput!]
|
|
564
|
+
firstLoginAt: String
|
|
565
|
+
lastLoginAt: String
|
|
566
|
+
remark: String
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
input UserQueryInput {
|
|
570
|
+
role: String
|
|
571
|
+
approved: Boolean
|
|
572
|
+
search: String
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
input UserSortInput {
|
|
576
|
+
updatedAt: Int32
|
|
577
|
+
createdAt: Int32
|
|
578
|
+
lastLoginAt: Int32
|
|
579
|
+
}
|
|
580
|
+
|
|
554
581
|
input WebHookParamInput {
|
|
555
582
|
name: String
|
|
556
583
|
description: String
|
|
@@ -735,6 +762,7 @@ type BlockletSettings {
|
|
|
735
762
|
whoCanAccess: String
|
|
736
763
|
owner: WalletInfo
|
|
737
764
|
children: [DeletedBlockletState!]
|
|
765
|
+
publicToStore: Boolean
|
|
738
766
|
}
|
|
739
767
|
|
|
740
768
|
type BlockletState {
|
|
@@ -906,7 +934,7 @@ type InviteInfo {
|
|
|
906
934
|
role: String
|
|
907
935
|
remark: String
|
|
908
936
|
expireDate: String
|
|
909
|
-
inviter:
|
|
937
|
+
inviter: UserInfo
|
|
910
938
|
teamDid: String
|
|
911
939
|
interfaceName: String
|
|
912
940
|
}
|
|
@@ -917,6 +945,11 @@ type Issuer {
|
|
|
917
945
|
pk: String
|
|
918
946
|
}
|
|
919
947
|
|
|
948
|
+
type KeyValue {
|
|
949
|
+
key: String
|
|
950
|
+
value: Any
|
|
951
|
+
}
|
|
952
|
+
|
|
920
953
|
type LatestBlockletVersion {
|
|
921
954
|
did: String
|
|
922
955
|
version: String
|
|
@@ -937,23 +970,6 @@ type MatchedSites {
|
|
|
937
970
|
domain: String
|
|
938
971
|
}
|
|
939
972
|
|
|
940
|
-
type MemberInfo {
|
|
941
|
-
did: String
|
|
942
|
-
pk: String
|
|
943
|
-
role: String
|
|
944
|
-
avatar: String
|
|
945
|
-
fullName: String
|
|
946
|
-
email: String
|
|
947
|
-
approved: Boolean
|
|
948
|
-
createdAt: String
|
|
949
|
-
updatedAt: String
|
|
950
|
-
locale: String
|
|
951
|
-
passports: [Passport!]
|
|
952
|
-
firstLoginAt: String
|
|
953
|
-
lastLoginAt: String
|
|
954
|
-
remark: String
|
|
955
|
-
}
|
|
956
|
-
|
|
957
973
|
type NodeEnvInfo {
|
|
958
974
|
ip: IPInfo
|
|
959
975
|
os: String
|
|
@@ -986,7 +1002,6 @@ type NodeState {
|
|
|
986
1002
|
initializedAt: String
|
|
987
1003
|
mode: String
|
|
988
1004
|
routing: NodeRouting
|
|
989
|
-
members: [MemberInfo!]
|
|
990
1005
|
environments: [ConfigEntry!]
|
|
991
1006
|
uptime: Float32
|
|
992
1007
|
autoUpgrade: Boolean
|
|
@@ -1107,6 +1122,8 @@ type ResponseBlockletMetaFromUrl {
|
|
|
1107
1122
|
isFree: Boolean
|
|
1108
1123
|
isInstalled: Boolean
|
|
1109
1124
|
isRunning: Boolean
|
|
1125
|
+
inStore: Boolean
|
|
1126
|
+
registryUrl: String
|
|
1110
1127
|
}
|
|
1111
1128
|
|
|
1112
1129
|
type ResponseCheckChildBlockletsForUpdates {
|
|
@@ -1252,6 +1269,11 @@ type ResponseGetSnapshotSites {
|
|
|
1252
1269
|
sites: [RoutingSite!]
|
|
1253
1270
|
}
|
|
1254
1271
|
|
|
1272
|
+
type ResponseGetUsersCountPerRole {
|
|
1273
|
+
code: StatusCode
|
|
1274
|
+
counts: [KeyValue!]
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1255
1277
|
type ResponseInstallFromVc {
|
|
1256
1278
|
code: StatusCode
|
|
1257
1279
|
blocklet: BlockletState
|
|
@@ -1331,12 +1353,13 @@ type ResponseUpgradeNodeVersion {
|
|
|
1331
1353
|
|
|
1332
1354
|
type ResponseUser {
|
|
1333
1355
|
code: StatusCode
|
|
1334
|
-
user:
|
|
1356
|
+
user: UserInfo
|
|
1335
1357
|
}
|
|
1336
1358
|
|
|
1337
1359
|
type ResponseUsers {
|
|
1338
1360
|
code: StatusCode
|
|
1339
|
-
users: [
|
|
1361
|
+
users: [UserInfo!]
|
|
1362
|
+
paging: Paging
|
|
1340
1363
|
}
|
|
1341
1364
|
|
|
1342
1365
|
type ResponseWebHooks {
|
|
@@ -1439,6 +1462,23 @@ type UpdateList {
|
|
|
1439
1462
|
meta: BlockletMeta
|
|
1440
1463
|
}
|
|
1441
1464
|
|
|
1465
|
+
type UserInfo {
|
|
1466
|
+
did: String
|
|
1467
|
+
pk: String
|
|
1468
|
+
role: String
|
|
1469
|
+
avatar: String
|
|
1470
|
+
fullName: String
|
|
1471
|
+
email: String
|
|
1472
|
+
approved: Boolean
|
|
1473
|
+
createdAt: String
|
|
1474
|
+
updatedAt: String
|
|
1475
|
+
locale: String
|
|
1476
|
+
passports: [Passport!]
|
|
1477
|
+
firstLoginAt: String
|
|
1478
|
+
lastLoginAt: String
|
|
1479
|
+
remark: String
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1442
1482
|
type WalletInfo {
|
|
1443
1483
|
did: String
|
|
1444
1484
|
pk: String
|
|
@@ -1540,6 +1580,7 @@ type Mutation {
|
|
|
1540
1580
|
configBlocklet(input: RequestConfigBlockletInput): ResponseConfigBlocklet
|
|
1541
1581
|
checkChildBlockletsForUpdates(input: RequestBlockletInput): ResponseCheckChildBlockletsForUpdates
|
|
1542
1582
|
updateChildBlocklets(input: RequestUpdateChildBlockletsInput): ResponseBlocklet
|
|
1583
|
+
configPublicToStore(input: RequestConfigPublicToStoreInput): ResponseBlocklet
|
|
1543
1584
|
updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
|
|
1544
1585
|
updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
|
|
1545
1586
|
upgradeNodeVersion: ResponseUpgradeNodeVersion
|
|
@@ -1624,8 +1665,9 @@ type Query {
|
|
|
1624
1665
|
getRoles(input: TeamInput): ResponseRoles
|
|
1625
1666
|
getPermissions(input: TeamInput): ResponsePermissions
|
|
1626
1667
|
getInvitations(input: TeamInput): ResponseGetInvitations
|
|
1627
|
-
getUsers(input:
|
|
1668
|
+
getUsers(input: RequestUsersInput): ResponseUsers
|
|
1628
1669
|
getUser(input: RequestTeamUserInput): ResponseUser
|
|
1670
|
+
getUsersCountPerRole(input: TeamInput): ResponseGetUsersCountPerRole
|
|
1629
1671
|
getOwner(input: TeamInput): ResponseUser
|
|
1630
1672
|
getPermissionsByRole(input: RequestTeamRoleInput): ResponsePermissions
|
|
1631
1673
|
getPassportIssuances(input: RequestGetPassportIssuancesInput): ResponseGetPassportIssuances
|
package/lib/schema.graphqls
CHANGED
|
@@ -59,23 +59,6 @@ input IssuerInput {
|
|
|
59
59
|
pk: String
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
input MemberInfoInput {
|
|
63
|
-
did: String
|
|
64
|
-
pk: String
|
|
65
|
-
role: String
|
|
66
|
-
avatar: String
|
|
67
|
-
fullName: String
|
|
68
|
-
email: String
|
|
69
|
-
approved: Boolean
|
|
70
|
-
createdAt: String
|
|
71
|
-
updatedAt: String
|
|
72
|
-
locale: String
|
|
73
|
-
passports: [PassportInput!]
|
|
74
|
-
firstLoginAt: String
|
|
75
|
-
lastLoginAt: String
|
|
76
|
-
remark: String
|
|
77
|
-
}
|
|
78
|
-
|
|
79
62
|
input NodeInfoInput {
|
|
80
63
|
name: String
|
|
81
64
|
description: String
|
|
@@ -174,6 +157,11 @@ input RequestConfigPassportIssuanceInput {
|
|
|
174
157
|
enable: Boolean
|
|
175
158
|
}
|
|
176
159
|
|
|
160
|
+
input RequestConfigPublicToStoreInput {
|
|
161
|
+
did: String
|
|
162
|
+
publicToStore: Boolean
|
|
163
|
+
}
|
|
164
|
+
|
|
177
165
|
input RequestConfigTrustedPassportsInput {
|
|
178
166
|
teamDid: String
|
|
179
167
|
trustedPassports: [TrustedPassportInput!]
|
|
@@ -336,6 +324,8 @@ input RequestInstallComponentInput {
|
|
|
336
324
|
deleteSet: [String!]
|
|
337
325
|
name: String
|
|
338
326
|
title: String
|
|
327
|
+
configs: [ConfigEntryInput!]
|
|
328
|
+
downloadToken: String
|
|
339
329
|
}
|
|
340
330
|
|
|
341
331
|
input RequestInstallFromVcInput {
|
|
@@ -418,7 +408,7 @@ input RequestTeamRoleInput {
|
|
|
418
408
|
|
|
419
409
|
input RequestTeamUserInput {
|
|
420
410
|
teamDid: String
|
|
421
|
-
user:
|
|
411
|
+
user: UserInfoInput
|
|
422
412
|
}
|
|
423
413
|
|
|
424
414
|
input RequestUpdateAccessKeyInput {
|
|
@@ -463,6 +453,13 @@ input RequestUpgradeBlockletInput {
|
|
|
463
453
|
registryUrl: String
|
|
464
454
|
}
|
|
465
455
|
|
|
456
|
+
input RequestUsersInput {
|
|
457
|
+
teamDid: String
|
|
458
|
+
query: UserQueryInput
|
|
459
|
+
sort: UserSortInput
|
|
460
|
+
paging: PagingInput
|
|
461
|
+
}
|
|
462
|
+
|
|
466
463
|
input RequestVersionedBlockletInput {
|
|
467
464
|
did: String
|
|
468
465
|
url: String
|
|
@@ -472,6 +469,7 @@ input RequestVersionedBlockletInput {
|
|
|
472
469
|
title: String
|
|
473
470
|
description: String
|
|
474
471
|
startImmediately: Boolean
|
|
472
|
+
downloadToken: String
|
|
475
473
|
}
|
|
476
474
|
|
|
477
475
|
input RequsetCreateInvitationInput {
|
|
@@ -551,6 +549,35 @@ input TrustedPassportMappingToInput {
|
|
|
551
549
|
role: String
|
|
552
550
|
}
|
|
553
551
|
|
|
552
|
+
input UserInfoInput {
|
|
553
|
+
did: String
|
|
554
|
+
pk: String
|
|
555
|
+
role: String
|
|
556
|
+
avatar: String
|
|
557
|
+
fullName: String
|
|
558
|
+
email: String
|
|
559
|
+
approved: Boolean
|
|
560
|
+
createdAt: String
|
|
561
|
+
updatedAt: String
|
|
562
|
+
locale: String
|
|
563
|
+
passports: [PassportInput!]
|
|
564
|
+
firstLoginAt: String
|
|
565
|
+
lastLoginAt: String
|
|
566
|
+
remark: String
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
input UserQueryInput {
|
|
570
|
+
role: String
|
|
571
|
+
approved: Boolean
|
|
572
|
+
search: String
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
input UserSortInput {
|
|
576
|
+
updatedAt: Int32
|
|
577
|
+
createdAt: Int32
|
|
578
|
+
lastLoginAt: Int32
|
|
579
|
+
}
|
|
580
|
+
|
|
554
581
|
input WebHookParamInput {
|
|
555
582
|
name: String
|
|
556
583
|
description: String
|
|
@@ -735,6 +762,7 @@ type BlockletSettings {
|
|
|
735
762
|
whoCanAccess: String
|
|
736
763
|
owner: WalletInfo
|
|
737
764
|
children: [DeletedBlockletState!]
|
|
765
|
+
publicToStore: Boolean
|
|
738
766
|
}
|
|
739
767
|
|
|
740
768
|
type BlockletState {
|
|
@@ -906,7 +934,7 @@ type InviteInfo {
|
|
|
906
934
|
role: String
|
|
907
935
|
remark: String
|
|
908
936
|
expireDate: String
|
|
909
|
-
inviter:
|
|
937
|
+
inviter: UserInfo
|
|
910
938
|
teamDid: String
|
|
911
939
|
interfaceName: String
|
|
912
940
|
}
|
|
@@ -917,6 +945,11 @@ type Issuer {
|
|
|
917
945
|
pk: String
|
|
918
946
|
}
|
|
919
947
|
|
|
948
|
+
type KeyValue {
|
|
949
|
+
key: String
|
|
950
|
+
value: Any
|
|
951
|
+
}
|
|
952
|
+
|
|
920
953
|
type LatestBlockletVersion {
|
|
921
954
|
did: String
|
|
922
955
|
version: String
|
|
@@ -937,23 +970,6 @@ type MatchedSites {
|
|
|
937
970
|
domain: String
|
|
938
971
|
}
|
|
939
972
|
|
|
940
|
-
type MemberInfo {
|
|
941
|
-
did: String
|
|
942
|
-
pk: String
|
|
943
|
-
role: String
|
|
944
|
-
avatar: String
|
|
945
|
-
fullName: String
|
|
946
|
-
email: String
|
|
947
|
-
approved: Boolean
|
|
948
|
-
createdAt: String
|
|
949
|
-
updatedAt: String
|
|
950
|
-
locale: String
|
|
951
|
-
passports: [Passport!]
|
|
952
|
-
firstLoginAt: String
|
|
953
|
-
lastLoginAt: String
|
|
954
|
-
remark: String
|
|
955
|
-
}
|
|
956
|
-
|
|
957
973
|
type NodeEnvInfo {
|
|
958
974
|
ip: IPInfo
|
|
959
975
|
os: String
|
|
@@ -986,7 +1002,6 @@ type NodeState {
|
|
|
986
1002
|
initializedAt: String
|
|
987
1003
|
mode: String
|
|
988
1004
|
routing: NodeRouting
|
|
989
|
-
members: [MemberInfo!]
|
|
990
1005
|
environments: [ConfigEntry!]
|
|
991
1006
|
uptime: Float32
|
|
992
1007
|
autoUpgrade: Boolean
|
|
@@ -1107,6 +1122,8 @@ type ResponseBlockletMetaFromUrl {
|
|
|
1107
1122
|
isFree: Boolean
|
|
1108
1123
|
isInstalled: Boolean
|
|
1109
1124
|
isRunning: Boolean
|
|
1125
|
+
inStore: Boolean
|
|
1126
|
+
registryUrl: String
|
|
1110
1127
|
}
|
|
1111
1128
|
|
|
1112
1129
|
type ResponseCheckChildBlockletsForUpdates {
|
|
@@ -1252,6 +1269,11 @@ type ResponseGetSnapshotSites {
|
|
|
1252
1269
|
sites: [RoutingSite!]
|
|
1253
1270
|
}
|
|
1254
1271
|
|
|
1272
|
+
type ResponseGetUsersCountPerRole {
|
|
1273
|
+
code: StatusCode
|
|
1274
|
+
counts: [KeyValue!]
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1255
1277
|
type ResponseInstallFromVc {
|
|
1256
1278
|
code: StatusCode
|
|
1257
1279
|
blocklet: BlockletState
|
|
@@ -1331,12 +1353,13 @@ type ResponseUpgradeNodeVersion {
|
|
|
1331
1353
|
|
|
1332
1354
|
type ResponseUser {
|
|
1333
1355
|
code: StatusCode
|
|
1334
|
-
user:
|
|
1356
|
+
user: UserInfo
|
|
1335
1357
|
}
|
|
1336
1358
|
|
|
1337
1359
|
type ResponseUsers {
|
|
1338
1360
|
code: StatusCode
|
|
1339
|
-
users: [
|
|
1361
|
+
users: [UserInfo!]
|
|
1362
|
+
paging: Paging
|
|
1340
1363
|
}
|
|
1341
1364
|
|
|
1342
1365
|
type ResponseWebHooks {
|
|
@@ -1439,6 +1462,23 @@ type UpdateList {
|
|
|
1439
1462
|
meta: BlockletMeta
|
|
1440
1463
|
}
|
|
1441
1464
|
|
|
1465
|
+
type UserInfo {
|
|
1466
|
+
did: String
|
|
1467
|
+
pk: String
|
|
1468
|
+
role: String
|
|
1469
|
+
avatar: String
|
|
1470
|
+
fullName: String
|
|
1471
|
+
email: String
|
|
1472
|
+
approved: Boolean
|
|
1473
|
+
createdAt: String
|
|
1474
|
+
updatedAt: String
|
|
1475
|
+
locale: String
|
|
1476
|
+
passports: [Passport!]
|
|
1477
|
+
firstLoginAt: String
|
|
1478
|
+
lastLoginAt: String
|
|
1479
|
+
remark: String
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1442
1482
|
type WalletInfo {
|
|
1443
1483
|
did: String
|
|
1444
1484
|
pk: String
|
|
@@ -1542,6 +1582,7 @@ type Mutation {
|
|
|
1542
1582
|
configBlocklet(input: RequestConfigBlockletInput): ResponseConfigBlocklet
|
|
1543
1583
|
checkChildBlockletsForUpdates(input: RequestBlockletInput): ResponseCheckChildBlockletsForUpdates
|
|
1544
1584
|
updateChildBlocklets(input: RequestUpdateChildBlockletsInput): ResponseBlocklet
|
|
1585
|
+
configPublicToStore(input: RequestConfigPublicToStoreInput): ResponseBlocklet
|
|
1545
1586
|
updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
|
|
1546
1587
|
updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
|
|
1547
1588
|
upgradeNodeVersion: ResponseUpgradeNodeVersion
|
|
@@ -1626,8 +1667,9 @@ type Query {
|
|
|
1626
1667
|
getRoles(input: TeamInput): ResponseRoles
|
|
1627
1668
|
getPermissions(input: TeamInput): ResponsePermissions
|
|
1628
1669
|
getInvitations(input: TeamInput): ResponseGetInvitations
|
|
1629
|
-
getUsers(input:
|
|
1670
|
+
getUsers(input: RequestUsersInput): ResponseUsers
|
|
1630
1671
|
getUser(input: RequestTeamUserInput): ResponseUser
|
|
1672
|
+
getUsersCountPerRole(input: TeamInput): ResponseGetUsersCountPerRole
|
|
1631
1673
|
getOwner(input: TeamInput): ResponseUser
|
|
1632
1674
|
getPermissionsByRole(input: RequestTeamRoleInput): ResponsePermissions
|
|
1633
1675
|
getPassportIssuances(input: RequestGetPassportIssuancesInput): ResponseGetPassportIssuances
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.8.1",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "c970b8a386bebd7fe6dbc8b8eedf8bd8328b4bb5"
|
|
17
17
|
}
|