2023-05-02 02:44:25 -07:00
|
|
|
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
|
|
|
|
import { MicrosoftExcelV1 } from './v1/MicrosoftExcelV1.node';
|
|
|
|
import { MicrosoftExcelV2 } from './v2/MicrosoftExcelV2.node';
|
|
|
|
|
|
|
|
export class MicrosoftExcel extends VersionedNodeType {
|
|
|
|
constructor() {
|
|
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
|
|
displayName: 'Microsoft Excel 365',
|
|
|
|
name: 'microsoftExcel',
|
|
|
|
icon: 'file:excel.svg',
|
|
|
|
group: ['input'],
|
|
|
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
|
|
description: 'Consume Microsoft Excel API',
|
|
|
|
defaultVersion: 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
|
|
1: new MicrosoftExcelV1(baseDescription),
|
|
|
|
2: new MicrosoftExcelV2(baseDescription),
|
|
|
|
};
|
|
|
|
|
|
|
|
super(nodeVersions, baseDescription);
|
2020-03-15 16:51:31 -07:00
|
|
|
}
|
|
|
|
}
|