@abtnode/schema 1.16.21-beta-420f105a → 1.16.21-beta-93c6e42b
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 +17 -0
- package/lib/index.js +29 -0
- package/lib/schema.graphqls +29 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -85,6 +85,8 @@ Make sure you're in the `core/schema` directory, run `make build`
|
|
|
85
85
|
|
|
86
86
|
## How To Update Schema
|
|
87
87
|
|
|
88
|
+
### Option 1: Manually execute step by step
|
|
89
|
+
|
|
88
90
|
### Prerequisites
|
|
89
91
|
|
|
90
92
|
Ensure that core/schema has been built, please see [here](#build-schema).
|
|
@@ -110,3 +112,18 @@ npm run upgrade
|
|
|
110
112
|
```
|
|
111
113
|
|
|
112
114
|
### 3. finish the update
|
|
115
|
+
|
|
116
|
+
### Option 2: Use command line
|
|
117
|
+
|
|
118
|
+
In the root directory of the project, run:
|
|
119
|
+
|
|
120
|
+
```shell
|
|
121
|
+
npm run update:schema
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The execution steps of this command are as follows:
|
|
125
|
+
|
|
126
|
+
- Step 1: Execute 'make build' in the 'core/schema' directory
|
|
127
|
+
- Step 2: Execute 'npm run open:gql' in the 'core/webapp' directory
|
|
128
|
+
- Step 3: Execute 'npm run upgrade' in the 'core/client' directory
|
|
129
|
+
- Step 4: Terminate the process started in Step 2
|
package/lib/index.js
CHANGED
|
@@ -19,6 +19,10 @@ input AutoBackupInput {
|
|
|
19
19
|
enabled: Boolean
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
input AutoCheckUpdateInput {
|
|
23
|
+
enabled: Boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
input BlockletStoreInput {
|
|
23
27
|
name: String
|
|
24
28
|
description: String
|
|
@@ -424,6 +428,10 @@ input RequestGetAutoBackupInput {
|
|
|
424
428
|
did: String
|
|
425
429
|
}
|
|
426
430
|
|
|
431
|
+
input RequestGetAutoCheckUpdateInput {
|
|
432
|
+
did: String
|
|
433
|
+
}
|
|
434
|
+
|
|
427
435
|
input RequestGetBlockletBackupsInput {
|
|
428
436
|
did: String
|
|
429
437
|
}
|
|
@@ -693,6 +701,11 @@ input RequestUpdateAutoBackupInput {
|
|
|
693
701
|
autoBackup: AutoBackupInput
|
|
694
702
|
}
|
|
695
703
|
|
|
704
|
+
input RequestUpdateAutoCheckUpdateInput {
|
|
705
|
+
did: String
|
|
706
|
+
autoCheckUpdate: AutoCheckUpdateInput
|
|
707
|
+
}
|
|
708
|
+
|
|
696
709
|
input RequestUpdateBlockletSpaceGatewayInput {
|
|
697
710
|
did: String
|
|
698
711
|
where: SpaceGatewayInput
|
|
@@ -991,6 +1004,10 @@ type AutoBackup {
|
|
|
991
1004
|
enabled: Boolean
|
|
992
1005
|
}
|
|
993
1006
|
|
|
1007
|
+
type AutoCheckUpdate {
|
|
1008
|
+
enabled: Boolean
|
|
1009
|
+
}
|
|
1010
|
+
|
|
994
1011
|
type Backup {
|
|
995
1012
|
appPid: String
|
|
996
1013
|
userDid: String
|
|
@@ -1015,8 +1032,10 @@ type BlockletBackupState {
|
|
|
1015
1032
|
|
|
1016
1033
|
type BlockletCapabilities {
|
|
1017
1034
|
clusterMode: Boolean
|
|
1035
|
+
component: Boolean
|
|
1018
1036
|
navigation: Boolean
|
|
1019
1037
|
didSpace: String
|
|
1038
|
+
resourceExportApi: String
|
|
1020
1039
|
}
|
|
1021
1040
|
|
|
1022
1041
|
type BlockletController {
|
|
@@ -1098,6 +1117,7 @@ type BlockletMeta {
|
|
|
1098
1117
|
bundleDid: String
|
|
1099
1118
|
bundleName: String
|
|
1100
1119
|
navigation: [Any!]
|
|
1120
|
+
resources: [String!]
|
|
1101
1121
|
resource: BlockletResource
|
|
1102
1122
|
}
|
|
1103
1123
|
|
|
@@ -1216,6 +1236,7 @@ type BlockletState {
|
|
|
1216
1236
|
trustedPassports: [TrustedPassport!]
|
|
1217
1237
|
trustedFactories: [TrustedFactory!]
|
|
1218
1238
|
enablePassportIssuance: Boolean
|
|
1239
|
+
dynamic: Boolean
|
|
1219
1240
|
mountPoint: String
|
|
1220
1241
|
settings: BlockletSettings
|
|
1221
1242
|
appDid: String
|
|
@@ -1304,6 +1325,7 @@ type ComponentState {
|
|
|
1304
1325
|
mode: String
|
|
1305
1326
|
ports: Any
|
|
1306
1327
|
children: [ComponentState!]
|
|
1328
|
+
dynamic: Boolean
|
|
1307
1329
|
mountPoint: String
|
|
1308
1330
|
dependents: [Dependent!]
|
|
1309
1331
|
}
|
|
@@ -1768,6 +1790,11 @@ type ResponseGetAutoBackup {
|
|
|
1768
1790
|
autoBackup: AutoBackup
|
|
1769
1791
|
}
|
|
1770
1792
|
|
|
1793
|
+
type ResponseGetAutoCheckUpdate {
|
|
1794
|
+
code: StatusCode
|
|
1795
|
+
autoCheckUpdate: AutoCheckUpdate
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1771
1798
|
type ResponseGetBlockletBackups {
|
|
1772
1799
|
code: StatusCode
|
|
1773
1800
|
backups: [Backup!]
|
|
@@ -2336,6 +2363,7 @@ type Mutation {
|
|
|
2336
2363
|
deleteBlockletSpaceGateway(input: RequestDeleteBlockletSpaceGatewayInput): GeneralResponse
|
|
2337
2364
|
updateBlockletSpaceGateway(input: RequestUpdateBlockletSpaceGatewayInput): GeneralResponse
|
|
2338
2365
|
updateAutoBackup(input: RequestUpdateAutoBackupInput): GeneralResponse
|
|
2366
|
+
updateAutoCheckUpdate(input: RequestUpdateAutoCheckUpdateInput): GeneralResponse
|
|
2339
2367
|
updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
|
|
2340
2368
|
updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
|
|
2341
2369
|
upgradeNodeVersion: ResponseUpgradeNodeVersion
|
|
@@ -2455,6 +2483,7 @@ type Query {
|
|
|
2455
2483
|
getBlockletBackups(input: RequestGetBlockletBackupsInput): ResponseGetBlockletBackups
|
|
2456
2484
|
getBlockletSpaceGateways(input: RequestBlockletInput): ResponseGetBlockletSpaceGateways
|
|
2457
2485
|
getAutoBackup(input: RequestGetAutoBackupInput): ResponseGetAutoBackup
|
|
2486
|
+
getAutoCheckUpdate(input: RequestGetAutoCheckUpdateInput): ResponseGetAutoCheckUpdate
|
|
2458
2487
|
getTrafficInsights(input: RequestGetTrafficInsightsInput): ResponseGetTrafficInsights
|
|
2459
2488
|
getProjects(input: RequestGetProjectsInput): ResponseGetProjects
|
|
2460
2489
|
getProject(input: RequestProjectInput): ResponseGetProject
|
package/lib/schema.graphqls
CHANGED
|
@@ -19,6 +19,10 @@ input AutoBackupInput {
|
|
|
19
19
|
enabled: Boolean
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
input AutoCheckUpdateInput {
|
|
23
|
+
enabled: Boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
input BlockletStoreInput {
|
|
23
27
|
name: String
|
|
24
28
|
description: String
|
|
@@ -424,6 +428,10 @@ input RequestGetAutoBackupInput {
|
|
|
424
428
|
did: String
|
|
425
429
|
}
|
|
426
430
|
|
|
431
|
+
input RequestGetAutoCheckUpdateInput {
|
|
432
|
+
did: String
|
|
433
|
+
}
|
|
434
|
+
|
|
427
435
|
input RequestGetBlockletBackupsInput {
|
|
428
436
|
did: String
|
|
429
437
|
}
|
|
@@ -693,6 +701,11 @@ input RequestUpdateAutoBackupInput {
|
|
|
693
701
|
autoBackup: AutoBackupInput
|
|
694
702
|
}
|
|
695
703
|
|
|
704
|
+
input RequestUpdateAutoCheckUpdateInput {
|
|
705
|
+
did: String
|
|
706
|
+
autoCheckUpdate: AutoCheckUpdateInput
|
|
707
|
+
}
|
|
708
|
+
|
|
696
709
|
input RequestUpdateBlockletSpaceGatewayInput {
|
|
697
710
|
did: String
|
|
698
711
|
where: SpaceGatewayInput
|
|
@@ -991,6 +1004,10 @@ type AutoBackup {
|
|
|
991
1004
|
enabled: Boolean
|
|
992
1005
|
}
|
|
993
1006
|
|
|
1007
|
+
type AutoCheckUpdate {
|
|
1008
|
+
enabled: Boolean
|
|
1009
|
+
}
|
|
1010
|
+
|
|
994
1011
|
type Backup {
|
|
995
1012
|
appPid: String
|
|
996
1013
|
userDid: String
|
|
@@ -1015,8 +1032,10 @@ type BlockletBackupState {
|
|
|
1015
1032
|
|
|
1016
1033
|
type BlockletCapabilities {
|
|
1017
1034
|
clusterMode: Boolean
|
|
1035
|
+
component: Boolean
|
|
1018
1036
|
navigation: Boolean
|
|
1019
1037
|
didSpace: String
|
|
1038
|
+
resourceExportApi: String
|
|
1020
1039
|
}
|
|
1021
1040
|
|
|
1022
1041
|
type BlockletController {
|
|
@@ -1098,6 +1117,7 @@ type BlockletMeta {
|
|
|
1098
1117
|
bundleDid: String
|
|
1099
1118
|
bundleName: String
|
|
1100
1119
|
navigation: [Any!]
|
|
1120
|
+
resources: [String!]
|
|
1101
1121
|
resource: BlockletResource
|
|
1102
1122
|
}
|
|
1103
1123
|
|
|
@@ -1216,6 +1236,7 @@ type BlockletState {
|
|
|
1216
1236
|
trustedPassports: [TrustedPassport!]
|
|
1217
1237
|
trustedFactories: [TrustedFactory!]
|
|
1218
1238
|
enablePassportIssuance: Boolean
|
|
1239
|
+
dynamic: Boolean
|
|
1219
1240
|
mountPoint: String
|
|
1220
1241
|
settings: BlockletSettings
|
|
1221
1242
|
appDid: String
|
|
@@ -1304,6 +1325,7 @@ type ComponentState {
|
|
|
1304
1325
|
mode: String
|
|
1305
1326
|
ports: Any
|
|
1306
1327
|
children: [ComponentState!]
|
|
1328
|
+
dynamic: Boolean
|
|
1307
1329
|
mountPoint: String
|
|
1308
1330
|
dependents: [Dependent!]
|
|
1309
1331
|
}
|
|
@@ -1768,6 +1790,11 @@ type ResponseGetAutoBackup {
|
|
|
1768
1790
|
autoBackup: AutoBackup
|
|
1769
1791
|
}
|
|
1770
1792
|
|
|
1793
|
+
type ResponseGetAutoCheckUpdate {
|
|
1794
|
+
code: StatusCode
|
|
1795
|
+
autoCheckUpdate: AutoCheckUpdate
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1771
1798
|
type ResponseGetBlockletBackups {
|
|
1772
1799
|
code: StatusCode
|
|
1773
1800
|
backups: [Backup!]
|
|
@@ -2338,6 +2365,7 @@ type Mutation {
|
|
|
2338
2365
|
deleteBlockletSpaceGateway(input: RequestDeleteBlockletSpaceGatewayInput): GeneralResponse
|
|
2339
2366
|
updateBlockletSpaceGateway(input: RequestUpdateBlockletSpaceGatewayInput): GeneralResponse
|
|
2340
2367
|
updateAutoBackup(input: RequestUpdateAutoBackupInput): GeneralResponse
|
|
2368
|
+
updateAutoCheckUpdate(input: RequestUpdateAutoCheckUpdateInput): GeneralResponse
|
|
2341
2369
|
updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
|
|
2342
2370
|
updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
|
|
2343
2371
|
upgradeNodeVersion: ResponseUpgradeNodeVersion
|
|
@@ -2457,6 +2485,7 @@ type Query {
|
|
|
2457
2485
|
getBlockletBackups(input: RequestGetBlockletBackupsInput): ResponseGetBlockletBackups
|
|
2458
2486
|
getBlockletSpaceGateways(input: RequestBlockletInput): ResponseGetBlockletSpaceGateways
|
|
2459
2487
|
getAutoBackup(input: RequestGetAutoBackupInput): ResponseGetAutoBackup
|
|
2488
|
+
getAutoCheckUpdate(input: RequestGetAutoCheckUpdateInput): ResponseGetAutoCheckUpdate
|
|
2460
2489
|
getTrafficInsights(input: RequestGetTrafficInsightsInput): ResponseGetTrafficInsights
|
|
2461
2490
|
getProjects(input: RequestGetProjectsInput): ResponseGetProjects
|
|
2462
2491
|
getProject(input: RequestProjectInput): ResponseGetProject
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.21-beta-
|
|
6
|
+
"version": "1.16.21-beta-93c6e42b",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "80619ce49f5a9224d3d817e5faea4422072b0553",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@wangshijun/ts-protoc-gen": "^0.16.2"
|
|
19
19
|
}
|