Type Alias TemplatePersist

Depending on the value of type, sharing service will internally validate a specific property regarding its data. Type "file" validates property "fileData", type "chart" validates property "chartData", type "story" validates property "storyData". Check description of each of the models for their required properties.

type TemplatePersist = {
    chartData?: ChartTemplate;
    fileAlias?: string;
    fileName?: string;
    fileTimeStamp?:
        | "yyyy-MM-dd"
        | "yyyy-MM-dd_HH-mm"
        | "yyyyMMdd"
        | "yyyyMMdd_HH-mm";
    multiSheetData?: MultiSheetTemplate[];
    sheetData?: SheetTemplate;
    storyData?: StoryTemplate;
    subType?: | "image"
    | "snapshot"
    | "pdf"
    | "pptx"
    | "xlsx"
    | "qpxp"
    | "qhtml"
    | "docx";
    templateId?: string;
    type: | "file"
    | "chart"
    | "story"
    | "sheet"
    | "multi-sheet"
    | "excel"
    | "pixel-perfect"
    | "html"
    | "powerpoint"
    | "word";
}
Index

Properties

chartData?: ChartTemplate

If the template type is not "chart", this can be null. Otherwise, the following properties are required: appId, sheetId, objectId, widthPx, heightPx, language. The following properties are optional: outZoom, outDpi

fileAlias?: string
fileName?: string
fileTimeStamp?:
    | "yyyy-MM-dd"
    | "yyyy-MM-dd_HH-mm"
    | "yyyyMMdd"
    | "yyyyMMdd_HH-mm"
multiSheetData?: MultiSheetTemplate[]
sheetData?: SheetTemplate
storyData?: StoryTemplate
subType?:
    | "image"
    | "snapshot"
    | "pdf"
    | "pptx"
    | "xlsx"
    | "qpxp"
    | "qhtml"
    | "docx"
templateId?: string

ID of unique template

type:
    | "file"
    | "chart"
    | "story"
    | "sheet"
    | "multi-sheet"
    | "excel"
    | "pixel-perfect"
    | "html"
    | "powerpoint"
    | "word"