/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONSupport as r}from"../../core/JSONSupport.js";import{property as o,subclass as t}from"../../core/accessorSupport/decorators.js";import p from"../../geometry/SpatialReference.js";import{featureGeometryTypeKebabDictionary as s}from"../../geometry/support/typeUtils.js";import{enumeration as i}from"../../core/accessorSupport/decorators/enumeration.js";var y;let a=y=class extends r{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:r,oidFields:o,spatialReference:t,geometryType:p}=this,s={workspaceId:e,query:r,oidFields:o,spatialReference:t?.clone()??void 0,geometryType:p};return new y(s)}};e([i({queryTable:"query-table"}),o({json:{write:{isRequired:!0}}})],a.prototype,"type",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"workspaceId",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"query",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"oidFields",void 0),e([o({type:p,json:{write:!0}})],a.prototype,"spatialReference",void 0),e([i(s)],a.prototype,"geometryType",void 0),a=y=e([t("esri.rest.layerSources.QueryTableDataSource")],a);const c=a;export{c as default};
