define(["require","exports","../../Errors","../../Validation","./tools"],function(e,i,o,a,u){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=(n.prototype.execute=function(e,i){var r=a.validation.string("url",e.url,a.validation.never),n=a.validation.number("timeout",e.timeout,void 0),t={};e.dynamicLayerDefinition?t.layer=e.dynamicLayerDefinition:e.source&&(t.layer={source:e.source});n=u.fetch(r,t,n,i.cancellationToken.signal);return u.schedulePromiseCancellation(i,n),u.inline(n,function(e){if(!e.fields)throw new o.GenericActivityError('Error running the "Get Feature Layer Info" activity. The response did not include the required "fields" property.');return{layerInfo:e}})},n.action="gcx:wf:arcgis::GetFeatureLayerInfo",n.suite="gcx:wf:builtin",n);function n(){}i.GetFeatureLayerInfo=r});