n8n-nodes-base
Version:
Base nodes of n8n
78 lines (73 loc) • 1.91 kB
text/typescript
/**
* Salesforce Node - Version 1
* Discriminator: resource=case, operation=getAll
*/
interface Credentials {
salesforceOAuth2Api: CredentialReference;
salesforceJwtApi: CredentialReference;
}
/** Represents a case, which is a customer issue or problem */
export type SalesforceV1CaseGetAllParams = {
resource: 'case';
operation: 'getAll';
/**
* OAuth Authorization Flow
* @default oAuth2
*/
authentication?: 'oAuth2' | 'jwt' | Expression<string>;
/**
* Whether to return all results or only up to a given limit
* @default false
*/
returnAll?: boolean | Expression<boolean>;
/**
* Max number of results to return
* @displayOptions.show { returnAll: [false] }
* @default 50
*/
limit?: number | Expression<number>;
/**
* Options
* @default {}
*/
options?: {
/** The condition to set
* @default {}
*/
conditionsUi?: {
/** Condition
*/
conditionValues?: Array<{
/** For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
field?: string | Expression<string>;
/** Operation
* @default equal
*/
operation?: '<' | '<=' | 'equal' | '>' | '>=' | Expression<string>;
/** Value
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
/** Fields to include separated by ,
*/
fields?: string | Expression<string> | PlaceholderValue;
};
};
export type SalesforceV1CaseGetAllOutput = {
attributes?: {
type?: string;
url?: string;
};
Id?: string;
OwnerId?: string;
Status?: string;
};
export type SalesforceV1CaseGetAllNode = {
type: 'n8n-nodes-base.salesforce';
version: 1;
credentials?: Credentials;
config: NodeConfig<SalesforceV1CaseGetAllParams>;
output?: Items<SalesforceV1CaseGetAllOutput>;
};