@lcas58/esmi-api-types 1.0.6 → 1.0.8

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.
Files changed (43) hide show
  1. package/dist/src/app.d.ts +0 -1156
  2. package/dist/src/app.js +0 -1
  3. package/dist/src/routes/events/events.handlers.d.ts +20 -0
  4. package/dist/src/routes/events/events.handlers.js +177 -0
  5. package/dist/src/routes/events/events.index.d.ts +501 -0
  6. package/dist/src/routes/events/events.index.js +9 -0
  7. package/dist/src/routes/events/events.routes.d.ts +1375 -0
  8. package/dist/src/routes/events/events.routes.js +72 -0
  9. package/dist/src/routes/events/schemas/event.schemas.d.ts +896 -0
  10. package/dist/src/routes/events/schemas/event.schemas.js +49 -0
  11. package/dist/src/routes/events/schemas/index.d.ts +1 -0
  12. package/dist/src/routes/events/schemas/index.js +1 -0
  13. package/dist/src/routes/index.route.d.ts +13 -0
  14. package/dist/src/routes/index.route.js +19 -0
  15. package/dist/src/routes/leagues/leagues.handlers.d.ts +3 -0
  16. package/dist/src/routes/leagues/leagues.handlers.js +49 -0
  17. package/dist/src/routes/leagues/leagues.index.d.ts +53 -0
  18. package/dist/src/routes/leagues/leagues.index.js +6 -0
  19. package/dist/src/routes/leagues/leagues.routes.d.ts +137 -0
  20. package/dist/src/routes/leagues/leagues.routes.js +47 -0
  21. package/dist/src/routes/marketing/marketing.handlers.d.ts +4 -0
  22. package/dist/src/routes/marketing/marketing.handlers.js +20 -0
  23. package/dist/src/routes/marketing/marketing.index.d.ts +58 -0
  24. package/dist/src/routes/marketing/marketing.index.js +7 -0
  25. package/dist/src/routes/marketing/marketing.routes.d.ts +154 -0
  26. package/dist/src/routes/marketing/marketing.routes.js +27 -0
  27. package/dist/src/routes/organizations/organizations.handlers.d.ts +74 -0
  28. package/dist/src/routes/organizations/organizations.handlers.js +485 -0
  29. package/dist/src/routes/organizations/organizations.index.d.ts +517 -0
  30. package/dist/src/routes/organizations/organizations.index.js +12 -0
  31. package/dist/src/routes/organizations/organizations.routes.d.ts +1236 -0
  32. package/dist/src/routes/organizations/organizations.routes.js +137 -0
  33. package/dist/src/routes/organizations/tasks.test.d.ts +0 -0
  34. package/dist/src/routes/organizations/tasks.test.js +181 -0
  35. package/dist/src/routes/tags/tags.handlers.d.ts +3 -0
  36. package/dist/src/routes/tags/tags.handlers.js +15 -0
  37. package/dist/src/routes/tags/tags.index.d.ts +24 -0
  38. package/dist/src/routes/tags/tags.index.js +6 -0
  39. package/dist/src/routes/tags/tags.routes.d.ts +68 -0
  40. package/dist/src/routes/tags/tags.routes.js +25 -0
  41. package/dist/src/shared/client-types.d.ts +8 -3
  42. package/dist/src/shared/client-types.js +1 -1
  43. package/package.json +2 -2
@@ -0,0 +1,1375 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ export declare const list: {
3
+ path: "/events";
4
+ method: "get";
5
+ tags: string[];
6
+ request: {
7
+ query: z.ZodObject<{
8
+ status: z.ZodOptional<z.ZodString>;
9
+ type: z.ZodOptional<z.ZodString>;
10
+ organizationId: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ status?: string | undefined;
13
+ type?: string | undefined;
14
+ organizationId?: string | undefined;
15
+ }, {
16
+ status?: string | undefined;
17
+ type?: string | undefined;
18
+ organizationId?: string | undefined;
19
+ }>;
20
+ };
21
+ responses: {
22
+ 200: {
23
+ content: {
24
+ "application/json": {
25
+ schema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
26
+ id: z.ZodString;
27
+ name: z.ZodString;
28
+ description: z.ZodNullable<z.ZodString>;
29
+ locationId: z.ZodNullable<z.ZodString>;
30
+ type: z.ZodString;
31
+ organizationId: z.ZodString;
32
+ creatorId: z.ZodNullable<z.ZodString>;
33
+ mode: z.ZodString;
34
+ ageGroup: z.ZodString;
35
+ gender: z.ZodString;
36
+ status: z.ZodString;
37
+ createdAt: z.ZodDate;
38
+ updatedAt: z.ZodDate;
39
+ }, {
40
+ creator: z.ZodNullable<z.ZodObject<{
41
+ id: z.ZodString;
42
+ name: z.ZodString;
43
+ email: z.ZodString;
44
+ emailVerified: z.ZodBoolean;
45
+ image: z.ZodNullable<z.ZodString>;
46
+ createdAt: z.ZodDate;
47
+ updatedAt: z.ZodDate;
48
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
49
+ image: string | null;
50
+ id: string;
51
+ name: string;
52
+ email: string;
53
+ emailVerified: boolean;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ }, {
57
+ image: string | null;
58
+ id: string;
59
+ name: string;
60
+ email: string;
61
+ emailVerified: boolean;
62
+ createdAt: Date;
63
+ updatedAt: Date;
64
+ }>>;
65
+ organization: z.ZodNullable<z.ZodObject<{
66
+ id: z.ZodString;
67
+ name: z.ZodString;
68
+ description: z.ZodString;
69
+ ownerId: z.ZodString;
70
+ slug: z.ZodString;
71
+ status: z.ZodString;
72
+ avatar: z.ZodNullable<z.ZodString>;
73
+ city: z.ZodNullable<z.ZodString>;
74
+ state: z.ZodNullable<z.ZodString>;
75
+ stateCd: z.ZodNullable<z.ZodString>;
76
+ country: z.ZodNullable<z.ZodString>;
77
+ createdAt: z.ZodNullable<z.ZodDate>;
78
+ updatedAt: z.ZodNullable<z.ZodDate>;
79
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
80
+ id: string;
81
+ status: string;
82
+ description: string;
83
+ name: string;
84
+ city: string | null;
85
+ state: string | null;
86
+ country: string | null;
87
+ createdAt: Date | null;
88
+ updatedAt: Date | null;
89
+ ownerId: string;
90
+ slug: string;
91
+ avatar: string | null;
92
+ stateCd: string | null;
93
+ }, {
94
+ id: string;
95
+ status: string;
96
+ description: string;
97
+ name: string;
98
+ city: string | null;
99
+ state: string | null;
100
+ country: string | null;
101
+ createdAt: Date | null;
102
+ updatedAt: Date | null;
103
+ ownerId: string;
104
+ slug: string;
105
+ avatar: string | null;
106
+ stateCd: string | null;
107
+ }>>;
108
+ location: z.ZodNullable<z.ZodObject<{
109
+ id: z.ZodString;
110
+ provider: z.ZodString;
111
+ name: z.ZodString;
112
+ formattedAddress: z.ZodString;
113
+ city: z.ZodNullable<z.ZodString>;
114
+ state: z.ZodNullable<z.ZodString>;
115
+ country: z.ZodNullable<z.ZodString>;
116
+ postalCode: z.ZodNullable<z.ZodString>;
117
+ latitude: z.ZodNullable<z.ZodString>;
118
+ longitude: z.ZodNullable<z.ZodString>;
119
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
120
+ id: string;
121
+ name: string;
122
+ provider: string;
123
+ formattedAddress: string;
124
+ city: string | null;
125
+ state: string | null;
126
+ country: string | null;
127
+ postalCode: string | null;
128
+ latitude: string | null;
129
+ longitude: string | null;
130
+ }, {
131
+ id: string;
132
+ name: string;
133
+ provider: string;
134
+ formattedAddress: string;
135
+ city: string | null;
136
+ state: string | null;
137
+ country: string | null;
138
+ postalCode: string | null;
139
+ latitude: string | null;
140
+ longitude: string | null;
141
+ }>>;
142
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
143
+ id: string;
144
+ status: string;
145
+ type: string;
146
+ description: string | null;
147
+ name: string;
148
+ location: {
149
+ id: string;
150
+ name: string;
151
+ provider: string;
152
+ formattedAddress: string;
153
+ city: string | null;
154
+ state: string | null;
155
+ country: string | null;
156
+ postalCode: string | null;
157
+ latitude: string | null;
158
+ longitude: string | null;
159
+ } | null;
160
+ locationId: string | null;
161
+ organizationId: string;
162
+ organization: {
163
+ id: string;
164
+ status: string;
165
+ description: string;
166
+ name: string;
167
+ city: string | null;
168
+ state: string | null;
169
+ country: string | null;
170
+ createdAt: Date | null;
171
+ updatedAt: Date | null;
172
+ ownerId: string;
173
+ slug: string;
174
+ avatar: string | null;
175
+ stateCd: string | null;
176
+ } | null;
177
+ mode: string;
178
+ createdAt: Date;
179
+ updatedAt: Date;
180
+ creatorId: string | null;
181
+ ageGroup: string;
182
+ gender: string;
183
+ creator: {
184
+ image: string | null;
185
+ id: string;
186
+ name: string;
187
+ email: string;
188
+ emailVerified: boolean;
189
+ createdAt: Date;
190
+ updatedAt: Date;
191
+ } | null;
192
+ }, {
193
+ id: string;
194
+ status: string;
195
+ type: string;
196
+ description: string | null;
197
+ name: string;
198
+ location: {
199
+ id: string;
200
+ name: string;
201
+ provider: string;
202
+ formattedAddress: string;
203
+ city: string | null;
204
+ state: string | null;
205
+ country: string | null;
206
+ postalCode: string | null;
207
+ latitude: string | null;
208
+ longitude: string | null;
209
+ } | null;
210
+ locationId: string | null;
211
+ organizationId: string;
212
+ organization: {
213
+ id: string;
214
+ status: string;
215
+ description: string;
216
+ name: string;
217
+ city: string | null;
218
+ state: string | null;
219
+ country: string | null;
220
+ createdAt: Date | null;
221
+ updatedAt: Date | null;
222
+ ownerId: string;
223
+ slug: string;
224
+ avatar: string | null;
225
+ stateCd: string | null;
226
+ } | null;
227
+ mode: string;
228
+ createdAt: Date;
229
+ updatedAt: Date;
230
+ creatorId: string | null;
231
+ ageGroup: string;
232
+ gender: string;
233
+ creator: {
234
+ image: string | null;
235
+ id: string;
236
+ name: string;
237
+ email: string;
238
+ emailVerified: boolean;
239
+ createdAt: Date;
240
+ updatedAt: Date;
241
+ } | null;
242
+ }>, "many">;
243
+ };
244
+ };
245
+ description: string;
246
+ };
247
+ 404: {
248
+ content: {
249
+ "application/json": {
250
+ schema: z.ZodObject<{
251
+ message: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ message: string;
254
+ }, {
255
+ message: string;
256
+ }>;
257
+ };
258
+ };
259
+ description: string;
260
+ };
261
+ 422: {
262
+ content: {
263
+ "application/json": {
264
+ schema: z.ZodObject<{
265
+ success: z.ZodBoolean;
266
+ error: z.ZodObject<{
267
+ issues: z.ZodArray<z.ZodObject<{
268
+ code: z.ZodString;
269
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
270
+ message: z.ZodOptional<z.ZodString>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ code: string;
273
+ path: (string | number)[];
274
+ message?: string | undefined;
275
+ }, {
276
+ code: string;
277
+ path: (string | number)[];
278
+ message?: string | undefined;
279
+ }>, "many">;
280
+ name: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ issues: {
283
+ code: string;
284
+ path: (string | number)[];
285
+ message?: string | undefined;
286
+ }[];
287
+ name: string;
288
+ }, {
289
+ issues: {
290
+ code: string;
291
+ path: (string | number)[];
292
+ message?: string | undefined;
293
+ }[];
294
+ name: string;
295
+ }>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ error: {
298
+ issues: {
299
+ code: string;
300
+ path: (string | number)[];
301
+ message?: string | undefined;
302
+ }[];
303
+ name: string;
304
+ };
305
+ success: boolean;
306
+ }, {
307
+ error: {
308
+ issues: {
309
+ code: string;
310
+ path: (string | number)[];
311
+ message?: string | undefined;
312
+ }[];
313
+ name: string;
314
+ };
315
+ success: boolean;
316
+ }>;
317
+ };
318
+ };
319
+ description: string;
320
+ };
321
+ };
322
+ } & {
323
+ getRoutingPath(): "/events";
324
+ };
325
+ export declare const create: {
326
+ path: "/events";
327
+ method: "post";
328
+ tags: string[];
329
+ middleware: import("hono").MiddlewareHandler[];
330
+ request: {
331
+ body: {
332
+ required: boolean;
333
+ content: {
334
+ "application/json": {
335
+ schema: z.ZodEffects<z.ZodObject<{
336
+ name: z.ZodString;
337
+ description: z.ZodNullable<z.ZodString>;
338
+ location: z.ZodObject<{
339
+ id: z.ZodString;
340
+ name: z.ZodString;
341
+ provider: z.ZodString;
342
+ formattedAddress: z.ZodString;
343
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
350
+ id: string;
351
+ name: string;
352
+ provider: string;
353
+ formattedAddress: string;
354
+ city?: string | null | undefined;
355
+ state?: string | null | undefined;
356
+ country?: string | null | undefined;
357
+ postalCode?: string | null | undefined;
358
+ latitude?: string | null | undefined;
359
+ longitude?: string | null | undefined;
360
+ }, {
361
+ id: string;
362
+ name: string;
363
+ provider: string;
364
+ formattedAddress: string;
365
+ city?: string | null | undefined;
366
+ state?: string | null | undefined;
367
+ country?: string | null | undefined;
368
+ postalCode?: string | null | undefined;
369
+ latitude?: string | null | undefined;
370
+ longitude?: string | null | undefined;
371
+ }>;
372
+ type: z.ZodString;
373
+ organizationId: z.ZodString;
374
+ ageGroup: z.ZodString;
375
+ gender: z.ZodString;
376
+ }, "strip", z.ZodTypeAny, {
377
+ type: string;
378
+ description: string | null;
379
+ name: string;
380
+ location: {
381
+ id: string;
382
+ name: string;
383
+ provider: string;
384
+ formattedAddress: string;
385
+ city?: string | null | undefined;
386
+ state?: string | null | undefined;
387
+ country?: string | null | undefined;
388
+ postalCode?: string | null | undefined;
389
+ latitude?: string | null | undefined;
390
+ longitude?: string | null | undefined;
391
+ };
392
+ organizationId: string;
393
+ ageGroup: string;
394
+ gender: string;
395
+ }, {
396
+ type: string;
397
+ description: string | null;
398
+ name: string;
399
+ location: {
400
+ id: string;
401
+ name: string;
402
+ provider: string;
403
+ formattedAddress: string;
404
+ city?: string | null | undefined;
405
+ state?: string | null | undefined;
406
+ country?: string | null | undefined;
407
+ postalCode?: string | null | undefined;
408
+ latitude?: string | null | undefined;
409
+ longitude?: string | null | undefined;
410
+ };
411
+ organizationId: string;
412
+ ageGroup: string;
413
+ gender: string;
414
+ }>, {
415
+ type: string;
416
+ description: string | null;
417
+ name: string;
418
+ location: {
419
+ id: string;
420
+ name: string;
421
+ provider: string;
422
+ formattedAddress: string;
423
+ city?: string | null | undefined;
424
+ state?: string | null | undefined;
425
+ country?: string | null | undefined;
426
+ postalCode?: string | null | undefined;
427
+ latitude?: string | null | undefined;
428
+ longitude?: string | null | undefined;
429
+ };
430
+ organizationId: string;
431
+ ageGroup: string;
432
+ gender: string;
433
+ }, {
434
+ type: string;
435
+ description: string | null;
436
+ name: string;
437
+ location: {
438
+ id: string;
439
+ name: string;
440
+ provider: string;
441
+ formattedAddress: string;
442
+ city?: string | null | undefined;
443
+ state?: string | null | undefined;
444
+ country?: string | null | undefined;
445
+ postalCode?: string | null | undefined;
446
+ latitude?: string | null | undefined;
447
+ longitude?: string | null | undefined;
448
+ };
449
+ organizationId: string;
450
+ ageGroup: string;
451
+ gender: string;
452
+ }>;
453
+ };
454
+ };
455
+ description: string;
456
+ };
457
+ };
458
+ responses: {
459
+ 201: {
460
+ content: {
461
+ "application/json": {
462
+ schema: z.ZodObject<z.objectUtil.extendShape<{
463
+ id: z.ZodString;
464
+ name: z.ZodString;
465
+ description: z.ZodNullable<z.ZodString>;
466
+ locationId: z.ZodNullable<z.ZodString>;
467
+ type: z.ZodString;
468
+ organizationId: z.ZodString;
469
+ creatorId: z.ZodNullable<z.ZodString>;
470
+ mode: z.ZodString;
471
+ ageGroup: z.ZodString;
472
+ gender: z.ZodString;
473
+ status: z.ZodString;
474
+ createdAt: z.ZodDate;
475
+ updatedAt: z.ZodDate;
476
+ }, {
477
+ creator: z.ZodNullable<z.ZodObject<{
478
+ id: z.ZodString;
479
+ name: z.ZodString;
480
+ email: z.ZodString;
481
+ emailVerified: z.ZodBoolean;
482
+ image: z.ZodNullable<z.ZodString>;
483
+ createdAt: z.ZodDate;
484
+ updatedAt: z.ZodDate;
485
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
486
+ image: string | null;
487
+ id: string;
488
+ name: string;
489
+ email: string;
490
+ emailVerified: boolean;
491
+ createdAt: Date;
492
+ updatedAt: Date;
493
+ }, {
494
+ image: string | null;
495
+ id: string;
496
+ name: string;
497
+ email: string;
498
+ emailVerified: boolean;
499
+ createdAt: Date;
500
+ updatedAt: Date;
501
+ }>>;
502
+ organization: z.ZodNullable<z.ZodObject<{
503
+ id: z.ZodString;
504
+ name: z.ZodString;
505
+ description: z.ZodString;
506
+ ownerId: z.ZodString;
507
+ slug: z.ZodString;
508
+ status: z.ZodString;
509
+ avatar: z.ZodNullable<z.ZodString>;
510
+ city: z.ZodNullable<z.ZodString>;
511
+ state: z.ZodNullable<z.ZodString>;
512
+ stateCd: z.ZodNullable<z.ZodString>;
513
+ country: z.ZodNullable<z.ZodString>;
514
+ createdAt: z.ZodNullable<z.ZodDate>;
515
+ updatedAt: z.ZodNullable<z.ZodDate>;
516
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
517
+ id: string;
518
+ status: string;
519
+ description: string;
520
+ name: string;
521
+ city: string | null;
522
+ state: string | null;
523
+ country: string | null;
524
+ createdAt: Date | null;
525
+ updatedAt: Date | null;
526
+ ownerId: string;
527
+ slug: string;
528
+ avatar: string | null;
529
+ stateCd: string | null;
530
+ }, {
531
+ id: string;
532
+ status: string;
533
+ description: string;
534
+ name: string;
535
+ city: string | null;
536
+ state: string | null;
537
+ country: string | null;
538
+ createdAt: Date | null;
539
+ updatedAt: Date | null;
540
+ ownerId: string;
541
+ slug: string;
542
+ avatar: string | null;
543
+ stateCd: string | null;
544
+ }>>;
545
+ location: z.ZodNullable<z.ZodObject<{
546
+ id: z.ZodString;
547
+ provider: z.ZodString;
548
+ name: z.ZodString;
549
+ formattedAddress: z.ZodString;
550
+ city: z.ZodNullable<z.ZodString>;
551
+ state: z.ZodNullable<z.ZodString>;
552
+ country: z.ZodNullable<z.ZodString>;
553
+ postalCode: z.ZodNullable<z.ZodString>;
554
+ latitude: z.ZodNullable<z.ZodString>;
555
+ longitude: z.ZodNullable<z.ZodString>;
556
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
557
+ id: string;
558
+ name: string;
559
+ provider: string;
560
+ formattedAddress: string;
561
+ city: string | null;
562
+ state: string | null;
563
+ country: string | null;
564
+ postalCode: string | null;
565
+ latitude: string | null;
566
+ longitude: string | null;
567
+ }, {
568
+ id: string;
569
+ name: string;
570
+ provider: string;
571
+ formattedAddress: string;
572
+ city: string | null;
573
+ state: string | null;
574
+ country: string | null;
575
+ postalCode: string | null;
576
+ latitude: string | null;
577
+ longitude: string | null;
578
+ }>>;
579
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
580
+ id: string;
581
+ status: string;
582
+ type: string;
583
+ description: string | null;
584
+ name: string;
585
+ location: {
586
+ id: string;
587
+ name: string;
588
+ provider: string;
589
+ formattedAddress: string;
590
+ city: string | null;
591
+ state: string | null;
592
+ country: string | null;
593
+ postalCode: string | null;
594
+ latitude: string | null;
595
+ longitude: string | null;
596
+ } | null;
597
+ locationId: string | null;
598
+ organizationId: string;
599
+ organization: {
600
+ id: string;
601
+ status: string;
602
+ description: string;
603
+ name: string;
604
+ city: string | null;
605
+ state: string | null;
606
+ country: string | null;
607
+ createdAt: Date | null;
608
+ updatedAt: Date | null;
609
+ ownerId: string;
610
+ slug: string;
611
+ avatar: string | null;
612
+ stateCd: string | null;
613
+ } | null;
614
+ mode: string;
615
+ createdAt: Date;
616
+ updatedAt: Date;
617
+ creatorId: string | null;
618
+ ageGroup: string;
619
+ gender: string;
620
+ creator: {
621
+ image: string | null;
622
+ id: string;
623
+ name: string;
624
+ email: string;
625
+ emailVerified: boolean;
626
+ createdAt: Date;
627
+ updatedAt: Date;
628
+ } | null;
629
+ }, {
630
+ id: string;
631
+ status: string;
632
+ type: string;
633
+ description: string | null;
634
+ name: string;
635
+ location: {
636
+ id: string;
637
+ name: string;
638
+ provider: string;
639
+ formattedAddress: string;
640
+ city: string | null;
641
+ state: string | null;
642
+ country: string | null;
643
+ postalCode: string | null;
644
+ latitude: string | null;
645
+ longitude: string | null;
646
+ } | null;
647
+ locationId: string | null;
648
+ organizationId: string;
649
+ organization: {
650
+ id: string;
651
+ status: string;
652
+ description: string;
653
+ name: string;
654
+ city: string | null;
655
+ state: string | null;
656
+ country: string | null;
657
+ createdAt: Date | null;
658
+ updatedAt: Date | null;
659
+ ownerId: string;
660
+ slug: string;
661
+ avatar: string | null;
662
+ stateCd: string | null;
663
+ } | null;
664
+ mode: string;
665
+ createdAt: Date;
666
+ updatedAt: Date;
667
+ creatorId: string | null;
668
+ ageGroup: string;
669
+ gender: string;
670
+ creator: {
671
+ image: string | null;
672
+ id: string;
673
+ name: string;
674
+ email: string;
675
+ emailVerified: boolean;
676
+ createdAt: Date;
677
+ updatedAt: Date;
678
+ } | null;
679
+ }>;
680
+ };
681
+ };
682
+ description: string;
683
+ };
684
+ 422: {
685
+ content: {
686
+ "application/json": {
687
+ schema: z.ZodObject<{
688
+ success: z.ZodBoolean;
689
+ error: z.ZodObject<{
690
+ issues: z.ZodArray<z.ZodObject<{
691
+ code: z.ZodString;
692
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
693
+ message: z.ZodOptional<z.ZodString>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ code: string;
696
+ path: (string | number)[];
697
+ message?: string | undefined;
698
+ }, {
699
+ code: string;
700
+ path: (string | number)[];
701
+ message?: string | undefined;
702
+ }>, "many">;
703
+ name: z.ZodString;
704
+ }, "strip", z.ZodTypeAny, {
705
+ issues: {
706
+ code: string;
707
+ path: (string | number)[];
708
+ message?: string | undefined;
709
+ }[];
710
+ name: string;
711
+ }, {
712
+ issues: {
713
+ code: string;
714
+ path: (string | number)[];
715
+ message?: string | undefined;
716
+ }[];
717
+ name: string;
718
+ }>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ error: {
721
+ issues: {
722
+ code: string;
723
+ path: (string | number)[];
724
+ message?: string | undefined;
725
+ }[];
726
+ name: string;
727
+ };
728
+ success: boolean;
729
+ }, {
730
+ error: {
731
+ issues: {
732
+ code: string;
733
+ path: (string | number)[];
734
+ message?: string | undefined;
735
+ }[];
736
+ name: string;
737
+ };
738
+ success: boolean;
739
+ }>;
740
+ };
741
+ };
742
+ description: string;
743
+ };
744
+ 401: {
745
+ content: {
746
+ "application/json": {
747
+ schema: z.ZodObject<{
748
+ message: z.ZodString;
749
+ }, "strip", z.ZodTypeAny, {
750
+ message: string;
751
+ }, {
752
+ message: string;
753
+ }>;
754
+ };
755
+ };
756
+ description: string;
757
+ };
758
+ };
759
+ } & {
760
+ getRoutingPath(): "/events";
761
+ };
762
+ export declare const patch: {
763
+ path: "/events/{id}";
764
+ method: "patch";
765
+ tags: string[];
766
+ middleware: import("hono").MiddlewareHandler[];
767
+ request: {
768
+ params: z.ZodObject<{
769
+ [x: string]: z.ZodString;
770
+ }, "strip", z.ZodTypeAny, {
771
+ [x: string]: string;
772
+ }, {
773
+ [x: string]: string;
774
+ }>;
775
+ body: {
776
+ required: boolean;
777
+ content: {
778
+ "application/json": {
779
+ schema: z.ZodObject<{
780
+ name: z.ZodOptional<z.ZodString>;
781
+ description: z.ZodNullable<z.ZodString>;
782
+ location: z.ZodOptional<z.ZodObject<{
783
+ id: z.ZodString;
784
+ name: z.ZodString;
785
+ provider: z.ZodString;
786
+ formattedAddress: z.ZodString;
787
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
791
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
794
+ id: string;
795
+ name: string;
796
+ provider: string;
797
+ formattedAddress: string;
798
+ city?: string | null | undefined;
799
+ state?: string | null | undefined;
800
+ country?: string | null | undefined;
801
+ postalCode?: string | null | undefined;
802
+ latitude?: string | null | undefined;
803
+ longitude?: string | null | undefined;
804
+ }, {
805
+ id: string;
806
+ name: string;
807
+ provider: string;
808
+ formattedAddress: string;
809
+ city?: string | null | undefined;
810
+ state?: string | null | undefined;
811
+ country?: string | null | undefined;
812
+ postalCode?: string | null | undefined;
813
+ latitude?: string | null | undefined;
814
+ longitude?: string | null | undefined;
815
+ }>>;
816
+ type: z.ZodOptional<z.ZodString>;
817
+ organizationId: z.ZodOptional<z.ZodString>;
818
+ mode: z.ZodOptional<z.ZodString>;
819
+ ageGroup: z.ZodOptional<z.ZodString>;
820
+ gender: z.ZodString;
821
+ status: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ description: string | null;
824
+ gender: string;
825
+ status?: string | undefined;
826
+ type?: string | undefined;
827
+ name?: string | undefined;
828
+ location?: {
829
+ id: string;
830
+ name: string;
831
+ provider: string;
832
+ formattedAddress: string;
833
+ city?: string | null | undefined;
834
+ state?: string | null | undefined;
835
+ country?: string | null | undefined;
836
+ postalCode?: string | null | undefined;
837
+ latitude?: string | null | undefined;
838
+ longitude?: string | null | undefined;
839
+ } | undefined;
840
+ organizationId?: string | undefined;
841
+ mode?: string | undefined;
842
+ ageGroup?: string | undefined;
843
+ }, {
844
+ description: string | null;
845
+ gender: string;
846
+ status?: string | undefined;
847
+ type?: string | undefined;
848
+ name?: string | undefined;
849
+ location?: {
850
+ id: string;
851
+ name: string;
852
+ provider: string;
853
+ formattedAddress: string;
854
+ city?: string | null | undefined;
855
+ state?: string | null | undefined;
856
+ country?: string | null | undefined;
857
+ postalCode?: string | null | undefined;
858
+ latitude?: string | null | undefined;
859
+ longitude?: string | null | undefined;
860
+ } | undefined;
861
+ organizationId?: string | undefined;
862
+ mode?: string | undefined;
863
+ ageGroup?: string | undefined;
864
+ }>;
865
+ };
866
+ };
867
+ description: string;
868
+ };
869
+ };
870
+ responses: {
871
+ 200: {
872
+ content: {
873
+ "application/json": {
874
+ schema: z.ZodObject<z.objectUtil.extendShape<{
875
+ id: z.ZodString;
876
+ name: z.ZodString;
877
+ description: z.ZodNullable<z.ZodString>;
878
+ locationId: z.ZodNullable<z.ZodString>;
879
+ type: z.ZodString;
880
+ organizationId: z.ZodString;
881
+ creatorId: z.ZodNullable<z.ZodString>;
882
+ mode: z.ZodString;
883
+ ageGroup: z.ZodString;
884
+ gender: z.ZodString;
885
+ status: z.ZodString;
886
+ createdAt: z.ZodDate;
887
+ updatedAt: z.ZodDate;
888
+ }, {
889
+ creator: z.ZodNullable<z.ZodObject<{
890
+ id: z.ZodString;
891
+ name: z.ZodString;
892
+ email: z.ZodString;
893
+ emailVerified: z.ZodBoolean;
894
+ image: z.ZodNullable<z.ZodString>;
895
+ createdAt: z.ZodDate;
896
+ updatedAt: z.ZodDate;
897
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
898
+ image: string | null;
899
+ id: string;
900
+ name: string;
901
+ email: string;
902
+ emailVerified: boolean;
903
+ createdAt: Date;
904
+ updatedAt: Date;
905
+ }, {
906
+ image: string | null;
907
+ id: string;
908
+ name: string;
909
+ email: string;
910
+ emailVerified: boolean;
911
+ createdAt: Date;
912
+ updatedAt: Date;
913
+ }>>;
914
+ organization: z.ZodNullable<z.ZodObject<{
915
+ id: z.ZodString;
916
+ name: z.ZodString;
917
+ description: z.ZodString;
918
+ ownerId: z.ZodString;
919
+ slug: z.ZodString;
920
+ status: z.ZodString;
921
+ avatar: z.ZodNullable<z.ZodString>;
922
+ city: z.ZodNullable<z.ZodString>;
923
+ state: z.ZodNullable<z.ZodString>;
924
+ stateCd: z.ZodNullable<z.ZodString>;
925
+ country: z.ZodNullable<z.ZodString>;
926
+ createdAt: z.ZodNullable<z.ZodDate>;
927
+ updatedAt: z.ZodNullable<z.ZodDate>;
928
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
929
+ id: string;
930
+ status: string;
931
+ description: string;
932
+ name: string;
933
+ city: string | null;
934
+ state: string | null;
935
+ country: string | null;
936
+ createdAt: Date | null;
937
+ updatedAt: Date | null;
938
+ ownerId: string;
939
+ slug: string;
940
+ avatar: string | null;
941
+ stateCd: string | null;
942
+ }, {
943
+ id: string;
944
+ status: string;
945
+ description: string;
946
+ name: string;
947
+ city: string | null;
948
+ state: string | null;
949
+ country: string | null;
950
+ createdAt: Date | null;
951
+ updatedAt: Date | null;
952
+ ownerId: string;
953
+ slug: string;
954
+ avatar: string | null;
955
+ stateCd: string | null;
956
+ }>>;
957
+ location: z.ZodNullable<z.ZodObject<{
958
+ id: z.ZodString;
959
+ provider: z.ZodString;
960
+ name: z.ZodString;
961
+ formattedAddress: z.ZodString;
962
+ city: z.ZodNullable<z.ZodString>;
963
+ state: z.ZodNullable<z.ZodString>;
964
+ country: z.ZodNullable<z.ZodString>;
965
+ postalCode: z.ZodNullable<z.ZodString>;
966
+ latitude: z.ZodNullable<z.ZodString>;
967
+ longitude: z.ZodNullable<z.ZodString>;
968
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
969
+ id: string;
970
+ name: string;
971
+ provider: string;
972
+ formattedAddress: string;
973
+ city: string | null;
974
+ state: string | null;
975
+ country: string | null;
976
+ postalCode: string | null;
977
+ latitude: string | null;
978
+ longitude: string | null;
979
+ }, {
980
+ id: string;
981
+ name: string;
982
+ provider: string;
983
+ formattedAddress: string;
984
+ city: string | null;
985
+ state: string | null;
986
+ country: string | null;
987
+ postalCode: string | null;
988
+ latitude: string | null;
989
+ longitude: string | null;
990
+ }>>;
991
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
992
+ id: string;
993
+ status: string;
994
+ type: string;
995
+ description: string | null;
996
+ name: string;
997
+ location: {
998
+ id: string;
999
+ name: string;
1000
+ provider: string;
1001
+ formattedAddress: string;
1002
+ city: string | null;
1003
+ state: string | null;
1004
+ country: string | null;
1005
+ postalCode: string | null;
1006
+ latitude: string | null;
1007
+ longitude: string | null;
1008
+ } | null;
1009
+ locationId: string | null;
1010
+ organizationId: string;
1011
+ organization: {
1012
+ id: string;
1013
+ status: string;
1014
+ description: string;
1015
+ name: string;
1016
+ city: string | null;
1017
+ state: string | null;
1018
+ country: string | null;
1019
+ createdAt: Date | null;
1020
+ updatedAt: Date | null;
1021
+ ownerId: string;
1022
+ slug: string;
1023
+ avatar: string | null;
1024
+ stateCd: string | null;
1025
+ } | null;
1026
+ mode: string;
1027
+ createdAt: Date;
1028
+ updatedAt: Date;
1029
+ creatorId: string | null;
1030
+ ageGroup: string;
1031
+ gender: string;
1032
+ creator: {
1033
+ image: string | null;
1034
+ id: string;
1035
+ name: string;
1036
+ email: string;
1037
+ emailVerified: boolean;
1038
+ createdAt: Date;
1039
+ updatedAt: Date;
1040
+ } | null;
1041
+ }, {
1042
+ id: string;
1043
+ status: string;
1044
+ type: string;
1045
+ description: string | null;
1046
+ name: string;
1047
+ location: {
1048
+ id: string;
1049
+ name: string;
1050
+ provider: string;
1051
+ formattedAddress: string;
1052
+ city: string | null;
1053
+ state: string | null;
1054
+ country: string | null;
1055
+ postalCode: string | null;
1056
+ latitude: string | null;
1057
+ longitude: string | null;
1058
+ } | null;
1059
+ locationId: string | null;
1060
+ organizationId: string;
1061
+ organization: {
1062
+ id: string;
1063
+ status: string;
1064
+ description: string;
1065
+ name: string;
1066
+ city: string | null;
1067
+ state: string | null;
1068
+ country: string | null;
1069
+ createdAt: Date | null;
1070
+ updatedAt: Date | null;
1071
+ ownerId: string;
1072
+ slug: string;
1073
+ avatar: string | null;
1074
+ stateCd: string | null;
1075
+ } | null;
1076
+ mode: string;
1077
+ createdAt: Date;
1078
+ updatedAt: Date;
1079
+ creatorId: string | null;
1080
+ ageGroup: string;
1081
+ gender: string;
1082
+ creator: {
1083
+ image: string | null;
1084
+ id: string;
1085
+ name: string;
1086
+ email: string;
1087
+ emailVerified: boolean;
1088
+ createdAt: Date;
1089
+ updatedAt: Date;
1090
+ } | null;
1091
+ }>;
1092
+ };
1093
+ };
1094
+ description: string;
1095
+ };
1096
+ 404: {
1097
+ content: {
1098
+ "application/json": {
1099
+ schema: z.ZodObject<{
1100
+ message: z.ZodString;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ message: string;
1103
+ }, {
1104
+ message: string;
1105
+ }>;
1106
+ };
1107
+ };
1108
+ description: string;
1109
+ };
1110
+ 422: {
1111
+ content: {
1112
+ "application/json": {
1113
+ schema: z.ZodUnion<[z.ZodObject<{
1114
+ success: z.ZodBoolean;
1115
+ error: z.ZodObject<{
1116
+ issues: z.ZodArray<z.ZodObject<{
1117
+ code: z.ZodString;
1118
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1119
+ message: z.ZodOptional<z.ZodString>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ code: string;
1122
+ path: (string | number)[];
1123
+ message?: string | undefined;
1124
+ }, {
1125
+ code: string;
1126
+ path: (string | number)[];
1127
+ message?: string | undefined;
1128
+ }>, "many">;
1129
+ name: z.ZodString;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ issues: {
1132
+ code: string;
1133
+ path: (string | number)[];
1134
+ message?: string | undefined;
1135
+ }[];
1136
+ name: string;
1137
+ }, {
1138
+ issues: {
1139
+ code: string;
1140
+ path: (string | number)[];
1141
+ message?: string | undefined;
1142
+ }[];
1143
+ name: string;
1144
+ }>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ error: {
1147
+ issues: {
1148
+ code: string;
1149
+ path: (string | number)[];
1150
+ message?: string | undefined;
1151
+ }[];
1152
+ name: string;
1153
+ };
1154
+ success: boolean;
1155
+ }, {
1156
+ error: {
1157
+ issues: {
1158
+ code: string;
1159
+ path: (string | number)[];
1160
+ message?: string | undefined;
1161
+ }[];
1162
+ name: string;
1163
+ };
1164
+ success: boolean;
1165
+ }>, z.ZodObject<{
1166
+ success: z.ZodBoolean;
1167
+ error: z.ZodObject<{
1168
+ issues: z.ZodArray<z.ZodObject<{
1169
+ code: z.ZodString;
1170
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1171
+ message: z.ZodOptional<z.ZodString>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ code: string;
1174
+ path: (string | number)[];
1175
+ message?: string | undefined;
1176
+ }, {
1177
+ code: string;
1178
+ path: (string | number)[];
1179
+ message?: string | undefined;
1180
+ }>, "many">;
1181
+ name: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ issues: {
1184
+ code: string;
1185
+ path: (string | number)[];
1186
+ message?: string | undefined;
1187
+ }[];
1188
+ name: string;
1189
+ }, {
1190
+ issues: {
1191
+ code: string;
1192
+ path: (string | number)[];
1193
+ message?: string | undefined;
1194
+ }[];
1195
+ name: string;
1196
+ }>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ error: {
1199
+ issues: {
1200
+ code: string;
1201
+ path: (string | number)[];
1202
+ message?: string | undefined;
1203
+ }[];
1204
+ name: string;
1205
+ };
1206
+ success: boolean;
1207
+ }, {
1208
+ error: {
1209
+ issues: {
1210
+ code: string;
1211
+ path: (string | number)[];
1212
+ message?: string | undefined;
1213
+ }[];
1214
+ name: string;
1215
+ };
1216
+ success: boolean;
1217
+ }>]>;
1218
+ };
1219
+ };
1220
+ description: string;
1221
+ };
1222
+ 401: {
1223
+ content: {
1224
+ "application/json": {
1225
+ schema: z.ZodObject<{
1226
+ message: z.ZodString;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ message: string;
1229
+ }, {
1230
+ message: string;
1231
+ }>;
1232
+ };
1233
+ };
1234
+ description: string;
1235
+ };
1236
+ };
1237
+ } & {
1238
+ getRoutingPath(): "/events/:id";
1239
+ };
1240
+ export declare const getCountStats: {
1241
+ path: "/events/count-stats";
1242
+ method: "get";
1243
+ tags: string[];
1244
+ request: {
1245
+ query: z.ZodObject<{
1246
+ organizationId: z.ZodString;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ organizationId: string;
1249
+ }, {
1250
+ organizationId: string;
1251
+ }>;
1252
+ };
1253
+ responses: {
1254
+ 200: {
1255
+ content: {
1256
+ "application/json": {
1257
+ schema: z.ZodObject<{
1258
+ total: z.ZodNumber;
1259
+ thisMonth: z.ZodNumber;
1260
+ upcoming: z.ZodNumber;
1261
+ inProgress: z.ZodNumber;
1262
+ completed: z.ZodNumber;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ total: number;
1265
+ thisMonth: number;
1266
+ upcoming: number;
1267
+ inProgress: number;
1268
+ completed: number;
1269
+ }, {
1270
+ total: number;
1271
+ thisMonth: number;
1272
+ upcoming: number;
1273
+ inProgress: number;
1274
+ completed: number;
1275
+ }>;
1276
+ };
1277
+ };
1278
+ description: string;
1279
+ };
1280
+ 422: {
1281
+ content: {
1282
+ "application/json": {
1283
+ schema: z.ZodObject<{
1284
+ success: z.ZodBoolean;
1285
+ error: z.ZodObject<{
1286
+ issues: z.ZodArray<z.ZodObject<{
1287
+ code: z.ZodString;
1288
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1289
+ message: z.ZodOptional<z.ZodString>;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ code: string;
1292
+ path: (string | number)[];
1293
+ message?: string | undefined;
1294
+ }, {
1295
+ code: string;
1296
+ path: (string | number)[];
1297
+ message?: string | undefined;
1298
+ }>, "many">;
1299
+ name: z.ZodString;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ issues: {
1302
+ code: string;
1303
+ path: (string | number)[];
1304
+ message?: string | undefined;
1305
+ }[];
1306
+ name: string;
1307
+ }, {
1308
+ issues: {
1309
+ code: string;
1310
+ path: (string | number)[];
1311
+ message?: string | undefined;
1312
+ }[];
1313
+ name: string;
1314
+ }>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ error: {
1317
+ issues: {
1318
+ code: string;
1319
+ path: (string | number)[];
1320
+ message?: string | undefined;
1321
+ }[];
1322
+ name: string;
1323
+ };
1324
+ success: boolean;
1325
+ }, {
1326
+ error: {
1327
+ issues: {
1328
+ code: string;
1329
+ path: (string | number)[];
1330
+ message?: string | undefined;
1331
+ }[];
1332
+ name: string;
1333
+ };
1334
+ success: boolean;
1335
+ }>;
1336
+ };
1337
+ };
1338
+ description: string;
1339
+ };
1340
+ 404: {
1341
+ content: {
1342
+ "application/json": {
1343
+ schema: z.ZodObject<{
1344
+ message: z.ZodString;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ message: string;
1347
+ }, {
1348
+ message: string;
1349
+ }>;
1350
+ };
1351
+ };
1352
+ description: string;
1353
+ };
1354
+ 401: {
1355
+ content: {
1356
+ "application/json": {
1357
+ schema: z.ZodObject<{
1358
+ message: z.ZodString;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ message: string;
1361
+ }, {
1362
+ message: string;
1363
+ }>;
1364
+ };
1365
+ };
1366
+ description: string;
1367
+ };
1368
+ };
1369
+ } & {
1370
+ getRoutingPath(): "/events/count-stats";
1371
+ };
1372
+ export type ListRoute = typeof list;
1373
+ export type CreateRoute = typeof create;
1374
+ export type PatchRoute = typeof patch;
1375
+ export type GetCountStatsRoute = typeof getCountStats;