mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(Iterable Node): Add support for EDC and USDC selection (#10908)
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class IterableApi implements ICredentialType {
|
||||
name = 'iterableApi';
|
||||
@@ -15,5 +20,38 @@ export class IterableApi implements ICredentialType {
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Region',
|
||||
name: 'region',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'EDC',
|
||||
value: 'https://api.eu.iterable.com',
|
||||
},
|
||||
{
|
||||
name: 'USDC',
|
||||
value: 'https://api.iterable.com',
|
||||
},
|
||||
],
|
||||
default: 'https://api.iterable.com',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
Api_Key: '={{$credentials.apiKey}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials?.region}}',
|
||||
url: '/api/webhooks',
|
||||
method: 'GET',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user