@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1 kB
JavaScript
import{_ as t}from"../chunks/tslib.es6.js";import r from"../core/Error.js";import{JSONSupport as o}from"../core/JSONSupport.js";import{property as e}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import{subclass as s}from"../core/accessorSupport/decorators/subclass.js";let p=class extends o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.get("portal.restUrl");return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new r("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};t([e({type:Date})],p.prototype,"created",void 0),t([e()],p.prototype,"id",void 0),t([e()],p.prototype,"portal",void 0),t([e()],p.prototype,"title",void 0),t([e({readOnly:!0})],p.prototype,"url",null),t([e()],p.prototype,"username",void 0),p=t([s("esri.portal.PortalFolder")],p);const l=p;export{l as default};