@nxtedition/types 1.4.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.
@@ -223,3 +223,684 @@ export const assertStringifyGeneralTagsRecord = (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 isGeneralCreatedRecord = input => {
227
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
228
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
229
+ };
230
+ export const assertGeneralCreatedRecord = (input, errorFactory) => {
231
+ const __is = input => {
232
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
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.time || "string" === typeof input.time || $guard(_exceptionable, {
239
+ path: _path + ".time",
240
+ expected: "(string | undefined)",
241
+ value: input.time
242
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
243
+ path: _path + ".user",
244
+ expected: "(string | undefined)",
245
+ value: input.user
246
+ }, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
247
+ path: _path + ".origin",
248
+ expected: "(string | undefined)",
249
+ value: input.origin
250
+ }, errorFactory));
251
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
252
+ path: _path + "",
253
+ expected: "GeneralCreatedRecord",
254
+ value: input
255
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
256
+ path: _path + "",
257
+ expected: "GeneralCreatedRecord",
258
+ value: input
259
+ }, errorFactory);
260
+ })(input, "$input", true);
261
+ return input;
262
+ };
263
+ export const randomGeneralCreatedRecord = generator => {
264
+ const $generator = __typia.createRandom.generator;
265
+ const $pick = __typia.createRandom.pick;
266
+ const $ro0 = (_recursive = false, _depth = 0) => ({
267
+ time: $pick([
268
+ () => undefined,
269
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
270
+ ])(),
271
+ user: $pick([
272
+ () => undefined,
273
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
274
+ ])(),
275
+ origin: $pick([
276
+ () => undefined,
277
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
278
+ ])()
279
+ });
280
+ return $ro0();
281
+ };
282
+ export const assertGuardGeneralCreatedRecord = (input, errorFactory) => {
283
+ const __is = input => {
284
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
285
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
286
+ };
287
+ if (false === __is(input))
288
+ ((input, _path, _exceptionable = true) => {
289
+ const $guard = __typia.createAssertGuard.guard;
290
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
291
+ path: _path + ".time",
292
+ expected: "(string | undefined)",
293
+ value: input.time
294
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
295
+ path: _path + ".user",
296
+ expected: "(string | undefined)",
297
+ value: input.user
298
+ }, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
299
+ path: _path + ".origin",
300
+ expected: "(string | undefined)",
301
+ value: input.origin
302
+ }, errorFactory));
303
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
304
+ path: _path + "",
305
+ expected: "GeneralCreatedRecord",
306
+ value: input
307
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
308
+ path: _path + "",
309
+ expected: "GeneralCreatedRecord",
310
+ value: input
311
+ }, errorFactory);
312
+ })(input, "$input", true);
313
+ };
314
+ export const stringifyGeneralCreatedRecord = input => {
315
+ const $string = __typia.json.createStringify.string;
316
+ const $tail = __typia.json.createStringify.tail;
317
+ const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? $string(input.origin) : undefined}`}`)}}`;
318
+ return $so0(input);
319
+ };
320
+ export const assertStringifyGeneralCreatedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
321
+ const __is = input => {
322
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
323
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
324
+ };
325
+ if (false === __is(input))
326
+ ((input, _path, _exceptionable = true) => {
327
+ const $guard = __typia.json.createAssertStringify.guard;
328
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
329
+ path: _path + ".time",
330
+ expected: "(string | undefined)",
331
+ value: input.time
332
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
333
+ path: _path + ".user",
334
+ expected: "(string | undefined)",
335
+ value: input.user
336
+ }, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
337
+ path: _path + ".origin",
338
+ expected: "(string | undefined)",
339
+ value: input.origin
340
+ }, errorFactory));
341
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
342
+ path: _path + "",
343
+ expected: "GeneralCreatedRecord",
344
+ value: input
345
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
346
+ path: _path + "",
347
+ expected: "GeneralCreatedRecord",
348
+ value: input
349
+ }, errorFactory);
350
+ })(input, "$input", true);
351
+ return input;
352
+ }; const stringify = input => {
353
+ const $string = __typia.json.createAssertStringify.string;
354
+ const $tail = __typia.json.createAssertStringify.tail;
355
+ const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? $string(input.origin) : undefined}`}`)}}`;
356
+ return $so0(input);
357
+ }; return stringify(assert(input, errorFactory)); };
358
+ export const isGeneralPosterRecord = input => {
359
+ const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
360
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
361
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
362
+ };
363
+ export const assertGeneralPosterRecord = (input, errorFactory) => {
364
+ const __is = input => {
365
+ const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
366
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
367
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
368
+ };
369
+ if (false === __is(input))
370
+ ((input, _path, _exceptionable = true) => {
371
+ const $guard = __typia.createAssert.guard;
372
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
373
+ path: _path + ".input",
374
+ expected: "(__type | undefined)",
375
+ value: input.input
376
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
377
+ path: _path + ".input",
378
+ expected: "(__type | undefined)",
379
+ value: input.input
380
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
381
+ path: _path + ".preset",
382
+ expected: "(string | undefined)",
383
+ value: input.preset
384
+ }, errorFactory));
385
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
386
+ path: _path + ".type",
387
+ expected: "(string | undefined)",
388
+ value: input.type
389
+ }, errorFactory)) && (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
390
+ path: _path + ".file",
391
+ expected: "(string | undefined)",
392
+ value: input.file
393
+ }, errorFactory));
394
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
395
+ path: _path + "",
396
+ expected: "GeneralPosterRecord",
397
+ value: input
398
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
399
+ path: _path + "",
400
+ expected: "GeneralPosterRecord",
401
+ value: input
402
+ }, errorFactory);
403
+ })(input, "$input", true);
404
+ return input;
405
+ };
406
+ export const randomGeneralPosterRecord = generator => {
407
+ const $pick = __typia.createRandom.pick;
408
+ const $generator = __typia.createRandom.generator;
409
+ const $ro0 = (_recursive = false, _depth = 0) => ({
410
+ input: $pick([
411
+ () => undefined,
412
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
413
+ ])(),
414
+ preset: $pick([
415
+ () => undefined,
416
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
417
+ ])()
418
+ });
419
+ const $ro1 = (_recursive = false, _depth = 0) => ({
420
+ type: $pick([
421
+ () => undefined,
422
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
423
+ ])(),
424
+ file: $pick([
425
+ () => undefined,
426
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
427
+ ])()
428
+ });
429
+ return $ro0();
430
+ };
431
+ export const assertGuardGeneralPosterRecord = (input, errorFactory) => {
432
+ const __is = input => {
433
+ const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
434
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
435
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
436
+ };
437
+ if (false === __is(input))
438
+ ((input, _path, _exceptionable = true) => {
439
+ const $guard = __typia.createAssertGuard.guard;
440
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
441
+ path: _path + ".input",
442
+ expected: "(__type | undefined)",
443
+ value: input.input
444
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
445
+ path: _path + ".input",
446
+ expected: "(__type | undefined)",
447
+ value: input.input
448
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
449
+ path: _path + ".preset",
450
+ expected: "(string | undefined)",
451
+ value: input.preset
452
+ }, errorFactory));
453
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
454
+ path: _path + ".type",
455
+ expected: "(string | undefined)",
456
+ value: input.type
457
+ }, errorFactory)) && (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
458
+ path: _path + ".file",
459
+ expected: "(string | undefined)",
460
+ value: input.file
461
+ }, errorFactory));
462
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
463
+ path: _path + "",
464
+ expected: "GeneralPosterRecord",
465
+ value: input
466
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
467
+ path: _path + "",
468
+ expected: "GeneralPosterRecord",
469
+ value: input
470
+ }, errorFactory);
471
+ })(input, "$input", true);
472
+ };
473
+ export const stringifyGeneralPosterRecord = input => {
474
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
475
+ const $string = __typia.json.createStringify.string;
476
+ const $tail = __typia.json.createStringify.tail;
477
+ const $so0 = input => `{${$tail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined}`}`)}}`;
478
+ const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
479
+ return $so0(input);
480
+ };
481
+ export const assertStringifyGeneralPosterRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
482
+ const __is = input => {
483
+ const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
484
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
485
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
486
+ };
487
+ if (false === __is(input))
488
+ ((input, _path, _exceptionable = true) => {
489
+ const $guard = __typia.json.createAssertStringify.guard;
490
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
491
+ path: _path + ".input",
492
+ expected: "(__type | undefined)",
493
+ value: input.input
494
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
495
+ path: _path + ".input",
496
+ expected: "(__type | undefined)",
497
+ value: input.input
498
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
499
+ path: _path + ".preset",
500
+ expected: "(string | undefined)",
501
+ value: input.preset
502
+ }, errorFactory));
503
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
504
+ path: _path + ".type",
505
+ expected: "(string | undefined)",
506
+ value: input.type
507
+ }, errorFactory)) && (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
508
+ path: _path + ".file",
509
+ expected: "(string | undefined)",
510
+ value: input.file
511
+ }, errorFactory));
512
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
513
+ path: _path + "",
514
+ expected: "GeneralPosterRecord",
515
+ value: input
516
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
517
+ path: _path + "",
518
+ expected: "GeneralPosterRecord",
519
+ value: input
520
+ }, errorFactory);
521
+ })(input, "$input", true);
522
+ return input;
523
+ }; const stringify = input => {
524
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
525
+ const $string = __typia.json.createAssertStringify.string;
526
+ const $tail = __typia.json.createAssertStringify.tail;
527
+ const $so0 = input => `{${$tail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined}`}`)}}`;
528
+ const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
529
+ return $so0(input);
530
+ }; return stringify(assert(input, errorFactory)); };
531
+ export const isGeneralStatusRecord = input => {
532
+ const $io0 = input => Object.keys(input).every(key => {
533
+ const value = input[key];
534
+ if (undefined === value)
535
+ return true;
536
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
537
+ });
538
+ const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
539
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
540
+ };
541
+ export const assertGeneralStatusRecord = (input, errorFactory) => {
542
+ const __is = input => {
543
+ const $io0 = input => Object.keys(input).every(key => {
544
+ const value = input[key];
545
+ if (undefined === value)
546
+ return true;
547
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
548
+ });
549
+ const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
550
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
551
+ };
552
+ if (false === __is(input))
553
+ ((input, _path, _exceptionable = true) => {
554
+ const $guard = __typia.createAssert.guard;
555
+ const $join = __typia.createAssert.join;
556
+ const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
557
+ const value = input[key];
558
+ if (undefined === value)
559
+ return true;
560
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
561
+ path: _path + $join(key),
562
+ expected: "GeneralStatusRecordValue",
563
+ value: value
564
+ }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
565
+ path: _path + $join(key),
566
+ expected: "GeneralStatusRecordValue",
567
+ value: value
568
+ }, errorFactory);
569
+ });
570
+ const $ao1 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
571
+ path: _path + ".expose",
572
+ expected: "(boolean | undefined)",
573
+ value: input.expose
574
+ }, errorFactory);
575
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
576
+ path: _path + "",
577
+ expected: "GeneralStatusRecord",
578
+ value: input
579
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
580
+ path: _path + "",
581
+ expected: "GeneralStatusRecord",
582
+ value: input
583
+ }, errorFactory);
584
+ })(input, "$input", true);
585
+ return input;
586
+ };
587
+ export const randomGeneralStatusRecord = generator => {
588
+ const $generator = __typia.createRandom.generator;
589
+ const $pick = __typia.createRandom.pick;
590
+ const $ro0 = (_recursive = false, _depth = 0) => {
591
+ const output = {};
592
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro1(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
593
+ return output;
594
+ };
595
+ const $ro1 = (_recursive = false, _depth = 0) => ({
596
+ expose: $pick([
597
+ () => undefined,
598
+ () => (generator?.boolean ?? $generator.boolean)()
599
+ ])()
600
+ });
601
+ return $ro0();
602
+ };
603
+ export const assertGuardGeneralStatusRecord = (input, errorFactory) => {
604
+ const __is = input => {
605
+ const $io0 = input => Object.keys(input).every(key => {
606
+ const value = input[key];
607
+ if (undefined === value)
608
+ return true;
609
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
610
+ });
611
+ const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
612
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
613
+ };
614
+ if (false === __is(input))
615
+ ((input, _path, _exceptionable = true) => {
616
+ const $guard = __typia.createAssertGuard.guard;
617
+ const $join = __typia.createAssertGuard.join;
618
+ const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
619
+ const value = input[key];
620
+ if (undefined === value)
621
+ return true;
622
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
623
+ path: _path + $join(key),
624
+ expected: "GeneralStatusRecordValue",
625
+ value: value
626
+ }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
627
+ path: _path + $join(key),
628
+ expected: "GeneralStatusRecordValue",
629
+ value: value
630
+ }, errorFactory);
631
+ });
632
+ const $ao1 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
633
+ path: _path + ".expose",
634
+ expected: "(boolean | undefined)",
635
+ value: input.expose
636
+ }, errorFactory);
637
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
638
+ path: _path + "",
639
+ expected: "GeneralStatusRecord",
640
+ value: input
641
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
642
+ path: _path + "",
643
+ expected: "GeneralStatusRecord",
644
+ value: input
645
+ }, errorFactory);
646
+ })(input, "$input", true);
647
+ };
648
+ export const stringifyGeneralStatusRecord = input => {
649
+ const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
650
+ const $tail = __typia.json.createStringify.tail;
651
+ const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
652
+ return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
653
+ const $so1 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
654
+ return $so0(input);
655
+ };
656
+ export const assertStringifyGeneralStatusRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
657
+ const __is = input => {
658
+ const $io0 = input => Object.keys(input).every(key => {
659
+ const value = input[key];
660
+ if (undefined === value)
661
+ return true;
662
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
663
+ });
664
+ const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
665
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
666
+ };
667
+ if (false === __is(input))
668
+ ((input, _path, _exceptionable = true) => {
669
+ const $guard = __typia.json.createAssertStringify.guard;
670
+ const $join = __typia.json.createAssertStringify.join;
671
+ const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
672
+ const value = input[key];
673
+ if (undefined === value)
674
+ return true;
675
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
676
+ path: _path + $join(key),
677
+ expected: "GeneralStatusRecordValue",
678
+ value: value
679
+ }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
680
+ path: _path + $join(key),
681
+ expected: "GeneralStatusRecordValue",
682
+ value: value
683
+ }, errorFactory);
684
+ });
685
+ const $ao1 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
686
+ path: _path + ".expose",
687
+ expected: "(boolean | undefined)",
688
+ value: input.expose
689
+ }, errorFactory);
690
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
691
+ path: _path + "",
692
+ expected: "GeneralStatusRecord",
693
+ value: input
694
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
695
+ path: _path + "",
696
+ expected: "GeneralStatusRecord",
697
+ value: input
698
+ }, errorFactory);
699
+ })(input, "$input", true);
700
+ return input;
701
+ }; const stringify = input => {
702
+ const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
703
+ const $tail = __typia.json.createAssertStringify.tail;
704
+ const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
705
+ return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
706
+ const $so1 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
707
+ return $so0(input);
708
+ }; return stringify(assert(input, errorFactory)); };
709
+ export const isGeneralStatusRecordValue = input => {
710
+ const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
711
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
712
+ };
713
+ export const assertGeneralStatusRecordValue = (input, errorFactory) => {
714
+ const __is = input => {
715
+ const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
716
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
717
+ };
718
+ if (false === __is(input))
719
+ ((input, _path, _exceptionable = true) => {
720
+ const $guard = __typia.createAssert.guard;
721
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
722
+ path: _path + ".expose",
723
+ expected: "(boolean | undefined)",
724
+ value: input.expose
725
+ }, errorFactory);
726
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
727
+ path: _path + "",
728
+ expected: "GeneralStatusRecordValue",
729
+ value: input
730
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
731
+ path: _path + "",
732
+ expected: "GeneralStatusRecordValue",
733
+ value: input
734
+ }, errorFactory);
735
+ })(input, "$input", true);
736
+ return input;
737
+ };
738
+ export const randomGeneralStatusRecordValue = generator => {
739
+ const $generator = __typia.createRandom.generator;
740
+ const $pick = __typia.createRandom.pick;
741
+ const $ro0 = (_recursive = false, _depth = 0) => ({
742
+ expose: $pick([
743
+ () => undefined,
744
+ () => (generator?.boolean ?? $generator.boolean)()
745
+ ])()
746
+ });
747
+ return $ro0();
748
+ };
749
+ export const assertGuardGeneralStatusRecordValue = (input, errorFactory) => {
750
+ const __is = input => {
751
+ const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
752
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
753
+ };
754
+ if (false === __is(input))
755
+ ((input, _path, _exceptionable = true) => {
756
+ const $guard = __typia.createAssertGuard.guard;
757
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
758
+ path: _path + ".expose",
759
+ expected: "(boolean | undefined)",
760
+ value: input.expose
761
+ }, errorFactory);
762
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
763
+ path: _path + "",
764
+ expected: "GeneralStatusRecordValue",
765
+ value: input
766
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
767
+ path: _path + "",
768
+ expected: "GeneralStatusRecordValue",
769
+ value: input
770
+ }, errorFactory);
771
+ })(input, "$input", true);
772
+ };
773
+ export const stringifyGeneralStatusRecordValue = input => {
774
+ const $tail = __typia.json.createStringify.tail;
775
+ const $so0 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
776
+ return $so0(input);
777
+ };
778
+ export const assertStringifyGeneralStatusRecordValue = (input, errorFactory) => { const assert = (input, errorFactory) => {
779
+ const __is = input => {
780
+ const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
781
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
782
+ };
783
+ if (false === __is(input))
784
+ ((input, _path, _exceptionable = true) => {
785
+ const $guard = __typia.json.createAssertStringify.guard;
786
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
787
+ path: _path + ".expose",
788
+ expected: "(boolean | undefined)",
789
+ value: input.expose
790
+ }, errorFactory);
791
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
792
+ path: _path + "",
793
+ expected: "GeneralStatusRecordValue",
794
+ value: input
795
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
796
+ path: _path + "",
797
+ expected: "GeneralStatusRecordValue",
798
+ value: input
799
+ }, errorFactory);
800
+ })(input, "$input", true);
801
+ return input;
802
+ }; const stringify = input => {
803
+ const $tail = __typia.json.createAssertStringify.tail;
804
+ const $so0 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
805
+ return $so0(input);
806
+ }; return stringify(assert(input, errorFactory)); };
807
+ export const isGeneralDescriptionRecord = input => {
808
+ const $io0 = input => undefined === input.value || "string" === typeof input.value;
809
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
810
+ };
811
+ export const assertGeneralDescriptionRecord = (input, errorFactory) => {
812
+ const __is = input => {
813
+ const $io0 = input => undefined === input.value || "string" === typeof input.value;
814
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
815
+ };
816
+ if (false === __is(input))
817
+ ((input, _path, _exceptionable = true) => {
818
+ const $guard = __typia.createAssert.guard;
819
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
820
+ path: _path + ".value",
821
+ expected: "(string | undefined)",
822
+ value: input.value
823
+ }, errorFactory);
824
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
825
+ path: _path + "",
826
+ expected: "GeneralDescriptionRecord",
827
+ value: input
828
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
829
+ path: _path + "",
830
+ expected: "GeneralDescriptionRecord",
831
+ value: input
832
+ }, errorFactory);
833
+ })(input, "$input", true);
834
+ return input;
835
+ };
836
+ export const randomGeneralDescriptionRecord = generator => {
837
+ const $generator = __typia.createRandom.generator;
838
+ const $pick = __typia.createRandom.pick;
839
+ const $ro0 = (_recursive = false, _depth = 0) => ({
840
+ value: $pick([
841
+ () => undefined,
842
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
843
+ ])()
844
+ });
845
+ return $ro0();
846
+ };
847
+ export const assertGuardGeneralDescriptionRecord = (input, errorFactory) => {
848
+ const __is = input => {
849
+ const $io0 = input => undefined === input.value || "string" === typeof input.value;
850
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
851
+ };
852
+ if (false === __is(input))
853
+ ((input, _path, _exceptionable = true) => {
854
+ const $guard = __typia.createAssertGuard.guard;
855
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
856
+ path: _path + ".value",
857
+ expected: "(string | undefined)",
858
+ value: input.value
859
+ }, errorFactory);
860
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
861
+ path: _path + "",
862
+ expected: "GeneralDescriptionRecord",
863
+ value: input
864
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
865
+ path: _path + "",
866
+ expected: "GeneralDescriptionRecord",
867
+ value: input
868
+ }, errorFactory);
869
+ })(input, "$input", true);
870
+ };
871
+ export const stringifyGeneralDescriptionRecord = input => {
872
+ const $string = __typia.json.createStringify.string;
873
+ const $tail = __typia.json.createStringify.tail;
874
+ const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
875
+ return $so0(input);
876
+ };
877
+ export const assertStringifyGeneralDescriptionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
878
+ const __is = input => {
879
+ const $io0 = input => undefined === input.value || "string" === typeof input.value;
880
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
881
+ };
882
+ if (false === __is(input))
883
+ ((input, _path, _exceptionable = true) => {
884
+ const $guard = __typia.json.createAssertStringify.guard;
885
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
886
+ path: _path + ".value",
887
+ expected: "(string | undefined)",
888
+ value: input.value
889
+ }, errorFactory);
890
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
891
+ path: _path + "",
892
+ expected: "GeneralDescriptionRecord",
893
+ value: input
894
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
895
+ path: _path + "",
896
+ expected: "GeneralDescriptionRecord",
897
+ value: input
898
+ }, errorFactory);
899
+ })(input, "$input", true);
900
+ return input;
901
+ }; const stringify = input => {
902
+ const $string = __typia.json.createAssertStringify.string;
903
+ const $tail = __typia.json.createAssertStringify.tail;
904
+ const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
905
+ return $so0(input);
906
+ }; return stringify(assert(input, errorFactory)); };