n8n-nodes-base
Version:
Base nodes of n8n
62 lines (58 loc) • 1.8 kB
text/typescript
/**
* Harvest Node - Version 1
* Discriminator: resource=contact, operation=update
*/
interface Credentials {
harvestApi: CredentialReference;
harvestOAuth2Api: CredentialReference;
}
/** Update a client */
export type HarvestV1ContactUpdateParams = {
resource: 'contact';
operation: 'update';
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>;
/**
* The ID of the contact want to update
*/
id?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** The ID of the client associated with this contact
*/
client_id?: string | Expression<string> | PlaceholderValue;
/** The contact’s email address
*/
email?: string | Expression<string> | PlaceholderValue;
/** The contact’s fax number
*/
fax?: string | Expression<string> | PlaceholderValue;
/** The first name of the contact
*/
first_name?: string | Expression<string> | PlaceholderValue;
/** The last name of the contact
*/
last_name?: string | Expression<string> | PlaceholderValue;
/** The contact’s mobile phone number
*/
phone_mobile?: string | Expression<string> | PlaceholderValue;
/** The contact’s office phone number
*/
phone_office?: string | Expression<string> | PlaceholderValue;
/** The title of the contact
*/
title?: string | Expression<string> | PlaceholderValue;
};
};
export type HarvestV1ContactUpdateNode = {
type: 'n8n-nodes-base.harvest';
version: 1;
credentials?: Credentials;
config: NodeConfig<HarvestV1ContactUpdateParams>;
};