# userApi Module ## Overview This module provides APIs for user operations. ## API Functions ### common.ts Source: `src/api/user/common.ts` #### `getAppDetail()` ```typescript async function getAppDetail(id: string | number): Promise ``` #### `getDataset()` ```typescript async function getDataset(id: string | number, nodeId: string | number): Promise ``` #### `getOrganizationTree()` ```typescript async function getOrganizationTree(data: GetOrganizationTreeReqVO): Promise ``` #### `getOrganizationUsers()` ```typescript async function getOrganizationUsers(data: GetOrganizationUsersReqVO): Promise ``` #### `getUploadToken()` ```typescript async function getUploadToken(data: GetUploadTokenReqVO): Promise ``` #### `getIngress()` ```typescript async function getIngress(appId: string, ingressId: string): Promise ``` #### `setIngressOptionsTabber()` ```typescript async function setIngressOptionsTabber(appId: string, ingressId: string, data: IngressSetOptionsTabberReqVO): Promise ``` #### `mobileUpload()` ```typescript async function mobileUpload(data: MobileUploadReqVO): Promise ``` #### `checkMobileUpload()` ```typescript async function checkMobileUpload(data: MobileUploadCheckReqVO): Promise ``` #### `uploadPreview()` ```typescript async function uploadPreview(data: UploadPreviewReqVO): Promise ``` #### `validateEntityUnique()` ```typescript async function validateEntityUnique(appId: string, entityId: string, data: EntityValidateUniqReqVO): Promise ``` #### `queryEntityRelation()` ```typescript async function queryEntityRelation(appId: string, entityId: string, data: EntityQueryRelationReqVO): Promise ``` #### `queryLinktoPickOptions()` ```typescript async function queryLinktoPickOptions(appId: string, entityId: string, data: EntityQueryRelationReqVO): Promise ``` #### `queryLinktoValues()` ```typescript async function queryLinktoValues(appId: string, entityId: string, data: EntityQueryLinkToValuesReqVO): Promise ``` #### `getSubformRelationData()` ```typescript async function getSubformRelationData(appId: string, entityId: string, options: any): Promise ``` ### context.ts Source: `src/api/user/context.ts` #### `getContextUserToken()` ```typescript async function getContextUserToken(): Promise ``` ### copilot.ts Source: `src/api/user/copilot.ts` #### `initCopilotConversation()` ```typescript async function initCopilotConversation(): Promise ``` #### `sendCopilotMessage()` ```typescript async function sendCopilotMessage(data: CopilotSendMessageReqVO): Promise ``` ### dashboard.ts Source: `src/api/user/dashboard.ts` #### `getDashboard()` ```typescript async function getDashboard(appId: string, dashboardId: string): Promise ``` #### `getDashboardWidgets()` ```typescript async function getDashboardWidgets(appId: string, dashboardId: string): Promise ``` #### `getExportTask()` ```typescript async function getExportTask(id: string): Promise ``` #### `fetchWidgetsData()` ```typescript async function fetchWidgetsData(appId: string, data: FetchWidgetsDataReqVO): Promise ``` ### entity.ts Source: `src/api/user/entity.ts` #### `addEntityComment()` ```typescript async function addEntityComment(appId: string, entityId: string, rowId: string, data: EntityAddCommentReqVO): Promise ``` #### `configEntityAIImport()` ```typescript async function configEntityAIImport(appId: string, entityId: string, data: EntityAIImportConfigReqVO): Promise ``` #### `updateEntityBulk()` ```typescript async function updateEntityBulk(appId: string, entityId: string, data: EntityBulkUpdateReqVO): Promise ``` #### `saveEntityBulkUpdateAs()` ```typescript async function saveEntityBulkUpdateAs(appId: string, entityId: string, data: EntityBulkUpdateSaveAsReqVO): Promise ``` #### `deleteEntityComment()` ```typescript async function deleteEntityComment(appId: string, entityId: string, rowId: string, data: EntityDelCommentReqVO): Promise ``` #### `doEntityAction()` ```typescript async function doEntityAction(appId: string, entityId: string, rowId: string, action: string, data: EntityDoActionReqVO): Promise ``` #### `doEntityFsmAction()` ```typescript async function doEntityFsmAction(appId: string, entityId: string, actionCode: string, data: EntityDoFsmActionReqVO): Promise ``` #### `exportEntity()` ```typescript async function exportEntity(appId: string, entityId: string, data: EntityExportReqVO): Promise ``` #### `getEntityComments()` ```typescript async function getEntityComments(appId: string, entityId: string, rowId: string, data: CommonQueryFormVO): Promise ``` #### `getEntityLogs()` ```typescript async function getEntityLogs(appId: string, entityId: string, rowId: string, data: CommonQueryFormVO): Promise ``` #### `importEntity()` ```typescript async function importEntity(appId: string, entityId: string, data: EntityImportReqVO & EntityImportActionVO): Promise ``` #### `prepareEntityImport()` ```typescript async function prepareEntityImport(appId: string, entityId: string, data: EntityImportPrepareReqVO): Promise ``` #### `getEntityInfo()` ```typescript async function getEntityInfo(appId: string, entityId: string,): Promise ``` #### `invokeEntityBatchOperator()` ```typescript async function invokeEntityBatchOperator(appId: string, entityId: string, data: EntityInvokeBatchOperatorReqVO & InvokeRequestVO): Promise ``` #### `invokeEntityHook()` ```typescript async function invokeEntityHook(appId: string, entityId: string, actionId: string, data: InvokeRequestVO): Promise ``` #### `getEntityProcessMap()` ```typescript async function getEntityProcessMap(appId: string, entityId: string, rowId: string): Promise ``` #### `getEntityPrintTemplates()` ```typescript async function getEntityPrintTemplates(appId: string, entityId: string): Promise ``` ### flow.ts Source: `src/api/user/flow.ts` #### `queryUserFlow()` ```typescript async function queryUserFlow(data: UserFlowQueryReqVO): Promise ``` #### `getUserFlowStatus()` ```typescript async function getUserFlowStatus(): Promise ``` ### global-action.ts Source: `src/api/user/global-action.ts` #### `acceptTenantInvitation()` ```typescript async function acceptTenantInvitation(data: GlobalActionAcceptInvitationReqVO): Promise ``` #### `acceptTenantInvitationLink()` ```typescript async function acceptTenantInvitationLink(data: GlobalActionAcceptInvitationLinkReqVO): Promise ``` #### `createTenant()` ```typescript async function createTenant(data: GlobalActionCreateTenantReqVO): Promise ``` #### `setDefaultTenant()` ```typescript async function setDefaultTenant(data: GlobalActionSetDefaultTenantReqVO): Promise ``` #### `verifyEmail()` ```typescript async function verifyEmail(data: GlobalActionEmailVerifyReqVO): Promise ``` #### `resendEmailVerify()` ```typescript async function resendEmailVerify(data: GlobalActionEmailVerifyResendReqVO): Promise ``` #### `getEmailVerifyStatus()` ```typescript async function getEmailVerifyStatus(): Promise ``` #### `getEntry()` ```typescript async function getEntry(refresh: boolean = false): Promise ``` #### `getTenantAuthRole()` ```typescript async function getTenantAuthRole(): Promise ``` #### `getTenantInvitationLink()` ```typescript async function getTenantInvitationLink(id: string): Promise ``` #### `getLink()` ```typescript async function getLink(name: string): Promise ``` #### `setProfileEmail()` ```typescript async function setProfileEmail(data: GlobalActionProfileSetEmailReqVO): Promise ``` #### `cancelProfileEmail()` ```typescript async function cancelProfileEmail(hashid: string): Promise ``` #### `getProfileEmailHistory()` ```typescript async function getProfileEmailHistory(): Promise ``` ### kiosk.ts Source: `src/api/user/kiosk.ts` #### `getKioskScreens()` ```typescript async function getKioskScreens(appId: string): Promise ``` ### profile.ts Source: `src/api/user/profile.ts` #### `getUserProfile()` ```typescript async function getUserProfile(): Promise ``` #### `updateUserProfile()` ```typescript async function updateUserProfile(data: UserProfileUpdateReqVO): Promise ``` #### `updateUserAvatar()` ```typescript async function updateUserAvatar(data: UpdateAvatarReqVO): Promise ``` #### `getUserAuthChannels()` ```typescript async function getUserAuthChannels(): Promise ``` #### `changeUserPassword()` ```typescript async function changeUserPassword(data: ChangePasswordReqVO): Promise ``` #### `fetchEntityUserToken()` ```typescript async function fetchEntityUserToken(appId: string, entityId: string): Promise ``` ### workflow.ts Source: `src/api/user/workflow.ts` #### `putEntityQueryKeeper()` ```typescript async function putEntityQueryKeeper(appId: string, entityId: string, data: EntityPutQueryKeeperReqVO): Promise ``` #### `queryEntity()` ```typescript async function queryEntity(appId: string, entityId: string, data: EntityQueryReqVO): Promise ``` #### `filterEntityQuery()` ```typescript async function filterEntityQuery(appId: string, entityId: string, data: EntityQueryFilterReqVO): Promise ``` #### `queryEntitySelection()` ```typescript async function queryEntitySelection(appId: string, entityId: string, action: string, data: EntitySelectionActionReqVO): Promise ``` #### `resolveEntityWorkflow()` ```typescript async function resolveEntityWorkflow(appId: string, entityId: string, data: EntityResolveWorkflowReqVO): Promise ``` #### `getEntityRow()` ```typescript async function getEntityRow(appId: string, entityId: string, rowId: string, params?: Record): Promise ``` #### `deleteEntityRow()` ```typescript async function deleteEntityRow(appId: string, entityId: string, data: EntitySelectionActionReqVO): Promise ``` #### `restoreEntityRow()` ```typescript async function restoreEntityRow(appId: string, entityId: string, data: EntitySelectionActionReqVO): Promise<{ restored: number }> ``` #### `updateEntityRow()` ```typescript async function updateEntityRow(appId: string, entityId: string, rowId: string, data: EntityUpdateReqVO): Promise ``` #### `validateEntityUniq()` ```typescript async function validateEntityUniq(appId: string, entityId: string, data: EntityValidateUniqReqVO): Promise ``` #### `insertEntity()` ```typescript async function insertEntity(appId: string, entityId: string, data: InsertReqVO): Promise ``` #### `prepareEntityInsert()` ```typescript async function prepareEntityInsert(appId: string, entityId: string, data: InsertPrepareReqVO): Promise ``` #### `queryEntityWorkflowApproveUsers()` ```typescript async function queryEntityWorkflowApproveUsers(appId: string, entityId: string): Promise ``` #### `queryEntityWorkflowNodes()` ```typescript async function queryEntityWorkflowNodes(appId: string, entityId: string): Promise ``` #### `getEntitySubformItems()` ```typescript async function getEntitySubformItems(appId: string, entityId: string, rowId: string, data: GetSubformItemsReqVO): Promise ```