@atomoz/workflows-nodes 0.1.17 → 0.1.18

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/dist/index.cjs CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -492,6 +491,65 @@ var CronTriggerNode = {
492
491
  ]
493
492
  };
494
493
 
494
+ // src/nodes/processors/delay/index.ts
495
+ var DelayNode = {
496
+ label: "Delay",
497
+ type: "DelayNode",
498
+ category: "step",
499
+ icon: "\u23F3",
500
+ description: "Pausa o workflow por um tempo determinado",
501
+ tags: {
502
+ execution: "async",
503
+ group: "Control"
504
+ },
505
+ fields: [
506
+ {
507
+ id: "input",
508
+ label: "Trigger",
509
+ type: "any",
510
+ required: false,
511
+ handle: {
512
+ type: "input",
513
+ label: "Start",
514
+ name: "trigger",
515
+ fieldType: "any"
516
+ }
517
+ },
518
+ {
519
+ id: "duration",
520
+ label: "Dura\xE7\xE3o",
521
+ type: "number",
522
+ required: true,
523
+ defaultValue: 1
524
+ },
525
+ {
526
+ id: "unit",
527
+ label: "Unidade",
528
+ type: "select",
529
+ defaultValue: "minutes",
530
+ required: true,
531
+ options: [
532
+ { label: "Segundos", value: "seconds" },
533
+ { label: "Minutos", value: "minutes" },
534
+ { label: "Horas", value: "hours" },
535
+ { label: "Dias", value: "days" }
536
+ ]
537
+ },
538
+ {
539
+ id: "output",
540
+ label: "Continue",
541
+ type: "any",
542
+ required: false,
543
+ handle: {
544
+ type: "output",
545
+ label: "Continue",
546
+ name: "continue",
547
+ fieldType: "any"
548
+ }
549
+ }
550
+ ]
551
+ };
552
+
495
553
  // src/nodes/processors/concat.ts
496
554
  var import_zod4 = require("zod");
497
555
  var ConcatNodeFunction = (params) => {
@@ -1821,6 +1879,7 @@ var nodes = [
1821
1879
  ChatInputNode,
1822
1880
  ManualTriggerNode,
1823
1881
  CronTriggerNode,
1882
+ DelayNode,
1824
1883
  HttpGetInputNode,
1825
1884
  // HttpPostInputNode,
1826
1885
  // TransformNode,
package/dist/index.js CHANGED
@@ -401,6 +401,65 @@ var CronTriggerNode = {
401
401
  ]
402
402
  };
403
403
 
404
+ // src/nodes/processors/delay/index.ts
405
+ var DelayNode = {
406
+ label: "Delay",
407
+ type: "DelayNode",
408
+ category: "step",
409
+ icon: "\u23F3",
410
+ description: "Pausa o workflow por um tempo determinado",
411
+ tags: {
412
+ execution: "async",
413
+ group: "Control"
414
+ },
415
+ fields: [
416
+ {
417
+ id: "input",
418
+ label: "Trigger",
419
+ type: "any",
420
+ required: false,
421
+ handle: {
422
+ type: "input",
423
+ label: "Start",
424
+ name: "trigger",
425
+ fieldType: "any"
426
+ }
427
+ },
428
+ {
429
+ id: "duration",
430
+ label: "Dura\xE7\xE3o",
431
+ type: "number",
432
+ required: true,
433
+ defaultValue: 1
434
+ },
435
+ {
436
+ id: "unit",
437
+ label: "Unidade",
438
+ type: "select",
439
+ defaultValue: "minutes",
440
+ required: true,
441
+ options: [
442
+ { label: "Segundos", value: "seconds" },
443
+ { label: "Minutos", value: "minutes" },
444
+ { label: "Horas", value: "hours" },
445
+ { label: "Dias", value: "days" }
446
+ ]
447
+ },
448
+ {
449
+ id: "output",
450
+ label: "Continue",
451
+ type: "any",
452
+ required: false,
453
+ handle: {
454
+ type: "output",
455
+ label: "Continue",
456
+ name: "continue",
457
+ fieldType: "any"
458
+ }
459
+ }
460
+ ]
461
+ };
462
+
404
463
  // src/nodes/processors/concat.ts
405
464
  import { z as z4 } from "zod";
406
465
  var ConcatNodeFunction = (params) => {
@@ -1730,6 +1789,7 @@ var nodes = [
1730
1789
  ChatInputNode,
1731
1790
  ManualTriggerNode,
1732
1791
  CronTriggerNode,
1792
+ DelayNode,
1733
1793
  HttpGetInputNode,
1734
1794
  // HttpPostInputNode,
1735
1795
  // TransformNode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomoz/workflows-nodes",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Atomoz Workflows - Node Library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",