import{l as a,b4 as t,n as i}from"./index-Db-xuq0b.js";var u=(e=>(e.NAME="NAME",e.NAME_AND_SIGNATURE="NAME_AND_SIGNATURE",e.NAME_AND_STAMP="NAME_AND_STAMP",e.SIGNATURE_AND_STAMP="SIGNATURE_AND_STAMP",e.SIGNATURE="SIGNATURE",e.STAMP="STAMP",e.ALL="ALL",e))(u||{});const c={createPrefix:async e=>t.post("/record-prefixes",e),updateCount:async(e,r)=>t.put(`/record-sequences/${e}`,{count:r}),getPrefix:async(e,r,n=0,s=10)=>t.get(`/record-prefixes/list/${e}/${r}`,{params:{skip:n,take:s,orderBy:"createdAt:DESC"}}),getPrefixByRecordTagId:async(e,r,n=0,s=10)=>t.get(`/record-prefixes/list/${e}/by-tag/${r}`,{params:{skip:n,take:s,orderBy:"createdAt:DESC"}}),getPrefixById:async e=>t.get(`/record-prefixes/list/${e}`),getPrefixCC:async(e,r,n=0,s=10)=>t.get(`/record-prefixes/list/cc/${e}/${r}`,{params:{skip:n,take:s,orderBy:"createdAt:DESC"}}),deletePrefix:async e=>t.delete(`/record-prefixes/${e}`),editPrefix:async(e,r)=>t.put(`/record-prefixes/${e}`,r),createSuffix:async e=>t.post("/record-suffixes",e),getSuffix:async(e,r,n=0,s=10)=>t.get(`/record-suffixes/list/${e}/${r}`,{params:{skip:n,take:s,orderBy:"createdAt:DESC"}}),getPrefixByPosition:async(e,r,n=0,s=10)=>t.get(`/record-prefixes/list/by-position/${e}/${r}`,{params:{skip:n,take:s,orderBy:"createdAt:DESC"}}),getSuffixById:async e=>t.get(`/record-suffixes/list/${e}`),getSuffixCC:async(e,r,n=0,s=10)=>t.get(`/record-suffixes/list/cc/${e}/${r}`,{params:{skip:n,take:s,orderBy:"createdAt:DESC"}}),deleteSuffix:async e=>t.delete(`/record-suffixes/${e}`),editSuffix:async(e,r)=>t.put(`/record-suffixes/${e}`,r),createRef:async(e,r)=>a.patch(`/units/add-reference-number-prefix/${r}`,e),deleteRef:async e=>t.delete(`/record-suffixes/${e}`),getRef:async e=>a.get(`/units/${e}`),createInternalPrefixSuffix:async e=>a.post("/unit-configurations",e),getInternalConfig:async e=>a.get(`/unit-configurations/list/${e}`),updateInternalPrefixSuffix:async(e,r)=>a.put(`/unit-configurations/${r}`,e),deleteInternalPrefixSuffix:async e=>a.delete(`/unit-configurations/${e}`),createRemark:async e=>t.post("/record-common-remarks",e),getRemarkList:async(e,r)=>t.get(`/record-common-remarks/list/${e}/`,{params:r}),editRemark:async(e,r)=>t.put(`/record-common-remarks/${e}`,r),deleteRemarks:async e=>t.delete(`/record-common-remarks/${e}`),editExternalReferencePrefix:async(e,r)=>a.patch(`/unit-configurations/add-external-reference-number-prefix/${e}`,r),editInternalMemoReferencePrefix:async(e,r)=>a.patch(`/unit-configurations/add-internal-memo-reference-number-prefix/${e}`,r)},d=(e,r)=>i({queryKey:["unitConfig",e],queryFn:()=>c.getInternalConfig(e),enabled:(r==null?void 0:r.enabled)??!!e,staleTime:0,gcTime:0,refetchOnWindowFocus:!0});export{u as E,c as p,d as u};
