Add datum operations

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-12-02 10:50:14 +01:00
parent be0a67a0f8
commit c26b0d8423
8 changed files with 529 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
import type { INodeProperties } from 'n8n-workflow';
import * as createOp from './create.operation';
import * as updateOp from './update.operation';
import * as deleteOp from './delete.operation';
import * as getOp from './get.operation';
import * as getAllOp from './getAll.operation';
export const description: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['datum'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a new datum',
action: 'Create a datum',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a datum',
action: 'Delete a datum',
},
{
name: 'Get',
value: 'get',
description: 'Get a datum',
action: 'Get a datum',
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all data',
action: 'Get all data',
},
{
name: 'Update',
value: 'update',
description: 'Update an existing datum',
action: 'Update a datum',
},
],
default: 'create',
},
...createOp.description,
...updateOp.description,
...deleteOp.description,
...getOp.description,
...getAllOp.description,
];
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };