@nxtedition/types 23.0.26 → 23.0.27
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/common/pipeline.d.ts +1 -1
- package/dist/common/pipeline.js +22 -13
- package/dist/common/settings.d.ts +47 -5
- package/dist/common/settings.js +2132 -723
- package/dist/domains/pipeline-preset.js +24 -13
- package/dist/domains/settings.js +2318 -854
- package/dist/schema.json +120 -5
- package/package.json +1 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isPipelinePresetDomainRecord = input => {
|
|
3
|
-
const $
|
|
3
|
+
const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
4
|
+
const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
|
|
4
5
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
6
|
};
|
|
6
7
|
export const assertPipelinePresetDomainRecord = (input, errorFactory) => {
|
|
7
8
|
const __is = input => {
|
|
8
|
-
const $
|
|
9
|
+
const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
10
|
+
const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
|
|
9
11
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
10
12
|
};
|
|
11
13
|
if (false === __is(input))
|
|
12
14
|
((input, _path, _exceptionable = true) => {
|
|
13
15
|
const $guard = __typia.createAssert.guard;
|
|
16
|
+
const $av3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
14
17
|
const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
|
|
15
18
|
path: _path + ".createMenuItems",
|
|
16
19
|
expected: "(Array<string> | null | undefined)",
|
|
@@ -39,9 +42,9 @@ export const assertPipelinePresetDomainRecord = (input, errorFactory) => {
|
|
|
39
42
|
path: _path + ".tags",
|
|
40
43
|
expected: "(Array<string> | undefined)",
|
|
41
44
|
value: input.tags
|
|
42
|
-
}, errorFactory)) && (undefined === input.sortMode ||
|
|
45
|
+
}, errorFactory)) && (undefined === input.sortMode || true === $av3.has(input.sortMode) || $guard(_exceptionable, {
|
|
43
46
|
path: _path + ".sortMode",
|
|
44
|
-
expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
47
|
+
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
45
48
|
value: input.sortMode
|
|
46
49
|
}, errorFactory));
|
|
47
50
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
@@ -82,19 +85,23 @@ export const randomPipelinePresetDomainRecord = generator => {
|
|
|
82
85
|
() => "newest",
|
|
83
86
|
() => "oldest",
|
|
84
87
|
() => "mostrecent",
|
|
85
|
-
() => "leastrecent"
|
|
88
|
+
() => "leastrecent",
|
|
89
|
+
() => "earliestdeadline",
|
|
90
|
+
() => "latestdeadline"
|
|
86
91
|
])()
|
|
87
92
|
});
|
|
88
93
|
return $ro0();
|
|
89
94
|
};
|
|
90
95
|
export const assertGuardPipelinePresetDomainRecord = (input, errorFactory) => {
|
|
91
96
|
const __is = input => {
|
|
92
|
-
const $
|
|
97
|
+
const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
98
|
+
const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
|
|
93
99
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
94
100
|
};
|
|
95
101
|
if (false === __is(input))
|
|
96
102
|
((input, _path, _exceptionable = true) => {
|
|
97
103
|
const $guard = __typia.createAssertGuard.guard;
|
|
104
|
+
const $av3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
98
105
|
const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
|
|
99
106
|
path: _path + ".createMenuItems",
|
|
100
107
|
expected: "(Array<string> | null | undefined)",
|
|
@@ -123,9 +130,9 @@ export const assertGuardPipelinePresetDomainRecord = (input, errorFactory) => {
|
|
|
123
130
|
path: _path + ".tags",
|
|
124
131
|
expected: "(Array<string> | undefined)",
|
|
125
132
|
value: input.tags
|
|
126
|
-
}, errorFactory)) && (undefined === input.sortMode ||
|
|
133
|
+
}, errorFactory)) && (undefined === input.sortMode || true === $av3.has(input.sortMode) || $guard(_exceptionable, {
|
|
127
134
|
path: _path + ".sortMode",
|
|
128
|
-
expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
135
|
+
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
129
136
|
value: input.sortMode
|
|
130
137
|
}, errorFactory));
|
|
131
138
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
@@ -143,13 +150,14 @@ export const stringifyPipelinePresetDomainRecord = input => {
|
|
|
143
150
|
const $string = __typia.json.createStringify.string;
|
|
144
151
|
const $throws = __typia.json.createStringify.throws;
|
|
145
152
|
const $tail = __typia.json.createStringify.tail;
|
|
153
|
+
const $iv5 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
146
154
|
const $so0 = input => `{${$tail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => $string(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? (() => {
|
|
147
155
|
if ("string" === typeof input.sortMode)
|
|
148
156
|
return $string(input.sortMode);
|
|
149
157
|
if ("string" === typeof input.sortMode)
|
|
150
158
|
return "\"" + input.sortMode + "\"";
|
|
151
159
|
$throws({
|
|
152
|
-
expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
160
|
+
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
153
161
|
value: input.sortMode
|
|
154
162
|
});
|
|
155
163
|
})() : undefined}`}`)}}`;
|
|
@@ -157,12 +165,14 @@ export const stringifyPipelinePresetDomainRecord = input => {
|
|
|
157
165
|
};
|
|
158
166
|
export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
159
167
|
const __is = input => {
|
|
160
|
-
const $
|
|
168
|
+
const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
169
|
+
const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
|
|
161
170
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
162
171
|
};
|
|
163
172
|
if (false === __is(input))
|
|
164
173
|
((input, _path, _exceptionable = true) => {
|
|
165
174
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
175
|
+
const $av3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
166
176
|
const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
|
|
167
177
|
path: _path + ".createMenuItems",
|
|
168
178
|
expected: "(Array<string> | null | undefined)",
|
|
@@ -191,9 +201,9 @@ export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) =
|
|
|
191
201
|
path: _path + ".tags",
|
|
192
202
|
expected: "(Array<string> | undefined)",
|
|
193
203
|
value: input.tags
|
|
194
|
-
}, errorFactory)) && (undefined === input.sortMode ||
|
|
204
|
+
}, errorFactory)) && (undefined === input.sortMode || true === $av3.has(input.sortMode) || $guard(_exceptionable, {
|
|
195
205
|
path: _path + ".sortMode",
|
|
196
|
-
expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
206
|
+
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
197
207
|
value: input.sortMode
|
|
198
208
|
}, errorFactory));
|
|
199
209
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
@@ -211,13 +221,14 @@ export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) =
|
|
|
211
221
|
const $string = __typia.json.createAssertStringify.string;
|
|
212
222
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
213
223
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
224
|
+
const $iv5 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
214
225
|
const $so0 = input => `{${$tail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => $string(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? (() => {
|
|
215
226
|
if ("string" === typeof input.sortMode)
|
|
216
227
|
return $string(input.sortMode);
|
|
217
228
|
if ("string" === typeof input.sortMode)
|
|
218
229
|
return "\"" + input.sortMode + "\"";
|
|
219
230
|
$throws({
|
|
220
|
-
expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
231
|
+
expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
|
|
221
232
|
value: input.sortMode
|
|
222
233
|
});
|
|
223
234
|
})() : undefined}`}`)}}`;
|