Templates Functions


Functions to manage the Invox Dictation Templates Repository. Templates are predefined text blocks that can be inserted during dictation.

User Templates

GetUserTemplateRepository

FunctionDescriptionParametersReturns
INVOX.GetUserTemplateRepository()Returns the user template repository object.—Object
const userTemplates = INVOX.GetUserTemplateRepository();

UserTemplatesGet

Returns all templates in the user repository.

INVOX.UserTemplatesGet()
    .then((templates) => console.log(templates));

UserTemplatesAdd

Adds a new template to the user repository.

INVOX.UserTemplatesAdd({ name: "My Template", content: "Template content here..." })
    .then(() => console.log("Template added successfully"));

UserTemplatesRemove

Removes a template from the user repository.

INVOX.UserTemplatesRemove(templateId)
    .then(() => console.log("Template removed successfully"));

UserTemplatesReplace

Replaces an existing template in the user repository.

INVOX.UserTemplatesReplace(templateId, { name: "Updated Name", content: "Updated content..." })
    .then(() => console.log("Template updated successfully"));

Specialty Templates

GetSpecialtyTemplateRepository

FunctionDescriptionParametersReturns
INVOX.GetSpecialtyTemplateRepository()Returns the specialty template repository object.—Object
const specialtyTemplates = INVOX.GetSpecialtyTemplateRepository();

SpecialtyTemplatesGet

Returns all templates in the specialty repository.

INVOX.SpecialtyTemplatesGet()
    .then((templates) => console.log(templates));