Skip to content

Commit e93a78c

Browse files
committed
update init object interface
1 parent 8ea753a commit e93a78c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/snippets/InitObject.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export interface IInitObject {
22
appId: string;
3-
subdomainName?: string;
43
requiresUserPrivacyConsent?: boolean;
4+
safari_web_id?: string;
55
promptOptions?: {
66
slidedown: {
77
prompts: {
@@ -17,7 +17,7 @@ export interface IInitObject {
1717
* @example
1818
* categories: [{ tag: 'local_news', label: 'Local News' }] // The user will be tagged with local_news but will see "Local News" in the prompt.
1919
*/
20-
categories: {
20+
categories?: {
2121
/** Should identify the action. */
2222
tag: string;
2323

@@ -48,7 +48,7 @@ export interface IInitObject {
4848
acceptButton?: string;
4949

5050
/** Cancels opt-in. Up to 15 characters. */
51-
cancelMessage?: string;
51+
cancelButton?: string;
5252

5353
/** The message of the confirmation prompt displayed after the email and/or phone number is provided. Up to 90 characters. */
5454
confirmMessage?: string;
@@ -197,13 +197,12 @@ export interface IInitObject {
197197
};
198198
autoResubscribe?: boolean;
199199
autoRegister?: boolean;
200-
notificationClickHandlerMatch?: string;
201-
notificationClickHandlerAction?: string;
200+
notificationClickHandlerMatch?: 'exact' | 'origin';
201+
notificationClickHandlerAction?: 'navigate' | 'focus';
202202
path?: string;
203203
serviceWorkerParam?: { scope: string };
204204
serviceWorkerPath?: string;
205205
serviceWorkerOverrideForTypical?: boolean;
206-
serviceWorkerUpdaterPath?: string;
207-
allowLocalhostAsSecureOrigin?: boolean;
208-
[key: string]: any;
206+
subdomainName?: string;
207+
[key: string]: unknown;
209208
}

0 commit comments

Comments
 (0)