@endge/core 1.0.0-dev.5 → 1.2.0-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/core.js +60726 -47416
- package/dist/features/core/kernel/config/kernel.config.d.ts +1 -1
- package/dist/features/core/kernel/config/modules.config.d.ts +7 -7
- package/dist/features/core/kernel/endge.d.ts +9 -9
- package/dist/features/core/modules/actions/domain/action.types.d.ts +2 -0
- package/dist/features/core/modules/auth/EndgeAuth_Module.d.ts +9 -1
- package/dist/features/core/modules/auth/domain/types/auth-profile.types.d.ts +17 -0
- package/dist/features/core/modules/auth/services/auth-facet-claims.d.ts +5 -0
- package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +10 -0
- package/dist/features/core/modules/compiler/tools/select-type-context.d.ts +1 -0
- package/dist/features/core/modules/computations/model/ComputationResource.d.ts +1 -0
- package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +1 -0
- package/dist/features/core/modules/document-import/services/parsers/GraphQLDocumentImportParser.d.ts +3 -2
- package/dist/features/core/modules/domain/types/component/component-core.types.d.ts +4 -0
- package/dist/features/core/modules/domain/types/component/sfc/table-events.types.d.ts +18 -0
- package/dist/features/core/modules/program/EndgeProgram_Module.d.ts +4 -0
- package/dist/features/core/modules/program/domain/types/execution-bundle.types.d.ts +7 -0
- package/dist/features/core/modules/program/domain/types/program.types.d.ts +5 -2
- package/dist/features/core/modules/program/tools/execution-bundle.d.ts +2 -1
- package/dist/features/core/modules/program/tools/startup-bundle.d.ts +2 -0
- package/dist/features/core/modules/runtime/EndgeControllers_Module.d.ts +26 -0
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +2 -0
- package/dist/features/core/modules/runtime/adapters/QueryExecutor_Adapter.d.ts +42 -3
- package/dist/features/core/modules/runtime/domain/controllers/controller.types.d.ts +121 -0
- package/dist/features/core/modules/runtime/domain/controllers/page-cache.types.d.ts +41 -0
- package/dist/features/core/modules/runtime/domain/graphql-query-error.d.ts +73 -0
- package/dist/features/core/modules/runtime/domain/query-execution.types.d.ts +25 -1
- package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +2 -0
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +1 -0
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +3 -2
- package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +8 -1
- package/dist/features/core/modules/runtime/execution/endge-data-view.d.ts +1 -1
- package/dist/features/core/modules/runtime/execution/endge-query.d.ts +21 -2
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +9 -0
- package/dist/features/core/modules/runtime/hosts/ControllerRuntimeHost.d.ts +64 -0
- package/dist/features/core/modules/runtime/hosts/QueryRuntimeHost.d.ts +9 -1
- package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +1 -0
- package/dist/features/core/modules/runtime/hosts/StoreRuntimeHost.d.ts +1 -0
- package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +30 -0
- package/dist/features/core/modules/runtime/services/controllers/ControllerRegistry.d.ts +16 -0
- package/dist/features/core/modules/runtime/services/controllers/builtins/CollectionWindowController.d.ts +56 -0
- package/dist/features/core/modules/runtime/services/controllers/builtins/collection-window.definition.d.ts +2 -0
- package/dist/features/core/modules/runtime/services/controllers/cache/PageCacheService.d.ts +25 -0
- package/dist/features/core/modules/runtime/services/controllers/controller-values.d.ts +3 -0
- package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +7 -5
- package/dist/features/core/modules/runtime/services/strategies/ControllerRuntimeStrategy.d.ts +11 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserGraphQLSseStreamTransportFactory.d.ts +24 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserSseStreamTransportFactory.d.ts +13 -1
- package/dist/features/core/modules/source/EndgeSource_Module.d.ts +6 -0
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +13 -2
- package/dist/features/core/modules/source/domain/types/data-view-source.types.d.ts +5 -2
- package/dist/features/core/modules/source/domain/types/graphql-fragments.types.d.ts +17 -0
- package/dist/features/core/modules/source/domain/types/query-source.types.d.ts +4 -1
- package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +8 -0
- package/dist/features/core/modules/source/domain/types/source-context.types.d.ts +6 -0
- package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +3 -0
- package/dist/features/core/modules/source/domain/types/source-expression.types.d.ts +3 -1
- package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +29 -1
- package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +11 -6
- package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +6 -0
- package/dist/features/core/modules/source/services/compilers/graphql-operation-compile.d.ts +52 -0
- package/dist/features/core/modules/source/services/compilers/source-expression-compile.d.ts +21 -0
- package/dist/features/core/modules/source/services/compilers/source-model-reference-compile.d.ts +11 -1
- package/dist/features/core/modules/source/services/composition-activation.d.ts +6 -1
- package/dist/features/core/modules/source/services/graphql-fragments.d.ts +23 -0
- package/dist/features/core/modules/source/services/graphql-schema.d.ts +37 -0
- package/dist/features/core/modules/source/services/simulation-response-contract.d.ts +23 -0
- package/dist/features/core/modules/source/services/source-context.d.ts +13 -0
- package/dist/features/core/modules/source/services/type-extends.d.ts +15 -0
- package/dist/features/core/modules/source/services/value-expression-language.d.ts +2 -0
- package/dist/features/core/modules/source/services/value-path.d.ts +14 -0
- package/dist/features/core/modules/ui/EndgeUIRegistry_Module.d.ts +5 -0
- package/dist/features/core/modules/ui/adapters/json/EndgeUIJsonRenderer.d.ts +57 -0
- package/dist/features/core/modules/ui/adapters/json/endge-ui-json-adapter.d.ts +16 -0
- package/dist/features/core/modules/ui/adapters/json/endge-ui-json-patch.d.ts +3 -0
- package/dist/features/core/modules/ui/adapters/json/endge-ui-json.schema.d.ts +371 -0
- package/dist/features/core/modules/ui/domain/types/endge-ui-json.types.d.ts +121 -0
- package/dist/features/core/modules/ui/registry/UIAdapterRegistry.d.ts +2 -0
- package/dist/features/federation/EndgeFederation.d.ts +1 -133
- package/dist/features/federation/EndgeModule.d.ts +1 -58
- package/dist/features/federation/constants/federation.constants.d.ts +1 -1
- package/dist/features/federation/tools/sort-endge-modules.d.ts +1 -9
- package/dist/features/federation/types/endge-modules.types.d.ts +1 -28
- package/dist/features/federation/types/federation.types.d.ts +1 -112
- package/dist/main.d.ts +15 -0
- package/package.json +9 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndgeMockProvider } from '../../modules/mock/domain/types/mock-data.type';
|
|
2
2
|
export { DEFAULT_FALLBACK_LOCALE, DEFAULT_LOCALE, DEFAULT_SCOPE, DEFAULT_THEME, DEFAULT_TIMEZONE, } from '../constants/kernel.constants';
|
|
3
|
-
export declare const ENDGE_COMPILER_VERSION = "program-
|
|
3
|
+
export declare const ENDGE_COMPILER_VERSION = "program-v5";
|
|
4
4
|
export declare const ENDGE_COMPILER_SPAN_GROUPS: {
|
|
5
5
|
readonly COMPONENTS: "components";
|
|
6
6
|
readonly TYPES: "types";
|
|
@@ -33,7 +33,7 @@ export declare const ENDGE_CORE_MODULES: readonly [{
|
|
|
33
33
|
readonly after: "events";
|
|
34
34
|
}, {
|
|
35
35
|
readonly key: "commands";
|
|
36
|
-
readonly create: ({ getModule }: import('
|
|
36
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => EndgeCommands_Module;
|
|
37
37
|
readonly after: readonly ["context", "runtime"];
|
|
38
38
|
}, {
|
|
39
39
|
readonly key: "mock";
|
|
@@ -62,7 +62,7 @@ export declare const ENDGE_CORE_MODULES: readonly [{
|
|
|
62
62
|
}, {
|
|
63
63
|
readonly key: "configuration";
|
|
64
64
|
readonly create: () => EndgeConfiguration_Module;
|
|
65
|
-
readonly after: readonly ["workspace", "domain", "context", "configurationSchema"];
|
|
65
|
+
readonly after: readonly ["workspace", "domain", "context", "configurationSchema", "auth"];
|
|
66
66
|
}, {
|
|
67
67
|
readonly key: "diagnostics";
|
|
68
68
|
readonly create: () => EndgeDiagnostics_Module;
|
|
@@ -85,15 +85,15 @@ export declare const ENDGE_CORE_MODULES: readonly [{
|
|
|
85
85
|
readonly after: "context";
|
|
86
86
|
}, {
|
|
87
87
|
readonly key: "actions";
|
|
88
|
-
readonly create: ({ getModule }: import('
|
|
88
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => EndgeActions_Module;
|
|
89
89
|
readonly after: readonly ["domain", "implementations"];
|
|
90
90
|
}, {
|
|
91
91
|
readonly key: "computations";
|
|
92
|
-
readonly create: ({ getModule }: import('
|
|
92
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => EndgeComputations_Module;
|
|
93
93
|
readonly after: readonly ["domain", "program", "implementations"];
|
|
94
94
|
}, {
|
|
95
95
|
readonly key: "converters";
|
|
96
|
-
readonly create: ({ getModule }: import('
|
|
96
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => EndgeConverters_Module;
|
|
97
97
|
readonly after: readonly ["domain", "implementations"];
|
|
98
98
|
}, {
|
|
99
99
|
readonly key: "compiler";
|
|
@@ -102,7 +102,7 @@ export declare const ENDGE_CORE_MODULES: readonly [{
|
|
|
102
102
|
}, {
|
|
103
103
|
readonly key: "auth";
|
|
104
104
|
readonly create: () => EndgeAuth_Module;
|
|
105
|
-
readonly after: readonly ["
|
|
105
|
+
readonly after: readonly ["workspace", "domain", "context"];
|
|
106
106
|
}, {
|
|
107
107
|
readonly key: "vocabs";
|
|
108
108
|
readonly create: () => EndgeVocabs_Module;
|
|
@@ -120,7 +120,7 @@ export declare const ENDGE_CORE_MODULES: readonly [{
|
|
|
120
120
|
readonly after: readonly ["compiler", "workspace", "context"];
|
|
121
121
|
}, {
|
|
122
122
|
readonly key: "inspection";
|
|
123
|
-
readonly create: ({ getModule }: import('
|
|
123
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => EndgeInspection_Module;
|
|
124
124
|
readonly after: readonly ["runtime", "program", "events", "context"];
|
|
125
125
|
}, {
|
|
126
126
|
readonly key: "updates";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EndgeBootMode } from './types/bootstrap.types';
|
|
2
2
|
import { DiagnosticsSnapshot } from '../modules/diagnostics/domain/types/diagnostics.types';
|
|
3
3
|
import { EndgeLiveDomainSnapshot } from '../modules/domain/types/document/domain-snapshot.type';
|
|
4
|
-
declare const EndgeCore_base: import('
|
|
4
|
+
declare const EndgeCore_base: import('@typedworks/federation').DefinedEndgeFederation<readonly [{
|
|
5
5
|
readonly key: "context";
|
|
6
6
|
readonly create: () => import('../modules/context/EndgeContext_Module').EndgeContext_Module;
|
|
7
7
|
readonly after: "events";
|
|
8
8
|
}, {
|
|
9
9
|
readonly key: "commands";
|
|
10
|
-
readonly create: ({ getModule }: import('
|
|
10
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => import('../modules/commands/EndgeCommands_Module').EndgeCommands_Module;
|
|
11
11
|
readonly after: readonly ["context", "runtime"];
|
|
12
12
|
}, {
|
|
13
13
|
readonly key: "mock";
|
|
@@ -36,7 +36,7 @@ declare const EndgeCore_base: import('../../federation/EndgeFederation').Defined
|
|
|
36
36
|
}, {
|
|
37
37
|
readonly key: "configuration";
|
|
38
38
|
readonly create: () => import('../modules/configuration/EndgeConfiguration_Module').EndgeConfiguration_Module;
|
|
39
|
-
readonly after: readonly ["workspace", "domain", "context", "configurationSchema"];
|
|
39
|
+
readonly after: readonly ["workspace", "domain", "context", "configurationSchema", "auth"];
|
|
40
40
|
}, {
|
|
41
41
|
readonly key: "diagnostics";
|
|
42
42
|
readonly create: () => import('../modules/diagnostics/EndgeDiagnostics_Module').EndgeDiagnostics_Module;
|
|
@@ -59,15 +59,15 @@ declare const EndgeCore_base: import('../../federation/EndgeFederation').Defined
|
|
|
59
59
|
readonly after: "context";
|
|
60
60
|
}, {
|
|
61
61
|
readonly key: "actions";
|
|
62
|
-
readonly create: ({ getModule }: import('
|
|
62
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => import('../modules/actions/EndgeActions_Module').EndgeActions_Module;
|
|
63
63
|
readonly after: readonly ["domain", "implementations"];
|
|
64
64
|
}, {
|
|
65
65
|
readonly key: "computations";
|
|
66
|
-
readonly create: ({ getModule }: import('
|
|
66
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => import('../modules/computations/EndgeComputations_Module').EndgeComputations_Module;
|
|
67
67
|
readonly after: readonly ["domain", "program", "implementations"];
|
|
68
68
|
}, {
|
|
69
69
|
readonly key: "converters";
|
|
70
|
-
readonly create: ({ getModule }: import('
|
|
70
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => import('../modules/converters/EndgeConverters_Module').EndgeConverters_Module;
|
|
71
71
|
readonly after: readonly ["domain", "implementations"];
|
|
72
72
|
}, {
|
|
73
73
|
readonly key: "compiler";
|
|
@@ -76,7 +76,7 @@ declare const EndgeCore_base: import('../../federation/EndgeFederation').Defined
|
|
|
76
76
|
}, {
|
|
77
77
|
readonly key: "auth";
|
|
78
78
|
readonly create: () => import('../modules/auth/EndgeAuth_Module').EndgeAuth_Module;
|
|
79
|
-
readonly after: readonly ["
|
|
79
|
+
readonly after: readonly ["workspace", "domain", "context"];
|
|
80
80
|
}, {
|
|
81
81
|
readonly key: "vocabs";
|
|
82
82
|
readonly create: () => import('../modules/EndgeVocabs_Module').EndgeVocabs_Module;
|
|
@@ -94,7 +94,7 @@ declare const EndgeCore_base: import('../../federation/EndgeFederation').Defined
|
|
|
94
94
|
readonly after: readonly ["compiler", "workspace", "context"];
|
|
95
95
|
}, {
|
|
96
96
|
readonly key: "inspection";
|
|
97
|
-
readonly create: ({ getModule }: import('
|
|
97
|
+
readonly create: ({ getModule }: import('@typedworks/federation').EndgeModuleFactoryContext) => import('../modules/inspection/EndgeInspection_Module').EndgeInspection_Module;
|
|
98
98
|
readonly after: readonly ["runtime", "program", "events", "context"];
|
|
99
99
|
}, {
|
|
100
100
|
readonly key: "updates";
|
|
@@ -116,7 +116,7 @@ declare const EndgeCore_base: import('../../federation/EndgeFederation').Defined
|
|
|
116
116
|
readonly key: "styles";
|
|
117
117
|
readonly create: () => import('../modules/styles/EndgeStyles_Module').EndgeStyles_Module;
|
|
118
118
|
readonly after: readonly ["ui", "domain", "program", "compiler"];
|
|
119
|
-
}], readonly [], import('
|
|
119
|
+
}], readonly [], import('./types/bootstrap.types').EndgeBootContext & import('@typedworks/federation').EndgeFederationContext>;
|
|
120
120
|
/**
|
|
121
121
|
* Единая статическая федерация Endge Core.
|
|
122
122
|
* Lifecycle context и readonly accessors выводятся из деклараций её graph.
|
|
@@ -96,6 +96,7 @@ export type TableColumnPinSide = 'left' | 'right' | 'none';
|
|
|
96
96
|
export type TableSortDirection = 'asc' | 'desc';
|
|
97
97
|
export type TableSortMode = 'multiple' | 'single' | 'fixed' | 'disabled';
|
|
98
98
|
export declare const TABLE_RUNTIME_ACTION_IDS: {
|
|
99
|
+
readonly scrollToRow: "table.scrollToRow";
|
|
99
100
|
readonly columnHide: "table.column.hide";
|
|
100
101
|
readonly columnPinLeft: "table.column.pinLeft";
|
|
101
102
|
readonly columnPinRight: "table.column.pinRight";
|
|
@@ -114,6 +115,7 @@ export interface TableColumnSortState {
|
|
|
114
115
|
index?: number;
|
|
115
116
|
}
|
|
116
117
|
export interface TableRuntimeActionTarget {
|
|
118
|
+
scrollToRow?: (rowId: string, align?: 'start' | 'center' | 'end' | 'auto') => void | Promise<void>;
|
|
117
119
|
setColumnVisibility?: (columnKey: string, visible: boolean) => void | Promise<void>;
|
|
118
120
|
setColumnPin?: (columnKey: string, side: TableColumnPinSide) => void | Promise<void>;
|
|
119
121
|
resetColumnPin?: (columnKey: string) => void | Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
|
|
2
2
|
import { AuthInteractionRequiredError } from './domain/AuthInteractionRequiredError';
|
|
3
|
-
import { AuthProfileSchema, EndgeAuthContext, OidcBrowserSessionOptions } from './domain/types/auth-profile.types';
|
|
3
|
+
import { AuthProfileSchema, EndgeAuthContext, EndgeFacetClaimResolution, OidcBrowserSessionOptions } from './domain/types/auth-profile.types';
|
|
4
4
|
import { OidcBrowserSession_Adapter } from './adapters/OidcBrowserSession_Adapter';
|
|
5
5
|
import { AuthAdapterRegistry } from './services/AuthAdapterRegistry';
|
|
6
6
|
import { AuthProfileRegistry } from './services/AuthProfileRegistry';
|
|
@@ -21,6 +21,8 @@ export declare class EndgeAuth_Module extends EndgeModule<EndgeBootContext> {
|
|
|
21
21
|
private _abortController;
|
|
22
22
|
private _detachHostAbort;
|
|
23
23
|
private _unregisterDiagnosticsContext;
|
|
24
|
+
private _facetClaims;
|
|
25
|
+
private _reportedFacetClaimIssues;
|
|
24
26
|
private readonly _store;
|
|
25
27
|
private readonly _interactionRequiredListeners;
|
|
26
28
|
/**
|
|
@@ -39,6 +41,11 @@ export declare class EndgeAuth_Module extends EndgeModule<EndgeBootContext> {
|
|
|
39
41
|
* Подключает storage namespace и безопасные context providers.
|
|
40
42
|
*/
|
|
41
43
|
setup(ctx: EndgeBootContext): void;
|
|
44
|
+
/**
|
|
45
|
+
* Сопоставляет claims авторизованной default session фасетам по опции boot auth.facetClaims.
|
|
46
|
+
* Claims используются только для выбора structural context, не для authorization decisions.
|
|
47
|
+
*/
|
|
48
|
+
facetClaimResolution(): EndgeFacetClaimResolution;
|
|
42
49
|
/**
|
|
43
50
|
* Валидирует Domain profiles и восстанавливает session default runtime profile.
|
|
44
51
|
*/
|
|
@@ -51,6 +58,7 @@ export declare class EndgeAuth_Module extends EndgeModule<EndgeBootContext> {
|
|
|
51
58
|
* Создаёт OIDC browser source из resolved persisted profile.
|
|
52
59
|
*/
|
|
53
60
|
createOidcSessionSource(profileInput: AuthProfileSchema | string, options: Pick<OidcBrowserSessionOptions, 'redirectUri' | 'popupRedirectUri' | 'postLogoutRedirectUri' | 'flow'>): OidcBrowserSession_Adapter;
|
|
61
|
+
private _reportFacetClaimIssues;
|
|
54
62
|
private _resolvePublicValue;
|
|
55
63
|
private _diagnosticsAttributes;
|
|
56
64
|
private _publishInteractionRequired;
|
|
@@ -137,6 +137,23 @@ export interface EndgeAuthContext {
|
|
|
137
137
|
}
|
|
138
138
|
export interface EndgeAuthBootOptions {
|
|
139
139
|
storageNamespace?: string;
|
|
140
|
+
facetClaims?: Readonly<Record<string, EndgeFacetClaimMapping>>;
|
|
141
|
+
}
|
|
142
|
+
export interface EndgeFacetClaimMapping {
|
|
143
|
+
claim: string;
|
|
144
|
+
map?: Readonly<Record<string, string>>;
|
|
145
|
+
missing?: 'default' | 'error';
|
|
146
|
+
}
|
|
147
|
+
export type EndgeFacetClaimIssueReason = 'missing' | 'unmapped' | 'invalid';
|
|
148
|
+
export interface EndgeFacetClaimResolution {
|
|
149
|
+
selections: Readonly<Record<string, string>>;
|
|
150
|
+
issues: readonly EndgeFacetClaimIssue[];
|
|
151
|
+
}
|
|
152
|
+
export interface EndgeFacetClaimIssue {
|
|
153
|
+
facet: string;
|
|
154
|
+
claim: string;
|
|
155
|
+
reason: EndgeFacetClaimIssueReason;
|
|
156
|
+
missing: 'default' | 'error';
|
|
140
157
|
}
|
|
141
158
|
export interface AuthAdapterContext {
|
|
142
159
|
profile: AuthProfileSchema;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EndgeFacetClaimIssue, EndgeFacetClaimMapping, EndgeFacetClaimResolution } from '../domain/types/auth-profile.types';
|
|
2
|
+
export declare function normalizeFacetClaimMappings(input: Readonly<Record<string, EndgeFacetClaimMapping>> | null | undefined): Readonly<Record<string, Required<Pick<EndgeFacetClaimMapping, 'claim' | 'missing'>> & Pick<EndgeFacetClaimMapping, 'map'>>>;
|
|
3
|
+
export declare function resolveFacetSelectionsFromClaims(mappings: ReturnType<typeof normalizeFacetClaimMappings>, claims: Readonly<Record<string, unknown>>, authenticated: boolean): EndgeFacetClaimResolution;
|
|
4
|
+
export declare function readClaim(claims: Readonly<Record<string, unknown>>, claim: string): unknown;
|
|
5
|
+
export declare function describeFacetClaimIssue(issue: EndgeFacetClaimIssue): string;
|
|
@@ -135,6 +135,11 @@ export declare class EndgeCompiler_Module extends EndgeModule<EndgeBootContext>
|
|
|
135
135
|
* Сейчас используется только для встроенной SFC-регистрации.
|
|
136
136
|
*/
|
|
137
137
|
private _registerHandler;
|
|
138
|
+
/**
|
|
139
|
+
* Компилирует сущность в контексте сборки: facet()/config()/context()/contextSwitch выражений Source
|
|
140
|
+
* подставляются по immutable build context этой compile session.
|
|
141
|
+
*/
|
|
142
|
+
private _runHandler;
|
|
138
143
|
/**
|
|
139
144
|
* Создаёт единый immutable context для полного и точечного compiler entry points.
|
|
140
145
|
*/
|
|
@@ -221,6 +226,10 @@ export declare class EndgeCompiler_Module extends EndgeModule<EndgeBootContext>
|
|
|
221
226
|
* Вычисляет Type Source независимо от порядка компиляции типов и компонентов.
|
|
222
227
|
*/
|
|
223
228
|
private _resolveTypeDefinition;
|
|
229
|
+
/**
|
|
230
|
+
* Authored definition Type для разворачивания extends: undefined — Type не найден или с ошибками Source.
|
|
231
|
+
*/
|
|
232
|
+
private _authoredTypeDefinition;
|
|
224
233
|
/**
|
|
225
234
|
* Материализует итоговые предоставленные и проброшенные порты SFC Action как производные дескрипторы.
|
|
226
235
|
*/
|
|
@@ -283,6 +292,7 @@ export declare class EndgeCompiler_Module extends EndgeModule<EndgeBootContext>
|
|
|
283
292
|
/**
|
|
284
293
|
* Проверяет domain/program references и stable-prop bindings Composition.
|
|
285
294
|
*/
|
|
295
|
+
buildController(identity: string): ProgramArtifact<import('../runtime/domain/controllers/controller.types').ControllerProgramPayload>;
|
|
286
296
|
private _validateComposition;
|
|
287
297
|
/**
|
|
288
298
|
* Сортирует Composition так, чтобы compiled artifact зависимости появился раньше consumer.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function selectTypeContext<T>(value: T): T;
|
|
@@ -15,6 +15,7 @@ export declare class ComputationResourceState<T = unknown> implements Computatio
|
|
|
15
15
|
private _revision;
|
|
16
16
|
private _disposed;
|
|
17
17
|
private _input;
|
|
18
|
+
private _inputSignature;
|
|
18
19
|
constructor(input: unknown, _asyncRunner: AsyncRunner<T>, _syncRunner?: SyncRunner<T> | null, _identity?: string);
|
|
19
20
|
get status(): import('../../domain/types/computation/computation-runtime.types').ComputationResourceStatus;
|
|
20
21
|
get loading(): boolean;
|
|
@@ -51,6 +51,7 @@ export type EndgePersistenceScopeResolver = () => EndgePersistenceScope;
|
|
|
51
51
|
export interface EndgeSessionIdentity {
|
|
52
52
|
userId?: string | null;
|
|
53
53
|
facetSelections?: Readonly<Record<string, string>>;
|
|
54
|
+
facetErrors?: readonly string[];
|
|
54
55
|
}
|
|
55
56
|
export interface EndgeSessionIdentityProvider {
|
|
56
57
|
getCurrentIdentity: () => EndgeSessionIdentity | null;
|
package/dist/features/core/modules/document-import/services/parsers/GraphQLDocumentImportParser.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DocumentImportParser, DocumentImportParserResult } from './DocumentImportParser';
|
|
2
2
|
/**
|
|
3
|
-
* Преобразует GraphQL SDL в черновики Type Source без изменения Domain.
|
|
3
|
+
* Преобразует GraphQL SDL или JSON introspection в черновики Type Source без изменения Domain.
|
|
4
4
|
*/
|
|
5
5
|
export declare class GraphQLDocumentImportParser implements DocumentImportParser {
|
|
6
6
|
readonly format: "graphql";
|
|
7
7
|
/**
|
|
8
|
-
* Возвращает поддержанные object/enum types и нормализует scalar aliases.
|
|
8
|
+
* Возвращает поддержанные object/interface/input/enum/union types и нормализует scalar aliases.
|
|
9
|
+
* Текст, начинающийся с `{`, читается как результат introspection и печатается в SDL.
|
|
9
10
|
*/
|
|
10
11
|
parse(source: string): DocumentImportParserResult;
|
|
11
12
|
}
|
|
@@ -39,6 +39,10 @@ export interface RComponentContract {
|
|
|
39
39
|
slots: RComponentContractSlot[];
|
|
40
40
|
}
|
|
41
41
|
export interface RComponentDependencies {
|
|
42
|
+
contextValidation?: Array<{
|
|
43
|
+
kind: string;
|
|
44
|
+
identity: string;
|
|
45
|
+
}>;
|
|
42
46
|
components: RComponentRef[];
|
|
43
47
|
computations: RComputationRef[];
|
|
44
48
|
actions: string[];
|
|
@@ -66,7 +66,25 @@ export interface TablePageChangedEvent extends TableEventBase {
|
|
|
66
66
|
pageSize: number;
|
|
67
67
|
pageCount: number;
|
|
68
68
|
}
|
|
69
|
+
export interface TableViewportChangedEvent extends TableEventBase {
|
|
70
|
+
rowsRevision: number;
|
|
71
|
+
firstVisible: {
|
|
72
|
+
key: string;
|
|
73
|
+
index: number;
|
|
74
|
+
} | null;
|
|
75
|
+
lastVisible: {
|
|
76
|
+
key: string;
|
|
77
|
+
index: number;
|
|
78
|
+
} | null;
|
|
79
|
+
rowCount: number;
|
|
80
|
+
reason: 'mount' | 'scroll' | 'data' | 'resize' | 'position';
|
|
81
|
+
}
|
|
82
|
+
export interface TableViewportOptions {
|
|
83
|
+
rowsRevision?: number;
|
|
84
|
+
preserveScrollAnchor?: boolean;
|
|
85
|
+
}
|
|
69
86
|
export interface TableEventMap {
|
|
87
|
+
viewportChanged: TableViewportChangedEvent;
|
|
70
88
|
rowActivated: TableRowActivatedEvent;
|
|
71
89
|
rowContextMenuRequested: TableRowContextMenuRequestedEvent;
|
|
72
90
|
selectionChanged: TableSelectionChangedEvent;
|
|
@@ -21,6 +21,9 @@ export declare class EndgeProgram_Module extends EndgeModule {
|
|
|
21
21
|
private _status;
|
|
22
22
|
private _compilerVersion;
|
|
23
23
|
private _programId;
|
|
24
|
+
private _startupProgramId;
|
|
25
|
+
private _executionGraphVersion;
|
|
26
|
+
private _exportScope;
|
|
24
27
|
private _createdAt;
|
|
25
28
|
private _hostActions;
|
|
26
29
|
private _catalog;
|
|
@@ -37,6 +40,7 @@ export declare class EndgeProgram_Module extends EndgeModule {
|
|
|
37
40
|
*/
|
|
38
41
|
exportBundle(options?: {
|
|
39
42
|
includeAst?: boolean;
|
|
43
|
+
scope?: 'complete-model' | 'startup-composition';
|
|
40
44
|
}): ExecutionBundle;
|
|
41
45
|
prepareInstall(value: unknown): PreparedProgramInstall;
|
|
42
46
|
/**
|
|
@@ -52,11 +52,18 @@ export interface ProgramHostActionRequirement {
|
|
|
52
52
|
providerKey: string;
|
|
53
53
|
}
|
|
54
54
|
export interface ProgramRequirements {
|
|
55
|
+
controllerFeatures?: Array<'retention-v1' | 'page-cache-v1'>;
|
|
56
|
+
hostControllers?: Array<{
|
|
57
|
+
identity: string;
|
|
58
|
+
providerKey: string;
|
|
59
|
+
}>;
|
|
55
60
|
hostActions?: ProgramHostActionRequirement[];
|
|
56
61
|
artifactTypes: string[];
|
|
57
62
|
componentTags: ComponentSFCTagRegistryEntry[];
|
|
58
63
|
}
|
|
59
64
|
export interface ExecutionBundle {
|
|
65
|
+
executionGraphVersion?: 1;
|
|
66
|
+
exportScope?: 'startup-composition';
|
|
60
67
|
version: 1;
|
|
61
68
|
programId: string;
|
|
62
69
|
compilerVersion: string;
|
|
@@ -6,6 +6,7 @@ import { RComponentSFCSource_Parts } from '../../../domain/types/component/sfc/s
|
|
|
6
6
|
import { ComputationProgramPayload } from '../../../domain/types/computation/computation-program.types';
|
|
7
7
|
import { ProgramMetadata } from './program-metadata.types';
|
|
8
8
|
import { DataViewManualTransform, DataViewPipelineStep, DataViewRef, DataViewSourceDocument } from '../../../source/domain/types/data-view-source.types';
|
|
9
|
+
import { QueryGraphQLErrorPolicy } from '../../../source/domain/types/query-source.types';
|
|
9
10
|
import { ResponseOutputTransform } from '../../../source/domain/types/response-output.types';
|
|
10
11
|
import { QueryProgramProp, SourceExpressionIR, SourceFieldDefinition } from '../../../source/domain/types/source-expression.types';
|
|
11
12
|
import { VocabProgramPayload } from '../../../source/domain/types/vocab-source.types';
|
|
@@ -13,7 +14,7 @@ import { EndgeStyleSheetArtifact } from '../../../styles/domain/types/style.type
|
|
|
13
14
|
export type { ActionProgramPayload } from './action-program.types';
|
|
14
15
|
export type { ConfigurationProgramPayload } from '../../../source/domain/types/configuration-source.types';
|
|
15
16
|
export type ProgramArtifactKey = string;
|
|
16
|
-
export type ProgramEntityType = 'type' | 'component-sfc' | 'computation' | 'action' | 'query' | 'vocab' | 'data-view' | 'store' | 'stream' | 'simulation' | 'update' | 'filter' | 'composition' | 'style' | 'configuration';
|
|
17
|
+
export type ProgramEntityType = 'controller' | 'type' | 'component-sfc' | 'computation' | 'action' | 'query' | 'vocab' | 'data-view' | 'store' | 'stream' | 'simulation' | 'update' | 'filter' | 'composition' | 'style' | 'configuration';
|
|
17
18
|
export type ProgramArtifactStatus = 'valid' | 'warning' | 'error';
|
|
18
19
|
export type ProgramCapability = 'compilable' | 'runnable' | 'executable' | 'renderable' | 'data-provider' | 'configuration';
|
|
19
20
|
export interface ProgramArtifactRef {
|
|
@@ -31,6 +32,7 @@ export interface ProgramDiagnostic {
|
|
|
31
32
|
end?: number;
|
|
32
33
|
}
|
|
33
34
|
export interface ProgramDependency {
|
|
35
|
+
validationOnly?: boolean;
|
|
34
36
|
entityType: ProgramEntityType | string;
|
|
35
37
|
id: string | number;
|
|
36
38
|
identity?: string;
|
|
@@ -83,7 +85,7 @@ export interface QueryProgramPayload {
|
|
|
83
85
|
endpoint: QueryProgramRequestValue<string>;
|
|
84
86
|
query: QueryProgramRequestValue<string>;
|
|
85
87
|
operationName?: string;
|
|
86
|
-
errorPolicy?:
|
|
88
|
+
errorPolicy?: QueryGraphQLErrorPolicy;
|
|
87
89
|
headers?: QueryProgramRequestValue<Record<string, string>>;
|
|
88
90
|
auth?: QueryProgramRequestValue<unknown>;
|
|
89
91
|
timeoutMs?: QueryProgramRequestValue<number>;
|
|
@@ -93,6 +95,7 @@ export interface QueryProgramPayload {
|
|
|
93
95
|
requestVariables?: SourceExpressionIR | null;
|
|
94
96
|
mockDataEnabled?: boolean;
|
|
95
97
|
mockData?: unknown;
|
|
98
|
+
mockErrors?: unknown[];
|
|
96
99
|
outputs: QueryProgramOutput[];
|
|
97
100
|
}
|
|
98
101
|
export type { VocabProgramPayload };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExecutionBundle, PortableProgramArtifact } from '../domain/types/execution-bundle.types';
|
|
2
|
-
import { ProgramArtifact } from '../domain/types/program.types';
|
|
2
|
+
import { ProgramArtifact, ProgramEntityType } from '../domain/types/program.types';
|
|
3
|
+
export declare function collectProgramArtifactTypes(artifacts: readonly ProgramArtifact[]): ProgramEntityType[];
|
|
3
4
|
export declare function packProgramArtifact(artifact: ProgramArtifact, includeAst: boolean): PortableProgramArtifact;
|
|
4
5
|
export declare function readExecutionBundle(input: unknown): ExecutionBundle;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ControllerDefinition, ControllerModel, ControllerMountOptions, ControllerProvider } from './domain/controllers/controller.types';
|
|
2
|
+
import { RuntimeArtifactReader } from './domain/runtime-host.types';
|
|
3
|
+
import { AnyRuntimeHost } from './domain/runtime-strategy.types';
|
|
4
|
+
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
5
|
+
import { ControllerRuntimeHost } from './hosts/ControllerRuntimeHost';
|
|
6
|
+
export declare class EndgeControllers_Module extends EndgeModule {
|
|
7
|
+
private readonly _registry;
|
|
8
|
+
private readonly _writers;
|
|
9
|
+
private readonly _pageCaches;
|
|
10
|
+
resetPageCaches(): Promise<void>;
|
|
11
|
+
constructor();
|
|
12
|
+
define(definition: ControllerDefinition): () => void;
|
|
13
|
+
provide(provider: ControllerProvider): () => void;
|
|
14
|
+
list(): ControllerDefinition[];
|
|
15
|
+
get(identity: string): ControllerDefinition | null;
|
|
16
|
+
model(identity: string): ControllerModel;
|
|
17
|
+
mount(identity: string, options: ControllerMountOptions): Promise<ControllerRuntimeHost>;
|
|
18
|
+
private _queryFingerprint;
|
|
19
|
+
create(input: {
|
|
20
|
+
id: string;
|
|
21
|
+
model: ControllerModel;
|
|
22
|
+
parent: AnyRuntimeHost | null;
|
|
23
|
+
meta: Record<string, unknown>;
|
|
24
|
+
artifacts: RuntimeArtifactReader;
|
|
25
|
+
}): ControllerRuntimeHost | null;
|
|
26
|
+
}
|
|
@@ -16,10 +16,12 @@ import { EndgeSimulation } from './execution/endge-simulation';
|
|
|
16
16
|
import { EndgeOperations_Module } from './operation/EndgeOperations_Module';
|
|
17
17
|
import { RuntimeScope } from './RuntimeScope';
|
|
18
18
|
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
19
|
+
import { EndgeControllers_Module } from './EndgeControllers_Module';
|
|
19
20
|
/**
|
|
20
21
|
* Модуль создания, регистрации и уничтожения runtime hosts и app scopes.
|
|
21
22
|
*/
|
|
22
23
|
export declare class EndgeRuntime_Module extends EndgeModule<EndgeBootContext> {
|
|
24
|
+
readonly controllers: EndgeControllers_Module;
|
|
23
25
|
readonly query: EndgeQuery;
|
|
24
26
|
readonly dataView: EndgeDataView;
|
|
25
27
|
readonly composition: EndgeComposition;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { AuthRequestPolicy, AuthResolvedSession, AuthResolveOptions } from '../../auth/domain/types/auth-profile.types';
|
|
3
|
-
import { QueryProgramOutput } from '../../program/domain/types/program.types';
|
|
3
|
+
import { QueryProgramOutput, QueryProgramPayload } from '../../program/domain/types/program.types';
|
|
4
|
+
import { GraphQLResponseError } from '../domain/graphql-query-error';
|
|
4
5
|
import { QueryExecutionContext } from '../domain/query-execution.types';
|
|
5
6
|
export interface QueryExecutorDependencies {
|
|
6
7
|
resolveVariable: (source: string) => string;
|
|
7
8
|
resolveAuth: (policy: AuthRequestPolicy, options?: AuthResolveOptions) => Promise<AuthResolvedSession>;
|
|
8
9
|
reportWarning: (message: string, data?: unknown) => void;
|
|
10
|
+
reportGraphQLErrors?: (input: {
|
|
11
|
+
url: string;
|
|
12
|
+
operationName?: string;
|
|
13
|
+
errors: readonly GraphQLResponseError[];
|
|
14
|
+
}) => void;
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* Выполняет source-only compiled query artifact.
|
|
@@ -20,20 +26,53 @@ export declare class QueryExecutor_Adapter {
|
|
|
20
26
|
execute(context: QueryExecutionContext): Promise<any>;
|
|
21
27
|
/**
|
|
22
28
|
* Извлекает response-backed source output без запуска DataView.
|
|
29
|
+
* graphQLErrors питают reader errors(path?) GraphQL Query.
|
|
23
30
|
*/
|
|
24
|
-
readResponseOutput(output: QueryProgramOutput, response: unknown): unknown;
|
|
31
|
+
readResponseOutput(output: QueryProgramOutput, response: unknown, graphQLErrors?: readonly GraphQLResponseError[]): unknown;
|
|
25
32
|
/**
|
|
26
33
|
* Выбирает protocol executor по compiled artifact type.
|
|
27
34
|
*/
|
|
28
35
|
private _executeByProtocol;
|
|
29
36
|
/**
|
|
30
37
|
* Выполняет GraphQL operation и возвращает ее data, отделяя transport errors от GraphQL errors.
|
|
38
|
+
* errorPolicy 'throw' превращает errors в GraphQLQueryError с частичными data;
|
|
39
|
+
* 'ignore' возвращает data и скрывает errors (onGraphQLErrors получает пустой массив);
|
|
40
|
+
* 'all' возвращает data, передаёт errors в onGraphQLErrors и в diagnostics.
|
|
31
41
|
*/
|
|
32
42
|
private _runGraphQL;
|
|
43
|
+
/**
|
|
44
|
+
* Mock GraphQL Query: mock.data — data операции, mock.errors — errors ответа.
|
|
45
|
+
* Errors проходят тот же errorPolicy, что ответ сервера; transport и console.error не задействуются.
|
|
46
|
+
*/
|
|
47
|
+
private _readGraphQLMock;
|
|
48
|
+
/**
|
|
49
|
+
* Ответ без transport (mock Query или mockRequest Simulation): errors проходят тот же
|
|
50
|
+
* errorPolicy, что ответ сервера; url ошибки — вычисленный endpoint Query.
|
|
51
|
+
*/
|
|
52
|
+
applySimulatedGraphQLErrors(payload: QueryProgramPayload, data: unknown, rawErrors: readonly unknown[] | undefined, vars: Record<string, unknown>, onGraphQLErrors?: QueryExecutionContext['onGraphQLErrors']): unknown;
|
|
53
|
+
/**
|
|
54
|
+
* errorPolicy GraphQL-ответа: 'throw' — GraphQLQueryError с частичными data;
|
|
55
|
+
* 'ignore' — data без errors (как в Apollo); 'all' — data, errors в reader errors() и в diagnostics.
|
|
56
|
+
*/
|
|
57
|
+
private _applyGraphQLErrorPolicy;
|
|
58
|
+
/**
|
|
59
|
+
* Проверяет оболочку GraphQL response: JSON-объект с data и/или массивом errors.
|
|
60
|
+
*/
|
|
61
|
+
private _readGraphQLEnvelope;
|
|
62
|
+
private _readContentType;
|
|
33
63
|
/**
|
|
34
64
|
* Выполняет REST artifact.
|
|
35
65
|
*/
|
|
36
66
|
private _runRest;
|
|
67
|
+
/**
|
|
68
|
+
* Передаёт наблюдателю снимок итогового запроса; изменения снимка не влияют на отправку.
|
|
69
|
+
*/
|
|
70
|
+
private _notifyRequest;
|
|
71
|
+
/**
|
|
72
|
+
* Передаёт наблюдателю HTTP-ответ транспорта, включая ответы с кодом ошибки.
|
|
73
|
+
*/
|
|
74
|
+
private _notifyResponse;
|
|
75
|
+
private _plainHeaders;
|
|
37
76
|
private _throwHttpError;
|
|
38
77
|
/**
|
|
39
78
|
* Пишет краткую transport-индикацию без request body, headers и response payload.
|
|
@@ -56,7 +95,7 @@ export declare class QueryExecutor_Adapter {
|
|
|
56
95
|
*/
|
|
57
96
|
private _readMockData;
|
|
58
97
|
/**
|
|
59
|
-
* Читает
|
|
98
|
+
* Читает путь value DSL (точечный или DataPath Raph) из backend response без исключений.
|
|
60
99
|
*/
|
|
61
100
|
private _path;
|
|
62
101
|
/**
|