@fibery/ai-utils
Version:
Utilities for Fibery AI
2 lines (1 loc) • 970 B
TypeScript
export declare const workspaceSchemaTemplate = "<%for (let i=0; i < types.length; i++){ const type = types[i]; const dataFields = type.fields; if(type.name !== `fibery-document`) {%>\n<% if (!compact && type.description && type.description !== `no description`) {%>//<%- type.description %>\n<%}%>database <%-type.name %> {<%for (let field of dataFields) {%>\n <%- 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%>\"<%}%><%}%>\n}\n<%}}%>\n<% if (!compact) {%>\n<% if (nonExistentTypes && nonExistentTypes.length > 0) {%>\n\nYou also requested these types, but they do not exist:<% for (let i=0; i < nonExistentTypes.length; i++){%>\n\"<%- nonExistentTypes[i]%>\"<% }} %>\n<%}%>";