@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-q6fv0YT2.js";import{ay as u,aG as c,aA as l}from"./index-B81u4hxi.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]="a61b2069-3800-4c00-adf3-610ee6803f12",e._sentryDebugIdIdentifier="sentry-dbid-a61b2069-3800-4c00-adf3-610ee6803f12")}catch{}})();const a=`${u}/custom-fields`;async function f(){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:l,queryFn:f,placeholderData:(n,p)=>n,retry:5,retryDelay:n=>n*2500,refetchInterval:c,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-k4piRt9n.js.map