@fibery/ai-utils
Version:
Utilities for Fibery AI
13 lines (12 loc) • 999 B
JavaScript
export const workspaceSchemaTemplate = `<%for (let i=0; i < types.length; i++){ const type = types[i]; const dataFields = type.fields; if(type.name !== \`fibery-document\`) {%>
<% if (!compact && type.description && type.description !== \`no description\`) {%>//<%- type.description %>
<%}%>database <%-type.name %> {<%for (let field of dataFields) {%>
<%- field.name%>: <%- field.type%><% if (type.name === \`highlights/Highlight\` && field.type === \`Collaboration~Documents/Document\`) {%> // always use Snippets of Documents for Highlights (and only for them, because highlights will always fit in snippets!)<%}%> <%if (field.defaultValue) {%> //Default Option Name: "<%= field.defaultValue%>"<%}%><%}%>
}
<%}}%>
<% if (!compact) {%>
<% if (nonExistentTypes && nonExistentTypes.length > 0) {%>
You also requested these types, but they do not exist:<% for (let i=0; i < nonExistentTypes.length; i++){%>
"<%- nonExistentTypes[i]%>"<% }} %>
<%}%>`;
//# sourceMappingURL=workspace-schema.js.map