@abtnode/schema 1.16.7 → 1.16.8-beta-0c0c5eb2

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Defines data structure for ABT Node backend API, and maintains schema for GQL endpoint.
4
4
 
5
- ## Development
5
+ ## Build schema<a name="build-schema"></a>
6
6
 
7
7
  You can choose one of the following two ways to build schema.
8
8
  It is recommended to build with Docker.
@@ -85,23 +85,23 @@ Make sure you're in the `core/schema` directory, run `make build`
85
85
 
86
86
  ## How To Update Schema
87
87
 
88
- ### 1. update core/schema proto
88
+ ### Prerequisites
89
89
 
90
- After update the schema proto, run `make build` get the latest schema.
90
+ Ensure that core/schema has been built, please see [here](#build-schema).
91
91
 
92
92
  > If you are using mac, you may need replace the `sed` command with `gsed`
93
93
 
94
- ### 2. go to core/webapp start a demo endpoint
94
+ ### 1. go to core/webapp start a demo endpoint
95
95
 
96
96
  just run:
97
97
 
98
98
  ```shell
99
- node tools/start-upgrade-server.js
99
+ npm run open:gql
100
100
  ```
101
101
 
102
102
  > should make sure the DB Proxy is running, if not, run `yarn start` in a new terminal
103
103
 
104
- ### 3. go to core/client do finally update
104
+ ### 2. go to core/client do finally update
105
105
 
106
106
  just run:
107
107
 
@@ -109,4 +109,4 @@ just run:
109
109
  npm run upgrade
110
110
  ```
111
111
 
112
- ### 4. finish the update
112
+ ### 3. finish the update
package/lib/index.js CHANGED
@@ -116,6 +116,11 @@ input PermissionInput {
116
116
  isProtected: Boolean
117
117
  }
118
118
 
119
+ input RequestAddBlockletSpaceGatewayInput {
120
+ did: String
121
+ spaceGateway: SpaceGatewayInput
122
+ }
123
+
119
124
  input RequestAddDomainAliasInput {
120
125
  id: String
121
126
  domainAlias: String
@@ -283,6 +288,11 @@ input RequestDeleteBlockletInput {
283
288
  keepData: Boolean
284
289
  }
285
290
 
291
+ input RequestDeleteBlockletSpaceGatewayInput {
292
+ did: String
293
+ url: String
294
+ }
295
+
286
296
  input RequestDeleteComponentInput {
287
297
  did: String
288
298
  rootDid: String
@@ -353,6 +363,10 @@ input RequestGetAuditLogsInput {
353
363
  category: String
354
364
  }
355
365
 
366
+ input RequestGetBlockletBackupsInput {
367
+ did: String
368
+ }
369
+
356
370
  input RequestGetBlockletsInput {
357
371
  useCache: Boolean
358
372
  query: BlockletQueryInput
@@ -518,6 +532,12 @@ input RequestUpdateAccessKeyInput {
518
532
  passport: String
519
533
  }
520
534
 
535
+ input RequestUpdateBlockletSpaceGatewayInput {
536
+ did: String
537
+ where: SpaceGatewayInput
538
+ spaceGateway: SpaceGatewayInput
539
+ }
540
+
521
541
  input RequestUpdateComponentMountPointInput {
522
542
  did: String
523
543
  rootDid: String
@@ -629,6 +649,13 @@ input RoutingRuleToInput {
629
649
  componentId: String
630
650
  }
631
651
 
652
+ input SpaceGatewayInput {
653
+ name: String
654
+ url: String
655
+ protected: String
656
+ endpoint: String
657
+ }
658
+
632
659
  input TeamInput {
633
660
  teamDid: String
634
661
  }
@@ -742,6 +769,19 @@ type AuditLogEnvItem {
742
769
  version: String
743
770
  }
744
771
 
772
+ type Backup {
773
+ appPid: String
774
+ userDid: String
775
+ strategy: Uint32
776
+ sourceUrl: String
777
+ target: String
778
+ targetUrl: String
779
+ createdAt: String
780
+ updatedAt: String
781
+ status: Uint32
782
+ message: String
783
+ }
784
+
745
785
  type BlockletBackupState {
746
786
  appDid: String
747
787
  appPid: String
@@ -1408,6 +1448,16 @@ type ResponseGetAuditLogs {
1408
1448
  paging: Paging
1409
1449
  }
1410
1450
 
1451
+ type ResponseGetBlockletBackups {
1452
+ code: StatusCode
1453
+ backups: [Backup!]
1454
+ }
1455
+
1456
+ type ResponseGetBlockletSpaceGateways {
1457
+ code: StatusCode
1458
+ spaceGateways: [SpaceGateway!]
1459
+ }
1460
+
1411
1461
  type ResponseGetBlocklets {
1412
1462
  code: StatusCode
1413
1463
  blocklets: [BlockletState!]
@@ -1631,6 +1681,13 @@ type RuntimeInfo {
1631
1681
  cpuUsage: Float32
1632
1682
  }
1633
1683
 
1684
+ type SpaceGateway {
1685
+ name: String
1686
+ url: String
1687
+ protected: String
1688
+ endpoint: String
1689
+ }
1690
+
1634
1691
  type TrustedFactory {
1635
1692
  holderDid: String
1636
1693
  issuerDid: String
@@ -1798,6 +1855,11 @@ type Mutation {
1798
1855
  backupBlocklet(input: RequestBackupBlockletInput): GeneralResponse
1799
1856
  restoreBlocklet(input: RequestRestoreBlockletInput): GeneralResponse
1800
1857
  migrateApplicationToStructV2(input: RequestMigrateApplicationToStructV2Input): GeneralResponse
1858
+ addBlockletSpaceGateway(input: RequestAddBlockletSpaceGatewayInput): GeneralResponse
1859
+ deleteBlockletSpaceGateway(input: RequestDeleteBlockletSpaceGatewayInput): GeneralResponse
1860
+ updateBlockletSpaceGateway(input: RequestUpdateBlockletSpaceGatewayInput): GeneralResponse
1861
+ getBlockletSpaceGateways(input: RequestBlockletInput): ResponseGetBlockletSpaceGateways
1862
+ getBlockletBackups(input: RequestGetBlockletBackupsInput): ResponseGetBlockletBackups
1801
1863
  updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
1802
1864
  updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
1803
1865
  upgradeNodeVersion: ResponseUpgradeNodeVersion
@@ -116,6 +116,11 @@ input PermissionInput {
116
116
  isProtected: Boolean
117
117
  }
118
118
 
119
+ input RequestAddBlockletSpaceGatewayInput {
120
+ did: String
121
+ spaceGateway: SpaceGatewayInput
122
+ }
123
+
119
124
  input RequestAddDomainAliasInput {
120
125
  id: String
121
126
  domainAlias: String
@@ -283,6 +288,11 @@ input RequestDeleteBlockletInput {
283
288
  keepData: Boolean
284
289
  }
285
290
 
291
+ input RequestDeleteBlockletSpaceGatewayInput {
292
+ did: String
293
+ url: String
294
+ }
295
+
286
296
  input RequestDeleteComponentInput {
287
297
  did: String
288
298
  rootDid: String
@@ -353,6 +363,10 @@ input RequestGetAuditLogsInput {
353
363
  category: String
354
364
  }
355
365
 
366
+ input RequestGetBlockletBackupsInput {
367
+ did: String
368
+ }
369
+
356
370
  input RequestGetBlockletsInput {
357
371
  useCache: Boolean
358
372
  query: BlockletQueryInput
@@ -518,6 +532,12 @@ input RequestUpdateAccessKeyInput {
518
532
  passport: String
519
533
  }
520
534
 
535
+ input RequestUpdateBlockletSpaceGatewayInput {
536
+ did: String
537
+ where: SpaceGatewayInput
538
+ spaceGateway: SpaceGatewayInput
539
+ }
540
+
521
541
  input RequestUpdateComponentMountPointInput {
522
542
  did: String
523
543
  rootDid: String
@@ -629,6 +649,13 @@ input RoutingRuleToInput {
629
649
  componentId: String
630
650
  }
631
651
 
652
+ input SpaceGatewayInput {
653
+ name: String
654
+ url: String
655
+ protected: String
656
+ endpoint: String
657
+ }
658
+
632
659
  input TeamInput {
633
660
  teamDid: String
634
661
  }
@@ -742,6 +769,19 @@ type AuditLogEnvItem {
742
769
  version: String
743
770
  }
744
771
 
772
+ type Backup {
773
+ appPid: String
774
+ userDid: String
775
+ strategy: Uint32
776
+ sourceUrl: String
777
+ target: String
778
+ targetUrl: String
779
+ createdAt: String
780
+ updatedAt: String
781
+ status: Uint32
782
+ message: String
783
+ }
784
+
745
785
  type BlockletBackupState {
746
786
  appDid: String
747
787
  appPid: String
@@ -1408,6 +1448,16 @@ type ResponseGetAuditLogs {
1408
1448
  paging: Paging
1409
1449
  }
1410
1450
 
1451
+ type ResponseGetBlockletBackups {
1452
+ code: StatusCode
1453
+ backups: [Backup!]
1454
+ }
1455
+
1456
+ type ResponseGetBlockletSpaceGateways {
1457
+ code: StatusCode
1458
+ spaceGateways: [SpaceGateway!]
1459
+ }
1460
+
1411
1461
  type ResponseGetBlocklets {
1412
1462
  code: StatusCode
1413
1463
  blocklets: [BlockletState!]
@@ -1631,6 +1681,13 @@ type RuntimeInfo {
1631
1681
  cpuUsage: Float32
1632
1682
  }
1633
1683
 
1684
+ type SpaceGateway {
1685
+ name: String
1686
+ url: String
1687
+ protected: String
1688
+ endpoint: String
1689
+ }
1690
+
1634
1691
  type TrustedFactory {
1635
1692
  holderDid: String
1636
1693
  issuerDid: String
@@ -1800,6 +1857,11 @@ type Mutation {
1800
1857
  backupBlocklet(input: RequestBackupBlockletInput): GeneralResponse
1801
1858
  restoreBlocklet(input: RequestRestoreBlockletInput): GeneralResponse
1802
1859
  migrateApplicationToStructV2(input: RequestMigrateApplicationToStructV2Input): GeneralResponse
1860
+ addBlockletSpaceGateway(input: RequestAddBlockletSpaceGatewayInput): GeneralResponse
1861
+ deleteBlockletSpaceGateway(input: RequestDeleteBlockletSpaceGatewayInput): GeneralResponse
1862
+ updateBlockletSpaceGateway(input: RequestUpdateBlockletSpaceGatewayInput): GeneralResponse
1863
+ getBlockletSpaceGateways(input: RequestBlockletInput): ResponseGetBlockletSpaceGateways
1864
+ getBlockletBackups(input: RequestGetBlockletBackupsInput): ResponseGetBlockletBackups
1803
1865
  updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
1804
1866
  updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
1805
1867
  upgradeNodeVersion: ResponseUpgradeNodeVersion
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.7",
6
+ "version": "1.16.8-beta-0c0c5eb2",
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": "MIT",
16
- "gitHead": "dadd7bfa319e2ee5144bdccb6e280ffe4b8d2679",
16
+ "gitHead": "0d8ec3154caf670770284dbdabc61a5f4e8b205f",
17
17
  "devDependencies": {
18
18
  "@wangshijun/ts-protoc-gen": "^0.16.2"
19
19
  }