Skip to content

Commit 581e210

Browse files
committed
fix: wire missing operations for IT Glue resources
Resolves #4
1 parent 6e24553 commit 581e210

13 files changed

Lines changed: 593 additions & 13 deletions

File tree

nodes/ITGlue/actions/configurationInterface/index.ts

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { INodeProperties } from 'n8n-workflow';
2+
13
import * as get from './get';
24
import * as getById from './getById';
35
import * as create from './create';
@@ -7,7 +9,57 @@ import * as deleteResource from './delete';
79

810
export { 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,

nodes/ITGlue/actions/configurationStatus/index.ts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
1+
import { INodeProperties } from 'n8n-workflow';
2+
13
import * as get from './get';
24
import * as getById from './getById';
35
import * as create from './create';
46
import * as update from './update';
57

68
export { get, getById, create, update };
79

8-
export const descriptions = [
10+
export const descriptions: INodeProperties[] = [
11+
{
12+
displayName: 'Operation',
13+
name: 'operation',
14+
type: 'options',
15+
noDataExpression: true,
16+
displayOptions: {
17+
show: {
18+
resource: ['configurationStatus'],
19+
},
20+
},
21+
options: [
22+
{
23+
name: 'Create',
24+
value: 'create',
25+
description: 'Create a new record',
26+
action: 'Create a record',
27+
},
28+
{
29+
name: 'Get',
30+
value: 'get',
31+
description: 'Get records',
32+
action: 'Get records',
33+
},
34+
{
35+
name: 'Get by ID',
36+
value: 'getById',
37+
description: 'Get a record by ID',
38+
action: 'Get record by ID',
39+
},
40+
{
41+
name: 'Update',
42+
value: 'update',
43+
description: 'Update a record',
44+
action: 'Update a record',
45+
},
46+
],
47+
default: 'get',
48+
},
949
...get.description,
1050
...getById.description,
1151
...create.description,

nodes/ITGlue/actions/configurationType/index.ts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
1+
import { INodeProperties } from 'n8n-workflow';
2+
13
import * as get from './get';
24
import * as getById from './getById';
35
import * as create from './create';
46
import * as update from './update';
57

68
export { get, getById, create, update };
79

8-
export const descriptions = [
10+
export const descriptions: INodeProperties[] = [
11+
{
12+
displayName: 'Operation',
13+
name: 'operation',
14+
type: 'options',
15+
noDataExpression: true,
16+
displayOptions: {
17+
show: {
18+
resource: ['configurationType'],
19+
},
20+
},
21+
options: [
22+
{
23+
name: 'Create',
24+
value: 'create',
25+
description: 'Create a new record',
26+
action: 'Create a record',
27+
},
28+
{
29+
name: 'Get',
30+
value: 'get',
31+
description: 'Get records',
32+
action: 'Get records',
33+
},
34+
{
35+
name: 'Get by ID',
36+
value: 'getById',
37+
description: 'Get a record by ID',
38+
action: 'Get record by ID',
39+
},
40+
{
41+
name: 'Update',
42+
value: 'update',
43+
description: 'Update a record',
44+
action: 'Update a record',
45+
},
46+
],
47+
default: 'get',
48+
},
949
...get.description,
1050
...getById.description,
1151
...create.description,

nodes/ITGlue/actions/contactType/index.ts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
1+
import { INodeProperties } from 'n8n-workflow';
2+
13
import * as get from './get';
24
import * as getById from './getById';
35
import * as create from './create';
46
import * as update from './update';
57

68
export { get, getById, create, update };
79

8-
export const descriptions = [
10+
export const descriptions: INodeProperties[] = [
11+
{
12+
displayName: 'Operation',
13+
name: 'operation',
14+
type: 'options',
15+
noDataExpression: true,
16+
displayOptions: {
17+
show: {
18+
resource: ['contactType'],
19+
},
20+
},
21+
options: [
22+
{
23+
name: 'Create',
24+
value: 'create',
25+
description: 'Create a new record',
26+
action: 'Create a record',
27+
},
28+
{
29+
name: 'Get',
30+
value: 'get',
31+
description: 'Get records',
32+
action: 'Get records',
33+
},
34+
{
35+
name: 'Get by ID',
36+
value: 'getById',
37+
description: 'Get a record by ID',
38+
action: 'Get record by ID',
39+
},
40+
{
41+
name: 'Update',
42+
value: 'update',
43+
description: 'Update a record',
44+
action: 'Update a record',
45+
},
46+
],
47+
default: 'get',
48+
},
949
...get.description,
1050
...getById.description,
1151
...create.description,

nodes/ITGlue/actions/flexibleAssetField/index.ts

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { INodeProperties } from 'n8n-workflow';
2+
13
import * as get from './get';
24
import * as getById from './getById';
35
import * as create from './create';
@@ -7,7 +9,57 @@ import * as destroy from './destroy';
79

810
export { get, getById, create, update, bulkUpdate, destroy };
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: ['flexibleAssetField'],
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: 'destroy',
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,

nodes/ITGlue/actions/flexibleAssetType/index.ts

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { INodeProperties } from 'n8n-workflow';
2+
13
import * as get from './get';
24
import * as getById from './getById';
35
import * as create from './create';
@@ -6,7 +8,51 @@ import * as deleteResource from './delete';
68

79
export { get, getById, create, update, deleteResource as delete };
810

9-
export const descriptions = [
11+
export const descriptions: INodeProperties[] = [
12+
{
13+
displayName: 'Operation',
14+
name: 'operation',
15+
type: 'options',
16+
noDataExpression: true,
17+
displayOptions: {
18+
show: {
19+
resource: ['flexibleAssetType'],
20+
},
21+
},
22+
options: [
23+
{
24+
name: 'Create',
25+
value: 'create',
26+
description: 'Create a new record',
27+
action: 'Create a record',
28+
},
29+
{
30+
name: 'Delete',
31+
value: 'delete',
32+
description: 'Delete a record',
33+
action: 'Delete a record',
34+
},
35+
{
36+
name: 'Get',
37+
value: 'get',
38+
description: 'Get records',
39+
action: 'Get records',
40+
},
41+
{
42+
name: 'Get by ID',
43+
value: 'getById',
44+
description: 'Get a record by ID',
45+
action: 'Get record by ID',
46+
},
47+
{
48+
name: 'Update',
49+
value: 'update',
50+
description: 'Update a record',
51+
action: 'Update a record',
52+
},
53+
],
54+
default: 'get',
55+
},
1056
...get.description,
1157
...getById.description,
1258
...create.description,

0 commit comments

Comments
 (0)