@joshuanode/n8n-nodes-cipp 0.0.1
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 +142 -0
- package/dist/credentials/CippApi.credentials.d.ts +10 -0
- package/dist/credentials/CippApi.credentials.d.ts.map +1 -0
- package/dist/credentials/CippApi.credentials.js +58 -0
- package/dist/credentials/CippApi.credentials.js.map +1 -0
- package/dist/credentials/cipp.svg +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Cipp/Cipp.node.d.ts +11 -0
- package/dist/nodes/Cipp/Cipp.node.d.ts.map +1 -0
- package/dist/nodes/Cipp/Cipp.node.js +949 -0
- package/dist/nodes/Cipp/Cipp.node.js.map +1 -0
- package/dist/nodes/Cipp/GenericFunctions.d.ts +23 -0
- package/dist/nodes/Cipp/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Cipp/GenericFunctions.js +181 -0
- package/dist/nodes/Cipp/GenericFunctions.js.map +1 -0
- package/dist/nodes/Cipp/cipp.svg +4 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.js +251 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.js +458 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.d.ts +8 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.js +534 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.d.ts +6 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.js +374 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.js +315 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.js +175 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.d.ts +6 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.js +509 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.js +102 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.js +374 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/index.d.ts +3 -0
- package/dist/nodes/Cipp/descriptions/index.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/index.js +43 -0
- package/dist/nodes/Cipp/descriptions/index.js.map +1 -0
- package/dist/nodes/Cipp/types.d.ts +142 -0
- package/dist/nodes/Cipp/types.d.ts.map +1 -0
- package/dist/nodes/Cipp/types.js +3 -0
- package/dist/nodes/Cipp/types.js.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.voiceFields = exports.voiceOperations = exports.teamFields = exports.teamOperations = void 0;
|
|
4
|
+
exports.teamOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['team'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add',
|
|
18
|
+
value: 'add',
|
|
19
|
+
description: 'Create a new Microsoft Team',
|
|
20
|
+
action: 'Add a team',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Add SharePoint Site',
|
|
24
|
+
value: 'addSite',
|
|
25
|
+
description: 'Create a new SharePoint site',
|
|
26
|
+
action: 'Add share point site',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Activity',
|
|
30
|
+
value: 'getActivity',
|
|
31
|
+
description: 'Get Teams user activity',
|
|
32
|
+
action: 'Get teams activity',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get a list of Teams',
|
|
38
|
+
action: 'Get many teams',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get Sites',
|
|
42
|
+
value: 'getSites',
|
|
43
|
+
description: 'Get SharePoint sites or OneDrive accounts',
|
|
44
|
+
action: 'Get share point sites',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Manage Site Member',
|
|
48
|
+
value: 'manageSiteMember',
|
|
49
|
+
description: 'Add or remove a SharePoint site member',
|
|
50
|
+
action: 'Manage site member',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Manage Site Permissions',
|
|
54
|
+
value: 'manageSitePermissions',
|
|
55
|
+
description: 'Manage SharePoint or OneDrive permissions',
|
|
56
|
+
action: 'Manage site permissions',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
default: 'getAll',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
exports.teamFields = [
|
|
63
|
+
// Tenant selector
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Tenant',
|
|
66
|
+
name: 'tenantFilter',
|
|
67
|
+
type: 'resourceLocator',
|
|
68
|
+
default: { mode: 'list', value: '' },
|
|
69
|
+
required: true,
|
|
70
|
+
description: 'The tenant to perform the operation on',
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
resource: ['team'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
modes: [
|
|
77
|
+
{
|
|
78
|
+
displayName: 'From List',
|
|
79
|
+
name: 'list',
|
|
80
|
+
type: 'list',
|
|
81
|
+
typeOptions: {
|
|
82
|
+
searchListMethod: 'tenantSearch',
|
|
83
|
+
searchable: true,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'By Domain',
|
|
88
|
+
name: 'id',
|
|
89
|
+
type: 'string',
|
|
90
|
+
placeholder: 'e.g. contoso.onmicrosoft.com',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
// Get Many fields
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Return All',
|
|
97
|
+
name: 'returnAll',
|
|
98
|
+
type: 'boolean',
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
resource: ['team'],
|
|
102
|
+
operation: ['getAll', 'getSites', 'getActivity'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
default: false,
|
|
106
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Limit',
|
|
110
|
+
name: 'limit',
|
|
111
|
+
type: 'number',
|
|
112
|
+
displayOptions: {
|
|
113
|
+
show: {
|
|
114
|
+
resource: ['team'],
|
|
115
|
+
operation: ['getAll', 'getSites', 'getActivity'],
|
|
116
|
+
returnAll: [false],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
typeOptions: {
|
|
120
|
+
minValue: 1,
|
|
121
|
+
maxValue: 500,
|
|
122
|
+
},
|
|
123
|
+
default: 50,
|
|
124
|
+
description: 'Max number of results to return',
|
|
125
|
+
},
|
|
126
|
+
// Get Sites type
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Site Type',
|
|
129
|
+
name: 'siteType',
|
|
130
|
+
type: 'options',
|
|
131
|
+
displayOptions: {
|
|
132
|
+
show: {
|
|
133
|
+
resource: ['team'],
|
|
134
|
+
operation: ['getSites'],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
options: [
|
|
138
|
+
{ name: 'SharePoint Sites', value: 'SharePointSiteUsage' },
|
|
139
|
+
{ name: 'OneDrive Accounts', value: 'OneDriveUsageAccount' },
|
|
140
|
+
],
|
|
141
|
+
default: 'SharePointSiteUsage',
|
|
142
|
+
description: 'The type of sites to list',
|
|
143
|
+
},
|
|
144
|
+
// Add Team fields
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Team Name',
|
|
147
|
+
name: 'displayName',
|
|
148
|
+
type: 'string',
|
|
149
|
+
required: true,
|
|
150
|
+
displayOptions: {
|
|
151
|
+
show: {
|
|
152
|
+
resource: ['team'],
|
|
153
|
+
operation: ['add'],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
default: '',
|
|
157
|
+
description: 'The display name of the team',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Description',
|
|
161
|
+
name: 'teamDescription',
|
|
162
|
+
type: 'string',
|
|
163
|
+
displayOptions: {
|
|
164
|
+
show: {
|
|
165
|
+
resource: ['team'],
|
|
166
|
+
operation: ['add'],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
default: '',
|
|
170
|
+
description: 'Description of the team',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Owner',
|
|
174
|
+
name: 'owner',
|
|
175
|
+
type: 'string',
|
|
176
|
+
required: true,
|
|
177
|
+
displayOptions: {
|
|
178
|
+
show: {
|
|
179
|
+
resource: ['team'],
|
|
180
|
+
operation: ['add'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
default: '',
|
|
184
|
+
placeholder: 'owner@domain.com',
|
|
185
|
+
description: 'The UPN of the team owner',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'Visibility',
|
|
189
|
+
name: 'visibility',
|
|
190
|
+
type: 'options',
|
|
191
|
+
displayOptions: {
|
|
192
|
+
show: {
|
|
193
|
+
resource: ['team'],
|
|
194
|
+
operation: ['add'],
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
options: [
|
|
198
|
+
{ name: 'Public', value: 'public' },
|
|
199
|
+
{ name: 'Private', value: 'private' },
|
|
200
|
+
],
|
|
201
|
+
default: 'private',
|
|
202
|
+
description: 'The visibility of the team',
|
|
203
|
+
},
|
|
204
|
+
// Add SharePoint Site fields
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Site Name',
|
|
207
|
+
name: 'siteName',
|
|
208
|
+
type: 'string',
|
|
209
|
+
required: true,
|
|
210
|
+
displayOptions: {
|
|
211
|
+
show: {
|
|
212
|
+
resource: ['team'],
|
|
213
|
+
operation: ['addSite'],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
default: '',
|
|
217
|
+
description: 'The name of the SharePoint site',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Site Description',
|
|
221
|
+
name: 'siteDescription',
|
|
222
|
+
type: 'string',
|
|
223
|
+
displayOptions: {
|
|
224
|
+
show: {
|
|
225
|
+
resource: ['team'],
|
|
226
|
+
operation: ['addSite'],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
default: '',
|
|
230
|
+
description: 'Description of the site',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
displayName: 'Site Owner',
|
|
234
|
+
name: 'siteOwner',
|
|
235
|
+
type: 'string',
|
|
236
|
+
required: true,
|
|
237
|
+
displayOptions: {
|
|
238
|
+
show: {
|
|
239
|
+
resource: ['team'],
|
|
240
|
+
operation: ['addSite'],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
default: '',
|
|
244
|
+
placeholder: 'owner@domain.com',
|
|
245
|
+
description: 'The UPN of the site owner',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
displayName: 'Template',
|
|
249
|
+
name: 'templateName',
|
|
250
|
+
type: 'options',
|
|
251
|
+
displayOptions: {
|
|
252
|
+
show: {
|
|
253
|
+
resource: ['team'],
|
|
254
|
+
operation: ['addSite'],
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
options: [
|
|
258
|
+
{ name: 'Team Site', value: 'team' },
|
|
259
|
+
{ name: 'Communication Site', value: 'communication' },
|
|
260
|
+
],
|
|
261
|
+
default: 'team',
|
|
262
|
+
description: 'The site template to use',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
displayName: 'Site Design',
|
|
266
|
+
name: 'siteDesign',
|
|
267
|
+
type: 'options',
|
|
268
|
+
displayOptions: {
|
|
269
|
+
show: {
|
|
270
|
+
resource: ['team'],
|
|
271
|
+
operation: ['addSite'],
|
|
272
|
+
templateName: ['communication'],
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
options: [
|
|
276
|
+
{ name: 'Blank', value: 'blank' },
|
|
277
|
+
{ name: 'Showcase', value: 'Showcase' },
|
|
278
|
+
{ name: 'Topic', value: 'Topic' },
|
|
279
|
+
],
|
|
280
|
+
default: 'blank',
|
|
281
|
+
description: 'The site design template',
|
|
282
|
+
},
|
|
283
|
+
// Manage Site Member fields
|
|
284
|
+
{
|
|
285
|
+
displayName: 'Site URL',
|
|
286
|
+
name: 'siteUrl',
|
|
287
|
+
type: 'string',
|
|
288
|
+
required: true,
|
|
289
|
+
displayOptions: {
|
|
290
|
+
show: {
|
|
291
|
+
resource: ['team'],
|
|
292
|
+
operation: ['manageSiteMember', 'manageSitePermissions'],
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
default: '',
|
|
296
|
+
placeholder: 'https://contoso.sharepoint.com/sites/sitename',
|
|
297
|
+
description: 'The URL of the SharePoint site',
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
displayName: 'User',
|
|
301
|
+
name: 'siteUser',
|
|
302
|
+
type: 'string',
|
|
303
|
+
required: true,
|
|
304
|
+
displayOptions: {
|
|
305
|
+
show: {
|
|
306
|
+
resource: ['team'],
|
|
307
|
+
operation: ['manageSiteMember', 'manageSitePermissions'],
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
default: '',
|
|
311
|
+
placeholder: 'user@domain.com',
|
|
312
|
+
description: 'The UPN of the user to add/remove',
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
displayName: 'Action',
|
|
316
|
+
name: 'memberAction',
|
|
317
|
+
type: 'options',
|
|
318
|
+
required: true,
|
|
319
|
+
displayOptions: {
|
|
320
|
+
show: {
|
|
321
|
+
resource: ['team'],
|
|
322
|
+
operation: ['manageSiteMember'],
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
options: [
|
|
326
|
+
{ name: 'Add Member', value: 'add' },
|
|
327
|
+
{ name: 'Remove Member', value: 'remove' },
|
|
328
|
+
],
|
|
329
|
+
default: 'add',
|
|
330
|
+
description: 'Whether to add or remove the user',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
displayName: 'Remove Permission',
|
|
334
|
+
name: 'removePermission',
|
|
335
|
+
type: 'boolean',
|
|
336
|
+
displayOptions: {
|
|
337
|
+
show: {
|
|
338
|
+
resource: ['team'],
|
|
339
|
+
operation: ['manageSitePermissions'],
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
default: false,
|
|
343
|
+
description: 'Whether to remove (true) or add (false) the permission',
|
|
344
|
+
},
|
|
345
|
+
];
|
|
346
|
+
// Voice operations
|
|
347
|
+
exports.voiceOperations = [
|
|
348
|
+
{
|
|
349
|
+
displayName: 'Operation',
|
|
350
|
+
name: 'operation',
|
|
351
|
+
type: 'options',
|
|
352
|
+
noDataExpression: true,
|
|
353
|
+
displayOptions: {
|
|
354
|
+
show: {
|
|
355
|
+
resource: ['voice'],
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
options: [
|
|
359
|
+
{
|
|
360
|
+
name: 'Assign Number',
|
|
361
|
+
value: 'assignNumber',
|
|
362
|
+
description: 'Assign a phone number to a user',
|
|
363
|
+
action: 'Assign phone number',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: 'Get Emergency Locations',
|
|
367
|
+
value: 'getLocations',
|
|
368
|
+
description: 'Get Teams emergency locations',
|
|
369
|
+
action: 'Get emergency locations',
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: 'Get Phone Numbers',
|
|
373
|
+
value: 'getPhoneNumbers',
|
|
374
|
+
description: 'Get Teams voice phone numbers',
|
|
375
|
+
action: 'Get phone numbers',
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: 'Unassign Number',
|
|
379
|
+
value: 'unassignNumber',
|
|
380
|
+
description: 'Unassign a phone number from a user',
|
|
381
|
+
action: 'Unassign phone number',
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
default: 'getPhoneNumbers',
|
|
385
|
+
},
|
|
386
|
+
];
|
|
387
|
+
exports.voiceFields = [
|
|
388
|
+
// Tenant selector
|
|
389
|
+
{
|
|
390
|
+
displayName: 'Tenant',
|
|
391
|
+
name: 'tenantFilter',
|
|
392
|
+
type: 'resourceLocator',
|
|
393
|
+
default: { mode: 'list', value: '' },
|
|
394
|
+
required: true,
|
|
395
|
+
description: 'The tenant to perform the operation on',
|
|
396
|
+
displayOptions: {
|
|
397
|
+
show: {
|
|
398
|
+
resource: ['voice'],
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
modes: [
|
|
402
|
+
{
|
|
403
|
+
displayName: 'From List',
|
|
404
|
+
name: 'list',
|
|
405
|
+
type: 'list',
|
|
406
|
+
typeOptions: {
|
|
407
|
+
searchListMethod: 'tenantSearch',
|
|
408
|
+
searchable: true,
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
displayName: 'By Domain',
|
|
413
|
+
name: 'id',
|
|
414
|
+
type: 'string',
|
|
415
|
+
placeholder: 'e.g. contoso.onmicrosoft.com',
|
|
416
|
+
},
|
|
417
|
+
],
|
|
418
|
+
},
|
|
419
|
+
// Get Many fields
|
|
420
|
+
{
|
|
421
|
+
displayName: 'Return All',
|
|
422
|
+
name: 'returnAll',
|
|
423
|
+
type: 'boolean',
|
|
424
|
+
displayOptions: {
|
|
425
|
+
show: {
|
|
426
|
+
resource: ['voice'],
|
|
427
|
+
operation: ['getPhoneNumbers', 'getLocations'],
|
|
428
|
+
},
|
|
429
|
+
},
|
|
430
|
+
default: false,
|
|
431
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
displayName: 'Limit',
|
|
435
|
+
name: 'limit',
|
|
436
|
+
type: 'number',
|
|
437
|
+
displayOptions: {
|
|
438
|
+
show: {
|
|
439
|
+
resource: ['voice'],
|
|
440
|
+
operation: ['getPhoneNumbers', 'getLocations'],
|
|
441
|
+
returnAll: [false],
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
typeOptions: {
|
|
445
|
+
minValue: 1,
|
|
446
|
+
maxValue: 500,
|
|
447
|
+
},
|
|
448
|
+
default: 50,
|
|
449
|
+
description: 'Max number of results to return',
|
|
450
|
+
},
|
|
451
|
+
// Assign/Unassign fields
|
|
452
|
+
{
|
|
453
|
+
displayName: 'Phone Number',
|
|
454
|
+
name: 'phoneNumber',
|
|
455
|
+
type: 'string',
|
|
456
|
+
required: true,
|
|
457
|
+
displayOptions: {
|
|
458
|
+
show: {
|
|
459
|
+
resource: ['voice'],
|
|
460
|
+
operation: ['assignNumber', 'unassignNumber'],
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
default: '',
|
|
464
|
+
placeholder: '+1234567890',
|
|
465
|
+
description: 'The phone number to assign/unassign',
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
displayName: 'User',
|
|
469
|
+
name: 'voiceUser',
|
|
470
|
+
type: 'string',
|
|
471
|
+
required: true,
|
|
472
|
+
displayOptions: {
|
|
473
|
+
show: {
|
|
474
|
+
resource: ['voice'],
|
|
475
|
+
operation: ['assignNumber', 'unassignNumber'],
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
default: '',
|
|
479
|
+
placeholder: 'user@domain.com',
|
|
480
|
+
description: 'The UPN of the user',
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
displayName: 'Phone Number Type',
|
|
484
|
+
name: 'phoneNumberType',
|
|
485
|
+
type: 'string',
|
|
486
|
+
displayOptions: {
|
|
487
|
+
show: {
|
|
488
|
+
resource: ['voice'],
|
|
489
|
+
operation: ['assignNumber', 'unassignNumber'],
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
default: '',
|
|
493
|
+
description: 'The type of phone number',
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
displayName: 'Location Only',
|
|
497
|
+
name: 'locationOnly',
|
|
498
|
+
type: 'boolean',
|
|
499
|
+
displayOptions: {
|
|
500
|
+
show: {
|
|
501
|
+
resource: ['voice'],
|
|
502
|
+
operation: ['assignNumber'],
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
default: false,
|
|
506
|
+
description: 'Whether to only set emergency location without assigning to user',
|
|
507
|
+
},
|
|
508
|
+
];
|
|
509
|
+
//# sourceMappingURL=TeamDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/TeamDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;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,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,6BAA6B;gBAC1C,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,8BAA8B;gBAC3C,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,2CAA2C;gBACxD,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,u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,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;aAC7C;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,qBAAqB;KAClC;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;aAC7C;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,kEAAkE;KAC/E;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/TenantDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,gBAAgB,EAAE,eAAe,EA2B7C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAqEzC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tenantFields = exports.tenantOperations = void 0;
|
|
4
|
+
exports.tenantOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['tenant'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Clear Cache',
|
|
18
|
+
value: 'clearCache',
|
|
19
|
+
description: 'Clear the tenant cache in CIPP',
|
|
20
|
+
action: 'Clear tenant cache',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get a list of many managed tenants',
|
|
26
|
+
action: 'Get many tenants',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.tenantFields = [
|
|
33
|
+
// Get Many options
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Return All',
|
|
36
|
+
name: 'returnAll',
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['tenant'],
|
|
41
|
+
operation: ['getAll'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: false,
|
|
45
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Limit',
|
|
49
|
+
name: 'limit',
|
|
50
|
+
type: 'number',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['tenant'],
|
|
54
|
+
operation: ['getAll'],
|
|
55
|
+
returnAll: [false],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
typeOptions: {
|
|
59
|
+
minValue: 1,
|
|
60
|
+
maxValue: 500,
|
|
61
|
+
},
|
|
62
|
+
default: 50,
|
|
63
|
+
description: 'Max number of results to return',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Options',
|
|
67
|
+
name: 'options',
|
|
68
|
+
type: 'collection',
|
|
69
|
+
placeholder: 'Add Option',
|
|
70
|
+
default: {},
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
resource: ['tenant'],
|
|
74
|
+
operation: ['getAll'],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
options: [
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Include All Tenants Option',
|
|
80
|
+
name: 'allTenantSelector',
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
default: false,
|
|
83
|
+
description: 'Whether to include the "All Tenants" option in the results',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
// Clear Cache options
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Clear Tenant Cache Only',
|
|
90
|
+
name: 'clearCacheTenantOnly',
|
|
91
|
+
type: 'boolean',
|
|
92
|
+
displayOptions: {
|
|
93
|
+
show: {
|
|
94
|
+
resource: ['tenant'],
|
|
95
|
+
operation: ['clearCache'],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
default: false,
|
|
99
|
+
description: 'Whether to only clear the tenant cache (not all caches)',
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
//# sourceMappingURL=TenantDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/TenantDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;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,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EA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AS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,4DAA4D;aACzE;SACD;KACD;IACD,sBAAsB;IACtB;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,YAAY,CAAC;aACzB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,yDAAyD;KACtE;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/UserDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,eAAe,EA6F3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EA0RvC,CAAC"}
|