import { type AsyncFirebaseFunctionCreateAction, type AsyncFirebaseFunctionDeleteAction, type AsyncFirebaseFunctionUpdateAction, type FirebaseFunctionCreateAction, type FirebaseFunctionDeleteAction, type FirebaseFunctionUpdateAction } from '../../common'; import { type CalendarDocument } from './calendar'; /** * @module calendar.action * * Type aliases for Calendar server action functions, following the same pattern as the StorageFile and * Notification actions. See `@dereekb/firebase-server/model` for the implementations. * * @template P - the parameter type for the action */ /** * Synchronous create action targeting a {@link CalendarDocument}. */ export type CalendarCreateAction
= FirebaseFunctionCreateAction
; /** * Async create action targeting a {@link CalendarDocument}. */ export type AsyncCalendarCreateAction
= AsyncFirebaseFunctionCreateAction
; /** * Synchronous update action targeting a {@link CalendarDocument}. */ export type CalendarUpdateAction
= FirebaseFunctionUpdateAction
; /** * Async update action targeting a {@link CalendarDocument}. */ export type AsyncCalendarUpdateAction
= AsyncFirebaseFunctionUpdateAction
; /** * Synchronous delete action targeting a {@link CalendarDocument}. */ export type CalendarDeleteAction
= FirebaseFunctionDeleteAction
; /** * Async delete action targeting a {@link CalendarDocument}. */ export type AsyncCalendarDeleteAction
= AsyncFirebaseFunctionDeleteAction
;