@nxtedition/types 23.0.28 → 23.0.31

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)) && ("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))));
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)) && (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])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && ("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)) && ("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))));
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)) && (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])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && ("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 => {
@@ -1285,30 +1285,6 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
1285
1285
  path: _path + ".locations",
1286
1286
  expected: "Array<string>",
1287
1287
  value: input.locations
1288
- }, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
1289
- path: _path + ".progress",
1290
- expected: "number & Minimum<0>",
1291
- value: input.progress
1292
- }, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
1293
- path: _path + ".progress",
1294
- expected: "number & Maximum<1>",
1295
- value: input.progress
1296
- }, errorFactory)) || $guard(_exceptionable, {
1297
- path: _path + ".progress",
1298
- expected: "(number & Minimum<0> & Maximum<1>)",
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
1312
1288
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1313
1289
  path: _path + ".ranges",
1314
1290
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
@@ -1345,6 +1321,26 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
1345
1321
  path: _path + ".ranges",
1346
1322
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1347
1323
  value: input.ranges
1324
+ }, errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
1325
+ path: _path + ".progress",
1326
+ expected: "number & Minimum<0>",
1327
+ value: input.progress
1328
+ }, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
1329
+ path: _path + ".progress",
1330
+ expected: "number & Maximum<1>",
1331
+ value: input.progress
1332
+ }, errorFactory)) || $guard(_exceptionable, {
1333
+ path: _path + ".progress",
1334
+ expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
1335
+ value: input.progress
1336
+ }, errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
1337
+ path: _path + ".speed",
1338
+ expected: "number & Minimum<0>",
1339
+ value: input.speed
1340
+ }, errorFactory)) || $guard(_exceptionable, {
1341
+ path: _path + ".speed",
1342
+ expected: "((number & Minimum<0>) | undefined)",
1343
+ value: input.speed
1348
1344
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
1349
1345
  path: _path + ".id",
1350
1346
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -1589,30 +1585,6 @@ export const randomFileDomainStatsRecord = generator => {
1589
1585
  zones: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1590
1586
  replicas: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1591
1587
  locations: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1592
- progress: (generator?.customs ?? $generator.customs)?.number?.([
1593
- {
1594
- name: "Minimum<0>",
1595
- kind: "minimum",
1596
- value: 0
1597
- },
1598
- {
1599
- name: "Maximum<1>",
1600
- kind: "maximum",
1601
- value: 1
1602
- }
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),
1616
1588
  ranges: (generator?.array ?? $generator.array)(() => [
1617
1589
  (generator?.customs ?? $generator.customs)?.number?.([
1618
1590
  {
@@ -1629,6 +1601,31 @@ export const randomFileDomainStatsRecord = generator => {
1629
1601
  }
1630
1602
  ]) ?? (generator?.number ?? $generator.number)(0, 10)
1631
1603
  ]),
1604
+ progress: $pick([
1605
+ () => undefined,
1606
+ () => (generator?.customs ?? $generator.customs)?.number?.([
1607
+ {
1608
+ name: "Minimum<0>",
1609
+ kind: "minimum",
1610
+ value: 0
1611
+ },
1612
+ {
1613
+ name: "Maximum<1>",
1614
+ kind: "maximum",
1615
+ value: 1
1616
+ }
1617
+ ]) ?? (generator?.number ?? $generator.number)(0, 1)
1618
+ ])(),
1619
+ speed: $pick([
1620
+ () => undefined,
1621
+ () => (generator?.customs ?? $generator.customs)?.number?.([
1622
+ {
1623
+ name: "Minimum<0>",
1624
+ kind: "minimum",
1625
+ value: 0
1626
+ }
1627
+ ]) ?? (generator?.number ?? $generator.number)(0, 10)
1628
+ ])(),
1632
1629
  id: (generator?.customs ?? $generator.customs)?.string?.([
1633
1630
  {
1634
1631
  name: "Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -1753,7 +1750,7 @@ export const randomFileDomainStatsRecord = generator => {
1753
1750
  };
1754
1751
  export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1755
1752
  const __is = input => {
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))));
1753
+ 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)) && (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])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && ("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))));
1757
1754
  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);
1758
1755
  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)));
1759
1756
  const $io3 = input => Object.keys(input).every(key => {
@@ -1821,30 +1818,6 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1821
1818
  path: _path + ".locations",
1822
1819
  expected: "Array<string>",
1823
1820
  value: input.locations
1824
- }, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
1825
- path: _path + ".progress",
1826
- expected: "number & Minimum<0>",
1827
- value: input.progress
1828
- }, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
1829
- path: _path + ".progress",
1830
- expected: "number & Maximum<1>",
1831
- value: input.progress
1832
- }, errorFactory)) || $guard(_exceptionable, {
1833
- path: _path + ".progress",
1834
- expected: "(number & Minimum<0> & Maximum<1>)",
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
1848
1821
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1849
1822
  path: _path + ".ranges",
1850
1823
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
@@ -1881,6 +1854,26 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1881
1854
  path: _path + ".ranges",
1882
1855
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1883
1856
  value: input.ranges
1857
+ }, errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
1858
+ path: _path + ".progress",
1859
+ expected: "number & Minimum<0>",
1860
+ value: input.progress
1861
+ }, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
1862
+ path: _path + ".progress",
1863
+ expected: "number & Maximum<1>",
1864
+ value: input.progress
1865
+ }, errorFactory)) || $guard(_exceptionable, {
1866
+ path: _path + ".progress",
1867
+ expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
1868
+ value: input.progress
1869
+ }, errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
1870
+ path: _path + ".speed",
1871
+ expected: "number & Minimum<0>",
1872
+ value: input.speed
1873
+ }, errorFactory)) || $guard(_exceptionable, {
1874
+ path: _path + ".speed",
1875
+ expected: "((number & Minimum<0>) | undefined)",
1876
+ value: input.speed
1884
1877
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
1885
1878
  path: _path + ".id",
1886
1879
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -2111,7 +2104,7 @@ export const stringifyFileDomainStatsRecord = input => {
2111
2104
  const $string = __typia.json.createStringify.string;
2112
2105
  const $throws = __typia.json.createStringify.throws;
2113
2106
  const $tail = __typia.json.createStringify.tail;
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 ? (() => {
2107
+ const $so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"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(",")}]`},"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 ? (() => {
2115
2108
  if (Array.isArray(input.error))
2116
2109
  return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2117
2110
  if ("object" === typeof input.error && null !== input.error)
@@ -2129,7 +2122,7 @@ export const stringifyFileDomainStatsRecord = input => {
2129
2122
  };
2130
2123
  export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
2131
2124
  const __is = input => {
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))));
2125
+ 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)) && (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]))))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && (!Number.isNaN(input.speed) && 0 <= input.speed)) && ("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))));
2133
2126
  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));
2134
2127
  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)));
2135
2128
  const $io3 = input => Object.keys(input).every(key => {
@@ -2197,30 +2190,6 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2197
2190
  path: _path + ".locations",
2198
2191
  expected: "Array<string>",
2199
2192
  value: input.locations
2200
- }, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
2201
- path: _path + ".progress",
2202
- expected: "number & Minimum<0>",
2203
- value: input.progress
2204
- }, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
2205
- path: _path + ".progress",
2206
- expected: "number & Maximum<1>",
2207
- value: input.progress
2208
- }, errorFactory)) || $guard(_exceptionable, {
2209
- path: _path + ".progress",
2210
- expected: "(number & Minimum<0> & Maximum<1>)",
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
2224
2193
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
2225
2194
  path: _path + ".ranges",
2226
2195
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
@@ -2265,6 +2234,30 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2265
2234
  path: _path + ".ranges",
2266
2235
  expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
2267
2236
  value: input.ranges
2237
+ }, errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
2238
+ path: _path + ".progress",
2239
+ expected: "number & Minimum<0>",
2240
+ value: input.progress
2241
+ }, errorFactory)) && (input.progress <= 1 || $guard(_exceptionable, {
2242
+ path: _path + ".progress",
2243
+ expected: "number & Maximum<1>",
2244
+ value: input.progress
2245
+ }, errorFactory)) || $guard(_exceptionable, {
2246
+ path: _path + ".progress",
2247
+ expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
2248
+ value: input.progress
2249
+ }, errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (!Number.isNaN(input.speed) || $guard(_exceptionable, {
2250
+ path: _path + ".speed",
2251
+ expected: "number",
2252
+ value: input.speed
2253
+ }, errorFactory)) && (0 <= input.speed || $guard(_exceptionable, {
2254
+ path: _path + ".speed",
2255
+ expected: "number & Minimum<0>",
2256
+ value: input.speed
2257
+ }, errorFactory)) || $guard(_exceptionable, {
2258
+ path: _path + ".speed",
2259
+ expected: "((number & Minimum<0>) | undefined)",
2260
+ value: input.speed
2268
2261
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
2269
2262
  path: _path + ".id",
2270
2263
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -2495,7 +2488,7 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2495
2488
  const $string = __typia.json.createAssertStringify.string;
2496
2489
  const $throws = __typia.json.createAssertStringify.throws;
2497
2490
  const $tail = __typia.json.createAssertStringify.tail;
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 ? (() => {
2491
+ const $so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"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(",")}]`},"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 ? (() => {
2499
2492
  if (Array.isArray(input.error))
2500
2493
  return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2501
2494
  if ("object" === typeof input.error && null !== input.error)
@@ -14,7 +14,7 @@ export const isSettingsRecord = input => {
14
14
  });
15
15
  const $io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (undefined === input.activeTab || "string" === typeof input.activeTab);
16
16
  const $io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab;
17
- const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection);
17
+ const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog);
18
18
  const $io7 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && $io8(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && $io10(input.createMenu));
19
19
  const $io8 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && $io9(input.center));
20
20
  const $io9 = input => (undefined === input.lat || "number" === typeof input.lat) && (undefined === input.lon || "number" === typeof input.lon);
@@ -155,7 +155,7 @@ export const assertSettingsRecord = (input, errorFactory) => {
155
155
  });
156
156
  const $io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (undefined === input.activeTab || "string" === typeof input.activeTab);
157
157
  const $io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab;
158
- const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection);
158
+ const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog);
159
159
  const $io7 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && $io8(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && $io10(input.createMenu));
160
160
  const $io8 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && $io9(input.center));
161
161
  const $io9 = input => (undefined === input.lat || "number" === typeof input.lat) && (undefined === input.lon || "number" === typeof input.lon);
@@ -618,6 +618,10 @@ export const assertSettingsRecord = (input, errorFactory) => {
618
618
  path: _path + ".hideStoryboardCollection",
619
619
  expected: "(boolean | undefined)",
620
620
  value: input.hideStoryboardCollection
621
+ }, errorFactory)) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog || $guard(_exceptionable, {
622
+ path: _path + ".displayUploadFilesDialog",
623
+ expected: "(\"always\" | \"ifMultipleFiles\" | \"never\" | undefined)",
624
+ value: input.displayUploadFilesDialog
621
625
  }, errorFactory));
622
626
  const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.map || ("object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) || $guard(_exceptionable, {
623
627
  path: _path + ".map",
@@ -1929,6 +1933,12 @@ export const randomSettingsRecord = generator => {
1929
1933
  hideStoryboardCollection: $pick([
1930
1934
  () => undefined,
1931
1935
  () => (generator?.boolean ?? $generator.boolean)()
1936
+ ])(),
1937
+ displayUploadFilesDialog: $pick([
1938
+ () => undefined,
1939
+ () => "always",
1940
+ () => "never",
1941
+ () => "ifMultipleFiles"
1932
1942
  ])()
1933
1943
  });
1934
1944
  const $ro7 = (_recursive = false, _depth = 0) => ({
@@ -2761,7 +2771,7 @@ export const assertGuardSettingsRecord = (input, errorFactory) => {
2761
2771
  });
2762
2772
  const $io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (undefined === input.activeTab || "string" === typeof input.activeTab);
2763
2773
  const $io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab;
2764
- const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection);
2774
+ const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog);
2765
2775
  const $io7 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && $io8(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && $io10(input.createMenu));
2766
2776
  const $io8 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && $io9(input.center));
2767
2777
  const $io9 = input => (undefined === input.lat || "number" === typeof input.lat) && (undefined === input.lon || "number" === typeof input.lon);
@@ -3224,6 +3234,10 @@ export const assertGuardSettingsRecord = (input, errorFactory) => {
3224
3234
  path: _path + ".hideStoryboardCollection",
3225
3235
  expected: "(boolean | undefined)",
3226
3236
  value: input.hideStoryboardCollection
3237
+ }, errorFactory)) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog || $guard(_exceptionable, {
3238
+ path: _path + ".displayUploadFilesDialog",
3239
+ expected: "(\"always\" | \"ifMultipleFiles\" | \"never\" | undefined)",
3240
+ value: input.displayUploadFilesDialog
3227
3241
  }, errorFactory));
3228
3242
  const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.map || ("object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) || $guard(_exceptionable, {
3229
3243
  path: _path + ".map",
@@ -4359,7 +4373,7 @@ export const stringifySettingsRecord = input => {
4359
4373
  });
4360
4374
  const $io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (undefined === input.activeTab || "string" === typeof input.activeTab);
4361
4375
  const $io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab;
4362
- const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection);
4376
+ const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog);
4363
4377
  const $io7 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && $io8(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && $io10(input.createMenu));
4364
4378
  const $io8 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && $io9(input.center));
4365
4379
  const $io9 = input => (undefined === input.lat || "number" === typeof input.lat) && (undefined === input.lon || "number" === typeof input.lon);
@@ -4503,7 +4517,16 @@ export const stringifySettingsRecord = input => {
4503
4517
  expected: "(\"\" | \"collection\" | \"stitch\" | undefined)",
4504
4518
  value: input.defaultGrouping
4505
4519
  });
4506
- })() : undefined},`}${undefined === input.hideStoryboardCollection ? "" : `"hideStoryboardCollection":${undefined !== input.hideStoryboardCollection ? input.hideStoryboardCollection : undefined}`}`)}}`;
4520
+ })() : undefined},`}${undefined === input.hideStoryboardCollection ? "" : `"hideStoryboardCollection":${undefined !== input.hideStoryboardCollection ? input.hideStoryboardCollection : undefined},`}${undefined === input.displayUploadFilesDialog ? "" : `"displayUploadFilesDialog":${undefined !== input.displayUploadFilesDialog ? (() => {
4521
+ if ("string" === typeof input.displayUploadFilesDialog)
4522
+ return $string(input.displayUploadFilesDialog);
4523
+ if ("string" === typeof input.displayUploadFilesDialog)
4524
+ return "\"" + input.displayUploadFilesDialog + "\"";
4525
+ $throws({
4526
+ expected: "(\"always\" | \"ifMultipleFiles\" | \"never\" | undefined)",
4527
+ value: input.displayUploadFilesDialog
4528
+ });
4529
+ })() : undefined}`}`)}}`;
4507
4530
  const $so7 = input => `{${$tail(`${undefined === input.map ? "" : `"map":${undefined !== input.map ? $so8(input.map) : undefined},`}${undefined === input.createMenu ? "" : `"createMenu":${undefined !== input.createMenu ? $so10(input.createMenu) : undefined}`}`)}}`;
4508
4531
  const $so8 = input => `{${$tail(`${undefined === input.clustering ? "" : `"clustering":${undefined !== input.clustering ? input.clustering : undefined},`}${undefined === input.zoom ? "" : `"zoom":${undefined !== input.zoom ? input.zoom : undefined},`}${undefined === input.center ? "" : `"center":${undefined !== input.center ? $so9(input.center) : undefined}`}`)}}`;
4509
4532
  const $so9 = input => `{${$tail(`${undefined === input.lat ? "" : `"lat":${undefined !== input.lat ? input.lat : undefined},`}${undefined === input.lon ? "" : `"lon":${undefined !== input.lon ? input.lon : undefined}`}`)}}`;
@@ -4694,7 +4717,7 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
4694
4717
  });
4695
4718
  const $io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex && !Number.isNaN(input.activeSectionIndex)) && (undefined === input.activeTab || "string" === typeof input.activeTab);
4696
4719
  const $io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab;
4697
- const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection);
4720
+ const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog);
4698
4721
  const $io7 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && $io8(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && $io10(input.createMenu));
4699
4722
  const $io8 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom && !Number.isNaN(input.zoom)) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && $io9(input.center));
4700
4723
  const $io9 = input => (undefined === input.lat || "number" === typeof input.lat && !Number.isNaN(input.lat)) && (undefined === input.lon || "number" === typeof input.lon && !Number.isNaN(input.lon));
@@ -5157,6 +5180,10 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
5157
5180
  path: _path + ".hideStoryboardCollection",
5158
5181
  expected: "(boolean | undefined)",
5159
5182
  value: input.hideStoryboardCollection
5183
+ }, errorFactory)) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog || $guard(_exceptionable, {
5184
+ path: _path + ".displayUploadFilesDialog",
5185
+ expected: "(\"always\" | \"ifMultipleFiles\" | \"never\" | undefined)",
5186
+ value: input.displayUploadFilesDialog
5160
5187
  }, errorFactory));
5161
5188
  const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.map || ("object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) || $guard(_exceptionable, {
5162
5189
  path: _path + ".map",
@@ -6292,7 +6319,7 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
6292
6319
  });
6293
6320
  const $io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (undefined === input.activeTab || "string" === typeof input.activeTab);
6294
6321
  const $io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab;
6295
- const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection);
6322
+ const $io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog);
6296
6323
  const $io7 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && $io8(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && $io10(input.createMenu));
6297
6324
  const $io8 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && $io9(input.center));
6298
6325
  const $io9 = input => (undefined === input.lat || "number" === typeof input.lat) && (undefined === input.lon || "number" === typeof input.lon);
@@ -6436,7 +6463,16 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
6436
6463
  expected: "(\"\" | \"collection\" | \"stitch\" | undefined)",
6437
6464
  value: input.defaultGrouping
6438
6465
  });
6439
- })() : undefined},`}${undefined === input.hideStoryboardCollection ? "" : `"hideStoryboardCollection":${undefined !== input.hideStoryboardCollection ? input.hideStoryboardCollection : undefined}`}`)}}`;
6466
+ })() : undefined},`}${undefined === input.hideStoryboardCollection ? "" : `"hideStoryboardCollection":${undefined !== input.hideStoryboardCollection ? input.hideStoryboardCollection : undefined},`}${undefined === input.displayUploadFilesDialog ? "" : `"displayUploadFilesDialog":${undefined !== input.displayUploadFilesDialog ? (() => {
6467
+ if ("string" === typeof input.displayUploadFilesDialog)
6468
+ return $string(input.displayUploadFilesDialog);
6469
+ if ("string" === typeof input.displayUploadFilesDialog)
6470
+ return "\"" + input.displayUploadFilesDialog + "\"";
6471
+ $throws({
6472
+ expected: "(\"always\" | \"ifMultipleFiles\" | \"never\" | undefined)",
6473
+ value: input.displayUploadFilesDialog
6474
+ });
6475
+ })() : undefined}`}`)}}`;
6440
6476
  const $so7 = input => `{${$tail(`${undefined === input.map ? "" : `"map":${undefined !== input.map ? $so8(input.map) : undefined},`}${undefined === input.createMenu ? "" : `"createMenu":${undefined !== input.createMenu ? $so10(input.createMenu) : undefined}`}`)}}`;
6441
6477
  const $so8 = input => `{${$tail(`${undefined === input.clustering ? "" : `"clustering":${undefined !== input.clustering ? input.clustering : undefined},`}${undefined === input.zoom ? "" : `"zoom":${undefined !== input.zoom ? input.zoom : undefined},`}${undefined === input.center ? "" : `"center":${undefined !== input.center ? $so9(input.center) : undefined}`}`)}}`;
6442
6478
  const $so9 = input => `{${$tail(`${undefined === input.lat ? "" : `"lat":${undefined !== input.lat ? input.lat : undefined},`}${undefined === input.lon ? "" : `"lon":${undefined !== input.lon ? input.lon : undefined}`}`)}}`;
package/dist/schema.json CHANGED
@@ -3022,11 +3022,11 @@
3022
3022
  "exclusive": {
3023
3023
  "items": [
3024
3024
  {
3025
- "const": "maximum",
3025
+ "const": "minimum",
3026
3026
  "type": "string"
3027
3027
  },
3028
3028
  {
3029
- "const": "exclusiveMaximum",
3029
+ "const": "exclusiveMinimum",
3030
3030
  "type": "string"
3031
3031
  }
3032
3032
  ],
@@ -3035,19 +3035,19 @@
3035
3035
  "type": "array"
3036
3036
  },
3037
3037
  "kind": {
3038
- "const": "maximum",
3038
+ "const": "minimum",
3039
3039
  "type": "string"
3040
3040
  },
3041
3041
  "schema": {
3042
3042
  "additionalProperties": false,
3043
3043
  "properties": {
3044
- "maximum": {
3045
- "const": 1,
3044
+ "minimum": {
3045
+ "const": 0,
3046
3046
  "type": "number"
3047
3047
  }
3048
3048
  },
3049
3049
  "required": [
3050
- "maximum"
3050
+ "minimum"
3051
3051
  ],
3052
3052
  "type": "object"
3053
3053
  },
@@ -3056,11 +3056,11 @@
3056
3056
  "type": "string"
3057
3057
  },
3058
3058
  "validate": {
3059
- "const": "$input <= 1",
3059
+ "const": "0 <= $input",
3060
3060
  "type": "string"
3061
3061
  },
3062
3062
  "value": {
3063
- "const": 1,
3063
+ "const": 0,
3064
3064
  "type": "number"
3065
3065
  }
3066
3066
  },
@@ -3104,14 +3104,12 @@
3104
3104
  "locations",
3105
3105
  "mimeType",
3106
3106
  "position",
3107
- "progress",
3108
3107
  "ranges",
3109
3108
  "refs",
3110
3109
  "replicas",
3111
3110
  "resumable",
3112
3111
  "seekable",
3113
3112
  "size",
3114
- "speed",
3115
3113
  "tags",
3116
3114
  "uploading",
3117
3115
  "zones"
@@ -4347,7 +4345,7 @@
4347
4345
  "$ref": "#/definitions/PartialObjectDeep<{exclude:string[];},{}>"
4348
4346
  },
4349
4347
  "upload": {
4350
- "$ref": "#/definitions/PartialObjectDeep<{defaultGrouping?:\"\"|\"collection\"|\"stitch\";hideStoryboardCollection?:boolean;},{}>"
4348
+ "$ref": "#/definitions/PartialObjectDeep<{defaultGrouping?:\"\"|\"collection\"|\"stitch\";hideStoryboardCollection?:boolean;displayUploadFilesDialog?:\"always\"|\"never\"|\"ifMultipleFiles\";},{}>"
4351
4349
  }
4352
4350
  },
4353
4351
  "type": "object"
@@ -4631,7 +4629,7 @@
4631
4629
  },
4632
4630
  "type": "object"
4633
4631
  },
4634
- "PartialObjectDeep<{defaultGrouping?:\"\"|\"collection\"|\"stitch\";hideStoryboardCollection?:boolean;},{}>": {
4632
+ "PartialObjectDeep<{defaultGrouping?:\"\"|\"collection\"|\"stitch\";hideStoryboardCollection?:boolean;displayUploadFilesDialog?:\"always\"|\"never\"|\"ifMultipleFiles\";},{}>": {
4635
4633
  "additionalProperties": false,
4636
4634
  "description": "Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`.",
4637
4635
  "properties": {
@@ -4643,6 +4641,14 @@
4643
4641
  ],
4644
4642
  "type": "string"
4645
4643
  },
4644
+ "displayUploadFilesDialog": {
4645
+ "enum": [
4646
+ "always",
4647
+ "ifMultipleFiles",
4648
+ "never"
4649
+ ],
4650
+ "type": "string"
4651
+ },
4646
4652
  "hideStoryboardCollection": {
4647
4653
  "type": "boolean"
4648
4654
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/types",
3
- "version": "23.0.28",
3
+ "version": "23.0.31",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {