@nxtedition/types 23.0.17 → 23.0.19
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/settings.d.ts +11 -4
- package/dist/common/settings.js +541 -408
- package/dist/domains/comment.d.ts +2 -2
- package/dist/domains/comment.js +299 -123
- package/dist/domains/settings.js +543 -403
- package/dist/domains/subtitle-style.d.ts +2 -0
- package/dist/domains/subtitle-style.js +38 -6
- package/dist/schema.json +45 -2
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ export interface SubtitleStyleDomainRecord {
|
|
|
26
26
|
marginR?: string;
|
|
27
27
|
marginV?: string;
|
|
28
28
|
encoding?: string;
|
|
29
|
+
scaledBorderAndShadow?: boolean;
|
|
30
|
+
futureWordWrapping?: boolean;
|
|
29
31
|
}
|
|
30
32
|
export declare const isSubtitleStyleDomainRecord: (input: unknown) => input is SubtitleStyleDomainRecord;
|
|
31
33
|
export declare const assertSubtitleStyleDomainRecord: (input: unknown) => SubtitleStyleDomainRecord;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isSubtitleStyleDomainRecord = input => {
|
|
3
|
-
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
3
|
+
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping);
|
|
4
4
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
5
|
};
|
|
6
6
|
export const assertSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
7
7
|
const __is = input => {
|
|
8
|
-
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
8
|
+
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping);
|
|
9
9
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
10
10
|
};
|
|
11
11
|
if (false === __is(input))
|
|
@@ -103,6 +103,14 @@ export const assertSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
|
103
103
|
path: _path + ".encoding",
|
|
104
104
|
expected: "(string | undefined)",
|
|
105
105
|
value: input.encoding
|
|
106
|
+
}, errorFactory)) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow || $guard(_exceptionable, {
|
|
107
|
+
path: _path + ".scaledBorderAndShadow",
|
|
108
|
+
expected: "(boolean | undefined)",
|
|
109
|
+
value: input.scaledBorderAndShadow
|
|
110
|
+
}, errorFactory)) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping || $guard(_exceptionable, {
|
|
111
|
+
path: _path + ".futureWordWrapping",
|
|
112
|
+
expected: "(boolean | undefined)",
|
|
113
|
+
value: input.futureWordWrapping
|
|
106
114
|
}, errorFactory));
|
|
107
115
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
108
116
|
path: _path + "",
|
|
@@ -211,13 +219,21 @@ export const randomSubtitleStyleDomainRecord = generator => {
|
|
|
211
219
|
encoding: $pick([
|
|
212
220
|
() => undefined,
|
|
213
221
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
222
|
+
])(),
|
|
223
|
+
scaledBorderAndShadow: $pick([
|
|
224
|
+
() => undefined,
|
|
225
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
226
|
+
])(),
|
|
227
|
+
futureWordWrapping: $pick([
|
|
228
|
+
() => undefined,
|
|
229
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
214
230
|
])()
|
|
215
231
|
});
|
|
216
232
|
return $ro0();
|
|
217
233
|
};
|
|
218
234
|
export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
219
235
|
const __is = input => {
|
|
220
|
-
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
236
|
+
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping);
|
|
221
237
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
222
238
|
};
|
|
223
239
|
if (false === __is(input))
|
|
@@ -315,6 +331,14 @@ export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
|
315
331
|
path: _path + ".encoding",
|
|
316
332
|
expected: "(string | undefined)",
|
|
317
333
|
value: input.encoding
|
|
334
|
+
}, errorFactory)) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow || $guard(_exceptionable, {
|
|
335
|
+
path: _path + ".scaledBorderAndShadow",
|
|
336
|
+
expected: "(boolean | undefined)",
|
|
337
|
+
value: input.scaledBorderAndShadow
|
|
338
|
+
}, errorFactory)) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping || $guard(_exceptionable, {
|
|
339
|
+
path: _path + ".futureWordWrapping",
|
|
340
|
+
expected: "(boolean | undefined)",
|
|
341
|
+
value: input.futureWordWrapping
|
|
318
342
|
}, errorFactory));
|
|
319
343
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
320
344
|
path: _path + "",
|
|
@@ -330,12 +354,12 @@ export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
|
330
354
|
export const stringifySubtitleStyleDomainRecord = input => {
|
|
331
355
|
const $string = __typia.json.createStringify.string;
|
|
332
356
|
const $tail = __typia.json.createStringify.tail;
|
|
333
|
-
const $so0 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
|
|
357
|
+
const $so0 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.scaledBorderAndShadow ? "" : `"scaledBorderAndShadow":${undefined !== input.scaledBorderAndShadow ? input.scaledBorderAndShadow : undefined},`}${undefined === input.futureWordWrapping ? "" : `"futureWordWrapping":${undefined !== input.futureWordWrapping ? input.futureWordWrapping : undefined}`}`)}}`;
|
|
334
358
|
return $so0(input);
|
|
335
359
|
};
|
|
336
360
|
export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
337
361
|
const __is = input => {
|
|
338
|
-
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
362
|
+
const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping);
|
|
339
363
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
340
364
|
};
|
|
341
365
|
if (false === __is(input))
|
|
@@ -433,6 +457,14 @@ export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) =>
|
|
|
433
457
|
path: _path + ".encoding",
|
|
434
458
|
expected: "(string | undefined)",
|
|
435
459
|
value: input.encoding
|
|
460
|
+
}, errorFactory)) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow || $guard(_exceptionable, {
|
|
461
|
+
path: _path + ".scaledBorderAndShadow",
|
|
462
|
+
expected: "(boolean | undefined)",
|
|
463
|
+
value: input.scaledBorderAndShadow
|
|
464
|
+
}, errorFactory)) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping || $guard(_exceptionable, {
|
|
465
|
+
path: _path + ".futureWordWrapping",
|
|
466
|
+
expected: "(boolean | undefined)",
|
|
467
|
+
value: input.futureWordWrapping
|
|
436
468
|
}, errorFactory));
|
|
437
469
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
438
470
|
path: _path + "",
|
|
@@ -448,6 +480,6 @@ export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) =>
|
|
|
448
480
|
}; const stringify = input => {
|
|
449
481
|
const $string = __typia.json.createAssertStringify.string;
|
|
450
482
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
451
|
-
const $so0 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
|
|
483
|
+
const $so0 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.scaledBorderAndShadow ? "" : `"scaledBorderAndShadow":${undefined !== input.scaledBorderAndShadow ? input.scaledBorderAndShadow : undefined},`}${undefined === input.futureWordWrapping ? "" : `"futureWordWrapping":${undefined !== input.futureWordWrapping ? input.futureWordWrapping : undefined}`}`)}}`;
|
|
452
484
|
return $so0(input);
|
|
453
485
|
}; return stringify(assert(input, errorFactory)); };
|
package/dist/schema.json
CHANGED
|
@@ -3057,7 +3057,7 @@
|
|
|
3057
3057
|
"type": "boolean"
|
|
3058
3058
|
},
|
|
3059
3059
|
"edit": {
|
|
3060
|
-
"$ref": "#/definitions/PartialObjectDeep<{thumbnailView:\"none\"|\"filmStrip\"|\"thumbnail\";},{}>"
|
|
3060
|
+
"$ref": "#/definitions/PartialObjectDeep<{thumbnailView:\"none\"|\"filmStrip\"|\"thumbnail\";voiceOver:{inputDevice?:string;inputGainDb:number;backgroundReductionDb:number;recordMode:\"instant\"|\"punchAndRoll\";preRollDuration:number;};},{}>"
|
|
3061
3061
|
},
|
|
3062
3062
|
"events": {
|
|
3063
3063
|
"$ref": "#/definitions/PartialObjectDeep<{graphicBaseTemplate?:string;},{}>"
|
|
@@ -3458,6 +3458,32 @@
|
|
|
3458
3458
|
},
|
|
3459
3459
|
"type": "object"
|
|
3460
3460
|
},
|
|
3461
|
+
"PartialObjectDeep<{inputDevice?:string;inputGainDb:number;backgroundReductionDb:number;recordMode:\"instant\"|\"punchAndRoll\";preRollDuration:number;},{}>": {
|
|
3462
|
+
"additionalProperties": false,
|
|
3463
|
+
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
3464
|
+
"properties": {
|
|
3465
|
+
"backgroundReductionDb": {
|
|
3466
|
+
"type": "number"
|
|
3467
|
+
},
|
|
3468
|
+
"inputDevice": {
|
|
3469
|
+
"type": "string"
|
|
3470
|
+
},
|
|
3471
|
+
"inputGainDb": {
|
|
3472
|
+
"type": "number"
|
|
3473
|
+
},
|
|
3474
|
+
"preRollDuration": {
|
|
3475
|
+
"type": "number"
|
|
3476
|
+
},
|
|
3477
|
+
"recordMode": {
|
|
3478
|
+
"enum": [
|
|
3479
|
+
"instant",
|
|
3480
|
+
"punchAndRoll"
|
|
3481
|
+
],
|
|
3482
|
+
"type": "string"
|
|
3483
|
+
}
|
|
3484
|
+
},
|
|
3485
|
+
"type": "object"
|
|
3486
|
+
},
|
|
3461
3487
|
"PartialObjectDeep<{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};},{}>": {
|
|
3462
3488
|
"additionalProperties": false,
|
|
3463
3489
|
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
@@ -3752,7 +3778,7 @@
|
|
|
3752
3778
|
},
|
|
3753
3779
|
"type": "object"
|
|
3754
3780
|
},
|
|
3755
|
-
"PartialObjectDeep<{thumbnailView:\"none\"|\"filmStrip\"|\"thumbnail\";},{}>": {
|
|
3781
|
+
"PartialObjectDeep<{thumbnailView:\"none\"|\"filmStrip\"|\"thumbnail\";voiceOver:{inputDevice?:string;inputGainDb:number;backgroundReductionDb:number;recordMode:\"instant\"|\"punchAndRoll\";preRollDuration:number;};},{}>": {
|
|
3756
3782
|
"additionalProperties": false,
|
|
3757
3783
|
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
3758
3784
|
"properties": {
|
|
@@ -3763,6 +3789,9 @@
|
|
|
3763
3789
|
"thumbnail"
|
|
3764
3790
|
],
|
|
3765
3791
|
"type": "string"
|
|
3792
|
+
},
|
|
3793
|
+
"voiceOver": {
|
|
3794
|
+
"$ref": "#/definitions/PartialObjectDeep<{inputDevice?:string;inputGainDb:number;backgroundReductionDb:number;recordMode:\"instant\"|\"punchAndRoll\";preRollDuration:number;},{}>"
|
|
3766
3795
|
}
|
|
3767
3796
|
},
|
|
3768
3797
|
"type": "object"
|
|
@@ -4829,6 +4858,10 @@
|
|
|
4829
4858
|
"type": "array"
|
|
4830
4859
|
},
|
|
4831
4860
|
"direction": {
|
|
4861
|
+
"enum": [
|
|
4862
|
+
"ltr",
|
|
4863
|
+
"rtl"
|
|
4864
|
+
],
|
|
4832
4865
|
"type": "string"
|
|
4833
4866
|
},
|
|
4834
4867
|
"format": {
|
|
@@ -4874,6 +4907,10 @@
|
|
|
4874
4907
|
"type": "array"
|
|
4875
4908
|
},
|
|
4876
4909
|
"direction": {
|
|
4910
|
+
"enum": [
|
|
4911
|
+
"ltr",
|
|
4912
|
+
"rtl"
|
|
4913
|
+
],
|
|
4877
4914
|
"type": "string"
|
|
4878
4915
|
},
|
|
4879
4916
|
"format": {
|
|
@@ -4978,6 +5015,9 @@
|
|
|
4978
5015
|
"fontsize": {
|
|
4979
5016
|
"type": "string"
|
|
4980
5017
|
},
|
|
5018
|
+
"futureWordWrapping": {
|
|
5019
|
+
"type": "boolean"
|
|
5020
|
+
},
|
|
4981
5021
|
"italic": {
|
|
4982
5022
|
"type": "string"
|
|
4983
5023
|
},
|
|
@@ -5008,6 +5048,9 @@
|
|
|
5008
5048
|
"scaleY": {
|
|
5009
5049
|
"type": "string"
|
|
5010
5050
|
},
|
|
5051
|
+
"scaledBorderAndShadow": {
|
|
5052
|
+
"type": "boolean"
|
|
5053
|
+
},
|
|
5011
5054
|
"secondaryColour": {
|
|
5012
5055
|
"type": "string"
|
|
5013
5056
|
},
|