Jump to content

User:Diablanco/schema:MobileWebCollections

From Meta, a Wikimedia project coordination wiki

{

   "description": "Logs clicks related to collections",
   "properties": {
       "event_name": {
           "type": "string",
           "description": "Uniquely describes the action a user took",
           "enum": [
               "overlay-seen",
               "overlay-closed",
               "open_icon",
               "flag_list",
               "open_menu",
               "start_new",
               "add_fromArticle",
               "name_submitted",
               "add_fromSearch",
               "view_list",
               "subscribe_list",
               "click_to_article",
               "like_list",
               "edit_list",
               "delete_list",
               "reorder_list",
               "login"
               "back"
           ]
       },
       "username": {
           "type": "string",
           "required": false,
           "description": "Username for logged in user."
       },
       "userEditCount": {
           "type": "integer",
           "required": false,
           "description": "The edit count of the user using the collection."
       },
  "collection": {
           "type": "string",
           "required": true,
           "description": "url of the collection."
       },
       "mobileMode": {
           "type": "string",
           "required": true,
           "enum": [
               "stable",
               "beta",
               "alpha"
           ],
           "description": "Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site."
       },
       "source": {
           "description": "How the user came to the screen.",
           "enum": [
               "edit",
               "blocked",
               "navigation",
               "onboarding"
           ],
           "type": "string",
           "required": false
       },
       "collectionSessionToken": {
           "description": "Session token for this collection funnel",
           "type": "string",
           "required": true
       },
       "errorText": {
           "description": "Error response, if any",
           "type": "string",
           "required": false
       }
   }

}