From e5d5a97db34f499219656df2402f47e84ba80526 Mon Sep 17 00:00:00 2001 From: Mounir Dhahri Date: Fri, 3 May 2024 17:45:03 +0200 Subject: [PATCH] chore: add missing auth context (#496) --- src/Schema/Events/Click.ts | 3 +-- src/Schema/Events/Tap.ts | 2 +- src/Schema/Events/index.ts | 8 ++++---- src/Schema/Values/ContextModule.ts | 6 ++++++ 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Schema/Events/Click.ts b/src/Schema/Events/Click.ts index e4fcf753..4dc28279 100644 --- a/src/Schema/Events/Click.ts +++ b/src/Schema/Events/Click.ts @@ -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 } - diff --git a/src/Schema/Events/Tap.ts b/src/Schema/Events/Tap.ts index 19e24518..0bc25403 100644 --- a/src/Schema/Events/Tap.ts +++ b/src/Schema/Events/Tap.ts @@ -1083,7 +1083,7 @@ export interface TappedNewsSection { * } * ``` */ - export interface TappedViewWork { +export interface TappedViewWork { action: ActionType.tappedViewWork context_module: ContextModule context_screen_owner_type: ScreenOwnerType diff --git a/src/Schema/Events/index.ts b/src/Schema/Events/index.ts index c7de3614..55d91c08 100644 --- a/src/Schema/Events/index.ts +++ b/src/Schema/Events/index.ts @@ -104,7 +104,7 @@ import { ClickedValidationAddressOptions, ClickedVerifyIdentity, ClickedViewingRoomCard, - ClickedViewWork + ClickedViewWork, } from "./Click" import { EditedUserProfile } from "./CollectorProfile" import { @@ -230,7 +230,7 @@ import { TappedVerifyIdentity, TappedViewingRoomCard, TappedViewingRoomGroup, - TappedViewWork + TappedViewWork, } from "./Tap" import { ToggledNotification, ToggledSavedSearch } from "./Toggle" import { UploadSizeLimitExceeded } from "./UploadSizeLimitExceeded" @@ -826,7 +826,7 @@ export enum ActionType { /** * Corresponds to {@link ClickedViewWork} */ - clickedViewWork = "clickedViewWork", + clickedViewWork = "clickedViewWork", /** * Corresponds to {@link ClickedValidationAddressOptions} */ @@ -1350,7 +1350,7 @@ export enum ActionType { /** * Corresponds to {@link TappedViewWork} */ - tappedViewWork = "tappedViewWork", + tappedViewWork = "tappedViewWork", /** * Corresponds to {@link TappedVerifiedRepresentative} */ diff --git a/src/Schema/Values/ContextModule.ts b/src/Schema/Values/ContextModule.ts index b0126ebf..70069c9a 100644 --- a/src/Schema/Values/ContextModule.ts +++ b/src/Schema/Values/ContextModule.ts @@ -184,6 +184,7 @@ export enum ContextModule { sellHeader = "sellHeader", sellHowItWorks = "sellHowItWorks", sellMeetTheSpecialists = "sellMeetTheSpecialists", + sellStickyFooter = "sellStickyFooter", sellSpeakToTheTeam = "sellSpeakToTheTeam", showHeader = "showHeader", showInfo = "showInfo", @@ -309,3 +310,8 @@ export type AuthContextModule = | ContextModule.worksByArtistsYouFollowRail | ContextModule.worksByPopularArtistsRail | ContextModule.worksForSaleRail + | ContextModule.sell + | ContextModule.sellHeader + | ContextModule.sellFooter + | ContextModule.sellHowItWorks + | ContextModule.sellStickyFooter