@nxtedition/types 23.0.26 → 23.0.28

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.
@@ -1203,7 +1203,7 @@ export const assertStringifyFileRestrictionsRecord = (input, errorFactory) => {
1203
1203
  return $so0(input);
1204
1204
  }; return stringify(assert(input, errorFactory)); };
1205
1205
  export const isFileDomainStatsRecord = input => {
1206
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1206
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("number" === typeof input.speed && (0 <= input.speed && input.speed <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1207
1207
  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);
1208
1208
  const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1209
1209
  const $io3 = input => Object.keys(input).every(key => {
@@ -1217,7 +1217,7 @@ export const isFileDomainStatsRecord = input => {
1217
1217
  };
1218
1218
  export const assertFileDomainStatsRecord = (input, errorFactory) => {
1219
1219
  const __is = input => {
1220
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1220
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("number" === typeof input.speed && (0 <= input.speed && input.speed <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1221
1221
  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);
1222
1222
  const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1223
1223
  const $io3 = input => Object.keys(input).every(key => {
@@ -1297,6 +1297,18 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
1297
1297
  path: _path + ".progress",
1298
1298
  expected: "(number & Minimum<0> & Maximum<1>)",
1299
1299
  value: input.progress
1300
+ }, errorFactory)) && ("number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
1301
+ path: _path + ".speed",
1302
+ expected: "number & Minimum<0>",
1303
+ value: input.speed
1304
+ }, errorFactory)) && (input.speed <= 1 || $guard(_exceptionable, {
1305
+ path: _path + ".speed",
1306
+ expected: "number & Maximum<1>",
1307
+ value: input.speed
1308
+ }, errorFactory)) || $guard(_exceptionable, {
1309
+ path: _path + ".speed",
1310
+ expected: "(number & Minimum<0> & Maximum<1>)",
1311
+ value: input.speed
1300
1312
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1301
1313
  path: _path + ".ranges",
1302
1314
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
@@ -1589,6 +1601,18 @@ export const randomFileDomainStatsRecord = generator => {
1589
1601
  value: 1
1590
1602
  }
1591
1603
  ]) ?? (generator?.number ?? $generator.number)(0, 1),
1604
+ speed: (generator?.customs ?? $generator.customs)?.number?.([
1605
+ {
1606
+ name: "Minimum<0>",
1607
+ kind: "minimum",
1608
+ value: 0
1609
+ },
1610
+ {
1611
+ name: "Maximum<1>",
1612
+ kind: "maximum",
1613
+ value: 1
1614
+ }
1615
+ ]) ?? (generator?.number ?? $generator.number)(0, 1),
1592
1616
  ranges: (generator?.array ?? $generator.array)(() => [
1593
1617
  (generator?.customs ?? $generator.customs)?.number?.([
1594
1618
  {
@@ -1729,7 +1753,7 @@ export const randomFileDomainStatsRecord = generator => {
1729
1753
  };
1730
1754
  export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1731
1755
  const __is = input => {
1732
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1756
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("number" === typeof input.speed && (0 <= input.speed && input.speed <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1733
1757
  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);
1734
1758
  const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1735
1759
  const $io3 = input => Object.keys(input).every(key => {
@@ -1809,6 +1833,18 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1809
1833
  path: _path + ".progress",
1810
1834
  expected: "(number & Minimum<0> & Maximum<1>)",
1811
1835
  value: input.progress
1836
+ }, errorFactory)) && ("number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
1837
+ path: _path + ".speed",
1838
+ expected: "number & Minimum<0>",
1839
+ value: input.speed
1840
+ }, errorFactory)) && (input.speed <= 1 || $guard(_exceptionable, {
1841
+ path: _path + ".speed",
1842
+ expected: "number & Maximum<1>",
1843
+ value: input.speed
1844
+ }, errorFactory)) || $guard(_exceptionable, {
1845
+ path: _path + ".speed",
1846
+ expected: "(number & Minimum<0> & Maximum<1>)",
1847
+ value: input.speed
1812
1848
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1813
1849
  path: _path + ".ranges",
1814
1850
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
@@ -2075,7 +2111,7 @@ export const stringifyFileDomainStatsRecord = input => {
2075
2111
  const $string = __typia.json.createStringify.string;
2076
2112
  const $throws = __typia.json.createStringify.throws;
2077
2113
  const $tail = __typia.json.createStringify.tail;
2078
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2114
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"speed":${input.speed},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2079
2115
  if (Array.isArray(input.error))
2080
2116
  return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2081
2117
  if ("object" === typeof input.error && null !== input.error)
@@ -2093,7 +2129,7 @@ export const stringifyFileDomainStatsRecord = input => {
2093
2129
  };
2094
2130
  export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
2095
2131
  const __is = input => {
2096
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
2132
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("number" === typeof input.speed && (0 <= input.speed && input.speed <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "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)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("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))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
2097
2133
  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));
2098
2134
  const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
2099
2135
  const $io3 = input => Object.keys(input).every(key => {
@@ -2173,6 +2209,18 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2173
2209
  path: _path + ".progress",
2174
2210
  expected: "(number & Minimum<0> & Maximum<1>)",
2175
2211
  value: input.progress
2212
+ }, errorFactory)) && ("number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
2213
+ path: _path + ".speed",
2214
+ expected: "number & Minimum<0>",
2215
+ value: input.speed
2216
+ }, errorFactory)) && (input.speed <= 1 || $guard(_exceptionable, {
2217
+ path: _path + ".speed",
2218
+ expected: "number & Maximum<1>",
2219
+ value: input.speed
2220
+ }, errorFactory)) || $guard(_exceptionable, {
2221
+ path: _path + ".speed",
2222
+ expected: "(number & Minimum<0> & Maximum<1>)",
2223
+ value: input.speed
2176
2224
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
2177
2225
  path: _path + ".ranges",
2178
2226
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
@@ -2447,7 +2495,7 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2447
2495
  const $string = __typia.json.createAssertStringify.string;
2448
2496
  const $throws = __typia.json.createAssertStringify.throws;
2449
2497
  const $tail = __typia.json.createAssertStringify.tail;
2450
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2498
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"speed":${input.speed},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2451
2499
  if (Array.isArray(input.error))
2452
2500
  return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2453
2501
  if ("object" === typeof input.error && null !== input.error)
@@ -1,16 +1,19 @@
1
1
  import __typia from "typia";
2
2
  export const isPipelinePresetDomainRecord = input => {
3
- const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
3
+ const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
4
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
4
5
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
6
  };
6
7
  export const assertPipelinePresetDomainRecord = (input, errorFactory) => {
7
8
  const __is = input => {
8
- const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
9
+ const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
10
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
9
11
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
10
12
  };
11
13
  if (false === __is(input))
12
14
  ((input, _path, _exceptionable = true) => {
13
15
  const $guard = __typia.createAssert.guard;
16
+ const $av3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
14
17
  const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
15
18
  path: _path + ".createMenuItems",
16
19
  expected: "(Array<string> | null | undefined)",
@@ -39,9 +42,9 @@ export const assertPipelinePresetDomainRecord = (input, errorFactory) => {
39
42
  path: _path + ".tags",
40
43
  expected: "(Array<string> | undefined)",
41
44
  value: input.tags
42
- }, errorFactory)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode || $guard(_exceptionable, {
45
+ }, errorFactory)) && (undefined === input.sortMode || true === $av3.has(input.sortMode) || $guard(_exceptionable, {
43
46
  path: _path + ".sortMode",
44
- expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
47
+ expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
45
48
  value: input.sortMode
46
49
  }, errorFactory));
47
50
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
@@ -82,19 +85,23 @@ export const randomPipelinePresetDomainRecord = generator => {
82
85
  () => "newest",
83
86
  () => "oldest",
84
87
  () => "mostrecent",
85
- () => "leastrecent"
88
+ () => "leastrecent",
89
+ () => "earliestdeadline",
90
+ () => "latestdeadline"
86
91
  ])()
87
92
  });
88
93
  return $ro0();
89
94
  };
90
95
  export const assertGuardPipelinePresetDomainRecord = (input, errorFactory) => {
91
96
  const __is = input => {
92
- const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
97
+ const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
98
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
93
99
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
94
100
  };
95
101
  if (false === __is(input))
96
102
  ((input, _path, _exceptionable = true) => {
97
103
  const $guard = __typia.createAssertGuard.guard;
104
+ const $av3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
98
105
  const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
99
106
  path: _path + ".createMenuItems",
100
107
  expected: "(Array<string> | null | undefined)",
@@ -123,9 +130,9 @@ export const assertGuardPipelinePresetDomainRecord = (input, errorFactory) => {
123
130
  path: _path + ".tags",
124
131
  expected: "(Array<string> | undefined)",
125
132
  value: input.tags
126
- }, errorFactory)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode || $guard(_exceptionable, {
133
+ }, errorFactory)) && (undefined === input.sortMode || true === $av3.has(input.sortMode) || $guard(_exceptionable, {
127
134
  path: _path + ".sortMode",
128
- expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
135
+ expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
129
136
  value: input.sortMode
130
137
  }, errorFactory));
131
138
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
@@ -143,13 +150,14 @@ export const stringifyPipelinePresetDomainRecord = input => {
143
150
  const $string = __typia.json.createStringify.string;
144
151
  const $throws = __typia.json.createStringify.throws;
145
152
  const $tail = __typia.json.createStringify.tail;
153
+ const $iv5 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
146
154
  const $so0 = input => `{${$tail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => $string(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? (() => {
147
155
  if ("string" === typeof input.sortMode)
148
156
  return $string(input.sortMode);
149
157
  if ("string" === typeof input.sortMode)
150
158
  return "\"" + input.sortMode + "\"";
151
159
  $throws({
152
- expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
160
+ expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
153
161
  value: input.sortMode
154
162
  });
155
163
  })() : undefined}`}`)}}`;
@@ -157,12 +165,14 @@ export const stringifyPipelinePresetDomainRecord = input => {
157
165
  };
158
166
  export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
159
167
  const __is = input => {
160
- const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
168
+ const $iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
169
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || true === $iv3.has(input.sortMode));
161
170
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
162
171
  };
163
172
  if (false === __is(input))
164
173
  ((input, _path, _exceptionable = true) => {
165
174
  const $guard = __typia.json.createAssertStringify.guard;
175
+ const $av3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
166
176
  const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
167
177
  path: _path + ".createMenuItems",
168
178
  expected: "(Array<string> | null | undefined)",
@@ -191,9 +201,9 @@ export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) =
191
201
  path: _path + ".tags",
192
202
  expected: "(Array<string> | undefined)",
193
203
  value: input.tags
194
- }, errorFactory)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode || $guard(_exceptionable, {
204
+ }, errorFactory)) && (undefined === input.sortMode || true === $av3.has(input.sortMode) || $guard(_exceptionable, {
195
205
  path: _path + ".sortMode",
196
- expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
206
+ expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
197
207
  value: input.sortMode
198
208
  }, errorFactory));
199
209
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
@@ -211,13 +221,14 @@ export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) =
211
221
  const $string = __typia.json.createAssertStringify.string;
212
222
  const $throws = __typia.json.createAssertStringify.throws;
213
223
  const $tail = __typia.json.createAssertStringify.tail;
224
+ const $iv5 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
214
225
  const $so0 = input => `{${$tail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => $string(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? (() => {
215
226
  if ("string" === typeof input.sortMode)
216
227
  return $string(input.sortMode);
217
228
  if ("string" === typeof input.sortMode)
218
229
  return "\"" + input.sortMode + "\"";
219
230
  $throws({
220
- expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
231
+ expected: "(\"az\" | \"default\" | \"earliestdeadline\" | \"latestdeadline\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
221
232
  value: input.sortMode
222
233
  });
223
234
  })() : undefined}`}`)}}`;