n8n-nodes-base
Version:
Base nodes of n8n
32 lines (26 loc) • 924 B
text/typescript
/**
* Linear Trigger Node - Version 1
* Starts the workflow when Linear events occur
*/
export interface LinearTriggerV1Params {
authentication?: 'apiToken' | 'oAuth2' | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
teamId?: string | Expression<string>;
resources?: Array<'reaction' | 'cycle' | 'issue' | 'comment' | 'issueLabel' | 'project'>;
}
export interface LinearTriggerV1Credentials {
linearApi: CredentialReference;
linearOAuth2Api: CredentialReference;
}
interface LinearTriggerV1NodeBase {
type: 'n8n-nodes-base.linearTrigger';
version: 1;
credentials?: LinearTriggerV1Credentials;
isTrigger: true;
}
export type LinearTriggerV1ParamsNode = LinearTriggerV1NodeBase & {
config: NodeConfig<LinearTriggerV1Params>;
};
export type LinearTriggerV1Node = LinearTriggerV1ParamsNode;