18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import { publishEvent } from "../events"
|
|
import {
|
|
Event,
|
|
Screen,
|
|
ScreenCreatedEvent,
|
|
ScreenDeletedEvent,
|
|
} from "@budibase/types"
|
|
|
|
export async function created(screen: Screen) {
|
|
const properties: ScreenCreatedEvent = {}
|
|
await publishEvent(Event.SCREEN_CREATED, properties)
|
|
}
|
|
|
|
export async function deleted(screen: Screen) {
|
|
const properties: ScreenDeletedEvent = {}
|
|
await publishEvent(Event.SCREEN_DELETED, properties)
|
|
}
|