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;
},
}