Add bulk calendar invitation delivery
This commit is contained in:
@@ -368,6 +368,21 @@ export type CampaignPostboxCatalog = {
|
||||
organization_units: CampaignPostboxOrganizationUnit[];
|
||||
};
|
||||
|
||||
export type CampaignCalendarCatalogEntry = {
|
||||
id: string;
|
||||
name: string;
|
||||
color?: string | null;
|
||||
timezone: string;
|
||||
source_kind: string;
|
||||
writable: boolean;
|
||||
};
|
||||
|
||||
export type CampaignCalendarCatalog = {
|
||||
available: boolean;
|
||||
reason?: string | null;
|
||||
calendars: CampaignCalendarCatalogEntry[];
|
||||
};
|
||||
|
||||
export type CampaignPrintTemplateOutputProfile = {
|
||||
id: string;
|
||||
label: string;
|
||||
@@ -945,6 +960,13 @@ campaignId: string)
|
||||
return apiFetch<CampaignPostboxCatalog>(settings, `/api/v1/campaigns/${campaignId}/postbox-catalog`);
|
||||
}
|
||||
|
||||
export async function getCampaignCalendarInvitationCatalog(
|
||||
settings: ApiSettings,
|
||||
campaignId: string)
|
||||
: Promise<CampaignCalendarCatalog> {
|
||||
return apiFetch<CampaignCalendarCatalog>(settings, `/api/v1/campaigns/${campaignId}/calendar-invitation-catalog`);
|
||||
}
|
||||
|
||||
export async function listCampaignPrintTemplates(
|
||||
settings: ApiSettings,
|
||||
campaignId: string,
|
||||
|
||||
Reference in New Issue
Block a user