@livdot-tech/contracts 1.5.6 → 1.5.8
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.
- package/dist/auth/index.d.mts +10 -1
- package/dist/auth/index.d.ts +10 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/booking/index.d.mts +18 -116
- package/dist/booking/index.d.ts +18 -116
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-2SBD35GV.js +2 -0
- package/dist/chunk-2SBD35GV.js.map +1 -0
- package/dist/chunk-HDXG5AKS.mjs +2 -0
- package/dist/{chunk-XUOMVQVQ.mjs.map → chunk-HDXG5AKS.mjs.map} +1 -1
- package/dist/chunk-JCAWAKZN.mjs +2 -0
- package/dist/chunk-JCAWAKZN.mjs.map +1 -0
- package/dist/chunk-JXM7K5X5.js +2 -0
- package/dist/chunk-JXM7K5X5.js.map +1 -0
- package/dist/{chunk-2TQ3BI34.js → chunk-LEBP3RB5.js} +2 -2
- package/dist/{chunk-2TQ3BI34.js.map → chunk-LEBP3RB5.js.map} +1 -1
- package/dist/chunk-QGEYDED6.js +2 -0
- package/dist/chunk-QGEYDED6.js.map +1 -0
- package/dist/{chunk-PCFMRWWF.mjs → chunk-R6SQRDH7.mjs} +2 -2
- package/dist/chunk-R6SQRDH7.mjs.map +1 -0
- package/dist/{chunk-QK5JKCO4.js → chunk-TLH4NZ36.js} +2 -2
- package/dist/chunk-TLH4NZ36.js.map +1 -0
- package/dist/chunk-WQRHUUGO.mjs +2 -0
- package/dist/chunk-WQRHUUGO.mjs.map +1 -0
- package/dist/chunk-X7OLLQRF.mjs +2 -0
- package/dist/chunk-X7OLLQRF.mjs.map +1 -0
- package/dist/chunk-YYP6D3S5.js +2 -0
- package/dist/chunk-YYP6D3S5.js.map +1 -0
- package/dist/chunk-ZVAGI5CH.mjs +2 -0
- package/dist/chunk-ZVAGI5CH.mjs.map +1 -0
- package/dist/common/index.d.mts +28 -13
- package/dist/common/index.d.ts +28 -13
- package/dist/common/index.js +1 -1
- package/dist/common/index.mjs +1 -1
- package/dist/event/index.d.mts +195 -12
- package/dist/event/index.d.ts +195 -12
- package/dist/event/index.js +1 -1
- package/dist/event/index.mjs +1 -1
- package/dist/index.d.mts +339 -21
- package/dist/index.d.ts +339 -21
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/marketplace/index.d.mts +3 -61
- package/dist/marketplace/index.d.ts +3 -61
- package/dist/marketplace/index.js +1 -1
- package/dist/marketplace/index.mjs +1 -1
- package/dist/user/index.js +1 -1
- package/dist/user/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4QRK35KJ.js +0 -2
- package/dist/chunk-4QRK35KJ.js.map +0 -1
- package/dist/chunk-54FMKF33.js +0 -2
- package/dist/chunk-54FMKF33.js.map +0 -1
- package/dist/chunk-EGUWLSAA.mjs +0 -2
- package/dist/chunk-EGUWLSAA.mjs.map +0 -1
- package/dist/chunk-EJCFJL2F.mjs +0 -2
- package/dist/chunk-EJCFJL2F.mjs.map +0 -1
- package/dist/chunk-FE3AMYQL.mjs +0 -2
- package/dist/chunk-FE3AMYQL.mjs.map +0 -1
- package/dist/chunk-GKYB3J5L.js +0 -2
- package/dist/chunk-GKYB3J5L.js.map +0 -1
- package/dist/chunk-PCFMRWWF.mjs.map +0 -1
- package/dist/chunk-QK5JKCO4.js.map +0 -1
- package/dist/chunk-QLYUL2K5.mjs +0 -2
- package/dist/chunk-QLYUL2K5.mjs.map +0 -1
- package/dist/chunk-VRSJMPBY.js +0 -2
- package/dist/chunk-VRSJMPBY.js.map +0 -1
- package/dist/chunk-XUOMVQVQ.mjs +0 -2
package/dist/auth/index.d.mts
CHANGED
|
@@ -191,6 +191,13 @@ declare const OauthLinkCompleteEmailRequestSchema: z.ZodObject<{
|
|
|
191
191
|
linkHandoff: z.ZodString;
|
|
192
192
|
email: z.ZodEmail;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
|
+
declare const ConfirmPasswordSchema: z.ZodObject<{
|
|
195
|
+
password: z.ZodString;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
declare const ReauthTokenResponseSchema: z.ZodObject<{
|
|
198
|
+
reauthToken: z.ZodString;
|
|
199
|
+
expiresAt: z.ZodISODateTime;
|
|
200
|
+
}, z.core.$strip>;
|
|
194
201
|
|
|
195
202
|
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
196
203
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
@@ -214,6 +221,8 @@ type OauthLinkSendOtpResponse = z.infer<typeof OauthLinkSendOtpResponseSchema>;
|
|
|
214
221
|
type ProvidersListResponse = z.infer<typeof ProvidersListResponseSchema>;
|
|
215
222
|
type ProvidersListItem = z.infer<typeof ProvidersListItemSchema>;
|
|
216
223
|
type OauthLinkCompleteEmailRequest = z.infer<typeof OauthLinkCompleteEmailRequestSchema>;
|
|
224
|
+
type ConfirmPassword = z.infer<typeof ConfirmPasswordSchema>;
|
|
225
|
+
type ReauthTokenResponse = z.infer<typeof ReauthTokenResponseSchema>;
|
|
217
226
|
|
|
218
227
|
declare const IdentityProvider: {
|
|
219
228
|
readonly GOOGLE: "GOOGLE";
|
|
@@ -234,4 +243,4 @@ declare const OauthResolveKind: {
|
|
|
234
243
|
};
|
|
235
244
|
type OauthResolveKind = (typeof OauthResolveKind)[keyof typeof OauthResolveKind];
|
|
236
245
|
|
|
237
|
-
export { type ChangePasswordRequest, ChangePasswordRequestSchema, type CognitoTokenPayload, CognitoTokenPayloadSchema, 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 RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
|
|
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 };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -191,6 +191,13 @@ declare const OauthLinkCompleteEmailRequestSchema: z.ZodObject<{
|
|
|
191
191
|
linkHandoff: z.ZodString;
|
|
192
192
|
email: z.ZodEmail;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
|
+
declare const ConfirmPasswordSchema: z.ZodObject<{
|
|
195
|
+
password: z.ZodString;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
declare const ReauthTokenResponseSchema: z.ZodObject<{
|
|
198
|
+
reauthToken: z.ZodString;
|
|
199
|
+
expiresAt: z.ZodISODateTime;
|
|
200
|
+
}, z.core.$strip>;
|
|
194
201
|
|
|
195
202
|
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
196
203
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
@@ -214,6 +221,8 @@ type OauthLinkSendOtpResponse = z.infer<typeof OauthLinkSendOtpResponseSchema>;
|
|
|
214
221
|
type ProvidersListResponse = z.infer<typeof ProvidersListResponseSchema>;
|
|
215
222
|
type ProvidersListItem = z.infer<typeof ProvidersListItemSchema>;
|
|
216
223
|
type OauthLinkCompleteEmailRequest = z.infer<typeof OauthLinkCompleteEmailRequestSchema>;
|
|
224
|
+
type ConfirmPassword = z.infer<typeof ConfirmPasswordSchema>;
|
|
225
|
+
type ReauthTokenResponse = z.infer<typeof ReauthTokenResponseSchema>;
|
|
217
226
|
|
|
218
227
|
declare const IdentityProvider: {
|
|
219
228
|
readonly GOOGLE: "GOOGLE";
|
|
@@ -234,4 +243,4 @@ declare const OauthResolveKind: {
|
|
|
234
243
|
};
|
|
235
244
|
type OauthResolveKind = (typeof OauthResolveKind)[keyof typeof OauthResolveKind];
|
|
236
245
|
|
|
237
|
-
export { type ChangePasswordRequest, ChangePasswordRequestSchema, type CognitoTokenPayload, CognitoTokenPayloadSchema, 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 RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
|
|
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 };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
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
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/auth/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{p as ChangePasswordRequestSchema,q as CognitoTokenPayloadSchema,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,k as RefreshTokenRequestSchema,d as RegisterRequestSchema,e as RegisterResponseSchema,h as ResendOtpRequestSchema,o as ResetPasswordRequestSchema,g as VerifyOtpRequestSchema,i as VerifyOtpResponseSchema}from'../chunk-
|
|
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
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/booking/index.d.mts
CHANGED
|
@@ -54,6 +54,21 @@ declare const BookingTransitionActor: {
|
|
|
54
54
|
};
|
|
55
55
|
type BookingTransitionActor = (typeof BookingTransitionActor)[keyof typeof BookingTransitionActor];
|
|
56
56
|
|
|
57
|
+
type BookingTransitionKey = `${BookingState}->${BookingState}`;
|
|
58
|
+
declare const BOOKING_TERMINAL_STATES: readonly BookingState[];
|
|
59
|
+
/** Valid target states per source (excludes dispute shortcut — see `getAllowedBookingTargetStates`). */
|
|
60
|
+
declare const VALID_BOOKING_TRANSITIONS: Record<BookingState, readonly BookingState[]>;
|
|
61
|
+
/** RBAC: which actor may perform each transition (dispute edges merged at runtime). */
|
|
62
|
+
declare const BOOKING_TRANSITION_ACTORS: Partial<Record<BookingTransitionKey, readonly BookingTransitionActor[]>>;
|
|
63
|
+
/** Target states that require a `reason` on the transition request. */
|
|
64
|
+
declare const BOOKING_TRANSITION_TARGETS_REQUIRING_REASON: readonly BookingState[];
|
|
65
|
+
declare function bookingTransitionKey(from: BookingState, to: BookingState): BookingTransitionKey;
|
|
66
|
+
declare function getAllowedBookingTargetStates(from: BookingState): readonly BookingState[];
|
|
67
|
+
declare function isValidBookingTransition(from: BookingState, to: BookingState): boolean;
|
|
68
|
+
declare function getBookingTransitionActors(from: BookingState, to: BookingState): readonly BookingTransitionActor[];
|
|
69
|
+
declare function canActorPerformBookingTransition(from: BookingState, to: BookingState, actor: BookingTransitionActor): boolean;
|
|
70
|
+
declare function bookingTransitionRequiresReason(_from: BookingState, to: BookingState): boolean;
|
|
71
|
+
|
|
57
72
|
declare const CreateBookingRequestSchema: z.ZodObject<{
|
|
58
73
|
origin: z.ZodEnum<{
|
|
59
74
|
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
@@ -251,48 +266,6 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
251
266
|
updatedAt: z.ZodString;
|
|
252
267
|
}, z.core.$strip>;
|
|
253
268
|
}, z.core.$strip>;
|
|
254
|
-
/** Shared `limit` / `cursor` for host-scoped marketplace list endpoints */
|
|
255
|
-
declare const MarketplaceListPaginationQuerySchema: z.ZodObject<{
|
|
256
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
257
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
/** `GET /marketplace/bookings` */
|
|
260
|
-
declare const ListMarketplaceBookingsQuerySchema: z.ZodObject<{
|
|
261
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
262
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
263
|
-
}, z.core.$strip>;
|
|
264
|
-
declare const ListMarketplaceBookingsResponseSchema: z.ZodObject<{
|
|
265
|
-
bookings: z.ZodArray<z.ZodObject<{
|
|
266
|
-
id: z.ZodUUID;
|
|
267
|
-
eventId: z.ZodNullable<z.ZodUUID>;
|
|
268
|
-
hostProfileId: z.ZodUUID;
|
|
269
|
-
producerProfileId: z.ZodUUID;
|
|
270
|
-
origin: z.ZodEnum<{
|
|
271
|
-
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
272
|
-
readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
|
|
273
|
-
readonly JOB_LISTING: "JOB_LISTING";
|
|
274
|
-
}>;
|
|
275
|
-
jobListingId: z.ZodNullable<z.ZodUUID>;
|
|
276
|
-
sourceIoiId: z.ZodNullable<z.ZodUUID>;
|
|
277
|
-
state: z.ZodEnum<{
|
|
278
|
-
readonly REQUESTED: "REQUESTED";
|
|
279
|
-
readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
|
|
280
|
-
readonly IN_NEGOTIATION: "IN_NEGOTIATION";
|
|
281
|
-
readonly ACCEPTED: "ACCEPTED";
|
|
282
|
-
readonly REJECTED: "REJECTED";
|
|
283
|
-
readonly CANCELLED: "CANCELLED";
|
|
284
|
-
readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
|
|
285
|
-
readonly CONFIRMED: "CONFIRMED";
|
|
286
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
287
|
-
readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
|
|
288
|
-
readonly IN_DISPUTE: "IN_DISPUTE";
|
|
289
|
-
readonly CLOSED: "CLOSED";
|
|
290
|
-
}>;
|
|
291
|
-
createdAt: z.ZodString;
|
|
292
|
-
updatedAt: z.ZodString;
|
|
293
|
-
}, z.core.$strip>>;
|
|
294
|
-
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
295
|
-
}, z.core.$strip>;
|
|
296
269
|
/** `POST /marketplace/bookings/:id/transition` (host, producer, admin) */
|
|
297
270
|
declare const TransitionMarketplaceBookingRequestSchema: z.ZodObject<{
|
|
298
271
|
targetState: z.ZodEnum<{
|
|
@@ -382,13 +355,8 @@ declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
|
382
355
|
readonly ONSITE: "ONSITE";
|
|
383
356
|
readonly REMOTE: "REMOTE";
|
|
384
357
|
}>>;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}, z.core.$strip>;
|
|
388
|
-
/** `GET /marketplace/job-listings/mine` */
|
|
389
|
-
declare const ListMarketplaceJobListingsMineQuerySchema: z.ZodObject<{
|
|
390
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
391
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
358
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
359
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
392
360
|
}, z.core.$strip>;
|
|
393
361
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
394
362
|
id: z.ZodUUID;
|
|
@@ -417,36 +385,6 @@ declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
|
417
385
|
createdAt: z.ZodString;
|
|
418
386
|
updatedAt: z.ZodString;
|
|
419
387
|
}, z.core.$strip>;
|
|
420
|
-
declare const ListMarketplaceJobListingsResponseSchema: z.ZodObject<{
|
|
421
|
-
jobListings: z.ZodArray<z.ZodObject<{
|
|
422
|
-
id: z.ZodUUID;
|
|
423
|
-
hostProfileId: z.ZodUUID;
|
|
424
|
-
eventId: z.ZodNullable<z.ZodUUID>;
|
|
425
|
-
title: z.ZodString;
|
|
426
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
427
|
-
description: z.ZodString;
|
|
428
|
-
responsibilities: z.ZodString;
|
|
429
|
-
requirements: z.ZodString;
|
|
430
|
-
role: z.ZodString;
|
|
431
|
-
requiredDate: z.ZodNullable<z.ZodString>;
|
|
432
|
-
estimatedDurationHours: z.ZodNullable<z.ZodNumber>;
|
|
433
|
-
location: z.ZodEnum<{
|
|
434
|
-
readonly ONSITE: "ONSITE";
|
|
435
|
-
readonly REMOTE: "REMOTE";
|
|
436
|
-
}>;
|
|
437
|
-
compensation: z.ZodNullable<z.ZodNumber>;
|
|
438
|
-
attachments: z.ZodNullable<z.ZodUnknown>;
|
|
439
|
-
state: z.ZodEnum<{
|
|
440
|
-
readonly OPEN: "OPEN";
|
|
441
|
-
readonly CLOSED: "CLOSED";
|
|
442
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
443
|
-
}>;
|
|
444
|
-
proposalCount: z.ZodNumber;
|
|
445
|
-
createdAt: z.ZodString;
|
|
446
|
-
updatedAt: z.ZodString;
|
|
447
|
-
}, z.core.$strip>>;
|
|
448
|
-
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
449
|
-
}, z.core.$strip>;
|
|
450
388
|
/** `POST .../indications-of-interest` */
|
|
451
389
|
declare const SubmitMarketplaceIndicationOfInterestRequestSchema: z.ZodObject<{
|
|
452
390
|
coverMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -496,54 +434,18 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
496
434
|
updatedAt: z.ZodString;
|
|
497
435
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
498
436
|
}, z.core.$strip>;
|
|
499
|
-
/** `GET .../indications-of-interest` (host review list) */
|
|
500
|
-
declare const ListMarketplaceIndicationsOfInterestQuerySchema: z.ZodObject<{
|
|
501
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
502
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
503
|
-
}, z.core.$strip>;
|
|
504
|
-
declare const ListMarketplaceIndicationsOfInterestResponseSchema: z.ZodObject<{
|
|
505
|
-
indications: z.ZodArray<z.ZodObject<{
|
|
506
|
-
id: z.ZodUUID;
|
|
507
|
-
jobListingId: z.ZodUUID;
|
|
508
|
-
producerProfileId: z.ZodUUID;
|
|
509
|
-
coverMessage: z.ZodNullable<z.ZodString>;
|
|
510
|
-
proposedAmount: z.ZodNullable<z.ZodNumber>;
|
|
511
|
-
availabilityNotes: z.ZodNullable<z.ZodString>;
|
|
512
|
-
state: z.ZodEnum<{
|
|
513
|
-
readonly OPEN: "OPEN";
|
|
514
|
-
readonly SHORTLISTED: "SHORTLISTED";
|
|
515
|
-
readonly WITHDRAWN: "WITHDRAWN";
|
|
516
|
-
readonly SELECTED: "SELECTED";
|
|
517
|
-
readonly REJECTED: "REJECTED";
|
|
518
|
-
}>;
|
|
519
|
-
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
520
|
-
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
521
|
-
selectedAt: z.ZodNullable<z.ZodString>;
|
|
522
|
-
createdAt: z.ZodString;
|
|
523
|
-
updatedAt: z.ZodString;
|
|
524
|
-
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
525
|
-
}, z.core.$strip>>;
|
|
526
|
-
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
527
|
-
}, z.core.$strip>;
|
|
528
437
|
|
|
529
438
|
type CreateMarketplaceBookingRequest = z.infer<typeof CreateMarketplaceBookingRequestSchema>;
|
|
530
439
|
type MarketplaceBookingResponse = z.infer<typeof MarketplaceBookingResponseSchema>;
|
|
531
440
|
type CreateMarketplaceJobListingRequest = z.infer<typeof CreateMarketplaceJobListingRequestSchema>;
|
|
532
441
|
type UpdateMarketplaceJobListingRequest = z.infer<typeof UpdateMarketplaceJobListingRequestSchema>;
|
|
533
442
|
type ListMarketplaceJobListingsQuery = z.infer<typeof ListMarketplaceJobListingsQuerySchema>;
|
|
534
|
-
type ListMarketplaceJobListingsResponse = z.infer<typeof ListMarketplaceJobListingsResponseSchema>;
|
|
535
443
|
type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingResponseSchema>;
|
|
536
444
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
537
445
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
538
446
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
539
|
-
type MarketplaceListPaginationQuery = z.infer<typeof MarketplaceListPaginationQuerySchema>;
|
|
540
|
-
type ListMarketplaceBookingsQuery = z.infer<typeof ListMarketplaceBookingsQuerySchema>;
|
|
541
|
-
type ListMarketplaceBookingsResponse = z.infer<typeof ListMarketplaceBookingsResponseSchema>;
|
|
542
|
-
type ListMarketplaceJobListingsMineQuery = z.infer<typeof ListMarketplaceJobListingsMineQuerySchema>;
|
|
543
|
-
type ListMarketplaceIndicationsOfInterestQuery = z.infer<typeof ListMarketplaceIndicationsOfInterestQuerySchema>;
|
|
544
|
-
type ListMarketplaceIndicationsOfInterestResponse = z.infer<typeof ListMarketplaceIndicationsOfInterestResponseSchema>;
|
|
545
447
|
type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
|
|
546
448
|
type TransitionMarketplaceBookingRequest = z.infer<typeof TransitionMarketplaceBookingRequestSchema>;
|
|
547
449
|
type TransitionMarketplaceBookingResponse = z.infer<typeof TransitionMarketplaceBookingResponseSchema>;
|
|
548
450
|
|
|
549
|
-
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type
|
|
451
|
+
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 IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
package/dist/booking/index.d.ts
CHANGED
|
@@ -54,6 +54,21 @@ declare const BookingTransitionActor: {
|
|
|
54
54
|
};
|
|
55
55
|
type BookingTransitionActor = (typeof BookingTransitionActor)[keyof typeof BookingTransitionActor];
|
|
56
56
|
|
|
57
|
+
type BookingTransitionKey = `${BookingState}->${BookingState}`;
|
|
58
|
+
declare const BOOKING_TERMINAL_STATES: readonly BookingState[];
|
|
59
|
+
/** Valid target states per source (excludes dispute shortcut — see `getAllowedBookingTargetStates`). */
|
|
60
|
+
declare const VALID_BOOKING_TRANSITIONS: Record<BookingState, readonly BookingState[]>;
|
|
61
|
+
/** RBAC: which actor may perform each transition (dispute edges merged at runtime). */
|
|
62
|
+
declare const BOOKING_TRANSITION_ACTORS: Partial<Record<BookingTransitionKey, readonly BookingTransitionActor[]>>;
|
|
63
|
+
/** Target states that require a `reason` on the transition request. */
|
|
64
|
+
declare const BOOKING_TRANSITION_TARGETS_REQUIRING_REASON: readonly BookingState[];
|
|
65
|
+
declare function bookingTransitionKey(from: BookingState, to: BookingState): BookingTransitionKey;
|
|
66
|
+
declare function getAllowedBookingTargetStates(from: BookingState): readonly BookingState[];
|
|
67
|
+
declare function isValidBookingTransition(from: BookingState, to: BookingState): boolean;
|
|
68
|
+
declare function getBookingTransitionActors(from: BookingState, to: BookingState): readonly BookingTransitionActor[];
|
|
69
|
+
declare function canActorPerformBookingTransition(from: BookingState, to: BookingState, actor: BookingTransitionActor): boolean;
|
|
70
|
+
declare function bookingTransitionRequiresReason(_from: BookingState, to: BookingState): boolean;
|
|
71
|
+
|
|
57
72
|
declare const CreateBookingRequestSchema: z.ZodObject<{
|
|
58
73
|
origin: z.ZodEnum<{
|
|
59
74
|
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
@@ -251,48 +266,6 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
251
266
|
updatedAt: z.ZodString;
|
|
252
267
|
}, z.core.$strip>;
|
|
253
268
|
}, z.core.$strip>;
|
|
254
|
-
/** Shared `limit` / `cursor` for host-scoped marketplace list endpoints */
|
|
255
|
-
declare const MarketplaceListPaginationQuerySchema: z.ZodObject<{
|
|
256
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
257
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
/** `GET /marketplace/bookings` */
|
|
260
|
-
declare const ListMarketplaceBookingsQuerySchema: z.ZodObject<{
|
|
261
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
262
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
263
|
-
}, z.core.$strip>;
|
|
264
|
-
declare const ListMarketplaceBookingsResponseSchema: z.ZodObject<{
|
|
265
|
-
bookings: z.ZodArray<z.ZodObject<{
|
|
266
|
-
id: z.ZodUUID;
|
|
267
|
-
eventId: z.ZodNullable<z.ZodUUID>;
|
|
268
|
-
hostProfileId: z.ZodUUID;
|
|
269
|
-
producerProfileId: z.ZodUUID;
|
|
270
|
-
origin: z.ZodEnum<{
|
|
271
|
-
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
272
|
-
readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
|
|
273
|
-
readonly JOB_LISTING: "JOB_LISTING";
|
|
274
|
-
}>;
|
|
275
|
-
jobListingId: z.ZodNullable<z.ZodUUID>;
|
|
276
|
-
sourceIoiId: z.ZodNullable<z.ZodUUID>;
|
|
277
|
-
state: z.ZodEnum<{
|
|
278
|
-
readonly REQUESTED: "REQUESTED";
|
|
279
|
-
readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
|
|
280
|
-
readonly IN_NEGOTIATION: "IN_NEGOTIATION";
|
|
281
|
-
readonly ACCEPTED: "ACCEPTED";
|
|
282
|
-
readonly REJECTED: "REJECTED";
|
|
283
|
-
readonly CANCELLED: "CANCELLED";
|
|
284
|
-
readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
|
|
285
|
-
readonly CONFIRMED: "CONFIRMED";
|
|
286
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
287
|
-
readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
|
|
288
|
-
readonly IN_DISPUTE: "IN_DISPUTE";
|
|
289
|
-
readonly CLOSED: "CLOSED";
|
|
290
|
-
}>;
|
|
291
|
-
createdAt: z.ZodString;
|
|
292
|
-
updatedAt: z.ZodString;
|
|
293
|
-
}, z.core.$strip>>;
|
|
294
|
-
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
295
|
-
}, z.core.$strip>;
|
|
296
269
|
/** `POST /marketplace/bookings/:id/transition` (host, producer, admin) */
|
|
297
270
|
declare const TransitionMarketplaceBookingRequestSchema: z.ZodObject<{
|
|
298
271
|
targetState: z.ZodEnum<{
|
|
@@ -382,13 +355,8 @@ declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
|
382
355
|
readonly ONSITE: "ONSITE";
|
|
383
356
|
readonly REMOTE: "REMOTE";
|
|
384
357
|
}>>;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}, z.core.$strip>;
|
|
388
|
-
/** `GET /marketplace/job-listings/mine` */
|
|
389
|
-
declare const ListMarketplaceJobListingsMineQuerySchema: z.ZodObject<{
|
|
390
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
391
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
358
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
359
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
392
360
|
}, z.core.$strip>;
|
|
393
361
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
394
362
|
id: z.ZodUUID;
|
|
@@ -417,36 +385,6 @@ declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
|
417
385
|
createdAt: z.ZodString;
|
|
418
386
|
updatedAt: z.ZodString;
|
|
419
387
|
}, z.core.$strip>;
|
|
420
|
-
declare const ListMarketplaceJobListingsResponseSchema: z.ZodObject<{
|
|
421
|
-
jobListings: z.ZodArray<z.ZodObject<{
|
|
422
|
-
id: z.ZodUUID;
|
|
423
|
-
hostProfileId: z.ZodUUID;
|
|
424
|
-
eventId: z.ZodNullable<z.ZodUUID>;
|
|
425
|
-
title: z.ZodString;
|
|
426
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
427
|
-
description: z.ZodString;
|
|
428
|
-
responsibilities: z.ZodString;
|
|
429
|
-
requirements: z.ZodString;
|
|
430
|
-
role: z.ZodString;
|
|
431
|
-
requiredDate: z.ZodNullable<z.ZodString>;
|
|
432
|
-
estimatedDurationHours: z.ZodNullable<z.ZodNumber>;
|
|
433
|
-
location: z.ZodEnum<{
|
|
434
|
-
readonly ONSITE: "ONSITE";
|
|
435
|
-
readonly REMOTE: "REMOTE";
|
|
436
|
-
}>;
|
|
437
|
-
compensation: z.ZodNullable<z.ZodNumber>;
|
|
438
|
-
attachments: z.ZodNullable<z.ZodUnknown>;
|
|
439
|
-
state: z.ZodEnum<{
|
|
440
|
-
readonly OPEN: "OPEN";
|
|
441
|
-
readonly CLOSED: "CLOSED";
|
|
442
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
443
|
-
}>;
|
|
444
|
-
proposalCount: z.ZodNumber;
|
|
445
|
-
createdAt: z.ZodString;
|
|
446
|
-
updatedAt: z.ZodString;
|
|
447
|
-
}, z.core.$strip>>;
|
|
448
|
-
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
449
|
-
}, z.core.$strip>;
|
|
450
388
|
/** `POST .../indications-of-interest` */
|
|
451
389
|
declare const SubmitMarketplaceIndicationOfInterestRequestSchema: z.ZodObject<{
|
|
452
390
|
coverMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -496,54 +434,18 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
496
434
|
updatedAt: z.ZodString;
|
|
497
435
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
498
436
|
}, z.core.$strip>;
|
|
499
|
-
/** `GET .../indications-of-interest` (host review list) */
|
|
500
|
-
declare const ListMarketplaceIndicationsOfInterestQuerySchema: z.ZodObject<{
|
|
501
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
502
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
503
|
-
}, z.core.$strip>;
|
|
504
|
-
declare const ListMarketplaceIndicationsOfInterestResponseSchema: z.ZodObject<{
|
|
505
|
-
indications: z.ZodArray<z.ZodObject<{
|
|
506
|
-
id: z.ZodUUID;
|
|
507
|
-
jobListingId: z.ZodUUID;
|
|
508
|
-
producerProfileId: z.ZodUUID;
|
|
509
|
-
coverMessage: z.ZodNullable<z.ZodString>;
|
|
510
|
-
proposedAmount: z.ZodNullable<z.ZodNumber>;
|
|
511
|
-
availabilityNotes: z.ZodNullable<z.ZodString>;
|
|
512
|
-
state: z.ZodEnum<{
|
|
513
|
-
readonly OPEN: "OPEN";
|
|
514
|
-
readonly SHORTLISTED: "SHORTLISTED";
|
|
515
|
-
readonly WITHDRAWN: "WITHDRAWN";
|
|
516
|
-
readonly SELECTED: "SELECTED";
|
|
517
|
-
readonly REJECTED: "REJECTED";
|
|
518
|
-
}>;
|
|
519
|
-
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
520
|
-
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
521
|
-
selectedAt: z.ZodNullable<z.ZodString>;
|
|
522
|
-
createdAt: z.ZodString;
|
|
523
|
-
updatedAt: z.ZodString;
|
|
524
|
-
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
525
|
-
}, z.core.$strip>>;
|
|
526
|
-
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
527
|
-
}, z.core.$strip>;
|
|
528
437
|
|
|
529
438
|
type CreateMarketplaceBookingRequest = z.infer<typeof CreateMarketplaceBookingRequestSchema>;
|
|
530
439
|
type MarketplaceBookingResponse = z.infer<typeof MarketplaceBookingResponseSchema>;
|
|
531
440
|
type CreateMarketplaceJobListingRequest = z.infer<typeof CreateMarketplaceJobListingRequestSchema>;
|
|
532
441
|
type UpdateMarketplaceJobListingRequest = z.infer<typeof UpdateMarketplaceJobListingRequestSchema>;
|
|
533
442
|
type ListMarketplaceJobListingsQuery = z.infer<typeof ListMarketplaceJobListingsQuerySchema>;
|
|
534
|
-
type ListMarketplaceJobListingsResponse = z.infer<typeof ListMarketplaceJobListingsResponseSchema>;
|
|
535
443
|
type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingResponseSchema>;
|
|
536
444
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
537
445
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
538
446
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
539
|
-
type MarketplaceListPaginationQuery = z.infer<typeof MarketplaceListPaginationQuerySchema>;
|
|
540
|
-
type ListMarketplaceBookingsQuery = z.infer<typeof ListMarketplaceBookingsQuerySchema>;
|
|
541
|
-
type ListMarketplaceBookingsResponse = z.infer<typeof ListMarketplaceBookingsResponseSchema>;
|
|
542
|
-
type ListMarketplaceJobListingsMineQuery = z.infer<typeof ListMarketplaceJobListingsMineQuerySchema>;
|
|
543
|
-
type ListMarketplaceIndicationsOfInterestQuery = z.infer<typeof ListMarketplaceIndicationsOfInterestQuerySchema>;
|
|
544
|
-
type ListMarketplaceIndicationsOfInterestResponse = z.infer<typeof ListMarketplaceIndicationsOfInterestResponseSchema>;
|
|
545
447
|
type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
|
|
546
448
|
type TransitionMarketplaceBookingRequest = z.infer<typeof TransitionMarketplaceBookingRequestSchema>;
|
|
547
449
|
type TransitionMarketplaceBookingResponse = z.infer<typeof TransitionMarketplaceBookingResponseSchema>;
|
|
548
450
|
|
|
549
|
-
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type
|
|
451
|
+
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 IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
package/dist/booking/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkJXM7K5X5_js=require('../chunk-JXM7K5X5.js');require('../chunk-QGEYDED6.js'),require('../chunk-L72M5DCH.js');Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkJXM7K5X5_js.g}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkJXM7K5X5_js.i}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkJXM7K5X5_js.j}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkJXM7K5X5_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkJXM7K5X5_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.s}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkJXM7K5X5_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkJXM7K5X5_js.f}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.r}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.q}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.t}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.y}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.A}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.D}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.w}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkJXM7K5X5_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.u}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkJXM7K5X5_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkJXM7K5X5_js.x}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.F}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.z}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.J}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.I}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.G}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.v}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.H}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.B}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.C}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkJXM7K5X5_js.E}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkJXM7K5X5_js.h}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkJXM7K5X5_js.k}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkJXM7K5X5_js.p}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkJXM7K5X5_js.o}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkJXM7K5X5_js.l}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkJXM7K5X5_js.n}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkJXM7K5X5_js.m}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/booking/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as BookingOrigin,e as BookingPaymentStatus,
|
|
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,w as IndicationOfInterestResponseSchema,d as IoiState,u as JobListingResponseSchema,c as JobListingState,x as JobLocation,F as ListMarketplaceJobListingsQuerySchema,z as MarketplaceBookingResponseSchema,J as MarketplaceIndicationOfInterestHostItemSchema,I as MarketplaceIndicationOfInterestResponseSchema,G as MarketplaceJobListingResponseSchema,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-ZVAGI5CH.mjs';import'../chunk-X7OLLQRF.mjs';import'../chunk-GAZT5E62.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkW2AXUTIW_js=require('./chunk-W2AXUTIW.js'),chunkQGEYDED6_js=require('./chunk-QGEYDED6.js'),zod=require('zod');var r={NGN:"NGN"},p={SOUND:"sound",LIGHTING:"lighting",VIDEO:"video",STAGING:"staging",AV:"av",LOGISTICS:"logistics"},a={AUDIO:"audio",VIDEO:"video",LIGHTING:"lighting",STAGING:"staging",POWER:"power",OTHER:"other"};var h=zod.z.object({category:zod.z.enum(p).optional(),location:zod.z.string().optional(),minRate:zod.z.coerce.number().int().min(0).optional(),maxRate:zod.z.coerce.number().int().min(0).optional(),availabilityDate:zod.z.string().optional(),...chunkQGEYDED6_js.d.shape}),l=zod.z.object({id:zod.z.uuid(),name:zod.z.string(),category:zod.z.enum(a),notes:zod.z.string().nullable()}),c=zod.z.object({code:zod.z.string(),label:zod.z.string()}),m=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string().nullable(),mediaUrl:zod.z.url().nullable(),externalUrl:zod.z.url().nullable(),createdAt:zod.z.iso.datetime()}),s=zod.z.object({id:zod.z.uuid(),label:zod.z.string(),amount:zod.z.string(),currency:zod.z.enum(r),notes:zod.z.string().nullable()}),I=zod.z.object({id:zod.z.uuid(),userId:zod.z.uuid(),companyName:zod.z.string().nullable(),bio:zod.z.string().nullable(),yearsExperience:zod.z.number().int().nullable(),serviceAreas:zod.z.array(zod.z.string()),maxDistanceKm:zod.z.number().int().nullable(),isAvailable:zod.z.boolean(),averageRating:zod.z.string(),totalReviews:zod.z.number().int(),completionRate:zod.z.string(),equipmentManifest:zod.z.array(l),categories:zod.z.array(c),portfolio:zod.z.array(m),rateCard:zod.z.array(s),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime()});var g=zod.z.object({name:zod.z.string().min(1).max(255),category:zod.z.enum(a),notes:zod.z.string().max(2e3).optional()}),y=zod.z.object({title:zod.z.string().min(1).max(255),description:zod.z.string().max(2e3).optional(),mediaUrl:zod.z.url().optional(),externalUrl:zod.z.url().optional()}),x=zod.z.object({label:zod.z.string().min(1).max(255),amount:zod.z.number().min(0),currency:zod.z.enum(r).default(r.NGN),notes:zod.z.string().max(2e3).optional()}),L=zod.z.object({id:zod.z.uuid(),userId:zod.z.uuid(),companyName:zod.z.string(),bio:zod.z.string(),logoUrl:zod.z.url().nullable(),experienceLevel:zod.z.enum(chunkW2AXUTIW_js.h),yearsExperience:zod.z.number().int().nullable(),serviceAreas:zod.z.array(zod.z.string()),maxDistanceKm:zod.z.number().int().nullable(),availabilityCalendar:zod.z.record(zod.z.string(),zod.z.unknown()).nullable(),verificationStatus:zod.z.enum(chunkW2AXUTIW_js.g),verificationReason:zod.z.string().nullable(),verifiedAt:zod.z.iso.datetime().nullable(),visibleInMarketplace:zod.z.boolean(),isAvailable:zod.z.boolean(),defaultCurrency:zod.z.enum(r),averageRating:zod.z.number(),totalReviews:zod.z.number().int(),completionRate:zod.z.number(),equipmentManifest:zod.z.array(l),categories:zod.z.array(c),portfolio:zod.z.array(m),rateCard:zod.z.array(s),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime()}),N=zod.z.object({companyName:zod.z.string().min(1).max(120).optional(),bio:zod.z.string().min(1).max(2e3).optional(),logoUrl:zod.z.url().nullable().optional(),experienceLevel:zod.z.enum(chunkW2AXUTIW_js.h).optional(),yearsExperience:zod.z.number().int().min(0).optional(),serviceAreas:zod.z.array(zod.z.string()).optional(),maxDistanceKm:zod.z.number().int().min(0).nullable().optional(),availabilityCalendar:zod.z.record(zod.z.string(),zod.z.unknown()).nullable().optional(),isAvailable:zod.z.boolean().optional(),visibleInMarketplace:zod.z.boolean().optional(),equipmentManifest:zod.z.array(g).optional(),portfolio:zod.z.array(y).optional(),rateCard:zod.z.array(x).optional(),categoryCodes:zod.z.array(zod.z.string()).optional()}).refine(b=>Object.keys(b).length>0,{message:"At least one field is required"}),q=zod.z.object({verificationStatus:zod.z.literal(chunkW2AXUTIW_js.g.SUBMITTED)}),G=zod.z.object({view:zod.z.literal("workspace").optional()});var f=zod.z.string().trim().min(5,"Reason must be at least 5 characters"),D=zod.z.object({notes:zod.z.string().max(2e3).optional()}),d=zod.z.object({reason:f,notes:zod.z.string().max(2e3).optional()}),V=d,O=d;exports.a=r;exports.b=p;exports.c=a;exports.d=h;exports.e=l;exports.f=c;exports.g=m;exports.h=s;exports.i=I;exports.j=g;exports.k=y;exports.l=x;exports.m=L;exports.n=N;exports.o=q;exports.p=G;exports.q=D;exports.r=d;exports.s=V;exports.t=O;//# sourceMappingURL=chunk-2SBD35GV.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-2SBD35GV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/marketplace/marketplace.enums.ts","../src/marketplace/marketplace.schemas.ts","../src/marketplace/workspace.schemas.ts","../src/marketplace/verification.schemas.ts"],"names":["MarketplaceCurrency","ServiceCategoryCode","EquipmentCategory","ListProducersQuerySchema","z","PaginationParamsSchema","PublicProducerListEquipmentItemSchema","PublicProducerListCategorySchema","PublicProducerListPortfolioItemSchema","PublicProducerListRateCardItemSchema","PublicProducerListItemSchema","WorkspaceEquipmentItemInputSchema","WorkspacePortfolioItemInputSchema","WorkspaceRateCardItemInputSchema","ProducerProfileWorkspaceSchema","ProducerExperienceLevel","ProducerVerificationStatus","UpsertProducerWorkspaceProfileSchema","data","SubmitProducerForVerificationSchema","GetProducerProfileQuerySchema","verificationReasonSchema","AdminApproveProducerVerificationSchema","AdminProducerVerificationReasonBodySchema","AdminRejectProducerVerificationSchema","AdminSuspendProducerVerificationSchema"],"mappings":"oIACO,IAAMA,CAAAA,CAAsB,CACjC,GAAA,CAAK,KACP,EAOaC,CAAAA,CAAsB,CACjC,MAAO,OAAA,CACP,QAAA,CAAU,WACV,KAAA,CAAO,OAAA,CACP,QAAS,SAAA,CACT,EAAA,CAAI,KACJ,SAAA,CAAW,WACb,EAIaC,CAAAA,CAAoB,CAC/B,MAAO,OAAA,CACP,KAAA,CAAO,QACP,QAAA,CAAU,UAAA,CACV,QAAS,SAAA,CACT,KAAA,CAAO,QACP,KAAA,CAAO,OACT,ECxBO,IAAMC,EAA2BC,KAAAA,CAAE,MAAA,CAAO,CAC/C,QAAA,CAAUA,KAAAA,CAAE,KAAKH,CAAmB,CAAA,CAAE,UAAS,CAC/C,QAAA,CAAUG,MAAE,MAAA,EAAO,CAAE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,GAAI,CAAA,CAAE,UAC9B,CAAC,EAMYmB,CAAAA,CAA4CnB,KAAAA,CAAE,OAAO,CAChE,MAAA,CAAQiB,EACR,KAAA,CAAOjB,KAAAA,CAAE,QAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAC9B,CAAC,CAAA,CAGYoB,CAAAA,CAAwCD,CAAAA,CAGxCE,CAAAA,CAAyCF","file":"chunk-2SBD35GV.js","sourcesContent":["/** ISO 4217 codes supported on marketplace rate cards. */\nexport const MarketplaceCurrency = {\n NGN: 'NGN',\n} as const;\nexport type MarketplaceCurrency = (typeof MarketplaceCurrency)[keyof typeof MarketplaceCurrency];\n\n/**\n * Known service category codes for producer capability filters.\n * Additional codes may exist in the catalog; listing responses use `z.string()` for `code`.\n */\nexport const ServiceCategoryCode = {\n SOUND: 'sound',\n LIGHTING: 'lighting',\n VIDEO: 'video',\n STAGING: 'staging',\n AV: 'av',\n LOGISTICS: 'logistics',\n} as const;\nexport type ServiceCategoryCode = (typeof ServiceCategoryCode)[keyof typeof ServiceCategoryCode];\n\n/** Equipment manifest categories on public producer listings. */\nexport const EquipmentCategory = {\n AUDIO: 'audio',\n VIDEO: 'video',\n LIGHTING: 'lighting',\n STAGING: 'staging',\n POWER: 'power',\n OTHER: 'other',\n} as const;\nexport type EquipmentCategory = (typeof EquipmentCategory)[keyof typeof EquipmentCategory];\n","import { z } from 'zod';\nimport { EquipmentCategory, MarketplaceCurrency, ServiceCategoryCode } from './marketplace.enums';\nimport { PaginationParamsSchema } from '../common';\n\nexport const ListProducersQuerySchema = z.object({\n category: z.enum(ServiceCategoryCode).optional(),\n location: z.string().optional(),\n minRate: z.coerce.number().int().min(0).optional(),\n maxRate: z.coerce.number().int().min(0).optional(),\n availabilityDate: z.string().optional(),\n ...PaginationParamsSchema.shape,\n});\n\nexport const PublicProducerListEquipmentItemSchema = z.object({\n id: z.uuid(),\n name: z.string(),\n category: z.enum(EquipmentCategory),\n notes: z.string().nullable(),\n});\n\nexport const PublicProducerListCategorySchema = z.object({\n code: z.string(),\n label: z.string(),\n});\n\nexport const PublicProducerListPortfolioItemSchema = z.object({\n id: z.uuid(),\n title: z.string(),\n description: z.string().nullable(),\n mediaUrl: z.url().nullable(),\n externalUrl: z.url().nullable(),\n createdAt: z.iso.datetime(),\n});\n\nexport const PublicProducerListRateCardItemSchema = z.object({\n id: z.uuid(),\n label: z.string(),\n amount: z.string(),\n currency: z.enum(MarketplaceCurrency),\n notes: z.string().nullable(),\n});\n\n/** One element of `ListProducersResponse.producers`. */\nexport const PublicProducerListItemSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n companyName: z.string().nullable(),\n bio: z.string().nullable(),\n yearsExperience: z.number().int().nullable(),\n serviceAreas: z.array(z.string()),\n maxDistanceKm: z.number().int().nullable(),\n isAvailable: z.boolean(),\n averageRating: z.string(),\n totalReviews: z.number().int(),\n completionRate: z.string(),\n equipmentManifest: z.array(PublicProducerListEquipmentItemSchema),\n categories: z.array(PublicProducerListCategorySchema),\n portfolio: z.array(PublicProducerListPortfolioItemSchema),\n rateCard: z.array(PublicProducerListRateCardItemSchema),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n","import { z } from 'zod';\nimport { ProducerExperienceLevel, ProducerVerificationStatus } from '../user/user.enums';\nimport { EquipmentCategory, MarketplaceCurrency } from './marketplace.enums';\nimport {\n PublicProducerListCategorySchema,\n PublicProducerListEquipmentItemSchema,\n PublicProducerListPortfolioItemSchema,\n PublicProducerListRateCardItemSchema,\n} from './marketplace.schemas';\n\n/** Workspace equipment row (full manifest; public API uses the same shape). */\nexport const WorkspaceEquipmentItemInputSchema = z.object({\n name: z.string().min(1).max(255),\n category: z.enum(EquipmentCategory),\n notes: z.string().max(2000).optional(),\n});\n\nexport const WorkspacePortfolioItemInputSchema = z.object({\n title: z.string().min(1).max(255),\n description: z.string().max(2000).optional(),\n mediaUrl: z.url().optional(),\n externalUrl: z.url().optional(),\n});\n\nexport const WorkspaceRateCardItemInputSchema = z.object({\n label: z.string().min(1).max(255),\n amount: z.number().min(0),\n currency: z.enum(MarketplaceCurrency).default(MarketplaceCurrency.NGN),\n notes: z.string().max(2000).optional(),\n});\n\n/**\n * Authenticated producer workspace profile (owner view).\n * Includes verification workflow fields and raw availability; never returned on public routes.\n */\nexport const ProducerProfileWorkspaceSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n companyName: z.string(),\n bio: z.string(),\n logoUrl: z.url().nullable(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n yearsExperience: z.number().int().nullable(),\n serviceAreas: z.array(z.string()),\n maxDistanceKm: z.number().int().nullable(),\n availabilityCalendar: z.record(z.string(), z.unknown()).nullable(),\n verificationStatus: z.enum(ProducerVerificationStatus),\n verificationReason: z.string().nullable(),\n verifiedAt: z.iso.datetime().nullable(),\n visibleInMarketplace: z.boolean(),\n isAvailable: z.boolean(),\n defaultCurrency: z.enum(MarketplaceCurrency),\n averageRating: z.number(),\n totalReviews: z.number().int(),\n completionRate: z.number(),\n equipmentManifest: z.array(PublicProducerListEquipmentItemSchema),\n categories: z.array(PublicProducerListCategorySchema),\n portfolio: z.array(PublicProducerListPortfolioItemSchema),\n rateCard: z.array(PublicProducerListRateCardItemSchema),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\n/** PATCH body for workspace profile updates (partial). */\nexport const UpsertProducerWorkspaceProfileSchema = z\n .object({\n companyName: z.string().min(1).max(120).optional(),\n bio: z.string().min(1).max(2000).optional(),\n logoUrl: z.url().nullable().optional(),\n experienceLevel: z.enum(ProducerExperienceLevel).optional(),\n yearsExperience: z.number().int().min(0).optional(),\n serviceAreas: z.array(z.string()).optional(),\n maxDistanceKm: z.number().int().min(0).nullable().optional(),\n availabilityCalendar: z.record(z.string(), z.unknown()).nullable().optional(),\n isAvailable: z.boolean().optional(),\n visibleInMarketplace: z.boolean().optional(),\n equipmentManifest: z.array(WorkspaceEquipmentItemInputSchema).optional(),\n portfolio: z.array(WorkspacePortfolioItemInputSchema).optional(),\n rateCard: z.array(WorkspaceRateCardItemInputSchema).optional(),\n categoryCodes: z.array(z.string()).optional(),\n })\n .refine((data) => Object.keys(data).length > 0, {\n message: 'At least one field is required',\n });\n\n/** POST body for submit-for-verification (explicit intent for signing). */\nexport const SubmitProducerForVerificationSchema = z.object({\n verificationStatus: z.literal(ProducerVerificationStatus.SUBMITTED),\n});\n\n/** Query for `GET /users/me/producer-profile` — `view=workspace` returns owner workspace shape. */\nexport const GetProducerProfileQuerySchema = z.object({\n view: z.literal('workspace').optional(),\n});\n","import { z } from 'zod';\n\nconst verificationReasonSchema = z.string().trim().min(5, 'Reason must be at least 5 characters');\n\n/** Admin approves a submitted producer (SUBMITTED → APPROVED) or reinstates (SUSPENDED → APPROVED). */\nexport const AdminApproveProducerVerificationSchema = z.object({\n notes: z.string().max(2000).optional(),\n});\n\n/**\n * Shared body for admin actions that require a decision reason.\n * `reason` → producer-facing verificationReason + audit; `notes` → optional internal admin context.\n */\nexport const AdminProducerVerificationReasonBodySchema = z.object({\n reason: verificationReasonSchema,\n notes: z.string().max(2000).optional(),\n});\n\n/** Admin rejects a submitted producer (SUBMITTED → REJECTED). */\nexport const AdminRejectProducerVerificationSchema = AdminProducerVerificationReasonBodySchema;\n\n/** Admin suspends an approved producer (APPROVED → SUSPENDED). */\nexport const AdminSuspendProducerVerificationSchema = AdminProducerVerificationReasonBodySchema;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {g as g$2,h as h$1,c,b,f,e}from'./chunk-EQVYSKSG.mjs';import {g as g$1}from'./chunk-JCAWAKZN.mjs';import {z}from'zod';var p=z.object({id:z.uuid(),userId:z.uuid(),businessName:z.string(),totalEvents:z.number(),totalSpent:z.number(),averageRating:z.number(),defaultCurrency:z.string(),description:z.string().optional(),category:z.array(z.enum(g$1)),logoUrl:z.url().optional(),businessRegNumber:z.string().optional(),taxId:z.string().optional(),settlementBankCode:z.string().optional(),settlementAccountNumber:z.string().optional(),settlementAccountName:z.string().optional(),paystackSubaccountCode:z.string().optional(),createdAt:z.iso.datetime()}),u=z.object({id:z.uuid(),userId:z.uuid(),companyName:z.string(),bio:z.string(),yearsExperience:z.number().optional(),experienceLevel:z.enum(h$1),equipmentManifest:z.array(z.record(z.string(),z.any())),serviceAreas:z.array(z.string()),verificationStatus:z.enum(g$2),averageRating:z.number().positive().multipleOf(.01),totalReviews:z.number(),completionRate:z.number(),isAvailable:z.boolean(),createdAt:z.iso.datetime()}),x=z.object({id:z.uuid(),email:z.email().toLowerCase(),emailVerified:z.boolean(),emailVerifiedAt:z.iso.datetime().optional(),phoneNumber:z.string().optional(),firstName:z.string().optional(),lastName:z.string().optional(),displayName:z.string().optional(),avatarUrl:z.url().optional(),role:z.number().min(1).max(15),accountStatus:z.enum(b),kycStatus:z.enum(c),hostProfile:p.optional(),producerProfile:u.optional(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}),S=z.object({firstName:z.string().optional(),lastName:z.string().optional(),displayName:z.string().optional(),avatarUrl:z.url().optional(),phoneNumber:z.string().optional(),eventCategory:z.array(z.enum(g$1)).optional()}),h=z.object({businessName:z.string(),description:z.string().optional(),logoUrl:z.string().optional(),category:z.array(z.enum(g$1)).min(1),pin:z.string().length(5)}),N=z.object({companyName:z.string(),bio:z.string(),logoUrl:z.string().optional(),serviceAreas:z.array(z.string()),yearsExperience:z.number(),experienceLevel:z.enum(h$1),minFee:z.number(),maxFee:z.number(),pin:z.string(),isAvailable:z.boolean()}),d=new Set(["admin","support","livdot","host","producer","system","null","undefined","me","settings","viewer","auth","events","streaming","producers","marketplace","users"]),g=z.string().trim().toLowerCase().min(3,"Display name must be at least 3 characters").max(30,"Display name must be at most 30 characters").regex(/^[a-z0-9_]+$/,"Display name may only contain lowercase letters, digits, and underscores").refine(t=>!d.has(t),{message:"This display name is reserved"}),v=z.object({displayName:g}).strict(),R=z.object({preferredCurrency:z.string().trim().toUpperCase().length(3).regex(/^[A-Z]{3}$/)}).strict(),m=z.object({category:z.enum(f),enabled:z.boolean()}),C=z.object({preferences:z.array(m).min(1).max(10).refine(t=>new Set(t.map(l=>l.category)).size===t.length,{message:"Duplicate category in preferences"})}).strict(),A=z.object({category:z.enum(e),message:z.string().trim().min(10).max(2e3)}).strict(),P=z.object({id:z.uuid(),email:z.email(),emailVerified:z.boolean(),displayName:z.string().nullable(),avatarUrl:z.url().nullable(),roles:z.number().int(),preferredCurrency:z.string(),notificationsEnabledCount:z.number().int()}),j=z.object({preferences:z.array(m)}),U=z.object({id:z.uuid()});export{p as a,u as b,x as c,S as d,h as e,N as f,d as g,g as h,v as i,R as j,m as k,C as l,A as m,P as n,j as o,U as p};//# sourceMappingURL=chunk-HDXG5AKS.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-HDXG5AKS.mjs.map
|