⚡ small improvements
This commit is contained in:
@@ -206,6 +206,9 @@ export class MicrosoftExcel implements INodeType {
|
|||||||
if (!rawData) {
|
if (!rawData) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
responseData = responseData.map(column => ({ name: column.name }));
|
responseData = responseData.map(column => ({ name: column.name }));
|
||||||
|
} else {
|
||||||
|
const dataProperty = this.getNodeParameter('dataProperty', i) as string;
|
||||||
|
responseData = { [dataProperty] : responseData };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -242,6 +245,9 @@ export class MicrosoftExcel implements INodeType {
|
|||||||
result.push({ ...object });
|
result.push({ ...object });
|
||||||
}
|
}
|
||||||
responseData = result;
|
responseData = result;
|
||||||
|
} else {
|
||||||
|
const dataProperty = this.getNodeParameter('dataProperty', i) as string;
|
||||||
|
responseData = { [dataProperty] : responseData };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -321,6 +327,9 @@ export class MicrosoftExcel implements INodeType {
|
|||||||
result.push({ ...object });
|
result.push({ ...object });
|
||||||
}
|
}
|
||||||
responseData = result;
|
responseData = result;
|
||||||
|
} else {
|
||||||
|
const dataProperty = this.getNodeParameter('dataProperty', i) as string;
|
||||||
|
responseData = { [dataProperty] : responseData };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -260,6 +260,26 @@ export const tableFields = [
|
|||||||
default: false,
|
default: false,
|
||||||
description: 'If the data should be returned RAW instead of parsed into keys according to their header.',
|
description: 'If the data should be returned RAW instead of parsed into keys according to their header.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Data Property',
|
||||||
|
name: 'dataProperty',
|
||||||
|
type: 'string',
|
||||||
|
default: 'data',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getRows'
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'table',
|
||||||
|
],
|
||||||
|
rawData: [
|
||||||
|
true,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
description: 'The name of the property into which to write the RAW data.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Filters',
|
displayName: 'Filters',
|
||||||
name: 'filters',
|
name: 'filters',
|
||||||
@@ -415,6 +435,26 @@ export const tableFields = [
|
|||||||
default: false,
|
default: false,
|
||||||
description: 'If the data should be returned RAW instead of parsed into keys according to their header.',
|
description: 'If the data should be returned RAW instead of parsed into keys according to their header.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Data Property',
|
||||||
|
name: 'dataProperty',
|
||||||
|
type: 'string',
|
||||||
|
default: 'data',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getColumns'
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'table',
|
||||||
|
],
|
||||||
|
rawData: [
|
||||||
|
true,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
description: 'The name of the property into which to write the RAW data.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Filters',
|
displayName: 'Filters',
|
||||||
name: 'filters',
|
name: 'filters',
|
||||||
|
|||||||
@@ -201,6 +201,26 @@ export const worksheetFields = [
|
|||||||
default: false,
|
default: false,
|
||||||
description: 'If the data should be returned RAW instead of parsed into keys according to their header.',
|
description: 'If the data should be returned RAW instead of parsed into keys according to their header.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Data Property',
|
||||||
|
name: 'dataProperty',
|
||||||
|
type: 'string',
|
||||||
|
default: 'data',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
operation: [
|
||||||
|
'getContent'
|
||||||
|
],
|
||||||
|
resource: [
|
||||||
|
'worksheet',
|
||||||
|
],
|
||||||
|
rawData: [
|
||||||
|
true,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
description: 'The name of the property into which to write the RAW data.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Data Start Row',
|
displayName: 'Data Start Row',
|
||||||
name: 'dataStartRow',
|
name: 'dataStartRow',
|
||||||
|
|||||||
Reference in New Issue
Block a user