/* eslint-disable */ /* tslint:disable */ // @ts-nocheck /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ /** @format int32 */ import type { WorkflowStateType, PermitValueFrom, PermitEntityProp, PermitEntityEvent, NotificationPayloadMode, NotificationNotificationType, WidgetsTypeCode, PronounsType, MagicStringPartType, CubeMeasureAggregate, GormDeletedAt, AiOptions, ApiEndpoint, ApiEndpointParam, ApiOptions, App, AppOptions, Assets, Button, ChartOption, CubeDimension, CubeMeasure, CustomAction, DashboardOptions, DashboardWidgets, DataRecord, EntityFrontEvent, EntityOptions, EntityPrintTemplate, Fields, IngressGroup, IngressItem, MagicString, MagicStringPart, Tenant, TenantDepartment, User, WidgetsListViewOptions, WidgetsOption, DataRecordProcess, DataRecordResource, DataRecordTrans, I18NText, PermitColumn, PermitConditionSet, PermitEntityListOptions, PermitEntityListTab, PermitEntityListWidget, PermitFieldPermit, PermitPolicy, PermitRecordCondition, PermitSearchColumn, PermitUserScope, PostqueryAppendData, PostqueryUserData, PostqueryAssetsData, PostqueryDepartmentData, PostqueryLinktoData, SqlNullTime, StorageUrlSets, CommonPagination, EntityValidateUniqFieldVO, EntityValidateUniqReqVO, EntityValidateUniqRespVO, EntityWorkflowNodeVO, EntityWorkflowVersionVO, ErrorResponse, UploadPreviewReqVO } from './common' export enum EventTrigger { EventTriggerAutomate = 1, EventTriggerUser = 2, EventTriggerApi = 3, EventTriggerSystem = 4, } export enum ExportTaskStatus { ExportTaskStatusInit = 0, ExportTaskStatusProcessing = 1, ExportTaskStatusUploading = 2, ExportTaskStatusFinished = 3, } export interface EntityUtilsQueryOrder { column?: string; order?: string; } export interface EntityComments { attachments?: number[]; content?: string; created_at?: string; field_id?: number; id?: number; quote?: string; tenant_user_id?: number; transition_id?: number; updated_at?: string; } export interface EntityLogs { app_id?: number; created_at?: string; entity_id?: number; event?: PermitEntityEvent; id?: number; meta?: Record; record_id?: number; tenant_id?: number; trigger_by?: EventTrigger; trigger_id?: number; updated_at?: string; } export interface Ingress { count?: number; groups?: IngressGroup[]; } export interface IngressUserOptions { bulk_update?: QucikBultUpdate[]; field_widths?: Record; fields_orders?: number[]; hidden_fields?: number[]; tabs?: PermitEntityUserTab[]; } export interface Login { /** github, google, wechat, alipay etc */ provider?: string; /** github UID, google UID, etc */ uid?: string; } export interface QucikBultUpdate { id?: number; label?: string; subject?: string; updatedAt?: string; } export interface TenantUser { createdAt?: string; deletedAt?: SqlNullTime; email?: string; /** not in db */ hashID?: string; id?: number; idcardNumber?: string; isAdmin?: boolean; joinAt?: string; kioskUserOnly?: boolean; mobile?: string; name?: string; staffID?: string; status?: number; tenant?: Tenant; tenantID?: number; updatedAt?: string; user?: User; userID?: number; } export interface UploadInfo { file?: string; file_name?: string; file_size?: number; upload_id?: number; url?: string; } export interface UploadSet { file?: string; upload_id?: number; url?: string; url_expired_at?: number; } export interface UserVo { avatar?: string; id?: number; metadata?: Record; name?: string; } export interface PermitEntityUserTab { base?: string; filters?: PermitFilter[]; label?: string; query?: string; } export interface PermitFilter { column?: string; conditions?: PermitFilterCond; } export interface PermitFilterCond { at?: any; eq?: number; expr?: number[]; ge?: number; gt?: number; in?: string[]; is?: string; le?: number; lt?: number; null?: boolean; number_in?: number[]; } export interface PermitPermit { all_fields_read?: boolean; all_fields_write?: boolean; fields?: PermitFieldPermit[]; } export interface AppDetailDashboardVO { id?: number; name?: string; } export interface AppDetailEntityVO { id?: number; name?: string; } export interface AppDetailRespVO { dashboards?: AppDetailDashboardVO[]; entities?: AppDetailEntityVO[]; has_kiosk?: boolean; has_workflow?: boolean; i18n?: Record; icon_color?: string; icon_name?: string; id?: number; ingress?: Ingress; is_app_admin?: boolean; name?: string; use_home_dashboard?: boolean; } export interface AuthChannelsRespVO { allMethods?: any[]; channels?: Login[]; } export interface ChangePasswordReqVO { newPassword?: string; oldPassword?: string; userId?: number; } export interface CommonQueryFormVO { filter?: string; pagination?: CommonPagination; } export interface DashboardGetRespVO { app?: App; app_id?: number; createdAt?: string; deletedAt?: GormDeletedAt; enabled?: boolean; id?: number; last_modified_by?: number; name?: string; options?: DashboardOptions; sort?: number; updatedAt?: string; } export interface EntityAIImportConfigReqVO { currentColumns?: any[]; fields?: any[]; } export type EntityAIImportConfigRespVO = Record; export interface EntityAddCommentReqVO { attachments?: EntityCommentStorageTypeVO[]; content?: string; field_id?: number; quote?: string; transition_id?: number; } export interface EntityAddCommentRespVO { attachments?: number[]; content?: string; created_at?: string; field_id?: number; id?: number; quote?: string; tenant_user_id?: number; transition_id?: number; } export interface EntityBulkUpdateActionVO { number_add?: number; number_mul?: number; number_sub?: number; text_append?: string; text_prepend?: string; text_replace?: string; text_search?: string; type?: string; value?: any; } export interface EntityBulkUpdateFieldVO { action?: EntityBulkUpdateActionVO; id?: number; } export interface EntityBulkUpdateReqVO { fields?: EntityBulkUpdateFieldVO[]; policy_id?: string; } export interface EntityBulkUpdateRespVO { updated?: number; } export interface EntityBulkUpdateSaveAsReqVO { fields?: EntityBulkUpdateFieldVO[]; name?: string; subject?: string; } export interface EntityCommentStorageTypeVO { assets_id?: number; file?: string; file_name?: string; meta?: Record; upload_id?: number; } export interface EntityDelCommentReqVO { comment_id?: number; } export interface EntityDoActionCommentVO { attachments?: EntityCommentStorageTypeVO[]; content?: string; field_id?: number; quote?: string; transition_id?: number; } export interface EntityDoActionReqVO { backstep?: number; changed?: number[]; comment?: EntityDoActionCommentVO; deferReason?: string; deferTime?: number; fields?: Record; task_id?: number; user?: EntityDoActionUserScopeVO[]; } export interface EntityDoActionUserScopeVO { id?: number; type?: string; } export interface EntityDoFsmActionReqVO { append?: Record; policy_id?: string; required_count?: number; } export interface EntityDoFsmActionRespVO { updated?: number; } export interface EntityExportReqVO { fields?: number[]; options?: { has_id?: boolean; }; policy_id?: string; propnames?: Record; props?: string[]; } export interface EntityExportRespVO { task_id?: string; } export interface EntityGetCommentsPaginationVO { page?: number; size?: number; total?: number; } export interface EntityGetCommentsRespVO { addition?: any; items?: EntityComments[]; pagination?: EntityGetCommentsPaginationVO; } export interface EntityGetLogsRespVO { addition?: any; items?: EntityLogs[]; pagination?: EntityGetCommentsPaginationVO; } export interface EntityImportActionVO { /** 可能的值: "init", "upload", "process", "state" */ action?: string; taskId?: string; } export interface EntityImportPrepareReqVO { task_id?: string; } export interface EntityImportReqVO { dataset_id?: number; node_id?: number; } export interface EntityImportRespVO { /** 来自 ImporterGetStateRespVO 和 ImporterDoProcessRespVO */ state?: Record; status?: string; /** 来自 ImporterInitTokenRespVO */ taskId?: string; token?: UploadTokenVO; } export interface EntityInvokeBatchOperatorDataVO { action_id?: string; policy_id?: string; selection?: EntitySelectionVO; } export interface EntityInvokeBatchOperatorReqVO { data?: EntityInvokeBatchOperatorDataVO; id?: string; } export interface EntityProcessMapDiagramEdgeVO { id?: string; markerEnd?: string; source?: string; sourceHandle?: string; sourceX?: number; sourceY?: number; target?: string; targetX?: number; targetY?: number; type?: string; } export interface EntityProcessMapDiagramNodePositionVO { x?: number; y?: number; } export interface EntityProcessMapDiagramNodeVO { id?: string; label?: string; mode?: string; position?: EntityProcessMapDiagramNodePositionVO; type?: string; } export interface EntityProcessMapDiagramVO { edges?: EntityProcessMapDiagramEdgeVO[]; nodes?: EntityProcessMapDiagramNodeVO[]; position?: number[]; zoom?: number; } export interface EntityProcessMapRespVO { diagram?: EntityProcessMapDiagramVO; /** workflow.Process类型 */ process?: any; version?: number; } export interface EntityPutQueryKeeperReqVO { policy_id?: string; selection?: EntitySelectionVO; } export interface EntityPutQueryKeeperRespVO { id?: string; user_token?: string; } export interface EntityQueryFilterReqVO { column?: string; policy_id?: string; query?: string; } export interface EntityQueryFilterRespVO { /** *postquery.AppendData类型 */ addition?: any; items?: any; } export interface EntityQueryLinkToValuesReqVO { addition?: boolean; data?: Record; entity?: boolean; field_id?: number; input?: string; limit?: number; offset?: number; policies?: boolean; query?: string; record_id?: number; total?: boolean; } export interface EntityQueryOrderVO { column?: string; order?: string; } export interface EntityQueryRelationReqVO { addition?: boolean; data?: Record; entity?: boolean; field_id?: number; input?: string; limit?: number; offset?: number; policies?: boolean; query?: string; total?: boolean; } export interface EntityQueryReqVO { limit?: number; offset?: number; policy_id?: string; search?: Record; sorts?: EntityQueryOrderVO[]; /** 数据视图模式: normal, deleted, archived */ view_mode?: string; /** 是否包含子表单数据,默认为false */ withSubForm?: boolean; } export interface EntityQueryRespVO { /** *postquery.AppendData类型 */ additional?: any; items?: DataRecord[]; limit?: number; offset?: number; total?: number; } export interface EntityResolveWorkflowReqVO { approve_users?: number[]; closeCurrentTasks?: boolean; node_id?: number; policy_id?: string; record_id?: number; version_id?: number; } export interface EntityResolveWorkflowRespVO { succeed?: boolean; transitionID?: number; } export interface EntityRowDeleteRespVO { deleted?: number; entity_id?: number; } export interface EntityRowRespVO { actions?: Record; /** *postquery.AppendData类型 */ additional?: any; comments?: EntityComments[]; current_task?: any; fieldPermits?: PermitPermit; is_admin_mode?: boolean; my_tasks?: Record; primary_actions?: any[]; record?: DataRecord; transitions?: EntityRowTransitionVO[]; wf_options?: any; workflow_id?: number; } export interface EntityRowTaskVO { finished?: boolean; id?: number; } export interface EntityRowTransitionTaskVO { assets?: number[]; co_sign_for?: number; created_at?: number; finished?: boolean; finished_at?: number; id?: number; readed?: boolean; rollback_to?: number; tenant_user_id?: number; } export interface EntityRowTransitionVO { enter_time?: number; leave_time?: number; node_name?: string; state?: any; tasks?: EntityRowTransitionTaskVO[]; transition_id?: number; } export interface EntitySelectionActionReqVO { limit?: number; /** 分页参数,可选 */ offset?: number; policy_id?: string; selection?: EntitySelectionVO; } export interface EntitySelectionQueryOrderVO { column?: string; order?: string; } export interface EntitySelectionVO { condition?: Record; ids?: number[]; length?: number; sorts?: EntitySelectionQueryOrderVO[]; type?: string; } export interface EntityUpdateReqVO { changed_fields?: number[]; data?: Record; policy_id?: string; tags?: string[]; } export interface EntityWorkflowApproveUsersReqVO { node_id?: number; policy_id?: string; record_id?: number; version_id?: number; } export interface EntityWorkflowApproveUsersRespVO { addition?: any; users?: number[]; } export interface EntityWorkflowNodesRespVO { versions?: EntityWorkflowVersionVO[]; } export interface ExportTaskRespVO { current?: number; download_url?: string; item_count?: number; status?: ExportTaskStatus; task_id?: string; } export interface FetchWidgetsDataReqVO { dashboard_id?: number; ingress_hash_id?: string; ingress_id?: number; querys?: { /** entityUtils.Query */ search?: Record; sorts?: EntityUtilsQueryOrder[]; }; type?: WidgetsTypeCode; } export interface FetchWidgetsDataRespVO { items?: Record[]>; } export interface GetOrganizationTreeReqVO { parent_id?: number; } export interface GetOrganizationUsersPagerVO { page?: number; size?: number; total?: number; } export interface GetOrganizationUsersReqVO { actor?: number[]; department?: number[]; pager?: { page?: number; size?: number; }; search?: string; status?: number[]; } export interface GetOrganizationUsersRespVO { additional?: PostqueryAppendData; pager?: GetOrganizationUsersPagerVO; users?: UserVo[]; } export interface GetSubformItemsReqVO { fields?: number[]; policy_id?: string; } export interface GetSubformItemsRespVO { /** *postquery.AppendData类型 */ additional?: any; subforms?: Record; } export interface GetUploadTokenReqVO { global?: boolean; } export interface GetUploadTokenRespVO { id?: number; mode?: string; token_data?: any; } export interface ImporterDoProcessRespVO { state?: Record; /** 可能的值: "finished", "config", "processing", "uploaded", "init" */ status?: string; taskId?: string; } export interface ImporterGetStateRespVO { state?: Record; /** 可能的值: "finished", "config", "processing", "uploaded", "init" */ status?: string; taskId?: string; } export interface ImporterInitTokenRespVO { taskId?: string; token?: UploadTokenVO; } export interface IngressContentBlockVO { code?: string; content?: string; } export interface IngressRespVO { app_id?: number; blocks?: IngressContentBlockVO[]; field_id_seq?: number; fields?: Fields; has_admin?: boolean; id?: number; ingress?: { meta?: Record; name?: string; }; layout?: number[][]; list_options?: PermitEntityListOptions; name?: string; options?: EntityOptions; policy?: PermitPolicy; print_templates?: EntityPrintTemplate[]; prototypes?: number[]; schema_version?: number; user_options?: IngressUserOptions; widgets?: DashboardWidgets[]; workflow_enabled?: boolean; } export interface IngressSetOptionsTabberReqVO { tabs?: PermitEntityUserTab[]; } export interface InsertPrepareReqVO { policy_id?: string; } export interface InsertPrepareRespVO { additional?: PostqueryAppendData; fieldPermits?: PermitPermit; } export interface InsertReqVO { fields?: Record; policy_id?: string; } export interface InvokeRequestVO { params?: Record; } export interface KioskScreenAdminVO { entity_id?: number; } export interface KioskScreenVO { admin?: KioskScreenAdminVO; id?: string; name?: string; } export interface MobileUploadCheckReqVO { id?: number; ignored?: Record; secret?: string; } export interface MobileUploadCheckRespVO { uploads?: UploadInfo[]; } export interface MobileUploadReqVO { options?: Record; } export interface MobileUploadRespVO { id?: number; secret?: string; url?: string; } export interface UpdateAvatarReqVO { filename?: string; upload_id?: number; } export interface UploadTokenVO { id?: number; mode?: string; token_data?: any; } export interface UserProfileRespVO { TenantUser?: TenantUser; User?: User; avatar?: string; } export interface UserProfileUpdateReqVO { Changed?: Record; TenantUser?: TenantUser; User?: User; } export interface UserProfileUpdateRespVO { Changed?: Record; TenantUser?: TenantUser; User?: User; }