import { request } from "@esri/arcgis-rest-request" ; import { getPortalUrl } from "../util/get-portal-url" ; import { IGetUserOptions } from "./get-user" ; export interface ITagCount { /**
     * the name of a tag
     */ tag : string ; /**
     * a count that reports the number of times the tag was used
     */ count : number ; } export interface IGetUserTagsResponse { /**
     * Array of user item tag objects
     */ tags : ITagCount [ ] ; } param IGetUserOptions returns export function getUserTags ( requestOptions ) { const username = requestOptions . username || requestOptions . authentication . username ; const url = `${ getPortalUrl ( requestOptions ) }/community/users/${ encodeURIComponent ( username ) }/tags` ; return request ( url , requestOptions ) ; }