import{H as o,dG as i,Y as c}from"./app-k0jcl5PQ.js";import{B as r}from"./DkDkjje4.chunk.js";const d={getRostering(){return{url:"{gateway}/v1/users/me/rostering",key:"rostering"}},getSyncList(t){const e={};if(t.cursor&&(e.cursor=t.cursor),t.sort&&(t.sort==="oldest"?e.order="ASC":e.order="DESC"),t.jobStatus){const s=[];t.jobStatus.includes("completed")&&s.push(r.Completed,r.CompletedWithError),t.jobStatus.includes("failed")&&s.push(r.Failed),t.jobStatus.includes("inProgress")&&s.push(r.Submitted,r.Queued,r.Pending,r.InProgress),e.status=s}return e.type=i.Rostering,{url:c.urlBuilder("{gateway}/v1/batch/jobs",e),key:`rostering:sync:${t.cursor}:${t.sort}:${t.jobStatus}`}},createJob(t,e,s){return{url:"{gateway}/v1/batch/jobs",key:"rostering:sync",type:o.POST,invalidationKeys:["rostering:sync"],data:t,success:e,error:s}},getJobSummary(t){return{url:`{gateway}/v1/batch/jobs/${t}/summary`,key:`job:summary:${t}`}},getSyncScheduleSettings(t){return{url:`{gateway}/v1/rostering/${t}/schedule`,key:`sync-settings:${t}`}},updateScheduleSetting(t,e,s,n,u){return{type:o.PUT,url:`{gateway}/v1/rostering/${e}/schedule`,key:`update:sync-settings:${t.customerId}:${e}`,invalidationKeys:[`sync-settings:${e}`],data:t,success:s,error:n,always:u}}};export{d as R};
//# sourceMappingURL=4jZ12g_A.chunk.js.map
