@make-software/csprclick-core-types
Version:
Typescript definitions for CSPR.click core packages
38 lines (37 loc) • 1.02 kB
TypeScript
import { AccountType } from './account';
export type CSPRCLICK_EVENTS = string;
export declare const CSPRCLICK_EVENTS: {
LOADED: string;
SIGNED_IN: string;
SWITCHED_ACCOUNT: string;
SWITCH_ACCOUNT: string;
SIGNED_OUT: string;
DISCONNECTED: string;
SIGN_IN: string;
REQUEST_USER_ACTION: string;
UNSOLICITED_ACCOUNT_CHANGE: string;
PROVIDER_STATUS_UPDATE: string;
PROVIDER_TRANSACTION_REVIEW: string;
SHOW_BUY_CSPR_UI: string;
};
export type ClickEvent = {
origin: string;
};
export type LoadedClickEvent = {} & ClickEvent;
export type SignedInClickEvent = {
account: AccountType;
} & ClickEvent;
export type SwitchedAccountClickEvent = {
account: AccountType;
} & ClickEvent;
export type DisconnectedClickEvent = {
provider: string;
} & ClickEvent;
export type UnsolicitedAccountChangeClickEvent = {
account: AccountType;
} & ClickEvent;
export type ProviderStatusClickEvent = {
provider: string;
status: string;
custom: any;
} & ClickEvent;