@nxtedition/types 23.1.3 → 23.1.5
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/common/block.d.ts +1 -0
- package/dist/common/block.js +31 -13
- package/dist/common/file.js +9 -8
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +2 -0
- package/dist/common/json-schema.d.ts +95 -0
- package/dist/common/json-schema.js +1 -0
- package/dist/common/location.js +1 -1
- package/dist/common/nxtpression.d.ts +1 -1
- package/dist/common/print.d.ts +30 -0
- package/dist/common/print.js +1 -0
- package/dist/common/render-scene.d.ts +1 -0
- package/dist/common/rule.js +2 -2
- package/dist/common/settings.d.ts +11 -2
- package/dist/nxtpression.d.ts +451 -205
- package/dist/records/domains/connection/file/smb.d.ts +2 -0
- package/dist/records/domains/event.d.ts +20 -0
- package/dist/records/domains/gallery.d.ts +8 -0
- package/dist/records/domains/gallery.js +1 -0
- package/dist/records/domains/index.d.ts +5 -1
- package/dist/records/domains/index.js +2 -0
- package/dist/records/domains/role.d.ts +8 -0
- package/dist/records/domains/storage.d.ts +87 -0
- package/dist/records/domains/storage.js +1 -0
- package/dist/records/domains/template.d.ts +32 -0
- package/dist/records/exact/index.d.ts +6 -0
- package/dist/records/exact/monitor.d.ts +1 -0
- package/dist/records/validate/assert-guard.js +1641 -454
- package/dist/records/validate/assert.js +1645 -448
- package/dist/records/validate/is.js +92 -26
- package/dist/records/validate/schemas.d.ts +3 -10
- package/dist/records/validate/schemas.js +1336 -254
- package/dist/records/validate/stringify.js +348 -253
- package/dist/records/validate/utils.js +2 -2
- package/dist/records/validate/validate-equals.js +2245 -481
- package/dist/records/validate/validate.js +1549 -429
- package/dist/rpc.js +2 -2
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +13 -14
package/dist/common/block.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export type Blocks = Block[];
|
|
|
16
16
|
export declare const assertBlock: (input: unknown) => Block;
|
|
17
17
|
export declare const isBlock: (input: unknown) => input is Block;
|
|
18
18
|
export declare const randomBlock: () => Block;
|
|
19
|
+
export declare const stringifyBlock: (input: Block) => string;
|
|
19
20
|
export declare const stringifyBlocks: (input: Blocks) => string;
|
|
20
21
|
export declare const assertGuardBlock: (input: unknown) => typia.AssertionGuard<Block>;
|
package/dist/common/block.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64
|
|
2
|
-
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard
|
|
3
|
-
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString
|
|
4
|
-
import * as __typia_transform__randomPattern from "typia/lib/internal/_randomPattern
|
|
5
|
-
import * as __typia_transform__randomInteger from "typia/lib/internal/_randomInteger
|
|
6
|
-
import * as __typia_transform__randomPick from "typia/lib/internal/_randomPick
|
|
7
|
-
import * as __typia_transform__randomString from "typia/lib/internal/_randomString
|
|
8
|
-
import * as __typia_transform__randomArray from "typia/lib/internal/_randomArray
|
|
9
|
-
import * as __typia_transform__randomNumber from "typia/lib/internal/_randomNumber
|
|
10
|
-
import * as __typia_transform__jsonStringifyString from "typia/lib/internal/_jsonStringifyString
|
|
11
|
-
import * as
|
|
1
|
+
import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64";
|
|
2
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
3
|
+
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString";
|
|
4
|
+
import * as __typia_transform__randomPattern from "typia/lib/internal/_randomPattern";
|
|
5
|
+
import * as __typia_transform__randomInteger from "typia/lib/internal/_randomInteger";
|
|
6
|
+
import * as __typia_transform__randomPick from "typia/lib/internal/_randomPick";
|
|
7
|
+
import * as __typia_transform__randomString from "typia/lib/internal/_randomString";
|
|
8
|
+
import * as __typia_transform__randomArray from "typia/lib/internal/_randomArray";
|
|
9
|
+
import * as __typia_transform__randomNumber from "typia/lib/internal/_randomNumber";
|
|
10
|
+
import * as __typia_transform__jsonStringifyString from "typia/lib/internal/_jsonStringifyString";
|
|
11
|
+
import * as __typia_transform__jsonStringifyNumber from "typia/lib/internal/_jsonStringifyNumber";
|
|
12
|
+
import * as __typia_transform__throwTypeGuardError from "typia/lib/internal/_throwTypeGuardError";
|
|
12
13
|
import typia from 'typia';
|
|
13
14
|
export const assertBlock = (() => { const _io0 = input => "string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id) && ("string" === typeof input.file && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.file)) && ("string" === typeof input.location && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && __typia_transform__isTypeUint64._isTypeUint64(input.offset))) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && (null === input.hash || "string" === typeof input.hash && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && (null === input.btime || "number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && (null === input.path || "string" === typeof input.path) && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && _io1(elem)) || "object" === typeof input.error && null !== input.error && _io1(input.error)))); const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
|
|
14
15
|
const value = input[key];
|
|
@@ -354,7 +355,7 @@ export const randomBlock = (() => { const _ro0 = (_recursive = false, _depth = 0
|
|
|
354
355
|
_generator = generator;
|
|
355
356
|
return _ro0();
|
|
356
357
|
}; })();
|
|
357
|
-
export const
|
|
358
|
+
export const stringifyBlock = (() => { const _so0 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"file":${__typia_transform__jsonStringifyString._jsonStringifyString(input.file)},"location":${__typia_transform__jsonStringifyString._jsonStringifyString(input.location)},"offset":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.offset))},"size":${null !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : "null"},"hash":${null !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : "null"},"btime":${null !== input.btime ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.btime)) : "null"},"path":${null !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : "null"},"error":${null !== input.error ? (() => {
|
|
358
359
|
if (Array.isArray(input.error))
|
|
359
360
|
return `[${input.error.map(elem => _so1(elem)).join(",")}]`;
|
|
360
361
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -364,7 +365,24 @@ export const stringifyBlocks = (() => { const _so0 = input => `{"id":${__typia_t
|
|
|
364
365
|
expected: "(Array<NxtError> | NxtError | null)",
|
|
365
366
|
value: input.error
|
|
366
367
|
});
|
|
367
|
-
})() : "null"}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so2(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so3(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so1(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so1(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
368
|
+
})() : "null"}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.exitCode)) : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.signalCode)) : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.statusCode)) : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so2(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so3(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so1(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so1(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
369
|
+
return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => "{}"; const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
|
|
370
|
+
const value = input[key];
|
|
371
|
+
if (undefined === value)
|
|
372
|
+
return true;
|
|
373
|
+
return "string" === typeof value;
|
|
374
|
+
}); const _io3 = input => true; return input => _so0(input); })();
|
|
375
|
+
export const stringifyBlocks = (() => { const _so0 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"file":${__typia_transform__jsonStringifyString._jsonStringifyString(input.file)},"location":${__typia_transform__jsonStringifyString._jsonStringifyString(input.location)},"offset":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.offset))},"size":${null !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : "null"},"hash":${null !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : "null"},"btime":${null !== input.btime ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.btime)) : "null"},"path":${null !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : "null"},"error":${null !== input.error ? (() => {
|
|
376
|
+
if (Array.isArray(input.error))
|
|
377
|
+
return `[${input.error.map(elem => _so1(elem)).join(",")}]`;
|
|
378
|
+
if ("object" === typeof input.error && null !== input.error)
|
|
379
|
+
return _so1(input.error);
|
|
380
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
381
|
+
method: "typia.json.createStringify",
|
|
382
|
+
expected: "(Array<NxtError> | NxtError | null)",
|
|
383
|
+
value: input.error
|
|
384
|
+
});
|
|
385
|
+
})() : "null"}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.exitCode)) : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.signalCode)) : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.statusCode)) : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so2(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so3(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so1(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so1(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
368
386
|
return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => "{}"; const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
|
|
369
387
|
const value = input[key];
|
|
370
388
|
if (undefined === value)
|
package/dist/common/file.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard
|
|
2
|
-
import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64
|
|
3
|
-
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
2
|
+
import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64";
|
|
3
|
+
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString";
|
|
4
|
+
import * as __typia_transform__jsonStringifyNumber from "typia/lib/internal/_jsonStringifyNumber";
|
|
5
|
+
import * as __typia_transform__jsonStringifyString from "typia/lib/internal/_jsonStringifyString";
|
|
6
|
+
import * as __typia_transform__throwTypeGuardError from "typia/lib/internal/_throwTypeGuardError";
|
|
7
|
+
import * as __typia_transform__jsonStringifyTail from "typia/lib/internal/_jsonStringifyTail";
|
|
7
8
|
import typia from 'typia';
|
|
8
9
|
export const assertFileRef = (() => { const _io0 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9
10
|
method: "typia.createAssert",
|
|
@@ -773,7 +774,7 @@ export const assertFileStats = (() => { const _io0 = input => (null === input.po
|
|
|
773
774
|
}
|
|
774
775
|
return input;
|
|
775
776
|
}; })();
|
|
776
|
-
export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"complete":${input.complete},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => _so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
777
|
+
export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.progress)) : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.speed)) : undefined},`}"position":${null !== input.position ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.position)) : "null"},"uploading":${null !== input.uploading ? String(input.uploading) : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(elem[0]))},${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(elem[1]))}]`).join(",")}]`},"complete":${String(input.complete)},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"size":${null !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : "null"},"seekable":${String(input.seekable)},"deleted":${String(input.deleted)},"refs":${`[${input.refs.map(elem => _so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.btime))},"completed":${String(input.completed)},"error":${null !== input.error ? (() => {
|
|
777
778
|
if (Array.isArray(input.error))
|
|
778
779
|
return `[${input.error.map(elem => _so2(elem)).join(",")}]`;
|
|
779
780
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -783,7 +784,7 @@ export const stringifyFileStats = (() => { const _so0 = input => `{${undefined =
|
|
|
783
784
|
expected: "(Array<NxtError> | NxtError | null)",
|
|
784
785
|
value: input.error
|
|
785
786
|
});
|
|
786
|
-
})() : "null"}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`; const _so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so4(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so2(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
787
|
+
})() : "null"}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.offset)) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.start)) : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.end)) : undefined}`}`)}}`; const _so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.exitCode)) : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.signalCode)) : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.statusCode)) : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so4(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so2(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
787
788
|
return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => "{}"; const _io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end); const _io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io3 = input => Object.keys(input).every(key => {
|
|
788
789
|
const value = input[key];
|
|
789
790
|
if (undefined === value)
|
package/dist/common/index.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ export * from './block.ts';
|
|
|
3
3
|
export * from './clone.ts';
|
|
4
4
|
export * from './date.ts';
|
|
5
5
|
export * from './file.ts';
|
|
6
|
+
export * from './json-schema.ts';
|
|
6
7
|
export * from './location.ts';
|
|
7
8
|
export * from './nxtpression.ts';
|
|
8
9
|
export * from './lock.ts';
|
|
9
10
|
export * from './media.ts';
|
|
10
11
|
export * from './panel-property.ts';
|
|
11
12
|
export * from './pipeline.ts';
|
|
13
|
+
export * from './print.ts';
|
|
12
14
|
export * from './promoted-tag.ts';
|
|
13
15
|
export * from './render-preset.ts';
|
|
14
16
|
export * from './render-profile.ts';
|
package/dist/common/index.js
CHANGED
|
@@ -3,12 +3,14 @@ export * from "./block.js";
|
|
|
3
3
|
export * from "./clone.js";
|
|
4
4
|
export * from "./date.js";
|
|
5
5
|
export * from "./file.js";
|
|
6
|
+
export * from "./json-schema.js";
|
|
6
7
|
export * from "./location.js";
|
|
7
8
|
export * from "./nxtpression.js";
|
|
8
9
|
export * from "./lock.js";
|
|
9
10
|
export * from "./media.js";
|
|
10
11
|
export * from "./panel-property.js";
|
|
11
12
|
export * from "./pipeline.js";
|
|
13
|
+
export * from "./print.js";
|
|
12
14
|
export * from "./promoted-tag.js";
|
|
13
15
|
export * from "./render-preset.js";
|
|
14
16
|
export * from "./render-profile.js";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { JsonValue } from 'type-fest';
|
|
2
|
+
declare const __jsonSchemaType: unique symbol;
|
|
3
|
+
export type TypedJsonSchema<T> = JsonSchema & {
|
|
4
|
+
[__jsonSchemaType]?: T;
|
|
5
|
+
};
|
|
6
|
+
export type JsonSchema = JsonSchemaBoolean | JsonSchemaNumber | JsonSchemaInteger | JsonSchemaString | JsonSchemaArray | JsonSchemaTuple | JsonSchemaObject | JsonSchemaReference | JsonSchemaOneOf | JsonSchemaAnyOf | JsonSchemaEnum | JsonSchemaConst | JsonSchemaNull | JsonSchemaUnknown;
|
|
7
|
+
export interface JsonSchemaBase {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Normal JSON schemas use either 'definitions' (older versions) or '$defs' (newer versions).
|
|
12
|
+
* However, OpenAPI and Typia instead uses 'components'. Since we use typia to generate JSON schemas,
|
|
13
|
+
* we use 'components' as well.
|
|
14
|
+
*
|
|
15
|
+
* In the case of OpenAPI and Typia the 'components' schemas are supplied outside the actual
|
|
16
|
+
* JSON schema. For better compatibility with other JSON schema tooling, we instead include it
|
|
17
|
+
* inside the JSON schema itself.
|
|
18
|
+
*/
|
|
19
|
+
components?: {
|
|
20
|
+
schemas?: Record<string, JsonSchema>;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface JsonSchemaBoolean extends JsonSchemaBase {
|
|
24
|
+
type: "boolean";
|
|
25
|
+
default?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface JsonSchemaInteger extends JsonSchemaBase {
|
|
28
|
+
type: "integer";
|
|
29
|
+
default?: number;
|
|
30
|
+
minimum?: number;
|
|
31
|
+
maximum?: number;
|
|
32
|
+
exclusiveMinimum?: number;
|
|
33
|
+
exclusiveMaximum?: number;
|
|
34
|
+
multipleOf?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface JsonSchemaNumber extends JsonSchemaBase {
|
|
37
|
+
type: "number";
|
|
38
|
+
default?: number;
|
|
39
|
+
minimum?: number;
|
|
40
|
+
maximum?: number;
|
|
41
|
+
exclusiveMinimum?: number;
|
|
42
|
+
exclusiveMaximum?: number;
|
|
43
|
+
multipleOf?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface JsonSchemaString extends JsonSchemaBase {
|
|
46
|
+
type: "string";
|
|
47
|
+
default?: string;
|
|
48
|
+
format?: string;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
minLength?: number;
|
|
51
|
+
maxLength?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface JsonSchemaArray extends JsonSchemaBase {
|
|
54
|
+
type: "array";
|
|
55
|
+
items: JsonSchema;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
maxItems?: number;
|
|
58
|
+
uniqueItems?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface JsonSchemaTuple extends JsonSchemaBase {
|
|
61
|
+
type: "array";
|
|
62
|
+
prefixItems: JsonSchema[];
|
|
63
|
+
additionalItems?: boolean | JsonSchema;
|
|
64
|
+
minItems?: number;
|
|
65
|
+
maxItems?: number;
|
|
66
|
+
uniqueItems?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface JsonSchemaObject extends JsonSchemaBase {
|
|
69
|
+
type: "object";
|
|
70
|
+
properties?: Record<string, JsonSchema>;
|
|
71
|
+
additionalProperties?: boolean | JsonSchema;
|
|
72
|
+
required?: string[];
|
|
73
|
+
}
|
|
74
|
+
export interface JsonSchemaReference extends JsonSchemaBase {
|
|
75
|
+
$ref: string;
|
|
76
|
+
}
|
|
77
|
+
export interface JsonSchemaOneOf extends JsonSchemaBase {
|
|
78
|
+
oneOf: JsonSchema[];
|
|
79
|
+
}
|
|
80
|
+
export interface JsonSchemaAnyOf extends JsonSchemaBase {
|
|
81
|
+
anyOf: JsonSchema[];
|
|
82
|
+
}
|
|
83
|
+
export interface JsonSchemaEnum extends JsonSchemaBase {
|
|
84
|
+
enum: JsonValue[];
|
|
85
|
+
}
|
|
86
|
+
export interface JsonSchemaConst extends JsonSchemaBase {
|
|
87
|
+
const: JsonValue;
|
|
88
|
+
}
|
|
89
|
+
export interface JsonSchemaNull extends JsonSchemaBase {
|
|
90
|
+
type: "null";
|
|
91
|
+
}
|
|
92
|
+
export interface JsonSchemaUnknown extends JsonSchemaBase {
|
|
93
|
+
type?: undefined;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/common/location.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard
|
|
1
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
2
2
|
import typia from "typia";
|
|
3
3
|
export const assertLocation = (() => { const _io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4
4
|
method: "typia.createAssert",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Nxtpression<ReturnValue = unknown, Context extends
|
|
1
|
+
export type Nxtpression<ReturnValue = unknown, Context extends Record<string, unknown> = Record<string, unknown>> = {
|
|
2
2
|
/**
|
|
3
3
|
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
4
4
|
* it is only here to make sure the generic Context won't get stripped.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type PrintOptions = PrintScriptOptions | PrintRundownOptions;
|
|
2
|
+
export type PageSize = "A5" | "A4" | "A3";
|
|
3
|
+
export type PageOrientation = "landscape" | "portrait";
|
|
4
|
+
export type PrintOptionalScriptNodes = "event" | "event-data" | "comment" | "heading" | "list" | "quote" | "paragraph" | "horizontalrule";
|
|
5
|
+
interface PrintOptionsBase {
|
|
6
|
+
title: string;
|
|
7
|
+
horizontalMargin: number;
|
|
8
|
+
pageSize: PageSize;
|
|
9
|
+
orientation: PageOrientation;
|
|
10
|
+
fontSize: number;
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
hide: PrintOptionalScriptNodes[];
|
|
13
|
+
}
|
|
14
|
+
export interface PrintScriptOptions extends PrintOptionsBase {
|
|
15
|
+
type: "script";
|
|
16
|
+
}
|
|
17
|
+
export interface PrintRundownOptions extends PrintOptionsBase {
|
|
18
|
+
type: "rundown";
|
|
19
|
+
columns: PrintRundownColumn[];
|
|
20
|
+
rangeStart?: number;
|
|
21
|
+
rangeEnd?: number;
|
|
22
|
+
hide: Exclude<PrintOptionalScriptNodes, "event-data">[];
|
|
23
|
+
}
|
|
24
|
+
export interface PrintRundownColumn {
|
|
25
|
+
key: "id" | "title" | "time" | "duration" | "position" | "accDuration" | "type";
|
|
26
|
+
label: string;
|
|
27
|
+
width: string;
|
|
28
|
+
textAlign: "right" | "left" | "center";
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/common/rule.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as __typia_transform__isTypeUint32 from "typia/lib/internal/_isTypeUint32
|
|
2
|
-
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard
|
|
1
|
+
import * as __typia_transform__isTypeUint32 from "typia/lib/internal/_isTypeUint32";
|
|
2
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
3
3
|
import typia from 'typia';
|
|
4
4
|
export const assertRule = (() => { const _io0 = input => Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem) && ("number" === typeof input.replicas && __typia_transform__isTypeUint32._isTypeUint32(input.replicas)) && ("number" === typeof input.priority && __typia_transform__isTypeUint32._isTypeUint32(input.priority)) && (Array.isArray(input.includes) && input.includes.every(elem => "string" === typeof elem)) && (Array.isArray(input.excludes) && input.excludes.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.locations) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5
5
|
method: "typia.createAssert",
|
|
@@ -3,6 +3,7 @@ import type { PipelineSortMode } from './pipeline.ts';
|
|
|
3
3
|
import type { PromotedTag } from './promoted-tag.ts';
|
|
4
4
|
import type { NotificationReason } from './user-notification.ts';
|
|
5
5
|
import type { SubtitleStyle } from './subtitle-style.ts';
|
|
6
|
+
import type { PrintOptions } from './print.ts';
|
|
6
7
|
export interface Settings {
|
|
7
8
|
autoLogoutTime?: number;
|
|
8
9
|
permission?: {
|
|
@@ -98,6 +99,7 @@ export interface Settings {
|
|
|
98
99
|
sortBy?: "index" | "title";
|
|
99
100
|
showPreview?: boolean;
|
|
100
101
|
};
|
|
102
|
+
contentMaxWidth?: number;
|
|
101
103
|
colorTags?: PromotedTag[];
|
|
102
104
|
readType?: "characters" | "words" | "wordsPerMinute";
|
|
103
105
|
readRate?: number;
|
|
@@ -283,6 +285,7 @@ export interface Settings {
|
|
|
283
285
|
};
|
|
284
286
|
print?: {
|
|
285
287
|
fontFamilies?: string[];
|
|
288
|
+
presets?: Array<PrintOptions>;
|
|
286
289
|
};
|
|
287
290
|
hiddenPreviews?: Array<{
|
|
288
291
|
id?: string;
|
|
@@ -298,6 +301,7 @@ export interface Settings {
|
|
|
298
301
|
downloadPath?: string;
|
|
299
302
|
renderPath?: string;
|
|
300
303
|
renderPresetPath?: string;
|
|
304
|
+
renderPresets?: string[];
|
|
301
305
|
videoRenderPreset?: string;
|
|
302
306
|
imageRenderPreset?: string;
|
|
303
307
|
audioRenderPreset?: string;
|
|
@@ -308,6 +312,9 @@ export interface Settings {
|
|
|
308
312
|
template?: string;
|
|
309
313
|
};
|
|
310
314
|
};
|
|
315
|
+
ograf?: {
|
|
316
|
+
template?: string;
|
|
317
|
+
};
|
|
311
318
|
rive?: {
|
|
312
319
|
template?: string;
|
|
313
320
|
};
|
|
@@ -383,8 +390,10 @@ export interface Settings {
|
|
|
383
390
|
layout?: string;
|
|
384
391
|
};
|
|
385
392
|
performance?: {
|
|
386
|
-
/** List of message identifiers to ignore
|
|
387
|
-
|
|
393
|
+
/** List of message identifiers to ignore warnings (format: "serviceName:messageText") */
|
|
394
|
+
ignoredWarnings?: string[];
|
|
395
|
+
/** List of message identifiers to ignore errors (format: "serviceName:messageText") */
|
|
396
|
+
ignoredErrors?: string[];
|
|
388
397
|
};
|
|
389
398
|
app?: {
|
|
390
399
|
enableUpdate?: boolean;
|