@powerhousedao/reactor-api 6.0.0-dev.11 → 6.0.0-dev.111
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 +6 -0
- package/dist/codegen.js +1 -1
- package/dist/codegen.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/src/config.d.ts +1 -2
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +1 -5
- package/dist/src/config.js.map +1 -1
- package/dist/src/dev.d.ts +2 -0
- package/dist/src/dev.d.ts.map +1 -0
- package/dist/src/dev.js +51 -0
- package/dist/src/dev.js.map +1 -0
- package/dist/src/graphql/auth/resolvers.d.ts +17 -0
- package/dist/src/graphql/auth/resolvers.d.ts.map +1 -1
- package/dist/src/graphql/auth/resolvers.js +54 -0
- package/dist/src/graphql/auth/resolvers.js.map +1 -1
- package/dist/src/graphql/auth/schema.graphql +27 -5
- package/dist/src/graphql/auth/subgraph.d.ts +25 -0
- package/dist/src/graphql/auth/subgraph.d.ts.map +1 -1
- package/dist/src/graphql/auth/subgraph.js +46 -2
- package/dist/src/graphql/auth/subgraph.js.map +1 -1
- package/dist/src/graphql/base-subgraph.d.ts +11 -4
- package/dist/src/graphql/base-subgraph.d.ts.map +1 -1
- package/dist/src/graphql/base-subgraph.js +94 -2
- package/dist/src/graphql/base-subgraph.js.map +1 -1
- package/dist/src/graphql/document-model-subgraph.d.ts +104 -45
- package/dist/src/graphql/document-model-subgraph.d.ts.map +1 -1
- package/dist/src/graphql/document-model-subgraph.js +323 -91
- package/dist/src/graphql/document-model-subgraph.js.map +1 -1
- package/dist/src/graphql/gateway/adapter-gateway-apollo.d.ts +23 -0
- package/dist/src/graphql/gateway/adapter-gateway-apollo.d.ts.map +1 -0
- package/dist/src/graphql/gateway/adapter-gateway-apollo.js +156 -0
- package/dist/src/graphql/gateway/adapter-gateway-apollo.js.map +1 -0
- package/dist/src/graphql/gateway/adapter-http-express.d.ts +23 -0
- package/dist/src/graphql/gateway/adapter-http-express.d.ts.map +1 -0
- package/dist/src/graphql/gateway/adapter-http-express.js +155 -0
- package/dist/src/graphql/gateway/adapter-http-express.js.map +1 -0
- package/dist/src/graphql/gateway/auth-middleware.d.ts +7 -0
- package/dist/src/graphql/gateway/auth-middleware.d.ts.map +1 -0
- package/dist/src/graphql/gateway/auth-middleware.js +15 -0
- package/dist/src/graphql/gateway/auth-middleware.js.map +1 -0
- package/dist/src/graphql/gateway/factory.d.ts +11 -0
- package/dist/src/graphql/gateway/factory.d.ts.map +1 -0
- package/dist/src/graphql/gateway/factory.js +15 -0
- package/dist/src/graphql/gateway/factory.js.map +1 -0
- package/dist/src/graphql/gateway/types.d.ts +84 -0
- package/dist/src/graphql/gateway/types.d.ts.map +1 -0
- package/dist/src/{sync → graphql/gateway}/types.js.map +1 -1
- package/dist/src/graphql/graphql-manager.d.ts +31 -12
- package/dist/src/graphql/graphql-manager.d.ts.map +1 -1
- package/dist/src/graphql/graphql-manager.js +284 -228
- package/dist/src/graphql/graphql-manager.js.map +1 -1
- package/dist/src/graphql/index.d.ts +5 -1
- package/dist/src/graphql/index.d.ts.map +1 -1
- package/dist/src/graphql/index.js +5 -1
- package/dist/src/graphql/index.js.map +1 -1
- package/dist/src/graphql/packages/index.d.ts +2 -0
- package/dist/src/graphql/packages/index.d.ts.map +1 -0
- package/dist/src/graphql/packages/index.js +2 -0
- package/dist/src/graphql/packages/index.js.map +1 -0
- package/dist/src/graphql/packages/resolvers.d.ts +31 -0
- package/dist/src/graphql/packages/resolvers.d.ts.map +1 -0
- package/dist/src/graphql/packages/resolvers.js +37 -0
- package/dist/src/graphql/packages/resolvers.js.map +1 -0
- package/dist/src/graphql/packages/schema.graphql +50 -0
- package/dist/src/graphql/packages/subgraph.d.ts +55 -0
- package/dist/src/graphql/packages/subgraph.d.ts.map +1 -0
- package/dist/src/graphql/packages/subgraph.js +73 -0
- package/dist/src/graphql/packages/subgraph.js.map +1 -0
- package/dist/src/graphql/playground.d.ts.map +1 -1
- package/dist/src/graphql/playground.js +19 -12
- package/dist/src/graphql/playground.js.map +1 -1
- package/dist/src/graphql/reactor/adapters.d.ts +10 -2
- package/dist/src/graphql/reactor/adapters.d.ts.map +1 -1
- package/dist/src/graphql/reactor/adapters.js +36 -1
- package/dist/src/graphql/reactor/adapters.js.map +1 -1
- package/dist/src/graphql/reactor/factory.d.ts +22 -1
- package/dist/src/graphql/reactor/factory.d.ts.map +1 -1
- package/dist/src/graphql/reactor/factory.js +1 -1
- package/dist/src/graphql/reactor/factory.js.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.d.ts +355 -76
- package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.js +245 -10
- package/dist/src/graphql/reactor/gen/graphql.js.map +1 -1
- package/dist/src/graphql/reactor/index.d.ts +1 -1
- package/dist/src/graphql/reactor/index.d.ts.map +1 -1
- package/dist/src/graphql/reactor/index.js +1 -1
- package/dist/src/graphql/reactor/index.js.map +1 -1
- package/dist/src/graphql/reactor/operations.graphql +191 -1
- package/dist/src/graphql/reactor/requester.with-zod.d.ts.map +1 -1
- package/dist/src/graphql/reactor/requester.with-zod.js +114 -38
- package/dist/src/graphql/reactor/requester.with-zod.js.map +1 -1
- package/dist/src/graphql/reactor/resolvers.d.ts +90 -26
- package/dist/src/graphql/reactor/resolvers.d.ts.map +1 -1
- package/dist/src/graphql/reactor/resolvers.js +275 -77
- package/dist/src/graphql/reactor/resolvers.js.map +1 -1
- package/dist/src/graphql/reactor/schema.graphql +76 -30
- package/dist/src/graphql/reactor/subgraph.d.ts +2 -31
- package/dist/src/graphql/reactor/subgraph.d.ts.map +1 -1
- package/dist/src/graphql/reactor/subgraph.js +133 -210
- package/dist/src/graphql/reactor/subgraph.js.map +1 -1
- package/dist/src/graphql/reactor/validation.d.ts +266 -20
- package/dist/src/graphql/reactor/validation.d.ts.map +1 -1
- package/dist/src/graphql/reactor/validation.js +98 -4
- package/dist/src/graphql/reactor/validation.js.map +1 -1
- package/dist/src/graphql/sse.d.ts +42 -0
- package/dist/src/graphql/sse.d.ts.map +1 -0
- package/dist/src/graphql/sse.js +33 -0
- package/dist/src/graphql/sse.js.map +1 -0
- package/dist/src/graphql/system/index.d.ts +0 -1
- package/dist/src/graphql/system/index.d.ts.map +1 -1
- package/dist/src/graphql/system/index.js +0 -1
- package/dist/src/graphql/system/index.js.map +1 -1
- package/dist/src/graphql/types.d.ts +7 -8
- package/dist/src/graphql/types.d.ts.map +1 -1
- package/dist/src/graphql/utils.d.ts +3 -20
- package/dist/src/graphql/utils.d.ts.map +1 -1
- package/dist/src/graphql/utils.js +7 -35
- package/dist/src/graphql/utils.js.map +1 -1
- package/dist/src/migrations/002_add_document_protection.d.ts +4 -0
- package/dist/src/migrations/002_add_document_protection.d.ts.map +1 -0
- package/dist/src/migrations/002_add_document_protection.js +18 -0
- package/dist/src/migrations/002_add_document_protection.js.map +1 -0
- package/dist/src/migrations/index.d.ts.map +1 -1
- package/dist/src/migrations/index.js +2 -0
- package/dist/src/migrations/index.js.map +1 -1
- package/dist/src/packages/http-loader.d.ts +68 -0
- package/dist/src/packages/http-loader.d.ts.map +1 -0
- package/dist/src/packages/http-loader.js +176 -0
- package/dist/src/packages/http-loader.js.map +1 -0
- package/dist/src/packages/https-hooks.d.mts +37 -0
- package/dist/src/packages/https-hooks.d.mts.map +1 -0
- package/dist/src/packages/https-hooks.mjs +88 -0
- package/dist/src/packages/https-hooks.mjs.map +1 -0
- package/dist/src/packages/import-loader.d.ts +3 -4
- package/dist/src/packages/import-loader.d.ts.map +1 -1
- package/dist/src/packages/import-loader.js +6 -12
- package/dist/src/packages/import-loader.js.map +1 -1
- package/dist/src/packages/package-manager.d.ts +3 -4
- package/dist/src/packages/package-manager.d.ts.map +1 -1
- package/dist/src/packages/package-manager.js +2 -2
- package/dist/src/packages/package-manager.js.map +1 -1
- package/dist/src/packages/types.d.ts +9 -6
- package/dist/src/packages/types.d.ts.map +1 -1
- package/dist/src/packages/util.d.ts +4 -4
- package/dist/src/packages/util.d.ts.map +1 -1
- package/dist/src/packages/util.js +2 -2
- package/dist/src/packages/util.js.map +1 -1
- package/dist/src/packages/vite-loader.d.ts +8 -7
- package/dist/src/packages/vite-loader.d.ts.map +1 -1
- package/dist/src/packages/vite-loader.js +20 -8
- package/dist/src/packages/vite-loader.js.map +1 -1
- package/dist/src/server.d.ts +15 -28
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +137 -167
- package/dist/src/server.js.map +1 -1
- package/dist/src/services/auth.service.d.ts +11 -15
- package/dist/src/services/auth.service.d.ts.map +1 -1
- package/dist/src/services/auth.service.js +61 -40
- package/dist/src/services/auth.service.js.map +1 -1
- package/dist/src/services/authorization.service.d.ts +70 -0
- package/dist/src/services/authorization.service.d.ts.map +1 -0
- package/dist/src/services/authorization.service.js +155 -0
- package/dist/src/services/authorization.service.js.map +1 -0
- package/dist/src/services/document-permission.service.d.ts +47 -7
- package/dist/src/services/document-permission.service.d.ts.map +1 -1
- package/dist/src/services/document-permission.service.js +162 -7
- package/dist/src/services/document-permission.service.js.map +1 -1
- package/dist/src/services/package-management.service.d.ts +32 -0
- package/dist/src/services/package-management.service.d.ts.map +1 -0
- package/dist/src/services/package-management.service.js +95 -0
- package/dist/src/services/package-management.service.js.map +1 -0
- package/dist/src/services/package-storage.d.ts +23 -0
- package/dist/src/services/package-storage.d.ts.map +1 -0
- package/dist/src/services/package-storage.js +19 -0
- package/dist/src/services/package-storage.js.map +1 -0
- package/dist/src/tracing.d.ts.map +1 -1
- package/dist/src/tracing.js +19 -1
- package/dist/src/tracing.js.map +1 -1
- package/dist/src/types.d.ts +14 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/create-schema.d.ts +31 -6
- package/dist/src/utils/create-schema.d.ts.map +1 -1
- package/dist/src/utils/create-schema.js +451 -43
- package/dist/src/utils/create-schema.js.map +1 -1
- package/dist/src/utils/db.d.ts +8 -0
- package/dist/src/utils/db.d.ts.map +1 -1
- package/dist/src/utils/db.js.map +1 -1
- package/dist/src/utils/drive-url.d.ts +2 -0
- package/dist/src/utils/drive-url.d.ts.map +1 -0
- package/dist/src/utils/drive-url.js +3 -0
- package/dist/src/utils/drive-url.js.map +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +1 -0
- package/dist/src/utils/index.js.map +1 -1
- package/dist/test/auth.service.test.d.ts +10 -0
- package/dist/test/auth.service.test.d.ts.map +1 -0
- package/dist/test/auth.service.test.js +141 -0
- package/dist/test/auth.service.test.js.map +1 -0
- package/dist/test/authorization.service.test.d.ts +2 -0
- package/dist/test/authorization.service.test.d.ts.map +1 -0
- package/dist/test/authorization.service.test.js +252 -0
- package/dist/test/authorization.service.test.js.map +1 -0
- package/dist/test/connect-switchboard-reshuffle-convergence.test.d.ts +2 -0
- package/dist/test/connect-switchboard-reshuffle-convergence.test.d.ts.map +1 -0
- package/dist/test/connect-switchboard-reshuffle-convergence.test.js +204 -0
- package/dist/test/connect-switchboard-reshuffle-convergence.test.js.map +1 -0
- package/dist/test/connect-switchboard-sync.test.d.ts +2 -0
- package/dist/test/connect-switchboard-sync.test.d.ts.map +1 -0
- package/dist/test/connect-switchboard-sync.test.js +582 -0
- package/dist/test/connect-switchboard-sync.test.js.map +1 -0
- package/dist/test/document-drive-subgraph.test.d.ts +2 -0
- package/dist/test/document-drive-subgraph.test.d.ts.map +1 -0
- package/dist/test/document-drive-subgraph.test.js +244 -0
- package/dist/test/document-drive-subgraph.test.js.map +1 -0
- package/dist/test/document-model-subgraph-permissions.test.d.ts +2 -0
- package/dist/test/document-model-subgraph-permissions.test.d.ts.map +1 -0
- package/dist/test/document-model-subgraph-permissions.test.js +587 -0
- package/dist/test/document-model-subgraph-permissions.test.js.map +1 -0
- package/dist/test/drive-info-endpoint.test.d.ts +2 -0
- package/dist/test/drive-info-endpoint.test.d.ts.map +1 -0
- package/dist/test/drive-info-endpoint.test.js +123 -0
- package/dist/test/drive-info-endpoint.test.js.map +1 -0
- package/dist/test/fault-injection-sync.test.d.ts +2 -0
- package/dist/test/fault-injection-sync.test.d.ts.map +1 -0
- package/dist/test/fault-injection-sync.test.js +197 -0
- package/dist/test/fault-injection-sync.test.js.map +1 -0
- package/dist/test/gateway/adapter-gateway-apollo.test.d.ts +2 -0
- package/dist/test/gateway/adapter-gateway-apollo.test.d.ts.map +1 -0
- package/dist/test/gateway/adapter-gateway-apollo.test.js +206 -0
- package/dist/test/gateway/adapter-gateway-apollo.test.js.map +1 -0
- package/dist/test/gateway/adapter-http-express.test.d.ts +2 -0
- package/dist/test/gateway/adapter-http-express.test.d.ts.map +1 -0
- package/dist/test/gateway/adapter-http-express.test.js +17 -0
- package/dist/test/gateway/adapter-http-express.test.js.map +1 -0
- package/dist/test/gateway/auth-middleware.test.d.ts +8 -0
- package/dist/test/gateway/auth-middleware.test.d.ts.map +1 -0
- package/dist/test/gateway/auth-middleware.test.js +73 -0
- package/dist/test/gateway/auth-middleware.test.js.map +1 -0
- package/dist/test/gateway/gateway-adapter-contract.d.ts +30 -0
- package/dist/test/gateway/gateway-adapter-contract.d.ts.map +1 -0
- package/dist/test/gateway/gateway-adapter-contract.js +347 -0
- package/dist/test/gateway/gateway-adapter-contract.js.map +1 -0
- package/dist/test/gateway/http-adapter-contract.d.ts +30 -0
- package/dist/test/gateway/http-adapter-contract.d.ts.map +1 -0
- package/dist/test/gateway/http-adapter-contract.js +226 -0
- package/dist/test/gateway/http-adapter-contract.js.map +1 -0
- package/dist/test/graphql-manager.test.d.ts +12 -0
- package/dist/test/graphql-manager.test.d.ts.map +1 -0
- package/dist/test/graphql-manager.test.js +488 -0
- package/dist/test/graphql-manager.test.js.map +1 -0
- package/dist/test/index.d.ts +0 -1
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/index.js +0 -1
- package/dist/test/index.js.map +1 -1
- package/dist/test/permissions-integration.test.js +6 -20
- package/dist/test/permissions-integration.test.js.map +1 -1
- package/dist/test/push-backfill.test.d.ts +2 -0
- package/dist/test/push-backfill.test.d.ts.map +1 -0
- package/dist/test/push-backfill.test.js +299 -0
- package/dist/test/push-backfill.test.js.map +1 -0
- package/dist/test/reactor-adapters.test.js +3 -2
- package/dist/test/reactor-adapters.test.js.map +1 -1
- package/dist/test/reactor-client.test.js +172 -13
- package/dist/test/reactor-client.test.js.map +1 -1
- package/dist/test/reactor-resolvers.test.js +11 -13
- package/dist/test/reactor-resolvers.test.js.map +1 -1
- package/dist/test/reactor-subgraph-permissions.test.js +7 -36
- package/dist/test/reactor-subgraph-permissions.test.js.map +1 -1
- package/dist/test/subscriptions-sse.test.d.ts +2 -0
- package/dist/test/subscriptions-sse.test.d.ts.map +1 -0
- package/dist/test/subscriptions-sse.test.js +264 -0
- package/dist/test/subscriptions-sse.test.js.map +1 -0
- package/dist/test/subscriptions.test.js +2 -0
- package/dist/test/subscriptions.test.js.map +1 -1
- package/dist/test/utils/gql-resolver-bridge.d.ts +4 -1
- package/dist/test/utils/gql-resolver-bridge.d.ts.map +1 -1
- package/dist/test/utils/gql-resolver-bridge.js +36 -7
- package/dist/test/utils/gql-resolver-bridge.js.map +1 -1
- package/dist/test/utils.d.ts +1 -5
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js +0 -10
- package/dist/test/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +52 -58
- package/dist/src/graphql/drive-subgraph.d.ts +0 -25
- package/dist/src/graphql/drive-subgraph.d.ts.map +0 -1
- package/dist/src/graphql/drive-subgraph.js +0 -487
- package/dist/src/graphql/drive-subgraph.js.map +0 -1
- package/dist/src/graphql/system/system-subgraph.d.ts +0 -49
- package/dist/src/graphql/system/system-subgraph.d.ts.map +0 -1
- package/dist/src/graphql/system/system-subgraph.js +0 -130
- package/dist/src/graphql/system/system-subgraph.js.map +0 -1
- package/dist/src/sync/types.d.ts +0 -10
- package/dist/src/sync/types.d.ts.map +0 -1
- package/dist/src/sync/utils.d.ts +0 -7
- package/dist/src/sync/utils.d.ts.map +0 -1
- package/dist/src/sync/utils.js +0 -78
- package/dist/src/sync/utils.js.map +0 -1
- package/dist/src/utils/auth.d.ts +0 -3
- package/dist/src/utils/auth.d.ts.map +0 -1
- package/dist/src/utils/auth.js +0 -19
- package/dist/src/utils/auth.js.map +0 -1
- package/dist/test/benchmarks/load.bench.d.ts +0 -2
- package/dist/test/benchmarks/load.bench.d.ts.map +0 -1
- package/dist/test/benchmarks/load.bench.js +0 -73
- package/dist/test/benchmarks/load.bench.js.map +0 -1
- package/dist/test/benchmarks/sync.bench.d.ts +0 -2
- package/dist/test/benchmarks/sync.bench.d.ts.map +0 -1
- package/dist/test/benchmarks/sync.bench.js +0 -119
- package/dist/test/benchmarks/sync.bench.js.map +0 -1
- package/dist/test/drive-handlers.d.ts +0 -4
- package/dist/test/drive-handlers.d.ts.map +0 -1
- package/dist/test/drive-handlers.js +0 -39
- package/dist/test/drive-handlers.js.map +0 -1
- package/dist/test/drive-subgraph-permissions.test.d.ts +0 -2
- package/dist/test/drive-subgraph-permissions.test.d.ts.map +0 -1
- package/dist/test/drive-subgraph-permissions.test.js +0 -195
- package/dist/test/drive-subgraph-permissions.test.js.map +0 -1
- package/dist/test/drive.test.d.ts +0 -2
- package/dist/test/drive.test.d.ts.map +0 -1
- package/dist/test/drive.test.js +0 -142
- package/dist/test/drive.test.js.map +0 -1
- package/dist/test/identity-integration.test.d.ts +0 -2
- package/dist/test/identity-integration.test.d.ts.map +0 -1
- package/dist/test/identity-integration.test.js +0 -349
- package/dist/test/identity-integration.test.js.map +0 -1
- package/dist/test/pull-responder-transmitter.test.d.ts +0 -2
- package/dist/test/pull-responder-transmitter.test.d.ts.map +0 -1
- package/dist/test/pull-responder-transmitter.test.js +0 -220
- package/dist/test/pull-responder-transmitter.test.js.map +0 -1
- package/dist/test/push-transmitter.test.d.ts +0 -2
- package/dist/test/push-transmitter.test.d.ts.map +0 -1
- package/dist/test/push-transmitter.test.js +0 -179
- package/dist/test/push-transmitter.test.js.map +0 -1
- package/dist/test/system.test.d.ts +0 -2
- package/dist/test/system.test.d.ts.map +0 -1
- package/dist/test/system.test.js +0 -211
- package/dist/test/system.test.js.map +0 -1
- package/dist/test/three-reactor-gql-sync.test.d.ts +0 -2
- package/dist/test/three-reactor-gql-sync.test.d.ts.map +0 -1
- package/dist/test/three-reactor-gql-sync.test.js +0 -368
- package/dist/test/three-reactor-gql-sync.test.js.map +0 -1
- package/dist/test/two-reactor-gql-sync.test.d.ts +0 -2
- package/dist/test/two-reactor-gql-sync.test.d.ts.map +0 -1
- package/dist/test/two-reactor-gql-sync.test.js +0 -348
- package/dist/test/two-reactor-gql-sync.test.js.map +0 -1
- /package/dist/src/{sync → graphql/gateway}/types.js +0 -0
|
@@ -20,6 +20,25 @@ input SearchFilterInput {
|
|
|
20
20
|
identifiers: [String!]
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
input OperationsFilterInput {
|
|
24
|
+
documentId: String!
|
|
25
|
+
branch: String
|
|
26
|
+
scopes: [String!]
|
|
27
|
+
actionTypes: [String!]
|
|
28
|
+
sinceRevision: Int
|
|
29
|
+
timestampFrom: String
|
|
30
|
+
timestampTo: String
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input DocumentOperationsFilterInput {
|
|
34
|
+
branch: String
|
|
35
|
+
scopes: [String!]
|
|
36
|
+
actionTypes: [String!]
|
|
37
|
+
sinceRevision: Int
|
|
38
|
+
timestampFrom: String
|
|
39
|
+
timestampTo: String
|
|
40
|
+
}
|
|
41
|
+
|
|
23
42
|
# Enums
|
|
24
43
|
enum PropagationMode {
|
|
25
44
|
CASCADE
|
|
@@ -61,13 +80,17 @@ type Revision {
|
|
|
61
80
|
type PHDocument {
|
|
62
81
|
id: String!
|
|
63
82
|
slug: String
|
|
83
|
+
preferredEditor: String
|
|
64
84
|
name: String!
|
|
65
85
|
documentType: String!
|
|
66
86
|
state: JSONObject!
|
|
67
87
|
revisionsList: [Revision!]!
|
|
68
88
|
createdAtUtcIso: DateTime!
|
|
69
89
|
lastModifiedAtUtcIso: DateTime!
|
|
70
|
-
|
|
90
|
+
operations(
|
|
91
|
+
filter: DocumentOperationsFilterInput
|
|
92
|
+
paging: PagingInput
|
|
93
|
+
): ReactorOperationResultPage
|
|
71
94
|
}
|
|
72
95
|
|
|
73
96
|
type PHDocumentResultPage {
|
|
@@ -78,6 +101,29 @@ type PHDocumentResultPage {
|
|
|
78
101
|
cursor: String
|
|
79
102
|
}
|
|
80
103
|
|
|
104
|
+
type ReactorOperationResultPage {
|
|
105
|
+
items: [ReactorOperation!]!
|
|
106
|
+
totalCount: Int!
|
|
107
|
+
hasNextPage: Boolean!
|
|
108
|
+
hasPreviousPage: Boolean!
|
|
109
|
+
cursor: String
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type DeadLetterInfo {
|
|
113
|
+
documentId: String!
|
|
114
|
+
error: String!
|
|
115
|
+
jobId: String!
|
|
116
|
+
branch: String!
|
|
117
|
+
scopes: [String!]!
|
|
118
|
+
operationCount: Int!
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
type PollSyncEnvelopesResult {
|
|
122
|
+
envelopes: [SyncEnvelope!]!
|
|
123
|
+
ackOrdinal: Int!
|
|
124
|
+
deadLetters: [DeadLetterInfo!]!
|
|
125
|
+
}
|
|
126
|
+
|
|
81
127
|
type DocumentWithChildren {
|
|
82
128
|
document: PHDocument!
|
|
83
129
|
childIds: [String!]!
|
|
@@ -220,6 +266,7 @@ type OperationContext {
|
|
|
220
266
|
documentType: String!
|
|
221
267
|
scope: String!
|
|
222
268
|
branch: String!
|
|
269
|
+
ordinal: Int!
|
|
223
270
|
}
|
|
224
271
|
|
|
225
272
|
input OperationContextInput {
|
|
@@ -227,6 +274,7 @@ input OperationContextInput {
|
|
|
227
274
|
documentType: String!
|
|
228
275
|
scope: String!
|
|
229
276
|
branch: String!
|
|
277
|
+
ordinal: Int!
|
|
230
278
|
}
|
|
231
279
|
|
|
232
280
|
type OperationWithContext {
|
|
@@ -269,6 +317,8 @@ type SyncEnvelope {
|
|
|
269
317
|
channelMeta: ChannelMeta!
|
|
270
318
|
operations: [OperationWithContext!]
|
|
271
319
|
cursor: RemoteCursor
|
|
320
|
+
key: String
|
|
321
|
+
dependsOn: [String!]
|
|
272
322
|
}
|
|
273
323
|
|
|
274
324
|
input SyncEnvelopeInput {
|
|
@@ -276,6 +326,8 @@ input SyncEnvelopeInput {
|
|
|
276
326
|
channelMeta: ChannelMetaInput!
|
|
277
327
|
operations: [OperationWithContextInput!]
|
|
278
328
|
cursor: RemoteCursorInput
|
|
329
|
+
key: String
|
|
330
|
+
dependsOn: [String!]
|
|
279
331
|
}
|
|
280
332
|
|
|
281
333
|
input RemoteFilterInput {
|
|
@@ -289,6 +341,12 @@ input TouchChannelInput {
|
|
|
289
341
|
name: String!
|
|
290
342
|
collectionId: String!
|
|
291
343
|
filter: RemoteFilterInput!
|
|
344
|
+
sinceTimestampUtcMs: String!
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
type TouchChannelResult {
|
|
348
|
+
success: Boolean!
|
|
349
|
+
ackOrdinal: Int!
|
|
292
350
|
}
|
|
293
351
|
|
|
294
352
|
type Query {
|
|
@@ -299,10 +357,7 @@ type Query {
|
|
|
299
357
|
): DocumentModelResultPage!
|
|
300
358
|
|
|
301
359
|
# Get a specific document by ID or slug
|
|
302
|
-
document(
|
|
303
|
-
identifier: String!
|
|
304
|
-
view: ViewFilterInput
|
|
305
|
-
): DocumentWithChildren
|
|
360
|
+
document(identifier: String!, view: ViewFilterInput): DocumentWithChildren
|
|
306
361
|
|
|
307
362
|
# Get children of a document
|
|
308
363
|
documentChildren(
|
|
@@ -328,19 +383,23 @@ type Query {
|
|
|
328
383
|
# Get job status
|
|
329
384
|
jobStatus(jobId: String!): JobInfo
|
|
330
385
|
|
|
386
|
+
# Get operations for a document with filtering and pagination
|
|
387
|
+
documentOperations(
|
|
388
|
+
filter: OperationsFilterInput!
|
|
389
|
+
paging: PagingInput
|
|
390
|
+
): ReactorOperationResultPage!
|
|
391
|
+
|
|
331
392
|
# Poll for sync envelopes from a channel
|
|
332
393
|
pollSyncEnvelopes(
|
|
333
394
|
channelId: String!
|
|
334
|
-
|
|
335
|
-
|
|
395
|
+
outboxAck: Int!
|
|
396
|
+
outboxLatest: Int!
|
|
397
|
+
): PollSyncEnvelopesResult!
|
|
336
398
|
}
|
|
337
399
|
|
|
338
400
|
type Mutation {
|
|
339
401
|
# Create a new document
|
|
340
|
-
createDocument(
|
|
341
|
-
document: JSONObject!
|
|
342
|
-
parentIdentifier: String
|
|
343
|
-
): PHDocument!
|
|
402
|
+
createDocument(document: JSONObject!, parentIdentifier: String): PHDocument!
|
|
344
403
|
|
|
345
404
|
# Create an empty document of specified type
|
|
346
405
|
createEmptyDocument(
|
|
@@ -392,26 +451,16 @@ type Mutation {
|
|
|
392
451
|
): MoveChildrenResult!
|
|
393
452
|
|
|
394
453
|
# Delete a single document
|
|
395
|
-
deleteDocument(
|
|
396
|
-
identifier: String!
|
|
397
|
-
propagate: PropagationMode
|
|
398
|
-
): Boolean!
|
|
454
|
+
deleteDocument(identifier: String!, propagate: PropagationMode): Boolean!
|
|
399
455
|
|
|
400
456
|
# Delete multiple documents
|
|
401
|
-
deleteDocuments(
|
|
402
|
-
identifiers: [String!]!
|
|
403
|
-
propagate: PropagationMode
|
|
404
|
-
): Boolean!
|
|
457
|
+
deleteDocuments(identifiers: [String!]!, propagate: PropagationMode): Boolean!
|
|
405
458
|
|
|
406
459
|
# Touch (create or update) a channel for sync
|
|
407
|
-
touchChannel(
|
|
408
|
-
input: TouchChannelInput!
|
|
409
|
-
): Boolean!
|
|
460
|
+
touchChannel(input: TouchChannelInput!): TouchChannelResult!
|
|
410
461
|
|
|
411
|
-
# Push sync
|
|
412
|
-
|
|
413
|
-
envelope: SyncEnvelopeInput!
|
|
414
|
-
): Boolean!
|
|
462
|
+
# Push sync envelopes to a channel
|
|
463
|
+
pushSyncEnvelopes(envelopes: [SyncEnvelopeInput!]!): Boolean!
|
|
415
464
|
}
|
|
416
465
|
|
|
417
466
|
type Subscription {
|
|
@@ -422,8 +471,5 @@ type Subscription {
|
|
|
422
471
|
): DocumentChangeEvent!
|
|
423
472
|
|
|
424
473
|
# Subscribe to job changes
|
|
425
|
-
jobChanges(
|
|
426
|
-
jobId: String!
|
|
427
|
-
): JobChangeEvent!
|
|
474
|
+
jobChanges(jobId: String!): JobChangeEvent!
|
|
428
475
|
}
|
|
429
|
-
|
|
@@ -7,37 +7,8 @@ export declare class ReactorSubgraph extends BaseSubgraph {
|
|
|
7
7
|
name: string;
|
|
8
8
|
hasSubscriptions: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Check
|
|
11
|
-
|
|
12
|
-
private hasGlobalReadAccess;
|
|
13
|
-
/**
|
|
14
|
-
* Check if user has global write access (admin or user, not guest)
|
|
15
|
-
*/
|
|
16
|
-
private hasGlobalWriteAccess;
|
|
17
|
-
/**
|
|
18
|
-
* Get the parent IDs function for hierarchical permission checks
|
|
19
|
-
*/
|
|
20
|
-
private getParentIdsFn;
|
|
21
|
-
/**
|
|
22
|
-
* Check if user can read a document (with hierarchy)
|
|
23
|
-
*/
|
|
24
|
-
private canReadDocument;
|
|
25
|
-
/**
|
|
26
|
-
* Check if user can write to a document (with hierarchy)
|
|
27
|
-
*/
|
|
28
|
-
private canWriteDocument;
|
|
29
|
-
/**
|
|
30
|
-
* Throw an error if user cannot read the document
|
|
31
|
-
*/
|
|
32
|
-
private assertCanRead;
|
|
33
|
-
/**
|
|
34
|
-
* Throw an error if user cannot write to the document
|
|
35
|
-
*/
|
|
36
|
-
private assertCanWrite;
|
|
37
|
-
/**
|
|
38
|
-
* Check if user can execute specific operations on a document.
|
|
39
|
-
* Only checks operations that have restrictions set.
|
|
40
|
-
* Throws an error if any operation is restricted and user lacks permission.
|
|
10
|
+
* Check operation-level permissions for an array of actions.
|
|
11
|
+
* Delegates to base assertCanExecuteOperation for each action.
|
|
41
12
|
*/
|
|
42
13
|
private assertCanExecuteOperations;
|
|
43
14
|
typeDefs: import("graphql").DocumentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/subgraph.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAC;AAMzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAclD,qBAAa,eAAgB,SAAQ,YAAY;IAE/C,OAAO,CAAC,MAAM,CAA0C;gBAE5C,IAAI,EAAE,YAAY;IAK9B,IAAI,
|
|
1
|
+
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/subgraph.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAC;AAMzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAclD,qBAAa,eAAgB,SAAQ,YAAY;IAE/C,OAAO,CAAC,MAAM,CAA0C;gBAE5C,IAAI,EAAE,YAAY;IAK9B,IAAI,SAAO;IACX,gBAAgB,UAAQ;IAExB;;;OAGG;YACW,0BAA0B;IAgBxC,QAAQ,iCAEN;IAEF,SAAS,EAAE,SAAS,CAghBlB;IAEF,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAKzB"}
|