@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/domains/revs.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export interface RevsDomainRecords {
|
|
3
|
-
":revs?": RevsRecord;
|
|
4
|
-
}
|
|
5
|
-
export interface RevsRecord {
|
|
6
|
-
value?: string[];
|
|
7
|
-
}
|
|
8
|
-
export declare const isRevsRecord: (input: unknown) => input is RevsRecord;
|
|
9
|
-
export declare const assertRevsRecord: (input: unknown) => RevsRecord;
|
|
10
|
-
export declare const randomRevsRecord: () => RevsRecord;
|
|
11
|
-
export declare const assertGuardRevsRecord: __AssertionGuard<RevsRecord>;
|
|
12
|
-
export declare const stringifyRevsRecord: (input: RevsRecord) => string;
|
|
13
|
-
export declare const assertStringifyRevsRecord: (input: unknown) => string;
|
package/dist/domains/revs.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import __typia from "typia";
|
|
2
|
-
export const isRevsRecord = input => {
|
|
3
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
4
|
-
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertRevsRecord = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
9
|
-
return "object" === typeof input && null !== input && false === Array.isArray(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) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
15
|
-
path: _path + ".value",
|
|
16
|
-
expected: "(Array<string> | undefined)",
|
|
17
|
-
value: input.value
|
|
18
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
19
|
-
path: _path + ".value[" + _index1 + "]",
|
|
20
|
-
expected: "string",
|
|
21
|
-
value: elem
|
|
22
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
23
|
-
path: _path + ".value",
|
|
24
|
-
expected: "(Array<string> | undefined)",
|
|
25
|
-
value: input.value
|
|
26
|
-
}, errorFactory);
|
|
27
|
-
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
28
|
-
path: _path + "",
|
|
29
|
-
expected: "RevsRecord",
|
|
30
|
-
value: input
|
|
31
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
32
|
-
path: _path + "",
|
|
33
|
-
expected: "RevsRecord",
|
|
34
|
-
value: input
|
|
35
|
-
}, errorFactory);
|
|
36
|
-
})(input, "$input", true);
|
|
37
|
-
return input;
|
|
38
|
-
};
|
|
39
|
-
export const randomRevsRecord = generator => {
|
|
40
|
-
const $generator = __typia.createRandom.generator;
|
|
41
|
-
const $pick = __typia.createRandom.pick;
|
|
42
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
43
|
-
value: $pick([
|
|
44
|
-
() => undefined,
|
|
45
|
-
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
46
|
-
])()
|
|
47
|
-
});
|
|
48
|
-
return $ro0();
|
|
49
|
-
};
|
|
50
|
-
export const assertGuardRevsRecord = (input, errorFactory) => {
|
|
51
|
-
const __is = input => {
|
|
52
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
53
|
-
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
54
|
-
};
|
|
55
|
-
if (false === __is(input))
|
|
56
|
-
((input, _path, _exceptionable = true) => {
|
|
57
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
58
|
-
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
59
|
-
path: _path + ".value",
|
|
60
|
-
expected: "(Array<string> | undefined)",
|
|
61
|
-
value: input.value
|
|
62
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
63
|
-
path: _path + ".value[" + _index1 + "]",
|
|
64
|
-
expected: "string",
|
|
65
|
-
value: elem
|
|
66
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
67
|
-
path: _path + ".value",
|
|
68
|
-
expected: "(Array<string> | undefined)",
|
|
69
|
-
value: input.value
|
|
70
|
-
}, errorFactory);
|
|
71
|
-
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
72
|
-
path: _path + "",
|
|
73
|
-
expected: "RevsRecord",
|
|
74
|
-
value: input
|
|
75
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
76
|
-
path: _path + "",
|
|
77
|
-
expected: "RevsRecord",
|
|
78
|
-
value: input
|
|
79
|
-
}, errorFactory);
|
|
80
|
-
})(input, "$input", true);
|
|
81
|
-
};
|
|
82
|
-
export const stringifyRevsRecord = input => {
|
|
83
|
-
const $string = __typia.json.createStringify.string;
|
|
84
|
-
const $tail = __typia.json.createStringify.tail;
|
|
85
|
-
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
86
|
-
return $so0(input);
|
|
87
|
-
};
|
|
88
|
-
export const assertStringifyRevsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
89
|
-
const __is = input => {
|
|
90
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
91
|
-
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
92
|
-
};
|
|
93
|
-
if (false === __is(input))
|
|
94
|
-
((input, _path, _exceptionable = true) => {
|
|
95
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
96
|
-
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
97
|
-
path: _path + ".value",
|
|
98
|
-
expected: "(Array<string> | undefined)",
|
|
99
|
-
value: input.value
|
|
100
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
101
|
-
path: _path + ".value[" + _index1 + "]",
|
|
102
|
-
expected: "string",
|
|
103
|
-
value: elem
|
|
104
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
105
|
-
path: _path + ".value",
|
|
106
|
-
expected: "(Array<string> | undefined)",
|
|
107
|
-
value: input.value
|
|
108
|
-
}, errorFactory);
|
|
109
|
-
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
110
|
-
path: _path + "",
|
|
111
|
-
expected: "RevsRecord",
|
|
112
|
-
value: input
|
|
113
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
114
|
-
path: _path + "",
|
|
115
|
-
expected: "RevsRecord",
|
|
116
|
-
value: input
|
|
117
|
-
}, errorFactory);
|
|
118
|
-
})(input, "$input", true);
|
|
119
|
-
return input;
|
|
120
|
-
}; const stringify = input => {
|
|
121
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
122
|
-
const $tail = __typia.json.createAssertStringify.tail;
|
|
123
|
-
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
124
|
-
return $so0(input);
|
|
125
|
-
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/role.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export interface RoleDomainRecords {
|
|
3
|
-
":role.tags": RoleTagsRecord;
|
|
4
|
-
}
|
|
5
|
-
export interface RoleTagsRecord {
|
|
6
|
-
value: string[];
|
|
7
|
-
}
|
|
8
|
-
export declare const isRoleTagsRecord: (input: unknown) => input is RoleTagsRecord;
|
|
9
|
-
export declare const assertRoleTagsRecord: (input: unknown) => RoleTagsRecord;
|
|
10
|
-
export declare const randomRoleTagsRecord: () => RoleTagsRecord;
|
|
11
|
-
export declare const assertGuardRoleTagsRecord: __AssertionGuard<RoleTagsRecord>;
|
|
12
|
-
export declare const stringifyRoleTagsRecord: (input: RoleTagsRecord) => string;
|
|
13
|
-
export declare const assertStringifyRoleTagsRecord: (input: unknown) => string;
|
package/dist/domains/role.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import __typia from "typia";
|
|
2
|
-
export const isRoleTagsRecord = input => {
|
|
3
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
4
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertRoleTagsRecord = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
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) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
15
|
-
path: _path + ".value",
|
|
16
|
-
expected: "Array<string>",
|
|
17
|
-
value: input.value
|
|
18
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
19
|
-
path: _path + ".value[" + _index1 + "]",
|
|
20
|
-
expected: "string",
|
|
21
|
-
value: elem
|
|
22
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
23
|
-
path: _path + ".value",
|
|
24
|
-
expected: "Array<string>",
|
|
25
|
-
value: input.value
|
|
26
|
-
}, errorFactory);
|
|
27
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
28
|
-
path: _path + "",
|
|
29
|
-
expected: "RoleTagsRecord",
|
|
30
|
-
value: input
|
|
31
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
32
|
-
path: _path + "",
|
|
33
|
-
expected: "RoleTagsRecord",
|
|
34
|
-
value: input
|
|
35
|
-
}, errorFactory);
|
|
36
|
-
})(input, "$input", true);
|
|
37
|
-
return input;
|
|
38
|
-
};
|
|
39
|
-
export const randomRoleTagsRecord = generator => {
|
|
40
|
-
const $generator = __typia.createRandom.generator;
|
|
41
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
42
|
-
value: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
43
|
-
});
|
|
44
|
-
return $ro0();
|
|
45
|
-
};
|
|
46
|
-
export const assertGuardRoleTagsRecord = (input, errorFactory) => {
|
|
47
|
-
const __is = input => {
|
|
48
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
49
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
50
|
-
};
|
|
51
|
-
if (false === __is(input))
|
|
52
|
-
((input, _path, _exceptionable = true) => {
|
|
53
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
54
|
-
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
55
|
-
path: _path + ".value",
|
|
56
|
-
expected: "Array<string>",
|
|
57
|
-
value: input.value
|
|
58
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
59
|
-
path: _path + ".value[" + _index1 + "]",
|
|
60
|
-
expected: "string",
|
|
61
|
-
value: elem
|
|
62
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
63
|
-
path: _path + ".value",
|
|
64
|
-
expected: "Array<string>",
|
|
65
|
-
value: input.value
|
|
66
|
-
}, errorFactory);
|
|
67
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
68
|
-
path: _path + "",
|
|
69
|
-
expected: "RoleTagsRecord",
|
|
70
|
-
value: input
|
|
71
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
72
|
-
path: _path + "",
|
|
73
|
-
expected: "RoleTagsRecord",
|
|
74
|
-
value: input
|
|
75
|
-
}, errorFactory);
|
|
76
|
-
})(input, "$input", true);
|
|
77
|
-
};
|
|
78
|
-
export const stringifyRoleTagsRecord = input => {
|
|
79
|
-
const $string = __typia.json.createStringify.string;
|
|
80
|
-
const $so0 = input => `{"value":${`[${input.value.map(elem => $string(elem)).join(",")}]`}}`;
|
|
81
|
-
return $so0(input);
|
|
82
|
-
};
|
|
83
|
-
export const assertStringifyRoleTagsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
84
|
-
const __is = input => {
|
|
85
|
-
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
86
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
87
|
-
};
|
|
88
|
-
if (false === __is(input))
|
|
89
|
-
((input, _path, _exceptionable = true) => {
|
|
90
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
91
|
-
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
92
|
-
path: _path + ".value",
|
|
93
|
-
expected: "Array<string>",
|
|
94
|
-
value: input.value
|
|
95
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
96
|
-
path: _path + ".value[" + _index1 + "]",
|
|
97
|
-
expected: "string",
|
|
98
|
-
value: elem
|
|
99
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
100
|
-
path: _path + ".value",
|
|
101
|
-
expected: "Array<string>",
|
|
102
|
-
value: input.value
|
|
103
|
-
}, errorFactory);
|
|
104
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
105
|
-
path: _path + "",
|
|
106
|
-
expected: "RoleTagsRecord",
|
|
107
|
-
value: input
|
|
108
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
109
|
-
path: _path + "",
|
|
110
|
-
expected: "RoleTagsRecord",
|
|
111
|
-
value: input
|
|
112
|
-
}, errorFactory);
|
|
113
|
-
})(input, "$input", true);
|
|
114
|
-
return input;
|
|
115
|
-
}; const stringify = input => {
|
|
116
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
117
|
-
const $so0 = input => `{"value":${`[${input.value.map(elem => $string(elem)).join(",")}]`}}`;
|
|
118
|
-
return $so0(input);
|
|
119
|
-
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/script.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export interface ScriptDomainRecords {
|
|
3
|
-
":script.children": ScriptChildrenRecord;
|
|
4
|
-
}
|
|
5
|
-
export interface ScriptChildrenRecord {
|
|
6
|
-
value?: string[];
|
|
7
|
-
}
|
|
8
|
-
export declare const isScriptChildrenRecord: (input: unknown) => input is ScriptChildrenRecord;
|
|
9
|
-
export declare const assertScriptChildrenRecord: (input: unknown) => ScriptChildrenRecord;
|
|
10
|
-
export declare const randomScriptChildrenRecord: () => ScriptChildrenRecord;
|
|
11
|
-
export declare const assertGuardScriptChildrenRecord: __AssertionGuard<ScriptChildrenRecord>;
|
|
12
|
-
export declare const stringifyScriptChildrenRecord: (input: ScriptChildrenRecord) => string;
|
|
13
|
-
export declare const assertStringifyScriptChildrenRecord: (input: unknown) => string;
|
package/dist/domains/script.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import __typia from "typia";
|
|
2
|
-
export const isScriptChildrenRecord = input => {
|
|
3
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
4
|
-
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertScriptChildrenRecord = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
9
|
-
return "object" === typeof input && null !== input && false === Array.isArray(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) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
15
|
-
path: _path + ".value",
|
|
16
|
-
expected: "(Array<string> | undefined)",
|
|
17
|
-
value: input.value
|
|
18
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
19
|
-
path: _path + ".value[" + _index1 + "]",
|
|
20
|
-
expected: "string",
|
|
21
|
-
value: elem
|
|
22
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
23
|
-
path: _path + ".value",
|
|
24
|
-
expected: "(Array<string> | undefined)",
|
|
25
|
-
value: input.value
|
|
26
|
-
}, errorFactory);
|
|
27
|
-
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
28
|
-
path: _path + "",
|
|
29
|
-
expected: "ScriptChildrenRecord",
|
|
30
|
-
value: input
|
|
31
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
32
|
-
path: _path + "",
|
|
33
|
-
expected: "ScriptChildrenRecord",
|
|
34
|
-
value: input
|
|
35
|
-
}, errorFactory);
|
|
36
|
-
})(input, "$input", true);
|
|
37
|
-
return input;
|
|
38
|
-
};
|
|
39
|
-
export const randomScriptChildrenRecord = generator => {
|
|
40
|
-
const $generator = __typia.createRandom.generator;
|
|
41
|
-
const $pick = __typia.createRandom.pick;
|
|
42
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
43
|
-
value: $pick([
|
|
44
|
-
() => undefined,
|
|
45
|
-
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
46
|
-
])()
|
|
47
|
-
});
|
|
48
|
-
return $ro0();
|
|
49
|
-
};
|
|
50
|
-
export const assertGuardScriptChildrenRecord = (input, errorFactory) => {
|
|
51
|
-
const __is = input => {
|
|
52
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
53
|
-
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
54
|
-
};
|
|
55
|
-
if (false === __is(input))
|
|
56
|
-
((input, _path, _exceptionable = true) => {
|
|
57
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
58
|
-
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
59
|
-
path: _path + ".value",
|
|
60
|
-
expected: "(Array<string> | undefined)",
|
|
61
|
-
value: input.value
|
|
62
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
63
|
-
path: _path + ".value[" + _index1 + "]",
|
|
64
|
-
expected: "string",
|
|
65
|
-
value: elem
|
|
66
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
67
|
-
path: _path + ".value",
|
|
68
|
-
expected: "(Array<string> | undefined)",
|
|
69
|
-
value: input.value
|
|
70
|
-
}, errorFactory);
|
|
71
|
-
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
72
|
-
path: _path + "",
|
|
73
|
-
expected: "ScriptChildrenRecord",
|
|
74
|
-
value: input
|
|
75
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
76
|
-
path: _path + "",
|
|
77
|
-
expected: "ScriptChildrenRecord",
|
|
78
|
-
value: input
|
|
79
|
-
}, errorFactory);
|
|
80
|
-
})(input, "$input", true);
|
|
81
|
-
};
|
|
82
|
-
export const stringifyScriptChildrenRecord = input => {
|
|
83
|
-
const $string = __typia.json.createStringify.string;
|
|
84
|
-
const $tail = __typia.json.createStringify.tail;
|
|
85
|
-
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
86
|
-
return $so0(input);
|
|
87
|
-
};
|
|
88
|
-
export const assertStringifyScriptChildrenRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
89
|
-
const __is = input => {
|
|
90
|
-
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
91
|
-
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
92
|
-
};
|
|
93
|
-
if (false === __is(input))
|
|
94
|
-
((input, _path, _exceptionable = true) => {
|
|
95
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
96
|
-
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
97
|
-
path: _path + ".value",
|
|
98
|
-
expected: "(Array<string> | undefined)",
|
|
99
|
-
value: input.value
|
|
100
|
-
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
101
|
-
path: _path + ".value[" + _index1 + "]",
|
|
102
|
-
expected: "string",
|
|
103
|
-
value: elem
|
|
104
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
105
|
-
path: _path + ".value",
|
|
106
|
-
expected: "(Array<string> | undefined)",
|
|
107
|
-
value: input.value
|
|
108
|
-
}, errorFactory);
|
|
109
|
-
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
110
|
-
path: _path + "",
|
|
111
|
-
expected: "ScriptChildrenRecord",
|
|
112
|
-
value: input
|
|
113
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
114
|
-
path: _path + "",
|
|
115
|
-
expected: "ScriptChildrenRecord",
|
|
116
|
-
value: input
|
|
117
|
-
}, errorFactory);
|
|
118
|
-
})(input, "$input", true);
|
|
119
|
-
return input;
|
|
120
|
-
}; const stringify = input => {
|
|
121
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
122
|
-
const $tail = __typia.json.createAssertStringify.tail;
|
|
123
|
-
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
124
|
-
return $so0(input);
|
|
125
|
-
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/search.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
export interface SearchDomainRecords {
|
|
3
|
-
":search?": SearchRecord;
|
|
4
|
-
}
|
|
5
|
-
export interface SearchRecord {
|
|
6
|
-
hits: string[];
|
|
7
|
-
total?: number;
|
|
8
|
-
relation?: string;
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const isSearchRecord: (input: unknown) => input is SearchRecord;
|
|
12
|
-
export declare const assertSearchRecord: (input: unknown) => SearchRecord;
|
|
13
|
-
export declare const randomSearchRecord: () => SearchRecord;
|
|
14
|
-
export declare const assertGuardSearchRecord: __AssertionGuard<SearchRecord>;
|
|
15
|
-
export declare const stringifySearchRecord: (input: SearchRecord) => string;
|
|
16
|
-
export declare const assertStringifySearchRecord: (input: unknown) => string;
|
package/dist/domains/search.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import __typia from "typia";
|
|
2
|
-
export const isSearchRecord = input => {
|
|
3
|
-
const $io0 = input => Array.isArray(input.hits) && input.hits.every(elem => "string" === typeof elem) && (undefined === input.total || "number" === typeof input.total) && (undefined === input.relation || "string" === typeof input.relation) && (undefined === input.error || "string" === typeof input.error);
|
|
4
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
5
|
-
};
|
|
6
|
-
export const assertSearchRecord = (input, errorFactory) => {
|
|
7
|
-
const __is = input => {
|
|
8
|
-
const $io0 = input => Array.isArray(input.hits) && input.hits.every(elem => "string" === typeof elem) && (undefined === input.total || "number" === typeof input.total) && (undefined === input.relation || "string" === typeof input.relation) && (undefined === input.error || "string" === typeof input.error);
|
|
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) => ((Array.isArray(input.hits) || $guard(_exceptionable, {
|
|
15
|
-
path: _path + ".hits",
|
|
16
|
-
expected: "Array<string>",
|
|
17
|
-
value: input.hits
|
|
18
|
-
}, errorFactory)) && input.hits.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
19
|
-
path: _path + ".hits[" + _index1 + "]",
|
|
20
|
-
expected: "string",
|
|
21
|
-
value: elem
|
|
22
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
23
|
-
path: _path + ".hits",
|
|
24
|
-
expected: "Array<string>",
|
|
25
|
-
value: input.hits
|
|
26
|
-
}, errorFactory)) && (undefined === input.total || "number" === typeof input.total || $guard(_exceptionable, {
|
|
27
|
-
path: _path + ".total",
|
|
28
|
-
expected: "(number | undefined)",
|
|
29
|
-
value: input.total
|
|
30
|
-
}, errorFactory)) && (undefined === input.relation || "string" === typeof input.relation || $guard(_exceptionable, {
|
|
31
|
-
path: _path + ".relation",
|
|
32
|
-
expected: "(string | undefined)",
|
|
33
|
-
value: input.relation
|
|
34
|
-
}, errorFactory)) && (undefined === input.error || "string" === typeof input.error || $guard(_exceptionable, {
|
|
35
|
-
path: _path + ".error",
|
|
36
|
-
expected: "(string | undefined)",
|
|
37
|
-
value: input.error
|
|
38
|
-
}, errorFactory));
|
|
39
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
40
|
-
path: _path + "",
|
|
41
|
-
expected: "SearchRecord",
|
|
42
|
-
value: input
|
|
43
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
44
|
-
path: _path + "",
|
|
45
|
-
expected: "SearchRecord",
|
|
46
|
-
value: input
|
|
47
|
-
}, errorFactory);
|
|
48
|
-
})(input, "$input", true);
|
|
49
|
-
return input;
|
|
50
|
-
};
|
|
51
|
-
export const randomSearchRecord = generator => {
|
|
52
|
-
const $generator = __typia.createRandom.generator;
|
|
53
|
-
const $pick = __typia.createRandom.pick;
|
|
54
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
55
|
-
hits: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
56
|
-
total: $pick([
|
|
57
|
-
() => undefined,
|
|
58
|
-
() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
59
|
-
])(),
|
|
60
|
-
relation: $pick([
|
|
61
|
-
() => undefined,
|
|
62
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
63
|
-
])(),
|
|
64
|
-
error: $pick([
|
|
65
|
-
() => undefined,
|
|
66
|
-
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
67
|
-
])()
|
|
68
|
-
});
|
|
69
|
-
return $ro0();
|
|
70
|
-
};
|
|
71
|
-
export const assertGuardSearchRecord = (input, errorFactory) => {
|
|
72
|
-
const __is = input => {
|
|
73
|
-
const $io0 = input => Array.isArray(input.hits) && input.hits.every(elem => "string" === typeof elem) && (undefined === input.total || "number" === typeof input.total) && (undefined === input.relation || "string" === typeof input.relation) && (undefined === input.error || "string" === typeof input.error);
|
|
74
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
75
|
-
};
|
|
76
|
-
if (false === __is(input))
|
|
77
|
-
((input, _path, _exceptionable = true) => {
|
|
78
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
79
|
-
const $ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.hits) || $guard(_exceptionable, {
|
|
80
|
-
path: _path + ".hits",
|
|
81
|
-
expected: "Array<string>",
|
|
82
|
-
value: input.hits
|
|
83
|
-
}, errorFactory)) && input.hits.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
84
|
-
path: _path + ".hits[" + _index1 + "]",
|
|
85
|
-
expected: "string",
|
|
86
|
-
value: elem
|
|
87
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
88
|
-
path: _path + ".hits",
|
|
89
|
-
expected: "Array<string>",
|
|
90
|
-
value: input.hits
|
|
91
|
-
}, errorFactory)) && (undefined === input.total || "number" === typeof input.total || $guard(_exceptionable, {
|
|
92
|
-
path: _path + ".total",
|
|
93
|
-
expected: "(number | undefined)",
|
|
94
|
-
value: input.total
|
|
95
|
-
}, errorFactory)) && (undefined === input.relation || "string" === typeof input.relation || $guard(_exceptionable, {
|
|
96
|
-
path: _path + ".relation",
|
|
97
|
-
expected: "(string | undefined)",
|
|
98
|
-
value: input.relation
|
|
99
|
-
}, errorFactory)) && (undefined === input.error || "string" === typeof input.error || $guard(_exceptionable, {
|
|
100
|
-
path: _path + ".error",
|
|
101
|
-
expected: "(string | undefined)",
|
|
102
|
-
value: input.error
|
|
103
|
-
}, errorFactory));
|
|
104
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
105
|
-
path: _path + "",
|
|
106
|
-
expected: "SearchRecord",
|
|
107
|
-
value: input
|
|
108
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
109
|
-
path: _path + "",
|
|
110
|
-
expected: "SearchRecord",
|
|
111
|
-
value: input
|
|
112
|
-
}, errorFactory);
|
|
113
|
-
})(input, "$input", true);
|
|
114
|
-
};
|
|
115
|
-
export const stringifySearchRecord = input => {
|
|
116
|
-
const $string = __typia.json.createStringify.string;
|
|
117
|
-
const $so0 = input => `{${undefined === input.total ? "" : `"total":${undefined !== input.total ? input.total : undefined},`}${undefined === input.relation ? "" : `"relation":${undefined !== input.relation ? $string(input.relation) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? $string(input.error) : undefined},`}"hits":${`[${input.hits.map(elem => $string(elem)).join(",")}]`}}`;
|
|
118
|
-
return $so0(input);
|
|
119
|
-
};
|
|
120
|
-
export const assertStringifySearchRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
121
|
-
const __is = input => {
|
|
122
|
-
const $io0 = input => Array.isArray(input.hits) && input.hits.every(elem => "string" === typeof elem) && (undefined === input.total || "number" === typeof input.total && !Number.isNaN(input.total)) && (undefined === input.relation || "string" === typeof input.relation) && (undefined === input.error || "string" === typeof input.error);
|
|
123
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
124
|
-
};
|
|
125
|
-
if (false === __is(input))
|
|
126
|
-
((input, _path, _exceptionable = true) => {
|
|
127
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
128
|
-
const $ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.hits) || $guard(_exceptionable, {
|
|
129
|
-
path: _path + ".hits",
|
|
130
|
-
expected: "Array<string>",
|
|
131
|
-
value: input.hits
|
|
132
|
-
}, errorFactory)) && input.hits.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
133
|
-
path: _path + ".hits[" + _index1 + "]",
|
|
134
|
-
expected: "string",
|
|
135
|
-
value: elem
|
|
136
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
137
|
-
path: _path + ".hits",
|
|
138
|
-
expected: "Array<string>",
|
|
139
|
-
value: input.hits
|
|
140
|
-
}, errorFactory)) && (undefined === input.total || "number" === typeof input.total && !Number.isNaN(input.total) || $guard(_exceptionable, {
|
|
141
|
-
path: _path + ".total",
|
|
142
|
-
expected: "(number | undefined)",
|
|
143
|
-
value: input.total
|
|
144
|
-
}, errorFactory)) && (undefined === input.relation || "string" === typeof input.relation || $guard(_exceptionable, {
|
|
145
|
-
path: _path + ".relation",
|
|
146
|
-
expected: "(string | undefined)",
|
|
147
|
-
value: input.relation
|
|
148
|
-
}, errorFactory)) && (undefined === input.error || "string" === typeof input.error || $guard(_exceptionable, {
|
|
149
|
-
path: _path + ".error",
|
|
150
|
-
expected: "(string | undefined)",
|
|
151
|
-
value: input.error
|
|
152
|
-
}, errorFactory));
|
|
153
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
154
|
-
path: _path + "",
|
|
155
|
-
expected: "SearchRecord",
|
|
156
|
-
value: input
|
|
157
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
158
|
-
path: _path + "",
|
|
159
|
-
expected: "SearchRecord",
|
|
160
|
-
value: input
|
|
161
|
-
}, errorFactory);
|
|
162
|
-
})(input, "$input", true);
|
|
163
|
-
return input;
|
|
164
|
-
}; const stringify = input => {
|
|
165
|
-
const $string = __typia.json.createAssertStringify.string;
|
|
166
|
-
const $so0 = input => `{${undefined === input.total ? "" : `"total":${undefined !== input.total ? input.total : undefined},`}${undefined === input.relation ? "" : `"relation":${undefined !== input.relation ? $string(input.relation) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? $string(input.error) : undefined},`}"hits":${`[${input.hits.map(elem => $string(elem)).join(",")}]`}}`;
|
|
167
|
-
return $so0(input);
|
|
168
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
-
import type { Settings } from '../common/index.js';
|
|
3
|
-
export interface SettingsDomainRecords {
|
|
4
|
-
":settings": Settings;
|
|
5
|
-
}
|
|
6
|
-
export type SettingsRecord = Settings;
|
|
7
|
-
export declare const isSettingsRecord: (input: unknown) => input is Settings;
|
|
8
|
-
export declare const assertSettingsRecord: (input: unknown) => Settings;
|
|
9
|
-
export declare const randomSettingsRecord: () => Settings;
|
|
10
|
-
export declare const assertGuardSettingsRecord: __AssertionGuard<SettingsRecord>;
|
|
11
|
-
export declare const stringifySettingsRecord: (input: Settings) => string;
|
|
12
|
-
export declare const assertStringifySettingsRecord: (input: unknown) => string;
|