fixed up get and create Clickup task to use the clickup type
This commit is contained in:
parent
0a45a1f5fb
commit
474390c889
13 changed files with 96 additions and 197 deletions
|
@ -12,8 +12,17 @@ interface TaskBase {
|
|||
text_content?: string;
|
||||
|
||||
// Status & Priority
|
||||
status?: string;
|
||||
priority?: 1 | 2 | 3 | 4;
|
||||
status?: string | {
|
||||
status: string;
|
||||
color: string;
|
||||
orderindex: number;
|
||||
type: 'open' | 'closed' | 'custom';
|
||||
};
|
||||
priority?: 1 | 2 | 3 | 4 | {
|
||||
id: string;
|
||||
priority: 'urgent' | 'high' | 'normal' | 'low';
|
||||
color: string;
|
||||
};
|
||||
|
||||
// Time Management
|
||||
due_date?: number | null;
|
||||
|
@ -84,6 +93,14 @@ interface TaskResponse extends TaskBase {
|
|||
date_done?: string | null;
|
||||
archived: boolean;
|
||||
|
||||
// Override the status property to be more specific
|
||||
status: {
|
||||
status: string;
|
||||
color: string;
|
||||
orderindex: number;
|
||||
type: 'open' | 'closed' | 'custom';
|
||||
};
|
||||
|
||||
/** System Relationships */
|
||||
list: {
|
||||
id: string;
|
||||
|
@ -115,14 +132,6 @@ interface TaskResponse extends TaskBase {
|
|||
subtasks: TaskResponse[];
|
||||
attachments: Attachment[];
|
||||
|
||||
/** Status Details */
|
||||
status: {
|
||||
status: string;
|
||||
color: string;
|
||||
orderindex: number;
|
||||
type: 'open' | 'closed' | 'custom';
|
||||
};
|
||||
|
||||
/** Priority Details */
|
||||
priority: {
|
||||
id: string;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
summary: null
|
||||
summary: ''
|
||||
display_name: types
|
||||
extra_perms:
|
||||
g/all: false
|
||||
u/peter: true
|
||||
owners:
|
||||
- u/peter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue