n8n-nodes-base
Version:
Base nodes of n8n
77 lines (72 loc) • 1.89 kB
text/typescript
/**
* ClickUp Node - Version 1
* Discriminator: resource=folder, operation=get
*/
interface Credentials {
clickUpApi: CredentialReference;
clickUpOAuth2Api: CredentialReference;
}
/** Get a folder */
export type ClickUpV1FolderGetParams = {
resource: 'folder';
operation: 'get';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
team?: string | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
space?: string | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
folder?: string | Expression<string>;
};
export type ClickUpV1FolderGetOutput = {
archived?: boolean;
hidden?: boolean;
id?: string;
lists?: Array<{
archived?: boolean;
content?: string;
id?: string;
name?: string;
orderindex?: number;
permission_level?: string;
statuses?: Array<{
color?: string;
id?: string;
orderindex?: number;
status?: string;
status_group?: string;
type?: string;
}>;
task_count?: number;
}>;
name?: string;
orderindex?: number;
override_statuses?: boolean;
permission_level?: string;
space?: {
access?: boolean;
id?: string;
name?: string;
};
statuses?: Array<{
color?: string;
id?: string;
orderindex?: number;
status?: string;
type?: string;
}>;
task_count?: string;
};
export type ClickUpV1FolderGetNode = {
type: 'n8n-nodes-base.clickUp';
version: 1;
credentials?: Credentials;
config: NodeConfig<ClickUpV1FolderGetParams>;
output?: Items<ClickUpV1FolderGetOutput>;
};