@nxtedition/types 1.6.8 → 1.6.9
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 +1 -0
- package/dist/common/file.js +111 -74
- package/package.json +1 -1
package/dist/common/file.d.ts
CHANGED
package/dist/common/file.js
CHANGED
|
@@ -890,7 +890,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
|
|
|
890
890
|
return $so0(input);
|
|
891
891
|
}; return stringify(assert(input, errorFactory)); };
|
|
892
892
|
export const isFileStats = input => {
|
|
893
|
-
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))) && "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.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.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))));
|
|
893
|
+
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))) && "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])))) && ("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.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))));
|
|
894
894
|
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);
|
|
895
895
|
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)));
|
|
896
896
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -904,7 +904,7 @@ export const isFileStats = input => {
|
|
|
904
904
|
};
|
|
905
905
|
export const assertFileStats = (input, errorFactory) => {
|
|
906
906
|
const __is = input => {
|
|
907
|
-
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))) && "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.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.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))));
|
|
907
|
+
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))) && "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])))) && ("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.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))));
|
|
908
908
|
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);
|
|
909
909
|
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)));
|
|
910
910
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -960,36 +960,48 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
960
960
|
path: _path + ".replicas",
|
|
961
961
|
expected: "Array<string>",
|
|
962
962
|
value: input.replicas
|
|
963
|
+
}, errorFactory)) && ((Array.isArray(input.locations) || $guard(_exceptionable, {
|
|
964
|
+
path: _path + ".locations",
|
|
965
|
+
expected: "Array<string>",
|
|
966
|
+
value: input.locations
|
|
967
|
+
}, errorFactory)) && input.locations.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
968
|
+
path: _path + ".locations[" + _index3 + "]",
|
|
969
|
+
expected: "string",
|
|
970
|
+
value: elem
|
|
971
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
972
|
+
path: _path + ".locations",
|
|
973
|
+
expected: "Array<string>",
|
|
974
|
+
value: input.locations
|
|
963
975
|
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
964
976
|
path: _path + ".ranges",
|
|
965
977
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
966
978
|
value: input.ranges
|
|
967
|
-
}, errorFactory)) && input.ranges.every((elem,
|
|
968
|
-
path: _path + ".ranges[" +
|
|
979
|
+
}, errorFactory)) && input.ranges.every((elem, _index4) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
980
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
969
981
|
expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
|
|
970
982
|
value: elem
|
|
971
983
|
}, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
|
|
972
|
-
path: _path + ".ranges[" +
|
|
984
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
973
985
|
expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
|
|
974
986
|
value: elem
|
|
975
987
|
}, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
|
|
976
|
-
path: _path + ".ranges[" +
|
|
988
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
977
989
|
expected: "number & Minimum<0>",
|
|
978
990
|
value: elem[0]
|
|
979
991
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
980
|
-
path: _path + ".ranges[" +
|
|
992
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
981
993
|
expected: "(number & Minimum<0>)",
|
|
982
994
|
value: elem[0]
|
|
983
995
|
}, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
|
|
984
|
-
path: _path + ".ranges[" +
|
|
996
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
985
997
|
expected: "number & Minimum<0>",
|
|
986
998
|
value: elem[1]
|
|
987
999
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
988
|
-
path: _path + ".ranges[" +
|
|
1000
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
989
1001
|
expected: "(number & Minimum<0>)",
|
|
990
1002
|
value: elem[1]
|
|
991
1003
|
}, errorFactory))) || $guard(_exceptionable, {
|
|
992
|
-
path: _path + ".ranges[" +
|
|
1004
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
993
1005
|
expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
|
|
994
1006
|
value: elem
|
|
995
1007
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1028,12 +1040,12 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
1028
1040
|
path: _path + ".refs",
|
|
1029
1041
|
expected: "Array<__type>",
|
|
1030
1042
|
value: input.refs
|
|
1031
|
-
}, errorFactory)) && input.refs.every((elem,
|
|
1032
|
-
path: _path + ".refs[" +
|
|
1043
|
+
}, errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1044
|
+
path: _path + ".refs[" + _index5 + "]",
|
|
1033
1045
|
expected: "__type",
|
|
1034
1046
|
value: elem
|
|
1035
|
-
}, errorFactory)) && $ao1(elem, _path + ".refs[" +
|
|
1036
|
-
path: _path + ".refs[" +
|
|
1047
|
+
}, errorFactory)) && $ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1048
|
+
path: _path + ".refs[" + _index5 + "]",
|
|
1037
1049
|
expected: "__type",
|
|
1038
1050
|
value: elem
|
|
1039
1051
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1044,8 +1056,8 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
1044
1056
|
path: _path + ".tags",
|
|
1045
1057
|
expected: "Array<string>",
|
|
1046
1058
|
value: input.tags
|
|
1047
|
-
}, errorFactory)) && input.tags.every((elem,
|
|
1048
|
-
path: _path + ".tags[" +
|
|
1059
|
+
}, errorFactory)) && input.tags.every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1060
|
+
path: _path + ".tags[" + _index6 + "]",
|
|
1049
1061
|
expected: "string",
|
|
1050
1062
|
value: elem
|
|
1051
1063
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1088,12 +1100,12 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
1088
1100
|
path: _path + ".error",
|
|
1089
1101
|
expected: "(Array<NxtError> | NxtError | null)",
|
|
1090
1102
|
value: input.error
|
|
1091
|
-
}, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem,
|
|
1092
|
-
path: _path + ".error[" +
|
|
1103
|
+
}, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
1104
|
+
path: _path + ".error[" + _index7 + "]",
|
|
1093
1105
|
expected: "NxtError",
|
|
1094
1106
|
value: elem
|
|
1095
|
-
}, errorFactory)) && $ao2(elem, _path + ".error[" +
|
|
1096
|
-
path: _path + ".error[" +
|
|
1107
|
+
}, errorFactory)) && $ao2(elem, _path + ".error[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1108
|
+
path: _path + ".error[" + _index7 + "]",
|
|
1097
1109
|
expected: "NxtError",
|
|
1098
1110
|
value: elem
|
|
1099
1111
|
}, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
|
|
@@ -1174,12 +1186,12 @@ export const assertFileStats = (input, errorFactory) => {
|
|
|
1174
1186
|
path: _path + ".errors",
|
|
1175
1187
|
expected: "(Array<NxtError> | null | undefined)",
|
|
1176
1188
|
value: input.errors
|
|
1177
|
-
}, errorFactory)) && input.errors.every((elem,
|
|
1178
|
-
path: _path + ".errors[" +
|
|
1189
|
+
}, errorFactory)) && input.errors.every((elem, _index8) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
1190
|
+
path: _path + ".errors[" + _index8 + "]",
|
|
1179
1191
|
expected: "NxtError",
|
|
1180
1192
|
value: elem
|
|
1181
|
-
}, errorFactory)) && $ao2(elem, _path + ".errors[" +
|
|
1182
|
-
path: _path + ".errors[" +
|
|
1193
|
+
}, errorFactory)) && $ao2(elem, _path + ".errors[" + _index8 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1194
|
+
path: _path + ".errors[" + _index8 + "]",
|
|
1183
1195
|
expected: "NxtError",
|
|
1184
1196
|
value: elem
|
|
1185
1197
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1232,6 +1244,7 @@ export const randomFileStats = generator => {
|
|
|
1232
1244
|
uploading: (generator?.boolean ?? $generator.boolean)(),
|
|
1233
1245
|
zones: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1234
1246
|
replicas: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1247
|
+
locations: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
|
|
1235
1248
|
ranges: (generator?.array ?? $generator.array)(() => [
|
|
1236
1249
|
(generator?.customs ?? $generator.customs)?.number?.([
|
|
1237
1250
|
{
|
|
@@ -1371,7 +1384,7 @@ export const randomFileStats = generator => {
|
|
|
1371
1384
|
};
|
|
1372
1385
|
export const assertGuardFileStats = (input, errorFactory) => {
|
|
1373
1386
|
const __is = input => {
|
|
1374
|
-
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))) && "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.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.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))));
|
|
1387
|
+
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))) && "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])))) && ("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.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))));
|
|
1375
1388
|
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);
|
|
1376
1389
|
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)));
|
|
1377
1390
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -1427,36 +1440,48 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1427
1440
|
path: _path + ".replicas",
|
|
1428
1441
|
expected: "Array<string>",
|
|
1429
1442
|
value: input.replicas
|
|
1443
|
+
}, errorFactory)) && ((Array.isArray(input.locations) || $guard(_exceptionable, {
|
|
1444
|
+
path: _path + ".locations",
|
|
1445
|
+
expected: "Array<string>",
|
|
1446
|
+
value: input.locations
|
|
1447
|
+
}, errorFactory)) && input.locations.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1448
|
+
path: _path + ".locations[" + _index3 + "]",
|
|
1449
|
+
expected: "string",
|
|
1450
|
+
value: elem
|
|
1451
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1452
|
+
path: _path + ".locations",
|
|
1453
|
+
expected: "Array<string>",
|
|
1454
|
+
value: input.locations
|
|
1430
1455
|
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
1431
1456
|
path: _path + ".ranges",
|
|
1432
1457
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
1433
1458
|
value: input.ranges
|
|
1434
|
-
}, errorFactory)) && input.ranges.every((elem,
|
|
1435
|
-
path: _path + ".ranges[" +
|
|
1459
|
+
}, errorFactory)) && input.ranges.every((elem, _index4) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
1460
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
1436
1461
|
expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
|
|
1437
1462
|
value: elem
|
|
1438
1463
|
}, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
|
|
1439
|
-
path: _path + ".ranges[" +
|
|
1464
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
1440
1465
|
expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
|
|
1441
1466
|
value: elem
|
|
1442
1467
|
}, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
|
|
1443
|
-
path: _path + ".ranges[" +
|
|
1468
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
1444
1469
|
expected: "number & Minimum<0>",
|
|
1445
1470
|
value: elem[0]
|
|
1446
1471
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1447
|
-
path: _path + ".ranges[" +
|
|
1472
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
1448
1473
|
expected: "(number & Minimum<0>)",
|
|
1449
1474
|
value: elem[0]
|
|
1450
1475
|
}, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
|
|
1451
|
-
path: _path + ".ranges[" +
|
|
1476
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
1452
1477
|
expected: "number & Minimum<0>",
|
|
1453
1478
|
value: elem[1]
|
|
1454
1479
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1455
|
-
path: _path + ".ranges[" +
|
|
1480
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
1456
1481
|
expected: "(number & Minimum<0>)",
|
|
1457
1482
|
value: elem[1]
|
|
1458
1483
|
}, errorFactory))) || $guard(_exceptionable, {
|
|
1459
|
-
path: _path + ".ranges[" +
|
|
1484
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
1460
1485
|
expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
|
|
1461
1486
|
value: elem
|
|
1462
1487
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1495,12 +1520,12 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1495
1520
|
path: _path + ".refs",
|
|
1496
1521
|
expected: "Array<__type>",
|
|
1497
1522
|
value: input.refs
|
|
1498
|
-
}, errorFactory)) && input.refs.every((elem,
|
|
1499
|
-
path: _path + ".refs[" +
|
|
1523
|
+
}, errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1524
|
+
path: _path + ".refs[" + _index5 + "]",
|
|
1500
1525
|
expected: "__type",
|
|
1501
1526
|
value: elem
|
|
1502
|
-
}, errorFactory)) && $ao1(elem, _path + ".refs[" +
|
|
1503
|
-
path: _path + ".refs[" +
|
|
1527
|
+
}, errorFactory)) && $ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1528
|
+
path: _path + ".refs[" + _index5 + "]",
|
|
1504
1529
|
expected: "__type",
|
|
1505
1530
|
value: elem
|
|
1506
1531
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1511,8 +1536,8 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1511
1536
|
path: _path + ".tags",
|
|
1512
1537
|
expected: "Array<string>",
|
|
1513
1538
|
value: input.tags
|
|
1514
|
-
}, errorFactory)) && input.tags.every((elem,
|
|
1515
|
-
path: _path + ".tags[" +
|
|
1539
|
+
}, errorFactory)) && input.tags.every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1540
|
+
path: _path + ".tags[" + _index6 + "]",
|
|
1516
1541
|
expected: "string",
|
|
1517
1542
|
value: elem
|
|
1518
1543
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1555,12 +1580,12 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1555
1580
|
path: _path + ".error",
|
|
1556
1581
|
expected: "(Array<NxtError> | NxtError | null)",
|
|
1557
1582
|
value: input.error
|
|
1558
|
-
}, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem,
|
|
1559
|
-
path: _path + ".error[" +
|
|
1583
|
+
}, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
1584
|
+
path: _path + ".error[" + _index7 + "]",
|
|
1560
1585
|
expected: "NxtError",
|
|
1561
1586
|
value: elem
|
|
1562
|
-
}, errorFactory)) && $ao2(elem, _path + ".error[" +
|
|
1563
|
-
path: _path + ".error[" +
|
|
1587
|
+
}, errorFactory)) && $ao2(elem, _path + ".error[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1588
|
+
path: _path + ".error[" + _index7 + "]",
|
|
1564
1589
|
expected: "NxtError",
|
|
1565
1590
|
value: elem
|
|
1566
1591
|
}, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
|
|
@@ -1641,12 +1666,12 @@ export const assertGuardFileStats = (input, errorFactory) => {
|
|
|
1641
1666
|
path: _path + ".errors",
|
|
1642
1667
|
expected: "(Array<NxtError> | null | undefined)",
|
|
1643
1668
|
value: input.errors
|
|
1644
|
-
}, errorFactory)) && input.errors.every((elem,
|
|
1645
|
-
path: _path + ".errors[" +
|
|
1669
|
+
}, errorFactory)) && input.errors.every((elem, _index8) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
1670
|
+
path: _path + ".errors[" + _index8 + "]",
|
|
1646
1671
|
expected: "NxtError",
|
|
1647
1672
|
value: elem
|
|
1648
|
-
}, errorFactory)) && $ao2(elem, _path + ".errors[" +
|
|
1649
|
-
path: _path + ".errors[" +
|
|
1673
|
+
}, errorFactory)) && $ao2(elem, _path + ".errors[" + _index8 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1674
|
+
path: _path + ".errors[" + _index8 + "]",
|
|
1650
1675
|
expected: "NxtError",
|
|
1651
1676
|
value: elem
|
|
1652
1677
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1689,7 +1714,7 @@ export const stringifyFileStats = input => {
|
|
|
1689
1714
|
const $string = __typia.json.createStringify.string;
|
|
1690
1715
|
const $throws = __typia.json.createStringify.throws;
|
|
1691
1716
|
const $tail = __typia.json.createStringify.tail;
|
|
1692
|
-
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.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)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
1717
|
+
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"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)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
1693
1718
|
if (Array.isArray(input.error))
|
|
1694
1719
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
1695
1720
|
if ("object" === typeof input.error && null !== input.error)
|
|
@@ -1707,7 +1732,7 @@ export const stringifyFileStats = input => {
|
|
|
1707
1732
|
};
|
|
1708
1733
|
export const assertStringifyFileStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1709
1734
|
const __is = input => {
|
|
1710
|
-
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))) && "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.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.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))));
|
|
1735
|
+
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))) && "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]))))) && ("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.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))));
|
|
1711
1736
|
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));
|
|
1712
1737
|
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)));
|
|
1713
1738
|
const $io3 = input => Object.keys(input).every(key => {
|
|
@@ -1763,44 +1788,56 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1763
1788
|
path: _path + ".replicas",
|
|
1764
1789
|
expected: "Array<string>",
|
|
1765
1790
|
value: input.replicas
|
|
1791
|
+
}, errorFactory)) && ((Array.isArray(input.locations) || $guard(_exceptionable, {
|
|
1792
|
+
path: _path + ".locations",
|
|
1793
|
+
expected: "Array<string>",
|
|
1794
|
+
value: input.locations
|
|
1795
|
+
}, errorFactory)) && input.locations.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1796
|
+
path: _path + ".locations[" + _index3 + "]",
|
|
1797
|
+
expected: "string",
|
|
1798
|
+
value: elem
|
|
1799
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1800
|
+
path: _path + ".locations",
|
|
1801
|
+
expected: "Array<string>",
|
|
1802
|
+
value: input.locations
|
|
1766
1803
|
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
1767
1804
|
path: _path + ".ranges",
|
|
1768
1805
|
expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
|
|
1769
1806
|
value: input.ranges
|
|
1770
|
-
}, errorFactory)) && input.ranges.every((elem,
|
|
1771
|
-
path: _path + ".ranges[" +
|
|
1807
|
+
}, errorFactory)) && input.ranges.every((elem, _index4) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
1808
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
1772
1809
|
expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
|
|
1773
1810
|
value: elem
|
|
1774
1811
|
}, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
|
|
1775
|
-
path: _path + ".ranges[" +
|
|
1812
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
1776
1813
|
expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
|
|
1777
1814
|
value: elem
|
|
1778
1815
|
}, errorFactory)) && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) || $guard(_exceptionable, {
|
|
1779
|
-
path: _path + ".ranges[" +
|
|
1816
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
1780
1817
|
expected: "number",
|
|
1781
1818
|
value: elem[0]
|
|
1782
1819
|
}, errorFactory)) && (0 <= elem[0] || $guard(_exceptionable, {
|
|
1783
|
-
path: _path + ".ranges[" +
|
|
1820
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
1784
1821
|
expected: "number & Minimum<0>",
|
|
1785
1822
|
value: elem[0]
|
|
1786
1823
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1787
|
-
path: _path + ".ranges[" +
|
|
1824
|
+
path: _path + ".ranges[" + _index4 + "][0]",
|
|
1788
1825
|
expected: "(number & Minimum<0>)",
|
|
1789
1826
|
value: elem[0]
|
|
1790
1827
|
}, errorFactory)) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) || $guard(_exceptionable, {
|
|
1791
|
-
path: _path + ".ranges[" +
|
|
1828
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
1792
1829
|
expected: "number",
|
|
1793
1830
|
value: elem[1]
|
|
1794
1831
|
}, errorFactory)) && (0 <= elem[1] || $guard(_exceptionable, {
|
|
1795
|
-
path: _path + ".ranges[" +
|
|
1832
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
1796
1833
|
expected: "number & Minimum<0>",
|
|
1797
1834
|
value: elem[1]
|
|
1798
1835
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
1799
|
-
path: _path + ".ranges[" +
|
|
1836
|
+
path: _path + ".ranges[" + _index4 + "][1]",
|
|
1800
1837
|
expected: "(number & Minimum<0>)",
|
|
1801
1838
|
value: elem[1]
|
|
1802
1839
|
}, errorFactory))) || $guard(_exceptionable, {
|
|
1803
|
-
path: _path + ".ranges[" +
|
|
1840
|
+
path: _path + ".ranges[" + _index4 + "]",
|
|
1804
1841
|
expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
|
|
1805
1842
|
value: elem
|
|
1806
1843
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1839,12 +1876,12 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1839
1876
|
path: _path + ".refs",
|
|
1840
1877
|
expected: "Array<__type>",
|
|
1841
1878
|
value: input.refs
|
|
1842
|
-
}, errorFactory)) && input.refs.every((elem,
|
|
1843
|
-
path: _path + ".refs[" +
|
|
1879
|
+
}, errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1880
|
+
path: _path + ".refs[" + _index5 + "]",
|
|
1844
1881
|
expected: "__type",
|
|
1845
1882
|
value: elem
|
|
1846
|
-
}, errorFactory)) && $ao1(elem, _path + ".refs[" +
|
|
1847
|
-
path: _path + ".refs[" +
|
|
1883
|
+
}, errorFactory)) && $ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1884
|
+
path: _path + ".refs[" + _index5 + "]",
|
|
1848
1885
|
expected: "__type",
|
|
1849
1886
|
value: elem
|
|
1850
1887
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1855,8 +1892,8 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1855
1892
|
path: _path + ".tags",
|
|
1856
1893
|
expected: "Array<string>",
|
|
1857
1894
|
value: input.tags
|
|
1858
|
-
}, errorFactory)) && input.tags.every((elem,
|
|
1859
|
-
path: _path + ".tags[" +
|
|
1895
|
+
}, errorFactory)) && input.tags.every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1896
|
+
path: _path + ".tags[" + _index6 + "]",
|
|
1860
1897
|
expected: "string",
|
|
1861
1898
|
value: elem
|
|
1862
1899
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -1899,12 +1936,12 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1899
1936
|
path: _path + ".error",
|
|
1900
1937
|
expected: "(Array<NxtError> | NxtError | null)",
|
|
1901
1938
|
value: input.error
|
|
1902
|
-
}, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem,
|
|
1903
|
-
path: _path + ".error[" +
|
|
1939
|
+
}, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
1940
|
+
path: _path + ".error[" + _index7 + "]",
|
|
1904
1941
|
expected: "NxtError",
|
|
1905
1942
|
value: elem
|
|
1906
|
-
}, errorFactory)) && $ao2(elem, _path + ".error[" +
|
|
1907
|
-
path: _path + ".error[" +
|
|
1943
|
+
}, errorFactory)) && $ao2(elem, _path + ".error[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1944
|
+
path: _path + ".error[" + _index7 + "]",
|
|
1908
1945
|
expected: "NxtError",
|
|
1909
1946
|
value: elem
|
|
1910
1947
|
}, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
|
|
@@ -1985,12 +2022,12 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
1985
2022
|
path: _path + ".errors",
|
|
1986
2023
|
expected: "(Array<NxtError> | null | undefined)",
|
|
1987
2024
|
value: input.errors
|
|
1988
|
-
}, errorFactory)) && input.errors.every((elem,
|
|
1989
|
-
path: _path + ".errors[" +
|
|
2025
|
+
}, errorFactory)) && input.errors.every((elem, _index8) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
2026
|
+
path: _path + ".errors[" + _index8 + "]",
|
|
1990
2027
|
expected: "NxtError",
|
|
1991
2028
|
value: elem
|
|
1992
|
-
}, errorFactory)) && $ao2(elem, _path + ".errors[" +
|
|
1993
|
-
path: _path + ".errors[" +
|
|
2029
|
+
}, errorFactory)) && $ao2(elem, _path + ".errors[" + _index8 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
2030
|
+
path: _path + ".errors[" + _index8 + "]",
|
|
1994
2031
|
expected: "NxtError",
|
|
1995
2032
|
value: elem
|
|
1996
2033
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
@@ -2033,7 +2070,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
|
|
|
2033
2070
|
const $string = __typia.json.createAssertStringify.string;
|
|
2034
2071
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
2035
2072
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
2036
|
-
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.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)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
2073
|
+
const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"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)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
2037
2074
|
if (Array.isArray(input.error))
|
|
2038
2075
|
return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
|
|
2039
2076
|
if ("object" === typeof input.error && null !== input.error)
|