@nxtedition/types 23.0.24 → 23.0.26
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 +0 -1
- package/dist/app.js +4 -17
- package/dist/common/file.d.ts +20 -6
- package/dist/common/file.js +344 -24
- package/dist/common/nxtpression.d.ts +8 -0
- package/dist/common/settings.d.ts +8 -4
- package/dist/common/settings.js +1109 -1013
- package/dist/domains/connection.d.ts +28 -18
- package/dist/domains/connection.js +968 -194
- package/dist/domains/file.js +12 -12
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +1 -0
- package/dist/domains/media.js +23 -6
- package/dist/domains/pipeline.js +9 -9
- package/dist/domains/publish.d.ts +71 -15
- package/dist/domains/publish.js +23088 -5976
- package/dist/domains/render.d.ts +1 -0
- package/dist/domains/render.js +155 -18
- package/dist/domains/settings.js +1113 -1020
- package/dist/domains/subtitle.d.ts +19 -0
- package/dist/domains/subtitle.js +212 -0
- package/dist/index.js +13 -12
- package/dist/schema.json +278 -18
- package/package.json +1 -1
package/dist/domains/file.js
CHANGED
|
@@ -1363,19 +1363,19 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
|
|
|
1363
1363
|
value: input.deleted
|
|
1364
1364
|
}, errorFactory)) && ((Array.isArray(input.refs) || $guard(_exceptionable, {
|
|
1365
1365
|
path: _path + ".refs",
|
|
1366
|
-
expected: "
|
|
1366
|
+
expected: "FileRefs",
|
|
1367
1367
|
value: input.refs
|
|
1368
1368
|
}, errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1369
1369
|
path: _path + ".refs[" + _index5 + "]",
|
|
1370
|
-
expected: "
|
|
1370
|
+
expected: "FileRef",
|
|
1371
1371
|
value: elem
|
|
1372
1372
|
}, errorFactory)) && $ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1373
1373
|
path: _path + ".refs[" + _index5 + "]",
|
|
1374
|
-
expected: "
|
|
1374
|
+
expected: "FileRef",
|
|
1375
1375
|
value: elem
|
|
1376
1376
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1377
1377
|
path: _path + ".refs",
|
|
1378
|
-
expected: "
|
|
1378
|
+
expected: "FileRefs",
|
|
1379
1379
|
value: input.refs
|
|
1380
1380
|
}, errorFactory)) && ((Array.isArray(input.tags) || $guard(_exceptionable, {
|
|
1381
1381
|
path: _path + ".tags",
|
|
@@ -1875,19 +1875,19 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
|
|
|
1875
1875
|
value: input.deleted
|
|
1876
1876
|
}, errorFactory)) && ((Array.isArray(input.refs) || $guard(_exceptionable, {
|
|
1877
1877
|
path: _path + ".refs",
|
|
1878
|
-
expected: "
|
|
1878
|
+
expected: "FileRefs",
|
|
1879
1879
|
value: input.refs
|
|
1880
1880
|
}, errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1881
1881
|
path: _path + ".refs[" + _index5 + "]",
|
|
1882
|
-
expected: "
|
|
1882
|
+
expected: "FileRef",
|
|
1883
1883
|
value: elem
|
|
1884
1884
|
}, errorFactory)) && $ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1885
1885
|
path: _path + ".refs[" + _index5 + "]",
|
|
1886
|
-
expected: "
|
|
1886
|
+
expected: "FileRef",
|
|
1887
1887
|
value: elem
|
|
1888
1888
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1889
1889
|
path: _path + ".refs",
|
|
1890
|
-
expected: "
|
|
1890
|
+
expected: "FileRefs",
|
|
1891
1891
|
value: input.refs
|
|
1892
1892
|
}, errorFactory)) && ((Array.isArray(input.tags) || $guard(_exceptionable, {
|
|
1893
1893
|
path: _path + ".tags",
|
|
@@ -2247,19 +2247,19 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
|
|
|
2247
2247
|
value: input.deleted
|
|
2248
2248
|
}, errorFactory)) && ((Array.isArray(input.refs) || $guard(_exceptionable, {
|
|
2249
2249
|
path: _path + ".refs",
|
|
2250
|
-
expected: "
|
|
2250
|
+
expected: "FileRefs",
|
|
2251
2251
|
value: input.refs
|
|
2252
2252
|
}, errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
2253
2253
|
path: _path + ".refs[" + _index5 + "]",
|
|
2254
|
-
expected: "
|
|
2254
|
+
expected: "FileRef",
|
|
2255
2255
|
value: elem
|
|
2256
2256
|
}, errorFactory)) && $ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
2257
2257
|
path: _path + ".refs[" + _index5 + "]",
|
|
2258
|
-
expected: "
|
|
2258
|
+
expected: "FileRef",
|
|
2259
2259
|
value: elem
|
|
2260
2260
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
2261
2261
|
path: _path + ".refs",
|
|
2262
|
-
expected: "
|
|
2262
|
+
expected: "FileRefs",
|
|
2263
2263
|
value: input.refs
|
|
2264
2264
|
}, errorFactory)) && ((Array.isArray(input.tags) || $guard(_exceptionable, {
|
|
2265
2265
|
path: _path + ".tags",
|
package/dist/domains/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import type { SearchDomainRecords } from './search.js';
|
|
|
29
29
|
import type { SettingsDomainRecords } from './settings.js';
|
|
30
30
|
import type { StoryboardDomainRecords } from './storyboard.js';
|
|
31
31
|
import type { SubtitleStyleDomainRecords } from './subtitle-style.js';
|
|
32
|
+
import type { SubtitleDomainRecords } from './subtitle.js';
|
|
32
33
|
import type { TemplateDomainRecords } from './template.js';
|
|
33
34
|
import type { UserNotificationStatusDomainRecords } from './user-notification-status.js';
|
|
34
35
|
import type { UserNotificationDomainRecords } from './user-notification.js';
|
|
@@ -64,8 +65,9 @@ export * from './search.js';
|
|
|
64
65
|
export * from './settings.js';
|
|
65
66
|
export * from './storyboard.js';
|
|
66
67
|
export * from './subtitle-style.js';
|
|
68
|
+
export * from './subtitle.js';
|
|
67
69
|
export * from './template.js';
|
|
68
70
|
export * from './user-notification-status.js';
|
|
69
71
|
export * from './user-notification.js';
|
|
70
72
|
export * from './user.js';
|
|
71
|
-
export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
|
|
73
|
+
export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & SubtitleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
|
package/dist/domains/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export * from './search.js';
|
|
|
29
29
|
export * from './settings.js';
|
|
30
30
|
export * from './storyboard.js';
|
|
31
31
|
export * from './subtitle-style.js';
|
|
32
|
+
export * from './subtitle.js';
|
|
32
33
|
export * from './template.js';
|
|
33
34
|
export * from './user-notification-status.js';
|
|
34
35
|
export * from './user-notification.js';
|
package/dist/domains/media.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export interface MediaProbeRecord {
|
|
|
99
99
|
duration?: number | null;
|
|
100
100
|
error: NxtError | null;
|
|
101
101
|
type: MediaType;
|
|
102
|
+
live?: boolean | null;
|
|
102
103
|
}
|
|
103
104
|
export declare const isMediaProbeRecord: (input: unknown) => input is MediaProbeRecord;
|
|
104
105
|
export declare const assertMediaProbeRecord: (input: unknown) => MediaProbeRecord;
|
package/dist/domains/media.js
CHANGED
|
@@ -3301,7 +3301,7 @@ export const assertStringifyMediaRestrictionsRecord = (input, errorFactory) => {
|
|
|
3301
3301
|
return $so0(input);
|
|
3302
3302
|
}; return stringify(assert(input, errorFactory)); };
|
|
3303
3303
|
export const isMediaProbeRecord = input => {
|
|
3304
|
-
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
|
|
3304
|
+
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
|
|
3305
3305
|
const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
3306
3306
|
const $io2 = input => Object.keys(input).every(key => {
|
|
3307
3307
|
const value = input[key];
|
|
@@ -3314,7 +3314,7 @@ export const isMediaProbeRecord = input => {
|
|
|
3314
3314
|
};
|
|
3315
3315
|
export const assertMediaProbeRecord = (input, errorFactory) => {
|
|
3316
3316
|
const __is = input => {
|
|
3317
|
-
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
|
|
3317
|
+
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
|
|
3318
3318
|
const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
3319
3319
|
const $io2 = input => Object.keys(input).every(key => {
|
|
3320
3320
|
const value = input[key];
|
|
@@ -3345,6 +3345,10 @@ export const assertMediaProbeRecord = (input, errorFactory) => {
|
|
|
3345
3345
|
path: _path + ".type",
|
|
3346
3346
|
expected: "(\"audio\" | \"image\" | \"video\")",
|
|
3347
3347
|
value: input.type
|
|
3348
|
+
}, errorFactory)) && (null === input.live || undefined === input.live || "boolean" === typeof input.live || $guard(_exceptionable, {
|
|
3349
|
+
path: _path + ".live",
|
|
3350
|
+
expected: "(boolean | null | undefined)",
|
|
3351
|
+
value: input.live
|
|
3348
3352
|
}, errorFactory));
|
|
3349
3353
|
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
|
|
3350
3354
|
path: _path + ".message",
|
|
@@ -3451,6 +3455,11 @@ export const randomMediaProbeRecord = generator => {
|
|
|
3451
3455
|
() => "audio",
|
|
3452
3456
|
() => "video",
|
|
3453
3457
|
() => "image"
|
|
3458
|
+
])(),
|
|
3459
|
+
live: $pick([
|
|
3460
|
+
() => undefined,
|
|
3461
|
+
() => null,
|
|
3462
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
3454
3463
|
])()
|
|
3455
3464
|
});
|
|
3456
3465
|
const $ro1 = (_recursive = true, _depth = 0) => ({
|
|
@@ -3504,7 +3513,7 @@ export const randomMediaProbeRecord = generator => {
|
|
|
3504
3513
|
};
|
|
3505
3514
|
export const assertGuardMediaProbeRecord = (input, errorFactory) => {
|
|
3506
3515
|
const __is = input => {
|
|
3507
|
-
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
|
|
3516
|
+
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
|
|
3508
3517
|
const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
3509
3518
|
const $io2 = input => Object.keys(input).every(key => {
|
|
3510
3519
|
const value = input[key];
|
|
@@ -3535,6 +3544,10 @@ export const assertGuardMediaProbeRecord = (input, errorFactory) => {
|
|
|
3535
3544
|
path: _path + ".type",
|
|
3536
3545
|
expected: "(\"audio\" | \"image\" | \"video\")",
|
|
3537
3546
|
value: input.type
|
|
3547
|
+
}, errorFactory)) && (null === input.live || undefined === input.live || "boolean" === typeof input.live || $guard(_exceptionable, {
|
|
3548
|
+
path: _path + ".live",
|
|
3549
|
+
expected: "(boolean | null | undefined)",
|
|
3550
|
+
value: input.live
|
|
3538
3551
|
}, errorFactory));
|
|
3539
3552
|
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
|
|
3540
3553
|
path: _path + ".message",
|
|
@@ -3634,7 +3647,7 @@ export const stringifyMediaProbeRecord = input => {
|
|
|
3634
3647
|
const $io3 = input => true;
|
|
3635
3648
|
const $string = __typia.json.createStringify.string;
|
|
3636
3649
|
const $throws = __typia.json.createStringify.throws;
|
|
3637
|
-
const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
|
|
3650
|
+
const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}${undefined === input.live ? "" : `"live":${undefined !== input.live ? null !== input.live ? input.live : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
|
|
3638
3651
|
if ("string" === typeof input.type)
|
|
3639
3652
|
return $string(input.type);
|
|
3640
3653
|
if ("string" === typeof input.type)
|
|
@@ -3651,7 +3664,7 @@ export const stringifyMediaProbeRecord = input => {
|
|
|
3651
3664
|
};
|
|
3652
3665
|
export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
3653
3666
|
const __is = input => {
|
|
3654
|
-
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration)) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
|
|
3667
|
+
const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration)) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
|
|
3655
3668
|
const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
3656
3669
|
const $io2 = input => Object.keys(input).every(key => {
|
|
3657
3670
|
const value = input[key];
|
|
@@ -3682,6 +3695,10 @@ export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const
|
|
|
3682
3695
|
path: _path + ".type",
|
|
3683
3696
|
expected: "(\"audio\" | \"image\" | \"video\")",
|
|
3684
3697
|
value: input.type
|
|
3698
|
+
}, errorFactory)) && (null === input.live || undefined === input.live || "boolean" === typeof input.live || $guard(_exceptionable, {
|
|
3699
|
+
path: _path + ".live",
|
|
3700
|
+
expected: "(boolean | null | undefined)",
|
|
3701
|
+
value: input.live
|
|
3685
3702
|
}, errorFactory));
|
|
3686
3703
|
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
|
|
3687
3704
|
path: _path + ".message",
|
|
@@ -3781,7 +3798,7 @@ export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const
|
|
|
3781
3798
|
const $io3 = input => true;
|
|
3782
3799
|
const $string = __typia.json.createAssertStringify.string;
|
|
3783
3800
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
3784
|
-
const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
|
|
3801
|
+
const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}${undefined === input.live ? "" : `"live":${undefined !== input.live ? null !== input.live ? input.live : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
|
|
3785
3802
|
if ("string" === typeof input.type)
|
|
3786
3803
|
return $string(input.type);
|
|
3787
3804
|
if ("string" === typeof input.type)
|
package/dist/domains/pipeline.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isPipelineDomainRecord = input => {
|
|
3
|
-
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "
|
|
3
|
+
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
|
|
4
4
|
const $io1 = input => Object.keys(input).every(key => {
|
|
5
5
|
const value = input[key];
|
|
6
6
|
if (undefined === value)
|
|
@@ -11,7 +11,7 @@ export const isPipelineDomainRecord = input => {
|
|
|
11
11
|
};
|
|
12
12
|
export const assertPipelineDomainRecord = (input, errorFactory) => {
|
|
13
13
|
const __is = input => {
|
|
14
|
-
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "
|
|
14
|
+
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
|
|
15
15
|
const $io1 = input => Object.keys(input).every(key => {
|
|
16
16
|
const value = input[key];
|
|
17
17
|
if (undefined === value)
|
|
@@ -28,7 +28,7 @@ export const assertPipelineDomainRecord = (input, errorFactory) => {
|
|
|
28
28
|
path: _path + ".dummy",
|
|
29
29
|
expected: "(boolean | undefined)",
|
|
30
30
|
value: input.dummy
|
|
31
|
-
}, errorFactory)) && (undefined === input.assetType || "
|
|
31
|
+
}, errorFactory)) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType || $guard(_exceptionable, {
|
|
32
32
|
path: _path + ".assetType",
|
|
33
33
|
expected: "(\"collection\" | \"pipeline\" | undefined)",
|
|
34
34
|
value: input.assetType
|
|
@@ -97,8 +97,8 @@ export const randomPipelineDomainRecord = generator => {
|
|
|
97
97
|
])(),
|
|
98
98
|
assetType: $pick([
|
|
99
99
|
() => undefined,
|
|
100
|
-
() => "
|
|
101
|
-
() => "
|
|
100
|
+
() => "collection",
|
|
101
|
+
() => "pipeline"
|
|
102
102
|
])(),
|
|
103
103
|
preset: $pick([
|
|
104
104
|
() => undefined,
|
|
@@ -134,7 +134,7 @@ export const randomPipelineDomainRecord = generator => {
|
|
|
134
134
|
};
|
|
135
135
|
export const assertGuardPipelineDomainRecord = (input, errorFactory) => {
|
|
136
136
|
const __is = input => {
|
|
137
|
-
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "
|
|
137
|
+
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
|
|
138
138
|
const $io1 = input => Object.keys(input).every(key => {
|
|
139
139
|
const value = input[key];
|
|
140
140
|
if (undefined === value)
|
|
@@ -151,7 +151,7 @@ export const assertGuardPipelineDomainRecord = (input, errorFactory) => {
|
|
|
151
151
|
path: _path + ".dummy",
|
|
152
152
|
expected: "(boolean | undefined)",
|
|
153
153
|
value: input.dummy
|
|
154
|
-
}, errorFactory)) && (undefined === input.assetType || "
|
|
154
|
+
}, errorFactory)) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType || $guard(_exceptionable, {
|
|
155
155
|
path: _path + ".assetType",
|
|
156
156
|
expected: "(\"collection\" | \"pipeline\" | undefined)",
|
|
157
157
|
value: input.assetType
|
|
@@ -235,7 +235,7 @@ export const stringifyPipelineDomainRecord = input => {
|
|
|
235
235
|
};
|
|
236
236
|
export const assertStringifyPipelineDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
237
237
|
const __is = input => {
|
|
238
|
-
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "
|
|
238
|
+
const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
|
|
239
239
|
const $io1 = input => Object.keys(input).every(key => {
|
|
240
240
|
const value = input[key];
|
|
241
241
|
if (undefined === value)
|
|
@@ -252,7 +252,7 @@ export const assertStringifyPipelineDomainRecord = (input, errorFactory) => { co
|
|
|
252
252
|
path: _path + ".dummy",
|
|
253
253
|
expected: "(boolean | undefined)",
|
|
254
254
|
value: input.dummy
|
|
255
|
-
}, errorFactory)) && (undefined === input.assetType || "
|
|
255
|
+
}, errorFactory)) && (undefined === input.assetType || "collection" === input.assetType || "pipeline" === input.assetType || $guard(_exceptionable, {
|
|
256
256
|
path: _path + ".assetType",
|
|
257
257
|
expected: "(\"collection\" | \"pipeline\" | undefined)",
|
|
258
258
|
value: input.assetType
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
import type { Message } from '../common/index.js';
|
|
2
|
+
import type { Message, RenderSceneObject, RenderProfileObject } from '../common/index.js';
|
|
3
|
+
import type { Nxtpression } from '../common/index.js';
|
|
3
4
|
export interface PublishDomainRecords {
|
|
4
5
|
[":publish"]: PublishRecord;
|
|
5
6
|
[":publish.stats?"]: PublishStatsRecord;
|
|
@@ -9,7 +10,7 @@ export interface PublishDomainRecords {
|
|
|
9
10
|
}>;
|
|
10
11
|
[":publish.accepts"]: PublishDomainAcceptsProvidedRecord;
|
|
11
12
|
}
|
|
12
|
-
export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord;
|
|
13
|
+
export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy;
|
|
13
14
|
export declare const isPublishRecord: (input: unknown) => input is PublishRecord;
|
|
14
15
|
export declare const assertPublishRecord: (input: unknown) => PublishRecord;
|
|
15
16
|
export declare const randomPublishRecord: () => PublishRecord;
|
|
@@ -23,11 +24,26 @@ export declare const randomPublishStatsRecord: () => PublishStatsRecord;
|
|
|
23
24
|
export declare const assertGuardPublishStatsRecord: __AssertionGuard<PublishStatsRecord>;
|
|
24
25
|
export declare const stringifyPublishStatsRecord: (input: PublishStatsRecord) => string;
|
|
25
26
|
export declare const assertStringifyPublishStatsRecord: (input: unknown) => string;
|
|
27
|
+
/**
|
|
28
|
+
* render preset + overrides
|
|
29
|
+
*/
|
|
30
|
+
export interface PublishRender {
|
|
31
|
+
preset?: string;
|
|
32
|
+
type: string;
|
|
33
|
+
scene?: RenderSceneObject;
|
|
34
|
+
profile?: RenderProfileObject;
|
|
35
|
+
}
|
|
36
|
+
export declare const isPublishRender: (input: unknown) => input is PublishRender;
|
|
37
|
+
export declare const assertPublishRender: (input: unknown) => PublishRender;
|
|
38
|
+
export declare const randomPublishRender: () => PublishRender;
|
|
39
|
+
export declare const assertGuardPublishRender: __AssertionGuard<PublishRender>;
|
|
40
|
+
export declare const stringifyPublishRender: (input: PublishRender) => string;
|
|
41
|
+
export declare const assertStringifyPublishRender: (input: unknown) => string;
|
|
26
42
|
interface PublishRecordCommon<Type extends PublishRecord["type"]> {
|
|
27
43
|
type: Type;
|
|
28
44
|
asset?: string;
|
|
29
45
|
connection?: string;
|
|
30
|
-
render?:
|
|
46
|
+
render?: PublishRender;
|
|
31
47
|
draft?: Record<string, unknown>;
|
|
32
48
|
published?: Record<string, unknown>;
|
|
33
49
|
remote?: Record<string, unknown>;
|
|
@@ -103,25 +119,65 @@ export declare const randomFilePublishRecord: () => FilePublishRecord;
|
|
|
103
119
|
export declare const assertGuardFilePublishRecord: __AssertionGuard<FilePublishRecord>;
|
|
104
120
|
export declare const stringifyFilePublishRecord: (input: FilePublishRecord) => string;
|
|
105
121
|
export declare const assertStringifyFilePublishRecord: (input: unknown) => string;
|
|
106
|
-
export interface
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
122
|
+
export interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
|
|
123
|
+
directory?: string;
|
|
124
|
+
filename?: string;
|
|
125
|
+
draft?: FilePublishDraft;
|
|
126
|
+
remote?: FilePublishRemoteLegacy;
|
|
127
|
+
published?: FilePublishPublished;
|
|
128
|
+
renders?: undefined;
|
|
129
|
+
}
|
|
130
|
+
export declare const isFilePublishRecordLegacy: (input: unknown) => input is FilePublishRecordLegacy;
|
|
131
|
+
export declare const assertFilePublishRecordLegacy: (input: unknown) => FilePublishRecordLegacy;
|
|
132
|
+
export declare const randomFilePublishRecordLegacy: () => FilePublishRecordLegacy;
|
|
133
|
+
export declare const assertGuardFilePublishRecordLegacy: __AssertionGuard<FilePublishRecordLegacy>;
|
|
134
|
+
export declare const stringifyFilePublishRecordLegacy: (input: FilePublishRecordLegacy) => string;
|
|
135
|
+
export declare const assertStringifyFilePublishRecordLegacy: (input: unknown) => string;
|
|
136
|
+
export interface FilePublishRemoteLegacy extends Record<string, unknown> {
|
|
137
|
+
id?: string;
|
|
138
|
+
path: string;
|
|
139
|
+
filename: string;
|
|
140
|
+
directory?: string;
|
|
141
|
+
subtitle?: {
|
|
142
|
+
path: string;
|
|
143
|
+
};
|
|
144
|
+
metafile?: {
|
|
145
|
+
path: string;
|
|
146
|
+
};
|
|
115
147
|
}
|
|
148
|
+
export declare const isFilePublishRemoteLegacy: (input: unknown) => input is FilePublishRemoteLegacy;
|
|
149
|
+
export declare const assertFilePublishRemoteLegacy: (input: unknown) => FilePublishRemoteLegacy;
|
|
150
|
+
export declare const randomFilePublishRemoteLegacy: () => FilePublishRemoteLegacy;
|
|
151
|
+
export declare const assertGuardFilePublishRemoteLegacy: __AssertionGuard<FilePublishRemoteLegacy>;
|
|
152
|
+
export declare const stringifyFilePublishRemoteLegacy: (input: FilePublishRemoteLegacy) => string;
|
|
153
|
+
export declare const assertStringifyFilePublishRemoteLegacy: (input: unknown) => string;
|
|
154
|
+
export type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
|
|
155
|
+
publish: FilePublishRecord;
|
|
156
|
+
directory: string;
|
|
157
|
+
name: string;
|
|
158
|
+
}>;
|
|
116
159
|
export declare const isFilePublishRender: (input: unknown) => input is FilePublishRender;
|
|
117
160
|
export declare const assertFilePublishRender: (input: unknown) => FilePublishRender;
|
|
118
161
|
export declare const randomFilePublishRender: () => FilePublishRender;
|
|
119
162
|
export declare const assertGuardFilePublishRender: __AssertionGuard<FilePublishRender>;
|
|
120
163
|
export declare const stringifyFilePublishRender: (input: FilePublishRender) => string;
|
|
121
164
|
export declare const assertStringifyFilePublishRender: (input: unknown) => string;
|
|
165
|
+
export interface ResolvedFilePublishRender extends Omit<PublishRender, "preset"> {
|
|
166
|
+
preset?: string;
|
|
167
|
+
name?: string;
|
|
168
|
+
path: string;
|
|
169
|
+
collisionStrategy?: "overwrite" | "skip";
|
|
170
|
+
ignoreEmptyScene?: boolean;
|
|
171
|
+
}
|
|
172
|
+
export declare const isResolvedFilePublishRender: (input: unknown) => input is ResolvedFilePublishRender;
|
|
173
|
+
export declare const assertResolvedFilePublishRender: (input: unknown) => ResolvedFilePublishRender;
|
|
174
|
+
export declare const randomResolvedFilePublishRender: () => ResolvedFilePublishRender;
|
|
175
|
+
export declare const assertGuardResolvedFilePublishRender: __AssertionGuard<ResolvedFilePublishRender>;
|
|
176
|
+
export declare const stringifyResolvedFilePublishRender: (input: ResolvedFilePublishRender) => string;
|
|
177
|
+
export declare const assertStringifyResolvedFilePublishRender: (input: unknown) => string;
|
|
122
178
|
export interface FilePublishPublished extends Record<string, unknown> {
|
|
123
179
|
directory?: string;
|
|
124
|
-
filename
|
|
180
|
+
filename: string;
|
|
125
181
|
}
|
|
126
182
|
export declare const isFilePublishPublished: (input: unknown) => input is FilePublishPublished;
|
|
127
183
|
export declare const assertFilePublishPublished: (input: unknown) => FilePublishPublished;
|
|
@@ -154,7 +210,7 @@ export interface FilePublishRemoteRender {
|
|
|
154
210
|
path?: string;
|
|
155
211
|
messages?: Message[];
|
|
156
212
|
query?: unknown;
|
|
157
|
-
size?:
|
|
213
|
+
size?: number;
|
|
158
214
|
hash?: string;
|
|
159
215
|
source?: string;
|
|
160
216
|
}
|
|
@@ -187,7 +243,7 @@ export declare const stringifyFilePublishRetrieved: (input: FilePublishRetrieved
|
|
|
187
243
|
export declare const assertStringifyFilePublishRetrieved: (input: unknown) => string;
|
|
188
244
|
export interface FilePublishRetrievedRender {
|
|
189
245
|
path: string;
|
|
190
|
-
size?:
|
|
246
|
+
size?: number;
|
|
191
247
|
hash?: string;
|
|
192
248
|
}
|
|
193
249
|
export declare const isFilePublishRetrievedRender: (input: unknown) => input is FilePublishRetrievedRender;
|