n8n-nodes-base
Version:
Base nodes of n8n
75 lines (70 loc) • 1.9 kB
text/typescript
/**
* Pipedrive Node - Version 1
* Discriminator: resource=note, operation=create
*/
interface Credentials {
pipedriveApi: CredentialReference;
pipedriveOAuth2Api: CredentialReference;
}
/** Create an activity */
export type PipedriveV1NoteCreateParams = {
resource: 'note';
operation: 'create';
authentication?: 'apiToken' | 'oAuth2' | Expression<string>;
/**
* The content of the note to create
*/
content?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** ID of the deal this note will be associated with
* @default 0
*/
deal_id?: number | Expression<number>;
/** ID of the lead this note will be associated with
* @default 0
*/
lead_id?: number | Expression<number>;
/** ID of the organization this deal will be associated with. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
org_id?: string | Expression<string>;
/** ID of the person this note will be associated with
* @default 0
*/
person_id?: number | Expression<number>;
};
};
export type PipedriveV1NoteCreateOutput = {
active_flag?: boolean;
add_time?: string;
content?: string;
id?: number;
last_update_user_id?: null;
organization?: {
name?: string;
};
person?: {
name?: string;
};
pinned_to_deal_flag?: boolean;
pinned_to_lead_flag?: boolean;
pinned_to_organization_flag?: boolean;
pinned_to_person_flag?: boolean;
update_time?: string;
user?: {
email?: string;
is_you?: boolean;
name?: string;
};
user_id?: number;
};
export type PipedriveV1NoteCreateNode = {
type: 'n8n-nodes-base.pipedrive';
version: 1;
credentials?: Credentials;
config: NodeConfig<PipedriveV1NoteCreateParams>;
output?: Items<PipedriveV1NoteCreateOutput>;
};