define(["require","exports","../../Validation","./ArcGisApiVersion","./tools"],function(e,t,s,o,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.execute=function(e,t){var i=s.validation.urlOrLayer(e,o.isArcGisApiVersion3x),i=u.addToPath(i,"applyEdits"),a=(s.validation.array("features",e.features,s.validation.never),s.validation.string("gdbVersion",e.gdbVersion)),n=s.validation.number("timeout",e.timeout),e=s.validation.array("features",e.features,s.validation.never),n=u.post(i,{updates:e,gdbVersion:a},n,t.cancellationToken.signal);u.schedulePromiseCancellation(t,n);var r=this;return u.inline(n,function(e){r.onApplyEditsComplete(e);var t=e.updateResults&&e.updateResults.every(function(e){return e.success});return{results:e.updateResults,success:t}})},a.prototype.onApplyEditsComplete=function(e){},a.action="gcx:wf:arcgis::UpdateFeatures",a.suite="gcx:wf:builtin",a);function a(){}t.UpdateFeatures=i});