@getontime/cli
Version:
Time keeping for live events
3 lines (2 loc) • 1.06 kB
JavaScript
import{e as s,k as i}from"./vendor-DFNUfA2K.js";import{aw as u,aD as f,ay as c}from"./index-BNit4nUw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="057614c4-ff9b-4ef6-8fd7-9842e4b8e987",e._sentryDebugIdIdentifier="sentry-dbid-057614c4-ff9b-4ef6-8fd7-9842e4b8e987")}catch{}})();const a=`${u}/custom-fields`;async function l(){return(await s.get(a)).data}async function g(e){return(await s.post(a,{...e})).data}async function m(e,t){return(await s.put(`${a}/${e}`,{...t})).data}async function h(e){return(await s.delete(`${a}/${e}`)).data}const y={};function F(){const{data:e,status:t,isFetching:r,isError:o,refetch:d}=i({queryKey:c,queryFn:l,placeholderData:(n,p)=>n,retry:5,retryDelay:n=>n*2500,refetchInterval:f,networkMode:"always"});return{data:e??y,status:t,isFetching:r,isError:o,refetch:d}}export{h as d,m as e,g as p,F as u};
//# sourceMappingURL=useCustomFields-C60U2vqf.js.map