@endge/core 1.2.8 → 1.2.10
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 +0 -21
- package/dist/core.cjs +353 -289
- package/dist/core.js +64905 -67759
- package/dist/domain/entities/diagnostics/DiagnosticsRecordStore.d.ts +1 -1
- package/dist/domain/entities/diagnostics/DiagnosticsSpan.d.ts +1 -1
- package/dist/domain/entities/endge/EndgeFederation.d.ts +4 -2
- package/dist/domain/entities/reflect/RAuthProfile.d.ts +0 -1
- package/dist/domain/entities/reflect/RComponentSFC.d.ts +1 -1
- package/dist/domain/entities/reflect/RComputation.d.ts +1 -5
- package/dist/domain/entities/reflect/RConverter.d.ts +1 -1
- package/dist/domain/entities/reflect/REntity.d.ts +1 -1
- package/dist/domain/entities/reflect/REnvironment.d.ts +1 -1
- package/dist/domain/entities/reflect/RFilter.d.ts +0 -1
- package/dist/domain/entities/reflect/RFolder.d.ts +1 -3
- package/dist/domain/entities/reflect/RI18nBundle.d.ts +2 -3
- package/dist/domain/entities/reflect/RIntegration.d.ts +1 -1
- package/dist/domain/entities/reflect/RMock.d.ts +3 -5
- package/dist/domain/entities/reflect/RNavigation.d.ts +1 -1
- package/dist/domain/entities/reflect/RPage.d.ts +1 -1
- package/dist/domain/entities/reflect/RPageTemplate.d.ts +1 -1
- package/dist/domain/entities/reflect/RParameter.d.ts +0 -1
- package/dist/domain/entities/reflect/RProject.d.ts +4 -5
- package/dist/domain/entities/reflect/RStream.d.ts +8 -0
- package/dist/domain/entities/reflect/RStyle.d.ts +0 -1
- package/dist/domain/entities/reflect/RTenant.d.ts +1 -1
- package/dist/domain/entities/reflect/RType.d.ts +2 -9
- package/dist/domain/entities/reflect/RUpdate.d.ts +10 -0
- package/dist/domain/entities/reflect/RVersion.d.ts +3 -4
- package/dist/domain/entities/reflect/RVocabs.d.ts +2 -3
- package/dist/domain/entities/reflect/RWorkspace.d.ts +1 -2
- package/dist/domain/entities/runtime/ComponentSFCEventBoundary.d.ts +12 -4
- package/dist/domain/entities/runtime/RuntimeScopeRegistry.d.ts +1 -1
- package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +25 -3
- package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +12 -0
- package/dist/domain/entities/runtime/hosts/StoreRuntimeHost.d.ts +16 -0
- package/dist/domain/entities/runtime/hosts/StreamRuntimeHost.d.ts +30 -0
- package/dist/domain/types/auth/auth-profile.types.d.ts +69 -13
- package/dist/domain/types/auth/auth-runtime.types.d.ts +35 -0
- package/dist/domain/types/component/component-core.types.d.ts +2 -0
- package/dist/domain/types/component/sfc/ir.types.d.ts +70 -3
- package/dist/domain/types/component/sfc/ports.types.d.ts +21 -2
- package/dist/domain/types/component/sfc/visual-projection.types.d.ts +57 -1
- package/dist/domain/types/computation/computation-source.types.d.ts +3 -0
- package/dist/domain/types/configuration/configuration.type.d.ts +3 -9
- package/dist/domain/types/document/document-create.type.d.ts +2 -2
- package/dist/domain/types/document/document.types.d.ts +4 -2
- package/dist/domain/types/document/domain-export.type.d.ts +44 -9
- package/dist/domain/types/document/domain-provider.type.d.ts +59 -0
- package/dist/domain/types/document/domain-snapshot.type.d.ts +37 -0
- package/dist/domain/types/document/query.types.d.ts +3 -10
- package/dist/domain/types/document/workspace.types.d.ts +1 -1
- package/dist/domain/types/kernel/bootstrap.types.d.ts +19 -12
- package/dist/domain/types/kernel/events.types.d.ts +14 -0
- package/dist/domain/types/kernel/federation.types.d.ts +0 -1
- package/dist/domain/types/program/program.types.d.ts +13 -6
- package/dist/domain/types/runtime/action.types.d.ts +12 -0
- package/dist/domain/types/runtime/context-persistence.types.d.ts +12 -0
- package/dist/domain/types/runtime/execution-context.types.d.ts +20 -0
- package/dist/domain/types/runtime/runtime-entity-map.types.d.ts +3 -0
- package/dist/domain/types/runtime/runtime-host.types.d.ts +5 -0
- package/dist/domain/types/runtime/runtime.types.d.ts +3 -2
- package/dist/domain/types/runtime/sfc-render-inspection.type.d.ts +1 -1
- package/dist/domain/types/runtime/stream-runtime.types.d.ts +17 -0
- package/dist/domain/types/source/composition-source.types.d.ts +45 -3
- package/dist/domain/types/source/data-view-source.types.d.ts +6 -1
- package/dist/domain/types/source/filter-source.types.d.ts +47 -0
- package/dist/domain/types/source/query-source.types.d.ts +2 -1
- package/dist/domain/types/source/source-engine.types.d.ts +2 -2
- package/dist/domain/types/source/source-expression.types.d.ts +1 -1
- package/dist/domain/types/source/store-source.types.d.ts +10 -1
- package/dist/domain/types/source/stream-source.types.d.ts +39 -0
- package/dist/domain/types/source/update-source.types.d.ts +32 -0
- package/dist/main.d.ts +132 -84
- package/dist/model/adapters/diagnostics/ConsoleDiagnosticsAdapter.d.ts +2 -1
- package/dist/model/adapters/diagnostics/DiagnosticsAdapterRegistry.d.ts +2 -1
- package/dist/model/adapters/diagnostics/SentryDiagnosticsAdapter.d.ts +2 -1
- package/dist/model/adapters/diagnostics/SentryDiagnosticsAdapter.types.d.ts +1 -1
- package/dist/model/config/{diagnostics.d.ts → diagnostics.config.d.ts} +1 -1
- package/dist/model/config/domain.config.d.ts +6 -0
- package/dist/model/config/kernel.config.d.ts +44 -0
- package/dist/model/config/{endge-modules.d.ts → modules.config.d.ts} +1 -0
- package/dist/model/config/{ui-composition-defaults.d.ts → ui-composition.config.d.ts} +1 -0
- package/dist/model/{endge/kernel → kernel}/endge.d.ts +54 -52
- package/dist/model/{endge → modules}/context/endge-configuration.d.ts +2 -2
- package/dist/model/{endge → modules}/context/endge-context.d.ts +13 -34
- package/dist/model/{endge → modules}/context/endge-vars.d.ts +1 -2
- package/dist/model/{endge → modules}/context/endge-workspace.d.ts +2 -2
- package/dist/model/{endge → modules}/diagnostics/endge-diagnostics.d.ts +3 -2
- package/dist/model/{endge → modules}/diagnostics/endge-problems.d.ts +1 -1
- package/dist/model/{endge → modules}/diagnostics/endge-telemetry.d.ts +2 -1
- package/dist/model/modules/domain/endge-domain-repository.d.ts +60 -0
- package/dist/model/{endge → modules}/domain/endge-domain.d.ts +38 -21
- package/dist/model/modules/domain/endge-types.d.ts +12 -0
- package/dist/model/{endge → modules}/domain/resolved/resolved-entity-index.d.ts +2 -2
- package/dist/model/{endge/kernel → modules/events}/endge-events.d.ts +1 -2
- package/dist/model/{endge → modules}/mock/EndgeMock.d.ts +1 -1
- package/dist/model/{endge → modules}/program/endge-compiler.d.ts +10 -0
- package/dist/model/{endge → modules}/program/endge-program.d.ts +6 -0
- package/dist/model/{endge → modules}/runtime/core/endge-bind.d.ts +1 -1
- package/dist/model/{endge → modules}/runtime/execution/computation/ComputationGraphExecutor.d.ts +2 -1
- package/dist/model/{endge → modules}/runtime/execution/computation/ComputationResource.d.ts +2 -2
- package/dist/model/{endge → modules}/runtime/execution/computation/ComputationResourceRegistry.d.ts +1 -1
- package/dist/model/{endge → modules}/runtime/execution/computation/EndgeComputation.d.ts +8 -1
- package/dist/model/{endge → modules}/runtime/input/endge-sse.d.ts +1 -10
- package/dist/model/modules/security/auth/AuthAdapterRegistry.d.ts +13 -0
- package/dist/model/modules/security/auth/AuthProfileRegistry.d.ts +32 -0
- package/dist/model/modules/security/auth/AuthRequestResolver.d.ts +11 -0
- package/dist/model/modules/security/auth/AuthSessionManager.d.ts +63 -0
- package/dist/model/modules/security/auth/AuthSessionStore.d.ts +20 -0
- package/dist/model/modules/security/auth/adapters/BearerAuthAdapter.d.ts +10 -0
- package/dist/model/modules/security/auth/adapters/KeycloakAuthAdapter.d.ts +25 -0
- package/dist/model/modules/security/endge-auth.d.ts +29 -0
- package/dist/model/{endge → modules}/ui/endge-styles.d.ts +1 -1
- package/dist/model/{endge → modules}/ui/registry/UIAdapterRegistry.d.ts +2 -0
- package/dist/model/services/auth/KeycloakAuthClient.d.ts +19 -15
- package/dist/model/services/compiler/component-sfc/component-sfc-built-in-tags.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-compile.d.ts +7 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-dependencies.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-expression.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-forward.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-parse.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-script.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-source-parts.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-style.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +9 -10
- package/dist/model/services/compiler/component-sfc/component-sfc-table-pin.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-sort.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-visibility.d.ts +2 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-template.d.ts +7 -3
- package/dist/model/services/compiler/computation/computation-compile.d.ts +1 -3
- package/dist/model/services/configuration/endge-configuration.d.ts +1 -1
- package/dist/model/services/document/domain-provider.d.ts +10 -0
- package/dist/model/services/document/endge-service-document-serializer.d.ts +5 -0
- package/dist/model/services/runtime/strategies/StreamRuntimeStrategy.d.ts +9 -0
- package/dist/model/services/runtime/transports/BrowserSseStreamTransportFactory.d.ts +5 -0
- package/dist/model/services/source-engine/compilers/stream-source-compile.d.ts +3 -0
- package/dist/model/services/source-engine/compilers/update-source-compile.d.ts +3 -0
- package/dist/model/services/source-engine/component-sfc/component-sfc-metadata-source-patch.d.ts +1 -1
- package/dist/model/services/source-engine/component-sfc/component-sfc-ports-source-patch.d.ts +1 -1
- package/dist/model/services/source-engine/component-sfc/component-sfc-props-source-patch.d.ts +2 -1
- package/dist/model/services/source-engine/component-sfc/component-sfc-table-source-patch.d.ts +1 -1
- package/dist/model/services/source-engine/component-sfc/component-sfc-visual-projection.d.ts +1 -1
- package/dist/model/services/source-engine/filter-source-patch.d.ts +12 -0
- package/dist/model/services/source-engine/migrations/query-source-v1-migration.d.ts +17 -0
- package/dist/model/services/source-engine/source-document-reference.d.ts +12 -1
- package/dist/model/services/source-engine/strategies/CompositionSourceLanguageStrategy.d.ts +1 -0
- package/dist/model/services/source-engine/strategies/ComputationSourceLanguageStrategy.d.ts +1 -0
- package/dist/model/services/source-engine/strategies/DataViewSourceLanguageStrategy.d.ts +1 -0
- package/dist/model/services/source-engine/strategies/FilterSourceLanguageStrategy.d.ts +1 -0
- package/dist/model/services/source-engine/strategies/FilterSourcePatchStrategy.d.ts +10 -0
- package/dist/model/services/source-engine/strategies/QuerySourceLanguageStrategy.d.ts +1 -0
- package/dist/model/services/source-engine/strategies/StoreSourceLanguageStrategy.d.ts +1 -0
- package/dist/model/services/source-engine/strategies/StreamSourceEngineStrategy.d.ts +7 -0
- package/dist/model/services/source-engine/strategies/StreamSourceLanguageStrategy.d.ts +10 -0
- package/dist/model/services/source-engine/strategies/TypeSourceLanguageStrategy.d.ts +1 -9
- package/dist/model/services/source-engine/strategies/UpdateSourceEngineStrategy.d.ts +7 -0
- package/dist/model/services/source-engine/strategies/UpdateSourceLanguageStrategy.d.ts +10 -0
- package/dist/model/services/source-engine/templates/stream.default.source.d.ts +1 -0
- package/dist/model/services/source-engine/templates/update.default.source.d.ts +1 -0
- package/dist/model/services/style/endgecss-compile.d.ts +1 -1
- package/dist/model/services/style/endgecss-match.d.ts +1 -1
- package/dist/test/model/services/source-engine/value-expression-operations.test.d.ts +1 -0
- package/dist/test/security/auth-adapters-and-profiles.test.d.ts +1 -0
- package/dist/test/security/auth-session-manager.test.d.ts +1 -0
- package/dist/test/security/auth-session-store.test.d.ts +1 -0
- package/dist/test/security/auth-sse.test.d.ts +1 -0
- package/dist/test/security/auth-test-helpers.d.ts +13 -0
- package/package.json +14 -14
- package/dist/domain/types/auth/auth.types.d.ts +0 -78
- package/dist/domain/types/auth/index.d.ts +0 -2
- package/dist/domain/types/component/index.d.ts +0 -3
- package/dist/domain/types/component/sfc/index.d.ts +0 -14
- package/dist/domain/types/computation/index.d.ts +0 -1
- package/dist/domain/types/configuration/index.d.ts +0 -1
- package/dist/domain/types/diagnostics/index.d.ts +0 -2
- package/dist/domain/types/document/index.d.ts +0 -11
- package/dist/domain/types/document/schema.types.d.ts +0 -102
- package/dist/domain/types/flow/index.d.ts +0 -4
- package/dist/domain/types/kernel/index.d.ts +0 -4
- package/dist/domain/types/mock/index.d.ts +0 -1
- package/dist/domain/types/program/index.d.ts +0 -2
- package/dist/domain/types/runtime/index.d.ts +0 -17
- package/dist/domain/types/source/index.d.ts +0 -8
- package/dist/domain/types/style/index.d.ts +0 -1
- package/dist/domain/types/ui/index.d.ts +0 -6
- package/dist/model/adapters/diagnostics/index.d.ts +0 -4
- package/dist/model/config/compiler.d.ts +0 -11
- package/dist/model/config/computation.d.ts +0 -3
- package/dist/model/config/endge-workspace.d.ts +0 -9
- package/dist/model/config/events.d.ts +0 -16
- package/dist/model/config/index.d.ts +0 -7
- package/dist/model/config/mock-providers.d.ts +0 -3
- package/dist/model/config/persistance_config.d.ts +0 -6
- package/dist/model/config/storage_config.d.ts +0 -4
- package/dist/model/db/repositories/Actions_Repository.d.ts +0 -41
- package/dist/model/db/repositories/AuthProfiles_Repository.d.ts +0 -28
- package/dist/model/db/repositories/ComponentSFCs_Repository.d.ts +0 -31
- package/dist/model/db/repositories/Components_Repository.d.ts +0 -64
- package/dist/model/db/repositories/Compositions_Repository.d.ts +0 -30
- package/dist/model/db/repositories/Computations_Repository.d.ts +0 -30
- package/dist/model/db/repositories/Converters_Repository.d.ts +0 -49
- package/dist/model/db/repositories/DataViews_Repository.d.ts +0 -30
- package/dist/model/db/repositories/Environments_Repository.d.ts +0 -48
- package/dist/model/db/repositories/Filters_Repository.d.ts +0 -61
- package/dist/model/db/repositories/Folders_Repository.d.ts +0 -36
- package/dist/model/db/repositories/I18nBundles_Repository.d.ts +0 -51
- package/dist/model/db/repositories/Integrations_Repository.d.ts +0 -42
- package/dist/model/db/repositories/Mocks_Repository.d.ts +0 -39
- package/dist/model/db/repositories/Navigations_Repository.d.ts +0 -41
- package/dist/model/db/repositories/PageTemplates_Repository.d.ts +0 -62
- package/dist/model/db/repositories/Pages_Repository.d.ts +0 -95
- package/dist/model/db/repositories/Parameters_Repository.d.ts +0 -60
- package/dist/model/db/repositories/Policies_Repository.d.ts +0 -39
- package/dist/model/db/repositories/Projects_Repository.d.ts +0 -38
- package/dist/model/db/repositories/Queries_Repository.d.ts +0 -32
- package/dist/model/db/repositories/Stores_Repository.d.ts +0 -27
- package/dist/model/db/repositories/Styles_Repository.d.ts +0 -34
- package/dist/model/db/repositories/Tenants_Repository.d.ts +0 -47
- package/dist/model/db/repositories/Types_Repository.d.ts +0 -58
- package/dist/model/db/repositories/Versions_Repository.d.ts +0 -15
- package/dist/model/db/repositories/Vocabs_Repository.d.ts +0 -67
- package/dist/model/db/repositories/Workspaces_Repository.d.ts +0 -24
- package/dist/model/db/repositories/payload-api.d.ts +0 -10
- package/dist/model/db/schema-database/BaseSchemaRepositoriy.d.ts +0 -19
- package/dist/model/db/schema-database/PayloadSchemaAdapter.d.ts +0 -34
- package/dist/model/db/schema-database/SchemaStorageAdapter.d.ts +0 -40
- package/dist/model/endge/context/index.d.ts +0 -8
- package/dist/model/endge/diagnostics/index.d.ts +0 -4
- package/dist/model/endge/domain/index.d.ts +0 -2
- package/dist/model/endge/kernel/index.d.ts +0 -2
- package/dist/model/endge/program/index.d.ts +0 -3
- package/dist/model/endge/runtime/core/index.d.ts +0 -4
- package/dist/model/endge/runtime/execution/index.d.ts +0 -3
- package/dist/model/endge/runtime/flow/index.d.ts +0 -2
- package/dist/model/endge/runtime/index.d.ts +0 -4
- package/dist/model/endge/runtime/input/index.d.ts +0 -1
- package/dist/model/endge/schema/endge-schema-database.d.ts +0 -268
- package/dist/model/endge/schema/index.d.ts +0 -1
- package/dist/model/endge/security/endge-auth-profiles.d.ts +0 -70
- package/dist/model/endge/security/endge-auth.d.ts +0 -143
- package/dist/model/endge/security/index.d.ts +0 -2
- package/dist/model/endge/ui/index.d.ts +0 -4
- package/dist/model/services/auth/AuthTokenService.d.ts +0 -25
- package/dist/model/services/configuration/index.d.ts +0 -1
- package/dist/model/services/style/index.d.ts +0 -2
- /package/dist/model/{endge → modules}/context/endge-i18n.d.ts +0 -0
- /package/dist/model/{endge → modules}/context/persistence/EndgeStorageAdapterRegistry.d.ts +0 -0
- /package/dist/model/{endge → modules}/context/persistence/RuntimeStateController.d.ts +0 -0
- /package/dist/model/{endge → modules}/context/persistence/adapters/DisabledContextAdapter.d.ts +0 -0
- /package/dist/model/{endge → modules}/context/persistence/adapters/LocalStorageContextAdapter.d.ts +0 -0
- /package/dist/model/{endge → modules}/diagnostics/endge-runtime-debugger.d.ts +0 -0
- /package/dist/model/{endge → modules}/domain/endge-vocabs.d.ts +0 -0
- /package/dist/model/{endge → modules}/program/endge-source.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/core/endge-actions.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/core/endge-runtime.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/core/endge-updates.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/execution/endge-composition.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/execution/endge-computation.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/execution/endge-data-view.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/execution/endge-project.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/execution/endge-query.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/flow/endge-flow-registry.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/flow/endge-flow.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/implementation/endge-implementations.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/implementation/implementation-binding-registry.d.ts +0 -0
- /package/dist/model/{endge → modules}/runtime/implementation/implementation-provider-registry.d.ts +0 -0
- /package/dist/model/{endge → modules}/ui/endge-ui-registry.d.ts +0 -0
- /package/dist/model/{endge → modules}/ui/endge-ui.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/context/endge-context.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/context/endge-workspace.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/context/workspace-variables.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/domain/endge-domain-export.test.d.ts +0 -0
- /package/dist/test/model/{db/repositories/types-repository.test.d.ts → modules/domain/service-backend-snapshot.test.d.ts} +0 -0
- /package/dist/test/model/{endge → modules}/domain/type-identity-index.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/mock/EndgeMock.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-component-tags.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-composition.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-computation.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-metadata.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-ports.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-query-auth.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-store-mock.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-compiler-type.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-program.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/program/endge-source.test.d.ts +0 -0
- /package/dist/test/model/{endge → modules}/runtime/computation-resource.test.d.ts +0 -0
- /package/dist/test/model/{endge/runtime/endge-project.test.d.ts → modules/runtime/computation-source-preview.test.d.ts} +0 -0
- /package/dist/test/model/{endge/runtime/execution/endge-data-view-converter.test.d.ts → modules/runtime/endge-project.test.d.ts} +0 -0
- /package/dist/test/model/{endge/runtime/execution/endge-data-view.test.d.ts → modules/runtime/execution/endge-data-view-converter.test.d.ts} +0 -0
- /package/dist/test/model/{endge/schema/component-sfc-payload.test.d.ts → modules/runtime/execution/endge-data-view.test.d.ts} +0 -0
- /package/dist/test/model/{endge/schema/computation-payload.test.d.ts → services/compiler/component-sfc/component-sfc-editable.test.d.ts} +0 -0
- /package/dist/test/model/{endge/schema/document-create.test.d.ts → services/compiler/computation/groundhandling-process-state.test.d.ts} +0 -0
- /package/dist/test/model/{endge/schema/endge-schema-workspace.test.d.ts → services/compiler/type/type-program-validation.test.d.ts} +0 -0
- /package/dist/test/model/{endge/schema/style-payload.test.d.ts → services/source-engine/composition-component-events.test.d.ts} +0 -0
- /package/dist/test/model/{endge/schema/type-payload.test.d.ts → services/source-engine/query-source-v1-migration.test.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiagnosticsRecord, DiagnosticsSignal } from '../../types/diagnostics';
|
|
1
|
+
import { DiagnosticsRecord, DiagnosticsSignal } from '../../types/diagnostics/diagnostics.types';
|
|
2
2
|
/** Ограниченное кольцевое хранилище diagnostic records с основными индексами. */
|
|
3
3
|
export declare class DiagnosticsRecordStore {
|
|
4
4
|
private _capacity;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiagnosticsAttributes, DiagnosticsExceptionOptions, DiagnosticsInstrumentationScope, DiagnosticsLogInput, DiagnosticsLogRecord, DiagnosticsSpanEndOptions, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanOwner, DiagnosticsSpanRecord } from '../../types/diagnostics';
|
|
1
|
+
import { DiagnosticsAttributes, DiagnosticsExceptionOptions, DiagnosticsInstrumentationScope, DiagnosticsLogInput, DiagnosticsLogRecord, DiagnosticsSpanEndOptions, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanOwner, DiagnosticsSpanRecord } from '../../types/diagnostics/diagnostics.types';
|
|
2
2
|
/** Управляет одним активным span и завершает его через owner-модуль. */
|
|
3
3
|
export declare class DiagnosticsSpan implements DiagnosticsSpanHandle {
|
|
4
4
|
private readonly _owner;
|
|
@@ -10,10 +10,8 @@ import { EndgeModule } from './EndgeModule';
|
|
|
10
10
|
export declare abstract class EndgeFederation {
|
|
11
11
|
protected static readonly federationId: string;
|
|
12
12
|
protected static readonly storageKey: string | null;
|
|
13
|
-
private static readonly REGISTRY_KEY;
|
|
14
13
|
static get isInitialized(): boolean;
|
|
15
14
|
static get isConfigured(): boolean;
|
|
16
|
-
static get isLoadingFromStorage(): boolean;
|
|
17
15
|
/**
|
|
18
16
|
* Хук для одноразовой регистрации модулей в порядке вызова.
|
|
19
17
|
*/
|
|
@@ -32,6 +30,10 @@ export declare abstract class EndgeFederation {
|
|
|
32
30
|
* Итоговый порядок строится после установки plugin-модулей.
|
|
33
31
|
*/
|
|
34
32
|
static defineModule<T extends EndgeModule>(descriptor: EndgeModuleDescriptor<T>): T;
|
|
33
|
+
/**
|
|
34
|
+
* Декларирует модули федерации.
|
|
35
|
+
* Итоговый порядок строится после установки plugin-модулей.
|
|
36
|
+
*/
|
|
35
37
|
static defineModules(descriptors: EndgeModuleDescriptor[]): void;
|
|
36
38
|
/**
|
|
37
39
|
* Выполняет `setup()` для всех модулей один раз до первого `start()`.
|
|
@@ -8,7 +8,6 @@ export declare class RAuthProfile extends REntity {
|
|
|
8
8
|
credentialRefs: AuthProfileCredentialRefs;
|
|
9
9
|
persist: AuthProfilePersist;
|
|
10
10
|
active: boolean;
|
|
11
|
-
static fromPayload(raw: any): RAuthProfile;
|
|
12
11
|
static fromPlain(raw: any): RAuthProfile;
|
|
13
12
|
toPlain(): Record<string, unknown>;
|
|
14
13
|
duplicate(options: DuplicateOptions): RAuthProfile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuplicateOptions } from './REntity';
|
|
2
2
|
import { RComponentCore } from './RComponentCore';
|
|
3
|
-
import { RComponentSFCSource_Parts } from '../../types/component/sfc';
|
|
3
|
+
import { RComponentSFCSource_Parts } from '../../types/component/sfc/source.types';
|
|
4
4
|
import { ComponentType } from '../../types/document/document.types';
|
|
5
5
|
/**
|
|
6
6
|
* Новый SFC-компонент Endge.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { DiagnosticsProblemInput } from '../../types/diagnostics';
|
|
3
|
-
import { RField } from './RField';
|
|
2
|
+
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
4
3
|
/** Persisted executable specification. Runtime execution is provided separately. */
|
|
5
4
|
export declare class RComputation extends REntity {
|
|
6
5
|
displayName: string;
|
|
@@ -8,9 +7,6 @@ export declare class RComputation extends REntity {
|
|
|
8
7
|
source: string;
|
|
9
8
|
sourceVersion: number;
|
|
10
9
|
contractVersion: number;
|
|
11
|
-
input: RField | null;
|
|
12
|
-
output: RField | null;
|
|
13
|
-
static fromPayload(json: any): RComputation;
|
|
14
10
|
static fromPlain(json: any, storageMeta?: any): RComputation;
|
|
15
11
|
toPlain(): Record<string, unknown>;
|
|
16
12
|
/** Возвращает validation problems computation без mutable entity state. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { REntity } from './REntity';
|
|
2
|
-
import { EntityManagement } from '../../types/document';
|
|
2
|
+
import { EntityManagement } from '../../types/document/entity-management.type';
|
|
3
3
|
export interface RConverterSchema extends EntityManagement {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiagnosticsProblemInput } from '../../types/diagnostics';
|
|
1
|
+
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
2
2
|
import { EntityManagement, EntityOrigin, ManagedBy } from '../../types/document/entity-management.type';
|
|
3
3
|
/** Опции для дублирования сущности: новый identity и опционально имя. */
|
|
4
4
|
export interface DuplicateOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { EndgeConfigurationContribution } from '../../types/configuration';
|
|
2
|
+
import { EndgeConfigurationContribution } from '../../types/configuration/configuration.type';
|
|
3
3
|
/** Сущность окружения (коллекция environments). Без привязки к проекту. */
|
|
4
4
|
export declare class REnvironment extends REntity {
|
|
5
5
|
configuration: EndgeConfigurationContribution;
|
|
@@ -9,7 +9,6 @@ export declare class RFilter extends REntity {
|
|
|
9
9
|
/** Версия Filter source syntax. */
|
|
10
10
|
sourceVersion: number;
|
|
11
11
|
get type(): DomainDocumentType;
|
|
12
|
-
static fromPayload(raw: any): RFilter;
|
|
13
12
|
static fromPlain(json: RFilterSchema): RFilter;
|
|
14
13
|
toPlain(): RFilterSchema;
|
|
15
14
|
}
|
|
@@ -9,12 +9,10 @@ import { REntity } from './REntity';
|
|
|
9
9
|
export declare class RFolder extends REntity {
|
|
10
10
|
/** Отображаемое имя папки */
|
|
11
11
|
displayName: string;
|
|
12
|
-
/** Тип сущностей, для которых предназначена папка (collection slug
|
|
12
|
+
/** Тип сущностей, для которых предназначена папка (canonical collection slug). */
|
|
13
13
|
entityType: string | null;
|
|
14
14
|
/** Id родительской папки (null если корень). */
|
|
15
15
|
parent: string | number | null;
|
|
16
|
-
/** Загружает папку из формата Payload */
|
|
17
|
-
static fromPayload(json: any): RFolder;
|
|
18
16
|
/** Загружает папку из plain-schema (schema.toPlain()) */
|
|
19
17
|
static fromPlain(json: any): RFolder;
|
|
20
18
|
/** Экспорт только схемы (parent уже id в plain). */
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { DiagnosticsProblemInput } from '../../types/diagnostics';
|
|
2
|
+
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
3
3
|
/** Дерево сообщений по локали (формат vue-i18n). */
|
|
4
4
|
export type RI18nBundleLocales = Record<string, Record<string, unknown>>;
|
|
5
5
|
/** Сущность словаря переводов (коллекция i18n-bundles). Один документ = словарь с несколькими локалями. */
|
|
6
6
|
export declare class RI18nBundle extends REntity {
|
|
7
7
|
displayName: string;
|
|
8
8
|
description?: string | null;
|
|
9
|
-
/** По коду локали (ru, en) — дерево
|
|
9
|
+
/** По коду локали (ru, en) — дерево ключ-значение. */
|
|
10
10
|
locales: RI18nBundleLocales;
|
|
11
11
|
active: boolean;
|
|
12
|
-
static fromPayload(json: any): RI18nBundle;
|
|
13
12
|
static fromPlain(json: any): RI18nBundle;
|
|
14
13
|
toPlain(): Record<string, unknown>;
|
|
15
14
|
/** Возвращает validation problems i18n bundle без mutable entity state. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { EntityManagement } from '../../types/document';
|
|
2
|
+
import { EntityManagement } from '../../types/document/entity-management.type';
|
|
3
3
|
export interface RIntegrationSchema extends EntityManagement {
|
|
4
4
|
id: string | number;
|
|
5
5
|
identity: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { RMockContentSource, RMockContentType } from '../../types/mock';
|
|
3
|
-
import { DiagnosticsProblemInput } from '../../types/diagnostics';
|
|
4
|
-
/** Persisted
|
|
2
|
+
import { RMockContentSource, RMockContentType } from '../../types/mock/mock-data.type';
|
|
3
|
+
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
4
|
+
/** Persisted source-first mock document. */
|
|
5
5
|
export declare class RMock extends REntity {
|
|
6
6
|
displayName: string;
|
|
7
7
|
description: string | null;
|
|
@@ -9,8 +9,6 @@ export declare class RMock extends REntity {
|
|
|
9
9
|
contentType: RMockContentType;
|
|
10
10
|
source: string;
|
|
11
11
|
codeRef: string | null;
|
|
12
|
-
/** Создает доменную модель из Payload response. */
|
|
13
|
-
static fromPayload(json: any): RMock;
|
|
14
12
|
/** Создает доменную модель из portable plain source. */
|
|
15
13
|
static fromPlain(json: any, storageMeta?: any): RMock;
|
|
16
14
|
/** Возвращает portable persisted representation. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
2
|
import { DomainDocumentType } from '../../types/document/document.types';
|
|
3
3
|
import { NavigationTreeNodeDoc } from '../../types/document/navigation.types';
|
|
4
|
-
import { EntityManagement } from '../../types/document';
|
|
4
|
+
import { EntityManagement } from '../../types/document/entity-management.type';
|
|
5
5
|
export interface RNavigationSchema extends EntityManagement {
|
|
6
6
|
id: string;
|
|
7
7
|
identity: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
2
|
import { DomainDocumentType } from '../../types/document/document.types';
|
|
3
|
-
import { EntityManagement } from '../../types/document';
|
|
3
|
+
import { EntityManagement } from '../../types/document/entity-management.type';
|
|
4
4
|
export interface RPageAreaBlockSchema {
|
|
5
5
|
key: string;
|
|
6
6
|
entityType?: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
2
|
import { DomainDocumentType } from '../../types/document/document.types';
|
|
3
|
-
import { EntityManagement } from '../../types/document';
|
|
3
|
+
import { EntityManagement } from '../../types/document/entity-management.type';
|
|
4
4
|
export interface RPageTemplateAreaSchema {
|
|
5
5
|
identity: string;
|
|
6
6
|
title?: string | null;
|
|
@@ -7,7 +7,6 @@ export declare class RParameter extends REntity {
|
|
|
7
7
|
fields: Map<string, FilterFieldSchema>;
|
|
8
8
|
runtimeFilters: RuntimeFilterLinkEntity[];
|
|
9
9
|
get type(): DomainDocumentType;
|
|
10
|
-
static fromPayload(raw: any): RParameter;
|
|
11
10
|
static fromPlain(json: RParameterSchema): RParameter;
|
|
12
11
|
toPlain(): RParameterSchema;
|
|
13
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EndgeConfigurationContribution } from '../../types/configuration';
|
|
2
|
-
import { DiagnosticsProblemInput } from '../../types/diagnostics';
|
|
1
|
+
import { EndgeConfigurationContribution } from '../../types/configuration/configuration.type';
|
|
2
|
+
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
3
3
|
import { REntity } from './REntity';
|
|
4
4
|
/**
|
|
5
5
|
* Доменная сущность для проекта (projects).
|
|
@@ -22,9 +22,9 @@ export declare class RProject extends REntity {
|
|
|
22
22
|
slug?: string | null;
|
|
23
23
|
/** Порядок сортировки в списке */
|
|
24
24
|
order?: number | null;
|
|
25
|
-
/** Id навигации (relationship
|
|
25
|
+
/** Id навигации (relationship - navigations) */
|
|
26
26
|
navigationId?: number | null;
|
|
27
|
-
/** Список разрешённых окружений проекта (relationship[]
|
|
27
|
+
/** Список разрешённых окружений проекта (relationship[] - environments). */
|
|
28
28
|
allowedEnvironmentIds: number[];
|
|
29
29
|
/**
|
|
30
30
|
* Создание проекта из payload-документа:
|
|
@@ -40,7 +40,6 @@ export declare class RProject extends REntity {
|
|
|
40
40
|
* ...
|
|
41
41
|
* }
|
|
42
42
|
*/
|
|
43
|
-
static fromPayload(json: any): RProject;
|
|
44
43
|
/**
|
|
45
44
|
* Создание проекта из plain-схемы (schema.toPlain()).
|
|
46
45
|
*
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
+
/** Persisted source-first definition of a normalized event stream. */
|
|
3
|
+
export declare class RStream extends REntity {
|
|
4
|
+
readonly type: "stream";
|
|
5
|
+
source: string;
|
|
6
|
+
sourceVersion: number;
|
|
7
|
+
duplicate(options: DuplicateOptions): RStream;
|
|
8
|
+
}
|
|
@@ -7,7 +7,6 @@ export declare class RStyle extends REntity {
|
|
|
7
7
|
description: string | null;
|
|
8
8
|
source: string;
|
|
9
9
|
sourceVersion: number;
|
|
10
|
-
static fromPayload(json: any): RStyle;
|
|
11
10
|
static fromPlain(json: any, storageMeta?: any): RStyle;
|
|
12
11
|
toPlain(): Record<string, unknown>;
|
|
13
12
|
duplicate(options: DuplicateOptions): RStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { EndgeConfigurationContribution } from '../../types/configuration';
|
|
2
|
+
import { EndgeConfigurationContribution } from '../../types/configuration/configuration.type';
|
|
3
3
|
/** Сущность тенанта (коллекция tenants). */
|
|
4
4
|
export declare class RTenant extends REntity {
|
|
5
5
|
configuration: EndgeConfigurationContribution;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { RField } from './RField';
|
|
2
1
|
import { REntity } from './REntity';
|
|
3
2
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Содержит название и список полей.
|
|
3
|
+
* Source-first доменная сущность типа.
|
|
6
4
|
*/
|
|
7
5
|
export declare class RType extends REntity {
|
|
8
6
|
get id(): string;
|
|
9
7
|
name: string;
|
|
10
8
|
isPrimitive: boolean;
|
|
11
|
-
/**
|
|
9
|
+
/** Каноническое структурное определение типа. */
|
|
12
10
|
source: string;
|
|
13
11
|
sourceVersion: number;
|
|
14
|
-
fields: Map<string, RField>;
|
|
15
12
|
constructor(name: string);
|
|
16
|
-
addField(field: RField): void;
|
|
17
|
-
getField(fieldName: string | number): RField | null;
|
|
18
|
-
hasField(fieldName: string | number): boolean;
|
|
19
|
-
getFields(): string[];
|
|
20
13
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
+
/** Persisted source-first Store-owned mutation definition. */
|
|
3
|
+
export declare class RUpdate extends REntity {
|
|
4
|
+
readonly type: "update";
|
|
5
|
+
/** Stable identity of the only Store that may execute this Update. */
|
|
6
|
+
storeIdentity: string;
|
|
7
|
+
source: string;
|
|
8
|
+
sourceVersion: number;
|
|
9
|
+
duplicate(options: DuplicateOptions): RUpdate;
|
|
10
|
+
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* data подгружается только по требованию (скачивание).
|
|
4
4
|
*/
|
|
5
5
|
export declare class RVersion {
|
|
6
|
-
/** Payload id (в Payload - число) */
|
|
7
6
|
id: number;
|
|
8
7
|
identity: string;
|
|
9
8
|
description: string;
|
|
@@ -11,9 +10,9 @@ export declare class RVersion {
|
|
|
11
10
|
data?: any;
|
|
12
11
|
createdAt?: string;
|
|
13
12
|
updatedAt?: string;
|
|
14
|
-
/** Заполнить из
|
|
15
|
-
static
|
|
16
|
-
id:
|
|
13
|
+
/** Заполнить из persisted document (без data для списка). */
|
|
14
|
+
static fromPlain(doc: {
|
|
15
|
+
id: number;
|
|
17
16
|
identity?: string;
|
|
18
17
|
description?: string;
|
|
19
18
|
data?: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { DiagnosticsProblemInput } from '../../types/diagnostics';
|
|
2
|
+
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
3
3
|
export type RVocabMode = 'external_payload' | 'internal';
|
|
4
4
|
/** Сущность словаря (коллекция vocabs). Один документ = один словарь. */
|
|
5
5
|
export declare class RVocabs extends REntity {
|
|
@@ -9,9 +9,8 @@ export declare class RVocabs extends REntity {
|
|
|
9
9
|
baseApiUrl?: string | null;
|
|
10
10
|
collectionSlug?: string | null;
|
|
11
11
|
active: boolean;
|
|
12
|
-
authMode: 'inherit' | 'profile' | '
|
|
12
|
+
authMode: 'inherit' | 'profile' | 'none';
|
|
13
13
|
authProfileIdentity?: string | null;
|
|
14
|
-
static fromPayload(json: any): RVocabs;
|
|
15
14
|
static fromPlain(json: any): RVocabs;
|
|
16
15
|
toPlain(): Record<string, unknown>;
|
|
17
16
|
/** Возвращает validation problems vocab без mutable entity state. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EndgeConfiguration } from '../../types/configuration';
|
|
1
|
+
import { EndgeConfiguration } from '../../types/configuration/configuration.type';
|
|
2
2
|
import { EndgeDataMode, EndgeWorkspaceDefinition, WorkspaceIntegrationReference } from '../../types/document/workspace.types';
|
|
3
3
|
import { REntity } from './REntity';
|
|
4
4
|
/** Persisted Workspace root with one complete configuration document. */
|
|
@@ -8,7 +8,6 @@ export declare class RWorkspace extends REntity implements EndgeWorkspaceDefinit
|
|
|
8
8
|
configuration: EndgeConfiguration;
|
|
9
9
|
installedIntegrations: WorkspaceIntegrationReference[];
|
|
10
10
|
static fromPlain(input: unknown): RWorkspace;
|
|
11
|
-
static fromPayload(input: unknown): RWorkspace;
|
|
12
11
|
toPlain(): EndgeWorkspaceDefinition;
|
|
13
12
|
}
|
|
14
13
|
export declare function normalizeEndgeWorkspaceDefinition(input: unknown): EndgeWorkspaceDefinition;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentSFCRuntimeHost } from './hosts/ComponentSFCRuntimeHost';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentSFCEventRuntimeSource, ComponentSFCPortManifest } from '../../types/component/sfc/ports.types';
|
|
3
|
+
import { RComponentSFC_IR_EventBinding } from '../../types/component/sfc/ir.types';
|
|
3
4
|
/** Mount-scoped Event router for one Component SFC artifact boundary. */
|
|
4
5
|
export declare class ComponentSFCEventBoundary {
|
|
5
6
|
private readonly host;
|
|
@@ -8,13 +9,20 @@ export declare class ComponentSFCEventBoundary {
|
|
|
8
9
|
private readonly parent;
|
|
9
10
|
private readonly parentSource?;
|
|
10
11
|
private readonly parentBindings;
|
|
12
|
+
private readonly parentEventTransform?;
|
|
11
13
|
private readonly consumedLocalOnce;
|
|
12
|
-
constructor(host: ComponentSFCRuntimeHost | null, componentIdentity: string, manifest: ComponentSFCPortManifest, parent?: ComponentSFCEventBoundary | null, parentSource?: ComponentSFCEventRuntimeSource | undefined, parentBindings?: readonly RComponentSFC_IR_EventBinding[])
|
|
13
|
-
|
|
14
|
+
constructor(host: ComponentSFCRuntimeHost | null, componentIdentity: string, manifest: ComponentSFCPortManifest, parent?: ComponentSFCEventBoundary | null, parentSource?: ComponentSFCEventRuntimeSource | undefined, parentBindings?: readonly RComponentSFC_IR_EventBinding[], parentEventTransform?: ((event: string, payload: unknown) => {
|
|
15
|
+
event: string;
|
|
16
|
+
payload: unknown;
|
|
17
|
+
} | null) | undefined);
|
|
18
|
+
createChild(componentIdentity: string, manifest: ComponentSFCPortManifest, source: ComponentSFCEventRuntimeSource, bindings?: readonly RComponentSFC_IR_EventBinding[], transform?: (event: string, payload: unknown) => {
|
|
19
|
+
event: string;
|
|
20
|
+
payload: unknown;
|
|
21
|
+
} | null): ComponentSFCEventBoundary;
|
|
14
22
|
/** True when the current public manifest observes one Event of this child source. */
|
|
15
23
|
observesChild(source: ComponentSFCEventRuntimeSource, event: string): boolean;
|
|
16
24
|
/** Runs local `@event` reactions, then routes the occurrence unless `.stop` is present. */
|
|
17
|
-
routeChild(source: ComponentSFCEventRuntimeSource, event: string, payload: unknown, bindings?: readonly RComponentSFC_IR_EventBinding[], trace?: string[], depth?: number): Promise<void>;
|
|
25
|
+
routeChild(source: ComponentSFCEventRuntimeSource, event: string, payload: unknown, bindings?: readonly RComponentSFC_IR_EventBinding[], trace?: string[], depth?: number, scope?: Record<string, unknown>): Promise<void>;
|
|
18
26
|
/** Receives an intrinsic or nested child occurrence and resolves public ports by origin. */
|
|
19
27
|
emitChild(source: ComponentSFCEventRuntimeSource, event: string, payload: unknown, trace?: string[], depth?: number): Promise<void>;
|
|
20
28
|
/** Emits an Event declared as own by this component. */
|
|
@@ -13,7 +13,7 @@ export declare class RuntimeScopeRegistry {
|
|
|
13
13
|
transaction<T>(operation: () => T): T;
|
|
14
14
|
get(id: string): RuntimeScope | null;
|
|
15
15
|
getAll(): RuntimeScope[];
|
|
16
|
-
snapshot(): import('
|
|
16
|
+
snapshot(): import('../../../main').RuntimeScopeSnapshot[];
|
|
17
17
|
attachRuntime(scopeId: string, host: RuntimeHost<any, any>): void;
|
|
18
18
|
detachRuntime(runtimeId: string): void;
|
|
19
19
|
getByRuntime(runtimeId: string): RuntimeScope | null;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { RComponentSFC } from '../../reflect/RComponentSFC';
|
|
2
2
|
import { RComponentContract, RComponentDependencies, RComponentRenderTarget } from '../../../types/component/component-core.types';
|
|
3
|
-
import { RComponentSFC_AST
|
|
3
|
+
import { RComponentSFC_AST } from '../../../types/component/sfc/ast.types';
|
|
4
|
+
import { RComponentSFC_IR, ComponentSFCEditedEventPayload } from '../../../types/component/sfc/ir.types';
|
|
5
|
+
import { RComponentSFC_RuntimeDependencies } from '../../../types/component/sfc/dependencies.types';
|
|
6
|
+
import { RComponentSFCSource_Parts } from '../../../types/component/sfc/source.types';
|
|
4
7
|
import { ComponentSFCPreviewOptions, ComponentSFCProgramPayload, ProgramDiagnostic } from '../../../types/program/program.types';
|
|
8
|
+
import { ComponentSFCEventOccurrence, ComponentSFCEventPort, ComponentSFCEventRuntimeSource } from '../../../types/component/sfc/ports.types';
|
|
5
9
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext, RuntimeHostInputSource, RuntimeHostUpdateContext } from '../../../types/runtime/runtime-host.types';
|
|
6
|
-
import { ComputationResource } from '../../../types/computation';
|
|
10
|
+
import { ComputationResource } from '../../../types/computation/computation-runtime.types';
|
|
7
11
|
import { SourceFieldOption } from '../../../types/source/source-expression.types';
|
|
8
12
|
import { VocabOptionMapping } from '../../../types/runtime/vocab-cache.types';
|
|
9
13
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
14
|
+
export interface ComponentSFCEditSession {
|
|
15
|
+
key: string;
|
|
16
|
+
originalValue: unknown;
|
|
17
|
+
draftValue: unknown;
|
|
18
|
+
baseVariant: string;
|
|
19
|
+
}
|
|
10
20
|
/**
|
|
11
21
|
* Runtime-host нового SFC-компонента.
|
|
12
22
|
*
|
|
@@ -21,6 +31,7 @@ export declare class ComponentSFCRuntimeHost extends RuntimeHostBase<'component-
|
|
|
21
31
|
private _styleLease;
|
|
22
32
|
private readonly _eventPortListeners;
|
|
23
33
|
private readonly _vocabDisposers;
|
|
34
|
+
private _editSession;
|
|
24
35
|
constructor(input: {
|
|
25
36
|
id: string;
|
|
26
37
|
model: RComponentSFC;
|
|
@@ -70,9 +81,19 @@ export declare class ComponentSFCRuntimeHost extends RuntimeHostBase<'component-
|
|
|
70
81
|
/** Emits an own/public Event through the root Component SFC boundary. */
|
|
71
82
|
emitEventPort(name: string, payload: unknown, source?: ComponentSFCEventRuntimeSource): Promise<void>;
|
|
72
83
|
/** Executes one compiler-linked Event reaction for a renderer boundary. */
|
|
73
|
-
executeEventPortAction(ownerIdentity: string, port: ComponentSFCEventPort, payload: unknown, source: ComponentSFCEventRuntimeSource | undefined, emitOwn: (name: string, payload: unknown, trace: string[], depth: number) => Promise<void>, trace?: string[], depth?: number): Promise<void>;
|
|
84
|
+
executeEventPortAction(ownerIdentity: string, port: ComponentSFCEventPort, payload: unknown, source: ComponentSFCEventRuntimeSource | undefined, emitOwn: (name: string, payload: unknown, trace: string[], depth: number) => Promise<void>, trace?: string[], depth?: number, scope?: Record<string, unknown>): Promise<void>;
|
|
74
85
|
/** Publishes an already routed root Event without using the global Endge.events bus. */
|
|
75
86
|
publishEventPort(name: string, payload: unknown, source?: ComponentSFCEventRuntimeSource): void;
|
|
87
|
+
/** Возвращает активную host-owned edit-сессию конкретного renderer consumer. */
|
|
88
|
+
getEditSession(key: string): Readonly<ComponentSFCEditSession> | null;
|
|
89
|
+
/** Открывает единственную edit-сессию runtime; предыдущая отменяется без Event. */
|
|
90
|
+
beginEditSession(key: string, originalValue: unknown, baseVariant?: string): ComponentSFCEditSession;
|
|
91
|
+
/** Обновляет renderer-owned draft активной edit-сессии. */
|
|
92
|
+
updateEditDraft(key: string, value: unknown): void;
|
|
93
|
+
/** Завершает edit-сессию и возвращает нормализованный semantic payload. */
|
|
94
|
+
commitEditSession(key: string, value?: unknown): ComponentSFCEditedEventPayload | null;
|
|
95
|
+
/** Отменяет edit-сессию без публикации edited. */
|
|
96
|
+
cancelEditSession(key?: string): void;
|
|
76
97
|
/** Returns one host-owned computation resource isolated by renderer consumer scope. */
|
|
77
98
|
getComputationResource(identity: string, input: unknown, consumerKey: string, portName?: string): ComputationResource;
|
|
78
99
|
/** Обновляет input source и пересобирает Raph subscriptions host-а. */
|
|
@@ -92,6 +113,7 @@ export declare class ComponentSFCRuntimeHost extends RuntimeHostBase<'component-
|
|
|
92
113
|
destroy(): void;
|
|
93
114
|
private _emitRootEventPort;
|
|
94
115
|
private _executeEventActionEffect;
|
|
116
|
+
private _executeEventQueryEffect;
|
|
95
117
|
private _reportComputationError;
|
|
96
118
|
/** Синхронизирует runtime context с текущим compiled artifact. */
|
|
97
119
|
syncArtifactState(target: RComponentRenderTarget | null): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RComposition } from '../../reflect/RComposition';
|
|
2
2
|
import { FilterViewRuntimeHost } from './FilterViewRuntimeHost';
|
|
3
|
+
import { StoreMutationPlan } from '../../../types/source/update-source.types';
|
|
3
4
|
import { CompositionFilterFieldsSlice, CompositionProgramPayload, CompositionPublicOutputHandle, CompositionRuntimeActivationHandle, CompositionRuntimeChildHandle } from '../../../types/source/composition-source.types';
|
|
4
5
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext, RuntimeHostInputSource, RuntimeHostUpdateContext } from '../../../types/runtime/runtime-host.types';
|
|
5
6
|
import { I18nRuntimeCatalog } from '../../../types/i18n.types';
|
|
@@ -29,6 +30,8 @@ export declare class CompositionRuntimeHost extends RuntimeHostBase<'composition
|
|
|
29
30
|
private _vocabCatalogs;
|
|
30
31
|
private _orchestratedQueries;
|
|
31
32
|
private _orchestratedSuccesses;
|
|
33
|
+
private _streamBatches;
|
|
34
|
+
private _streamBatchTimers;
|
|
32
35
|
private _mounted;
|
|
33
36
|
constructor(input: {
|
|
34
37
|
id: string;
|
|
@@ -62,6 +65,10 @@ export declare class CompositionRuntimeHost extends RuntimeHostBase<'composition
|
|
|
62
65
|
getDataSnapshot(): Readonly<Record<string, unknown>>;
|
|
63
66
|
/** Возвращает текущие значения публичных Composition props. */
|
|
64
67
|
getProps(): Readonly<Record<string, unknown>>;
|
|
68
|
+
/** Imperative local mutation for UI flows that do not need a persisted RUpdate. */
|
|
69
|
+
mutateStore(dataAlias: string, plan: StoreMutationPlan): void;
|
|
70
|
+
/** Explicitly invokes one named Store-owned RUpdate outside Stream dispatch. */
|
|
71
|
+
applyStoreUpdate(dataAlias: string, updateIdentity: string, payload: unknown): void;
|
|
65
72
|
/** Устанавливает literal/Raph-backed источник публичных Composition props. */
|
|
66
73
|
setInputSource(input: RuntimeHostInputSource | null | undefined): void;
|
|
67
74
|
/** Проверяет обязательные props до создания child runtime graph. */
|
|
@@ -94,13 +101,18 @@ export declare class CompositionRuntimeHost extends RuntimeHostBase<'composition
|
|
|
94
101
|
private _publishUpdates;
|
|
95
102
|
protected onUpdate(ctx: RuntimeHostUpdateContext): void;
|
|
96
103
|
private _requireDataPath;
|
|
104
|
+
private _requireStoreRuntime;
|
|
97
105
|
private _resolveDataReference;
|
|
98
106
|
private _createChild;
|
|
99
107
|
private _bindChild;
|
|
108
|
+
private _bindStreamDispatch;
|
|
109
|
+
private _bindComponentDispatch;
|
|
110
|
+
private _flushStreamBatch;
|
|
100
111
|
private _makeOutputs;
|
|
101
112
|
/** Не допускает прямые и транзитивные циклы Composition runtime tree. */
|
|
102
113
|
private _assertCompositionCycle;
|
|
103
114
|
private _bindHooks;
|
|
115
|
+
private _executeComponentEventEffect;
|
|
104
116
|
private _runQuery;
|
|
105
117
|
/** Запускает все одновременно готовые Query hooks одним parallel batch. */
|
|
106
118
|
private _runQueries;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RStore } from '../../reflect/RStore';
|
|
2
2
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext } from '../../../types/runtime/runtime-host.types';
|
|
3
3
|
import { StoreDataDescriptor, StoreSourceArtifact } from '../../../types/source/store-source.types';
|
|
4
|
+
import { StoreMutationPlan } from '../../../types/source/update-source.types';
|
|
5
|
+
import { StreamEventEnvelope } from '../../../types/source/stream-source.types';
|
|
4
6
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
5
7
|
/** Runtime-владелец writable Store state и реактивных DataView projections. */
|
|
6
8
|
export declare class StoreRuntimeHost extends RuntimeHostBase<'store', RuntimeHostContext<'store'>, StoreSourceArtifact> {
|
|
@@ -31,8 +33,22 @@ export declare class StoreRuntimeHost extends RuntimeHostBase<'store', RuntimeHo
|
|
|
31
33
|
isWritable(path: string): boolean;
|
|
32
34
|
/** Записывает значение в writable Store field и запускает derived graph через Raph. */
|
|
33
35
|
set(path: string, value: unknown): void;
|
|
36
|
+
/**
|
|
37
|
+
* Маршрутизирует нормализованное событие по compile-time таблице Store.
|
|
38
|
+
* Возвращает false, если Store не объявляет Update для данного типа.
|
|
39
|
+
*/
|
|
40
|
+
dispatch(event: StreamEventEnvelope): boolean;
|
|
41
|
+
/** Применяет именованный дочерний Update к Store без привязки к транспорту. */
|
|
42
|
+
applyUpdate(updateIdentity: string, payload: unknown): void;
|
|
43
|
+
/**
|
|
44
|
+
* Применяет inline mutation из Composition/UI.
|
|
45
|
+
* Это escape hatch для локальных изменений, которым не нужен persisted RUpdate.
|
|
46
|
+
*/
|
|
47
|
+
applyMutation(plan: StoreMutationPlan): void;
|
|
34
48
|
/** Освобождает derived registrations до удаления Store state. */
|
|
35
49
|
destroy(): void;
|
|
36
50
|
/** Инициализирует writable fields и затем immediate derived graph. */
|
|
37
51
|
private _mount;
|
|
52
|
+
private _makeMutationPlans;
|
|
53
|
+
private _applyMutationPlan;
|
|
38
54
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RStream } from '../../reflect/RStream';
|
|
2
|
+
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext } from '../../../types/runtime/runtime-host.types';
|
|
3
|
+
import { StreamTransportFactory } from '../../../types/runtime/stream-runtime.types';
|
|
4
|
+
import { StreamSourceArtifact } from '../../../types/source/stream-source.types';
|
|
5
|
+
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
6
|
+
/** Runtime lifecycle owner for one compiled Stream transport. */
|
|
7
|
+
export declare class StreamRuntimeHost extends RuntimeHostBase<'stream', RuntimeHostContext<'stream'>, StreamSourceArtifact> {
|
|
8
|
+
private _connection;
|
|
9
|
+
constructor(input: {
|
|
10
|
+
id: string;
|
|
11
|
+
model: RStream;
|
|
12
|
+
parent?: RuntimeHost<any, any> | null;
|
|
13
|
+
meta?: Record<string, unknown>;
|
|
14
|
+
artifactReader: RuntimeArtifactReader;
|
|
15
|
+
privateTransportFactory: StreamTransportFactory;
|
|
16
|
+
});
|
|
17
|
+
private readonly _transportFactory;
|
|
18
|
+
static createRuntime(input: {
|
|
19
|
+
id: string;
|
|
20
|
+
model: RStream;
|
|
21
|
+
meta?: Record<string, any>;
|
|
22
|
+
parent?: RuntimeHost<any, any> | null;
|
|
23
|
+
artifacts: RuntimeArtifactReader;
|
|
24
|
+
transportFactory: StreamTransportFactory;
|
|
25
|
+
}): StreamRuntimeHost | null;
|
|
26
|
+
start(): void;
|
|
27
|
+
stop(): void;
|
|
28
|
+
destroy(): void;
|
|
29
|
+
private _receive;
|
|
30
|
+
}
|