@endge/core 12.0.3 → 14.0.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/dist/core.js +26657 -25069
- package/dist/features/core/kernel/config/debugger.config.d.ts +0 -1
- package/dist/features/core/kernel/config/kernel.config.d.ts +0 -6
- package/dist/features/core/kernel/config/modules.config.d.ts +0 -1
- package/dist/features/core/kernel/endge.d.ts +15 -7
- package/dist/features/core/kernel/errors/EndgeDebuggerReadOnlyError.d.ts +3 -1
- package/dist/features/core/kernel/services/EndgeBundleCodec_Service.d.ts +3 -2
- package/dist/features/core/kernel/tools/bundle-json.d.ts +0 -4
- package/dist/features/core/kernel/tools/debugger-snapshot.d.ts +0 -1
- package/dist/features/core/kernel/tools/read-only-document.d.ts +0 -1
- package/dist/features/core/kernel/types/bootstrap.types.d.ts +0 -37
- package/dist/features/core/kernel/types/endge-bundle.types.d.ts +0 -1
- package/dist/features/core/modules/EndgeTypes_Module.d.ts +3 -1
- package/dist/features/core/modules/EndgeVocabs_Module.d.ts +33 -15
- package/dist/features/core/modules/actions/EndgeActions_Module.d.ts +38 -22
- package/dist/features/core/modules/actions/domain/action.types.d.ts +0 -12
- package/dist/features/core/modules/actions/services/ActionProgramExecutor.d.ts +3 -2
- package/dist/features/core/modules/actions/services/table-actions.d.ts +0 -1
- package/dist/features/core/modules/auth/EndgeAuth_Module.d.ts +24 -8
- package/dist/features/core/modules/auth/adapters/BasicAuthAdapter.d.ts +9 -3
- package/dist/features/core/modules/auth/adapters/BearerAuthAdapter.d.ts +9 -3
- package/dist/features/core/modules/auth/adapters/OAuth2ClientCredentialsAuthAdapter.d.ts +3 -1
- package/dist/features/core/modules/auth/adapters/OAuth2PasswordAuthAdapter.d.ts +3 -1
- package/dist/features/core/modules/auth/adapters/OidcAuthAdapter.d.ts +3 -1
- package/dist/features/core/modules/auth/adapters/OidcBrowserSession_Adapter.d.ts +33 -11
- package/dist/features/core/modules/auth/domain/AuthInteractionRequiredError.d.ts +3 -1
- package/dist/features/core/modules/auth/domain/types/auth-profile.types.d.ts +0 -6
- package/dist/features/core/modules/auth/services/AuthAdapterRegistry.d.ts +15 -5
- package/dist/features/core/modules/auth/services/AuthProfileRegistry.d.ts +24 -8
- package/dist/features/core/modules/auth/services/AuthRequestResolver.d.ts +9 -3
- package/dist/features/core/modules/auth/services/AuthSessionManager.d.ts +48 -16
- package/dist/features/core/modules/auth/services/AuthSessionStore.d.ts +21 -7
- package/dist/features/core/modules/auth/services/auth-context.d.ts +0 -3
- package/dist/features/core/modules/bridge/EndgeBridge_Module.d.ts +27 -20
- package/dist/features/core/modules/bridge/adapters/BrowserBridge_Adapter.d.ts +12 -4
- package/dist/features/core/modules/bridge/config/bridge.config.d.ts +0 -5
- package/dist/features/core/modules/bridge/configurator/EndgeBridgeConfigurator_Module.d.ts +14 -12
- package/dist/features/core/modules/bridge/debug/EndgeBridgeDebug_Module.d.ts +72 -35
- package/dist/features/core/modules/bridge/domain/bridge-sync.type.d.ts +0 -3
- package/dist/features/core/modules/bridge/domain/bridge.type.d.ts +0 -3
- package/dist/features/core/modules/bridge/services/BridgeConnection_Service.d.ts +15 -5
- package/dist/features/core/modules/bridge/tools/bridge-sync.d.ts +0 -6
- package/dist/features/core/modules/commands/EndgeCommands_Module.d.ts +12 -4
- package/dist/features/core/modules/commands/config/commands.config.d.ts +0 -3
- package/dist/features/core/modules/commands/domain/commands.types.d.ts +0 -2
- package/dist/features/core/modules/commands/services/LocalCommandExecutor.d.ts +6 -2
- package/dist/features/core/modules/commands/services/RemoteCommandExecutor.d.ts +6 -2
- package/dist/features/core/modules/commands/services/context/SetDataModeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetFacetCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetLocaleCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetThemeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetTimezoneCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetUserCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetWorkspaceCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/runtime/PauseRuntimeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/runtime/ResumeRuntimeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/runtime/StopRuntimeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/tools/command-payload.d.ts +0 -2
- package/dist/features/core/modules/commands/types/command-executor.type.d.ts +0 -4
- package/dist/features/core/modules/commands/types/context-command-target.type.d.ts +0 -1
- package/dist/features/core/modules/commands/types/runtime-command-target.type.d.ts +0 -1
- package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +193 -74
- package/dist/features/core/modules/compiler/services/action/action-compile.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/action/action-target-validation.d.ts +0 -2
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-attributes.d.ts +0 -3
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-built-in-tags.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-compile.d.ts +0 -22
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-dependencies.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression-ir.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression.d.ts +0 -14
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-forward.d.ts +0 -3
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-interactions.d.ts +0 -2
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-parse.d.ts +0 -5
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-ports.d.ts +0 -3
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-script.d.ts +0 -10
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-style.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-menu.d.ts +0 -5
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-pin.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-sort.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-visibility.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-template.d.ts +0 -18
- package/dist/features/core/modules/compiler/services/computation/computation-compile.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/type/type-program-validation.d.ts +0 -7
- package/dist/features/core/modules/compiler/tools/compiled-program-catalog.d.ts +0 -1
- package/dist/features/core/modules/computations/EndgeComputations_Module.d.ts +18 -16
- package/dist/features/core/modules/computations/model/ComputationResource.d.ts +6 -2
- package/dist/features/core/modules/computations/model/ComputationResourceRegistry.d.ts +9 -4
- package/dist/features/core/modules/computations/services/ComputationGraphExecutor.d.ts +3 -1
- package/dist/features/core/modules/configuration/EndgeConfigurationSchema_Module.d.ts +6 -2
- package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +39 -13
- package/dist/features/core/modules/configuration/domain/configuration-value.d.ts +0 -2
- package/dist/features/core/modules/configuration/domain/endge-configuration.d.ts +0 -6
- package/dist/features/core/modules/configuration/domain/tooltip.config.d.ts +0 -1
- package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +0 -22
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +186 -62
- package/dist/features/core/modules/context/domain/context-events.types.d.ts +0 -1
- package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +0 -4
- package/dist/features/core/modules/context/domain/context-state.types.d.ts +0 -5
- package/dist/features/core/modules/context/endge-vars.d.ts +12 -4
- package/dist/features/core/modules/context/persistence/RuntimeStateController.d.ts +6 -2
- package/dist/features/core/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +3 -1
- package/dist/features/core/modules/context/persistence/context-state.d.ts +0 -2
- package/dist/features/core/modules/converters/EndgeConverters_Module.d.ts +3 -6
- package/dist/features/core/modules/converters/tools/arrays/split.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/arrays/to-array.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-date-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-iso-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-iso-z.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-time-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/iso-string-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/iso-string-to-time-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/string-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/time-string-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/timestamp-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/weekdays-range.d.ts +0 -4
- package/dist/features/core/modules/converters/tools/json/json-parse.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/json/json-stringify.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/numbers/number-to-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/numbers/string-to-number.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/strings/default-if-empty.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/strings/string-to-boolean.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/strings/string-trim.d.ts +0 -1
- package/dist/features/core/modules/diagnostics/EndgeDiagnosticsSnapshots_Module.d.ts +54 -18
- package/dist/features/core/modules/diagnostics/EndgeDiagnostics_Module.d.ts +101 -45
- package/dist/features/core/modules/diagnostics/EndgeProblems_Module.d.ts +39 -14
- package/dist/features/core/modules/diagnostics/EndgeTelemetry_Module.d.ts +177 -59
- package/dist/features/core/modules/diagnostics/adapters/BrowserDiagnosticsSnapshot_Adapter.d.ts +9 -3
- package/dist/features/core/modules/diagnostics/adapters/ConsoleDiagnosticsAdapter.d.ts +21 -8
- package/dist/features/core/modules/diagnostics/adapters/DiagnosticsAdapterRegistry.d.ts +21 -7
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.d.ts +75 -26
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.types.d.ts +0 -9
- package/dist/features/core/modules/diagnostics/config/diagnostics.config.d.ts +0 -2
- package/dist/features/core/modules/diagnostics/domain/diagnostics-snapshot.d.ts +0 -1
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsRecordStore.d.ts +60 -20
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsSpan.d.ts +24 -8
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-adapter.type.d.ts +0 -14
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-snapshot-runtime-adapter.type.d.ts +0 -2
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics.types.d.ts +0 -66
- package/dist/features/core/modules/document-import/EndgeDocumentImport_Module.d.ts +17 -14
- package/dist/features/core/modules/document-import/domain/types/document-import.type.d.ts +0 -11
- package/dist/features/core/modules/document-import/services/parsers/DocumentImportParser.d.ts +0 -3
- package/dist/features/core/modules/document-import/services/parsers/GraphQLDocumentImportParser.d.ts +6 -2
- package/dist/features/core/modules/document-import/services/parsers/OpenAPIDocumentImportParser.d.ts +6 -2
- package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +165 -64
- package/dist/features/core/modules/domain/component/component-sfc-edit-trigger.d.ts +9 -11
- package/dist/features/core/modules/domain/component/sfc/component-sfc-source-parts.d.ts +0 -4
- package/dist/features/core/modules/domain/component/sfc-editing.config.d.ts +0 -1
- package/dist/features/core/modules/domain/documents/domain-document-descriptors.d.ts +0 -3
- package/dist/features/core/modules/domain/documents/service-document-serializer.d.ts +0 -3
- package/dist/features/core/modules/domain/entities/RAction.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RComponent.d.ts +0 -7
- package/dist/features/core/modules/domain/entities/RComponentBase.d.ts +0 -1
- package/dist/features/core/modules/domain/entities/RComponentCore.d.ts +12 -8
- package/dist/features/core/modules/domain/entities/RComponentDSL.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RComponentSFC.d.ts +18 -10
- package/dist/features/core/modules/domain/entities/RComponentTable.d.ts +3 -5
- package/dist/features/core/modules/domain/entities/RComponentTableColumn.d.ts +0 -20
- package/dist/features/core/modules/domain/entities/RComposition.d.ts +3 -3
- package/dist/features/core/modules/domain/entities/RComputation.d.ts +6 -2
- package/dist/features/core/modules/domain/entities/RConfiguration.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RDataView.d.ts +6 -4
- package/dist/features/core/modules/domain/entities/REntity.d.ts +12 -15
- package/dist/features/core/modules/domain/entities/RFacet.d.ts +3 -3
- package/dist/features/core/modules/domain/entities/RFacetDocument.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RFilter.d.ts +0 -2
- package/dist/features/core/modules/domain/entities/RFolder.d.ts +6 -6
- package/dist/features/core/modules/domain/entities/RI18nBundle.d.ts +6 -4
- package/dist/features/core/modules/domain/entities/RIntegration.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RMock.d.ts +15 -5
- package/dist/features/core/modules/domain/entities/RNavigation.d.ts +6 -2
- package/dist/features/core/modules/domain/entities/RPage.d.ts +6 -4
- package/dist/features/core/modules/domain/entities/RPageTemplate.d.ts +6 -3
- package/dist/features/core/modules/domain/entities/RPolicy.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RQuery.d.ts +0 -3
- package/dist/features/core/modules/domain/entities/RSimulation.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RStore.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RStream.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RStyle.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RType.d.ts +0 -1
- package/dist/features/core/modules/domain/entities/RUpdate.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RVersion.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RVocabs.d.ts +6 -2
- package/dist/features/core/modules/domain/entities/RWorkspace.d.ts +3 -1
- package/dist/features/core/modules/domain/resolved/resolved-entity-index.d.ts +6 -2
- package/dist/features/core/modules/domain/types/component/component-core.types.d.ts +0 -39
- package/dist/features/core/modules/domain/types/component/component.types.d.ts +0 -6
- package/dist/features/core/modules/domain/types/component/sfc/ast.types.d.ts +0 -67
- package/dist/features/core/modules/domain/types/component/sfc/dependencies.types.d.ts +0 -37
- package/dist/features/core/modules/domain/types/component/sfc/expression-ir.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/intrinsic-events.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/ir.types.d.ts +0 -127
- package/dist/features/core/modules/domain/types/component/sfc/location.types.d.ts +0 -7
- package/dist/features/core/modules/domain/types/component/sfc/metadata-visual.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/component/sfc/ports-source.types.d.ts +0 -4
- package/dist/features/core/modules/domain/types/component/sfc/ports.types.d.ts +0 -25
- package/dist/features/core/modules/domain/types/component/sfc/props-visual.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/component/sfc/source.types.d.ts +0 -11
- package/dist/features/core/modules/domain/types/component/sfc/table-events.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/table-visibility.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/tag-attribute-contract.types.d.ts +0 -12
- package/dist/features/core/modules/domain/types/component/sfc/tag-input-contract.types.d.ts +0 -7
- package/dist/features/core/modules/domain/types/component/sfc/visual-projection.types.d.ts +0 -23
- package/dist/features/core/modules/domain/types/computation/computation-program.types.d.ts +0 -3
- package/dist/features/core/modules/domain/types/computation/computation-runtime.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/computation/computation-source.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/document/document-create.type.d.ts +0 -2
- package/dist/features/core/modules/domain/types/document/document-draft.type.d.ts +0 -4
- package/dist/features/core/modules/domain/types/document/document-metadata.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/document/document-move.type.d.ts +0 -1
- package/dist/features/core/modules/domain/types/document/document.types.d.ts +0 -20
- package/dist/features/core/modules/domain/types/document/domain-export.type.d.ts +0 -4
- package/dist/features/core/modules/domain/types/document/domain-provider.type.d.ts +0 -10
- package/dist/features/core/modules/domain/types/document/domain-snapshot.type.d.ts +0 -8
- package/dist/features/core/modules/domain/types/document/entity-management.type.d.ts +0 -5
- package/dist/features/core/modules/domain/types/document/filter.types.d.ts +0 -8
- package/dist/features/core/modules/domain/types/document/navigation.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/document/query.types.d.ts +0 -8
- package/dist/features/core/modules/domain-repository/EndgeDomainRepository_Module.d.ts +33 -11
- package/dist/features/core/modules/domain-repository/services/domain-provider.d.ts +0 -1
- package/dist/features/core/modules/events/EndgeEvents_Module.d.ts +6 -2
- package/dist/features/core/modules/events/domain/events.types.d.ts +0 -4
- package/dist/features/core/modules/i18n/EndgeI18n_Module.d.ts +33 -11
- package/dist/features/core/modules/i18n/domain/i18n.types.d.ts +0 -5
- package/dist/features/core/modules/i18n/services/composition-i18n-catalog-projection.d.ts +0 -4
- package/dist/features/core/modules/i18n/services/i18n-catalog.d.ts +0 -5
- package/dist/features/core/modules/i18n/tools/resolve-runtime-translation.d.ts +0 -1
- package/dist/features/core/modules/implementations/EndgeImplementations_Module.d.ts +24 -16
- package/dist/features/core/modules/implementations/services/ImplementationBindingRegistry.d.ts +3 -1
- package/dist/features/core/modules/implementations/services/ImplementationProviderRegistry.d.ts +3 -1
- package/dist/features/core/modules/inspection/EndgeInspection_Module.d.ts +12 -4
- package/dist/features/core/modules/inspection/services/InspectionCapture_Service.d.ts +6 -2
- package/dist/features/core/modules/inspection/tools/inspection-recording.d.ts +0 -4
- package/dist/features/core/modules/inspection/types/inspection.types.d.ts +0 -1
- package/dist/features/core/modules/mock/EndgeMock_Module.d.ts +30 -10
- package/dist/features/core/modules/mock/domain/types/mock-data.type.d.ts +3 -9
- package/dist/features/core/modules/program/EndgeProgram_Module.d.ts +69 -23
- package/dist/features/core/modules/program/domain/types/action-program.types.d.ts +0 -1
- package/dist/features/core/modules/program/domain/types/execution-bundle.types.d.ts +0 -4
- package/dist/features/core/modules/program/domain/types/program-metadata.types.d.ts +0 -11
- package/dist/features/core/modules/program/domain/types/program.types.d.ts +0 -109
- package/dist/features/core/modules/program/tools/execution-bundle.d.ts +0 -2
- package/dist/features/core/modules/program/tools/portable-program-payload.d.ts +0 -1
- package/dist/features/core/modules/program/tools/restore-program-source.d.ts +0 -1
- package/dist/features/core/modules/runtime/ComponentSFCEventBoundary.d.ts +18 -6
- package/dist/features/core/modules/runtime/EndgeRuntimeScopes_Module.d.ts +7 -11
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +100 -33
- package/dist/features/core/modules/runtime/RuntimeActionRegistry.d.ts +3 -1
- package/dist/features/core/modules/runtime/RuntimeAppScope.d.ts +21 -11
- package/dist/features/core/modules/runtime/RuntimeBindingScope.d.ts +0 -25
- package/dist/features/core/modules/runtime/RuntimeHostBase.d.ts +11 -63
- package/dist/features/core/modules/runtime/RuntimeHostFactory.d.ts +0 -3
- package/dist/features/core/modules/runtime/RuntimeHostRegistry.d.ts +2 -33
- package/dist/features/core/modules/runtime/RuntimeResourceBag.d.ts +3 -1
- package/dist/features/core/modules/runtime/RuntimeScope.d.ts +3 -1
- package/dist/features/core/modules/runtime/adapters/QueryExecutor_Adapter.d.ts +39 -22
- package/dist/features/core/modules/runtime/domain/component-sfc-render-port.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/execution-context.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/query-execution.types.d.ts +0 -4
- package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +0 -13
- package/dist/features/core/modules/runtime/domain/runtime-execute.type.d.ts +0 -12
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +2 -119
- package/dist/features/core/modules/runtime/domain/runtime-inspection.types.d.ts +0 -2
- package/dist/features/core/modules/runtime/domain/runtime-registry.types.d.ts +0 -17
- package/dist/features/core/modules/runtime/domain/runtime-render-inspection.types.d.ts +0 -2
- package/dist/features/core/modules/runtime/domain/runtime-scope.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/runtime-strategy.types.d.ts +0 -14
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +0 -16
- package/dist/features/core/modules/runtime/domain/sfc-render-inspection.type.d.ts +0 -6
- package/dist/features/core/modules/runtime/domain/simulation-runtime.types.d.ts +0 -4
- package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/table.types.d.ts +0 -11
- package/dist/features/core/modules/runtime/domain/vocab-cache.types.d.ts +0 -9
- package/dist/features/core/modules/runtime/execution/endge-composition.d.ts +6 -3
- package/dist/features/core/modules/runtime/execution/endge-data-view.d.ts +72 -24
- package/dist/features/core/modules/runtime/execution/endge-query.d.ts +9 -3
- package/dist/features/core/modules/runtime/execution/endge-response-output.d.ts +0 -1
- package/dist/features/core/modules/runtime/execution/endge-simulation.d.ts +3 -1
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts +9 -6
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-node-update-phase.d.ts +2 -2
- package/dist/features/core/modules/runtime/hosts/ActionRuntimeHost.d.ts +0 -4
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +93 -31
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +90 -30
- package/dist/features/core/modules/runtime/hosts/FilterRuntimeHost.d.ts +12 -4
- package/dist/features/core/modules/runtime/hosts/FilterViewRuntimeHost.d.ts +21 -7
- package/dist/features/core/modules/runtime/hosts/QueryRuntimeHost.d.ts +12 -4
- package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +12 -4
- package/dist/features/core/modules/runtime/hosts/StoreRuntimeHost.d.ts +33 -11
- package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +9 -3
- package/dist/features/core/modules/runtime/operation/EndgeOperations_Module.d.ts +8 -12
- package/dist/features/core/modules/runtime/operation/operation-executor.d.ts +0 -1
- package/dist/features/core/modules/runtime/operation/operation-history.d.ts +6 -2
- package/dist/features/core/modules/runtime/services/RuntimeStrategyRegistry.d.ts +12 -4
- package/dist/features/core/modules/runtime/services/SFCRenderInspectionSession.d.ts +21 -7
- package/dist/features/core/modules/runtime/services/component-sfc-expression-evaluate.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/simulation/create-simulation-schema.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/simulation/find-simulation-runtime.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/transports/BrowserSseStreamTransportFactory.d.ts +3 -1
- package/dist/features/core/modules/runtime/services/transports/BrowserWebSocketStreamTransportFactory.d.ts +6 -2
- package/dist/features/core/modules/runtime/tools/runtime-inspection.d.ts +0 -3
- package/dist/features/core/modules/runtime/tools/runtime-render-inspection.d.ts +0 -1
- package/dist/features/core/modules/runtime/tools/runtime-render-values.d.ts +0 -1
- package/dist/features/core/modules/source/EndgeSource_Module.d.ts +81 -27
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +0 -42
- package/dist/features/core/modules/source/domain/types/configuration-source.types.d.ts +0 -7
- package/dist/features/core/modules/source/domain/types/data-view-source.types.d.ts +0 -1
- package/dist/features/core/modules/source/domain/types/filter-source.types.d.ts +0 -12
- package/dist/features/core/modules/source/domain/types/filter-view.type.d.ts +0 -10
- package/dist/features/core/modules/source/domain/types/query-source.types.d.ts +0 -42
- package/dist/features/core/modules/source/domain/types/response-output.types.d.ts +0 -1
- package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +0 -6
- package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +0 -81
- package/dist/features/core/modules/source/domain/types/source-expression.types.d.ts +0 -19
- package/dist/features/core/modules/source/domain/types/store-source.types.d.ts +0 -3
- package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +0 -4
- package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +0 -11
- package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +0 -2
- package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +3 -1
- package/dist/features/core/modules/source/services/SourceEngineRegistry.d.ts +12 -4
- package/dist/features/core/modules/source/services/SourceLanguageRegistry.d.ts +12 -4
- package/dist/features/core/modules/source/services/SourcePatchRegistry.d.ts +12 -4
- package/dist/features/core/modules/source/services/compilers/action-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/composition-source-compile.d.ts +0 -2
- package/dist/features/core/modules/source/services/compilers/configuration-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/data-view-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/filter-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/query-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/simulation-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/source-expression-compile.d.ts +0 -4
- package/dist/features/core/modules/source/services/compilers/source-field-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/source-metadata-compile.d.ts +0 -4
- package/dist/features/core/modules/source/services/compilers/source-model-reference-compile.d.ts +0 -2
- package/dist/features/core/modules/source/services/compilers/store-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/stream-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/type-source-compile.d.ts +0 -2
- package/dist/features/core/modules/source/services/compilers/update-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-metadata-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-props-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-table-source-patch.d.ts +0 -1
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-visual-projection.d.ts +0 -1
- package/dist/features/core/modules/source/services/composition-activation.d.ts +0 -1
- package/dist/features/core/modules/source/services/composition-source-i18n-hints.d.ts +0 -2
- package/dist/features/core/modules/source/services/composition-source-normalize.d.ts +0 -1
- package/dist/features/core/modules/source/services/composition-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/configuration-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/document-metadata.d.ts +0 -2
- package/dist/features/core/modules/source/services/filter-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/migrations/query-source-v1-migration.d.ts +0 -7
- package/dist/features/core/modules/source/services/query-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/source-document-reference.d.ts +0 -9
- package/dist/features/core/modules/source/services/source-expression-evaluate.d.ts +0 -2
- package/dist/features/core/modules/source/services/source-language-syntax.d.ts +0 -1
- package/dist/features/core/modules/source/services/strategies/CompositionSourcePatchStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/DataViewSourceEngineStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/DataViewSourceLanguageStrategy.d.ts +15 -5
- package/dist/features/core/modules/source/services/strategies/FilterSourceEngineStrategy.d.ts +3 -1
- package/dist/features/core/modules/source/services/strategies/FilterSourcePatchStrategy.d.ts +3 -1
- package/dist/features/core/modules/source/services/strategies/QuerySourceEngineStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/QuerySourceLanguageStrategy.d.ts +15 -5
- package/dist/features/core/modules/source/services/strategies/QuerySourcePatchStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/TypeSourceEngineStrategy.d.ts +3 -1
- package/dist/features/core/modules/source/services/type-source-references.d.ts +0 -4
- package/dist/features/core/modules/source/services/type-source-serialize.d.ts +0 -2
- package/dist/features/core/modules/source/services/typescript-type-source.d.ts +0 -2
- package/dist/features/core/modules/source/services/value-expression-language.d.ts +0 -1
- package/dist/features/core/modules/source/services/value-expression-operations.d.ts +0 -1
- package/dist/features/core/modules/source/templates/component-sfc/component-sfc.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/configuration.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/filter.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/query.default.source.d.ts +0 -2
- package/dist/features/core/modules/source/templates/simulation.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/type.default.source.d.ts +0 -1
- package/dist/features/core/modules/styles/EndgeStyles_Module.d.ts +12 -4
- package/dist/features/core/modules/styles/domain/types/style.types.d.ts +0 -7
- package/dist/features/core/modules/ui/EndgeUIRegistry_Module.d.ts +3 -1
- package/dist/features/core/modules/ui/EndgeUI_Module.d.ts +18 -6
- package/dist/features/core/modules/ui/domain/types/jsx.types.d.ts +0 -9
- package/dist/features/core/modules/ui/domain/types/ui-render-adapter.type.d.ts +0 -8
- package/dist/features/core/modules/ui/registry/UIAdapterRegistry.d.ts +39 -13
- package/dist/features/core/modules/ui/tooltip/endge-tooltip-markdown.d.ts +0 -2
- package/dist/features/core/modules/ui/ui-composition.config.d.ts +0 -1
- package/dist/features/core/modules/updates/EndgeUpdates_Module.d.ts +3 -1
- package/dist/features/core/modules/workspace/EndgeWorkspace_Module.d.ts +97 -34
- package/dist/features/core/modules/workspace/domain/workspace.types.d.ts +0 -3
- package/dist/features/federation/EndgeFederation.d.ts +33 -11
- package/dist/features/federation/EndgeModule.d.ts +0 -1
- package/dist/features/federation/constants/federation.constants.d.ts +0 -1
- package/dist/features/federation/services/EndgeModuleController.d.ts +0 -2
- package/dist/features/federation/tools/endge-token.d.ts +0 -1
- package/dist/features/federation/types/endge-modules.types.d.ts +0 -5
- package/dist/features/federation/types/federation.types.d.ts +0 -12
- package/dist/features/federation/types/forge.types.d.ts +0 -6
- package/package.json +8 -3
- package/dist/features/core/modules/runtime/helpers/raph-phases/endge-runtime-boundary.d.ts +0 -13
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DiagnosticsRecord, DiagnosticsSignal } from '../types/diagnostics.types';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Ограниченное кольцевое хранилище diagnostic records с основными индексами.
|
|
4
|
+
*/
|
|
3
5
|
export declare class DiagnosticsRecordStore {
|
|
4
6
|
private _capacity;
|
|
5
7
|
private _slots;
|
|
@@ -11,42 +13,80 @@ export declare class DiagnosticsRecordStore {
|
|
|
11
13
|
private readonly _scopeIndex;
|
|
12
14
|
private readonly _recordsBySignal;
|
|
13
15
|
private readonly _recordsByScope;
|
|
14
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Создаёт store с указанной максимальной ёмкостью.
|
|
18
|
+
*/
|
|
15
19
|
constructor(capacity: number);
|
|
16
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Возвращает количество сохранённых records.
|
|
22
|
+
*/
|
|
17
23
|
get size(): number;
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Изменяет ёмкость, сохраняя самые новые records.
|
|
26
|
+
*/
|
|
19
27
|
setCapacity(nextCapacity: number): void;
|
|
20
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Добавляет record и возвращает вытесненную запись.
|
|
30
|
+
*/
|
|
21
31
|
append(record: DiagnosticsRecord): DiagnosticsRecord | null;
|
|
22
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Полностью очищает records и индексы.
|
|
34
|
+
*/
|
|
23
35
|
clear(): void;
|
|
24
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Возвращает records от старых к новым с необязательным ограничением хвоста.
|
|
38
|
+
*/
|
|
25
39
|
toArray(limit?: number): DiagnosticsRecord[];
|
|
26
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Возвращает records одного trace.
|
|
42
|
+
*/
|
|
27
43
|
getByTraceId(traceId: string, limit?: number): DiagnosticsRecord[];
|
|
28
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Возвращает records, связанные с одним span.
|
|
46
|
+
*/
|
|
29
47
|
getBySpanId(spanId: string, limit?: number): DiagnosticsRecord[];
|
|
30
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Возвращает records одного instrumentation scope.
|
|
50
|
+
*/
|
|
31
51
|
getByScope(scopeName: string, limit?: number): DiagnosticsRecord[];
|
|
32
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Возвращает количества records по signal.
|
|
54
|
+
*/
|
|
33
55
|
getRecordsBySignal(): Partial<Record<DiagnosticsSignal, number>>;
|
|
34
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Возвращает количества records по instrumentation scope.
|
|
58
|
+
*/
|
|
35
59
|
getRecordsByScope(): Record<string, number>;
|
|
36
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Очищает внутреннее состояние без пересоздания массива slots.
|
|
62
|
+
*/
|
|
37
63
|
private _clearState;
|
|
38
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Возвращает records по готовому индексу.
|
|
66
|
+
*/
|
|
39
67
|
private _fromIndex;
|
|
40
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Добавляет record во все индексы store.
|
|
70
|
+
*/
|
|
41
71
|
private _addIndexes;
|
|
42
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Удаляет вытесненный record из всех индексов store.
|
|
74
|
+
*/
|
|
43
75
|
private _removeIndexes;
|
|
44
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Добавляет id в индекс по строковому ключу.
|
|
78
|
+
*/
|
|
45
79
|
private _addToIndex;
|
|
46
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Удаляет id из индекса и очищает пустую корзину.
|
|
82
|
+
*/
|
|
47
83
|
private _removeFromIndex;
|
|
48
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Изменяет счётчик и удаляет нулевое значение.
|
|
86
|
+
*/
|
|
49
87
|
private _bump;
|
|
50
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Нормализует ёмкость store до положительного целого числа.
|
|
90
|
+
*/
|
|
51
91
|
private _normalizeCapacity;
|
|
52
92
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DiagnosticsAttributes, DiagnosticsExceptionOptions, DiagnosticsInstrumentationScope, DiagnosticsLogInput, DiagnosticsLogRecord, DiagnosticsSpanEndOptions, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanOwner, DiagnosticsSpanRecord } from '../types/diagnostics.types';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Управляет одним активным span и завершает его через owner-модуль.
|
|
4
|
+
*/
|
|
3
5
|
export declare class DiagnosticsSpan implements DiagnosticsSpanHandle {
|
|
4
6
|
private readonly _owner;
|
|
5
7
|
readonly traceId: string;
|
|
@@ -12,18 +14,32 @@ export declare class DiagnosticsSpan implements DiagnosticsSpanHandle {
|
|
|
12
14
|
private readonly _phase;
|
|
13
15
|
private _ended;
|
|
14
16
|
private _attributes;
|
|
15
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Создаёт handle с уже нормализованной correlation и scope.
|
|
19
|
+
*/
|
|
16
20
|
constructor(_owner: DiagnosticsSpanOwner, traceId: string, spanId: string, parentSpanId: string | undefined, _traceFlags: number | undefined, _name: string, _scope: DiagnosticsInstrumentationScope, _startTimestamp: number, attributes: DiagnosticsAttributes, _phase: DiagnosticsSpanOptions['phase']);
|
|
17
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Показывает, был ли span уже завершён.
|
|
23
|
+
*/
|
|
18
24
|
get isEnded(): boolean;
|
|
19
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Добавляет или заменяет структурированные атрибуты активного span.
|
|
27
|
+
*/
|
|
20
28
|
setAttributes(attributes: DiagnosticsAttributes): void;
|
|
21
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Создаёт дочерний span с correlation текущего handle.
|
|
31
|
+
*/
|
|
22
32
|
startChild(name: string, options?: Omit<DiagnosticsSpanOptions, 'traceId' | 'parentSpanId'>): DiagnosticsSpanHandle;
|
|
23
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Записывает log с автоматической correlation текущего span.
|
|
35
|
+
*/
|
|
24
36
|
log(input: Omit<DiagnosticsLogInput, 'traceId' | 'spanId'>): DiagnosticsLogRecord | null;
|
|
25
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Записывает exception как связанный ERROR/FATAL log.
|
|
39
|
+
*/
|
|
26
40
|
recordException(error: unknown, options?: DiagnosticsExceptionOptions): DiagnosticsLogRecord | null;
|
|
27
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Идемпотентно завершает span и возвращает сохранённый record.
|
|
43
|
+
*/
|
|
28
44
|
end(options?: DiagnosticsSpanEndOptions): DiagnosticsSpanRecord | null;
|
|
29
45
|
}
|
|
@@ -1,49 +1,35 @@
|
|
|
1
1
|
import { DiagnosticsRecord, DiagnosticsResource, DiagnosticsSnapshot, EndgeDiagnosticsOutputConfiguration } from './diagnostics.types';
|
|
2
|
-
/** Возможности, которые конкретный тип diagnostics adapter предоставляет ядру. */
|
|
3
2
|
export interface DiagnosticsAdapterCapabilities {
|
|
4
3
|
records: boolean;
|
|
5
4
|
snapshots: boolean;
|
|
6
5
|
test: boolean;
|
|
7
6
|
}
|
|
8
|
-
/** Контекст создания runtime adapter для одного настроенного канала вывода. */
|
|
9
7
|
export interface DiagnosticsAdapterCreateContext {
|
|
10
8
|
sessionId: string;
|
|
11
9
|
resource: DiagnosticsResource;
|
|
12
|
-
/** Разрешает persisted variable token без сохранения полученного секрета в configuration. */
|
|
13
10
|
resolveVariable?: (value: string) => string | undefined;
|
|
14
11
|
}
|
|
15
|
-
/** Контекст доставки одной записи после применения route. */
|
|
16
12
|
export interface DiagnosticsAdapterRecordContext extends DiagnosticsAdapterCreateContext {
|
|
17
13
|
routeIds: string[];
|
|
18
14
|
output: EndgeDiagnosticsOutputConfiguration;
|
|
19
15
|
}
|
|
20
|
-
/** Контекст доставки диагностического снимка. */
|
|
21
16
|
export interface DiagnosticsAdapterSnapshotContext extends DiagnosticsAdapterCreateContext {
|
|
22
17
|
output: EndgeDiagnosticsOutputConfiguration;
|
|
23
18
|
trigger: DiagnosticsSnapshot['trigger'];
|
|
24
19
|
}
|
|
25
|
-
/** Runtime adapter, созданный для одного output из effective configuration. */
|
|
26
20
|
export interface DiagnosticsAdapter {
|
|
27
21
|
readonly id: string;
|
|
28
|
-
/** Принимает record, прошедший маршрутизацию в текущий output. */
|
|
29
22
|
acceptRecord: (record: DiagnosticsRecord, context: DiagnosticsAdapterRecordContext) => void | Promise<void>;
|
|
30
|
-
/** Принимает полный JSON-safe snapshot, если adapter поддерживает snapshots. */
|
|
31
23
|
acceptSnapshot?: (snapshot: DiagnosticsSnapshot, context: DiagnosticsAdapterSnapshotContext) => void | Promise<void>;
|
|
32
|
-
/** Проверяет доступность output без изменения diagnostics history. */
|
|
33
24
|
test?: () => void | Promise<void>;
|
|
34
|
-
/** Доставляет накопленный adapter buffer без завершения session. */
|
|
35
25
|
flush?: () => void | Promise<void>;
|
|
36
|
-
/** Освобождает внешние ресурсы adapter при пересборке или reset. */
|
|
37
26
|
dispose?: () => void | Promise<void>;
|
|
38
27
|
}
|
|
39
|
-
/** Фабрика одного расширяемого типа diagnostics adapter. */
|
|
40
28
|
export interface DiagnosticsAdapterFactory {
|
|
41
29
|
readonly type: string;
|
|
42
30
|
readonly capabilities: DiagnosticsAdapterCapabilities;
|
|
43
|
-
/** Создаёт runtime adapter для конкретного output из effective configuration. */
|
|
44
31
|
create: (output: EndgeDiagnosticsOutputConfiguration, context: DiagnosticsAdapterCreateContext) => DiagnosticsAdapter;
|
|
45
32
|
}
|
|
46
|
-
/** Результат best-effort flush всех активных output adapters. */
|
|
47
33
|
export interface DiagnosticsFlushResult {
|
|
48
34
|
succeeded: string[];
|
|
49
35
|
failed: Array<{
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DiagnosticsSnapshot } from './diagnostics.types';
|
|
2
2
|
import { ComponentSFCInteractionTriggerEvent, ComponentSFCInteractionTriggerPlatform } from '../../../domain/types/component/sfc/ir.types';
|
|
3
|
-
/** Keyboard event, приведённое platform adapter к общему TriggerSet contract. */
|
|
4
3
|
export interface DiagnosticsSnapshotShortcutEvent {
|
|
5
4
|
type: 'keydown' | 'keyup';
|
|
6
5
|
occurrence: ComponentSFCInteractionTriggerEvent;
|
|
@@ -8,7 +7,6 @@ export interface DiagnosticsSnapshotShortcutEvent {
|
|
|
8
7
|
preventDefault: () => void;
|
|
9
8
|
stopPropagation: () => void;
|
|
10
9
|
}
|
|
11
|
-
/** Platform boundary подписки на shortcut и сохранения snapshot-файла. */
|
|
12
10
|
export interface DiagnosticsSnapshotRuntimeAdapter {
|
|
13
11
|
subscribeShortcut: (listener: (event: DiagnosticsSnapshotShortcutEvent) => void) => () => void;
|
|
14
12
|
downloadJson: (snapshot: DiagnosticsSnapshot) => void;
|
|
@@ -1,42 +1,25 @@
|
|
|
1
1
|
import { ComponentSFCInteractionTriggerActivation } from '../../../domain/types/component/sfc/ir.types';
|
|
2
|
-
/** Сигналы, которые поддерживает первая версия модуля диагностики. */
|
|
3
2
|
export type DiagnosticsSignal = 'log' | 'span';
|
|
4
|
-
/** Фаза жизненного цикла, в которой создана диагностическая запись. */
|
|
5
3
|
export type DiagnosticsPhase = 'authoring' | 'build' | 'runtime';
|
|
6
|
-
/** Базовые значения OpenTelemetry SeverityNumber, используемые публичным API. */
|
|
7
4
|
export type DiagnosticsSeverityNumber = 1 | 5 | 9 | 13 | 17 | 21;
|
|
8
|
-
/** Скалярное значение диагностического атрибута. */
|
|
9
5
|
export type DiagnosticsAttributeScalar = string | number | boolean;
|
|
10
|
-
/** Допустимое значение диагностического атрибута. */
|
|
11
6
|
export type DiagnosticsAttributeValue = DiagnosticsAttributeScalar | DiagnosticsAttributeScalar[];
|
|
12
|
-
/** Плоские структурированные атрибуты записи. */
|
|
13
7
|
export type DiagnosticsAttributes = Record<string, DiagnosticsAttributeValue>;
|
|
14
|
-
/** Синхронный provider общих attributes, актуальных в момент создания record. */
|
|
15
8
|
export type DiagnosticsContextProvider = () => DiagnosticsAttributes;
|
|
16
|
-
/** Фаза, в которой обнаружена актуальная проблема системы. */
|
|
17
9
|
export type DiagnosticsProblemPhase = DiagnosticsPhase;
|
|
18
|
-
/** Уровень актуальной проблемы, независимый от OTel SeverityNumber. */
|
|
19
10
|
export type DiagnosticsProblemSeverity = 'info' | 'warning' | 'error' | 'fatal';
|
|
20
|
-
/** Стабильная ссылка на доменную сущность без ограничения compiled ProgramEntityType. */
|
|
21
11
|
export interface DiagnosticsEntityRef {
|
|
22
12
|
entityType: string;
|
|
23
13
|
id: string | number;
|
|
24
14
|
identity: string;
|
|
25
15
|
}
|
|
26
|
-
/** Владелец replaceable-набора проблем. */
|
|
27
16
|
export interface DiagnosticsProblemOwner {
|
|
28
|
-
/** Уникальный ключ владельца внутри problem registry. */
|
|
29
17
|
key: string;
|
|
30
|
-
/** Фаза жизненного цикла, к которой относится набор. */
|
|
31
18
|
phase: DiagnosticsProblemPhase;
|
|
32
|
-
/** Доменная сущность, если проблема связана с persisted document. */
|
|
33
19
|
entityRef?: DiagnosticsEntityRef;
|
|
34
|
-
/** Runtime instance, если проблема относится к живому host. */
|
|
35
20
|
runtimeId?: string;
|
|
36
21
|
}
|
|
37
|
-
/** Вход одной проблемы до добавления owner и временных метаданных registry. */
|
|
38
22
|
export interface DiagnosticsProblemInput {
|
|
39
|
-
/** Стабильный ключ проблемы внутри одного owner; при отсутствии выводится из содержимого. */
|
|
40
23
|
key?: string;
|
|
41
24
|
severity: DiagnosticsProblemSeverity;
|
|
42
25
|
code: string;
|
|
@@ -48,16 +31,12 @@ export interface DiagnosticsProblemInput {
|
|
|
48
31
|
traceId?: string;
|
|
49
32
|
recordId?: number;
|
|
50
33
|
}
|
|
51
|
-
/** Актуальная проблема, нормализованная problem registry. */
|
|
52
34
|
export interface DiagnosticsProblem extends Omit<DiagnosticsProblemInput, 'key'> {
|
|
53
|
-
/** Стабильный id в формате `<owner.key>:<problem.key>`. */
|
|
54
35
|
id: string;
|
|
55
|
-
/** Ключ проблемы внутри owner. */
|
|
56
36
|
key: string;
|
|
57
37
|
owner: DiagnosticsProblemOwner;
|
|
58
38
|
updatedAt: number;
|
|
59
39
|
}
|
|
60
|
-
/** Условия выбора актуальных проблем. */
|
|
61
40
|
export interface DiagnosticsProblemFilter {
|
|
62
41
|
ownerKeys?: string[];
|
|
63
42
|
phases?: DiagnosticsProblemPhase[];
|
|
@@ -68,27 +47,22 @@ export interface DiagnosticsProblemFilter {
|
|
|
68
47
|
runtimeId?: string;
|
|
69
48
|
codes?: string[];
|
|
70
49
|
}
|
|
71
|
-
/** Реестр проблем, заменяемый целиком через snapshot. */
|
|
72
50
|
export interface DiagnosticsProblemsSnapshot {
|
|
73
51
|
revision: number;
|
|
74
52
|
total: number;
|
|
75
53
|
problems: readonly DiagnosticsProblem[];
|
|
76
54
|
}
|
|
77
|
-
/** Модуль или библиотека, создавшая запись. */
|
|
78
55
|
export interface DiagnosticsInstrumentationScope {
|
|
79
56
|
name: string;
|
|
80
57
|
version?: string;
|
|
81
58
|
}
|
|
82
|
-
/** Общие атрибуты текущего запуска Endge. */
|
|
83
59
|
export interface DiagnosticsResource {
|
|
84
60
|
attributes: DiagnosticsAttributes;
|
|
85
61
|
}
|
|
86
|
-
/** Статус завершённого span. */
|
|
87
62
|
export interface DiagnosticsSpanStatus {
|
|
88
63
|
code: 'unset' | 'ok' | 'error';
|
|
89
64
|
message?: string;
|
|
90
65
|
}
|
|
91
|
-
/** Общие поля любой записи локального diagnostics store. */
|
|
92
66
|
export interface DiagnosticsRecordBase {
|
|
93
67
|
id: number;
|
|
94
68
|
signal: DiagnosticsSignal;
|
|
@@ -99,7 +73,6 @@ export interface DiagnosticsRecordBase {
|
|
|
99
73
|
traceFlags?: number;
|
|
100
74
|
phase?: DiagnosticsPhase;
|
|
101
75
|
}
|
|
102
|
-
/** Структурированный log record в формате, близком к OpenTelemetry. */
|
|
103
76
|
export interface DiagnosticsLogRecord extends DiagnosticsRecordBase {
|
|
104
77
|
signal: 'log';
|
|
105
78
|
timestamp: number;
|
|
@@ -109,7 +82,6 @@ export interface DiagnosticsLogRecord extends DiagnosticsRecordBase {
|
|
|
109
82
|
body: string;
|
|
110
83
|
eventName?: string;
|
|
111
84
|
}
|
|
112
|
-
/** Один завершённый span; start/end records отдельно не сохраняются. */
|
|
113
85
|
export interface DiagnosticsSpanRecord extends DiagnosticsRecordBase {
|
|
114
86
|
signal: 'span';
|
|
115
87
|
traceId: string;
|
|
@@ -121,24 +93,19 @@ export interface DiagnosticsSpanRecord extends DiagnosticsRecordBase {
|
|
|
121
93
|
durationMs: number;
|
|
122
94
|
status: DiagnosticsSpanStatus;
|
|
123
95
|
}
|
|
124
|
-
/** Объединённый тип записей модуля диагностики. */
|
|
125
96
|
export type DiagnosticsRecord = DiagnosticsLogRecord | DiagnosticsSpanRecord;
|
|
126
|
-
/** Настройки локального сбора и bounded storage. */
|
|
127
97
|
export interface EndgeDiagnosticsCollectionConfiguration {
|
|
128
98
|
enabled: boolean;
|
|
129
99
|
signals: DiagnosticsSignal[];
|
|
130
100
|
minSeverity: DiagnosticsSeverityNumber;
|
|
131
101
|
maxRecords: number;
|
|
132
102
|
}
|
|
133
|
-
/** JSON-safe значение persisted options конкретного adapter. */
|
|
134
103
|
export type DiagnosticsAdapterOptionValue = string | number | boolean | null | DiagnosticsAdapterOptionValue[] | {
|
|
135
104
|
[key: string]: DiagnosticsAdapterOptionValue;
|
|
136
105
|
};
|
|
137
|
-
/** Рекурсивное JSON-safe значение диагностического snapshot. */
|
|
138
106
|
export type DiagnosticsJsonValue = string | number | boolean | null | DiagnosticsJsonValue[] | {
|
|
139
107
|
[key: string]: DiagnosticsJsonValue;
|
|
140
108
|
};
|
|
141
|
-
/** Именованный канал вывода, создаваемый через adapter registry. */
|
|
142
109
|
export interface EndgeDiagnosticsOutputConfiguration {
|
|
143
110
|
id: string;
|
|
144
111
|
name: string;
|
|
@@ -146,7 +113,6 @@ export interface EndgeDiagnosticsOutputConfiguration {
|
|
|
146
113
|
adapterType: string;
|
|
147
114
|
options: Record<string, DiagnosticsAdapterOptionValue>;
|
|
148
115
|
}
|
|
149
|
-
/** Условия выбора records для подписки или route. */
|
|
150
116
|
export interface DiagnosticsFilter {
|
|
151
117
|
signals?: DiagnosticsSignal[];
|
|
152
118
|
phases?: DiagnosticsPhase[];
|
|
@@ -160,7 +126,6 @@ export interface DiagnosticsFilter {
|
|
|
160
126
|
attributes?: DiagnosticsAttributes;
|
|
161
127
|
limit?: number;
|
|
162
128
|
}
|
|
163
|
-
/** Декларативное правило доставки records в adapter. */
|
|
164
129
|
export interface EndgeDiagnosticsRoute {
|
|
165
130
|
id: string;
|
|
166
131
|
name: string;
|
|
@@ -168,13 +133,11 @@ export interface EndgeDiagnosticsRoute {
|
|
|
168
133
|
match: DiagnosticsFilter;
|
|
169
134
|
outputId: string;
|
|
170
135
|
}
|
|
171
|
-
/** Effective configuration сбора и внешней доставки telemetry. */
|
|
172
136
|
export interface EndgeDiagnosticsTelemetryConfiguration {
|
|
173
137
|
collection: EndgeDiagnosticsCollectionConfiguration;
|
|
174
138
|
outputs: EndgeDiagnosticsOutputConfiguration[];
|
|
175
139
|
routes: EndgeDiagnosticsRoute[];
|
|
176
140
|
}
|
|
177
|
-
/** Состав JSON snapshot по умолчанию. */
|
|
178
141
|
export interface EndgeDiagnosticsSnapshotContentConfiguration {
|
|
179
142
|
telemetry: boolean;
|
|
180
143
|
problems: boolean;
|
|
@@ -186,7 +149,6 @@ export interface EndgeDiagnosticsSnapshotContentConfiguration {
|
|
|
186
149
|
raphData?: boolean;
|
|
187
150
|
raphGraph?: boolean;
|
|
188
151
|
}
|
|
189
|
-
/** Условия автоматического snapshot по ERROR/FATAL records. */
|
|
190
152
|
export interface EndgeDiagnosticsAutomaticSnapshotConfiguration {
|
|
191
153
|
enabled: boolean;
|
|
192
154
|
errorCount: number;
|
|
@@ -194,24 +156,19 @@ export interface EndgeDiagnosticsAutomaticSnapshotConfiguration {
|
|
|
194
156
|
cooldownSeconds: number;
|
|
195
157
|
outputIds: string[];
|
|
196
158
|
}
|
|
197
|
-
/** Настройки snapshot, скачиваемого глобальной комбинацией клавиш. */
|
|
198
159
|
export interface EndgeDiagnosticsShortcutSnapshotConfiguration {
|
|
199
|
-
/** Legacy TriggerSet либо sequence-объект; массив сохраняется без миграции persisted документов. */
|
|
200
160
|
triggerSet: ComponentSFCInteractionTriggerActivation;
|
|
201
161
|
content: EndgeDiagnosticsSnapshotContentConfiguration;
|
|
202
162
|
}
|
|
203
|
-
/** Effective configuration ручных, shortcut и автоматических snapshots. */
|
|
204
163
|
export interface EndgeDiagnosticsSnapshotsConfiguration {
|
|
205
164
|
content: EndgeDiagnosticsSnapshotContentConfiguration;
|
|
206
165
|
shortcut: EndgeDiagnosticsShortcutSnapshotConfiguration;
|
|
207
166
|
automatic: EndgeDiagnosticsAutomaticSnapshotConfiguration;
|
|
208
167
|
}
|
|
209
|
-
/** Полная effective configuration модуля диагностики. */
|
|
210
168
|
export interface EndgeDiagnosticsConfiguration {
|
|
211
169
|
telemetry: EndgeDiagnosticsTelemetryConfiguration;
|
|
212
170
|
snapshots: EndgeDiagnosticsSnapshotsConfiguration;
|
|
213
171
|
}
|
|
214
|
-
/** Параметры записи log без выбранного уровня severity. */
|
|
215
172
|
export interface DiagnosticsLogOptions {
|
|
216
173
|
timestamp?: number;
|
|
217
174
|
observedTimestamp?: number;
|
|
@@ -223,16 +180,13 @@ export interface DiagnosticsLogOptions {
|
|
|
223
180
|
traceFlags?: number;
|
|
224
181
|
phase?: DiagnosticsPhase;
|
|
225
182
|
}
|
|
226
|
-
/** Полный input универсального метода log(). */
|
|
227
183
|
export interface DiagnosticsLogInput extends DiagnosticsLogOptions {
|
|
228
184
|
body: string;
|
|
229
185
|
severityNumber: DiagnosticsSeverityNumber;
|
|
230
186
|
}
|
|
231
|
-
/** Параметры структурированной записи исключения. */
|
|
232
187
|
export interface DiagnosticsExceptionOptions extends DiagnosticsLogOptions {
|
|
233
188
|
severityNumber?: 17 | 21;
|
|
234
189
|
}
|
|
235
|
-
/** Параметры создания root или child span. */
|
|
236
190
|
export interface DiagnosticsSpanOptions {
|
|
237
191
|
scope?: DiagnosticsInstrumentationScope;
|
|
238
192
|
attributes?: DiagnosticsAttributes;
|
|
@@ -242,31 +196,23 @@ export interface DiagnosticsSpanOptions {
|
|
|
242
196
|
startTimestamp?: number;
|
|
243
197
|
phase?: DiagnosticsPhase;
|
|
244
198
|
}
|
|
245
|
-
/** Параметры завершения span. */
|
|
246
199
|
export interface DiagnosticsSpanEndOptions {
|
|
247
200
|
status?: DiagnosticsSpanStatus['code'];
|
|
248
201
|
message?: string;
|
|
249
202
|
attributes?: DiagnosticsAttributes;
|
|
250
203
|
endTimestamp?: number;
|
|
251
204
|
}
|
|
252
|
-
/** Публичный handle активного span. */
|
|
253
205
|
export interface DiagnosticsSpanHandle {
|
|
254
206
|
readonly traceId: string;
|
|
255
207
|
readonly spanId: string;
|
|
256
208
|
readonly parentSpanId?: string;
|
|
257
209
|
readonly isEnded: boolean;
|
|
258
|
-
/** Добавляет или переопределяет структурированные атрибуты активного span. */
|
|
259
210
|
setAttributes: (attributes: DiagnosticsAttributes) => void;
|
|
260
|
-
/** Создаёт child span с унаследованными trace id и parent span id. */
|
|
261
211
|
startChild: (name: string, options?: Omit<DiagnosticsSpanOptions, 'traceId' | 'parentSpanId'>) => DiagnosticsSpanHandle;
|
|
262
|
-
/** Записывает log, автоматически связанный с текущим span. */
|
|
263
212
|
log: (input: Omit<DiagnosticsLogInput, 'traceId' | 'spanId'>) => DiagnosticsLogRecord | null;
|
|
264
|
-
/** Записывает exception log, автоматически связанный с текущим span. */
|
|
265
213
|
recordException: (error: unknown, options?: DiagnosticsExceptionOptions) => DiagnosticsLogRecord | null;
|
|
266
|
-
/** Завершает span и сохраняет единственный итоговый span record. */
|
|
267
214
|
end: (options?: DiagnosticsSpanEndOptions) => DiagnosticsSpanRecord | null;
|
|
268
215
|
}
|
|
269
|
-
/** Счётчики текущей diagnostics session. */
|
|
270
216
|
export interface DiagnosticsCounters {
|
|
271
217
|
totalRecords: number;
|
|
272
218
|
droppedByPolicy: number;
|
|
@@ -280,7 +226,6 @@ export interface DiagnosticsCounters {
|
|
|
280
226
|
recordsBySignal: Partial<Record<DiagnosticsSignal, number>>;
|
|
281
227
|
recordsByScope: Record<string, number>;
|
|
282
228
|
}
|
|
283
|
-
/** Параметры создания JSON-safe snapshot. */
|
|
284
229
|
export interface DiagnosticsSnapshotOptions {
|
|
285
230
|
trigger?: 'manual' | 'shortcut' | 'automatic';
|
|
286
231
|
includeTelemetry?: boolean;
|
|
@@ -294,24 +239,20 @@ export interface DiagnosticsSnapshotOptions {
|
|
|
294
239
|
includeRaphGraph?: boolean;
|
|
295
240
|
filter?: DiagnosticsFilter;
|
|
296
241
|
}
|
|
297
|
-
/** Параметры диагностической проекции Raph, принадлежащей runtime-модулю. */
|
|
298
242
|
export interface DiagnosticsRaphSnapshotOptions {
|
|
299
243
|
includeData: boolean;
|
|
300
244
|
includeGraph: boolean;
|
|
301
245
|
}
|
|
302
|
-
/** Ошибка чтения одной запрошенной части snapshot без отмены остальных частей. */
|
|
303
246
|
export interface DiagnosticsSnapshotCaptureError {
|
|
304
247
|
section: 'federation' | 'effectiveConfiguration' | 'domain' | 'program' | 'runtime' | 'raph';
|
|
305
248
|
message: string;
|
|
306
249
|
}
|
|
307
|
-
/** Telemetry-часть диагностического snapshot. */
|
|
308
250
|
export interface DiagnosticsTelemetrySnapshot {
|
|
309
251
|
sessionId: string;
|
|
310
252
|
resource: DiagnosticsResource;
|
|
311
253
|
counters: DiagnosticsCounters;
|
|
312
254
|
records: readonly DiagnosticsRecord[];
|
|
313
255
|
}
|
|
314
|
-
/** JSON-safe snapshot текущего состояния diagnostics-модуля. */
|
|
315
256
|
export interface DiagnosticsSnapshot {
|
|
316
257
|
format?: 'endge-diagnostics-snapshot';
|
|
317
258
|
version?: 1 | 2;
|
|
@@ -332,21 +273,14 @@ export interface DiagnosticsSnapshot {
|
|
|
332
273
|
fields: number;
|
|
333
274
|
};
|
|
334
275
|
}
|
|
335
|
-
/** Обработчик одной принятой диагностической записи. */
|
|
336
276
|
export type DiagnosticsListener = (record: DiagnosticsRecord) => void;
|
|
337
|
-
/** Параметры подписки на diagnostics stream. */
|
|
338
277
|
export interface DiagnosticsSubscribeOptions {
|
|
339
278
|
replayStored?: boolean;
|
|
340
279
|
}
|
|
341
|
-
/** Внутренний port, через который span пишет records в модуль. */
|
|
342
280
|
export interface DiagnosticsSpanOwner {
|
|
343
|
-
/** Создаёт root или child span от имени handle. */
|
|
344
281
|
startSpan: (name: string, options?: DiagnosticsSpanOptions) => DiagnosticsSpanHandle;
|
|
345
|
-
/** Записывает нормализованный log от имени handle. */
|
|
346
282
|
log: (input: DiagnosticsLogInput) => DiagnosticsLogRecord | null;
|
|
347
|
-
/** Записывает нормализованное исключение от имени handle. */
|
|
348
283
|
recordException: (error: unknown, options?: DiagnosticsExceptionOptions) => DiagnosticsLogRecord | null;
|
|
349
|
-
/** Финализирует активный span и создаёт итоговый record. */
|
|
350
284
|
finishSpan: (input: {
|
|
351
285
|
traceId: string;
|
|
352
286
|
spanId: string;
|
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
import { DocumentImportApplyRequest, DocumentImportApplyResult, DocumentImportPlan, DocumentImportPrepareRequest } from './domain/types/document-import.type';
|
|
2
2
|
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Владеет подготовкой и применением внешних схем как Domain-документов Endge.
|
|
5
|
+
*/
|
|
4
6
|
export declare class EndgeDocumentImport_Module extends EndgeModule {
|
|
5
|
-
/** Format-specific parsers и единственный активный подтверждаемый plan. */
|
|
6
7
|
private readonly _graphQLParser;
|
|
7
8
|
private readonly _openAPIParser;
|
|
8
9
|
private _activePlan;
|
|
9
10
|
private _planSequence;
|
|
10
11
|
private _applyingPlan;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
-
* PUBLIC
|
|
14
|
-
* ----------------------------------------
|
|
13
|
+
* Разбирает внешний документ и создаёт renderer-neutral plan без изменения Domain.
|
|
15
14
|
*/
|
|
16
|
-
/** Разбирает внешний документ и создаёт renderer-neutral plan без изменения Domain. */
|
|
17
15
|
prepare(request: DocumentImportPrepareRequest): DocumentImportPlan;
|
|
18
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Создаёт только подтверждённых кандидатов из ранее подготовленного plan.
|
|
18
|
+
*/
|
|
19
19
|
apply(request: DocumentImportApplyRequest): Promise<DocumentImportApplyResult>;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Сбрасывает неподтверждённый import plan при reset Core context.
|
|
22
|
+
*/
|
|
21
23
|
reset(): void;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
24
|
-
* PRIVATE
|
|
25
|
-
* ----------------------------------------
|
|
25
|
+
* Выбирает внутренний parser без публичного registry до появления extension use case.
|
|
26
26
|
*/
|
|
27
|
-
/** Выбирает внутренний parser без публичного registry до появления extension use case. */
|
|
28
27
|
private _resolveParser;
|
|
29
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Проверяет сгенерированный Type Source через публичный Source owner.
|
|
30
|
+
*/
|
|
30
31
|
private _validateTypeSource;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Запрещает помещение Type в папку другого Domain section.
|
|
34
|
+
*/
|
|
32
35
|
private _assertDestination;
|
|
33
36
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/** Внешние форматы, из которых Core умеет подготовить Domain-документы. */
|
|
2
1
|
export type DocumentImportFormat = 'graphql' | 'openapi';
|
|
3
|
-
/** Состояние кандидата относительно текущего Domain. */
|
|
4
2
|
export type DocumentImportCandidateStatus = 'ready' | 'conflict' | 'invalid';
|
|
5
|
-
/** Нормализованная диагностика импорта без привязки к конкретному UI. */
|
|
6
3
|
export interface DocumentImportDiagnostic {
|
|
7
4
|
severity: 'info' | 'warning' | 'error';
|
|
8
5
|
code: string;
|
|
@@ -11,13 +8,11 @@ export interface DocumentImportDiagnostic {
|
|
|
11
8
|
line?: number;
|
|
12
9
|
column?: number;
|
|
13
10
|
}
|
|
14
|
-
/** Неподдержанная конструкция исходного документа. */
|
|
15
11
|
export interface DocumentImportSkippedItem {
|
|
16
12
|
kind: string;
|
|
17
13
|
identity?: string;
|
|
18
14
|
reason: string;
|
|
19
15
|
}
|
|
20
|
-
/** Renderer-neutral описание одного документа, доступного для выбора. */
|
|
21
16
|
export interface DocumentImportCandidate {
|
|
22
17
|
id: string;
|
|
23
18
|
documentType: 'type';
|
|
@@ -32,7 +27,6 @@ export interface DocumentImportCandidate {
|
|
|
32
27
|
};
|
|
33
28
|
diagnostics: DocumentImportDiagnostic[];
|
|
34
29
|
}
|
|
35
|
-
/** Публичное представление подготовленного, но ещё не применённого импорта. */
|
|
36
30
|
export interface DocumentImportPlan {
|
|
37
31
|
id: string;
|
|
38
32
|
format: DocumentImportFormat;
|
|
@@ -42,31 +36,26 @@ export interface DocumentImportPlan {
|
|
|
42
36
|
diagnostics: DocumentImportDiagnostic[];
|
|
43
37
|
skipped: DocumentImportSkippedItem[];
|
|
44
38
|
}
|
|
45
|
-
/** Вход подготовки import plan. Source передаётся как обычный текст. */
|
|
46
39
|
export interface DocumentImportPrepareRequest {
|
|
47
40
|
format: DocumentImportFormat;
|
|
48
41
|
source: string;
|
|
49
42
|
sourceName?: string;
|
|
50
43
|
}
|
|
51
|
-
/** Папка назначения для создаваемых документов. */
|
|
52
44
|
export interface DocumentImportDestination {
|
|
53
45
|
folderId: string | number | null;
|
|
54
46
|
}
|
|
55
|
-
/** Подтверждённый пользователем набор кандидатов. */
|
|
56
47
|
export interface DocumentImportApplyRequest {
|
|
57
48
|
planId: string;
|
|
58
49
|
selectedCandidateIds: readonly string[];
|
|
59
50
|
destination: DocumentImportDestination;
|
|
60
51
|
conflictPolicy?: 'skip';
|
|
61
52
|
}
|
|
62
|
-
/** Результат применения одного кандидата. */
|
|
63
53
|
export interface DocumentImportApplyItemResult {
|
|
64
54
|
candidateId: string;
|
|
65
55
|
identity: string;
|
|
66
56
|
status: 'imported' | 'skipped' | 'failed';
|
|
67
57
|
message?: string;
|
|
68
58
|
}
|
|
69
|
-
/** Результат одной подтверждённой операции импорта. */
|
|
70
59
|
export interface DocumentImportApplyResult {
|
|
71
60
|
planId: string;
|
|
72
61
|
imported: number;
|
package/dist/features/core/modules/document-import/services/parsers/DocumentImportParser.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentImportDiagnostic, DocumentImportFormat, DocumentImportSkippedItem } from '../../domain/types/document-import.type';
|
|
2
|
-
/** Внутренний черновик Type, который Configurator не может изменить. */
|
|
3
2
|
export interface ParsedDocumentImportCandidate {
|
|
4
3
|
id: string;
|
|
5
4
|
identity: string;
|
|
@@ -10,13 +9,11 @@ export interface ParsedDocumentImportCandidate {
|
|
|
10
9
|
requiredFields: number;
|
|
11
10
|
diagnostics: DocumentImportDiagnostic[];
|
|
12
11
|
}
|
|
13
|
-
/** Нормализованный результат одного format-specific parser. */
|
|
14
12
|
export interface DocumentImportParserResult {
|
|
15
13
|
candidates: ParsedDocumentImportCandidate[];
|
|
16
14
|
diagnostics: DocumentImportDiagnostic[];
|
|
17
15
|
skipped: DocumentImportSkippedItem[];
|
|
18
16
|
}
|
|
19
|
-
/** Внутренний contract парсера внешнего документного формата. */
|
|
20
17
|
export interface DocumentImportParser {
|
|
21
18
|
readonly format: DocumentImportFormat;
|
|
22
19
|
parse: (source: string) => DocumentImportParserResult;
|