2021-04-02 09:10:22 -07:00
|
|
|
import {
|
2021-04-02 08:56:45 -07:00
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
2020-01-28 07:50:15 -08:00
|
|
|
|
2021-04-02 08:56:45 -07:00
|
|
|
const resource = [
|
|
|
|
'company',
|
|
|
|
];
|
2020-01-31 05:43:40 -08:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const companyOperations: INodeProperties[] = [
|
2020-01-28 07:50:15 -08:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2020-01-28 07:50:15 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2020-01-31 05:43:40 -08:00
|
|
|
resource,
|
2020-01-28 07:50:15 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Retrieves the company for the currently authenticated user',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Retrieve the company for the currently authenticated user',
|
2020-01-28 07:50:15 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'get',
|
|
|
|
},
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|