2020-10-28 15:07:35 -07:00
import {
ICredentialType ,
2021-06-12 09:39:55 -07:00
INodeProperties ,
2020-10-28 15:07:35 -07:00
} from 'n8n-workflow' ;
export class SalesforceJwtApi implements ICredentialType {
name = 'salesforceJwtApi' ;
displayName = 'Salesforce JWT API' ;
documentationUrl = 'salesforce' ;
2021-06-12 09:39:55 -07:00
properties : INodeProperties [ ] = [
2020-10-28 15:07:35 -07:00
{
displayName : 'Environment Type' ,
name : 'environment' ,
2021-06-12 09:39:55 -07:00
type : 'options' ,
2020-10-28 15:07:35 -07:00
options : [
{
name : 'Production' ,
value : 'production' ,
} ,
{
name : 'Sandbox' ,
value : 'sandbox' ,
} ,
] ,
default : 'production' ,
} ,
{
displayName : 'Client ID' ,
name : 'clientId' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2020-10-28 15:07:35 -07:00
default : '' ,
required : true ,
description : 'Consumer Key from Salesforce Connected App.' ,
} ,
{
displayName : 'Username' ,
name : 'username' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2020-10-28 15:07:35 -07:00
default : '' ,
required : true ,
} ,
{
displayName : 'Private Key' ,
name : 'privateKey' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2020-10-28 15:07:35 -07:00
typeOptions : {
password : true ,
} ,
default : '' ,
required : true ,
description : 'Use the multiline editor. Make sure it is in standard PEM key format:<br />-----BEGIN PRIVATE KEY-----<br />KEY DATA GOES HERE<br />-----END PRIVATE KEY-----' ,
} ,
] ;
}