n8n-nodes-base
Version:
Base nodes of n8n
76 lines (72 loc) • 2.14 kB
text/typescript
/**
* Clockify Node - Version 1
* Discriminator: resource=timeEntry, operation=update
*/
interface Credentials {
clockifyApi: CredentialReference;
}
/** Update a client */
export type ClockifyV1TimeEntryUpdateParams = {
resource: 'timeEntry';
operation: 'update';
/**
* 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>;
/**
* Time Entry ID
*/
timeEntryId?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** Billable
* @default false
*/
billable?: boolean | Expression<boolean>;
/** Filter by custom fields
* @default {}
*/
customFieldsUi?: {
/** Custom Field
*/
customFieldsValues?: Array<{
/** The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
customFieldId?: string | Expression<string>;
/** The value to set on custom field
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
/** Description
*/
description?: string | Expression<string> | PlaceholderValue;
/** End
*/
end?: 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>;
/** Start
*/
start?: string | Expression<string>;
/** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @default []
*/
tagIds?: string[];
/** Task ID
*/
taskId?: string | Expression<string> | PlaceholderValue;
};
};
export type ClockifyV1TimeEntryUpdateNode = {
type: 'n8n-nodes-base.clockify';
version: 1;
credentials?: Credentials;
config: NodeConfig<ClockifyV1TimeEntryUpdateParams>;
};