masterplan-optimizer-frontend / exportFormatsApi
Variable: exportFormatsApi¶
constexportFormatsApi:object
Defined in: src/lib/api.ts:1480
Client wrapper for Google Calendar export template formats.
Type Declaration¶
get¶
get: (
taskTypeId) =>Promise\<CalendarExportFormat>
Fetch the calendar export format for one task type.
Parameters¶
taskTypeId¶
number
Returns¶
Promise\<CalendarExportFormat>
getAll¶
getAll: () =>
Promise\<CalendarExportFormat[]>
Fetch all calendar export format templates.
Returns¶
Promise\<CalendarExportFormat[]>
getVariables¶
getVariables: (
taskTypeId,eventId?) =>Promise\<TemplateVariable[]>
Fetch template variables available for one task type.
Parameters¶
taskTypeId¶
number
eventId?¶
number
Returns¶
Promise\<TemplateVariable[]>
upsert¶
upsert: (
taskTypeId,data) =>Promise\<CalendarExportFormat>
Create or replace a calendar export format for one task type.
Parameters¶
taskTypeId¶
number
data¶
color_id¶
string | null
description_template¶
string
title_template¶
string
Returns¶
Promise\<CalendarExportFormat>