@nxtedition/types 23.0.22 → 23.0.24
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/common/file.d.ts +1 -1
- package/dist/common/file.js +16 -13
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/nxtpression.d.ts +3 -3
- package/dist/common/nxtpression.js +39 -49
- package/dist/common/render-preset.d.ts +12 -24
- package/dist/common/render-preset.js +735 -257
- package/dist/common/render-profile.d.ts +28 -0
- package/dist/common/render-profile.js +726 -0
- package/dist/common/render-query.d.ts +18 -0
- package/dist/common/render-query.js +1093 -0
- package/dist/common/render-scene.d.ts +38 -0
- package/dist/common/render-scene.js +1116 -0
- package/dist/common/settings.d.ts +16 -4
- package/dist/common/settings.js +1293 -1026
- package/dist/domains/file.d.ts +9 -1
- package/dist/domains/file.js +1261 -0
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +6 -27
- package/dist/domains/media.js +401 -128
- package/dist/domains/panel.js +218 -675
- package/dist/domains/render-preset.d.ts +2 -2
- package/dist/domains/render.d.ts +44 -0
- package/dist/domains/render.js +1273 -0
- package/dist/domains/settings.js +1292 -1025
- package/dist/index.js +16 -12
- package/dist/schema.json +1018 -132
- package/package.json +1 -1
package/dist/domains/media.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isMediaSourceRecord = input => {
|
|
3
|
-
const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
3
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
4
4
|
const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
5
5
|
const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
|
|
6
6
|
const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
@@ -9,7 +9,7 @@ export const isMediaSourceRecord = input => {
|
|
|
9
9
|
};
|
|
10
10
|
export const assertMediaSourceRecord = (input, errorFactory) => {
|
|
11
11
|
const __is = input => {
|
|
12
|
-
const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
12
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
13
13
|
const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
14
14
|
const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
|
|
15
15
|
const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
@@ -19,7 +19,15 @@ export const assertMediaSourceRecord = (input, errorFactory) => {
|
|
|
19
19
|
if (false === __is(input))
|
|
20
20
|
((input, _path, _exceptionable = true) => {
|
|
21
21
|
const $guard = __typia.createAssert.guard;
|
|
22
|
-
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
22
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
23
|
+
path: _path + ".id",
|
|
24
|
+
expected: "(string | undefined)",
|
|
25
|
+
value: input.id
|
|
26
|
+
}, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
|
|
27
|
+
path: _path + ".preset",
|
|
28
|
+
expected: "(string | undefined)",
|
|
29
|
+
value: input.preset
|
|
30
|
+
}, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
|
|
23
31
|
path: _path + ".input",
|
|
24
32
|
expected: "(__type | undefined)",
|
|
25
33
|
value: input.input
|
|
@@ -114,20 +122,28 @@ export const assertMediaSourceRecord = (input, errorFactory) => {
|
|
|
114
122
|
}, errorFactory));
|
|
115
123
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
116
124
|
path: _path + "",
|
|
117
|
-
expected: "
|
|
125
|
+
expected: "RenderSceneObject",
|
|
118
126
|
value: input
|
|
119
127
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
120
128
|
path: _path + "",
|
|
121
|
-
expected: "
|
|
129
|
+
expected: "RenderSceneObject",
|
|
122
130
|
value: input
|
|
123
131
|
}, errorFactory);
|
|
124
132
|
})(input, "$input", true);
|
|
125
133
|
return input;
|
|
126
134
|
};
|
|
127
135
|
export const randomMediaSourceRecord = generator => {
|
|
128
|
-
const $pick = __typia.createRandom.pick;
|
|
129
136
|
const $generator = __typia.createRandom.generator;
|
|
137
|
+
const $pick = __typia.createRandom.pick;
|
|
130
138
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
139
|
+
id: $pick([
|
|
140
|
+
() => undefined,
|
|
141
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
142
|
+
])(),
|
|
143
|
+
preset: $pick([
|
|
144
|
+
() => undefined,
|
|
145
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
146
|
+
])(),
|
|
131
147
|
input: $pick([
|
|
132
148
|
() => undefined,
|
|
133
149
|
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
@@ -206,7 +222,7 @@ export const randomMediaSourceRecord = generator => {
|
|
|
206
222
|
};
|
|
207
223
|
export const assertGuardMediaSourceRecord = (input, errorFactory) => {
|
|
208
224
|
const __is = input => {
|
|
209
|
-
const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
225
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
210
226
|
const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
211
227
|
const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
|
|
212
228
|
const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
@@ -216,7 +232,15 @@ export const assertGuardMediaSourceRecord = (input, errorFactory) => {
|
|
|
216
232
|
if (false === __is(input))
|
|
217
233
|
((input, _path, _exceptionable = true) => {
|
|
218
234
|
const $guard = __typia.createAssertGuard.guard;
|
|
219
|
-
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
235
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
236
|
+
path: _path + ".id",
|
|
237
|
+
expected: "(string | undefined)",
|
|
238
|
+
value: input.id
|
|
239
|
+
}, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
|
|
240
|
+
path: _path + ".preset",
|
|
241
|
+
expected: "(string | undefined)",
|
|
242
|
+
value: input.preset
|
|
243
|
+
}, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
|
|
220
244
|
path: _path + ".input",
|
|
221
245
|
expected: "(__type | undefined)",
|
|
222
246
|
value: input.input
|
|
@@ -311,11 +335,11 @@ export const assertGuardMediaSourceRecord = (input, errorFactory) => {
|
|
|
311
335
|
}, errorFactory));
|
|
312
336
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
313
337
|
path: _path + "",
|
|
314
|
-
expected: "
|
|
338
|
+
expected: "RenderSceneObject",
|
|
315
339
|
value: input
|
|
316
340
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
317
341
|
path: _path + "",
|
|
318
|
-
expected: "
|
|
342
|
+
expected: "RenderSceneObject",
|
|
319
343
|
value: input
|
|
320
344
|
}, errorFactory);
|
|
321
345
|
})(input, "$input", true);
|
|
@@ -327,7 +351,7 @@ export const stringifyMediaSourceRecord = input => {
|
|
|
327
351
|
const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
328
352
|
const $string = __typia.json.createStringify.string;
|
|
329
353
|
const $tail = __typia.json.createStringify.tail;
|
|
330
|
-
const $so0 = input => `{${$tail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
|
|
354
|
+
const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
|
|
331
355
|
const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
|
|
332
356
|
const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
|
|
333
357
|
const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
|
|
@@ -336,7 +360,7 @@ export const stringifyMediaSourceRecord = input => {
|
|
|
336
360
|
};
|
|
337
361
|
export const assertStringifyMediaSourceRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
338
362
|
const __is = input => {
|
|
339
|
-
const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
363
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
|
|
340
364
|
const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
341
365
|
const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
|
|
342
366
|
const $io3 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
|
|
@@ -346,7 +370,15 @@ export const assertStringifyMediaSourceRecord = (input, errorFactory) => { const
|
|
|
346
370
|
if (false === __is(input))
|
|
347
371
|
((input, _path, _exceptionable = true) => {
|
|
348
372
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
349
|
-
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
373
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
374
|
+
path: _path + ".id",
|
|
375
|
+
expected: "(string | undefined)",
|
|
376
|
+
value: input.id
|
|
377
|
+
}, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
|
|
378
|
+
path: _path + ".preset",
|
|
379
|
+
expected: "(string | undefined)",
|
|
380
|
+
value: input.preset
|
|
381
|
+
}, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
|
|
350
382
|
path: _path + ".input",
|
|
351
383
|
expected: "(__type | undefined)",
|
|
352
384
|
value: input.input
|
|
@@ -441,11 +473,11 @@ export const assertStringifyMediaSourceRecord = (input, errorFactory) => { const
|
|
|
441
473
|
}, errorFactory));
|
|
442
474
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
443
475
|
path: _path + "",
|
|
444
|
-
expected: "
|
|
476
|
+
expected: "RenderSceneObject",
|
|
445
477
|
value: input
|
|
446
478
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
447
479
|
path: _path + "",
|
|
448
|
-
expected: "
|
|
480
|
+
expected: "RenderSceneObject",
|
|
449
481
|
value: input
|
|
450
482
|
}, errorFactory);
|
|
451
483
|
})(input, "$input", true);
|
|
@@ -457,7 +489,7 @@ export const assertStringifyMediaSourceRecord = (input, errorFactory) => { const
|
|
|
457
489
|
const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
458
490
|
const $string = __typia.json.createAssertStringify.string;
|
|
459
491
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
460
|
-
const $so0 = input => `{${$tail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
|
|
492
|
+
const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
|
|
461
493
|
const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
|
|
462
494
|
const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
|
|
463
495
|
const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
|
|
@@ -465,57 +497,111 @@ export const assertStringifyMediaSourceRecord = (input, errorFactory) => { const
|
|
|
465
497
|
return $so0(input);
|
|
466
498
|
}; return stringify(assert(input, errorFactory)); };
|
|
467
499
|
export const isMediaConsolidateRecord = input => {
|
|
468
|
-
const $io0 = input => true && true && (undefined === input.preset || "
|
|
469
|
-
const $io1 = input =>
|
|
470
|
-
const $io2 = input =>
|
|
500
|
+
const $io0 = input => true && true && (null !== input.preset && (undefined === input.preset || "string" === typeof input.preset || "object" === typeof input.preset && null !== input.preset && $io1(input.preset))) && true;
|
|
501
|
+
const $io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io2(elem))) || "object" === typeof input.profile && null !== input.profile && $io2(input.profile))));
|
|
502
|
+
const $io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
|
|
503
|
+
const $io3 = input => "string" === typeof input.engine;
|
|
504
|
+
const $io4 = input => "string" === typeof input.language;
|
|
505
|
+
const $io5 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
471
506
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
472
507
|
};
|
|
473
508
|
export const assertMediaConsolidateRecord = (input, errorFactory) => {
|
|
474
509
|
const __is = input => {
|
|
475
|
-
const $io0 = input => true && true && (undefined === input.preset || "
|
|
476
|
-
const $io1 = input =>
|
|
477
|
-
const $io2 = input =>
|
|
510
|
+
const $io0 = input => true && true && (null !== input.preset && (undefined === input.preset || "string" === typeof input.preset || "object" === typeof input.preset && null !== input.preset && $io1(input.preset))) && true;
|
|
511
|
+
const $io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io2(elem))) || "object" === typeof input.profile && null !== input.profile && $io2(input.profile))));
|
|
512
|
+
const $io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
|
|
513
|
+
const $io3 = input => "string" === typeof input.engine;
|
|
514
|
+
const $io4 = input => "string" === typeof input.language;
|
|
515
|
+
const $io5 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
478
516
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
479
517
|
};
|
|
480
518
|
if (false === __is(input))
|
|
481
519
|
((input, _path, _exceptionable = true) => {
|
|
482
520
|
const $guard = __typia.createAssert.guard;
|
|
483
|
-
const $ao0 = (input, _path, _exceptionable = true) => true && true && (
|
|
521
|
+
const $ao0 = (input, _path, _exceptionable = true) => true && true && ((null !== input.preset || $guard(_exceptionable, {
|
|
522
|
+
path: _path + ".preset",
|
|
523
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
524
|
+
value: input.preset
|
|
525
|
+
}, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || ("object" === typeof input.preset && null !== input.preset || $guard(_exceptionable, {
|
|
484
526
|
path: _path + ".preset",
|
|
485
|
-
expected: "(
|
|
527
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
486
528
|
value: input.preset
|
|
487
529
|
}, errorFactory)) && $ao1(input.preset, _path + ".preset", true && _exceptionable) || $guard(_exceptionable, {
|
|
488
530
|
path: _path + ".preset",
|
|
489
|
-
expected: "(
|
|
531
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
490
532
|
value: input.preset
|
|
491
|
-
}, errorFactory)) && true;
|
|
492
|
-
const $ao1 = (input, _path, _exceptionable = true) => (
|
|
533
|
+
}, errorFactory))) && true;
|
|
534
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
493
535
|
path: _path + ".type",
|
|
494
|
-
expected: "
|
|
536
|
+
expected: "string",
|
|
495
537
|
value: input.type
|
|
496
|
-
}, errorFactory)) &&
|
|
538
|
+
}, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
|
|
497
539
|
path: _path + ".profile",
|
|
498
|
-
expected: "(
|
|
540
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
499
541
|
value: input.profile
|
|
500
|
-
}, errorFactory)) && (undefined
|
|
542
|
+
}, errorFactory)) && (undefined !== input.profile || $guard(_exceptionable, {
|
|
501
543
|
path: _path + ".profile",
|
|
502
|
-
expected: "(
|
|
544
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
503
545
|
value: input.profile
|
|
504
|
-
}, errorFactory)) &&
|
|
546
|
+
}, errorFactory)) && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
|
|
547
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
548
|
+
expected: "(RenderProfileObject | string)",
|
|
549
|
+
value: elem
|
|
550
|
+
}, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
|
|
551
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
552
|
+
expected: "(RenderProfileObject | string)",
|
|
553
|
+
value: elem
|
|
554
|
+
}, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
555
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
556
|
+
expected: "(RenderProfileObject | string)",
|
|
557
|
+
value: elem
|
|
558
|
+
}, errorFactory)) && $ao2(elem, _path + ".profile[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
559
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
560
|
+
expected: "(RenderProfileObject | string)",
|
|
561
|
+
value: elem
|
|
562
|
+
}, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao2(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
|
|
563
|
+
path: _path + ".profile",
|
|
564
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
565
|
+
value: input.profile
|
|
566
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
505
567
|
path: _path + ".profile",
|
|
506
|
-
expected: "(
|
|
568
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
507
569
|
value: input.profile
|
|
508
570
|
}, errorFactory)));
|
|
509
|
-
const $ao2 = (input, _path, _exceptionable = true) => ("
|
|
571
|
+
const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
|
|
510
572
|
path: _path + ".format",
|
|
511
|
-
expected: "
|
|
573
|
+
expected: "string",
|
|
512
574
|
value: input.format
|
|
513
|
-
}, errorFactory)) &&
|
|
575
|
+
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
|
|
576
|
+
path: _path + ".transcribe",
|
|
577
|
+
expected: "(__type | undefined)",
|
|
578
|
+
value: input.transcribe
|
|
579
|
+
}, errorFactory)) && $ao3(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
580
|
+
path: _path + ".transcribe",
|
|
581
|
+
expected: "(__type | undefined)",
|
|
582
|
+
value: input.transcribe
|
|
583
|
+
}, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
|
|
584
|
+
path: _path + ".translate",
|
|
585
|
+
expected: "(__type.o1 | undefined)",
|
|
586
|
+
value: input.translate
|
|
587
|
+
}, errorFactory)) && $ao4(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
|
|
588
|
+
path: _path + ".translate",
|
|
589
|
+
expected: "(__type.o1 | undefined)",
|
|
590
|
+
value: input.translate
|
|
591
|
+
}, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
|
|
592
|
+
path: _path + ".audio",
|
|
593
|
+
expected: "(__type.o2 | undefined)",
|
|
594
|
+
value: input.audio
|
|
595
|
+
}, errorFactory)) && $ao5(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
|
|
596
|
+
path: _path + ".audio",
|
|
597
|
+
expected: "(__type.o2 | undefined)",
|
|
598
|
+
value: input.audio
|
|
599
|
+
}, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
|
|
514
600
|
path: _path + ".pick",
|
|
515
601
|
expected: "(Array<string> | undefined)",
|
|
516
602
|
value: input.pick
|
|
517
|
-
}, errorFactory)) && input.pick.every((elem,
|
|
518
|
-
path: _path + ".pick[" +
|
|
603
|
+
}, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
|
|
604
|
+
path: _path + ".pick[" + _index2 + "]",
|
|
519
605
|
expected: "string",
|
|
520
606
|
value: elem
|
|
521
607
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -523,6 +609,21 @@ export const assertMediaConsolidateRecord = (input, errorFactory) => {
|
|
|
523
609
|
expected: "(Array<string> | undefined)",
|
|
524
610
|
value: input.pick
|
|
525
611
|
}, errorFactory));
|
|
612
|
+
const $ao3 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
|
|
613
|
+
path: _path + ".engine",
|
|
614
|
+
expected: "string",
|
|
615
|
+
value: input.engine
|
|
616
|
+
}, errorFactory);
|
|
617
|
+
const $ao4 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
|
|
618
|
+
path: _path + ".language",
|
|
619
|
+
expected: "string",
|
|
620
|
+
value: input.language
|
|
621
|
+
}, errorFactory);
|
|
622
|
+
const $ao5 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
|
|
623
|
+
path: _path + ".pan",
|
|
624
|
+
expected: "(string | undefined)",
|
|
625
|
+
value: input.pan
|
|
626
|
+
}, errorFactory);
|
|
526
627
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
527
628
|
path: _path + "",
|
|
528
629
|
expected: "MediaConsolidateRecord",
|
|
@@ -549,6 +650,7 @@ export const randomMediaConsolidateRecord = generator => {
|
|
|
549
650
|
])(),
|
|
550
651
|
preset: $pick([
|
|
551
652
|
() => undefined,
|
|
653
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
552
654
|
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
553
655
|
])(),
|
|
554
656
|
error: $pick([
|
|
@@ -557,32 +659,29 @@ export const randomMediaConsolidateRecord = generator => {
|
|
|
557
659
|
])()
|
|
558
660
|
});
|
|
559
661
|
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
560
|
-
type: $
|
|
561
|
-
() => undefined,
|
|
562
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
563
|
-
])(),
|
|
564
|
-
description: $pick([
|
|
565
|
-
() => "any type used...",
|
|
566
|
-
() => undefined
|
|
567
|
-
])(),
|
|
662
|
+
type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
568
663
|
profile: $pick([
|
|
569
|
-
() => undefined,
|
|
570
664
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
665
|
+
() => (generator?.array ?? $generator.array)(() => $pick([
|
|
666
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
667
|
+
() => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
|
|
668
|
+
])()),
|
|
571
669
|
() => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
|
|
572
670
|
])()
|
|
573
671
|
});
|
|
574
672
|
const $ro2 = (_recursive = false, _depth = 0) => ({
|
|
575
|
-
format: $
|
|
576
|
-
() => "png",
|
|
577
|
-
() => "mp4"
|
|
578
|
-
])(),
|
|
673
|
+
format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
579
674
|
transcribe: $pick([
|
|
580
|
-
() =>
|
|
581
|
-
() =>
|
|
675
|
+
() => undefined,
|
|
676
|
+
() => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
|
|
677
|
+
])(),
|
|
678
|
+
translate: $pick([
|
|
679
|
+
() => undefined,
|
|
680
|
+
() => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
|
|
582
681
|
])(),
|
|
583
682
|
audio: $pick([
|
|
584
|
-
() =>
|
|
585
|
-
() =>
|
|
683
|
+
() => undefined,
|
|
684
|
+
() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
|
|
586
685
|
])(),
|
|
587
686
|
video: $pick([
|
|
588
687
|
() => "any type used...",
|
|
@@ -593,54 +692,117 @@ export const randomMediaConsolidateRecord = generator => {
|
|
|
593
692
|
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
594
693
|
])()
|
|
595
694
|
});
|
|
695
|
+
const $ro3 = (_recursive = false, _depth = 0) => ({
|
|
696
|
+
engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
697
|
+
});
|
|
698
|
+
const $ro4 = (_recursive = false, _depth = 0) => ({
|
|
699
|
+
language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
700
|
+
});
|
|
701
|
+
const $ro5 = (_recursive = false, _depth = 0) => ({
|
|
702
|
+
pan: $pick([
|
|
703
|
+
() => undefined,
|
|
704
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
705
|
+
])()
|
|
706
|
+
});
|
|
596
707
|
return $ro0();
|
|
597
708
|
};
|
|
598
709
|
export const assertGuardMediaConsolidateRecord = (input, errorFactory) => {
|
|
599
710
|
const __is = input => {
|
|
600
|
-
const $io0 = input => true && true && (undefined === input.preset || "
|
|
601
|
-
const $io1 = input =>
|
|
602
|
-
const $io2 = input =>
|
|
711
|
+
const $io0 = input => true && true && (null !== input.preset && (undefined === input.preset || "string" === typeof input.preset || "object" === typeof input.preset && null !== input.preset && $io1(input.preset))) && true;
|
|
712
|
+
const $io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io2(elem))) || "object" === typeof input.profile && null !== input.profile && $io2(input.profile))));
|
|
713
|
+
const $io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
|
|
714
|
+
const $io3 = input => "string" === typeof input.engine;
|
|
715
|
+
const $io4 = input => "string" === typeof input.language;
|
|
716
|
+
const $io5 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
603
717
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
604
718
|
};
|
|
605
719
|
if (false === __is(input))
|
|
606
720
|
((input, _path, _exceptionable = true) => {
|
|
607
721
|
const $guard = __typia.createAssertGuard.guard;
|
|
608
|
-
const $ao0 = (input, _path, _exceptionable = true) => true && true && (
|
|
722
|
+
const $ao0 = (input, _path, _exceptionable = true) => true && true && ((null !== input.preset || $guard(_exceptionable, {
|
|
609
723
|
path: _path + ".preset",
|
|
610
|
-
expected: "(
|
|
724
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
725
|
+
value: input.preset
|
|
726
|
+
}, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || ("object" === typeof input.preset && null !== input.preset || $guard(_exceptionable, {
|
|
727
|
+
path: _path + ".preset",
|
|
728
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
611
729
|
value: input.preset
|
|
612
730
|
}, errorFactory)) && $ao1(input.preset, _path + ".preset", true && _exceptionable) || $guard(_exceptionable, {
|
|
613
731
|
path: _path + ".preset",
|
|
614
|
-
expected: "(
|
|
732
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
615
733
|
value: input.preset
|
|
616
|
-
}, errorFactory)) && true;
|
|
617
|
-
const $ao1 = (input, _path, _exceptionable = true) => (
|
|
734
|
+
}, errorFactory))) && true;
|
|
735
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
618
736
|
path: _path + ".type",
|
|
619
|
-
expected: "
|
|
737
|
+
expected: "string",
|
|
620
738
|
value: input.type
|
|
621
|
-
}, errorFactory)) &&
|
|
739
|
+
}, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
|
|
622
740
|
path: _path + ".profile",
|
|
623
|
-
expected: "(
|
|
741
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
624
742
|
value: input.profile
|
|
625
|
-
}, errorFactory)) && (undefined
|
|
743
|
+
}, errorFactory)) && (undefined !== input.profile || $guard(_exceptionable, {
|
|
626
744
|
path: _path + ".profile",
|
|
627
|
-
expected: "(
|
|
745
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
628
746
|
value: input.profile
|
|
629
|
-
}, errorFactory)) &&
|
|
747
|
+
}, errorFactory)) && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
|
|
748
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
749
|
+
expected: "(RenderProfileObject | string)",
|
|
750
|
+
value: elem
|
|
751
|
+
}, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
|
|
752
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
753
|
+
expected: "(RenderProfileObject | string)",
|
|
754
|
+
value: elem
|
|
755
|
+
}, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
756
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
757
|
+
expected: "(RenderProfileObject | string)",
|
|
758
|
+
value: elem
|
|
759
|
+
}, errorFactory)) && $ao2(elem, _path + ".profile[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
760
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
761
|
+
expected: "(RenderProfileObject | string)",
|
|
762
|
+
value: elem
|
|
763
|
+
}, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao2(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
|
|
630
764
|
path: _path + ".profile",
|
|
631
|
-
expected: "(
|
|
765
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
766
|
+
value: input.profile
|
|
767
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
768
|
+
path: _path + ".profile",
|
|
769
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
632
770
|
value: input.profile
|
|
633
771
|
}, errorFactory)));
|
|
634
|
-
const $ao2 = (input, _path, _exceptionable = true) => ("
|
|
772
|
+
const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
|
|
635
773
|
path: _path + ".format",
|
|
636
|
-
expected: "
|
|
774
|
+
expected: "string",
|
|
637
775
|
value: input.format
|
|
638
|
-
}, errorFactory)) &&
|
|
776
|
+
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
|
|
777
|
+
path: _path + ".transcribe",
|
|
778
|
+
expected: "(__type | undefined)",
|
|
779
|
+
value: input.transcribe
|
|
780
|
+
}, errorFactory)) && $ao3(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
781
|
+
path: _path + ".transcribe",
|
|
782
|
+
expected: "(__type | undefined)",
|
|
783
|
+
value: input.transcribe
|
|
784
|
+
}, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
|
|
785
|
+
path: _path + ".translate",
|
|
786
|
+
expected: "(__type.o1 | undefined)",
|
|
787
|
+
value: input.translate
|
|
788
|
+
}, errorFactory)) && $ao4(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
|
|
789
|
+
path: _path + ".translate",
|
|
790
|
+
expected: "(__type.o1 | undefined)",
|
|
791
|
+
value: input.translate
|
|
792
|
+
}, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
|
|
793
|
+
path: _path + ".audio",
|
|
794
|
+
expected: "(__type.o2 | undefined)",
|
|
795
|
+
value: input.audio
|
|
796
|
+
}, errorFactory)) && $ao5(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
|
|
797
|
+
path: _path + ".audio",
|
|
798
|
+
expected: "(__type.o2 | undefined)",
|
|
799
|
+
value: input.audio
|
|
800
|
+
}, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
|
|
639
801
|
path: _path + ".pick",
|
|
640
802
|
expected: "(Array<string> | undefined)",
|
|
641
803
|
value: input.pick
|
|
642
|
-
}, errorFactory)) && input.pick.every((elem,
|
|
643
|
-
path: _path + ".pick[" +
|
|
804
|
+
}, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
|
|
805
|
+
path: _path + ".pick[" + _index2 + "]",
|
|
644
806
|
expected: "string",
|
|
645
807
|
value: elem
|
|
646
808
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -648,6 +810,21 @@ export const assertGuardMediaConsolidateRecord = (input, errorFactory) => {
|
|
|
648
810
|
expected: "(Array<string> | undefined)",
|
|
649
811
|
value: input.pick
|
|
650
812
|
}, errorFactory));
|
|
813
|
+
const $ao3 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
|
|
814
|
+
path: _path + ".engine",
|
|
815
|
+
expected: "string",
|
|
816
|
+
value: input.engine
|
|
817
|
+
}, errorFactory);
|
|
818
|
+
const $ao4 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
|
|
819
|
+
path: _path + ".language",
|
|
820
|
+
expected: "string",
|
|
821
|
+
value: input.language
|
|
822
|
+
}, errorFactory);
|
|
823
|
+
const $ao5 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
|
|
824
|
+
path: _path + ".pan",
|
|
825
|
+
expected: "(string | undefined)",
|
|
826
|
+
value: input.pan
|
|
827
|
+
}, errorFactory);
|
|
651
828
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
652
829
|
path: _path + "",
|
|
653
830
|
expected: "MediaConsolidateRecord",
|
|
@@ -660,80 +837,146 @@ export const assertGuardMediaConsolidateRecord = (input, errorFactory) => {
|
|
|
660
837
|
})(input, "$input", true);
|
|
661
838
|
};
|
|
662
839
|
export const stringifyMediaConsolidateRecord = input => {
|
|
663
|
-
const $io1 = input =>
|
|
664
|
-
const $io2 = input =>
|
|
665
|
-
const $
|
|
840
|
+
const $io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io2(elem))) || "object" === typeof input.profile && null !== input.profile && $io2(input.profile))));
|
|
841
|
+
const $io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
|
|
842
|
+
const $io3 = input => "string" === typeof input.engine;
|
|
843
|
+
const $io4 = input => "string" === typeof input.language;
|
|
844
|
+
const $io5 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
666
845
|
const $string = __typia.json.createStringify.string;
|
|
667
846
|
const $throws = __typia.json.createStringify.throws;
|
|
668
|
-
const $
|
|
669
|
-
const $
|
|
847
|
+
const $tail = __typia.json.createStringify.tail;
|
|
848
|
+
const $so0 = input => `{${$tail(`${undefined === input.source || "function" === typeof input.source ? "" : `"source":${undefined !== input.source ? JSON.stringify(input.source) : undefined},`}${undefined === input.target || "function" === typeof input.target ? "" : `"target":${undefined !== input.target ? JSON.stringify(input.target) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? (() => {
|
|
849
|
+
if ("string" === typeof input.preset)
|
|
850
|
+
return $string(input.preset);
|
|
851
|
+
if ("object" === typeof input.preset && null !== input.preset)
|
|
852
|
+
return $so1(input.preset);
|
|
853
|
+
$throws({
|
|
854
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
855
|
+
value: input.preset
|
|
856
|
+
});
|
|
857
|
+
})() : undefined},`}${undefined === input.error || "function" === typeof input.error ? "" : `"error":${undefined !== input.error ? JSON.stringify(input.error) : undefined}`}`)}}`;
|
|
858
|
+
const $so1 = input => `{"type":${$string(input.type)},"profile":${(() => {
|
|
670
859
|
if ("string" === typeof input.profile)
|
|
671
860
|
return $string(input.profile);
|
|
861
|
+
if (Array.isArray(input.profile))
|
|
862
|
+
return `[${input.profile.map(elem => (() => {
|
|
863
|
+
if ("string" === typeof elem)
|
|
864
|
+
return $string(elem);
|
|
865
|
+
if ("object" === typeof elem && null !== elem)
|
|
866
|
+
return $so2(elem);
|
|
867
|
+
$throws({
|
|
868
|
+
expected: "(RenderProfileObject | string)",
|
|
869
|
+
value: elem
|
|
870
|
+
});
|
|
871
|
+
})()).join(",")}]`;
|
|
672
872
|
if ("object" === typeof input.profile && null !== input.profile)
|
|
673
873
|
return $so2(input.profile);
|
|
674
874
|
$throws({
|
|
675
|
-
expected: "(
|
|
875
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
676
876
|
value: input.profile
|
|
677
877
|
});
|
|
678
|
-
})() : undefined}`}`)}}`;
|
|
679
|
-
const $so2 = input => `{${undefined === input.transcribe || "function" === typeof input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? JSON.stringify(input.transcribe) : undefined},`}${undefined === input.audio || "function" === typeof input.audio ? "" : `"audio":${undefined !== input.audio ? JSON.stringify(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${(() => {
|
|
680
|
-
if ("string" === typeof input.format)
|
|
681
|
-
return $string(input.format);
|
|
682
|
-
if ("string" === typeof input.format)
|
|
683
|
-
return "\"" + input.format + "\"";
|
|
684
|
-
$throws({
|
|
685
|
-
expected: "(\"mp4\" | \"png\")",
|
|
686
|
-
value: input.format
|
|
687
|
-
});
|
|
688
878
|
})()}}`;
|
|
879
|
+
const $so2 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so5(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
|
|
880
|
+
const $so5 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
|
|
689
881
|
return $so0(input);
|
|
690
882
|
};
|
|
691
883
|
export const assertStringifyMediaConsolidateRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
692
884
|
const __is = input => {
|
|
693
|
-
const $io0 = input => true && true && (undefined === input.preset || "
|
|
694
|
-
const $io1 = input =>
|
|
695
|
-
const $io2 = input =>
|
|
885
|
+
const $io0 = input => true && true && (null !== input.preset && (undefined === input.preset || "string" === typeof input.preset || "object" === typeof input.preset && null !== input.preset && $io1(input.preset))) && true;
|
|
886
|
+
const $io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io2(elem))) || "object" === typeof input.profile && null !== input.profile && $io2(input.profile))));
|
|
887
|
+
const $io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
|
|
888
|
+
const $io3 = input => "string" === typeof input.engine;
|
|
889
|
+
const $io4 = input => "string" === typeof input.language;
|
|
890
|
+
const $io5 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
696
891
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
697
892
|
};
|
|
698
893
|
if (false === __is(input))
|
|
699
894
|
((input, _path, _exceptionable = true) => {
|
|
700
895
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
701
|
-
const $ao0 = (input, _path, _exceptionable = true) => true && true && (
|
|
896
|
+
const $ao0 = (input, _path, _exceptionable = true) => true && true && ((null !== input.preset || $guard(_exceptionable, {
|
|
897
|
+
path: _path + ".preset",
|
|
898
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
899
|
+
value: input.preset
|
|
900
|
+
}, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || ("object" === typeof input.preset && null !== input.preset || $guard(_exceptionable, {
|
|
702
901
|
path: _path + ".preset",
|
|
703
|
-
expected: "(
|
|
902
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
704
903
|
value: input.preset
|
|
705
904
|
}, errorFactory)) && $ao1(input.preset, _path + ".preset", true && _exceptionable) || $guard(_exceptionable, {
|
|
706
905
|
path: _path + ".preset",
|
|
707
|
-
expected: "(
|
|
906
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
708
907
|
value: input.preset
|
|
709
|
-
}, errorFactory)) && true;
|
|
710
|
-
const $ao1 = (input, _path, _exceptionable = true) => (
|
|
908
|
+
}, errorFactory))) && true;
|
|
909
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
711
910
|
path: _path + ".type",
|
|
712
|
-
expected: "
|
|
911
|
+
expected: "string",
|
|
713
912
|
value: input.type
|
|
714
|
-
}, errorFactory)) &&
|
|
913
|
+
}, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
|
|
914
|
+
path: _path + ".profile",
|
|
915
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
916
|
+
value: input.profile
|
|
917
|
+
}, errorFactory)) && (undefined !== input.profile || $guard(_exceptionable, {
|
|
715
918
|
path: _path + ".profile",
|
|
716
|
-
expected: "(
|
|
919
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
717
920
|
value: input.profile
|
|
718
|
-
}, errorFactory)) && (
|
|
921
|
+
}, errorFactory)) && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
|
|
922
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
923
|
+
expected: "(RenderProfileObject | string)",
|
|
924
|
+
value: elem
|
|
925
|
+
}, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
|
|
926
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
927
|
+
expected: "(RenderProfileObject | string)",
|
|
928
|
+
value: elem
|
|
929
|
+
}, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
930
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
931
|
+
expected: "(RenderProfileObject | string)",
|
|
932
|
+
value: elem
|
|
933
|
+
}, errorFactory)) && $ao2(elem, _path + ".profile[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
934
|
+
path: _path + ".profile[" + _index1 + "]",
|
|
935
|
+
expected: "(RenderProfileObject | string)",
|
|
936
|
+
value: elem
|
|
937
|
+
}, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao2(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
|
|
719
938
|
path: _path + ".profile",
|
|
720
|
-
expected: "(
|
|
939
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
721
940
|
value: input.profile
|
|
722
|
-
}, errorFactory))
|
|
941
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
723
942
|
path: _path + ".profile",
|
|
724
|
-
expected: "(
|
|
943
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
725
944
|
value: input.profile
|
|
726
945
|
}, errorFactory)));
|
|
727
|
-
const $ao2 = (input, _path, _exceptionable = true) => ("
|
|
946
|
+
const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
|
|
728
947
|
path: _path + ".format",
|
|
729
|
-
expected: "
|
|
948
|
+
expected: "string",
|
|
730
949
|
value: input.format
|
|
731
|
-
}, errorFactory)) &&
|
|
950
|
+
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
|
|
951
|
+
path: _path + ".transcribe",
|
|
952
|
+
expected: "(__type | undefined)",
|
|
953
|
+
value: input.transcribe
|
|
954
|
+
}, errorFactory)) && $ao3(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
955
|
+
path: _path + ".transcribe",
|
|
956
|
+
expected: "(__type | undefined)",
|
|
957
|
+
value: input.transcribe
|
|
958
|
+
}, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
|
|
959
|
+
path: _path + ".translate",
|
|
960
|
+
expected: "(__type.o1 | undefined)",
|
|
961
|
+
value: input.translate
|
|
962
|
+
}, errorFactory)) && $ao4(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
|
|
963
|
+
path: _path + ".translate",
|
|
964
|
+
expected: "(__type.o1 | undefined)",
|
|
965
|
+
value: input.translate
|
|
966
|
+
}, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
|
|
967
|
+
path: _path + ".audio",
|
|
968
|
+
expected: "(__type.o2 | undefined)",
|
|
969
|
+
value: input.audio
|
|
970
|
+
}, errorFactory)) && $ao5(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
|
|
971
|
+
path: _path + ".audio",
|
|
972
|
+
expected: "(__type.o2 | undefined)",
|
|
973
|
+
value: input.audio
|
|
974
|
+
}, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
|
|
732
975
|
path: _path + ".pick",
|
|
733
976
|
expected: "(Array<string> | undefined)",
|
|
734
977
|
value: input.pick
|
|
735
|
-
}, errorFactory)) && input.pick.every((elem,
|
|
736
|
-
path: _path + ".pick[" +
|
|
978
|
+
}, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
|
|
979
|
+
path: _path + ".pick[" + _index2 + "]",
|
|
737
980
|
expected: "string",
|
|
738
981
|
value: elem
|
|
739
982
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -741,6 +984,21 @@ export const assertStringifyMediaConsolidateRecord = (input, errorFactory) => {
|
|
|
741
984
|
expected: "(Array<string> | undefined)",
|
|
742
985
|
value: input.pick
|
|
743
986
|
}, errorFactory));
|
|
987
|
+
const $ao3 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
|
|
988
|
+
path: _path + ".engine",
|
|
989
|
+
expected: "string",
|
|
990
|
+
value: input.engine
|
|
991
|
+
}, errorFactory);
|
|
992
|
+
const $ao4 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
|
|
993
|
+
path: _path + ".language",
|
|
994
|
+
expected: "string",
|
|
995
|
+
value: input.language
|
|
996
|
+
}, errorFactory);
|
|
997
|
+
const $ao5 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
|
|
998
|
+
path: _path + ".pan",
|
|
999
|
+
expected: "(string | undefined)",
|
|
1000
|
+
value: input.pan
|
|
1001
|
+
}, errorFactory);
|
|
744
1002
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
745
1003
|
path: _path + "",
|
|
746
1004
|
expected: "MediaConsolidateRecord",
|
|
@@ -753,32 +1011,47 @@ export const assertStringifyMediaConsolidateRecord = (input, errorFactory) => {
|
|
|
753
1011
|
})(input, "$input", true);
|
|
754
1012
|
return input;
|
|
755
1013
|
}; const stringify = input => {
|
|
756
|
-
const $io1 = input =>
|
|
757
|
-
const $io2 = input =>
|
|
758
|
-
const $
|
|
1014
|
+
const $io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io2(elem))) || "object" === typeof input.profile && null !== input.profile && $io2(input.profile))));
|
|
1015
|
+
const $io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
|
|
1016
|
+
const $io3 = input => "string" === typeof input.engine;
|
|
1017
|
+
const $io4 = input => "string" === typeof input.language;
|
|
1018
|
+
const $io5 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
759
1019
|
const $string = __typia.json.createAssertStringify.string;
|
|
760
1020
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
761
|
-
const $
|
|
762
|
-
const $
|
|
1021
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
1022
|
+
const $so0 = input => `{${$tail(`${undefined === input.source || "function" === typeof input.source ? "" : `"source":${undefined !== input.source ? JSON.stringify(input.source) : undefined},`}${undefined === input.target || "function" === typeof input.target ? "" : `"target":${undefined !== input.target ? JSON.stringify(input.target) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? (() => {
|
|
1023
|
+
if ("string" === typeof input.preset)
|
|
1024
|
+
return $string(input.preset);
|
|
1025
|
+
if ("object" === typeof input.preset && null !== input.preset)
|
|
1026
|
+
return $so1(input.preset);
|
|
1027
|
+
$throws({
|
|
1028
|
+
expected: "(RenderPresetObject | string | undefined)",
|
|
1029
|
+
value: input.preset
|
|
1030
|
+
});
|
|
1031
|
+
})() : undefined},`}${undefined === input.error || "function" === typeof input.error ? "" : `"error":${undefined !== input.error ? JSON.stringify(input.error) : undefined}`}`)}}`;
|
|
1032
|
+
const $so1 = input => `{"type":${$string(input.type)},"profile":${(() => {
|
|
763
1033
|
if ("string" === typeof input.profile)
|
|
764
1034
|
return $string(input.profile);
|
|
1035
|
+
if (Array.isArray(input.profile))
|
|
1036
|
+
return `[${input.profile.map(elem => (() => {
|
|
1037
|
+
if ("string" === typeof elem)
|
|
1038
|
+
return $string(elem);
|
|
1039
|
+
if ("object" === typeof elem && null !== elem)
|
|
1040
|
+
return $so2(elem);
|
|
1041
|
+
$throws({
|
|
1042
|
+
expected: "(RenderProfileObject | string)",
|
|
1043
|
+
value: elem
|
|
1044
|
+
});
|
|
1045
|
+
})()).join(",")}]`;
|
|
765
1046
|
if ("object" === typeof input.profile && null !== input.profile)
|
|
766
1047
|
return $so2(input.profile);
|
|
767
1048
|
$throws({
|
|
768
|
-
expected: "(
|
|
1049
|
+
expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
|
|
769
1050
|
value: input.profile
|
|
770
1051
|
});
|
|
771
|
-
})() : undefined}`}`)}}`;
|
|
772
|
-
const $so2 = input => `{${undefined === input.transcribe || "function" === typeof input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? JSON.stringify(input.transcribe) : undefined},`}${undefined === input.audio || "function" === typeof input.audio ? "" : `"audio":${undefined !== input.audio ? JSON.stringify(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${(() => {
|
|
773
|
-
if ("string" === typeof input.format)
|
|
774
|
-
return $string(input.format);
|
|
775
|
-
if ("string" === typeof input.format)
|
|
776
|
-
return "\"" + input.format + "\"";
|
|
777
|
-
$throws({
|
|
778
|
-
expected: "(\"mp4\" | \"png\")",
|
|
779
|
-
value: input.format
|
|
780
|
-
});
|
|
781
1052
|
})()}}`;
|
|
1053
|
+
const $so2 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so5(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
|
|
1054
|
+
const $so5 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
|
|
782
1055
|
return $so0(input);
|
|
783
1056
|
}; return stringify(assert(input, errorFactory)); };
|
|
784
1057
|
export const isMediaRendersRecord = input => {
|