eventhr-http-client 0.1.1 → 0.2.0

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/README.md CHANGED
@@ -220,10 +220,12 @@ await EventhrHttp.Users.v1.edit(userId, {
220
220
 
221
221
  ### Auth
222
222
  - `login(data: LoginDto)` - Authenticate user
223
+ - `social(data: SocialAuthDto)` - Authenticate with social provider (Google/Facebook)
223
224
  - `refresh(data: RefreshTokenDto)` - Refresh access token
224
225
 
225
226
  ### Events
226
227
  - `getAll(params?: GetEventsParams)` - Get paginated events with filters
228
+ - `getById(id: string)` - Get event by ID
227
229
  - `create(data: CreateEventDto)` - Create new event
228
230
  - `update(id: string, data: UpdateEventDto)` - Update event
229
231
  - `remove(id: string)` - Delete event
@@ -249,8 +251,37 @@ await EventhrHttp.Users.v1.edit(userId, {
249
251
  - `getAll(params?: PageRequest)` - Get paginated users
250
252
  - `getProfile()` - Get current user profile
251
253
  - `create(data: CreateUserDto)` - Create user
254
+ - `createOrganizer(data: CreateOrganizerUserDto)` - Create organizer user
255
+ - `createSubOrganizer(data: CreateUserDto)` - Create sub-organizer user
256
+ - `verify(userId: string)` - Verify user
252
257
  - `edit(id: string, data: EditUserDto)` - Edit user
253
258
 
259
+ ### Onboardings
260
+ - `getByUser()` - Get current user's onboarding
261
+ - `create(data: CreateOnboardingDto)` - Create onboarding
262
+ - `update(data: UpdateOnboardingDto)` - Update onboarding
263
+
264
+ ### Event Attendances
265
+ - `getAll(params?: GetEventAttendancesParams)` - Get paginated event attendances
266
+ - `create(data: CreateEventAttendanceDto)` - Create event attendance
267
+ - `remove(id: string)` - Delete event attendance
268
+
269
+ ### Forgot Password
270
+ - `create(data: ForgotPasswordCreateDto)` - Request password reset
271
+ - `changePassword(id: string, data: ChangeForgotPasswordDto)` - Change password with reset token
272
+
273
+ ### Countries
274
+ - `getAll(params?: GetCountriesParams)` - Get paginated countries
275
+ - `getById(id: string)` - Get country by ID
276
+
277
+ ### Counties
278
+ - `getAll(params?: GetCountiesParams)` - Get paginated counties
279
+ - `getById(id: string)` - Get county by ID
280
+
281
+ ### Cities
282
+ - `getAll(params?: GetCitiesParams)` - Get paginated cities
283
+ - `getById(id: string)` - Get city by ID
284
+
254
285
  ## Configuration
255
286
 
256
287
  ### Base URL
package/lib/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("axios"),s=require("@tanstack/react-query"),i=w.create({baseURL:"",headers:{"Content-Type":"application/json"}}),h=t=>{i.defaults.baseURL=t},y=t=>{Object.assign(i.defaults.headers.common,t)},g=t=>{delete i.defaults.headers.common[t]},m=(t,e)=>i.interceptors.request.use(t,e),C=t=>{i.interceptors.request.eject(t)};class r{constructor(){this.client=i}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 E extends r{constructor(){super(...arguments),this.endpoint="api/v1/events"}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 F=new E,u={v1:F};class f extends r{constructor(){super(...arguments),this.endpoint="api/v1/authentication/user"}login(e){return this.client.post(this.endpoint,e)}refresh(e){return this.client.post(`${this.endpoint}/refresh`,e)}}const $=new f,d={v1:$};class q 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 Q=new q,l={v1:Q};class U 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}`)}}const A=new U,a={v1:A};class G 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)}edit(e,n){return this.client.put(`${this.endpoint}/${e}`,n)}}const H=new G,c={v1:H};class R 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 K=new R,p={v1:K};class M{constructor(){this.Auth=d,this.Events=u,this.Categories=l,this.Collections=a,this.Users=c,this.Files=p}configure({baseUrl:e,headers:n}){e!==void 0&&h(e),n!==void 0&&y(n)}removeHeader(e){g(e)}addInterceptor(e,n){return m(e,n)}removeInterceptor(e){C(e)}}const _=new M,o={events:{all:["events"],list:t=>[...o.events.all,"list",t]},categories:{all:["categories"],list:t=>[...o.categories.all,"list",t]},collections:{all:["collections"],list:t=>[...o.collections.all,"list",t],detail:t=>[...o.collections.all,"detail",t]},users:{all:["users"],list:t=>[...o.users.all,"list",t],profile:()=>[...o.users.all,"profile"]},files:{all:["files"]}},D=(t,e)=>s.useQuery({queryKey:o.events.list(t),queryFn:async()=>(await u.v1.getAll(t)).data,...e}),I=t=>s.useMutation({mutationFn:async e=>{await u.v1.create(e)},...t}),T=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await u.v1.update(e,n)},...t}),x=t=>s.useMutation({mutationFn:async({id:e})=>{await u.v1.remove(e)},...t}),v=new s.QueryClient({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0},mutations:{retry:0}}}),B=()=>v.invalidateQueries({queryKey:o.events.all}),P=t=>s.useMutation({mutationFn:async e=>(await d.v1.login(e)).data,...t}),b=t=>s.useMutation({mutationFn:async e=>(await d.v1.refresh(e)).data,...t}),j=(t,e)=>s.useQuery({queryKey:o.categories.list(t),queryFn:async()=>(await l.v1.getAll(t)).data,...e}),L=t=>s.useMutation({mutationFn:async e=>{await l.v1.create(e)},...t}),O=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await l.v1.update(e,n)},...t}),S=t=>s.useMutation({mutationFn:async({id:e})=>{await l.v1.remove(e)},...t}),Y=()=>v.invalidateQueries({queryKey:o.categories.all}),k=(t,e)=>s.useQuery({queryKey:o.collections.list(t),queryFn:async()=>(await a.v1.getAll(t)).data,...e}),N=(t,e)=>s.useQuery({queryKey:o.collections.detail(t),queryFn:async()=>(await a.v1.getById(t)).data,...e}),V=t=>s.useMutation({mutationFn:async e=>{await a.v1.create(e)},...t}),W=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await a.v1.update(e,n)},...t}),z=t=>s.useMutation({mutationFn:async({id:e})=>{await a.v1.remove(e)},...t}),J=()=>v.invalidateQueries({queryKey:o.collections.all}),X=(t,e)=>s.useQuery({queryKey:o.users.list(t),queryFn:async()=>(await c.v1.getAll(t)).data,...e}),Z=t=>s.useQuery({queryKey:o.users.profile(),queryFn:async()=>(await c.v1.getProfile()).data,...t}),ee=t=>s.useMutation({mutationFn:async e=>{await c.v1.create(e)},...t}),te=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await c.v1.edit(e,n)},...t}),ne=t=>s.useMutation({mutationFn:async e=>(await p.v1.upload(e)).data,...t}),se=t=>s.useMutation({mutationFn:async({id:e})=>{await p.v1.remove(e)},...t});exports.Auth=d;exports.Categories=l;exports.Collections=a;exports.EVENTHR_QUERY_KEYS=o;exports.EventhrHttpClient=M;exports.Events=u;exports.Files=p;exports.HttpClient=r;exports.Users=c;exports.addRequestInterceptor=m;exports.default=_;exports.instance=i;exports.invalidateCategoriesCache=Y;exports.invalidateCollectionsCache=J;exports.invalidateEventsCache=B;exports.queryClient=v;exports.removeHeader=g;exports.removeRequestInterceptor=C;exports.setBaseUrl=h;exports.setHeaders=y;exports.useCreateCategoryMutation=L;exports.useCreateCollectionMutation=V;exports.useCreateEventMutation=I;exports.useCreateUserMutation=ee;exports.useDeleteCategoryMutation=S;exports.useDeleteCollectionMutation=z;exports.useDeleteEventMutation=x;exports.useDeleteFileMutation=se;exports.useEditUserMutation=te;exports.useGetCategoriesQuery=j;exports.useGetCollectionByIdQuery=N;exports.useGetCollectionsQuery=k;exports.useGetEventsQuery=D;exports.useGetProfileQuery=Z;exports.useGetUsersQuery=X;exports.useLoginMutation=P;exports.useRefreshTokenMutation=b;exports.useUpdateCategoryMutation=O;exports.useUpdateCollectionMutation=W;exports.useUpdateEventMutation=T;exports.useUploadFileMutation=ne;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("axios"),s=require("@tanstack/react-query"),r=A.create({baseURL:"",headers:{"Content-Type":"application/json"}}),m=t=>{r.defaults.baseURL=t},F=t=>{Object.assign(r.defaults.headers.common,t)},Q=t=>{delete r.defaults.headers.common[t]},$=(t,e)=>r.interceptors.request.use(t,e),q=t=>{r.interceptors.request.eject(t)};class o{constructor(){this.client=r}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 f extends o{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 G=new f,u={v1:G};class U extends o{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 b=new U,y={v1:b};class I extends o{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 B=new I,l={v1:B};class O extends o{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 K=new O,c={v1:K};class P extends o{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 x=new P,a={v1:x};class D extends o{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 H=new D,h={v1:H};class R extends o{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 _=new R,p={v1:_};class z extends o{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 S=new z,v={v1:S};class T extends o{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 j=new T,g={v1:j};class L extends o{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 V=new L,C={v1:V};class Y extends o{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 k=new Y,w={v1:k};class N extends o{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 W=new N,M={v1:W};class E{constructor(){this.Auth=y,this.Events=u,this.Categories=l,this.Collections=c,this.Users=a,this.Files=h,this.Onboardings=p,this.EventAttendances=v,this.ForgotPassword=g,this.Countries=C,this.Counties=w,this.Cities=M}configure({baseUrl:e,headers:n}){e!==void 0&&m(e),n!==void 0&&F(n)}removeHeader(e){Q(e)}addInterceptor(e,n){return $(e,n)}removeInterceptor(e){q(e)}}const J=new E,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]}},X=(t,e)=>s.useQuery({queryKey:i.events.list(t),queryFn:async()=>(await u.v1.getAll(t)).data,...e}),Z=(t,e)=>s.useQuery({queryKey:i.events.detail(t),queryFn:async()=>(await u.v1.getById(t)).data,...e}),ee=t=>s.useMutation({mutationFn:async e=>{await u.v1.create(e)},...t}),te=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await u.v1.update(e,n)},...t}),ne=t=>s.useMutation({mutationFn:async({id:e})=>{await u.v1.remove(e)},...t}),d=new s.QueryClient({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0},mutations:{retry:0}}}),se=()=>d.invalidateQueries({queryKey:i.events.all}),ie=t=>s.useMutation({mutationFn:async e=>(await y.v1.login(e)).data,...t}),oe=t=>s.useMutation({mutationFn:async e=>(await y.v1.social(e)).data,...t}),ae=t=>s.useMutation({mutationFn:async e=>(await y.v1.refresh(e)).data,...t}),re=(t,e)=>s.useQuery({queryKey:i.categories.list(t),queryFn:async()=>(await l.v1.getAll(t)).data,...e}),ue=t=>s.useMutation({mutationFn:async e=>{await l.v1.create(e)},...t}),ce=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await l.v1.update(e,n)},...t}),le=t=>s.useMutation({mutationFn:async({id:e})=>{await l.v1.remove(e)},...t}),de=()=>d.invalidateQueries({queryKey:i.categories.all}),ye=(t,e)=>s.useQuery({queryKey:i.collections.list(t),queryFn:async()=>(await c.v1.getAll(t)).data,...e}),pe=(t,e)=>s.useQuery({queryKey:i.collections.detail(t),queryFn:async()=>(await c.v1.getById(t)).data,...e}),ve=t=>s.useMutation({mutationFn:async e=>{await c.v1.create(e)},...t}),he=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await c.v1.update(e,n)},...t}),ge=t=>s.useMutation({mutationFn:async({id:e})=>{await c.v1.remove(e)},...t}),Ce=()=>d.invalidateQueries({queryKey:i.collections.all}),we=(t,e)=>s.useQuery({queryKey:i.users.list(t),queryFn:async()=>(await a.v1.getAll(t)).data,...e}),Me=t=>s.useQuery({queryKey:i.users.profile(),queryFn:async()=>(await a.v1.getProfile()).data,...t}),me=t=>s.useMutation({mutationFn:async e=>{await a.v1.create(e)},...t}),Fe=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await a.v1.edit(e,n)},...t}),Qe=t=>s.useMutation({mutationFn:async e=>{await a.v1.createOrganizer(e)},...t}),$e=t=>s.useMutation({mutationFn:async e=>{await a.v1.createSubOrganizer(e)},...t}),qe=t=>s.useMutation({mutationFn:async({userId:e})=>{await a.v1.verify(e)},...t}),Ee=t=>s.useMutation({mutationFn:async e=>(await h.v1.upload(e)).data,...t}),Ae=t=>s.useMutation({mutationFn:async({id:e})=>{await h.v1.remove(e)},...t}),fe=t=>s.useQuery({queryKey:i.onboardings.detail(),queryFn:async()=>(await p.v1.getByUser()).data,...t}),Ge=t=>s.useMutation({mutationFn:async e=>(await p.v1.create(e)).data,...t}),Ue=t=>s.useMutation({mutationFn:async e=>(await p.v1.update(e)).data,...t}),be=()=>d.invalidateQueries({queryKey:i.onboardings.all}),Ie=(t,e)=>s.useQuery({queryKey:i.eventAttendances.list(t),queryFn:async()=>(await v.v1.getAll(t)).data,...e}),Be=t=>s.useMutation({mutationFn:async e=>{await v.v1.create(e)},...t}),Oe=t=>s.useMutation({mutationFn:async({id:e})=>{await v.v1.remove(e)},...t}),Ke=()=>d.invalidateQueries({queryKey:i.eventAttendances.all}),Pe=t=>s.useMutation({mutationFn:async e=>{await g.v1.create(e)},...t}),xe=t=>s.useMutation({mutationFn:async({id:e,data:n})=>{await g.v1.changePassword(e,n)},...t}),De=(t,e)=>s.useQuery({queryKey:i.countries.list(t),queryFn:async()=>(await C.v1.getAll(t)).data,...e}),He=(t,e)=>s.useQuery({queryKey:i.countries.detail(t),queryFn:async()=>(await C.v1.getById(t)).data,...e}),Re=(t,e)=>s.useQuery({queryKey:i.counties.list(t),queryFn:async()=>(await w.v1.getAll(t)).data,...e}),_e=(t,e)=>s.useQuery({queryKey:i.counties.detail(t),queryFn:async()=>(await w.v1.getById(t)).data,...e}),ze=(t,e)=>s.useQuery({queryKey:i.cities.list(t),queryFn:async()=>(await M.v1.getAll(t)).data,...e}),Se=(t,e)=>s.useQuery({queryKey:i.cities.detail(t),queryFn:async()=>(await M.v1.getById(t)).data,...e});exports.Auth=y;exports.Categories=l;exports.Cities=M;exports.Collections=c;exports.Counties=w;exports.Countries=C;exports.EVENTHR_QUERY_KEYS=i;exports.EventAttendances=v;exports.EventhrHttpClient=E;exports.Events=u;exports.Files=h;exports.ForgotPassword=g;exports.HttpClient=o;exports.Onboardings=p;exports.Users=a;exports.addRequestInterceptor=$;exports.default=J;exports.instance=r;exports.invalidateCategoriesCache=de;exports.invalidateCollectionsCache=Ce;exports.invalidateEventAttendancesCache=Ke;exports.invalidateEventsCache=se;exports.invalidateOnboardingsCache=be;exports.queryClient=d;exports.removeHeader=Q;exports.removeRequestInterceptor=q;exports.setBaseUrl=m;exports.setHeaders=F;exports.useChangePasswordMutation=xe;exports.useCreateCategoryMutation=ue;exports.useCreateCollectionMutation=ve;exports.useCreateEventAttendanceMutation=Be;exports.useCreateEventMutation=ee;exports.useCreateForgotPasswordMutation=Pe;exports.useCreateOnboardingMutation=Ge;exports.useCreateOrganizerMutation=Qe;exports.useCreateSubOrganizerMutation=$e;exports.useCreateUserMutation=me;exports.useDeleteCategoryMutation=le;exports.useDeleteCollectionMutation=ge;exports.useDeleteEventAttendanceMutation=Oe;exports.useDeleteEventMutation=ne;exports.useDeleteFileMutation=Ae;exports.useEditUserMutation=Fe;exports.useGetCategoriesQuery=re;exports.useGetCitiesQuery=ze;exports.useGetCityByIdQuery=Se;exports.useGetCollectionByIdQuery=pe;exports.useGetCollectionsQuery=ye;exports.useGetCountiesQuery=Re;exports.useGetCountriesQuery=De;exports.useGetCountryByIdQuery=He;exports.useGetCountyByIdQuery=_e;exports.useGetEventAttendancesQuery=Ie;exports.useGetEventByIdQuery=Z;exports.useGetEventsQuery=X;exports.useGetOnboardingQuery=fe;exports.useGetProfileQuery=Me;exports.useGetUsersQuery=we;exports.useLoginMutation=ie;exports.useRefreshTokenMutation=ae;exports.useSocialAuthMutation=oe;exports.useUpdateCategoryMutation=ce;exports.useUpdateCollectionMutation=he;exports.useUpdateEventMutation=te;exports.useUpdateOnboardingMutation=Ue;exports.useUploadFileMutation=Ee;exports.useVerifyUserMutation=qe;
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/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"],"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 { PageRequest, Page } from '@/api/common/types';\n\n\nexport interface EventAddress {\n city: string;\n address: string;\n postalCode?: string;\n locationName?: string;\n}\n\nexport interface EventCoordinates {\n latitude: number;\n longitude: number;\n}\n\nexport interface EventOrganizer {\n id: string;\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: EventCoordinates;\n price?: number;\n capacity?: number;\n organizer: EventOrganizer;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateEventDto {\n name: string;\n description?: string;\n startAt: string;\n endAt: string;\n address: EventAddress;\n coordinates: EventCoordinates;\n price?: number;\n capacity?: number;\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 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 EventCoordinates,\n EventOrganizer,\n CreateEventDto,\n UpdateEventDto,\n GetEventsParams,\n} from './v1';\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\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 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 } 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 { PageRequest, Page } from '@/api/common/types';\n\nexport interface EventVo {\n id: string;\n name: string;\n}\n\nexport interface Collection {\n id: string;\n name: string;\n customer: {\n id: string;\n };\n events: EventVo[];\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 EventVo,\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 interface User {\n id: string;\n name: string;\n username: string;\n imageId?: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateUserDto {\n name: string;\n username: string;\n password: string;\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 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, CreateUserDto, 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 { 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';\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\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 { 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 },\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} 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\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 } 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 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 } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\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","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, 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","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"],"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","Users","FilesClient","file","formData","Files","EventhrHttpClient","baseUrl","EventhrHttp","EVENTHR_QUERY_KEYS","useGetEventsQuery","options","useQuery","useCreateEventMutation","useMutation","useUpdateEventMutation","useDeleteEventMutation","queryClient","QueryClient","invalidateEventsCache","useLoginMutation","useRefreshTokenMutation","useGetCategoriesQuery","useCreateCategoryMutation","useUpdateCategoryMutation","useDeleteCategoryMutation","invalidateCategoriesCache","useGetCollectionsQuery","useGetCollectionByIdQuery","useCreateCollectionMutation","useUpdateCollectionMutation","useDeleteCollectionMutation","invalidateCollectionsCache","useGetUsersQuery","useGetProfileQuery","useCreateUserMutation","useEditUserMutation","useUploadFileMutation","useDeleteFileMutation"],"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,CAAE,CACxC,EC1BO,MAAeC,CAAW,CAA1B,aAAA,CAGL,KAAS,OAASb,CAAA,CAElB,QAAQc,EAAoC,CAC1C,MAAM,IAAI,MAAM,6BAA6B,KAAK,YAAY,IAAI,EAAE,CACtE,CAEA,OAAOA,EAAoC,CACzC,MAAM,IAAI,MAAM,4BAA4B,KAAK,YAAY,IAAI,EAAE,CACrE,CAEA,UAAUA,EAAoC,CAC5C,MAAM,IAAI,MAAM,+BAA+B,KAAK,YAAY,IAAI,EAAE,CACxE,CAEA,UAAUA,EAAoC,CAC5C,MAAM,IAAI,MAAM,+BAA+B,KAAK,YAAY,IAAI,EAAE,CACxE,CAEA,UAAUA,EAAoC,CAC5C,MAAM,IAAI,MAAM,+BAA+B,KAAK,YAAY,IAAI,EAAE,CACxE,CACF,CCgCA,MAAMC,UAAqBF,CAAW,CAAtC,aAAA,CAAA,MAAA,GAAA,SAAA,EACE,KAAA,SAAW,eAAA,CAEX,OAAOG,EAA0B,CAC/B,OAAO,KAAK,OAAO,IAAiB,KAAK,SAAU,CAAE,OAAAA,EAAQ,CAC/D,CAEA,OAAOC,EAAsB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B,EACXpB,GAEAG,cAAY,CACV,WAAY,MAAO,CAAE,GAAA5B,KAAyB,CAC5C,MAAMa,EAAY,GAAG,OAAOb,CAAE,CAChC,EACA,GAAGyB,CACL,CAAC,EC5DUqB,EAA6B,IACxCf,EAAY,kBAAkB,CAAE,SAAUR,EAAmB,YAAY,GAAA,CAAK,ECKnEwB,EAAmB,CAC9B3C,EACAqB,IAEAC,WAAS,CACP,SAAUH,EAAmB,MAAM,KAAKnB,CAAM,EAC9C,QAAS,UACU,MAAMW,EAAM,GAAG,OAAOX,CAAM,GAC7B,KAElB,GAAGqB,CACL,CAAC,EAEUuB,EACXvB,GAEAC,WAAS,CACP,SAAUH,EAAmB,MAAM,QAAA,EACnC,QAAS,UACU,MAAMR,EAAM,GAAG,WAAA,GAChB,KAElB,GAAGU,CACL,CAAC,EAEUwB,GACXxB,GAEAG,cAAY,CACV,WAAY,MAAOvB,GAAwB,CACzC,MAAMU,EAAM,GAAG,OAAOV,CAAI,CAC5B,EACA,GAAGoB,CACL,CAAC,EAEUyB,GACXzB,GAEAG,cAAY,CACV,WAAY,MAAO,CAAE,GAAA5B,EAAI,KAAAK,KAA8C,CACrE,MAAMU,EAAM,GAAG,KAAKf,EAAIK,CAAI,CAC9B,EACA,GAAGoB,CACL,CAAC,EC9CU0B,GACX1B,GAEAG,cAAY,CACV,WAAY,MAAOX,IACA,MAAME,EAAM,GAAG,OAAOF,CAAI,GAC3B,KAElB,GAAGQ,CACL,CAAC,EAEU2B,GACX3B,GAEAG,cAAY,CACV,WAAY,MAAO,CAAE,GAAA5B,KAAyB,CAC5C,MAAMmB,EAAM,GAAG,OAAOnB,CAAE,CAC1B,EACA,GAAGyB,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 isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface SubEventDto {\n id?: string;\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}\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 subEvents?: SubEvent[];\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\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 subEvents?: SubEventDto[];\n features?: EventFeature[];\n categoryId: string;\n subOrganizerId?: 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 SubEventDto,\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 } from '@tanstack/react-query';\n\nimport { EVENTHR_QUERY_KEYS } from '@/api/eventhrKeys';\nimport type { MutationOptions, Page, QueryOptions } from '@/api/common/types';\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","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","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,CAAE,CACxC,EC1BO,MAAeC,CAAW,CAA1B,aAAA,CAGL,KAAS,OAASb,CAAA,CAElB,QAAQc,EAAoC,CAC1C,MAAM,IAAI,MAAM,6BAA6B,KAAK,YAAY,IAAI,EAAE,CACtE,CAEA,OAAOA,EAAoC,CACzC,MAAM,IAAI,MAAM,4BAA4B,KAAK,YAAY,IAAI,EAAE,CACrE,CAEA,UAAUA,EAAoC,CAC5C,MAAM,IAAI,MAAM,+BAA+B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