-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94dc1af
commit 3472c0b
Showing
34 changed files
with
219 additions
and
27 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/claimSection/ens-by-api-key-called.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const ENS_BY_API_KEY_CALLED = 'ENS_BY_API_KEY_CALLED'; | ||
|
||
export interface EnsByApiKeyCalledPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { | ||
ENS_BY_API_KEY_CALLED, | ||
EnsByApiKeyCalledPayload, | ||
} from './ens-by-api-key-called'; | ||
|
||
export const CLAIM_SECTION_EVENTS = { | ||
ENS_BY_API_KEY_CALLED, | ||
} as const; | ||
|
||
export interface ClaimSectionEventPayload { | ||
[ENS_BY_API_KEY_CALLED]: EnsByApiKeyCalledPayload; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
import { AUTH_EVENTS, AuthEventPayload } from './auth'; | ||
import { CLAIM_SECTION_EVENTS, ClaimSectionEventPayload } from './claimSection'; | ||
import { CODE_EVENTS, CodeEventPayload } from './code'; | ||
import { NAVIGATION_EVENTS, NavigationEventPayload } from './navigation'; | ||
import { NETWORK_EVENTS, NetworkEventPayload } from './network'; | ||
import { PLUGINS_EVENTS, PluginsEventPayload } from './plugins'; | ||
import { SIGN_SECTION_EVENTS, SignSectionEventPayload } from './signSection'; | ||
|
||
export const EVENTS = { | ||
...AUTH_EVENTS, | ||
...CLAIM_SECTION_EVENTS, | ||
...CODE_EVENTS, | ||
...NAVIGATION_EVENTS, | ||
...NETWORK_EVENTS, | ||
...PLUGINS_EVENTS, | ||
...SIGN_SECTION_EVENTS, | ||
} as const; | ||
|
||
export interface EventPayload | ||
extends CodeEventPayload, | ||
NavigationEventPayload, | ||
PluginsEventPayload, | ||
AuthEventPayload {} | ||
AuthEventPayload, | ||
NetworkEventPayload, | ||
ClaimSectionEventPayload, | ||
SignSectionEventPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/navigation/dashboard-link-clicked.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const DASHBOARD_LINK_CLICKED = 'DASHBOARD_LINK_CLICKED'; | ||
|
||
export interface DashboardLinkClickedPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import { | ||
DASHBOARD_LINK_CLICKED, | ||
DashboardLinkClickedPayload, | ||
} from './dashboard-link-clicked'; | ||
import { DOCS_LINK_CLICKED, DocsLinkClickedPayload } from './docs-link-clicked'; | ||
import { PROFILE_VIEWED, ProfileViewedPayload } from './profile-viewed'; | ||
|
||
export const NAVIGATION_EVENTS = { | ||
DOCS_LINK_CLICKED, | ||
PROFILE_VIEWED, | ||
DASHBOARD_LINK_CLICKED, | ||
} as const; | ||
|
||
export interface NavigationEventPayload { | ||
[DOCS_LINK_CLICKED]: DocsLinkClickedPayload; | ||
[PROFILE_VIEWED]: ProfileViewedPayload; | ||
[DASHBOARD_LINK_CLICKED]: DashboardLinkClickedPayload; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { NETWORK_CHANGED, NetworkChangedPayload } from './network-changed'; | ||
|
||
export const NETWORK_EVENTS = { | ||
NETWORK_CHANGED, | ||
} as const; | ||
|
||
export interface NetworkEventPayload { | ||
[NETWORK_CHANGED]: NetworkChangedPayload; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const NETWORK_CHANGED = 'NETWORK_CHANGED'; | ||
|
||
export interface NetworkChangedPayload { | ||
chainId: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const EFP_DISABLED = 'EFP_DISABLED'; | ||
|
||
export interface EfpDisabledPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,53 @@ | ||
import { EFP_DISABLED, EfpDisabledPayload } from './efp-disabled'; | ||
import { EFP_ENABLED, EfpEnabledPayload } from './efp-enabled'; | ||
import { | ||
JUST_VERIFIED_DISABLED, | ||
JustVerifiedDisabledPayload, | ||
} from './just-verified-disabled'; | ||
import { | ||
JUST_VERIFIED_ENABLED, | ||
JustVerifiedEnabledPayload, | ||
} from './just-verified-enabled'; | ||
import { EFP_ENABLED, EfpEnabledPayload } from './efp-enabled'; | ||
import { POAP_ENABLED, PoapEnabledPayload } from './poap-enabled'; | ||
import { | ||
JUST_VERIFIED_EVENTS, | ||
JustVerifiedEventsPayload, | ||
} from './justVerified'; | ||
import { POAP_DISABLED, PoapDisabledPayload } from './poap-disabled'; | ||
import { POAP_ENABLED, PoapEnabledPayload } from './poap-enabled'; | ||
import { | ||
TALENT_PROTOCOL_DISABLED, | ||
TalentProtocolDisabledPayload, | ||
} from './talent-protocol-disabled'; | ||
import { | ||
TALENT_PROTOCOL_ENABLED, | ||
TalentProtocolEnabledPayload, | ||
} from './talent-protocol-enabled'; | ||
import { XMTP_DISABLED, XmtpDisabledPayload } from './xmtp-disabled'; | ||
import { XMTP_ENABLED, XmtpEnabledPayload } from './xmtp-enabled'; | ||
|
||
export const PLUGINS_EVENTS = { | ||
JUST_VERIFIED_DISABLED, | ||
JUST_VERIFIED_ENABLED, | ||
EFP_DISABLED, | ||
EFP_ENABLED, | ||
POAP_DISABLED, | ||
POAP_ENABLED, | ||
TALENT_PROTOCOL_DISABLED, | ||
TALENT_PROTOCOL_ENABLED, | ||
XMTP_DISABLED, | ||
XMTP_ENABLED, | ||
...JUST_VERIFIED_EVENTS, | ||
} as const; | ||
|
||
export interface PluginsEventPayload extends JustVerifiedEventsPayload { | ||
[JUST_VERIFIED_DISABLED]: JustVerifiedDisabledPayload; | ||
[JUST_VERIFIED_ENABLED]: JustVerifiedEnabledPayload; | ||
[EFP_DISABLED]: EfpDisabledPayload; | ||
[EFP_ENABLED]: EfpEnabledPayload; | ||
[POAP_DISABLED]: PoapDisabledPayload; | ||
[POAP_ENABLED]: PoapEnabledPayload; | ||
[TALENT_PROTOCOL_DISABLED]: TalentProtocolDisabledPayload; | ||
[TALENT_PROTOCOL_ENABLED]: TalentProtocolEnabledPayload; | ||
[XMTP_DISABLED]: XmtpDisabledPayload; | ||
[XMTP_ENABLED]: XmtpEnabledPayload; | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/just-verified-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const JUST_VERIFIED_DISABLED = 'JUST_VERIFIED_DISABLED'; | ||
|
||
export interface JustVerifiedDisabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/justVerified/discord-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const DISCORD_DISABLED = 'DISCORD_DISABLED'; | ||
|
||
export interface DiscordDisabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/justVerified/email-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const EMAIL_DISABLED = 'EMAIL_DISABLED'; | ||
|
||
export interface EmailDisabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/justVerified/github-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const GITHUB_DISABLED = 'GITHUB_DISABLED'; | ||
|
||
export interface GithubDisabledPayload {} |
18 changes: 18 additions & 0 deletions
18
apps/console/src/analytics/events/plugins/justVerified/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
import { DISCORD_DISABLED, DiscordDisabledPayload } from './discord-disabled'; | ||
import { DISCORD_ENABLED, DiscordEnabledPayload } from './discord-enabled'; | ||
import { EMAIL_DISABLED, EmailDisabledPayload } from './email-disabled'; | ||
import { EMAIL_ENABLED, EmailEnabledPayload } from './email-enabled'; | ||
import { GITHUB_DISABLED, GithubDisabledPayload } from './github-disabled'; | ||
import { GITHUB_ENABLED, GithubEnabledPayload } from './github-enabled'; | ||
import { | ||
TELEGRAM_DISABLED, | ||
TelegramDisabledPayload, | ||
} from './telegram-disabled'; | ||
import { TELEGRAM_ENABLED, TelegramEnabledPayload } from './telegram-enabled'; | ||
import { TWITTER_DISABLED, TwitterDisabledPayload } from './twitter-disabled'; | ||
import { TWITTER_ENABLED, TwitterEnabledPayload } from './twitter-enabled'; | ||
|
||
export const JUST_VERIFIED_EVENTS = { | ||
DISCORD_DISABLED, | ||
DISCORD_ENABLED, | ||
EMAIL_DISABLED, | ||
EMAIL_ENABLED, | ||
GITHUB_DISABLED, | ||
GITHUB_ENABLED, | ||
TELEGRAM_DISABLED, | ||
TELEGRAM_ENABLED, | ||
TWITTER_DISABLED, | ||
TWITTER_ENABLED, | ||
} as const; | ||
|
||
export interface JustVerifiedEventsPayload { | ||
[DISCORD_DISABLED]: DiscordDisabledPayload; | ||
[DISCORD_ENABLED]: DiscordEnabledPayload; | ||
[EMAIL_DISABLED]: EmailDisabledPayload; | ||
[EMAIL_ENABLED]: EmailEnabledPayload; | ||
[GITHUB_DISABLED]: GithubDisabledPayload; | ||
[GITHUB_ENABLED]: GithubEnabledPayload; | ||
[TELEGRAM_DISABLED]: TelegramDisabledPayload; | ||
[TELEGRAM_ENABLED]: TelegramEnabledPayload; | ||
[TWITTER_DISABLED]: TwitterDisabledPayload; | ||
[TWITTER_ENABLED]: TwitterEnabledPayload; | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/justVerified/telegram-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const TELEGRAM_DISABLED = 'TELEGRAM_DISABLED'; | ||
|
||
export interface TelegramDisabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/justVerified/twitter-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const TWITTER_DISABLED = 'TWITTER_DISABLED'; | ||
|
||
export interface TwitterDisabledPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const POAP_DISABLED = 'POAP_DISABLED'; | ||
|
||
export interface PoapDisabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/talent-protocol-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const TALENT_PROTOCOL_DISABLED = 'TALENT_PROTOCOL_DISABLED'; | ||
|
||
export interface TalentProtocolDisabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/plugins/talent-protocol-enabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const TALENT_PROTOCOL_ENABLED = 'TALENT_PROTOCOL_ENABLED'; | ||
|
||
export interface TalentProtocolEnabledPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const XMTP_DISABLED = 'XMTP_DISABLED'; | ||
|
||
export interface XmtpDisabledPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const XMTP_ENABLED = 'XMTP_ENABLED'; | ||
|
||
export interface XmtpEnabledPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/signSection/any-ens-selected.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const ANY_ENS_SELECTED = 'ANY_ENS_SELECTED'; | ||
|
||
export interface AnyEnsSelectedPayload {} |
3 changes: 3 additions & 0 deletions
3
apps/console/src/analytics/events/signSection/claimable-ens-selected.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const CLAIMABLE_ENS_SELECTED = 'CLAIMABLE_ENS_SELECTED'; | ||
|
||
export interface ClaimableEnsSelectedPayload {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ANY_ENS_SELECTED, AnyEnsSelectedPayload } from './any-ens-selected'; | ||
import { | ||
CLAIMABLE_ENS_SELECTED, | ||
ClaimableEnsSelectedPayload, | ||
} from './claimable-ens-selected'; | ||
import { | ||
SPECIFIC_ENS_SELECTED, | ||
SpecificEnsSelectedPayload, | ||
} from './specific-ens-selected'; | ||
|
||
export const SIGN_SECTION_EVENTS = { | ||
ANY_ENS_SELECTED, | ||
SPECIFIC_ENS_SELECTED, | ||
CLAIMABLE_ENS_SELECTED, | ||
} as const; | ||
|
||
export interface SignSectionEventPayload { | ||
[ANY_ENS_SELECTED]: AnyEnsSelectedPayload; | ||
[SPECIFIC_ENS_SELECTED]: SpecificEnsSelectedPayload; | ||
[CLAIMABLE_ENS_SELECTED]: ClaimableEnsSelectedPayload; | ||
} |
5 changes: 5 additions & 0 deletions
5
apps/console/src/analytics/events/signSection/specific-ens-selected.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const SPECIFIC_ENS_SELECTED = 'SPECIFIC_ENS_SELECTED'; | ||
|
||
export interface SpecificEnsSelectedPayload { | ||
ens: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.