@nxtedition/types 1.3.0 → 1.4.0
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/domains/asset.d.ts +10 -0
- package/dist/domains/asset.js +124 -0
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/planning.d.ts +33 -0
- package/dist/domains/planning.js +318 -0
- package/package.json +2 -2
package/dist/domains/asset.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
|
2
2
|
export interface AssetDomainRecords {
|
|
3
3
|
":asset.title?": AssetTitleRecord;
|
|
4
4
|
":asset.types?": AssetTypesRecord;
|
|
5
|
+
":asset.assignees?": AssetAssigneesRecord;
|
|
5
6
|
}
|
|
6
7
|
export interface AssetTitleRecord {
|
|
7
8
|
value?: string;
|
|
@@ -21,3 +22,12 @@ export declare const randomAssetTypesRecord: () => AssetTypesRecord;
|
|
|
21
22
|
export declare const assertGuardAssetTypesRecord: __AssertionGuard<AssetTypesRecord>;
|
|
22
23
|
export declare const stringifyAssetTypesRecord: (input: AssetTypesRecord) => string;
|
|
23
24
|
export declare const assertStringifyAssetTypesRecord: (input: unknown) => string;
|
|
25
|
+
export interface AssetAssigneesRecord {
|
|
26
|
+
value?: string[];
|
|
27
|
+
}
|
|
28
|
+
export declare const isAssetAssigneesRecord: (input: unknown) => input is AssetAssigneesRecord;
|
|
29
|
+
export declare const assertAssetAssigneesRecord: (input: unknown) => AssetAssigneesRecord;
|
|
30
|
+
export declare const randomAssetAssigneesRecord: () => AssetAssigneesRecord;
|
|
31
|
+
export declare const assertGuardAssetAssigneesRecord: __AssertionGuard<AssetAssigneesRecord>;
|
|
32
|
+
export declare const stringifyAssetAssigneesRecord: (input: AssetAssigneesRecord) => string;
|
|
33
|
+
export declare const assertStringifyAssetAssigneesRecord: (input: unknown) => string;
|
package/dist/domains/asset.js
CHANGED
|
@@ -223,3 +223,127 @@ export const assertStringifyAssetTypesRecord = (input, errorFactory) => { const
|
|
|
223
223
|
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
224
224
|
return $so0(input);
|
|
225
225
|
}; return stringify(assert(input, errorFactory)); };
|
|
226
|
+
export const isAssetAssigneesRecord = input => {
|
|
227
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
228
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
229
|
+
};
|
|
230
|
+
export const assertAssetAssigneesRecord = (input, errorFactory) => {
|
|
231
|
+
const __is = input => {
|
|
232
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
233
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
234
|
+
};
|
|
235
|
+
if (false === __is(input))
|
|
236
|
+
((input, _path, _exceptionable = true) => {
|
|
237
|
+
const $guard = __typia.createAssert.guard;
|
|
238
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
239
|
+
path: _path + ".value",
|
|
240
|
+
expected: "(Array<string> | undefined)",
|
|
241
|
+
value: input.value
|
|
242
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
243
|
+
path: _path + ".value[" + _index1 + "]",
|
|
244
|
+
expected: "string",
|
|
245
|
+
value: elem
|
|
246
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
247
|
+
path: _path + ".value",
|
|
248
|
+
expected: "(Array<string> | undefined)",
|
|
249
|
+
value: input.value
|
|
250
|
+
}, errorFactory);
|
|
251
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
252
|
+
path: _path + "",
|
|
253
|
+
expected: "AssetAssigneesRecord",
|
|
254
|
+
value: input
|
|
255
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
256
|
+
path: _path + "",
|
|
257
|
+
expected: "AssetAssigneesRecord",
|
|
258
|
+
value: input
|
|
259
|
+
}, errorFactory);
|
|
260
|
+
})(input, "$input", true);
|
|
261
|
+
return input;
|
|
262
|
+
};
|
|
263
|
+
export const randomAssetAssigneesRecord = generator => {
|
|
264
|
+
const $generator = __typia.createRandom.generator;
|
|
265
|
+
const $pick = __typia.createRandom.pick;
|
|
266
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
267
|
+
value: $pick([
|
|
268
|
+
() => undefined,
|
|
269
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
270
|
+
])()
|
|
271
|
+
});
|
|
272
|
+
return $ro0();
|
|
273
|
+
};
|
|
274
|
+
export const assertGuardAssetAssigneesRecord = (input, errorFactory) => {
|
|
275
|
+
const __is = input => {
|
|
276
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
277
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
278
|
+
};
|
|
279
|
+
if (false === __is(input))
|
|
280
|
+
((input, _path, _exceptionable = true) => {
|
|
281
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
282
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
283
|
+
path: _path + ".value",
|
|
284
|
+
expected: "(Array<string> | undefined)",
|
|
285
|
+
value: input.value
|
|
286
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
287
|
+
path: _path + ".value[" + _index1 + "]",
|
|
288
|
+
expected: "string",
|
|
289
|
+
value: elem
|
|
290
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
291
|
+
path: _path + ".value",
|
|
292
|
+
expected: "(Array<string> | undefined)",
|
|
293
|
+
value: input.value
|
|
294
|
+
}, errorFactory);
|
|
295
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
296
|
+
path: _path + "",
|
|
297
|
+
expected: "AssetAssigneesRecord",
|
|
298
|
+
value: input
|
|
299
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
300
|
+
path: _path + "",
|
|
301
|
+
expected: "AssetAssigneesRecord",
|
|
302
|
+
value: input
|
|
303
|
+
}, errorFactory);
|
|
304
|
+
})(input, "$input", true);
|
|
305
|
+
};
|
|
306
|
+
export const stringifyAssetAssigneesRecord = input => {
|
|
307
|
+
const $string = __typia.json.createStringify.string;
|
|
308
|
+
const $tail = __typia.json.createStringify.tail;
|
|
309
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
310
|
+
return $so0(input);
|
|
311
|
+
};
|
|
312
|
+
export const assertStringifyAssetAssigneesRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
313
|
+
const __is = input => {
|
|
314
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
315
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
316
|
+
};
|
|
317
|
+
if (false === __is(input))
|
|
318
|
+
((input, _path, _exceptionable = true) => {
|
|
319
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
320
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
321
|
+
path: _path + ".value",
|
|
322
|
+
expected: "(Array<string> | undefined)",
|
|
323
|
+
value: input.value
|
|
324
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
325
|
+
path: _path + ".value[" + _index1 + "]",
|
|
326
|
+
expected: "string",
|
|
327
|
+
value: elem
|
|
328
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
329
|
+
path: _path + ".value",
|
|
330
|
+
expected: "(Array<string> | undefined)",
|
|
331
|
+
value: input.value
|
|
332
|
+
}, errorFactory);
|
|
333
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
334
|
+
path: _path + "",
|
|
335
|
+
expected: "AssetAssigneesRecord",
|
|
336
|
+
value: input
|
|
337
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
338
|
+
path: _path + "",
|
|
339
|
+
expected: "AssetAssigneesRecord",
|
|
340
|
+
value: input
|
|
341
|
+
}, errorFactory);
|
|
342
|
+
})(input, "$input", true);
|
|
343
|
+
return input;
|
|
344
|
+
}; const stringify = input => {
|
|
345
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
346
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
347
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
348
|
+
return $so0(input);
|
|
349
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { EventDomainRecords } from './event.js';
|
|
|
4
4
|
import type { GeneralDomainRecords } from './general.js';
|
|
5
5
|
import type { MediaDomainRecords } from './media.js';
|
|
6
6
|
import type { PermissionDomainRecords } from './permission.js';
|
|
7
|
+
import type { PlanningDomainRecords } from './planning.js';
|
|
7
8
|
import type { PublishDomainRecords } from './publish.js';
|
|
8
9
|
import type { RoleDomainRecords } from './role.js';
|
|
9
10
|
import type { ScriptDomainRecords } from './script.js';
|
|
@@ -16,10 +17,11 @@ export * from './event.js';
|
|
|
16
17
|
export * from './general.js';
|
|
17
18
|
export * from './media.js';
|
|
18
19
|
export * from './permission.js';
|
|
20
|
+
export * from './planning.js';
|
|
19
21
|
export * from './publish.js';
|
|
20
22
|
export * from './role.js';
|
|
21
23
|
export * from './script.js';
|
|
22
24
|
export * from './search.js';
|
|
23
25
|
export * from './settings.js';
|
|
24
26
|
export * from './template.js';
|
|
25
|
-
export type DomainRecords = AssetDomainRecords & ConnectionDomainRecords & EventDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PublishDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords;
|
|
27
|
+
export type DomainRecords = AssetDomainRecords & ConnectionDomainRecords & EventDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PlanningDomainRecords & PublishDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords;
|
package/dist/domains/index.js
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface PlanningDomainRecords {
|
|
3
|
+
":planning": PlanningRecord;
|
|
4
|
+
":planning.assignees": PlanningAssigneesRecord;
|
|
5
|
+
":planning.deadline": PlanningDeadlineRecord;
|
|
6
|
+
}
|
|
7
|
+
export interface PlanningRecord {
|
|
8
|
+
deadline?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const isPlanningRecord: (input: unknown) => input is PlanningRecord;
|
|
11
|
+
export declare const assertPlanningRecord: (input: unknown) => PlanningRecord;
|
|
12
|
+
export declare const randomPlanningRecord: () => PlanningRecord;
|
|
13
|
+
export declare const assertGuardPlanningRecord: __AssertionGuard<PlanningRecord>;
|
|
14
|
+
export declare const stringifyPlanningRecord: (input: PlanningRecord) => string;
|
|
15
|
+
export declare const assertStringifyPlanningRecord: (input: unknown) => string;
|
|
16
|
+
export interface PlanningAssigneesRecord {
|
|
17
|
+
value: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare const isPlanningAssigneesRecord: (input: unknown) => input is PlanningAssigneesRecord;
|
|
20
|
+
export declare const assertPlanningAssigneesRecord: (input: unknown) => PlanningAssigneesRecord;
|
|
21
|
+
export declare const randomPlanningAssigneesRecord: () => PlanningAssigneesRecord;
|
|
22
|
+
export declare const assertGuardPlanningAssigneesRecord: __AssertionGuard<PlanningAssigneesRecord>;
|
|
23
|
+
export declare const stringifyPlanningAssigneesRecord: (input: PlanningAssigneesRecord) => string;
|
|
24
|
+
export declare const assertStringifyPlanningAssigneesRecord: (input: unknown) => string;
|
|
25
|
+
export interface PlanningDeadlineRecord {
|
|
26
|
+
value: string | null;
|
|
27
|
+
}
|
|
28
|
+
export declare const isPlanningDeadlineRecord: (input: unknown) => input is PlanningDeadlineRecord;
|
|
29
|
+
export declare const assertPlanningDeadlineRecord: (input: unknown) => PlanningDeadlineRecord;
|
|
30
|
+
export declare const randomPlanningDeadlineRecord: () => PlanningDeadlineRecord;
|
|
31
|
+
export declare const assertGuardPlanningDeadlineRecord: __AssertionGuard<PlanningDeadlineRecord>;
|
|
32
|
+
export declare const stringifyPlanningDeadlineRecord: (input: PlanningDeadlineRecord) => string;
|
|
33
|
+
export declare const assertStringifyPlanningDeadlineRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isPlanningRecord = input => {
|
|
3
|
+
const $io0 = input => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline;
|
|
4
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
|
+
};
|
|
6
|
+
export const assertPlanningRecord = (input, errorFactory) => {
|
|
7
|
+
const __is = input => {
|
|
8
|
+
const $io0 = input => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline;
|
|
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) => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline || $guard(_exceptionable, {
|
|
15
|
+
path: _path + ".deadline",
|
|
16
|
+
expected: "(null | string | undefined)",
|
|
17
|
+
value: input.deadline
|
|
18
|
+
}, errorFactory);
|
|
19
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
20
|
+
path: _path + "",
|
|
21
|
+
expected: "PlanningRecord",
|
|
22
|
+
value: input
|
|
23
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
24
|
+
path: _path + "",
|
|
25
|
+
expected: "PlanningRecord",
|
|
26
|
+
value: input
|
|
27
|
+
}, errorFactory);
|
|
28
|
+
})(input, "$input", true);
|
|
29
|
+
return input;
|
|
30
|
+
};
|
|
31
|
+
export const randomPlanningRecord = generator => {
|
|
32
|
+
const $generator = __typia.createRandom.generator;
|
|
33
|
+
const $pick = __typia.createRandom.pick;
|
|
34
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
35
|
+
deadline: $pick([
|
|
36
|
+
() => undefined,
|
|
37
|
+
() => null,
|
|
38
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
39
|
+
])()
|
|
40
|
+
});
|
|
41
|
+
return $ro0();
|
|
42
|
+
};
|
|
43
|
+
export const assertGuardPlanningRecord = (input, errorFactory) => {
|
|
44
|
+
const __is = input => {
|
|
45
|
+
const $io0 = input => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline;
|
|
46
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
47
|
+
};
|
|
48
|
+
if (false === __is(input))
|
|
49
|
+
((input, _path, _exceptionable = true) => {
|
|
50
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
51
|
+
const $ao0 = (input, _path, _exceptionable = true) => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline || $guard(_exceptionable, {
|
|
52
|
+
path: _path + ".deadline",
|
|
53
|
+
expected: "(null | string | undefined)",
|
|
54
|
+
value: input.deadline
|
|
55
|
+
}, errorFactory);
|
|
56
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
57
|
+
path: _path + "",
|
|
58
|
+
expected: "PlanningRecord",
|
|
59
|
+
value: input
|
|
60
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
61
|
+
path: _path + "",
|
|
62
|
+
expected: "PlanningRecord",
|
|
63
|
+
value: input
|
|
64
|
+
}, errorFactory);
|
|
65
|
+
})(input, "$input", true);
|
|
66
|
+
};
|
|
67
|
+
export const stringifyPlanningRecord = input => {
|
|
68
|
+
const $string = __typia.json.createStringify.string;
|
|
69
|
+
const $tail = __typia.json.createStringify.tail;
|
|
70
|
+
const $so0 = input => `{${$tail(`${undefined === input.deadline ? "" : `"deadline":${undefined !== input.deadline ? null !== input.deadline ? $string(input.deadline) : "null" : undefined}`}`)}}`;
|
|
71
|
+
return $so0(input);
|
|
72
|
+
};
|
|
73
|
+
export const assertStringifyPlanningRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
74
|
+
const __is = input => {
|
|
75
|
+
const $io0 = input => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline;
|
|
76
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
77
|
+
};
|
|
78
|
+
if (false === __is(input))
|
|
79
|
+
((input, _path, _exceptionable = true) => {
|
|
80
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
81
|
+
const $ao0 = (input, _path, _exceptionable = true) => null === input.deadline || undefined === input.deadline || "string" === typeof input.deadline || $guard(_exceptionable, {
|
|
82
|
+
path: _path + ".deadline",
|
|
83
|
+
expected: "(null | string | undefined)",
|
|
84
|
+
value: input.deadline
|
|
85
|
+
}, errorFactory);
|
|
86
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
87
|
+
path: _path + "",
|
|
88
|
+
expected: "PlanningRecord",
|
|
89
|
+
value: input
|
|
90
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
91
|
+
path: _path + "",
|
|
92
|
+
expected: "PlanningRecord",
|
|
93
|
+
value: input
|
|
94
|
+
}, errorFactory);
|
|
95
|
+
})(input, "$input", true);
|
|
96
|
+
return input;
|
|
97
|
+
}; const stringify = input => {
|
|
98
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
99
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
100
|
+
const $so0 = input => `{${$tail(`${undefined === input.deadline ? "" : `"deadline":${undefined !== input.deadline ? null !== input.deadline ? $string(input.deadline) : "null" : undefined}`}`)}}`;
|
|
101
|
+
return $so0(input);
|
|
102
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
103
|
+
export const isPlanningAssigneesRecord = input => {
|
|
104
|
+
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
105
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
106
|
+
};
|
|
107
|
+
export const assertPlanningAssigneesRecord = (input, errorFactory) => {
|
|
108
|
+
const __is = input => {
|
|
109
|
+
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
110
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
111
|
+
};
|
|
112
|
+
if (false === __is(input))
|
|
113
|
+
((input, _path, _exceptionable = true) => {
|
|
114
|
+
const $guard = __typia.createAssert.guard;
|
|
115
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
116
|
+
path: _path + ".value",
|
|
117
|
+
expected: "Array<string>",
|
|
118
|
+
value: input.value
|
|
119
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
120
|
+
path: _path + ".value[" + _index1 + "]",
|
|
121
|
+
expected: "string",
|
|
122
|
+
value: elem
|
|
123
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
124
|
+
path: _path + ".value",
|
|
125
|
+
expected: "Array<string>",
|
|
126
|
+
value: input.value
|
|
127
|
+
}, errorFactory);
|
|
128
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
129
|
+
path: _path + "",
|
|
130
|
+
expected: "PlanningAssigneesRecord",
|
|
131
|
+
value: input
|
|
132
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
133
|
+
path: _path + "",
|
|
134
|
+
expected: "PlanningAssigneesRecord",
|
|
135
|
+
value: input
|
|
136
|
+
}, errorFactory);
|
|
137
|
+
})(input, "$input", true);
|
|
138
|
+
return input;
|
|
139
|
+
};
|
|
140
|
+
export const randomPlanningAssigneesRecord = generator => {
|
|
141
|
+
const $generator = __typia.createRandom.generator;
|
|
142
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
143
|
+
value: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
144
|
+
});
|
|
145
|
+
return $ro0();
|
|
146
|
+
};
|
|
147
|
+
export const assertGuardPlanningAssigneesRecord = (input, errorFactory) => {
|
|
148
|
+
const __is = input => {
|
|
149
|
+
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
150
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
151
|
+
};
|
|
152
|
+
if (false === __is(input))
|
|
153
|
+
((input, _path, _exceptionable = true) => {
|
|
154
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
155
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
156
|
+
path: _path + ".value",
|
|
157
|
+
expected: "Array<string>",
|
|
158
|
+
value: input.value
|
|
159
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
160
|
+
path: _path + ".value[" + _index1 + "]",
|
|
161
|
+
expected: "string",
|
|
162
|
+
value: elem
|
|
163
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
164
|
+
path: _path + ".value",
|
|
165
|
+
expected: "Array<string>",
|
|
166
|
+
value: input.value
|
|
167
|
+
}, errorFactory);
|
|
168
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
169
|
+
path: _path + "",
|
|
170
|
+
expected: "PlanningAssigneesRecord",
|
|
171
|
+
value: input
|
|
172
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
173
|
+
path: _path + "",
|
|
174
|
+
expected: "PlanningAssigneesRecord",
|
|
175
|
+
value: input
|
|
176
|
+
}, errorFactory);
|
|
177
|
+
})(input, "$input", true);
|
|
178
|
+
};
|
|
179
|
+
export const stringifyPlanningAssigneesRecord = input => {
|
|
180
|
+
const $string = __typia.json.createStringify.string;
|
|
181
|
+
const $so0 = input => `{"value":${`[${input.value.map(elem => $string(elem)).join(",")}]`}}`;
|
|
182
|
+
return $so0(input);
|
|
183
|
+
};
|
|
184
|
+
export const assertStringifyPlanningAssigneesRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
185
|
+
const __is = input => {
|
|
186
|
+
const $io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
187
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
188
|
+
};
|
|
189
|
+
if (false === __is(input))
|
|
190
|
+
((input, _path, _exceptionable = true) => {
|
|
191
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
192
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
193
|
+
path: _path + ".value",
|
|
194
|
+
expected: "Array<string>",
|
|
195
|
+
value: input.value
|
|
196
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
197
|
+
path: _path + ".value[" + _index1 + "]",
|
|
198
|
+
expected: "string",
|
|
199
|
+
value: elem
|
|
200
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
201
|
+
path: _path + ".value",
|
|
202
|
+
expected: "Array<string>",
|
|
203
|
+
value: input.value
|
|
204
|
+
}, errorFactory);
|
|
205
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
206
|
+
path: _path + "",
|
|
207
|
+
expected: "PlanningAssigneesRecord",
|
|
208
|
+
value: input
|
|
209
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
210
|
+
path: _path + "",
|
|
211
|
+
expected: "PlanningAssigneesRecord",
|
|
212
|
+
value: input
|
|
213
|
+
}, errorFactory);
|
|
214
|
+
})(input, "$input", true);
|
|
215
|
+
return input;
|
|
216
|
+
}; const stringify = input => {
|
|
217
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
218
|
+
const $so0 = input => `{"value":${`[${input.value.map(elem => $string(elem)).join(",")}]`}}`;
|
|
219
|
+
return $so0(input);
|
|
220
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
221
|
+
export const isPlanningDeadlineRecord = input => {
|
|
222
|
+
const $io0 = input => null === input.value || "string" === typeof input.value;
|
|
223
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
224
|
+
};
|
|
225
|
+
export const assertPlanningDeadlineRecord = (input, errorFactory) => {
|
|
226
|
+
const __is = input => {
|
|
227
|
+
const $io0 = input => null === input.value || "string" === typeof input.value;
|
|
228
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
229
|
+
};
|
|
230
|
+
if (false === __is(input))
|
|
231
|
+
((input, _path, _exceptionable = true) => {
|
|
232
|
+
const $guard = __typia.createAssert.guard;
|
|
233
|
+
const $ao0 = (input, _path, _exceptionable = true) => null === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
234
|
+
path: _path + ".value",
|
|
235
|
+
expected: "(null | string)",
|
|
236
|
+
value: input.value
|
|
237
|
+
}, errorFactory);
|
|
238
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
239
|
+
path: _path + "",
|
|
240
|
+
expected: "PlanningDeadlineRecord",
|
|
241
|
+
value: input
|
|
242
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
243
|
+
path: _path + "",
|
|
244
|
+
expected: "PlanningDeadlineRecord",
|
|
245
|
+
value: input
|
|
246
|
+
}, errorFactory);
|
|
247
|
+
})(input, "$input", true);
|
|
248
|
+
return input;
|
|
249
|
+
};
|
|
250
|
+
export const randomPlanningDeadlineRecord = generator => {
|
|
251
|
+
const $generator = __typia.createRandom.generator;
|
|
252
|
+
const $pick = __typia.createRandom.pick;
|
|
253
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
254
|
+
value: $pick([
|
|
255
|
+
() => null,
|
|
256
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
257
|
+
])()
|
|
258
|
+
});
|
|
259
|
+
return $ro0();
|
|
260
|
+
};
|
|
261
|
+
export const assertGuardPlanningDeadlineRecord = (input, errorFactory) => {
|
|
262
|
+
const __is = input => {
|
|
263
|
+
const $io0 = input => null === input.value || "string" === typeof input.value;
|
|
264
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
265
|
+
};
|
|
266
|
+
if (false === __is(input))
|
|
267
|
+
((input, _path, _exceptionable = true) => {
|
|
268
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
269
|
+
const $ao0 = (input, _path, _exceptionable = true) => null === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
270
|
+
path: _path + ".value",
|
|
271
|
+
expected: "(null | string)",
|
|
272
|
+
value: input.value
|
|
273
|
+
}, errorFactory);
|
|
274
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
275
|
+
path: _path + "",
|
|
276
|
+
expected: "PlanningDeadlineRecord",
|
|
277
|
+
value: input
|
|
278
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
279
|
+
path: _path + "",
|
|
280
|
+
expected: "PlanningDeadlineRecord",
|
|
281
|
+
value: input
|
|
282
|
+
}, errorFactory);
|
|
283
|
+
})(input, "$input", true);
|
|
284
|
+
};
|
|
285
|
+
export const stringifyPlanningDeadlineRecord = input => {
|
|
286
|
+
const $string = __typia.json.createStringify.string;
|
|
287
|
+
const $so0 = input => `{"value":${null !== input.value ? $string(input.value) : "null"}}`;
|
|
288
|
+
return $so0(input);
|
|
289
|
+
};
|
|
290
|
+
export const assertStringifyPlanningDeadlineRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
291
|
+
const __is = input => {
|
|
292
|
+
const $io0 = input => null === input.value || "string" === typeof input.value;
|
|
293
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
294
|
+
};
|
|
295
|
+
if (false === __is(input))
|
|
296
|
+
((input, _path, _exceptionable = true) => {
|
|
297
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
298
|
+
const $ao0 = (input, _path, _exceptionable = true) => null === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
299
|
+
path: _path + ".value",
|
|
300
|
+
expected: "(null | string)",
|
|
301
|
+
value: input.value
|
|
302
|
+
}, errorFactory);
|
|
303
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
304
|
+
path: _path + "",
|
|
305
|
+
expected: "PlanningDeadlineRecord",
|
|
306
|
+
value: input
|
|
307
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
308
|
+
path: _path + "",
|
|
309
|
+
expected: "PlanningDeadlineRecord",
|
|
310
|
+
value: input
|
|
311
|
+
}, errorFactory);
|
|
312
|
+
})(input, "$input", true);
|
|
313
|
+
return input;
|
|
314
|
+
}; const stringify = input => {
|
|
315
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
316
|
+
const $so0 = input => `{"value":${null !== input.value ? $string(input.value) : "null"}}`;
|
|
317
|
+
return $so0(input);
|
|
318
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "ts-patch install && typia patch",
|
|
7
|
-
"prebuild": "rimraf
|
|
7
|
+
"prebuild": "rimraf dist",
|
|
8
8
|
"build": "tspc",
|
|
9
9
|
"lint": "npx eslint ./src",
|
|
10
10
|
"prepublishOnly": "yarn lint && yarn build && yarn test",
|