Update template endpoints

This commit is contained in:
Andrew Kingston 2024-12-05 16:08:21 +00:00
parent 100efef538
commit 00cbee50de
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
import { Template } from "@budibase/types" import { FetchTemplateResponse, Template } from "@budibase/types"
import { BaseAPIClient } from "./types" import { BaseAPIClient } from "./types"
export interface TemplateEndpoints { export interface TemplateEndpoints {
getEmailTemplates: () => Promise<Template[]> getEmailTemplates: () => Promise<Template[]>
getAppTemplates: () => Promise<FetchTemplateResponse>
// Missing request or response types // Missing request or response types
getEmailTemplateDefinitions: () => Promise<any> getEmailTemplateDefinitions: () => Promise<any>
saveEmailTemplate: (templaet: any) => Promise<any> saveEmailTemplate: (templaet: any) => Promise<any>
getAppTemplates: () => Promise<any>
} }
export const buildTemplateEndpoints = ( export const buildTemplateEndpoints = (