@nxtedition/types 23.0.40 → 23.0.41
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 +2 -15
- package/dist/common/render-preset.js +1 -1202
- package/dist/common/render-profile.d.ts +0 -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 +2 -15
- 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 +507 -331
- 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 +7 -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 +145 -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 +9 -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 +10 -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 +15861 -0
- package/dist/records/validate/assert.d.ts +4 -0
- package/dist/records/validate/assert.js +15990 -0
- package/dist/records/validate/is.d.ts +4 -0
- package/dist/records/validate/is.js +1017 -0
- package/dist/records/validate/schemas.d.ts +9 -0
- package/dist/records/validate/schemas.js +12613 -0
- package/dist/records/validate/stringify.d.ts +4 -0
- package/dist/records/validate/stringify.js +1904 -0
- package/dist/records/validate/utils.d.ts +15 -0
- package/dist/records/validate/utils.js +18 -0
- package/dist/records/validate/utils.test.d.ts +1 -0
- package/dist/records/validate/utils.test.js +35 -0
- package/dist/records/validate/validate.d.ts +5 -0
- package/dist/records/validate/validate.js +14943 -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
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export interface PublishedDomainRecords {
|
|
3
|
-
[":published"]: PublishedRecord;
|
|
4
|
-
}
|
|
5
|
-
export interface PublishedRecord {
|
|
6
|
-
type: string;
|
|
7
|
-
parent: string;
|
|
8
|
-
asset: string[];
|
|
9
|
-
time: number;
|
|
10
|
-
connection: string;
|
|
11
|
-
user?: string;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const isPublishedRecord: (input: unknown) => input is PublishedRecord;
|
|
15
|
-
export declare const assertPublishedRecord: (input: unknown) => PublishedRecord;
|
|
16
|
-
export declare const randomPublishedRecord: () => PublishedRecord;
|
|
17
|
-
export declare const assertGuardPublishedRecord: __AssertionGuard<PublishedRecord>;
|
|
18
|
-
export declare const stringifyPublishedRecord: (input: PublishedRecord) => string;
|
|
19
|
-
export declare const assertStringifyPublishedRecord: (input: unknown) => string;
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import __typia from "typia";
|
|
2
|
-
export const isPublishedRecord = input => {
|
|
3
|
-
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
|
|
4
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertPublishedRecord = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
|
|
9
|
-
return "object" === typeof input && null !== 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) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
15
|
-
path: _path + ".type",
|
|
16
|
-
expected: "string",
|
|
17
|
-
value: input.type
|
|
18
|
-
}, errorFactory)) && ("string" === typeof input.parent || $guard(_exceptionable, {
|
|
19
|
-
path: _path + ".parent",
|
|
20
|
-
expected: "string",
|
|
21
|
-
value: input.parent
|
|
22
|
-
}, errorFactory)) && ((Array.isArray(input.asset) || $guard(_exceptionable, {
|
|
23
|
-
path: _path + ".asset",
|
|
24
|
-
expected: "Array<string>",
|
|
25
|
-
value: input.asset
|
|
26
|
-
}, errorFactory)) && input.asset.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
27
|
-
path: _path + ".asset[" + _index1 + "]",
|
|
28
|
-
expected: "string",
|
|
29
|
-
value: elem
|
|
30
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
31
|
-
path: _path + ".asset",
|
|
32
|
-
expected: "Array<string>",
|
|
33
|
-
value: input.asset
|
|
34
|
-
}, errorFactory)) && ("number" === typeof input.time || $guard(_exceptionable, {
|
|
35
|
-
path: _path + ".time",
|
|
36
|
-
expected: "number",
|
|
37
|
-
value: input.time
|
|
38
|
-
}, errorFactory)) && ("string" === typeof input.connection || $guard(_exceptionable, {
|
|
39
|
-
path: _path + ".connection",
|
|
40
|
-
expected: "string",
|
|
41
|
-
value: input.connection
|
|
42
|
-
}, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
43
|
-
path: _path + ".user",
|
|
44
|
-
expected: "(string | undefined)",
|
|
45
|
-
value: input.user
|
|
46
|
-
}, errorFactory)) && (undefined === input.error || "boolean" === typeof input.error || $guard(_exceptionable, {
|
|
47
|
-
path: _path + ".error",
|
|
48
|
-
expected: "(boolean | undefined)",
|
|
49
|
-
value: input.error
|
|
50
|
-
}, errorFactory));
|
|
51
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
52
|
-
path: _path + "",
|
|
53
|
-
expected: "PublishedRecord",
|
|
54
|
-
value: input
|
|
55
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
56
|
-
path: _path + "",
|
|
57
|
-
expected: "PublishedRecord",
|
|
58
|
-
value: input
|
|
59
|
-
}, errorFactory);
|
|
60
|
-
})(input, "$input", true);
|
|
61
|
-
return input;
|
|
62
|
-
};
|
|
63
|
-
export const randomPublishedRecord = generator => {
|
|
64
|
-
const $generator = __typia.createRandom.generator;
|
|
65
|
-
const $pick = __typia.createRandom.pick;
|
|
66
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
67
|
-
type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
68
|
-
parent: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
69
|
-
asset: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
70
|
-
time: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
71
|
-
connection: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
72
|
-
user: $pick([
|
|
73
|
-
() => undefined,
|
|
74
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
75
|
-
])(),
|
|
76
|
-
error: $pick([
|
|
77
|
-
() => undefined,
|
|
78
|
-
() => (generator?.boolean ?? $generator.boolean)()
|
|
79
|
-
])()
|
|
80
|
-
});
|
|
81
|
-
return $ro0();
|
|
82
|
-
};
|
|
83
|
-
export const assertGuardPublishedRecord = (input, errorFactory) => {
|
|
84
|
-
const __is = input => {
|
|
85
|
-
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
|
|
86
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
87
|
-
};
|
|
88
|
-
if (false === __is(input))
|
|
89
|
-
((input, _path, _exceptionable = true) => {
|
|
90
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
91
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
92
|
-
path: _path + ".type",
|
|
93
|
-
expected: "string",
|
|
94
|
-
value: input.type
|
|
95
|
-
}, errorFactory)) && ("string" === typeof input.parent || $guard(_exceptionable, {
|
|
96
|
-
path: _path + ".parent",
|
|
97
|
-
expected: "string",
|
|
98
|
-
value: input.parent
|
|
99
|
-
}, errorFactory)) && ((Array.isArray(input.asset) || $guard(_exceptionable, {
|
|
100
|
-
path: _path + ".asset",
|
|
101
|
-
expected: "Array<string>",
|
|
102
|
-
value: input.asset
|
|
103
|
-
}, errorFactory)) && input.asset.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
104
|
-
path: _path + ".asset[" + _index1 + "]",
|
|
105
|
-
expected: "string",
|
|
106
|
-
value: elem
|
|
107
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
108
|
-
path: _path + ".asset",
|
|
109
|
-
expected: "Array<string>",
|
|
110
|
-
value: input.asset
|
|
111
|
-
}, errorFactory)) && ("number" === typeof input.time || $guard(_exceptionable, {
|
|
112
|
-
path: _path + ".time",
|
|
113
|
-
expected: "number",
|
|
114
|
-
value: input.time
|
|
115
|
-
}, errorFactory)) && ("string" === typeof input.connection || $guard(_exceptionable, {
|
|
116
|
-
path: _path + ".connection",
|
|
117
|
-
expected: "string",
|
|
118
|
-
value: input.connection
|
|
119
|
-
}, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
120
|
-
path: _path + ".user",
|
|
121
|
-
expected: "(string | undefined)",
|
|
122
|
-
value: input.user
|
|
123
|
-
}, errorFactory)) && (undefined === input.error || "boolean" === typeof input.error || $guard(_exceptionable, {
|
|
124
|
-
path: _path + ".error",
|
|
125
|
-
expected: "(boolean | undefined)",
|
|
126
|
-
value: input.error
|
|
127
|
-
}, errorFactory));
|
|
128
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
129
|
-
path: _path + "",
|
|
130
|
-
expected: "PublishedRecord",
|
|
131
|
-
value: input
|
|
132
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
133
|
-
path: _path + "",
|
|
134
|
-
expected: "PublishedRecord",
|
|
135
|
-
value: input
|
|
136
|
-
}, errorFactory);
|
|
137
|
-
})(input, "$input", true);
|
|
138
|
-
};
|
|
139
|
-
export const stringifyPublishedRecord = input => {
|
|
140
|
-
const $string = __typia.json.createStringify.string;
|
|
141
|
-
const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? input.error : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${`[${input.asset.map(elem => $string(elem)).join(",")}]`},"time":${input.time},"connection":${$string(input.connection)}}`;
|
|
142
|
-
return $so0(input);
|
|
143
|
-
};
|
|
144
|
-
export const assertStringifyPublishedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
145
|
-
const __is = input => {
|
|
146
|
-
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && ("number" === typeof input.time && !Number.isNaN(input.time)) && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
|
|
147
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
148
|
-
};
|
|
149
|
-
if (false === __is(input))
|
|
150
|
-
((input, _path, _exceptionable = true) => {
|
|
151
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
152
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
153
|
-
path: _path + ".type",
|
|
154
|
-
expected: "string",
|
|
155
|
-
value: input.type
|
|
156
|
-
}, errorFactory)) && ("string" === typeof input.parent || $guard(_exceptionable, {
|
|
157
|
-
path: _path + ".parent",
|
|
158
|
-
expected: "string",
|
|
159
|
-
value: input.parent
|
|
160
|
-
}, errorFactory)) && ((Array.isArray(input.asset) || $guard(_exceptionable, {
|
|
161
|
-
path: _path + ".asset",
|
|
162
|
-
expected: "Array<string>",
|
|
163
|
-
value: input.asset
|
|
164
|
-
}, errorFactory)) && input.asset.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
165
|
-
path: _path + ".asset[" + _index1 + "]",
|
|
166
|
-
expected: "string",
|
|
167
|
-
value: elem
|
|
168
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
169
|
-
path: _path + ".asset",
|
|
170
|
-
expected: "Array<string>",
|
|
171
|
-
value: input.asset
|
|
172
|
-
}, errorFactory)) && ("number" === typeof input.time && !Number.isNaN(input.time) || $guard(_exceptionable, {
|
|
173
|
-
path: _path + ".time",
|
|
174
|
-
expected: "number",
|
|
175
|
-
value: input.time
|
|
176
|
-
}, errorFactory)) && ("string" === typeof input.connection || $guard(_exceptionable, {
|
|
177
|
-
path: _path + ".connection",
|
|
178
|
-
expected: "string",
|
|
179
|
-
value: input.connection
|
|
180
|
-
}, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
181
|
-
path: _path + ".user",
|
|
182
|
-
expected: "(string | undefined)",
|
|
183
|
-
value: input.user
|
|
184
|
-
}, errorFactory)) && (undefined === input.error || "boolean" === typeof input.error || $guard(_exceptionable, {
|
|
185
|
-
path: _path + ".error",
|
|
186
|
-
expected: "(boolean | undefined)",
|
|
187
|
-
value: input.error
|
|
188
|
-
}, errorFactory));
|
|
189
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
190
|
-
path: _path + "",
|
|
191
|
-
expected: "PublishedRecord",
|
|
192
|
-
value: input
|
|
193
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
194
|
-
path: _path + "",
|
|
195
|
-
expected: "PublishedRecord",
|
|
196
|
-
value: input
|
|
197
|
-
}, errorFactory);
|
|
198
|
-
})(input, "$input", true);
|
|
199
|
-
return input;
|
|
200
|
-
}; const stringify = input => {
|
|
201
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
202
|
-
const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? input.error : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${`[${input.asset.map(elem => $string(elem)).join(",")}]`},"time":${input.time},"connection":${$string(input.connection)}}`;
|
|
203
|
-
return $so0(input);
|
|
204
|
-
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/render.d.ts
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
import type { RenderSceneObject, RenderProfileObject } from '../common/index.js';
|
|
3
|
-
export interface RenderDomainRecords {
|
|
4
|
-
":render.stats?": RenderDomainStatsRecord;
|
|
5
|
-
":render.query?": RenderDomainQueryRecord;
|
|
6
|
-
":render.result?": RenderDomainResultRecord;
|
|
7
|
-
":render.schedulers?": RenderDomainSchedulersRecord;
|
|
8
|
-
}
|
|
9
|
-
export interface RenderDomainStatsRecord {
|
|
10
|
-
progress?: number | null;
|
|
11
|
-
error?: Array<Record<string, unknown>> | null;
|
|
12
|
-
status?: string | string[] | null;
|
|
13
|
-
lag?: number | null;
|
|
14
|
-
available?: boolean | null;
|
|
15
|
-
toobusy?: boolean | null;
|
|
16
|
-
cpuAvailable?: boolean | null;
|
|
17
|
-
cpuComputeAvailable?: number | null;
|
|
18
|
-
cpuComputeReservation?: number | null;
|
|
19
|
-
cpuCompute?: number | null;
|
|
20
|
-
cpuComputeLimit?: number | null;
|
|
21
|
-
cpuComputeTotal?: number | null;
|
|
22
|
-
cpuComputeValue?: number | null;
|
|
23
|
-
cpuMemoryAvailable?: number | null;
|
|
24
|
-
cpuMemoryReservation?: number | null;
|
|
25
|
-
cpuMemory?: number | null;
|
|
26
|
-
cpuMemoryLimit?: number | null;
|
|
27
|
-
cpuMemoryValue?: number | null;
|
|
28
|
-
cpuMemoryTotal?: number | null;
|
|
29
|
-
gpuType?: string | null;
|
|
30
|
-
gpuAvailable?: boolean | null;
|
|
31
|
-
gpuComputeAvailable?: number | null;
|
|
32
|
-
gpuComputeReservation?: number | null;
|
|
33
|
-
gpuCompute?: number | null;
|
|
34
|
-
gpuComputeLimit?: number | null;
|
|
35
|
-
gpuComputeValue?: number | null;
|
|
36
|
-
gpuComputeTotal?: number | null;
|
|
37
|
-
gpuMemoryAvailable?: number | null;
|
|
38
|
-
gpuMemoryReservation?: number | null;
|
|
39
|
-
gpuMemory?: number | null;
|
|
40
|
-
gpuMemoryLimit?: number | null;
|
|
41
|
-
gpuMemoryValue?: number | null;
|
|
42
|
-
gpuMemoryTotal?: number | null;
|
|
43
|
-
gpuQueueAvailable?: number | null;
|
|
44
|
-
gpuQueueReservation?: number | null;
|
|
45
|
-
gpuQueueLimit?: number | null;
|
|
46
|
-
gpuQueueValue?: number | null;
|
|
47
|
-
gpuQueueTotal?: number | null;
|
|
48
|
-
gpuEncoder?: number | null;
|
|
49
|
-
gpuEncoderLimit?: number | null;
|
|
50
|
-
gpuEncoderValue?: number | null;
|
|
51
|
-
gpuEncoderTotal?: number | null;
|
|
52
|
-
gpuDecoder?: number | null;
|
|
53
|
-
gpuDecoderLimit?: number | null;
|
|
54
|
-
gpuDecoderValue?: number | null;
|
|
55
|
-
gpuDecoderTotal?: number | null;
|
|
56
|
-
netAvailable?: boolean | null;
|
|
57
|
-
netTransferAvailable?: number | null;
|
|
58
|
-
netTransferReservation?: number | null;
|
|
59
|
-
netTransfer?: number | null;
|
|
60
|
-
netTransferLimit?: number | null;
|
|
61
|
-
netTransferValue?: number | null;
|
|
62
|
-
netTransferTotal?: number | null;
|
|
63
|
-
cpu?: number | null;
|
|
64
|
-
memory?: number | null;
|
|
65
|
-
activeCount: number | null;
|
|
66
|
-
totalCount: number | null;
|
|
67
|
-
gpuStat?: RenderDomainGpuStats | null;
|
|
68
|
-
cpuStat?: RenderDomainCpuStats | null;
|
|
69
|
-
netStat?: RenderDomainNetStats | null;
|
|
70
|
-
limits?: unknown;
|
|
71
|
-
taskset?: string;
|
|
72
|
-
}
|
|
73
|
-
export declare const isRenderDomainStatsRecord: (input: unknown) => input is RenderDomainStatsRecord;
|
|
74
|
-
export declare const assertRenderDomainStatsRecord: (input: unknown) => RenderDomainStatsRecord;
|
|
75
|
-
export declare const randomRenderDomainStatsRecord: () => RenderDomainStatsRecord;
|
|
76
|
-
export declare const assertGuardRenderDomainStatsRecord: __AssertionGuard<RenderDomainStatsRecord>;
|
|
77
|
-
export declare const stringifyRenderDomainStatsRecord: (input: RenderDomainStatsRecord) => string;
|
|
78
|
-
export declare const assertStringifyRenderDomainStatsRecord: (input: unknown) => string;
|
|
79
|
-
export interface RenderDomainGpuStats {
|
|
80
|
-
[key: string]: unknown;
|
|
81
|
-
}
|
|
82
|
-
export declare const isRenderDomainGpuStats: (input: unknown) => input is RenderDomainGpuStats;
|
|
83
|
-
export declare const assertRenderDomainGpuStats: (input: unknown) => RenderDomainGpuStats;
|
|
84
|
-
export declare const randomRenderDomainGpuStats: () => RenderDomainGpuStats;
|
|
85
|
-
export declare const assertGuardRenderDomainGpuStats: __AssertionGuard<RenderDomainGpuStats>;
|
|
86
|
-
export declare const stringifyRenderDomainGpuStats: (input: RenderDomainGpuStats) => string;
|
|
87
|
-
export declare const assertStringifyRenderDomainGpuStats: (input: unknown) => string;
|
|
88
|
-
export interface RenderDomainCpuStats {
|
|
89
|
-
cpu: {
|
|
90
|
-
idle: number;
|
|
91
|
-
total: number;
|
|
92
|
-
};
|
|
93
|
-
mem: {
|
|
94
|
-
used: number;
|
|
95
|
-
total: number;
|
|
96
|
-
arcstats: {
|
|
97
|
-
size: number | null;
|
|
98
|
-
};
|
|
99
|
-
meminfo: {
|
|
100
|
-
[key: string]: unknown;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
export declare const isRenderDomainCpuStats: (input: unknown) => input is RenderDomainCpuStats;
|
|
105
|
-
export declare const assertRenderDomainCpuStats: (input: unknown) => RenderDomainCpuStats;
|
|
106
|
-
export declare const randomRenderDomainCpuStats: () => RenderDomainCpuStats;
|
|
107
|
-
export declare const assertGuardRenderDomainCpuStats: __AssertionGuard<RenderDomainCpuStats>;
|
|
108
|
-
export declare const stringifyRenderDomainCpuStats: (input: RenderDomainCpuStats) => string;
|
|
109
|
-
export declare const assertStringifyRenderDomainCpuStats: (input: unknown) => string;
|
|
110
|
-
export interface RenderDomainNetStats {
|
|
111
|
-
used: number;
|
|
112
|
-
type?: string;
|
|
113
|
-
dev?: {
|
|
114
|
-
used: number;
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
export declare const isRenderDomainNetStats: (input: unknown) => input is RenderDomainNetStats;
|
|
118
|
-
export declare const assertRenderDomainNetStats: (input: unknown) => RenderDomainNetStats;
|
|
119
|
-
export declare const randomRenderDomainNetStats: () => RenderDomainNetStats;
|
|
120
|
-
export declare const assertGuardRenderDomainNetStats: __AssertionGuard<RenderDomainNetStats>;
|
|
121
|
-
export declare const stringifyRenderDomainNetStats: (input: RenderDomainNetStats) => string;
|
|
122
|
-
export declare const assertStringifyRenderDomainNetStats: (input: unknown) => string;
|
|
123
|
-
export interface RenderDomainQueryRecord {
|
|
124
|
-
type: string;
|
|
125
|
-
title: string;
|
|
126
|
-
parent?: string;
|
|
127
|
-
description: {
|
|
128
|
-
scene: RenderSceneObject;
|
|
129
|
-
profile: RenderProfileObject;
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
export declare const isRenderDomainQueryRecord: (input: unknown) => input is RenderDomainQueryRecord;
|
|
133
|
-
export declare const assertRenderDomainQueryRecord: (input: unknown) => RenderDomainQueryRecord;
|
|
134
|
-
export declare const randomRenderDomainQueryRecord: () => RenderDomainQueryRecord;
|
|
135
|
-
export declare const assertGuardRenderDomainQueryRecord: __AssertionGuard<RenderDomainQueryRecord>;
|
|
136
|
-
export declare const stringifyRenderDomainQueryRecord: (input: RenderDomainQueryRecord) => string;
|
|
137
|
-
export declare const assertStringifyRenderDomainQueryRecord: (input: unknown) => string;
|
|
138
|
-
export interface RenderDomainResultRecord {
|
|
139
|
-
[key: string]: unknown;
|
|
140
|
-
url?: string;
|
|
141
|
-
result?: unknown;
|
|
142
|
-
error?: null | Record<string, unknown> | Array<Record<string, unknown>>;
|
|
143
|
-
}
|
|
144
|
-
export declare const isRenderDomainResultRecord: (input: unknown) => input is RenderDomainResultRecord;
|
|
145
|
-
export declare const assertRenderDomainResultRecord: (input: unknown) => RenderDomainResultRecord;
|
|
146
|
-
export declare const randomRenderDomainResultRecord: () => RenderDomainResultRecord;
|
|
147
|
-
export declare const assertGuardRenderDomainResultRecord: __AssertionGuard<RenderDomainResultRecord>;
|
|
148
|
-
export declare const stringifyRenderDomainResultRecord: (input: RenderDomainResultRecord) => string;
|
|
149
|
-
export declare const assertStringifyRenderDomainResultRecord: (input: unknown) => string;
|
|
150
|
-
export interface RenderDomainSchedulersRecord {
|
|
151
|
-
[key: string]: number[];
|
|
152
|
-
}
|
|
153
|
-
export declare const isRenderDomainSchedulersRecord: (input: unknown) => input is RenderDomainSchedulersRecord;
|
|
154
|
-
export declare const assertRenderDomainSchedulersRecord: (input: unknown) => RenderDomainSchedulersRecord;
|
|
155
|
-
export declare const randomRenderDomainSchedulersRecord: () => RenderDomainSchedulersRecord;
|
|
156
|
-
export declare const assertGuardRenderDomainSchedulersRecord: __AssertionGuard<RenderDomainSchedulersRecord>;
|
|
157
|
-
export declare const stringifyRenderDomainSchedulersRecord: (input: RenderDomainSchedulersRecord) => string;
|
|
158
|
-
export declare const assertStringifyRenderDomainSchedulersRecord: (input: unknown) => string;
|