@docbrasil/api-systemmanager 1.0.112 → 1.0.114
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/api/user/process.js +94 -0
- package/dist/bundle.cjs +94 -0
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +107 -0
- package/docs/AdminUser.html +420 -0
- package/docs/Process.html +1591 -216
- package/docs/admin_user.js.html +65 -3
- package/docs/user_process.js.html +209 -0
- package/package.json +1 -1
package/docs/Process.html
CHANGED
|
@@ -224,6 +224,820 @@
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
|
|
227
|
+
<h4 class="name" id="downloadDocs">
|
|
228
|
+
<a class="href-link" href="#downloadDocs">#</a>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<span class='tag'>async</span>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<span class="code-name">
|
|
235
|
+
|
|
236
|
+
downloadDocs<span class="signature">(params, session)</span><span class="type-signature"> → {promise}</span>
|
|
237
|
+
|
|
238
|
+
</span>
|
|
239
|
+
</h4>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
<div class="description">
|
|
245
|
+
Method to download the process documents
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<h5>Parameters:</h5>
|
|
258
|
+
|
|
259
|
+
<div class="table-container">
|
|
260
|
+
<table class="params table">
|
|
261
|
+
<thead>
|
|
262
|
+
<tr>
|
|
263
|
+
|
|
264
|
+
<th>Name</th>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<th>Type</th>
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
<th class="last">Description</th>
|
|
274
|
+
</tr>
|
|
275
|
+
</thead>
|
|
276
|
+
|
|
277
|
+
<tbody>
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
<tr class="deep-level-0">
|
|
282
|
+
|
|
283
|
+
<td class="name"><code>params</code></td>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
<td class="type">
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<code class="param-type">object</code>
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
</td>
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
<td class="description last">Params to download the process documents</td>
|
|
300
|
+
</tr>
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
<tr class="deep-level-1">
|
|
306
|
+
|
|
307
|
+
<td class="name"><code>orgId</code></td>
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
<td class="type">
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
<code class="param-type">string</code>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
</td>
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
<td class="description last">Organization id (_id database)</td>
|
|
324
|
+
</tr>
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
<tr class="deep-level-1">
|
|
329
|
+
|
|
330
|
+
<td class="name"><code>type</code></td>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<td class="type">
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
<code class="param-type">string</code>
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
</td>
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
<td class="description last">Document Type</td>
|
|
347
|
+
</tr>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<tr class="deep-level-1">
|
|
352
|
+
|
|
353
|
+
<td class="name"><code>docIds</code></td>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
<td class="type">
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
<code class="param-type">array</code>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
</td>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
<td class="description last">Documents Ids</td>
|
|
370
|
+
</tr>
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
<tr class="deep-level-1">
|
|
375
|
+
|
|
376
|
+
<td class="name"><code>footer</code></td>
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
<td class="type">
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
<code class="param-type">string</code>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
</td>
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
<td class="description last">Documents Footer</td>
|
|
393
|
+
</tr>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<tr class="deep-level-0">
|
|
402
|
+
|
|
403
|
+
<td class="name"><code>session</code></td>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
<td class="type">
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
<code class="param-type">string</code>
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
</td>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
<td class="description last">Session, token JWT</td>
|
|
420
|
+
</tr>
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
</tbody>
|
|
425
|
+
</table>
|
|
426
|
+
</div>
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
<dl class="details">
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
<dt class="tag-author">Author:</dt>
|
|
452
|
+
<dd class="tag-author">
|
|
453
|
+
<ul>
|
|
454
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
455
|
+
</ul>
|
|
456
|
+
</dd>
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
<p class="tag-source">
|
|
472
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
473
|
+
<span>
|
|
474
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line414">line 414</a>
|
|
475
|
+
</span>
|
|
476
|
+
</p>
|
|
477
|
+
|
|
478
|
+
</dl>
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
<div class='columns method-parameter'>
|
|
498
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
499
|
+
<div class="column is-10">
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
<div class="columns">
|
|
504
|
+
|
|
505
|
+
<div class='param-desc column is-7'>returned data from the search</div>
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
<div class='column is-5 has-text-left'>
|
|
509
|
+
<label>Type: </label>
|
|
510
|
+
|
|
511
|
+
<code class="param-type">promise</code>
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
</div>
|
|
515
|
+
|
|
516
|
+
</div>
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
</div>
|
|
520
|
+
</div>
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
<h5>Example</h5>
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
529
|
+
const api = new API();
|
|
530
|
+
const params = {
|
|
531
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
532
|
+
type: 'Docs',
|
|
533
|
+
docIds: ['55e4a3bd6be6b45210833fae'],
|
|
534
|
+
footer: 'Documento - {page} de {pages}'
|
|
535
|
+
};
|
|
536
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
537
|
+
const result = await api.user.process.downloadDocs(params, session);</code></pre>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
<div class="member">
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
<h4 class="name" id="exportProcessData">
|
|
548
|
+
<a class="href-link" href="#exportProcessData">#</a>
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
<span class='tag'>async</span>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
<span class="code-name">
|
|
555
|
+
|
|
556
|
+
exportProcessData<span class="signature">(params, session)</span><span class="type-signature"></span>
|
|
557
|
+
|
|
558
|
+
</span>
|
|
559
|
+
</h4>
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
<div class="description">
|
|
565
|
+
Method to export process data
|
|
566
|
+
</div>
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
<h5>Parameters:</h5>
|
|
578
|
+
|
|
579
|
+
<div class="table-container">
|
|
580
|
+
<table class="params table">
|
|
581
|
+
<thead>
|
|
582
|
+
<tr>
|
|
583
|
+
|
|
584
|
+
<th>Name</th>
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
<th>Type</th>
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
<th class="last">Description</th>
|
|
594
|
+
</tr>
|
|
595
|
+
</thead>
|
|
596
|
+
|
|
597
|
+
<tbody>
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
<tr class="deep-level-0">
|
|
602
|
+
|
|
603
|
+
<td class="name"><code>params</code></td>
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
<td class="type">
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
<code class="param-type">object</code>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
</td>
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
<td class="description last">Params to export process data</td>
|
|
620
|
+
</tr>
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
<tr class="deep-level-1">
|
|
626
|
+
|
|
627
|
+
<td class="name"><code>query</code></td>
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
<td class="type">
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
<code class="param-type">object</code>
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
</td>
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
<td class="description last">Search process query</td>
|
|
644
|
+
</tr>
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
<tr class="deep-level-1">
|
|
649
|
+
|
|
650
|
+
<td class="name"><code>orgId</code></td>
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
<td class="type">
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
<code class="param-type">object</code>
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
</td>
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
<td class="description last">Organization id (_id database)</td>
|
|
667
|
+
</tr>
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
<tr class="deep-level-0">
|
|
676
|
+
|
|
677
|
+
<td class="name"><code>session</code></td>
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
<td class="type">
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
<code class="param-type">string</code>
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
</td>
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
<td class="description last">Session, token JWT</td>
|
|
694
|
+
</tr>
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
</tbody>
|
|
699
|
+
</table>
|
|
700
|
+
</div>
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
<dl class="details">
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
<dt class="tag-author">Author:</dt>
|
|
726
|
+
<dd class="tag-author">
|
|
727
|
+
<ul>
|
|
728
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
729
|
+
</ul>
|
|
730
|
+
</dd>
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
<p class="tag-source">
|
|
746
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
747
|
+
<span>
|
|
748
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line329">line 329</a>
|
|
749
|
+
</span>
|
|
750
|
+
</p>
|
|
751
|
+
|
|
752
|
+
</dl>
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
<h5>Example</h5>
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
778
|
+
const api = new API();
|
|
779
|
+
const params = {
|
|
780
|
+
query: {"orgProcessId": {"value":"62c2d1cdfb5455c195d1baa1","oper":"=","type":"string"},"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20},
|
|
781
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
782
|
+
};
|
|
783
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
784
|
+
const retSearch = await api.user.process.exportProcessData(params, session);</code></pre>
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
</div>
|
|
789
|
+
|
|
790
|
+
<div class="member">
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
<h4 class="name" id="exportStatusData">
|
|
795
|
+
<a class="href-link" href="#exportStatusData">#</a>
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
<span class='tag'>async</span>
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
<span class="code-name">
|
|
802
|
+
|
|
803
|
+
exportStatusData<span class="signature">(params, session)</span><span class="type-signature"></span>
|
|
804
|
+
|
|
805
|
+
</span>
|
|
806
|
+
</h4>
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
<div class="description">
|
|
812
|
+
Method to export status data
|
|
813
|
+
</div>
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
<h5>Parameters:</h5>
|
|
825
|
+
|
|
826
|
+
<div class="table-container">
|
|
827
|
+
<table class="params table">
|
|
828
|
+
<thead>
|
|
829
|
+
<tr>
|
|
830
|
+
|
|
831
|
+
<th>Name</th>
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
<th>Type</th>
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
<th class="last">Description</th>
|
|
841
|
+
</tr>
|
|
842
|
+
</thead>
|
|
843
|
+
|
|
844
|
+
<tbody>
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
<tr class="deep-level-0">
|
|
849
|
+
|
|
850
|
+
<td class="name"><code>params</code></td>
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
<td class="type">
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
<code class="param-type">object</code>
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
</td>
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
<td class="description last">Params to export status data</td>
|
|
867
|
+
</tr>
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
<tr class="deep-level-1">
|
|
873
|
+
|
|
874
|
+
<td class="name"><code>query</code></td>
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
<td class="type">
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
<code class="param-type">object</code>
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
</td>
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
<td class="description last">Search process query</td>
|
|
891
|
+
</tr>
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
<tr class="deep-level-1">
|
|
896
|
+
|
|
897
|
+
<td class="name"><code>orgId</code></td>
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
<td class="type">
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
<code class="param-type">object</code>
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
</td>
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
<td class="description last">Organization id (_id database)</td>
|
|
914
|
+
</tr>
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
<tr class="deep-level-0">
|
|
923
|
+
|
|
924
|
+
<td class="name"><code>session</code></td>
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
<td class="type">
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
<code class="param-type">string</code>
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
</td>
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
<td class="description last">Session, token JWT</td>
|
|
941
|
+
</tr>
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
</tbody>
|
|
946
|
+
</table>
|
|
947
|
+
</div>
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
<dl class="details">
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
<dt class="tag-author">Author:</dt>
|
|
973
|
+
<dd class="tag-author">
|
|
974
|
+
<ul>
|
|
975
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
976
|
+
</ul>
|
|
977
|
+
</dd>
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
<p class="tag-source">
|
|
993
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
994
|
+
<span>
|
|
995
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line290">line 290</a>
|
|
996
|
+
</span>
|
|
997
|
+
</p>
|
|
998
|
+
|
|
999
|
+
</dl>
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
<h5>Example</h5>
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1025
|
+
const api = new API();
|
|
1026
|
+
const params = {
|
|
1027
|
+
query: {"orgProcessId": {"value":"62c2d1cdfb5455c195d1baa1","oper":"=","type":"string"},"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20},
|
|
1028
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
1029
|
+
};
|
|
1030
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1031
|
+
const retSearch = await api.user.process.exportStatusData(params, session);</code></pre>
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
</div>
|
|
1036
|
+
|
|
1037
|
+
<div class="member">
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
227
1041
|
<h4 class="name" id="find">
|
|
228
1042
|
<a class="href-link" href="#find">#</a>
|
|
229
1043
|
|
|
@@ -233,7 +1047,714 @@
|
|
|
233
1047
|
|
|
234
1048
|
<span class="code-name">
|
|
235
1049
|
|
|
236
|
-
find<span class="signature">(params, session)</span><span class="type-signature"> → {promise|number|array.<object>|number|number}</span>
|
|
1050
|
+
find<span class="signature">(params, session)</span><span class="type-signature"> → {promise|number|array.<object>|number|number}</span>
|
|
1051
|
+
|
|
1052
|
+
</span>
|
|
1053
|
+
</h4>
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
<div class="description">
|
|
1059
|
+
Method to search processes
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
<h5>Parameters:</h5>
|
|
1072
|
+
|
|
1073
|
+
<div class="table-container">
|
|
1074
|
+
<table class="params table">
|
|
1075
|
+
<thead>
|
|
1076
|
+
<tr>
|
|
1077
|
+
|
|
1078
|
+
<th>Name</th>
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
<th>Type</th>
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
<th class="last">Description</th>
|
|
1088
|
+
</tr>
|
|
1089
|
+
</thead>
|
|
1090
|
+
|
|
1091
|
+
<tbody>
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
<tr class="deep-level-0">
|
|
1096
|
+
|
|
1097
|
+
<td class="name"><code>params</code></td>
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
<td class="type">
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
<code class="param-type">object</code>
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
</td>
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
<td class="description last">Params to search processes</td>
|
|
1114
|
+
</tr>
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
<tr class="deep-level-1">
|
|
1120
|
+
|
|
1121
|
+
<td class="name"><code>query</code></td>
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
<td class="type">
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
<code class="param-type">object</code>
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
</td>
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
<td class="description last">Search process query</td>
|
|
1138
|
+
</tr>
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
<tr class="deep-level-1">
|
|
1143
|
+
|
|
1144
|
+
<td class="name"><code>orgId</code></td>
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
<td class="type">
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
<code class="param-type">object</code>
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
</td>
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
<td class="description last">Organization id (_id database)</td>
|
|
1161
|
+
</tr>
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
<tr class="deep-level-0">
|
|
1170
|
+
|
|
1171
|
+
<td class="name"><code>session</code></td>
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
<td class="type">
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
<code class="param-type">string</code>
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
</td>
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
<td class="description last">Session, token JWT</td>
|
|
1188
|
+
</tr>
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
</tbody>
|
|
1193
|
+
</table>
|
|
1194
|
+
</div>
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
<dl class="details">
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
<dt class="tag-author">Author:</dt>
|
|
1220
|
+
<dd class="tag-author">
|
|
1221
|
+
<ul>
|
|
1222
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1223
|
+
</ul>
|
|
1224
|
+
</dd>
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
<p class="tag-source">
|
|
1240
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
1241
|
+
<span>
|
|
1242
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line214">line 214</a>
|
|
1243
|
+
</span>
|
|
1244
|
+
</p>
|
|
1245
|
+
|
|
1246
|
+
</dl>
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
<div class='columns method-parameter'>
|
|
1266
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1267
|
+
<div class="column is-10">
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
<div class="columns">
|
|
1272
|
+
|
|
1273
|
+
<div class='param-desc column is-7'>returned data from the search</div>
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
<div class='column is-5 has-text-left'>
|
|
1277
|
+
<label>Type: </label>
|
|
1278
|
+
|
|
1279
|
+
<code class="param-type">promise</code>
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
</div>
|
|
1283
|
+
|
|
1284
|
+
</div>
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
<div class="columns">
|
|
1290
|
+
|
|
1291
|
+
<div class='param-desc column is-7'>count the count of items searched</div>
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
<div class='column is-5 has-text-left'>
|
|
1295
|
+
<label>Type: </label>
|
|
1296
|
+
|
|
1297
|
+
<code class="param-type">number</code>
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
</div>
|
|
1301
|
+
|
|
1302
|
+
</div>
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
<div class="columns">
|
|
1308
|
+
|
|
1309
|
+
<div class='param-desc column is-7'>items the items returned from search</div>
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
<div class='column is-5 has-text-left'>
|
|
1313
|
+
<label>Type: </label>
|
|
1314
|
+
|
|
1315
|
+
<code class="param-type">array.<object></code>
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
</div>
|
|
1319
|
+
|
|
1320
|
+
</div>
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
<div class="columns">
|
|
1326
|
+
|
|
1327
|
+
<div class='param-desc column is-7'>page the page of the search (on pagination), zero indexed</div>
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
<div class='column is-5 has-text-left'>
|
|
1331
|
+
<label>Type: </label>
|
|
1332
|
+
|
|
1333
|
+
<code class="param-type">number</code>
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
</div>
|
|
1337
|
+
|
|
1338
|
+
</div>
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
<div class="columns">
|
|
1344
|
+
|
|
1345
|
+
<div class='param-desc column is-7'>perPage how many items per page</div>
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
<div class='column is-5 has-text-left'>
|
|
1349
|
+
<label>Type: </label>
|
|
1350
|
+
|
|
1351
|
+
<code class="param-type">number</code>
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
</div>
|
|
1355
|
+
|
|
1356
|
+
</div>
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
</div>
|
|
1360
|
+
</div>
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
<h5>Example</h5>
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1369
|
+
const api = new API();
|
|
1370
|
+
const params = {
|
|
1371
|
+
query: {"orgProcessId": {"value":"62c2d1cdfb5455c195d1baa1","oper":"=","type":"string"},"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20},
|
|
1372
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
1373
|
+
};
|
|
1374
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1375
|
+
const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
</div>
|
|
1380
|
+
|
|
1381
|
+
<div class="member">
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
<h4 class="name" id="getOrgProcessSearchInfo">
|
|
1386
|
+
<a class="href-link" href="#getOrgProcessSearchInfo">#</a>
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
<span class='tag'>async</span>
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
<span class="code-name">
|
|
1393
|
+
|
|
1394
|
+
getOrgProcessSearchInfo<span class="signature">(params, session)</span><span class="type-signature"> → {Promise|string|object|object|object|string}</span>
|
|
1395
|
+
|
|
1396
|
+
</span>
|
|
1397
|
+
</h4>
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
<div class="description">
|
|
1403
|
+
Get the search info of a organization process
|
|
1404
|
+
</div>
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
<h5>Parameters:</h5>
|
|
1416
|
+
|
|
1417
|
+
<div class="table-container">
|
|
1418
|
+
<table class="params table">
|
|
1419
|
+
<thead>
|
|
1420
|
+
<tr>
|
|
1421
|
+
|
|
1422
|
+
<th>Name</th>
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
<th>Type</th>
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
<th class="last">Description</th>
|
|
1432
|
+
</tr>
|
|
1433
|
+
</thead>
|
|
1434
|
+
|
|
1435
|
+
<tbody>
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
<tr class="deep-level-0">
|
|
1440
|
+
|
|
1441
|
+
<td class="name"><code>params</code></td>
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
<td class="type">
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
<code class="param-type">object</code>
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
</td>
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
<td class="description last">Params to get search info</td>
|
|
1458
|
+
</tr>
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
<tr class="deep-level-1">
|
|
1464
|
+
|
|
1465
|
+
<td class="name"><code>orgProcessId</code></td>
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
<td class="type">
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
<code class="param-type">string</code>
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
</td>
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
<td class="description last">The id of an organization process (_id database);</td>
|
|
1482
|
+
</tr>
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
<tr class="deep-level-1">
|
|
1487
|
+
|
|
1488
|
+
<td class="name"><code>orgId</code></td>
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
<td class="type">
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
<code class="param-type">string</code>
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
</td>
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
<td class="description last">Organization id (_id database);</td>
|
|
1505
|
+
</tr>
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
<tr class="deep-level-0">
|
|
1514
|
+
|
|
1515
|
+
<td class="name"><code>session</code></td>
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
<td class="type">
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
<code class="param-type">string</code>
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
</td>
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
<td class="description last">Session, token JWT</td>
|
|
1532
|
+
</tr>
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
</tbody>
|
|
1537
|
+
</table>
|
|
1538
|
+
</div>
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
<dl class="details">
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
<dt class="tag-author">Author:</dt>
|
|
1564
|
+
<dd class="tag-author">
|
|
1565
|
+
<ul>
|
|
1566
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1567
|
+
</ul>
|
|
1568
|
+
</dd>
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
<p class="tag-source">
|
|
1584
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
1585
|
+
<span>
|
|
1586
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line173">line 173</a>
|
|
1587
|
+
</span>
|
|
1588
|
+
</p>
|
|
1589
|
+
|
|
1590
|
+
</dl>
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
<div class='columns method-parameter'>
|
|
1610
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1611
|
+
<div class="column is-10">
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
<div class="columns">
|
|
1616
|
+
|
|
1617
|
+
<div class='param-desc column is-7'>the search info result</div>
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
<div class='column is-5 has-text-left'>
|
|
1621
|
+
<label>Type: </label>
|
|
1622
|
+
|
|
1623
|
+
<code class="param-type">Promise</code>
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
</div>
|
|
1627
|
+
|
|
1628
|
+
</div>
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
<div class="columns">
|
|
1634
|
+
|
|
1635
|
+
<div class='param-desc column is-7'>name the name of the organization process</div>
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
<div class='column is-5 has-text-left'>
|
|
1639
|
+
<label>Type: </label>
|
|
1640
|
+
|
|
1641
|
+
<code class="param-type">string</code>
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
</div>
|
|
1645
|
+
|
|
1646
|
+
</div>
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
<div class="columns">
|
|
1652
|
+
|
|
1653
|
+
<div class='param-desc column is-7'>processIndexFields the list of fields to index</div>
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
<div class='column is-5 has-text-left'>
|
|
1657
|
+
<label>Type: </label>
|
|
1658
|
+
|
|
1659
|
+
<code class="param-type">object</code>
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
</div>
|
|
1663
|
+
|
|
1664
|
+
</div>
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
<div class="columns">
|
|
1670
|
+
|
|
1671
|
+
<div class='param-desc column is-7'>processParticipantsGroup the permissions in this organization process</div>
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
<div class='column is-5 has-text-left'>
|
|
1675
|
+
<label>Type: </label>
|
|
1676
|
+
|
|
1677
|
+
<code class="param-type">object</code>
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
</div>
|
|
1681
|
+
|
|
1682
|
+
</div>
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
<div class="columns">
|
|
1688
|
+
|
|
1689
|
+
<div class='param-desc column is-7'>stepsProperties the organization process steps properties</div>
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
<div class='column is-5 has-text-left'>
|
|
1693
|
+
<label>Type: </label>
|
|
1694
|
+
|
|
1695
|
+
<code class="param-type">object</code>
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
</div>
|
|
1699
|
+
|
|
1700
|
+
</div>
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
<div class="columns">
|
|
1706
|
+
|
|
1707
|
+
<div class='param-desc column is-7'>_id the same organization id
|
|
1708
|
+
@</div>
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
<div class='column is-5 has-text-left'>
|
|
1712
|
+
<label>Type: </label>
|
|
1713
|
+
|
|
1714
|
+
<code class="param-type">string</code>
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
</div>
|
|
1718
|
+
|
|
1719
|
+
</div>
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
</div>
|
|
1723
|
+
</div>
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
<h5>Example</h5>
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1732
|
+
const api = new API();
|
|
1733
|
+
const params = {
|
|
1734
|
+
orgProcessId: '5dadd01dc4af3941d42f8c67',
|
|
1735
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
1736
|
+
}
|
|
1737
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1738
|
+
const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, session);</code></pre>
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
</div>
|
|
1743
|
+
|
|
1744
|
+
<div class="member">
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
<h4 class="name" id="getProcessProperties">
|
|
1749
|
+
<a class="href-link" href="#getProcessProperties">#</a>
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
<span class='tag'>async</span>
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
<span class="code-name">
|
|
1756
|
+
|
|
1757
|
+
getProcessProperties<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
237
1758
|
|
|
238
1759
|
</span>
|
|
239
1760
|
</h4>
|
|
@@ -242,7 +1763,7 @@
|
|
|
242
1763
|
|
|
243
1764
|
|
|
244
1765
|
<div class="description">
|
|
245
|
-
|
|
1766
|
+
Get process properties of process
|
|
246
1767
|
</div>
|
|
247
1768
|
|
|
248
1769
|
|
|
@@ -296,7 +1817,7 @@
|
|
|
296
1817
|
|
|
297
1818
|
|
|
298
1819
|
|
|
299
|
-
<td class="description last">Params to
|
|
1820
|
+
<td class="description last">Params to get process properties</td>
|
|
300
1821
|
</tr>
|
|
301
1822
|
|
|
302
1823
|
|
|
@@ -304,13 +1825,13 @@
|
|
|
304
1825
|
|
|
305
1826
|
<tr class="deep-level-1">
|
|
306
1827
|
|
|
307
|
-
<td class="name"><code>
|
|
1828
|
+
<td class="name"><code>processId</code></td>
|
|
308
1829
|
|
|
309
1830
|
|
|
310
1831
|
<td class="type">
|
|
311
1832
|
|
|
312
1833
|
|
|
313
|
-
<code class="param-type">
|
|
1834
|
+
<code class="param-type">string</code>
|
|
314
1835
|
|
|
315
1836
|
|
|
316
1837
|
|
|
@@ -320,7 +1841,7 @@
|
|
|
320
1841
|
|
|
321
1842
|
|
|
322
1843
|
|
|
323
|
-
<td class="description last">
|
|
1844
|
+
<td class="description last">Process id (_id database);</td>
|
|
324
1845
|
</tr>
|
|
325
1846
|
|
|
326
1847
|
|
|
@@ -333,7 +1854,7 @@
|
|
|
333
1854
|
<td class="type">
|
|
334
1855
|
|
|
335
1856
|
|
|
336
|
-
<code class="param-type">
|
|
1857
|
+
<code class="param-type">string</code>
|
|
337
1858
|
|
|
338
1859
|
|
|
339
1860
|
|
|
@@ -343,7 +1864,7 @@
|
|
|
343
1864
|
|
|
344
1865
|
|
|
345
1866
|
|
|
346
|
-
<td class="description last">Organization id (_id database)
|
|
1867
|
+
<td class="description last">Organization id (_id database);</td>
|
|
347
1868
|
</tr>
|
|
348
1869
|
|
|
349
1870
|
|
|
@@ -425,7 +1946,7 @@
|
|
|
425
1946
|
<p class="tag-source">
|
|
426
1947
|
<a href="user_process.js.html" class="button">View Source</a>
|
|
427
1948
|
<span>
|
|
428
|
-
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#
|
|
1949
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line129">line 129</a>
|
|
429
1950
|
</span>
|
|
430
1951
|
</p>
|
|
431
1952
|
|
|
@@ -456,85 +1977,11 @@
|
|
|
456
1977
|
|
|
457
1978
|
<div class="columns">
|
|
458
1979
|
|
|
459
|
-
<div class='param-desc column is-7'>returned data from the search</div>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
<div class='column is-5 has-text-left'>
|
|
463
|
-
<label>Type: </label>
|
|
464
|
-
|
|
465
|
-
<code class="param-type">promise</code>
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
</div>
|
|
469
|
-
|
|
470
|
-
</div>
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
<div class="columns">
|
|
476
|
-
|
|
477
|
-
<div class='param-desc column is-7'>count the count of items searched</div>
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
<div class='column is-5 has-text-left'>
|
|
481
|
-
<label>Type: </label>
|
|
482
|
-
|
|
483
|
-
<code class="param-type">number</code>
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
</div>
|
|
487
|
-
|
|
488
|
-
</div>
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
<div class="columns">
|
|
494
|
-
|
|
495
|
-
<div class='param-desc column is-7'>items the items returned from search</div>
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
<div class='column is-5 has-text-left'>
|
|
499
|
-
<label>Type: </label>
|
|
500
|
-
|
|
501
|
-
<code class="param-type">array.<object></code>
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
</div>
|
|
505
|
-
|
|
506
|
-
</div>
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
<div class="columns">
|
|
512
|
-
|
|
513
|
-
<div class='param-desc column is-7'>page the page of the search (on pagination), zero indexed</div>
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
<div class='column is-5 has-text-left'>
|
|
517
|
-
<label>Type: </label>
|
|
518
|
-
|
|
519
|
-
<code class="param-type">number</code>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
</div>
|
|
523
|
-
|
|
524
|
-
</div>
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
<div class="columns">
|
|
530
|
-
|
|
531
|
-
<div class='param-desc column is-7'>perPage how many items per page</div>
|
|
532
|
-
|
|
533
1980
|
|
|
534
1981
|
<div class='column is-5 has-text-left'>
|
|
535
1982
|
<label>Type: </label>
|
|
536
1983
|
|
|
537
|
-
<code class="param-type">
|
|
1984
|
+
<code class="param-type">Promise</code>
|
|
538
1985
|
|
|
539
1986
|
|
|
540
1987
|
</div>
|
|
@@ -554,11 +2001,11 @@
|
|
|
554
2001
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
555
2002
|
const api = new API();
|
|
556
2003
|
const params = {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
2004
|
+
processId: '5dadd01dc4af3941d42f8c5c',
|
|
2005
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
2006
|
+
}
|
|
560
2007
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
561
|
-
|
|
2008
|
+
await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
562
2009
|
|
|
563
2010
|
|
|
564
2011
|
|
|
@@ -568,8 +2015,8 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
568
2015
|
|
|
569
2016
|
|
|
570
2017
|
|
|
571
|
-
<h4 class="name" id="
|
|
572
|
-
<a class="href-link" href="#
|
|
2018
|
+
<h4 class="name" id="processDocs">
|
|
2019
|
+
<a class="href-link" href="#processDocs">#</a>
|
|
573
2020
|
|
|
574
2021
|
|
|
575
2022
|
<span class='tag'>async</span>
|
|
@@ -577,7 +2024,7 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
577
2024
|
|
|
578
2025
|
<span class="code-name">
|
|
579
2026
|
|
|
580
|
-
|
|
2027
|
+
processDocs<span class="signature">(params, session)</span><span class="type-signature"> → {promise|array.<object>}</span>
|
|
581
2028
|
|
|
582
2029
|
</span>
|
|
583
2030
|
</h4>
|
|
@@ -586,7 +2033,7 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
586
2033
|
|
|
587
2034
|
|
|
588
2035
|
<div class="description">
|
|
589
|
-
|
|
2036
|
+
Method to get Process Docs
|
|
590
2037
|
</div>
|
|
591
2038
|
|
|
592
2039
|
|
|
@@ -640,7 +2087,7 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
640
2087
|
|
|
641
2088
|
|
|
642
2089
|
|
|
643
|
-
<td class="description last">Params to get
|
|
2090
|
+
<td class="description last">Params to get process docs</td>
|
|
644
2091
|
</tr>
|
|
645
2092
|
|
|
646
2093
|
|
|
@@ -664,7 +2111,30 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
664
2111
|
|
|
665
2112
|
|
|
666
2113
|
|
|
667
|
-
<td class="description last">
|
|
2114
|
+
<td class="description last">Organization Process Id</td>
|
|
2115
|
+
</tr>
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
<tr class="deep-level-1">
|
|
2120
|
+
|
|
2121
|
+
<td class="name"><code>processId</code></td>
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
<td class="type">
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
<code class="param-type">string</code>
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
</td>
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
<td class="description last">Process Id</td>
|
|
668
2138
|
</tr>
|
|
669
2139
|
|
|
670
2140
|
|
|
@@ -687,7 +2157,7 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
687
2157
|
|
|
688
2158
|
|
|
689
2159
|
|
|
690
|
-
<td class="description last">Organization id (_id database)
|
|
2160
|
+
<td class="description last">Organization id (_id database)</td>
|
|
691
2161
|
</tr>
|
|
692
2162
|
|
|
693
2163
|
|
|
@@ -769,7 +2239,7 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
769
2239
|
<p class="tag-source">
|
|
770
2240
|
<a href="user_process.js.html" class="button">View Source</a>
|
|
771
2241
|
<span>
|
|
772
|
-
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#
|
|
2242
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line372">line 372</a>
|
|
773
2243
|
</span>
|
|
774
2244
|
</p>
|
|
775
2245
|
|
|
@@ -800,85 +2270,13 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
800
2270
|
|
|
801
2271
|
<div class="columns">
|
|
802
2272
|
|
|
803
|
-
<div class='param-desc column is-7'>the
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
<div class='column is-5 has-text-left'>
|
|
807
|
-
<label>Type: </label>
|
|
808
|
-
|
|
809
|
-
<code class="param-type">Promise</code>
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
</div>
|
|
813
|
-
|
|
814
|
-
</div>
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
<div class="columns">
|
|
820
|
-
|
|
821
|
-
<div class='param-desc column is-7'>name the name of the organization process</div>
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
<div class='column is-5 has-text-left'>
|
|
825
|
-
<label>Type: </label>
|
|
826
|
-
|
|
827
|
-
<code class="param-type">string</code>
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
</div>
|
|
831
|
-
|
|
832
|
-
</div>
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
<div class="columns">
|
|
838
|
-
|
|
839
|
-
<div class='param-desc column is-7'>processIndexFields the list of fields to index</div>
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
<div class='column is-5 has-text-left'>
|
|
843
|
-
<label>Type: </label>
|
|
844
|
-
|
|
845
|
-
<code class="param-type">object</code>
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
</div>
|
|
849
|
-
|
|
850
|
-
</div>
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
<div class="columns">
|
|
856
|
-
|
|
857
|
-
<div class='param-desc column is-7'>processParticipantsGroup the permissions in this organization process</div>
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
<div class='column is-5 has-text-left'>
|
|
861
|
-
<label>Type: </label>
|
|
862
|
-
|
|
863
|
-
<code class="param-type">object</code>
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
</div>
|
|
867
|
-
|
|
868
|
-
</div>
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
<div class="columns">
|
|
874
|
-
|
|
875
|
-
<div class='param-desc column is-7'>stepsProperties the organization process steps properties</div>
|
|
2273
|
+
<div class='param-desc column is-7'>returned data from the get process docs</div>
|
|
876
2274
|
|
|
877
2275
|
|
|
878
2276
|
<div class='column is-5 has-text-left'>
|
|
879
2277
|
<label>Type: </label>
|
|
880
2278
|
|
|
881
|
-
<code class="param-type">
|
|
2279
|
+
<code class="param-type">promise</code>
|
|
882
2280
|
|
|
883
2281
|
|
|
884
2282
|
</div>
|
|
@@ -890,14 +2288,13 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
890
2288
|
|
|
891
2289
|
<div class="columns">
|
|
892
2290
|
|
|
893
|
-
<div class='param-desc column is-7'>
|
|
894
|
-
@</div>
|
|
2291
|
+
<div class='param-desc column is-7'>Docs returned from process</div>
|
|
895
2292
|
|
|
896
2293
|
|
|
897
2294
|
<div class='column is-5 has-text-left'>
|
|
898
2295
|
<label>Type: </label>
|
|
899
2296
|
|
|
900
|
-
<code class="param-type">
|
|
2297
|
+
<code class="param-type">array.<object></code>
|
|
901
2298
|
|
|
902
2299
|
|
|
903
2300
|
</div>
|
|
@@ -917,11 +2314,12 @@ const retSearch = await api.user.process.find(params, session);</code></pre>
|
|
|
917
2314
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
918
2315
|
const api = new API();
|
|
919
2316
|
const params = {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
2317
|
+
orgProcessId: '55e4a3bd6be6b45210833fae',
|
|
2318
|
+
processId: '55e4a3bd6be6b45210833fae',
|
|
2319
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
2320
|
+
};
|
|
923
2321
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
924
|
-
const
|
|
2322
|
+
const retSearch = await api.user.process.processDocs(params, session);</code></pre>
|
|
925
2323
|
|
|
926
2324
|
|
|
927
2325
|
|
|
@@ -931,8 +2329,8 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
931
2329
|
|
|
932
2330
|
|
|
933
2331
|
|
|
934
|
-
<h4 class="name" id="
|
|
935
|
-
<a class="href-link" href="#
|
|
2332
|
+
<h4 class="name" id="remove">
|
|
2333
|
+
<a class="href-link" href="#remove">#</a>
|
|
936
2334
|
|
|
937
2335
|
|
|
938
2336
|
<span class='tag'>async</span>
|
|
@@ -940,7 +2338,7 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
940
2338
|
|
|
941
2339
|
<span class="code-name">
|
|
942
2340
|
|
|
943
|
-
|
|
2341
|
+
remove<span class="signature">(params, session)</span><span class="type-signature"></span>
|
|
944
2342
|
|
|
945
2343
|
</span>
|
|
946
2344
|
</h4>
|
|
@@ -949,7 +2347,7 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
949
2347
|
|
|
950
2348
|
|
|
951
2349
|
<div class="description">
|
|
952
|
-
|
|
2350
|
+
Method to remove process
|
|
953
2351
|
</div>
|
|
954
2352
|
|
|
955
2353
|
|
|
@@ -1003,7 +2401,7 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1003
2401
|
|
|
1004
2402
|
|
|
1005
2403
|
|
|
1006
|
-
<td class="description last">Params to
|
|
2404
|
+
<td class="description last">Params to remove process</td>
|
|
1007
2405
|
</tr>
|
|
1008
2406
|
|
|
1009
2407
|
|
|
@@ -1011,13 +2409,13 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1011
2409
|
|
|
1012
2410
|
<tr class="deep-level-1">
|
|
1013
2411
|
|
|
1014
|
-
<td class="name"><code>
|
|
2412
|
+
<td class="name"><code>orgId</code></td>
|
|
1015
2413
|
|
|
1016
2414
|
|
|
1017
2415
|
<td class="type">
|
|
1018
2416
|
|
|
1019
2417
|
|
|
1020
|
-
<code class="param-type">
|
|
2418
|
+
<code class="param-type">object</code>
|
|
1021
2419
|
|
|
1022
2420
|
|
|
1023
2421
|
|
|
@@ -1027,20 +2425,20 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1027
2425
|
|
|
1028
2426
|
|
|
1029
2427
|
|
|
1030
|
-
<td class="description last">
|
|
2428
|
+
<td class="description last">Organization id (_id database)</td>
|
|
1031
2429
|
</tr>
|
|
1032
2430
|
|
|
1033
2431
|
|
|
1034
2432
|
|
|
1035
2433
|
<tr class="deep-level-1">
|
|
1036
2434
|
|
|
1037
|
-
<td class="name"><code>
|
|
2435
|
+
<td class="name"><code>processId</code></td>
|
|
1038
2436
|
|
|
1039
2437
|
|
|
1040
2438
|
<td class="type">
|
|
1041
2439
|
|
|
1042
2440
|
|
|
1043
|
-
<code class="param-type">
|
|
2441
|
+
<code class="param-type">object</code>
|
|
1044
2442
|
|
|
1045
2443
|
|
|
1046
2444
|
|
|
@@ -1050,7 +2448,7 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1050
2448
|
|
|
1051
2449
|
|
|
1052
2450
|
|
|
1053
|
-
<td class="description last">
|
|
2451
|
+
<td class="description last">Process id (_id database)</td>
|
|
1054
2452
|
</tr>
|
|
1055
2453
|
|
|
1056
2454
|
|
|
@@ -1132,7 +2530,7 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1132
2530
|
<p class="tag-source">
|
|
1133
2531
|
<a href="user_process.js.html" class="button">View Source</a>
|
|
1134
2532
|
<span>
|
|
1135
|
-
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#
|
|
2533
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line253">line 253</a>
|
|
1136
2534
|
</span>
|
|
1137
2535
|
</p>
|
|
1138
2536
|
|
|
@@ -1155,29 +2553,6 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1155
2553
|
|
|
1156
2554
|
|
|
1157
2555
|
|
|
1158
|
-
<div class='columns method-parameter'>
|
|
1159
|
-
<div class="column is-2"><label>Returns:</label></div>
|
|
1160
|
-
<div class="column is-10">
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
<div class="columns">
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
<div class='column is-5 has-text-left'>
|
|
1168
|
-
<label>Type: </label>
|
|
1169
|
-
|
|
1170
|
-
<code class="param-type">Promise</code>
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
</div>
|
|
1174
|
-
|
|
1175
|
-
</div>
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
</div>
|
|
1179
|
-
</div>
|
|
1180
|
-
|
|
1181
2556
|
|
|
1182
2557
|
|
|
1183
2558
|
|
|
@@ -1187,11 +2562,11 @@ const retSearchInfo = await api.user.process.getOrgProcessSearchInfo(params, ses
|
|
|
1187
2562
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1188
2563
|
const api = new API();
|
|
1189
2564
|
const params = {
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}
|
|
2565
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
2566
|
+
processId: '55e4a3bd6be6b45210833fae'
|
|
2567
|
+
};
|
|
1193
2568
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1194
|
-
await api.user.process.
|
|
2569
|
+
const retSearch = await api.user.process.remove(params, session);</code></pre>
|
|
1195
2570
|
|
|
1196
2571
|
|
|
1197
2572
|
|