@ndrs92/contracts 0.1.0 → 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 (33) 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/index.d.ts +4 -0
  14. package/dist/cjs/index.js +8 -1
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/esm/business/business.owner.schema.d.ts +605 -0
  17. package/dist/esm/business/business.owner.schema.js +65 -0
  18. package/dist/esm/business/business.owner.schema.js.map +1 -0
  19. package/dist/esm/business/business.owner.types.d.ts +5 -0
  20. package/dist/esm/business/business.owner.types.js +2 -0
  21. package/dist/esm/business/business.owner.types.js.map +1 -0
  22. package/dist/esm/business/business.request.schema.d.ts +322 -0
  23. package/dist/esm/business/business.request.schema.js +108 -0
  24. package/dist/esm/business/business.request.schema.js.map +1 -0
  25. package/dist/esm/business/business.request.types.d.ts +6 -0
  26. package/dist/esm/business/business.request.types.js +2 -0
  27. package/dist/esm/business/business.request.types.js.map +1 -0
  28. package/dist/esm/index.d.ts +4 -0
  29. package/dist/esm/index.js +2 -0
  30. package/dist/esm/index.js.map +1 -1
  31. package/package.json +3 -3
  32. package/dist/tsconfig.cjs.tsbuildinfo +0 -1
  33. package/dist/tsconfig.esm.tsbuildinfo +0 -1
@@ -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,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OwnerBusinessesResponseSchema = exports.OwnerBusinessResponseSchema = exports.OwnerBusinessSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const business_schema_js_1 = require("./business.schema.js");
6
+ const OwnerBusinessProfileSchema = zod_1.z.object({
7
+ headline: zod_1.z.string().optional(),
8
+ services: zod_1.z.array(zod_1.z.string()),
9
+ specialties: zod_1.z.array(zod_1.z.string()),
10
+ languages: zod_1.z.array(zod_1.z.string()),
11
+ serviceArea: zod_1.z.array(zod_1.z.string()),
12
+ availability: zod_1.z.object({ type: business_schema_js_1.BusinessAvailabilityTypeSchema, description: zod_1.z.string().optional() }).optional(),
13
+ openingHours: business_schema_js_1.OpeningHoursSchema.optional(),
14
+ pricing: zod_1.z.object({
15
+ type: business_schema_js_1.BusinessPricingTypeSchema, currency: zod_1.z.literal("EUR"), amount: zod_1.z.number().optional(),
16
+ minAmount: zod_1.z.number().optional(), maxAmount: zod_1.z.number().optional(), description: zod_1.z.string().optional(),
17
+ }).optional(),
18
+ });
19
+ /** Owner-facing Business JSON; deliberately excludes owner, moderation and internal scoring/reviewer fields. */
20
+ exports.OwnerBusinessSchema = zod_1.z.object({
21
+ _id: zod_1.z.string(),
22
+ slug: zod_1.z.string(),
23
+ name: zod_1.z.string(),
24
+ description: zod_1.z.string().optional(),
25
+ providerType: business_schema_js_1.BusinessProviderTypeSchema,
26
+ category: business_schema_js_1.BusinessCategorySchema,
27
+ subCategory: business_schema_js_1.BusinessSubCategorySchema.optional(),
28
+ profile: OwnerBusinessProfileSchema,
29
+ images: zod_1.z.object({ profile: zod_1.z.string(), cover: zod_1.z.string().optional(), gallery: zod_1.z.array(zod_1.z.string()) }),
30
+ documents: zod_1.z.array(zod_1.z.object({ type: business_schema_js_1.BusinessDocumentTypeSchema, url: zod_1.z.string(), name: zod_1.z.string().optional() })),
31
+ location: zod_1.z.object({
32
+ address: zod_1.z.string().optional(), cityId: zod_1.z.string(), country: zod_1.z.string().optional(),
33
+ coordinates: zod_1.z.object({ lat: zod_1.z.number(), lng: zod_1.z.number() }).optional(),
34
+ }),
35
+ contact: zod_1.z.object({
36
+ email: zod_1.z.string().optional(), phone: zod_1.z.string().optional(), website: zod_1.z.string().optional(),
37
+ instagram: zod_1.z.string().optional(), whatsapp: zod_1.z.string().optional(),
38
+ }),
39
+ community: zod_1.z.object({ isLatinoOwned: zod_1.z.boolean(), countryOfOrigin: zod_1.z.string().optional() }),
40
+ tags: zod_1.z.array(zod_1.z.string()),
41
+ menu: zod_1.z.string().optional(),
42
+ priceRange: zod_1.z.enum(["$", "$$", "$$$"]).optional(),
43
+ languages: zod_1.z.array(zod_1.z.string()),
44
+ isLatinoOwned: zod_1.z.boolean(),
45
+ countryOfOrigin: zod_1.z.string().optional(),
46
+ rating: zod_1.z.object({ average: zod_1.z.number(), count: zod_1.z.number() }),
47
+ likesCount: zod_1.z.number(),
48
+ followersCount: zod_1.z.number(),
49
+ eventsCount: zod_1.z.number(),
50
+ verification: zod_1.z.object({
51
+ status: business_schema_js_1.BusinessVerificationStatusSchema,
52
+ checks: zod_1.z.object({ identity: zod_1.z.boolean(), contact: zod_1.z.boolean(), activity: zod_1.z.boolean() }),
53
+ verifiedAt: zod_1.z.string().optional(),
54
+ }),
55
+ isFeatured: zod_1.z.boolean(),
56
+ status: zod_1.z.enum(["active", "blocked"]),
57
+ createdAt: zod_1.z.iso.datetime(),
58
+ updatedAt: zod_1.z.iso.datetime(),
59
+ }).strict();
60
+ exports.OwnerBusinessResponseSchema = zod_1.z.object({
61
+ success: zod_1.z.literal(true),
62
+ data: exports.OwnerBusinessSchema,
63
+ });
64
+ exports.OwnerBusinessesResponseSchema = zod_1.z.object({
65
+ success: zod_1.z.literal(true),
66
+ data: zod_1.z.array(exports.OwnerBusinessSchema),
67
+ });
68
+ //# 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,6BAAwB;AACxB,6DAS8B;AAE9B,MAAM,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAChC,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,mDAA8B,EAAE,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/G,YAAY,EAAE,uCAAkB,CAAC,QAAQ,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,EAAE,OAAC,CAAC,KAAK,CAAC,2BAAmB,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>;