@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 3.12 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */
import{__decorate as t}from"tslib";import{ClonableMixin as e}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import p from"../../geometry/SpatialReference.js";import{fromJSON as n}from"../../geometry/support/jsonUtils.js";import{geometryTypes as a}from"../../geometry/support/typeUtils.js";import l from"./PivotDefinition.js";import u from"./QuantizationParameters.js";import{spatialRelKebabDict as m}from"./spatialRelationships.js";import d from"./StatisticDefinition.js";import y from"./UnPivotDefinition.js";import c from"../../time/TimeExtent.js";import{enumeration as f}from"../../core/accessorSupport/decorators/enumeration.js";import{writer as h}from"../../core/accessorSupport/decorators/writer.js";const j={key:"type",base:null,typeMap:{pivot:l,"un-pivot":y}};let v=class extends(e(o)){constructor(t){super(t),this.cacheHint=void 0,this.defaultSpatialReferenceEnabled=!1,this.geometry=null,this.groupByFieldsForStatistics=null,this.num=void 0,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.outPivots=null,this.quantizationParameters=null,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.where=void 0}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}};t([r({type:Boolean,json:{write:!0}})],v.prototype,"cacheHint",void 0),t([r({type:Boolean,json:{default:!1,write:!0}})],v.prototype,"defaultSpatialReferenceEnabled",void 0),t([r({types:a,json:{read:n,write:!0}})],v.prototype,"geometry",void 0),t([r({type:[String],json:{write:!0}})],v.prototype,"groupByFieldsForStatistics",void 0),t([r({type:Number,json:{read:{source:"resultRecordCount"}}})],v.prototype,"num",void 0),t([r({type:[String],json:{write:!0}})],v.prototype,"orderByFields",void 0),t([r({type:[String],json:{write:!0}})],v.prototype,"outFields",void 0),t([r({type:p,json:{name:"outSR",write:!0}})],v.prototype,"outSpatialReference",void 0),t([r({type:[d],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],v.prototype,"outStatistics",void 0),t([r({types:[j],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outPivots&&this.outPivots.length>0}}}}})],v.prototype,"outPivots",void 0),t([r({type:u,json:{write:!0}})],v.prototype,"quantizationParameters",void 0),t([r({type:p,json:{write:!0}})],v.prototype,"sourceSpatialReference",void 0),t([f(m,{ignoreUnknown:!1,name:"spatialRel"})],v.prototype,"spatialRelationship",void 0),t([r({type:Number,json:{read:{source:"resultOffset"}}})],v.prototype,"start",void 0),t([h("start"),h("num")],v.prototype,"writeStart",null),t([r({type:c,json:{write:!0}})],v.prototype,"timeExtent",void 0),t([r({type:String,json:{write:!0}})],v.prototype,"where",void 0),v=t([i("esri.rest.support.PivotQuery")],v),v.from=s(v);export{v as default};