@lcas58/esmi-api-types 1.0.7 → 1.0.9

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 (36) hide show
  1. package/dist/src/routes/events/events.index.d.ts +4 -4
  2. package/dist/src/routes/leagues/leagues.handlers.js +2 -1
  3. package/dist/src/routes/marketing/marketing.index.d.ts +1 -1
  4. package/dist/src/routes/organizations/organizations.index.d.ts +6 -6
  5. package/dist/src/routes/webhooks/webhooks.handlers.d.ts +3 -0
  6. package/dist/src/routes/webhooks/webhooks.handlers.js +14 -0
  7. package/dist/src/routes/webhooks/webhooks.index.d.ts +32 -0
  8. package/dist/src/routes/webhooks/webhooks.index.js +6 -0
  9. package/dist/src/routes/webhooks/webhooks.routes.d.ts +64 -0
  10. package/dist/src/routes/webhooks/webhooks.routes.js +24 -0
  11. package/dist/src/shared/client-types.d.ts +2 -13
  12. package/dist/src/shared/client-types.js +0 -12
  13. package/package.json +25 -32
  14. package/dist/src/app.d.ts +0 -1158
  15. package/dist/src/app.js +0 -22
  16. package/dist/src/db/schema/event.d.ts +0 -264
  17. package/dist/src/db/schema/event.js +0 -38
  18. package/dist/src/db/schema/index.d.ts +0 -8
  19. package/dist/src/db/schema/index.js +0 -8
  20. package/dist/src/db/schema/league.d.ts +0 -261
  21. package/dist/src/db/schema/league.js +0 -27
  22. package/dist/src/db/schema/location.d.ts +0 -239
  23. package/dist/src/db/schema/location.js +0 -22
  24. package/dist/src/db/schema/marketing.d.ts +0 -77
  25. package/dist/src/db/schema/marketing.js +0 -16
  26. package/dist/src/db/schema/organization.d.ts +0 -882
  27. package/dist/src/db/schema/organization.js +0 -174
  28. package/dist/src/db/schema/pickup.d.ts +0 -417
  29. package/dist/src/db/schema/pickup.js +0 -42
  30. package/dist/src/db/schema/tag.d.ts +0 -261
  31. package/dist/src/db/schema/tag.js +0 -55
  32. package/dist/src/db/schema/user.d.ts +0 -597
  33. package/dist/src/db/schema/user.js +0 -45
  34. package/dist/src/lib/types.d.ts +0 -14
  35. package/dist/src/shared/index.d.ts +0 -7
  36. package/dist/src/shared/index.js +0 -28
@@ -1,882 +0,0 @@
1
- import { z } from "zod";
2
- declare const organization: import("drizzle-orm/pg-core").PgTableWithColumns<{
3
- name: "organization";
4
- schema: undefined;
5
- columns: {
6
- id: import("drizzle-orm/pg-core").PgColumn<{
7
- name: "id";
8
- tableName: "organization";
9
- dataType: "string";
10
- columnType: "PgText";
11
- data: string;
12
- driverParam: string;
13
- notNull: true;
14
- hasDefault: true;
15
- isPrimaryKey: true;
16
- isAutoincrement: false;
17
- hasRuntimeDefault: true;
18
- enumValues: [string, ...string[]];
19
- baseColumn: never;
20
- generated: undefined;
21
- }, {}, {}>;
22
- name: import("drizzle-orm/pg-core").PgColumn<{
23
- name: "name";
24
- tableName: "organization";
25
- dataType: "string";
26
- columnType: "PgVarchar";
27
- data: string;
28
- driverParam: string;
29
- notNull: true;
30
- hasDefault: false;
31
- isPrimaryKey: false;
32
- isAutoincrement: false;
33
- hasRuntimeDefault: false;
34
- enumValues: [string, ...string[]];
35
- baseColumn: never;
36
- generated: undefined;
37
- }, {}, {}>;
38
- description: import("drizzle-orm/pg-core").PgColumn<{
39
- name: "description";
40
- tableName: "organization";
41
- dataType: "string";
42
- columnType: "PgText";
43
- data: string;
44
- driverParam: string;
45
- notNull: true;
46
- hasDefault: false;
47
- isPrimaryKey: false;
48
- isAutoincrement: false;
49
- hasRuntimeDefault: false;
50
- enumValues: [string, ...string[]];
51
- baseColumn: never;
52
- generated: undefined;
53
- }, {}, {}>;
54
- ownerId: import("drizzle-orm/pg-core").PgColumn<{
55
- name: "owner_id";
56
- tableName: "organization";
57
- dataType: "string";
58
- columnType: "PgVarchar";
59
- data: string;
60
- driverParam: string;
61
- notNull: true;
62
- hasDefault: false;
63
- isPrimaryKey: false;
64
- isAutoincrement: false;
65
- hasRuntimeDefault: false;
66
- enumValues: [string, ...string[]];
67
- baseColumn: never;
68
- generated: undefined;
69
- }, {}, {}>;
70
- slug: import("drizzle-orm/pg-core").PgColumn<{
71
- name: "slug";
72
- tableName: "organization";
73
- dataType: "string";
74
- columnType: "PgVarchar";
75
- data: string;
76
- driverParam: string;
77
- notNull: true;
78
- hasDefault: false;
79
- isPrimaryKey: false;
80
- isAutoincrement: false;
81
- hasRuntimeDefault: false;
82
- enumValues: [string, ...string[]];
83
- baseColumn: never;
84
- generated: undefined;
85
- }, {}, {}>;
86
- status: import("drizzle-orm/pg-core").PgColumn<{
87
- name: "status";
88
- tableName: "organization";
89
- dataType: "string";
90
- columnType: "PgVarchar";
91
- data: string;
92
- driverParam: string;
93
- notNull: true;
94
- hasDefault: true;
95
- isPrimaryKey: false;
96
- isAutoincrement: false;
97
- hasRuntimeDefault: false;
98
- enumValues: [string, ...string[]];
99
- baseColumn: never;
100
- generated: undefined;
101
- }, {}, {}>;
102
- avatar: import("drizzle-orm/pg-core").PgColumn<{
103
- name: "avatar";
104
- tableName: "organization";
105
- dataType: "string";
106
- columnType: "PgVarchar";
107
- data: string;
108
- driverParam: string;
109
- notNull: false;
110
- hasDefault: false;
111
- isPrimaryKey: false;
112
- isAutoincrement: false;
113
- hasRuntimeDefault: false;
114
- enumValues: [string, ...string[]];
115
- baseColumn: never;
116
- generated: undefined;
117
- }, {}, {}>;
118
- city: import("drizzle-orm/pg-core").PgColumn<{
119
- name: "city";
120
- tableName: "organization";
121
- dataType: "string";
122
- columnType: "PgVarchar";
123
- data: string;
124
- driverParam: string;
125
- notNull: false;
126
- hasDefault: false;
127
- isPrimaryKey: false;
128
- isAutoincrement: false;
129
- hasRuntimeDefault: false;
130
- enumValues: [string, ...string[]];
131
- baseColumn: never;
132
- generated: undefined;
133
- }, {}, {}>;
134
- state: import("drizzle-orm/pg-core").PgColumn<{
135
- name: "state";
136
- tableName: "organization";
137
- dataType: "string";
138
- columnType: "PgVarchar";
139
- data: string;
140
- driverParam: string;
141
- notNull: false;
142
- hasDefault: false;
143
- isPrimaryKey: false;
144
- isAutoincrement: false;
145
- hasRuntimeDefault: false;
146
- enumValues: [string, ...string[]];
147
- baseColumn: never;
148
- generated: undefined;
149
- }, {}, {}>;
150
- stateCd: import("drizzle-orm/pg-core").PgColumn<{
151
- name: "state_cd";
152
- tableName: "organization";
153
- dataType: "string";
154
- columnType: "PgVarchar";
155
- data: string;
156
- driverParam: string;
157
- notNull: false;
158
- hasDefault: false;
159
- isPrimaryKey: false;
160
- isAutoincrement: false;
161
- hasRuntimeDefault: false;
162
- enumValues: [string, ...string[]];
163
- baseColumn: never;
164
- generated: undefined;
165
- }, {}, {}>;
166
- country: import("drizzle-orm/pg-core").PgColumn<{
167
- name: "country";
168
- tableName: "organization";
169
- dataType: "string";
170
- columnType: "PgVarchar";
171
- data: string;
172
- driverParam: string;
173
- notNull: false;
174
- hasDefault: false;
175
- isPrimaryKey: false;
176
- isAutoincrement: false;
177
- hasRuntimeDefault: false;
178
- enumValues: [string, ...string[]];
179
- baseColumn: never;
180
- generated: undefined;
181
- }, {}, {}>;
182
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
183
- name: "created_at";
184
- tableName: "organization";
185
- dataType: "date";
186
- columnType: "PgTimestamp";
187
- data: Date;
188
- driverParam: string;
189
- notNull: false;
190
- hasDefault: true;
191
- isPrimaryKey: false;
192
- isAutoincrement: false;
193
- hasRuntimeDefault: true;
194
- enumValues: undefined;
195
- baseColumn: never;
196
- generated: undefined;
197
- }, {}, {}>;
198
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
199
- name: "updated_at";
200
- tableName: "organization";
201
- dataType: "date";
202
- columnType: "PgTimestamp";
203
- data: Date;
204
- driverParam: string;
205
- notNull: false;
206
- hasDefault: true;
207
- isPrimaryKey: false;
208
- isAutoincrement: false;
209
- hasRuntimeDefault: true;
210
- enumValues: undefined;
211
- baseColumn: never;
212
- generated: undefined;
213
- }, {}, {}>;
214
- };
215
- dialect: "pg";
216
- }>;
217
- export declare const organizationWebsites: import("drizzle-orm/pg-core").PgTableWithColumns<{
218
- name: "organization_websites";
219
- schema: undefined;
220
- columns: {
221
- id: import("drizzle-orm/pg-core").PgColumn<{
222
- name: "id";
223
- tableName: "organization_websites";
224
- dataType: "string";
225
- columnType: "PgText";
226
- data: string;
227
- driverParam: string;
228
- notNull: true;
229
- hasDefault: true;
230
- isPrimaryKey: true;
231
- isAutoincrement: false;
232
- hasRuntimeDefault: true;
233
- enumValues: [string, ...string[]];
234
- baseColumn: never;
235
- generated: undefined;
236
- }, {}, {}>;
237
- organizationId: import("drizzle-orm/pg-core").PgColumn<{
238
- name: "organization_id";
239
- tableName: "organization_websites";
240
- dataType: "string";
241
- columnType: "PgText";
242
- data: string;
243
- driverParam: string;
244
- notNull: true;
245
- hasDefault: false;
246
- isPrimaryKey: false;
247
- isAutoincrement: false;
248
- hasRuntimeDefault: false;
249
- enumValues: [string, ...string[]];
250
- baseColumn: never;
251
- generated: undefined;
252
- }, {}, {}>;
253
- url: import("drizzle-orm/pg-core").PgColumn<{
254
- name: "url";
255
- tableName: "organization_websites";
256
- dataType: "string";
257
- columnType: "PgVarchar";
258
- data: string;
259
- driverParam: string;
260
- notNull: true;
261
- hasDefault: false;
262
- isPrimaryKey: false;
263
- isAutoincrement: false;
264
- hasRuntimeDefault: false;
265
- enumValues: [string, ...string[]];
266
- baseColumn: never;
267
- generated: undefined;
268
- }, {}, {}>;
269
- label: import("drizzle-orm/pg-core").PgColumn<{
270
- name: "label";
271
- tableName: "organization_websites";
272
- dataType: "string";
273
- columnType: "PgVarchar";
274
- data: string;
275
- driverParam: string;
276
- notNull: false;
277
- hasDefault: false;
278
- isPrimaryKey: false;
279
- isAutoincrement: false;
280
- hasRuntimeDefault: false;
281
- enumValues: [string, ...string[]];
282
- baseColumn: never;
283
- generated: undefined;
284
- }, {}, {}>;
285
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
286
- name: "created_at";
287
- tableName: "organization_websites";
288
- dataType: "date";
289
- columnType: "PgTimestamp";
290
- data: Date;
291
- driverParam: string;
292
- notNull: false;
293
- hasDefault: true;
294
- isPrimaryKey: false;
295
- isAutoincrement: false;
296
- hasRuntimeDefault: true;
297
- enumValues: undefined;
298
- baseColumn: never;
299
- generated: undefined;
300
- }, {}, {}>;
301
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
302
- name: "updated_at";
303
- tableName: "organization_websites";
304
- dataType: "date";
305
- columnType: "PgTimestamp";
306
- data: Date;
307
- driverParam: string;
308
- notNull: false;
309
- hasDefault: true;
310
- isPrimaryKey: false;
311
- isAutoincrement: false;
312
- hasRuntimeDefault: true;
313
- enumValues: undefined;
314
- baseColumn: never;
315
- generated: undefined;
316
- }, {}, {}>;
317
- };
318
- dialect: "pg";
319
- }>;
320
- export declare const organizationSocialMedia: import("drizzle-orm/pg-core").PgTableWithColumns<{
321
- name: "organization_social_media";
322
- schema: undefined;
323
- columns: {
324
- id: import("drizzle-orm/pg-core").PgColumn<{
325
- name: "id";
326
- tableName: "organization_social_media";
327
- dataType: "string";
328
- columnType: "PgText";
329
- data: string;
330
- driverParam: string;
331
- notNull: true;
332
- hasDefault: true;
333
- isPrimaryKey: true;
334
- isAutoincrement: false;
335
- hasRuntimeDefault: true;
336
- enumValues: [string, ...string[]];
337
- baseColumn: never;
338
- generated: undefined;
339
- }, {}, {}>;
340
- organizationId: import("drizzle-orm/pg-core").PgColumn<{
341
- name: "organization_id";
342
- tableName: "organization_social_media";
343
- dataType: "string";
344
- columnType: "PgText";
345
- data: string;
346
- driverParam: string;
347
- notNull: true;
348
- hasDefault: false;
349
- isPrimaryKey: false;
350
- isAutoincrement: false;
351
- hasRuntimeDefault: false;
352
- enumValues: [string, ...string[]];
353
- baseColumn: never;
354
- generated: undefined;
355
- }, {}, {}>;
356
- platform: import("drizzle-orm/pg-core").PgColumn<{
357
- name: "platform";
358
- tableName: "organization_social_media";
359
- dataType: "string";
360
- columnType: "PgVarchar";
361
- data: string;
362
- driverParam: string;
363
- notNull: true;
364
- hasDefault: false;
365
- isPrimaryKey: false;
366
- isAutoincrement: false;
367
- hasRuntimeDefault: false;
368
- enumValues: [string, ...string[]];
369
- baseColumn: never;
370
- generated: undefined;
371
- }, {}, {}>;
372
- url: import("drizzle-orm/pg-core").PgColumn<{
373
- name: "url";
374
- tableName: "organization_social_media";
375
- dataType: "string";
376
- columnType: "PgVarchar";
377
- data: string;
378
- driverParam: string;
379
- notNull: false;
380
- hasDefault: false;
381
- isPrimaryKey: false;
382
- isAutoincrement: false;
383
- hasRuntimeDefault: false;
384
- enumValues: [string, ...string[]];
385
- baseColumn: never;
386
- generated: undefined;
387
- }, {}, {}>;
388
- handle: import("drizzle-orm/pg-core").PgColumn<{
389
- name: "handle";
390
- tableName: "organization_social_media";
391
- dataType: "string";
392
- columnType: "PgVarchar";
393
- data: string;
394
- driverParam: string;
395
- notNull: true;
396
- hasDefault: false;
397
- isPrimaryKey: false;
398
- isAutoincrement: false;
399
- hasRuntimeDefault: false;
400
- enumValues: [string, ...string[]];
401
- baseColumn: never;
402
- generated: undefined;
403
- }, {}, {}>;
404
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
405
- name: "created_at";
406
- tableName: "organization_social_media";
407
- dataType: "date";
408
- columnType: "PgTimestamp";
409
- data: Date;
410
- driverParam: string;
411
- notNull: false;
412
- hasDefault: true;
413
- isPrimaryKey: false;
414
- isAutoincrement: false;
415
- hasRuntimeDefault: true;
416
- enumValues: undefined;
417
- baseColumn: never;
418
- generated: undefined;
419
- }, {}, {}>;
420
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
421
- name: "updated_at";
422
- tableName: "organization_social_media";
423
- dataType: "date";
424
- columnType: "PgTimestamp";
425
- data: Date;
426
- driverParam: string;
427
- notNull: false;
428
- hasDefault: true;
429
- isPrimaryKey: false;
430
- isAutoincrement: false;
431
- hasRuntimeDefault: true;
432
- enumValues: undefined;
433
- baseColumn: never;
434
- generated: undefined;
435
- }, {}, {}>;
436
- };
437
- dialect: "pg";
438
- }>;
439
- export declare const organizationRelations: import("drizzle-orm").Relations<"organization", {
440
- owner: import("drizzle-orm").One<"user", true>;
441
- events: import("drizzle-orm").Many<"event">;
442
- tags: import("drizzle-orm").Many<"organization_tags">;
443
- websites: import("drizzle-orm").Many<"organization_websites">;
444
- socialMedia: import("drizzle-orm").Many<"organization_social_media">;
445
- }>;
446
- export declare const organizationWebsitesRelations: import("drizzle-orm").Relations<"organization_websites", {
447
- organization: import("drizzle-orm").One<"organization", true>;
448
- }>;
449
- export declare const organizationSocialMediaRelations: import("drizzle-orm").Relations<"organization_social_media", {
450
- organization: import("drizzle-orm").One<"organization", true>;
451
- }>;
452
- export declare const organizationTagsRelations: import("drizzle-orm").Relations<"organization_tags", {
453
- organization: import("drizzle-orm").One<"organization", true>;
454
- tag: import("drizzle-orm").One<"tags", true>;
455
- }>;
456
- export declare const selectOrganizationSchema: z.ZodObject<{
457
- id: z.ZodString;
458
- name: z.ZodString;
459
- description: z.ZodString;
460
- ownerId: z.ZodString;
461
- slug: z.ZodString;
462
- status: z.ZodString;
463
- avatar: z.ZodNullable<z.ZodString>;
464
- city: z.ZodNullable<z.ZodString>;
465
- state: z.ZodNullable<z.ZodString>;
466
- stateCd: z.ZodNullable<z.ZodString>;
467
- country: z.ZodNullable<z.ZodString>;
468
- createdAt: z.ZodNullable<z.ZodDate>;
469
- updatedAt: z.ZodNullable<z.ZodDate>;
470
- }, z.UnknownKeysParam, z.ZodTypeAny, {
471
- id: string;
472
- status: string;
473
- description: string;
474
- name: string;
475
- city: string | null;
476
- state: string | null;
477
- country: string | null;
478
- createdAt: Date | null;
479
- updatedAt: Date | null;
480
- ownerId: string;
481
- slug: string;
482
- avatar: string | null;
483
- stateCd: string | null;
484
- }, {
485
- id: string;
486
- status: string;
487
- description: string;
488
- name: string;
489
- city: string | null;
490
- state: string | null;
491
- country: string | null;
492
- createdAt: Date | null;
493
- updatedAt: Date | null;
494
- ownerId: string;
495
- slug: string;
496
- avatar: string | null;
497
- stateCd: string | null;
498
- }>;
499
- export declare const insertOrganizationSchema: z.ZodObject<Omit<{
500
- id: z.ZodOptional<z.ZodString>;
501
- status: z.ZodOptional<z.ZodString>;
502
- description: z.ZodString;
503
- name: z.ZodString;
504
- city: z.ZodNullable<z.ZodString>;
505
- state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
- country: z.ZodNullable<z.ZodString>;
507
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
508
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
509
- ownerId: z.ZodString;
510
- slug: z.ZodString;
511
- avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
512
- stateCd: z.ZodNullable<z.ZodString>;
513
- }, "id" | "createdAt" | "updatedAt" | "ownerId" | "slug">, z.UnknownKeysParam, z.ZodTypeAny, {
514
- description: string;
515
- name: string;
516
- city: string | null;
517
- country: string | null;
518
- stateCd: string | null;
519
- status?: string | undefined;
520
- state?: string | null | undefined;
521
- avatar?: string | null | undefined;
522
- }, {
523
- description: string;
524
- name: string;
525
- city: string | null;
526
- country: string | null;
527
- stateCd: string | null;
528
- status?: string | undefined;
529
- state?: string | null | undefined;
530
- avatar?: string | null | undefined;
531
- }>;
532
- export declare const insertOrganizationWebsiteSchema: z.ZodObject<Omit<{
533
- url: z.ZodString;
534
- id: z.ZodOptional<z.ZodString>;
535
- organizationId: z.ZodString;
536
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
537
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
538
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
- }, "id" | "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
540
- url: string;
541
- label?: string | null | undefined;
542
- }, {
543
- url: string;
544
- label?: string | null | undefined;
545
- }>;
546
- export declare const SOCIAL_MEDIA_PLATFORMS: readonly ["x", "facebook", "instagram"];
547
- export type SocialMediaPlatform = typeof SOCIAL_MEDIA_PLATFORMS[number];
548
- export declare const insertOrganizationSocialMediaSchema: z.ZodObject<Omit<{
549
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
- id: z.ZodOptional<z.ZodString>;
551
- organizationId: z.ZodString;
552
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
553
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
554
- platform: z.ZodEffects<z.ZodString, string, string>;
555
- handle: z.ZodString;
556
- }, "id" | "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
557
- platform: string;
558
- handle: string;
559
- url?: string | null | undefined;
560
- }, {
561
- platform: string;
562
- handle: string;
563
- url?: string | null | undefined;
564
- }>;
565
- export declare function generateSocialMediaUrl(platform: string, handle: string): string;
566
- export declare const insertOrganizationTagSchema: z.ZodObject<Omit<{
567
- organizationId: z.ZodString;
568
- createdAt: z.ZodOptional<z.ZodDate>;
569
- updatedAt: z.ZodOptional<z.ZodDate>;
570
- tagId: z.ZodString;
571
- }, "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
572
- tagId: string;
573
- }, {
574
- tagId: string;
575
- }>;
576
- export declare const getOrganizationWithDetailsSchema: z.ZodObject<z.objectUtil.extendShape<{
577
- id: z.ZodString;
578
- name: z.ZodString;
579
- description: z.ZodString;
580
- ownerId: z.ZodString;
581
- slug: z.ZodString;
582
- status: z.ZodString;
583
- avatar: z.ZodNullable<z.ZodString>;
584
- city: z.ZodNullable<z.ZodString>;
585
- state: z.ZodNullable<z.ZodString>;
586
- stateCd: z.ZodNullable<z.ZodString>;
587
- country: z.ZodNullable<z.ZodString>;
588
- createdAt: z.ZodNullable<z.ZodDate>;
589
- updatedAt: z.ZodNullable<z.ZodDate>;
590
- }, {
591
- tags: z.ZodArray<z.ZodObject<{
592
- id: z.ZodString;
593
- name: z.ZodString;
594
- }, "strip", z.ZodTypeAny, {
595
- id: string;
596
- name: string;
597
- }, {
598
- id: string;
599
- name: string;
600
- }>, "many">;
601
- websites: z.ZodArray<z.ZodObject<{
602
- id: z.ZodString;
603
- url: z.ZodString;
604
- label: z.ZodString;
605
- }, "strip", z.ZodTypeAny, {
606
- url: string;
607
- id: string;
608
- label: string;
609
- }, {
610
- url: string;
611
- id: string;
612
- label: string;
613
- }>, "many">;
614
- socialMedia: z.ZodArray<z.ZodObject<{
615
- id: z.ZodString;
616
- platform: z.ZodString;
617
- url: z.ZodString;
618
- handle: z.ZodString;
619
- }, "strip", z.ZodTypeAny, {
620
- url: string;
621
- id: string;
622
- platform: string;
623
- handle: string;
624
- }, {
625
- url: string;
626
- id: string;
627
- platform: string;
628
- handle: string;
629
- }>, "many">;
630
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
631
- id: string;
632
- status: string;
633
- description: string;
634
- name: string;
635
- city: string | null;
636
- state: string | null;
637
- country: string | null;
638
- createdAt: Date | null;
639
- updatedAt: Date | null;
640
- ownerId: string;
641
- slug: string;
642
- avatar: string | null;
643
- stateCd: string | null;
644
- tags: {
645
- id: string;
646
- name: string;
647
- }[];
648
- websites: {
649
- url: string;
650
- id: string;
651
- label: string;
652
- }[];
653
- socialMedia: {
654
- url: string;
655
- id: string;
656
- platform: string;
657
- handle: string;
658
- }[];
659
- }, {
660
- id: string;
661
- status: string;
662
- description: string;
663
- name: string;
664
- city: string | null;
665
- state: string | null;
666
- country: string | null;
667
- createdAt: Date | null;
668
- updatedAt: Date | null;
669
- ownerId: string;
670
- slug: string;
671
- avatar: string | null;
672
- stateCd: string | null;
673
- tags: {
674
- id: string;
675
- name: string;
676
- }[];
677
- websites: {
678
- url: string;
679
- id: string;
680
- label: string;
681
- }[];
682
- socialMedia: {
683
- url: string;
684
- id: string;
685
- platform: string;
686
- handle: string;
687
- }[];
688
- }>;
689
- export declare const createOrganizationWithDetailsSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
690
- id: z.ZodOptional<z.ZodString>;
691
- status: z.ZodOptional<z.ZodString>;
692
- description: z.ZodString;
693
- name: z.ZodString;
694
- city: z.ZodNullable<z.ZodString>;
695
- state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
- country: z.ZodNullable<z.ZodString>;
697
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
698
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
699
- ownerId: z.ZodString;
700
- slug: z.ZodString;
701
- avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
- stateCd: z.ZodNullable<z.ZodString>;
703
- }, "id" | "createdAt" | "updatedAt" | "ownerId" | "slug">, {
704
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
705
- organizationId: z.ZodString;
706
- createdAt: z.ZodOptional<z.ZodDate>;
707
- updatedAt: z.ZodOptional<z.ZodDate>;
708
- tagId: z.ZodString;
709
- }, "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
710
- tagId: string;
711
- }, {
712
- tagId: string;
713
- }>, "many">>;
714
- websites: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
715
- url: z.ZodString;
716
- id: z.ZodOptional<z.ZodString>;
717
- organizationId: z.ZodString;
718
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
719
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
720
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
721
- }, "id" | "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
722
- url: string;
723
- label?: string | null | undefined;
724
- }, {
725
- url: string;
726
- label?: string | null | undefined;
727
- }>, "many">>;
728
- socialMedia: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
729
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
730
- id: z.ZodOptional<z.ZodString>;
731
- organizationId: z.ZodString;
732
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
733
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
734
- platform: z.ZodEffects<z.ZodString, string, string>;
735
- handle: z.ZodString;
736
- }, "id" | "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
737
- platform: string;
738
- handle: string;
739
- url?: string | null | undefined;
740
- }, {
741
- platform: string;
742
- handle: string;
743
- url?: string | null | undefined;
744
- }>, "many">>;
745
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
746
- description: string;
747
- name: string;
748
- city: string | null;
749
- country: string | null;
750
- stateCd: string | null;
751
- status?: string | undefined;
752
- state?: string | null | undefined;
753
- avatar?: string | null | undefined;
754
- tags?: {
755
- tagId: string;
756
- }[] | undefined;
757
- websites?: {
758
- url: string;
759
- label?: string | null | undefined;
760
- }[] | undefined;
761
- socialMedia?: {
762
- platform: string;
763
- handle: string;
764
- url?: string | null | undefined;
765
- }[] | undefined;
766
- }, {
767
- description: string;
768
- name: string;
769
- city: string | null;
770
- country: string | null;
771
- stateCd: string | null;
772
- status?: string | undefined;
773
- state?: string | null | undefined;
774
- avatar?: string | null | undefined;
775
- tags?: {
776
- tagId: string;
777
- }[] | undefined;
778
- websites?: {
779
- url: string;
780
- label?: string | null | undefined;
781
- }[] | undefined;
782
- socialMedia?: {
783
- platform: string;
784
- handle: string;
785
- url?: string | null | undefined;
786
- }[] | undefined;
787
- }>;
788
- export declare const patchOrganizationSchema: z.ZodObject<z.objectUtil.extendShape<{
789
- status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
790
- description: z.ZodOptional<z.ZodString>;
791
- name: z.ZodOptional<z.ZodString>;
792
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
- state: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
794
- country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
- avatar: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
796
- stateCd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
- }, {
798
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
799
- organizationId: z.ZodString;
800
- createdAt: z.ZodOptional<z.ZodDate>;
801
- updatedAt: z.ZodOptional<z.ZodDate>;
802
- tagId: z.ZodString;
803
- }, "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
804
- tagId: string;
805
- }, {
806
- tagId: string;
807
- }>, "many">>;
808
- websites: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
809
- url: z.ZodString;
810
- id: z.ZodOptional<z.ZodString>;
811
- organizationId: z.ZodString;
812
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
813
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
814
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
- }, "id" | "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
816
- url: string;
817
- label?: string | null | undefined;
818
- }, {
819
- url: string;
820
- label?: string | null | undefined;
821
- }>, "many">>;
822
- socialMedia: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
823
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
824
- id: z.ZodOptional<z.ZodString>;
825
- organizationId: z.ZodString;
826
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
827
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
828
- platform: z.ZodEffects<z.ZodString, string, string>;
829
- handle: z.ZodString;
830
- }, "id" | "organizationId" | "createdAt" | "updatedAt">, z.UnknownKeysParam, z.ZodTypeAny, {
831
- platform: string;
832
- handle: string;
833
- url?: string | null | undefined;
834
- }, {
835
- platform: string;
836
- handle: string;
837
- url?: string | null | undefined;
838
- }>, "many">>;
839
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
840
- status?: string | undefined;
841
- description?: string | undefined;
842
- name?: string | undefined;
843
- city?: string | null | undefined;
844
- state?: string | null | undefined;
845
- country?: string | null | undefined;
846
- avatar?: string | null | undefined;
847
- stateCd?: string | null | undefined;
848
- tags?: {
849
- tagId: string;
850
- }[] | undefined;
851
- websites?: {
852
- url: string;
853
- label?: string | null | undefined;
854
- }[] | undefined;
855
- socialMedia?: {
856
- platform: string;
857
- handle: string;
858
- url?: string | null | undefined;
859
- }[] | undefined;
860
- }, {
861
- status?: string | undefined;
862
- description?: string | undefined;
863
- name?: string | undefined;
864
- city?: string | null | undefined;
865
- state?: string | null | undefined;
866
- country?: string | null | undefined;
867
- avatar?: string | null | undefined;
868
- stateCd?: string | null | undefined;
869
- tags?: {
870
- tagId: string;
871
- }[] | undefined;
872
- websites?: {
873
- url: string;
874
- label?: string | null | undefined;
875
- }[] | undefined;
876
- socialMedia?: {
877
- platform: string;
878
- handle: string;
879
- url?: string | null | undefined;
880
- }[] | undefined;
881
- }>;
882
- export default organization;