SDK Reference
@proveanything/smartlinks
npm install @proveanything/smartlinks
View on npm →Namespaces
Other
template
Functions for template operations
12 functions8 types
getAll
public
getAll(collectionId: string) → Promise<Template[]>get
public
get(collectionId: string, templateId: string) → Promise<Template>create
public
create(collectionId: string, data: ) → Promise<Template>update
public
update(collectionId: string,
templateId: string,
data: ) → Promise<Template>del
public
del(collectionId: string, templateId: string) → Promise<Template>uploadAsset
public
uploadAsset(collectionId: string,
templateId: string,
file: File | Blob) → Promise<getAllowed
public
getAllowed(collectionId: string) → Promise<[]>getPublic
public
getPublic(collectionId: string, templateId: string) → Promise<>getGlobal
public
getGlobal(templateId: string) → Promise<>getAllowedGlobal
public
getAllowedGlobal(collectionId: string) → Promise<[]>render
public
render(collectionId: string,
templateId: string,
body: ) → Promise<>renderSource
public
renderSource(collectionId: string,
body: ) → Promise<>