n8n-nodes-base
Version:
Base nodes of n8n
58 lines (54 loc) • 1.78 kB
text/typescript
/**
* Salesforce Node - Version 1
* Discriminator: resource=attachment, operation=create
*/
interface Credentials {
salesforceOAuth2Api: CredentialReference;
salesforceJwtApi: CredentialReference;
}
/** Represents a file that a has uploaded and attached to a parent object */
export type SalesforceV1AttachmentCreateParams = {
resource: 'attachment';
operation: 'create';
/**
* OAuth Authorization Flow
* @default oAuth2
*/
authentication?: 'oAuth2' | 'jwt' | Expression<string>;
/**
* Parent ID
*/
parentId?: string | Expression<string> | PlaceholderValue;
/**
* Required. Name of the attached file. Maximum size is 255 characters. Label is File Name.
*/
name?: string | Expression<string> | PlaceholderValue;
/**
* Input Binary Field
* @hint The name of the input binary field containing the file to be uploaded
* @default data
*/
binaryPropertyName?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Text description of the Document. Limit: 255 characters.
*/
description?: string | Expression<string> | PlaceholderValue;
/** Whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false)
* @default false
*/
isPrivate?: boolean | Expression<boolean>;
/** ID of the User who owns the attachment. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
owner?: string | Expression<string>;
};
};
export type SalesforceV1AttachmentCreateNode = {
type: 'n8n-nodes-base.salesforce';
version: 1;
credentials?: Credentials;
config: NodeConfig<SalesforceV1AttachmentCreateParams>;
};