@nxtedition/types 23.0.32 → 23.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +23 -2
- package/dist/common/block.d.ts +1 -1
- package/dist/common/file.d.ts +10 -11
- package/dist/common/settings.d.ts +22 -22
- package/dist/common/settings.js +302 -224
- package/dist/domains/general.d.ts +6 -0
- package/dist/domains/panel.d.ts +268 -1
- package/dist/domains/publish.d.ts +1128 -6
- package/dist/domains/settings.d.ts +1 -10
- package/dist/domains/settings.js +1 -6870
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/nxtpression.d.ts +2407 -0
- package/dist/nxtpression.js +323 -0
- package/dist/schema.json +1904 -1930
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +12 -5
package/dist/common/settings.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isSettings = input => {
|
|
3
3
|
const $iv21 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
4
|
-
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== 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)) && ("object" === typeof input.browser && null !== input.browser && $io8(input.browser)) && ("object" === typeof input.toolbarTags && null !== input.toolbarTags && $io12(input.toolbarTags)) && (Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every(elem => Array.isArray(elem) && elem.every(elem => "string" === typeof elem))) && ("object" === typeof input.deadlines && null !== input.deadlines && $io13(input.deadlines)) && ("object" === typeof input.assignees && null !== input.assignees && $io14(input.assignees)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && $io15(input.comments)) && ("object" === typeof input.clock && null !== input.clock && $io16(input.clock)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && $io17(input.swarm)) && ("object" === typeof input.dashboard && null !== input.dashboard && (
|
|
4
|
+
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== 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 && $io8(input.browser)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== 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 && $io13(input.deadlines)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== 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 && $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 && $io18(input.dashboard)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && $io19(input.script)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && $io22(input.events)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && $io23(input.rundown)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && $io24(input.gallery)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && $io25(input.keymap)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && $io38(input.media)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && $io50(input.edit)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every(elem => "object" === typeof elem && null !== elem && $io52(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 && $io53(input.storyboard)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every(elem => "object" === typeof elem && null !== elem && $io62(elem))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && $io63(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) && $io66(input.featurePreview)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && $io67(input.flags)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && $io68(input.notifications)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert);
|
|
5
5
|
const $io1 = input => "boolean" === typeof input.overrideUserContact && "boolean" === typeof input.overrideUserLogin;
|
|
6
6
|
const $io2 = input => undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && $io3(input.tabs);
|
|
7
7
|
const $io3 = input => "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && ("number" === typeof input.settingsPanelStore.activeSectionIndex && "string" === typeof input.settingsPanelStore.activeTab) && Object.keys(input).every(key => {
|
|
@@ -24,9 +24,12 @@ export const isSettings = input => {
|
|
|
24
24
|
const $io15 = input => (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));
|
|
25
25
|
const $io16 = input => "boolean" === typeof input.enable && "boolean" === typeof input.show24Hours && "boolean" === typeof input.showAmPm && "boolean" === typeof input.showSeconds && "boolean" === typeof input.showDayOfWeek && "boolean" === typeof input.showDate && (undefined === input.format || "string" === typeof input.format);
|
|
26
26
|
const $io17 = input => (undefined === input.color || "string" === typeof input.color) && (undefined === input.name || "string" === typeof input.name);
|
|
27
|
+
const $io18 = input => "number" === typeof input.maxMru && "number" === typeof input.maxTabs;
|
|
27
28
|
const $io19 = input => "object" === typeof input.createMenu && null !== input.createMenu && "boolean" === typeof input.createMenu.showPreview && (Array.isArray(input.colorTags) && input.colorTags.every(elem => "object" === typeof elem && null !== elem && $io21(elem)));
|
|
28
29
|
const $io21 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
29
30
|
const $io22 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
|
|
31
|
+
const $io23 = input => "boolean" === typeof input.eventThumbnails;
|
|
32
|
+
const $io24 = input => "boolean" === typeof input.dimOnBlur;
|
|
30
33
|
const $io25 = input => "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && $io26(input.display) && ("object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && $io28(input.browser)) && ("object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && $io29(input.gallery)) && ("object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && $io30(input.global)) && ("object" === typeof input.player && null !== input.player && false === Array.isArray(input.player) && $io31(input.player)) && ("object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && $io32(input.script)) && ("object" === typeof input.codeEditor && null !== input.codeEditor && false === Array.isArray(input.codeEditor) && $io33(input.codeEditor)) && ("object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && $io34(input.bookmarks)) && ("object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && $io35(input.edit)) && ("object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && $io36(input.rundown)) && ("object" === typeof input.segment && null !== input.segment && false === Array.isArray(input.segment) && $io37(input.segment));
|
|
31
34
|
const $io26 = input => Object.keys(input).every(key => {
|
|
32
35
|
const value = input[key];
|
|
@@ -129,12 +132,12 @@ export const isSettings = input => {
|
|
|
129
132
|
return true;
|
|
130
133
|
return Array.isArray(value) && value.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem);
|
|
131
134
|
});
|
|
132
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
135
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
133
136
|
};
|
|
134
137
|
export const assertSettings = (input, errorFactory) => {
|
|
135
138
|
const __is = input => {
|
|
136
139
|
const $iv21 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
137
|
-
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== 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)) && ("object" === typeof input.browser && null !== input.browser && $io8(input.browser)) && ("object" === typeof input.toolbarTags && null !== input.toolbarTags && $io12(input.toolbarTags)) && (Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every(elem => Array.isArray(elem) && elem.every(elem => "string" === typeof elem))) && ("object" === typeof input.deadlines && null !== input.deadlines && $io13(input.deadlines)) && ("object" === typeof input.assignees && null !== input.assignees && $io14(input.assignees)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && $io15(input.comments)) && ("object" === typeof input.clock && null !== input.clock && $io16(input.clock)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && $io17(input.swarm)) && ("object" === typeof input.dashboard && null !== input.dashboard && (
|
|
140
|
+
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== 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 && $io8(input.browser)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== 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 && $io13(input.deadlines)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== 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 && $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 && $io18(input.dashboard)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && $io19(input.script)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && $io22(input.events)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && $io23(input.rundown)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && $io24(input.gallery)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && $io25(input.keymap)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && $io38(input.media)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && $io50(input.edit)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every(elem => "object" === typeof elem && null !== elem && $io52(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 && $io53(input.storyboard)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every(elem => "object" === typeof elem && null !== elem && $io62(elem))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && $io63(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) && $io66(input.featurePreview)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && $io67(input.flags)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && $io68(input.notifications)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert);
|
|
138
141
|
const $io1 = input => "boolean" === typeof input.overrideUserContact && "boolean" === typeof input.overrideUserLogin;
|
|
139
142
|
const $io2 = input => undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && $io3(input.tabs);
|
|
140
143
|
const $io3 = input => "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && ("number" === typeof input.settingsPanelStore.activeSectionIndex && "string" === typeof input.settingsPanelStore.activeTab) && Object.keys(input).every(key => {
|
|
@@ -157,9 +160,12 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
157
160
|
const $io15 = input => (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));
|
|
158
161
|
const $io16 = input => "boolean" === typeof input.enable && "boolean" === typeof input.show24Hours && "boolean" === typeof input.showAmPm && "boolean" === typeof input.showSeconds && "boolean" === typeof input.showDayOfWeek && "boolean" === typeof input.showDate && (undefined === input.format || "string" === typeof input.format);
|
|
159
162
|
const $io17 = input => (undefined === input.color || "string" === typeof input.color) && (undefined === input.name || "string" === typeof input.name);
|
|
163
|
+
const $io18 = input => "number" === typeof input.maxMru && "number" === typeof input.maxTabs;
|
|
160
164
|
const $io19 = input => "object" === typeof input.createMenu && null !== input.createMenu && "boolean" === typeof input.createMenu.showPreview && (Array.isArray(input.colorTags) && input.colorTags.every(elem => "object" === typeof elem && null !== elem && $io21(elem)));
|
|
161
165
|
const $io21 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
162
166
|
const $io22 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
|
|
167
|
+
const $io23 = input => "boolean" === typeof input.eventThumbnails;
|
|
168
|
+
const $io24 = input => "boolean" === typeof input.dimOnBlur;
|
|
163
169
|
const $io25 = input => "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && $io26(input.display) && ("object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && $io28(input.browser)) && ("object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && $io29(input.gallery)) && ("object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && $io30(input.global)) && ("object" === typeof input.player && null !== input.player && false === Array.isArray(input.player) && $io31(input.player)) && ("object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && $io32(input.script)) && ("object" === typeof input.codeEditor && null !== input.codeEditor && false === Array.isArray(input.codeEditor) && $io33(input.codeEditor)) && ("object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && $io34(input.bookmarks)) && ("object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && $io35(input.edit)) && ("object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && $io36(input.rundown)) && ("object" === typeof input.segment && null !== input.segment && false === Array.isArray(input.segment) && $io37(input.segment));
|
|
164
170
|
const $io26 = input => Object.keys(input).every(key => {
|
|
165
171
|
const value = input[key];
|
|
@@ -262,7 +268,7 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
262
268
|
return true;
|
|
263
269
|
return Array.isArray(value) && value.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem);
|
|
264
270
|
});
|
|
265
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
271
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
266
272
|
};
|
|
267
273
|
if (false === __is(input))
|
|
268
274
|
((input, _path, _exceptionable = true) => {
|
|
@@ -305,25 +311,25 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
305
311
|
path: _path + ".download",
|
|
306
312
|
expected: "(__type.o3 | undefined)",
|
|
307
313
|
value: input.download
|
|
308
|
-
}, errorFactory)) && (("object" === typeof input.browser && null !== input.browser || $guard(_exceptionable, {
|
|
314
|
+
}, errorFactory)) && (undefined === input.browser || ("object" === typeof input.browser && null !== input.browser || $guard(_exceptionable, {
|
|
309
315
|
path: _path + ".browser",
|
|
310
|
-
expected: "__type.o4",
|
|
316
|
+
expected: "(__type.o4 | undefined)",
|
|
311
317
|
value: input.browser
|
|
312
318
|
}, errorFactory)) && $ao8(input.browser, _path + ".browser", true && _exceptionable) || $guard(_exceptionable, {
|
|
313
319
|
path: _path + ".browser",
|
|
314
|
-
expected: "__type.o4",
|
|
320
|
+
expected: "(__type.o4 | undefined)",
|
|
315
321
|
value: input.browser
|
|
316
|
-
}, errorFactory)) && (("object" === typeof input.toolbarTags && null !== input.toolbarTags || $guard(_exceptionable, {
|
|
322
|
+
}, errorFactory)) && (undefined === input.toolbarTags || ("object" === typeof input.toolbarTags && null !== input.toolbarTags || $guard(_exceptionable, {
|
|
317
323
|
path: _path + ".toolbarTags",
|
|
318
|
-
expected: "__type.o8",
|
|
324
|
+
expected: "(__type.o8 | undefined)",
|
|
319
325
|
value: input.toolbarTags
|
|
320
326
|
}, errorFactory)) && $ao12(input.toolbarTags, _path + ".toolbarTags", true && _exceptionable) || $guard(_exceptionable, {
|
|
321
327
|
path: _path + ".toolbarTags",
|
|
322
|
-
expected: "__type.o8",
|
|
328
|
+
expected: "(__type.o8 | undefined)",
|
|
323
329
|
value: input.toolbarTags
|
|
324
|
-
}, errorFactory)) && ((Array.isArray(input.exclusiveTagGroups) || $guard(_exceptionable, {
|
|
330
|
+
}, errorFactory)) && (undefined === input.exclusiveTagGroups || (Array.isArray(input.exclusiveTagGroups) || $guard(_exceptionable, {
|
|
325
331
|
path: _path + ".exclusiveTagGroups",
|
|
326
|
-
expected: "Array<Array<string>>",
|
|
332
|
+
expected: "(Array<Array<string>> | undefined)",
|
|
327
333
|
value: input.exclusiveTagGroups
|
|
328
334
|
}, errorFactory)) && input.exclusiveTagGroups.every((elem, _index1) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
329
335
|
path: _path + ".exclusiveTagGroups[" + _index1 + "]",
|
|
@@ -339,23 +345,23 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
339
345
|
value: elem
|
|
340
346
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
341
347
|
path: _path + ".exclusiveTagGroups",
|
|
342
|
-
expected: "Array<Array<string>>",
|
|
348
|
+
expected: "(Array<Array<string>> | undefined)",
|
|
343
349
|
value: input.exclusiveTagGroups
|
|
344
|
-
}, errorFactory)) && (("object" === typeof input.deadlines && null !== input.deadlines || $guard(_exceptionable, {
|
|
350
|
+
}, errorFactory)) && (undefined === input.deadlines || ("object" === typeof input.deadlines && null !== input.deadlines || $guard(_exceptionable, {
|
|
345
351
|
path: _path + ".deadlines",
|
|
346
|
-
expected: "__type.o9",
|
|
352
|
+
expected: "(__type.o9 | undefined)",
|
|
347
353
|
value: input.deadlines
|
|
348
354
|
}, errorFactory)) && $ao13(input.deadlines, _path + ".deadlines", true && _exceptionable) || $guard(_exceptionable, {
|
|
349
355
|
path: _path + ".deadlines",
|
|
350
|
-
expected: "__type.o9",
|
|
356
|
+
expected: "(__type.o9 | undefined)",
|
|
351
357
|
value: input.deadlines
|
|
352
|
-
}, errorFactory)) && (("object" === typeof input.assignees && null !== input.assignees || $guard(_exceptionable, {
|
|
358
|
+
}, errorFactory)) && (undefined === input.assignees || ("object" === typeof input.assignees && null !== input.assignees || $guard(_exceptionable, {
|
|
353
359
|
path: _path + ".assignees",
|
|
354
|
-
expected: "__type.o10",
|
|
360
|
+
expected: "(__type.o10 | undefined)",
|
|
355
361
|
value: input.assignees
|
|
356
362
|
}, errorFactory)) && $ao14(input.assignees, _path + ".assignees", true && _exceptionable) || $guard(_exceptionable, {
|
|
357
363
|
path: _path + ".assignees",
|
|
358
|
-
expected: "__type.o10",
|
|
364
|
+
expected: "(__type.o10 | undefined)",
|
|
359
365
|
value: input.assignees
|
|
360
366
|
}, errorFactory)) && (undefined === input.comments || ("object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) || $guard(_exceptionable, {
|
|
361
367
|
path: _path + ".comments",
|
|
@@ -365,13 +371,13 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
365
371
|
path: _path + ".comments",
|
|
366
372
|
expected: "(__type.o11 | undefined)",
|
|
367
373
|
value: input.comments
|
|
368
|
-
}, errorFactory)) && (("object" === typeof input.clock && null !== input.clock || $guard(_exceptionable, {
|
|
374
|
+
}, errorFactory)) && (undefined === input.clock || ("object" === typeof input.clock && null !== input.clock || $guard(_exceptionable, {
|
|
369
375
|
path: _path + ".clock",
|
|
370
|
-
expected: "__type.o12",
|
|
376
|
+
expected: "(__type.o12 | undefined)",
|
|
371
377
|
value: input.clock
|
|
372
378
|
}, errorFactory)) && $ao16(input.clock, _path + ".clock", true && _exceptionable) || $guard(_exceptionable, {
|
|
373
379
|
path: _path + ".clock",
|
|
374
|
-
expected: "__type.o12",
|
|
380
|
+
expected: "(__type.o12 | undefined)",
|
|
375
381
|
value: input.clock
|
|
376
382
|
}, errorFactory)) && (undefined === input.swarm || ("object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) || $guard(_exceptionable, {
|
|
377
383
|
path: _path + ".swarm",
|
|
@@ -381,73 +387,73 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
381
387
|
path: _path + ".swarm",
|
|
382
388
|
expected: "(__type.o13 | undefined)",
|
|
383
389
|
value: input.swarm
|
|
384
|
-
}, errorFactory)) && (("object" === typeof input.dashboard && null !== input.dashboard || $guard(_exceptionable, {
|
|
390
|
+
}, errorFactory)) && (undefined === input.dashboard || ("object" === typeof input.dashboard && null !== input.dashboard || $guard(_exceptionable, {
|
|
385
391
|
path: _path + ".dashboard",
|
|
386
|
-
expected: "__type.o14",
|
|
392
|
+
expected: "(__type.o14 | undefined)",
|
|
387
393
|
value: input.dashboard
|
|
388
394
|
}, errorFactory)) && $ao18(input.dashboard, _path + ".dashboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
389
395
|
path: _path + ".dashboard",
|
|
390
|
-
expected: "__type.o14",
|
|
396
|
+
expected: "(__type.o14 | undefined)",
|
|
391
397
|
value: input.dashboard
|
|
392
|
-
}, errorFactory)) && (("object" === typeof input.script && null !== input.script || $guard(_exceptionable, {
|
|
398
|
+
}, errorFactory)) && (undefined === input.script || ("object" === typeof input.script && null !== input.script || $guard(_exceptionable, {
|
|
393
399
|
path: _path + ".script",
|
|
394
|
-
expected: "__type.o15",
|
|
400
|
+
expected: "(__type.o15 | undefined)",
|
|
395
401
|
value: input.script
|
|
396
402
|
}, errorFactory)) && $ao19(input.script, _path + ".script", true && _exceptionable) || $guard(_exceptionable, {
|
|
397
403
|
path: _path + ".script",
|
|
398
|
-
expected: "__type.o15",
|
|
404
|
+
expected: "(__type.o15 | undefined)",
|
|
399
405
|
value: input.script
|
|
400
|
-
}, errorFactory)) && (("object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) || $guard(_exceptionable, {
|
|
406
|
+
}, errorFactory)) && (undefined === input.events || ("object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) || $guard(_exceptionable, {
|
|
401
407
|
path: _path + ".events",
|
|
402
|
-
expected: "__type.o17",
|
|
408
|
+
expected: "(__type.o17 | undefined)",
|
|
403
409
|
value: input.events
|
|
404
410
|
}, errorFactory)) && $ao22(input.events, _path + ".events", true && _exceptionable) || $guard(_exceptionable, {
|
|
405
411
|
path: _path + ".events",
|
|
406
|
-
expected: "__type.o17",
|
|
412
|
+
expected: "(__type.o17 | undefined)",
|
|
407
413
|
value: input.events
|
|
408
|
-
}, errorFactory)) && (("object" === typeof input.rundown && null !== input.rundown || $guard(_exceptionable, {
|
|
414
|
+
}, errorFactory)) && (undefined === input.rundown || ("object" === typeof input.rundown && null !== input.rundown || $guard(_exceptionable, {
|
|
409
415
|
path: _path + ".rundown",
|
|
410
|
-
expected: "__type.o18",
|
|
416
|
+
expected: "(__type.o18 | undefined)",
|
|
411
417
|
value: input.rundown
|
|
412
418
|
}, errorFactory)) && $ao23(input.rundown, _path + ".rundown", true && _exceptionable) || $guard(_exceptionable, {
|
|
413
419
|
path: _path + ".rundown",
|
|
414
|
-
expected: "__type.o18",
|
|
420
|
+
expected: "(__type.o18 | undefined)",
|
|
415
421
|
value: input.rundown
|
|
416
|
-
}, errorFactory)) && (("object" === typeof input.gallery && null !== input.gallery || $guard(_exceptionable, {
|
|
422
|
+
}, errorFactory)) && (undefined === input.gallery || ("object" === typeof input.gallery && null !== input.gallery || $guard(_exceptionable, {
|
|
417
423
|
path: _path + ".gallery",
|
|
418
|
-
expected: "__type.o19",
|
|
424
|
+
expected: "(__type.o19 | undefined)",
|
|
419
425
|
value: input.gallery
|
|
420
426
|
}, errorFactory)) && $ao24(input.gallery, _path + ".gallery", true && _exceptionable) || $guard(_exceptionable, {
|
|
421
427
|
path: _path + ".gallery",
|
|
422
|
-
expected: "__type.o19",
|
|
428
|
+
expected: "(__type.o19 | undefined)",
|
|
423
429
|
value: input.gallery
|
|
424
|
-
}, errorFactory)) && ("boolean" === typeof input.history || $guard(_exceptionable, {
|
|
430
|
+
}, errorFactory)) && (undefined === input.history || "boolean" === typeof input.history || $guard(_exceptionable, {
|
|
425
431
|
path: _path + ".history",
|
|
426
|
-
expected: "boolean",
|
|
432
|
+
expected: "(boolean | undefined)",
|
|
427
433
|
value: input.history
|
|
428
|
-
}, errorFactory)) && (("object" === typeof input.keymap && null !== input.keymap || $guard(_exceptionable, {
|
|
434
|
+
}, errorFactory)) && (undefined === input.keymap || ("object" === typeof input.keymap && null !== input.keymap || $guard(_exceptionable, {
|
|
429
435
|
path: _path + ".keymap",
|
|
430
|
-
expected: "__type.o20",
|
|
436
|
+
expected: "(__type.o20 | undefined)",
|
|
431
437
|
value: input.keymap
|
|
432
438
|
}, errorFactory)) && $ao25(input.keymap, _path + ".keymap", true && _exceptionable) || $guard(_exceptionable, {
|
|
433
439
|
path: _path + ".keymap",
|
|
434
|
-
expected: "__type.o20",
|
|
440
|
+
expected: "(__type.o20 | undefined)",
|
|
435
441
|
value: input.keymap
|
|
436
|
-
}, errorFactory)) && (("object" === typeof input.media && null !== input.media || $guard(_exceptionable, {
|
|
442
|
+
}, errorFactory)) && (undefined === input.media || ("object" === typeof input.media && null !== input.media || $guard(_exceptionable, {
|
|
437
443
|
path: _path + ".media",
|
|
438
|
-
expected: "__type.o32",
|
|
444
|
+
expected: "(__type.o32 | undefined)",
|
|
439
445
|
value: input.media
|
|
440
446
|
}, errorFactory)) && $ao38(input.media, _path + ".media", true && _exceptionable) || $guard(_exceptionable, {
|
|
441
447
|
path: _path + ".media",
|
|
442
|
-
expected: "__type.o32",
|
|
448
|
+
expected: "(__type.o32 | undefined)",
|
|
443
449
|
value: input.media
|
|
444
|
-
}, errorFactory)) && (("object" === typeof input.edit && null !== input.edit || $guard(_exceptionable, {
|
|
450
|
+
}, errorFactory)) && (undefined === input.edit || ("object" === typeof input.edit && null !== input.edit || $guard(_exceptionable, {
|
|
445
451
|
path: _path + ".edit",
|
|
446
|
-
expected: "__type.o44",
|
|
452
|
+
expected: "(__type.o44 | undefined)",
|
|
447
453
|
value: input.edit
|
|
448
454
|
}, errorFactory)) && $ao50(input.edit, _path + ".edit", true && _exceptionable) || $guard(_exceptionable, {
|
|
449
455
|
path: _path + ".edit",
|
|
450
|
-
expected: "__type.o44",
|
|
456
|
+
expected: "(__type.o44 | undefined)",
|
|
451
457
|
value: input.edit
|
|
452
458
|
}, errorFactory)) && (undefined === input.commands || (Array.isArray(input.commands) || $guard(_exceptionable, {
|
|
453
459
|
path: _path + ".commands",
|
|
@@ -477,17 +483,17 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
477
483
|
path: _path + ".predefinedTags",
|
|
478
484
|
expected: "(Array<string> | undefined)",
|
|
479
485
|
value: input.predefinedTags
|
|
480
|
-
}, errorFactory)) && (("object" === typeof input.storyboard && null !== input.storyboard || $guard(_exceptionable, {
|
|
486
|
+
}, errorFactory)) && (undefined === input.storyboard || ("object" === typeof input.storyboard && null !== input.storyboard || $guard(_exceptionable, {
|
|
481
487
|
path: _path + ".storyboard",
|
|
482
|
-
expected: "__type.o47",
|
|
488
|
+
expected: "(__type.o47 | undefined)",
|
|
483
489
|
value: input.storyboard
|
|
484
490
|
}, errorFactory)) && $ao53(input.storyboard, _path + ".storyboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
485
491
|
path: _path + ".storyboard",
|
|
486
|
-
expected: "__type.o47",
|
|
492
|
+
expected: "(__type.o47 | undefined)",
|
|
487
493
|
value: input.storyboard
|
|
488
|
-
}, errorFactory)) && ((Array.isArray(input.hiddenPreviews) || $guard(_exceptionable, {
|
|
494
|
+
}, errorFactory)) && (undefined === input.hiddenPreviews || (Array.isArray(input.hiddenPreviews) || $guard(_exceptionable, {
|
|
489
495
|
path: _path + ".hiddenPreviews",
|
|
490
|
-
expected: "Array<__type>.o4",
|
|
496
|
+
expected: "(Array<__type>.o4 | undefined)",
|
|
491
497
|
value: input.hiddenPreviews
|
|
492
498
|
}, errorFactory)) && input.hiddenPreviews.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
493
499
|
path: _path + ".hiddenPreviews[" + _index5 + "]",
|
|
@@ -499,23 +505,23 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
499
505
|
value: elem
|
|
500
506
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
501
507
|
path: _path + ".hiddenPreviews",
|
|
502
|
-
expected: "Array<__type>.o4",
|
|
508
|
+
expected: "(Array<__type>.o4 | undefined)",
|
|
503
509
|
value: input.hiddenPreviews
|
|
504
|
-
}, errorFactory)) && (("object" === typeof input.plugins && null !== input.plugins || $guard(_exceptionable, {
|
|
510
|
+
}, errorFactory)) && (undefined === input.plugins || ("object" === typeof input.plugins && null !== input.plugins || $guard(_exceptionable, {
|
|
505
511
|
path: _path + ".plugins",
|
|
506
|
-
expected: "__type.o57",
|
|
512
|
+
expected: "(__type.o57 | undefined)",
|
|
507
513
|
value: input.plugins
|
|
508
514
|
}, errorFactory)) && $ao63(input.plugins, _path + ".plugins", true && _exceptionable) || $guard(_exceptionable, {
|
|
509
515
|
path: _path + ".plugins",
|
|
510
|
-
expected: "__type.o57",
|
|
516
|
+
expected: "(__type.o57 | undefined)",
|
|
511
517
|
value: input.plugins
|
|
512
|
-
}, errorFactory)) && ("boolean" === typeof input.crashScreen || $guard(_exceptionable, {
|
|
518
|
+
}, errorFactory)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen || $guard(_exceptionable, {
|
|
513
519
|
path: _path + ".crashScreen",
|
|
514
|
-
expected: "boolean",
|
|
520
|
+
expected: "(boolean | undefined)",
|
|
515
521
|
value: input.crashScreen
|
|
516
|
-
}, errorFactory)) && ("boolean" === typeof input.debug || $guard(_exceptionable, {
|
|
522
|
+
}, errorFactory)) && (undefined === input.debug || "boolean" === typeof input.debug || $guard(_exceptionable, {
|
|
517
523
|
path: _path + ".debug",
|
|
518
|
-
expected: "boolean",
|
|
524
|
+
expected: "(boolean | undefined)",
|
|
519
525
|
value: input.debug
|
|
520
526
|
}, errorFactory)) && (undefined === input.featurePreview || ("object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) || $guard(_exceptionable, {
|
|
521
527
|
path: _path + ".featurePreview",
|
|
@@ -525,21 +531,21 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
525
531
|
path: _path + ".featurePreview",
|
|
526
532
|
expected: "(__type.o60 | undefined)",
|
|
527
533
|
value: input.featurePreview
|
|
528
|
-
}, errorFactory)) && (("object" === typeof input.flags && null !== input.flags || $guard(_exceptionable, {
|
|
534
|
+
}, errorFactory)) && (undefined === input.flags || ("object" === typeof input.flags && null !== input.flags || $guard(_exceptionable, {
|
|
529
535
|
path: _path + ".flags",
|
|
530
|
-
expected: "__type.o61",
|
|
536
|
+
expected: "(__type.o61 | undefined)",
|
|
531
537
|
value: input.flags
|
|
532
538
|
}, errorFactory)) && $ao67(input.flags, _path + ".flags", true && _exceptionable) || $guard(_exceptionable, {
|
|
533
539
|
path: _path + ".flags",
|
|
534
|
-
expected: "__type.o61",
|
|
540
|
+
expected: "(__type.o61 | undefined)",
|
|
535
541
|
value: input.flags
|
|
536
|
-
}, errorFactory)) && (("object" === typeof input.notifications && null !== input.notifications || $guard(_exceptionable, {
|
|
542
|
+
}, errorFactory)) && (undefined === input.notifications || ("object" === typeof input.notifications && null !== input.notifications || $guard(_exceptionable, {
|
|
537
543
|
path: _path + ".notifications",
|
|
538
|
-
expected: "__type.o62",
|
|
544
|
+
expected: "(__type.o62 | undefined)",
|
|
539
545
|
value: input.notifications
|
|
540
546
|
}, errorFactory)) && $ao68(input.notifications, _path + ".notifications", true && _exceptionable) || $guard(_exceptionable, {
|
|
541
547
|
path: _path + ".notifications",
|
|
542
|
-
expected: "__type.o62",
|
|
548
|
+
expected: "(__type.o62 | undefined)",
|
|
543
549
|
value: input.notifications
|
|
544
550
|
}, errorFactory)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert || $guard(_exceptionable, {
|
|
545
551
|
path: _path + ".suppressDeleteAlert",
|
|
@@ -1767,7 +1773,7 @@ export const assertSettings = (input, errorFactory) => {
|
|
|
1767
1773
|
value: value
|
|
1768
1774
|
}, errorFactory);
|
|
1769
1775
|
});
|
|
1770
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
1776
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1771
1777
|
path: _path + "",
|
|
1772
1778
|
expected: "Settings",
|
|
1773
1779
|
value: input
|
|
@@ -1803,29 +1809,74 @@ export const randomSettings = generator => {
|
|
|
1803
1809
|
() => undefined,
|
|
1804
1810
|
() => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1805
1811
|
])(),
|
|
1806
|
-
browser: $
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1812
|
+
browser: $pick([
|
|
1813
|
+
() => undefined,
|
|
1814
|
+
() => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1815
|
+
])(),
|
|
1816
|
+
toolbarTags: $pick([
|
|
1817
|
+
() => undefined,
|
|
1818
|
+
() => $ro12(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1819
|
+
])(),
|
|
1820
|
+
exclusiveTagGroups: $pick([
|
|
1821
|
+
() => undefined,
|
|
1822
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()))
|
|
1823
|
+
])(),
|
|
1824
|
+
deadlines: $pick([
|
|
1825
|
+
() => undefined,
|
|
1826
|
+
() => $ro13(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1827
|
+
])(),
|
|
1828
|
+
assignees: $pick([
|
|
1829
|
+
() => undefined,
|
|
1830
|
+
() => $ro14(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1831
|
+
])(),
|
|
1811
1832
|
comments: $pick([
|
|
1812
1833
|
() => undefined,
|
|
1813
1834
|
() => $ro15(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1814
1835
|
])(),
|
|
1815
|
-
clock: $
|
|
1836
|
+
clock: $pick([
|
|
1837
|
+
() => undefined,
|
|
1838
|
+
() => $ro16(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1839
|
+
])(),
|
|
1816
1840
|
swarm: $pick([
|
|
1817
1841
|
() => undefined,
|
|
1818
1842
|
() => $ro17(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1819
1843
|
])(),
|
|
1820
|
-
dashboard: $
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1844
|
+
dashboard: $pick([
|
|
1845
|
+
() => undefined,
|
|
1846
|
+
() => $ro18(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1847
|
+
])(),
|
|
1848
|
+
script: $pick([
|
|
1849
|
+
() => undefined,
|
|
1850
|
+
() => $ro19(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1851
|
+
])(),
|
|
1852
|
+
events: $pick([
|
|
1853
|
+
() => undefined,
|
|
1854
|
+
() => $ro22(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1855
|
+
])(),
|
|
1856
|
+
rundown: $pick([
|
|
1857
|
+
() => undefined,
|
|
1858
|
+
() => $ro23(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1859
|
+
])(),
|
|
1860
|
+
gallery: $pick([
|
|
1861
|
+
() => undefined,
|
|
1862
|
+
() => $ro24(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1863
|
+
])(),
|
|
1864
|
+
history: $pick([
|
|
1865
|
+
() => undefined,
|
|
1866
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
1867
|
+
])(),
|
|
1868
|
+
keymap: $pick([
|
|
1869
|
+
() => undefined,
|
|
1870
|
+
() => $ro25(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1871
|
+
])(),
|
|
1872
|
+
media: $pick([
|
|
1873
|
+
() => undefined,
|
|
1874
|
+
() => $ro38(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1875
|
+
])(),
|
|
1876
|
+
edit: $pick([
|
|
1877
|
+
() => undefined,
|
|
1878
|
+
() => $ro50(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1879
|
+
])(),
|
|
1829
1880
|
commands: $pick([
|
|
1830
1881
|
() => undefined,
|
|
1831
1882
|
() => (generator?.array ?? $generator.array)(() => $ro52(_recursive, _recursive ? 1 + _depth : _depth))
|
|
@@ -1834,17 +1885,38 @@ export const randomSettings = generator => {
|
|
|
1834
1885
|
() => undefined,
|
|
1835
1886
|
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
1836
1887
|
])(),
|
|
1837
|
-
storyboard: $
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1888
|
+
storyboard: $pick([
|
|
1889
|
+
() => undefined,
|
|
1890
|
+
() => $ro53(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1891
|
+
])(),
|
|
1892
|
+
hiddenPreviews: $pick([
|
|
1893
|
+
() => undefined,
|
|
1894
|
+
() => (generator?.array ?? $generator.array)(() => $ro62(_recursive, _recursive ? 1 + _depth : _depth))
|
|
1895
|
+
])(),
|
|
1896
|
+
plugins: $pick([
|
|
1897
|
+
() => undefined,
|
|
1898
|
+
() => $ro63(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1899
|
+
])(),
|
|
1900
|
+
crashScreen: $pick([
|
|
1901
|
+
() => undefined,
|
|
1902
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
1903
|
+
])(),
|
|
1904
|
+
debug: $pick([
|
|
1905
|
+
() => undefined,
|
|
1906
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
1907
|
+
])(),
|
|
1842
1908
|
featurePreview: $pick([
|
|
1843
1909
|
() => undefined,
|
|
1844
1910
|
() => $ro66(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1845
1911
|
])(),
|
|
1846
|
-
flags: $
|
|
1847
|
-
|
|
1912
|
+
flags: $pick([
|
|
1913
|
+
() => undefined,
|
|
1914
|
+
() => $ro67(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1915
|
+
])(),
|
|
1916
|
+
notifications: $pick([
|
|
1917
|
+
() => undefined,
|
|
1918
|
+
() => $ro68(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1919
|
+
])(),
|
|
1848
1920
|
suppressDeleteAlert: $pick([
|
|
1849
1921
|
() => undefined,
|
|
1850
1922
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
@@ -2454,7 +2526,7 @@ export const randomSettings = generator => {
|
|
|
2454
2526
|
export const assertGuardSettings = (input, errorFactory) => {
|
|
2455
2527
|
const __is = input => {
|
|
2456
2528
|
const $iv21 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
2457
|
-
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== 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)) && ("object" === typeof input.browser && null !== input.browser && $io8(input.browser)) && ("object" === typeof input.toolbarTags && null !== input.toolbarTags && $io12(input.toolbarTags)) && (Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every(elem => Array.isArray(elem) && elem.every(elem => "string" === typeof elem))) && ("object" === typeof input.deadlines && null !== input.deadlines && $io13(input.deadlines)) && ("object" === typeof input.assignees && null !== input.assignees && $io14(input.assignees)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && $io15(input.comments)) && ("object" === typeof input.clock && null !== input.clock && $io16(input.clock)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && $io17(input.swarm)) && ("object" === typeof input.dashboard && null !== input.dashboard && (
|
|
2529
|
+
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== 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 && $io8(input.browser)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== 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 && $io13(input.deadlines)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== 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 && $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 && $io18(input.dashboard)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && $io19(input.script)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && $io22(input.events)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && $io23(input.rundown)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && $io24(input.gallery)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && $io25(input.keymap)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && $io38(input.media)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && $io50(input.edit)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every(elem => "object" === typeof elem && null !== elem && $io52(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 && $io53(input.storyboard)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every(elem => "object" === typeof elem && null !== elem && $io62(elem))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && $io63(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) && $io66(input.featurePreview)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && $io67(input.flags)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && $io68(input.notifications)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert);
|
|
2458
2530
|
const $io1 = input => "boolean" === typeof input.overrideUserContact && "boolean" === typeof input.overrideUserLogin;
|
|
2459
2531
|
const $io2 = input => undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && $io3(input.tabs);
|
|
2460
2532
|
const $io3 = input => "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && ("number" === typeof input.settingsPanelStore.activeSectionIndex && "string" === typeof input.settingsPanelStore.activeTab) && Object.keys(input).every(key => {
|
|
@@ -2477,9 +2549,12 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2477
2549
|
const $io15 = input => (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));
|
|
2478
2550
|
const $io16 = input => "boolean" === typeof input.enable && "boolean" === typeof input.show24Hours && "boolean" === typeof input.showAmPm && "boolean" === typeof input.showSeconds && "boolean" === typeof input.showDayOfWeek && "boolean" === typeof input.showDate && (undefined === input.format || "string" === typeof input.format);
|
|
2479
2551
|
const $io17 = input => (undefined === input.color || "string" === typeof input.color) && (undefined === input.name || "string" === typeof input.name);
|
|
2552
|
+
const $io18 = input => "number" === typeof input.maxMru && "number" === typeof input.maxTabs;
|
|
2480
2553
|
const $io19 = input => "object" === typeof input.createMenu && null !== input.createMenu && "boolean" === typeof input.createMenu.showPreview && (Array.isArray(input.colorTags) && input.colorTags.every(elem => "object" === typeof elem && null !== elem && $io21(elem)));
|
|
2481
2554
|
const $io21 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
2482
2555
|
const $io22 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
|
|
2556
|
+
const $io23 = input => "boolean" === typeof input.eventThumbnails;
|
|
2557
|
+
const $io24 = input => "boolean" === typeof input.dimOnBlur;
|
|
2483
2558
|
const $io25 = input => "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && $io26(input.display) && ("object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && $io28(input.browser)) && ("object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && $io29(input.gallery)) && ("object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && $io30(input.global)) && ("object" === typeof input.player && null !== input.player && false === Array.isArray(input.player) && $io31(input.player)) && ("object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && $io32(input.script)) && ("object" === typeof input.codeEditor && null !== input.codeEditor && false === Array.isArray(input.codeEditor) && $io33(input.codeEditor)) && ("object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && $io34(input.bookmarks)) && ("object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && $io35(input.edit)) && ("object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && $io36(input.rundown)) && ("object" === typeof input.segment && null !== input.segment && false === Array.isArray(input.segment) && $io37(input.segment));
|
|
2484
2559
|
const $io26 = input => Object.keys(input).every(key => {
|
|
2485
2560
|
const value = input[key];
|
|
@@ -2582,7 +2657,7 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2582
2657
|
return true;
|
|
2583
2658
|
return Array.isArray(value) && value.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem);
|
|
2584
2659
|
});
|
|
2585
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
2660
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2586
2661
|
};
|
|
2587
2662
|
if (false === __is(input))
|
|
2588
2663
|
((input, _path, _exceptionable = true) => {
|
|
@@ -2625,25 +2700,25 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2625
2700
|
path: _path + ".download",
|
|
2626
2701
|
expected: "(__type.o3 | undefined)",
|
|
2627
2702
|
value: input.download
|
|
2628
|
-
}, errorFactory)) && (("object" === typeof input.browser && null !== input.browser || $guard(_exceptionable, {
|
|
2703
|
+
}, errorFactory)) && (undefined === input.browser || ("object" === typeof input.browser && null !== input.browser || $guard(_exceptionable, {
|
|
2629
2704
|
path: _path + ".browser",
|
|
2630
|
-
expected: "__type.o4",
|
|
2705
|
+
expected: "(__type.o4 | undefined)",
|
|
2631
2706
|
value: input.browser
|
|
2632
2707
|
}, errorFactory)) && $ao8(input.browser, _path + ".browser", true && _exceptionable) || $guard(_exceptionable, {
|
|
2633
2708
|
path: _path + ".browser",
|
|
2634
|
-
expected: "__type.o4",
|
|
2709
|
+
expected: "(__type.o4 | undefined)",
|
|
2635
2710
|
value: input.browser
|
|
2636
|
-
}, errorFactory)) && (("object" === typeof input.toolbarTags && null !== input.toolbarTags || $guard(_exceptionable, {
|
|
2711
|
+
}, errorFactory)) && (undefined === input.toolbarTags || ("object" === typeof input.toolbarTags && null !== input.toolbarTags || $guard(_exceptionable, {
|
|
2637
2712
|
path: _path + ".toolbarTags",
|
|
2638
|
-
expected: "__type.o8",
|
|
2713
|
+
expected: "(__type.o8 | undefined)",
|
|
2639
2714
|
value: input.toolbarTags
|
|
2640
2715
|
}, errorFactory)) && $ao12(input.toolbarTags, _path + ".toolbarTags", true && _exceptionable) || $guard(_exceptionable, {
|
|
2641
2716
|
path: _path + ".toolbarTags",
|
|
2642
|
-
expected: "__type.o8",
|
|
2717
|
+
expected: "(__type.o8 | undefined)",
|
|
2643
2718
|
value: input.toolbarTags
|
|
2644
|
-
}, errorFactory)) && ((Array.isArray(input.exclusiveTagGroups) || $guard(_exceptionable, {
|
|
2719
|
+
}, errorFactory)) && (undefined === input.exclusiveTagGroups || (Array.isArray(input.exclusiveTagGroups) || $guard(_exceptionable, {
|
|
2645
2720
|
path: _path + ".exclusiveTagGroups",
|
|
2646
|
-
expected: "Array<Array<string>>",
|
|
2721
|
+
expected: "(Array<Array<string>> | undefined)",
|
|
2647
2722
|
value: input.exclusiveTagGroups
|
|
2648
2723
|
}, errorFactory)) && input.exclusiveTagGroups.every((elem, _index1) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
2649
2724
|
path: _path + ".exclusiveTagGroups[" + _index1 + "]",
|
|
@@ -2659,23 +2734,23 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2659
2734
|
value: elem
|
|
2660
2735
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
2661
2736
|
path: _path + ".exclusiveTagGroups",
|
|
2662
|
-
expected: "Array<Array<string>>",
|
|
2737
|
+
expected: "(Array<Array<string>> | undefined)",
|
|
2663
2738
|
value: input.exclusiveTagGroups
|
|
2664
|
-
}, errorFactory)) && (("object" === typeof input.deadlines && null !== input.deadlines || $guard(_exceptionable, {
|
|
2739
|
+
}, errorFactory)) && (undefined === input.deadlines || ("object" === typeof input.deadlines && null !== input.deadlines || $guard(_exceptionable, {
|
|
2665
2740
|
path: _path + ".deadlines",
|
|
2666
|
-
expected: "__type.o9",
|
|
2741
|
+
expected: "(__type.o9 | undefined)",
|
|
2667
2742
|
value: input.deadlines
|
|
2668
2743
|
}, errorFactory)) && $ao13(input.deadlines, _path + ".deadlines", true && _exceptionable) || $guard(_exceptionable, {
|
|
2669
2744
|
path: _path + ".deadlines",
|
|
2670
|
-
expected: "__type.o9",
|
|
2745
|
+
expected: "(__type.o9 | undefined)",
|
|
2671
2746
|
value: input.deadlines
|
|
2672
|
-
}, errorFactory)) && (("object" === typeof input.assignees && null !== input.assignees || $guard(_exceptionable, {
|
|
2747
|
+
}, errorFactory)) && (undefined === input.assignees || ("object" === typeof input.assignees && null !== input.assignees || $guard(_exceptionable, {
|
|
2673
2748
|
path: _path + ".assignees",
|
|
2674
|
-
expected: "__type.o10",
|
|
2749
|
+
expected: "(__type.o10 | undefined)",
|
|
2675
2750
|
value: input.assignees
|
|
2676
2751
|
}, errorFactory)) && $ao14(input.assignees, _path + ".assignees", true && _exceptionable) || $guard(_exceptionable, {
|
|
2677
2752
|
path: _path + ".assignees",
|
|
2678
|
-
expected: "__type.o10",
|
|
2753
|
+
expected: "(__type.o10 | undefined)",
|
|
2679
2754
|
value: input.assignees
|
|
2680
2755
|
}, errorFactory)) && (undefined === input.comments || ("object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) || $guard(_exceptionable, {
|
|
2681
2756
|
path: _path + ".comments",
|
|
@@ -2685,13 +2760,13 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2685
2760
|
path: _path + ".comments",
|
|
2686
2761
|
expected: "(__type.o11 | undefined)",
|
|
2687
2762
|
value: input.comments
|
|
2688
|
-
}, errorFactory)) && (("object" === typeof input.clock && null !== input.clock || $guard(_exceptionable, {
|
|
2763
|
+
}, errorFactory)) && (undefined === input.clock || ("object" === typeof input.clock && null !== input.clock || $guard(_exceptionable, {
|
|
2689
2764
|
path: _path + ".clock",
|
|
2690
|
-
expected: "__type.o12",
|
|
2765
|
+
expected: "(__type.o12 | undefined)",
|
|
2691
2766
|
value: input.clock
|
|
2692
2767
|
}, errorFactory)) && $ao16(input.clock, _path + ".clock", true && _exceptionable) || $guard(_exceptionable, {
|
|
2693
2768
|
path: _path + ".clock",
|
|
2694
|
-
expected: "__type.o12",
|
|
2769
|
+
expected: "(__type.o12 | undefined)",
|
|
2695
2770
|
value: input.clock
|
|
2696
2771
|
}, errorFactory)) && (undefined === input.swarm || ("object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) || $guard(_exceptionable, {
|
|
2697
2772
|
path: _path + ".swarm",
|
|
@@ -2701,73 +2776,73 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2701
2776
|
path: _path + ".swarm",
|
|
2702
2777
|
expected: "(__type.o13 | undefined)",
|
|
2703
2778
|
value: input.swarm
|
|
2704
|
-
}, errorFactory)) && (("object" === typeof input.dashboard && null !== input.dashboard || $guard(_exceptionable, {
|
|
2779
|
+
}, errorFactory)) && (undefined === input.dashboard || ("object" === typeof input.dashboard && null !== input.dashboard || $guard(_exceptionable, {
|
|
2705
2780
|
path: _path + ".dashboard",
|
|
2706
|
-
expected: "__type.o14",
|
|
2781
|
+
expected: "(__type.o14 | undefined)",
|
|
2707
2782
|
value: input.dashboard
|
|
2708
2783
|
}, errorFactory)) && $ao18(input.dashboard, _path + ".dashboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
2709
2784
|
path: _path + ".dashboard",
|
|
2710
|
-
expected: "__type.o14",
|
|
2785
|
+
expected: "(__type.o14 | undefined)",
|
|
2711
2786
|
value: input.dashboard
|
|
2712
|
-
}, errorFactory)) && (("object" === typeof input.script && null !== input.script || $guard(_exceptionable, {
|
|
2787
|
+
}, errorFactory)) && (undefined === input.script || ("object" === typeof input.script && null !== input.script || $guard(_exceptionable, {
|
|
2713
2788
|
path: _path + ".script",
|
|
2714
|
-
expected: "__type.o15",
|
|
2789
|
+
expected: "(__type.o15 | undefined)",
|
|
2715
2790
|
value: input.script
|
|
2716
2791
|
}, errorFactory)) && $ao19(input.script, _path + ".script", true && _exceptionable) || $guard(_exceptionable, {
|
|
2717
2792
|
path: _path + ".script",
|
|
2718
|
-
expected: "__type.o15",
|
|
2793
|
+
expected: "(__type.o15 | undefined)",
|
|
2719
2794
|
value: input.script
|
|
2720
|
-
}, errorFactory)) && (("object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) || $guard(_exceptionable, {
|
|
2795
|
+
}, errorFactory)) && (undefined === input.events || ("object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) || $guard(_exceptionable, {
|
|
2721
2796
|
path: _path + ".events",
|
|
2722
|
-
expected: "__type.o17",
|
|
2797
|
+
expected: "(__type.o17 | undefined)",
|
|
2723
2798
|
value: input.events
|
|
2724
2799
|
}, errorFactory)) && $ao22(input.events, _path + ".events", true && _exceptionable) || $guard(_exceptionable, {
|
|
2725
2800
|
path: _path + ".events",
|
|
2726
|
-
expected: "__type.o17",
|
|
2801
|
+
expected: "(__type.o17 | undefined)",
|
|
2727
2802
|
value: input.events
|
|
2728
|
-
}, errorFactory)) && (("object" === typeof input.rundown && null !== input.rundown || $guard(_exceptionable, {
|
|
2803
|
+
}, errorFactory)) && (undefined === input.rundown || ("object" === typeof input.rundown && null !== input.rundown || $guard(_exceptionable, {
|
|
2729
2804
|
path: _path + ".rundown",
|
|
2730
|
-
expected: "__type.o18",
|
|
2805
|
+
expected: "(__type.o18 | undefined)",
|
|
2731
2806
|
value: input.rundown
|
|
2732
2807
|
}, errorFactory)) && $ao23(input.rundown, _path + ".rundown", true && _exceptionable) || $guard(_exceptionable, {
|
|
2733
2808
|
path: _path + ".rundown",
|
|
2734
|
-
expected: "__type.o18",
|
|
2809
|
+
expected: "(__type.o18 | undefined)",
|
|
2735
2810
|
value: input.rundown
|
|
2736
|
-
}, errorFactory)) && (("object" === typeof input.gallery && null !== input.gallery || $guard(_exceptionable, {
|
|
2811
|
+
}, errorFactory)) && (undefined === input.gallery || ("object" === typeof input.gallery && null !== input.gallery || $guard(_exceptionable, {
|
|
2737
2812
|
path: _path + ".gallery",
|
|
2738
|
-
expected: "__type.o19",
|
|
2813
|
+
expected: "(__type.o19 | undefined)",
|
|
2739
2814
|
value: input.gallery
|
|
2740
2815
|
}, errorFactory)) && $ao24(input.gallery, _path + ".gallery", true && _exceptionable) || $guard(_exceptionable, {
|
|
2741
2816
|
path: _path + ".gallery",
|
|
2742
|
-
expected: "__type.o19",
|
|
2817
|
+
expected: "(__type.o19 | undefined)",
|
|
2743
2818
|
value: input.gallery
|
|
2744
|
-
}, errorFactory)) && ("boolean" === typeof input.history || $guard(_exceptionable, {
|
|
2819
|
+
}, errorFactory)) && (undefined === input.history || "boolean" === typeof input.history || $guard(_exceptionable, {
|
|
2745
2820
|
path: _path + ".history",
|
|
2746
|
-
expected: "boolean",
|
|
2821
|
+
expected: "(boolean | undefined)",
|
|
2747
2822
|
value: input.history
|
|
2748
|
-
}, errorFactory)) && (("object" === typeof input.keymap && null !== input.keymap || $guard(_exceptionable, {
|
|
2823
|
+
}, errorFactory)) && (undefined === input.keymap || ("object" === typeof input.keymap && null !== input.keymap || $guard(_exceptionable, {
|
|
2749
2824
|
path: _path + ".keymap",
|
|
2750
|
-
expected: "__type.o20",
|
|
2825
|
+
expected: "(__type.o20 | undefined)",
|
|
2751
2826
|
value: input.keymap
|
|
2752
2827
|
}, errorFactory)) && $ao25(input.keymap, _path + ".keymap", true && _exceptionable) || $guard(_exceptionable, {
|
|
2753
2828
|
path: _path + ".keymap",
|
|
2754
|
-
expected: "__type.o20",
|
|
2829
|
+
expected: "(__type.o20 | undefined)",
|
|
2755
2830
|
value: input.keymap
|
|
2756
|
-
}, errorFactory)) && (("object" === typeof input.media && null !== input.media || $guard(_exceptionable, {
|
|
2831
|
+
}, errorFactory)) && (undefined === input.media || ("object" === typeof input.media && null !== input.media || $guard(_exceptionable, {
|
|
2757
2832
|
path: _path + ".media",
|
|
2758
|
-
expected: "__type.o32",
|
|
2833
|
+
expected: "(__type.o32 | undefined)",
|
|
2759
2834
|
value: input.media
|
|
2760
2835
|
}, errorFactory)) && $ao38(input.media, _path + ".media", true && _exceptionable) || $guard(_exceptionable, {
|
|
2761
2836
|
path: _path + ".media",
|
|
2762
|
-
expected: "__type.o32",
|
|
2837
|
+
expected: "(__type.o32 | undefined)",
|
|
2763
2838
|
value: input.media
|
|
2764
|
-
}, errorFactory)) && (("object" === typeof input.edit && null !== input.edit || $guard(_exceptionable, {
|
|
2839
|
+
}, errorFactory)) && (undefined === input.edit || ("object" === typeof input.edit && null !== input.edit || $guard(_exceptionable, {
|
|
2765
2840
|
path: _path + ".edit",
|
|
2766
|
-
expected: "__type.o44",
|
|
2841
|
+
expected: "(__type.o44 | undefined)",
|
|
2767
2842
|
value: input.edit
|
|
2768
2843
|
}, errorFactory)) && $ao50(input.edit, _path + ".edit", true && _exceptionable) || $guard(_exceptionable, {
|
|
2769
2844
|
path: _path + ".edit",
|
|
2770
|
-
expected: "__type.o44",
|
|
2845
|
+
expected: "(__type.o44 | undefined)",
|
|
2771
2846
|
value: input.edit
|
|
2772
2847
|
}, errorFactory)) && (undefined === input.commands || (Array.isArray(input.commands) || $guard(_exceptionable, {
|
|
2773
2848
|
path: _path + ".commands",
|
|
@@ -2797,17 +2872,17 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2797
2872
|
path: _path + ".predefinedTags",
|
|
2798
2873
|
expected: "(Array<string> | undefined)",
|
|
2799
2874
|
value: input.predefinedTags
|
|
2800
|
-
}, errorFactory)) && (("object" === typeof input.storyboard && null !== input.storyboard || $guard(_exceptionable, {
|
|
2875
|
+
}, errorFactory)) && (undefined === input.storyboard || ("object" === typeof input.storyboard && null !== input.storyboard || $guard(_exceptionable, {
|
|
2801
2876
|
path: _path + ".storyboard",
|
|
2802
|
-
expected: "__type.o47",
|
|
2877
|
+
expected: "(__type.o47 | undefined)",
|
|
2803
2878
|
value: input.storyboard
|
|
2804
2879
|
}, errorFactory)) && $ao53(input.storyboard, _path + ".storyboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
2805
2880
|
path: _path + ".storyboard",
|
|
2806
|
-
expected: "__type.o47",
|
|
2881
|
+
expected: "(__type.o47 | undefined)",
|
|
2807
2882
|
value: input.storyboard
|
|
2808
|
-
}, errorFactory)) && ((Array.isArray(input.hiddenPreviews) || $guard(_exceptionable, {
|
|
2883
|
+
}, errorFactory)) && (undefined === input.hiddenPreviews || (Array.isArray(input.hiddenPreviews) || $guard(_exceptionable, {
|
|
2809
2884
|
path: _path + ".hiddenPreviews",
|
|
2810
|
-
expected: "Array<__type>.o4",
|
|
2885
|
+
expected: "(Array<__type>.o4 | undefined)",
|
|
2811
2886
|
value: input.hiddenPreviews
|
|
2812
2887
|
}, errorFactory)) && input.hiddenPreviews.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
2813
2888
|
path: _path + ".hiddenPreviews[" + _index5 + "]",
|
|
@@ -2819,23 +2894,23 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2819
2894
|
value: elem
|
|
2820
2895
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
2821
2896
|
path: _path + ".hiddenPreviews",
|
|
2822
|
-
expected: "Array<__type>.o4",
|
|
2897
|
+
expected: "(Array<__type>.o4 | undefined)",
|
|
2823
2898
|
value: input.hiddenPreviews
|
|
2824
|
-
}, errorFactory)) && (("object" === typeof input.plugins && null !== input.plugins || $guard(_exceptionable, {
|
|
2899
|
+
}, errorFactory)) && (undefined === input.plugins || ("object" === typeof input.plugins && null !== input.plugins || $guard(_exceptionable, {
|
|
2825
2900
|
path: _path + ".plugins",
|
|
2826
|
-
expected: "__type.o57",
|
|
2901
|
+
expected: "(__type.o57 | undefined)",
|
|
2827
2902
|
value: input.plugins
|
|
2828
2903
|
}, errorFactory)) && $ao63(input.plugins, _path + ".plugins", true && _exceptionable) || $guard(_exceptionable, {
|
|
2829
2904
|
path: _path + ".plugins",
|
|
2830
|
-
expected: "__type.o57",
|
|
2905
|
+
expected: "(__type.o57 | undefined)",
|
|
2831
2906
|
value: input.plugins
|
|
2832
|
-
}, errorFactory)) && ("boolean" === typeof input.crashScreen || $guard(_exceptionable, {
|
|
2907
|
+
}, errorFactory)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen || $guard(_exceptionable, {
|
|
2833
2908
|
path: _path + ".crashScreen",
|
|
2834
|
-
expected: "boolean",
|
|
2909
|
+
expected: "(boolean | undefined)",
|
|
2835
2910
|
value: input.crashScreen
|
|
2836
|
-
}, errorFactory)) && ("boolean" === typeof input.debug || $guard(_exceptionable, {
|
|
2911
|
+
}, errorFactory)) && (undefined === input.debug || "boolean" === typeof input.debug || $guard(_exceptionable, {
|
|
2837
2912
|
path: _path + ".debug",
|
|
2838
|
-
expected: "boolean",
|
|
2913
|
+
expected: "(boolean | undefined)",
|
|
2839
2914
|
value: input.debug
|
|
2840
2915
|
}, errorFactory)) && (undefined === input.featurePreview || ("object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) || $guard(_exceptionable, {
|
|
2841
2916
|
path: _path + ".featurePreview",
|
|
@@ -2845,21 +2920,21 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
2845
2920
|
path: _path + ".featurePreview",
|
|
2846
2921
|
expected: "(__type.o60 | undefined)",
|
|
2847
2922
|
value: input.featurePreview
|
|
2848
|
-
}, errorFactory)) && (("object" === typeof input.flags && null !== input.flags || $guard(_exceptionable, {
|
|
2923
|
+
}, errorFactory)) && (undefined === input.flags || ("object" === typeof input.flags && null !== input.flags || $guard(_exceptionable, {
|
|
2849
2924
|
path: _path + ".flags",
|
|
2850
|
-
expected: "__type.o61",
|
|
2925
|
+
expected: "(__type.o61 | undefined)",
|
|
2851
2926
|
value: input.flags
|
|
2852
2927
|
}, errorFactory)) && $ao67(input.flags, _path + ".flags", true && _exceptionable) || $guard(_exceptionable, {
|
|
2853
2928
|
path: _path + ".flags",
|
|
2854
|
-
expected: "__type.o61",
|
|
2929
|
+
expected: "(__type.o61 | undefined)",
|
|
2855
2930
|
value: input.flags
|
|
2856
|
-
}, errorFactory)) && (("object" === typeof input.notifications && null !== input.notifications || $guard(_exceptionable, {
|
|
2931
|
+
}, errorFactory)) && (undefined === input.notifications || ("object" === typeof input.notifications && null !== input.notifications || $guard(_exceptionable, {
|
|
2857
2932
|
path: _path + ".notifications",
|
|
2858
|
-
expected: "__type.o62",
|
|
2933
|
+
expected: "(__type.o62 | undefined)",
|
|
2859
2934
|
value: input.notifications
|
|
2860
2935
|
}, errorFactory)) && $ao68(input.notifications, _path + ".notifications", true && _exceptionable) || $guard(_exceptionable, {
|
|
2861
2936
|
path: _path + ".notifications",
|
|
2862
|
-
expected: "__type.o62",
|
|
2937
|
+
expected: "(__type.o62 | undefined)",
|
|
2863
2938
|
value: input.notifications
|
|
2864
2939
|
}, errorFactory)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert || $guard(_exceptionable, {
|
|
2865
2940
|
path: _path + ".suppressDeleteAlert",
|
|
@@ -4087,7 +4162,7 @@ export const assertGuardSettings = (input, errorFactory) => {
|
|
|
4087
4162
|
value: value
|
|
4088
4163
|
}, errorFactory);
|
|
4089
4164
|
});
|
|
4090
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
4165
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
4091
4166
|
path: _path + "",
|
|
4092
4167
|
expected: "Settings",
|
|
4093
4168
|
value: input
|
|
@@ -4240,7 +4315,7 @@ export const stringifySettings = input => {
|
|
|
4240
4315
|
const $tail = __typia.json.createStringify.tail;
|
|
4241
4316
|
const $throws = __typia.json.createStringify.throws;
|
|
4242
4317
|
const $iv45 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
4243
|
-
const $so0 = input => `{${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? `{"overrideUserContact":${input.permission.overrideUserContact},"overrideUserLogin":${input.permission.overrideUserLogin}}` : undefined},`}${undefined === input.module ? "" : `"module":${undefined !== input.module ? $so2(input.module) : undefined},`}${undefined === input.upload ? "" : `"upload":${undefined !== input.upload ? $so6(input.upload) : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? $so7(input.download) : undefined},`}${undefined === input.
|
|
4318
|
+
const $so0 = input => `{${$tail(`${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? `{"overrideUserContact":${input.permission.overrideUserContact},"overrideUserLogin":${input.permission.overrideUserLogin}}` : undefined},`}${undefined === input.module ? "" : `"module":${undefined !== input.module ? $so2(input.module) : undefined},`}${undefined === input.upload ? "" : `"upload":${undefined !== input.upload ? $so6(input.upload) : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? $so7(input.download) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? $so8(input.browser) : undefined},`}${undefined === input.toolbarTags ? "" : `"toolbarTags":${undefined !== input.toolbarTags ? $so12(input.toolbarTags) : undefined},`}${undefined === input.exclusiveTagGroups ? "" : `"exclusiveTagGroups":${undefined !== input.exclusiveTagGroups ? `[${input.exclusiveTagGroups.map(elem => `[${elem.map(elem => $string(elem)).join(",")}]`).join(",")}]` : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? $so13(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? $so14(input.assignees) : undefined},`}${undefined === input.comments ? "" : `"comments":${undefined !== input.comments ? $so15(input.comments) : undefined},`}${undefined === input.clock ? "" : `"clock":${undefined !== input.clock ? $so16(input.clock) : undefined},`}${undefined === input.swarm ? "" : `"swarm":${undefined !== input.swarm ? $so17(input.swarm) : undefined},`}${undefined === input.dashboard ? "" : `"dashboard":${undefined !== input.dashboard ? `{"maxMru":${input.dashboard.maxMru},"maxTabs":${input.dashboard.maxTabs}}` : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? $so19(input.script) : undefined},`}${undefined === input.events ? "" : `"events":${undefined !== input.events ? $so22(input.events) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? `{"eventThumbnails":${input.rundown.eventThumbnails}}` : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? `{"dimOnBlur":${input.gallery.dimOnBlur}}` : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? input.history : undefined},`}${undefined === input.keymap ? "" : `"keymap":${undefined !== input.keymap ? $so25(input.keymap) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? $so38(input.media) : undefined},`}${undefined === input.edit ? "" : `"edit":${undefined !== input.edit ? $so50(input.edit) : undefined},`}${undefined === input.commands ? "" : `"commands":${undefined !== input.commands ? `[${input.commands.map(elem => $so52(elem)).join(",")}]` : undefined},`}${undefined === input.predefinedTags ? "" : `"predefinedTags":${undefined !== input.predefinedTags ? `[${input.predefinedTags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.storyboard ? "" : `"storyboard":${undefined !== input.storyboard ? $so53(input.storyboard) : undefined},`}${undefined === input.hiddenPreviews ? "" : `"hiddenPreviews":${undefined !== input.hiddenPreviews ? `[${input.hiddenPreviews.map(elem => `{"id":${$string(elem.id)},"folded":${elem.folded}}`).join(",")}]` : undefined},`}${undefined === input.plugins ? "" : `"plugins":${undefined !== input.plugins ? $so63(input.plugins) : undefined},`}${undefined === input.crashScreen ? "" : `"crashScreen":${undefined !== input.crashScreen ? input.crashScreen : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? input.debug : undefined},`}${undefined === input.featurePreview ? "" : `"featurePreview":${undefined !== input.featurePreview ? $so66(input.featurePreview) : undefined},`}${undefined === input.flags ? "" : `"flags":${undefined !== input.flags ? $so67(input.flags) : undefined},`}${undefined === input.notifications ? "" : `"notifications":${undefined !== input.notifications ? $so68(input.notifications) : undefined},`}${undefined === input.suppressDeleteAlert ? "" : `"suppressDeleteAlert":${undefined !== input.suppressDeleteAlert ? input.suppressDeleteAlert : undefined}`}`)}}`;
|
|
4244
4319
|
const $so2 = input => `{${$tail(`${undefined === input.tabs ? "" : `"tabs":${undefined !== input.tabs ? $so3(input.tabs) : undefined}`}`)}}`;
|
|
4245
4320
|
const $so3 = input => `{${$tail(`"settingsPanelStore":${`{"activeSectionIndex":${input.settingsPanelStore.activeSectionIndex},"activeTab":${$string(input.settingsPanelStore.activeTab)}}`},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
4246
4321
|
return ""; if (["settingsPanelStore"].some(regular => regular === key))
|
|
@@ -4443,7 +4518,7 @@ export const stringifySettings = input => {
|
|
|
4443
4518
|
export const assertStringifySettings = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
4444
4519
|
const __is = input => {
|
|
4445
4520
|
const $iv21 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
4446
|
-
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime && !Number.isNaN(input.autoLogoutTime)) && (undefined === input.permission || "object" === typeof input.permission && null !== 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)) && ("object" === typeof input.browser && null !== input.browser && $io8(input.browser)) && ("object" === typeof input.toolbarTags && null !== input.toolbarTags && $io12(input.toolbarTags)) && (Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every(elem => Array.isArray(elem) && elem.every(elem => "string" === typeof elem))) && ("object" === typeof input.deadlines && null !== input.deadlines && $io13(input.deadlines)) && ("object" === typeof input.assignees && null !== input.assignees && $io14(input.assignees)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && $io15(input.comments)) && ("object" === typeof input.clock && null !== input.clock && $io16(input.clock)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && $io17(input.swarm)) && ("object" === typeof input.dashboard && null !== input.dashboard && (
|
|
4521
|
+
const $io0 = input => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime && !Number.isNaN(input.autoLogoutTime)) && (undefined === input.permission || "object" === typeof input.permission && null !== 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 && $io8(input.browser)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== 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 && $io13(input.deadlines)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== 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 && $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 && $io18(input.dashboard)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && $io19(input.script)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && $io22(input.events)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && $io23(input.rundown)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && $io24(input.gallery)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && $io25(input.keymap)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && $io38(input.media)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && $io50(input.edit)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every(elem => "object" === typeof elem && null !== elem && $io52(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 && $io53(input.storyboard)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every(elem => "object" === typeof elem && null !== elem && $io62(elem))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && $io63(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) && $io66(input.featurePreview)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && $io67(input.flags)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && $io68(input.notifications)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert);
|
|
4447
4522
|
const $io1 = input => "boolean" === typeof input.overrideUserContact && "boolean" === typeof input.overrideUserLogin;
|
|
4448
4523
|
const $io2 = input => undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && $io3(input.tabs);
|
|
4449
4524
|
const $io3 = input => "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && ("number" === typeof input.settingsPanelStore.activeSectionIndex && !Number.isNaN(input.settingsPanelStore.activeSectionIndex) && "string" === typeof input.settingsPanelStore.activeTab) && Object.keys(input).every(key => {
|
|
@@ -4466,9 +4541,12 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4466
4541
|
const $io15 = input => (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));
|
|
4467
4542
|
const $io16 = input => "boolean" === typeof input.enable && "boolean" === typeof input.show24Hours && "boolean" === typeof input.showAmPm && "boolean" === typeof input.showSeconds && "boolean" === typeof input.showDayOfWeek && "boolean" === typeof input.showDate && (undefined === input.format || "string" === typeof input.format);
|
|
4468
4543
|
const $io17 = input => (undefined === input.color || "string" === typeof input.color) && (undefined === input.name || "string" === typeof input.name);
|
|
4544
|
+
const $io18 = input => "number" === typeof input.maxMru && !Number.isNaN(input.maxMru) && ("number" === typeof input.maxTabs && !Number.isNaN(input.maxTabs));
|
|
4469
4545
|
const $io19 = input => "object" === typeof input.createMenu && null !== input.createMenu && "boolean" === typeof input.createMenu.showPreview && (Array.isArray(input.colorTags) && input.colorTags.every(elem => "object" === typeof elem && null !== elem && $io21(elem)));
|
|
4470
4546
|
const $io21 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
|
|
4471
4547
|
const $io22 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
|
|
4548
|
+
const $io23 = input => "boolean" === typeof input.eventThumbnails;
|
|
4549
|
+
const $io24 = input => "boolean" === typeof input.dimOnBlur;
|
|
4472
4550
|
const $io25 = input => "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && $io26(input.display) && ("object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && $io28(input.browser)) && ("object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && $io29(input.gallery)) && ("object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && $io30(input.global)) && ("object" === typeof input.player && null !== input.player && false === Array.isArray(input.player) && $io31(input.player)) && ("object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && $io32(input.script)) && ("object" === typeof input.codeEditor && null !== input.codeEditor && false === Array.isArray(input.codeEditor) && $io33(input.codeEditor)) && ("object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && $io34(input.bookmarks)) && ("object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && $io35(input.edit)) && ("object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && $io36(input.rundown)) && ("object" === typeof input.segment && null !== input.segment && false === Array.isArray(input.segment) && $io37(input.segment));
|
|
4473
4551
|
const $io26 = input => Object.keys(input).every(key => {
|
|
4474
4552
|
const value = input[key];
|
|
@@ -4571,7 +4649,7 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4571
4649
|
return true;
|
|
4572
4650
|
return Array.isArray(value) && value.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem);
|
|
4573
4651
|
});
|
|
4574
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
4652
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
4575
4653
|
};
|
|
4576
4654
|
if (false === __is(input))
|
|
4577
4655
|
((input, _path, _exceptionable = true) => {
|
|
@@ -4614,25 +4692,25 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4614
4692
|
path: _path + ".download",
|
|
4615
4693
|
expected: "(__type.o3 | undefined)",
|
|
4616
4694
|
value: input.download
|
|
4617
|
-
}, errorFactory)) && (("object" === typeof input.browser && null !== input.browser || $guard(_exceptionable, {
|
|
4695
|
+
}, errorFactory)) && (undefined === input.browser || ("object" === typeof input.browser && null !== input.browser || $guard(_exceptionable, {
|
|
4618
4696
|
path: _path + ".browser",
|
|
4619
|
-
expected: "__type.o4",
|
|
4697
|
+
expected: "(__type.o4 | undefined)",
|
|
4620
4698
|
value: input.browser
|
|
4621
4699
|
}, errorFactory)) && $ao8(input.browser, _path + ".browser", true && _exceptionable) || $guard(_exceptionable, {
|
|
4622
4700
|
path: _path + ".browser",
|
|
4623
|
-
expected: "__type.o4",
|
|
4701
|
+
expected: "(__type.o4 | undefined)",
|
|
4624
4702
|
value: input.browser
|
|
4625
|
-
}, errorFactory)) && (("object" === typeof input.toolbarTags && null !== input.toolbarTags || $guard(_exceptionable, {
|
|
4703
|
+
}, errorFactory)) && (undefined === input.toolbarTags || ("object" === typeof input.toolbarTags && null !== input.toolbarTags || $guard(_exceptionable, {
|
|
4626
4704
|
path: _path + ".toolbarTags",
|
|
4627
|
-
expected: "__type.o8",
|
|
4705
|
+
expected: "(__type.o8 | undefined)",
|
|
4628
4706
|
value: input.toolbarTags
|
|
4629
4707
|
}, errorFactory)) && $ao12(input.toolbarTags, _path + ".toolbarTags", true && _exceptionable) || $guard(_exceptionable, {
|
|
4630
4708
|
path: _path + ".toolbarTags",
|
|
4631
|
-
expected: "__type.o8",
|
|
4709
|
+
expected: "(__type.o8 | undefined)",
|
|
4632
4710
|
value: input.toolbarTags
|
|
4633
|
-
}, errorFactory)) && ((Array.isArray(input.exclusiveTagGroups) || $guard(_exceptionable, {
|
|
4711
|
+
}, errorFactory)) && (undefined === input.exclusiveTagGroups || (Array.isArray(input.exclusiveTagGroups) || $guard(_exceptionable, {
|
|
4634
4712
|
path: _path + ".exclusiveTagGroups",
|
|
4635
|
-
expected: "Array<Array<string>>",
|
|
4713
|
+
expected: "(Array<Array<string>> | undefined)",
|
|
4636
4714
|
value: input.exclusiveTagGroups
|
|
4637
4715
|
}, errorFactory)) && input.exclusiveTagGroups.every((elem, _index1) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
4638
4716
|
path: _path + ".exclusiveTagGroups[" + _index1 + "]",
|
|
@@ -4648,23 +4726,23 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4648
4726
|
value: elem
|
|
4649
4727
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
4650
4728
|
path: _path + ".exclusiveTagGroups",
|
|
4651
|
-
expected: "Array<Array<string>>",
|
|
4729
|
+
expected: "(Array<Array<string>> | undefined)",
|
|
4652
4730
|
value: input.exclusiveTagGroups
|
|
4653
|
-
}, errorFactory)) && (("object" === typeof input.deadlines && null !== input.deadlines || $guard(_exceptionable, {
|
|
4731
|
+
}, errorFactory)) && (undefined === input.deadlines || ("object" === typeof input.deadlines && null !== input.deadlines || $guard(_exceptionable, {
|
|
4654
4732
|
path: _path + ".deadlines",
|
|
4655
|
-
expected: "__type.o9",
|
|
4733
|
+
expected: "(__type.o9 | undefined)",
|
|
4656
4734
|
value: input.deadlines
|
|
4657
4735
|
}, errorFactory)) && $ao13(input.deadlines, _path + ".deadlines", true && _exceptionable) || $guard(_exceptionable, {
|
|
4658
4736
|
path: _path + ".deadlines",
|
|
4659
|
-
expected: "__type.o9",
|
|
4737
|
+
expected: "(__type.o9 | undefined)",
|
|
4660
4738
|
value: input.deadlines
|
|
4661
|
-
}, errorFactory)) && (("object" === typeof input.assignees && null !== input.assignees || $guard(_exceptionable, {
|
|
4739
|
+
}, errorFactory)) && (undefined === input.assignees || ("object" === typeof input.assignees && null !== input.assignees || $guard(_exceptionable, {
|
|
4662
4740
|
path: _path + ".assignees",
|
|
4663
|
-
expected: "__type.o10",
|
|
4741
|
+
expected: "(__type.o10 | undefined)",
|
|
4664
4742
|
value: input.assignees
|
|
4665
4743
|
}, errorFactory)) && $ao14(input.assignees, _path + ".assignees", true && _exceptionable) || $guard(_exceptionable, {
|
|
4666
4744
|
path: _path + ".assignees",
|
|
4667
|
-
expected: "__type.o10",
|
|
4745
|
+
expected: "(__type.o10 | undefined)",
|
|
4668
4746
|
value: input.assignees
|
|
4669
4747
|
}, errorFactory)) && (undefined === input.comments || ("object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) || $guard(_exceptionable, {
|
|
4670
4748
|
path: _path + ".comments",
|
|
@@ -4674,13 +4752,13 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4674
4752
|
path: _path + ".comments",
|
|
4675
4753
|
expected: "(__type.o11 | undefined)",
|
|
4676
4754
|
value: input.comments
|
|
4677
|
-
}, errorFactory)) && (("object" === typeof input.clock && null !== input.clock || $guard(_exceptionable, {
|
|
4755
|
+
}, errorFactory)) && (undefined === input.clock || ("object" === typeof input.clock && null !== input.clock || $guard(_exceptionable, {
|
|
4678
4756
|
path: _path + ".clock",
|
|
4679
|
-
expected: "__type.o12",
|
|
4757
|
+
expected: "(__type.o12 | undefined)",
|
|
4680
4758
|
value: input.clock
|
|
4681
4759
|
}, errorFactory)) && $ao16(input.clock, _path + ".clock", true && _exceptionable) || $guard(_exceptionable, {
|
|
4682
4760
|
path: _path + ".clock",
|
|
4683
|
-
expected: "__type.o12",
|
|
4761
|
+
expected: "(__type.o12 | undefined)",
|
|
4684
4762
|
value: input.clock
|
|
4685
4763
|
}, errorFactory)) && (undefined === input.swarm || ("object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) || $guard(_exceptionable, {
|
|
4686
4764
|
path: _path + ".swarm",
|
|
@@ -4690,73 +4768,73 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4690
4768
|
path: _path + ".swarm",
|
|
4691
4769
|
expected: "(__type.o13 | undefined)",
|
|
4692
4770
|
value: input.swarm
|
|
4693
|
-
}, errorFactory)) && (("object" === typeof input.dashboard && null !== input.dashboard || $guard(_exceptionable, {
|
|
4771
|
+
}, errorFactory)) && (undefined === input.dashboard || ("object" === typeof input.dashboard && null !== input.dashboard || $guard(_exceptionable, {
|
|
4694
4772
|
path: _path + ".dashboard",
|
|
4695
|
-
expected: "__type.o14",
|
|
4773
|
+
expected: "(__type.o14 | undefined)",
|
|
4696
4774
|
value: input.dashboard
|
|
4697
4775
|
}, errorFactory)) && $ao18(input.dashboard, _path + ".dashboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
4698
4776
|
path: _path + ".dashboard",
|
|
4699
|
-
expected: "__type.o14",
|
|
4777
|
+
expected: "(__type.o14 | undefined)",
|
|
4700
4778
|
value: input.dashboard
|
|
4701
|
-
}, errorFactory)) && (("object" === typeof input.script && null !== input.script || $guard(_exceptionable, {
|
|
4779
|
+
}, errorFactory)) && (undefined === input.script || ("object" === typeof input.script && null !== input.script || $guard(_exceptionable, {
|
|
4702
4780
|
path: _path + ".script",
|
|
4703
|
-
expected: "__type.o15",
|
|
4781
|
+
expected: "(__type.o15 | undefined)",
|
|
4704
4782
|
value: input.script
|
|
4705
4783
|
}, errorFactory)) && $ao19(input.script, _path + ".script", true && _exceptionable) || $guard(_exceptionable, {
|
|
4706
4784
|
path: _path + ".script",
|
|
4707
|
-
expected: "__type.o15",
|
|
4785
|
+
expected: "(__type.o15 | undefined)",
|
|
4708
4786
|
value: input.script
|
|
4709
|
-
}, errorFactory)) && (("object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) || $guard(_exceptionable, {
|
|
4787
|
+
}, errorFactory)) && (undefined === input.events || ("object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) || $guard(_exceptionable, {
|
|
4710
4788
|
path: _path + ".events",
|
|
4711
|
-
expected: "__type.o17",
|
|
4789
|
+
expected: "(__type.o17 | undefined)",
|
|
4712
4790
|
value: input.events
|
|
4713
4791
|
}, errorFactory)) && $ao22(input.events, _path + ".events", true && _exceptionable) || $guard(_exceptionable, {
|
|
4714
4792
|
path: _path + ".events",
|
|
4715
|
-
expected: "__type.o17",
|
|
4793
|
+
expected: "(__type.o17 | undefined)",
|
|
4716
4794
|
value: input.events
|
|
4717
|
-
}, errorFactory)) && (("object" === typeof input.rundown && null !== input.rundown || $guard(_exceptionable, {
|
|
4795
|
+
}, errorFactory)) && (undefined === input.rundown || ("object" === typeof input.rundown && null !== input.rundown || $guard(_exceptionable, {
|
|
4718
4796
|
path: _path + ".rundown",
|
|
4719
|
-
expected: "__type.o18",
|
|
4797
|
+
expected: "(__type.o18 | undefined)",
|
|
4720
4798
|
value: input.rundown
|
|
4721
4799
|
}, errorFactory)) && $ao23(input.rundown, _path + ".rundown", true && _exceptionable) || $guard(_exceptionable, {
|
|
4722
4800
|
path: _path + ".rundown",
|
|
4723
|
-
expected: "__type.o18",
|
|
4801
|
+
expected: "(__type.o18 | undefined)",
|
|
4724
4802
|
value: input.rundown
|
|
4725
|
-
}, errorFactory)) && (("object" === typeof input.gallery && null !== input.gallery || $guard(_exceptionable, {
|
|
4803
|
+
}, errorFactory)) && (undefined === input.gallery || ("object" === typeof input.gallery && null !== input.gallery || $guard(_exceptionable, {
|
|
4726
4804
|
path: _path + ".gallery",
|
|
4727
|
-
expected: "__type.o19",
|
|
4805
|
+
expected: "(__type.o19 | undefined)",
|
|
4728
4806
|
value: input.gallery
|
|
4729
4807
|
}, errorFactory)) && $ao24(input.gallery, _path + ".gallery", true && _exceptionable) || $guard(_exceptionable, {
|
|
4730
4808
|
path: _path + ".gallery",
|
|
4731
|
-
expected: "__type.o19",
|
|
4809
|
+
expected: "(__type.o19 | undefined)",
|
|
4732
4810
|
value: input.gallery
|
|
4733
|
-
}, errorFactory)) && ("boolean" === typeof input.history || $guard(_exceptionable, {
|
|
4811
|
+
}, errorFactory)) && (undefined === input.history || "boolean" === typeof input.history || $guard(_exceptionable, {
|
|
4734
4812
|
path: _path + ".history",
|
|
4735
|
-
expected: "boolean",
|
|
4813
|
+
expected: "(boolean | undefined)",
|
|
4736
4814
|
value: input.history
|
|
4737
|
-
}, errorFactory)) && (("object" === typeof input.keymap && null !== input.keymap || $guard(_exceptionable, {
|
|
4815
|
+
}, errorFactory)) && (undefined === input.keymap || ("object" === typeof input.keymap && null !== input.keymap || $guard(_exceptionable, {
|
|
4738
4816
|
path: _path + ".keymap",
|
|
4739
|
-
expected: "__type.o20",
|
|
4817
|
+
expected: "(__type.o20 | undefined)",
|
|
4740
4818
|
value: input.keymap
|
|
4741
4819
|
}, errorFactory)) && $ao25(input.keymap, _path + ".keymap", true && _exceptionable) || $guard(_exceptionable, {
|
|
4742
4820
|
path: _path + ".keymap",
|
|
4743
|
-
expected: "__type.o20",
|
|
4821
|
+
expected: "(__type.o20 | undefined)",
|
|
4744
4822
|
value: input.keymap
|
|
4745
|
-
}, errorFactory)) && (("object" === typeof input.media && null !== input.media || $guard(_exceptionable, {
|
|
4823
|
+
}, errorFactory)) && (undefined === input.media || ("object" === typeof input.media && null !== input.media || $guard(_exceptionable, {
|
|
4746
4824
|
path: _path + ".media",
|
|
4747
|
-
expected: "__type.o32",
|
|
4825
|
+
expected: "(__type.o32 | undefined)",
|
|
4748
4826
|
value: input.media
|
|
4749
4827
|
}, errorFactory)) && $ao38(input.media, _path + ".media", true && _exceptionable) || $guard(_exceptionable, {
|
|
4750
4828
|
path: _path + ".media",
|
|
4751
|
-
expected: "__type.o32",
|
|
4829
|
+
expected: "(__type.o32 | undefined)",
|
|
4752
4830
|
value: input.media
|
|
4753
|
-
}, errorFactory)) && (("object" === typeof input.edit && null !== input.edit || $guard(_exceptionable, {
|
|
4831
|
+
}, errorFactory)) && (undefined === input.edit || ("object" === typeof input.edit && null !== input.edit || $guard(_exceptionable, {
|
|
4754
4832
|
path: _path + ".edit",
|
|
4755
|
-
expected: "__type.o44",
|
|
4833
|
+
expected: "(__type.o44 | undefined)",
|
|
4756
4834
|
value: input.edit
|
|
4757
4835
|
}, errorFactory)) && $ao50(input.edit, _path + ".edit", true && _exceptionable) || $guard(_exceptionable, {
|
|
4758
4836
|
path: _path + ".edit",
|
|
4759
|
-
expected: "__type.o44",
|
|
4837
|
+
expected: "(__type.o44 | undefined)",
|
|
4760
4838
|
value: input.edit
|
|
4761
4839
|
}, errorFactory)) && (undefined === input.commands || (Array.isArray(input.commands) || $guard(_exceptionable, {
|
|
4762
4840
|
path: _path + ".commands",
|
|
@@ -4786,17 +4864,17 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4786
4864
|
path: _path + ".predefinedTags",
|
|
4787
4865
|
expected: "(Array<string> | undefined)",
|
|
4788
4866
|
value: input.predefinedTags
|
|
4789
|
-
}, errorFactory)) && (("object" === typeof input.storyboard && null !== input.storyboard || $guard(_exceptionable, {
|
|
4867
|
+
}, errorFactory)) && (undefined === input.storyboard || ("object" === typeof input.storyboard && null !== input.storyboard || $guard(_exceptionable, {
|
|
4790
4868
|
path: _path + ".storyboard",
|
|
4791
|
-
expected: "__type.o47",
|
|
4869
|
+
expected: "(__type.o47 | undefined)",
|
|
4792
4870
|
value: input.storyboard
|
|
4793
4871
|
}, errorFactory)) && $ao53(input.storyboard, _path + ".storyboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
4794
4872
|
path: _path + ".storyboard",
|
|
4795
|
-
expected: "__type.o47",
|
|
4873
|
+
expected: "(__type.o47 | undefined)",
|
|
4796
4874
|
value: input.storyboard
|
|
4797
|
-
}, errorFactory)) && ((Array.isArray(input.hiddenPreviews) || $guard(_exceptionable, {
|
|
4875
|
+
}, errorFactory)) && (undefined === input.hiddenPreviews || (Array.isArray(input.hiddenPreviews) || $guard(_exceptionable, {
|
|
4798
4876
|
path: _path + ".hiddenPreviews",
|
|
4799
|
-
expected: "Array<__type>.o4",
|
|
4877
|
+
expected: "(Array<__type>.o4 | undefined)",
|
|
4800
4878
|
value: input.hiddenPreviews
|
|
4801
4879
|
}, errorFactory)) && input.hiddenPreviews.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
4802
4880
|
path: _path + ".hiddenPreviews[" + _index5 + "]",
|
|
@@ -4808,23 +4886,23 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4808
4886
|
value: elem
|
|
4809
4887
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
4810
4888
|
path: _path + ".hiddenPreviews",
|
|
4811
|
-
expected: "Array<__type>.o4",
|
|
4889
|
+
expected: "(Array<__type>.o4 | undefined)",
|
|
4812
4890
|
value: input.hiddenPreviews
|
|
4813
|
-
}, errorFactory)) && (("object" === typeof input.plugins && null !== input.plugins || $guard(_exceptionable, {
|
|
4891
|
+
}, errorFactory)) && (undefined === input.plugins || ("object" === typeof input.plugins && null !== input.plugins || $guard(_exceptionable, {
|
|
4814
4892
|
path: _path + ".plugins",
|
|
4815
|
-
expected: "__type.o57",
|
|
4893
|
+
expected: "(__type.o57 | undefined)",
|
|
4816
4894
|
value: input.plugins
|
|
4817
4895
|
}, errorFactory)) && $ao63(input.plugins, _path + ".plugins", true && _exceptionable) || $guard(_exceptionable, {
|
|
4818
4896
|
path: _path + ".plugins",
|
|
4819
|
-
expected: "__type.o57",
|
|
4897
|
+
expected: "(__type.o57 | undefined)",
|
|
4820
4898
|
value: input.plugins
|
|
4821
|
-
}, errorFactory)) && ("boolean" === typeof input.crashScreen || $guard(_exceptionable, {
|
|
4899
|
+
}, errorFactory)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen || $guard(_exceptionable, {
|
|
4822
4900
|
path: _path + ".crashScreen",
|
|
4823
|
-
expected: "boolean",
|
|
4901
|
+
expected: "(boolean | undefined)",
|
|
4824
4902
|
value: input.crashScreen
|
|
4825
|
-
}, errorFactory)) && ("boolean" === typeof input.debug || $guard(_exceptionable, {
|
|
4903
|
+
}, errorFactory)) && (undefined === input.debug || "boolean" === typeof input.debug || $guard(_exceptionable, {
|
|
4826
4904
|
path: _path + ".debug",
|
|
4827
|
-
expected: "boolean",
|
|
4905
|
+
expected: "(boolean | undefined)",
|
|
4828
4906
|
value: input.debug
|
|
4829
4907
|
}, errorFactory)) && (undefined === input.featurePreview || ("object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) || $guard(_exceptionable, {
|
|
4830
4908
|
path: _path + ".featurePreview",
|
|
@@ -4834,21 +4912,21 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
4834
4912
|
path: _path + ".featurePreview",
|
|
4835
4913
|
expected: "(__type.o60 | undefined)",
|
|
4836
4914
|
value: input.featurePreview
|
|
4837
|
-
}, errorFactory)) && (("object" === typeof input.flags && null !== input.flags || $guard(_exceptionable, {
|
|
4915
|
+
}, errorFactory)) && (undefined === input.flags || ("object" === typeof input.flags && null !== input.flags || $guard(_exceptionable, {
|
|
4838
4916
|
path: _path + ".flags",
|
|
4839
|
-
expected: "__type.o61",
|
|
4917
|
+
expected: "(__type.o61 | undefined)",
|
|
4840
4918
|
value: input.flags
|
|
4841
4919
|
}, errorFactory)) && $ao67(input.flags, _path + ".flags", true && _exceptionable) || $guard(_exceptionable, {
|
|
4842
4920
|
path: _path + ".flags",
|
|
4843
|
-
expected: "__type.o61",
|
|
4921
|
+
expected: "(__type.o61 | undefined)",
|
|
4844
4922
|
value: input.flags
|
|
4845
|
-
}, errorFactory)) && (("object" === typeof input.notifications && null !== input.notifications || $guard(_exceptionable, {
|
|
4923
|
+
}, errorFactory)) && (undefined === input.notifications || ("object" === typeof input.notifications && null !== input.notifications || $guard(_exceptionable, {
|
|
4846
4924
|
path: _path + ".notifications",
|
|
4847
|
-
expected: "__type.o62",
|
|
4925
|
+
expected: "(__type.o62 | undefined)",
|
|
4848
4926
|
value: input.notifications
|
|
4849
4927
|
}, errorFactory)) && $ao68(input.notifications, _path + ".notifications", true && _exceptionable) || $guard(_exceptionable, {
|
|
4850
4928
|
path: _path + ".notifications",
|
|
4851
|
-
expected: "__type.o62",
|
|
4929
|
+
expected: "(__type.o62 | undefined)",
|
|
4852
4930
|
value: input.notifications
|
|
4853
4931
|
}, errorFactory)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert || $guard(_exceptionable, {
|
|
4854
4932
|
path: _path + ".suppressDeleteAlert",
|
|
@@ -6076,7 +6154,7 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
6076
6154
|
value: value
|
|
6077
6155
|
}, errorFactory);
|
|
6078
6156
|
});
|
|
6079
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
6157
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
6080
6158
|
path: _path + "",
|
|
6081
6159
|
expected: "Settings",
|
|
6082
6160
|
value: input
|
|
@@ -6229,7 +6307,7 @@ export const assertStringifySettings = (input, errorFactory) => { const assert =
|
|
|
6229
6307
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
6230
6308
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
6231
6309
|
const $iv45 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]);
|
|
6232
|
-
const $so0 = input => `{${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? `{"overrideUserContact":${input.permission.overrideUserContact},"overrideUserLogin":${input.permission.overrideUserLogin}}` : undefined},`}${undefined === input.module ? "" : `"module":${undefined !== input.module ? $so2(input.module) : undefined},`}${undefined === input.upload ? "" : `"upload":${undefined !== input.upload ? $so6(input.upload) : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? $so7(input.download) : undefined},`}${undefined === input.
|
|
6310
|
+
const $so0 = input => `{${$tail(`${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? `{"overrideUserContact":${input.permission.overrideUserContact},"overrideUserLogin":${input.permission.overrideUserLogin}}` : undefined},`}${undefined === input.module ? "" : `"module":${undefined !== input.module ? $so2(input.module) : undefined},`}${undefined === input.upload ? "" : `"upload":${undefined !== input.upload ? $so6(input.upload) : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? $so7(input.download) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? $so8(input.browser) : undefined},`}${undefined === input.toolbarTags ? "" : `"toolbarTags":${undefined !== input.toolbarTags ? $so12(input.toolbarTags) : undefined},`}${undefined === input.exclusiveTagGroups ? "" : `"exclusiveTagGroups":${undefined !== input.exclusiveTagGroups ? `[${input.exclusiveTagGroups.map(elem => `[${elem.map(elem => $string(elem)).join(",")}]`).join(",")}]` : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? $so13(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? $so14(input.assignees) : undefined},`}${undefined === input.comments ? "" : `"comments":${undefined !== input.comments ? $so15(input.comments) : undefined},`}${undefined === input.clock ? "" : `"clock":${undefined !== input.clock ? $so16(input.clock) : undefined},`}${undefined === input.swarm ? "" : `"swarm":${undefined !== input.swarm ? $so17(input.swarm) : undefined},`}${undefined === input.dashboard ? "" : `"dashboard":${undefined !== input.dashboard ? `{"maxMru":${input.dashboard.maxMru},"maxTabs":${input.dashboard.maxTabs}}` : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? $so19(input.script) : undefined},`}${undefined === input.events ? "" : `"events":${undefined !== input.events ? $so22(input.events) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? `{"eventThumbnails":${input.rundown.eventThumbnails}}` : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? `{"dimOnBlur":${input.gallery.dimOnBlur}}` : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? input.history : undefined},`}${undefined === input.keymap ? "" : `"keymap":${undefined !== input.keymap ? $so25(input.keymap) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? $so38(input.media) : undefined},`}${undefined === input.edit ? "" : `"edit":${undefined !== input.edit ? $so50(input.edit) : undefined},`}${undefined === input.commands ? "" : `"commands":${undefined !== input.commands ? `[${input.commands.map(elem => $so52(elem)).join(",")}]` : undefined},`}${undefined === input.predefinedTags ? "" : `"predefinedTags":${undefined !== input.predefinedTags ? `[${input.predefinedTags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.storyboard ? "" : `"storyboard":${undefined !== input.storyboard ? $so53(input.storyboard) : undefined},`}${undefined === input.hiddenPreviews ? "" : `"hiddenPreviews":${undefined !== input.hiddenPreviews ? `[${input.hiddenPreviews.map(elem => `{"id":${$string(elem.id)},"folded":${elem.folded}}`).join(",")}]` : undefined},`}${undefined === input.plugins ? "" : `"plugins":${undefined !== input.plugins ? $so63(input.plugins) : undefined},`}${undefined === input.crashScreen ? "" : `"crashScreen":${undefined !== input.crashScreen ? input.crashScreen : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? input.debug : undefined},`}${undefined === input.featurePreview ? "" : `"featurePreview":${undefined !== input.featurePreview ? $so66(input.featurePreview) : undefined},`}${undefined === input.flags ? "" : `"flags":${undefined !== input.flags ? $so67(input.flags) : undefined},`}${undefined === input.notifications ? "" : `"notifications":${undefined !== input.notifications ? $so68(input.notifications) : undefined},`}${undefined === input.suppressDeleteAlert ? "" : `"suppressDeleteAlert":${undefined !== input.suppressDeleteAlert ? input.suppressDeleteAlert : undefined}`}`)}}`;
|
|
6233
6311
|
const $so2 = input => `{${$tail(`${undefined === input.tabs ? "" : `"tabs":${undefined !== input.tabs ? $so3(input.tabs) : undefined}`}`)}}`;
|
|
6234
6312
|
const $so3 = input => `{${$tail(`"settingsPanelStore":${`{"activeSectionIndex":${input.settingsPanelStore.activeSectionIndex},"activeTab":${$string(input.settingsPanelStore.activeTab)}}`},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
6235
6313
|
return ""; if (["settingsPanelStore"].some(regular => regular === key))
|