@joshuanode/n8n-nodes-sophos-central 0.1.0 → 0.3.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.
- package/README.md +32 -13
- package/dist/credentials/SophosCentralApi.credentials.d.ts +0 -0
- package/dist/credentials/SophosCentralApi.credentials.js +0 -0
- package/dist/credentials/SophosCentralApi.credentials.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/nodes/SophosCentral/GenericFunctions.d.ts +0 -0
- package/dist/nodes/SophosCentral/GenericFunctions.js +0 -0
- package/dist/nodes/SophosCentral/GenericFunctions.js.map +0 -0
- package/dist/nodes/SophosCentral/SophosCentral.node.d.ts +0 -0
- package/dist/nodes/SophosCentral/SophosCentral.node.js +218 -7
- package/dist/nodes/SophosCentral/SophosCentral.node.js.map +1 -1
- package/dist/nodes/SophosCentral/SophosCentral.node.json +0 -0
- package/dist/nodes/SophosCentral/descriptions/AlertDescription.d.ts +0 -0
- package/dist/nodes/SophosCentral/descriptions/AlertDescription.js +7 -0
- package/dist/nodes/SophosCentral/descriptions/AlertDescription.js.map +1 -1
- package/dist/nodes/SophosCentral/descriptions/FirewallDescription.d.ts +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirewallDescription.js +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirewallDescription.js.map +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirewallGroupDescription.d.ts +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirewallGroupDescription.js +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirewallGroupDescription.js.map +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirmwareDescription.d.ts +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirmwareDescription.js +0 -0
- package/dist/nodes/SophosCentral/descriptions/FirmwareDescription.js.map +0 -0
- package/dist/nodes/SophosCentral/descriptions/HealthDescription.d.ts +0 -0
- package/dist/nodes/SophosCentral/descriptions/HealthDescription.js +0 -0
- package/dist/nodes/SophosCentral/descriptions/HealthDescription.js.map +0 -0
- package/dist/nodes/SophosCentral/descriptions/OrganizationDescription.d.ts +3 -0
- package/dist/nodes/SophosCentral/descriptions/OrganizationDescription.js +292 -0
- package/dist/nodes/SophosCentral/descriptions/OrganizationDescription.js.map +1 -0
- package/dist/nodes/SophosCentral/descriptions/PartnerDescription.d.ts +3 -0
- package/dist/nodes/SophosCentral/descriptions/PartnerDescription.js +152 -0
- package/dist/nodes/SophosCentral/descriptions/PartnerDescription.js.map +1 -0
- package/dist/nodes/SophosCentral/descriptions/index.d.ts +0 -0
- package/dist/nodes/SophosCentral/descriptions/index.js +6 -0
- package/dist/nodes/SophosCentral/descriptions/index.js.map +1 -1
- package/dist/nodes/SophosCentral/types.d.ts +0 -0
- package/dist/nodes/SophosCentral/types.js +0 -0
- package/dist/nodes/SophosCentral/types.js.map +0 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationFields = exports.organizationOperations = void 0;
|
|
4
|
+
exports.organizationOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['organization'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new tenant organization (Partner accounts only)',
|
|
20
|
+
action: 'Create an organization',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get',
|
|
24
|
+
value: 'get',
|
|
25
|
+
description: 'Get a single tenant organization',
|
|
26
|
+
action: 'Get an organization',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Many',
|
|
30
|
+
value: 'getAll',
|
|
31
|
+
description: 'Get many tenant organizations',
|
|
32
|
+
action: 'Get many organizations',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
default: 'getAll',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
exports.organizationFields = [
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Tenant ID',
|
|
41
|
+
name: 'tenantId',
|
|
42
|
+
type: 'string',
|
|
43
|
+
required: true,
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: {
|
|
46
|
+
resource: ['organization'],
|
|
47
|
+
operation: ['get'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
default: '',
|
|
51
|
+
placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
|
|
52
|
+
description: 'The ID of the tenant to retrieve',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Name',
|
|
56
|
+
name: 'name',
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: true,
|
|
59
|
+
displayOptions: {
|
|
60
|
+
show: {
|
|
61
|
+
resource: ['organization'],
|
|
62
|
+
operation: ['create'],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
default: '',
|
|
66
|
+
placeholder: 'e.g. Acme Corporation',
|
|
67
|
+
description: 'The name of the tenant (cannot be changed after creation)',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Data Geography',
|
|
71
|
+
name: 'dataGeography',
|
|
72
|
+
type: 'options',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['organization'],
|
|
77
|
+
operation: ['create'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
options: [
|
|
81
|
+
{ name: 'United States', value: 'US' },
|
|
82
|
+
{ name: 'Ireland', value: 'IE' },
|
|
83
|
+
{ name: 'Germany', value: 'DE' },
|
|
84
|
+
{ name: 'Canada', value: 'CA' },
|
|
85
|
+
{ name: 'Australia', value: 'AU' },
|
|
86
|
+
{ name: 'Japan', value: 'JP' },
|
|
87
|
+
],
|
|
88
|
+
default: 'US',
|
|
89
|
+
description: 'The geographical location where tenant data will be stored',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Billing Type',
|
|
93
|
+
name: 'billingType',
|
|
94
|
+
type: 'options',
|
|
95
|
+
required: true,
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['organization'],
|
|
99
|
+
operation: ['create'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
options: [
|
|
103
|
+
{ name: 'Trial', value: 'trial' },
|
|
104
|
+
{ name: 'Usage', value: 'usage' },
|
|
105
|
+
],
|
|
106
|
+
default: 'usage',
|
|
107
|
+
description: 'The billing type for the tenant',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Contact First Name',
|
|
111
|
+
name: 'contactFirstName',
|
|
112
|
+
type: 'string',
|
|
113
|
+
required: true,
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
resource: ['organization'],
|
|
117
|
+
operation: ['create'],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
default: '',
|
|
121
|
+
description: 'Primary contact first name',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
displayName: 'Contact Last Name',
|
|
125
|
+
name: 'contactLastName',
|
|
126
|
+
type: 'string',
|
|
127
|
+
required: true,
|
|
128
|
+
displayOptions: {
|
|
129
|
+
show: {
|
|
130
|
+
resource: ['organization'],
|
|
131
|
+
operation: ['create'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
default: '',
|
|
135
|
+
description: 'Primary contact last name',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Contact Email',
|
|
139
|
+
name: 'contactEmail',
|
|
140
|
+
type: 'string',
|
|
141
|
+
required: true,
|
|
142
|
+
displayOptions: {
|
|
143
|
+
show: {
|
|
144
|
+
resource: ['organization'],
|
|
145
|
+
operation: ['create'],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
default: '',
|
|
149
|
+
placeholder: 'e.g. admin@example.com',
|
|
150
|
+
description: 'Primary contact email address',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
displayName: 'Contact Phone',
|
|
154
|
+
name: 'contactPhone',
|
|
155
|
+
type: 'string',
|
|
156
|
+
required: true,
|
|
157
|
+
displayOptions: {
|
|
158
|
+
show: {
|
|
159
|
+
resource: ['organization'],
|
|
160
|
+
operation: ['create'],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
default: '',
|
|
164
|
+
placeholder: 'e.g. +1-555-123-4567',
|
|
165
|
+
description: 'Primary contact phone number',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Address Line 1',
|
|
169
|
+
name: 'addressLine1',
|
|
170
|
+
type: 'string',
|
|
171
|
+
required: true,
|
|
172
|
+
displayOptions: {
|
|
173
|
+
show: {
|
|
174
|
+
resource: ['organization'],
|
|
175
|
+
operation: ['create'],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
default: '',
|
|
179
|
+
description: 'Street address',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
displayName: 'City',
|
|
183
|
+
name: 'city',
|
|
184
|
+
type: 'string',
|
|
185
|
+
required: true,
|
|
186
|
+
displayOptions: {
|
|
187
|
+
show: {
|
|
188
|
+
resource: ['organization'],
|
|
189
|
+
operation: ['create'],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
default: '',
|
|
193
|
+
description: 'City',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Country Code',
|
|
197
|
+
name: 'countryCode',
|
|
198
|
+
type: 'string',
|
|
199
|
+
required: true,
|
|
200
|
+
displayOptions: {
|
|
201
|
+
show: {
|
|
202
|
+
resource: ['organization'],
|
|
203
|
+
operation: ['create'],
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
default: 'US',
|
|
207
|
+
placeholder: 'e.g. US, GB, CA',
|
|
208
|
+
description: 'Two-letter ISO country code',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
displayName: 'Postal Code',
|
|
212
|
+
name: 'postalCode',
|
|
213
|
+
type: 'string',
|
|
214
|
+
required: true,
|
|
215
|
+
displayOptions: {
|
|
216
|
+
show: {
|
|
217
|
+
resource: ['organization'],
|
|
218
|
+
operation: ['create'],
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
default: '',
|
|
222
|
+
description: 'Postal/ZIP code',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
displayName: 'Additional Fields',
|
|
226
|
+
name: 'additionalFields',
|
|
227
|
+
type: 'collection',
|
|
228
|
+
placeholder: 'Add Field',
|
|
229
|
+
default: {},
|
|
230
|
+
displayOptions: {
|
|
231
|
+
show: {
|
|
232
|
+
resource: ['organization'],
|
|
233
|
+
operation: ['create'],
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
options: [
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Display Name',
|
|
239
|
+
name: 'showAs',
|
|
240
|
+
type: 'string',
|
|
241
|
+
default: '',
|
|
242
|
+
description: 'The tenant display name (defaults to name if not provided)',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Address Line 2',
|
|
246
|
+
name: 'addressLine2',
|
|
247
|
+
type: 'string',
|
|
248
|
+
default: '',
|
|
249
|
+
description: 'Additional address information',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
displayName: 'State/Province',
|
|
253
|
+
name: 'state',
|
|
254
|
+
type: 'string',
|
|
255
|
+
default: '',
|
|
256
|
+
description: 'State or province',
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
displayName: 'Return All',
|
|
262
|
+
name: 'returnAll',
|
|
263
|
+
type: 'boolean',
|
|
264
|
+
displayOptions: {
|
|
265
|
+
show: {
|
|
266
|
+
resource: ['organization'],
|
|
267
|
+
operation: ['getAll'],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
default: false,
|
|
271
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Limit',
|
|
275
|
+
name: 'limit',
|
|
276
|
+
type: 'number',
|
|
277
|
+
displayOptions: {
|
|
278
|
+
show: {
|
|
279
|
+
resource: ['organization'],
|
|
280
|
+
operation: ['getAll'],
|
|
281
|
+
returnAll: [false],
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
typeOptions: {
|
|
285
|
+
minValue: 1,
|
|
286
|
+
maxValue: 1000,
|
|
287
|
+
},
|
|
288
|
+
default: 50,
|
|
289
|
+
description: 'Max number of results to return',
|
|
290
|
+
},
|
|
291
|
+
];
|
|
292
|
+
//# sourceMappingURL=OrganizationDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationDescription.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/OrganizationDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACxD;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,cAAc,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0DAA0D;gBACvE,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW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AmB;aAChC;SACD;KACD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,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,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.partnerFields = exports.partnerOperations = void 0;
|
|
4
|
+
exports.partnerOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['partner'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Billing Usage',
|
|
18
|
+
value: 'getBillingUsage',
|
|
19
|
+
description: 'Get monthly billing usage report for all tenants',
|
|
20
|
+
action: 'Get billing usage',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many Admins',
|
|
24
|
+
value: 'getAllAdmins',
|
|
25
|
+
description: 'Get all partner administrators',
|
|
26
|
+
action: 'Get many admins',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Many Roles',
|
|
30
|
+
value: 'getAllRoles',
|
|
31
|
+
description: 'Get all available partner roles and permissions',
|
|
32
|
+
action: 'Get many roles',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
default: 'getBillingUsage',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
exports.partnerFields = [
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Partner Account Required',
|
|
41
|
+
name: 'partnerNotice',
|
|
42
|
+
type: 'notice',
|
|
43
|
+
default: '',
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: {
|
|
46
|
+
resource: ['partner'],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
description: 'Partner operations require Partner API credentials configured in your Sophos Central credentials.',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Year',
|
|
53
|
+
name: 'year',
|
|
54
|
+
type: 'number',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['partner'],
|
|
59
|
+
operation: ['getBillingUsage'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
default: '={{ new Date().getFullYear() }}',
|
|
63
|
+
description: 'Year for billing report (e.g., 2026)',
|
|
64
|
+
typeOptions: {
|
|
65
|
+
minValue: 2020,
|
|
66
|
+
maxValue: 2099,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Month',
|
|
71
|
+
name: 'month',
|
|
72
|
+
type: 'options',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['partner'],
|
|
77
|
+
operation: ['getBillingUsage'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
options: [
|
|
81
|
+
{ name: 'January', value: 1 },
|
|
82
|
+
{ name: 'February', value: 2 },
|
|
83
|
+
{ name: 'March', value: 3 },
|
|
84
|
+
{ name: 'April', value: 4 },
|
|
85
|
+
{ name: 'May', value: 5 },
|
|
86
|
+
{ name: 'June', value: 6 },
|
|
87
|
+
{ name: 'July', value: 7 },
|
|
88
|
+
{ name: 'August', value: 8 },
|
|
89
|
+
{ name: 'September', value: 9 },
|
|
90
|
+
{ name: 'October', value: 10 },
|
|
91
|
+
{ name: 'November', value: 11 },
|
|
92
|
+
{ name: 'December', value: 12 },
|
|
93
|
+
],
|
|
94
|
+
default: 1,
|
|
95
|
+
description: 'Month for billing report',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Filters',
|
|
99
|
+
name: 'billingFilters',
|
|
100
|
+
type: 'collection',
|
|
101
|
+
placeholder: 'Add Filter',
|
|
102
|
+
default: {},
|
|
103
|
+
displayOptions: {
|
|
104
|
+
show: {
|
|
105
|
+
resource: ['partner'],
|
|
106
|
+
operation: ['getBillingUsage'],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
options: [
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Tenant ID',
|
|
112
|
+
name: 'tenantId',
|
|
113
|
+
type: 'string',
|
|
114
|
+
default: '',
|
|
115
|
+
placeholder: 'e.g. a1b2c3d4-e5f6-7890-abcd-ef1234567890',
|
|
116
|
+
description: 'Filter billing report for a specific tenant',
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Return All',
|
|
122
|
+
name: 'returnAll',
|
|
123
|
+
type: 'boolean',
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
resource: ['partner'],
|
|
127
|
+
operation: ['getAllAdmins', 'getAllRoles'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
default: false,
|
|
131
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Limit',
|
|
135
|
+
name: 'limit',
|
|
136
|
+
type: 'number',
|
|
137
|
+
displayOptions: {
|
|
138
|
+
show: {
|
|
139
|
+
resource: ['partner'],
|
|
140
|
+
operation: ['getAllAdmins', 'getAllRoles'],
|
|
141
|
+
returnAll: [false],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
typeOptions: {
|
|
145
|
+
minValue: 1,
|
|
146
|
+
maxValue: 1000,
|
|
147
|
+
},
|
|
148
|
+
default: 50,
|
|
149
|
+
description: 'Max number of results to return',
|
|
150
|
+
},
|
|
151
|
+
];
|
|
152
|
+
//# sourceMappingURL=PartnerDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartnerDescription.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/PartnerDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;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,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,kDAAkD;gBAC/D,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,iDAAiD;gBAC9D,MAAM,EAAE,gBAAgB;aACxB;SACD;QACD,OAAO,EAAE,iBAAiB;KAC1B;CACD,CAAC;AAEW,QAAA,aAAa,GAAsB;IAE/C;QACC,WAAW,EAAE,0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AE,aAAa,CAAC;gBAC1C,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"}
|
|
File without changes
|
|
@@ -6,12 +6,16 @@ const FirewallDescription_1 = require("./FirewallDescription");
|
|
|
6
6
|
const FirewallGroupDescription_1 = require("./FirewallGroupDescription");
|
|
7
7
|
const FirmwareDescription_1 = require("./FirmwareDescription");
|
|
8
8
|
const HealthDescription_1 = require("./HealthDescription");
|
|
9
|
+
const OrganizationDescription_1 = require("./OrganizationDescription");
|
|
10
|
+
const PartnerDescription_1 = require("./PartnerDescription");
|
|
9
11
|
exports.operationFields = [
|
|
10
12
|
...AlertDescription_1.alertOperations,
|
|
11
13
|
...FirewallDescription_1.firewallOperations,
|
|
12
14
|
...FirewallGroupDescription_1.firewallGroupOperations,
|
|
13
15
|
...FirmwareDescription_1.firmwareOperations,
|
|
14
16
|
...HealthDescription_1.healthOperations,
|
|
17
|
+
...OrganizationDescription_1.organizationOperations,
|
|
18
|
+
...PartnerDescription_1.partnerOperations,
|
|
15
19
|
];
|
|
16
20
|
exports.resourceFields = [
|
|
17
21
|
...AlertDescription_1.alertFields,
|
|
@@ -19,5 +23,7 @@ exports.resourceFields = [
|
|
|
19
23
|
...FirewallGroupDescription_1.firewallGroupFields,
|
|
20
24
|
...FirmwareDescription_1.firmwareFields,
|
|
21
25
|
...HealthDescription_1.healthFields,
|
|
26
|
+
...OrganizationDescription_1.organizationFields,
|
|
27
|
+
...PartnerDescription_1.partnerFields,
|
|
22
28
|
];
|
|
23
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/index.ts"],"names":[],"mappings":";;;AACA,yDAAkE;AAClE,+DAA2E;AAC3E,yEAA0F;AAC1F,+DAA2E;AAC3E,2DAAqE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/SophosCentral/descriptions/index.ts"],"names":[],"mappings":";;;AACA,yDAAkE;AAClE,+DAA2E;AAC3E,yEAA0F;AAC1F,+DAA2E;AAC3E,2DAAqE;AACrE,uEAAuF;AACvF,6DAAwE;AAE3D,QAAA,eAAe,GAAG;IAC9B,GAAG,kCAAe;IAClB,GAAG,wCAAkB;IACrB,GAAG,kDAAuB;IAC1B,GAAG,wCAAkB;IACrB,GAAG,oCAAgB;IACnB,GAAG,gDAAsB;IACzB,GAAG,sCAAiB;CACpB,CAAC;AAEW,QAAA,cAAc,GAAG;IAC7B,GAAG,8BAAW;IACd,GAAG,oCAAc;IACjB,GAAG,8CAAmB;IACtB,GAAG,oCAAc;IACjB,GAAG,gCAAY;IACf,GAAG,4CAAkB;IACrB,GAAG,kCAAa;CAChB,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|