/** * Clockify Node - Version 1 * Discriminator: resource=project, operation=getAll */ interface Credentials { clockifyApi: CredentialReference; } /** Get many clients */ export type ClockifyV1ProjectGetAllParams = { resource: 'project'; operation: 'getAll'; /** * 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; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 100 */ limit?: number | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Archived * @default true */ archived?: boolean | Expression; /** Billable * @default true */ billable?: boolean | Expression; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ clients?: string[]; /** Whether to return only projects having a client * @default false */ 'contains-client'?: boolean | Expression; /** If provided, projects will be filtered by whether they have a client */ 'client-status'?: 'ACTIVE' | 'ARCHIVED' | Expression; /** Whether to return only projects having users * @default false */ 'contains-user'?: boolean | Expression; /** Whether to return only projects as templates * @default false */ 'is-template'?: boolean | Expression; /** Name */ name?: string | Expression | PlaceholderValue; /** Sort Column */ 'sort-column'?: 'NAME' | 'CLIENT_NAME' | 'DURATION' | Expression; /** Sort Order */ 'sort-order'?: 'ASCENDING' | 'DESCENDING' | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ users?: string | Expression; /** If provided, projects will be filtered by whether they have a client */ 'user-status'?: 'ACTIVE' | 'ARCHIVED' | Expression; }; }; export type ClockifyV1ProjectGetAllOutput = { archived?: boolean; billable?: boolean; clientId?: string; clientName?: string; color?: string; estimate?: { estimate?: string; type?: string; }; estimateReset?: null; hourlyRate?: { amount?: number; currency?: string; }; id?: string; memberships?: Array<{ costRate?: null; hourlyRate?: null; membershipStatus?: string; membershipType?: string; targetId?: string; userId?: string; }>; name?: string; note?: string; public?: boolean; template?: boolean; timeEstimate?: { active?: boolean; estimate?: string; includeNonBillable?: boolean; resetOption?: null; type?: string; }; workspaceId?: string; }; export type ClockifyV1ProjectGetAllNode = { type: 'n8n-nodes-base.clockify'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };