@livdot-tech/contracts 1.11.27 → 1.11.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/auth/index.js +1 -1
  2. package/dist/auth/index.mjs +1 -1
  3. package/dist/booking/index.d.mts +59 -3
  4. package/dist/booking/index.d.ts +59 -3
  5. package/dist/booking/index.js +1 -1
  6. package/dist/booking/index.mjs +1 -1
  7. package/dist/chunk-2P4RID7B.mjs +2 -0
  8. package/dist/chunk-2P4RID7B.mjs.map +1 -0
  9. package/dist/{chunk-J7KH6FYN.js → chunk-2RR5GZKF.js} +2 -2
  10. package/dist/{chunk-J7KH6FYN.js.map → chunk-2RR5GZKF.js.map} +1 -1
  11. package/dist/{chunk-EWAVQV4Y.mjs → chunk-6RLSSV2J.mjs} +2 -2
  12. package/dist/{chunk-EWAVQV4Y.mjs.map → chunk-6RLSSV2J.mjs.map} +1 -1
  13. package/dist/chunk-CBL6SUWX.mjs +2 -0
  14. package/dist/chunk-CBL6SUWX.mjs.map +1 -0
  15. package/dist/{chunk-ES4IKYQU.js → chunk-HRVNQI2I.js} +2 -2
  16. package/dist/{chunk-ES4IKYQU.js.map → chunk-HRVNQI2I.js.map} +1 -1
  17. package/dist/chunk-HTK4LWKI.mjs +2 -0
  18. package/dist/chunk-HTK4LWKI.mjs.map +1 -0
  19. package/dist/chunk-I3Y2U4YV.js +2 -0
  20. package/dist/chunk-I3Y2U4YV.js.map +1 -0
  21. package/dist/chunk-RV53QWOB.js +2 -0
  22. package/dist/chunk-RV53QWOB.js.map +1 -0
  23. package/dist/{chunk-D5MLOZC6.mjs → chunk-RZS4REHX.mjs} +2 -2
  24. package/dist/{chunk-D5MLOZC6.mjs.map → chunk-RZS4REHX.mjs.map} +1 -1
  25. package/dist/chunk-SO4VWNZU.js +2 -0
  26. package/dist/chunk-SO4VWNZU.js.map +1 -0
  27. package/dist/chunk-T3A4OTCN.mjs +2 -0
  28. package/dist/chunk-T3A4OTCN.mjs.map +1 -0
  29. package/dist/chunk-WHTUXSF6.js +2 -0
  30. package/dist/chunk-WHTUXSF6.js.map +1 -0
  31. package/dist/dispute/index.d.mts +118 -5
  32. package/dist/dispute/index.d.ts +118 -5
  33. package/dist/dispute/index.js +1 -1
  34. package/dist/dispute/index.mjs +1 -1
  35. package/dist/index.d.mts +3 -3
  36. package/dist/index.d.ts +3 -3
  37. package/dist/index.js +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/marketplace/index.d.mts +18 -0
  40. package/dist/marketplace/index.d.ts +18 -0
  41. package/dist/marketplace/index.js +1 -1
  42. package/dist/marketplace/index.mjs +1 -1
  43. package/dist/notification/index.js +1 -1
  44. package/dist/notification/index.mjs +1 -1
  45. package/dist/user/index.d.mts +26 -1
  46. package/dist/user/index.d.ts +26 -1
  47. package/dist/user/index.js +1 -1
  48. package/dist/user/index.mjs +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunk-5BJU6AZT.mjs +0 -2
  51. package/dist/chunk-5BJU6AZT.mjs.map +0 -1
  52. package/dist/chunk-7PU752O4.js +0 -2
  53. package/dist/chunk-7PU752O4.js.map +0 -1
  54. package/dist/chunk-CAYVR5TG.mjs +0 -2
  55. package/dist/chunk-CAYVR5TG.mjs.map +0 -1
  56. package/dist/chunk-CMQWFYU4.js +0 -2
  57. package/dist/chunk-CMQWFYU4.js.map +0 -1
  58. package/dist/chunk-E6L4BMIP.mjs +0 -2
  59. package/dist/chunk-E6L4BMIP.mjs.map +0 -1
  60. package/dist/chunk-QZMRMFXE.js +0 -2
  61. package/dist/chunk-QZMRMFXE.js.map +0 -1
  62. package/dist/chunk-TDGWNGV5.js +0 -2
  63. package/dist/chunk-TDGWNGV5.js.map +0 -1
  64. package/dist/chunk-VGLL5EUR.mjs +0 -2
  65. package/dist/chunk-VGLL5EUR.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- export{z as AdminApproveProducerVerificationSchema,A as AdminProducerVerificationReasonBodySchema,B as AdminRejectProducerVerificationSchema,C as AdminSuspendProducerVerificationSchema,k as EquipmentCategory,y as GetProducerProfileQuerySchema,l as ListProducersQuerySchema,i as MarketplaceCurrency,v as ProducerProfileWorkspaceSchema,n as PublicProducerListCategorySchema,m as PublicProducerListEquipmentItemSchema,r as PublicProducerListItemSchema,p as PublicProducerListPortfolioItemSchema,q as PublicProducerListRateCardItemSchema,j as ServiceCategoryCode,o as ServiceCategoryListResponseSchema,x as SubmitProducerForVerificationSchema,w as UpsertProducerWorkspaceProfileSchema,s as WorkspaceEquipmentItemInputSchema,t as WorkspacePortfolioItemInputSchema,u as WorkspaceRateCardItemInputSchema}from'../chunk-5BJU6AZT.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{A as AdminApproveProducerVerificationSchema,B as AdminProducerVerificationReasonBodySchema,C as AdminRejectProducerVerificationSchema,D as AdminSuspendProducerVerificationSchema,l as EquipmentCategory,z as GetProducerProfileQuerySchema,m as ListProducersQuerySchema,j as MarketplaceCurrency,w as ProducerProfileWorkspaceSchema,o as PublicProducerListCategorySchema,n as PublicProducerListEquipmentItemSchema,s as PublicProducerListItemSchema,q as PublicProducerListPortfolioItemSchema,r as PublicProducerListRateCardItemSchema,k as ServiceCategoryCode,p as ServiceCategoryListResponseSchema,y as SubmitProducerForVerificationSchema,x as UpsertProducerWorkspaceProfileSchema,t as WorkspaceEquipmentItemInputSchema,u as WorkspacePortfolioItemInputSchema,v as WorkspaceRateCardItemInputSchema}from'../chunk-HTK4LWKI.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkJ7KH6FYN_js=require('../chunk-J7KH6FYN.js');require('../chunk-CMQWFYU4.js'),require('../chunk-QZMRMFXE.js'),require('../chunk-72SD46VJ.js'),require('../chunk-4GW5RNUF.js'),require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"HostNotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.l}});Object.defineProperty(exports,"HostNotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.n}});Object.defineProperty(exports,"ListNotificationsQuerySchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.g}});Object.defineProperty(exports,"ListNotificationsResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.h}});Object.defineProperty(exports,"MarkAllNotificationsReadResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.k}});Object.defineProperty(exports,"MarkNotificationReadResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.j}});Object.defineProperty(exports,"NotificationChannel",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.b}});Object.defineProperty(exports,"NotificationPriority",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.a}});Object.defineProperty(exports,"NotificationResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.d}});Object.defineProperty(exports,"NotificationType",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.c}});Object.defineProperty(exports,"NotificationsUnreadCountResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.i}});Object.defineProperty(exports,"ProducerNotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.m}});Object.defineProperty(exports,"ProducerNotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.o}});Object.defineProperty(exports,"RegisterPushDeviceRequestSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.e}});Object.defineProperty(exports,"RegisterPushDeviceResponseSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.f}});Object.defineProperty(exports,"UpdateHostNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.p}});Object.defineProperty(exports,"UpdateProducerNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunkJ7KH6FYN_js.q}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunk2RR5GZKF_js=require('../chunk-2RR5GZKF.js');require('../chunk-I3Y2U4YV.js'),require('../chunk-RV53QWOB.js'),require('../chunk-72SD46VJ.js'),require('../chunk-4GW5RNUF.js'),require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"HostNotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.l}});Object.defineProperty(exports,"HostNotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.n}});Object.defineProperty(exports,"ListNotificationsQuerySchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.g}});Object.defineProperty(exports,"ListNotificationsResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.h}});Object.defineProperty(exports,"MarkAllNotificationsReadResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.k}});Object.defineProperty(exports,"MarkNotificationReadResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.j}});Object.defineProperty(exports,"NotificationChannel",{enumerable:true,get:function(){return chunk2RR5GZKF_js.b}});Object.defineProperty(exports,"NotificationPriority",{enumerable:true,get:function(){return chunk2RR5GZKF_js.a}});Object.defineProperty(exports,"NotificationResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.d}});Object.defineProperty(exports,"NotificationType",{enumerable:true,get:function(){return chunk2RR5GZKF_js.c}});Object.defineProperty(exports,"NotificationsUnreadCountResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.i}});Object.defineProperty(exports,"ProducerNotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.m}});Object.defineProperty(exports,"ProducerNotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.o}});Object.defineProperty(exports,"RegisterPushDeviceRequestSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.e}});Object.defineProperty(exports,"RegisterPushDeviceResponseSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.f}});Object.defineProperty(exports,"UpdateHostNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.p}});Object.defineProperty(exports,"UpdateProducerNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunk2RR5GZKF_js.q}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{l as HostNotificationPreferenceItemSchema,n as HostNotificationPreferencesResponseSchema,g as ListNotificationsQuerySchema,h as ListNotificationsResponseSchema,k as MarkAllNotificationsReadResponseSchema,j as MarkNotificationReadResponseSchema,b as NotificationChannel,a as NotificationPriority,d as NotificationResponseSchema,c as NotificationType,i as NotificationsUnreadCountResponseSchema,m as ProducerNotificationPreferenceItemSchema,o as ProducerNotificationPreferencesResponseSchema,e as RegisterPushDeviceRequestSchema,f as RegisterPushDeviceResponseSchema,p as UpdateHostNotificationPreferencesRequestSchema,q as UpdateProducerNotificationPreferencesRequestSchema}from'../chunk-EWAVQV4Y.mjs';import'../chunk-VGLL5EUR.mjs';import'../chunk-5BJU6AZT.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-XXDKKJEP.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{l as HostNotificationPreferenceItemSchema,n as HostNotificationPreferencesResponseSchema,g as ListNotificationsQuerySchema,h as ListNotificationsResponseSchema,k as MarkAllNotificationsReadResponseSchema,j as MarkNotificationReadResponseSchema,b as NotificationChannel,a as NotificationPriority,d as NotificationResponseSchema,c as NotificationType,i as NotificationsUnreadCountResponseSchema,m as ProducerNotificationPreferenceItemSchema,o as ProducerNotificationPreferencesResponseSchema,e as RegisterPushDeviceRequestSchema,f as RegisterPushDeviceResponseSchema,p as UpdateHostNotificationPreferencesRequestSchema,q as UpdateProducerNotificationPreferencesRequestSchema}from'../chunk-6RLSSV2J.mjs';import'../chunk-T3A4OTCN.mjs';import'../chunk-HTK4LWKI.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-XXDKKJEP.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -61,6 +61,13 @@ declare const ProducerExperienceLevel: {
61
61
  readonly EXPERT: "EXPERT";
62
62
  };
63
63
  type ProducerExperienceLevel = (typeof ProducerExperienceLevel)[keyof typeof ProducerExperienceLevel];
64
+ declare const ProducerTeamSize: {
65
+ readonly SOLO: "SOLO";
66
+ readonly SMALL: "SMALL";
67
+ readonly MEDIUM: "MEDIUM";
68
+ readonly LARGE: "LARGE";
69
+ };
70
+ type ProducerTeamSize = (typeof ProducerTeamSize)[keyof typeof ProducerTeamSize];
64
71
 
65
72
  declare const HostProfileResponseSchema: z.ZodObject<{
66
73
  id: z.ZodUUID;
@@ -117,6 +124,12 @@ declare const ProducerProfileResponseSchema: z.ZodObject<{
117
124
  companyName: z.ZodString;
118
125
  bio: z.ZodString;
119
126
  yearsExperience: z.ZodOptional<z.ZodNumber>;
127
+ teamSize: z.ZodOptional<z.ZodEnum<{
128
+ readonly SOLO: "SOLO";
129
+ readonly SMALL: "SMALL";
130
+ readonly MEDIUM: "MEDIUM";
131
+ readonly LARGE: "LARGE";
132
+ }>>;
120
133
  experienceLevel: z.ZodEnum<{
121
134
  readonly BEGINNER: "BEGINNER";
122
135
  readonly INTERMEDIATE: "INTERMEDIATE";
@@ -225,6 +238,12 @@ declare const UserResponseSchema: z.ZodObject<{
225
238
  companyName: z.ZodString;
226
239
  bio: z.ZodString;
227
240
  yearsExperience: z.ZodOptional<z.ZodNumber>;
241
+ teamSize: z.ZodOptional<z.ZodEnum<{
242
+ readonly SOLO: "SOLO";
243
+ readonly SMALL: "SMALL";
244
+ readonly MEDIUM: "MEDIUM";
245
+ readonly LARGE: "LARGE";
246
+ }>>;
228
247
  experienceLevel: z.ZodEnum<{
229
248
  readonly BEGINNER: "BEGINNER";
230
249
  readonly INTERMEDIATE: "INTERMEDIATE";
@@ -407,6 +426,12 @@ declare const CreateProducerProfileRequestSchema: z.ZodObject<{
407
426
  readonly INTERMEDIATE: "INTERMEDIATE";
408
427
  readonly EXPERT: "EXPERT";
409
428
  }>;
429
+ teamSize: z.ZodOptional<z.ZodEnum<{
430
+ readonly SOLO: "SOLO";
431
+ readonly SMALL: "SMALL";
432
+ readonly MEDIUM: "MEDIUM";
433
+ readonly LARGE: "LARGE";
434
+ }>>;
410
435
  minFee: z.ZodNumber;
411
436
  maxFee: z.ZodNumber;
412
437
  isAvailable: z.ZodBoolean;
@@ -490,4 +515,4 @@ type NotificationPreferencesResponse = z.infer<typeof NotificationPreferencesRes
490
515
  type SetProfilePin = z.infer<typeof SetProfilePinSchema>;
491
516
  type UpdateNotificationPreferencesRequest = z.infer<typeof UpdateNotificationPreferencesRequestSchema>;
492
517
 
493
- export { AccountStatus, AdminScopeCode, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type DisplayName, DisplayNameSchema, FeedbackCategory, type HostProfileResponse, HostProfileResponseSchema, KycStatus, NotificationCategory, type NotificationPreferenceItem, NotificationPreferenceItemSchema, type NotificationPreferencesResponse, NotificationPreferencesResponseSchema, ProducerExperienceLevel, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, RESERVED_DISPLAY_NAMES, type SendFeedbackRequest, SendFeedbackRequestSchema, type SendFeedbackResponse, SendFeedbackResponseSchema, type SetProfilePin, SetProfilePinSchema, type UpdateHostProfileRequest, UpdateHostProfileRequestSchema, type UpdateNotificationPreferencesRequest, UpdateNotificationPreferencesRequestSchema, type UpdateUserRequest, UpdateUserRequestSchema, type UpdateViewerCurrencyRequest, UpdateViewerCurrencyRequestSchema, type UpdateViewerProfileRequest, UpdateViewerProfileRequestSchema, type UserResponse, UserResponseSchema, UserRole, type ViewerMeResponse, ViewerMeResponseSchema };
518
+ export { AccountStatus, AdminScopeCode, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type DisplayName, DisplayNameSchema, FeedbackCategory, type HostProfileResponse, HostProfileResponseSchema, KycStatus, NotificationCategory, type NotificationPreferenceItem, NotificationPreferenceItemSchema, type NotificationPreferencesResponse, NotificationPreferencesResponseSchema, ProducerExperienceLevel, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerTeamSize, ProducerVerificationStatus, RESERVED_DISPLAY_NAMES, type SendFeedbackRequest, SendFeedbackRequestSchema, type SendFeedbackResponse, SendFeedbackResponseSchema, type SetProfilePin, SetProfilePinSchema, type UpdateHostProfileRequest, UpdateHostProfileRequestSchema, type UpdateNotificationPreferencesRequest, UpdateNotificationPreferencesRequestSchema, type UpdateUserRequest, UpdateUserRequestSchema, type UpdateViewerCurrencyRequest, UpdateViewerCurrencyRequestSchema, type UpdateViewerProfileRequest, UpdateViewerProfileRequestSchema, type UserResponse, UserResponseSchema, UserRole, type ViewerMeResponse, ViewerMeResponseSchema };
@@ -61,6 +61,13 @@ declare const ProducerExperienceLevel: {
61
61
  readonly EXPERT: "EXPERT";
62
62
  };
63
63
  type ProducerExperienceLevel = (typeof ProducerExperienceLevel)[keyof typeof ProducerExperienceLevel];
64
+ declare const ProducerTeamSize: {
65
+ readonly SOLO: "SOLO";
66
+ readonly SMALL: "SMALL";
67
+ readonly MEDIUM: "MEDIUM";
68
+ readonly LARGE: "LARGE";
69
+ };
70
+ type ProducerTeamSize = (typeof ProducerTeamSize)[keyof typeof ProducerTeamSize];
64
71
 
65
72
  declare const HostProfileResponseSchema: z.ZodObject<{
66
73
  id: z.ZodUUID;
@@ -117,6 +124,12 @@ declare const ProducerProfileResponseSchema: z.ZodObject<{
117
124
  companyName: z.ZodString;
118
125
  bio: z.ZodString;
119
126
  yearsExperience: z.ZodOptional<z.ZodNumber>;
127
+ teamSize: z.ZodOptional<z.ZodEnum<{
128
+ readonly SOLO: "SOLO";
129
+ readonly SMALL: "SMALL";
130
+ readonly MEDIUM: "MEDIUM";
131
+ readonly LARGE: "LARGE";
132
+ }>>;
120
133
  experienceLevel: z.ZodEnum<{
121
134
  readonly BEGINNER: "BEGINNER";
122
135
  readonly INTERMEDIATE: "INTERMEDIATE";
@@ -225,6 +238,12 @@ declare const UserResponseSchema: z.ZodObject<{
225
238
  companyName: z.ZodString;
226
239
  bio: z.ZodString;
227
240
  yearsExperience: z.ZodOptional<z.ZodNumber>;
241
+ teamSize: z.ZodOptional<z.ZodEnum<{
242
+ readonly SOLO: "SOLO";
243
+ readonly SMALL: "SMALL";
244
+ readonly MEDIUM: "MEDIUM";
245
+ readonly LARGE: "LARGE";
246
+ }>>;
228
247
  experienceLevel: z.ZodEnum<{
229
248
  readonly BEGINNER: "BEGINNER";
230
249
  readonly INTERMEDIATE: "INTERMEDIATE";
@@ -407,6 +426,12 @@ declare const CreateProducerProfileRequestSchema: z.ZodObject<{
407
426
  readonly INTERMEDIATE: "INTERMEDIATE";
408
427
  readonly EXPERT: "EXPERT";
409
428
  }>;
429
+ teamSize: z.ZodOptional<z.ZodEnum<{
430
+ readonly SOLO: "SOLO";
431
+ readonly SMALL: "SMALL";
432
+ readonly MEDIUM: "MEDIUM";
433
+ readonly LARGE: "LARGE";
434
+ }>>;
410
435
  minFee: z.ZodNumber;
411
436
  maxFee: z.ZodNumber;
412
437
  isAvailable: z.ZodBoolean;
@@ -490,4 +515,4 @@ type NotificationPreferencesResponse = z.infer<typeof NotificationPreferencesRes
490
515
  type SetProfilePin = z.infer<typeof SetProfilePinSchema>;
491
516
  type UpdateNotificationPreferencesRequest = z.infer<typeof UpdateNotificationPreferencesRequestSchema>;
492
517
 
493
- export { AccountStatus, AdminScopeCode, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type DisplayName, DisplayNameSchema, FeedbackCategory, type HostProfileResponse, HostProfileResponseSchema, KycStatus, NotificationCategory, type NotificationPreferenceItem, NotificationPreferenceItemSchema, type NotificationPreferencesResponse, NotificationPreferencesResponseSchema, ProducerExperienceLevel, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, RESERVED_DISPLAY_NAMES, type SendFeedbackRequest, SendFeedbackRequestSchema, type SendFeedbackResponse, SendFeedbackResponseSchema, type SetProfilePin, SetProfilePinSchema, type UpdateHostProfileRequest, UpdateHostProfileRequestSchema, type UpdateNotificationPreferencesRequest, UpdateNotificationPreferencesRequestSchema, type UpdateUserRequest, UpdateUserRequestSchema, type UpdateViewerCurrencyRequest, UpdateViewerCurrencyRequestSchema, type UpdateViewerProfileRequest, UpdateViewerProfileRequestSchema, type UserResponse, UserResponseSchema, UserRole, type ViewerMeResponse, ViewerMeResponseSchema };
518
+ export { AccountStatus, AdminScopeCode, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type DisplayName, DisplayNameSchema, FeedbackCategory, type HostProfileResponse, HostProfileResponseSchema, KycStatus, NotificationCategory, type NotificationPreferenceItem, NotificationPreferenceItemSchema, type NotificationPreferencesResponse, NotificationPreferencesResponseSchema, ProducerExperienceLevel, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerTeamSize, ProducerVerificationStatus, RESERVED_DISPLAY_NAMES, type SendFeedbackRequest, SendFeedbackRequestSchema, type SendFeedbackResponse, SendFeedbackResponseSchema, type SetProfilePin, SetProfilePinSchema, type UpdateHostProfileRequest, UpdateHostProfileRequestSchema, type UpdateNotificationPreferencesRequest, UpdateNotificationPreferencesRequestSchema, type UpdateUserRequest, UpdateUserRequestSchema, type UpdateViewerCurrencyRequest, UpdateViewerCurrencyRequestSchema, type UpdateViewerProfileRequest, UpdateViewerProfileRequestSchema, type UserResponse, UserResponseSchema, UserRole, type ViewerMeResponse, ViewerMeResponseSchema };
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkCMQWFYU4_js=require('../chunk-CMQWFYU4.js'),chunkQZMRMFXE_js=require('../chunk-QZMRMFXE.js');require('../chunk-72SD46VJ.js'),require('../chunk-4GW5RNUF.js'),require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"CreateHostProfileRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.e}});Object.defineProperty(exports,"CreateProducerProfileRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.g}});Object.defineProperty(exports,"DisplayNameSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.j}});Object.defineProperty(exports,"HostProfileResponseSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.a}});Object.defineProperty(exports,"NotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.m}});Object.defineProperty(exports,"NotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.q}});Object.defineProperty(exports,"ProducerProfileResponseSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.b}});Object.defineProperty(exports,"RESERVED_DISPLAY_NAMES",{enumerable:true,get:function(){return chunkCMQWFYU4_js.i}});Object.defineProperty(exports,"SendFeedbackRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.o}});Object.defineProperty(exports,"SendFeedbackResponseSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.r}});Object.defineProperty(exports,"SetProfilePinSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.h}});Object.defineProperty(exports,"UpdateHostProfileRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.f}});Object.defineProperty(exports,"UpdateNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.n}});Object.defineProperty(exports,"UpdateUserRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.d}});Object.defineProperty(exports,"UpdateViewerCurrencyRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.l}});Object.defineProperty(exports,"UpdateViewerProfileRequestSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.k}});Object.defineProperty(exports,"UserResponseSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.c}});Object.defineProperty(exports,"ViewerMeResponseSchema",{enumerable:true,get:function(){return chunkCMQWFYU4_js.p}});Object.defineProperty(exports,"AccountStatus",{enumerable:true,get:function(){return chunkQZMRMFXE_js.b}});Object.defineProperty(exports,"AdminScopeCode",{enumerable:true,get:function(){return chunkQZMRMFXE_js.d}});Object.defineProperty(exports,"FeedbackCategory",{enumerable:true,get:function(){return chunkQZMRMFXE_js.e}});Object.defineProperty(exports,"KycStatus",{enumerable:true,get:function(){return chunkQZMRMFXE_js.c}});Object.defineProperty(exports,"NotificationCategory",{enumerable:true,get:function(){return chunkQZMRMFXE_js.f}});Object.defineProperty(exports,"ProducerExperienceLevel",{enumerable:true,get:function(){return chunkQZMRMFXE_js.h}});Object.defineProperty(exports,"ProducerVerificationStatus",{enumerable:true,get:function(){return chunkQZMRMFXE_js.g}});Object.defineProperty(exports,"UserRole",{enumerable:true,get:function(){return chunkQZMRMFXE_js.a}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkI3Y2U4YV_js=require('../chunk-I3Y2U4YV.js'),chunkRV53QWOB_js=require('../chunk-RV53QWOB.js');require('../chunk-72SD46VJ.js'),require('../chunk-4GW5RNUF.js'),require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"CreateHostProfileRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.e}});Object.defineProperty(exports,"CreateProducerProfileRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.g}});Object.defineProperty(exports,"DisplayNameSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.j}});Object.defineProperty(exports,"HostProfileResponseSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.a}});Object.defineProperty(exports,"NotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.m}});Object.defineProperty(exports,"NotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.q}});Object.defineProperty(exports,"ProducerProfileResponseSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.b}});Object.defineProperty(exports,"RESERVED_DISPLAY_NAMES",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.i}});Object.defineProperty(exports,"SendFeedbackRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.o}});Object.defineProperty(exports,"SendFeedbackResponseSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.r}});Object.defineProperty(exports,"SetProfilePinSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.h}});Object.defineProperty(exports,"UpdateHostProfileRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.f}});Object.defineProperty(exports,"UpdateNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.n}});Object.defineProperty(exports,"UpdateUserRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.d}});Object.defineProperty(exports,"UpdateViewerCurrencyRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.l}});Object.defineProperty(exports,"UpdateViewerProfileRequestSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.k}});Object.defineProperty(exports,"UserResponseSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.c}});Object.defineProperty(exports,"ViewerMeResponseSchema",{enumerable:true,get:function(){return chunkI3Y2U4YV_js.p}});Object.defineProperty(exports,"AccountStatus",{enumerable:true,get:function(){return chunkRV53QWOB_js.b}});Object.defineProperty(exports,"AdminScopeCode",{enumerable:true,get:function(){return chunkRV53QWOB_js.d}});Object.defineProperty(exports,"FeedbackCategory",{enumerable:true,get:function(){return chunkRV53QWOB_js.e}});Object.defineProperty(exports,"KycStatus",{enumerable:true,get:function(){return chunkRV53QWOB_js.c}});Object.defineProperty(exports,"NotificationCategory",{enumerable:true,get:function(){return chunkRV53QWOB_js.f}});Object.defineProperty(exports,"ProducerExperienceLevel",{enumerable:true,get:function(){return chunkRV53QWOB_js.h}});Object.defineProperty(exports,"ProducerTeamSize",{enumerable:true,get:function(){return chunkRV53QWOB_js.i}});Object.defineProperty(exports,"ProducerVerificationStatus",{enumerable:true,get:function(){return chunkRV53QWOB_js.g}});Object.defineProperty(exports,"UserRole",{enumerable:true,get:function(){return chunkRV53QWOB_js.a}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{e as CreateHostProfileRequestSchema,g as CreateProducerProfileRequestSchema,j as DisplayNameSchema,a as HostProfileResponseSchema,m as NotificationPreferenceItemSchema,q as NotificationPreferencesResponseSchema,b as ProducerProfileResponseSchema,i as RESERVED_DISPLAY_NAMES,o as SendFeedbackRequestSchema,r as SendFeedbackResponseSchema,h as SetProfilePinSchema,f as UpdateHostProfileRequestSchema,n as UpdateNotificationPreferencesRequestSchema,d as UpdateUserRequestSchema,l as UpdateViewerCurrencyRequestSchema,k as UpdateViewerProfileRequestSchema,c as UserResponseSchema,p as ViewerMeResponseSchema}from'../chunk-VGLL5EUR.mjs';export{b as AccountStatus,d as AdminScopeCode,e as FeedbackCategory,c as KycStatus,f as NotificationCategory,h as ProducerExperienceLevel,g as ProducerVerificationStatus,a as UserRole}from'../chunk-5BJU6AZT.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-XXDKKJEP.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{e as CreateHostProfileRequestSchema,g as CreateProducerProfileRequestSchema,j as DisplayNameSchema,a as HostProfileResponseSchema,m as NotificationPreferenceItemSchema,q as NotificationPreferencesResponseSchema,b as ProducerProfileResponseSchema,i as RESERVED_DISPLAY_NAMES,o as SendFeedbackRequestSchema,r as SendFeedbackResponseSchema,h as SetProfilePinSchema,f as UpdateHostProfileRequestSchema,n as UpdateNotificationPreferencesRequestSchema,d as UpdateUserRequestSchema,l as UpdateViewerCurrencyRequestSchema,k as UpdateViewerProfileRequestSchema,c as UserResponseSchema,p as ViewerMeResponseSchema}from'../chunk-T3A4OTCN.mjs';export{b as AccountStatus,d as AdminScopeCode,e as FeedbackCategory,c as KycStatus,f as NotificationCategory,h as ProducerExperienceLevel,i as ProducerTeamSize,g as ProducerVerificationStatus,a as UserRole}from'../chunk-HTK4LWKI.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-XXDKKJEP.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livdot-tech/contracts",
3
- "version": "1.11.27",
3
+ "version": "1.11.29",
4
4
  "description": "Shared API contracts for the LivDot platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -1,2 +0,0 @@
1
- import {c as c$1}from'./chunk-IIVGG46P.mjs';import {g}from'./chunk-L4QDS3ET.mjs';import {z as z$1}from'zod';var o={NGN:"NGN"},I={SOUND:"sound",LIGHTING:"lighting",VIDEO:"video",STAGING:"staging",AV:"av",LOGISTICS:"logistics"},i={AUDIO:"audio",VIDEO:"video",LIGHTING:"lighting",STAGING:"staging",POWER:"power",OTHER:"other"};var R=z$1.object({category:z$1.string().optional(),minRate:z$1.coerce.number().int().min(0).optional(),maxRate:z$1.coerce.number().int().min(0).optional(),availabilityDate:z$1.string().optional(),search:z$1.string().trim().min(2).max(100).optional(),...g.shape}),n=z$1.object({id:z$1.uuid(),name:z$1.string(),category:z$1.enum(i),notes:z$1.string().nullable()}),r=z$1.object({id:z$1.uuid(),code:z$1.string(),label:z$1.string()}),A=z$1.object({items:z$1.array(r)}),c=z$1.object({id:z$1.uuid(),title:z$1.string(),description:z$1.string().nullable(),mediaUrl:z$1.url().nullable(),externalUrl:z$1.url().nullable(),createdAt:z$1.iso.datetime()}),s=z$1.object({id:z$1.uuid(),label:z$1.string(),amount:z$1.string(),currency:z$1.enum(o),notes:z$1.string().nullable()}),T=z$1.object({id:z$1.uuid(),userId:z$1.uuid(),displayName:z$1.string(),avatarUrl:z$1.url().nullable(),producerIsVerified:z$1.boolean(),companyName:z$1.string().nullable(),bio:z$1.string().nullable(),yearsExperience:z$1.number().int().nullable(),maxDistanceKm:z$1.number().int().nullable(),isAvailable:z$1.boolean(),averageRating:z$1.string(),totalReviews:z$1.number().int(),completionRate:z$1.string(),equipmentManifest:z$1.array(n),serviceCategories:z$1.array(r),portfolio:z$1.array(c),equipmentItems:z$1.array(r),rateCard:z$1.array(s),createdAt:z$1.iso.datetime(),updatedAt:z$1.iso.datetime(),recentReviews:z$1.array(c$1).optional()});var v={HOST:1,PRODUCER:2,VIEWER:4},U={ACTIVE:"ACTIVE",SUSPENDED:"SUSPENDED",BANNED:"BANNED",DELETED:"DELETED"},h={PENDING:"PENDING",SUBMITTED:"SUBMITTED",VERIFIED:"VERIFIED",REJECTED:"REJECTED"},L={TRUST:"TRUST",FINANCIAL:"FINANCIAL",LIVE_OPS:"LIVE_OPS",AUDIT:"AUDIT"},k={BUG:"BUG",IDEA:"IDEA",GENERAL:"GENERAL"},V={EVENT_REMINDERS:"EVENT_REMINDERS",LIVE_ALERTS:"LIVE_ALERTS",RECOMMENDATIONS:"RECOMMENDATIONS",JOB_INVITATIONS:"JOB_INVITATIONS",JOB_CONFIRMATIONS:"JOB_CONFIRMATIONS",MESSAGES:"MESSAGES",TICKET_PURCHASES:"TICKET_PURCHASES",CREW_UPDATES:"CREW_UPDATES"},l={PENDING:"PENDING",APPROVED:"APPROVED",REJECTED:"REJECTED",SUBMITTED:"SUBMITTED",SUSPENDED:"SUSPENDED"},p={BEGINNER:"BEGINNER",INTERMEDIATE:"INTERMEDIATE",EXPERT:"EXPERT"};var d=z$1.object({name:z$1.string().min(1).max(255),category:z$1.enum(i),notes:z$1.string().max(2e3).optional()}),S=z$1.object({title:z$1.string().min(1).max(255),description:z$1.string().max(2e3).optional(),mediaUrl:z$1.url().optional(),externalUrl:z$1.url().optional()}),b=z$1.object({label:z$1.string().min(1).max(255),amount:z$1.number().min(0),currency:z$1.enum(o).default(o.NGN),notes:z$1.string().max(2e3).optional()}),B=z$1.object({id:z$1.uuid(),userId:z$1.uuid(),companyName:z$1.string(),bio:z$1.string(),logoUrl:z$1.url().nullable(),experienceLevel:z$1.enum(p),yearsExperience:z$1.number().int().nullable(),maxDistanceKm:z$1.number().int().nullable(),availabilityCalendar:z$1.record(z$1.string(),z$1.unknown()).nullable(),verificationStatus:z$1.enum(l),verificationReason:z$1.string().nullable(),verifiedAt:z$1.iso.datetime().nullable(),visibleInMarketplace:z$1.boolean(),isAvailable:z$1.boolean(),defaultCurrency:z$1.enum(o),averageRating:z$1.number(),totalReviews:z$1.number().int(),completionRate:z$1.number(),hasPin:z$1.boolean(),equipmentManifest:z$1.array(n),serviceCategories:z$1.array(r),portfolio:z$1.array(c),rateCard:z$1.array(s),createdAt:z$1.iso.datetime(),updatedAt:z$1.iso.datetime(),equipmentItems:z$1.array(r)}),_=z$1.object({companyName:z$1.string().min(1).max(120).optional(),bio:z$1.string().min(1).max(2e3).optional(),logoUrl:z$1.url().nullable().optional(),experienceLevel:z$1.enum(p).optional(),yearsExperience:z$1.number().int().min(0).optional(),serviceAreas:z$1.array(z$1.string()).optional(),maxDistanceKm:z$1.number().int().min(0).nullable().optional(),availabilityCalendar:z$1.record(z$1.string(),z$1.unknown()).nullable().optional(),isAvailable:z$1.boolean().optional(),visibleInMarketplace:z$1.boolean().optional(),equipmentManifest:z$1.array(d).optional(),portfolio:z$1.array(S).optional(),rateCard:z$1.array(b).optional(),equipmentItemIds:z$1.array(z$1.uuid()).optional(),equipmentItemCodes:z$1.array(z$1.string().min(1).max(64)).optional(),categoryCodes:z$1.array(z$1.string()).optional()}).refine(y=>Object.keys(y).length>0,{message:"At least one field is required"}),F=z$1.object({verificationStatus:z$1.literal(l.SUBMITTED)}),w=z$1.object({view:z$1.literal("workspace").optional()});var f=z$1.string().trim().min(5,"Reason must be at least 5 characters"),J=z$1.object({notes:z$1.string().max(2e3).optional()}),E=z$1.object({reason:f,notes:z$1.string().max(2e3).optional()}),H=E,z=E;export{E as A,H as B,z as C,v as a,U as b,h as c,L as d,k as e,V as f,l as g,p as h,o as i,I as j,i as k,R as l,n as m,r as n,A as o,c as p,s as q,T as r,d as s,S as t,b as u,B as v,_ as w,F as x,w as y,J as z};//# sourceMappingURL=chunk-5BJU6AZT.mjs.map
2
- //# sourceMappingURL=chunk-5BJU6AZT.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/marketplace/marketplace.enums.ts","../src/marketplace/marketplace.schemas.ts","../src/user/user.enums.ts","../src/marketplace/workspace.schemas.ts","../src/marketplace/verification.schemas.ts"],"names":["MarketplaceCurrency","ServiceCategoryCode","EquipmentCategory","ListProducersQuerySchema","z","PaginationParamsSchema","PublicProducerListEquipmentItemSchema","PublicProducerListCategorySchema","ServiceCategoryListResponseSchema","PublicProducerListPortfolioItemSchema","PublicProducerListRateCardItemSchema","PublicProducerListItemSchema","ProducerRecentReviewSchema","UserRole","AccountStatus","KycStatus","AdminScopeCode","FeedbackCategory","NotificationCategory","ProducerVerificationStatus","ProducerExperienceLevel","WorkspaceEquipmentItemInputSchema","WorkspacePortfolioItemInputSchema","WorkspaceRateCardItemInputSchema","ProducerProfileWorkspaceSchema","UpsertProducerWorkspaceProfileSchema","data","SubmitProducerForVerificationSchema","GetProducerProfileQuerySchema","verificationReasonSchema","AdminApproveProducerVerificationSchema","AdminProducerVerificationReasonBodySchema","AdminRejectProducerVerificationSchema","AdminSuspendProducerVerificationSchema"],"mappings":"4GACO,IAAMA,CAAAA,CAAsB,CACjC,GAAA,CAAK,KACP,CAAA,CAOaC,EAAsB,CACjC,KAAA,CAAO,OAAA,CACP,QAAA,CAAU,UAAA,CACV,KAAA,CAAO,QACP,OAAA,CAAS,SAAA,CACT,EAAA,CAAI,IAAA,CACJ,SAAA,CAAW,WACb,CAAA,CAIaC,CAAAA,CAAoB,CAC/B,KAAA,CAAO,OAAA,CACP,KAAA,CAAO,OAAA,CACP,QAAA,CAAU,WACV,OAAA,CAAS,SAAA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,CAAO,CACpD,IAAA,CAAMA,IAAE,OAAA,CAAQ,WAAW,CAAA,CAAE,QAAA,EAC/B,CAAC,EC9FD,IAAMyB,CAAAA,CAA2BzB,IAAE,MAAA,EAAO,CAAE,IAAA,EAAK,CAAE,GAAA,CAAI,CAAA,CAAG,sCAAsC,CAAA,CAGnF0B,CAAAA,CAAyC1B,GAAAA,CAAE,MAAA,CAAO,CAC7D,KAAA,CAAOA,GAAAA,CAAE,QAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAC9B,CAAC,CAAA,CAMY2B,CAAAA,CAA4C3B,GAAAA,CAAE,MAAA,CAAO,CAChE,MAAA,CAAQyB,CAAAA,CACR,MAAOzB,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAC9B,CAAC,CAAA,CAGY4B,CAAAA,CAAwCD,CAAAA,CAGxCE,CAAAA,CAAyCF","file":"chunk-5BJU6AZT.mjs","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 } from './marketplace.enums';\nimport { PaginationParamsSchema } from '../common';\nimport { ProducerRecentReviewSchema } from '../booking/review.schemas';\n\nexport const ListProducersQuerySchema = z.object({\n category: 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 /** Case-insensitive match on name, company, role/skill, or equipment */\n search: z.string().trim().min(2).max(100).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 id: z.uuid(),\n code: z.string(),\n label: z.string(),\n});\n\nexport const ServiceCategoryListResponseSchema = z.object({\n items: z.array(PublicProducerListCategorySchema),\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 displayName: z.string(),\n avatarUrl: z.url().nullable(),\n producerIsVerified: z.boolean(),\n companyName: z.string().nullable(),\n bio: z.string().nullable(),\n yearsExperience: z.number().int().nullable(),\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 serviceCategories: z.array(PublicProducerListCategorySchema),\n portfolio: z.array(PublicProducerListPortfolioItemSchema),\n equipmentItems: z.array(PublicProducerListCategorySchema),\n rateCard: z.array(PublicProducerListRateCardItemSchema),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n recentReviews: z.array(ProducerRecentReviewSchema).optional(),\n});\n","export const UserRole = {\n HOST: 1,\n PRODUCER: 2,\n VIEWER: 4,\n} as const;\nexport type UserRole = (typeof UserRole)[keyof typeof UserRole];\n\nexport const AccountStatus = {\n ACTIVE: 'ACTIVE',\n SUSPENDED: 'SUSPENDED',\n BANNED: 'BANNED',\n DELETED: 'DELETED',\n} as const;\nexport type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus];\n\nexport const KycStatus = {\n PENDING: 'PENDING',\n SUBMITTED: 'SUBMITTED',\n VERIFIED: 'VERIFIED',\n REJECTED: 'REJECTED',\n} as const;\nexport type KycStatus = (typeof KycStatus)[keyof typeof KycStatus];\n\n/**\n * Enum for admin scope codes.\n */\nexport const AdminScopeCode = {\n TRUST: 'TRUST',\n FINANCIAL: 'FINANCIAL',\n LIVE_OPS: 'LIVE_OPS',\n AUDIT: 'AUDIT',\n} as const;\nexport type AdminScopeCode = (typeof AdminScopeCode)[keyof typeof AdminScopeCode];\n\nexport const FeedbackCategory = {\n BUG: 'BUG',\n IDEA: 'IDEA',\n GENERAL: 'GENERAL',\n} as const;\nexport type FeedbackCategory = (typeof FeedbackCategory)[keyof typeof FeedbackCategory];\n\nexport const NotificationCategory = {\n EVENT_REMINDERS: 'EVENT_REMINDERS',\n LIVE_ALERTS: 'LIVE_ALERTS',\n RECOMMENDATIONS: 'RECOMMENDATIONS',\n JOB_INVITATIONS: 'JOB_INVITATIONS',\n JOB_CONFIRMATIONS: 'JOB_CONFIRMATIONS',\n MESSAGES: 'MESSAGES',\n TICKET_PURCHASES: 'TICKET_PURCHASES',\n CREW_UPDATES: 'CREW_UPDATES',\n} as const;\nexport type NotificationCategory = (typeof NotificationCategory)[keyof typeof NotificationCategory];\n\nexport const ProducerVerificationStatus = {\n PENDING: 'PENDING',\n APPROVED: 'APPROVED',\n REJECTED: 'REJECTED',\n SUBMITTED: 'SUBMITTED',\n SUSPENDED: 'SUSPENDED',\n} as const;\nexport type ProducerVerificationStatus =\n (typeof ProducerVerificationStatus)[keyof typeof ProducerVerificationStatus];\n\nexport const ProducerExperienceLevel = {\n BEGINNER: 'BEGINNER',\n INTERMEDIATE: 'INTERMEDIATE',\n EXPERT: 'EXPERT',\n} as const;\nexport type ProducerExperienceLevel =\n (typeof ProducerExperienceLevel)[keyof typeof ProducerExperienceLevel];\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 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 hasPin: z.boolean(),\n equipmentManifest: z.array(PublicProducerListEquipmentItemSchema),\n serviceCategories: z.array(PublicProducerListCategorySchema),\n portfolio: z.array(PublicProducerListPortfolioItemSchema),\n rateCard: z.array(PublicProducerListRateCardItemSchema),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n equipmentItems: z.array(PublicProducerListCategorySchema),\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 equipmentItemIds: z.array(z.uuid()).optional(),\n equipmentItemCodes: z.array(z.string().min(1).max(64)).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"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunk4GW5RNUF_js=require('./chunk-4GW5RNUF.js'),chunkO3GYEMUB_js=require('./chunk-O3GYEMUB.js'),zod=require('zod');var n={SERVICE_NOT_DELIVERED:"SERVICE_NOT_DELIVERED",QUALITY_ISSUE:"QUALITY_ISSUE",PAYMENT_DISPUTE:"PAYMENT_DISPUTE",CANCELLATION_DISPUTE:"CANCELLATION_DISPUTE",OTHER:"OTHER"},s={OPEN:"OPEN",UNDER_REVIEW:"UNDER_REVIEW",RESOLVED:"RESOLVED",CLOSED:"CLOSED"};var l=zod.z.object({id:zod.z.uuid(),transactionId:zod.z.uuid(),eventId:zod.z.uuid().optional(),bookingId:zod.z.uuid().optional(),userId:zod.z.uuid(),disputeType:zod.z.enum(n),reason:zod.z.string(),amountInDispute:zod.z.number(),disputeStatus:zod.z.enum(s),resolution:zod.z.string().optional(),reportedAt:zod.z.iso.datetime(),slaDeadline:zod.z.iso.datetime(),resolvedAt:zod.z.iso.datetime().optional(),createdAt:zod.z.iso.datetime()}),p=500,r=zod.z.enum(["EVENT_DID_NOT_RUN","POOR_QUALITY","ACCESS_ISSUE","OTHER"]),t=zod.z.enum(["OPEN","RESOLVED_CUSTOMER","RESOLVED_HOST","EXPIRED"]),a=zod.z.enum(["REFUNDED","DENIED","PARTIAL_REFUND"]),u=zod.z.enum(chunk4GW5RNUF_js.n),I=zod.z.object({entitlementKind:u,reason:r,detail:zod.z.string().trim().min(1).max(p).optional()}).strict(),m=zod.z.object({id:zod.z.uuid(),entitlementId:zod.z.string(),eventId:zod.z.uuid(),userId:zod.z.uuid(),reason:r,detail:zod.z.string().nullable(),state:t,resolvedAt:zod.z.iso.datetime().nullable(),resolutionOutcome:a.nullable(),correlationId:zod.z.string(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime()}).strict(),R=zod.z.object({state:t.optional(),pageNumber:zod.z.coerce.number().int().min(1).optional(),pageSize:zod.z.coerce.number().int().min(1).max(100).optional()}).strict(),T=zod.z.object({state:t.optional(),eventId:zod.z.uuid().optional(),pageNumber:zod.z.coerce.number().int().min(1).optional(),pageSize:zod.z.coerce.number().int().min(1).max(100).optional()}).strict(),x=zod.z.object({outcome:a,refundId:zod.z.string().min(1).max(100).optional(),resolutionNote:zod.z.string().trim().max(500).optional()}).strict(),A=zod.z.object({items:zod.z.array(m),...chunkO3GYEMUB_js.k.shape}).strict(),O=zod.z.object({viewerId:zod.z.uuid(),reason:zod.z.string().min(1).max(500).optional()}),N=zod.z.object({eventId:zod.z.uuid(),viewerIds:zod.z.array(zod.z.uuid())});exports.a=n;exports.b=s;exports.c=l;exports.d=p;exports.e=r;exports.f=t;exports.g=a;exports.h=I;exports.i=m;exports.j=R;exports.k=T;exports.l=x;exports.m=A;exports.n=O;exports.o=N;//# sourceMappingURL=chunk-7PU752O4.js.map
2
- //# sourceMappingURL=chunk-7PU752O4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/dispute/dispute.enums.ts","../src/dispute/dispute.schemas.ts"],"names":["DisputeType","DisputeStatus","DisputeResponseSchema","z","DISPUTE_DETAIL_MAX_LENGTH","DisputeReasonSchema","DisputeStateSchema","DisputeOutcomeSchema","EntitlementKindSchema","EntitlementKind","OpenDisputeRequestSchema","AdminDisputeResponseSchema","MyDisputesQuerySchema","AdminDisputesQuerySchema","ResolveDisputeRequestSchema","PagedDisputesResponseSchema","PaginationResponseSchema","AdminRevokeViewerPlaybackSchema","AdminRevokedViewersResponseSchema"],"mappings":"oIAAO,IAAMA,CAAAA,CAAc,CACzB,qBAAA,CAAuB,uBAAA,CACvB,cAAe,eAAA,CACf,eAAA,CAAiB,kBACjB,oBAAA,CAAsB,sBAAA,CACtB,MAAO,OACT,CAAA,CAGaC,EAAgB,CAC3B,IAAA,CAAM,OACN,YAAA,CAAc,cAAA,CACd,QAAA,CAAU,UAAA,CACV,MAAA,CAAQ,QACV,ECTO,IAAMC,EAAwBC,KAAAA,CAAE,MAAA,CAAO,CAC5C,EAAA,CAAIA,KAAAA,CAAE,MAAK,CACX,aAAA,CAAeA,MAAE,IAAA,EAAK,CACtB,QAASA,KAAAA,CAAE,IAAA,EAAK,CAAE,QAAA,EAAS,CAC3B,SAAA,CAAWA,MAAE,IAAA,EAAK,CAAE,UAAS,CAC7B,MAAA,CAAQA,MAAE,IAAA,EAAK,CACf,YAAaA,KAAAA,CAAE,IAAA,CAAKH,CAAW,CAAA,CAC/B,MAAA,CAAQG,MAAE,MAAA,EAAO,CACjB,gBAAiBA,KAAAA,CAAE,MAAA,EAAO,CAC1B,aAAA,CAAeA,KAAAA,CAAE,IAAA,CAAKF,CAAa,CAAA,CACnC,UAAA,CAAYE,MAAE,MAAA,EAAO,CAAE,UAAS,CAChC,UAAA,CAAYA,MAAE,GAAA,CAAI,QAAA,GAClB,WAAA,CAAaA,KAAAA,CAAE,IAAI,QAAA,EAAS,CAC5B,WAAYA,KAAAA,CAAE,GAAA,CAAI,QAAA,EAAS,CAAE,QAAA,EAAS,CACtC,UAAWA,KAAAA,CAAE,GAAA,CAAI,UACnB,CAAC,EAEYC,CAAAA,CAA4B,GAAA,CAE5BC,EAAsBF,KAAAA,CAAE,IAAA,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AAoCf,MAAE,MAAA,CAAO,CACxD,QAASA,KAAAA,CAAE,IAAA,GACX,SAAA,CAAWA,KAAAA,CAAE,MAAMA,KAAAA,CAAE,IAAA,EAAM,CAC7B,CAAC","file":"chunk-7PU752O4.js","sourcesContent":["export const DisputeType = {\n SERVICE_NOT_DELIVERED: 'SERVICE_NOT_DELIVERED',\n QUALITY_ISSUE: 'QUALITY_ISSUE',\n PAYMENT_DISPUTE: 'PAYMENT_DISPUTE',\n CANCELLATION_DISPUTE: 'CANCELLATION_DISPUTE',\n OTHER: 'OTHER',\n} as const;\nexport type DisputeType = (typeof DisputeType)[keyof typeof DisputeType];\n\nexport const DisputeStatus = {\n OPEN: 'OPEN',\n UNDER_REVIEW: 'UNDER_REVIEW',\n RESOLVED: 'RESOLVED',\n CLOSED: 'CLOSED',\n} as const;\nexport type DisputeStatus = (typeof DisputeStatus)[keyof typeof DisputeStatus];\n","import { z } from 'zod';\nimport { DisputeType, DisputeStatus } from './dispute.enums';\nimport { EntitlementKind } from '../event';\nimport { PaginationResponseSchema } from '../common';\n\nexport const DisputeResponseSchema = z.object({\n id: z.uuid(),\n transactionId: z.uuid(),\n eventId: z.uuid().optional(),\n bookingId: z.uuid().optional(),\n userId: z.uuid(),\n disputeType: z.enum(DisputeType),\n reason: z.string(),\n amountInDispute: z.number(),\n disputeStatus: z.enum(DisputeStatus),\n resolution: z.string().optional(),\n reportedAt: z.iso.datetime(),\n slaDeadline: z.iso.datetime(),\n resolvedAt: z.iso.datetime().optional(),\n createdAt: z.iso.datetime(),\n});\n\nexport const DISPUTE_DETAIL_MAX_LENGTH = 500;\n\nexport const DisputeReasonSchema = z.enum([\n 'EVENT_DID_NOT_RUN',\n 'POOR_QUALITY',\n 'ACCESS_ISSUE',\n 'OTHER',\n]);\n\n// Mirrors Prisma `DisputeState` enum.\nexport const DisputeStateSchema = z.enum(['OPEN', 'RESOLVED_CUSTOMER', 'RESOLVED_HOST', 'EXPIRED']);\n\n// Mirrors Prisma `DisputeOutcome` enum.\nexport const DisputeOutcomeSchema = z.enum(['REFUNDED', 'DENIED', 'PARTIAL_REFUND']);\n\nconst EntitlementKindSchema = z.enum(EntitlementKind);\n\nexport const OpenDisputeRequestSchema = z\n .object({\n entitlementKind: EntitlementKindSchema,\n reason: DisputeReasonSchema,\n detail: z.string().trim().min(1).max(DISPUTE_DETAIL_MAX_LENGTH).optional(),\n })\n .strict();\n\nexport const AdminDisputeResponseSchema = z\n .object({\n id: z.uuid(),\n entitlementId: z.string(),\n eventId: z.uuid(),\n userId: z.uuid(),\n reason: DisputeReasonSchema,\n detail: z.string().nullable(),\n state: DisputeStateSchema,\n resolvedAt: z.iso.datetime().nullable(),\n resolutionOutcome: DisputeOutcomeSchema.nullable(),\n correlationId: z.string(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n })\n .strict();\n\nexport const MyDisputesQuerySchema = z\n .object({\n state: DisputeStateSchema.optional(),\n pageNumber: z.coerce.number().int().min(1).optional(),\n pageSize: z.coerce.number().int().min(1).max(100).optional(),\n })\n .strict();\n\nexport const AdminDisputesQuerySchema = z\n .object({\n state: DisputeStateSchema.optional(),\n eventId: z.uuid().optional(),\n pageNumber: z.coerce.number().int().min(1).optional(),\n pageSize: z.coerce.number().int().min(1).max(100).optional(),\n })\n .strict();\n\nexport const ResolveDisputeRequestSchema = z\n .object({\n outcome: DisputeOutcomeSchema,\n refundId: z.string().min(1).max(100).optional(),\n resolutionNote: z.string().trim().max(500).optional(),\n })\n .strict();\n\nexport const PagedDisputesResponseSchema = z\n .object({\n items: z.array(AdminDisputeResponseSchema),\n ...PaginationResponseSchema.shape,\n })\n .strict();\n\nexport const AdminRevokeViewerPlaybackSchema = z.object({\n viewerId: z.uuid(),\n reason: z.string().min(1).max(500).optional(),\n});\n\nexport const AdminRevokedViewersResponseSchema = z.object({\n eventId: z.uuid(),\n viewerIds: z.array(z.uuid()),\n});\n"]}
@@ -1,2 +0,0 @@
1
- import {n as n$1}from'./chunk-XXDKKJEP.mjs';import {k}from'./chunk-L4QDS3ET.mjs';import {z}from'zod';var n={SERVICE_NOT_DELIVERED:"SERVICE_NOT_DELIVERED",QUALITY_ISSUE:"QUALITY_ISSUE",PAYMENT_DISPUTE:"PAYMENT_DISPUTE",CANCELLATION_DISPUTE:"CANCELLATION_DISPUTE",OTHER:"OTHER"},s={OPEN:"OPEN",UNDER_REVIEW:"UNDER_REVIEW",RESOLVED:"RESOLVED",CLOSED:"CLOSED"};var l=z.object({id:z.uuid(),transactionId:z.uuid(),eventId:z.uuid().optional(),bookingId:z.uuid().optional(),userId:z.uuid(),disputeType:z.enum(n),reason:z.string(),amountInDispute:z.number(),disputeStatus:z.enum(s),resolution:z.string().optional(),reportedAt:z.iso.datetime(),slaDeadline:z.iso.datetime(),resolvedAt:z.iso.datetime().optional(),createdAt:z.iso.datetime()}),p=500,r=z.enum(["EVENT_DID_NOT_RUN","POOR_QUALITY","ACCESS_ISSUE","OTHER"]),t=z.enum(["OPEN","RESOLVED_CUSTOMER","RESOLVED_HOST","EXPIRED"]),a=z.enum(["REFUNDED","DENIED","PARTIAL_REFUND"]),u=z.enum(n$1),I=z.object({entitlementKind:u,reason:r,detail:z.string().trim().min(1).max(p).optional()}).strict(),m=z.object({id:z.uuid(),entitlementId:z.string(),eventId:z.uuid(),userId:z.uuid(),reason:r,detail:z.string().nullable(),state:t,resolvedAt:z.iso.datetime().nullable(),resolutionOutcome:a.nullable(),correlationId:z.string(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}).strict(),R=z.object({state:t.optional(),pageNumber:z.coerce.number().int().min(1).optional(),pageSize:z.coerce.number().int().min(1).max(100).optional()}).strict(),T=z.object({state:t.optional(),eventId:z.uuid().optional(),pageNumber:z.coerce.number().int().min(1).optional(),pageSize:z.coerce.number().int().min(1).max(100).optional()}).strict(),x=z.object({outcome:a,refundId:z.string().min(1).max(100).optional(),resolutionNote:z.string().trim().max(500).optional()}).strict(),A=z.object({items:z.array(m),...k.shape}).strict(),O=z.object({viewerId:z.uuid(),reason:z.string().min(1).max(500).optional()}),N=z.object({eventId:z.uuid(),viewerIds:z.array(z.uuid())});export{n as a,s as b,l as c,p as d,r as e,t as f,a as g,I as h,m as i,R as j,T as k,x as l,A as m,O as n,N as o};//# sourceMappingURL=chunk-CAYVR5TG.mjs.map
2
- //# sourceMappingURL=chunk-CAYVR5TG.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/dispute/dispute.enums.ts","../src/dispute/dispute.schemas.ts"],"names":["DisputeType","DisputeStatus","DisputeResponseSchema","z","DISPUTE_DETAIL_MAX_LENGTH","DisputeReasonSchema","DisputeStateSchema","DisputeOutcomeSchema","EntitlementKindSchema","EntitlementKind","OpenDisputeRequestSchema","AdminDisputeResponseSchema","MyDisputesQuerySchema","AdminDisputesQuerySchema","ResolveDisputeRequestSchema","PagedDisputesResponseSchema","PaginationResponseSchema","AdminRevokeViewerPlaybackSchema","AdminRevokedViewersResponseSchema"],"mappings":"qGAAO,IAAMA,CAAAA,CAAc,CACzB,qBAAA,CAAuB,uBAAA,CACvB,cAAe,eAAA,CACf,eAAA,CAAiB,kBACjB,oBAAA,CAAsB,sBAAA,CACtB,MAAO,OACT,CAAA,CAGaC,EAAgB,CAC3B,IAAA,CAAM,OACN,YAAA,CAAc,cAAA,CACd,QAAA,CAAU,UAAA,CACV,MAAA,CAAQ,QACV,ECTO,IAAMC,EAAwBC,CAAAA,CAAE,MAAA,CAAO,CAC5C,EAAA,CAAIA,CAAAA,CAAE,MAAK,CACX,aAAA,CAAeA,EAAE,IAAA,EAAK,CACtB,QAASA,CAAAA,CAAE,IAAA,EAAK,CAAE,QAAA,EAAS,CAC3B,SAAA,CAAWA,EAAE,IAAA,EAAK,CAAE,UAAS,CAC7B,MAAA,CAAQA,EAAE,IAAA,EAAK,CACf,YAAaA,CAAAA,CAAE,IAAA,CAAKH,CAAW,CAAA,CAC/B,MAAA,CAAQG,EAAE,MAAA,EAAO,CACjB,gBAAiBA,CAAAA,CAAE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A,EAC7C,CAAC,CAAA,CACA,QAAO,CAEGY,CAAAA,CAA8BZ,CAAAA,CACxC,MAAA,CAAO,CACN,KAAA,CAAOA,EAAE,KAAA,CAAMQ,CAA0B,EACzC,GAAGK,CAAAA,CAAyB,KAC9B,CAAC,CAAA,CACA,QAAO,CAEGC,CAAAA,CAAkCd,EAAE,MAAA,CAAO,CACtD,SAAUA,CAAAA,CAAE,IAAA,GACZ,MAAA,CAAQA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,CAAI,CAAC,EAAE,GAAA,CAAI,GAAG,EAAE,QAAA,EACrC,CAAC,CAAA,CAEYe,CAAAA,CAAoCf,EAAE,MAAA,CAAO,CACxD,QAASA,CAAAA,CAAE,IAAA,GACX,SAAA,CAAWA,CAAAA,CAAE,MAAMA,CAAAA,CAAE,IAAA,EAAM,CAC7B,CAAC","file":"chunk-CAYVR5TG.mjs","sourcesContent":["export const DisputeType = {\n SERVICE_NOT_DELIVERED: 'SERVICE_NOT_DELIVERED',\n QUALITY_ISSUE: 'QUALITY_ISSUE',\n PAYMENT_DISPUTE: 'PAYMENT_DISPUTE',\n CANCELLATION_DISPUTE: 'CANCELLATION_DISPUTE',\n OTHER: 'OTHER',\n} as const;\nexport type DisputeType = (typeof DisputeType)[keyof typeof DisputeType];\n\nexport const DisputeStatus = {\n OPEN: 'OPEN',\n UNDER_REVIEW: 'UNDER_REVIEW',\n RESOLVED: 'RESOLVED',\n CLOSED: 'CLOSED',\n} as const;\nexport type DisputeStatus = (typeof DisputeStatus)[keyof typeof DisputeStatus];\n","import { z } from 'zod';\nimport { DisputeType, DisputeStatus } from './dispute.enums';\nimport { EntitlementKind } from '../event';\nimport { PaginationResponseSchema } from '../common';\n\nexport const DisputeResponseSchema = z.object({\n id: z.uuid(),\n transactionId: z.uuid(),\n eventId: z.uuid().optional(),\n bookingId: z.uuid().optional(),\n userId: z.uuid(),\n disputeType: z.enum(DisputeType),\n reason: z.string(),\n amountInDispute: z.number(),\n disputeStatus: z.enum(DisputeStatus),\n resolution: z.string().optional(),\n reportedAt: z.iso.datetime(),\n slaDeadline: z.iso.datetime(),\n resolvedAt: z.iso.datetime().optional(),\n createdAt: z.iso.datetime(),\n});\n\nexport const DISPUTE_DETAIL_MAX_LENGTH = 500;\n\nexport const DisputeReasonSchema = z.enum([\n 'EVENT_DID_NOT_RUN',\n 'POOR_QUALITY',\n 'ACCESS_ISSUE',\n 'OTHER',\n]);\n\n// Mirrors Prisma `DisputeState` enum.\nexport const DisputeStateSchema = z.enum(['OPEN', 'RESOLVED_CUSTOMER', 'RESOLVED_HOST', 'EXPIRED']);\n\n// Mirrors Prisma `DisputeOutcome` enum.\nexport const DisputeOutcomeSchema = z.enum(['REFUNDED', 'DENIED', 'PARTIAL_REFUND']);\n\nconst EntitlementKindSchema = z.enum(EntitlementKind);\n\nexport const OpenDisputeRequestSchema = z\n .object({\n entitlementKind: EntitlementKindSchema,\n reason: DisputeReasonSchema,\n detail: z.string().trim().min(1).max(DISPUTE_DETAIL_MAX_LENGTH).optional(),\n })\n .strict();\n\nexport const AdminDisputeResponseSchema = z\n .object({\n id: z.uuid(),\n entitlementId: z.string(),\n eventId: z.uuid(),\n userId: z.uuid(),\n reason: DisputeReasonSchema,\n detail: z.string().nullable(),\n state: DisputeStateSchema,\n resolvedAt: z.iso.datetime().nullable(),\n resolutionOutcome: DisputeOutcomeSchema.nullable(),\n correlationId: z.string(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n })\n .strict();\n\nexport const MyDisputesQuerySchema = z\n .object({\n state: DisputeStateSchema.optional(),\n pageNumber: z.coerce.number().int().min(1).optional(),\n pageSize: z.coerce.number().int().min(1).max(100).optional(),\n })\n .strict();\n\nexport const AdminDisputesQuerySchema = z\n .object({\n state: DisputeStateSchema.optional(),\n eventId: z.uuid().optional(),\n pageNumber: z.coerce.number().int().min(1).optional(),\n pageSize: z.coerce.number().int().min(1).max(100).optional(),\n })\n .strict();\n\nexport const ResolveDisputeRequestSchema = z\n .object({\n outcome: DisputeOutcomeSchema,\n refundId: z.string().min(1).max(100).optional(),\n resolutionNote: z.string().trim().max(500).optional(),\n })\n .strict();\n\nexport const PagedDisputesResponseSchema = z\n .object({\n items: z.array(AdminDisputeResponseSchema),\n ...PaginationResponseSchema.shape,\n })\n .strict();\n\nexport const AdminRevokeViewerPlaybackSchema = z.object({\n viewerId: z.uuid(),\n reason: z.string().min(1).max(500).optional(),\n});\n\nexport const AdminRevokedViewersResponseSchema = z.object({\n eventId: z.uuid(),\n viewerIds: z.array(z.uuid()),\n});\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkQZMRMFXE_js=require('./chunk-QZMRMFXE.js'),chunk4GW5RNUF_js=require('./chunk-4GW5RNUF.js'),zod=require('zod');var u=zod.z.object({id:zod.z.uuid(),userId:zod.z.uuid(),businessName:zod.z.string(),totalEvents:zod.z.number(),totalSpent:zod.z.number(),averageRating:zod.z.number(),totalReviews:zod.z.number().int().nonnegative(),defaultCurrency:zod.z.string(),description:zod.z.string().optional(),category:zod.z.array(zod.z.enum(chunk4GW5RNUF_js.h)),logoUrl:zod.z.url().optional(),hasPin:zod.z.boolean(),businessRegNumber:zod.z.string().optional(),taxId:zod.z.string().optional(),settlementBankCode:zod.z.string().optional(),settlementAccountNumber:zod.z.string().optional(),settlementAccountName:zod.z.string().optional(),paystackSubaccountCode:zod.z.string().optional(),createdAt:zod.z.iso.datetime()}),d=zod.z.object({id:zod.z.uuid(),userId:zod.z.uuid(),companyName:zod.z.string(),bio:zod.z.string(),yearsExperience:zod.z.number().optional(),experienceLevel:zod.z.enum(chunkQZMRMFXE_js.h),equipmentManifest:zod.z.array(zod.z.record(zod.z.string(),zod.z.any())),serviceCategories:zod.z.array(chunkQZMRMFXE_js.n),equipmentItems:zod.z.array(chunkQZMRMFXE_js.n),verificationStatus:zod.z.enum(chunkQZMRMFXE_js.g),averageRating:zod.z.number().positive().multipleOf(.01),totalReviews:zod.z.number(),completionRate:zod.z.number(),isAvailable:zod.z.boolean(),hasPin:zod.z.boolean(),createdAt:zod.z.iso.datetime()}),R=zod.z.object({id:zod.z.uuid(),email:zod.z.email().toLowerCase(),emailVerified:zod.z.boolean(),emailVerifiedAt:zod.z.iso.datetime().optional(),phoneNumber:zod.z.string().optional(),firstName:zod.z.string().optional(),lastName:zod.z.string().optional(),displayName:zod.z.string().optional(),avatarUrl:zod.z.url().optional(),roles:zod.z.number().min(1).max(15),accountStatus:zod.z.enum(chunkQZMRMFXE_js.b),kycStatus:zod.z.enum(chunkQZMRMFXE_js.c),hostProfile:u.optional(),producerProfile:d.optional(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime(),eventCategory:zod.z.array(zod.z.enum(chunk4GW5RNUF_js.h)).optional()}),N=zod.z.object({firstName:zod.z.string().optional(),lastName:zod.z.string().optional(),displayName:zod.z.string().optional(),avatarUrl:zod.z.url().optional(),phoneNumber:zod.z.string().optional(),eventCategory:zod.z.array(zod.z.enum(chunk4GW5RNUF_js.h)).optional()}),v=zod.z.object({businessName:zod.z.string(),description:zod.z.string().optional(),logoUrl:zod.z.string().optional(),category:zod.z.array(zod.z.enum(chunk4GW5RNUF_js.h)).min(1)}),C=zod.z.object({businessName:zod.z.string().min(1).max(120).optional(),description:zod.z.string().max(2e3).optional(),logoUrl:zod.z.string().optional(),category:zod.z.array(zod.z.enum(chunk4GW5RNUF_js.h)).min(1).optional(),businessRegNumber:zod.z.string().max(64).optional(),taxId:zod.z.string().max(64).optional()}),P=zod.z.object({companyName:zod.z.string(),bio:zod.z.string(),logoUrl:zod.z.string().optional(),serviceCategoryIds:zod.z.array(zod.z.uuid()).optional(),serviceCategoryCodes:zod.z.array(zod.z.string().min(1).max(64)).optional(),equipmentItemIds:zod.z.array(zod.z.uuid()).optional(),equipmentItemCodes:zod.z.array(zod.z.string().min(1).max(64)).optional(),yearsExperience:zod.z.number(),experienceLevel:zod.z.enum(chunkQZMRMFXE_js.h),minFee:zod.z.number(),maxFee:zod.z.number(),isAvailable:zod.z.boolean()}),E=zod.z.object({pin:zod.z.string().trim().regex(/^\d{4,8}$/,"pin must be 4-8 digits"),currentPin:zod.z.string().trim().regex(/^\d{4,8}$/,"currentPin must be 4-8 digits").optional()}),g=new Set(["admin","support","livdot","host","producer","system","null","undefined","me","settings","viewer","auth","events","streaming","producers","marketplace","users"]),b=zod.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(r=>!g.has(r),{message:"This display name is reserved"}),j=zod.z.object({displayName:b}).strict(),A=zod.z.object({preferredCurrency:zod.z.string().trim().toUpperCase().length(3).regex(/^[A-Z]{3}$/)}).strict(),l=zod.z.enum([chunkQZMRMFXE_js.f.LIVE_ALERTS,chunkQZMRMFXE_js.f.RECOMMENDATIONS,chunkQZMRMFXE_js.f.EVENT_REMINDERS]),y=zod.z.object({category:l,enabled:zod.z.boolean()}),U=zod.z.object({preferences:zod.z.array(y).min(1).max(10).refine(r=>new Set(r.map(p=>p.category)).size===r.length,{message:"Duplicate category in preferences"})}).strict(),I=zod.z.object({category:zod.z.enum(chunkQZMRMFXE_js.e),message:zod.z.string().trim().min(10).max(2e3)}).strict(),q=zod.z.object({id:zod.z.uuid(),email:zod.z.email(),emailVerified:zod.z.boolean(),displayName:zod.z.string().nullable(),avatarUrl:zod.z.url().nullable(),roles:zod.z.number().int(),preferredCurrency:zod.z.string(),notificationsEnabledCount:zod.z.number().int(),hasPushDevice:zod.z.boolean()}),w=zod.z.object({preferences:zod.z.record(l,zod.z.boolean())}),D=zod.z.object({id:zod.z.uuid()});exports.a=u;exports.b=d;exports.c=R;exports.d=N;exports.e=v;exports.f=C;exports.g=P;exports.h=E;exports.i=g;exports.j=b;exports.k=j;exports.l=A;exports.m=y;exports.n=U;exports.o=I;exports.p=q;exports.q=w;exports.r=D;//# sourceMappingURL=chunk-CMQWFYU4.js.map
2
- //# sourceMappingURL=chunk-CMQWFYU4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/user/user.schemas.ts"],"names":["HostProfileResponseSchema","z","EventCategory","ProducerProfileResponseSchema","ProducerExperienceLevel","PublicProducerListCategorySchema","ProducerVerificationStatus","UserResponseSchema","AccountStatus","KycStatus","UpdateUserRequestSchema","CreateHostProfileRequestSchema","UpdateHostProfileRequestSchema","CreateProducerProfileRequestSchema","SetProfilePinSchema","RESERVED_DISPLAY_NAMES","DisplayNameSchema","v","UpdateViewerProfileRequestSchema","UpdateViewerCurrencyRequestSchema","USER_CATEGORY","NotificationCategory","NotificationPreferenceItemSchema","UpdateNotificationPreferencesRequestSchema","items","i","SendFeedbackRequestSchema","FeedbackCategory","ViewerMeResponseSchema","NotificationPreferencesResponseSchema","SendFeedbackResponseSchema"],"mappings":"oIAYO,IAAMA,EAA4BC,KAAAA,CAAE,MAAA,CAAO,CAChD,EAAA,CAAIA,KAAAA,CAAE,MAAK,CACX,MAAA,CAAQA,MAAE,IAAA,EAAK,CACf,aAAcA,KAAAA,CAAE,MAAA,EAAO,CACvB,WAAA,CAAaA,KAAAA,CAAE,MAAA,GACf,UAAA,CAAYA,KAAAA,CAAE,QAAO,CACrB,aAAA,CAAeA,MAAE,MAAA,EAAO,CAExB,YAAA,CAAcA,KAAAA,CAAE,MAAA,EAAO,CAAE,KAAI,CAAE,WAAA,GAC/B,eAAA,CAAiBA,KAAAA,CAAE,QAAO,CAC1B,WAAA,CAAaA,KAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,GACxB,QAAA,CAAUA,KAAAA,CAAE,MAAMA,KAAAA,CAAE,IAAA,CAAKC,kBAAa,CAAC,CAAA,CACvC,QAASD,KAAAA,CAAE,GAAA,GAAM,QAAA,EAAS,CAC1B,OAAQA,KAAAA,CAAE,OAAA,GACV,iBAAA,CAAmBA,KAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACvC,MAAOA,KAAAA,CAAE,MAAA,GAAS,QAAA,EAAS,CAC3B,m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AAE,GAAA,CAAI,GAAI,CAC7C,CAAC,CAAA,CACA,MAAA,GAEU2B,CAAAA,CAAyB3B,KAAAA,CAAE,OAAO,CAC7C,EAAA,CAAIA,KAAAA,CAAE,IAAA,EAAK,CACX,KAAA,CAAOA,MAAE,KAAA,EAAM,CACf,cAAeA,KAAAA,CAAE,OAAA,GACjB,WAAA,CAAaA,KAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACjC,UAAWA,KAAAA,CAAE,GAAA,GAAM,QAAA,EAAS,CAC5B,MAAOA,KAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CACtB,iBAAA,CAAmBA,MAAE,MAAA,EAAO,CAC5B,0BAA2BA,KAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAC1C,aAAA,CAAeA,KAAAA,CAAE,OAAA,EACnB,CAAC,CAAA,CAEY4B,CAAAA,CAAwC5B,MAAE,MAAA,CAAO,CAC5D,YAAaA,KAAAA,CAAE,MAAA,CAAOmB,CAAAA,CAAenB,KAAAA,CAAE,OAAA,EAAS,CAClD,CAAC,CAAA,CAEY6B,EAA6B7B,KAAAA,CAAE,MAAA,CAAO,CACjD,EAAA,CAAIA,KAAAA,CAAE,IAAA,EACR,CAAC","file":"chunk-CMQWFYU4.js","sourcesContent":["import { z } from 'zod';\nimport {\n AccountStatus,\n FeedbackCategory,\n KycStatus,\n NotificationCategory,\n ProducerExperienceLevel,\n ProducerVerificationStatus,\n} from './user.enums';\nimport { EventCategory } from '../event';\nimport { PublicProducerListCategorySchema } from '../marketplace';\n\nexport const HostProfileResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n businessName: z.string(),\n totalEvents: z.number(),\n totalSpent: z.number(),\n averageRating: z.number(),\n /** Count of producer→host marketplace reviews reflected in `averageRating`. */\n totalReviews: z.number().int().nonnegative(),\n defaultCurrency: z.string(),\n description: z.string().optional(),\n category: z.array(z.enum(EventCategory)),\n logoUrl: z.url().optional(),\n hasPin: z.boolean(),\n businessRegNumber: z.string().optional(),\n taxId: z.string().optional(),\n settlementBankCode: z.string().optional(),\n settlementAccountNumber: z.string().optional(),\n settlementAccountName: z.string().optional(),\n paystackSubaccountCode: z.string().optional(),\n createdAt: z.iso.datetime(),\n});\n\nexport const ProducerProfileResponseSchema = z.object({\n id: z.uuid(),\n userId: z.uuid(),\n companyName: z.string(),\n bio: z.string(),\n yearsExperience: z.number().optional(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n equipmentManifest: z.array(z.record(z.string(), z.any())),\n serviceCategories: z.array(PublicProducerListCategorySchema),\n equipmentItems: z.array(PublicProducerListCategorySchema),\n verificationStatus: z.enum(ProducerVerificationStatus),\n averageRating: z.number().positive().multipleOf(0.01),\n totalReviews: z.number(),\n completionRate: z.number(),\n isAvailable: z.boolean(),\n hasPin: z.boolean(),\n createdAt: z.iso.datetime(),\n});\n\nexport const UserResponseSchema = z.object({\n id: z.uuid(),\n email: z.email().toLowerCase(),\n emailVerified: z.boolean(),\n emailVerifiedAt: z.iso.datetime().optional(),\n phoneNumber: z.string().optional(),\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n displayName: z.string().optional(),\n avatarUrl: z.url().optional(),\n roles: z.number().min(1).max(15),\n accountStatus: z.enum(AccountStatus),\n kycStatus: z.enum(KycStatus),\n hostProfile: HostProfileResponseSchema.optional(),\n producerProfile: ProducerProfileResponseSchema.optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n eventCategory: z.array(z.enum(EventCategory)).optional(),\n});\n\nexport const UpdateUserRequestSchema = z.object({\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n displayName: z.string().optional(),\n avatarUrl: z.url().optional(),\n phoneNumber: z.string().optional(),\n eventCategory: z.array(z.enum(EventCategory)).optional(),\n});\n\nexport const CreateHostProfileRequestSchema = z.object({\n businessName: z.string(),\n description: z.string().optional(),\n logoUrl: z.string().optional(),\n category: z.array(z.enum(EventCategory)).min(1),\n});\n\nexport const UpdateHostProfileRequestSchema = z.object({\n businessName: z.string().min(1).max(120).optional(),\n description: z.string().max(2000).optional(),\n logoUrl: z.string().optional(),\n category: z.array(z.enum(EventCategory)).min(1).optional(),\n businessRegNumber: z.string().max(64).optional(),\n taxId: z.string().max(64).optional(),\n});\n\nexport const CreateProducerProfileRequestSchema = z.object({\n companyName: z.string(),\n bio: z.string(),\n logoUrl: z.string().optional(),\n serviceCategoryIds: z.array(z.uuid()).optional(),\n serviceCategoryCodes: z.array(z.string().min(1).max(64)).optional(),\n equipmentItemIds: z.array(z.uuid()).optional(),\n equipmentItemCodes: z.array(z.string().min(1).max(64)).optional(),\n yearsExperience: z.number(),\n experienceLevel: z.enum(ProducerExperienceLevel),\n minFee: z.number(),\n maxFee: z.number(),\n isAvailable: z.boolean(),\n});\n\nexport const SetProfilePinSchema = z.object({\n pin: z\n .string()\n .trim()\n .regex(/^\\d{4,8}$/, 'pin must be 4-8 digits'),\n currentPin: z\n .string()\n .trim()\n .regex(/^\\d{4,8}$/, 'currentPin must be 4-8 digits')\n .optional(),\n});\n\nexport const RESERVED_DISPLAY_NAMES: ReadonlySet<string> = new Set([\n 'admin',\n 'support',\n 'livdot',\n 'host',\n 'producer',\n 'system',\n 'null',\n 'undefined',\n 'me',\n 'settings',\n 'viewer',\n 'auth',\n 'events',\n 'streaming',\n 'producers',\n 'marketplace',\n 'users',\n]);\n\n/** Handle constraints — see viewer-settings.md §3.1. */\nexport const DisplayNameSchema = z\n .string()\n .trim()\n .toLowerCase()\n .min(3, 'Display name must be at least 3 characters')\n .max(30, 'Display name must be at most 30 characters')\n .regex(/^[a-z0-9_]+$/, 'Display name may only contain lowercase letters, digits, and underscores')\n .refine((v) => !RESERVED_DISPLAY_NAMES.has(v), {\n message: 'This display name is reserved',\n });\n\nexport const UpdateViewerProfileRequestSchema = z\n .object({\n displayName: DisplayNameSchema,\n })\n .strict();\n\nexport const UpdateViewerCurrencyRequestSchema = z\n .object({\n preferredCurrency: z\n .string()\n .trim()\n .toUpperCase()\n .length(3)\n .regex(/^[A-Z]{3}$/),\n })\n .strict();\nconst USER_CATEGORY = z.enum([\n NotificationCategory.LIVE_ALERTS,\n NotificationCategory.RECOMMENDATIONS,\n NotificationCategory.EVENT_REMINDERS,\n]);\n\nexport const NotificationPreferenceItemSchema = z.object({\n category: USER_CATEGORY,\n enabled: z.boolean(),\n});\n\nexport const UpdateNotificationPreferencesRequestSchema = z\n .object({\n preferences: z\n .array(NotificationPreferenceItemSchema)\n .min(1)\n .max(10)\n .refine((items) => new Set(items.map((i) => i.category)).size === items.length, {\n message: 'Duplicate category in preferences',\n }),\n })\n .strict();\n\nexport const SendFeedbackRequestSchema = z\n .object({\n category: z.enum(FeedbackCategory),\n message: z.string().trim().min(10).max(2000),\n })\n .strict();\n\nexport const ViewerMeResponseSchema = z.object({\n id: z.uuid(),\n email: z.email(),\n emailVerified: z.boolean(),\n displayName: z.string().nullable(),\n avatarUrl: z.url().nullable(),\n roles: z.number().int(),\n preferredCurrency: z.string(),\n notificationsEnabledCount: z.number().int(),\n hasPushDevice: z.boolean(),\n});\n\nexport const NotificationPreferencesResponseSchema = z.object({\n preferences: z.record(USER_CATEGORY, z.boolean()),\n});\n\nexport const SendFeedbackResponseSchema = z.object({\n id: z.uuid(),\n});\n"]}
@@ -1,2 +0,0 @@
1
- import {b,f as f$1,a,e,c as c$1,g as g$1}from'./chunk-B7B7YFFC.mjs';import {a as a$1}from'./chunk-ASVBPXYH.mjs';import {h as h$1,g,k,b as b$1}from'./chunk-L4QDS3ET.mjs';import {z as z$1}from'zod';var J=[b.REJECTED,b.CANCELLED,b.CLOSED],P=[...J,b.IN_DISPUTE],$={[b.DRAFT]:[b.AWAITING_PRODUCER_RESPONSE,b.CANCELLED],[b.REQUESTED]:[b.AWAITING_PRODUCER_RESPONSE,b.CANCELLED],[b.AWAITING_PRODUCER_RESPONSE]:[b.IN_NEGOTIATION,b.ACCEPTED,b.REJECTED,b.CANCELLED],[b.IN_NEGOTIATION]:[b.ACCEPTED,b.REJECTED,b.CANCELLED],[b.ACCEPTED]:[b.AWAITING_ESCROW_FUNDING,b.CANCELLED],[b.AWAITING_ESCROW_FUNDING]:[b.CONFIRMED,b.CANCELLED],[b.CONFIRMED]:[b.IN_PROGRESS,b.AWAITING_PRODUCER_RECONFIRM,b.CANCELLED],[b.AWAITING_PRODUCER_RECONFIRM]:[b.CONFIRMED,b.CANCELLED],[b.IN_PROGRESS]:[b.SERVICE_COMPLETED,b.CANCELLED],[b.SERVICE_COMPLETED]:[b.CLOSED],[b.IN_DISPUTE]:[b.CLOSED],[b.REJECTED]:[],[b.CANCELLED]:[],[b.CLOSED]:[]},H={[`${b.DRAFT}->${b.AWAITING_PRODUCER_RESPONSE}`]:[f$1.HOST,f$1.SYSTEM],[`${b.DRAFT}->${b.CANCELLED}`]:[f$1.HOST],[`${b.REQUESTED}->${b.AWAITING_PRODUCER_RESPONSE}`]:[f$1.HOST,f$1.SYSTEM],[`${b.REQUESTED}->${b.CANCELLED}`]:[f$1.HOST],[`${b.AWAITING_PRODUCER_RESPONSE}->${b.IN_NEGOTIATION}`]:[f$1.PRODUCER],[`${b.AWAITING_PRODUCER_RESPONSE}->${b.ACCEPTED}`]:[f$1.PRODUCER],[`${b.AWAITING_PRODUCER_RESPONSE}->${b.REJECTED}`]:[f$1.PRODUCER],[`${b.AWAITING_PRODUCER_RESPONSE}->${b.CANCELLED}`]:[f$1.HOST,f$1.PRODUCER],[`${b.IN_NEGOTIATION}->${b.ACCEPTED}`]:[f$1.HOST,f$1.PRODUCER],[`${b.IN_NEGOTIATION}->${b.REJECTED}`]:[f$1.HOST,f$1.PRODUCER],[`${b.IN_NEGOTIATION}->${b.CANCELLED}`]:[f$1.HOST,f$1.PRODUCER],[`${b.ACCEPTED}->${b.AWAITING_ESCROW_FUNDING}`]:[f$1.HOST,f$1.SYSTEM],[`${b.ACCEPTED}->${b.CANCELLED}`]:[f$1.HOST,f$1.PRODUCER],[`${b.AWAITING_ESCROW_FUNDING}->${b.CONFIRMED}`]:[f$1.SYSTEM,f$1.ADMIN],[`${b.AWAITING_ESCROW_FUNDING}->${b.CANCELLED}`]:[f$1.HOST,f$1.PRODUCER,f$1.ADMIN],[`${b.CONFIRMED}->${b.IN_PROGRESS}`]:[f$1.HOST,f$1.PRODUCER,f$1.ADMIN],[`${b.CONFIRMED}->${b.AWAITING_PRODUCER_RECONFIRM}`]:[f$1.HOST,f$1.SYSTEM,f$1.ADMIN],[`${b.CONFIRMED}->${b.CANCELLED}`]:[f$1.HOST,f$1.PRODUCER,f$1.ADMIN],[`${b.AWAITING_PRODUCER_RECONFIRM}->${b.CONFIRMED}`]:[f$1.PRODUCER,f$1.ADMIN],[`${b.AWAITING_PRODUCER_RECONFIRM}->${b.CANCELLED}`]:[f$1.HOST,f$1.PRODUCER,f$1.ADMIN],[`${b.IN_PROGRESS}->${b.SERVICE_COMPLETED}`]:[f$1.PRODUCER,f$1.SYSTEM,f$1.ADMIN],[`${b.IN_PROGRESS}->${b.CANCELLED}`]:[f$1.HOST,f$1.ADMIN],[`${b.SERVICE_COMPLETED}->${b.CLOSED}`]:[f$1.HOST,f$1.ADMIN,f$1.SYSTEM],[`${b.IN_DISPUTE}->${b.CLOSED}`]:[f$1.ADMIN,f$1.HOST]},w=[b.REJECTED,b.CANCELLED,b.IN_DISPUTE];function F(n,a){return `${n}->${a}`}function W(n){let a=$[n]??[];return P.includes(n)?a:[...a,b.IN_DISPUTE]}function ge(n,a){return W(n).includes(a)}function z(n,a){return a===b.IN_DISPUTE&&!P.includes(n)?[f$1.HOST,f$1.PRODUCER]:H[F(n,a)]??[]}function Ee(n,a,b){return z(n,a).includes(b)}function Ie(n,a){return w.includes(a)}var Ae=z$1.object({origin:z$1.enum(a),eventId:z$1.uuid().optional(),producerId:z$1.uuid(),agreedAmount:z$1.number().min(0)}),Te=z$1.object({escrowReference:z$1.string()}),Ce=z$1.object({id:z$1.uuid(),eventId:z$1.uuid().optional(),hostId:z$1.uuid(),producerId:z$1.uuid(),quotedPrice:z$1.number(),currency:z$1.string(),scopeOfWork:z$1.record(z$1.string(),z$1.any()).optional(),requiredStartAt:z$1.iso.datetime(),requiredEndAt:z$1.iso.datetime(),bookingState:z$1.enum(b),paymentStatus:z$1.enum(e),escrowReference:z$1.string().optional(),completedAt:z$1.iso.datetime().optional(),createdAt:z$1.iso.datetime(),updatedAt:z$1.iso.datetime()}),De=z$1.object({title:z$1.string().max(255),description:z$1.string(),requiredDate:z$1.iso.datetime(),estimatedDurationMinutes:z$1.number().int().positive().optional(),location:z$1.string(),budgetRangeMin:z$1.number().optional(),budgetRangeMax:z$1.number().optional()}),Ne=z$1.object({id:z$1.uuid(),hostProfileId:z$1.uuid(),eventId:z$1.uuid().optional(),title:z$1.string(),description:z$1.string(),requiredDate:z$1.iso.datetime(),estimatedDurationMinutes:z$1.number().int().nullable().optional(),location:z$1.string(),budgetRangeMin:z$1.number().optional(),budgetRangeMax:z$1.number().optional(),state:z$1.enum(c$1),proposalCount:z$1.number(),createdAt:z$1.iso.datetime()});var c={ONSITE:"ONSITE",REMOTE:"REMOTE"},y={LOW:"LOW",MID:"MID",HIGH:"HIGH"};var v=z$1.record(z$1.string(),z$1.unknown()),Pe=z$1.object({producerId:z$1.uuid(),origin:z$1.enum(a),eventId:z$1.uuid().optional(),jobListingId:z$1.uuid().optional(),sourceIoiId:z$1.uuid().optional(),agreedAmount:z$1.coerce.number().nonnegative().optional(),scopeOfWork:z$1.string().max(5e3).optional()}).superRefine((n,a$1)=>{n.origin===a.EVENT_DIRECT&&!n.eventId&&a$1.addIssue({code:"custom",message:"eventId is required when origin is EVENT_DIRECT",path:["eventId"]}),n.origin===a.MARKETPLACE_DIRECT&&(n.eventId&&a$1.addIssue({code:"custom",message:"eventId must not be set when origin is MARKETPLACE_DIRECT",path:["eventId"]}),n.sourceIoiId&&a$1.addIssue({code:"custom",message:"sourceIoiId must not be set when origin is MARKETPLACE_DIRECT",path:["sourceIoiId"]})),n.origin===a.JOB_LISTING&&(n.sourceIoiId||a$1.addIssue({code:"custom",message:"sourceIoiId is required when origin is JOB_LISTING",path:["sourceIoiId"]}),n.eventId&&a$1.addIssue({code:"custom",message:"eventId must not be set when origin is JOB_LISTING",path:["eventId"]})),n.sourceIoiId&&n.origin!==a.JOB_LISTING&&a$1.addIssue({code:"custom",message:"sourceIoiId is only allowed when origin is JOB_LISTING",path:["sourceIoiId"]});}),K=z$1.object({id:z$1.uuid(),title:z$1.string(),state:z$1.string(),timezone:z$1.string(),scheduledStart:z$1.iso.datetime(),scheduledStartLocal:z$1.iso.datetime({local:true,offset:false}),scheduledEnd:z$1.iso.datetime(),scheduledEndLocal:z$1.iso.datetime({local:true,offset:false}),requiredStartAt:z$1.iso.datetime(),requiredEndAt:z$1.iso.datetime(),goLiveEligibleAt:z$1.iso.datetime().nullable()}),C=z$1.object({id:z$1.uuid(),eventId:z$1.uuid().nullable(),eventLinked:z$1.boolean(),hostProfileId:z$1.uuid(),producerProfileId:z$1.uuid(),origin:z$1.enum(a),jobListingId:z$1.uuid().nullable(),sourceIoiId:z$1.uuid().nullable(),state:z$1.enum(b),agreedAmount:h$1.nullable(),scopeOfWork:z$1.string().nullable(),role:z$1.string().nullable(),description:z$1.string().nullable(),responsibilities:z$1.string().nullable(),requirements:z$1.string().nullable(),location:z$1.enum(c).nullable(),notes:z$1.string().nullable(),createdAt:z$1.string(),updatedAt:z$1.string(),assignedEvent:K.nullable()}),ye=z$1.object({bookingId:z$1.uuid(),booking:C}),V=z$1.string().trim().min(5).max(500),ve=z$1.object({targetState:z$1.enum(b),reason:V.optional()}).superRefine((n,a)=>{(n.targetState===b.REJECTED||n.targetState===b.CANCELLED||n.targetState===b.IN_DISPUTE)&&n.reason===void 0&&a.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),_e=z$1.object({booking:C}),Be=z$1.object({notes:z$1.string().max(2e3).optional()}),je=z$1.object({notes:z$1.string().max(2e3).optional()}),Ue=z$1.object({booking:C,hostAcked:z$1.boolean(),producerAcked:z$1.boolean(),completed:z$1.boolean(),forced:z$1.boolean().optional()}),Q=(n,a)=>{if(n.eventId)return;n.eventTitle?.trim()||n.title?.trim()||a.addIssue({code:"custom",message:"eventTitle is required when eventId is not provided",path:["eventTitle"]});},D=(n,a)=>{n.requiredDateLocal!==void 0&&!n.timezone?.trim()&&a.addIssue({code:"custom",message:"timezone is required when requiredDateLocal is provided",path:["timezone"]});},N=z$1.object({eventTitle:z$1.string().min(1).max(200).optional(),title:z$1.string().min(1).max(200).optional(),description:z$1.string().min(1).max(5e3),responsibilities:z$1.string().min(1),requirements:z$1.string().min(1),role:z$1.string().min(1).max(120),requiredCount:z$1.coerce.number().int().min(1),requiredDateLocal:z$1.iso.datetime({local:true,offset:false}).optional(),timezone:z$1.string().min(1).optional(),requiredDate:z$1.iso.datetime().optional(),estimatedDurationMinutes:z$1.coerce.number().int().positive().optional(),location:z$1.enum(c),notes:z$1.string().max(2e3).optional(),compensation:z$1.coerce.number().nonnegative().optional(),attachments:v.optional(),eventId:z$1.uuid().optional()}),Y=N.superRefine(Q).superRefine(D),X=z$1.object({eventTitle:z$1.string().min(1).max(200).optional(),title:z$1.string().min(1).max(200).optional(),description:z$1.string().min(1).max(5e3),responsibilities:z$1.string().min(1),requirements:z$1.string().min(1),role:z$1.string().min(1).max(120),requiredCount:z$1.coerce.number().int().min(1),location:z$1.enum(c),eventId:z$1.uuid().optional()}),Z=X,Ge=N.partial().extend({saveAsDraft:z$1.boolean().optional().default(false)}).superRefine(D).superRefine((n,a)=>{if(n.saveAsDraft)return;let b=Y.safeParse(n);b.success||a.addIssue({code:"custom",message:b.error.issues.map(q=>q.message).join("; ")});}),qe=N.partial().superRefine(D),Je=z$1.object({...g.shape,location:z$1.enum(c).optional(),search:z$1.string().trim().min(2).max(100).optional(),roles:z$1.string().trim().min(1).max(500).optional(),requiredDateFrom:z$1.string().optional(),requiredDateTo:z$1.string().optional(),minCompensation:z$1.coerce.number().int().min(0).optional(),maxCompensation:z$1.coerce.number().int().min(0).optional(),compensationTier:z$1.enum(y).optional(),matchMyAvailability:z$1.enum(["true","false"]).optional().transform(n=>n==="true")}),$e=z$1.object({...g.shape,state:z$1.enum(c$1).optional(),search:z$1.string().trim().min(2).max(100).optional()}),He=Z.superRefine((n,a)=>{if(n.eventId)return;n.eventTitle?.trim()||n.title?.trim()||a.addIssue({code:"custom",message:"eventTitle is required for standalone job listings",path:["eventTitle"]});}),we=z$1.object({id:z$1.uuid(),state:z$1.literal("OPEN")}),Fe=z$1.object({id:z$1.uuid(),hostProfileId:z$1.uuid(),eventId:z$1.uuid().nullable(),title:z$1.string(),eventTitle:z$1.string().nullable(),notes:z$1.string().nullable(),description:z$1.string(),responsibilities:z$1.string(),requirements:z$1.string(),role:z$1.string(),requiredCount:z$1.number().int().min(1),requiredDate:z$1.string().nullable(),requiredDateLocal:z$1.string().nullable(),timezone:z$1.string().nullable(),estimatedDurationMinutes:z$1.number().int().nullable(),location:z$1.enum(c),compensation:h$1.nullable(),attachments:z$1.unknown().nullable(),state:z$1.enum(c$1),proposalCount:z$1.number().int(),cancelledAt:z$1.string().nullable(),cancelledReason:z$1.string().nullable(),createdAt:z$1.string(),updatedAt:z$1.string()}),We=z$1.object({reason:z$1.string().trim().min(5).max(500).optional()}),ze=z$1.object({id:z$1.uuid(),state:z$1.literal("CANCELLED"),cancelledAt:z$1.iso.datetime().nullable()}),Ke=z$1.object({id:z$1.uuid(),state:z$1.literal(c$1.SUSPENDED)}),Ve=z$1.object({id:z$1.uuid(),state:z$1.literal(c$1.OPEN)}),Qe=z$1.object({coverMessage:z$1.string().min(1).max(2e3).optional(),proposedAmount:z$1.coerce.number().nonnegative().optional(),availabilityNotes:z$1.string().max(2e3).optional(),attachments:v.optional()}),_=z$1.object({id:z$1.uuid(),jobListingId:z$1.uuid(),producerProfileId:z$1.uuid(),coverMessage:z$1.string().nullable(),proposedAmount:h$1.nullable(),availabilityNotes:z$1.string().nullable(),state:z$1.enum(a$1),resultingBookingId:z$1.uuid().nullable(),withdrawnAt:z$1.string().nullable(),selectedAt:z$1.string().nullable(),createdAt:z$1.string(),updatedAt:z$1.string()}),ee=_.extend({producerCompanyName:z$1.string().nullable()}),A={CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",PROPOSED_AMOUNT:"proposedAmount"},T={ASC:"asc",DESC:"desc"},Ye=z$1.object({...g.shape,jobListingId:z$1.uuid().optional(),state:z$1.enum(a$1).optional(),search:z$1.string().trim().min(2).max(100).optional(),sortBy:z$1.enum(A).default(A.CREATED_AT),sortOrder:z$1.enum(T).default(T.DESC)}),Xe=ee.extend({producerDisplayName:z$1.string(),producerAvatarUrl:z$1.url().nullable(),producerServiceCategoryLabels:z$1.array(z$1.string()),producerEquipmentLabels:z$1.array(z$1.string()),producerIsVerified:z$1.boolean(),jobListingTitle:z$1.string(),jobListingRole:z$1.string(),jobListingState:z$1.enum(c$1),jobListingLocation:z$1.enum(c),jobListingEventId:z$1.uuid().nullable(),jobListingEventTitle:z$1.string().nullable()}),Ze=z$1.object({...g.shape,jobListingId:z$1.uuid().optional(),state:z$1.enum(a$1).optional(),search:z$1.string().trim().min(2).max(100).optional(),sortBy:z$1.enum(A).default(A.CREATED_AT),sortOrder:z$1.enum(T).default(T.DESC)}),et=_.extend({hostBusinessName:z$1.string().nullable(),jobListingTitle:z$1.string(),jobListingRole:z$1.string(),jobListingState:z$1.enum(c$1),jobListingLocation:z$1.enum(c),jobListingEventId:z$1.uuid().nullable(),jobListingEventTitle:z$1.string().nullable(),jobListingRequiredDate:z$1.string().nullable(),jobListingCompensation:h$1.nullable()});var B={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var te=z$1.object({id:z$1.uuid(),bookingId:z$1.uuid(),hostProfileId:z$1.uuid(),producerProfileId:z$1.uuid(),createdAt:z$1.string(),updatedAt:z$1.string()}),oe=z$1.object({id:z$1.uuid(),url:z$1.string(),mimeType:z$1.string(),sizeBytes:z$1.number().int(),createdAt:z$1.string()}),h=z$1.object({id:z$1.uuid(),threadId:z$1.uuid(),senderUserId:z$1.uuid(),body:z$1.string(),sentAt:z$1.string(),deliveryStatus:z$1.enum(B),readAt:z$1.string().nullable(),attachments:z$1.array(oe)}),at=g,lt=z$1.object({messages:z$1.array(h),...k.shape}),ut=z$1.object({thread:te,messages:z$1.array(h),...k.shape}),ct=z$1.object({body:z$1.string().trim().max(5e3).optional().default(""),attachments:z$1.array(z$1.object({url:z$1.string().url(),mimeType:z$1.string().min(1).max(120),sizeBytes:z$1.number().int().positive()})).max(10).optional()}).refine(n=>n.body.length>0||(n.attachments?.length??0)>0,{message:"Either a non-empty body or at least one attachment is required",path:["body"]}),mt=z$1.object({message:h}),dt=z$1.object({url:z$1.url(),key:z$1.string().min(1),mimeType:z$1.string().min(1).max(120),sizeBytes:z$1.number().int().positive()}),pt=z$1.object({upToMessageId:z$1.uuid().optional()}),gt=z$1.object({markedCount:z$1.number().int().nonnegative()}),ne=z$1.object({threadId:z$1.uuid(),bookingId:z$1.uuid(),title:z$1.string(),lastMessagePreview:z$1.string().nullable(),lastMessageAt:z$1.string().nullable(),lastSenderUserId:z$1.uuid().nullable(),lastSenderDisplayName:z$1.string().nullable(),unreadCount:z$1.number().int().nonnegative(),bookingState:z$1.enum(b),producerProfileId:z$1.uuid(),producerDisplayName:z$1.string(),producerAvatarUrl:z$1.string().nullable(),hostProfileId:z$1.uuid(),hostDisplayName:z$1.string(),hostAvatarUrl:z$1.string().nullable(),counterpartyDisplayName:z$1.string(),counterpartyAvatarUrl:z$1.string().nullable(),counterpartyRole:z$1.enum(["HOST","PRODUCER"])}),Et=z$1.object({items:z$1.array(ne),...k.shape});var j=z$1.enum(["APPLICATIONS","UPCOMING","LIVE","COMPLETED","JOB_INVITES"]),ie=z$1.enum(["PENDING","SHORTLISTED","SELECTED","WITHDRAWN","REJECTED","CANCELLED","INVITED","NEGOTIATING","CONFIRMED","LIVE","COMPLETED","DISPUTED"]),re=z$1.enum(["IOI","BOOKING","ASSIGNMENT"]),Rt=z$1.object({tab:j,search:z$1.string().trim().min(2).max(100).optional(),...g.shape}),se=z$1.object({id:z$1.uuid(),kind:re,eventName:z$1.string(),date:z$1.string().nullable(),role:z$1.string(),payment:h$1.nullable(),status:ie,statusCode:z$1.string(),jobListingId:z$1.uuid().nullable(),bookingId:z$1.uuid().nullable(),ioiId:z$1.uuid().nullable(),eventId:z$1.uuid().nullable(),assignmentId:z$1.uuid().nullable().optional()}),At=z$1.object({tab:j,items:z$1.array(se),...k.shape}),Tt=z$1.object({applications:z$1.number().int().nonnegative(),upcoming:z$1.number().int().nonnegative(),live:z$1.number().int().nonnegative(),completed:z$1.number().int().nonnegative(),jobInvites:z$1.number().int().nonnegative()});var ae=z$1.object({id:z$1.string(),role:b$1}),L=z$1.object({reason:z$1.string().optional(),ipAddress:z$1.string().optional(),userAgent:z$1.string().optional(),traceId:z$1.string().optional()}),U=z$1.record(z$1.string(),z$1.unknown()),le=L.extend({beforeState:U.optional(),afterState:U.optional()}),ue=L.extend({messageId:z$1.string(),bodyPreview:z$1.string(),attachmentCount:z$1.number().int().nonnegative().optional()}),ce=L.extend({messageId:z$1.string(),attachmentId:z$1.string(),url:z$1.string(),mimeType:z$1.string(),sizeBytes:z$1.number().int().nonnegative()}),O={timestamp:z$1.string().datetime(),actor:ae};function S(n){return z$1.object({...O,action:z$1.literal(n),details:le})}var me=z$1.discriminatedUnion("action",[S(g$1.STATE_CHANGED),S(g$1.TERMS_MODIFIED),S(g$1.BOOKING_CREATED),S(g$1.BOOKING_COMPLETED),S(g$1.BOOKING_CANCELLED),S(g$1.BOOKING_ACCEPTED),S(g$1.BOOKING_REJECTED),z$1.object({...O,action:z$1.literal(g$1.MESSAGE_SENT),details:ue}),z$1.object({...O,action:z$1.literal(g$1.ATTACHMENT_ADDED),details:ce})]),Lt=z$1.object({items:z$1.array(me),...k.shape});var f={DRAFT:"DRAFT",INVITED:"INVITED",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",CANCELLED:"CANCELLED",EXPIRED:"EXPIRED"};var G=z$1.object({role:z$1.string().trim().min(1).max(120),responsibilities:z$1.string().trim().min(1).max(5e3),requirements:z$1.string().trim().min(1).max(5e3),compensation:h$1,location:z$1.enum(c),notes:z$1.string().trim().max(2e3).optional()}),vt=G.extend({producerId:z$1.uuid()}),_t=G.partial().refine(n=>Object.keys(n).length>0,{message:"At least one field is required"}),Bt=z$1.object({producerId:z$1.uuid(),role:z$1.string().trim().min(1).max(120).optional(),responsibilities:z$1.string().trim().min(1).max(5e3).optional(),requirements:z$1.string().trim().min(1).max(5e3).optional(),compensation:h$1.optional(),location:z$1.enum(c).optional(),notes:z$1.string().trim().max(2e3).optional()}),de=z$1.object({id:z$1.uuid(),companyName:z$1.string(),displayName:z$1.string().nullable(),avatarUrl:z$1.string().nullable(),producerIsVerified:z$1.boolean()}),x=z$1.object({id:z$1.uuid(),eventId:z$1.uuid(),hostId:z$1.uuid(),producerId:z$1.uuid(),role:z$1.string(),responsibilities:z$1.string(),requirements:z$1.string(),compensation:h$1,location:z$1.enum(c),notes:z$1.string().nullable(),state:z$1.enum(f),bookingId:z$1.uuid().nullable(),invitedAt:z$1.iso.datetime().nullable(),respondedAt:z$1.iso.datetime().nullable(),rejectReason:z$1.string().nullable(),createdAt:z$1.iso.datetime(),updatedAt:z$1.iso.datetime(),producer:de.optional(),eventTitle:z$1.string().optional(),eventScheduledStartLocal:z$1.iso.datetime({local:true,offset:false}).nullable().optional()}),jt=z$1.object({items:z$1.array(x)}),Ut=z$1.object({search:z$1.string().trim().min(1).max(100).optional(),role:z$1.string().trim().min(1).max(120).optional(),state:z$1.preprocess(n=>{if(!(n==null||n===""))return Array.isArray(n)?n.map(a=>String(a).trim()).filter(Boolean):String(n).split(",").map(a=>a.trim()).filter(Boolean)},z$1.array(z$1.enum(f)).min(1).optional())}),Gt=z$1.object({reason:z$1.string().trim().min(5).max(500)}),qt=z$1.object({assignment:x,bookingId:z$1.uuid()}),Jt=z$1.object({assignment:x,replacedBookingId:z$1.uuid()});export{ct as $,Ge as A,x as Aa,qe as B,jt as Ba,Je as C,Ut as Ca,$e as D,Gt as Da,He as E,qt as Ea,we as F,Jt as Fa,Fe as G,We as H,ze as I,Ke as J,Ve as K,Qe as L,_ as M,ee as N,A as O,T as P,Ye as Q,Xe as R,Ze as S,et as T,B as U,te as V,oe as W,h as X,at as Y,lt as Z,ut as _,J as a,mt as aa,$ as b,dt as ba,H as c,pt as ca,w as d,gt as da,F as e,ne as ea,W as f,Et as fa,ge as g,j as ga,z as h,ie as ha,Ee as i,re as ia,Ie as j,Rt as ja,Ae as k,se as ka,Te as l,At as la,Ce as m,Tt as ma,De as n,ae as na,Ne as o,L as oa,c as p,U as pa,y as q,le as qa,Pe as r,ue as ra,K as s,ce as sa,C as t,me as ta,ye as u,Lt as ua,ve as v,f as va,_e as w,vt as wa,Be as x,_t as xa,je as y,Bt as ya,Ue as z,de as za};//# sourceMappingURL=chunk-E6L4BMIP.mjs.map
2
- //# sourceMappingURL=chunk-E6L4BMIP.mjs.map