import{H as s,Y as b,d$ as l,iq as p}from"./app-k0jcl5PQ.js";import{U as y}from"./fstW5ZQE.chunk.js";const g={createJob(e,t,r){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:s.POST,data:e,success:t,error:r}},createUserJob(e,t,r,o){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:s.POST,data:{...e,metadata:{...e.metadata,product:{name:l.Lite,version:t},source:y}},success:r,error:o}},getJobs(e){const t={};let r=[],o=[];return e.cursor&&(t.cursor=e.cursor),e.sort&&(e.sort==="oldest"?t.order="ASC":t.order="DESC"),e.bulkActionType?(r=Array.isArray(e.bulkActionType)?e.bulkActionType:[e.bulkActionType],t.type=r):t.type=p,e.userType&&(o=Array.isArray(e.userType)?e.userType:[e.userType],t.dataType=o),{url:b.urlBuilder("{gateway}/v1/batch/jobs",t),key:`batch:jobs:${e.cursor}:${e.sort}:${r.sort().join(":")}:${o.sort().join(":")}`}},getJob(e){return{url:`{gateway}/v1/batch/jobs/${e}`,key:`job:${e}`}},getJobProgress(e,t,r){return{url:`{gateway}/v1/batch/jobs/${e}/progress`,key:`job:${e}:progress`,invalidationKeys:`job:${e}:progress`,success:t,error:r}},getJobResults(e,t,r,o,u){const a={status:t};return r&&(a.cursor=r),{url:b.urlBuilder(`{gateway}/v1/batch/jobs/${e}/results`,a),key:`job:${e}:results:${t}:${r}`,success:o,error:u}},getYearGroupRolloverStatus(e){return{url:`{gateway}/v1/batch/validations/customers/${e}/year-group-roll-over`,key:"year:group:rollover:status"}},sendJobReports(e){return{url:"{gateway}/v1/batch/results/export",key:`send:job:reports:${e.sort().join(":")}`,type:s.POST,data:{jobIds:e}}},getJobSummary(e){return{url:`{gateway}/v1/batch/jobs/${e}/summary`,key:`job:summary:${e}`}}};export{g as J};
//# sourceMappingURL=hKqzfsO4.chunk.js.map
