eventhr-http-client 2.1.2 → 2.1.3

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