2022-05-04 04:13:13 +12:00
|
|
|
import { processEvent } from "../events"
|
|
|
|
import {
|
2022-05-05 19:32:14 +12:00
|
|
|
Event,
|
2022-05-04 04:13:13 +12:00
|
|
|
Screen,
|
|
|
|
ScreenCreatedEvent,
|
|
|
|
ScreenDeletedEvent,
|
|
|
|
} from "@budibase/types"
|
|
|
|
|
|
|
|
export function created(screen: Screen) {
|
|
|
|
const properties: ScreenCreatedEvent = {}
|
2022-05-05 19:32:14 +12:00
|
|
|
processEvent(Event.SCREEN_CREATED, properties)
|
2022-05-04 04:13:13 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deleted(screen: Screen) {
|
|
|
|
const properties: ScreenDeletedEvent = {}
|
2022-05-05 19:32:14 +12:00
|
|
|
processEvent(Event.SCREEN_DELETED, properties)
|
2022-05-04 04:13:13 +12:00
|
|
|
}
|