@nxtedition/types 23.0.11 → 23.0.13
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 +61 -1
- package/dist/app.js +218 -10
- package/dist/common/file.d.ts +1 -1
- package/dist/common/file.js +32 -32
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/settings.d.ts +34 -6
- package/dist/common/settings.js +1399 -535
- package/dist/common/user-notification.d.ts +8 -0
- package/dist/common/user-notification.js +85 -0
- package/dist/domains/asset.d.ts +23 -0
- package/dist/domains/asset.js +248 -0
- package/dist/domains/comment-reaction.d.ts +15 -0
- package/dist/domains/comment-reaction.js +115 -0
- package/dist/domains/comment-read-mark.d.ts +15 -0
- package/dist/domains/comment-read-mark.js +115 -0
- package/dist/domains/comment.d.ts +153 -0
- package/dist/domains/comment.js +5729 -0
- package/dist/domains/connection.d.ts +1 -1
- package/dist/domains/connection.js +118 -118
- package/dist/domains/deepstream.d.ts +14 -0
- package/dist/domains/deepstream.js +139 -0
- package/dist/domains/edit.d.ts +17 -0
- package/dist/domains/edit.js +224 -0
- package/dist/domains/index.d.ts +17 -1
- package/dist/domains/index.js +8 -0
- package/dist/domains/planning.d.ts +1 -1
- package/dist/domains/planning.js +29 -23
- package/dist/domains/publish.d.ts +1 -0
- package/dist/domains/publish.js +142 -46
- package/dist/domains/published.d.ts +2 -1
- package/dist/domains/published.js +50 -10
- package/dist/domains/settings.js +1401 -534
- package/dist/domains/subtitle-style.d.ts +13 -0
- package/dist/domains/subtitle-style.js +123 -0
- package/dist/domains/user-notification-status.d.ts +55 -0
- package/dist/domains/user-notification-status.js +715 -0
- package/dist/domains/user-notification.d.ts +118 -0
- package/dist/domains/user-notification.js +3040 -0
- package/dist/domains/user.d.ts +42 -8
- package/dist/domains/user.js +352 -12
- package/dist/index.d.ts +23 -1
- package/dist/index.js +30 -13
- package/dist/schema.json +1438 -35
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface DeepstreamDomainRecords {
|
|
3
|
+
":deepstream.replicate": DeepstreamDomainReplicateRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface DeepstreamDomainReplicateRecord {
|
|
6
|
+
synced?: boolean;
|
|
7
|
+
since?: string | 0 | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const isDeepstreamDomainReplicateRecord: (input: unknown) => input is DeepstreamDomainReplicateRecord;
|
|
10
|
+
export declare const assertDeepstreamDomainReplicateRecord: (input: unknown) => DeepstreamDomainReplicateRecord;
|
|
11
|
+
export declare const randomDeepstreamDomainReplicateRecord: () => DeepstreamDomainReplicateRecord;
|
|
12
|
+
export declare const assertGuardDeepstreamDomainReplicateRecord: __AssertionGuard<DeepstreamDomainReplicateRecord>;
|
|
13
|
+
export declare const stringifyDeepstreamDomainReplicateRecord: (input: DeepstreamDomainReplicateRecord) => string;
|
|
14
|
+
export declare const assertStringifyDeepstreamDomainReplicateRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isDeepstreamDomainReplicateRecord = input => {
|
|
3
|
+
const $io0 = input => (undefined === input.synced || "boolean" === typeof input.synced) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since);
|
|
4
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
|
+
};
|
|
6
|
+
export const assertDeepstreamDomainReplicateRecord = (input, errorFactory) => {
|
|
7
|
+
const __is = input => {
|
|
8
|
+
const $io0 = input => (undefined === input.synced || "boolean" === typeof input.synced) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since);
|
|
9
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
10
|
+
};
|
|
11
|
+
if (false === __is(input))
|
|
12
|
+
((input, _path, _exceptionable = true) => {
|
|
13
|
+
const $guard = __typia.createAssert.guard;
|
|
14
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.synced || "boolean" === typeof input.synced || $guard(_exceptionable, {
|
|
15
|
+
path: _path + ".synced",
|
|
16
|
+
expected: "(boolean | undefined)",
|
|
17
|
+
value: input.synced
|
|
18
|
+
}, errorFactory)) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since || $guard(_exceptionable, {
|
|
19
|
+
path: _path + ".since",
|
|
20
|
+
expected: "(0 | null | string | undefined)",
|
|
21
|
+
value: input.since
|
|
22
|
+
}, errorFactory));
|
|
23
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
24
|
+
path: _path + "",
|
|
25
|
+
expected: "DeepstreamDomainReplicateRecord",
|
|
26
|
+
value: input
|
|
27
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
28
|
+
path: _path + "",
|
|
29
|
+
expected: "DeepstreamDomainReplicateRecord",
|
|
30
|
+
value: input
|
|
31
|
+
}, errorFactory);
|
|
32
|
+
})(input, "$input", true);
|
|
33
|
+
return input;
|
|
34
|
+
};
|
|
35
|
+
export const randomDeepstreamDomainReplicateRecord = generator => {
|
|
36
|
+
const $generator = __typia.createRandom.generator;
|
|
37
|
+
const $pick = __typia.createRandom.pick;
|
|
38
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
39
|
+
synced: $pick([
|
|
40
|
+
() => undefined,
|
|
41
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
42
|
+
])(),
|
|
43
|
+
since: $pick([
|
|
44
|
+
() => undefined,
|
|
45
|
+
() => null,
|
|
46
|
+
() => 0,
|
|
47
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
48
|
+
])()
|
|
49
|
+
});
|
|
50
|
+
return $ro0();
|
|
51
|
+
};
|
|
52
|
+
export const assertGuardDeepstreamDomainReplicateRecord = (input, errorFactory) => {
|
|
53
|
+
const __is = input => {
|
|
54
|
+
const $io0 = input => (undefined === input.synced || "boolean" === typeof input.synced) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since);
|
|
55
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
56
|
+
};
|
|
57
|
+
if (false === __is(input))
|
|
58
|
+
((input, _path, _exceptionable = true) => {
|
|
59
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
60
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.synced || "boolean" === typeof input.synced || $guard(_exceptionable, {
|
|
61
|
+
path: _path + ".synced",
|
|
62
|
+
expected: "(boolean | undefined)",
|
|
63
|
+
value: input.synced
|
|
64
|
+
}, errorFactory)) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since || $guard(_exceptionable, {
|
|
65
|
+
path: _path + ".since",
|
|
66
|
+
expected: "(0 | null | string | undefined)",
|
|
67
|
+
value: input.since
|
|
68
|
+
}, errorFactory));
|
|
69
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
70
|
+
path: _path + "",
|
|
71
|
+
expected: "DeepstreamDomainReplicateRecord",
|
|
72
|
+
value: input
|
|
73
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
74
|
+
path: _path + "",
|
|
75
|
+
expected: "DeepstreamDomainReplicateRecord",
|
|
76
|
+
value: input
|
|
77
|
+
}, errorFactory);
|
|
78
|
+
})(input, "$input", true);
|
|
79
|
+
};
|
|
80
|
+
export const stringifyDeepstreamDomainReplicateRecord = input => {
|
|
81
|
+
const $string = __typia.json.createStringify.string;
|
|
82
|
+
const $throws = __typia.json.createStringify.throws;
|
|
83
|
+
const $tail = __typia.json.createStringify.tail;
|
|
84
|
+
const $so0 = input => `{${$tail(`${undefined === input.synced ? "" : `"synced":${undefined !== input.synced ? input.synced : undefined},`}${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
|
|
85
|
+
if ("number" === typeof input.since)
|
|
86
|
+
return input.since;
|
|
87
|
+
if ("string" === typeof input.since)
|
|
88
|
+
return $string(input.since);
|
|
89
|
+
$throws({
|
|
90
|
+
expected: "(0 | null | string | undefined)",
|
|
91
|
+
value: input.since
|
|
92
|
+
});
|
|
93
|
+
})() : "null" : undefined}`}`)}}`;
|
|
94
|
+
return $so0(input);
|
|
95
|
+
};
|
|
96
|
+
export const assertStringifyDeepstreamDomainReplicateRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
97
|
+
const __is = input => {
|
|
98
|
+
const $io0 = input => (undefined === input.synced || "boolean" === typeof input.synced) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since);
|
|
99
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
100
|
+
};
|
|
101
|
+
if (false === __is(input))
|
|
102
|
+
((input, _path, _exceptionable = true) => {
|
|
103
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
104
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.synced || "boolean" === typeof input.synced || $guard(_exceptionable, {
|
|
105
|
+
path: _path + ".synced",
|
|
106
|
+
expected: "(boolean | undefined)",
|
|
107
|
+
value: input.synced
|
|
108
|
+
}, errorFactory)) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since || $guard(_exceptionable, {
|
|
109
|
+
path: _path + ".since",
|
|
110
|
+
expected: "(0 | null | string | undefined)",
|
|
111
|
+
value: input.since
|
|
112
|
+
}, errorFactory));
|
|
113
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
114
|
+
path: _path + "",
|
|
115
|
+
expected: "DeepstreamDomainReplicateRecord",
|
|
116
|
+
value: input
|
|
117
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
118
|
+
path: _path + "",
|
|
119
|
+
expected: "DeepstreamDomainReplicateRecord",
|
|
120
|
+
value: input
|
|
121
|
+
}, errorFactory);
|
|
122
|
+
})(input, "$input", true);
|
|
123
|
+
return input;
|
|
124
|
+
}; const stringify = input => {
|
|
125
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
126
|
+
const $throws = __typia.json.createAssertStringify.throws;
|
|
127
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
128
|
+
const $so0 = input => `{${$tail(`${undefined === input.synced ? "" : `"synced":${undefined !== input.synced ? input.synced : undefined},`}${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
|
|
129
|
+
if ("number" === typeof input.since)
|
|
130
|
+
return input.since;
|
|
131
|
+
if ("string" === typeof input.since)
|
|
132
|
+
return $string(input.since);
|
|
133
|
+
$throws({
|
|
134
|
+
expected: "(0 | null | string | undefined)",
|
|
135
|
+
value: input.since
|
|
136
|
+
});
|
|
137
|
+
})() : "null" : undefined}`}`)}}`;
|
|
138
|
+
return $so0(input);
|
|
139
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,224 @@
|
|
|
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/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { AssetDomainRecords } from './asset.js';
|
|
2
2
|
import type { BundleDomainRecords } from './bundle.js';
|
|
3
3
|
import type { CloneDomainRecords } from './clone.js';
|
|
4
|
+
import type { CommentReactionDomainRecords } from './comment-reaction.js';
|
|
5
|
+
import type { CommentReadMarkDomainRecords } from './comment-read-mark.js';
|
|
6
|
+
import type { CommentDomainRecords } from './comment.js';
|
|
4
7
|
import type { ConnectionDomainRecords } from './connection.js';
|
|
5
8
|
import type { ContactDomainRecords } from './contact.js';
|
|
9
|
+
import type { DeepstreamDomainRecords } from './deepstream.js';
|
|
6
10
|
import type { DesignDomainRecords } from './design.js';
|
|
11
|
+
import type { EditDomainRecords } from './edit.js';
|
|
7
12
|
import type { EventDomainRecords } from './event.js';
|
|
8
13
|
import type { FileDomainRecords } from './file.js';
|
|
9
14
|
import type { GeneralDomainRecords } from './general.js';
|
|
@@ -21,14 +26,22 @@ import type { ScriptDomainRecords } from './script.js';
|
|
|
21
26
|
import type { SearchDomainRecords } from './search.js';
|
|
22
27
|
import type { SettingsDomainRecords } from './settings.js';
|
|
23
28
|
import type { StoryboardDomainRecords } from './storyboard.js';
|
|
29
|
+
import type { SubtitleStyleDomainRecords } from './subtitle-style.js';
|
|
24
30
|
import type { TemplateDomainRecords } from './template.js';
|
|
31
|
+
import type { UserNotificationStatusDomainRecords } from './user-notification-status.js';
|
|
32
|
+
import type { UserNotificationDomainRecords } from './user-notification.js';
|
|
25
33
|
import type { UserDomainRecords } from './user.js';
|
|
26
34
|
export * from './asset.js';
|
|
27
35
|
export * from './bundle.js';
|
|
28
36
|
export * from './clone.js';
|
|
37
|
+
export * from './comment-reaction.js';
|
|
38
|
+
export * from './comment-read-mark.js';
|
|
39
|
+
export * from './comment.js';
|
|
29
40
|
export * from './connection.js';
|
|
30
41
|
export * from './contact.js';
|
|
42
|
+
export * from './deepstream.js';
|
|
31
43
|
export * from './design.js';
|
|
44
|
+
export * from './edit.js';
|
|
32
45
|
export * from './event.js';
|
|
33
46
|
export * from './file.js';
|
|
34
47
|
export * from './general.js';
|
|
@@ -46,6 +59,9 @@ export * from './script.js';
|
|
|
46
59
|
export * from './search.js';
|
|
47
60
|
export * from './settings.js';
|
|
48
61
|
export * from './storyboard.js';
|
|
62
|
+
export * from './subtitle-style.js';
|
|
49
63
|
export * from './template.js';
|
|
64
|
+
export * from './user-notification-status.js';
|
|
65
|
+
export * from './user-notification.js';
|
|
50
66
|
export * from './user.js';
|
|
51
|
-
export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DesignDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & TemplateDomainRecords & UserDomainRecords;
|
|
67
|
+
export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
|
package/dist/domains/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export * from './asset.js';
|
|
2
2
|
export * from './bundle.js';
|
|
3
3
|
export * from './clone.js';
|
|
4
|
+
export * from './comment-reaction.js';
|
|
5
|
+
export * from './comment-read-mark.js';
|
|
6
|
+
export * from './comment.js';
|
|
4
7
|
export * from './connection.js';
|
|
5
8
|
export * from './contact.js';
|
|
9
|
+
export * from './deepstream.js';
|
|
6
10
|
export * from './design.js';
|
|
11
|
+
export * from './edit.js';
|
|
7
12
|
export * from './event.js';
|
|
8
13
|
export * from './file.js';
|
|
9
14
|
export * from './general.js';
|
|
@@ -21,5 +26,8 @@ export * from './script.js';
|
|
|
21
26
|
export * from './search.js';
|
|
22
27
|
export * from './settings.js';
|
|
23
28
|
export * from './storyboard.js';
|
|
29
|
+
export * from './subtitle-style.js';
|
|
24
30
|
export * from './template.js';
|
|
31
|
+
export * from './user-notification-status.js';
|
|
32
|
+
export * from './user-notification.js';
|
|
25
33
|
export * from './user.js';
|
|
@@ -14,7 +14,7 @@ export declare const assertGuardPlanningRecord: __AssertionGuard<PlanningRecord>
|
|
|
14
14
|
export declare const stringifyPlanningRecord: (input: PlanningRecord) => string;
|
|
15
15
|
export declare const assertStringifyPlanningRecord: (input: unknown) => string;
|
|
16
16
|
export interface PlanningAssigneesRecord {
|
|
17
|
-
value
|
|
17
|
+
value?: string[];
|
|
18
18
|
}
|
|
19
19
|
export declare const isPlanningAssigneesRecord: (input: unknown) => input is PlanningAssigneesRecord;
|
|
20
20
|
export declare const assertPlanningAssigneesRecord: (input: unknown) => PlanningAssigneesRecord;
|
package/dist/domains/planning.js
CHANGED
|
@@ -101,20 +101,20 @@ export const assertStringifyPlanningRecord = (input, errorFactory) => { const as
|
|
|
101
101
|
return $so0(input);
|
|
102
102
|
}; return stringify(assert(input, errorFactory)); };
|
|
103
103
|
export const isPlanningAssigneesRecord = input => {
|
|
104
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
105
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
104
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
105
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
106
106
|
};
|
|
107
107
|
export const assertPlanningAssigneesRecord = (input, errorFactory) => {
|
|
108
108
|
const __is = input => {
|
|
109
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
110
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
109
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
110
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
111
111
|
};
|
|
112
112
|
if (false === __is(input))
|
|
113
113
|
((input, _path, _exceptionable = true) => {
|
|
114
114
|
const $guard = __typia.createAssert.guard;
|
|
115
|
-
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
115
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
116
116
|
path: _path + ".value",
|
|
117
|
-
expected: "Array<string>",
|
|
117
|
+
expected: "(Array<string> | undefined)",
|
|
118
118
|
value: input.value
|
|
119
119
|
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
120
120
|
path: _path + ".value[" + _index1 + "]",
|
|
@@ -122,10 +122,10 @@ export const assertPlanningAssigneesRecord = (input, errorFactory) => {
|
|
|
122
122
|
value: elem
|
|
123
123
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
124
124
|
path: _path + ".value",
|
|
125
|
-
expected: "Array<string>",
|
|
125
|
+
expected: "(Array<string> | undefined)",
|
|
126
126
|
value: input.value
|
|
127
127
|
}, errorFactory);
|
|
128
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
128
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
129
129
|
path: _path + "",
|
|
130
130
|
expected: "PlanningAssigneesRecord",
|
|
131
131
|
value: input
|
|
@@ -139,22 +139,26 @@ export const assertPlanningAssigneesRecord = (input, errorFactory) => {
|
|
|
139
139
|
};
|
|
140
140
|
export const randomPlanningAssigneesRecord = generator => {
|
|
141
141
|
const $generator = __typia.createRandom.generator;
|
|
142
|
+
const $pick = __typia.createRandom.pick;
|
|
142
143
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
143
|
-
value:
|
|
144
|
+
value: $pick([
|
|
145
|
+
() => undefined,
|
|
146
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
147
|
+
])()
|
|
144
148
|
});
|
|
145
149
|
return $ro0();
|
|
146
150
|
};
|
|
147
151
|
export const assertGuardPlanningAssigneesRecord = (input, errorFactory) => {
|
|
148
152
|
const __is = input => {
|
|
149
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
150
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
153
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
154
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
151
155
|
};
|
|
152
156
|
if (false === __is(input))
|
|
153
157
|
((input, _path, _exceptionable = true) => {
|
|
154
158
|
const $guard = __typia.createAssertGuard.guard;
|
|
155
|
-
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
159
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
156
160
|
path: _path + ".value",
|
|
157
|
-
expected: "Array<string>",
|
|
161
|
+
expected: "(Array<string> | undefined)",
|
|
158
162
|
value: input.value
|
|
159
163
|
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
160
164
|
path: _path + ".value[" + _index1 + "]",
|
|
@@ -162,10 +166,10 @@ export const assertGuardPlanningAssigneesRecord = (input, errorFactory) => {
|
|
|
162
166
|
value: elem
|
|
163
167
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
164
168
|
path: _path + ".value",
|
|
165
|
-
expected: "Array<string>",
|
|
169
|
+
expected: "(Array<string> | undefined)",
|
|
166
170
|
value: input.value
|
|
167
171
|
}, errorFactory);
|
|
168
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
172
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
169
173
|
path: _path + "",
|
|
170
174
|
expected: "PlanningAssigneesRecord",
|
|
171
175
|
value: input
|
|
@@ -178,20 +182,21 @@ export const assertGuardPlanningAssigneesRecord = (input, errorFactory) => {
|
|
|
178
182
|
};
|
|
179
183
|
export const stringifyPlanningAssigneesRecord = input => {
|
|
180
184
|
const $string = __typia.json.createStringify.string;
|
|
181
|
-
const $
|
|
185
|
+
const $tail = __typia.json.createStringify.tail;
|
|
186
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
182
187
|
return $so0(input);
|
|
183
188
|
};
|
|
184
189
|
export const assertStringifyPlanningAssigneesRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
185
190
|
const __is = input => {
|
|
186
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
187
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
191
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
192
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
188
193
|
};
|
|
189
194
|
if (false === __is(input))
|
|
190
195
|
((input, _path, _exceptionable = true) => {
|
|
191
196
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
192
|
-
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
197
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
193
198
|
path: _path + ".value",
|
|
194
|
-
expected: "Array<string>",
|
|
199
|
+
expected: "(Array<string> | undefined)",
|
|
195
200
|
value: input.value
|
|
196
201
|
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
197
202
|
path: _path + ".value[" + _index1 + "]",
|
|
@@ -199,10 +204,10 @@ export const assertStringifyPlanningAssigneesRecord = (input, errorFactory) => {
|
|
|
199
204
|
value: elem
|
|
200
205
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
201
206
|
path: _path + ".value",
|
|
202
|
-
expected: "Array<string>",
|
|
207
|
+
expected: "(Array<string> | undefined)",
|
|
203
208
|
value: input.value
|
|
204
209
|
}, errorFactory);
|
|
205
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
210
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
206
211
|
path: _path + "",
|
|
207
212
|
expected: "PlanningAssigneesRecord",
|
|
208
213
|
value: input
|
|
@@ -215,7 +220,8 @@ export const assertStringifyPlanningAssigneesRecord = (input, errorFactory) => {
|
|
|
215
220
|
return input;
|
|
216
221
|
}; const stringify = input => {
|
|
217
222
|
const $string = __typia.json.createAssertStringify.string;
|
|
218
|
-
const $
|
|
223
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
224
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
219
225
|
return $so0(input);
|
|
220
226
|
}; return stringify(assert(input, errorFactory)); };
|
|
221
227
|
export const isPlanningDeadlineRecord = input => {
|
|
@@ -111,6 +111,7 @@ export interface FilePublishRender {
|
|
|
111
111
|
type?: string;
|
|
112
112
|
profile?: unknown;
|
|
113
113
|
scene?: string;
|
|
114
|
+
ignoreEmptyScene?: boolean;
|
|
114
115
|
}
|
|
115
116
|
export declare const isFilePublishRender: (input: unknown) => input is FilePublishRender;
|
|
116
117
|
export declare const assertFilePublishRender: (input: unknown) => FilePublishRender;
|