define(["require","exports","tslib","./esriDelegate!esri/tasks/support/RelationshipQuery","../../Validation","./ArcGisApiVersion","./tools","./MapProvider","../../Hooks","esri/tasks/QueryTask"],function(e,i,t,n,a,r,s,o,l,d){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),d=t.__importDefault(d);u.prototype.execute=function(e,i,t){var o=new n.RelationshipQuery;o.definitionExpression=a.validation.string("definitionExpression",e.definitionExpression,void 0),o.geometryPrecision=a.validation.number("definitionExpression",e.geometryPrecision,void 0),o.maxAllowableOffset=a.validation.number("maxAllowableOffset",e.maxAllowableOffset,void 0),o.objectIds=a.validation.array("objectIds",e.objectIds,a.validation.never),o.outFields=a.validation.array("outFields",e.outFields,["*"]),o.outSpatialReference=t.getOutSR(a.validation.exists("outSpatialReference",e.outSpatialReference,void 0)),o.relationshipId=a.validation.number("relationshipId",e.relationshipId,a.validation.never),o.returnGeometry=a.validation.boolean("returnGeometry",e.returnGeometry,!0);t=a.validation.urlOrLayer(e,r.isArcGisApiVersion3x),e=a.validation.string("gdbVersion",e.gdbVersion,void 0),t=new d.default(t,{gdbVersion:e}),e=s.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,e=t.executeRelationshipQuery(o,e);return s.schedulePromiseCancellation(i,e),s.inline(e,function(e){return{results:e}})},u.action="gcx:wf:arcgis:query:RelationshipQueryTask",u.suite="gcx:wf:builtin",o=t.__decorate([l.activate(o.MapProvider)],u);function u(){}i.RelationshipQueryTask=o});