@nxtedition/types 23.0.20 → 23.0.22
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/app.d.ts +4 -0
- package/dist/app.js +25 -9
- package/dist/common/settings.d.ts +10 -4
- package/dist/common/settings.js +262 -184
- package/dist/domains/media.d.ts +1 -0
- package/dist/domains/media.js +27 -10
- package/dist/domains/pipeline.d.ts +1 -0
- package/dist/domains/pipeline.js +43 -6
- package/dist/domains/settings.js +241 -161
- package/dist/index.d.ts +0 -2
- package/dist/rpc.d.ts +3 -3
- package/dist/rpc.js +59 -50
- package/dist/schema.json +122 -103
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
package/dist/rpc.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ export declare const stringifyNxtImportMode: (input: NxtImportMode) => string;
|
|
|
45
45
|
export declare const assertStringifyNxtImportMode: (input: unknown) => string;
|
|
46
46
|
export interface NxtExport {
|
|
47
47
|
version: number;
|
|
48
|
-
date
|
|
49
|
-
root
|
|
48
|
+
date?: string;
|
|
49
|
+
root?: string[];
|
|
50
50
|
assets: {
|
|
51
51
|
[assetId: string]: {
|
|
52
|
-
_children
|
|
52
|
+
_children?: string[];
|
|
53
53
|
[domain: string]: unknown;
|
|
54
54
|
};
|
|
55
55
|
};
|
package/dist/rpc.js
CHANGED
|
@@ -81,14 +81,14 @@ export const assertStringifyNxtImportMode = (input, errorFactory) => { const ass
|
|
|
81
81
|
})();
|
|
82
82
|
}; return stringify(assert(input, errorFactory)); };
|
|
83
83
|
export const isNxtExport = input => {
|
|
84
|
-
const $io0 = input => "number" === typeof input.version && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
84
|
+
const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
85
85
|
const $io1 = input => Object.keys(input).every(key => {
|
|
86
86
|
const value = input[key];
|
|
87
87
|
if (undefined === value)
|
|
88
88
|
return true;
|
|
89
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
89
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
90
90
|
});
|
|
91
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
91
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
92
92
|
if (["_children"].some(prop => key === prop))
|
|
93
93
|
return true;
|
|
94
94
|
const value = input[key];
|
|
@@ -100,14 +100,14 @@ export const isNxtExport = input => {
|
|
|
100
100
|
};
|
|
101
101
|
export const assertNxtExport = (input, errorFactory) => {
|
|
102
102
|
const __is = input => {
|
|
103
|
-
const $io0 = input => "number" === typeof input.version && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
103
|
+
const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
104
104
|
const $io1 = input => Object.keys(input).every(key => {
|
|
105
105
|
const value = input[key];
|
|
106
106
|
if (undefined === value)
|
|
107
107
|
return true;
|
|
108
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
108
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
109
109
|
});
|
|
110
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
110
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
111
111
|
if (["_children"].some(prop => key === prop))
|
|
112
112
|
return true;
|
|
113
113
|
const value = input[key];
|
|
@@ -125,13 +125,13 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
125
125
|
path: _path + ".version",
|
|
126
126
|
expected: "number",
|
|
127
127
|
value: input.version
|
|
128
|
-
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
128
|
+
}, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
|
|
129
129
|
path: _path + ".date",
|
|
130
|
-
expected: "string",
|
|
130
|
+
expected: "(string | undefined)",
|
|
131
131
|
value: input.date
|
|
132
|
-
}, errorFactory)) && ((Array.isArray(input.root) || $guard(_exceptionable, {
|
|
132
|
+
}, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
|
|
133
133
|
path: _path + ".root",
|
|
134
|
-
expected: "Array<string>",
|
|
134
|
+
expected: "(Array<string> | undefined)",
|
|
135
135
|
value: input.root
|
|
136
136
|
}, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
137
137
|
path: _path + ".root[" + _index1 + "]",
|
|
@@ -139,7 +139,7 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
139
139
|
value: elem
|
|
140
140
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
141
141
|
path: _path + ".root",
|
|
142
|
-
expected: "Array<string>",
|
|
142
|
+
expected: "(Array<string> | undefined)",
|
|
143
143
|
value: input.root
|
|
144
144
|
}, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
|
|
145
145
|
path: _path + ".assets",
|
|
@@ -166,7 +166,7 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
166
166
|
const value = input[key];
|
|
167
167
|
if (undefined === value)
|
|
168
168
|
return true;
|
|
169
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
169
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
|
170
170
|
path: _path + $join(key),
|
|
171
171
|
expected: "__type.o1",
|
|
172
172
|
value: value
|
|
@@ -176,9 +176,9 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
176
176
|
value: value
|
|
177
177
|
}, errorFactory);
|
|
178
178
|
});
|
|
179
|
-
const $ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input._children) || $guard(_exceptionable, {
|
|
179
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
|
|
180
180
|
path: _path + "._children",
|
|
181
|
-
expected: "Array<string>",
|
|
181
|
+
expected: "(Array<string> | undefined)",
|
|
182
182
|
value: input._children
|
|
183
183
|
}, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
184
184
|
path: _path + "._children[" + _index3 + "]",
|
|
@@ -186,7 +186,7 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
186
186
|
value: elem
|
|
187
187
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
188
188
|
path: _path + "._children",
|
|
189
|
-
expected: "Array<string>",
|
|
189
|
+
expected: "(Array<string> | undefined)",
|
|
190
190
|
value: input._children
|
|
191
191
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
192
192
|
if (["_children"].some(prop => key === prop))
|
|
@@ -213,8 +213,14 @@ export const randomNxtExport = generator => {
|
|
|
213
213
|
const $pick = __typia.createRandom.pick;
|
|
214
214
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
215
215
|
version: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
216
|
-
date:
|
|
217
|
-
|
|
216
|
+
date: $pick([
|
|
217
|
+
() => undefined,
|
|
218
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
219
|
+
])(),
|
|
220
|
+
root: $pick([
|
|
221
|
+
() => undefined,
|
|
222
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
223
|
+
])(),
|
|
218
224
|
assets: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
|
|
219
225
|
files: $pick([
|
|
220
226
|
() => undefined,
|
|
@@ -228,7 +234,10 @@ export const randomNxtExport = generator => {
|
|
|
228
234
|
};
|
|
229
235
|
const $ro2 = (_recursive = false, _depth = 0) => {
|
|
230
236
|
const output = {
|
|
231
|
-
_children:
|
|
237
|
+
_children: $pick([
|
|
238
|
+
() => undefined,
|
|
239
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
240
|
+
])()
|
|
232
241
|
};
|
|
233
242
|
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
234
243
|
return output;
|
|
@@ -237,14 +246,14 @@ export const randomNxtExport = generator => {
|
|
|
237
246
|
};
|
|
238
247
|
export const assertGuardNxtExport = (input, errorFactory) => {
|
|
239
248
|
const __is = input => {
|
|
240
|
-
const $io0 = input => "number" === typeof input.version && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
249
|
+
const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
241
250
|
const $io1 = input => Object.keys(input).every(key => {
|
|
242
251
|
const value = input[key];
|
|
243
252
|
if (undefined === value)
|
|
244
253
|
return true;
|
|
245
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
254
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
246
255
|
});
|
|
247
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
256
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
248
257
|
if (["_children"].some(prop => key === prop))
|
|
249
258
|
return true;
|
|
250
259
|
const value = input[key];
|
|
@@ -262,13 +271,13 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
262
271
|
path: _path + ".version",
|
|
263
272
|
expected: "number",
|
|
264
273
|
value: input.version
|
|
265
|
-
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
274
|
+
}, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
|
|
266
275
|
path: _path + ".date",
|
|
267
|
-
expected: "string",
|
|
276
|
+
expected: "(string | undefined)",
|
|
268
277
|
value: input.date
|
|
269
|
-
}, errorFactory)) && ((Array.isArray(input.root) || $guard(_exceptionable, {
|
|
278
|
+
}, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
|
|
270
279
|
path: _path + ".root",
|
|
271
|
-
expected: "Array<string>",
|
|
280
|
+
expected: "(Array<string> | undefined)",
|
|
272
281
|
value: input.root
|
|
273
282
|
}, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
274
283
|
path: _path + ".root[" + _index1 + "]",
|
|
@@ -276,7 +285,7 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
276
285
|
value: elem
|
|
277
286
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
278
287
|
path: _path + ".root",
|
|
279
|
-
expected: "Array<string>",
|
|
288
|
+
expected: "(Array<string> | undefined)",
|
|
280
289
|
value: input.root
|
|
281
290
|
}, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
|
|
282
291
|
path: _path + ".assets",
|
|
@@ -303,7 +312,7 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
303
312
|
const value = input[key];
|
|
304
313
|
if (undefined === value)
|
|
305
314
|
return true;
|
|
306
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
315
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
|
307
316
|
path: _path + $join(key),
|
|
308
317
|
expected: "__type.o1",
|
|
309
318
|
value: value
|
|
@@ -313,9 +322,9 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
313
322
|
value: value
|
|
314
323
|
}, errorFactory);
|
|
315
324
|
});
|
|
316
|
-
const $ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input._children) || $guard(_exceptionable, {
|
|
325
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
|
|
317
326
|
path: _path + "._children",
|
|
318
|
-
expected: "Array<string>",
|
|
327
|
+
expected: "(Array<string> | undefined)",
|
|
319
328
|
value: input._children
|
|
320
329
|
}, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
321
330
|
path: _path + "._children[" + _index3 + "]",
|
|
@@ -323,7 +332,7 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
323
332
|
value: elem
|
|
324
333
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
325
334
|
path: _path + "._children",
|
|
326
|
-
expected: "Array<string>",
|
|
335
|
+
expected: "(Array<string> | undefined)",
|
|
327
336
|
value: input._children
|
|
328
337
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
329
338
|
if (["_children"].some(prop => key === prop))
|
|
@@ -349,9 +358,9 @@ export const stringifyNxtExport = input => {
|
|
|
349
358
|
const value = input[key];
|
|
350
359
|
if (undefined === value)
|
|
351
360
|
return true;
|
|
352
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
361
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
353
362
|
});
|
|
354
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
363
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
355
364
|
if (["_children"].some(prop => key === prop))
|
|
356
365
|
return true;
|
|
357
366
|
const value = input[key];
|
|
@@ -361,24 +370,24 @@ export const stringifyNxtExport = input => {
|
|
|
361
370
|
});
|
|
362
371
|
const $string = __typia.json.createStringify.string;
|
|
363
372
|
const $tail = __typia.json.createStringify.tail;
|
|
364
|
-
const $so0 = input => `{${undefined === input.
|
|
373
|
+
const $so0 = input => `{${undefined === input.date ? "" : `"date":${undefined !== input.date ? $string(input.date) : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? `[${input.root.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? `[${input.files.map(elem => $string(elem)).join(",")}]` : undefined},`}"version":${input.version},"assets":${$so1(input.assets)}}`;
|
|
365
374
|
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
366
375
|
return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
367
|
-
const $so2 = input => `{${$tail(`"_children":${`[${input._children.map(elem => $string(elem)).join(",")}]`}
|
|
376
|
+
const $so2 = input => `{${$tail(`${undefined === input._children ? "" : `"_children":${undefined !== input._children ? `[${input._children.map(elem => $string(elem)).join(",")}]` : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
368
377
|
return ""; if (["_children"].some(regular => regular === key))
|
|
369
378
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
370
379
|
return $so0(input);
|
|
371
380
|
};
|
|
372
381
|
export const assertStringifyNxtExport = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
373
382
|
const __is = input => {
|
|
374
|
-
const $io0 = input => "number" === typeof input.version && !Number.isNaN(input.version) && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
383
|
+
const $io0 = input => "number" === typeof input.version && !Number.isNaN(input.version) && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
375
384
|
const $io1 = input => Object.keys(input).every(key => {
|
|
376
385
|
const value = input[key];
|
|
377
386
|
if (undefined === value)
|
|
378
387
|
return true;
|
|
379
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
388
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
380
389
|
});
|
|
381
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
390
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
382
391
|
if (["_children"].some(prop => key === prop))
|
|
383
392
|
return true;
|
|
384
393
|
const value = input[key];
|
|
@@ -396,13 +405,13 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
396
405
|
path: _path + ".version",
|
|
397
406
|
expected: "number",
|
|
398
407
|
value: input.version
|
|
399
|
-
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
408
|
+
}, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
|
|
400
409
|
path: _path + ".date",
|
|
401
|
-
expected: "string",
|
|
410
|
+
expected: "(string | undefined)",
|
|
402
411
|
value: input.date
|
|
403
|
-
}, errorFactory)) && ((Array.isArray(input.root) || $guard(_exceptionable, {
|
|
412
|
+
}, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
|
|
404
413
|
path: _path + ".root",
|
|
405
|
-
expected: "Array<string>",
|
|
414
|
+
expected: "(Array<string> | undefined)",
|
|
406
415
|
value: input.root
|
|
407
416
|
}, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
408
417
|
path: _path + ".root[" + _index1 + "]",
|
|
@@ -410,7 +419,7 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
410
419
|
value: elem
|
|
411
420
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
412
421
|
path: _path + ".root",
|
|
413
|
-
expected: "Array<string>",
|
|
422
|
+
expected: "(Array<string> | undefined)",
|
|
414
423
|
value: input.root
|
|
415
424
|
}, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
|
|
416
425
|
path: _path + ".assets",
|
|
@@ -437,7 +446,7 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
437
446
|
const value = input[key];
|
|
438
447
|
if (undefined === value)
|
|
439
448
|
return true;
|
|
440
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
449
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
|
441
450
|
path: _path + $join(key),
|
|
442
451
|
expected: "__type.o1",
|
|
443
452
|
value: value
|
|
@@ -447,9 +456,9 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
447
456
|
value: value
|
|
448
457
|
}, errorFactory);
|
|
449
458
|
});
|
|
450
|
-
const $ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input._children) || $guard(_exceptionable, {
|
|
459
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
|
|
451
460
|
path: _path + "._children",
|
|
452
|
-
expected: "Array<string>",
|
|
461
|
+
expected: "(Array<string> | undefined)",
|
|
453
462
|
value: input._children
|
|
454
463
|
}, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
455
464
|
path: _path + "._children[" + _index3 + "]",
|
|
@@ -457,7 +466,7 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
457
466
|
value: elem
|
|
458
467
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
459
468
|
path: _path + "._children",
|
|
460
|
-
expected: "Array<string>",
|
|
469
|
+
expected: "(Array<string> | undefined)",
|
|
461
470
|
value: input._children
|
|
462
471
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
463
472
|
if (["_children"].some(prop => key === prop))
|
|
@@ -483,9 +492,9 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
483
492
|
const value = input[key];
|
|
484
493
|
if (undefined === value)
|
|
485
494
|
return true;
|
|
486
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
495
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
487
496
|
});
|
|
488
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
497
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
489
498
|
if (["_children"].some(prop => key === prop))
|
|
490
499
|
return true;
|
|
491
500
|
const value = input[key];
|
|
@@ -495,10 +504,10 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
495
504
|
});
|
|
496
505
|
const $string = __typia.json.createAssertStringify.string;
|
|
497
506
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
498
|
-
const $so0 = input => `{${undefined === input.
|
|
507
|
+
const $so0 = input => `{${undefined === input.date ? "" : `"date":${undefined !== input.date ? $string(input.date) : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? `[${input.root.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? `[${input.files.map(elem => $string(elem)).join(",")}]` : undefined},`}"version":${input.version},"assets":${$so1(input.assets)}}`;
|
|
499
508
|
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
500
509
|
return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
501
|
-
const $so2 = input => `{${$tail(`"_children":${`[${input._children.map(elem => $string(elem)).join(",")}]`}
|
|
510
|
+
const $so2 = input => `{${$tail(`${undefined === input._children ? "" : `"_children":${undefined !== input._children ? `[${input._children.map(elem => $string(elem)).join(",")}]` : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
502
511
|
return ""; if (["_children"].some(regular => regular === key))
|
|
503
512
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
504
513
|
return $so0(input);
|
package/dist/schema.json
CHANGED
|
@@ -1570,6 +1570,10 @@
|
|
|
1570
1570
|
"filename": {
|
|
1571
1571
|
"type": "string"
|
|
1572
1572
|
},
|
|
1573
|
+
"id": {
|
|
1574
|
+
"description": "Unique ID of the download, to be used to control and track the download progress.",
|
|
1575
|
+
"type": "string"
|
|
1576
|
+
},
|
|
1573
1577
|
"path": {
|
|
1574
1578
|
"description": "If present, filename and directory will be ignored.",
|
|
1575
1579
|
"type": "string"
|
|
@@ -2377,6 +2381,9 @@
|
|
|
2377
2381
|
"MediaProbeRecord": {
|
|
2378
2382
|
"additionalProperties": false,
|
|
2379
2383
|
"properties": {
|
|
2384
|
+
"duration": {
|
|
2385
|
+
"type": "number"
|
|
2386
|
+
},
|
|
2380
2387
|
"error": {
|
|
2381
2388
|
"$ref": "#/definitions/NxtError"
|
|
2382
2389
|
},
|
|
@@ -3380,6 +3387,16 @@
|
|
|
3380
3387
|
"events": {
|
|
3381
3388
|
"$ref": "#/definitions/PartialObjectDeep<{graphicBaseTemplate?:string;},{}>"
|
|
3382
3389
|
},
|
|
3390
|
+
"exclusiveTagGroups": {
|
|
3391
|
+
"description": "Controls which tags cannot be used together. When a tag from the group is\nmanually added to an asset, any other tag from the group will be removed.",
|
|
3392
|
+
"items": {
|
|
3393
|
+
"items": {
|
|
3394
|
+
"type": "string"
|
|
3395
|
+
},
|
|
3396
|
+
"type": "array"
|
|
3397
|
+
},
|
|
3398
|
+
"type": "array"
|
|
3399
|
+
},
|
|
3383
3400
|
"featurePreview": {
|
|
3384
3401
|
"$ref": "#/definitions/PartialObjectDeep<{collections?:boolean;},{}>"
|
|
3385
3402
|
},
|
|
@@ -3413,7 +3430,7 @@
|
|
|
3413
3430
|
},
|
|
3414
3431
|
"keymap": {},
|
|
3415
3432
|
"media": {
|
|
3416
|
-
"$ref": "#/definitions/PartialObjectDeep<{placeholder?:string;guide?:{mask?:boolean;actionSafe?:boolean;titleSafe?:boolean;};stepManyFrames:number;liveZoomDuration:number;importTitleTemplate:string;tile:{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;};timecodeReference:string;maxSubclipDuration:number;rewindStep:number;forwardStep:number;interlacedPlayback:string;playbackRates:number[];subtitles:{spacing:number;maxCharactersPerLine:number;};subtitleTemplateId?:string;initialVolume:string;guides:{label:string;aspectRatio:string;}[];download:boolean;editMode:{enabled:boolean;defaultEnterOption:\"none\"|\"edit\"|\"createNew\";defaultExitOption:\"none\"|\"update\"|\"leave\";};transcribe?:{subtitleDisclaimer?:{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};};};openCommand?:string|{url?:string;command?:string;app?:string;args?:string[];};},{}>"
|
|
3433
|
+
"$ref": "#/definitions/PartialObjectDeep<{defaultFrameRate:number;placeholder?:string;guide?:{mask?:boolean;actionSafe?:boolean;titleSafe?:boolean;};stepManyFrames:number;liveZoomDuration:number;importTitleTemplate:string;tile:{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;};timecodeReference:string;maxSubclipDuration:number;rewindStep:number;forwardStep:number;interlacedPlayback:string;playbackRates:number[];subtitles:{spacing:number;maxCharactersPerLine:number;};subtitleTemplateId?:string;initialVolume:string;guides:{label:string;aspectRatio:string;}[];download:boolean;editMode:{enabled:boolean;defaultEnterOption:\"none\"|\"edit\"|\"createNew\";defaultExitOption:\"none\"|\"update\"|\"leave\";};transcribe?:{subtitleDisclaimer?:{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};};};openCommand?:string|{url?:string;command?:string;app?:string;args?:string[];};},{}>"
|
|
3417
3434
|
},
|
|
3418
3435
|
"module": {
|
|
3419
3436
|
"$ref": "#/definitions/PartialObjectDeep<{tabs?:ModuleTabs;},{}>"
|
|
@@ -3566,6 +3583,103 @@
|
|
|
3566
3583
|
},
|
|
3567
3584
|
"type": "object"
|
|
3568
3585
|
},
|
|
3586
|
+
"PartialObjectDeep<{defaultFrameRate:number;placeholder?:string;guide?:{mask?:boolean;actionSafe?:boolean;titleSafe?:boolean;};stepManyFrames:number;liveZoomDuration:number;importTitleTemplate:string;tile:{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;};timecodeReference:string;maxSubclipDuration:number;rewindStep:number;forwardStep:number;interlacedPlayback:string;playbackRates:number[];subtitles:{spacing:number;maxCharactersPerLine:number;};subtitleTemplateId?:string;initialVolume:string;guides:{label:string;aspectRatio:string;}[];download:boolean;editMode:{enabled:boolean;defaultEnterOption:\"none\"|\"edit\"|\"createNew\";defaultExitOption:\"none\"|\"update\"|\"leave\";};transcribe?:{subtitleDisclaimer?:{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};};};openCommand?:string|{url?:string;command?:string;app?:string;args?:string[];};},{}>": {
|
|
3587
|
+
"additionalProperties": false,
|
|
3588
|
+
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
3589
|
+
"properties": {
|
|
3590
|
+
"defaultFrameRate": {
|
|
3591
|
+
"type": "number"
|
|
3592
|
+
},
|
|
3593
|
+
"download": {
|
|
3594
|
+
"type": "boolean"
|
|
3595
|
+
},
|
|
3596
|
+
"editMode": {
|
|
3597
|
+
"$ref": "#/definitions/PartialObjectDeep<{enabled:boolean;defaultEnterOption:\"none\"|\"edit\"|\"createNew\";defaultExitOption:\"none\"|\"update\"|\"leave\";},{}>"
|
|
3598
|
+
},
|
|
3599
|
+
"forwardStep": {
|
|
3600
|
+
"type": "number"
|
|
3601
|
+
},
|
|
3602
|
+
"guide": {
|
|
3603
|
+
"$ref": "#/definitions/PartialObjectDeep<{mask?:boolean;actionSafe?:boolean;titleSafe?:boolean;},{}>"
|
|
3604
|
+
},
|
|
3605
|
+
"guides": {
|
|
3606
|
+
"items": {
|
|
3607
|
+
"additionalProperties": false,
|
|
3608
|
+
"properties": {
|
|
3609
|
+
"aspectRatio": {
|
|
3610
|
+
"type": "string"
|
|
3611
|
+
},
|
|
3612
|
+
"label": {
|
|
3613
|
+
"type": "string"
|
|
3614
|
+
}
|
|
3615
|
+
},
|
|
3616
|
+
"required": [
|
|
3617
|
+
"aspectRatio",
|
|
3618
|
+
"label"
|
|
3619
|
+
],
|
|
3620
|
+
"type": "object"
|
|
3621
|
+
},
|
|
3622
|
+
"type": "array"
|
|
3623
|
+
},
|
|
3624
|
+
"importTitleTemplate": {
|
|
3625
|
+
"type": "string"
|
|
3626
|
+
},
|
|
3627
|
+
"initialVolume": {
|
|
3628
|
+
"type": "string"
|
|
3629
|
+
},
|
|
3630
|
+
"interlacedPlayback": {
|
|
3631
|
+
"type": "string"
|
|
3632
|
+
},
|
|
3633
|
+
"liveZoomDuration": {
|
|
3634
|
+
"type": "number"
|
|
3635
|
+
},
|
|
3636
|
+
"maxSubclipDuration": {
|
|
3637
|
+
"type": "number"
|
|
3638
|
+
},
|
|
3639
|
+
"openCommand": {
|
|
3640
|
+
"anyOf": [
|
|
3641
|
+
{
|
|
3642
|
+
"$ref": "#/definitions/PartialObjectDeep<{url?:string;command?:string;app?:string;args?:string[];},{}>",
|
|
3643
|
+
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`."
|
|
3644
|
+
},
|
|
3645
|
+
{
|
|
3646
|
+
"type": "string"
|
|
3647
|
+
}
|
|
3648
|
+
]
|
|
3649
|
+
},
|
|
3650
|
+
"placeholder": {
|
|
3651
|
+
"type": "string"
|
|
3652
|
+
},
|
|
3653
|
+
"playbackRates": {
|
|
3654
|
+
"items": {
|
|
3655
|
+
"type": "number"
|
|
3656
|
+
},
|
|
3657
|
+
"type": "array"
|
|
3658
|
+
},
|
|
3659
|
+
"rewindStep": {
|
|
3660
|
+
"type": "number"
|
|
3661
|
+
},
|
|
3662
|
+
"stepManyFrames": {
|
|
3663
|
+
"type": "number"
|
|
3664
|
+
},
|
|
3665
|
+
"subtitleTemplateId": {
|
|
3666
|
+
"type": "string"
|
|
3667
|
+
},
|
|
3668
|
+
"subtitles": {
|
|
3669
|
+
"$ref": "#/definitions/PartialObjectDeep<{spacing:number;maxCharactersPerLine:number;},{}>"
|
|
3670
|
+
},
|
|
3671
|
+
"tile": {
|
|
3672
|
+
"$ref": "#/definitions/PartialObjectDeep<{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;},{}>"
|
|
3673
|
+
},
|
|
3674
|
+
"timecodeReference": {
|
|
3675
|
+
"type": "string"
|
|
3676
|
+
},
|
|
3677
|
+
"transcribe": {
|
|
3678
|
+
"$ref": "#/definitions/PartialObjectDeep<{subtitleDisclaimer?:{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};};},{}>"
|
|
3679
|
+
}
|
|
3680
|
+
},
|
|
3681
|
+
"type": "object"
|
|
3682
|
+
},
|
|
3569
3683
|
"PartialObjectDeep<{dimOnBlur:boolean;},{}>": {
|
|
3570
3684
|
"additionalProperties": false,
|
|
3571
3685
|
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
@@ -3900,100 +4014,6 @@
|
|
|
3900
4014
|
},
|
|
3901
4015
|
"type": "object"
|
|
3902
4016
|
},
|
|
3903
|
-
"PartialObjectDeep<{placeholder?:string;guide?:{mask?:boolean;actionSafe?:boolean;titleSafe?:boolean;};stepManyFrames:number;liveZoomDuration:number;importTitleTemplate:string;tile:{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;};timecodeReference:string;maxSubclipDuration:number;rewindStep:number;forwardStep:number;interlacedPlayback:string;playbackRates:number[];subtitles:{spacing:number;maxCharactersPerLine:number;};subtitleTemplateId?:string;initialVolume:string;guides:{label:string;aspectRatio:string;}[];download:boolean;editMode:{enabled:boolean;defaultEnterOption:\"none\"|\"edit\"|\"createNew\";defaultExitOption:\"none\"|\"update\"|\"leave\";};transcribe?:{subtitleDisclaimer?:{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};};};openCommand?:string|{url?:string;command?:string;app?:string;args?:string[];};},{}>": {
|
|
3904
|
-
"additionalProperties": false,
|
|
3905
|
-
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
3906
|
-
"properties": {
|
|
3907
|
-
"download": {
|
|
3908
|
-
"type": "boolean"
|
|
3909
|
-
},
|
|
3910
|
-
"editMode": {
|
|
3911
|
-
"$ref": "#/definitions/PartialObjectDeep<{enabled:boolean;defaultEnterOption:\"none\"|\"edit\"|\"createNew\";defaultExitOption:\"none\"|\"update\"|\"leave\";},{}>"
|
|
3912
|
-
},
|
|
3913
|
-
"forwardStep": {
|
|
3914
|
-
"type": "number"
|
|
3915
|
-
},
|
|
3916
|
-
"guide": {
|
|
3917
|
-
"$ref": "#/definitions/PartialObjectDeep<{mask?:boolean;actionSafe?:boolean;titleSafe?:boolean;},{}>"
|
|
3918
|
-
},
|
|
3919
|
-
"guides": {
|
|
3920
|
-
"items": {
|
|
3921
|
-
"additionalProperties": false,
|
|
3922
|
-
"properties": {
|
|
3923
|
-
"aspectRatio": {
|
|
3924
|
-
"type": "string"
|
|
3925
|
-
},
|
|
3926
|
-
"label": {
|
|
3927
|
-
"type": "string"
|
|
3928
|
-
}
|
|
3929
|
-
},
|
|
3930
|
-
"required": [
|
|
3931
|
-
"aspectRatio",
|
|
3932
|
-
"label"
|
|
3933
|
-
],
|
|
3934
|
-
"type": "object"
|
|
3935
|
-
},
|
|
3936
|
-
"type": "array"
|
|
3937
|
-
},
|
|
3938
|
-
"importTitleTemplate": {
|
|
3939
|
-
"type": "string"
|
|
3940
|
-
},
|
|
3941
|
-
"initialVolume": {
|
|
3942
|
-
"type": "string"
|
|
3943
|
-
},
|
|
3944
|
-
"interlacedPlayback": {
|
|
3945
|
-
"type": "string"
|
|
3946
|
-
},
|
|
3947
|
-
"liveZoomDuration": {
|
|
3948
|
-
"type": "number"
|
|
3949
|
-
},
|
|
3950
|
-
"maxSubclipDuration": {
|
|
3951
|
-
"type": "number"
|
|
3952
|
-
},
|
|
3953
|
-
"openCommand": {
|
|
3954
|
-
"anyOf": [
|
|
3955
|
-
{
|
|
3956
|
-
"$ref": "#/definitions/PartialObjectDeep<{url?:string;command?:string;app?:string;args?:string[];},{}>",
|
|
3957
|
-
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`."
|
|
3958
|
-
},
|
|
3959
|
-
{
|
|
3960
|
-
"type": "string"
|
|
3961
|
-
}
|
|
3962
|
-
]
|
|
3963
|
-
},
|
|
3964
|
-
"placeholder": {
|
|
3965
|
-
"type": "string"
|
|
3966
|
-
},
|
|
3967
|
-
"playbackRates": {
|
|
3968
|
-
"items": {
|
|
3969
|
-
"type": "number"
|
|
3970
|
-
},
|
|
3971
|
-
"type": "array"
|
|
3972
|
-
},
|
|
3973
|
-
"rewindStep": {
|
|
3974
|
-
"type": "number"
|
|
3975
|
-
},
|
|
3976
|
-
"stepManyFrames": {
|
|
3977
|
-
"type": "number"
|
|
3978
|
-
},
|
|
3979
|
-
"subtitleTemplateId": {
|
|
3980
|
-
"type": "string"
|
|
3981
|
-
},
|
|
3982
|
-
"subtitles": {
|
|
3983
|
-
"$ref": "#/definitions/PartialObjectDeep<{spacing:number;maxCharactersPerLine:number;},{}>"
|
|
3984
|
-
},
|
|
3985
|
-
"tile": {
|
|
3986
|
-
"$ref": "#/definitions/PartialObjectDeep<{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;},{}>"
|
|
3987
|
-
},
|
|
3988
|
-
"timecodeReference": {
|
|
3989
|
-
"type": "string"
|
|
3990
|
-
},
|
|
3991
|
-
"transcribe": {
|
|
3992
|
-
"$ref": "#/definitions/PartialObjectDeep<{subtitleDisclaimer?:{isUserConfigurable?:boolean;defaultValue?:{enabled?:false;text?:{language:string;value:string;}[];offset?:number;duration?:number;};};},{}>"
|
|
3993
|
-
}
|
|
3994
|
-
},
|
|
3995
|
-
"type": "object"
|
|
3996
|
-
},
|
|
3997
4017
|
"PartialObjectDeep<{preview:boolean|\"play\"|\"seek\"|\"disabled\"|\"seekplay\";showRenderProgress:boolean;},{}>": {
|
|
3998
4018
|
"additionalProperties": false,
|
|
3999
4019
|
"description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
|
|
@@ -4226,6 +4246,13 @@
|
|
|
4226
4246
|
"PipelineDomainRecord": {
|
|
4227
4247
|
"additionalProperties": false,
|
|
4228
4248
|
"properties": {
|
|
4249
|
+
"assetType": {
|
|
4250
|
+
"enum": [
|
|
4251
|
+
"collection",
|
|
4252
|
+
"pipeline"
|
|
4253
|
+
],
|
|
4254
|
+
"type": "string"
|
|
4255
|
+
},
|
|
4229
4256
|
"bookmarkId": {
|
|
4230
4257
|
"type": "string"
|
|
4231
4258
|
},
|
|
@@ -4486,11 +4513,6 @@
|
|
|
4486
4513
|
"asset-daemon:user-notify.state": {
|
|
4487
4514
|
"additionalProperties": false,
|
|
4488
4515
|
"properties": {
|
|
4489
|
-
"error": {
|
|
4490
|
-
"additionalProperties": true,
|
|
4491
|
-
"properties": {},
|
|
4492
|
-
"type": "object"
|
|
4493
|
-
},
|
|
4494
4516
|
"since": {
|
|
4495
4517
|
"anyOf": [
|
|
4496
4518
|
{
|
|
@@ -4502,9 +4524,6 @@
|
|
|
4502
4524
|
}
|
|
4503
4525
|
]
|
|
4504
4526
|
},
|
|
4505
|
-
"status": {
|
|
4506
|
-
"type": "string"
|
|
4507
|
-
},
|
|
4508
4527
|
"version": {
|
|
4509
4528
|
"type": "number"
|
|
4510
4529
|
}
|