跳到主要内容

TS类型

Item

interface Item {
ancestors: string[];
values: Record<string,any>; // custom field value
name: string; // Item title
workspace: { // Workspace
objectId: string;
},
itemType: { // Item type
objectId: string;
},
createdAt: string; // creation time
createdBy: { // creator
objectId: string
};
key: string; // Item key
status: { // Item status
objectId: string
};
updatedAt: string; // update time
objectId: string;
}

User

interface User {
objectId: string;
createdAt: string; // creation time
updatedAt: string; // update time
username: string; // user name
email: string;
enabled: boolean; // Whether to enable
deleted: boolean; // delete or not
nickname: string;
language: string; // language (e.g. 'zh-CN')
role: {
name: string; // role identification
isRoot: boolean; // Is it a top role
tag: string; // role Name
objectId: string;
};
}

Workspace

interface Workspace {
createdAt: string; // creation time
updatedAt: string; // update time
name: string; // workspace name
key: string; // workspace key
createdBy: { // creator
objectId: string;
};
lead: { // person in charge
objectId: string;
};
icon: string; // icon url
updatedBy: { // updater
objectId: string;
};
objectId: string;
}

ItemType

interface ItemType {
name: string; // item type name
key: string; // item type key
description: string;
icon: string; // icon url
objectId: string;
}

Filter

interface Filter {
createdAt: string; // creation time
updatedAt: string; // update time
expression: string; // iql
name: string; // filter name
global: boolean; // Whether to global filter
createdBy: { // creator
objectId: string;
};
objectId: string;
}

View

interface View {
name: string;
component: string;
permission: any;
createdBy: { // creator
objectId: string;
};
}

Board

interface Board {
name: string;
key: string;
workspace: Workspace;
permission: any;
filterSource: string;
icon: string;
createdBy: { // creator
objectId: string;
};
}

WorkspaceTemplate

interface WorkspaceTemplate {
workspace?: {objectId: string}; // 基于已有空间创建模版才有
objectId: string; // 空间模板的id
name: string; // 空间模板名称
itemTypeScheme: {objectId: string}; // 类型层级方案
itemTypeScreenScheme: {objectId: string}; // 类型界面方案
workflowScheme: {objectId: string}; // 工作流方案
}

BaseLineItem

interface BaseLineItem {
objectId: string; // 基线事项版本的id
itemId: string; // 原事项id
values: Record<string, any>
name: string;
key: string;
workspace: { // Workspace
objectId: string;
},
itemType: { // itemType
objectId: string;
},
status: { // status
objectId: string;
},
}

联系我们

邮箱:

client@oschina.cn

手机:

133-5294-7997

136-7025-2304

181-2418-5312

185-0387-0265

地址:

深圳市南山区西丽街道云科技大厦 22 楼

北京市昌平区回龙观东大街首开广场 5 层

在线咨询

image

关注我们

简体中文
Copyright ©2025 北京奥思研工智能科技有限公司京ICP备2025119063号