@artsy/cohesion
Version:
Analytics schema
49 lines (48 loc) • 1.29 kB
TypeScript
import { ContextModule } from "../Values/ContextModule";
import { OwnerType } from "../Values/OwnerType";
import { ActionType } from ".";
import { Platform } from "./MyCollection";
/**
* Schema describing 'Edited Collector Profile' events
* @packageDocumentation
*/
/**
* A user taps or clicks on "Save" when editing their collector profile info.
*
* This schema describes events sent to Segment from [[editedUserProfile]]
*
* @example
* ```
* {
* action: "editedUserProfile",
* context_screen: "collectorProfile",
* context_screen_owner_type: "editProfile",
* platform: "mobile"
* }
* ```
*/
export interface EditedUserProfile {
action: ActionType.editedUserProfile;
context_screen: ContextModule;
context_screen_owner_type: OwnerType;
platform: Platform;
}
/**
* A user taps on the avatar on the Profile screen.
*
* This schema describes events sent to Segment from [[tappedEditedProfile]]
*
* @example
* ```
* {
* action: "tappedEditedProfile",
* context_module: "collectorProfileCard",
* context_screen: "profile",
* }
* ```
*/
export interface TappedEditedProfile {
action: ActionType.tappedEditedProfile;
context_module: ContextModule.collectorProfileCard;
context_screen: OwnerType.profile;
}