@nxtedition/types 23.0.9 → 23.0.11
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/asset.d.ts +64 -2
- package/dist/common/file.d.ts +2 -0
- package/dist/common/file.js +86 -12
- package/dist/index.d.ts +1 -65
- package/dist/schema.json +160 -81
- package/package.json +1 -1
package/dist/asset.d.ts
CHANGED
|
@@ -1,10 +1,72 @@
|
|
|
1
1
|
import { CloneRule, Nxtpression } from './common/index.js';
|
|
2
2
|
export interface AssetRecords {
|
|
3
3
|
"asset.assignees": {
|
|
4
|
-
value?: Nxtpression
|
|
5
|
-
|
|
4
|
+
value?: Nxtpression<string[], {
|
|
5
|
+
id: string;
|
|
6
|
+
}>;
|
|
7
|
+
dynamic?: Dynamic;
|
|
6
8
|
};
|
|
7
9
|
"asset.clone": {
|
|
8
10
|
rules: CloneRule[];
|
|
9
11
|
};
|
|
12
|
+
"asset.deadlines": {
|
|
13
|
+
value?: Nxtpression<string, {
|
|
14
|
+
id: string;
|
|
15
|
+
}>;
|
|
16
|
+
dynamic?: Dynamic;
|
|
17
|
+
};
|
|
18
|
+
"asset.duration": {
|
|
19
|
+
value?: Nxtpression<number, {
|
|
20
|
+
id: string;
|
|
21
|
+
}>;
|
|
22
|
+
dynamic?: Dynamic;
|
|
23
|
+
};
|
|
24
|
+
"asset.embedding": {
|
|
25
|
+
value?: Nxtpression<string, {
|
|
26
|
+
id: string;
|
|
27
|
+
}>;
|
|
28
|
+
dynamic?: Dynamic;
|
|
29
|
+
};
|
|
30
|
+
"asset.icon": {
|
|
31
|
+
value?: Nxtpression<string, {
|
|
32
|
+
id: string;
|
|
33
|
+
}>;
|
|
34
|
+
dynamic?: Dynamic;
|
|
35
|
+
};
|
|
36
|
+
"asset.locations": {
|
|
37
|
+
value?: Nxtpression<Array<{
|
|
38
|
+
lat: number;
|
|
39
|
+
lon: number;
|
|
40
|
+
}>, {
|
|
41
|
+
id: string;
|
|
42
|
+
}>;
|
|
43
|
+
dynamic?: Dynamic;
|
|
44
|
+
};
|
|
45
|
+
"asset.media": {
|
|
46
|
+
value?: Nxtpression<Record<string, unknown>, {
|
|
47
|
+
id: string;
|
|
48
|
+
}>;
|
|
49
|
+
dynamic?: Dynamic;
|
|
50
|
+
};
|
|
51
|
+
"asset.tags": {
|
|
52
|
+
value?: Nxtpression<string[], {
|
|
53
|
+
id: string;
|
|
54
|
+
}>;
|
|
55
|
+
dynamic?: Dynamic;
|
|
56
|
+
};
|
|
57
|
+
"asset.title": {
|
|
58
|
+
value?: Nxtpression<string, {
|
|
59
|
+
id: string;
|
|
60
|
+
}>;
|
|
61
|
+
dynamic?: Dynamic;
|
|
62
|
+
};
|
|
63
|
+
"asset.types": {
|
|
64
|
+
[type: string]: null | string | {
|
|
65
|
+
priority?: number;
|
|
66
|
+
label: string;
|
|
67
|
+
icon?: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
10
70
|
}
|
|
71
|
+
type Dynamic = false | string[];
|
|
72
|
+
export {};
|
package/dist/common/file.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface File {
|
|
|
15
15
|
tags: string[];
|
|
16
16
|
resumable: string;
|
|
17
17
|
mimeType: string;
|
|
18
|
+
type: string;
|
|
18
19
|
hash: string & tags.Pattern<"^([A-Fa-f0-9]{32})?$">;
|
|
19
20
|
btime: number & tags.Minimum<0> & tags.Type<"uint64">;
|
|
20
21
|
completed: boolean;
|
|
@@ -32,6 +33,7 @@ export interface FileStats extends File {
|
|
|
32
33
|
zones: string[];
|
|
33
34
|
replicas: string[];
|
|
34
35
|
locations: string[];
|
|
36
|
+
progress: number & tags.Minimum<0> & tags.Maximum<1>;
|
|
35
37
|
ranges: Array<[
|
|
36
38
|
start: number & tags.Minimum<0>,
|
|
37
39
|
end: number & tags.Minimum<0>
|
package/dist/common/file.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isFile = input => {
|
|
3
|
-
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
3
|
+
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
4
4
|
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);
|
|
5
5
|
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)));
|
|
6
6
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -14,7 +14,7 @@ export const isFile = input => {
|
|
|
14
14
|
};
|
|
15
15
|
export const assertFile = (input, errorFactory) => {
|
|
16
16
|
const __is = input => {
|
|
17
|
-
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
17
|
+
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
18
18
|
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);
|
|
19
19
|
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)));
|
|
20
20
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -94,6 +94,10 @@ export const assertFile = (input, errorFactory) => {
|
|
|
94
94
|
path: _path + ".mimeType",
|
|
95
95
|
expected: "string",
|
|
96
96
|
value: input.mimeType
|
|
97
|
+
}, errorFactory)) && ("string" === typeof input.type || $guard(_exceptionable, {
|
|
98
|
+
path: _path + ".type",
|
|
99
|
+
expected: "string",
|
|
100
|
+
value: input.type
|
|
97
101
|
}, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
|
|
98
102
|
path: _path + ".hash",
|
|
99
103
|
expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -276,6 +280,7 @@ export const randomFile = generator => {
|
|
|
276
280
|
tags: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
277
281
|
resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
278
282
|
mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
283
|
+
type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
279
284
|
hash: (generator?.customs ?? $generator.customs)?.string?.([
|
|
280
285
|
{
|
|
281
286
|
name: "Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -371,7 +376,7 @@ export const randomFile = generator => {
|
|
|
371
376
|
};
|
|
372
377
|
export const assertGuardFile = (input, errorFactory) => {
|
|
373
378
|
const __is = input => {
|
|
374
|
-
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
379
|
+
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
375
380
|
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);
|
|
376
381
|
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)));
|
|
377
382
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -451,6 +456,10 @@ export const assertGuardFile = (input, errorFactory) => {
|
|
|
451
456
|
path: _path + ".mimeType",
|
|
452
457
|
expected: "string",
|
|
453
458
|
value: input.mimeType
|
|
459
|
+
}, errorFactory)) && ("string" === typeof input.type || $guard(_exceptionable, {
|
|
460
|
+
path: _path + ".type",
|
|
461
|
+
expected: "string",
|
|
462
|
+
value: input.type
|
|
454
463
|
}, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
|
|
455
464
|
path: _path + ".hash",
|
|
456
465
|
expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -613,7 +622,7 @@ export const stringifyFile = input => {
|
|
|
613
622
|
const $string = __typia.json.createStringify.string;
|
|
614
623
|
const $throws = __typia.json.createStringify.throws;
|
|
615
624
|
const $tail = __typia.json.createStringify.tail;
|
|
616
|
-
const $so0 = input => `{"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
625
|
+
const $so0 = input => `{"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"type":${$string(input.type)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
617
626
|
if (Array.isArray(input.error))
|
|
618
627
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
619
628
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -631,7 +640,7 @@ export const stringifyFile = input => {
|
|
|
631
640
|
};
|
|
632
641
|
export const assertStringifyFile = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
633
642
|
const __is = input => {
|
|
634
|
-
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
643
|
+
const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
635
644
|
const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
|
|
636
645
|
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 && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(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)));
|
|
637
646
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -711,6 +720,10 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
|
|
|
711
720
|
path: _path + ".mimeType",
|
|
712
721
|
expected: "string",
|
|
713
722
|
value: input.mimeType
|
|
723
|
+
}, errorFactory)) && ("string" === typeof input.type || $guard(_exceptionable, {
|
|
724
|
+
path: _path + ".type",
|
|
725
|
+
expected: "string",
|
|
726
|
+
value: input.type
|
|
714
727
|
}, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
|
|
715
728
|
path: _path + ".hash",
|
|
716
729
|
expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -873,7 +886,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
|
|
|
873
886
|
const $string = __typia.json.createAssertStringify.string;
|
|
874
887
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
875
888
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
876
|
-
const $so0 = input => `{"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
889
|
+
const $so0 = input => `{"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"type":${$string(input.type)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
877
890
|
if (Array.isArray(input.error))
|
|
878
891
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
879
892
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -890,7 +903,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
|
|
|
890
903
|
return $so0(input);
|
|
891
904
|
}; return stringify(assert(input, errorFactory)); };
|
|
892
905
|
export const isFileStats = input => {
|
|
893
|
-
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
906
|
+
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
894
907
|
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);
|
|
895
908
|
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)));
|
|
896
909
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -904,7 +917,7 @@ export const isFileStats = input => {
|
|
|
904
917
|
};
|
|
905
918
|
export const assertFileStats = (input, errorFactory) => {
|
|
906
919
|
const __is = input => {
|
|
907
|
-
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
920
|
+
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
908
921
|
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);
|
|
909
922
|
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)));
|
|
910
923
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -972,6 +985,18 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
972
985
|
path: _path + ".locations",
|
|
973
986
|
expected: "Array<string>",
|
|
974
987
|
value: input.locations
|
|
988
|
+
}, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
989
|
+
path: _path + ".progress",
|
|
990
|
+
expected: "number & Minimum<0>",
|
|
991
|
+
value: input.progress
|
|
992
|
+
}, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
|
|
993
|
+
path: _path + ".progress",
|
|
994
|
+
expected: "number & Maximum<1>",
|
|
995
|
+
value: input.progress
|
|
996
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
997
|
+
path: _path + ".progress",
|
|
998
|
+
expected: "(number & Minimum<0> & Maximum<1>)",
|
|
999
|
+
value: input.progress
|
|
975
1000
|
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
976
1001
|
path: _path + ".ranges",
|
|
977
1002
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
@@ -1072,6 +1097,10 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
1072
1097
|
path: _path + ".mimeType",
|
|
1073
1098
|
expected: "string",
|
|
1074
1099
|
value: input.mimeType
|
|
1100
|
+
}, errorFactory)) && ("string" === typeof input.type || $guard(_exceptionable, {
|
|
1101
|
+
path: _path + ".type",
|
|
1102
|
+
expected: "string",
|
|
1103
|
+
value: input.type
|
|
1075
1104
|
}, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
|
|
1076
1105
|
path: _path + ".hash",
|
|
1077
1106
|
expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -1245,6 +1274,18 @@ export const randomFileStats = generator => {
|
|
|
1245
1274
|
zones: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1246
1275
|
replicas: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1247
1276
|
locations: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1277
|
+
progress: (generator?.customs ?? $generator.customs)?.number?.([
|
|
1278
|
+
{
|
|
1279
|
+
name: "Minimum<0>",
|
|
1280
|
+
kind: "minimum",
|
|
1281
|
+
value: 0
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
name: "Maximum<1>",
|
|
1285
|
+
kind: "maximum",
|
|
1286
|
+
value: 1
|
|
1287
|
+
}
|
|
1288
|
+
]) ?? (generator?.number ?? $generator.number)(0, 1),
|
|
1248
1289
|
ranges: (generator?.array ?? $generator.array)(() => [
|
|
1249
1290
|
(generator?.customs ?? $generator.customs)?.number?.([
|
|
1250
1291
|
{
|
|
@@ -1289,6 +1330,7 @@ export const randomFileStats = generator => {
|
|
|
1289
1330
|
tags: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1290
1331
|
resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1291
1332
|
mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1333
|
+
type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1292
1334
|
hash: (generator?.customs ?? $generator.customs)?.string?.([
|
|
1293
1335
|
{
|
|
1294
1336
|
name: "Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -1384,7 +1426,7 @@ export const randomFileStats = generator => {
|
|
|
1384
1426
|
};
|
|
1385
1427
|
export const assertGuardFileStats = (input, errorFactory) => {
|
|
1386
1428
|
const __is = input => {
|
|
1387
|
-
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
1429
|
+
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
1388
1430
|
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);
|
|
1389
1431
|
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)));
|
|
1390
1432
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -1452,6 +1494,18 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1452
1494
|
path: _path + ".locations",
|
|
1453
1495
|
expected: "Array<string>",
|
|
1454
1496
|
value: input.locations
|
|
1497
|
+
}, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
1498
|
+
path: _path + ".progress",
|
|
1499
|
+
expected: "number & Minimum<0>",
|
|
1500
|
+
value: input.progress
|
|
1501
|
+
}, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
|
|
1502
|
+
path: _path + ".progress",
|
|
1503
|
+
expected: "number & Maximum<1>",
|
|
1504
|
+
value: input.progress
|
|
1505
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1506
|
+
path: _path + ".progress",
|
|
1507
|
+
expected: "(number & Minimum<0> & Maximum<1>)",
|
|
1508
|
+
value: input.progress
|
|
1455
1509
|
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
1456
1510
|
path: _path + ".ranges",
|
|
1457
1511
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
@@ -1552,6 +1606,10 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1552
1606
|
path: _path + ".mimeType",
|
|
1553
1607
|
expected: "string",
|
|
1554
1608
|
value: input.mimeType
|
|
1609
|
+
}, errorFactory)) && ("string" === typeof input.type || $guard(_exceptionable, {
|
|
1610
|
+
path: _path + ".type",
|
|
1611
|
+
expected: "string",
|
|
1612
|
+
value: input.type
|
|
1555
1613
|
}, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
|
|
1556
1614
|
path: _path + ".hash",
|
|
1557
1615
|
expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -1714,7 +1772,7 @@ export const stringifyFileStats = input => {
|
|
|
1714
1772
|
const $string = __typia.json.createStringify.string;
|
|
1715
1773
|
const $throws = __typia.json.createStringify.throws;
|
|
1716
1774
|
const $tail = __typia.json.createStringify.tail;
|
|
1717
|
-
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
1775
|
+
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"type":${$string(input.type)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
1718
1776
|
if (Array.isArray(input.error))
|
|
1719
1777
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
1720
1778
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -1732,7 +1790,7 @@ export const stringifyFileStats = input => {
|
|
|
1732
1790
|
};
|
|
1733
1791
|
export const assertStringifyFileStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1734
1792
|
const __is = input => {
|
|
1735
|
-
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
1793
|
+
const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.type && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
|
|
1736
1794
|
const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
|
|
1737
1795
|
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 && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(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)));
|
|
1738
1796
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -1800,6 +1858,18 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1800
1858
|
path: _path + ".locations",
|
|
1801
1859
|
expected: "Array<string>",
|
|
1802
1860
|
value: input.locations
|
|
1861
|
+
}, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
1862
|
+
path: _path + ".progress",
|
|
1863
|
+
expected: "number & Minimum<0>",
|
|
1864
|
+
value: input.progress
|
|
1865
|
+
}, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
|
|
1866
|
+
path: _path + ".progress",
|
|
1867
|
+
expected: "number & Maximum<1>",
|
|
1868
|
+
value: input.progress
|
|
1869
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1870
|
+
path: _path + ".progress",
|
|
1871
|
+
expected: "(number & Minimum<0> & Maximum<1>)",
|
|
1872
|
+
value: input.progress
|
|
1803
1873
|
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
1804
1874
|
path: _path + ".ranges",
|
|
1805
1875
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
@@ -1908,6 +1978,10 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1908
1978
|
path: _path + ".mimeType",
|
|
1909
1979
|
expected: "string",
|
|
1910
1980
|
value: input.mimeType
|
|
1981
|
+
}, errorFactory)) && ("string" === typeof input.type || $guard(_exceptionable, {
|
|
1982
|
+
path: _path + ".type",
|
|
1983
|
+
expected: "string",
|
|
1984
|
+
value: input.type
|
|
1911
1985
|
}, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
|
|
1912
1986
|
path: _path + ".hash",
|
|
1913
1987
|
expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
|
|
@@ -2070,7 +2144,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
2070
2144
|
const $string = __typia.json.createAssertStringify.string;
|
|
2071
2145
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
2072
2146
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
2073
|
-
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
2147
|
+
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(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 => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"type":${$string(input.type)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
2074
2148
|
if (Array.isArray(input.error))
|
|
2075
2149
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
2076
2150
|
if ("object" === typeof input.error && null !== input.error)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
2
|
import type { DomainRecords, DesignDomainRecords } from './domains/index.js';
|
|
3
|
-
import type { MediaType, RenderPreset
|
|
3
|
+
import type { MediaType, RenderPreset } from './common/index.js';
|
|
4
4
|
export * from './domains/index.js';
|
|
5
5
|
export * from './common/index.js';
|
|
6
6
|
export * from './app.js';
|
|
@@ -43,70 +43,6 @@ export type Records = {
|
|
|
43
43
|
};
|
|
44
44
|
pick: string[];
|
|
45
45
|
};
|
|
46
|
-
"asset.assignees": {
|
|
47
|
-
value?: Nxtpression<string[], {
|
|
48
|
-
id: string;
|
|
49
|
-
}>;
|
|
50
|
-
dynamic?: string[];
|
|
51
|
-
};
|
|
52
|
-
"asset.deadlines": {
|
|
53
|
-
value?: Nxtpression<string, {
|
|
54
|
-
id: string;
|
|
55
|
-
}>;
|
|
56
|
-
dynamic?: string[];
|
|
57
|
-
};
|
|
58
|
-
"asset.duration": {
|
|
59
|
-
value?: Nxtpression<number, {
|
|
60
|
-
id: string;
|
|
61
|
-
}>;
|
|
62
|
-
dynamic?: string[];
|
|
63
|
-
};
|
|
64
|
-
"asset.embedding": {
|
|
65
|
-
value?: Nxtpression<string, {
|
|
66
|
-
id: string;
|
|
67
|
-
}>;
|
|
68
|
-
dynamic?: string[];
|
|
69
|
-
};
|
|
70
|
-
"asset.icon": {
|
|
71
|
-
value?: Nxtpression<string, {
|
|
72
|
-
id: string;
|
|
73
|
-
}>;
|
|
74
|
-
dynamic?: string[];
|
|
75
|
-
};
|
|
76
|
-
"asset.locations": {
|
|
77
|
-
value?: Nxtpression<Array<{
|
|
78
|
-
lat: number;
|
|
79
|
-
lon: number;
|
|
80
|
-
}>, {
|
|
81
|
-
id: string;
|
|
82
|
-
}>;
|
|
83
|
-
dynamic?: string[];
|
|
84
|
-
};
|
|
85
|
-
"asset.media": {
|
|
86
|
-
value?: Nxtpression<Record<string, unknown>, {
|
|
87
|
-
id: string;
|
|
88
|
-
}>;
|
|
89
|
-
dynamic?: string[];
|
|
90
|
-
};
|
|
91
|
-
"asset.tags": {
|
|
92
|
-
value?: Nxtpression<string[], {
|
|
93
|
-
id: string;
|
|
94
|
-
}>;
|
|
95
|
-
dynamic?: string[];
|
|
96
|
-
};
|
|
97
|
-
"asset.title": {
|
|
98
|
-
value?: Nxtpression<string, {
|
|
99
|
-
id: string;
|
|
100
|
-
}>;
|
|
101
|
-
dynamic?: string[];
|
|
102
|
-
};
|
|
103
|
-
"asset.types": {
|
|
104
|
-
[type: string]: null | string | {
|
|
105
|
-
priority?: number;
|
|
106
|
-
label: string;
|
|
107
|
-
icon?: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
46
|
} & AssetRecords;
|
|
111
47
|
interface DomainRows {
|
|
112
48
|
rows: string[];
|
package/dist/schema.json
CHANGED
|
@@ -325,21 +325,10 @@
|
|
|
325
325
|
"additionalProperties": false,
|
|
326
326
|
"properties": {
|
|
327
327
|
"dynamic": {
|
|
328
|
-
"
|
|
329
|
-
{
|
|
330
|
-
"items": {
|
|
331
|
-
"type": "string"
|
|
332
|
-
},
|
|
333
|
-
"type": "array"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"const": false,
|
|
337
|
-
"type": "boolean"
|
|
338
|
-
}
|
|
339
|
-
]
|
|
328
|
+
"$ref": "#/definitions/Dynamic"
|
|
340
329
|
},
|
|
341
330
|
"value": {
|
|
342
|
-
"$ref": "#/definitions/Nxtpression"
|
|
331
|
+
"$ref": "#/definitions/Nxtpression<string[],{id:string;}>"
|
|
343
332
|
}
|
|
344
333
|
},
|
|
345
334
|
"type": "object"
|
|
@@ -358,11 +347,144 @@
|
|
|
358
347
|
"rules"
|
|
359
348
|
],
|
|
360
349
|
"type": "object"
|
|
350
|
+
},
|
|
351
|
+
"asset.deadlines": {
|
|
352
|
+
"additionalProperties": false,
|
|
353
|
+
"properties": {
|
|
354
|
+
"dynamic": {
|
|
355
|
+
"$ref": "#/definitions/Dynamic"
|
|
356
|
+
},
|
|
357
|
+
"value": {
|
|
358
|
+
"$ref": "#/definitions/Nxtpression<string,{id:string;}>"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"type": "object"
|
|
362
|
+
},
|
|
363
|
+
"asset.duration": {
|
|
364
|
+
"additionalProperties": false,
|
|
365
|
+
"properties": {
|
|
366
|
+
"dynamic": {
|
|
367
|
+
"$ref": "#/definitions/Dynamic"
|
|
368
|
+
},
|
|
369
|
+
"value": {
|
|
370
|
+
"$ref": "#/definitions/Nxtpression<number,{id:string;}>"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"type": "object"
|
|
374
|
+
},
|
|
375
|
+
"asset.embedding": {
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"properties": {
|
|
378
|
+
"dynamic": {
|
|
379
|
+
"$ref": "#/definitions/Dynamic"
|
|
380
|
+
},
|
|
381
|
+
"value": {
|
|
382
|
+
"$ref": "#/definitions/Nxtpression<string,{id:string;}>_1"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"type": "object"
|
|
386
|
+
},
|
|
387
|
+
"asset.icon": {
|
|
388
|
+
"additionalProperties": false,
|
|
389
|
+
"properties": {
|
|
390
|
+
"dynamic": {
|
|
391
|
+
"$ref": "#/definitions/Dynamic"
|
|
392
|
+
},
|
|
393
|
+
"value": {
|
|
394
|
+
"$ref": "#/definitions/Nxtpression<string,{id:string;}>_2"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"type": "object"
|
|
398
|
+
},
|
|
399
|
+
"asset.locations": {
|
|
400
|
+
"additionalProperties": false,
|
|
401
|
+
"properties": {
|
|
402
|
+
"dynamic": {
|
|
403
|
+
"$ref": "#/definitions/Dynamic"
|
|
404
|
+
},
|
|
405
|
+
"value": {
|
|
406
|
+
"$ref": "#/definitions/Nxtpression<{lat:number;lon:number;}[],{id:string;}>"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"type": "object"
|
|
410
|
+
},
|
|
411
|
+
"asset.media": {
|
|
412
|
+
"additionalProperties": false,
|
|
413
|
+
"properties": {
|
|
414
|
+
"dynamic": {
|
|
415
|
+
"$ref": "#/definitions/Dynamic"
|
|
416
|
+
},
|
|
417
|
+
"value": {
|
|
418
|
+
"$ref": "#/definitions/Nxtpression<Record<string,unknown>,{id:string;}>"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"type": "object"
|
|
422
|
+
},
|
|
423
|
+
"asset.tags": {
|
|
424
|
+
"additionalProperties": false,
|
|
425
|
+
"properties": {
|
|
426
|
+
"dynamic": {
|
|
427
|
+
"$ref": "#/definitions/Dynamic"
|
|
428
|
+
},
|
|
429
|
+
"value": {
|
|
430
|
+
"$ref": "#/definitions/Nxtpression<string[],{id:string;}>_1"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"type": "object"
|
|
434
|
+
},
|
|
435
|
+
"asset.title": {
|
|
436
|
+
"additionalProperties": false,
|
|
437
|
+
"properties": {
|
|
438
|
+
"dynamic": {
|
|
439
|
+
"$ref": "#/definitions/Dynamic"
|
|
440
|
+
},
|
|
441
|
+
"value": {
|
|
442
|
+
"$ref": "#/definitions/Nxtpression<string,{id:string;}>_3"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"type": "object"
|
|
446
|
+
},
|
|
447
|
+
"asset.types": {
|
|
448
|
+
"additionalProperties": {
|
|
449
|
+
"anyOf": [
|
|
450
|
+
{
|
|
451
|
+
"additionalProperties": false,
|
|
452
|
+
"properties": {
|
|
453
|
+
"icon": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
},
|
|
456
|
+
"label": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
},
|
|
459
|
+
"priority": {
|
|
460
|
+
"type": "number"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"required": [
|
|
464
|
+
"label"
|
|
465
|
+
],
|
|
466
|
+
"type": "object"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"type": "string"
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
"type": "object"
|
|
361
474
|
}
|
|
362
475
|
},
|
|
363
476
|
"required": [
|
|
364
477
|
"asset.assignees",
|
|
365
|
-
"asset.clone"
|
|
478
|
+
"asset.clone",
|
|
479
|
+
"asset.deadlines",
|
|
480
|
+
"asset.duration",
|
|
481
|
+
"asset.embedding",
|
|
482
|
+
"asset.icon",
|
|
483
|
+
"asset.locations",
|
|
484
|
+
"asset.media",
|
|
485
|
+
"asset.tags",
|
|
486
|
+
"asset.title",
|
|
487
|
+
"asset.types"
|
|
366
488
|
],
|
|
367
489
|
"type": "object"
|
|
368
490
|
},
|
|
@@ -1117,6 +1239,20 @@
|
|
|
1117
1239
|
],
|
|
1118
1240
|
"type": "string"
|
|
1119
1241
|
},
|
|
1242
|
+
"Dynamic": {
|
|
1243
|
+
"anyOf": [
|
|
1244
|
+
{
|
|
1245
|
+
"items": {
|
|
1246
|
+
"type": "string"
|
|
1247
|
+
},
|
|
1248
|
+
"type": "array"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"const": false,
|
|
1252
|
+
"type": "boolean"
|
|
1253
|
+
}
|
|
1254
|
+
]
|
|
1255
|
+
},
|
|
1120
1256
|
"ElectronHubApi": {
|
|
1121
1257
|
"additionalProperties": false,
|
|
1122
1258
|
"properties": {
|
|
@@ -2044,28 +2180,6 @@
|
|
|
2044
2180
|
],
|
|
2045
2181
|
"type": "object"
|
|
2046
2182
|
},
|
|
2047
|
-
"Nxtpression": {
|
|
2048
|
-
"additionalProperties": false,
|
|
2049
|
-
"properties": {
|
|
2050
|
-
"__context": {
|
|
2051
|
-
"additionalProperties": true,
|
|
2052
|
-
"description": "TS-HACK: this property doesn't really exist on the nxtpression string,\nit is only here to make sure the generic Context won't get stripped.",
|
|
2053
|
-
"properties": {},
|
|
2054
|
-
"type": "object"
|
|
2055
|
-
},
|
|
2056
|
-
"__returnValue": {
|
|
2057
|
-
"description": "TS-HACK: this property doesn't really exist on the nxtpression string,\nit is only here to make sure the generic Context won't get stripped.",
|
|
2058
|
-
"type": "string"
|
|
2059
|
-
},
|
|
2060
|
-
"length": {
|
|
2061
|
-
"type": "number"
|
|
2062
|
-
}
|
|
2063
|
-
},
|
|
2064
|
-
"required": [
|
|
2065
|
-
"length"
|
|
2066
|
-
],
|
|
2067
|
-
"type": "object"
|
|
2068
|
-
},
|
|
2069
2183
|
"Nxtpression<Record<string,unknown>,{id:string;}>": {
|
|
2070
2184
|
"additionalProperties": false,
|
|
2071
2185
|
"properties": {
|
|
@@ -3348,21 +3462,10 @@
|
|
|
3348
3462
|
"additionalProperties": false,
|
|
3349
3463
|
"properties": {
|
|
3350
3464
|
"dynamic": {
|
|
3351
|
-
"
|
|
3352
|
-
{
|
|
3353
|
-
"items": {
|
|
3354
|
-
"type": "string"
|
|
3355
|
-
},
|
|
3356
|
-
"type": "array"
|
|
3357
|
-
},
|
|
3358
|
-
{
|
|
3359
|
-
"const": false,
|
|
3360
|
-
"type": "boolean"
|
|
3361
|
-
}
|
|
3362
|
-
]
|
|
3465
|
+
"$ref": "#/definitions/Dynamic"
|
|
3363
3466
|
},
|
|
3364
3467
|
"value": {
|
|
3365
|
-
"$ref": "#/definitions/Nxtpression"
|
|
3468
|
+
"$ref": "#/definitions/Nxtpression<string[],{id:string;}>"
|
|
3366
3469
|
}
|
|
3367
3470
|
},
|
|
3368
3471
|
"type": "object"
|
|
@@ -3386,10 +3489,7 @@
|
|
|
3386
3489
|
"additionalProperties": false,
|
|
3387
3490
|
"properties": {
|
|
3388
3491
|
"dynamic": {
|
|
3389
|
-
"
|
|
3390
|
-
"type": "string"
|
|
3391
|
-
},
|
|
3392
|
-
"type": "array"
|
|
3492
|
+
"$ref": "#/definitions/Dynamic"
|
|
3393
3493
|
},
|
|
3394
3494
|
"value": {
|
|
3395
3495
|
"$ref": "#/definitions/Nxtpression<string,{id:string;}>"
|
|
@@ -3401,10 +3501,7 @@
|
|
|
3401
3501
|
"additionalProperties": false,
|
|
3402
3502
|
"properties": {
|
|
3403
3503
|
"dynamic": {
|
|
3404
|
-
"
|
|
3405
|
-
"type": "string"
|
|
3406
|
-
},
|
|
3407
|
-
"type": "array"
|
|
3504
|
+
"$ref": "#/definitions/Dynamic"
|
|
3408
3505
|
},
|
|
3409
3506
|
"value": {
|
|
3410
3507
|
"$ref": "#/definitions/Nxtpression<number,{id:string;}>"
|
|
@@ -3416,10 +3513,7 @@
|
|
|
3416
3513
|
"additionalProperties": false,
|
|
3417
3514
|
"properties": {
|
|
3418
3515
|
"dynamic": {
|
|
3419
|
-
"
|
|
3420
|
-
"type": "string"
|
|
3421
|
-
},
|
|
3422
|
-
"type": "array"
|
|
3516
|
+
"$ref": "#/definitions/Dynamic"
|
|
3423
3517
|
},
|
|
3424
3518
|
"value": {
|
|
3425
3519
|
"$ref": "#/definitions/Nxtpression<string,{id:string;}>_1"
|
|
@@ -3431,10 +3525,7 @@
|
|
|
3431
3525
|
"additionalProperties": false,
|
|
3432
3526
|
"properties": {
|
|
3433
3527
|
"dynamic": {
|
|
3434
|
-
"
|
|
3435
|
-
"type": "string"
|
|
3436
|
-
},
|
|
3437
|
-
"type": "array"
|
|
3528
|
+
"$ref": "#/definitions/Dynamic"
|
|
3438
3529
|
},
|
|
3439
3530
|
"value": {
|
|
3440
3531
|
"$ref": "#/definitions/Nxtpression<string,{id:string;}>_2"
|
|
@@ -3446,10 +3537,7 @@
|
|
|
3446
3537
|
"additionalProperties": false,
|
|
3447
3538
|
"properties": {
|
|
3448
3539
|
"dynamic": {
|
|
3449
|
-
"
|
|
3450
|
-
"type": "string"
|
|
3451
|
-
},
|
|
3452
|
-
"type": "array"
|
|
3540
|
+
"$ref": "#/definitions/Dynamic"
|
|
3453
3541
|
},
|
|
3454
3542
|
"value": {
|
|
3455
3543
|
"$ref": "#/definitions/Nxtpression<{lat:number;lon:number;}[],{id:string;}>"
|
|
@@ -3461,10 +3549,7 @@
|
|
|
3461
3549
|
"additionalProperties": false,
|
|
3462
3550
|
"properties": {
|
|
3463
3551
|
"dynamic": {
|
|
3464
|
-
"
|
|
3465
|
-
"type": "string"
|
|
3466
|
-
},
|
|
3467
|
-
"type": "array"
|
|
3552
|
+
"$ref": "#/definitions/Dynamic"
|
|
3468
3553
|
},
|
|
3469
3554
|
"value": {
|
|
3470
3555
|
"$ref": "#/definitions/Nxtpression<Record<string,unknown>,{id:string;}>"
|
|
@@ -3476,10 +3561,7 @@
|
|
|
3476
3561
|
"additionalProperties": false,
|
|
3477
3562
|
"properties": {
|
|
3478
3563
|
"dynamic": {
|
|
3479
|
-
"
|
|
3480
|
-
"type": "string"
|
|
3481
|
-
},
|
|
3482
|
-
"type": "array"
|
|
3564
|
+
"$ref": "#/definitions/Dynamic"
|
|
3483
3565
|
},
|
|
3484
3566
|
"value": {
|
|
3485
3567
|
"$ref": "#/definitions/Nxtpression<string[],{id:string;}>_1"
|
|
@@ -3491,10 +3573,7 @@
|
|
|
3491
3573
|
"additionalProperties": false,
|
|
3492
3574
|
"properties": {
|
|
3493
3575
|
"dynamic": {
|
|
3494
|
-
"
|
|
3495
|
-
"type": "string"
|
|
3496
|
-
},
|
|
3497
|
-
"type": "array"
|
|
3576
|
+
"$ref": "#/definitions/Dynamic"
|
|
3498
3577
|
},
|
|
3499
3578
|
"value": {
|
|
3500
3579
|
"$ref": "#/definitions/Nxtpression<string,{id:string;}>_3"
|