n8n-nodes-blossom 2.0.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/LICENSE.md +19 -0
- package/README.md +473 -0
- package/dist/credentials/BlossomApi.credentials.d.ts +10 -0
- package/dist/credentials/BlossomApi.credentials.js +137 -0
- package/dist/credentials/BlossomApi.credentials.js.map +1 -0
- package/dist/icons/blossom.dark.svg +7 -0
- package/dist/icons/blossom.svg +7 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/nodes/Blossom/Blossom.node.d.ts +5 -0
- package/dist/nodes/Blossom/Blossom.node.js +566 -0
- package/dist/nodes/Blossom/Blossom.node.js.map +1 -0
- package/dist/nodes/Blossom/Blossom.node.json +19 -0
- package/dist/nodes/Blossom/resources/groups/index.d.ts +2 -0
- package/dist/nodes/Blossom/resources/groups/index.js +439 -0
- package/dist/nodes/Blossom/resources/groups/index.js.map +1 -0
- package/dist/nodes/Blossom/resources/memberships/index.d.ts +2 -0
- package/dist/nodes/Blossom/resources/memberships/index.js +228 -0
- package/dist/nodes/Blossom/resources/memberships/index.js.map +1 -0
- package/dist/nodes/Blossom/resources/performances/index.d.ts +2 -0
- package/dist/nodes/Blossom/resources/performances/index.js +55 -0
- package/dist/nodes/Blossom/resources/performances/index.js.map +1 -0
- package/dist/nodes/Blossom/resources/suppliers/index.d.ts +2 -0
- package/dist/nodes/Blossom/resources/suppliers/index.js +156 -0
- package/dist/nodes/Blossom/resources/suppliers/index.js.map +1 -0
- package/dist/nodes/Blossom/resources/users/index.d.ts +2 -0
- package/dist/nodes/Blossom/resources/users/index.js +355 -0
- package/dist/nodes/Blossom/resources/users/index.js.map +1 -0
- package/dist/nodes/Blossom/resources/utilities/index.d.ts +2 -0
- package/dist/nodes/Blossom/resources/utilities/index.js +254 -0
- package/dist/nodes/Blossom/resources/utilities/index.js.map +1 -0
- package/dist/nodes/Blossom/shared/transport.d.ts +3 -0
- package/dist/nodes/Blossom/shared/transport.js +107 -0
- package/dist/nodes/Blossom/shared/transport.js.map +1 -0
- package/dist/package.json +54 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.groupsDescription = void 0;
|
|
4
|
+
const showOnlyForGroups = {
|
|
5
|
+
resource: ['groups'],
|
|
6
|
+
};
|
|
7
|
+
exports.groupsDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForGroups,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Attach Instance',
|
|
19
|
+
value: 'attachInstance',
|
|
20
|
+
description: 'Attach Group/Course to a Template',
|
|
21
|
+
action: 'Attach instance',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Attach Sub Group',
|
|
25
|
+
value: 'attachSubGroup',
|
|
26
|
+
description: 'Attach sub group to a parent group',
|
|
27
|
+
action: 'Attach sub group',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Delete Group',
|
|
31
|
+
value: 'deleteGroup',
|
|
32
|
+
description: 'Delete a group object',
|
|
33
|
+
action: 'Delete a group',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Detach Instance',
|
|
37
|
+
value: 'detachInstance',
|
|
38
|
+
description: 'Detach Group/Course from its only Template',
|
|
39
|
+
action: 'Detach instance',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Detach Sub Group',
|
|
43
|
+
value: 'detachSubGroup',
|
|
44
|
+
description: 'Detach a sub group from its only parent',
|
|
45
|
+
action: 'Detach sub group',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Import Groups CSV',
|
|
49
|
+
value: 'importGroupsCSV',
|
|
50
|
+
description: 'Import multiple workspaces using CSV/Excel',
|
|
51
|
+
action: 'Import groups from CSV',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Update Group',
|
|
55
|
+
value: 'updateGroup',
|
|
56
|
+
description: 'Create or update group object (Group/Course/Role/Ou/Template/Qualification/Workplan)',
|
|
57
|
+
action: 'Update a group',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
default: 'updateGroup',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Domain',
|
|
64
|
+
name: 'domain',
|
|
65
|
+
type: 'string',
|
|
66
|
+
default: '1',
|
|
67
|
+
required: true,
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: {
|
|
70
|
+
...showOnlyForGroups,
|
|
71
|
+
operation: ['updateGroup', 'deleteGroup', 'attachSubGroup', 'detachSubGroup', 'attachInstance', 'detachInstance'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
description: 'Domain name or ID',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: 'Group Details',
|
|
78
|
+
name: 'groupDetails',
|
|
79
|
+
type: 'fixedCollection',
|
|
80
|
+
typeOptions: {
|
|
81
|
+
multipleValues: false,
|
|
82
|
+
},
|
|
83
|
+
default: {},
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
...showOnlyForGroups,
|
|
87
|
+
operation: ['updateGroup'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
name: 'details',
|
|
93
|
+
displayName: 'Details',
|
|
94
|
+
values: [
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Audience',
|
|
97
|
+
name: 'audience',
|
|
98
|
+
type: 'string',
|
|
99
|
+
default: '',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Classification',
|
|
103
|
+
name: 'classification',
|
|
104
|
+
type: 'string',
|
|
105
|
+
default: '',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Close Date',
|
|
109
|
+
name: 'close_date',
|
|
110
|
+
type: 'dateTime',
|
|
111
|
+
default: '',
|
|
112
|
+
description: 'Close date (yyyy-mm-dd format)',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Description',
|
|
116
|
+
name: 'description',
|
|
117
|
+
type: 'string',
|
|
118
|
+
default: '',
|
|
119
|
+
description: 'Group description',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Estimated Budget',
|
|
123
|
+
name: 'estimated_budget',
|
|
124
|
+
type: 'number',
|
|
125
|
+
default: 0,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
displayName: 'External ID',
|
|
129
|
+
name: 'external_id',
|
|
130
|
+
type: 'string',
|
|
131
|
+
default: '',
|
|
132
|
+
description: 'External ID from foreign system',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
displayName: 'Gathering Area',
|
|
136
|
+
name: 'gathering_area',
|
|
137
|
+
type: 'string',
|
|
138
|
+
default: '',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Location',
|
|
142
|
+
name: 'location',
|
|
143
|
+
type: 'string',
|
|
144
|
+
default: '',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Name',
|
|
148
|
+
name: 'name',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
description: 'Group name',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Open Date',
|
|
155
|
+
name: 'open_date',
|
|
156
|
+
type: 'dateTime',
|
|
157
|
+
default: '',
|
|
158
|
+
description: 'Open date (yyyy-mm-dd format)',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Parent External ID',
|
|
162
|
+
name: 'parent_external_id',
|
|
163
|
+
type: 'string',
|
|
164
|
+
default: '',
|
|
165
|
+
description: 'Parent group external ID',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Passing Grade',
|
|
169
|
+
name: 'passing_grade',
|
|
170
|
+
type: 'number',
|
|
171
|
+
default: 0,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Template External ID',
|
|
175
|
+
name: 'template_external_id',
|
|
176
|
+
type: 'string',
|
|
177
|
+
default: '',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Type',
|
|
181
|
+
name: 'type',
|
|
182
|
+
type: 'options',
|
|
183
|
+
options: [
|
|
184
|
+
{
|
|
185
|
+
name: 'Course',
|
|
186
|
+
value: 'course',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'Group',
|
|
190
|
+
value: 'group',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'OU',
|
|
194
|
+
value: 'ou',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'Qualification',
|
|
198
|
+
value: 'qualification',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'Role',
|
|
202
|
+
value: 'role',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'Template',
|
|
206
|
+
value: 'template',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'Workplan',
|
|
210
|
+
value: 'workplan',
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
default: 'group',
|
|
214
|
+
description: 'Group type',
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
displayName: 'Group Identifier',
|
|
222
|
+
name: 'groupIdentifier',
|
|
223
|
+
type: 'fixedCollection',
|
|
224
|
+
typeOptions: {
|
|
225
|
+
multipleValues: false,
|
|
226
|
+
},
|
|
227
|
+
default: {},
|
|
228
|
+
displayOptions: {
|
|
229
|
+
show: {
|
|
230
|
+
...showOnlyForGroups,
|
|
231
|
+
operation: ['deleteGroup', 'detachSubGroup', 'detachInstance'],
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
options: [
|
|
235
|
+
{
|
|
236
|
+
name: 'identifier',
|
|
237
|
+
displayName: 'Identifier',
|
|
238
|
+
values: [
|
|
239
|
+
{
|
|
240
|
+
displayName: 'External ID',
|
|
241
|
+
name: 'group_external_id',
|
|
242
|
+
type: 'string',
|
|
243
|
+
default: '',
|
|
244
|
+
description: 'Group external ID',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
displayName: 'Group ID',
|
|
248
|
+
name: 'group_id',
|
|
249
|
+
type: 'string',
|
|
250
|
+
default: '',
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
displayName: 'Sub Group Identifier',
|
|
258
|
+
name: 'subGroupIdentifier',
|
|
259
|
+
type: 'fixedCollection',
|
|
260
|
+
typeOptions: {
|
|
261
|
+
multipleValues: false,
|
|
262
|
+
},
|
|
263
|
+
default: {},
|
|
264
|
+
displayOptions: {
|
|
265
|
+
show: {
|
|
266
|
+
...showOnlyForGroups,
|
|
267
|
+
operation: ['attachSubGroup'],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
options: [
|
|
271
|
+
{
|
|
272
|
+
name: 'identifier',
|
|
273
|
+
displayName: 'Identifier',
|
|
274
|
+
values: [
|
|
275
|
+
{
|
|
276
|
+
displayName: 'External ID',
|
|
277
|
+
name: 'group_external_id',
|
|
278
|
+
type: 'string',
|
|
279
|
+
default: '',
|
|
280
|
+
description: 'Sub group external ID',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
displayName: 'Group ID',
|
|
284
|
+
name: 'group_id',
|
|
285
|
+
type: 'string',
|
|
286
|
+
default: '',
|
|
287
|
+
description: 'Sub group ID',
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
displayName: 'Parent Group Identifier',
|
|
295
|
+
name: 'parentGroupIdentifier',
|
|
296
|
+
type: 'fixedCollection',
|
|
297
|
+
typeOptions: {
|
|
298
|
+
multipleValues: false,
|
|
299
|
+
},
|
|
300
|
+
default: {},
|
|
301
|
+
displayOptions: {
|
|
302
|
+
show: {
|
|
303
|
+
...showOnlyForGroups,
|
|
304
|
+
operation: ['attachSubGroup'],
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
options: [
|
|
308
|
+
{
|
|
309
|
+
name: 'identifier',
|
|
310
|
+
displayName: 'Identifier',
|
|
311
|
+
values: [
|
|
312
|
+
{
|
|
313
|
+
displayName: 'External ID',
|
|
314
|
+
name: 'group_external_id',
|
|
315
|
+
type: 'string',
|
|
316
|
+
default: '',
|
|
317
|
+
description: 'Parent group external ID',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
displayName: 'Group ID',
|
|
321
|
+
name: 'group_id',
|
|
322
|
+
type: 'string',
|
|
323
|
+
default: '',
|
|
324
|
+
description: 'Parent group ID',
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
displayName: 'Template Identifier',
|
|
332
|
+
name: 'templateIdentifier',
|
|
333
|
+
type: 'fixedCollection',
|
|
334
|
+
typeOptions: {
|
|
335
|
+
multipleValues: false,
|
|
336
|
+
},
|
|
337
|
+
default: {},
|
|
338
|
+
displayOptions: {
|
|
339
|
+
show: {
|
|
340
|
+
...showOnlyForGroups,
|
|
341
|
+
operation: ['attachInstance'],
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
options: [
|
|
345
|
+
{
|
|
346
|
+
name: 'identifier',
|
|
347
|
+
displayName: 'Identifier',
|
|
348
|
+
values: [
|
|
349
|
+
{
|
|
350
|
+
displayName: 'External ID',
|
|
351
|
+
name: 'group_external_id',
|
|
352
|
+
type: 'string',
|
|
353
|
+
default: '',
|
|
354
|
+
description: 'Template external ID',
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
displayName: 'Group ID',
|
|
358
|
+
name: 'group_id',
|
|
359
|
+
type: 'string',
|
|
360
|
+
default: '',
|
|
361
|
+
description: 'Template group ID',
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
displayName: 'CSV File',
|
|
369
|
+
name: 'csvFile',
|
|
370
|
+
type: 'string',
|
|
371
|
+
default: '',
|
|
372
|
+
displayOptions: {
|
|
373
|
+
show: {
|
|
374
|
+
...showOnlyForGroups,
|
|
375
|
+
operation: ['importGroupsCSV'],
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
description: 'CSV file content or file path',
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
displayName: 'Import Options',
|
|
382
|
+
name: 'importOptions',
|
|
383
|
+
type: 'fixedCollection',
|
|
384
|
+
typeOptions: {
|
|
385
|
+
multipleValues: false,
|
|
386
|
+
},
|
|
387
|
+
default: {},
|
|
388
|
+
displayOptions: {
|
|
389
|
+
show: {
|
|
390
|
+
...showOnlyForGroups,
|
|
391
|
+
operation: ['importGroupsCSV'],
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
options: [
|
|
395
|
+
{
|
|
396
|
+
name: 'options',
|
|
397
|
+
displayName: 'Options',
|
|
398
|
+
values: [
|
|
399
|
+
{
|
|
400
|
+
displayName: 'Keep Old Values',
|
|
401
|
+
name: 'keep_old_values',
|
|
402
|
+
type: 'boolean',
|
|
403
|
+
default: false,
|
|
404
|
+
description: 'Whether empty cells in import file won\'t erase current profile field values',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
displayName: 'Manager Type',
|
|
408
|
+
name: 'manager_type',
|
|
409
|
+
type: 'string',
|
|
410
|
+
default: '',
|
|
411
|
+
description: 'Manager permissions name OR \'all\'/\'none\'',
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
displayName: 'Override Existing Permissions',
|
|
415
|
+
name: 'override_existing_permissions',
|
|
416
|
+
type: 'boolean',
|
|
417
|
+
default: false,
|
|
418
|
+
description: 'Whether to override existing managers permissions',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
displayName: 'Remove Existing Managers',
|
|
422
|
+
name: 'remove_existing_managers',
|
|
423
|
+
type: 'boolean',
|
|
424
|
+
default: false,
|
|
425
|
+
description: 'Whether to remove existing managers',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
displayName: 'Set Primary Manager',
|
|
429
|
+
name: 'set_primary_manager',
|
|
430
|
+
type: 'boolean',
|
|
431
|
+
default: false,
|
|
432
|
+
description: 'Whether to set as primary manager',
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
},
|
|
438
|
+
];
|
|
439
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Blossom/resources/groups/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACpB,CAAC;AAEW,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,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,kBAAkB;g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AE,KAAK;wBACd,WAAW,EAAE,qCAAqC;qBAClD;oBACD;wBACC,WAAW,EAAE,qBAAqB;wBAClC,IAAI,EAAE,qBAAqB;wBAC3B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EAAE,mCAAmC;qBAChD;iBACD;aACD;SACD;KAED;CACD,CAAC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.membershipsDescription = void 0;
|
|
4
|
+
const showOnlyForMemberships = {
|
|
5
|
+
resource: ['memberships'],
|
|
6
|
+
};
|
|
7
|
+
exports.membershipsDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForMemberships,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Attach Manager',
|
|
19
|
+
value: 'attachManager',
|
|
20
|
+
description: 'Attach manager to a group object',
|
|
21
|
+
action: 'Attach manager',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Attach User to Group',
|
|
25
|
+
value: 'attachUserToGroup',
|
|
26
|
+
description: 'Attach user to a group object (Group/Course/Ou/Qualification/Workplan)',
|
|
27
|
+
action: 'Attach user to group',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Detach Manager',
|
|
31
|
+
value: 'detachManager',
|
|
32
|
+
description: 'Detach manager from a group object',
|
|
33
|
+
action: 'Detach manager',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Detach User From Group',
|
|
37
|
+
value: 'detachUserFromGroup',
|
|
38
|
+
description: 'Detach user from a group object',
|
|
39
|
+
action: 'Detach user from group',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Detach User From OU',
|
|
43
|
+
value: 'detachUserFromOu',
|
|
44
|
+
description: 'Detach user from its only OU',
|
|
45
|
+
action: 'Detach user from OU',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Import Groups Members CSV',
|
|
49
|
+
value: 'importGroupsMembersCSV',
|
|
50
|
+
description: 'Attach multiple users to workspaces using CSV/Excel',
|
|
51
|
+
action: 'Import group members from CSV',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
default: 'attachUserToGroup',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Domain',
|
|
58
|
+
name: 'domain',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '1',
|
|
61
|
+
required: true,
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
...showOnlyForMemberships,
|
|
65
|
+
operation: ['attachUserToGroup', 'detachUserFromGroup', 'detachUserFromOu', 'attachManager', 'detachManager'],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
description: 'Domain name or ID',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'User Identifier',
|
|
72
|
+
name: 'userIdentifier',
|
|
73
|
+
type: 'fixedCollection',
|
|
74
|
+
typeOptions: {
|
|
75
|
+
multipleValues: false,
|
|
76
|
+
},
|
|
77
|
+
default: {},
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
...showOnlyForMemberships,
|
|
81
|
+
operation: ['attachUserToGroup', 'detachUserFromGroup', 'detachUserFromOu', 'attachManager', 'detachManager'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
options: [
|
|
85
|
+
{
|
|
86
|
+
name: 'identifier',
|
|
87
|
+
displayName: 'Identifier',
|
|
88
|
+
values: [
|
|
89
|
+
{
|
|
90
|
+
displayName: 'External ID',
|
|
91
|
+
name: 'external_id',
|
|
92
|
+
type: 'string',
|
|
93
|
+
default: '',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'User ID',
|
|
97
|
+
name: 'user_id',
|
|
98
|
+
type: 'string',
|
|
99
|
+
default: '',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Username',
|
|
103
|
+
name: 'user_name',
|
|
104
|
+
type: 'string',
|
|
105
|
+
default: '',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Identity Number',
|
|
109
|
+
name: 'identity_num',
|
|
110
|
+
type: 'string',
|
|
111
|
+
default: '',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Group Identifier',
|
|
119
|
+
name: 'groupIdentifier',
|
|
120
|
+
type: 'fixedCollection',
|
|
121
|
+
typeOptions: {
|
|
122
|
+
multipleValues: false,
|
|
123
|
+
},
|
|
124
|
+
default: {},
|
|
125
|
+
displayOptions: {
|
|
126
|
+
show: {
|
|
127
|
+
...showOnlyForMemberships,
|
|
128
|
+
operation: ['attachUserToGroup', 'detachUserFromGroup', 'attachManager', 'detachManager'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
options: [
|
|
132
|
+
{
|
|
133
|
+
name: 'identifier',
|
|
134
|
+
displayName: 'Identifier',
|
|
135
|
+
values: [
|
|
136
|
+
{
|
|
137
|
+
displayName: 'External ID',
|
|
138
|
+
name: 'group_external_id',
|
|
139
|
+
type: 'string',
|
|
140
|
+
default: '',
|
|
141
|
+
description: 'Group external ID',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
displayName: 'Group ID',
|
|
145
|
+
name: 'group_id',
|
|
146
|
+
type: 'string',
|
|
147
|
+
default: '',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Manager Type',
|
|
155
|
+
name: 'managerType',
|
|
156
|
+
type: 'string',
|
|
157
|
+
default: 'all',
|
|
158
|
+
displayOptions: {
|
|
159
|
+
show: {
|
|
160
|
+
...showOnlyForMemberships,
|
|
161
|
+
operation: ['attachManager'],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
description: 'Manager permissions name OR \'all\'/\'none\'',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
displayName: 'Set Primary',
|
|
168
|
+
name: 'setPrimary',
|
|
169
|
+
type: 'options',
|
|
170
|
+
options: [
|
|
171
|
+
{ name: 'No', value: '0', description: 'Do not set as primary' },
|
|
172
|
+
{ name: 'Yes', value: '1', description: 'Set manager as primary' },
|
|
173
|
+
{ name: 'Remove Others and Set Primary', value: '2', description: 'Remove existing managers and add this manager as primary' },
|
|
174
|
+
],
|
|
175
|
+
default: '0',
|
|
176
|
+
displayOptions: {
|
|
177
|
+
show: {
|
|
178
|
+
...showOnlyForMemberships,
|
|
179
|
+
operation: ['attachManager'],
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
description: 'Set manager as primary',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'CSV File',
|
|
186
|
+
name: 'csvFile',
|
|
187
|
+
type: 'string',
|
|
188
|
+
default: '',
|
|
189
|
+
displayOptions: {
|
|
190
|
+
show: {
|
|
191
|
+
...showOnlyForMemberships,
|
|
192
|
+
operation: ['importGroupsMembersCSV'],
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
description: 'CSV file content or file path',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
displayName: 'Import Options',
|
|
199
|
+
name: 'importOptions',
|
|
200
|
+
type: 'fixedCollection',
|
|
201
|
+
typeOptions: {
|
|
202
|
+
multipleValues: false,
|
|
203
|
+
},
|
|
204
|
+
default: {},
|
|
205
|
+
displayOptions: {
|
|
206
|
+
show: {
|
|
207
|
+
...showOnlyForMemberships,
|
|
208
|
+
operation: ['importGroupsMembersCSV'],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
options: [
|
|
212
|
+
{
|
|
213
|
+
name: 'options',
|
|
214
|
+
displayName: 'Options',
|
|
215
|
+
values: [
|
|
216
|
+
{
|
|
217
|
+
displayName: 'Clean OU',
|
|
218
|
+
name: 'clean_ou',
|
|
219
|
+
type: 'boolean',
|
|
220
|
+
default: false,
|
|
221
|
+
description: 'Whether to remove empty org units',
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
];
|
|
228
|
+
//# sourceMappingURL=index.js.map
|