@nxtedition/types 23.0.60 → 23.0.61
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/asset-indexer.d.ts +98 -0
- package/dist/common/asset-indexer.js +1 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/panel-property.d.ts +29 -0
- package/dist/common/panel-property.js +1 -0
- package/dist/common/schema-property.d.ts +12 -0
- package/dist/common/schema-property.js +1 -0
- package/dist/common/settings.d.ts +6 -0
- package/dist/nxtpression.d.ts +227 -5
- package/dist/records/domains/asset.d.ts +10 -1
- package/dist/records/domains/device.d.ts +16 -0
- package/dist/records/domains/device.js +1 -0
- package/dist/records/domains/index.d.ts +7 -1
- package/dist/records/domains/index.js +3 -0
- package/dist/records/domains/ingestschedule.d.ts +45 -0
- package/dist/records/domains/ingestschedule.js +1 -0
- package/dist/records/domains/note.d.ts +6 -0
- package/dist/records/domains/note.js +1 -0
- package/dist/records/domains/panel.d.ts +1 -28
- package/dist/records/exact/asset.d.ts +18 -1
- package/dist/records/validate/assert-guard.js +1275 -15
- package/dist/records/validate/assert.js +1278 -11
- package/dist/records/validate/is.js +41 -3
- package/dist/records/validate/schemas.js +1091 -192
- package/dist/records/validate/stringify.js +72 -5
- package/dist/records/validate/utils.js +2 -2
- package/dist/records/validate/validate-equals.js +2364 -439
- package/dist/records/validate/validate.js +1134 -10
- package/package.json +1 -1
|
@@ -34,6 +34,9 @@ function _isExactRecord(name, input) {
|
|
|
34
34
|
case "asset.duration": {
|
|
35
35
|
return (() => { const _io0 = input => null !== input.value && (undefined === input.value || "string" === typeof input.value || "number" === typeof input.value || "object" === typeof input.value && null !== input.value && _io1(input.value)) && (null !== input.dynamic && (undefined === input.dynamic || false === input.dynamic || Array.isArray(input.dynamic) && input.dynamic.every(elem => "string" === typeof elem))); const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "number" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
36
36
|
}
|
|
37
|
+
case "asset.dynamicProperties?": {
|
|
38
|
+
return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => (undefined === input.panel || "string" === typeof input.panel) && (undefined === input.schema || "string" === typeof input.schema) && (Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem)) && "string" === typeof input.path && ("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.index || "object" === typeof input.index && null !== input.index && _io2(input.index)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && true && (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) && _io3(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && true && (null !== input.recordName && (undefined === input.recordName || "string" === typeof input.recordName || "object" === typeof input.recordName && null !== input.recordName && _io5(input.recordName))) && (null !== input.setter && (undefined === input.setter || "function" === typeof input.setter || "string" === typeof input.setter || "object" === typeof input.setter && null !== input.setter && _io7(input.setter))) && true; const _io2 = input => "string" === typeof input.label && "string" === typeof input.path; const _io3 = input => true && (undefined === input.title || "string" === typeof input.title); const _io4 = input => true && (undefined === input.title || "string" === typeof input.title); const _io5 = input => "object" === typeof input.__context && null !== input.__context && _io6(input.__context) && "string" === typeof input.__returnValue; const _io6 = input => "string" === typeof input.id; const _io7 = input => "object" === typeof input.__context && null !== input.__context && _io8(input.__context) && true; const _io8 = input => "string" === typeof input.id && true; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
39
|
+
}
|
|
37
40
|
case "asset.embedding": {
|
|
38
41
|
return (() => { const _io0 = input => null !== input.value && (undefined === input.value || "string" === typeof input.value || "object" === typeof input.value && null !== input.value && _io1(input.value)) && (null !== input.dynamic && (undefined === input.dynamic || false === input.dynamic || Array.isArray(input.dynamic) && input.dynamic.every(elem => "string" === typeof elem))); const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "string" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
39
42
|
}
|
|
@@ -223,6 +226,21 @@ function _isDomainRecord(domain, input) {
|
|
|
223
226
|
case ":asset.comments?": {
|
|
224
227
|
return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
225
228
|
}
|
|
229
|
+
case ":asset.record?": {
|
|
230
|
+
return (() => { const _io0 = input => "string" === typeof input.id && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.created || "string" === typeof input.created) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.createdByTitle || "string" === typeof input.createdByTitle) && (undefined === input.origin || "string" === typeof input.origin) && (undefined === input.modified || "string" === typeof input.modified) && (undefined === input.modifiedBy || "string" === typeof input.modifiedBy) && (undefined === input.modifiedByAll || Array.isArray(input.modifiedByAll) && input.modifiedByAll.every(elem => "string" === typeof elem)) && (undefined === input.modifiedByTitle || "string" === typeof input.modifiedByTitle) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deadlines || Array.isArray(input.deadlines) && input.deadlines.every(elem => "string" === typeof elem)) && (undefined === input.deadlinesCount || "number" === typeof input.deadlinesCount) && (undefined === input.deadlines_date_range || Array.isArray(input.deadlines_date_range) && input.deadlines_date_range.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.assignees || Array.isArray(input.assignees) && input.assignees.every(elem => "string" === typeof elem)) && (undefined === input.assigneesCount || "number" === typeof input.assigneesCount) && (undefined === input.locations || Array.isArray(input.locations) && input.locations.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.locationsCount || "number" === typeof input.locationsCount) && (undefined === input.types || Array.isArray(input.types) && input.types.every(elem => "string" === typeof elem)) && (undefined === input.primaryType || "string" === typeof input.primaryType) && (undefined === input.rawTypes || Array.isArray(input.rawTypes) && input.rawTypes.every(elem => "string" === typeof elem)) && (undefined === input.status || "object" === typeof input.status && null !== input.status && false === Array.isArray(input.status) && _io3(input.status)) && (undefined === input.published || Array.isArray(input.published) && input.published.every(elem => "string" === typeof elem)) && (undefined === input.publishedCount || "number" === typeof input.publishedCount) && (undefined === input.storage || "object" === typeof input.storage && null !== input.storage && false === Array.isArray(input.storage) && _io5(input.storage)) && (undefined === input.refs || "number" === typeof input.refs) && (undefined === input.refsByType || "object" === typeof input.refsByType && null !== input.refsByType && false === Array.isArray(input.refsByType) && _io6(input.refsByType)) && (undefined === input.recurrence_date_range || "object" === typeof input.recurrence_date_range && null !== input.recurrence_date_range && _io7(input.recurrence_date_range)) && (undefined === input.media_date_range || "object" === typeof input.media_date_range && null !== input.media_date_range && _io8(input.media_date_range)) && (undefined === input.ingestschedule_date_range || "object" === typeof input.ingestschedule_date_range && null !== input.ingestschedule_date_range && _io9(input.ingestschedule_date_range)) && (undefined === input.ingestschedule || "object" === typeof input.ingestschedule && null !== input.ingestschedule && false === Array.isArray(input.ingestschedule) && _io10(input.ingestschedule)) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.user || "string" === typeof input.user) && (undefined === input["note.text"] || "string" === typeof input["note.text"]) && (undefined === input.subtitles || "string" === typeof input.subtitles) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io11(input.story)) && (undefined === input.storyboard || "object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) && _io12(input.storyboard)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) && _io13(input.media)) && (undefined === input.embedding || Array.isArray(input.embedding) && input.embedding.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && Object.keys(input).every(key => {
|
|
231
|
+
if (["id", "title", "description", "created", "createdBy", "createdByTitle", "origin", "modified", "modifiedBy", "modifiedByAll", "modifiedByTitle", "duration", "tags", "deadlines", "deadlinesCount", "deadlines_date_range", "assignees", "assigneesCount", "locations", "locationsCount", "types", "primaryType", "rawTypes", "status", "published", "publishedCount", "storage", "refs", "refsByType", "recurrence_date_range", "media_date_range", "ingestschedule_date_range", "ingestschedule", "username", "user", "note.text", "subtitles", "graphics", "story", "storyboard", "media", "embedding"].some(prop => key === prop))
|
|
232
|
+
return true;
|
|
233
|
+
const value = input[key];
|
|
234
|
+
if (undefined === value)
|
|
235
|
+
return true;
|
|
236
|
+
return true;
|
|
237
|
+
}); const _io1 = input => "string" === typeof input.gte && "string" === typeof input.lte; const _io2 = input => "number" === typeof input.lat && "number" === typeof input.lon; const _io3 = input => undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem)); const _io4 = input => (undefined === input.code || "string" === typeof input.code) && (undefined === input.level || "number" === typeof input.level); const _io5 = input => (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem)) && (undefined === input.replicas || Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (undefined === input.locations || Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (undefined === input.zones || Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (undefined === input.uploading || "boolean" === typeof input.uploading) && (undefined === input.size || "number" === typeof input.size) && (undefined === input.filesCount || "number" === typeof input.filesCount) && (undefined === input.replicasCount || "number" === typeof input.replicasCount) && (undefined === input.locationsCount || "number" === typeof input.locationsCount); const _io6 = input => Object.keys(input).every(key => {
|
|
238
|
+
const value = input[key];
|
|
239
|
+
if (undefined === value)
|
|
240
|
+
return true;
|
|
241
|
+
return "number" === typeof value;
|
|
242
|
+
}); const _io7 = input => "string" === typeof input.gte && (null === input.lte || "string" === typeof input.lte); const _io8 = input => "string" === typeof input.gte && "string" === typeof input.lte; const _io9 = input => "string" === typeof input.gte && (null === input.lte || "string" === typeof input.lte); const _io10 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.sources || Array.isArray(input.sources) && input.sources.every(elem => "string" === typeof elem)) && (undefined === input.routes || Array.isArray(input.routes) && input.routes.every(elem => "string" === typeof elem)); const _io11 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.graphics || Array.isArray(input.graphics) && input.graphics.every(elem => "string" === typeof elem)); const _io12 = input => undefined === input.content || Array.isArray(input.content); const _io13 = input => true && true && true && true && true; const _io14 = input => Array.isArray(input.vector) && input.vector.every(elem => "number" === typeof elem); return input => "object" === typeof input && null !== input && _io0(input); })()(input);
|
|
243
|
+
}
|
|
226
244
|
case ":auth": {
|
|
227
245
|
return (() => { const _io0 = input => null === input.hash || undefined === input.hash || "string" === typeof input.hash; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
228
246
|
}
|
|
@@ -464,6 +482,12 @@ function _isDomainRecord(domain, input) {
|
|
|
464
482
|
case ":design?": {
|
|
465
483
|
return (() => { const _io0 = input => Array.isArray(input.rows) && input.rows.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.id && "string" === typeof input.key && true; return input => "object" === typeof input && null !== input && _io0(input); })()(input);
|
|
466
484
|
}
|
|
485
|
+
case ":device": {
|
|
486
|
+
return (() => { const _io0 = input => (undefined === input.type || "display" === input.type) && (undefined === input.display || "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && _io1(input.display)); const _io1 = input => (undefined === input.activeAsset || "string" === typeof input.activeAsset) && (undefined === input.editor || "string" === typeof input.editor); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
487
|
+
}
|
|
488
|
+
case ":device.status?": {
|
|
489
|
+
return (() => { const _io0 = input => (undefined === input.since || "string" === typeof input.since) && (undefined === input.heartbeat || "string" === typeof input.heartbeat) && (undefined === input.version || "string" === typeof input.version); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
490
|
+
}
|
|
467
491
|
case ":edit": {
|
|
468
492
|
return (() => { const _io0 = input => "object" === typeof input.nodes && null !== input.nodes && false === Array.isArray(input.nodes) && _io1(input.nodes) && (Array.isArray(input.tracks) && input.tracks.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem))) && ("object" === typeof input.transitions && null !== input.transitions && false === Array.isArray(input.transitions) && _io1(input.transitions)) && (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.changeId || "string" === typeof input.changeId); const _io1 = input => true; return input => "object" === typeof input && null !== input && _io0(input); })()(input);
|
|
469
493
|
}
|
|
@@ -581,6 +605,17 @@ function _isDomainRecord(domain, input) {
|
|
|
581
605
|
case ":ingestclip": {
|
|
582
606
|
return (() => { const _io0 = input => (undefined === input.time || "number" === typeof input.time) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.record || "string" === typeof input.record) && (undefined === input.data || "boolean" === typeof input.data) && (undefined === input.gallery || "string" === typeof input.gallery) && (undefined === input.rundown || "string" === typeof input.rundown) && (undefined === input.segment || "string" === typeof input.segment) && (undefined === input.story || "string" === typeof input.story) && (undefined === input.event || "string" === typeof input.event) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.channel || "string" === typeof input.channel) && (undefined === input.schedule || "string" === typeof input.schedule) && (undefined === input.parent || "string" === typeof input.parent); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
583
607
|
}
|
|
608
|
+
case ":ingestschedule": {
|
|
609
|
+
return (() => { const _io0 = input => (undefined === input.io || "object" === typeof input.io && null !== input.io && false === Array.isArray(input.io) && _io1(input.io)) && (undefined === input.sourcesHint || "string" === typeof input.sourcesHint) && (undefined === input.enabled || "boolean" === typeof input.enabled) && (null !== input.clipname && (undefined === input.clipname || "string" === typeof input.clipname || "object" === typeof input.clipname && null !== input.clipname && _io3(input.clipname))) && (undefined === input.autoTags || Array.isArray(input.autoTags) && input.autoTags.every(elem => "string" === typeof elem)) && (null === input.storyboard || undefined === input.storyboard || "string" === typeof input.storyboard) && (null === input.pipeline || undefined === input.pipeline || "string" === typeof input.pipeline) && (undefined === input.type || "instant" === input.type || "repeat" === input.type || "salami" === input.type) && (undefined === input.salami || "object" === typeof input.salami && null !== input.salami && false === Array.isArray(input.salami) && _io5(input.salami)) && (undefined === input.repeat || "object" === typeof input.repeat && null !== input.repeat && false === Array.isArray(input.repeat) && _io6(input.repeat)); const _io1 = input => Object.keys(input).every(key => {
|
|
610
|
+
const value = input[key];
|
|
611
|
+
if (undefined === value)
|
|
612
|
+
return true;
|
|
613
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
614
|
+
}); const _io2 = input => (undefined === input.route || "string" === typeof input.route) && (undefined === input.publish || Array.isArray(input.publish) && input.publish.every(elem => "string" === typeof elem)); const _io3 = input => "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && _io4(input.__context) && "string" === typeof input.__returnValue; const _io4 = input => true; const _io5 = input => (null === input.gallery || undefined === input.gallery || "string" === typeof input.gallery) && (undefined === input.tag || "string" === typeof input.tag); const _io6 = input => (undefined === input.freq || 0 === input.freq || 2 === input.freq || 3 === input.freq) && (undefined === input.until || "string" === typeof input.until) && (undefined === input.start || "string" === typeof input.start) && (undefined === input.tzid || "string" === typeof input.tzid) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.byweekday || Array.isArray(input.byweekday) && input.byweekday.every(elem => "number" === typeof elem)); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
615
|
+
}
|
|
616
|
+
case ":ingestschedule.stats?": {
|
|
617
|
+
return (() => { const _io0 = input => true; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
618
|
+
}
|
|
584
619
|
case ":media.source": {
|
|
585
620
|
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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io5(input.video)) && (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) && _io7(input.transcribe)); const _io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io2 = input => Object.keys(input).every(key => {
|
|
586
621
|
const value = input[key];
|
|
@@ -685,13 +720,16 @@ function _isDomainRecord(domain, input) {
|
|
|
685
720
|
return true;
|
|
686
721
|
}); const _io12 = input => "number" === typeof input.used && "number" === typeof input.available && "number" === typeof input.timestamp; return input => "object" === typeof input && null !== input && _io0(input); })()(input);
|
|
687
722
|
}
|
|
723
|
+
case ":note": {
|
|
724
|
+
return (() => { const _io0 = input => "string" === typeof input.value; return input => "object" === typeof input && null !== input && _io0(input); })()(input);
|
|
725
|
+
}
|
|
688
726
|
case ":panel": {
|
|
689
727
|
return (() => { const _io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (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) && _io6(input.layout)) && true && true; const _io1 = input => Object.keys(input).every(key => {
|
|
690
728
|
const value = input[key];
|
|
691
729
|
if (undefined === value)
|
|
692
730
|
return true;
|
|
693
731
|
return "object" === typeof value && null !== value && _io2(value);
|
|
694
|
-
}); const _io2 = input => ("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.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io3(input.index)) && (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) && _io4(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io5(elem))); const _io3 = input => "string" === typeof input.label && "string" === typeof input.path; const _io4 = input => true && (undefined === input.title || "string" === typeof input.title); const _io5 = input => true && (undefined === input.title || "string" === typeof input.title); const _io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && (_ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && _iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && (_ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && _iu0(input.editor)))); const _io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title); const _io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "
|
|
732
|
+
}); const _io2 = input => ("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.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io3(input.index)) && (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) && _io4(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io5(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])); const _io3 = input => "string" === typeof input.label && "string" === typeof input.path; const _io4 = input => true && (undefined === input.title || "string" === typeof input.title); const _io5 = input => true && (undefined === input.title || "string" === typeof input.title); const _io6 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && (_ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && _iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && (_ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && _iu0(input.editor)))); const _io7 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title); const _io8 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "tags" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "object" === typeof input.widget && null !== input.widget && _io9(input.widget))); const _io9 = input => ("default" === input.type || "tags" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly); const _iu0 = input => (() => {
|
|
695
733
|
if (undefined !== input.type)
|
|
696
734
|
return _io7(input);
|
|
697
735
|
else if (undefined !== input.property)
|
|
@@ -977,7 +1015,7 @@ function _isDomainRecord(domain, input) {
|
|
|
977
1015
|
return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
978
1016
|
}
|
|
979
1017
|
case ":settings": {
|
|
980
|
-
return (() => { const _iv22 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV", "encoding"]); const _iv26 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== input.permission && false === Array.isArray(input.permission) && _io1(input.permission)) && (undefined === input["module"] || "object" === typeof input["module"] && null !== input["module"] && false === Array.isArray(input["module"]) && _io2(input["module"])) && (undefined === input.upload || "object" === typeof input.upload && null !== input.upload && false === Array.isArray(input.upload) && _io6(input.upload)) && (undefined === input.download || "object" === typeof input.download && null !== input.download && false === Array.isArray(input.download) && _io7(input.download)) && (undefined === input.browser || "object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && _io8(input.browser)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== input.toolbarTags && false === Array.isArray(input.toolbarTags) && _io12(input.toolbarTags)) && (undefined === input.exclusiveTagGroups || Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every(elem => Array.isArray(elem) && elem.every(elem => "string" === typeof elem))) && (undefined === input.deadlines || "object" === typeof input.deadlines && null !== input.deadlines && false === Array.isArray(input.deadlines) && _io13(input.deadlines)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== input.assignees && false === Array.isArray(input.assignees) && _io14(input.assignees)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && _io15(input.comments)) && (undefined === input.clock || "object" === typeof input.clock && null !== input.clock && false === Array.isArray(input.clock) && _io16(input.clock)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && _io17(input.swarm)) && (undefined === input.dashboard || "object" === typeof input.dashboard && null !== input.dashboard && false === Array.isArray(input.dashboard) && _io18(input.dashboard)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && _io20(input.script)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io25(input.events)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && _io28(input.rundown)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && _io29(input.gallery)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && false === Array.isArray(input.keymap) && _io30(input.keymap)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) && _io43(input.media)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && _io56(input.edit)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io58(elem))) && (undefined === input.predefinedTags || Array.isArray(input.predefinedTags) && input.predefinedTags.every(elem => "string" === typeof elem)) && (undefined === input.storyboard || "object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) && _io59(input.storyboard)) && (undefined === input.print || "object" === typeof input.print && null !== input.print && false === Array.isArray(input.print) && _io68(input.print)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io69(elem))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io70(input.plugins)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.featurePreview || "object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) && _io73(input.featurePreview)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && false === Array.isArray(input.flags) && _io74(input.flags)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && _io75(input.notifications)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert) && (undefined === input.clone || "object" === typeof input.clone && null !== input.clone && false === Array.isArray(input.clone) && _io78(input.clone)) && (undefined === input.utilsAssetEditorPanel || "object" === typeof input.utilsAssetEditorPanel && null !== input.utilsAssetEditorPanel && false === Array.isArray(input.utilsAssetEditorPanel) && _io80(input.utilsAssetEditorPanel)); const _io1 = input => (undefined === input.overrideUserContact || "boolean" === typeof input.overrideUserContact) && (undefined === input.overrideUserLogin || "boolean" === typeof input.overrideUserLogin); const _io2 = input => (undefined === input.editor || "string" === typeof input.editor) && (undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && false === Array.isArray(input.tabs) && _io3(input.tabs)); const _io3 = input => (undefined === input.settingsPanelStore || "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && false === Array.isArray(input.settingsPanelStore) && _io4(input.settingsPanelStore)) && Object.keys(input).every(key => {
|
|
1018
|
+
return (() => { const _iv22 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV", "encoding"]); const _iv26 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== input.permission && false === Array.isArray(input.permission) && _io1(input.permission)) && (undefined === input["module"] || "object" === typeof input["module"] && null !== input["module"] && false === Array.isArray(input["module"]) && _io2(input["module"])) && (undefined === input.upload || "object" === typeof input.upload && null !== input.upload && false === Array.isArray(input.upload) && _io6(input.upload)) && (undefined === input.download || "object" === typeof input.download && null !== input.download && false === Array.isArray(input.download) && _io7(input.download)) && (undefined === input.browser || "object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && _io8(input.browser)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== input.toolbarTags && false === Array.isArray(input.toolbarTags) && _io12(input.toolbarTags)) && (undefined === input.exclusiveTagGroups || Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every(elem => Array.isArray(elem) && elem.every(elem => "string" === typeof elem))) && (undefined === input.deadlines || "object" === typeof input.deadlines && null !== input.deadlines && false === Array.isArray(input.deadlines) && _io13(input.deadlines)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== input.assignees && false === Array.isArray(input.assignees) && _io14(input.assignees)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && _io15(input.comments)) && (undefined === input.clock || "object" === typeof input.clock && null !== input.clock && false === Array.isArray(input.clock) && _io16(input.clock)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && _io17(input.swarm)) && (undefined === input.dashboard || "object" === typeof input.dashboard && null !== input.dashboard && false === Array.isArray(input.dashboard) && _io18(input.dashboard)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && _io20(input.script)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io25(input.events)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && _io28(input.rundown)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && _io29(input.gallery)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && false === Array.isArray(input.keymap) && _io30(input.keymap)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) && _io43(input.media)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && _io56(input.edit)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io58(elem))) && (undefined === input.predefinedTags || Array.isArray(input.predefinedTags) && input.predefinedTags.every(elem => "string" === typeof elem)) && (undefined === input.storyboard || "object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) && _io59(input.storyboard)) && (undefined === input.print || "object" === typeof input.print && null !== input.print && false === Array.isArray(input.print) && _io68(input.print)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io69(elem))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io70(input.plugins)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.featurePreview || "object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) && _io73(input.featurePreview)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && false === Array.isArray(input.flags) && _io74(input.flags)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && _io75(input.notifications)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert) && (undefined === input.clone || "object" === typeof input.clone && null !== input.clone && false === Array.isArray(input.clone) && _io78(input.clone)) && (undefined === input.utilsAssetEditorPanel || "object" === typeof input.utilsAssetEditorPanel && null !== input.utilsAssetEditorPanel && false === Array.isArray(input.utilsAssetEditorPanel) && _io80(input.utilsAssetEditorPanel)) && (undefined === input.display || "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && _io81(input.display)) && (undefined === input.bookmarks || "object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && _io82(input.bookmarks)); const _io1 = input => (undefined === input.overrideUserContact || "boolean" === typeof input.overrideUserContact) && (undefined === input.overrideUserLogin || "boolean" === typeof input.overrideUserLogin); const _io2 = input => (undefined === input.editor || "string" === typeof input.editor) && (undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && false === Array.isArray(input.tabs) && _io3(input.tabs)); const _io3 = input => (undefined === input.settingsPanelStore || "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && false === Array.isArray(input.settingsPanelStore) && _io4(input.settingsPanelStore)) && Object.keys(input).every(key => {
|
|
981
1019
|
if (["settingsPanelStore"].some(prop => key === prop))
|
|
982
1020
|
return true;
|
|
983
1021
|
const value = input[key];
|
|
@@ -1054,7 +1092,7 @@ function _isDomainRecord(domain, input) {
|
|
|
1054
1092
|
if (undefined === value)
|
|
1055
1093
|
return true;
|
|
1056
1094
|
return Array.isArray(value) && value.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem);
|
|
1057
|
-
}); const _io78 = input => undefined === input.duplicate || "object" === typeof input.duplicate && null !== input.duplicate && false === Array.isArray(input.duplicate) && _io79(input.duplicate); const _io79 = input => (undefined === input.titlePrefix || "string" === typeof input.titlePrefix) && (undefined === input.titleSuffix || "string" === typeof input.titleSuffix); const _io80 = input => (undefined === input.stateFilter || Array.isArray(input.stateFilter) && input.stateFilter.every(elem => "number" === typeof elem)) && (undefined === input.textFilter || "string" === typeof input.textFilter) && (undefined === input.showEmpty || "boolean" === typeof input.showEmpty) && (undefined === input.selectedRecord || "string" === typeof input.selectedRecord) && (undefined === input.subscribeSearchHits || "boolean" === typeof input.subscribeSearchHits) && (undefined === input.parseRegex || "boolean" === typeof input.parseRegex); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
1095
|
+
}); const _io78 = input => undefined === input.duplicate || "object" === typeof input.duplicate && null !== input.duplicate && false === Array.isArray(input.duplicate) && _io79(input.duplicate); const _io79 = input => (undefined === input.titlePrefix || "string" === typeof input.titlePrefix) && (undefined === input.titleSuffix || "string" === typeof input.titleSuffix); const _io80 = input => (undefined === input.stateFilter || Array.isArray(input.stateFilter) && input.stateFilter.every(elem => "number" === typeof elem)) && (undefined === input.textFilter || "string" === typeof input.textFilter) && (undefined === input.showEmpty || "boolean" === typeof input.showEmpty) && (undefined === input.selectedRecord || "string" === typeof input.selectedRecord) && (undefined === input.subscribeSearchHits || "boolean" === typeof input.subscribeSearchHits) && (undefined === input.parseRegex || "boolean" === typeof input.parseRegex); const _io81 = input => undefined === input.disableHotArea || "boolean" === typeof input.disableHotArea; const _io82 = input => undefined === input.refreshInterval || "number" === typeof input.refreshInterval; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
1058
1096
|
}
|
|
1059
1097
|
case ":shotbox": {
|
|
1060
1098
|
return (() => { const _io0 = input => undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem)); const _io1 = input => (undefined === input.stickyTopRow || "boolean" === typeof input.stickyTopRow) && (undefined === input.inferGroups || "boolean" === typeof input.inferGroups) && (undefined === input.layout || Array.isArray(input.layout) && input.layout.every(elem => null !== elem && undefined !== elem && (Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.sticky || "boolean" === typeof input.sticky) && (undefined === input.type || "trigger" === input.type || "toggle" === input.type) && (undefined === input.width || "string" === typeof input.width) && (undefined === input.include || Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem)) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem)) && (undefined === input.states || "object" === typeof input.states && null !== input.states && _io3(input.states)) && (undefined === input.flow || "column" === input.flow || "row" === input.flow) && (undefined === input.minRows || "number" === typeof input.minRows) && (undefined === input.maxRows || "number" === typeof input.maxRows); const _io3 = input => "boolean" === typeof input.completed; const _io4 = input => "stream" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.width || "string" === typeof input.width) && (undefined === input.source || "string" === typeof input.source); const _iu0 = input => (() => {
|