@ndrs92/contracts 0.0.0-stage → 0.2.0

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 (57) hide show
  1. package/dist/cjs/business/business.owner.schema.d.ts +605 -0
  2. package/dist/cjs/business/business.owner.schema.js +68 -0
  3. package/dist/cjs/business/business.owner.schema.js.map +1 -0
  4. package/dist/cjs/business/business.owner.types.d.ts +5 -0
  5. package/dist/cjs/business/business.owner.types.js +3 -0
  6. package/dist/cjs/business/business.owner.types.js.map +1 -0
  7. package/dist/cjs/business/business.request.schema.d.ts +322 -0
  8. package/dist/cjs/business/business.request.schema.js +111 -0
  9. package/dist/cjs/business/business.request.schema.js.map +1 -0
  10. package/dist/cjs/business/business.request.types.d.ts +6 -0
  11. package/dist/cjs/business/business.request.types.js +3 -0
  12. package/dist/cjs/business/business.request.types.js.map +1 -0
  13. package/dist/cjs/business/business.schema.d.ts +427 -0
  14. package/dist/cjs/business/business.schema.js +211 -0
  15. package/dist/cjs/business/business.schema.js.map +1 -0
  16. package/dist/cjs/business/business.types.d.ts +3 -0
  17. package/dist/cjs/business/business.types.js +3 -0
  18. package/dist/cjs/business/business.types.js.map +1 -0
  19. package/dist/cjs/event/event.schema.d.ts +101 -0
  20. package/dist/cjs/event/event.schema.js +58 -0
  21. package/dist/cjs/event/event.schema.js.map +1 -0
  22. package/dist/cjs/event/event.types.d.ts +4 -0
  23. package/dist/cjs/event/event.types.js +3 -0
  24. package/dist/cjs/event/event.types.js.map +1 -0
  25. package/dist/cjs/index.d.ts +8 -0
  26. package/dist/cjs/index.js +30 -0
  27. package/dist/cjs/index.js.map +1 -0
  28. package/dist/cjs/package.json +3 -0
  29. package/dist/esm/business/business.owner.schema.d.ts +605 -0
  30. package/dist/esm/business/business.owner.schema.js +65 -0
  31. package/dist/esm/business/business.owner.schema.js.map +1 -0
  32. package/dist/esm/business/business.owner.types.d.ts +5 -0
  33. package/dist/esm/business/business.owner.types.js +2 -0
  34. package/dist/esm/business/business.owner.types.js.map +1 -0
  35. package/dist/esm/business/business.request.schema.d.ts +322 -0
  36. package/dist/esm/business/business.request.schema.js +108 -0
  37. package/dist/esm/business/business.request.schema.js.map +1 -0
  38. package/dist/esm/business/business.request.types.d.ts +6 -0
  39. package/dist/esm/business/business.request.types.js +2 -0
  40. package/dist/esm/business/business.request.types.js.map +1 -0
  41. package/dist/esm/business/business.schema.d.ts +427 -0
  42. package/dist/esm/business/business.schema.js +208 -0
  43. package/dist/esm/business/business.schema.js.map +1 -0
  44. package/dist/esm/business/business.types.d.ts +3 -0
  45. package/dist/esm/business/business.types.js +2 -0
  46. package/dist/esm/business/business.types.js.map +1 -0
  47. package/dist/esm/event/event.schema.d.ts +101 -0
  48. package/dist/esm/event/event.schema.js +55 -0
  49. package/dist/esm/event/event.schema.js.map +1 -0
  50. package/dist/esm/event/event.types.d.ts +4 -0
  51. package/dist/esm/event/event.types.js +2 -0
  52. package/dist/esm/event/event.types.js.map +1 -0
  53. package/dist/esm/index.d.ts +8 -0
  54. package/dist/esm/index.js +5 -0
  55. package/dist/esm/index.js.map +1 -0
  56. package/package.json +33 -6
  57. package/README.md +0 -3
@@ -0,0 +1,605 @@
1
+ import { z } from "zod";
2
+ /** Owner-facing Business JSON; deliberately excludes owner, moderation and internal scoring/reviewer fields. */
3
+ export declare const OwnerBusinessSchema: z.ZodObject<{
4
+ _id: z.ZodString;
5
+ slug: z.ZodString;
6
+ name: z.ZodString;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ providerType: z.ZodEnum<{
9
+ community: "community";
10
+ business: "business";
11
+ }>;
12
+ category: z.ZodEnum<{
13
+ food: "food";
14
+ entertainment: "entertainment";
15
+ services: "services";
16
+ shopping: "shopping";
17
+ education: "education";
18
+ health: "health";
19
+ }>;
20
+ subCategory: z.ZodOptional<z.ZodEnum<{
21
+ restaurant: "restaurant";
22
+ cafe: "cafe";
23
+ bar: "bar";
24
+ bakery: "bakery";
25
+ catering: "catering";
26
+ club: "club";
27
+ event_venue: "event_venue";
28
+ event_organizer: "event_organizer";
29
+ cultural_center: "cultural_center";
30
+ dance_school: "dance_school";
31
+ beauty_salon: "beauty_salon";
32
+ barbershop: "barbershop";
33
+ repair: "repair";
34
+ agency: "agency";
35
+ translator: "translator";
36
+ photographer: "photographer";
37
+ freelancer: "freelancer";
38
+ latin_store: "latin_store";
39
+ supermarket: "supermarket";
40
+ clothing: "clothing";
41
+ product_seller: "product_seller";
42
+ language_school: "language_school";
43
+ academy: "academy";
44
+ private_teacher: "private_teacher";
45
+ clinic: "clinic";
46
+ gym: "gym";
47
+ }>>;
48
+ profile: z.ZodObject<{
49
+ headline: z.ZodOptional<z.ZodString>;
50
+ services: z.ZodArray<z.ZodString>;
51
+ specialties: z.ZodArray<z.ZodString>;
52
+ languages: z.ZodArray<z.ZodString>;
53
+ serviceArea: z.ZodArray<z.ZodString>;
54
+ availability: z.ZodOptional<z.ZodObject<{
55
+ type: z.ZodEnum<{
56
+ appointment: "appointment";
57
+ walk_in: "walk_in";
58
+ online: "online";
59
+ flexible: "flexible";
60
+ }>;
61
+ description: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strip>>;
63
+ openingHours: z.ZodOptional<z.ZodObject<{
64
+ monday: z.ZodObject<{
65
+ isOpen: z.ZodBoolean;
66
+ intervals: z.ZodArray<z.ZodObject<{
67
+ open: z.ZodString;
68
+ close: z.ZodString;
69
+ }, z.core.$strict>>;
70
+ }, z.core.$strict>;
71
+ tuesday: z.ZodObject<{
72
+ isOpen: z.ZodBoolean;
73
+ intervals: z.ZodArray<z.ZodObject<{
74
+ open: z.ZodString;
75
+ close: z.ZodString;
76
+ }, z.core.$strict>>;
77
+ }, z.core.$strict>;
78
+ wednesday: z.ZodObject<{
79
+ isOpen: z.ZodBoolean;
80
+ intervals: z.ZodArray<z.ZodObject<{
81
+ open: z.ZodString;
82
+ close: z.ZodString;
83
+ }, z.core.$strict>>;
84
+ }, z.core.$strict>;
85
+ thursday: z.ZodObject<{
86
+ isOpen: z.ZodBoolean;
87
+ intervals: z.ZodArray<z.ZodObject<{
88
+ open: z.ZodString;
89
+ close: z.ZodString;
90
+ }, z.core.$strict>>;
91
+ }, z.core.$strict>;
92
+ friday: z.ZodObject<{
93
+ isOpen: z.ZodBoolean;
94
+ intervals: z.ZodArray<z.ZodObject<{
95
+ open: z.ZodString;
96
+ close: z.ZodString;
97
+ }, z.core.$strict>>;
98
+ }, z.core.$strict>;
99
+ saturday: z.ZodObject<{
100
+ isOpen: z.ZodBoolean;
101
+ intervals: z.ZodArray<z.ZodObject<{
102
+ open: z.ZodString;
103
+ close: z.ZodString;
104
+ }, z.core.$strict>>;
105
+ }, z.core.$strict>;
106
+ sunday: z.ZodObject<{
107
+ isOpen: z.ZodBoolean;
108
+ intervals: z.ZodArray<z.ZodObject<{
109
+ open: z.ZodString;
110
+ close: z.ZodString;
111
+ }, z.core.$strict>>;
112
+ }, z.core.$strict>;
113
+ }, z.core.$strict>>;
114
+ pricing: z.ZodOptional<z.ZodObject<{
115
+ type: z.ZodEnum<{
116
+ fixed: "fixed";
117
+ hourly: "hourly";
118
+ starting_at: "starting_at";
119
+ range: "range";
120
+ }>;
121
+ currency: z.ZodLiteral<"EUR">;
122
+ amount: z.ZodOptional<z.ZodNumber>;
123
+ minAmount: z.ZodOptional<z.ZodNumber>;
124
+ maxAmount: z.ZodOptional<z.ZodNumber>;
125
+ description: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>;
128
+ images: z.ZodObject<{
129
+ profile: z.ZodString;
130
+ cover: z.ZodOptional<z.ZodString>;
131
+ gallery: z.ZodArray<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ documents: z.ZodArray<z.ZodObject<{
134
+ type: z.ZodEnum<{
135
+ menu: "menu";
136
+ catalog: "catalog";
137
+ portfolio: "portfolio";
138
+ brochure: "brochure";
139
+ }>;
140
+ url: z.ZodString;
141
+ name: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strip>>;
143
+ location: z.ZodObject<{
144
+ address: z.ZodOptional<z.ZodString>;
145
+ cityId: z.ZodString;
146
+ country: z.ZodOptional<z.ZodString>;
147
+ coordinates: z.ZodOptional<z.ZodObject<{
148
+ lat: z.ZodNumber;
149
+ lng: z.ZodNumber;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>;
152
+ contact: z.ZodObject<{
153
+ email: z.ZodOptional<z.ZodString>;
154
+ phone: z.ZodOptional<z.ZodString>;
155
+ website: z.ZodOptional<z.ZodString>;
156
+ instagram: z.ZodOptional<z.ZodString>;
157
+ whatsapp: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strip>;
159
+ community: z.ZodObject<{
160
+ isLatinoOwned: z.ZodBoolean;
161
+ countryOfOrigin: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>;
163
+ tags: z.ZodArray<z.ZodString>;
164
+ menu: z.ZodOptional<z.ZodString>;
165
+ priceRange: z.ZodOptional<z.ZodEnum<{
166
+ $: "$";
167
+ $$: "$$";
168
+ $$$: "$$$";
169
+ }>>;
170
+ languages: z.ZodArray<z.ZodString>;
171
+ isLatinoOwned: z.ZodBoolean;
172
+ countryOfOrigin: z.ZodOptional<z.ZodString>;
173
+ rating: z.ZodObject<{
174
+ average: z.ZodNumber;
175
+ count: z.ZodNumber;
176
+ }, z.core.$strip>;
177
+ likesCount: z.ZodNumber;
178
+ followersCount: z.ZodNumber;
179
+ eventsCount: z.ZodNumber;
180
+ verification: z.ZodObject<{
181
+ status: z.ZodEnum<{
182
+ unverified: "unverified";
183
+ pending: "pending";
184
+ verified: "verified";
185
+ rejected: "rejected";
186
+ }>;
187
+ checks: z.ZodObject<{
188
+ identity: z.ZodBoolean;
189
+ contact: z.ZodBoolean;
190
+ activity: z.ZodBoolean;
191
+ }, z.core.$strip>;
192
+ verifiedAt: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>;
194
+ isFeatured: z.ZodBoolean;
195
+ status: z.ZodEnum<{
196
+ active: "active";
197
+ blocked: "blocked";
198
+ }>;
199
+ createdAt: z.ZodISODateTime;
200
+ updatedAt: z.ZodISODateTime;
201
+ }, z.core.$strict>;
202
+ export declare const OwnerBusinessResponseSchema: z.ZodObject<{
203
+ success: z.ZodLiteral<true>;
204
+ data: z.ZodObject<{
205
+ _id: z.ZodString;
206
+ slug: z.ZodString;
207
+ name: z.ZodString;
208
+ description: z.ZodOptional<z.ZodString>;
209
+ providerType: z.ZodEnum<{
210
+ community: "community";
211
+ business: "business";
212
+ }>;
213
+ category: z.ZodEnum<{
214
+ food: "food";
215
+ entertainment: "entertainment";
216
+ services: "services";
217
+ shopping: "shopping";
218
+ education: "education";
219
+ health: "health";
220
+ }>;
221
+ subCategory: z.ZodOptional<z.ZodEnum<{
222
+ restaurant: "restaurant";
223
+ cafe: "cafe";
224
+ bar: "bar";
225
+ bakery: "bakery";
226
+ catering: "catering";
227
+ club: "club";
228
+ event_venue: "event_venue";
229
+ event_organizer: "event_organizer";
230
+ cultural_center: "cultural_center";
231
+ dance_school: "dance_school";
232
+ beauty_salon: "beauty_salon";
233
+ barbershop: "barbershop";
234
+ repair: "repair";
235
+ agency: "agency";
236
+ translator: "translator";
237
+ photographer: "photographer";
238
+ freelancer: "freelancer";
239
+ latin_store: "latin_store";
240
+ supermarket: "supermarket";
241
+ clothing: "clothing";
242
+ product_seller: "product_seller";
243
+ language_school: "language_school";
244
+ academy: "academy";
245
+ private_teacher: "private_teacher";
246
+ clinic: "clinic";
247
+ gym: "gym";
248
+ }>>;
249
+ profile: z.ZodObject<{
250
+ headline: z.ZodOptional<z.ZodString>;
251
+ services: z.ZodArray<z.ZodString>;
252
+ specialties: z.ZodArray<z.ZodString>;
253
+ languages: z.ZodArray<z.ZodString>;
254
+ serviceArea: z.ZodArray<z.ZodString>;
255
+ availability: z.ZodOptional<z.ZodObject<{
256
+ type: z.ZodEnum<{
257
+ appointment: "appointment";
258
+ walk_in: "walk_in";
259
+ online: "online";
260
+ flexible: "flexible";
261
+ }>;
262
+ description: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strip>>;
264
+ openingHours: z.ZodOptional<z.ZodObject<{
265
+ monday: z.ZodObject<{
266
+ isOpen: z.ZodBoolean;
267
+ intervals: z.ZodArray<z.ZodObject<{
268
+ open: z.ZodString;
269
+ close: z.ZodString;
270
+ }, z.core.$strict>>;
271
+ }, z.core.$strict>;
272
+ tuesday: z.ZodObject<{
273
+ isOpen: z.ZodBoolean;
274
+ intervals: z.ZodArray<z.ZodObject<{
275
+ open: z.ZodString;
276
+ close: z.ZodString;
277
+ }, z.core.$strict>>;
278
+ }, z.core.$strict>;
279
+ wednesday: z.ZodObject<{
280
+ isOpen: z.ZodBoolean;
281
+ intervals: z.ZodArray<z.ZodObject<{
282
+ open: z.ZodString;
283
+ close: z.ZodString;
284
+ }, z.core.$strict>>;
285
+ }, z.core.$strict>;
286
+ thursday: z.ZodObject<{
287
+ isOpen: z.ZodBoolean;
288
+ intervals: z.ZodArray<z.ZodObject<{
289
+ open: z.ZodString;
290
+ close: z.ZodString;
291
+ }, z.core.$strict>>;
292
+ }, z.core.$strict>;
293
+ friday: z.ZodObject<{
294
+ isOpen: z.ZodBoolean;
295
+ intervals: z.ZodArray<z.ZodObject<{
296
+ open: z.ZodString;
297
+ close: z.ZodString;
298
+ }, z.core.$strict>>;
299
+ }, z.core.$strict>;
300
+ saturday: z.ZodObject<{
301
+ isOpen: z.ZodBoolean;
302
+ intervals: z.ZodArray<z.ZodObject<{
303
+ open: z.ZodString;
304
+ close: z.ZodString;
305
+ }, z.core.$strict>>;
306
+ }, z.core.$strict>;
307
+ sunday: z.ZodObject<{
308
+ isOpen: z.ZodBoolean;
309
+ intervals: z.ZodArray<z.ZodObject<{
310
+ open: z.ZodString;
311
+ close: z.ZodString;
312
+ }, z.core.$strict>>;
313
+ }, z.core.$strict>;
314
+ }, z.core.$strict>>;
315
+ pricing: z.ZodOptional<z.ZodObject<{
316
+ type: z.ZodEnum<{
317
+ fixed: "fixed";
318
+ hourly: "hourly";
319
+ starting_at: "starting_at";
320
+ range: "range";
321
+ }>;
322
+ currency: z.ZodLiteral<"EUR">;
323
+ amount: z.ZodOptional<z.ZodNumber>;
324
+ minAmount: z.ZodOptional<z.ZodNumber>;
325
+ maxAmount: z.ZodOptional<z.ZodNumber>;
326
+ description: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>;
329
+ images: z.ZodObject<{
330
+ profile: z.ZodString;
331
+ cover: z.ZodOptional<z.ZodString>;
332
+ gallery: z.ZodArray<z.ZodString>;
333
+ }, z.core.$strip>;
334
+ documents: z.ZodArray<z.ZodObject<{
335
+ type: z.ZodEnum<{
336
+ menu: "menu";
337
+ catalog: "catalog";
338
+ portfolio: "portfolio";
339
+ brochure: "brochure";
340
+ }>;
341
+ url: z.ZodString;
342
+ name: z.ZodOptional<z.ZodString>;
343
+ }, z.core.$strip>>;
344
+ location: z.ZodObject<{
345
+ address: z.ZodOptional<z.ZodString>;
346
+ cityId: z.ZodString;
347
+ country: z.ZodOptional<z.ZodString>;
348
+ coordinates: z.ZodOptional<z.ZodObject<{
349
+ lat: z.ZodNumber;
350
+ lng: z.ZodNumber;
351
+ }, z.core.$strip>>;
352
+ }, z.core.$strip>;
353
+ contact: z.ZodObject<{
354
+ email: z.ZodOptional<z.ZodString>;
355
+ phone: z.ZodOptional<z.ZodString>;
356
+ website: z.ZodOptional<z.ZodString>;
357
+ instagram: z.ZodOptional<z.ZodString>;
358
+ whatsapp: z.ZodOptional<z.ZodString>;
359
+ }, z.core.$strip>;
360
+ community: z.ZodObject<{
361
+ isLatinoOwned: z.ZodBoolean;
362
+ countryOfOrigin: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>;
364
+ tags: z.ZodArray<z.ZodString>;
365
+ menu: z.ZodOptional<z.ZodString>;
366
+ priceRange: z.ZodOptional<z.ZodEnum<{
367
+ $: "$";
368
+ $$: "$$";
369
+ $$$: "$$$";
370
+ }>>;
371
+ languages: z.ZodArray<z.ZodString>;
372
+ isLatinoOwned: z.ZodBoolean;
373
+ countryOfOrigin: z.ZodOptional<z.ZodString>;
374
+ rating: z.ZodObject<{
375
+ average: z.ZodNumber;
376
+ count: z.ZodNumber;
377
+ }, z.core.$strip>;
378
+ likesCount: z.ZodNumber;
379
+ followersCount: z.ZodNumber;
380
+ eventsCount: z.ZodNumber;
381
+ verification: z.ZodObject<{
382
+ status: z.ZodEnum<{
383
+ unverified: "unverified";
384
+ pending: "pending";
385
+ verified: "verified";
386
+ rejected: "rejected";
387
+ }>;
388
+ checks: z.ZodObject<{
389
+ identity: z.ZodBoolean;
390
+ contact: z.ZodBoolean;
391
+ activity: z.ZodBoolean;
392
+ }, z.core.$strip>;
393
+ verifiedAt: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strip>;
395
+ isFeatured: z.ZodBoolean;
396
+ status: z.ZodEnum<{
397
+ active: "active";
398
+ blocked: "blocked";
399
+ }>;
400
+ createdAt: z.ZodISODateTime;
401
+ updatedAt: z.ZodISODateTime;
402
+ }, z.core.$strict>;
403
+ }, z.core.$strip>;
404
+ export declare const OwnerBusinessesResponseSchema: z.ZodObject<{
405
+ success: z.ZodLiteral<true>;
406
+ data: z.ZodArray<z.ZodObject<{
407
+ _id: z.ZodString;
408
+ slug: z.ZodString;
409
+ name: z.ZodString;
410
+ description: z.ZodOptional<z.ZodString>;
411
+ providerType: z.ZodEnum<{
412
+ community: "community";
413
+ business: "business";
414
+ }>;
415
+ category: z.ZodEnum<{
416
+ food: "food";
417
+ entertainment: "entertainment";
418
+ services: "services";
419
+ shopping: "shopping";
420
+ education: "education";
421
+ health: "health";
422
+ }>;
423
+ subCategory: z.ZodOptional<z.ZodEnum<{
424
+ restaurant: "restaurant";
425
+ cafe: "cafe";
426
+ bar: "bar";
427
+ bakery: "bakery";
428
+ catering: "catering";
429
+ club: "club";
430
+ event_venue: "event_venue";
431
+ event_organizer: "event_organizer";
432
+ cultural_center: "cultural_center";
433
+ dance_school: "dance_school";
434
+ beauty_salon: "beauty_salon";
435
+ barbershop: "barbershop";
436
+ repair: "repair";
437
+ agency: "agency";
438
+ translator: "translator";
439
+ photographer: "photographer";
440
+ freelancer: "freelancer";
441
+ latin_store: "latin_store";
442
+ supermarket: "supermarket";
443
+ clothing: "clothing";
444
+ product_seller: "product_seller";
445
+ language_school: "language_school";
446
+ academy: "academy";
447
+ private_teacher: "private_teacher";
448
+ clinic: "clinic";
449
+ gym: "gym";
450
+ }>>;
451
+ profile: z.ZodObject<{
452
+ headline: z.ZodOptional<z.ZodString>;
453
+ services: z.ZodArray<z.ZodString>;
454
+ specialties: z.ZodArray<z.ZodString>;
455
+ languages: z.ZodArray<z.ZodString>;
456
+ serviceArea: z.ZodArray<z.ZodString>;
457
+ availability: z.ZodOptional<z.ZodObject<{
458
+ type: z.ZodEnum<{
459
+ appointment: "appointment";
460
+ walk_in: "walk_in";
461
+ online: "online";
462
+ flexible: "flexible";
463
+ }>;
464
+ description: z.ZodOptional<z.ZodString>;
465
+ }, z.core.$strip>>;
466
+ openingHours: z.ZodOptional<z.ZodObject<{
467
+ monday: z.ZodObject<{
468
+ isOpen: z.ZodBoolean;
469
+ intervals: z.ZodArray<z.ZodObject<{
470
+ open: z.ZodString;
471
+ close: z.ZodString;
472
+ }, z.core.$strict>>;
473
+ }, z.core.$strict>;
474
+ tuesday: z.ZodObject<{
475
+ isOpen: z.ZodBoolean;
476
+ intervals: z.ZodArray<z.ZodObject<{
477
+ open: z.ZodString;
478
+ close: z.ZodString;
479
+ }, z.core.$strict>>;
480
+ }, z.core.$strict>;
481
+ wednesday: z.ZodObject<{
482
+ isOpen: z.ZodBoolean;
483
+ intervals: z.ZodArray<z.ZodObject<{
484
+ open: z.ZodString;
485
+ close: z.ZodString;
486
+ }, z.core.$strict>>;
487
+ }, z.core.$strict>;
488
+ thursday: z.ZodObject<{
489
+ isOpen: z.ZodBoolean;
490
+ intervals: z.ZodArray<z.ZodObject<{
491
+ open: z.ZodString;
492
+ close: z.ZodString;
493
+ }, z.core.$strict>>;
494
+ }, z.core.$strict>;
495
+ friday: z.ZodObject<{
496
+ isOpen: z.ZodBoolean;
497
+ intervals: z.ZodArray<z.ZodObject<{
498
+ open: z.ZodString;
499
+ close: z.ZodString;
500
+ }, z.core.$strict>>;
501
+ }, z.core.$strict>;
502
+ saturday: z.ZodObject<{
503
+ isOpen: z.ZodBoolean;
504
+ intervals: z.ZodArray<z.ZodObject<{
505
+ open: z.ZodString;
506
+ close: z.ZodString;
507
+ }, z.core.$strict>>;
508
+ }, z.core.$strict>;
509
+ sunday: z.ZodObject<{
510
+ isOpen: z.ZodBoolean;
511
+ intervals: z.ZodArray<z.ZodObject<{
512
+ open: z.ZodString;
513
+ close: z.ZodString;
514
+ }, z.core.$strict>>;
515
+ }, z.core.$strict>;
516
+ }, z.core.$strict>>;
517
+ pricing: z.ZodOptional<z.ZodObject<{
518
+ type: z.ZodEnum<{
519
+ fixed: "fixed";
520
+ hourly: "hourly";
521
+ starting_at: "starting_at";
522
+ range: "range";
523
+ }>;
524
+ currency: z.ZodLiteral<"EUR">;
525
+ amount: z.ZodOptional<z.ZodNumber>;
526
+ minAmount: z.ZodOptional<z.ZodNumber>;
527
+ maxAmount: z.ZodOptional<z.ZodNumber>;
528
+ description: z.ZodOptional<z.ZodString>;
529
+ }, z.core.$strip>>;
530
+ }, z.core.$strip>;
531
+ images: z.ZodObject<{
532
+ profile: z.ZodString;
533
+ cover: z.ZodOptional<z.ZodString>;
534
+ gallery: z.ZodArray<z.ZodString>;
535
+ }, z.core.$strip>;
536
+ documents: z.ZodArray<z.ZodObject<{
537
+ type: z.ZodEnum<{
538
+ menu: "menu";
539
+ catalog: "catalog";
540
+ portfolio: "portfolio";
541
+ brochure: "brochure";
542
+ }>;
543
+ url: z.ZodString;
544
+ name: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strip>>;
546
+ location: z.ZodObject<{
547
+ address: z.ZodOptional<z.ZodString>;
548
+ cityId: z.ZodString;
549
+ country: z.ZodOptional<z.ZodString>;
550
+ coordinates: z.ZodOptional<z.ZodObject<{
551
+ lat: z.ZodNumber;
552
+ lng: z.ZodNumber;
553
+ }, z.core.$strip>>;
554
+ }, z.core.$strip>;
555
+ contact: z.ZodObject<{
556
+ email: z.ZodOptional<z.ZodString>;
557
+ phone: z.ZodOptional<z.ZodString>;
558
+ website: z.ZodOptional<z.ZodString>;
559
+ instagram: z.ZodOptional<z.ZodString>;
560
+ whatsapp: z.ZodOptional<z.ZodString>;
561
+ }, z.core.$strip>;
562
+ community: z.ZodObject<{
563
+ isLatinoOwned: z.ZodBoolean;
564
+ countryOfOrigin: z.ZodOptional<z.ZodString>;
565
+ }, z.core.$strip>;
566
+ tags: z.ZodArray<z.ZodString>;
567
+ menu: z.ZodOptional<z.ZodString>;
568
+ priceRange: z.ZodOptional<z.ZodEnum<{
569
+ $: "$";
570
+ $$: "$$";
571
+ $$$: "$$$";
572
+ }>>;
573
+ languages: z.ZodArray<z.ZodString>;
574
+ isLatinoOwned: z.ZodBoolean;
575
+ countryOfOrigin: z.ZodOptional<z.ZodString>;
576
+ rating: z.ZodObject<{
577
+ average: z.ZodNumber;
578
+ count: z.ZodNumber;
579
+ }, z.core.$strip>;
580
+ likesCount: z.ZodNumber;
581
+ followersCount: z.ZodNumber;
582
+ eventsCount: z.ZodNumber;
583
+ verification: z.ZodObject<{
584
+ status: z.ZodEnum<{
585
+ unverified: "unverified";
586
+ pending: "pending";
587
+ verified: "verified";
588
+ rejected: "rejected";
589
+ }>;
590
+ checks: z.ZodObject<{
591
+ identity: z.ZodBoolean;
592
+ contact: z.ZodBoolean;
593
+ activity: z.ZodBoolean;
594
+ }, z.core.$strip>;
595
+ verifiedAt: z.ZodOptional<z.ZodString>;
596
+ }, z.core.$strip>;
597
+ isFeatured: z.ZodBoolean;
598
+ status: z.ZodEnum<{
599
+ active: "active";
600
+ blocked: "blocked";
601
+ }>;
602
+ createdAt: z.ZodISODateTime;
603
+ updatedAt: z.ZodISODateTime;
604
+ }, z.core.$strict>>;
605
+ }, z.core.$strip>;
@@ -0,0 +1,65 @@
1
+ import { z } from "zod";
2
+ import { BusinessAvailabilityTypeSchema, BusinessCategorySchema, BusinessDocumentTypeSchema, BusinessPricingTypeSchema, BusinessProviderTypeSchema, BusinessSubCategorySchema, BusinessVerificationStatusSchema, OpeningHoursSchema, } from "./business.schema.js";
3
+ const OwnerBusinessProfileSchema = z.object({
4
+ headline: z.string().optional(),
5
+ services: z.array(z.string()),
6
+ specialties: z.array(z.string()),
7
+ languages: z.array(z.string()),
8
+ serviceArea: z.array(z.string()),
9
+ availability: z.object({ type: BusinessAvailabilityTypeSchema, description: z.string().optional() }).optional(),
10
+ openingHours: OpeningHoursSchema.optional(),
11
+ pricing: z.object({
12
+ type: BusinessPricingTypeSchema, currency: z.literal("EUR"), amount: z.number().optional(),
13
+ minAmount: z.number().optional(), maxAmount: z.number().optional(), description: z.string().optional(),
14
+ }).optional(),
15
+ });
16
+ /** Owner-facing Business JSON; deliberately excludes owner, moderation and internal scoring/reviewer fields. */
17
+ export const OwnerBusinessSchema = z.object({
18
+ _id: z.string(),
19
+ slug: z.string(),
20
+ name: z.string(),
21
+ description: z.string().optional(),
22
+ providerType: BusinessProviderTypeSchema,
23
+ category: BusinessCategorySchema,
24
+ subCategory: BusinessSubCategorySchema.optional(),
25
+ profile: OwnerBusinessProfileSchema,
26
+ images: z.object({ profile: z.string(), cover: z.string().optional(), gallery: z.array(z.string()) }),
27
+ documents: z.array(z.object({ type: BusinessDocumentTypeSchema, url: z.string(), name: z.string().optional() })),
28
+ location: z.object({
29
+ address: z.string().optional(), cityId: z.string(), country: z.string().optional(),
30
+ coordinates: z.object({ lat: z.number(), lng: z.number() }).optional(),
31
+ }),
32
+ contact: z.object({
33
+ email: z.string().optional(), phone: z.string().optional(), website: z.string().optional(),
34
+ instagram: z.string().optional(), whatsapp: z.string().optional(),
35
+ }),
36
+ community: z.object({ isLatinoOwned: z.boolean(), countryOfOrigin: z.string().optional() }),
37
+ tags: z.array(z.string()),
38
+ menu: z.string().optional(),
39
+ priceRange: z.enum(["$", "$$", "$$$"]).optional(),
40
+ languages: z.array(z.string()),
41
+ isLatinoOwned: z.boolean(),
42
+ countryOfOrigin: z.string().optional(),
43
+ rating: z.object({ average: z.number(), count: z.number() }),
44
+ likesCount: z.number(),
45
+ followersCount: z.number(),
46
+ eventsCount: z.number(),
47
+ verification: z.object({
48
+ status: BusinessVerificationStatusSchema,
49
+ checks: z.object({ identity: z.boolean(), contact: z.boolean(), activity: z.boolean() }),
50
+ verifiedAt: z.string().optional(),
51
+ }),
52
+ isFeatured: z.boolean(),
53
+ status: z.enum(["active", "blocked"]),
54
+ createdAt: z.iso.datetime(),
55
+ updatedAt: z.iso.datetime(),
56
+ }).strict();
57
+ export const OwnerBusinessResponseSchema = z.object({
58
+ success: z.literal(true),
59
+ data: OwnerBusinessSchema,
60
+ });
61
+ export const OwnerBusinessesResponseSchema = z.object({
62
+ success: z.literal(true),
63
+ data: z.array(OwnerBusinessSchema),
64
+ });
65
+ //# sourceMappingURL=business.owner.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.owner.schema.js","sourceRoot":"","sources":["../../../src/business/business.owner.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,gCAAgC,EAChC,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CA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AE;IAC3B,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,IAAI,EAAE,mBAAmB;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACnC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { z } from "zod";
2
+ import { OwnerBusinessSchema, OwnerBusinessResponseSchema, OwnerBusinessesResponseSchema } from "./business.owner.schema.js";
3
+ export type OwnerBusiness = z.infer<typeof OwnerBusinessSchema>;
4
+ export type OwnerBusinessResponse = z.infer<typeof OwnerBusinessResponseSchema>;
5
+ export type OwnerBusinessesResponse = z.infer<typeof OwnerBusinessesResponseSchema>;
@@ -0,0 +1,2 @@
1
+ import { OwnerBusinessSchema, OwnerBusinessResponseSchema, OwnerBusinessesResponseSchema, } from "./business.owner.schema.js";
2
+ //# sourceMappingURL=business.owner.types.js.map