@nxtedition/types 1.5.0 → 1.6.1

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.
@@ -7,6 +7,9 @@ export interface File {
7
7
  deleted: boolean;
8
8
  refs: Array<{
9
9
  file?: string;
10
+ offset?: number;
11
+ start?: number;
12
+ end?: number;
10
13
  }>;
11
14
  tags: string[];
12
15
  error: Array<{
@@ -1,14 +1,14 @@
1
1
  import __typia from "typia";
2
2
  export const isFile = input => {
3
3
  const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
4
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
4
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
5
5
  const $io2 = input => "string" === typeof input.message;
6
6
  return "object" === typeof input && null !== input && $io0(input);
7
7
  };
8
8
  export const assertFile = (input, errorFactory) => {
9
9
  const __is = input => {
10
10
  const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
11
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
11
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
12
12
  const $io2 = input => "string" === typeof input.message;
13
13
  return "object" === typeof input && null !== input && $io0(input);
14
14
  };
@@ -116,11 +116,23 @@ export const assertFile = (input, errorFactory) => {
116
116
  expected: "(number & Minimum<0> & Type<\"uint64\">)",
117
117
  value: input.btime
118
118
  }, errorFactory));
119
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
119
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
120
120
  path: _path + ".file",
121
121
  expected: "(string | undefined)",
122
122
  value: input.file
123
- }, errorFactory);
123
+ }, errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || $guard(_exceptionable, {
124
+ path: _path + ".offset",
125
+ expected: "(number | undefined)",
126
+ value: input.offset
127
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
128
+ path: _path + ".start",
129
+ expected: "(number | undefined)",
130
+ value: input.start
131
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
132
+ path: _path + ".end",
133
+ expected: "(number | undefined)",
134
+ value: input.end
135
+ }, errorFactory));
124
136
  const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
125
137
  path: _path + ".message",
126
138
  expected: "string",
@@ -195,6 +207,18 @@ export const randomFile = generator => {
195
207
  file: $pick([
196
208
  () => undefined,
197
209
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
210
+ ])(),
211
+ offset: $pick([
212
+ () => undefined,
213
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
214
+ ])(),
215
+ start: $pick([
216
+ () => undefined,
217
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
218
+ ])(),
219
+ end: $pick([
220
+ () => undefined,
221
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
198
222
  ])()
199
223
  });
200
224
  const $ro2 = (_recursive = false, _depth = 0) => ({
@@ -205,7 +229,7 @@ export const randomFile = generator => {
205
229
  export const assertGuardFile = (input, errorFactory) => {
206
230
  const __is = input => {
207
231
  const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
208
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
232
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
209
233
  const $io2 = input => "string" === typeof input.message;
210
234
  return "object" === typeof input && null !== input && $io0(input);
211
235
  };
@@ -313,11 +337,23 @@ export const assertGuardFile = (input, errorFactory) => {
313
337
  expected: "(number & Minimum<0> & Type<\"uint64\">)",
314
338
  value: input.btime
315
339
  }, errorFactory));
316
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
340
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
317
341
  path: _path + ".file",
318
342
  expected: "(string | undefined)",
319
343
  value: input.file
320
- }, errorFactory);
344
+ }, errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || $guard(_exceptionable, {
345
+ path: _path + ".offset",
346
+ expected: "(number | undefined)",
347
+ value: input.offset
348
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
349
+ path: _path + ".start",
350
+ expected: "(number | undefined)",
351
+ value: input.start
352
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
353
+ path: _path + ".end",
354
+ expected: "(number | undefined)",
355
+ value: input.end
356
+ }, errorFactory));
321
357
  const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
322
358
  path: _path + ".message",
323
359
  expected: "string",
@@ -335,18 +371,18 @@ export const assertGuardFile = (input, errorFactory) => {
335
371
  })(input, "$input", true);
336
372
  };
337
373
  export const stringifyFile = input => {
338
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
374
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
339
375
  const $io2 = input => "string" === typeof input.message;
340
376
  const $string = __typia.json.createStringify.string;
341
377
  const $tail = __typia.json.createStringify.tail;
342
378
  const $so0 = input => `{"id":${$string(input.id)},"size":${input.size},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime}}`;
343
- const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
379
+ const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
344
380
  return $so0(input);
345
381
  };
346
382
  export const assertStringifyFile = (input, errorFactory) => { const assert = (input, errorFactory) => {
347
383
  const __is = input => {
348
384
  const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
349
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
385
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
350
386
  const $io2 = input => "string" === typeof input.message;
351
387
  return "object" === typeof input && null !== input && $io0(input);
352
388
  };
@@ -454,11 +490,23 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
454
490
  expected: "(number & Minimum<0> & Type<\"uint64\">)",
455
491
  value: input.btime
456
492
  }, errorFactory));
457
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
493
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
458
494
  path: _path + ".file",
459
495
  expected: "(string | undefined)",
460
496
  value: input.file
461
- }, errorFactory);
497
+ }, errorFactory)) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset) || $guard(_exceptionable, {
498
+ path: _path + ".offset",
499
+ expected: "(number | undefined)",
500
+ value: input.offset
501
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
502
+ path: _path + ".start",
503
+ expected: "(number | undefined)",
504
+ value: input.start
505
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
506
+ path: _path + ".end",
507
+ expected: "(number | undefined)",
508
+ value: input.end
509
+ }, errorFactory));
462
510
  const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
463
511
  path: _path + ".message",
464
512
  expected: "string",
@@ -476,24 +524,24 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
476
524
  })(input, "$input", true);
477
525
  return input;
478
526
  }; const stringify = input => {
479
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
527
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
480
528
  const $io2 = input => "string" === typeof input.message;
481
529
  const $string = __typia.json.createAssertStringify.string;
482
530
  const $tail = __typia.json.createAssertStringify.tail;
483
531
  const $so0 = input => `{"id":${$string(input.id)},"size":${input.size},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime}}`;
484
- const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
532
+ const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
485
533
  return $so0(input);
486
534
  }; return stringify(assert(input, errorFactory)); };
487
535
  export const isFileStats = input => {
488
536
  const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && "boolean" === typeof input.uploading && "boolean" === typeof input.completed && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
489
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
537
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
490
538
  const $io2 = input => "string" === typeof input.message;
491
539
  return "object" === typeof input && null !== input && $io0(input);
492
540
  };
493
541
  export const assertFileStats = (input, errorFactory) => {
494
542
  const __is = input => {
495
543
  const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && "boolean" === typeof input.uploading && "boolean" === typeof input.completed && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
496
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
544
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
497
545
  const $io2 = input => "string" === typeof input.message;
498
546
  return "object" === typeof input && null !== input && $io0(input);
499
547
  };
@@ -645,11 +693,23 @@ export const assertFileStats = (input, errorFactory) => {
645
693
  expected: "(number & Minimum<0> & Type<\"uint64\">)",
646
694
  value: input.btime
647
695
  }, errorFactory));
648
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
696
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
649
697
  path: _path + ".file",
650
698
  expected: "(string | undefined)",
651
699
  value: input.file
652
- }, errorFactory);
700
+ }, errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || $guard(_exceptionable, {
701
+ path: _path + ".offset",
702
+ expected: "(number | undefined)",
703
+ value: input.offset
704
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
705
+ path: _path + ".start",
706
+ expected: "(number | undefined)",
707
+ value: input.start
708
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
709
+ path: _path + ".end",
710
+ expected: "(number | undefined)",
711
+ value: input.end
712
+ }, errorFactory));
653
713
  const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
654
714
  path: _path + ".message",
655
715
  expected: "string",
@@ -740,6 +800,18 @@ export const randomFileStats = generator => {
740
800
  file: $pick([
741
801
  () => undefined,
742
802
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
803
+ ])(),
804
+ offset: $pick([
805
+ () => undefined,
806
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
807
+ ])(),
808
+ start: $pick([
809
+ () => undefined,
810
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
811
+ ])(),
812
+ end: $pick([
813
+ () => undefined,
814
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
743
815
  ])()
744
816
  });
745
817
  const $ro2 = (_recursive = false, _depth = 0) => ({
@@ -750,7 +822,7 @@ export const randomFileStats = generator => {
750
822
  export const assertGuardFileStats = (input, errorFactory) => {
751
823
  const __is = input => {
752
824
  const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && "boolean" === typeof input.uploading && "boolean" === typeof input.completed && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
753
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
825
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
754
826
  const $io2 = input => "string" === typeof input.message;
755
827
  return "object" === typeof input && null !== input && $io0(input);
756
828
  };
@@ -902,11 +974,23 @@ export const assertGuardFileStats = (input, errorFactory) => {
902
974
  expected: "(number & Minimum<0> & Type<\"uint64\">)",
903
975
  value: input.btime
904
976
  }, errorFactory));
905
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
977
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
906
978
  path: _path + ".file",
907
979
  expected: "(string | undefined)",
908
980
  value: input.file
909
- }, errorFactory);
981
+ }, errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || $guard(_exceptionable, {
982
+ path: _path + ".offset",
983
+ expected: "(number | undefined)",
984
+ value: input.offset
985
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
986
+ path: _path + ".start",
987
+ expected: "(number | undefined)",
988
+ value: input.start
989
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
990
+ path: _path + ".end",
991
+ expected: "(number | undefined)",
992
+ value: input.end
993
+ }, errorFactory));
910
994
  const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
911
995
  path: _path + ".message",
912
996
  expected: "string",
@@ -924,18 +1008,18 @@ export const assertGuardFileStats = (input, errorFactory) => {
924
1008
  })(input, "$input", true);
925
1009
  };
926
1010
  export const stringifyFileStats = input => {
927
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
1011
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
928
1012
  const $io2 = input => "string" === typeof input.message;
929
1013
  const $string = __typia.json.createStringify.string;
930
1014
  const $tail = __typia.json.createStringify.tail;
931
1015
  const $so0 = input => `{"position":${input.position},"uploading":${input.uploading},"completed":${input.completed},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${input.size},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime}}`;
932
- const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
1016
+ const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
933
1017
  return $so0(input);
934
1018
  };
935
1019
  export const assertStringifyFileStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
936
1020
  const __is = input => {
937
1021
  const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && "boolean" === typeof input.uploading && "boolean" === typeof input.completed && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000)));
938
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
1022
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
939
1023
  const $io2 = input => "string" === typeof input.message;
940
1024
  return "object" === typeof input && null !== input && $io0(input);
941
1025
  };
@@ -1087,11 +1171,23 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
1087
1171
  expected: "(number & Minimum<0> & Type<\"uint64\">)",
1088
1172
  value: input.btime
1089
1173
  }, errorFactory));
1090
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1174
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1091
1175
  path: _path + ".file",
1092
1176
  expected: "(string | undefined)",
1093
1177
  value: input.file
1094
- }, errorFactory);
1178
+ }, errorFactory)) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset) || $guard(_exceptionable, {
1179
+ path: _path + ".offset",
1180
+ expected: "(number | undefined)",
1181
+ value: input.offset
1182
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
1183
+ path: _path + ".start",
1184
+ expected: "(number | undefined)",
1185
+ value: input.start
1186
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
1187
+ path: _path + ".end",
1188
+ expected: "(number | undefined)",
1189
+ value: input.end
1190
+ }, errorFactory));
1095
1191
  const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
1096
1192
  path: _path + ".message",
1097
1193
  expected: "string",
@@ -1109,11 +1205,11 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
1109
1205
  })(input, "$input", true);
1110
1206
  return input;
1111
1207
  }; const stringify = input => {
1112
- const $io1 = input => undefined === input.file || "string" === typeof input.file;
1208
+ const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1113
1209
  const $io2 = input => "string" === typeof input.message;
1114
1210
  const $string = __typia.json.createAssertStringify.string;
1115
1211
  const $tail = __typia.json.createAssertStringify.tail;
1116
1212
  const $so0 = input => `{"position":${input.position},"uploading":${input.uploading},"completed":${input.completed},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${input.size},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime}}`;
1117
- const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
1213
+ const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
1118
1214
  return $so0(input);
1119
1215
  }; return stringify(assert(input, errorFactory)); };
@@ -4,6 +4,7 @@ export interface AssetDomainRecords {
4
4
  ":asset.types?": AssetTypesRecord;
5
5
  ":asset.assignees?": AssetAssigneesRecord;
6
6
  ":asset.refs?": AssetRefsRecord;
7
+ ":asset.tags?": AssetTagsRecord;
7
8
  }
8
9
  export interface AssetTitleRecord {
9
10
  value?: string;
@@ -46,4 +47,13 @@ interface AssetRef {
46
47
  key: string;
47
48
  value: string;
48
49
  }
50
+ export interface AssetTagsRecord {
51
+ value?: string[];
52
+ }
53
+ export declare const isAssetTagsRecord: (input: unknown) => input is AssetTagsRecord;
54
+ export declare const assertAssetTagsRecord: (input: unknown) => AssetTagsRecord;
55
+ export declare const randomAssetTagsRecord: () => AssetTagsRecord;
56
+ export declare const assertGuardAssetTagsRecord: __AssertionGuard<AssetTagsRecord>;
57
+ export declare const stringifyAssetTagsRecord: (input: AssetTagsRecord) => string;
58
+ export declare const assertStringifyAssetTagsRecord: (input: unknown) => string;
49
59
  export {};
@@ -533,3 +533,127 @@ export const assertStringifyAssetRefsRecord = (input, errorFactory) => { const a
533
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
534
  return $so0(input);
535
535
  }; return stringify(assert(input, errorFactory)); };
536
+ export const isAssetTagsRecord = input => {
537
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
538
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
539
+ };
540
+ export const assertAssetTagsRecord = (input, errorFactory) => {
541
+ const __is = input => {
542
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
543
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
544
+ };
545
+ if (false === __is(input))
546
+ ((input, _path, _exceptionable = true) => {
547
+ const $guard = __typia.createAssert.guard;
548
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
549
+ path: _path + ".value",
550
+ expected: "(Array<string> | undefined)",
551
+ value: input.value
552
+ }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
553
+ path: _path + ".value[" + _index1 + "]",
554
+ expected: "string",
555
+ value: elem
556
+ }, errorFactory)) || $guard(_exceptionable, {
557
+ path: _path + ".value",
558
+ expected: "(Array<string> | undefined)",
559
+ value: input.value
560
+ }, errorFactory);
561
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
562
+ path: _path + "",
563
+ expected: "AssetTagsRecord",
564
+ value: input
565
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
566
+ path: _path + "",
567
+ expected: "AssetTagsRecord",
568
+ value: input
569
+ }, errorFactory);
570
+ })(input, "$input", true);
571
+ return input;
572
+ };
573
+ export const randomAssetTagsRecord = generator => {
574
+ const $generator = __typia.createRandom.generator;
575
+ const $pick = __typia.createRandom.pick;
576
+ const $ro0 = (_recursive = false, _depth = 0) => ({
577
+ value: $pick([
578
+ () => undefined,
579
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
580
+ ])()
581
+ });
582
+ return $ro0();
583
+ };
584
+ export const assertGuardAssetTagsRecord = (input, errorFactory) => {
585
+ const __is = input => {
586
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
587
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
588
+ };
589
+ if (false === __is(input))
590
+ ((input, _path, _exceptionable = true) => {
591
+ const $guard = __typia.createAssertGuard.guard;
592
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
593
+ path: _path + ".value",
594
+ expected: "(Array<string> | undefined)",
595
+ value: input.value
596
+ }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
597
+ path: _path + ".value[" + _index1 + "]",
598
+ expected: "string",
599
+ value: elem
600
+ }, errorFactory)) || $guard(_exceptionable, {
601
+ path: _path + ".value",
602
+ expected: "(Array<string> | undefined)",
603
+ value: input.value
604
+ }, errorFactory);
605
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
606
+ path: _path + "",
607
+ expected: "AssetTagsRecord",
608
+ value: input
609
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
610
+ path: _path + "",
611
+ expected: "AssetTagsRecord",
612
+ value: input
613
+ }, errorFactory);
614
+ })(input, "$input", true);
615
+ };
616
+ export const stringifyAssetTagsRecord = input => {
617
+ const $string = __typia.json.createStringify.string;
618
+ const $tail = __typia.json.createStringify.tail;
619
+ const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
620
+ return $so0(input);
621
+ };
622
+ export const assertStringifyAssetTagsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
623
+ const __is = input => {
624
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
625
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
626
+ };
627
+ if (false === __is(input))
628
+ ((input, _path, _exceptionable = true) => {
629
+ const $guard = __typia.json.createAssertStringify.guard;
630
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
631
+ path: _path + ".value",
632
+ expected: "(Array<string> | undefined)",
633
+ value: input.value
634
+ }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
635
+ path: _path + ".value[" + _index1 + "]",
636
+ expected: "string",
637
+ value: elem
638
+ }, errorFactory)) || $guard(_exceptionable, {
639
+ path: _path + ".value",
640
+ expected: "(Array<string> | undefined)",
641
+ value: input.value
642
+ }, errorFactory);
643
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
644
+ path: _path + "",
645
+ expected: "AssetTagsRecord",
646
+ value: input
647
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
648
+ path: _path + "",
649
+ expected: "AssetTagsRecord",
650
+ value: input
651
+ }, errorFactory);
652
+ })(input, "$input", true);
653
+ return input;
654
+ }; const stringify = input => {
655
+ const $string = __typia.json.createAssertStringify.string;
656
+ const $tail = __typia.json.createAssertStringify.tail;
657
+ const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
658
+ return $so0(input);
659
+ }; return stringify(assert(input, errorFactory)); };
@@ -0,0 +1,16 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ export interface ContactDomainRecords {
3
+ ":contact": ContactRecord;
4
+ }
5
+ export interface ContactRecord {
6
+ title?: string;
7
+ email?: string;
8
+ firstName?: string;
9
+ lastName?: string;
10
+ }
11
+ export declare const isContactRecord: (input: unknown) => input is ContactRecord;
12
+ export declare const assertContactRecord: (input: unknown) => ContactRecord;
13
+ export declare const randomContactRecord: () => ContactRecord;
14
+ export declare const assertGuardContactRecord: __AssertionGuard<ContactRecord>;
15
+ export declare const stringifyContactRecord: (input: ContactRecord) => string;
16
+ export declare const assertStringifyContactRecord: (input: unknown) => string;
@@ -0,0 +1,149 @@
1
+ import __typia from "typia";
2
+ export const isContactRecord = input => {
3
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName);
4
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
+ };
6
+ export const assertContactRecord = (input, errorFactory) => {
7
+ const __is = input => {
8
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName);
9
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
10
+ };
11
+ if (false === __is(input))
12
+ ((input, _path, _exceptionable = true) => {
13
+ const $guard = __typia.createAssert.guard;
14
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
15
+ path: _path + ".title",
16
+ expected: "(string | undefined)",
17
+ value: input.title
18
+ }, errorFactory)) && (undefined === input.email || "string" === typeof input.email || $guard(_exceptionable, {
19
+ path: _path + ".email",
20
+ expected: "(string | undefined)",
21
+ value: input.email
22
+ }, errorFactory)) && (undefined === input.firstName || "string" === typeof input.firstName || $guard(_exceptionable, {
23
+ path: _path + ".firstName",
24
+ expected: "(string | undefined)",
25
+ value: input.firstName
26
+ }, errorFactory)) && (undefined === input.lastName || "string" === typeof input.lastName || $guard(_exceptionable, {
27
+ path: _path + ".lastName",
28
+ expected: "(string | undefined)",
29
+ value: input.lastName
30
+ }, errorFactory));
31
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
32
+ path: _path + "",
33
+ expected: "ContactRecord",
34
+ value: input
35
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
36
+ path: _path + "",
37
+ expected: "ContactRecord",
38
+ value: input
39
+ }, errorFactory);
40
+ })(input, "$input", true);
41
+ return input;
42
+ };
43
+ export const randomContactRecord = generator => {
44
+ const $generator = __typia.createRandom.generator;
45
+ const $pick = __typia.createRandom.pick;
46
+ const $ro0 = (_recursive = false, _depth = 0) => ({
47
+ title: $pick([
48
+ () => undefined,
49
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
50
+ ])(),
51
+ email: $pick([
52
+ () => undefined,
53
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
54
+ ])(),
55
+ firstName: $pick([
56
+ () => undefined,
57
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
58
+ ])(),
59
+ lastName: $pick([
60
+ () => undefined,
61
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
62
+ ])()
63
+ });
64
+ return $ro0();
65
+ };
66
+ export const assertGuardContactRecord = (input, errorFactory) => {
67
+ const __is = input => {
68
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName);
69
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
70
+ };
71
+ if (false === __is(input))
72
+ ((input, _path, _exceptionable = true) => {
73
+ const $guard = __typia.createAssertGuard.guard;
74
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
75
+ path: _path + ".title",
76
+ expected: "(string | undefined)",
77
+ value: input.title
78
+ }, errorFactory)) && (undefined === input.email || "string" === typeof input.email || $guard(_exceptionable, {
79
+ path: _path + ".email",
80
+ expected: "(string | undefined)",
81
+ value: input.email
82
+ }, errorFactory)) && (undefined === input.firstName || "string" === typeof input.firstName || $guard(_exceptionable, {
83
+ path: _path + ".firstName",
84
+ expected: "(string | undefined)",
85
+ value: input.firstName
86
+ }, errorFactory)) && (undefined === input.lastName || "string" === typeof input.lastName || $guard(_exceptionable, {
87
+ path: _path + ".lastName",
88
+ expected: "(string | undefined)",
89
+ value: input.lastName
90
+ }, errorFactory));
91
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
92
+ path: _path + "",
93
+ expected: "ContactRecord",
94
+ value: input
95
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
96
+ path: _path + "",
97
+ expected: "ContactRecord",
98
+ value: input
99
+ }, errorFactory);
100
+ })(input, "$input", true);
101
+ };
102
+ export const stringifyContactRecord = input => {
103
+ const $string = __typia.json.createStringify.string;
104
+ const $tail = __typia.json.createStringify.tail;
105
+ const $so0 = input => `{${$tail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.email ? "" : `"email":${undefined !== input.email ? $string(input.email) : undefined},`}${undefined === input.firstName ? "" : `"firstName":${undefined !== input.firstName ? $string(input.firstName) : undefined},`}${undefined === input.lastName ? "" : `"lastName":${undefined !== input.lastName ? $string(input.lastName) : undefined}`}`)}}`;
106
+ return $so0(input);
107
+ };
108
+ export const assertStringifyContactRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
109
+ const __is = input => {
110
+ const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName);
111
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
112
+ };
113
+ if (false === __is(input))
114
+ ((input, _path, _exceptionable = true) => {
115
+ const $guard = __typia.json.createAssertStringify.guard;
116
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
117
+ path: _path + ".title",
118
+ expected: "(string | undefined)",
119
+ value: input.title
120
+ }, errorFactory)) && (undefined === input.email || "string" === typeof input.email || $guard(_exceptionable, {
121
+ path: _path + ".email",
122
+ expected: "(string | undefined)",
123
+ value: input.email
124
+ }, errorFactory)) && (undefined === input.firstName || "string" === typeof input.firstName || $guard(_exceptionable, {
125
+ path: _path + ".firstName",
126
+ expected: "(string | undefined)",
127
+ value: input.firstName
128
+ }, errorFactory)) && (undefined === input.lastName || "string" === typeof input.lastName || $guard(_exceptionable, {
129
+ path: _path + ".lastName",
130
+ expected: "(string | undefined)",
131
+ value: input.lastName
132
+ }, errorFactory));
133
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
134
+ path: _path + "",
135
+ expected: "ContactRecord",
136
+ value: input
137
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
138
+ path: _path + "",
139
+ expected: "ContactRecord",
140
+ value: input
141
+ }, errorFactory);
142
+ })(input, "$input", true);
143
+ return input;
144
+ }; const stringify = input => {
145
+ const $string = __typia.json.createAssertStringify.string;
146
+ const $tail = __typia.json.createAssertStringify.tail;
147
+ const $so0 = input => `{${$tail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.email ? "" : `"email":${undefined !== input.email ? $string(input.email) : undefined},`}${undefined === input.firstName ? "" : `"firstName":${undefined !== input.firstName ? $string(input.firstName) : undefined},`}${undefined === input.lastName ? "" : `"lastName":${undefined !== input.lastName ? $string(input.lastName) : undefined}`}`)}}`;
148
+ return $so0(input);
149
+ }; return stringify(assert(input, errorFactory)); };
@@ -1,5 +1,6 @@
1
1
  import type { AssetDomainRecords } from './asset.js';
2
2
  import type { ConnectionDomainRecords } from './connection.js';
3
+ import type { ContactDomainRecords } from './contact.js';
3
4
  import type { EventDomainRecords } from './event.js';
4
5
  import type { GeneralDomainRecords } from './general.js';
5
6
  import type { MediaDomainRecords } from './media.js';
@@ -13,6 +14,7 @@ import type { SettingsDomainRecords } from './settings.js';
13
14
  import type { TemplateDomainRecords } from './template.js';
14
15
  export * from './asset.js';
15
16
  export * from './connection.js';
17
+ export * from './contact.js';
16
18
  export * from './event.js';
17
19
  export * from './general.js';
18
20
  export * from './media.js';
@@ -24,4 +26,4 @@ export * from './script.js';
24
26
  export * from './search.js';
25
27
  export * from './settings.js';
26
28
  export * from './template.js';
27
- export type DomainRecords = AssetDomainRecords & ConnectionDomainRecords & EventDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PlanningDomainRecords & PublishDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords;
29
+ export type DomainRecords = AssetDomainRecords & ConnectionDomainRecords & ContactDomainRecords & EventDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PlanningDomainRecords & PublishDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords;
@@ -1,5 +1,6 @@
1
1
  export * from './asset.js';
2
2
  export * from './connection.js';
3
+ export * from './contact.js';
3
4
  export * from './event.js';
4
5
  export * from './general.js';
5
6
  export * from './media.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/types",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "prepare": "ts-patch install && typia patch",