UNPKG

@artsy/cohesion

Version:
51 lines (47 loc) 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tappedMainArtworkGrid = void 0; var _Schema = require("../../Schema"); /** * 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", * }) * ``` */ var tappedMainArtworkGrid = function tappedMainArtworkGrid(_ref) { var contextScreen = _ref.contextScreen, contextScreenOwnerType = _ref.contextScreenOwnerType, contextScreenOwnerId = _ref.contextScreenOwnerId, contextScreenOwnerSlug = _ref.contextScreenOwnerSlug, destinationScreenOwnerId = _ref.destinationScreenOwnerId, destinationScreenOwnerSlug = _ref.destinationScreenOwnerSlug, position = _ref.position, sort = _ref.sort, query = _ref.query; return { action: _Schema.ActionType.tappedMainArtworkGrid, context_module: _Schema.ContextModule.artworkGrid, context_screen: contextScreen, context_screen_owner_id: contextScreenOwnerId, context_screen_owner_slug: contextScreenOwnerSlug, context_screen_owner_type: contextScreenOwnerType, destination_screen_owner_id: destinationScreenOwnerId, destination_screen_owner_slug: destinationScreenOwnerSlug, destination_screen_owner_type: _Schema.OwnerType.artwork, position: position, query: query, sort: sort, type: "thumbnail" }; }; exports.tappedMainArtworkGrid = tappedMainArtworkGrid;