n8n-nodes-base
Version:
Base nodes of n8n
41 lines (36 loc) • 1.1 kB
text/typescript
/**
* Salesforce Node - Version 1
* Discriminator: resource=customObject, operation=delete
*/
interface Credentials {
salesforceOAuth2Api: CredentialReference;
salesforceJwtApi: CredentialReference;
}
/** Represents a custom object */
export type SalesforceV1CustomObjectDeleteParams = {
resource: 'customObject';
operation: 'delete';
/**
* OAuth Authorization Flow
* @default oAuth2
*/
authentication?: 'oAuth2' | 'jwt' | Expression<string>;
/**
* Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
customObject?: string | Expression<string>;
/**
* Record ID to be deleted
*/
recordId?: string | Expression<string> | PlaceholderValue;
};
export type SalesforceV1CustomObjectDeleteOutput = {
success?: boolean;
};
export type SalesforceV1CustomObjectDeleteNode = {
type: 'n8n-nodes-base.salesforce';
version: 1;
credentials?: Credentials;
config: NodeConfig<SalesforceV1CustomObjectDeleteParams>;
output?: Items<SalesforceV1CustomObjectDeleteOutput>;
};