n8n-nodes-base
Version:
Base nodes of n8n
49 lines (45 loc) • 1.36 kB
text/typescript
/**
* Clockify Node - Version 1
* Discriminator: resource=task, operation=create
*/
interface Credentials {
clockifyApi: CredentialReference;
}
/** Create a client */
export type ClockifyV1TaskCreateParams = {
resource: 'task';
operation: 'create';
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.hide { resource: ["workspace"] }
* @default []
*/
workspaceId?: string | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
projectId?: string | Expression<string>;
/**
* Name of task to create
*/
name?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @default []
*/
assigneeIds?: string[];
/** Estimate time the task will take, e.x: 2:30 (2 hours and 30 minutes)
*/
estimate?: string | Expression<string> | PlaceholderValue;
};
};
export type ClockifyV1TaskCreateNode = {
type: 'n8n-nodes-base.clockify';
version: 1;
credentials?: Credentials;
config: NodeConfig<ClockifyV1TaskCreateParams>;
};