@nxtedition/types 23.0.30 → 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.
- package/dist/common/file.d.ts +2 -2
- package/dist/common/file.js +43 -37
- package/dist/common/settings.d.ts +5 -4
- package/dist/common/settings.js +61 -24
- package/dist/domains/file.js +43 -37
- package/dist/domains/settings.js +44 -8
- package/dist/schema.json +10 -4
- package/package.json +1 -1
package/dist/domains/file.js
CHANGED
|
@@ -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)) && (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])))) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("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))));
|
|
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)) && (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])))) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("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))));
|
|
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 => {
|
|
@@ -1321,7 +1321,7 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
|
|
|
1321
1321
|
path: _path + ".ranges",
|
|
1322
1322
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
1323
1323
|
value: input.ranges
|
|
1324
|
-
}, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
1324
|
+
}, errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
1325
1325
|
path: _path + ".progress",
|
|
1326
1326
|
expected: "number & Minimum<0>",
|
|
1327
1327
|
value: input.progress
|
|
@@ -1331,15 +1331,15 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
|
|
|
1331
1331
|
value: input.progress
|
|
1332
1332
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1333
1333
|
path: _path + ".progress",
|
|
1334
|
-
expected: "(number & Minimum<0> & Maximum<1>)",
|
|
1334
|
+
expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
|
|
1335
1335
|
value: input.progress
|
|
1336
|
-
}, errorFactory)) && ("number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
|
|
1336
|
+
}, errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
|
|
1337
1337
|
path: _path + ".speed",
|
|
1338
1338
|
expected: "number & Minimum<0>",
|
|
1339
1339
|
value: input.speed
|
|
1340
1340
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1341
1341
|
path: _path + ".speed",
|
|
1342
|
-
expected: "(number & Minimum<0>)",
|
|
1342
|
+
expected: "((number & Minimum<0>) | undefined)",
|
|
1343
1343
|
value: input.speed
|
|
1344
1344
|
}, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
|
|
1345
1345
|
path: _path + ".id",
|
|
@@ -1601,25 +1601,31 @@ export const randomFileDomainStatsRecord = generator => {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
]) ?? (generator?.number ?? $generator.number)(0, 10)
|
|
1603
1603
|
]),
|
|
1604
|
-
progress:
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
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
|
+
])(),
|
|
1623
1629
|
id: (generator?.customs ?? $generator.customs)?.string?.([
|
|
1624
1630
|
{
|
|
1625
1631
|
name: "Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
|
|
@@ -1744,7 +1750,7 @@ export const randomFileDomainStatsRecord = generator => {
|
|
|
1744
1750
|
};
|
|
1745
1751
|
export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
|
|
1746
1752
|
const __is = input => {
|
|
1747
|
-
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])))) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("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))));
|
|
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))));
|
|
1748
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);
|
|
1749
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)));
|
|
1750
1756
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -1848,7 +1854,7 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
|
|
|
1848
1854
|
path: _path + ".ranges",
|
|
1849
1855
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
1850
1856
|
value: input.ranges
|
|
1851
|
-
}, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
1857
|
+
}, errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
1852
1858
|
path: _path + ".progress",
|
|
1853
1859
|
expected: "number & Minimum<0>",
|
|
1854
1860
|
value: input.progress
|
|
@@ -1858,15 +1864,15 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
|
|
|
1858
1864
|
value: input.progress
|
|
1859
1865
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1860
1866
|
path: _path + ".progress",
|
|
1861
|
-
expected: "(number & Minimum<0> & Maximum<1>)",
|
|
1867
|
+
expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
|
|
1862
1868
|
value: input.progress
|
|
1863
|
-
}, errorFactory)) && ("number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
|
|
1869
|
+
}, errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (0 <= input.speed || $guard(_exceptionable, {
|
|
1864
1870
|
path: _path + ".speed",
|
|
1865
1871
|
expected: "number & Minimum<0>",
|
|
1866
1872
|
value: input.speed
|
|
1867
1873
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1868
1874
|
path: _path + ".speed",
|
|
1869
|
-
expected: "(number & Minimum<0>)",
|
|
1875
|
+
expected: "((number & Minimum<0>) | undefined)",
|
|
1870
1876
|
value: input.speed
|
|
1871
1877
|
}, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
|
|
1872
1878
|
path: _path + ".id",
|
|
@@ -2098,7 +2104,7 @@ export const stringifyFileDomainStatsRecord = input => {
|
|
|
2098
2104
|
const $string = __typia.json.createStringify.string;
|
|
2099
2105
|
const $throws = __typia.json.createStringify.throws;
|
|
2100
2106
|
const $tail = __typia.json.createStringify.tail;
|
|
2101
|
-
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(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"
|
|
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 ? (() => {
|
|
2102
2108
|
if (Array.isArray(input.error))
|
|
2103
2109
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
2104
2110
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -2116,7 +2122,7 @@ export const stringifyFileDomainStatsRecord = input => {
|
|
|
2116
2122
|
};
|
|
2117
2123
|
export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
2118
2124
|
const __is = input => {
|
|
2119
|
-
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]))))) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && ("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))));
|
|
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))));
|
|
2120
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));
|
|
2121
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)));
|
|
2122
2128
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -2228,7 +2234,7 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
|
|
|
2228
2234
|
path: _path + ".ranges",
|
|
2229
2235
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
2230
2236
|
value: input.ranges
|
|
2231
|
-
}, errorFactory)) && ("number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
2237
|
+
}, errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || $guard(_exceptionable, {
|
|
2232
2238
|
path: _path + ".progress",
|
|
2233
2239
|
expected: "number & Minimum<0>",
|
|
2234
2240
|
value: input.progress
|
|
@@ -2238,9 +2244,9 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
|
|
|
2238
2244
|
value: input.progress
|
|
2239
2245
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
2240
2246
|
path: _path + ".progress",
|
|
2241
|
-
expected: "(number & Minimum<0> & Maximum<1>)",
|
|
2247
|
+
expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
|
|
2242
2248
|
value: input.progress
|
|
2243
|
-
}, errorFactory)) && ("number" === typeof input.speed && (!Number.isNaN(input.speed) || $guard(_exceptionable, {
|
|
2249
|
+
}, errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (!Number.isNaN(input.speed) || $guard(_exceptionable, {
|
|
2244
2250
|
path: _path + ".speed",
|
|
2245
2251
|
expected: "number",
|
|
2246
2252
|
value: input.speed
|
|
@@ -2250,7 +2256,7 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
|
|
|
2250
2256
|
value: input.speed
|
|
2251
2257
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
2252
2258
|
path: _path + ".speed",
|
|
2253
|
-
expected: "(number & Minimum<0>)",
|
|
2259
|
+
expected: "((number & Minimum<0>) | undefined)",
|
|
2254
2260
|
value: input.speed
|
|
2255
2261
|
}, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
|
|
2256
2262
|
path: _path + ".id",
|
|
@@ -2482,7 +2488,7 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
|
|
|
2482
2488
|
const $string = __typia.json.createAssertStringify.string;
|
|
2483
2489
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
2484
2490
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
2485
|
-
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(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"
|
|
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 ? (() => {
|
|
2486
2492
|
if (Array.isArray(input.error))
|
|
2487
2493
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
2488
2494
|
if ("object" === typeof input.error && null !== input.error)
|
package/dist/domains/settings.js
CHANGED
|
@@ -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
|
@@ -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
|
}
|