@livdot-tech/contracts 1.6.4 → 1.6.6

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 (54) hide show
  1. package/dist/auth/index.js +1 -1
  2. package/dist/auth/index.mjs +1 -1
  3. package/dist/booking/index.d.mts +55 -1
  4. package/dist/booking/index.d.ts +55 -1
  5. package/dist/booking/index.js +1 -1
  6. package/dist/booking/index.mjs +1 -1
  7. package/dist/chunk-4X2V54JN.js +2 -0
  8. package/dist/chunk-4X2V54JN.js.map +1 -0
  9. package/dist/{chunk-OELGE6P5.mjs → chunk-63YFUPUT.mjs} +2 -2
  10. package/dist/{chunk-VKMAFACD.js.map → chunk-63YFUPUT.mjs.map} +1 -1
  11. package/dist/chunk-GG2XXZA5.mjs +2 -0
  12. package/dist/chunk-GG2XXZA5.mjs.map +1 -0
  13. package/dist/chunk-HMVBX7N4.js +2 -0
  14. package/dist/chunk-HMVBX7N4.js.map +1 -0
  15. package/dist/chunk-MOKENPSM.mjs +2 -0
  16. package/dist/chunk-MOKENPSM.mjs.map +1 -0
  17. package/dist/{chunk-VKMAFACD.js → chunk-NVVIAF7D.js} +2 -2
  18. package/dist/chunk-NVVIAF7D.js.map +1 -0
  19. package/dist/chunk-TASMVAYG.mjs +2 -0
  20. package/dist/chunk-TASMVAYG.mjs.map +1 -0
  21. package/dist/chunk-XSBPWLFH.js +2 -0
  22. package/dist/chunk-XSBPWLFH.js.map +1 -0
  23. package/dist/event/index.d.mts +15 -11
  24. package/dist/event/index.d.ts +15 -11
  25. package/dist/event/index.js +1 -1
  26. package/dist/event/index.mjs +1 -1
  27. package/dist/index.d.mts +3 -3
  28. package/dist/index.d.ts +3 -3
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/payment/index.d.mts +58 -3
  34. package/dist/payment/index.d.ts +58 -3
  35. package/dist/payment/index.js +1 -1
  36. package/dist/payment/index.mjs +1 -1
  37. package/dist/user/index.d.mts +5 -8
  38. package/dist/user/index.d.ts +5 -8
  39. package/dist/user/index.js +1 -1
  40. package/dist/user/index.mjs +1 -1
  41. package/package.json +1 -1
  42. package/dist/chunk-2XFNGKRL.mjs +0 -2
  43. package/dist/chunk-2XFNGKRL.mjs.map +0 -1
  44. package/dist/chunk-7WAMPW4B.js +0 -2
  45. package/dist/chunk-7WAMPW4B.js.map +0 -1
  46. package/dist/chunk-C3LOLFNN.js +0 -2
  47. package/dist/chunk-C3LOLFNN.js.map +0 -1
  48. package/dist/chunk-IEPZ7KSZ.mjs +0 -2
  49. package/dist/chunk-IEPZ7KSZ.mjs.map +0 -1
  50. package/dist/chunk-MF4EHXLU.js +0 -2
  51. package/dist/chunk-MF4EHXLU.js.map +0 -1
  52. package/dist/chunk-MRWDLMMZ.mjs +0 -2
  53. package/dist/chunk-MRWDLMMZ.mjs.map +0 -1
  54. package/dist/chunk-OELGE6P5.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkJXZNFGAC_js=require('../chunk-JXZNFGAC.js');require('../chunk-VKMAFACD.js'),require('../chunk-W2AXUTIW.js'),require('../chunk-7WAMPW4B.js'),require('../chunk-QGEYDED6.js');Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.q}});Object.defineProperty(exports,"ConfirmPasswordSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.C}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.n}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.o}});Object.defineProperty(exports,"IdentityProvider",{enumerable:true,get:function(){return chunkJXZNFGAC_js.a}});Object.defineProperty(exports,"LinkRequiredReasonEnum",{enumerable:true,get:function(){return chunkJXZNFGAC_js.b}});Object.defineProperty(exports,"LinkRequiredResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.x}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.g}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.k}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.m}});Object.defineProperty(exports,"OauthDirectTokenRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.u}});Object.defineProperty(exports,"OauthExchangeRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.t}});Object.defineProperty(exports,"OauthLinkCompleteEmailRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.B}});Object.defineProperty(exports,"OauthLinkCompleteRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.v}});Object.defineProperty(exports,"OauthLinkSendOtpRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.w}});Object.defineProperty(exports,"OauthLinkSendOtpResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.y}});Object.defineProperty(exports,"OauthResolveKind",{enumerable:true,get:function(){return chunkJXZNFGAC_js.c}});Object.defineProperty(exports,"OauthStartQuerySchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.r}});Object.defineProperty(exports,"OauthStartResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.s}});Object.defineProperty(exports,"PasswordSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.d}});Object.defineProperty(exports,"ProvidersListItemSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.z}});Object.defineProperty(exports,"ProvidersListResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.A}});Object.defineProperty(exports,"ReauthTokenResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.D}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.l}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.e}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.f}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.i}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.p}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.h}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.j}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkJXZNFGAC_js=require('../chunk-JXZNFGAC.js');require('../chunk-NVVIAF7D.js'),require('../chunk-XSBPWLFH.js'),require('../chunk-W2AXUTIW.js'),require('../chunk-QGEYDED6.js');Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.q}});Object.defineProperty(exports,"ConfirmPasswordSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.C}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.n}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.o}});Object.defineProperty(exports,"IdentityProvider",{enumerable:true,get:function(){return chunkJXZNFGAC_js.a}});Object.defineProperty(exports,"LinkRequiredReasonEnum",{enumerable:true,get:function(){return chunkJXZNFGAC_js.b}});Object.defineProperty(exports,"LinkRequiredResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.x}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.g}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.k}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.m}});Object.defineProperty(exports,"OauthDirectTokenRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.u}});Object.defineProperty(exports,"OauthExchangeRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.t}});Object.defineProperty(exports,"OauthLinkCompleteEmailRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.B}});Object.defineProperty(exports,"OauthLinkCompleteRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.v}});Object.defineProperty(exports,"OauthLinkSendOtpRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.w}});Object.defineProperty(exports,"OauthLinkSendOtpResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.y}});Object.defineProperty(exports,"OauthResolveKind",{enumerable:true,get:function(){return chunkJXZNFGAC_js.c}});Object.defineProperty(exports,"OauthStartQuerySchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.r}});Object.defineProperty(exports,"OauthStartResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.s}});Object.defineProperty(exports,"PasswordSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.d}});Object.defineProperty(exports,"ProvidersListItemSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.z}});Object.defineProperty(exports,"ProvidersListResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.A}});Object.defineProperty(exports,"ReauthTokenResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.D}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.l}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.e}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.f}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.i}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.p}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.h}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunkJXZNFGAC_js.j}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{q as ChangePasswordRequestSchema,C as ConfirmPasswordSchema,n as ForgotPasswordRequestSchema,o as ForgotPasswordResponseSchema,a as IdentityProvider,b as LinkRequiredReasonEnum,x as LinkRequiredResponseSchema,g as LoginRequestSchema,k as LoginResponseSchema,m as LogoutRequestSchema,u as OauthDirectTokenRequestSchema,t as OauthExchangeRequestSchema,B as OauthLinkCompleteEmailRequestSchema,v as OauthLinkCompleteRequestSchema,w as OauthLinkSendOtpRequestSchema,y as OauthLinkSendOtpResponseSchema,c as OauthResolveKind,r as OauthStartQuerySchema,s as OauthStartResponseSchema,d as PasswordSchema,z as ProvidersListItemSchema,A as ProvidersListResponseSchema,D as ReauthTokenResponseSchema,l as RefreshTokenRequestSchema,e as RegisterRequestSchema,f as RegisterResponseSchema,i as ResendOtpRequestSchema,p as ResetPasswordRequestSchema,h as VerifyOtpRequestSchema,j as VerifyOtpResponseSchema}from'../chunk-4WFVAXHI.mjs';import'../chunk-OELGE6P5.mjs';import'../chunk-EQVYSKSG.mjs';import'../chunk-2XFNGKRL.mjs';import'../chunk-X7OLLQRF.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{q as ChangePasswordRequestSchema,C as ConfirmPasswordSchema,n as ForgotPasswordRequestSchema,o as ForgotPasswordResponseSchema,a as IdentityProvider,b as LinkRequiredReasonEnum,x as LinkRequiredResponseSchema,g as LoginRequestSchema,k as LoginResponseSchema,m as LogoutRequestSchema,u as OauthDirectTokenRequestSchema,t as OauthExchangeRequestSchema,B as OauthLinkCompleteEmailRequestSchema,v as OauthLinkCompleteRequestSchema,w as OauthLinkSendOtpRequestSchema,y as OauthLinkSendOtpResponseSchema,c as OauthResolveKind,r as OauthStartQuerySchema,s as OauthStartResponseSchema,d as PasswordSchema,z as ProvidersListItemSchema,A as ProvidersListResponseSchema,D as ReauthTokenResponseSchema,l as RefreshTokenRequestSchema,e as RegisterRequestSchema,f as RegisterResponseSchema,i as ResendOtpRequestSchema,p as ResetPasswordRequestSchema,h as VerifyOtpRequestSchema,j as VerifyOtpResponseSchema}from'../chunk-4WFVAXHI.mjs';import'../chunk-63YFUPUT.mjs';import'../chunk-TASMVAYG.mjs';import'../chunk-EQVYSKSG.mjs';import'../chunk-X7OLLQRF.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -201,12 +201,14 @@ declare const CreateMarketplaceBookingRequestSchema: z.ZodObject<{
201
201
  }>;
202
202
  eventId: z.ZodOptional<z.ZodUUID>;
203
203
  jobListingId: z.ZodOptional<z.ZodUUID>;
204
+ sourceIoiId: z.ZodOptional<z.ZodUUID>;
204
205
  agreedAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
205
206
  scopeOfWork: z.ZodOptional<z.ZodString>;
206
207
  }, z.core.$strip>;
207
208
  declare const MarketplaceBookingResponseSchema: z.ZodObject<{
208
209
  id: z.ZodUUID;
209
210
  eventId: z.ZodNullable<z.ZodUUID>;
211
+ eventLinked: z.ZodBoolean;
210
212
  hostProfileId: z.ZodUUID;
211
213
  producerProfileId: z.ZodUUID;
212
214
  origin: z.ZodEnum<{
@@ -230,6 +232,8 @@ declare const MarketplaceBookingResponseSchema: z.ZodObject<{
230
232
  readonly IN_DISPUTE: "IN_DISPUTE";
231
233
  readonly CLOSED: "CLOSED";
232
234
  }>;
235
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
236
+ scopeOfWork: z.ZodNullable<z.ZodString>;
233
237
  createdAt: z.ZodString;
234
238
  updatedAt: z.ZodString;
235
239
  }, z.core.$strip>;
@@ -239,6 +243,7 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
239
243
  booking: z.ZodObject<{
240
244
  id: z.ZodUUID;
241
245
  eventId: z.ZodNullable<z.ZodUUID>;
246
+ eventLinked: z.ZodBoolean;
242
247
  hostProfileId: z.ZodUUID;
243
248
  producerProfileId: z.ZodUUID;
244
249
  origin: z.ZodEnum<{
@@ -262,6 +267,8 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
262
267
  readonly IN_DISPUTE: "IN_DISPUTE";
263
268
  readonly CLOSED: "CLOSED";
264
269
  }>;
270
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
271
+ scopeOfWork: z.ZodNullable<z.ZodString>;
265
272
  createdAt: z.ZodString;
266
273
  updatedAt: z.ZodString;
267
274
  }, z.core.$strip>;
@@ -288,6 +295,7 @@ declare const TransitionMarketplaceBookingResponseSchema: z.ZodObject<{
288
295
  booking: z.ZodObject<{
289
296
  id: z.ZodUUID;
290
297
  eventId: z.ZodNullable<z.ZodUUID>;
298
+ eventLinked: z.ZodBoolean;
291
299
  hostProfileId: z.ZodUUID;
292
300
  producerProfileId: z.ZodUUID;
293
301
  origin: z.ZodEnum<{
@@ -311,10 +319,54 @@ declare const TransitionMarketplaceBookingResponseSchema: z.ZodObject<{
311
319
  readonly IN_DISPUTE: "IN_DISPUTE";
312
320
  readonly CLOSED: "CLOSED";
313
321
  }>;
322
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
323
+ scopeOfWork: z.ZodNullable<z.ZodString>;
314
324
  createdAt: z.ZodString;
315
325
  updatedAt: z.ZodString;
316
326
  }, z.core.$strip>;
317
327
  }, z.core.$strip>;
328
+ /** `POST /marketplace/bookings/:id/complete` — dual-ack manual completion */
329
+ declare const CompleteMarketplaceBookingRequestSchema: z.ZodObject<{
330
+ notes: z.ZodOptional<z.ZodString>;
331
+ force: z.ZodOptional<z.ZodBoolean>;
332
+ }, z.core.$strip>;
333
+ declare const CompleteMarketplaceBookingResponseSchema: z.ZodObject<{
334
+ booking: z.ZodObject<{
335
+ id: z.ZodUUID;
336
+ eventId: z.ZodNullable<z.ZodUUID>;
337
+ eventLinked: z.ZodBoolean;
338
+ hostProfileId: z.ZodUUID;
339
+ producerProfileId: z.ZodUUID;
340
+ origin: z.ZodEnum<{
341
+ readonly EVENT_DIRECT: "EVENT_DIRECT";
342
+ readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
343
+ readonly JOB_LISTING: "JOB_LISTING";
344
+ }>;
345
+ jobListingId: z.ZodNullable<z.ZodUUID>;
346
+ sourceIoiId: z.ZodNullable<z.ZodUUID>;
347
+ state: z.ZodEnum<{
348
+ readonly REQUESTED: "REQUESTED";
349
+ readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
350
+ readonly IN_NEGOTIATION: "IN_NEGOTIATION";
351
+ readonly ACCEPTED: "ACCEPTED";
352
+ readonly REJECTED: "REJECTED";
353
+ readonly CANCELLED: "CANCELLED";
354
+ readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
355
+ readonly CONFIRMED: "CONFIRMED";
356
+ readonly IN_PROGRESS: "IN_PROGRESS";
357
+ readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
358
+ readonly IN_DISPUTE: "IN_DISPUTE";
359
+ readonly CLOSED: "CLOSED";
360
+ }>;
361
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
362
+ scopeOfWork: z.ZodNullable<z.ZodString>;
363
+ createdAt: z.ZodString;
364
+ updatedAt: z.ZodString;
365
+ }, z.core.$strip>;
366
+ hostAcked: z.ZodBoolean;
367
+ producerAcked: z.ZodBoolean;
368
+ completed: z.ZodBoolean;
369
+ }, z.core.$strip>;
318
370
  /** `POST /marketplace/job-listings` */
319
371
  declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
320
372
  title: z.ZodString;
@@ -447,6 +499,8 @@ type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingR
447
499
  type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
448
500
  type TransitionMarketplaceBookingRequest = z.infer<typeof TransitionMarketplaceBookingRequestSchema>;
449
501
  type TransitionMarketplaceBookingResponse = z.infer<typeof TransitionMarketplaceBookingResponseSchema>;
502
+ type CompleteMarketplaceBookingRequest = z.infer<typeof CompleteMarketplaceBookingRequestSchema>;
503
+ type CompleteMarketplaceBookingResponse = z.infer<typeof CompleteMarketplaceBookingResponseSchema>;
450
504
 
451
505
  declare const MessageDeliveryStatus: {
452
506
  readonly SENT: "SENT";
@@ -605,4 +659,4 @@ type PostMarketplaceHiringThreadMessageResponse = z.infer<typeof PostMarketplace
605
659
  type MarkMarketplaceHiringThreadReadRequest = z.infer<typeof MarkMarketplaceHiringThreadReadRequestSchema>;
606
660
  type MarkMarketplaceHiringThreadReadResponse = z.infer<typeof MarkMarketplaceHiringThreadReadResponseSchema>;
607
661
 
608
- export { BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, MarketplaceHiringThreadSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
662
+ export { BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, MarketplaceHiringThreadSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
@@ -201,12 +201,14 @@ declare const CreateMarketplaceBookingRequestSchema: z.ZodObject<{
201
201
  }>;
202
202
  eventId: z.ZodOptional<z.ZodUUID>;
203
203
  jobListingId: z.ZodOptional<z.ZodUUID>;
204
+ sourceIoiId: z.ZodOptional<z.ZodUUID>;
204
205
  agreedAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
205
206
  scopeOfWork: z.ZodOptional<z.ZodString>;
206
207
  }, z.core.$strip>;
207
208
  declare const MarketplaceBookingResponseSchema: z.ZodObject<{
208
209
  id: z.ZodUUID;
209
210
  eventId: z.ZodNullable<z.ZodUUID>;
211
+ eventLinked: z.ZodBoolean;
210
212
  hostProfileId: z.ZodUUID;
211
213
  producerProfileId: z.ZodUUID;
212
214
  origin: z.ZodEnum<{
@@ -230,6 +232,8 @@ declare const MarketplaceBookingResponseSchema: z.ZodObject<{
230
232
  readonly IN_DISPUTE: "IN_DISPUTE";
231
233
  readonly CLOSED: "CLOSED";
232
234
  }>;
235
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
236
+ scopeOfWork: z.ZodNullable<z.ZodString>;
233
237
  createdAt: z.ZodString;
234
238
  updatedAt: z.ZodString;
235
239
  }, z.core.$strip>;
@@ -239,6 +243,7 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
239
243
  booking: z.ZodObject<{
240
244
  id: z.ZodUUID;
241
245
  eventId: z.ZodNullable<z.ZodUUID>;
246
+ eventLinked: z.ZodBoolean;
242
247
  hostProfileId: z.ZodUUID;
243
248
  producerProfileId: z.ZodUUID;
244
249
  origin: z.ZodEnum<{
@@ -262,6 +267,8 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
262
267
  readonly IN_DISPUTE: "IN_DISPUTE";
263
268
  readonly CLOSED: "CLOSED";
264
269
  }>;
270
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
271
+ scopeOfWork: z.ZodNullable<z.ZodString>;
265
272
  createdAt: z.ZodString;
266
273
  updatedAt: z.ZodString;
267
274
  }, z.core.$strip>;
@@ -288,6 +295,7 @@ declare const TransitionMarketplaceBookingResponseSchema: z.ZodObject<{
288
295
  booking: z.ZodObject<{
289
296
  id: z.ZodUUID;
290
297
  eventId: z.ZodNullable<z.ZodUUID>;
298
+ eventLinked: z.ZodBoolean;
291
299
  hostProfileId: z.ZodUUID;
292
300
  producerProfileId: z.ZodUUID;
293
301
  origin: z.ZodEnum<{
@@ -311,10 +319,54 @@ declare const TransitionMarketplaceBookingResponseSchema: z.ZodObject<{
311
319
  readonly IN_DISPUTE: "IN_DISPUTE";
312
320
  readonly CLOSED: "CLOSED";
313
321
  }>;
322
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
323
+ scopeOfWork: z.ZodNullable<z.ZodString>;
314
324
  createdAt: z.ZodString;
315
325
  updatedAt: z.ZodString;
316
326
  }, z.core.$strip>;
317
327
  }, z.core.$strip>;
328
+ /** `POST /marketplace/bookings/:id/complete` — dual-ack manual completion */
329
+ declare const CompleteMarketplaceBookingRequestSchema: z.ZodObject<{
330
+ notes: z.ZodOptional<z.ZodString>;
331
+ force: z.ZodOptional<z.ZodBoolean>;
332
+ }, z.core.$strip>;
333
+ declare const CompleteMarketplaceBookingResponseSchema: z.ZodObject<{
334
+ booking: z.ZodObject<{
335
+ id: z.ZodUUID;
336
+ eventId: z.ZodNullable<z.ZodUUID>;
337
+ eventLinked: z.ZodBoolean;
338
+ hostProfileId: z.ZodUUID;
339
+ producerProfileId: z.ZodUUID;
340
+ origin: z.ZodEnum<{
341
+ readonly EVENT_DIRECT: "EVENT_DIRECT";
342
+ readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
343
+ readonly JOB_LISTING: "JOB_LISTING";
344
+ }>;
345
+ jobListingId: z.ZodNullable<z.ZodUUID>;
346
+ sourceIoiId: z.ZodNullable<z.ZodUUID>;
347
+ state: z.ZodEnum<{
348
+ readonly REQUESTED: "REQUESTED";
349
+ readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
350
+ readonly IN_NEGOTIATION: "IN_NEGOTIATION";
351
+ readonly ACCEPTED: "ACCEPTED";
352
+ readonly REJECTED: "REJECTED";
353
+ readonly CANCELLED: "CANCELLED";
354
+ readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
355
+ readonly CONFIRMED: "CONFIRMED";
356
+ readonly IN_PROGRESS: "IN_PROGRESS";
357
+ readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
358
+ readonly IN_DISPUTE: "IN_DISPUTE";
359
+ readonly CLOSED: "CLOSED";
360
+ }>;
361
+ agreedAmount: z.ZodNullable<z.ZodNumber>;
362
+ scopeOfWork: z.ZodNullable<z.ZodString>;
363
+ createdAt: z.ZodString;
364
+ updatedAt: z.ZodString;
365
+ }, z.core.$strip>;
366
+ hostAcked: z.ZodBoolean;
367
+ producerAcked: z.ZodBoolean;
368
+ completed: z.ZodBoolean;
369
+ }, z.core.$strip>;
318
370
  /** `POST /marketplace/job-listings` */
319
371
  declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
320
372
  title: z.ZodString;
@@ -447,6 +499,8 @@ type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingR
447
499
  type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
448
500
  type TransitionMarketplaceBookingRequest = z.infer<typeof TransitionMarketplaceBookingRequestSchema>;
449
501
  type TransitionMarketplaceBookingResponse = z.infer<typeof TransitionMarketplaceBookingResponseSchema>;
502
+ type CompleteMarketplaceBookingRequest = z.infer<typeof CompleteMarketplaceBookingRequestSchema>;
503
+ type CompleteMarketplaceBookingResponse = z.infer<typeof CompleteMarketplaceBookingResponseSchema>;
450
504
 
451
505
  declare const MessageDeliveryStatus: {
452
506
  readonly SENT: "SENT";
@@ -605,4 +659,4 @@ type PostMarketplaceHiringThreadMessageResponse = z.infer<typeof PostMarketplace
605
659
  type MarkMarketplaceHiringThreadReadRequest = z.infer<typeof MarkMarketplaceHiringThreadReadRequestSchema>;
606
660
  type MarkMarketplaceHiringThreadReadResponse = z.infer<typeof MarkMarketplaceHiringThreadReadResponseSchema>;
607
661
 
608
- export { BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, MarketplaceHiringThreadSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
662
+ export { BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, MarketplaceHiringThreadSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkMF4EHXLU_js=require('../chunk-MF4EHXLU.js');require('../chunk-QGEYDED6.js'),require('../chunk-L72M5DCH.js');Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkMF4EHXLU_js.g}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkMF4EHXLU_js.i}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkMF4EHXLU_js.j}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkMF4EHXLU_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkMF4EHXLU_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.s}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkMF4EHXLU_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkMF4EHXLU_js.f}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.r}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.q}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.t}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.y}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.A}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.D}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.Q}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.w}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkMF4EHXLU_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.u}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkMF4EHXLU_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkMF4EHXLU_js.x}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.O}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.P}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.F}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.T}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.U}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.z}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.M}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.N}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.L}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.J}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.I}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.G}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkMF4EHXLU_js.K}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.R}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.S}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.v}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.H}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.B}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.C}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkMF4EHXLU_js.E}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkMF4EHXLU_js.h}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkMF4EHXLU_js.k}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkMF4EHXLU_js.p}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkMF4EHXLU_js.o}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkMF4EHXLU_js.l}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkMF4EHXLU_js.n}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkMF4EHXLU_js.m}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkHMVBX7N4_js=require('../chunk-HMVBX7N4.js');require('../chunk-L72M5DCH.js'),require('../chunk-QGEYDED6.js');Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkHMVBX7N4_js.g}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkHMVBX7N4_js.i}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkHMVBX7N4_js.j}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkHMVBX7N4_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkHMVBX7N4_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.s}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkHMVBX7N4_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkHMVBX7N4_js.f}});Object.defineProperty(exports,"CompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.D}});Object.defineProperty(exports,"CompleteMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.E}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.r}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.q}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.t}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.y}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.A}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.F}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.S}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.w}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkHMVBX7N4_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.u}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkHMVBX7N4_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkHMVBX7N4_js.x}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.Q}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.R}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.H}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.V}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.W}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.z}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.O}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.P}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.N}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.L}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.K}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.I}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkHMVBX7N4_js.M}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.T}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.U}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.v}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.J}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.B}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.C}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkHMVBX7N4_js.G}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkHMVBX7N4_js.h}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkHMVBX7N4_js.k}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkHMVBX7N4_js.p}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkHMVBX7N4_js.o}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkHMVBX7N4_js.l}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkHMVBX7N4_js.n}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkHMVBX7N4_js.m}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{g as BOOKING_TERMINAL_STATES,i as BOOKING_TRANSITION_ACTORS,j as BOOKING_TRANSITION_TARGETS_REQUIRING_REASON,a as BookingOrigin,e as BookingPaymentStatus,s as BookingResponseSchema,b as BookingState,f as BookingTransitionActor,r as ConfirmBookingRequestSchema,q as CreateBookingRequestSchema,t as CreateJobListingRequestSchema,y as CreateMarketplaceBookingRequestSchema,A as CreateMarketplaceBookingResponseSchema,D as CreateMarketplaceJobListingRequestSchema,Q as GetMarketplaceHiringThreadResponseSchema,w as IndicationOfInterestResponseSchema,d as IoiState,u as JobListingResponseSchema,c as JobListingState,x as JobLocation,O as ListMarketplaceHiringThreadMessagesQuerySchema,P as ListMarketplaceHiringThreadMessagesResponseSchema,F as ListMarketplaceJobListingsQuerySchema,T as MarkMarketplaceHiringThreadReadRequestSchema,U as MarkMarketplaceHiringThreadReadResponseSchema,z as MarketplaceBookingResponseSchema,M as MarketplaceHiringMessageAttachmentSchema,N as MarketplaceHiringMessageSchema,L as MarketplaceHiringThreadSchema,J as MarketplaceIndicationOfInterestHostItemSchema,I as MarketplaceIndicationOfInterestResponseSchema,G as MarketplaceJobListingResponseSchema,K as MessageDeliveryStatus,R as PostMarketplaceHiringThreadMessageRequestSchema,S as PostMarketplaceHiringThreadMessageResponseSchema,v as SubmitIndicationOfInterestRequestSchema,H as SubmitMarketplaceIndicationOfInterestRequestSchema,B as TransitionMarketplaceBookingRequestSchema,C as TransitionMarketplaceBookingResponseSchema,E as UpdateMarketplaceJobListingRequestSchema,h as VALID_BOOKING_TRANSITIONS,k as bookingTransitionKey,p as bookingTransitionRequiresReason,o as canActorPerformBookingTransition,l as getAllowedBookingTargetStates,n as getBookingTransitionActors,m as isValidBookingTransition}from'../chunk-IEPZ7KSZ.mjs';import'../chunk-X7OLLQRF.mjs';import'../chunk-GAZT5E62.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{g as BOOKING_TERMINAL_STATES,i as BOOKING_TRANSITION_ACTORS,j as BOOKING_TRANSITION_TARGETS_REQUIRING_REASON,a as BookingOrigin,e as BookingPaymentStatus,s as BookingResponseSchema,b as BookingState,f as BookingTransitionActor,D as CompleteMarketplaceBookingRequestSchema,E as CompleteMarketplaceBookingResponseSchema,r as ConfirmBookingRequestSchema,q as CreateBookingRequestSchema,t as CreateJobListingRequestSchema,y as CreateMarketplaceBookingRequestSchema,A as CreateMarketplaceBookingResponseSchema,F as CreateMarketplaceJobListingRequestSchema,S as GetMarketplaceHiringThreadResponseSchema,w as IndicationOfInterestResponseSchema,d as IoiState,u as JobListingResponseSchema,c as JobListingState,x as JobLocation,Q as ListMarketplaceHiringThreadMessagesQuerySchema,R as ListMarketplaceHiringThreadMessagesResponseSchema,H as ListMarketplaceJobListingsQuerySchema,V as MarkMarketplaceHiringThreadReadRequestSchema,W as MarkMarketplaceHiringThreadReadResponseSchema,z as MarketplaceBookingResponseSchema,O as MarketplaceHiringMessageAttachmentSchema,P as MarketplaceHiringMessageSchema,N as MarketplaceHiringThreadSchema,L as MarketplaceIndicationOfInterestHostItemSchema,K as MarketplaceIndicationOfInterestResponseSchema,I as MarketplaceJobListingResponseSchema,M as MessageDeliveryStatus,T as PostMarketplaceHiringThreadMessageRequestSchema,U as PostMarketplaceHiringThreadMessageResponseSchema,v as SubmitIndicationOfInterestRequestSchema,J as SubmitMarketplaceIndicationOfInterestRequestSchema,B as TransitionMarketplaceBookingRequestSchema,C as TransitionMarketplaceBookingResponseSchema,G as UpdateMarketplaceJobListingRequestSchema,h as VALID_BOOKING_TRANSITIONS,k as bookingTransitionKey,p as bookingTransitionRequiresReason,o as canActorPerformBookingTransition,l as getAllowedBookingTargetStates,n as getBookingTransitionActors,m as isValidBookingTransition}from'../chunk-GG2XXZA5.mjs';import'../chunk-GAZT5E62.mjs';import'../chunk-X7OLLQRF.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ 'use strict';var zod=require('zod');var S={TICKET_PURCHASE:"TICKET_PURCHASE",BOOKING_ESCROW:"BOOKING_ESCROW",ESCROW_RELEASE:"ESCROW_RELEASE",PLATFORM_FEE:"PLATFORM_FEE",PRODUCER_PAYOUT:"PRODUCER_PAYOUT",HOST_PAYOUT:"HOST_PAYOUT",REFUND:"REFUND"},d={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILED:"FAILED",REVERSED:"REVERSED"},o={PENDING:"PENDING",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED",FAILED:"FAILED"},n={REQUIRES_PAYMENT:"REQUIRES_PAYMENT",PROCESSING:"PROCESSING",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",CANCELLED:"CANCELLED",REFUNDED:"REFUNDED"},s={PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",REFUNDED:"REFUNDED"},a={REGISTERED:"REGISTERED",PUBLIC:"PUBLIC",EMAIL_MATCH:"EMAIL_MATCH",DOMAIN_MATCH:"DOMAIN_MATCH",USER_ID_MATCH:"USER_ID_MATCH",PHONE_MATCH:"PHONE_MATCH",NOT_ON_ALLOWLIST:"NOT_ON_ALLOWLIST"},i={NONE:"NONE",PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",REFUNDED:"REFUNDED",CANCELLED:"CANCELLED"},g={PENDING:"PENDING",SETTLED:"SETTLED",WAIVED:"WAIVED",VOIDED:"VOIDED",REFUNDED:"REFUNDED"},r={BUY_TICKET:"BUY_TICKET",COMPLETE_PAYMENT:"COMPLETE_PAYMENT",WATCH_NOW:"WATCH_NOW",WATCH_REPLAY:"WATCH_REPLAY",REGISTER_FREE:"REGISTER_FREE",WAITLIST:"WAITLIST",UNAVAILABLE:"UNAVAILABLE"};var R=zod.z.object({eventId:zod.z.uuid(),amount:zod.z.number().min(0)}),P=zod.z.object({authorizationUrl:zod.z.url(),reference:zod.z.string(),accessCode:zod.z.string().optional()}),T=zod.z.object({id:zod.z.uuid(),userId:zod.z.uuid(),amount:zod.z.number(),currency:zod.z.string(),payoutType:zod.z.string(),eventId:zod.z.uuid().optional(),bookingId:zod.z.uuid().optional(),payoutStatus:zod.z.enum(o),providerReference:zod.z.string().optional(),bankCode:zod.z.string().optional(),accountNumber:zod.z.string().optional(),accountName:zod.z.string().optional(),scheduledAt:zod.z.iso.datetime().optional(),processedAt:zod.z.iso.datetime().optional(),completedAt:zod.z.iso.datetime().optional(),failedAt:zod.z.iso.datetime().optional(),failureReason:zod.z.string().optional(),createdAt:zod.z.iso.datetime()}),C=zod.z.object({reference:zod.z.string(),checkoutUrl:zod.z.url().nullable(),status:zod.z.enum(n),expiresAt:zod.z.iso.datetime()}),e=zod.z.string().regex(/^\d+(\.\d{1,2})?$/,"Must be a decimal with at most 2 fractional digits"),_=zod.z.object({reference:zod.z.string(),status:zod.z.enum(n),eventId:zod.z.uuid(),amount:e,currency:zod.z.string(),paidAt:zod.z.iso.datetime().nullable()}),I=zod.z.object({email:zod.z.email()}),l=zod.z.object({intent_id:zod.z.string().uuid(),user_id:zod.z.string().uuid(),event_id:zod.z.string().uuid()}).loose(),u=zod.z.object({authorization_code:zod.z.string(),bin:zod.z.string().nullish(),last4:zod.z.string().nullish(),exp_month:zod.z.string().nullish(),exp_year:zod.z.string().nullish(),channel:zod.z.string().nullish(),card_type:zod.z.string().nullish(),bank:zod.z.string().nullish(),country_code:zod.z.string().nullish(),brand:zod.z.string().nullish(),reusable:zod.z.boolean().nullish(),signature:zod.z.string().nullish(),account_name:zod.z.string().nullish(),receiver_bank_account_number:zod.z.string().nullish(),receiver_bank:zod.z.string().nullish()}).loose(),c=zod.z.object({id:zod.z.number(),first_name:zod.z.string().nullish(),last_name:zod.z.string().nullish(),email:zod.z.email(),customer_code:zod.z.string(),phone:zod.z.string().nullish(),metadata:zod.z.unknown().nullish(),risk_action:zod.z.string().nullish(),international_format_phone:zod.z.string().nullish()}).loose(),E=zod.z.object({type:zod.z.string().nullish(),source:zod.z.string().nullish(),entry_point:zod.z.string().nullish(),identifier:zod.z.string().nullish()}).loose(),b=zod.z.object({event:zod.z.string(),data:zod.z.object({id:zod.z.number(),domain:zod.z.string().optional(),status:zod.z.string(),reference:zod.z.string(),amount:zod.z.number(),message:zod.z.string().nullish(),gateway_response:zod.z.string().nullish(),paid_at:zod.z.string().nullish(),paidAt:zod.z.string().nullish(),created_at:zod.z.string().nullish(),channel:zod.z.string().nullish(),currency:zod.z.string(),ip_address:zod.z.string().nullish(),fees:zod.z.number().nullish(),fees_breakdown:zod.z.unknown().nullish(),fees_split:zod.z.unknown().nullish(),log:zod.z.unknown().nullish(),order_id:zod.z.string().nullish(),requested_amount:zod.z.number().nullish(),pos_transaction_data:zod.z.unknown().nullish(),plan:zod.z.object({}).loose().optional(),subaccount:zod.z.object({}).loose().optional(),split:zod.z.object({}).loose().optional(),metadata:l,authorization:u.optional(),customer:c.optional(),source:E.optional()}).loose()}).loose(),N=zod.z.object({qualified:zod.z.boolean(),reason:zod.z.enum(a)}),D=zod.z.object({reference:zod.z.null(),subtotal:e,platformFee:e,total:e,currency:zod.z.string().min(3).max(8),strategyId:zod.z.string(),expiresInSec:zod.z.number().int().positive()}),f=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.string().nullable(),category:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),state:zod.z.string(),accessModel:zod.z.string(),visibility:zod.z.string(),ticketPrice:e.nullable(),currency:zod.z.string(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),hostBio:zod.z.string().nullable(),previewClipKey:zod.z.string().nullable(),remainingTickets:zod.z.number().int().nullable(),liveStartedAt:zod.z.iso.datetime().nullable(),liveEndedAt:zod.z.iso.datetime().nullable(),viewer:zod.z.object({entitlement:zod.z.enum(i),purchaseCta:zod.z.enum(r),activeIntentReference:zod.z.string().optional(),requiresAccessCheck:zod.z.boolean().optional()})}),x=zod.z.object({url:zod.z.url(),expiresAt:zod.z.iso.datetime(),contentType:zod.z.string().min(1)}),p=zod.z.object({reference:zod.z.string(),amount:zod.z.string(),currency:zod.z.string(),checkoutUrl:zod.z.string().optional()}),m=zod.z.object({id:zod.z.string(),eventId:zod.z.string(),status:zod.z.enum(s),source:zod.z.enum(s),amount:zod.z.string(),currency:zod.z.string(),paymentExpiresAt:zod.z.iso.datetime().nullable(),expiresAt:zod.z.iso.datetime().nullable(),paidAt:zod.z.iso.datetime().nullable()}),L=zod.z.object({replayPurchase:m,payment:p.nullable()});exports.a=S;exports.b=d;exports.c=o;exports.d=n;exports.e=s;exports.f=a;exports.g=i;exports.h=g;exports.i=r;exports.j=R;exports.k=P;exports.l=T;exports.m=C;exports.n=_;exports.o=I;exports.p=b;exports.q=N;exports.r=D;exports.s=f;exports.t=x;exports.u=p;exports.v=m;exports.w=L;//# sourceMappingURL=chunk-4X2V54JN.js.map
2
+ //# sourceMappingURL=chunk-4X2V54JN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/payment/payment.enums.ts","../src/payment/payment.schemas.ts"],"names":["TransactionType","TransactionStatus","PayoutStatus","PaymentStatus","ReplayPurchaseStatus","AccessReason","EntitlementStatus","PlatformChargeStatus","CtaMode","InitiatePaymentRequestSchema","z","InitiatePaymentResponseSchema","PayoutResponseSchema","CreatePurchaseResponseSchema","decimalString","PurchaseStatusResponseSchema","AccessCheckRequestSchema","PaystackMetadataSchema","PaystackAuthorizationSchema","PaystackCustomerSchema","PaystackSourceSchema","PaystackWebhookSchema","AccessCheckResponseSchema","PricingQuoteResponseSchema","ViewerEventDetailResponseSchema","ReceiptUrlResponseSchema","ReplayPurchasePaymentSchema","ReplayPurchaseRowSchema","ReplayPurchaseResponseSchema"],"mappings":"oCAAO,IAAMA,CAAAA,CAAkB,CAC7B,eAAA,CAAiB,iBAAA,CACjB,cAAA,CAAgB,gBAAA,CAChB,cAAA,CAAgB,gBAAA,CAChB,YAAA,CAAc,cAAA,CACd,eAAA,CAAiB,iBAAA,CACjB,WAAA,CAAa,aAAA,CACb,MAAA,CAAQ,QACV,CAAA,CAGaC,CAAAA,CAAoB,CAC/B,OAAA,CAAS,SAAA,CACT,OAAA,CAAS,SAAA,CACT,MAAA,CAAQ,QAAA,CACR,QAAA,CAAU,UACZ,CAAA,CAGaC,CAAAA,CAAe,CAC1B,OAAA,CAAS,SAAA,CACT,UAAA,CAAY,YAAA,CACZ,SAAA,CAAW,WAAA,CACX,MAAA,CAAQ,QACV,CAAA,CAGaC,CAAAA,CAAgB,CAC3B,gBAAA,CAAkB,kBAAA,CAClB,UAAA,CAAY,YAAA,CACZ,SAAA,CAAW,WAAA,CACX,MAAA,CAAQ,QAAA,CACR,SAAA,CAAW,WAAA,CACX,QAAA,CAAU,UACZ,CAAA,CAGaC,CAAAA,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CAAE,IAAA,CAAKN,CAAoB,CAAA,CACnC,MAAA,CAAQM,KAAAA,CAAE,IAAA,CAAKN,CAAoB,CAAA,CACnC,MAAA,CAAQM,KAAAA,CAAE,MAAA,EAAO,CACjB,QAAA,CAAUA,KAAAA,CAAE,MAAA,EAAO,CACnB,gBAAA,CAAkBA,KAAAA,CAAE,GAAA,CAAI,QAAA,EAAS,CAAE,QAAA,EAAS,CAC5C,SAAA,CAAWA,KAAAA,CAAE,GAAA,CAAI,QAAA,EAAS,CAAE,QAAA,EAAS,CACrC,MAAA,CAAQA,KAAAA,CAAE,GAAA,CAAI,QAAA,EAAS,CAAE,QAAA,EAC3B,CAAC,CAAA,CAEYkB,CAAAA,CAA+BlB,KAAAA,CAAE,MAAA,CAAO,CACnD,cAAA,CAAgBiB,CAAAA,CAChB,OAAA,CAASD,CAAAA,CAA4B,QAAA,EACvC,CAAC","file":"chunk-4X2V54JN.js","sourcesContent":["export const TransactionType = {\n TICKET_PURCHASE: 'TICKET_PURCHASE',\n BOOKING_ESCROW: 'BOOKING_ESCROW',\n ESCROW_RELEASE: 'ESCROW_RELEASE',\n PLATFORM_FEE: 'PLATFORM_FEE',\n PRODUCER_PAYOUT: 'PRODUCER_PAYOUT',\n HOST_PAYOUT: 'HOST_PAYOUT',\n REFUND: 'REFUND',\n} as const;\nexport type TransactionType = (typeof TransactionType)[keyof typeof TransactionType];\n\nexport const TransactionStatus = {\n PENDING: 'PENDING',\n SUCCESS: 'SUCCESS',\n FAILED: 'FAILED',\n REVERSED: 'REVERSED',\n} as const;\nexport type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];\n\nexport const PayoutStatus = {\n PENDING: 'PENDING',\n PROCESSING: 'PROCESSING',\n COMPLETED: 'COMPLETED',\n FAILED: 'FAILED',\n} as const;\nexport type PayoutStatus = (typeof PayoutStatus)[keyof typeof PayoutStatus];\n\nexport const PaymentStatus = {\n REQUIRES_PAYMENT: 'REQUIRES_PAYMENT',\n PROCESSING: 'PROCESSING',\n SUCCEEDED: 'SUCCEEDED',\n FAILED: 'FAILED',\n CANCELLED: 'CANCELLED',\n REFUNDED: 'REFUNDED',\n} as const;\nexport type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];\n\nexport const ReplayPurchaseStatus = {\n PENDING_PAYMENT: 'PENDING_PAYMENT',\n ACTIVE: 'ACTIVE',\n EXPIRED: 'EXPIRED',\n REFUNDED: 'REFUNDED',\n} as const;\nexport type ReplayPurchaseStatus = (typeof ReplayPurchaseStatus)[keyof typeof ReplayPurchaseStatus];\n\nexport const AccessReason = {\n REGISTERED: 'REGISTERED',\n PUBLIC: 'PUBLIC',\n EMAIL_MATCH: 'EMAIL_MATCH',\n DOMAIN_MATCH: 'DOMAIN_MATCH',\n USER_ID_MATCH: 'USER_ID_MATCH',\n PHONE_MATCH: 'PHONE_MATCH',\n NOT_ON_ALLOWLIST: 'NOT_ON_ALLOWLIST',\n} as const;\nexport type AccessReason = (typeof AccessReason)[keyof typeof AccessReason];\n\nexport const EntitlementStatus = {\n NONE: 'NONE',\n PENDING_PAYMENT: 'PENDING_PAYMENT',\n ACTIVE: 'ACTIVE',\n REFUNDED: 'REFUNDED',\n CANCELLED: 'CANCELLED',\n} as const;\nexport type EntitlementStatus = (typeof EntitlementStatus)[keyof typeof EntitlementStatus];\n\nexport const PlatformChargeStatus = {\n PENDING: 'PENDING',\n SETTLED: 'SETTLED',\n WAIVED: 'WAIVED',\n VOIDED: 'VOIDED',\n REFUNDED: 'REFUNDED',\n} as const;\nexport type PlatformChargeStatus = (typeof PlatformChargeStatus)[keyof typeof PlatformChargeStatus];\n\nexport const CtaMode = {\n BUY_TICKET: 'BUY_TICKET',\n COMPLETE_PAYMENT: 'COMPLETE_PAYMENT',\n WATCH_NOW: 'WATCH_NOW',\n WATCH_REPLAY: 'WATCH_REPLAY',\n REGISTER_FREE: 'REGISTER_FREE',\n WAITLIST: 'WAITLIST',\n UNAVAILABLE: 'UNAVAILABLE',\n} as const;\nexport type CtaMode = (typeof CtaMode)[keyof typeof CtaMode];\n","import { z } from 'zod';\nimport {\n AccessReason,\n CtaMode,\n EntitlementStatus,\n PaymentStatus,\n PayoutStatus,\n ReplayPurchaseStatus,\n} from './payment.enums';\n\nexport const InitiatePaymentRequestSchema = z.object({\n eventId: z.uuid(),\n amount: z.number().min(0),\n});\n\nexport const InitiatePaymentResponseSchema = z.object({\n authorizationUrl: z.url(),\n reference: z.string(),\n accessCode: z.string().optional(),\n});\n\nexport const PayoutResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n amount: z.number(),\n currency: z.string(),\n payoutType: z.string(),\n eventId: z.uuid().optional(),\n bookingId: z.uuid().optional(),\n payoutStatus: z.enum(PayoutStatus),\n providerReference: z.string().optional(),\n bankCode: z.string().optional(),\n accountNumber: z.string().optional(),\n accountName: z.string().optional(),\n scheduledAt: z.iso.datetime().optional(),\n processedAt: z.iso.datetime().optional(),\n completedAt: z.iso.datetime().optional(),\n failedAt: z.iso.datetime().optional(),\n failureReason: z.string().optional(),\n createdAt: z.iso.datetime(),\n});\n\nexport const CreatePurchaseResponseSchema = z.object({\n reference: z.string(),\n checkoutUrl: z.url().nullable(),\n status: z.enum(PaymentStatus),\n expiresAt: z.iso.datetime(),\n});\nconst decimalString = z\n .string()\n .regex(/^\\d+(\\.\\d{1,2})?$/, 'Must be a decimal with at most 2 fractional digits');\n\nexport const PurchaseStatusResponseSchema = z.object({\n reference: z.string(),\n status: z.enum(PaymentStatus),\n eventId: z.uuid(),\n amount: decimalString,\n currency: z.string(),\n paidAt: z.iso.datetime().nullable(),\n});\n\nexport const AccessCheckRequestSchema = z.object({\n email: z.email(),\n});\n\nconst PaystackMetadataSchema = z\n .object({\n intent_id: z.string().uuid(),\n user_id: z.string().uuid(),\n event_id: z.string().uuid(),\n })\n .loose();\n\nconst PaystackAuthorizationSchema = z\n .object({\n authorization_code: z.string(),\n bin: z.string().nullish(),\n last4: z.string().nullish(),\n exp_month: z.string().nullish(),\n exp_year: z.string().nullish(),\n channel: z.string().nullish(),\n card_type: z.string().nullish(),\n bank: z.string().nullish(),\n country_code: z.string().nullish(),\n brand: z.string().nullish(),\n reusable: z.boolean().nullish(),\n signature: z.string().nullish(),\n account_name: z.string().nullish(),\n receiver_bank_account_number: z.string().nullish(),\n receiver_bank: z.string().nullish(),\n })\n .loose();\n\nconst PaystackCustomerSchema = z\n .object({\n id: z.number(),\n first_name: z.string().nullish(),\n last_name: z.string().nullish(),\n email: z.email(),\n customer_code: z.string(),\n phone: z.string().nullish(),\n metadata: z.unknown().nullish(),\n risk_action: z.string().nullish(),\n international_format_phone: z.string().nullish(),\n })\n .loose();\n\nconst PaystackSourceSchema = z\n .object({\n type: z.string().nullish(),\n source: z.string().nullish(),\n entry_point: z.string().nullish(),\n identifier: z.string().nullish(),\n })\n .loose();\n\nexport const PaystackWebhookSchema = z\n .object({\n event: z.string(),\n data: z\n .object({\n id: z.number(),\n domain: z.string().optional(),\n status: z.string(),\n reference: z.string(),\n amount: z.number(),\n message: z.string().nullish(),\n gateway_response: z.string().nullish(),\n paid_at: z.string().nullish(),\n paidAt: z.string().nullish(),\n created_at: z.string().nullish(),\n channel: z.string().nullish(),\n currency: z.string(),\n ip_address: z.string().nullish(),\n fees: z.number().nullish(),\n fees_breakdown: z.unknown().nullish(),\n fees_split: z.unknown().nullish(),\n log: z.unknown().nullish(),\n order_id: z.string().nullish(),\n requested_amount: z.number().nullish(),\n pos_transaction_data: z.unknown().nullish(),\n plan: z.object({}).loose().optional(),\n subaccount: z.object({}).loose().optional(),\n split: z.object({}).loose().optional(),\n metadata: PaystackMetadataSchema,\n authorization: PaystackAuthorizationSchema.optional(),\n customer: PaystackCustomerSchema.optional(),\n source: PaystackSourceSchema.optional(),\n })\n .loose(),\n })\n .loose();\n\nexport const AccessCheckResponseSchema = z.object({\n qualified: z.boolean(),\n reason: z.enum(AccessReason),\n});\n\nexport const PricingQuoteResponseSchema = z.object({\n reference: z.null(),\n subtotal: decimalString,\n platformFee: decimalString,\n total: decimalString,\n currency: z.string().min(3).max(8),\n strategyId: z.string(),\n expiresInSec: z.number().int().positive(),\n});\n\nexport const ViewerEventDetailResponseSchema = z.object({\n id: z.uuid(),\n title: z.string(),\n description: z.string().nullable(),\n coverImageUrl: z.string().nullable(),\n category: z.string(),\n scheduledStart: z.iso.datetime(),\n scheduledEnd: z.iso.datetime(),\n state: z.string(),\n accessModel: z.string(),\n visibility: z.string(),\n ticketPrice: decimalString.nullable(),\n currency: z.string(),\n isFeatured: z.boolean(),\n hostDisplayName: z.string().nullable(),\n hostBio: z.string().nullable(),\n previewClipKey: z.string().nullable(),\n remainingTickets: z.number().int().nullable(),\n liveStartedAt: z.iso.datetime().nullable(),\n liveEndedAt: z.iso.datetime().nullable(),\n viewer: z.object({\n entitlement: z.enum(EntitlementStatus),\n purchaseCta: z.enum(CtaMode),\n activeIntentReference: z.string().optional(),\n requiresAccessCheck: z.boolean().optional(),\n }),\n});\n\nexport const ReceiptUrlResponseSchema = z.object({\n url: z.url(),\n expiresAt: z.iso.datetime(),\n contentType: z.string().min(1),\n});\n\nexport const ReplayPurchasePaymentSchema = z.object({\n reference: z.string(),\n amount: z.string(),\n currency: z.string(),\n checkoutUrl: z.string().optional(),\n});\n\nexport const ReplayPurchaseRowSchema = z.object({\n id: z.string(),\n eventId: z.string(),\n status: z.enum(ReplayPurchaseStatus),\n source: z.enum(ReplayPurchaseStatus),\n amount: z.string(),\n currency: z.string(),\n paymentExpiresAt: z.iso.datetime().nullable(),\n expiresAt: z.iso.datetime().nullable(),\n paidAt: z.iso.datetime().nullable(),\n});\n\nexport const ReplayPurchaseResponseSchema = z.object({\n replayPurchase: ReplayPurchaseRowSchema,\n payment: ReplayPurchasePaymentSchema.nullable(),\n});\n"]}
@@ -1,2 +1,2 @@
1
- import {g as g$2,h as h$1,c,b,f,e}from'./chunk-EQVYSKSG.mjs';import {g as g$1}from'./chunk-2XFNGKRL.mjs';import {z}from'zod';var p=z.object({id:z.uuid(),userId:z.uuid(),businessName:z.string(),totalEvents:z.number(),totalSpent:z.number(),averageRating:z.number(),defaultCurrency:z.string(),description:z.string().optional(),category:z.array(z.enum(g$1)),logoUrl:z.url().optional(),businessRegNumber:z.string().optional(),taxId:z.string().optional(),settlementBankCode:z.string().optional(),settlementAccountNumber:z.string().optional(),settlementAccountName:z.string().optional(),paystackSubaccountCode:z.string().optional(),createdAt:z.iso.datetime()}),u=z.object({id:z.uuid(),userId:z.uuid(),companyName:z.string(),bio:z.string(),yearsExperience:z.number().optional(),experienceLevel:z.enum(h$1),equipmentManifest:z.array(z.record(z.string(),z.any())),serviceAreas:z.array(z.string()),verificationStatus:z.enum(g$2),averageRating:z.number().positive().multipleOf(.01),totalReviews:z.number(),completionRate:z.number(),isAvailable:z.boolean(),createdAt:z.iso.datetime()}),x=z.object({id:z.uuid(),email:z.email().toLowerCase(),emailVerified:z.boolean(),emailVerifiedAt:z.iso.datetime().optional(),phoneNumber:z.string().optional(),firstName:z.string().optional(),lastName:z.string().optional(),displayName:z.string().optional(),avatarUrl:z.url().optional(),role:z.number().min(1).max(15),accountStatus:z.enum(b),kycStatus:z.enum(c),hostProfile:p.optional(),producerProfile:u.optional(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}),S=z.object({firstName:z.string().optional(),lastName:z.string().optional(),displayName:z.string().optional(),avatarUrl:z.url().optional(),phoneNumber:z.string().optional(),eventCategory:z.array(z.enum(g$1)).optional()}),h=z.object({businessName:z.string(),description:z.string().optional(),logoUrl:z.string().optional(),category:z.array(z.enum(g$1)).min(1),pin:z.string().length(5)}),N=z.object({companyName:z.string(),bio:z.string(),logoUrl:z.string().optional(),serviceAreas:z.array(z.string()),yearsExperience:z.number(),experienceLevel:z.enum(h$1),minFee:z.number(),maxFee:z.number(),pin:z.string().length(5),isAvailable:z.boolean()}),d=new Set(["admin","support","livdot","host","producer","system","null","undefined","me","settings","viewer","auth","events","streaming","producers","marketplace","users"]),g=z.string().trim().toLowerCase().min(3,"Display name must be at least 3 characters").max(30,"Display name must be at most 30 characters").regex(/^[a-z0-9_]+$/,"Display name may only contain lowercase letters, digits, and underscores").refine(t=>!d.has(t),{message:"This display name is reserved"}),v=z.object({displayName:g}).strict(),R=z.object({preferredCurrency:z.string().trim().toUpperCase().length(3).regex(/^[A-Z]{3}$/)}).strict(),m=z.object({category:z.enum(f),enabled:z.boolean()}),C=z.object({preferences:z.array(m).min(1).max(10).refine(t=>new Set(t.map(l=>l.category)).size===t.length,{message:"Duplicate category in preferences"})}).strict(),A=z.object({category:z.enum(e),message:z.string().trim().min(10).max(2e3)}).strict(),P=z.object({id:z.uuid(),email:z.email(),emailVerified:z.boolean(),displayName:z.string().nullable(),avatarUrl:z.url().nullable(),roles:z.number().int(),preferredCurrency:z.string(),notificationsEnabledCount:z.number().int()}),j=z.object({preferences:z.array(m)}),U=z.object({id:z.uuid()});export{p as a,u as b,x as c,S as d,h as e,N as f,d as g,g as h,v as i,R as j,m as k,C as l,A as m,P as n,j as o,U as p};//# sourceMappingURL=chunk-OELGE6P5.mjs.map
2
- //# sourceMappingURL=chunk-OELGE6P5.mjs.map
1
+ import {g as g$1}from'./chunk-TASMVAYG.mjs';import {g as g$2,h as h$1,c,b,f,e}from'./chunk-EQVYSKSG.mjs';import {z}from'zod';var l=z.object({id:z.uuid(),userId:z.uuid(),businessName:z.string(),totalEvents:z.number(),totalSpent:z.number(),averageRating:z.number(),defaultCurrency:z.string(),description:z.string().optional(),category:z.array(z.enum(g$1)),logoUrl:z.url().optional(),businessRegNumber:z.string().optional(),taxId:z.string().optional(),settlementBankCode:z.string().optional(),settlementAccountNumber:z.string().optional(),settlementAccountName:z.string().optional(),paystackSubaccountCode:z.string().optional(),createdAt:z.iso.datetime()}),p=z.object({id:z.uuid(),userId:z.uuid(),companyName:z.string(),bio:z.string(),yearsExperience:z.number().optional(),experienceLevel:z.enum(h$1),equipmentManifest:z.array(z.record(z.string(),z.any())),serviceAreas:z.array(z.string()),verificationStatus:z.enum(g$2),averageRating:z.number().positive().multipleOf(.01),totalReviews:z.number(),completionRate:z.number(),isAvailable:z.boolean(),createdAt:z.iso.datetime()}),x=z.object({id:z.uuid(),email:z.email().toLowerCase(),emailVerified:z.boolean(),emailVerifiedAt:z.iso.datetime().optional(),phoneNumber:z.string().optional(),firstName:z.string().optional(),lastName:z.string().optional(),displayName:z.string().optional(),avatarUrl:z.url().optional(),role:z.number().min(1).max(15),accountStatus:z.enum(b),kycStatus:z.enum(c),hostProfile:l.optional(),producerProfile:p.optional(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}),S=z.object({firstName:z.string().optional(),lastName:z.string().optional(),displayName:z.string().optional(),avatarUrl:z.url().optional(),phoneNumber:z.string().optional(),eventCategory:z.array(z.enum(g$1)).optional()}),h=z.object({businessName:z.string(),description:z.string().optional(),logoUrl:z.string().optional(),category:z.array(z.enum(g$1)).min(1),pin:z.string().length(5)}),N=z.object({companyName:z.string(),bio:z.string(),logoUrl:z.string().optional(),serviceAreas:z.array(z.string()),yearsExperience:z.number(),experienceLevel:z.enum(h$1),minFee:z.number(),maxFee:z.number(),pin:z.string().length(5),isAvailable:z.boolean()}),u=new Set(["admin","support","livdot","host","producer","system","null","undefined","me","settings","viewer","auth","events","streaming","producers","marketplace","users"]),d=z.string().trim().toLowerCase().min(3,"Display name must be at least 3 characters").max(30,"Display name must be at most 30 characters").regex(/^[a-z0-9_]+$/,"Display name may only contain lowercase letters, digits, and underscores").refine(t=>!u.has(t),{message:"This display name is reserved"}),v=z.object({displayName:d}).strict(),R=z.object({preferredCurrency:z.string().trim().toUpperCase().length(3).regex(/^[A-Z]{3}$/)}).strict(),g=z.object({category:z.enum(f),enabled:z.boolean()}),C=z.object({preferences:z.array(g).min(1).max(10).refine(t=>new Set(t.map(m=>m.category)).size===t.length,{message:"Duplicate category in preferences"})}).strict(),A=z.object({category:z.enum(e),message:z.string().trim().min(10).max(2e3)}).strict(),P=z.object({id:z.uuid(),email:z.email(),emailVerified:z.boolean(),displayName:z.string().nullable(),avatarUrl:z.url().nullable(),roles:z.number().int(),preferredCurrency:z.string(),notificationsEnabledCount:z.number().int()}),j=z.object({preferences:z.record(z.enum(f),z.boolean())}),U=z.object({id:z.uuid()});export{l as a,p as b,x as c,S as d,h as e,N as f,u as g,d as h,v as i,R as j,g as k,C as l,A as m,P as n,j as o,U as p};//# sourceMappingURL=chunk-63YFUPUT.mjs.map
2
+ //# sourceMappingURL=chunk-63YFUPUT.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/user/user.schemas.ts"],"names":["HostProfileResponseSchema","z","EventCategory","ProducerProfileResponseSchema","ProducerExperienceLevel","ProducerVerificationStatus","UserResponseSchema","AccountStatus","KycStatus","UpdateUserRequestSchema","CreateHostProfileRequestSchema","CreateProducerProfileRequestSchema","RESERVED_DISPLAY_NAMES","DisplayNameSchema","v","UpdateViewerProfileRequestSchema","UpdateViewerCurrencyRequestSchema","NotificationPreferenceItemSchema","NotificationCategory","UpdateNotificationPreferencesRequestSchema","items","i","SendFeedbackRequestSchema","FeedbackCategory","ViewerMeResponseSchema","NotificationPreferencesResponseSchema","SendFeedbackResponseSchema"],"mappings":"oIAWO,IAAMA,CAAAA,CAA4BC,MAAE,MAAA,CAAO,CAChD,EAAA,CAAIA,KAAAA,CAAE,MAAK,CACX,MAAA,CAAQA,KAAAA,CAAE,IAAA,GACV,YAAA,CAAcA,KAAAA,CAAE,MAAA,EAAO,CACvB,YAAaA,KAAAA,CAAE,MAAA,EAAO,CACtB,UAAA,CAAYA,MAAE,MAAA,EAAO,CACrB,aAAA,CAAeA,KAAAA,CAAE,QAAO,CACxB,eAAA,CAAiBA,KAAAA,CAAE,MAAA,GACnB,WAAA,CAAaA,KAAAA,CAAE,MAAA,EAAO,CAAE,UAAS,CACjC,QAAA,CAAUA,KAAAA,CAAE,KAAA,CAAMA,MAAE,IAAA,CAAKC,kBAAa,CAAC,CAAA,CACvC,QAASD,KAAAA,CAAE,GAAA,EAAI,CAAE,QAAA,GACjB,iBAAA,CAAmB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A,GAAS,IAAA,EAAK,CAAE,GAAA,CAAI,EAAE,EAAE,GAAA,CAAI,GAAI,CAC7C,CAAC,EACA,MAAA,EAAO,CAEGuB,CAAAA,CAAyBvB,KAAAA,CAAE,OAAO,CAC7C,EAAA,CAAIA,KAAAA,CAAE,IAAA,GACN,KAAA,CAAOA,KAAAA,CAAE,KAAA,EAAM,CACf,cAAeA,KAAAA,CAAE,OAAA,EAAQ,CACzB,WAAA,CAAaA,MAAE,MAAA,EAAO,CAAE,UAAS,CACjC,SAAA,CAAWA,MAAE,GAAA,EAAI,CAAE,QAAA,EAAS,CAC5B,MAAOA,KAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,GAClB,iBAAA,CAAmBA,KAAAA,CAAE,MAAA,EAAO,CAC5B,0BAA2BA,KAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EACxC,CAAC,CAAA,CAEYwB,CAAAA,CAAwCxB,KAAAA,CAAE,OAAO,CAC5D,WAAA,CAAaA,KAAAA,CAAE,KAAA,CAAMgB,CAAgC,CACvD,CAAC,CAAA,CAEYS,CAAAA,CAA6BzB,MAAE,MAAA,CAAO,CACjD,GAAIA,KAAAA,CAAE,IAAA,EACR,CAAC","file":"chunk-VKMAFACD.js","sourcesContent":["import { z } from 'zod';\nimport {\n AccountStatus,\n FeedbackCategory,\n KycStatus,\n NotificationCategory,\n ProducerExperienceLevel,\n ProducerVerificationStatus,\n} from './user.enums';\nimport { EventCategory } from '../event';\n\nexport const HostProfileResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n businessName: z.string(),\n totalEvents: z.number(),\n totalSpent: z.number(),\n averageRating: z.number(),\n defaultCurrency: z.string(),\n description: z.string().optional(),\n category: z.array(z.enum(EventCategory)),\n logoUrl: z.url().optional(),\n businessRegNumber: z.string().optional(),\n taxId: z.string().optional(),\n settlementBankCode: z.string().optional(),\n settlementAccountNumber: z.string().optional(),\n settlementAccountName: z.string().optional(),\n paystackSubaccountCode: z.string().optional(),\n createdAt: z.iso.datetime(),\n});\n\nexport const ProducerProfileResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n companyName: z.string(),\n bio: z.string(),\n yearsExperience: z.number().optional(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n equipmentManifest: z.array(z.record(z.string(), z.any())),\n serviceAreas: z.array(z.string()),\n verificationStatus: z.enum(ProducerVerificationStatus),\n averageRating: z.number().positive().multipleOf(0.01),\n totalReviews: z.number(),\n completionRate: z.number(),\n isAvailable: z.boolean(),\n createdAt: z.iso.datetime(),\n});\n\nexport const UserResponseSchema = z.object({\n id: z.uuid(),\n email: z.email().toLowerCase(),\n emailVerified: z.boolean(),\n emailVerifiedAt: z.iso.datetime().optional(),\n phoneNumber: z.string().optional(),\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n displayName: z.string().optional(),\n avatarUrl: z.url().optional(),\n role: z.number().min(1).max(15),\n accountStatus: z.enum(AccountStatus),\n kycStatus: z.enum(KycStatus),\n hostProfile: HostProfileResponseSchema.optional(),\n producerProfile: ProducerProfileResponseSchema.optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const UpdateUserRequestSchema = z.object({\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n displayName: z.string().optional(),\n avatarUrl: z.url().optional(),\n phoneNumber: z.string().optional(),\n eventCategory: z.array(z.enum(EventCategory)).optional(),\n});\n\nexport const CreateHostProfileRequestSchema = z.object({\n businessName: z.string(),\n description: z.string().optional(),\n logoUrl: z.string().optional(),\n category: z.array(z.enum(EventCategory)).min(1),\n pin: z.string().length(5),\n});\n\nexport const CreateProducerProfileRequestSchema = z.object({\n companyName: z.string(),\n bio: z.string(),\n logoUrl: z.string().optional(),\n serviceAreas: z.array(z.string()),\n yearsExperience: z.number(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n minFee: z.number(),\n maxFee: z.number(),\n pin: z.string().length(5),\n isAvailable: z.boolean(),\n});\n\nexport const RESERVED_DISPLAY_NAMES: ReadonlySet<string> = new Set([\n 'admin',\n 'support',\n 'livdot',\n 'host',\n 'producer',\n 'system',\n 'null',\n 'undefined',\n 'me',\n 'settings',\n 'viewer',\n 'auth',\n 'events',\n 'streaming',\n 'producers',\n 'marketplace',\n 'users',\n]);\n\n/** Handle constraints — see viewer-settings.md §3.1. */\nexport const DisplayNameSchema = z\n .string()\n .trim()\n .toLowerCase()\n .min(3, 'Display name must be at least 3 characters')\n .max(30, 'Display name must be at most 30 characters')\n .regex(/^[a-z0-9_]+$/, 'Display name may only contain lowercase letters, digits, and underscores')\n .refine((v) => !RESERVED_DISPLAY_NAMES.has(v), {\n message: 'This display name is reserved',\n });\n\nexport const UpdateViewerProfileRequestSchema = z\n .object({\n displayName: DisplayNameSchema,\n })\n .strict();\n\nexport const UpdateViewerCurrencyRequestSchema = z\n .object({\n preferredCurrency: z\n .string()\n .trim()\n .toUpperCase()\n .length(3)\n .regex(/^[A-Z]{3}$/),\n })\n .strict();\n\nexport const NotificationPreferenceItemSchema = z.object({\n category: z.enum(NotificationCategory),\n enabled: z.boolean(),\n});\n\nexport const UpdateNotificationPreferencesRequestSchema = z\n .object({\n preferences: z\n .array(NotificationPreferenceItemSchema)\n .min(1)\n .max(10)\n .refine((items) => new Set(items.map((i) => i.category)).size === items.length, {\n message: 'Duplicate category in preferences',\n }),\n })\n .strict();\n\nexport const SendFeedbackRequestSchema = z\n .object({\n category: z.enum(FeedbackCategory),\n message: z.string().trim().min(10).max(2000),\n })\n .strict();\n\nexport const ViewerMeResponseSchema = z.object({\n id: z.uuid(),\n email: z.email(),\n emailVerified: z.boolean(),\n displayName: z.string().nullable(),\n avatarUrl: z.url().nullable(),\n roles: z.number().int(),\n preferredCurrency: z.string(),\n notificationsEnabledCount: z.number().int(),\n});\n\nexport const NotificationPreferencesResponseSchema = z.object({\n preferences: z.array(NotificationPreferenceItemSchema),\n});\n\nexport const SendFeedbackResponseSchema = z.object({\n id: z.uuid(),\n});\n"]}
1
+ {"version":3,"sources":["../src/user/user.schemas.ts"],"names":["HostProfileResponseSchema","z","EventCategory","ProducerProfileResponseSchema","ProducerExperienceLevel","ProducerVerificationStatus","UserResponseSchema","AccountStatus","KycStatus","UpdateUserRequestSchema","CreateHostProfileRequestSchema","CreateProducerProfileRequestSchema","RESERVED_DISPLAY_NAMES","DisplayNameSchema","v","UpdateViewerProfileRequestSchema","UpdateViewerCurrencyRequestSchema","NotificationPreferenceItemSchema","NotificationCategory","UpdateNotificationPreferencesRequestSchema","items","i","SendFeedbackRequestSchema","FeedbackCategory","ViewerMeResponseSchema","NotificationPreferencesResponseSchema","SendFeedbackResponseSchema"],"mappings":"6HAWO,IAAMA,CAAAA,CAA4BC,EAAE,MAAA,CAAO,CAChD,EAAA,CAAIA,CAAAA,CAAE,MAAK,CACX,MAAA,CAAQA,CAAAA,CAAE,IAAA,GACV,YAAA,CAAcA,CAAAA,CAAE,MAAA,EAAO,CACvB,YAAaA,CAAAA,CAAE,MAAA,EAAO,CACtB,UAAA,CAAYA,EAAE,MAAA,EAAO,CACrB,aAAA,CAAeA,CAAAA,CAAE,QAAO,CACxB,eAAA,CAAiBA,EAAE,MAAA,EAAO,CAC1B,YAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,GACxB,QAAA,CAAUA,CAAAA,CAAE,KAAA,CAAMA,CAAAA,CAAE,KAAKC,GAAa,CAAC,CAAA,CACvC,OAAA,CAASD,EAAE,GAAA,EAAI,CAAE,QAAA,EAAS,CAC1B,kBAAmBA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,GAC9B,KAAA,CAAOA,CAAAA,CAAE,MAAA,EAAO,CAAE,UAAS,CAC3B,kBAAA,CAAoBA,CAAAA,CAAE,MAAA,GAAS,QAAA,EAAS,CACxC,wBAAyBA,CAAAA,CAAE,MAAA,GAAS,QAAA,EAAS,CAC7C,qBAAA,CAAuBA,CAAAA,CAAE,QAAO,CAAE,QAAA,EAAS,CAC3C,sBAAA,CAAwBA,EAAE,MAAA,EAAO,CA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MAAA,EAAO,CAAE,QAAA,EAAS,CACjC,UAAWA,CAAAA,CAAE,GAAA,GAAM,QAAA,EAAS,CAC5B,MAAOA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,GAClB,iBAAA,CAAmBA,CAAAA,CAAE,MAAA,EAAO,CAC5B,0BAA2BA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EACxC,CAAC,CAAA,CAEYwB,EAAwCxB,CAAAA,CAAE,MAAA,CAAO,CAC5D,WAAA,CAAaA,CAAAA,CAAE,MAAA,CAAOA,CAAAA,CAAE,KAAKiB,CAAoB,CAAA,CAAGjB,CAAAA,CAAE,OAAA,EAAS,CACjE,CAAC,CAAA,CAEYyB,CAAAA,CAA6BzB,EAAE,MAAA,CAAO,CACjD,GAAIA,CAAAA,CAAE,IAAA,EACR,CAAC","file":"chunk-63YFUPUT.mjs","sourcesContent":["import { z } from 'zod';\nimport {\n AccountStatus,\n FeedbackCategory,\n KycStatus,\n NotificationCategory,\n ProducerExperienceLevel,\n ProducerVerificationStatus,\n} from './user.enums';\nimport { EventCategory } from '../event';\n\nexport const HostProfileResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n businessName: z.string(),\n totalEvents: z.number(),\n totalSpent: z.number(),\n averageRating: z.number(),\n defaultCurrency: z.string(),\n description: z.string().optional(),\n category: z.array(z.enum(EventCategory)),\n logoUrl: z.url().optional(),\n businessRegNumber: z.string().optional(),\n taxId: z.string().optional(),\n settlementBankCode: z.string().optional(),\n settlementAccountNumber: z.string().optional(),\n settlementAccountName: z.string().optional(),\n paystackSubaccountCode: z.string().optional(),\n createdAt: z.iso.datetime(),\n});\n\nexport const ProducerProfileResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n companyName: z.string(),\n bio: z.string(),\n yearsExperience: z.number().optional(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n equipmentManifest: z.array(z.record(z.string(), z.any())),\n serviceAreas: z.array(z.string()),\n verificationStatus: z.enum(ProducerVerificationStatus),\n averageRating: z.number().positive().multipleOf(0.01),\n totalReviews: z.number(),\n completionRate: z.number(),\n isAvailable: z.boolean(),\n createdAt: z.iso.datetime(),\n});\n\nexport const UserResponseSchema = z.object({\n id: z.uuid(),\n email: z.email().toLowerCase(),\n emailVerified: z.boolean(),\n emailVerifiedAt: z.iso.datetime().optional(),\n phoneNumber: z.string().optional(),\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n displayName: z.string().optional(),\n avatarUrl: z.url().optional(),\n role: z.number().min(1).max(15),\n accountStatus: z.enum(AccountStatus),\n kycStatus: z.enum(KycStatus),\n hostProfile: HostProfileResponseSchema.optional(),\n producerProfile: ProducerProfileResponseSchema.optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const UpdateUserRequestSchema = z.object({\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n displayName: z.string().optional(),\n avatarUrl: z.url().optional(),\n phoneNumber: z.string().optional(),\n eventCategory: z.array(z.enum(EventCategory)).optional(),\n});\n\nexport const CreateHostProfileRequestSchema = z.object({\n businessName: z.string(),\n description: z.string().optional(),\n logoUrl: z.string().optional(),\n category: z.array(z.enum(EventCategory)).min(1),\n pin: z.string().length(5),\n});\n\nexport const CreateProducerProfileRequestSchema = z.object({\n companyName: z.string(),\n bio: z.string(),\n logoUrl: z.string().optional(),\n serviceAreas: z.array(z.string()),\n yearsExperience: z.number(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n minFee: z.number(),\n maxFee: z.number(),\n pin: z.string().length(5),\n isAvailable: z.boolean(),\n});\n\nexport const RESERVED_DISPLAY_NAMES: ReadonlySet<string> = new Set([\n 'admin',\n 'support',\n 'livdot',\n 'host',\n 'producer',\n 'system',\n 'null',\n 'undefined',\n 'me',\n 'settings',\n 'viewer',\n 'auth',\n 'events',\n 'streaming',\n 'producers',\n 'marketplace',\n 'users',\n]);\n\n/** Handle constraints — see viewer-settings.md §3.1. */\nexport const DisplayNameSchema = z\n .string()\n .trim()\n .toLowerCase()\n .min(3, 'Display name must be at least 3 characters')\n .max(30, 'Display name must be at most 30 characters')\n .regex(/^[a-z0-9_]+$/, 'Display name may only contain lowercase letters, digits, and underscores')\n .refine((v) => !RESERVED_DISPLAY_NAMES.has(v), {\n message: 'This display name is reserved',\n });\n\nexport const UpdateViewerProfileRequestSchema = z\n .object({\n displayName: DisplayNameSchema,\n })\n .strict();\n\nexport const UpdateViewerCurrencyRequestSchema = z\n .object({\n preferredCurrency: z\n .string()\n .trim()\n .toUpperCase()\n .length(3)\n .regex(/^[A-Z]{3}$/),\n })\n .strict();\n\nexport const NotificationPreferenceItemSchema = z.object({\n category: z.enum(NotificationCategory),\n enabled: z.boolean(),\n});\n\nexport const UpdateNotificationPreferencesRequestSchema = z\n .object({\n preferences: z\n .array(NotificationPreferenceItemSchema)\n .min(1)\n .max(10)\n .refine((items) => new Set(items.map((i) => i.category)).size === items.length, {\n message: 'Duplicate category in preferences',\n }),\n })\n .strict();\n\nexport const SendFeedbackRequestSchema = z\n .object({\n category: z.enum(FeedbackCategory),\n message: z.string().trim().min(10).max(2000),\n })\n .strict();\n\nexport const ViewerMeResponseSchema = z.object({\n id: z.uuid(),\n email: z.email(),\n emailVerified: z.boolean(),\n displayName: z.string().nullable(),\n avatarUrl: z.url().nullable(),\n roles: z.number().int(),\n preferredCurrency: z.string(),\n notificationsEnabledCount: z.number().int(),\n});\n\nexport const NotificationPreferencesResponseSchema = z.object({\n preferences: z.record(z.enum(NotificationCategory), z.boolean()),\n});\n\nexport const SendFeedbackResponseSchema = z.object({\n id: z.uuid(),\n});\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-GAZT5E62.mjs';import {d as d$1,e}from'./chunk-X7OLLQRF.mjs';import {z}from'zod';var s={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},t={REQUESTED:"REQUESTED",AWAITING_PRODUCER_RESPONSE:"AWAITING_PRODUCER_RESPONSE",IN_NEGOTIATION:"IN_NEGOTIATION",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",CANCELLED:"CANCELLED",AWAITING_ESCROW_FUNDING:"AWAITING_ESCROW_FUNDING",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",SERVICE_COMPLETED:"SERVICE_COMPLETED",IN_DISPUTE:"IN_DISPUTE",CLOSED:"CLOSED"},u={OPEN:"OPEN",CLOSED:"CLOSED",SUSPENDED:"SUSPENDED"},m={OPEN:"OPEN",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED"},l={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"},i={HOST:"HOST",PRODUCER:"PRODUCER",ADMIN:"ADMIN",SYSTEM:"SYSTEM"};var C=[t.REJECTED,t.CANCELLED,t.CLOSED],R=[...C,t.IN_DISPUTE],O={[t.REQUESTED]:[t.AWAITING_PRODUCER_RESPONSE,t.CANCELLED],[t.AWAITING_PRODUCER_RESPONSE]:[t.IN_NEGOTIATION,t.REJECTED,t.CANCELLED],[t.IN_NEGOTIATION]:[t.ACCEPTED,t.REJECTED,t.CANCELLED],[t.ACCEPTED]:[t.AWAITING_ESCROW_FUNDING,t.CANCELLED],[t.AWAITING_ESCROW_FUNDING]:[t.CONFIRMED,t.CANCELLED],[t.CONFIRMED]:[t.IN_PROGRESS],[t.IN_PROGRESS]:[t.SERVICE_COMPLETED,t.CANCELLED],[t.SERVICE_COMPLETED]:[t.CLOSED],[t.IN_DISPUTE]:[t.CLOSED],[t.REJECTED]:[],[t.CANCELLED]:[],[t.CLOSED]:[]},A={[`${t.REQUESTED}->${t.AWAITING_PRODUCER_RESPONSE}`]:[i.HOST,i.SYSTEM],[`${t.REQUESTED}->${t.CANCELLED}`]:[i.HOST],[`${t.AWAITING_PRODUCER_RESPONSE}->${t.IN_NEGOTIATION}`]:[i.PRODUCER],[`${t.AWAITING_PRODUCER_RESPONSE}->${t.REJECTED}`]:[i.PRODUCER],[`${t.AWAITING_PRODUCER_RESPONSE}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${t.IN_NEGOTIATION}->${t.ACCEPTED}`]:[i.HOST,i.PRODUCER],[`${t.IN_NEGOTIATION}->${t.REJECTED}`]:[i.HOST,i.PRODUCER],[`${t.IN_NEGOTIATION}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${t.ACCEPTED}->${t.AWAITING_ESCROW_FUNDING}`]:[i.HOST,i.SYSTEM],[`${t.ACCEPTED}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${t.AWAITING_ESCROW_FUNDING}->${t.CONFIRMED}`]:[i.SYSTEM,i.ADMIN],[`${t.AWAITING_ESCROW_FUNDING}->${t.CANCELLED}`]:[i.HOST,i.ADMIN],[`${t.CONFIRMED}->${t.IN_PROGRESS}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${t.IN_PROGRESS}->${t.SERVICE_COMPLETED}`]:[i.PRODUCER,i.SYSTEM,i.ADMIN],[`${t.IN_PROGRESS}->${t.CANCELLED}`]:[i.HOST,i.ADMIN],[`${t.SERVICE_COMPLETED}->${t.CLOSED}`]:[i.HOST,i.ADMIN,i.SYSTEM],[`${t.IN_DISPUTE}->${t.CLOSED}`]:[i.ADMIN,i.HOST]},b=[t.REJECTED,t.CANCELLED,t.IN_DISPUTE];function k(r,a){return `${r}->${a}`}function L(r){let a=O[r]??[];return R.includes(r)?a:[...a,t.IN_DISPUTE]}function B(r,a){return L(r).includes(a)}function P(r,a){return a===t.IN_DISPUTE&&!R.includes(r)?[i.HOST,i.PRODUCER]:A[k(r,a)]??[]}function G(r,a,g){return P(r,a).includes(g)}function U(r,a){return b.includes(a)}var j=z.object({origin:z.enum(s),eventId:z.uuid().optional(),producerId:z.uuid(),agreedAmount:z.number().min(0),serviceDetails:z.object({requiredDate:z.iso.datetime(),location:z.string(),eventType:z.string(),estimatedDurationHrs:z.number(),notes:z.string().optional()}).optional()}),H=z.object({escrowReference:z.string()}),W=z.object({id:z.uuid(),eventId:z.uuid().optional(),hostId:z.uuid(),producerId:z.uuid(),quotedPrice:z.number(),currency:z.string(),scopeOfWork:z.record(z.string(),z.any()).optional(),requiredStartAt:z.iso.datetime(),requiredEndAt:z.iso.datetime(),bookingState:z.enum(t),paymentStatus:z.enum(l),escrowReference:z.string().optional(),completedAt:z.iso.datetime().optional(),hostRating:z.number().optional(),hostReview:z.string().optional(),producerRating:z.number().optional(),producerReview:z.string().optional(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}),q=z.object({title:z.string().max(255),description:z.string(),requiredDate:z.iso.datetime(),estimatedDurationHrs:z.number().optional(),location:z.string(),budgetRangeMin:z.number().optional(),budgetRangeMax:z.number().optional()}),F=z.object({id:z.uuid(),hostProfileId:z.uuid(),eventId:z.uuid().optional(),title:z.string(),description:z.string(),requiredDate:z.iso.datetime(),estimatedDurationHrs:z.number().optional(),location:z.string(),budgetRangeMin:z.number().optional(),budgetRangeMax:z.number().optional(),state:z.enum(u),proposalCount:z.number(),createdAt:z.iso.datetime()}),w=z.object({coverMessage:z.string().optional(),proposedAmount:z.number().min(0).optional(),availabilityNotes:z.string().optional()}),V=z.object({id:z.uuid(),jobListingId:z.uuid(),producerProfileId:z.uuid(),coverMessage:z.string().optional(),proposedAmount:z.number().optional(),state:z.enum(m),createdAt:z.iso.datetime()});var c={ONSITE:"ONSITE",REMOTE:"REMOTE"};var T=z.record(z.string(),z.unknown()),te=z.object({producerId:z.uuid(),origin:z.enum(s),eventId:z.uuid().optional(),jobListingId:z.uuid().optional(),sourceIoiId:z.uuid().optional(),agreedAmount:z.coerce.number().nonnegative().optional(),scopeOfWork:z.string().max(5e3).optional()}).superRefine((r,a)=>{r.origin===s.EVENT_DIRECT&&!r.eventId&&a.addIssue({code:"custom",message:"eventId is required when origin is EVENT_DIRECT",path:["eventId"]}),r.origin===s.MARKETPLACE_DIRECT&&(r.eventId&&a.addIssue({code:"custom",message:"eventId must not be set when origin is MARKETPLACE_DIRECT",path:["eventId"]}),r.sourceIoiId&&a.addIssue({code:"custom",message:"sourceIoiId must not be set when origin is MARKETPLACE_DIRECT",path:["sourceIoiId"]})),r.origin===s.JOB_LISTING&&(r.sourceIoiId||a.addIssue({code:"custom",message:"sourceIoiId is required when origin is JOB_LISTING",path:["sourceIoiId"]}),r.eventId&&a.addIssue({code:"custom",message:"eventId must not be set when origin is JOB_LISTING",path:["eventId"]})),r.sourceIoiId&&r.origin!==s.JOB_LISTING&&a.addIssue({code:"custom",message:"sourceIoiId is only allowed when origin is JOB_LISTING",path:["sourceIoiId"]});}),I=z.object({id:z.uuid(),eventId:z.uuid().nullable(),eventLinked:z.boolean(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),origin:z.enum(s),jobListingId:z.uuid().nullable(),sourceIoiId:z.uuid().nullable(),state:z.enum(t),agreedAmount:z.number().nullable(),scopeOfWork:z.string().nullable(),createdAt:z.string(),updatedAt:z.string()}),oe=z.object({bookingId:z.uuid(),booking:I}),_=z.string().trim().min(5).max(500),ne=z.object({targetState:z.enum(t),reason:_.optional()}).superRefine((r,a)=>{(r.targetState===t.REJECTED||r.targetState===t.CANCELLED||r.targetState===t.IN_DISPUTE)&&r.reason===void 0&&a.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),ie=z.object({booking:I}),re=z.object({notes:z.string().max(2e3).optional(),force:z.boolean().optional()}),ae=z.object({booking:I,hostAcked:z.boolean(),producerAcked:z.boolean(),completed:z.boolean()}),D=z.object({title:z.string().min(1).max(200),description:z.string().min(1).max(5e3),responsibilities:z.string().min(1),requirements:z.string().min(1),role:z.string().min(1).max(120),requiredDate:z.iso.datetime().optional(),estimatedDurationHours:z.coerce.number().int().positive().optional(),location:z.enum(c),notes:z.string().max(2e3).optional(),compensation:z.coerce.number().nonnegative().optional(),attachments:T.optional(),eventId:z.uuid().optional()}),se=D,Ee=D.partial(),ue=z.object({...d$1.shape,location:z.enum(c).optional()}),ce=z.object({id:z.uuid(),hostProfileId:z.uuid(),eventId:z.uuid().nullable(),title:z.string(),notes:z.string().nullable(),description:z.string(),responsibilities:z.string(),requirements:z.string(),role:z.string(),requiredDate:z.string().nullable(),estimatedDurationHours:z.number().int().nullable(),location:z.enum(c),compensation:z.number().nullable(),attachments:z.unknown().nullable(),state:z.enum(u),proposalCount:z.number().int(),createdAt:z.string(),updatedAt:z.string()}),pe=z.object({coverMessage:z.string().min(1).max(2e3).optional(),proposedAmount:z.coerce.number().nonnegative().optional(),availabilityNotes:z.string().max(2e3).optional(),attachments:T.optional()}),f=z.object({id:z.uuid(),jobListingId:z.uuid(),producerProfileId:z.uuid(),coverMessage:z.string().nullable(),proposedAmount:z.number().nullable(),availabilityNotes:z.string().nullable(),state:z.enum(a),resultingBookingId:z.uuid().nullable(),withdrawnAt:z.string().nullable(),selectedAt:z.string().nullable(),createdAt:z.string(),updatedAt:z.string()}),Ie=f.extend({producerCompanyName:z.string().nullable()});var N={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var M=z.object({id:z.uuid(),bookingId:z.uuid(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),createdAt:z.string(),updatedAt:z.string()}),h=z.object({id:z.uuid(),url:z.string(),mimeType:z.string(),sizeBytes:z.number().int(),createdAt:z.string()}),d=z.object({id:z.uuid(),threadId:z.uuid(),senderUserId:z.uuid(),body:z.string(),sentAt:z.string(),deliveryStatus:z.enum(N),readAt:z.string().nullable(),attachments:z.array(h)}),Re=d$1,Te=z.object({messages:z.array(d),...e.shape}),De=z.object({thread:M,messages:z.array(d),...e.shape}),Ne=z.object({body:z.string().trim().min(1).max(5e3),attachments:z.array(z.object({url:z.string().url(),mimeType:z.string().min(1).max(120),sizeBytes:z.number().int().positive()})).max(10).optional()}),Ce=z.object({message:d}),Oe=z.object({upToMessageId:z.uuid().optional()}),Ae=z.object({markedCount:z.number().int().nonnegative()});export{oe as A,ne as B,ie as C,re as D,ae as E,se as F,Ee as G,ue as H,ce as I,pe as J,f as K,Ie as L,N as M,M as N,h as O,d as P,Re as Q,Te as R,De as S,Ne as T,Ce as U,Oe as V,Ae as W,s as a,t as b,u as c,m as d,l as e,i as f,C as g,O as h,A as i,b as j,k,L as l,B as m,P as n,G as o,U as p,j as q,H as r,W as s,q as t,F as u,w as v,V as w,c as x,te as y,I as z};//# sourceMappingURL=chunk-GG2XXZA5.mjs.map
2
+ //# sourceMappingURL=chunk-GG2XXZA5.mjs.map