n8n-nodes-base
Version:
Base nodes of n8n
70 lines (65 loc) • 1.82 kB
text/typescript
/**
* Linear Node - Version 1
* Discriminator: resource=issue, operation=update
*/
interface Credentials {
linearApi: CredentialReference;
linearOAuth2Api: CredentialReference;
}
/** Update an issue */
export type LinearV1IssueUpdateParams = {
resource: 'issue';
operation: 'update';
authentication?: 'apiToken' | 'oAuth2' | Expression<string>;
/**
* Issue ID
*/
issueId?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
assigneeId?: string | Expression<string>;
/** Description
*/
description?: string | Expression<string> | PlaceholderValue;
/** Priority Name/ID
* @default 0
*/
priorityId?: 1 | 2 | 3 | 3 | 0 | Expression<number>;
/** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
stateId?: string | 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>;
/** Title
*/
title?: string | Expression<string> | PlaceholderValue;
};
};
export type LinearV1IssueUpdateOutput = {
createdAt?: string;
creator?: {
displayName?: string;
id?: string;
};
id?: string;
identifier?: string;
priority?: number;
state?: {
id?: string;
name?: string;
};
title?: string;
};
export type LinearV1IssueUpdateNode = {
type: 'n8n-nodes-base.linear';
version: 1;
credentials?: Credentials;
config: NodeConfig<LinearV1IssueUpdateParams>;
output?: Items<LinearV1IssueUpdateOutput>;
};