@artsy/cohesion
Version:
Analytics schema
28 lines (27 loc) • 1.05 kB
TypeScript
import { ScreenOwnerType, TappedMainArtworkGrid } from "../../Schema";
export interface TappedMainArtworkGridArgs {
contextScreen?: string;
contextScreenOwnerType: ScreenOwnerType;
contextScreenOwnerId?: string;
contextScreenOwnerSlug?: string;
destinationScreenOwnerId: string;
destinationScreenOwnerSlug: string;
position?: number;
sort?: string;
query?: string;
}
/**
* A user taps an artwork in the main artworkGrid (iOS)
*
* @example
* ```
* tappedMainArtworkGrid({
* contextScreenOwnerType: OwnerType.artist,
* contextScreenOwnerId: "5359794d2a1e86c3741001f8",
* contextScreenOwnerSlug: "andy-warhol",
* destinationScreenOwnerId: "5359794d1a1e86c3740001f7",
* destinationScreenOwnerSlug: "andy-warhol-skull",
* })
* ```
*/
export declare const tappedMainArtworkGrid: ({ contextScreen, contextScreenOwnerType, contextScreenOwnerId, contextScreenOwnerSlug, destinationScreenOwnerId, destinationScreenOwnerSlug, position, sort, query, }: TappedMainArtworkGridArgs) => TappedMainArtworkGrid;