mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Gong Node): New node (#10777)
This commit is contained in:
committed by
GitHub
parent
aa3c0dd226
commit
785b47feb3
58
packages/nodes-base/credentials/GongApi.credentials.ts
Normal file
58
packages/nodes-base/credentials/GongApi.credentials.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class GongApi implements ICredentialType {
|
||||
name = 'gongApi';
|
||||
|
||||
displayName = 'Gong API';
|
||||
|
||||
documentationUrl = 'gong';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Base URL',
|
||||
name: 'baseUrl',
|
||||
type: 'string',
|
||||
default: 'https://api.gong.io',
|
||||
},
|
||||
{
|
||||
displayName: 'Access Key',
|
||||
name: 'accessKey',
|
||||
type: 'string',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Access Key Secret',
|
||||
name: 'accessKeySecret',
|
||||
type: 'string',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
auth: {
|
||||
username: '={{ $credentials.accessKey }}',
|
||||
password: '={{ $credentials.accessKeySecret }}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{ $credentials.baseUrl.replace(new RegExp("/$"), "") }}',
|
||||
url: '/v2/users',
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user