mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -143,7 +143,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
@@ -159,7 +159,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Get portals',
|
||||
@@ -219,7 +219,7 @@ export class FileMaker implements INodeType {
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'find'
|
||||
'find',
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -277,8 +277,8 @@ export class FileMaker implements INodeType {
|
||||
default: '',
|
||||
description: 'Value to search',
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
description: 'Field Name',
|
||||
},
|
||||
@@ -286,9 +286,9 @@ export class FileMaker implements INodeType {
|
||||
displayName: 'Omit',
|
||||
name: 'omit',
|
||||
type: 'boolean',
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -353,16 +353,16 @@ export class FileMaker implements INodeType {
|
||||
options: [
|
||||
{
|
||||
name: 'Ascend',
|
||||
value: 'ascend'
|
||||
value: 'ascend',
|
||||
},
|
||||
{
|
||||
name: 'Descend',
|
||||
value: 'descend'
|
||||
value: 'descend',
|
||||
},
|
||||
],
|
||||
description: 'Sort order.',
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -379,7 +379,7 @@ export class FileMaker implements INodeType {
|
||||
'record',
|
||||
'records',
|
||||
],
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -400,7 +400,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
setScriptBefore: [
|
||||
true
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -421,7 +421,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
setScriptBefore: [
|
||||
true
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -441,7 +441,7 @@ export class FileMaker implements INodeType {
|
||||
'record',
|
||||
'records',
|
||||
],
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -462,7 +462,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
setScriptSort: [
|
||||
true
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -483,7 +483,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
setScriptSort: [
|
||||
true
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -503,7 +503,7 @@ export class FileMaker implements INodeType {
|
||||
'record',
|
||||
'records',
|
||||
],
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -524,7 +524,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
setScriptAfter: [
|
||||
true
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -545,7 +545,7 @@ export class FileMaker implements INodeType {
|
||||
'records',
|
||||
],
|
||||
setScriptAfter: [
|
||||
true
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -583,7 +583,7 @@ export class FileMaker implements INodeType {
|
||||
'edit',
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -625,7 +625,7 @@ export class FileMaker implements INodeType {
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -645,7 +645,7 @@ export class FileMaker implements INodeType {
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'performscript'
|
||||
'performscript',
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -661,14 +661,14 @@ export class FileMaker implements INodeType {
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'performscript'
|
||||
'performscript',
|
||||
],
|
||||
},
|
||||
},
|
||||
placeholder: 'Script Parameters',
|
||||
description: 'A parameter for the FileMaker script.',
|
||||
},
|
||||
]
|
||||
],
|
||||
};
|
||||
|
||||
methods = {
|
||||
@@ -803,7 +803,7 @@ export class FileMaker implements INodeType {
|
||||
'Authorization': `Bearer ${token}`,
|
||||
},
|
||||
method: 'GET',
|
||||
json: true
|
||||
json: true,
|
||||
};
|
||||
|
||||
const layout = this.getNodeParameter('layout', i) as string;
|
||||
@@ -813,7 +813,7 @@ export class FileMaker implements INodeType {
|
||||
requestOptions.uri = url + `/databases/${database}/layouts/${layout}/records/${recid}`;
|
||||
requestOptions.qs = {
|
||||
'portal': JSON.stringify(parsePortals.call(this, i)),
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
} else if (action === 'records') {
|
||||
requestOptions.uri = url + `/databases/${database}/layouts/${layout}/records`;
|
||||
@@ -821,7 +821,7 @@ export class FileMaker implements INodeType {
|
||||
'_offset': this.getNodeParameter('offset', i),
|
||||
'_limit': this.getNodeParameter('limit', i),
|
||||
'portal': JSON.stringify(parsePortals.call(this, i)),
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
const sort = parseSort.call(this, i);
|
||||
if (sort) {
|
||||
@@ -835,7 +835,7 @@ export class FileMaker implements INodeType {
|
||||
'offset': this.getNodeParameter('offset', i),
|
||||
'limit': this.getNodeParameter('limit', i),
|
||||
'layout.response': this.getNodeParameter('responseLayout', i),
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
const sort = parseSort.call(this, i);
|
||||
if (sort) {
|
||||
@@ -850,7 +850,7 @@ export class FileMaker implements INodeType {
|
||||
requestOptions.body = {
|
||||
fieldData: {...parseFields.call(this, i)},
|
||||
portalData: {},
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
} else if (action === 'edit') {
|
||||
const recid = this.getNodeParameter('recid', i) as string;
|
||||
@@ -862,7 +862,7 @@ export class FileMaker implements INodeType {
|
||||
requestOptions.body = {
|
||||
fieldData: {...parseFields.call(this, i)},
|
||||
portalData: {},
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
} else if (action === 'performscript') {
|
||||
const scriptName = this.getNodeParameter('script', i) as string;
|
||||
@@ -876,14 +876,14 @@ export class FileMaker implements INodeType {
|
||||
requestOptions.method = 'POST';
|
||||
requestOptions.headers!['Content-Type'] = 'application/json';
|
||||
requestOptions.qs = {
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
} else if (action === 'delete') {
|
||||
const recid = this.getNodeParameter('recid', i) as string;
|
||||
requestOptions.uri = url + `/databases/${database}/layouts/${layout}/records/${recid}`;
|
||||
requestOptions.method = 'DELETE';
|
||||
requestOptions.qs = {
|
||||
...parseScripts.call(this, i)
|
||||
...parseScripts.call(this, i),
|
||||
};
|
||||
} else {
|
||||
throw new Error(`The action "${action}" is not implemented yet!`);
|
||||
|
||||
Reference in New Issue
Block a user