n8n-nodes-base
Version:
Base nodes of n8n
32 lines (28 loc) • 916 B
text/typescript
/**
* Harvest Node - Version 1
* Discriminator: resource=timeEntry, operation=stopTime
*/
interface Credentials {
harvestApi: CredentialReference;
harvestOAuth2Api: CredentialReference;
}
/** Stop a time entry */
export type HarvestV1TimeEntryStopTimeParams = {
resource: 'timeEntry';
operation: 'stopTime';
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>
*/
accountId?: string | Expression<string>;
/**
* Stop a running time entry. Stopping a time entry is only possible if it’s currently running.
*/
id?: string | Expression<string> | PlaceholderValue;
};
export type HarvestV1TimeEntryStopTimeNode = {
type: 'n8n-nodes-base.harvest';
version: 1;
credentials?: Credentials;
config: NodeConfig<HarvestV1TimeEntryStopTimeParams>;
};