30 lines
838 B
TypeScript
30 lines
838 B
TypeScript
import { publishEvent } from "../events"
|
|
import { Event } from "@budibase/types"
|
|
|
|
export async function nameUpdated(timestamp?: string | number) {
|
|
const properties = {}
|
|
await publishEvent(Event.ORG_NAME_UPDATED, properties, timestamp)
|
|
}
|
|
|
|
export async function logoUpdated(timestamp?: string | number) {
|
|
const properties = {}
|
|
await publishEvent(Event.ORG_LOGO_UPDATED, properties, timestamp)
|
|
}
|
|
|
|
export async function platformURLUpdated(timestamp?: string | number) {
|
|
const properties = {}
|
|
await publishEvent(Event.ORG_PLATFORM_URL_UPDATED, properties, timestamp)
|
|
}
|
|
|
|
// TODO
|
|
|
|
export async function analyticsOptOut() {
|
|
const properties = {}
|
|
await publishEvent(Event.ANALYTICS_OPT_OUT, properties)
|
|
}
|
|
|
|
export async function analyticsOptIn() {
|
|
const properties = {}
|
|
await publishEvent(Event.ANALYTICS_OPT_OUT, properties)
|
|
}
|