data-restructor 3.3.4 → 3.4.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.
Files changed (49) hide show
  1. package/.auto-changelog +9 -0
  2. package/.auto-changelog-template.hbs +36 -0
  3. package/.github/workflows/codeql-analysis.yml +4 -4
  4. package/.github/workflows/continuous-integration.yaml +84 -0
  5. package/CHANGELOG.md +199 -94
  6. package/CONTRIBUTING.md +51 -43
  7. package/Commands.md +16 -15
  8. package/README.md +193 -137
  9. package/SECURITY.md +2 -2
  10. package/coverage/coverage-summary.json +3 -3
  11. package/coverage/datarestructor.js.html +133 -133
  12. package/coverage/describedfield.js.html +45 -45
  13. package/coverage/index.html +1 -1
  14. package/coverage/templateResolver.js.html +26 -26
  15. package/devdist/datarestructor-ie.js +1487 -1678
  16. package/devdist/datarestructor.js +1438 -1614
  17. package/devdist/describedfield-ie.js +260 -282
  18. package/devdist/describedfield.js +257 -279
  19. package/devdist/templateResolver-ie.js +221 -257
  20. package/devdist/templateResolver.js +192 -228
  21. package/dist/datarestructor-ie.js +1 -1
  22. package/dist/datarestructor-ie.js.map +1 -1
  23. package/dist/datarestructor.js +1 -1
  24. package/dist/datarestructor.js.map +1 -1
  25. package/dist/describedfield-ie.js +1 -1
  26. package/dist/describedfield-ie.js.map +1 -1
  27. package/dist/describedfield.js +1 -1
  28. package/dist/describedfield.js.map +1 -1
  29. package/dist/templateResolver-ie.js +1 -1
  30. package/dist/templateResolver-ie.js.map +1 -1
  31. package/dist/templateResolver.js +1 -1
  32. package/dist/templateResolver.js.map +1 -1
  33. package/docs/datarestructor.js.html +1 -1
  34. package/docs/describedfield.js.html +1 -1
  35. package/docs/index.html +54 -44
  36. package/docs/module-datarestructor.DescribedEntryCreator.html +94 -94
  37. package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
  38. package/docs/module-datarestructor.Restructor.html +1 -1
  39. package/docs/module-datarestructor.Transform.html +605 -605
  40. package/docs/module-datarestructor.html +959 -995
  41. package/docs/module-described_field.DescribedDataFieldBuilder.html +1 -1
  42. package/docs/module-described_field.DescribedDataFieldGroup.html +1 -1
  43. package/docs/module-described_field.html +1 -37
  44. package/docs/module-template_resolver.Resolver.html +167 -167
  45. package/docs/module-template_resolver.html +1 -37
  46. package/docs/templateResolver.js.html +1 -1
  47. package/package.json +20 -14
  48. package/renovate.json +14 -0
  49. package/.github/workflows/action.yaml +0 -44
@@ -28,10 +28,6 @@
28
28
 
29
29
  <header>
30
30
 
31
-
32
-
33
-
34
-
35
31
  </header>
36
32
 
37
33
  <article>
@@ -53,20 +49,6 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
53
49
 
54
50
 
55
51
 
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
52
 
71
53
 
72
54
  <dl class="details">
@@ -109,24 +91,6 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
109
91
 
110
92
  </dl>
111
93
 
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
94
 
131
95
 
132
96
 
@@ -173,33 +137,32 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
173
137
 
174
138
 
175
139
 
140
+ <h4 class="name" id=".DescribedEntry">DescribedEntry</h4>
176
141
 
177
-
178
-
179
-
180
- <h4 class="name" id=".addGroupEntriesFunction"><span class="type-signature"></span>addGroupEntriesFunction<span class="signature">(groupName, describedEntry)</span><span class="type-signature"></span></h4>
181
-
182
142
 
183
-
184
143
 
185
144
 
186
145
 
187
- <div class="description">
188
- <p>Adds some group items/entries to the <a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>.</p>
189
- </div>
190
146
 
147
+ <h5>Type:</h5>
148
+ <ul>
149
+ <li>
150
+
151
+ <span class="param-type">Object</span>
191
152
 
192
153
 
154
+ </li>
155
+ </ul>
193
156
 
194
157
 
195
158
 
196
159
 
197
160
 
161
+ <h5 class="subsection-title">Properties:</h5>
198
162
 
199
- <h5>Parameters:</h5>
200
163
 
201
164
 
202
- <table class="params">
165
+ <table class="props">
203
166
  <thead>
204
167
  <tr>
205
168
 
@@ -209,8 +172,12 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
209
172
  <th>Type</th>
210
173
 
211
174
 
175
+ <th>Attributes</th>
176
+
212
177
 
213
178
 
179
+ <th>Default</th>
180
+
214
181
 
215
182
  <th class="last">Description</th>
216
183
  </tr>
@@ -221,336 +188,318 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
221
188
 
222
189
  <tr>
223
190
 
224
- <td class="name"><code>groupName</code></td>
191
+ <td class="name"><code>category</code></td>
225
192
 
226
193
 
227
194
  <td class="type">
228
195
 
229
196
 
230
- <span class="param-type">String</span>
197
+ <span class="param-type">string</span>
231
198
 
232
199
 
233
200
 
234
201
  </td>
235
202
 
236
203
 
204
+ <td class="attributes">
205
+
237
206
 
207
+
208
+ </td>
238
209
 
239
210
 
240
- <td class="description last"><p>name of the group that should be added</p></td>
211
+
212
+ <td class="default">
213
+
214
+ </td>
215
+
216
+
217
+ <td class="description last"><p>category of the result from the PropertyStructureDescription using a short name or e.g. a symbol character</p></td>
241
218
  </tr>
242
219
 
243
220
 
244
221
 
245
222
  <tr>
246
223
 
247
- <td class="name"><code>describedEntry</code></td>
224
+ <td class="name"><code>type</code></td>
248
225
 
249
226
 
250
227
  <td class="type">
251
228
 
252
229
 
253
- <span class="param-type">Array.&lt;<a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>></span>
230
+ <span class="param-type">string</span>
254
231
 
255
232
 
256
233
 
257
234
  </td>
258
235
 
259
236
 
237
+ <td class="attributes">
238
+
260
239
 
240
+
241
+ </td>
261
242
 
262
243
 
263
- <td class="description last"><p>entries that should be added to the group</p></td>
244
+
245
+ <td class="default">
246
+
247
+ </td>
248
+
249
+
250
+ <td class="description last"><p>type of the result from PropertyStructureDescription</p></td>
264
251
  </tr>
265
252
 
266
253
 
267
- </tbody>
268
- </table>
269
-
270
254
 
255
+ <tr>
256
+
257
+ <td class="name"><code>abbreviation</code></td>
258
+
271
259
 
260
+ <td class="type">
261
+
262
+
263
+ <span class="param-type">string</span>
272
264
 
273
265
 
266
+
267
+ </td>
274
268
 
275
- <dl class="details">
269
+
270
+ <td class="attributes">
271
+
272
+ &lt;optional><br>
273
+
276
274
 
277
-
275
+
276
+ </td>
277
+
278
278
 
279
-
279
+
280
+ <td class="default">
281
+
282
+ ""
283
+
284
+ </td>
285
+
280
286
 
281
-
287
+ <td class="description last"><p>one optional character, a symbol character or a short abbreviation of the category</p></td>
288
+ </tr>
282
289
 
283
290
 
284
291
 
285
-
292
+ <tr>
293
+
294
+ <td class="name"><code>image</code></td>
295
+
286
296
 
287
-
297
+ <td class="type">
298
+
299
+
300
+ <span class="param-type">string</span>
288
301
 
289
-
290
302
 
291
-
303
+
304
+ </td>
292
305
 
293
-
306
+
307
+ <td class="attributes">
308
+
309
+ &lt;optional><br>
310
+
294
311
 
295
-
312
+
313
+ </td>
314
+
296
315
 
297
-
316
+
317
+ <td class="default">
318
+
319
+ ""
320
+
321
+ </td>
322
+
298
323
 
299
-
324
+ <td class="description last"><p>one optional path to an image resource</p></td>
325
+ </tr>
300
326
 
301
-
302
- <dt class="tag-source">Source:</dt>
303
- <dd class="tag-source"><ul class="dummy"><li>
304
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line459">line 459</a>
305
- </li></ul></dd>
306
327
 
307
328
 
308
-
329
+ <tr>
330
+
331
+ <td class="name"><code>index</code></td>
332
+
309
333
 
310
-
334
+ <td class="type">
335
+
336
+
337
+ <span class="param-type">string</span>
311
338
 
312
-
313
- </dl>
314
339
 
340
+
341
+ </td>
315
342
 
343
+
344
+ <td class="attributes">
345
+
316
346
 
347
+
348
+ </td>
349
+
317
350
 
351
+
352
+ <td class="default">
353
+
354
+ </td>
355
+
318
356
 
357
+ <td class="description last"><p>array of numbers containing the split index. Example: &quot;responses[2].hits.hits[4]._source.name&quot; leads to an array with the two elements: [2,4]</p></td>
358
+ </tr>
319
359
 
360
+
320
361
 
362
+ <tr>
363
+
364
+ <td class="name"><code>displayName</code></td>
365
+
321
366
 
367
+ <td class="type">
368
+
369
+
370
+ <span class="param-type">string</span>
322
371
 
323
372
 
373
+
374
+ </td>
324
375
 
376
+
377
+ <td class="attributes">
378
+
325
379
 
380
+
381
+ </td>
382
+
326
383
 
384
+
385
+ <td class="default">
386
+
387
+ </td>
388
+
327
389
 
390
+ <td class="description last"><p>display name extracted from the point separated hierarchical property name, e.g. &quot;Name&quot;</p></td>
391
+ </tr>
328
392
 
393
+
329
394
 
395
+ <tr>
396
+
397
+ <td class="name"><code>fieldName</code></td>
398
+
330
399
 
400
+ <td class="type">
401
+
402
+
403
+ <span class="param-type">string</span>
331
404
 
332
405
 
406
+
407
+ </td>
333
408
 
334
409
 
410
+ <td class="attributes">
335
411
 
336
412
 
337
-
413
+
414
+ </td>
415
+
338
416
 
339
-
340
- <h4 class="name" id=".addGroupEntryFunction"><span class="type-signature"></span>addGroupEntryFunction<span class="signature">(groupName, describedEntry)</span><span class="type-signature"></span></h4>
341
-
417
+
418
+ <td class="default">
419
+
420
+ </td>
421
+
422
+
423
+ <td class="description last"><p>field name extracted from the point separated hierarchical property name, e.g. &quot;name&quot;</p></td>
424
+ </tr>
342
425
 
343
426
 
344
427
 
428
+ <tr>
429
+
430
+ <td class="name"><code>value</code></td>
431
+
345
432
 
433
+ <td class="type">
434
+
435
+
436
+ <span class="param-type">string</span>
346
437
 
347
- <div class="description">
348
- <p>Adds a group item/entry to the <a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>.</p>
349
- </div>
350
438
 
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
- <h5>Parameters:</h5>
360
-
361
-
362
- <table class="params">
363
- <thead>
364
- <tr>
365
-
366
- <th>Name</th>
367
-
368
-
369
- <th>Type</th>
370
-
371
-
372
-
373
-
374
-
375
- <th class="last">Description</th>
376
- </tr>
377
- </thead>
378
-
379
- <tbody>
380
-
381
-
382
- <tr>
383
-
384
- <td class="name"><code>groupName</code></td>
385
439
 
440
+ </td>
386
441
 
387
- <td class="type">
388
442
 
443
+ <td class="attributes">
389
444
 
390
- <span class="param-type">String</span>
391
-
392
445
 
446
+
447
+ </td>
393
448
 
394
- </td>
395
449
 
396
450
 
397
-
451
+ <td class="default">
452
+
453
+ </td>
398
454
 
399
455
 
400
- <td class="description last"><p>name of the group that should be added</p></td>
456
+ <td class="description last"><p>content of the field</p></td>
401
457
  </tr>
402
458
 
403
459
 
404
460
 
405
461
  <tr>
406
462
 
407
- <td class="name"><code>describedEntry</code></td>
463
+ <td class="name"><code>groupNames</code></td>
408
464
 
409
465
 
410
466
  <td class="type">
411
467
 
412
468
 
413
- <span class="param-type"><a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a></span>
469
+ <span class="param-type">Array.&lt;string></span>
414
470
 
415
471
 
416
472
 
417
473
  </td>
418
474
 
419
475
 
476
+ <td class="attributes">
477
+
420
478
 
479
+
480
+ </td>
421
481
 
422
482
 
423
- <td class="description last"><p>entry that should be added to the group</p></td>
424
- </tr>
425
-
426
-
427
- </tbody>
428
- </table>
429
-
430
-
431
-
432
-
433
-
434
-
435
- <dl class="details">
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
- <dt class="tag-source">Source:</dt>
463
- <dd class="tag-source"><ul class="dummy"><li>
464
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line451">line 451</a>
465
- </li></ul></dd>
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
- </dl>
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
483
 
484
+ <td class="default">
495
485
 
496
- <h4 class="name" id=".DescribedEntry">DescribedEntry</h4>
497
-
498
-
499
-
500
-
501
-
502
-
503
- <h5>Type:</h5>
504
- <ul>
505
- <li>
486
+ </td>
506
487
 
507
- <span class="param-type">Object</span>
508
-
509
-
510
- </li>
511
- </ul>
512
-
513
-
514
-
515
-
516
-
517
- <h5 class="subsection-title">Properties:</h5>
518
-
519
-
520
-
521
- <table class="props">
522
- <thead>
523
- <tr>
524
-
525
- <th>Name</th>
526
-
527
-
528
- <th>Type</th>
529
-
530
-
531
- <th>Attributes</th>
532
-
533
-
534
-
535
- <th>Default</th>
536
-
537
488
 
538
- <th class="last">Description</th>
539
- </tr>
540
- </thead>
489
+ <td class="description last"><p>array of names of all dynamically added properties representing groups</p></td>
490
+ </tr>
541
491
 
542
- <tbody>
543
492
 
544
493
 
545
494
  <tr>
546
495
 
547
- <td class="name"><code>category</code></td>
496
+ <td class="name"><code>addGroupEntry</code></td>
548
497
 
549
498
 
550
499
  <td class="type">
551
500
 
552
501
 
553
- <span class="param-type">string</span>
502
+ <span class="param-type"><a href="module-datarestructor.html#.addGroupEntryFunction">module:datarestructor.addGroupEntryFunction</a></span>
554
503
 
555
504
 
556
505
 
@@ -570,20 +519,20 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
570
519
  </td>
571
520
 
572
521
 
573
- <td class="description last"><p>category of the result from the PropertyStructureDescription using a short name or e.g. a symbol character</p></td>
522
+ <td class="description last"><p>function, that adds an entry to the given group. If the group does not exist, it will be created.</p></td>
574
523
  </tr>
575
524
 
576
525
 
577
526
 
578
527
  <tr>
579
528
 
580
- <td class="name"><code>type</code></td>
529
+ <td class="name"><code>addGroupEntries</code></td>
581
530
 
582
531
 
583
532
  <td class="type">
584
533
 
585
534
 
586
- <span class="param-type">string</span>
535
+ <span class="param-type"><a href="module-datarestructor.html#.addGroupEntriesFunction">module:datarestructor.addGroupEntriesFunction</a></span>
587
536
 
588
537
 
589
538
 
@@ -603,20 +552,20 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
603
552
  </td>
604
553
 
605
554
 
606
- <td class="description last"><p>type of the result from PropertyStructureDescription</p></td>
555
+ <td class="description last"><p>function, that adds entries to the given group. If the group does not exist, it will be created.</p></td>
607
556
  </tr>
608
557
 
609
558
 
610
559
 
611
560
  <tr>
612
561
 
613
- <td class="name"><code>abbreviation</code></td>
562
+ <td class="name"><code>_isMatchingIndex</code></td>
614
563
 
615
564
 
616
565
  <td class="type">
617
566
 
618
567
 
619
- <span class="param-type">string</span>
568
+ <span class="param-type">boolean</span>
620
569
 
621
570
 
622
571
 
@@ -625,8 +574,6 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
625
574
 
626
575
  <td class="attributes">
627
576
 
628
- &lt;optional><br>
629
-
630
577
 
631
578
 
632
579
  </td>
@@ -635,25 +582,23 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
635
582
 
636
583
  <td class="default">
637
584
 
638
- ""
639
-
640
585
  </td>
641
586
 
642
587
 
643
- <td class="description last"><p>one optional character, a symbol character or a short abbreviation of the category</p></td>
588
+ <td class="description last"><p>true, when _identifier.index matches the described &quot;indexStartsWith&quot;</p></td>
644
589
  </tr>
645
590
 
646
591
 
647
592
 
648
593
  <tr>
649
594
 
650
- <td class="name"><code>image</code></td>
595
+ <td class="name"><code>_identifier</code></td>
651
596
 
652
597
 
653
598
  <td class="type">
654
599
 
655
600
 
656
- <span class="param-type">string</span>
601
+ <span class="param-type">Object</span>
657
602
 
658
603
 
659
604
 
@@ -662,8 +607,6 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
662
607
 
663
608
  <td class="attributes">
664
609
 
665
- &lt;optional><br>
666
-
667
610
 
668
611
 
669
612
  </td>
@@ -672,14 +615,30 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
672
615
 
673
616
  <td class="default">
674
617
 
675
- ""
676
-
677
618
  </td>
678
619
 
679
620
 
680
- <td class="description last"><p>one optional path to an image resource</p></td>
681
- </tr>
621
+ <td class="description last"><p>internal structure for identifier. Avoid using it outside since it may change.</p>
622
+ <h6>Properties</h6>
623
+
624
+ <table class="props">
625
+ <thead>
626
+ <tr>
627
+
628
+ <th>Name</th>
629
+
630
+
631
+ <th>Type</th>
632
+
633
+
634
+
635
+
636
+
637
+ <th class="last">Description</th>
638
+ </tr>
639
+ </thead>
682
640
 
641
+ <tbody>
683
642
 
684
643
 
685
644
  <tr>
@@ -697,27 +656,17 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
697
656
  </td>
698
657
 
699
658
 
700
- <td class="attributes">
701
-
702
-
703
-
704
- </td>
705
-
706
659
 
707
660
 
708
- <td class="default">
709
-
710
- </td>
711
-
712
661
 
713
- <td class="description last"><p>array of numbers containing the split index. Example: &quot;responses[2].hits.hits[4]._source.name&quot; leads to an array with the two elements: [2,4]</p></td>
662
+ <td class="description last"><p>array indices in hierarchical order separated by points, e.g. &quot;0.0&quot;</p></td>
714
663
  </tr>
715
664
 
716
665
 
717
666
 
718
667
  <tr>
719
668
 
720
- <td class="name"><code>displayName</code></td>
669
+ <td class="name"><code>value</code></td>
721
670
 
722
671
 
723
672
  <td class="type">
@@ -730,27 +679,17 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
730
679
  </td>
731
680
 
732
681
 
733
- <td class="attributes">
734
-
735
-
736
-
737
- </td>
738
-
739
682
 
740
683
 
741
- <td class="default">
742
-
743
- </td>
744
-
745
684
 
746
- <td class="description last"><p>display name extracted from the point separated hierarchical property name, e.g. &quot;Name&quot;</p></td>
685
+ <td class="description last"><p>the (single) value of the &quot;flattened&quot; property, e.g. &quot;Smith&quot;</p></td>
747
686
  </tr>
748
687
 
749
688
 
750
689
 
751
690
  <tr>
752
691
 
753
- <td class="name"><code>fieldName</code></td>
692
+ <td class="name"><code>propertyNameWithArrayIndices</code></td>
754
693
 
755
694
 
756
695
  <td class="type">
@@ -763,27 +702,17 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
763
702
  </td>
764
703
 
765
704
 
766
- <td class="attributes">
767
-
768
-
769
-
770
- </td>
771
-
772
705
 
773
706
 
774
- <td class="default">
775
-
776
- </td>
777
-
778
707
 
779
- <td class="description last"><p>field name extracted from the point separated hierarchical property name, e.g. &quot;name&quot;</p></td>
708
+ <td class="description last"><p>the &quot;original&quot; flattened property name in hierarchical order separated by points, e.g. &quot;responses[0].hits.hits[0]._source.name&quot;</p></td>
780
709
  </tr>
781
710
 
782
711
 
783
712
 
784
713
  <tr>
785
714
 
786
- <td class="name"><code>value</code></td>
715
+ <td class="name"><code>propertyNameWithoutArrayIndices</code></td>
787
716
 
788
717
 
789
718
  <td class="type">
@@ -796,132 +725,99 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
796
725
  </td>
797
726
 
798
727
 
799
- <td class="attributes">
800
-
801
-
802
-
803
- </td>
804
-
805
728
 
806
729
 
807
- <td class="default">
808
-
809
- </td>
810
-
811
730
 
812
- <td class="description last"><p>content of the field</p></td>
731
+ <td class="description last"><p>same as propertyNamesWithArrayIndices but without array indices, e.g. &quot;responses.hits.hits._source.name&quot;</p></td>
813
732
  </tr>
814
733
 
815
734
 
816
735
 
817
736
  <tr>
818
737
 
819
- <td class="name"><code>groupNames</code></td>
738
+ <td class="name"><code>groupId</code></td>
820
739
 
821
740
 
822
741
  <td class="type">
823
742
 
824
743
 
825
- <span class="param-type">Array.&lt;string></span>
744
+ <span class="param-type">string</span>
826
745
 
827
746
 
828
747
 
829
748
  </td>
830
749
 
831
750
 
832
- <td class="attributes">
833
-
834
-
835
-
836
- </td>
837
-
838
751
 
839
752
 
840
- <td class="default">
841
-
842
- </td>
843
-
844
753
 
845
- <td class="description last"><p>array of names of all dynamically added properties representing groups</p></td>
754
+ <td class="description last"><p>Contains the resolved groupPattern from the PropertyStructureDescription. Entries with the same id will be grouped into the &quot;groupName&quot; of the PropertyStructureDescription.</p></td>
846
755
  </tr>
847
756
 
848
757
 
849
758
 
850
759
  <tr>
851
760
 
852
- <td class="name"><code>addGroupEntry</code></td>
761
+ <td class="name"><code>groupDestinationId</code></td>
853
762
 
854
763
 
855
764
  <td class="type">
856
765
 
857
766
 
858
- <span class="param-type"><a href="module-datarestructor.html#.addGroupEntryFunction">module:datarestructor.addGroupEntryFunction</a></span>
767
+ <span class="param-type">string</span>
859
768
 
860
769
 
861
770
 
862
771
  </td>
863
772
 
864
773
 
865
- <td class="attributes">
866
-
867
-
868
-
869
- </td>
870
-
871
774
 
872
775
 
873
- <td class="default">
874
-
875
- </td>
876
-
877
776
 
878
- <td class="description last"><p>function, that adds an entry to the given group. If the group does not exist, it will be created.</p></td>
777
+ <td class="description last"><p>Contains the resolved groupDestinationPattern from the PropertyStructureDescription. Entries with this id will be moved to the given destination group.</p></td>
879
778
  </tr>
880
779
 
881
780
 
882
781
 
883
782
  <tr>
884
783
 
885
- <td class="name"><code>addGroupEntries</code></td>
784
+ <td class="name"><code>deduplicationId</code></td>
886
785
 
887
786
 
888
787
  <td class="type">
889
788
 
890
789
 
891
- <span class="param-type"><a href="module-datarestructor.html#.addGroupEntriesFunction">module:datarestructor.addGroupEntriesFunction</a></span>
790
+ <span class="param-type">string</span>
892
791
 
893
792
 
894
793
 
895
794
  </td>
896
795
 
897
796
 
898
- <td class="attributes">
899
-
900
797
 
901
-
902
- </td>
903
798
 
904
799
 
905
-
906
- <td class="default">
907
-
908
- </td>
909
-
800
+ <td class="description last"><p>Contains the resolved deduplicationPattern from the PropertyStructureDescription. Entries with the same id will be considered to be a duplicate and hence removed.</p></td>
801
+ </tr>
910
802
 
911
- <td class="description last"><p>function, that adds entries to the given group. If the group does not exist, it will be created.</p></td>
803
+
804
+ </tbody>
805
+ </table>
806
+
807
+ </td>
912
808
  </tr>
913
809
 
914
810
 
915
811
 
916
812
  <tr>
917
813
 
918
- <td class="name"><code>_isMatchingIndex</code></td>
814
+ <td class="name"><code>_description</code></td>
919
815
 
920
816
 
921
817
  <td class="type">
922
818
 
923
819
 
924
- <span class="param-type">boolean</span>
820
+ <span class="param-type">Object</span>
925
821
 
926
822
 
927
823
 
@@ -941,41 +837,161 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
941
837
  </td>
942
838
 
943
839
 
944
- <td class="description last"><p>true, when _identifier.index matches the described &quot;indexStartsWith&quot;</p></td>
840
+ <td class="description last"><p>PropertyStructureDescription for internal use. Avoid using it outside since it may change.</p></td>
945
841
  </tr>
946
842
 
947
843
 
844
+ </tbody>
845
+ </table>
846
+
847
+
848
+
849
+
850
+ <dl class="details">
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+ <dt class="tag-source">Source:</dt>
878
+ <dd class="tag-source"><ul class="dummy"><li>
879
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line467">line 467</a>
880
+ </li></ul></dd>
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+ </dl>
889
+
948
890
 
949
- <tr>
950
-
951
- <td class="name"><code>_identifier</code></td>
952
-
953
891
 
954
- <td class="type">
955
-
956
-
957
- <span class="param-type">Object</span>
958
892
 
959
893
 
960
-
961
- </td>
962
894
 
963
895
 
964
- <td class="attributes">
965
896
 
897
+ <h4 class="name" id=".DescribedFieldRecursionContext">DescribedFieldRecursionContext</h4>
966
898
 
967
-
968
- </td>
899
+
900
+
901
+
902
+ <div class="description">
903
+ <p>Describes the context type for the recursive DescribedDataField conversion,
904
+ that contains everything that needs to be accessible throughout recursion regardless of the
905
+ recursion depth.</p>
906
+ </div>
907
+
908
+
909
+
910
+ <h5>Type:</h5>
911
+ <ul>
912
+ <li>
969
913
 
914
+ <span class="param-type">Object</span>
915
+
916
+
917
+ </li>
918
+ </ul>
919
+
920
+
921
+
922
+
923
+
924
+ <dl class="details">
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+ <dt class="tag-source">Source:</dt>
952
+ <dd class="tag-source"><ul class="dummy"><li>
953
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line1091">line 1091</a>
954
+ </li></ul></dd>
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+ </dl>
963
+
964
+
965
+
966
+
967
+
970
968
 
971
969
 
972
- <td class="default">
973
970
 
974
- </td>
971
+ <h4 class="name" id=".ExtractedIndices">ExtractedIndices</h4>
972
+
973
+
974
+
975
+
976
+
977
+
978
+ <h5>Type:</h5>
979
+ <ul>
980
+ <li>
975
981
 
982
+ <span class="param-type">Object</span>
983
+
984
+
985
+ </li>
986
+ </ul>
987
+
976
988
 
977
- <td class="description last"><p>internal structure for identifier. Avoid using it outside since it may change.</p>
978
- <h6>Properties</h6>
989
+
990
+
991
+
992
+ <h5 class="subsection-title">Properties:</h5>
993
+
994
+
979
995
 
980
996
  <table class="props">
981
997
  <thead>
@@ -999,7 +1015,7 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
999
1015
 
1000
1016
  <tr>
1001
1017
 
1002
- <td class="name"><code>index</code></td>
1018
+ <td class="name"><code>pointDelimited</code></td>
1003
1019
 
1004
1020
 
1005
1021
  <td class="type">
@@ -1015,20 +1031,20 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1015
1031
 
1016
1032
 
1017
1033
 
1018
- <td class="description last"><p>array indices in hierarchical order separated by points, e.g. &quot;0.0&quot;</p></td>
1034
+ <td class="description last"><p>bracket indices separated by points</p></td>
1019
1035
  </tr>
1020
1036
 
1021
1037
 
1022
1038
 
1023
1039
  <tr>
1024
1040
 
1025
- <td class="name"><code>value</code></td>
1041
+ <td class="name"><code>numberArray</code></td>
1026
1042
 
1027
1043
 
1028
1044
  <td class="type">
1029
1045
 
1030
1046
 
1031
- <span class="param-type">string</span>
1047
+ <span class="param-type">Array.&lt;number></span>
1032
1048
 
1033
1049
 
1034
1050
 
@@ -1038,37 +1054,120 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1038
1054
 
1039
1055
 
1040
1056
 
1041
- <td class="description last"><p>the (single) value of the &quot;flattened&quot; property, e.g. &quot;Smith&quot;</p></td>
1057
+ <td class="description last"><p>as array of numbers</p></td>
1042
1058
  </tr>
1043
1059
 
1044
1060
 
1061
+ </tbody>
1062
+ </table>
1063
+
1064
+
1065
+
1066
+
1067
+ <dl class="details">
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+ <dt class="tag-source">Source:</dt>
1095
+ <dd class="tag-source"><ul class="dummy"><li>
1096
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line580">line 580</a>
1097
+ </li></ul></dd>
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+ </dl>
1106
+
1045
1107
 
1046
- <tr>
1047
-
1048
- <td class="name"><code>propertyNameWithArrayIndices</code></td>
1049
-
1050
1108
 
1051
- <td class="type">
1052
-
1053
-
1054
- <span class="param-type">string</span>
1055
1109
 
1056
1110
 
1057
-
1058
- </td>
1059
1111
 
1060
1112
 
1113
+
1114
+ <h4 class="name" id=".PropertyStructureDescription">PropertyStructureDescription</h4>
1115
+
1116
+
1117
+
1118
+
1119
+ <div class="description">
1120
+ <p>Describes a selected part of the incoming data structure and defines,
1121
+ how the data should be transformed.</p>
1122
+ </div>
1123
+
1124
+
1061
1125
 
1126
+ <h5>Type:</h5>
1127
+ <ul>
1128
+ <li>
1062
1129
 
1130
+ <span class="param-type">Object</span>
1063
1131
 
1064
- <td class="description last"><p>the &quot;original&quot; flattened property name in hierarchical order separated by points, e.g. &quot;responses[0].hits.hits[0]._source.name&quot;</p></td>
1065
- </tr>
1066
1132
 
1133
+ </li>
1134
+ </ul>
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ <h5 class="subsection-title">Properties:</h5>
1141
+
1142
+
1143
+
1144
+ <table class="props">
1145
+ <thead>
1146
+ <tr>
1147
+
1148
+ <th>Name</th>
1149
+
1150
+
1151
+ <th>Type</th>
1152
+
1153
+
1154
+ <th>Attributes</th>
1155
+
1156
+
1157
+
1158
+ <th>Default</th>
1159
+
1160
+
1161
+ <th class="last">Description</th>
1162
+ </tr>
1163
+ </thead>
1164
+
1165
+ <tbody>
1067
1166
 
1068
1167
 
1069
1168
  <tr>
1070
1169
 
1071
- <td class="name"><code>propertyNameWithoutArrayIndices</code></td>
1170
+ <td class="name"><code>type</code></td>
1072
1171
 
1073
1172
 
1074
1173
  <td class="type">
@@ -1081,17 +1180,27 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1081
1180
  </td>
1082
1181
 
1083
1182
 
1183
+ <td class="attributes">
1184
+
1185
+
1186
+
1187
+ </td>
1188
+
1084
1189
 
1085
1190
 
1191
+ <td class="default">
1192
+
1193
+ </td>
1194
+
1086
1195
 
1087
- <td class="description last"><p>same as propertyNamesWithArrayIndices but without array indices, e.g. &quot;responses.hits.hits._source.name&quot;</p></td>
1196
+ <td class="description last"><p>&quot;&quot;(default). Some examples: &quot;summary&quot; for e.g. a list overview. &quot;detail&quot; e.g. when a summary is selected. &quot;filter&quot; e.g. for field/value pair results that can be selected as search parameters.</p></td>
1088
1197
  </tr>
1089
1198
 
1090
1199
 
1091
1200
 
1092
1201
  <tr>
1093
1202
 
1094
- <td class="name"><code>groupId</code></td>
1203
+ <td class="name"><code>category</code></td>
1095
1204
 
1096
1205
 
1097
1206
  <td class="type">
@@ -1104,17 +1213,27 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1104
1213
  </td>
1105
1214
 
1106
1215
 
1216
+ <td class="attributes">
1217
+
1107
1218
 
1219
+
1220
+ </td>
1108
1221
 
1109
1222
 
1110
- <td class="description last"><p>Contains the resolved groupPattern from the PropertyStructureDescription. Entries with the same id will be grouped into the &quot;groupName&quot; of the PropertyStructureDescription.</p></td>
1223
+
1224
+ <td class="default">
1225
+
1226
+ </td>
1227
+
1228
+
1229
+ <td class="description last"><p>name of the category. Default = &quot;&quot;. Could contain a short domain name like &quot;product&quot; or &quot;vendor&quot;.</p></td>
1111
1230
  </tr>
1112
1231
 
1113
1232
 
1114
1233
 
1115
1234
  <tr>
1116
1235
 
1117
- <td class="name"><code>groupDestinationId</code></td>
1236
+ <td class="name"><code>abbreviation</code></td>
1118
1237
 
1119
1238
 
1120
1239
  <td class="type">
@@ -1127,17 +1246,31 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1127
1246
  </td>
1128
1247
 
1129
1248
 
1249
+ <td class="attributes">
1250
+
1251
+ &lt;optional><br>
1252
+
1130
1253
 
1254
+
1255
+ </td>
1131
1256
 
1132
1257
 
1133
- <td class="description last"><p>Contains the resolved groupDestinationPattern from the PropertyStructureDescription. Entries with this id will be moved to the given destination group.</p></td>
1258
+
1259
+ <td class="default">
1260
+
1261
+ ""
1262
+
1263
+ </td>
1264
+
1265
+
1266
+ <td class="description last"><p>one optional character, a symbol character or a short abbreviation of the category</p></td>
1134
1267
  </tr>
1135
1268
 
1136
1269
 
1137
1270
 
1138
1271
  <tr>
1139
1272
 
1140
- <td class="name"><code>deduplicationId</code></td>
1273
+ <td class="name"><code>image</code></td>
1141
1274
 
1142
1275
 
1143
1276
  <td class="type">
@@ -1150,30 +1283,37 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1150
1283
  </td>
1151
1284
 
1152
1285
 
1286
+ <td class="attributes">
1287
+
1288
+ &lt;optional><br>
1289
+
1153
1290
 
1291
+
1292
+ </td>
1154
1293
 
1155
1294
 
1156
- <td class="description last"><p>Contains the resolved deduplicationPattern from the PropertyStructureDescription. Entries with the same id will be considered to be a duplicate and hence removed.</p></td>
1157
- </tr>
1158
-
1159
-
1160
- </tbody>
1161
- </table>
1295
+
1296
+ <td class="default">
1297
+
1298
+ ""
1299
+
1300
+ </td>
1301
+
1162
1302
 
1163
- </td>
1303
+ <td class="description last"><p>one optional path to an image resource</p></td>
1164
1304
  </tr>
1165
1305
 
1166
1306
 
1167
1307
 
1168
1308
  <tr>
1169
1309
 
1170
- <td class="name"><code>_description</code></td>
1310
+ <td class="name"><code>propertyPatternTemplateMode</code></td>
1171
1311
 
1172
1312
 
1173
1313
  <td class="type">
1174
1314
 
1175
1315
 
1176
- <span class="param-type">Object</span>
1316
+ <span class="param-type">boolean</span>
1177
1317
 
1178
1318
 
1179
1319
 
@@ -1193,185 +1333,245 @@ It contains all functions to convert an object (e.g. parsed JSON) into uniform e
1193
1333
  </td>
1194
1334
 
1195
1335
 
1196
- <td class="description last"><p>PropertyStructureDescription for internal use. Avoid using it outside since it may change.</p></td>
1336
+ <td class="description last"><p>&quot;false&quot;(default): property name needs to be equal to the pattern. &quot;true&quot; allows variables like &quot;{{fieldName}}&quot; inside the pattern.</p></td>
1197
1337
  </tr>
1198
1338
 
1199
1339
 
1200
- </tbody>
1201
- </table>
1202
-
1203
-
1204
1340
 
1341
+ <tr>
1342
+
1343
+ <td class="name"><code>propertyPattern</code></td>
1344
+
1205
1345
 
1206
- <dl class="details">
1346
+ <td class="type">
1347
+
1348
+
1349
+ <span class="param-type">string</span>
1207
1350
 
1208
-
1209
1351
 
1210
-
1352
+
1353
+ </td>
1211
1354
 
1212
-
1355
+
1356
+ <td class="attributes">
1357
+
1213
1358
 
1214
-
1359
+
1360
+ </td>
1361
+
1215
1362
 
1216
-
1363
+
1364
+ <td class="default">
1365
+
1366
+ </td>
1367
+
1217
1368
 
1218
-
1369
+ <td class="description last"><p>property name pattern (without array indices) to match</p></td>
1370
+ </tr>
1219
1371
 
1220
1372
 
1221
1373
 
1222
-
1374
+ <tr>
1375
+
1376
+ <td class="name"><code>indexStartsWith</code></td>
1377
+
1223
1378
 
1224
-
1379
+ <td class="type">
1380
+
1381
+
1382
+ <span class="param-type">string</span>
1225
1383
 
1226
-
1227
1384
 
1228
-
1385
+
1386
+ </td>
1229
1387
 
1230
-
1388
+
1389
+ <td class="attributes">
1390
+
1231
1391
 
1232
-
1233
- <dt class="tag-source">Source:</dt>
1234
- <dd class="tag-source"><ul class="dummy"><li>
1235
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line467">line 467</a>
1236
- </li></ul></dd>
1237
-
1392
+
1393
+ </td>
1394
+
1238
1395
 
1239
-
1396
+
1397
+ <td class="default">
1398
+
1399
+ </td>
1400
+
1240
1401
 
1241
-
1402
+ <td class="description last"><p>&quot;&quot;(default) matches all ids. String that needs to match the beginning of the id. E.g. &quot;1.&quot; will match id=&quot;1.3.4&quot; but not &quot;0.1.2&quot;.</p></td>
1403
+ </tr>
1242
1404
 
1243
1405
 
1244
- </dl>
1245
-
1246
-
1247
-
1248
-
1249
1406
 
1407
+ <tr>
1408
+
1409
+ <td class="name"><code>getDisplayNameForPropertyName</code></td>
1410
+
1250
1411
 
1412
+ <td class="type">
1251
1413
 
1252
1414
 
1253
- <h4 class="name" id=".DescribedFieldRecursionContext">DescribedFieldRecursionContext</h4>
1415
+ <span class="param-type"><a href="module-datarestructor.html#.propertyNameFunction">module:datarestructor.propertyNameFunction</a></span>
1254
1416
 
1255
1417
 
1256
-
1257
-
1258
- <div class="description">
1259
- <p>Describes the context type for the recursive DescribedDataField conversion,
1260
- that contains everything that needs to be accessible throughout recursion regardless of the
1261
- recursion depth.</p>
1262
- </div>
1263
-
1264
-
1265
-
1266
- <h5>Type:</h5>
1267
- <ul>
1268
- <li>
1269
1418
 
1270
- <span class="param-type">Object</span>
1271
-
1272
-
1273
- </li>
1274
- </ul>
1275
-
1276
-
1277
-
1278
-
1279
-
1280
- <dl class="details">
1281
-
1282
-
1419
+ </td>
1283
1420
 
1284
-
1421
+
1422
+ <td class="attributes">
1423
+
1285
1424
 
1286
-
1425
+
1426
+ </td>
1427
+
1287
1428
 
1288
-
1429
+
1430
+ <td class="default">
1431
+
1432
+ </td>
1433
+
1289
1434
 
1290
-
1435
+ <td class="description last"><p>display name for the property. &quot;&quot;(default) last property name element with upper case first letter.</p></td>
1436
+ </tr>
1291
1437
 
1292
1438
 
1293
1439
 
1294
-
1440
+ <tr>
1441
+
1442
+ <td class="name"><code>getFieldNameForPropertyName</code></td>
1443
+
1295
1444
 
1296
-
1445
+ <td class="type">
1446
+
1447
+
1448
+ <span class="param-type"><a href="module-datarestructor.html#.propertyNameFunction">module:datarestructor.propertyNameFunction</a></span>
1297
1449
 
1298
-
1299
1450
 
1300
-
1451
+
1452
+ </td>
1301
1453
 
1302
-
1454
+
1455
+ <td class="attributes">
1456
+
1303
1457
 
1304
-
1458
+
1459
+ </td>
1460
+
1305
1461
 
1306
-
1307
- <dt class="tag-source">Source:</dt>
1308
- <dd class="tag-source"><ul class="dummy"><li>
1309
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line1091">line 1091</a>
1310
- </li></ul></dd>
1311
-
1462
+
1463
+ <td class="default">
1464
+
1465
+ </td>
1466
+
1312
1467
 
1313
-
1468
+ <td class="description last"><p>field name for the property. &quot;&quot; (default) last property name element.</p></td>
1469
+ </tr>
1314
1470
 
1315
1471
 
1316
1472
 
1317
-
1318
- </dl>
1473
+ <tr>
1474
+
1475
+ <td class="name"><code>groupName</code></td>
1476
+
1319
1477
 
1478
+ <td class="type">
1479
+
1480
+
1481
+ <span class="param-type">string</span>
1320
1482
 
1321
1483
 
1484
+
1485
+ </td>
1322
1486
 
1487
+
1488
+ <td class="attributes">
1489
+
1323
1490
 
1491
+
1492
+ </td>
1493
+
1324
1494
 
1325
1495
 
1496
+ <td class="default">
1326
1497
 
1327
- <h4 class="name" id=".ExtractedIndices">ExtractedIndices</h4>
1498
+ </td>
1499
+
1328
1500
 
1501
+ <td class="description last"><p>name of the property, that contains grouped entries. Default=&quot;group&quot;.</p></td>
1502
+ </tr>
1329
1503
 
1504
+
1330
1505
 
1506
+ <tr>
1507
+
1508
+ <td class="name"><code>groupPattern</code></td>
1509
+
1331
1510
 
1511
+ <td class="type">
1512
+
1513
+
1514
+ <span class="param-type">string</span>
1332
1515
 
1333
1516
 
1334
- <h5>Type:</h5>
1335
- <ul>
1336
- <li>
1337
1517
 
1338
- <span class="param-type">Object</span>
1518
+ </td>
1339
1519
 
1520
+
1521
+ <td class="attributes">
1522
+
1340
1523
 
1341
- </li>
1342
- </ul>
1524
+
1525
+ </td>
1526
+
1343
1527
 
1528
+
1529
+ <td class="default">
1530
+
1531
+ </td>
1532
+
1344
1533
 
1534
+ <td class="description last"><p>Pattern that describes how to group entries. &quot;groupName&quot; defines the name of this group. A pattern may contain variables in double curly brackets {{variable}}.</p></td>
1535
+ </tr>
1345
1536
 
1537
+
1346
1538
 
1539
+ <tr>
1540
+
1541
+ <td class="name"><code>groupDestinationPattern</code></td>
1542
+
1347
1543
 
1348
- <h5 class="subsection-title">Properties:</h5>
1544
+ <td class="type">
1545
+
1546
+
1547
+ <span class="param-type">string</span>
1349
1548
 
1350
-
1351
1549
 
1352
- <table class="props">
1353
- <thead>
1354
- <tr>
1355
-
1356
- <th>Name</th>
1357
-
1550
+
1551
+ </td>
1358
1552
 
1359
- <th>Type</th>
1553
+
1554
+ <td class="attributes">
1555
+
1360
1556
 
1361
-
1557
+
1558
+ </td>
1559
+
1362
1560
 
1363
-
1561
+
1562
+ <td class="default">
1563
+
1564
+ </td>
1565
+
1364
1566
 
1365
- <th class="last">Description</th>
1366
- </tr>
1367
- </thead>
1567
+ <td class="description last"><p>Pattern that describes where the group should be moved to. Default=&quot;&quot;=Group will not be moved. A pattern may contain variables in double curly brackets {{variable}}.</p></td>
1568
+ </tr>
1368
1569
 
1369
- <tbody>
1370
1570
 
1371
1571
 
1372
1572
  <tr>
1373
1573
 
1374
- <td class="name"><code>pointDelimited</code></td>
1574
+ <td class="name"><code>groupDestinationName</code></td>
1375
1575
 
1376
1576
 
1377
1577
  <td class="type">
@@ -1384,33 +1584,53 @@ recursion depth.</p>
1384
1584
  </td>
1385
1585
 
1386
1586
 
1587
+ <td class="attributes">
1588
+
1589
+
1590
+
1591
+ </td>
1592
+
1387
1593
 
1388
1594
 
1595
+ <td class="default">
1596
+
1597
+ </td>
1598
+
1389
1599
 
1390
- <td class="description last"><p>bracket indices separated by points</p></td>
1600
+ <td class="description last"><p>(default=groupName) Name of the group when it had been moved to the destination.</p></td>
1391
1601
  </tr>
1392
1602
 
1393
1603
 
1394
1604
 
1395
1605
  <tr>
1396
1606
 
1397
- <td class="name"><code>numberArray</code></td>
1607
+ <td class="name"><code>deduplicationPattern</code></td>
1398
1608
 
1399
1609
 
1400
1610
  <td class="type">
1401
1611
 
1402
1612
 
1403
- <span class="param-type">Array.&lt;number></span>
1613
+ <span class="param-type">string</span>
1404
1614
 
1405
1615
 
1406
1616
 
1407
1617
  </td>
1408
1618
 
1409
1619
 
1620
+ <td class="attributes">
1621
+
1622
+
1623
+
1624
+ </td>
1625
+
1410
1626
 
1411
1627
 
1628
+ <td class="default">
1629
+
1630
+ </td>
1631
+
1412
1632
 
1413
- <td class="description last"><p>as array of numbers</p></td>
1633
+ <td class="description last"><p>Pattern to use to remove duplicate entries. A pattern may contain variables in double curly brackets {{variable}}.</p></td>
1414
1634
  </tr>
1415
1635
 
1416
1636
 
@@ -1449,7 +1669,7 @@ recursion depth.</p>
1449
1669
 
1450
1670
  <dt class="tag-source">Source:</dt>
1451
1671
  <dd class="tag-source"><ul class="dummy"><li>
1452
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line580">line 580</a>
1672
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line43">line 43</a>
1453
1673
  </li></ul></dd>
1454
1674
 
1455
1675
 
@@ -1467,33 +1687,32 @@ recursion depth.</p>
1467
1687
 
1468
1688
 
1469
1689
 
1690
+ <h4 class="name" id=".TransformConfig">TransformConfig</h4>
1470
1691
 
1471
-
1472
-
1473
-
1474
- <h4 class="name" id=".onEntryFoundFunction"><span class="type-signature"></span>onEntryFoundFunction<span class="signature">(groupName, foundEntry, allEntries)</span><span class="type-signature"></span></h4>
1475
-
1476
1692
 
1477
-
1478
1693
 
1479
1694
 
1480
1695
 
1481
- <div class="description">
1482
- <p>Takes the full qualified original property name and extracts a simple name out of it.</p>
1483
- </div>
1484
1696
 
1697
+ <h5>Type:</h5>
1698
+ <ul>
1699
+ <li>
1700
+
1701
+ <span class="param-type">Object</span>
1485
1702
 
1486
1703
 
1704
+ </li>
1705
+ </ul>
1487
1706
 
1488
1707
 
1489
1708
 
1490
1709
 
1491
1710
 
1711
+ <h5 class="subsection-title">Properties:</h5>
1492
1712
 
1493
- <h5>Parameters:</h5>
1494
1713
 
1495
1714
 
1496
- <table class="params">
1715
+ <table class="props">
1497
1716
  <thead>
1498
1717
  <tr>
1499
1718
 
@@ -1503,8 +1722,12 @@ recursion depth.</p>
1503
1722
  <th>Type</th>
1504
1723
 
1505
1724
 
1725
+ <th>Attributes</th>
1726
+
1506
1727
 
1507
1728
 
1729
+ <th>Default</th>
1730
+
1508
1731
 
1509
1732
  <th class="last">Description</th>
1510
1733
  </tr>
@@ -1515,69 +1738,107 @@ recursion depth.</p>
1515
1738
 
1516
1739
  <tr>
1517
1740
 
1518
- <td class="name"><code>groupName</code></td>
1741
+ <td class="name"><code>debugMode</code></td>
1519
1742
 
1520
1743
 
1521
1744
  <td class="type">
1522
1745
 
1523
1746
 
1524
- <span class="param-type">string</span>
1747
+ <span class="param-type">boolean</span>
1525
1748
 
1526
1749
 
1527
1750
 
1528
1751
  </td>
1529
1752
 
1530
1753
 
1754
+ <td class="attributes">
1755
+
1531
1756
 
1757
+
1758
+ </td>
1532
1759
 
1533
1760
 
1534
- <td class="description last"><p>name of the group where the entry had been found.</p></td>
1761
+
1762
+ <td class="default">
1763
+
1764
+ </td>
1765
+
1766
+
1767
+ <td class="description last"><p>enables/disables detailed logging</p></td>
1535
1768
  </tr>
1536
1769
 
1537
1770
 
1538
1771
 
1539
1772
  <tr>
1540
1773
 
1541
- <td class="name"><code>foundEntry</code></td>
1774
+ <td class="name"><code>maxRecursionDepth</code></td>
1542
1775
 
1543
1776
 
1544
1777
  <td class="type">
1545
1778
 
1546
1779
 
1547
- <span class="param-type"><a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a></span>
1780
+ <span class="param-type">number</span>
1548
1781
 
1549
1782
 
1550
1783
 
1551
1784
  </td>
1552
1785
 
1553
1786
 
1787
+ <td class="attributes">
1788
+
1789
+ &lt;optional><br>
1790
+
1554
1791
 
1792
+
1793
+ </td>
1555
1794
 
1556
1795
 
1557
- <td class="description last"><p>the found entry itself.</p></td>
1796
+
1797
+ <td class="default">
1798
+
1799
+ 8
1800
+
1801
+ </td>
1802
+
1803
+
1804
+ <td class="description last"><p>Maximum recursion depth</p></td>
1558
1805
  </tr>
1559
1806
 
1560
1807
 
1561
1808
 
1562
1809
  <tr>
1563
1810
 
1564
- <td class="name"><code>allEntries</code></td>
1811
+ <td class="name"><code>removeDuplicationAboveRecursionDepth</code></td>
1565
1812
 
1566
1813
 
1567
1814
  <td class="type">
1568
1815
 
1569
1816
 
1570
- <span class="param-type">Array.&lt;<a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>></span>
1817
+ <span class="param-type">number</span>
1571
1818
 
1572
1819
 
1573
1820
 
1574
1821
  </td>
1575
1822
 
1576
1823
 
1824
+ <td class="attributes">
1825
+
1826
+ &lt;optional><br>
1827
+
1577
1828
 
1829
+
1830
+ </td>
1578
1831
 
1579
1832
 
1580
- <td class="description last"><p>the array of all entries where the found entry is an element of.</p></td>
1833
+
1834
+ <td class="default">
1835
+
1836
+ 1
1837
+
1838
+ </td>
1839
+
1840
+
1841
+ <td class="description last"><p>Duplications will be removed above the given recursion depth value and remain unchanged below it.</p></td>
1581
1842
  </tr>
1582
1843
 
1583
1844
 
@@ -1587,8 +1848,6 @@ recursion depth.</p>
1587
1848
 
1588
1849
 
1589
1850
 
1590
-
1591
-
1592
1851
  <dl class="details">
1593
1852
 
1594
1853
 
@@ -1618,7 +1877,7 @@ recursion depth.</p>
1618
1877
 
1619
1878
  <dt class="tag-source">Source:</dt>
1620
1879
  <dd class="tag-source"><ul class="dummy"><li>
1621
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line1182">line 1182</a>
1880
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line628">line 628</a>
1622
1881
  </li></ul></dd>
1623
1882
 
1624
1883
 
@@ -1633,20 +1892,6 @@ recursion depth.</p>
1633
1892
 
1634
1893
 
1635
1894
 
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
-
1643
-
1644
-
1645
-
1646
-
1647
-
1648
-
1649
-
1650
1895
 
1651
1896
 
1652
1897
 
@@ -1654,7 +1899,7 @@ recursion depth.</p>
1654
1899
 
1655
1900
 
1656
1901
 
1657
- <h4 class="name" id=".propertyNameFunction"><span class="type-signature"></span>propertyNameFunction<span class="signature">(propertyName)</span><span class="type-signature"> &rarr; {String}</span></h4>
1902
+ <h4 class="name" id=".addGroupEntriesFunction"><span class="type-signature"></span>addGroupEntriesFunction<span class="signature">(groupName, describedEntry)</span><span class="type-signature"></span></h4>
1658
1903
 
1659
1904
 
1660
1905
 
@@ -1662,7 +1907,7 @@ recursion depth.</p>
1662
1907
 
1663
1908
 
1664
1909
  <div class="description">
1665
- <p>Takes the full qualified original property name and extracts a simple name out of it.</p>
1910
+ <p>Adds some group items/entries to the <a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>.</p>
1666
1911
  </div>
1667
1912
 
1668
1913
 
@@ -1698,13 +1943,13 @@ recursion depth.</p>
1698
1943
 
1699
1944
  <tr>
1700
1945
 
1701
- <td class="name"><code>propertyName</code></td>
1946
+ <td class="name"><code>groupName</code></td>
1702
1947
 
1703
1948
 
1704
1949
  <td class="type">
1705
1950
 
1706
1951
 
1707
- <span class="param-type">string</span>
1952
+ <span class="param-type">String</span>
1708
1953
 
1709
1954
 
1710
1955
 
@@ -1714,7 +1959,30 @@ recursion depth.</p>
1714
1959
 
1715
1960
 
1716
1961
 
1717
- <td class="description last"><p>full qualified, point separated property name</p></td>
1962
+ <td class="description last"><p>name of the group that should be added</p></td>
1963
+ </tr>
1964
+
1965
+
1966
+
1967
+ <tr>
1968
+
1969
+ <td class="name"><code>describedEntry</code></td>
1970
+
1971
+
1972
+ <td class="type">
1973
+
1974
+
1975
+ <span class="param-type">Array.&lt;<a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>></span>
1976
+
1977
+
1978
+
1979
+ </td>
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+ <td class="description last"><p>entries that should be added to the group</p></td>
1718
1986
  </tr>
1719
1987
 
1720
1988
 
@@ -1755,7 +2023,7 @@ recursion depth.</p>
1755
2023
 
1756
2024
  <dt class="tag-source">Source:</dt>
1757
2025
  <dd class="tag-source"><ul class="dummy"><li>
1758
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line35">line 35</a>
2026
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line459">line 459</a>
1759
2027
  </li></ul></dd>
1760
2028
 
1761
2029
 
@@ -1780,66 +2048,40 @@ recursion depth.</p>
1780
2048
 
1781
2049
 
1782
2050
 
1783
- <h5>Returns:</h5>
1784
-
1785
-
1786
- <div class="param-desc">
1787
- <p>extracted, simple name</p>
1788
- </div>
1789
2051
 
1790
2052
 
1791
2053
 
1792
- <dl>
1793
- <dt>
1794
- Type
1795
- </dt>
1796
- <dd>
1797
-
1798
- <span class="param-type">String</span>
1799
2054
 
1800
2055
 
1801
- </dd>
1802
- </dl>
2056
+
2057
+
1803
2058
 
1804
2059
 
1805
2060
 
2061
+
2062
+ <h4 class="name" id=".addGroupEntryFunction"><span class="type-signature"></span>addGroupEntryFunction<span class="signature">(groupName, describedEntry)</span><span class="type-signature"></span></h4>
2063
+
1806
2064
 
1807
-
1808
-
1809
-
1810
-
1811
-
1812
- <h4 class="name" id=".PropertyStructureDescription">PropertyStructureDescription</h4>
1813
-
2065
+
1814
2066
 
1815
2067
 
1816
2068
 
1817
2069
  <div class="description">
1818
- <p>Describes a selected part of the incoming data structure and defines,
1819
- how the data should be transformed.</p>
2070
+ <p>Adds a group item/entry to the <a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>.</p>
1820
2071
  </div>
1821
2072
 
1822
2073
 
1823
2074
 
1824
- <h5>Type:</h5>
1825
- <ul>
1826
- <li>
1827
-
1828
- <span class="param-type">Object</span>
1829
-
1830
-
1831
- </li>
1832
- </ul>
1833
2075
 
1834
2076
 
1835
2077
 
1836
2078
 
1837
2079
 
1838
- <h5 class="subsection-title">Properties:</h5>
1839
2080
 
2081
+ <h5>Parameters:</h5>
1840
2082
 
1841
2083
 
1842
- <table class="props">
2084
+ <table class="params">
1843
2085
  <thead>
1844
2086
  <tr>
1845
2087
 
@@ -1849,12 +2091,8 @@ how the data should be transformed.</p>
1849
2091
  <th>Type</th>
1850
2092
 
1851
2093
 
1852
- <th>Attributes</th>
1853
-
1854
2094
 
1855
2095
 
1856
- <th>Default</th>
1857
-
1858
2096
 
1859
2097
  <th class="last">Description</th>
1860
2098
  </tr>
@@ -1865,378 +2103,167 @@ how the data should be transformed.</p>
1865
2103
 
1866
2104
  <tr>
1867
2105
 
1868
- <td class="name"><code>type</code></td>
2106
+ <td class="name"><code>groupName</code></td>
1869
2107
 
1870
2108
 
1871
2109
  <td class="type">
1872
2110
 
1873
2111
 
1874
- <span class="param-type">string</span>
2112
+ <span class="param-type">String</span>
1875
2113
 
1876
2114
 
1877
2115
 
1878
2116
  </td>
1879
2117
 
1880
2118
 
1881
- <td class="attributes">
1882
-
1883
2119
 
1884
-
1885
- </td>
1886
-
1887
-
1888
-
1889
- <td class="default">
1890
-
1891
- </td>
1892
2120
 
1893
2121
 
1894
- <td class="description last"><p>&quot;&quot;(default). Some examples: &quot;summary&quot; for e.g. a list overview. &quot;detail&quot; e.g. when a summary is selected. &quot;filter&quot; e.g. for field/value pair results that can be selected as search parameters.</p></td>
2122
+ <td class="description last"><p>name of the group that should be added</p></td>
1895
2123
  </tr>
1896
2124
 
1897
2125
 
1898
2126
 
1899
2127
  <tr>
1900
2128
 
1901
- <td class="name"><code>category</code></td>
2129
+ <td class="name"><code>describedEntry</code></td>
1902
2130
 
1903
2131
 
1904
2132
  <td class="type">
1905
2133
 
1906
2134
 
1907
- <span class="param-type">string</span>
2135
+ <span class="param-type"><a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a></span>
1908
2136
 
1909
2137
 
1910
2138
 
1911
2139
  </td>
1912
2140
 
1913
2141
 
1914
- <td class="attributes">
1915
-
1916
-
1917
-
1918
- </td>
1919
-
1920
2142
 
1921
2143
 
1922
- <td class="default">
1923
-
1924
- </td>
1925
-
1926
2144
 
1927
- <td class="description last"><p>name of the category. Default = &quot;&quot;. Could contain a short domain name like &quot;product&quot; or &quot;vendor&quot;.</p></td>
2145
+ <td class="description last"><p>entry that should be added to the group</p></td>
1928
2146
  </tr>
1929
2147
 
1930
2148
 
1931
-
1932
- <tr>
1933
-
1934
- <td class="name"><code>abbreviation</code></td>
1935
-
1936
-
1937
- <td class="type">
1938
-
1939
-
1940
- <span class="param-type">string</span>
2149
+ </tbody>
2150
+ </table>
1941
2151
 
1942
2152
 
1943
-
1944
- </td>
1945
2153
 
1946
-
1947
- <td class="attributes">
1948
-
1949
- &lt;optional><br>
1950
-
1951
2154
 
1952
-
1953
- </td>
1954
-
1955
2155
 
1956
-
1957
- <td class="default">
1958
-
1959
- ""
1960
-
1961
- </td>
1962
-
1963
2156
 
1964
- <td class="description last"><p>one optional character, a symbol character or a short abbreviation of the category</p></td>
1965
- </tr>
2157
+ <dl class="details">
1966
2158
 
1967
2159
 
1968
2160
 
1969
- <tr>
1970
-
1971
- <td class="name"><code>image</code></td>
1972
-
1973
-
1974
- <td class="type">
1975
-
1976
-
1977
- <span class="param-type">string</span>
1978
-
1979
-
1980
-
1981
- </td>
1982
-
1983
-
1984
- <td class="attributes">
1985
-
1986
- &lt;optional><br>
1987
-
1988
-
1989
-
1990
- </td>
1991
-
1992
-
1993
-
1994
- <td class="default">
1995
-
1996
- ""
1997
-
1998
- </td>
1999
-
2000
-
2001
- <td class="description last"><p>one optional path to an image resource</p></td>
2002
- </tr>
2003
-
2004
2161
 
2005
2162
 
2006
- <tr>
2007
-
2008
- <td class="name"><code>propertyPatternTemplateMode</code></td>
2009
-
2010
-
2011
- <td class="type">
2012
-
2013
-
2014
- <span class="param-type">boolean</span>
2015
-
2016
-
2017
-
2018
- </td>
2019
-
2020
-
2021
- <td class="attributes">
2022
-
2023
-
2024
-
2025
- </td>
2026
-
2027
-
2028
-
2029
- <td class="default">
2030
-
2031
- </td>
2032
-
2033
-
2034
- <td class="description last"><p>&quot;false&quot;(default): property name needs to be equal to the pattern. &quot;true&quot; allows variables like &quot;{{fieldName}}&quot; inside the pattern.</p></td>
2035
- </tr>
2163
+
2036
2164
 
2037
2165
 
2038
2166
 
2039
- <tr>
2040
-
2041
- <td class="name"><code>propertyPattern</code></td>
2042
-
2167
+
2043
2168
 
2044
- <td class="type">
2045
-
2046
-
2047
- <span class="param-type">string</span>
2169
+
2048
2170
 
2171
+
2049
2172
 
2050
-
2051
- </td>
2173
+
2052
2174
 
2053
-
2054
- <td class="attributes">
2055
-
2175
+
2056
2176
 
2057
-
2058
- </td>
2059
-
2177
+
2060
2178
 
2061
-
2062
- <td class="default">
2063
-
2064
- </td>
2065
-
2179
+
2066
2180
 
2067
- <td class="description last"><p>property name pattern (without array indices) to match</p></td>
2068
- </tr>
2181
+
2069
2182
 
2183
+
2184
+ <dt class="tag-source">Source:</dt>
2185
+ <dd class="tag-source"><ul class="dummy"><li>
2186
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line451">line 451</a>
2187
+ </li></ul></dd>
2070
2188
 
2071
2189
 
2072
- <tr>
2073
-
2074
- <td class="name"><code>indexStartsWith</code></td>
2075
-
2190
+
2076
2191
 
2077
- <td class="type">
2078
-
2079
-
2080
- <span class="param-type">string</span>
2192
+
2081
2193
 
2194
+
2195
+ </dl>
2082
2196
 
2083
-
2084
- </td>
2085
2197
 
2086
-
2087
- <td class="attributes">
2088
-
2089
2198
 
2090
-
2091
- </td>
2092
-
2093
2199
 
2094
-
2095
- <td class="default">
2096
-
2097
- </td>
2098
-
2099
2200
 
2100
- <td class="description last"><p>&quot;&quot;(default) matches all ids. String that needs to match the beginning of the id. E.g. &quot;1.&quot; will match id=&quot;1.3.4&quot; but not &quot;0.1.2&quot;.</p></td>
2101
- </tr>
2102
2201
 
2103
-
2104
2202
 
2105
- <tr>
2106
-
2107
- <td class="name"><code>getDisplayNameForPropertyName</code></td>
2108
-
2109
2203
 
2110
- <td class="type">
2111
-
2112
-
2113
- <span class="param-type"><a href="module-datarestructor.html#.propertyNameFunction">module:datarestructor.propertyNameFunction</a></span>
2114
2204
 
2115
2205
 
2116
-
2117
- </td>
2118
2206
 
2119
-
2120
- <td class="attributes">
2121
-
2122
2207
 
2123
-
2124
- </td>
2125
-
2126
2208
 
2127
-
2128
- <td class="default">
2129
-
2130
- </td>
2131
-
2132
2209
 
2133
- <td class="description last"><p>display name for the property. &quot;&quot;(default) last property name element with upper case first letter.</p></td>
2134
- </tr>
2135
2210
 
2136
-
2137
2211
 
2138
- <tr>
2139
-
2140
- <td class="name"><code>getFieldNameForPropertyName</code></td>
2141
-
2142
2212
 
2143
- <td class="type">
2144
-
2145
-
2146
- <span class="param-type"><a href="module-datarestructor.html#.propertyNameFunction">module:datarestructor.propertyNameFunction</a></span>
2147
2213
 
2148
2214
 
2149
-
2150
- </td>
2151
2215
 
2152
2216
 
2153
- <td class="attributes">
2154
-
2155
-
2156
2217
 
2157
- </td>
2158
-
2159
2218
 
2160
-
2161
- <td class="default">
2162
-
2163
- </td>
2164
-
2219
+
2165
2220
 
2166
- <td class="description last"><p>field name for the property. &quot;&quot; (default) last property name element.</p></td>
2167
- </tr>
2221
+
2222
+ <h4 class="name" id=".onEntryFoundFunction"><span class="type-signature"></span>onEntryFoundFunction<span class="signature">(groupName, foundEntry, allEntries)</span><span class="type-signature"></span></h4>
2223
+
2168
2224
 
2169
2225
 
2170
2226
 
2171
- <tr>
2172
-
2173
- <td class="name"><code>groupName</code></td>
2174
-
2175
2227
 
2176
- <td class="type">
2177
-
2178
-
2179
- <span class="param-type">string</span>
2180
2228
 
2229
+ <div class="description">
2230
+ <p>Takes the full qualified original property name and extracts a simple name out of it.</p>
2231
+ </div>
2181
2232
 
2182
-
2183
- </td>
2184
2233
 
2185
-
2186
- <td class="attributes">
2187
-
2188
2234
 
2189
-
2190
- </td>
2191
-
2192
2235
 
2193
-
2194
- <td class="default">
2195
-
2196
- </td>
2197
-
2198
2236
 
2199
- <td class="description last"><p>name of the property, that contains grouped entries. Default=&quot;group&quot;.</p></td>
2200
- </tr>
2201
2237
 
2202
-
2203
2238
 
2204
- <tr>
2205
-
2206
- <td class="name"><code>groupPattern</code></td>
2207
-
2208
2239
 
2209
- <td class="type">
2210
-
2211
-
2212
- <span class="param-type">string</span>
2213
2240
 
2241
+ <h5>Parameters:</h5>
2242
+
2214
2243
 
2215
-
2216
- </td>
2244
+ <table class="params">
2245
+ <thead>
2246
+ <tr>
2247
+
2248
+ <th>Name</th>
2249
+
2217
2250
 
2218
-
2219
- <td class="attributes">
2220
-
2251
+ <th>Type</th>
2221
2252
 
2222
-
2223
- </td>
2224
-
2253
+
2225
2254
 
2226
-
2227
- <td class="default">
2228
-
2229
- </td>
2230
-
2255
+
2231
2256
 
2232
- <td class="description last"><p>Pattern that describes how to group entries. &quot;groupName&quot; defines the name of this group. A pattern may contain variables in double curly brackets {{variable}}.</p></td>
2233
- </tr>
2257
+ <th class="last">Description</th>
2258
+ </tr>
2259
+ </thead>
2234
2260
 
2261
+ <tbody>
2235
2262
 
2236
2263
 
2237
2264
  <tr>
2238
2265
 
2239
- <td class="name"><code>groupDestinationPattern</code></td>
2266
+ <td class="name"><code>groupName</code></td>
2240
2267
 
2241
2268
 
2242
2269
  <td class="type">
@@ -2249,86 +2276,56 @@ how the data should be transformed.</p>
2249
2276
  </td>
2250
2277
 
2251
2278
 
2252
- <td class="attributes">
2253
-
2254
-
2255
-
2256
- </td>
2257
-
2258
2279
 
2259
2280
 
2260
- <td class="default">
2261
-
2262
- </td>
2263
-
2264
2281
 
2265
- <td class="description last"><p>Pattern that describes where the group should be moved to. Default=&quot;&quot;=Group will not be moved. A pattern may contain variables in double curly brackets {{variable}}.</p></td>
2282
+ <td class="description last"><p>name of the group where the entry had been found.</p></td>
2266
2283
  </tr>
2267
2284
 
2268
2285
 
2269
2286
 
2270
2287
  <tr>
2271
2288
 
2272
- <td class="name"><code>groupDestinationName</code></td>
2289
+ <td class="name"><code>foundEntry</code></td>
2273
2290
 
2274
2291
 
2275
2292
  <td class="type">
2276
2293
 
2277
2294
 
2278
- <span class="param-type">string</span>
2295
+ <span class="param-type"><a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a></span>
2279
2296
 
2280
2297
 
2281
2298
 
2282
2299
  </td>
2283
2300
 
2284
2301
 
2285
- <td class="attributes">
2286
-
2287
-
2288
-
2289
- </td>
2290
-
2291
2302
 
2292
2303
 
2293
- <td class="default">
2294
-
2295
- </td>
2296
-
2297
2304
 
2298
- <td class="description last"><p>(default=groupName) Name of the group when it had been moved to the destination.</p></td>
2305
+ <td class="description last"><p>the found entry itself.</p></td>
2299
2306
  </tr>
2300
2307
 
2301
2308
 
2302
2309
 
2303
2310
  <tr>
2304
2311
 
2305
- <td class="name"><code>deduplicationPattern</code></td>
2312
+ <td class="name"><code>allEntries</code></td>
2306
2313
 
2307
2314
 
2308
2315
  <td class="type">
2309
2316
 
2310
2317
 
2311
- <span class="param-type">string</span>
2318
+ <span class="param-type">Array.&lt;<a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>></span>
2312
2319
 
2313
2320
 
2314
2321
 
2315
2322
  </td>
2316
2323
 
2317
2324
 
2318
- <td class="attributes">
2319
-
2320
-
2321
-
2322
- </td>
2323
-
2324
2325
 
2325
2326
 
2326
- <td class="default">
2327
-
2328
- </td>
2329
-
2330
2327
 
2331
- <td class="description last"><p>Pattern to use to remove duplicate entries. A pattern may contain variables in double curly brackets {{variable}}.</p></td>
2328
+ <td class="description last"><p>the array of all entries where the found entry is an element of.</p></td>
2332
2329
  </tr>
2333
2330
 
2334
2331
 
@@ -2338,6 +2335,8 @@ how the data should be transformed.</p>
2338
2335
 
2339
2336
 
2340
2337
 
2338
+
2339
+
2341
2340
  <dl class="details">
2342
2341
 
2343
2342
 
@@ -2367,7 +2366,7 @@ how the data should be transformed.</p>
2367
2366
 
2368
2367
  <dt class="tag-source">Source:</dt>
2369
2368
  <dd class="tag-source"><ul class="dummy"><li>
2370
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line43">line 43</a>
2369
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line1182">line 1182</a>
2371
2370
  </li></ul></dd>
2372
2371
 
2373
2372
 
@@ -2382,6 +2381,20 @@ how the data should be transformed.</p>
2382
2381
 
2383
2382
 
2384
2383
 
2384
+
2385
+
2386
+
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+
2385
2398
 
2386
2399
 
2387
2400
 
@@ -2389,7 +2402,7 @@ how the data should be transformed.</p>
2389
2402
 
2390
2403
 
2391
2404
 
2392
- <h4 class="name" id=".stringFieldOfDescribedEntryFunction"><span class="type-signature"></span>stringFieldOfDescribedEntryFunction<span class="signature">(entry)</span><span class="type-signature"> &rarr; {String}</span></h4>
2405
+ <h4 class="name" id=".propertyNameFunction"><span class="type-signature"></span>propertyNameFunction<span class="signature">(propertyName)</span><span class="type-signature"> &rarr; {String}</span></h4>
2393
2406
 
2394
2407
 
2395
2408
 
@@ -2397,7 +2410,7 @@ how the data should be transformed.</p>
2397
2410
 
2398
2411
 
2399
2412
  <div class="description">
2400
- <p>Returns a field value of the given <a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>.</p>
2413
+ <p>Takes the full qualified original property name and extracts a simple name out of it.</p>
2401
2414
  </div>
2402
2415
 
2403
2416
 
@@ -2433,13 +2446,13 @@ how the data should be transformed.</p>
2433
2446
 
2434
2447
  <tr>
2435
2448
 
2436
- <td class="name"><code>entry</code></td>
2449
+ <td class="name"><code>propertyName</code></td>
2437
2450
 
2438
2451
 
2439
2452
  <td class="type">
2440
2453
 
2441
2454
 
2442
- <span class="param-type"><a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a></span>
2455
+ <span class="param-type">string</span>
2443
2456
 
2444
2457
 
2445
2458
 
@@ -2449,7 +2462,7 @@ how the data should be transformed.</p>
2449
2462
 
2450
2463
 
2451
2464
 
2452
- <td class="description last"><p>described entry that contains the field that should be returned</p></td>
2465
+ <td class="description last"><p>full qualified, point separated property name</p></td>
2453
2466
  </tr>
2454
2467
 
2455
2468
 
@@ -2490,7 +2503,7 @@ how the data should be transformed.</p>
2490
2503
 
2491
2504
  <dt class="tag-source">Source:</dt>
2492
2505
  <dd class="tag-source"><ul class="dummy"><li>
2493
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line492">line 492</a>
2506
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line35">line 35</a>
2494
2507
  </li></ul></dd>
2495
2508
 
2496
2509
 
@@ -2519,7 +2532,7 @@ how the data should be transformed.</p>
2519
2532
 
2520
2533
 
2521
2534
  <div class="param-desc">
2522
- <p>field value</p>
2535
+ <p>extracted, simple name</p>
2523
2536
  </div>
2524
2537
 
2525
2538
 
@@ -2544,32 +2557,33 @@ how the data should be transformed.</p>
2544
2557
 
2545
2558
 
2546
2559
 
2547
- <h4 class="name" id=".TransformConfig">TransformConfig</h4>
2548
2560
 
2561
+
2549
2562
 
2563
+
2564
+ <h4 class="name" id=".stringFieldOfDescribedEntryFunction"><span class="type-signature"></span>stringFieldOfDescribedEntryFunction<span class="signature">(entry)</span><span class="type-signature"> &rarr; {String}</span></h4>
2565
+
2550
2566
 
2567
+
2551
2568
 
2552
2569
 
2553
2570
 
2554
- <h5>Type:</h5>
2555
- <ul>
2556
- <li>
2557
-
2558
- <span class="param-type">Object</span>
2571
+ <div class="description">
2572
+ <p>Returns a field value of the given <a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a>.</p>
2573
+ </div>
2559
2574
 
2560
2575
 
2561
- </li>
2562
- </ul>
2563
2576
 
2564
2577
 
2565
2578
 
2566
2579
 
2567
2580
 
2568
- <h5 class="subsection-title">Properties:</h5>
2569
2581
 
2582
+
2583
+ <h5>Parameters:</h5>
2570
2584
 
2571
2585
 
2572
- <table class="props">
2586
+ <table class="params">
2573
2587
  <thead>
2574
2588
  <tr>
2575
2589
 
@@ -2579,12 +2593,8 @@ how the data should be transformed.</p>
2579
2593
  <th>Type</th>
2580
2594
 
2581
2595
 
2582
- <th>Attributes</th>
2583
-
2584
2596
 
2585
2597
 
2586
- <th>Default</th>
2587
-
2588
2598
 
2589
2599
  <th class="last">Description</th>
2590
2600
  </tr>
@@ -2595,107 +2605,23 @@ how the data should be transformed.</p>
2595
2605
 
2596
2606
  <tr>
2597
2607
 
2598
- <td class="name"><code>debugMode</code></td>
2599
-
2600
-
2601
- <td class="type">
2602
-
2603
-
2604
- <span class="param-type">boolean</span>
2605
-
2606
-
2607
-
2608
- </td>
2609
-
2610
-
2611
- <td class="attributes">
2612
-
2613
-
2614
-
2615
- </td>
2616
-
2617
-
2618
-
2619
- <td class="default">
2620
-
2621
- </td>
2622
-
2623
-
2624
- <td class="description last"><p>enables/disables detailed logging</p></td>
2625
- </tr>
2626
-
2627
-
2628
-
2629
- <tr>
2630
-
2631
- <td class="name"><code>maxRecursionDepth</code></td>
2632
-
2633
-
2634
- <td class="type">
2635
-
2636
-
2637
- <span class="param-type">number</span>
2638
-
2639
-
2640
-
2641
- </td>
2642
-
2643
-
2644
- <td class="attributes">
2645
-
2646
- &lt;optional><br>
2647
-
2648
-
2649
-
2650
- </td>
2651
-
2652
-
2653
-
2654
- <td class="default">
2655
-
2656
- 8
2657
-
2658
- </td>
2659
-
2660
-
2661
- <td class="description last"><p>Maximum recursion depth</p></td>
2662
- </tr>
2663
-
2664
-
2665
-
2666
- <tr>
2667
-
2668
- <td class="name"><code>removeDuplicationAboveRecursionDepth</code></td>
2608
+ <td class="name"><code>entry</code></td>
2669
2609
 
2670
2610
 
2671
2611
  <td class="type">
2672
2612
 
2673
2613
 
2674
- <span class="param-type">number</span>
2614
+ <span class="param-type"><a href="module-datarestructor.html#.DescribedEntry">module:datarestructor.DescribedEntry</a></span>
2675
2615
 
2676
2616
 
2677
2617
 
2678
2618
  </td>
2679
2619
 
2680
2620
 
2681
- <td class="attributes">
2682
-
2683
- &lt;optional><br>
2684
-
2685
-
2686
-
2687
- </td>
2688
-
2689
2621
 
2690
2622
 
2691
- <td class="default">
2692
-
2693
- 1
2694
-
2695
- </td>
2696
-
2697
2623
 
2698
- <td class="description last"><p>Duplications will be removed above the given recursion depth value and remain unchanged below it.</p></td>
2624
+ <td class="description last"><p>described entry that contains the field that should be returned</p></td>
2699
2625
  </tr>
2700
2626
 
2701
2627
 
@@ -2705,6 +2631,8 @@ how the data should be transformed.</p>
2705
2631
 
2706
2632
 
2707
2633
 
2634
+
2635
+
2708
2636
  <dl class="details">
2709
2637
 
2710
2638
 
@@ -2734,7 +2662,7 @@ how the data should be transformed.</p>
2734
2662
 
2735
2663
  <dt class="tag-source">Source:</dt>
2736
2664
  <dd class="tag-source"><ul class="dummy"><li>
2737
- <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line628">line 628</a>
2665
+ <a href="datarestructor.js.html">datarestructor.js</a>, <a href="datarestructor.js.html#line492">line 492</a>
2738
2666
  </li></ul></dd>
2739
2667
 
2740
2668
 
@@ -2750,6 +2678,42 @@ how the data should be transformed.</p>
2750
2678
 
2751
2679
 
2752
2680
 
2681
+
2682
+
2683
+
2684
+
2685
+
2686
+
2687
+
2688
+
2689
+
2690
+ <h5>Returns:</h5>
2691
+
2692
+
2693
+ <div class="param-desc">
2694
+ <p>field value</p>
2695
+ </div>
2696
+
2697
+
2698
+
2699
+ <dl>
2700
+ <dt>
2701
+ Type
2702
+ </dt>
2703
+ <dd>
2704
+
2705
+ <span class="param-type">String</span>
2706
+
2707
+
2708
+ </dd>
2709
+ </dl>
2710
+
2711
+
2712
+
2713
+
2714
+
2715
+
2716
+
2753
2717
 
2754
2718
 
2755
2719
 
@@ -2770,7 +2734,7 @@ how the data should be transformed.</p>
2770
2734
  <br class="clear">
2771
2735
 
2772
2736
  <footer>
2773
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jun 17 2021 07:24:00 GMT+0200 (Central European Summer Time)
2737
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Feb 28 2023 21:27:12 GMT+0100 (Central European Standard Time)
2774
2738
  </footer>
2775
2739
 
2776
2740
  <script> prettyPrint(); </script>