@ximatai/muyun-web-app 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EmployeeDetailWorkspaceView-mtdcsqgF.js +14 -0
- package/dist/EmployeeManagementView-CKKvQZaC.js +1706 -0
- package/dist/MetadataOrchestrationView-CprWBocy.js +655 -0
- package/dist/ModuleActionManagementView-DNuAQUPE.js +597 -0
- package/dist/RoleAuthorizationView-CQtSAJoJ.js +592 -0
- package/dist/RoleDetailWorkspaceView-Dh8DXpyS.js +26 -0
- package/dist/RoleManagementView-BrqaFV7y.js +1927 -0
- package/dist/SystemUserDetailWorkspaceView-N-kvycAu.js +17 -0
- package/dist/SystemUserManagementView-BVS5moV5.js +761 -0
- package/dist/UserDetailWorkspaceView-Iek6xwix.js +17 -0
- package/dist/UserManagementView-BR_Jz8O-.js +965 -0
- package/dist/currentUserContext-B1lj1WgF.js +11 -0
- package/dist/index.css +2 -0
- package/dist/index.js +7127 -0
- package/dist/pageRealtime-sRtDYlQP.js +140 -0
- package/dist/platform-components-bC1gwhic.js +8412 -0
- package/dist/types/App.vue.d.ts +3 -0
- package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +27 -0
- package/dist/types/app/LoginView.vue.d.ts +14 -0
- package/dist/types/app/appWorkbenchStartup.d.ts +3 -0
- package/dist/types/app/devWorkbenchStartup.d.ts +1 -0
- package/dist/types/app/loginTenant.d.ts +6 -0
- package/dist/types/app/platformMessage.d.ts +6 -0
- package/dist/types/app/query.d.ts +3 -0
- package/dist/types/app/router.d.ts +1 -0
- package/dist/types/app/workbenchStartup.d.ts +24 -0
- package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +7 -0
- package/dist/types/consumer/index.d.ts +15 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/actionReactions.d.ts +16 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +2 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +32 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +8 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +3 -0
- package/dist/types/platform-admin-runtime/currentUserContext.d.ts +4 -0
- package/dist/types/platform-admin-runtime/index.d.ts +12 -0
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +36 -0
- package/dist/types/platform-admin-runtime/pageRealtime.d.ts +61 -0
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +21 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +20 -0
- package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -0
- package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +24 -0
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +36 -0
- package/dist/types/platform-admin-runtime/workspaceViewContributions.d.ts +3 -0
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +10 -0
- package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +18 -0
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +18 -0
- package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +18 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +52 -0
- package/dist/types/platform-components/DateTimeText.vue.d.ts +15 -0
- package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +18 -0
- package/dist/types/platform-components/EnabledSelect.vue.d.ts +14 -0
- package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +13 -0
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +19 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +40 -0
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +20 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +37 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +23 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +37 -0
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +25 -0
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +29 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +39 -0
- package/dist/types/platform-components/RecordExternalChangeNotice.vue.d.ts +20 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +31 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +42 -0
- package/dist/types/platform-components/RecordMetaSection.vue.d.ts +8 -0
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +74 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +35 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +103 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +18 -0
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -0
- package/dist/types/platform-components/RecordTreeSelector.vue.d.ts +22 -0
- package/dist/types/platform-components/RecycleBinModeButton.vue.d.ts +16 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +44 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +57 -0
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +26 -0
- package/dist/types/platform-components/actionConfirmation.d.ts +3 -0
- package/dist/types/platform-components/crudRecordListModel.d.ts +10 -0
- package/dist/types/platform-components/drawerPromotion.d.ts +4 -0
- package/dist/types/platform-components/index.d.ts +76 -0
- package/dist/types/platform-components/optionFieldOptions.d.ts +10 -0
- package/dist/types/platform-components/pageLayoutContext.d.ts +6 -0
- package/dist/types/platform-components/platformActionResultFeedback.d.ts +12 -0
- package/dist/types/platform-components/platformActionResultReactions.d.ts +53 -0
- package/dist/types/platform-components/platformDateTime.d.ts +16 -0
- package/dist/types/platform-components/platformErrorFeedback.d.ts +15 -0
- package/dist/types/platform-components/platformTimeZoneContext.d.ts +3 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +27 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +7 -0
- package/dist/types/platform-components/recordDraftNormalizer.d.ts +1 -0
- package/dist/types/platform-components/recordEditorSessionState.d.ts +38 -0
- package/dist/types/platform-components/recordExplorerItemModel.d.ts +8 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +57 -0
- package/dist/types/platform-components/recordPickerConstraints.d.ts +20 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +2 -0
- package/dist/types/platform-components/recycleBinState.d.ts +39 -0
- package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +6 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +10 -0
- package/dist/types/platform-components/softDeletedConflictHandler.d.ts +75 -0
- package/dist/types/platform-components/staticCrudManagementState.d.ts +66 -0
- package/dist/types/platform-components/staticFormActionFlow.d.ts +39 -0
- package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +7 -0
- package/dist/types/platform-components/treeRecordModel.d.ts +17 -0
- package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +26 -0
- package/dist/types/platform-components/userSessionPresentation.d.ts +12 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +46 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +23 -0
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +13 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +7 -0
- package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +7 -0
- package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +11 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +28 -0
- package/dist/types/platform-workbench/menuTreeModel.d.ts +20 -0
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +3 -0
- package/dist/types/platform-workbench/realtimeStatus.d.ts +7 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +12 -0
- package/dist/types/views/ApplicationManagementView.vue.d.ts +3 -0
- package/dist/types/views/DepartmentManagementView.vue.d.ts +3 -0
- package/dist/types/views/DictionaryManagementView.vue.d.ts +3 -0
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +64 -0
- package/dist/types/views/EmployeeDetailWorkspaceView.vue.d.ts +6 -0
- package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +14 -0
- package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +18 -0
- package/dist/types/views/EmployeeManagementView.vue.d.ts +7 -0
- package/dist/types/views/FieldSpecManagementView.vue.d.ts +3 -0
- package/dist/types/views/FieldUiControlManagementView.vue.d.ts +3 -0
- package/dist/types/views/HomeView.vue.d.ts +3 -0
- package/dist/types/views/MenuManagementView.vue.d.ts +3 -0
- package/dist/types/views/MetadataOrchestrationView.vue.d.ts +8 -0
- package/dist/types/views/ModuleActionManagementView.vue.d.ts +9 -0
- package/dist/types/views/ModuleManagementView.vue.d.ts +3 -0
- package/dist/types/views/ModuleOpenApiView.vue.d.ts +10 -0
- package/dist/types/views/OpenApiCatalogView.vue.d.ts +9 -0
- package/dist/types/views/OrganizationManagementView.vue.d.ts +3 -0
- package/dist/types/views/PasswordManagementView.vue.d.ts +3 -0
- package/dist/types/views/PositionManagementView.vue.d.ts +3 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +16 -0
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +12 -0
- package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +9 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +16 -0
- package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +18 -0
- package/dist/types/views/RoleManagementView.vue.d.ts +9 -0
- package/dist/types/views/SystemUserDetailWorkspaceView.vue.d.ts +7 -0
- package/dist/types/views/SystemUserManagementView.vue.d.ts +7 -0
- package/dist/types/views/TenantManagementView.vue.d.ts +3 -0
- package/dist/types/views/UserDetailContent.vue.d.ts +32 -0
- package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +7 -0
- package/dist/types/views/UserManagementView.vue.d.ts +8 -0
- package/dist/types/views/applicationManagementState.d.ts +64 -0
- package/dist/types/views/departmentManagementState.d.ts +137 -0
- package/dist/types/views/dictionaryManagementState.d.ts +215 -0
- package/dist/types/views/employeeDetailStateModel.d.ts +39 -0
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +16 -0
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +4 -0
- package/dist/types/views/fieldSpecManagementState.d.ts +80 -0
- package/dist/types/views/fieldUiControlManagementState.d.ts +76 -0
- package/dist/types/views/menuManagementState.d.ts +178 -0
- package/dist/types/views/metadataOrchestrationState.d.ts +278 -0
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +6 -0
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +7 -0
- package/dist/types/views/moduleManagementState.d.ts +76 -0
- package/dist/types/views/organizationManagementState.d.ts +64 -0
- package/dist/types/views/positionManagementState.d.ts +218 -0
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +17 -0
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +5 -0
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +19 -0
- package/dist/types/views/roleDetailWorkspaceView.d.ts +8 -0
- package/dist/types/views/roleGrantClient.d.ts +59 -0
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +12 -0
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +5 -0
- package/dist/types/views/tenantManagementState.d.ts +64 -0
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +20 -0
- package/dist/types/views/useUserSessionRows.d.ts +28 -0
- package/dist/types/views/userDetailStateModel.d.ts +11 -0
- package/dist/types/views/userDetailWorkspaceSession.d.ts +14 -0
- package/dist/types/views/userDetailWorkspaceView.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +37 -0
- package/dist/types/vue-ui-antdv/components/UiBadge.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +41 -0
- package/dist/types/vue-ui-antdv/components/UiCheckbox.vue.d.ts +30 -0
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +71 -0
- package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +29 -0
- package/dist/types/vue-ui-antdv/components/UiEmpty.vue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/components/UiError.vue.d.ts +7 -0
- package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +15 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +7 -0
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +25 -0
- package/dist/types/vue-ui-antdv/components/UiMenu.vue.d.ts +19 -0
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +36 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +26 -0
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +30 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +28 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanelHost.vue.d.ts +13 -0
- package/dist/types/vue-ui-antdv/components/UiSpin.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +13 -0
- package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTooltip.vue.d.ts +19 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +30 -0
- package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -0
- package/dist/types/vue-ui-antdv/confirm.d.ts +5 -0
- package/dist/types/vue-ui-antdv/dataTableModel.d.ts +10 -0
- package/dist/types/vue-ui-antdv/dictionaries.d.ts +2 -0
- package/dist/types/vue-ui-antdv/feedback.d.ts +10 -0
- package/dist/types/vue-ui-antdv/index.d.ts +36 -0
- package/dist/types/vue-ui-antdv/references.d.ts +8 -0
- package/dist/types/vue-ui-antdv/registry.d.ts +3 -0
- package/dist/types/vue-ui-antdv/types.d.ts +65 -0
- package/dist/types/web-contracts/index.d.ts +862 -0
- package/dist/types/web-core/actionResult.d.ts +28 -0
- package/dist/types/web-core/clients.d.ts +23 -0
- package/dist/types/web-core/dataChanges.d.ts +15 -0
- package/dist/types/web-core/errors.d.ts +65 -0
- package/dist/types/web-core/http.d.ts +21 -0
- package/dist/types/web-core/index.d.ts +8 -0
- package/dist/types/web-core/mock.d.ts +6 -0
- package/dist/types/web-core/module/abilities.d.ts +21 -0
- package/dist/types/web-core/module/abilityCodes.d.ts +18 -0
- package/dist/types/web-core/module/index.d.ts +6 -0
- package/dist/types/web-core/module/moduleContext.d.ts +49 -0
- package/dist/types/web-core/module/recycleBin.d.ts +6 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +65 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +45 -0
- package/dist/types/web-core/query.d.ts +16 -0
- package/dist/types/web-core/realtime.d.ts +104 -0
- package/dist/useUserSessionRows-CLM0ZvAF.js +128 -0
- package/dist/workspaceViewSessions-WsJU3OS7.js +1578 -0
- package/package.json +27 -0
|
@@ -0,0 +1,862 @@
|
|
|
1
|
+
export type Primitive = string | number | boolean | null | undefined;
|
|
2
|
+
export type OptionValue = string | number;
|
|
3
|
+
export type OptionValueList = OptionValue[];
|
|
4
|
+
export interface Option {
|
|
5
|
+
label: string;
|
|
6
|
+
value: OptionValue;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type RouteQueryPrimitive = string | number | boolean | null | undefined;
|
|
10
|
+
export type RouteQueryValue = RouteQueryPrimitive | RouteQueryPrimitive[];
|
|
11
|
+
export interface WebListResponse<T> {
|
|
12
|
+
records: T[];
|
|
13
|
+
}
|
|
14
|
+
export interface WebPageResponse<T> {
|
|
15
|
+
records: T[];
|
|
16
|
+
total: number;
|
|
17
|
+
pageNum: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
pages: number;
|
|
20
|
+
totalKnown: boolean;
|
|
21
|
+
navigation?: unknown;
|
|
22
|
+
}
|
|
23
|
+
export declare const webDataChangeTypes: {
|
|
24
|
+
readonly recordCreated: "record-created";
|
|
25
|
+
readonly recordUpdated: "record-updated";
|
|
26
|
+
readonly recordDeleted: "record-deleted";
|
|
27
|
+
readonly collectionChanged: "collection-changed";
|
|
28
|
+
};
|
|
29
|
+
export type WebDataChangeType = (typeof webDataChangeTypes)[keyof typeof webDataChangeTypes];
|
|
30
|
+
export interface WebDataChange {
|
|
31
|
+
type: string;
|
|
32
|
+
moduleAlias: string;
|
|
33
|
+
recordId?: string;
|
|
34
|
+
resourceKey?: string;
|
|
35
|
+
scope?: string;
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
export type WebActionMessageType = 'SUCCESS' | 'INFO' | 'WARNING' | 'ERROR' | string;
|
|
39
|
+
export interface WebActionMessage {
|
|
40
|
+
code?: string;
|
|
41
|
+
text?: string;
|
|
42
|
+
type?: WebActionMessageType;
|
|
43
|
+
messageArgs?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
export interface WebActionResultFacts {
|
|
46
|
+
message?: string | WebActionMessage;
|
|
47
|
+
resultType?: string;
|
|
48
|
+
changes?: WebDataChange[];
|
|
49
|
+
changeSetId?: string;
|
|
50
|
+
}
|
|
51
|
+
export type WebActionResult<TFacts extends Record<string, unknown> = Record<string, unknown>> = TFacts & WebActionResultFacts;
|
|
52
|
+
export interface WebActionResultEnvelope<TData = unknown> extends WebActionResultFacts {
|
|
53
|
+
data: TData;
|
|
54
|
+
}
|
|
55
|
+
export interface WebCommittedChangeSet {
|
|
56
|
+
changeSetId: string;
|
|
57
|
+
changes: WebDataChange[];
|
|
58
|
+
}
|
|
59
|
+
export interface WebRealtimeEnvelope<TPayload = unknown> {
|
|
60
|
+
id: string;
|
|
61
|
+
type: string;
|
|
62
|
+
occurredAt: string;
|
|
63
|
+
traceId?: string;
|
|
64
|
+
payload: TPayload;
|
|
65
|
+
}
|
|
66
|
+
export interface WebUserNotification {
|
|
67
|
+
code: string;
|
|
68
|
+
message: string;
|
|
69
|
+
logoutRequired?: boolean;
|
|
70
|
+
targetSessionId?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface WebBusinessRealtimeEvent {
|
|
73
|
+
type: string;
|
|
74
|
+
moduleAlias: string;
|
|
75
|
+
recordId: string;
|
|
76
|
+
reason?: string;
|
|
77
|
+
sensitivity?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface WebTreeNode<T> {
|
|
80
|
+
record: T;
|
|
81
|
+
children: WebTreeNode<T>[];
|
|
82
|
+
}
|
|
83
|
+
export interface CurrentUser {
|
|
84
|
+
userId: string;
|
|
85
|
+
username?: string;
|
|
86
|
+
tenantId?: string;
|
|
87
|
+
organizationId?: string;
|
|
88
|
+
system: boolean;
|
|
89
|
+
passwordChangeRequired?: boolean;
|
|
90
|
+
timeZone?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface SessionContext {
|
|
93
|
+
currentUser: CurrentUser;
|
|
94
|
+
}
|
|
95
|
+
export interface LoginRequest {
|
|
96
|
+
tenantId?: string;
|
|
97
|
+
username: string;
|
|
98
|
+
password: string;
|
|
99
|
+
}
|
|
100
|
+
export interface LoginResult {
|
|
101
|
+
token: string;
|
|
102
|
+
tokenType: 'Bearer' | string;
|
|
103
|
+
sessionId?: string;
|
|
104
|
+
issuedAt: string;
|
|
105
|
+
currentUser: CurrentUser;
|
|
106
|
+
passwordChangeRequired?: boolean;
|
|
107
|
+
passwordStatus?: UserPasswordStatus;
|
|
108
|
+
passwordExpiresAt?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface ChangeOwnPasswordRequest {
|
|
111
|
+
currentPassword: string;
|
|
112
|
+
newPassword: string;
|
|
113
|
+
}
|
|
114
|
+
export type MenuPageMode = 'LIST' | 'FORM' | 'DETAIL';
|
|
115
|
+
export type MenuOpenMode = 'tab' | 'window';
|
|
116
|
+
export interface MenuRecord extends StandardEnabledTreeEntity {
|
|
117
|
+
id: string;
|
|
118
|
+
title: string;
|
|
119
|
+
schemeId: string;
|
|
120
|
+
openMode?: MenuOpenMode;
|
|
121
|
+
moduleAlias?: string;
|
|
122
|
+
route?: string;
|
|
123
|
+
externalUrl?: string;
|
|
124
|
+
pageMode?: MenuPageMode;
|
|
125
|
+
defaultUiConfigId?: string;
|
|
126
|
+
defaultQueryTemplateId?: string;
|
|
127
|
+
entryParamsJson?: string;
|
|
128
|
+
}
|
|
129
|
+
export type MenuTreeNode = WebTreeNode<MenuRecord>;
|
|
130
|
+
export type MenuMineResponse = WebListResponse<MenuTreeNode>;
|
|
131
|
+
export type MenuScopeType = 'system' | 'tenant' | 'organization';
|
|
132
|
+
export interface MenuScheme extends StandardEnabledSortableEntity {
|
|
133
|
+
alias?: string;
|
|
134
|
+
scopeType?: MenuScopeType;
|
|
135
|
+
scopeId?: string;
|
|
136
|
+
}
|
|
137
|
+
export interface ModuleMenuTarget {
|
|
138
|
+
menuId: string;
|
|
139
|
+
menuType: 'module';
|
|
140
|
+
openMode: MenuOpenMode;
|
|
141
|
+
moduleAlias: string;
|
|
142
|
+
pageMode?: MenuPageMode;
|
|
143
|
+
defaultUiConfigId?: string;
|
|
144
|
+
defaultQueryTemplateId?: string;
|
|
145
|
+
entryParamsJson?: string;
|
|
146
|
+
query?: Record<string, RouteQueryValue>;
|
|
147
|
+
}
|
|
148
|
+
export interface RouteMenuTarget {
|
|
149
|
+
menuId: string;
|
|
150
|
+
menuType: 'route';
|
|
151
|
+
openMode: MenuOpenMode;
|
|
152
|
+
route: string;
|
|
153
|
+
moduleAlias?: string;
|
|
154
|
+
entryParamsJson?: string;
|
|
155
|
+
query?: Record<string, RouteQueryValue>;
|
|
156
|
+
}
|
|
157
|
+
export interface ExternalLinkMenuTarget {
|
|
158
|
+
menuId: string;
|
|
159
|
+
menuType: 'link';
|
|
160
|
+
openMode: MenuOpenMode;
|
|
161
|
+
externalUrl: string;
|
|
162
|
+
moduleAlias?: string;
|
|
163
|
+
entryParamsJson?: string;
|
|
164
|
+
}
|
|
165
|
+
export type MenuNavigationTarget = ModuleMenuTarget | RouteMenuTarget | ExternalLinkMenuTarget;
|
|
166
|
+
export type MenuNavigationType = MenuNavigationTarget['menuType'];
|
|
167
|
+
export type PageType = 'platform-route' | 'business-route' | 'dynamic-module' | 'remote-url' | 'external-link';
|
|
168
|
+
export type OpenMode = 'workbench-route' | 'dynamic-runner' | 'iframe' | 'new-window';
|
|
169
|
+
export type PageHostType = 'platform-route-host' | 'business-route-host' | 'dynamic-module-host' | 'external-page-host';
|
|
170
|
+
export type TabIdentityStrategy = 'by-menu' | 'by-target' | 'by-params';
|
|
171
|
+
/**
|
|
172
|
+
* Declares which layer owns a page's vertical scroll boundary.
|
|
173
|
+
*
|
|
174
|
+
* Flow pages scroll in their workbench tab. Workspace pages consume the
|
|
175
|
+
* constrained desktop work area and manage their resource/detail panes.
|
|
176
|
+
*/
|
|
177
|
+
export type PageLayoutMode = 'flow' | 'workspace';
|
|
178
|
+
export interface TabPolicy {
|
|
179
|
+
identity: TabIdentityStrategy;
|
|
180
|
+
closable?: boolean;
|
|
181
|
+
cacheable?: boolean;
|
|
182
|
+
}
|
|
183
|
+
export interface TabRestoreState {
|
|
184
|
+
url?: string;
|
|
185
|
+
snapshot?: unknown;
|
|
186
|
+
}
|
|
187
|
+
export interface PageDescriptorBase<TPageType extends PageType, TOpenMode extends OpenMode, THostType extends PageHostType, TTarget> {
|
|
188
|
+
pageType: TPageType;
|
|
189
|
+
openMode: TOpenMode;
|
|
190
|
+
hostType: THostType;
|
|
191
|
+
title?: string;
|
|
192
|
+
/** Defaults to flow when omitted, preserving ordinary route behaviour. */
|
|
193
|
+
layout?: PageLayoutMode;
|
|
194
|
+
menuId?: string;
|
|
195
|
+
target: TTarget;
|
|
196
|
+
params?: Record<string, RouteQueryValue>;
|
|
197
|
+
entryParamsJson?: string;
|
|
198
|
+
tabPolicy: TabPolicy;
|
|
199
|
+
restoreState?: TabRestoreState;
|
|
200
|
+
}
|
|
201
|
+
export interface RoutePageTarget {
|
|
202
|
+
route?: string;
|
|
203
|
+
routeName?: string;
|
|
204
|
+
pageKey?: string;
|
|
205
|
+
moduleAlias?: string;
|
|
206
|
+
query?: Record<string, RouteQueryValue>;
|
|
207
|
+
}
|
|
208
|
+
export type PlatformRoutePageDescriptor = PageDescriptorBase<'platform-route', 'workbench-route', 'platform-route-host', RoutePageTarget>;
|
|
209
|
+
export type BusinessRoutePageDescriptor = PageDescriptorBase<'business-route', 'workbench-route', 'business-route-host', RoutePageTarget>;
|
|
210
|
+
export interface DynamicModulePageTarget {
|
|
211
|
+
moduleAlias: string;
|
|
212
|
+
pageMode?: MenuPageMode;
|
|
213
|
+
defaultUiConfigId?: string;
|
|
214
|
+
defaultQueryTemplateId?: string;
|
|
215
|
+
}
|
|
216
|
+
export type DynamicModulePageDescriptor = PageDescriptorBase<'dynamic-module', 'dynamic-runner', 'dynamic-module-host', DynamicModulePageTarget>;
|
|
217
|
+
export interface UrlPageTarget {
|
|
218
|
+
url: string;
|
|
219
|
+
moduleAlias?: string;
|
|
220
|
+
}
|
|
221
|
+
export type RemoteUrlPageDescriptor = PageDescriptorBase<'remote-url', 'iframe' | 'new-window', 'external-page-host', UrlPageTarget>;
|
|
222
|
+
export type ExternalLinkPageDescriptor = PageDescriptorBase<'external-link', 'new-window', 'external-page-host', UrlPageTarget>;
|
|
223
|
+
export type PageDescriptor = PlatformRoutePageDescriptor | BusinessRoutePageDescriptor | DynamicModulePageDescriptor | RemoteUrlPageDescriptor | ExternalLinkPageDescriptor;
|
|
224
|
+
export interface MenuTab {
|
|
225
|
+
key: string;
|
|
226
|
+
title: string;
|
|
227
|
+
target?: MenuNavigationTarget;
|
|
228
|
+
pageDescriptor?: PageDescriptor;
|
|
229
|
+
restoreState?: TabRestoreState;
|
|
230
|
+
closable?: boolean;
|
|
231
|
+
}
|
|
232
|
+
export interface WorkbenchStartupState {
|
|
233
|
+
session: SessionContext;
|
|
234
|
+
menus: MenuTreeNode[];
|
|
235
|
+
tabs?: MenuTab[];
|
|
236
|
+
activeTabKey?: string;
|
|
237
|
+
}
|
|
238
|
+
export interface WebPageRequest {
|
|
239
|
+
pageNum: number;
|
|
240
|
+
pageSize: number;
|
|
241
|
+
}
|
|
242
|
+
export interface WebQueryCondition {
|
|
243
|
+
fieldName: string;
|
|
244
|
+
operator?: string;
|
|
245
|
+
values?: unknown[];
|
|
246
|
+
timeZone?: string;
|
|
247
|
+
}
|
|
248
|
+
export interface WebSort {
|
|
249
|
+
field: string;
|
|
250
|
+
desc?: boolean;
|
|
251
|
+
}
|
|
252
|
+
export interface WebQueryRequest {
|
|
253
|
+
page?: WebPageRequest;
|
|
254
|
+
unpaged?: boolean;
|
|
255
|
+
conditions?: WebQueryCondition[];
|
|
256
|
+
criteria?: unknown;
|
|
257
|
+
queryForm?: Record<string, unknown>;
|
|
258
|
+
sorts?: WebSort[];
|
|
259
|
+
uiConfigId?: string;
|
|
260
|
+
queryTemplateId?: string;
|
|
261
|
+
quickSearch?: string;
|
|
262
|
+
quickSearchFields?: string[];
|
|
263
|
+
externalQueryValues?: Record<string, unknown>;
|
|
264
|
+
}
|
|
265
|
+
export type QueryValueType = 'STRING' | 'TEXT' | 'BOOLEAN' | 'INTEGER' | 'LONG' | 'DECIMAL' | 'INSTANT' | 'DATE' | 'JSON';
|
|
266
|
+
export type QueryOperator = 'EQ' | 'NOT_EQUAL' | 'LIKE' | 'IN' | 'NOT_IN' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'NULL' | 'NOT_NULL';
|
|
267
|
+
export interface QuerySchemaField {
|
|
268
|
+
name: string;
|
|
269
|
+
title?: string;
|
|
270
|
+
valueType: QueryValueType;
|
|
271
|
+
operators: QueryOperator[];
|
|
272
|
+
defaultOperator?: QueryOperator;
|
|
273
|
+
quickSearch?: boolean;
|
|
274
|
+
sortable?: boolean;
|
|
275
|
+
optionTitleField?: string;
|
|
276
|
+
}
|
|
277
|
+
export interface QuerySchemaQuickSearch {
|
|
278
|
+
enabled: boolean;
|
|
279
|
+
fields: string[];
|
|
280
|
+
fieldSchemas: QuerySchemaField[];
|
|
281
|
+
}
|
|
282
|
+
export interface QuerySchemaExternalCriteria {
|
|
283
|
+
key: string;
|
|
284
|
+
valueType?: string;
|
|
285
|
+
providedBy?: string;
|
|
286
|
+
}
|
|
287
|
+
export interface QuerySchemaDefaultSort {
|
|
288
|
+
field: string;
|
|
289
|
+
desc?: boolean;
|
|
290
|
+
}
|
|
291
|
+
export interface QuerySchema {
|
|
292
|
+
scopeName: string;
|
|
293
|
+
entityAlias?: string;
|
|
294
|
+
quickSearch: QuerySchemaQuickSearch;
|
|
295
|
+
fields: QuerySchemaField[];
|
|
296
|
+
externalCriteria: QuerySchemaExternalCriteria[];
|
|
297
|
+
defaultSorts: QuerySchemaDefaultSort[];
|
|
298
|
+
}
|
|
299
|
+
export type ModuleViewKind = 'LIST' | 'FORM' | 'DETAIL';
|
|
300
|
+
export type ModuleUiClientType = 'WEB';
|
|
301
|
+
export interface UiRule<T> {
|
|
302
|
+
constant?: T;
|
|
303
|
+
}
|
|
304
|
+
export interface ViewFieldRef {
|
|
305
|
+
relationCode?: string;
|
|
306
|
+
fieldName: string;
|
|
307
|
+
fieldId?: string;
|
|
308
|
+
}
|
|
309
|
+
export interface ViewFieldDefinition {
|
|
310
|
+
fieldRef: ViewFieldRef;
|
|
311
|
+
label?: string;
|
|
312
|
+
visible?: UiRule<boolean>;
|
|
313
|
+
required?: UiRule<boolean>;
|
|
314
|
+
readOnly?: UiRule<boolean>;
|
|
315
|
+
uiType?: string;
|
|
316
|
+
width?: string;
|
|
317
|
+
align?: 'left' | 'center' | 'right' | string;
|
|
318
|
+
fixed?: boolean;
|
|
319
|
+
}
|
|
320
|
+
export interface ResolvedViewFieldDescriptor {
|
|
321
|
+
fieldRef: ViewFieldRef;
|
|
322
|
+
label?: string;
|
|
323
|
+
visible?: UiRule<boolean>;
|
|
324
|
+
required?: UiRule<boolean>;
|
|
325
|
+
readOnly?: UiRule<boolean>;
|
|
326
|
+
uiType?: string;
|
|
327
|
+
width?: string;
|
|
328
|
+
align?: 'left' | 'center' | 'right' | string;
|
|
329
|
+
fixed?: boolean;
|
|
330
|
+
option?: ResolvedOptionFieldDescriptor;
|
|
331
|
+
}
|
|
332
|
+
export interface OptionBindingDescriptor {
|
|
333
|
+
sourceType: string;
|
|
334
|
+
source: string;
|
|
335
|
+
}
|
|
336
|
+
export interface ResolvedOptionFieldDescriptor {
|
|
337
|
+
binding: OptionBindingDescriptor;
|
|
338
|
+
selectionMode: 'SINGLE' | 'MULTIPLE';
|
|
339
|
+
titleField?: string;
|
|
340
|
+
}
|
|
341
|
+
export interface OptionItemDescriptor {
|
|
342
|
+
code: string;
|
|
343
|
+
title: string;
|
|
344
|
+
enabled: boolean;
|
|
345
|
+
sortOrder?: number;
|
|
346
|
+
parentCode?: string;
|
|
347
|
+
}
|
|
348
|
+
export interface ViewDefinition {
|
|
349
|
+
viewCode: string;
|
|
350
|
+
viewKind: ModuleViewKind;
|
|
351
|
+
clientType?: ModuleUiClientType;
|
|
352
|
+
title?: string;
|
|
353
|
+
fields: ViewFieldDefinition[];
|
|
354
|
+
}
|
|
355
|
+
export interface ResolvedViewDescriptor {
|
|
356
|
+
viewCode: string;
|
|
357
|
+
viewKind: ModuleViewKind;
|
|
358
|
+
clientType?: ModuleUiClientType;
|
|
359
|
+
title?: string;
|
|
360
|
+
fields: ResolvedViewFieldDescriptor[];
|
|
361
|
+
}
|
|
362
|
+
export interface ResolvedUiActionConfirmationDescriptor {
|
|
363
|
+
mode: 'typedText';
|
|
364
|
+
requiredField: string;
|
|
365
|
+
}
|
|
366
|
+
export interface ResolvedUiActionDescriptor {
|
|
367
|
+
actionCode: string;
|
|
368
|
+
confirmation?: ResolvedUiActionConfirmationDescriptor;
|
|
369
|
+
}
|
|
370
|
+
export interface ModuleUiDefinition {
|
|
371
|
+
moduleAlias: string;
|
|
372
|
+
views: ViewDefinition[];
|
|
373
|
+
}
|
|
374
|
+
export interface ResolvedModuleUiDescriptor {
|
|
375
|
+
schemaVersion: string;
|
|
376
|
+
moduleAlias: string;
|
|
377
|
+
moduleKind?: 'STATIC' | 'DYNAMIC';
|
|
378
|
+
title?: string;
|
|
379
|
+
views: ResolvedViewDescriptor[];
|
|
380
|
+
actions?: ResolvedUiActionDescriptor[];
|
|
381
|
+
recordLabelField?: string;
|
|
382
|
+
}
|
|
383
|
+
export interface StandardEntity {
|
|
384
|
+
id?: string;
|
|
385
|
+
tenantId?: string;
|
|
386
|
+
version?: number;
|
|
387
|
+
deleted?: boolean;
|
|
388
|
+
deletedAt?: string;
|
|
389
|
+
createdBy?: string;
|
|
390
|
+
createdAt?: string;
|
|
391
|
+
updatedBy?: string;
|
|
392
|
+
updatedAt?: string;
|
|
393
|
+
}
|
|
394
|
+
export interface StandardTitledEntity extends StandardEntity {
|
|
395
|
+
title?: string;
|
|
396
|
+
}
|
|
397
|
+
export interface StandardSortableEntity extends StandardTitledEntity {
|
|
398
|
+
sortOrder?: number;
|
|
399
|
+
}
|
|
400
|
+
export interface StandardEnabledSortableEntity extends StandardSortableEntity {
|
|
401
|
+
enabled?: boolean;
|
|
402
|
+
}
|
|
403
|
+
export interface StandardTreeEntity extends StandardSortableEntity {
|
|
404
|
+
parentId?: string;
|
|
405
|
+
}
|
|
406
|
+
export interface StandardEnabledTreeEntity extends StandardTreeEntity {
|
|
407
|
+
enabled?: boolean;
|
|
408
|
+
}
|
|
409
|
+
export interface Organization extends StandardEnabledTreeEntity {
|
|
410
|
+
code?: string;
|
|
411
|
+
}
|
|
412
|
+
export interface Department extends StandardEnabledTreeEntity {
|
|
413
|
+
organizationId?: string;
|
|
414
|
+
code?: string;
|
|
415
|
+
}
|
|
416
|
+
export interface Employee extends StandardEnabledSortableEntity {
|
|
417
|
+
organizationId?: string;
|
|
418
|
+
departmentId?: string;
|
|
419
|
+
employeeNo?: string;
|
|
420
|
+
gender?: string;
|
|
421
|
+
genderTitle?: string;
|
|
422
|
+
mobile?: string;
|
|
423
|
+
email?: string;
|
|
424
|
+
}
|
|
425
|
+
export interface EmployeeAccount extends StandardEntity {
|
|
426
|
+
employeeId?: string;
|
|
427
|
+
userId?: string;
|
|
428
|
+
}
|
|
429
|
+
export interface EmployeeAccountProvisionResponse {
|
|
430
|
+
user?: UserAccount;
|
|
431
|
+
binding?: EmployeeAccount;
|
|
432
|
+
}
|
|
433
|
+
export interface UserAccount extends StandardEnabledSortableEntity {
|
|
434
|
+
username?: string;
|
|
435
|
+
/** Read projection of the employee currently bound to this account. */
|
|
436
|
+
employeeId?: string;
|
|
437
|
+
employeeNo?: string;
|
|
438
|
+
employeeTitle?: string;
|
|
439
|
+
password?: string;
|
|
440
|
+
passwordStatus?: UserPasswordStatus;
|
|
441
|
+
passwordStatusTitle?: string;
|
|
442
|
+
passwordChangedAt?: string;
|
|
443
|
+
passwordExpiresAt?: string;
|
|
444
|
+
lastLoginAt?: string;
|
|
445
|
+
lastLoginIp?: string;
|
|
446
|
+
lastLoginUserAgent?: string;
|
|
447
|
+
lastFailedLoginAt?: string;
|
|
448
|
+
failedLoginCount?: number;
|
|
449
|
+
lockedUntil?: string;
|
|
450
|
+
}
|
|
451
|
+
export interface UserEmployeeBindingView {
|
|
452
|
+
bindingId?: string;
|
|
453
|
+
employeeId?: string;
|
|
454
|
+
employeeNo?: string;
|
|
455
|
+
employeeTitle?: string;
|
|
456
|
+
organizationId?: string;
|
|
457
|
+
organizationTitle?: string;
|
|
458
|
+
departmentId?: string;
|
|
459
|
+
departmentTitle?: string;
|
|
460
|
+
}
|
|
461
|
+
export interface UserSessionView {
|
|
462
|
+
id: string;
|
|
463
|
+
userId: string;
|
|
464
|
+
username?: string;
|
|
465
|
+
tenantId?: string;
|
|
466
|
+
organizationId?: string;
|
|
467
|
+
issuedAt: string;
|
|
468
|
+
expiresAt: string;
|
|
469
|
+
maxExpiresAt?: string;
|
|
470
|
+
lastSeenAt?: string;
|
|
471
|
+
passwordChangeRequired?: boolean;
|
|
472
|
+
loginIp?: string;
|
|
473
|
+
loginUserAgent?: string;
|
|
474
|
+
terminalType?: string;
|
|
475
|
+
terminalTypeTitle?: string;
|
|
476
|
+
platformType?: string;
|
|
477
|
+
platformTypeTitle?: string;
|
|
478
|
+
current: boolean;
|
|
479
|
+
present?: boolean;
|
|
480
|
+
presenceStatus?: string;
|
|
481
|
+
presenceStatusTitle?: string;
|
|
482
|
+
connectionCount?: number;
|
|
483
|
+
lastConnectedAt?: string;
|
|
484
|
+
lastObservedAt?: string;
|
|
485
|
+
}
|
|
486
|
+
export interface UserSessionStatusView {
|
|
487
|
+
userId: string;
|
|
488
|
+
online: boolean;
|
|
489
|
+
activeSessionCount: number;
|
|
490
|
+
present?: boolean;
|
|
491
|
+
presentSessionCount?: number;
|
|
492
|
+
idleSessionCount?: number;
|
|
493
|
+
}
|
|
494
|
+
export type UserPasswordStatus = 'normal' | 'initial' | 'resetRequired' | 'expired';
|
|
495
|
+
export interface ResetPasswordResponse {
|
|
496
|
+
count: number;
|
|
497
|
+
temporaryPassword?: string;
|
|
498
|
+
expiresAt?: string;
|
|
499
|
+
}
|
|
500
|
+
export interface UserSelectorItem {
|
|
501
|
+
id: string;
|
|
502
|
+
username?: string;
|
|
503
|
+
employeeId?: string;
|
|
504
|
+
employeeNo?: string;
|
|
505
|
+
employeeTitle?: string;
|
|
506
|
+
organizationId?: string;
|
|
507
|
+
organizationTitle?: string;
|
|
508
|
+
departmentId?: string;
|
|
509
|
+
departmentTitle?: string;
|
|
510
|
+
}
|
|
511
|
+
export type RoleAssignmentType = 'account' | 'employment';
|
|
512
|
+
export type RoleKind = 'standard' | 'group' | 'dataGrant' | 'system';
|
|
513
|
+
export type RoleOwnerScopeType = 'platform' | 'tenant' | 'organization';
|
|
514
|
+
export type RoleSharePolicy = 'private' | 'ownerAndChildren' | 'tenant' | 'platform';
|
|
515
|
+
export type DataScopePolicy = 'none' | 'inheritDataGrant' | 'all' | 'owner' | 'assignee' | 'member' | 'organization' | 'organizationAndChildren' | 'department' | 'departmentAndChildren' | 'custom' | 'referenceDependency';
|
|
516
|
+
export type ManagementScopeType = 'platform' | 'tenant' | 'organization';
|
|
517
|
+
export interface Role extends StandardEnabledSortableEntity {
|
|
518
|
+
assignmentType?: RoleAssignmentType;
|
|
519
|
+
assignmentTypeTitle?: string;
|
|
520
|
+
roleKind?: RoleKind;
|
|
521
|
+
roleKindTitle?: string;
|
|
522
|
+
memberRoleIds?: string;
|
|
523
|
+
ownerScopeType?: RoleOwnerScopeType;
|
|
524
|
+
ownerScopeTypeTitle?: string;
|
|
525
|
+
ownerScopeId?: string;
|
|
526
|
+
ownerScopeKey?: string;
|
|
527
|
+
sharePolicy?: RoleSharePolicy;
|
|
528
|
+
sharePolicyTitle?: string;
|
|
529
|
+
builtIn?: boolean;
|
|
530
|
+
systemManaged?: boolean;
|
|
531
|
+
description?: string;
|
|
532
|
+
}
|
|
533
|
+
export interface RoleAuthorizationModule {
|
|
534
|
+
moduleAlias: string;
|
|
535
|
+
title: string;
|
|
536
|
+
applicationAlias?: string;
|
|
537
|
+
parentId?: string;
|
|
538
|
+
}
|
|
539
|
+
export interface RolePermissionAction {
|
|
540
|
+
moduleAlias: string;
|
|
541
|
+
actionCode: string;
|
|
542
|
+
permissionActionCode?: string;
|
|
543
|
+
title?: string;
|
|
544
|
+
titleKey?: string;
|
|
545
|
+
actionAuth?: boolean;
|
|
546
|
+
dataAuth?: boolean;
|
|
547
|
+
granted?: boolean;
|
|
548
|
+
dataScopePolicy?: DataScopePolicy;
|
|
549
|
+
referenceFieldId?: string;
|
|
550
|
+
referenceActionCode?: string;
|
|
551
|
+
}
|
|
552
|
+
export interface RolePermissionMatrixModule {
|
|
553
|
+
moduleAlias: string;
|
|
554
|
+
actions: RolePermissionAction[];
|
|
555
|
+
}
|
|
556
|
+
export interface RolePermissionMatrix {
|
|
557
|
+
roleId: string;
|
|
558
|
+
modules: RolePermissionMatrixModule[];
|
|
559
|
+
}
|
|
560
|
+
export interface RoleDataGrantActionMatrix {
|
|
561
|
+
roleId: string;
|
|
562
|
+
actions: Array<{
|
|
563
|
+
actionCode: string;
|
|
564
|
+
title?: string;
|
|
565
|
+
configured: boolean;
|
|
566
|
+
dataScopePolicy?: DataScopePolicy;
|
|
567
|
+
}>;
|
|
568
|
+
}
|
|
569
|
+
export interface RoleDataScopePolicyCatalog {
|
|
570
|
+
roleId: string;
|
|
571
|
+
options: Array<{
|
|
572
|
+
code: DataScopePolicy;
|
|
573
|
+
title: string;
|
|
574
|
+
}>;
|
|
575
|
+
referenceDependencies: Array<{
|
|
576
|
+
referenceFieldId: string;
|
|
577
|
+
title: string;
|
|
578
|
+
targetModuleAlias: string;
|
|
579
|
+
targetModuleTitle: string;
|
|
580
|
+
referenceActionCode: string;
|
|
581
|
+
referenceActionTitle: string;
|
|
582
|
+
}>;
|
|
583
|
+
}
|
|
584
|
+
export interface AccountRoleGrant extends StandardEntity {
|
|
585
|
+
roleId?: string;
|
|
586
|
+
/** User account primary key, not username. */
|
|
587
|
+
userId?: string;
|
|
588
|
+
managementScopeType?: ManagementScopeType;
|
|
589
|
+
managementScopeId?: string;
|
|
590
|
+
enabled?: boolean;
|
|
591
|
+
}
|
|
592
|
+
export interface EmploymentRoleGrant extends StandardEntity {
|
|
593
|
+
roleId?: string;
|
|
594
|
+
employeePositionId?: string;
|
|
595
|
+
enabled?: boolean;
|
|
596
|
+
}
|
|
597
|
+
export interface EmploymentSelectorItem {
|
|
598
|
+
id: string;
|
|
599
|
+
version?: number;
|
|
600
|
+
employeeId?: string;
|
|
601
|
+
employeeNo?: string;
|
|
602
|
+
employeeTitle?: string;
|
|
603
|
+
organizationId?: string;
|
|
604
|
+
organizationTitle?: string;
|
|
605
|
+
departmentId?: string;
|
|
606
|
+
departmentTitle?: string;
|
|
607
|
+
positionId?: string;
|
|
608
|
+
positionTitle?: string;
|
|
609
|
+
primaryPosition?: boolean;
|
|
610
|
+
enabled?: boolean;
|
|
611
|
+
username?: string;
|
|
612
|
+
}
|
|
613
|
+
export interface EmployeePosition extends StandardEntity {
|
|
614
|
+
employeeId?: string;
|
|
615
|
+
organizationId?: string;
|
|
616
|
+
departmentId?: string;
|
|
617
|
+
positionId?: string;
|
|
618
|
+
primaryPosition?: boolean;
|
|
619
|
+
enabled?: boolean;
|
|
620
|
+
}
|
|
621
|
+
export type PasswordPolicyScopeType = 'global' | 'tenant';
|
|
622
|
+
export interface PasswordPolicyRule extends StandardEnabledSortableEntity {
|
|
623
|
+
scopeType?: PasswordPolicyScopeType;
|
|
624
|
+
scopeTypeTitle?: string;
|
|
625
|
+
scopeId?: string;
|
|
626
|
+
scopeKey?: string;
|
|
627
|
+
pattern?: string;
|
|
628
|
+
message?: string;
|
|
629
|
+
description?: string;
|
|
630
|
+
}
|
|
631
|
+
export interface Application extends StandardEnabledSortableEntity {
|
|
632
|
+
alias?: string;
|
|
633
|
+
}
|
|
634
|
+
export type ModuleKind = 'static' | 'dynamic';
|
|
635
|
+
export type ModuleEntryType = 'module' | 'route' | 'link';
|
|
636
|
+
export interface PlatformModule extends StandardEnabledTreeEntity {
|
|
637
|
+
alias?: string;
|
|
638
|
+
applicationAlias?: string;
|
|
639
|
+
moduleKind?: ModuleKind;
|
|
640
|
+
entryType?: ModuleEntryType;
|
|
641
|
+
entryRoute?: string;
|
|
642
|
+
entryExternalUrl?: string;
|
|
643
|
+
systemManaged?: boolean;
|
|
644
|
+
}
|
|
645
|
+
/** A governed operation exposed by one platform module. */
|
|
646
|
+
export interface PlatformModuleAction extends StandardEnabledSortableEntity {
|
|
647
|
+
moduleAlias?: string;
|
|
648
|
+
actionCode?: string;
|
|
649
|
+
entityAlias?: string;
|
|
650
|
+
permissionActionCode?: string;
|
|
651
|
+
category?: 'STANDARD' | 'CUSTOM' | 'DIALOG' | 'WORKFLOW' | 'GENERATE';
|
|
652
|
+
actionLevel?: 'LIST' | 'RECORD' | 'BATCH' | 'ANY';
|
|
653
|
+
accessMode?: 'AUTH_REQUIRED' | 'LOGIN_REQUIRED' | 'ANONYMOUS_ALLOWED';
|
|
654
|
+
actionAuth?: boolean;
|
|
655
|
+
dataAuth?: boolean;
|
|
656
|
+
defaultGrantPolicy?: 'NONE' | 'ANY_LOGIN_USER' | 'OWNER' | 'ASSIGNEE' | 'MEMBER';
|
|
657
|
+
/** Governance-only overrides. Code declarations remain the default action fact. */
|
|
658
|
+
accessModeOverride?: 'AUTH_REQUIRED' | 'LOGIN_REQUIRED' | 'ANONYMOUS_ALLOWED';
|
|
659
|
+
actionAuthOverride?: boolean;
|
|
660
|
+
dataAuthOverride?: boolean;
|
|
661
|
+
defaultGrantPolicyOverride?: 'NONE' | 'ANY_LOGIN_USER' | 'OWNER' | 'ASSIGNEE' | 'MEMBER';
|
|
662
|
+
availableExpression?: string;
|
|
663
|
+
unavailableMessage?: string;
|
|
664
|
+
executorType?: 'STANDARD' | 'SERVICE' | 'DIALOG' | 'WORKFLOW' | 'GENERATE';
|
|
665
|
+
executorKey?: string;
|
|
666
|
+
sourceType?: string;
|
|
667
|
+
sourceId?: string;
|
|
668
|
+
sourceVersionId?: string;
|
|
669
|
+
bindingType?: string;
|
|
670
|
+
bindingId?: string;
|
|
671
|
+
bindingAlias?: string;
|
|
672
|
+
systemManaged?: boolean;
|
|
673
|
+
}
|
|
674
|
+
export interface Metadata extends StandardEnabledSortableEntity {
|
|
675
|
+
applicationAlias?: string;
|
|
676
|
+
alias?: string;
|
|
677
|
+
schemaName?: string;
|
|
678
|
+
tableName?: string;
|
|
679
|
+
dataScopeEnabled?: boolean;
|
|
680
|
+
sortPartitionFields?: string[];
|
|
681
|
+
}
|
|
682
|
+
export interface MetadataField extends StandardEnabledSortableEntity {
|
|
683
|
+
metadataId?: string;
|
|
684
|
+
fieldName?: string;
|
|
685
|
+
columnName?: string;
|
|
686
|
+
fieldSpecAlias?: string;
|
|
687
|
+
fieldOwnership?: string;
|
|
688
|
+
fieldForm?: string;
|
|
689
|
+
ownerFieldId?: string;
|
|
690
|
+
fieldRole?: string;
|
|
691
|
+
systemManaged?: boolean;
|
|
692
|
+
required?: boolean;
|
|
693
|
+
uniqueField?: boolean;
|
|
694
|
+
indexed?: boolean;
|
|
695
|
+
sortableField?: boolean;
|
|
696
|
+
titleField?: boolean;
|
|
697
|
+
}
|
|
698
|
+
export interface ModuleMetadataRelation extends StandardSortableEntity {
|
|
699
|
+
moduleAlias?: string;
|
|
700
|
+
metadataId?: string;
|
|
701
|
+
relationAlias?: string;
|
|
702
|
+
relationRole?: 'MAIN' | 'CHILD';
|
|
703
|
+
parentMetadataId?: string;
|
|
704
|
+
foreignKey?: string;
|
|
705
|
+
autoPopulate?: boolean;
|
|
706
|
+
}
|
|
707
|
+
export interface Tenant extends StandardEnabledSortableEntity {
|
|
708
|
+
alias?: string;
|
|
709
|
+
}
|
|
710
|
+
export interface FieldSpec extends StandardEnabledSortableEntity {
|
|
711
|
+
alias?: string;
|
|
712
|
+
fieldType?: string;
|
|
713
|
+
defaultLength?: number;
|
|
714
|
+
defaultPrecision?: number;
|
|
715
|
+
defaultScale?: number;
|
|
716
|
+
defaultQueryOperator?: string;
|
|
717
|
+
queryOperators?: string[];
|
|
718
|
+
defaultUiControlAlias?: string;
|
|
719
|
+
uiControlAliases?: string[];
|
|
720
|
+
}
|
|
721
|
+
export interface FieldUiControl extends StandardEnabledSortableEntity {
|
|
722
|
+
alias?: string;
|
|
723
|
+
defaultFieldSpecAlias?: string;
|
|
724
|
+
valueShape?: 'SCALAR' | 'COLLECTION' | 'COMPOSITE';
|
|
725
|
+
primaryValueKey?: string;
|
|
726
|
+
queryMode?: 'DEFAULT' | 'BETWEEN';
|
|
727
|
+
rendererType?: string;
|
|
728
|
+
icon?: string;
|
|
729
|
+
}
|
|
730
|
+
export interface FieldUiControlProperty extends StandardSortableEntity {
|
|
731
|
+
fieldUiControlAlias?: string;
|
|
732
|
+
attributeAlias?: string;
|
|
733
|
+
valueFieldSpecAlias?: string;
|
|
734
|
+
defaultValue?: string;
|
|
735
|
+
}
|
|
736
|
+
export interface FieldUiControlBinding extends StandardSortableEntity {
|
|
737
|
+
fieldUiControlAlias?: string;
|
|
738
|
+
valueKey?: string;
|
|
739
|
+
valueFieldSpecAlias?: string;
|
|
740
|
+
}
|
|
741
|
+
export interface TenantApplication extends StandardTitledEntity {
|
|
742
|
+
tenantId?: string;
|
|
743
|
+
applicationAlias?: string;
|
|
744
|
+
}
|
|
745
|
+
export interface PositionCategory extends StandardEnabledTreeEntity {
|
|
746
|
+
code?: string;
|
|
747
|
+
description?: string;
|
|
748
|
+
}
|
|
749
|
+
export interface Position extends StandardEnabledSortableEntity {
|
|
750
|
+
categoryId?: string;
|
|
751
|
+
code?: string;
|
|
752
|
+
description?: string;
|
|
753
|
+
}
|
|
754
|
+
export type DictionaryCategoryKind = 'FOLDER' | 'DICTIONARY' | 'folder' | 'dictionary';
|
|
755
|
+
export interface DictionaryCategory extends StandardEnabledTreeEntity {
|
|
756
|
+
applicationAlias?: string;
|
|
757
|
+
alias?: string;
|
|
758
|
+
categoryKind?: DictionaryCategoryKind;
|
|
759
|
+
}
|
|
760
|
+
export interface DictionaryItem extends StandardEnabledTreeEntity {
|
|
761
|
+
categoryId?: string;
|
|
762
|
+
categoryAlias?: string;
|
|
763
|
+
code?: string;
|
|
764
|
+
}
|
|
765
|
+
export interface TreeSortRequest {
|
|
766
|
+
previousId?: string | null;
|
|
767
|
+
nextId?: string | null;
|
|
768
|
+
parentId?: string | null;
|
|
769
|
+
}
|
|
770
|
+
export type FieldKind = 'input' | 'select' | 'dictionary-select' | 'reference-select';
|
|
771
|
+
export interface FieldCondition {
|
|
772
|
+
field: string;
|
|
773
|
+
equals?: Primitive;
|
|
774
|
+
notEquals?: Primitive;
|
|
775
|
+
}
|
|
776
|
+
export interface ReferenceContract {
|
|
777
|
+
targetModuleAlias: string;
|
|
778
|
+
keyField: string;
|
|
779
|
+
labelField: string;
|
|
780
|
+
fillBack?: Record<string, string>;
|
|
781
|
+
}
|
|
782
|
+
export interface FieldContract {
|
|
783
|
+
name: string;
|
|
784
|
+
label: string;
|
|
785
|
+
kind: FieldKind;
|
|
786
|
+
placeholder?: string;
|
|
787
|
+
required?: boolean;
|
|
788
|
+
disabled?: boolean;
|
|
789
|
+
options?: Option[];
|
|
790
|
+
dictionaryAlias?: string;
|
|
791
|
+
reference?: ReferenceContract;
|
|
792
|
+
visibleWhen?: FieldCondition;
|
|
793
|
+
readonlyWhen?: FieldCondition;
|
|
794
|
+
requiredWhen?: FieldCondition;
|
|
795
|
+
}
|
|
796
|
+
export interface FormContract {
|
|
797
|
+
title?: string;
|
|
798
|
+
fields: FieldContract[];
|
|
799
|
+
}
|
|
800
|
+
export interface TableColumn {
|
|
801
|
+
key: string;
|
|
802
|
+
title: string;
|
|
803
|
+
width?: number;
|
|
804
|
+
dictionaryAlias?: string;
|
|
805
|
+
}
|
|
806
|
+
export interface TableContract {
|
|
807
|
+
rowKey?: string;
|
|
808
|
+
columns: TableColumn[];
|
|
809
|
+
}
|
|
810
|
+
export interface ActionContract {
|
|
811
|
+
actionCode: string;
|
|
812
|
+
title: string;
|
|
813
|
+
level?: 'primary' | 'default' | 'danger';
|
|
814
|
+
disabled?: boolean;
|
|
815
|
+
disabledReason?: string;
|
|
816
|
+
}
|
|
817
|
+
export type RecordData = Record<string, Primitive>;
|
|
818
|
+
export interface DynamicPageDescriptor {
|
|
819
|
+
moduleAlias: string;
|
|
820
|
+
title: string;
|
|
821
|
+
form: FormContract;
|
|
822
|
+
list: TableContract;
|
|
823
|
+
actions: ActionContract[];
|
|
824
|
+
initialRecord: RecordData;
|
|
825
|
+
records: RecordData[];
|
|
826
|
+
}
|
|
827
|
+
export interface RecycleBinItem<T = Record<string, unknown>> {
|
|
828
|
+
record: T;
|
|
829
|
+
sourceDeleteOperationId: string | null;
|
|
830
|
+
deletedAt: string;
|
|
831
|
+
restorable: boolean;
|
|
832
|
+
purgeable: boolean;
|
|
833
|
+
unavailableReason?: string;
|
|
834
|
+
}
|
|
835
|
+
export type RestoreEntryStatus = 'RESTORED' | 'SKIPPED' | 'FAILED';
|
|
836
|
+
export interface RestoreEntryResult {
|
|
837
|
+
sourceEntryId: string;
|
|
838
|
+
moduleAlias: string;
|
|
839
|
+
entityAlias: string;
|
|
840
|
+
recordId: string;
|
|
841
|
+
status: RestoreEntryStatus;
|
|
842
|
+
message?: string;
|
|
843
|
+
}
|
|
844
|
+
export interface RestoreReport {
|
|
845
|
+
sourceOperationId: string;
|
|
846
|
+
restoreOperationId: string;
|
|
847
|
+
entries: RestoreEntryResult[];
|
|
848
|
+
}
|
|
849
|
+
export type PurgeEntryStatus = 'PURGED' | 'SKIPPED' | 'FAILED';
|
|
850
|
+
export interface PurgeEntryResult {
|
|
851
|
+
sourceEntryId: string;
|
|
852
|
+
moduleAlias: string;
|
|
853
|
+
entityAlias: string;
|
|
854
|
+
recordId: string;
|
|
855
|
+
status: PurgeEntryStatus;
|
|
856
|
+
message?: string;
|
|
857
|
+
}
|
|
858
|
+
export interface PurgeReport {
|
|
859
|
+
sourceOperationId: string;
|
|
860
|
+
purgeOperationId: string;
|
|
861
|
+
entries: PurgeEntryResult[];
|
|
862
|
+
}
|