@lcas58/esmi-api-types 1.0.6 → 1.0.7

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