n8n-nodes-keephub 1.3.0 โ 1.3.2
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 +116 -75
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.d.ts.map +1 -1
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.js +16 -17
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Unlock the power of employee engagement and communication automation with this c
|
|
|
28
28
|
This is a professional **n8n community node** that enables you to harness the full power of **Keephub** within your workflow automation.
|
|
29
29
|
|
|
30
30
|
**Keephub** is an enterprise-grade employee engagement platform for managing:
|
|
31
|
+
|
|
31
32
|
- ๐ฅ User management and organizational structures
|
|
32
33
|
- ๐ฐ Content creation and distribution
|
|
33
34
|
- โ
Task management and templates
|
|
@@ -39,7 +40,6 @@ This is a professional **n8n community node** that enables you to harness the fu
|
|
|
39
40
|
|
|
40
41
|
## ๐ง Installation
|
|
41
42
|
|
|
42
|
-
|
|
43
43
|
### ๐ฆ Community Nodes Method (Recommended)
|
|
44
44
|
|
|
45
45
|
1. Open your n8n instance
|
|
@@ -52,12 +52,14 @@ This is a professional **n8n community node** that enables you to harness the fu
|
|
|
52
52
|
### ๐ ๏ธ Manual Installation
|
|
53
53
|
|
|
54
54
|
**For Local n8n:**
|
|
55
|
+
|
|
55
56
|
```bash
|
|
56
57
|
cd ~/.n8n/nodes
|
|
57
58
|
npm install n8n-nodes-keephub
|
|
58
59
|
```
|
|
59
60
|
|
|
60
61
|
**For Docker:**
|
|
62
|
+
|
|
61
63
|
```bash
|
|
62
64
|
docker exec -it <n8n-container> sh
|
|
63
65
|
cd /home/node/.n8n/nodes
|
|
@@ -66,6 +68,7 @@ npm install n8n-nodes-keephub
|
|
|
66
68
|
```
|
|
67
69
|
|
|
68
70
|
**For Node.js n8n:**
|
|
71
|
+
|
|
69
72
|
```bash
|
|
70
73
|
npm install -g n8n-nodes-keephub
|
|
71
74
|
```
|
|
@@ -119,14 +122,15 @@ Output:
|
|
|
119
122
|
|
|
120
123
|
### ๐ฅ **User Operations**
|
|
121
124
|
|
|
122
|
-
| Operation
|
|
123
|
-
|
|
124
|
-
| ๐ **Get by ID**
|
|
125
|
-
| ๐ **Find by Login Name** | Search users by login name
|
|
126
|
-
| ๐จโ๐ผ **Find by Group**
|
|
127
|
-
| ๐ข **Find by Orgunit**
|
|
125
|
+
| Operation | Description |
|
|
126
|
+
| ------------------------- | ---------------------------------------- |
|
|
127
|
+
| ๐ **Get by ID** | Retrieve a user by their unique ID |
|
|
128
|
+
| ๐ **Find by Login Name** | Search users by login name |
|
|
129
|
+
| ๐จโ๐ผ **Find by Group** | Fetch all users in a specific group |
|
|
130
|
+
| ๐ข **Find by Orgunit** | Retrieve users from an organization unit |
|
|
128
131
|
|
|
129
132
|
**Example:**
|
|
133
|
+
|
|
130
134
|
```javascript
|
|
131
135
|
// Get all users in a group
|
|
132
136
|
{
|
|
@@ -140,47 +144,50 @@ Output:
|
|
|
140
144
|
|
|
141
145
|
### ๐ฐ **Content Operations**
|
|
142
146
|
|
|
143
|
-
| Operation
|
|
144
|
-
|
|
145
|
-
| โจ **Create**
|
|
146
|
-
| ๐๏ธ **Delete**
|
|
147
|
-
| ๐ **Find by Content Pool** | Filter content by pool with optional sorting
|
|
148
|
-
| ๐ท๏ธ **Find by Group**
|
|
149
|
-
| ๐ข **Find by Orgunit**
|
|
150
|
-
| ๐ **Get by ID**
|
|
151
|
-
| โ๏ธ **Update by ID**
|
|
147
|
+
| Operation | Description |
|
|
148
|
+
| --------------------------- | ------------------------------------------------------ |
|
|
149
|
+
| โจ **Create** | Create new content (news, forms, manuals, etc.) |
|
|
150
|
+
| ๐๏ธ **Delete** | Remove content |
|
|
151
|
+
| ๐ **Find by Content Pool** | Filter content by pool with optional sorting |
|
|
152
|
+
| ๐ท๏ธ **Find by Group** | Get content assigned to groups with optional sorting |
|
|
153
|
+
| ๐ข **Find by Orgunit** | Retrieve content by organization with optional sorting |
|
|
154
|
+
| ๐ **Get by ID** | Retrieve specific content |
|
|
155
|
+
| โ๏ธ **Update by ID** | Modify existing content |
|
|
152
156
|
|
|
153
157
|
**Example - Create Content:**
|
|
158
|
+
|
|
154
159
|
```json
|
|
155
160
|
{
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
"resource": "content",
|
|
162
|
+
"operation": "create",
|
|
163
|
+
"defineContentInput": "json",
|
|
164
|
+
"contentBody": {
|
|
165
|
+
"originLanguage": "en",
|
|
166
|
+
"contentType": "news",
|
|
167
|
+
"contentPool": "POOL_ID",
|
|
168
|
+
"title": { "en": "๐ Company Announcement" },
|
|
169
|
+
"message": { "en": "<p>Great news everyone!</p>" },
|
|
170
|
+
"orgchartSelection": { "include": ["root0001"], "exclude": [] }
|
|
171
|
+
}
|
|
167
172
|
}
|
|
168
173
|
```
|
|
169
174
|
|
|
170
175
|
**Example - Find Content by Orgunit with Filtering:**
|
|
176
|
+
|
|
171
177
|
```json
|
|
172
178
|
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
"resource": "content",
|
|
180
|
+
"operation": "findByOrgunit",
|
|
181
|
+
"orgunitId": "root0077",
|
|
182
|
+
"limit": 50,
|
|
183
|
+
"options": {
|
|
184
|
+
"skip": 0,
|
|
185
|
+
"sortBy": "createdAt",
|
|
186
|
+
"sortOrder": 1
|
|
187
|
+
}
|
|
182
188
|
}
|
|
183
189
|
```
|
|
190
|
+
|
|
184
191
|
Content Filtering Parameters:
|
|
185
192
|
|
|
186
193
|
Limit (optional, default: 50): Maximum number of results to return
|
|
@@ -197,16 +204,17 @@ Sort Order: 1 for ascending, -1 for descending
|
|
|
197
204
|
|
|
198
205
|
### โ
**Task Operations**
|
|
199
206
|
|
|
200
|
-
| Operation
|
|
201
|
-
|
|
202
|
-
| โ **Create**
|
|
203
|
-
| ๐๏ธ **Delete**
|
|
204
|
-
| ๐ **Get by ID**
|
|
205
|
-
| ๐ **Get By Orgunit**
|
|
206
|
-
| ๐ **Get Progress**
|
|
207
|
-
| ๐ **Get Status Counts** | View task completion statistics
|
|
207
|
+
| Operation | Description |
|
|
208
|
+
| ------------------------ | ------------------------------------------------------------ |
|
|
209
|
+
| โ **Create** | Create a new task template |
|
|
210
|
+
| ๐๏ธ **Delete** | Remove a task template |
|
|
211
|
+
| ๐ **Get by ID** | Retrieve a task template |
|
|
212
|
+
| ๐ **Get By Orgunit** | Fetch tasks by organization unit with filtering & pagination |
|
|
213
|
+
| ๐ **Get Progress** | Check task template progress |
|
|
214
|
+
| ๐ **Get Status Counts** | View task completion statistics |
|
|
208
215
|
|
|
209
216
|
**Example:**
|
|
217
|
+
|
|
210
218
|
```javascript
|
|
211
219
|
{
|
|
212
220
|
"resource": "task",
|
|
@@ -225,22 +233,25 @@ Sort Order: 1 for ascending, -1 for descending
|
|
|
225
233
|
}
|
|
226
234
|
}
|
|
227
235
|
```
|
|
236
|
+
|
|
228
237
|
**Example - Get Tasks by Orgunit with Filtering:**
|
|
238
|
+
|
|
229
239
|
```json
|
|
230
240
|
{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
"resource": "task",
|
|
242
|
+
"operation": "getTaskByOrgunit",
|
|
243
|
+
"orgunitId": "root0077",
|
|
244
|
+
"limit": 50,
|
|
245
|
+
"options": {
|
|
246
|
+
"skip": 0,
|
|
247
|
+
"sortBy": "template.dueDate",
|
|
248
|
+
"sortOrder": 1,
|
|
249
|
+
"startDateGte": "2025-11-01T00:00:00Z",
|
|
250
|
+
"startDateLte": "2025-11-30T23:59:59Z"
|
|
251
|
+
}
|
|
242
252
|
}
|
|
243
253
|
```
|
|
254
|
+
|
|
244
255
|
Parameters:
|
|
245
256
|
|
|
246
257
|
Orgunit ID (required): The organization unit ID to filter tasks
|
|
@@ -263,15 +274,16 @@ Start Date Before: Filter tasks created/updated before this date (dateTime picke
|
|
|
263
274
|
|
|
264
275
|
### ๐ **Form Submission Operations**
|
|
265
276
|
|
|
266
|
-
| Operation
|
|
267
|
-
|
|
268
|
-
| ๐ฅ **Get**
|
|
269
|
-
| ๐ค **Get Submitter Details**
|
|
270
|
-
| ๐ข **Get Submission Orgunits**
|
|
271
|
-
| ๐ **Update Submission Orgunits**
|
|
272
|
-
| โฑ๏ธ **Calculate Response Duration** | Time from creation to submission
|
|
277
|
+
| Operation | Description |
|
|
278
|
+
| ---------------------------------- | --------------------------------------- |
|
|
279
|
+
| ๐ฅ **Get** | Fetch complete form submission data |
|
|
280
|
+
| ๐ค **Get Submitter Details** | Retrieve full user profile of submitter |
|
|
281
|
+
| ๐ข **Get Submission Orgunits** | View orgunit hierarchy |
|
|
282
|
+
| ๐ **Update Submission Orgunits** | Change visibility by orgunit |
|
|
283
|
+
| โฑ๏ธ **Calculate Response Duration** | Time from creation to submission |
|
|
273
284
|
|
|
274
285
|
**Example - Calculate Response Time:**
|
|
286
|
+
|
|
275
287
|
```javascript
|
|
276
288
|
{
|
|
277
289
|
"resource": "formSubmission",
|
|
@@ -294,15 +306,16 @@ Start Date Before: Filter tasks created/updated before this date (dateTime picke
|
|
|
294
306
|
|
|
295
307
|
### Orgchart Operations
|
|
296
308
|
|
|
297
|
-
| Operation
|
|
298
|
-
|
|
299
|
-
| **Get Ancestors**
|
|
309
|
+
| Operation | Description |
|
|
310
|
+
| ----------------------- | -------------------------------------------------- |
|
|
311
|
+
| **Get Ancestors** | Get all ancestors in the org hierarchy |
|
|
300
312
|
| **Get by External Ref** | Retrieve an orgchart node by its externalRef value |
|
|
301
|
-
| **Get by ID**
|
|
302
|
-
| **Get Children**
|
|
303
|
-
| **Get Parent**
|
|
313
|
+
| **Get by ID** | Retrieve an orgchart node by ID |
|
|
314
|
+
| **Get Children** | Retrieve all children/descendants |
|
|
315
|
+
| **Get Parent** | Fetch the parent node of an orgchart node |
|
|
304
316
|
|
|
305
317
|
**Example:**
|
|
318
|
+
|
|
306
319
|
```javascript
|
|
307
320
|
{
|
|
308
321
|
resource: "orgchart",
|
|
@@ -313,10 +326,10 @@ nodeId: "node123"
|
|
|
313
326
|
|
|
314
327
|
---
|
|
315
328
|
|
|
316
|
-
|
|
317
329
|
## ๐ Credentials Setup
|
|
318
330
|
|
|
319
331
|
### Bearer Token Authentication
|
|
332
|
+
|
|
320
333
|
```
|
|
321
334
|
โ Most secure for API integrations
|
|
322
335
|
โ Use existing API tokens from Keephub
|
|
@@ -324,6 +337,7 @@ nodeId: "node123"
|
|
|
324
337
|
```
|
|
325
338
|
|
|
326
339
|
### Username/Password Authentication
|
|
340
|
+
|
|
327
341
|
```
|
|
328
342
|
โ Automatic token generation
|
|
329
343
|
โ Simple to set up
|
|
@@ -377,11 +391,13 @@ Send thank you message
|
|
|
377
391
|
## โ๏ธ Node Configuration
|
|
378
392
|
|
|
379
393
|
### Input Data
|
|
394
|
+
|
|
380
395
|
- All parameters support dynamic expressions with `{{ }}`
|
|
381
396
|
- Use previous node outputs: `{{ $node["Previous Node"].json.field }}`
|
|
382
397
|
- Access environment variables: `{{ $env.MY_VAR }}`
|
|
383
398
|
|
|
384
399
|
### Output Format
|
|
400
|
+
|
|
385
401
|
```javascript
|
|
386
402
|
{
|
|
387
403
|
"pairedItem": { "item": 0 },
|
|
@@ -392,33 +408,37 @@ Send thank you message
|
|
|
392
408
|
```
|
|
393
409
|
|
|
394
410
|
### Error Handling
|
|
411
|
+
|
|
395
412
|
Enable "Continue on Error" to handle failures gracefully in your workflow.
|
|
396
413
|
|
|
397
414
|
---
|
|
398
415
|
|
|
399
416
|
## ๐ฆ Requirements
|
|
400
417
|
|
|
401
|
-
| Requirement | Version
|
|
402
|
-
|
|
403
|
-
| **n8n**
|
|
404
|
-
| **Node.js** | 14.20.0+
|
|
405
|
-
| **npm**
|
|
418
|
+
| Requirement | Version |
|
|
419
|
+
| ----------- | --------- |
|
|
420
|
+
| **n8n** | v0.199.0+ |
|
|
421
|
+
| **Node.js** | 14.20.0+ |
|
|
422
|
+
| **npm** | 6.0.0+ |
|
|
406
423
|
|
|
407
424
|
---
|
|
408
425
|
|
|
409
426
|
## ๐ Troubleshooting
|
|
410
427
|
|
|
411
428
|
### โ "Authentication failed"
|
|
429
|
+
|
|
412
430
|
- โ
Verify your Keephub instance URL
|
|
413
431
|
- โ
Check API credentials are correct
|
|
414
432
|
- โ
Ensure credentials have required permissions
|
|
415
433
|
|
|
416
434
|
### โ "Unknown operation"
|
|
435
|
+
|
|
417
436
|
- โ
Verify resource and operation combination exist
|
|
418
437
|
- โ
Check node version is latest
|
|
419
438
|
- โ
Try refreshing the node palette
|
|
420
439
|
|
|
421
440
|
### โ "Connection timeout"
|
|
441
|
+
|
|
422
442
|
- โ
Check network connectivity
|
|
423
443
|
- โ
Verify firewall allows outbound HTTPS
|
|
424
444
|
- โ
Check Keephub instance is accessible
|
|
@@ -465,16 +485,19 @@ n8n-nodes-keephub/
|
|
|
465
485
|
## ๐ Development
|
|
466
486
|
|
|
467
487
|
### Build
|
|
488
|
+
|
|
468
489
|
```bash
|
|
469
490
|
npm run build
|
|
470
491
|
```
|
|
471
492
|
|
|
472
493
|
### Test
|
|
494
|
+
|
|
473
495
|
```bash
|
|
474
496
|
npm run test
|
|
475
497
|
```
|
|
476
498
|
|
|
477
499
|
### Lint
|
|
500
|
+
|
|
478
501
|
```bash
|
|
479
502
|
npm run lint
|
|
480
503
|
```
|
|
@@ -484,6 +507,7 @@ npm run lint
|
|
|
484
507
|
## ๐ Version History
|
|
485
508
|
|
|
486
509
|
### v1.0.0 (2025-01-09) ๐
|
|
510
|
+
|
|
487
511
|
- โจ Initial release
|
|
488
512
|
- ๐ฅ User management operations
|
|
489
513
|
- ๐ฐ Content creation & management
|
|
@@ -492,23 +516,37 @@ npm run lint
|
|
|
492
516
|
- ๐ Secure API authentication
|
|
493
517
|
|
|
494
518
|
### v1.1.0 (2025-11-10) ๐ฆ
|
|
519
|
+
|
|
495
520
|
- ๐ Added Orgchart operations (Get, Parent, Ancestors, Children)
|
|
496
521
|
- ๐งน Fixed console.log in updateById operation
|
|
497
522
|
- ๐ง Code cleanup and optimizations
|
|
498
523
|
|
|
499
524
|
### v1.2.0 (2025-11-12) ๐
|
|
525
|
+
|
|
500
526
|
- ๐ Added Get By Orgunit task operation
|
|
501
527
|
- ๐
Date range filtering support for tasks (Start Date Before/After)
|
|
502
528
|
- ๐ฐ Enhanced Content filtering
|
|
503
529
|
|
|
504
530
|
### v1.2.1 (2025-11-20)
|
|
531
|
+
|
|
505
532
|
- ๐ README updates and documentation improvements
|
|
506
533
|
|
|
507
534
|
### v1.2.2 (2025-11-20)
|
|
535
|
+
|
|
508
536
|
- ๐งน Build process improvements (added dist folder cleanup script)
|
|
509
537
|
|
|
510
538
|
### v1.3.0 (2025-12-04)
|
|
539
|
+
|
|
511
540
|
- ๐ Added Get by External Ref operation to Orgchart resource for querying nodes by external reference
|
|
541
|
+
|
|
542
|
+
### v1.3.1 (2025-12-08)
|
|
543
|
+
|
|
544
|
+
- ๐ง Added externalRef of orgunit to the output of the Get submission orgunits node
|
|
545
|
+
|
|
546
|
+
### v1.3.1 (2025-12-08)
|
|
547
|
+
|
|
548
|
+
- ๐งน Fixed typo that was causing README rendering issues
|
|
549
|
+
|
|
512
550
|
---
|
|
513
551
|
|
|
514
552
|
## ๐ค Contributing
|
|
@@ -522,6 +560,7 @@ Contributions are welcome! ๐
|
|
|
522
560
|
5. **Open** a Pull Request
|
|
523
561
|
|
|
524
562
|
### Development Setup
|
|
563
|
+
|
|
525
564
|
```bash
|
|
526
565
|
git clone https://github.com/RetailInTouch/n8n-nodes-keephub.git
|
|
527
566
|
cd n8n-nodes-keephub
|
|
@@ -539,15 +578,17 @@ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE)
|
|
|
539
578
|
|
|
540
579
|
## ๐ Support
|
|
541
580
|
|
|
542
|
-
Found a bug? Have a feature request?
|
|
581
|
+
Found a bug? Have a feature request?
|
|
543
582
|
|
|
544
583
|
- ๐ [Open an Issue](https://github.com/RetailInTouch/n8n-nodes-keephub/issues)
|
|
545
584
|
- ๐ฌ [Start a Discussion](https://github.com/RetailInTouch/n8n-nodes-keephub/discussions)
|
|
585
|
+
|
|
546
586
|
---
|
|
547
587
|
|
|
548
588
|
## โญ Show Your Support
|
|
549
589
|
|
|
550
590
|
If you find this node useful, please consider:
|
|
591
|
+
|
|
551
592
|
- โญ Starring this repository
|
|
552
593
|
- ๐ฆ Sharing it on social media
|
|
553
594
|
- ๐ข Recommending it to the community
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSubmissionOrgunits.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,iBAAiB,
|
|
1
|
+
{"version":3,"file":"getSubmissionOrgunits.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIvF,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAiE/B"}
|
|
@@ -15,31 +15,30 @@ async function execute(item, index) {
|
|
|
15
15
|
helpers_1.validateMongoId.call(this, formSubmissionId, 'Form Submission ID', index);
|
|
16
16
|
const formSubmission = (await helpers_1.apiRequest.call(this, 'GET', `/formvalues/${formSubmissionId}`));
|
|
17
17
|
if (!formSubmission || !formSubmission.createdBy) {
|
|
18
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Form submission or submitter not found', {
|
|
18
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Form submission or submitter not found', {
|
|
19
|
+
itemIndex: index,
|
|
20
|
+
});
|
|
19
21
|
}
|
|
20
22
|
const submitterId = typeof formSubmission.createdBy === 'string'
|
|
21
23
|
? formSubmission.createdBy
|
|
22
24
|
: formSubmission.createdBy._id;
|
|
23
25
|
const submitterData = (await helpers_1.apiRequest.call(this, 'GET', `/users/${submitterId}`));
|
|
26
|
+
// Fetch ALL orgunits with externalRef param, then filter
|
|
27
|
+
const orgunitsResponse = (await helpers_1.apiRequest.call(this, 'GET', `/orgchart/?externalRef=true&limit=1000`));
|
|
28
|
+
const allOrgunits = (orgunitsResponse.data || []);
|
|
29
|
+
const orgunitMap = new Map();
|
|
30
|
+
allOrgunits.forEach((org) => orgunitMap.set(org.id, org));
|
|
24
31
|
// Fetch each orgunit details
|
|
25
32
|
const orgunitDetails = [];
|
|
26
33
|
for (const orgunitId of submitterData.orgunits || []) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
catch {
|
|
36
|
-
// Skip if orgunit fetch fails
|
|
37
|
-
orgunitDetails.push({
|
|
38
|
-
id: orgunitId,
|
|
39
|
-
name: 'Error fetching',
|
|
40
|
-
path: '',
|
|
41
|
-
});
|
|
42
|
-
}
|
|
34
|
+
const orgunitData = orgunitMap.get(orgunitId) ||
|
|
35
|
+
(await helpers_1.apiRequest.call(this, 'GET', `/orgchart/${orgunitId}`));
|
|
36
|
+
orgunitDetails.push({
|
|
37
|
+
id: orgunitId,
|
|
38
|
+
name: orgunitData.name || 'Unknown',
|
|
39
|
+
path: (orgunitData.namepath || '').slice(1),
|
|
40
|
+
externalRef: orgunitData.externalRef || '',
|
|
41
|
+
});
|
|
43
42
|
}
|
|
44
43
|
return [
|
|
45
44
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSubmissionOrgunits.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.ts"],"names":[],"mappings":";;;AAWA,
|
|
1
|
+
{"version":3,"file":"getSubmissionOrgunits.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.ts"],"names":[],"mappings":";;;AAWA,0BAqEC;AA/ED,+CAAkD;AAClD,iDAAkE;AAErD,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,qBAAqB;IAC7B,WAAW,EAAE,6DAA6D;CAC1E,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,CAAW,CAAC;IAEpF,yBAAe,CAAC,IAAI,CAAC,IAAI,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;IAE1E,MAAM,cAAc,GAAG,CAAC,MAAM,oBAAU,CAAC,IAAI,CAC5C,IAAI,EACJ,KAAK,EACL,eAAe,gBAAgB,EAAE,CACjC,CAAgB,CAAC;IAElB,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,wCAAwC,EAAE;YACtF,SAAS,EAAE,KAAK;SAChB,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,WAAW,GAChB,OAAO,cAAc,CAAC,SAAS,KAAK,QAAQ;QAC3C,CAAC,CAAE,cAAc,CAAC,SAAoB;QACtC,CAAC,CAAE,cAAc,CAAC,SAAyB,CAAC,GAAG,CAAC;IAElD,MAAM,aAAa,GAAG,CAAC,MAAM,oBAAU,CAAC,IAAI,CAC3C,IAAI,EACJ,KAAK,EACL,UAAU,WAAW,EAAE,CACvB,CAAgB,CAAC;IAElB,yDAAyD;IACzD,MAAM,gBAAgB,GAAG,CAAC,MAAM,oBAAU,CAAC,IAAI,CAC9C,IAAI,EACJ,KAAK,EACL,wCAAwC,CACxC,CAAgB,CAAC;IAElB,MAAM,WAAW,GAAG,CAAC,gBAAgB,CAAC,IAAI,IAAI,EAAE,CAAkB,CAAC;IACnE,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;IAC7B,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;IAE1D,6BAA6B;IAC7B,MAAM,cAAc,GAAkB,EAAE,CAAC;IAEzC,KAAK,MAAM,SAAS,IAAK,aAAa,CAAC,QAAqB,IAAI,EAAE,EAAE,CAAC;QACpE,MAAM,WAAW,GAChB,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC;YACxB,CAAC,MAAM,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,SAAS,EAAE,CAAC,CAAiB,CAAC;QAEjF,cAAc,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,WAAW,CAAC,IAAI,IAAI,SAAS;YACnC,IAAI,EAAE,CAAE,WAAW,CAAC,QAAmB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACvD,WAAW,EAAG,WAAW,CAAC,WAAsB,IAAI,EAAE;SACtD,CAAC,CAAC;IACJ,CAAC;IAED,OAAO;QACN;YACC,IAAI,EAAE;gBACL,GAAG,EAAE,aAAa,CAAC,GAAG;gBACtB,IAAI,EAAE,aAAa,CAAC,IAAI;gBACxB,QAAQ,EAAE,cAAc;aACxB;YACD,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3B;KACD,CAAC;AACH,CAAC"}
|