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