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