@nxtedition/types 23.1.7 → 23.1.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/render-scene.d.ts +2 -0
- package/dist/common/settings.d.ts +4 -1
- package/dist/nxtpression.d.ts +27 -25
- package/dist/records/domains/event.d.ts +2 -1
- package/dist/records/domains/file.d.ts +7 -0
- package/dist/records/domains/media.d.ts +8 -0
- package/dist/records/domains/publish/report.js +12 -2
- package/dist/records/domains/render.d.ts +3 -0
- package/dist/records/domains/template.d.ts +2 -22
- package/dist/records/validate/assert-guard.js +1672 -602
- package/dist/records/validate/assert.js +1653 -582
- package/dist/records/validate/is.js +78 -24
- package/dist/records/validate/schemas.js +1157 -378
- package/dist/records/validate/stringify.js +160 -34
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +20098 -19056
- package/dist/records/validate/validate.js +1491 -599
- package/package.json +1 -1
|
@@ -8236,135 +8236,42 @@ function _validateDomainRecord(domain, input) {
|
|
|
8236
8236
|
};
|
|
8237
8237
|
}; })()(input);
|
|
8238
8238
|
}
|
|
8239
|
-
case ":
|
|
8240
|
-
return (() => { const _io0 = input => (
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
value: input.text
|
|
8260
|
-
}), undefined === input.lang || "string" === typeof input.lang || _report(_exceptionable, {
|
|
8261
|
-
path: _path + ".lang",
|
|
8262
|
-
expected: "(string | undefined)",
|
|
8263
|
-
value: input.lang
|
|
8264
|
-
}), undefined === input.style || "string" === typeof input.style || _report(_exceptionable, {
|
|
8265
|
-
path: _path + ".style",
|
|
8266
|
-
expected: "(string | undefined)",
|
|
8267
|
-
value: input.style
|
|
8268
|
-
}), undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || _report(_exceptionable, {
|
|
8269
|
-
path: _path + ".styleOverrides",
|
|
8270
|
-
expected: "(SubtitleEventStyleOverrides | undefined)",
|
|
8271
|
-
value: input.styleOverrides
|
|
8272
|
-
})) && _vo1(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || _report(_exceptionable, {
|
|
8273
|
-
path: _path + ".styleOverrides",
|
|
8274
|
-
expected: "(SubtitleEventStyleOverrides | undefined)",
|
|
8275
|
-
value: input.styleOverrides
|
|
8276
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.marginL || "string" === typeof input.marginL || _report(_exceptionable, {
|
|
8277
|
-
path: _path + ".marginL",
|
|
8278
|
-
expected: "(string | undefined)",
|
|
8279
|
-
value: input.marginL
|
|
8280
|
-
}), undefined === input.marginR || "string" === typeof input.marginR || _report(_exceptionable, {
|
|
8281
|
-
path: _path + ".marginR",
|
|
8282
|
-
expected: "(string | undefined)",
|
|
8283
|
-
value: input.marginR
|
|
8284
|
-
}), undefined === input.marginV || "string" === typeof input.marginV || _report(_exceptionable, {
|
|
8285
|
-
path: _path + ".marginV",
|
|
8286
|
-
expected: "(string | undefined)",
|
|
8287
|
-
value: input.marginV
|
|
8288
|
-
}), undefined === input.alignment || "string" === typeof input.alignment || _report(_exceptionable, {
|
|
8289
|
-
path: _path + ".alignment",
|
|
8290
|
-
expected: "(string | undefined)",
|
|
8291
|
-
value: input.alignment
|
|
8292
|
-
}), undefined === input.fontname || "string" === typeof input.fontname || _report(_exceptionable, {
|
|
8293
|
-
path: _path + ".fontname",
|
|
8294
|
-
expected: "(string | undefined)",
|
|
8295
|
-
value: input.fontname
|
|
8296
|
-
}), undefined === input.fontsize || "string" === typeof input.fontsize || _report(_exceptionable, {
|
|
8297
|
-
path: _path + ".fontsize",
|
|
8298
|
-
expected: "(string | undefined)",
|
|
8299
|
-
value: input.fontsize
|
|
8300
|
-
}), undefined === input.primaryColour || "string" === typeof input.primaryColour || _report(_exceptionable, {
|
|
8301
|
-
path: _path + ".primaryColour",
|
|
8302
|
-
expected: "(string | undefined)",
|
|
8303
|
-
value: input.primaryColour
|
|
8304
|
-
}), undefined === input.secondaryColour || "string" === typeof input.secondaryColour || _report(_exceptionable, {
|
|
8305
|
-
path: _path + ".secondaryColour",
|
|
8306
|
-
expected: "(string | undefined)",
|
|
8307
|
-
value: input.secondaryColour
|
|
8308
|
-
}), undefined === input.outlineColour || "string" === typeof input.outlineColour || _report(_exceptionable, {
|
|
8309
|
-
path: _path + ".outlineColour",
|
|
8310
|
-
expected: "(string | undefined)",
|
|
8311
|
-
value: input.outlineColour
|
|
8312
|
-
}), undefined === input.backColour || "string" === typeof input.backColour || _report(_exceptionable, {
|
|
8313
|
-
path: _path + ".backColour",
|
|
8314
|
-
expected: "(string | undefined)",
|
|
8315
|
-
value: input.backColour
|
|
8316
|
-
}), undefined === input.bold || "string" === typeof input.bold || _report(_exceptionable, {
|
|
8317
|
-
path: _path + ".bold",
|
|
8318
|
-
expected: "(string | undefined)",
|
|
8319
|
-
value: input.bold
|
|
8320
|
-
}), undefined === input.italic || "string" === typeof input.italic || _report(_exceptionable, {
|
|
8321
|
-
path: _path + ".italic",
|
|
8239
|
+
case ":template": {
|
|
8240
|
+
return (() => { const _io0 = input => (undefined === input.source || "string" === typeof input.source) && (undefined === input.controller || "string" === typeof input.controller) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)); const _io1 = input => Object.keys(input).every(key => {
|
|
8241
|
+
const value = input[key];
|
|
8242
|
+
if (undefined === value)
|
|
8243
|
+
return true;
|
|
8244
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
8245
|
+
}); const _io2 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io3 = input => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io4(input.profile)); const _io4 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io5(input.video)); const _io5 = input => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit; const _io6 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io7 = input => Object.keys(input).every(key => {
|
|
8246
|
+
const value = input[key];
|
|
8247
|
+
if (undefined === value)
|
|
8248
|
+
return true;
|
|
8249
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value);
|
|
8250
|
+
}); const _io8 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
8251
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
8252
|
+
return true;
|
|
8253
|
+
const value = input[key];
|
|
8254
|
+
if (undefined === value)
|
|
8255
|
+
return true;
|
|
8256
|
+
return true;
|
|
8257
|
+
}); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
8258
|
+
path: _path + ".source",
|
|
8322
8259
|
expected: "(string | undefined)",
|
|
8323
|
-
value: input.
|
|
8324
|
-
}), undefined === input.
|
|
8325
|
-
path: _path + ".
|
|
8260
|
+
value: input.source
|
|
8261
|
+
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
8262
|
+
path: _path + ".controller",
|
|
8326
8263
|
expected: "(string | undefined)",
|
|
8327
|
-
value: input.
|
|
8328
|
-
}), undefined === input.
|
|
8329
|
-
path: _path + ".
|
|
8264
|
+
value: input.controller
|
|
8265
|
+
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
8266
|
+
path: _path + ".type",
|
|
8330
8267
|
expected: "(string | undefined)",
|
|
8331
|
-
value: input.
|
|
8332
|
-
})
|
|
8333
|
-
if (false === __is(input)) {
|
|
8334
|
-
errors = [];
|
|
8335
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
8336
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
8337
|
-
path: _path + "",
|
|
8338
|
-
expected: "EventRecord",
|
|
8339
|
-
value: input
|
|
8340
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
8341
|
-
path: _path + "",
|
|
8342
|
-
expected: "EventRecord",
|
|
8343
|
-
value: input
|
|
8344
|
-
}))(input, "$input", true);
|
|
8345
|
-
const success = 0 === errors.length;
|
|
8346
|
-
return success ? {
|
|
8347
|
-
success,
|
|
8348
|
-
data: input
|
|
8349
|
-
} : {
|
|
8350
|
-
success,
|
|
8351
|
-
errors,
|
|
8352
|
-
data: input
|
|
8353
|
-
};
|
|
8354
|
-
}
|
|
8355
|
-
return {
|
|
8356
|
-
success: true,
|
|
8357
|
-
data: input
|
|
8358
|
-
};
|
|
8359
|
-
}; })()(input);
|
|
8360
|
-
}
|
|
8361
|
-
case ":event._template?": {
|
|
8362
|
-
return (() => { const _io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && _io2(input.layout)) && (undefined === input.controller || "string" === typeof input.controller); const _io1 = input => true; const _io2 = input => undefined === input.title || "string" === typeof input.title; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
8268
|
+
value: input.type
|
|
8269
|
+
}), undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
8363
8270
|
path: _path + ".mixin",
|
|
8364
8271
|
expected: "(Array<string> | undefined)",
|
|
8365
8272
|
value: input.mixin
|
|
8366
|
-
})) && input.mixin.map((elem,
|
|
8367
|
-
path: _path + ".mixin[" +
|
|
8273
|
+
})) && input.mixin.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
8274
|
+
path: _path + ".mixin[" + _index6 + "]",
|
|
8368
8275
|
expected: "string",
|
|
8369
8276
|
value: elem
|
|
8370
8277
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -8373,255 +8280,1328 @@ function _validateDomainRecord(domain, input) {
|
|
|
8373
8280
|
value: input.mixin
|
|
8374
8281
|
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8375
8282
|
path: _path + ".properties",
|
|
8376
|
-
expected: "(
|
|
8283
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
8377
8284
|
value: input.properties
|
|
8378
8285
|
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
8379
8286
|
path: _path + ".properties",
|
|
8380
|
-
expected: "(
|
|
8287
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
8381
8288
|
value: input.properties
|
|
8382
|
-
})
|
|
8383
|
-
|
|
8289
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
8290
|
+
const value = input[key];
|
|
8291
|
+
if (undefined === value)
|
|
8292
|
+
return true;
|
|
8293
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
8294
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8295
|
+
expected: "TemplateProperty",
|
|
8296
|
+
value: value
|
|
8297
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8298
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8299
|
+
expected: "TemplateProperty",
|
|
8300
|
+
value: value
|
|
8301
|
+
});
|
|
8302
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
8303
|
+
path: _path + ".path",
|
|
8304
|
+
expected: "(string | undefined)",
|
|
8305
|
+
value: input.path
|
|
8306
|
+
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
8307
|
+
path: _path + ".render",
|
|
8384
8308
|
expected: "(__type | undefined)",
|
|
8385
|
-
value: input.
|
|
8386
|
-
})) &&
|
|
8387
|
-
path: _path + ".
|
|
8309
|
+
value: input.render
|
|
8310
|
+
})) && _vo3(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
8311
|
+
path: _path + ".render",
|
|
8388
8312
|
expected: "(__type | undefined)",
|
|
8389
|
-
value: input.
|
|
8390
|
-
}), undefined === input.
|
|
8391
|
-
path: _path + ".
|
|
8392
|
-
expected: "(string | undefined)",
|
|
8393
|
-
value: input.
|
|
8394
|
-
})
|
|
8313
|
+
value: input.render
|
|
8314
|
+
}), undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
8315
|
+
path: _path + ".type",
|
|
8316
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
8317
|
+
value: input.type
|
|
8318
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
8395
8319
|
path: _path + ".title",
|
|
8396
8320
|
expected: "(string | undefined)",
|
|
8397
8321
|
value: input.title
|
|
8398
|
-
})
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8322
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
8323
|
+
path: _path + ".description",
|
|
8324
|
+
expected: "(string | undefined)",
|
|
8325
|
+
value: input.description
|
|
8326
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
8327
|
+
path: _path + ".required",
|
|
8328
|
+
expected: "(boolean | undefined)",
|
|
8329
|
+
value: input.required
|
|
8330
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
8331
|
+
path: _path + ".oneOf",
|
|
8332
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8333
|
+
value: input.oneOf
|
|
8334
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8335
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
8336
|
+
expected: "SchemaProperty<unknown>",
|
|
8337
|
+
value: elem
|
|
8338
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8339
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
8340
|
+
expected: "SchemaProperty<unknown>",
|
|
8341
|
+
value: elem
|
|
8342
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8343
|
+
path: _path + ".oneOf",
|
|
8344
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8345
|
+
value: input.oneOf
|
|
8346
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
8347
|
+
path: _path + ".anyOf",
|
|
8348
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8349
|
+
value: input.anyOf
|
|
8350
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8351
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
8352
|
+
expected: "SchemaProperty<unknown>",
|
|
8353
|
+
value: elem
|
|
8354
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8355
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
8356
|
+
expected: "SchemaProperty<unknown>",
|
|
8357
|
+
value: elem
|
|
8358
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8359
|
+
path: _path + ".anyOf",
|
|
8360
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8361
|
+
value: input.anyOf
|
|
8362
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
8363
|
+
path: _path + "[\"enum\"]",
|
|
8364
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
8365
|
+
value: input["enum"]
|
|
8366
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
8367
|
+
path: _path + ".minItems",
|
|
8368
|
+
expected: "(number | undefined)",
|
|
8369
|
+
value: input.minItems
|
|
8370
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
8371
|
+
path: _path + ".maxItems",
|
|
8372
|
+
expected: "(number | undefined)",
|
|
8373
|
+
value: input.maxItems
|
|
8374
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
8375
|
+
path: _path + ".items",
|
|
8376
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
8377
|
+
value: input.items
|
|
8378
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
8379
|
+
path: _path + ".items",
|
|
8380
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
8381
|
+
value: input.items
|
|
8382
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8383
|
+
path: _path + ".properties",
|
|
8384
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
8385
|
+
value: input.properties
|
|
8386
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
8387
|
+
path: _path + ".properties",
|
|
8388
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
8389
|
+
value: input.properties
|
|
8390
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
8391
|
+
path: _path + ".widget",
|
|
8392
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8393
|
+
value: input.widget
|
|
8394
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
8395
|
+
path: _path + ".widget",
|
|
8396
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8397
|
+
value: input.widget
|
|
8398
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
8399
|
+
path: _path + ".widget",
|
|
8400
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8401
|
+
value: input.widget
|
|
8402
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
8403
|
+
path: _path + ".placeholder",
|
|
8404
|
+
expected: "(string | undefined)",
|
|
8405
|
+
value: input.placeholder
|
|
8406
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
8407
|
+
path: _path + ".helpText",
|
|
8408
|
+
expected: "(string | undefined)",
|
|
8409
|
+
value: input.helpText
|
|
8410
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
8411
|
+
path: _path + ".invalid",
|
|
8412
|
+
expected: "(boolean | undefined)",
|
|
8413
|
+
value: input.invalid
|
|
8414
|
+
}), true].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
8415
|
+
path: _path + ".type",
|
|
8416
|
+
expected: "\"image\"",
|
|
8417
|
+
value: input.type
|
|
8418
|
+
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
8419
|
+
path: _path + ".profile",
|
|
8420
|
+
expected: "(__type.o1 | undefined)",
|
|
8421
|
+
value: input.profile
|
|
8422
|
+
})) && _vo4(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
8423
|
+
path: _path + ".profile",
|
|
8424
|
+
expected: "(__type.o1 | undefined)",
|
|
8425
|
+
value: input.profile
|
|
8426
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
8427
|
+
path: _path + ".format",
|
|
8428
|
+
expected: "(string | undefined)",
|
|
8429
|
+
value: input.format
|
|
8430
|
+
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
8431
|
+
path: _path + ".video",
|
|
8432
|
+
expected: "(__type.o2 | undefined)",
|
|
8433
|
+
value: input.video
|
|
8434
|
+
})) && _vo5(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
8435
|
+
path: _path + ".video",
|
|
8436
|
+
expected: "(__type.o2 | undefined)",
|
|
8437
|
+
value: input.video
|
|
8438
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
8439
|
+
path: _path + ".width",
|
|
8440
|
+
expected: "number",
|
|
8441
|
+
value: input.width
|
|
8442
|
+
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
8443
|
+
path: _path + ".height",
|
|
8444
|
+
expected: "number",
|
|
8445
|
+
value: input.height
|
|
8446
|
+
}), "cover" === input.fit || _report(_exceptionable, {
|
|
8447
|
+
path: _path + ".fit",
|
|
8448
|
+
expected: "\"cover\"",
|
|
8449
|
+
value: input.fit
|
|
8450
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
8451
|
+
path: _path + ".type",
|
|
8452
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
8453
|
+
value: input.type
|
|
8454
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
8455
|
+
path: _path + ".title",
|
|
8456
|
+
expected: "(string | undefined)",
|
|
8457
|
+
value: input.title
|
|
8458
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
8459
|
+
path: _path + ".description",
|
|
8460
|
+
expected: "(string | undefined)",
|
|
8461
|
+
value: input.description
|
|
8462
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
8463
|
+
path: _path + ".required",
|
|
8464
|
+
expected: "(boolean | undefined)",
|
|
8465
|
+
value: input.required
|
|
8466
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
8467
|
+
path: _path + ".oneOf",
|
|
8468
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8469
|
+
value: input.oneOf
|
|
8470
|
+
})) && input.oneOf.map((elem, _index9) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8471
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
8472
|
+
expected: "SchemaProperty<unknown>",
|
|
8473
|
+
value: elem
|
|
8474
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8475
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
8476
|
+
expected: "SchemaProperty<unknown>",
|
|
8477
|
+
value: elem
|
|
8478
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8479
|
+
path: _path + ".oneOf",
|
|
8480
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8481
|
+
value: input.oneOf
|
|
8482
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
8483
|
+
path: _path + ".anyOf",
|
|
8484
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8485
|
+
value: input.anyOf
|
|
8486
|
+
})) && input.anyOf.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8487
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
8488
|
+
expected: "SchemaProperty<unknown>",
|
|
8489
|
+
value: elem
|
|
8490
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8491
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
8492
|
+
expected: "SchemaProperty<unknown>",
|
|
8493
|
+
value: elem
|
|
8494
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8495
|
+
path: _path + ".anyOf",
|
|
8496
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8497
|
+
value: input.anyOf
|
|
8498
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
8499
|
+
path: _path + "[\"enum\"]",
|
|
8500
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
8501
|
+
value: input["enum"]
|
|
8502
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
8503
|
+
path: _path + ".minItems",
|
|
8504
|
+
expected: "(number | undefined)",
|
|
8505
|
+
value: input.minItems
|
|
8506
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
8507
|
+
path: _path + ".maxItems",
|
|
8508
|
+
expected: "(number | undefined)",
|
|
8509
|
+
value: input.maxItems
|
|
8510
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
8511
|
+
path: _path + ".items",
|
|
8512
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
8513
|
+
value: input.items
|
|
8514
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
8515
|
+
path: _path + ".items",
|
|
8516
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
8517
|
+
value: input.items
|
|
8518
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8519
|
+
path: _path + ".properties",
|
|
8520
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
8521
|
+
value: input.properties
|
|
8522
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
8523
|
+
path: _path + ".properties",
|
|
8524
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
8525
|
+
value: input.properties
|
|
8526
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
8527
|
+
path: _path + ".widget",
|
|
8528
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8529
|
+
value: input.widget
|
|
8530
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
8531
|
+
path: _path + ".widget",
|
|
8532
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8533
|
+
value: input.widget
|
|
8534
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
8535
|
+
path: _path + ".widget",
|
|
8536
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8537
|
+
value: input.widget
|
|
8538
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
8539
|
+
path: _path + ".placeholder",
|
|
8540
|
+
expected: "(string | undefined)",
|
|
8541
|
+
value: input.placeholder
|
|
8542
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
8543
|
+
path: _path + ".helpText",
|
|
8544
|
+
expected: "(string | undefined)",
|
|
8545
|
+
value: input.helpText
|
|
8546
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
8547
|
+
path: _path + ".invalid",
|
|
8548
|
+
expected: "(boolean | undefined)",
|
|
8549
|
+
value: input.invalid
|
|
8550
|
+
}), true].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
8551
|
+
const value = input[key];
|
|
8552
|
+
if (undefined === value)
|
|
8553
|
+
return true;
|
|
8554
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
8555
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8556
|
+
expected: "SchemaProperty<unknown>",
|
|
8557
|
+
value: value
|
|
8558
|
+
})) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8559
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8560
|
+
expected: "SchemaProperty<unknown>",
|
|
8561
|
+
value: value
|
|
8562
|
+
});
|
|
8563
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
8564
|
+
path: _path + ".type",
|
|
8565
|
+
expected: "(string | undefined)",
|
|
8566
|
+
value: input.type
|
|
8567
|
+
}), undefined === input.readOnly || "boolean" === typeof input.readOnly || _report(_exceptionable, {
|
|
8568
|
+
path: _path + ".readOnly",
|
|
8569
|
+
expected: "(boolean | undefined)",
|
|
8570
|
+
value: input.readOnly
|
|
8571
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
8572
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
8573
|
+
return true;
|
|
8574
|
+
const value = input[key];
|
|
8575
|
+
if (undefined === value)
|
|
8576
|
+
return true;
|
|
8577
|
+
return true;
|
|
8578
|
+
}).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
8579
|
+
if (false === __is(input)) {
|
|
8580
|
+
errors = [];
|
|
8581
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
8582
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
8583
|
+
path: _path + "",
|
|
8584
|
+
expected: "TemplateRecord",
|
|
8585
|
+
value: input
|
|
8586
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
8587
|
+
path: _path + "",
|
|
8588
|
+
expected: "TemplateRecord",
|
|
8589
|
+
value: input
|
|
8590
|
+
}))(input, "$input", true);
|
|
8591
|
+
const success = 0 === errors.length;
|
|
8592
|
+
return success ? {
|
|
8593
|
+
success,
|
|
8594
|
+
data: input
|
|
8595
|
+
} : {
|
|
8596
|
+
success,
|
|
8597
|
+
errors,
|
|
8598
|
+
data: input
|
|
8599
|
+
};
|
|
8600
|
+
}
|
|
8601
|
+
return {
|
|
8602
|
+
success: true,
|
|
8603
|
+
data: input
|
|
8604
|
+
};
|
|
8605
|
+
}; })()(input);
|
|
8606
|
+
}
|
|
8607
|
+
case ":event": {
|
|
8608
|
+
return (() => { const _io0 = input => (null === input.start || undefined === input.start || "number" === typeof input.start) && (null === input.end || undefined === input.end || "number" === typeof input.end) && (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (undefined === input.position || "string" === typeof input.position) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io1(input.styleOverrides)); const _io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut); const _vo0 = (input, _path, _exceptionable = true) => [null === input.start || undefined === input.start || "number" === typeof input.start || _report(_exceptionable, {
|
|
8609
|
+
path: _path + ".start",
|
|
8610
|
+
expected: "(null | number | undefined)",
|
|
8611
|
+
value: input.start
|
|
8612
|
+
}), null === input.end || undefined === input.end || "number" === typeof input.end || _report(_exceptionable, {
|
|
8613
|
+
path: _path + ".end",
|
|
8614
|
+
expected: "(null | number | undefined)",
|
|
8615
|
+
value: input.end
|
|
8616
|
+
}), null === input.duration || undefined === input.duration || "number" === typeof input.duration || _report(_exceptionable, {
|
|
8617
|
+
path: _path + ".duration",
|
|
8618
|
+
expected: "(null | number | undefined)",
|
|
8619
|
+
value: input.duration
|
|
8620
|
+
}), undefined === input.position || "string" === typeof input.position || _report(_exceptionable, {
|
|
8621
|
+
path: _path + ".position",
|
|
8622
|
+
expected: "(string | undefined)",
|
|
8623
|
+
value: input.position
|
|
8624
|
+
}), undefined === input.text || "string" === typeof input.text || _report(_exceptionable, {
|
|
8625
|
+
path: _path + ".text",
|
|
8626
|
+
expected: "(string | undefined)",
|
|
8627
|
+
value: input.text
|
|
8628
|
+
}), undefined === input.lang || "string" === typeof input.lang || _report(_exceptionable, {
|
|
8629
|
+
path: _path + ".lang",
|
|
8630
|
+
expected: "(string | undefined)",
|
|
8631
|
+
value: input.lang
|
|
8632
|
+
}), undefined === input.style || "string" === typeof input.style || _report(_exceptionable, {
|
|
8633
|
+
path: _path + ".style",
|
|
8634
|
+
expected: "(string | undefined)",
|
|
8635
|
+
value: input.style
|
|
8636
|
+
}), undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || _report(_exceptionable, {
|
|
8637
|
+
path: _path + ".styleOverrides",
|
|
8638
|
+
expected: "(SubtitleEventStyleOverrides | undefined)",
|
|
8639
|
+
value: input.styleOverrides
|
|
8640
|
+
})) && _vo1(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || _report(_exceptionable, {
|
|
8641
|
+
path: _path + ".styleOverrides",
|
|
8642
|
+
expected: "(SubtitleEventStyleOverrides | undefined)",
|
|
8643
|
+
value: input.styleOverrides
|
|
8644
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.marginL || "string" === typeof input.marginL || _report(_exceptionable, {
|
|
8645
|
+
path: _path + ".marginL",
|
|
8646
|
+
expected: "(string | undefined)",
|
|
8647
|
+
value: input.marginL
|
|
8648
|
+
}), undefined === input.marginR || "string" === typeof input.marginR || _report(_exceptionable, {
|
|
8649
|
+
path: _path + ".marginR",
|
|
8650
|
+
expected: "(string | undefined)",
|
|
8651
|
+
value: input.marginR
|
|
8652
|
+
}), undefined === input.marginV || "string" === typeof input.marginV || _report(_exceptionable, {
|
|
8653
|
+
path: _path + ".marginV",
|
|
8654
|
+
expected: "(string | undefined)",
|
|
8655
|
+
value: input.marginV
|
|
8656
|
+
}), undefined === input.alignment || "string" === typeof input.alignment || _report(_exceptionable, {
|
|
8657
|
+
path: _path + ".alignment",
|
|
8658
|
+
expected: "(string | undefined)",
|
|
8659
|
+
value: input.alignment
|
|
8660
|
+
}), undefined === input.fontname || "string" === typeof input.fontname || _report(_exceptionable, {
|
|
8661
|
+
path: _path + ".fontname",
|
|
8662
|
+
expected: "(string | undefined)",
|
|
8663
|
+
value: input.fontname
|
|
8664
|
+
}), undefined === input.fontsize || "string" === typeof input.fontsize || _report(_exceptionable, {
|
|
8665
|
+
path: _path + ".fontsize",
|
|
8666
|
+
expected: "(string | undefined)",
|
|
8667
|
+
value: input.fontsize
|
|
8668
|
+
}), undefined === input.primaryColour || "string" === typeof input.primaryColour || _report(_exceptionable, {
|
|
8669
|
+
path: _path + ".primaryColour",
|
|
8670
|
+
expected: "(string | undefined)",
|
|
8671
|
+
value: input.primaryColour
|
|
8672
|
+
}), undefined === input.secondaryColour || "string" === typeof input.secondaryColour || _report(_exceptionable, {
|
|
8673
|
+
path: _path + ".secondaryColour",
|
|
8674
|
+
expected: "(string | undefined)",
|
|
8675
|
+
value: input.secondaryColour
|
|
8676
|
+
}), undefined === input.outlineColour || "string" === typeof input.outlineColour || _report(_exceptionable, {
|
|
8677
|
+
path: _path + ".outlineColour",
|
|
8678
|
+
expected: "(string | undefined)",
|
|
8679
|
+
value: input.outlineColour
|
|
8680
|
+
}), undefined === input.backColour || "string" === typeof input.backColour || _report(_exceptionable, {
|
|
8681
|
+
path: _path + ".backColour",
|
|
8682
|
+
expected: "(string | undefined)",
|
|
8683
|
+
value: input.backColour
|
|
8684
|
+
}), undefined === input.bold || "string" === typeof input.bold || _report(_exceptionable, {
|
|
8685
|
+
path: _path + ".bold",
|
|
8686
|
+
expected: "(string | undefined)",
|
|
8687
|
+
value: input.bold
|
|
8688
|
+
}), undefined === input.italic || "string" === typeof input.italic || _report(_exceptionable, {
|
|
8689
|
+
path: _path + ".italic",
|
|
8690
|
+
expected: "(string | undefined)",
|
|
8691
|
+
value: input.italic
|
|
8692
|
+
}), undefined === input.underline || "string" === typeof input.underline || _report(_exceptionable, {
|
|
8693
|
+
path: _path + ".underline",
|
|
8694
|
+
expected: "(string | undefined)",
|
|
8695
|
+
value: input.underline
|
|
8696
|
+
}), undefined === input.strikeOut || "string" === typeof input.strikeOut || _report(_exceptionable, {
|
|
8697
|
+
path: _path + ".strikeOut",
|
|
8698
|
+
expected: "(string | undefined)",
|
|
8699
|
+
value: input.strikeOut
|
|
8700
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
8701
|
+
if (false === __is(input)) {
|
|
8702
|
+
errors = [];
|
|
8703
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
8704
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
8705
|
+
path: _path + "",
|
|
8706
|
+
expected: "EventRecord",
|
|
8707
|
+
value: input
|
|
8708
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
8709
|
+
path: _path + "",
|
|
8710
|
+
expected: "EventRecord",
|
|
8711
|
+
value: input
|
|
8712
|
+
}))(input, "$input", true);
|
|
8713
|
+
const success = 0 === errors.length;
|
|
8714
|
+
return success ? {
|
|
8715
|
+
success,
|
|
8716
|
+
data: input
|
|
8717
|
+
} : {
|
|
8718
|
+
success,
|
|
8719
|
+
errors,
|
|
8720
|
+
data: input
|
|
8721
|
+
};
|
|
8722
|
+
}
|
|
8723
|
+
return {
|
|
8724
|
+
success: true,
|
|
8725
|
+
data: input
|
|
8726
|
+
};
|
|
8727
|
+
}; })()(input);
|
|
8728
|
+
}
|
|
8729
|
+
case ":event._template?": {
|
|
8730
|
+
return (() => { const _io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && _io9(input.layout)) && (undefined === input.controller || "string" === typeof input.controller); const _io1 = input => Object.keys(input).every(key => {
|
|
8731
|
+
const value = input[key];
|
|
8732
|
+
if (undefined === value)
|
|
8733
|
+
return true;
|
|
8734
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
8735
|
+
}); const _io2 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io3 = input => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io4(input.profile)); const _io4 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io5(input.video)); const _io5 = input => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit; const _io6 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io7 = input => Object.keys(input).every(key => {
|
|
8736
|
+
const value = input[key];
|
|
8737
|
+
if (undefined === value)
|
|
8738
|
+
return true;
|
|
8739
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value);
|
|
8740
|
+
}); const _io8 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
8741
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
8742
|
+
return true;
|
|
8743
|
+
const value = input[key];
|
|
8744
|
+
if (undefined === value)
|
|
8745
|
+
return true;
|
|
8746
|
+
return true;
|
|
8747
|
+
}); const _io9 = input => undefined === input.title || "string" === typeof input.title; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
8748
|
+
path: _path + ".mixin",
|
|
8749
|
+
expected: "(Array<string> | undefined)",
|
|
8750
|
+
value: input.mixin
|
|
8751
|
+
})) && input.mixin.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
8752
|
+
path: _path + ".mixin[" + _index6 + "]",
|
|
8753
|
+
expected: "string",
|
|
8754
|
+
value: elem
|
|
8755
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8756
|
+
path: _path + ".mixin",
|
|
8757
|
+
expected: "(Array<string> | undefined)",
|
|
8758
|
+
value: input.mixin
|
|
8759
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8760
|
+
path: _path + ".properties",
|
|
8761
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
8762
|
+
value: input.properties
|
|
8763
|
+
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
8764
|
+
path: _path + ".properties",
|
|
8765
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
8766
|
+
value: input.properties
|
|
8767
|
+
}), undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || _report(_exceptionable, {
|
|
8768
|
+
path: _path + ".layout",
|
|
8769
|
+
expected: "(__type.o3 | undefined)",
|
|
8770
|
+
value: input.layout
|
|
8771
|
+
})) && _vo9(input.layout, _path + ".layout", true && _exceptionable) || _report(_exceptionable, {
|
|
8772
|
+
path: _path + ".layout",
|
|
8773
|
+
expected: "(__type.o3 | undefined)",
|
|
8774
|
+
value: input.layout
|
|
8775
|
+
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
8776
|
+
path: _path + ".controller",
|
|
8777
|
+
expected: "(string | undefined)",
|
|
8778
|
+
value: input.controller
|
|
8779
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
8780
|
+
const value = input[key];
|
|
8781
|
+
if (undefined === value)
|
|
8782
|
+
return true;
|
|
8783
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
8784
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8785
|
+
expected: "TemplateProperty",
|
|
8786
|
+
value: value
|
|
8787
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8788
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8789
|
+
expected: "TemplateProperty",
|
|
8790
|
+
value: value
|
|
8791
|
+
});
|
|
8792
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
8793
|
+
path: _path + ".path",
|
|
8794
|
+
expected: "(string | undefined)",
|
|
8795
|
+
value: input.path
|
|
8796
|
+
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
8797
|
+
path: _path + ".render",
|
|
8798
|
+
expected: "(__type | undefined)",
|
|
8799
|
+
value: input.render
|
|
8800
|
+
})) && _vo3(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
8801
|
+
path: _path + ".render",
|
|
8802
|
+
expected: "(__type | undefined)",
|
|
8803
|
+
value: input.render
|
|
8804
|
+
}), undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
8805
|
+
path: _path + ".type",
|
|
8806
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
8807
|
+
value: input.type
|
|
8808
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
8809
|
+
path: _path + ".title",
|
|
8810
|
+
expected: "(string | undefined)",
|
|
8811
|
+
value: input.title
|
|
8812
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
8813
|
+
path: _path + ".description",
|
|
8814
|
+
expected: "(string | undefined)",
|
|
8815
|
+
value: input.description
|
|
8816
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
8817
|
+
path: _path + ".required",
|
|
8818
|
+
expected: "(boolean | undefined)",
|
|
8819
|
+
value: input.required
|
|
8820
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
8821
|
+
path: _path + ".oneOf",
|
|
8822
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8823
|
+
value: input.oneOf
|
|
8824
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8825
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
8826
|
+
expected: "SchemaProperty<unknown>",
|
|
8827
|
+
value: elem
|
|
8828
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8829
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
8830
|
+
expected: "SchemaProperty<unknown>",
|
|
8831
|
+
value: elem
|
|
8832
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8833
|
+
path: _path + ".oneOf",
|
|
8834
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8835
|
+
value: input.oneOf
|
|
8836
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
8837
|
+
path: _path + ".anyOf",
|
|
8838
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8839
|
+
value: input.anyOf
|
|
8840
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8841
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
8842
|
+
expected: "SchemaProperty<unknown>",
|
|
8843
|
+
value: elem
|
|
8844
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8845
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
8846
|
+
expected: "SchemaProperty<unknown>",
|
|
8847
|
+
value: elem
|
|
8848
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8849
|
+
path: _path + ".anyOf",
|
|
8850
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8851
|
+
value: input.anyOf
|
|
8852
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
8853
|
+
path: _path + "[\"enum\"]",
|
|
8854
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
8855
|
+
value: input["enum"]
|
|
8856
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
8857
|
+
path: _path + ".minItems",
|
|
8858
|
+
expected: "(number | undefined)",
|
|
8859
|
+
value: input.minItems
|
|
8860
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
8861
|
+
path: _path + ".maxItems",
|
|
8862
|
+
expected: "(number | undefined)",
|
|
8863
|
+
value: input.maxItems
|
|
8864
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
8865
|
+
path: _path + ".items",
|
|
8866
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
8867
|
+
value: input.items
|
|
8868
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
8869
|
+
path: _path + ".items",
|
|
8870
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
8871
|
+
value: input.items
|
|
8872
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8873
|
+
path: _path + ".properties",
|
|
8874
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
8875
|
+
value: input.properties
|
|
8876
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
8877
|
+
path: _path + ".properties",
|
|
8878
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
8879
|
+
value: input.properties
|
|
8880
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
8881
|
+
path: _path + ".widget",
|
|
8882
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8883
|
+
value: input.widget
|
|
8884
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
8885
|
+
path: _path + ".widget",
|
|
8886
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8887
|
+
value: input.widget
|
|
8888
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
8889
|
+
path: _path + ".widget",
|
|
8890
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
8891
|
+
value: input.widget
|
|
8892
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
8893
|
+
path: _path + ".placeholder",
|
|
8894
|
+
expected: "(string | undefined)",
|
|
8895
|
+
value: input.placeholder
|
|
8896
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
8897
|
+
path: _path + ".helpText",
|
|
8898
|
+
expected: "(string | undefined)",
|
|
8899
|
+
value: input.helpText
|
|
8900
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
8901
|
+
path: _path + ".invalid",
|
|
8902
|
+
expected: "(boolean | undefined)",
|
|
8903
|
+
value: input.invalid
|
|
8904
|
+
}), true].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
8905
|
+
path: _path + ".type",
|
|
8906
|
+
expected: "\"image\"",
|
|
8907
|
+
value: input.type
|
|
8908
|
+
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
8909
|
+
path: _path + ".profile",
|
|
8910
|
+
expected: "(__type.o1 | undefined)",
|
|
8911
|
+
value: input.profile
|
|
8912
|
+
})) && _vo4(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
8913
|
+
path: _path + ".profile",
|
|
8914
|
+
expected: "(__type.o1 | undefined)",
|
|
8915
|
+
value: input.profile
|
|
8916
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
8917
|
+
path: _path + ".format",
|
|
8918
|
+
expected: "(string | undefined)",
|
|
8919
|
+
value: input.format
|
|
8920
|
+
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
8921
|
+
path: _path + ".video",
|
|
8922
|
+
expected: "(__type.o2 | undefined)",
|
|
8923
|
+
value: input.video
|
|
8924
|
+
})) && _vo5(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
8925
|
+
path: _path + ".video",
|
|
8926
|
+
expected: "(__type.o2 | undefined)",
|
|
8927
|
+
value: input.video
|
|
8928
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
8929
|
+
path: _path + ".width",
|
|
8930
|
+
expected: "number",
|
|
8931
|
+
value: input.width
|
|
8932
|
+
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
8933
|
+
path: _path + ".height",
|
|
8934
|
+
expected: "number",
|
|
8935
|
+
value: input.height
|
|
8936
|
+
}), "cover" === input.fit || _report(_exceptionable, {
|
|
8937
|
+
path: _path + ".fit",
|
|
8938
|
+
expected: "\"cover\"",
|
|
8939
|
+
value: input.fit
|
|
8940
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
8941
|
+
path: _path + ".type",
|
|
8942
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
8943
|
+
value: input.type
|
|
8944
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
8945
|
+
path: _path + ".title",
|
|
8946
|
+
expected: "(string | undefined)",
|
|
8947
|
+
value: input.title
|
|
8948
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
8949
|
+
path: _path + ".description",
|
|
8950
|
+
expected: "(string | undefined)",
|
|
8951
|
+
value: input.description
|
|
8952
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
8953
|
+
path: _path + ".required",
|
|
8954
|
+
expected: "(boolean | undefined)",
|
|
8955
|
+
value: input.required
|
|
8956
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
8957
|
+
path: _path + ".oneOf",
|
|
8958
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8959
|
+
value: input.oneOf
|
|
8960
|
+
})) && input.oneOf.map((elem, _index9) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8961
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
8962
|
+
expected: "SchemaProperty<unknown>",
|
|
8963
|
+
value: elem
|
|
8964
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8965
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
8966
|
+
expected: "SchemaProperty<unknown>",
|
|
8967
|
+
value: elem
|
|
8968
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8969
|
+
path: _path + ".oneOf",
|
|
8970
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8971
|
+
value: input.oneOf
|
|
8972
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
8973
|
+
path: _path + ".anyOf",
|
|
8974
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8975
|
+
value: input.anyOf
|
|
8976
|
+
})) && input.anyOf.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
8977
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
8978
|
+
expected: "SchemaProperty<unknown>",
|
|
8979
|
+
value: elem
|
|
8980
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8981
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
8982
|
+
expected: "SchemaProperty<unknown>",
|
|
8983
|
+
value: elem
|
|
8984
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
8985
|
+
path: _path + ".anyOf",
|
|
8986
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
8987
|
+
value: input.anyOf
|
|
8988
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
8989
|
+
path: _path + "[\"enum\"]",
|
|
8990
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
8991
|
+
value: input["enum"]
|
|
8992
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
8993
|
+
path: _path + ".minItems",
|
|
8994
|
+
expected: "(number | undefined)",
|
|
8995
|
+
value: input.minItems
|
|
8996
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
8997
|
+
path: _path + ".maxItems",
|
|
8998
|
+
expected: "(number | undefined)",
|
|
8999
|
+
value: input.maxItems
|
|
9000
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
9001
|
+
path: _path + ".items",
|
|
9002
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
9003
|
+
value: input.items
|
|
9004
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
9005
|
+
path: _path + ".items",
|
|
9006
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
9007
|
+
value: input.items
|
|
9008
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
9009
|
+
path: _path + ".properties",
|
|
9010
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
9011
|
+
value: input.properties
|
|
9012
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
9013
|
+
path: _path + ".properties",
|
|
9014
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
9015
|
+
value: input.properties
|
|
9016
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
9017
|
+
path: _path + ".widget",
|
|
9018
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9019
|
+
value: input.widget
|
|
9020
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
9021
|
+
path: _path + ".widget",
|
|
9022
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9023
|
+
value: input.widget
|
|
9024
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
9025
|
+
path: _path + ".widget",
|
|
9026
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9027
|
+
value: input.widget
|
|
9028
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
9029
|
+
path: _path + ".placeholder",
|
|
9030
|
+
expected: "(string | undefined)",
|
|
9031
|
+
value: input.placeholder
|
|
9032
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
9033
|
+
path: _path + ".helpText",
|
|
9034
|
+
expected: "(string | undefined)",
|
|
9035
|
+
value: input.helpText
|
|
9036
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
9037
|
+
path: _path + ".invalid",
|
|
9038
|
+
expected: "(boolean | undefined)",
|
|
9039
|
+
value: input.invalid
|
|
9040
|
+
}), true].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
9041
|
+
const value = input[key];
|
|
9042
|
+
if (undefined === value)
|
|
9043
|
+
return true;
|
|
9044
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
9045
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9046
|
+
expected: "SchemaProperty<unknown>",
|
|
9047
|
+
value: value
|
|
9048
|
+
})) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9049
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9050
|
+
expected: "SchemaProperty<unknown>",
|
|
9051
|
+
value: value
|
|
9052
|
+
});
|
|
9053
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
9054
|
+
path: _path + ".type",
|
|
9055
|
+
expected: "(string | undefined)",
|
|
9056
|
+
value: input.type
|
|
9057
|
+
}), undefined === input.readOnly || "boolean" === typeof input.readOnly || _report(_exceptionable, {
|
|
9058
|
+
path: _path + ".readOnly",
|
|
9059
|
+
expected: "(boolean | undefined)",
|
|
9060
|
+
value: input.readOnly
|
|
9061
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
9062
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
9063
|
+
return true;
|
|
9064
|
+
const value = input[key];
|
|
9065
|
+
if (undefined === value)
|
|
9066
|
+
return true;
|
|
9067
|
+
return true;
|
|
9068
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
9069
|
+
path: _path + ".title",
|
|
9070
|
+
expected: "(string | undefined)",
|
|
9071
|
+
value: input.title
|
|
9072
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
9073
|
+
if (false === __is(input)) {
|
|
9074
|
+
errors = [];
|
|
9075
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
9076
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
9077
|
+
path: _path + "",
|
|
9078
|
+
expected: "EventTemplateRecord",
|
|
9079
|
+
value: input
|
|
9080
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
9081
|
+
path: _path + "",
|
|
9082
|
+
expected: "EventTemplateRecord",
|
|
9083
|
+
value: input
|
|
9084
|
+
}))(input, "$input", true);
|
|
9085
|
+
const success = 0 === errors.length;
|
|
9086
|
+
return success ? {
|
|
9087
|
+
success,
|
|
9088
|
+
data: input
|
|
9089
|
+
} : {
|
|
9090
|
+
success,
|
|
9091
|
+
errors,
|
|
9092
|
+
data: input
|
|
9093
|
+
};
|
|
9094
|
+
}
|
|
9095
|
+
return {
|
|
9096
|
+
success: true,
|
|
9097
|
+
data: input
|
|
9098
|
+
};
|
|
9099
|
+
}; })()(input);
|
|
9100
|
+
}
|
|
9101
|
+
case ":event.overlay?": {
|
|
9102
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
9103
|
+
const value = input[key];
|
|
9104
|
+
if (undefined === value)
|
|
9105
|
+
return true;
|
|
9106
|
+
return "object" === typeof value && null !== value && _io1(value);
|
|
9107
|
+
}); const _io1 = input => "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io2(input.data); const _io2 = input => (undefined === input.source || "string" === typeof input.source) && (undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard) && (undefined === input.printRundownColor || "string" === typeof input.printRundownColor) && (undefined === input.startTime || "number" === typeof input.startTime) && (null !== input.shotboxGroup && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || Array.isArray(input.shotboxGroup) && input.shotboxGroup.every(elem => "string" === typeof elem))) && (undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible) && Object.keys(input).every(key => {
|
|
9108
|
+
if (["source", "cueCard", "printRundownColor", "startTime", "shotboxGroup", "shotboxVisible"].some(prop => key === prop))
|
|
9109
|
+
return true;
|
|
9110
|
+
const value = input[key];
|
|
9111
|
+
if (undefined === value)
|
|
9112
|
+
return true;
|
|
9113
|
+
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io3(value)));
|
|
9114
|
+
}); const _io3 = input => Object.keys(input).every(key => {
|
|
9115
|
+
const value = input[key];
|
|
9116
|
+
if (undefined === value)
|
|
9117
|
+
return true;
|
|
9118
|
+
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io3(value)));
|
|
9119
|
+
}); const _ia0 = input => input.every(elem => undefined !== elem && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_ia0(elem) || false) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io3(elem)))); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
9120
|
+
const value = input[key];
|
|
9121
|
+
if (undefined === value)
|
|
9122
|
+
return true;
|
|
9123
|
+
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
|
9124
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9125
|
+
expected: "__type",
|
|
9126
|
+
value: value
|
|
9127
|
+
})) && _vo1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9128
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9129
|
+
expected: "__type",
|
|
9130
|
+
value: value
|
|
9131
|
+
});
|
|
9132
|
+
}).every(flag => flag)].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || _report(_exceptionable, {
|
|
9133
|
+
path: _path + ".data",
|
|
9134
|
+
expected: "EventPropsRecord",
|
|
9135
|
+
value: input.data
|
|
9136
|
+
})) && _vo2(input.data, _path + ".data", true && _exceptionable) || _report(_exceptionable, {
|
|
9137
|
+
path: _path + ".data",
|
|
9138
|
+
expected: "EventPropsRecord",
|
|
9139
|
+
value: input.data
|
|
9140
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
9141
|
+
path: _path + ".source",
|
|
9142
|
+
expected: "(string | undefined)",
|
|
9143
|
+
value: input.source
|
|
9144
|
+
}), undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard || _report(_exceptionable, {
|
|
9145
|
+
path: _path + ".cueCard",
|
|
9146
|
+
expected: "(boolean | string | undefined)",
|
|
9147
|
+
value: input.cueCard
|
|
9148
|
+
}), undefined === input.printRundownColor || "string" === typeof input.printRundownColor || _report(_exceptionable, {
|
|
9149
|
+
path: _path + ".printRundownColor",
|
|
9150
|
+
expected: "(string | undefined)",
|
|
9151
|
+
value: input.printRundownColor
|
|
9152
|
+
}), undefined === input.startTime || "number" === typeof input.startTime || _report(_exceptionable, {
|
|
9153
|
+
path: _path + ".startTime",
|
|
9154
|
+
expected: "(number | undefined)",
|
|
9155
|
+
value: input.startTime
|
|
9156
|
+
}), (null !== input.shotboxGroup || _report(_exceptionable, {
|
|
9157
|
+
path: _path + ".shotboxGroup",
|
|
9158
|
+
expected: "(Array<string> | string | undefined)",
|
|
9159
|
+
value: input.shotboxGroup
|
|
9160
|
+
})) && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || (Array.isArray(input.shotboxGroup) || _report(_exceptionable, {
|
|
9161
|
+
path: _path + ".shotboxGroup",
|
|
9162
|
+
expected: "(Array<string> | string | undefined)",
|
|
9163
|
+
value: input.shotboxGroup
|
|
9164
|
+
})) && input.shotboxGroup.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
|
|
9165
|
+
path: _path + ".shotboxGroup[" + _index3 + "]",
|
|
9166
|
+
expected: "string",
|
|
9167
|
+
value: elem
|
|
9168
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
9169
|
+
path: _path + ".shotboxGroup",
|
|
9170
|
+
expected: "(Array<string> | string | undefined)",
|
|
9171
|
+
value: input.shotboxGroup
|
|
9172
|
+
})), undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible || _report(_exceptionable, {
|
|
9173
|
+
path: _path + ".shotboxVisible",
|
|
9174
|
+
expected: "(boolean | undefined)",
|
|
9175
|
+
value: input.shotboxVisible
|
|
9176
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
9177
|
+
if (["source", "cueCard", "printRundownColor", "startTime", "shotboxGroup", "shotboxVisible"].some(prop => key === prop))
|
|
9178
|
+
return true;
|
|
9179
|
+
const value = input[key];
|
|
9180
|
+
if (undefined === value)
|
|
9181
|
+
return true;
|
|
9182
|
+
return (undefined !== value || _report(_exceptionable, {
|
|
9183
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9184
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9185
|
+
value: value
|
|
9186
|
+
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9187
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9188
|
+
expected: "Array<JsonValue>",
|
|
9189
|
+
value: value
|
|
9190
|
+
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo3(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9191
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9192
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9193
|
+
value: value
|
|
9194
|
+
})) || _report(_exceptionable, {
|
|
9195
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9196
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9197
|
+
value: value
|
|
9198
|
+
}));
|
|
9199
|
+
}).every(flag => flag)].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
9200
|
+
const value = input[key];
|
|
9201
|
+
if (undefined === value)
|
|
9202
|
+
return true;
|
|
9203
|
+
return (undefined !== value || _report(_exceptionable, {
|
|
9204
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9205
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9206
|
+
value: value
|
|
9207
|
+
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9208
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9209
|
+
expected: "Array<JsonValue>",
|
|
9210
|
+
value: value
|
|
9211
|
+
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo3(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9212
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9213
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9214
|
+
value: value
|
|
9215
|
+
})) || _report(_exceptionable, {
|
|
9216
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9217
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9218
|
+
value: value
|
|
9219
|
+
}));
|
|
9220
|
+
}).every(flag => flag)].every(flag => flag); const _va0 = (input, _path, _exceptionable = true) => input.map((elem, _index4) => (undefined !== elem || _report(_exceptionable, {
|
|
9221
|
+
path: _path + "[" + _index4 + "]",
|
|
9222
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9223
|
+
value: elem
|
|
9224
|
+
})) && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_va0(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
9225
|
+
path: _path + "[" + _index4 + "]",
|
|
9226
|
+
expected: "Array<JsonValue>",
|
|
9227
|
+
value: elem
|
|
9228
|
+
})) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _vo3(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
9229
|
+
path: _path + "[" + _index4 + "]",
|
|
9230
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9231
|
+
value: elem
|
|
9232
|
+
})) || _report(_exceptionable, {
|
|
9233
|
+
path: _path + "[" + _index4 + "]",
|
|
9234
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
9235
|
+
value: elem
|
|
9236
|
+
}))).every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
9237
|
+
if (false === __is(input)) {
|
|
9238
|
+
errors = [];
|
|
9239
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
9240
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
9241
|
+
path: _path + "",
|
|
9242
|
+
expected: "EventOverlayRecord",
|
|
9243
|
+
value: input
|
|
9244
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
9245
|
+
path: _path + "",
|
|
9246
|
+
expected: "EventOverlayRecord",
|
|
9247
|
+
value: input
|
|
9248
|
+
}))(input, "$input", true);
|
|
9249
|
+
const success = 0 === errors.length;
|
|
9250
|
+
return success ? {
|
|
9251
|
+
success,
|
|
9252
|
+
data: input
|
|
9253
|
+
} : {
|
|
9254
|
+
success,
|
|
9255
|
+
errors,
|
|
9256
|
+
data: input
|
|
9257
|
+
};
|
|
9258
|
+
}
|
|
9259
|
+
return {
|
|
9260
|
+
success: true,
|
|
9261
|
+
data: input
|
|
9262
|
+
};
|
|
9263
|
+
}; })()(input);
|
|
9264
|
+
}
|
|
9265
|
+
case ":event.template?": {
|
|
9266
|
+
return (() => { const _io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && _io9(input.layout)) && (undefined === input.controller || "string" === typeof input.controller); const _io1 = input => Object.keys(input).every(key => {
|
|
9267
|
+
const value = input[key];
|
|
9268
|
+
if (undefined === value)
|
|
9269
|
+
return true;
|
|
9270
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
9271
|
+
}); const _io2 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io3 = input => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io4(input.profile)); const _io4 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io5(input.video)); const _io5 = input => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit; const _io6 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io7 = input => Object.keys(input).every(key => {
|
|
9272
|
+
const value = input[key];
|
|
9273
|
+
if (undefined === value)
|
|
9274
|
+
return true;
|
|
9275
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value);
|
|
9276
|
+
}); const _io8 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
9277
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
9278
|
+
return true;
|
|
9279
|
+
const value = input[key];
|
|
9280
|
+
if (undefined === value)
|
|
9281
|
+
return true;
|
|
9282
|
+
return true;
|
|
9283
|
+
}); const _io9 = input => undefined === input.title || "string" === typeof input.title; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
9284
|
+
path: _path + ".mixin",
|
|
9285
|
+
expected: "(Array<string> | undefined)",
|
|
9286
|
+
value: input.mixin
|
|
9287
|
+
})) && input.mixin.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
9288
|
+
path: _path + ".mixin[" + _index6 + "]",
|
|
9289
|
+
expected: "string",
|
|
9290
|
+
value: elem
|
|
9291
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
9292
|
+
path: _path + ".mixin",
|
|
9293
|
+
expected: "(Array<string> | undefined)",
|
|
9294
|
+
value: input.mixin
|
|
9295
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
9296
|
+
path: _path + ".properties",
|
|
9297
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
9298
|
+
value: input.properties
|
|
9299
|
+
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
9300
|
+
path: _path + ".properties",
|
|
9301
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
9302
|
+
value: input.properties
|
|
9303
|
+
}), undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || _report(_exceptionable, {
|
|
9304
|
+
path: _path + ".layout",
|
|
9305
|
+
expected: "(__type.o3 | undefined)",
|
|
9306
|
+
value: input.layout
|
|
9307
|
+
})) && _vo9(input.layout, _path + ".layout", true && _exceptionable) || _report(_exceptionable, {
|
|
9308
|
+
path: _path + ".layout",
|
|
9309
|
+
expected: "(__type.o3 | undefined)",
|
|
9310
|
+
value: input.layout
|
|
9311
|
+
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
9312
|
+
path: _path + ".controller",
|
|
9313
|
+
expected: "(string | undefined)",
|
|
9314
|
+
value: input.controller
|
|
9315
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
9316
|
+
const value = input[key];
|
|
9317
|
+
if (undefined === value)
|
|
9318
|
+
return true;
|
|
9319
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
9320
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9321
|
+
expected: "TemplateProperty",
|
|
9322
|
+
value: value
|
|
9323
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
9324
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9325
|
+
expected: "TemplateProperty",
|
|
9326
|
+
value: value
|
|
9327
|
+
});
|
|
9328
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
9329
|
+
path: _path + ".path",
|
|
9330
|
+
expected: "(string | undefined)",
|
|
9331
|
+
value: input.path
|
|
9332
|
+
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
9333
|
+
path: _path + ".render",
|
|
9334
|
+
expected: "(__type | undefined)",
|
|
9335
|
+
value: input.render
|
|
9336
|
+
})) && _vo3(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
9337
|
+
path: _path + ".render",
|
|
9338
|
+
expected: "(__type | undefined)",
|
|
9339
|
+
value: input.render
|
|
9340
|
+
}), undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
9341
|
+
path: _path + ".type",
|
|
9342
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
9343
|
+
value: input.type
|
|
9344
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
9345
|
+
path: _path + ".title",
|
|
9346
|
+
expected: "(string | undefined)",
|
|
9347
|
+
value: input.title
|
|
9348
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
9349
|
+
path: _path + ".description",
|
|
9350
|
+
expected: "(string | undefined)",
|
|
9351
|
+
value: input.description
|
|
9352
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
9353
|
+
path: _path + ".required",
|
|
9354
|
+
expected: "(boolean | undefined)",
|
|
9355
|
+
value: input.required
|
|
9356
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
9357
|
+
path: _path + ".oneOf",
|
|
9358
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9359
|
+
value: input.oneOf
|
|
9360
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
9361
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
9362
|
+
expected: "SchemaProperty<unknown>",
|
|
9363
|
+
value: elem
|
|
9364
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
9365
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
9366
|
+
expected: "SchemaProperty<unknown>",
|
|
9367
|
+
value: elem
|
|
9368
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
9369
|
+
path: _path + ".oneOf",
|
|
9370
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9371
|
+
value: input.oneOf
|
|
9372
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
9373
|
+
path: _path + ".anyOf",
|
|
9374
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9375
|
+
value: input.anyOf
|
|
9376
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
9377
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
9378
|
+
expected: "SchemaProperty<unknown>",
|
|
9379
|
+
value: elem
|
|
9380
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
9381
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
9382
|
+
expected: "SchemaProperty<unknown>",
|
|
9383
|
+
value: elem
|
|
9384
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
9385
|
+
path: _path + ".anyOf",
|
|
9386
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9387
|
+
value: input.anyOf
|
|
9388
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
9389
|
+
path: _path + "[\"enum\"]",
|
|
9390
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
9391
|
+
value: input["enum"]
|
|
9392
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
9393
|
+
path: _path + ".minItems",
|
|
9394
|
+
expected: "(number | undefined)",
|
|
9395
|
+
value: input.minItems
|
|
9396
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
9397
|
+
path: _path + ".maxItems",
|
|
9398
|
+
expected: "(number | undefined)",
|
|
9399
|
+
value: input.maxItems
|
|
9400
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
9401
|
+
path: _path + ".items",
|
|
9402
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
9403
|
+
value: input.items
|
|
9404
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
9405
|
+
path: _path + ".items",
|
|
9406
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
9407
|
+
value: input.items
|
|
9408
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
9409
|
+
path: _path + ".properties",
|
|
9410
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
9411
|
+
value: input.properties
|
|
9412
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
9413
|
+
path: _path + ".properties",
|
|
9414
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
9415
|
+
value: input.properties
|
|
9416
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
9417
|
+
path: _path + ".widget",
|
|
9418
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9419
|
+
value: input.widget
|
|
9420
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
9421
|
+
path: _path + ".widget",
|
|
9422
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9423
|
+
value: input.widget
|
|
9424
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
9425
|
+
path: _path + ".widget",
|
|
9426
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9427
|
+
value: input.widget
|
|
9428
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
9429
|
+
path: _path + ".placeholder",
|
|
9430
|
+
expected: "(string | undefined)",
|
|
9431
|
+
value: input.placeholder
|
|
9432
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
9433
|
+
path: _path + ".helpText",
|
|
9434
|
+
expected: "(string | undefined)",
|
|
9435
|
+
value: input.helpText
|
|
9436
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
9437
|
+
path: _path + ".invalid",
|
|
9438
|
+
expected: "(boolean | undefined)",
|
|
9439
|
+
value: input.invalid
|
|
9440
|
+
}), true].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
9441
|
+
path: _path + ".type",
|
|
9442
|
+
expected: "\"image\"",
|
|
9443
|
+
value: input.type
|
|
9444
|
+
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
9445
|
+
path: _path + ".profile",
|
|
9446
|
+
expected: "(__type.o1 | undefined)",
|
|
9447
|
+
value: input.profile
|
|
9448
|
+
})) && _vo4(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
9449
|
+
path: _path + ".profile",
|
|
9450
|
+
expected: "(__type.o1 | undefined)",
|
|
9451
|
+
value: input.profile
|
|
9452
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
9453
|
+
path: _path + ".format",
|
|
9454
|
+
expected: "(string | undefined)",
|
|
9455
|
+
value: input.format
|
|
9456
|
+
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
9457
|
+
path: _path + ".video",
|
|
9458
|
+
expected: "(__type.o2 | undefined)",
|
|
9459
|
+
value: input.video
|
|
9460
|
+
})) && _vo5(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
9461
|
+
path: _path + ".video",
|
|
9462
|
+
expected: "(__type.o2 | undefined)",
|
|
9463
|
+
value: input.video
|
|
9464
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
9465
|
+
path: _path + ".width",
|
|
9466
|
+
expected: "number",
|
|
9467
|
+
value: input.width
|
|
9468
|
+
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
9469
|
+
path: _path + ".height",
|
|
9470
|
+
expected: "number",
|
|
9471
|
+
value: input.height
|
|
9472
|
+
}), "cover" === input.fit || _report(_exceptionable, {
|
|
9473
|
+
path: _path + ".fit",
|
|
9474
|
+
expected: "\"cover\"",
|
|
9475
|
+
value: input.fit
|
|
9476
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
9477
|
+
path: _path + ".type",
|
|
9478
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
9479
|
+
value: input.type
|
|
9480
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
9481
|
+
path: _path + ".title",
|
|
9482
|
+
expected: "(string | undefined)",
|
|
9483
|
+
value: input.title
|
|
9484
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
9485
|
+
path: _path + ".description",
|
|
9486
|
+
expected: "(string | undefined)",
|
|
9487
|
+
value: input.description
|
|
9488
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
9489
|
+
path: _path + ".required",
|
|
9490
|
+
expected: "(boolean | undefined)",
|
|
9491
|
+
value: input.required
|
|
9492
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
9493
|
+
path: _path + ".oneOf",
|
|
9494
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9495
|
+
value: input.oneOf
|
|
9496
|
+
})) && input.oneOf.map((elem, _index9) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
9497
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
9498
|
+
expected: "SchemaProperty<unknown>",
|
|
9499
|
+
value: elem
|
|
9500
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
9501
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
9502
|
+
expected: "SchemaProperty<unknown>",
|
|
9503
|
+
value: elem
|
|
9504
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
9505
|
+
path: _path + ".oneOf",
|
|
9506
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9507
|
+
value: input.oneOf
|
|
9508
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
9509
|
+
path: _path + ".anyOf",
|
|
9510
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9511
|
+
value: input.anyOf
|
|
9512
|
+
})) && input.anyOf.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
9513
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
9514
|
+
expected: "SchemaProperty<unknown>",
|
|
9515
|
+
value: elem
|
|
9516
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
9517
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
9518
|
+
expected: "SchemaProperty<unknown>",
|
|
9519
|
+
value: elem
|
|
9520
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
9521
|
+
path: _path + ".anyOf",
|
|
9522
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
9523
|
+
value: input.anyOf
|
|
9524
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
9525
|
+
path: _path + "[\"enum\"]",
|
|
9526
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
9527
|
+
value: input["enum"]
|
|
9528
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
9529
|
+
path: _path + ".minItems",
|
|
9530
|
+
expected: "(number | undefined)",
|
|
9531
|
+
value: input.minItems
|
|
9532
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
9533
|
+
path: _path + ".maxItems",
|
|
9534
|
+
expected: "(number | undefined)",
|
|
9535
|
+
value: input.maxItems
|
|
9536
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
9537
|
+
path: _path + ".items",
|
|
9538
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
9539
|
+
value: input.items
|
|
9540
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
9541
|
+
path: _path + ".items",
|
|
9542
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
9543
|
+
value: input.items
|
|
9544
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
9545
|
+
path: _path + ".properties",
|
|
9546
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
9547
|
+
value: input.properties
|
|
9548
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
9549
|
+
path: _path + ".properties",
|
|
9550
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
9551
|
+
value: input.properties
|
|
9552
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
9553
|
+
path: _path + ".widget",
|
|
9554
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9555
|
+
value: input.widget
|
|
9556
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
9557
|
+
path: _path + ".widget",
|
|
9558
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9559
|
+
value: input.widget
|
|
9560
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
9561
|
+
path: _path + ".widget",
|
|
9562
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
9563
|
+
value: input.widget
|
|
9564
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
9565
|
+
path: _path + ".placeholder",
|
|
9566
|
+
expected: "(string | undefined)",
|
|
9567
|
+
value: input.placeholder
|
|
9568
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
9569
|
+
path: _path + ".helpText",
|
|
9570
|
+
expected: "(string | undefined)",
|
|
9571
|
+
value: input.helpText
|
|
9572
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
9573
|
+
path: _path + ".invalid",
|
|
9574
|
+
expected: "(boolean | undefined)",
|
|
9575
|
+
value: input.invalid
|
|
9576
|
+
}), true].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
8446
9577
|
const value = input[key];
|
|
8447
9578
|
if (undefined === value)
|
|
8448
9579
|
return true;
|
|
8449
|
-
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
|
9580
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
8450
9581
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8451
|
-
expected: "
|
|
9582
|
+
expected: "SchemaProperty<unknown>",
|
|
8452
9583
|
value: value
|
|
8453
|
-
})) &&
|
|
9584
|
+
})) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8454
9585
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8455
|
-
expected: "
|
|
9586
|
+
expected: "SchemaProperty<unknown>",
|
|
8456
9587
|
value: value
|
|
8457
9588
|
});
|
|
8458
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
8459
|
-
path: _path + ".
|
|
8460
|
-
expected: "EventPropsRecord",
|
|
8461
|
-
value: input.data
|
|
8462
|
-
})) && _vo2(input.data, _path + ".data", true && _exceptionable) || _report(_exceptionable, {
|
|
8463
|
-
path: _path + ".data",
|
|
8464
|
-
expected: "EventPropsRecord",
|
|
8465
|
-
value: input.data
|
|
8466
|
-
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
8467
|
-
path: _path + ".source",
|
|
8468
|
-
expected: "(string | undefined)",
|
|
8469
|
-
value: input.source
|
|
8470
|
-
}), undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard || _report(_exceptionable, {
|
|
8471
|
-
path: _path + ".cueCard",
|
|
8472
|
-
expected: "(boolean | string | undefined)",
|
|
8473
|
-
value: input.cueCard
|
|
8474
|
-
}), undefined === input.printRundownColor || "string" === typeof input.printRundownColor || _report(_exceptionable, {
|
|
8475
|
-
path: _path + ".printRundownColor",
|
|
9589
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
9590
|
+
path: _path + ".type",
|
|
8476
9591
|
expected: "(string | undefined)",
|
|
8477
|
-
value: input.
|
|
8478
|
-
}), undefined === input.
|
|
8479
|
-
path: _path + ".
|
|
8480
|
-
expected: "(number | undefined)",
|
|
8481
|
-
value: input.startTime
|
|
8482
|
-
}), (null !== input.shotboxGroup || _report(_exceptionable, {
|
|
8483
|
-
path: _path + ".shotboxGroup",
|
|
8484
|
-
expected: "(Array<string> | string | undefined)",
|
|
8485
|
-
value: input.shotboxGroup
|
|
8486
|
-
})) && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || (Array.isArray(input.shotboxGroup) || _report(_exceptionable, {
|
|
8487
|
-
path: _path + ".shotboxGroup",
|
|
8488
|
-
expected: "(Array<string> | string | undefined)",
|
|
8489
|
-
value: input.shotboxGroup
|
|
8490
|
-
})) && input.shotboxGroup.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
|
|
8491
|
-
path: _path + ".shotboxGroup[" + _index3 + "]",
|
|
8492
|
-
expected: "string",
|
|
8493
|
-
value: elem
|
|
8494
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
8495
|
-
path: _path + ".shotboxGroup",
|
|
8496
|
-
expected: "(Array<string> | string | undefined)",
|
|
8497
|
-
value: input.shotboxGroup
|
|
8498
|
-
})), undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible || _report(_exceptionable, {
|
|
8499
|
-
path: _path + ".shotboxVisible",
|
|
9592
|
+
value: input.type
|
|
9593
|
+
}), undefined === input.readOnly || "boolean" === typeof input.readOnly || _report(_exceptionable, {
|
|
9594
|
+
path: _path + ".readOnly",
|
|
8500
9595
|
expected: "(boolean | undefined)",
|
|
8501
|
-
value: input.
|
|
9596
|
+
value: input.readOnly
|
|
8502
9597
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
8503
|
-
if (["
|
|
8504
|
-
return true;
|
|
8505
|
-
const value = input[key];
|
|
8506
|
-
if (undefined === value)
|
|
9598
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
8507
9599
|
return true;
|
|
8508
|
-
return (undefined !== value || _report(_exceptionable, {
|
|
8509
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8510
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8511
|
-
value: value
|
|
8512
|
-
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8513
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8514
|
-
expected: "Array<JsonValue>",
|
|
8515
|
-
value: value
|
|
8516
|
-
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo3(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8517
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8518
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8519
|
-
value: value
|
|
8520
|
-
})) || _report(_exceptionable, {
|
|
8521
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8522
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8523
|
-
value: value
|
|
8524
|
-
}));
|
|
8525
|
-
}).every(flag => flag)].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
8526
9600
|
const value = input[key];
|
|
8527
9601
|
if (undefined === value)
|
|
8528
9602
|
return true;
|
|
8529
|
-
return
|
|
8530
|
-
|
|
8531
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8532
|
-
value: value
|
|
8533
|
-
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8534
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8535
|
-
expected: "Array<JsonValue>",
|
|
8536
|
-
value: value
|
|
8537
|
-
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo3(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
8538
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8539
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8540
|
-
value: value
|
|
8541
|
-
})) || _report(_exceptionable, {
|
|
8542
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
8543
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8544
|
-
value: value
|
|
8545
|
-
}));
|
|
8546
|
-
}).every(flag => flag)].every(flag => flag); const _va0 = (input, _path, _exceptionable = true) => input.map((elem, _index4) => (undefined !== elem || _report(_exceptionable, {
|
|
8547
|
-
path: _path + "[" + _index4 + "]",
|
|
8548
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8549
|
-
value: elem
|
|
8550
|
-
})) && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_va0(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8551
|
-
path: _path + "[" + _index4 + "]",
|
|
8552
|
-
expected: "Array<JsonValue>",
|
|
8553
|
-
value: elem
|
|
8554
|
-
})) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _vo3(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
8555
|
-
path: _path + "[" + _index4 + "]",
|
|
8556
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8557
|
-
value: elem
|
|
8558
|
-
})) || _report(_exceptionable, {
|
|
8559
|
-
path: _path + "[" + _index4 + "]",
|
|
8560
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
8561
|
-
value: elem
|
|
8562
|
-
}))).every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
8563
|
-
if (false === __is(input)) {
|
|
8564
|
-
errors = [];
|
|
8565
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
8566
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
8567
|
-
path: _path + "",
|
|
8568
|
-
expected: "EventOverlayRecord",
|
|
8569
|
-
value: input
|
|
8570
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
8571
|
-
path: _path + "",
|
|
8572
|
-
expected: "EventOverlayRecord",
|
|
8573
|
-
value: input
|
|
8574
|
-
}))(input, "$input", true);
|
|
8575
|
-
const success = 0 === errors.length;
|
|
8576
|
-
return success ? {
|
|
8577
|
-
success,
|
|
8578
|
-
data: input
|
|
8579
|
-
} : {
|
|
8580
|
-
success,
|
|
8581
|
-
errors,
|
|
8582
|
-
data: input
|
|
8583
|
-
};
|
|
8584
|
-
}
|
|
8585
|
-
return {
|
|
8586
|
-
success: true,
|
|
8587
|
-
data: input
|
|
8588
|
-
};
|
|
8589
|
-
}; })()(input);
|
|
8590
|
-
}
|
|
8591
|
-
case ":event.template?": {
|
|
8592
|
-
return (() => { const _io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && _io2(input.layout)) && (undefined === input.controller || "string" === typeof input.controller); const _io1 = input => true; const _io2 = input => undefined === input.title || "string" === typeof input.title; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
8593
|
-
path: _path + ".mixin",
|
|
8594
|
-
expected: "(Array<string> | undefined)",
|
|
8595
|
-
value: input.mixin
|
|
8596
|
-
})) && input.mixin.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
8597
|
-
path: _path + ".mixin[" + _index2 + "]",
|
|
8598
|
-
expected: "string",
|
|
8599
|
-
value: elem
|
|
8600
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
8601
|
-
path: _path + ".mixin",
|
|
8602
|
-
expected: "(Array<string> | undefined)",
|
|
8603
|
-
value: input.mixin
|
|
8604
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8605
|
-
path: _path + ".properties",
|
|
8606
|
-
expected: "(object | undefined)",
|
|
8607
|
-
value: input.properties
|
|
8608
|
-
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
8609
|
-
path: _path + ".properties",
|
|
8610
|
-
expected: "(object | undefined)",
|
|
8611
|
-
value: input.properties
|
|
8612
|
-
}), undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || _report(_exceptionable, {
|
|
8613
|
-
path: _path + ".layout",
|
|
8614
|
-
expected: "(__type | undefined)",
|
|
8615
|
-
value: input.layout
|
|
8616
|
-
})) && _vo2(input.layout, _path + ".layout", true && _exceptionable) || _report(_exceptionable, {
|
|
8617
|
-
path: _path + ".layout",
|
|
8618
|
-
expected: "(__type | undefined)",
|
|
8619
|
-
value: input.layout
|
|
8620
|
-
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
8621
|
-
path: _path + ".controller",
|
|
8622
|
-
expected: "(string | undefined)",
|
|
8623
|
-
value: input.controller
|
|
8624
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => true; const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
9603
|
+
return true;
|
|
9604
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
8625
9605
|
path: _path + ".title",
|
|
8626
9606
|
expected: "(string | undefined)",
|
|
8627
9607
|
value: input.title
|
|
@@ -9553,6 +10533,48 @@ function _validateDomainRecord(domain, input) {
|
|
|
9553
10533
|
};
|
|
9554
10534
|
}; })()(input);
|
|
9555
10535
|
}
|
|
10536
|
+
case ":file.methods?": {
|
|
10537
|
+
return (() => { const _io0 = input => undefined === input.stop || "object" === typeof input.stop && null !== input.stop && _io1(input.stop); const _io1 = input => "string" === typeof input.rpcId && true; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.stop || ("object" === typeof input.stop && null !== input.stop || _report(_exceptionable, {
|
|
10538
|
+
path: _path + ".stop",
|
|
10539
|
+
expected: "(__type | undefined)",
|
|
10540
|
+
value: input.stop
|
|
10541
|
+
})) && _vo1(input.stop, _path + ".stop", true && _exceptionable) || _report(_exceptionable, {
|
|
10542
|
+
path: _path + ".stop",
|
|
10543
|
+
expected: "(__type | undefined)",
|
|
10544
|
+
value: input.stop
|
|
10545
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.rpcId || _report(_exceptionable, {
|
|
10546
|
+
path: _path + ".rpcId",
|
|
10547
|
+
expected: "string",
|
|
10548
|
+
value: input.rpcId
|
|
10549
|
+
}), true].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
10550
|
+
if (false === __is(input)) {
|
|
10551
|
+
errors = [];
|
|
10552
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
10553
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
10554
|
+
path: _path + "",
|
|
10555
|
+
expected: "FileDomainMethodsRecord",
|
|
10556
|
+
value: input
|
|
10557
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
10558
|
+
path: _path + "",
|
|
10559
|
+
expected: "FileDomainMethodsRecord",
|
|
10560
|
+
value: input
|
|
10561
|
+
}))(input, "$input", true);
|
|
10562
|
+
const success = 0 === errors.length;
|
|
10563
|
+
return success ? {
|
|
10564
|
+
success,
|
|
10565
|
+
data: input
|
|
10566
|
+
} : {
|
|
10567
|
+
success,
|
|
10568
|
+
errors,
|
|
10569
|
+
data: input
|
|
10570
|
+
};
|
|
10571
|
+
}
|
|
10572
|
+
return {
|
|
10573
|
+
success: true,
|
|
10574
|
+
data: input
|
|
10575
|
+
};
|
|
10576
|
+
}; })()(input);
|
|
10577
|
+
}
|
|
9556
10578
|
case ":folder.items": {
|
|
9557
10579
|
return (() => { const _io0 = input => Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.value) || _report(_exceptionable, {
|
|
9558
10580
|
path: _path + ".value",
|
|
@@ -10378,7 +11400,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
10378
11400
|
}; })()(input);
|
|
10379
11401
|
}
|
|
10380
11402
|
case ":media.source": {
|
|
10381
|
-
return (() => { const _io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io3(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io6(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io13(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io14(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io11(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io7(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io2(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io2 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io3 = input => Object.keys(input).every(key => {
|
|
11403
|
+
return (() => { const _io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io3(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io6(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io13(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io14(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io11(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io7(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io2(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io2 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io3 = input => Object.keys(input).every(key => {
|
|
10382
11404
|
const value = input[key];
|
|
10383
11405
|
if (undefined === value)
|
|
10384
11406
|
return true;
|
|
@@ -10515,6 +11537,14 @@ function _validateDomainRecord(domain, input) {
|
|
|
10515
11537
|
path: _path + ".manifest",
|
|
10516
11538
|
expected: "(null | string | undefined)",
|
|
10517
11539
|
value: input.manifest
|
|
11540
|
+
}), undefined === input.timecode || "number" === typeof input.timecode || _report(_exceptionable, {
|
|
11541
|
+
path: _path + ".timecode",
|
|
11542
|
+
expected: "(number | undefined)",
|
|
11543
|
+
value: input.timecode
|
|
11544
|
+
}), undefined === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
11545
|
+
path: _path + ".timezone",
|
|
11546
|
+
expected: "(string | undefined)",
|
|
11547
|
+
value: input.timezone
|
|
10518
11548
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha || _report(_exceptionable, {
|
|
10519
11549
|
path: _path + ".alpha",
|
|
10520
11550
|
expected: "(\"straight\" | boolean | null | undefined)",
|
|
@@ -11165,7 +12195,17 @@ function _validateDomainRecord(domain, input) {
|
|
|
11165
12195
|
if (undefined === value)
|
|
11166
12196
|
return true;
|
|
11167
12197
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value);
|
|
11168
|
-
}); const _io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)); const _io2 = input => "add" === input.op && "string" === typeof input.path && true; const _io3 = input => "remove" === input.op && "string" === typeof input.path; const _io4 = input => "replace" === input.op && "string" === typeof input.path && true; const _io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path; const _io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path; const _io7 = input => "test" === input.op && "string" === typeof input.path && true; const
|
|
12198
|
+
}); const _io1 = input => (undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))) && (undefined === input.speakerLabels || "object" === typeof input.speakerLabels && null !== input.speakerLabels && false === Array.isArray(input.speakerLabels) && _io8(input.speakerLabels)) && (undefined === input.speakerRemaps || "object" === typeof input.speakerRemaps && null !== input.speakerRemaps && false === Array.isArray(input.speakerRemaps) && _io9(input.speakerRemaps)); const _io2 = input => "add" === input.op && "string" === typeof input.path && true; const _io3 = input => "remove" === input.op && "string" === typeof input.path; const _io4 = input => "replace" === input.op && "string" === typeof input.path && true; const _io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path; const _io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path; const _io7 = input => "test" === input.op && "string" === typeof input.path && true; const _io8 = input => Object.keys(input).every(key => {
|
|
12199
|
+
const value = input[key];
|
|
12200
|
+
if (undefined === value)
|
|
12201
|
+
return true;
|
|
12202
|
+
return "string" === typeof value;
|
|
12203
|
+
}); const _io9 = input => Object.keys(input).every(key => {
|
|
12204
|
+
const value = input[key];
|
|
12205
|
+
if (undefined === value)
|
|
12206
|
+
return true;
|
|
12207
|
+
return "string" === typeof value;
|
|
12208
|
+
}); const _iu0 = input => (() => {
|
|
11169
12209
|
if ("add" === input.op)
|
|
11170
12210
|
return _io2(input);
|
|
11171
12211
|
else if ("remove" === input.op)
|
|
@@ -11209,6 +12249,22 @@ function _validateDomainRecord(domain, input) {
|
|
|
11209
12249
|
path: _path + ".patch",
|
|
11210
12250
|
expected: "(Array<Operation> | undefined)",
|
|
11211
12251
|
value: input.patch
|
|
12252
|
+
}), undefined === input.speakerLabels || ("object" === typeof input.speakerLabels && null !== input.speakerLabels && false === Array.isArray(input.speakerLabels) || _report(_exceptionable, {
|
|
12253
|
+
path: _path + ".speakerLabels",
|
|
12254
|
+
expected: "(__type | undefined)",
|
|
12255
|
+
value: input.speakerLabels
|
|
12256
|
+
})) && _vo8(input.speakerLabels, _path + ".speakerLabels", true && _exceptionable) || _report(_exceptionable, {
|
|
12257
|
+
path: _path + ".speakerLabels",
|
|
12258
|
+
expected: "(__type | undefined)",
|
|
12259
|
+
value: input.speakerLabels
|
|
12260
|
+
}), undefined === input.speakerRemaps || ("object" === typeof input.speakerRemaps && null !== input.speakerRemaps && false === Array.isArray(input.speakerRemaps) || _report(_exceptionable, {
|
|
12261
|
+
path: _path + ".speakerRemaps",
|
|
12262
|
+
expected: "(__type.o1 | undefined)",
|
|
12263
|
+
value: input.speakerRemaps
|
|
12264
|
+
})) && _vo9(input.speakerRemaps, _path + ".speakerRemaps", true && _exceptionable) || _report(_exceptionable, {
|
|
12265
|
+
path: _path + ".speakerRemaps",
|
|
12266
|
+
expected: "(__type.o1 | undefined)",
|
|
12267
|
+
value: input.speakerRemaps
|
|
11212
12268
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["add" === input.op || _report(_exceptionable, {
|
|
11213
12269
|
path: _path + ".op",
|
|
11214
12270
|
expected: "\"add\"",
|
|
@@ -11265,7 +12321,25 @@ function _validateDomainRecord(domain, input) {
|
|
|
11265
12321
|
path: _path + ".path",
|
|
11266
12322
|
expected: "string",
|
|
11267
12323
|
value: input.path
|
|
11268
|
-
}), true].every(flag => flag); const
|
|
12324
|
+
}), true].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
12325
|
+
const value = input[key];
|
|
12326
|
+
if (undefined === value)
|
|
12327
|
+
return true;
|
|
12328
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
12329
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
12330
|
+
expected: "string",
|
|
12331
|
+
value: value
|
|
12332
|
+
});
|
|
12333
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
12334
|
+
const value = input[key];
|
|
12335
|
+
if (undefined === value)
|
|
12336
|
+
return true;
|
|
12337
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
12338
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
12339
|
+
expected: "string",
|
|
12340
|
+
value: value
|
|
12341
|
+
});
|
|
12342
|
+
}).every(flag => flag)].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
11269
12343
|
if ("add" === input.op)
|
|
11270
12344
|
return _vo2(input, _path, true && _exceptionable);
|
|
11271
12345
|
else if ("remove" === input.op)
|
|
@@ -11653,7 +12727,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
11653
12727
|
if (undefined === value)
|
|
11654
12728
|
return true;
|
|
11655
12729
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value);
|
|
11656
|
-
}); const _io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io2(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io7(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io14(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io15(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io12(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io8(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io2 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io3(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io3 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io4 = input => Object.keys(input).every(key => {
|
|
12730
|
+
}); const _io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io2(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io7(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io14(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io15(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io12(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io8(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io2 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io3(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io3 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io4 = input => Object.keys(input).every(key => {
|
|
11657
12731
|
const value = input[key];
|
|
11658
12732
|
if (undefined === value)
|
|
11659
12733
|
return true;
|
|
@@ -11803,6 +12877,14 @@ function _validateDomainRecord(domain, input) {
|
|
|
11803
12877
|
path: _path + ".manifest",
|
|
11804
12878
|
expected: "(null | string | undefined)",
|
|
11805
12879
|
value: input.manifest
|
|
12880
|
+
}), undefined === input.timecode || "number" === typeof input.timecode || _report(_exceptionable, {
|
|
12881
|
+
path: _path + ".timecode",
|
|
12882
|
+
expected: "(number | undefined)",
|
|
12883
|
+
value: input.timecode
|
|
12884
|
+
}), undefined === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
12885
|
+
path: _path + ".timezone",
|
|
12886
|
+
expected: "(string | undefined)",
|
|
12887
|
+
value: input.timezone
|
|
11806
12888
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha || _report(_exceptionable, {
|
|
11807
12889
|
path: _path + ".alpha",
|
|
11808
12890
|
expected: "(\"straight\" | boolean | null | undefined)",
|
|
@@ -14506,7 +15588,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
14506
15588
|
}; })()(input);
|
|
14507
15589
|
}
|
|
14508
15590
|
case ":publish": {
|
|
14509
|
-
return (() => { const _io0 = input => (null === input.type || undefined === input.type) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io24(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io25(elem))); const _io1 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io17(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io5(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io8(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io15(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io16(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io13(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io9(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io4(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io4 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io5 = input => Object.keys(input).every(key => {
|
|
15591
|
+
return (() => { const _io0 = input => (null === input.type || undefined === input.type) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io24(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io25(elem))); const _io1 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io17(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io5(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io8(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io15(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io16(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io13(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io9(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io4(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io4 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io5 = input => Object.keys(input).every(key => {
|
|
14510
15592
|
const value = input[key];
|
|
14511
15593
|
if (undefined === value)
|
|
14512
15594
|
return true;
|
|
@@ -14781,6 +15863,14 @@ function _validateDomainRecord(domain, input) {
|
|
|
14781
15863
|
path: _path + ".manifest",
|
|
14782
15864
|
expected: "(null | string | undefined)",
|
|
14783
15865
|
value: input.manifest
|
|
15866
|
+
}), undefined === input.timecode || "number" === typeof input.timecode || _report(_exceptionable, {
|
|
15867
|
+
path: _path + ".timecode",
|
|
15868
|
+
expected: "(number | undefined)",
|
|
15869
|
+
value: input.timecode
|
|
15870
|
+
}), undefined === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
15871
|
+
path: _path + ".timezone",
|
|
15872
|
+
expected: "(string | undefined)",
|
|
15873
|
+
value: input.timezone
|
|
14784
15874
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha || _report(_exceptionable, {
|
|
14785
15875
|
path: _path + ".alpha",
|
|
14786
15876
|
expected: "(\"straight\" | boolean | null | undefined)",
|
|
@@ -16154,7 +17244,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
16154
17244
|
if (undefined === value)
|
|
16155
17245
|
return true;
|
|
16156
17246
|
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _iu0(value));
|
|
16157
|
-
}); const _io8 = input => (undefined === input.name || "string" === typeof input.name) && "string" === typeof input.path && (undefined === input.collisionStrategy || "overwrite" === input.collisionStrategy || "skip" === input.collisionStrategy) && (undefined === input.ignoreEmptyScene || "boolean" === typeof input.ignoreEmptyScene) && (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io9(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io24(input.profile)); const _io9 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io10(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io12(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io15(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io22(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io23(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io20(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io16(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io10 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io11(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io11 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io12 = input => Object.keys(input).every(key => {
|
|
17247
|
+
}); const _io8 = input => (undefined === input.name || "string" === typeof input.name) && "string" === typeof input.path && (undefined === input.collisionStrategy || "overwrite" === input.collisionStrategy || "skip" === input.collisionStrategy) && (undefined === input.ignoreEmptyScene || "boolean" === typeof input.ignoreEmptyScene) && (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io9(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io24(input.profile)); const _io9 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io10(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io12(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io15(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io22(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io23(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io20(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io16(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io10 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io11(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io11 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io12 = input => Object.keys(input).every(key => {
|
|
16158
17248
|
const value = input[key];
|
|
16159
17249
|
if (undefined === value)
|
|
16160
17250
|
return true;
|
|
@@ -16505,6 +17595,14 @@ function _validateDomainRecord(domain, input) {
|
|
|
16505
17595
|
path: _path + ".manifest",
|
|
16506
17596
|
expected: "(null | string | undefined)",
|
|
16507
17597
|
value: input.manifest
|
|
17598
|
+
}), undefined === input.timecode || "number" === typeof input.timecode || _report(_exceptionable, {
|
|
17599
|
+
path: _path + ".timecode",
|
|
17600
|
+
expected: "(number | undefined)",
|
|
17601
|
+
value: input.timecode
|
|
17602
|
+
}), undefined === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
17603
|
+
path: _path + ".timezone",
|
|
17604
|
+
expected: "(string | undefined)",
|
|
17605
|
+
value: input.timezone
|
|
16508
17606
|
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha || _report(_exceptionable, {
|
|
16509
17607
|
path: _path + ".alpha",
|
|
16510
17608
|
expected: "(\"straight\" | boolean | null | undefined)",
|
|
@@ -17586,7 +18684,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
17586
18684
|
}; })()(input);
|
|
17587
18685
|
}
|
|
17588
18686
|
case ":render.stats?": {
|
|
17589
|
-
return (() => { const _io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (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))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation) && (null === input.cpuCompute || undefined === input.cpuCompute || "number" === typeof input.cpuCompute) && (null === input.cpuComputeLimit || undefined === input.cpuComputeLimit || "number" === typeof input.cpuComputeLimit) && (null === input.cpuComputeTotal || undefined === input.cpuComputeTotal || "number" === typeof input.cpuComputeTotal) && (null === input.cpuComputeValue || undefined === input.cpuComputeValue || "number" === typeof input.cpuComputeValue) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation) && (null === input.cpuMemory || undefined === input.cpuMemory || "number" === typeof input.cpuMemory) && (null === input.cpuMemoryLimit || undefined === input.cpuMemoryLimit || "number" === typeof input.cpuMemoryLimit) && (null === input.cpuMemoryValue || undefined === input.cpuMemoryValue || "number" === typeof input.cpuMemoryValue) && (null === input.cpuMemoryTotal || undefined === input.cpuMemoryTotal || "number" === typeof input.cpuMemoryTotal) && (null === input.gpuType || undefined === input.gpuType || "string" === typeof input.gpuType) && (null === input.gpuAvailable || undefined === input.gpuAvailable || "boolean" === typeof input.gpuAvailable) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation) && (null === input.gpuCompute || undefined === input.gpuCompute || "number" === typeof input.gpuCompute) && (null === input.gpuComputeLimit || undefined === input.gpuComputeLimit || "number" === typeof input.gpuComputeLimit) && (null === input.gpuComputeValue || undefined === input.gpuComputeValue || "number" === typeof input.gpuComputeValue) && (null === input.gpuComputeTotal || undefined === input.gpuComputeTotal || "number" === typeof input.gpuComputeTotal) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation) && (null === input.gpuMemory || undefined === input.gpuMemory || "number" === typeof input.gpuMemory) && (null === input.gpuMemoryLimit || undefined === input.gpuMemoryLimit || "number" === typeof input.gpuMemoryLimit) && (null === input.gpuMemoryValue || undefined === input.gpuMemoryValue || "number" === typeof input.gpuMemoryValue) && (null === input.gpuMemoryTotal || undefined === input.gpuMemoryTotal || "number" === typeof input.gpuMemoryTotal) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation) && (null === input.gpuQueueLimit || undefined === input.gpuQueueLimit || "number" === typeof input.gpuQueueLimit) && (null === input.gpuQueueValue || undefined === input.gpuQueueValue || "number" === typeof input.gpuQueueValue) && (null === input.gpuQueueTotal || undefined === input.gpuQueueTotal || "number" === typeof input.gpuQueueTotal) && (null === input.gpuEncoder || undefined === input.gpuEncoder || "number" === typeof input.gpuEncoder) && (null === input.gpuEncoderLimit || undefined === input.gpuEncoderLimit || "number" === typeof input.gpuEncoderLimit) && (null === input.gpuEncoderValue || undefined === input.gpuEncoderValue || "number" === typeof input.gpuEncoderValue) && (null === input.gpuEncoderTotal || undefined === input.gpuEncoderTotal || "number" === typeof input.gpuEncoderTotal) && (null === input.gpuDecoder || undefined === input.gpuDecoder || "number" === typeof input.gpuDecoder) && (null === input.gpuDecoderLimit || undefined === input.gpuDecoderLimit || "number" === typeof input.gpuDecoderLimit) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal) && (null === input.netAvailable || undefined === input.netAvailable || "boolean" === typeof input.netAvailable) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation) && (null === input.netTransfer || undefined === input.netTransfer || "number" === typeof input.netTransfer) && (null === input.netTransferLimit || undefined === input.netTransferLimit || "number" === typeof input.netTransferLimit) && (null === input.netTransferValue || undefined === input.netTransferValue || "number" === typeof input.netTransferValue) && (null === input.netTransferTotal || undefined === input.netTransferTotal || "number" === typeof input.netTransferTotal) && (null === input.cpu || undefined === input.cpu || "number" === typeof input.cpu) && (null === input.memory || undefined === input.memory || "number" === typeof input.memory) && (null === input.activeCount || undefined === input.activeCount || "number" === typeof input.activeCount) && (null === input.totalCount || undefined === input.totalCount || "number" === typeof input.totalCount) && (null === input.gpuStat || undefined === input.gpuStat || "object" === typeof input.gpuStat && null !== input.gpuStat && false === Array.isArray(input.gpuStat) && _io2(input.gpuStat)) && (null === input.cpuStat || undefined === input.cpuStat || "object" === typeof input.cpuStat && null !== input.cpuStat && _io3(input.cpuStat)) && (null === input.netStat || undefined === input.netStat || "object" === typeof input.netStat && null !== input.netStat && _io8(input.netStat)) && true && (undefined === input.taskset || "string" === typeof input.taskset) && (null === input.end || undefined === input.end || "number" === typeof input.end); const _io1 = input => Object.keys(input).every(key => {
|
|
18687
|
+
return (() => { const _io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (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))) && (null === input.status || undefined === input.status || "string" === typeof input.status || Array.isArray(input.status) && input.status.every(elem => "string" === typeof elem)) && (null === input.lag || undefined === input.lag || "number" === typeof input.lag) && (null === input.available || undefined === input.available || "boolean" === typeof input.available) && (null === input.toobusy || undefined === input.toobusy || "boolean" === typeof input.toobusy) && (null === input.cpuAvailable || undefined === input.cpuAvailable || "boolean" === typeof input.cpuAvailable) && (null === input.cpuComputeAvailable || undefined === input.cpuComputeAvailable || "number" === typeof input.cpuComputeAvailable) && (null === input.cpuComputeReservation || undefined === input.cpuComputeReservation || "number" === typeof input.cpuComputeReservation) && (null === input.cpuCompute || undefined === input.cpuCompute || "number" === typeof input.cpuCompute) && (null === input.cpuComputeLimit || undefined === input.cpuComputeLimit || "number" === typeof input.cpuComputeLimit) && (null === input.cpuComputeTotal || undefined === input.cpuComputeTotal || "number" === typeof input.cpuComputeTotal) && (null === input.cpuComputeValue || undefined === input.cpuComputeValue || "number" === typeof input.cpuComputeValue) && (null === input.cpuMemoryAvailable || undefined === input.cpuMemoryAvailable || "number" === typeof input.cpuMemoryAvailable) && (null === input.cpuMemoryReservation || undefined === input.cpuMemoryReservation || "number" === typeof input.cpuMemoryReservation) && (null === input.cpuMemory || undefined === input.cpuMemory || "number" === typeof input.cpuMemory) && (null === input.cpuMemoryLimit || undefined === input.cpuMemoryLimit || "number" === typeof input.cpuMemoryLimit) && (null === input.cpuMemoryValue || undefined === input.cpuMemoryValue || "number" === typeof input.cpuMemoryValue) && (null === input.cpuMemoryTotal || undefined === input.cpuMemoryTotal || "number" === typeof input.cpuMemoryTotal) && (null === input.gpuType || undefined === input.gpuType || "string" === typeof input.gpuType) && (null === input.gpuAvailable || undefined === input.gpuAvailable || "boolean" === typeof input.gpuAvailable) && (null === input.gpuComputeAvailable || undefined === input.gpuComputeAvailable || "number" === typeof input.gpuComputeAvailable) && (null === input.gpuComputeReservation || undefined === input.gpuComputeReservation || "number" === typeof input.gpuComputeReservation) && (null === input.gpuCompute || undefined === input.gpuCompute || "number" === typeof input.gpuCompute) && (null === input.gpuComputeLimit || undefined === input.gpuComputeLimit || "number" === typeof input.gpuComputeLimit) && (null === input.gpuComputeValue || undefined === input.gpuComputeValue || "number" === typeof input.gpuComputeValue) && (null === input.gpuComputeTotal || undefined === input.gpuComputeTotal || "number" === typeof input.gpuComputeTotal) && (null === input.gpuMemoryAvailable || undefined === input.gpuMemoryAvailable || "number" === typeof input.gpuMemoryAvailable) && (null === input.gpuMemoryReservation || undefined === input.gpuMemoryReservation || "number" === typeof input.gpuMemoryReservation) && (null === input.gpuMemory || undefined === input.gpuMemory || "number" === typeof input.gpuMemory) && (null === input.gpuMemoryLimit || undefined === input.gpuMemoryLimit || "number" === typeof input.gpuMemoryLimit) && (null === input.gpuMemoryValue || undefined === input.gpuMemoryValue || "number" === typeof input.gpuMemoryValue) && (null === input.gpuMemoryTotal || undefined === input.gpuMemoryTotal || "number" === typeof input.gpuMemoryTotal) && (null === input.gpuQueueAvailable || undefined === input.gpuQueueAvailable || "number" === typeof input.gpuQueueAvailable) && (null === input.gpuQueueReservation || undefined === input.gpuQueueReservation || "number" === typeof input.gpuQueueReservation) && (null === input.gpuQueueLimit || undefined === input.gpuQueueLimit || "number" === typeof input.gpuQueueLimit) && (null === input.gpuQueueValue || undefined === input.gpuQueueValue || "number" === typeof input.gpuQueueValue) && (null === input.gpuQueueTotal || undefined === input.gpuQueueTotal || "number" === typeof input.gpuQueueTotal) && (null === input.gpuEncoder || undefined === input.gpuEncoder || "number" === typeof input.gpuEncoder) && (null === input.gpuEncoderLimit || undefined === input.gpuEncoderLimit || "number" === typeof input.gpuEncoderLimit) && (null === input.gpuEncoderValue || undefined === input.gpuEncoderValue || "number" === typeof input.gpuEncoderValue) && (null === input.gpuEncoderTotal || undefined === input.gpuEncoderTotal || "number" === typeof input.gpuEncoderTotal) && (null === input.gpuDecoder || undefined === input.gpuDecoder || "number" === typeof input.gpuDecoder) && (null === input.gpuDecoderLimit || undefined === input.gpuDecoderLimit || "number" === typeof input.gpuDecoderLimit) && (null === input.gpuDecoderValue || undefined === input.gpuDecoderValue || "number" === typeof input.gpuDecoderValue) && (null === input.gpuDecoderTotal || undefined === input.gpuDecoderTotal || "number" === typeof input.gpuDecoderTotal) && (null === input.netAvailable || undefined === input.netAvailable || "boolean" === typeof input.netAvailable) && (null === input.netTransferAvailable || undefined === input.netTransferAvailable || "number" === typeof input.netTransferAvailable) && (null === input.netTransferReservation || undefined === input.netTransferReservation || "number" === typeof input.netTransferReservation) && (null === input.netTransfer || undefined === input.netTransfer || "number" === typeof input.netTransfer) && (null === input.netTransferLimit || undefined === input.netTransferLimit || "number" === typeof input.netTransferLimit) && (null === input.netTransferValue || undefined === input.netTransferValue || "number" === typeof input.netTransferValue) && (null === input.netTransferTotal || undefined === input.netTransferTotal || "number" === typeof input.netTransferTotal) && (null === input.cpu || undefined === input.cpu || "number" === typeof input.cpu) && (null === input.memory || undefined === input.memory || "number" === typeof input.memory) && (null === input.activeCount || undefined === input.activeCount || "number" === typeof input.activeCount) && (null === input.totalCount || undefined === input.totalCount || "number" === typeof input.totalCount) && (null === input.gpuStat || undefined === input.gpuStat || "object" === typeof input.gpuStat && null !== input.gpuStat && false === Array.isArray(input.gpuStat) && _io2(input.gpuStat)) && (null === input.cpuStat || undefined === input.cpuStat || "object" === typeof input.cpuStat && null !== input.cpuStat && _io3(input.cpuStat)) && (null === input.netStat || undefined === input.netStat || "object" === typeof input.netStat && null !== input.netStat && _io8(input.netStat)) && true && (undefined === input.taskset || "string" === typeof input.taskset) && (null === input.end || undefined === input.end || "number" === typeof input.end) && (null === input.duration || undefined === input.duration || "number" === typeof input.duration); const _io1 = input => Object.keys(input).every(key => {
|
|
17590
18688
|
const value = input[key];
|
|
17591
18689
|
if (undefined === value)
|
|
17592
18690
|
return true;
|
|
@@ -17881,6 +18979,10 @@ function _validateDomainRecord(domain, input) {
|
|
|
17881
18979
|
path: _path + ".end",
|
|
17882
18980
|
expected: "(null | number | undefined)",
|
|
17883
18981
|
value: input.end
|
|
18982
|
+
}), null === input.duration || undefined === input.duration || "number" === typeof input.duration || _report(_exceptionable, {
|
|
18983
|
+
path: _path + ".duration",
|
|
18984
|
+
expected: "(null | number | undefined)",
|
|
18985
|
+
value: input.duration
|
|
17884
18986
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
17885
18987
|
const value = input[key];
|
|
17886
18988
|
if (undefined === value)
|
|
@@ -17998,7 +19100,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
17998
19100
|
}; })()(input);
|
|
17999
19101
|
}
|
|
18000
19102
|
case ":render.query?": {
|
|
18001
|
-
return (() => { const _io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && _io1(input.description)); const _io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && _io17(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io5(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io8(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io15(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io16(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io13(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io9(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io4(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io4 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io5 = input => Object.keys(input).every(key => {
|
|
19103
|
+
return (() => { const _io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && _io1(input.description)); const _io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && _io17(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io5(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io8(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io15(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io16(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io13(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io9(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io4(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io4 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io5 = input => Object.keys(input).every(key => {
|
|
18002
19104
|
const value = input[key];
|
|
18003
19105
|
if (undefined === value)
|
|
18004
19106
|
return true;
|
|
@@ -18171,6 +19273,14 @@ function _validateDomainRecord(domain, input) {
|
|
|
18171
19273
|
path: _path + ".manifest",
|
|
18172
19274
|
expected: "(null | string | undefined)",
|
|
18173
19275
|
value: input.manifest
|
|
19276
|
+
}), undefined === input.timecode || "number" === typeof input.timecode || _report(_exceptionable, {
|
|
19277
|
+
path: _path + ".timecode",
|
|
19278
|
+
expected: "(number | undefined)",
|
|
19279
|
+
value: input.timecode
|
|
19280
|
+
}), undefined === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
19281
|
+
path: _path + ".timezone",
|
|
19282
|
+
expected: "(string | undefined)",
|
|
19283
|
+
value: input.timezone
|
|
18174
19284
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha || _report(_exceptionable, {
|
|
18175
19285
|
path: _path + ".alpha",
|
|
18176
19286
|
expected: "(\"straight\" | boolean | null | undefined)",
|
|
@@ -18634,7 +19744,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
18634
19744
|
}; })()(input);
|
|
18635
19745
|
}
|
|
18636
19746
|
case ":render.result?": {
|
|
18637
|
-
return (() => { const _io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem)) && (undefined === input.refs || Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem))) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && _io2(input.error))) && (undefined === input.extension || "string" === typeof input.extension) && (undefined === input.extensions || Array.isArray(input.extensions) && input.extensions.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.formatName || "string" === typeof input.formatName) && (undefined === input.mimeType || "string" === typeof input.mimeType) && (undefined === input.duration || "number" === typeof input.duration) && (null === input.estimatedDuration || undefined === input.estimatedDuration || "number" === typeof input.estimatedDuration) && (null === input.video || undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io3(input.video)) && (null === input.audio || undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io4(input.audio)) && (undefined === input.language || "string" === typeof input.language) && (null === input.transcribe || undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io5(input.transcribe)) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)) && (null === input.translate || undefined === input.translate || "object" === typeof input.translate && null !== input.translate && false === Array.isArray(input.translate) && _io6(input.translate)); const _io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (null === input.start || undefined === input.start || "number" === typeof input.start) && (null === input.end || undefined === input.end || "number" === typeof input.end); const _io2 = input => Object.keys(input).every(key => {
|
|
19747
|
+
return (() => { const _io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem)) && (undefined === input.refs || Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem))) && (null === input.timecode || undefined === input.timecode || "number" === typeof input.timecode) && (null === input.live || undefined === input.live || "boolean" === typeof input.live) && true && (null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem)) || "object" === typeof input.error && null !== input.error && false === Array.isArray(input.error) && _io2(input.error))) && (undefined === input.extension || "string" === typeof input.extension) && (undefined === input.extensions || Array.isArray(input.extensions) && input.extensions.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.formatName || "string" === typeof input.formatName) && (undefined === input.mimeType || "string" === typeof input.mimeType) && (undefined === input.duration || "number" === typeof input.duration) && (null === input.estimatedDuration || undefined === input.estimatedDuration || "number" === typeof input.estimatedDuration) && (null === input.video || undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io3(input.video)) && (null === input.audio || undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io4(input.audio)) && (undefined === input.language || "string" === typeof input.language) && (null === input.transcribe || undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io5(input.transcribe)) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)) && (null === input.translate || undefined === input.translate || "object" === typeof input.translate && null !== input.translate && false === Array.isArray(input.translate) && _io6(input.translate)); const _io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (null === input.start || undefined === input.start || "number" === typeof input.start) && (null === input.end || undefined === input.end || "number" === typeof input.end); const _io2 = input => Object.keys(input).every(key => {
|
|
18638
19748
|
const value = input[key];
|
|
18639
19749
|
if (undefined === value)
|
|
18640
19750
|
return true;
|
|
@@ -18675,6 +19785,14 @@ function _validateDomainRecord(domain, input) {
|
|
|
18675
19785
|
path: _path + ".refs",
|
|
18676
19786
|
expected: "(Array<__type> | undefined)",
|
|
18677
19787
|
value: input.refs
|
|
19788
|
+
}), null === input.timecode || undefined === input.timecode || "number" === typeof input.timecode || _report(_exceptionable, {
|
|
19789
|
+
path: _path + ".timecode",
|
|
19790
|
+
expected: "(null | number | undefined)",
|
|
19791
|
+
value: input.timecode
|
|
19792
|
+
}), null === input.live || undefined === input.live || "boolean" === typeof input.live || _report(_exceptionable, {
|
|
19793
|
+
path: _path + ".live",
|
|
19794
|
+
expected: "(boolean | null | undefined)",
|
|
19795
|
+
value: input.live
|
|
18678
19796
|
}), true, null === input.error || undefined === input.error || (Array.isArray(input.error) && input.error.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
18679
19797
|
path: _path + ".error[" + _index8 + "]",
|
|
18680
19798
|
expected: "Record<string, unknown>",
|
|
@@ -21090,7 +22208,7 @@ function _validateDomainRecord(domain, input) {
|
|
|
21090
22208
|
if (undefined === value)
|
|
21091
22209
|
return true;
|
|
21092
22210
|
return true;
|
|
21093
|
-
}); const _io37 = input => (undefined === input.volume || "number" === typeof input.volume) && (undefined === input.muted || "boolean" === typeof input.muted) && (undefined === input.graphics || "boolean" === typeof input.graphics) && (undefined === input.waveform || "boolean" === typeof input.waveform) && (undefined === input.defaultFrameRate || "number" === typeof input.defaultFrameRate) && (undefined === input.dropFrame || "boolean" === typeof input.dropFrame) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.warnSubclipDuration || "number" === typeof input.warnSubclipDuration) && (undefined === input.displayAspectRatioPresets || Array.isArray(input.displayAspectRatioPresets) && input.displayAspectRatioPresets.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io38(elem))) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && _io39(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && _io40(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && _io41(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io44(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.editMode || "object" === typeof input.editMode && null !== input.editMode && false === Array.isArray(input.editMode) && _io45(input.editMode)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io46(input.transcribe)) && (null !== input.openCommand && (undefined === input.openCommand || "string" === typeof input.openCommand || "object" === typeof input.openCommand && null !== input.openCommand && false === Array.isArray(input.openCommand) && _io50(input.openCommand))) && (undefined === input.recorder || "object" === typeof input.recorder && null !== input.recorder && false === Array.isArray(input.recorder) && _io51(input.recorder)); const _io38 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.value || "string" === typeof input.value); const _io39 = input => (undefined === input.mask || "boolean" === typeof input.mask) && (undefined === input.actionSafe || "boolean" === typeof input.actionSafe) && (undefined === input.titleSafe || "boolean" === typeof input.titleSafe); const _io40 = input => (undefined === input.preview || "disabled" === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress); const _io41 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine) && (undefined === input.suggestions || Array.isArray(input.suggestions) && input.suggestions.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io42(elem))) && (undefined === input.colors || Array.isArray(input.colors) && input.colors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io43(elem))) && (undefined === input.overridableProperties || Array.isArray(input.overridableProperties) && input.overridableProperties.every(elem => null === elem || true === _iv29.has(elem))) && (undefined === input.previewResolutionScale || "number" === typeof input.previewResolutionScale); const _io42 = input => (null === input.ifAspectRatio || undefined === input.ifAspectRatio || "string" === typeof input.ifAspectRatio) && (null === input.ifLang || undefined === input.ifLang || "string" === typeof input.ifLang) && (null === input.thenStyle || undefined === input.thenStyle || "string" === typeof input.thenStyle) && (null === input.thenMaxCharactersPerLine || undefined === input.thenMaxCharactersPerLine || "number" === typeof input.thenMaxCharactersPerLine); const _io43 = input => (null === input.label || undefined === input.label || "string" === typeof input.label) && (null === input.color || undefined === input.color || "string" === typeof input.color); const _io44 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.aspectRatio || "string" === typeof input.aspectRatio); const _io45 = input => (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.defaultEnterOption || "edit" === input.defaultEnterOption || "createNew" === input.defaultEnterOption || "none" === input.defaultEnterOption) && (undefined === input.defaultExitOption || "none" === input.defaultExitOption || "update" === input.defaultExitOption || "leave" === input.defaultExitOption); const _io46 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io47(input.subtitleDisclaimer); const _io47 = input => (undefined === input.isUserConfigurable || "boolean" === typeof input.isUserConfigurable) && (undefined === input.defaultValue || "object" === typeof input.defaultValue && null !== input.defaultValue && false === Array.isArray(input.defaultValue) && _io48(input.defaultValue)); const _io48 = input => (undefined === input.enabled || false === input.enabled) && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io49(elem))) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.duration || "number" === typeof input.duration); const _io49 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.value || "string" === typeof input.value); const _io50 = input => (undefined === input.url || "string" === typeof input.url) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.app || "string" === typeof input.app) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io51 = input => (undefined === input.microphone || "object" === typeof input.microphone && null !== input.microphone && false === Array.isArray(input.microphone) && _io52(input.microphone)) && (undefined === input.webcam || "object" === typeof input.webcam && null !== input.webcam && false === Array.isArray(input.webcam) && _io53(input.webcam)) && (undefined === input.countdown || "number" === typeof input.countdown); const _io52 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput); const _io53 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.frameRate || "number" === typeof input.frameRate) && (undefined === input.aspectRatio || "number" === typeof input.aspectRatio); const _io54 = input => (undefined === input.thumbnailView || "none" === input.thumbnailView || "filmStrip" === input.thumbnailView || "thumbnail" === input.thumbnailView) && (undefined === input.audioMapping || "object" === typeof input.audioMapping && null !== input.audioMapping && false === Array.isArray(input.audioMapping) && _io55(input.audioMapping)) && (undefined === input.normalize || "object" === typeof input.normalize && null !== input.normalize && false === Array.isArray(input.normalize) && _io57(input.normalize)) && (undefined === input.voiceOver || "object" === typeof input.voiceOver && null !== input.voiceOver && false === Array.isArray(input.voiceOver) && _io59(input.voiceOver)); const _io55 = input => undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io56(elem)); const _io56 = input => "string" === typeof input.id && "string" === typeof input.title && (undefined === input.mapping || Array.isArray(input.mapping) && input.mapping.every(elem => Array.isArray(elem) && elem.every(elem => "number" === typeof elem))) && (undefined === input.mute || Array.isArray(input.mute) && input.mute.every(elem => "boolean" === typeof elem)) && (undefined === input.minInChannels || "number" === typeof input.minInChannels) && (undefined === input.maxInChannels || "number" === typeof input.maxInChannels) && (undefined === input.minOutChannels || "number" === typeof input.minOutChannels) && (undefined === input.maxOutChannels || "number" === typeof input.maxOutChannels); const _io57 = input => (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io58(elem))) && (undefined === input.defaultPresetId || "string" === typeof input.defaultPresetId); const _io58 = input => "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.i && "number" === typeof input.tp; const _io59 = input => (undefined === input.inputDevice || "string" === typeof input.inputDevice) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput) && (undefined === input.backgroundReductionDb || "number" === typeof input.backgroundReductionDb) && (undefined === input.recordMode || "instant" === input.recordMode || "punchAndRoll" === input.recordMode) && (undefined === input.preRollDuration || "number" === typeof input.preRollDuration); const _io60 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io61 = input => (undefined === input.folded || "object" === typeof input.folded && null !== input.folded && false === Array.isArray(input.folded) && _io62(input.folded)) && (undefined === input.assets || "object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && _io63(input.assets)) && (undefined === input.pipeline || "object" === typeof input.pipeline && null !== input.pipeline && false === Array.isArray(input.pipeline) && _io67(input.pipeline)) && (undefined === input.item || "object" === typeof input.item && null !== input.item && false === Array.isArray(input.item) && _io69(input.item)); const _io62 = input => undefined === input.auto || "boolean" === typeof input.auto; const _io63 = input => (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io64(input.story)) && (undefined === input.note || "object" === typeof input.note && null !== input.note && false === Array.isArray(input.note) && _io66(input.note)); const _io64 = input => undefined === input.excerpt || "object" === typeof input.excerpt && null !== input.excerpt && false === Array.isArray(input.excerpt) && _io65(input.excerpt); const _io65 = input => (undefined === input.maxLines || "number" === typeof input.maxLines) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.comments || "boolean" === typeof input.comments); const _io66 = input => undefined === input.maxHeight || "number" === typeof input.maxHeight; const _io67 = input => (undefined === input.search || "object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) && _io68(input.search)) && (undefined === input.sortMode || true === _iv38.has(input.sortMode)); const _io68 = input => undefined === input.maxItemsDisplayed || "number" === typeof input.maxItemsDisplayed; const _io69 = input => (undefined === input.maxHeight || "number" === typeof input.maxHeight) && (undefined === input.titleLines || "number" === typeof input.titleLines); const _io70 = input => (undefined === input.fontFamilies || Array.isArray(input.fontFamilies) && input.fontFamilies.every(elem => "string" === typeof elem)) && (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io71 = input => "script" === input.type && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "event-data" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)); const _io72 = input => "rundown" === input.type && (Array.isArray(input.columns) && input.columns.every(elem => "object" === typeof elem && null !== elem && _io73(elem))) && (undefined === input.rangeStart || "number" === typeof input.rangeStart) && (undefined === input.rangeEnd || "number" === typeof input.rangeEnd) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)) && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily); const _io73 = input => ("type" === input.key || "title" === input.key || "id" === input.key || "time" === input.key || "duration" === input.key || "position" === input.key || "accDuration" === input.key) && "string" === typeof input.label && "string" === typeof input.width && ("right" === input.textAlign || "left" === input.textAlign || "center" === input.textAlign); const _io74 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.folded || "boolean" === typeof input.folded); const _io75 = input => (undefined === input.adobe || "object" === typeof input.adobe && null !== input.adobe && false === Array.isArray(input.adobe) && _io76(input.adobe)) && (undefined === input.ograf || "object" === typeof input.ograf && null !== input.ograf && false === Array.isArray(input.ograf) && _io78(input.ograf)) && (undefined === input.rive || "object" === typeof input.rive && null !== input.rive && false === Array.isArray(input.rive) && _io79(input.rive)); const _io76 = input => (undefined === input.videoBin || "string" === typeof input.videoBin) && (undefined === input.imageBin || "string" === typeof input.imageBin) && (undefined === input.audioBin || "string" === typeof input.audioBin) && (undefined === input.timelineBin || "string" === typeof input.timelineBin) && (undefined === input.clipBin || "string" === typeof input.clipBin) && (undefined === input.downloadPath || "string" === typeof input.downloadPath) && (undefined === input.renderPath || "string" === typeof input.renderPath) && (undefined === input.renderPresetPath || "string" === typeof input.renderPresetPath) && (undefined === input.renderPresets || Array.isArray(input.renderPresets) && input.renderPresets.every(elem => "string" === typeof elem)) && (undefined === input.videoRenderPreset || "string" === typeof input.videoRenderPreset) && (undefined === input.imageRenderPreset || "string" === typeof input.imageRenderPreset) && (undefined === input.audioRenderPreset || "string" === typeof input.audioRenderPreset) && (undefined === input.forceRender || "boolean" === typeof input.forceRender) && (undefined === input.useProxies || "boolean" === typeof input.useProxies) && (undefined === input.deleteIntermediateFiles || "boolean" === typeof input.deleteIntermediateFiles) && (undefined === input.bodymovin || "object" === typeof input.bodymovin && null !== input.bodymovin && false === Array.isArray(input.bodymovin) && _io77(input.bodymovin)); const _io77 = input => undefined === input.template || "string" === typeof input.template; const _io78 = input => undefined === input.template || "string" === typeof input.template; const _io79 = input => undefined === input.template || "string" === typeof input.template; const _io80 = input => (undefined === input.collections || "boolean" === typeof input.collections) && (undefined === input.aiMetadata || "boolean" === typeof input.aiMetadata) && (undefined === input.semanticSearch || "boolean" === typeof input.semanticSearch) && (undefined === input.ameRemoteRendering || "boolean" === typeof input.ameRemoteRendering); const _io81 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.utilsAssetEditor || "boolean" === typeof input.utilsAssetEditor) && (undefined === input.utilsAssetPanel || "boolean" === typeof input.utilsAssetPanel) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.downloadFiles || "boolean" === typeof input.downloadFiles) && (undefined === input.supportPortal || "boolean" === typeof input.supportPortal) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets) && (undefined === input.systemHealth || "boolean" === typeof input.systemHealth) && (undefined === input.systemHealthIgnore || "boolean" === typeof input.systemHealthIgnore); const _io82 = input => undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io83(input.events); const _io83 = input => (undefined === input.comment || Array.isArray(input.comment) && input.comment.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.assigned || Array.isArray(input.assigned) && input.assigned.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.unassigned || Array.isArray(input.unassigned) && input.unassigned.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.publishSucceeded || "object" === typeof input.publishSucceeded && null !== input.publishSucceeded && false === Array.isArray(input.publishSucceeded) && _io84(input.publishSucceeded)); const _io84 = input => Object.keys(input).every(key => {
|
|
22211
|
+
}); const _io37 = input => (undefined === input.volume || "number" === typeof input.volume) && (undefined === input.muted || "boolean" === typeof input.muted) && (undefined === input.graphics || "boolean" === typeof input.graphics) && (null === input.subtitle || undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.waveform || "boolean" === typeof input.waveform) && (undefined === input.defaultFrameRate || "number" === typeof input.defaultFrameRate) && (undefined === input.dropFrame || "boolean" === typeof input.dropFrame) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.warnSubclipDuration || "number" === typeof input.warnSubclipDuration) && (undefined === input.displayAspectRatioPresets || Array.isArray(input.displayAspectRatioPresets) && input.displayAspectRatioPresets.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io38(elem))) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && _io39(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && _io40(input.tile)) && (undefined === input.showTimeCode || "boolean" === typeof input.showTimeCode) && (undefined === input.timecodeReference || "default" === input.timecodeReference || "subclip" === input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && _io41(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io44(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.editMode || "object" === typeof input.editMode && null !== input.editMode && false === Array.isArray(input.editMode) && _io45(input.editMode)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io46(input.transcribe)) && (null !== input.openCommand && (undefined === input.openCommand || "string" === typeof input.openCommand || "object" === typeof input.openCommand && null !== input.openCommand && false === Array.isArray(input.openCommand) && _io50(input.openCommand))) && (undefined === input.recorder || "object" === typeof input.recorder && null !== input.recorder && false === Array.isArray(input.recorder) && _io51(input.recorder)); const _io38 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.value || "string" === typeof input.value); const _io39 = input => (undefined === input.mask || "boolean" === typeof input.mask) && (undefined === input.actionSafe || "boolean" === typeof input.actionSafe) && (undefined === input.titleSafe || "boolean" === typeof input.titleSafe); const _io40 = input => (undefined === input.preview || "disabled" === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress); const _io41 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine) && (undefined === input.suggestions || Array.isArray(input.suggestions) && input.suggestions.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io42(elem))) && (undefined === input.colors || Array.isArray(input.colors) && input.colors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io43(elem))) && (undefined === input.overridableProperties || Array.isArray(input.overridableProperties) && input.overridableProperties.every(elem => null === elem || true === _iv29.has(elem))) && (undefined === input.previewResolutionScale || "number" === typeof input.previewResolutionScale); const _io42 = input => (null === input.ifAspectRatio || undefined === input.ifAspectRatio || "string" === typeof input.ifAspectRatio) && (null === input.ifLang || undefined === input.ifLang || "string" === typeof input.ifLang) && (null === input.thenStyle || undefined === input.thenStyle || "string" === typeof input.thenStyle) && (null === input.thenMaxCharactersPerLine || undefined === input.thenMaxCharactersPerLine || "number" === typeof input.thenMaxCharactersPerLine); const _io43 = input => (null === input.label || undefined === input.label || "string" === typeof input.label) && (null === input.color || undefined === input.color || "string" === typeof input.color); const _io44 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.aspectRatio || "string" === typeof input.aspectRatio); const _io45 = input => (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.defaultEnterOption || "edit" === input.defaultEnterOption || "createNew" === input.defaultEnterOption || "none" === input.defaultEnterOption) && (undefined === input.defaultExitOption || "none" === input.defaultExitOption || "update" === input.defaultExitOption || "leave" === input.defaultExitOption); const _io46 = input => (undefined === input.showSpeakers || "boolean" === typeof input.showSpeakers) && (undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io47(input.subtitleDisclaimer)); const _io47 = input => (undefined === input.isUserConfigurable || "boolean" === typeof input.isUserConfigurable) && (undefined === input.defaultValue || "object" === typeof input.defaultValue && null !== input.defaultValue && false === Array.isArray(input.defaultValue) && _io48(input.defaultValue)); const _io48 = input => (undefined === input.enabled || false === input.enabled) && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io49(elem))) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.duration || "number" === typeof input.duration); const _io49 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.value || "string" === typeof input.value); const _io50 = input => (undefined === input.url || "string" === typeof input.url) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.app || "string" === typeof input.app) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io51 = input => (undefined === input.microphone || "object" === typeof input.microphone && null !== input.microphone && false === Array.isArray(input.microphone) && _io52(input.microphone)) && (undefined === input.webcam || "object" === typeof input.webcam && null !== input.webcam && false === Array.isArray(input.webcam) && _io53(input.webcam)) && (undefined === input.countdown || "number" === typeof input.countdown); const _io52 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput); const _io53 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.frameRate || "number" === typeof input.frameRate) && (undefined === input.aspectRatio || "number" === typeof input.aspectRatio); const _io54 = input => (undefined === input.thumbnailView || "none" === input.thumbnailView || "filmStrip" === input.thumbnailView || "thumbnail" === input.thumbnailView) && (undefined === input.audioMapping || "object" === typeof input.audioMapping && null !== input.audioMapping && false === Array.isArray(input.audioMapping) && _io55(input.audioMapping)) && (undefined === input.normalize || "object" === typeof input.normalize && null !== input.normalize && false === Array.isArray(input.normalize) && _io57(input.normalize)) && (undefined === input.voiceOver || "object" === typeof input.voiceOver && null !== input.voiceOver && false === Array.isArray(input.voiceOver) && _io59(input.voiceOver)); const _io55 = input => undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io56(elem)); const _io56 = input => "string" === typeof input.id && "string" === typeof input.title && (undefined === input.mapping || Array.isArray(input.mapping) && input.mapping.every(elem => Array.isArray(elem) && elem.every(elem => "number" === typeof elem))) && (undefined === input.mute || Array.isArray(input.mute) && input.mute.every(elem => "boolean" === typeof elem)) && (undefined === input.minInChannels || "number" === typeof input.minInChannels) && (undefined === input.maxInChannels || "number" === typeof input.maxInChannels) && (undefined === input.minOutChannels || "number" === typeof input.minOutChannels) && (undefined === input.maxOutChannels || "number" === typeof input.maxOutChannels); const _io57 = input => (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io58(elem))) && (undefined === input.defaultPresetId || "string" === typeof input.defaultPresetId); const _io58 = input => "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.i && "number" === typeof input.tp; const _io59 = input => (undefined === input.inputDevice || "string" === typeof input.inputDevice) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput) && (undefined === input.backgroundReductionDb || "number" === typeof input.backgroundReductionDb) && (undefined === input.recordMode || "instant" === input.recordMode || "punchAndRoll" === input.recordMode) && (undefined === input.preRollDuration || "number" === typeof input.preRollDuration); const _io60 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io61 = input => (undefined === input.folded || "object" === typeof input.folded && null !== input.folded && false === Array.isArray(input.folded) && _io62(input.folded)) && (undefined === input.assets || "object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && _io63(input.assets)) && (undefined === input.pipeline || "object" === typeof input.pipeline && null !== input.pipeline && false === Array.isArray(input.pipeline) && _io67(input.pipeline)) && (undefined === input.item || "object" === typeof input.item && null !== input.item && false === Array.isArray(input.item) && _io69(input.item)); const _io62 = input => undefined === input.auto || "boolean" === typeof input.auto; const _io63 = input => (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io64(input.story)) && (undefined === input.note || "object" === typeof input.note && null !== input.note && false === Array.isArray(input.note) && _io66(input.note)); const _io64 = input => undefined === input.excerpt || "object" === typeof input.excerpt && null !== input.excerpt && false === Array.isArray(input.excerpt) && _io65(input.excerpt); const _io65 = input => (undefined === input.maxLines || "number" === typeof input.maxLines) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.comments || "boolean" === typeof input.comments); const _io66 = input => undefined === input.maxHeight || "number" === typeof input.maxHeight; const _io67 = input => (undefined === input.search || "object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) && _io68(input.search)) && (undefined === input.sortMode || true === _iv38.has(input.sortMode)); const _io68 = input => undefined === input.maxItemsDisplayed || "number" === typeof input.maxItemsDisplayed; const _io69 = input => (undefined === input.maxHeight || "number" === typeof input.maxHeight) && (undefined === input.titleLines || "number" === typeof input.titleLines); const _io70 = input => (undefined === input.fontFamilies || Array.isArray(input.fontFamilies) && input.fontFamilies.every(elem => "string" === typeof elem)) && (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io71 = input => "script" === input.type && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "event-data" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)); const _io72 = input => "rundown" === input.type && (Array.isArray(input.columns) && input.columns.every(elem => "object" === typeof elem && null !== elem && _io73(elem))) && (undefined === input.rangeStart || "number" === typeof input.rangeStart) && (undefined === input.rangeEnd || "number" === typeof input.rangeEnd) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)) && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily); const _io73 = input => ("type" === input.key || "title" === input.key || "id" === input.key || "time" === input.key || "duration" === input.key || "position" === input.key || "accDuration" === input.key) && "string" === typeof input.label && "string" === typeof input.width && ("right" === input.textAlign || "left" === input.textAlign || "center" === input.textAlign); const _io74 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.folded || "boolean" === typeof input.folded); const _io75 = input => (undefined === input.adobe || "object" === typeof input.adobe && null !== input.adobe && false === Array.isArray(input.adobe) && _io76(input.adobe)) && (undefined === input.ograf || "object" === typeof input.ograf && null !== input.ograf && false === Array.isArray(input.ograf) && _io78(input.ograf)) && (undefined === input.rive || "object" === typeof input.rive && null !== input.rive && false === Array.isArray(input.rive) && _io79(input.rive)); const _io76 = input => (undefined === input.videoBin || "string" === typeof input.videoBin) && (undefined === input.imageBin || "string" === typeof input.imageBin) && (undefined === input.audioBin || "string" === typeof input.audioBin) && (undefined === input.timelineBin || "string" === typeof input.timelineBin) && (undefined === input.clipBin || "string" === typeof input.clipBin) && (undefined === input.downloadPath || "string" === typeof input.downloadPath) && (undefined === input.renderPath || "string" === typeof input.renderPath) && (undefined === input.renderPresetPath || "string" === typeof input.renderPresetPath) && (undefined === input.renderPresets || Array.isArray(input.renderPresets) && input.renderPresets.every(elem => "string" === typeof elem)) && (undefined === input.videoRenderPreset || "string" === typeof input.videoRenderPreset) && (undefined === input.imageRenderPreset || "string" === typeof input.imageRenderPreset) && (undefined === input.audioRenderPreset || "string" === typeof input.audioRenderPreset) && (undefined === input.forceRender || "boolean" === typeof input.forceRender) && (undefined === input.useProxies || "boolean" === typeof input.useProxies) && (undefined === input.deleteIntermediateFiles || "boolean" === typeof input.deleteIntermediateFiles) && (undefined === input.bodymovin || "object" === typeof input.bodymovin && null !== input.bodymovin && false === Array.isArray(input.bodymovin) && _io77(input.bodymovin)); const _io77 = input => undefined === input.template || "string" === typeof input.template; const _io78 = input => undefined === input.template || "string" === typeof input.template; const _io79 = input => undefined === input.template || "string" === typeof input.template; const _io80 = input => (undefined === input.collections || "boolean" === typeof input.collections) && (undefined === input.aiMetadata || "boolean" === typeof input.aiMetadata) && (undefined === input.semanticSearch || "boolean" === typeof input.semanticSearch) && (undefined === input.ameRemoteRendering || "boolean" === typeof input.ameRemoteRendering); const _io81 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.utilsAssetEditor || "boolean" === typeof input.utilsAssetEditor) && (undefined === input.utilsAssetPanel || "boolean" === typeof input.utilsAssetPanel) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.downloadFiles || "boolean" === typeof input.downloadFiles) && (undefined === input.supportPortal || "boolean" === typeof input.supportPortal) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets) && (undefined === input.systemHealth || "boolean" === typeof input.systemHealth) && (undefined === input.systemHealthIgnore || "boolean" === typeof input.systemHealthIgnore); const _io82 = input => undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io83(input.events); const _io83 = input => (undefined === input.comment || Array.isArray(input.comment) && input.comment.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.assigned || Array.isArray(input.assigned) && input.assigned.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.unassigned || Array.isArray(input.unassigned) && input.unassigned.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.publishSucceeded || "object" === typeof input.publishSucceeded && null !== input.publishSucceeded && false === Array.isArray(input.publishSucceeded) && _io84(input.publishSucceeded)); const _io84 = input => Object.keys(input).every(key => {
|
|
21094
22212
|
const value = input[key];
|
|
21095
22213
|
if (undefined === value)
|
|
21096
22214
|
return true;
|
|
@@ -22100,6 +23218,10 @@ function _validateDomainRecord(domain, input) {
|
|
|
22100
23218
|
path: _path + ".graphics",
|
|
22101
23219
|
expected: "(boolean | undefined)",
|
|
22102
23220
|
value: input.graphics
|
|
23221
|
+
}), null === input.subtitle || undefined === input.subtitle || "string" === typeof input.subtitle || _report(_exceptionable, {
|
|
23222
|
+
path: _path + ".subtitle",
|
|
23223
|
+
expected: "(null | string | undefined)",
|
|
23224
|
+
value: input.subtitle
|
|
22103
23225
|
}), undefined === input.waveform || "boolean" === typeof input.waveform || _report(_exceptionable, {
|
|
22104
23226
|
path: _path + ".waveform",
|
|
22105
23227
|
expected: "(boolean | undefined)",
|
|
@@ -22164,9 +23286,13 @@ function _validateDomainRecord(domain, input) {
|
|
|
22164
23286
|
path: _path + ".tile",
|
|
22165
23287
|
expected: "(__type.o30 | undefined)",
|
|
22166
23288
|
value: input.tile
|
|
22167
|
-
}), undefined === input.
|
|
23289
|
+
}), undefined === input.showTimeCode || "boolean" === typeof input.showTimeCode || _report(_exceptionable, {
|
|
23290
|
+
path: _path + ".showTimeCode",
|
|
23291
|
+
expected: "(boolean | undefined)",
|
|
23292
|
+
value: input.showTimeCode
|
|
23293
|
+
}), undefined === input.timecodeReference || "default" === input.timecodeReference || "subclip" === input.timecodeReference || _report(_exceptionable, {
|
|
22168
23294
|
path: _path + ".timecodeReference",
|
|
22169
|
-
expected: "(
|
|
23295
|
+
expected: "(\"default\" | \"subclip\" | undefined)",
|
|
22170
23296
|
value: input.timecodeReference
|
|
22171
23297
|
}), undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration || _report(_exceptionable, {
|
|
22172
23298
|
path: _path + ".maxSubclipDuration",
|
|
@@ -22396,7 +23522,11 @@ function _validateDomainRecord(domain, input) {
|
|
|
22396
23522
|
path: _path + ".defaultExitOption",
|
|
22397
23523
|
expected: "(\"leave\" | \"none\" | \"update\" | undefined)",
|
|
22398
23524
|
value: input.defaultExitOption
|
|
22399
|
-
})].every(flag => flag); const _vo46 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
23525
|
+
})].every(flag => flag); const _vo46 = (input, _path, _exceptionable = true) => [undefined === input.showSpeakers || "boolean" === typeof input.showSpeakers || _report(_exceptionable, {
|
|
23526
|
+
path: _path + ".showSpeakers",
|
|
23527
|
+
expected: "(boolean | undefined)",
|
|
23528
|
+
value: input.showSpeakers
|
|
23529
|
+
}), undefined === input.subtitleDisclaimer || ("object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) || _report(_exceptionable, {
|
|
22400
23530
|
path: _path + ".subtitleDisclaimer",
|
|
22401
23531
|
expected: "(__type.o37 | undefined)",
|
|
22402
23532
|
value: input.subtitleDisclaimer
|
|
@@ -24885,244 +26015,6 @@ function _validateDomainRecord(domain, input) {
|
|
|
24885
26015
|
};
|
|
24886
26016
|
}; })()(input);
|
|
24887
26017
|
}
|
|
24888
|
-
case ":template": {
|
|
24889
|
-
return (() => { const _io0 = input => (undefined === input.source || "string" === typeof input.source) && (undefined === input.controller || "string" === typeof input.controller) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)); const _io1 = input => Object.keys(input).every(key => {
|
|
24890
|
-
const value = input[key];
|
|
24891
|
-
if (undefined === value)
|
|
24892
|
-
return true;
|
|
24893
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
24894
|
-
}); const _io2 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.label || "string" === typeof input.label) && (undefined === input.defaultValue || "string" === typeof input.defaultValue) && (undefined === input.widget || "object" === typeof input.widget && null !== input.widget && _io3(input.widget)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io4(input.properties)) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io5(input.items)) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io9(input.render)); const _io3 = input => "string" === typeof input.type; const _io4 = input => true; const _io5 = input => undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io6(input.properties); const _io6 = input => Object.keys(input).every(key => {
|
|
24895
|
-
const value = input[key];
|
|
24896
|
-
if (undefined === value)
|
|
24897
|
-
return true;
|
|
24898
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io7(value);
|
|
24899
|
-
}); const _io7 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.label || "string" === typeof input.label) && (undefined === input.defaultValue || "string" === typeof input.defaultValue) && (undefined === input.widget || "object" === typeof input.widget && null !== input.widget && _io8(input.widget)) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io7(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io6(input.properties)); const _io8 = input => "string" === typeof input.type; const _io9 = input => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io10(input.profile)); const _io10 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io11(input.video)); const _io11 = input => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit; const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
24900
|
-
path: _path + ".source",
|
|
24901
|
-
expected: "(string | undefined)",
|
|
24902
|
-
value: input.source
|
|
24903
|
-
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
24904
|
-
path: _path + ".controller",
|
|
24905
|
-
expected: "(string | undefined)",
|
|
24906
|
-
value: input.controller
|
|
24907
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
24908
|
-
path: _path + ".type",
|
|
24909
|
-
expected: "(string | undefined)",
|
|
24910
|
-
value: input.type
|
|
24911
|
-
}), undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
24912
|
-
path: _path + ".mixin",
|
|
24913
|
-
expected: "(Array<string> | undefined)",
|
|
24914
|
-
value: input.mixin
|
|
24915
|
-
})) && input.mixin.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
24916
|
-
path: _path + ".mixin[" + _index2 + "]",
|
|
24917
|
-
expected: "string",
|
|
24918
|
-
value: elem
|
|
24919
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
24920
|
-
path: _path + ".mixin",
|
|
24921
|
-
expected: "(Array<string> | undefined)",
|
|
24922
|
-
value: input.mixin
|
|
24923
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
24924
|
-
path: _path + ".properties",
|
|
24925
|
-
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
24926
|
-
value: input.properties
|
|
24927
|
-
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
24928
|
-
path: _path + ".properties",
|
|
24929
|
-
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
24930
|
-
value: input.properties
|
|
24931
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
24932
|
-
const value = input[key];
|
|
24933
|
-
if (undefined === value)
|
|
24934
|
-
return true;
|
|
24935
|
-
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
24936
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
24937
|
-
expected: "TemplateProperty",
|
|
24938
|
-
value: value
|
|
24939
|
-
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
24940
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
24941
|
-
expected: "TemplateProperty",
|
|
24942
|
-
value: value
|
|
24943
|
-
});
|
|
24944
|
-
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
24945
|
-
path: _path + ".path",
|
|
24946
|
-
expected: "(string | undefined)",
|
|
24947
|
-
value: input.path
|
|
24948
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
24949
|
-
path: _path + ".type",
|
|
24950
|
-
expected: "(string | undefined)",
|
|
24951
|
-
value: input.type
|
|
24952
|
-
}), undefined === input.label || "string" === typeof input.label || _report(_exceptionable, {
|
|
24953
|
-
path: _path + ".label",
|
|
24954
|
-
expected: "(string | undefined)",
|
|
24955
|
-
value: input.label
|
|
24956
|
-
}), undefined === input.defaultValue || "string" === typeof input.defaultValue || _report(_exceptionable, {
|
|
24957
|
-
path: _path + ".defaultValue",
|
|
24958
|
-
expected: "(string | undefined)",
|
|
24959
|
-
value: input.defaultValue
|
|
24960
|
-
}), undefined === input.widget || ("object" === typeof input.widget && null !== input.widget || _report(_exceptionable, {
|
|
24961
|
-
path: _path + ".widget",
|
|
24962
|
-
expected: "(__type | undefined)",
|
|
24963
|
-
value: input.widget
|
|
24964
|
-
})) && _vo3(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
24965
|
-
path: _path + ".widget",
|
|
24966
|
-
expected: "(__type | undefined)",
|
|
24967
|
-
value: input.widget
|
|
24968
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
24969
|
-
path: _path + ".properties",
|
|
24970
|
-
expected: "(object | undefined)",
|
|
24971
|
-
value: input.properties
|
|
24972
|
-
})) && _vo4(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
24973
|
-
path: _path + ".properties",
|
|
24974
|
-
expected: "(object | undefined)",
|
|
24975
|
-
value: input.properties
|
|
24976
|
-
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
24977
|
-
path: _path + ".items",
|
|
24978
|
-
expected: "(__type.o1 | undefined)",
|
|
24979
|
-
value: input.items
|
|
24980
|
-
})) && _vo5(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
24981
|
-
path: _path + ".items",
|
|
24982
|
-
expected: "(__type.o1 | undefined)",
|
|
24983
|
-
value: input.items
|
|
24984
|
-
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
24985
|
-
path: _path + ".render",
|
|
24986
|
-
expected: "(__type.o3 | undefined)",
|
|
24987
|
-
value: input.render
|
|
24988
|
-
})) && _vo9(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
24989
|
-
path: _path + ".render",
|
|
24990
|
-
expected: "(__type.o3 | undefined)",
|
|
24991
|
-
value: input.render
|
|
24992
|
-
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.type || _report(_exceptionable, {
|
|
24993
|
-
path: _path + ".type",
|
|
24994
|
-
expected: "string",
|
|
24995
|
-
value: input.type
|
|
24996
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => true; const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
24997
|
-
path: _path + ".properties",
|
|
24998
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
24999
|
-
value: input.properties
|
|
25000
|
-
})) && _vo6(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
25001
|
-
path: _path + ".properties",
|
|
25002
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
25003
|
-
value: input.properties
|
|
25004
|
-
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
25005
|
-
const value = input[key];
|
|
25006
|
-
if (undefined === value)
|
|
25007
|
-
return true;
|
|
25008
|
-
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
25009
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
25010
|
-
expected: "TemplatePropertySchema",
|
|
25011
|
-
value: value
|
|
25012
|
-
})) && _vo7(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
25013
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
25014
|
-
expected: "TemplatePropertySchema",
|
|
25015
|
-
value: value
|
|
25016
|
-
});
|
|
25017
|
-
}).every(flag => flag)].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
25018
|
-
path: _path + ".path",
|
|
25019
|
-
expected: "(string | undefined)",
|
|
25020
|
-
value: input.path
|
|
25021
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
25022
|
-
path: _path + ".type",
|
|
25023
|
-
expected: "(string | undefined)",
|
|
25024
|
-
value: input.type
|
|
25025
|
-
}), undefined === input.label || "string" === typeof input.label || _report(_exceptionable, {
|
|
25026
|
-
path: _path + ".label",
|
|
25027
|
-
expected: "(string | undefined)",
|
|
25028
|
-
value: input.label
|
|
25029
|
-
}), undefined === input.defaultValue || "string" === typeof input.defaultValue || _report(_exceptionable, {
|
|
25030
|
-
path: _path + ".defaultValue",
|
|
25031
|
-
expected: "(string | undefined)",
|
|
25032
|
-
value: input.defaultValue
|
|
25033
|
-
}), undefined === input.widget || ("object" === typeof input.widget && null !== input.widget || _report(_exceptionable, {
|
|
25034
|
-
path: _path + ".widget",
|
|
25035
|
-
expected: "(__type.o2 | undefined)",
|
|
25036
|
-
value: input.widget
|
|
25037
|
-
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
25038
|
-
path: _path + ".widget",
|
|
25039
|
-
expected: "(__type.o2 | undefined)",
|
|
25040
|
-
value: input.widget
|
|
25041
|
-
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
25042
|
-
path: _path + ".items",
|
|
25043
|
-
expected: "(TemplatePropertySchema | undefined)",
|
|
25044
|
-
value: input.items
|
|
25045
|
-
})) && _vo7(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
25046
|
-
path: _path + ".items",
|
|
25047
|
-
expected: "(TemplatePropertySchema | undefined)",
|
|
25048
|
-
value: input.items
|
|
25049
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
25050
|
-
path: _path + ".properties",
|
|
25051
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
25052
|
-
value: input.properties
|
|
25053
|
-
})) && _vo6(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
25054
|
-
path: _path + ".properties",
|
|
25055
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
25056
|
-
value: input.properties
|
|
25057
|
-
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.type || _report(_exceptionable, {
|
|
25058
|
-
path: _path + ".type",
|
|
25059
|
-
expected: "string",
|
|
25060
|
-
value: input.type
|
|
25061
|
-
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
25062
|
-
path: _path + ".type",
|
|
25063
|
-
expected: "\"image\"",
|
|
25064
|
-
value: input.type
|
|
25065
|
-
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
25066
|
-
path: _path + ".profile",
|
|
25067
|
-
expected: "(__type.o4 | undefined)",
|
|
25068
|
-
value: input.profile
|
|
25069
|
-
})) && _vo10(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
25070
|
-
path: _path + ".profile",
|
|
25071
|
-
expected: "(__type.o4 | undefined)",
|
|
25072
|
-
value: input.profile
|
|
25073
|
-
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
25074
|
-
path: _path + ".format",
|
|
25075
|
-
expected: "(string | undefined)",
|
|
25076
|
-
value: input.format
|
|
25077
|
-
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
25078
|
-
path: _path + ".video",
|
|
25079
|
-
expected: "(__type.o5 | undefined)",
|
|
25080
|
-
value: input.video
|
|
25081
|
-
})) && _vo11(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
25082
|
-
path: _path + ".video",
|
|
25083
|
-
expected: "(__type.o5 | undefined)",
|
|
25084
|
-
value: input.video
|
|
25085
|
-
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
25086
|
-
path: _path + ".width",
|
|
25087
|
-
expected: "number",
|
|
25088
|
-
value: input.width
|
|
25089
|
-
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
25090
|
-
path: _path + ".height",
|
|
25091
|
-
expected: "number",
|
|
25092
|
-
value: input.height
|
|
25093
|
-
}), "cover" === input.fit || _report(_exceptionable, {
|
|
25094
|
-
path: _path + ".fit",
|
|
25095
|
-
expected: "\"cover\"",
|
|
25096
|
-
value: input.fit
|
|
25097
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
25098
|
-
if (false === __is(input)) {
|
|
25099
|
-
errors = [];
|
|
25100
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
25101
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
25102
|
-
path: _path + "",
|
|
25103
|
-
expected: "TemplateRecord",
|
|
25104
|
-
value: input
|
|
25105
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
25106
|
-
path: _path + "",
|
|
25107
|
-
expected: "TemplateRecord",
|
|
25108
|
-
value: input
|
|
25109
|
-
}))(input, "$input", true);
|
|
25110
|
-
const success = 0 === errors.length;
|
|
25111
|
-
return success ? {
|
|
25112
|
-
success,
|
|
25113
|
-
data: input
|
|
25114
|
-
} : {
|
|
25115
|
-
success,
|
|
25116
|
-
errors,
|
|
25117
|
-
data: input
|
|
25118
|
-
};
|
|
25119
|
-
}
|
|
25120
|
-
return {
|
|
25121
|
-
success: true,
|
|
25122
|
-
data: input
|
|
25123
|
-
};
|
|
25124
|
-
}; })()(input);
|
|
25125
|
-
}
|
|
25126
26018
|
case ":_user-notification-status": {
|
|
25127
26019
|
return (() => { const _io0 = input => (undefined === input.assignee || "object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) && _io1(input.assignee)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && _io2(input.published)) && (undefined === input.comment || "object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) && _io3(input.comment)); const _io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); const _io2 = input => undefined === input.value || true === input.value; const _io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem)); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.assignee || ("object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) || _report(_exceptionable, {
|
|
25128
26020
|
path: _path + ".assignee",
|