define(["require","exports","../../Errors","../../Validation","./ArcGisApiVersion","./tools"],function(t,e,r,o,a,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(i.prototype.execute=function(t,e){var n=o.validation.urlOrLayer(t,a.isArcGisApiVersion3x).trim(),i=o.validation.number("objectId",t.objectId,o.validation.never),t=o.validation.number("timeout",t.timeout,void 0),i=c.addToPath(n,i+"/attachments"),t=c.fetch(i,{},t,e.cancellationToken.signal);return c.schedulePromiseCancellation(e,t),c.inline(t,function(t){t=t.attachmentInfos;if(!t)throw new r.GenericActivityError('Error running the "Query Attachment Infos" activity. The response did not include the required "attachmentInfos" property.');return{infos:t}})},i.action="gcx:wf:arcgis::QueryAttachmentInfos",i.suite="gcx:wf:builtin",i);function i(){}e.QueryAttachmentInfos=n});