UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 3.45 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */ import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{property as o,subclass as i}from"../../core/accessorSupport/decorators.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import n from"../../geometry/SpatialReference.js";import p from"../layerSources/DynamicDataLayer.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";var a;let d=class extends e{static{a=this}constructor(t){super(t),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.where=null}_writeHistoricMoment(t,e){e.historicMoment=t&&t.getTime()}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(e.definitionExpression="1=1")}clone(){return new a(r({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,returnM:this.returnM}))}};t([o({type:Boolean,json:{write:!0}})],d.prototype,"cacheHint",void 0),t([o({type:p,json:{write:!0}})],d.prototype,"dynamicDataSource",void 0),t([o({type:String,json:{write:!0}})],d.prototype,"gdbVersion",void 0),t([o({type:Number,json:{write:!0}})],d.prototype,"geometryPrecision",void 0),t([o({type:Date})],d.prototype,"historicMoment",void 0),t([u("historicMoment")],d.prototype,"_writeHistoricMoment",null),t([o({type:Number,json:{write:!0}})],d.prototype,"maxAllowableOffset",void 0),t([o({json:{write:!0}})],d.prototype,"objectIds",void 0),t([o({type:[String],json:{write:!0}})],d.prototype,"orderByFields",void 0),t([o({type:[String],json:{write:!0}})],d.prototype,"outFields",void 0),t([o({type:n,json:{read:{source:"outSR"},write:{target:"outSR"}}})],d.prototype,"outSpatialReference",void 0),t([o({json:{write:!0}})],d.prototype,"relationshipId",void 0),t([o({type:Number,json:{read:{source:"resultOffset"}}})],d.prototype,"start",void 0),t([u("start"),u("num")],d.prototype,"writeStart",null),t([o({type:Number,json:{read:{source:"resultRecordCount"}}})],d.prototype,"num",void 0),t([o({json:{write:!0}})],d.prototype,"returnGeometry",void 0),t([o({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],d.prototype,"returnM",void 0),t([o({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],d.prototype,"returnZ",void 0),t([o({type:Boolean,json:{write:!0}})],d.prototype,"returnTrueCurves",void 0),t([o({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],d.prototype,"where",void 0),d=a=t([i("esri.rest.support.RelationshipQuery")],d),d.from=s(d);export{d as default};