Skip to main content

Interface: DocumentTemplateCreateInput

Defined in: type/DocumentTemplateCreateInput.ts:6

Input object for DocumentTemplateCreateInput

Properties

contents

contents: LocalizedTemplateContentInput[]

Defined in: type/DocumentTemplateCreateInput.ts:8

Uploaded handlebars template content, per given language


customQuery?

optional customQuery?: string

Defined in: type/DocumentTemplateCreateInput.ts:12

GraphQL query to be executed before rendering the template to fetch additional data not in the original event payload.


fileNames

fileNames: LocalizedStringInput[]

Defined in: type/DocumentTemplateCreateInput.ts:16

File name to use when rendering a document template per given language, supports handlebars variables


isDefaultOrderPdf

isDefaultOrderPdf: boolean

Defined in: type/DocumentTemplateCreateInput.ts:18

Indicates whether the template is used for default order PDF generation


isDefaultQuotePdf

isDefaultQuotePdf: boolean

Defined in: type/DocumentTemplateCreateInput.ts:20

Indicates whether the template is used for default quote PDF generation


names

names: LocalizedStringInput[]

Defined in: type/DocumentTemplateCreateInput.ts:10

The name of the template per given language


queryVariables?

optional queryVariables?: string

Defined in: type/DocumentTemplateCreateInput.ts:14

Variables that are use in the custom query, can use handlebars variables. Has to be a valid JSON string after rendering