@nxtedition/types 23.0.40 → 23.0.42
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 -33
- package/dist/app.js +1 -655
- package/dist/common/block.d.ts +6 -13
- package/dist/common/block.js +597 -1607
- package/dist/common/clone.d.ts +0 -19
- package/dist/common/clone.js +1 -602
- package/dist/common/date.d.ts +0 -7
- package/dist/common/date.js +1 -59
- package/dist/common/error.d.ts +0 -7
- package/dist/common/error.js +1 -404
- package/dist/common/file.d.ts +1 -21
- package/dist/common/file.js +782 -2521
- package/dist/common/index.d.ts +20 -26
- package/dist/common/index.js +20 -134
- package/dist/common/location.d.ts +0 -6
- package/dist/common/location.js +73 -238
- package/dist/common/lock.d.ts +1 -8
- package/dist/common/lock.js +1 -211
- package/dist/common/media.d.ts +0 -7
- package/dist/common/media.js +1 -83
- package/dist/common/nxtpression.d.ts +2 -9
- package/dist/common/nxtpression.js +1 -277
- package/dist/common/pipeline.d.ts +0 -7
- package/dist/common/pipeline.js +1 -97
- package/dist/common/promoted-tag.d.ts +0 -7
- package/dist/common/promoted-tag.js +1 -147
- package/dist/common/render-preset.d.ts +4 -17
- package/dist/common/render-preset.js +1 -1202
- package/dist/common/render-profile.d.ts +3 -19
- package/dist/common/render-profile.js +1 -1052
- package/dist/common/render-query.d.ts +2 -9
- package/dist/common/render-query.js +1 -1843
- package/dist/common/render-scene.d.ts +3 -16
- package/dist/common/render-scene.js +1 -2408
- package/dist/common/rule.d.ts +1 -7
- package/dist/common/rule.js +84 -254
- package/dist/common/search.d.ts +0 -25
- package/dist/common/search.js +1 -1591
- package/dist/common/settings.d.ts +113 -125
- package/dist/common/settings.js +1 -7504
- package/dist/common/subtitle-style.d.ts +25 -0
- package/dist/common/user-notification.d.ts +0 -7
- package/dist/common/user-notification.js +1 -85
- package/dist/index.d.ts +5 -108
- package/dist/index.js +5 -469
- package/dist/nxtpression.d.ts +538 -337
- package/dist/nxtpression.js +1 -323
- package/dist/records/domains/asset.d.ts +106 -0
- package/dist/records/domains/bundle.d.ts +12 -0
- package/dist/records/domains/bundle.js +1 -0
- package/dist/records/domains/clone.d.ts +7 -0
- package/dist/records/domains/clone.js +1 -0
- package/dist/records/domains/comment-reaction.d.ts +8 -0
- package/dist/records/domains/comment-reaction.js +1 -0
- package/dist/records/domains/comment-read-mark.d.ts +8 -0
- package/dist/records/domains/comment-read-mark.js +1 -0
- package/dist/records/domains/comment.d.ts +81 -0
- package/dist/records/domains/comment.js +19 -0
- package/dist/records/domains/connection.d.ts +77 -0
- package/dist/records/domains/connection.js +1 -0
- package/dist/records/domains/contact.d.ts +9 -0
- package/dist/records/domains/contact.js +1 -0
- package/dist/records/domains/deepstream.d.ts +8 -0
- package/dist/records/domains/deepstream.js +1 -0
- package/dist/records/domains/design.d.ts +11 -0
- package/dist/records/domains/design.js +1 -0
- package/dist/records/domains/edit.d.ts +10 -0
- package/dist/records/domains/edit.js +1 -0
- package/dist/records/domains/event.d.ts +66 -0
- package/dist/records/domains/event.js +1 -0
- package/dist/records/domains/file.d.ts +26 -0
- package/dist/records/domains/file.js +1 -0
- package/dist/records/domains/general.d.ts +41 -0
- package/dist/records/domains/general.js +1 -0
- package/dist/records/domains/index.d.ts +77 -0
- package/dist/records/domains/index.js +38 -0
- package/dist/records/domains/media.d.ts +64 -0
- package/dist/records/domains/media.js +1 -0
- package/dist/records/domains/monitor.d.ts +116 -0
- package/dist/records/domains/monitor.js +1 -0
- package/dist/records/domains/panel.d.ts +55 -0
- package/dist/records/domains/panel.js +1 -0
- package/dist/records/domains/permission.d.ts +25 -0
- package/dist/records/domains/permission.js +2 -0
- package/dist/records/domains/pipeline-preset.d.ts +10 -0
- package/dist/records/domains/pipeline-preset.js +1 -0
- package/dist/records/domains/pipeline.d.ts +17 -0
- package/dist/records/domains/pipeline.js +1 -0
- package/dist/records/domains/planning.d.ts +14 -0
- package/dist/records/domains/planning.js +1 -0
- package/dist/records/domains/prompter.d.ts +18 -0
- package/dist/records/domains/prompter.js +1 -0
- package/dist/records/domains/publish.d.ts +149 -0
- package/dist/records/domains/publish.js +1 -0
- package/dist/records/domains/published.d.ts +12 -0
- package/dist/records/domains/published.js +1 -0
- package/dist/records/domains/render-preset.d.ts +5 -0
- package/dist/records/domains/render-preset.js +1 -0
- package/dist/records/domains/render.d.ts +115 -0
- package/dist/records/domains/render.js +1 -0
- package/dist/records/domains/revs.d.ts +6 -0
- package/dist/records/domains/revs.js +1 -0
- package/dist/records/domains/role.d.ts +6 -0
- package/dist/records/domains/role.js +1 -0
- package/dist/records/domains/script.d.ts +101 -0
- package/dist/records/domains/script.js +1 -0
- package/dist/records/domains/search.d.ts +23 -0
- package/dist/records/domains/search.js +1 -0
- package/dist/records/domains/settings.d.ts +5 -0
- package/dist/records/domains/settings.js +1 -0
- package/dist/records/domains/storyboard.d.ts +10 -0
- package/dist/records/domains/storyboard.js +1 -0
- package/dist/records/domains/subtitle-style.d.ts +13 -0
- package/dist/records/domains/subtitle-style.js +1 -0
- package/dist/records/domains/subtitle.d.ts +12 -0
- package/dist/records/domains/subtitle.js +1 -0
- package/dist/records/domains/template.d.ts +11 -0
- package/dist/records/domains/template.js +1 -0
- package/dist/records/domains/user-notification-status.d.ts +30 -0
- package/dist/records/domains/user-notification-status.js +1 -0
- package/dist/records/domains/user-notification.d.ts +69 -0
- package/dist/records/domains/user-notification.js +1 -0
- package/dist/records/domains/user.d.ts +23 -0
- package/dist/records/domains/user.js +1 -0
- package/dist/records/exact/asset.d.ts +83 -0
- package/dist/records/exact/asset.js +1 -0
- package/dist/records/exact/index.d.ts +36 -0
- package/dist/records/exact/index.js +4 -0
- package/dist/records/exact/media.d.ts +52 -0
- package/dist/records/exact/media.js +1 -0
- package/dist/records/exact/monitor.d.ts +46 -0
- package/dist/records/exact/monitor.js +1 -0
- package/dist/records/exact/storage.d.ts +32 -0
- package/dist/records/exact/storage.js +1 -0
- package/dist/records/index.d.ts +10 -0
- package/dist/records/index.js +2 -0
- package/dist/records/utils.d.ts +7 -0
- package/dist/records/utils.js +1 -0
- package/dist/records/utils.tds.d.ts +1 -0
- package/dist/records/utils.tds.js +7 -0
- package/dist/records/validate/assert-guard.d.ts +4 -0
- package/dist/records/validate/assert-guard.js +16068 -0
- package/dist/records/validate/assert.d.ts +4 -0
- package/dist/records/validate/assert.js +16198 -0
- package/dist/records/validate/is.d.ts +4 -0
- package/dist/records/validate/is.js +1027 -0
- package/dist/records/validate/schemas.d.ts +9 -0
- package/dist/records/validate/schemas.js +12862 -0
- package/dist/records/validate/stringify.d.ts +4 -0
- package/dist/records/validate/stringify.js +1915 -0
- package/dist/records/validate/utils.d.ts +15 -0
- package/dist/records/validate/utils.js +26 -0
- package/dist/records/validate/validate-equals.d.ts +5 -0
- package/dist/records/validate/validate-equals.js +24363 -0
- package/dist/records/validate/validate.d.ts +5 -0
- package/dist/records/validate/validate.js +15127 -0
- package/dist/rpc.d.ts +5 -15
- package/dist/rpc.js +126 -511
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +25 -15
- package/dist/asset.d.ts +0 -72
- package/dist/domains/asset.d.ts +0 -227
- package/dist/domains/asset.js +0 -2672
- package/dist/domains/bundle.d.ts +0 -25
- package/dist/domains/bundle.js +0 -512
- package/dist/domains/clone.d.ts +0 -14
- package/dist/domains/clone.js +0 -192
- package/dist/domains/comment-reaction.d.ts +0 -15
- package/dist/domains/comment-reaction.js +0 -115
- package/dist/domains/comment-read-mark.d.ts +0 -15
- package/dist/domains/comment-read-mark.js +0 -115
- package/dist/domains/comment.d.ts +0 -153
- package/dist/domains/comment.js +0 -5906
- package/dist/domains/connection.d.ts +0 -141
- package/dist/domains/connection.js +0 -5860
- package/dist/domains/contact.d.ts +0 -16
- package/dist/domains/contact.js +0 -149
- package/dist/domains/deepstream.d.ts +0 -14
- package/dist/domains/deepstream.js +0 -139
- package/dist/domains/design.d.ts +0 -24
- package/dist/domains/design.js +0 -303
- package/dist/domains/edit.d.ts +0 -17
- package/dist/domains/edit.js +0 -224
- package/dist/domains/event.d.ts +0 -170
- package/dist/domains/event.js +0 -2779
- package/dist/domains/file.d.ts +0 -51
- package/dist/domains/file.js +0 -2506
- package/dist/domains/general.d.ts +0 -84
- package/dist/domains/general.js +0 -906
- package/dist/domains/index.d.ts +0 -75
- package/dist/domains/index.js +0 -37
- package/dist/domains/media.d.ts +0 -113
- package/dist/domains/media.js +0 -4642
- package/dist/domains/monitor.d.ts +0 -416
- package/dist/domains/monitor.js +0 -6382
- package/dist/domains/panel.d.ts +0 -371
- package/dist/domains/panel.js +0 -3198
- package/dist/domains/permission.d.ts +0 -61
- package/dist/domains/permission.js +0 -1926
- package/dist/domains/pipeline-preset.d.ts +0 -17
- package/dist/domains/pipeline-preset.js +0 -236
- package/dist/domains/pipeline.d.ts +0 -30
- package/dist/domains/pipeline.js +0 -460
- package/dist/domains/planning.d.ts +0 -33
- package/dist/domains/planning.js +0 -324
- package/dist/domains/publish.d.ts +0 -1452
- package/dist/domains/publish.js +0 -35415
- package/dist/domains/published.d.ts +0 -19
- package/dist/domains/published.js +0 -204
- package/dist/domains/render-preset.d.ts +0 -4
- package/dist/domains/render.d.ts +0 -158
- package/dist/domains/render.js +0 -4452
- package/dist/domains/revs.d.ts +0 -13
- package/dist/domains/revs.js +0 -125
- package/dist/domains/role.d.ts +0 -13
- package/dist/domains/role.js +0 -119
- package/dist/domains/script.d.ts +0 -263
- package/dist/domains/script.js +0 -6777
- package/dist/domains/search.d.ts +0 -16
- package/dist/domains/search.js +0 -168
- package/dist/domains/settings.d.ts +0 -12
- package/dist/domains/settings.js +0 -7180
- package/dist/domains/storyboard.d.ts +0 -14
- package/dist/domains/storyboard.js +0 -125
- package/dist/domains/subtitle-style.d.ts +0 -42
- package/dist/domains/subtitle-style.js +0 -574
- package/dist/domains/subtitle.d.ts +0 -19
- package/dist/domains/subtitle.js +0 -212
- package/dist/domains/template.d.ts +0 -23
- package/dist/domains/template.js +0 -372
- package/dist/domains/user-notification-status.d.ts +0 -55
- package/dist/domains/user-notification-status.js +0 -715
- package/dist/domains/user-notification.d.ts +0 -118
- package/dist/domains/user-notification.js +0 -3040
- package/dist/domains/user.d.ts +0 -48
- package/dist/domains/user.js +0 -481
- package/dist/monitor.d.ts +0 -71
- package/dist/monitor.js +0 -1942
- package/dist/schema.json +0 -9836
- package/dist/storage.d.ts +0 -51
- package/dist/storage.js +0 -1036
- /package/dist/{asset.js → common/subtitle-style.js} +0 -0
- /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
package/dist/domains/edit.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export interface EditDomainRecords {
|
|
3
|
-
":edit": EditRecord;
|
|
4
|
-
}
|
|
5
|
-
export interface EditRecord {
|
|
6
|
-
nodes: object;
|
|
7
|
-
tracks: object[];
|
|
8
|
-
transitions: object;
|
|
9
|
-
active?: boolean;
|
|
10
|
-
changeId?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const isEditRecord: (input: unknown) => input is EditRecord;
|
|
13
|
-
export declare const assertEditRecord: (input: unknown) => EditRecord;
|
|
14
|
-
export declare const randomEditRecord: () => EditRecord;
|
|
15
|
-
export declare const assertGuardEditRecord: __AssertionGuard<EditRecord>;
|
|
16
|
-
export declare const stringifyEditRecord: (input: EditRecord) => string;
|
|
17
|
-
export declare const assertStringifyEditRecord: (input: unknown) => string;
|
package/dist/domains/edit.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import __typia from "typia";
|
|
2
|
-
export const isEditRecord = input => {
|
|
3
|
-
const $io0 = input => "object" === typeof input.nodes && null !== input.nodes && true && (Array.isArray(input.tracks) && input.tracks.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && ("object" === typeof input.transitions && null !== input.transitions && true) && (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.changeId || "string" === typeof input.changeId);
|
|
4
|
-
const $io1 = input => true;
|
|
5
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
6
|
-
};
|
|
7
|
-
export const assertEditRecord = (input, errorFactory) => {
|
|
8
|
-
const __is = input => {
|
|
9
|
-
const $io0 = input => "object" === typeof input.nodes && null !== input.nodes && true && (Array.isArray(input.tracks) && input.tracks.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && ("object" === typeof input.transitions && null !== input.transitions && true) && (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.changeId || "string" === typeof input.changeId);
|
|
10
|
-
const $io1 = input => true;
|
|
11
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
12
|
-
};
|
|
13
|
-
if (false === __is(input))
|
|
14
|
-
((input, _path, _exceptionable = true) => {
|
|
15
|
-
const $guard = __typia.createAssert.guard;
|
|
16
|
-
const $ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.nodes && null !== input.nodes && false === Array.isArray(input.nodes) || $guard(_exceptionable, {
|
|
17
|
-
path: _path + ".nodes",
|
|
18
|
-
expected: "object",
|
|
19
|
-
value: input.nodes
|
|
20
|
-
}, errorFactory)) && $ao1(input.nodes, _path + ".nodes", true && _exceptionable) || $guard(_exceptionable, {
|
|
21
|
-
path: _path + ".nodes",
|
|
22
|
-
expected: "object",
|
|
23
|
-
value: input.nodes
|
|
24
|
-
}, errorFactory)) && ((Array.isArray(input.tracks) || $guard(_exceptionable, {
|
|
25
|
-
path: _path + ".tracks",
|
|
26
|
-
expected: "Array<object>",
|
|
27
|
-
value: input.tracks
|
|
28
|
-
}, errorFactory)) && input.tracks.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
29
|
-
path: _path + ".tracks[" + _index1 + "]",
|
|
30
|
-
expected: "object",
|
|
31
|
-
value: elem
|
|
32
|
-
}, errorFactory)) && $ao1(elem, _path + ".tracks[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
33
|
-
path: _path + ".tracks[" + _index1 + "]",
|
|
34
|
-
expected: "object",
|
|
35
|
-
value: elem
|
|
36
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
37
|
-
path: _path + ".tracks",
|
|
38
|
-
expected: "Array<object>",
|
|
39
|
-
value: input.tracks
|
|
40
|
-
}, errorFactory)) && (("object" === typeof input.transitions && null !== input.transitions && false === Array.isArray(input.transitions) || $guard(_exceptionable, {
|
|
41
|
-
path: _path + ".transitions",
|
|
42
|
-
expected: "object",
|
|
43
|
-
value: input.transitions
|
|
44
|
-
}, errorFactory)) && $ao1(input.transitions, _path + ".transitions", true && _exceptionable) || $guard(_exceptionable, {
|
|
45
|
-
path: _path + ".transitions",
|
|
46
|
-
expected: "object",
|
|
47
|
-
value: input.transitions
|
|
48
|
-
}, errorFactory)) && (undefined === input.active || "boolean" === typeof input.active || $guard(_exceptionable, {
|
|
49
|
-
path: _path + ".active",
|
|
50
|
-
expected: "(boolean | undefined)",
|
|
51
|
-
value: input.active
|
|
52
|
-
}, errorFactory)) && (undefined === input.changeId || "string" === typeof input.changeId || $guard(_exceptionable, {
|
|
53
|
-
path: _path + ".changeId",
|
|
54
|
-
expected: "(string | undefined)",
|
|
55
|
-
value: input.changeId
|
|
56
|
-
}, errorFactory));
|
|
57
|
-
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
58
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
59
|
-
path: _path + "",
|
|
60
|
-
expected: "EditRecord",
|
|
61
|
-
value: input
|
|
62
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
63
|
-
path: _path + "",
|
|
64
|
-
expected: "EditRecord",
|
|
65
|
-
value: input
|
|
66
|
-
}, errorFactory);
|
|
67
|
-
})(input, "$input", true);
|
|
68
|
-
return input;
|
|
69
|
-
};
|
|
70
|
-
export const randomEditRecord = generator => {
|
|
71
|
-
const $generator = __typia.createRandom.generator;
|
|
72
|
-
const $pick = __typia.createRandom.pick;
|
|
73
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
74
|
-
nodes: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
|
|
75
|
-
tracks: (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)),
|
|
76
|
-
transitions: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
|
|
77
|
-
active: $pick([
|
|
78
|
-
() => undefined,
|
|
79
|
-
() => (generator?.boolean ?? $generator.boolean)()
|
|
80
|
-
])(),
|
|
81
|
-
changeId: $pick([
|
|
82
|
-
() => undefined,
|
|
83
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
84
|
-
])()
|
|
85
|
-
});
|
|
86
|
-
const $ro1 = (_recursive = false, _depth = 0) => {};
|
|
87
|
-
return $ro0();
|
|
88
|
-
};
|
|
89
|
-
export const assertGuardEditRecord = (input, errorFactory) => {
|
|
90
|
-
const __is = input => {
|
|
91
|
-
const $io0 = input => "object" === typeof input.nodes && null !== input.nodes && true && (Array.isArray(input.tracks) && input.tracks.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && ("object" === typeof input.transitions && null !== input.transitions && true) && (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.changeId || "string" === typeof input.changeId);
|
|
92
|
-
const $io1 = input => true;
|
|
93
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
94
|
-
};
|
|
95
|
-
if (false === __is(input))
|
|
96
|
-
((input, _path, _exceptionable = true) => {
|
|
97
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
98
|
-
const $ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.nodes && null !== input.nodes && false === Array.isArray(input.nodes) || $guard(_exceptionable, {
|
|
99
|
-
path: _path + ".nodes",
|
|
100
|
-
expected: "object",
|
|
101
|
-
value: input.nodes
|
|
102
|
-
}, errorFactory)) && $ao1(input.nodes, _path + ".nodes", true && _exceptionable) || $guard(_exceptionable, {
|
|
103
|
-
path: _path + ".nodes",
|
|
104
|
-
expected: "object",
|
|
105
|
-
value: input.nodes
|
|
106
|
-
}, errorFactory)) && ((Array.isArray(input.tracks) || $guard(_exceptionable, {
|
|
107
|
-
path: _path + ".tracks",
|
|
108
|
-
expected: "Array<object>",
|
|
109
|
-
value: input.tracks
|
|
110
|
-
}, errorFactory)) && input.tracks.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
111
|
-
path: _path + ".tracks[" + _index1 + "]",
|
|
112
|
-
expected: "object",
|
|
113
|
-
value: elem
|
|
114
|
-
}, errorFactory)) && $ao1(elem, _path + ".tracks[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
115
|
-
path: _path + ".tracks[" + _index1 + "]",
|
|
116
|
-
expected: "object",
|
|
117
|
-
value: elem
|
|
118
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
119
|
-
path: _path + ".tracks",
|
|
120
|
-
expected: "Array<object>",
|
|
121
|
-
value: input.tracks
|
|
122
|
-
}, errorFactory)) && (("object" === typeof input.transitions && null !== input.transitions && false === Array.isArray(input.transitions) || $guard(_exceptionable, {
|
|
123
|
-
path: _path + ".transitions",
|
|
124
|
-
expected: "object",
|
|
125
|
-
value: input.transitions
|
|
126
|
-
}, errorFactory)) && $ao1(input.transitions, _path + ".transitions", true && _exceptionable) || $guard(_exceptionable, {
|
|
127
|
-
path: _path + ".transitions",
|
|
128
|
-
expected: "object",
|
|
129
|
-
value: input.transitions
|
|
130
|
-
}, errorFactory)) && (undefined === input.active || "boolean" === typeof input.active || $guard(_exceptionable, {
|
|
131
|
-
path: _path + ".active",
|
|
132
|
-
expected: "(boolean | undefined)",
|
|
133
|
-
value: input.active
|
|
134
|
-
}, errorFactory)) && (undefined === input.changeId || "string" === typeof input.changeId || $guard(_exceptionable, {
|
|
135
|
-
path: _path + ".changeId",
|
|
136
|
-
expected: "(string | undefined)",
|
|
137
|
-
value: input.changeId
|
|
138
|
-
}, errorFactory));
|
|
139
|
-
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
140
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
141
|
-
path: _path + "",
|
|
142
|
-
expected: "EditRecord",
|
|
143
|
-
value: input
|
|
144
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
145
|
-
path: _path + "",
|
|
146
|
-
expected: "EditRecord",
|
|
147
|
-
value: input
|
|
148
|
-
}, errorFactory);
|
|
149
|
-
})(input, "$input", true);
|
|
150
|
-
};
|
|
151
|
-
export const stringifyEditRecord = input => {
|
|
152
|
-
const $io1 = input => true;
|
|
153
|
-
const $string = __typia.json.createStringify.string;
|
|
154
|
-
const $so0 = input => `{${undefined === input.active ? "" : `"active":${undefined !== input.active ? input.active : undefined},`}${undefined === input.changeId ? "" : `"changeId":${undefined !== input.changeId ? $string(input.changeId) : undefined},`}"nodes":{},"tracks":${`[${input.tracks.map(elem => "{}").join(",")}]`},"transitions":{}}`;
|
|
155
|
-
return $so0(input);
|
|
156
|
-
};
|
|
157
|
-
export const assertStringifyEditRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
158
|
-
const __is = input => {
|
|
159
|
-
const $io0 = input => "object" === typeof input.nodes && null !== input.nodes && true && (Array.isArray(input.tracks) && input.tracks.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && ("object" === typeof input.transitions && null !== input.transitions && true) && (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.changeId || "string" === typeof input.changeId);
|
|
160
|
-
const $io1 = input => true;
|
|
161
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
162
|
-
};
|
|
163
|
-
if (false === __is(input))
|
|
164
|
-
((input, _path, _exceptionable = true) => {
|
|
165
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
166
|
-
const $ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.nodes && null !== input.nodes && false === Array.isArray(input.nodes) || $guard(_exceptionable, {
|
|
167
|
-
path: _path + ".nodes",
|
|
168
|
-
expected: "object",
|
|
169
|
-
value: input.nodes
|
|
170
|
-
}, errorFactory)) && $ao1(input.nodes, _path + ".nodes", true && _exceptionable) || $guard(_exceptionable, {
|
|
171
|
-
path: _path + ".nodes",
|
|
172
|
-
expected: "object",
|
|
173
|
-
value: input.nodes
|
|
174
|
-
}, errorFactory)) && ((Array.isArray(input.tracks) || $guard(_exceptionable, {
|
|
175
|
-
path: _path + ".tracks",
|
|
176
|
-
expected: "Array<object>",
|
|
177
|
-
value: input.tracks
|
|
178
|
-
}, errorFactory)) && input.tracks.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
179
|
-
path: _path + ".tracks[" + _index1 + "]",
|
|
180
|
-
expected: "object",
|
|
181
|
-
value: elem
|
|
182
|
-
}, errorFactory)) && $ao1(elem, _path + ".tracks[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
183
|
-
path: _path + ".tracks[" + _index1 + "]",
|
|
184
|
-
expected: "object",
|
|
185
|
-
value: elem
|
|
186
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
187
|
-
path: _path + ".tracks",
|
|
188
|
-
expected: "Array<object>",
|
|
189
|
-
value: input.tracks
|
|
190
|
-
}, errorFactory)) && (("object" === typeof input.transitions && null !== input.transitions && false === Array.isArray(input.transitions) || $guard(_exceptionable, {
|
|
191
|
-
path: _path + ".transitions",
|
|
192
|
-
expected: "object",
|
|
193
|
-
value: input.transitions
|
|
194
|
-
}, errorFactory)) && $ao1(input.transitions, _path + ".transitions", true && _exceptionable) || $guard(_exceptionable, {
|
|
195
|
-
path: _path + ".transitions",
|
|
196
|
-
expected: "object",
|
|
197
|
-
value: input.transitions
|
|
198
|
-
}, errorFactory)) && (undefined === input.active || "boolean" === typeof input.active || $guard(_exceptionable, {
|
|
199
|
-
path: _path + ".active",
|
|
200
|
-
expected: "(boolean | undefined)",
|
|
201
|
-
value: input.active
|
|
202
|
-
}, errorFactory)) && (undefined === input.changeId || "string" === typeof input.changeId || $guard(_exceptionable, {
|
|
203
|
-
path: _path + ".changeId",
|
|
204
|
-
expected: "(string | undefined)",
|
|
205
|
-
value: input.changeId
|
|
206
|
-
}, errorFactory));
|
|
207
|
-
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
208
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
209
|
-
path: _path + "",
|
|
210
|
-
expected: "EditRecord",
|
|
211
|
-
value: input
|
|
212
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
213
|
-
path: _path + "",
|
|
214
|
-
expected: "EditRecord",
|
|
215
|
-
value: input
|
|
216
|
-
}, errorFactory);
|
|
217
|
-
})(input, "$input", true);
|
|
218
|
-
return input;
|
|
219
|
-
}; const stringify = input => {
|
|
220
|
-
const $io1 = input => true;
|
|
221
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
222
|
-
const $so0 = input => `{${undefined === input.active ? "" : `"active":${undefined !== input.active ? input.active : undefined},`}${undefined === input.changeId ? "" : `"changeId":${undefined !== input.changeId ? $string(input.changeId) : undefined},`}"nodes":{},"tracks":${`[${input.tracks.map(elem => "{}").join(",")}]`},"transitions":{}}`;
|
|
223
|
-
return $so0(input);
|
|
224
|
-
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/event.d.ts
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export type JsonPrimitive = string | number | boolean | null;
|
|
3
|
-
export declare const isJsonPrimitive: (input: unknown) => input is JsonPrimitive;
|
|
4
|
-
export declare const assertJsonPrimitive: (input: unknown) => JsonPrimitive;
|
|
5
|
-
export declare const randomJsonPrimitive: () => JsonPrimitive;
|
|
6
|
-
export declare const assertGuardJsonPrimitive: __AssertionGuard<JsonPrimitive>;
|
|
7
|
-
export declare const stringifyJsonPrimitive: (input: JsonPrimitive) => string;
|
|
8
|
-
export declare const assertStringifyJsonPrimitive: (input: unknown) => string;
|
|
9
|
-
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
10
|
-
[key: string]: JsonValue;
|
|
11
|
-
};
|
|
12
|
-
export declare const isJsonValue: (input: unknown) => input is JsonValue;
|
|
13
|
-
export declare const assertJsonValue: (input: unknown) => JsonValue;
|
|
14
|
-
export declare const randomJsonValue: () => JsonValue;
|
|
15
|
-
export declare const assertGuardJsonValue: __AssertionGuard<JsonValue>;
|
|
16
|
-
export declare const stringifyJsonValue: (input: JsonValue) => string;
|
|
17
|
-
export declare const assertStringifyJsonValue: (input: unknown) => string;
|
|
18
|
-
export interface EventDomainRecords {
|
|
19
|
-
":event": EventRecord;
|
|
20
|
-
":event._template?": EventTemplateRecord;
|
|
21
|
-
":event.overlay?": EventOverlayRecord;
|
|
22
|
-
":event.template?": EventTemplateRecord;
|
|
23
|
-
":event.duration?": EventDurationRecord;
|
|
24
|
-
":event.props?": EventPropsRecord;
|
|
25
|
-
}
|
|
26
|
-
export interface EventRecord {
|
|
27
|
-
start?: number;
|
|
28
|
-
end?: number;
|
|
29
|
-
duration?: number;
|
|
30
|
-
text?: string;
|
|
31
|
-
lang?: string;
|
|
32
|
-
style?: string;
|
|
33
|
-
styleOverrides?: SubtitleEventStyleOverrides;
|
|
34
|
-
}
|
|
35
|
-
export declare const isEventRecord: (input: unknown) => input is EventRecord;
|
|
36
|
-
export declare const assertEventRecord: (input: unknown) => EventRecord;
|
|
37
|
-
export declare const randomEventRecord: () => EventRecord;
|
|
38
|
-
export declare const assertGuardEventRecord: __AssertionGuard<EventRecord>;
|
|
39
|
-
export declare const stringifyEventRecord: (input: EventRecord) => string;
|
|
40
|
-
export declare const assertStringifyEventRecord: (input: unknown) => string;
|
|
41
|
-
export interface EventTemplateRecord {
|
|
42
|
-
mixin?: string[];
|
|
43
|
-
properties?: object;
|
|
44
|
-
layout?: {
|
|
45
|
-
title?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export declare const isEventTemplateRecord: (input: unknown) => input is EventTemplateRecord;
|
|
49
|
-
export declare const assertEventTemplateRecord: (input: unknown) => EventTemplateRecord;
|
|
50
|
-
export declare const randomEventTemplateRecord: () => EventTemplateRecord;
|
|
51
|
-
export declare const assertGuardEventTemplateRecord: __AssertionGuard<EventTemplateRecord>;
|
|
52
|
-
export declare const stringifyEventTemplateRecord: (input: EventTemplateRecord) => string;
|
|
53
|
-
export declare const assertStringifyEventTemplateRecord: (input: unknown) => string;
|
|
54
|
-
export interface EventDurationRecord {
|
|
55
|
-
scheduled?: number;
|
|
56
|
-
actual?: number;
|
|
57
|
-
in?: number;
|
|
58
|
-
out?: number | null;
|
|
59
|
-
}
|
|
60
|
-
export declare const isEventDurationRecord: (input: unknown) => input is EventDurationRecord;
|
|
61
|
-
export declare const assertEventDurationRecord: (input: unknown) => EventDurationRecord;
|
|
62
|
-
export declare const randomEventDurationRecord: () => EventDurationRecord;
|
|
63
|
-
export declare const assertGuardEventDurationRecord: __AssertionGuard<EventDurationRecord>;
|
|
64
|
-
export declare const stringifyEventDurationRecord: (input: EventDurationRecord) => string;
|
|
65
|
-
export declare const assertStringifyEventDurationRecord: (input: unknown) => string;
|
|
66
|
-
type EventProps = {
|
|
67
|
-
source?: string;
|
|
68
|
-
cueCard?: boolean | string;
|
|
69
|
-
};
|
|
70
|
-
export type EventPropsRecord = EventProps & Record<Exclude<string, keyof EventProps>, JsonValue>;
|
|
71
|
-
export declare const isEventPropsRecord: (input: unknown) => input is EventPropsRecord;
|
|
72
|
-
export declare const assertEventPropsRecord: (input: unknown) => EventPropsRecord;
|
|
73
|
-
export declare const randomEventPropsRecord: () => {
|
|
74
|
-
[x: string]: JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | any | {
|
|
75
|
-
[x: string]: JsonPrimitive | any | any;
|
|
76
|
-
})[] | {
|
|
77
|
-
[x: string]: JsonPrimitive | any | any;
|
|
78
|
-
})[] | {
|
|
79
|
-
[x: string]: JsonPrimitive | any | any;
|
|
80
|
-
})[] | {
|
|
81
|
-
[x: string]: JsonPrimitive | any | any;
|
|
82
|
-
})[] | {
|
|
83
|
-
[x: string]: JsonPrimitive | any | any;
|
|
84
|
-
})[] | {
|
|
85
|
-
[x: string]: JsonPrimitive | any | any;
|
|
86
|
-
})[] | {
|
|
87
|
-
[x: string]: JsonPrimitive | any | any;
|
|
88
|
-
})[] | {
|
|
89
|
-
[x: string]: JsonPrimitive | any | any;
|
|
90
|
-
})[] | {
|
|
91
|
-
[x: string]: JsonPrimitive | any | any;
|
|
92
|
-
})[] | {
|
|
93
|
-
[x: string]: JsonPrimitive | any | any;
|
|
94
|
-
})[] | {
|
|
95
|
-
[x: string]: JsonPrimitive | any | any;
|
|
96
|
-
})[] | {
|
|
97
|
-
[x: string]: JsonPrimitive | any | any;
|
|
98
|
-
};
|
|
99
|
-
source?: string | undefined;
|
|
100
|
-
cueCard?: (boolean | string) | undefined;
|
|
101
|
-
};
|
|
102
|
-
export declare const assertGuardEventPropsRecord: __AssertionGuard<EventPropsRecord>;
|
|
103
|
-
export declare const stringifyEventPropsRecord: (input: EventPropsRecord) => string;
|
|
104
|
-
export declare const assertStringifyEventPropsRecord: (input: unknown) => string;
|
|
105
|
-
export interface EventOverlayRecord {
|
|
106
|
-
[eventId: string]: {
|
|
107
|
-
data: EventPropsRecord;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export declare const isEventOverlayRecord: (input: unknown) => input is EventOverlayRecord;
|
|
111
|
-
export declare const assertEventOverlayRecord: (input: unknown) => EventOverlayRecord;
|
|
112
|
-
export declare const randomEventOverlayRecord: () => {
|
|
113
|
-
[x: string]: {
|
|
114
|
-
data: {
|
|
115
|
-
[x: string]: JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | (JsonPrimitive | any | {
|
|
116
|
-
[x: string]: JsonPrimitive | any | any;
|
|
117
|
-
})[] | {
|
|
118
|
-
[x: string]: JsonPrimitive | any | any;
|
|
119
|
-
})[] | {
|
|
120
|
-
[x: string]: JsonPrimitive | any | any;
|
|
121
|
-
})[] | {
|
|
122
|
-
[x: string]: JsonPrimitive | any | any;
|
|
123
|
-
})[] | {
|
|
124
|
-
[x: string]: JsonPrimitive | any | any;
|
|
125
|
-
})[] | {
|
|
126
|
-
[x: string]: JsonPrimitive | any | any;
|
|
127
|
-
})[] | {
|
|
128
|
-
[x: string]: JsonPrimitive | any | any;
|
|
129
|
-
})[] | {
|
|
130
|
-
[x: string]: JsonPrimitive | any | any;
|
|
131
|
-
})[] | {
|
|
132
|
-
[x: string]: JsonPrimitive | any | any;
|
|
133
|
-
})[] | {
|
|
134
|
-
[x: string]: JsonPrimitive | any | any;
|
|
135
|
-
})[] | {
|
|
136
|
-
[x: string]: JsonPrimitive | any | any;
|
|
137
|
-
})[] | {
|
|
138
|
-
[x: string]: JsonPrimitive | any | any;
|
|
139
|
-
};
|
|
140
|
-
source?: string | undefined;
|
|
141
|
-
cueCard?: (boolean | string) | undefined;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
export declare const assertGuardEventOverlayRecord: __AssertionGuard<EventOverlayRecord>;
|
|
146
|
-
export declare const stringifyEventOverlayRecord: (input: EventOverlayRecord) => string;
|
|
147
|
-
export declare const assertStringifyEventOverlayRecord: (input: unknown) => string;
|
|
148
|
-
export interface SubtitleEventStyleOverrides {
|
|
149
|
-
marginL?: string;
|
|
150
|
-
marginR?: string;
|
|
151
|
-
marginV?: string;
|
|
152
|
-
alignment?: string;
|
|
153
|
-
fontname?: string;
|
|
154
|
-
fontsize?: string;
|
|
155
|
-
primaryColour?: string;
|
|
156
|
-
secondaryColour?: string;
|
|
157
|
-
outlineColour?: string;
|
|
158
|
-
backColour?: string;
|
|
159
|
-
bold?: string;
|
|
160
|
-
italic?: string;
|
|
161
|
-
underline?: string;
|
|
162
|
-
strikeOut?: string;
|
|
163
|
-
}
|
|
164
|
-
export declare const isSubtitleEventStyleOverrides: (input: unknown) => input is SubtitleEventStyleOverrides;
|
|
165
|
-
export declare const assertSubtitleEventStyleOverrides: (input: unknown) => SubtitleEventStyleOverrides;
|
|
166
|
-
export declare const randomSubtitleEventStyleOverrides: () => SubtitleEventStyleOverrides;
|
|
167
|
-
export declare const assertGuardSubtitleEventStyleOverrides: __AssertionGuard<SubtitleEventStyleOverrides>;
|
|
168
|
-
export declare const stringifySubtitleEventStyleOverrides: (input: SubtitleEventStyleOverrides) => string;
|
|
169
|
-
export declare const assertStringifySubtitleEventStyleOverrides: (input: unknown) => string;
|
|
170
|
-
export {};
|