feat: add global weather support
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { Language } from "@/lib/i18n";
|
||||
import type { Province } from "@/types/province";
|
||||
import type { TemperatureUnit, WindSpeedUnit } from "@/types/units";
|
||||
import type { WeatherRegion } from "@/types/weather-region";
|
||||
|
||||
export interface PushSubscriptionKeys {
|
||||
p256dh: string;
|
||||
@@ -16,7 +17,8 @@ export interface BrowserPushSubscription {
|
||||
export interface WarningPushSubscription {
|
||||
endpoint: string;
|
||||
subscription: BrowserPushSubscription;
|
||||
province: Province;
|
||||
province: Province | null;
|
||||
region: WeatherRegion;
|
||||
language: Language;
|
||||
enabled: boolean;
|
||||
morningBriefEnabled: boolean;
|
||||
@@ -24,6 +26,7 @@ export interface WarningPushSubscription {
|
||||
latitude: number | null;
|
||||
longitude: number | null;
|
||||
locationName: string | null;
|
||||
timezone: string | null;
|
||||
countyTeryt: string | null;
|
||||
temperatureUnit: TemperatureUnit;
|
||||
windSpeedUnit: WindSpeedUnit;
|
||||
|
||||
Reference in New Issue
Block a user