@nxtedition/types 23.0.21 → 23.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +4 -0
- package/dist/app.js +25 -9
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/nxtpression.d.ts +3 -3
- package/dist/common/nxtpression.js +39 -49
- package/dist/common/render-preset.d.ts +12 -24
- package/dist/common/render-preset.js +735 -257
- package/dist/common/render-profile.d.ts +28 -0
- package/dist/common/render-profile.js +726 -0
- package/dist/common/render-query.d.ts +18 -0
- package/dist/common/render-query.js +1093 -0
- package/dist/common/render-scene.d.ts +38 -0
- package/dist/common/render-scene.js +1116 -0
- package/dist/domains/file.d.ts +9 -1
- package/dist/domains/file.js +1258 -0
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +7 -27
- package/dist/domains/media.js +428 -138
- package/dist/domains/panel.js +218 -675
- package/dist/domains/pipeline.d.ts +1 -0
- package/dist/domains/pipeline.js +43 -6
- package/dist/domains/render-preset.d.ts +2 -2
- package/dist/domains/render.d.ts +44 -0
- package/dist/domains/render.js +1273 -0
- package/dist/index.js +16 -12
- package/dist/rpc.d.ts +3 -3
- package/dist/rpc.js +59 -50
- package/dist/schema.json +966 -120
- package/package.json +13 -13
package/dist/app.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ export declare const assertGuardElectronHubApiClipboard: __AssertionGuard<Electr
|
|
|
39
39
|
export declare const stringifyElectronHubApiClipboard: (input: ElectronHubApiClipboard) => string;
|
|
40
40
|
export declare const assertStringifyElectronHubApiClipboard: (input: unknown) => string;
|
|
41
41
|
export interface DownloadFileOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Unique ID of the download, to be used to control and track the download progress.
|
|
44
|
+
*/
|
|
45
|
+
id?: string;
|
|
42
46
|
/**
|
|
43
47
|
* URL of the resource to download.
|
|
44
48
|
*/
|
package/dist/app.js
CHANGED
|
@@ -428,18 +428,22 @@ export const assertStringifyElectronHubApiClipboard = (input, errorFactory) => {
|
|
|
428
428
|
return $so0(input);
|
|
429
429
|
}; return stringify(assert(input, errorFactory)); };
|
|
430
430
|
export const isDownloadFileOptions = input => {
|
|
431
|
-
const $io0 = input => "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
431
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
432
432
|
return "object" === typeof input && null !== input && $io0(input);
|
|
433
433
|
};
|
|
434
434
|
export const assertDownloadFileOptions = (input, errorFactory) => {
|
|
435
435
|
const __is = input => {
|
|
436
|
-
const $io0 = input => "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
436
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
437
437
|
return "object" === typeof input && null !== input && $io0(input);
|
|
438
438
|
};
|
|
439
439
|
if (false === __is(input))
|
|
440
440
|
((input, _path, _exceptionable = true) => {
|
|
441
441
|
const $guard = __typia.createAssert.guard;
|
|
442
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.
|
|
442
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
443
|
+
path: _path + ".id",
|
|
444
|
+
expected: "(string | undefined)",
|
|
445
|
+
value: input.id
|
|
446
|
+
}, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
|
|
443
447
|
path: _path + ".url",
|
|
444
448
|
expected: "string",
|
|
445
449
|
value: input.url
|
|
@@ -472,6 +476,10 @@ export const randomDownloadFileOptions = generator => {
|
|
|
472
476
|
const $generator = __typia.createRandom.generator;
|
|
473
477
|
const $pick = __typia.createRandom.pick;
|
|
474
478
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
479
|
+
id: $pick([
|
|
480
|
+
() => undefined,
|
|
481
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
482
|
+
])(),
|
|
475
483
|
url: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
476
484
|
filename: $pick([
|
|
477
485
|
() => undefined,
|
|
@@ -490,13 +498,17 @@ export const randomDownloadFileOptions = generator => {
|
|
|
490
498
|
};
|
|
491
499
|
export const assertGuardDownloadFileOptions = (input, errorFactory) => {
|
|
492
500
|
const __is = input => {
|
|
493
|
-
const $io0 = input => "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
501
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
494
502
|
return "object" === typeof input && null !== input && $io0(input);
|
|
495
503
|
};
|
|
496
504
|
if (false === __is(input))
|
|
497
505
|
((input, _path, _exceptionable = true) => {
|
|
498
506
|
const $guard = __typia.createAssertGuard.guard;
|
|
499
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.
|
|
507
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
508
|
+
path: _path + ".id",
|
|
509
|
+
expected: "(string | undefined)",
|
|
510
|
+
value: input.id
|
|
511
|
+
}, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
|
|
500
512
|
path: _path + ".url",
|
|
501
513
|
expected: "string",
|
|
502
514
|
value: input.url
|
|
@@ -526,18 +538,22 @@ export const assertGuardDownloadFileOptions = (input, errorFactory) => {
|
|
|
526
538
|
};
|
|
527
539
|
export const stringifyDownloadFileOptions = input => {
|
|
528
540
|
const $string = __typia.json.createStringify.string;
|
|
529
|
-
const $so0 = input => `{${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? $string(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? $string(input.directory) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}"url":${$string(input.url)}}`;
|
|
541
|
+
const $so0 = input => `{${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? $string(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? $string(input.directory) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}"url":${$string(input.url)}}`;
|
|
530
542
|
return $so0(input);
|
|
531
543
|
};
|
|
532
544
|
export const assertStringifyDownloadFileOptions = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
533
545
|
const __is = input => {
|
|
534
|
-
const $io0 = input => "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
546
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path);
|
|
535
547
|
return "object" === typeof input && null !== input && $io0(input);
|
|
536
548
|
};
|
|
537
549
|
if (false === __is(input))
|
|
538
550
|
((input, _path, _exceptionable = true) => {
|
|
539
551
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
540
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.
|
|
552
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
553
|
+
path: _path + ".id",
|
|
554
|
+
expected: "(string | undefined)",
|
|
555
|
+
value: input.id
|
|
556
|
+
}, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
|
|
541
557
|
path: _path + ".url",
|
|
542
558
|
expected: "string",
|
|
543
559
|
value: input.url
|
|
@@ -567,6 +583,6 @@ export const assertStringifyDownloadFileOptions = (input, errorFactory) => { con
|
|
|
567
583
|
return input;
|
|
568
584
|
}; const stringify = input => {
|
|
569
585
|
const $string = __typia.json.createAssertStringify.string;
|
|
570
|
-
const $so0 = input => `{${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? $string(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? $string(input.directory) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}"url":${$string(input.url)}}`;
|
|
586
|
+
const $so0 = input => `{${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? $string(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? $string(input.directory) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}"url":${$string(input.url)}}`;
|
|
571
587
|
return $so0(input);
|
|
572
588
|
}; return stringify(assert(input, errorFactory)); };
|
package/dist/common/index.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export * from './media.js';
|
|
|
10
10
|
export * from './pipeline.js';
|
|
11
11
|
export * from './promoted-tag.js';
|
|
12
12
|
export * from './render-preset.js';
|
|
13
|
+
export * from './render-profile.js';
|
|
14
|
+
export * from './render-query.js';
|
|
15
|
+
export * from './render-scene.js';
|
|
13
16
|
export * from './rule.js';
|
|
14
17
|
export * from './search.js';
|
|
15
18
|
export * from './settings.js';
|
package/dist/common/index.js
CHANGED
|
@@ -10,6 +10,9 @@ export * from './media.js';
|
|
|
10
10
|
export * from './pipeline.js';
|
|
11
11
|
export * from './promoted-tag.js';
|
|
12
12
|
export * from './render-preset.js';
|
|
13
|
+
export * from './render-profile.js';
|
|
14
|
+
export * from './render-query.js';
|
|
15
|
+
export * from './render-scene.js';
|
|
13
16
|
export * from './rule.js';
|
|
14
17
|
export * from './search.js';
|
|
15
18
|
export * from './settings.js';
|
|
@@ -4,13 +4,13 @@ export type Nxtpression<ReturnValue = string, Context extends object = object> =
|
|
|
4
4
|
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
5
5
|
* it is only here to make sure the generic Context won't get stripped.
|
|
6
6
|
*/
|
|
7
|
-
__context
|
|
7
|
+
__context: Context;
|
|
8
8
|
/**
|
|
9
9
|
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
10
10
|
* it is only here to make sure the generic Context won't get stripped.
|
|
11
11
|
*/
|
|
12
|
-
__returnValue
|
|
13
|
-
}) | string;
|
|
12
|
+
__returnValue: ReturnValue;
|
|
13
|
+
}) | string | ReturnValue;
|
|
14
14
|
export declare const isNxtpression: (input: unknown) => input is Nxtpression<string, object>;
|
|
15
15
|
export declare const assertNxtpression: (input: unknown) => Nxtpression<string, object>;
|
|
16
16
|
export declare const randomNxtpression: () => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isNxtpression = input => {
|
|
3
|
-
const $io0 = input => "number" === typeof input.length && (
|
|
3
|
+
const $io0 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
|
|
4
4
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
5
5
|
return true;
|
|
6
6
|
const value = input[key];
|
|
@@ -10,12 +10,11 @@ export const isNxtpression = input => {
|
|
|
10
10
|
return "string" === typeof value;
|
|
11
11
|
return true;
|
|
12
12
|
});
|
|
13
|
-
const $io1 = input => true;
|
|
14
13
|
return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
|
|
15
14
|
};
|
|
16
15
|
export const assertNxtpression = (input, errorFactory) => {
|
|
17
16
|
const __is = input => {
|
|
18
|
-
const $io0 = input => "number" === typeof input.length && (
|
|
17
|
+
const $io0 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
|
|
19
18
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
20
19
|
return true;
|
|
21
20
|
const value = input[key];
|
|
@@ -25,7 +24,6 @@ export const assertNxtpression = (input, errorFactory) => {
|
|
|
25
24
|
return "string" === typeof value;
|
|
26
25
|
return true;
|
|
27
26
|
});
|
|
28
|
-
const $io1 = input => true;
|
|
29
27
|
return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
|
|
30
28
|
};
|
|
31
29
|
if (false === __is(input))
|
|
@@ -36,17 +34,17 @@ export const assertNxtpression = (input, errorFactory) => {
|
|
|
36
34
|
path: _path + ".length",
|
|
37
35
|
expected: "number",
|
|
38
36
|
value: input.length
|
|
39
|
-
}, errorFactory)) && (
|
|
37
|
+
}, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
|
|
40
38
|
path: _path + ".__context",
|
|
41
|
-
expected: "
|
|
39
|
+
expected: "object",
|
|
42
40
|
value: input.__context
|
|
43
41
|
}, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
|
|
44
42
|
path: _path + ".__context",
|
|
45
|
-
expected: "
|
|
43
|
+
expected: "object",
|
|
46
44
|
value: input.__context
|
|
47
|
-
}, errorFactory)) && (
|
|
45
|
+
}, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
|
|
48
46
|
path: _path + ".__returnValue",
|
|
49
|
-
expected: "
|
|
47
|
+
expected: "string",
|
|
50
48
|
value: input.__returnValue
|
|
51
49
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
52
50
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
@@ -65,19 +63,19 @@ export const assertNxtpression = (input, errorFactory) => {
|
|
|
65
63
|
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
66
64
|
return (null !== input || $guard(true, {
|
|
67
65
|
path: _path + "",
|
|
68
|
-
expected: "(String & { __context
|
|
66
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
69
67
|
value: input
|
|
70
68
|
}, errorFactory)) && (undefined !== input || $guard(true, {
|
|
71
69
|
path: _path + "",
|
|
72
|
-
expected: "(String & { __context
|
|
70
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
73
71
|
value: input
|
|
74
72
|
}, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
|
|
75
73
|
path: _path + "",
|
|
76
|
-
expected: "(String & { __context
|
|
74
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
77
75
|
value: input
|
|
78
76
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
79
77
|
path: _path + "",
|
|
80
|
-
expected: "(String & { __context
|
|
78
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
81
79
|
value: input
|
|
82
80
|
}, errorFactory));
|
|
83
81
|
})(input, "$input", true);
|
|
@@ -89,14 +87,8 @@ export const randomNxtpression = generator => {
|
|
|
89
87
|
const $ro0 = (_recursive = false, _depth = 0) => {
|
|
90
88
|
const output = {
|
|
91
89
|
length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
92
|
-
__context: $
|
|
93
|
-
|
|
94
|
-
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
95
|
-
])(),
|
|
96
|
-
__returnValue: $pick([
|
|
97
|
-
() => undefined,
|
|
98
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
99
|
-
])()
|
|
90
|
+
__context: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
|
|
91
|
+
__returnValue: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
100
92
|
};
|
|
101
93
|
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
|
|
102
94
|
return output;
|
|
@@ -109,7 +101,7 @@ export const randomNxtpression = generator => {
|
|
|
109
101
|
};
|
|
110
102
|
export const assertGuardNxtpression = (input, errorFactory) => {
|
|
111
103
|
const __is = input => {
|
|
112
|
-
const $io0 = input => "number" === typeof input.length && (
|
|
104
|
+
const $io0 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
|
|
113
105
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
114
106
|
return true;
|
|
115
107
|
const value = input[key];
|
|
@@ -119,7 +111,6 @@ export const assertGuardNxtpression = (input, errorFactory) => {
|
|
|
119
111
|
return "string" === typeof value;
|
|
120
112
|
return true;
|
|
121
113
|
});
|
|
122
|
-
const $io1 = input => true;
|
|
123
114
|
return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
|
|
124
115
|
};
|
|
125
116
|
if (false === __is(input))
|
|
@@ -130,17 +121,17 @@ export const assertGuardNxtpression = (input, errorFactory) => {
|
|
|
130
121
|
path: _path + ".length",
|
|
131
122
|
expected: "number",
|
|
132
123
|
value: input.length
|
|
133
|
-
}, errorFactory)) && (
|
|
124
|
+
}, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
|
|
134
125
|
path: _path + ".__context",
|
|
135
|
-
expected: "
|
|
126
|
+
expected: "object",
|
|
136
127
|
value: input.__context
|
|
137
128
|
}, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
|
|
138
129
|
path: _path + ".__context",
|
|
139
|
-
expected: "
|
|
130
|
+
expected: "object",
|
|
140
131
|
value: input.__context
|
|
141
|
-
}, errorFactory)) && (
|
|
132
|
+
}, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
|
|
142
133
|
path: _path + ".__returnValue",
|
|
143
|
-
expected: "
|
|
134
|
+
expected: "string",
|
|
144
135
|
value: input.__returnValue
|
|
145
136
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
146
137
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
@@ -159,19 +150,19 @@ export const assertGuardNxtpression = (input, errorFactory) => {
|
|
|
159
150
|
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
160
151
|
return (null !== input || $guard(true, {
|
|
161
152
|
path: _path + "",
|
|
162
|
-
expected: "(String & { __context
|
|
153
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
163
154
|
value: input
|
|
164
155
|
}, errorFactory)) && (undefined !== input || $guard(true, {
|
|
165
156
|
path: _path + "",
|
|
166
|
-
expected: "(String & { __context
|
|
157
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
167
158
|
value: input
|
|
168
159
|
}, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
|
|
169
160
|
path: _path + "",
|
|
170
|
-
expected: "(String & { __context
|
|
161
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
171
162
|
value: input
|
|
172
163
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
173
164
|
path: _path + "",
|
|
174
|
-
expected: "(String & { __context
|
|
165
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
175
166
|
value: input
|
|
176
167
|
}, errorFactory));
|
|
177
168
|
})(input, "$input", true);
|
|
@@ -181,8 +172,8 @@ export const stringifyNxtpression = input => {
|
|
|
181
172
|
const $string = __typia.json.createStringify.string;
|
|
182
173
|
const $throws = __typia.json.createStringify.throws;
|
|
183
174
|
const $tail = __typia.json.createStringify.tail;
|
|
184
|
-
const $so0 = input => `{${$tail(
|
|
185
|
-
return ""; if (["
|
|
175
|
+
const $so0 = input => `{${$tail(`"length":${input.length},"__context":{},"__returnValue":${$string(input.__returnValue)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
176
|
+
return ""; if (["length", "__context", "__returnValue"].some(regular => regular === key))
|
|
186
177
|
return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
|
|
187
178
|
return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
188
179
|
return (() => {
|
|
@@ -191,14 +182,14 @@ export const stringifyNxtpression = input => {
|
|
|
191
182
|
if ("object" === typeof input && null !== input)
|
|
192
183
|
return $so0(input);
|
|
193
184
|
$throws({
|
|
194
|
-
expected: "(String & { __context
|
|
185
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
195
186
|
value: input
|
|
196
187
|
});
|
|
197
188
|
})();
|
|
198
189
|
};
|
|
199
190
|
export const assertStringifyNxtpression = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
200
191
|
const __is = input => {
|
|
201
|
-
const $io0 = input => "number" === typeof input.length && !Number.isNaN(input.length) && (
|
|
192
|
+
const $io0 = input => "number" === typeof input.length && !Number.isNaN(input.length) && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
|
|
202
193
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
203
194
|
return true;
|
|
204
195
|
const value = input[key];
|
|
@@ -208,7 +199,6 @@ export const assertStringifyNxtpression = (input, errorFactory) => { const asser
|
|
|
208
199
|
return "string" === typeof value;
|
|
209
200
|
return true;
|
|
210
201
|
});
|
|
211
|
-
const $io1 = input => true;
|
|
212
202
|
return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
|
|
213
203
|
};
|
|
214
204
|
if (false === __is(input))
|
|
@@ -219,17 +209,17 @@ export const assertStringifyNxtpression = (input, errorFactory) => { const asser
|
|
|
219
209
|
path: _path + ".length",
|
|
220
210
|
expected: "number",
|
|
221
211
|
value: input.length
|
|
222
|
-
}, errorFactory)) && (
|
|
212
|
+
}, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
|
|
223
213
|
path: _path + ".__context",
|
|
224
|
-
expected: "
|
|
214
|
+
expected: "object",
|
|
225
215
|
value: input.__context
|
|
226
216
|
}, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
|
|
227
217
|
path: _path + ".__context",
|
|
228
|
-
expected: "
|
|
218
|
+
expected: "object",
|
|
229
219
|
value: input.__context
|
|
230
|
-
}, errorFactory)) && (
|
|
220
|
+
}, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
|
|
231
221
|
path: _path + ".__returnValue",
|
|
232
|
-
expected: "
|
|
222
|
+
expected: "string",
|
|
233
223
|
value: input.__returnValue
|
|
234
224
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
235
225
|
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
@@ -248,19 +238,19 @@ export const assertStringifyNxtpression = (input, errorFactory) => { const asser
|
|
|
248
238
|
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
249
239
|
return (null !== input || $guard(true, {
|
|
250
240
|
path: _path + "",
|
|
251
|
-
expected: "(String & { __context
|
|
241
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
252
242
|
value: input
|
|
253
243
|
}, errorFactory)) && (undefined !== input || $guard(true, {
|
|
254
244
|
path: _path + "",
|
|
255
|
-
expected: "(String & { __context
|
|
245
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
256
246
|
value: input
|
|
257
247
|
}, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
|
|
258
248
|
path: _path + "",
|
|
259
|
-
expected: "(String & { __context
|
|
249
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
260
250
|
value: input
|
|
261
251
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
262
252
|
path: _path + "",
|
|
263
|
-
expected: "(String & { __context
|
|
253
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
264
254
|
value: input
|
|
265
255
|
}, errorFactory));
|
|
266
256
|
})(input, "$input", true);
|
|
@@ -270,8 +260,8 @@ export const assertStringifyNxtpression = (input, errorFactory) => { const asser
|
|
|
270
260
|
const $string = __typia.json.createAssertStringify.string;
|
|
271
261
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
272
262
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
273
|
-
const $so0 = input => `{${$tail(
|
|
274
|
-
return ""; if (["
|
|
263
|
+
const $so0 = input => `{${$tail(`"length":${input.length},"__context":{},"__returnValue":${$string(input.__returnValue)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
264
|
+
return ""; if (["length", "__context", "__returnValue"].some(regular => regular === key))
|
|
275
265
|
return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
|
|
276
266
|
return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
277
267
|
return (() => {
|
|
@@ -280,7 +270,7 @@ export const assertStringifyNxtpression = (input, errorFactory) => { const asser
|
|
|
280
270
|
if ("object" === typeof input && null !== input)
|
|
281
271
|
return $so0(input);
|
|
282
272
|
$throws({
|
|
283
|
-
expected: "(String & { __context
|
|
273
|
+
expected: "(String & { __context: object; __returnValue: string; } | string)",
|
|
284
274
|
value: input
|
|
285
275
|
});
|
|
286
276
|
})();
|
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import type { RenderQuery } from './render-query.js';
|
|
3
|
+
import type { RenderProfile } from './render-profile.js';
|
|
4
|
+
export interface RenderPresetObject {
|
|
5
|
+
type: RenderQuery["type"];
|
|
6
|
+
profile: RenderProfile;
|
|
6
7
|
}
|
|
8
|
+
export declare const isRenderPresetObject: (input: unknown) => input is RenderPresetObject;
|
|
9
|
+
export declare const assertRenderPresetObject: (input: unknown) => RenderPresetObject;
|
|
10
|
+
export declare const randomRenderPresetObject: () => RenderPresetObject;
|
|
11
|
+
export declare const assertGuardRenderPresetObject: __AssertionGuard<RenderPresetObject>;
|
|
12
|
+
export declare const stringifyRenderPresetObject: (input: RenderPresetObject) => string;
|
|
13
|
+
export declare const assertStringifyRenderPresetObject: (input: unknown) => string;
|
|
14
|
+
export type RenderPreset = RenderPresetObject | string;
|
|
7
15
|
export declare const isRenderPreset: (input: unknown) => input is RenderPreset;
|
|
8
16
|
export declare const assertRenderPreset: (input: unknown) => RenderPreset;
|
|
9
17
|
export declare const randomRenderPreset: () => RenderPreset;
|
|
10
18
|
export declare const assertGuardRenderPreset: __AssertionGuard<RenderPreset>;
|
|
11
19
|
export declare const stringifyRenderPreset: (input: RenderPreset) => string;
|
|
12
20
|
export declare const assertStringifyRenderPreset: (input: unknown) => string;
|
|
13
|
-
export type RenderPresetProfileFormat = "png" | "mp4";
|
|
14
|
-
export declare const isRenderPresetProfileFormat: (input: unknown) => input is RenderPresetProfileFormat;
|
|
15
|
-
export declare const assertRenderPresetProfileFormat: (input: unknown) => RenderPresetProfileFormat;
|
|
16
|
-
export declare const randomRenderPresetProfileFormat: () => RenderPresetProfileFormat;
|
|
17
|
-
export declare const assertGuardRenderPresetProfileFormat: __AssertionGuard<RenderPresetProfileFormat>;
|
|
18
|
-
export declare const stringifyRenderPresetProfileFormat: (input: RenderPresetProfileFormat) => string;
|
|
19
|
-
export declare const assertStringifyRenderPresetProfileFormat: (input: unknown) => string;
|
|
20
|
-
export interface RenderPresetProfile {
|
|
21
|
-
format: RenderPresetProfileFormat;
|
|
22
|
-
transcribe?: unknown;
|
|
23
|
-
audio?: unknown;
|
|
24
|
-
video?: unknown;
|
|
25
|
-
pick?: string[];
|
|
26
|
-
}
|
|
27
|
-
export declare const isRenderPresetProfile: (input: unknown) => input is RenderPresetProfile;
|
|
28
|
-
export declare const assertRenderPresetProfile: (input: unknown) => RenderPresetProfile;
|
|
29
|
-
export declare const randomRenderPresetProfile: () => RenderPresetProfile;
|
|
30
|
-
export declare const assertGuardRenderPresetProfile: __AssertionGuard<RenderPresetProfile>;
|
|
31
|
-
export declare const stringifyRenderPresetProfile: (input: RenderPresetProfile) => string;
|
|
32
|
-
export declare const assertStringifyRenderPresetProfile: (input: unknown) => string;
|