def user_albums_query(user_id: str, page_number: int) -> dict:
  """
  Build User albums query.
  :param user_id: User id
  :param page_number: page number
  :return: Query
  """
  return {
    "operationName": "AlbumList",
    "query": """query AlbumList($input: AlbumListInput!) {
                  album {
                    list(input: $input) {
                      info {...FacetCollectionInfo}
                      items {...AlbumMinimal}
                    }
                  }
                }
                fragment FacetCollectionInfo on FacetCollectionInfo {
                  page
                  has_next_page
                  has_previous_page
                  total_items
                  total_pages
                  url_complete
                }
                fragment AlbumMinimal on Album {
                  id
                }
    """,
    "variables": {
      "input": {
        "display": "date_newest",
        "filters": [
          {
            "name": "created_by_id",
            "value": user_id
          }
        ],
        "page": page_number
      }
    }
  }