👕 Fix lint issue
This commit is contained in:
@@ -49,7 +49,7 @@ export class Coda implements INodeType {
|
||||
{
|
||||
name: 'codaApi',
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
@@ -299,7 +299,7 @@ export class Coda implements INodeType {
|
||||
} else {
|
||||
returnData.push({
|
||||
id: responseData.id,
|
||||
...responseData.values
|
||||
...responseData.values,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -348,7 +348,7 @@ export class Coda implements INodeType {
|
||||
for (const item of responseData) {
|
||||
returnData.push({
|
||||
id: item.id,
|
||||
...item.values
|
||||
...item.values,
|
||||
});
|
||||
}
|
||||
return [this.helpers.returnJsonArray(returnData)];
|
||||
@@ -624,7 +624,7 @@ export class Coda implements INodeType {
|
||||
});
|
||||
}
|
||||
body.row = {
|
||||
cells
|
||||
cells,
|
||||
};
|
||||
await codaApiRequest.call(this, 'PUT', endpoint, body, qs);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export const controlFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -68,7 +68,7 @@ export const controlFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The control to get the row from.',
|
||||
@@ -92,7 +92,7 @@ export const controlFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -108,7 +108,7 @@ export const controlFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
|
||||
@@ -50,7 +50,7 @@ export const formulaFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -68,7 +68,7 @@ export const formulaFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The formula to get the row from.',
|
||||
@@ -92,7 +92,7 @@ export const formulaFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -108,7 +108,7 @@ export const formulaFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
|
||||
@@ -18,7 +18,7 @@ export async function codaApiRequest(this: IExecuteFunctions | IExecuteSingleFun
|
||||
qs,
|
||||
body,
|
||||
uri: uri ||`https://coda.io/apis/v1${resource}`,
|
||||
json: true
|
||||
json: true,
|
||||
};
|
||||
options = Object.assign({}, options, option);
|
||||
if (Object.keys(options.body).length === 0) {
|
||||
|
||||
@@ -75,7 +75,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'createRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -99,7 +99,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'createRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to create the row in.',
|
||||
@@ -136,7 +136,7 @@ export const tableFields = [
|
||||
description: `Optional column IDs, URLs, or names (fragile and discouraged)<br />,
|
||||
specifying columns to be used as upsert keys. If more than one separate by ,`,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* table:get */
|
||||
@@ -157,7 +157,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -181,7 +181,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the row from.',
|
||||
@@ -199,7 +199,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: `ID or name of the row. Names are discouraged because<br />
|
||||
@@ -262,7 +262,7 @@ export const tableFields = [
|
||||
],
|
||||
description: `The format that cell values are returned as.`,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* table:getAll */
|
||||
@@ -283,7 +283,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllRows',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -307,7 +307,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllRows',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the rows from.',
|
||||
@@ -323,7 +323,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllRows',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -444,7 +444,7 @@ export const tableFields = [
|
||||
default: false,
|
||||
description: `If true, returns only visible rows and columns for the table.`,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* row:delete */
|
||||
@@ -465,7 +465,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'deleteRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -489,7 +489,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'deleteRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to delete the row in.',
|
||||
@@ -507,7 +507,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'deleteRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Row IDs to delete.',
|
||||
@@ -531,7 +531,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -555,7 +555,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the row from.',
|
||||
@@ -573,7 +573,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: `ID or name of the row. Names are discouraged because<br />
|
||||
@@ -602,7 +602,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -625,7 +625,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getColumn',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -649,7 +649,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getColumn',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the row from.',
|
||||
@@ -667,7 +667,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getColumn',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the row from.',
|
||||
@@ -691,7 +691,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllColumns',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -715,7 +715,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllColumns',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the row from.',
|
||||
@@ -731,7 +731,7 @@ export const tableFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllColumns',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
|
||||
@@ -75,7 +75,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -93,7 +93,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -117,7 +117,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -133,7 +133,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -182,7 +182,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllViewRows',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -206,7 +206,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllViewRows',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the rows from.',
|
||||
@@ -222,7 +222,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllViewRows',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -336,7 +336,7 @@ export const viewFields = [
|
||||
description: `Specifies the sort order of the rows returned.<br />
|
||||
If left unspecified, rows are returned by creation time ascending.`,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* view:getAllViewColumns */
|
||||
@@ -357,7 +357,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllViewColumns',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -381,7 +381,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllViewColumns',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The table to get the rows from.',
|
||||
@@ -397,7 +397,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAllViewColumns',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -446,7 +446,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'deleteViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -470,7 +470,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'deleteViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -494,7 +494,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'deleteViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -518,7 +518,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushViewButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -542,7 +542,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushViewButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -566,7 +566,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushViewButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -591,7 +591,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'pushViewButton',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -614,7 +614,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'updateViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'ID of the doc.',
|
||||
@@ -638,7 +638,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'updateViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -662,7 +662,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'updateViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -680,7 +680,7 @@ export const viewFields = [
|
||||
],
|
||||
operation: [
|
||||
'updateViewRow',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The view to get the row from.',
|
||||
@@ -709,6 +709,6 @@ export const viewFields = [
|
||||
default: false,
|
||||
description: `If true, the API will not attempt to parse the data in any way.`,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
Reference in New Issue
Block a user