1+ import { INodeProperties } from 'n8n-workflow' ;
2+
13import * as get from './get' ;
24import * as getById from './getById' ;
35import * as create from './create' ;
@@ -7,7 +9,57 @@ import * as deleteResource from './delete';
79
810export { get , getById , create , update , bulkUpdate , deleteResource as delete } ;
911
10- export const descriptions = [
12+ export const descriptions : INodeProperties [ ] = [
13+ {
14+ displayName : 'Operation' ,
15+ name : 'operation' ,
16+ type : 'options' ,
17+ noDataExpression : true ,
18+ displayOptions : {
19+ show : {
20+ resource : [ 'configurationInterface' ] ,
21+ } ,
22+ } ,
23+ options : [
24+ {
25+ name : 'Bulk Update' ,
26+ value : 'bulkUpdate' ,
27+ description : 'Update multiple records' ,
28+ action : 'Bulk update records' ,
29+ } ,
30+ {
31+ name : 'Create' ,
32+ value : 'create' ,
33+ description : 'Create a new record' ,
34+ action : 'Create a record' ,
35+ } ,
36+ {
37+ name : 'Delete' ,
38+ value : 'delete' ,
39+ description : 'Delete a record' ,
40+ action : 'Delete a record' ,
41+ } ,
42+ {
43+ name : 'Get' ,
44+ value : 'get' ,
45+ description : 'Get records' ,
46+ action : 'Get records' ,
47+ } ,
48+ {
49+ name : 'Get by ID' ,
50+ value : 'getById' ,
51+ description : 'Get a record by ID' ,
52+ action : 'Get record by ID' ,
53+ } ,
54+ {
55+ name : 'Update' ,
56+ value : 'update' ,
57+ description : 'Update a record' ,
58+ action : 'Update a record' ,
59+ } ,
60+ ] ,
61+ default : 'get' ,
62+ } ,
1163 ...get . description ,
1264 ...getById . description ,
1365 ...create . description ,
0 commit comments