@endge/core 3.2.1 → 4.0.3
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/dist/core.cjs +492 -513
- package/dist/core.js +83053 -83000
- package/dist/domain/entities/endge/EndgeFederation.d.ts +1 -1
- package/dist/domain/entities/endge/EndgeFederationStorage.d.ts +5 -0
- package/dist/domain/entities/endge/EndgeModule.d.ts +1 -1
- package/dist/domain/entities/endge/Subscribable.d.ts +20 -0
- package/dist/domain/entities/reflect/RAction.d.ts +1 -1
- package/dist/domain/entities/reflect/RAuthProfile.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponent.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponentBase.d.ts +2 -2
- package/dist/domain/entities/reflect/RComponentCore.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponentSFC.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponentTableColumn.d.ts +2 -2
- package/dist/domain/entities/reflect/RConverter.d.ts +1 -1
- package/dist/domain/entities/reflect/RFilter.d.ts +1 -1
- package/dist/domain/entities/reflect/RMock.d.ts +1 -1
- package/dist/domain/entities/reflect/RNavigation.d.ts +1 -1
- package/dist/domain/entities/reflect/RParameter.d.ts +1 -1
- package/dist/domain/entities/reflect/RQuery.d.ts +1 -1
- package/dist/domain/entities/runtime/ComponentSFCEventBoundary.d.ts +1 -1
- package/dist/domain/entities/runtime/RuntimeAppScope.d.ts +2 -2
- package/dist/domain/entities/runtime/RuntimeHostBase.d.ts +3 -3
- package/dist/domain/entities/runtime/RuntimeScopeRegistry.d.ts +1 -1
- package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +4 -4
- package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +3 -3
- package/dist/domain/entities/runtime/hosts/FilterRuntimeHost.d.ts +1 -1
- package/dist/domain/entities/runtime/hosts/FilterViewRuntimeHost.d.ts +2 -2
- package/dist/domain/entities/runtime/hosts/StoreRuntimeHost.d.ts +1 -1
- package/dist/domain/types/auth/auth-profile.types.d.ts +5 -5
- package/dist/domain/types/component/sfc/ir.types.d.ts +2 -2
- package/dist/domain/types/component/sfc/metadata-visual.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/ports-source.types.d.ts +2 -2
- package/dist/domain/types/component/sfc/ports.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/props-visual.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/tag-input-contract.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/visual-projection.types.d.ts +3 -3
- package/dist/domain/types/computation/computation-program.types.d.ts +1 -1
- package/dist/domain/types/computation/computation-runtime.types.d.ts +9 -9
- package/dist/domain/types/computation/computation-source.types.d.ts +1 -1
- package/dist/domain/types/configuration/configuration.type.d.ts +1 -1
- package/dist/domain/types/diagnostics/diagnostics-adapter.type.d.ts +6 -6
- package/dist/domain/types/diagnostics/diagnostics.types.d.ts +11 -11
- package/dist/domain/types/document/document.types.d.ts +15 -15
- package/dist/domain/types/document/domain-export.type.d.ts +21 -21
- package/dist/domain/types/document/domain-provider.type.d.ts +8 -8
- package/dist/domain/types/document/workspace.types.d.ts +1 -1
- package/dist/domain/types/kernel/bootstrap.types.d.ts +2 -2
- package/dist/domain/types/kernel/endge-modules.types.d.ts +1 -1
- package/dist/domain/types/kernel/events.types.d.ts +4 -4
- package/dist/domain/types/kernel/federation.types.d.ts +1 -1
- package/dist/domain/types/kernel/forge.types.d.ts +5 -5
- package/dist/domain/types/program/action-program.types.d.ts +1 -1
- package/dist/domain/types/program/program.types.d.ts +5 -5
- package/dist/domain/types/runtime/context-persistence.types.d.ts +9 -9
- package/dist/domain/types/runtime/runtime-entity-map.types.d.ts +10 -10
- package/dist/domain/types/runtime/runtime-host.types.d.ts +11 -11
- package/dist/domain/types/runtime/runtime-project-session.types.d.ts +2 -2
- package/dist/domain/types/runtime/runtime-registry.types.d.ts +12 -12
- package/dist/domain/types/runtime/runtime.types.d.ts +4 -4
- package/dist/domain/types/runtime/table-binding.types.d.ts +2 -2
- package/dist/domain/types/source/composition-source.types.d.ts +8 -8
- package/dist/domain/types/source/data-view-source.types.d.ts +1 -1
- package/dist/domain/types/source/filter-source.types.d.ts +1 -1
- package/dist/domain/types/source/query-source.types.d.ts +2 -2
- package/dist/domain/types/source/store-source.types.d.ts +1 -1
- package/dist/domain/types/source/vocab-source.types.d.ts +1 -1
- package/dist/main.d.ts +11 -9
- package/dist/model/{services/auth/OidcBrowserSession_Service.d.ts → adapters/auth/OidcBrowserSession_Adapter.d.ts} +3 -1
- package/dist/{domain/entities/endge → model/adapters/http}/EndgeApi.d.ts +9 -3
- package/dist/model/{services/query/QueryExecutor.d.ts → adapters/query/QueryExecutor_Adapter.d.ts} +14 -3
- package/dist/model/config/ui-composition.config.d.ts +12 -12
- package/dist/model/helpers/raph-phases/endge-runtime-boundary.d.ts +1 -1
- package/dist/model/helpers/raph-phases/runtime-boundary-update-phase.d.ts +1 -1
- package/dist/model/kernel/endge.d.ts +19 -19
- package/dist/model/modules/context/endge-configuration-schema.d.ts +1 -1
- package/dist/model/modules/context/endge-context.d.ts +2 -8
- package/dist/model/modules/context/endge-vars.d.ts +1 -1
- package/dist/model/modules/context/endge-workspace.d.ts +1 -1
- package/dist/model/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +2 -0
- package/dist/model/modules/diagnostics/endge-diagnostics.d.ts +36 -14
- package/dist/model/modules/diagnostics/endge-problems.d.ts +1 -1
- package/dist/model/modules/diagnostics/endge-telemetry.d.ts +3 -3
- package/dist/model/modules/domain/endge-domain-repository.d.ts +1 -1
- package/dist/model/modules/domain/endge-domain.d.ts +11 -11
- package/dist/model/modules/domain/endge-types.d.ts +1 -1
- package/dist/model/modules/domain/endge-vocabs.d.ts +1 -1
- package/dist/model/modules/program/endge-compiler.d.ts +12 -12
- package/dist/model/modules/program/endge-program.d.ts +3 -3
- package/dist/model/modules/program/endge-source.d.ts +1 -1
- package/dist/model/modules/runtime/core/endge-actions.d.ts +4 -4
- package/dist/model/modules/runtime/core/endge-runtime.d.ts +7 -7
- package/dist/model/modules/runtime/execution/action/action-program-executor.d.ts +1 -1
- package/dist/model/modules/runtime/execution/computation/ComputationGraphExecutor.d.ts +1 -1
- package/dist/model/modules/runtime/execution/computation/ComputationResourceRegistry.d.ts +1 -1
- package/dist/model/modules/runtime/execution/computation/EndgeComputation.d.ts +4 -4
- package/dist/model/modules/runtime/execution/endge-composition.d.ts +2 -2
- package/dist/model/modules/runtime/execution/endge-computation.d.ts +1 -1
- package/dist/model/modules/runtime/execution/endge-converters.d.ts +1 -1
- package/dist/model/modules/runtime/execution/endge-data-view.d.ts +1 -1
- package/dist/model/modules/runtime/execution/endge-query.d.ts +4 -7
- package/dist/model/modules/runtime/operation/endge-operations.d.ts +1 -1
- package/dist/model/modules/runtime/operation/operation-history.d.ts +1 -1
- package/dist/model/modules/security/endge-auth.d.ts +4 -4
- package/dist/model/modules/ui/endge-styles.d.ts +1 -1
- package/dist/model/modules/ui/endge-ui-registry.d.ts +1 -1
- package/dist/model/modules/ui/endge-ui.d.ts +1 -1
- package/dist/model/modules/ui/registry/UIAdapterRegistry.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-compile.d.ts +4 -4
- package/dist/model/services/compiler/component-sfc/component-sfc-dependencies.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-expression.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-forward.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-parse.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -2
- package/dist/model/services/compiler/component-sfc/component-sfc-script.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-visibility.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-template.d.ts +2 -2
- package/dist/model/services/compiler/type/type-program-validation.d.ts +1 -1
- package/dist/model/services/runtime/strategies/ActionRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/ComponentSFCRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/CompositionRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/FilterRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/PageRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/ProjectRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/QueryRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/StoreRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/StreamRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/source-engine/compilers/source-field-compile.d.ts +1 -1
- package/dist/model/services/source-engine/compilers/type-source-compile.d.ts +1 -1
- package/dist/model/services/source-engine/component-sfc/component-sfc-props-source-patch.d.ts +1 -1
- package/dist/model/services/source-engine/strategies/VocabSourcePatchStrategy.d.ts +1 -1
- package/dist/model/services/source-engine/vocab-source-patch.d.ts +1 -1
- package/dist/model/services/tooltip/endge-tooltip-markdown.d.ts +1 -1
- package/dist/test/domain/entities/endge/subscribable.test.d.ts +1 -0
- package/dist/test/model/modules/diagnostics/endge-diagnostics-submodules.test.d.ts +1 -0
- package/dist/tools/component-sfc-edit-trigger.d.ts +1 -1
- package/package.json +20 -26
- /package/dist/domain/types/{ui → presentation}/context-menu.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/filter-view.type.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/jsx.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/tooltip-markdown.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/ui-composition.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/ui-render-adapter.type.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/ui.types.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EndgeWorkspaceDefinition } from './workspace.types';
|
|
2
1
|
import { DomainDocumentType, DomainSectionType } from './document.types';
|
|
2
|
+
import { EndgeWorkspaceDefinition } from './workspace.types';
|
|
3
3
|
/** Workspace-конфигурация не содержит credential material. */
|
|
4
4
|
export type EndgeWorkspaceExport = EndgeWorkspaceDefinition;
|
|
5
5
|
/** Persisted-срез домена, который можно восстановить через plain provider. */
|
|
@@ -36,29 +36,29 @@ export interface EndgeDomainPlain {
|
|
|
36
36
|
}
|
|
37
37
|
/** Коллекции документов канонического snapshot нового backend-сервиса. */
|
|
38
38
|
export interface EndgePortableDocuments {
|
|
39
|
-
projects: unknown[];
|
|
40
|
-
tenants: unknown[];
|
|
41
|
-
environments: unknown[];
|
|
42
|
-
folders: unknown[];
|
|
43
|
-
types: unknown[];
|
|
44
|
-
queries: unknown[];
|
|
39
|
+
'projects': unknown[];
|
|
40
|
+
'tenants': unknown[];
|
|
41
|
+
'environments': unknown[];
|
|
42
|
+
'folders': unknown[];
|
|
43
|
+
'types': unknown[];
|
|
44
|
+
'queries': unknown[];
|
|
45
45
|
'data-views': unknown[];
|
|
46
|
-
compositions: unknown[];
|
|
47
|
-
stores: unknown[];
|
|
48
|
-
streams: unknown[];
|
|
49
|
-
updates: unknown[];
|
|
50
|
-
mocks: unknown[];
|
|
51
|
-
components: unknown[];
|
|
52
|
-
actions: unknown[];
|
|
53
|
-
filters: unknown[];
|
|
54
|
-
converters: unknown[];
|
|
55
|
-
computations: unknown[];
|
|
56
|
-
vocabs: unknown[];
|
|
46
|
+
'compositions': unknown[];
|
|
47
|
+
'stores': unknown[];
|
|
48
|
+
'streams': unknown[];
|
|
49
|
+
'updates': unknown[];
|
|
50
|
+
'mocks': unknown[];
|
|
51
|
+
'components': unknown[];
|
|
52
|
+
'actions': unknown[];
|
|
53
|
+
'filters': unknown[];
|
|
54
|
+
'converters': unknown[];
|
|
55
|
+
'computations': unknown[];
|
|
56
|
+
'vocabs': unknown[];
|
|
57
57
|
'i18n-bundles': unknown[];
|
|
58
58
|
'auth-profiles': unknown[];
|
|
59
|
-
navigations: unknown[];
|
|
60
|
-
styles: unknown[];
|
|
61
|
-
configurations: unknown[];
|
|
59
|
+
'navigations': unknown[];
|
|
60
|
+
'styles': unknown[];
|
|
61
|
+
'configurations': unknown[];
|
|
62
62
|
}
|
|
63
63
|
export interface EndgeInstalledIntegrationExport {
|
|
64
64
|
identity: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EndgeLiveDomainDocument, EndgeLiveDomainSnapshot, EndgeWorkspaceServerState } from './domain-snapshot.type';
|
|
2
2
|
/** Канонические коллекции persisted-домена нового backend. */
|
|
3
3
|
export type EndgeDomainCollection = 'projects' | 'tenants' | 'environments' | 'folders' | 'types' | 'queries' | 'data-views' | 'compositions' | 'stores' | 'streams' | 'updates' | 'mocks' | 'components' | 'actions' | 'filters' | 'converters' | 'computations' | 'vocabs' | 'i18n-bundles' | 'auth-profiles' | 'navigations' | 'styles' | 'configurations';
|
|
4
4
|
/** Возможности выбранного источника домена. */
|
|
@@ -65,13 +65,13 @@ export interface EndgeDomainProvider {
|
|
|
65
65
|
readonly id: string;
|
|
66
66
|
readonly capabilities: EndgeDomainProviderCapabilities;
|
|
67
67
|
readonly etag: string | null;
|
|
68
|
-
loadWorkspace(request: EndgeDomainLoadRequest)
|
|
69
|
-
createDocument(request: EndgeDocumentMutationRequest)
|
|
70
|
-
updateDocument(request: EndgeDocumentMutationRequest)
|
|
71
|
-
softDeleteDocument(request: EndgeDocumentMutationRequest)
|
|
72
|
-
restoreDocument(request: EndgeDocumentMutationRequest)
|
|
73
|
-
moveDocuments
|
|
74
|
-
updateWorkspace(request: EndgeWorkspaceMutationRequest)
|
|
68
|
+
loadWorkspace: (request: EndgeDomainLoadRequest) => Promise<EndgeLiveDomainSnapshot>;
|
|
69
|
+
createDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
|
|
70
|
+
updateDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
|
|
71
|
+
softDeleteDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
|
|
72
|
+
restoreDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
|
|
73
|
+
moveDocuments?: (request: EndgeDocumentsMoveRequest) => Promise<EndgeDocumentsMoveResult>;
|
|
74
|
+
updateWorkspace: (request: EndgeWorkspaceMutationRequest) => Promise<EndgeWorkspaceMutationResult>;
|
|
75
75
|
}
|
|
76
76
|
export type EndgeDomainRepositoryProviderId = 'service-backend' | 'bundle' | 'plain';
|
|
77
77
|
/** Публичные возможности активного источника persisted domain. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EndgeConfiguration, EndgeLocaleDefinition, EndgeThemeDefinition, EndgeTimezoneDefinition, EndgeVariableDefinition } from '../configuration/configuration.type';
|
|
2
1
|
import { EntityManagement } from './entity-management.type';
|
|
2
|
+
import { EndgeConfiguration, EndgeLocaleDefinition, EndgeThemeDefinition, EndgeTimezoneDefinition, EndgeVariableDefinition } from '../configuration/configuration.type';
|
|
3
3
|
export type EndgeWorkspaceLocale = EndgeLocaleDefinition;
|
|
4
4
|
export type EndgeDataMode = 'live' | 'mock';
|
|
5
5
|
export type EndgeWorkspaceLocaleLabelMode = keyof Pick<EndgeWorkspaceLocale, 'displayName' | 'shortLabel'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EndgeExecutionContext } from '../runtime/execution-context.types';
|
|
2
1
|
import { EndgeAuthBootOptions } from '../auth/auth-profile.types';
|
|
3
|
-
import { EndgeDomainProvider } from '../document/domain-provider.type';
|
|
4
2
|
import { EndgeDomainBundle } from '../document/domain-export.type';
|
|
3
|
+
import { EndgeDomainProvider } from '../document/domain-provider.type';
|
|
4
|
+
import { EndgeExecutionContext } from '../runtime/execution-context.types';
|
|
5
5
|
/**
|
|
6
6
|
* Источник получения доменных данных
|
|
7
7
|
* default - работа с внешним сервисом backend
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Связка события и id Действия из домена
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export interface EndgeEventBinding {
|
|
5
5
|
event: string;
|
|
6
6
|
actionId: string | null;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
export type AnyEventName = string;
|
|
9
9
|
export type AnyPayload = unknown;
|
|
10
|
-
export
|
|
10
|
+
export interface CachedEvent {
|
|
11
11
|
name: AnyEventName;
|
|
12
12
|
payload: AnyPayload;
|
|
13
13
|
at: number;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
export interface EndgeCustomEventMap {
|
|
16
16
|
[event: string]: unknown;
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndgeModule } from '../../entities/endge/EndgeModule';
|
|
2
|
-
import { EndgeModuleDescriptor, EndgePlugin } from './endge-modules.types';
|
|
3
2
|
import { EndgeBootContext } from './bootstrap.types';
|
|
3
|
+
import { EndgeModuleDescriptor, EndgePlugin } from './endge-modules.types';
|
|
4
4
|
export interface EndgeFederationHost {
|
|
5
5
|
isConfigured: boolean;
|
|
6
6
|
isConfiguring: boolean;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface EndgeModule {
|
|
5
5
|
id: string;
|
|
6
|
-
setup()
|
|
7
|
-
destroy
|
|
8
|
-
toPlain
|
|
9
|
-
fromPlain
|
|
6
|
+
setup: () => void;
|
|
7
|
+
destroy?: () => void;
|
|
8
|
+
toPlain?: () => object;
|
|
9
|
+
fromPlain?: (data: object) => void;
|
|
10
10
|
}
|
|
11
11
|
export type EndgeEventMap = Record<string, any>;
|
|
12
12
|
/**
|
|
@@ -16,7 +16,7 @@ export type EndgeToken<T, E extends EndgeEventMap> = string & {
|
|
|
16
16
|
__t?: T;
|
|
17
17
|
__ev?: E;
|
|
18
18
|
};
|
|
19
|
-
export declare
|
|
19
|
+
export declare function endgeToken<T, E extends EndgeEventMap = object>(id: string): EndgeToken<T, E>;
|
|
20
20
|
export type EndgeModuleCtor = new () => EndgeModule;
|
|
21
21
|
export type EndgeModuleSpec = EndgeModule | EndgeModuleCtor;
|
|
22
22
|
export type EndgeModuleLoader = (() => Promise<EndgeModuleSpec> | EndgeModuleSpec) | EndgeModuleSpec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionSourceDocument } from '../source/action-source.types';
|
|
2
1
|
import { ActionTargetSelector } from '../runtime/action.types';
|
|
2
|
+
import { ActionSourceDocument } from '../source/action-source.types';
|
|
3
3
|
export interface ActionProgramPayload {
|
|
4
4
|
type: 'action';
|
|
5
5
|
sourceVersion: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RComponentContract, RComponentDependencies } from '../component/component-core.types';
|
|
2
|
-
import { DataViewManualTransform, DataViewPipelineStep, DataViewRef, DataViewSourceDocument } from '../source/data-view-source.types';
|
|
3
2
|
import { RComponentSFC_AST } from '../component/sfc/ast.types';
|
|
4
|
-
import { RComponentSFC_IR } from '../component/sfc/ir.types';
|
|
5
3
|
import { RComponentSFC_RuntimeDependencies } from '../component/sfc/dependencies.types';
|
|
4
|
+
import { RComponentSFC_IR } from '../component/sfc/ir.types';
|
|
6
5
|
import { RComponentSFCSource_Parts } from '../component/sfc/source.types';
|
|
7
|
-
import {
|
|
6
|
+
import { ComputationProgramPayload } from '../computation/computation-program.types';
|
|
7
|
+
import { ProgramMetadata } from './program-metadata.types';
|
|
8
|
+
import { DataViewManualTransform, DataViewPipelineStep, DataViewRef, DataViewSourceDocument } from '../source/data-view-source.types';
|
|
8
9
|
import { ResponseOutputTransform } from '../source/response-output.types';
|
|
10
|
+
import { QueryProgramProp, SourceExpressionIR, SourceFieldDefinition } from '../source/source-expression.types';
|
|
9
11
|
import { VocabProgramPayload } from '../source/vocab-source.types';
|
|
10
|
-
import { ProgramMetadata } from './program-metadata.types';
|
|
11
|
-
import { ComputationProgramPayload } from '../computation/computation-program.types';
|
|
12
12
|
import { EndgeStyleSheetArtifact } from '../style/style.types';
|
|
13
13
|
export type { ActionProgramPayload } from './action-program.types';
|
|
14
14
|
export type { ConfigurationProgramPayload } from '../source/configuration-source.types';
|
|
@@ -57,14 +57,14 @@ export interface EndgeSessionIdentity {
|
|
|
57
57
|
tenantId?: string | null;
|
|
58
58
|
}
|
|
59
59
|
export interface EndgeSessionIdentityProvider {
|
|
60
|
-
getCurrentIdentity()
|
|
60
|
+
getCurrentIdentity: () => EndgeSessionIdentity | null;
|
|
61
61
|
}
|
|
62
62
|
export interface EndgeStorageAdapter {
|
|
63
63
|
readonly id: EndgePersistenceDriver;
|
|
64
|
-
isAvailable()
|
|
65
|
-
read<T>(key: string)
|
|
66
|
-
write<T>(key: string, value: T)
|
|
67
|
-
remove(key: string)
|
|
64
|
+
isAvailable: () => boolean;
|
|
65
|
+
read: <T>(key: string) => T | undefined;
|
|
66
|
+
write: <T>(key: string, value: T) => void;
|
|
67
|
+
remove: (key: string) => void;
|
|
68
68
|
}
|
|
69
69
|
export interface RuntimeStateDocument {
|
|
70
70
|
version: 1;
|
|
@@ -77,8 +77,8 @@ export interface RuntimeStateControllerLike {
|
|
|
77
77
|
readonly storageId: string;
|
|
78
78
|
readonly storageKey: string;
|
|
79
79
|
readonly scope: EndgePersistenceScope;
|
|
80
|
-
get<T>(entityKey: string, section: string, fallback: T)
|
|
81
|
-
set<T>(entityKey: string, section: string, value: T)
|
|
82
|
-
remove(entityKey: string, section?: string)
|
|
83
|
-
clear()
|
|
80
|
+
get: <T>(entityKey: string, section: string, fallback: T) => T;
|
|
81
|
+
set: <T>(entityKey: string, section: string, value: T) => void;
|
|
82
|
+
remove: (entityKey: string, section?: string) => void;
|
|
83
|
+
clear: () => void;
|
|
84
84
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RAction } from '../../entities/reflect/RAction';
|
|
2
2
|
import { RComponentSFC } from '../../entities/reflect/RComponentSFC';
|
|
3
|
+
import { RComposition } from '../../entities/reflect/RComposition';
|
|
4
|
+
import { RFilter } from '../../entities/reflect/RFilter';
|
|
3
5
|
import { RPage } from '../../entities/reflect/RPage';
|
|
4
6
|
import { RProject } from '../../entities/reflect/RProject';
|
|
5
7
|
import { RQuery } from '../../entities/reflect/RQuery';
|
|
6
|
-
import { RFilter } from '../../entities/reflect/RFilter';
|
|
7
|
-
import { RComposition } from '../../entities/reflect/RComposition';
|
|
8
8
|
import { RStore } from '../../entities/reflect/RStore';
|
|
9
9
|
import { RStream } from '../../entities/reflect/RStream';
|
|
10
10
|
/**
|
|
@@ -12,23 +12,23 @@ import { RStream } from '../../entities/reflect/RStream';
|
|
|
12
12
|
*/
|
|
13
13
|
export interface RuntimeEntityModelMap {
|
|
14
14
|
/** Доменная модель проекта. */
|
|
15
|
-
project: RProject;
|
|
15
|
+
'project': RProject;
|
|
16
16
|
/** Доменная модель страницы. */
|
|
17
|
-
page: RPage;
|
|
17
|
+
'page': RPage;
|
|
18
18
|
/** Доменная модель SFC-компонента нового API. */
|
|
19
19
|
'component-sfc': RComponentSFC;
|
|
20
20
|
/** Доменная модель запроса. */
|
|
21
|
-
query: RQuery;
|
|
21
|
+
'query': RQuery;
|
|
22
22
|
/** Source-first Filter runtime. */
|
|
23
|
-
filter: RFilter;
|
|
23
|
+
'filter': RFilter;
|
|
24
24
|
/** Runtime orchestration graph. */
|
|
25
|
-
composition: RComposition;
|
|
25
|
+
'composition': RComposition;
|
|
26
26
|
/** Source-first reactive Store runtime. */
|
|
27
|
-
store: RStore;
|
|
27
|
+
'store': RStore;
|
|
28
28
|
/** External or emulated normalized event stream. */
|
|
29
|
-
stream: RStream;
|
|
29
|
+
'stream': RStream;
|
|
30
30
|
/** Доменная модель action. */
|
|
31
|
-
action: RAction;
|
|
31
|
+
'action': RAction;
|
|
32
32
|
}
|
|
33
33
|
/** Дискриминатор типа runtime-сущности. */
|
|
34
34
|
export type RuntimeEntityType = keyof RuntimeEntityModelMap;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PhaseEvent, PhaseName, RaphFrameContext, RaphNode } from '../../../../../@endge-raph/dist/main.d.ts';
|
|
2
2
|
import { ProgramArtifact, ProgramEntityType } from '../program/program.types';
|
|
3
|
+
import { RuntimeStateControllerLike } from './context-persistence.types';
|
|
3
4
|
import { RuntimeEntityModelMap, RuntimeEntityType } from './runtime-entity-map.types';
|
|
4
5
|
import { RuntimeKind } from './runtime.types';
|
|
5
|
-
import { PhaseEvent, PhaseName, RaphFrameContext, RaphNode } from '../../../../../@endge-raph/dist/main.d.ts';
|
|
6
6
|
export type RuntimeHostStatus = 'created' | 'mounted' | 'running' | 'active' | 'pausing' | 'paused' | 'stopping' | 'stopped' | 'unmounted' | 'destroyed' | 'error';
|
|
7
7
|
/** Возможность, которую runtime-host предоставляет внешним consumers. */
|
|
8
8
|
export type RuntimeHostCapability = 'renderable';
|
|
@@ -80,15 +80,15 @@ export interface ProjectRuntimeHostContext extends RuntimeHostContextBase {
|
|
|
80
80
|
lastRefreshAt: string | null;
|
|
81
81
|
}
|
|
82
82
|
export interface RuntimeHostContextMap {
|
|
83
|
-
action: ActionRuntimeHostContext;
|
|
84
|
-
query: QueryRuntimeHostContext;
|
|
85
|
-
filter: FilterRuntimeHostContext;
|
|
86
|
-
composition: CompositionRuntimeHostContext;
|
|
87
|
-
store: StoreRuntimeHostContext;
|
|
88
|
-
stream: StreamRuntimeHostContext;
|
|
83
|
+
'action': ActionRuntimeHostContext;
|
|
84
|
+
'query': QueryRuntimeHostContext;
|
|
85
|
+
'filter': FilterRuntimeHostContext;
|
|
86
|
+
'composition': CompositionRuntimeHostContext;
|
|
87
|
+
'store': StoreRuntimeHostContext;
|
|
88
|
+
'stream': StreamRuntimeHostContext;
|
|
89
89
|
'component-sfc': ComponentSFCRuntimeHostContext;
|
|
90
|
-
page: PageRuntimeHostContext;
|
|
91
|
-
project: ProjectRuntimeHostContext;
|
|
90
|
+
'page': PageRuntimeHostContext;
|
|
91
|
+
'project': ProjectRuntimeHostContext;
|
|
92
92
|
}
|
|
93
93
|
export type RuntimeHostContext<TType extends RuntimeEntityType> = RuntimeHostContextMap[TType];
|
|
94
94
|
export interface RuntimeHostSnapshot {
|
|
@@ -144,7 +144,7 @@ export interface DestroyedRuntimeHostSnapshot {
|
|
|
144
144
|
channels: RuntimeHostChannel[];
|
|
145
145
|
}
|
|
146
146
|
export interface RuntimeInspectionLease {
|
|
147
|
-
release()
|
|
147
|
+
release: () => void;
|
|
148
148
|
}
|
|
149
149
|
export interface RuntimeHostLifecycle {
|
|
150
150
|
/** Compatibility entrypoint: mount + start. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CompositionPublicOutputHandle, CompositionSession } from '../source/composition-source.types';
|
|
2
1
|
import { CompositionRuntimeHost } from '../../entities/runtime/hosts/CompositionRuntimeHost';
|
|
3
|
-
import { RuntimeScopeHandle } from './runtime-scope.types';
|
|
4
2
|
import { RuntimeArtifactReader } from './runtime-host.types';
|
|
3
|
+
import { RuntimeScopeHandle } from './runtime-scope.types';
|
|
4
|
+
import { CompositionPublicOutputHandle, CompositionSession } from '../source/composition-source.types';
|
|
5
5
|
export interface ProjectCompositionRegistry {
|
|
6
6
|
get: (identity: string) => ProjectCompositionHandle | null;
|
|
7
7
|
require: (identity: string) => ProjectCompositionHandle;
|
|
@@ -14,27 +14,27 @@ export interface RuntimeHostRegistrySnapshot {
|
|
|
14
14
|
}
|
|
15
15
|
export interface RuntimeHostRegistryLike {
|
|
16
16
|
/** Зарегистрировать host в registry и вернуть его же. */
|
|
17
|
-
register<T extends RuntimeHost<any, any>>(host: T)
|
|
17
|
+
register: <T extends RuntimeHost<any, any>>(host: T) => T;
|
|
18
18
|
/** Найти host по runtime-id. */
|
|
19
|
-
getById(id: string)
|
|
19
|
+
getById: (id: string) => RuntimeHost<any, any> | null;
|
|
20
20
|
/** Получить список всех host. */
|
|
21
|
-
getAll()
|
|
21
|
+
getAll: () => RuntimeHost<any, any>[];
|
|
22
22
|
/** Получить host для конкретной доменной сущности. */
|
|
23
|
-
getByEntity(entityType: RuntimeEntityType, entityIdentity: string)
|
|
23
|
+
getByEntity: (entityType: RuntimeEntityType, entityIdentity: string) => RuntimeHost<any, any>[];
|
|
24
24
|
/** Удалить host по runtime-id и вернуть удаленный экземпляр. */
|
|
25
|
-
removeById(id: string)
|
|
25
|
+
removeById: (id: string) => RuntimeHost<any, any> | null;
|
|
26
26
|
/** Очистить registry и разрушить все host. */
|
|
27
|
-
clear()
|
|
27
|
+
clear: () => void;
|
|
28
28
|
/** Сохранить snapshot удалённого host в debug-архив. */
|
|
29
|
-
rememberDeletedSnapshot(snapshot: DestroyedRuntimeHostSnapshot)
|
|
29
|
+
rememberDeletedSnapshot: (snapshot: DestroyedRuntimeHostSnapshot) => void;
|
|
30
30
|
/** Получить снимки удалённых host из debug-архива. */
|
|
31
|
-
getDeletedSnapshots()
|
|
31
|
+
getDeletedSnapshots: () => DestroyedRuntimeHostSnapshot[];
|
|
32
32
|
/** Удалить один snapshot из debug-архива по runtime-id. */
|
|
33
|
-
removeDeletedSnapshot(id: string)
|
|
33
|
+
removeDeletedSnapshot: (id: string) => DestroyedRuntimeHostSnapshot | null;
|
|
34
34
|
/** Apply the effective bounded inspection capacity immediately. */
|
|
35
|
-
setDeletedSnapshotLimit(limit: number)
|
|
35
|
+
setDeletedSnapshotLimit: (limit: number) => void;
|
|
36
36
|
/** Очистить debug-архив удалённых host. */
|
|
37
|
-
clearDeleted()
|
|
37
|
+
clearDeleted: () => void;
|
|
38
38
|
/** Получить сериализованный snapshot registry. */
|
|
39
|
-
snapshot()
|
|
39
|
+
snapshot: () => RuntimeHostRegistrySnapshot;
|
|
40
40
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { RFilter } from '../../entities/reflect/RFilter';
|
|
2
|
-
import { RComposition } from '../../entities/reflect/RComposition';
|
|
3
|
-
import { RStore } from '../../entities/reflect/RStore';
|
|
4
|
-
import { RStream } from '../../entities/reflect/RStream';
|
|
5
1
|
import { RAction } from '../../entities/reflect/RAction';
|
|
6
2
|
import { RComponentSFC } from '../../entities/reflect/RComponentSFC';
|
|
3
|
+
import { RComposition } from '../../entities/reflect/RComposition';
|
|
4
|
+
import { RFilter } from '../../entities/reflect/RFilter';
|
|
7
5
|
import { RPage } from '../../entities/reflect/RPage';
|
|
8
6
|
import { RProject } from '../../entities/reflect/RProject';
|
|
9
7
|
import { RQuery } from '../../entities/reflect/RQuery';
|
|
8
|
+
import { RStore } from '../../entities/reflect/RStore';
|
|
9
|
+
import { RStream } from '../../entities/reflect/RStream';
|
|
10
10
|
import { RuntimeHostRegistrySnapshot } from './runtime-registry.types';
|
|
11
11
|
/**
|
|
12
12
|
* Runtime kinds
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompositionRuntimeHost } from '../../entities/runtime/hosts/CompositionRuntimeHost';
|
|
2
|
+
import { ComponentSFCInteractionTrigger } from '../component/sfc/ir.types';
|
|
3
|
+
import { ComponentSFCEventInputValue } from '../component/sfc/ports.types';
|
|
4
|
+
import { EndgeDataMode } from '../document/workspace.types';
|
|
5
|
+
import { I18nCompiledLocales } from '../i18n.types';
|
|
6
|
+
import { EndgeMockReference } from '../mock/mock-data.type';
|
|
7
|
+
import { FilterViewControlDefinition } from '../presentation/filter-view.type';
|
|
2
8
|
import { ProgramMetadataMap } from '../program/program-metadata.types';
|
|
9
|
+
import { ProgramDiagnostic } from '../program/program.types';
|
|
3
10
|
import { RuntimeHost } from '../runtime/runtime-host.types';
|
|
4
11
|
import { RuntimeScopeHandle } from '../runtime/runtime-scope.types';
|
|
5
12
|
import { VocabLoadPolicy } from '../runtime/vocab-cache.types';
|
|
6
|
-
import { CompositionRuntimeHost } from '../../entities/runtime/hosts/CompositionRuntimeHost';
|
|
7
13
|
import { SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
8
|
-
import { FilterViewControlDefinition } from '../ui/filter-view.type';
|
|
9
|
-
import { EndgeMockReference } from '../mock/mock-data.type';
|
|
10
|
-
import { I18nCompiledLocales } from '../i18n.types';
|
|
11
|
-
import { ComponentSFCEventInputValue } from '../component/sfc/ports.types';
|
|
12
14
|
import { UpdateMutationStrategy } from './update-source.types';
|
|
13
|
-
import { EndgeDataMode } from '../document/workspace.types';
|
|
14
|
-
import { ComponentSFCInteractionTrigger } from '../component/sfc/ir.types';
|
|
15
15
|
export type CompositionRuntimeKind = 'filter' | 'query' | 'component' | 'composition' | 'stream' | 'filter-view';
|
|
16
16
|
export type CompositionActivationMode = 'startup' | 'manual';
|
|
17
17
|
export interface CompositionActivationDescriptor {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProgramDiagnostic } from '../program/program.types';
|
|
2
1
|
import { ProgramMetadataMap } from '../program/program-metadata.types';
|
|
2
|
+
import { ProgramDiagnostic } from '../program/program.types';
|
|
3
3
|
import { SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
4
4
|
export type DataViewSourceMode = 'manual' | 'pipeline' | 'projection' | 'expression';
|
|
5
5
|
export type DataViewIncrementalRequest = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProgramDiagnostic } from '../program/program.types';
|
|
2
1
|
import { ProgramMetadataMap } from '../program/program-metadata.types';
|
|
2
|
+
import { ProgramDiagnostic } from '../program/program.types';
|
|
3
3
|
import { SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
4
4
|
/** Source-описание Filter v1. */
|
|
5
5
|
export interface FilterSourceDocument {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RQueryAuth } from '../document/query.types';
|
|
2
|
+
import { ProgramMetadataMap } from '../program/program-metadata.types';
|
|
2
3
|
import { ProgramDiagnostic, QueryProgramPayload } from '../program/program.types';
|
|
3
4
|
import { DataViewRef } from './data-view-source.types';
|
|
4
|
-
import { ProgramMetadataMap } from '../program/program-metadata.types';
|
|
5
|
-
import { QueryProgramProp, SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
6
5
|
import { ResponseOutputTransform } from './response-output.types';
|
|
6
|
+
import { QueryProgramProp, SourceExpressionIR, SourceFieldDefinition } from './source-expression.types';
|
|
7
7
|
/** Поддерживаемые transport-kind Query source. */
|
|
8
8
|
export type QuerySourceKind = 'rest' | 'graphql';
|
|
9
9
|
/** Политика GraphQL errors в HTTP 2xx response. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProgramDiagnostic } from '../program/program.types';
|
|
2
1
|
import { EndgeMockReference } from '../mock/mock-data.type';
|
|
2
|
+
import { ProgramDiagnostic } from '../program/program.types';
|
|
3
3
|
import { DataViewRef } from './data-view-source.types';
|
|
4
4
|
import { SourceFieldDefinition } from './source-expression.types';
|
|
5
5
|
export type StoreDataDescriptor = StoreValueDescriptor | StoreDerivedDescriptor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RQueryAuth } from '../document/query.types';
|
|
2
|
-
import { ProgramDiagnostic, QueryProgramOutput } from '../program/program.types';
|
|
3
2
|
import { ProgramMetadataMap } from '../program/program-metadata.types';
|
|
3
|
+
import { ProgramDiagnostic, QueryProgramOutput } from '../program/program.types';
|
|
4
4
|
export type VocabProviderBaseUrl = string | {
|
|
5
5
|
kind: 'env';
|
|
6
6
|
name: string;
|
package/dist/main.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export * from './model/modules/runtime/operation/endge-operations';
|
|
|
20
20
|
export * from './model/modules/runtime/core/endge-runtime';
|
|
21
21
|
export * from './model/modules/security/endge-auth';
|
|
22
22
|
export * from './model/modules/security/auth/AuthInteractionRequiredError';
|
|
23
|
-
export * from './model/
|
|
23
|
+
export * from './model/adapters/auth/OidcBrowserSession_Adapter';
|
|
24
24
|
export * from './model/modules/context/endge-i18n';
|
|
25
25
|
export * from './model/modules/context/endge-workspace';
|
|
26
26
|
export * from './model/modules/context/endge-vars';
|
|
@@ -115,17 +115,19 @@ export * from './domain/types/source/update-source.types';
|
|
|
115
115
|
export * from './domain/types/source/type-source.types';
|
|
116
116
|
export * from './domain/types/source/configuration-source.types';
|
|
117
117
|
export * from './domain/types/style/style.types';
|
|
118
|
-
export * from './domain/types/
|
|
119
|
-
export * from './domain/types/
|
|
120
|
-
export * from './domain/types/
|
|
121
|
-
export * from './domain/types/
|
|
122
|
-
export * from './domain/types/
|
|
123
|
-
export * from './domain/types/
|
|
124
|
-
export * from './domain/types/
|
|
118
|
+
export * from './domain/types/presentation/context-menu.types';
|
|
119
|
+
export * from './domain/types/presentation/filter-view.type';
|
|
120
|
+
export * from './domain/types/presentation/jsx.types';
|
|
121
|
+
export * from './domain/types/presentation/ui-composition.types';
|
|
122
|
+
export * from './domain/types/presentation/ui-render-adapter.type';
|
|
123
|
+
export * from './domain/types/presentation/tooltip-markdown.types';
|
|
124
|
+
export * from './domain/types/presentation/ui.types';
|
|
125
125
|
export * from './domain/types/i18n.types';
|
|
126
126
|
export * from './domain/entities/endge/EndgeModuleController';
|
|
127
127
|
export * from './domain/entities/endge/EndgeFederation';
|
|
128
|
+
export * from './domain/entities/endge/EndgeFederationStorage';
|
|
128
129
|
export * from './domain/entities/endge/EndgeModule';
|
|
130
|
+
export * from './domain/entities/endge/Subscribable';
|
|
129
131
|
export * from './domain/entities/reflect/RAction';
|
|
130
132
|
export * from './domain/entities/reflect/RComponent';
|
|
131
133
|
export * from './domain/entities/reflect/RComponentBase';
|
|
@@ -159,7 +161,7 @@ export * from './domain/entities/reflect/REntity';
|
|
|
159
161
|
export * from './domain/entities/runtime/RuntimeBindingScope';
|
|
160
162
|
export * from './domain/entities/runtime/RuntimeActionRegistry';
|
|
161
163
|
export * from './domain/entities/runtime/hosts/FilterViewRuntimeHost';
|
|
162
|
-
export * from './
|
|
164
|
+
export * from './model/adapters/http/EndgeApi';
|
|
163
165
|
export * from './domain/entities/endge/EndgeSlotRegistry';
|
|
164
166
|
export * from './domain/entities/reflect/RField';
|
|
165
167
|
export * from './domain/entities/reflect/RFilter';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthSessionSource, AuthSessionSourceResolveOptions, AuthTokenSet, OidcBrowserSessionOptions } from '../../../domain/types/auth/auth-profile.types';
|
|
2
2
|
/** Общий browser OIDC runtime для popup и redirect Authorization Code + PKCE flows. */
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class OidcBrowserSession_Adapter implements AuthSessionSource {
|
|
4
4
|
readonly options: OidcBrowserSessionOptions;
|
|
5
5
|
private readonly _userStore;
|
|
6
6
|
private readonly _manager;
|
|
@@ -24,3 +24,5 @@ export declare class OidcBrowserSession_Service implements AuthSessionSource {
|
|
|
24
24
|
/** Завершает provider session выбранным host flow и всегда удаляет local user. */
|
|
25
25
|
logout(): Promise<void>;
|
|
26
26
|
}
|
|
27
|
+
/** @deprecated Используйте OidcBrowserSession_Adapter. */
|
|
28
|
+
export { OidcBrowserSession_Adapter as OidcBrowserSession_Service };
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { HttpMethod, RequestOptions, ServiceDescriptor } from '
|
|
1
|
+
import { HttpMethod, RequestOptions, ServiceDescriptor } from '../../../domain/types/api.types';
|
|
2
2
|
export declare function makeForm(data: Record<string, unknown>): URLSearchParams;
|
|
3
3
|
/**
|
|
4
4
|
* Лёгкая axios-обёртка: JSON по умолчанию, query/headers/abort, генератор сервисов.
|
|
5
5
|
*/
|
|
6
6
|
export declare class EndgeApi {
|
|
7
|
-
|
|
8
|
-
private readonly
|
|
7
|
+
/** HTTP client и изменяемые заголовки принадлежат adapter. */
|
|
8
|
+
private readonly _client;
|
|
9
|
+
private _defaultHeaders;
|
|
10
|
+
/**
|
|
11
|
+
* ----------------------------------------
|
|
12
|
+
* PUBLIC
|
|
13
|
+
* ----------------------------------------
|
|
14
|
+
*/
|
|
9
15
|
constructor(baseUrl: string, defaultHeaders?: Record<string, string>);
|
|
10
16
|
/** При необходимости можно динамически добавить/переопределить заголовки по умолчанию */
|
|
11
17
|
setDefaultHeaders(next: Record<string, string>): void;
|
package/dist/model/{services/query/QueryExecutor.d.ts → adapters/query/QueryExecutor_Adapter.d.ts}
RENAMED
|
@@ -1,14 +1,25 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
1
2
|
import { QueryProgramOutput } from '../../../domain/types/program/program.types';
|
|
2
3
|
import { QueryExecutionContext } from '../../../domain/types/runtime/query-execution.types';
|
|
3
|
-
import { AxiosInstance } from 'axios';
|
|
4
4
|
/** Выполняет source-only compiled query artifact. */
|
|
5
|
-
export declare class
|
|
6
|
-
|
|
5
|
+
export declare class QueryExecutor_Adapter {
|
|
6
|
+
/** Transport capability для REST и GraphQL requests. */
|
|
7
|
+
private readonly _http;
|
|
8
|
+
/**
|
|
9
|
+
* ----------------------------------------
|
|
10
|
+
* PUBLIC
|
|
11
|
+
* ----------------------------------------
|
|
12
|
+
*/
|
|
7
13
|
constructor(http?: AxiosInstance);
|
|
8
14
|
/** Выполняет только transport/mock слой; output graph материализует QueryRuntimeHost через Raph. */
|
|
9
15
|
execute(context: QueryExecutionContext): Promise<any>;
|
|
10
16
|
/** Извлекает response-backed source output без запуска DataView. */
|
|
11
17
|
readResponseOutput(output: QueryProgramOutput, response: unknown): unknown;
|
|
18
|
+
/**
|
|
19
|
+
* ----------------------------------------
|
|
20
|
+
* PRIVATE
|
|
21
|
+
* ----------------------------------------
|
|
22
|
+
*/
|
|
12
23
|
/** Выбирает protocol executor по compiled artifact type. */
|
|
13
24
|
private _executeByProtocol;
|
|
14
25
|
/** Выполняет GraphQL operation и возвращает ее data, отделяя transport errors от GraphQL errors. */
|