@jakguru/vueprint / @jakguru/vueprint/services/bus / BusEventCallbackSignatures
Interface: BusEventCallbackSignatures
@jakguru/vueprint/services/bus.BusEventCallbackSignatures
Describes the events and the signatures of their callbacks Should be extended by the application to include all the events it needs
Properties
api:unauthorized
• api:unauthorized: (from?
: string
) => void
Emitted when the API returns a 401 Unauthorized status
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
authentication:refreshable
• authentication:refreshable: (from?
: string
) => void
The user's authentication token is eligible for refresh
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
firebase:token:updated
• firebase:token:updated: (token
: undefined
| string
, from?
: string
) => void
The Firebase token has been updated
Type declaration
▸ (token
, from?
): void
Parameters
Name | Type | Description |
---|---|---|
token | undefined | string | The new token |
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
identity:login
• identity:login: (bearer
: string
, expiration
: string
, identity
: UserIdentity
, from?
: string
) => void
The user has been authenticated and identified
Type declaration
▸ (bearer
, expiration
, identity
, from?
): void
Parameters
Name | Type | Description |
---|---|---|
bearer | string | The bearer token |
expiration | string | The expiration date of the token |
identity | UserIdentity | The identity of the user |
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
identity:logout
• identity:logout: (from?
: string
) => void
The user has been logged out
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
ls:change
• ls:change: (from?
: string
) => void
Notify that the local storage has changed
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
ls:clear
• ls:clear: (from?
: string
) => void
Notify that the local storage has been cleared
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
ls:loaded
• ls:loaded: (from?
: string
) => void
Notify that the local storage has been loaded
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
ls:resetAllKeys
• ls:resetAllKeys: (from?
: string
) => void
Notify that the local storage has been reset
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
ls:setDataToLocalStorage
• ls:setDataToLocalStorage: (key
: any
, data
: any
, from?
: string
) => void
Notify that the local storage has been saved
Type declaration
▸ (key
, data
, from?
): void
Parameters
Name | Type | Description |
---|---|---|
key | any | - |
data | any | - |
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
on:fcm:message
• on:fcm:message: (background
: boolean
, payload
: MessagePayload
, args
: any
[], from?
: string
) => void
Type declaration
▸ (background
, payload
, args
, from?
): void
Parameters
Name | Type |
---|---|
background | boolean |
payload | MessagePayload |
args | any [] |
from? | string |
Returns
void
Defined in
push:firebase:message
• push:firebase:message: (payload
: MessagePayload
, from?
: string
) => void
Type declaration
▸ (payload
, from?
): void
Parameters
Name | Type |
---|---|
payload | MessagePayload |
from? | string |
Returns
void
Defined in
push:notification
• push:notification: (payload
: NotificationPayload
, from?
: string
) => void
A push notification has been received
Type declaration
▸ (payload
, from?
): void
Parameters
Name | Type | Description |
---|---|---|
payload | NotificationPayload | The payload of the notification |
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
push:permission:denied
• push:permission:denied: (from?
: string
) => void
The push service has been granted permission
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
push:permission:granted
• push:permission:granted: (from?
: string
) => void
The push service has been denied permission
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
push:updated
• push:updated: (from?
: string
) => void
The push service has been updated
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
sw:activate
• sw:activate: (event
: ExtendableEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | ExtendableEvent |
from? | string |
Returns
void
Defined in
sw:backgroundfetchabort
• sw:backgroundfetchabort: (event
: BackgroundFetchEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | BackgroundFetchEvent |
from? | string |
Returns
void
Defined in
sw:backgroundfetchclick
• sw:backgroundfetchclick: (event
: BackgroundFetchClickEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | BackgroundFetchClickEvent |
from? | string |
Returns
void
Defined in
sw:backgroundfetchfail
• sw:backgroundfetchfail: (event
: BackgroundFetchFailEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | BackgroundFetchFailEvent |
from? | string |
Returns
void
Defined in
sw:backgroundfetchsuccess
• sw:backgroundfetchsuccess: (event
: BackgroundFetchSuccessEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | BackgroundFetchSuccessEvent |
from? | string |
Returns
void
Defined in
sw:canmakepayment
• sw:canmakepayment: (event
: CanMakePaymentEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | CanMakePaymentEvent |
from? | string |
Returns
void
Defined in
sw:contentdelete
• sw:contentdelete: (event
: ContentDeleteEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | ContentDeleteEvent |
from? | string |
Returns
void
Defined in
sw:cookiechange
• sw:cookiechange: (event
: CookieChangeEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | CookieChangeEvent |
from? | string |
Returns
void
Defined in
sw:fetch
• sw:fetch: (event
: FetchEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | FetchEvent |
from? | string |
Returns
void
Defined in
sw:install
• sw:install: (event
: ExtendableEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | ExtendableEvent |
from? | string |
Returns
void
Defined in
sw:message
• sw:message: (event
: ExtendableMessageEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | ExtendableMessageEvent |
from? | string |
Returns
void
Defined in
sw:messageerror
• sw:messageerror: (event
: MessageEvent
<any
>, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | MessageEvent <any > |
from? | string |
Returns
void
Defined in
sw:notificationclick
• sw:notificationclick: (event
: NotificationEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | NotificationEvent |
from? | string |
Returns
void
Defined in
sw:notificationclose
• sw:notificationclose: (event
: NotificationEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | NotificationEvent |
from? | string |
Returns
void
Defined in
sw:paymentrequest
• sw:paymentrequest: (event
: PaymentRequestEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | PaymentRequestEvent |
from? | string |
Returns
void
Defined in
sw:periodicsync
• sw:periodicsync: (event
: PeriodicSyncEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | PeriodicSyncEvent |
from? | string |
Returns
void
Defined in
sw:push
• sw:push: (event
: PushEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | PushEvent |
from? | string |
Returns
void
Defined in
sw:pushsubscriptionchange
• sw:pushsubscriptionchange: (event
: PushSubscriptionChangeEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | PushSubscriptionChangeEvent |
from? | string |
Returns
void
Defined in
sw:sync
• sw:sync: (event
: SyncEvent
, from?
: string
) => void
Type declaration
▸ (event
, from?
): void
Parameters
Name | Type |
---|---|
event | SyncEvent |
from? | string |
Returns
void
Defined in
tab:active
• tab:active: (from?
: string
) => void
A tab has become active
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
tab:inactive
• tab:inactive: (from?
: string
) => void
A tab has become inactive
Type declaration
▸ (from?
): void
Parameters
Name | Type | Description |
---|---|---|
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
tab:uuid
• tab:uuid: (uuid
: string
, active
: boolean
, from?
: string
) => void
A tab has been updated
Type declaration
▸ (uuid
, active
, from?
): void
Parameters
Name | Type | Description |
---|---|---|
uuid | string | The ID of the tab which has been updated |
active | boolean | If the new tab is "active" or not |
from? | string | The ID of the tab that triggered the event |
Returns
void
Defined in
webfonts:active
• webfonts:active: (from?
: string
) => void
Type declaration
▸ (from?
): void
Parameters
Name | Type |
---|---|
from? | string |
Returns
void
Defined in
webfonts:inactive
• webfonts:inactive: (from?
: string
) => void
Type declaration
▸ (from?
): void
Parameters
Name | Type |
---|---|
from? | string |
Returns
void
Defined in
webfonts:loading
• webfonts:loading: (from?
: string
) => void
Type declaration
▸ (from?
): void
Parameters
Name | Type |
---|---|
from? | string |
Returns
void