n8n-nodes-base
Version:
Base nodes of n8n
28 lines (24 loc) • 711 B
text/typescript
/**
* Harvest Node - Version 1
* Discriminator: resource=user, operation=me
*/
interface Credentials {
harvestApi: CredentialReference;
harvestOAuth2Api: CredentialReference;
}
/** Get data of authenticated user */
export type HarvestV1UserMeParams = {
resource: 'user';
operation: 'me';
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>;
};
export type HarvestV1UserMeNode = {
type: 'n8n-nodes-base.harvest';
version: 1;
credentials?: Credentials;
config: NodeConfig<HarvestV1UserMeParams>;
};