n8n-nodes-bookoly 1.0.4
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/LICENSE.md +21 -0
- package/README.md +94 -0
- package/dist/credentials/BookolyApi.credentials.d.ts +9 -0
- package/dist/credentials/BookolyApi.credentials.js +47 -0
- package/dist/credentials/BookolyApi.credentials.js.map +1 -0
- package/dist/nodes/Bookoly/Bookoly.node.d.ts +7 -0
- package/dist/nodes/Bookoly/Bookoly.node.js +82 -0
- package/dist/nodes/Bookoly/Bookoly.node.js.map +1 -0
- package/dist/nodes/Bookoly/Bookoly.node.json +18 -0
- package/dist/nodes/Bookoly/bookoly.svg +40 -0
- package/dist/nodes/Bookoly/handlers/file/generateSubtitleFile.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/file/generateSubtitleFile.js +42 -0
- package/dist/nodes/Bookoly/handlers/file/generateSubtitleFile.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/file/index.d.ts +6 -0
- package/dist/nodes/Bookoly/handlers/file/index.js +10 -0
- package/dist/nodes/Bookoly/handlers/file/index.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/getResource.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/getResource.js +92 -0
- package/dist/nodes/Bookoly/handlers/getResource.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/index.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/index.js +17 -0
- package/dist/nodes/Bookoly/handlers/index.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/sound/combineSounds.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/sound/combineSounds.js +20 -0
- package/dist/nodes/Bookoly/handlers/sound/combineSounds.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/sound/createSoundEffect.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/sound/createSoundEffect.js +19 -0
- package/dist/nodes/Bookoly/handlers/sound/createSoundEffect.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/sound/index.d.ts +8 -0
- package/dist/nodes/Bookoly/handlers/sound/index.js +12 -0
- package/dist/nodes/Bookoly/handlers/sound/index.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/speech/createSpeech.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/speech/createSpeech.js +24 -0
- package/dist/nodes/Bookoly/handlers/speech/createSpeech.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/speech/index.d.ts +6 -0
- package/dist/nodes/Bookoly/handlers/speech/index.js +10 -0
- package/dist/nodes/Bookoly/handlers/speech/index.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/transcript/createTranscript.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/transcript/createTranscript.js +24 -0
- package/dist/nodes/Bookoly/handlers/transcript/createTranscript.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/transcript/index.d.ts +6 -0
- package/dist/nodes/Bookoly/handlers/transcript/index.js +10 -0
- package/dist/nodes/Bookoly/handlers/transcript/index.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/addAudioToVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/addAudioToVideo.js +30 -0
- package/dist/nodes/Bookoly/handlers/video/addAudioToVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/addAudioWithSubtitlesToVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/addAudioWithSubtitlesToVideo.js +52 -0
- package/dist/nodes/Bookoly/handlers/video/addAudioWithSubtitlesToVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/addSubtitlesToVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/addSubtitlesToVideo.js +42 -0
- package/dist/nodes/Bookoly/handlers/video/addSubtitlesToVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/addSubtitlesToVideoFromFile.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/addSubtitlesToVideoFromFile.js +26 -0
- package/dist/nodes/Bookoly/handlers/video/addSubtitlesToVideoFromFile.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/addWatermarkToVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/addWatermarkToVideo.js +32 -0
- package/dist/nodes/Bookoly/handlers/video/addWatermarkToVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/blurVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/blurVideo.js +36 -0
- package/dist/nodes/Bookoly/handlers/video/blurVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/clipVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/clipVideo.js +28 -0
- package/dist/nodes/Bookoly/handlers/video/clipVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/createSlideshow.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/createSlideshow.js +24 -0
- package/dist/nodes/Bookoly/handlers/video/createSlideshow.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/cropVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/cropVideo.js +34 -0
- package/dist/nodes/Bookoly/handlers/video/cropVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/extractAudioFromVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/extractAudioFromVideo.js +20 -0
- package/dist/nodes/Bookoly/handlers/video/extractAudioFromVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/frameVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/frameVideo.js +24 -0
- package/dist/nodes/Bookoly/handlers/video/frameVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/generateVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/generateVideo.js +62 -0
- package/dist/nodes/Bookoly/handlers/video/generateVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/getScenes.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/getScenes.js +24 -0
- package/dist/nodes/Bookoly/handlers/video/getScenes.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/index.d.ts +34 -0
- package/dist/nodes/Bookoly/handlers/video/index.js +38 -0
- package/dist/nodes/Bookoly/handlers/video/index.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/muteVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/muteVideo.js +20 -0
- package/dist/nodes/Bookoly/handlers/video/muteVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/rotateVideo.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/rotateVideo.js +24 -0
- package/dist/nodes/Bookoly/handlers/video/rotateVideo.js.map +1 -0
- package/dist/nodes/Bookoly/handlers/video/splitVideoIntoScenes.d.ts +2 -0
- package/dist/nodes/Bookoly/handlers/video/splitVideoIntoScenes.js +34 -0
- package/dist/nodes/Bookoly/handlers/video/splitVideoIntoScenes.js.map +1 -0
- package/dist/nodes/Bookoly/helpers/apiClient.d.ts +3 -0
- package/dist/nodes/Bookoly/helpers/apiClient.js +36 -0
- package/dist/nodes/Bookoly/helpers/apiClient.js.map +1 -0
- package/dist/nodes/Bookoly/resources/commonParams.d.ts +195 -0
- package/dist/nodes/Bookoly/resources/commonParams.js +210 -0
- package/dist/nodes/Bookoly/resources/commonParams.js.map +1 -0
- package/dist/nodes/Bookoly/resources/file.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/file.js +49 -0
- package/dist/nodes/Bookoly/resources/file.js.map +1 -0
- package/dist/nodes/Bookoly/resources/index.d.ts +9 -0
- package/dist/nodes/Bookoly/resources/index.js +36 -0
- package/dist/nodes/Bookoly/resources/index.js.map +1 -0
- package/dist/nodes/Bookoly/resources/sound.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/sound.js +179 -0
- package/dist/nodes/Bookoly/resources/sound.js.map +1 -0
- package/dist/nodes/Bookoly/resources/speech.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/speech.js +47 -0
- package/dist/nodes/Bookoly/resources/speech.js.map +1 -0
- package/dist/nodes/Bookoly/resources/static.d.ts +8 -0
- package/dist/nodes/Bookoly/resources/static.js +196 -0
- package/dist/nodes/Bookoly/resources/static.js.map +1 -0
- package/dist/nodes/Bookoly/resources/subtitleParams.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/subtitleParams.js +167 -0
- package/dist/nodes/Bookoly/resources/subtitleParams.js.map +1 -0
- package/dist/nodes/Bookoly/resources/transcription.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/transcription.js +138 -0
- package/dist/nodes/Bookoly/resources/transcription.js.map +1 -0
- package/dist/nodes/Bookoly/resources/video.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/video.js +135 -0
- package/dist/nodes/Bookoly/resources/video.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/audio.d.ts +44 -0
- package/dist/nodes/Bookoly/resources/videoParams/audio.js +59 -0
- package/dist/nodes/Bookoly/resources/videoParams/audio.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/blur.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/videoParams/blur.js +93 -0
- package/dist/nodes/Bookoly/resources/videoParams/blur.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/clip.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/videoParams/clip.js +40 -0
- package/dist/nodes/Bookoly/resources/videoParams/clip.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/crop.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/videoParams/crop.js +75 -0
- package/dist/nodes/Bookoly/resources/videoParams/crop.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/operations.d.ts +7 -0
- package/dist/nodes/Bookoly/resources/videoParams/operations.js +103 -0
- package/dist/nodes/Bookoly/resources/videoParams/operations.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/scenes.d.ts +90 -0
- package/dist/nodes/Bookoly/resources/videoParams/scenes.js +84 -0
- package/dist/nodes/Bookoly/resources/videoParams/scenes.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/split.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/videoParams/split.js +116 -0
- package/dist/nodes/Bookoly/resources/videoParams/split.js.map +1 -0
- package/dist/nodes/Bookoly/resources/videoParams/watermark.d.ts +2 -0
- package/dist/nodes/Bookoly/resources/videoParams/watermark.js +54 -0
- package/dist/nodes/Bookoly/resources/videoParams/watermark.js.map +1 -0
- package/dist/nodes/Bookoly/types/index.d.ts +295 -0
- package/dist/nodes/Bookoly/types/index.js +287 -0
- package/dist/nodes/Bookoly/types/index.js.map +1 -0
- package/dist/package.json +54 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +0 -0
- package/package.json +54 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateVideo = generateVideo;
|
|
4
|
+
const apiClient_1 = require("../../helpers/apiClient");
|
|
5
|
+
const getScenes_1 = require("./getScenes");
|
|
6
|
+
const types_1 = require("../../types");
|
|
7
|
+
async function generateVideo(ctx, itemIndex) {
|
|
8
|
+
const name = ctx.getNodeParameter('name', itemIndex, '');
|
|
9
|
+
const resolution = ctx.getNodeParameter('resolution', itemIndex, types_1.VideoResolution.HORIZONTAL_HD);
|
|
10
|
+
const scenesCollection = ctx.getNodeParameter('scene_collection', itemIndex);
|
|
11
|
+
const scenes = (0, getScenes_1.processScenes)(scenesCollection);
|
|
12
|
+
const text = ctx.getNodeParameter('text', itemIndex, '');
|
|
13
|
+
const vendor_id = ctx.getNodeParameter('vendor_id', itemIndex, '');
|
|
14
|
+
const style = ctx.getNodeParameter('style', itemIndex, 'simple');
|
|
15
|
+
const language = ctx.getNodeParameter('language', itemIndex, 'af');
|
|
16
|
+
const font_family = ctx.getNodeParameter('font_family', itemIndex, types_1.FontFamily.ARIAL);
|
|
17
|
+
const font_size = ctx.getNodeParameter('font_size', itemIndex, 1);
|
|
18
|
+
const word_color = ctx.getNodeParameter('word_color', itemIndex, '');
|
|
19
|
+
const line_color = ctx.getNodeParameter('line_color', itemIndex, '');
|
|
20
|
+
const line_words = ctx.getNodeParameter('line_words', itemIndex, 1);
|
|
21
|
+
const outline_width = ctx.getNodeParameter('outline_width', itemIndex, 1);
|
|
22
|
+
const position = ctx.getNodeParameter('position', itemIndex, types_1.SubtitlePosition.MID_BOTTOM_CENTER);
|
|
23
|
+
const ltr = ctx.getNodeParameter('ltr', itemIndex, true);
|
|
24
|
+
const audio_url = ctx.getNodeParameter('audio_url', itemIndex, '');
|
|
25
|
+
const trim = ctx.getNodeParameter('trim', itemIndex, true);
|
|
26
|
+
const volume = ctx.getNodeParameter('volume', itemIndex, 1);
|
|
27
|
+
const wait = ctx.getNodeParameter('wait', itemIndex, false);
|
|
28
|
+
const webhook_url = ctx.getNodeParameter('webhook_url', itemIndex, '');
|
|
29
|
+
const requestBody = {
|
|
30
|
+
video: {
|
|
31
|
+
name,
|
|
32
|
+
resolution,
|
|
33
|
+
webhook_url,
|
|
34
|
+
scenes,
|
|
35
|
+
},
|
|
36
|
+
speech: {
|
|
37
|
+
text,
|
|
38
|
+
voice: {
|
|
39
|
+
vendor_id,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
subtitle: {
|
|
43
|
+
style,
|
|
44
|
+
language,
|
|
45
|
+
font_family,
|
|
46
|
+
font_size,
|
|
47
|
+
word_color,
|
|
48
|
+
line_color,
|
|
49
|
+
line_words,
|
|
50
|
+
outline_width,
|
|
51
|
+
position,
|
|
52
|
+
ltr,
|
|
53
|
+
},
|
|
54
|
+
audio: {
|
|
55
|
+
url: audio_url,
|
|
56
|
+
trim,
|
|
57
|
+
volume,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
return await (0, apiClient_1.bookolyApiRequest)(ctx, types_1.HttpMethod.POST, types_1.ApiEndpoints.GENERATE_A_VIDEO, requestBody, wait);
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=generateVideo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateVideo.js","sourceRoot":"","sources":["../../../../../nodes/Bookoly/handlers/video/generateVideo.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processScenes = processScenes;
|
|
4
|
+
function processScenes(scenesCollection) {
|
|
5
|
+
const bookolyScenes = [];
|
|
6
|
+
const scenes = scenesCollection === null || scenesCollection === void 0 ? void 0 : scenesCollection.scenes;
|
|
7
|
+
if (scenes && Array.isArray(scenes)) {
|
|
8
|
+
for (const scene of scenes) {
|
|
9
|
+
if (scene && typeof scene === 'object') {
|
|
10
|
+
const bookolyScene = {
|
|
11
|
+
asset: {
|
|
12
|
+
src: scene.src,
|
|
13
|
+
type: scene.type,
|
|
14
|
+
},
|
|
15
|
+
effect: scene.effect,
|
|
16
|
+
duration: scene.duration,
|
|
17
|
+
};
|
|
18
|
+
bookolyScenes.push(bookolyScene);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return bookolyScenes;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=getScenes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScenes.js","sourceRoot":"","sources":["../../../../../nodes/Bookoly/handlers/video/getScenes.ts"],"names":[],"mappings":";;AAEA,sCAuBC;AAvBD,SAAgB,aAAa,CAAC,gBAAiC;IAC9D,MAAM,aAAa,GAAmB,EAAE,CAAC;IAEzC,MAAM,MAAM,GAAY,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,MAAM,CAAC;IAEjD,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACrC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC5B,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACxC,MAAM,YAAY,GAAiB;oBAClC,KAAK,EAAE;wBACN,GAAG,EAAE,KAAK,CAAC,GAAG;wBACd,IAAI,EAAE,KAAK,CAAC,IAAI;qBAChB;oBACD,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;iBACxB,CAAC;gBAEF,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAClC,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,aAAa,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { addAudioToVideo } from './addAudioToVideo';
|
|
2
|
+
import { addAudioWithSubtitlesToVideo } from './addAudioWithSubtitlesToVideo';
|
|
3
|
+
import { addSubtitlesToVideo } from './addSubtitlesToVideo';
|
|
4
|
+
import { addSubtitlesToVideoFromFile } from './addSubtitlesToVideoFromFile';
|
|
5
|
+
import { addWatermarkToVideo } from './addWatermarkToVideo';
|
|
6
|
+
import { blurVideo } from './blurVideo';
|
|
7
|
+
import { clipVideo } from './clipVideo';
|
|
8
|
+
import { createSlideshow } from './createSlideshow';
|
|
9
|
+
import { cropVideo } from './cropVideo';
|
|
10
|
+
import { extractAudioFromVideo } from './extractAudioFromVideo';
|
|
11
|
+
import { frameVideo } from './frameVideo';
|
|
12
|
+
import { generateVideo } from './generateVideo';
|
|
13
|
+
import { muteVideo } from './muteVideo';
|
|
14
|
+
import { rotateVideo } from './rotateVideo';
|
|
15
|
+
import { splitVideoIntoScenes } from './splitVideoIntoScenes';
|
|
16
|
+
import { getResource as getVideo } from '../getResource';
|
|
17
|
+
export declare const videoHandlers: {
|
|
18
|
+
addAudioToVideo: typeof addAudioToVideo;
|
|
19
|
+
addAudioWithSubtitlesToVideo: typeof addAudioWithSubtitlesToVideo;
|
|
20
|
+
addSubtitlesToVideo: typeof addSubtitlesToVideo;
|
|
21
|
+
addSubtitlesToVideoFromFile: typeof addSubtitlesToVideoFromFile;
|
|
22
|
+
addWatermarkToVideo: typeof addWatermarkToVideo;
|
|
23
|
+
blurVideo: typeof blurVideo;
|
|
24
|
+
clipVideo: typeof clipVideo;
|
|
25
|
+
createSlideshow: typeof createSlideshow;
|
|
26
|
+
cropVideo: typeof cropVideo;
|
|
27
|
+
extractAudioFromVideo: typeof extractAudioFromVideo;
|
|
28
|
+
frameVideo: typeof frameVideo;
|
|
29
|
+
generateVideo: typeof generateVideo;
|
|
30
|
+
muteVideo: typeof muteVideo;
|
|
31
|
+
rotateVideo: typeof rotateVideo;
|
|
32
|
+
splitVideoIntoScenes: typeof splitVideoIntoScenes;
|
|
33
|
+
getVideo: typeof getVideo;
|
|
34
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.videoHandlers = void 0;
|
|
4
|
+
const addAudioToVideo_1 = require("./addAudioToVideo");
|
|
5
|
+
const addAudioWithSubtitlesToVideo_1 = require("./addAudioWithSubtitlesToVideo");
|
|
6
|
+
const addSubtitlesToVideo_1 = require("./addSubtitlesToVideo");
|
|
7
|
+
const addSubtitlesToVideoFromFile_1 = require("./addSubtitlesToVideoFromFile");
|
|
8
|
+
const addWatermarkToVideo_1 = require("./addWatermarkToVideo");
|
|
9
|
+
const blurVideo_1 = require("./blurVideo");
|
|
10
|
+
const clipVideo_1 = require("./clipVideo");
|
|
11
|
+
const createSlideshow_1 = require("./createSlideshow");
|
|
12
|
+
const cropVideo_1 = require("./cropVideo");
|
|
13
|
+
const extractAudioFromVideo_1 = require("./extractAudioFromVideo");
|
|
14
|
+
const frameVideo_1 = require("./frameVideo");
|
|
15
|
+
const generateVideo_1 = require("./generateVideo");
|
|
16
|
+
const muteVideo_1 = require("./muteVideo");
|
|
17
|
+
const rotateVideo_1 = require("./rotateVideo");
|
|
18
|
+
const splitVideoIntoScenes_1 = require("./splitVideoIntoScenes");
|
|
19
|
+
const getResource_1 = require("../getResource");
|
|
20
|
+
exports.videoHandlers = {
|
|
21
|
+
addAudioToVideo: addAudioToVideo_1.addAudioToVideo,
|
|
22
|
+
addAudioWithSubtitlesToVideo: addAudioWithSubtitlesToVideo_1.addAudioWithSubtitlesToVideo,
|
|
23
|
+
addSubtitlesToVideo: addSubtitlesToVideo_1.addSubtitlesToVideo,
|
|
24
|
+
addSubtitlesToVideoFromFile: addSubtitlesToVideoFromFile_1.addSubtitlesToVideoFromFile,
|
|
25
|
+
addWatermarkToVideo: addWatermarkToVideo_1.addWatermarkToVideo,
|
|
26
|
+
blurVideo: blurVideo_1.blurVideo,
|
|
27
|
+
clipVideo: clipVideo_1.clipVideo,
|
|
28
|
+
createSlideshow: createSlideshow_1.createSlideshow,
|
|
29
|
+
cropVideo: cropVideo_1.cropVideo,
|
|
30
|
+
extractAudioFromVideo: extractAudioFromVideo_1.extractAudioFromVideo,
|
|
31
|
+
frameVideo: frameVideo_1.frameVideo,
|
|
32
|
+
generateVideo: generateVideo_1.generateVideo,
|
|
33
|
+
muteVideo: muteVideo_1.muteVideo,
|
|
34
|
+
rotateVideo: rotateVideo_1.rotateVideo,
|
|
35
|
+
splitVideoIntoScenes: splitVideoIntoScenes_1.splitVideoIntoScenes,
|
|
36
|
+
getVideo: getResource_1.getResource,
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Bookoly/handlers/video/index.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,iFAA8E;AAC9E,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2CAAwC;AACxC,2CAAwC;AACxC,uDAAoD;AACpD,2CAAwC;AACxC,mEAAgE;AAChE,6CAA0C;AAC1C,mDAAgD;AAChD,2CAAwC;AACxC,+CAA4C;AAC5C,iEAA8D;AAC9D,gDAAyD;AAE5C,QAAA,aAAa,GAAG;IAC5B,eAAe,EAAf,iCAAe;IACf,4BAA4B,EAA5B,2DAA4B;IAC5B,mBAAmB,EAAnB,yCAAmB;IACnB,2BAA2B,EAA3B,yDAA2B;IAC3B,mBAAmB,EAAnB,yCAAmB;IACnB,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,eAAe,EAAf,iCAAe;IACf,SAAS,EAAT,qBAAS;IACT,qBAAqB,EAArB,6CAAqB;IACrB,UAAU,EAAV,uBAAU;IACV,aAAa,EAAb,6BAAa;IACb,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;IACX,oBAAoB,EAApB,2CAAoB;IACpB,QAAQ,EAAR,yBAAQ;CACR,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.muteVideo = muteVideo;
|
|
4
|
+
const apiClient_1 = require("../../helpers/apiClient");
|
|
5
|
+
const types_1 = require("../../types");
|
|
6
|
+
async function muteVideo(ctx, itemIndex) {
|
|
7
|
+
const name = ctx.getNodeParameter('name', itemIndex, '');
|
|
8
|
+
const url = ctx.getNodeParameter('url', itemIndex);
|
|
9
|
+
const wait = ctx.getNodeParameter('wait', itemIndex, false);
|
|
10
|
+
const webhook_url = ctx.getNodeParameter('webhook_url', itemIndex, '');
|
|
11
|
+
const requestBody = {
|
|
12
|
+
video: {
|
|
13
|
+
name,
|
|
14
|
+
url,
|
|
15
|
+
webhook_url,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
return await (0, apiClient_1.bookolyApiRequest)(ctx, types_1.HttpMethod.POST, types_1.ApiEndpoints.MUTE_A_VIDEO, requestBody, wait);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=muteVideo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muteVideo.js","sourceRoot":"","sources":["../../../../../nodes/Bookoly/handlers/video/muteVideo.ts"],"names":[],"mappings":";;AAIA,8BAqBC;AAxBD,uDAA4D;AAC5D,uCAAuD;AAEhD,KAAK,UAAU,SAAS,CAAC,GAAsB,EAAE,SAAiB;IACxE,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IACnE,MAAM,GAAG,GAAG,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAW,CAAC;IAC7D,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAY,CAAC;IACvE,MAAM,WAAW,GAAG,GAAG,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAEjF,MAAM,WAAW,GAAG;QACnB,KAAK,EAAE;YACN,IAAI;YACJ,GAAG;YACH,WAAW;SACX;KACD,CAAC;IAEF,OAAO,MAAM,IAAA,6BAAiB,EAC7B,GAAG,EACH,kBAAU,CAAC,IAAI,EACf,oBAAY,CAAC,YAAY,EACzB,WAAW,EACX,IAAI,CACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rotateVideo = rotateVideo;
|
|
4
|
+
const apiClient_1 = require("../../helpers/apiClient");
|
|
5
|
+
const types_1 = require("../../types");
|
|
6
|
+
async function rotateVideo(ctx, itemIndex) {
|
|
7
|
+
const name = ctx.getNodeParameter('name', itemIndex, '');
|
|
8
|
+
const url = ctx.getNodeParameter('url', itemIndex);
|
|
9
|
+
const mute = ctx.getNodeParameter('mute', itemIndex, false);
|
|
10
|
+
const rotation_degrees = ctx.getNodeParameter('rotation_degrees', itemIndex);
|
|
11
|
+
const wait = ctx.getNodeParameter('wait', itemIndex, false);
|
|
12
|
+
const webhook_url = ctx.getNodeParameter('webhook_url', itemIndex, '');
|
|
13
|
+
const requestBody = {
|
|
14
|
+
video: {
|
|
15
|
+
name,
|
|
16
|
+
url,
|
|
17
|
+
mute,
|
|
18
|
+
rotation_degrees,
|
|
19
|
+
webhook_url,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
return await (0, apiClient_1.bookolyApiRequest)(ctx, types_1.HttpMethod.POST, types_1.ApiEndpoints.ROTATE_A_VIDEO, requestBody, wait);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=rotateVideo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotateVideo.js","sourceRoot":"","sources":["../../../../../nodes/Bookoly/handlers/video/rotateVideo.ts"],"names":[],"mappings":";;AAIA,kCAyBC;AA5BD,uDAA4D;AAC5D,uCAAuD;AAEhD,KAAK,UAAU,WAAW,CAAC,GAAsB,EAAE,SAAiB;IAC1E,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IACnE,MAAM,GAAG,GAAG,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAW,CAAC;IAC7D,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAY,CAAC;IACvE,MAAM,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,SAAS,CAAW,CAAC;IACvF,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAY,CAAC;IACvE,MAAM,WAAW,GAAG,GAAG,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAEjF,MAAM,WAAW,GAAG;QACnB,KAAK,EAAE;YACN,IAAI;YACJ,GAAG;YACH,IAAI;YACJ,gBAAgB;YAChB,WAAW;SACX;KACD,CAAC;IAEF,OAAO,MAAM,IAAA,6BAAiB,EAC7B,GAAG,EACH,kBAAU,CAAC,IAAI,EACf,oBAAY,CAAC,cAAc,EAC3B,WAAW,EACX,IAAI,CACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.splitVideoIntoScenes = splitVideoIntoScenes;
|
|
4
|
+
const apiClient_1 = require("../../helpers/apiClient");
|
|
5
|
+
const types_1 = require("../../types");
|
|
6
|
+
async function splitVideoIntoScenes(ctx, itemIndex) {
|
|
7
|
+
const name = ctx.getNodeParameter('name', itemIndex, '');
|
|
8
|
+
const url = ctx.getNodeParameter('url', itemIndex);
|
|
9
|
+
const mute = ctx.getNodeParameter('mute', itemIndex, true);
|
|
10
|
+
const type = ctx.getNodeParameter('type', itemIndex, 'auto');
|
|
11
|
+
const amount = ctx.getNodeParameter('amount', itemIndex, 2);
|
|
12
|
+
const min_duration = ctx.getNodeParameter('min_duration', itemIndex, 1);
|
|
13
|
+
const max_duration = ctx.getNodeParameter('max_duration', itemIndex, 2);
|
|
14
|
+
const scene_change_threshold = ctx.getNodeParameter('scene_change_threshold', itemIndex, 0.2);
|
|
15
|
+
const wait = ctx.getNodeParameter('wait', itemIndex, false);
|
|
16
|
+
const webhook_url = ctx.getNodeParameter('webhook_url', itemIndex, '');
|
|
17
|
+
const requestBody = {
|
|
18
|
+
video: {
|
|
19
|
+
name,
|
|
20
|
+
url,
|
|
21
|
+
mute,
|
|
22
|
+
webhook_url,
|
|
23
|
+
},
|
|
24
|
+
split_option: {
|
|
25
|
+
type,
|
|
26
|
+
amount,
|
|
27
|
+
min_duration,
|
|
28
|
+
max_duration,
|
|
29
|
+
scene_change_threshold,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
return await (0, apiClient_1.bookolyApiRequest)(ctx, types_1.HttpMethod.POST, types_1.ApiEndpoints.SPLIT_VIDEO_INTO_SCENES, requestBody, wait);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=splitVideoIntoScenes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitVideoIntoScenes.js","sourceRoot":"","sources":["../../../../../nodes/Bookoly/handlers/video/splitVideoIntoScenes.ts"],"names":[],"mappings":";;AAIA,oDA0CC;AA7CD,uDAA4D;AAC5D,uCAAuD;AAEhD,KAAK,UAAU,oBAAoB,CACzC,GAAsB,EACtB,SAAiB;IAEjB,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IACnE,MAAM,GAAG,GAAG,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAW,CAAC;IAC7D,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAY,CAAC;IACtE,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAW,CAAC;IACvE,MAAM,MAAM,GAAG,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,YAAY,GAAG,GAAG,CAAC,gBAAgB,CAAC,cAAc,EAAE,SAAS,EAAE,CAAC,CAAW,CAAC;IAClF,MAAM,YAAY,GAAG,GAAG,CAAC,gBAAgB,CAAC,cAAc,EAAE,SAAS,EAAE,CAAC,CAAW,CAAC;IAClF,MAAM,sBAAsB,GAAG,GAAG,CAAC,gBAAgB,CAClD,wBAAwB,EACxB,SAAS,EACT,GAAG,CACO,CAAC;IACZ,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAY,CAAC;IACvE,MAAM,WAAW,GAAG,GAAG,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAEjF,MAAM,WAAW,GAAG;QACnB,KAAK,EAAE;YACN,IAAI;YACJ,GAAG;YACH,IAAI;YACJ,WAAW;SACX;QACD,YAAY,EAAE;YACb,IAAI;YACJ,MAAM;YACN,YAAY;YACZ,YAAY;YACZ,sBAAsB;SACtB;KACD,CAAC;IAEF,OAAO,MAAM,IAAA,6BAAiB,EAC7B,GAAG,EACH,kBAAU,CAAC,IAAI,EACf,oBAAY,CAAC,uBAAuB,EACpC,WAAW,EACX,IAAI,CACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IDataObject, IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
import { HttpMethod } from '../types';
|
|
3
|
+
export declare function bookolyApiRequest(ctx: IExecuteFunctions, method: HttpMethod, endpoint: string, body?: IDataObject, wait?: boolean, qs?: IDataObject, authentication?: string): Promise<any>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bookolyApiRequest = bookolyApiRequest;
|
|
4
|
+
const Bookoly_node_1 = require("../Bookoly.node");
|
|
5
|
+
const getResource_1 = require("../handlers/getResource");
|
|
6
|
+
async function bookolyApiRequest(ctx, method, endpoint, body, wait, qs, authentication = 'bookolyApi') {
|
|
7
|
+
const options = {
|
|
8
|
+
headers: {
|
|
9
|
+
Accept: 'application/json',
|
|
10
|
+
'Content-Type': 'application/json',
|
|
11
|
+
},
|
|
12
|
+
method,
|
|
13
|
+
body,
|
|
14
|
+
qs,
|
|
15
|
+
url: `${Bookoly_node_1.API_V1_BASE_URL}/${endpoint}`,
|
|
16
|
+
json: true,
|
|
17
|
+
};
|
|
18
|
+
try {
|
|
19
|
+
const response = await ctx.helpers.requestWithAuthentication.call(ctx, authentication, options);
|
|
20
|
+
const resourceId = response === null || response === void 0 ? void 0 : response.id;
|
|
21
|
+
if (wait && resourceId) {
|
|
22
|
+
return (0, getResource_1.getResource)(ctx, 0, resourceId);
|
|
23
|
+
}
|
|
24
|
+
return response;
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
const apiError = new Error(error.description || error.message || 'The api request failed');
|
|
28
|
+
Object.assign(apiError, {
|
|
29
|
+
statusCode: error.statusCode,
|
|
30
|
+
description: error.description,
|
|
31
|
+
context: error.context,
|
|
32
|
+
});
|
|
33
|
+
throw apiError;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=apiClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiClient.js","sourceRoot":"","sources":["../../../../nodes/Bookoly/helpers/apiClient.ts"],"names":[],"mappings":";;AAKA,8CA6CC;AAjDD,kDAAkD;AAElD,yDAAsD;AAE/C,KAAK,UAAU,iBAAiB,CACtC,GAAsB,EACtB,MAAkB,EAClB,QAAgB,EAChB,IAAkB,EAClB,IAAc,EACd,EAAgB,EAChB,cAAc,GAAG,YAAY;IAE7B,MAAM,OAAO,GAAwB;QACpC,OAAO,EAAE;YACR,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SAClC;QACD,MAAM;QACN,IAAI;QACJ,EAAE;QACF,GAAG,EAAE,GAAG,8BAAe,IAAI,QAAQ,EAAE;QACrC,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAEhG,MAAM,UAAU,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,EAAE,CAAC;QAEhC,IAAI,IAAI,IAAI,UAAU,EAAE,CAAC;YAExB,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,QAAQ,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAEhB,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,OAAO,IAAI,wBAAwB,CAAC,CAAC;QAG3F,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;YACvB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;SACtB,CAAC,CAAC;QAEH,MAAM,QAAQ,CAAC;IAChB,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { NodePropertyTypes } from 'n8n-workflow';
|
|
2
|
+
import { SubtitleFileType, VideoResolution, Voice } from '../types';
|
|
3
|
+
export declare const getNameParam: (operation: string | string[], resource?: string, description?: string) => {
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: NodePropertyTypes;
|
|
7
|
+
required: boolean;
|
|
8
|
+
default: string;
|
|
9
|
+
description: string;
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
operation: string[];
|
|
13
|
+
resource?: string[] | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const getUrlParam: (operation: string | string[], resource?: string, displayName?: string) => {
|
|
18
|
+
displayName: string;
|
|
19
|
+
name: string;
|
|
20
|
+
type: NodePropertyTypes;
|
|
21
|
+
required: boolean;
|
|
22
|
+
default: string;
|
|
23
|
+
description: string;
|
|
24
|
+
displayOptions: {
|
|
25
|
+
show: {
|
|
26
|
+
operation: string[];
|
|
27
|
+
resource?: string[] | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const getSubtitleUrlParam: (operation: string | string[], resource?: string) => {
|
|
32
|
+
displayName: string;
|
|
33
|
+
name: string;
|
|
34
|
+
type: NodePropertyTypes;
|
|
35
|
+
required: boolean;
|
|
36
|
+
default: string;
|
|
37
|
+
description: string;
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
operation: string[];
|
|
41
|
+
resource?: string[] | undefined;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const getWebhookUrlParam: (operation: string | string[], resource?: string, description?: string) => {
|
|
46
|
+
displayName: string;
|
|
47
|
+
name: string;
|
|
48
|
+
type: NodePropertyTypes;
|
|
49
|
+
default: string;
|
|
50
|
+
description: string;
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
operation: string[];
|
|
54
|
+
resource?: string[] | undefined;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const getVoiceParam: (operation: string | string[], resource?: string) => {
|
|
59
|
+
displayName: string;
|
|
60
|
+
name: string;
|
|
61
|
+
type: NodePropertyTypes;
|
|
62
|
+
required: boolean;
|
|
63
|
+
default: Voice;
|
|
64
|
+
description: string;
|
|
65
|
+
options: import("../types").Option[];
|
|
66
|
+
displayOptions: {
|
|
67
|
+
show: {
|
|
68
|
+
operation: string[];
|
|
69
|
+
resource?: string[] | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const getWaitParam: (operation: string | string[], resource?: string, description?: string) => {
|
|
74
|
+
displayName: string;
|
|
75
|
+
name: string;
|
|
76
|
+
type: NodePropertyTypes;
|
|
77
|
+
default: boolean;
|
|
78
|
+
description: string;
|
|
79
|
+
displayOptions: {
|
|
80
|
+
show: {
|
|
81
|
+
operation: string[];
|
|
82
|
+
resource?: string[] | undefined;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const getTypeParam: (operation: string | string[], resource?: string) => {
|
|
87
|
+
displayName: string;
|
|
88
|
+
name: string;
|
|
89
|
+
type: NodePropertyTypes;
|
|
90
|
+
default: SubtitleFileType;
|
|
91
|
+
options: {
|
|
92
|
+
name: string;
|
|
93
|
+
value: SubtitleFileType;
|
|
94
|
+
}[];
|
|
95
|
+
description: string;
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
operation: string[];
|
|
99
|
+
resource?: string[] | undefined;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare const getTextParam: (operation: string | string[], resource?: string) => {
|
|
104
|
+
displayName: string;
|
|
105
|
+
name: string;
|
|
106
|
+
type: NodePropertyTypes;
|
|
107
|
+
required: boolean;
|
|
108
|
+
typeOptions: {
|
|
109
|
+
rows: number;
|
|
110
|
+
};
|
|
111
|
+
default: string;
|
|
112
|
+
description: string;
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
operation: string[];
|
|
116
|
+
resource?: string[] | undefined;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export declare const getIdParam: (operation: string | string[], resource: string, name: string, displayName: string, description: string) => {
|
|
121
|
+
displayName: string;
|
|
122
|
+
name: string;
|
|
123
|
+
type: NodePropertyTypes;
|
|
124
|
+
required: boolean;
|
|
125
|
+
default: string;
|
|
126
|
+
description: string;
|
|
127
|
+
displayOptions: {
|
|
128
|
+
show: {
|
|
129
|
+
resource: string[];
|
|
130
|
+
operation: string[];
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
export declare const getResolutionParam: (operation: string | string[], resource?: string, required?: boolean, description?: string) => {
|
|
135
|
+
displayName: string;
|
|
136
|
+
name: string;
|
|
137
|
+
type: NodePropertyTypes;
|
|
138
|
+
required: boolean;
|
|
139
|
+
default: VideoResolution;
|
|
140
|
+
description: string;
|
|
141
|
+
options: import("../types").Option[];
|
|
142
|
+
displayOptions: {
|
|
143
|
+
show: {
|
|
144
|
+
operation: string[];
|
|
145
|
+
resource?: string[] | undefined;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export declare const getMuteParam: (operation: string | string[], resource?: string) => {
|
|
150
|
+
displayName: string;
|
|
151
|
+
name: string;
|
|
152
|
+
type: NodePropertyTypes;
|
|
153
|
+
default: boolean;
|
|
154
|
+
description: string;
|
|
155
|
+
displayOptions: {
|
|
156
|
+
show: {
|
|
157
|
+
operation: string[];
|
|
158
|
+
resource?: string[] | undefined;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export declare const getSecParam: (operation: string | string[], resource?: string) => {
|
|
163
|
+
displayName: string;
|
|
164
|
+
name: string;
|
|
165
|
+
type: NodePropertyTypes;
|
|
166
|
+
default: number;
|
|
167
|
+
description: string;
|
|
168
|
+
typeOptions: {
|
|
169
|
+
minValue: number;
|
|
170
|
+
numberPrecision: number;
|
|
171
|
+
};
|
|
172
|
+
displayOptions: {
|
|
173
|
+
show: {
|
|
174
|
+
operation: string[];
|
|
175
|
+
resource?: string[] | undefined;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export declare const getRotateParam: (operation: string | string[], resource?: string) => {
|
|
180
|
+
displayName: string;
|
|
181
|
+
name: string;
|
|
182
|
+
type: NodePropertyTypes;
|
|
183
|
+
default: number;
|
|
184
|
+
description: string;
|
|
185
|
+
options: {
|
|
186
|
+
name: string;
|
|
187
|
+
value: number;
|
|
188
|
+
}[];
|
|
189
|
+
displayOptions: {
|
|
190
|
+
show: {
|
|
191
|
+
operation: string[];
|
|
192
|
+
resource?: string[] | undefined;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|