@nxtedition/types 1.3.0 → 1.5.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/common/settings.d.ts +8 -4
- package/dist/common/settings.js +99 -25
- package/dist/domains/asset.d.ts +26 -0
- package/dist/domains/asset.js +310 -0
- package/dist/domains/general.d.ts +55 -0
- package/dist/domains/general.js +681 -0
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +34 -0
- package/dist/domains/media.js +497 -0
- package/dist/domains/permission.d.ts +73 -12
- package/dist/domains/permission.js +1689 -138
- package/dist/domains/planning.d.ts +33 -0
- package/dist/domains/planning.js +318 -0
- package/dist/domains/settings.js +72 -8
- package/dist/index.d.ts +3 -0
- package/package.json +2 -2
package/dist/domains/asset.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ 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;
|
|
6
|
+
":asset.refs?": AssetRefsRecord;
|
|
5
7
|
}
|
|
6
8
|
export interface AssetTitleRecord {
|
|
7
9
|
value?: string;
|
|
@@ -21,3 +23,27 @@ export declare const randomAssetTypesRecord: () => AssetTypesRecord;
|
|
|
21
23
|
export declare const assertGuardAssetTypesRecord: __AssertionGuard<AssetTypesRecord>;
|
|
22
24
|
export declare const stringifyAssetTypesRecord: (input: AssetTypesRecord) => string;
|
|
23
25
|
export declare const assertStringifyAssetTypesRecord: (input: unknown) => string;
|
|
26
|
+
export interface AssetAssigneesRecord {
|
|
27
|
+
value?: string[];
|
|
28
|
+
}
|
|
29
|
+
export declare const isAssetAssigneesRecord: (input: unknown) => input is AssetAssigneesRecord;
|
|
30
|
+
export declare const assertAssetAssigneesRecord: (input: unknown) => AssetAssigneesRecord;
|
|
31
|
+
export declare const randomAssetAssigneesRecord: () => AssetAssigneesRecord;
|
|
32
|
+
export declare const assertGuardAssetAssigneesRecord: __AssertionGuard<AssetAssigneesRecord>;
|
|
33
|
+
export declare const stringifyAssetAssigneesRecord: (input: AssetAssigneesRecord) => string;
|
|
34
|
+
export declare const assertStringifyAssetAssigneesRecord: (input: unknown) => string;
|
|
35
|
+
export interface AssetRefsRecord {
|
|
36
|
+
value?: AssetRef[];
|
|
37
|
+
}
|
|
38
|
+
export declare const isAssetRefsRecord: (input: unknown) => input is AssetRefsRecord;
|
|
39
|
+
export declare const assertAssetRefsRecord: (input: unknown) => AssetRefsRecord;
|
|
40
|
+
export declare const randomAssetRefsRecord: () => AssetRefsRecord;
|
|
41
|
+
export declare const assertGuardAssetRefsRecord: __AssertionGuard<AssetRefsRecord>;
|
|
42
|
+
export declare const stringifyAssetRefsRecord: (input: AssetRefsRecord) => string;
|
|
43
|
+
export declare const assertStringifyAssetRefsRecord: (input: unknown) => string;
|
|
44
|
+
interface AssetRef {
|
|
45
|
+
id: string;
|
|
46
|
+
key: string;
|
|
47
|
+
value: string;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
package/dist/domains/asset.js
CHANGED
|
@@ -223,3 +223,313 @@ 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)); };
|
|
350
|
+
export const isAssetRefsRecord = input => {
|
|
351
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
352
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value;
|
|
353
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
354
|
+
};
|
|
355
|
+
export const assertAssetRefsRecord = (input, errorFactory) => {
|
|
356
|
+
const __is = input => {
|
|
357
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
358
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value;
|
|
359
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
360
|
+
};
|
|
361
|
+
if (false === __is(input))
|
|
362
|
+
((input, _path, _exceptionable = true) => {
|
|
363
|
+
const $guard = __typia.createAssert.guard;
|
|
364
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
365
|
+
path: _path + ".value",
|
|
366
|
+
expected: "(Array<AssetRef> | undefined)",
|
|
367
|
+
value: input.value
|
|
368
|
+
}, errorFactory)) && input.value.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
369
|
+
path: _path + ".value[" + _index1 + "]",
|
|
370
|
+
expected: "AssetRef",
|
|
371
|
+
value: elem
|
|
372
|
+
}, errorFactory)) && $ao1(elem, _path + ".value[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
373
|
+
path: _path + ".value[" + _index1 + "]",
|
|
374
|
+
expected: "AssetRef",
|
|
375
|
+
value: elem
|
|
376
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
377
|
+
path: _path + ".value",
|
|
378
|
+
expected: "(Array<AssetRef> | undefined)",
|
|
379
|
+
value: input.value
|
|
380
|
+
}, errorFactory);
|
|
381
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
382
|
+
path: _path + ".id",
|
|
383
|
+
expected: "string",
|
|
384
|
+
value: input.id
|
|
385
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
386
|
+
path: _path + ".key",
|
|
387
|
+
expected: "string",
|
|
388
|
+
value: input.key
|
|
389
|
+
}, errorFactory)) && ("string" === typeof input.value || $guard(_exceptionable, {
|
|
390
|
+
path: _path + ".value",
|
|
391
|
+
expected: "string",
|
|
392
|
+
value: input.value
|
|
393
|
+
}, errorFactory));
|
|
394
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
395
|
+
path: _path + "",
|
|
396
|
+
expected: "AssetRefsRecord",
|
|
397
|
+
value: input
|
|
398
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
399
|
+
path: _path + "",
|
|
400
|
+
expected: "AssetRefsRecord",
|
|
401
|
+
value: input
|
|
402
|
+
}, errorFactory);
|
|
403
|
+
})(input, "$input", true);
|
|
404
|
+
return input;
|
|
405
|
+
};
|
|
406
|
+
export const randomAssetRefsRecord = generator => {
|
|
407
|
+
const $generator = __typia.createRandom.generator;
|
|
408
|
+
const $pick = __typia.createRandom.pick;
|
|
409
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
410
|
+
value: $pick([
|
|
411
|
+
() => undefined,
|
|
412
|
+
() => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
|
|
413
|
+
])()
|
|
414
|
+
});
|
|
415
|
+
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
416
|
+
id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
417
|
+
key: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
418
|
+
value: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
419
|
+
});
|
|
420
|
+
return $ro0();
|
|
421
|
+
};
|
|
422
|
+
export const assertGuardAssetRefsRecord = (input, errorFactory) => {
|
|
423
|
+
const __is = input => {
|
|
424
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
425
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value;
|
|
426
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
427
|
+
};
|
|
428
|
+
if (false === __is(input))
|
|
429
|
+
((input, _path, _exceptionable = true) => {
|
|
430
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
431
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
432
|
+
path: _path + ".value",
|
|
433
|
+
expected: "(Array<AssetRef> | undefined)",
|
|
434
|
+
value: input.value
|
|
435
|
+
}, errorFactory)) && input.value.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
436
|
+
path: _path + ".value[" + _index1 + "]",
|
|
437
|
+
expected: "AssetRef",
|
|
438
|
+
value: elem
|
|
439
|
+
}, errorFactory)) && $ao1(elem, _path + ".value[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
440
|
+
path: _path + ".value[" + _index1 + "]",
|
|
441
|
+
expected: "AssetRef",
|
|
442
|
+
value: elem
|
|
443
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
444
|
+
path: _path + ".value",
|
|
445
|
+
expected: "(Array<AssetRef> | undefined)",
|
|
446
|
+
value: input.value
|
|
447
|
+
}, errorFactory);
|
|
448
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
449
|
+
path: _path + ".id",
|
|
450
|
+
expected: "string",
|
|
451
|
+
value: input.id
|
|
452
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
453
|
+
path: _path + ".key",
|
|
454
|
+
expected: "string",
|
|
455
|
+
value: input.key
|
|
456
|
+
}, errorFactory)) && ("string" === typeof input.value || $guard(_exceptionable, {
|
|
457
|
+
path: _path + ".value",
|
|
458
|
+
expected: "string",
|
|
459
|
+
value: input.value
|
|
460
|
+
}, errorFactory));
|
|
461
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
462
|
+
path: _path + "",
|
|
463
|
+
expected: "AssetRefsRecord",
|
|
464
|
+
value: input
|
|
465
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
466
|
+
path: _path + "",
|
|
467
|
+
expected: "AssetRefsRecord",
|
|
468
|
+
value: input
|
|
469
|
+
}, errorFactory);
|
|
470
|
+
})(input, "$input", true);
|
|
471
|
+
};
|
|
472
|
+
export const stringifyAssetRefsRecord = input => {
|
|
473
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value;
|
|
474
|
+
const $string = __typia.json.createStringify.string;
|
|
475
|
+
const $tail = __typia.json.createStringify.tail;
|
|
476
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => `{"id":${$string(elem.id)},"key":${$string(elem.key)},"value":${$string(elem.value)}}`).join(",")}]` : undefined}`}`)}}`;
|
|
477
|
+
return $so0(input);
|
|
478
|
+
};
|
|
479
|
+
export const assertStringifyAssetRefsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
480
|
+
const __is = input => {
|
|
481
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
482
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value;
|
|
483
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
484
|
+
};
|
|
485
|
+
if (false === __is(input))
|
|
486
|
+
((input, _path, _exceptionable = true) => {
|
|
487
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
488
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
489
|
+
path: _path + ".value",
|
|
490
|
+
expected: "(Array<AssetRef> | undefined)",
|
|
491
|
+
value: input.value
|
|
492
|
+
}, errorFactory)) && input.value.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
493
|
+
path: _path + ".value[" + _index1 + "]",
|
|
494
|
+
expected: "AssetRef",
|
|
495
|
+
value: elem
|
|
496
|
+
}, errorFactory)) && $ao1(elem, _path + ".value[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
497
|
+
path: _path + ".value[" + _index1 + "]",
|
|
498
|
+
expected: "AssetRef",
|
|
499
|
+
value: elem
|
|
500
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
501
|
+
path: _path + ".value",
|
|
502
|
+
expected: "(Array<AssetRef> | undefined)",
|
|
503
|
+
value: input.value
|
|
504
|
+
}, errorFactory);
|
|
505
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
506
|
+
path: _path + ".id",
|
|
507
|
+
expected: "string",
|
|
508
|
+
value: input.id
|
|
509
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
510
|
+
path: _path + ".key",
|
|
511
|
+
expected: "string",
|
|
512
|
+
value: input.key
|
|
513
|
+
}, errorFactory)) && ("string" === typeof input.value || $guard(_exceptionable, {
|
|
514
|
+
path: _path + ".value",
|
|
515
|
+
expected: "string",
|
|
516
|
+
value: input.value
|
|
517
|
+
}, errorFactory));
|
|
518
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
519
|
+
path: _path + "",
|
|
520
|
+
expected: "AssetRefsRecord",
|
|
521
|
+
value: input
|
|
522
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
523
|
+
path: _path + "",
|
|
524
|
+
expected: "AssetRefsRecord",
|
|
525
|
+
value: input
|
|
526
|
+
}, errorFactory);
|
|
527
|
+
})(input, "$input", true);
|
|
528
|
+
return input;
|
|
529
|
+
}; const stringify = input => {
|
|
530
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value;
|
|
531
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
532
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
533
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => `{"id":${$string(elem.id)},"key":${$string(elem.key)},"value":${$string(elem.value)}}`).join(",")}]` : undefined}`}`)}}`;
|
|
534
|
+
return $so0(input);
|
|
535
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -2,6 +2,10 @@ import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
|
2
2
|
export interface GeneralDomainRecords {
|
|
3
3
|
":general.title": GeneralTitleRecord;
|
|
4
4
|
":general.tags": GeneralTagsRecord;
|
|
5
|
+
":general.created": GeneralCreatedRecord;
|
|
6
|
+
":general.poster": GeneralPosterRecord;
|
|
7
|
+
":general.status": GeneralStatusRecord;
|
|
8
|
+
":general.description": GeneralDescriptionRecord;
|
|
5
9
|
}
|
|
6
10
|
export interface GeneralTitleRecord {
|
|
7
11
|
value?: string;
|
|
@@ -21,3 +25,54 @@ export declare const randomGeneralTagsRecord: () => GeneralTagsRecord;
|
|
|
21
25
|
export declare const assertGuardGeneralTagsRecord: __AssertionGuard<GeneralTagsRecord>;
|
|
22
26
|
export declare const stringifyGeneralTagsRecord: (input: GeneralTagsRecord) => string;
|
|
23
27
|
export declare const assertStringifyGeneralTagsRecord: (input: unknown) => string;
|
|
28
|
+
export interface GeneralCreatedRecord {
|
|
29
|
+
time?: string;
|
|
30
|
+
user?: string;
|
|
31
|
+
origin?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const isGeneralCreatedRecord: (input: unknown) => input is GeneralCreatedRecord;
|
|
34
|
+
export declare const assertGeneralCreatedRecord: (input: unknown) => GeneralCreatedRecord;
|
|
35
|
+
export declare const randomGeneralCreatedRecord: () => GeneralCreatedRecord;
|
|
36
|
+
export declare const assertGuardGeneralCreatedRecord: __AssertionGuard<GeneralCreatedRecord>;
|
|
37
|
+
export declare const stringifyGeneralCreatedRecord: (input: GeneralCreatedRecord) => string;
|
|
38
|
+
export declare const assertStringifyGeneralCreatedRecord: (input: unknown) => string;
|
|
39
|
+
export interface GeneralPosterRecord {
|
|
40
|
+
input?: {
|
|
41
|
+
type?: string;
|
|
42
|
+
file?: string;
|
|
43
|
+
};
|
|
44
|
+
preset?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const isGeneralPosterRecord: (input: unknown) => input is GeneralPosterRecord;
|
|
47
|
+
export declare const assertGeneralPosterRecord: (input: unknown) => GeneralPosterRecord;
|
|
48
|
+
export declare const randomGeneralPosterRecord: () => GeneralPosterRecord;
|
|
49
|
+
export declare const assertGuardGeneralPosterRecord: __AssertionGuard<GeneralPosterRecord>;
|
|
50
|
+
export declare const stringifyGeneralPosterRecord: (input: GeneralPosterRecord) => string;
|
|
51
|
+
export declare const assertStringifyGeneralPosterRecord: (input: unknown) => string;
|
|
52
|
+
export type GeneralStatusRecord = {
|
|
53
|
+
[messageId: string]: GeneralStatusRecordValue;
|
|
54
|
+
};
|
|
55
|
+
export declare const isGeneralStatusRecord: (input: unknown) => input is GeneralStatusRecord;
|
|
56
|
+
export declare const assertGeneralStatusRecord: (input: unknown) => GeneralStatusRecord;
|
|
57
|
+
export declare const randomGeneralStatusRecord: () => GeneralStatusRecord;
|
|
58
|
+
export declare const assertGuardGeneralStatusRecord: __AssertionGuard<GeneralStatusRecord>;
|
|
59
|
+
export declare const stringifyGeneralStatusRecord: (input: GeneralStatusRecord) => string;
|
|
60
|
+
export declare const assertStringifyGeneralStatusRecord: (input: unknown) => string;
|
|
61
|
+
export interface GeneralStatusRecordValue {
|
|
62
|
+
expose?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export declare const isGeneralStatusRecordValue: (input: unknown) => input is GeneralStatusRecordValue;
|
|
65
|
+
export declare const assertGeneralStatusRecordValue: (input: unknown) => GeneralStatusRecordValue;
|
|
66
|
+
export declare const randomGeneralStatusRecordValue: () => GeneralStatusRecordValue;
|
|
67
|
+
export declare const assertGuardGeneralStatusRecordValue: __AssertionGuard<GeneralStatusRecordValue>;
|
|
68
|
+
export declare const stringifyGeneralStatusRecordValue: (input: GeneralStatusRecordValue) => string;
|
|
69
|
+
export declare const assertStringifyGeneralStatusRecordValue: (input: unknown) => string;
|
|
70
|
+
export interface GeneralDescriptionRecord {
|
|
71
|
+
value?: string;
|
|
72
|
+
}
|
|
73
|
+
export declare const isGeneralDescriptionRecord: (input: unknown) => input is GeneralDescriptionRecord;
|
|
74
|
+
export declare const assertGeneralDescriptionRecord: (input: unknown) => GeneralDescriptionRecord;
|
|
75
|
+
export declare const randomGeneralDescriptionRecord: () => GeneralDescriptionRecord;
|
|
76
|
+
export declare const assertGuardGeneralDescriptionRecord: __AssertionGuard<GeneralDescriptionRecord>;
|
|
77
|
+
export declare const stringifyGeneralDescriptionRecord: (input: GeneralDescriptionRecord) => string;
|
|
78
|
+
export declare const assertStringifyGeneralDescriptionRecord: (input: unknown) => string;
|