import e from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import{dataFormatter as a}from"../shared/dataFormatter.js";import{corvaAPI as n}from"../../../../clients/index.js";var o=["pad.name","pad.wells"],s=function(){var s=r(t.mark((function r(s){var p,i,l,u,m,c;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:p=[],i=1,l=!0;case 3:if(!l){r.next=14;break}return null==s||s.throwIfAborted(),r.next=7,n.get("/v2/pads",{per_page:300,page:i,sort:"name",fields:o},{signal:s});case 7:m=r.sent,c=null!==(u=a.deserialize(m))&&void 0!==u?u:[],p.push.apply(p,e(c)),l=300===c.length,i+=1,r.next=3;break;case 14:return r.abrupt("return",p);case 15:case"end":return r.stop()}}),r)})));return function(e){return s.apply(this,arguments)}}();export{s as fetchPadsForWellEnrichment};
//# sourceMappingURL=fetchPadsForWellEnrichment.js.map
