feat: Add Miro credential only node (#12746)

Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
mgosal 2025-01-22 10:18:14 +00:00 committed by GitHub
parent 024ada822c
commit 5b29086e2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,61 @@
import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
export class MiroOAuth2Api implements ICredentialType {
name = 'miroOAuth2Api';
extends = ['oAuth2Api'];
displayName = 'Miro OAuth2 API';
documentationUrl = 'miro';
icon: Icon = 'file:icons/Miro.svg';
httpRequestNode = {
name: 'Miro',
docsUrl: 'https://developers.miro.com/reference/overview',
apiBaseUrl: 'https://api.miro.com/v2/',
};
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://miro.com/oauth/authorize',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://api.miro.com/v1/oauth/token',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: '',
required: true,
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'body',
},
];
}

View file

@ -0,0 +1,22 @@
<svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" style="enable-background:new 0 0 48 48;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFD02F;}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#050038;}
</style>
<metadata>
<sfw xmlns="ns_sfw;">
<slices>
</slices>
<sliceSourceBounds bottomLeftOrigin="true" height="48" width="48" x="175.8" y="-224.2">
</sliceSourceBounds>
</sfw>
</metadata>
<g>
<path class="st0" d="M10.4,0h27.2C43.3,0,48,4.7,48,10.4v27.2C48,43.3,43.3,48,37.6,48H10.4C4.7,48,0,43.3,0,37.6V10.4
C0,4.7,4.7,0,10.4,0z">
</path>
<path class="st1" d="M33.3,6h-5.3l4.4,7.7L22.8,6h-5.3l4.8,9.4L12.3,6H7l5.3,12L7,42h5.3l10.1-25.7L17.5,42h5.3l9.7-27.4L28.1,42
h5.3L43,12L33.3,6z">
</path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 915 B

View file

@ -231,6 +231,7 @@
"dist/credentials/MicrosoftToDoOAuth2Api.credentials.js",
"dist/credentials/MindeeInvoiceApi.credentials.js",
"dist/credentials/MindeeReceiptApi.credentials.js",
"dist/credentials/MiroOAuth2Api.credentials.js",
"dist/credentials/MispApi.credentials.js",
"dist/credentials/MistApi.credentials.js",
"dist/credentials/MoceanApi.credentials.js",