@nxtedition/types 23.0.16 → 23.0.17
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/domains/subtitle-style.d.ts +23 -1
- package/dist/domains/subtitle-style.js +384 -54
- package/dist/schema.json +72 -1
- package/package.json +1 -1
|
@@ -3,7 +3,29 @@ export interface SubtitleStyleDomainRecords {
|
|
|
3
3
|
":subtitle-style": SubtitleStyleDomainRecord;
|
|
4
4
|
}
|
|
5
5
|
export interface SubtitleStyleDomainRecord {
|
|
6
|
-
|
|
6
|
+
name?: string;
|
|
7
|
+
fontname?: string;
|
|
8
|
+
fontsize?: string;
|
|
9
|
+
primaryColour?: string;
|
|
10
|
+
secondaryColour?: string;
|
|
11
|
+
outlineColour?: string;
|
|
12
|
+
backColour?: string;
|
|
13
|
+
bold?: string;
|
|
14
|
+
italic?: string;
|
|
15
|
+
underline?: string;
|
|
16
|
+
strikeOut?: string;
|
|
17
|
+
scaleX?: string;
|
|
18
|
+
scaleY?: string;
|
|
19
|
+
spacing?: string;
|
|
20
|
+
angle?: string;
|
|
21
|
+
borderStyle?: string;
|
|
22
|
+
outline?: string;
|
|
23
|
+
shadow?: string;
|
|
24
|
+
alignment?: string;
|
|
25
|
+
marginL?: string;
|
|
26
|
+
marginR?: string;
|
|
27
|
+
marginV?: string;
|
|
28
|
+
encoding?: string;
|
|
7
29
|
}
|
|
8
30
|
export declare const isSubtitleStyleDomainRecord: (input: unknown) => input is SubtitleStyleDomainRecord;
|
|
9
31
|
export declare const assertSubtitleStyleDomainRecord: (input: unknown) => SubtitleStyleDomainRecord;
|
|
@@ -1,33 +1,109 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isSubtitleStyleDomainRecord = input => {
|
|
3
|
-
const $io0 = input =>
|
|
4
|
-
const value = input[key];
|
|
5
|
-
if (undefined === value)
|
|
6
|
-
return true;
|
|
7
|
-
return true;
|
|
8
|
-
});
|
|
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);
|
|
9
4
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
10
5
|
};
|
|
11
6
|
export const assertSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
12
7
|
const __is = input => {
|
|
13
|
-
const $io0 = input =>
|
|
14
|
-
const value = input[key];
|
|
15
|
-
if (undefined === value)
|
|
16
|
-
return true;
|
|
17
|
-
return true;
|
|
18
|
-
});
|
|
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);
|
|
19
9
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
20
10
|
};
|
|
21
11
|
if (false === __is(input))
|
|
22
12
|
((input, _path, _exceptionable = true) => {
|
|
23
13
|
const $guard = __typia.createAssert.guard;
|
|
24
|
-
const $
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
15
|
+
path: _path + ".name",
|
|
16
|
+
expected: "(string | undefined)",
|
|
17
|
+
value: input.name
|
|
18
|
+
}, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
|
|
19
|
+
path: _path + ".fontname",
|
|
20
|
+
expected: "(string | undefined)",
|
|
21
|
+
value: input.fontname
|
|
22
|
+
}, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
|
|
23
|
+
path: _path + ".fontsize",
|
|
24
|
+
expected: "(string | undefined)",
|
|
25
|
+
value: input.fontsize
|
|
26
|
+
}, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
|
|
27
|
+
path: _path + ".primaryColour",
|
|
28
|
+
expected: "(string | undefined)",
|
|
29
|
+
value: input.primaryColour
|
|
30
|
+
}, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
|
|
31
|
+
path: _path + ".secondaryColour",
|
|
32
|
+
expected: "(string | undefined)",
|
|
33
|
+
value: input.secondaryColour
|
|
34
|
+
}, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
|
|
35
|
+
path: _path + ".outlineColour",
|
|
36
|
+
expected: "(string | undefined)",
|
|
37
|
+
value: input.outlineColour
|
|
38
|
+
}, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
|
|
39
|
+
path: _path + ".backColour",
|
|
40
|
+
expected: "(string | undefined)",
|
|
41
|
+
value: input.backColour
|
|
42
|
+
}, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
|
|
43
|
+
path: _path + ".bold",
|
|
44
|
+
expected: "(string | undefined)",
|
|
45
|
+
value: input.bold
|
|
46
|
+
}, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
|
|
47
|
+
path: _path + ".italic",
|
|
48
|
+
expected: "(string | undefined)",
|
|
49
|
+
value: input.italic
|
|
50
|
+
}, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
|
|
51
|
+
path: _path + ".underline",
|
|
52
|
+
expected: "(string | undefined)",
|
|
53
|
+
value: input.underline
|
|
54
|
+
}, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
|
|
55
|
+
path: _path + ".strikeOut",
|
|
56
|
+
expected: "(string | undefined)",
|
|
57
|
+
value: input.strikeOut
|
|
58
|
+
}, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
|
|
59
|
+
path: _path + ".scaleX",
|
|
60
|
+
expected: "(string | undefined)",
|
|
61
|
+
value: input.scaleX
|
|
62
|
+
}, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
|
|
63
|
+
path: _path + ".scaleY",
|
|
64
|
+
expected: "(string | undefined)",
|
|
65
|
+
value: input.scaleY
|
|
66
|
+
}, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
|
|
67
|
+
path: _path + ".spacing",
|
|
68
|
+
expected: "(string | undefined)",
|
|
69
|
+
value: input.spacing
|
|
70
|
+
}, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
|
|
71
|
+
path: _path + ".angle",
|
|
72
|
+
expected: "(string | undefined)",
|
|
73
|
+
value: input.angle
|
|
74
|
+
}, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
|
|
75
|
+
path: _path + ".borderStyle",
|
|
76
|
+
expected: "(string | undefined)",
|
|
77
|
+
value: input.borderStyle
|
|
78
|
+
}, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
|
|
79
|
+
path: _path + ".outline",
|
|
80
|
+
expected: "(string | undefined)",
|
|
81
|
+
value: input.outline
|
|
82
|
+
}, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
|
|
83
|
+
path: _path + ".shadow",
|
|
84
|
+
expected: "(string | undefined)",
|
|
85
|
+
value: input.shadow
|
|
86
|
+
}, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
|
|
87
|
+
path: _path + ".alignment",
|
|
88
|
+
expected: "(string | undefined)",
|
|
89
|
+
value: input.alignment
|
|
90
|
+
}, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
|
|
91
|
+
path: _path + ".marginL",
|
|
92
|
+
expected: "(string | undefined)",
|
|
93
|
+
value: input.marginL
|
|
94
|
+
}, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
|
|
95
|
+
path: _path + ".marginR",
|
|
96
|
+
expected: "(string | undefined)",
|
|
97
|
+
value: input.marginR
|
|
98
|
+
}, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
|
|
99
|
+
path: _path + ".marginV",
|
|
100
|
+
expected: "(string | undefined)",
|
|
101
|
+
value: input.marginV
|
|
102
|
+
}, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
|
|
103
|
+
path: _path + ".encoding",
|
|
104
|
+
expected: "(string | undefined)",
|
|
105
|
+
value: input.encoding
|
|
106
|
+
}, errorFactory));
|
|
31
107
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
32
108
|
path: _path + "",
|
|
33
109
|
expected: "SubtitleStyleDomainRecord",
|
|
@@ -42,33 +118,204 @@ export const assertSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
|
42
118
|
};
|
|
43
119
|
export const randomSubtitleStyleDomainRecord = generator => {
|
|
44
120
|
const $generator = __typia.createRandom.generator;
|
|
45
|
-
const $
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
121
|
+
const $pick = __typia.createRandom.pick;
|
|
122
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
123
|
+
name: $pick([
|
|
124
|
+
() => undefined,
|
|
125
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
126
|
+
])(),
|
|
127
|
+
fontname: $pick([
|
|
128
|
+
() => undefined,
|
|
129
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
130
|
+
])(),
|
|
131
|
+
fontsize: $pick([
|
|
132
|
+
() => undefined,
|
|
133
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
134
|
+
])(),
|
|
135
|
+
primaryColour: $pick([
|
|
136
|
+
() => undefined,
|
|
137
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
138
|
+
])(),
|
|
139
|
+
secondaryColour: $pick([
|
|
140
|
+
() => undefined,
|
|
141
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
142
|
+
])(),
|
|
143
|
+
outlineColour: $pick([
|
|
144
|
+
() => undefined,
|
|
145
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
146
|
+
])(),
|
|
147
|
+
backColour: $pick([
|
|
148
|
+
() => undefined,
|
|
149
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
150
|
+
])(),
|
|
151
|
+
bold: $pick([
|
|
152
|
+
() => undefined,
|
|
153
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
154
|
+
])(),
|
|
155
|
+
italic: $pick([
|
|
156
|
+
() => undefined,
|
|
157
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
158
|
+
])(),
|
|
159
|
+
underline: $pick([
|
|
160
|
+
() => undefined,
|
|
161
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
162
|
+
])(),
|
|
163
|
+
strikeOut: $pick([
|
|
164
|
+
() => undefined,
|
|
165
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
166
|
+
])(),
|
|
167
|
+
scaleX: $pick([
|
|
168
|
+
() => undefined,
|
|
169
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
170
|
+
])(),
|
|
171
|
+
scaleY: $pick([
|
|
172
|
+
() => undefined,
|
|
173
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
174
|
+
])(),
|
|
175
|
+
spacing: $pick([
|
|
176
|
+
() => undefined,
|
|
177
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
178
|
+
])(),
|
|
179
|
+
angle: $pick([
|
|
180
|
+
() => undefined,
|
|
181
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
182
|
+
])(),
|
|
183
|
+
borderStyle: $pick([
|
|
184
|
+
() => undefined,
|
|
185
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
186
|
+
])(),
|
|
187
|
+
outline: $pick([
|
|
188
|
+
() => undefined,
|
|
189
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
190
|
+
])(),
|
|
191
|
+
shadow: $pick([
|
|
192
|
+
() => undefined,
|
|
193
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
194
|
+
])(),
|
|
195
|
+
alignment: $pick([
|
|
196
|
+
() => undefined,
|
|
197
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
198
|
+
])(),
|
|
199
|
+
marginL: $pick([
|
|
200
|
+
() => undefined,
|
|
201
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
202
|
+
])(),
|
|
203
|
+
marginR: $pick([
|
|
204
|
+
() => undefined,
|
|
205
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
206
|
+
])(),
|
|
207
|
+
marginV: $pick([
|
|
208
|
+
() => undefined,
|
|
209
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
210
|
+
])(),
|
|
211
|
+
encoding: $pick([
|
|
212
|
+
() => undefined,
|
|
213
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
214
|
+
])()
|
|
215
|
+
});
|
|
50
216
|
return $ro0();
|
|
51
217
|
};
|
|
52
218
|
export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
53
219
|
const __is = input => {
|
|
54
|
-
const $io0 = input =>
|
|
55
|
-
const value = input[key];
|
|
56
|
-
if (undefined === value)
|
|
57
|
-
return true;
|
|
58
|
-
return true;
|
|
59
|
-
});
|
|
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);
|
|
60
221
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
61
222
|
};
|
|
62
223
|
if (false === __is(input))
|
|
63
224
|
((input, _path, _exceptionable = true) => {
|
|
64
225
|
const $guard = __typia.createAssertGuard.guard;
|
|
65
|
-
const $
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
226
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
227
|
+
path: _path + ".name",
|
|
228
|
+
expected: "(string | undefined)",
|
|
229
|
+
value: input.name
|
|
230
|
+
}, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
|
|
231
|
+
path: _path + ".fontname",
|
|
232
|
+
expected: "(string | undefined)",
|
|
233
|
+
value: input.fontname
|
|
234
|
+
}, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
|
|
235
|
+
path: _path + ".fontsize",
|
|
236
|
+
expected: "(string | undefined)",
|
|
237
|
+
value: input.fontsize
|
|
238
|
+
}, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
|
|
239
|
+
path: _path + ".primaryColour",
|
|
240
|
+
expected: "(string | undefined)",
|
|
241
|
+
value: input.primaryColour
|
|
242
|
+
}, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
|
|
243
|
+
path: _path + ".secondaryColour",
|
|
244
|
+
expected: "(string | undefined)",
|
|
245
|
+
value: input.secondaryColour
|
|
246
|
+
}, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
|
|
247
|
+
path: _path + ".outlineColour",
|
|
248
|
+
expected: "(string | undefined)",
|
|
249
|
+
value: input.outlineColour
|
|
250
|
+
}, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
|
|
251
|
+
path: _path + ".backColour",
|
|
252
|
+
expected: "(string | undefined)",
|
|
253
|
+
value: input.backColour
|
|
254
|
+
}, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
|
|
255
|
+
path: _path + ".bold",
|
|
256
|
+
expected: "(string | undefined)",
|
|
257
|
+
value: input.bold
|
|
258
|
+
}, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
|
|
259
|
+
path: _path + ".italic",
|
|
260
|
+
expected: "(string | undefined)",
|
|
261
|
+
value: input.italic
|
|
262
|
+
}, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
|
|
263
|
+
path: _path + ".underline",
|
|
264
|
+
expected: "(string | undefined)",
|
|
265
|
+
value: input.underline
|
|
266
|
+
}, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
|
|
267
|
+
path: _path + ".strikeOut",
|
|
268
|
+
expected: "(string | undefined)",
|
|
269
|
+
value: input.strikeOut
|
|
270
|
+
}, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
|
|
271
|
+
path: _path + ".scaleX",
|
|
272
|
+
expected: "(string | undefined)",
|
|
273
|
+
value: input.scaleX
|
|
274
|
+
}, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
|
|
275
|
+
path: _path + ".scaleY",
|
|
276
|
+
expected: "(string | undefined)",
|
|
277
|
+
value: input.scaleY
|
|
278
|
+
}, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
|
|
279
|
+
path: _path + ".spacing",
|
|
280
|
+
expected: "(string | undefined)",
|
|
281
|
+
value: input.spacing
|
|
282
|
+
}, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
|
|
283
|
+
path: _path + ".angle",
|
|
284
|
+
expected: "(string | undefined)",
|
|
285
|
+
value: input.angle
|
|
286
|
+
}, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
|
|
287
|
+
path: _path + ".borderStyle",
|
|
288
|
+
expected: "(string | undefined)",
|
|
289
|
+
value: input.borderStyle
|
|
290
|
+
}, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
|
|
291
|
+
path: _path + ".outline",
|
|
292
|
+
expected: "(string | undefined)",
|
|
293
|
+
value: input.outline
|
|
294
|
+
}, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
|
|
295
|
+
path: _path + ".shadow",
|
|
296
|
+
expected: "(string | undefined)",
|
|
297
|
+
value: input.shadow
|
|
298
|
+
}, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
|
|
299
|
+
path: _path + ".alignment",
|
|
300
|
+
expected: "(string | undefined)",
|
|
301
|
+
value: input.alignment
|
|
302
|
+
}, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
|
|
303
|
+
path: _path + ".marginL",
|
|
304
|
+
expected: "(string | undefined)",
|
|
305
|
+
value: input.marginL
|
|
306
|
+
}, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
|
|
307
|
+
path: _path + ".marginR",
|
|
308
|
+
expected: "(string | undefined)",
|
|
309
|
+
value: input.marginR
|
|
310
|
+
}, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
|
|
311
|
+
path: _path + ".marginV",
|
|
312
|
+
expected: "(string | undefined)",
|
|
313
|
+
value: input.marginV
|
|
314
|
+
}, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
|
|
315
|
+
path: _path + ".encoding",
|
|
316
|
+
expected: "(string | undefined)",
|
|
317
|
+
value: input.encoding
|
|
318
|
+
}, errorFactory));
|
|
72
319
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
73
320
|
path: _path + "",
|
|
74
321
|
expected: "SubtitleStyleDomainRecord",
|
|
@@ -81,30 +328,112 @@ export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
|
81
328
|
})(input, "$input", true);
|
|
82
329
|
};
|
|
83
330
|
export const stringifySubtitleStyleDomainRecord = input => {
|
|
84
|
-
const $
|
|
85
|
-
|
|
331
|
+
const $string = __typia.json.createStringify.string;
|
|
332
|
+
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}`}`)}}`;
|
|
86
334
|
return $so0(input);
|
|
87
335
|
};
|
|
88
336
|
export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
89
337
|
const __is = input => {
|
|
90
|
-
const $io0 = input =>
|
|
91
|
-
const value = input[key];
|
|
92
|
-
if (undefined === value)
|
|
93
|
-
return true;
|
|
94
|
-
return true;
|
|
95
|
-
});
|
|
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);
|
|
96
339
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
97
340
|
};
|
|
98
341
|
if (false === __is(input))
|
|
99
342
|
((input, _path, _exceptionable = true) => {
|
|
100
343
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
101
|
-
const $
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
344
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
345
|
+
path: _path + ".name",
|
|
346
|
+
expected: "(string | undefined)",
|
|
347
|
+
value: input.name
|
|
348
|
+
}, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
|
|
349
|
+
path: _path + ".fontname",
|
|
350
|
+
expected: "(string | undefined)",
|
|
351
|
+
value: input.fontname
|
|
352
|
+
}, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
|
|
353
|
+
path: _path + ".fontsize",
|
|
354
|
+
expected: "(string | undefined)",
|
|
355
|
+
value: input.fontsize
|
|
356
|
+
}, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
|
|
357
|
+
path: _path + ".primaryColour",
|
|
358
|
+
expected: "(string | undefined)",
|
|
359
|
+
value: input.primaryColour
|
|
360
|
+
}, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
|
|
361
|
+
path: _path + ".secondaryColour",
|
|
362
|
+
expected: "(string | undefined)",
|
|
363
|
+
value: input.secondaryColour
|
|
364
|
+
}, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
|
|
365
|
+
path: _path + ".outlineColour",
|
|
366
|
+
expected: "(string | undefined)",
|
|
367
|
+
value: input.outlineColour
|
|
368
|
+
}, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
|
|
369
|
+
path: _path + ".backColour",
|
|
370
|
+
expected: "(string | undefined)",
|
|
371
|
+
value: input.backColour
|
|
372
|
+
}, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
|
|
373
|
+
path: _path + ".bold",
|
|
374
|
+
expected: "(string | undefined)",
|
|
375
|
+
value: input.bold
|
|
376
|
+
}, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
|
|
377
|
+
path: _path + ".italic",
|
|
378
|
+
expected: "(string | undefined)",
|
|
379
|
+
value: input.italic
|
|
380
|
+
}, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
|
|
381
|
+
path: _path + ".underline",
|
|
382
|
+
expected: "(string | undefined)",
|
|
383
|
+
value: input.underline
|
|
384
|
+
}, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
|
|
385
|
+
path: _path + ".strikeOut",
|
|
386
|
+
expected: "(string | undefined)",
|
|
387
|
+
value: input.strikeOut
|
|
388
|
+
}, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
|
|
389
|
+
path: _path + ".scaleX",
|
|
390
|
+
expected: "(string | undefined)",
|
|
391
|
+
value: input.scaleX
|
|
392
|
+
}, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
|
|
393
|
+
path: _path + ".scaleY",
|
|
394
|
+
expected: "(string | undefined)",
|
|
395
|
+
value: input.scaleY
|
|
396
|
+
}, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
|
|
397
|
+
path: _path + ".spacing",
|
|
398
|
+
expected: "(string | undefined)",
|
|
399
|
+
value: input.spacing
|
|
400
|
+
}, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
|
|
401
|
+
path: _path + ".angle",
|
|
402
|
+
expected: "(string | undefined)",
|
|
403
|
+
value: input.angle
|
|
404
|
+
}, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
|
|
405
|
+
path: _path + ".borderStyle",
|
|
406
|
+
expected: "(string | undefined)",
|
|
407
|
+
value: input.borderStyle
|
|
408
|
+
}, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
|
|
409
|
+
path: _path + ".outline",
|
|
410
|
+
expected: "(string | undefined)",
|
|
411
|
+
value: input.outline
|
|
412
|
+
}, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
|
|
413
|
+
path: _path + ".shadow",
|
|
414
|
+
expected: "(string | undefined)",
|
|
415
|
+
value: input.shadow
|
|
416
|
+
}, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
|
|
417
|
+
path: _path + ".alignment",
|
|
418
|
+
expected: "(string | undefined)",
|
|
419
|
+
value: input.alignment
|
|
420
|
+
}, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
|
|
421
|
+
path: _path + ".marginL",
|
|
422
|
+
expected: "(string | undefined)",
|
|
423
|
+
value: input.marginL
|
|
424
|
+
}, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
|
|
425
|
+
path: _path + ".marginR",
|
|
426
|
+
expected: "(string | undefined)",
|
|
427
|
+
value: input.marginR
|
|
428
|
+
}, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
|
|
429
|
+
path: _path + ".marginV",
|
|
430
|
+
expected: "(string | undefined)",
|
|
431
|
+
value: input.marginV
|
|
432
|
+
}, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
|
|
433
|
+
path: _path + ".encoding",
|
|
434
|
+
expected: "(string | undefined)",
|
|
435
|
+
value: input.encoding
|
|
436
|
+
}, errorFactory));
|
|
108
437
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
109
438
|
path: _path + "",
|
|
110
439
|
expected: "SubtitleStyleDomainRecord",
|
|
@@ -117,7 +446,8 @@ export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) =>
|
|
|
117
446
|
})(input, "$input", true);
|
|
118
447
|
return input;
|
|
119
448
|
}; const stringify = input => {
|
|
120
|
-
const $
|
|
121
|
-
|
|
449
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
450
|
+
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}`}`)}}`;
|
|
122
452
|
return $so0(input);
|
|
123
453
|
}; return stringify(assert(input, errorFactory)); };
|
package/dist/schema.json
CHANGED
|
@@ -4952,7 +4952,78 @@
|
|
|
4952
4952
|
"type": "object"
|
|
4953
4953
|
},
|
|
4954
4954
|
"SubtitleStyleDomainRecord": {
|
|
4955
|
-
"additionalProperties":
|
|
4955
|
+
"additionalProperties": false,
|
|
4956
|
+
"properties": {
|
|
4957
|
+
"alignment": {
|
|
4958
|
+
"type": "string"
|
|
4959
|
+
},
|
|
4960
|
+
"angle": {
|
|
4961
|
+
"type": "string"
|
|
4962
|
+
},
|
|
4963
|
+
"backColour": {
|
|
4964
|
+
"type": "string"
|
|
4965
|
+
},
|
|
4966
|
+
"bold": {
|
|
4967
|
+
"type": "string"
|
|
4968
|
+
},
|
|
4969
|
+
"borderStyle": {
|
|
4970
|
+
"type": "string"
|
|
4971
|
+
},
|
|
4972
|
+
"encoding": {
|
|
4973
|
+
"type": "string"
|
|
4974
|
+
},
|
|
4975
|
+
"fontname": {
|
|
4976
|
+
"type": "string"
|
|
4977
|
+
},
|
|
4978
|
+
"fontsize": {
|
|
4979
|
+
"type": "string"
|
|
4980
|
+
},
|
|
4981
|
+
"italic": {
|
|
4982
|
+
"type": "string"
|
|
4983
|
+
},
|
|
4984
|
+
"marginL": {
|
|
4985
|
+
"type": "string"
|
|
4986
|
+
},
|
|
4987
|
+
"marginR": {
|
|
4988
|
+
"type": "string"
|
|
4989
|
+
},
|
|
4990
|
+
"marginV": {
|
|
4991
|
+
"type": "string"
|
|
4992
|
+
},
|
|
4993
|
+
"name": {
|
|
4994
|
+
"type": "string"
|
|
4995
|
+
},
|
|
4996
|
+
"outline": {
|
|
4997
|
+
"type": "string"
|
|
4998
|
+
},
|
|
4999
|
+
"outlineColour": {
|
|
5000
|
+
"type": "string"
|
|
5001
|
+
},
|
|
5002
|
+
"primaryColour": {
|
|
5003
|
+
"type": "string"
|
|
5004
|
+
},
|
|
5005
|
+
"scaleX": {
|
|
5006
|
+
"type": "string"
|
|
5007
|
+
},
|
|
5008
|
+
"scaleY": {
|
|
5009
|
+
"type": "string"
|
|
5010
|
+
},
|
|
5011
|
+
"secondaryColour": {
|
|
5012
|
+
"type": "string"
|
|
5013
|
+
},
|
|
5014
|
+
"shadow": {
|
|
5015
|
+
"type": "string"
|
|
5016
|
+
},
|
|
5017
|
+
"spacing": {
|
|
5018
|
+
"type": "string"
|
|
5019
|
+
},
|
|
5020
|
+
"strikeOut": {
|
|
5021
|
+
"type": "string"
|
|
5022
|
+
},
|
|
5023
|
+
"underline": {
|
|
5024
|
+
"type": "string"
|
|
5025
|
+
}
|
|
5026
|
+
},
|
|
4956
5027
|
"type": "object"
|
|
4957
5028
|
},
|
|
4958
5029
|
"TagPermission": {
|