@nxtedition/types 23.0.40 → 23.0.42
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 -33
- package/dist/app.js +1 -655
- 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 +4 -17
- package/dist/common/render-preset.js +1 -1202
- package/dist/common/render-profile.d.ts +3 -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 -1843
- package/dist/common/render-scene.d.ts +3 -16
- package/dist/common/render-scene.js +1 -2408
- 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 +113 -125
- package/dist/common/settings.js +1 -7504
- 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 -108
- package/dist/index.js +5 -469
- package/dist/nxtpression.d.ts +538 -337
- 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 +8 -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 +149 -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 +23 -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 +11 -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 +16068 -0
- package/dist/records/validate/assert.d.ts +4 -0
- package/dist/records/validate/assert.js +16198 -0
- package/dist/records/validate/is.d.ts +4 -0
- package/dist/records/validate/is.js +1027 -0
- package/dist/records/validate/schemas.d.ts +9 -0
- package/dist/records/validate/schemas.js +12862 -0
- package/dist/records/validate/stringify.d.ts +4 -0
- package/dist/records/validate/stringify.js +1915 -0
- package/dist/records/validate/utils.d.ts +15 -0
- package/dist/records/validate/utils.js +26 -0
- package/dist/records/validate/validate-equals.d.ts +5 -0
- package/dist/records/validate/validate-equals.js +24363 -0
- package/dist/records/validate/validate.d.ts +5 -0
- package/dist/records/validate/validate.js +15127 -0
- package/dist/rpc.d.ts +5 -15
- package/dist/rpc.js +126 -511
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +25 -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 -170
- package/dist/domains/event.js +0 -2779
- 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 -4642
- 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 -1452
- package/dist/domains/publish.js +0 -35415
- 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 -158
- package/dist/domains/render.js +0 -4452
- 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 -263
- package/dist/domains/script.js +0 -6777
- 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 -7180
- package/dist/domains/storyboard.d.ts +0 -14
- package/dist/domains/storyboard.js +0 -125
- package/dist/domains/subtitle-style.d.ts +0 -42
- package/dist/domains/subtitle-style.js +0 -574
- 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 -9836
- 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/rule.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { tags } from 'typia';
|
|
1
|
+
import type { tags } from 'typia';
|
|
3
2
|
export interface Rule {
|
|
4
3
|
locations: string[];
|
|
5
4
|
replicas: number & tags.Type<"uint32">;
|
|
@@ -7,9 +6,4 @@ export interface Rule {
|
|
|
7
6
|
includes: string[];
|
|
8
7
|
excludes: string[];
|
|
9
8
|
}
|
|
10
|
-
export declare const isRule: (input: unknown) => input is Rule;
|
|
11
9
|
export declare const assertRule: (input: unknown) => Rule;
|
|
12
|
-
export declare const randomRule: () => Rule;
|
|
13
|
-
export declare const assertGuardRule: __AssertionGuard<Rule>;
|
|
14
|
-
export declare const stringifyRule: (input: Rule) => string;
|
|
15
|
-
export declare const assertStringifyRule: (input: unknown) => string;
|
package/dist/common/rule.js
CHANGED
|
@@ -1,255 +1,85 @@
|
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1
|
+
import * as __typia_transform__isTypeUint32 from "typia/lib/internal/_isTypeUint32.js";
|
|
2
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
|
|
3
|
+
import typia from 'typia';
|
|
4
|
+
export const assertRule = (() => { const _io0 = input => Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem) && ("number" === typeof input.replicas && __typia_transform__isTypeUint32._isTypeUint32(input.replicas)) && ("number" === typeof input.priority && __typia_transform__isTypeUint32._isTypeUint32(input.priority)) && (Array.isArray(input.includes) && input.includes.every(elem => "string" === typeof elem)) && (Array.isArray(input.excludes) && input.excludes.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.locations) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5
|
+
method: "typia.createAssert",
|
|
6
|
+
path: _path + ".locations",
|
|
7
|
+
expected: "Array<string>",
|
|
8
|
+
value: input.locations
|
|
9
|
+
}, _errorFactory)) && input.locations.every((elem, _index4) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10
|
+
method: "typia.createAssert",
|
|
11
|
+
path: _path + ".locations[" + _index4 + "]",
|
|
12
|
+
expected: "string",
|
|
13
|
+
value: elem
|
|
14
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
15
|
+
method: "typia.createAssert",
|
|
16
|
+
path: _path + ".locations",
|
|
17
|
+
expected: "Array<string>",
|
|
18
|
+
value: input.locations
|
|
19
|
+
}, _errorFactory)) && ("number" === typeof input.replicas && (__typia_transform__isTypeUint32._isTypeUint32(input.replicas) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
20
|
+
method: "typia.createAssert",
|
|
21
|
+
path: _path + ".replicas",
|
|
22
|
+
expected: "number & Type<\"uint32\">",
|
|
23
|
+
value: input.replicas
|
|
24
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
25
|
+
method: "typia.createAssert",
|
|
26
|
+
path: _path + ".replicas",
|
|
27
|
+
expected: "(number & Type<\"uint32\">)",
|
|
28
|
+
value: input.replicas
|
|
29
|
+
}, _errorFactory)) && ("number" === typeof input.priority && (__typia_transform__isTypeUint32._isTypeUint32(input.priority) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
30
|
+
method: "typia.createAssert",
|
|
31
|
+
path: _path + ".priority",
|
|
32
|
+
expected: "number & Type<\"uint32\">",
|
|
33
|
+
value: input.priority
|
|
34
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
35
|
+
method: "typia.createAssert",
|
|
36
|
+
path: _path + ".priority",
|
|
37
|
+
expected: "(number & Type<\"uint32\">)",
|
|
38
|
+
value: input.priority
|
|
39
|
+
}, _errorFactory)) && ((Array.isArray(input.includes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
40
|
+
method: "typia.createAssert",
|
|
41
|
+
path: _path + ".includes",
|
|
42
|
+
expected: "Array<string>",
|
|
43
|
+
value: input.includes
|
|
44
|
+
}, _errorFactory)) && input.includes.every((elem, _index5) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
45
|
+
method: "typia.createAssert",
|
|
46
|
+
path: _path + ".includes[" + _index5 + "]",
|
|
47
|
+
expected: "string",
|
|
48
|
+
value: elem
|
|
49
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
50
|
+
method: "typia.createAssert",
|
|
51
|
+
path: _path + ".includes",
|
|
52
|
+
expected: "Array<string>",
|
|
53
|
+
value: input.includes
|
|
54
|
+
}, _errorFactory)) && ((Array.isArray(input.excludes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
55
|
+
method: "typia.createAssert",
|
|
56
|
+
path: _path + ".excludes",
|
|
57
|
+
expected: "Array<string>",
|
|
58
|
+
value: input.excludes
|
|
59
|
+
}, _errorFactory)) && input.excludes.every((elem, _index6) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
60
|
+
method: "typia.createAssert",
|
|
61
|
+
path: _path + ".excludes[" + _index6 + "]",
|
|
62
|
+
expected: "string",
|
|
63
|
+
value: elem
|
|
64
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
65
|
+
method: "typia.createAssert",
|
|
66
|
+
path: _path + ".excludes",
|
|
67
|
+
expected: "Array<string>",
|
|
68
|
+
value: input.excludes
|
|
69
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
70
|
+
if (false === __is(input)) {
|
|
71
|
+
_errorFactory = errorFactory;
|
|
72
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
73
|
+
method: "typia.createAssert",
|
|
74
|
+
path: _path + "",
|
|
75
|
+
expected: "Rule",
|
|
76
|
+
value: input
|
|
77
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
78
|
+
method: "typia.createAssert",
|
|
79
|
+
path: _path + "",
|
|
80
|
+
expected: "Rule",
|
|
81
|
+
value: input
|
|
82
|
+
}, _errorFactory))(input, "$input", true);
|
|
83
|
+
}
|
|
77
84
|
return input;
|
|
78
|
-
};
|
|
79
|
-
export const randomRule = generator => {
|
|
80
|
-
const $generator = __typia.createRandom.generator;
|
|
81
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
82
|
-
locations: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
83
|
-
replicas: (generator?.customs ?? $generator.customs)?.number?.([
|
|
84
|
-
{
|
|
85
|
-
name: "Type<\"uint32\">",
|
|
86
|
-
kind: "type",
|
|
87
|
-
value: "uint32"
|
|
88
|
-
}
|
|
89
|
-
]) ?? (generator?.integer ?? $generator.integer)(0, 10),
|
|
90
|
-
priority: (generator?.customs ?? $generator.customs)?.number?.([
|
|
91
|
-
{
|
|
92
|
-
name: "Type<\"uint32\">",
|
|
93
|
-
kind: "type",
|
|
94
|
-
value: "uint32"
|
|
95
|
-
}
|
|
96
|
-
]) ?? (generator?.integer ?? $generator.integer)(0, 10),
|
|
97
|
-
includes: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
98
|
-
excludes: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
99
|
-
});
|
|
100
|
-
return $ro0();
|
|
101
|
-
};
|
|
102
|
-
export const assertGuardRule = (input, errorFactory) => {
|
|
103
|
-
const __is = input => {
|
|
104
|
-
const $io0 = input => Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem) && ("number" === typeof input.replicas && (Math.floor(input.replicas) === input.replicas && 0 <= input.replicas && input.replicas <= 4294967295)) && ("number" === typeof input.priority && (Math.floor(input.priority) === input.priority && 0 <= input.priority && input.priority <= 4294967295)) && (Array.isArray(input.includes) && input.includes.every(elem => "string" === typeof elem)) && (Array.isArray(input.excludes) && input.excludes.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) => ((Array.isArray(input.locations) || $guard(_exceptionable, {
|
|
111
|
-
path: _path + ".locations",
|
|
112
|
-
expected: "Array<string>",
|
|
113
|
-
value: input.locations
|
|
114
|
-
}, errorFactory)) && input.locations.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
115
|
-
path: _path + ".locations[" + _index1 + "]",
|
|
116
|
-
expected: "string",
|
|
117
|
-
value: elem
|
|
118
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
119
|
-
path: _path + ".locations",
|
|
120
|
-
expected: "Array<string>",
|
|
121
|
-
value: input.locations
|
|
122
|
-
}, errorFactory)) && ("number" === typeof input.replicas && (Math.floor(input.replicas) === input.replicas && 0 <= input.replicas && input.replicas <= 4294967295 || $guard(_exceptionable, {
|
|
123
|
-
path: _path + ".replicas",
|
|
124
|
-
expected: "number & Type<\"uint32\">",
|
|
125
|
-
value: input.replicas
|
|
126
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
127
|
-
path: _path + ".replicas",
|
|
128
|
-
expected: "(number & Type<\"uint32\">)",
|
|
129
|
-
value: input.replicas
|
|
130
|
-
}, errorFactory)) && ("number" === typeof input.priority && (Math.floor(input.priority) === input.priority && 0 <= input.priority && input.priority <= 4294967295 || $guard(_exceptionable, {
|
|
131
|
-
path: _path + ".priority",
|
|
132
|
-
expected: "number & Type<\"uint32\">",
|
|
133
|
-
value: input.priority
|
|
134
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
135
|
-
path: _path + ".priority",
|
|
136
|
-
expected: "(number & Type<\"uint32\">)",
|
|
137
|
-
value: input.priority
|
|
138
|
-
}, errorFactory)) && ((Array.isArray(input.includes) || $guard(_exceptionable, {
|
|
139
|
-
path: _path + ".includes",
|
|
140
|
-
expected: "Array<string>",
|
|
141
|
-
value: input.includes
|
|
142
|
-
}, errorFactory)) && input.includes.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
|
|
143
|
-
path: _path + ".includes[" + _index2 + "]",
|
|
144
|
-
expected: "string",
|
|
145
|
-
value: elem
|
|
146
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
147
|
-
path: _path + ".includes",
|
|
148
|
-
expected: "Array<string>",
|
|
149
|
-
value: input.includes
|
|
150
|
-
}, errorFactory)) && ((Array.isArray(input.excludes) || $guard(_exceptionable, {
|
|
151
|
-
path: _path + ".excludes",
|
|
152
|
-
expected: "Array<string>",
|
|
153
|
-
value: input.excludes
|
|
154
|
-
}, errorFactory)) && input.excludes.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
155
|
-
path: _path + ".excludes[" + _index3 + "]",
|
|
156
|
-
expected: "string",
|
|
157
|
-
value: elem
|
|
158
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
159
|
-
path: _path + ".excludes",
|
|
160
|
-
expected: "Array<string>",
|
|
161
|
-
value: input.excludes
|
|
162
|
-
}, errorFactory));
|
|
163
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
164
|
-
path: _path + "",
|
|
165
|
-
expected: "Rule",
|
|
166
|
-
value: input
|
|
167
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
168
|
-
path: _path + "",
|
|
169
|
-
expected: "Rule",
|
|
170
|
-
value: input
|
|
171
|
-
}, errorFactory);
|
|
172
|
-
})(input, "$input", true);
|
|
173
|
-
};
|
|
174
|
-
export const stringifyRule = input => {
|
|
175
|
-
const $string = __typia.json.createStringify.string;
|
|
176
|
-
const $so0 = input => `{"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"replicas":${input.replicas},"priority":${input.priority},"includes":${`[${input.includes.map(elem => $string(elem)).join(",")}]`},"excludes":${`[${input.excludes.map(elem => $string(elem)).join(",")}]`}}`;
|
|
177
|
-
return $so0(input);
|
|
178
|
-
};
|
|
179
|
-
export const assertStringifyRule = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
180
|
-
const __is = input => {
|
|
181
|
-
const $io0 = input => Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem) && ("number" === typeof input.replicas && (Math.floor(input.replicas) === input.replicas && 0 <= input.replicas && input.replicas <= 4294967295)) && ("number" === typeof input.priority && (Math.floor(input.priority) === input.priority && 0 <= input.priority && input.priority <= 4294967295)) && (Array.isArray(input.includes) && input.includes.every(elem => "string" === typeof elem)) && (Array.isArray(input.excludes) && input.excludes.every(elem => "string" === typeof elem));
|
|
182
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
183
|
-
};
|
|
184
|
-
if (false === __is(input))
|
|
185
|
-
((input, _path, _exceptionable = true) => {
|
|
186
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
187
|
-
const $ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.locations) || $guard(_exceptionable, {
|
|
188
|
-
path: _path + ".locations",
|
|
189
|
-
expected: "Array<string>",
|
|
190
|
-
value: input.locations
|
|
191
|
-
}, errorFactory)) && input.locations.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
192
|
-
path: _path + ".locations[" + _index1 + "]",
|
|
193
|
-
expected: "string",
|
|
194
|
-
value: elem
|
|
195
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
196
|
-
path: _path + ".locations",
|
|
197
|
-
expected: "Array<string>",
|
|
198
|
-
value: input.locations
|
|
199
|
-
}, errorFactory)) && ("number" === typeof input.replicas && (Math.floor(input.replicas) === input.replicas && 0 <= input.replicas && input.replicas <= 4294967295 || $guard(_exceptionable, {
|
|
200
|
-
path: _path + ".replicas",
|
|
201
|
-
expected: "number & Type<\"uint32\">",
|
|
202
|
-
value: input.replicas
|
|
203
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
204
|
-
path: _path + ".replicas",
|
|
205
|
-
expected: "(number & Type<\"uint32\">)",
|
|
206
|
-
value: input.replicas
|
|
207
|
-
}, errorFactory)) && ("number" === typeof input.priority && (Math.floor(input.priority) === input.priority && 0 <= input.priority && input.priority <= 4294967295 || $guard(_exceptionable, {
|
|
208
|
-
path: _path + ".priority",
|
|
209
|
-
expected: "number & Type<\"uint32\">",
|
|
210
|
-
value: input.priority
|
|
211
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
212
|
-
path: _path + ".priority",
|
|
213
|
-
expected: "(number & Type<\"uint32\">)",
|
|
214
|
-
value: input.priority
|
|
215
|
-
}, errorFactory)) && ((Array.isArray(input.includes) || $guard(_exceptionable, {
|
|
216
|
-
path: _path + ".includes",
|
|
217
|
-
expected: "Array<string>",
|
|
218
|
-
value: input.includes
|
|
219
|
-
}, errorFactory)) && input.includes.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
|
|
220
|
-
path: _path + ".includes[" + _index2 + "]",
|
|
221
|
-
expected: "string",
|
|
222
|
-
value: elem
|
|
223
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
224
|
-
path: _path + ".includes",
|
|
225
|
-
expected: "Array<string>",
|
|
226
|
-
value: input.includes
|
|
227
|
-
}, errorFactory)) && ((Array.isArray(input.excludes) || $guard(_exceptionable, {
|
|
228
|
-
path: _path + ".excludes",
|
|
229
|
-
expected: "Array<string>",
|
|
230
|
-
value: input.excludes
|
|
231
|
-
}, errorFactory)) && input.excludes.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
232
|
-
path: _path + ".excludes[" + _index3 + "]",
|
|
233
|
-
expected: "string",
|
|
234
|
-
value: elem
|
|
235
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
236
|
-
path: _path + ".excludes",
|
|
237
|
-
expected: "Array<string>",
|
|
238
|
-
value: input.excludes
|
|
239
|
-
}, errorFactory));
|
|
240
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
241
|
-
path: _path + "",
|
|
242
|
-
expected: "Rule",
|
|
243
|
-
value: input
|
|
244
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
245
|
-
path: _path + "",
|
|
246
|
-
expected: "Rule",
|
|
247
|
-
value: input
|
|
248
|
-
}, errorFactory);
|
|
249
|
-
})(input, "$input", true);
|
|
250
|
-
return input;
|
|
251
|
-
}; const stringify = input => {
|
|
252
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
253
|
-
const $so0 = input => `{"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"replicas":${input.replicas},"priority":${input.priority},"includes":${`[${input.includes.map(elem => $string(elem)).join(",")}]`},"excludes":${`[${input.excludes.map(elem => $string(elem)).join(",")}]`}}`;
|
|
254
|
-
return $so0(input);
|
|
255
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
85
|
+
}; })();
|
package/dist/common/search.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
1
|
export type Search<Type extends "simple" | "conditional" = "simple"> = {
|
|
3
2
|
type: Type;
|
|
4
3
|
} & Type extends "simple" ? SimpleSearch : ConditionalSearch;
|
|
5
|
-
export declare const isSearch: (input: unknown) => input is SimpleSearch;
|
|
6
|
-
export declare const assertSearch: (input: unknown) => SimpleSearch;
|
|
7
|
-
export declare const randomSearch: () => SimpleSearch;
|
|
8
|
-
export declare const assertGuardSearch: __AssertionGuard<Search>;
|
|
9
|
-
export declare const stringifySearch: (input: SimpleSearch) => string;
|
|
10
|
-
export declare const assertStringifySearch: (input: unknown) => string;
|
|
11
4
|
export interface SimpleSearch {
|
|
12
5
|
type: "simple";
|
|
13
6
|
user?: string;
|
|
@@ -20,12 +13,6 @@ export interface SimpleSearch {
|
|
|
20
13
|
refreshInterval?: number;
|
|
21
14
|
highlight?: SearchHighlightOption;
|
|
22
15
|
}
|
|
23
|
-
export declare const isSimpleSearch: (input: unknown) => input is SimpleSearch;
|
|
24
|
-
export declare const assertSimpleSearch: (input: unknown) => SimpleSearch;
|
|
25
|
-
export declare const randomSimpleSearch: () => SimpleSearch;
|
|
26
|
-
export declare const assertGuardSimpleSearch: __AssertionGuard<SimpleSearch>;
|
|
27
|
-
export declare const stringifySimpleSearch: (input: SimpleSearch) => string;
|
|
28
|
-
export declare const assertStringifySimpleSearch: (input: unknown) => string;
|
|
29
16
|
export interface ConditionalSearch {
|
|
30
17
|
type: "conditional";
|
|
31
18
|
user?: string;
|
|
@@ -50,20 +37,8 @@ export interface ConditionalSearch {
|
|
|
50
37
|
y2: number;
|
|
51
38
|
};
|
|
52
39
|
}
|
|
53
|
-
export declare const isConditionalSearch: (input: unknown) => input is ConditionalSearch;
|
|
54
|
-
export declare const assertConditionalSearch: (input: unknown) => ConditionalSearch;
|
|
55
|
-
export declare const randomConditionalSearch: () => ConditionalSearch;
|
|
56
|
-
export declare const assertGuardConditionalSearch: __AssertionGuard<ConditionalSearch>;
|
|
57
|
-
export declare const stringifyConditionalSearch: (input: ConditionalSearch) => string;
|
|
58
|
-
export declare const assertStringifyConditionalSearch: (input: unknown) => string;
|
|
59
40
|
export interface SearchHighlightOption {
|
|
60
41
|
fields: {
|
|
61
42
|
[field: string]: unknown;
|
|
62
43
|
};
|
|
63
44
|
}
|
|
64
|
-
export declare const isSearchHighlightOption: (input: unknown) => input is SearchHighlightOption;
|
|
65
|
-
export declare const assertSearchHighlightOption: (input: unknown) => SearchHighlightOption;
|
|
66
|
-
export declare const randomSearchHighlightOption: () => SearchHighlightOption;
|
|
67
|
-
export declare const assertGuardSearchHighlightOption: __AssertionGuard<SearchHighlightOption>;
|
|
68
|
-
export declare const stringifySearchHighlightOption: (input: SearchHighlightOption) => string;
|
|
69
|
-
export declare const assertStringifySearchHighlightOption: (input: unknown) => string;
|