mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
2c146cca62
Co-authored-by: Giulio Andreini <andreini@netseven.it>
27 lines
821 B
TypeScript
27 lines
821 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { MicrosoftTeamsV1 } from './v1/MicrosoftTeamsV1.node';
|
|
import { MicrosoftTeamsV2 } from './v2/MicrosoftTeamsV2.node';
|
|
|
|
export class MicrosoftTeams extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'Microsoft Teams',
|
|
name: 'microsoftTeams',
|
|
icon: 'file:teams.svg',
|
|
group: ['input'],
|
|
description: 'Consume Microsoft Teams API',
|
|
defaultVersion: 2,
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new MicrosoftTeamsV1(baseDescription),
|
|
1.1: new MicrosoftTeamsV1(baseDescription),
|
|
2: new MicrosoftTeamsV2(baseDescription),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|