You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If `true`, the Subscription Bell will display an icon that there is 1 unread message.
257
+
* When hovering over the Subscription Bell, the user will see custom text set by message.prenotify.
258
+
*/
259
+
prenotify: boolean;
260
+
261
+
/** Either `bottom-left` or `bottom-right`. The Subscription Bell will be fixed at this location on your page. */
262
+
position?: 'bottom-left'|'bottom-right';
263
+
264
+
/** Set `false` to hide the 'Powered by OneSignal' text in the Subscription Bell dialog popup. */
265
+
showCredit: boolean;
266
+
267
+
/**
268
+
* The Subscription Bell will initially appear at one of these sizes, and then shrink down to size `small` after the user subscribes.
269
+
*/
270
+
size?: 'small'|'medium'|'large';
271
+
272
+
/** Customize the Subscription Bell text. */
273
+
text: {
274
+
'dialog.blocked.message': string;
275
+
'dialog.blocked.title': string;
276
+
'dialog.main.button.subscribe': string;
277
+
'dialog.main.button.unsubscribe': string;
278
+
'dialog.main.title': string;
279
+
'message.action.resubscribed': string;
280
+
'message.action.subscribed': string;
281
+
'message.action.subscribing': string;
282
+
'message.action.unsubscribed': string;
283
+
'message.prenotify': string;
284
+
'tip.state.blocked': string;
285
+
'tip.state.subscribed': string;
286
+
'tip.state.unsubscribed': string;
287
+
};
288
+
};
289
+
135
290
persistNotification?: boolean;
136
-
webhooks?: object;
291
+
webhooks?: {
292
+
/**
293
+
* Enable this setting only if your server has CORS enabled and supports non-simple CORS requests.
294
+
* If this setting is disabled, your webhook will not need CORS to receive data, but it will not receive the custom headers.
295
+
* The simplest option is to leave it disabled.
296
+
* @default false
297
+
*/
298
+
cors: boolean;
299
+
300
+
/**
301
+
* This event occurs after a notification is clicked.
302
+
* @example https://site.com/hook
303
+
*/
304
+
'notification.clicked'?: string;
305
+
306
+
/**
307
+
* This event occurs after a notification is intentionally dismissed by the user (clicking the notification body or one of the notification action buttons does not trigger the dismissed webhook),
308
+
* after a group of notifications are all dismissed (with this notification as part of that group), or after a notification expires on its own time and disappears. This event is supported on Chrome only.
309
+
* @example https://site.com/hook
310
+
*/
311
+
'notification.dismissed'?: string;
312
+
313
+
/**
314
+
* This event occurs after a notification is displayed.
* If `true`, the Subscription Bell will display an icon that there is 1 unread message.
130
+
* When hovering over the Subscription Bell, the user will see custom text set by message.prenotify.
131
+
*/
132
+
prenotify: boolean;
133
+
134
+
/** Either `bottom-left` or `bottom-right`. The Subscription Bell will be fixed at this location on your page. */
135
+
position?: 'bottom-left'|'bottom-right';
136
+
137
+
/** Set `false` to hide the 'Powered by OneSignal' text in the Subscription Bell dialog popup. */
138
+
showCredit: boolean;
139
+
140
+
/**
141
+
* The Subscription Bell will initially appear at one of these sizes, and then shrink down to size `small` after the user subscribes.
142
+
*/
143
+
size?: 'small'|'medium'|'large';
144
+
145
+
/** Customize the Subscription Bell text. */
146
+
text: {
147
+
'dialog.blocked.message': string;
148
+
'dialog.blocked.title': string;
149
+
'dialog.main.button.subscribe': string;
150
+
'dialog.main.button.unsubscribe': string;
151
+
'dialog.main.title': string;
152
+
'message.action.resubscribed': string;
153
+
'message.action.subscribed': string;
154
+
'message.action.subscribing': string;
155
+
'message.action.unsubscribed': string;
156
+
'message.prenotify': string;
157
+
'tip.state.blocked': string;
158
+
'tip.state.subscribed': string;
159
+
'tip.state.unsubscribed': string;
160
+
};
161
+
};
162
+
8
163
persistNotification?: boolean;
9
-
webhooks?: object;
164
+
webhooks?: {
165
+
/**
166
+
* Enable this setting only if your server has CORS enabled and supports non-simple CORS requests.
167
+
* If this setting is disabled, your webhook will not need CORS to receive data, but it will not receive the custom headers.
168
+
* The simplest option is to leave it disabled.
169
+
* @default false
170
+
*/
171
+
cors: boolean;
172
+
173
+
/**
174
+
* This event occurs after a notification is clicked.
175
+
* @example https://site.com/hook
176
+
*/
177
+
'notification.clicked'?: string;
178
+
179
+
/**
180
+
* This event occurs after a notification is intentionally dismissed by the user (clicking the notification body or one of the notification action buttons does not trigger the dismissed webhook),
181
+
* after a group of notifications are all dismissed (with this notification as part of that group), or after a notification expires on its own time and disappears. This event is supported on Chrome only.
182
+
* @example https://site.com/hook
183
+
*/
184
+
'notification.dismissed'?: string;
185
+
186
+
/**
187
+
* This event occurs after a notification is displayed.
0 commit comments