eventhr-http-client 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("axios"),s=require("@tanstack/react-query"),d=x.create({baseURL:"",headers:{"Content-Type":"application/json"}}),K=t=>{d.defaults.baseURL=t},b=t=>{Object.assign(d.defaults.headers.common,t)},O=t=>{delete d.defaults.headers.common[t]},B=(t,e)=>d.interceptors.request.use(t,e),D=t=>{d.interceptors.request.eject(t)};class a{constructor(){this.client=d}list(...e){throw new Error(`list() not implemented on ${this.constructor.name}`)}get(...e){throw new Error(`get() not implemented on ${this.constructor.name}`)}create(...e){throw new Error(`create() not implemented on ${this.constructor.name}`)}update(...e){throw new Error(`update() not implemented on ${this.constructor.name}`)}remove(...e){throw new Error(`remove() not implemented on ${this.constructor.name}`)}}class H extends a{constructor(){super(...arguments),this.endpoint="api/v1/events"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}create(e){return this.client.post(this.endpoint,e)}update(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const _=new H,y={v1:_};class z extends a{constructor(){super(...arguments),this.endpoint="api/v1/authentication/user"}login(e){return this.client.post(this.endpoint,e)}social(e){return this.client.post(`${this.endpoint}/social`,e)}refresh(e){return this.client.post(`${this.endpoint}/refresh`,e)}}const T=new z,C={v1:T};class L extends a{constructor(){super(...arguments),this.endpoint="api/v1/categories"}getAll(e){return this.client.get(this.endpoint,{params:e})}create(e){return this.client.post(this.endpoint,e)}update(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const j=new L,v={v1:j};class V extends a{constructor(){super(...arguments),this.endpoint="api/v1/collections"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}create(e){return this.client.post(this.endpoint,e)}update(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const Y=new V,l={v1:Y};class k extends a{constructor(){super(...arguments),this.endpoint="api/v1/users"}getAll(e){return this.client.get(this.endpoint,{params:e})}getProfile(){return this.client.get(`${this.endpoint}/profile`)}create(e){return this.client.post(this.endpoint,e)}createOrganizer(e){return this.client.post(`${this.endpoint}/organizer`,e)}createSubOrganizer(e){return this.client.post(`${this.endpoint}/sub-organizer`,e)}verify(e){return this.client.patch(`${this.endpoint}/${e}/verify`)}edit(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}}const N=new k,o={v1:N};class R extends a{constructor(){super(...arguments),this.endpoint="api/v1/files"}upload(e){const n=new FormData;return n.append("file",e),this.client.post(this.endpoint,n,{headers:{"Content-Type":"multipart/form-data"}})}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const W=new R,q={v1:W};class J extends a{constructor(){super(...arguments),this.endpoint="api/v1/onboardings"}getByUser(){return this.client.get(this.endpoint)}create(e){return this.client.post(this.endpoint,e)}update(e){return this.client.put(this.endpoint,e)}}const X=new J,w={v1:X};class Z extends a{constructor(){super(...arguments),this.endpoint="api/v1/event-attendances"}getAll(e){return this.client.get(this.endpoint,{params:e})}create(e){return this.client.post(this.endpoint,e)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const ee=new Z,m={v1:ee};class te extends a{constructor(){super(...arguments),this.endpoint="api/v1/forgot-password"}create(e){return this.client.post(this.endpoint,e)}changePassword(e,n){return this.client.patch(`${this.endpoint}/${e}/change`,n)}}const ne=new te,E={v1:ne};class se extends a{constructor(){super(...arguments),this.endpoint="api/v1/countries"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}}const ie=new se,f={v1:ie};class re extends a{constructor(){super(...arguments),this.endpoint="api/v1/counties"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}}const ae=new re,A={v1:ae};class oe extends a{constructor(){super(...arguments),this.endpoint="api/v1/cities"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}}const ue=new oe,G={v1:ue};class S{constructor(){this.Auth=C,this.Events=y,this.Categories=v,this.Collections=l,this.Users=o,this.Files=q,this.Onboardings=w,this.EventAttendances=m,this.ForgotPassword=E,this.Countries=f,this.Counties=A,this.Cities=G}configure({baseUrl:e,headers:n}){e!==void 0&&K(e),n!==void 0&&b(n)}removeHeader(e){O(e)}addInterceptor(e,n){return B(e,n)}removeInterceptor(e){D(e)}}const ce=new S,i={events:{all:["events"],list:t=>[...i.events.all,"list",t],detail:t=>[...i.events.all,"detail",t]},categories:{all:["categories"],list:t=>[...i.categories.all,"list",t]},collections:{all:["collections"],list:t=>[...i.collections.all,"list",t],detail:t=>[...i.collections.all,"detail",t]},users:{all:["users"],list:t=>[...i.users.all,"list",t],profile:()=>[...i.users.all,"profile"]},files:{all:["files"]},onboardings:{all:["onboardings"],detail:()=>[...i.onboardings.all,"detail"]},eventAttendances:{all:["event-attendances"],list:t=>[...i.eventAttendances.all,"list",t]},countries:{all:["countries"],list:t=>[...i.countries.all,"list",t],detail:t=>[...i.countries.all,"detail",t]},counties:{all:["counties"],list:t=>[...i.counties.all,"list",t],detail:t=>[...i.counties.all,"detail",t]},cities:{all:["cities"],list:t=>[...i.cities.all,"list",t],detail:t=>[...i.cities.all,"detail",t]}},le=(t,e)=>s.useQuery({queryKey:i.events.list(t),queryFn:async()=>(await y.v1.getAll(t)).data,...e}),de=(t,e)=>s.useQuery({queryKey:i.events.detail(t),queryFn:async()=>(await y.v1.getById(t)).data,...e}),ye=t=>s.useMutation({mutationFn:async e=>{await y.v1.create(e)},...t}),pe=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await y.v1.update(e,n)},...t}),ve=t=>s.useMutation({mutationFn:async({id:e})=>{await y.v1.remove(e)},...t}),h=new s.QueryClient({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0},mutations:{retry:0}}}),he=()=>h.invalidateQueries({queryKey:i.events.all}),ge=t=>s.useMutation({mutationFn:async e=>(await C.v1.login(e)).data,...t}),Ce=t=>s.useMutation({mutationFn:async e=>(await C.v1.social(e)).data,...t}),we=t=>s.useMutation({mutationFn:async e=>(await C.v1.refresh(e)).data,...t}),me=(t,e)=>s.useQuery({queryKey:i.categories.list(t),queryFn:async()=>(await v.v1.getAll(t)).data,...e}),Me=t=>s.useMutation({mutationFn:async e=>{await v.v1.create(e)},...t}),Qe=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await v.v1.update(e,n)},...t}),Fe=t=>s.useMutation({mutationFn:async({id:e})=>{await v.v1.remove(e)},...t}),$e=()=>h.invalidateQueries({queryKey:i.categories.all}),qe=(t,e)=>s.useQuery({queryKey:i.collections.list(t),queryFn:async()=>(await l.v1.getAll(t)).data,...e}),Ee=(t,e)=>s.useQuery({queryKey:i.collections.detail(t),queryFn:async()=>(await l.v1.getById(t)).data,...e}),fe=t=>s.useMutation({mutationFn:async e=>{await l.v1.create(e)},...t}),Ae=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await l.v1.update(e,n)},...t}),Ge=t=>s.useMutation({mutationFn:async({id:e})=>{await l.v1.remove(e)},...t}),Ue=t=>{const e=s.useQueryClient(),{onMutate:n,onError:U,onSettled:I,...P}=t??{};return s.useMutation({mutationFn:async({id:u,data:c})=>{await l.v1.update(u,c)},onMutate:async(u,c)=>{const{eventId:r}=u,p=[...i.events.all,"list"];await e.cancelQueries({queryKey:i.events.all});const g=e.getQueriesData({queryKey:p});e.setQueriesData({queryKey:p},F=>F&&{...F,content:F.content.map($=>$.id===r?{...$,isSaved:!$.isSaved}:$)});const M=i.events.detail(r),Q=e.getQueryData(M);return Q&&e.setQueryData(M,{...Q,isSaved:!Q.isSaved}),await(n==null?void 0:n(u,c)),{previousLists:g,previousDetail:Q}},onError:(u,c,r,p)=>{r==null||r.previousLists.forEach(([g,M])=>{e.setQueryData(g,M)}),r!=null&&r.previousDetail&&e.setQueryData(i.events.detail(c.eventId),r.previousDetail),U==null||U(u,c,r,p)},onSettled:(u,c,r,p,g)=>{e.invalidateQueries({queryKey:i.collections.all}),I==null||I(u,c,r,p,g)},...P})},Ie=()=>h.invalidateQueries({queryKey:i.collections.all}),Ke=(t,e)=>s.useQuery({queryKey:i.users.list(t),queryFn:async()=>(await o.v1.getAll(t)).data,...e}),be=t=>s.useQuery({queryKey:i.users.profile(),queryFn:async()=>(await o.v1.getProfile()).data,...t}),Oe=t=>s.useMutation({mutationFn:async e=>{await o.v1.create(e)},...t}),Be=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await o.v1.edit(e,n)},...t}),De=t=>s.useMutation({mutationFn:async e=>{await o.v1.createOrganizer(e)},...t}),Se=t=>s.useMutation({mutationFn:async e=>{await o.v1.createSubOrganizer(e)},...t}),Pe=t=>s.useMutation({mutationFn:async({userId:e})=>{await o.v1.verify(e)},...t}),xe=t=>s.useMutation({mutationFn:async e=>(await q.v1.upload(e)).data,...t}),He=t=>s.useMutation({mutationFn:async({id:e})=>{await q.v1.remove(e)},...t}),_e=t=>s.useQuery({queryKey:i.onboardings.detail(),queryFn:async()=>(await w.v1.getByUser()).data,...t}),ze=t=>s.useMutation({mutationFn:async e=>(await w.v1.create(e)).data,...t}),Te=t=>s.useMutation({mutationFn:async e=>(await w.v1.update(e)).data,...t}),Le=()=>h.invalidateQueries({queryKey:i.onboardings.all}),je=(t,e)=>s.useQuery({queryKey:i.eventAttendances.list(t),queryFn:async()=>(await m.v1.getAll(t)).data,...e}),Ve=t=>s.useMutation({mutationFn:async e=>{await m.v1.create(e)},...t}),Ye=t=>s.useMutation({mutationFn:async({id:e})=>{await m.v1.remove(e)},...t}),ke=()=>h.invalidateQueries({queryKey:i.eventAttendances.all}),Ne=t=>s.useMutation({mutationFn:async e=>{await E.v1.create(e)},...t}),Re=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await E.v1.changePassword(e,n)},...t}),We=(t,e)=>s.useQuery({queryKey:i.countries.list(t),queryFn:async()=>(await f.v1.getAll(t)).data,...e}),Je=(t,e)=>s.useQuery({queryKey:i.countries.detail(t),queryFn:async()=>(await f.v1.getById(t)).data,...e}),Xe=(t,e)=>s.useQuery({queryKey:i.counties.list(t),queryFn:async()=>(await A.v1.getAll(t)).data,...e}),Ze=(t,e)=>s.useQuery({queryKey:i.counties.detail(t),queryFn:async()=>(await A.v1.getById(t)).data,...e}),et=(t,e)=>s.useQuery({queryKey:i.cities.list(t),queryFn:async()=>(await G.v1.getAll(t)).data,...e}),tt=(t,e)=>s.useQuery({queryKey:i.cities.detail(t),queryFn:async()=>(await G.v1.getById(t)).data,...e});exports.Auth=C;exports.Categories=v;exports.Cities=G;exports.Collections=l;exports.Counties=A;exports.Countries=f;exports.EVENTHR_QUERY_KEYS=i;exports.EventAttendances=m;exports.EventhrHttpClient=S;exports.Events=y;exports.Files=q;exports.ForgotPassword=E;exports.HttpClient=a;exports.Onboardings=w;exports.Users=o;exports.addRequestInterceptor=B;exports.default=ce;exports.instance=d;exports.invalidateCategoriesCache=$e;exports.invalidateCollectionsCache=Ie;exports.invalidateEventAttendancesCache=ke;exports.invalidateEventsCache=he;exports.invalidateOnboardingsCache=Le;exports.queryClient=h;exports.removeHeader=O;exports.removeRequestInterceptor=D;exports.setBaseUrl=K;exports.setHeaders=b;exports.useChangePasswordMutation=Re;exports.useCreateCategoryMutation=Me;exports.useCreateCollectionMutation=fe;exports.useCreateEventAttendanceMutation=Ve;exports.useCreateEventMutation=ye;exports.useCreateForgotPasswordMutation=Ne;exports.useCreateOnboardingMutation=ze;exports.useCreateOrganizerMutation=De;exports.useCreateSubOrganizerMutation=Se;exports.useCreateUserMutation=Oe;exports.useDeleteCategoryMutation=Fe;exports.useDeleteCollectionMutation=Ge;exports.useDeleteEventAttendanceMutation=Ye;exports.useDeleteEventMutation=ve;exports.useDeleteFileMutation=He;exports.useEditUserMutation=Be;exports.useGetCategoriesQuery=me;exports.useGetCitiesQuery=et;exports.useGetCityByIdQuery=tt;exports.useGetCollectionByIdQuery=Ee;exports.useGetCollectionsQuery=qe;exports.useGetCountiesQuery=Xe;exports.useGetCountriesQuery=We;exports.useGetCountryByIdQuery=Je;exports.useGetCountyByIdQuery=Ze;exports.useGetEventAttendancesQuery=je;exports.useGetEventByIdQuery=de;exports.useGetEventsQuery=le;exports.useGetOnboardingQuery=_e;exports.useGetProfileQuery=be;exports.useGetUsersQuery=Ke;exports.useLoginMutation=ge;exports.useRefreshTokenMutation=we;exports.useSaveEventMutation=Ue;exports.useSocialAuthMutation=Ce;exports.useUpdateCategoryMutation=Qe;exports.useUpdateCollectionMutation=Ae;exports.useUpdateEventMutation=pe;exports.useUpdateOnboardingMutation=Te;exports.useUploadFileMutation=xe;exports.useVerifyUserMutation=Pe;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("axios"),s=require("@tanstack/react-query"),d=x.create({baseURL:"",headers:{"Content-Type":"application/json"}}),K=t=>{d.defaults.baseURL=t},b=t=>{Object.assign(d.defaults.headers.common,t)},O=t=>{delete d.defaults.headers.common[t]},B=(t,e)=>d.interceptors.request.use(t,e),D=t=>{d.interceptors.request.eject(t)};class r{constructor(){this.client=d}list(...e){throw new Error(`list() not implemented on ${this.constructor.name}`)}get(...e){throw new Error(`get() not implemented on ${this.constructor.name}`)}create(...e){throw new Error(`create() not implemented on ${this.constructor.name}`)}update(...e){throw new Error(`update() not implemented on ${this.constructor.name}`)}remove(...e){throw new Error(`remove() not implemented on ${this.constructor.name}`)}}class H extends r{constructor(){super(...arguments),this.endpoint="api/v1/events"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}create(e){return this.client.post(this.endpoint,e)}update(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const _=new H,y={v1:_};class z extends r{constructor(){super(...arguments),this.endpoint="api/v1/authentication/user"}login(e){return this.client.post(this.endpoint,e)}social(e){return this.client.post(`${this.endpoint}/social`,e)}refresh(e){return this.client.post(`${this.endpoint}/refresh`,e)}}const T=new z,C={v1:T};class L extends r{constructor(){super(...arguments),this.endpoint="api/v1/categories"}getAll(e){return this.client.get(this.endpoint,{params:e})}create(e){return this.client.post(this.endpoint,e)}update(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const j=new L,v={v1:j};class V extends r{constructor(){super(...arguments),this.endpoint="api/v1/collections"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}create(e){return this.client.post(this.endpoint,e)}update(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}removeEvent(e){return this.client.delete(`${this.endpoint}/events/${e}`)}}const Y=new V,a={v1:Y};class R extends r{constructor(){super(...arguments),this.endpoint="api/v1/users"}getAll(e){return this.client.get(this.endpoint,{params:e})}getProfile(){return this.client.get(`${this.endpoint}/profile`)}create(e){return this.client.post(this.endpoint,e)}createOrganizer(e){return this.client.post(`${this.endpoint}/organizer`,e)}createSubOrganizer(e){return this.client.post(`${this.endpoint}/sub-organizer`,e)}verify(e){return this.client.patch(`${this.endpoint}/${e}/verify`)}edit(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}}const k=new R,u={v1:k};class N extends r{constructor(){super(...arguments),this.endpoint="api/v1/files"}upload(e){const n=new FormData;return n.append("file",e),this.client.post(this.endpoint,n,{headers:{"Content-Type":"multipart/form-data"}})}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const W=new N,E={v1:W};class J extends r{constructor(){super(...arguments),this.endpoint="api/v1/onboardings"}getByUser(){return this.client.get(this.endpoint)}create(e){return this.client.post(this.endpoint,e)}update(e){return this.client.put(this.endpoint,e)}}const X=new J,m={v1:X};class Z extends r{constructor(){super(...arguments),this.endpoint="api/v1/event-attendances"}getAll(e){return this.client.get(this.endpoint,{params:e})}create(e){return this.client.post(this.endpoint,e)}remove(e){return this.client.delete(`${this.endpoint}/${e}`)}}const ee=new Z,w={v1:ee};class te extends r{constructor(){super(...arguments),this.endpoint="api/v1/forgot-password"}create(e){return this.client.post(this.endpoint,e)}changePassword(e,n){return this.client.patch(`${this.endpoint}/${e}/change`,n)}}const ne=new te,q={v1:ne};class se extends r{constructor(){super(...arguments),this.endpoint="api/v1/countries"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}}const ie=new se,f={v1:ie};class oe extends r{constructor(){super(...arguments),this.endpoint="api/v1/counties"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}}const re=new oe,A={v1:re};class ae extends r{constructor(){super(...arguments),this.endpoint="api/v1/cities"}getAll(e){return this.client.get(this.endpoint,{params:e})}getById(e){return this.client.get(`${this.endpoint}/${e}`)}}const ue=new ae,G={v1:ue};class S{constructor(){this.Auth=C,this.Events=y,this.Categories=v,this.Collections=a,this.Users=u,this.Files=E,this.Onboardings=m,this.EventAttendances=w,this.ForgotPassword=q,this.Countries=f,this.Counties=A,this.Cities=G}configure({baseUrl:e,headers:n}){e!==void 0&&K(e),n!==void 0&&b(n)}removeHeader(e){O(e)}addInterceptor(e,n){return B(e,n)}removeInterceptor(e){D(e)}}const ce=new S,i={events:{all:["events"],list:t=>[...i.events.all,"list",t],detail:t=>[...i.events.all,"detail",t]},categories:{all:["categories"],list:t=>[...i.categories.all,"list",t]},collections:{all:["collections"],list:t=>[...i.collections.all,"list",t],detail:t=>[...i.collections.all,"detail",t]},users:{all:["users"],list:t=>[...i.users.all,"list",t],profile:()=>[...i.users.all,"profile"]},files:{all:["files"]},onboardings:{all:["onboardings"],detail:()=>[...i.onboardings.all,"detail"]},eventAttendances:{all:["event-attendances"],list:t=>[...i.eventAttendances.all,"list",t]},countries:{all:["countries"],list:t=>[...i.countries.all,"list",t],detail:t=>[...i.countries.all,"detail",t]},counties:{all:["counties"],list:t=>[...i.counties.all,"list",t],detail:t=>[...i.counties.all,"detail",t]},cities:{all:["cities"],list:t=>[...i.cities.all,"list",t],detail:t=>[...i.cities.all,"detail",t]}},le=(t,e)=>s.useQuery({queryKey:i.events.list(t),queryFn:async()=>(await y.v1.getAll(t)).data,...e}),de=(t,e)=>s.useQuery({queryKey:i.events.detail(t),queryFn:async()=>(await y.v1.getById(t)).data,...e}),ye=t=>s.useMutation({mutationFn:async e=>{await y.v1.create(e)},...t}),pe=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await y.v1.update(e,n)},...t}),ve=t=>s.useMutation({mutationFn:async({id:e})=>{await y.v1.remove(e)},...t}),h=new s.QueryClient({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0},mutations:{retry:0}}}),he=()=>h.invalidateQueries({queryKey:i.events.all}),ge=t=>s.useMutation({mutationFn:async e=>(await C.v1.login(e)).data,...t}),Ce=t=>s.useMutation({mutationFn:async e=>(await C.v1.social(e)).data,...t}),me=t=>s.useMutation({mutationFn:async e=>(await C.v1.refresh(e)).data,...t}),we=(t,e)=>s.useQuery({queryKey:i.categories.list(t),queryFn:async()=>(await v.v1.getAll(t)).data,...e}),Me=t=>s.useMutation({mutationFn:async e=>{await v.v1.create(e)},...t}),Qe=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await v.v1.update(e,n)},...t}),Fe=t=>s.useMutation({mutationFn:async({id:e})=>{await v.v1.remove(e)},...t}),$e=()=>h.invalidateQueries({queryKey:i.categories.all}),Ee=(t,e)=>s.useQuery({queryKey:i.collections.list(t),queryFn:async()=>(await a.v1.getAll(t)).data,...e}),qe=(t,e)=>s.useQuery({queryKey:i.collections.detail(t),queryFn:async()=>(await a.v1.getById(t)).data,...e}),fe=t=>s.useMutation({mutationFn:async e=>{await a.v1.create(e)},...t}),Ae=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await a.v1.update(e,n)},...t}),Ge=t=>s.useMutation({mutationFn:async({id:e})=>{await a.v1.remove(e)},...t}),Ue=t=>s.useMutation({mutationFn:async({eventId:e})=>{await a.v1.removeEvent(e)},...t}),Ie=t=>{const e=s.useQueryClient(),{onMutate:n,onError:U,onSettled:I,...P}=t??{};return s.useMutation({mutationFn:async({id:c,data:l})=>{await a.v1.update(c,l)},onMutate:async(c,l)=>{const{eventId:o}=c,p=[...i.events.all,"list"];await e.cancelQueries({queryKey:i.events.all});const g=e.getQueriesData({queryKey:p});e.setQueriesData({queryKey:p},F=>F&&{...F,content:F.content.map($=>$.id===o?{...$,isSaved:!$.isSaved}:$)});const M=i.events.detail(o),Q=e.getQueryData(M);return Q&&e.setQueryData(M,{...Q,isSaved:!Q.isSaved}),await(n==null?void 0:n(c,l)),{previousLists:g,previousDetail:Q}},onError:(c,l,o,p)=>{o==null||o.previousLists.forEach(([g,M])=>{e.setQueryData(g,M)}),o!=null&&o.previousDetail&&e.setQueryData(i.events.detail(l.eventId),o.previousDetail),U==null||U(c,l,o,p)},onSettled:(c,l,o,p,g)=>{e.invalidateQueries({queryKey:i.collections.all}),I==null||I(c,l,o,p,g)},...P})},Ke=()=>h.invalidateQueries({queryKey:i.collections.all}),be=(t,e)=>s.useQuery({queryKey:i.users.list(t),queryFn:async()=>(await u.v1.getAll(t)).data,...e}),Oe=t=>s.useQuery({queryKey:i.users.profile(),queryFn:async()=>(await u.v1.getProfile()).data,...t}),Be=t=>s.useMutation({mutationFn:async e=>{await u.v1.create(e)},...t}),De=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await u.v1.edit(e,n)},...t}),Se=t=>s.useMutation({mutationFn:async e=>{await u.v1.createOrganizer(e)},...t}),Pe=t=>s.useMutation({mutationFn:async e=>{await u.v1.createSubOrganizer(e)},...t}),xe=t=>s.useMutation({mutationFn:async({userId:e})=>{await u.v1.verify(e)},...t}),He=t=>s.useMutation({mutationFn:async e=>(await E.v1.upload(e)).data,...t}),_e=t=>s.useMutation({mutationFn:async({id:e})=>{await E.v1.remove(e)},...t}),ze=t=>s.useQuery({queryKey:i.onboardings.detail(),queryFn:async()=>(await m.v1.getByUser()).data,...t}),Te=t=>s.useMutation({mutationFn:async e=>(await m.v1.create(e)).data,...t}),Le=t=>s.useMutation({mutationFn:async e=>(await m.v1.update(e)).data,...t}),je=()=>h.invalidateQueries({queryKey:i.onboardings.all}),Ve=(t,e)=>s.useQuery({queryKey:i.eventAttendances.list(t),queryFn:async()=>(await w.v1.getAll(t)).data,...e}),Ye=t=>s.useMutation({mutationFn:async e=>{await w.v1.create(e)},...t}),Re=t=>s.useMutation({mutationFn:async({id:e})=>{await w.v1.remove(e)},...t}),ke=()=>h.invalidateQueries({queryKey:i.eventAttendances.all}),Ne=t=>s.useMutation({mutationFn:async e=>{await q.v1.create(e)},...t}),We=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await q.v1.changePassword(e,n)},...t}),Je=(t,e)=>s.useQuery({queryKey:i.countries.list(t),queryFn:async()=>(await f.v1.getAll(t)).data,...e}),Xe=(t,e)=>s.useQuery({queryKey:i.countries.detail(t),queryFn:async()=>(await f.v1.getById(t)).data,...e}),Ze=(t,e)=>s.useQuery({queryKey:i.counties.list(t),queryFn:async()=>(await A.v1.getAll(t)).data,...e}),et=(t,e)=>s.useQuery({queryKey:i.counties.detail(t),queryFn:async()=>(await A.v1.getById(t)).data,...e}),tt=(t,e)=>s.useQuery({queryKey:i.cities.list(t),queryFn:async()=>(await G.v1.getAll(t)).data,...e}),nt=(t,e)=>s.useQuery({queryKey:i.cities.detail(t),queryFn:async()=>(await G.v1.getById(t)).data,...e});exports.Auth=C;exports.Categories=v;exports.Cities=G;exports.Collections=a;exports.Counties=A;exports.Countries=f;exports.EVENTHR_QUERY_KEYS=i;exports.EventAttendances=w;exports.EventhrHttpClient=S;exports.Events=y;exports.Files=E;exports.ForgotPassword=q;exports.HttpClient=r;exports.Onboardings=m;exports.Users=u;exports.addRequestInterceptor=B;exports.default=ce;exports.instance=d;exports.invalidateCategoriesCache=$e;exports.invalidateCollectionsCache=Ke;exports.invalidateEventAttendancesCache=ke;exports.invalidateEventsCache=he;exports.invalidateOnboardingsCache=je;exports.queryClient=h;exports.removeHeader=O;exports.removeRequestInterceptor=D;exports.setBaseUrl=K;exports.setHeaders=b;exports.useChangePasswordMutation=We;exports.useCreateCategoryMutation=Me;exports.useCreateCollectionMutation=fe;exports.useCreateEventAttendanceMutation=Ye;exports.useCreateEventMutation=ye;exports.useCreateForgotPasswordMutation=Ne;exports.useCreateOnboardingMutation=Te;exports.useCreateOrganizerMutation=Se;exports.useCreateSubOrganizerMutation=Pe;exports.useCreateUserMutation=Be;exports.useDeleteCategoryMutation=Fe;exports.useDeleteCollectionMutation=Ge;exports.useDeleteEventAttendanceMutation=Re;exports.useDeleteEventMutation=ve;exports.useDeleteFileMutation=_e;exports.useEditUserMutation=De;exports.useGetCategoriesQuery=we;exports.useGetCitiesQuery=tt;exports.useGetCityByIdQuery=nt;exports.useGetCollectionByIdQuery=qe;exports.useGetCollectionsQuery=Ee;exports.useGetCountiesQuery=Ze;exports.useGetCountriesQuery=Je;exports.useGetCountryByIdQuery=Xe;exports.useGetCountyByIdQuery=et;exports.useGetEventAttendancesQuery=Ve;exports.useGetEventByIdQuery=de;exports.useGetEventsQuery=le;exports.useGetOnboardingQuery=ze;exports.useGetProfileQuery=Oe;exports.useGetUsersQuery=be;exports.useLoginMutation=ge;exports.useRefreshTokenMutation=me;exports.useRemoveEventFromCollectionsMutation=Ue;exports.useSaveEventMutation=Ie;exports.useSocialAuthMutation=Ce;exports.useUpdateCategoryMutation=Qe;exports.useUpdateCollectionMutation=Ae;exports.useUpdateEventMutation=pe;exports.useUpdateOnboardingMutation=Le;exports.useUploadFileMutation=He;exports.useVerifyUserMutation=xe;
2
2
  //# sourceMappingURL=index.cjs.map
package/lib/index.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/instance.ts","../src/api/common/HttpClient.ts","../src/api/events/v1/index.ts","../src/api/events/index.ts","../src/api/auth/v1/index.ts","../src/api/auth/index.ts","../src/api/categories/v1/index.ts","../src/api/categories/index.ts","../src/api/collections/v1/index.ts","../src/api/collections/index.ts","../src/api/users/v1/index.ts","../src/api/users/index.ts","../src/api/files/v1/index.ts","../src/api/files/index.ts","../src/api/onboardings/v1/index.ts","../src/api/onboardings/index.ts","../src/api/event-attendances/v1/index.ts","../src/api/event-attendances/index.ts","../src/api/forgot-password/v1/index.ts","../src/api/forgot-password/index.ts","../src/api/countries/v1/index.ts","../src/api/countries/index.ts","../src/api/counties/v1/index.ts","../src/api/counties/index.ts","../src/api/cities/v1/index.ts","../src/api/cities/index.ts","../src/api/EventhrHttp.ts","../src/api/eventhrKeys.ts","../src/api/events/events.hooks.ts","../src/query-client.ts","../src/api/events/events.cache.ts","../src/api/auth/auth.hooks.ts","../src/api/categories/categories.hooks.ts","../src/api/categories/categories.cache.ts","../src/api/collections/collections.hooks.ts","../src/api/collections/collections.cache.ts","../src/api/users/users.hooks.ts","../src/api/files/files.hooks.ts","../src/api/onboardings/onboardings.hooks.ts","../src/api/onboardings/onboardings.cache.ts","../src/api/event-attendances/event-attendances.hooks.ts","../src/api/event-attendances/event-attendances.cache.ts","../src/api/forgot-password/forgot-password.hooks.ts","../src/api/countries/countries.hooks.ts","../src/api/counties/counties.hooks.ts","../src/api/cities/cities.hooks.ts"],"sourcesContent":["import axios, { type AxiosInstance, type InternalAxiosRequestConfig } from 'axios';\n\nconst instance: AxiosInstance = axios.create({\n baseURL: '',\n headers: {\n 'Content-Type': 'application/json',\n },\n});\n\nexport const setBaseUrl = (url: string): void => {\n instance.defaults.baseURL = url;\n};\n\nexport const setHeaders = (headers: Record<string, string>): void => {\n Object.assign(instance.defaults.headers.common, headers);\n};\n\nexport const removeHeader = (key: string): void => {\n delete (instance.defaults.headers.common as Record<string, string>)[key];\n};\n\nexport const addRequestInterceptor = (\n onFulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n): number => instance.interceptors.request.use(onFulfilled, onRejected);\n\nexport const removeRequestInterceptor = (id: number): void => {\n instance.interceptors.request.eject(id);\n};\n\nexport { instance };\nexport default instance;\n","import instance from '../../instance';\n\nexport abstract class HttpClient {\n abstract endpoint: string;\n\n readonly client = instance;\n\n list(..._args: unknown[]): Promise<unknown> {\n throw new Error(`list() not implemented on ${this.constructor.name}`);\n }\n\n get(..._args: unknown[]): Promise<unknown> {\n throw new Error(`get() not implemented on ${this.constructor.name}`);\n }\n\n create(..._args: unknown[]): Promise<unknown> {\n throw new Error(`create() not implemented on ${this.constructor.name}`);\n }\n\n update(..._args: unknown[]): Promise<unknown> {\n throw new Error(`update() not implemented on ${this.constructor.name}`);\n }\n\n remove(..._args: unknown[]): Promise<unknown> {\n throw new Error(`remove() not implemented on ${this.constructor.name}`);\n }\n}\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, Coordinates, CountryVo, FileVo, PageRequest, Page } from '@/api/common/types';\n\n\nexport interface EventAddress {\n countryVo?: CountryVo;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport interface EventAddressDto {\n cityId: string;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport type EventFeature =\n | 'FREE_ENTRY'\n | 'PAID_ENTRY'\n | 'RESERVATION_REQUIRED'\n | 'INDOOR'\n | 'OUTDOOR'\n | 'FREE_PARKING_NEARBY'\n | 'PAID_PARKING_NEARBY'\n | 'NO_PARKING_AVAILABLE'\n | 'PUBLIC_TRANSPORT_NEARBY'\n | 'WHEELCHAIR_ACCESSIBLE'\n | 'ACCESSIBLE_RESTROOM'\n | 'FAMILY_FRIENDLY'\n | 'PET_FRIENDLY'\n | 'FOOD_AVAILABLE'\n | 'DRINKS_AVAILABLE'\n | 'VEGAN_VEGETARIAN_OPTIONS'\n | 'CARD_PAYMENT_AVAILABLE'\n | 'CASH_ONLY'\n | 'NON_SMOKING'\n | 'SMOKING_ALLOWED'\n | 'ADULTS_ONLY_18_PLUS'\n | 'CLOAKROOM_AVAILABLE'\n | 'BABY_CHANGING_FACILITY';\n\nexport interface SubEvent {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n images: FileVo[];\n features?: EventFeature[];\n attendeeCount?: number;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface Event {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n organizer: BaseValueObject;\n category: BaseValueObject;\n features?: EventFeature[];\n attendeeCount?: number;\n images?: FileVo[];\n parentEvent?: BaseValueObject;\n subEvents?: SubEvent[];\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface CreateEventDto {\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddressDto;\n coordinates: Coordinates;\n price: number;\n capacity?: number;\n imageIds?: string[];\n features?: EventFeature[];\n categoryId: string;\n subOrganizerId?: string;\n parentEventId?: string;\n}\n\nexport type UpdateEventDto = CreateEventDto;\n\nexport interface GetEventsParams extends PageRequest {\n name?: string;\n latitude?: number;\n longitude?: number;\n radiusKm?: number;\n}\n\n\n\nclass EventsClient extends HttpClient {\n endpoint = 'api/v1/events';\n\n getAll(params?: GetEventsParams) {\n return this.client.get<Page<Event>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Event>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateEventDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateEventDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Event,\n EventAddress,\n EventAddressDto,\n EventFeature,\n SubEvent,\n CreateEventDto,\n UpdateEventDto,\n GetEventsParams,\n} from './v1';\nexport type { BaseValueObject, Coordinates, CountryVo, FileVo } from '@/api/common/types';\n\nexport const Events = { v1 };\nexport default Events;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface AuthTokenResponse {\n authenticationToken: string;\n refreshToken: string;\n}\n\nexport interface LoginDto {\n username: string;\n password: string;\n notificationToken?: string;\n}\n\nexport interface RefreshTokenDto {\n refreshToken: string;\n}\n\nexport type SocialProvider = 'GOOGLE' | 'FACEBOOK';\n\nexport interface SocialAuthDto {\n provider: SocialProvider;\n token: string;\n}\n\nexport interface SocialAuthResponse {\n email: string;\n name: string;\n provider: string;\n}\n\n\n\nclass AuthClient extends HttpClient {\n endpoint = 'api/v1/authentication/user';\n\n login(data: LoginDto) {\n return this.client.post<AuthTokenResponse>(this.endpoint, data);\n }\n\n social(data: SocialAuthDto) {\n return this.client.post<SocialAuthResponse>(`${this.endpoint}/social`, data);\n }\n\n refresh(data: RefreshTokenDto) {\n return this.client.post<AuthTokenResponse>(`${this.endpoint}/refresh`, data);\n }\n}\n\nconst v1 = new AuthClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialProvider, SocialAuthDto, SocialAuthResponse } from './v1';\n\nexport const Auth = { v1 };\nexport default Auth;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Category {\n id: string;\n name: string;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCategoryDto {\n name: string;\n}\n\nexport interface UpdateCategoryDto {\n name: string;\n}\n\nexport interface GetCategoriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CategoriesClient extends HttpClient {\n endpoint = 'api/v1/categories';\n\n getAll(params?: GetCategoriesParams) {\n return this.client.get<Page<Category>>(this.endpoint, { params });\n }\n\n create(data: CreateCategoryDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCategoryDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CategoriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Category,\n CreateCategoryDto,\n UpdateCategoryDto,\n GetCategoriesParams,\n} from './v1';\n\nexport const Categories = { v1 };\nexport default Categories;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, PageRequest, Page } from '@/api/common/types';\n\nexport interface Collection {\n id: string;\n name: string;\n customer: BaseValueObject;\n events: BaseValueObject[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCollectionDto {\n name: string;\n eventIds?: string[];\n}\n\nexport interface UpdateCollectionDto {\n name: string;\n eventIds: string[];\n}\n\nexport interface GetCollectionsParams extends PageRequest {\n name?: string;\n}\n\nclass CollectionsClient extends HttpClient {\n endpoint = 'api/v1/collections';\n\n getAll(params?: GetCollectionsParams) {\n return this.client.get<Page<Collection>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Collection>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateCollectionDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCollectionDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CollectionsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Collection,\n CreateCollectionDto,\n UpdateCollectionDto,\n GetCollectionsParams,\n} from './v1';\n\nexport const Collections = { v1 };\nexport default Collections;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport type UserRole = 'ADMIN' | 'CUSTOMER' | 'PRIVATE_ORGANIZER' | 'PUBLIC_ORGANIZER' | 'SUB_ORGANIZER';\n\nexport interface User {\n id: string;\n name: string;\n username: string;\n imageId?: string;\n createdAt: string;\n updatedAt: string;\n emailVerified: boolean;\n onboarded: boolean;\n}\n\nexport interface CreateUserDto {\n name: string;\n username: string;\n password: string;\n}\n\nexport interface CreateOrganizerUserDto {\n name: string;\n username: string;\n password: string;\n userRole: UserRole;\n}\n\nexport interface EditUserDto {\n name: string;\n username: string;\n password?: string;\n imageId?: string;\n}\n\n\n\nclass UsersClient extends HttpClient {\n endpoint = 'api/v1/users';\n\n getAll(params?: PageRequest) {\n return this.client.get<Page<User>>(this.endpoint, { params });\n }\n\n getProfile() {\n return this.client.get<User>(`${this.endpoint}/profile`);\n }\n\n create(data: CreateUserDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n createOrganizer(data: CreateOrganizerUserDto) {\n return this.client.post<void>(`${this.endpoint}/organizer`, data);\n }\n\n createSubOrganizer(data: CreateUserDto) {\n return this.client.post<void>(`${this.endpoint}/sub-organizer`, data);\n }\n\n verify(userId: string) {\n return this.client.patch<void>(`${this.endpoint}/${userId}/verify`);\n }\n\n edit(id: string, data: EditUserDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n}\n\nconst v1 = new UsersClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { User, UserRole, CreateUserDto, CreateOrganizerUserDto, EditUserDto } from './v1';\n\nexport const Users = { v1 };\nexport default Users;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport type FileType = 'IMAGE' | 'VIDEO' | 'DOCUMENT';\n\nexport interface UploadedFile {\n id: string;\n fileName: string;\n url: string;\n fileSize: number;\n fileType: FileType;\n createdAt: string;\n updatedAt: string;\n}\n\n\n\nclass FilesClient extends HttpClient {\n endpoint = 'api/v1/files';\n\n upload(file: File) {\n const formData = new FormData();\n formData.append('file', file);\n return this.client.post<UploadedFile>(this.endpoint, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new FilesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { UploadedFile, FileType } from './v1';\n\nexport const Files = { v1 };\nexport default Files;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, CountryVo } from '@/api/common/types';\n\n\nexport interface Onboarding {\n id: string;\n user: BaseValueObject;\n categories: BaseValueObject[];\n countries: CountryVo[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateOnboardingDto {\n categoryIds: string[];\n cityIds: string[];\n}\n\nexport type UpdateOnboardingDto = CreateOnboardingDto;\n\n\n\nclass OnboardingsClient extends HttpClient {\n endpoint = 'api/v1/onboardings';\n\n getByUser() {\n return this.client.get<Onboarding>(this.endpoint);\n }\n\n create(data: CreateOnboardingDto) {\n return this.client.post<Onboarding>(this.endpoint, data);\n }\n\n update(data: UpdateOnboardingDto) {\n return this.client.put<Onboarding>(this.endpoint, data);\n }\n}\n\nconst v1 = new OnboardingsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Onboarding, CreateOnboardingDto, UpdateOnboardingDto } from './v1';\n\nexport const Onboardings = { v1 };\nexport default Onboardings;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface EventAttendance {\n id: string;\n user: BaseValueObject;\n event: BaseValueObject;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateEventAttendanceDto {\n eventId: string;\n}\n\nexport interface GetEventAttendancesParams extends PageRequest {\n 'event-id'?: string;\n}\n\n\n\nclass EventAttendancesClient extends HttpClient {\n endpoint = 'api/v1/event-attendances';\n\n getAll(params?: GetEventAttendancesParams) {\n return this.client.get<Page<EventAttendance>>(this.endpoint, { params });\n }\n\n create(data: CreateEventAttendanceDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventAttendancesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { EventAttendance, CreateEventAttendanceDto, GetEventAttendancesParams } from './v1';\n\nexport const EventAttendances = { v1 };\nexport default EventAttendances;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface ForgotPasswordCreateDto {\n email: string;\n}\n\nexport interface ChangeForgotPasswordDto {\n password: string;\n}\n\n\n\nclass ForgotPasswordClient extends HttpClient {\n endpoint = 'api/v1/forgot-password';\n\n create(data: ForgotPasswordCreateDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n changePassword(id: string, data: ChangeForgotPasswordDto) {\n return this.client.patch<void>(`${this.endpoint}/${id}/change`, data);\n }\n}\n\nconst v1 = new ForgotPasswordClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { ForgotPasswordCreateDto, ChangeForgotPasswordDto } from './v1';\n\nexport const ForgotPassword = { v1 };\nexport default ForgotPassword;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Country {\n id: string;\n name: string;\n}\n\nexport interface GetCountriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CountriesClient extends HttpClient {\n endpoint = 'api/v1/countries';\n\n getAll(params?: GetCountriesParams) {\n return this.client.get<Page<Country>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Country>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Country, GetCountriesParams } from './v1';\n\nexport const Countries = { v1 };\nexport default Countries;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface County {\n id: string;\n name: string;\n country: BaseValueObject;\n}\n\nexport interface GetCountiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n}\n\n\n\nclass CountiesClient extends HttpClient {\n endpoint = 'api/v1/counties';\n\n getAll(params?: GetCountiesParams) {\n return this.client.get<Page<County>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<County>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { County, GetCountiesParams } from './v1';\n\nexport const Counties = { v1 };\nexport default Counties;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface City {\n id: string;\n name: string;\n country: BaseValueObject;\n county: BaseValueObject;\n}\n\nexport interface GetCitiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n 'county-id'?: string;\n}\n\n\n\nclass CitiesClient extends HttpClient {\n endpoint = 'api/v1/cities';\n\n getAll(params?: GetCitiesParams) {\n return this.client.get<Page<City>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<City>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CitiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { City, GetCitiesParams } from './v1';\n\nexport const Cities = { v1 };\nexport default Cities;\n","import { setBaseUrl, setHeaders, removeHeader, addRequestInterceptor, removeRequestInterceptor } from '../instance';\nimport type { InternalAxiosRequestConfig } from 'axios';\nimport Events from './events';\nimport Auth from './auth';\nimport Categories from './categories';\nimport Collections from './collections';\nimport Users from './users';\nimport Files from './files';\nimport Onboardings from './onboardings';\nimport EventAttendances from './event-attendances';\nimport ForgotPassword from './forgot-password';\nimport Countries from './countries';\nimport Counties from './counties';\nimport Cities from './cities';\n\nexport interface EventhrHttpConfig {\n baseUrl?: string;\n headers?: Record<string, string>;\n}\n\nexport class EventhrHttpClient {\n readonly Auth = Auth;\n readonly Events = Events;\n readonly Categories = Categories;\n readonly Collections = Collections;\n readonly Users = Users;\n readonly Files = Files;\n readonly Onboardings = Onboardings;\n readonly EventAttendances = EventAttendances;\n readonly ForgotPassword = ForgotPassword;\n readonly Countries = Countries;\n readonly Counties = Counties;\n readonly Cities = Cities;\n\n configure({ baseUrl, headers }: EventhrHttpConfig): void {\n if (baseUrl !== undefined) {\n setBaseUrl(baseUrl);\n }\n if (headers !== undefined) {\n setHeaders(headers);\n }\n }\n\n removeHeader(key: string): void {\n removeHeader(key);\n }\n\n addInterceptor(\n onFulfilled: (\n config: InternalAxiosRequestConfig,\n ) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n ): number {\n return addRequestInterceptor(onFulfilled, onRejected);\n }\n\n removeInterceptor(id: number): void {\n removeRequestInterceptor(id);\n }\n}\n\nconst EventhrHttp = new EventhrHttpClient();\nexport default EventhrHttp;\n","import type { GetEventsParams } from './events';\nimport type { GetCategoriesParams } from './categories';\nimport type { GetCollectionsParams } from './collections';\nimport type { GetCountriesParams } from './countries';\nimport type { GetCountiesParams } from './counties';\nimport type { GetCitiesParams } from './cities';\nimport type { GetEventAttendancesParams } from './event-attendances';\nimport type { PageRequest } from './common/types';\n\nexport const EVENTHR_QUERY_KEYS = {\n events: {\n all: ['events'] as const,\n list: (params?: GetEventsParams) => [...EVENTHR_QUERY_KEYS.events.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.events.all, 'detail', id] as const,\n },\n categories: {\n all: ['categories'] as const,\n list: (params?: GetCategoriesParams) =>\n [...EVENTHR_QUERY_KEYS.categories.all, 'list', params] as const,\n },\n collections: {\n all: ['collections'] as const,\n list: (params?: GetCollectionsParams) =>\n [...EVENTHR_QUERY_KEYS.collections.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.collections.all, 'detail', id] as const,\n },\n users: {\n all: ['users'] as const,\n list: (params?: PageRequest) => [...EVENTHR_QUERY_KEYS.users.all, 'list', params] as const,\n profile: () => [...EVENTHR_QUERY_KEYS.users.all, 'profile'] as const,\n },\n files: {\n all: ['files'] as const,\n },\n onboardings: {\n all: ['onboardings'] as const,\n detail: () => [...EVENTHR_QUERY_KEYS.onboardings.all, 'detail'] as const,\n },\n eventAttendances: {\n all: ['event-attendances'] as const,\n list: (params?: GetEventAttendancesParams) =>\n [...EVENTHR_QUERY_KEYS.eventAttendances.all, 'list', params] as const,\n },\n countries: {\n all: ['countries'] as const,\n list: (params?: GetCountriesParams) =>\n [...EVENTHR_QUERY_KEYS.countries.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.countries.all, 'detail', id] as const,\n },\n counties: {\n all: ['counties'] as const,\n list: (params?: GetCountiesParams) =>\n [...EVENTHR_QUERY_KEYS.counties.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.counties.all, 'detail', id] as const,\n },\n cities: {\n all: ['cities'] as const,\n list: (params?: GetCitiesParams) =>\n [...EVENTHR_QUERY_KEYS.cities.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.cities.all, 'detail', id] as const,\n },\n} as const;\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventDto, Event, GetEventsParams, UpdateEventDto } from './v1';\nimport Events from './index';\n\n\n\nexport const useGetEventsQuery = (\n params?: GetEventsParams,\n options?: QueryOptions<Page<Event>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.list(params),\n queryFn: async () => {\n const response = await Events.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetEventByIdQuery = (\n id: string,\n options?: QueryOptions<Event>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.detail(id),\n queryFn: async () => {\n const response = await Events.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateEventMutation = (\n options?: MutationOptions<void, CreateEventDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventDto) => {\n await Events.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateEventMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateEventDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateEventDto }) => {\n await Events.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteEventMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Events.v1.remove(id);\n },\n ...options,\n });\n","import { QueryClient } from '@tanstack/react-query';\n\nexport const queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 0,\n },\n mutations: {\n retry: 0,\n },\n },\n});\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialAuthDto, SocialAuthResponse } from './v1';\nimport Auth from './index';\n\nexport const useLoginMutation = (\n options?: MutationOptions<AuthTokenResponse, LoginDto>,\n) =>\n useMutation({\n mutationFn: async (data: LoginDto) => {\n const response = await Auth.v1.login(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useSocialAuthMutation = (\n options?: MutationOptions<SocialAuthResponse, SocialAuthDto>,\n) =>\n useMutation({\n mutationFn: async (data: SocialAuthDto) => {\n const response = await Auth.v1.social(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useRefreshTokenMutation = (\n options?: MutationOptions<AuthTokenResponse, RefreshTokenDto>,\n) =>\n useMutation({\n mutationFn: async (data: RefreshTokenDto) => {\n const response = await Auth.v1.refresh(data);\n return response.data;\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Category, CreateCategoryDto, GetCategoriesParams, UpdateCategoryDto } from './v1';\nimport Categories from './index';\n\n\n\nexport const useGetCategoriesQuery = (\n params?: GetCategoriesParams,\n options?: QueryOptions<Page<Category>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.categories.list(params),\n queryFn: async () => {\n const response = await Categories.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateCategoryMutation = (\n options?: MutationOptions<void, CreateCategoryDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCategoryDto) => {\n await Categories.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCategoryMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCategoryDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCategoryDto }) => {\n await Categories.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCategoryMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Categories.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCategoriesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.categories.all });\n","import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Event } from '@/api/events';\nimport type { Collection, CreateCollectionDto, GetCollectionsParams, UpdateCollectionDto } from './v1';\nimport Collections from './index';\n\n\n\nexport const useGetCollectionsQuery = (\n params?: GetCollectionsParams,\n options?: QueryOptions<Page<Collection>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.list(params),\n queryFn: async () => {\n const response = await Collections.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCollectionByIdQuery = (\n id: string,\n options?: QueryOptions<Collection>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.detail(id),\n queryFn: async () => {\n const response = await Collections.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateCollectionMutation = (\n options?: MutationOptions<void, CreateCollectionDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCollectionDto) => {\n await Collections.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCollectionMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCollectionDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCollectionDto }) => {\n await Collections.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCollectionMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Collections.v1.remove(id);\n },\n ...options,\n });\n\ntype SaveEventVariables = { id: string; eventId: string; data: UpdateCollectionDto };\ntype SaveEventContext = {\n previousLists: Array<[readonly unknown[], Page<Event> | undefined]>;\n previousDetail: Event | undefined;\n};\n\nexport const useSaveEventMutation = (\n options?: MutationOptions<void, SaveEventVariables>,\n) => {\n const queryClient = useQueryClient();\n const { onMutate, onError, onSettled, ...restOptions } = options ?? {};\n\n return useMutation<void, Error, SaveEventVariables, SaveEventContext>({\n mutationFn: async ({ id, data }) => {\n await Collections.v1.update(id, data);\n },\n onMutate: async (variables, mutationContext) => {\n const { eventId } = variables;\n const listKey = [...EVENTHR_QUERY_KEYS.events.all, 'list'];\n\n await queryClient.cancelQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n\n const previousLists = queryClient.getQueriesData<Page<Event>>({ queryKey: listKey });\n\n queryClient.setQueriesData<Page<Event>>({ queryKey: listKey }, (oldData) => {\n if (!oldData) return oldData;\n return {\n ...oldData,\n content: oldData.content.map((event) =>\n event.id === eventId ? { ...event, isSaved: !event.isSaved } : event,\n ),\n };\n });\n\n const detailKey = EVENTHR_QUERY_KEYS.events.detail(eventId);\n const previousDetail = queryClient.getQueryData<Event>(detailKey);\n if (previousDetail) {\n queryClient.setQueryData<Event>(detailKey, { ...previousDetail, isSaved: !previousDetail.isSaved });\n }\n\n await onMutate?.(variables, mutationContext);\n\n return { previousLists, previousDetail };\n },\n onError: (error, variables, onMutateResult, mutationContext) => {\n onMutateResult?.previousLists.forEach(([queryKey, data]) => {\n queryClient.setQueryData(queryKey, data);\n });\n if (onMutateResult?.previousDetail) {\n queryClient.setQueryData(\n EVENTHR_QUERY_KEYS.events.detail(variables.eventId),\n onMutateResult.previousDetail,\n );\n }\n onError?.(error, variables, onMutateResult, mutationContext);\n },\n onSettled: (data, error, variables, onMutateResult, mutationContext) => {\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n onSettled?.(data, error, variables, onMutateResult, mutationContext);\n },\n ...restOptions,\n });\n};\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCollectionsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, PageRequest, QueryOptions } from '@/api/common/types';\nimport type { CreateUserDto, CreateOrganizerUserDto, EditUserDto, User } from './v1';\nimport Users from './index';\n\n\n\nexport const useGetUsersQuery = (\n params?: PageRequest,\n options?: QueryOptions<Page<User>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.list(params),\n queryFn: async () => {\n const response = await Users.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetProfileQuery = (\n options?: QueryOptions<User>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.profile(),\n queryFn: async () => {\n const response = await Users.v1.getProfile();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateUserMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.create(data);\n },\n ...options,\n });\n\nexport const useEditUserMutation = (\n options?: MutationOptions<void, { id: string; data: EditUserDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: EditUserDto }) => {\n await Users.v1.edit(id, data);\n },\n ...options,\n });\n\nexport const useCreateOrganizerMutation = (\n options?: MutationOptions<void, CreateOrganizerUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOrganizerUserDto) => {\n await Users.v1.createOrganizer(data);\n },\n ...options,\n });\n\nexport const useCreateSubOrganizerMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.createSubOrganizer(data);\n },\n ...options,\n });\n\nexport const useVerifyUserMutation = (\n options?: MutationOptions<void, { userId: string }>,\n) =>\n useMutation({\n mutationFn: async ({ userId }: { userId: string }) => {\n await Users.v1.verify(userId);\n },\n ...options,\n });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { UploadedFile } from './v1';\nimport Files from './index';\n\nexport const useUploadFileMutation = (\n options?: MutationOptions<UploadedFile, File>,\n) =>\n useMutation({\n mutationFn: async (file: File) => {\n const response = await Files.v1.upload(file);\n return response.data;\n },\n ...options,\n });\n\nexport const useDeleteFileMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Files.v1.remove(id);\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, QueryOptions } from '@/api/common/types';\nimport type { CreateOnboardingDto, Onboarding, UpdateOnboardingDto } from './v1';\nimport Onboardings from './index';\n\n\n\nexport const useGetOnboardingQuery = (\n options?: QueryOptions<Onboarding>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.onboardings.detail(),\n queryFn: async () => {\n const response = await Onboardings.v1.getByUser();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateOnboardingMutation = (\n options?: MutationOptions<Onboarding, CreateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOnboardingDto) => {\n const response = await Onboardings.v1.create(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useUpdateOnboardingMutation = (\n options?: MutationOptions<Onboarding, UpdateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: UpdateOnboardingDto) => {\n const response = await Onboardings.v1.update(data);\n return response.data;\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateOnboardingsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.onboardings.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventAttendanceDto, EventAttendance, GetEventAttendancesParams } from './v1';\nimport EventAttendances from './index';\n\n\n\nexport const useGetEventAttendancesQuery = (\n params?: GetEventAttendancesParams,\n options?: QueryOptions<Page<EventAttendance>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.eventAttendances.list(params),\n queryFn: async () => {\n const response = await EventAttendances.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateEventAttendanceMutation = (\n options?: MutationOptions<void, CreateEventAttendanceDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventAttendanceDto) => {\n await EventAttendances.v1.create(data);\n },\n ...options,\n });\n\nexport const useDeleteEventAttendanceMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await EventAttendances.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventAttendancesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.eventAttendances.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { ChangeForgotPasswordDto, ForgotPasswordCreateDto } from './v1';\nimport ForgotPassword from './index';\n\n\n\nexport const useCreateForgotPasswordMutation = (\n options?: MutationOptions<void, ForgotPasswordCreateDto>,\n) =>\n useMutation({\n mutationFn: async (data: ForgotPasswordCreateDto) => {\n await ForgotPassword.v1.create(data);\n },\n ...options,\n });\n\nexport const useChangePasswordMutation = (\n options?: MutationOptions<void, { id: string; data: ChangeForgotPasswordDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: ChangeForgotPasswordDto }) => {\n await ForgotPassword.v1.changePassword(id, data);\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { Country, GetCountriesParams } from './v1';\nimport Countries from './index';\n\n\n\nexport const useGetCountriesQuery = (\n params?: GetCountriesParams,\n options?: QueryOptions<Page<Country>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.list(params),\n queryFn: async () => {\n const response = await Countries.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountryByIdQuery = (\n id: string,\n options?: QueryOptions<Country>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.detail(id),\n queryFn: async () => {\n const response = await Countries.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { County, GetCountiesParams } from './v1';\nimport Counties from './index';\n\n\n\nexport const useGetCountiesQuery = (\n params?: GetCountiesParams,\n options?: QueryOptions<Page<County>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.list(params),\n queryFn: async () => {\n const response = await Counties.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountyByIdQuery = (\n id: string,\n options?: QueryOptions<County>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.detail(id),\n queryFn: async () => {\n const response = await Counties.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { City, GetCitiesParams } from './v1';\nimport Cities from './index';\n\n\n\nexport const useGetCitiesQuery = (\n params?: GetCitiesParams,\n options?: QueryOptions<Page<City>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.list(params),\n queryFn: async () => {\n const response = await Cities.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCityByIdQuery = (\n id: string,\n options?: QueryOptions<City>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.detail(id),\n queryFn: async () => {\n const response = await Cities.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n"],"names":["instance","axios","setBaseUrl","url","setHeaders","headers","removeHeader","key","addRequestInterceptor","onFulfilled","onRejected","removeRequestInterceptor","id","HttpClient","_args","EventsClient","params","data","v1","Events","AuthClient","Auth","CategoriesClient","Categories","CollectionsClient","Collections","UsersClient","userId","Users","FilesClient","file","formData","Files","OnboardingsClient","Onboardings","EventAttendancesClient","EventAttendances","ForgotPasswordClient","ForgotPassword","CountriesClient","Countries","CountiesClient","Counties","CitiesClient","Cities","EventhrHttpClient","baseUrl","EventhrHttp","EVENTHR_QUERY_KEYS","useGetEventsQuery","options","useQuery","useGetEventByIdQuery","useCreateEventMutation","useMutation","useUpdateEventMutation","useDeleteEventMutation","queryClient","QueryClient","invalidateEventsCache","useLoginMutation","useSocialAuthMutation","useRefreshTokenMutation","useGetCategoriesQuery","useCreateCategoryMutation","useUpdateCategoryMutation","useDeleteCategoryMutation","invalidateCategoriesCache","useGetCollectionsQuery","useGetCollectionByIdQuery","useCreateCollectionMutation","useUpdateCollectionMutation","useDeleteCollectionMutation","useSaveEventMutation","useQueryClient","onMutate","onError","onSettled","restOptions","variables","mutationContext","eventId","listKey","previousLists","oldData","event","detailKey","previousDetail","error","onMutateResult","queryKey","invalidateCollectionsCache","useGetUsersQuery","useGetProfileQuery","useCreateUserMutation","useEditUserMutation","useCreateOrganizerMutation","useCreateSubOrganizerMutation","useVerifyUserMutation","useUploadFileMutation","useDeleteFileMutation","useGetOnboardingQuery","useCreateOnboardingMutation","useUpdateOnboardingMutation","invalidateOnboardingsCache","useGetEventAttendancesQuery","useCreateEventAttendanceMutation","useDeleteEventAttendanceMutation","invalidateEventAttendancesCache","useCreateForgotPasswordMutation","useChangePasswordMutation","useGetCountriesQuery","useGetCountryByIdQuery","useGetCountiesQuery","useGetCountyByIdQuery","useGetCitiesQuery","useGetCityByIdQuery"],"mappings":"wKAEMA,EAA0BC,EAAM,OAAO,CAC3C,QAAS,GACT,QAAS,CACP,eAAgB,kBAAA,CAEpB,CAAC,EAEYC,EAAcC,GAAsB,CAC/CH,EAAS,SAAS,QAAUG,CAC9B,EAEaC,EAAcC,GAA0C,CACnE,OAAO,OAAOL,EAAS,SAAS,QAAQ,OAAQK,CAAO,CACzD,EAEaC,EAAgBC,GAAsB,CACjD,OAAQP,EAAS,SAAS,QAAQ,OAAkCO,CAAG,CACzE,EAEaC,EAAwB,CACnCC,EACAC,IACWV,EAAS,aAAa,QAAQ,IAAIS,EAAaC,CAAU,EAEzDC,EAA4BC,GAAqB,CAC5DZ,EAAS,aAAa,QAAQ,MAAMY,CAA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5D,GAEAI,cAAY,CACV,WAAY,MAAO,CAAE,GAAA1C,EAAI,KAAAK,KAA0D,CACjF,MAAMqB,EAAe,GAAG,eAAe1B,EAAIK,CAAI,CACjD,EACA,GAAGiC,CACL,CAAC,ECjBU6D,GAAuB,CAClC/F,EACAkC,IAEAC,WAAS,CACP,SAAUH,EAAmB,UAAU,KAAKhC,CAAM,EAClD,QAAS,UACU,MAAMwB,EAAU,GAAG,OAAOxB,CAAM,GACjC,KAElB,GAAGkC,CACL,CAAC,EAEU8D,GAAyB,CACpCpG,EACAsC,IAEAC,WAAS,CACP,SAAUH,EAAmB,UAAU,OAAOpC,CAAE,EAChD,QAAS,UACU,MAAM4B,EAAU,GAAG,QAAQ5B,CAAE,GAC9B,KAElB,GAAGsC,CACL,CAAC,ECxBU+D,GAAsB,CACjCjG,EACAkC,IAEAC,WAAS,CACP,SAAUH,EAAmB,SAAS,KAAKhC,CAAM,EACjD,QAAS,UACU,MAAM0B,EAAS,GAAG,OAAO1B,CAAM,GAChC,KAElB,GAAGkC,CACL,CAAC,EAEUgE,GAAwB,CACnCtG,EACAsC,IAEAC,WAAS,CACP,SAAUH,EAAmB,SAAS,OAAOpC,CAAE,EAC/C,QAAS,UACU,MAAM8B,EAAS,GAAG,QAAQ9B,CAAE,GAC7B,KAElB,GAAGsC,CACL,CAAC,ECxBUiE,GAAoB,CAC/BnG,EACAkC,IAEAC,WAAS,CACP,SAAUH,EAAmB,OAAO,KAAKhC,CAAM,EAC/C,QAAS,UACU,MAAM4B,EAAO,GAAG,OAAO5B,CAAM,GAC9B,KAElB,GAAGkC,CACL,CAAC,EAEUkE,GAAsB,CACjCxG,EACAsC,IAEAC,WAAS,CACP,SAAUH,EAAmB,OAAO,OAAOpC,CAAE,EAC7C,QAAS,UACU,MAAMgC,EAAO,GAAG,QAAQhC,CAAE,GAC3B,KAElB,GAAGsC,CACL,CAAC"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/instance.ts","../src/api/common/HttpClient.ts","../src/api/events/v1/index.ts","../src/api/events/index.ts","../src/api/auth/v1/index.ts","../src/api/auth/index.ts","../src/api/categories/v1/index.ts","../src/api/categories/index.ts","../src/api/collections/v1/index.ts","../src/api/collections/index.ts","../src/api/users/v1/index.ts","../src/api/users/index.ts","../src/api/files/v1/index.ts","../src/api/files/index.ts","../src/api/onboardings/v1/index.ts","../src/api/onboardings/index.ts","../src/api/event-attendances/v1/index.ts","../src/api/event-attendances/index.ts","../src/api/forgot-password/v1/index.ts","../src/api/forgot-password/index.ts","../src/api/countries/v1/index.ts","../src/api/countries/index.ts","../src/api/counties/v1/index.ts","../src/api/counties/index.ts","../src/api/cities/v1/index.ts","../src/api/cities/index.ts","../src/api/EventhrHttp.ts","../src/api/eventhrKeys.ts","../src/api/events/events.hooks.ts","../src/query-client.ts","../src/api/events/events.cache.ts","../src/api/auth/auth.hooks.ts","../src/api/categories/categories.hooks.ts","../src/api/categories/categories.cache.ts","../src/api/collections/collections.hooks.ts","../src/api/collections/collections.cache.ts","../src/api/users/users.hooks.ts","../src/api/files/files.hooks.ts","../src/api/onboardings/onboardings.hooks.ts","../src/api/onboardings/onboardings.cache.ts","../src/api/event-attendances/event-attendances.hooks.ts","../src/api/event-attendances/event-attendances.cache.ts","../src/api/forgot-password/forgot-password.hooks.ts","../src/api/countries/countries.hooks.ts","../src/api/counties/counties.hooks.ts","../src/api/cities/cities.hooks.ts"],"sourcesContent":["import axios, { type AxiosInstance, type InternalAxiosRequestConfig } from 'axios';\n\nconst instance: AxiosInstance = axios.create({\n baseURL: '',\n headers: {\n 'Content-Type': 'application/json',\n },\n});\n\nexport const setBaseUrl = (url: string): void => {\n instance.defaults.baseURL = url;\n};\n\nexport const setHeaders = (headers: Record<string, string>): void => {\n Object.assign(instance.defaults.headers.common, headers);\n};\n\nexport const removeHeader = (key: string): void => {\n delete (instance.defaults.headers.common as Record<string, string>)[key];\n};\n\nexport const addRequestInterceptor = (\n onFulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n): number => instance.interceptors.request.use(onFulfilled, onRejected);\n\nexport const removeRequestInterceptor = (id: number): void => {\n instance.interceptors.request.eject(id);\n};\n\nexport { instance };\nexport default instance;\n","import instance from '../../instance';\n\nexport abstract class HttpClient {\n abstract endpoint: string;\n\n readonly client = instance;\n\n list(..._args: unknown[]): Promise<unknown> {\n throw new Error(`list() not implemented on ${this.constructor.name}`);\n }\n\n get(..._args: unknown[]): Promise<unknown> {\n throw new Error(`get() not implemented on ${this.constructor.name}`);\n }\n\n create(..._args: unknown[]): Promise<unknown> {\n throw new Error(`create() not implemented on ${this.constructor.name}`);\n }\n\n update(..._args: unknown[]): Promise<unknown> {\n throw new Error(`update() not implemented on ${this.constructor.name}`);\n }\n\n remove(..._args: unknown[]): Promise<unknown> {\n throw new Error(`remove() not implemented on ${this.constructor.name}`);\n }\n}\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, Coordinates, CountryVo, FileVo, PageRequest, Page } from '@/api/common/types';\n\n\nexport interface EventAddress {\n countryVo?: CountryVo;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport interface EventAddressDto {\n cityId: string;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport type EventFeature =\n | 'FREE_ENTRY'\n | 'PAID_ENTRY'\n | 'RESERVATION_REQUIRED'\n | 'INDOOR'\n | 'OUTDOOR'\n | 'FREE_PARKING_NEARBY'\n | 'PAID_PARKING_NEARBY'\n | 'NO_PARKING_AVAILABLE'\n | 'PUBLIC_TRANSPORT_NEARBY'\n | 'WHEELCHAIR_ACCESSIBLE'\n | 'ACCESSIBLE_RESTROOM'\n | 'FAMILY_FRIENDLY'\n | 'PET_FRIENDLY'\n | 'FOOD_AVAILABLE'\n | 'DRINKS_AVAILABLE'\n | 'VEGAN_VEGETARIAN_OPTIONS'\n | 'CARD_PAYMENT_AVAILABLE'\n | 'CASH_ONLY'\n | 'NON_SMOKING'\n | 'SMOKING_ALLOWED'\n | 'ADULTS_ONLY_18_PLUS'\n | 'CLOAKROOM_AVAILABLE'\n | 'BABY_CHANGING_FACILITY';\n\nexport interface SubEvent {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n images: FileVo[];\n features?: EventFeature[];\n attendeeCount?: number;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface Event {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n organizer: BaseValueObject;\n category: BaseValueObject;\n features?: EventFeature[];\n attendeeCount?: number;\n images?: FileVo[];\n parentEvent?: BaseValueObject;\n subEvents?: SubEvent[];\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface CreateEventDto {\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddressDto;\n coordinates: Coordinates;\n price: number;\n capacity?: number;\n imageIds?: string[];\n features?: EventFeature[];\n categoryId: string;\n subOrganizerId?: string;\n parentEventId?: string;\n}\n\nexport type UpdateEventDto = CreateEventDto;\n\nexport interface GetEventsParams extends PageRequest {\n name?: string;\n latitude?: number;\n longitude?: number;\n radiusKm?: number;\n}\n\n\n\nclass EventsClient extends HttpClient {\n endpoint = 'api/v1/events';\n\n getAll(params?: GetEventsParams) {\n return this.client.get<Page<Event>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Event>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateEventDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateEventDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Event,\n EventAddress,\n EventAddressDto,\n EventFeature,\n SubEvent,\n CreateEventDto,\n UpdateEventDto,\n GetEventsParams,\n} from './v1';\nexport type { BaseValueObject, Coordinates, CountryVo, FileVo } from '@/api/common/types';\n\nexport const Events = { v1 };\nexport default Events;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface AuthTokenResponse {\n authenticationToken: string;\n refreshToken: string;\n}\n\nexport interface LoginDto {\n username: string;\n password: string;\n notificationToken?: string;\n}\n\nexport interface RefreshTokenDto {\n refreshToken: string;\n}\n\nexport type SocialProvider = 'GOOGLE' | 'FACEBOOK';\n\nexport interface SocialAuthDto {\n provider: SocialProvider;\n token: string;\n}\n\nexport interface SocialAuthResponse {\n email: string;\n name: string;\n provider: string;\n}\n\n\n\nclass AuthClient extends HttpClient {\n endpoint = 'api/v1/authentication/user';\n\n login(data: LoginDto) {\n return this.client.post<AuthTokenResponse>(this.endpoint, data);\n }\n\n social(data: SocialAuthDto) {\n return this.client.post<SocialAuthResponse>(`${this.endpoint}/social`, data);\n }\n\n refresh(data: RefreshTokenDto) {\n return this.client.post<AuthTokenResponse>(`${this.endpoint}/refresh`, data);\n }\n}\n\nconst v1 = new AuthClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialProvider, SocialAuthDto, SocialAuthResponse } from './v1';\n\nexport const Auth = { v1 };\nexport default Auth;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Category {\n id: string;\n name: string;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCategoryDto {\n name: string;\n}\n\nexport interface UpdateCategoryDto {\n name: string;\n}\n\nexport interface GetCategoriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CategoriesClient extends HttpClient {\n endpoint = 'api/v1/categories';\n\n getAll(params?: GetCategoriesParams) {\n return this.client.get<Page<Category>>(this.endpoint, { params });\n }\n\n create(data: CreateCategoryDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCategoryDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CategoriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Category,\n CreateCategoryDto,\n UpdateCategoryDto,\n GetCategoriesParams,\n} from './v1';\n\nexport const Categories = { v1 };\nexport default Categories;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, PageRequest, Page } from '@/api/common/types';\n\nexport interface Collection {\n id: string;\n name: string;\n customer: BaseValueObject;\n events: BaseValueObject[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCollectionDto {\n name: string;\n eventIds?: string[];\n}\n\nexport interface UpdateCollectionDto {\n name: string;\n eventIds: string[];\n}\n\nexport interface GetCollectionsParams extends PageRequest {\n name?: string;\n}\n\nclass CollectionsClient extends HttpClient {\n endpoint = 'api/v1/collections';\n\n getAll(params?: GetCollectionsParams) {\n return this.client.get<Page<Collection>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Collection>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateCollectionDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCollectionDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n\n removeEvent(eventId: string) {\n return this.client.delete<void>(`${this.endpoint}/events/${eventId}`);\n }\n}\n\nconst v1 = new CollectionsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Collection,\n CreateCollectionDto,\n UpdateCollectionDto,\n GetCollectionsParams,\n} from './v1';\n\nexport const Collections = { v1 };\nexport default Collections;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport type UserRole = 'ADMIN' | 'CUSTOMER' | 'PRIVATE_ORGANIZER' | 'PUBLIC_ORGANIZER' | 'SUB_ORGANIZER';\n\nexport interface User {\n id: string;\n name: string;\n username: string;\n imageId?: string;\n createdAt: string;\n updatedAt: string;\n emailVerified: boolean;\n onboarded: boolean;\n}\n\nexport interface CreateUserDto {\n name: string;\n username: string;\n password: string;\n}\n\nexport interface CreateOrganizerUserDto {\n name: string;\n username: string;\n password: string;\n userRole: UserRole;\n}\n\nexport interface EditUserDto {\n name: string;\n username: string;\n password?: string;\n imageId?: string;\n}\n\n\n\nclass UsersClient extends HttpClient {\n endpoint = 'api/v1/users';\n\n getAll(params?: PageRequest) {\n return this.client.get<Page<User>>(this.endpoint, { params });\n }\n\n getProfile() {\n return this.client.get<User>(`${this.endpoint}/profile`);\n }\n\n create(data: CreateUserDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n createOrganizer(data: CreateOrganizerUserDto) {\n return this.client.post<void>(`${this.endpoint}/organizer`, data);\n }\n\n createSubOrganizer(data: CreateUserDto) {\n return this.client.post<void>(`${this.endpoint}/sub-organizer`, data);\n }\n\n verify(userId: string) {\n return this.client.patch<void>(`${this.endpoint}/${userId}/verify`);\n }\n\n edit(id: string, data: EditUserDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n}\n\nconst v1 = new UsersClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { User, UserRole, CreateUserDto, CreateOrganizerUserDto, EditUserDto } from './v1';\n\nexport const Users = { v1 };\nexport default Users;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport type FileType = 'IMAGE' | 'VIDEO' | 'DOCUMENT';\n\nexport interface UploadedFile {\n id: string;\n fileName: string;\n url: string;\n fileSize: number;\n fileType: FileType;\n createdAt: string;\n updatedAt: string;\n}\n\n\n\nclass FilesClient extends HttpClient {\n endpoint = 'api/v1/files';\n\n upload(file: File) {\n const formData = new FormData();\n formData.append('file', file);\n return this.client.post<UploadedFile>(this.endpoint, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new FilesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { UploadedFile, FileType } from './v1';\n\nexport const Files = { v1 };\nexport default Files;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, CountryVo } from '@/api/common/types';\n\n\nexport interface Onboarding {\n id: string;\n user: BaseValueObject;\n categories: BaseValueObject[];\n countries: CountryVo[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateOnboardingDto {\n categoryIds: string[];\n cityIds: string[];\n}\n\nexport type UpdateOnboardingDto = CreateOnboardingDto;\n\n\n\nclass OnboardingsClient extends HttpClient {\n endpoint = 'api/v1/onboardings';\n\n getByUser() {\n return this.client.get<Onboarding>(this.endpoint);\n }\n\n create(data: CreateOnboardingDto) {\n return this.client.post<Onboarding>(this.endpoint, data);\n }\n\n update(data: UpdateOnboardingDto) {\n return this.client.put<Onboarding>(this.endpoint, data);\n }\n}\n\nconst v1 = new OnboardingsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Onboarding, CreateOnboardingDto, UpdateOnboardingDto } from './v1';\n\nexport const Onboardings = { v1 };\nexport default Onboardings;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface EventAttendance {\n id: string;\n user: BaseValueObject;\n event: BaseValueObject;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateEventAttendanceDto {\n eventId: string;\n}\n\nexport interface GetEventAttendancesParams extends PageRequest {\n 'event-id'?: string;\n}\n\n\n\nclass EventAttendancesClient extends HttpClient {\n endpoint = 'api/v1/event-attendances';\n\n getAll(params?: GetEventAttendancesParams) {\n return this.client.get<Page<EventAttendance>>(this.endpoint, { params });\n }\n\n create(data: CreateEventAttendanceDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventAttendancesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { EventAttendance, CreateEventAttendanceDto, GetEventAttendancesParams } from './v1';\n\nexport const EventAttendances = { v1 };\nexport default EventAttendances;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface ForgotPasswordCreateDto {\n email: string;\n}\n\nexport interface ChangeForgotPasswordDto {\n password: string;\n}\n\n\n\nclass ForgotPasswordClient extends HttpClient {\n endpoint = 'api/v1/forgot-password';\n\n create(data: ForgotPasswordCreateDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n changePassword(id: string, data: ChangeForgotPasswordDto) {\n return this.client.patch<void>(`${this.endpoint}/${id}/change`, data);\n }\n}\n\nconst v1 = new ForgotPasswordClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { ForgotPasswordCreateDto, ChangeForgotPasswordDto } from './v1';\n\nexport const ForgotPassword = { v1 };\nexport default ForgotPassword;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Country {\n id: string;\n name: string;\n}\n\nexport interface GetCountriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CountriesClient extends HttpClient {\n endpoint = 'api/v1/countries';\n\n getAll(params?: GetCountriesParams) {\n return this.client.get<Page<Country>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Country>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Country, GetCountriesParams } from './v1';\n\nexport const Countries = { v1 };\nexport default Countries;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface County {\n id: string;\n name: string;\n country: BaseValueObject;\n}\n\nexport interface GetCountiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n}\n\n\n\nclass CountiesClient extends HttpClient {\n endpoint = 'api/v1/counties';\n\n getAll(params?: GetCountiesParams) {\n return this.client.get<Page<County>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<County>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { County, GetCountiesParams } from './v1';\n\nexport const Counties = { v1 };\nexport default Counties;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface City {\n id: string;\n name: string;\n country: BaseValueObject;\n county: BaseValueObject;\n}\n\nexport interface GetCitiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n 'county-id'?: string;\n}\n\n\n\nclass CitiesClient extends HttpClient {\n endpoint = 'api/v1/cities';\n\n getAll(params?: GetCitiesParams) {\n return this.client.get<Page<City>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<City>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CitiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { City, GetCitiesParams } from './v1';\n\nexport const Cities = { v1 };\nexport default Cities;\n","import { setBaseUrl, setHeaders, removeHeader, addRequestInterceptor, removeRequestInterceptor } from '../instance';\nimport type { InternalAxiosRequestConfig } from 'axios';\nimport Events from './events';\nimport Auth from './auth';\nimport Categories from './categories';\nimport Collections from './collections';\nimport Users from './users';\nimport Files from './files';\nimport Onboardings from './onboardings';\nimport EventAttendances from './event-attendances';\nimport ForgotPassword from './forgot-password';\nimport Countries from './countries';\nimport Counties from './counties';\nimport Cities from './cities';\n\nexport interface EventhrHttpConfig {\n baseUrl?: string;\n headers?: Record<string, string>;\n}\n\nexport class EventhrHttpClient {\n readonly Auth = Auth;\n readonly Events = Events;\n readonly Categories = Categories;\n readonly Collections = Collections;\n readonly Users = Users;\n readonly Files = Files;\n readonly Onboardings = Onboardings;\n readonly EventAttendances = EventAttendances;\n readonly ForgotPassword = ForgotPassword;\n readonly Countries = Countries;\n readonly Counties = Counties;\n readonly Cities = Cities;\n\n configure({ baseUrl, headers }: EventhrHttpConfig): void {\n if (baseUrl !== undefined) {\n setBaseUrl(baseUrl);\n }\n if (headers !== undefined) {\n setHeaders(headers);\n }\n }\n\n removeHeader(key: string): void {\n removeHeader(key);\n }\n\n addInterceptor(\n onFulfilled: (\n config: InternalAxiosRequestConfig,\n ) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n ): number {\n return addRequestInterceptor(onFulfilled, onRejected);\n }\n\n removeInterceptor(id: number): void {\n removeRequestInterceptor(id);\n }\n}\n\nconst EventhrHttp = new EventhrHttpClient();\nexport default EventhrHttp;\n","import type { GetEventsParams } from './events';\nimport type { GetCategoriesParams } from './categories';\nimport type { GetCollectionsParams } from './collections';\nimport type { GetCountriesParams } from './countries';\nimport type { GetCountiesParams } from './counties';\nimport type { GetCitiesParams } from './cities';\nimport type { GetEventAttendancesParams } from './event-attendances';\nimport type { PageRequest } from './common/types';\n\nexport const EVENTHR_QUERY_KEYS = {\n events: {\n all: ['events'] as const,\n list: (params?: GetEventsParams) => [...EVENTHR_QUERY_KEYS.events.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.events.all, 'detail', id] as const,\n },\n categories: {\n all: ['categories'] as const,\n list: (params?: GetCategoriesParams) =>\n [...EVENTHR_QUERY_KEYS.categories.all, 'list', params] as const,\n },\n collections: {\n all: ['collections'] as const,\n list: (params?: GetCollectionsParams) =>\n [...EVENTHR_QUERY_KEYS.collections.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.collections.all, 'detail', id] as const,\n },\n users: {\n all: ['users'] as const,\n list: (params?: PageRequest) => [...EVENTHR_QUERY_KEYS.users.all, 'list', params] as const,\n profile: () => [...EVENTHR_QUERY_KEYS.users.all, 'profile'] as const,\n },\n files: {\n all: ['files'] as const,\n },\n onboardings: {\n all: ['onboardings'] as const,\n detail: () => [...EVENTHR_QUERY_KEYS.onboardings.all, 'detail'] as const,\n },\n eventAttendances: {\n all: ['event-attendances'] as const,\n list: (params?: GetEventAttendancesParams) =>\n [...EVENTHR_QUERY_KEYS.eventAttendances.all, 'list', params] as const,\n },\n countries: {\n all: ['countries'] as const,\n list: (params?: GetCountriesParams) =>\n [...EVENTHR_QUERY_KEYS.countries.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.countries.all, 'detail', id] as const,\n },\n counties: {\n all: ['counties'] as const,\n list: (params?: GetCountiesParams) =>\n [...EVENTHR_QUERY_KEYS.counties.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.counties.all, 'detail', id] as const,\n },\n cities: {\n all: ['cities'] as const,\n list: (params?: GetCitiesParams) =>\n [...EVENTHR_QUERY_KEYS.cities.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.cities.all, 'detail', id] as const,\n },\n} as const;\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventDto, Event, GetEventsParams, UpdateEventDto } from './v1';\nimport Events from './index';\n\n\n\nexport const useGetEventsQuery = (\n params?: GetEventsParams,\n options?: QueryOptions<Page<Event>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.list(params),\n queryFn: async () => {\n const response = await Events.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetEventByIdQuery = (\n id: string,\n options?: QueryOptions<Event>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.detail(id),\n queryFn: async () => {\n const response = await Events.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateEventMutation = (\n options?: MutationOptions<void, CreateEventDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventDto) => {\n await Events.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateEventMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateEventDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateEventDto }) => {\n await Events.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteEventMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Events.v1.remove(id);\n },\n ...options,\n });\n","import { QueryClient } from '@tanstack/react-query';\n\nexport const queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 0,\n },\n mutations: {\n retry: 0,\n },\n },\n});\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialAuthDto, SocialAuthResponse } from './v1';\nimport Auth from './index';\n\nexport const useLoginMutation = (\n options?: MutationOptions<AuthTokenResponse, LoginDto>,\n) =>\n useMutation({\n mutationFn: async (data: LoginDto) => {\n const response = await Auth.v1.login(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useSocialAuthMutation = (\n options?: MutationOptions<SocialAuthResponse, SocialAuthDto>,\n) =>\n useMutation({\n mutationFn: async (data: SocialAuthDto) => {\n const response = await Auth.v1.social(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useRefreshTokenMutation = (\n options?: MutationOptions<AuthTokenResponse, RefreshTokenDto>,\n) =>\n useMutation({\n mutationFn: async (data: RefreshTokenDto) => {\n const response = await Auth.v1.refresh(data);\n return response.data;\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Category, CreateCategoryDto, GetCategoriesParams, UpdateCategoryDto } from './v1';\nimport Categories from './index';\n\n\n\nexport const useGetCategoriesQuery = (\n params?: GetCategoriesParams,\n options?: QueryOptions<Page<Category>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.categories.list(params),\n queryFn: async () => {\n const response = await Categories.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateCategoryMutation = (\n options?: MutationOptions<void, CreateCategoryDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCategoryDto) => {\n await Categories.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCategoryMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCategoryDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCategoryDto }) => {\n await Categories.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCategoryMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Categories.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCategoriesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.categories.all });\n","import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Event } from '@/api/events';\nimport type { Collection, CreateCollectionDto, GetCollectionsParams, UpdateCollectionDto } from './v1';\nimport Collections from './index';\n\n\n\nexport const useGetCollectionsQuery = (\n params?: GetCollectionsParams,\n options?: QueryOptions<Page<Collection>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.list(params),\n queryFn: async () => {\n const response = await Collections.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCollectionByIdQuery = (\n id: string,\n options?: QueryOptions<Collection>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.detail(id),\n queryFn: async () => {\n const response = await Collections.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateCollectionMutation = (\n options?: MutationOptions<void, CreateCollectionDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCollectionDto) => {\n await Collections.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCollectionMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCollectionDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCollectionDto }) => {\n await Collections.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCollectionMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Collections.v1.remove(id);\n },\n ...options,\n });\n\nexport const useRemoveEventFromCollectionsMutation = (\n options?: MutationOptions<void, { eventId: string }>,\n) =>\n useMutation({\n mutationFn: async ({ eventId }: { eventId: string }) => {\n await Collections.v1.removeEvent(eventId);\n },\n ...options,\n });\n\ntype SaveEventVariables = { id: string; eventId: string; data: UpdateCollectionDto };\ntype SaveEventContext = {\n previousLists: Array<[readonly unknown[], Page<Event> | undefined]>;\n previousDetail: Event | undefined;\n};\n\nexport const useSaveEventMutation = (\n options?: MutationOptions<void, SaveEventVariables>,\n) => {\n const queryClient = useQueryClient();\n const { onMutate, onError, onSettled, ...restOptions } = options ?? {};\n\n return useMutation<void, Error, SaveEventVariables, SaveEventContext>({\n mutationFn: async ({ id, data }) => {\n await Collections.v1.update(id, data);\n },\n onMutate: async (variables, mutationContext) => {\n const { eventId } = variables;\n const listKey = [...EVENTHR_QUERY_KEYS.events.all, 'list'];\n\n await queryClient.cancelQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n\n const previousLists = queryClient.getQueriesData<Page<Event>>({ queryKey: listKey });\n\n queryClient.setQueriesData<Page<Event>>({ queryKey: listKey }, (oldData) => {\n if (!oldData) return oldData;\n return {\n ...oldData,\n content: oldData.content.map((event) =>\n event.id === eventId ? { ...event, isSaved: !event.isSaved } : event,\n ),\n };\n });\n\n const detailKey = EVENTHR_QUERY_KEYS.events.detail(eventId);\n const previousDetail = queryClient.getQueryData<Event>(detailKey);\n if (previousDetail) {\n queryClient.setQueryData<Event>(detailKey, { ...previousDetail, isSaved: !previousDetail.isSaved });\n }\n\n await onMutate?.(variables, mutationContext);\n\n return { previousLists, previousDetail };\n },\n onError: (error, variables, onMutateResult, mutationContext) => {\n onMutateResult?.previousLists.forEach(([queryKey, data]) => {\n queryClient.setQueryData(queryKey, data);\n });\n if (onMutateResult?.previousDetail) {\n queryClient.setQueryData(\n EVENTHR_QUERY_KEYS.events.detail(variables.eventId),\n onMutateResult.previousDetail,\n );\n }\n onError?.(error, variables, onMutateResult, mutationContext);\n },\n onSettled: (data, error, variables, onMutateResult, mutationContext) => {\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n onSettled?.(data, error, variables, onMutateResult, mutationContext);\n },\n ...restOptions,\n });\n};\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCollectionsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, PageRequest, QueryOptions } from '@/api/common/types';\nimport type { CreateUserDto, CreateOrganizerUserDto, EditUserDto, User } from './v1';\nimport Users from './index';\n\n\n\nexport const useGetUsersQuery = (\n params?: PageRequest,\n options?: QueryOptions<Page<User>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.list(params),\n queryFn: async () => {\n const response = await Users.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetProfileQuery = (\n options?: QueryOptions<User>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.profile(),\n queryFn: async () => {\n const response = await Users.v1.getProfile();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateUserMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.create(data);\n },\n ...options,\n });\n\nexport const useEditUserMutation = (\n options?: MutationOptions<void, { id: string; data: EditUserDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: EditUserDto }) => {\n await Users.v1.edit(id, data);\n },\n ...options,\n });\n\nexport const useCreateOrganizerMutation = (\n options?: MutationOptions<void, CreateOrganizerUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOrganizerUserDto) => {\n await Users.v1.createOrganizer(data);\n },\n ...options,\n });\n\nexport const useCreateSubOrganizerMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.createSubOrganizer(data);\n },\n ...options,\n });\n\nexport const useVerifyUserMutation = (\n options?: MutationOptions<void, { userId: string }>,\n) =>\n useMutation({\n mutationFn: async ({ userId }: { userId: string }) => {\n await Users.v1.verify(userId);\n },\n ...options,\n });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { UploadedFile } from './v1';\nimport Files from './index';\n\nexport const useUploadFileMutation = (\n options?: MutationOptions<UploadedFile, File>,\n) =>\n useMutation({\n mutationFn: async (file: File) => {\n const response = await Files.v1.upload(file);\n return response.data;\n },\n ...options,\n });\n\nexport const useDeleteFileMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Files.v1.remove(id);\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, QueryOptions } from '@/api/common/types';\nimport type { CreateOnboardingDto, Onboarding, UpdateOnboardingDto } from './v1';\nimport Onboardings from './index';\n\n\n\nexport const useGetOnboardingQuery = (\n options?: QueryOptions<Onboarding>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.onboardings.detail(),\n queryFn: async () => {\n const response = await Onboardings.v1.getByUser();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateOnboardingMutation = (\n options?: MutationOptions<Onboarding, CreateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOnboardingDto) => {\n const response = await Onboardings.v1.create(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useUpdateOnboardingMutation = (\n options?: MutationOptions<Onboarding, UpdateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: UpdateOnboardingDto) => {\n const response = await Onboardings.v1.update(data);\n return response.data;\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateOnboardingsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.onboardings.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventAttendanceDto, EventAttendance, GetEventAttendancesParams } from './v1';\nimport EventAttendances from './index';\n\n\n\nexport const useGetEventAttendancesQuery = (\n params?: GetEventAttendancesParams,\n options?: QueryOptions<Page<EventAttendance>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.eventAttendances.list(params),\n queryFn: async () => {\n const response = await EventAttendances.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateEventAttendanceMutation = (\n options?: MutationOptions<void, CreateEventAttendanceDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventAttendanceDto) => {\n await EventAttendances.v1.create(data);\n },\n ...options,\n });\n\nexport const useDeleteEventAttendanceMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await EventAttendances.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventAttendancesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.eventAttendances.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { ChangeForgotPasswordDto, ForgotPasswordCreateDto } from './v1';\nimport ForgotPassword from './index';\n\n\n\nexport const useCreateForgotPasswordMutation = (\n options?: MutationOptions<void, ForgotPasswordCreateDto>,\n) =>\n useMutation({\n mutationFn: async (data: ForgotPasswordCreateDto) => {\n await ForgotPassword.v1.create(data);\n },\n ...options,\n });\n\nexport const useChangePasswordMutation = (\n options?: MutationOptions<void, { id: string; data: ChangeForgotPasswordDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: ChangeForgotPasswordDto }) => {\n await ForgotPassword.v1.changePassword(id, data);\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { Country, GetCountriesParams } from './v1';\nimport Countries from './index';\n\n\n\nexport const useGetCountriesQuery = (\n params?: GetCountriesParams,\n options?: QueryOptions<Page<Country>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.list(params),\n queryFn: async () => {\n const response = await Countries.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountryByIdQuery = (\n id: string,\n options?: QueryOptions<Country>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.detail(id),\n queryFn: async () => {\n const response = await Countries.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { County, GetCountiesParams } from './v1';\nimport Counties from './index';\n\n\n\nexport const useGetCountiesQuery = (\n params?: GetCountiesParams,\n options?: QueryOptions<Page<County>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.list(params),\n queryFn: async () => {\n const response = await Counties.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountyByIdQuery = (\n id: string,\n options?: QueryOptions<County>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.detail(id),\n queryFn: async () => {\n const response = await Counties.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { City, GetCitiesParams } from './v1';\nimport Cities from './index';\n\n\n\nexport const useGetCitiesQuery = (\n params?: GetCitiesParams,\n options?: QueryOptions<Page<City>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.list(params),\n queryFn: async () => {\n const response = await Cities.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCityByIdQuery = (\n id: string,\n options?: QueryOptions<City>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.detail(id),\n queryFn: async () => {\n const response = await Cities.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n"],"names":["instance","axios","setBaseUrl","url","setHeaders","headers","removeHeader","key","addRequestInterceptor","onFulfilled","onRejected","removeRequestInterceptor","id","HttpClient","_args","EventsClient","params","data","v1","Events","AuthClient","Auth","CategoriesClient","Categories","CollectionsClient","eventId","Collections","UsersClient","userId","Users","FilesClient","file","formData","Files","OnboardingsClient","Onboardings","EventAttendancesClient","EventAttendances","ForgotPasswordClient","ForgotPassword","CountriesClient","Countries","CountiesClient","Counties","CitiesClient","Cities","EventhrHttpClient","baseUrl","EventhrHttp","EVENTHR_QUERY_KEYS","useGetEventsQuery","options","useQuery","useGetEventByIdQuery","useCreateEventMutation","useMutation","useUpdateEventMutation","useDeleteEventMutation","queryClient","QueryClient","invalidateEventsCache","useLoginMutation","useSocialAuthMutation","useRefreshTokenMutation","useGetCategoriesQuery","useCreateCategoryMutation","useUpdateCategoryMutation","useDeleteCategoryMutation","invalidateCategoriesCache","useGetCollectionsQuery","useGetCollectionByIdQuery","useCreateCollectionMutation","useUpdateCollectionMutation","useDeleteCollectionMutation","useRemoveEventFromCollectionsMutation","useSaveEventMutation","useQueryClient","onMutate","onError","onSettled","restOptions","variables","mutationContext","listKey","previousLists","oldData","event","detailKey","previousDetail","error","onMutateResult","queryKey","invalidateCollectionsCache","useGetUsersQuery","useGetProfileQuery","useCreateUserMutation","useEditUserMutation","useCreateOrganizerMutation","useCreateSubOrganizerMutation","useVerifyUserMutation","useUploadFileMutation","useDeleteFileMutation","useGetOnboardingQuery","useCreateOnboardingMutation","useUpdateOnboardingMutation","invalidateOnboardingsCache","useGetEventAttendancesQuery","useCreateEventAttendanceMutation","useDeleteEventAttendanceMutation","invalidateEventAttendancesCache","useCreateForgotPasswordMutation","useChangePasswordMutation","useGetCountriesQuery","useGetCountryByIdQuery","useGetCountiesQuery","useGetCountyByIdQuery","useGetCitiesQuery","useGetCityByIdQuery"],"mappings":"wKAEMA,EAA0BC,EAAM,OAAO,CAC3C,QAAS,GACT,QAAS,CACP,eAAgB,kBAAA,CAEpB,CAAC,EAEYC,EAAcC,GAAsB,CAC/CH,EAAS,SAAS,QAAUG,CAC9B,EAEaC,EAAcC,GAA0C,CACnE,OAAO,OAAOL,EAAS,SAAS,QAAQ,OAAQK,CAAO,CACzD,EAEaC,EAAgBC,GAAsB,CACjD,OAAQP,EAAS,SAAS,QAAQ,OAAkCO,CAAG,CACzE,EAEaC,EAAwB,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SAAUH,EAAmB,OAAO,KAAKjC,CAAM,EAC/C,QAAS,UACU,MAAM6B,EAAO,GAAG,OAAO7B,CAAM,GAC9B,KAElB,GAAGmC,CACL,CAAC,EAEUkE,GAAsB,CACjCzG,EACAuC,IAEAC,WAAS,CACP,SAAUH,EAAmB,OAAO,OAAOrC,CAAE,EAC7C,QAAS,UACU,MAAMiC,EAAO,GAAG,QAAQjC,CAAE,GAC3B,KAElB,GAAGuC,CACL,CAAC"}
package/lib/index.d.ts CHANGED
@@ -97,6 +97,7 @@ export declare const Collections: {
97
97
  create(data: CreateCollectionDto): Promise<AxiosResponse<void, any, {}>>;
98
98
  update(id: string, data: UpdateCollectionDto): Promise<AxiosResponse<void, any, {}>>;
99
99
  remove(id: string): Promise<AxiosResponse<void, any, {}>>;
100
+ removeEvent(eventId: string): Promise<AxiosResponse<void, any, {}>>;
100
101
  readonly client: AxiosInstance;
101
102
  list(..._args: unknown[]): Promise<unknown>;
102
103
  get(..._args: unknown[]): Promise<unknown>;
@@ -367,6 +368,7 @@ export declare class EventhrHttpClient {
367
368
  create(data: CreateCollectionDto): Promise<AxiosResponse<void, any, {}>>;
368
369
  update(id: string, data: UpdateCollectionDto): Promise<AxiosResponse<void, any, {}>>;
369
370
  remove(id: string): Promise<AxiosResponse<void, any, {}>>;
371
+ removeEvent(eventId: string): Promise<AxiosResponse<void, any, {}>>;
370
372
  readonly client: AxiosInstance;
371
373
  list(..._args: unknown[]): Promise<unknown>;
372
374
  get(..._args: unknown[]): Promise<unknown>;
@@ -833,6 +835,12 @@ export declare interface User {
833
835
 
834
836
  export declare const useRefreshTokenMutation: (options?: MutationOptions<AuthTokenResponse, RefreshTokenDto>) => UseMutationResult<AuthTokenResponse, Error, RefreshTokenDto, unknown>;
835
837
 
838
+ export declare const useRemoveEventFromCollectionsMutation: (options?: MutationOptions<void, {
839
+ eventId: string;
840
+ }>) => UseMutationResult<void, Error, {
841
+ eventId: string;
842
+ }, unknown>;
843
+
836
844
  export declare type UserRole = 'ADMIN' | 'CUSTOMER' | 'PRIVATE_ORGANIZER' | 'PUBLIC_ORGANIZER' | 'SUB_ORGANIZER';
837
845
 
838
846
  export declare const Users: {
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import M from "axios";
1
+ import U from "axios";
2
2
  import { useMutation as i, useQuery as r, QueryClient as G, useQueryClient as x } from "@tanstack/react-query";
3
- const y = M.create({
3
+ const y = U.create({
4
4
  baseURL: "",
5
5
  headers: {
6
6
  "Content-Type": "application/json"
@@ -107,8 +107,11 @@ class k extends a {
107
107
  remove(t) {
108
108
  return this.client.delete(`${this.endpoint}/${t}`);
109
109
  }
110
+ removeEvent(t) {
111
+ return this.client.delete(`${this.endpoint}/events/${t}`);
112
+ }
110
113
  }
111
- const N = new k(), d = { v1: N };
114
+ const N = new k(), l = { v1: N };
112
115
  class W extends a {
113
116
  constructor() {
114
117
  super(...arguments), this.endpoint = "api/v1/users";
@@ -135,7 +138,7 @@ class W extends a {
135
138
  return this.client.put(`${this.endpoint}/${t}`, n);
136
139
  }
137
140
  }
138
- const J = new W(), l = { v1: J };
141
+ const J = new W(), d = { v1: J };
139
142
  class X extends a {
140
143
  constructor() {
141
144
  super(...arguments), this.endpoint = "api/v1/files";
@@ -180,7 +183,7 @@ class et extends a {
180
183
  return this.client.delete(`${this.endpoint}/${t}`);
181
184
  }
182
185
  }
183
- const nt = new et(), Q = { v1: nt };
186
+ const nt = new et(), E = { v1: nt };
184
187
  class st extends a {
185
188
  constructor() {
186
189
  super(...arguments), this.endpoint = "api/v1/forgot-password";
@@ -228,10 +231,10 @@ class ut extends a {
228
231
  return this.client.get(`${this.endpoint}/${t}`);
229
232
  }
230
233
  }
231
- const lt = new ut(), O = { v1: lt };
234
+ const lt = new ut(), M = { v1: lt };
232
235
  class dt {
233
236
  constructor() {
234
- this.Auth = q, this.Events = v, this.Categories = g, this.Collections = d, this.Users = l, this.Files = K, this.Onboardings = f, this.EventAttendances = Q, this.ForgotPassword = I, this.Countries = b, this.Counties = B, this.Cities = O;
237
+ this.Auth = q, this.Events = v, this.Categories = g, this.Collections = l, this.Users = d, this.Files = K, this.Onboardings = f, this.EventAttendances = E, this.ForgotPassword = I, this.Countries = b, this.Counties = B, this.Cities = M;
235
238
  }
236
239
  configure({ baseUrl: t, headers: n }) {
237
240
  t !== void 0 && D(t), n !== void 0 && P(n);
@@ -300,12 +303,12 @@ const vt = new dt(), s = {
300
303
  queryKey: s.events.detail(e),
301
304
  queryFn: async () => (await v.v1.getById(e)).data,
302
305
  ...t
303
- }), wt = (e) => i({
306
+ }), mt = (e) => i({
304
307
  mutationFn: async (t) => {
305
308
  await v.v1.create(t);
306
309
  },
307
310
  ...e
308
- }), mt = (e) => i({
311
+ }), wt = (e) => i({
309
312
  mutationFn: async ({ id: t, data: n }) => {
310
313
  await v.v1.update(t, n);
311
314
  },
@@ -315,7 +318,7 @@ const vt = new dt(), s = {
315
318
  await v.v1.remove(t);
316
319
  },
317
320
  ...e
318
- }), w = new G({
321
+ }), m = new G({
319
322
  defaultOptions: {
320
323
  queries: {
321
324
  retry: 1,
@@ -326,7 +329,7 @@ const vt = new dt(), s = {
326
329
  retry: 0
327
330
  }
328
331
  }
329
- }), $t = () => w.invalidateQueries({ queryKey: s.events.all }), Ft = (e) => i({
332
+ }), $t = () => m.invalidateQueries({ queryKey: s.events.all }), Ft = (e) => i({
330
333
  mutationFn: async (t) => (await q.v1.login(t)).data,
331
334
  ...e
332
335
  }), qt = (e) => i({
@@ -335,16 +338,16 @@ const vt = new dt(), s = {
335
338
  }), ft = (e) => i({
336
339
  mutationFn: async (t) => (await q.v1.refresh(t)).data,
337
340
  ...e
338
- }), Qt = (e, t) => r({
341
+ }), Et = (e, t) => r({
339
342
  queryKey: s.categories.list(e),
340
343
  queryFn: async () => (await g.v1.getAll(e)).data,
341
344
  ...t
342
- }), At = (e) => i({
345
+ }), Qt = (e) => i({
343
346
  mutationFn: async (t) => {
344
347
  await g.v1.create(t);
345
348
  },
346
349
  ...e
347
- }), Et = (e) => i({
350
+ }), At = (e) => i({
348
351
  mutationFn: async ({ id: t, data: n }) => {
349
352
  await g.v1.update(t, n);
350
353
  },
@@ -354,34 +357,39 @@ const vt = new dt(), s = {
354
357
  await g.v1.remove(t);
355
358
  },
356
359
  ...e
357
- }), It = () => w.invalidateQueries({ queryKey: s.categories.all }), bt = (e, t) => r({
360
+ }), It = () => m.invalidateQueries({ queryKey: s.categories.all }), bt = (e, t) => r({
358
361
  queryKey: s.collections.list(e),
359
- queryFn: async () => (await d.v1.getAll(e)).data,
362
+ queryFn: async () => (await l.v1.getAll(e)).data,
360
363
  ...t
361
364
  }), Bt = (e, t) => r({
362
365
  queryKey: s.collections.detail(e),
363
- queryFn: async () => (await d.v1.getById(e)).data,
366
+ queryFn: async () => (await l.v1.getById(e)).data,
364
367
  ...t
365
- }), Ot = (e) => i({
368
+ }), Mt = (e) => i({
366
369
  mutationFn: async (t) => {
367
- await d.v1.create(t);
370
+ await l.v1.create(t);
368
371
  },
369
372
  ...e
370
- }), Ut = (e) => i({
373
+ }), Ot = (e) => i({
371
374
  mutationFn: async ({ id: t, data: n }) => {
372
- await d.v1.update(t, n);
375
+ await l.v1.update(t, n);
373
376
  },
374
377
  ...e
375
- }), Mt = (e) => i({
378
+ }), Ut = (e) => i({
376
379
  mutationFn: async ({ id: t }) => {
377
- await d.v1.remove(t);
380
+ await l.v1.remove(t);
381
+ },
382
+ ...e
383
+ }), Gt = (e) => i({
384
+ mutationFn: async ({ eventId: t }) => {
385
+ await l.v1.removeEvent(t);
378
386
  },
379
387
  ...e
380
- }), Gt = (e) => {
381
- const t = x(), { onMutate: n, onError: A, onSettled: E, ...U } = e ?? {};
388
+ }), xt = (e) => {
389
+ const t = x(), { onMutate: n, onError: Q, onSettled: A, ...O } = e ?? {};
382
390
  return i({
383
391
  mutationFn: async ({ id: c, data: u }) => {
384
- await d.v1.update(c, u);
392
+ await l.v1.update(c, u);
385
393
  },
386
394
  onMutate: async (c, u) => {
387
395
  const { eventId: o } = c, p = [...s.events.all, "list"];
@@ -393,191 +401,192 @@ const vt = new dt(), s = {
393
401
  (F) => F.id === o ? { ...F, isSaved: !F.isSaved } : F
394
402
  )
395
403
  });
396
- const m = s.events.detail(o), C = t.getQueryData(m);
397
- return C && t.setQueryData(m, { ...C, isSaved: !C.isSaved }), await (n == null ? void 0 : n(c, u)), { previousLists: h, previousDetail: C };
404
+ const w = s.events.detail(o), C = t.getQueryData(w);
405
+ return C && t.setQueryData(w, { ...C, isSaved: !C.isSaved }), await (n == null ? void 0 : n(c, u)), { previousLists: h, previousDetail: C };
398
406
  },
399
407
  onError: (c, u, o, p) => {
400
- o == null || o.previousLists.forEach(([h, m]) => {
401
- t.setQueryData(h, m);
408
+ o == null || o.previousLists.forEach(([h, w]) => {
409
+ t.setQueryData(h, w);
402
410
  }), o != null && o.previousDetail && t.setQueryData(
403
411
  s.events.detail(u.eventId),
404
412
  o.previousDetail
405
- ), A == null || A(c, u, o, p);
413
+ ), Q == null || Q(c, u, o, p);
406
414
  },
407
415
  onSettled: (c, u, o, p, h) => {
408
- t.invalidateQueries({ queryKey: s.collections.all }), E == null || E(c, u, o, p, h);
416
+ t.invalidateQueries({ queryKey: s.collections.all }), A == null || A(c, u, o, p, h);
409
417
  },
410
- ...U
418
+ ...O
411
419
  });
412
- }, xt = () => w.invalidateQueries({ queryKey: s.collections.all }), Dt = (e, t) => r({
420
+ }, Dt = () => m.invalidateQueries({ queryKey: s.collections.all }), Pt = (e, t) => r({
413
421
  queryKey: s.users.list(e),
414
- queryFn: async () => (await l.v1.getAll(e)).data,
422
+ queryFn: async () => (await d.v1.getAll(e)).data,
415
423
  ...t
416
- }), Pt = (e) => r({
424
+ }), St = (e) => r({
417
425
  queryKey: s.users.profile(),
418
- queryFn: async () => (await l.v1.getProfile()).data,
426
+ queryFn: async () => (await d.v1.getProfile()).data,
419
427
  ...e
420
- }), St = (e) => i({
428
+ }), zt = (e) => i({
421
429
  mutationFn: async (t) => {
422
- await l.v1.create(t);
430
+ await d.v1.create(t);
423
431
  },
424
432
  ...e
425
- }), zt = (e) => i({
433
+ }), Ht = (e) => i({
426
434
  mutationFn: async ({ id: t, data: n }) => {
427
- await l.v1.edit(t, n);
435
+ await d.v1.edit(t, n);
428
436
  },
429
437
  ...e
430
- }), Ht = (e) => i({
438
+ }), _t = (e) => i({
431
439
  mutationFn: async (t) => {
432
- await l.v1.createOrganizer(t);
440
+ await d.v1.createOrganizer(t);
433
441
  },
434
442
  ...e
435
- }), _t = (e) => i({
443
+ }), Lt = (e) => i({
436
444
  mutationFn: async (t) => {
437
- await l.v1.createSubOrganizer(t);
445
+ await d.v1.createSubOrganizer(t);
438
446
  },
439
447
  ...e
440
- }), Lt = (e) => i({
448
+ }), Tt = (e) => i({
441
449
  mutationFn: async ({ userId: t }) => {
442
- await l.v1.verify(t);
450
+ await d.v1.verify(t);
443
451
  },
444
452
  ...e
445
- }), Tt = (e) => i({
453
+ }), jt = (e) => i({
446
454
  mutationFn: async (t) => (await K.v1.upload(t)).data,
447
455
  ...e
448
- }), jt = (e) => i({
456
+ }), Vt = (e) => i({
449
457
  mutationFn: async ({ id: t }) => {
450
458
  await K.v1.remove(t);
451
459
  },
452
460
  ...e
453
- }), Vt = (e) => r({
461
+ }), Yt = (e) => r({
454
462
  queryKey: s.onboardings.detail(),
455
463
  queryFn: async () => (await f.v1.getByUser()).data,
456
464
  ...e
457
- }), Yt = (e) => i({
465
+ }), kt = (e) => i({
458
466
  mutationFn: async (t) => (await f.v1.create(t)).data,
459
467
  ...e
460
- }), kt = (e) => i({
468
+ }), Nt = (e) => i({
461
469
  mutationFn: async (t) => (await f.v1.update(t)).data,
462
470
  ...e
463
- }), Nt = () => w.invalidateQueries({ queryKey: s.onboardings.all }), Wt = (e, t) => r({
471
+ }), Wt = () => m.invalidateQueries({ queryKey: s.onboardings.all }), Jt = (e, t) => r({
464
472
  queryKey: s.eventAttendances.list(e),
465
- queryFn: async () => (await Q.v1.getAll(e)).data,
473
+ queryFn: async () => (await E.v1.getAll(e)).data,
466
474
  ...t
467
- }), Jt = (e) => i({
475
+ }), Xt = (e) => i({
468
476
  mutationFn: async (t) => {
469
- await Q.v1.create(t);
477
+ await E.v1.create(t);
470
478
  },
471
479
  ...e
472
- }), Xt = (e) => i({
480
+ }), Zt = (e) => i({
473
481
  mutationFn: async ({ id: t }) => {
474
- await Q.v1.remove(t);
482
+ await E.v1.remove(t);
475
483
  },
476
484
  ...e
477
- }), Zt = () => w.invalidateQueries({ queryKey: s.eventAttendances.all }), Rt = (e) => i({
485
+ }), Rt = () => m.invalidateQueries({ queryKey: s.eventAttendances.all }), te = (e) => i({
478
486
  mutationFn: async (t) => {
479
487
  await I.v1.create(t);
480
488
  },
481
489
  ...e
482
- }), te = (e) => i({
490
+ }), ee = (e) => i({
483
491
  mutationFn: async ({ id: t, data: n }) => {
484
492
  await I.v1.changePassword(t, n);
485
493
  },
486
494
  ...e
487
- }), ee = (e, t) => r({
495
+ }), ne = (e, t) => r({
488
496
  queryKey: s.countries.list(e),
489
497
  queryFn: async () => (await b.v1.getAll(e)).data,
490
498
  ...t
491
- }), ne = (e, t) => r({
499
+ }), se = (e, t) => r({
492
500
  queryKey: s.countries.detail(e),
493
501
  queryFn: async () => (await b.v1.getById(e)).data,
494
502
  ...t
495
- }), se = (e, t) => r({
503
+ }), ie = (e, t) => r({
496
504
  queryKey: s.counties.list(e),
497
505
  queryFn: async () => (await B.v1.getAll(e)).data,
498
506
  ...t
499
- }), ie = (e, t) => r({
507
+ }), re = (e, t) => r({
500
508
  queryKey: s.counties.detail(e),
501
509
  queryFn: async () => (await B.v1.getById(e)).data,
502
510
  ...t
503
- }), re = (e, t) => r({
511
+ }), oe = (e, t) => r({
504
512
  queryKey: s.cities.list(e),
505
- queryFn: async () => (await O.v1.getAll(e)).data,
513
+ queryFn: async () => (await M.v1.getAll(e)).data,
506
514
  ...t
507
- }), oe = (e, t) => r({
515
+ }), ae = (e, t) => r({
508
516
  queryKey: s.cities.detail(e),
509
- queryFn: async () => (await O.v1.getById(e)).data,
517
+ queryFn: async () => (await M.v1.getById(e)).data,
510
518
  ...t
511
519
  });
512
520
  export {
513
521
  q as Auth,
514
522
  g as Categories,
515
- O as Cities,
516
- d as Collections,
523
+ M as Cities,
524
+ l as Collections,
517
525
  B as Counties,
518
526
  b as Countries,
519
527
  s as EVENTHR_QUERY_KEYS,
520
- Q as EventAttendances,
528
+ E as EventAttendances,
521
529
  dt as EventhrHttpClient,
522
530
  v as Events,
523
531
  K as Files,
524
532
  I as ForgotPassword,
525
533
  a as HttpClient,
526
534
  f as Onboardings,
527
- l as Users,
535
+ d as Users,
528
536
  z as addRequestInterceptor,
529
537
  vt as default,
530
538
  y as instance,
531
539
  It as invalidateCategoriesCache,
532
- xt as invalidateCollectionsCache,
533
- Zt as invalidateEventAttendancesCache,
540
+ Dt as invalidateCollectionsCache,
541
+ Rt as invalidateEventAttendancesCache,
534
542
  $t as invalidateEventsCache,
535
- Nt as invalidateOnboardingsCache,
536
- w as queryClient,
543
+ Wt as invalidateOnboardingsCache,
544
+ m as queryClient,
537
545
  S as removeHeader,
538
546
  H as removeRequestInterceptor,
539
547
  D as setBaseUrl,
540
548
  P as setHeaders,
541
- te as useChangePasswordMutation,
542
- At as useCreateCategoryMutation,
543
- Ot as useCreateCollectionMutation,
544
- Jt as useCreateEventAttendanceMutation,
545
- wt as useCreateEventMutation,
546
- Rt as useCreateForgotPasswordMutation,
547
- Yt as useCreateOnboardingMutation,
548
- Ht as useCreateOrganizerMutation,
549
- _t as useCreateSubOrganizerMutation,
550
- St as useCreateUserMutation,
549
+ ee as useChangePasswordMutation,
550
+ Qt as useCreateCategoryMutation,
551
+ Mt as useCreateCollectionMutation,
552
+ Xt as useCreateEventAttendanceMutation,
553
+ mt as useCreateEventMutation,
554
+ te as useCreateForgotPasswordMutation,
555
+ kt as useCreateOnboardingMutation,
556
+ _t as useCreateOrganizerMutation,
557
+ Lt as useCreateSubOrganizerMutation,
558
+ zt as useCreateUserMutation,
551
559
  Kt as useDeleteCategoryMutation,
552
- Mt as useDeleteCollectionMutation,
553
- Xt as useDeleteEventAttendanceMutation,
560
+ Ut as useDeleteCollectionMutation,
561
+ Zt as useDeleteEventAttendanceMutation,
554
562
  Ct as useDeleteEventMutation,
555
- jt as useDeleteFileMutation,
556
- zt as useEditUserMutation,
557
- Qt as useGetCategoriesQuery,
558
- re as useGetCitiesQuery,
559
- oe as useGetCityByIdQuery,
563
+ Vt as useDeleteFileMutation,
564
+ Ht as useEditUserMutation,
565
+ Et as useGetCategoriesQuery,
566
+ oe as useGetCitiesQuery,
567
+ ae as useGetCityByIdQuery,
560
568
  Bt as useGetCollectionByIdQuery,
561
569
  bt as useGetCollectionsQuery,
562
- se as useGetCountiesQuery,
563
- ee as useGetCountriesQuery,
564
- ne as useGetCountryByIdQuery,
565
- ie as useGetCountyByIdQuery,
566
- Wt as useGetEventAttendancesQuery,
570
+ ie as useGetCountiesQuery,
571
+ ne as useGetCountriesQuery,
572
+ se as useGetCountryByIdQuery,
573
+ re as useGetCountyByIdQuery,
574
+ Jt as useGetEventAttendancesQuery,
567
575
  gt as useGetEventByIdQuery,
568
576
  ht as useGetEventsQuery,
569
- Vt as useGetOnboardingQuery,
570
- Pt as useGetProfileQuery,
571
- Dt as useGetUsersQuery,
577
+ Yt as useGetOnboardingQuery,
578
+ St as useGetProfileQuery,
579
+ Pt as useGetUsersQuery,
572
580
  Ft as useLoginMutation,
573
581
  ft as useRefreshTokenMutation,
574
- Gt as useSaveEventMutation,
582
+ Gt as useRemoveEventFromCollectionsMutation,
583
+ xt as useSaveEventMutation,
575
584
  qt as useSocialAuthMutation,
576
- Et as useUpdateCategoryMutation,
577
- Ut as useUpdateCollectionMutation,
578
- mt as useUpdateEventMutation,
579
- kt as useUpdateOnboardingMutation,
580
- Tt as useUploadFileMutation,
581
- Lt as useVerifyUserMutation
585
+ At as useUpdateCategoryMutation,
586
+ Ot as useUpdateCollectionMutation,
587
+ wt as useUpdateEventMutation,
588
+ Nt as useUpdateOnboardingMutation,
589
+ jt as useUploadFileMutation,
590
+ Tt as useVerifyUserMutation
582
591
  };
583
592
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/instance.ts","../src/api/common/HttpClient.ts","../src/api/events/v1/index.ts","../src/api/events/index.ts","../src/api/auth/v1/index.ts","../src/api/auth/index.ts","../src/api/categories/v1/index.ts","../src/api/categories/index.ts","../src/api/collections/v1/index.ts","../src/api/collections/index.ts","../src/api/users/v1/index.ts","../src/api/users/index.ts","../src/api/files/v1/index.ts","../src/api/files/index.ts","../src/api/onboardings/v1/index.ts","../src/api/onboardings/index.ts","../src/api/event-attendances/v1/index.ts","../src/api/event-attendances/index.ts","../src/api/forgot-password/v1/index.ts","../src/api/forgot-password/index.ts","../src/api/countries/v1/index.ts","../src/api/countries/index.ts","../src/api/counties/v1/index.ts","../src/api/counties/index.ts","../src/api/cities/v1/index.ts","../src/api/cities/index.ts","../src/api/EventhrHttp.ts","../src/api/eventhrKeys.ts","../src/api/events/events.hooks.ts","../src/query-client.ts","../src/api/events/events.cache.ts","../src/api/auth/auth.hooks.ts","../src/api/categories/categories.hooks.ts","../src/api/categories/categories.cache.ts","../src/api/collections/collections.hooks.ts","../src/api/collections/collections.cache.ts","../src/api/users/users.hooks.ts","../src/api/files/files.hooks.ts","../src/api/onboardings/onboardings.hooks.ts","../src/api/onboardings/onboardings.cache.ts","../src/api/event-attendances/event-attendances.hooks.ts","../src/api/event-attendances/event-attendances.cache.ts","../src/api/forgot-password/forgot-password.hooks.ts","../src/api/countries/countries.hooks.ts","../src/api/counties/counties.hooks.ts","../src/api/cities/cities.hooks.ts"],"sourcesContent":["import axios, { type AxiosInstance, type InternalAxiosRequestConfig } from 'axios';\n\nconst instance: AxiosInstance = axios.create({\n baseURL: '',\n headers: {\n 'Content-Type': 'application/json',\n },\n});\n\nexport const setBaseUrl = (url: string): void => {\n instance.defaults.baseURL = url;\n};\n\nexport const setHeaders = (headers: Record<string, string>): void => {\n Object.assign(instance.defaults.headers.common, headers);\n};\n\nexport const removeHeader = (key: string): void => {\n delete (instance.defaults.headers.common as Record<string, string>)[key];\n};\n\nexport const addRequestInterceptor = (\n onFulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n): number => instance.interceptors.request.use(onFulfilled, onRejected);\n\nexport const removeRequestInterceptor = (id: number): void => {\n instance.interceptors.request.eject(id);\n};\n\nexport { instance };\nexport default instance;\n","import instance from '../../instance';\n\nexport abstract class HttpClient {\n abstract endpoint: string;\n\n readonly client = instance;\n\n list(..._args: unknown[]): Promise<unknown> {\n throw new Error(`list() not implemented on ${this.constructor.name}`);\n }\n\n get(..._args: unknown[]): Promise<unknown> {\n throw new Error(`get() not implemented on ${this.constructor.name}`);\n }\n\n create(..._args: unknown[]): Promise<unknown> {\n throw new Error(`create() not implemented on ${this.constructor.name}`);\n }\n\n update(..._args: unknown[]): Promise<unknown> {\n throw new Error(`update() not implemented on ${this.constructor.name}`);\n }\n\n remove(..._args: unknown[]): Promise<unknown> {\n throw new Error(`remove() not implemented on ${this.constructor.name}`);\n }\n}\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, Coordinates, CountryVo, FileVo, PageRequest, Page } from '@/api/common/types';\n\n\nexport interface EventAddress {\n countryVo?: CountryVo;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport interface EventAddressDto {\n cityId: string;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport type EventFeature =\n | 'FREE_ENTRY'\n | 'PAID_ENTRY'\n | 'RESERVATION_REQUIRED'\n | 'INDOOR'\n | 'OUTDOOR'\n | 'FREE_PARKING_NEARBY'\n | 'PAID_PARKING_NEARBY'\n | 'NO_PARKING_AVAILABLE'\n | 'PUBLIC_TRANSPORT_NEARBY'\n | 'WHEELCHAIR_ACCESSIBLE'\n | 'ACCESSIBLE_RESTROOM'\n | 'FAMILY_FRIENDLY'\n | 'PET_FRIENDLY'\n | 'FOOD_AVAILABLE'\n | 'DRINKS_AVAILABLE'\n | 'VEGAN_VEGETARIAN_OPTIONS'\n | 'CARD_PAYMENT_AVAILABLE'\n | 'CASH_ONLY'\n | 'NON_SMOKING'\n | 'SMOKING_ALLOWED'\n | 'ADULTS_ONLY_18_PLUS'\n | 'CLOAKROOM_AVAILABLE'\n | 'BABY_CHANGING_FACILITY';\n\nexport interface SubEvent {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n images: FileVo[];\n features?: EventFeature[];\n attendeeCount?: number;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface Event {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n organizer: BaseValueObject;\n category: BaseValueObject;\n features?: EventFeature[];\n attendeeCount?: number;\n images?: FileVo[];\n parentEvent?: BaseValueObject;\n subEvents?: SubEvent[];\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface CreateEventDto {\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddressDto;\n coordinates: Coordinates;\n price: number;\n capacity?: number;\n imageIds?: string[];\n features?: EventFeature[];\n categoryId: string;\n subOrganizerId?: string;\n parentEventId?: string;\n}\n\nexport type UpdateEventDto = CreateEventDto;\n\nexport interface GetEventsParams extends PageRequest {\n name?: string;\n latitude?: number;\n longitude?: number;\n radiusKm?: number;\n}\n\n\n\nclass EventsClient extends HttpClient {\n endpoint = 'api/v1/events';\n\n getAll(params?: GetEventsParams) {\n return this.client.get<Page<Event>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Event>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateEventDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateEventDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Event,\n EventAddress,\n EventAddressDto,\n EventFeature,\n SubEvent,\n CreateEventDto,\n UpdateEventDto,\n GetEventsParams,\n} from './v1';\nexport type { BaseValueObject, Coordinates, CountryVo, FileVo } from '@/api/common/types';\n\nexport const Events = { v1 };\nexport default Events;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface AuthTokenResponse {\n authenticationToken: string;\n refreshToken: string;\n}\n\nexport interface LoginDto {\n username: string;\n password: string;\n notificationToken?: string;\n}\n\nexport interface RefreshTokenDto {\n refreshToken: string;\n}\n\nexport type SocialProvider = 'GOOGLE' | 'FACEBOOK';\n\nexport interface SocialAuthDto {\n provider: SocialProvider;\n token: string;\n}\n\nexport interface SocialAuthResponse {\n email: string;\n name: string;\n provider: string;\n}\n\n\n\nclass AuthClient extends HttpClient {\n endpoint = 'api/v1/authentication/user';\n\n login(data: LoginDto) {\n return this.client.post<AuthTokenResponse>(this.endpoint, data);\n }\n\n social(data: SocialAuthDto) {\n return this.client.post<SocialAuthResponse>(`${this.endpoint}/social`, data);\n }\n\n refresh(data: RefreshTokenDto) {\n return this.client.post<AuthTokenResponse>(`${this.endpoint}/refresh`, data);\n }\n}\n\nconst v1 = new AuthClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialProvider, SocialAuthDto, SocialAuthResponse } from './v1';\n\nexport const Auth = { v1 };\nexport default Auth;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Category {\n id: string;\n name: string;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCategoryDto {\n name: string;\n}\n\nexport interface UpdateCategoryDto {\n name: string;\n}\n\nexport interface GetCategoriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CategoriesClient extends HttpClient {\n endpoint = 'api/v1/categories';\n\n getAll(params?: GetCategoriesParams) {\n return this.client.get<Page<Category>>(this.endpoint, { params });\n }\n\n create(data: CreateCategoryDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCategoryDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CategoriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Category,\n CreateCategoryDto,\n UpdateCategoryDto,\n GetCategoriesParams,\n} from './v1';\n\nexport const Categories = { v1 };\nexport default Categories;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, PageRequest, Page } from '@/api/common/types';\n\nexport interface Collection {\n id: string;\n name: string;\n customer: BaseValueObject;\n events: BaseValueObject[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCollectionDto {\n name: string;\n eventIds?: string[];\n}\n\nexport interface UpdateCollectionDto {\n name: string;\n eventIds: string[];\n}\n\nexport interface GetCollectionsParams extends PageRequest {\n name?: string;\n}\n\nclass CollectionsClient extends HttpClient {\n endpoint = 'api/v1/collections';\n\n getAll(params?: GetCollectionsParams) {\n return this.client.get<Page<Collection>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Collection>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateCollectionDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCollectionDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CollectionsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Collection,\n CreateCollectionDto,\n UpdateCollectionDto,\n GetCollectionsParams,\n} from './v1';\n\nexport const Collections = { v1 };\nexport default Collections;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport type UserRole = 'ADMIN' | 'CUSTOMER' | 'PRIVATE_ORGANIZER' | 'PUBLIC_ORGANIZER' | 'SUB_ORGANIZER';\n\nexport interface User {\n id: string;\n name: string;\n username: string;\n imageId?: string;\n createdAt: string;\n updatedAt: string;\n emailVerified: boolean;\n onboarded: boolean;\n}\n\nexport interface CreateUserDto {\n name: string;\n username: string;\n password: string;\n}\n\nexport interface CreateOrganizerUserDto {\n name: string;\n username: string;\n password: string;\n userRole: UserRole;\n}\n\nexport interface EditUserDto {\n name: string;\n username: string;\n password?: string;\n imageId?: string;\n}\n\n\n\nclass UsersClient extends HttpClient {\n endpoint = 'api/v1/users';\n\n getAll(params?: PageRequest) {\n return this.client.get<Page<User>>(this.endpoint, { params });\n }\n\n getProfile() {\n return this.client.get<User>(`${this.endpoint}/profile`);\n }\n\n create(data: CreateUserDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n createOrganizer(data: CreateOrganizerUserDto) {\n return this.client.post<void>(`${this.endpoint}/organizer`, data);\n }\n\n createSubOrganizer(data: CreateUserDto) {\n return this.client.post<void>(`${this.endpoint}/sub-organizer`, data);\n }\n\n verify(userId: string) {\n return this.client.patch<void>(`${this.endpoint}/${userId}/verify`);\n }\n\n edit(id: string, data: EditUserDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n}\n\nconst v1 = new UsersClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { User, UserRole, CreateUserDto, CreateOrganizerUserDto, EditUserDto } from './v1';\n\nexport const Users = { v1 };\nexport default Users;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport type FileType = 'IMAGE' | 'VIDEO' | 'DOCUMENT';\n\nexport interface UploadedFile {\n id: string;\n fileName: string;\n url: string;\n fileSize: number;\n fileType: FileType;\n createdAt: string;\n updatedAt: string;\n}\n\n\n\nclass FilesClient extends HttpClient {\n endpoint = 'api/v1/files';\n\n upload(file: File) {\n const formData = new FormData();\n formData.append('file', file);\n return this.client.post<UploadedFile>(this.endpoint, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new FilesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { UploadedFile, FileType } from './v1';\n\nexport const Files = { v1 };\nexport default Files;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, CountryVo } from '@/api/common/types';\n\n\nexport interface Onboarding {\n id: string;\n user: BaseValueObject;\n categories: BaseValueObject[];\n countries: CountryVo[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateOnboardingDto {\n categoryIds: string[];\n cityIds: string[];\n}\n\nexport type UpdateOnboardingDto = CreateOnboardingDto;\n\n\n\nclass OnboardingsClient extends HttpClient {\n endpoint = 'api/v1/onboardings';\n\n getByUser() {\n return this.client.get<Onboarding>(this.endpoint);\n }\n\n create(data: CreateOnboardingDto) {\n return this.client.post<Onboarding>(this.endpoint, data);\n }\n\n update(data: UpdateOnboardingDto) {\n return this.client.put<Onboarding>(this.endpoint, data);\n }\n}\n\nconst v1 = new OnboardingsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Onboarding, CreateOnboardingDto, UpdateOnboardingDto } from './v1';\n\nexport const Onboardings = { v1 };\nexport default Onboardings;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface EventAttendance {\n id: string;\n user: BaseValueObject;\n event: BaseValueObject;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateEventAttendanceDto {\n eventId: string;\n}\n\nexport interface GetEventAttendancesParams extends PageRequest {\n 'event-id'?: string;\n}\n\n\n\nclass EventAttendancesClient extends HttpClient {\n endpoint = 'api/v1/event-attendances';\n\n getAll(params?: GetEventAttendancesParams) {\n return this.client.get<Page<EventAttendance>>(this.endpoint, { params });\n }\n\n create(data: CreateEventAttendanceDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventAttendancesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { EventAttendance, CreateEventAttendanceDto, GetEventAttendancesParams } from './v1';\n\nexport const EventAttendances = { v1 };\nexport default EventAttendances;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface ForgotPasswordCreateDto {\n email: string;\n}\n\nexport interface ChangeForgotPasswordDto {\n password: string;\n}\n\n\n\nclass ForgotPasswordClient extends HttpClient {\n endpoint = 'api/v1/forgot-password';\n\n create(data: ForgotPasswordCreateDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n changePassword(id: string, data: ChangeForgotPasswordDto) {\n return this.client.patch<void>(`${this.endpoint}/${id}/change`, data);\n }\n}\n\nconst v1 = new ForgotPasswordClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { ForgotPasswordCreateDto, ChangeForgotPasswordDto } from './v1';\n\nexport const ForgotPassword = { v1 };\nexport default ForgotPassword;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Country {\n id: string;\n name: string;\n}\n\nexport interface GetCountriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CountriesClient extends HttpClient {\n endpoint = 'api/v1/countries';\n\n getAll(params?: GetCountriesParams) {\n return this.client.get<Page<Country>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Country>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Country, GetCountriesParams } from './v1';\n\nexport const Countries = { v1 };\nexport default Countries;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface County {\n id: string;\n name: string;\n country: BaseValueObject;\n}\n\nexport interface GetCountiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n}\n\n\n\nclass CountiesClient extends HttpClient {\n endpoint = 'api/v1/counties';\n\n getAll(params?: GetCountiesParams) {\n return this.client.get<Page<County>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<County>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { County, GetCountiesParams } from './v1';\n\nexport const Counties = { v1 };\nexport default Counties;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface City {\n id: string;\n name: string;\n country: BaseValueObject;\n county: BaseValueObject;\n}\n\nexport interface GetCitiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n 'county-id'?: string;\n}\n\n\n\nclass CitiesClient extends HttpClient {\n endpoint = 'api/v1/cities';\n\n getAll(params?: GetCitiesParams) {\n return this.client.get<Page<City>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<City>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CitiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { City, GetCitiesParams } from './v1';\n\nexport const Cities = { v1 };\nexport default Cities;\n","import { setBaseUrl, setHeaders, removeHeader, addRequestInterceptor, removeRequestInterceptor } from '../instance';\nimport type { InternalAxiosRequestConfig } from 'axios';\nimport Events from './events';\nimport Auth from './auth';\nimport Categories from './categories';\nimport Collections from './collections';\nimport Users from './users';\nimport Files from './files';\nimport Onboardings from './onboardings';\nimport EventAttendances from './event-attendances';\nimport ForgotPassword from './forgot-password';\nimport Countries from './countries';\nimport Counties from './counties';\nimport Cities from './cities';\n\nexport interface EventhrHttpConfig {\n baseUrl?: string;\n headers?: Record<string, string>;\n}\n\nexport class EventhrHttpClient {\n readonly Auth = Auth;\n readonly Events = Events;\n readonly Categories = Categories;\n readonly Collections = Collections;\n readonly Users = Users;\n readonly Files = Files;\n readonly Onboardings = Onboardings;\n readonly EventAttendances = EventAttendances;\n readonly ForgotPassword = ForgotPassword;\n readonly Countries = Countries;\n readonly Counties = Counties;\n readonly Cities = Cities;\n\n configure({ baseUrl, headers }: EventhrHttpConfig): void {\n if (baseUrl !== undefined) {\n setBaseUrl(baseUrl);\n }\n if (headers !== undefined) {\n setHeaders(headers);\n }\n }\n\n removeHeader(key: string): void {\n removeHeader(key);\n }\n\n addInterceptor(\n onFulfilled: (\n config: InternalAxiosRequestConfig,\n ) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n ): number {\n return addRequestInterceptor(onFulfilled, onRejected);\n }\n\n removeInterceptor(id: number): void {\n removeRequestInterceptor(id);\n }\n}\n\nconst EventhrHttp = new EventhrHttpClient();\nexport default EventhrHttp;\n","import type { GetEventsParams } from './events';\nimport type { GetCategoriesParams } from './categories';\nimport type { GetCollectionsParams } from './collections';\nimport type { GetCountriesParams } from './countries';\nimport type { GetCountiesParams } from './counties';\nimport type { GetCitiesParams } from './cities';\nimport type { GetEventAttendancesParams } from './event-attendances';\nimport type { PageRequest } from './common/types';\n\nexport const EVENTHR_QUERY_KEYS = {\n events: {\n all: ['events'] as const,\n list: (params?: GetEventsParams) => [...EVENTHR_QUERY_KEYS.events.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.events.all, 'detail', id] as const,\n },\n categories: {\n all: ['categories'] as const,\n list: (params?: GetCategoriesParams) =>\n [...EVENTHR_QUERY_KEYS.categories.all, 'list', params] as const,\n },\n collections: {\n all: ['collections'] as const,\n list: (params?: GetCollectionsParams) =>\n [...EVENTHR_QUERY_KEYS.collections.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.collections.all, 'detail', id] as const,\n },\n users: {\n all: ['users'] as const,\n list: (params?: PageRequest) => [...EVENTHR_QUERY_KEYS.users.all, 'list', params] as const,\n profile: () => [...EVENTHR_QUERY_KEYS.users.all, 'profile'] as const,\n },\n files: {\n all: ['files'] as const,\n },\n onboardings: {\n all: ['onboardings'] as const,\n detail: () => [...EVENTHR_QUERY_KEYS.onboardings.all, 'detail'] as const,\n },\n eventAttendances: {\n all: ['event-attendances'] as const,\n list: (params?: GetEventAttendancesParams) =>\n [...EVENTHR_QUERY_KEYS.eventAttendances.all, 'list', params] as const,\n },\n countries: {\n all: ['countries'] as const,\n list: (params?: GetCountriesParams) =>\n [...EVENTHR_QUERY_KEYS.countries.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.countries.all, 'detail', id] as const,\n },\n counties: {\n all: ['counties'] as const,\n list: (params?: GetCountiesParams) =>\n [...EVENTHR_QUERY_KEYS.counties.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.counties.all, 'detail', id] as const,\n },\n cities: {\n all: ['cities'] as const,\n list: (params?: GetCitiesParams) =>\n [...EVENTHR_QUERY_KEYS.cities.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.cities.all, 'detail', id] as const,\n },\n} as const;\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventDto, Event, GetEventsParams, UpdateEventDto } from './v1';\nimport Events from './index';\n\n\n\nexport const useGetEventsQuery = (\n params?: GetEventsParams,\n options?: QueryOptions<Page<Event>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.list(params),\n queryFn: async () => {\n const response = await Events.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetEventByIdQuery = (\n id: string,\n options?: QueryOptions<Event>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.detail(id),\n queryFn: async () => {\n const response = await Events.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateEventMutation = (\n options?: MutationOptions<void, CreateEventDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventDto) => {\n await Events.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateEventMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateEventDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateEventDto }) => {\n await Events.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteEventMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Events.v1.remove(id);\n },\n ...options,\n });\n","import { QueryClient } from '@tanstack/react-query';\n\nexport const queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 0,\n },\n mutations: {\n retry: 0,\n },\n },\n});\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialAuthDto, SocialAuthResponse } from './v1';\nimport Auth from './index';\n\nexport const useLoginMutation = (\n options?: MutationOptions<AuthTokenResponse, LoginDto>,\n) =>\n useMutation({\n mutationFn: async (data: LoginDto) => {\n const response = await Auth.v1.login(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useSocialAuthMutation = (\n options?: MutationOptions<SocialAuthResponse, SocialAuthDto>,\n) =>\n useMutation({\n mutationFn: async (data: SocialAuthDto) => {\n const response = await Auth.v1.social(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useRefreshTokenMutation = (\n options?: MutationOptions<AuthTokenResponse, RefreshTokenDto>,\n) =>\n useMutation({\n mutationFn: async (data: RefreshTokenDto) => {\n const response = await Auth.v1.refresh(data);\n return response.data;\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Category, CreateCategoryDto, GetCategoriesParams, UpdateCategoryDto } from './v1';\nimport Categories from './index';\n\n\n\nexport const useGetCategoriesQuery = (\n params?: GetCategoriesParams,\n options?: QueryOptions<Page<Category>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.categories.list(params),\n queryFn: async () => {\n const response = await Categories.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateCategoryMutation = (\n options?: MutationOptions<void, CreateCategoryDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCategoryDto) => {\n await Categories.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCategoryMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCategoryDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCategoryDto }) => {\n await Categories.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCategoryMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Categories.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCategoriesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.categories.all });\n","import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Event } from '@/api/events';\nimport type { Collection, CreateCollectionDto, GetCollectionsParams, UpdateCollectionDto } from './v1';\nimport Collections from './index';\n\n\n\nexport const useGetCollectionsQuery = (\n params?: GetCollectionsParams,\n options?: QueryOptions<Page<Collection>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.list(params),\n queryFn: async () => {\n const response = await Collections.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCollectionByIdQuery = (\n id: string,\n options?: QueryOptions<Collection>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.detail(id),\n queryFn: async () => {\n const response = await Collections.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateCollectionMutation = (\n options?: MutationOptions<void, CreateCollectionDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCollectionDto) => {\n await Collections.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCollectionMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCollectionDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCollectionDto }) => {\n await Collections.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCollectionMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Collections.v1.remove(id);\n },\n ...options,\n });\n\ntype SaveEventVariables = { id: string; eventId: string; data: UpdateCollectionDto };\ntype SaveEventContext = {\n previousLists: Array<[readonly unknown[], Page<Event> | undefined]>;\n previousDetail: Event | undefined;\n};\n\nexport const useSaveEventMutation = (\n options?: MutationOptions<void, SaveEventVariables>,\n) => {\n const queryClient = useQueryClient();\n const { onMutate, onError, onSettled, ...restOptions } = options ?? {};\n\n return useMutation<void, Error, SaveEventVariables, SaveEventContext>({\n mutationFn: async ({ id, data }) => {\n await Collections.v1.update(id, data);\n },\n onMutate: async (variables, mutationContext) => {\n const { eventId } = variables;\n const listKey = [...EVENTHR_QUERY_KEYS.events.all, 'list'];\n\n await queryClient.cancelQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n\n const previousLists = queryClient.getQueriesData<Page<Event>>({ queryKey: listKey });\n\n queryClient.setQueriesData<Page<Event>>({ queryKey: listKey }, (oldData) => {\n if (!oldData) return oldData;\n return {\n ...oldData,\n content: oldData.content.map((event) =>\n event.id === eventId ? { ...event, isSaved: !event.isSaved } : event,\n ),\n };\n });\n\n const detailKey = EVENTHR_QUERY_KEYS.events.detail(eventId);\n const previousDetail = queryClient.getQueryData<Event>(detailKey);\n if (previousDetail) {\n queryClient.setQueryData<Event>(detailKey, { ...previousDetail, isSaved: !previousDetail.isSaved });\n }\n\n await onMutate?.(variables, mutationContext);\n\n return { previousLists, previousDetail };\n },\n onError: (error, variables, onMutateResult, mutationContext) => {\n onMutateResult?.previousLists.forEach(([queryKey, data]) => {\n queryClient.setQueryData(queryKey, data);\n });\n if (onMutateResult?.previousDetail) {\n queryClient.setQueryData(\n EVENTHR_QUERY_KEYS.events.detail(variables.eventId),\n onMutateResult.previousDetail,\n );\n }\n onError?.(error, variables, onMutateResult, mutationContext);\n },\n onSettled: (data, error, variables, onMutateResult, mutationContext) => {\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n onSettled?.(data, error, variables, onMutateResult, mutationContext);\n },\n ...restOptions,\n });\n};\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCollectionsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, PageRequest, QueryOptions } from '@/api/common/types';\nimport type { CreateUserDto, CreateOrganizerUserDto, EditUserDto, User } from './v1';\nimport Users from './index';\n\n\n\nexport const useGetUsersQuery = (\n params?: PageRequest,\n options?: QueryOptions<Page<User>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.list(params),\n queryFn: async () => {\n const response = await Users.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetProfileQuery = (\n options?: QueryOptions<User>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.profile(),\n queryFn: async () => {\n const response = await Users.v1.getProfile();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateUserMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.create(data);\n },\n ...options,\n });\n\nexport const useEditUserMutation = (\n options?: MutationOptions<void, { id: string; data: EditUserDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: EditUserDto }) => {\n await Users.v1.edit(id, data);\n },\n ...options,\n });\n\nexport const useCreateOrganizerMutation = (\n options?: MutationOptions<void, CreateOrganizerUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOrganizerUserDto) => {\n await Users.v1.createOrganizer(data);\n },\n ...options,\n });\n\nexport const useCreateSubOrganizerMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.createSubOrganizer(data);\n },\n ...options,\n });\n\nexport const useVerifyUserMutation = (\n options?: MutationOptions<void, { userId: string }>,\n) =>\n useMutation({\n mutationFn: async ({ userId }: { userId: string }) => {\n await Users.v1.verify(userId);\n },\n ...options,\n });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { UploadedFile } from './v1';\nimport Files from './index';\n\nexport const useUploadFileMutation = (\n options?: MutationOptions<UploadedFile, File>,\n) =>\n useMutation({\n mutationFn: async (file: File) => {\n const response = await Files.v1.upload(file);\n return response.data;\n },\n ...options,\n });\n\nexport const useDeleteFileMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Files.v1.remove(id);\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, QueryOptions } from '@/api/common/types';\nimport type { CreateOnboardingDto, Onboarding, UpdateOnboardingDto } from './v1';\nimport Onboardings from './index';\n\n\n\nexport const useGetOnboardingQuery = (\n options?: QueryOptions<Onboarding>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.onboardings.detail(),\n queryFn: async () => {\n const response = await Onboardings.v1.getByUser();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateOnboardingMutation = (\n options?: MutationOptions<Onboarding, CreateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOnboardingDto) => {\n const response = await Onboardings.v1.create(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useUpdateOnboardingMutation = (\n options?: MutationOptions<Onboarding, UpdateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: UpdateOnboardingDto) => {\n const response = await Onboardings.v1.update(data);\n return response.data;\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateOnboardingsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.onboardings.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventAttendanceDto, EventAttendance, GetEventAttendancesParams } from './v1';\nimport EventAttendances from './index';\n\n\n\nexport const useGetEventAttendancesQuery = (\n params?: GetEventAttendancesParams,\n options?: QueryOptions<Page<EventAttendance>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.eventAttendances.list(params),\n queryFn: async () => {\n const response = await EventAttendances.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateEventAttendanceMutation = (\n options?: MutationOptions<void, CreateEventAttendanceDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventAttendanceDto) => {\n await EventAttendances.v1.create(data);\n },\n ...options,\n });\n\nexport const useDeleteEventAttendanceMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await EventAttendances.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventAttendancesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.eventAttendances.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { ChangeForgotPasswordDto, ForgotPasswordCreateDto } from './v1';\nimport ForgotPassword from './index';\n\n\n\nexport const useCreateForgotPasswordMutation = (\n options?: MutationOptions<void, ForgotPasswordCreateDto>,\n) =>\n useMutation({\n mutationFn: async (data: ForgotPasswordCreateDto) => {\n await ForgotPassword.v1.create(data);\n },\n ...options,\n });\n\nexport const useChangePasswordMutation = (\n options?: MutationOptions<void, { id: string; data: ChangeForgotPasswordDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: ChangeForgotPasswordDto }) => {\n await ForgotPassword.v1.changePassword(id, data);\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { Country, GetCountriesParams } from './v1';\nimport Countries from './index';\n\n\n\nexport const useGetCountriesQuery = (\n params?: GetCountriesParams,\n options?: QueryOptions<Page<Country>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.list(params),\n queryFn: async () => {\n const response = await Countries.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountryByIdQuery = (\n id: string,\n options?: QueryOptions<Country>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.detail(id),\n queryFn: async () => {\n const response = await Countries.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { County, GetCountiesParams } from './v1';\nimport Counties from './index';\n\n\n\nexport const useGetCountiesQuery = (\n params?: GetCountiesParams,\n options?: QueryOptions<Page<County>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.list(params),\n queryFn: async () => {\n const response = await Counties.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountyByIdQuery = (\n id: string,\n options?: QueryOptions<County>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.detail(id),\n queryFn: async () => {\n const response = await Counties.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { City, GetCitiesParams } from './v1';\nimport Cities from './index';\n\n\n\nexport const useGetCitiesQuery = (\n params?: GetCitiesParams,\n options?: QueryOptions<Page<City>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.list(params),\n queryFn: async () => {\n const response = await Cities.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCityByIdQuery = (\n id: string,\n options?: QueryOptions<City>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.detail(id),\n queryFn: async () => {\n const response = await Cities.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n"],"names":["instance","axios","setBaseUrl","url","setHeaders","headers","removeHeader","key","addRequestInterceptor","onFulfilled","onRejected","removeRequestInterceptor","id","HttpClient","_args","EventsClient","params","data","v1","Events","AuthClient","Auth","CategoriesClient","Categories","CollectionsClient","Collections","UsersClient","userId","Users","FilesClient","file","formData","Files","OnboardingsClient","Onboardings","EventAttendancesClient","EventAttendances","ForgotPasswordClient","ForgotPassword","CountriesClient","Countries","CountiesClient","Counties","CitiesClient","Cities","EventhrHttpClient","baseUrl","EventhrHttp","EVENTHR_QUERY_KEYS","useGetEventsQuery","options","useQuery","useGetEventByIdQuery","useCreateEventMutation","useMutation","useUpdateEventMutation","useDeleteEventMutation","queryClient","QueryClient","invalidateEventsCache","useLoginMutation","useSocialAuthMutation","useRefreshTokenMutation","useGetCategoriesQuery","useCreateCategoryMutation","useUpdateCategoryMutation","useDeleteCategoryMutation","invalidateCategoriesCache","useGetCollectionsQuery","useGetCollectionByIdQuery","useCreateCollectionMutation","useUpdateCollectionMutation","useDeleteCollectionMutation","useSaveEventMutation","useQueryClient","onMutate","onError","onSettled","restOptions","variables","mutationContext","eventId","listKey","previousLists","oldData","event","detailKey","previousDetail","error","onMutateResult","queryKey","invalidateCollectionsCache","useGetUsersQuery","useGetProfileQuery","useCreateUserMutation","useEditUserMutation","useCreateOrganizerMutation","useCreateSubOrganizerMutation","useVerifyUserMutation","useUploadFileMutation","useDeleteFileMutation","useGetOnboardingQuery","useCreateOnboardingMutation","useUpdateOnboardingMutation","invalidateOnboardingsCache","useGetEventAttendancesQuery","useCreateEventAttendanceMutation","useDeleteEventAttendanceMutation","invalidateEventAttendancesCache","useCreateForgotPasswordMutation","useChangePasswordMutation","useGetCountriesQuery","useGetCountryByIdQuery","useGetCountiesQuery","useGetCountyByIdQuery","useGetCitiesQuery","useGetCityByIdQuery"],"mappings":";;AAEA,MAAMA,IAA0BC,EAAM,OAAO;AAAA,EAC3C,SAAS;AAAA,EACT,SAAS;AAAA,IACP,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GAEYC,IAAa,CAACC,MAAsB;AAC/C,EAAAH,EAAS,SAAS,UAAUG;AAC9B,GAEaC,IAAa,CAACC,MAA0C;AACnE,SAAO,OAAOL,EAAS,SAAS,QAAQ,QAAQK,CAAO;AACzD,GAEaC,IAAe,CAACC,MAAsB;AACjD,SAAQP,EAAS,SAAS,QAAQ,OAAkCO,CAAG;AACzE,GAEaC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ts","../src/api/events/v1/index.ts","../src/api/events/index.ts","../src/api/auth/v1/index.ts","../src/api/auth/index.ts","../src/api/categories/v1/index.ts","../src/api/categories/index.ts","../src/api/collections/v1/index.ts","../src/api/collections/index.ts","../src/api/users/v1/index.ts","../src/api/users/index.ts","../src/api/files/v1/index.ts","../src/api/files/index.ts","../src/api/onboardings/v1/index.ts","../src/api/onboardings/index.ts","../src/api/event-attendances/v1/index.ts","../src/api/event-attendances/index.ts","../src/api/forgot-password/v1/index.ts","../src/api/forgot-password/index.ts","../src/api/countries/v1/index.ts","../src/api/countries/index.ts","../src/api/counties/v1/index.ts","../src/api/counties/index.ts","../src/api/cities/v1/index.ts","../src/api/cities/index.ts","../src/api/EventhrHttp.ts","../src/api/eventhrKeys.ts","../src/api/events/events.hooks.ts","../src/query-client.ts","../src/api/events/events.cache.ts","../src/api/auth/auth.hooks.ts","../src/api/categories/categories.hooks.ts","../src/api/categories/categories.cache.ts","../src/api/collections/collections.hooks.ts","../src/api/collections/collections.cache.ts","../src/api/users/users.hooks.ts","../src/api/files/files.hooks.ts","../src/api/onboardings/onboardings.hooks.ts","../src/api/onboardings/onboardings.cache.ts","../src/api/event-attendances/event-attendances.hooks.ts","../src/api/event-attendances/event-attendances.cache.ts","../src/api/forgot-password/forgot-password.hooks.ts","../src/api/countries/countries.hooks.ts","../src/api/counties/counties.hooks.ts","../src/api/cities/cities.hooks.ts"],"sourcesContent":["import axios, { type AxiosInstance, type InternalAxiosRequestConfig } from 'axios';\n\nconst instance: AxiosInstance = axios.create({\n baseURL: '',\n headers: {\n 'Content-Type': 'application/json',\n },\n});\n\nexport const setBaseUrl = (url: string): void => {\n instance.defaults.baseURL = url;\n};\n\nexport const setHeaders = (headers: Record<string, string>): void => {\n Object.assign(instance.defaults.headers.common, headers);\n};\n\nexport const removeHeader = (key: string): void => {\n delete (instance.defaults.headers.common as Record<string, string>)[key];\n};\n\nexport const addRequestInterceptor = (\n onFulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n): number => instance.interceptors.request.use(onFulfilled, onRejected);\n\nexport const removeRequestInterceptor = (id: number): void => {\n instance.interceptors.request.eject(id);\n};\n\nexport { instance };\nexport default instance;\n","import instance from '../../instance';\n\nexport abstract class HttpClient {\n abstract endpoint: string;\n\n readonly client = instance;\n\n list(..._args: unknown[]): Promise<unknown> {\n throw new Error(`list() not implemented on ${this.constructor.name}`);\n }\n\n get(..._args: unknown[]): Promise<unknown> {\n throw new Error(`get() not implemented on ${this.constructor.name}`);\n }\n\n create(..._args: unknown[]): Promise<unknown> {\n throw new Error(`create() not implemented on ${this.constructor.name}`);\n }\n\n update(..._args: unknown[]): Promise<unknown> {\n throw new Error(`update() not implemented on ${this.constructor.name}`);\n }\n\n remove(..._args: unknown[]): Promise<unknown> {\n throw new Error(`remove() not implemented on ${this.constructor.name}`);\n }\n}\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, Coordinates, CountryVo, FileVo, PageRequest, Page } from '@/api/common/types';\n\n\nexport interface EventAddress {\n countryVo?: CountryVo;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport interface EventAddressDto {\n cityId: string;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport type EventFeature =\n | 'FREE_ENTRY'\n | 'PAID_ENTRY'\n | 'RESERVATION_REQUIRED'\n | 'INDOOR'\n | 'OUTDOOR'\n | 'FREE_PARKING_NEARBY'\n | 'PAID_PARKING_NEARBY'\n | 'NO_PARKING_AVAILABLE'\n | 'PUBLIC_TRANSPORT_NEARBY'\n | 'WHEELCHAIR_ACCESSIBLE'\n | 'ACCESSIBLE_RESTROOM'\n | 'FAMILY_FRIENDLY'\n | 'PET_FRIENDLY'\n | 'FOOD_AVAILABLE'\n | 'DRINKS_AVAILABLE'\n | 'VEGAN_VEGETARIAN_OPTIONS'\n | 'CARD_PAYMENT_AVAILABLE'\n | 'CASH_ONLY'\n | 'NON_SMOKING'\n | 'SMOKING_ALLOWED'\n | 'ADULTS_ONLY_18_PLUS'\n | 'CLOAKROOM_AVAILABLE'\n | 'BABY_CHANGING_FACILITY';\n\nexport interface SubEvent {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n images: FileVo[];\n features?: EventFeature[];\n attendeeCount?: number;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface Event {\n id: string;\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: Coordinates;\n price?: number;\n capacity?: number;\n organizer: BaseValueObject;\n category: BaseValueObject;\n features?: EventFeature[];\n attendeeCount?: number;\n images?: FileVo[];\n parentEvent?: BaseValueObject;\n subEvents?: SubEvent[];\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n isSaved: boolean;\n}\n\nexport interface CreateEventDto {\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddressDto;\n coordinates: Coordinates;\n price: number;\n capacity?: number;\n imageIds?: string[];\n features?: EventFeature[];\n categoryId: string;\n subOrganizerId?: string;\n parentEventId?: string;\n}\n\nexport type UpdateEventDto = CreateEventDto;\n\nexport interface GetEventsParams extends PageRequest {\n name?: string;\n latitude?: number;\n longitude?: number;\n radiusKm?: number;\n}\n\n\n\nclass EventsClient extends HttpClient {\n endpoint = 'api/v1/events';\n\n getAll(params?: GetEventsParams) {\n return this.client.get<Page<Event>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Event>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateEventDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateEventDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Event,\n EventAddress,\n EventAddressDto,\n EventFeature,\n SubEvent,\n CreateEventDto,\n UpdateEventDto,\n GetEventsParams,\n} from './v1';\nexport type { BaseValueObject, Coordinates, CountryVo, FileVo } from '@/api/common/types';\n\nexport const Events = { v1 };\nexport default Events;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface AuthTokenResponse {\n authenticationToken: string;\n refreshToken: string;\n}\n\nexport interface LoginDto {\n username: string;\n password: string;\n notificationToken?: string;\n}\n\nexport interface RefreshTokenDto {\n refreshToken: string;\n}\n\nexport type SocialProvider = 'GOOGLE' | 'FACEBOOK';\n\nexport interface SocialAuthDto {\n provider: SocialProvider;\n token: string;\n}\n\nexport interface SocialAuthResponse {\n email: string;\n name: string;\n provider: string;\n}\n\n\n\nclass AuthClient extends HttpClient {\n endpoint = 'api/v1/authentication/user';\n\n login(data: LoginDto) {\n return this.client.post<AuthTokenResponse>(this.endpoint, data);\n }\n\n social(data: SocialAuthDto) {\n return this.client.post<SocialAuthResponse>(`${this.endpoint}/social`, data);\n }\n\n refresh(data: RefreshTokenDto) {\n return this.client.post<AuthTokenResponse>(`${this.endpoint}/refresh`, data);\n }\n}\n\nconst v1 = new AuthClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialProvider, SocialAuthDto, SocialAuthResponse } from './v1';\n\nexport const Auth = { v1 };\nexport default Auth;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Category {\n id: string;\n name: string;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCategoryDto {\n name: string;\n}\n\nexport interface UpdateCategoryDto {\n name: string;\n}\n\nexport interface GetCategoriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CategoriesClient extends HttpClient {\n endpoint = 'api/v1/categories';\n\n getAll(params?: GetCategoriesParams) {\n return this.client.get<Page<Category>>(this.endpoint, { params });\n }\n\n create(data: CreateCategoryDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCategoryDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CategoriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Category,\n CreateCategoryDto,\n UpdateCategoryDto,\n GetCategoriesParams,\n} from './v1';\n\nexport const Categories = { v1 };\nexport default Categories;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, PageRequest, Page } from '@/api/common/types';\n\nexport interface Collection {\n id: string;\n name: string;\n customer: BaseValueObject;\n events: BaseValueObject[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateCollectionDto {\n name: string;\n eventIds?: string[];\n}\n\nexport interface UpdateCollectionDto {\n name: string;\n eventIds: string[];\n}\n\nexport interface GetCollectionsParams extends PageRequest {\n name?: string;\n}\n\nclass CollectionsClient extends HttpClient {\n endpoint = 'api/v1/collections';\n\n getAll(params?: GetCollectionsParams) {\n return this.client.get<Page<Collection>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Collection>(`${this.endpoint}/${id}`);\n }\n\n create(data: CreateCollectionDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n update(id: string, data: UpdateCollectionDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n\n removeEvent(eventId: string) {\n return this.client.delete<void>(`${this.endpoint}/events/${eventId}`);\n }\n}\n\nconst v1 = new CollectionsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type {\n Collection,\n CreateCollectionDto,\n UpdateCollectionDto,\n GetCollectionsParams,\n} from './v1';\n\nexport const Collections = { v1 };\nexport default Collections;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport type UserRole = 'ADMIN' | 'CUSTOMER' | 'PRIVATE_ORGANIZER' | 'PUBLIC_ORGANIZER' | 'SUB_ORGANIZER';\n\nexport interface User {\n id: string;\n name: string;\n username: string;\n imageId?: string;\n createdAt: string;\n updatedAt: string;\n emailVerified: boolean;\n onboarded: boolean;\n}\n\nexport interface CreateUserDto {\n name: string;\n username: string;\n password: string;\n}\n\nexport interface CreateOrganizerUserDto {\n name: string;\n username: string;\n password: string;\n userRole: UserRole;\n}\n\nexport interface EditUserDto {\n name: string;\n username: string;\n password?: string;\n imageId?: string;\n}\n\n\n\nclass UsersClient extends HttpClient {\n endpoint = 'api/v1/users';\n\n getAll(params?: PageRequest) {\n return this.client.get<Page<User>>(this.endpoint, { params });\n }\n\n getProfile() {\n return this.client.get<User>(`${this.endpoint}/profile`);\n }\n\n create(data: CreateUserDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n createOrganizer(data: CreateOrganizerUserDto) {\n return this.client.post<void>(`${this.endpoint}/organizer`, data);\n }\n\n createSubOrganizer(data: CreateUserDto) {\n return this.client.post<void>(`${this.endpoint}/sub-organizer`, data);\n }\n\n verify(userId: string) {\n return this.client.patch<void>(`${this.endpoint}/${userId}/verify`);\n }\n\n edit(id: string, data: EditUserDto) {\n return this.client.put<void>(`${this.endpoint}/${id}`, data);\n }\n}\n\nconst v1 = new UsersClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { User, UserRole, CreateUserDto, CreateOrganizerUserDto, EditUserDto } from './v1';\n\nexport const Users = { v1 };\nexport default Users;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport type FileType = 'IMAGE' | 'VIDEO' | 'DOCUMENT';\n\nexport interface UploadedFile {\n id: string;\n fileName: string;\n url: string;\n fileSize: number;\n fileType: FileType;\n createdAt: string;\n updatedAt: string;\n}\n\n\n\nclass FilesClient extends HttpClient {\n endpoint = 'api/v1/files';\n\n upload(file: File) {\n const formData = new FormData();\n formData.append('file', file);\n return this.client.post<UploadedFile>(this.endpoint, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new FilesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { UploadedFile, FileType } from './v1';\n\nexport const Files = { v1 };\nexport default Files;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { BaseValueObject, CountryVo } from '@/api/common/types';\n\n\nexport interface Onboarding {\n id: string;\n user: BaseValueObject;\n categories: BaseValueObject[];\n countries: CountryVo[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateOnboardingDto {\n categoryIds: string[];\n cityIds: string[];\n}\n\nexport type UpdateOnboardingDto = CreateOnboardingDto;\n\n\n\nclass OnboardingsClient extends HttpClient {\n endpoint = 'api/v1/onboardings';\n\n getByUser() {\n return this.client.get<Onboarding>(this.endpoint);\n }\n\n create(data: CreateOnboardingDto) {\n return this.client.post<Onboarding>(this.endpoint, data);\n }\n\n update(data: UpdateOnboardingDto) {\n return this.client.put<Onboarding>(this.endpoint, data);\n }\n}\n\nconst v1 = new OnboardingsClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Onboarding, CreateOnboardingDto, UpdateOnboardingDto } from './v1';\n\nexport const Onboardings = { v1 };\nexport default Onboardings;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface EventAttendance {\n id: string;\n user: BaseValueObject;\n event: BaseValueObject;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateEventAttendanceDto {\n eventId: string;\n}\n\nexport interface GetEventAttendancesParams extends PageRequest {\n 'event-id'?: string;\n}\n\n\n\nclass EventAttendancesClient extends HttpClient {\n endpoint = 'api/v1/event-attendances';\n\n getAll(params?: GetEventAttendancesParams) {\n return this.client.get<Page<EventAttendance>>(this.endpoint, { params });\n }\n\n create(data: CreateEventAttendanceDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n remove(id: string) {\n return this.client.delete<void>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new EventAttendancesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { EventAttendance, CreateEventAttendanceDto, GetEventAttendancesParams } from './v1';\n\nexport const EventAttendances = { v1 };\nexport default EventAttendances;\n","import { HttpClient } from '@/api/common/HttpClient';\n\n\nexport interface ForgotPasswordCreateDto {\n email: string;\n}\n\nexport interface ChangeForgotPasswordDto {\n password: string;\n}\n\n\n\nclass ForgotPasswordClient extends HttpClient {\n endpoint = 'api/v1/forgot-password';\n\n create(data: ForgotPasswordCreateDto) {\n return this.client.post<void>(this.endpoint, data);\n }\n\n changePassword(id: string, data: ChangeForgotPasswordDto) {\n return this.client.patch<void>(`${this.endpoint}/${id}/change`, data);\n }\n}\n\nconst v1 = new ForgotPasswordClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { ForgotPasswordCreateDto, ChangeForgotPasswordDto } from './v1';\n\nexport const ForgotPassword = { v1 };\nexport default ForgotPassword;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface Country {\n id: string;\n name: string;\n}\n\nexport interface GetCountriesParams extends PageRequest {\n name?: string;\n}\n\n\n\nclass CountriesClient extends HttpClient {\n endpoint = 'api/v1/countries';\n\n getAll(params?: GetCountriesParams) {\n return this.client.get<Page<Country>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<Country>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountriesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { Country, GetCountriesParams } from './v1';\n\nexport const Countries = { v1 };\nexport default Countries;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface County {\n id: string;\n name: string;\n country: BaseValueObject;\n}\n\nexport interface GetCountiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n}\n\n\n\nclass CountiesClient extends HttpClient {\n endpoint = 'api/v1/counties';\n\n getAll(params?: GetCountiesParams) {\n return this.client.get<Page<County>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<County>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CountiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { County, GetCountiesParams } from './v1';\n\nexport const Counties = { v1 };\nexport default Counties;\n","import { HttpClient } from '@/api/common/HttpClient';\nimport type { PageRequest, Page, BaseValueObject } from '@/api/common/types';\n\n\nexport interface City {\n id: string;\n name: string;\n country: BaseValueObject;\n county: BaseValueObject;\n}\n\nexport interface GetCitiesParams extends PageRequest {\n name?: string;\n 'country-id'?: string;\n 'county-id'?: string;\n}\n\n\n\nclass CitiesClient extends HttpClient {\n endpoint = 'api/v1/cities';\n\n getAll(params?: GetCitiesParams) {\n return this.client.get<Page<City>>(this.endpoint, { params });\n }\n\n getById(id: string) {\n return this.client.get<City>(`${this.endpoint}/${id}`);\n }\n}\n\nconst v1 = new CitiesClient();\nexport default v1;\n","import v1 from './v1';\n\nexport type { City, GetCitiesParams } from './v1';\n\nexport const Cities = { v1 };\nexport default Cities;\n","import { setBaseUrl, setHeaders, removeHeader, addRequestInterceptor, removeRequestInterceptor } from '../instance';\nimport type { InternalAxiosRequestConfig } from 'axios';\nimport Events from './events';\nimport Auth from './auth';\nimport Categories from './categories';\nimport Collections from './collections';\nimport Users from './users';\nimport Files from './files';\nimport Onboardings from './onboardings';\nimport EventAttendances from './event-attendances';\nimport ForgotPassword from './forgot-password';\nimport Countries from './countries';\nimport Counties from './counties';\nimport Cities from './cities';\n\nexport interface EventhrHttpConfig {\n baseUrl?: string;\n headers?: Record<string, string>;\n}\n\nexport class EventhrHttpClient {\n readonly Auth = Auth;\n readonly Events = Events;\n readonly Categories = Categories;\n readonly Collections = Collections;\n readonly Users = Users;\n readonly Files = Files;\n readonly Onboardings = Onboardings;\n readonly EventAttendances = EventAttendances;\n readonly ForgotPassword = ForgotPassword;\n readonly Countries = Countries;\n readonly Counties = Counties;\n readonly Cities = Cities;\n\n configure({ baseUrl, headers }: EventhrHttpConfig): void {\n if (baseUrl !== undefined) {\n setBaseUrl(baseUrl);\n }\n if (headers !== undefined) {\n setHeaders(headers);\n }\n }\n\n removeHeader(key: string): void {\n removeHeader(key);\n }\n\n addInterceptor(\n onFulfilled: (\n config: InternalAxiosRequestConfig,\n ) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>,\n onRejected?: (error: unknown) => unknown,\n ): number {\n return addRequestInterceptor(onFulfilled, onRejected);\n }\n\n removeInterceptor(id: number): void {\n removeRequestInterceptor(id);\n }\n}\n\nconst EventhrHttp = new EventhrHttpClient();\nexport default EventhrHttp;\n","import type { GetEventsParams } from './events';\nimport type { GetCategoriesParams } from './categories';\nimport type { GetCollectionsParams } from './collections';\nimport type { GetCountriesParams } from './countries';\nimport type { GetCountiesParams } from './counties';\nimport type { GetCitiesParams } from './cities';\nimport type { GetEventAttendancesParams } from './event-attendances';\nimport type { PageRequest } from './common/types';\n\nexport const EVENTHR_QUERY_KEYS = {\n events: {\n all: ['events'] as const,\n list: (params?: GetEventsParams) => [...EVENTHR_QUERY_KEYS.events.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.events.all, 'detail', id] as const,\n },\n categories: {\n all: ['categories'] as const,\n list: (params?: GetCategoriesParams) =>\n [...EVENTHR_QUERY_KEYS.categories.all, 'list', params] as const,\n },\n collections: {\n all: ['collections'] as const,\n list: (params?: GetCollectionsParams) =>\n [...EVENTHR_QUERY_KEYS.collections.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.collections.all, 'detail', id] as const,\n },\n users: {\n all: ['users'] as const,\n list: (params?: PageRequest) => [...EVENTHR_QUERY_KEYS.users.all, 'list', params] as const,\n profile: () => [...EVENTHR_QUERY_KEYS.users.all, 'profile'] as const,\n },\n files: {\n all: ['files'] as const,\n },\n onboardings: {\n all: ['onboardings'] as const,\n detail: () => [...EVENTHR_QUERY_KEYS.onboardings.all, 'detail'] as const,\n },\n eventAttendances: {\n all: ['event-attendances'] as const,\n list: (params?: GetEventAttendancesParams) =>\n [...EVENTHR_QUERY_KEYS.eventAttendances.all, 'list', params] as const,\n },\n countries: {\n all: ['countries'] as const,\n list: (params?: GetCountriesParams) =>\n [...EVENTHR_QUERY_KEYS.countries.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.countries.all, 'detail', id] as const,\n },\n counties: {\n all: ['counties'] as const,\n list: (params?: GetCountiesParams) =>\n [...EVENTHR_QUERY_KEYS.counties.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.counties.all, 'detail', id] as const,\n },\n cities: {\n all: ['cities'] as const,\n list: (params?: GetCitiesParams) =>\n [...EVENTHR_QUERY_KEYS.cities.all, 'list', params] as const,\n detail: (id: string) => [...EVENTHR_QUERY_KEYS.cities.all, 'detail', id] as const,\n },\n} as const;\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventDto, Event, GetEventsParams, UpdateEventDto } from './v1';\nimport Events from './index';\n\n\n\nexport const useGetEventsQuery = (\n params?: GetEventsParams,\n options?: QueryOptions<Page<Event>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.list(params),\n queryFn: async () => {\n const response = await Events.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetEventByIdQuery = (\n id: string,\n options?: QueryOptions<Event>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.events.detail(id),\n queryFn: async () => {\n const response = await Events.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateEventMutation = (\n options?: MutationOptions<void, CreateEventDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventDto) => {\n await Events.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateEventMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateEventDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateEventDto }) => {\n await Events.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteEventMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Events.v1.remove(id);\n },\n ...options,\n });\n","import { QueryClient } from '@tanstack/react-query';\n\nexport const queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 0,\n },\n mutations: {\n retry: 0,\n },\n },\n});\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { AuthTokenResponse, LoginDto, RefreshTokenDto, SocialAuthDto, SocialAuthResponse } from './v1';\nimport Auth from './index';\n\nexport const useLoginMutation = (\n options?: MutationOptions<AuthTokenResponse, LoginDto>,\n) =>\n useMutation({\n mutationFn: async (data: LoginDto) => {\n const response = await Auth.v1.login(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useSocialAuthMutation = (\n options?: MutationOptions<SocialAuthResponse, SocialAuthDto>,\n) =>\n useMutation({\n mutationFn: async (data: SocialAuthDto) => {\n const response = await Auth.v1.social(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useRefreshTokenMutation = (\n options?: MutationOptions<AuthTokenResponse, RefreshTokenDto>,\n) =>\n useMutation({\n mutationFn: async (data: RefreshTokenDto) => {\n const response = await Auth.v1.refresh(data);\n return response.data;\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Category, CreateCategoryDto, GetCategoriesParams, UpdateCategoryDto } from './v1';\nimport Categories from './index';\n\n\n\nexport const useGetCategoriesQuery = (\n params?: GetCategoriesParams,\n options?: QueryOptions<Page<Category>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.categories.list(params),\n queryFn: async () => {\n const response = await Categories.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\n\n\nexport const useCreateCategoryMutation = (\n options?: MutationOptions<void, CreateCategoryDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCategoryDto) => {\n await Categories.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCategoryMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCategoryDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCategoryDto }) => {\n await Categories.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCategoryMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Categories.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCategoriesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.categories.all });\n","import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { Event } from '@/api/events';\nimport type { Collection, CreateCollectionDto, GetCollectionsParams, UpdateCollectionDto } from './v1';\nimport Collections from './index';\n\n\n\nexport const useGetCollectionsQuery = (\n params?: GetCollectionsParams,\n options?: QueryOptions<Page<Collection>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.list(params),\n queryFn: async () => {\n const response = await Collections.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCollectionByIdQuery = (\n id: string,\n options?: QueryOptions<Collection>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.collections.detail(id),\n queryFn: async () => {\n const response = await Collections.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateCollectionMutation = (\n options?: MutationOptions<void, CreateCollectionDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateCollectionDto) => {\n await Collections.v1.create(data);\n },\n ...options,\n });\n\nexport const useUpdateCollectionMutation = (\n options?: MutationOptions<void, { id: string; data: UpdateCollectionDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: UpdateCollectionDto }) => {\n await Collections.v1.update(id, data);\n },\n ...options,\n });\n\nexport const useDeleteCollectionMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Collections.v1.remove(id);\n },\n ...options,\n });\n\nexport const useRemoveEventFromCollectionsMutation = (\n options?: MutationOptions<void, { eventId: string }>,\n) =>\n useMutation({\n mutationFn: async ({ eventId }: { eventId: string }) => {\n await Collections.v1.removeEvent(eventId);\n },\n ...options,\n });\n\ntype SaveEventVariables = { id: string; eventId: string; data: UpdateCollectionDto };\ntype SaveEventContext = {\n previousLists: Array<[readonly unknown[], Page<Event> | undefined]>;\n previousDetail: Event | undefined;\n};\n\nexport const useSaveEventMutation = (\n options?: MutationOptions<void, SaveEventVariables>,\n) => {\n const queryClient = useQueryClient();\n const { onMutate, onError, onSettled, ...restOptions } = options ?? {};\n\n return useMutation<void, Error, SaveEventVariables, SaveEventContext>({\n mutationFn: async ({ id, data }) => {\n await Collections.v1.update(id, data);\n },\n onMutate: async (variables, mutationContext) => {\n const { eventId } = variables;\n const listKey = [...EVENTHR_QUERY_KEYS.events.all, 'list'];\n\n await queryClient.cancelQueries({ queryKey: EVENTHR_QUERY_KEYS.events.all });\n\n const previousLists = queryClient.getQueriesData<Page<Event>>({ queryKey: listKey });\n\n queryClient.setQueriesData<Page<Event>>({ queryKey: listKey }, (oldData) => {\n if (!oldData) return oldData;\n return {\n ...oldData,\n content: oldData.content.map((event) =>\n event.id === eventId ? { ...event, isSaved: !event.isSaved } : event,\n ),\n };\n });\n\n const detailKey = EVENTHR_QUERY_KEYS.events.detail(eventId);\n const previousDetail = queryClient.getQueryData<Event>(detailKey);\n if (previousDetail) {\n queryClient.setQueryData<Event>(detailKey, { ...previousDetail, isSaved: !previousDetail.isSaved });\n }\n\n await onMutate?.(variables, mutationContext);\n\n return { previousLists, previousDetail };\n },\n onError: (error, variables, onMutateResult, mutationContext) => {\n onMutateResult?.previousLists.forEach(([queryKey, data]) => {\n queryClient.setQueryData(queryKey, data);\n });\n if (onMutateResult?.previousDetail) {\n queryClient.setQueryData(\n EVENTHR_QUERY_KEYS.events.detail(variables.eventId),\n onMutateResult.previousDetail,\n );\n }\n onError?.(error, variables, onMutateResult, mutationContext);\n },\n onSettled: (data, error, variables, onMutateResult, mutationContext) => {\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n onSettled?.(data, error, variables, onMutateResult, mutationContext);\n },\n ...restOptions,\n });\n};\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateCollectionsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.collections.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, PageRequest, QueryOptions } from '@/api/common/types';\nimport type { CreateUserDto, CreateOrganizerUserDto, EditUserDto, User } from './v1';\nimport Users from './index';\n\n\n\nexport const useGetUsersQuery = (\n params?: PageRequest,\n options?: QueryOptions<Page<User>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.list(params),\n queryFn: async () => {\n const response = await Users.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetProfileQuery = (\n options?: QueryOptions<User>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.users.profile(),\n queryFn: async () => {\n const response = await Users.v1.getProfile();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateUserMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.create(data);\n },\n ...options,\n });\n\nexport const useEditUserMutation = (\n options?: MutationOptions<void, { id: string; data: EditUserDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: EditUserDto }) => {\n await Users.v1.edit(id, data);\n },\n ...options,\n });\n\nexport const useCreateOrganizerMutation = (\n options?: MutationOptions<void, CreateOrganizerUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOrganizerUserDto) => {\n await Users.v1.createOrganizer(data);\n },\n ...options,\n });\n\nexport const useCreateSubOrganizerMutation = (\n options?: MutationOptions<void, CreateUserDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateUserDto) => {\n await Users.v1.createSubOrganizer(data);\n },\n ...options,\n });\n\nexport const useVerifyUserMutation = (\n options?: MutationOptions<void, { userId: string }>,\n) =>\n useMutation({\n mutationFn: async ({ userId }: { userId: string }) => {\n await Users.v1.verify(userId);\n },\n ...options,\n });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { UploadedFile } from './v1';\nimport Files from './index';\n\nexport const useUploadFileMutation = (\n options?: MutationOptions<UploadedFile, File>,\n) =>\n useMutation({\n mutationFn: async (file: File) => {\n const response = await Files.v1.upload(file);\n return response.data;\n },\n ...options,\n });\n\nexport const useDeleteFileMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await Files.v1.remove(id);\n },\n ...options,\n });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, QueryOptions } from '@/api/common/types';\nimport type { CreateOnboardingDto, Onboarding, UpdateOnboardingDto } from './v1';\nimport Onboardings from './index';\n\n\n\nexport const useGetOnboardingQuery = (\n options?: QueryOptions<Onboarding>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.onboardings.detail(),\n queryFn: async () => {\n const response = await Onboardings.v1.getByUser();\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateOnboardingMutation = (\n options?: MutationOptions<Onboarding, CreateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateOnboardingDto) => {\n const response = await Onboardings.v1.create(data);\n return response.data;\n },\n ...options,\n });\n\nexport const useUpdateOnboardingMutation = (\n options?: MutationOptions<Onboarding, UpdateOnboardingDto>,\n) =>\n useMutation({\n mutationFn: async (data: UpdateOnboardingDto) => {\n const response = await Onboardings.v1.update(data);\n return response.data;\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateOnboardingsCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.onboardings.all });\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\nimport type { CreateEventAttendanceDto, EventAttendance, GetEventAttendancesParams } from './v1';\nimport EventAttendances from './index';\n\n\n\nexport const useGetEventAttendancesQuery = (\n params?: GetEventAttendancesParams,\n options?: QueryOptions<Page<EventAttendance>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.eventAttendances.list(params),\n queryFn: async () => {\n const response = await EventAttendances.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useCreateEventAttendanceMutation = (\n options?: MutationOptions<void, CreateEventAttendanceDto>,\n) =>\n useMutation({\n mutationFn: async (data: CreateEventAttendanceDto) => {\n await EventAttendances.v1.create(data);\n },\n ...options,\n });\n\nexport const useDeleteEventAttendanceMutation = (\n options?: MutationOptions<void, { id: string }>,\n) =>\n useMutation({\n mutationFn: async ({ id }: { id: string }) => {\n await EventAttendances.v1.remove(id);\n },\n ...options,\n });\n","import { queryClient } from '@/query-client';\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\n\nexport const invalidateEventAttendancesCache = (): Promise<void> =>\n queryClient.invalidateQueries({ queryKey: EVENTHR_QUERY_KEYS.eventAttendances.all });\n","import { useMutation } from '@tanstack/react-query';\n\nimport type { MutationOptions } from '@/api/common/types';\nimport type { ChangeForgotPasswordDto, ForgotPasswordCreateDto } from './v1';\nimport ForgotPassword from './index';\n\n\n\nexport const useCreateForgotPasswordMutation = (\n options?: MutationOptions<void, ForgotPasswordCreateDto>,\n) =>\n useMutation({\n mutationFn: async (data: ForgotPasswordCreateDto) => {\n await ForgotPassword.v1.create(data);\n },\n ...options,\n });\n\nexport const useChangePasswordMutation = (\n options?: MutationOptions<void, { id: string; data: ChangeForgotPasswordDto }>,\n) =>\n useMutation({\n mutationFn: async ({ id, data }: { id: string; data: ChangeForgotPasswordDto }) => {\n await ForgotPassword.v1.changePassword(id, data);\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { Country, GetCountriesParams } from './v1';\nimport Countries from './index';\n\n\n\nexport const useGetCountriesQuery = (\n params?: GetCountriesParams,\n options?: QueryOptions<Page<Country>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.list(params),\n queryFn: async () => {\n const response = await Countries.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountryByIdQuery = (\n id: string,\n options?: QueryOptions<Country>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.countries.detail(id),\n queryFn: async () => {\n const response = await Countries.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { County, GetCountiesParams } from './v1';\nimport Counties from './index';\n\n\n\nexport const useGetCountiesQuery = (\n params?: GetCountiesParams,\n options?: QueryOptions<Page<County>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.list(params),\n queryFn: async () => {\n const response = await Counties.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCountyByIdQuery = (\n id: string,\n options?: QueryOptions<County>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.counties.detail(id),\n queryFn: async () => {\n const response = await Counties.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n","import { useQuery } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { Page, QueryOptions } from '@/api/common/types';\nimport type { City, GetCitiesParams } from './v1';\nimport Cities from './index';\n\n\n\nexport const useGetCitiesQuery = (\n params?: GetCitiesParams,\n options?: QueryOptions<Page<City>>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.list(params),\n queryFn: async () => {\n const response = await Cities.v1.getAll(params);\n return response.data;\n },\n ...options,\n });\n\nexport const useGetCityByIdQuery = (\n id: string,\n options?: QueryOptions<City>,\n) =>\n useQuery({\n queryKey: EVENTHR_QUERY_KEYS.cities.detail(id),\n queryFn: async () => {\n const response = await Cities.v1.getById(id);\n return response.data;\n },\n ...options,\n });\n"],"names":["instance","axios","setBaseUrl","url","setHeaders","headers","removeHeader","key","addRequestInterceptor","onFulfilled","onRejected","removeRequestInterceptor","id","HttpClient","_args","EventsClient","params","data","v1","Events","AuthClient","Auth","CategoriesClient","Categories","CollectionsClient","eventId","Collections","UsersClient","userId","Users","FilesClient","file","formData","Files","OnboardingsClient","Onboardings","EventAttendancesClient","EventAttendances","ForgotPasswordClient","ForgotPassword","CountriesClient","Countries","CountiesClient","Counties","CitiesClient","Cities","EventhrHttpClient","baseUrl","EventhrHttp","EVENTHR_QUERY_KEYS","useGetEventsQuery","options","useQuery","useGetEventByIdQuery","useCreateEventMutation","useMutation","useUpdateEventMutation","useDeleteEventMutation","queryClient","QueryClient","invalidateEventsCache","useLoginMutation","useSocialAuthMutation","useRefreshTokenMutation","useGetCategoriesQuery","useCreateCategoryMutation","useUpdateCategoryMutation","useDeleteCategoryMutation","invalidateCategoriesCache","useGetCollectionsQuery","useGetCollectionByIdQuery","useCreateCollectionMutation","useUpdateCollectionMutation","useDeleteCollectionMutation","useRemoveEventFromCollectionsMutation","useSaveEventMutation","useQueryClient","onMutate","onError","onSettled","restOptions","variables","mutationContext","listKey","previousLists","oldData","event","detailKey","previousDetail","error","onMutateResult","queryKey","invalidateCollectionsCache","useGetUsersQuery","useGetProfileQuery","useCreateUserMutation","useEditUserMutation","useCreateOrganizerMutation","useCreateSubOrganizerMutation","useVerifyUserMutation","useUploadFileMutation","useDeleteFileMutation","useGetOnboardingQuery","useCreateOnboardingMutation","useUpdateOnboardingMutation","invalidateOnboardingsCache","useGetEventAttendancesQuery","useCreateEventAttendanceMutation","useDeleteEventAttendanceMutation","invalidateEventAttendancesCache","useCreateForgotPasswordMutation","useChangePasswordMutation","useGetCountriesQuery","useGetCountryByIdQuery","useGetCountiesQuery","useGetCountyByIdQuery","useGetCitiesQuery","useGetCityByIdQuery"],"mappings":";;AAEA,MAAMA,IAA0BC,EAAM,OAAO;AAAA,EAC3C,SAAS;AAAA,EACT,SAAS;AAAA,IACP,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GAEYC,IAAa,CAACC,MAAsB;AAC/C,EAAAH,EAAS,SAAS,UAAUG;AAC9B,GAEaC,IAAa,CAACC,MAA0C;AACnE,SAAO,OAAOL,EAAS,SAAS,QAAQ,QAAQK,CAAO;AACzD,GAEaC,IAAe,CAACC,MAAsB;AACjD,SAA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aACU,MAAM6B,EAAO,GAAG,OAAO7B,CAAM,GAC9B;AAAA,EAElB,GAAGmC;AACL,CAAC,GAEUkE,KAAsB,CACjCzG,GACAuC,MAEAC,EAAS;AAAA,EACP,UAAUH,EAAmB,OAAO,OAAOrC,CAAE;AAAA,EAC7C,SAAS,aACU,MAAMiC,EAAO,GAAG,QAAQjC,CAAE,GAC3B;AAAA,EAElB,GAAGuC;AACL,CAAC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eventhr-http-client",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Configurable HTTP client for the EventHR API",
5
5
  "type": "module",
6
6
  "exports": {