| 12345678 |
- // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- // See https://js.arcgis.com/4.7/esri/copyright.txt for details.
- //>>built
- define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/tsSupport/paramHelper ../core/tsSupport/assignHelper ../geometry ../core/accessorSupport/decorators ./Task ./operations/query ./operations/queryRelatedRecords ./support/FeatureSet ./support/Query ./support/RelationshipQuery".split(" "),function(t,u,m,d,e,f,n,c,p,g,q,k,h,r){return function(l){function b(a){a=l.call(this,a)||this;a.gdbVersion=null;a.source=null;return a}m(b,l);b.prototype.execute=
- function(a,b){return g.executeQuery(this.parsedUrl,this._normalizeQuery(a),f({},this.requestOptions,b)).then(function(a){return k.fromJSON(a.data)})};b.prototype.executeForCount=function(a,b){return g.executeQueryForCount(this.parsedUrl,this._normalizeQuery(a),f({},this.requestOptions,b)).then(function(a){return a.data.count})};b.prototype.executeForExtent=function(a,b){return g.executeQueryForExtent(this.parsedUrl,this._normalizeQuery(a),f({},this.requestOptions,b)).then(function(a){return{count:a.data.count,
- extent:n.Extent.fromJSON(a.data.extent)}})};b.prototype.executeForIds=function(a,b){return g.executeQueryForIds(this.parsedUrl,this._normalizeQuery(a),f({},this.requestOptions,b)).then(function(a){return a.data.objectIds})};b.prototype.executeRelationshipQuery=function(a,b){if(this.gdbVersion||this.source)a=a.clone().set({gdbVersion:this.gdbVersion||a.gdbVersion,source:this.source||a.source});return q.executeRelationshipQuery(this.parsedUrl,a,f({},this.requestOptions,b)).then(function(a){var b=a.data,
- c={};Object.keys(b).forEach(function(a){return c[a]=k.fromJSON(b[a])});return c})};b.prototype._normalizeQuery=function(a){return this.gdbVersion||this.source?a.clone().set({gdbVersion:this.gdbVersion||a.gdbVersion,source:this.source||a.source}):a};d([c.property()],b.prototype,"gdbVersion",void 0);d([c.property()],b.prototype,"source",void 0);d([e(0,c.cast(h))],b.prototype,"execute",null);d([e(0,c.cast(h))],b.prototype,"executeForCount",null);d([e(0,c.cast(h))],b.prototype,"executeForExtent",null);
- d([e(0,c.cast(h))],b.prototype,"executeForIds",null);d([e(0,c.cast(r))],b.prototype,"executeRelationshipQuery",null);return b=d([c.subclass("esri.tasks.QueryTask")],b)}(c.declared(p))});
|