@nxtedition/types 23.0.24 → 23.0.26
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/app.d.ts +0 -1
- package/dist/app.js +4 -17
- package/dist/common/file.d.ts +20 -6
- package/dist/common/file.js +344 -24
- package/dist/common/nxtpression.d.ts +8 -0
- package/dist/common/settings.d.ts +8 -4
- package/dist/common/settings.js +1109 -1013
- package/dist/domains/connection.d.ts +28 -18
- package/dist/domains/connection.js +968 -194
- package/dist/domains/file.js +12 -12
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +1 -0
- package/dist/domains/media.js +23 -6
- package/dist/domains/pipeline.js +9 -9
- package/dist/domains/publish.d.ts +71 -15
- package/dist/domains/publish.js +23088 -5976
- package/dist/domains/render.d.ts +1 -0
- package/dist/domains/render.js +155 -18
- package/dist/domains/settings.js +1113 -1020
- package/dist/domains/subtitle.d.ts +19 -0
- package/dist/domains/subtitle.js +212 -0
- package/dist/index.js +13 -12
- package/dist/schema.json +278 -18
- package/package.json +1 -1
package/dist/domains/render.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export interface RenderDomainResultRecord {
|
|
|
35
35
|
[key: string]: unknown;
|
|
36
36
|
url?: string;
|
|
37
37
|
result?: unknown;
|
|
38
|
+
error?: null | Record<string, unknown> | Array<Record<string, unknown>>;
|
|
38
39
|
}
|
|
39
40
|
export declare const isRenderDomainResultRecord: (input: unknown) => input is RenderDomainResultRecord;
|
|
40
41
|
export declare const assertRenderDomainResultRecord: (input: unknown) => RenderDomainResultRecord;
|
package/dist/domains/render.js
CHANGED
|
@@ -1108,26 +1108,38 @@ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => {
|
|
|
1108
1108
|
return $so0(input);
|
|
1109
1109
|
}; return stringify(assert(input, errorFactory)); };
|
|
1110
1110
|
export const isRenderDomainResultRecord = input => {
|
|
1111
|
-
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
|
|
1112
|
-
if (["url", "result"].some(prop => key === prop))
|
|
1111
|
+
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $io1(input.error))) && Object.keys(input).every(key => {
|
|
1112
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1113
1113
|
return true;
|
|
1114
1114
|
const value = input[key];
|
|
1115
1115
|
if (undefined === value)
|
|
1116
1116
|
return true;
|
|
1117
1117
|
return true;
|
|
1118
1118
|
});
|
|
1119
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
1120
|
+
const value = input[key];
|
|
1121
|
+
if (undefined === value)
|
|
1122
|
+
return true;
|
|
1123
|
+
return true;
|
|
1124
|
+
});
|
|
1119
1125
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1120
1126
|
};
|
|
1121
1127
|
export const assertRenderDomainResultRecord = (input, errorFactory) => {
|
|
1122
1128
|
const __is = input => {
|
|
1123
|
-
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
|
|
1124
|
-
if (["url", "result"].some(prop => key === prop))
|
|
1129
|
+
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $io1(input.error))) && Object.keys(input).every(key => {
|
|
1130
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1125
1131
|
return true;
|
|
1126
1132
|
const value = input[key];
|
|
1127
1133
|
if (undefined === value)
|
|
1128
1134
|
return true;
|
|
1129
1135
|
return true;
|
|
1130
1136
|
});
|
|
1137
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
1138
|
+
const value = input[key];
|
|
1139
|
+
if (undefined === value)
|
|
1140
|
+
return true;
|
|
1141
|
+
return true;
|
|
1142
|
+
});
|
|
1131
1143
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1132
1144
|
};
|
|
1133
1145
|
if (false === __is(input))
|
|
@@ -1138,14 +1150,36 @@ export const assertRenderDomainResultRecord = (input, errorFactory) => {
|
|
|
1138
1150
|
path: _path + ".url",
|
|
1139
1151
|
expected: "(string | undefined)",
|
|
1140
1152
|
value: input.url
|
|
1141
|
-
}, errorFactory)) && true && (
|
|
1142
|
-
|
|
1153
|
+
}, errorFactory)) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1154
|
+
path: _path + ".error[" + _index1 + "]",
|
|
1155
|
+
expected: "Record<string, unknown>",
|
|
1156
|
+
value: elem
|
|
1157
|
+
}, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1158
|
+
path: _path + ".error[" + _index1 + "]",
|
|
1159
|
+
expected: "Record<string, unknown>",
|
|
1160
|
+
value: elem
|
|
1161
|
+
}, errorFactory)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $ao1(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
|
|
1162
|
+
path: _path + ".error",
|
|
1163
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1164
|
+
value: input.error
|
|
1165
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1166
|
+
path: _path + ".error",
|
|
1167
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1168
|
+
value: input.error
|
|
1169
|
+
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1170
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1143
1171
|
return true;
|
|
1144
1172
|
const value = input[key];
|
|
1145
1173
|
if (undefined === value)
|
|
1146
1174
|
return true;
|
|
1147
1175
|
return true;
|
|
1148
1176
|
}));
|
|
1177
|
+
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1178
|
+
const value = input[key];
|
|
1179
|
+
if (undefined === value)
|
|
1180
|
+
return true;
|
|
1181
|
+
return true;
|
|
1182
|
+
});
|
|
1149
1183
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1150
1184
|
path: _path + "",
|
|
1151
1185
|
expected: "RenderDomainResultRecord",
|
|
@@ -1170,18 +1204,35 @@ export const randomRenderDomainResultRecord = generator => {
|
|
|
1170
1204
|
result: $pick([
|
|
1171
1205
|
() => "any type used...",
|
|
1172
1206
|
() => undefined
|
|
1207
|
+
])(),
|
|
1208
|
+
error: $pick([
|
|
1209
|
+
() => undefined,
|
|
1210
|
+
() => null,
|
|
1211
|
+
() => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)),
|
|
1212
|
+
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1173
1213
|
])()
|
|
1174
1214
|
};
|
|
1175
1215
|
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
1176
1216
|
return output;
|
|
1177
1217
|
};
|
|
1218
|
+
const $ro1 = (_recursive = false, _depth = 0) => {
|
|
1219
|
+
const output = {};
|
|
1220
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
1221
|
+
return output;
|
|
1222
|
+
};
|
|
1178
1223
|
return $ro0();
|
|
1179
1224
|
};
|
|
1180
1225
|
export const assertGuardRenderDomainResultRecord = (input, errorFactory) => {
|
|
1181
1226
|
const __is = input => {
|
|
1182
|
-
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
|
|
1183
|
-
if (["url", "result"].some(prop => key === prop))
|
|
1227
|
+
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $io1(input.error))) && Object.keys(input).every(key => {
|
|
1228
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1229
|
+
return true;
|
|
1230
|
+
const value = input[key];
|
|
1231
|
+
if (undefined === value)
|
|
1184
1232
|
return true;
|
|
1233
|
+
return true;
|
|
1234
|
+
});
|
|
1235
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
1185
1236
|
const value = input[key];
|
|
1186
1237
|
if (undefined === value)
|
|
1187
1238
|
return true;
|
|
@@ -1197,14 +1248,36 @@ export const assertGuardRenderDomainResultRecord = (input, errorFactory) => {
|
|
|
1197
1248
|
path: _path + ".url",
|
|
1198
1249
|
expected: "(string | undefined)",
|
|
1199
1250
|
value: input.url
|
|
1200
|
-
}, errorFactory)) && true && (
|
|
1201
|
-
|
|
1251
|
+
}, errorFactory)) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1252
|
+
path: _path + ".error[" + _index1 + "]",
|
|
1253
|
+
expected: "Record<string, unknown>",
|
|
1254
|
+
value: elem
|
|
1255
|
+
}, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1256
|
+
path: _path + ".error[" + _index1 + "]",
|
|
1257
|
+
expected: "Record<string, unknown>",
|
|
1258
|
+
value: elem
|
|
1259
|
+
}, errorFactory)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $ao1(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
|
|
1260
|
+
path: _path + ".error",
|
|
1261
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1262
|
+
value: input.error
|
|
1263
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1264
|
+
path: _path + ".error",
|
|
1265
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1266
|
+
value: input.error
|
|
1267
|
+
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1268
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1202
1269
|
return true;
|
|
1203
1270
|
const value = input[key];
|
|
1204
1271
|
if (undefined === value)
|
|
1205
1272
|
return true;
|
|
1206
1273
|
return true;
|
|
1207
1274
|
}));
|
|
1275
|
+
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1276
|
+
const value = input[key];
|
|
1277
|
+
if (undefined === value)
|
|
1278
|
+
return true;
|
|
1279
|
+
return true;
|
|
1280
|
+
});
|
|
1208
1281
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1209
1282
|
path: _path + "",
|
|
1210
1283
|
expected: "RenderDomainResultRecord",
|
|
@@ -1217,23 +1290,47 @@ export const assertGuardRenderDomainResultRecord = (input, errorFactory) => {
|
|
|
1217
1290
|
})(input, "$input", true);
|
|
1218
1291
|
};
|
|
1219
1292
|
export const stringifyRenderDomainResultRecord = input => {
|
|
1293
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
1294
|
+
const value = input[key];
|
|
1295
|
+
if (undefined === value)
|
|
1296
|
+
return true;
|
|
1297
|
+
return true;
|
|
1298
|
+
});
|
|
1220
1299
|
const $string = __typia.json.createStringify.string;
|
|
1300
|
+
const $throws = __typia.json.createStringify.throws;
|
|
1221
1301
|
const $tail = __typia.json.createStringify.tail;
|
|
1222
|
-
const $so0 = input => `{${$tail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? $string(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${
|
|
1223
|
-
|
|
1302
|
+
const $so0 = input => `{${$tail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? $string(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? (() => {
|
|
1303
|
+
if (Array.isArray(input.error))
|
|
1304
|
+
return `[${input.error.map(elem => $so1(elem)).join(",")}]`;
|
|
1305
|
+
if ("object" === typeof input.error && null !== input.error && false === Array.isArray(input.error))
|
|
1306
|
+
return $so1(input.error);
|
|
1307
|
+
$throws({
|
|
1308
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1309
|
+
value: input.error
|
|
1310
|
+
});
|
|
1311
|
+
})() : "null" : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1312
|
+
return ""; if (["url", "result", "error"].some(regular => regular === key))
|
|
1224
1313
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
1314
|
+
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1315
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1225
1316
|
return $so0(input);
|
|
1226
1317
|
};
|
|
1227
1318
|
export const assertStringifyRenderDomainResultRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1228
1319
|
const __is = input => {
|
|
1229
|
-
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
|
|
1230
|
-
if (["url", "result"].some(prop => key === prop))
|
|
1320
|
+
const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $io1(input.error))) && Object.keys(input).every(key => {
|
|
1321
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1231
1322
|
return true;
|
|
1232
1323
|
const value = input[key];
|
|
1233
1324
|
if (undefined === value)
|
|
1234
1325
|
return true;
|
|
1235
1326
|
return true;
|
|
1236
1327
|
});
|
|
1328
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
1329
|
+
const value = input[key];
|
|
1330
|
+
if (undefined === value)
|
|
1331
|
+
return true;
|
|
1332
|
+
return true;
|
|
1333
|
+
});
|
|
1237
1334
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1238
1335
|
};
|
|
1239
1336
|
if (false === __is(input))
|
|
@@ -1244,14 +1341,36 @@ export const assertStringifyRenderDomainResultRecord = (input, errorFactory) =>
|
|
|
1244
1341
|
path: _path + ".url",
|
|
1245
1342
|
expected: "(string | undefined)",
|
|
1246
1343
|
value: input.url
|
|
1247
|
-
}, errorFactory)) && true && (
|
|
1248
|
-
|
|
1344
|
+
}, errorFactory)) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
1345
|
+
path: _path + ".error[" + _index1 + "]",
|
|
1346
|
+
expected: "Record<string, unknown>",
|
|
1347
|
+
value: elem
|
|
1348
|
+
}, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
1349
|
+
path: _path + ".error[" + _index1 + "]",
|
|
1350
|
+
expected: "Record<string, unknown>",
|
|
1351
|
+
value: elem
|
|
1352
|
+
}, errorFactory)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && $ao1(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
|
|
1353
|
+
path: _path + ".error",
|
|
1354
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1355
|
+
value: input.error
|
|
1356
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1357
|
+
path: _path + ".error",
|
|
1358
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1359
|
+
value: input.error
|
|
1360
|
+
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1361
|
+
if (["url", "result", "error"].some(prop => key === prop))
|
|
1249
1362
|
return true;
|
|
1250
1363
|
const value = input[key];
|
|
1251
1364
|
if (undefined === value)
|
|
1252
1365
|
return true;
|
|
1253
1366
|
return true;
|
|
1254
1367
|
}));
|
|
1368
|
+
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1369
|
+
const value = input[key];
|
|
1370
|
+
if (undefined === value)
|
|
1371
|
+
return true;
|
|
1372
|
+
return true;
|
|
1373
|
+
});
|
|
1255
1374
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1256
1375
|
path: _path + "",
|
|
1257
1376
|
expected: "RenderDomainResultRecord",
|
|
@@ -1264,10 +1383,28 @@ export const assertStringifyRenderDomainResultRecord = (input, errorFactory) =>
|
|
|
1264
1383
|
})(input, "$input", true);
|
|
1265
1384
|
return input;
|
|
1266
1385
|
}; const stringify = input => {
|
|
1386
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
1387
|
+
const value = input[key];
|
|
1388
|
+
if (undefined === value)
|
|
1389
|
+
return true;
|
|
1390
|
+
return true;
|
|
1391
|
+
});
|
|
1267
1392
|
const $string = __typia.json.createAssertStringify.string;
|
|
1393
|
+
const $throws = __typia.json.createAssertStringify.throws;
|
|
1268
1394
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
1269
|
-
const $so0 = input => `{${$tail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? $string(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${
|
|
1270
|
-
|
|
1395
|
+
const $so0 = input => `{${$tail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? $string(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? (() => {
|
|
1396
|
+
if (Array.isArray(input.error))
|
|
1397
|
+
return `[${input.error.map(elem => $so1(elem)).join(",")}]`;
|
|
1398
|
+
if ("object" === typeof input.error && null !== input.error && false === Array.isArray(input.error))
|
|
1399
|
+
return $so1(input.error);
|
|
1400
|
+
$throws({
|
|
1401
|
+
expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
|
|
1402
|
+
value: input.error
|
|
1403
|
+
});
|
|
1404
|
+
})() : "null" : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1405
|
+
return ""; if (["url", "result", "error"].some(regular => regular === key))
|
|
1271
1406
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
1407
|
+
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1408
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1272
1409
|
return $so0(input);
|
|
1273
1410
|
}; return stringify(assert(input, errorFactory)); };
|