/* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ export interface AssetVo { /** 资产id */ id: string; /** 资产名称 */ name: string; /** * 资产类型 * - point */ type: | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP'; /** 资产分类Id */ categoryId: string; /** 资产封面 */ thumb?: string | null; /** 描述 */ description: string; /** 配置 */ config: object; /** 排序字段 */ rank: number; } export interface AllAssetVo { /** 资产id */ id: string; /** 资产名称 */ name: string; /** * 资产类型 * - point */ type: | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP'; /** 资产分类Id */ categoryId: string; /** 资产封面 */ thumb?: string | null; /** 描述 */ description: string; /** 配置 */ config: object; /** 排序字段 */ rank: number; /** * 创建时间 * @format date-time */ createdAt: string; /** * 编辑时间 * @format date-time */ updatedAt: string; /** 创建者 */ createdUsername: string; /** 编辑者 */ updatedUsername: string; } export interface CreateAssetDto { /** 资产名称 */ name: string; /** 资产描述 */ description: string; /** 封面图 */ thumb: string | null; /** 分类id */ categoryId: string; /** 资产类型 */ type: | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP'; /** 是否发布 */ state?: 'published' | 'unpublished'; /** 资产配置 */ config: object; } export interface UpdateAssetDto { /** 资产名称 */ name?: string; /** 资产描述 */ description?: string; /** 封面图 */ thumb?: string; /** 分类id */ categoryId?: string; /** 资产类型 */ type?: | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP'; /** 是否发布 */ state?: 'published' | 'unpublished'; /** 资产配置 */ config?: object; } export interface BatchUpdateAssetDto { ids: string[]; /** * 是否发布 * - true 发布 * - false 未发布 */ state: 'published' | 'unpublished'; } export interface AssetCategoryVo { id: string; /** 分类名称 */ name: string; /** 排序字段 */ rank: number; /** * 创建时间 * @format date-time */ createdAt: string; /** * 更新时间 * @format date-time */ updatedAt: string; } export interface CreateCategoryDto { /** 分类名称 */ name: string; } export interface UpdateCategoryDto { /** 分类名称 */ name: string; } export interface ProjectVo { /** 项目id */ id: string; /** 项目名称名称 */ name: string; /** 项目组Id */ groupId: string; /** 账户id */ accountId: number; /** 描述 */ description: string; /** 封面图 */ thumb?: string | null; shareToken: string; /** * 删除时间 * @format date-time */ deletedAt: string; } export interface CreateProjectDto { /** 分组id */ groupId: string; } export interface CreateProjectVo { /** 项目id */ projectId: string; } export interface UpdateProjectDto { /** 项目名称 */ name?: string; /** 项目分组 */ groupId?: string; thumb?: string; } export interface ImportProjectDto { groupId: string; project: object; scenes: object[]; objs: object[]; tagGroups: object[]; tags: object[]; } export interface ExportProjectInfoVo { id: string; name: string; description: string; thumb?: string | null; } export interface ExportSceneInfoVo { id: string; projectId: string; name: string; commonConfig: object; stateConfig: object[]; viewpointConfig: object[]; } export interface ExportObjHierarchyVo { objId: string; sceneId: string; locked: boolean; visible: boolean; parentObjId: string | null; rank: number; mpath: string; } export interface ExportObjTagRelVo { tagId: string; objId: string; } export interface ExportObjInfoVo { id: string; sceneId: string; name: string; type: | 'BIZGROUP' | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'POINT_GROUP' | 'BATCH' | 'LINE' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP' | 'POINTLIGHT' | 'DIRECTLIGHT'; commonConfig: object; stateConfig: object[]; viewpointConfig: object[]; animationConfig: object[]; hierarchy: ExportObjHierarchyVo; tagIds: ExportObjTagRelVo[]; } export interface ExportTagGroupInfoVo { id: string; name: string; type: 'system' | 'custom'; rank: number; } export interface ExportTagInfoVo { id: string; name: string; groupId: string; } export interface ExportProjectVo { project: ExportProjectInfoVo; scenes: ExportSceneInfoVo[]; objs: ExportObjInfoVo[]; tagGroups: ExportTagGroupInfoVo[]; tags: ExportTagInfoVo[]; } export interface UpdateShareConfigDto { shared: boolean; } export interface ProjectGroupVo { /** 项目分组id */ id: string; /** 项目组名称 */ name: string; /** 项目数 */ count: number; /** 排序 */ rank: number; /** * 分组类型 * - custom 用户自定义 * - system 系统未分组(不可编辑) */ type: 'system' | 'custom'; } export interface CreateProjectGroupDto { /** 分组名称 */ name: string; } export interface CreateProjectGroupVo { id: string; } export interface UpdateProjectGroupDto { /** 分组名称 */ name: string; } export interface SortProjectGroupDto { /** 分组根据ids的顺序排序 */ ids: string[]; } export interface TagVo { /** 标签id */ id: string; /** 标签名称 */ name: string; /** 分组id */ groupId: string; count?: number; } export interface TagDetailObjVo { /** 元件id */ objId: string; /** 元件名称 */ name?: string; /** 场景id */ sceneId?: string; } export interface TagDetailVo { /** 标签id */ id: string; /** 标签名称 */ name: string; /** 分组id */ groupId: string; objs: TagDetailObjVo[]; /** * 创建时间 * @format date-time */ createdAt: string; /** * 编辑时间 * @format date-time */ updatedAt: string; } export interface CreateTagDto { /** 名称 */ name: string; } export interface CreateTagVo { id: string; } export interface UpdateTagDto { /** 名称 */ name?: string; /** 分组 */ targetGroupId?: string; } export interface TagGroupVo { /** 分组Id */ id: string; /** 分组名称 */ name: string; /** 排序字段 */ rank: number; /** 标签数 */ count: number; } export interface CreateTagGroupDto { /** 分组名称 */ name: string; } export interface CreateTagGroupVo { id: string; } export interface UpdateTagGroupDto { /** 分组名称 */ name: string; } export interface SortTagGroupDto { /** 排序ids */ ids: string[]; } export interface SceneVo { /** * 场景id * nanoid */ id: string; /** 项目id */ projectId: string; /** 项目名称 */ name: string; /** 公共配置 */ commonConfig: object; /** 状态配置 */ stateConfig: object[]; /** 镜头配置 */ viewpointConfig: object[]; } export interface UpdateSceneDto { /** 场景名称 */ name?: string; /** 场景配置 */ commonConfig?: object; } export interface AddSceneConfigDto { name: string; config: object; } export interface AddSceneConfigVo { id: string; } export interface UpdateSceneConfigDto { /** 配置名称 */ name?: string; /** 配置 */ config?: object; } export interface ObjVo { id: string; name: string; type: | 'BIZGROUP' | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'POINT_GROUP' | 'BATCH' | 'LINE' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP' | 'POINTLIGHT' | 'DIRECTLIGHT'; sceneId: string; commonConfig: object; stateConfig: object[]; viewpointConfig: object[]; animationConfig: object[]; locked: boolean; visible: boolean; parentObjId: string | null; /** @format date-time */ createdAt: string; /** @format date-time */ updatedAt: string; /** @format date-time */ deletedAt: string | null; children?: ObjVo[]; } export interface TagsVo { id?: string; name?: string; } export interface ObjDetailVo { id: string; name: string; type: | 'BIZGROUP' | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'POINT_GROUP' | 'BATCH' | 'LINE' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP' | 'POINTLIGHT' | 'DIRECTLIGHT'; sceneId: string; commonConfig: object; stateConfig: object[]; viewpointConfig: object[]; animationConfig: object[]; locked: boolean; visible: boolean; parentObjId: string | null; /** @format date-time */ createdAt: string; /** @format date-time */ updatedAt: string; /** @format date-time */ deletedAt: string | null; tags: TagsVo[]; } export interface CreateObjDto { name: string; type: | 'BIZGROUP' | 'MODEL' | 'POIPANNEL' | 'POIIFRAME' | 'POINT' | 'POINT_GROUP' | 'BATCH' | 'LINE' | 'PATHLINE' | 'FLYLINE' | 'POLYGON' | 'FENCE' | 'HEATMAP' | 'POINTLIGHT' | 'DIRECTLIGHT'; commonConfig: object; stateConfig: object[]; viewpointConfig: object[]; animationConfig: object[]; parentObjId?: string; } export interface CreateObjVo { objId: string; } export interface GatherObjDto { /** 需要成组的元件ids */ objIds: string[]; /** 组名称 */ name: string; /** 父级元件id */ parentObjId?: string; } export interface UpdateObjDto { name?: string; commonConfig?: object; } export interface CreateObjTagRelDto { tagIds: string[]; } export interface GetObjConfigVo { config: object; } export interface AddObjConfigDto { name: string; config: object; rank: number; } export interface AddStateConfigVo { stateId: string; } export interface UpdateObjConfigDto { /** 配置名称 */ name?: string; /** 配置 */ config?: object; rank?: number; } export interface AddViewpointConfigVo { viewpointId: string; } export interface AddAnimationConfigVo { animationId: string; } export interface UpdateHierarchyDto { /** * 是否锁定 * - false 未锁定 * - true 锁定 */ locked?: boolean; /** * 是否可视 * - false 不可视 * - true 可视 */ visible?: boolean; /** 父级id */ parentObjId?: string; /** 上级元件id */ sortUpperObjId?: string; /** 下级元件id */ sortLowerObjId?: string; } export interface UserVo { /** 账户id */ accountId: number; /** 用户id */ userId: number; /** 用户名 */ username: string; /** 用户在twin中的角色 */ role: 'custom' | 'root'; } export interface UserVerifyDto { code: string; } export interface InvitationCodeVo { invitationCode: string; } export interface ListModelCategoryVo { cornerMark: string; id: number; name: string; parentId: number; rank: number; } export interface ModuleVo { id: number; name: string; content: string; thumb: string; preview: string; officialCategory: { id: number; name: string }; } export interface PaginationVo { total: number; pageNum: number; pageSize: number; } export interface ListModelVo { data: ModuleVo[]; pagination: PaginationVo; }