diff --git a/index.ts b/index.ts index 15cf4d59..15043981 100644 --- a/index.ts +++ b/index.ts @@ -253,8 +253,9 @@ export type UserNamespaceProperties = { export interface IInitObject { appId: string; - subdomainName?: string; requiresUserPrivacyConsent?: boolean; + safari_web_id?: string; + subdomainName?: string; promptOptions?: { slidedown: { prompts: { @@ -270,7 +271,7 @@ export interface IInitObject { * @example * categories: [{ tag: 'local_news', label: 'Local News' }] // The user will be tagged with local_news but will see "Local News" in the prompt. */ - categories: { + categories?: { /** Should identify the action. */ tag: string; @@ -301,7 +302,7 @@ export interface IInitObject { acceptButton?: string; /** Cancels opt-in. Up to 15 characters. */ - cancelMessage?: string; + cancelButton?: string; /** The message of the confirmation prompt displayed after the email and/or phone number is provided. Up to 90 characters. */ confirmMessage?: string; @@ -450,15 +451,13 @@ export interface IInitObject { }; autoResubscribe?: boolean; autoRegister?: boolean; - notificationClickHandlerMatch?: string; - notificationClickHandlerAction?: string; + notificationClickHandlerMatch?: 'exact' | 'origin'; + notificationClickHandlerAction?: 'navigate' | 'focus'; path?: string; serviceWorkerParam?: { scope: string }; serviceWorkerPath?: string; serviceWorkerOverrideForTypical?: boolean; - serviceWorkerUpdaterPath?: string; - allowLocalhostAsSecureOrigin?: boolean; - [key: string]: any; + [key: string]: unknown; } export interface IOneSignalOneSignal { diff --git a/package-lock.json b/package-lock.json index e4de91e0..aef1a210 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-onesignal", - "version": "3.4.4", + "version": "3.4.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-onesignal", - "version": "3.4.4", + "version": "3.4.5", "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.28.0",