Skip to content

Commit

Permalink
chore: add missing auth context (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri authored May 3, 2024
1 parent 430972b commit e5d5a97
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/Schema/Events/Click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2123,11 +2123,10 @@ export interface ClickedOnLearnMore {
* }
* ```
*/
export interface ClickedViewWork {
export interface ClickedViewWork {
action: ActionType.clickedViewWork
context_owner_type: string
owner_id: string
artwork_id: string
notification_type: string
}

2 changes: 1 addition & 1 deletion src/Schema/Events/Tap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ export interface TappedNewsSection {
* }
* ```
*/
export interface TappedViewWork {
export interface TappedViewWork {
action: ActionType.tappedViewWork
context_module: ContextModule
context_screen_owner_type: ScreenOwnerType
Expand Down
8 changes: 4 additions & 4 deletions src/Schema/Events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import {
ClickedValidationAddressOptions,
ClickedVerifyIdentity,
ClickedViewingRoomCard,
ClickedViewWork
ClickedViewWork,
} from "./Click"
import { EditedUserProfile } from "./CollectorProfile"
import {
Expand Down Expand Up @@ -230,7 +230,7 @@ import {
TappedVerifyIdentity,
TappedViewingRoomCard,
TappedViewingRoomGroup,
TappedViewWork
TappedViewWork,
} from "./Tap"
import { ToggledNotification, ToggledSavedSearch } from "./Toggle"
import { UploadSizeLimitExceeded } from "./UploadSizeLimitExceeded"
Expand Down Expand Up @@ -826,7 +826,7 @@ export enum ActionType {
/**
* Corresponds to {@link ClickedViewWork}
*/
clickedViewWork = "clickedViewWork",
clickedViewWork = "clickedViewWork",
/**
* Corresponds to {@link ClickedValidationAddressOptions}
*/
Expand Down Expand Up @@ -1350,7 +1350,7 @@ export enum ActionType {
/**
* Corresponds to {@link TappedViewWork}
*/
tappedViewWork = "tappedViewWork",
tappedViewWork = "tappedViewWork",
/**
* Corresponds to {@link TappedVerifiedRepresentative}
*/
Expand Down
6 changes: 6 additions & 0 deletions src/Schema/Values/ContextModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export enum ContextModule {
sellHeader = "sellHeader",
sellHowItWorks = "sellHowItWorks",
sellMeetTheSpecialists = "sellMeetTheSpecialists",
sellStickyFooter = "sellStickyFooter",
sellSpeakToTheTeam = "sellSpeakToTheTeam",
showHeader = "showHeader",
showInfo = "showInfo",
Expand Down Expand Up @@ -309,3 +310,8 @@ export type AuthContextModule =
| ContextModule.worksByArtistsYouFollowRail
| ContextModule.worksByPopularArtistsRail
| ContextModule.worksForSaleRail
| ContextModule.sell
| ContextModule.sellHeader
| ContextModule.sellFooter
| ContextModule.sellHowItWorks
| ContextModule.sellStickyFooter

0 comments on commit e5d5a97

Please sign in to comment.