@artsy/cohesion
Version:
Analytics schema
32 lines (28 loc) • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.tappedLink = void 0;
var _Schema = require("../../Schema");
var tappedLink = function tappedLink(_ref) {
var contextModule = _ref.contextModule,
contextScreenOwnerType = _ref.contextScreenOwnerType,
contextScreenOwnerId = _ref.contextScreenOwnerId,
contextScreenOwnerSlug = _ref.contextScreenOwnerSlug,
destinationPath = _ref.destinationPath,
destinationScreenOwnerSlug = _ref.destinationScreenOwnerSlug,
destinationScreenOwnerId = _ref.destinationScreenOwnerId,
destinationScreenOwnerType = _ref.destinationScreenOwnerType;
return {
action: _Schema.ActionType.tappedLink,
context_module: contextModule,
context_screen_owner_id: contextScreenOwnerId,
context_screen_owner_slug: contextScreenOwnerSlug,
context_screen_owner_type: contextScreenOwnerType,
destination_path: destinationPath,
destination_screen_owner_id: destinationScreenOwnerId,
destination_screen_owner_slug: destinationScreenOwnerSlug,
destination_screen_owner_type: destinationScreenOwnerType
};
};
exports.tappedLink = tappedLink;