@endge/core 1.0.0-dev
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 +124692 -0
- package/dist/features/core/kernel/config/debugger.config.d.ts +2 -0
- package/dist/features/core/kernel/config/kernel.config.d.ts +29 -0
- package/dist/features/core/kernel/config/modules.config.d.ts +145 -0
- package/dist/features/core/kernel/constants/kernel.constants.d.ts +8 -0
- package/dist/features/core/kernel/endge.d.ts +149 -0
- package/dist/features/core/kernel/errors/EndgeDebuggerReadOnlyError.d.ts +7 -0
- package/dist/features/core/kernel/services/EndgeBundleCodec_Service.d.ts +15 -0
- package/dist/features/core/kernel/tools/bundle-json.d.ts +5 -0
- package/dist/features/core/kernel/tools/debugger-snapshot.d.ts +12 -0
- package/dist/features/core/kernel/tools/read-only-document.d.ts +1 -0
- package/dist/features/core/kernel/types/bootstrap.types.d.ts +32 -0
- package/dist/features/core/kernel/types/endge-bundle.types.d.ts +12 -0
- package/dist/features/core/modules/EndgeTypes_Module.d.ts +14 -0
- package/dist/features/core/modules/EndgeVocabs_Module.d.ts +178 -0
- package/dist/features/core/modules/actions/EndgeActions_Module.d.ts +107 -0
- package/dist/features/core/modules/actions/domain/action.types.d.ts +177 -0
- package/dist/features/core/modules/actions/services/ActionProgramExecutor.d.ts +36 -0
- package/dist/features/core/modules/actions/services/table-actions.d.ts +2 -0
- package/dist/features/core/modules/auth/EndgeAuth_Module.d.ts +57 -0
- package/dist/features/core/modules/auth/adapters/BasicAuthAdapter.d.ts +16 -0
- package/dist/features/core/modules/auth/adapters/BearerAuthAdapter.d.ts +16 -0
- package/dist/features/core/modules/auth/adapters/OAuth2ClientCredentialsAuthAdapter.d.ts +10 -0
- package/dist/features/core/modules/auth/adapters/OAuth2PasswordAuthAdapter.d.ts +13 -0
- package/dist/features/core/modules/auth/adapters/OidcAuthAdapter.d.ts +10 -0
- package/dist/features/core/modules/auth/adapters/OidcBrowserSession_Adapter.d.ts +50 -0
- package/dist/features/core/modules/auth/domain/AuthInteractionRequiredError.d.ts +8 -0
- package/dist/features/core/modules/auth/domain/types/auth-profile.types.d.ts +175 -0
- package/dist/features/core/modules/auth/domain/types/auth-runtime.types.d.ts +12 -0
- package/dist/features/core/modules/auth/services/AuthAdapterRegistry.d.ts +23 -0
- package/dist/features/core/modules/auth/services/AuthProfileRegistry.d.ts +48 -0
- package/dist/features/core/modules/auth/services/AuthRequestResolver.d.ts +22 -0
- package/dist/features/core/modules/auth/services/AuthSessionManager.d.ts +99 -0
- package/dist/features/core/modules/auth/services/AuthSessionStore.d.ts +34 -0
- package/dist/features/core/modules/auth/services/auth-context.d.ts +11 -0
- package/dist/features/core/modules/bridge/EndgeBridge_Module.d.ts +62 -0
- package/dist/features/core/modules/bridge/adapters/BrowserBridge_Adapter.d.ts +20 -0
- package/dist/features/core/modules/bridge/config/bridge.config.d.ts +38 -0
- package/dist/features/core/modules/bridge/configurator/EndgeBridgeConfigurator_Module.d.ts +28 -0
- package/dist/features/core/modules/bridge/debug/EndgeBridgeDebug_Module.d.ts +145 -0
- package/dist/features/core/modules/bridge/domain/bridge-sync.type.d.ts +27 -0
- package/dist/features/core/modules/bridge/domain/bridge.type.d.ts +75 -0
- package/dist/features/core/modules/bridge/services/BridgeConnection_Service.d.ts +41 -0
- package/dist/features/core/modules/bridge/tools/bridge-sync.d.ts +10 -0
- package/dist/features/core/modules/commands/EndgeCommands_Module.d.ts +25 -0
- package/dist/features/core/modules/commands/config/commands.config.d.ts +6 -0
- package/dist/features/core/modules/commands/domain/commands.types.d.ts +36 -0
- package/dist/features/core/modules/commands/services/LocalCommandExecutor.d.ts +13 -0
- package/dist/features/core/modules/commands/services/RemoteCommandExecutor.d.ts +13 -0
- package/dist/features/core/modules/commands/services/context/SetDataModeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetFacetCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetLocaleCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetThemeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetTimezoneCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetUserCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetWorkspaceCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/runtime/PauseRuntimeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/runtime/ResumeRuntimeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/runtime/StopRuntimeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/tools/command-payload.d.ts +2 -0
- package/dist/features/core/modules/commands/types/command-executor.type.d.ts +15 -0
- package/dist/features/core/modules/commands/types/context-command-target.type.d.ts +11 -0
- package/dist/features/core/modules/commands/types/runtime-command-target.type.d.ts +4 -0
- package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +375 -0
- package/dist/features/core/modules/compiler/services/action/action-compile.d.ts +10 -0
- package/dist/features/core/modules/compiler/services/action/action-target-validation.d.ts +8 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-attributes.d.ts +6 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-built-in-tags.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-compile.d.ts +34 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-dependencies.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression-ir.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression.d.ts +37 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-forward.d.ts +16 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-interactions.d.ts +10 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-parse.d.ts +9 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-ports.d.ts +20 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-script.d.ts +22 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-style.d.ts +11 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-menu.d.ts +15 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-pin.d.ts +24 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-sort.d.ts +28 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-visibility.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-template.d.ts +27 -0
- package/dist/features/core/modules/compiler/services/computation/computation-compile.d.ts +17 -0
- package/dist/features/core/modules/compiler/services/type/type-program-validation.d.ts +11 -0
- package/dist/features/core/modules/compiler/tools/compiled-program-catalog.d.ts +4 -0
- package/dist/features/core/modules/computations/EndgeComputations_Module.d.ts +80 -0
- package/dist/features/core/modules/computations/model/ComputationResource.d.ts +41 -0
- package/dist/features/core/modules/computations/model/ComputationResourceRegistry.d.ts +27 -0
- package/dist/features/core/modules/computations/services/ComputationGraphExecutor.d.ts +30 -0
- package/dist/features/core/modules/configuration/EndgeConfigurationSchema_Module.d.ts +28 -0
- package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +59 -0
- package/dist/features/core/modules/configuration/domain/configuration-value.d.ts +18 -0
- package/dist/features/core/modules/configuration/domain/endge-configuration.d.ts +8 -0
- package/dist/features/core/modules/configuration/domain/tooltip.config.d.ts +2 -0
- package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +158 -0
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +311 -0
- package/dist/features/core/modules/context/domain/context-events.types.d.ts +7 -0
- package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +80 -0
- package/dist/features/core/modules/context/domain/context-state.types.d.ts +7 -0
- package/dist/features/core/modules/context/endge-vars.d.ts +89 -0
- package/dist/features/core/modules/context/persistence/EndgeStorageAdapterRegistry.d.ts +9 -0
- package/dist/features/core/modules/context/persistence/RuntimeStateController.d.ts +28 -0
- package/dist/features/core/modules/context/persistence/adapters/DisabledContextAdapter.d.ts +8 -0
- package/dist/features/core/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +12 -0
- package/dist/features/core/modules/context/persistence/context-state.d.ts +7 -0
- package/dist/features/core/modules/converters/EndgeConverters_Module.d.ts +39 -0
- package/dist/features/core/modules/converters/tools/arrays/split.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/arrays/to-array.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-date-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-iso-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-iso-z.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-time-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/iso-string-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/iso-string-to-time-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/string-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/time-string-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/timestamp-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/weekdays-range.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/json/json-parse.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/json/json-stringify.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/numbers/number-to-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/numbers/string-to-number.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/strings/default-if-empty.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/strings/string-to-boolean.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/strings/string-trim.d.ts +1 -0
- package/dist/features/core/modules/diagnostics/EndgeDiagnosticsSnapshots_Module.d.ts +88 -0
- package/dist/features/core/modules/diagnostics/EndgeDiagnostics_Module.d.ts +158 -0
- package/dist/features/core/modules/diagnostics/EndgeProblems_Module.d.ts +63 -0
- package/dist/features/core/modules/diagnostics/EndgeTelemetry_Module.d.ts +280 -0
- package/dist/features/core/modules/diagnostics/adapters/BrowserDiagnosticsSnapshot_Adapter.d.ts +15 -0
- package/dist/features/core/modules/diagnostics/adapters/ConsoleDiagnosticsAdapter.d.ts +39 -0
- package/dist/features/core/modules/diagnostics/adapters/DiagnosticsAdapterRegistry.d.ts +33 -0
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.d.ts +115 -0
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.types.d.ts +11 -0
- package/dist/features/core/modules/diagnostics/config/diagnostics.config.d.ts +3 -0
- package/dist/features/core/modules/diagnostics/domain/diagnostics-snapshot.d.ts +6 -0
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsRecordStore.d.ts +92 -0
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsSpan.d.ts +45 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-adapter.type.d.ts +39 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-snapshot-runtime-adapter.type.d.ts +13 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics.types.d.ts +296 -0
- package/dist/features/core/modules/document-import/EndgeDocumentImport_Module.d.ts +36 -0
- package/dist/features/core/modules/document-import/domain/types/document-import.type.d.ts +65 -0
- package/dist/features/core/modules/document-import/services/parsers/DocumentImportParser.d.ts +20 -0
- package/dist/features/core/modules/document-import/services/parsers/GraphQLDocumentImportParser.d.ts +11 -0
- package/dist/features/core/modules/document-import/services/parsers/OpenAPIDocumentImportParser.d.ts +11 -0
- package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +1202 -0
- package/dist/features/core/modules/domain/component/component-sfc-edit-trigger.d.ts +48 -0
- package/dist/features/core/modules/domain/component/sfc/component-sfc-source-parts.d.ts +5 -0
- package/dist/features/core/modules/domain/component/sfc-editing.config.d.ts +2 -0
- package/dist/features/core/modules/domain/component/table.d.ts +4 -0
- package/dist/features/core/modules/domain/documents/domain-document-descriptors.d.ts +95 -0
- package/dist/features/core/modules/domain/documents/service-document-serializer.d.ts +6 -0
- package/dist/features/core/modules/domain/entities/RAction.d.ts +22 -0
- package/dist/features/core/modules/domain/entities/RAuthProfile.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RComponent.d.ts +18 -0
- package/dist/features/core/modules/domain/entities/RComponentBase.d.ts +16 -0
- package/dist/features/core/modules/domain/entities/RComponentCore.d.ts +30 -0
- package/dist/features/core/modules/domain/entities/RComponentDSL.d.ts +7 -0
- package/dist/features/core/modules/domain/entities/RComponentSFC.d.ts +41 -0
- package/dist/features/core/modules/domain/entities/RComponentTable.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/RComponentTableColumn.d.ts +40 -0
- package/dist/features/core/modules/domain/entities/RComposition.d.ts +18 -0
- package/dist/features/core/modules/domain/entities/RComputation.d.ts +19 -0
- package/dist/features/core/modules/domain/entities/RConfiguration.d.ts +13 -0
- package/dist/features/core/modules/domain/entities/RConverter.d.ts +15 -0
- package/dist/features/core/modules/domain/entities/RDataView.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/REntity.d.ts +48 -0
- package/dist/features/core/modules/domain/entities/RFacet.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RFacetDocument.d.ts +13 -0
- package/dist/features/core/modules/domain/entities/RField.d.ts +9 -0
- package/dist/features/core/modules/domain/entities/RFilter.d.ts +11 -0
- package/dist/features/core/modules/domain/entities/RFolder.d.ts +24 -0
- package/dist/features/core/modules/domain/entities/RI18nBundle.d.ts +18 -0
- package/dist/features/core/modules/domain/entities/RIntegration.d.ts +17 -0
- package/dist/features/core/modules/domain/entities/RMock.d.ts +30 -0
- package/dist/features/core/modules/domain/entities/RNavigation.d.ts +27 -0
- package/dist/features/core/modules/domain/entities/RPage.d.ts +45 -0
- package/dist/features/core/modules/domain/entities/RPageTemplate.d.ts +35 -0
- package/dist/features/core/modules/domain/entities/RPolicy.d.ts +9 -0
- package/dist/features/core/modules/domain/entities/RQuery.d.ts +13 -0
- package/dist/features/core/modules/domain/entities/RSimulation.d.ts +10 -0
- package/dist/features/core/modules/domain/entities/RStore.d.ts +10 -0
- package/dist/features/core/modules/domain/entities/RStream.d.ts +10 -0
- package/dist/features/core/modules/domain/entities/RStyle.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RType.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/RUpdate.d.ts +11 -0
- package/dist/features/core/modules/domain/entities/RVersion.d.ts +29 -0
- package/dist/features/core/modules/domain/entities/RVocabs.d.ts +31 -0
- package/dist/features/core/modules/domain/entities/RWorkspace.d.ts +17 -0
- package/dist/features/core/modules/domain/resolved/resolved-entity-index.d.ts +16 -0
- package/dist/features/core/modules/domain/types/component/component-core.types.d.ts +50 -0
- package/dist/features/core/modules/domain/types/component/component.types.d.ts +11 -0
- package/dist/features/core/modules/domain/types/component/sfc/ast.types.d.ts +86 -0
- package/dist/features/core/modules/domain/types/component/sfc/dependencies.types.d.ts +51 -0
- package/dist/features/core/modules/domain/types/component/sfc/expression-ir.types.d.ts +51 -0
- package/dist/features/core/modules/domain/types/component/sfc/intrinsic-events.types.d.ts +44 -0
- package/dist/features/core/modules/domain/types/component/sfc/ir.types.d.ts +269 -0
- package/dist/features/core/modules/domain/types/component/sfc/location.types.d.ts +8 -0
- package/dist/features/core/modules/domain/types/component/sfc/metadata-visual.types.d.ts +19 -0
- package/dist/features/core/modules/domain/types/component/sfc/ports-source.types.d.ts +40 -0
- package/dist/features/core/modules/domain/types/component/sfc/ports.types.d.ts +253 -0
- package/dist/features/core/modules/domain/types/component/sfc/props-visual.types.d.ts +18 -0
- package/dist/features/core/modules/domain/types/component/sfc/source.types.d.ts +15 -0
- package/dist/features/core/modules/domain/types/component/sfc/table-events.types.d.ts +88 -0
- package/dist/features/core/modules/domain/types/component/sfc/table-visibility.types.d.ts +5 -0
- package/dist/features/core/modules/domain/types/component/sfc/tag-attribute-contract.types.d.ts +140 -0
- package/dist/features/core/modules/domain/types/component/sfc/tag-input-contract.types.d.ts +211 -0
- package/dist/features/core/modules/domain/types/component/sfc/visual-projection.types.d.ts +311 -0
- package/dist/features/core/modules/domain/types/computation/computation-program.types.d.ts +35 -0
- package/dist/features/core/modules/domain/types/computation/computation-runtime.types.d.ts +46 -0
- package/dist/features/core/modules/domain/types/computation/computation-source.types.d.ts +30 -0
- package/dist/features/core/modules/domain/types/computation/computation.types.d.ts +3 -0
- package/dist/features/core/modules/domain/types/document/document-create.type.d.ts +16 -0
- package/dist/features/core/modules/domain/types/document/document-draft.type.d.ts +5 -0
- package/dist/features/core/modules/domain/types/document/document-identity.types.d.ts +28 -0
- package/dist/features/core/modules/domain/types/document/document-metadata.types.d.ts +36 -0
- package/dist/features/core/modules/domain/types/document/document-move.type.d.ts +5 -0
- package/dist/features/core/modules/domain/types/document/document.types.d.ts +76 -0
- package/dist/features/core/modules/domain/types/document/domain-export.type.d.ts +73 -0
- package/dist/features/core/modules/domain/types/document/domain-provider.type.d.ts +140 -0
- package/dist/features/core/modules/domain/types/document/domain-snapshot.type.d.ts +34 -0
- package/dist/features/core/modules/domain/types/document/entity-management.type.d.ts +28 -0
- package/dist/features/core/modules/domain/types/document/filter.types.d.ts +32 -0
- package/dist/features/core/modules/domain/types/document/navigation.types.d.ts +34 -0
- package/dist/features/core/modules/domain/types/document/query.types.d.ts +9 -0
- package/dist/features/core/modules/domain-repository/EndgeDomainRepository_Module.d.ts +126 -0
- package/dist/features/core/modules/domain-repository/services/domain-provider.d.ts +9 -0
- package/dist/features/core/modules/events/EndgeEvents_Module.d.ts +26 -0
- package/dist/features/core/modules/events/domain/events.types.d.ts +48 -0
- package/dist/features/core/modules/i18n/EndgeI18n_Module.d.ts +110 -0
- package/dist/features/core/modules/i18n/domain/i18n.types.d.ts +20 -0
- package/dist/features/core/modules/i18n/services/composition-i18n-catalog-projection.d.ts +15 -0
- package/dist/features/core/modules/i18n/services/i18n-catalog.d.ts +7 -0
- package/dist/features/core/modules/i18n/tools/resolve-runtime-translation.d.ts +2 -0
- package/dist/features/core/modules/implementations/EndgeImplementations_Module.d.ts +44 -0
- package/dist/features/core/modules/implementations/domain/implementation.types.d.ts +59 -0
- package/dist/features/core/modules/implementations/services/ImplementationBindingRegistry.d.ts +11 -0
- package/dist/features/core/modules/implementations/services/ImplementationProviderRegistry.d.ts +11 -0
- package/dist/features/core/modules/inspection/EndgeInspection_Module.d.ts +92 -0
- package/dist/features/core/modules/inspection/services/InspectionCapture_Service.d.ts +40 -0
- package/dist/features/core/modules/inspection/tools/inspection-recording.d.ts +11 -0
- package/dist/features/core/modules/inspection/types/inspection.types.d.ts +72 -0
- package/dist/features/core/modules/mock/EndgeMock_Module.d.ts +49 -0
- package/dist/features/core/modules/mock/domain/types/mock-data.type.d.ts +31 -0
- package/dist/features/core/modules/program/EndgeProgram_Module.d.ts +181 -0
- package/dist/features/core/modules/program/domain/types/action-program.types.d.ts +9 -0
- package/dist/features/core/modules/program/domain/types/execution-bundle.types.d.ts +71 -0
- package/dist/features/core/modules/program/domain/types/program-metadata.types.d.ts +15 -0
- package/dist/features/core/modules/program/domain/types/program.types.d.ts +186 -0
- package/dist/features/core/modules/program/tools/execution-bundle.d.ts +4 -0
- package/dist/features/core/modules/program/tools/portable-program-payload.d.ts +2 -0
- package/dist/features/core/modules/program/tools/restore-program-source.d.ts +2 -0
- package/dist/features/core/modules/runtime/ComponentSFCEventBoundary.d.ts +48 -0
- package/dist/features/core/modules/runtime/EndgeRuntimeScopes_Module.d.ts +34 -0
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +262 -0
- package/dist/features/core/modules/runtime/RuntimeActionRegistry.d.ts +20 -0
- package/dist/features/core/modules/runtime/RuntimeAppScope.d.ts +74 -0
- package/dist/features/core/modules/runtime/RuntimeBindingScope.d.ts +23 -0
- package/dist/features/core/modules/runtime/RuntimeHostBase.d.ts +109 -0
- package/dist/features/core/modules/runtime/RuntimeHostFactory.d.ts +13 -0
- package/dist/features/core/modules/runtime/RuntimeHostRegistry.d.ts +32 -0
- package/dist/features/core/modules/runtime/RuntimeResourceBag.d.ts +14 -0
- package/dist/features/core/modules/runtime/RuntimeScope.d.ts +60 -0
- package/dist/features/core/modules/runtime/adapters/QueryExecutor_Adapter.d.ts +74 -0
- package/dist/features/core/modules/runtime/domain/EndgeActionJsonScript.d.ts +2 -0
- package/dist/features/core/modules/runtime/domain/component-sfc-render-port.types.d.ts +7 -0
- package/dist/features/core/modules/runtime/domain/execution-context.types.d.ts +12 -0
- package/dist/features/core/modules/runtime/domain/query-execution.types.d.ts +6 -0
- package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +21 -0
- package/dist/features/core/modules/runtime/domain/runtime-execute.type.d.ts +18 -0
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +268 -0
- package/dist/features/core/modules/runtime/domain/runtime-inspection.types.d.ts +26 -0
- package/dist/features/core/modules/runtime/domain/runtime-registry.types.d.ts +23 -0
- package/dist/features/core/modules/runtime/domain/runtime-render-inspection.types.d.ts +25 -0
- package/dist/features/core/modules/runtime/domain/runtime-resource.types.d.ts +15 -0
- package/dist/features/core/modules/runtime/domain/runtime-scope.types.d.ts +43 -0
- package/dist/features/core/modules/runtime/domain/runtime-strategy.types.d.ts +22 -0
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +73 -0
- package/dist/features/core/modules/runtime/domain/sfc-render-inspection.type.d.ts +42 -0
- package/dist/features/core/modules/runtime/domain/simulation-runtime.types.d.ts +21 -0
- package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +18 -0
- package/dist/features/core/modules/runtime/domain/table-binding.types.d.ts +7 -0
- package/dist/features/core/modules/runtime/domain/table.types.d.ts +4 -0
- package/dist/features/core/modules/runtime/domain/vocab-cache.types.d.ts +24 -0
- package/dist/features/core/modules/runtime/execution/endge-composition.d.ts +13 -0
- package/dist/features/core/modules/runtime/execution/endge-data-view.d.ts +107 -0
- package/dist/features/core/modules/runtime/execution/endge-query.d.ts +30 -0
- package/dist/features/core/modules/runtime/execution/endge-response-output.d.ts +4 -0
- package/dist/features/core/modules/runtime/execution/endge-simulation.d.ts +7 -0
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts +23 -0
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-node-update-phase.d.ts +16 -0
- package/dist/features/core/modules/runtime/hosts/ActionRuntimeHost.d.ts +26 -0
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +225 -0
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +225 -0
- package/dist/features/core/modules/runtime/hosts/FilterRuntimeHost.d.ts +52 -0
- package/dist/features/core/modules/runtime/hosts/FilterViewRuntimeHost.d.ts +76 -0
- package/dist/features/core/modules/runtime/hosts/PageRuntimeHost.d.ts +22 -0
- package/dist/features/core/modules/runtime/hosts/QueryRuntimeHost.d.ts +71 -0
- package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +60 -0
- package/dist/features/core/modules/runtime/hosts/StoreRuntimeHost.d.ts +80 -0
- package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +48 -0
- package/dist/features/core/modules/runtime/operation/EndgeOperations_Module.d.ts +29 -0
- package/dist/features/core/modules/runtime/operation/operation-executor.d.ts +16 -0
- package/dist/features/core/modules/runtime/operation/operation-history.d.ts +65 -0
- package/dist/features/core/modules/runtime/services/RuntimeStrategyRegistry.d.ts +19 -0
- package/dist/features/core/modules/runtime/services/SFCRenderInspectionSession.d.ts +43 -0
- package/dist/features/core/modules/runtime/services/component-sfc-expression-evaluate.d.ts +13 -0
- package/dist/features/core/modules/runtime/services/simulation/create-simulation-schema.d.ts +4 -0
- package/dist/features/core/modules/runtime/services/simulation/find-simulation-runtime.d.ts +3 -0
- package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +13 -0
- package/dist/features/core/modules/runtime/services/strategies/ActionRuntimeStrategy.d.ts +8 -0
- package/dist/features/core/modules/runtime/services/strategies/ComponentSFCRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/CompositionRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/FilterRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/PageRuntimeStrategy.d.ts +8 -0
- package/dist/features/core/modules/runtime/services/strategies/QueryRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/SimulationRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/StoreRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/StreamRuntimeStrategy.d.ts +12 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserSseStreamTransportFactory.d.ts +11 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserWebSocketStreamTransportFactory.d.ts +10 -0
- package/dist/features/core/modules/runtime/tools/runtime-inspection.d.ts +7 -0
- package/dist/features/core/modules/runtime/tools/runtime-render-inspection.d.ts +5 -0
- package/dist/features/core/modules/runtime/tools/runtime-render-values.d.ts +3 -0
- package/dist/features/core/modules/source/EndgeSource_Module.d.ts +115 -0
- package/dist/features/core/modules/source/domain/types/action-source.types.d.ts +40 -0
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +390 -0
- package/dist/features/core/modules/source/domain/types/configuration-source.types.d.ts +46 -0
- package/dist/features/core/modules/source/domain/types/data-view-source.types.d.ts +127 -0
- package/dist/features/core/modules/source/domain/types/filter-source.types.d.ts +94 -0
- package/dist/features/core/modules/source/domain/types/filter-view.type.d.ts +35 -0
- package/dist/features/core/modules/source/domain/types/query-source.types.d.ts +78 -0
- package/dist/features/core/modules/source/domain/types/response-output.types.d.ts +9 -0
- package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +67 -0
- package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +166 -0
- package/dist/features/core/modules/source/domain/types/source-expression.types.d.ts +94 -0
- package/dist/features/core/modules/source/domain/types/store-source.types.d.ts +44 -0
- package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +52 -0
- package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +73 -0
- package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +41 -0
- package/dist/features/core/modules/source/domain/types/vocab-source.types.d.ts +37 -0
- package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +36 -0
- package/dist/features/core/modules/source/services/SourceEngineRegistry.d.ts +19 -0
- package/dist/features/core/modules/source/services/SourceLanguageRegistry.d.ts +19 -0
- package/dist/features/core/modules/source/services/SourcePatchRegistry.d.ts +19 -0
- package/dist/features/core/modules/source/services/compilers/action-source-compile.d.ts +18 -0
- package/dist/features/core/modules/source/services/compilers/composition-source-compile.d.ts +3 -0
- package/dist/features/core/modules/source/services/compilers/configuration-source-compile.d.ts +3 -0
- package/dist/features/core/modules/source/services/compilers/data-view-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/filter-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/query-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/simulation-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/source-expression-compile.d.ts +12 -0
- package/dist/features/core/modules/source/services/compilers/source-field-compile.d.ts +13 -0
- package/dist/features/core/modules/source/services/compilers/source-metadata-compile.d.ts +13 -0
- package/dist/features/core/modules/source/services/compilers/source-model-reference-compile.d.ts +14 -0
- package/dist/features/core/modules/source/services/compilers/store-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/stream-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/type-source-compile.d.ts +7 -0
- package/dist/features/core/modules/source/services/compilers/update-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/vocab-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-metadata-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-ports-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-props-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-table-source-patch.d.ts +2 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-visual-projection.d.ts +2 -0
- package/dist/features/core/modules/source/services/composition-activation.d.ts +2 -0
- package/dist/features/core/modules/source/services/composition-source-i18n-hints.d.ts +3 -0
- package/dist/features/core/modules/source/services/composition-source-normalize.d.ts +1 -0
- package/dist/features/core/modules/source/services/composition-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/configuration-source-patch.d.ts +14 -0
- package/dist/features/core/modules/source/services/document-metadata.d.ts +5 -0
- package/dist/features/core/modules/source/services/filter-source-patch.d.ts +10 -0
- package/dist/features/core/modules/source/services/migrations/query-source-v1-migration.d.ts +10 -0
- package/dist/features/core/modules/source/services/query-source-patch.d.ts +10 -0
- package/dist/features/core/modules/source/services/source-document-reference.d.ts +14 -0
- package/dist/features/core/modules/source/services/source-expression-evaluate.d.ts +3 -0
- package/dist/features/core/modules/source/services/source-language-syntax.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/ActionSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/ActionSourceLanguageStrategy.d.ts +23 -0
- package/dist/features/core/modules/source/services/strategies/CompositionSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/CompositionSourceLanguageStrategy.d.ts +14 -0
- package/dist/features/core/modules/source/services/strategies/CompositionSourcePatchStrategy.d.ts +21 -0
- package/dist/features/core/modules/source/services/strategies/ComputationSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/ComputationSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/ConfigurationSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/ConfigurationSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/DataViewSourceEngineStrategy.d.ts +20 -0
- package/dist/features/core/modules/source/services/strategies/DataViewSourceLanguageStrategy.d.ts +27 -0
- package/dist/features/core/modules/source/services/strategies/FilterSourceEngineStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/FilterSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/FilterSourcePatchStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/QuerySourceEngineStrategy.d.ts +20 -0
- package/dist/features/core/modules/source/services/strategies/QuerySourceLanguageStrategy.d.ts +27 -0
- package/dist/features/core/modules/source/services/strategies/QuerySourcePatchStrategy.d.ts +21 -0
- package/dist/features/core/modules/source/services/strategies/SimulationSourceEngineStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/SimulationSourceLanguageStrategy.d.ts +14 -0
- package/dist/features/core/modules/source/services/strategies/StoreSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/StoreSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/StreamSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/StreamSourceLanguageStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/StyleSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/StyleSourceLanguageStrategy.d.ts +43 -0
- package/dist/features/core/modules/source/services/strategies/TypeSourceEngineStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/TypeSourceLanguageStrategy.d.ts +13 -0
- package/dist/features/core/modules/source/services/strategies/UpdateSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/UpdateSourceLanguageStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/VocabSourceEngineStrategy.d.ts +8 -0
- package/dist/features/core/modules/source/services/strategies/VocabSourceLanguageStrategy.d.ts +11 -0
- package/dist/features/core/modules/source/services/strategies/VocabSourcePatchStrategy.d.ts +9 -0
- package/dist/features/core/modules/source/services/type-source-references.d.ts +10 -0
- package/dist/features/core/modules/source/services/type-source-serialize.d.ts +4 -0
- package/dist/features/core/modules/source/services/typescript-type-source.d.ts +16 -0
- package/dist/features/core/modules/source/services/value-expression-language.d.ts +4 -0
- package/dist/features/core/modules/source/services/value-expression-operations.d.ts +9 -0
- package/dist/features/core/modules/source/services/vocab-source-patch.d.ts +10 -0
- package/dist/features/core/modules/source/templates/action.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/component-sfc/component-sfc.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/composition.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/computation.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/configuration.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/data-view.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/filter.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/query.default.source.d.ts +2 -0
- package/dist/features/core/modules/source/templates/simulation.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/store.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/stream.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/type.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/update.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/vocab.default.source.d.ts +1 -0
- package/dist/features/core/modules/styles/EndgeStyles_Module.d.ts +34 -0
- package/dist/features/core/modules/styles/domain/types/style.types.d.ts +195 -0
- package/dist/features/core/modules/styles/services/endgecss-compile.d.ts +4 -0
- package/dist/features/core/modules/styles/services/endgecss-match.d.ts +5 -0
- package/dist/features/core/modules/ui/EndgeUIRegistry_Module.d.ts +130 -0
- package/dist/features/core/modules/ui/EndgeUI_Module.d.ts +108 -0
- package/dist/features/core/modules/ui/domain/types/context-menu.types.d.ts +20 -0
- package/dist/features/core/modules/ui/domain/types/jsx.types.d.ts +7 -0
- package/dist/features/core/modules/ui/domain/types/tooltip-markdown.types.d.ts +32 -0
- package/dist/features/core/modules/ui/domain/types/ui-composition.types.d.ts +167 -0
- package/dist/features/core/modules/ui/domain/types/ui-render-adapter.type.d.ts +29 -0
- package/dist/features/core/modules/ui/domain/types/ui.types.d.ts +17 -0
- package/dist/features/core/modules/ui/registry/UIAdapterRegistry.d.ts +58 -0
- package/dist/features/core/modules/ui/tooltip/endge-tooltip-markdown.d.ts +3 -0
- package/dist/features/core/modules/ui/ui-composition.config.d.ts +523 -0
- package/dist/features/core/modules/updates/EndgeUpdates_Module.d.ts +14 -0
- package/dist/features/core/modules/updates/tools/ScheduleUpdate-sse-generator.d.ts +9 -0
- package/dist/features/core/modules/workspace/EndgeWorkspace_Module.d.ts +145 -0
- package/dist/features/core/modules/workspace/domain/workspace.types.d.ts +30 -0
- package/dist/features/federation/EndgeFederation.d.ts +133 -0
- package/dist/features/federation/EndgeModule.d.ts +58 -0
- package/dist/features/federation/constants/federation.constants.d.ts +1 -0
- package/dist/features/federation/services/EndgeModuleController.d.ts +16 -0
- package/dist/features/federation/services/EndgeSlotRegistry.d.ts +14 -0
- package/dist/features/federation/tools/endge-token.d.ts +2 -0
- package/dist/features/federation/tools/sort-endge-modules.d.ts +9 -0
- package/dist/features/federation/types/endge-modules.types.d.ts +28 -0
- package/dist/features/federation/types/federation.types.d.ts +112 -0
- package/dist/features/federation/types/forge.types.d.ts +23 -0
- package/dist/main.d.ts +288 -0
- package/package.json +77 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
|
|
2
|
+
import { ProgramDiagnostic } from '../../../program/domain/types/program.types';
|
|
3
|
+
import { TypeSourceExpression } from './type-source.types';
|
|
4
|
+
export type EndgeJSONValue = null | boolean | number | string | EndgeJSONValue[] | {
|
|
5
|
+
[key: string]: EndgeJSONValue;
|
|
6
|
+
};
|
|
7
|
+
export interface ConfigurationSourceValueDefinition {
|
|
8
|
+
key: string;
|
|
9
|
+
type: TypeSourceExpression;
|
|
10
|
+
defaultValue: EndgeJSONValue;
|
|
11
|
+
defaultWasInferred: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
step?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ConfigurationSourceDocument {
|
|
19
|
+
values: ConfigurationSourceValueDefinition[];
|
|
20
|
+
}
|
|
21
|
+
export interface ConfigurationProgramPayload {
|
|
22
|
+
ast?: unknown;
|
|
23
|
+
type: 'configuration';
|
|
24
|
+
identity: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
sourceVersion: 1;
|
|
27
|
+
values: ConfigurationSourceValueDefinition[];
|
|
28
|
+
}
|
|
29
|
+
export interface ConfigurationSourceCompileResult {
|
|
30
|
+
ast: unknown | null;
|
|
31
|
+
document: ConfigurationSourceDocument | null;
|
|
32
|
+
draftDocument?: ConfigurationSourceDocument | null;
|
|
33
|
+
metadata: ProgramMetadataMap;
|
|
34
|
+
diagnostics: Omit<ProgramDiagnostic, 'entityRef'>[];
|
|
35
|
+
}
|
|
36
|
+
export interface EndgeConfigurationSchemaEntry {
|
|
37
|
+
ast?: unknown;
|
|
38
|
+
id: string | number;
|
|
39
|
+
identity: string;
|
|
40
|
+
displayName: string;
|
|
41
|
+
description?: string | null;
|
|
42
|
+
sourceVersion: number;
|
|
43
|
+
document: ConfigurationSourceDocument | null;
|
|
44
|
+
diagnostics: Omit<ProgramDiagnostic, 'entityRef'>[];
|
|
45
|
+
status: 'valid' | 'warning' | 'error';
|
|
46
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
|
|
2
|
+
import { ProgramDiagnostic } from '../../../program/domain/types/program.types';
|
|
3
|
+
import { SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
4
|
+
export type DataViewSourceMode = 'manual' | 'pipeline' | 'projection' | 'expression';
|
|
5
|
+
export type DataViewIncrementalRequest = {
|
|
6
|
+
mode: 'auto';
|
|
7
|
+
} | {
|
|
8
|
+
mode: 'full';
|
|
9
|
+
} | {
|
|
10
|
+
mode: 'collection-by-key';
|
|
11
|
+
key: string;
|
|
12
|
+
} | {
|
|
13
|
+
mode: 'filter-by-key';
|
|
14
|
+
key: string;
|
|
15
|
+
};
|
|
16
|
+
export type DataViewMaterializationStrategy = {
|
|
17
|
+
kind: 'full';
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'collection-by-key';
|
|
20
|
+
key: string;
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'filter-by-key';
|
|
23
|
+
key: string;
|
|
24
|
+
};
|
|
25
|
+
export interface DataViewSourceContract {
|
|
26
|
+
input: SourceFieldDefinition;
|
|
27
|
+
output: SourceFieldDefinition;
|
|
28
|
+
}
|
|
29
|
+
export interface DataViewSourceDocument {
|
|
30
|
+
mode: DataViewSourceMode;
|
|
31
|
+
incremental: DataViewIncrementalRequest;
|
|
32
|
+
props: SourceFieldDefinition[];
|
|
33
|
+
contract?: DataViewSourceContract | null;
|
|
34
|
+
filter?: SourceExpressionIR | null;
|
|
35
|
+
transform?: DataViewManualTransform;
|
|
36
|
+
steps?: DataViewPipelineStep[];
|
|
37
|
+
output?: Record<string, SourceExpressionIR>;
|
|
38
|
+
expression?: SourceExpressionIR;
|
|
39
|
+
}
|
|
40
|
+
export interface DataViewRunContext {
|
|
41
|
+
props?: Record<string, unknown>;
|
|
42
|
+
}
|
|
43
|
+
export interface DataViewManualTransform {
|
|
44
|
+
params: string[];
|
|
45
|
+
body: string;
|
|
46
|
+
}
|
|
47
|
+
export type DataViewPipelineStep = DataViewFromStep | DataViewJoinStep | DataViewMapStep | DataViewSelectStep;
|
|
48
|
+
export interface DataViewSelectStep {
|
|
49
|
+
type: 'select';
|
|
50
|
+
expression: SourceExpressionIR;
|
|
51
|
+
}
|
|
52
|
+
export interface DataViewFromStep {
|
|
53
|
+
type: 'from';
|
|
54
|
+
source: string;
|
|
55
|
+
as: string;
|
|
56
|
+
dataViews?: DataViewRef[];
|
|
57
|
+
}
|
|
58
|
+
export type DataViewRef = DataViewExternalRef | DataViewInlineRef | DataViewLocalRef;
|
|
59
|
+
export interface DataViewExternalRef {
|
|
60
|
+
kind: 'external';
|
|
61
|
+
identity: string;
|
|
62
|
+
}
|
|
63
|
+
export interface DataViewInlineRef {
|
|
64
|
+
kind: 'inline';
|
|
65
|
+
source: string;
|
|
66
|
+
}
|
|
67
|
+
export interface DataViewLocalRef {
|
|
68
|
+
kind: 'local';
|
|
69
|
+
ref: {
|
|
70
|
+
entityType: 'data-view';
|
|
71
|
+
id: string | number;
|
|
72
|
+
identity: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface DataViewJoinStep {
|
|
76
|
+
type: 'join';
|
|
77
|
+
source: string;
|
|
78
|
+
left: string;
|
|
79
|
+
right: string;
|
|
80
|
+
as: string;
|
|
81
|
+
}
|
|
82
|
+
export interface DataViewMapStep {
|
|
83
|
+
type: 'map';
|
|
84
|
+
spreads: DataViewMapSpread[];
|
|
85
|
+
fields: Record<string, DataViewExpression>;
|
|
86
|
+
}
|
|
87
|
+
export interface DataViewMapSpread {
|
|
88
|
+
source: string;
|
|
89
|
+
}
|
|
90
|
+
export type DataViewExpression = DataViewPathExpression | DataViewTemplateExpression | DataViewLiteralExpression | SourceExpressionIR;
|
|
91
|
+
export interface DataViewPathExpression {
|
|
92
|
+
type: 'path';
|
|
93
|
+
path: string;
|
|
94
|
+
operations: DataViewPathOperation[];
|
|
95
|
+
}
|
|
96
|
+
export type DataViewPathOperation = {
|
|
97
|
+
type: 'find';
|
|
98
|
+
criteria: Record<string, unknown>;
|
|
99
|
+
} | {
|
|
100
|
+
type: 'pick';
|
|
101
|
+
path: string;
|
|
102
|
+
} | {
|
|
103
|
+
type: 'convert';
|
|
104
|
+
converter: string;
|
|
105
|
+
options?: Record<string, unknown>;
|
|
106
|
+
};
|
|
107
|
+
export interface DataViewTemplateExpression {
|
|
108
|
+
type: 'template';
|
|
109
|
+
template: string;
|
|
110
|
+
}
|
|
111
|
+
export interface DataViewLiteralExpression {
|
|
112
|
+
type: 'literal';
|
|
113
|
+
value: unknown;
|
|
114
|
+
}
|
|
115
|
+
export interface DataViewSourceCompileResult {
|
|
116
|
+
ast: unknown;
|
|
117
|
+
document: DataViewSourceDocument | null;
|
|
118
|
+
artifact: unknown | null;
|
|
119
|
+
metadata: ProgramMetadataMap;
|
|
120
|
+
diagnostics: Omit<ProgramDiagnostic, 'entityRef'>[];
|
|
121
|
+
}
|
|
122
|
+
export interface DataViewRunTools {
|
|
123
|
+
convert: (identity: string, value: unknown, options?: Record<string, unknown>) => unknown;
|
|
124
|
+
pick: (value: unknown, path: string) => unknown;
|
|
125
|
+
path: (scope: unknown, path: string) => unknown;
|
|
126
|
+
template: (template: string, scope?: Record<string, unknown>) => string;
|
|
127
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
|
|
2
|
+
import { ProgramDiagnostic } from '../../../program/domain/types/program.types';
|
|
3
|
+
import { SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
4
|
+
export interface FilterSourceDocument {
|
|
5
|
+
fields: SourceFieldDefinition[];
|
|
6
|
+
outputs: FilterProgramOutput[];
|
|
7
|
+
}
|
|
8
|
+
export interface FilterSourceRange {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
}
|
|
12
|
+
export interface FilterSourceEditorField extends SourceFieldDefinition {
|
|
13
|
+
sourceRange: FilterSourceRange;
|
|
14
|
+
keyRange: FilterSourceRange;
|
|
15
|
+
valueRange: FilterSourceRange;
|
|
16
|
+
valueSource: string;
|
|
17
|
+
defaultSource: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface FilterSourceEditorOutput {
|
|
20
|
+
key: string;
|
|
21
|
+
kind: FilterProgramOutput['kind'];
|
|
22
|
+
sourceRange: FilterSourceRange;
|
|
23
|
+
source: string;
|
|
24
|
+
}
|
|
25
|
+
export interface FilterSourceEditorDocument {
|
|
26
|
+
fields: FilterSourceEditorField[];
|
|
27
|
+
outputs: FilterSourceEditorOutput[];
|
|
28
|
+
}
|
|
29
|
+
export type FilterSourcePatchOperation = {
|
|
30
|
+
type: 'add-field';
|
|
31
|
+
key: string;
|
|
32
|
+
expression: string;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'remove-field';
|
|
35
|
+
key: string;
|
|
36
|
+
} | {
|
|
37
|
+
type: 'move-field';
|
|
38
|
+
key: string;
|
|
39
|
+
toIndex: number;
|
|
40
|
+
} | {
|
|
41
|
+
type: 'rename-field';
|
|
42
|
+
key: string;
|
|
43
|
+
nextKey: string;
|
|
44
|
+
} | {
|
|
45
|
+
type: 'set-field';
|
|
46
|
+
key: string;
|
|
47
|
+
expression: string;
|
|
48
|
+
};
|
|
49
|
+
export type FilterSourcePatch = FilterSourcePatchOperation | FilterSourcePatchOperation[];
|
|
50
|
+
export interface FilterProgramJsonOutput {
|
|
51
|
+
key: string;
|
|
52
|
+
kind: 'json';
|
|
53
|
+
expression: SourceExpressionIR;
|
|
54
|
+
dependencies?: string[];
|
|
55
|
+
}
|
|
56
|
+
export interface FilterProgramPredicateOutput {
|
|
57
|
+
key: string;
|
|
58
|
+
kind: 'predicate';
|
|
59
|
+
expression: SourceExpressionIR;
|
|
60
|
+
dependencies?: string[];
|
|
61
|
+
}
|
|
62
|
+
export type FilterProgramOutput = FilterProgramJsonOutput | FilterProgramPredicateOutput;
|
|
63
|
+
export interface FilterProgramPayload {
|
|
64
|
+
ast?: unknown;
|
|
65
|
+
type: 'filter';
|
|
66
|
+
sourceVersion: number;
|
|
67
|
+
fields: SourceFieldDefinition[];
|
|
68
|
+
defaults: Record<string, SourceExpressionIR | undefined>;
|
|
69
|
+
outputs: FilterProgramOutput[];
|
|
70
|
+
}
|
|
71
|
+
export interface FilterSourceCompileResult {
|
|
72
|
+
ast: unknown | null;
|
|
73
|
+
document: FilterSourceDocument | null;
|
|
74
|
+
artifact: FilterProgramPayload | null;
|
|
75
|
+
metadata: ProgramMetadataMap;
|
|
76
|
+
diagnostics: Omit<ProgramDiagnostic, 'entityRef'>[];
|
|
77
|
+
}
|
|
78
|
+
export type FilterRuntimeOutput = {
|
|
79
|
+
key: string;
|
|
80
|
+
kind: 'json';
|
|
81
|
+
value: unknown;
|
|
82
|
+
} | {
|
|
83
|
+
key: string;
|
|
84
|
+
kind: 'predicate';
|
|
85
|
+
test: (row: unknown) => boolean;
|
|
86
|
+
};
|
|
87
|
+
export type FilterRuntimeActionId = 'patch' | 'set' | 'reset' | 'clear';
|
|
88
|
+
export interface FilterRuntimeSetPayload {
|
|
89
|
+
key: string;
|
|
90
|
+
value: unknown;
|
|
91
|
+
}
|
|
92
|
+
export interface FilterRuntimeActionHandle {
|
|
93
|
+
run: (payload?: unknown) => Promise<void>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SourceFieldDefinition, SourceFieldOption } from './source-expression.types';
|
|
2
|
+
export declare const ENDGE_UI_SELECT_METADATA_NAMESPACE = "endge.ui.select";
|
|
3
|
+
export declare const FILTER_SELECT_AUTO_OPTIMIZE_THRESHOLD = 10;
|
|
4
|
+
export interface FilterSelectPresentationMetadata {
|
|
5
|
+
searchable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface FilterSelectPresentation {
|
|
8
|
+
searchable: boolean;
|
|
9
|
+
virtualized: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function resolveFilterSelectPresentation(field: Pick<SourceFieldDefinition, 'metadata'>, optionCount: number): FilterSelectPresentation;
|
|
12
|
+
export type FilterViewControlType = 'Input' | 'Textarea' | 'Checkbox' | 'Select';
|
|
13
|
+
export interface FilterViewControlDefinition {
|
|
14
|
+
type: FilterViewControlType;
|
|
15
|
+
}
|
|
16
|
+
export interface FilterViewBuiltinProps {
|
|
17
|
+
showLabels?: boolean;
|
|
18
|
+
labels?: Record<string, string>;
|
|
19
|
+
}
|
|
20
|
+
export type FilterViewImplementation = {
|
|
21
|
+
kind: 'generated';
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'component';
|
|
24
|
+
identity: string;
|
|
25
|
+
};
|
|
26
|
+
export interface FilterViewRenderField extends SourceFieldDefinition {
|
|
27
|
+
control: FilterViewControlDefinition;
|
|
28
|
+
value: unknown;
|
|
29
|
+
options: SourceFieldOption[];
|
|
30
|
+
}
|
|
31
|
+
export interface FilterViewRenderModel {
|
|
32
|
+
implementation: FilterViewImplementation;
|
|
33
|
+
props: Readonly<Record<string, unknown>>;
|
|
34
|
+
fields: FilterViewRenderField[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { RQueryAuth } from '../../../domain/types/document/query.types';
|
|
2
|
+
import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
|
|
3
|
+
import { ProgramDiagnostic, QueryProgramPayload } from '../../../program/domain/types/program.types';
|
|
4
|
+
import { DataViewRef } from './data-view-source.types';
|
|
5
|
+
import { ResponseOutputTransform } from './response-output.types';
|
|
6
|
+
import { QueryProgramProp, SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
7
|
+
export type QuerySourceKind = 'rest' | 'graphql';
|
|
8
|
+
export type QueryGraphQLErrorPolicy = 'throw' | 'ignore';
|
|
9
|
+
export type QuerySourceRequestValue<T> = T | SourceExpressionIR;
|
|
10
|
+
export interface QuerySourceRestRequest {
|
|
11
|
+
endpoint: QuerySourceRequestValue<string>;
|
|
12
|
+
path: QuerySourceRequestValue<string>;
|
|
13
|
+
method: QuerySourceRequestValue<string>;
|
|
14
|
+
headers: QuerySourceRequestValue<Record<string, string>>;
|
|
15
|
+
auth: QuerySourceRequestValue<RQueryAuth>;
|
|
16
|
+
timeoutMs?: QuerySourceRequestValue<number>;
|
|
17
|
+
formUrlencoded?: QuerySourceRequestValue<boolean>;
|
|
18
|
+
body?: SourceExpressionIR | null;
|
|
19
|
+
}
|
|
20
|
+
export interface QuerySourceGraphQLRequest {
|
|
21
|
+
endpoint: QuerySourceRequestValue<string>;
|
|
22
|
+
document: string;
|
|
23
|
+
operationName?: string;
|
|
24
|
+
variables?: SourceExpressionIR | null;
|
|
25
|
+
headers: QuerySourceRequestValue<Record<string, string>>;
|
|
26
|
+
auth: QuerySourceRequestValue<RQueryAuth>;
|
|
27
|
+
timeoutMs?: QuerySourceRequestValue<number>;
|
|
28
|
+
errorPolicy: QueryGraphQLErrorPolicy;
|
|
29
|
+
}
|
|
30
|
+
export interface QuerySourceMock {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
data: unknown;
|
|
33
|
+
}
|
|
34
|
+
export type QueryOutputSource = {
|
|
35
|
+
type: 'response';
|
|
36
|
+
path: string | null;
|
|
37
|
+
expression?: SourceExpressionIR;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'output';
|
|
40
|
+
key: string;
|
|
41
|
+
};
|
|
42
|
+
export interface QuerySourceOutput {
|
|
43
|
+
key: string;
|
|
44
|
+
source: QueryOutputSource;
|
|
45
|
+
transforms: ResponseOutputTransform[];
|
|
46
|
+
dataViews: DataViewRef[];
|
|
47
|
+
contract?: SourceFieldDefinition | null;
|
|
48
|
+
}
|
|
49
|
+
export type QuerySourceOutputs = QuerySourceOutput[];
|
|
50
|
+
interface QuerySourceDocumentBase {
|
|
51
|
+
props: QueryProgramProp[];
|
|
52
|
+
outputs: QuerySourceOutputs;
|
|
53
|
+
mock: QuerySourceMock;
|
|
54
|
+
}
|
|
55
|
+
export interface QuerySourceRestDocument extends QuerySourceDocumentBase {
|
|
56
|
+
kind: 'rest';
|
|
57
|
+
request: QuerySourceRestRequest;
|
|
58
|
+
}
|
|
59
|
+
export interface QuerySourceGraphQLDocument extends QuerySourceDocumentBase {
|
|
60
|
+
kind: 'graphql';
|
|
61
|
+
request: QuerySourceGraphQLRequest;
|
|
62
|
+
}
|
|
63
|
+
export type QuerySourceDocument = QuerySourceRestDocument | QuerySourceGraphQLDocument;
|
|
64
|
+
export type QuerySourcePatchPath = 'kind' | 'request.endpoint' | 'request.path' | 'request.method' | 'request.headers' | 'request.auth' | 'request.timeoutMs' | 'request.formUrlencoded' | 'request.body' | 'props' | 'outputs' | 'mock.enabled' | 'mock.data';
|
|
65
|
+
export interface QuerySourcePatchOperation {
|
|
66
|
+
path: QuerySourcePatchPath;
|
|
67
|
+
value?: unknown;
|
|
68
|
+
expression?: string;
|
|
69
|
+
}
|
|
70
|
+
export type QuerySourcePatch = QuerySourcePatchOperation | QuerySourcePatchOperation[];
|
|
71
|
+
export interface QuerySourceCompileResult {
|
|
72
|
+
ast: unknown | null;
|
|
73
|
+
document: QuerySourceDocument | null;
|
|
74
|
+
artifact: QueryProgramPayload | null;
|
|
75
|
+
metadata: ProgramMetadataMap;
|
|
76
|
+
diagnostics: Omit<ProgramDiagnostic, 'entityRef'>[];
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
|
|
2
|
+
import { ProgramDependency, ProgramDiagnostic } from '../../../program/domain/types/program.types';
|
|
3
|
+
export interface SimulationMockRequest {
|
|
4
|
+
kind: 'mock-request';
|
|
5
|
+
seed?: string;
|
|
6
|
+
useExamples?: boolean;
|
|
7
|
+
arrays: Record<string, number>;
|
|
8
|
+
}
|
|
9
|
+
export interface SimulationFieldConstraints {
|
|
10
|
+
enum?: Array<string | number | boolean>;
|
|
11
|
+
minimum?: number;
|
|
12
|
+
maximum?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface SimulationMockStream {
|
|
15
|
+
kind: 'mock-stream';
|
|
16
|
+
type: string;
|
|
17
|
+
event: string;
|
|
18
|
+
seed?: string;
|
|
19
|
+
intervalMs: number;
|
|
20
|
+
itemsPerMessage: number;
|
|
21
|
+
fields: Record<string, SimulationFieldConstraints>;
|
|
22
|
+
}
|
|
23
|
+
export interface SimulationRuntimeOverride {
|
|
24
|
+
alias: string;
|
|
25
|
+
runtimes?: SimulationRuntimeOverride[];
|
|
26
|
+
request?: SimulationMockRequest;
|
|
27
|
+
stream?: SimulationMockStream;
|
|
28
|
+
}
|
|
29
|
+
export interface SimulationTargetReference {
|
|
30
|
+
entityType: 'composition';
|
|
31
|
+
identity: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SimulationSourceDocument {
|
|
34
|
+
target: SimulationTargetReference;
|
|
35
|
+
dataMode?: 'live' | 'mock';
|
|
36
|
+
runtimes: SimulationRuntimeOverride[];
|
|
37
|
+
}
|
|
38
|
+
export interface SimulationSourceArtifact extends SimulationSourceDocument {
|
|
39
|
+
ast?: unknown;
|
|
40
|
+
type: 'simulation';
|
|
41
|
+
sourceVersion: number;
|
|
42
|
+
}
|
|
43
|
+
export interface SimulationSourceCompileResult {
|
|
44
|
+
ast: unknown | null;
|
|
45
|
+
document: SimulationSourceDocument | null;
|
|
46
|
+
artifact: SimulationSourceArtifact | null;
|
|
47
|
+
metadata: ProgramMetadataMap;
|
|
48
|
+
diagnostics: Omit<ProgramDiagnostic, 'entityRef'>[];
|
|
49
|
+
dependencies: ProgramDependency[];
|
|
50
|
+
locations: Record<string, {
|
|
51
|
+
start: number;
|
|
52
|
+
end: number;
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
export interface SimulationSourceInput {
|
|
56
|
+
id: string | number;
|
|
57
|
+
identity: string;
|
|
58
|
+
displayName?: string;
|
|
59
|
+
source: string;
|
|
60
|
+
sourceVersion: number;
|
|
61
|
+
isPrimitive?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface SimulationSourceCatalog {
|
|
64
|
+
compositions: readonly SimulationSourceInput[];
|
|
65
|
+
queries: readonly SimulationSourceInput[];
|
|
66
|
+
types: readonly SimulationSourceInput[];
|
|
67
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { I18nCatalogProvenance, I18nRuntimeCatalog } from '../../../i18n/domain/i18n.types';
|
|
2
|
+
import { TypeSourceDefinition } from './type-source.types';
|
|
3
|
+
export type SourceKind = 'action' | 'query' | 'vocab' | 'data-view' | 'filter' | 'composition' | 'store' | 'stream' | 'simulation' | 'update' | 'computation' | 'style' | 'type' | 'configuration';
|
|
4
|
+
export interface SourceEngineCompileContext {
|
|
5
|
+
sourceVersion?: number;
|
|
6
|
+
executionContext?: Readonly<Record<string, string>>;
|
|
7
|
+
}
|
|
8
|
+
export type SourceLanguageCompletionKind = 'keyword' | 'function' | 'property' | 'value' | 'snippet';
|
|
9
|
+
export interface SourceLanguagePosition {
|
|
10
|
+
lineNumber: number;
|
|
11
|
+
column: number;
|
|
12
|
+
}
|
|
13
|
+
export interface SourceLanguageContext {
|
|
14
|
+
source: string;
|
|
15
|
+
position?: SourceLanguagePosition;
|
|
16
|
+
typeSymbols?: Array<{
|
|
17
|
+
identity: string;
|
|
18
|
+
displayName?: string;
|
|
19
|
+
category?: 'primitive' | 'reference' | 'user';
|
|
20
|
+
definition?: TypeSourceDefinition | null;
|
|
21
|
+
entityReference?: {
|
|
22
|
+
target: string;
|
|
23
|
+
storage: 'id' | 'identity';
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
documentSymbols?: Array<{
|
|
27
|
+
target: SourceDocumentReferenceTarget;
|
|
28
|
+
identity: string;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
description?: string | null;
|
|
31
|
+
}>;
|
|
32
|
+
ownerIdentity?: string;
|
|
33
|
+
i18n?: SourceLanguageI18nContext;
|
|
34
|
+
}
|
|
35
|
+
export interface SourceLanguageI18nOccurrence {
|
|
36
|
+
id: string;
|
|
37
|
+
catalogsByScope: Readonly<Record<string, I18nRuntimeCatalog>>;
|
|
38
|
+
provenanceByScope: Readonly<Record<string, I18nCatalogProvenance>>;
|
|
39
|
+
}
|
|
40
|
+
export interface SourceLanguageI18nContext {
|
|
41
|
+
locale: string;
|
|
42
|
+
fallbackLocale: string;
|
|
43
|
+
occurrences: readonly SourceLanguageI18nOccurrence[];
|
|
44
|
+
}
|
|
45
|
+
export interface SourceLanguageCompletion {
|
|
46
|
+
label: string;
|
|
47
|
+
kind: SourceLanguageCompletionKind;
|
|
48
|
+
insertText: string;
|
|
49
|
+
detail?: string;
|
|
50
|
+
documentation?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface SourceLanguageSignatureHelp {
|
|
53
|
+
activeSignature: number;
|
|
54
|
+
activeParameter: number;
|
|
55
|
+
signatures: Array<{
|
|
56
|
+
label: string;
|
|
57
|
+
documentation?: string;
|
|
58
|
+
parameters: Array<{
|
|
59
|
+
label: string;
|
|
60
|
+
documentation?: string;
|
|
61
|
+
}>;
|
|
62
|
+
}>;
|
|
63
|
+
}
|
|
64
|
+
export type SourceDocumentReferenceTarget = 'action' | 'auth-profile' | 'component' | 'composition' | 'computation' | 'converter' | 'data-view' | 'filter' | 'i18n-bundles' | 'mock' | 'query' | 'store' | 'stream' | 'update' | 'style' | 'type' | 'vocabs';
|
|
65
|
+
export interface SourceDocumentReference {
|
|
66
|
+
target: SourceDocumentReferenceTarget;
|
|
67
|
+
identity: string;
|
|
68
|
+
range: {
|
|
69
|
+
start: number;
|
|
70
|
+
end: number;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface SourceLanguageSemanticHighlight {
|
|
74
|
+
kind: 'type-reference';
|
|
75
|
+
status: 'resolved' | 'unresolved';
|
|
76
|
+
identity: string;
|
|
77
|
+
range: SourceDocumentReference['range'];
|
|
78
|
+
}
|
|
79
|
+
export interface SourceLanguageInlineHint {
|
|
80
|
+
kind: 'translation';
|
|
81
|
+
status: 'resolved' | 'ambiguous';
|
|
82
|
+
text: string;
|
|
83
|
+
tooltip?: string;
|
|
84
|
+
range: SourceDocumentReference['range'];
|
|
85
|
+
}
|
|
86
|
+
export interface SourceLanguageValidationResult extends SourceEngineResult {
|
|
87
|
+
diagnostics: unknown[];
|
|
88
|
+
}
|
|
89
|
+
export interface SourceEngineOperation {
|
|
90
|
+
type: string;
|
|
91
|
+
payload?: Record<string, unknown>;
|
|
92
|
+
}
|
|
93
|
+
export interface SourceEngineResult {
|
|
94
|
+
ok: boolean;
|
|
95
|
+
message?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface SourceEngineGenerateResult extends SourceEngineResult {
|
|
98
|
+
source?: string;
|
|
99
|
+
document?: unknown;
|
|
100
|
+
}
|
|
101
|
+
export interface SourceEngineCompileResult extends SourceEngineResult {
|
|
102
|
+
ast?: unknown;
|
|
103
|
+
document?: unknown;
|
|
104
|
+
artifact?: any;
|
|
105
|
+
metadata?: import('../../../program/domain/types/program-metadata.types').ProgramMetadataMap;
|
|
106
|
+
diagnostics?: unknown[];
|
|
107
|
+
dependencies?: import('../../../program/domain/types/program.types').ProgramDependency[];
|
|
108
|
+
}
|
|
109
|
+
export interface SourceParseResult<TDocument = unknown> extends SourceEngineResult {
|
|
110
|
+
ast?: unknown;
|
|
111
|
+
document?: TDocument;
|
|
112
|
+
diagnostics?: unknown[];
|
|
113
|
+
}
|
|
114
|
+
export interface SourcePatchResult<TDocument = unknown> extends SourceParseResult<TDocument> {
|
|
115
|
+
source: string;
|
|
116
|
+
changed: boolean;
|
|
117
|
+
}
|
|
118
|
+
export interface SourcePatchStrategy<TPatch = unknown, TDocument = unknown> {
|
|
119
|
+
id: string;
|
|
120
|
+
sourceKind: SourceKind;
|
|
121
|
+
supports: (sourceKind: SourceKind | string) => boolean;
|
|
122
|
+
parse: (source: string) => SourceParseResult<TDocument>;
|
|
123
|
+
patch: (source: string, patch: TPatch) => SourcePatchResult<TDocument>;
|
|
124
|
+
}
|
|
125
|
+
export interface SourceEngineStrategy {
|
|
126
|
+
id: string;
|
|
127
|
+
sourceKind: SourceKind;
|
|
128
|
+
supports: (sourceKind: SourceKind | string) => boolean;
|
|
129
|
+
execute?: (operation: SourceEngineOperation) => SourceEngineResult;
|
|
130
|
+
generate?: (model: unknown) => SourceEngineGenerateResult;
|
|
131
|
+
compile?: (source: string, context?: SourceEngineCompileContext) => SourceEngineCompileResult;
|
|
132
|
+
}
|
|
133
|
+
export interface SourceLanguageTokenPattern {
|
|
134
|
+
pattern: RegExp;
|
|
135
|
+
token: string;
|
|
136
|
+
next?: string;
|
|
137
|
+
}
|
|
138
|
+
export interface SourceLanguageSyntaxDefinition {
|
|
139
|
+
aliases: string[];
|
|
140
|
+
extensions: string[];
|
|
141
|
+
comments: {
|
|
142
|
+
lineComment: string;
|
|
143
|
+
blockComment: [string, string];
|
|
144
|
+
};
|
|
145
|
+
brackets: Array<[string, string]>;
|
|
146
|
+
autoClosingPairs: Array<{
|
|
147
|
+
open: string;
|
|
148
|
+
close: string;
|
|
149
|
+
}>;
|
|
150
|
+
triggerCharacters: string[];
|
|
151
|
+
tokenizer: Record<string, SourceLanguageTokenPattern[]>;
|
|
152
|
+
}
|
|
153
|
+
export interface SourceLanguageStrategy {
|
|
154
|
+
id: string;
|
|
155
|
+
sourceKind: SourceKind;
|
|
156
|
+
supports: (sourceKind: SourceKind | string) => boolean;
|
|
157
|
+
syntax: SourceLanguageSyntaxDefinition;
|
|
158
|
+
createDefaultSource: (variant?: string) => string;
|
|
159
|
+
normalize?: (source: string) => string;
|
|
160
|
+
validate: (source: string, context?: SourceLanguageContext) => SourceLanguageValidationResult;
|
|
161
|
+
completions: (context: SourceLanguageContext) => SourceLanguageCompletion[];
|
|
162
|
+
signatureHelp?: (context: SourceLanguageContext) => SourceLanguageSignatureHelp | null;
|
|
163
|
+
resolveReference?: (context: SourceLanguageContext) => SourceDocumentReference | null;
|
|
164
|
+
semanticHighlights?: (context: SourceLanguageContext) => SourceLanguageSemanticHighlight[];
|
|
165
|
+
inlineHints?: (context: SourceLanguageContext) => SourceLanguageInlineHint[];
|
|
166
|
+
}
|