Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
feat(ophan): add additional types to OphanAction
Browse files Browse the repository at this point in the history
The identity team use the `SIGN_IN` and `CREATE_ACCOUNT` action, which we noticed was missing from the `OphanAction` type despite them being defined in https://dashboard.ophan.co.uk/docs/thrift/componentevent.html#Enum_Action

This commit adds those actions in so that they're available for use.
  • Loading branch information
coldlink committed Jul 28, 2022
1 parent 74a7fa1 commit b949f0a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ophan/@types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export type OphanAction =
| 'CONSENT_REJECT_ALL'
| 'STICK'
| 'CLOSE'
| 'RETURN';
| 'RETURN'
| 'SIGN_IN'
| 'CREATE_ACCOUNT';

export type OphanComponentType =
| 'READERS_QUESTIONS_ATOM'
Expand All @@ -66,7 +68,8 @@ export type OphanComponentType =
| 'RETENTION_EPIC'
| 'CONSENT'
| 'LIVE_BLOG_PINNED_POST'
| 'STICKY_VIDEO';
| 'STICKY_VIDEO'
| 'IDENTITY_AUTHENTICATION';

export type OphanComponent = {
componentType: OphanComponentType;
Expand Down

0 comments on commit b949f0a

Please sign in to comment.