@ximatai/muyun-web-app 0.26.13 → 0.26.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/dist/{BusinessActivityLogView-UC4rH4Fn.js → BusinessActivityLogView-DVzrZW1X.js} +1 -1
- package/dist/BusinessLogListDrawer-D-R3wnWr.js +825 -0
- package/dist/{LoginAuditLogView-Cjrp8MKX.js → LoginAuditLogView-BP1eaEPw.js} +1 -1
- package/dist/{ModuleActionManagementView-Dkb35QXc.js → ModuleActionManagementView-D17iKVQv.js} +214 -196
- package/dist/{ModuleGovernanceView-Dx43QvGf.js → ModuleGovernanceView-LkWCtops.js} +13509 -8472
- package/dist/{RequestErrorLogView-WnGvMWiF.js → RequestErrorLogView-LzN94-Tk.js} +1 -1
- package/dist/{RoleDetailWorkspaceView-DPDb_QOn.js → RoleDetailWorkspaceView-BXA-bzFu.js} +173 -164
- package/dist/{RuntimeLogView-BRl4ZDkU.js → RuntimeLogView-DUpu2q2w.js} +48 -81
- package/dist/index.css +1 -1
- package/dist/index.js +562 -497
- package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +639 -0
- package/dist/{platform-components-1cvOeHmo.js → platform-components-Hs3DrTqE.js} +5260 -3344
- package/dist/platform-workbench-C-kE-Yqq.js +19755 -0
- package/dist/{http-B0TC0pJB.js → sse-Q1wa3p_k.js} +34 -4
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/useWorkbenchMenuRefresh.d.ts +4 -0
- package/dist/types/app/workbenchMenuRefresh.d.ts +14 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -3
- package/dist/types/dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +712 -22
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -2
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +782 -60
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +5 -2
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +9 -7
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/assistantBusinessScope.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +34 -0
- package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +94 -4
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantSurface.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +59 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +59 -0
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +33 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +9 -0
- package/dist/types/dynamic-page-runtime/relationDraftController.d.ts +23 -0
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +404 -12
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
- package/dist/types/formula/FormulaRuntime.d.ts +3 -1
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +5 -1
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEditor.vue.d.ts +17 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuGovernanceSurface.vue.d.ts +6 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +6 -2
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +5 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +61 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +180 -0
- package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +1 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +11 -7
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +6 -4
- package/dist/types/platform-components/ManagementTabs.vue.d.ts +20 -0
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -0
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +15 -9
- package/dist/types/platform-components/RecordExplorerTools.vue.d.ts +27 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +1 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -2
- package/dist/types/platform-components/index.d.ts +9 -1
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- package/dist/types/platform-components/queryNumericValue.d.ts +3 -0
- package/dist/types/platform-components/querySettlementController.d.ts +5 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +22 -0
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +8 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +53 -0
- package/dist/types/platform-components/recordQueryListStandardQuery.d.ts +3 -0
- package/dist/types/platform-components/recordTreeQueryController.d.ts +18 -0
- package/dist/types/platform-components/recycleBinState.d.ts +17 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +3 -0
- package/dist/types/platform-workbench/AssistantMarkdownContent.vue.d.ts +6 -0
- package/dist/types/platform-workbench/AssistantSelectionCard.vue.d.ts +15 -0
- package/dist/types/platform-workbench/ConstructionPlanCard.vue.d.ts +8 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +18 -0
- package/dist/types/platform-workbench/assistantMarkdown.d.ts +1 -0
- package/dist/types/platform-workbench/configurationCollaboration.d.ts +23 -0
- package/dist/types/platform-workbench/constructionDelivery.d.ts +3 -0
- package/dist/types/platform-workbench/constructionFields.d.ts +5 -0
- package/dist/types/platform-workbench/constructionInitialization.d.ts +4 -0
- package/dist/types/platform-workbench/constructionPlanGuard.d.ts +21 -0
- package/dist/types/platform-workbench/constructionPlanSession.d.ts +95 -0
- package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +3 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +360 -0
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +47 -0
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +22 -0
- package/dist/types/views/BusinessLogRetentionControl.vue.d.ts +7 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +7 -3
- package/dist/types/views/ModuleRuntimeActivationStatus.vue.d.ts +11 -0
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +8 -8
- package/dist/types/views/PageCompositionEditor.vue.d.ts +10 -0
- package/dist/types/views/PageCompositionTree.vue.d.ts +19 -13
- package/dist/types/views/businessLogClient.d.ts +3 -0
- package/dist/types/views/businessLogRetentionClient.d.ts +25 -0
- package/dist/types/views/businessRuleAssistantSurface.d.ts +7 -0
- package/dist/types/views/businessRuleEditor.d.ts +22 -0
- package/dist/types/views/businessRuleGovernance.d.ts +7 -1
- package/dist/types/views/businessRuleSession.d.ts +63 -0
- package/dist/types/views/businessRuleWorkspace.d.ts +144 -0
- package/dist/types/views/configurationEditorNavigation.d.ts +2 -0
- package/dist/types/views/metadataChangeSetSubmission.d.ts +10 -0
- package/dist/types/views/metadataEditorSession.d.ts +652 -0
- package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +4 -0
- package/dist/types/views/metadataGovernanceEditor.d.ts +220 -0
- package/dist/types/views/metadataModelChangeSetClient.d.ts +36 -0
- package/dist/types/views/metadataModelEditSession.d.ts +26 -1
- package/dist/types/views/metadataNaming.d.ts +11 -1
- package/dist/types/views/metadataOrchestrationState.d.ts +22 -0
- package/dist/types/views/metadataWorkspace.d.ts +1316 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleRuntimeActivation.d.ts +11 -0
- package/dist/types/views/pageCompositionAssistantSurface.d.ts +27 -0
- package/dist/types/views/pageCompositionCandidate.d.ts +47 -0
- package/dist/types/views/pageCompositionComponents.d.ts +42 -0
- package/dist/types/views/pageCompositionDraftState.d.ts +277 -8
- package/dist/types/views/pageCompositionDragPayload.d.ts +7 -1
- package/dist/types/views/pageCompositionMode.d.ts +1 -1
- package/dist/types/views/pageCompositionPlacement.d.ts +6 -1
- package/dist/types/views/pageCompositionPublication.d.ts +37 -0
- package/dist/types/views/pageCompositionSession.d.ts +1341 -0
- package/dist/types/views/pageCompositionWorkspace.d.ts +2555 -0
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/runtimeLogSse.d.ts +3 -13
- package/dist/types/views/usePageCompositionComponents.d.ts +68 -0
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +4 -0
- package/dist/types/web-contracts/assistant.d.ts +87 -0
- package/dist/types/web-contracts/constructionPlan.d.ts +212 -0
- package/dist/types/web-contracts/index.d.ts +33 -0
- package/dist/types/web-contracts/operation.d.ts +33 -0
- package/dist/types/web-contracts/referenceTarget.d.ts +13 -0
- package/dist/types/web-core/assistantCapabilityCatalog.d.ts +22 -0
- package/dist/types/web-core/assistantCatalogPage.d.ts +12 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +23 -0
- package/dist/types/web-core/assistantConversationClient.d.ts +42 -0
- package/dist/types/web-core/assistantRuntime.d.ts +123 -0
- package/dist/types/web-core/assistantSurface.d.ts +162 -0
- package/dist/types/web-core/assistantTurnClient.d.ts +16 -0
- package/dist/types/web-core/constructionPlanClient.d.ts +55 -0
- package/dist/types/web-core/errors.d.ts +2 -0
- package/dist/types/web-core/http.d.ts +1 -0
- package/dist/types/web-core/index.d.ts +12 -0
- package/dist/types/web-core/module/dataExchangeClient.d.ts +53 -0
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +12 -2
- package/dist/types/web-core/operationConfirmation.d.ts +28 -0
- package/dist/types/web-core/operationErrors.d.ts +9 -0
- package/dist/types/web-core/operationReceipt.d.ts +10 -0
- package/dist/types/web-core/sse.d.ts +9 -0
- package/dist/types/web-core/uuid.d.ts +2 -0
- package/dist/{workspaceViews-CCg6V0pr.js → workspaceViews-CHsgLFwY.js} +783 -1189
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-BtaXVJKz.js +0 -564
- package/dist/moduleGovernanceWorkspaceView-4V_UW-Bt.js +0 -40
- package/dist/platform-workbench-Cu14Xd9d.js +0 -10299
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import type { MetadataField } from '../web-contracts/index';
|
|
2
|
+
import type { OperationProposal } from '../web-core/index';
|
|
3
|
+
import type { MetadataModelChangeSetProposal } from './metadataModelEditSession';
|
|
4
|
+
import type { MetadataChangeSetPreview } from './metadataModelChangeSetClient';
|
|
5
|
+
import type { MetadataFieldReferencePropertyConfig } from './metadataOrchestrationState';
|
|
6
|
+
export interface MetadataGovernanceSummary {
|
|
7
|
+
moduleAlias: string;
|
|
8
|
+
moduleTitle?: string;
|
|
9
|
+
factsAvailable?: boolean;
|
|
10
|
+
submissionStatus?: 'idle' | 'unknown' | 'current-read';
|
|
11
|
+
committedNeedsReload?: boolean;
|
|
12
|
+
relationCount: number;
|
|
13
|
+
selectedRelation?: {
|
|
14
|
+
relationId: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
fieldCount: number;
|
|
17
|
+
fieldsSource?: 'SAVED_CONFIGURATION' | 'UNSAVED_CANDIDATE';
|
|
18
|
+
fields: Array<Pick<MetadataField, 'required' | 'uniqueField' | 'indexed' | 'sortableField' | 'titleField' | 'enabled'> & {
|
|
19
|
+
fieldName: string;
|
|
20
|
+
columnName?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
fieldSpecAlias?: string;
|
|
23
|
+
defaultValue?: string | null;
|
|
24
|
+
propertyKind: string;
|
|
25
|
+
governance: string;
|
|
26
|
+
reference?: MetadataFieldReferencePropertyConfig;
|
|
27
|
+
}>;
|
|
28
|
+
capabilities?: Array<{
|
|
29
|
+
capability: string;
|
|
30
|
+
title: string;
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
configurable: boolean;
|
|
33
|
+
selected: boolean;
|
|
34
|
+
reason: string;
|
|
35
|
+
fieldContributions: string[];
|
|
36
|
+
defaultDescription: string;
|
|
37
|
+
}>;
|
|
38
|
+
truncated: boolean;
|
|
39
|
+
};
|
|
40
|
+
mainCandidate?: {
|
|
41
|
+
alias: string;
|
|
42
|
+
title: string;
|
|
43
|
+
schemaName: string;
|
|
44
|
+
tableName: string;
|
|
45
|
+
storageDefaultsOnSave: Array<'schemaName' | 'tableName'>;
|
|
46
|
+
saved: false;
|
|
47
|
+
nextStep: 'REVIEW_AND_SAVE_STRUCTURE_BEFORE_FIELDS';
|
|
48
|
+
};
|
|
49
|
+
childCandidate?: {
|
|
50
|
+
alias: string;
|
|
51
|
+
title: string;
|
|
52
|
+
parentRelationId: string;
|
|
53
|
+
parentTitle?: string;
|
|
54
|
+
saved: false;
|
|
55
|
+
};
|
|
56
|
+
draft: {
|
|
57
|
+
active: boolean;
|
|
58
|
+
dirty: boolean;
|
|
59
|
+
editorOpen: boolean;
|
|
60
|
+
fieldPlanOpen?: boolean;
|
|
61
|
+
fieldPlanEditing?: boolean;
|
|
62
|
+
};
|
|
63
|
+
fieldSpecs: Array<{
|
|
64
|
+
alias: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
68
|
+
export interface AddMetadataFieldDraftInput {
|
|
69
|
+
defaultValue?: string | null;
|
|
70
|
+
title: string;
|
|
71
|
+
fieldName?: string;
|
|
72
|
+
fieldSpecAlias: string;
|
|
73
|
+
required?: boolean;
|
|
74
|
+
unique?: boolean;
|
|
75
|
+
indexed?: boolean;
|
|
76
|
+
sortable?: boolean;
|
|
77
|
+
titleField?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface UpdateMetadataFieldDraftInput {
|
|
80
|
+
defaultValue?: string | null;
|
|
81
|
+
fieldName: string;
|
|
82
|
+
title?: string;
|
|
83
|
+
fieldSpecAlias?: string;
|
|
84
|
+
required?: boolean;
|
|
85
|
+
unique?: boolean;
|
|
86
|
+
indexed?: boolean;
|
|
87
|
+
sortable?: boolean;
|
|
88
|
+
titleField?: boolean;
|
|
89
|
+
enabled?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export interface UpdateMetadataReferenceDraftInput {
|
|
92
|
+
fieldName: string;
|
|
93
|
+
requireEnabled?: boolean;
|
|
94
|
+
affectMappings?: string[];
|
|
95
|
+
}
|
|
96
|
+
export type MetadataPropertyFieldKind = 'MODULE_REFERENCE' | 'DICTIONARY';
|
|
97
|
+
export interface FindMetadataFieldTargetsInput {
|
|
98
|
+
kind: MetadataPropertyFieldKind;
|
|
99
|
+
keyword?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface AddMetadataPropertyFieldDraftInput {
|
|
102
|
+
defaultValue?: string | null;
|
|
103
|
+
kind: MetadataPropertyFieldKind;
|
|
104
|
+
title: string;
|
|
105
|
+
fieldName?: string;
|
|
106
|
+
target: string;
|
|
107
|
+
selectionMode?: 'SINGLE' | 'MULTIPLE';
|
|
108
|
+
affectMappings?: string[];
|
|
109
|
+
required?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface PreparedMetadataPropertyFieldDraft {
|
|
112
|
+
defaultValue?: string | null;
|
|
113
|
+
relationId: string;
|
|
114
|
+
kind: MetadataPropertyFieldKind;
|
|
115
|
+
title: string;
|
|
116
|
+
fieldName: string;
|
|
117
|
+
columnName: string;
|
|
118
|
+
fieldSpecAlias: string;
|
|
119
|
+
required: boolean;
|
|
120
|
+
reference?: {
|
|
121
|
+
targetModuleAlias: string;
|
|
122
|
+
targetMetadataId?: string;
|
|
123
|
+
targetKeyField: string;
|
|
124
|
+
targetLabelField: string;
|
|
125
|
+
affectMappings?: string[];
|
|
126
|
+
};
|
|
127
|
+
dictionary?: {
|
|
128
|
+
applicationAlias: string;
|
|
129
|
+
categoryAlias: string;
|
|
130
|
+
selectionMode: 'SINGLE' | 'MULTIPLE';
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export interface MetadataFieldCandidate {
|
|
134
|
+
fieldName: string;
|
|
135
|
+
kind: string;
|
|
136
|
+
editable: boolean;
|
|
137
|
+
operation: 'ADD' | 'UPDATE';
|
|
138
|
+
saved: false;
|
|
139
|
+
expectedMetadataVersion: number;
|
|
140
|
+
changes: Array<{
|
|
141
|
+
property: string;
|
|
142
|
+
before?: string | boolean;
|
|
143
|
+
after?: string | boolean;
|
|
144
|
+
}>;
|
|
145
|
+
}
|
|
146
|
+
export type MetadataFieldPlanInput = Array<(AddMetadataFieldDraftInput & {
|
|
147
|
+
kind: 'BASIC';
|
|
148
|
+
}) | AddMetadataPropertyFieldDraftInput>;
|
|
149
|
+
/** Preparation validates without changing the editor; returned callbacks commit synchronously inside applyEffect. */
|
|
150
|
+
export interface MetadataGovernanceEditor {
|
|
151
|
+
prepareMainDraft?(input: {
|
|
152
|
+
title: string;
|
|
153
|
+
}): () => unknown;
|
|
154
|
+
prepareChildDraft?(input: {
|
|
155
|
+
alias: string;
|
|
156
|
+
title: string;
|
|
157
|
+
}): () => unknown;
|
|
158
|
+
discardCandidate?(): void;
|
|
159
|
+
prepareConfirmation?(signal: AbortSignal): Promise<OperationProposal>;
|
|
160
|
+
readCurrent?(signal?: AbortSignal, commit?: (accept: () => void) => void): Promise<void>;
|
|
161
|
+
prepareFieldPlan?(fields: MetadataFieldPlanInput, signal: AbortSignal): Promise<() => unknown>;
|
|
162
|
+
plan?(): unknown;
|
|
163
|
+
prepareCapabilityDraft?(input: {
|
|
164
|
+
capability: string;
|
|
165
|
+
selected: boolean;
|
|
166
|
+
}): () => unknown;
|
|
167
|
+
prepareRetainFieldDraft?(): () => unknown;
|
|
168
|
+
removableNewFieldNames?(): string[];
|
|
169
|
+
prepareRemoveNewFieldDraft?(input: {
|
|
170
|
+
fieldName: string;
|
|
171
|
+
}): () => unknown;
|
|
172
|
+
summary(): MetadataGovernanceSummary;
|
|
173
|
+
candidate?(): MetadataFieldCandidate | undefined;
|
|
174
|
+
proposal(): MetadataModelChangeSetProposal | undefined;
|
|
175
|
+
preview(proposal: MetadataModelChangeSetProposal, signal: AbortSignal): Promise<MetadataChangeSetPreview>;
|
|
176
|
+
fieldSpecAliases(): string[];
|
|
177
|
+
editableBasicFieldNames(): string[];
|
|
178
|
+
editableReferenceFieldNames?(): string[];
|
|
179
|
+
prepareReferenceUpdate?(input: UpdateMetadataReferenceDraftInput, signal: AbortSignal): Promise<() => unknown>;
|
|
180
|
+
prepareNewFieldDraft?(input: AddMetadataFieldDraftInput): () => {
|
|
181
|
+
relationId: string;
|
|
182
|
+
fieldName: string;
|
|
183
|
+
columnName: string;
|
|
184
|
+
title: string;
|
|
185
|
+
fieldSpecAlias: string;
|
|
186
|
+
};
|
|
187
|
+
prepareFieldUpdate?(input: UpdateMetadataFieldDraftInput): () => {
|
|
188
|
+
relationId: string;
|
|
189
|
+
fieldName: string;
|
|
190
|
+
title?: string;
|
|
191
|
+
fieldSpecAlias?: string;
|
|
192
|
+
};
|
|
193
|
+
findFieldTargets?(input: FindMetadataFieldTargetsInput, signal: AbortSignal): Promise<{
|
|
194
|
+
targets: Array<{
|
|
195
|
+
target: string;
|
|
196
|
+
title?: string;
|
|
197
|
+
}>;
|
|
198
|
+
truncated: boolean;
|
|
199
|
+
}>;
|
|
200
|
+
referenceAffectDirectory?(target: string, signal: AbortSignal): Promise<{
|
|
201
|
+
sources: Array<{
|
|
202
|
+
fieldName: string;
|
|
203
|
+
title: string;
|
|
204
|
+
}>;
|
|
205
|
+
destinations: Array<{
|
|
206
|
+
fieldName: string;
|
|
207
|
+
title: string;
|
|
208
|
+
}>;
|
|
209
|
+
}>;
|
|
210
|
+
preparePropertyFieldDraft?(input: AddMetadataPropertyFieldDraftInput, signal: AbortSignal): Promise<PreparedMetadataPropertyFieldDraft>;
|
|
211
|
+
preparePropertyFieldCommit?(prepared: PreparedMetadataPropertyFieldDraft): () => {
|
|
212
|
+
relationId: string;
|
|
213
|
+
kind: MetadataPropertyFieldKind;
|
|
214
|
+
fieldName: string;
|
|
215
|
+
columnName: string;
|
|
216
|
+
title: string;
|
|
217
|
+
fieldSpecAlias: string;
|
|
218
|
+
target: string;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { HttpClient } from '../web-core/index';
|
|
2
|
+
import type { MetadataModelChangeSetProposal } from './metadataModelEditSession';
|
|
3
|
+
export type MetadataChangeSetIssue = {
|
|
4
|
+
severity: 'WARNING' | 'ERROR' | string;
|
|
5
|
+
code: string;
|
|
6
|
+
subject: string;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
export type MetadataChangeSetPreview = {
|
|
10
|
+
proposalFingerprint: string;
|
|
11
|
+
fieldImpacts: Array<{
|
|
12
|
+
operation: string;
|
|
13
|
+
fieldName: string;
|
|
14
|
+
columnName: string;
|
|
15
|
+
platformManaged: boolean;
|
|
16
|
+
description: string;
|
|
17
|
+
}>;
|
|
18
|
+
schemaImpacts: Array<{
|
|
19
|
+
operation: string;
|
|
20
|
+
schemaName: string;
|
|
21
|
+
tableName: string;
|
|
22
|
+
columnName: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}>;
|
|
25
|
+
orderImpacts: Array<{
|
|
26
|
+
operation: string;
|
|
27
|
+
relationId?: string;
|
|
28
|
+
parentMetadataId?: string;
|
|
29
|
+
orderedIds: string[];
|
|
30
|
+
description: string;
|
|
31
|
+
}>;
|
|
32
|
+
warnings: MetadataChangeSetIssue[];
|
|
33
|
+
errors: MetadataChangeSetIssue[];
|
|
34
|
+
};
|
|
35
|
+
export declare function previewMetadataModelChangeSet(http: HttpClient, moduleAlias: string, proposal: MetadataModelChangeSetProposal, signal?: AbortSignal): Promise<MetadataChangeSetPreview>;
|
|
36
|
+
export declare function applyMetadataModelChangeSet(http: HttpClient, moduleAlias: string, proposal: MetadataModelChangeSetProposal, proposalFingerprint: string): Promise<unknown>;
|
|
@@ -23,6 +23,7 @@ export declare function toFieldPropertyChangeSetPayload(property: MetadataFieldP
|
|
|
23
23
|
export interface MetadataRelationChangeSetProposal {
|
|
24
24
|
expectedMetadataVersion: number;
|
|
25
25
|
fieldDrafts: MetadataFieldChangeSetDraft[];
|
|
26
|
+
capabilitySelections?: Record<string, boolean>;
|
|
26
27
|
}
|
|
27
28
|
/** Input facts are loaded for every node before a module-wide edit session begins. */
|
|
28
29
|
export interface MetadataModelRelationDraftSource {
|
|
@@ -40,6 +41,7 @@ export interface MetadataModelRelationDraft {
|
|
|
40
41
|
metadataId: string;
|
|
41
42
|
relationId: string;
|
|
42
43
|
expectedMetadataVersion: number;
|
|
44
|
+
capabilitySelections: Record<string, boolean>;
|
|
43
45
|
fields: Record<string, MetadataField>;
|
|
44
46
|
fieldProperties: Record<string, MetadataFieldPropertyDraft>;
|
|
45
47
|
parentMetadataId?: string;
|
|
@@ -70,14 +72,37 @@ export declare function createMetadataModelWorkspaceEditSession(): {
|
|
|
70
72
|
editing: import("vue").ComputedRef<boolean>;
|
|
71
73
|
isDirty: import("vue").ComputedRef<boolean>;
|
|
72
74
|
begin: (sources: MetadataModelRelationDraftSource[]) => void;
|
|
75
|
+
prepareRebase: (sources: MetadataModelRelationDraftSource[], proposal: MetadataModelChangeSetProposal, enabledCapabilities?: Readonly<Record<string, string[]>>, baseline?: Readonly<Record<string, MetadataModelRelationDraft>>) => () => void;
|
|
76
|
+
captureBaseline: () => {
|
|
77
|
+
[k: string]: {
|
|
78
|
+
capabilitySelections: {
|
|
79
|
+
[x: string]: boolean;
|
|
80
|
+
};
|
|
81
|
+
fields: Record<string, MetadataField>;
|
|
82
|
+
fieldProperties: Record<string, MetadataFieldPropertyDraft>;
|
|
83
|
+
fieldOrder: string[];
|
|
84
|
+
sortableFieldIds: string[];
|
|
85
|
+
metadataId: string;
|
|
86
|
+
relationId: string;
|
|
87
|
+
expectedMetadataVersion: number;
|
|
88
|
+
parentMetadataId?: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
73
91
|
cancel: () => void;
|
|
74
92
|
relation: (relationId: string) => MetadataModelRelationDraft | undefined;
|
|
75
93
|
fieldsForDisplay: (relationId: string, fallback: MetadataField[]) => MetadataField[];
|
|
76
94
|
propertyForField: (relationId: string, field: MetadataField) => MetadataFieldPropertyDraft;
|
|
77
95
|
stageField: (relationId: string, field: MetadataField, property?: MetadataFieldPropertyDraft, replaceNewFieldKey?: string) => void;
|
|
96
|
+
stageFields: (relationId: string, entries: Array<{
|
|
97
|
+
field: MetadataField;
|
|
98
|
+
property: MetadataFieldPropertyDraft;
|
|
99
|
+
}>) => void;
|
|
100
|
+
discardNewField: (relationId: string, fieldName: string) => void;
|
|
101
|
+
stageCapability: (relationId: string, capability: string, selected: boolean) => void;
|
|
78
102
|
stageFieldOrder: (relationId: string, fieldIds: string[]) => void;
|
|
79
103
|
stageRelationOrder: (parentMetadataId: string | undefined, relationIds: string[]) => void;
|
|
80
|
-
buildProposal: () => MetadataModelChangeSetProposal | undefined;
|
|
104
|
+
buildProposal: (currentDraft?: Record<string, MetadataModelRelationDraft> | undefined) => MetadataModelChangeSetProposal | undefined;
|
|
105
|
+
proposalWithField: (relationId: string, field: MetadataField, property: MetadataFieldPropertyDraft, replaceNewFieldKey?: string) => MetadataModelChangeSetProposal | undefined;
|
|
81
106
|
};
|
|
82
107
|
export declare function metadataFieldGovernanceKind(field: MetadataField, relation: ModuleMetadataRelation | undefined, capabilityFieldNames: ReadonlySet<string>): MetadataFieldGovernanceKind;
|
|
83
108
|
export declare function metadataFieldGovernanceLabel(kind: MetadataFieldGovernanceKind): string;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import type { MetadataFieldPropertyKind } from './metadataOrchestrationState';
|
|
2
|
+
export declare const PLATFORM_FIELD_NAME_PATTERN = "^[a-z][A-Za-z0-9]{0,62}$";
|
|
3
|
+
export declare const DYNAMIC_RECORD_RESERVED_FIELD_NAMES: Set<string>;
|
|
4
|
+
export declare function isPlatformFieldName(value: string): boolean;
|
|
5
|
+
export declare function isDynamicRecordReservedFieldName(value: string): boolean;
|
|
2
6
|
export declare function physicalNameOf(fieldName?: string): string;
|
|
7
|
+
/** Match the platform record-name contract before a shared candidate is staged. */
|
|
8
|
+
export declare function recordNameFieldProblem(field: {
|
|
9
|
+
titleField?: boolean | null;
|
|
10
|
+
fieldName?: string | null;
|
|
11
|
+
columnName?: string | null;
|
|
12
|
+
}): string | undefined;
|
|
3
13
|
export declare function generatedFieldName(title?: string): string;
|
|
4
14
|
/** Default names for newly created business fields; runtime semantics remain metadata-driven. */
|
|
5
|
-
export declare function generatedBusinessFieldName(title: string | undefined, kind: MetadataFieldPropertyKind): string;
|
|
15
|
+
export declare function generatedBusinessFieldName(title: string | undefined, kind: MetadataFieldPropertyKind, titleField?: boolean): string;
|
|
6
16
|
/** Metadata identifiers use lower snake case; they are stable after explicit editing. */
|
|
7
17
|
export declare function generatedMetadataAlias(title: string, maxLength?: number): string;
|
|
@@ -22,7 +22,9 @@ export interface MetadataFieldReferencePropertyConfig {
|
|
|
22
22
|
targetLabelField?: string;
|
|
23
23
|
cardinality?: 'ONE' | 'MANY';
|
|
24
24
|
targetUnavailablePolicy?: 'PRESERVE_HISTORY' | 'RESTRICT' | 'CASCADE_DELETE';
|
|
25
|
+
requireEnabled?: boolean;
|
|
25
26
|
projectionMappings?: string[];
|
|
27
|
+
affectMappings?: string[];
|
|
26
28
|
}
|
|
27
29
|
export interface MetadataFieldDictionaryPropertyConfig {
|
|
28
30
|
dictionaryApplicationAlias?: string;
|
|
@@ -40,9 +42,17 @@ export interface MetadataFieldPropertyDraft {
|
|
|
40
42
|
expectedBindingVersion?: number;
|
|
41
43
|
referenceConfig?: MetadataFieldReferencePropertyConfig;
|
|
42
44
|
dictionaryConfig?: MetadataFieldDictionaryPropertyConfig;
|
|
45
|
+
fixedDefault?: {
|
|
46
|
+
value: string | null;
|
|
47
|
+
expectedConfigVersion?: number;
|
|
48
|
+
};
|
|
43
49
|
}
|
|
44
50
|
/** Relation-scoped property facts supplied by the module-governance read model. */
|
|
45
51
|
export interface MetadataFieldPropertySummary extends MetadataFieldPropertyDraft {
|
|
52
|
+
fixedDefault?: NonNullable<MetadataFieldPropertyDraft['fixedDefault']> & {
|
|
53
|
+
configVersion?: number;
|
|
54
|
+
editable?: boolean;
|
|
55
|
+
};
|
|
46
56
|
fieldId?: string;
|
|
47
57
|
fieldName?: string;
|
|
48
58
|
fieldSpecAlias?: string;
|
|
@@ -338,13 +348,19 @@ export declare function createMetadataOrchestrationState(): {
|
|
|
338
348
|
targetLabelField?: string | undefined;
|
|
339
349
|
cardinality?: "ONE" | "MANY" | undefined;
|
|
340
350
|
targetUnavailablePolicy?: "PRESERVE_HISTORY" | "RESTRICT" | "CASCADE_DELETE" | undefined;
|
|
351
|
+
requireEnabled?: boolean | undefined;
|
|
341
352
|
projectionMappings?: string[] | undefined;
|
|
353
|
+
affectMappings?: string[] | undefined;
|
|
342
354
|
} | undefined;
|
|
343
355
|
dictionaryConfig?: {
|
|
344
356
|
dictionaryApplicationAlias?: string | undefined;
|
|
345
357
|
dictionaryCategoryAlias?: string | undefined;
|
|
346
358
|
selectionMode?: "SINGLE" | "MULTIPLE" | undefined;
|
|
347
359
|
} | undefined;
|
|
360
|
+
fixedDefault?: {
|
|
361
|
+
value: string | null;
|
|
362
|
+
expectedConfigVersion?: number | undefined;
|
|
363
|
+
} | undefined;
|
|
348
364
|
}, MetadataFieldPropertyDraft | {
|
|
349
365
|
kind: MetadataFieldPropertyKind;
|
|
350
366
|
expectedBindingVersion?: number | undefined;
|
|
@@ -355,13 +371,19 @@ export declare function createMetadataOrchestrationState(): {
|
|
|
355
371
|
targetLabelField?: string | undefined;
|
|
356
372
|
cardinality?: "ONE" | "MANY" | undefined;
|
|
357
373
|
targetUnavailablePolicy?: "PRESERVE_HISTORY" | "RESTRICT" | "CASCADE_DELETE" | undefined;
|
|
374
|
+
requireEnabled?: boolean | undefined;
|
|
358
375
|
projectionMappings?: string[] | undefined;
|
|
376
|
+
affectMappings?: string[] | undefined;
|
|
359
377
|
} | undefined;
|
|
360
378
|
dictionaryConfig?: {
|
|
361
379
|
dictionaryApplicationAlias?: string | undefined;
|
|
362
380
|
dictionaryCategoryAlias?: string | undefined;
|
|
363
381
|
selectionMode?: "SINGLE" | "MULTIPLE" | undefined;
|
|
364
382
|
} | undefined;
|
|
383
|
+
fixedDefault?: {
|
|
384
|
+
value: string | null;
|
|
385
|
+
expectedConfigVersion?: number | undefined;
|
|
386
|
+
} | undefined;
|
|
365
387
|
}>;
|
|
366
388
|
selectedRelation: import("vue").ComputedRef<{
|
|
367
389
|
moduleAlias?: string | undefined;
|