2022-01-07 09:19:24 -08:00
|
|
|
import * as getAll from './getAll';
|
|
|
|
import * as create from './create';
|
|
|
|
import * as del from './del';
|
|
|
|
import * as update from './update';
|
|
|
|
import * as get from './get';
|
|
|
|
|
2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2022-01-07 09:19:24 -08:00
|
|
|
|
2022-08-17 08:50:24 -07:00
|
|
|
export { getAll, create, del as delete, update, get };
|
2022-01-07 09:19:24 -08:00
|
|
|
|
|
|
|
export const descriptions = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2022-01-07 09:19:24 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['customer'],
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create new customer',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Create a customer',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Delete',
|
|
|
|
value: 'delete',
|
|
|
|
description: 'Delete customer',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Delete a customer',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Retrieve customer',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get a customer',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
2022-09-07 07:51:14 -07:00
|
|
|
name: 'Get Many',
|
2022-01-07 09:19:24 -08:00
|
|
|
value: 'getAll',
|
2022-09-13 03:36:36 -07:00
|
|
|
description: 'Retrieve many customers',
|
2022-09-08 08:10:13 -07:00
|
|
|
action: 'Get many customers',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Update',
|
|
|
|
value: 'update',
|
|
|
|
description: 'Update customer',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Update a customer',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'getAll',
|
|
|
|
},
|
|
|
|
...getAll.description,
|
|
|
|
...get.description,
|
|
|
|
...create.description,
|
|
|
|
...del.description,
|
|
|
|
...update.description,
|
|
|
|
] as INodeProperties[];
|