@nxtedition/types 23.0.38 → 23.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +0 -18
- package/dist/app.js +5 -173
- package/dist/common/render-query.js +280 -191
- package/dist/common/render-scene.js +336 -158
- package/dist/common/settings.d.ts +33 -9
- package/dist/common/settings.js +2069 -1381
- package/dist/domains/event.d.ts +129 -1
- package/dist/domains/event.js +2025 -0
- package/dist/domains/media.js +168 -79
- package/dist/domains/publish.d.ts +55 -0
- package/dist/domains/publish.js +4668 -3689
- package/dist/domains/render.d.ts +10 -24
- package/dist/domains/render.js +497 -828
- package/dist/domains/script.d.ts +250 -0
- package/dist/domains/script.js +6652 -0
- package/dist/domains/settings.js +2022 -1351
- package/dist/domains/subtitle-style.d.ts +5 -0
- package/dist/domains/subtitle-style.js +95 -6
- package/dist/index.d.ts +23 -0
- package/dist/index.js +294 -12
- package/dist/nxtpression.d.ts +247 -30
- package/dist/rpc.d.ts +9 -0
- package/dist/schema.json +903 -124
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -7,21 +7,21 @@ export * from './asset.js';
|
|
|
7
7
|
export * from './storage.js';
|
|
8
8
|
export * from './monitor.js';
|
|
9
9
|
export const isDomains = input => {
|
|
10
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
10
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
11
11
|
return true === $iv1.has(input);
|
|
12
12
|
};
|
|
13
13
|
export const assertDomains = (input, errorFactory) => {
|
|
14
14
|
const __is = input => {
|
|
15
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
15
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
16
16
|
return true === $iv1.has(input);
|
|
17
17
|
};
|
|
18
18
|
if (false === __is(input))
|
|
19
19
|
((input, _path, _exceptionable = true) => {
|
|
20
20
|
const $guard = __typia.createAssert.guard;
|
|
21
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
21
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
22
22
|
return true === $av1.has(input) || $guard(true, {
|
|
23
23
|
path: _path + "",
|
|
24
|
-
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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
24
|
+
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?\" | \":event.duration?\" | \":event.overlay?\" | \":event.props?\" | \":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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script\" | \":script.children\" | \":script.content?\" | \":script.revision\" | \":script.revision?\" | \":script.revisions?\" | \":script.text?\" | \":script?\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
25
25
|
value: input
|
|
26
26
|
}, errorFactory);
|
|
27
27
|
})(input, "$input", true);
|
|
@@ -72,6 +72,10 @@ export const randomDomains = generator => {
|
|
|
72
72
|
() => ":edit",
|
|
73
73
|
() => ":event",
|
|
74
74
|
() => ":event._template?",
|
|
75
|
+
() => ":event.overlay?",
|
|
76
|
+
() => ":event.template?",
|
|
77
|
+
() => ":event.duration?",
|
|
78
|
+
() => ":event.props?",
|
|
75
79
|
() => ":file.replicate",
|
|
76
80
|
() => ":file.restrictions",
|
|
77
81
|
() => ":file.stats?",
|
|
@@ -107,6 +111,13 @@ export const randomDomains = generator => {
|
|
|
107
111
|
() => ":render.schedulers?",
|
|
108
112
|
() => ":revs?",
|
|
109
113
|
() => ":role.tags",
|
|
114
|
+
() => ":script",
|
|
115
|
+
() => ":script?",
|
|
116
|
+
() => ":script.revisions?",
|
|
117
|
+
() => ":script.revision",
|
|
118
|
+
() => ":script.revision?",
|
|
119
|
+
() => ":script.content?",
|
|
120
|
+
() => ":script.text?",
|
|
110
121
|
() => ":script.children",
|
|
111
122
|
() => ":search?",
|
|
112
123
|
() => ":settings",
|
|
@@ -126,16 +137,16 @@ export const randomDomains = generator => {
|
|
|
126
137
|
};
|
|
127
138
|
export const assertGuardDomains = (input, errorFactory) => {
|
|
128
139
|
const __is = input => {
|
|
129
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
140
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
130
141
|
return true === $iv1.has(input);
|
|
131
142
|
};
|
|
132
143
|
if (false === __is(input))
|
|
133
144
|
((input, _path, _exceptionable = true) => {
|
|
134
145
|
const $guard = __typia.createAssertGuard.guard;
|
|
135
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
146
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
136
147
|
return true === $av1.has(input) || $guard(true, {
|
|
137
148
|
path: _path + "",
|
|
138
|
-
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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
149
|
+
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?\" | \":event.duration?\" | \":event.overlay?\" | \":event.props?\" | \":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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script\" | \":script.children\" | \":script.content?\" | \":script.revision\" | \":script.revision?\" | \":script.revisions?\" | \":script.text?\" | \":script?\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
139
150
|
value: input
|
|
140
151
|
}, errorFactory);
|
|
141
152
|
})(input, "$input", true);
|
|
@@ -149,23 +160,23 @@ export const stringifyDomains = input => {
|
|
|
149
160
|
if ("string" === typeof input)
|
|
150
161
|
return "\"" + input + "\"";
|
|
151
162
|
$throws({
|
|
152
|
-
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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":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?\" | \":event.duration?\" | \":event.overlay?\" | \":event.props?\" | \":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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script\" | \":script.children\" | \":script.content?\" | \":script.revision\" | \":script.revision?\" | \":script.revisions?\" | \":script.text?\" | \":script?\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
153
164
|
value: input
|
|
154
165
|
});
|
|
155
166
|
})();
|
|
156
167
|
};
|
|
157
168
|
export const assertStringifyDomains = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
158
169
|
const __is = input => {
|
|
159
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
170
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
160
171
|
return true === $iv1.has(input);
|
|
161
172
|
};
|
|
162
173
|
if (false === __is(input))
|
|
163
174
|
((input, _path, _exceptionable = true) => {
|
|
164
175
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
165
|
-
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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
176
|
+
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?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.props?", ":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?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
166
177
|
return true === $av1.has(input) || $guard(true, {
|
|
167
178
|
path: _path + "",
|
|
168
|
-
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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
179
|
+
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?\" | \":event.duration?\" | \":event.overlay?\" | \":event.props?\" | \":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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script\" | \":script.children\" | \":script.content?\" | \":script.revision\" | \":script.revision?\" | \":script.revisions?\" | \":script.text?\" | \":script?\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
169
180
|
value: input
|
|
170
181
|
}, errorFactory);
|
|
171
182
|
})(input, "$input", true);
|
|
@@ -179,9 +190,280 @@ export const assertStringifyDomains = (input, errorFactory) => { const assert =
|
|
|
179
190
|
if ("string" === typeof input)
|
|
180
191
|
return "\"" + input + "\"";
|
|
181
192
|
$throws({
|
|
182
|
-
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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
193
|
+
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?\" | \":event.duration?\" | \":event.overlay?\" | \":event.props?\" | \":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?\" | \":monitor.stats?\" | \":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.schedulers?\" | \":render.stats?\" | \":revs?\" | \":role.tags\" | \":script\" | \":script.children\" | \":script.content?\" | \":script.revision\" | \":script.revision?\" | \":script.revisions?\" | \":script.text?\" | \":script?\" | \":search?\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":subtitle\" | \":subtitle-style\" | \":template\" | \":user\" | \":user-notification\" | \":user-notification.readAt\" | \":user.latestSeenNotification\" | \":user.receivedNotifications?\" | \":user.unseenNotifications?\" | \"comment-reaction\" | \"comment-read-mark\")",
|
|
183
194
|
value: input
|
|
184
195
|
});
|
|
185
196
|
})();
|
|
186
197
|
}; return stringify(assert(input, errorFactory)); };
|
|
187
198
|
export * from './nxtpression.js';
|
|
199
|
+
export const isFontFace = input => {
|
|
200
|
+
const $io0 = input => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && "number" === typeof input.weight && ("italic" === input.style || "normal" === input.style) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && "number" === typeof elem[0] && "number" === typeof elem[1])));
|
|
201
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
202
|
+
};
|
|
203
|
+
export const assertFontFace = (input, errorFactory) => {
|
|
204
|
+
const __is = input => {
|
|
205
|
+
const $io0 = input => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && "number" === typeof input.weight && ("italic" === input.style || "normal" === input.style) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && "number" === typeof elem[0] && "number" === typeof elem[1])));
|
|
206
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
207
|
+
};
|
|
208
|
+
if (false === __is(input))
|
|
209
|
+
((input, _path, _exceptionable = true) => {
|
|
210
|
+
const $guard = __typia.createAssert.guard;
|
|
211
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
212
|
+
path: _path + ".name",
|
|
213
|
+
expected: "string",
|
|
214
|
+
value: input.name
|
|
215
|
+
}, errorFactory)) && ("string" === typeof input.family || $guard(_exceptionable, {
|
|
216
|
+
path: _path + ".family",
|
|
217
|
+
expected: "string",
|
|
218
|
+
value: input.family
|
|
219
|
+
}, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
220
|
+
path: _path + ".asset",
|
|
221
|
+
expected: "string",
|
|
222
|
+
value: input.asset
|
|
223
|
+
}, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
|
|
224
|
+
path: _path + ".url",
|
|
225
|
+
expected: "string",
|
|
226
|
+
value: input.url
|
|
227
|
+
}, errorFactory)) && ("number" === typeof input.weight || $guard(_exceptionable, {
|
|
228
|
+
path: _path + ".weight",
|
|
229
|
+
expected: "number",
|
|
230
|
+
value: input.weight
|
|
231
|
+
}, errorFactory)) && ("italic" === input.style || "normal" === input.style || $guard(_exceptionable, {
|
|
232
|
+
path: _path + ".style",
|
|
233
|
+
expected: "(\"italic\" | \"normal\")",
|
|
234
|
+
value: input.style
|
|
235
|
+
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
236
|
+
path: _path + ".ranges",
|
|
237
|
+
expected: "Array<Range>",
|
|
238
|
+
value: input.ranges
|
|
239
|
+
}, errorFactory)) && input.ranges.every((elem, _index1) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
240
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
241
|
+
expected: "Range",
|
|
242
|
+
value: elem
|
|
243
|
+
}, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
|
|
244
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
245
|
+
expected: "[number, number]",
|
|
246
|
+
value: elem
|
|
247
|
+
}, errorFactory)) && ("number" === typeof elem[0] || $guard(_exceptionable, {
|
|
248
|
+
path: _path + ".ranges[" + _index1 + "][0]",
|
|
249
|
+
expected: "number",
|
|
250
|
+
value: elem[0]
|
|
251
|
+
}, errorFactory)) && ("number" === typeof elem[1] || $guard(_exceptionable, {
|
|
252
|
+
path: _path + ".ranges[" + _index1 + "][1]",
|
|
253
|
+
expected: "number",
|
|
254
|
+
value: elem[1]
|
|
255
|
+
}, errorFactory))) || $guard(_exceptionable, {
|
|
256
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
257
|
+
expected: "Range",
|
|
258
|
+
value: elem
|
|
259
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
260
|
+
path: _path + ".ranges",
|
|
261
|
+
expected: "Array<Range>",
|
|
262
|
+
value: input.ranges
|
|
263
|
+
}, errorFactory));
|
|
264
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
265
|
+
path: _path + "",
|
|
266
|
+
expected: "FontFace",
|
|
267
|
+
value: input
|
|
268
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
269
|
+
path: _path + "",
|
|
270
|
+
expected: "FontFace",
|
|
271
|
+
value: input
|
|
272
|
+
}, errorFactory);
|
|
273
|
+
})(input, "$input", true);
|
|
274
|
+
return input;
|
|
275
|
+
};
|
|
276
|
+
export const randomFontFace = generator => {
|
|
277
|
+
const $generator = __typia.createRandom.generator;
|
|
278
|
+
const $pick = __typia.createRandom.pick;
|
|
279
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
280
|
+
name: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
281
|
+
family: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
282
|
+
asset: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
283
|
+
url: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
284
|
+
weight: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
285
|
+
style: $pick([
|
|
286
|
+
() => "italic",
|
|
287
|
+
() => "normal"
|
|
288
|
+
])(),
|
|
289
|
+
ranges: (generator?.array ?? $generator.array)(() => [
|
|
290
|
+
(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
291
|
+
(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
292
|
+
])
|
|
293
|
+
});
|
|
294
|
+
return $ro0();
|
|
295
|
+
};
|
|
296
|
+
export const assertGuardFontFace = (input, errorFactory) => {
|
|
297
|
+
const __is = input => {
|
|
298
|
+
const $io0 = input => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && "number" === typeof input.weight && ("italic" === input.style || "normal" === input.style) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && "number" === typeof elem[0] && "number" === typeof elem[1])));
|
|
299
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
300
|
+
};
|
|
301
|
+
if (false === __is(input))
|
|
302
|
+
((input, _path, _exceptionable = true) => {
|
|
303
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
304
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
305
|
+
path: _path + ".name",
|
|
306
|
+
expected: "string",
|
|
307
|
+
value: input.name
|
|
308
|
+
}, errorFactory)) && ("string" === typeof input.family || $guard(_exceptionable, {
|
|
309
|
+
path: _path + ".family",
|
|
310
|
+
expected: "string",
|
|
311
|
+
value: input.family
|
|
312
|
+
}, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
313
|
+
path: _path + ".asset",
|
|
314
|
+
expected: "string",
|
|
315
|
+
value: input.asset
|
|
316
|
+
}, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
|
|
317
|
+
path: _path + ".url",
|
|
318
|
+
expected: "string",
|
|
319
|
+
value: input.url
|
|
320
|
+
}, errorFactory)) && ("number" === typeof input.weight || $guard(_exceptionable, {
|
|
321
|
+
path: _path + ".weight",
|
|
322
|
+
expected: "number",
|
|
323
|
+
value: input.weight
|
|
324
|
+
}, errorFactory)) && ("italic" === input.style || "normal" === input.style || $guard(_exceptionable, {
|
|
325
|
+
path: _path + ".style",
|
|
326
|
+
expected: "(\"italic\" | \"normal\")",
|
|
327
|
+
value: input.style
|
|
328
|
+
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
329
|
+
path: _path + ".ranges",
|
|
330
|
+
expected: "Array<Range>",
|
|
331
|
+
value: input.ranges
|
|
332
|
+
}, errorFactory)) && input.ranges.every((elem, _index1) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
333
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
334
|
+
expected: "Range",
|
|
335
|
+
value: elem
|
|
336
|
+
}, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
|
|
337
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
338
|
+
expected: "[number, number]",
|
|
339
|
+
value: elem
|
|
340
|
+
}, errorFactory)) && ("number" === typeof elem[0] || $guard(_exceptionable, {
|
|
341
|
+
path: _path + ".ranges[" + _index1 + "][0]",
|
|
342
|
+
expected: "number",
|
|
343
|
+
value: elem[0]
|
|
344
|
+
}, errorFactory)) && ("number" === typeof elem[1] || $guard(_exceptionable, {
|
|
345
|
+
path: _path + ".ranges[" + _index1 + "][1]",
|
|
346
|
+
expected: "number",
|
|
347
|
+
value: elem[1]
|
|
348
|
+
}, errorFactory))) || $guard(_exceptionable, {
|
|
349
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
350
|
+
expected: "Range",
|
|
351
|
+
value: elem
|
|
352
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
353
|
+
path: _path + ".ranges",
|
|
354
|
+
expected: "Array<Range>",
|
|
355
|
+
value: input.ranges
|
|
356
|
+
}, errorFactory));
|
|
357
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
358
|
+
path: _path + "",
|
|
359
|
+
expected: "FontFace",
|
|
360
|
+
value: input
|
|
361
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
362
|
+
path: _path + "",
|
|
363
|
+
expected: "FontFace",
|
|
364
|
+
value: input
|
|
365
|
+
}, errorFactory);
|
|
366
|
+
})(input, "$input", true);
|
|
367
|
+
};
|
|
368
|
+
export const stringifyFontFace = input => {
|
|
369
|
+
const $string = __typia.json.createStringify.string;
|
|
370
|
+
const $throws = __typia.json.createStringify.throws;
|
|
371
|
+
const $so0 = input => `{"name":${$string(input.name)},"family":${$string(input.family)},"asset":${$string(input.asset)},"url":${$string(input.url)},"weight":${input.weight},"style":${(() => {
|
|
372
|
+
if ("string" === typeof input.style)
|
|
373
|
+
return $string(input.style);
|
|
374
|
+
if ("string" === typeof input.style)
|
|
375
|
+
return "\"" + input.style + "\"";
|
|
376
|
+
$throws({
|
|
377
|
+
expected: "(\"italic\" | \"normal\")",
|
|
378
|
+
value: input.style
|
|
379
|
+
});
|
|
380
|
+
})()},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`}}`;
|
|
381
|
+
return $so0(input);
|
|
382
|
+
};
|
|
383
|
+
export const assertStringifyFontFace = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
384
|
+
const __is = input => {
|
|
385
|
+
const $io0 = input => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && ("number" === typeof input.weight && !Number.isNaN(input.weight)) && ("italic" === input.style || "normal" === input.style) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && !Number.isNaN(elem[0])) && ("number" === typeof elem[1] && !Number.isNaN(elem[1])))));
|
|
386
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
387
|
+
};
|
|
388
|
+
if (false === __is(input))
|
|
389
|
+
((input, _path, _exceptionable = true) => {
|
|
390
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
391
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
392
|
+
path: _path + ".name",
|
|
393
|
+
expected: "string",
|
|
394
|
+
value: input.name
|
|
395
|
+
}, errorFactory)) && ("string" === typeof input.family || $guard(_exceptionable, {
|
|
396
|
+
path: _path + ".family",
|
|
397
|
+
expected: "string",
|
|
398
|
+
value: input.family
|
|
399
|
+
}, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
400
|
+
path: _path + ".asset",
|
|
401
|
+
expected: "string",
|
|
402
|
+
value: input.asset
|
|
403
|
+
}, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
|
|
404
|
+
path: _path + ".url",
|
|
405
|
+
expected: "string",
|
|
406
|
+
value: input.url
|
|
407
|
+
}, errorFactory)) && ("number" === typeof input.weight && !Number.isNaN(input.weight) || $guard(_exceptionable, {
|
|
408
|
+
path: _path + ".weight",
|
|
409
|
+
expected: "number",
|
|
410
|
+
value: input.weight
|
|
411
|
+
}, errorFactory)) && ("italic" === input.style || "normal" === input.style || $guard(_exceptionable, {
|
|
412
|
+
path: _path + ".style",
|
|
413
|
+
expected: "(\"italic\" | \"normal\")",
|
|
414
|
+
value: input.style
|
|
415
|
+
}, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
|
|
416
|
+
path: _path + ".ranges",
|
|
417
|
+
expected: "Array<Range>",
|
|
418
|
+
value: input.ranges
|
|
419
|
+
}, errorFactory)) && input.ranges.every((elem, _index1) => (Array.isArray(elem) || $guard(_exceptionable, {
|
|
420
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
421
|
+
expected: "Range",
|
|
422
|
+
value: elem
|
|
423
|
+
}, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
|
|
424
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
425
|
+
expected: "[number, number]",
|
|
426
|
+
value: elem
|
|
427
|
+
}, errorFactory)) && ("number" === typeof elem[0] && !Number.isNaN(elem[0]) || $guard(_exceptionable, {
|
|
428
|
+
path: _path + ".ranges[" + _index1 + "][0]",
|
|
429
|
+
expected: "number",
|
|
430
|
+
value: elem[0]
|
|
431
|
+
}, errorFactory)) && ("number" === typeof elem[1] && !Number.isNaN(elem[1]) || $guard(_exceptionable, {
|
|
432
|
+
path: _path + ".ranges[" + _index1 + "][1]",
|
|
433
|
+
expected: "number",
|
|
434
|
+
value: elem[1]
|
|
435
|
+
}, errorFactory))) || $guard(_exceptionable, {
|
|
436
|
+
path: _path + ".ranges[" + _index1 + "]",
|
|
437
|
+
expected: "Range",
|
|
438
|
+
value: elem
|
|
439
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
440
|
+
path: _path + ".ranges",
|
|
441
|
+
expected: "Array<Range>",
|
|
442
|
+
value: input.ranges
|
|
443
|
+
}, errorFactory));
|
|
444
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
445
|
+
path: _path + "",
|
|
446
|
+
expected: "FontFace",
|
|
447
|
+
value: input
|
|
448
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
449
|
+
path: _path + "",
|
|
450
|
+
expected: "FontFace",
|
|
451
|
+
value: input
|
|
452
|
+
}, errorFactory);
|
|
453
|
+
})(input, "$input", true);
|
|
454
|
+
return input;
|
|
455
|
+
}; const stringify = input => {
|
|
456
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
457
|
+
const $throws = __typia.json.createAssertStringify.throws;
|
|
458
|
+
const $so0 = input => `{"name":${$string(input.name)},"family":${$string(input.family)},"asset":${$string(input.asset)},"url":${$string(input.url)},"weight":${input.weight},"style":${(() => {
|
|
459
|
+
if ("string" === typeof input.style)
|
|
460
|
+
return $string(input.style);
|
|
461
|
+
if ("string" === typeof input.style)
|
|
462
|
+
return "\"" + input.style + "\"";
|
|
463
|
+
$throws({
|
|
464
|
+
expected: "(\"italic\" | \"normal\")",
|
|
465
|
+
value: input.style
|
|
466
|
+
});
|
|
467
|
+
})()},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`}}`;
|
|
468
|
+
return $so0(input);
|
|
469
|
+
}; return stringify(assert(input, errorFactory)); };
|