@livdot-tech/contracts 1.6.0 → 1.6.2

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.
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const PasswordSchema: z.ZodString;
3
4
  /**
4
5
  * Zod schema for registration request.
5
6
  */
@@ -103,20 +104,6 @@ declare const ChangePasswordRequestSchema: z.ZodObject<{
103
104
  currentPassword: z.ZodString;
104
105
  newPassword: z.ZodString;
105
106
  }, z.core.$strip>;
106
- /**
107
- * Zod schema for AWS Cognito token payload.
108
- */
109
- declare const CognitoTokenPayloadSchema: z.ZodObject<{
110
- sub: z.ZodString;
111
- email: z.ZodEmail;
112
- role: z.ZodEnum<{
113
- readonly HOST: 1;
114
- readonly PRODUCER: 2;
115
- readonly VIEWER: 4;
116
- }>;
117
- iat: z.ZodNumber;
118
- exp: z.ZodNumber;
119
- }, z.core.$strip>;
120
107
  declare const OauthStartQuerySchema: z.ZodObject<{
121
108
  redirectTo: z.ZodOptional<z.ZodString>;
122
109
  }, z.core.$strip>;
@@ -205,7 +192,6 @@ type LoginResponse = z.infer<typeof LoginResponseSchema>;
205
192
  type RefreshTokenRequest = z.infer<typeof RefreshTokenRequestSchema>;
206
193
  type ForgotPasswordRequest = z.infer<typeof ForgotPasswordRequestSchema>;
207
194
  type ResetPasswordRequest = z.infer<typeof ResetPasswordRequestSchema>;
208
- type CognitoTokenPayload = z.infer<typeof CognitoTokenPayloadSchema>;
209
195
  type LogoutRequestPayload = z.infer<typeof LogoutRequestSchema>;
210
196
  type RegisterResponsePayload = z.infer<typeof RegisterResponseSchema>;
211
197
  type VerifyOtpRequest = z.infer<typeof VerifyOtpRequestSchema>;
@@ -243,4 +229,4 @@ declare const OauthResolveKind: {
243
229
  };
244
230
  type OauthResolveKind = (typeof OauthResolveKind)[keyof typeof OauthResolveKind];
245
231
 
246
- export { type ChangePasswordRequest, ChangePasswordRequestSchema, type CognitoTokenPayload, CognitoTokenPayloadSchema, type ConfirmPassword, ConfirmPasswordSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, IdentityProvider, LinkRequiredReasonEnum, type LinkRequiredResponse, LinkRequiredResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, type OauthDirectTokenRequest, OauthDirectTokenRequestSchema, type OauthExchangeRequest, OauthExchangeRequestSchema, type OauthLinkCompleteEmailRequest, OauthLinkCompleteEmailRequestSchema, type OauthLinkCompleteRequest, OauthLinkCompleteRequestSchema, type OauthLinkSendOtpRequest, OauthLinkSendOtpRequestSchema, type OauthLinkSendOtpResponse, OauthLinkSendOtpResponseSchema, OauthResolveKind, type OauthStartQuery, OauthStartQuerySchema, type OauthStartResponse, OauthStartResponseSchema, type ProvidersListItem, ProvidersListItemSchema, type ProvidersListResponse, ProvidersListResponseSchema, type ReauthTokenResponse, ReauthTokenResponseSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
232
+ export { type ChangePasswordRequest, ChangePasswordRequestSchema, type ConfirmPassword, ConfirmPasswordSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, IdentityProvider, LinkRequiredReasonEnum, type LinkRequiredResponse, LinkRequiredResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, type OauthDirectTokenRequest, OauthDirectTokenRequestSchema, type OauthExchangeRequest, OauthExchangeRequestSchema, type OauthLinkCompleteEmailRequest, OauthLinkCompleteEmailRequestSchema, type OauthLinkCompleteRequest, OauthLinkCompleteRequestSchema, type OauthLinkSendOtpRequest, OauthLinkSendOtpRequestSchema, type OauthLinkSendOtpResponse, OauthLinkSendOtpResponseSchema, OauthResolveKind, type OauthStartQuery, OauthStartQuerySchema, type OauthStartResponse, OauthStartResponseSchema, PasswordSchema, type ProvidersListItem, ProvidersListItemSchema, type ProvidersListResponse, ProvidersListResponseSchema, type ReauthTokenResponse, ReauthTokenResponseSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const PasswordSchema: z.ZodString;
3
4
  /**
4
5
  * Zod schema for registration request.
5
6
  */
@@ -103,20 +104,6 @@ declare const ChangePasswordRequestSchema: z.ZodObject<{
103
104
  currentPassword: z.ZodString;
104
105
  newPassword: z.ZodString;
105
106
  }, z.core.$strip>;
106
- /**
107
- * Zod schema for AWS Cognito token payload.
108
- */
109
- declare const CognitoTokenPayloadSchema: z.ZodObject<{
110
- sub: z.ZodString;
111
- email: z.ZodEmail;
112
- role: z.ZodEnum<{
113
- readonly HOST: 1;
114
- readonly PRODUCER: 2;
115
- readonly VIEWER: 4;
116
- }>;
117
- iat: z.ZodNumber;
118
- exp: z.ZodNumber;
119
- }, z.core.$strip>;
120
107
  declare const OauthStartQuerySchema: z.ZodObject<{
121
108
  redirectTo: z.ZodOptional<z.ZodString>;
122
109
  }, z.core.$strip>;
@@ -205,7 +192,6 @@ type LoginResponse = z.infer<typeof LoginResponseSchema>;
205
192
  type RefreshTokenRequest = z.infer<typeof RefreshTokenRequestSchema>;
206
193
  type ForgotPasswordRequest = z.infer<typeof ForgotPasswordRequestSchema>;
207
194
  type ResetPasswordRequest = z.infer<typeof ResetPasswordRequestSchema>;
208
- type CognitoTokenPayload = z.infer<typeof CognitoTokenPayloadSchema>;
209
195
  type LogoutRequestPayload = z.infer<typeof LogoutRequestSchema>;
210
196
  type RegisterResponsePayload = z.infer<typeof RegisterResponseSchema>;
211
197
  type VerifyOtpRequest = z.infer<typeof VerifyOtpRequestSchema>;
@@ -243,4 +229,4 @@ declare const OauthResolveKind: {
243
229
  };
244
230
  type OauthResolveKind = (typeof OauthResolveKind)[keyof typeof OauthResolveKind];
245
231
 
246
- export { type ChangePasswordRequest, ChangePasswordRequestSchema, type CognitoTokenPayload, CognitoTokenPayloadSchema, type ConfirmPassword, ConfirmPasswordSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, IdentityProvider, LinkRequiredReasonEnum, type LinkRequiredResponse, LinkRequiredResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, type OauthDirectTokenRequest, OauthDirectTokenRequestSchema, type OauthExchangeRequest, OauthExchangeRequestSchema, type OauthLinkCompleteEmailRequest, OauthLinkCompleteEmailRequestSchema, type OauthLinkCompleteRequest, OauthLinkCompleteRequestSchema, type OauthLinkSendOtpRequest, OauthLinkSendOtpRequestSchema, type OauthLinkSendOtpResponse, OauthLinkSendOtpResponseSchema, OauthResolveKind, type OauthStartQuery, OauthStartQuerySchema, type OauthStartResponse, OauthStartResponseSchema, type ProvidersListItem, ProvidersListItemSchema, type ProvidersListResponse, ProvidersListResponseSchema, type ReauthTokenResponse, ReauthTokenResponseSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
232
+ export { type ChangePasswordRequest, ChangePasswordRequestSchema, type ConfirmPassword, ConfirmPasswordSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, IdentityProvider, LinkRequiredReasonEnum, type LinkRequiredResponse, LinkRequiredResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, type OauthDirectTokenRequest, OauthDirectTokenRequestSchema, type OauthExchangeRequest, OauthExchangeRequestSchema, type OauthLinkCompleteEmailRequest, OauthLinkCompleteEmailRequestSchema, type OauthLinkCompleteRequest, OauthLinkCompleteRequestSchema, type OauthLinkSendOtpRequest, OauthLinkSendOtpRequestSchema, type OauthLinkSendOtpResponse, OauthLinkSendOtpResponseSchema, OauthResolveKind, type OauthStartQuery, OauthStartQuerySchema, type OauthStartResponse, OauthStartResponseSchema, PasswordSchema, type ProvidersListItem, ProvidersListItemSchema, type ProvidersListResponse, ProvidersListResponseSchema, type ReauthTokenResponse, ReauthTokenResponseSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkTLH4NZ36_js=require('../chunk-TLH4NZ36.js');require('../chunk-LEBP3RB5.js'),require('../chunk-W2AXUTIW.js'),require('../chunk-YYP6D3S5.js'),require('../chunk-QGEYDED6.js');Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.p}});Object.defineProperty(exports,"CognitoTokenPayloadSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.q}});Object.defineProperty(exports,"ConfirmPasswordSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.C}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.m}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.n}});Object.defineProperty(exports,"IdentityProvider",{enumerable:true,get:function(){return chunkTLH4NZ36_js.a}});Object.defineProperty(exports,"LinkRequiredReasonEnum",{enumerable:true,get:function(){return chunkTLH4NZ36_js.b}});Object.defineProperty(exports,"LinkRequiredResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.x}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.f}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.j}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.l}});Object.defineProperty(exports,"OauthDirectTokenRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.u}});Object.defineProperty(exports,"OauthExchangeRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.t}});Object.defineProperty(exports,"OauthLinkCompleteEmailRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.B}});Object.defineProperty(exports,"OauthLinkCompleteRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.v}});Object.defineProperty(exports,"OauthLinkSendOtpRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.w}});Object.defineProperty(exports,"OauthLinkSendOtpResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.y}});Object.defineProperty(exports,"OauthResolveKind",{enumerable:true,get:function(){return chunkTLH4NZ36_js.c}});Object.defineProperty(exports,"OauthStartQuerySchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.r}});Object.defineProperty(exports,"OauthStartResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.s}});Object.defineProperty(exports,"ProvidersListItemSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.z}});Object.defineProperty(exports,"ProvidersListResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.A}});Object.defineProperty(exports,"ReauthTokenResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.D}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.k}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.d}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.e}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.h}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.o}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.g}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunkTLH4NZ36_js.i}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkJXZNFGAC_js=require('../chunk-JXZNFGAC.js');require('../chunk-LEBP3RB5.js'),require('../chunk-W2AXUTIW.js'),require('../chunk-YYP6D3S5.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{p as ChangePasswordRequestSchema,q as CognitoTokenPayloadSchema,C as ConfirmPasswordSchema,m as ForgotPasswordRequestSchema,n as ForgotPasswordResponseSchema,a as IdentityProvider,b as LinkRequiredReasonEnum,x as LinkRequiredResponseSchema,f as LoginRequestSchema,j as LoginResponseSchema,l 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,z as ProvidersListItemSchema,A as ProvidersListResponseSchema,D as ReauthTokenResponseSchema,k as RefreshTokenRequestSchema,d as RegisterRequestSchema,e as RegisterResponseSchema,h as ResendOtpRequestSchema,o as ResetPasswordRequestSchema,g as VerifyOtpRequestSchema,i as VerifyOtpResponseSchema}from'../chunk-R6SQRDH7.mjs';import'../chunk-HDXG5AKS.mjs';import'../chunk-EQVYSKSG.mjs';import'../chunk-JCAWAKZN.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-HDXG5AKS.mjs';import'../chunk-EQVYSKSG.mjs';import'../chunk-JCAWAKZN.mjs';import'../chunk-X7OLLQRF.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -457,8 +457,7 @@ type MessageDeliveryStatus = (typeof MessageDeliveryStatus)[keyof typeof Message
457
457
 
458
458
  declare const MarketplaceHiringThreadSchema: z.ZodObject<{
459
459
  id: z.ZodUUID;
460
- bookingId: z.ZodNullable<z.ZodUUID>;
461
- jobListingId: z.ZodNullable<z.ZodUUID>;
460
+ bookingId: z.ZodUUID;
462
461
  hostProfileId: z.ZodUUID;
463
462
  producerProfileId: z.ZodUUID;
464
463
  createdAt: z.ZodString;
@@ -532,8 +531,7 @@ declare const GetMarketplaceHiringThreadResponseSchema: z.ZodObject<{
532
531
  hasNextPage: z.ZodBoolean;
533
532
  thread: z.ZodObject<{
534
533
  id: z.ZodUUID;
535
- bookingId: z.ZodNullable<z.ZodUUID>;
536
- jobListingId: z.ZodNullable<z.ZodUUID>;
534
+ bookingId: z.ZodUUID;
537
535
  hostProfileId: z.ZodUUID;
538
536
  producerProfileId: z.ZodUUID;
539
537
  createdAt: z.ZodString;
@@ -596,15 +594,9 @@ declare const MarkMarketplaceHiringThreadReadRequestSchema: z.ZodObject<{
596
594
  declare const MarkMarketplaceHiringThreadReadResponseSchema: z.ZodObject<{
597
595
  markedCount: z.ZodNumber;
598
596
  }, z.core.$strip>;
599
- declare const GetMarketplaceJobListingThreadQuerySchema: z.ZodObject<{
600
- pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
601
- pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
602
- producerProfileId: z.ZodOptional<z.ZodUUID>;
603
- }, z.core.$strip>;
604
597
 
605
598
  type MarketplaceHiringThread = z.infer<typeof MarketplaceHiringThreadSchema>;
606
599
  type MarketplaceHiringMessage = z.infer<typeof MarketplaceHiringMessageSchema>;
607
- type GetMarketplaceJobListingThreadQuery = z.infer<typeof GetMarketplaceJobListingThreadQuerySchema>;
608
600
  type ListMarketplaceHiringThreadMessagesQuery = z.infer<typeof ListMarketplaceHiringThreadMessagesQuerySchema>;
609
601
  type ListMarketplaceHiringThreadMessagesResponse = z.infer<typeof ListMarketplaceHiringThreadMessagesResponseSchema>;
610
602
  type GetMarketplaceHiringThreadResponse = z.infer<typeof GetMarketplaceHiringThreadResponseSchema>;
@@ -613,4 +605,4 @@ type PostMarketplaceHiringThreadMessageResponse = z.infer<typeof PostMarketplace
613
605
  type MarkMarketplaceHiringThreadReadRequest = z.infer<typeof MarkMarketplaceHiringThreadReadRequestSchema>;
614
606
  type MarkMarketplaceHiringThreadReadResponse = z.infer<typeof MarkMarketplaceHiringThreadReadResponseSchema>;
615
607
 
616
- 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 GetMarketplaceJobListingThreadQuery, GetMarketplaceJobListingThreadQuerySchema, 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 };
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 };
@@ -457,8 +457,7 @@ type MessageDeliveryStatus = (typeof MessageDeliveryStatus)[keyof typeof Message
457
457
 
458
458
  declare const MarketplaceHiringThreadSchema: z.ZodObject<{
459
459
  id: z.ZodUUID;
460
- bookingId: z.ZodNullable<z.ZodUUID>;
461
- jobListingId: z.ZodNullable<z.ZodUUID>;
460
+ bookingId: z.ZodUUID;
462
461
  hostProfileId: z.ZodUUID;
463
462
  producerProfileId: z.ZodUUID;
464
463
  createdAt: z.ZodString;
@@ -532,8 +531,7 @@ declare const GetMarketplaceHiringThreadResponseSchema: z.ZodObject<{
532
531
  hasNextPage: z.ZodBoolean;
533
532
  thread: z.ZodObject<{
534
533
  id: z.ZodUUID;
535
- bookingId: z.ZodNullable<z.ZodUUID>;
536
- jobListingId: z.ZodNullable<z.ZodUUID>;
534
+ bookingId: z.ZodUUID;
537
535
  hostProfileId: z.ZodUUID;
538
536
  producerProfileId: z.ZodUUID;
539
537
  createdAt: z.ZodString;
@@ -596,15 +594,9 @@ declare const MarkMarketplaceHiringThreadReadRequestSchema: z.ZodObject<{
596
594
  declare const MarkMarketplaceHiringThreadReadResponseSchema: z.ZodObject<{
597
595
  markedCount: z.ZodNumber;
598
596
  }, z.core.$strip>;
599
- declare const GetMarketplaceJobListingThreadQuerySchema: z.ZodObject<{
600
- pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
601
- pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
602
- producerProfileId: z.ZodOptional<z.ZodUUID>;
603
- }, z.core.$strip>;
604
597
 
605
598
  type MarketplaceHiringThread = z.infer<typeof MarketplaceHiringThreadSchema>;
606
599
  type MarketplaceHiringMessage = z.infer<typeof MarketplaceHiringMessageSchema>;
607
- type GetMarketplaceJobListingThreadQuery = z.infer<typeof GetMarketplaceJobListingThreadQuerySchema>;
608
600
  type ListMarketplaceHiringThreadMessagesQuery = z.infer<typeof ListMarketplaceHiringThreadMessagesQuerySchema>;
609
601
  type ListMarketplaceHiringThreadMessagesResponse = z.infer<typeof ListMarketplaceHiringThreadMessagesResponseSchema>;
610
602
  type GetMarketplaceHiringThreadResponse = z.infer<typeof GetMarketplaceHiringThreadResponseSchema>;
@@ -613,4 +605,4 @@ type PostMarketplaceHiringThreadMessageResponse = z.infer<typeof PostMarketplace
613
605
  type MarkMarketplaceHiringThreadReadRequest = z.infer<typeof MarkMarketplaceHiringThreadReadRequestSchema>;
614
606
  type MarkMarketplaceHiringThreadReadResponse = z.infer<typeof MarkMarketplaceHiringThreadReadResponseSchema>;
615
607
 
616
- 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 GetMarketplaceJobListingThreadQuery, GetMarketplaceJobListingThreadQuerySchema, 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 };
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 };
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkZA5SQOKW_js=require('../chunk-ZA5SQOKW.js');require('../chunk-QGEYDED6.js'),require('../chunk-L72M5DCH.js');Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkZA5SQOKW_js.g}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkZA5SQOKW_js.i}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkZA5SQOKW_js.j}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkZA5SQOKW_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkZA5SQOKW_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.s}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkZA5SQOKW_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkZA5SQOKW_js.f}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.r}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.q}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.t}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.y}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.A}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.D}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.Q}});Object.defineProperty(exports,"GetMarketplaceJobListingThreadQuerySchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.V}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.w}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkZA5SQOKW_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.u}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkZA5SQOKW_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkZA5SQOKW_js.x}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.O}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.P}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.F}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.T}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.U}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.z}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.M}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.N}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.L}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.J}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.I}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.G}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkZA5SQOKW_js.K}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.R}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.S}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.v}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.H}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.B}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.C}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkZA5SQOKW_js.E}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkZA5SQOKW_js.h}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkZA5SQOKW_js.k}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkZA5SQOKW_js.p}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkZA5SQOKW_js.o}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkZA5SQOKW_js.l}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkZA5SQOKW_js.n}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkZA5SQOKW_js.m}});//# sourceMappingURL=index.js.map
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
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,V as GetMarketplaceJobListingThreadQuerySchema,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-YTKSEZDS.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,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
2
2
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ import {a as a$1}from'./chunk-EQVYSKSG.mjs';import {z}from'zod';var r={GOOGLE:"GOOGLE",APPLE:"APPLE",FACEBOOK:"FACEBOOK",TWITTER:"TWITTER"},s={EMAIL_MATCH:"email_match",EMAIL_MISS:"email_missing"},p={SIGNED_IN:"signed_in",SIGNED_UP:"signed_up",LINK_REQUIRED:"link_required"};var i=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[ !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]).{8,}$"),a="Password must be at least 8 characters and include an uppercase letter, a lowercase letter, a number, and a special character.",t=z.string().min(8,a).regex(i,a),R=z.object({email:z.email().toLowerCase(),password:t,firstName:z.string(),lastName:z.string(),role:z.enum(a$1).optional()}),h=z.object({username:z.string(),reference:z.string(),role:z.enum(a$1).optional()}),g=z.object({email:z.email().toLowerCase(),password:t,role:z.enum(a$1).optional()}),x=z.object({otp:z.string().length(4),reference:z.string(),type:z.enum(["registration","passwordReset"])}),f=z.object({reference:z.string(),type:z.enum(["registration","passwordReset"])}),S=z.object({isValid:z.boolean(),message:z.string(),reference:z.string().optional()}),b=z.object({AccessToken:z.string(),RefreshToken:z.string(),IdToken:z.string(),ExpiresIn:z.number(),TokenType:z.literal("Bearer")}),k=z.object({refreshToken:z.string()}),j=z.object({refreshToken:z.string(),accessToken:z.string()}),E=z.object({email:z.email().toLowerCase()}),O=z.object({destination:z.string(),deliveryMedium:z.string(),attributeName:z.string()}),w=z.object({token:z.string(),newPassword:t}),y=z.object({currentPassword:t,newPassword:t}),L=z.object({redirectTo:z.string().min(1).max(2048).optional()}),P=z.object({authorizeUrl:z.url()}),q=z.object({handoff:z.string().min(16).max(128)}),T=z.object({idToken:z.string().min(1).max(8192),nonce:z.string().min(8).max(256),authorizationCode:z.string().min(1).max(1024).optional(),user:z.object({name:z.object({firstName:z.string().max(128).nullable().optional(),lastName:z.string().max(128).nullable().optional()}).optional()}).optional()}),I=z.object({linkHandoff:z.string().min(16).max(128),password:t.optional(),otpReference:z.string().min(1).max(128).optional(),otp:z.string().length(4).optional()}).refine(n=>n.password?true:n.otpReference&&n.otp,"either `password` OR (`otpReference` AND `otp`) must be provided"),A=z.object({linkHandoff:z.string().min(16).max(128)}),_=z.object({kind:z.literal("link_required"),reason:z.enum(s),linkHandoff:z.string(),maskedEmail:z.string(),hasPassword:z.boolean(),provider:z.enum(r)}),v=z.object({otpReference:z.string()}),c=z.object({name:z.enum(r),enabled:z.boolean(),canSignUp:z.boolean()}),C=z.object({providers:z.array(c)}),N=z.object({linkHandoff:z.string().min(16).max(128),email:z.email().max(320)}),G=z.object({password:t}),D=z.object({reauthToken:z.string(),expiresAt:z.iso.datetime()});export{C as A,N as B,G as C,D,r as a,s as b,p as c,t as d,R as e,h as f,g,x as h,f as i,S as j,b as k,k as l,j as m,E as n,O as o,w as p,y as q,L as r,P as s,q as t,T as u,I as v,A as w,_ as x,v as y,c as z};//# sourceMappingURL=chunk-4WFVAXHI.mjs.map
2
+ //# sourceMappingURL=chunk-4WFVAXHI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth/auth.enums.ts","../src/auth/auth.schemas.ts"],"names":["IdentityProvider","LinkRequiredReasonEnum","OauthResolveKind","PASSWORD_REGEX","PASSWORD_MESSAGE","PasswordSchema","z","RegisterRequestSchema","UserRole","RegisterResponseSchema","LoginRequestSchema","VerifyOtpRequestSchema","ResendOtpRequestSchema","VerifyOtpResponseSchema","LoginResponseSchema","RefreshTokenRequestSchema","LogoutRequestSchema","ForgotPasswordRequestSchema","ForgotPasswordResponseSchema","ResetPasswordRequestSchema","ChangePasswordRequestSchema","OauthStartQuerySchema","OauthStartResponseSchema","OauthExchangeRequestSchema","OauthDirectTokenRequestSchema","OauthLinkCompleteRequestSchema","v","OauthLinkSendOtpRequestSchema","LinkRequiredResponseSchema","OauthLinkSendOtpResponseSchema","ProvidersListItemSchema","ProvidersListResponseSchema","OauthLinkCompleteEmailRequestSchema","ConfirmPasswordSchema","ReauthTokenResponseSchema"],"mappings":"gEAAO,IAAMA,EAAmB,CAC9B,MAAA,CAAQ,QAAA,CACR,KAAA,CAAO,OAAA,CACP,QAAA,CAAU,UAAA,CACV,OAAA,CAAS,SACX,CAAA,CAEaC,CAAAA,CAAyB,CACpC,WAAA,CAAa,aAAA,CACb,UAAA,CAAY,eACd,CAAA,CA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EAClB,CAAC,CAAA,CAEYwB,CAAAA,CAA0BxB,CAAAA,CAAE,MAAA,CAAO,CAC9C,IAAA,CAAMA,CAAAA,CAAE,IAAA,CAAKN,CAAgB,CAAA,CAC7B,OAAA,CAASM,CAAAA,CAAE,OAAA,EAAQ,CACnB,SAAA,CAAWA,CAAAA,CAAE,OAAA,EACf,CAAC,CAAA,CAEYyB,CAAAA,CAA8BzB,CAAAA,CAAE,MAAA,CAAO,CAClD,SAAA,CAAWA,CAAAA,CAAE,MAAMwB,CAAuB,CAC5C,CAAC,CAAA,CAEYE,EAAsC1B,CAAAA,CAAE,MAAA,CAAO,CAC1D,WAAA,CAAaA,EAAE,MAAA,EAAO,CAAE,GAAA,CAAI,EAAE,CAAA,CAAE,GAAA,CAAI,GAAG,CAAA,CACvC,MAAOA,CAAAA,CAAE,KAAA,EAAM,CAAE,GAAA,CAAI,GAAG,CAC1B,CAAC,CAAA,CAEY2B,CAAAA,CAAwB3B,EAAE,MAAA,CAAO,CAC5C,QAAA,CAAUD,CACZ,CAAC,CAAA,CAEY6B,CAAAA,CAA4B5B,CAAAA,CAAE,OAAO,CAChD,WAAA,CAAaA,CAAAA,CAAE,MAAA,GACf,SAAA,CAAWA,CAAAA,CAAE,GAAA,CAAI,QAAA,EACnB,CAAC","file":"chunk-4WFVAXHI.mjs","sourcesContent":["export const IdentityProvider = {\n GOOGLE: 'GOOGLE',\n APPLE: 'APPLE',\n FACEBOOK: 'FACEBOOK',\n TWITTER: 'TWITTER',\n} as const;\nexport type IdentityProvider = (typeof IdentityProvider)[keyof typeof IdentityProvider];\nexport const LinkRequiredReasonEnum = {\n EMAIL_MATCH: 'email_match',\n EMAIL_MISS: 'email_missing',\n} as const;\nexport type LinkRequiredReasonEnum =\n (typeof LinkRequiredReasonEnum)[keyof typeof LinkRequiredReasonEnum];\nexport const OauthResolveKind = {\n SIGNED_IN: 'signed_in',\n SIGNED_UP: 'signed_up',\n LINK_REQUIRED: 'link_required',\n} as const;\nexport type OauthResolveKind = (typeof OauthResolveKind)[keyof typeof OauthResolveKind];\n","import { z } from 'zod';\nimport { UserRole } from '../user';\nimport { IdentityProvider, LinkRequiredReasonEnum } from './auth.enums';\n\nconst PASSWORD_REGEX = new RegExp(\n '^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[ !\"#$%&\\'()*+,-./:;<=>?@[\\\\]^_`{|}~]).{8,}$',\n);\n\nconst PASSWORD_MESSAGE =\n 'Password must be at least 8 characters and include an uppercase letter, a lowercase letter, a number, and a special character.';\n\nexport const PasswordSchema = z\n .string()\n .min(8, PASSWORD_MESSAGE)\n .regex(PASSWORD_REGEX, PASSWORD_MESSAGE);\n\n/**\n * Zod schema for registration request.\n */\nexport const RegisterRequestSchema = z.object({\n email: z.email().toLowerCase(),\n password: PasswordSchema,\n firstName: z.string(),\n lastName: z.string(),\n role: z.enum(UserRole).optional(),\n});\n\n/**\n * Zod schema for registration response.\n */\nexport const RegisterResponseSchema = z.object({\n username: z.string(),\n reference: z.string(),\n role: z.enum(UserRole).optional(),\n});\n\n/**\n * Zod schema for login request.\n */\nexport const LoginRequestSchema = z.object({\n email: z.email().toLowerCase(),\n password: PasswordSchema,\n role: z.enum(UserRole).optional(),\n});\n\nexport const VerifyOtpRequestSchema = z.object({\n otp: z.string().length(4),\n reference: z.string(),\n type: z.enum(['registration', 'passwordReset']),\n});\n\nexport const ResendOtpRequestSchema = z.object({\n reference: z.string(),\n type: z.enum(['registration', 'passwordReset']),\n});\n\nexport const VerifyOtpResponseSchema = z.object({\n isValid: z.boolean(),\n message: z.string(),\n reference: z.string().optional(),\n});\n\n/**\n * Zod schema for login response.\n */\nexport const LoginResponseSchema = z.object({\n AccessToken: z.string(),\n RefreshToken: z.string(),\n IdToken: z.string(),\n ExpiresIn: z.number(),\n TokenType: z.literal('Bearer'),\n});\n\n/**\n * Zod schema for refresh token request.\n */\nexport const RefreshTokenRequestSchema = z.object({\n refreshToken: z.string(),\n});\n\nexport const LogoutRequestSchema = z.object({\n refreshToken: z.string(),\n accessToken: z.string(),\n});\n\n/**\n * Zod schema for forgot password request.\n */\nexport const ForgotPasswordRequestSchema = z.object({\n email: z.email().toLowerCase(),\n});\n\nexport const ForgotPasswordResponseSchema = z.object({\n destination: z.string(),\n deliveryMedium: z.string(),\n attributeName: z.string(),\n});\n\n/**\n * Zod schema for reset password request.\n */\nexport const ResetPasswordRequestSchema = z.object({\n token: z.string(),\n newPassword: PasswordSchema,\n});\n\n/**\n * Zod schema for change password request.\n */\nexport const ChangePasswordRequestSchema = z.object({\n currentPassword: PasswordSchema,\n newPassword: PasswordSchema,\n});\n\nexport const OauthStartQuerySchema = z.object({\n redirectTo: z.string().min(1).max(2048).optional(),\n});\n\nexport const OauthStartResponseSchema = z.object({\n authorizeUrl: z.url(),\n});\n\nexport const OauthExchangeRequestSchema = z.object({\n handoff: z.string().min(16).max(128),\n});\n\nexport const OauthDirectTokenRequestSchema = z.object({\n idToken: z.string().min(1).max(8192),\n nonce: z.string().min(8).max(256),\n authorizationCode: z.string().min(1).max(1024).optional(),\n user: z\n .object({\n name: z\n .object({\n firstName: z.string().max(128).nullable().optional(),\n lastName: z.string().max(128).nullable().optional(),\n })\n .optional(),\n })\n .optional(),\n});\n\nexport const OauthLinkCompleteRequestSchema = z\n .object({\n linkHandoff: z.string().min(16).max(128),\n password: PasswordSchema.optional(),\n otpReference: z.string().min(1).max(128).optional(),\n otp: z.string().length(4).optional(),\n })\n .refine(\n (v) => (v.password ? true : v.otpReference && v.otp),\n 'either `password` OR (`otpReference` AND `otp`) must be provided',\n );\n\nexport const OauthLinkSendOtpRequestSchema = z.object({\n linkHandoff: z.string().min(16).max(128),\n});\n\nexport const LinkRequiredResponseSchema = z.object({\n kind: z.literal('link_required'),\n reason: z.enum(LinkRequiredReasonEnum),\n linkHandoff: z.string(),\n maskedEmail: z.string(),\n hasPassword: z.boolean(),\n provider: z.enum(IdentityProvider),\n});\n\nexport const OauthLinkSendOtpResponseSchema = z.object({\n otpReference: z.string(),\n});\n\nexport const ProvidersListItemSchema = z.object({\n name: z.enum(IdentityProvider),\n enabled: z.boolean(),\n canSignUp: z.boolean(),\n});\n\nexport const ProvidersListResponseSchema = z.object({\n providers: z.array(ProvidersListItemSchema),\n});\n\nexport const OauthLinkCompleteEmailRequestSchema = z.object({\n linkHandoff: z.string().min(16).max(128),\n email: z.email().max(320),\n});\n\nexport const ConfirmPasswordSchema = z.object({\n password: PasswordSchema,\n});\n\nexport const ReauthTokenResponseSchema = z.object({\n reauthToken: z.string(),\n expiresAt: z.iso.datetime(), // ISO date string ;\n});\n"]}
@@ -1,2 +1,2 @@
1
- import {d,e as e$1}from'./chunk-X7OLLQRF.mjs';import {a}from'./chunk-GAZT5E62.mjs';import {z}from'zod';var E={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},e={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"},I={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"},i={HOST:"HOST",PRODUCER:"PRODUCER",ADMIN:"ADMIN",SYSTEM:"SYSTEM"};var C=[e.REJECTED,e.CANCELLED,e.CLOSED],l=[...C,e.IN_DISPUTE],O={[e.REQUESTED]:[e.AWAITING_PRODUCER_RESPONSE,e.CANCELLED],[e.AWAITING_PRODUCER_RESPONSE]:[e.IN_NEGOTIATION,e.REJECTED,e.CANCELLED],[e.IN_NEGOTIATION]:[e.ACCEPTED,e.REJECTED,e.CANCELLED],[e.ACCEPTED]:[e.AWAITING_ESCROW_FUNDING,e.CANCELLED],[e.AWAITING_ESCROW_FUNDING]:[e.CONFIRMED,e.CANCELLED],[e.CONFIRMED]:[e.IN_PROGRESS],[e.IN_PROGRESS]:[e.SERVICE_COMPLETED,e.CANCELLED],[e.SERVICE_COMPLETED]:[e.CLOSED],[e.IN_DISPUTE]:[e.CLOSED],[e.REJECTED]:[],[e.CANCELLED]:[],[e.CLOSED]:[]},A={[`${e.REQUESTED}->${e.AWAITING_PRODUCER_RESPONSE}`]:[i.HOST,i.SYSTEM],[`${e.REQUESTED}->${e.CANCELLED}`]:[i.HOST],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.IN_NEGOTIATION}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.REJECTED}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.ACCEPTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.REJECTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.ACCEPTED}->${e.AWAITING_ESCROW_FUNDING}`]:[i.HOST,i.SYSTEM],[`${e.ACCEPTED}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.AWAITING_ESCROW_FUNDING}->${e.CONFIRMED}`]:[i.SYSTEM,i.ADMIN],[`${e.AWAITING_ESCROW_FUNDING}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.CONFIRMED}->${e.IN_PROGRESS}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${e.IN_PROGRESS}->${e.SERVICE_COMPLETED}`]:[i.PRODUCER],[`${e.IN_PROGRESS}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.SERVICE_COMPLETED}->${e.CLOSED}`]:[i.HOST,i.ADMIN,i.SYSTEM],[`${e.IN_DISPUTE}->${e.CLOSED}`]:[i.ADMIN,i.HOST]},b=[e.REJECTED,e.CANCELLED,e.IN_DISPUTE];function k(r,a){return `${r}->${a}`}function L(r){let a=O[r]??[];return l.includes(r)?a:[...a,e.IN_DISPUTE]}function h(r,a){return L(r).includes(a)}function P(r,a){return a===e.IN_DISPUTE&&!l.includes(r)?[i.HOST,i.PRODUCER]:A[k(r,a)]??[]}function U(r,a,g){return P(r,a).includes(g)}function G(r,a){return b.includes(a)}var J=z.object({origin:z.enum(E),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()}),v=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(e),paymentStatus:z.enum(I),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()}),V=z.object({coverMessage:z.string().optional(),proposedAmount:z.number().min(0).optional(),availabilityNotes:z.string().optional()}),K=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 R=z.record(z.string(),z.unknown()),te=z.object({producerId:z.uuid(),origin:z.enum(E),eventId:z.uuid().optional(),jobListingId:z.uuid().optional(),agreedAmount:z.coerce.number().nonnegative().optional(),scopeOfWork:z.string().max(5e3).optional()}),D=z.object({id:z.uuid(),eventId:z.uuid().nullable(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),origin:z.enum(E),jobListingId:z.uuid().nullable(),sourceIoiId:z.uuid().nullable(),state:z.enum(e),createdAt:z.string(),updatedAt:z.string()}),oe=z.object({bookingId:z.uuid(),booking:D}),x=z.string().trim().min(5).max(500),ne=z.object({targetState:z.enum(e),reason:x.optional()}).superRefine((r,a)=>{(r.targetState===e.REJECTED||r.targetState===e.CANCELLED||r.targetState===e.IN_DISPUTE)&&r.reason===void 0&&a.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),ie=z.object({booking:D}),T=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:R.optional(),eventId:z.uuid().optional()}),re=T,ae=T.partial(),se=z.object({...d.shape,location:z.enum(c).optional()}),Ee=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()}),ue=z.object({coverMessage:z.string().min(1).max(2e3).optional(),proposedAmount:z.coerce.number().nonnegative().optional(),availabilityNotes:z.string().max(2e3).optional(),attachments:R.optional()}),_=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()}),ce=_.extend({producerCompanyName:z.string().nullable()});var N={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var M=z.object({id:z.uuid(),bookingId:z.uuid().nullable(),jobListingId:z.uuid().nullable(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),createdAt:z.string(),updatedAt:z.string()}),y=z.object({id:z.uuid(),url:z.string(),mimeType:z.string(),sizeBytes:z.number().int(),createdAt:z.string()}),S=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(y)}),Ie=d,le=z.object({messages:z.array(S),...e$1.shape}),Re=z.object({thread:M,messages:z.array(S),...e$1.shape}),De=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()}),Te=z.object({message:S}),Ne=z.object({upToMessageId:z.uuid().optional()}),Ce=z.object({markedCount:z.number().int().nonnegative()}),Oe=z.object({producerProfileId:z.uuid().optional(),...d.shape});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,_ as I,ce as J,N as K,M as L,y as M,S as N,Ie as O,le as P,Re as Q,De as R,Te as S,Ne as T,Ce as U,Oe as V,E as a,e as b,u as c,m as d,I as e,i as f,C as g,O as h,A as i,b as j,k,L as l,h as m,P as n,U as o,G as p,J as q,v as r,W as s,q as t,F as u,V as v,K as w,c as x,te as y,D as z};//# sourceMappingURL=chunk-YTKSEZDS.mjs.map
2
- //# sourceMappingURL=chunk-YTKSEZDS.mjs.map
1
+ import {d,e as e$1}from'./chunk-X7OLLQRF.mjs';import {a}from'./chunk-GAZT5E62.mjs';import {z}from'zod';var s={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},e={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"},I={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"},i={HOST:"HOST",PRODUCER:"PRODUCER",ADMIN:"ADMIN",SYSTEM:"SYSTEM"};var C=[e.REJECTED,e.CANCELLED,e.CLOSED],l=[...C,e.IN_DISPUTE],O={[e.REQUESTED]:[e.AWAITING_PRODUCER_RESPONSE,e.CANCELLED],[e.AWAITING_PRODUCER_RESPONSE]:[e.IN_NEGOTIATION,e.REJECTED,e.CANCELLED],[e.IN_NEGOTIATION]:[e.ACCEPTED,e.REJECTED,e.CANCELLED],[e.ACCEPTED]:[e.AWAITING_ESCROW_FUNDING,e.CANCELLED],[e.AWAITING_ESCROW_FUNDING]:[e.CONFIRMED,e.CANCELLED],[e.CONFIRMED]:[e.IN_PROGRESS],[e.IN_PROGRESS]:[e.SERVICE_COMPLETED,e.CANCELLED],[e.SERVICE_COMPLETED]:[e.CLOSED],[e.IN_DISPUTE]:[e.CLOSED],[e.REJECTED]:[],[e.CANCELLED]:[],[e.CLOSED]:[]},A={[`${e.REQUESTED}->${e.AWAITING_PRODUCER_RESPONSE}`]:[i.HOST,i.SYSTEM],[`${e.REQUESTED}->${e.CANCELLED}`]:[i.HOST],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.IN_NEGOTIATION}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.REJECTED}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.ACCEPTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.REJECTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.ACCEPTED}->${e.AWAITING_ESCROW_FUNDING}`]:[i.HOST,i.SYSTEM],[`${e.ACCEPTED}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.AWAITING_ESCROW_FUNDING}->${e.CONFIRMED}`]:[i.SYSTEM,i.ADMIN],[`${e.AWAITING_ESCROW_FUNDING}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.CONFIRMED}->${e.IN_PROGRESS}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${e.IN_PROGRESS}->${e.SERVICE_COMPLETED}`]:[i.PRODUCER],[`${e.IN_PROGRESS}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.SERVICE_COMPLETED}->${e.CLOSED}`]:[i.HOST,i.ADMIN,i.SYSTEM],[`${e.IN_DISPUTE}->${e.CLOSED}`]:[i.ADMIN,i.HOST]},b=[e.REJECTED,e.CANCELLED,e.IN_DISPUTE];function k(r,a){return `${r}->${a}`}function L(r){let a=O[r]??[];return l.includes(r)?a:[...a,e.IN_DISPUTE]}function h(r,a){return L(r).includes(a)}function P(r,a){return a===e.IN_DISPUTE&&!l.includes(r)?[i.HOST,i.PRODUCER]:A[k(r,a)]??[]}function U(r,a,g){return P(r,a).includes(g)}function G(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()}),v=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(e),paymentStatus:z.enum(I),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()}),V=z.object({coverMessage:z.string().optional(),proposedAmount:z.number().min(0).optional(),availabilityNotes:z.string().optional()}),K=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 R=z.record(z.string(),z.unknown()),te=z.object({producerId:z.uuid(),origin:z.enum(s),eventId:z.uuid().optional(),jobListingId:z.uuid().optional(),agreedAmount:z.coerce.number().nonnegative().optional(),scopeOfWork:z.string().max(5e3).optional()}),D=z.object({id:z.uuid(),eventId:z.uuid().nullable(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),origin:z.enum(s),jobListingId:z.uuid().nullable(),sourceIoiId:z.uuid().nullable(),state:z.enum(e),createdAt:z.string(),updatedAt:z.string()}),oe=z.object({bookingId:z.uuid(),booking:D}),x=z.string().trim().min(5).max(500),ne=z.object({targetState:z.enum(e),reason:x.optional()}).superRefine((r,a)=>{(r.targetState===e.REJECTED||r.targetState===e.CANCELLED||r.targetState===e.IN_DISPUTE)&&r.reason===void 0&&a.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),ie=z.object({booking:D}),T=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:R.optional(),eventId:z.uuid().optional()}),re=T,ae=T.partial(),se=z.object({...d.shape,location:z.enum(c).optional()}),Ee=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()}),ue=z.object({coverMessage:z.string().min(1).max(2e3).optional(),proposedAmount:z.coerce.number().nonnegative().optional(),availabilityNotes:z.string().max(2e3).optional(),attachments:R.optional()}),_=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()}),ce=_.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()}),y=z.object({id:z.uuid(),url:z.string(),mimeType:z.string(),sizeBytes:z.number().int(),createdAt:z.string()}),S=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(y)}),Ie=d,le=z.object({messages:z.array(S),...e$1.shape}),Re=z.object({thread:M,messages:z.array(S),...e$1.shape}),De=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()}),Te=z.object({message:S}),Ne=z.object({upToMessageId:z.uuid().optional()}),Ce=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,_ as I,ce as J,N as K,M as L,y as M,S as N,Ie as O,le as P,Re as Q,De as R,Te as S,Ne as T,Ce as U,s as a,e as b,u as c,m as d,I as e,i as f,C as g,O as h,A as i,b as j,k,L as l,h as m,P as n,U as o,G as p,J as q,v as r,W as s,q as t,F as u,V as v,K as w,c as x,te as y,D as z};//# sourceMappingURL=chunk-IEPZ7KSZ.mjs.map
2
+ //# sourceMappingURL=chunk-IEPZ7KSZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/booking/booking.enums.ts","../src/booking/booking-state-machine.ts","../src/booking/booking.schemas.ts","../src/booking/hiring.enums.ts","../src/booking/hiring.schemas.ts","../src/booking/thread.enums.ts","../src/booking/thread.schemas.ts"],"names":["BookingOrigin","BookingState","JobListingState","IoiState","BookingPaymentStatus","BookingTransitionActor","BOOKING_TERMINAL_STATES","DISPUTE_EXCLUDED_FROM","VALID_BOOKING_TRANSITIONS","BOOKING_TRANSITION_ACTORS","BOOKING_TRANSITION_TARGETS_REQUIRING_REASON","bookingTransitionKey","from","to","getAllowedBookingTargetStates","base","isValidBookingTransition","getBookingTransitionActors","canActorPerformBookingTransition","actor","bookingTransitionRequiresReason","_from","CreateBookingRequestSchema","z","ConfirmBookingRequestSchema","BookingResponseSchema","CreateJobListingRequestSchema","JobListingResponseSchema","SubmitIndicationOfInterestRequestSchema","IndicationOfInterestResponseSchema","JobLocation","jsonRecordSchema","CreateMarketplaceBookingRequestSchema","MarketplaceBookingResponseSchema","CreateMarketplaceBookingResponseSchema","bookingTransitionReasonSchema","TransitionMarketplaceBookingRequestSchema","data","ctx","TransitionMarketplaceBookingResponseSchema","MarketplaceJobListingBodySchema","CreateMarketplaceJobListingRequestSchema","UpdateMarketplaceJobListingRequestSchema","ListMarketplaceJobListingsQuerySchema","PaginationParamsSchema","MarketplaceJobListingResponseSchema","SubmitMarketplaceIndicationOfInterestRequestSchema","MarketplaceIndicationOfInterestResponseSchema","JobInterestState","MarketplaceIndicationOfInterestHostItemSchema","MessageDeliveryStatus","MarketplaceHiringThreadSchema","MarketplaceHiringMessageAttachmentSchema","MarketplaceHiringMessageSchema","ListMarketplaceHiringThreadMessagesQuerySchema","ListMarketplaceHiringThreadMessagesResponseSchema","PaginationResponseSchema","GetMarketplaceHiringThreadResponseSchema","PostMarketplaceHiringThreadMessageRequestSchema","PostMarketplaceHiringThreadMessageResponseSchema","MarkMarketplaceHiringThreadReadRequestSchema","MarkMarketplaceHiringTh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A,CACCA,CAAAA,CAAE,MAAA,CAAO,CACP,IAAKA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CACpB,QAAA,CAAUA,EAAE,MAAA,EAAO,CAAE,GAAA,CAAI,CAAC,CAAA,CAAE,GAAA,CAAI,GAAG,CAAA,CACnC,SAAA,CAAWA,EAAE,MAAA,EAAO,CAAE,KAAI,CAAE,QAAA,EAC9B,CAAC,CACH,CAAA,CACC,IAAI,EAAE,CAAA,CACN,QAAA,EACL,CAAC,CAAA,CAEYoC,GAAmDpC,CAAAA,CAAE,MAAA,CAAO,CACvE,OAAA,CAAS8B,CACX,CAAC,EAEYO,EAAAA,CAA+CrC,CAAAA,CAAE,OAAO,CACnE,aAAA,CAAeA,EAAE,IAAA,EAAK,CAAE,QAAA,EAC1B,CAAC,CAAA,CAEYsC,GAAgDtC,CAAAA,CAAE,MAAA,CAAO,CACpE,WAAA,CAAaA,CAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,WAAA,EAChC,CAAC","file":"chunk-IEPZ7KSZ.mjs","sourcesContent":["export const BookingOrigin = {\n EVENT_DIRECT: 'EVENT_DIRECT',\n MARKETPLACE_DIRECT: 'MARKETPLACE_DIRECT',\n JOB_LISTING: 'JOB_LISTING',\n} as const;\nexport type BookingOrigin = (typeof BookingOrigin)[keyof typeof BookingOrigin];\n\nexport const BookingState = {\n REQUESTED: 'REQUESTED',\n AWAITING_PRODUCER_RESPONSE: 'AWAITING_PRODUCER_RESPONSE',\n IN_NEGOTIATION: 'IN_NEGOTIATION',\n ACCEPTED: 'ACCEPTED',\n REJECTED: 'REJECTED',\n CANCELLED: 'CANCELLED',\n AWAITING_ESCROW_FUNDING: 'AWAITING_ESCROW_FUNDING',\n CONFIRMED: 'CONFIRMED',\n IN_PROGRESS: 'IN_PROGRESS',\n SERVICE_COMPLETED: 'SERVICE_COMPLETED',\n IN_DISPUTE: 'IN_DISPUTE',\n CLOSED: 'CLOSED',\n} as const;\nexport type BookingState = (typeof BookingState)[keyof typeof BookingState];\n\nexport const JobListingState = {\n OPEN: 'OPEN',\n CLOSED: 'CLOSED',\n SUSPENDED: 'SUSPENDED',\n} as const;\nexport type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];\n\nexport const IoiState = {\n OPEN: 'OPEN',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n} as const;\nexport type IoiState = (typeof IoiState)[keyof typeof IoiState];\n\n/**\n * Enum for booking payment status.\n */\nexport const BookingPaymentStatus = {\n PENDING: 'PENDING',\n ESCROW_FUNDED: 'ESCROW_FUNDED',\n RELEASED: 'RELEASED',\n REFUNDED: 'REFUNDED',\n FAILED: 'FAILED',\n} as const;\nexport type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];\n\n/** Actor that may trigger a booking state transition (RBAC). */\nexport const BookingTransitionActor = {\n HOST: 'HOST',\n PRODUCER: 'PRODUCER',\n ADMIN: 'ADMIN',\n SYSTEM: 'SYSTEM',\n} as const;\nexport type BookingTransitionActor =\n (typeof BookingTransitionActor)[keyof typeof BookingTransitionActor];\n","import { BookingState, BookingTransitionActor } from './booking.enums';\n\nexport type BookingTransitionKey = `${BookingState}->${BookingState}`;\n\nexport const BOOKING_TERMINAL_STATES: readonly BookingState[] = [\n BookingState.REJECTED,\n BookingState.CANCELLED,\n BookingState.CLOSED,\n];\n\nconst DISPUTE_EXCLUDED_FROM: readonly BookingState[] = [\n ...BOOKING_TERMINAL_STATES,\n BookingState.IN_DISPUTE,\n];\n\n/** Valid target states per source (excludes dispute shortcut — see `getAllowedBookingTargetStates`). */\nexport const VALID_BOOKING_TRANSITIONS: Record<BookingState, readonly BookingState[]> = {\n [BookingState.REQUESTED]: [BookingState.AWAITING_PRODUCER_RESPONSE, BookingState.CANCELLED],\n [BookingState.AWAITING_PRODUCER_RESPONSE]: [\n BookingState.IN_NEGOTIATION,\n BookingState.REJECTED,\n BookingState.CANCELLED,\n ],\n [BookingState.IN_NEGOTIATION]: [\n BookingState.ACCEPTED,\n BookingState.REJECTED,\n BookingState.CANCELLED,\n ],\n [BookingState.ACCEPTED]: [BookingState.AWAITING_ESCROW_FUNDING, BookingState.CANCELLED],\n [BookingState.AWAITING_ESCROW_FUNDING]: [BookingState.CONFIRMED, BookingState.CANCELLED],\n [BookingState.CONFIRMED]: [BookingState.IN_PROGRESS],\n [BookingState.IN_PROGRESS]: [BookingState.SERVICE_COMPLETED, BookingState.CANCELLED],\n [BookingState.SERVICE_COMPLETED]: [BookingState.CLOSED],\n [BookingState.IN_DISPUTE]: [BookingState.CLOSED],\n [BookingState.REJECTED]: [],\n [BookingState.CANCELLED]: [],\n [BookingState.CLOSED]: [],\n};\n\n/** RBAC: which actor may perform each transition (dispute edges merged at runtime). */\nexport const BOOKING_TRANSITION_ACTORS: Partial<\n Record<BookingTransitionKey, readonly BookingTransitionActor[]>\n> = {\n [`${BookingState.REQUESTED}->${BookingState.AWAITING_PRODUCER_RESPONSE}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.SYSTEM,\n ],\n [`${BookingState.REQUESTED}->${BookingState.CANCELLED}`]: [BookingTransitionActor.HOST],\n [`${BookingState.AWAITING_PRODUCER_RESPONSE}->${BookingState.IN_NEGOTIATION}`]: [\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.AWAITING_PRODUCER_RESPONSE}->${BookingState.REJECTED}`]: [\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.AWAITING_PRODUCER_RESPONSE}->${BookingState.CANCELLED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.IN_NEGOTIATION}->${BookingState.ACCEPTED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.IN_NEGOTIATION}->${BookingState.REJECTED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.IN_NEGOTIATION}->${BookingState.CANCELLED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.ACCEPTED}->${BookingState.AWAITING_ESCROW_FUNDING}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.SYSTEM,\n ],\n [`${BookingState.ACCEPTED}->${BookingState.CANCELLED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.AWAITING_ESCROW_FUNDING}->${BookingState.CONFIRMED}`]: [\n BookingTransitionActor.SYSTEM,\n BookingTransitionActor.ADMIN,\n ],\n [`${BookingState.AWAITING_ESCROW_FUNDING}->${BookingState.CANCELLED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.ADMIN,\n ],\n [`${BookingState.CONFIRMED}->${BookingState.IN_PROGRESS}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.PRODUCER,\n BookingTransitionActor.ADMIN,\n ],\n [`${BookingState.IN_PROGRESS}->${BookingState.SERVICE_COMPLETED}`]: [\n BookingTransitionActor.PRODUCER,\n ],\n [`${BookingState.IN_PROGRESS}->${BookingState.CANCELLED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.ADMIN,\n ],\n [`${BookingState.SERVICE_COMPLETED}->${BookingState.CLOSED}`]: [\n BookingTransitionActor.HOST,\n BookingTransitionActor.ADMIN,\n BookingTransitionActor.SYSTEM,\n ],\n [`${BookingState.IN_DISPUTE}->${BookingState.CLOSED}`]: [\n BookingTransitionActor.ADMIN,\n BookingTransitionActor.HOST,\n ],\n};\n\n/** Target states that require a `reason` on the transition request. */\nexport const BOOKING_TRANSITION_TARGETS_REQUIRING_REASON: readonly BookingState[] = [\n BookingState.REJECTED,\n BookingState.CANCELLED,\n BookingState.IN_DISPUTE,\n];\n\nexport function bookingTransitionKey(from: BookingState, to: BookingState): BookingTransitionKey {\n return `${from}->${to}`;\n}\n\nexport function getAllowedBookingTargetStates(from: BookingState): readonly BookingState[] {\n const base = VALID_BOOKING_TRANSITIONS[from] ?? [];\n if (!DISPUTE_EXCLUDED_FROM.includes(from)) {\n return [...base, BookingState.IN_DISPUTE];\n }\n return base;\n}\n\nexport function isValidBookingTransition(from: BookingState, to: BookingState): boolean {\n return getAllowedBookingTargetStates(from).includes(to);\n}\n\nexport function getBookingTransitionActors(\n from: BookingState,\n to: BookingState,\n): readonly BookingTransitionActor[] {\n if (to === BookingState.IN_DISPUTE && !DISPUTE_EXCLUDED_FROM.includes(from)) {\n return [BookingTransitionActor.HOST, BookingTransitionActor.PRODUCER];\n }\n return BOOKING_TRANSITION_ACTORS[bookingTransitionKey(from, to)] ?? [];\n}\n\nexport function canActorPerformBookingTransition(\n from: BookingState,\n to: BookingState,\n actor: BookingTransitionActor,\n): boolean {\n return getBookingTransitionActors(from, to).includes(actor);\n}\n\nexport function bookingTransitionRequiresReason(_from: BookingState, to: BookingState): boolean {\n return BOOKING_TRANSITION_TARGETS_REQUIRING_REASON.includes(to);\n}\n","import { z } from 'zod';\nimport {\n BookingOrigin,\n BookingState,\n JobListingState,\n IoiState,\n BookingPaymentStatus,\n} from './booking.enums';\n\nexport const CreateBookingRequestSchema = z.object({\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n producerId: z.uuid(),\n agreedAmount: z.number().min(0),\n serviceDetails: z\n .object({\n requiredDate: z.iso.datetime(),\n location: z.string(),\n eventType: z.string(),\n estimatedDurationHrs: z.number(),\n notes: z.string().optional(),\n })\n .optional(),\n});\n\nexport const ConfirmBookingRequestSchema = z.object({\n escrowReference: z.string(),\n});\n\nexport const BookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().optional(),\n hostId: z.uuid(),\n producerId: z.uuid(),\n quotedPrice: z.number(),\n currency: z.string(),\n scopeOfWork: z.record(z.string(), z.any()).optional(),\n requiredStartAt: z.iso.datetime(),\n requiredEndAt: z.iso.datetime(),\n bookingState: z.enum(BookingState),\n paymentStatus: z.enum(BookingPaymentStatus),\n escrowReference: z.string().optional(),\n completedAt: z.iso.datetime().optional(),\n hostRating: z.number().optional(),\n hostReview: z.string().optional(),\n producerRating: z.number().optional(),\n producerReview: z.string().optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const CreateJobListingRequestSchema = z.object({\n title: z.string().max(255),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n});\n\nexport const JobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().optional(),\n title: z.string(),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n state: z.enum(JobListingState),\n proposalCount: z.number(),\n createdAt: z.iso.datetime(),\n});\n\nexport const SubmitIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().optional(),\n proposedAmount: z.number().min(0).optional(),\n availabilityNotes: z.string().optional(),\n});\n\nexport const IndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().optional(),\n proposedAmount: z.number().optional(),\n state: z.enum(IoiState),\n createdAt: z.iso.datetime(),\n});\n","export const JobLocation = {\n ONSITE: 'ONSITE',\n REMOTE: 'REMOTE',\n} as const;\nexport type JobLocation = (typeof JobLocation)[keyof typeof JobLocation];\n","import { z } from 'zod';\nimport { JobInterestState } from '../joblisting/listing.enum';\nimport { BookingOrigin, BookingState, JobListingState } from './booking.enums';\nimport { JobLocation } from './hiring.enums';\nimport { PaginationParamsSchema } from '../common';\n\nconst jsonRecordSchema = z.record(z.string(), z.unknown());\n\n/** `POST /marketplace/bookings` */\nexport const CreateMarketplaceBookingRequestSchema = z.object({\n producerId: z.uuid(),\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n jobListingId: z.uuid().optional(),\n agreedAmount: z.coerce.number().nonnegative().optional(),\n scopeOfWork: z.string().max(5000).optional(),\n});\n\nexport const MarketplaceBookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().nullable(),\n hostProfileId: z.uuid(),\n producerProfileId: z.uuid(),\n origin: z.enum(BookingOrigin),\n jobListingId: z.uuid().nullable(),\n sourceIoiId: z.uuid().nullable(),\n state: z.enum(BookingState),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** `POST /marketplace/bookings` — create acknowledgement */\nexport const CreateMarketplaceBookingResponseSchema = z.object({\n bookingId: z.uuid(),\n booking: MarketplaceBookingResponseSchema,\n});\n\nconst bookingTransitionReasonSchema = z.string().trim().min(5).max(500);\n\n/** `POST /marketplace/bookings/:id/transition` (host, producer, admin) */\nexport const TransitionMarketplaceBookingRequestSchema = z\n .object({\n targetState: z.enum(BookingState),\n reason: bookingTransitionReasonSchema.optional(),\n })\n .superRefine((data, ctx) => {\n const requiresReason =\n data.targetState === BookingState.REJECTED ||\n data.targetState === BookingState.CANCELLED ||\n data.targetState === BookingState.IN_DISPUTE;\n if (requiresReason && data.reason === undefined) {\n ctx.addIssue({\n code: 'custom',\n message: 'reason is required for this transition',\n path: ['reason'],\n });\n }\n });\n\nexport const TransitionMarketplaceBookingResponseSchema = z.object({\n booking: MarketplaceBookingResponseSchema,\n});\n\nconst MarketplaceJobListingBodySchema = z.object({\n title: z.string().min(1).max(200),\n description: z.string().min(1).max(5000),\n responsibilities: z.string().min(1),\n requirements: z.string().min(1),\n role: z.string().min(1).max(120),\n requiredDate: z.iso.datetime().optional(),\n estimatedDurationHours: z.coerce.number().int().positive().optional(),\n location: z.enum(JobLocation),\n notes: z.string().max(2000).optional(),\n compensation: z.coerce.number().nonnegative().optional(),\n attachments: jsonRecordSchema.optional(),\n eventId: z.uuid().optional(),\n});\n\n/** `POST /marketplace/job-listings` */\nexport const CreateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema;\n\nexport const UpdateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema.partial();\n\nexport const ListMarketplaceJobListingsQuerySchema = z.object({\n ...PaginationParamsSchema.shape,\n location: z.enum(JobLocation).optional(),\n});\n\nexport const MarketplaceJobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().nullable(),\n title: z.string(),\n notes: z.string().nullable(),\n description: z.string(),\n responsibilities: z.string(),\n requirements: z.string(),\n role: z.string(),\n requiredDate: z.string().nullable(),\n estimatedDurationHours: z.number().int().nullable(),\n location: z.enum(JobLocation),\n compensation: z.number().nullable(),\n attachments: z.unknown().nullable(),\n state: z.enum(JobListingState),\n proposalCount: z.number().int(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** `POST .../indications-of-interest` */\nexport const SubmitMarketplaceIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().min(1).max(2000).optional(),\n proposedAmount: z.coerce.number().nonnegative().optional(),\n availabilityNotes: z.string().max(2000).optional(),\n attachments: jsonRecordSchema.optional(),\n});\n\nexport const MarketplaceIndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().nullable(),\n proposedAmount: z.number().nullable(),\n availabilityNotes: z.string().nullable(),\n state: z.enum(JobInterestState),\n resultingBookingId: z.uuid().nullable(),\n withdrawnAt: z.string().nullable(),\n selectedAt: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** Host review row — IoI plus producer display label */\nexport const MarketplaceIndicationOfInterestHostItemSchema =\n MarketplaceIndicationOfInterestResponseSchema.extend({\n producerCompanyName: z.string().nullable(),\n });\n","export const MessageDeliveryStatus = {\n SENT: 'SENT',\n DELIVERED: 'DELIVERED',\n READ: 'READ',\n} as const;\nexport type MessageDeliveryStatus =\n (typeof MessageDeliveryStatus)[keyof typeof MessageDeliveryStatus];\n","import { z } from 'zod';\nimport { MessageDeliveryStatus } from './thread.enums';\nimport { PaginationParamsSchema, PaginationResponseSchema } from '../common/common.schemas';\n\nexport const MarketplaceHiringThreadSchema = z.object({\n id: z.uuid(),\n bookingId: z.uuid(),\n hostProfileId: z.uuid(),\n producerProfileId: z.uuid(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const MarketplaceHiringMessageAttachmentSchema = z.object({\n id: z.uuid(),\n url: z.string(),\n mimeType: z.string(),\n sizeBytes: z.number().int(),\n createdAt: z.string(),\n});\n\nexport const MarketplaceHiringMessageSchema = z.object({\n id: z.uuid(),\n threadId: z.uuid(),\n senderUserId: z.uuid(),\n body: z.string(),\n sentAt: z.string(),\n deliveryStatus: z.enum(MessageDeliveryStatus),\n readAt: z.string().nullable(),\n attachments: z.array(MarketplaceHiringMessageAttachmentSchema),\n});\n\nexport const ListMarketplaceHiringThreadMessagesQuerySchema = PaginationParamsSchema;\n\nexport const ListMarketplaceHiringThreadMessagesResponseSchema = z.object({\n messages: z.array(MarketplaceHiringMessageSchema),\n ...PaginationResponseSchema.shape,\n});\n\nexport const GetMarketplaceHiringThreadResponseSchema = z.object({\n thread: MarketplaceHiringThreadSchema,\n messages: z.array(MarketplaceHiringMessageSchema),\n ...PaginationResponseSchema.shape,\n});\n\nexport const PostMarketplaceHiringThreadMessageRequestSchema = z.object({\n body: z.string().trim().min(1).max(5000),\n attachments: z\n .array(\n z.object({\n url: z.string().url(),\n mimeType: z.string().min(1).max(120),\n sizeBytes: z.number().int().positive(),\n }),\n )\n .max(10)\n .optional(),\n});\n\nexport const PostMarketplaceHiringThreadMessageResponseSchema = z.object({\n message: MarketplaceHiringMessageSchema,\n});\n\nexport const MarkMarketplaceHiringThreadReadRequestSchema = z.object({\n upToMessageId: z.uuid().optional(),\n});\n\nexport const MarkMarketplaceHiringThreadReadResponseSchema = z.object({\n markedCount: z.number().int().nonnegative(),\n});\n"]}
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkW2AXUTIW_js=require('./chunk-W2AXUTIW.js'),zod=require('zod');var r={GOOGLE:"GOOGLE",APPLE:"APPLE",FACEBOOK:"FACEBOOK",TWITTER:"TWITTER"},s={EMAIL_MATCH:"email_match",EMAIL_MISS:"email_missing"},p={SIGNED_IN:"signed_in",SIGNED_UP:"signed_up",LINK_REQUIRED:"link_required"};var i=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[ !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]).{8,}$"),a="Password must be at least 8 characters and include an uppercase letter, a lowercase letter, a number, and a special character.",t=zod.z.string().min(8,a).regex(i,a),R=zod.z.object({email:zod.z.email().toLowerCase(),password:t,firstName:zod.z.string(),lastName:zod.z.string(),role:zod.z.enum(chunkW2AXUTIW_js.a).optional()}),h=zod.z.object({username:zod.z.string(),reference:zod.z.string(),role:zod.z.enum(chunkW2AXUTIW_js.a).optional()}),g=zod.z.object({email:zod.z.email().toLowerCase(),password:t,role:zod.z.enum(chunkW2AXUTIW_js.a).optional()}),x=zod.z.object({otp:zod.z.string().length(4),reference:zod.z.string(),type:zod.z.enum(["registration","passwordReset"])}),f=zod.z.object({reference:zod.z.string(),type:zod.z.enum(["registration","passwordReset"])}),S=zod.z.object({isValid:zod.z.boolean(),message:zod.z.string(),reference:zod.z.string().optional()}),b=zod.z.object({AccessToken:zod.z.string(),RefreshToken:zod.z.string(),IdToken:zod.z.string(),ExpiresIn:zod.z.number(),TokenType:zod.z.literal("Bearer")}),k=zod.z.object({refreshToken:zod.z.string()}),j=zod.z.object({refreshToken:zod.z.string(),accessToken:zod.z.string()}),E=zod.z.object({email:zod.z.email().toLowerCase()}),O=zod.z.object({destination:zod.z.string(),deliveryMedium:zod.z.string(),attributeName:zod.z.string()}),w=zod.z.object({token:zod.z.string(),newPassword:t}),y=zod.z.object({currentPassword:t,newPassword:t}),L=zod.z.object({redirectTo:zod.z.string().min(1).max(2048).optional()}),P=zod.z.object({authorizeUrl:zod.z.url()}),q=zod.z.object({handoff:zod.z.string().min(16).max(128)}),T=zod.z.object({idToken:zod.z.string().min(1).max(8192),nonce:zod.z.string().min(8).max(256),authorizationCode:zod.z.string().min(1).max(1024).optional(),user:zod.z.object({name:zod.z.object({firstName:zod.z.string().max(128).nullable().optional(),lastName:zod.z.string().max(128).nullable().optional()}).optional()}).optional()}),I=zod.z.object({linkHandoff:zod.z.string().min(16).max(128),password:t.optional(),otpReference:zod.z.string().min(1).max(128).optional(),otp:zod.z.string().length(4).optional()}).refine(n=>n.password?true:n.otpReference&&n.otp,"either `password` OR (`otpReference` AND `otp`) must be provided"),A=zod.z.object({linkHandoff:zod.z.string().min(16).max(128)}),_=zod.z.object({kind:zod.z.literal("link_required"),reason:zod.z.enum(s),linkHandoff:zod.z.string(),maskedEmail:zod.z.string(),hasPassword:zod.z.boolean(),provider:zod.z.enum(r)}),v=zod.z.object({otpReference:zod.z.string()}),c=zod.z.object({name:zod.z.enum(r),enabled:zod.z.boolean(),canSignUp:zod.z.boolean()}),C=zod.z.object({providers:zod.z.array(c)}),N=zod.z.object({linkHandoff:zod.z.string().min(16).max(128),email:zod.z.email().max(320)}),G=zod.z.object({password:t}),D=zod.z.object({reauthToken:zod.z.string(),expiresAt:zod.z.iso.datetime()});exports.A=C;exports.B=N;exports.C=G;exports.D=D;exports.a=r;exports.b=s;exports.c=p;exports.d=t;exports.e=R;exports.f=h;exports.g=g;exports.h=x;exports.i=f;exports.j=S;exports.k=b;exports.l=k;exports.m=j;exports.n=E;exports.o=O;exports.p=w;exports.q=y;exports.r=L;exports.s=P;exports.t=q;exports.u=T;exports.v=I;exports.w=A;exports.x=_;exports.y=v;exports.z=c;//# sourceMappingURL=chunk-JXZNFGAC.js.map
2
+ //# sourceMappingURL=chunk-JXZNFGAC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth/auth.enums.ts","../src/auth/auth.schemas.ts"],"names":["IdentityProvider","LinkRequiredReasonEnum","OauthResolveKind","PASSWORD_REGEX","PASSWORD_MESSAGE","PasswordSchema","z","RegisterRequestSchema","UserRole","RegisterResponseSchema","LoginRequestSchema","VerifyOtpRequestSchema","ResendOtpRequestSchema","VerifyOtpResponseSchema","LoginResponseSchema","RefreshTokenRequestSchema","LogoutRequestSchema","ForgotPasswordRequestSchema","ForgotPasswordResponseSchema","ResetPasswordRequestSchema","ChangePasswordRequestSchema","OauthStartQuerySchema","OauthStartResponseSchema","OauthExchangeRequestSchema","OauthDirectTokenRequestSchema","OauthLinkCompleteRequestSchema","v","OauthLinkSendOtpRequestSchema","LinkRequiredResponseSchema","OauthLinkSendOtpResponseSchema","ProvidersListItemSchema","ProvidersListResponseSchema","OauthLinkCompleteEmailRequestSchema","ConfirmPasswordSchema","ReauthTokenResponseSchema"],"mappings":"oFAAO,IAAMA,EAAmB,CAC9B,MAAA,CAAQ,QAAA,CACR,KAAA,CAAO,OAAA,CACP,QAAA,CAAU,UAAA,CACV,OAAA,CAAS,SACX,CAAA,CAEaC,CAAAA,CAAyB,CACpC,WAAA,CAAa,aAAA,CACb,UAAA,CAAY,eACd,CAAA,CAGaC,EAAmB,CAC9B,SAAA,CAAW,WAAA,CACX,SAAA,CAAW,YACX,aAAA,CAAe,eACjB,ECbA,IAAMC,EAAiB,IAAI,MAAA,CACzB,yFACF,CAAA,CAEMC,CAAAA,CACJ,gIAAA,CAEWC,CAAAA,CAAiBC,KAAAA,CAC3B,QAAO,CACP,GAAA,CAAI,CAAA,CAAGF,CAAgB,CAAA,CACvB,KAAA,CAAMD,CAAAA,CAAgBC,CAAgB,EAK5BG,CAAAA,CAAwBD,KAAAA,CAAE,MAAA,CAAO,CAC5C,KAAA,CAAOA,KAAAA,CAAE,KAAA,EAAM,CAAE,aAAY,CAC7B,QAAA,CAAUD,CAAAA,CACV,SAAA,CAAWC,MAAE,MAAA,EAAO,CACpB,QAAA,CAAUA,KAAAA,CAAE,QAAO,CACnB,IAAA,CAAMA,KAAAA,CAAE,IAAA,CAAKE,kBAAQ,CAAA,CAAE,QAAA,EACzB,CAAC,CAAA,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AAAA,CAAwB3B,MAAE,MAAA,CAAO,CAC5C,QAAA,CAAUD,CACZ,CAAC,CAAA,CAEY6B,CAAAA,CAA4B5B,KAAAA,CAAE,OAAO,CAChD,WAAA,CAAaA,KAAAA,CAAE,MAAA,GACf,SAAA,CAAWA,KAAAA,CAAE,GAAA,CAAI,QAAA,EACnB,CAAC","file":"chunk-JXZNFGAC.js","sourcesContent":["export const IdentityProvider = {\n GOOGLE: 'GOOGLE',\n APPLE: 'APPLE',\n FACEBOOK: 'FACEBOOK',\n TWITTER: 'TWITTER',\n} as const;\nexport type IdentityProvider = (typeof IdentityProvider)[keyof typeof IdentityProvider];\nexport const LinkRequiredReasonEnum = {\n EMAIL_MATCH: 'email_match',\n EMAIL_MISS: 'email_missing',\n} as const;\nexport type LinkRequiredReasonEnum =\n (typeof LinkRequiredReasonEnum)[keyof typeof LinkRequiredReasonEnum];\nexport const OauthResolveKind = {\n SIGNED_IN: 'signed_in',\n SIGNED_UP: 'signed_up',\n LINK_REQUIRED: 'link_required',\n} as const;\nexport type OauthResolveKind = (typeof OauthResolveKind)[keyof typeof OauthResolveKind];\n","import { z } from 'zod';\nimport { UserRole } from '../user';\nimport { IdentityProvider, LinkRequiredReasonEnum } from './auth.enums';\n\nconst PASSWORD_REGEX = new RegExp(\n '^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[ !\"#$%&\\'()*+,-./:;<=>?@[\\\\]^_`{|}~]).{8,}$',\n);\n\nconst PASSWORD_MESSAGE =\n 'Password must be at least 8 characters and include an uppercase letter, a lowercase letter, a number, and a special character.';\n\nexport const PasswordSchema = z\n .string()\n .min(8, PASSWORD_MESSAGE)\n .regex(PASSWORD_REGEX, PASSWORD_MESSAGE);\n\n/**\n * Zod schema for registration request.\n */\nexport const RegisterRequestSchema = z.object({\n email: z.email().toLowerCase(),\n password: PasswordSchema,\n firstName: z.string(),\n lastName: z.string(),\n role: z.enum(UserRole).optional(),\n});\n\n/**\n * Zod schema for registration response.\n */\nexport const RegisterResponseSchema = z.object({\n username: z.string(),\n reference: z.string(),\n role: z.enum(UserRole).optional(),\n});\n\n/**\n * Zod schema for login request.\n */\nexport const LoginRequestSchema = z.object({\n email: z.email().toLowerCase(),\n password: PasswordSchema,\n role: z.enum(UserRole).optional(),\n});\n\nexport const VerifyOtpRequestSchema = z.object({\n otp: z.string().length(4),\n reference: z.string(),\n type: z.enum(['registration', 'passwordReset']),\n});\n\nexport const ResendOtpRequestSchema = z.object({\n reference: z.string(),\n type: z.enum(['registration', 'passwordReset']),\n});\n\nexport const VerifyOtpResponseSchema = z.object({\n isValid: z.boolean(),\n message: z.string(),\n reference: z.string().optional(),\n});\n\n/**\n * Zod schema for login response.\n */\nexport const LoginResponseSchema = z.object({\n AccessToken: z.string(),\n RefreshToken: z.string(),\n IdToken: z.string(),\n ExpiresIn: z.number(),\n TokenType: z.literal('Bearer'),\n});\n\n/**\n * Zod schema for refresh token request.\n */\nexport const RefreshTokenRequestSchema = z.object({\n refreshToken: z.string(),\n});\n\nexport const LogoutRequestSchema = z.object({\n refreshToken: z.string(),\n accessToken: z.string(),\n});\n\n/**\n * Zod schema for forgot password request.\n */\nexport const ForgotPasswordRequestSchema = z.object({\n email: z.email().toLowerCase(),\n});\n\nexport const ForgotPasswordResponseSchema = z.object({\n destination: z.string(),\n deliveryMedium: z.string(),\n attributeName: z.string(),\n});\n\n/**\n * Zod schema for reset password request.\n */\nexport const ResetPasswordRequestSchema = z.object({\n token: z.string(),\n newPassword: PasswordSchema,\n});\n\n/**\n * Zod schema for change password request.\n */\nexport const ChangePasswordRequestSchema = z.object({\n currentPassword: PasswordSchema,\n newPassword: PasswordSchema,\n});\n\nexport const OauthStartQuerySchema = z.object({\n redirectTo: z.string().min(1).max(2048).optional(),\n});\n\nexport const OauthStartResponseSchema = z.object({\n authorizeUrl: z.url(),\n});\n\nexport const OauthExchangeRequestSchema = z.object({\n handoff: z.string().min(16).max(128),\n});\n\nexport const OauthDirectTokenRequestSchema = z.object({\n idToken: z.string().min(1).max(8192),\n nonce: z.string().min(8).max(256),\n authorizationCode: z.string().min(1).max(1024).optional(),\n user: z\n .object({\n name: z\n .object({\n firstName: z.string().max(128).nullable().optional(),\n lastName: z.string().max(128).nullable().optional(),\n })\n .optional(),\n })\n .optional(),\n});\n\nexport const OauthLinkCompleteRequestSchema = z\n .object({\n linkHandoff: z.string().min(16).max(128),\n password: PasswordSchema.optional(),\n otpReference: z.string().min(1).max(128).optional(),\n otp: z.string().length(4).optional(),\n })\n .refine(\n (v) => (v.password ? true : v.otpReference && v.otp),\n 'either `password` OR (`otpReference` AND `otp`) must be provided',\n );\n\nexport const OauthLinkSendOtpRequestSchema = z.object({\n linkHandoff: z.string().min(16).max(128),\n});\n\nexport const LinkRequiredResponseSchema = z.object({\n kind: z.literal('link_required'),\n reason: z.enum(LinkRequiredReasonEnum),\n linkHandoff: z.string(),\n maskedEmail: z.string(),\n hasPassword: z.boolean(),\n provider: z.enum(IdentityProvider),\n});\n\nexport const OauthLinkSendOtpResponseSchema = z.object({\n otpReference: z.string(),\n});\n\nexport const ProvidersListItemSchema = z.object({\n name: z.enum(IdentityProvider),\n enabled: z.boolean(),\n canSignUp: z.boolean(),\n});\n\nexport const ProvidersListResponseSchema = z.object({\n providers: z.array(ProvidersListItemSchema),\n});\n\nexport const OauthLinkCompleteEmailRequestSchema = z.object({\n linkHandoff: z.string().min(16).max(128),\n email: z.email().max(320),\n});\n\nexport const ConfirmPasswordSchema = z.object({\n password: PasswordSchema,\n});\n\nexport const ReauthTokenResponseSchema = z.object({\n reauthToken: z.string(),\n expiresAt: z.iso.datetime(), // ISO date string ;\n});\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkQGEYDED6_js=require('./chunk-QGEYDED6.js'),chunkL72M5DCH_js=require('./chunk-L72M5DCH.js'),zod=require('zod');var E={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},e={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"},I={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"},i={HOST:"HOST",PRODUCER:"PRODUCER",ADMIN:"ADMIN",SYSTEM:"SYSTEM"};var C=[e.REJECTED,e.CANCELLED,e.CLOSED],l=[...C,e.IN_DISPUTE],O={[e.REQUESTED]:[e.AWAITING_PRODUCER_RESPONSE,e.CANCELLED],[e.AWAITING_PRODUCER_RESPONSE]:[e.IN_NEGOTIATION,e.REJECTED,e.CANCELLED],[e.IN_NEGOTIATION]:[e.ACCEPTED,e.REJECTED,e.CANCELLED],[e.ACCEPTED]:[e.AWAITING_ESCROW_FUNDING,e.CANCELLED],[e.AWAITING_ESCROW_FUNDING]:[e.CONFIRMED,e.CANCELLED],[e.CONFIRMED]:[e.IN_PROGRESS],[e.IN_PROGRESS]:[e.SERVICE_COMPLETED,e.CANCELLED],[e.SERVICE_COMPLETED]:[e.CLOSED],[e.IN_DISPUTE]:[e.CLOSED],[e.REJECTED]:[],[e.CANCELLED]:[],[e.CLOSED]:[]},A={[`${e.REQUESTED}->${e.AWAITING_PRODUCER_RESPONSE}`]:[i.HOST,i.SYSTEM],[`${e.REQUESTED}->${e.CANCELLED}`]:[i.HOST],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.IN_NEGOTIATION}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.REJECTED}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.ACCEPTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.REJECTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.ACCEPTED}->${e.AWAITING_ESCROW_FUNDING}`]:[i.HOST,i.SYSTEM],[`${e.ACCEPTED}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.AWAITING_ESCROW_FUNDING}->${e.CONFIRMED}`]:[i.SYSTEM,i.ADMIN],[`${e.AWAITING_ESCROW_FUNDING}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.CONFIRMED}->${e.IN_PROGRESS}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${e.IN_PROGRESS}->${e.SERVICE_COMPLETED}`]:[i.PRODUCER],[`${e.IN_PROGRESS}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.SERVICE_COMPLETED}->${e.CLOSED}`]:[i.HOST,i.ADMIN,i.SYSTEM],[`${e.IN_DISPUTE}->${e.CLOSED}`]:[i.ADMIN,i.HOST]},b=[e.REJECTED,e.CANCELLED,e.IN_DISPUTE];function k(r,a){return `${r}->${a}`}function L(r){let a=O[r]??[];return l.includes(r)?a:[...a,e.IN_DISPUTE]}function h(r,a){return L(r).includes(a)}function P(r,a){return a===e.IN_DISPUTE&&!l.includes(r)?[i.HOST,i.PRODUCER]:A[k(r,a)]??[]}function U(r,a,g){return P(r,a).includes(g)}function G(r,a){return b.includes(a)}var J=zod.z.object({origin:zod.z.enum(E),eventId:zod.z.uuid().optional(),producerId:zod.z.uuid(),agreedAmount:zod.z.number().min(0),serviceDetails:zod.z.object({requiredDate:zod.z.iso.datetime(),location:zod.z.string(),eventType:zod.z.string(),estimatedDurationHrs:zod.z.number(),notes:zod.z.string().optional()}).optional()}),v=zod.z.object({escrowReference:zod.z.string()}),W=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().optional(),hostId:zod.z.uuid(),producerId:zod.z.uuid(),quotedPrice:zod.z.number(),currency:zod.z.string(),scopeOfWork:zod.z.record(zod.z.string(),zod.z.any()).optional(),requiredStartAt:zod.z.iso.datetime(),requiredEndAt:zod.z.iso.datetime(),bookingState:zod.z.enum(e),paymentStatus:zod.z.enum(I),escrowReference:zod.z.string().optional(),completedAt:zod.z.iso.datetime().optional(),hostRating:zod.z.number().optional(),hostReview:zod.z.string().optional(),producerRating:zod.z.number().optional(),producerReview:zod.z.string().optional(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime()}),q=zod.z.object({title:zod.z.string().max(255),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationHrs:zod.z.number().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional()}),F=zod.z.object({id:zod.z.uuid(),hostProfileId:zod.z.uuid(),eventId:zod.z.uuid().optional(),title:zod.z.string(),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationHrs:zod.z.number().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional(),state:zod.z.enum(u),proposalCount:zod.z.number(),createdAt:zod.z.iso.datetime()}),V=zod.z.object({coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().min(0).optional(),availabilityNotes:zod.z.string().optional()}),K=zod.z.object({id:zod.z.uuid(),jobListingId:zod.z.uuid(),producerProfileId:zod.z.uuid(),coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().optional(),state:zod.z.enum(m),createdAt:zod.z.iso.datetime()});var c={ONSITE:"ONSITE",REMOTE:"REMOTE"};var R=zod.z.record(zod.z.string(),zod.z.unknown()),te=zod.z.object({producerId:zod.z.uuid(),origin:zod.z.enum(E),eventId:zod.z.uuid().optional(),jobListingId:zod.z.uuid().optional(),agreedAmount:zod.z.coerce.number().nonnegative().optional(),scopeOfWork:zod.z.string().max(5e3).optional()}),D=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().nullable(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),origin:zod.z.enum(E),jobListingId:zod.z.uuid().nullable(),sourceIoiId:zod.z.uuid().nullable(),state:zod.z.enum(e),createdAt:zod.z.string(),updatedAt:zod.z.string()}),oe=zod.z.object({bookingId:zod.z.uuid(),booking:D}),x=zod.z.string().trim().min(5).max(500),ne=zod.z.object({targetState:zod.z.enum(e),reason:x.optional()}).superRefine((r,a)=>{(r.targetState===e.REJECTED||r.targetState===e.CANCELLED||r.targetState===e.IN_DISPUTE)&&r.reason===void 0&&a.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),ie=zod.z.object({booking:D}),T=zod.z.object({title:zod.z.string().min(1).max(200),description:zod.z.string().min(1).max(5e3),responsibilities:zod.z.string().min(1),requirements:zod.z.string().min(1),role:zod.z.string().min(1).max(120),requiredDate:zod.z.iso.datetime().optional(),estimatedDurationHours:zod.z.coerce.number().int().positive().optional(),location:zod.z.enum(c),notes:zod.z.string().max(2e3).optional(),compensation:zod.z.coerce.number().nonnegative().optional(),attachments:R.optional(),eventId:zod.z.uuid().optional()}),re=T,ae=T.partial(),se=zod.z.object({...chunkQGEYDED6_js.d.shape,location:zod.z.enum(c).optional()}),Ee=zod.z.object({id:zod.z.uuid(),hostProfileId:zod.z.uuid(),eventId:zod.z.uuid().nullable(),title:zod.z.string(),notes:zod.z.string().nullable(),description:zod.z.string(),responsibilities:zod.z.string(),requirements:zod.z.string(),role:zod.z.string(),requiredDate:zod.z.string().nullable(),estimatedDurationHours:zod.z.number().int().nullable(),location:zod.z.enum(c),compensation:zod.z.number().nullable(),attachments:zod.z.unknown().nullable(),state:zod.z.enum(u),proposalCount:zod.z.number().int(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),ue=zod.z.object({coverMessage:zod.z.string().min(1).max(2e3).optional(),proposedAmount:zod.z.coerce.number().nonnegative().optional(),availabilityNotes:zod.z.string().max(2e3).optional(),attachments:R.optional()}),_=zod.z.object({id:zod.z.uuid(),jobListingId:zod.z.uuid(),producerProfileId:zod.z.uuid(),coverMessage:zod.z.string().nullable(),proposedAmount:zod.z.number().nullable(),availabilityNotes:zod.z.string().nullable(),state:zod.z.enum(chunkL72M5DCH_js.a),resultingBookingId:zod.z.uuid().nullable(),withdrawnAt:zod.z.string().nullable(),selectedAt:zod.z.string().nullable(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),ce=_.extend({producerCompanyName:zod.z.string().nullable()});var N={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var M=zod.z.object({id:zod.z.uuid(),bookingId:zod.z.uuid().nullable(),jobListingId:zod.z.uuid().nullable(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),y=zod.z.object({id:zod.z.uuid(),url:zod.z.string(),mimeType:zod.z.string(),sizeBytes:zod.z.number().int(),createdAt:zod.z.string()}),S=zod.z.object({id:zod.z.uuid(),threadId:zod.z.uuid(),senderUserId:zod.z.uuid(),body:zod.z.string(),sentAt:zod.z.string(),deliveryStatus:zod.z.enum(N),readAt:zod.z.string().nullable(),attachments:zod.z.array(y)}),Ie=chunkQGEYDED6_js.d,le=zod.z.object({messages:zod.z.array(S),...chunkQGEYDED6_js.e.shape}),Re=zod.z.object({thread:M,messages:zod.z.array(S),...chunkQGEYDED6_js.e.shape}),De=zod.z.object({body:zod.z.string().trim().min(1).max(5e3),attachments:zod.z.array(zod.z.object({url:zod.z.string().url(),mimeType:zod.z.string().min(1).max(120),sizeBytes:zod.z.number().int().positive()})).max(10).optional()}),Te=zod.z.object({message:S}),Ne=zod.z.object({upToMessageId:zod.z.uuid().optional()}),Ce=zod.z.object({markedCount:zod.z.number().int().nonnegative()}),Oe=zod.z.object({producerProfileId:zod.z.uuid().optional(),...chunkQGEYDED6_js.d.shape});exports.A=oe;exports.B=ne;exports.C=ie;exports.D=re;exports.E=ae;exports.F=se;exports.G=Ee;exports.H=ue;exports.I=_;exports.J=ce;exports.K=N;exports.L=M;exports.M=y;exports.N=S;exports.O=Ie;exports.P=le;exports.Q=Re;exports.R=De;exports.S=Te;exports.T=Ne;exports.U=Ce;exports.V=Oe;exports.a=E;exports.b=e;exports.c=u;exports.d=m;exports.e=I;exports.f=i;exports.g=C;exports.h=O;exports.i=A;exports.j=b;exports.k=k;exports.l=L;exports.m=h;exports.n=P;exports.o=U;exports.p=G;exports.q=J;exports.r=v;exports.s=W;exports.t=q;exports.u=F;exports.v=V;exports.w=K;exports.x=c;exports.y=te;exports.z=D;//# sourceMappingURL=chunk-ZA5SQOKW.js.map
2
- //# sourceMappingURL=chunk-ZA5SQOKW.js.map
1
+ 'use strict';var chunkQGEYDED6_js=require('./chunk-QGEYDED6.js'),chunkL72M5DCH_js=require('./chunk-L72M5DCH.js'),zod=require('zod');var s={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},e={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"},I={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"},i={HOST:"HOST",PRODUCER:"PRODUCER",ADMIN:"ADMIN",SYSTEM:"SYSTEM"};var C=[e.REJECTED,e.CANCELLED,e.CLOSED],l=[...C,e.IN_DISPUTE],O={[e.REQUESTED]:[e.AWAITING_PRODUCER_RESPONSE,e.CANCELLED],[e.AWAITING_PRODUCER_RESPONSE]:[e.IN_NEGOTIATION,e.REJECTED,e.CANCELLED],[e.IN_NEGOTIATION]:[e.ACCEPTED,e.REJECTED,e.CANCELLED],[e.ACCEPTED]:[e.AWAITING_ESCROW_FUNDING,e.CANCELLED],[e.AWAITING_ESCROW_FUNDING]:[e.CONFIRMED,e.CANCELLED],[e.CONFIRMED]:[e.IN_PROGRESS],[e.IN_PROGRESS]:[e.SERVICE_COMPLETED,e.CANCELLED],[e.SERVICE_COMPLETED]:[e.CLOSED],[e.IN_DISPUTE]:[e.CLOSED],[e.REJECTED]:[],[e.CANCELLED]:[],[e.CLOSED]:[]},A={[`${e.REQUESTED}->${e.AWAITING_PRODUCER_RESPONSE}`]:[i.HOST,i.SYSTEM],[`${e.REQUESTED}->${e.CANCELLED}`]:[i.HOST],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.IN_NEGOTIATION}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.REJECTED}`]:[i.PRODUCER],[`${e.AWAITING_PRODUCER_RESPONSE}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.ACCEPTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.REJECTED}`]:[i.HOST,i.PRODUCER],[`${e.IN_NEGOTIATION}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.ACCEPTED}->${e.AWAITING_ESCROW_FUNDING}`]:[i.HOST,i.SYSTEM],[`${e.ACCEPTED}->${e.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${e.AWAITING_ESCROW_FUNDING}->${e.CONFIRMED}`]:[i.SYSTEM,i.ADMIN],[`${e.AWAITING_ESCROW_FUNDING}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.CONFIRMED}->${e.IN_PROGRESS}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${e.IN_PROGRESS}->${e.SERVICE_COMPLETED}`]:[i.PRODUCER],[`${e.IN_PROGRESS}->${e.CANCELLED}`]:[i.HOST,i.ADMIN],[`${e.SERVICE_COMPLETED}->${e.CLOSED}`]:[i.HOST,i.ADMIN,i.SYSTEM],[`${e.IN_DISPUTE}->${e.CLOSED}`]:[i.ADMIN,i.HOST]},b=[e.REJECTED,e.CANCELLED,e.IN_DISPUTE];function k(r,a){return `${r}->${a}`}function L(r){let a=O[r]??[];return l.includes(r)?a:[...a,e.IN_DISPUTE]}function h(r,a){return L(r).includes(a)}function P(r,a){return a===e.IN_DISPUTE&&!l.includes(r)?[i.HOST,i.PRODUCER]:A[k(r,a)]??[]}function U(r,a,g){return P(r,a).includes(g)}function G(r,a){return b.includes(a)}var J=zod.z.object({origin:zod.z.enum(s),eventId:zod.z.uuid().optional(),producerId:zod.z.uuid(),agreedAmount:zod.z.number().min(0),serviceDetails:zod.z.object({requiredDate:zod.z.iso.datetime(),location:zod.z.string(),eventType:zod.z.string(),estimatedDurationHrs:zod.z.number(),notes:zod.z.string().optional()}).optional()}),v=zod.z.object({escrowReference:zod.z.string()}),W=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().optional(),hostId:zod.z.uuid(),producerId:zod.z.uuid(),quotedPrice:zod.z.number(),currency:zod.z.string(),scopeOfWork:zod.z.record(zod.z.string(),zod.z.any()).optional(),requiredStartAt:zod.z.iso.datetime(),requiredEndAt:zod.z.iso.datetime(),bookingState:zod.z.enum(e),paymentStatus:zod.z.enum(I),escrowReference:zod.z.string().optional(),completedAt:zod.z.iso.datetime().optional(),hostRating:zod.z.number().optional(),hostReview:zod.z.string().optional(),producerRating:zod.z.number().optional(),producerReview:zod.z.string().optional(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime()}),q=zod.z.object({title:zod.z.string().max(255),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationHrs:zod.z.number().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional()}),F=zod.z.object({id:zod.z.uuid(),hostProfileId:zod.z.uuid(),eventId:zod.z.uuid().optional(),title:zod.z.string(),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationHrs:zod.z.number().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional(),state:zod.z.enum(u),proposalCount:zod.z.number(),createdAt:zod.z.iso.datetime()}),V=zod.z.object({coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().min(0).optional(),availabilityNotes:zod.z.string().optional()}),K=zod.z.object({id:zod.z.uuid(),jobListingId:zod.z.uuid(),producerProfileId:zod.z.uuid(),coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().optional(),state:zod.z.enum(m),createdAt:zod.z.iso.datetime()});var c={ONSITE:"ONSITE",REMOTE:"REMOTE"};var R=zod.z.record(zod.z.string(),zod.z.unknown()),te=zod.z.object({producerId:zod.z.uuid(),origin:zod.z.enum(s),eventId:zod.z.uuid().optional(),jobListingId:zod.z.uuid().optional(),agreedAmount:zod.z.coerce.number().nonnegative().optional(),scopeOfWork:zod.z.string().max(5e3).optional()}),D=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().nullable(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),origin:zod.z.enum(s),jobListingId:zod.z.uuid().nullable(),sourceIoiId:zod.z.uuid().nullable(),state:zod.z.enum(e),createdAt:zod.z.string(),updatedAt:zod.z.string()}),oe=zod.z.object({bookingId:zod.z.uuid(),booking:D}),x=zod.z.string().trim().min(5).max(500),ne=zod.z.object({targetState:zod.z.enum(e),reason:x.optional()}).superRefine((r,a)=>{(r.targetState===e.REJECTED||r.targetState===e.CANCELLED||r.targetState===e.IN_DISPUTE)&&r.reason===void 0&&a.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),ie=zod.z.object({booking:D}),T=zod.z.object({title:zod.z.string().min(1).max(200),description:zod.z.string().min(1).max(5e3),responsibilities:zod.z.string().min(1),requirements:zod.z.string().min(1),role:zod.z.string().min(1).max(120),requiredDate:zod.z.iso.datetime().optional(),estimatedDurationHours:zod.z.coerce.number().int().positive().optional(),location:zod.z.enum(c),notes:zod.z.string().max(2e3).optional(),compensation:zod.z.coerce.number().nonnegative().optional(),attachments:R.optional(),eventId:zod.z.uuid().optional()}),re=T,ae=T.partial(),se=zod.z.object({...chunkQGEYDED6_js.d.shape,location:zod.z.enum(c).optional()}),Ee=zod.z.object({id:zod.z.uuid(),hostProfileId:zod.z.uuid(),eventId:zod.z.uuid().nullable(),title:zod.z.string(),notes:zod.z.string().nullable(),description:zod.z.string(),responsibilities:zod.z.string(),requirements:zod.z.string(),role:zod.z.string(),requiredDate:zod.z.string().nullable(),estimatedDurationHours:zod.z.number().int().nullable(),location:zod.z.enum(c),compensation:zod.z.number().nullable(),attachments:zod.z.unknown().nullable(),state:zod.z.enum(u),proposalCount:zod.z.number().int(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),ue=zod.z.object({coverMessage:zod.z.string().min(1).max(2e3).optional(),proposedAmount:zod.z.coerce.number().nonnegative().optional(),availabilityNotes:zod.z.string().max(2e3).optional(),attachments:R.optional()}),_=zod.z.object({id:zod.z.uuid(),jobListingId:zod.z.uuid(),producerProfileId:zod.z.uuid(),coverMessage:zod.z.string().nullable(),proposedAmount:zod.z.number().nullable(),availabilityNotes:zod.z.string().nullable(),state:zod.z.enum(chunkL72M5DCH_js.a),resultingBookingId:zod.z.uuid().nullable(),withdrawnAt:zod.z.string().nullable(),selectedAt:zod.z.string().nullable(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),ce=_.extend({producerCompanyName:zod.z.string().nullable()});var N={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var M=zod.z.object({id:zod.z.uuid(),bookingId:zod.z.uuid(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),y=zod.z.object({id:zod.z.uuid(),url:zod.z.string(),mimeType:zod.z.string(),sizeBytes:zod.z.number().int(),createdAt:zod.z.string()}),S=zod.z.object({id:zod.z.uuid(),threadId:zod.z.uuid(),senderUserId:zod.z.uuid(),body:zod.z.string(),sentAt:zod.z.string(),deliveryStatus:zod.z.enum(N),readAt:zod.z.string().nullable(),attachments:zod.z.array(y)}),Ie=chunkQGEYDED6_js.d,le=zod.z.object({messages:zod.z.array(S),...chunkQGEYDED6_js.e.shape}),Re=zod.z.object({thread:M,messages:zod.z.array(S),...chunkQGEYDED6_js.e.shape}),De=zod.z.object({body:zod.z.string().trim().min(1).max(5e3),attachments:zod.z.array(zod.z.object({url:zod.z.string().url(),mimeType:zod.z.string().min(1).max(120),sizeBytes:zod.z.number().int().positive()})).max(10).optional()}),Te=zod.z.object({message:S}),Ne=zod.z.object({upToMessageId:zod.z.uuid().optional()}),Ce=zod.z.object({markedCount:zod.z.number().int().nonnegative()});exports.A=oe;exports.B=ne;exports.C=ie;exports.D=re;exports.E=ae;exports.F=se;exports.G=Ee;exports.H=ue;exports.I=_;exports.J=ce;exports.K=N;exports.L=M;exports.M=y;exports.N=S;exports.O=Ie;exports.P=le;exports.Q=Re;exports.R=De;exports.S=Te;exports.T=Ne;exports.U=Ce;exports.a=s;exports.b=e;exports.c=u;exports.d=m;exports.e=I;exports.f=i;exports.g=C;exports.h=O;exports.i=A;exports.j=b;exports.k=k;exports.l=L;exports.m=h;exports.n=P;exports.o=U;exports.p=G;exports.q=J;exports.r=v;exports.s=W;exports.t=q;exports.u=F;exports.v=V;exports.w=K;exports.x=c;exports.y=te;exports.z=D;//# sourceMappingURL=chunk-MF4EHXLU.js.map
2
+ //# sourceMappingURL=chunk-MF4EHXLU.js.map