@joshuanode/n8n-nodes-sophos-central 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -0
  3. package/dist/credentials/SophosCentralApi.credentials.d.ts +9 -0
  4. package/dist/credentials/SophosCentralApi.credentials.js +72 -0
  5. package/dist/credentials/SophosCentralApi.credentials.js.map +1 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.js +19 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/nodes/SophosCentral/GenericFunctions.d.ts +12 -0
  10. package/dist/nodes/SophosCentral/GenericFunctions.js +296 -0
  11. package/dist/nodes/SophosCentral/GenericFunctions.js.map +1 -0
  12. package/dist/nodes/SophosCentral/SophosCentral.node.d.ts +13 -0
  13. package/dist/nodes/SophosCentral/SophosCentral.node.js +577 -0
  14. package/dist/nodes/SophosCentral/SophosCentral.node.js.map +1 -0
  15. package/dist/nodes/SophosCentral/SophosCentral.node.json +17 -0
  16. package/dist/nodes/SophosCentral/descriptions/AlertDescription.d.ts +3 -0
  17. package/dist/nodes/SophosCentral/descriptions/AlertDescription.js +211 -0
  18. package/dist/nodes/SophosCentral/descriptions/AlertDescription.js.map +1 -0
  19. package/dist/nodes/SophosCentral/descriptions/FirewallDescription.d.ts +3 -0
  20. package/dist/nodes/SophosCentral/descriptions/FirewallDescription.js +223 -0
  21. package/dist/nodes/SophosCentral/descriptions/FirewallDescription.js.map +1 -0
  22. package/dist/nodes/SophosCentral/descriptions/FirewallGroupDescription.d.ts +3 -0
  23. package/dist/nodes/SophosCentral/descriptions/FirewallGroupDescription.js +132 -0
  24. package/dist/nodes/SophosCentral/descriptions/FirewallGroupDescription.js.map +1 -0
  25. package/dist/nodes/SophosCentral/descriptions/FirmwareDescription.d.ts +3 -0
  26. package/dist/nodes/SophosCentral/descriptions/FirmwareDescription.js +316 -0
  27. package/dist/nodes/SophosCentral/descriptions/FirmwareDescription.js.map +1 -0
  28. package/dist/nodes/SophosCentral/descriptions/HealthDescription.d.ts +3 -0
  29. package/dist/nodes/SophosCentral/descriptions/HealthDescription.js +163 -0
  30. package/dist/nodes/SophosCentral/descriptions/HealthDescription.js.map +1 -0
  31. package/dist/nodes/SophosCentral/descriptions/index.d.ts +2 -0
  32. package/dist/nodes/SophosCentral/descriptions/index.js +23 -0
  33. package/dist/nodes/SophosCentral/descriptions/index.js.map +1 -0
  34. package/dist/nodes/SophosCentral/sophosCentral.svg +18 -0
  35. package/dist/nodes/SophosCentral/types.d.ts +74 -0
  36. package/dist/nodes/SophosCentral/types.js +3 -0
  37. package/dist/nodes/SophosCentral/types.js.map +1 -0
  38. package/dist/package.json +68 -0
  39. package/dist/tsconfig.tsbuildinfo +1 -0
  40. package/package.json +68 -0
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const alertOperations: INodeProperties[];
3
+ export declare const alertFields: INodeProperties[];
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.alertFields = exports.alertOperations = void 0;
4
+ exports.alertOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['alert'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get',
18
+ value: 'get',
19
+ description: 'Get a single alert',
20
+ action: 'Get an alert',
21
+ },
22
+ {
23
+ name: 'Get Many',
24
+ value: 'getAll',
25
+ description: 'Get many alerts',
26
+ action: 'Get many alerts',
27
+ },
28
+ {
29
+ name: 'Perform Action',
30
+ value: 'performAction',
31
+ description: 'Acknowledge or resolve an alert',
32
+ action: 'Perform action on alert',
33
+ },
34
+ ],
35
+ default: 'getAll',
36
+ },
37
+ {
38
+ displayName: 'Action',
39
+ name: 'action',
40
+ type: 'options',
41
+ displayOptions: {
42
+ show: {
43
+ operation: ['performAction'],
44
+ resource: ['alert'],
45
+ },
46
+ },
47
+ options: [
48
+ {
49
+ name: 'Acknowledge',
50
+ value: 'acknowledge',
51
+ description: 'Acknowledge an alert',
52
+ action: 'Acknowledge an alert',
53
+ },
54
+ {
55
+ name: 'Resolve',
56
+ value: 'resolve',
57
+ description: 'Resolve an alert',
58
+ action: 'Resolve an alert',
59
+ },
60
+ ],
61
+ default: 'acknowledge',
62
+ description: 'Action to perform on the alert',
63
+ },
64
+ ];
65
+ exports.alertFields = [
66
+ {
67
+ displayName: 'Tenant',
68
+ name: 'tenantId',
69
+ type: 'resourceLocator',
70
+ default: { mode: 'list', value: '' },
71
+ description: 'Tenant to perform the operation on',
72
+ displayOptions: {
73
+ show: {
74
+ resource: ['alert'],
75
+ },
76
+ },
77
+ modes: [
78
+ {
79
+ displayName: 'From List',
80
+ name: 'list',
81
+ type: 'list',
82
+ typeOptions: {
83
+ searchListMethod: 'tenantSearch',
84
+ searchable: true,
85
+ },
86
+ },
87
+ {
88
+ displayName: 'By ID',
89
+ name: 'id',
90
+ type: 'string',
91
+ placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
92
+ hint: 'Use {{ $json.tenantId }} to reference from previous step',
93
+ },
94
+ ],
95
+ },
96
+ {
97
+ displayName: 'Alert ID',
98
+ name: 'alertId',
99
+ type: 'resourceLocator',
100
+ default: { mode: 'list', value: '' },
101
+ required: true,
102
+ displayOptions: {
103
+ show: {
104
+ resource: ['alert'],
105
+ operation: ['get', 'performAction'],
106
+ },
107
+ },
108
+ modes: [
109
+ {
110
+ displayName: 'From List',
111
+ name: 'list',
112
+ type: 'list',
113
+ typeOptions: {
114
+ searchListMethod: 'alertSearch',
115
+ searchable: true,
116
+ },
117
+ },
118
+ {
119
+ displayName: 'By ID',
120
+ name: 'id',
121
+ type: 'string',
122
+ placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
123
+ },
124
+ ],
125
+ },
126
+ {
127
+ displayName: 'Return All',
128
+ name: 'returnAll',
129
+ type: 'boolean',
130
+ displayOptions: {
131
+ show: {
132
+ resource: ['alert'],
133
+ operation: ['getAll'],
134
+ },
135
+ },
136
+ default: false,
137
+ description: 'Whether to return all results or only up to a given limit',
138
+ },
139
+ {
140
+ displayName: 'Limit',
141
+ name: 'limit',
142
+ type: 'number',
143
+ displayOptions: {
144
+ show: {
145
+ resource: ['alert'],
146
+ operation: ['getAll'],
147
+ returnAll: [false],
148
+ },
149
+ },
150
+ typeOptions: {
151
+ minValue: 1,
152
+ maxValue: 1000,
153
+ },
154
+ default: 50,
155
+ description: 'Max number of results to return',
156
+ },
157
+ {
158
+ displayName: 'Filters',
159
+ name: 'filters',
160
+ type: 'collection',
161
+ placeholder: 'Add Filter',
162
+ default: {},
163
+ displayOptions: {
164
+ show: {
165
+ resource: ['alert'],
166
+ operation: ['getAll'],
167
+ },
168
+ },
169
+ options: [
170
+ {
171
+ displayName: 'Severity',
172
+ name: 'severity',
173
+ type: 'multiOptions',
174
+ options: [
175
+ { name: 'Low', value: 'low' },
176
+ { name: 'Medium', value: 'medium' },
177
+ { name: 'High', value: 'high' },
178
+ ],
179
+ default: [],
180
+ description: 'Filter by alert severity',
181
+ },
182
+ {
183
+ displayName: 'Product',
184
+ name: 'product',
185
+ type: 'options',
186
+ options: [
187
+ { name: 'Endpoint', value: 'endpoint' },
188
+ { name: 'Server', value: 'server' },
189
+ { name: 'Mobile', value: 'mobile' },
190
+ { name: 'Encryption', value: 'encryption' },
191
+ { name: 'Email', value: 'email' },
192
+ { name: 'Gateway', value: 'gateway' },
193
+ { name: 'Wifi', value: 'wifi' },
194
+ { name: 'Phish Threat', value: 'phish_threat' },
195
+ { name: 'Cloud Optix', value: 'cloud_optix' },
196
+ { name: 'Firewall', value: 'firewall' },
197
+ ],
198
+ default: 'firewall',
199
+ description: 'Filter by product type',
200
+ },
201
+ {
202
+ displayName: 'Start Date',
203
+ name: 'from',
204
+ type: 'dateTime',
205
+ default: '',
206
+ description: 'Filter alerts created after this date',
207
+ },
208
+ ],
209
+ },
210
+ ];
211
+ //# sourceMappingURL=AlertDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDescription.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/AlertDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,yBAAyB;aACjC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,eAAe,CAAC;gBAC5B,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,kBAAkB;gBAC/B,MAAM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,MAAM,EAAE;iBAC/B;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACvC;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;oBACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;oBACjC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC/B,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;oBAC7C,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;iBACvC;gBACD,OAAO,EAAE,UAAU;gBACnB,WAAW,EAAE,wBAAwB;aACrC;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACpD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const firewallOperations: INodeProperties[];
3
+ export declare const firewallFields: INodeProperties[];
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firewallFields = exports.firewallOperations = void 0;
4
+ exports.firewallOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['firewall'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get',
18
+ value: 'get',
19
+ description: 'Get a single firewall',
20
+ action: 'Get a firewall',
21
+ },
22
+ {
23
+ name: 'Get Many',
24
+ value: 'getAll',
25
+ description: 'Get multiple firewalls',
26
+ action: 'Get many firewalls',
27
+ },
28
+ ],
29
+ default: 'get',
30
+ },
31
+ ];
32
+ exports.firewallFields = [
33
+ {
34
+ displayName: 'Tenant',
35
+ name: 'tenantId',
36
+ type: 'resourceLocator',
37
+ default: { mode: 'list', value: '' },
38
+ description: 'Tenant to perform the operation on (required for Get operation)',
39
+ displayOptions: {
40
+ show: {
41
+ resource: ['firewall'],
42
+ operation: ['get'],
43
+ },
44
+ },
45
+ modes: [
46
+ {
47
+ displayName: 'From List',
48
+ name: 'list',
49
+ type: 'list',
50
+ typeOptions: {
51
+ searchListMethod: 'tenantSearch',
52
+ searchable: true,
53
+ },
54
+ },
55
+ {
56
+ displayName: 'By ID',
57
+ name: 'id',
58
+ type: 'string',
59
+ placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
60
+ hint: 'Use {{ $json.tenantId }} to reference from previous step',
61
+ },
62
+ ],
63
+ },
64
+ {
65
+ displayName: 'Tenant',
66
+ name: 'tenantId',
67
+ type: 'resourceLocator',
68
+ default: { mode: 'list', value: '' },
69
+ description: 'Leave empty to get firewalls from ALL tenants (Partner accounts only). Select a specific tenant to filter results.',
70
+ displayOptions: {
71
+ show: {
72
+ resource: ['firewall'],
73
+ operation: ['getAll'],
74
+ },
75
+ },
76
+ modes: [
77
+ {
78
+ displayName: 'All Tenants',
79
+ name: 'all',
80
+ type: 'string',
81
+ placeholder: 'Leave empty for all tenants',
82
+ hint: 'Leave this field empty to get firewalls from all tenants',
83
+ },
84
+ {
85
+ displayName: 'From List',
86
+ name: 'list',
87
+ type: 'list',
88
+ typeOptions: {
89
+ searchListMethod: 'tenantSearch',
90
+ searchable: true,
91
+ },
92
+ },
93
+ {
94
+ displayName: 'By ID',
95
+ name: 'id',
96
+ type: 'string',
97
+ placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
98
+ },
99
+ ],
100
+ },
101
+ {
102
+ displayName: 'Firewall',
103
+ name: 'firewallId',
104
+ type: 'resourceLocator',
105
+ default: { mode: 'list', value: '' },
106
+ required: true,
107
+ description: 'Select from the list or provide the Firewall UUID (not Serial Number). The list displays names/serials for readability but uses UUIDs internally.',
108
+ displayOptions: {
109
+ show: {
110
+ resource: ['firewall'],
111
+ operation: ['get'],
112
+ },
113
+ },
114
+ modes: [
115
+ {
116
+ displayName: 'From List',
117
+ name: 'list',
118
+ type: 'list',
119
+ typeOptions: {
120
+ searchListMethod: 'firewallSearch',
121
+ searchable: true,
122
+ },
123
+ },
124
+ {
125
+ displayName: 'By ID',
126
+ name: 'id',
127
+ type: 'string',
128
+ validation: [
129
+ {
130
+ type: 'regex',
131
+ properties: {
132
+ regex: '^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$',
133
+ errorMessage: 'Not a valid firewall ID (must be UUID format)',
134
+ },
135
+ },
136
+ ],
137
+ placeholder: 'e.g. 12345678-1234-1234-1234-123456789abc',
138
+ hint: 'Use {{ $json.firewallId }} to reference from previous step',
139
+ },
140
+ {
141
+ displayName: 'By URL',
142
+ name: 'url',
143
+ type: 'string',
144
+ placeholder: 'https://api-us01.central.sophos.com/firewall/v1/firewalls/...',
145
+ extractValue: {
146
+ type: 'regex',
147
+ regex: 'firewalls/([a-f0-9-]+)',
148
+ },
149
+ },
150
+ ],
151
+ },
152
+ {
153
+ displayName: 'Return All',
154
+ name: 'returnAll',
155
+ type: 'boolean',
156
+ displayOptions: {
157
+ show: {
158
+ resource: ['firewall'],
159
+ operation: ['getAll'],
160
+ },
161
+ },
162
+ default: false,
163
+ description: 'Whether to return all results or only up to a given limit',
164
+ },
165
+ {
166
+ displayName: 'Limit',
167
+ name: 'limit',
168
+ type: 'number',
169
+ displayOptions: {
170
+ show: {
171
+ resource: ['firewall'],
172
+ operation: ['getAll'],
173
+ returnAll: [false],
174
+ },
175
+ },
176
+ typeOptions: {
177
+ minValue: 1,
178
+ maxValue: 1000,
179
+ },
180
+ default: 50,
181
+ description: 'Max number of results to return',
182
+ },
183
+ {
184
+ displayName: 'Filters',
185
+ name: 'filters',
186
+ type: 'collection',
187
+ placeholder: 'Add Filter',
188
+ default: {},
189
+ displayOptions: {
190
+ show: {
191
+ resource: ['firewall'],
192
+ operation: ['getAll'],
193
+ },
194
+ },
195
+ options: [
196
+ {
197
+ displayName: 'Name Contains',
198
+ name: 'name',
199
+ type: 'string',
200
+ default: '',
201
+ description: 'Filter by firewall name (client-side)',
202
+ placeholder: 'e.g. Branch or {{ $json.nameFilter }}',
203
+ },
204
+ {
205
+ displayName: 'Serial Contains',
206
+ name: 'serial',
207
+ type: 'string',
208
+ default: '',
209
+ description: 'Filter by serial number (client-side)',
210
+ placeholder: 'e.g. C0123456789 or {{ $json.serialFilter }}',
211
+ },
212
+ {
213
+ displayName: 'Firmware Version',
214
+ name: 'firmwareVersion',
215
+ type: 'string',
216
+ default: '',
217
+ description: 'Filter by exact firmware version (client-side)',
218
+ placeholder: 'e.g. 19.5.3 or {{ $json.currentVersion }}',
219
+ },
220
+ ],
221
+ },
222
+ ];
223
+ //# sourceMappingURL=FirewallDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirewallDescription.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/FirewallDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cA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QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;gBACpD,WAAW,EAAE,uCAAuC;aACpD;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;gBACpD,WAAW,EAAE,8CAA8C;aAC3D;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gDAAgD;gBAC7D,WAAW,EAAE,2CAA2C;aACxD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const firewallGroupOperations: INodeProperties[];
3
+ export declare const firewallGroupFields: INodeProperties[];
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firewallGroupFields = exports.firewallGroupOperations = void 0;
4
+ exports.firewallGroupOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['firewallGroup'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get',
18
+ value: 'get',
19
+ description: 'Get a firewall group',
20
+ action: 'Get a firewall group',
21
+ },
22
+ {
23
+ name: 'Get Many',
24
+ value: 'getAll',
25
+ description: 'Get many firewall groups',
26
+ action: 'Get many firewall groups',
27
+ },
28
+ {
29
+ name: 'Get Sync Status',
30
+ value: 'getSyncStatus',
31
+ description: 'Get sync status of firewalls in a group',
32
+ action: 'Get sync status',
33
+ },
34
+ ],
35
+ default: 'get',
36
+ },
37
+ ];
38
+ exports.firewallGroupFields = [
39
+ {
40
+ displayName: 'Tenant',
41
+ name: 'tenantId',
42
+ type: 'resourceLocator',
43
+ default: { mode: 'list', value: '' },
44
+ description: 'Tenant to perform the operation on',
45
+ displayOptions: {
46
+ show: {
47
+ resource: ['firewallGroup'],
48
+ },
49
+ },
50
+ modes: [
51
+ {
52
+ displayName: 'From List',
53
+ name: 'list',
54
+ type: 'list',
55
+ typeOptions: {
56
+ searchListMethod: 'tenantSearch',
57
+ searchable: true,
58
+ },
59
+ },
60
+ {
61
+ displayName: 'By ID',
62
+ name: 'id',
63
+ type: 'string',
64
+ placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
65
+ hint: 'Use {{ $json.tenantId }} to reference from previous step',
66
+ },
67
+ ],
68
+ },
69
+ {
70
+ displayName: 'Group',
71
+ name: 'firewallGroupId',
72
+ type: 'resourceLocator',
73
+ default: { mode: 'list', value: '' },
74
+ required: true,
75
+ description: 'Select the Firewall Group',
76
+ displayOptions: {
77
+ show: {
78
+ resource: ['firewallGroup'],
79
+ operation: ['get', 'getSyncStatus'],
80
+ },
81
+ },
82
+ modes: [
83
+ {
84
+ displayName: 'From List',
85
+ name: 'list',
86
+ type: 'list',
87
+ typeOptions: {
88
+ searchListMethod: 'firewallGroupSearch',
89
+ searchable: true,
90
+ },
91
+ },
92
+ {
93
+ displayName: 'By ID',
94
+ name: 'id',
95
+ type: 'string',
96
+ placeholder: 'e.g. 12345678-1234-1234-1234-123456789abc',
97
+ },
98
+ ],
99
+ },
100
+ {
101
+ displayName: 'Return All',
102
+ name: 'returnAll',
103
+ type: 'boolean',
104
+ displayOptions: {
105
+ show: {
106
+ resource: ['firewallGroup'],
107
+ operation: ['getAll'],
108
+ },
109
+ },
110
+ default: false,
111
+ description: 'Whether to return all results or only up to a given limit',
112
+ },
113
+ {
114
+ displayName: 'Limit',
115
+ name: 'limit',
116
+ type: 'number',
117
+ displayOptions: {
118
+ show: {
119
+ resource: ['firewallGroup'],
120
+ operation: ['getAll'],
121
+ returnAll: [false],
122
+ },
123
+ },
124
+ typeOptions: {
125
+ minValue: 1,
126
+ maxValue: 1000,
127
+ },
128
+ default: 50,
129
+ description: 'Max number of results to return',
130
+ },
131
+ ];
132
+ //# sourceMappingURL=FirewallGroupDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirewallGroupDescription.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/FirewallGroupDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;aAC3B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,yCAAyC;gBACtD,MAAM,EAAE,iBAAiB;aACzB;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;QACpC,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;aAC3B;SACD;QACD,KAAK,EAAE;YACN;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,MA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,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,IAAI;SACd;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const firmwareOperations: INodeProperties[];
3
+ export declare const firmwareFields: INodeProperties[];