mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648)
* 📘 Set up overload * 🔥 Remove inferrable record assertions * 👕 Fix semicolon * 👕 Fix another semicolon
This commit is contained in:
@@ -180,7 +180,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
const workbookId = this.getNodeParameter('workbook', 0) as string;
|
||||
const worksheetId = this.getNodeParameter('worksheet', 0) as string;
|
||||
const tableId = this.getNodeParameter('table', 0) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', 0) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', 0);
|
||||
const body: IDataObject = {};
|
||||
|
||||
if (additionalFields.index) {
|
||||
@@ -263,7 +263,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
if (rawData) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
if (filters.fields) {
|
||||
qs['$select'] = filters.fields;
|
||||
}
|
||||
@@ -325,7 +325,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
if (rawData) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
if (filters.fields) {
|
||||
qs['$select'] = filters.fields;
|
||||
}
|
||||
@@ -408,7 +408,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
const tableId = this.getNodeParameter('table', i) as string;
|
||||
const lookupColumn = this.getNodeParameter('lookupColumn', i) as string;
|
||||
const lookupValue = this.getNodeParameter('lookupValue', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
responseData = await microsoftApiRequestAllItemsSkip.call(
|
||||
this,
|
||||
@@ -488,7 +488,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
//https://docs.microsoft.com/en-us/graph/api/worksheetcollection-add?view=graph-rest-1.0&tabs=http
|
||||
if (operation === 'addWorksheet') {
|
||||
const workbookId = this.getNodeParameter('workbook', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
const body: IDataObject = {};
|
||||
if (additionalFields.name) {
|
||||
body.name = additionalFields.name;
|
||||
@@ -520,7 +520,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
if (filters.fields) {
|
||||
qs['$select'] = filters.fields;
|
||||
}
|
||||
@@ -582,7 +582,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const workbookId = this.getNodeParameter('workbook', i) as string;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
if (filters.fields) {
|
||||
qs['$select'] = filters.fields;
|
||||
}
|
||||
@@ -614,7 +614,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
const range = this.getNodeParameter('range', i) as string;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
if (rawData) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
if (filters.fields) {
|
||||
qs['$select'] = filters.fields;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user