2023-05-02 02:44:25 -07:00
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
2024-08-29 06:55:53 -07:00
import { NodeConnectionType , type INodeTypeDescription } from 'n8n-workflow' ;
2023-05-02 02:44:25 -07:00
import * as table from './table/Table.resource' ;
import * as workbook from './workbook/Workbook.resource' ;
import * as worksheet from './worksheet/Worksheet.resource' ;
export const versionDescription : INodeTypeDescription = {
displayName : 'Microsoft Excel 365' ,
name : 'microsoftExcel' ,
icon : 'file:excel.svg' ,
group : [ 'input' ] ,
2024-02-01 02:46:34 -08:00
version : [ 2 , 2.1 ] ,
2023-05-02 02:44:25 -07:00
subtitle : '={{$parameter["operation"] + ": " + $parameter["resource"]}}' ,
description : 'Consume Microsoft Excel API' ,
defaults : {
name : 'Microsoft Excel 365' ,
} ,
2024-08-29 06:55:53 -07:00
inputs : [ NodeConnectionType . Main ] ,
outputs : [ NodeConnectionType . Main ] ,
2023-05-02 02:44:25 -07:00
credentials : [
{
name : 'microsoftExcelOAuth2Api' ,
required : true ,
} ,
] ,
properties : [
{
displayName :
2024-02-21 08:04:57 -08:00
'This node connects to the Microsoft 365 cloud platform. Use the \'Extract from File\' and \'Convert to File\' nodes to directly manipulate spreadsheet files (.xls, .csv, etc). <a href="/templates/890" target="_blank">More info</a>.' ,
2023-05-02 02:44:25 -07:00
name : 'notice' ,
type : 'notice' ,
default : '' ,
} ,
{
displayName : 'Resource' ,
name : 'resource' ,
type : 'options' ,
noDataExpression : true ,
options : [
{
name : 'Table' ,
value : 'table' ,
description : 'Represents an Excel table' ,
} ,
{
name : 'Workbook' ,
value : 'workbook' ,
description : 'A workbook is the top level object which contains one or more worksheets' ,
} ,
{
name : 'Sheet' ,
value : 'worksheet' ,
description : 'A sheet is a grid of cells which can contain data, tables, charts, etc' ,
} ,
] ,
default : 'workbook' ,
} ,
. . . table . description ,
. . . workbook . description ,
. . . worksheet . description ,
] ,
} ;