n8n-nodes-eranol 0.2.1 → 0.2.3

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 (27) hide show
  1. package/dist/nodes/Eranol/resources/audio/denoise.js +43 -2
  2. package/dist/nodes/Eranol/resources/audio/highlights.js +43 -2
  3. package/dist/nodes/Eranol/resources/audio/removeSilence.js +43 -2
  4. package/dist/nodes/Eranol/resources/compose/composeVideo.js +43 -2
  5. package/dist/nodes/Eranol/resources/compose/concat.js +36 -1
  6. package/dist/nodes/Eranol/resources/compose/merge.js +50 -3
  7. package/dist/nodes/Eranol/resources/convert/audioToMp3.js +35 -0
  8. package/dist/nodes/Eranol/resources/convert/audioToWav.js +35 -0
  9. package/dist/nodes/Eranol/resources/convert/imageToJpg.js +35 -0
  10. package/dist/nodes/Eranol/resources/convert/imageToWebp.js +35 -0
  11. package/dist/nodes/Eranol/resources/convert/videoToMp4.js +35 -0
  12. package/dist/nodes/Eranol/resources/convert/videoToWebm.js +35 -0
  13. package/dist/nodes/Eranol/resources/image/generateImage.js +43 -2
  14. package/dist/nodes/Eranol/resources/notify/sendEmail.js +50 -3
  15. package/dist/nodes/Eranol/resources/video/addIntro.js +43 -2
  16. package/dist/nodes/Eranol/resources/video/addOutro.js +43 -2
  17. package/dist/nodes/Eranol/resources/video/caption.js +43 -2
  18. package/dist/nodes/Eranol/resources/video/extractAudio.js +43 -2
  19. package/dist/nodes/Eranol/resources/video/extractImages.js +57 -4
  20. package/dist/nodes/Eranol/resources/video/generateGif.js +57 -4
  21. package/dist/nodes/Eranol/resources/video/overlay.js +43 -2
  22. package/dist/nodes/Eranol/resources/video/progressBar.js +43 -2
  23. package/dist/nodes/Eranol/resources/video/reframe.js +57 -4
  24. package/dist/nodes/Eranol/resources/video/thumbnail.js +43 -2
  25. package/dist/nodes/Eranol/resources/video/trim.js +50 -3
  26. package/dist/nodes/Eranol/resources/video/watermark.js +50 -3
  27. package/package.json +1 -1
@@ -8,13 +8,48 @@ const displayOptions = {
8
8
  },
9
9
  };
10
10
  exports.denoiseDescription = [
11
+ {
12
+ displayName: 'Send as JSON',
13
+ name: 'useJsonBody',
14
+ type: 'boolean',
15
+ default: false,
16
+ displayOptions,
17
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
18
+ noDataExpression: true,
19
+ },
20
+ {
21
+ displayName: 'JSON Body',
22
+ name: 'jsonBody',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['audio'],
28
+ operation: ['denoise'],
29
+ useJsonBody: [true],
30
+ },
31
+ },
32
+ description: 'The JSON body to send with the request',
33
+ routing: {
34
+ send: {
35
+ type: 'body',
36
+ value: '={{JSON.parse($value)}}',
37
+ },
38
+ },
39
+ },
11
40
  {
12
41
  displayName: 'Audio URL',
13
42
  name: 'url',
14
43
  type: 'string',
15
44
  required: true,
16
45
  default: '',
17
- displayOptions,
46
+ displayOptions: {
47
+ show: {
48
+ resource: ['audio'],
49
+ operation: ['denoise'],
50
+ useJsonBody: [false],
51
+ },
52
+ },
18
53
  description: 'URL of the audio file to denoise',
19
54
  routing: {
20
55
  send: {
@@ -29,7 +64,13 @@ exports.denoiseDescription = [
29
64
  type: 'collection',
30
65
  placeholder: 'Add Field',
31
66
  default: {},
32
- displayOptions,
67
+ displayOptions: {
68
+ show: {
69
+ resource: ['audio'],
70
+ operation: ['denoise'],
71
+ useJsonBody: [false],
72
+ },
73
+ },
33
74
  options: [
34
75
  {
35
76
  displayName: 'Method',
@@ -8,13 +8,48 @@ const displayOptions = {
8
8
  },
9
9
  };
10
10
  exports.highlightsDescription = [
11
+ {
12
+ displayName: 'Send as JSON',
13
+ name: 'useJsonBody',
14
+ type: 'boolean',
15
+ default: false,
16
+ displayOptions,
17
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
18
+ noDataExpression: true,
19
+ },
20
+ {
21
+ displayName: 'JSON Body',
22
+ name: 'jsonBody',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['audio'],
28
+ operation: ['highlights'],
29
+ useJsonBody: [true],
30
+ },
31
+ },
32
+ description: 'The JSON body to send with the request',
33
+ routing: {
34
+ send: {
35
+ type: 'body',
36
+ value: '={{JSON.parse($value)}}',
37
+ },
38
+ },
39
+ },
11
40
  {
12
41
  displayName: 'Audio URL',
13
42
  name: 'url',
14
43
  type: 'string',
15
44
  required: true,
16
45
  default: '',
17
- displayOptions,
46
+ displayOptions: {
47
+ show: {
48
+ resource: ['audio'],
49
+ operation: ['highlights'],
50
+ useJsonBody: [false],
51
+ },
52
+ },
18
53
  description: 'URL of the audio file to extract highlights from',
19
54
  routing: {
20
55
  send: {
@@ -29,7 +64,13 @@ exports.highlightsDescription = [
29
64
  type: 'collection',
30
65
  placeholder: 'Add Field',
31
66
  default: {},
32
- displayOptions,
67
+ displayOptions: {
68
+ show: {
69
+ resource: ['audio'],
70
+ operation: ['highlights'],
71
+ useJsonBody: [false],
72
+ },
73
+ },
33
74
  options: [
34
75
  {
35
76
  displayName: 'Top N',
@@ -8,13 +8,48 @@ const displayOptions = {
8
8
  },
9
9
  };
10
10
  exports.removeSilenceDescription = [
11
+ {
12
+ displayName: 'Send as JSON',
13
+ name: 'useJsonBody',
14
+ type: 'boolean',
15
+ default: false,
16
+ displayOptions,
17
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
18
+ noDataExpression: true,
19
+ },
20
+ {
21
+ displayName: 'JSON Body',
22
+ name: 'jsonBody',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['audio'],
28
+ operation: ['removeSilence'],
29
+ useJsonBody: [true],
30
+ },
31
+ },
32
+ description: 'The JSON body to send with the request',
33
+ routing: {
34
+ send: {
35
+ type: 'body',
36
+ value: '={{JSON.parse($value)}}',
37
+ },
38
+ },
39
+ },
11
40
  {
12
41
  displayName: 'Audio URL',
13
42
  name: 'url',
14
43
  type: 'string',
15
44
  required: true,
16
45
  default: '',
17
- displayOptions,
46
+ displayOptions: {
47
+ show: {
48
+ resource: ['audio'],
49
+ operation: ['removeSilence'],
50
+ useJsonBody: [false],
51
+ },
52
+ },
18
53
  description: 'URL of the audio file to process',
19
54
  routing: {
20
55
  send: {
@@ -29,7 +64,13 @@ exports.removeSilenceDescription = [
29
64
  type: 'collection',
30
65
  placeholder: 'Add Field',
31
66
  default: {},
32
- displayOptions,
67
+ displayOptions: {
68
+ show: {
69
+ resource: ['audio'],
70
+ operation: ['removeSilence'],
71
+ useJsonBody: [false],
72
+ },
73
+ },
33
74
  options: [
34
75
  {
35
76
  displayName: 'Silence Threshold (dB)',
@@ -8,13 +8,48 @@ const displayOptions = {
8
8
  },
9
9
  };
10
10
  exports.composeVideoDescription = [
11
+ {
12
+ displayName: 'Send as JSON',
13
+ name: 'useJsonBody',
14
+ type: 'boolean',
15
+ default: false,
16
+ displayOptions,
17
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
18
+ noDataExpression: true,
19
+ },
20
+ {
21
+ displayName: 'JSON Body',
22
+ name: 'jsonBody',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['compose'],
28
+ operation: ['composeVideo'],
29
+ useJsonBody: [true],
30
+ },
31
+ },
32
+ description: 'The JSON body to send with the request',
33
+ routing: {
34
+ send: {
35
+ type: 'body',
36
+ value: '={{JSON.parse($value)}}',
37
+ },
38
+ },
39
+ },
11
40
  {
12
41
  displayName: 'Main Video URL',
13
42
  name: 'mainVideoUrl',
14
43
  type: 'string',
15
44
  required: true,
16
45
  default: '',
17
- displayOptions,
46
+ displayOptions: {
47
+ show: {
48
+ resource: ['compose'],
49
+ operation: ['composeVideo'],
50
+ useJsonBody: [false],
51
+ },
52
+ },
18
53
  description: 'URL of the main/base video',
19
54
  routing: {
20
55
  send: {
@@ -32,7 +67,13 @@ exports.composeVideoDescription = [
32
67
  },
33
68
  required: true,
34
69
  default: {},
35
- displayOptions,
70
+ displayOptions: {
71
+ show: {
72
+ resource: ['compose'],
73
+ operation: ['composeVideo'],
74
+ useJsonBody: [false],
75
+ },
76
+ },
36
77
  description: 'Video or image segments to overlay onto the main video at specific time ranges',
37
78
  options: [
38
79
  {
@@ -8,6 +8,35 @@ const displayOptions = {
8
8
  },
9
9
  };
10
10
  exports.concatDescription = [
11
+ {
12
+ displayName: 'Send as JSON',
13
+ name: 'useJsonBody',
14
+ type: 'boolean',
15
+ default: false,
16
+ displayOptions,
17
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
18
+ noDataExpression: true,
19
+ },
20
+ {
21
+ displayName: 'JSON Body',
22
+ name: 'jsonBody',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['compose'],
28
+ operation: ['concat'],
29
+ useJsonBody: [true],
30
+ },
31
+ },
32
+ description: 'The JSON body to send with the request',
33
+ routing: {
34
+ send: {
35
+ type: 'body',
36
+ value: '={{JSON.parse($value)}}',
37
+ },
38
+ },
39
+ },
11
40
  {
12
41
  displayName: 'Clips',
13
42
  name: 'clips',
@@ -17,7 +46,13 @@ exports.concatDescription = [
17
46
  },
18
47
  required: true,
19
48
  default: {},
20
- displayOptions,
49
+ displayOptions: {
50
+ show: {
51
+ resource: ['compose'],
52
+ operation: ['concat'],
53
+ useJsonBody: [false],
54
+ },
55
+ },
21
56
  description: 'Video clips to concatenate in order',
22
57
  options: [
23
58
  {
@@ -8,6 +8,35 @@ const displayOptions = {
8
8
  },
9
9
  };
10
10
  exports.mergeDescription = [
11
+ {
12
+ displayName: 'Send as JSON',
13
+ name: 'useJsonBody',
14
+ type: 'boolean',
15
+ default: false,
16
+ displayOptions,
17
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
18
+ noDataExpression: true,
19
+ },
20
+ {
21
+ displayName: 'JSON Body',
22
+ name: 'jsonBody',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['compose'],
28
+ operation: ['merge'],
29
+ useJsonBody: [true],
30
+ },
31
+ },
32
+ description: 'The JSON body to send with the request',
33
+ routing: {
34
+ send: {
35
+ type: 'body',
36
+ value: '={{JSON.parse($value)}}',
37
+ },
38
+ },
39
+ },
11
40
  {
12
41
  displayName: 'Images',
13
42
  name: 'images',
@@ -17,7 +46,13 @@ exports.mergeDescription = [
17
46
  },
18
47
  required: true,
19
48
  default: {},
20
- displayOptions,
49
+ displayOptions: {
50
+ show: {
51
+ resource: ['compose'],
52
+ operation: ['merge'],
53
+ useJsonBody: [false],
54
+ },
55
+ },
21
56
  description: 'Image slides to combine into video',
22
57
  options: [
23
58
  {
@@ -57,7 +92,13 @@ exports.mergeDescription = [
57
92
  type: 'string',
58
93
  required: true,
59
94
  default: '',
60
- displayOptions,
95
+ displayOptions: {
96
+ show: {
97
+ resource: ['compose'],
98
+ operation: ['merge'],
99
+ useJsonBody: [false],
100
+ },
101
+ },
61
102
  description: 'URL of the audio track',
62
103
  routing: {
63
104
  send: {
@@ -72,7 +113,13 @@ exports.mergeDescription = [
72
113
  type: 'collection',
73
114
  placeholder: 'Add Field',
74
115
  default: {},
75
- displayOptions,
116
+ displayOptions: {
117
+ show: {
118
+ resource: ['compose'],
119
+ operation: ['merge'],
120
+ useJsonBody: [false],
121
+ },
122
+ },
76
123
  options: [
77
124
  {
78
125
  displayName: 'Audio Mode',
@@ -2,6 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.audioToMp3Description = void 0;
4
4
  exports.audioToMp3Description = [
5
+ {
6
+ displayName: 'Send as JSON',
7
+ name: 'useJsonBody',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['convert'],
13
+ operation: ['audioToMp3'],
14
+ },
15
+ },
16
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
17
+ noDataExpression: true,
18
+ },
19
+ {
20
+ displayName: 'JSON Body',
21
+ name: 'jsonBody',
22
+ type: 'json',
23
+ default: '{}',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['convert'],
27
+ operation: ['audioToMp3'],
28
+ useJsonBody: [true],
29
+ },
30
+ },
31
+ description: 'The JSON body to send with the request',
32
+ routing: {
33
+ send: {
34
+ type: 'body',
35
+ value: '={{JSON.parse($value)}}',
36
+ },
37
+ },
38
+ },
5
39
  {
6
40
  displayName: 'File URL',
7
41
  name: 'url',
@@ -12,6 +46,7 @@ exports.audioToMp3Description = [
12
46
  show: {
13
47
  resource: ['convert'],
14
48
  operation: ['audioToMp3'],
49
+ useJsonBody: [false],
15
50
  },
16
51
  },
17
52
  description: 'URL of the audio file to convert to MP3',
@@ -2,6 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.audioToWavDescription = void 0;
4
4
  exports.audioToWavDescription = [
5
+ {
6
+ displayName: 'Send as JSON',
7
+ name: 'useJsonBody',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['convert'],
13
+ operation: ['audioToWav'],
14
+ },
15
+ },
16
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
17
+ noDataExpression: true,
18
+ },
19
+ {
20
+ displayName: 'JSON Body',
21
+ name: 'jsonBody',
22
+ type: 'json',
23
+ default: '{}',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['convert'],
27
+ operation: ['audioToWav'],
28
+ useJsonBody: [true],
29
+ },
30
+ },
31
+ description: 'The JSON body to send with the request',
32
+ routing: {
33
+ send: {
34
+ type: 'body',
35
+ value: '={{JSON.parse($value)}}',
36
+ },
37
+ },
38
+ },
5
39
  {
6
40
  displayName: 'File URL',
7
41
  name: 'url',
@@ -12,6 +46,7 @@ exports.audioToWavDescription = [
12
46
  show: {
13
47
  resource: ['convert'],
14
48
  operation: ['audioToWav'],
49
+ useJsonBody: [false],
15
50
  },
16
51
  },
17
52
  description: 'URL of the audio file to convert to WAV',
@@ -2,6 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.imageToJpgDescription = void 0;
4
4
  exports.imageToJpgDescription = [
5
+ {
6
+ displayName: 'Send as JSON',
7
+ name: 'useJsonBody',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['convert'],
13
+ operation: ['imageToJpg'],
14
+ },
15
+ },
16
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
17
+ noDataExpression: true,
18
+ },
19
+ {
20
+ displayName: 'JSON Body',
21
+ name: 'jsonBody',
22
+ type: 'json',
23
+ default: '{}',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['convert'],
27
+ operation: ['imageToJpg'],
28
+ useJsonBody: [true],
29
+ },
30
+ },
31
+ description: 'The JSON body to send with the request',
32
+ routing: {
33
+ send: {
34
+ type: 'body',
35
+ value: '={{JSON.parse($value)}}',
36
+ },
37
+ },
38
+ },
5
39
  {
6
40
  displayName: 'File URL',
7
41
  name: 'url',
@@ -12,6 +46,7 @@ exports.imageToJpgDescription = [
12
46
  show: {
13
47
  resource: ['convert'],
14
48
  operation: ['imageToJpg'],
49
+ useJsonBody: [false],
15
50
  },
16
51
  },
17
52
  description: 'URL of the image file to convert to JPG',
@@ -2,6 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.imageToWebpDescription = void 0;
4
4
  exports.imageToWebpDescription = [
5
+ {
6
+ displayName: 'Send as JSON',
7
+ name: 'useJsonBody',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['convert'],
13
+ operation: ['imageToWebp'],
14
+ },
15
+ },
16
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
17
+ noDataExpression: true,
18
+ },
19
+ {
20
+ displayName: 'JSON Body',
21
+ name: 'jsonBody',
22
+ type: 'json',
23
+ default: '{}',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['convert'],
27
+ operation: ['imageToWebp'],
28
+ useJsonBody: [true],
29
+ },
30
+ },
31
+ description: 'The JSON body to send with the request',
32
+ routing: {
33
+ send: {
34
+ type: 'body',
35
+ value: '={{JSON.parse($value)}}',
36
+ },
37
+ },
38
+ },
5
39
  {
6
40
  displayName: 'File URL',
7
41
  name: 'url',
@@ -12,6 +46,7 @@ exports.imageToWebpDescription = [
12
46
  show: {
13
47
  resource: ['convert'],
14
48
  operation: ['imageToWebp'],
49
+ useJsonBody: [false],
15
50
  },
16
51
  },
17
52
  description: 'URL of the image file to convert to WebP',
@@ -2,6 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.videoToMp4Description = void 0;
4
4
  exports.videoToMp4Description = [
5
+ {
6
+ displayName: 'Send as JSON',
7
+ name: 'useJsonBody',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['convert'],
13
+ operation: ['videoToMp4'],
14
+ },
15
+ },
16
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
17
+ noDataExpression: true,
18
+ },
19
+ {
20
+ displayName: 'JSON Body',
21
+ name: 'jsonBody',
22
+ type: 'json',
23
+ default: '{}',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['convert'],
27
+ operation: ['videoToMp4'],
28
+ useJsonBody: [true],
29
+ },
30
+ },
31
+ description: 'The JSON body to send with the request',
32
+ routing: {
33
+ send: {
34
+ type: 'body',
35
+ value: '={{JSON.parse($value)}}',
36
+ },
37
+ },
38
+ },
5
39
  {
6
40
  displayName: 'File URL',
7
41
  name: 'url',
@@ -12,6 +46,7 @@ exports.videoToMp4Description = [
12
46
  show: {
13
47
  resource: ['convert'],
14
48
  operation: ['videoToMp4'],
49
+ useJsonBody: [false],
15
50
  },
16
51
  },
17
52
  description: 'URL of the video file to convert to MP4',
@@ -2,6 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.videoToWebmDescription = void 0;
4
4
  exports.videoToWebmDescription = [
5
+ {
6
+ displayName: 'Send as JSON',
7
+ name: 'useJsonBody',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['convert'],
13
+ operation: ['videoToWebm'],
14
+ },
15
+ },
16
+ description: 'Whether to send the request body as raw JSON instead of using individual fields',
17
+ noDataExpression: true,
18
+ },
19
+ {
20
+ displayName: 'JSON Body',
21
+ name: 'jsonBody',
22
+ type: 'json',
23
+ default: '{}',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['convert'],
27
+ operation: ['videoToWebm'],
28
+ useJsonBody: [true],
29
+ },
30
+ },
31
+ description: 'The JSON body to send with the request',
32
+ routing: {
33
+ send: {
34
+ type: 'body',
35
+ value: '={{JSON.parse($value)}}',
36
+ },
37
+ },
38
+ },
5
39
  {
6
40
  displayName: 'File URL',
7
41
  name: 'url',
@@ -12,6 +46,7 @@ exports.videoToWebmDescription = [
12
46
  show: {
13
47
  resource: ['convert'],
14
48
  operation: ['videoToWebm'],
49
+ useJsonBody: [false],
15
50
  },
16
51
  },
17
52
  description: 'URL of the video file to convert to WebM',