@nxtedition/types 23.0.38 → 23.0.40
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 -18
- package/dist/app.js +5 -173
- package/dist/common/render-query.js +280 -191
- package/dist/common/render-scene.js +336 -158
- package/dist/common/settings.d.ts +33 -9
- package/dist/common/settings.js +2069 -1381
- package/dist/domains/event.d.ts +129 -1
- package/dist/domains/event.js +2025 -0
- package/dist/domains/media.js +168 -79
- package/dist/domains/publish.d.ts +55 -0
- package/dist/domains/publish.js +4668 -3689
- package/dist/domains/render.d.ts +10 -24
- package/dist/domains/render.js +497 -828
- package/dist/domains/script.d.ts +250 -0
- package/dist/domains/script.js +6652 -0
- package/dist/domains/settings.js +2022 -1351
- package/dist/domains/subtitle-style.d.ts +5 -0
- package/dist/domains/subtitle-style.js +95 -6
- package/dist/index.d.ts +23 -0
- package/dist/index.js +294 -12
- package/dist/nxtpression.d.ts +247 -30
- package/dist/rpc.d.ts +9 -0
- package/dist/schema.json +903 -124
- package/package.json +2 -1
package/dist/domains/render.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isRenderDomainStatsRecord = input => {
|
|
3
|
-
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
3
|
+
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation) && (null === input.cpuCompute || undefined === input.cpuCompute || "number" === typeof input.cpuCompute) && (null === input.cpuComputeLimit || undefined === input.cpuComputeLimit || "number" === typeof input.cpuComputeLimit) && (null === input.cpuComputeTotal || undefined === input.cpuComputeTotal || "number" === typeof input.cpuComputeTotal) && (null === input.cpuComputeValue || undefined === input.cpuComputeValue || "number" === typeof input.cpuComputeValue) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation) && (null === input.cpuMemory || undefined === input.cpuMemory || "number" === typeof input.cpuMemory) && (null === input.cpuMemoryLimit || undefined === input.cpuMemoryLimit || "number" === typeof input.cpuMemoryLimit) && (null === input.cpuMemoryValue || undefined === input.cpuMemoryValue || "number" === typeof input.cpuMemoryValue) && (null === input.cpuMemoryTotal || undefined === input.cpuMemoryTotal || "number" === typeof input.cpuMemoryTotal) && (null === input.gpuType || undefined === input.gpuType || "string" === typeof input.gpuType) && (null === input.gpuAvailable || undefined === input.gpuAvailable || "boolean" === typeof input.gpuAvailable) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation) && (null === input.gpuCompute || undefined === input.gpuCompute || "number" === typeof input.gpuCompute) && (null === input.gpuComputeLimit || undefined === input.gpuComputeLimit || "number" === typeof input.gpuComputeLimit) && (null === input.gpuComputeValue || undefined === input.gpuComputeValue || "number" === typeof input.gpuComputeValue) && (null === input.gpuComputeTotal || undefined === input.gpuComputeTotal || "number" === typeof input.gpuComputeTotal) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation) && (null === input.gpuMemory || undefined === input.gpuMemory || "number" === typeof input.gpuMemory) && (null === input.gpuMemoryLimit || undefined === input.gpuMemoryLimit || "number" === typeof input.gpuMemoryLimit) && (null === input.gpuMemoryValue || undefined === input.gpuMemoryValue || "number" === typeof input.gpuMemoryValue) && (null === input.gpuMemoryTotal || undefined === input.gpuMemoryTotal || "number" === typeof input.gpuMemoryTotal) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation) && (null === input.gpuQueueLimit || undefined === input.gpuQueueLimit || "number" === typeof input.gpuQueueLimit) && (null === input.gpuQueueValue || undefined === input.gpuQueueValue || "number" === typeof input.gpuQueueValue) && (null === input.gpuQueueTotal || undefined === input.gpuQueueTotal || "number" === typeof input.gpuQueueTotal) && (null === input.gpuEncoder || undefined === input.gpuEncoder || "number" === typeof input.gpuEncoder) && (null === input.gpuEncoderLimit || undefined === input.gpuEncoderLimit || "number" === typeof input.gpuEncoderLimit) && (null === input.gpuEncoderValue || undefined === input.gpuEncoderValue || "number" === typeof input.gpuEncoderValue) && (null === input.gpuEncoderTotal || undefined === input.gpuEncoderTotal || "number" === typeof input.gpuEncoderTotal) && (null === input.gpuDecoder || undefined === input.gpuDecoder || "number" === typeof input.gpuDecoder) && (null === input.gpuDecoderLimit || undefined === input.gpuDecoderLimit || "number" === typeof input.gpuDecoderLimit) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal) && (null === input.netAvailable || undefined === input.netAvailable || "boolean" === typeof input.netAvailable) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation) && (null === input.netTransfer || undefined === input.netTransfer || "number" === typeof input.netTransfer) && (null === input.netTransferLimit || undefined === input.netTransferLimit || "number" === typeof input.netTransferLimit) && (null === input.netTransferValue || undefined === input.netTransferValue || "number" === typeof input.netTransferValue) && (null === input.netTransferTotal || undefined === input.netTransferTotal || "number" === typeof input.netTransferTotal) && (null === input.cpu || undefined === input.cpu || "number" === typeof input.cpu) && (null === input.memory || undefined === input.memory || "number" === typeof input.memory) && (null === input.activeCount || "number" === typeof input.activeCount) && (null === input.totalCount || "number" === typeof input.totalCount) && (null === input.gpuStat || undefined === input.gpuStat || "object" === typeof input.gpuStat && null !== input.gpuStat && false === Array.isArray(input.gpuStat) && $io2(input.gpuStat)) && (null === input.cpuStat || undefined === input.cpuStat || "object" === typeof input.cpuStat && null !== input.cpuStat && $io3(input.cpuStat)) && (null === input.netStat || undefined === input.netStat || "object" === typeof input.netStat && null !== input.netStat && $io8(input.netStat)) && true && (undefined === input.taskset || "string" === typeof input.taskset);
|
|
4
4
|
const $io1 = input => Object.keys(input).every(key => {
|
|
5
5
|
const value = input[key];
|
|
6
6
|
if (undefined === value)
|
|
@@ -14,16 +14,21 @@ export const isRenderDomainStatsRecord = input => {
|
|
|
14
14
|
return true;
|
|
15
15
|
});
|
|
16
16
|
const $io3 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && "number" === typeof input.cpu.total) && ("object" === typeof input.mem && null !== input.mem && $io5(input.mem));
|
|
17
|
-
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io7(input.meminfo));
|
|
17
|
+
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io7(input.meminfo));
|
|
18
18
|
const $io6 = input => null === input.size || "number" === typeof input.size;
|
|
19
|
-
const $io7 = input =>
|
|
19
|
+
const $io7 = input => Object.keys(input).every(key => {
|
|
20
|
+
const value = input[key];
|
|
21
|
+
if (undefined === value)
|
|
22
|
+
return true;
|
|
23
|
+
return true;
|
|
24
|
+
});
|
|
20
25
|
const $io8 = input => "number" === typeof input.used && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && $io9(input.dev));
|
|
21
26
|
const $io9 = input => "number" === typeof input.used;
|
|
22
27
|
return "object" === typeof input && null !== input && $io0(input);
|
|
23
28
|
};
|
|
24
29
|
export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
25
30
|
const __is = input => {
|
|
26
|
-
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
31
|
+
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation) && (null === input.cpuCompute || undefined === input.cpuCompute || "number" === typeof input.cpuCompute) && (null === input.cpuComputeLimit || undefined === input.cpuComputeLimit || "number" === typeof input.cpuComputeLimit) && (null === input.cpuComputeTotal || undefined === input.cpuComputeTotal || "number" === typeof input.cpuComputeTotal) && (null === input.cpuComputeValue || undefined === input.cpuComputeValue || "number" === typeof input.cpuComputeValue) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation) && (null === input.cpuMemory || undefined === input.cpuMemory || "number" === typeof input.cpuMemory) && (null === input.cpuMemoryLimit || undefined === input.cpuMemoryLimit || "number" === typeof input.cpuMemoryLimit) && (null === input.cpuMemoryValue || undefined === input.cpuMemoryValue || "number" === typeof input.cpuMemoryValue) && (null === input.cpuMemoryTotal || undefined === input.cpuMemoryTotal || "number" === typeof input.cpuMemoryTotal) && (null === input.gpuType || undefined === input.gpuType || "string" === typeof input.gpuType) && (null === input.gpuAvailable || undefined === input.gpuAvailable || "boolean" === typeof input.gpuAvailable) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation) && (null === input.gpuCompute || undefined === input.gpuCompute || "number" === typeof input.gpuCompute) && (null === input.gpuComputeLimit || undefined === input.gpuComputeLimit || "number" === typeof input.gpuComputeLimit) && (null === input.gpuComputeValue || undefined === input.gpuComputeValue || "number" === typeof input.gpuComputeValue) && (null === input.gpuComputeTotal || undefined === input.gpuComputeTotal || "number" === typeof input.gpuComputeTotal) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation) && (null === input.gpuMemory || undefined === input.gpuMemory || "number" === typeof input.gpuMemory) && (null === input.gpuMemoryLimit || undefined === input.gpuMemoryLimit || "number" === typeof input.gpuMemoryLimit) && (null === input.gpuMemoryValue || undefined === input.gpuMemoryValue || "number" === typeof input.gpuMemoryValue) && (null === input.gpuMemoryTotal || undefined === input.gpuMemoryTotal || "number" === typeof input.gpuMemoryTotal) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation) && (null === input.gpuQueueLimit || undefined === input.gpuQueueLimit || "number" === typeof input.gpuQueueLimit) && (null === input.gpuQueueValue || undefined === input.gpuQueueValue || "number" === typeof input.gpuQueueValue) && (null === input.gpuQueueTotal || undefined === input.gpuQueueTotal || "number" === typeof input.gpuQueueTotal) && (null === input.gpuEncoder || undefined === input.gpuEncoder || "number" === typeof input.gpuEncoder) && (null === input.gpuEncoderLimit || undefined === input.gpuEncoderLimit || "number" === typeof input.gpuEncoderLimit) && (null === input.gpuEncoderValue || undefined === input.gpuEncoderValue || "number" === typeof input.gpuEncoderValue) && (null === input.gpuEncoderTotal || undefined === input.gpuEncoderTotal || "number" === typeof input.gpuEncoderTotal) && (null === input.gpuDecoder || undefined === input.gpuDecoder || "number" === typeof input.gpuDecoder) && (null === input.gpuDecoderLimit || undefined === input.gpuDecoderLimit || "number" === typeof input.gpuDecoderLimit) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal) && (null === input.netAvailable || undefined === input.netAvailable || "boolean" === typeof input.netAvailable) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation) && (null === input.netTransfer || undefined === input.netTransfer || "number" === typeof input.netTransfer) && (null === input.netTransferLimit || undefined === input.netTransferLimit || "number" === typeof input.netTransferLimit) && (null === input.netTransferValue || undefined === input.netTransferValue || "number" === typeof input.netTransferValue) && (null === input.netTransferTotal || undefined === input.netTransferTotal || "number" === typeof input.netTransferTotal) && (null === input.cpu || undefined === input.cpu || "number" === typeof input.cpu) && (null === input.memory || undefined === input.memory || "number" === typeof input.memory) && (null === input.activeCount || "number" === typeof input.activeCount) && (null === input.totalCount || "number" === typeof input.totalCount) && (null === input.gpuStat || undefined === input.gpuStat || "object" === typeof input.gpuStat && null !== input.gpuStat && false === Array.isArray(input.gpuStat) && $io2(input.gpuStat)) && (null === input.cpuStat || undefined === input.cpuStat || "object" === typeof input.cpuStat && null !== input.cpuStat && $io3(input.cpuStat)) && (null === input.netStat || undefined === input.netStat || "object" === typeof input.netStat && null !== input.netStat && $io8(input.netStat)) && true && (undefined === input.taskset || "string" === typeof input.taskset);
|
|
27
32
|
const $io1 = input => Object.keys(input).every(key => {
|
|
28
33
|
const value = input[key];
|
|
29
34
|
if (undefined === value)
|
|
@@ -37,9 +42,14 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
37
42
|
return true;
|
|
38
43
|
});
|
|
39
44
|
const $io3 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && "number" === typeof input.cpu.total) && ("object" === typeof input.mem && null !== input.mem && $io5(input.mem));
|
|
40
|
-
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io7(input.meminfo));
|
|
45
|
+
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io7(input.meminfo));
|
|
41
46
|
const $io6 = input => null === input.size || "number" === typeof input.size;
|
|
42
|
-
const $io7 = input =>
|
|
47
|
+
const $io7 = input => Object.keys(input).every(key => {
|
|
48
|
+
const value = input[key];
|
|
49
|
+
if (undefined === value)
|
|
50
|
+
return true;
|
|
51
|
+
return true;
|
|
52
|
+
});
|
|
43
53
|
const $io8 = input => "number" === typeof input.used && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && $io9(input.dev));
|
|
44
54
|
const $io9 = input => "number" === typeof input.used;
|
|
45
55
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -96,9 +106,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
96
106
|
path: _path + ".cpuAvailable",
|
|
97
107
|
expected: "(boolean | null | undefined)",
|
|
98
108
|
value: input.cpuAvailable
|
|
99
|
-
}, errorFactory)) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
109
|
+
}, errorFactory)) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable || $guard(_exceptionable, {
|
|
100
110
|
path: _path + ".cpuComputeAvailable",
|
|
101
|
-
expected: "(
|
|
111
|
+
expected: "(null | number | undefined)",
|
|
102
112
|
value: input.cpuComputeAvailable
|
|
103
113
|
}, errorFactory)) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation || $guard(_exceptionable, {
|
|
104
114
|
path: _path + ".cpuComputeReservation",
|
|
@@ -120,9 +130,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
120
130
|
path: _path + ".cpuComputeValue",
|
|
121
131
|
expected: "(null | number | undefined)",
|
|
122
132
|
value: input.cpuComputeValue
|
|
123
|
-
}, errorFactory)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "
|
|
133
|
+
}, errorFactory)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable || $guard(_exceptionable, {
|
|
124
134
|
path: _path + ".cpuMemoryAvailable",
|
|
125
|
-
expected: "(
|
|
135
|
+
expected: "(null | number | undefined)",
|
|
126
136
|
value: input.cpuMemoryAvailable
|
|
127
137
|
}, errorFactory)) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation || $guard(_exceptionable, {
|
|
128
138
|
path: _path + ".cpuMemoryReservation",
|
|
@@ -152,9 +162,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
152
162
|
path: _path + ".gpuAvailable",
|
|
153
163
|
expected: "(boolean | null | undefined)",
|
|
154
164
|
value: input.gpuAvailable
|
|
155
|
-
}, errorFactory)) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "
|
|
165
|
+
}, errorFactory)) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable || $guard(_exceptionable, {
|
|
156
166
|
path: _path + ".gpuComputeAvailable",
|
|
157
|
-
expected: "(
|
|
167
|
+
expected: "(null | number | undefined)",
|
|
158
168
|
value: input.gpuComputeAvailable
|
|
159
169
|
}, errorFactory)) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation || $guard(_exceptionable, {
|
|
160
170
|
path: _path + ".gpuComputeReservation",
|
|
@@ -176,9 +186,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
176
186
|
path: _path + ".gpuComputeTotal",
|
|
177
187
|
expected: "(null | number | undefined)",
|
|
178
188
|
value: input.gpuComputeTotal
|
|
179
|
-
}, errorFactory)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "
|
|
189
|
+
}, errorFactory)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable || $guard(_exceptionable, {
|
|
180
190
|
path: _path + ".gpuMemoryAvailable",
|
|
181
|
-
expected: "(
|
|
191
|
+
expected: "(null | number | undefined)",
|
|
182
192
|
value: input.gpuMemoryAvailable
|
|
183
193
|
}, errorFactory)) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation || $guard(_exceptionable, {
|
|
184
194
|
path: _path + ".gpuMemoryReservation",
|
|
@@ -200,9 +210,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
200
210
|
path: _path + ".gpuMemoryTotal",
|
|
201
211
|
expected: "(null | number | undefined)",
|
|
202
212
|
value: input.gpuMemoryTotal
|
|
203
|
-
}, errorFactory)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "
|
|
213
|
+
}, errorFactory)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable || $guard(_exceptionable, {
|
|
204
214
|
path: _path + ".gpuQueueAvailable",
|
|
205
|
-
expected: "(
|
|
215
|
+
expected: "(null | number | undefined)",
|
|
206
216
|
value: input.gpuQueueAvailable
|
|
207
217
|
}, errorFactory)) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation || $guard(_exceptionable, {
|
|
208
218
|
path: _path + ".gpuQueueReservation",
|
|
@@ -244,9 +254,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
244
254
|
path: _path + ".gpuDecoderLimit",
|
|
245
255
|
expected: "(null | number | undefined)",
|
|
246
256
|
value: input.gpuDecoderLimit
|
|
247
|
-
}, errorFactory)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || $guard(_exceptionable, {
|
|
257
|
+
}, errorFactory)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue || $guard(_exceptionable, {
|
|
248
258
|
path: _path + ".gpuDecoderValue",
|
|
249
|
-
expected: "(null | undefined)",
|
|
259
|
+
expected: "(null | number | undefined)",
|
|
250
260
|
value: input.gpuDecoderValue
|
|
251
261
|
}, errorFactory)) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal || $guard(_exceptionable, {
|
|
252
262
|
path: _path + ".gpuDecoderTotal",
|
|
@@ -256,9 +266,9 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
256
266
|
path: _path + ".netAvailable",
|
|
257
267
|
expected: "(boolean | null | undefined)",
|
|
258
268
|
value: input.netAvailable
|
|
259
|
-
}, errorFactory)) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "
|
|
269
|
+
}, errorFactory)) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable || $guard(_exceptionable, {
|
|
260
270
|
path: _path + ".netTransferAvailable",
|
|
261
|
-
expected: "(
|
|
271
|
+
expected: "(null | number | undefined)",
|
|
262
272
|
value: input.netTransferAvailable
|
|
263
273
|
}, errorFactory)) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation || $guard(_exceptionable, {
|
|
264
274
|
path: _path + ".netTransferReservation",
|
|
@@ -320,6 +330,10 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
320
330
|
path: _path + ".netStat",
|
|
321
331
|
expected: "(RenderDomainNetStats | null | undefined)",
|
|
322
332
|
value: input.netStat
|
|
333
|
+
}, errorFactory)) && true && (undefined === input.taskset || "string" === typeof input.taskset || $guard(_exceptionable, {
|
|
334
|
+
path: _path + ".taskset",
|
|
335
|
+
expected: "(string | undefined)",
|
|
336
|
+
value: input.taskset
|
|
323
337
|
}, errorFactory));
|
|
324
338
|
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
325
339
|
const value = input[key];
|
|
@@ -375,7 +389,7 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
375
389
|
path: _path + ".arcstats",
|
|
376
390
|
expected: "__type.o2",
|
|
377
391
|
value: input.arcstats
|
|
378
|
-
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo || $guard(_exceptionable, {
|
|
392
|
+
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) || $guard(_exceptionable, {
|
|
379
393
|
path: _path + ".meminfo",
|
|
380
394
|
expected: "__type.o3",
|
|
381
395
|
value: input.meminfo
|
|
@@ -389,75 +403,12 @@ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
389
403
|
expected: "(null | number)",
|
|
390
404
|
value: input.size
|
|
391
405
|
}, errorFactory);
|
|
392
|
-
const $ao7 = (input, _path, _exceptionable = true) =>
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
expected: "(null | number)",
|
|
399
|
-
value: input.free
|
|
400
|
-
}, errorFactory)) && (null === input.used || "number" === typeof input.used || $guard(_exceptionable, {
|
|
401
|
-
path: _path + ".used",
|
|
402
|
-
expected: "(null | number)",
|
|
403
|
-
value: input.used
|
|
404
|
-
}, errorFactory)) && (null === input.active || "number" === typeof input.active || $guard(_exceptionable, {
|
|
405
|
-
path: _path + ".active",
|
|
406
|
-
expected: "(null | number)",
|
|
407
|
-
value: input.active
|
|
408
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
|
|
409
|
-
path: _path + ".available",
|
|
410
|
-
expected: "(null | number)",
|
|
411
|
-
value: input.available
|
|
412
|
-
}, errorFactory)) && (null === input.buffers || "number" === typeof input.buffers || $guard(_exceptionable, {
|
|
413
|
-
path: _path + ".buffers",
|
|
414
|
-
expected: "(null | number)",
|
|
415
|
-
value: input.buffers
|
|
416
|
-
}, errorFactory)) && (null === input.cached || "number" === typeof input.cached || $guard(_exceptionable, {
|
|
417
|
-
path: _path + ".cached",
|
|
418
|
-
expected: "(null | number)",
|
|
419
|
-
value: input.cached
|
|
420
|
-
}, errorFactory)) && (null === input.buffcache || "number" === typeof input.buffcache || $guard(_exceptionable, {
|
|
421
|
-
path: _path + ".buffcache",
|
|
422
|
-
expected: "(null | number)",
|
|
423
|
-
value: input.buffcache
|
|
424
|
-
}, errorFactory)) && (null === input.reclaimable || "number" === typeof input.reclaimable || $guard(_exceptionable, {
|
|
425
|
-
path: _path + ".reclaimable",
|
|
426
|
-
expected: "(null | number)",
|
|
427
|
-
value: input.reclaimable
|
|
428
|
-
}, errorFactory)) && (null === input.swaptotal || "number" === typeof input.swaptotal || $guard(_exceptionable, {
|
|
429
|
-
path: _path + ".swaptotal",
|
|
430
|
-
expected: "(null | number)",
|
|
431
|
-
value: input.swaptotal
|
|
432
|
-
}, errorFactory)) && (null === input.swapused || "number" === typeof input.swapused || $guard(_exceptionable, {
|
|
433
|
-
path: _path + ".swapused",
|
|
434
|
-
expected: "(null | number)",
|
|
435
|
-
value: input.swapused
|
|
436
|
-
}, errorFactory)) && (null === input.swapfree || "number" === typeof input.swapfree || $guard(_exceptionable, {
|
|
437
|
-
path: _path + ".swapfree",
|
|
438
|
-
expected: "(null | number)",
|
|
439
|
-
value: input.swapfree
|
|
440
|
-
}, errorFactory)) && (null === input.slab || "number" === typeof input.slab || $guard(_exceptionable, {
|
|
441
|
-
path: _path + ".slab",
|
|
442
|
-
expected: "(null | number)",
|
|
443
|
-
value: input.slab
|
|
444
|
-
}, errorFactory)) && (null === input.sReclaimable || "number" === typeof input.sReclaimable || $guard(_exceptionable, {
|
|
445
|
-
path: _path + ".sReclaimable",
|
|
446
|
-
expected: "(null | number)",
|
|
447
|
-
value: input.sReclaimable
|
|
448
|
-
}, errorFactory)) && (null === input.kernelStack || "number" === typeof input.kernelStack || $guard(_exceptionable, {
|
|
449
|
-
path: _path + ".kernelStack",
|
|
450
|
-
expected: "(null | number)",
|
|
451
|
-
value: input.kernelStack
|
|
452
|
-
}, errorFactory)) && (null === input.memTotal || "number" === typeof input.memTotal || $guard(_exceptionable, {
|
|
453
|
-
path: _path + ".memTotal",
|
|
454
|
-
expected: "(null | number)",
|
|
455
|
-
value: input.memTotal
|
|
456
|
-
}, errorFactory)) && (null === input.memAvailable || "number" === typeof input.memAvailable || $guard(_exceptionable, {
|
|
457
|
-
path: _path + ".memAvailable",
|
|
458
|
-
expected: "(null | number)",
|
|
459
|
-
value: input.memAvailable
|
|
460
|
-
}, errorFactory));
|
|
406
|
+
const $ao7 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
407
|
+
const value = input[key];
|
|
408
|
+
if (undefined === value)
|
|
409
|
+
return true;
|
|
410
|
+
return true;
|
|
411
|
+
});
|
|
461
412
|
const $ao8 = (input, _path, _exceptionable = true) => ("number" === typeof input.used || $guard(_exceptionable, {
|
|
462
413
|
path: _path + ".used",
|
|
463
414
|
expected: "number",
|
|
@@ -535,7 +486,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
535
486
|
cpuComputeAvailable: $pick([
|
|
536
487
|
() => undefined,
|
|
537
488
|
() => null,
|
|
538
|
-
() => (generator?.
|
|
489
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
539
490
|
])(),
|
|
540
491
|
cpuComputeReservation: $pick([
|
|
541
492
|
() => undefined,
|
|
@@ -565,7 +516,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
565
516
|
cpuMemoryAvailable: $pick([
|
|
566
517
|
() => undefined,
|
|
567
518
|
() => null,
|
|
568
|
-
() => (generator?.
|
|
519
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
569
520
|
])(),
|
|
570
521
|
cpuMemoryReservation: $pick([
|
|
571
522
|
() => undefined,
|
|
@@ -605,7 +556,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
605
556
|
gpuComputeAvailable: $pick([
|
|
606
557
|
() => undefined,
|
|
607
558
|
() => null,
|
|
608
|
-
() => (generator?.
|
|
559
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
609
560
|
])(),
|
|
610
561
|
gpuComputeReservation: $pick([
|
|
611
562
|
() => undefined,
|
|
@@ -635,7 +586,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
635
586
|
gpuMemoryAvailable: $pick([
|
|
636
587
|
() => undefined,
|
|
637
588
|
() => null,
|
|
638
|
-
() => (generator?.
|
|
589
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
639
590
|
])(),
|
|
640
591
|
gpuMemoryReservation: $pick([
|
|
641
592
|
() => undefined,
|
|
@@ -665,7 +616,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
665
616
|
gpuQueueAvailable: $pick([
|
|
666
617
|
() => undefined,
|
|
667
618
|
() => null,
|
|
668
|
-
() => (generator?.
|
|
619
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
669
620
|
])(),
|
|
670
621
|
gpuQueueReservation: $pick([
|
|
671
622
|
() => undefined,
|
|
@@ -719,7 +670,8 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
719
670
|
])(),
|
|
720
671
|
gpuDecoderValue: $pick([
|
|
721
672
|
() => undefined,
|
|
722
|
-
() => null
|
|
673
|
+
() => null,
|
|
674
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
723
675
|
])(),
|
|
724
676
|
gpuDecoderTotal: $pick([
|
|
725
677
|
() => undefined,
|
|
@@ -734,7 +686,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
734
686
|
netTransferAvailable: $pick([
|
|
735
687
|
() => undefined,
|
|
736
688
|
() => null,
|
|
737
|
-
() => (generator?.
|
|
689
|
+
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
738
690
|
])(),
|
|
739
691
|
netTransferReservation: $pick([
|
|
740
692
|
() => undefined,
|
|
@@ -793,6 +745,14 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
793
745
|
() => undefined,
|
|
794
746
|
() => null,
|
|
795
747
|
() => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
|
|
748
|
+
])(),
|
|
749
|
+
limits: $pick([
|
|
750
|
+
() => "any type used...",
|
|
751
|
+
() => undefined
|
|
752
|
+
])(),
|
|
753
|
+
taskset: $pick([
|
|
754
|
+
() => undefined,
|
|
755
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
796
756
|
])()
|
|
797
757
|
});
|
|
798
758
|
const $ro1 = (_recursive = false, _depth = 0) => {
|
|
@@ -825,76 +785,11 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
825
785
|
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
826
786
|
])()
|
|
827
787
|
});
|
|
828
|
-
const $ro7 = (_recursive = false, _depth = 0) =>
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
free: $pick([
|
|
834
|
-
() => null,
|
|
835
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
836
|
-
])(),
|
|
837
|
-
used: $pick([
|
|
838
|
-
() => null,
|
|
839
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
840
|
-
])(),
|
|
841
|
-
active: $pick([
|
|
842
|
-
() => null,
|
|
843
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
844
|
-
])(),
|
|
845
|
-
available: $pick([
|
|
846
|
-
() => null,
|
|
847
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
848
|
-
])(),
|
|
849
|
-
buffers: $pick([
|
|
850
|
-
() => null,
|
|
851
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
852
|
-
])(),
|
|
853
|
-
cached: $pick([
|
|
854
|
-
() => null,
|
|
855
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
856
|
-
])(),
|
|
857
|
-
buffcache: $pick([
|
|
858
|
-
() => null,
|
|
859
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
860
|
-
])(),
|
|
861
|
-
reclaimable: $pick([
|
|
862
|
-
() => null,
|
|
863
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
864
|
-
])(),
|
|
865
|
-
swaptotal: $pick([
|
|
866
|
-
() => null,
|
|
867
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
868
|
-
])(),
|
|
869
|
-
swapused: $pick([
|
|
870
|
-
() => null,
|
|
871
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
872
|
-
])(),
|
|
873
|
-
swapfree: $pick([
|
|
874
|
-
() => null,
|
|
875
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
876
|
-
])(),
|
|
877
|
-
slab: $pick([
|
|
878
|
-
() => null,
|
|
879
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
880
|
-
])(),
|
|
881
|
-
sReclaimable: $pick([
|
|
882
|
-
() => null,
|
|
883
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
884
|
-
])(),
|
|
885
|
-
kernelStack: $pick([
|
|
886
|
-
() => null,
|
|
887
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
888
|
-
])(),
|
|
889
|
-
memTotal: $pick([
|
|
890
|
-
() => null,
|
|
891
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
892
|
-
])(),
|
|
893
|
-
memAvailable: $pick([
|
|
894
|
-
() => null,
|
|
895
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
896
|
-
])()
|
|
897
|
-
});
|
|
788
|
+
const $ro7 = (_recursive = false, _depth = 0) => {
|
|
789
|
+
const output = {};
|
|
790
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
791
|
+
return output;
|
|
792
|
+
};
|
|
898
793
|
const $ro8 = (_recursive = false, _depth = 0) => ({
|
|
899
794
|
used: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
900
795
|
type: $pick([
|
|
@@ -913,7 +808,7 @@ export const randomRenderDomainStatsRecord = generator => {
|
|
|
913
808
|
};
|
|
914
809
|
export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
915
810
|
const __is = input => {
|
|
916
|
-
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
811
|
+
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation) && (null === input.cpuCompute || undefined === input.cpuCompute || "number" === typeof input.cpuCompute) && (null === input.cpuComputeLimit || undefined === input.cpuComputeLimit || "number" === typeof input.cpuComputeLimit) && (null === input.cpuComputeTotal || undefined === input.cpuComputeTotal || "number" === typeof input.cpuComputeTotal) && (null === input.cpuComputeValue || undefined === input.cpuComputeValue || "number" === typeof input.cpuComputeValue) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation) && (null === input.cpuMemory || undefined === input.cpuMemory || "number" === typeof input.cpuMemory) && (null === input.cpuMemoryLimit || undefined === input.cpuMemoryLimit || "number" === typeof input.cpuMemoryLimit) && (null === input.cpuMemoryValue || undefined === input.cpuMemoryValue || "number" === typeof input.cpuMemoryValue) && (null === input.cpuMemoryTotal || undefined === input.cpuMemoryTotal || "number" === typeof input.cpuMemoryTotal) && (null === input.gpuType || undefined === input.gpuType || "string" === typeof input.gpuType) && (null === input.gpuAvailable || undefined === input.gpuAvailable || "boolean" === typeof input.gpuAvailable) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation) && (null === input.gpuCompute || undefined === input.gpuCompute || "number" === typeof input.gpuCompute) && (null === input.gpuComputeLimit || undefined === input.gpuComputeLimit || "number" === typeof input.gpuComputeLimit) && (null === input.gpuComputeValue || undefined === input.gpuComputeValue || "number" === typeof input.gpuComputeValue) && (null === input.gpuComputeTotal || undefined === input.gpuComputeTotal || "number" === typeof input.gpuComputeTotal) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation) && (null === input.gpuMemory || undefined === input.gpuMemory || "number" === typeof input.gpuMemory) && (null === input.gpuMemoryLimit || undefined === input.gpuMemoryLimit || "number" === typeof input.gpuMemoryLimit) && (null === input.gpuMemoryValue || undefined === input.gpuMemoryValue || "number" === typeof input.gpuMemoryValue) && (null === input.gpuMemoryTotal || undefined === input.gpuMemoryTotal || "number" === typeof input.gpuMemoryTotal) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation) && (null === input.gpuQueueLimit || undefined === input.gpuQueueLimit || "number" === typeof input.gpuQueueLimit) && (null === input.gpuQueueValue || undefined === input.gpuQueueValue || "number" === typeof input.gpuQueueValue) && (null === input.gpuQueueTotal || undefined === input.gpuQueueTotal || "number" === typeof input.gpuQueueTotal) && (null === input.gpuEncoder || undefined === input.gpuEncoder || "number" === typeof input.gpuEncoder) && (null === input.gpuEncoderLimit || undefined === input.gpuEncoderLimit || "number" === typeof input.gpuEncoderLimit) && (null === input.gpuEncoderValue || undefined === input.gpuEncoderValue || "number" === typeof input.gpuEncoderValue) && (null === input.gpuEncoderTotal || undefined === input.gpuEncoderTotal || "number" === typeof input.gpuEncoderTotal) && (null === input.gpuDecoder || undefined === input.gpuDecoder || "number" === typeof input.gpuDecoder) && (null === input.gpuDecoderLimit || undefined === input.gpuDecoderLimit || "number" === typeof input.gpuDecoderLimit) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal) && (null === input.netAvailable || undefined === input.netAvailable || "boolean" === typeof input.netAvailable) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation) && (null === input.netTransfer || undefined === input.netTransfer || "number" === typeof input.netTransfer) && (null === input.netTransferLimit || undefined === input.netTransferLimit || "number" === typeof input.netTransferLimit) && (null === input.netTransferValue || undefined === input.netTransferValue || "number" === typeof input.netTransferValue) && (null === input.netTransferTotal || undefined === input.netTransferTotal || "number" === typeof input.netTransferTotal) && (null === input.cpu || undefined === input.cpu || "number" === typeof input.cpu) && (null === input.memory || undefined === input.memory || "number" === typeof input.memory) && (null === input.activeCount || "number" === typeof input.activeCount) && (null === input.totalCount || "number" === typeof input.totalCount) && (null === input.gpuStat || undefined === input.gpuStat || "object" === typeof input.gpuStat && null !== input.gpuStat && false === Array.isArray(input.gpuStat) && $io2(input.gpuStat)) && (null === input.cpuStat || undefined === input.cpuStat || "object" === typeof input.cpuStat && null !== input.cpuStat && $io3(input.cpuStat)) && (null === input.netStat || undefined === input.netStat || "object" === typeof input.netStat && null !== input.netStat && $io8(input.netStat)) && true && (undefined === input.taskset || "string" === typeof input.taskset);
|
|
917
812
|
const $io1 = input => Object.keys(input).every(key => {
|
|
918
813
|
const value = input[key];
|
|
919
814
|
if (undefined === value)
|
|
@@ -927,9 +822,14 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
927
822
|
return true;
|
|
928
823
|
});
|
|
929
824
|
const $io3 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && "number" === typeof input.cpu.total) && ("object" === typeof input.mem && null !== input.mem && $io5(input.mem));
|
|
930
|
-
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io7(input.meminfo));
|
|
825
|
+
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io7(input.meminfo));
|
|
931
826
|
const $io6 = input => null === input.size || "number" === typeof input.size;
|
|
932
|
-
const $io7 = input =>
|
|
827
|
+
const $io7 = input => Object.keys(input).every(key => {
|
|
828
|
+
const value = input[key];
|
|
829
|
+
if (undefined === value)
|
|
830
|
+
return true;
|
|
831
|
+
return true;
|
|
832
|
+
});
|
|
933
833
|
const $io8 = input => "number" === typeof input.used && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && $io9(input.dev));
|
|
934
834
|
const $io9 = input => "number" === typeof input.used;
|
|
935
835
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -986,9 +886,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
986
886
|
path: _path + ".cpuAvailable",
|
|
987
887
|
expected: "(boolean | null | undefined)",
|
|
988
888
|
value: input.cpuAvailable
|
|
989
|
-
}, errorFactory)) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
889
|
+
}, errorFactory)) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable || $guard(_exceptionable, {
|
|
990
890
|
path: _path + ".cpuComputeAvailable",
|
|
991
|
-
expected: "(
|
|
891
|
+
expected: "(null | number | undefined)",
|
|
992
892
|
value: input.cpuComputeAvailable
|
|
993
893
|
}, errorFactory)) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation || $guard(_exceptionable, {
|
|
994
894
|
path: _path + ".cpuComputeReservation",
|
|
@@ -1010,9 +910,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1010
910
|
path: _path + ".cpuComputeValue",
|
|
1011
911
|
expected: "(null | number | undefined)",
|
|
1012
912
|
value: input.cpuComputeValue
|
|
1013
|
-
}, errorFactory)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "
|
|
913
|
+
}, errorFactory)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable || $guard(_exceptionable, {
|
|
1014
914
|
path: _path + ".cpuMemoryAvailable",
|
|
1015
|
-
expected: "(
|
|
915
|
+
expected: "(null | number | undefined)",
|
|
1016
916
|
value: input.cpuMemoryAvailable
|
|
1017
917
|
}, errorFactory)) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation || $guard(_exceptionable, {
|
|
1018
918
|
path: _path + ".cpuMemoryReservation",
|
|
@@ -1042,9 +942,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1042
942
|
path: _path + ".gpuAvailable",
|
|
1043
943
|
expected: "(boolean | null | undefined)",
|
|
1044
944
|
value: input.gpuAvailable
|
|
1045
|
-
}, errorFactory)) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "
|
|
945
|
+
}, errorFactory)) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable || $guard(_exceptionable, {
|
|
1046
946
|
path: _path + ".gpuComputeAvailable",
|
|
1047
|
-
expected: "(
|
|
947
|
+
expected: "(null | number | undefined)",
|
|
1048
948
|
value: input.gpuComputeAvailable
|
|
1049
949
|
}, errorFactory)) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation || $guard(_exceptionable, {
|
|
1050
950
|
path: _path + ".gpuComputeReservation",
|
|
@@ -1066,9 +966,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1066
966
|
path: _path + ".gpuComputeTotal",
|
|
1067
967
|
expected: "(null | number | undefined)",
|
|
1068
968
|
value: input.gpuComputeTotal
|
|
1069
|
-
}, errorFactory)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "
|
|
969
|
+
}, errorFactory)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable || $guard(_exceptionable, {
|
|
1070
970
|
path: _path + ".gpuMemoryAvailable",
|
|
1071
|
-
expected: "(
|
|
971
|
+
expected: "(null | number | undefined)",
|
|
1072
972
|
value: input.gpuMemoryAvailable
|
|
1073
973
|
}, errorFactory)) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation || $guard(_exceptionable, {
|
|
1074
974
|
path: _path + ".gpuMemoryReservation",
|
|
@@ -1090,9 +990,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1090
990
|
path: _path + ".gpuMemoryTotal",
|
|
1091
991
|
expected: "(null | number | undefined)",
|
|
1092
992
|
value: input.gpuMemoryTotal
|
|
1093
|
-
}, errorFactory)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "
|
|
993
|
+
}, errorFactory)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable || $guard(_exceptionable, {
|
|
1094
994
|
path: _path + ".gpuQueueAvailable",
|
|
1095
|
-
expected: "(
|
|
995
|
+
expected: "(null | number | undefined)",
|
|
1096
996
|
value: input.gpuQueueAvailable
|
|
1097
997
|
}, errorFactory)) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation || $guard(_exceptionable, {
|
|
1098
998
|
path: _path + ".gpuQueueReservation",
|
|
@@ -1134,9 +1034,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1134
1034
|
path: _path + ".gpuDecoderLimit",
|
|
1135
1035
|
expected: "(null | number | undefined)",
|
|
1136
1036
|
value: input.gpuDecoderLimit
|
|
1137
|
-
}, errorFactory)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || $guard(_exceptionable, {
|
|
1037
|
+
}, errorFactory)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue || $guard(_exceptionable, {
|
|
1138
1038
|
path: _path + ".gpuDecoderValue",
|
|
1139
|
-
expected: "(null | undefined)",
|
|
1039
|
+
expected: "(null | number | undefined)",
|
|
1140
1040
|
value: input.gpuDecoderValue
|
|
1141
1041
|
}, errorFactory)) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal || $guard(_exceptionable, {
|
|
1142
1042
|
path: _path + ".gpuDecoderTotal",
|
|
@@ -1146,9 +1046,9 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1146
1046
|
path: _path + ".netAvailable",
|
|
1147
1047
|
expected: "(boolean | null | undefined)",
|
|
1148
1048
|
value: input.netAvailable
|
|
1149
|
-
}, errorFactory)) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "
|
|
1049
|
+
}, errorFactory)) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable || $guard(_exceptionable, {
|
|
1150
1050
|
path: _path + ".netTransferAvailable",
|
|
1151
|
-
expected: "(
|
|
1051
|
+
expected: "(null | number | undefined)",
|
|
1152
1052
|
value: input.netTransferAvailable
|
|
1153
1053
|
}, errorFactory)) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation || $guard(_exceptionable, {
|
|
1154
1054
|
path: _path + ".netTransferReservation",
|
|
@@ -1210,6 +1110,10 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1210
1110
|
path: _path + ".netStat",
|
|
1211
1111
|
expected: "(RenderDomainNetStats | null | undefined)",
|
|
1212
1112
|
value: input.netStat
|
|
1113
|
+
}, errorFactory)) && true && (undefined === input.taskset || "string" === typeof input.taskset || $guard(_exceptionable, {
|
|
1114
|
+
path: _path + ".taskset",
|
|
1115
|
+
expected: "(string | undefined)",
|
|
1116
|
+
value: input.taskset
|
|
1213
1117
|
}, errorFactory));
|
|
1214
1118
|
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1215
1119
|
const value = input[key];
|
|
@@ -1265,7 +1169,7 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1265
1169
|
path: _path + ".arcstats",
|
|
1266
1170
|
expected: "__type.o2",
|
|
1267
1171
|
value: input.arcstats
|
|
1268
|
-
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo || $guard(_exceptionable, {
|
|
1172
|
+
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) || $guard(_exceptionable, {
|
|
1269
1173
|
path: _path + ".meminfo",
|
|
1270
1174
|
expected: "__type.o3",
|
|
1271
1175
|
value: input.meminfo
|
|
@@ -1279,75 +1183,12 @@ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1279
1183
|
expected: "(null | number)",
|
|
1280
1184
|
value: input.size
|
|
1281
1185
|
}, errorFactory);
|
|
1282
|
-
const $ao7 = (input, _path, _exceptionable = true) =>
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
expected: "(null | number)",
|
|
1289
|
-
value: input.free
|
|
1290
|
-
}, errorFactory)) && (null === input.used || "number" === typeof input.used || $guard(_exceptionable, {
|
|
1291
|
-
path: _path + ".used",
|
|
1292
|
-
expected: "(null | number)",
|
|
1293
|
-
value: input.used
|
|
1294
|
-
}, errorFactory)) && (null === input.active || "number" === typeof input.active || $guard(_exceptionable, {
|
|
1295
|
-
path: _path + ".active",
|
|
1296
|
-
expected: "(null | number)",
|
|
1297
|
-
value: input.active
|
|
1298
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
|
|
1299
|
-
path: _path + ".available",
|
|
1300
|
-
expected: "(null | number)",
|
|
1301
|
-
value: input.available
|
|
1302
|
-
}, errorFactory)) && (null === input.buffers || "number" === typeof input.buffers || $guard(_exceptionable, {
|
|
1303
|
-
path: _path + ".buffers",
|
|
1304
|
-
expected: "(null | number)",
|
|
1305
|
-
value: input.buffers
|
|
1306
|
-
}, errorFactory)) && (null === input.cached || "number" === typeof input.cached || $guard(_exceptionable, {
|
|
1307
|
-
path: _path + ".cached",
|
|
1308
|
-
expected: "(null | number)",
|
|
1309
|
-
value: input.cached
|
|
1310
|
-
}, errorFactory)) && (null === input.buffcache || "number" === typeof input.buffcache || $guard(_exceptionable, {
|
|
1311
|
-
path: _path + ".buffcache",
|
|
1312
|
-
expected: "(null | number)",
|
|
1313
|
-
value: input.buffcache
|
|
1314
|
-
}, errorFactory)) && (null === input.reclaimable || "number" === typeof input.reclaimable || $guard(_exceptionable, {
|
|
1315
|
-
path: _path + ".reclaimable",
|
|
1316
|
-
expected: "(null | number)",
|
|
1317
|
-
value: input.reclaimable
|
|
1318
|
-
}, errorFactory)) && (null === input.swaptotal || "number" === typeof input.swaptotal || $guard(_exceptionable, {
|
|
1319
|
-
path: _path + ".swaptotal",
|
|
1320
|
-
expected: "(null | number)",
|
|
1321
|
-
value: input.swaptotal
|
|
1322
|
-
}, errorFactory)) && (null === input.swapused || "number" === typeof input.swapused || $guard(_exceptionable, {
|
|
1323
|
-
path: _path + ".swapused",
|
|
1324
|
-
expected: "(null | number)",
|
|
1325
|
-
value: input.swapused
|
|
1326
|
-
}, errorFactory)) && (null === input.swapfree || "number" === typeof input.swapfree || $guard(_exceptionable, {
|
|
1327
|
-
path: _path + ".swapfree",
|
|
1328
|
-
expected: "(null | number)",
|
|
1329
|
-
value: input.swapfree
|
|
1330
|
-
}, errorFactory)) && (null === input.slab || "number" === typeof input.slab || $guard(_exceptionable, {
|
|
1331
|
-
path: _path + ".slab",
|
|
1332
|
-
expected: "(null | number)",
|
|
1333
|
-
value: input.slab
|
|
1334
|
-
}, errorFactory)) && (null === input.sReclaimable || "number" === typeof input.sReclaimable || $guard(_exceptionable, {
|
|
1335
|
-
path: _path + ".sReclaimable",
|
|
1336
|
-
expected: "(null | number)",
|
|
1337
|
-
value: input.sReclaimable
|
|
1338
|
-
}, errorFactory)) && (null === input.kernelStack || "number" === typeof input.kernelStack || $guard(_exceptionable, {
|
|
1339
|
-
path: _path + ".kernelStack",
|
|
1340
|
-
expected: "(null | number)",
|
|
1341
|
-
value: input.kernelStack
|
|
1342
|
-
}, errorFactory)) && (null === input.memTotal || "number" === typeof input.memTotal || $guard(_exceptionable, {
|
|
1343
|
-
path: _path + ".memTotal",
|
|
1344
|
-
expected: "(null | number)",
|
|
1345
|
-
value: input.memTotal
|
|
1346
|
-
}, errorFactory)) && (null === input.memAvailable || "number" === typeof input.memAvailable || $guard(_exceptionable, {
|
|
1347
|
-
path: _path + ".memAvailable",
|
|
1348
|
-
expected: "(null | number)",
|
|
1349
|
-
value: input.memAvailable
|
|
1350
|
-
}, errorFactory));
|
|
1186
|
+
const $ao7 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1187
|
+
const value = input[key];
|
|
1188
|
+
if (undefined === value)
|
|
1189
|
+
return true;
|
|
1190
|
+
return true;
|
|
1191
|
+
});
|
|
1351
1192
|
const $ao8 = (input, _path, _exceptionable = true) => ("number" === typeof input.used || $guard(_exceptionable, {
|
|
1352
1193
|
path: _path + ".used",
|
|
1353
1194
|
expected: "number",
|
|
@@ -1396,9 +1237,14 @@ export const stringifyRenderDomainStatsRecord = input => {
|
|
|
1396
1237
|
});
|
|
1397
1238
|
const $io3 = input => "object" === typeof input.cpu && null !== input.cpu && $io4(input.cpu) && ("object" === typeof input.mem && null !== input.mem && $io5(input.mem));
|
|
1398
1239
|
const $io4 = input => "number" === typeof input.idle && "number" === typeof input.total;
|
|
1399
|
-
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io7(input.meminfo));
|
|
1240
|
+
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io7(input.meminfo));
|
|
1400
1241
|
const $io6 = input => null === input.size || "number" === typeof input.size;
|
|
1401
|
-
const $io7 = input =>
|
|
1242
|
+
const $io7 = input => Object.keys(input).every(key => {
|
|
1243
|
+
const value = input[key];
|
|
1244
|
+
if (undefined === value)
|
|
1245
|
+
return true;
|
|
1246
|
+
return true;
|
|
1247
|
+
});
|
|
1402
1248
|
const $io8 = input => "number" === typeof input.used && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && $io9(input.dev));
|
|
1403
1249
|
const $io9 = input => "number" === typeof input.used;
|
|
1404
1250
|
const $string = __typia.json.createStringify.string;
|
|
@@ -1412,7 +1258,7 @@ export const stringifyRenderDomainStatsRecord = input => {
|
|
|
1412
1258
|
expected: "(Array<string> | null | string | undefined)",
|
|
1413
1259
|
value: input.status
|
|
1414
1260
|
});
|
|
1415
|
-
})() : "null" : undefined},`}${undefined === input.lag ? "" : `"lag":${undefined !== input.lag ? null !== input.lag ? input.lag : "null" : undefined},`}${undefined === input.available ? "" : `"available":${undefined !== input.available ? null !== input.available ? input.available : "null" : undefined},`}${undefined === input.toobusy ? "" : `"toobusy":${undefined !== input.toobusy ? null !== input.toobusy ? input.toobusy : "null" : undefined},`}${undefined === input.cpuAvailable ? "" : `"cpuAvailable":${undefined !== input.cpuAvailable ? null !== input.cpuAvailable ? input.cpuAvailable : "null" : undefined},`}${undefined === input.cpuComputeAvailable ? "" : `"cpuComputeAvailable":${undefined !== input.cpuComputeAvailable ? null !== input.cpuComputeAvailable ? input.cpuComputeAvailable : "null" : undefined},`}${undefined === input.cpuComputeReservation ? "" : `"cpuComputeReservation":${undefined !== input.cpuComputeReservation ? null !== input.cpuComputeReservation ? input.cpuComputeReservation : "null" : undefined},`}${undefined === input.cpuCompute ? "" : `"cpuCompute":${undefined !== input.cpuCompute ? null !== input.cpuCompute ? input.cpuCompute : "null" : undefined},`}${undefined === input.cpuComputeLimit ? "" : `"cpuComputeLimit":${undefined !== input.cpuComputeLimit ? null !== input.cpuComputeLimit ? input.cpuComputeLimit : "null" : undefined},`}${undefined === input.cpuComputeTotal ? "" : `"cpuComputeTotal":${undefined !== input.cpuComputeTotal ? null !== input.cpuComputeTotal ? input.cpuComputeTotal : "null" : undefined},`}${undefined === input.cpuComputeValue ? "" : `"cpuComputeValue":${undefined !== input.cpuComputeValue ? null !== input.cpuComputeValue ? input.cpuComputeValue : "null" : undefined},`}${undefined === input.cpuMemoryAvailable ? "" : `"cpuMemoryAvailable":${undefined !== input.cpuMemoryAvailable ? null !== input.cpuMemoryAvailable ? input.cpuMemoryAvailable : "null" : undefined},`}${undefined === input.cpuMemoryReservation ? "" : `"cpuMemoryReservation":${undefined !== input.cpuMemoryReservation ? null !== input.cpuMemoryReservation ? input.cpuMemoryReservation : "null" : undefined},`}${undefined === input.cpuMemory ? "" : `"cpuMemory":${undefined !== input.cpuMemory ? null !== input.cpuMemory ? input.cpuMemory : "null" : undefined},`}${undefined === input.cpuMemoryLimit ? "" : `"cpuMemoryLimit":${undefined !== input.cpuMemoryLimit ? null !== input.cpuMemoryLimit ? input.cpuMemoryLimit : "null" : undefined},`}${undefined === input.cpuMemoryValue ? "" : `"cpuMemoryValue":${undefined !== input.cpuMemoryValue ? null !== input.cpuMemoryValue ? input.cpuMemoryValue : "null" : undefined},`}${undefined === input.cpuMemoryTotal ? "" : `"cpuMemoryTotal":${undefined !== input.cpuMemoryTotal ? null !== input.cpuMemoryTotal ? input.cpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuType ? "" : `"gpuType":${undefined !== input.gpuType ? null !== input.gpuType ? $string(input.gpuType) : "null" : undefined},`}${undefined === input.gpuAvailable ? "" : `"gpuAvailable":${undefined !== input.gpuAvailable ? null !== input.gpuAvailable ? input.gpuAvailable : "null" : undefined},`}${undefined === input.gpuComputeAvailable ? "" : `"gpuComputeAvailable":${undefined !== input.gpuComputeAvailable ? null !== input.gpuComputeAvailable ? input.gpuComputeAvailable : "null" : undefined},`}${undefined === input.gpuComputeReservation ? "" : `"gpuComputeReservation":${undefined !== input.gpuComputeReservation ? null !== input.gpuComputeReservation ? input.gpuComputeReservation : "null" : undefined},`}${undefined === input.gpuCompute ? "" : `"gpuCompute":${undefined !== input.gpuCompute ? null !== input.gpuCompute ? input.gpuCompute : "null" : undefined},`}${undefined === input.gpuComputeLimit ? "" : `"gpuComputeLimit":${undefined !== input.gpuComputeLimit ? null !== input.gpuComputeLimit ? input.gpuComputeLimit : "null" : undefined},`}${undefined === input.gpuComputeValue ? "" : `"gpuComputeValue":${undefined !== input.gpuComputeValue ? null !== input.gpuComputeValue ? input.gpuComputeValue : "null" : undefined},`}${undefined === input.gpuComputeTotal ? "" : `"gpuComputeTotal":${undefined !== input.gpuComputeTotal ? null !== input.gpuComputeTotal ? input.gpuComputeTotal : "null" : undefined},`}${undefined === input.gpuMemoryAvailable ? "" : `"gpuMemoryAvailable":${undefined !== input.gpuMemoryAvailable ? null !== input.gpuMemoryAvailable ? input.gpuMemoryAvailable : "null" : undefined},`}${undefined === input.gpuMemoryReservation ? "" : `"gpuMemoryReservation":${undefined !== input.gpuMemoryReservation ? null !== input.gpuMemoryReservation ? input.gpuMemoryReservation : "null" : undefined},`}${undefined === input.gpuMemory ? "" : `"gpuMemory":${undefined !== input.gpuMemory ? null !== input.gpuMemory ? input.gpuMemory : "null" : undefined},`}${undefined === input.gpuMemoryLimit ? "" : `"gpuMemoryLimit":${undefined !== input.gpuMemoryLimit ? null !== input.gpuMemoryLimit ? input.gpuMemoryLimit : "null" : undefined},`}${undefined === input.gpuMemoryValue ? "" : `"gpuMemoryValue":${undefined !== input.gpuMemoryValue ? null !== input.gpuMemoryValue ? input.gpuMemoryValue : "null" : undefined},`}${undefined === input.gpuMemoryTotal ? "" : `"gpuMemoryTotal":${undefined !== input.gpuMemoryTotal ? null !== input.gpuMemoryTotal ? input.gpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuQueueAvailable ? "" : `"gpuQueueAvailable":${undefined !== input.gpuQueueAvailable ? null !== input.gpuQueueAvailable ? input.gpuQueueAvailable : "null" : undefined},`}${undefined === input.gpuQueueReservation ? "" : `"gpuQueueReservation":${undefined !== input.gpuQueueReservation ? null !== input.gpuQueueReservation ? input.gpuQueueReservation : "null" : undefined},`}${undefined === input.gpuQueueLimit ? "" : `"gpuQueueLimit":${undefined !== input.gpuQueueLimit ? null !== input.gpuQueueLimit ? input.gpuQueueLimit : "null" : undefined},`}${undefined === input.gpuQueueValue ? "" : `"gpuQueueValue":${undefined !== input.gpuQueueValue ? null !== input.gpuQueueValue ? input.gpuQueueValue : "null" : undefined},`}${undefined === input.gpuQueueTotal ? "" : `"gpuQueueTotal":${undefined !== input.gpuQueueTotal ? null !== input.gpuQueueTotal ? input.gpuQueueTotal : "null" : undefined},`}${undefined === input.gpuEncoder ? "" : `"gpuEncoder":${undefined !== input.gpuEncoder ? null !== input.gpuEncoder ? input.gpuEncoder : "null" : undefined},`}${undefined === input.gpuEncoderLimit ? "" : `"gpuEncoderLimit":${undefined !== input.gpuEncoderLimit ? null !== input.gpuEncoderLimit ? input.gpuEncoderLimit : "null" : undefined},`}${undefined === input.gpuEncoderValue ? "" : `"gpuEncoderValue":${undefined !== input.gpuEncoderValue ? null !== input.gpuEncoderValue ? input.gpuEncoderValue : "null" : undefined},`}${undefined === input.gpuEncoderTotal ? "" : `"gpuEncoderTotal":${undefined !== input.gpuEncoderTotal ? null !== input.gpuEncoderTotal ? input.gpuEncoderTotal : "null" : undefined},`}${undefined === input.gpuDecoder ? "" : `"gpuDecoder":${undefined !== input.gpuDecoder ? null !== input.gpuDecoder ? input.gpuDecoder : "null" : undefined},`}${undefined === input.gpuDecoderLimit ? "" : `"gpuDecoderLimit":${undefined !== input.gpuDecoderLimit ? null !== input.gpuDecoderLimit ? input.gpuDecoderLimit : "null" : undefined},`}${undefined === input.gpuDecoderValue ? "" : `"gpuDecoderValue":${null === input.gpuDecoderValue ? "null" : undefined},`}${undefined === input.gpuDecoderTotal ? "" : `"gpuDecoderTotal":${undefined !== input.gpuDecoderTotal ? null !== input.gpuDecoderTotal ? input.gpuDecoderTotal : "null" : undefined},`}${undefined === input.netAvailable ? "" : `"netAvailable":${undefined !== input.netAvailable ? null !== input.netAvailable ? input.netAvailable : "null" : undefined},`}${undefined === input.netTransferAvailable ? "" : `"netTransferAvailable":${undefined !== input.netTransferAvailable ? null !== input.netTransferAvailable ? input.netTransferAvailable : "null" : undefined},`}${undefined === input.netTransferReservation ? "" : `"netTransferReservation":${undefined !== input.netTransferReservation ? null !== input.netTransferReservation ? input.netTransferReservation : "null" : undefined},`}${undefined === input.netTransfer ? "" : `"netTransfer":${undefined !== input.netTransfer ? null !== input.netTransfer ? input.netTransfer : "null" : undefined},`}${undefined === input.netTransferLimit ? "" : `"netTransferLimit":${undefined !== input.netTransferLimit ? null !== input.netTransferLimit ? input.netTransferLimit : "null" : undefined},`}${undefined === input.netTransferValue ? "" : `"netTransferValue":${undefined !== input.netTransferValue ? null !== input.netTransferValue ? input.netTransferValue : "null" : undefined},`}${undefined === input.netTransferTotal ? "" : `"netTransferTotal":${undefined !== input.netTransferTotal ? null !== input.netTransferTotal ? input.netTransferTotal : "null" : undefined},`}${undefined === input.cpu ? "" : `"cpu":${undefined !== input.cpu ? null !== input.cpu ? input.cpu : "null" : undefined},`}${undefined === input.memory ? "" : `"memory":${undefined !== input.memory ? null !== input.memory ? input.memory : "null" : undefined},`}${undefined === input.gpuStat ? "" : `"gpuStat":${undefined !== input.gpuStat ? null !== input.gpuStat ? $so2(input.gpuStat) : "null" : undefined},`}${undefined === input.cpuStat ? "" : `"cpuStat":${undefined !== input.cpuStat ? null !== input.cpuStat ? $so3(input.cpuStat) : "null" : undefined},`}${undefined === input.netStat ? "" : `"netStat":${undefined !== input.netStat ? null !== input.netStat ? $so8(input.netStat) : "null" : undefined},`}"activeCount":${null !== input.activeCount ? input.activeCount : "null"},"totalCount":${null !== input.totalCount ? input.totalCount : "null"}}`;
|
|
1261
|
+
})() : "null" : undefined},`}${undefined === input.lag ? "" : `"lag":${undefined !== input.lag ? null !== input.lag ? input.lag : "null" : undefined},`}${undefined === input.available ? "" : `"available":${undefined !== input.available ? null !== input.available ? input.available : "null" : undefined},`}${undefined === input.toobusy ? "" : `"toobusy":${undefined !== input.toobusy ? null !== input.toobusy ? input.toobusy : "null" : undefined},`}${undefined === input.cpuAvailable ? "" : `"cpuAvailable":${undefined !== input.cpuAvailable ? null !== input.cpuAvailable ? input.cpuAvailable : "null" : undefined},`}${undefined === input.cpuComputeAvailable ? "" : `"cpuComputeAvailable":${undefined !== input.cpuComputeAvailable ? null !== input.cpuComputeAvailable ? input.cpuComputeAvailable : "null" : undefined},`}${undefined === input.cpuComputeReservation ? "" : `"cpuComputeReservation":${undefined !== input.cpuComputeReservation ? null !== input.cpuComputeReservation ? input.cpuComputeReservation : "null" : undefined},`}${undefined === input.cpuCompute ? "" : `"cpuCompute":${undefined !== input.cpuCompute ? null !== input.cpuCompute ? input.cpuCompute : "null" : undefined},`}${undefined === input.cpuComputeLimit ? "" : `"cpuComputeLimit":${undefined !== input.cpuComputeLimit ? null !== input.cpuComputeLimit ? input.cpuComputeLimit : "null" : undefined},`}${undefined === input.cpuComputeTotal ? "" : `"cpuComputeTotal":${undefined !== input.cpuComputeTotal ? null !== input.cpuComputeTotal ? input.cpuComputeTotal : "null" : undefined},`}${undefined === input.cpuComputeValue ? "" : `"cpuComputeValue":${undefined !== input.cpuComputeValue ? null !== input.cpuComputeValue ? input.cpuComputeValue : "null" : undefined},`}${undefined === input.cpuMemoryAvailable ? "" : `"cpuMemoryAvailable":${undefined !== input.cpuMemoryAvailable ? null !== input.cpuMemoryAvailable ? input.cpuMemoryAvailable : "null" : undefined},`}${undefined === input.cpuMemoryReservation ? "" : `"cpuMemoryReservation":${undefined !== input.cpuMemoryReservation ? null !== input.cpuMemoryReservation ? input.cpuMemoryReservation : "null" : undefined},`}${undefined === input.cpuMemory ? "" : `"cpuMemory":${undefined !== input.cpuMemory ? null !== input.cpuMemory ? input.cpuMemory : "null" : undefined},`}${undefined === input.cpuMemoryLimit ? "" : `"cpuMemoryLimit":${undefined !== input.cpuMemoryLimit ? null !== input.cpuMemoryLimit ? input.cpuMemoryLimit : "null" : undefined},`}${undefined === input.cpuMemoryValue ? "" : `"cpuMemoryValue":${undefined !== input.cpuMemoryValue ? null !== input.cpuMemoryValue ? input.cpuMemoryValue : "null" : undefined},`}${undefined === input.cpuMemoryTotal ? "" : `"cpuMemoryTotal":${undefined !== input.cpuMemoryTotal ? null !== input.cpuMemoryTotal ? input.cpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuType ? "" : `"gpuType":${undefined !== input.gpuType ? null !== input.gpuType ? $string(input.gpuType) : "null" : undefined},`}${undefined === input.gpuAvailable ? "" : `"gpuAvailable":${undefined !== input.gpuAvailable ? null !== input.gpuAvailable ? input.gpuAvailable : "null" : undefined},`}${undefined === input.gpuComputeAvailable ? "" : `"gpuComputeAvailable":${undefined !== input.gpuComputeAvailable ? null !== input.gpuComputeAvailable ? input.gpuComputeAvailable : "null" : undefined},`}${undefined === input.gpuComputeReservation ? "" : `"gpuComputeReservation":${undefined !== input.gpuComputeReservation ? null !== input.gpuComputeReservation ? input.gpuComputeReservation : "null" : undefined},`}${undefined === input.gpuCompute ? "" : `"gpuCompute":${undefined !== input.gpuCompute ? null !== input.gpuCompute ? input.gpuCompute : "null" : undefined},`}${undefined === input.gpuComputeLimit ? "" : `"gpuComputeLimit":${undefined !== input.gpuComputeLimit ? null !== input.gpuComputeLimit ? input.gpuComputeLimit : "null" : undefined},`}${undefined === input.gpuComputeValue ? "" : `"gpuComputeValue":${undefined !== input.gpuComputeValue ? null !== input.gpuComputeValue ? input.gpuComputeValue : "null" : undefined},`}${undefined === input.gpuComputeTotal ? "" : `"gpuComputeTotal":${undefined !== input.gpuComputeTotal ? null !== input.gpuComputeTotal ? input.gpuComputeTotal : "null" : undefined},`}${undefined === input.gpuMemoryAvailable ? "" : `"gpuMemoryAvailable":${undefined !== input.gpuMemoryAvailable ? null !== input.gpuMemoryAvailable ? input.gpuMemoryAvailable : "null" : undefined},`}${undefined === input.gpuMemoryReservation ? "" : `"gpuMemoryReservation":${undefined !== input.gpuMemoryReservation ? null !== input.gpuMemoryReservation ? input.gpuMemoryReservation : "null" : undefined},`}${undefined === input.gpuMemory ? "" : `"gpuMemory":${undefined !== input.gpuMemory ? null !== input.gpuMemory ? input.gpuMemory : "null" : undefined},`}${undefined === input.gpuMemoryLimit ? "" : `"gpuMemoryLimit":${undefined !== input.gpuMemoryLimit ? null !== input.gpuMemoryLimit ? input.gpuMemoryLimit : "null" : undefined},`}${undefined === input.gpuMemoryValue ? "" : `"gpuMemoryValue":${undefined !== input.gpuMemoryValue ? null !== input.gpuMemoryValue ? input.gpuMemoryValue : "null" : undefined},`}${undefined === input.gpuMemoryTotal ? "" : `"gpuMemoryTotal":${undefined !== input.gpuMemoryTotal ? null !== input.gpuMemoryTotal ? input.gpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuQueueAvailable ? "" : `"gpuQueueAvailable":${undefined !== input.gpuQueueAvailable ? null !== input.gpuQueueAvailable ? input.gpuQueueAvailable : "null" : undefined},`}${undefined === input.gpuQueueReservation ? "" : `"gpuQueueReservation":${undefined !== input.gpuQueueReservation ? null !== input.gpuQueueReservation ? input.gpuQueueReservation : "null" : undefined},`}${undefined === input.gpuQueueLimit ? "" : `"gpuQueueLimit":${undefined !== input.gpuQueueLimit ? null !== input.gpuQueueLimit ? input.gpuQueueLimit : "null" : undefined},`}${undefined === input.gpuQueueValue ? "" : `"gpuQueueValue":${undefined !== input.gpuQueueValue ? null !== input.gpuQueueValue ? input.gpuQueueValue : "null" : undefined},`}${undefined === input.gpuQueueTotal ? "" : `"gpuQueueTotal":${undefined !== input.gpuQueueTotal ? null !== input.gpuQueueTotal ? input.gpuQueueTotal : "null" : undefined},`}${undefined === input.gpuEncoder ? "" : `"gpuEncoder":${undefined !== input.gpuEncoder ? null !== input.gpuEncoder ? input.gpuEncoder : "null" : undefined},`}${undefined === input.gpuEncoderLimit ? "" : `"gpuEncoderLimit":${undefined !== input.gpuEncoderLimit ? null !== input.gpuEncoderLimit ? input.gpuEncoderLimit : "null" : undefined},`}${undefined === input.gpuEncoderValue ? "" : `"gpuEncoderValue":${undefined !== input.gpuEncoderValue ? null !== input.gpuEncoderValue ? input.gpuEncoderValue : "null" : undefined},`}${undefined === input.gpuEncoderTotal ? "" : `"gpuEncoderTotal":${undefined !== input.gpuEncoderTotal ? null !== input.gpuEncoderTotal ? input.gpuEncoderTotal : "null" : undefined},`}${undefined === input.gpuDecoder ? "" : `"gpuDecoder":${undefined !== input.gpuDecoder ? null !== input.gpuDecoder ? input.gpuDecoder : "null" : undefined},`}${undefined === input.gpuDecoderLimit ? "" : `"gpuDecoderLimit":${undefined !== input.gpuDecoderLimit ? null !== input.gpuDecoderLimit ? input.gpuDecoderLimit : "null" : undefined},`}${undefined === input.gpuDecoderValue ? "" : `"gpuDecoderValue":${undefined !== input.gpuDecoderValue ? null !== input.gpuDecoderValue ? input.gpuDecoderValue : "null" : undefined},`}${undefined === input.gpuDecoderTotal ? "" : `"gpuDecoderTotal":${undefined !== input.gpuDecoderTotal ? null !== input.gpuDecoderTotal ? input.gpuDecoderTotal : "null" : undefined},`}${undefined === input.netAvailable ? "" : `"netAvailable":${undefined !== input.netAvailable ? null !== input.netAvailable ? input.netAvailable : "null" : undefined},`}${undefined === input.netTransferAvailable ? "" : `"netTransferAvailable":${undefined !== input.netTransferAvailable ? null !== input.netTransferAvailable ? input.netTransferAvailable : "null" : undefined},`}${undefined === input.netTransferReservation ? "" : `"netTransferReservation":${undefined !== input.netTransferReservation ? null !== input.netTransferReservation ? input.netTransferReservation : "null" : undefined},`}${undefined === input.netTransfer ? "" : `"netTransfer":${undefined !== input.netTransfer ? null !== input.netTransfer ? input.netTransfer : "null" : undefined},`}${undefined === input.netTransferLimit ? "" : `"netTransferLimit":${undefined !== input.netTransferLimit ? null !== input.netTransferLimit ? input.netTransferLimit : "null" : undefined},`}${undefined === input.netTransferValue ? "" : `"netTransferValue":${undefined !== input.netTransferValue ? null !== input.netTransferValue ? input.netTransferValue : "null" : undefined},`}${undefined === input.netTransferTotal ? "" : `"netTransferTotal":${undefined !== input.netTransferTotal ? null !== input.netTransferTotal ? input.netTransferTotal : "null" : undefined},`}${undefined === input.cpu ? "" : `"cpu":${undefined !== input.cpu ? null !== input.cpu ? input.cpu : "null" : undefined},`}${undefined === input.memory ? "" : `"memory":${undefined !== input.memory ? null !== input.memory ? input.memory : "null" : undefined},`}${undefined === input.gpuStat ? "" : `"gpuStat":${undefined !== input.gpuStat ? null !== input.gpuStat ? $so2(input.gpuStat) : "null" : undefined},`}${undefined === input.cpuStat ? "" : `"cpuStat":${undefined !== input.cpuStat ? null !== input.cpuStat ? $so3(input.cpuStat) : "null" : undefined},`}${undefined === input.netStat ? "" : `"netStat":${undefined !== input.netStat ? null !== input.netStat ? $so8(input.netStat) : "null" : undefined},`}${undefined === input.limits || "function" === typeof input.limits ? "" : `"limits":${undefined !== input.limits ? JSON.stringify(input.limits) : undefined},`}${undefined === input.taskset ? "" : `"taskset":${undefined !== input.taskset ? $string(input.taskset) : undefined},`}"activeCount":${null !== input.activeCount ? input.activeCount : "null"},"totalCount":${null !== input.totalCount ? input.totalCount : "null"}}`;
|
|
1416
1262
|
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1417
1263
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1418
1264
|
const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
@@ -1420,13 +1266,14 @@ export const stringifyRenderDomainStatsRecord = input => {
|
|
|
1420
1266
|
const $so3 = input => `{"cpu":${`{"idle":${input.cpu.idle},"total":${input.cpu.total}}`},"mem":${$so5(input.mem)}}`;
|
|
1421
1267
|
const $so5 = input => `{"used":${input.used},"total":${input.total},"arcstats":${$so6(input.arcstats)},"meminfo":${$so7(input.meminfo)}}`;
|
|
1422
1268
|
const $so6 = input => `{"size":${null !== input.size ? input.size : "null"}}`;
|
|
1423
|
-
const $so7 = input => `{
|
|
1269
|
+
const $so7 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1270
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1424
1271
|
const $so8 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.dev ? "" : `"dev":${undefined !== input.dev ? `{"used":${input.dev.used}}` : undefined},`}"used":${input.used}}`;
|
|
1425
1272
|
return $so0(input);
|
|
1426
1273
|
};
|
|
1427
1274
|
export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1428
1275
|
const __is = input => {
|
|
1429
|
-
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress && !Number.isNaN(input.progress)) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag && !Number.isNaN(input.lag)) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
1276
|
+
const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress && !Number.isNaN(input.progress)) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag && !Number.isNaN(input.lag)) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable && !Number.isNaN(input.cpuComputeAvailable)) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation && !Number.isNaN(input.cpuComputeReservation)) && (null === input.cpuCompute || undefined === input.cpuCompute || "number" === typeof input.cpuCompute && !Number.isNaN(input.cpuCompute)) && (null === input.cpuComputeLimit || undefined === input.cpuComputeLimit || "number" === typeof input.cpuComputeLimit && !Number.isNaN(input.cpuComputeLimit)) && (null === input.cpuComputeTotal || undefined === input.cpuComputeTotal || "number" === typeof input.cpuComputeTotal && !Number.isNaN(input.cpuComputeTotal)) && (null === input.cpuComputeValue || undefined === input.cpuComputeValue || "number" === typeof input.cpuComputeValue && !Number.isNaN(input.cpuComputeValue)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable && !Number.isNaN(input.cpuMemoryAvailable)) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation && !Number.isNaN(input.cpuMemoryReservation)) && (null === input.cpuMemory || undefined === input.cpuMemory || "number" === typeof input.cpuMemory && !Number.isNaN(input.cpuMemory)) && (null === input.cpuMemoryLimit || undefined === input.cpuMemoryLimit || "number" === typeof input.cpuMemoryLimit && !Number.isNaN(input.cpuMemoryLimit)) && (null === input.cpuMemoryValue || undefined === input.cpuMemoryValue || "number" === typeof input.cpuMemoryValue && !Number.isNaN(input.cpuMemoryValue)) && (null === input.cpuMemoryTotal || undefined === input.cpuMemoryTotal || "number" === typeof input.cpuMemoryTotal && !Number.isNaN(input.cpuMemoryTotal)) && (null === input.gpuType || undefined === input.gpuType || "string" === typeof input.gpuType) && (null === input.gpuAvailable || undefined === input.gpuAvailable || "boolean" === typeof input.gpuAvailable) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable && !Number.isNaN(input.gpuComputeAvailable)) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation && !Number.isNaN(input.gpuComputeReservation)) && (null === input.gpuCompute || undefined === input.gpuCompute || "number" === typeof input.gpuCompute && !Number.isNaN(input.gpuCompute)) && (null === input.gpuComputeLimit || undefined === input.gpuComputeLimit || "number" === typeof input.gpuComputeLimit && !Number.isNaN(input.gpuComputeLimit)) && (null === input.gpuComputeValue || undefined === input.gpuComputeValue || "number" === typeof input.gpuComputeValue && !Number.isNaN(input.gpuComputeValue)) && (null === input.gpuComputeTotal || undefined === input.gpuComputeTotal || "number" === typeof input.gpuComputeTotal && !Number.isNaN(input.gpuComputeTotal)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable && !Number.isNaN(input.gpuMemoryAvailable)) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation && !Number.isNaN(input.gpuMemoryReservation)) && (null === input.gpuMemory || undefined === input.gpuMemory || "number" === typeof input.gpuMemory && !Number.isNaN(input.gpuMemory)) && (null === input.gpuMemoryLimit || undefined === input.gpuMemoryLimit || "number" === typeof input.gpuMemoryLimit && !Number.isNaN(input.gpuMemoryLimit)) && (null === input.gpuMemoryValue || undefined === input.gpuMemoryValue || "number" === typeof input.gpuMemoryValue && !Number.isNaN(input.gpuMemoryValue)) && (null === input.gpuMemoryTotal || undefined === input.gpuMemoryTotal || "number" === typeof input.gpuMemoryTotal && !Number.isNaN(input.gpuMemoryTotal)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable && !Number.isNaN(input.gpuQueueAvailable)) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation && !Number.isNaN(input.gpuQueueReservation)) && (null === input.gpuQueueLimit || undefined === input.gpuQueueLimit || "number" === typeof input.gpuQueueLimit && !Number.isNaN(input.gpuQueueLimit)) && (null === input.gpuQueueValue || undefined === input.gpuQueueValue || "number" === typeof input.gpuQueueValue && !Number.isNaN(input.gpuQueueValue)) && (null === input.gpuQueueTotal || undefined === input.gpuQueueTotal || "number" === typeof input.gpuQueueTotal && !Number.isNaN(input.gpuQueueTotal)) && (null === input.gpuEncoder || undefined === input.gpuEncoder || "number" === typeof input.gpuEncoder && !Number.isNaN(input.gpuEncoder)) && (null === input.gpuEncoderLimit || undefined === input.gpuEncoderLimit || "number" === typeof input.gpuEncoderLimit && !Number.isNaN(input.gpuEncoderLimit)) && (null === input.gpuEncoderValue || undefined === input.gpuEncoderValue || "number" === typeof input.gpuEncoderValue && !Number.isNaN(input.gpuEncoderValue)) && (null === input.gpuEncoderTotal || undefined === input.gpuEncoderTotal || "number" === typeof input.gpuEncoderTotal && !Number.isNaN(input.gpuEncoderTotal)) && (null === input.gpuDecoder || undefined === input.gpuDecoder || "number" === typeof input.gpuDecoder && !Number.isNaN(input.gpuDecoder)) && (null === input.gpuDecoderLimit || undefined === input.gpuDecoderLimit || "number" === typeof input.gpuDecoderLimit && !Number.isNaN(input.gpuDecoderLimit)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue && !Number.isNaN(input.gpuDecoderValue)) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal && !Number.isNaN(input.gpuDecoderTotal)) && (null === input.netAvailable || undefined === input.netAvailable || "boolean" === typeof input.netAvailable) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable && !Number.isNaN(input.netTransferAvailable)) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation && !Number.isNaN(input.netTransferReservation)) && (null === input.netTransfer || undefined === input.netTransfer || "number" === typeof input.netTransfer && !Number.isNaN(input.netTransfer)) && (null === input.netTransferLimit || undefined === input.netTransferLimit || "number" === typeof input.netTransferLimit && !Number.isNaN(input.netTransferLimit)) && (null === input.netTransferValue || undefined === input.netTransferValue || "number" === typeof input.netTransferValue && !Number.isNaN(input.netTransferValue)) && (null === input.netTransferTotal || undefined === input.netTransferTotal || "number" === typeof input.netTransferTotal && !Number.isNaN(input.netTransferTotal)) && (null === input.cpu || undefined === input.cpu || "number" === typeof input.cpu && !Number.isNaN(input.cpu)) && (null === input.memory || undefined === input.memory || "number" === typeof input.memory && !Number.isNaN(input.memory)) && (null === input.activeCount || "number" === typeof input.activeCount && !Number.isNaN(input.activeCount)) && (null === input.totalCount || "number" === typeof input.totalCount && !Number.isNaN(input.totalCount)) && (null === input.gpuStat || undefined === input.gpuStat || "object" === typeof input.gpuStat && null !== input.gpuStat && false === Array.isArray(input.gpuStat) && $io2(input.gpuStat)) && (null === input.cpuStat || undefined === input.cpuStat || "object" === typeof input.cpuStat && null !== input.cpuStat && $io3(input.cpuStat)) && (null === input.netStat || undefined === input.netStat || "object" === typeof input.netStat && null !== input.netStat && $io8(input.netStat)) && true && (undefined === input.taskset || "string" === typeof input.taskset);
|
|
1430
1277
|
const $io1 = input => Object.keys(input).every(key => {
|
|
1431
1278
|
const value = input[key];
|
|
1432
1279
|
if (undefined === value)
|
|
@@ -1440,9 +1287,14 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1440
1287
|
return true;
|
|
1441
1288
|
});
|
|
1442
1289
|
const $io3 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && !Number.isNaN(input.cpu.idle) && ("number" === typeof input.cpu.total && !Number.isNaN(input.cpu.total))) && ("object" === typeof input.mem && null !== input.mem && $io5(input.mem));
|
|
1443
|
-
const $io5 = input => "number" === typeof input.used && !Number.isNaN(input.used) && ("number" === typeof input.total && !Number.isNaN(input.total)) && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io7(input.meminfo));
|
|
1290
|
+
const $io5 = input => "number" === typeof input.used && !Number.isNaN(input.used) && ("number" === typeof input.total && !Number.isNaN(input.total)) && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io7(input.meminfo));
|
|
1444
1291
|
const $io6 = input => null === input.size || "number" === typeof input.size && !Number.isNaN(input.size);
|
|
1445
|
-
const $io7 = input =>
|
|
1292
|
+
const $io7 = input => Object.keys(input).every(key => {
|
|
1293
|
+
const value = input[key];
|
|
1294
|
+
if (undefined === value)
|
|
1295
|
+
return true;
|
|
1296
|
+
return true;
|
|
1297
|
+
});
|
|
1446
1298
|
const $io8 = input => "number" === typeof input.used && !Number.isNaN(input.used) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && $io9(input.dev));
|
|
1447
1299
|
const $io9 = input => "number" === typeof input.used && !Number.isNaN(input.used);
|
|
1448
1300
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -1499,9 +1351,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1499
1351
|
path: _path + ".cpuAvailable",
|
|
1500
1352
|
expected: "(boolean | null | undefined)",
|
|
1501
1353
|
value: input.cpuAvailable
|
|
1502
|
-
}, errorFactory)) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "
|
|
1354
|
+
}, errorFactory)) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable && !Number.isNaN(input.cpuComputeAvailable) || $guard(_exceptionable, {
|
|
1503
1355
|
path: _path + ".cpuComputeAvailable",
|
|
1504
|
-
expected: "(
|
|
1356
|
+
expected: "(null | number | undefined)",
|
|
1505
1357
|
value: input.cpuComputeAvailable
|
|
1506
1358
|
}, errorFactory)) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation && !Number.isNaN(input.cpuComputeReservation) || $guard(_exceptionable, {
|
|
1507
1359
|
path: _path + ".cpuComputeReservation",
|
|
@@ -1523,9 +1375,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1523
1375
|
path: _path + ".cpuComputeValue",
|
|
1524
1376
|
expected: "(null | number | undefined)",
|
|
1525
1377
|
value: input.cpuComputeValue
|
|
1526
|
-
}, errorFactory)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "
|
|
1378
|
+
}, errorFactory)) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable && !Number.isNaN(input.cpuMemoryAvailable) || $guard(_exceptionable, {
|
|
1527
1379
|
path: _path + ".cpuMemoryAvailable",
|
|
1528
|
-
expected: "(
|
|
1380
|
+
expected: "(null | number | undefined)",
|
|
1529
1381
|
value: input.cpuMemoryAvailable
|
|
1530
1382
|
}, errorFactory)) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation && !Number.isNaN(input.cpuMemoryReservation) || $guard(_exceptionable, {
|
|
1531
1383
|
path: _path + ".cpuMemoryReservation",
|
|
@@ -1555,9 +1407,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1555
1407
|
path: _path + ".gpuAvailable",
|
|
1556
1408
|
expected: "(boolean | null | undefined)",
|
|
1557
1409
|
value: input.gpuAvailable
|
|
1558
|
-
}, errorFactory)) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "
|
|
1410
|
+
}, errorFactory)) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable && !Number.isNaN(input.gpuComputeAvailable) || $guard(_exceptionable, {
|
|
1559
1411
|
path: _path + ".gpuComputeAvailable",
|
|
1560
|
-
expected: "(
|
|
1412
|
+
expected: "(null | number | undefined)",
|
|
1561
1413
|
value: input.gpuComputeAvailable
|
|
1562
1414
|
}, errorFactory)) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation && !Number.isNaN(input.gpuComputeReservation) || $guard(_exceptionable, {
|
|
1563
1415
|
path: _path + ".gpuComputeReservation",
|
|
@@ -1579,9 +1431,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1579
1431
|
path: _path + ".gpuComputeTotal",
|
|
1580
1432
|
expected: "(null | number | undefined)",
|
|
1581
1433
|
value: input.gpuComputeTotal
|
|
1582
|
-
}, errorFactory)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "
|
|
1434
|
+
}, errorFactory)) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable && !Number.isNaN(input.gpuMemoryAvailable) || $guard(_exceptionable, {
|
|
1583
1435
|
path: _path + ".gpuMemoryAvailable",
|
|
1584
|
-
expected: "(
|
|
1436
|
+
expected: "(null | number | undefined)",
|
|
1585
1437
|
value: input.gpuMemoryAvailable
|
|
1586
1438
|
}, errorFactory)) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation && !Number.isNaN(input.gpuMemoryReservation) || $guard(_exceptionable, {
|
|
1587
1439
|
path: _path + ".gpuMemoryReservation",
|
|
@@ -1603,9 +1455,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1603
1455
|
path: _path + ".gpuMemoryTotal",
|
|
1604
1456
|
expected: "(null | number | undefined)",
|
|
1605
1457
|
value: input.gpuMemoryTotal
|
|
1606
|
-
}, errorFactory)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "
|
|
1458
|
+
}, errorFactory)) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable && !Number.isNaN(input.gpuQueueAvailable) || $guard(_exceptionable, {
|
|
1607
1459
|
path: _path + ".gpuQueueAvailable",
|
|
1608
|
-
expected: "(
|
|
1460
|
+
expected: "(null | number | undefined)",
|
|
1609
1461
|
value: input.gpuQueueAvailable
|
|
1610
1462
|
}, errorFactory)) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation && !Number.isNaN(input.gpuQueueReservation) || $guard(_exceptionable, {
|
|
1611
1463
|
path: _path + ".gpuQueueReservation",
|
|
@@ -1647,9 +1499,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1647
1499
|
path: _path + ".gpuDecoderLimit",
|
|
1648
1500
|
expected: "(null | number | undefined)",
|
|
1649
1501
|
value: input.gpuDecoderLimit
|
|
1650
|
-
}, errorFactory)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || $guard(_exceptionable, {
|
|
1502
|
+
}, errorFactory)) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue && !Number.isNaN(input.gpuDecoderValue) || $guard(_exceptionable, {
|
|
1651
1503
|
path: _path + ".gpuDecoderValue",
|
|
1652
|
-
expected: "(null | undefined)",
|
|
1504
|
+
expected: "(null | number | undefined)",
|
|
1653
1505
|
value: input.gpuDecoderValue
|
|
1654
1506
|
}, errorFactory)) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal && !Number.isNaN(input.gpuDecoderTotal) || $guard(_exceptionable, {
|
|
1655
1507
|
path: _path + ".gpuDecoderTotal",
|
|
@@ -1659,9 +1511,9 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1659
1511
|
path: _path + ".netAvailable",
|
|
1660
1512
|
expected: "(boolean | null | undefined)",
|
|
1661
1513
|
value: input.netAvailable
|
|
1662
|
-
}, errorFactory)) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "
|
|
1514
|
+
}, errorFactory)) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable && !Number.isNaN(input.netTransferAvailable) || $guard(_exceptionable, {
|
|
1663
1515
|
path: _path + ".netTransferAvailable",
|
|
1664
|
-
expected: "(
|
|
1516
|
+
expected: "(null | number | undefined)",
|
|
1665
1517
|
value: input.netTransferAvailable
|
|
1666
1518
|
}, errorFactory)) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation && !Number.isNaN(input.netTransferReservation) || $guard(_exceptionable, {
|
|
1667
1519
|
path: _path + ".netTransferReservation",
|
|
@@ -1723,6 +1575,10 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1723
1575
|
path: _path + ".netStat",
|
|
1724
1576
|
expected: "(RenderDomainNetStats | null | undefined)",
|
|
1725
1577
|
value: input.netStat
|
|
1578
|
+
}, errorFactory)) && true && (undefined === input.taskset || "string" === typeof input.taskset || $guard(_exceptionable, {
|
|
1579
|
+
path: _path + ".taskset",
|
|
1580
|
+
expected: "(string | undefined)",
|
|
1581
|
+
value: input.taskset
|
|
1726
1582
|
}, errorFactory));
|
|
1727
1583
|
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1728
1584
|
const value = input[key];
|
|
@@ -1778,7 +1634,7 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1778
1634
|
path: _path + ".arcstats",
|
|
1779
1635
|
expected: "__type.o2",
|
|
1780
1636
|
value: input.arcstats
|
|
1781
|
-
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo || $guard(_exceptionable, {
|
|
1637
|
+
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) || $guard(_exceptionable, {
|
|
1782
1638
|
path: _path + ".meminfo",
|
|
1783
1639
|
expected: "__type.o3",
|
|
1784
1640
|
value: input.meminfo
|
|
@@ -1792,75 +1648,12 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1792
1648
|
expected: "(null | number)",
|
|
1793
1649
|
value: input.size
|
|
1794
1650
|
}, errorFactory);
|
|
1795
|
-
const $ao7 = (input, _path, _exceptionable = true) =>
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
expected: "(null | number)",
|
|
1802
|
-
value: input.free
|
|
1803
|
-
}, errorFactory)) && (null === input.used || "number" === typeof input.used && !Number.isNaN(input.used) || $guard(_exceptionable, {
|
|
1804
|
-
path: _path + ".used",
|
|
1805
|
-
expected: "(null | number)",
|
|
1806
|
-
value: input.used
|
|
1807
|
-
}, errorFactory)) && (null === input.active || "number" === typeof input.active && !Number.isNaN(input.active) || $guard(_exceptionable, {
|
|
1808
|
-
path: _path + ".active",
|
|
1809
|
-
expected: "(null | number)",
|
|
1810
|
-
value: input.active
|
|
1811
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available && !Number.isNaN(input.available) || $guard(_exceptionable, {
|
|
1812
|
-
path: _path + ".available",
|
|
1813
|
-
expected: "(null | number)",
|
|
1814
|
-
value: input.available
|
|
1815
|
-
}, errorFactory)) && (null === input.buffers || "number" === typeof input.buffers && !Number.isNaN(input.buffers) || $guard(_exceptionable, {
|
|
1816
|
-
path: _path + ".buffers",
|
|
1817
|
-
expected: "(null | number)",
|
|
1818
|
-
value: input.buffers
|
|
1819
|
-
}, errorFactory)) && (null === input.cached || "number" === typeof input.cached && !Number.isNaN(input.cached) || $guard(_exceptionable, {
|
|
1820
|
-
path: _path + ".cached",
|
|
1821
|
-
expected: "(null | number)",
|
|
1822
|
-
value: input.cached
|
|
1823
|
-
}, errorFactory)) && (null === input.buffcache || "number" === typeof input.buffcache && !Number.isNaN(input.buffcache) || $guard(_exceptionable, {
|
|
1824
|
-
path: _path + ".buffcache",
|
|
1825
|
-
expected: "(null | number)",
|
|
1826
|
-
value: input.buffcache
|
|
1827
|
-
}, errorFactory)) && (null === input.reclaimable || "number" === typeof input.reclaimable && !Number.isNaN(input.reclaimable) || $guard(_exceptionable, {
|
|
1828
|
-
path: _path + ".reclaimable",
|
|
1829
|
-
expected: "(null | number)",
|
|
1830
|
-
value: input.reclaimable
|
|
1831
|
-
}, errorFactory)) && (null === input.swaptotal || "number" === typeof input.swaptotal && !Number.isNaN(input.swaptotal) || $guard(_exceptionable, {
|
|
1832
|
-
path: _path + ".swaptotal",
|
|
1833
|
-
expected: "(null | number)",
|
|
1834
|
-
value: input.swaptotal
|
|
1835
|
-
}, errorFactory)) && (null === input.swapused || "number" === typeof input.swapused && !Number.isNaN(input.swapused) || $guard(_exceptionable, {
|
|
1836
|
-
path: _path + ".swapused",
|
|
1837
|
-
expected: "(null | number)",
|
|
1838
|
-
value: input.swapused
|
|
1839
|
-
}, errorFactory)) && (null === input.swapfree || "number" === typeof input.swapfree && !Number.isNaN(input.swapfree) || $guard(_exceptionable, {
|
|
1840
|
-
path: _path + ".swapfree",
|
|
1841
|
-
expected: "(null | number)",
|
|
1842
|
-
value: input.swapfree
|
|
1843
|
-
}, errorFactory)) && (null === input.slab || "number" === typeof input.slab && !Number.isNaN(input.slab) || $guard(_exceptionable, {
|
|
1844
|
-
path: _path + ".slab",
|
|
1845
|
-
expected: "(null | number)",
|
|
1846
|
-
value: input.slab
|
|
1847
|
-
}, errorFactory)) && (null === input.sReclaimable || "number" === typeof input.sReclaimable && !Number.isNaN(input.sReclaimable) || $guard(_exceptionable, {
|
|
1848
|
-
path: _path + ".sReclaimable",
|
|
1849
|
-
expected: "(null | number)",
|
|
1850
|
-
value: input.sReclaimable
|
|
1851
|
-
}, errorFactory)) && (null === input.kernelStack || "number" === typeof input.kernelStack && !Number.isNaN(input.kernelStack) || $guard(_exceptionable, {
|
|
1852
|
-
path: _path + ".kernelStack",
|
|
1853
|
-
expected: "(null | number)",
|
|
1854
|
-
value: input.kernelStack
|
|
1855
|
-
}, errorFactory)) && (null === input.memTotal || "number" === typeof input.memTotal && !Number.isNaN(input.memTotal) || $guard(_exceptionable, {
|
|
1856
|
-
path: _path + ".memTotal",
|
|
1857
|
-
expected: "(null | number)",
|
|
1858
|
-
value: input.memTotal
|
|
1859
|
-
}, errorFactory)) && (null === input.memAvailable || "number" === typeof input.memAvailable && !Number.isNaN(input.memAvailable) || $guard(_exceptionable, {
|
|
1860
|
-
path: _path + ".memAvailable",
|
|
1861
|
-
expected: "(null | number)",
|
|
1862
|
-
value: input.memAvailable
|
|
1863
|
-
}, errorFactory));
|
|
1651
|
+
const $ao7 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1652
|
+
const value = input[key];
|
|
1653
|
+
if (undefined === value)
|
|
1654
|
+
return true;
|
|
1655
|
+
return true;
|
|
1656
|
+
});
|
|
1864
1657
|
const $ao8 = (input, _path, _exceptionable = true) => ("number" === typeof input.used && !Number.isNaN(input.used) || $guard(_exceptionable, {
|
|
1865
1658
|
path: _path + ".used",
|
|
1866
1659
|
expected: "number",
|
|
@@ -1909,9 +1702,14 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1909
1702
|
});
|
|
1910
1703
|
const $io3 = input => "object" === typeof input.cpu && null !== input.cpu && $io4(input.cpu) && ("object" === typeof input.mem && null !== input.mem && $io5(input.mem));
|
|
1911
1704
|
const $io4 = input => "number" === typeof input.idle && "number" === typeof input.total;
|
|
1912
|
-
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io7(input.meminfo));
|
|
1705
|
+
const $io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io7(input.meminfo));
|
|
1913
1706
|
const $io6 = input => null === input.size || "number" === typeof input.size;
|
|
1914
|
-
const $io7 = input =>
|
|
1707
|
+
const $io7 = input => Object.keys(input).every(key => {
|
|
1708
|
+
const value = input[key];
|
|
1709
|
+
if (undefined === value)
|
|
1710
|
+
return true;
|
|
1711
|
+
return true;
|
|
1712
|
+
});
|
|
1915
1713
|
const $io8 = input => "number" === typeof input.used && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && $io9(input.dev));
|
|
1916
1714
|
const $io9 = input => "number" === typeof input.used;
|
|
1917
1715
|
const $string = __typia.json.createAssertStringify.string;
|
|
@@ -1925,7 +1723,7 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1925
1723
|
expected: "(Array<string> | null | string | undefined)",
|
|
1926
1724
|
value: input.status
|
|
1927
1725
|
});
|
|
1928
|
-
})() : "null" : undefined},`}${undefined === input.lag ? "" : `"lag":${undefined !== input.lag ? null !== input.lag ? input.lag : "null" : undefined},`}${undefined === input.available ? "" : `"available":${undefined !== input.available ? null !== input.available ? input.available : "null" : undefined},`}${undefined === input.toobusy ? "" : `"toobusy":${undefined !== input.toobusy ? null !== input.toobusy ? input.toobusy : "null" : undefined},`}${undefined === input.cpuAvailable ? "" : `"cpuAvailable":${undefined !== input.cpuAvailable ? null !== input.cpuAvailable ? input.cpuAvailable : "null" : undefined},`}${undefined === input.cpuComputeAvailable ? "" : `"cpuComputeAvailable":${undefined !== input.cpuComputeAvailable ? null !== input.cpuComputeAvailable ? input.cpuComputeAvailable : "null" : undefined},`}${undefined === input.cpuComputeReservation ? "" : `"cpuComputeReservation":${undefined !== input.cpuComputeReservation ? null !== input.cpuComputeReservation ? input.cpuComputeReservation : "null" : undefined},`}${undefined === input.cpuCompute ? "" : `"cpuCompute":${undefined !== input.cpuCompute ? null !== input.cpuCompute ? input.cpuCompute : "null" : undefined},`}${undefined === input.cpuComputeLimit ? "" : `"cpuComputeLimit":${undefined !== input.cpuComputeLimit ? null !== input.cpuComputeLimit ? input.cpuComputeLimit : "null" : undefined},`}${undefined === input.cpuComputeTotal ? "" : `"cpuComputeTotal":${undefined !== input.cpuComputeTotal ? null !== input.cpuComputeTotal ? input.cpuComputeTotal : "null" : undefined},`}${undefined === input.cpuComputeValue ? "" : `"cpuComputeValue":${undefined !== input.cpuComputeValue ? null !== input.cpuComputeValue ? input.cpuComputeValue : "null" : undefined},`}${undefined === input.cpuMemoryAvailable ? "" : `"cpuMemoryAvailable":${undefined !== input.cpuMemoryAvailable ? null !== input.cpuMemoryAvailable ? input.cpuMemoryAvailable : "null" : undefined},`}${undefined === input.cpuMemoryReservation ? "" : `"cpuMemoryReservation":${undefined !== input.cpuMemoryReservation ? null !== input.cpuMemoryReservation ? input.cpuMemoryReservation : "null" : undefined},`}${undefined === input.cpuMemory ? "" : `"cpuMemory":${undefined !== input.cpuMemory ? null !== input.cpuMemory ? input.cpuMemory : "null" : undefined},`}${undefined === input.cpuMemoryLimit ? "" : `"cpuMemoryLimit":${undefined !== input.cpuMemoryLimit ? null !== input.cpuMemoryLimit ? input.cpuMemoryLimit : "null" : undefined},`}${undefined === input.cpuMemoryValue ? "" : `"cpuMemoryValue":${undefined !== input.cpuMemoryValue ? null !== input.cpuMemoryValue ? input.cpuMemoryValue : "null" : undefined},`}${undefined === input.cpuMemoryTotal ? "" : `"cpuMemoryTotal":${undefined !== input.cpuMemoryTotal ? null !== input.cpuMemoryTotal ? input.cpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuType ? "" : `"gpuType":${undefined !== input.gpuType ? null !== input.gpuType ? $string(input.gpuType) : "null" : undefined},`}${undefined === input.gpuAvailable ? "" : `"gpuAvailable":${undefined !== input.gpuAvailable ? null !== input.gpuAvailable ? input.gpuAvailable : "null" : undefined},`}${undefined === input.gpuComputeAvailable ? "" : `"gpuComputeAvailable":${undefined !== input.gpuComputeAvailable ? null !== input.gpuComputeAvailable ? input.gpuComputeAvailable : "null" : undefined},`}${undefined === input.gpuComputeReservation ? "" : `"gpuComputeReservation":${undefined !== input.gpuComputeReservation ? null !== input.gpuComputeReservation ? input.gpuComputeReservation : "null" : undefined},`}${undefined === input.gpuCompute ? "" : `"gpuCompute":${undefined !== input.gpuCompute ? null !== input.gpuCompute ? input.gpuCompute : "null" : undefined},`}${undefined === input.gpuComputeLimit ? "" : `"gpuComputeLimit":${undefined !== input.gpuComputeLimit ? null !== input.gpuComputeLimit ? input.gpuComputeLimit : "null" : undefined},`}${undefined === input.gpuComputeValue ? "" : `"gpuComputeValue":${undefined !== input.gpuComputeValue ? null !== input.gpuComputeValue ? input.gpuComputeValue : "null" : undefined},`}${undefined === input.gpuComputeTotal ? "" : `"gpuComputeTotal":${undefined !== input.gpuComputeTotal ? null !== input.gpuComputeTotal ? input.gpuComputeTotal : "null" : undefined},`}${undefined === input.gpuMemoryAvailable ? "" : `"gpuMemoryAvailable":${undefined !== input.gpuMemoryAvailable ? null !== input.gpuMemoryAvailable ? input.gpuMemoryAvailable : "null" : undefined},`}${undefined === input.gpuMemoryReservation ? "" : `"gpuMemoryReservation":${undefined !== input.gpuMemoryReservation ? null !== input.gpuMemoryReservation ? input.gpuMemoryReservation : "null" : undefined},`}${undefined === input.gpuMemory ? "" : `"gpuMemory":${undefined !== input.gpuMemory ? null !== input.gpuMemory ? input.gpuMemory : "null" : undefined},`}${undefined === input.gpuMemoryLimit ? "" : `"gpuMemoryLimit":${undefined !== input.gpuMemoryLimit ? null !== input.gpuMemoryLimit ? input.gpuMemoryLimit : "null" : undefined},`}${undefined === input.gpuMemoryValue ? "" : `"gpuMemoryValue":${undefined !== input.gpuMemoryValue ? null !== input.gpuMemoryValue ? input.gpuMemoryValue : "null" : undefined},`}${undefined === input.gpuMemoryTotal ? "" : `"gpuMemoryTotal":${undefined !== input.gpuMemoryTotal ? null !== input.gpuMemoryTotal ? input.gpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuQueueAvailable ? "" : `"gpuQueueAvailable":${undefined !== input.gpuQueueAvailable ? null !== input.gpuQueueAvailable ? input.gpuQueueAvailable : "null" : undefined},`}${undefined === input.gpuQueueReservation ? "" : `"gpuQueueReservation":${undefined !== input.gpuQueueReservation ? null !== input.gpuQueueReservation ? input.gpuQueueReservation : "null" : undefined},`}${undefined === input.gpuQueueLimit ? "" : `"gpuQueueLimit":${undefined !== input.gpuQueueLimit ? null !== input.gpuQueueLimit ? input.gpuQueueLimit : "null" : undefined},`}${undefined === input.gpuQueueValue ? "" : `"gpuQueueValue":${undefined !== input.gpuQueueValue ? null !== input.gpuQueueValue ? input.gpuQueueValue : "null" : undefined},`}${undefined === input.gpuQueueTotal ? "" : `"gpuQueueTotal":${undefined !== input.gpuQueueTotal ? null !== input.gpuQueueTotal ? input.gpuQueueTotal : "null" : undefined},`}${undefined === input.gpuEncoder ? "" : `"gpuEncoder":${undefined !== input.gpuEncoder ? null !== input.gpuEncoder ? input.gpuEncoder : "null" : undefined},`}${undefined === input.gpuEncoderLimit ? "" : `"gpuEncoderLimit":${undefined !== input.gpuEncoderLimit ? null !== input.gpuEncoderLimit ? input.gpuEncoderLimit : "null" : undefined},`}${undefined === input.gpuEncoderValue ? "" : `"gpuEncoderValue":${undefined !== input.gpuEncoderValue ? null !== input.gpuEncoderValue ? input.gpuEncoderValue : "null" : undefined},`}${undefined === input.gpuEncoderTotal ? "" : `"gpuEncoderTotal":${undefined !== input.gpuEncoderTotal ? null !== input.gpuEncoderTotal ? input.gpuEncoderTotal : "null" : undefined},`}${undefined === input.gpuDecoder ? "" : `"gpuDecoder":${undefined !== input.gpuDecoder ? null !== input.gpuDecoder ? input.gpuDecoder : "null" : undefined},`}${undefined === input.gpuDecoderLimit ? "" : `"gpuDecoderLimit":${undefined !== input.gpuDecoderLimit ? null !== input.gpuDecoderLimit ? input.gpuDecoderLimit : "null" : undefined},`}${undefined === input.gpuDecoderValue ? "" : `"gpuDecoderValue":${null === input.gpuDecoderValue ? "null" : undefined},`}${undefined === input.gpuDecoderTotal ? "" : `"gpuDecoderTotal":${undefined !== input.gpuDecoderTotal ? null !== input.gpuDecoderTotal ? input.gpuDecoderTotal : "null" : undefined},`}${undefined === input.netAvailable ? "" : `"netAvailable":${undefined !== input.netAvailable ? null !== input.netAvailable ? input.netAvailable : "null" : undefined},`}${undefined === input.netTransferAvailable ? "" : `"netTransferAvailable":${undefined !== input.netTransferAvailable ? null !== input.netTransferAvailable ? input.netTransferAvailable : "null" : undefined},`}${undefined === input.netTransferReservation ? "" : `"netTransferReservation":${undefined !== input.netTransferReservation ? null !== input.netTransferReservation ? input.netTransferReservation : "null" : undefined},`}${undefined === input.netTransfer ? "" : `"netTransfer":${undefined !== input.netTransfer ? null !== input.netTransfer ? input.netTransfer : "null" : undefined},`}${undefined === input.netTransferLimit ? "" : `"netTransferLimit":${undefined !== input.netTransferLimit ? null !== input.netTransferLimit ? input.netTransferLimit : "null" : undefined},`}${undefined === input.netTransferValue ? "" : `"netTransferValue":${undefined !== input.netTransferValue ? null !== input.netTransferValue ? input.netTransferValue : "null" : undefined},`}${undefined === input.netTransferTotal ? "" : `"netTransferTotal":${undefined !== input.netTransferTotal ? null !== input.netTransferTotal ? input.netTransferTotal : "null" : undefined},`}${undefined === input.cpu ? "" : `"cpu":${undefined !== input.cpu ? null !== input.cpu ? input.cpu : "null" : undefined},`}${undefined === input.memory ? "" : `"memory":${undefined !== input.memory ? null !== input.memory ? input.memory : "null" : undefined},`}${undefined === input.gpuStat ? "" : `"gpuStat":${undefined !== input.gpuStat ? null !== input.gpuStat ? $so2(input.gpuStat) : "null" : undefined},`}${undefined === input.cpuStat ? "" : `"cpuStat":${undefined !== input.cpuStat ? null !== input.cpuStat ? $so3(input.cpuStat) : "null" : undefined},`}${undefined === input.netStat ? "" : `"netStat":${undefined !== input.netStat ? null !== input.netStat ? $so8(input.netStat) : "null" : undefined},`}"activeCount":${null !== input.activeCount ? input.activeCount : "null"},"totalCount":${null !== input.totalCount ? input.totalCount : "null"}}`;
|
|
1726
|
+
})() : "null" : undefined},`}${undefined === input.lag ? "" : `"lag":${undefined !== input.lag ? null !== input.lag ? input.lag : "null" : undefined},`}${undefined === input.available ? "" : `"available":${undefined !== input.available ? null !== input.available ? input.available : "null" : undefined},`}${undefined === input.toobusy ? "" : `"toobusy":${undefined !== input.toobusy ? null !== input.toobusy ? input.toobusy : "null" : undefined},`}${undefined === input.cpuAvailable ? "" : `"cpuAvailable":${undefined !== input.cpuAvailable ? null !== input.cpuAvailable ? input.cpuAvailable : "null" : undefined},`}${undefined === input.cpuComputeAvailable ? "" : `"cpuComputeAvailable":${undefined !== input.cpuComputeAvailable ? null !== input.cpuComputeAvailable ? input.cpuComputeAvailable : "null" : undefined},`}${undefined === input.cpuComputeReservation ? "" : `"cpuComputeReservation":${undefined !== input.cpuComputeReservation ? null !== input.cpuComputeReservation ? input.cpuComputeReservation : "null" : undefined},`}${undefined === input.cpuCompute ? "" : `"cpuCompute":${undefined !== input.cpuCompute ? null !== input.cpuCompute ? input.cpuCompute : "null" : undefined},`}${undefined === input.cpuComputeLimit ? "" : `"cpuComputeLimit":${undefined !== input.cpuComputeLimit ? null !== input.cpuComputeLimit ? input.cpuComputeLimit : "null" : undefined},`}${undefined === input.cpuComputeTotal ? "" : `"cpuComputeTotal":${undefined !== input.cpuComputeTotal ? null !== input.cpuComputeTotal ? input.cpuComputeTotal : "null" : undefined},`}${undefined === input.cpuComputeValue ? "" : `"cpuComputeValue":${undefined !== input.cpuComputeValue ? null !== input.cpuComputeValue ? input.cpuComputeValue : "null" : undefined},`}${undefined === input.cpuMemoryAvailable ? "" : `"cpuMemoryAvailable":${undefined !== input.cpuMemoryAvailable ? null !== input.cpuMemoryAvailable ? input.cpuMemoryAvailable : "null" : undefined},`}${undefined === input.cpuMemoryReservation ? "" : `"cpuMemoryReservation":${undefined !== input.cpuMemoryReservation ? null !== input.cpuMemoryReservation ? input.cpuMemoryReservation : "null" : undefined},`}${undefined === input.cpuMemory ? "" : `"cpuMemory":${undefined !== input.cpuMemory ? null !== input.cpuMemory ? input.cpuMemory : "null" : undefined},`}${undefined === input.cpuMemoryLimit ? "" : `"cpuMemoryLimit":${undefined !== input.cpuMemoryLimit ? null !== input.cpuMemoryLimit ? input.cpuMemoryLimit : "null" : undefined},`}${undefined === input.cpuMemoryValue ? "" : `"cpuMemoryValue":${undefined !== input.cpuMemoryValue ? null !== input.cpuMemoryValue ? input.cpuMemoryValue : "null" : undefined},`}${undefined === input.cpuMemoryTotal ? "" : `"cpuMemoryTotal":${undefined !== input.cpuMemoryTotal ? null !== input.cpuMemoryTotal ? input.cpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuType ? "" : `"gpuType":${undefined !== input.gpuType ? null !== input.gpuType ? $string(input.gpuType) : "null" : undefined},`}${undefined === input.gpuAvailable ? "" : `"gpuAvailable":${undefined !== input.gpuAvailable ? null !== input.gpuAvailable ? input.gpuAvailable : "null" : undefined},`}${undefined === input.gpuComputeAvailable ? "" : `"gpuComputeAvailable":${undefined !== input.gpuComputeAvailable ? null !== input.gpuComputeAvailable ? input.gpuComputeAvailable : "null" : undefined},`}${undefined === input.gpuComputeReservation ? "" : `"gpuComputeReservation":${undefined !== input.gpuComputeReservation ? null !== input.gpuComputeReservation ? input.gpuComputeReservation : "null" : undefined},`}${undefined === input.gpuCompute ? "" : `"gpuCompute":${undefined !== input.gpuCompute ? null !== input.gpuCompute ? input.gpuCompute : "null" : undefined},`}${undefined === input.gpuComputeLimit ? "" : `"gpuComputeLimit":${undefined !== input.gpuComputeLimit ? null !== input.gpuComputeLimit ? input.gpuComputeLimit : "null" : undefined},`}${undefined === input.gpuComputeValue ? "" : `"gpuComputeValue":${undefined !== input.gpuComputeValue ? null !== input.gpuComputeValue ? input.gpuComputeValue : "null" : undefined},`}${undefined === input.gpuComputeTotal ? "" : `"gpuComputeTotal":${undefined !== input.gpuComputeTotal ? null !== input.gpuComputeTotal ? input.gpuComputeTotal : "null" : undefined},`}${undefined === input.gpuMemoryAvailable ? "" : `"gpuMemoryAvailable":${undefined !== input.gpuMemoryAvailable ? null !== input.gpuMemoryAvailable ? input.gpuMemoryAvailable : "null" : undefined},`}${undefined === input.gpuMemoryReservation ? "" : `"gpuMemoryReservation":${undefined !== input.gpuMemoryReservation ? null !== input.gpuMemoryReservation ? input.gpuMemoryReservation : "null" : undefined},`}${undefined === input.gpuMemory ? "" : `"gpuMemory":${undefined !== input.gpuMemory ? null !== input.gpuMemory ? input.gpuMemory : "null" : undefined},`}${undefined === input.gpuMemoryLimit ? "" : `"gpuMemoryLimit":${undefined !== input.gpuMemoryLimit ? null !== input.gpuMemoryLimit ? input.gpuMemoryLimit : "null" : undefined},`}${undefined === input.gpuMemoryValue ? "" : `"gpuMemoryValue":${undefined !== input.gpuMemoryValue ? null !== input.gpuMemoryValue ? input.gpuMemoryValue : "null" : undefined},`}${undefined === input.gpuMemoryTotal ? "" : `"gpuMemoryTotal":${undefined !== input.gpuMemoryTotal ? null !== input.gpuMemoryTotal ? input.gpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuQueueAvailable ? "" : `"gpuQueueAvailable":${undefined !== input.gpuQueueAvailable ? null !== input.gpuQueueAvailable ? input.gpuQueueAvailable : "null" : undefined},`}${undefined === input.gpuQueueReservation ? "" : `"gpuQueueReservation":${undefined !== input.gpuQueueReservation ? null !== input.gpuQueueReservation ? input.gpuQueueReservation : "null" : undefined},`}${undefined === input.gpuQueueLimit ? "" : `"gpuQueueLimit":${undefined !== input.gpuQueueLimit ? null !== input.gpuQueueLimit ? input.gpuQueueLimit : "null" : undefined},`}${undefined === input.gpuQueueValue ? "" : `"gpuQueueValue":${undefined !== input.gpuQueueValue ? null !== input.gpuQueueValue ? input.gpuQueueValue : "null" : undefined},`}${undefined === input.gpuQueueTotal ? "" : `"gpuQueueTotal":${undefined !== input.gpuQueueTotal ? null !== input.gpuQueueTotal ? input.gpuQueueTotal : "null" : undefined},`}${undefined === input.gpuEncoder ? "" : `"gpuEncoder":${undefined !== input.gpuEncoder ? null !== input.gpuEncoder ? input.gpuEncoder : "null" : undefined},`}${undefined === input.gpuEncoderLimit ? "" : `"gpuEncoderLimit":${undefined !== input.gpuEncoderLimit ? null !== input.gpuEncoderLimit ? input.gpuEncoderLimit : "null" : undefined},`}${undefined === input.gpuEncoderValue ? "" : `"gpuEncoderValue":${undefined !== input.gpuEncoderValue ? null !== input.gpuEncoderValue ? input.gpuEncoderValue : "null" : undefined},`}${undefined === input.gpuEncoderTotal ? "" : `"gpuEncoderTotal":${undefined !== input.gpuEncoderTotal ? null !== input.gpuEncoderTotal ? input.gpuEncoderTotal : "null" : undefined},`}${undefined === input.gpuDecoder ? "" : `"gpuDecoder":${undefined !== input.gpuDecoder ? null !== input.gpuDecoder ? input.gpuDecoder : "null" : undefined},`}${undefined === input.gpuDecoderLimit ? "" : `"gpuDecoderLimit":${undefined !== input.gpuDecoderLimit ? null !== input.gpuDecoderLimit ? input.gpuDecoderLimit : "null" : undefined},`}${undefined === input.gpuDecoderValue ? "" : `"gpuDecoderValue":${undefined !== input.gpuDecoderValue ? null !== input.gpuDecoderValue ? input.gpuDecoderValue : "null" : undefined},`}${undefined === input.gpuDecoderTotal ? "" : `"gpuDecoderTotal":${undefined !== input.gpuDecoderTotal ? null !== input.gpuDecoderTotal ? input.gpuDecoderTotal : "null" : undefined},`}${undefined === input.netAvailable ? "" : `"netAvailable":${undefined !== input.netAvailable ? null !== input.netAvailable ? input.netAvailable : "null" : undefined},`}${undefined === input.netTransferAvailable ? "" : `"netTransferAvailable":${undefined !== input.netTransferAvailable ? null !== input.netTransferAvailable ? input.netTransferAvailable : "null" : undefined},`}${undefined === input.netTransferReservation ? "" : `"netTransferReservation":${undefined !== input.netTransferReservation ? null !== input.netTransferReservation ? input.netTransferReservation : "null" : undefined},`}${undefined === input.netTransfer ? "" : `"netTransfer":${undefined !== input.netTransfer ? null !== input.netTransfer ? input.netTransfer : "null" : undefined},`}${undefined === input.netTransferLimit ? "" : `"netTransferLimit":${undefined !== input.netTransferLimit ? null !== input.netTransferLimit ? input.netTransferLimit : "null" : undefined},`}${undefined === input.netTransferValue ? "" : `"netTransferValue":${undefined !== input.netTransferValue ? null !== input.netTransferValue ? input.netTransferValue : "null" : undefined},`}${undefined === input.netTransferTotal ? "" : `"netTransferTotal":${undefined !== input.netTransferTotal ? null !== input.netTransferTotal ? input.netTransferTotal : "null" : undefined},`}${undefined === input.cpu ? "" : `"cpu":${undefined !== input.cpu ? null !== input.cpu ? input.cpu : "null" : undefined},`}${undefined === input.memory ? "" : `"memory":${undefined !== input.memory ? null !== input.memory ? input.memory : "null" : undefined},`}${undefined === input.gpuStat ? "" : `"gpuStat":${undefined !== input.gpuStat ? null !== input.gpuStat ? $so2(input.gpuStat) : "null" : undefined},`}${undefined === input.cpuStat ? "" : `"cpuStat":${undefined !== input.cpuStat ? null !== input.cpuStat ? $so3(input.cpuStat) : "null" : undefined},`}${undefined === input.netStat ? "" : `"netStat":${undefined !== input.netStat ? null !== input.netStat ? $so8(input.netStat) : "null" : undefined},`}${undefined === input.limits || "function" === typeof input.limits ? "" : `"limits":${undefined !== input.limits ? JSON.stringify(input.limits) : undefined},`}${undefined === input.taskset ? "" : `"taskset":${undefined !== input.taskset ? $string(input.taskset) : undefined},`}"activeCount":${null !== input.activeCount ? input.activeCount : "null"},"totalCount":${null !== input.totalCount ? input.totalCount : "null"}}`;
|
|
1929
1727
|
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1930
1728
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1931
1729
|
const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
@@ -1933,7 +1731,8 @@ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => {
|
|
|
1933
1731
|
const $so3 = input => `{"cpu":${`{"idle":${input.cpu.idle},"total":${input.cpu.total}}`},"mem":${$so5(input.mem)}}`;
|
|
1934
1732
|
const $so5 = input => `{"used":${input.used},"total":${input.total},"arcstats":${$so6(input.arcstats)},"meminfo":${$so7(input.meminfo)}}`;
|
|
1935
1733
|
const $so6 = input => `{"size":${null !== input.size ? input.size : "null"}}`;
|
|
1936
|
-
const $so7 = input => `{
|
|
1734
|
+
const $so7 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1735
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1937
1736
|
const $so8 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.dev ? "" : `"dev":${undefined !== input.dev ? `{"used":${input.dev.used}}` : undefined},`}"used":${input.used}}`;
|
|
1938
1737
|
return $so0(input);
|
|
1939
1738
|
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -2061,22 +1860,33 @@ export const assertStringifyRenderDomainGpuStats = (input, errorFactory) => { co
|
|
|
2061
1860
|
}; return stringify(assert(input, errorFactory)); };
|
|
2062
1861
|
export const isRenderDomainCpuStats = input => {
|
|
2063
1862
|
const $io0 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && "number" === typeof input.cpu.total) && ("object" === typeof input.mem && null !== input.mem && $io2(input.mem));
|
|
2064
|
-
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io4(input.meminfo));
|
|
1863
|
+
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io4(input.meminfo));
|
|
2065
1864
|
const $io3 = input => null === input.size || "number" === typeof input.size;
|
|
2066
|
-
const $io4 = input =>
|
|
1865
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
1866
|
+
const value = input[key];
|
|
1867
|
+
if (undefined === value)
|
|
1868
|
+
return true;
|
|
1869
|
+
return true;
|
|
1870
|
+
});
|
|
2067
1871
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2068
1872
|
};
|
|
2069
1873
|
export const assertRenderDomainCpuStats = (input, errorFactory) => {
|
|
2070
1874
|
const __is = input => {
|
|
2071
1875
|
const $io0 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && "number" === typeof input.cpu.total) && ("object" === typeof input.mem && null !== input.mem && $io2(input.mem));
|
|
2072
|
-
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io4(input.meminfo));
|
|
1876
|
+
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io4(input.meminfo));
|
|
2073
1877
|
const $io3 = input => null === input.size || "number" === typeof input.size;
|
|
2074
|
-
const $io4 = input =>
|
|
1878
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
1879
|
+
const value = input[key];
|
|
1880
|
+
if (undefined === value)
|
|
1881
|
+
return true;
|
|
1882
|
+
return true;
|
|
1883
|
+
});
|
|
2075
1884
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2076
1885
|
};
|
|
2077
1886
|
if (false === __is(input))
|
|
2078
1887
|
((input, _path, _exceptionable = true) => {
|
|
2079
1888
|
const $guard = __typia.createAssert.guard;
|
|
1889
|
+
const $join = __typia.createAssert.join;
|
|
2080
1890
|
const $ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.cpu && null !== input.cpu || $guard(_exceptionable, {
|
|
2081
1891
|
path: _path + ".cpu",
|
|
2082
1892
|
expected: "__type",
|
|
@@ -2119,7 +1929,7 @@ export const assertRenderDomainCpuStats = (input, errorFactory) => {
|
|
|
2119
1929
|
path: _path + ".arcstats",
|
|
2120
1930
|
expected: "__type.o2",
|
|
2121
1931
|
value: input.arcstats
|
|
2122
|
-
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo || $guard(_exceptionable, {
|
|
1932
|
+
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) || $guard(_exceptionable, {
|
|
2123
1933
|
path: _path + ".meminfo",
|
|
2124
1934
|
expected: "__type.o3",
|
|
2125
1935
|
value: input.meminfo
|
|
@@ -2133,75 +1943,12 @@ export const assertRenderDomainCpuStats = (input, errorFactory) => {
|
|
|
2133
1943
|
expected: "(null | number)",
|
|
2134
1944
|
value: input.size
|
|
2135
1945
|
}, errorFactory);
|
|
2136
|
-
const $ao4 = (input, _path, _exceptionable = true) =>
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
expected: "(null | number)",
|
|
2143
|
-
value: input.free
|
|
2144
|
-
}, errorFactory)) && (null === input.used || "number" === typeof input.used || $guard(_exceptionable, {
|
|
2145
|
-
path: _path + ".used",
|
|
2146
|
-
expected: "(null | number)",
|
|
2147
|
-
value: input.used
|
|
2148
|
-
}, errorFactory)) && (null === input.active || "number" === typeof input.active || $guard(_exceptionable, {
|
|
2149
|
-
path: _path + ".active",
|
|
2150
|
-
expected: "(null | number)",
|
|
2151
|
-
value: input.active
|
|
2152
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
|
|
2153
|
-
path: _path + ".available",
|
|
2154
|
-
expected: "(null | number)",
|
|
2155
|
-
value: input.available
|
|
2156
|
-
}, errorFactory)) && (null === input.buffers || "number" === typeof input.buffers || $guard(_exceptionable, {
|
|
2157
|
-
path: _path + ".buffers",
|
|
2158
|
-
expected: "(null | number)",
|
|
2159
|
-
value: input.buffers
|
|
2160
|
-
}, errorFactory)) && (null === input.cached || "number" === typeof input.cached || $guard(_exceptionable, {
|
|
2161
|
-
path: _path + ".cached",
|
|
2162
|
-
expected: "(null | number)",
|
|
2163
|
-
value: input.cached
|
|
2164
|
-
}, errorFactory)) && (null === input.buffcache || "number" === typeof input.buffcache || $guard(_exceptionable, {
|
|
2165
|
-
path: _path + ".buffcache",
|
|
2166
|
-
expected: "(null | number)",
|
|
2167
|
-
value: input.buffcache
|
|
2168
|
-
}, errorFactory)) && (null === input.reclaimable || "number" === typeof input.reclaimable || $guard(_exceptionable, {
|
|
2169
|
-
path: _path + ".reclaimable",
|
|
2170
|
-
expected: "(null | number)",
|
|
2171
|
-
value: input.reclaimable
|
|
2172
|
-
}, errorFactory)) && (null === input.swaptotal || "number" === typeof input.swaptotal || $guard(_exceptionable, {
|
|
2173
|
-
path: _path + ".swaptotal",
|
|
2174
|
-
expected: "(null | number)",
|
|
2175
|
-
value: input.swaptotal
|
|
2176
|
-
}, errorFactory)) && (null === input.swapused || "number" === typeof input.swapused || $guard(_exceptionable, {
|
|
2177
|
-
path: _path + ".swapused",
|
|
2178
|
-
expected: "(null | number)",
|
|
2179
|
-
value: input.swapused
|
|
2180
|
-
}, errorFactory)) && (null === input.swapfree || "number" === typeof input.swapfree || $guard(_exceptionable, {
|
|
2181
|
-
path: _path + ".swapfree",
|
|
2182
|
-
expected: "(null | number)",
|
|
2183
|
-
value: input.swapfree
|
|
2184
|
-
}, errorFactory)) && (null === input.slab || "number" === typeof input.slab || $guard(_exceptionable, {
|
|
2185
|
-
path: _path + ".slab",
|
|
2186
|
-
expected: "(null | number)",
|
|
2187
|
-
value: input.slab
|
|
2188
|
-
}, errorFactory)) && (null === input.sReclaimable || "number" === typeof input.sReclaimable || $guard(_exceptionable, {
|
|
2189
|
-
path: _path + ".sReclaimable",
|
|
2190
|
-
expected: "(null | number)",
|
|
2191
|
-
value: input.sReclaimable
|
|
2192
|
-
}, errorFactory)) && (null === input.kernelStack || "number" === typeof input.kernelStack || $guard(_exceptionable, {
|
|
2193
|
-
path: _path + ".kernelStack",
|
|
2194
|
-
expected: "(null | number)",
|
|
2195
|
-
value: input.kernelStack
|
|
2196
|
-
}, errorFactory)) && (null === input.memTotal || "number" === typeof input.memTotal || $guard(_exceptionable, {
|
|
2197
|
-
path: _path + ".memTotal",
|
|
2198
|
-
expected: "(null | number)",
|
|
2199
|
-
value: input.memTotal
|
|
2200
|
-
}, errorFactory)) && (null === input.memAvailable || "number" === typeof input.memAvailable || $guard(_exceptionable, {
|
|
2201
|
-
path: _path + ".memAvailable",
|
|
2202
|
-
expected: "(null | number)",
|
|
2203
|
-
value: input.memAvailable
|
|
2204
|
-
}, errorFactory));
|
|
1946
|
+
const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1947
|
+
const value = input[key];
|
|
1948
|
+
if (undefined === value)
|
|
1949
|
+
return true;
|
|
1950
|
+
return true;
|
|
1951
|
+
});
|
|
2205
1952
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
2206
1953
|
path: _path + "",
|
|
2207
1954
|
expected: "RenderDomainCpuStats",
|
|
@@ -2237,89 +1984,30 @@ export const randomRenderDomainCpuStats = generator => {
|
|
|
2237
1984
|
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2238
1985
|
])()
|
|
2239
1986
|
});
|
|
2240
|
-
const $ro4 = (_recursive = false, _depth = 0) =>
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
free: $pick([
|
|
2246
|
-
() => null,
|
|
2247
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2248
|
-
])(),
|
|
2249
|
-
used: $pick([
|
|
2250
|
-
() => null,
|
|
2251
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2252
|
-
])(),
|
|
2253
|
-
active: $pick([
|
|
2254
|
-
() => null,
|
|
2255
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2256
|
-
])(),
|
|
2257
|
-
available: $pick([
|
|
2258
|
-
() => null,
|
|
2259
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2260
|
-
])(),
|
|
2261
|
-
buffers: $pick([
|
|
2262
|
-
() => null,
|
|
2263
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2264
|
-
])(),
|
|
2265
|
-
cached: $pick([
|
|
2266
|
-
() => null,
|
|
2267
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2268
|
-
])(),
|
|
2269
|
-
buffcache: $pick([
|
|
2270
|
-
() => null,
|
|
2271
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2272
|
-
])(),
|
|
2273
|
-
reclaimable: $pick([
|
|
2274
|
-
() => null,
|
|
2275
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2276
|
-
])(),
|
|
2277
|
-
swaptotal: $pick([
|
|
2278
|
-
() => null,
|
|
2279
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2280
|
-
])(),
|
|
2281
|
-
swapused: $pick([
|
|
2282
|
-
() => null,
|
|
2283
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2284
|
-
])(),
|
|
2285
|
-
swapfree: $pick([
|
|
2286
|
-
() => null,
|
|
2287
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2288
|
-
])(),
|
|
2289
|
-
slab: $pick([
|
|
2290
|
-
() => null,
|
|
2291
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2292
|
-
])(),
|
|
2293
|
-
sReclaimable: $pick([
|
|
2294
|
-
() => null,
|
|
2295
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2296
|
-
])(),
|
|
2297
|
-
kernelStack: $pick([
|
|
2298
|
-
() => null,
|
|
2299
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2300
|
-
])(),
|
|
2301
|
-
memTotal: $pick([
|
|
2302
|
-
() => null,
|
|
2303
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2304
|
-
])(),
|
|
2305
|
-
memAvailable: $pick([
|
|
2306
|
-
() => null,
|
|
2307
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
2308
|
-
])()
|
|
2309
|
-
});
|
|
1987
|
+
const $ro4 = (_recursive = false, _depth = 0) => {
|
|
1988
|
+
const output = {};
|
|
1989
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
1990
|
+
return output;
|
|
1991
|
+
};
|
|
2310
1992
|
return $ro0();
|
|
2311
1993
|
};
|
|
2312
1994
|
export const assertGuardRenderDomainCpuStats = (input, errorFactory) => {
|
|
2313
1995
|
const __is = input => {
|
|
2314
1996
|
const $io0 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && "number" === typeof input.cpu.total) && ("object" === typeof input.mem && null !== input.mem && $io2(input.mem));
|
|
2315
|
-
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io4(input.meminfo));
|
|
1997
|
+
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io4(input.meminfo));
|
|
2316
1998
|
const $io3 = input => null === input.size || "number" === typeof input.size;
|
|
2317
|
-
const $io4 = input =>
|
|
1999
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
2000
|
+
const value = input[key];
|
|
2001
|
+
if (undefined === value)
|
|
2002
|
+
return true;
|
|
2003
|
+
return true;
|
|
2004
|
+
});
|
|
2318
2005
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2319
2006
|
};
|
|
2320
2007
|
if (false === __is(input))
|
|
2321
2008
|
((input, _path, _exceptionable = true) => {
|
|
2322
2009
|
const $guard = __typia.createAssertGuard.guard;
|
|
2010
|
+
const $join = __typia.createAssertGuard.join;
|
|
2323
2011
|
const $ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.cpu && null !== input.cpu || $guard(_exceptionable, {
|
|
2324
2012
|
path: _path + ".cpu",
|
|
2325
2013
|
expected: "__type",
|
|
@@ -2362,7 +2050,7 @@ export const assertGuardRenderDomainCpuStats = (input, errorFactory) => {
|
|
|
2362
2050
|
path: _path + ".arcstats",
|
|
2363
2051
|
expected: "__type.o2",
|
|
2364
2052
|
value: input.arcstats
|
|
2365
|
-
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo || $guard(_exceptionable, {
|
|
2053
|
+
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) || $guard(_exceptionable, {
|
|
2366
2054
|
path: _path + ".meminfo",
|
|
2367
2055
|
expected: "__type.o3",
|
|
2368
2056
|
value: input.meminfo
|
|
@@ -2376,75 +2064,12 @@ export const assertGuardRenderDomainCpuStats = (input, errorFactory) => {
|
|
|
2376
2064
|
expected: "(null | number)",
|
|
2377
2065
|
value: input.size
|
|
2378
2066
|
}, errorFactory);
|
|
2379
|
-
const $ao4 = (input, _path, _exceptionable = true) =>
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
expected: "(null | number)",
|
|
2386
|
-
value: input.free
|
|
2387
|
-
}, errorFactory)) && (null === input.used || "number" === typeof input.used || $guard(_exceptionable, {
|
|
2388
|
-
path: _path + ".used",
|
|
2389
|
-
expected: "(null | number)",
|
|
2390
|
-
value: input.used
|
|
2391
|
-
}, errorFactory)) && (null === input.active || "number" === typeof input.active || $guard(_exceptionable, {
|
|
2392
|
-
path: _path + ".active",
|
|
2393
|
-
expected: "(null | number)",
|
|
2394
|
-
value: input.active
|
|
2395
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
|
|
2396
|
-
path: _path + ".available",
|
|
2397
|
-
expected: "(null | number)",
|
|
2398
|
-
value: input.available
|
|
2399
|
-
}, errorFactory)) && (null === input.buffers || "number" === typeof input.buffers || $guard(_exceptionable, {
|
|
2400
|
-
path: _path + ".buffers",
|
|
2401
|
-
expected: "(null | number)",
|
|
2402
|
-
value: input.buffers
|
|
2403
|
-
}, errorFactory)) && (null === input.cached || "number" === typeof input.cached || $guard(_exceptionable, {
|
|
2404
|
-
path: _path + ".cached",
|
|
2405
|
-
expected: "(null | number)",
|
|
2406
|
-
value: input.cached
|
|
2407
|
-
}, errorFactory)) && (null === input.buffcache || "number" === typeof input.buffcache || $guard(_exceptionable, {
|
|
2408
|
-
path: _path + ".buffcache",
|
|
2409
|
-
expected: "(null | number)",
|
|
2410
|
-
value: input.buffcache
|
|
2411
|
-
}, errorFactory)) && (null === input.reclaimable || "number" === typeof input.reclaimable || $guard(_exceptionable, {
|
|
2412
|
-
path: _path + ".reclaimable",
|
|
2413
|
-
expected: "(null | number)",
|
|
2414
|
-
value: input.reclaimable
|
|
2415
|
-
}, errorFactory)) && (null === input.swaptotal || "number" === typeof input.swaptotal || $guard(_exceptionable, {
|
|
2416
|
-
path: _path + ".swaptotal",
|
|
2417
|
-
expected: "(null | number)",
|
|
2418
|
-
value: input.swaptotal
|
|
2419
|
-
}, errorFactory)) && (null === input.swapused || "number" === typeof input.swapused || $guard(_exceptionable, {
|
|
2420
|
-
path: _path + ".swapused",
|
|
2421
|
-
expected: "(null | number)",
|
|
2422
|
-
value: input.swapused
|
|
2423
|
-
}, errorFactory)) && (null === input.swapfree || "number" === typeof input.swapfree || $guard(_exceptionable, {
|
|
2424
|
-
path: _path + ".swapfree",
|
|
2425
|
-
expected: "(null | number)",
|
|
2426
|
-
value: input.swapfree
|
|
2427
|
-
}, errorFactory)) && (null === input.slab || "number" === typeof input.slab || $guard(_exceptionable, {
|
|
2428
|
-
path: _path + ".slab",
|
|
2429
|
-
expected: "(null | number)",
|
|
2430
|
-
value: input.slab
|
|
2431
|
-
}, errorFactory)) && (null === input.sReclaimable || "number" === typeof input.sReclaimable || $guard(_exceptionable, {
|
|
2432
|
-
path: _path + ".sReclaimable",
|
|
2433
|
-
expected: "(null | number)",
|
|
2434
|
-
value: input.sReclaimable
|
|
2435
|
-
}, errorFactory)) && (null === input.kernelStack || "number" === typeof input.kernelStack || $guard(_exceptionable, {
|
|
2436
|
-
path: _path + ".kernelStack",
|
|
2437
|
-
expected: "(null | number)",
|
|
2438
|
-
value: input.kernelStack
|
|
2439
|
-
}, errorFactory)) && (null === input.memTotal || "number" === typeof input.memTotal || $guard(_exceptionable, {
|
|
2440
|
-
path: _path + ".memTotal",
|
|
2441
|
-
expected: "(null | number)",
|
|
2442
|
-
value: input.memTotal
|
|
2443
|
-
}, errorFactory)) && (null === input.memAvailable || "number" === typeof input.memAvailable || $guard(_exceptionable, {
|
|
2444
|
-
path: _path + ".memAvailable",
|
|
2445
|
-
expected: "(null | number)",
|
|
2446
|
-
value: input.memAvailable
|
|
2447
|
-
}, errorFactory));
|
|
2067
|
+
const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2068
|
+
const value = input[key];
|
|
2069
|
+
if (undefined === value)
|
|
2070
|
+
return true;
|
|
2071
|
+
return true;
|
|
2072
|
+
});
|
|
2448
2073
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
2449
2074
|
path: _path + "",
|
|
2450
2075
|
expected: "RenderDomainCpuStats",
|
|
@@ -2458,26 +2083,38 @@ export const assertGuardRenderDomainCpuStats = (input, errorFactory) => {
|
|
|
2458
2083
|
};
|
|
2459
2084
|
export const stringifyRenderDomainCpuStats = input => {
|
|
2460
2085
|
const $io1 = input => "number" === typeof input.idle && "number" === typeof input.total;
|
|
2461
|
-
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io4(input.meminfo));
|
|
2086
|
+
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io4(input.meminfo));
|
|
2462
2087
|
const $io3 = input => null === input.size || "number" === typeof input.size;
|
|
2463
|
-
const $io4 = input =>
|
|
2088
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
2089
|
+
const value = input[key];
|
|
2090
|
+
if (undefined === value)
|
|
2091
|
+
return true;
|
|
2092
|
+
return true;
|
|
2093
|
+
});
|
|
2464
2094
|
const $so0 = input => `{"cpu":${`{"idle":${input.cpu.idle},"total":${input.cpu.total}}`},"mem":${$so2(input.mem)}}`;
|
|
2465
2095
|
const $so2 = input => `{"used":${input.used},"total":${input.total},"arcstats":${$so3(input.arcstats)},"meminfo":${$so4(input.meminfo)}}`;
|
|
2466
2096
|
const $so3 = input => `{"size":${null !== input.size ? input.size : "null"}}`;
|
|
2467
|
-
const $so4 = input => `{
|
|
2097
|
+
const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2098
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
2468
2099
|
return $so0(input);
|
|
2469
2100
|
};
|
|
2470
2101
|
export const assertStringifyRenderDomainCpuStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
2471
2102
|
const __is = input => {
|
|
2472
2103
|
const $io0 = input => "object" === typeof input.cpu && null !== input.cpu && ("number" === typeof input.cpu.idle && !Number.isNaN(input.cpu.idle) && ("number" === typeof input.cpu.total && !Number.isNaN(input.cpu.total))) && ("object" === typeof input.mem && null !== input.mem && $io2(input.mem));
|
|
2473
|
-
const $io2 = input => "number" === typeof input.used && !Number.isNaN(input.used) && ("number" === typeof input.total && !Number.isNaN(input.total)) && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io4(input.meminfo));
|
|
2104
|
+
const $io2 = input => "number" === typeof input.used && !Number.isNaN(input.used) && ("number" === typeof input.total && !Number.isNaN(input.total)) && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io4(input.meminfo));
|
|
2474
2105
|
const $io3 = input => null === input.size || "number" === typeof input.size && !Number.isNaN(input.size);
|
|
2475
|
-
const $io4 = input =>
|
|
2106
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
2107
|
+
const value = input[key];
|
|
2108
|
+
if (undefined === value)
|
|
2109
|
+
return true;
|
|
2110
|
+
return true;
|
|
2111
|
+
});
|
|
2476
2112
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2477
2113
|
};
|
|
2478
2114
|
if (false === __is(input))
|
|
2479
2115
|
((input, _path, _exceptionable = true) => {
|
|
2480
2116
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
2117
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
2481
2118
|
const $ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.cpu && null !== input.cpu || $guard(_exceptionable, {
|
|
2482
2119
|
path: _path + ".cpu",
|
|
2483
2120
|
expected: "__type",
|
|
@@ -2520,7 +2157,7 @@ export const assertStringifyRenderDomainCpuStats = (input, errorFactory) => { co
|
|
|
2520
2157
|
path: _path + ".arcstats",
|
|
2521
2158
|
expected: "__type.o2",
|
|
2522
2159
|
value: input.arcstats
|
|
2523
|
-
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo || $guard(_exceptionable, {
|
|
2160
|
+
}, errorFactory)) && (("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) || $guard(_exceptionable, {
|
|
2524
2161
|
path: _path + ".meminfo",
|
|
2525
2162
|
expected: "__type.o3",
|
|
2526
2163
|
value: input.meminfo
|
|
@@ -2534,75 +2171,12 @@ export const assertStringifyRenderDomainCpuStats = (input, errorFactory) => { co
|
|
|
2534
2171
|
expected: "(null | number)",
|
|
2535
2172
|
value: input.size
|
|
2536
2173
|
}, errorFactory);
|
|
2537
|
-
const $ao4 = (input, _path, _exceptionable = true) =>
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
expected: "(null | number)",
|
|
2544
|
-
value: input.free
|
|
2545
|
-
}, errorFactory)) && (null === input.used || "number" === typeof input.used && !Number.isNaN(input.used) || $guard(_exceptionable, {
|
|
2546
|
-
path: _path + ".used",
|
|
2547
|
-
expected: "(null | number)",
|
|
2548
|
-
value: input.used
|
|
2549
|
-
}, errorFactory)) && (null === input.active || "number" === typeof input.active && !Number.isNaN(input.active) || $guard(_exceptionable, {
|
|
2550
|
-
path: _path + ".active",
|
|
2551
|
-
expected: "(null | number)",
|
|
2552
|
-
value: input.active
|
|
2553
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available && !Number.isNaN(input.available) || $guard(_exceptionable, {
|
|
2554
|
-
path: _path + ".available",
|
|
2555
|
-
expected: "(null | number)",
|
|
2556
|
-
value: input.available
|
|
2557
|
-
}, errorFactory)) && (null === input.buffers || "number" === typeof input.buffers && !Number.isNaN(input.buffers) || $guard(_exceptionable, {
|
|
2558
|
-
path: _path + ".buffers",
|
|
2559
|
-
expected: "(null | number)",
|
|
2560
|
-
value: input.buffers
|
|
2561
|
-
}, errorFactory)) && (null === input.cached || "number" === typeof input.cached && !Number.isNaN(input.cached) || $guard(_exceptionable, {
|
|
2562
|
-
path: _path + ".cached",
|
|
2563
|
-
expected: "(null | number)",
|
|
2564
|
-
value: input.cached
|
|
2565
|
-
}, errorFactory)) && (null === input.buffcache || "number" === typeof input.buffcache && !Number.isNaN(input.buffcache) || $guard(_exceptionable, {
|
|
2566
|
-
path: _path + ".buffcache",
|
|
2567
|
-
expected: "(null | number)",
|
|
2568
|
-
value: input.buffcache
|
|
2569
|
-
}, errorFactory)) && (null === input.reclaimable || "number" === typeof input.reclaimable && !Number.isNaN(input.reclaimable) || $guard(_exceptionable, {
|
|
2570
|
-
path: _path + ".reclaimable",
|
|
2571
|
-
expected: "(null | number)",
|
|
2572
|
-
value: input.reclaimable
|
|
2573
|
-
}, errorFactory)) && (null === input.swaptotal || "number" === typeof input.swaptotal && !Number.isNaN(input.swaptotal) || $guard(_exceptionable, {
|
|
2574
|
-
path: _path + ".swaptotal",
|
|
2575
|
-
expected: "(null | number)",
|
|
2576
|
-
value: input.swaptotal
|
|
2577
|
-
}, errorFactory)) && (null === input.swapused || "number" === typeof input.swapused && !Number.isNaN(input.swapused) || $guard(_exceptionable, {
|
|
2578
|
-
path: _path + ".swapused",
|
|
2579
|
-
expected: "(null | number)",
|
|
2580
|
-
value: input.swapused
|
|
2581
|
-
}, errorFactory)) && (null === input.swapfree || "number" === typeof input.swapfree && !Number.isNaN(input.swapfree) || $guard(_exceptionable, {
|
|
2582
|
-
path: _path + ".swapfree",
|
|
2583
|
-
expected: "(null | number)",
|
|
2584
|
-
value: input.swapfree
|
|
2585
|
-
}, errorFactory)) && (null === input.slab || "number" === typeof input.slab && !Number.isNaN(input.slab) || $guard(_exceptionable, {
|
|
2586
|
-
path: _path + ".slab",
|
|
2587
|
-
expected: "(null | number)",
|
|
2588
|
-
value: input.slab
|
|
2589
|
-
}, errorFactory)) && (null === input.sReclaimable || "number" === typeof input.sReclaimable && !Number.isNaN(input.sReclaimable) || $guard(_exceptionable, {
|
|
2590
|
-
path: _path + ".sReclaimable",
|
|
2591
|
-
expected: "(null | number)",
|
|
2592
|
-
value: input.sReclaimable
|
|
2593
|
-
}, errorFactory)) && (null === input.kernelStack || "number" === typeof input.kernelStack && !Number.isNaN(input.kernelStack) || $guard(_exceptionable, {
|
|
2594
|
-
path: _path + ".kernelStack",
|
|
2595
|
-
expected: "(null | number)",
|
|
2596
|
-
value: input.kernelStack
|
|
2597
|
-
}, errorFactory)) && (null === input.memTotal || "number" === typeof input.memTotal && !Number.isNaN(input.memTotal) || $guard(_exceptionable, {
|
|
2598
|
-
path: _path + ".memTotal",
|
|
2599
|
-
expected: "(null | number)",
|
|
2600
|
-
value: input.memTotal
|
|
2601
|
-
}, errorFactory)) && (null === input.memAvailable || "number" === typeof input.memAvailable && !Number.isNaN(input.memAvailable) || $guard(_exceptionable, {
|
|
2602
|
-
path: _path + ".memAvailable",
|
|
2603
|
-
expected: "(null | number)",
|
|
2604
|
-
value: input.memAvailable
|
|
2605
|
-
}, errorFactory));
|
|
2174
|
+
const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2175
|
+
const value = input[key];
|
|
2176
|
+
if (undefined === value)
|
|
2177
|
+
return true;
|
|
2178
|
+
return true;
|
|
2179
|
+
});
|
|
2606
2180
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
2607
2181
|
path: _path + "",
|
|
2608
2182
|
expected: "RenderDomainCpuStats",
|
|
@@ -2616,13 +2190,19 @@ export const assertStringifyRenderDomainCpuStats = (input, errorFactory) => { co
|
|
|
2616
2190
|
return input;
|
|
2617
2191
|
}; const stringify = input => {
|
|
2618
2192
|
const $io1 = input => "number" === typeof input.idle && "number" === typeof input.total;
|
|
2619
|
-
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && $io4(input.meminfo));
|
|
2193
|
+
const $io2 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && $io3(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && $io4(input.meminfo));
|
|
2620
2194
|
const $io3 = input => null === input.size || "number" === typeof input.size;
|
|
2621
|
-
const $io4 = input =>
|
|
2195
|
+
const $io4 = input => Object.keys(input).every(key => {
|
|
2196
|
+
const value = input[key];
|
|
2197
|
+
if (undefined === value)
|
|
2198
|
+
return true;
|
|
2199
|
+
return true;
|
|
2200
|
+
});
|
|
2622
2201
|
const $so0 = input => `{"cpu":${`{"idle":${input.cpu.idle},"total":${input.cpu.total}}`},"mem":${$so2(input.mem)}}`;
|
|
2623
2202
|
const $so2 = input => `{"used":${input.used},"total":${input.total},"arcstats":${$so3(input.arcstats)},"meminfo":${$so4(input.meminfo)}}`;
|
|
2624
2203
|
const $so3 = input => `{"size":${null !== input.size ? input.size : "null"}}`;
|
|
2625
|
-
const $so4 = input => `{
|
|
2204
|
+
const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2205
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
2626
2206
|
return $so0(input);
|
|
2627
2207
|
}; return stringify(assert(input, errorFactory)); };
|
|
2628
2208
|
export const isRenderDomainNetStats = input => {
|
|
@@ -2790,8 +2370,8 @@ export const assertStringifyRenderDomainNetStats = (input, errorFactory) => { co
|
|
|
2790
2370
|
}; return stringify(assert(input, errorFactory)); };
|
|
2791
2371
|
export const isRenderDomainQueryRecord = input => {
|
|
2792
2372
|
const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
|
|
2793
|
-
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $
|
|
2794
|
-
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $
|
|
2373
|
+
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io11(input.profile));
|
|
2374
|
+
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io10(input.transcribe));
|
|
2795
2375
|
const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
2796
2376
|
const $io4 = input => Object.keys(input).every(key => {
|
|
2797
2377
|
const value = input[key];
|
|
@@ -2800,22 +2380,23 @@ export const isRenderDomainQueryRecord = input => {
|
|
|
2800
2380
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
2801
2381
|
});
|
|
2802
2382
|
const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
|
|
2803
|
-
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
2804
|
-
const $io7 = input => undefined === input.
|
|
2805
|
-
const $io8 = input =>
|
|
2806
|
-
const $io9 = input => (undefined === input.
|
|
2807
|
-
const $io10 = input =>
|
|
2808
|
-
const $io11 = input => "string" === typeof input.
|
|
2809
|
-
const $io12 = input => "string" === typeof input.
|
|
2810
|
-
const $io13 = input =>
|
|
2811
|
-
const $io14 = input =>
|
|
2383
|
+
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
|
|
2384
|
+
const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
|
|
2385
|
+
const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
|
|
2386
|
+
const $io9 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
2387
|
+
const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
2388
|
+
const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io15(input.subtitle)));
|
|
2389
|
+
const $io12 = input => "string" === typeof input.engine;
|
|
2390
|
+
const $io13 = input => "string" === typeof input.language;
|
|
2391
|
+
const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
2392
|
+
const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
|
|
2812
2393
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2813
2394
|
};
|
|
2814
2395
|
export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
2815
2396
|
const __is = input => {
|
|
2816
2397
|
const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
|
|
2817
|
-
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $
|
|
2818
|
-
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $
|
|
2398
|
+
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io11(input.profile));
|
|
2399
|
+
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io10(input.transcribe));
|
|
2819
2400
|
const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
2820
2401
|
const $io4 = input => Object.keys(input).every(key => {
|
|
2821
2402
|
const value = input[key];
|
|
@@ -2824,15 +2405,16 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
2824
2405
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
2825
2406
|
});
|
|
2826
2407
|
const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
|
|
2827
|
-
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
2828
|
-
const $io7 = input => undefined === input.
|
|
2829
|
-
const $io8 = input =>
|
|
2830
|
-
const $io9 = input => (undefined === input.
|
|
2831
|
-
const $io10 = input =>
|
|
2832
|
-
const $io11 = input => "string" === typeof input.
|
|
2833
|
-
const $io12 = input => "string" === typeof input.
|
|
2834
|
-
const $io13 = input =>
|
|
2835
|
-
const $io14 = input =>
|
|
2408
|
+
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
|
|
2409
|
+
const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
|
|
2410
|
+
const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
|
|
2411
|
+
const $io9 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
2412
|
+
const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
2413
|
+
const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io15(input.subtitle)));
|
|
2414
|
+
const $io12 = input => "string" === typeof input.engine;
|
|
2415
|
+
const $io13 = input => "string" === typeof input.language;
|
|
2416
|
+
const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
2417
|
+
const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
|
|
2836
2418
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2837
2419
|
};
|
|
2838
2420
|
if (false === __is(input))
|
|
@@ -2872,7 +2454,7 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
2872
2454
|
path: _path + ".profile",
|
|
2873
2455
|
expected: "RenderProfileObject",
|
|
2874
2456
|
value: input.profile
|
|
2875
|
-
}, errorFactory)) && $
|
|
2457
|
+
}, errorFactory)) && $ao11(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
|
|
2876
2458
|
path: _path + ".profile",
|
|
2877
2459
|
expected: "RenderProfileObject",
|
|
2878
2460
|
value: input.profile
|
|
@@ -2911,11 +2493,11 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
2911
2493
|
value: input.subtitleTracks
|
|
2912
2494
|
}, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
|
|
2913
2495
|
path: _path + ".video",
|
|
2914
|
-
expected: "(__type.
|
|
2496
|
+
expected: "(__type.o5 | undefined)",
|
|
2915
2497
|
value: input.video
|
|
2916
|
-
}, errorFactory)) && $
|
|
2498
|
+
}, errorFactory)) && $ao8(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
|
|
2917
2499
|
path: _path + ".video",
|
|
2918
|
-
expected: "(__type.
|
|
2500
|
+
expected: "(__type.o5 | undefined)",
|
|
2919
2501
|
value: input.video
|
|
2920
2502
|
}, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
|
|
2921
2503
|
path: _path + ".start",
|
|
@@ -2927,11 +2509,11 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
2927
2509
|
value: input.end
|
|
2928
2510
|
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
|
|
2929
2511
|
path: _path + ".transcribe",
|
|
2930
|
-
expected: "(__type.
|
|
2512
|
+
expected: "(__type.o7 | undefined)",
|
|
2931
2513
|
value: input.transcribe
|
|
2932
|
-
}, errorFactory)) && $
|
|
2514
|
+
}, errorFactory)) && $ao10(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
2933
2515
|
path: _path + ".transcribe",
|
|
2934
|
-
expected: "(__type.
|
|
2516
|
+
expected: "(__type.o7 | undefined)",
|
|
2935
2517
|
value: input.transcribe
|
|
2936
2518
|
}, errorFactory));
|
|
2937
2519
|
const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
|
|
@@ -3062,17 +2644,38 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3062
2644
|
path: _path + ".encoding",
|
|
3063
2645
|
expected: "(string | undefined)",
|
|
3064
2646
|
value: input.encoding
|
|
2647
|
+
}, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
|
|
2648
|
+
path: _path + ".previewSettings",
|
|
2649
|
+
expected: "(__type.o4 | undefined)",
|
|
2650
|
+
value: input.previewSettings
|
|
2651
|
+
}, errorFactory)) && $ao7(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
|
|
2652
|
+
path: _path + ".previewSettings",
|
|
2653
|
+
expected: "(__type.o4 | undefined)",
|
|
2654
|
+
value: input.previewSettings
|
|
2655
|
+
}, errorFactory));
|
|
2656
|
+
const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
|
|
2657
|
+
path: _path + ".aspectRatio",
|
|
2658
|
+
expected: "(string | undefined)",
|
|
2659
|
+
value: input.aspectRatio
|
|
2660
|
+
}, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
|
|
2661
|
+
path: _path + ".backgroundAssetId",
|
|
2662
|
+
expected: "(string | undefined)",
|
|
2663
|
+
value: input.backgroundAssetId
|
|
2664
|
+
}, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
|
|
2665
|
+
path: _path + ".text",
|
|
2666
|
+
expected: "(string | undefined)",
|
|
2667
|
+
value: input.text
|
|
3065
2668
|
}, errorFactory));
|
|
3066
|
-
const $
|
|
2669
|
+
const $ao8 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
|
|
3067
2670
|
path: _path + ".crop",
|
|
3068
|
-
expected: "(__type.
|
|
2671
|
+
expected: "(__type.o6 | undefined)",
|
|
3069
2672
|
value: input.crop
|
|
3070
|
-
}, errorFactory)) && $
|
|
2673
|
+
}, errorFactory)) && $ao9(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
|
|
3071
2674
|
path: _path + ".crop",
|
|
3072
|
-
expected: "(__type.
|
|
2675
|
+
expected: "(__type.o6 | undefined)",
|
|
3073
2676
|
value: input.crop
|
|
3074
2677
|
}, errorFactory);
|
|
3075
|
-
const $
|
|
2678
|
+
const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
|
|
3076
2679
|
path: _path + ".x",
|
|
3077
2680
|
expected: "(number | undefined)",
|
|
3078
2681
|
value: input.x
|
|
@@ -3089,7 +2692,7 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3089
2692
|
expected: "(number | undefined)",
|
|
3090
2693
|
value: input.height
|
|
3091
2694
|
}, errorFactory));
|
|
3092
|
-
const $
|
|
2695
|
+
const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
|
|
3093
2696
|
path: _path + ".language",
|
|
3094
2697
|
expected: "(string | undefined)",
|
|
3095
2698
|
value: input.language
|
|
@@ -3106,33 +2709,33 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3106
2709
|
expected: "(Array<number> | undefined)",
|
|
3107
2710
|
value: input.pan
|
|
3108
2711
|
}, errorFactory));
|
|
3109
|
-
const $
|
|
2712
|
+
const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
|
|
3110
2713
|
path: _path + ".format",
|
|
3111
2714
|
expected: "string",
|
|
3112
2715
|
value: input.format
|
|
3113
2716
|
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
|
|
3114
2717
|
path: _path + ".transcribe",
|
|
3115
|
-
expected: "(__type.
|
|
2718
|
+
expected: "(__type.o8 | undefined)",
|
|
3116
2719
|
value: input.transcribe
|
|
3117
|
-
}, errorFactory)) && $
|
|
2720
|
+
}, errorFactory)) && $ao12(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
3118
2721
|
path: _path + ".transcribe",
|
|
3119
|
-
expected: "(__type.
|
|
2722
|
+
expected: "(__type.o8 | undefined)",
|
|
3120
2723
|
value: input.transcribe
|
|
3121
2724
|
}, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
|
|
3122
2725
|
path: _path + ".translate",
|
|
3123
|
-
expected: "(__type.
|
|
2726
|
+
expected: "(__type.o9 | undefined)",
|
|
3124
2727
|
value: input.translate
|
|
3125
|
-
}, errorFactory)) && $
|
|
2728
|
+
}, errorFactory)) && $ao13(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
|
|
3126
2729
|
path: _path + ".translate",
|
|
3127
|
-
expected: "(__type.
|
|
2730
|
+
expected: "(__type.o9 | undefined)",
|
|
3128
2731
|
value: input.translate
|
|
3129
2732
|
}, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
|
|
3130
2733
|
path: _path + ".audio",
|
|
3131
|
-
expected: "(__type.
|
|
2734
|
+
expected: "(__type.o10 | undefined)",
|
|
3132
2735
|
value: input.audio
|
|
3133
|
-
}, errorFactory)) && $
|
|
2736
|
+
}, errorFactory)) && $ao14(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
|
|
3134
2737
|
path: _path + ".audio",
|
|
3135
|
-
expected: "(__type.
|
|
2738
|
+
expected: "(__type.o10 | undefined)",
|
|
3136
2739
|
value: input.audio
|
|
3137
2740
|
}, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
|
|
3138
2741
|
path: _path + ".pick",
|
|
@@ -3154,27 +2757,27 @@ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3154
2757
|
path: _path + ".subtitle",
|
|
3155
2758
|
expected: "(SubtitleProfile | string | undefined)",
|
|
3156
2759
|
value: input.subtitle
|
|
3157
|
-
}, errorFactory)) && $
|
|
2760
|
+
}, errorFactory)) && $ao15(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
|
|
3158
2761
|
path: _path + ".subtitle",
|
|
3159
2762
|
expected: "(SubtitleProfile | string | undefined)",
|
|
3160
2763
|
value: input.subtitle
|
|
3161
2764
|
}, errorFactory)));
|
|
3162
|
-
const $
|
|
2765
|
+
const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
|
|
3163
2766
|
path: _path + ".engine",
|
|
3164
2767
|
expected: "string",
|
|
3165
2768
|
value: input.engine
|
|
3166
2769
|
}, errorFactory);
|
|
3167
|
-
const $
|
|
2770
|
+
const $ao13 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
|
|
3168
2771
|
path: _path + ".language",
|
|
3169
2772
|
expected: "string",
|
|
3170
2773
|
value: input.language
|
|
3171
2774
|
}, errorFactory);
|
|
3172
|
-
const $
|
|
2775
|
+
const $ao14 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
|
|
3173
2776
|
path: _path + ".pan",
|
|
3174
2777
|
expected: "(string | undefined)",
|
|
3175
2778
|
value: input.pan
|
|
3176
2779
|
}, errorFactory);
|
|
3177
|
-
const $
|
|
2780
|
+
const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
|
|
3178
2781
|
path: _path + ".lang",
|
|
3179
2782
|
expected: "(string | undefined)",
|
|
3180
2783
|
value: input.lang
|
|
@@ -3209,7 +2812,7 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3209
2812
|
});
|
|
3210
2813
|
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
3211
2814
|
scene: $ro2(_recursive, _recursive ? 1 + _depth : _depth),
|
|
3212
|
-
profile: $
|
|
2815
|
+
profile: $ro11(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3213
2816
|
});
|
|
3214
2817
|
const $ro2 = (_recursive = false, _depth = 0) => ({
|
|
3215
2818
|
id: $pick([
|
|
@@ -3238,7 +2841,7 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3238
2841
|
])(),
|
|
3239
2842
|
video: $pick([
|
|
3240
2843
|
() => undefined,
|
|
3241
|
-
() => $
|
|
2844
|
+
() => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3242
2845
|
])(),
|
|
3243
2846
|
start: $pick([
|
|
3244
2847
|
() => undefined,
|
|
@@ -3250,7 +2853,7 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3250
2853
|
])(),
|
|
3251
2854
|
transcribe: $pick([
|
|
3252
2855
|
() => undefined,
|
|
3253
|
-
() => $
|
|
2856
|
+
() => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3254
2857
|
])()
|
|
3255
2858
|
});
|
|
3256
2859
|
const $ro3 = (_recursive = false, _depth = 0) => ({
|
|
@@ -3372,15 +2975,33 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3372
2975
|
encoding: $pick([
|
|
3373
2976
|
() => undefined,
|
|
3374
2977
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
2978
|
+
])(),
|
|
2979
|
+
previewSettings: $pick([
|
|
2980
|
+
() => undefined,
|
|
2981
|
+
() => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3375
2982
|
])()
|
|
3376
2983
|
});
|
|
3377
2984
|
const $ro7 = (_recursive = false, _depth = 0) => ({
|
|
3378
|
-
|
|
2985
|
+
aspectRatio: $pick([
|
|
3379
2986
|
() => undefined,
|
|
3380
|
-
() =>
|
|
2987
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
2988
|
+
])(),
|
|
2989
|
+
backgroundAssetId: $pick([
|
|
2990
|
+
() => undefined,
|
|
2991
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
2992
|
+
])(),
|
|
2993
|
+
text: $pick([
|
|
2994
|
+
() => undefined,
|
|
2995
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
3381
2996
|
])()
|
|
3382
2997
|
});
|
|
3383
2998
|
const $ro8 = (_recursive = false, _depth = 0) => ({
|
|
2999
|
+
crop: $pick([
|
|
3000
|
+
() => undefined,
|
|
3001
|
+
() => $ro9(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3002
|
+
])()
|
|
3003
|
+
});
|
|
3004
|
+
const $ro9 = (_recursive = false, _depth = 0) => ({
|
|
3384
3005
|
x: $pick([
|
|
3385
3006
|
() => undefined,
|
|
3386
3007
|
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
@@ -3398,7 +3019,7 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3398
3019
|
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
3399
3020
|
])()
|
|
3400
3021
|
});
|
|
3401
|
-
const $
|
|
3022
|
+
const $ro10 = (_recursive = false, _depth = 0) => ({
|
|
3402
3023
|
language: $pick([
|
|
3403
3024
|
() => undefined,
|
|
3404
3025
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
@@ -3408,19 +3029,19 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3408
3029
|
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
|
|
3409
3030
|
])()
|
|
3410
3031
|
});
|
|
3411
|
-
const $
|
|
3032
|
+
const $ro11 = (_recursive = false, _depth = 0) => ({
|
|
3412
3033
|
format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
3413
3034
|
transcribe: $pick([
|
|
3414
3035
|
() => undefined,
|
|
3415
|
-
() => $
|
|
3036
|
+
() => $ro12(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3416
3037
|
])(),
|
|
3417
3038
|
translate: $pick([
|
|
3418
3039
|
() => undefined,
|
|
3419
|
-
() => $
|
|
3040
|
+
() => $ro13(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3420
3041
|
])(),
|
|
3421
3042
|
audio: $pick([
|
|
3422
3043
|
() => undefined,
|
|
3423
|
-
() => $
|
|
3044
|
+
() => $ro14(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3424
3045
|
])(),
|
|
3425
3046
|
video: $pick([
|
|
3426
3047
|
() => "any type used...",
|
|
@@ -3433,22 +3054,22 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3433
3054
|
subtitle: $pick([
|
|
3434
3055
|
() => undefined,
|
|
3435
3056
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
3436
|
-
() => $
|
|
3057
|
+
() => $ro15(_recursive, _recursive ? 1 + _depth : _depth)
|
|
3437
3058
|
])()
|
|
3438
3059
|
});
|
|
3439
|
-
const $
|
|
3060
|
+
const $ro12 = (_recursive = false, _depth = 0) => ({
|
|
3440
3061
|
engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
3441
3062
|
});
|
|
3442
|
-
const $
|
|
3063
|
+
const $ro13 = (_recursive = false, _depth = 0) => ({
|
|
3443
3064
|
language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
3444
3065
|
});
|
|
3445
|
-
const $
|
|
3066
|
+
const $ro14 = (_recursive = false, _depth = 0) => ({
|
|
3446
3067
|
pan: $pick([
|
|
3447
3068
|
() => undefined,
|
|
3448
3069
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
3449
3070
|
])()
|
|
3450
3071
|
});
|
|
3451
|
-
const $
|
|
3072
|
+
const $ro15 = (_recursive = false, _depth = 0) => ({
|
|
3452
3073
|
lang: $pick([
|
|
3453
3074
|
() => undefined,
|
|
3454
3075
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
@@ -3463,8 +3084,8 @@ export const randomRenderDomainQueryRecord = generator => {
|
|
|
3463
3084
|
export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
3464
3085
|
const __is = input => {
|
|
3465
3086
|
const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
|
|
3466
|
-
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $
|
|
3467
|
-
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $
|
|
3087
|
+
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io11(input.profile));
|
|
3088
|
+
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io10(input.transcribe));
|
|
3468
3089
|
const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
3469
3090
|
const $io4 = input => Object.keys(input).every(key => {
|
|
3470
3091
|
const value = input[key];
|
|
@@ -3473,15 +3094,16 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3473
3094
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
3474
3095
|
});
|
|
3475
3096
|
const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
|
|
3476
|
-
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
3477
|
-
const $io7 = input => undefined === input.
|
|
3478
|
-
const $io8 = input =>
|
|
3479
|
-
const $io9 = input => (undefined === input.
|
|
3480
|
-
const $io10 = input =>
|
|
3481
|
-
const $io11 = input => "string" === typeof input.
|
|
3482
|
-
const $io12 = input => "string" === typeof input.
|
|
3483
|
-
const $io13 = input =>
|
|
3484
|
-
const $io14 = input =>
|
|
3097
|
+
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
|
|
3098
|
+
const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
|
|
3099
|
+
const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
|
|
3100
|
+
const $io9 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
3101
|
+
const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
3102
|
+
const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io15(input.subtitle)));
|
|
3103
|
+
const $io12 = input => "string" === typeof input.engine;
|
|
3104
|
+
const $io13 = input => "string" === typeof input.language;
|
|
3105
|
+
const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
3106
|
+
const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
|
|
3485
3107
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3486
3108
|
};
|
|
3487
3109
|
if (false === __is(input))
|
|
@@ -3521,7 +3143,7 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3521
3143
|
path: _path + ".profile",
|
|
3522
3144
|
expected: "RenderProfileObject",
|
|
3523
3145
|
value: input.profile
|
|
3524
|
-
}, errorFactory)) && $
|
|
3146
|
+
}, errorFactory)) && $ao11(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
|
|
3525
3147
|
path: _path + ".profile",
|
|
3526
3148
|
expected: "RenderProfileObject",
|
|
3527
3149
|
value: input.profile
|
|
@@ -3560,11 +3182,11 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3560
3182
|
value: input.subtitleTracks
|
|
3561
3183
|
}, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
|
|
3562
3184
|
path: _path + ".video",
|
|
3563
|
-
expected: "(__type.
|
|
3185
|
+
expected: "(__type.o5 | undefined)",
|
|
3564
3186
|
value: input.video
|
|
3565
|
-
}, errorFactory)) && $
|
|
3187
|
+
}, errorFactory)) && $ao8(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
|
|
3566
3188
|
path: _path + ".video",
|
|
3567
|
-
expected: "(__type.
|
|
3189
|
+
expected: "(__type.o5 | undefined)",
|
|
3568
3190
|
value: input.video
|
|
3569
3191
|
}, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
|
|
3570
3192
|
path: _path + ".start",
|
|
@@ -3576,11 +3198,11 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3576
3198
|
value: input.end
|
|
3577
3199
|
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
|
|
3578
3200
|
path: _path + ".transcribe",
|
|
3579
|
-
expected: "(__type.
|
|
3201
|
+
expected: "(__type.o7 | undefined)",
|
|
3580
3202
|
value: input.transcribe
|
|
3581
|
-
}, errorFactory)) && $
|
|
3203
|
+
}, errorFactory)) && $ao10(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
3582
3204
|
path: _path + ".transcribe",
|
|
3583
|
-
expected: "(__type.
|
|
3205
|
+
expected: "(__type.o7 | undefined)",
|
|
3584
3206
|
value: input.transcribe
|
|
3585
3207
|
}, errorFactory));
|
|
3586
3208
|
const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
|
|
@@ -3711,17 +3333,38 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3711
3333
|
path: _path + ".encoding",
|
|
3712
3334
|
expected: "(string | undefined)",
|
|
3713
3335
|
value: input.encoding
|
|
3336
|
+
}, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
|
|
3337
|
+
path: _path + ".previewSettings",
|
|
3338
|
+
expected: "(__type.o4 | undefined)",
|
|
3339
|
+
value: input.previewSettings
|
|
3340
|
+
}, errorFactory)) && $ao7(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
|
|
3341
|
+
path: _path + ".previewSettings",
|
|
3342
|
+
expected: "(__type.o4 | undefined)",
|
|
3343
|
+
value: input.previewSettings
|
|
3714
3344
|
}, errorFactory));
|
|
3715
|
-
const $ao7 = (input, _path, _exceptionable = true) => undefined === input.
|
|
3345
|
+
const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
|
|
3346
|
+
path: _path + ".aspectRatio",
|
|
3347
|
+
expected: "(string | undefined)",
|
|
3348
|
+
value: input.aspectRatio
|
|
3349
|
+
}, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
|
|
3350
|
+
path: _path + ".backgroundAssetId",
|
|
3351
|
+
expected: "(string | undefined)",
|
|
3352
|
+
value: input.backgroundAssetId
|
|
3353
|
+
}, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
|
|
3354
|
+
path: _path + ".text",
|
|
3355
|
+
expected: "(string | undefined)",
|
|
3356
|
+
value: input.text
|
|
3357
|
+
}, errorFactory));
|
|
3358
|
+
const $ao8 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
|
|
3716
3359
|
path: _path + ".crop",
|
|
3717
|
-
expected: "(__type.
|
|
3360
|
+
expected: "(__type.o6 | undefined)",
|
|
3718
3361
|
value: input.crop
|
|
3719
|
-
}, errorFactory)) && $
|
|
3362
|
+
}, errorFactory)) && $ao9(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
|
|
3720
3363
|
path: _path + ".crop",
|
|
3721
|
-
expected: "(__type.
|
|
3364
|
+
expected: "(__type.o6 | undefined)",
|
|
3722
3365
|
value: input.crop
|
|
3723
3366
|
}, errorFactory);
|
|
3724
|
-
const $
|
|
3367
|
+
const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
|
|
3725
3368
|
path: _path + ".x",
|
|
3726
3369
|
expected: "(number | undefined)",
|
|
3727
3370
|
value: input.x
|
|
@@ -3738,7 +3381,7 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3738
3381
|
expected: "(number | undefined)",
|
|
3739
3382
|
value: input.height
|
|
3740
3383
|
}, errorFactory));
|
|
3741
|
-
const $
|
|
3384
|
+
const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
|
|
3742
3385
|
path: _path + ".language",
|
|
3743
3386
|
expected: "(string | undefined)",
|
|
3744
3387
|
value: input.language
|
|
@@ -3755,33 +3398,33 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3755
3398
|
expected: "(Array<number> | undefined)",
|
|
3756
3399
|
value: input.pan
|
|
3757
3400
|
}, errorFactory));
|
|
3758
|
-
const $
|
|
3401
|
+
const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
|
|
3759
3402
|
path: _path + ".format",
|
|
3760
3403
|
expected: "string",
|
|
3761
3404
|
value: input.format
|
|
3762
3405
|
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
|
|
3763
3406
|
path: _path + ".transcribe",
|
|
3764
|
-
expected: "(__type.
|
|
3407
|
+
expected: "(__type.o8 | undefined)",
|
|
3765
3408
|
value: input.transcribe
|
|
3766
|
-
}, errorFactory)) && $
|
|
3409
|
+
}, errorFactory)) && $ao12(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
3767
3410
|
path: _path + ".transcribe",
|
|
3768
|
-
expected: "(__type.
|
|
3411
|
+
expected: "(__type.o8 | undefined)",
|
|
3769
3412
|
value: input.transcribe
|
|
3770
3413
|
}, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
|
|
3771
3414
|
path: _path + ".translate",
|
|
3772
|
-
expected: "(__type.
|
|
3415
|
+
expected: "(__type.o9 | undefined)",
|
|
3773
3416
|
value: input.translate
|
|
3774
|
-
}, errorFactory)) && $
|
|
3417
|
+
}, errorFactory)) && $ao13(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
|
|
3775
3418
|
path: _path + ".translate",
|
|
3776
|
-
expected: "(__type.
|
|
3419
|
+
expected: "(__type.o9 | undefined)",
|
|
3777
3420
|
value: input.translate
|
|
3778
3421
|
}, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
|
|
3779
3422
|
path: _path + ".audio",
|
|
3780
|
-
expected: "(__type.
|
|
3423
|
+
expected: "(__type.o10 | undefined)",
|
|
3781
3424
|
value: input.audio
|
|
3782
|
-
}, errorFactory)) && $
|
|
3425
|
+
}, errorFactory)) && $ao14(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
|
|
3783
3426
|
path: _path + ".audio",
|
|
3784
|
-
expected: "(__type.
|
|
3427
|
+
expected: "(__type.o10 | undefined)",
|
|
3785
3428
|
value: input.audio
|
|
3786
3429
|
}, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
|
|
3787
3430
|
path: _path + ".pick",
|
|
@@ -3803,27 +3446,27 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3803
3446
|
path: _path + ".subtitle",
|
|
3804
3447
|
expected: "(SubtitleProfile | string | undefined)",
|
|
3805
3448
|
value: input.subtitle
|
|
3806
|
-
}, errorFactory)) && $
|
|
3449
|
+
}, errorFactory)) && $ao15(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
|
|
3807
3450
|
path: _path + ".subtitle",
|
|
3808
3451
|
expected: "(SubtitleProfile | string | undefined)",
|
|
3809
3452
|
value: input.subtitle
|
|
3810
3453
|
}, errorFactory)));
|
|
3811
|
-
const $
|
|
3454
|
+
const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
|
|
3812
3455
|
path: _path + ".engine",
|
|
3813
3456
|
expected: "string",
|
|
3814
3457
|
value: input.engine
|
|
3815
3458
|
}, errorFactory);
|
|
3816
|
-
const $
|
|
3459
|
+
const $ao13 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
|
|
3817
3460
|
path: _path + ".language",
|
|
3818
3461
|
expected: "string",
|
|
3819
3462
|
value: input.language
|
|
3820
3463
|
}, errorFactory);
|
|
3821
|
-
const $
|
|
3464
|
+
const $ao14 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
|
|
3822
3465
|
path: _path + ".pan",
|
|
3823
3466
|
expected: "(string | undefined)",
|
|
3824
3467
|
value: input.pan
|
|
3825
3468
|
}, errorFactory);
|
|
3826
|
-
const $
|
|
3469
|
+
const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
|
|
3827
3470
|
path: _path + ".lang",
|
|
3828
3471
|
expected: "(string | undefined)",
|
|
3829
3472
|
value: input.lang
|
|
@@ -3844,8 +3487,8 @@ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3844
3487
|
})(input, "$input", true);
|
|
3845
3488
|
};
|
|
3846
3489
|
export const stringifyRenderDomainQueryRecord = input => {
|
|
3847
|
-
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $
|
|
3848
|
-
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $
|
|
3490
|
+
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io11(input.profile));
|
|
3491
|
+
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io10(input.transcribe));
|
|
3849
3492
|
const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
3850
3493
|
const $io4 = input => Object.keys(input).every(key => {
|
|
3851
3494
|
const value = input[key];
|
|
@@ -3854,48 +3497,50 @@ export const stringifyRenderDomainQueryRecord = input => {
|
|
|
3854
3497
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
3855
3498
|
});
|
|
3856
3499
|
const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
|
|
3857
|
-
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
3858
|
-
const $io7 = input => undefined === input.
|
|
3859
|
-
const $io8 = input =>
|
|
3860
|
-
const $io9 = input => (undefined === input.
|
|
3861
|
-
const $io10 = input =>
|
|
3862
|
-
const $io11 = input => "string" === typeof input.
|
|
3863
|
-
const $io12 = input => "string" === typeof input.
|
|
3864
|
-
const $io13 = input =>
|
|
3865
|
-
const $io14 = input =>
|
|
3500
|
+
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
|
|
3501
|
+
const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
|
|
3502
|
+
const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
|
|
3503
|
+
const $io9 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
3504
|
+
const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
3505
|
+
const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io15(input.subtitle)));
|
|
3506
|
+
const $io12 = input => "string" === typeof input.engine;
|
|
3507
|
+
const $io13 = input => "string" === typeof input.language;
|
|
3508
|
+
const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
3509
|
+
const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
|
|
3866
3510
|
const $string = __typia.json.createStringify.string;
|
|
3867
3511
|
const $tail = __typia.json.createStringify.tail;
|
|
3868
3512
|
const $throws = __typia.json.createStringify.throws;
|
|
3869
3513
|
const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)},"description":${$so1(input.description)}}`;
|
|
3870
|
-
const $so1 = input => `{"scene":${$so2(input.scene)},"profile":${$
|
|
3871
|
-
const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $
|
|
3514
|
+
const $so1 = input => `{"scene":${$so2(input.scene)},"profile":${$so11(input.profile)}}`;
|
|
3515
|
+
const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so8(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so10(input.transcribe) : undefined}`}`)}}`;
|
|
3872
3516
|
const $so3 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
|
|
3873
3517
|
const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3874
3518
|
return ""; return `${JSON.stringify(key)}:${$so5(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
3875
3519
|
const $so5 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so6(input.styleOverrides) : undefined}`}`)}}`;
|
|
3876
|
-
const $so6 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
|
|
3877
|
-
const $so7 = input => `{${$tail(`${undefined === input.
|
|
3878
|
-
const $so8 = input => `{${$tail(`${undefined === input.
|
|
3879
|
-
const $so9 = input => `{${$tail(`${undefined === input.
|
|
3880
|
-
const $so10 = input => `{${
|
|
3520
|
+
const $so6 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so7(input.previewSettings) : undefined}`}`)}}`;
|
|
3521
|
+
const $so7 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
|
|
3522
|
+
const $so8 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so9(input.crop) : undefined}`}`)}}`;
|
|
3523
|
+
const $so9 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
|
|
3524
|
+
const $so10 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
|
|
3525
|
+
const $so11 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so14(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
|
|
3881
3526
|
if ("string" === typeof input.subtitle)
|
|
3882
3527
|
return $string(input.subtitle);
|
|
3883
3528
|
if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
|
|
3884
|
-
return $
|
|
3529
|
+
return $so15(input.subtitle);
|
|
3885
3530
|
$throws({
|
|
3886
3531
|
expected: "(SubtitleProfile | string | undefined)",
|
|
3887
3532
|
value: input.subtitle
|
|
3888
3533
|
});
|
|
3889
3534
|
})() : undefined},`}"format":${$string(input.format)}}`;
|
|
3890
|
-
const $
|
|
3891
|
-
const $
|
|
3535
|
+
const $so14 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
|
|
3536
|
+
const $so15 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
|
|
3892
3537
|
return $so0(input);
|
|
3893
3538
|
};
|
|
3894
3539
|
export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
3895
3540
|
const __is = input => {
|
|
3896
3541
|
const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
|
|
3897
|
-
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $
|
|
3898
|
-
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $
|
|
3542
|
+
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io11(input.profile));
|
|
3543
|
+
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io10(input.transcribe));
|
|
3899
3544
|
const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
3900
3545
|
const $io4 = input => Object.keys(input).every(key => {
|
|
3901
3546
|
const value = input[key];
|
|
@@ -3904,15 +3549,16 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3904
3549
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
3905
3550
|
});
|
|
3906
3551
|
const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
|
|
3907
|
-
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
3908
|
-
const $io7 = input => undefined === input.
|
|
3909
|
-
const $io8 = input =>
|
|
3910
|
-
const $io9 = input => (undefined === input.
|
|
3911
|
-
const $io10 = input =>
|
|
3912
|
-
const $io11 = input => "string" === typeof input.
|
|
3913
|
-
const $io12 = input => "string" === typeof input.
|
|
3914
|
-
const $io13 = input =>
|
|
3915
|
-
const $io14 = input =>
|
|
3552
|
+
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
|
|
3553
|
+
const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
|
|
3554
|
+
const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
|
|
3555
|
+
const $io9 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
|
|
3556
|
+
const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
|
|
3557
|
+
const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io15(input.subtitle)));
|
|
3558
|
+
const $io12 = input => "string" === typeof input.engine;
|
|
3559
|
+
const $io13 = input => "string" === typeof input.language;
|
|
3560
|
+
const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
3561
|
+
const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
|
|
3916
3562
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3917
3563
|
};
|
|
3918
3564
|
if (false === __is(input))
|
|
@@ -3952,7 +3598,7 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3952
3598
|
path: _path + ".profile",
|
|
3953
3599
|
expected: "RenderProfileObject",
|
|
3954
3600
|
value: input.profile
|
|
3955
|
-
}, errorFactory)) && $
|
|
3601
|
+
}, errorFactory)) && $ao11(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
|
|
3956
3602
|
path: _path + ".profile",
|
|
3957
3603
|
expected: "RenderProfileObject",
|
|
3958
3604
|
value: input.profile
|
|
@@ -3991,11 +3637,11 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
3991
3637
|
value: input.subtitleTracks
|
|
3992
3638
|
}, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
|
|
3993
3639
|
path: _path + ".video",
|
|
3994
|
-
expected: "(__type.
|
|
3640
|
+
expected: "(__type.o5 | undefined)",
|
|
3995
3641
|
value: input.video
|
|
3996
|
-
}, errorFactory)) && $
|
|
3642
|
+
}, errorFactory)) && $ao8(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
|
|
3997
3643
|
path: _path + ".video",
|
|
3998
|
-
expected: "(__type.
|
|
3644
|
+
expected: "(__type.o5 | undefined)",
|
|
3999
3645
|
value: input.video
|
|
4000
3646
|
}, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
|
|
4001
3647
|
path: _path + ".start",
|
|
@@ -4007,11 +3653,11 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4007
3653
|
value: input.end
|
|
4008
3654
|
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
|
|
4009
3655
|
path: _path + ".transcribe",
|
|
4010
|
-
expected: "(__type.
|
|
3656
|
+
expected: "(__type.o7 | undefined)",
|
|
4011
3657
|
value: input.transcribe
|
|
4012
|
-
}, errorFactory)) && $
|
|
3658
|
+
}, errorFactory)) && $ao10(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
4013
3659
|
path: _path + ".transcribe",
|
|
4014
|
-
expected: "(__type.
|
|
3660
|
+
expected: "(__type.o7 | undefined)",
|
|
4015
3661
|
value: input.transcribe
|
|
4016
3662
|
}, errorFactory));
|
|
4017
3663
|
const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
|
|
@@ -4142,17 +3788,38 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4142
3788
|
path: _path + ".encoding",
|
|
4143
3789
|
expected: "(string | undefined)",
|
|
4144
3790
|
value: input.encoding
|
|
3791
|
+
}, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
|
|
3792
|
+
path: _path + ".previewSettings",
|
|
3793
|
+
expected: "(__type.o4 | undefined)",
|
|
3794
|
+
value: input.previewSettings
|
|
3795
|
+
}, errorFactory)) && $ao7(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
|
|
3796
|
+
path: _path + ".previewSettings",
|
|
3797
|
+
expected: "(__type.o4 | undefined)",
|
|
3798
|
+
value: input.previewSettings
|
|
4145
3799
|
}, errorFactory));
|
|
4146
|
-
const $ao7 = (input, _path, _exceptionable = true) => undefined === input.
|
|
3800
|
+
const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
|
|
3801
|
+
path: _path + ".aspectRatio",
|
|
3802
|
+
expected: "(string | undefined)",
|
|
3803
|
+
value: input.aspectRatio
|
|
3804
|
+
}, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
|
|
3805
|
+
path: _path + ".backgroundAssetId",
|
|
3806
|
+
expected: "(string | undefined)",
|
|
3807
|
+
value: input.backgroundAssetId
|
|
3808
|
+
}, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
|
|
3809
|
+
path: _path + ".text",
|
|
3810
|
+
expected: "(string | undefined)",
|
|
3811
|
+
value: input.text
|
|
3812
|
+
}, errorFactory));
|
|
3813
|
+
const $ao8 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
|
|
4147
3814
|
path: _path + ".crop",
|
|
4148
|
-
expected: "(__type.
|
|
3815
|
+
expected: "(__type.o6 | undefined)",
|
|
4149
3816
|
value: input.crop
|
|
4150
|
-
}, errorFactory)) && $
|
|
3817
|
+
}, errorFactory)) && $ao9(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
|
|
4151
3818
|
path: _path + ".crop",
|
|
4152
|
-
expected: "(__type.
|
|
3819
|
+
expected: "(__type.o6 | undefined)",
|
|
4153
3820
|
value: input.crop
|
|
4154
3821
|
}, errorFactory);
|
|
4155
|
-
const $
|
|
3822
|
+
const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
|
|
4156
3823
|
path: _path + ".x",
|
|
4157
3824
|
expected: "(number | undefined)",
|
|
4158
3825
|
value: input.x
|
|
@@ -4169,7 +3836,7 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4169
3836
|
expected: "(number | undefined)",
|
|
4170
3837
|
value: input.height
|
|
4171
3838
|
}, errorFactory));
|
|
4172
|
-
const $
|
|
3839
|
+
const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
|
|
4173
3840
|
path: _path + ".language",
|
|
4174
3841
|
expected: "(string | undefined)",
|
|
4175
3842
|
value: input.language
|
|
@@ -4186,33 +3853,33 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4186
3853
|
expected: "(Array<number> | undefined)",
|
|
4187
3854
|
value: input.pan
|
|
4188
3855
|
}, errorFactory));
|
|
4189
|
-
const $
|
|
3856
|
+
const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
|
|
4190
3857
|
path: _path + ".format",
|
|
4191
3858
|
expected: "string",
|
|
4192
3859
|
value: input.format
|
|
4193
3860
|
}, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
|
|
4194
3861
|
path: _path + ".transcribe",
|
|
4195
|
-
expected: "(__type.
|
|
3862
|
+
expected: "(__type.o8 | undefined)",
|
|
4196
3863
|
value: input.transcribe
|
|
4197
|
-
}, errorFactory)) && $
|
|
3864
|
+
}, errorFactory)) && $ao12(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
|
|
4198
3865
|
path: _path + ".transcribe",
|
|
4199
|
-
expected: "(__type.
|
|
3866
|
+
expected: "(__type.o8 | undefined)",
|
|
4200
3867
|
value: input.transcribe
|
|
4201
3868
|
}, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
|
|
4202
3869
|
path: _path + ".translate",
|
|
4203
|
-
expected: "(__type.
|
|
3870
|
+
expected: "(__type.o9 | undefined)",
|
|
4204
3871
|
value: input.translate
|
|
4205
|
-
}, errorFactory)) && $
|
|
3872
|
+
}, errorFactory)) && $ao13(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
|
|
4206
3873
|
path: _path + ".translate",
|
|
4207
|
-
expected: "(__type.
|
|
3874
|
+
expected: "(__type.o9 | undefined)",
|
|
4208
3875
|
value: input.translate
|
|
4209
3876
|
}, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
|
|
4210
3877
|
path: _path + ".audio",
|
|
4211
|
-
expected: "(__type.
|
|
3878
|
+
expected: "(__type.o10 | undefined)",
|
|
4212
3879
|
value: input.audio
|
|
4213
|
-
}, errorFactory)) && $
|
|
3880
|
+
}, errorFactory)) && $ao14(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
|
|
4214
3881
|
path: _path + ".audio",
|
|
4215
|
-
expected: "(__type.
|
|
3882
|
+
expected: "(__type.o10 | undefined)",
|
|
4216
3883
|
value: input.audio
|
|
4217
3884
|
}, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
|
|
4218
3885
|
path: _path + ".pick",
|
|
@@ -4234,27 +3901,27 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4234
3901
|
path: _path + ".subtitle",
|
|
4235
3902
|
expected: "(SubtitleProfile | string | undefined)",
|
|
4236
3903
|
value: input.subtitle
|
|
4237
|
-
}, errorFactory)) && $
|
|
3904
|
+
}, errorFactory)) && $ao15(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
|
|
4238
3905
|
path: _path + ".subtitle",
|
|
4239
3906
|
expected: "(SubtitleProfile | string | undefined)",
|
|
4240
3907
|
value: input.subtitle
|
|
4241
3908
|
}, errorFactory)));
|
|
4242
|
-
const $
|
|
3909
|
+
const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
|
|
4243
3910
|
path: _path + ".engine",
|
|
4244
3911
|
expected: "string",
|
|
4245
3912
|
value: input.engine
|
|
4246
3913
|
}, errorFactory);
|
|
4247
|
-
const $
|
|
3914
|
+
const $ao13 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
|
|
4248
3915
|
path: _path + ".language",
|
|
4249
3916
|
expected: "string",
|
|
4250
3917
|
value: input.language
|
|
4251
3918
|
}, errorFactory);
|
|
4252
|
-
const $
|
|
3919
|
+
const $ao14 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
|
|
4253
3920
|
path: _path + ".pan",
|
|
4254
3921
|
expected: "(string | undefined)",
|
|
4255
3922
|
value: input.pan
|
|
4256
3923
|
}, errorFactory);
|
|
4257
|
-
const $
|
|
3924
|
+
const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
|
|
4258
3925
|
path: _path + ".lang",
|
|
4259
3926
|
expected: "(string | undefined)",
|
|
4260
3927
|
value: input.lang
|
|
@@ -4275,8 +3942,8 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4275
3942
|
})(input, "$input", true);
|
|
4276
3943
|
return input;
|
|
4277
3944
|
}; const stringify = input => {
|
|
4278
|
-
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $
|
|
4279
|
-
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $
|
|
3945
|
+
const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io11(input.profile));
|
|
3946
|
+
const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io10(input.transcribe));
|
|
4280
3947
|
const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
|
|
4281
3948
|
const $io4 = input => Object.keys(input).every(key => {
|
|
4282
3949
|
const value = input[key];
|
|
@@ -4285,41 +3952,43 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
4285
3952
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
4286
3953
|
});
|
|
4287
3954
|
const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
|
|
4288
|
-
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding);
|
|
4289
|
-
const $io7 = input => undefined === input.
|
|
4290
|
-
const $io8 = input =>
|
|
4291
|
-
const $io9 = input => (undefined === input.
|
|
4292
|
-
const $io10 = input =>
|
|
4293
|
-
const $io11 = input => "string" === typeof input.
|
|
4294
|
-
const $io12 = input => "string" === typeof input.
|
|
4295
|
-
const $io13 = input =>
|
|
4296
|
-
const $io14 = input =>
|
|
3955
|
+
const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
|
|
3956
|
+
const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
|
|
3957
|
+
const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
|
|
3958
|
+
const $io9 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
|
|
3959
|
+
const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
|
|
3960
|
+
const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io15(input.subtitle)));
|
|
3961
|
+
const $io12 = input => "string" === typeof input.engine;
|
|
3962
|
+
const $io13 = input => "string" === typeof input.language;
|
|
3963
|
+
const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
|
|
3964
|
+
const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
|
|
4297
3965
|
const $string = __typia.json.createAssertStringify.string;
|
|
4298
3966
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
4299
3967
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
4300
3968
|
const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)},"description":${$so1(input.description)}}`;
|
|
4301
|
-
const $so1 = input => `{"scene":${$so2(input.scene)},"profile":${$
|
|
4302
|
-
const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $
|
|
3969
|
+
const $so1 = input => `{"scene":${$so2(input.scene)},"profile":${$so11(input.profile)}}`;
|
|
3970
|
+
const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so8(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so10(input.transcribe) : undefined}`}`)}}`;
|
|
4303
3971
|
const $so3 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
|
|
4304
3972
|
const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
4305
3973
|
return ""; return `${JSON.stringify(key)}:${$so5(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
4306
3974
|
const $so5 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so6(input.styleOverrides) : undefined}`}`)}}`;
|
|
4307
|
-
const $so6 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined}`}`)}}`;
|
|
4308
|
-
const $so7 = input => `{${$tail(`${undefined === input.
|
|
4309
|
-
const $so8 = input => `{${$tail(`${undefined === input.
|
|
4310
|
-
const $so9 = input => `{${$tail(`${undefined === input.
|
|
4311
|
-
const $so10 = input => `{${
|
|
3975
|
+
const $so6 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so7(input.previewSettings) : undefined}`}`)}}`;
|
|
3976
|
+
const $so7 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
|
|
3977
|
+
const $so8 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so9(input.crop) : undefined}`}`)}}`;
|
|
3978
|
+
const $so9 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
|
|
3979
|
+
const $so10 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
|
|
3980
|
+
const $so11 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so14(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
|
|
4312
3981
|
if ("string" === typeof input.subtitle)
|
|
4313
3982
|
return $string(input.subtitle);
|
|
4314
3983
|
if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
|
|
4315
|
-
return $
|
|
3984
|
+
return $so15(input.subtitle);
|
|
4316
3985
|
$throws({
|
|
4317
3986
|
expected: "(SubtitleProfile | string | undefined)",
|
|
4318
3987
|
value: input.subtitle
|
|
4319
3988
|
});
|
|
4320
3989
|
})() : undefined},`}"format":${$string(input.format)}}`;
|
|
4321
|
-
const $
|
|
4322
|
-
const $
|
|
3990
|
+
const $so14 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
|
|
3991
|
+
const $so15 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
|
|
4323
3992
|
return $so0(input);
|
|
4324
3993
|
}; return stringify(assert(input, errorFactory)); };
|
|
4325
3994
|
export const isRenderDomainResultRecord = input => {
|