@nxtedition/types 23.0.39 → 23.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +0 -51
- package/dist/app.js +1 -823
- package/dist/common/block.d.ts +6 -13
- package/dist/common/block.js +597 -1607
- package/dist/common/clone.d.ts +0 -19
- package/dist/common/clone.js +1 -602
- package/dist/common/date.d.ts +0 -7
- package/dist/common/date.js +1 -59
- package/dist/common/error.d.ts +0 -7
- package/dist/common/error.js +1 -404
- package/dist/common/file.d.ts +1 -21
- package/dist/common/file.js +782 -2521
- package/dist/common/index.d.ts +20 -26
- package/dist/common/index.js +20 -134
- package/dist/common/location.d.ts +0 -6
- package/dist/common/location.js +73 -238
- package/dist/common/lock.d.ts +1 -8
- package/dist/common/lock.js +1 -211
- package/dist/common/media.d.ts +0 -7
- package/dist/common/media.js +1 -83
- package/dist/common/nxtpression.d.ts +2 -9
- package/dist/common/nxtpression.js +1 -277
- package/dist/common/pipeline.d.ts +0 -7
- package/dist/common/pipeline.js +1 -97
- package/dist/common/promoted-tag.d.ts +0 -7
- package/dist/common/promoted-tag.js +1 -147
- package/dist/common/render-preset.d.ts +2 -15
- package/dist/common/render-preset.js +1 -1202
- package/dist/common/render-profile.d.ts +0 -19
- package/dist/common/render-profile.js +1 -1052
- package/dist/common/render-query.d.ts +2 -9
- package/dist/common/render-query.js +1 -1754
- package/dist/common/render-scene.d.ts +2 -15
- package/dist/common/render-scene.js +1 -2230
- package/dist/common/rule.d.ts +1 -7
- package/dist/common/rule.js +84 -254
- package/dist/common/search.d.ts +0 -25
- package/dist/common/search.js +1 -1591
- package/dist/common/settings.d.ts +128 -121
- package/dist/common/settings.js +1 -6936
- package/dist/common/subtitle-style.d.ts +25 -0
- package/dist/common/user-notification.d.ts +0 -7
- package/dist/common/user-notification.js +1 -85
- package/dist/index.d.ts +5 -85
- package/dist/index.js +5 -187
- package/dist/nxtpression.d.ts +732 -344
- package/dist/nxtpression.js +1 -323
- package/dist/records/domains/asset.d.ts +106 -0
- package/dist/records/domains/bundle.d.ts +12 -0
- package/dist/records/domains/bundle.js +1 -0
- package/dist/records/domains/clone.d.ts +7 -0
- package/dist/records/domains/clone.js +1 -0
- package/dist/records/domains/comment-reaction.d.ts +8 -0
- package/dist/records/domains/comment-reaction.js +1 -0
- package/dist/records/domains/comment-read-mark.d.ts +8 -0
- package/dist/records/domains/comment-read-mark.js +1 -0
- package/dist/records/domains/comment.d.ts +81 -0
- package/dist/records/domains/comment.js +19 -0
- package/dist/records/domains/connection.d.ts +77 -0
- package/dist/records/domains/connection.js +1 -0
- package/dist/records/domains/contact.d.ts +9 -0
- package/dist/records/domains/contact.js +1 -0
- package/dist/records/domains/deepstream.d.ts +7 -0
- package/dist/records/domains/deepstream.js +1 -0
- package/dist/records/domains/design.d.ts +11 -0
- package/dist/records/domains/design.js +1 -0
- package/dist/records/domains/edit.d.ts +10 -0
- package/dist/records/domains/edit.js +1 -0
- package/dist/records/domains/event.d.ts +66 -0
- package/dist/records/domains/event.js +1 -0
- package/dist/records/domains/file.d.ts +26 -0
- package/dist/records/domains/file.js +1 -0
- package/dist/records/domains/general.d.ts +41 -0
- package/dist/records/domains/general.js +1 -0
- package/dist/records/domains/index.d.ts +77 -0
- package/dist/records/domains/index.js +38 -0
- package/dist/records/domains/media.d.ts +64 -0
- package/dist/records/domains/media.js +1 -0
- package/dist/records/domains/monitor.d.ts +116 -0
- package/dist/records/domains/monitor.js +1 -0
- package/dist/records/domains/panel.d.ts +55 -0
- package/dist/records/domains/panel.js +1 -0
- package/dist/records/domains/permission.d.ts +25 -0
- package/dist/records/domains/permission.js +2 -0
- package/dist/records/domains/pipeline-preset.d.ts +10 -0
- package/dist/records/domains/pipeline-preset.js +1 -0
- package/dist/records/domains/pipeline.d.ts +17 -0
- package/dist/records/domains/pipeline.js +1 -0
- package/dist/records/domains/planning.d.ts +14 -0
- package/dist/records/domains/planning.js +1 -0
- package/dist/records/domains/prompter.d.ts +18 -0
- package/dist/records/domains/prompter.js +1 -0
- package/dist/records/domains/publish.d.ts +145 -0
- package/dist/records/domains/publish.js +1 -0
- package/dist/records/domains/published.d.ts +12 -0
- package/dist/records/domains/published.js +1 -0
- package/dist/records/domains/render-preset.d.ts +5 -0
- package/dist/records/domains/render-preset.js +1 -0
- package/dist/records/domains/render.d.ts +115 -0
- package/dist/records/domains/render.js +1 -0
- package/dist/records/domains/revs.d.ts +6 -0
- package/dist/records/domains/revs.js +1 -0
- package/dist/records/domains/role.d.ts +6 -0
- package/dist/records/domains/role.js +1 -0
- package/dist/records/domains/script.d.ts +101 -0
- package/dist/records/domains/script.js +1 -0
- package/dist/records/domains/search.d.ts +9 -0
- package/dist/records/domains/search.js +1 -0
- package/dist/records/domains/settings.d.ts +5 -0
- package/dist/records/domains/settings.js +1 -0
- package/dist/records/domains/storyboard.d.ts +10 -0
- package/dist/records/domains/storyboard.js +1 -0
- package/dist/records/domains/subtitle-style.d.ts +13 -0
- package/dist/records/domains/subtitle-style.js +1 -0
- package/dist/records/domains/subtitle.d.ts +12 -0
- package/dist/records/domains/subtitle.js +1 -0
- package/dist/records/domains/template.d.ts +10 -0
- package/dist/records/domains/template.js +1 -0
- package/dist/records/domains/user-notification-status.d.ts +30 -0
- package/dist/records/domains/user-notification-status.js +1 -0
- package/dist/records/domains/user-notification.d.ts +69 -0
- package/dist/records/domains/user-notification.js +1 -0
- package/dist/records/domains/user.d.ts +23 -0
- package/dist/records/domains/user.js +1 -0
- package/dist/records/exact/asset.d.ts +83 -0
- package/dist/records/exact/asset.js +1 -0
- package/dist/records/exact/index.d.ts +36 -0
- package/dist/records/exact/index.js +4 -0
- package/dist/records/exact/media.d.ts +52 -0
- package/dist/records/exact/media.js +1 -0
- package/dist/records/exact/monitor.d.ts +46 -0
- package/dist/records/exact/monitor.js +1 -0
- package/dist/records/exact/storage.d.ts +32 -0
- package/dist/records/exact/storage.js +1 -0
- package/dist/records/index.d.ts +10 -0
- package/dist/records/index.js +2 -0
- package/dist/records/utils.d.ts +7 -0
- package/dist/records/utils.js +1 -0
- package/dist/records/utils.tds.d.ts +1 -0
- package/dist/records/utils.tds.js +7 -0
- package/dist/records/validate/assert-guard.d.ts +4 -0
- package/dist/records/validate/assert-guard.js +15861 -0
- package/dist/records/validate/assert.d.ts +4 -0
- package/dist/records/validate/assert.js +15990 -0
- package/dist/records/validate/is.d.ts +4 -0
- package/dist/records/validate/is.js +1017 -0
- package/dist/records/validate/schemas.d.ts +9 -0
- package/dist/records/validate/schemas.js +12613 -0
- package/dist/records/validate/stringify.d.ts +4 -0
- package/dist/records/validate/stringify.js +1904 -0
- package/dist/records/validate/utils.d.ts +15 -0
- package/dist/records/validate/utils.js +18 -0
- package/dist/records/validate/utils.test.d.ts +1 -0
- package/dist/records/validate/utils.test.js +35 -0
- package/dist/records/validate/validate.d.ts +5 -0
- package/dist/records/validate/validate.js +14943 -0
- package/dist/rpc.d.ts +13 -14
- package/dist/rpc.js +126 -511
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +26 -15
- package/dist/asset.d.ts +0 -72
- package/dist/domains/asset.d.ts +0 -227
- package/dist/domains/asset.js +0 -2672
- package/dist/domains/bundle.d.ts +0 -25
- package/dist/domains/bundle.js +0 -512
- package/dist/domains/clone.d.ts +0 -14
- package/dist/domains/clone.js +0 -192
- package/dist/domains/comment-reaction.d.ts +0 -15
- package/dist/domains/comment-reaction.js +0 -115
- package/dist/domains/comment-read-mark.d.ts +0 -15
- package/dist/domains/comment-read-mark.js +0 -115
- package/dist/domains/comment.d.ts +0 -153
- package/dist/domains/comment.js +0 -5906
- package/dist/domains/connection.d.ts +0 -141
- package/dist/domains/connection.js +0 -5860
- package/dist/domains/contact.d.ts +0 -16
- package/dist/domains/contact.js +0 -149
- package/dist/domains/deepstream.d.ts +0 -14
- package/dist/domains/deepstream.js +0 -139
- package/dist/domains/design.d.ts +0 -24
- package/dist/domains/design.js +0 -303
- package/dist/domains/edit.d.ts +0 -17
- package/dist/domains/edit.js +0 -224
- package/dist/domains/event.d.ts +0 -42
- package/dist/domains/event.js +0 -754
- package/dist/domains/file.d.ts +0 -51
- package/dist/domains/file.js +0 -2506
- package/dist/domains/general.d.ts +0 -84
- package/dist/domains/general.js +0 -906
- package/dist/domains/index.d.ts +0 -75
- package/dist/domains/index.js +0 -37
- package/dist/domains/media.d.ts +0 -113
- package/dist/domains/media.js +0 -4553
- package/dist/domains/monitor.d.ts +0 -416
- package/dist/domains/monitor.js +0 -6382
- package/dist/domains/panel.d.ts +0 -371
- package/dist/domains/panel.js +0 -3198
- package/dist/domains/permission.d.ts +0 -61
- package/dist/domains/permission.js +0 -1926
- package/dist/domains/pipeline-preset.d.ts +0 -17
- package/dist/domains/pipeline-preset.js +0 -236
- package/dist/domains/pipeline.d.ts +0 -30
- package/dist/domains/pipeline.js +0 -460
- package/dist/domains/planning.d.ts +0 -33
- package/dist/domains/planning.js +0 -324
- package/dist/domains/publish.d.ts +0 -1397
- package/dist/domains/publish.js +0 -34436
- package/dist/domains/published.d.ts +0 -19
- package/dist/domains/published.js +0 -204
- package/dist/domains/render-preset.d.ts +0 -4
- package/dist/domains/render.d.ts +0 -172
- package/dist/domains/render.js +0 -4783
- package/dist/domains/revs.d.ts +0 -13
- package/dist/domains/revs.js +0 -125
- package/dist/domains/role.d.ts +0 -13
- package/dist/domains/role.js +0 -119
- package/dist/domains/script.d.ts +0 -13
- package/dist/domains/script.js +0 -125
- package/dist/domains/search.d.ts +0 -16
- package/dist/domains/search.js +0 -168
- package/dist/domains/settings.d.ts +0 -12
- package/dist/domains/settings.js +0 -6624
- package/dist/domains/storyboard.d.ts +0 -14
- package/dist/domains/storyboard.js +0 -125
- package/dist/domains/subtitle-style.d.ts +0 -37
- package/dist/domains/subtitle-style.js +0 -485
- package/dist/domains/subtitle.d.ts +0 -19
- package/dist/domains/subtitle.js +0 -212
- package/dist/domains/template.d.ts +0 -23
- package/dist/domains/template.js +0 -372
- package/dist/domains/user-notification-status.d.ts +0 -55
- package/dist/domains/user-notification-status.js +0 -715
- package/dist/domains/user-notification.d.ts +0 -118
- package/dist/domains/user-notification.js +0 -3040
- package/dist/domains/user.d.ts +0 -48
- package/dist/domains/user.js +0 -481
- package/dist/monitor.d.ts +0 -71
- package/dist/monitor.js +0 -1942
- package/dist/schema.json +0 -9075
- package/dist/storage.d.ts +0 -51
- package/dist/storage.js +0 -1036
- /package/dist/{asset.js → common/subtitle-style.js} +0 -0
- /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
package/dist/common/pipeline.js
CHANGED
|
@@ -1,97 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const isPipelineSortMode = input => {
|
|
3
|
-
const $iv1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
4
|
-
return true === $iv1.has(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertPipelineSortMode = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $iv1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
9
|
-
return true === $iv1.has(input);
|
|
10
|
-
};
|
|
11
|
-
if (false === __is(input))
|
|
12
|
-
((input, _path, _exceptionable = true) => {
|
|
13
|
-
const $guard = __typia.createAssert.guard;
|
|
14
|
-
const $av1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
15
|
-
return true === $av1.has(input) || $guard(true, {
|
|
16
|
-
path: _path + "",
|
|
17
|
-
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\")",
|
|
18
|
-
value: input
|
|
19
|
-
}, errorFactory);
|
|
20
|
-
})(input, "$input", true);
|
|
21
|
-
return input;
|
|
22
|
-
};
|
|
23
|
-
export const randomPipelineSortMode = generator => {
|
|
24
|
-
const $pick = __typia.createRandom.pick;
|
|
25
|
-
return $pick([
|
|
26
|
-
() => "default",
|
|
27
|
-
() => "manual",
|
|
28
|
-
() => "az",
|
|
29
|
-
() => "za",
|
|
30
|
-
() => "newest",
|
|
31
|
-
() => "oldest",
|
|
32
|
-
() => "mostrecent",
|
|
33
|
-
() => "leastrecent",
|
|
34
|
-
() => "earliestdeadline",
|
|
35
|
-
() => "latestdeadline"
|
|
36
|
-
])();
|
|
37
|
-
};
|
|
38
|
-
export const assertGuardPipelineSortMode = (input, errorFactory) => {
|
|
39
|
-
const __is = input => {
|
|
40
|
-
const $iv1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
41
|
-
return true === $iv1.has(input);
|
|
42
|
-
};
|
|
43
|
-
if (false === __is(input))
|
|
44
|
-
((input, _path, _exceptionable = true) => {
|
|
45
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
46
|
-
const $av1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
47
|
-
return true === $av1.has(input) || $guard(true, {
|
|
48
|
-
path: _path + "",
|
|
49
|
-
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\")",
|
|
50
|
-
value: input
|
|
51
|
-
}, errorFactory);
|
|
52
|
-
})(input, "$input", true);
|
|
53
|
-
};
|
|
54
|
-
export const stringifyPipelineSortMode = input => {
|
|
55
|
-
const $string = __typia.json.createStringify.string;
|
|
56
|
-
const $throws = __typia.json.createStringify.throws;
|
|
57
|
-
return (() => {
|
|
58
|
-
if ("string" === typeof input)
|
|
59
|
-
return $string(input);
|
|
60
|
-
if ("string" === typeof input)
|
|
61
|
-
return "\"" + input + "\"";
|
|
62
|
-
$throws({
|
|
63
|
-
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\")",
|
|
64
|
-
value: input
|
|
65
|
-
});
|
|
66
|
-
})();
|
|
67
|
-
};
|
|
68
|
-
export const assertStringifyPipelineSortMode = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
69
|
-
const __is = input => {
|
|
70
|
-
const $iv1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
71
|
-
return true === $iv1.has(input);
|
|
72
|
-
};
|
|
73
|
-
if (false === __is(input))
|
|
74
|
-
((input, _path, _exceptionable = true) => {
|
|
75
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
76
|
-
const $av1 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
77
|
-
return true === $av1.has(input) || $guard(true, {
|
|
78
|
-
path: _path + "",
|
|
79
|
-
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\")",
|
|
80
|
-
value: input
|
|
81
|
-
}, errorFactory);
|
|
82
|
-
})(input, "$input", true);
|
|
83
|
-
return input;
|
|
84
|
-
}; const stringify = input => {
|
|
85
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
86
|
-
const $throws = __typia.json.createAssertStringify.throws;
|
|
87
|
-
return (() => {
|
|
88
|
-
if ("string" === typeof input)
|
|
89
|
-
return $string(input);
|
|
90
|
-
if ("string" === typeof input)
|
|
91
|
-
return "\"" + input + "\"";
|
|
92
|
-
$throws({
|
|
93
|
-
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\")",
|
|
94
|
-
value: input
|
|
95
|
-
});
|
|
96
|
-
})();
|
|
97
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
1
|
export interface PromotedTag {
|
|
3
2
|
name: string | null;
|
|
4
3
|
icon: string | null;
|
|
5
4
|
color: string | null;
|
|
6
5
|
description: string | null;
|
|
7
6
|
}
|
|
8
|
-
export declare const isPromotedTag: (input: unknown) => input is PromotedTag;
|
|
9
|
-
export declare const assertPromotedTag: (input: unknown) => PromotedTag;
|
|
10
|
-
export declare const randomPromotedTag: () => PromotedTag;
|
|
11
|
-
export declare const assertGuardPromotedTag: __AssertionGuard<PromotedTag>;
|
|
12
|
-
export declare const stringifyPromotedTag: (input: PromotedTag) => string;
|
|
13
|
-
export declare const assertStringifyPromotedTag: (input: unknown) => string;
|
|
@@ -1,147 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const isPromotedTag = input => {
|
|
3
|
-
const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
4
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertPromotedTag = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
9
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
10
|
-
};
|
|
11
|
-
if (false === __is(input))
|
|
12
|
-
((input, _path, _exceptionable = true) => {
|
|
13
|
-
const $guard = __typia.createAssert.guard;
|
|
14
|
-
const $ao0 = (input, _path, _exceptionable = true) => (null === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
15
|
-
path: _path + ".name",
|
|
16
|
-
expected: "(null | string)",
|
|
17
|
-
value: input.name
|
|
18
|
-
}, errorFactory)) && (null === input.icon || "string" === typeof input.icon || $guard(_exceptionable, {
|
|
19
|
-
path: _path + ".icon",
|
|
20
|
-
expected: "(null | string)",
|
|
21
|
-
value: input.icon
|
|
22
|
-
}, errorFactory)) && (null === input.color || "string" === typeof input.color || $guard(_exceptionable, {
|
|
23
|
-
path: _path + ".color",
|
|
24
|
-
expected: "(null | string)",
|
|
25
|
-
value: input.color
|
|
26
|
-
}, errorFactory)) && (null === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
27
|
-
path: _path + ".description",
|
|
28
|
-
expected: "(null | string)",
|
|
29
|
-
value: input.description
|
|
30
|
-
}, errorFactory));
|
|
31
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
32
|
-
path: _path + "",
|
|
33
|
-
expected: "PromotedTag",
|
|
34
|
-
value: input
|
|
35
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
36
|
-
path: _path + "",
|
|
37
|
-
expected: "PromotedTag",
|
|
38
|
-
value: input
|
|
39
|
-
}, errorFactory);
|
|
40
|
-
})(input, "$input", true);
|
|
41
|
-
return input;
|
|
42
|
-
};
|
|
43
|
-
export const randomPromotedTag = generator => {
|
|
44
|
-
const $generator = __typia.createRandom.generator;
|
|
45
|
-
const $pick = __typia.createRandom.pick;
|
|
46
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
47
|
-
name: $pick([
|
|
48
|
-
() => null,
|
|
49
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
50
|
-
])(),
|
|
51
|
-
icon: $pick([
|
|
52
|
-
() => null,
|
|
53
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
54
|
-
])(),
|
|
55
|
-
color: $pick([
|
|
56
|
-
() => null,
|
|
57
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
58
|
-
])(),
|
|
59
|
-
description: $pick([
|
|
60
|
-
() => null,
|
|
61
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
62
|
-
])()
|
|
63
|
-
});
|
|
64
|
-
return $ro0();
|
|
65
|
-
};
|
|
66
|
-
export const assertGuardPromotedTag = (input, errorFactory) => {
|
|
67
|
-
const __is = input => {
|
|
68
|
-
const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
69
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
70
|
-
};
|
|
71
|
-
if (false === __is(input))
|
|
72
|
-
((input, _path, _exceptionable = true) => {
|
|
73
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
74
|
-
const $ao0 = (input, _path, _exceptionable = true) => (null === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
75
|
-
path: _path + ".name",
|
|
76
|
-
expected: "(null | string)",
|
|
77
|
-
value: input.name
|
|
78
|
-
}, errorFactory)) && (null === input.icon || "string" === typeof input.icon || $guard(_exceptionable, {
|
|
79
|
-
path: _path + ".icon",
|
|
80
|
-
expected: "(null | string)",
|
|
81
|
-
value: input.icon
|
|
82
|
-
}, errorFactory)) && (null === input.color || "string" === typeof input.color || $guard(_exceptionable, {
|
|
83
|
-
path: _path + ".color",
|
|
84
|
-
expected: "(null | string)",
|
|
85
|
-
value: input.color
|
|
86
|
-
}, errorFactory)) && (null === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
87
|
-
path: _path + ".description",
|
|
88
|
-
expected: "(null | string)",
|
|
89
|
-
value: input.description
|
|
90
|
-
}, errorFactory));
|
|
91
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
92
|
-
path: _path + "",
|
|
93
|
-
expected: "PromotedTag",
|
|
94
|
-
value: input
|
|
95
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
96
|
-
path: _path + "",
|
|
97
|
-
expected: "PromotedTag",
|
|
98
|
-
value: input
|
|
99
|
-
}, errorFactory);
|
|
100
|
-
})(input, "$input", true);
|
|
101
|
-
};
|
|
102
|
-
export const stringifyPromotedTag = input => {
|
|
103
|
-
const $string = __typia.json.createStringify.string;
|
|
104
|
-
const $so0 = input => `{"name":${null !== input.name ? $string(input.name) : "null"},"icon":${null !== input.icon ? $string(input.icon) : "null"},"color":${null !== input.color ? $string(input.color) : "null"},"description":${null !== input.description ? $string(input.description) : "null"}}`;
|
|
105
|
-
return $so0(input);
|
|
106
|
-
};
|
|
107
|
-
export const assertStringifyPromotedTag = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
108
|
-
const __is = input => {
|
|
109
|
-
const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
110
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
111
|
-
};
|
|
112
|
-
if (false === __is(input))
|
|
113
|
-
((input, _path, _exceptionable = true) => {
|
|
114
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
115
|
-
const $ao0 = (input, _path, _exceptionable = true) => (null === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
116
|
-
path: _path + ".name",
|
|
117
|
-
expected: "(null | string)",
|
|
118
|
-
value: input.name
|
|
119
|
-
}, errorFactory)) && (null === input.icon || "string" === typeof input.icon || $guard(_exceptionable, {
|
|
120
|
-
path: _path + ".icon",
|
|
121
|
-
expected: "(null | string)",
|
|
122
|
-
value: input.icon
|
|
123
|
-
}, errorFactory)) && (null === input.color || "string" === typeof input.color || $guard(_exceptionable, {
|
|
124
|
-
path: _path + ".color",
|
|
125
|
-
expected: "(null | string)",
|
|
126
|
-
value: input.color
|
|
127
|
-
}, errorFactory)) && (null === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
128
|
-
path: _path + ".description",
|
|
129
|
-
expected: "(null | string)",
|
|
130
|
-
value: input.description
|
|
131
|
-
}, errorFactory));
|
|
132
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
133
|
-
path: _path + "",
|
|
134
|
-
expected: "PromotedTag",
|
|
135
|
-
value: input
|
|
136
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
137
|
-
path: _path + "",
|
|
138
|
-
expected: "PromotedTag",
|
|
139
|
-
value: input
|
|
140
|
-
}, errorFactory);
|
|
141
|
-
})(input, "$input", true);
|
|
142
|
-
return input;
|
|
143
|
-
}; const stringify = input => {
|
|
144
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
145
|
-
const $so0 = input => `{"name":${null !== input.name ? $string(input.name) : "null"},"icon":${null !== input.icon ? $string(input.icon) : "null"},"color":${null !== input.color ? $string(input.color) : "null"},"description":${null !== input.description ? $string(input.description) : "null"}}`;
|
|
146
|
-
return $so0(input);
|
|
147
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
1
|
+
export {};
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
import type { RenderProfile } from './render-profile.js';
|
|
1
|
+
import type { RenderQuery } from './render-query.ts';
|
|
2
|
+
import type { RenderProfile } from './render-profile.ts';
|
|
4
3
|
export interface RenderPresetObject {
|
|
5
4
|
type: RenderQuery["type"];
|
|
6
5
|
profile: RenderProfile;
|
|
7
6
|
}
|
|
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
7
|
export type RenderPreset = RenderPresetObject | string;
|
|
15
|
-
export declare const isRenderPreset: (input: unknown) => input is RenderPreset;
|
|
16
|
-
export declare const assertRenderPreset: (input: unknown) => RenderPreset;
|
|
17
|
-
export declare const randomRenderPreset: () => RenderPreset;
|
|
18
|
-
export declare const assertGuardRenderPreset: __AssertionGuard<RenderPreset>;
|
|
19
|
-
export declare const stringifyRenderPreset: (input: RenderPreset) => string;
|
|
20
|
-
export declare const assertStringifyRenderPreset: (input: unknown) => string;
|