@ximatai/muyun-web-app 0.26.15 → 0.26.16
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-DVM_GB5y.js +18 -0
- package/dist/BusinessLogListDrawer-BciMLY9z.js +864 -0
- package/dist/ConfigurationTranslationView-B0FosDyz.js +197 -0
- package/dist/LoginAuditLogView-3tAozKlC.js +18 -0
- package/dist/ModuleActionManagementView-CJRNShGg.js +755 -0
- package/dist/{ModuleGovernanceView-LkWCtops.js → ModuleGovernanceView-DsqR_Sj7.js} +6733 -6323
- package/dist/RequestErrorLogView-C4yH-TSX.js +18 -0
- package/dist/RoleDetailWorkspaceView-BpOoGUwS.js +1435 -0
- package/dist/RuntimeLogView-CoKKpJ39.js +316 -0
- package/dist/WorkflowAdministrationView-DmUV6vWS.js +650 -0
- package/dist/WorkflowConfigurationView-pghDbWEh.js +975 -0
- package/dist/WorkflowWorkbenchView-BwWxyDen.js +747 -0
- package/dist/es-BST-ixpj.js +22621 -0
- package/dist/index.css +1 -1
- package/dist/index.js +852 -735
- package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +667 -0
- package/dist/platform-components-Cl5ZZiuU.js +27139 -0
- package/dist/{platform-workbench-C-kE-Yqq.js → platform-workbench-CAHoriIf.js} +7677 -7187
- package/dist/rolldown-runtime-BAC7EHh5.js +20 -0
- package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +1 -1
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +3 -0
- package/dist/types/app/businessNotificationNavigation.d.ts +4 -0
- package/dist/types/app/menuRouteCompiler.d.ts +3 -0
- package/dist/types/app/platformMessage.d.ts +3 -6
- package/dist/types/app/themeSkinPreference.d.ts +3 -2
- package/dist/types/app/workbenchStartup.d.ts +8 -4
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +1 -1
- package/dist/types/consumer/index.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +46 -1302
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +409 -1626
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +15 -1
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +9 -1301
- package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -4
- package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +3 -10
- package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +7 -3
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +5 -4
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +35 -1303
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +13 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +2 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -1
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +4 -4
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +2 -1
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +11 -7
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +16 -7
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +4 -3
- package/dist/types/platform-admin-runtime/pageRealtime.d.ts +0 -1
- package/dist/types/platform-admin-runtime/realtime.d.ts +0 -3
- package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +4 -1
- package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -1
- package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +2 -0
- package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +1 -5
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +34 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +4 -4
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -2
- package/dist/types/platform-components/FileSizeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +7 -7
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
- package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +1 -1
- package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +5 -5
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +2 -2
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +3 -3
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
- package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +1 -1
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -5
- package/dist/types/platform-components/UserPicker.vue.d.ts +2 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
- package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +36 -0
- package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +40 -0
- package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +24 -0
- package/dist/types/platform-components/WorkflowParticipantEditor.vue.d.ts +18 -0
- package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +30 -0
- package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +19 -0
- package/dist/types/platform-components/crudRecordListModel.d.ts +2 -1
- package/dist/types/platform-components/fileTransferUpload.d.ts +10 -0
- package/dist/types/platform-components/index.d.ts +8 -2
- package/dist/types/platform-components/optionFieldOptions.d.ts +7 -2
- package/dist/types/platform-components/platformDateTime.d.ts +2 -0
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -1
- package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +10 -2
- package/dist/types/platform-components/recordActionBarModel.d.ts +4 -1
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +3 -3
- package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -1
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +5 -1
- package/dist/types/platform-components/recycleBinState.d.ts +3 -2
- package/dist/types/platform-components/referencePickerModel.d.ts +9 -1
- package/dist/types/platform-components/referencePickerReadError.d.ts +11 -3
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +2 -2
- package/dist/types/platform-components/softDeletedConflictHandler.d.ts +3 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +9 -8
- package/dist/types/platform-components/treeRecordModel.d.ts +2 -1
- package/dist/types/platform-components/userSessionPresentation.d.ts +4 -3
- package/dist/types/platform-components/workflowAccountOptions.d.ts +4 -0
- package/dist/types/platform-components/workflowDesignEditing.d.ts +11 -0
- package/dist/types/platform-components/workflowDiagramModel.d.ts +41 -0
- package/dist/types/platform-components/workflowParticipantPolicy.d.ts +11 -0
- package/dist/types/platform-components/workflowPresentation.d.ts +11 -0
- package/dist/types/platform-workbench/LanguageSelector.vue.d.ts +6 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +3 -3
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +1 -1
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
- package/dist/types/platform-workbench/assistantControlText.d.ts +19 -0
- package/dist/types/platform-workbench/configurationCollaboration.d.ts +2 -2
- package/dist/types/platform-workbench/constructionDelivery.d.ts +2 -2
- package/dist/types/platform-workbench/constructionFields.d.ts +2 -2
- package/dist/types/platform-workbench/constructionInitialization.d.ts +2 -2
- package/dist/types/platform-workbench/constructionPlanGuard.d.ts +2 -1
- package/dist/types/platform-workbench/constructionPlanSession.d.ts +12 -4
- package/dist/types/platform-workbench/constructionPresentation.d.ts +6 -0
- package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +2 -2
- package/dist/types/platform-workbench/index.d.ts +2 -1
- package/dist/types/platform-workbench/menuNavigation.d.ts +7 -3
- package/dist/types/platform-workbench/menuTreeModel.d.ts +2 -1
- package/dist/types/platform-workbench/realtimeStatus.d.ts +2 -1
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +107 -15
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +8 -15
- package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -5
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -2
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +4 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +5 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
- package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +1 -1
- package/dist/types/platform-workbench/workspaceViews.d.ts +3 -2
- package/dist/types/views/ConfigurationTranslationView.vue.d.ts +3 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +0 -2
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +2 -2
- package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +2 -2
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +1 -1
- package/dist/types/views/WorkflowAdministrationView.vue.d.ts +3 -0
- package/dist/types/views/WorkflowConfigurationView.vue.d.ts +7 -0
- package/dist/types/views/WorkflowWorkbenchView.vue.d.ts +3 -0
- package/dist/types/views/businessLogClient.d.ts +5 -2
- package/dist/types/views/businessRuleAssistantSurface.d.ts +3 -3
- package/dist/types/views/businessRuleEditor.d.ts +2 -1
- package/dist/types/views/businessRuleGovernance.d.ts +14 -4
- package/dist/types/views/businessRuleSession.d.ts +4 -3
- package/dist/types/views/businessRuleWorkspace.d.ts +6 -2
- package/dist/types/views/configurationEditorNavigation.d.ts +2 -1
- package/dist/types/views/configurationTranslationWorkspace.d.ts +69 -0
- package/dist/types/views/dictionaryRadioEligibility.d.ts +2 -1
- package/dist/types/views/metadataChangeSetSubmission.d.ts +4 -3
- package/dist/types/views/metadataEditorSession.d.ts +15 -9
- package/dist/types/views/metadataGovernanceEditor.d.ts +4 -0
- package/dist/types/views/metadataModelEditSession.d.ts +3 -2
- package/dist/types/views/metadataModelTree.d.ts +2 -1
- package/dist/types/views/metadataNaming.d.ts +5 -2
- package/dist/types/views/metadataOrchestrationState.d.ts +10 -9
- package/dist/types/views/metadataSourceTree.d.ts +3 -2
- package/dist/types/views/metadataWorkspace.d.ts +26 -19
- package/dist/types/views/moduleRuntimeActivation.d.ts +3 -3
- package/dist/types/views/pageCompositionAssistantSurface.d.ts +2 -0
- package/dist/types/views/pageCompositionCandidate.d.ts +2 -1
- package/dist/types/views/pageCompositionComponents.d.ts +5 -4
- package/dist/types/views/pageCompositionDraftState.d.ts +21 -7
- package/dist/types/views/pageCompositionMode.d.ts +26 -2
- package/dist/types/views/pageCompositionPublication.d.ts +2 -0
- package/dist/types/views/pageCompositionSession.d.ts +48 -15
- package/dist/types/views/pageCompositionWorkspace.d.ts +90 -29
- package/dist/types/views/runtimeLogClient.d.ts +2 -2
- package/dist/types/views/usePageCompositionComponents.d.ts +2 -1
- package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/vue-ui-antdv/blockingOverlays.d.ts +9 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiLanguageProvider.vue.d.ts +18 -0
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +3 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +7 -7
- package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +7 -7
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/confirm.d.ts +3 -2
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageGlobalScope.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +4 -0
- package/dist/types/vue-ui-antdv/theme.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/web-contracts/constructionPlan.d.ts +4 -3
- package/dist/types/web-contracts/index.d.ts +46 -0
- package/dist/types/web-contracts/workflow.d.ts +346 -0
- package/dist/types/web-core/actionResult.d.ts +3 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +3 -2
- package/dist/types/web-core/assistantConversationClient.d.ts +8 -0
- package/dist/types/web-core/assistantSurface.d.ts +4 -3
- package/dist/types/web-core/errors.d.ts +8 -4
- package/dist/types/web-core/index.d.ts +6 -0
- package/dist/types/web-core/language.d.ts +54 -0
- package/dist/types/web-core/languagePreference.d.ts +8 -0
- package/dist/types/web-core/module/dataExchangeClient.d.ts +2 -1
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/moduleContext.d.ts +4 -0
- package/dist/types/web-core/module/pageActionEntries.d.ts +3 -2
- package/dist/types/web-core/module/runtimeContext.d.ts +15 -2
- package/dist/types/web-core/operationConfirmation.d.ts +5 -1
- package/dist/types/web-core/operationErrors.d.ts +15 -1
- package/dist/types/web-core/presentationTexts.d.ts +16 -0
- package/dist/types/web-core/sha256.d.ts +2 -0
- package/dist/types/web-core/workflow.d.ts +70 -0
- package/dist/types/web-core/workspaceUnsavedState.d.ts +6 -0
- package/dist/workspaceViews-BIYGPUAO.js +3437 -0
- package/package.json +2 -4
- package/dist/BusinessActivityLogView-DVzrZW1X.js +0 -16
- package/dist/BusinessLogListDrawer-D-R3wnWr.js +0 -825
- package/dist/LoginAuditLogView-BP1eaEPw.js +0 -16
- package/dist/ModuleActionManagementView-D17iKVQv.js +0 -691
- package/dist/RequestErrorLogView-LzN94-Tk.js +0 -16
- package/dist/RoleDetailWorkspaceView-BXA-bzFu.js +0 -1406
- package/dist/RuntimeLogView-DUpu2q2w.js +0 -297
- package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +0 -639
- package/dist/platform-components-Hs3DrTqE.js +0 -19770
- package/dist/rolldown-runtime-DPVXH0ON.js +0 -17
- package/dist/sse-Q1wa3p_k.js +0 -187
- package/dist/workspaceViews-CHsgLFwY.js +0 -3217
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import type { TextPresentation } from './index';
|
|
2
|
+
/** Published workflow facts shared by static and metadata driven modules. */
|
|
3
|
+
export interface WorkflowDefinition {
|
|
4
|
+
id: string;
|
|
5
|
+
version: number;
|
|
6
|
+
alias: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
definitionStatus: string;
|
|
9
|
+
currentVersionNo?: number;
|
|
10
|
+
approvalEnabled: boolean;
|
|
11
|
+
organizationId?: string;
|
|
12
|
+
matchExpression?: string;
|
|
13
|
+
matchPriority?: number;
|
|
14
|
+
defaultDefinition?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface WorkflowVersion {
|
|
17
|
+
id: string;
|
|
18
|
+
version: number;
|
|
19
|
+
versionNo: number;
|
|
20
|
+
publishStatus: string;
|
|
21
|
+
}
|
|
22
|
+
export interface WorkflowNode {
|
|
23
|
+
nodeTitleText?: TextPresentation;
|
|
24
|
+
id?: string;
|
|
25
|
+
version?: number;
|
|
26
|
+
nodeKey: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
nodeTitle?: string;
|
|
29
|
+
nodeType: string;
|
|
30
|
+
nodeStatus?: string;
|
|
31
|
+
approvalMode?: string;
|
|
32
|
+
approvalRatio?: number;
|
|
33
|
+
participantPolicyText?: string;
|
|
34
|
+
milestoneType?: string;
|
|
35
|
+
routeMode?: string;
|
|
36
|
+
selectorNodeKey?: string;
|
|
37
|
+
convergeNodeKey?: string;
|
|
38
|
+
convergeMode?: string;
|
|
39
|
+
convergeRatio?: number;
|
|
40
|
+
requireManualSelectionReason?: boolean;
|
|
41
|
+
allowReject?: boolean;
|
|
42
|
+
autoApproveSameUser?: boolean;
|
|
43
|
+
requireRejectReason?: boolean;
|
|
44
|
+
allowRejectReturnToMe?: boolean;
|
|
45
|
+
allowRollback?: boolean;
|
|
46
|
+
requireRollbackReason?: boolean;
|
|
47
|
+
allowAddSign?: boolean;
|
|
48
|
+
warningDurationMinutes?: number;
|
|
49
|
+
overtimeDurationMinutes?: number;
|
|
50
|
+
taskDefinitionId?: string;
|
|
51
|
+
nodeConfigText?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface WorkflowRoute {
|
|
54
|
+
id?: string;
|
|
55
|
+
routeKey: string;
|
|
56
|
+
sourceNodeKey: string;
|
|
57
|
+
targetNodeKey: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
conditionExpression?: string;
|
|
60
|
+
defaultRoute?: boolean;
|
|
61
|
+
routeStatus?: string;
|
|
62
|
+
routeReason?: string;
|
|
63
|
+
selectedReason?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface WorkflowAddSignExplanation {
|
|
66
|
+
dimension: 'NODE' | 'ROUTE';
|
|
67
|
+
nodeKey?: string;
|
|
68
|
+
nodeStatus?: string;
|
|
69
|
+
routeKey?: string;
|
|
70
|
+
routeSourceNodeKey?: string;
|
|
71
|
+
routeTargetNodeKey?: string;
|
|
72
|
+
addSignSourceNodeKey: string;
|
|
73
|
+
}
|
|
74
|
+
export interface WorkflowDesign {
|
|
75
|
+
nodes: WorkflowNode[];
|
|
76
|
+
links: WorkflowRoute[];
|
|
77
|
+
layoutJson?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface WorkflowInstance {
|
|
80
|
+
id: string;
|
|
81
|
+
moduleAlias: string;
|
|
82
|
+
recordId: string;
|
|
83
|
+
definitionTitle?: string;
|
|
84
|
+
versionNo?: number;
|
|
85
|
+
instanceStatus: string;
|
|
86
|
+
approvalStatus?: string;
|
|
87
|
+
currentNodeKeys?: string;
|
|
88
|
+
startedAt?: string;
|
|
89
|
+
startedBy?: string;
|
|
90
|
+
completedAt?: string;
|
|
91
|
+
semanticJson?: string;
|
|
92
|
+
layoutJson?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface WorkflowTask {
|
|
95
|
+
id: string;
|
|
96
|
+
nodeInstanceId?: string;
|
|
97
|
+
nodeKey?: string;
|
|
98
|
+
taskKind: string;
|
|
99
|
+
taskStatus: string;
|
|
100
|
+
assigneeId?: string;
|
|
101
|
+
assigneeTitle?: string;
|
|
102
|
+
originalAssigneeTitle?: string;
|
|
103
|
+
actualProcessUserTitle?: string;
|
|
104
|
+
processedByDelegation?: boolean;
|
|
105
|
+
originalAssigneeId?: string;
|
|
106
|
+
actualProcessorId?: string;
|
|
107
|
+
assignmentKind?: string;
|
|
108
|
+
decision?: string;
|
|
109
|
+
completedAt?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface WorkflowEvent {
|
|
112
|
+
messageText?: TextPresentation;
|
|
113
|
+
id: string;
|
|
114
|
+
taskId?: string;
|
|
115
|
+
eventType: string;
|
|
116
|
+
actionCode?: string;
|
|
117
|
+
nodeKey?: string;
|
|
118
|
+
operatorId?: string;
|
|
119
|
+
operatorTitle?: string;
|
|
120
|
+
reason?: string;
|
|
121
|
+
message?: string;
|
|
122
|
+
nodeInstanceId?: string;
|
|
123
|
+
occurredAt?: string;
|
|
124
|
+
eventText?: string;
|
|
125
|
+
payloadText?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface WorkflowAction {
|
|
128
|
+
actionCode: string;
|
|
129
|
+
title: string;
|
|
130
|
+
taskId?: string;
|
|
131
|
+
nodeKey?: string;
|
|
132
|
+
nodeTitle?: string;
|
|
133
|
+
reasonRequired: boolean;
|
|
134
|
+
targetAssigneeRequired?: boolean;
|
|
135
|
+
rejectReturnToMeSupported?: boolean;
|
|
136
|
+
rejectResubmitModes?: string[];
|
|
137
|
+
defaultRejectResubmitMode?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface WorkflowStatus {
|
|
140
|
+
canSubmit?: boolean;
|
|
141
|
+
displayStatus: string;
|
|
142
|
+
instanceId?: string;
|
|
143
|
+
errorMessage?: string;
|
|
144
|
+
errorMessageText?: TextPresentation;
|
|
145
|
+
definition?: {
|
|
146
|
+
definitionTitle?: string;
|
|
147
|
+
definitionAlias?: string;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export interface WorkflowRenderBundle {
|
|
151
|
+
instance: WorkflowInstance;
|
|
152
|
+
nodes: WorkflowNode[];
|
|
153
|
+
routes: WorkflowRoute[];
|
|
154
|
+
semanticJson?: string;
|
|
155
|
+
layoutJson?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface WorkflowSubmitPreview extends WorkflowRenderBundle {
|
|
158
|
+
definition?: WorkflowStatus['definition'];
|
|
159
|
+
tasks: WorkflowTask[];
|
|
160
|
+
taskViews?: WorkflowTask[];
|
|
161
|
+
}
|
|
162
|
+
export interface WorkflowBranch {
|
|
163
|
+
branchNodeKey: string;
|
|
164
|
+
branchTitle?: string;
|
|
165
|
+
selectionPending?: boolean;
|
|
166
|
+
selectorNodeKey?: string;
|
|
167
|
+
requireManualSelectionReason?: boolean;
|
|
168
|
+
candidates: Array<{
|
|
169
|
+
routeKey: string;
|
|
170
|
+
targetNodeKey: string;
|
|
171
|
+
routeStatus: string;
|
|
172
|
+
title?: string;
|
|
173
|
+
targetNodeTitle?: string;
|
|
174
|
+
defaultRoute?: boolean;
|
|
175
|
+
conditionMatched?: boolean;
|
|
176
|
+
recommended?: boolean;
|
|
177
|
+
}>;
|
|
178
|
+
}
|
|
179
|
+
export interface WorkflowWorkbenchCard {
|
|
180
|
+
nodeTitleText?: TextPresentation;
|
|
181
|
+
business?: {
|
|
182
|
+
title?: string;
|
|
183
|
+
moduleTitle?: string;
|
|
184
|
+
readable: boolean;
|
|
185
|
+
moduleTitleSource?: import('./index').TextReference;
|
|
186
|
+
moduleTitleText?: import('./index').TextPresentation;
|
|
187
|
+
};
|
|
188
|
+
instanceId: string;
|
|
189
|
+
moduleAlias: string;
|
|
190
|
+
recordId: string;
|
|
191
|
+
taskId?: string;
|
|
192
|
+
nodeTitle?: string;
|
|
193
|
+
taskStatus?: string;
|
|
194
|
+
approvalStatus?: string;
|
|
195
|
+
instanceStatus: string;
|
|
196
|
+
currentAssigneeTitles: string[];
|
|
197
|
+
submitterUserTitle?: string;
|
|
198
|
+
originalAssigneeTitle?: string;
|
|
199
|
+
assignmentKind?: string;
|
|
200
|
+
delegatedToUserTitle?: string;
|
|
201
|
+
overtimeStatus?: string;
|
|
202
|
+
startedAt?: string;
|
|
203
|
+
receivedAt?: string;
|
|
204
|
+
completedAt?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface WorkflowHistoryInstance {
|
|
207
|
+
moduleAlias: string;
|
|
208
|
+
recordId: string;
|
|
209
|
+
startedByTitle?: string;
|
|
210
|
+
id: string;
|
|
211
|
+
versionNo: number;
|
|
212
|
+
instanceStatus: string;
|
|
213
|
+
approvalStatus: string;
|
|
214
|
+
startedAt?: string;
|
|
215
|
+
archivedAt?: string;
|
|
216
|
+
lastActionReason?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface WorkflowWorkbenchFilters {
|
|
219
|
+
moduleAlias?: string;
|
|
220
|
+
submitterUserId?: string;
|
|
221
|
+
overtimeStatus?: string;
|
|
222
|
+
instanceStatus?: string;
|
|
223
|
+
taskStatus?: string;
|
|
224
|
+
receivedFrom?: string;
|
|
225
|
+
receivedTo?: string;
|
|
226
|
+
completedFrom?: string;
|
|
227
|
+
completedTo?: string;
|
|
228
|
+
}
|
|
229
|
+
export interface WorkflowTaskPreparation {
|
|
230
|
+
evaluation: {
|
|
231
|
+
passed: boolean;
|
|
232
|
+
failureMessage?: string;
|
|
233
|
+
failureCheckKey?: string;
|
|
234
|
+
failureMessageText?: TextPresentation;
|
|
235
|
+
/** Frozen configuration declarations remain available even when a check currently passes. */
|
|
236
|
+
checkTexts?: Array<{
|
|
237
|
+
checkKey: string;
|
|
238
|
+
title?: string;
|
|
239
|
+
titleText?: TextPresentation;
|
|
240
|
+
failureMessage?: string;
|
|
241
|
+
failureMessageText?: TextPresentation;
|
|
242
|
+
}>;
|
|
243
|
+
checkResults: Array<{
|
|
244
|
+
checkKey: string;
|
|
245
|
+
checkTitle?: string;
|
|
246
|
+
checkTitleText?: TextPresentation;
|
|
247
|
+
passed: boolean;
|
|
248
|
+
failureMessage?: string;
|
|
249
|
+
failureMessageText?: TextPresentation;
|
|
250
|
+
}>;
|
|
251
|
+
guides: Array<{
|
|
252
|
+
guideKey: string;
|
|
253
|
+
title?: string;
|
|
254
|
+
titleText?: TextPresentation;
|
|
255
|
+
instructionText?: TextPresentation;
|
|
256
|
+
guideKind: string;
|
|
257
|
+
guideConfigText?: string;
|
|
258
|
+
targetModuleAlias?: string;
|
|
259
|
+
targetActionCode?: string;
|
|
260
|
+
}>;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export interface WorkflowConfigurationCatalog {
|
|
264
|
+
tasks: {
|
|
265
|
+
id: string;
|
|
266
|
+
title: string;
|
|
267
|
+
}[];
|
|
268
|
+
queries: {
|
|
269
|
+
id: string;
|
|
270
|
+
title: string;
|
|
271
|
+
}[];
|
|
272
|
+
generations: {
|
|
273
|
+
id: string;
|
|
274
|
+
title: string;
|
|
275
|
+
targetModuleAlias: string;
|
|
276
|
+
}[];
|
|
277
|
+
associations: {
|
|
278
|
+
id: string;
|
|
279
|
+
title: string;
|
|
280
|
+
}[];
|
|
281
|
+
}
|
|
282
|
+
export interface WorkflowDefinitionSelection {
|
|
283
|
+
version: number;
|
|
284
|
+
title: string;
|
|
285
|
+
organizationId: string | null;
|
|
286
|
+
matchExpression: string | null;
|
|
287
|
+
matchPriority: number;
|
|
288
|
+
defaultDefinition: boolean;
|
|
289
|
+
}
|
|
290
|
+
export interface WorkflowDefinitionCreate extends Omit<WorkflowDefinitionSelection, 'version'> {
|
|
291
|
+
alias: string;
|
|
292
|
+
approvalEnabled: boolean;
|
|
293
|
+
enabled: boolean;
|
|
294
|
+
}
|
|
295
|
+
export interface WorkflowAdminInstance {
|
|
296
|
+
instanceId: string;
|
|
297
|
+
moduleAlias: string;
|
|
298
|
+
recordId: string;
|
|
299
|
+
versionNo: number;
|
|
300
|
+
instanceStatus: string;
|
|
301
|
+
approvalStatus: string;
|
|
302
|
+
startedByTitle?: string;
|
|
303
|
+
activeNodeTitles: string[];
|
|
304
|
+
workflowVersionId?: string;
|
|
305
|
+
activeNodeLabels?: {
|
|
306
|
+
nodeKey: string;
|
|
307
|
+
title: string;
|
|
308
|
+
addedByAddSign: boolean;
|
|
309
|
+
titleText?: TextPresentation;
|
|
310
|
+
}[];
|
|
311
|
+
currentAssigneeTitles: string[];
|
|
312
|
+
overtimeStatus?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface WorkflowAdminTask {
|
|
315
|
+
taskId: string;
|
|
316
|
+
nodeKey?: string;
|
|
317
|
+
nodeInstanceId?: string;
|
|
318
|
+
workflowVersionId?: string;
|
|
319
|
+
nodeTitleText?: TextPresentation;
|
|
320
|
+
nodeTitle: string;
|
|
321
|
+
assigneeTitle?: string;
|
|
322
|
+
taskKind: string;
|
|
323
|
+
canForceApprove: boolean;
|
|
324
|
+
}
|
|
325
|
+
export interface WorkflowAdminInstanceQuery {
|
|
326
|
+
moduleAlias?: string;
|
|
327
|
+
recordId?: string;
|
|
328
|
+
starterId?: string;
|
|
329
|
+
instanceStatus?: string;
|
|
330
|
+
approvalStatus?: string;
|
|
331
|
+
currentAssigneeId?: string;
|
|
332
|
+
overtimeStatus?: string;
|
|
333
|
+
page: {
|
|
334
|
+
pageNum: number;
|
|
335
|
+
pageSize: number;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
export interface WorkflowAdminHistoryQuery {
|
|
339
|
+
moduleAlias?: string;
|
|
340
|
+
recordId?: string;
|
|
341
|
+
startedBy?: string;
|
|
342
|
+
page: {
|
|
343
|
+
pageNum: number;
|
|
344
|
+
pageSize: number;
|
|
345
|
+
};
|
|
346
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { TextReference } from '../web-contracts/index';
|
|
1
2
|
import { webDataChangeTypes, type WebActionResultEnvelope, type WebDataChange } from '../web-contracts/index';
|
|
2
3
|
export interface ResolvedWebActionResult {
|
|
3
4
|
message: string;
|
|
4
5
|
messageCode?: string;
|
|
6
|
+
messageArgs?: Record<string, unknown>;
|
|
7
|
+
messageSource?: TextReference;
|
|
5
8
|
messageType?: string;
|
|
6
9
|
resultType?: string;
|
|
7
10
|
changeSetId?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type LanguageContext } from './language';
|
|
1
2
|
import type { OperationReceiptReference, OperationPresentation } from '../web-contracts/index';
|
|
2
3
|
import { type OperationProposal, type OperationConfirmation } from './operationConfirmation';
|
|
3
4
|
export { OperationRejectedError as AssistantOperationRejectedError } from './operationConfirmation';
|
|
@@ -18,6 +19,6 @@ export interface AssistantOperationConfirmation extends OperationConfirmation {
|
|
|
18
19
|
readonly continuationIsCurrent?: () => boolean;
|
|
19
20
|
takeContinuation(): string | undefined;
|
|
20
21
|
}
|
|
21
|
-
export declare function createAssistantOperationConfirmation(proposal: AssistantOperationProposal, scopeIsCurrent: () => boolean, now?: () => number): AssistantOperationConfirmation;
|
|
22
|
+
export declare function createAssistantOperationConfirmation(proposal: AssistantOperationProposal, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext): AssistantOperationConfirmation;
|
|
22
23
|
/** Recovered results have no execute path, expiry renewal, or automatic continuation. */
|
|
23
|
-
export declare function restoreAssistantOperationReceipt(reference: OperationReceiptReference, lookup: () => Promise<OperationPresentation | undefined>, scopeIsCurrent: () => boolean): AssistantOperationConfirmation;
|
|
24
|
+
export declare function restoreAssistantOperationReceipt(reference: OperationReceiptReference, lookup: () => Promise<OperationPresentation | undefined>, scopeIsCurrent: () => boolean, language?: LanguageContext): AssistantOperationConfirmation;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { OperationReceiptReference, OperationPresentation } from '../web-contracts/index';
|
|
2
2
|
import type { HttpClient } from './http';
|
|
3
3
|
import type { AssistantConversationMessage } from '../web-contracts/index';
|
|
4
|
+
/** Display-only CODE text; never model history, command inputs or proof of execution. */
|
|
5
|
+
export type AssistantControlText = {
|
|
6
|
+
source: import('../web-contracts/index').TextReference;
|
|
7
|
+
args?: Record<string, string | number | boolean | null | AssistantControlText>;
|
|
8
|
+
} | {
|
|
9
|
+
parts: Array<string | AssistantControlText>;
|
|
10
|
+
};
|
|
4
11
|
export interface AssistantConfigurationTask {
|
|
5
12
|
goal: string;
|
|
6
13
|
mode: 'conversation' | 'visual';
|
|
@@ -13,6 +20,7 @@ export interface AssistantConversationContent {
|
|
|
13
20
|
messages: Array<{
|
|
14
21
|
role: 'user' | 'assistant' | 'status';
|
|
15
22
|
text: string;
|
|
23
|
+
controlText?: AssistantControlText;
|
|
16
24
|
operationReceipt?: {
|
|
17
25
|
reference: OperationReceiptReference;
|
|
18
26
|
executionScopeKey: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type LanguageContext } from './language';
|
|
1
2
|
import { type AssistantOperationProposal, type AssistantOperationConfirmation } from './assistantConfirmation';
|
|
2
3
|
import type { AssistantCapabilityCall, AssistantResultPresentation, AssistantCapabilityDescriptor, AssistantSurfaceContext, AssistantTurnInput, AssistantTurnOutput } from '../web-contracts/index';
|
|
3
4
|
import type { AssistantTurnProgress } from './assistantTurnClient';
|
|
@@ -143,10 +144,10 @@ export declare function useAssistantSurfaceHost(): AssistantSurfaceHost | undefi
|
|
|
143
144
|
export declare class StaleAssistantInvocationError extends Error {
|
|
144
145
|
constructor();
|
|
145
146
|
}
|
|
146
|
-
import { OperationUsageError } from './operationErrors';
|
|
147
|
+
import { OperationUsageError, type OperationErrorMessage } from './operationErrors';
|
|
147
148
|
/** Preserves the public assistant error contract at the adapter boundary. */
|
|
148
149
|
export declare class AssistantCapabilityUsageError extends OperationUsageError {
|
|
149
|
-
constructor(message: string, code?: OperationUsageError['code']);
|
|
150
|
+
constructor(message: string | OperationErrorMessage, code?: OperationUsageError['code']);
|
|
150
151
|
}
|
|
151
152
|
/** An effect started before interruption. Contains no business output from an obsolete scope. */
|
|
152
153
|
export declare class AssistantEffectInterruptedError extends Error {
|
|
@@ -157,6 +158,6 @@ export declare class AssistantEffectInterruptedError extends Error {
|
|
|
157
158
|
export declare function createAssistantSurfaceRegistry(identityScope?: () => string, workspaceContext?: () => {
|
|
158
159
|
revision: string;
|
|
159
160
|
facts: Record<string, unknown>;
|
|
160
|
-
}): AssistantSurfaceRegistry;
|
|
161
|
+
}, language?: LanguageContext): AssistantSurfaceRegistry;
|
|
161
162
|
/** Compares page identity and revisions, independently of object property order. */
|
|
162
163
|
export declare function sameAssistantInvocationToken(left: AssistantInvocationToken | undefined, right: AssistantInvocationToken | undefined): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type LanguageContext } from './language';
|
|
2
|
+
import type { TextPresentation, WebActionMessage } from '../web-contracts/index';
|
|
2
3
|
export interface ErrorTarget {
|
|
3
4
|
kind?: string;
|
|
4
5
|
moduleAlias?: string;
|
|
@@ -35,6 +36,7 @@ export declare const platformErrorCodes: {
|
|
|
35
36
|
readonly resourceNotFound: "RESOURCE_NOT_FOUND";
|
|
36
37
|
readonly resourceSoftDeletedConflict: "RESOURCE_SOFT_DELETED_CONFLICT";
|
|
37
38
|
readonly configMissing: "CONFIG_MISSING";
|
|
39
|
+
readonly querySchemaUnsupported: "QUERY_SCHEMA_UNSUPPORTED";
|
|
38
40
|
readonly internalError: "INTERNAL_ERROR";
|
|
39
41
|
};
|
|
40
42
|
export type PlatformErrorCode = (typeof platformErrorCodes)[keyof typeof platformErrorCodes] | (string & {});
|
|
@@ -47,6 +49,7 @@ export declare class AppError extends Error {
|
|
|
47
49
|
readonly details?: Record<string, unknown>;
|
|
48
50
|
readonly messageArgs?: Record<string, unknown>;
|
|
49
51
|
readonly actionMessage?: WebActionMessage;
|
|
52
|
+
readonly messageText?: TextPresentation;
|
|
50
53
|
globallyHandled: boolean;
|
|
51
54
|
constructor(message: string, options?: {
|
|
52
55
|
code?: PlatformErrorCode;
|
|
@@ -57,11 +60,12 @@ export declare class AppError extends Error {
|
|
|
57
60
|
details?: Record<string, unknown>;
|
|
58
61
|
messageArgs?: Record<string, unknown>;
|
|
59
62
|
actionMessage?: WebActionMessage;
|
|
63
|
+
messageText?: TextPresentation;
|
|
60
64
|
});
|
|
61
65
|
}
|
|
62
66
|
export declare function normalizeError(error: unknown): AppError;
|
|
63
|
-
export declare function resolveGlobalErrorPresentation(error: AppError, context?: ErrorUiContext): GlobalErrorPresentation;
|
|
64
|
-
export declare function userFacingErrorMessage(error: AppError): string;
|
|
67
|
+
export declare function resolveGlobalErrorPresentation(error: AppError, context?: ErrorUiContext, language?: LanguageContext): GlobalErrorPresentation;
|
|
68
|
+
export declare function userFacingErrorMessage(error: AppError, language?: LanguageContext): string;
|
|
65
69
|
/** Fixed explanations for known model failures; never expose arbitrary upstream 5xx text. */
|
|
66
|
-
export declare function modelFailureMessage(error: AppError): string | undefined;
|
|
70
|
+
export declare function modelFailureMessage(error: AppError, language?: LanguageContext): string | undefined;
|
|
67
71
|
export declare function isUnexpectedPlatformError(error: AppError): boolean;
|
|
@@ -22,3 +22,9 @@ export * from './operationConfirmation';
|
|
|
22
22
|
export * from './operationErrors';
|
|
23
23
|
export * from './operationReceipt';
|
|
24
24
|
export * from './uuid';
|
|
25
|
+
export { createWorkflowClient, createWorkflowDefinitionClient, createWorkflowAdminClient, refreshWorkflowRecordActions, } from './workflow';
|
|
26
|
+
export { provideWorkspaceUnsavedStateRegistrar, useWorkspaceViewUnsavedState } from './workspaceUnsavedState';
|
|
27
|
+
export type { WorkspaceUnsavedStateRegistrar } from './workspaceUnsavedState';
|
|
28
|
+
export * from './language';
|
|
29
|
+
export * from './languagePreference';
|
|
30
|
+
export * from './presentationTexts';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { TextReference } from '../web-contracts/index';
|
|
2
|
+
import { type ComputedRef } from 'vue';
|
|
3
|
+
import { type HttpClient, type StreamingHttpClient } from './http';
|
|
4
|
+
export interface LanguageDefinition {
|
|
5
|
+
readonly tag: string;
|
|
6
|
+
readonly nativeName: string;
|
|
7
|
+
readonly fallbackTag?: string | null;
|
|
8
|
+
readonly direction: 'ltr' | 'rtl';
|
|
9
|
+
readonly enabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface LanguageCatalog {
|
|
12
|
+
readonly defaultTag: string;
|
|
13
|
+
languages: readonly LanguageDefinition[];
|
|
14
|
+
}
|
|
15
|
+
export interface TextResolution {
|
|
16
|
+
text: string;
|
|
17
|
+
requestedTag: string;
|
|
18
|
+
resourceTag?: string;
|
|
19
|
+
missing: boolean;
|
|
20
|
+
fallback: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface LanguageContext {
|
|
23
|
+
readonly catalog: ComputedRef<LanguageCatalog>;
|
|
24
|
+
readonly languageTag: ComputedRef<string>;
|
|
25
|
+
readonly requestedLanguageTag: ComputedRef<string | undefined>;
|
|
26
|
+
readonly revision: ComputedRef<number>;
|
|
27
|
+
readonly selectionRevision: ComputedRef<number>;
|
|
28
|
+
readonly fallbackLanguageTags: ComputedRef<readonly string[]>;
|
|
29
|
+
readonly language: ComputedRef<LanguageDefinition>;
|
|
30
|
+
setLanguage(tag?: string): void;
|
|
31
|
+
setCatalog(catalog: LanguageCatalog): void;
|
|
32
|
+
registerResources(tag: string, messages: Record<string, string>): void;
|
|
33
|
+
resolve(key: string, defaultText?: string, args?: Record<string, unknown>): TextResolution;
|
|
34
|
+
/** Resolve registered resources without changing selection, including disabled fallback locales. */
|
|
35
|
+
resolveForLanguage(tag: string, key: string, defaultText?: string, args?: Record<string, unknown>): TextResolution;
|
|
36
|
+
t(key: string, defaultText?: string, args?: Record<string, unknown>): string;
|
|
37
|
+
}
|
|
38
|
+
/** Platform-owned CODE originals, independent of the selected or deployed default language. */
|
|
39
|
+
export declare function platformCodeTextOriginal(key: string): string | undefined;
|
|
40
|
+
/** Immutable CODE source facts belong to the platform resource producer, never to a consumer locale. */
|
|
41
|
+
export declare function platformCodeTextReference(key: string): TextReference | undefined;
|
|
42
|
+
/** Compare a declared source with the actual original, including its content version. */
|
|
43
|
+
export declare function textReferenceMatchesOriginal(source: TextReference, original: string): boolean;
|
|
44
|
+
export declare function createLanguageContext(options?: {
|
|
45
|
+
catalog?: LanguageCatalog;
|
|
46
|
+
languageTag?: string;
|
|
47
|
+
resources?: Record<string, Record<string, string>>;
|
|
48
|
+
}): LanguageContext;
|
|
49
|
+
export declare const platformLanguageContext: LanguageContext;
|
|
50
|
+
export declare function provideLanguageContext(context: LanguageContext): void;
|
|
51
|
+
export declare function useLanguageContext(): LanguageContext;
|
|
52
|
+
export declare function withLanguageContext(client: StreamingHttpClient, context: LanguageContext): StreamingHttpClient;
|
|
53
|
+
export declare function withLanguageContext(client: HttpClient, context: LanguageContext): HttpClient;
|
|
54
|
+
export declare function loadLanguageCatalog(http: HttpClient, context: LanguageContext): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LanguageContext } from './language';
|
|
2
|
+
import { type UserPreferenceStore } from './userPreferences';
|
|
3
|
+
/** Scope changes and user selection invalidate delayed restores; queued writes never cross accounts. */
|
|
4
|
+
export declare function createLanguagePreferenceController(context: LanguageContext, store?: UserPreferenceStore): {
|
|
5
|
+
restore(identity?: string): Promise<void>;
|
|
6
|
+
save(tag: string): Promise<void>;
|
|
7
|
+
dispose(): void;
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClient } from '../http';
|
|
2
|
-
import type { WebQueryRequest } from '../../web-contracts/index';
|
|
2
|
+
import type { TextPresentation, WebQueryRequest } from '../../web-contracts/index';
|
|
3
3
|
export type ImportDuplicateStrategy = 'ERROR' | 'SKIP' | 'OVERWRITE';
|
|
4
4
|
export interface ImportSheet {
|
|
5
5
|
sheetName: string;
|
|
@@ -40,6 +40,7 @@ export interface ImportExecutionResult {
|
|
|
40
40
|
}>;
|
|
41
41
|
partialSuccess: boolean;
|
|
42
42
|
message: string;
|
|
43
|
+
messageText?: TextPresentation;
|
|
43
44
|
errorFileName?: string;
|
|
44
45
|
errorFileToken?: string;
|
|
45
46
|
}
|
|
@@ -3,6 +3,7 @@ import type { HttpClient } from '../http';
|
|
|
3
3
|
import { type ModuleAbilities } from './abilities';
|
|
4
4
|
import { type ModuleActionState, type ModuleRecordActionAvailability, type ModuleRuntimeAction, type ModuleRuntimeContextState } from './runtimeContext';
|
|
5
5
|
import { type NavigatorReferenceRequestContext, type ModuleCrudClient, type ModuleTreeClient } from './staticModuleClient';
|
|
6
|
+
import { type LanguageContext } from '../language';
|
|
6
7
|
export interface ModuleContext<TRecord> {
|
|
7
8
|
moduleAlias: string;
|
|
8
9
|
http: HttpClient;
|
|
@@ -21,6 +22,7 @@ export interface ModuleTreeContext<TRecord> extends ModuleContext<TRecord> {
|
|
|
21
22
|
tree: ModuleTreeClient<TRecord>;
|
|
22
23
|
}
|
|
23
24
|
export interface ModuleContextConfig {
|
|
25
|
+
language?: LanguageContext;
|
|
24
26
|
http?: HttpClient;
|
|
25
27
|
httpFactory?: () => HttpClient;
|
|
26
28
|
}
|
|
@@ -31,6 +33,8 @@ export interface ModuleContextOptions extends ModuleContextConfig {
|
|
|
31
33
|
}
|
|
32
34
|
export declare function configureModuleContext(config: ModuleContextConfig): void;
|
|
33
35
|
export declare function provideModuleContextConfig(config: ModuleContextConfig): void;
|
|
36
|
+
/** Auxiliary module APIs share the owner's transport without loading another module runtime. */
|
|
37
|
+
export declare function useModuleHttpClient(): HttpClient;
|
|
34
38
|
export declare function createModuleContext<TRecord>(options: ModuleContextOptions): ModuleContext<TRecord>;
|
|
35
39
|
export declare function createModuleTreeContext<TRecord>(options: ModuleContextOptions): ModuleTreeContext<TRecord>;
|
|
36
40
|
export declare function useModuleContext<TRecord>(options?: Partial<ModuleContextOptions>): ModuleContext<TRecord>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type LanguageContext } from '../language';
|
|
1
2
|
/** Shared interaction vocabulary for page design and business rendering. */
|
|
2
3
|
export declare function pageActionIntent(code: string, anchor: string): {
|
|
3
4
|
operation: string;
|
|
@@ -8,7 +9,7 @@ export declare function pageActionEntryTitle(entry: {
|
|
|
8
9
|
actionCode: string;
|
|
9
10
|
anchor: string;
|
|
10
11
|
title?: string;
|
|
11
|
-
}): string;
|
|
12
|
+
}, language?: LanguageContext): string;
|
|
12
13
|
export declare function pageActionEntryVisible(entry: {
|
|
13
14
|
actionCode: string;
|
|
14
15
|
anchor: string;
|
|
@@ -18,4 +19,4 @@ export declare function pageActionEntryVisible(entry: {
|
|
|
18
19
|
export declare function pageActionEntryDescription(entry: {
|
|
19
20
|
actionCode: string;
|
|
20
21
|
anchor: string;
|
|
21
|
-
}): string;
|
|
22
|
+
}, language?: LanguageContext): string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type LanguageContext } from '../language';
|
|
2
|
+
import type { TextPresentationDocument } from '../../web-contracts/index';
|
|
1
3
|
import type { PageActionInvocation, ResolvedModuleUiDescriptor } from '../../web-contracts/index';
|
|
2
4
|
import { type AppError } from '../errors';
|
|
3
5
|
import type { HttpClient } from '../http';
|
|
@@ -9,6 +11,7 @@ export interface ModuleRuntimeAction {
|
|
|
9
11
|
actionCode: string;
|
|
10
12
|
permissionActionCode?: string;
|
|
11
13
|
title?: string;
|
|
14
|
+
titleSource?: import('../../web-contracts/index').TextReference;
|
|
12
15
|
actionLevel?: 'DEFAULT' | 'LIST' | 'RECORD' | 'BATCH' | 'ANY';
|
|
13
16
|
category?: string;
|
|
14
17
|
accessMode?: 'AUTH_REQUIRED' | 'LOGIN_REQUIRED' | 'ANONYMOUS_ALLOWED';
|
|
@@ -38,11 +41,13 @@ export interface ModuleRecordActionDecision {
|
|
|
38
41
|
actionCode: string;
|
|
39
42
|
available: boolean;
|
|
40
43
|
reason?: string;
|
|
44
|
+
reasonText?: import('../../web-contracts/index').TextPresentation;
|
|
41
45
|
}
|
|
42
|
-
export interface ModuleRuntimeContext {
|
|
46
|
+
export interface ModuleRuntimeContext extends TextPresentationDocument {
|
|
43
47
|
moduleAlias: string;
|
|
44
48
|
tenantRequired?: boolean;
|
|
45
49
|
title?: string;
|
|
50
|
+
titleSource?: import('../../web-contracts/index').TextReference;
|
|
46
51
|
/** Stable wire code of the registered module kind. */
|
|
47
52
|
moduleKind?: 'static' | 'dynamic';
|
|
48
53
|
entryType?: 'module' | 'route' | 'link';
|
|
@@ -60,9 +65,13 @@ export interface ModuleRuntimeContextState {
|
|
|
60
65
|
ready: Promise<ModuleRuntimeContext>;
|
|
61
66
|
load(): Promise<ModuleRuntimeContext>;
|
|
62
67
|
snapshot(): ModuleRuntimeContext | undefined;
|
|
68
|
+
presentationSnapshot?(): ModuleRuntimeContext | undefined;
|
|
69
|
+
/** Refresh only matching source translations; retain execution facts and active drafts. */
|
|
70
|
+
refreshTexts?(): Promise<void>;
|
|
63
71
|
error(): AppError | undefined;
|
|
64
72
|
hasAbility(ability: ModuleAbilityCode | string): boolean | undefined;
|
|
65
73
|
action(actionCode: string, recordId?: string): ModuleActionState | undefined;
|
|
74
|
+
/** Action titles follow this display scope; snapshot() retains producer originals. */
|
|
66
75
|
runtimeAction(actionCode: string): ModuleRuntimeAction | undefined;
|
|
67
76
|
can(actionCode: string, recordId?: string): boolean | undefined;
|
|
68
77
|
recordActions(recordId: string): Promise<ModuleRecordActionAvailability>;
|
|
@@ -70,5 +79,9 @@ export interface ModuleRuntimeContextState {
|
|
|
70
79
|
recordActionsSnapshot(recordId: string): ModuleRecordActionAvailability | undefined;
|
|
71
80
|
invalidateRecordActions?(recordIds?: string[]): void;
|
|
72
81
|
}
|
|
73
|
-
export declare function createModuleRuntimeContextState(http: HttpClient, moduleAlias: string, access?: 'MENU' | 'REFERENCE' | 'VIEW'): ModuleRuntimeContextState;
|
|
82
|
+
export declare function createModuleRuntimeContextState(http: HttpClient, moduleAlias: string, access?: 'MENU' | 'REFERENCE' | 'VIEW', language?: LanguageContext): ModuleRuntimeContextState;
|
|
83
|
+
/** A language view shares transport, authorization and retained record decisions with its owner. */
|
|
84
|
+
export declare function scopeModuleRuntimeLanguage(context: ModuleRuntimeContextState, language: LanguageContext, access?: Pick<ModuleRuntimeContextState, 'action' | 'runtimeAction'>): ModuleRuntimeContextState;
|
|
74
85
|
export declare function isRuntimeAbilityAvailable(context: ModuleRuntimeContext | undefined, ability: ModuleAbilityCode): boolean;
|
|
86
|
+
/** UI consumers use a disposable display projection; execution and identity consumers keep snapshot(). */
|
|
87
|
+
export declare function displayModuleRuntime(runtime: ModuleRuntimeContextState): ModuleRuntimeContext | undefined;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type LanguageContext } from './language';
|
|
2
|
+
import { type OperationErrorMessage } from './operationErrors';
|
|
1
3
|
import type { OperationPresentation, OperationReceiptReference } from '../web-contracts/index';
|
|
2
4
|
/** Captured platform command. The caller owns the candidate and execution scope. */
|
|
3
5
|
export interface OperationProposal {
|
|
@@ -14,6 +16,8 @@ export interface OperationProposal {
|
|
|
14
16
|
export type OperationConfirmationState = 'pending' | 'executing' | 'checking' | 'succeeded' | 'unknown' | 'cancelled' | 'expired' | 'rejected';
|
|
15
17
|
/** Adapter proof that no persistent operation was accepted (validation or authorization rejection). */
|
|
16
18
|
export declare class OperationRejectedError extends Error {
|
|
19
|
+
readonly textMessage?: OperationErrorMessage;
|
|
20
|
+
constructor(message?: string | OperationErrorMessage, options?: ErrorOptions);
|
|
17
21
|
}
|
|
18
22
|
export interface OperationConfirmation {
|
|
19
23
|
readonly confirmLabel: string;
|
|
@@ -25,4 +29,4 @@ export interface OperationConfirmation {
|
|
|
25
29
|
cancel(): void;
|
|
26
30
|
}
|
|
27
31
|
/** Explicit confirmation, duplicate-click protection and read-only recovery of uncertain writes. */
|
|
28
|
-
export declare function createOperationConfirmation(proposal: OperationProposal, scopeIsCurrent: () => boolean, now?: () => number): OperationConfirmation;
|
|
32
|
+
export declare function createOperationConfirmation(proposal: OperationProposal, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext): OperationConfirmation;
|