eventhr-http-client 2.0.0 → 2.1.1

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.js CHANGED
@@ -1,22 +1,22 @@
1
- import F from "axios";
2
- import { useMutation as i, useQuery as o, QueryClient as q } from "@tanstack/react-query";
3
- const c = F.create({
1
+ import M from "axios";
2
+ import { useMutation as i, useQuery as r, QueryClient as G, useQueryClient as x } from "@tanstack/react-query";
3
+ const y = M.create({
4
4
  baseURL: "",
5
5
  headers: {
6
6
  "Content-Type": "application/json"
7
7
  }
8
- }), f = (e) => {
9
- c.defaults.baseURL = e;
10
- }, A = (e) => {
11
- Object.assign(c.defaults.headers.common, e);
12
- }, E = (e) => {
13
- delete c.defaults.headers.common[e];
14
- }, M = (e, t) => c.interceptors.request.use(e, t), Q = (e) => {
15
- c.interceptors.request.eject(e);
8
+ }), D = (e) => {
9
+ y.defaults.baseURL = e;
10
+ }, P = (e) => {
11
+ Object.assign(y.defaults.headers.common, e);
12
+ }, S = (e) => {
13
+ delete y.defaults.headers.common[e];
14
+ }, z = (e, t) => y.interceptors.request.use(e, t), H = (e) => {
15
+ y.interceptors.request.eject(e);
16
16
  };
17
- class r {
17
+ class a {
18
18
  constructor() {
19
- this.client = c;
19
+ this.client = y;
20
20
  }
21
21
  list(...t) {
22
22
  throw new Error(`list() not implemented on ${this.constructor.name}`);
@@ -34,7 +34,7 @@ class r {
34
34
  throw new Error(`remove() not implemented on ${this.constructor.name}`);
35
35
  }
36
36
  }
37
- class K extends r {
37
+ class _ extends a {
38
38
  constructor() {
39
39
  super(...arguments), this.endpoint = "api/v1/events";
40
40
  }
@@ -54,8 +54,8 @@ class K extends r {
54
54
  return this.client.delete(`${this.endpoint}/${t}`);
55
55
  }
56
56
  }
57
- const b = new K(), u = { v1: b };
58
- class I extends r {
57
+ const L = new _(), v = { v1: L };
58
+ class T extends a {
59
59
  constructor() {
60
60
  super(...arguments), this.endpoint = "api/v1/authentication/user";
61
61
  }
@@ -69,8 +69,8 @@ class I extends r {
69
69
  return this.client.post(`${this.endpoint}/refresh`, t);
70
70
  }
71
71
  }
72
- const B = new I(), y = { v1: B };
73
- class U extends r {
72
+ const j = new T(), q = { v1: j };
73
+ class V extends a {
74
74
  constructor() {
75
75
  super(...arguments), this.endpoint = "api/v1/categories";
76
76
  }
@@ -87,8 +87,8 @@ class U extends r {
87
87
  return this.client.delete(`${this.endpoint}/${t}`);
88
88
  }
89
89
  }
90
- const O = new U(), d = { v1: O };
91
- class G extends r {
90
+ const Y = new V(), g = { v1: Y };
91
+ class k extends a {
92
92
  constructor() {
93
93
  super(...arguments), this.endpoint = "api/v1/collections";
94
94
  }
@@ -108,8 +108,8 @@ class G extends r {
108
108
  return this.client.delete(`${this.endpoint}/${t}`);
109
109
  }
110
110
  }
111
- const x = new G(), l = { v1: x };
112
- class P extends r {
111
+ const N = new k(), d = { v1: N };
112
+ class W extends a {
113
113
  constructor() {
114
114
  super(...arguments), this.endpoint = "api/v1/users";
115
115
  }
@@ -135,8 +135,8 @@ class P extends r {
135
135
  return this.client.put(`${this.endpoint}/${t}`, n);
136
136
  }
137
137
  }
138
- const z = new P(), a = { v1: z };
139
- class D extends r {
138
+ const J = new W(), l = { v1: J };
139
+ class X extends a {
140
140
  constructor() {
141
141
  super(...arguments), this.endpoint = "api/v1/files";
142
142
  }
@@ -150,8 +150,8 @@ class D extends r {
150
150
  return this.client.delete(`${this.endpoint}/${t}`);
151
151
  }
152
152
  }
153
- const H = new D(), g = { v1: H };
154
- class R extends r {
153
+ const Z = new X(), K = { v1: Z };
154
+ class R extends a {
155
155
  constructor() {
156
156
  super(...arguments), this.endpoint = "api/v1/onboardings";
157
157
  }
@@ -165,8 +165,8 @@ class R extends r {
165
165
  return this.client.put(this.endpoint, t);
166
166
  }
167
167
  }
168
- const _ = new R(), h = { v1: _ };
169
- class S extends r {
168
+ const tt = new R(), f = { v1: tt };
169
+ class et extends a {
170
170
  constructor() {
171
171
  super(...arguments), this.endpoint = "api/v1/event-attendances";
172
172
  }
@@ -180,8 +180,8 @@ class S extends r {
180
180
  return this.client.delete(`${this.endpoint}/${t}`);
181
181
  }
182
182
  }
183
- const T = new S(), v = { v1: T };
184
- class j extends r {
183
+ const nt = new et(), Q = { v1: nt };
184
+ class st extends a {
185
185
  constructor() {
186
186
  super(...arguments), this.endpoint = "api/v1/forgot-password";
187
187
  }
@@ -192,8 +192,8 @@ class j extends r {
192
192
  return this.client.patch(`${this.endpoint}/${t}/change`, n);
193
193
  }
194
194
  }
195
- const L = new j(), m = { v1: L };
196
- class V extends r {
195
+ const it = new st(), I = { v1: it };
196
+ class rt extends a {
197
197
  constructor() {
198
198
  super(...arguments), this.endpoint = "api/v1/countries";
199
199
  }
@@ -204,8 +204,8 @@ class V extends r {
204
204
  return this.client.get(`${this.endpoint}/${t}`);
205
205
  }
206
206
  }
207
- const Y = new V(), w = { v1: Y };
208
- class k extends r {
207
+ const ot = new rt(), b = { v1: ot };
208
+ class at extends a {
209
209
  constructor() {
210
210
  super(...arguments), this.endpoint = "api/v1/counties";
211
211
  }
@@ -216,8 +216,8 @@ class k extends r {
216
216
  return this.client.get(`${this.endpoint}/${t}`);
217
217
  }
218
218
  }
219
- const N = new k(), C = { v1: N };
220
- class W extends r {
219
+ const ct = new at(), B = { v1: ct };
220
+ class ut extends a {
221
221
  constructor() {
222
222
  super(...arguments), this.endpoint = "api/v1/cities";
223
223
  }
@@ -228,25 +228,25 @@ class W extends r {
228
228
  return this.client.get(`${this.endpoint}/${t}`);
229
229
  }
230
230
  }
231
- const J = new W(), $ = { v1: J };
232
- class X {
231
+ const lt = new ut(), O = { v1: lt };
232
+ class dt {
233
233
  constructor() {
234
- this.Auth = y, this.Events = u, this.Categories = d, this.Collections = l, this.Users = a, this.Files = g, this.Onboardings = h, this.EventAttendances = v, this.ForgotPassword = m, this.Countries = w, this.Counties = C, this.Cities = $;
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;
235
235
  }
236
236
  configure({ baseUrl: t, headers: n }) {
237
- t !== void 0 && f(t), n !== void 0 && A(n);
237
+ t !== void 0 && D(t), n !== void 0 && P(n);
238
238
  }
239
239
  removeHeader(t) {
240
- E(t);
240
+ S(t);
241
241
  }
242
242
  addInterceptor(t, n) {
243
- return M(t, n);
243
+ return z(t, n);
244
244
  }
245
245
  removeInterceptor(t) {
246
- Q(t);
246
+ H(t);
247
247
  }
248
248
  }
249
- const et = new X(), s = {
249
+ const vt = new dt(), s = {
250
250
  events: {
251
251
  all: ["events"],
252
252
  list: (e) => [...s.events.all, "list", e],
@@ -292,30 +292,30 @@ const et = new X(), s = {
292
292
  list: (e) => [...s.cities.all, "list", e],
293
293
  detail: (e) => [...s.cities.all, "detail", e]
294
294
  }
295
- }, nt = (e, t) => o({
295
+ }, ht = (e, t) => r({
296
296
  queryKey: s.events.list(e),
297
- queryFn: async () => (await u.v1.getAll(e)).data,
297
+ queryFn: async () => (await v.v1.getAll(e)).data,
298
298
  ...t
299
- }), st = (e, t) => o({
299
+ }), gt = (e, t) => r({
300
300
  queryKey: s.events.detail(e),
301
- queryFn: async () => (await u.v1.getById(e)).data,
301
+ queryFn: async () => (await v.v1.getById(e)).data,
302
302
  ...t
303
- }), it = (e) => i({
303
+ }), wt = (e) => i({
304
304
  mutationFn: async (t) => {
305
- await u.v1.create(t);
305
+ await v.v1.create(t);
306
306
  },
307
307
  ...e
308
- }), ot = (e) => i({
308
+ }), mt = (e) => i({
309
309
  mutationFn: async ({ id: t, data: n }) => {
310
- await u.v1.update(t, n);
310
+ await v.v1.update(t, n);
311
311
  },
312
312
  ...e
313
- }), rt = (e) => i({
313
+ }), Ct = (e) => i({
314
314
  mutationFn: async ({ id: t }) => {
315
- await u.v1.remove(t);
315
+ await v.v1.remove(t);
316
316
  },
317
317
  ...e
318
- }), p = new q({
318
+ }), w = new G({
319
319
  defaultOptions: {
320
320
  queries: {
321
321
  retry: 1,
@@ -326,225 +326,258 @@ const et = new X(), s = {
326
326
  retry: 0
327
327
  }
328
328
  }
329
- }), at = () => p.invalidateQueries({ queryKey: s.events.all }), ct = (e) => i({
330
- mutationFn: async (t) => (await y.v1.login(t)).data,
329
+ }), $t = () => w.invalidateQueries({ queryKey: s.events.all }), Ft = (e) => i({
330
+ mutationFn: async (t) => (await q.v1.login(t)).data,
331
331
  ...e
332
- }), ut = (e) => i({
333
- mutationFn: async (t) => (await y.v1.social(t)).data,
332
+ }), qt = (e) => i({
333
+ mutationFn: async (t) => (await q.v1.social(t)).data,
334
334
  ...e
335
- }), lt = (e) => i({
336
- mutationFn: async (t) => (await y.v1.refresh(t)).data,
335
+ }), ft = (e) => i({
336
+ mutationFn: async (t) => (await q.v1.refresh(t)).data,
337
337
  ...e
338
- }), dt = (e, t) => o({
338
+ }), Qt = (e, t) => r({
339
339
  queryKey: s.categories.list(e),
340
- queryFn: async () => (await d.v1.getAll(e)).data,
340
+ queryFn: async () => (await g.v1.getAll(e)).data,
341
341
  ...t
342
- }), pt = (e) => i({
342
+ }), At = (e) => i({
343
343
  mutationFn: async (t) => {
344
- await d.v1.create(t);
344
+ await g.v1.create(t);
345
345
  },
346
346
  ...e
347
- }), yt = (e) => i({
347
+ }), Et = (e) => i({
348
348
  mutationFn: async ({ id: t, data: n }) => {
349
- await d.v1.update(t, n);
349
+ await g.v1.update(t, n);
350
350
  },
351
351
  ...e
352
- }), ht = (e) => i({
352
+ }), Kt = (e) => i({
353
353
  mutationFn: async ({ id: t }) => {
354
- await d.v1.remove(t);
354
+ await g.v1.remove(t);
355
355
  },
356
356
  ...e
357
- }), vt = () => p.invalidateQueries({ queryKey: s.categories.all }), gt = (e, t) => o({
357
+ }), It = () => w.invalidateQueries({ queryKey: s.categories.all }), bt = (e, t) => r({
358
358
  queryKey: s.collections.list(e),
359
- queryFn: async () => (await l.v1.getAll(e)).data,
359
+ queryFn: async () => (await d.v1.getAll(e)).data,
360
360
  ...t
361
- }), mt = (e, t) => o({
361
+ }), Bt = (e, t) => r({
362
362
  queryKey: s.collections.detail(e),
363
- queryFn: async () => (await l.v1.getById(e)).data,
363
+ queryFn: async () => (await d.v1.getById(e)).data,
364
364
  ...t
365
- }), wt = (e) => i({
365
+ }), Ot = (e) => i({
366
366
  mutationFn: async (t) => {
367
- await l.v1.create(t);
367
+ await d.v1.create(t);
368
368
  },
369
369
  ...e
370
- }), Ct = (e) => i({
370
+ }), Ut = (e) => i({
371
371
  mutationFn: async ({ id: t, data: n }) => {
372
- await l.v1.update(t, n);
372
+ await d.v1.update(t, n);
373
373
  },
374
374
  ...e
375
- }), $t = (e) => i({
375
+ }), Mt = (e) => i({
376
376
  mutationFn: async ({ id: t }) => {
377
- await l.v1.remove(t);
377
+ await d.v1.remove(t);
378
378
  },
379
379
  ...e
380
- }), Ft = () => p.invalidateQueries({ queryKey: s.collections.all }), qt = (e, t) => o({
380
+ }), Gt = (e) => {
381
+ const t = x(), { onMutate: n, onError: A, onSettled: E, ...U } = e ?? {};
382
+ return i({
383
+ mutationFn: async ({ id: c, data: u }) => {
384
+ await d.v1.update(c, u);
385
+ },
386
+ onMutate: async (c, u) => {
387
+ const { eventId: o } = c, p = [...s.events.all, "list"];
388
+ await t.cancelQueries({ queryKey: s.events.all });
389
+ const h = t.getQueriesData({ queryKey: p });
390
+ t.setQueriesData({ queryKey: p }, ($) => $ && {
391
+ ...$,
392
+ content: $.content.map(
393
+ (F) => F.id === o ? { ...F, isSaved: !F.isSaved } : F
394
+ )
395
+ });
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 };
398
+ },
399
+ onError: (c, u, o, p) => {
400
+ o == null || o.previousLists.forEach(([h, m]) => {
401
+ t.setQueryData(h, m);
402
+ }), o != null && o.previousDetail && t.setQueryData(
403
+ s.events.detail(u.eventId),
404
+ o.previousDetail
405
+ ), A == null || A(c, u, o, p);
406
+ },
407
+ onSettled: (c, u, o, p, h) => {
408
+ t.invalidateQueries({ queryKey: s.collections.all }), E == null || E(c, u, o, p, h);
409
+ },
410
+ ...U
411
+ });
412
+ }, xt = () => w.invalidateQueries({ queryKey: s.collections.all }), Dt = (e, t) => r({
381
413
  queryKey: s.users.list(e),
382
- queryFn: async () => (await a.v1.getAll(e)).data,
414
+ queryFn: async () => (await l.v1.getAll(e)).data,
383
415
  ...t
384
- }), ft = (e) => o({
416
+ }), Pt = (e) => r({
385
417
  queryKey: s.users.profile(),
386
- queryFn: async () => (await a.v1.getProfile()).data,
418
+ queryFn: async () => (await l.v1.getProfile()).data,
387
419
  ...e
388
- }), At = (e) => i({
420
+ }), St = (e) => i({
389
421
  mutationFn: async (t) => {
390
- await a.v1.create(t);
422
+ await l.v1.create(t);
391
423
  },
392
424
  ...e
393
- }), Et = (e) => i({
425
+ }), zt = (e) => i({
394
426
  mutationFn: async ({ id: t, data: n }) => {
395
- await a.v1.edit(t, n);
427
+ await l.v1.edit(t, n);
396
428
  },
397
429
  ...e
398
- }), Mt = (e) => i({
430
+ }), Ht = (e) => i({
399
431
  mutationFn: async (t) => {
400
- await a.v1.createOrganizer(t);
432
+ await l.v1.createOrganizer(t);
401
433
  },
402
434
  ...e
403
- }), Qt = (e) => i({
435
+ }), _t = (e) => i({
404
436
  mutationFn: async (t) => {
405
- await a.v1.createSubOrganizer(t);
437
+ await l.v1.createSubOrganizer(t);
406
438
  },
407
439
  ...e
408
- }), Kt = (e) => i({
440
+ }), Lt = (e) => i({
409
441
  mutationFn: async ({ userId: t }) => {
410
- await a.v1.verify(t);
442
+ await l.v1.verify(t);
411
443
  },
412
444
  ...e
413
- }), bt = (e) => i({
414
- mutationFn: async (t) => (await g.v1.upload(t)).data,
445
+ }), Tt = (e) => i({
446
+ mutationFn: async (t) => (await K.v1.upload(t)).data,
415
447
  ...e
416
- }), It = (e) => i({
448
+ }), jt = (e) => i({
417
449
  mutationFn: async ({ id: t }) => {
418
- await g.v1.remove(t);
450
+ await K.v1.remove(t);
419
451
  },
420
452
  ...e
421
- }), Bt = (e) => o({
453
+ }), Vt = (e) => r({
422
454
  queryKey: s.onboardings.detail(),
423
- queryFn: async () => (await h.v1.getByUser()).data,
455
+ queryFn: async () => (await f.v1.getByUser()).data,
424
456
  ...e
425
- }), Ut = (e) => i({
426
- mutationFn: async (t) => (await h.v1.create(t)).data,
457
+ }), Yt = (e) => i({
458
+ mutationFn: async (t) => (await f.v1.create(t)).data,
427
459
  ...e
428
- }), Ot = (e) => i({
429
- mutationFn: async (t) => (await h.v1.update(t)).data,
460
+ }), kt = (e) => i({
461
+ mutationFn: async (t) => (await f.v1.update(t)).data,
430
462
  ...e
431
- }), Gt = () => p.invalidateQueries({ queryKey: s.onboardings.all }), xt = (e, t) => o({
463
+ }), Nt = () => w.invalidateQueries({ queryKey: s.onboardings.all }), Wt = (e, t) => r({
432
464
  queryKey: s.eventAttendances.list(e),
433
- queryFn: async () => (await v.v1.getAll(e)).data,
465
+ queryFn: async () => (await Q.v1.getAll(e)).data,
434
466
  ...t
435
- }), Pt = (e) => i({
467
+ }), Jt = (e) => i({
436
468
  mutationFn: async (t) => {
437
- await v.v1.create(t);
469
+ await Q.v1.create(t);
438
470
  },
439
471
  ...e
440
- }), zt = (e) => i({
472
+ }), Xt = (e) => i({
441
473
  mutationFn: async ({ id: t }) => {
442
- await v.v1.remove(t);
474
+ await Q.v1.remove(t);
443
475
  },
444
476
  ...e
445
- }), Dt = () => p.invalidateQueries({ queryKey: s.eventAttendances.all }), Ht = (e) => i({
477
+ }), Zt = () => w.invalidateQueries({ queryKey: s.eventAttendances.all }), Rt = (e) => i({
446
478
  mutationFn: async (t) => {
447
- await m.v1.create(t);
479
+ await I.v1.create(t);
448
480
  },
449
481
  ...e
450
- }), Rt = (e) => i({
482
+ }), te = (e) => i({
451
483
  mutationFn: async ({ id: t, data: n }) => {
452
- await m.v1.changePassword(t, n);
484
+ await I.v1.changePassword(t, n);
453
485
  },
454
486
  ...e
455
- }), _t = (e, t) => o({
487
+ }), ee = (e, t) => r({
456
488
  queryKey: s.countries.list(e),
457
- queryFn: async () => (await w.v1.getAll(e)).data,
489
+ queryFn: async () => (await b.v1.getAll(e)).data,
458
490
  ...t
459
- }), St = (e, t) => o({
491
+ }), ne = (e, t) => r({
460
492
  queryKey: s.countries.detail(e),
461
- queryFn: async () => (await w.v1.getById(e)).data,
493
+ queryFn: async () => (await b.v1.getById(e)).data,
462
494
  ...t
463
- }), Tt = (e, t) => o({
495
+ }), se = (e, t) => r({
464
496
  queryKey: s.counties.list(e),
465
- queryFn: async () => (await C.v1.getAll(e)).data,
497
+ queryFn: async () => (await B.v1.getAll(e)).data,
466
498
  ...t
467
- }), jt = (e, t) => o({
499
+ }), ie = (e, t) => r({
468
500
  queryKey: s.counties.detail(e),
469
- queryFn: async () => (await C.v1.getById(e)).data,
501
+ queryFn: async () => (await B.v1.getById(e)).data,
470
502
  ...t
471
- }), Lt = (e, t) => o({
503
+ }), re = (e, t) => r({
472
504
  queryKey: s.cities.list(e),
473
- queryFn: async () => (await $.v1.getAll(e)).data,
505
+ queryFn: async () => (await O.v1.getAll(e)).data,
474
506
  ...t
475
- }), Vt = (e, t) => o({
507
+ }), oe = (e, t) => r({
476
508
  queryKey: s.cities.detail(e),
477
- queryFn: async () => (await $.v1.getById(e)).data,
509
+ queryFn: async () => (await O.v1.getById(e)).data,
478
510
  ...t
479
511
  });
480
512
  export {
481
- y as Auth,
482
- d as Categories,
483
- $ as Cities,
484
- l as Collections,
485
- C as Counties,
486
- w as Countries,
513
+ q as Auth,
514
+ g as Categories,
515
+ O as Cities,
516
+ d as Collections,
517
+ B as Counties,
518
+ b as Countries,
487
519
  s as EVENTHR_QUERY_KEYS,
488
- v as EventAttendances,
489
- X as EventhrHttpClient,
490
- u as Events,
491
- g as Files,
492
- m as ForgotPassword,
493
- r as HttpClient,
494
- h as Onboardings,
495
- a as Users,
496
- M as addRequestInterceptor,
497
- et as default,
498
- c as instance,
499
- vt as invalidateCategoriesCache,
500
- Ft as invalidateCollectionsCache,
501
- Dt as invalidateEventAttendancesCache,
502
- at as invalidateEventsCache,
503
- Gt as invalidateOnboardingsCache,
504
- p as queryClient,
505
- E as removeHeader,
506
- Q as removeRequestInterceptor,
507
- f as setBaseUrl,
508
- A as setHeaders,
509
- Rt as useChangePasswordMutation,
510
- pt as useCreateCategoryMutation,
511
- wt as useCreateCollectionMutation,
512
- Pt as useCreateEventAttendanceMutation,
513
- it as useCreateEventMutation,
514
- Ht as useCreateForgotPasswordMutation,
515
- Ut as useCreateOnboardingMutation,
516
- Mt as useCreateOrganizerMutation,
517
- Qt as useCreateSubOrganizerMutation,
518
- At as useCreateUserMutation,
519
- ht as useDeleteCategoryMutation,
520
- $t as useDeleteCollectionMutation,
521
- zt as useDeleteEventAttendanceMutation,
522
- rt as useDeleteEventMutation,
523
- It as useDeleteFileMutation,
524
- Et as useEditUserMutation,
525
- dt as useGetCategoriesQuery,
526
- Lt as useGetCitiesQuery,
527
- Vt as useGetCityByIdQuery,
528
- mt as useGetCollectionByIdQuery,
529
- gt as useGetCollectionsQuery,
530
- Tt as useGetCountiesQuery,
531
- _t as useGetCountriesQuery,
532
- St as useGetCountryByIdQuery,
533
- jt as useGetCountyByIdQuery,
534
- xt as useGetEventAttendancesQuery,
535
- st as useGetEventByIdQuery,
536
- nt as useGetEventsQuery,
537
- Bt as useGetOnboardingQuery,
538
- ft as useGetProfileQuery,
539
- qt as useGetUsersQuery,
540
- ct as useLoginMutation,
541
- lt as useRefreshTokenMutation,
542
- ut as useSocialAuthMutation,
543
- yt as useUpdateCategoryMutation,
544
- Ct as useUpdateCollectionMutation,
545
- ot as useUpdateEventMutation,
546
- Ot as useUpdateOnboardingMutation,
547
- bt as useUploadFileMutation,
548
- Kt as useVerifyUserMutation
520
+ Q as EventAttendances,
521
+ dt as EventhrHttpClient,
522
+ v as Events,
523
+ K as Files,
524
+ I as ForgotPassword,
525
+ a as HttpClient,
526
+ f as Onboardings,
527
+ l as Users,
528
+ z as addRequestInterceptor,
529
+ vt as default,
530
+ y as instance,
531
+ It as invalidateCategoriesCache,
532
+ xt as invalidateCollectionsCache,
533
+ Zt as invalidateEventAttendancesCache,
534
+ $t as invalidateEventsCache,
535
+ Nt as invalidateOnboardingsCache,
536
+ w as queryClient,
537
+ S as removeHeader,
538
+ H as removeRequestInterceptor,
539
+ D as setBaseUrl,
540
+ 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,
551
+ Kt as useDeleteCategoryMutation,
552
+ Mt as useDeleteCollectionMutation,
553
+ Xt as useDeleteEventAttendanceMutation,
554
+ Ct as useDeleteEventMutation,
555
+ jt as useDeleteFileMutation,
556
+ zt as useEditUserMutation,
557
+ Qt as useGetCategoriesQuery,
558
+ re as useGetCitiesQuery,
559
+ oe as useGetCityByIdQuery,
560
+ Bt as useGetCollectionByIdQuery,
561
+ bt as useGetCollectionsQuery,
562
+ se as useGetCountiesQuery,
563
+ ee as useGetCountriesQuery,
564
+ ne as useGetCountryByIdQuery,
565
+ ie as useGetCountyByIdQuery,
566
+ Wt as useGetEventAttendancesQuery,
567
+ gt as useGetEventByIdQuery,
568
+ ht as useGetEventsQuery,
569
+ Vt as useGetOnboardingQuery,
570
+ Pt as useGetProfileQuery,
571
+ Dt as useGetUsersQuery,
572
+ Ft as useLoginMutation,
573
+ ft as useRefreshTokenMutation,
574
+ Gt as useSaveEventMutation,
575
+ 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
549
582
  };
550
583
  //# sourceMappingURL=index.js.map