mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Monday.com Node): Migrate to api 2023-10 (#8254)
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 MondayComApi implements ICredentialType {
|
||||
name = 'mondayComApi';
|
||||
@@ -16,4 +21,27 @@ export class MondayComApi implements ICredentialType {
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
Authorization: '=Bearer {{$credentials.apiToken}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
headers: {
|
||||
'API-Version': '2023-10',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
baseURL: 'https://api.monday.com/v2',
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
query: 'query { me { name }}',
|
||||
}),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user