@abtnode/schema 1.7.27 → 1.8.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.
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 Go
10
+ ### Option 1. Build schema with Docker
10
11
 
11
- #### Install gnu-sed
12
+ Requirements:
12
13
 
13
- - Mac: brew install gnu-sed
14
- - Other platform: https://www.gnu.org/software/sed/
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
- export GOROOT=/usr/local/Cellar/go/1.15.5/libexec // you local go path
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
- PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
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
@@ -157,6 +157,11 @@ input RequestConfigPassportIssuanceInput {
157
157
  enable: Boolean
158
158
  }
159
159
 
160
+ input RequestConfigPublicToStoreInput {
161
+ did: String
162
+ publicToStore: Boolean
163
+ }
164
+
160
165
  input RequestConfigTrustedPassportsInput {
161
166
  teamDid: String
162
167
  trustedPassports: [TrustedPassportInput!]
@@ -464,6 +469,7 @@ input RequestVersionedBlockletInput {
464
469
  title: String
465
470
  description: String
466
471
  startImmediately: Boolean
472
+ downloadToken: String
467
473
  }
468
474
 
469
475
  input RequsetCreateInvitationInput {
@@ -756,6 +762,7 @@ type BlockletSettings {
756
762
  whoCanAccess: String
757
763
  owner: WalletInfo
758
764
  children: [DeletedBlockletState!]
765
+ publicToStore: Boolean
759
766
  }
760
767
 
761
768
  type BlockletState {
@@ -1115,6 +1122,8 @@ type ResponseBlockletMetaFromUrl {
1115
1122
  isFree: Boolean
1116
1123
  isInstalled: Boolean
1117
1124
  isRunning: Boolean
1125
+ inStore: Boolean
1126
+ registryUrl: String
1118
1127
  }
1119
1128
 
1120
1129
  type ResponseCheckChildBlockletsForUpdates {
@@ -1571,6 +1580,7 @@ type Mutation {
1571
1580
  configBlocklet(input: RequestConfigBlockletInput): ResponseConfigBlocklet
1572
1581
  checkChildBlockletsForUpdates(input: RequestBlockletInput): ResponseCheckChildBlockletsForUpdates
1573
1582
  updateChildBlocklets(input: RequestUpdateChildBlockletsInput): ResponseBlocklet
1583
+ configPublicToStore(input: RequestConfigPublicToStoreInput): ResponseBlocklet
1574
1584
  updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
1575
1585
  updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
1576
1586
  upgradeNodeVersion: ResponseUpgradeNodeVersion
@@ -157,6 +157,11 @@ input RequestConfigPassportIssuanceInput {
157
157
  enable: Boolean
158
158
  }
159
159
 
160
+ input RequestConfigPublicToStoreInput {
161
+ did: String
162
+ publicToStore: Boolean
163
+ }
164
+
160
165
  input RequestConfigTrustedPassportsInput {
161
166
  teamDid: String
162
167
  trustedPassports: [TrustedPassportInput!]
@@ -464,6 +469,7 @@ input RequestVersionedBlockletInput {
464
469
  title: String
465
470
  description: String
466
471
  startImmediately: Boolean
472
+ downloadToken: String
467
473
  }
468
474
 
469
475
  input RequsetCreateInvitationInput {
@@ -756,6 +762,7 @@ type BlockletSettings {
756
762
  whoCanAccess: String
757
763
  owner: WalletInfo
758
764
  children: [DeletedBlockletState!]
765
+ publicToStore: Boolean
759
766
  }
760
767
 
761
768
  type BlockletState {
@@ -1115,6 +1122,8 @@ type ResponseBlockletMetaFromUrl {
1115
1122
  isFree: Boolean
1116
1123
  isInstalled: Boolean
1117
1124
  isRunning: Boolean
1125
+ inStore: Boolean
1126
+ registryUrl: String
1118
1127
  }
1119
1128
 
1120
1129
  type ResponseCheckChildBlockletsForUpdates {
@@ -1573,6 +1582,7 @@ type Mutation {
1573
1582
  configBlocklet(input: RequestConfigBlockletInput): ResponseConfigBlocklet
1574
1583
  checkChildBlockletsForUpdates(input: RequestBlockletInput): ResponseCheckChildBlockletsForUpdates
1575
1584
  updateChildBlocklets(input: RequestUpdateChildBlockletsInput): ResponseBlocklet
1585
+ configPublicToStore(input: RequestConfigPublicToStoreInput): ResponseBlocklet
1576
1586
  updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
1577
1587
  updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
1578
1588
  upgradeNodeVersion: ResponseUpgradeNodeVersion
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.27",
6
+ "version": "1.8.2",
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": "81a5492df66389b0aede13f033d1e493450833bc"
16
+ "gitHead": "fcbe3c97f3825c507ee16714f49bbf8f58c5b59f"
17
17
  }