@nxtedition/types 23.0.21 → 23.0.23
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 +4 -0
- package/dist/app.js +25 -9
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/nxtpression.d.ts +3 -3
- package/dist/common/nxtpression.js +39 -49
- package/dist/common/render-preset.d.ts +12 -24
- package/dist/common/render-preset.js +735 -257
- package/dist/common/render-profile.d.ts +28 -0
- package/dist/common/render-profile.js +726 -0
- package/dist/common/render-query.d.ts +18 -0
- package/dist/common/render-query.js +1093 -0
- package/dist/common/render-scene.d.ts +38 -0
- package/dist/common/render-scene.js +1116 -0
- package/dist/domains/file.d.ts +9 -1
- package/dist/domains/file.js +1258 -0
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +7 -27
- package/dist/domains/media.js +428 -138
- package/dist/domains/panel.js +218 -675
- package/dist/domains/pipeline.d.ts +1 -0
- package/dist/domains/pipeline.js +43 -6
- package/dist/domains/render-preset.d.ts +2 -2
- package/dist/domains/render.d.ts +44 -0
- package/dist/domains/render.js +1273 -0
- package/dist/index.js +16 -12
- package/dist/rpc.d.ts +3 -3
- package/dist/rpc.js +59 -50
- package/dist/schema.json +966 -120
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -5,21 +5,21 @@ export * from './app.js';
|
|
|
5
5
|
export * from './rpc.js';
|
|
6
6
|
export * from './asset.js';
|
|
7
7
|
export const isDomains = input => {
|
|
8
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
8
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
9
9
|
return true === $iv1.has(input);
|
|
10
10
|
};
|
|
11
11
|
export const assertDomains = (input, errorFactory) => {
|
|
12
12
|
const __is = input => {
|
|
13
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
13
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
14
14
|
return true === $iv1.has(input);
|
|
15
15
|
};
|
|
16
16
|
if (false === __is(input))
|
|
17
17
|
((input, _path, _exceptionable = true) => {
|
|
18
18
|
const $guard = __typia.createAssert.guard;
|
|
19
|
-
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
19
|
+
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
20
20
|
return true === $av1.has(input) || $guard(true, {
|
|
21
21
|
path: _path + "",
|
|
22
|
-
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
22
|
+
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":file.stats?\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":render.query?\" | \":render.result?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
23
23
|
value: input
|
|
24
24
|
}, errorFactory);
|
|
25
25
|
})(input, "$input", true);
|
|
@@ -72,6 +72,7 @@ export const randomDomains = generator => {
|
|
|
72
72
|
() => ":event._template?",
|
|
73
73
|
() => ":file.replicate",
|
|
74
74
|
() => ":file.restrictions",
|
|
75
|
+
() => ":file.stats?",
|
|
75
76
|
() => ":general.title",
|
|
76
77
|
() => ":general.tags",
|
|
77
78
|
() => ":general.created",
|
|
@@ -97,6 +98,9 @@ export const randomDomains = generator => {
|
|
|
97
98
|
() => ":planning.assignees",
|
|
98
99
|
() => ":planning.deadline",
|
|
99
100
|
() => ":render-preset",
|
|
101
|
+
() => ":render.stats?",
|
|
102
|
+
() => ":render.query?",
|
|
103
|
+
() => ":render.result?",
|
|
100
104
|
() => ":revs?",
|
|
101
105
|
() => ":role.tags",
|
|
102
106
|
() => ":script.children",
|
|
@@ -117,16 +121,16 @@ export const randomDomains = generator => {
|
|
|
117
121
|
};
|
|
118
122
|
export const assertGuardDomains = (input, errorFactory) => {
|
|
119
123
|
const __is = input => {
|
|
120
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
124
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
121
125
|
return true === $iv1.has(input);
|
|
122
126
|
};
|
|
123
127
|
if (false === __is(input))
|
|
124
128
|
((input, _path, _exceptionable = true) => {
|
|
125
129
|
const $guard = __typia.createAssertGuard.guard;
|
|
126
|
-
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
130
|
+
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
127
131
|
return true === $av1.has(input) || $guard(true, {
|
|
128
132
|
path: _path + "",
|
|
129
|
-
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
133
|
+
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":file.stats?\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":render.query?\" | \":render.result?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
130
134
|
value: input
|
|
131
135
|
}, errorFactory);
|
|
132
136
|
})(input, "$input", true);
|
|
@@ -140,23 +144,23 @@ export const stringifyDomains = input => {
|
|
|
140
144
|
if ("string" === typeof input)
|
|
141
145
|
return "\"" + input + "\"";
|
|
142
146
|
$throws({
|
|
143
|
-
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
147
|
+
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":file.stats?\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":render.query?\" | \":render.result?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
144
148
|
value: input
|
|
145
149
|
});
|
|
146
150
|
})();
|
|
147
151
|
};
|
|
148
152
|
export const assertStringifyDomains = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
149
153
|
const __is = input => {
|
|
150
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
154
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
151
155
|
return true === $iv1.has(input);
|
|
152
156
|
};
|
|
153
157
|
if (false === __is(input))
|
|
154
158
|
((input, _path, _exceptionable = true) => {
|
|
155
159
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
156
|
-
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
160
|
+
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":clone", "comment-reaction", "comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":contact", ":deepstream.replicate", ":edit", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
157
161
|
return true === $av1.has(input) || $guard(true, {
|
|
158
162
|
path: _path + "",
|
|
159
|
-
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
163
|
+
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":file.stats?\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":render.query?\" | \":render.result?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
160
164
|
value: input
|
|
161
165
|
}, errorFactory);
|
|
162
166
|
})(input, "$input", true);
|
|
@@ -170,7 +174,7 @@ export const assertStringifyDomains = (input, errorFactory) => { const assert =
|
|
|
170
174
|
if ("string" === typeof input)
|
|
171
175
|
return "\"" + input + "\"";
|
|
172
176
|
$throws({
|
|
173
|
-
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
177
|
+
expected: "(\":_user-notification-status\" | \":asset.assignees?\" | \":asset.comments?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.presence?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":comment\" | \":comment.reactions?\" | \":comment.readMarks?\" | \":comment.replies?\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":deepstream.replicate\" | \":edit\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":file.stats?\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":media.updateGraphics?\" | \":media.updateSubtitles?\" | \":panel\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.accepts\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":render.query?\" | \":render.result?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
174
178
|
value: input
|
|
175
179
|
});
|
|
176
180
|
})();
|
package/dist/rpc.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ export declare const stringifyNxtImportMode: (input: NxtImportMode) => string;
|
|
|
45
45
|
export declare const assertStringifyNxtImportMode: (input: unknown) => string;
|
|
46
46
|
export interface NxtExport {
|
|
47
47
|
version: number;
|
|
48
|
-
date
|
|
49
|
-
root
|
|
48
|
+
date?: string;
|
|
49
|
+
root?: string[];
|
|
50
50
|
assets: {
|
|
51
51
|
[assetId: string]: {
|
|
52
|
-
_children
|
|
52
|
+
_children?: string[];
|
|
53
53
|
[domain: string]: unknown;
|
|
54
54
|
};
|
|
55
55
|
};
|
package/dist/rpc.js
CHANGED
|
@@ -81,14 +81,14 @@ export const assertStringifyNxtImportMode = (input, errorFactory) => { const ass
|
|
|
81
81
|
})();
|
|
82
82
|
}; return stringify(assert(input, errorFactory)); };
|
|
83
83
|
export const isNxtExport = input => {
|
|
84
|
-
const $io0 = input => "number" === typeof input.version && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
84
|
+
const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
85
85
|
const $io1 = input => Object.keys(input).every(key => {
|
|
86
86
|
const value = input[key];
|
|
87
87
|
if (undefined === value)
|
|
88
88
|
return true;
|
|
89
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
89
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
90
90
|
});
|
|
91
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
91
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
92
92
|
if (["_children"].some(prop => key === prop))
|
|
93
93
|
return true;
|
|
94
94
|
const value = input[key];
|
|
@@ -100,14 +100,14 @@ export const isNxtExport = input => {
|
|
|
100
100
|
};
|
|
101
101
|
export const assertNxtExport = (input, errorFactory) => {
|
|
102
102
|
const __is = input => {
|
|
103
|
-
const $io0 = input => "number" === typeof input.version && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
103
|
+
const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
104
104
|
const $io1 = input => Object.keys(input).every(key => {
|
|
105
105
|
const value = input[key];
|
|
106
106
|
if (undefined === value)
|
|
107
107
|
return true;
|
|
108
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
108
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
109
109
|
});
|
|
110
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
110
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
111
111
|
if (["_children"].some(prop => key === prop))
|
|
112
112
|
return true;
|
|
113
113
|
const value = input[key];
|
|
@@ -125,13 +125,13 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
125
125
|
path: _path + ".version",
|
|
126
126
|
expected: "number",
|
|
127
127
|
value: input.version
|
|
128
|
-
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
128
|
+
}, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
|
|
129
129
|
path: _path + ".date",
|
|
130
|
-
expected: "string",
|
|
130
|
+
expected: "(string | undefined)",
|
|
131
131
|
value: input.date
|
|
132
|
-
}, errorFactory)) && ((Array.isArray(input.root) || $guard(_exceptionable, {
|
|
132
|
+
}, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
|
|
133
133
|
path: _path + ".root",
|
|
134
|
-
expected: "Array<string>",
|
|
134
|
+
expected: "(Array<string> | undefined)",
|
|
135
135
|
value: input.root
|
|
136
136
|
}, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
137
137
|
path: _path + ".root[" + _index1 + "]",
|
|
@@ -139,7 +139,7 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
139
139
|
value: elem
|
|
140
140
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
141
141
|
path: _path + ".root",
|
|
142
|
-
expected: "Array<string>",
|
|
142
|
+
expected: "(Array<string> | undefined)",
|
|
143
143
|
value: input.root
|
|
144
144
|
}, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
|
|
145
145
|
path: _path + ".assets",
|
|
@@ -166,7 +166,7 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
166
166
|
const value = input[key];
|
|
167
167
|
if (undefined === value)
|
|
168
168
|
return true;
|
|
169
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
169
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
|
170
170
|
path: _path + $join(key),
|
|
171
171
|
expected: "__type.o1",
|
|
172
172
|
value: value
|
|
@@ -176,9 +176,9 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
176
176
|
value: value
|
|
177
177
|
}, errorFactory);
|
|
178
178
|
});
|
|
179
|
-
const $ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input._children) || $guard(_exceptionable, {
|
|
179
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
|
|
180
180
|
path: _path + "._children",
|
|
181
|
-
expected: "Array<string>",
|
|
181
|
+
expected: "(Array<string> | undefined)",
|
|
182
182
|
value: input._children
|
|
183
183
|
}, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
184
184
|
path: _path + "._children[" + _index3 + "]",
|
|
@@ -186,7 +186,7 @@ export const assertNxtExport = (input, errorFactory) => {
|
|
|
186
186
|
value: elem
|
|
187
187
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
188
188
|
path: _path + "._children",
|
|
189
|
-
expected: "Array<string>",
|
|
189
|
+
expected: "(Array<string> | undefined)",
|
|
190
190
|
value: input._children
|
|
191
191
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
192
192
|
if (["_children"].some(prop => key === prop))
|
|
@@ -213,8 +213,14 @@ export const randomNxtExport = generator => {
|
|
|
213
213
|
const $pick = __typia.createRandom.pick;
|
|
214
214
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
215
215
|
version: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
216
|
-
date:
|
|
217
|
-
|
|
216
|
+
date: $pick([
|
|
217
|
+
() => undefined,
|
|
218
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
219
|
+
])(),
|
|
220
|
+
root: $pick([
|
|
221
|
+
() => undefined,
|
|
222
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
223
|
+
])(),
|
|
218
224
|
assets: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
|
|
219
225
|
files: $pick([
|
|
220
226
|
() => undefined,
|
|
@@ -228,7 +234,10 @@ export const randomNxtExport = generator => {
|
|
|
228
234
|
};
|
|
229
235
|
const $ro2 = (_recursive = false, _depth = 0) => {
|
|
230
236
|
const output = {
|
|
231
|
-
_children:
|
|
237
|
+
_children: $pick([
|
|
238
|
+
() => undefined,
|
|
239
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
240
|
+
])()
|
|
232
241
|
};
|
|
233
242
|
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
234
243
|
return output;
|
|
@@ -237,14 +246,14 @@ export const randomNxtExport = generator => {
|
|
|
237
246
|
};
|
|
238
247
|
export const assertGuardNxtExport = (input, errorFactory) => {
|
|
239
248
|
const __is = input => {
|
|
240
|
-
const $io0 = input => "number" === typeof input.version && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
249
|
+
const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
241
250
|
const $io1 = input => Object.keys(input).every(key => {
|
|
242
251
|
const value = input[key];
|
|
243
252
|
if (undefined === value)
|
|
244
253
|
return true;
|
|
245
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
254
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
246
255
|
});
|
|
247
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
256
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
248
257
|
if (["_children"].some(prop => key === prop))
|
|
249
258
|
return true;
|
|
250
259
|
const value = input[key];
|
|
@@ -262,13 +271,13 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
262
271
|
path: _path + ".version",
|
|
263
272
|
expected: "number",
|
|
264
273
|
value: input.version
|
|
265
|
-
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
274
|
+
}, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
|
|
266
275
|
path: _path + ".date",
|
|
267
|
-
expected: "string",
|
|
276
|
+
expected: "(string | undefined)",
|
|
268
277
|
value: input.date
|
|
269
|
-
}, errorFactory)) && ((Array.isArray(input.root) || $guard(_exceptionable, {
|
|
278
|
+
}, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
|
|
270
279
|
path: _path + ".root",
|
|
271
|
-
expected: "Array<string>",
|
|
280
|
+
expected: "(Array<string> | undefined)",
|
|
272
281
|
value: input.root
|
|
273
282
|
}, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
274
283
|
path: _path + ".root[" + _index1 + "]",
|
|
@@ -276,7 +285,7 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
276
285
|
value: elem
|
|
277
286
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
278
287
|
path: _path + ".root",
|
|
279
|
-
expected: "Array<string>",
|
|
288
|
+
expected: "(Array<string> | undefined)",
|
|
280
289
|
value: input.root
|
|
281
290
|
}, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
|
|
282
291
|
path: _path + ".assets",
|
|
@@ -303,7 +312,7 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
303
312
|
const value = input[key];
|
|
304
313
|
if (undefined === value)
|
|
305
314
|
return true;
|
|
306
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
315
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
|
307
316
|
path: _path + $join(key),
|
|
308
317
|
expected: "__type.o1",
|
|
309
318
|
value: value
|
|
@@ -313,9 +322,9 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
313
322
|
value: value
|
|
314
323
|
}, errorFactory);
|
|
315
324
|
});
|
|
316
|
-
const $ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input._children) || $guard(_exceptionable, {
|
|
325
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
|
|
317
326
|
path: _path + "._children",
|
|
318
|
-
expected: "Array<string>",
|
|
327
|
+
expected: "(Array<string> | undefined)",
|
|
319
328
|
value: input._children
|
|
320
329
|
}, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
321
330
|
path: _path + "._children[" + _index3 + "]",
|
|
@@ -323,7 +332,7 @@ export const assertGuardNxtExport = (input, errorFactory) => {
|
|
|
323
332
|
value: elem
|
|
324
333
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
325
334
|
path: _path + "._children",
|
|
326
|
-
expected: "Array<string>",
|
|
335
|
+
expected: "(Array<string> | undefined)",
|
|
327
336
|
value: input._children
|
|
328
337
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
329
338
|
if (["_children"].some(prop => key === prop))
|
|
@@ -349,9 +358,9 @@ export const stringifyNxtExport = input => {
|
|
|
349
358
|
const value = input[key];
|
|
350
359
|
if (undefined === value)
|
|
351
360
|
return true;
|
|
352
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
361
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
353
362
|
});
|
|
354
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
363
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
355
364
|
if (["_children"].some(prop => key === prop))
|
|
356
365
|
return true;
|
|
357
366
|
const value = input[key];
|
|
@@ -361,24 +370,24 @@ export const stringifyNxtExport = input => {
|
|
|
361
370
|
});
|
|
362
371
|
const $string = __typia.json.createStringify.string;
|
|
363
372
|
const $tail = __typia.json.createStringify.tail;
|
|
364
|
-
const $so0 = input => `{${undefined === input.
|
|
373
|
+
const $so0 = input => `{${undefined === input.date ? "" : `"date":${undefined !== input.date ? $string(input.date) : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? `[${input.root.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? `[${input.files.map(elem => $string(elem)).join(",")}]` : undefined},`}"version":${input.version},"assets":${$so1(input.assets)}}`;
|
|
365
374
|
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
366
375
|
return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
367
|
-
const $so2 = input => `{${$tail(`"_children":${`[${input._children.map(elem => $string(elem)).join(",")}]`}
|
|
376
|
+
const $so2 = input => `{${$tail(`${undefined === input._children ? "" : `"_children":${undefined !== input._children ? `[${input._children.map(elem => $string(elem)).join(",")}]` : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
368
377
|
return ""; if (["_children"].some(regular => regular === key))
|
|
369
378
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
370
379
|
return $so0(input);
|
|
371
380
|
};
|
|
372
381
|
export const assertStringifyNxtExport = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
373
382
|
const __is = input => {
|
|
374
|
-
const $io0 = input => "number" === typeof input.version && !Number.isNaN(input.version) && "string" === typeof input.date && (Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
383
|
+
const $io0 = input => "number" === typeof input.version && !Number.isNaN(input.version) && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
|
|
375
384
|
const $io1 = input => Object.keys(input).every(key => {
|
|
376
385
|
const value = input[key];
|
|
377
386
|
if (undefined === value)
|
|
378
387
|
return true;
|
|
379
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
388
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
380
389
|
});
|
|
381
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
390
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
382
391
|
if (["_children"].some(prop => key === prop))
|
|
383
392
|
return true;
|
|
384
393
|
const value = input[key];
|
|
@@ -396,13 +405,13 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
396
405
|
path: _path + ".version",
|
|
397
406
|
expected: "number",
|
|
398
407
|
value: input.version
|
|
399
|
-
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
408
|
+
}, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
|
|
400
409
|
path: _path + ".date",
|
|
401
|
-
expected: "string",
|
|
410
|
+
expected: "(string | undefined)",
|
|
402
411
|
value: input.date
|
|
403
|
-
}, errorFactory)) && ((Array.isArray(input.root) || $guard(_exceptionable, {
|
|
412
|
+
}, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
|
|
404
413
|
path: _path + ".root",
|
|
405
|
-
expected: "Array<string>",
|
|
414
|
+
expected: "(Array<string> | undefined)",
|
|
406
415
|
value: input.root
|
|
407
416
|
}, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
408
417
|
path: _path + ".root[" + _index1 + "]",
|
|
@@ -410,7 +419,7 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
410
419
|
value: elem
|
|
411
420
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
412
421
|
path: _path + ".root",
|
|
413
|
-
expected: "Array<string>",
|
|
422
|
+
expected: "(Array<string> | undefined)",
|
|
414
423
|
value: input.root
|
|
415
424
|
}, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
|
|
416
425
|
path: _path + ".assets",
|
|
@@ -437,7 +446,7 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
437
446
|
const value = input[key];
|
|
438
447
|
if (undefined === value)
|
|
439
448
|
return true;
|
|
440
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
449
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
|
441
450
|
path: _path + $join(key),
|
|
442
451
|
expected: "__type.o1",
|
|
443
452
|
value: value
|
|
@@ -447,9 +456,9 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
447
456
|
value: value
|
|
448
457
|
}, errorFactory);
|
|
449
458
|
});
|
|
450
|
-
const $ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input._children) || $guard(_exceptionable, {
|
|
459
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
|
|
451
460
|
path: _path + "._children",
|
|
452
|
-
expected: "Array<string>",
|
|
461
|
+
expected: "(Array<string> | undefined)",
|
|
453
462
|
value: input._children
|
|
454
463
|
}, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
455
464
|
path: _path + "._children[" + _index3 + "]",
|
|
@@ -457,7 +466,7 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
457
466
|
value: elem
|
|
458
467
|
}, errorFactory)) || $guard(_exceptionable, {
|
|
459
468
|
path: _path + "._children",
|
|
460
|
-
expected: "Array<string>",
|
|
469
|
+
expected: "(Array<string> | undefined)",
|
|
461
470
|
value: input._children
|
|
462
471
|
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
463
472
|
if (["_children"].some(prop => key === prop))
|
|
@@ -483,9 +492,9 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
483
492
|
const value = input[key];
|
|
484
493
|
if (undefined === value)
|
|
485
494
|
return true;
|
|
486
|
-
return "object" === typeof value && null !== value && $io2(value);
|
|
495
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
487
496
|
});
|
|
488
|
-
const $io2 = input => Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem) && Object.keys(input).every(key => {
|
|
497
|
+
const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
|
|
489
498
|
if (["_children"].some(prop => key === prop))
|
|
490
499
|
return true;
|
|
491
500
|
const value = input[key];
|
|
@@ -495,10 +504,10 @@ export const assertStringifyNxtExport = (input, errorFactory) => { const assert
|
|
|
495
504
|
});
|
|
496
505
|
const $string = __typia.json.createAssertStringify.string;
|
|
497
506
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
498
|
-
const $so0 = input => `{${undefined === input.
|
|
507
|
+
const $so0 = input => `{${undefined === input.date ? "" : `"date":${undefined !== input.date ? $string(input.date) : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? `[${input.root.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? `[${input.files.map(elem => $string(elem)).join(",")}]` : undefined},`}"version":${input.version},"assets":${$so1(input.assets)}}`;
|
|
499
508
|
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
500
509
|
return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
501
|
-
const $so2 = input => `{${$tail(`"_children":${`[${input._children.map(elem => $string(elem)).join(",")}]`}
|
|
510
|
+
const $so2 = input => `{${$tail(`${undefined === input._children ? "" : `"_children":${undefined !== input._children ? `[${input._children.map(elem => $string(elem)).join(",")}]` : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
502
511
|
return ""; if (["_children"].some(regular => regular === key))
|
|
503
512
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
504
513
|
return $so0(input);
|