@abtnode/schema 1.7.6 → 1.7.9

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
@@ -4,17 +4,21 @@ Defines data structure for ABT Node backend API, and maintains schema for GQL en
4
4
 
5
5
  ## Development
6
6
 
7
- ### Install gnu-sed
7
+ You can choose one of the following two ways to build schema.
8
+
9
+ ### Option 1. Build schema with Go
10
+
11
+ #### Install gnu-sed
8
12
 
9
13
  - Mac: brew install gnu-sed
10
14
  - Other platform: https://www.gnu.org/software/sed/
11
15
 
12
- ### Install protobuf
16
+ #### Install protobuf
13
17
 
14
18
  - Mac: brew install protobuf
15
19
  - Other platform: https://developers.google.com/protocol-buffers/docs/downloads
16
20
 
17
- ### Add to `~/.profile`
21
+ #### Add to `~/.profile`
18
22
 
19
23
  ```shell
20
24
  export GO111MODULE=on
@@ -29,16 +33,25 @@ PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
29
33
 
30
34
  source ~/.profile
31
35
 
32
- ### Install other dependencies
36
+ #### Install other dependencies
33
37
 
34
38
  Run `make init`
35
39
 
36
40
  > If there is a network problem, try to change golang registry by https://goproxy.cn/
37
41
 
38
- ### Build Schema
42
+ #### Build Schema
39
43
 
40
44
  Run `make build`
41
45
 
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
+
42
55
  ## How To Update Schema
43
56
 
44
57
  ### 1. update core/schema proto
package/lib/index.js CHANGED
@@ -460,7 +460,6 @@ input RequsetCreateInvitationInput {
460
460
  teamDid: String
461
461
  role: String
462
462
  remark: String
463
- interfaceName: String
464
463
  }
465
464
 
466
465
  input RequsetDeleteInvitationInput {
@@ -681,6 +680,7 @@ type BlockletSettings {
681
680
  enablePassportIssuance: Boolean
682
681
  trustedPassports: [TrustedPassport!]
683
682
  whoCanAccess: String
683
+ owner: WalletInfo
684
684
  }
685
685
 
686
686
  type BlockletState {
@@ -803,9 +803,9 @@ type Environment {
803
803
  shared: Boolean
804
804
  }
805
805
 
806
- type GasFee {
806
+ type Fuel {
807
807
  endpoint: String
808
- symbol: String
808
+ address: String
809
809
  value: String
810
810
  reason: String
811
811
  }
@@ -982,7 +982,7 @@ type Requirement {
982
982
  server: String
983
983
  os: Any
984
984
  cpu: Any
985
- gasFee: GasFee
985
+ fuels: [Fuel!]
986
986
  }
987
987
 
988
988
  type ResponseAccessKeys {
@@ -1508,6 +1508,7 @@ type Query {
1508
1508
  getInvitations(input: TeamInput): ResponseGetInvitations
1509
1509
  getUsers(input: TeamInput): ResponseUsers
1510
1510
  getUser(input: RequestTeamUserInput): ResponseUser
1511
+ getOwner(input: TeamInput): ResponseUser
1511
1512
  getPermissionsByRole(input: RequestTeamRoleInput): ResponsePermissions
1512
1513
  getPassportIssuances(input: RequestGetPassportIssuancesInput): ResponseGetPassportIssuances
1513
1514
  }`;
@@ -460,7 +460,6 @@ input RequsetCreateInvitationInput {
460
460
  teamDid: String
461
461
  role: String
462
462
  remark: String
463
- interfaceName: String
464
463
  }
465
464
 
466
465
  input RequsetDeleteInvitationInput {
@@ -681,6 +680,7 @@ type BlockletSettings {
681
680
  enablePassportIssuance: Boolean
682
681
  trustedPassports: [TrustedPassport!]
683
682
  whoCanAccess: String
683
+ owner: WalletInfo
684
684
  }
685
685
 
686
686
  type BlockletState {
@@ -803,9 +803,9 @@ type Environment {
803
803
  shared: Boolean
804
804
  }
805
805
 
806
- type GasFee {
806
+ type Fuel {
807
807
  endpoint: String
808
- symbol: String
808
+ address: String
809
809
  value: String
810
810
  reason: String
811
811
  }
@@ -982,7 +982,7 @@ type Requirement {
982
982
  server: String
983
983
  os: Any
984
984
  cpu: Any
985
- gasFee: GasFee
985
+ fuels: [Fuel!]
986
986
  }
987
987
 
988
988
  type ResponseAccessKeys {
@@ -1510,6 +1510,7 @@ type Query {
1510
1510
  getInvitations(input: TeamInput): ResponseGetInvitations
1511
1511
  getUsers(input: TeamInput): ResponseUsers
1512
1512
  getUser(input: RequestTeamUserInput): ResponseUser
1513
+ getOwner(input: TeamInput): ResponseUser
1513
1514
  getPermissionsByRole(input: RequestTeamRoleInput): ResponsePermissions
1514
1515
  getPassportIssuances(input: RequestGetPassportIssuancesInput): ResponseGetPassportIssuances
1515
1516
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.6",
6
+ "version": "1.7.9",
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": "47a9dbd6ea74419ff586336824ebb9b2fe7694aa"
16
+ "gitHead": "285f4fedd41fcb8e1814ce5d8250ac10616e67e0"
17
17
  }