@ximatai/muyun-web-app 0.26.14 → 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-DsqR_Sj7.js +34098 -0
- 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 +920 -738
- package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +667 -0
- package/dist/platform-components-Cl5ZZiuU.js +27139 -0
- package/dist/platform-workbench-CAHoriIf.js +20245 -0
- 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 +2 -2
- 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/useWorkbenchMenuRefresh.d.ts +4 -0
- package/dist/types/app/workbenchMenuRefresh.d.ts +14 -0
- package/dist/types/app/workbenchStartup.d.ts +8 -4
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -3
- package/dist/types/consumer/index.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +4 -4
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +464 -1240
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +859 -1566
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +20 -3
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +7 -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/PageNavigatorExplorer.vue.d.ts +7 -5
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +1 -1
- 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 +2 -2
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +15 -1217
- package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +13 -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 +18 -0
- package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +63 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +60 -0
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +36 -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 +13 -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 +246 -1227
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +13 -0
- package/dist/types/formula/FormulaRuntime.d.ts +3 -1
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +6 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -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 +8 -4
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +6 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +65 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +189 -0
- 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-admin-runtime/workspaceViewSessions.d.ts +1 -1
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +34 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +7 -11
- 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 +4 -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/ManagementPanelHeader.vue.d.ts +6 -4
- package/dist/types/platform-components/ManagementTabs.vue.d.ts +20 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -0
- 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/RecordExplorerPanel.vue.d.ts +15 -9
- package/dist/types/platform-components/RecordExplorerTools.vue.d.ts +27 -0
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +6 -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 +6 -6
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +3 -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 +3 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +7 -7
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +3 -3
- package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +1 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +5 -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/StaticManagementLayout.vue.d.ts +2 -0
- 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 +15 -4
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- 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/queryNumericValue.d.ts +3 -0
- 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 +4 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +23 -1
- package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -1
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +6 -1
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +19 -2
- package/dist/types/platform-components/recordQueryListStandardQuery.d.ts +3 -0
- package/dist/types/platform-components/recycleBinState.d.ts +20 -2
- package/dist/types/platform-components/referencePickerModel.d.ts +9 -0
- 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/ConstructionPlanCard.vue.d.ts +8 -0
- package/dist/types/platform-workbench/LanguageSelector.vue.d.ts +6 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +9 -4
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +7 -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 +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 +22 -0
- package/dist/types/platform-workbench/constructionPlanSession.d.ts +103 -0
- package/dist/types/platform-workbench/constructionPresentation.d.ts +6 -0
- package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +3 -0
- 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 +452 -0
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +40 -0
- package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -5
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +21 -1
- 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 +7 -5
- 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/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 +7 -0
- package/dist/types/views/businessRuleEditor.d.ts +23 -0
- package/dist/types/views/businessRuleGovernance.d.ts +20 -4
- package/dist/types/views/businessRuleSession.d.ts +64 -0
- package/dist/types/views/businessRuleWorkspace.d.ts +148 -0
- package/dist/types/views/configurationEditorNavigation.d.ts +3 -0
- 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 +11 -0
- package/dist/types/views/metadataEditorSession.d.ts +658 -0
- package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +2 -120
- package/dist/types/views/metadataGovernanceEditor.d.ts +224 -0
- package/dist/types/views/metadataModelEditSession.d.ts +29 -3
- package/dist/types/views/metadataModelTree.d.ts +2 -1
- package/dist/types/views/metadataNaming.d.ts +10 -1
- package/dist/types/views/metadataOrchestrationState.d.ts +32 -9
- package/dist/types/views/metadataSourceTree.d.ts +3 -2
- package/dist/types/views/metadataWorkspace.d.ts +1323 -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 +29 -0
- package/dist/types/views/pageCompositionCandidate.d.ts +48 -0
- package/dist/types/views/pageCompositionComponents.d.ts +43 -0
- package/dist/types/views/pageCompositionDraftState.d.ts +297 -14
- package/dist/types/views/pageCompositionDragPayload.d.ts +7 -1
- package/dist/types/views/pageCompositionMode.d.ts +27 -3
- package/dist/types/views/pageCompositionPlacement.d.ts +6 -1
- package/dist/types/views/pageCompositionPublication.d.ts +39 -0
- package/dist/types/views/pageCompositionSession.d.ts +1374 -0
- package/dist/types/views/pageCompositionWorkspace.d.ts +2616 -0
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/runtimeLogClient.d.ts +2 -2
- package/dist/types/views/usePageCompositionComponents.d.ts +69 -0
- 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/UiInput.vue.d.ts +1 -0
- 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 +3 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +3 -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 +9 -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 +3 -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 +6 -0
- package/dist/types/web-contracts/assistant.d.ts +29 -1
- package/dist/types/web-contracts/constructionPlan.d.ts +213 -0
- package/dist/types/web-contracts/index.d.ts +78 -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-contracts/workflow.d.ts +346 -0
- package/dist/types/web-core/actionResult.d.ts +3 -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 +24 -0
- package/dist/types/web-core/assistantConversationClient.d.ts +50 -0
- package/dist/types/web-core/assistantRuntime.d.ts +53 -7
- package/dist/types/web-core/assistantSurface.d.ts +80 -9
- package/dist/types/web-core/assistantTurnClient.d.ts +9 -1
- package/dist/types/web-core/constructionPlanClient.d.ts +55 -0
- package/dist/types/web-core/errors.d.ts +9 -3
- package/dist/types/web-core/http.d.ts +1 -0
- package/dist/types/web-core/index.d.ts +14 -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 +54 -0
- package/dist/types/web-core/module/index.d.ts +2 -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/module/staticModuleClient.d.ts +12 -2
- package/dist/types/web-core/operationConfirmation.d.ts +32 -0
- package/dist/types/web-core/operationErrors.d.ts +23 -0
- package/dist/types/web-core/operationReceipt.d.ts +10 -0
- 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/uuid.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-BUg5WTm-.js +0 -16
- package/dist/BusinessLogListDrawer-BOTE_7aT.js +0 -825
- package/dist/LoginAuditLogView-DBNtvmIy.js +0 -16
- package/dist/ModuleActionManagementView-Bq1VO51Y.js +0 -673
- package/dist/ModuleGovernanceView-B8u4_erd.js +0 -29344
- package/dist/RequestErrorLogView-BrtH3ptj.js +0 -16
- package/dist/RoleDetailWorkspaceView-6LW3tLA1.js +0 -1397
- package/dist/RuntimeLogView-s3X5CdHB.js +0 -297
- package/dist/moduleGovernanceWorkspaceView-BRgJbUjJ.js +0 -40
- package/dist/platform-components-Dt859Hbr.js +0 -18627
- package/dist/platform-workbench-DfqFnlm-.js +0 -14701
- package/dist/rolldown-runtime-DPVXH0ON.js +0 -17
- package/dist/sse-mGbuCAax.js +0 -187
- package/dist/workspaceViews-DijY4n32.js +0 -3623
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type LanguageContext } from './language';
|
|
2
|
+
import { type AssistantOperationProposal, type AssistantOperationConfirmation } from './assistantConfirmation';
|
|
3
|
+
import type { AssistantCapabilityCall, AssistantResultPresentation, AssistantCapabilityDescriptor, AssistantSurfaceContext, AssistantTurnInput, AssistantTurnOutput } from '../web-contracts/index';
|
|
2
4
|
import type { AssistantTurnProgress } from './assistantTurnClient';
|
|
3
5
|
export interface AssistantCapability<TInput = unknown, TOutput = unknown> {
|
|
4
6
|
descriptor: AssistantCapabilityDescriptor;
|
|
7
|
+
/** Trusted adapter hint for a small current-surface schema set; never execution authority. */
|
|
8
|
+
schemaDiscovery?: 'eager';
|
|
9
|
+
/** Trusted implementation effect boundary; read capabilities cannot mutate the page. */
|
|
10
|
+
effect: 'read' | 'page' | 'draft' | 'configuration-draft';
|
|
11
|
+
/** Descriptive boundary for reads that replace selection/candidate state; never authority. */
|
|
12
|
+
changesReadState?: boolean;
|
|
13
|
+
present?(output: TOutput): AssistantResultPresentation;
|
|
14
|
+
propose?(output: TOutput): AssistantOperationProposal;
|
|
5
15
|
parseInput(input: unknown): TInput;
|
|
6
16
|
execute(input: TInput, context: AssistantCapabilityExecutionContext): Promise<TOutput>;
|
|
7
17
|
}
|
|
@@ -15,18 +25,25 @@ export interface AssistantCapabilityExecutionContext {
|
|
|
15
25
|
/** Commit invocation-local guarded state without claiming a user-visible page effect. */
|
|
16
26
|
commitInternalState<T>(commit: () => T): T;
|
|
17
27
|
/**
|
|
18
|
-
*
|
|
28
|
+
* Synchronously commit a page effect, retaining its scope while background work settles.
|
|
29
|
+
* Async preparation belongs before this call; background completion belongs in settle.
|
|
19
30
|
* Navigation adapters may return the token of an explicitly validated replacement surface.
|
|
20
31
|
*/
|
|
21
|
-
applyEffect<T>(effect: () => T, settle?: () => Promise<void | AssistantInvocationToken>): T;
|
|
32
|
+
applyEffect<T>(effect: () => T extends PromiseLike<unknown> ? never : T, settle?: () => Promise<void | AssistantInvocationToken>): T;
|
|
22
33
|
}
|
|
23
34
|
export interface AssistantSurface {
|
|
24
35
|
describe(): AssistantSurfaceContext;
|
|
36
|
+
/** Authorized display facts only: no extra queries, execution inputs, IDs or authority. */
|
|
37
|
+
observationSummary?(): string | undefined;
|
|
25
38
|
capabilities(): AssistantCapability[];
|
|
26
39
|
requestTurn(input: AssistantTurnInput, signal: AbortSignal, progress?: AssistantTurnProgress): Promise<AssistantTurnOutput>;
|
|
27
40
|
}
|
|
28
41
|
export interface AssistantSurfaceRegistration {
|
|
29
42
|
pageInstanceKey: string;
|
|
43
|
+
/** Opaque execution-data boundary, never sent to the model. */
|
|
44
|
+
executionScopeKey?(): string;
|
|
45
|
+
/** A fallback awaiting its real page transport must not issue model requests. */
|
|
46
|
+
executionScopePending?: boolean;
|
|
30
47
|
fallback?: boolean;
|
|
31
48
|
/**
|
|
32
49
|
* Waits for background page transitions to finish before the model receives a
|
|
@@ -42,8 +59,13 @@ export interface AssistantSurfaceRegistration {
|
|
|
42
59
|
surface: AssistantSurface;
|
|
43
60
|
}
|
|
44
61
|
export interface AssistantInvocationToken {
|
|
62
|
+
identityScopeKey?: string;
|
|
63
|
+
executionScopePending?: boolean;
|
|
64
|
+
executionScopeKey?: string;
|
|
45
65
|
pageInstanceKey: string;
|
|
46
66
|
surfaceGeneration: number;
|
|
67
|
+
/** Invalidates observations when selection or candidate state changes without a page effect. */
|
|
68
|
+
readStateRevision?: number;
|
|
47
69
|
contextRevision: string;
|
|
48
70
|
interactionRevision?: string;
|
|
49
71
|
fallback: boolean;
|
|
@@ -51,8 +73,21 @@ export interface AssistantInvocationToken {
|
|
|
51
73
|
export interface AssistantSurfaceSnapshot {
|
|
52
74
|
token: AssistantInvocationToken;
|
|
53
75
|
context: AssistantSurfaceContext;
|
|
76
|
+
/** Historical display evidence; never an executable context or capability. */
|
|
77
|
+
observationSummary?: string;
|
|
54
78
|
capabilities: AssistantCapabilityDescriptor[];
|
|
55
79
|
}
|
|
80
|
+
/** Per-request restriction selected by the caller, never by model output. */
|
|
81
|
+
export interface AssistantExecutionPolicy {
|
|
82
|
+
readOnly?: boolean;
|
|
83
|
+
}
|
|
84
|
+
/** Conversation-local schema choices; never business observations, inputs or execution authority. */
|
|
85
|
+
export interface AssistantCapabilitySelection {
|
|
86
|
+
forScope(token: AssistantInvocationToken | undefined): string[];
|
|
87
|
+
remember(token: AssistantInvocationToken, codes: string[]): void;
|
|
88
|
+
clear(): void;
|
|
89
|
+
}
|
|
90
|
+
export declare function createAssistantCapabilitySelection(): AssistantCapabilitySelection;
|
|
56
91
|
export interface AssistantSurfaceRegistry {
|
|
57
92
|
register(registration: AssistantSurfaceRegistration): () => void;
|
|
58
93
|
activate(pageInstanceKey: string | undefined): void;
|
|
@@ -67,12 +102,38 @@ export interface AssistantSurfaceRegistry {
|
|
|
67
102
|
}): Promise<AssistantSurfaceSnapshot>;
|
|
68
103
|
/** Waits for the current page to settle and returns a fresh, execution-compatible snapshot. */
|
|
69
104
|
settleActiveSurface(token: AssistantInvocationToken, signal?: AbortSignal): Promise<AssistantSurfaceSnapshot>;
|
|
70
|
-
requestTurn(input: Omit<AssistantTurnInput, 'context' | 'capabilities'
|
|
71
|
-
|
|
105
|
+
requestTurn(input: Omit<AssistantTurnInput, 'context' | 'capabilities'> & {
|
|
106
|
+
capabilitySelection?: AssistantCapabilitySelection;
|
|
107
|
+
/** Missing declarations from a rejected decision; filtered through the current allowed catalog. */
|
|
108
|
+
declarationRecoveryCodes?: string[];
|
|
109
|
+
}, token: AssistantInvocationToken, signal?: AbortSignal, progress?: AssistantTurnProgress, policy?: AssistantExecutionPolicy): Promise<AssistantTurnOutput>;
|
|
110
|
+
invoke(call: AssistantCapabilityCall, token: AssistantInvocationToken, signal?: AbortSignal, policy?: AssistantExecutionPolicy): Promise<{
|
|
72
111
|
value: unknown;
|
|
73
112
|
contextChanged: boolean;
|
|
113
|
+
readStateChanged?: boolean;
|
|
114
|
+
presentation?: AssistantResultPresentation;
|
|
115
|
+
confirmation?: AssistantOperationConfirmation;
|
|
74
116
|
}>;
|
|
75
117
|
}
|
|
118
|
+
/** Current live editor state; never restored from conversation history. */
|
|
119
|
+
export interface AssistantConfigurationEditor {
|
|
120
|
+
kind?: 'metadata' | 'page' | 'rules';
|
|
121
|
+
openingCapability?: string;
|
|
122
|
+
moduleAlias?: string;
|
|
123
|
+
title: string;
|
|
124
|
+
hasUnsavedChanges: boolean;
|
|
125
|
+
visible: boolean;
|
|
126
|
+
open?(): void;
|
|
127
|
+
}
|
|
128
|
+
/** Workbench-owned context and capabilities contributed by a configuration editor or other domain. */
|
|
129
|
+
export interface AssistantWorkspaceContribution {
|
|
130
|
+
editor?(): AssistantConfigurationEditor | undefined;
|
|
131
|
+
current(): {
|
|
132
|
+
revision: string;
|
|
133
|
+
facts: Record<string, unknown>;
|
|
134
|
+
};
|
|
135
|
+
capabilities(settleNavigation?: (signal?: AbortSignal, requireFormal?: boolean) => Promise<void | AssistantInvocationToken>): AssistantCapability[];
|
|
136
|
+
}
|
|
76
137
|
export interface AssistantSurfaceHost {
|
|
77
138
|
registry: AssistantSurfaceRegistry;
|
|
78
139
|
activePageInstanceKey(): string | undefined;
|
|
@@ -83,10 +144,20 @@ export declare function useAssistantSurfaceHost(): AssistantSurfaceHost | undefi
|
|
|
83
144
|
export declare class StaleAssistantInvocationError extends Error {
|
|
84
145
|
constructor();
|
|
85
146
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
147
|
+
import { OperationUsageError, type OperationErrorMessage } from './operationErrors';
|
|
148
|
+
/** Preserves the public assistant error contract at the adapter boundary. */
|
|
149
|
+
export declare class AssistantCapabilityUsageError extends OperationUsageError {
|
|
150
|
+
constructor(message: string | OperationErrorMessage, code?: OperationUsageError['code']);
|
|
151
|
+
}
|
|
152
|
+
/** An effect started before interruption. Contains no business output from an obsolete scope. */
|
|
153
|
+
export declare class AssistantEffectInterruptedError extends Error {
|
|
154
|
+
readonly token: AssistantInvocationToken;
|
|
155
|
+
readonly execution: 'effect-applied' | 'unknown';
|
|
156
|
+
constructor(token: AssistantInvocationToken, execution: 'effect-applied' | 'unknown', cause: unknown);
|
|
89
157
|
}
|
|
90
|
-
export declare function createAssistantSurfaceRegistry()
|
|
158
|
+
export declare function createAssistantSurfaceRegistry(identityScope?: () => string, workspaceContext?: () => {
|
|
159
|
+
revision: string;
|
|
160
|
+
facts: Record<string, unknown>;
|
|
161
|
+
}, language?: LanguageContext): AssistantSurfaceRegistry;
|
|
91
162
|
/** Compares page identity and revisions, independently of object property order. */
|
|
92
163
|
export declare function sameAssistantInvocationToken(left: AssistantInvocationToken | undefined, right: AssistantInvocationToken | undefined): boolean;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import type { AssistantTurnInput, AssistantTurnOutput } from '../web-contracts/index';
|
|
1
|
+
import type { AssistantTurnInput, AssistantTurnOutput, AssistantTokenUsage } from '../web-contracts/index';
|
|
2
2
|
import { type HttpClient } from './http';
|
|
3
3
|
export interface AssistantTurnProgress {
|
|
4
4
|
onTextDelta?(text: string): void;
|
|
5
|
+
/** Observed before stale response rejection; never a business receipt. */
|
|
6
|
+
onRequestCompleted?(observation: AssistantModelRequestObservation): void | Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export interface AssistantModelRequestObservation {
|
|
9
|
+
durationMs: number;
|
|
10
|
+
outcome: 'received' | 'failed';
|
|
11
|
+
usage?: AssistantTokenUsage;
|
|
12
|
+
toolCallCount?: number;
|
|
5
13
|
}
|
|
6
14
|
export type AssistantTurnRequester = (input: AssistantTurnInput, signal: AbortSignal, progress?: AssistantTurnProgress) => Promise<AssistantTurnOutput>;
|
|
7
15
|
/** Uses the supplied transport as-is so page-owned tenant scope remains authoritative. */
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ConstructionPlanContent, ReferenceTargetFieldCatalog, ConstructionTask, ConstructionAcceptancePreview, ConstructionAcceptanceReceipt, ConstructionDeliveryReceipt, ConstructionProgress, ConstructionFieldDescription, ConstructionFieldResult, ConstructionInitializationResult, ConstructionPlanSnapshot, ConstructionPlanSummary } from '../web-contracts/index';
|
|
2
|
+
import type { HttpClient } from './http';
|
|
3
|
+
export interface ConstructionPlanClient {
|
|
4
|
+
designContract(): Promise<{
|
|
5
|
+
recordName: {
|
|
6
|
+
fieldName: string;
|
|
7
|
+
columnName: string;
|
|
8
|
+
fieldType: string;
|
|
9
|
+
};
|
|
10
|
+
inheritedFields: string[];
|
|
11
|
+
declarableCapabilities: {
|
|
12
|
+
capabilities: string[];
|
|
13
|
+
metadataFields: {
|
|
14
|
+
fieldName: string;
|
|
15
|
+
columnName: string;
|
|
16
|
+
fieldSpecAlias: string;
|
|
17
|
+
defaultKind: string;
|
|
18
|
+
defaultDescription: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
businessObjects(): Promise<{
|
|
23
|
+
alias: string;
|
|
24
|
+
title: string;
|
|
25
|
+
applicationAlias: string;
|
|
26
|
+
applicationTitle: string | null;
|
|
27
|
+
kind: string;
|
|
28
|
+
referenceReady: boolean;
|
|
29
|
+
explanation: string;
|
|
30
|
+
}[]>;
|
|
31
|
+
referenceTarget(moduleAlias: string): Promise<ReferenceTargetFieldCatalog>;
|
|
32
|
+
task(id: string): Promise<ConstructionTask>;
|
|
33
|
+
previewAcceptance(id: string, objectKey: string): Promise<ConstructionAcceptancePreview>;
|
|
34
|
+
confirmAcceptance(id: string, command: {
|
|
35
|
+
requestId: string;
|
|
36
|
+
objectKey: string;
|
|
37
|
+
fingerprint: string;
|
|
38
|
+
}): Promise<ConstructionAcceptanceReceipt>;
|
|
39
|
+
acceptance(id: string, requestId: string): Promise<ConstructionAcceptanceReceipt | undefined>;
|
|
40
|
+
delivery(id: string, requestId: string): Promise<ConstructionDeliveryReceipt | undefined>;
|
|
41
|
+
progress(id: string, objectKey: string): Promise<ConstructionProgress>;
|
|
42
|
+
describeFields(id: string, objectKey: string): Promise<ConstructionFieldDescription>;
|
|
43
|
+
fieldChange(id: string, requestId: string): Promise<ConstructionFieldResult | undefined>;
|
|
44
|
+
initialization(id: string, objectKey: string): Promise<ConstructionInitializationResult | undefined>;
|
|
45
|
+
list(): Promise<ConstructionPlanSummary[]>;
|
|
46
|
+
read(id: string): Promise<ConstructionPlanSnapshot>;
|
|
47
|
+
history(id: string): Promise<ConstructionPlanSnapshot[]>;
|
|
48
|
+
confirm(id: string, command: {
|
|
49
|
+
requestId: string;
|
|
50
|
+
expectedRevision: number;
|
|
51
|
+
content: ConstructionPlanContent;
|
|
52
|
+
}): Promise<ConstructionPlanSnapshot>;
|
|
53
|
+
confirmation(id: string, requestId: string): Promise<ConstructionPlanSnapshot | undefined>;
|
|
54
|
+
}
|
|
55
|
+
export declare function createConstructionPlanClient(http: HttpClient): ConstructionPlanClient;
|
|
@@ -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,9 +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;
|
|
69
|
+
/** Fixed explanations for known model failures; never expose arbitrary upstream 5xx text. */
|
|
70
|
+
export declare function modelFailureMessage(error: AppError, language?: LanguageContext): string | undefined;
|
|
65
71
|
export declare function isUnexpectedPlatformError(error: AppError): boolean;
|
|
@@ -13,6 +13,7 @@ export interface HttpRequestOptions {
|
|
|
13
13
|
path: string;
|
|
14
14
|
query?: Record<string, RouteQueryValue>;
|
|
15
15
|
body?: unknown;
|
|
16
|
+
responseType?: 'json' | 'blob';
|
|
16
17
|
headers?: Record<string, string>;
|
|
17
18
|
/** Cancels the underlying Fetch request, including a long-lived response stream. */
|
|
18
19
|
signal?: AbortSignal;
|
|
@@ -4,6 +4,7 @@ export * from './sse';
|
|
|
4
4
|
export * from './query';
|
|
5
5
|
export * from './actionResult';
|
|
6
6
|
export * from './assistantSurface';
|
|
7
|
+
export * from './assistantCatalogPage';
|
|
7
8
|
export * from './assistantRuntime';
|
|
8
9
|
export * from './assistantTurnClient';
|
|
9
10
|
export * from './businessNotifications';
|
|
@@ -14,3 +15,16 @@ export * from './referenceResolveClient';
|
|
|
14
15
|
export { userPreferences } from './userPreferences';
|
|
15
16
|
export type { UserPreferenceOptions, UserPreferenceStore } from './userPreferences';
|
|
16
17
|
export * from './module/index';
|
|
18
|
+
export * from './assistantConfirmation';
|
|
19
|
+
export * from './constructionPlanClient';
|
|
20
|
+
export * from './assistantConversationClient';
|
|
21
|
+
export * from './operationConfirmation';
|
|
22
|
+
export * from './operationErrors';
|
|
23
|
+
export * from './operationReceipt';
|
|
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
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { HttpClient } from '../http';
|
|
2
|
+
import type { TextPresentation, WebQueryRequest } from '../../web-contracts/index';
|
|
3
|
+
export type ImportDuplicateStrategy = 'ERROR' | 'SKIP' | 'OVERWRITE';
|
|
4
|
+
export interface ImportSheet {
|
|
5
|
+
sheetName: string;
|
|
6
|
+
entityAlias: string;
|
|
7
|
+
main: boolean;
|
|
8
|
+
rowCount: number;
|
|
9
|
+
fields: Array<{
|
|
10
|
+
fieldName: string;
|
|
11
|
+
title: string;
|
|
12
|
+
matchKeyCandidate: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export interface ImportParseResult {
|
|
16
|
+
sheets: ImportSheet[];
|
|
17
|
+
}
|
|
18
|
+
export interface ImportExecutionCommand {
|
|
19
|
+
mainSheet: {
|
|
20
|
+
matchFieldName: string;
|
|
21
|
+
duplicateStrategy: ImportDuplicateStrategy;
|
|
22
|
+
};
|
|
23
|
+
childSheets: Array<{
|
|
24
|
+
entityAlias: string;
|
|
25
|
+
matchFieldName: string;
|
|
26
|
+
duplicateStrategy: ImportDuplicateStrategy;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export interface ImportExecutionResult {
|
|
30
|
+
created: number;
|
|
31
|
+
updated: number;
|
|
32
|
+
skipped: number;
|
|
33
|
+
errorCount: number;
|
|
34
|
+
summaries?: Record<string, {
|
|
35
|
+
entityAlias: string;
|
|
36
|
+
created: number;
|
|
37
|
+
updated: number;
|
|
38
|
+
skipped: number;
|
|
39
|
+
errors: number;
|
|
40
|
+
}>;
|
|
41
|
+
partialSuccess: boolean;
|
|
42
|
+
message: string;
|
|
43
|
+
messageText?: TextPresentation;
|
|
44
|
+
errorFileName?: string;
|
|
45
|
+
errorFileToken?: string;
|
|
46
|
+
}
|
|
47
|
+
/** Dynamic EXCHANGE transport; domain execution remains behind the module's standard action scope. */
|
|
48
|
+
export declare function createDataExchangeClient(http: HttpClient, moduleAlias: string): {
|
|
49
|
+
template: () => Promise<Blob>;
|
|
50
|
+
parse(file: File): Promise<ImportParseResult>;
|
|
51
|
+
execute(file: File, command: ImportExecutionCommand): Promise<ImportExecutionResult>;
|
|
52
|
+
errorFile: (token: string) => Promise<Blob>;
|
|
53
|
+
exportData(request: WebQueryRequest): Promise<Blob>;
|
|
54
|
+
};
|
|
@@ -5,3 +5,5 @@ export type { ModuleActionState, ModuleRecordActionAvailability, ModuleRuntimeAc
|
|
|
5
5
|
export type { ModuleAbilityClients, ModuleAbilities } from './abilities';
|
|
6
6
|
export * from './moduleContext';
|
|
7
7
|
export * from './pageActionEntries';
|
|
8
|
+
export * from './dataExchangeClient';
|
|
9
|
+
export { displayModuleRuntime } from './runtimeContext';
|
|
@@ -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;
|
|
@@ -11,13 +11,23 @@ export interface QuerySchemaRequestOptions {
|
|
|
11
11
|
uiConfigId?: string;
|
|
12
12
|
queryTemplateId?: string;
|
|
13
13
|
}
|
|
14
|
+
export interface RecordSaveRequestOptions {
|
|
15
|
+
requestId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface RecordSaveReceipt {
|
|
18
|
+
committed: boolean;
|
|
19
|
+
recordId?: string;
|
|
20
|
+
recordVersion?: number;
|
|
21
|
+
actionCode?: string;
|
|
22
|
+
}
|
|
14
23
|
/** Source-neutral client for a platform module's standard CRUD contract. */
|
|
15
24
|
export interface ModuleCrudClient<TRecord> {
|
|
16
25
|
querySchema(options?: QuerySchemaRequestOptions): Promise<QuerySchema>;
|
|
17
26
|
query(request?: WebQueryRequest): Promise<WebPageResponse<TRecord>>;
|
|
18
27
|
view(id: string): Promise<TRecord>;
|
|
19
|
-
insert(record: TRecord): Promise<StaticRecordMutationResult<TRecord>>;
|
|
20
|
-
update(id: string, record: TRecord): Promise<StaticRecordMutationResult<TRecord>>;
|
|
28
|
+
insert(record: TRecord, options?: RecordSaveRequestOptions): Promise<StaticRecordMutationResult<TRecord>>;
|
|
29
|
+
update(id: string, record: TRecord, options?: RecordSaveRequestOptions): Promise<StaticRecordMutationResult<TRecord>>;
|
|
30
|
+
saveReceipt?(requestId: string): Promise<RecordSaveReceipt>;
|
|
21
31
|
delete(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
22
32
|
enable(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
23
33
|
disable(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type LanguageContext } from './language';
|
|
2
|
+
import { type OperationErrorMessage } from './operationErrors';
|
|
3
|
+
import type { OperationPresentation, OperationReceiptReference } from '../web-contracts/index';
|
|
4
|
+
/** Captured platform command. The caller owns the candidate and execution scope. */
|
|
5
|
+
export interface OperationProposal {
|
|
6
|
+
receiptReference?: OperationReceiptReference;
|
|
7
|
+
presentation: OperationPresentation;
|
|
8
|
+
confirmLabel?: string;
|
|
9
|
+
expiresAt: number;
|
|
10
|
+
isCurrent(): boolean;
|
|
11
|
+
/** Submits the captured payload using the same durable request identity on every attempt. */
|
|
12
|
+
execute(): Promise<OperationPresentation>;
|
|
13
|
+
/** A missing receipt is not permission to automatically resubmit. */
|
|
14
|
+
lookup(): Promise<OperationPresentation | undefined>;
|
|
15
|
+
}
|
|
16
|
+
export type OperationConfirmationState = 'pending' | 'executing' | 'checking' | 'succeeded' | 'unknown' | 'cancelled' | 'expired' | 'rejected';
|
|
17
|
+
/** Adapter proof that no persistent operation was accepted (validation or authorization rejection). */
|
|
18
|
+
export declare class OperationRejectedError extends Error {
|
|
19
|
+
readonly textMessage?: OperationErrorMessage;
|
|
20
|
+
constructor(message?: string | OperationErrorMessage, options?: ErrorOptions);
|
|
21
|
+
}
|
|
22
|
+
export interface OperationConfirmation {
|
|
23
|
+
readonly confirmLabel: string;
|
|
24
|
+
readonly presentation: OperationPresentation;
|
|
25
|
+
readonly state: OperationConfirmationState;
|
|
26
|
+
readonly result: OperationPresentation | undefined;
|
|
27
|
+
confirm(): Promise<void>;
|
|
28
|
+
check(): Promise<void>;
|
|
29
|
+
cancel(): void;
|
|
30
|
+
}
|
|
31
|
+
/** Explicit confirmation, duplicate-click protection and read-only recovery of uncertain writes. */
|
|
32
|
+
export declare function createOperationConfirmation(proposal: OperationProposal, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext): OperationConfirmation;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TextReference } from '../web-contracts/index';
|
|
2
|
+
import { type LanguageContext } from './language';
|
|
3
|
+
export interface OperationErrorMessage {
|
|
4
|
+
readonly message: string;
|
|
5
|
+
readonly source: TextReference;
|
|
6
|
+
readonly args: Readonly<Record<string, string | number | boolean | null>>;
|
|
7
|
+
}
|
|
8
|
+
/** Explicit CODE declaration; parameters are frozen display facts, never inferred from prose. */
|
|
9
|
+
export declare function codeOperationErrorMessage(language: LanguageContext, key: string, original: string, args?: Record<string, unknown>): OperationErrorMessage;
|
|
10
|
+
/** A rejected editor operation with safe, bounded feedback for callers. */
|
|
11
|
+
export declare class OperationUsageError extends Error {
|
|
12
|
+
readonly code: 'CAPABILITY_USAGE_INVALID' | 'CANDIDATE_AMBIGUOUS' | 'CANDIDATE_EXPIRED' | 'PRECONDITION_FAILED';
|
|
13
|
+
readonly textMessage?: OperationErrorMessage;
|
|
14
|
+
constructor(message: string | OperationErrorMessage, code?: 'CAPABILITY_USAGE_INVALID' | 'CANDIDATE_AMBIGUOUS' | 'CANDIDATE_EXPIRED' | 'PRECONDITION_FAILED');
|
|
15
|
+
}
|
|
16
|
+
/** Resolves owned presentation facts without replaying validation or changing the error code. */
|
|
17
|
+
export declare function resolveOperationErrorMessage(error: Error & {
|
|
18
|
+
readonly textMessage?: OperationErrorMessage;
|
|
19
|
+
}, language?: LanguageContext): string;
|
|
20
|
+
/** A staged draft was rejected before publication; no draft or display state was changed. */
|
|
21
|
+
export declare class DraftUpdateRejectedError extends OperationUsageError {
|
|
22
|
+
constructor(failure: OperationUsageError);
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OperationPresentation, OperationReceiptReference } from '../web-contracts/index';
|
|
2
|
+
import type { HttpClient } from './http';
|
|
3
|
+
/** Only query identities survive a conversation. Payloads, permissions and confirmation are never restored. */
|
|
4
|
+
export declare function parseOperationReceiptReference(value: unknown): OperationReceiptReference;
|
|
5
|
+
export declare function pagePublicationDigest(revision: {
|
|
6
|
+
templateAlias?: string;
|
|
7
|
+
templateVersion?: number;
|
|
8
|
+
uiTreeJson?: string;
|
|
9
|
+
}): Promise<string>;
|
|
10
|
+
export declare function lookupOperationReceipt(http: HttpClient, input: OperationReceiptReference): Promise<OperationPresentation | undefined>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TextReference, TextPresentation, TextPresentationDocument } from '../web-contracts/index';
|
|
2
|
+
import type { LanguageContext, TextResolution } from './language';
|
|
3
|
+
/** Snapshot a producer's concrete CODE original; arguments format deployed resources, never business values in the fallback. */
|
|
4
|
+
export declare function createCodeTextPresentation(key: string, originalText: string, context: LanguageContext, args?: Record<string, unknown>): TextPresentation;
|
|
5
|
+
export declare function resolvePresentationText(text: TextPresentation, context: LanguageContext): TextResolution;
|
|
6
|
+
/** Typed labels outside module descriptors use the same immutable presentation resource. */
|
|
7
|
+
export declare function presentationLabel(original: string, text: TextPresentation | undefined, context: LanguageContext): string;
|
|
8
|
+
/** Restore source facts for execution/dirty checks; projections remain separate and disposable. */
|
|
9
|
+
export declare function originalPresentation<T extends TextPresentationDocument>(document: T): T;
|
|
10
|
+
export declare function translatedPresentation<T extends TextPresentationDocument>(document: T, context: LanguageContext): T;
|
|
11
|
+
export declare function isTextReference(value: unknown): value is TextReference;
|
|
12
|
+
/** A label is valid only while its explicitly declared source still matches the raw record value. */
|
|
13
|
+
export declare function recordPresentationText(record: object | undefined, field: string): TextPresentation | undefined;
|
|
14
|
+
export declare function recordPresentationLabel(record: object, field: string, context: LanguageContext): string | undefined;
|
|
15
|
+
/** Removes only the record's read metadata; arbitrary nested JSON business values are preserved. */
|
|
16
|
+
export declare function withoutRecordPresentation<T>(record: T): T;
|