@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/index.d.ts
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './render-
|
|
13
|
-
export * from './render-
|
|
14
|
-
export * from './render-
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './error.
|
|
20
|
-
export * from './user-notification.
|
|
1
|
+
export * from './block.ts';
|
|
2
|
+
export * from './clone.ts';
|
|
3
|
+
export * from './date.ts';
|
|
4
|
+
export * from './file.ts';
|
|
5
|
+
export * from './location.ts';
|
|
6
|
+
export * from './nxtpression.ts';
|
|
7
|
+
export * from './lock.ts';
|
|
8
|
+
export * from './media.ts';
|
|
9
|
+
export * from './pipeline.ts';
|
|
10
|
+
export * from './promoted-tag.ts';
|
|
11
|
+
export * from './render-preset.ts';
|
|
12
|
+
export * from './render-profile.ts';
|
|
13
|
+
export * from './render-query.ts';
|
|
14
|
+
export * from './render-scene.ts';
|
|
15
|
+
export * from './rule.ts';
|
|
16
|
+
export * from './search.ts';
|
|
17
|
+
export * from './settings.ts';
|
|
18
|
+
export * from './subtitle-style.ts';
|
|
19
|
+
export * from './error.ts';
|
|
20
|
+
export * from './user-notification.ts';
|
|
21
21
|
export interface Message {
|
|
22
22
|
level: number;
|
|
23
23
|
code: string;
|
|
24
24
|
msg: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const isMessage: (input: unknown) => input is Message;
|
|
27
|
-
export declare const assertMessage: (input: unknown) => Message;
|
|
28
|
-
export declare const randomMessage: () => Message;
|
|
29
|
-
export declare const assertGuardMessage: __AssertionGuard<Message>;
|
|
30
|
-
export declare const stringifyMessage: (input: Message) => string;
|
|
31
|
-
export declare const assertStringifyMessage: (input: unknown) => string;
|
package/dist/common/index.js
CHANGED
|
@@ -1,134 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export const isMessage = input => {
|
|
22
|
-
return "object" === typeof input && null !== input && ("number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg);
|
|
23
|
-
};
|
|
24
|
-
export const assertMessage = (input, errorFactory) => {
|
|
25
|
-
const __is = input => {
|
|
26
|
-
return "object" === typeof input && null !== input && ("number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg);
|
|
27
|
-
};
|
|
28
|
-
if (false === __is(input))
|
|
29
|
-
((input, _path, _exceptionable = true) => {
|
|
30
|
-
const $guard = __typia.createAssert.guard;
|
|
31
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.level || $guard(_exceptionable, {
|
|
32
|
-
path: _path + ".level",
|
|
33
|
-
expected: "number",
|
|
34
|
-
value: input.level
|
|
35
|
-
}, errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
|
|
36
|
-
path: _path + ".code",
|
|
37
|
-
expected: "string",
|
|
38
|
-
value: input.code
|
|
39
|
-
}, errorFactory)) && ("string" === typeof input.msg || $guard(_exceptionable, {
|
|
40
|
-
path: _path + ".msg",
|
|
41
|
-
expected: "string",
|
|
42
|
-
value: input.msg
|
|
43
|
-
}, errorFactory));
|
|
44
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
45
|
-
path: _path + "",
|
|
46
|
-
expected: "Message",
|
|
47
|
-
value: input
|
|
48
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
49
|
-
path: _path + "",
|
|
50
|
-
expected: "Message",
|
|
51
|
-
value: input
|
|
52
|
-
}, errorFactory);
|
|
53
|
-
})(input, "$input", true);
|
|
54
|
-
return input;
|
|
55
|
-
};
|
|
56
|
-
export const randomMessage = generator => {
|
|
57
|
-
const $generator = __typia.createRandom.generator;
|
|
58
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
59
|
-
level: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
60
|
-
code: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
61
|
-
msg: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
62
|
-
});
|
|
63
|
-
return $ro0();
|
|
64
|
-
};
|
|
65
|
-
export const assertGuardMessage = (input, errorFactory) => {
|
|
66
|
-
const __is = input => {
|
|
67
|
-
return "object" === typeof input && null !== input && ("number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg);
|
|
68
|
-
};
|
|
69
|
-
if (false === __is(input))
|
|
70
|
-
((input, _path, _exceptionable = true) => {
|
|
71
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
72
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.level || $guard(_exceptionable, {
|
|
73
|
-
path: _path + ".level",
|
|
74
|
-
expected: "number",
|
|
75
|
-
value: input.level
|
|
76
|
-
}, errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
|
|
77
|
-
path: _path + ".code",
|
|
78
|
-
expected: "string",
|
|
79
|
-
value: input.code
|
|
80
|
-
}, errorFactory)) && ("string" === typeof input.msg || $guard(_exceptionable, {
|
|
81
|
-
path: _path + ".msg",
|
|
82
|
-
expected: "string",
|
|
83
|
-
value: input.msg
|
|
84
|
-
}, errorFactory));
|
|
85
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
86
|
-
path: _path + "",
|
|
87
|
-
expected: "Message",
|
|
88
|
-
value: input
|
|
89
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
90
|
-
path: _path + "",
|
|
91
|
-
expected: "Message",
|
|
92
|
-
value: input
|
|
93
|
-
}, errorFactory);
|
|
94
|
-
})(input, "$input", true);
|
|
95
|
-
};
|
|
96
|
-
export const stringifyMessage = input => {
|
|
97
|
-
const $string = __typia.json.createStringify.string;
|
|
98
|
-
return `{"level":${input.level},"code":${$string(input.code)},"msg":${$string(input.msg)}}`;
|
|
99
|
-
};
|
|
100
|
-
export const assertStringifyMessage = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
101
|
-
const __is = input => {
|
|
102
|
-
return "object" === typeof input && null !== input && ("number" === typeof input.level && !Number.isNaN(input.level) && "string" === typeof input.code && "string" === typeof input.msg);
|
|
103
|
-
};
|
|
104
|
-
if (false === __is(input))
|
|
105
|
-
((input, _path, _exceptionable = true) => {
|
|
106
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
107
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.level && !Number.isNaN(input.level) || $guard(_exceptionable, {
|
|
108
|
-
path: _path + ".level",
|
|
109
|
-
expected: "number",
|
|
110
|
-
value: input.level
|
|
111
|
-
}, errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
|
|
112
|
-
path: _path + ".code",
|
|
113
|
-
expected: "string",
|
|
114
|
-
value: input.code
|
|
115
|
-
}, errorFactory)) && ("string" === typeof input.msg || $guard(_exceptionable, {
|
|
116
|
-
path: _path + ".msg",
|
|
117
|
-
expected: "string",
|
|
118
|
-
value: input.msg
|
|
119
|
-
}, errorFactory));
|
|
120
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
121
|
-
path: _path + "",
|
|
122
|
-
expected: "Message",
|
|
123
|
-
value: input
|
|
124
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
125
|
-
path: _path + "",
|
|
126
|
-
expected: "Message",
|
|
127
|
-
value: input
|
|
128
|
-
}, errorFactory);
|
|
129
|
-
})(input, "$input", true);
|
|
130
|
-
return input;
|
|
131
|
-
}; const stringify = input => {
|
|
132
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
133
|
-
return `{"level":${input.level},"code":${$string(input.code)},"msg":${$string(input.msg)}}`;
|
|
134
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
1
|
+
export * from "./block.js";
|
|
2
|
+
export * from "./clone.js";
|
|
3
|
+
export * from "./date.js";
|
|
4
|
+
export * from "./file.js";
|
|
5
|
+
export * from "./location.js";
|
|
6
|
+
export * from "./nxtpression.js";
|
|
7
|
+
export * from "./lock.js";
|
|
8
|
+
export * from "./media.js";
|
|
9
|
+
export * from "./pipeline.js";
|
|
10
|
+
export * from "./promoted-tag.js";
|
|
11
|
+
export * from "./render-preset.js";
|
|
12
|
+
export * from "./render-profile.js";
|
|
13
|
+
export * from "./render-query.js";
|
|
14
|
+
export * from "./render-scene.js";
|
|
15
|
+
export * from "./rule.js";
|
|
16
|
+
export * from "./search.js";
|
|
17
|
+
export * from "./settings.js";
|
|
18
|
+
export * from "./subtitle-style.js";
|
|
19
|
+
export * from "./error.js";
|
|
20
|
+
export * from "./user-notification.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
1
|
export interface Location {
|
|
3
2
|
id: string;
|
|
4
3
|
size: number | null;
|
|
@@ -10,9 +9,4 @@ export interface Location {
|
|
|
10
9
|
zone: string;
|
|
11
10
|
allows: string[];
|
|
12
11
|
}
|
|
13
|
-
export declare const isLocation: (input: unknown) => input is Location;
|
|
14
12
|
export declare const assertLocation: (input: unknown) => Location;
|
|
15
|
-
export declare const randomLocation: () => Location;
|
|
16
|
-
export declare const assertGuardLocation: __AssertionGuard<Location>;
|
|
17
|
-
export declare const stringifyLocation: (input: Location) => string;
|
|
18
|
-
export declare const assertStringifyLocation: (input: unknown) => string;
|
package/dist/common/location.js
CHANGED
|
@@ -1,239 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
|
|
2
|
+
import typia from "typia";
|
|
3
|
+
export const assertLocation = (() => { const _io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4
|
+
method: "typia.createAssert",
|
|
5
|
+
path: _path + ".id",
|
|
6
|
+
expected: "string",
|
|
7
|
+
value: input.id
|
|
8
|
+
}, _errorFactory)) && (null === input.size || "number" === typeof input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9
|
+
method: "typia.createAssert",
|
|
10
|
+
path: _path + ".size",
|
|
11
|
+
expected: "(null | number)",
|
|
12
|
+
value: input.size
|
|
13
|
+
}, _errorFactory)) && (null === input.free || "number" === typeof input.free || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
14
|
+
method: "typia.createAssert",
|
|
15
|
+
path: _path + ".free",
|
|
16
|
+
expected: "(null | number)",
|
|
17
|
+
value: input.free
|
|
18
|
+
}, _errorFactory)) && (null === input.capacity || "number" === typeof input.capacity || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
19
|
+
method: "typia.createAssert",
|
|
20
|
+
path: _path + ".capacity",
|
|
21
|
+
expected: "(null | number)",
|
|
22
|
+
value: input.capacity
|
|
23
|
+
}, _errorFactory)) && (null === input.available || "number" === typeof input.available || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
24
|
+
method: "typia.createAssert",
|
|
25
|
+
path: _path + ".available",
|
|
26
|
+
expected: "(null | number)",
|
|
27
|
+
value: input.available
|
|
28
|
+
}, _errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
29
|
+
method: "typia.createAssert",
|
|
30
|
+
path: _path + ".cache",
|
|
31
|
+
expected: "(boolean | null)",
|
|
32
|
+
value: input.cache
|
|
33
|
+
}, _errorFactory)) && ("string" === typeof input.origin || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
34
|
+
method: "typia.createAssert",
|
|
35
|
+
path: _path + ".origin",
|
|
36
|
+
expected: "string",
|
|
37
|
+
value: input.origin
|
|
38
|
+
}, _errorFactory)) && ("string" === typeof input.zone || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
39
|
+
method: "typia.createAssert",
|
|
40
|
+
path: _path + ".zone",
|
|
41
|
+
expected: "string",
|
|
42
|
+
value: input.zone
|
|
43
|
+
}, _errorFactory)) && ((Array.isArray(input.allows) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
44
|
+
method: "typia.createAssert",
|
|
45
|
+
path: _path + ".allows",
|
|
46
|
+
expected: "Array<string>",
|
|
47
|
+
value: input.allows
|
|
48
|
+
}, _errorFactory)) && input.allows.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
49
|
+
method: "typia.createAssert",
|
|
50
|
+
path: _path + ".allows[" + _index2 + "]",
|
|
51
|
+
expected: "string",
|
|
52
|
+
value: elem
|
|
53
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
54
|
+
method: "typia.createAssert",
|
|
55
|
+
path: _path + ".allows",
|
|
56
|
+
expected: "Array<string>",
|
|
57
|
+
value: input.allows
|
|
58
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
59
|
+
if (false === __is(input)) {
|
|
60
|
+
_errorFactory = errorFactory;
|
|
61
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
62
|
+
method: "typia.createAssert",
|
|
63
|
+
path: _path + "",
|
|
64
|
+
expected: "Location",
|
|
65
|
+
value: input
|
|
66
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
67
|
+
method: "typia.createAssert",
|
|
68
|
+
path: _path + "",
|
|
69
|
+
expected: "Location",
|
|
70
|
+
value: input
|
|
71
|
+
}, _errorFactory))(input, "$input", true);
|
|
72
|
+
}
|
|
69
73
|
return input;
|
|
70
|
-
};
|
|
71
|
-
export const randomLocation = generator => {
|
|
72
|
-
const $generator = __typia.createRandom.generator;
|
|
73
|
-
const $pick = __typia.createRandom.pick;
|
|
74
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
75
|
-
id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
76
|
-
size: $pick([
|
|
77
|
-
() => null,
|
|
78
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
79
|
-
])(),
|
|
80
|
-
free: $pick([
|
|
81
|
-
() => null,
|
|
82
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
83
|
-
])(),
|
|
84
|
-
capacity: $pick([
|
|
85
|
-
() => null,
|
|
86
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
87
|
-
])(),
|
|
88
|
-
available: $pick([
|
|
89
|
-
() => null,
|
|
90
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
91
|
-
])(),
|
|
92
|
-
cache: $pick([
|
|
93
|
-
() => null,
|
|
94
|
-
() => (generator?.boolean ?? $generator.boolean)()
|
|
95
|
-
])(),
|
|
96
|
-
origin: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
97
|
-
zone: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
98
|
-
allows: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
99
|
-
});
|
|
100
|
-
return $ro0();
|
|
101
|
-
};
|
|
102
|
-
export const assertGuardLocation = (input, errorFactory) => {
|
|
103
|
-
const __is = input => {
|
|
104
|
-
const $io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem));
|
|
105
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
106
|
-
};
|
|
107
|
-
if (false === __is(input))
|
|
108
|
-
((input, _path, _exceptionable = true) => {
|
|
109
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
110
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
111
|
-
path: _path + ".id",
|
|
112
|
-
expected: "string",
|
|
113
|
-
value: input.id
|
|
114
|
-
}, errorFactory)) && (null === input.size || "number" === typeof input.size || $guard(_exceptionable, {
|
|
115
|
-
path: _path + ".size",
|
|
116
|
-
expected: "(null | number)",
|
|
117
|
-
value: input.size
|
|
118
|
-
}, errorFactory)) && (null === input.free || "number" === typeof input.free || $guard(_exceptionable, {
|
|
119
|
-
path: _path + ".free",
|
|
120
|
-
expected: "(null | number)",
|
|
121
|
-
value: input.free
|
|
122
|
-
}, errorFactory)) && (null === input.capacity || "number" === typeof input.capacity || $guard(_exceptionable, {
|
|
123
|
-
path: _path + ".capacity",
|
|
124
|
-
expected: "(null | number)",
|
|
125
|
-
value: input.capacity
|
|
126
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
|
|
127
|
-
path: _path + ".available",
|
|
128
|
-
expected: "(null | number)",
|
|
129
|
-
value: input.available
|
|
130
|
-
}, errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || $guard(_exceptionable, {
|
|
131
|
-
path: _path + ".cache",
|
|
132
|
-
expected: "(boolean | null)",
|
|
133
|
-
value: input.cache
|
|
134
|
-
}, errorFactory)) && ("string" === typeof input.origin || $guard(_exceptionable, {
|
|
135
|
-
path: _path + ".origin",
|
|
136
|
-
expected: "string",
|
|
137
|
-
value: input.origin
|
|
138
|
-
}, errorFactory)) && ("string" === typeof input.zone || $guard(_exceptionable, {
|
|
139
|
-
path: _path + ".zone",
|
|
140
|
-
expected: "string",
|
|
141
|
-
value: input.zone
|
|
142
|
-
}, errorFactory)) && ((Array.isArray(input.allows) || $guard(_exceptionable, {
|
|
143
|
-
path: _path + ".allows",
|
|
144
|
-
expected: "Array<string>",
|
|
145
|
-
value: input.allows
|
|
146
|
-
}, errorFactory)) && input.allows.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
147
|
-
path: _path + ".allows[" + _index1 + "]",
|
|
148
|
-
expected: "string",
|
|
149
|
-
value: elem
|
|
150
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
151
|
-
path: _path + ".allows",
|
|
152
|
-
expected: "Array<string>",
|
|
153
|
-
value: input.allows
|
|
154
|
-
}, errorFactory));
|
|
155
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
156
|
-
path: _path + "",
|
|
157
|
-
expected: "Location",
|
|
158
|
-
value: input
|
|
159
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
160
|
-
path: _path + "",
|
|
161
|
-
expected: "Location",
|
|
162
|
-
value: input
|
|
163
|
-
}, errorFactory);
|
|
164
|
-
})(input, "$input", true);
|
|
165
|
-
};
|
|
166
|
-
export const stringifyLocation = input => {
|
|
167
|
-
const $string = __typia.json.createStringify.string;
|
|
168
|
-
const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"free":${null !== input.free ? input.free : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"origin":${$string(input.origin)},"zone":${$string(input.zone)},"allows":${`[${input.allows.map(elem => $string(elem)).join(",")}]`}}`;
|
|
169
|
-
return $so0(input);
|
|
170
|
-
};
|
|
171
|
-
export const assertStringifyLocation = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
172
|
-
const __is = input => {
|
|
173
|
-
const $io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size && !Number.isNaN(input.size)) && (null === input.free || "number" === typeof input.free && !Number.isNaN(input.free)) && (null === input.capacity || "number" === typeof input.capacity && !Number.isNaN(input.capacity)) && (null === input.available || "number" === typeof input.available && !Number.isNaN(input.available)) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem));
|
|
174
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
175
|
-
};
|
|
176
|
-
if (false === __is(input))
|
|
177
|
-
((input, _path, _exceptionable = true) => {
|
|
178
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
179
|
-
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
180
|
-
path: _path + ".id",
|
|
181
|
-
expected: "string",
|
|
182
|
-
value: input.id
|
|
183
|
-
}, errorFactory)) && (null === input.size || "number" === typeof input.size && !Number.isNaN(input.size) || $guard(_exceptionable, {
|
|
184
|
-
path: _path + ".size",
|
|
185
|
-
expected: "(null | number)",
|
|
186
|
-
value: input.size
|
|
187
|
-
}, errorFactory)) && (null === input.free || "number" === typeof input.free && !Number.isNaN(input.free) || $guard(_exceptionable, {
|
|
188
|
-
path: _path + ".free",
|
|
189
|
-
expected: "(null | number)",
|
|
190
|
-
value: input.free
|
|
191
|
-
}, errorFactory)) && (null === input.capacity || "number" === typeof input.capacity && !Number.isNaN(input.capacity) || $guard(_exceptionable, {
|
|
192
|
-
path: _path + ".capacity",
|
|
193
|
-
expected: "(null | number)",
|
|
194
|
-
value: input.capacity
|
|
195
|
-
}, errorFactory)) && (null === input.available || "number" === typeof input.available && !Number.isNaN(input.available) || $guard(_exceptionable, {
|
|
196
|
-
path: _path + ".available",
|
|
197
|
-
expected: "(null | number)",
|
|
198
|
-
value: input.available
|
|
199
|
-
}, errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || $guard(_exceptionable, {
|
|
200
|
-
path: _path + ".cache",
|
|
201
|
-
expected: "(boolean | null)",
|
|
202
|
-
value: input.cache
|
|
203
|
-
}, errorFactory)) && ("string" === typeof input.origin || $guard(_exceptionable, {
|
|
204
|
-
path: _path + ".origin",
|
|
205
|
-
expected: "string",
|
|
206
|
-
value: input.origin
|
|
207
|
-
}, errorFactory)) && ("string" === typeof input.zone || $guard(_exceptionable, {
|
|
208
|
-
path: _path + ".zone",
|
|
209
|
-
expected: "string",
|
|
210
|
-
value: input.zone
|
|
211
|
-
}, errorFactory)) && ((Array.isArray(input.allows) || $guard(_exceptionable, {
|
|
212
|
-
path: _path + ".allows",
|
|
213
|
-
expected: "Array<string>",
|
|
214
|
-
value: input.allows
|
|
215
|
-
}, errorFactory)) && input.allows.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
216
|
-
path: _path + ".allows[" + _index1 + "]",
|
|
217
|
-
expected: "string",
|
|
218
|
-
value: elem
|
|
219
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
220
|
-
path: _path + ".allows",
|
|
221
|
-
expected: "Array<string>",
|
|
222
|
-
value: input.allows
|
|
223
|
-
}, errorFactory));
|
|
224
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
225
|
-
path: _path + "",
|
|
226
|
-
expected: "Location",
|
|
227
|
-
value: input
|
|
228
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
229
|
-
path: _path + "",
|
|
230
|
-
expected: "Location",
|
|
231
|
-
value: input
|
|
232
|
-
}, errorFactory);
|
|
233
|
-
})(input, "$input", true);
|
|
234
|
-
return input;
|
|
235
|
-
}; const stringify = input => {
|
|
236
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
237
|
-
const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"free":${null !== input.free ? input.free : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"origin":${$string(input.origin)},"zone":${$string(input.zone)},"allows":${`[${input.allows.map(elem => $string(elem)).join(",")}]`}}`;
|
|
238
|
-
return $so0(input);
|
|
239
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
74
|
+
}; })();
|
package/dist/common/lock.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { tags } from 'typia';
|
|
1
|
+
import type { tags } from 'typia';
|
|
3
2
|
export interface Lock {
|
|
4
3
|
time: number & tags.ExclusiveMinimum<0>;
|
|
5
4
|
locations: Array<string & tags.MinLength<1>> | null;
|
|
6
5
|
replicas: number & tags.ExclusiveMinimum<0>;
|
|
7
6
|
}
|
|
8
|
-
export declare const isLock: (input: unknown) => input is Lock;
|
|
9
|
-
export declare const assertLock: (input: unknown) => Lock;
|
|
10
|
-
export declare const randomLock: () => Lock;
|
|
11
|
-
export declare const assertGuardLock: __AssertionGuard<Lock>;
|
|
12
|
-
export declare const stringifyLock: (input: Lock) => string;
|
|
13
|
-
export declare const assertStringifyLock: (input: unknown) => string;
|