You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.0 KiB
90 lines
2.0 KiB
/**
|
|
* Environment Type Declarations
|
|
*
|
|
* @author Matthew Raymer
|
|
* @version 1.0.0
|
|
*/
|
|
|
|
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
// Capacitor plugin declarations
|
|
declare global {
|
|
interface Window {
|
|
DailyNotification: {
|
|
scheduleDailyNotification: (options: {
|
|
time: string
|
|
title?: string
|
|
body?: string
|
|
sound?: boolean
|
|
priority?: string
|
|
url?: string
|
|
}) => Promise<void>
|
|
|
|
scheduleDailyReminder: (options: {
|
|
id: string
|
|
title: string
|
|
body: string
|
|
time: string
|
|
sound?: boolean
|
|
vibration?: boolean
|
|
priority?: string
|
|
repeatDaily?: boolean
|
|
timezone?: string
|
|
}) => Promise<void>
|
|
|
|
cancelDailyReminder: (options: {
|
|
reminderId: string
|
|
}) => Promise<void>
|
|
|
|
updateDailyReminder: (options: {
|
|
reminderId: string
|
|
title?: string
|
|
body?: string
|
|
time?: string
|
|
sound?: boolean
|
|
vibration?: boolean
|
|
priority?: string
|
|
repeatDaily?: boolean
|
|
timezone?: string
|
|
}) => Promise<void>
|
|
|
|
getLastNotification: () => Promise<{
|
|
id: string
|
|
title: string
|
|
body: string
|
|
scheduledTime: number
|
|
deliveredAt: number
|
|
}>
|
|
|
|
checkStatus: () => Promise<{
|
|
canScheduleNow: boolean
|
|
postNotificationsGranted: boolean
|
|
channelEnabled: boolean
|
|
channelImportance: number
|
|
channelId: string
|
|
exactAlarmsGranted: boolean
|
|
exactAlarmsSupported: boolean
|
|
androidVersion: number
|
|
nextScheduledAt: number
|
|
}>
|
|
|
|
checkChannelStatus: () => Promise<{
|
|
enabled: boolean
|
|
importance: number
|
|
id: string
|
|
}>
|
|
|
|
openChannelSettings: () => Promise<void>
|
|
|
|
openExactAlarmSettings: () => Promise<void>
|
|
}
|
|
}
|
|
}
|
|
|
|
export {}
|
|
|