@livdot-tech/contracts 1.11.28 → 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.
- package/dist/booking/index.d.mts +59 -3
- package/dist/booking/index.d.ts +59 -3
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-2P4RID7B.mjs +2 -0
- package/dist/chunk-2P4RID7B.mjs.map +1 -0
- package/dist/chunk-WHTUXSF6.js +2 -0
- package/dist/chunk-WHTUXSF6.js.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-E6L4BMIP.mjs +0 -2
- package/dist/chunk-E6L4BMIP.mjs.map +0 -1
- package/dist/chunk-TDGWNGV5.js +0 -2
- package/dist/chunk-TDGWNGV5.js.map +0 -1
package/dist/booking/index.d.mts
CHANGED
|
@@ -963,11 +963,21 @@ declare const MarketplaceHiringThreadSchema: z.ZodObject<{
|
|
|
963
963
|
createdAt: z.ZodString;
|
|
964
964
|
updatedAt: z.ZodString;
|
|
965
965
|
}, z.core.$strip>;
|
|
966
|
+
/** Original upload name (sanitized server-side). Always present on API responses. */
|
|
967
|
+
declare const MarketplaceHiringThreadAttachmentFileNameSchema: z.ZodString;
|
|
968
|
+
declare const MarketplaceHiringThreadPendingAttachmentSchema: z.ZodObject<{
|
|
969
|
+
url: z.ZodString;
|
|
970
|
+
key: z.ZodString;
|
|
971
|
+
mimeType: z.ZodString;
|
|
972
|
+
sizeBytes: z.ZodNumber;
|
|
973
|
+
fileName: z.ZodString;
|
|
974
|
+
}, z.core.$strip>;
|
|
966
975
|
declare const MarketplaceHiringMessageAttachmentSchema: z.ZodObject<{
|
|
967
976
|
id: z.ZodUUID;
|
|
968
977
|
url: z.ZodString;
|
|
969
978
|
mimeType: z.ZodString;
|
|
970
979
|
sizeBytes: z.ZodNumber;
|
|
980
|
+
fileName: z.ZodString;
|
|
971
981
|
createdAt: z.ZodString;
|
|
972
982
|
}, z.core.$strip>;
|
|
973
983
|
declare const MarketplaceHiringMessageSchema: z.ZodObject<{
|
|
@@ -987,6 +997,7 @@ declare const MarketplaceHiringMessageSchema: z.ZodObject<{
|
|
|
987
997
|
url: z.ZodString;
|
|
988
998
|
mimeType: z.ZodString;
|
|
989
999
|
sizeBytes: z.ZodNumber;
|
|
1000
|
+
fileName: z.ZodString;
|
|
990
1001
|
createdAt: z.ZodString;
|
|
991
1002
|
}, z.core.$strip>>;
|
|
992
1003
|
}, z.core.$strip>;
|
|
@@ -1018,6 +1029,7 @@ declare const ListMarketplaceHiringThreadMessagesResponseSchema: z.ZodObject<{
|
|
|
1018
1029
|
url: z.ZodString;
|
|
1019
1030
|
mimeType: z.ZodString;
|
|
1020
1031
|
sizeBytes: z.ZodNumber;
|
|
1032
|
+
fileName: z.ZodString;
|
|
1021
1033
|
createdAt: z.ZodString;
|
|
1022
1034
|
}, z.core.$strip>>;
|
|
1023
1035
|
}, z.core.$strip>>;
|
|
@@ -1054,6 +1066,7 @@ declare const GetMarketplaceHiringThreadResponseSchema: z.ZodObject<{
|
|
|
1054
1066
|
url: z.ZodString;
|
|
1055
1067
|
mimeType: z.ZodString;
|
|
1056
1068
|
sizeBytes: z.ZodNumber;
|
|
1069
|
+
fileName: z.ZodString;
|
|
1057
1070
|
createdAt: z.ZodString;
|
|
1058
1071
|
}, z.core.$strip>>;
|
|
1059
1072
|
}, z.core.$strip>>;
|
|
@@ -1062,8 +1075,10 @@ declare const PostMarketplaceHiringThreadMessageRequestSchema: z.ZodObject<{
|
|
|
1062
1075
|
body: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1063
1076
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1064
1077
|
url: z.ZodString;
|
|
1078
|
+
key: z.ZodString;
|
|
1065
1079
|
mimeType: z.ZodString;
|
|
1066
1080
|
sizeBytes: z.ZodNumber;
|
|
1081
|
+
fileName: z.ZodString;
|
|
1067
1082
|
}, z.core.$strip>>>;
|
|
1068
1083
|
}, z.core.$strip>;
|
|
1069
1084
|
declare const PostMarketplaceHiringThreadMessageResponseSchema: z.ZodObject<{
|
|
@@ -1084,6 +1099,7 @@ declare const PostMarketplaceHiringThreadMessageResponseSchema: z.ZodObject<{
|
|
|
1084
1099
|
url: z.ZodString;
|
|
1085
1100
|
mimeType: z.ZodString;
|
|
1086
1101
|
sizeBytes: z.ZodNumber;
|
|
1102
|
+
fileName: z.ZodString;
|
|
1087
1103
|
createdAt: z.ZodString;
|
|
1088
1104
|
}, z.core.$strip>>;
|
|
1089
1105
|
}, z.core.$strip>;
|
|
@@ -1091,14 +1107,51 @@ declare const PostMarketplaceHiringThreadMessageResponseSchema: z.ZodObject<{
|
|
|
1091
1107
|
/**
|
|
1092
1108
|
* `POST /marketplace/bookings/:bookingId/thread/attachments`
|
|
1093
1109
|
* Multipart upload for hiring-thread chat (images, PDF, Word, MP4).
|
|
1094
|
-
* FE uploads first, then posts `{ url, mimeType, sizeBytes }`
|
|
1095
|
-
* `hiring_thread.message.post` (body optional when attachments present).
|
|
1110
|
+
* FE uploads first, then posts `{ url, key, mimeType, sizeBytes, fileName }`
|
|
1111
|
+
* via WS `hiring_thread.message.post` (body optional when attachments present).
|
|
1096
1112
|
*/
|
|
1097
1113
|
declare const UploadMarketplaceHiringThreadAttachmentResponseSchema: z.ZodObject<{
|
|
1098
1114
|
url: z.ZodURL;
|
|
1099
1115
|
key: z.ZodString;
|
|
1100
1116
|
mimeType: z.ZodString;
|
|
1101
1117
|
sizeBytes: z.ZodNumber;
|
|
1118
|
+
fileName: z.ZodString;
|
|
1119
|
+
}, z.core.$strip>;
|
|
1120
|
+
/**
|
|
1121
|
+
* `DELETE /marketplace/bookings/:bookingId/thread/attachments`
|
|
1122
|
+
* Drop a pending upload before the message is sent (composer trash).
|
|
1123
|
+
*/
|
|
1124
|
+
declare const DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema: z.ZodObject<{
|
|
1125
|
+
key: z.ZodString;
|
|
1126
|
+
}, z.core.$strip>;
|
|
1127
|
+
/**
|
|
1128
|
+
* `DELETE /marketplace/bookings/:bookingId/thread/messages/:messageId/attachments/:attachmentId`
|
|
1129
|
+
* Remove one attachment from a sent message (sender only).
|
|
1130
|
+
*/
|
|
1131
|
+
declare const DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema: z.ZodObject<{
|
|
1132
|
+
messageId: z.ZodUUID;
|
|
1133
|
+
messageDeleted: z.ZodBoolean;
|
|
1134
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
1135
|
+
id: z.ZodUUID;
|
|
1136
|
+
threadId: z.ZodUUID;
|
|
1137
|
+
senderUserId: z.ZodUUID;
|
|
1138
|
+
body: z.ZodString;
|
|
1139
|
+
sentAt: z.ZodString;
|
|
1140
|
+
deliveryStatus: z.ZodEnum<{
|
|
1141
|
+
readonly SENT: "SENT";
|
|
1142
|
+
readonly DELIVERED: "DELIVERED";
|
|
1143
|
+
readonly READ: "READ";
|
|
1144
|
+
}>;
|
|
1145
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
1146
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
1147
|
+
id: z.ZodUUID;
|
|
1148
|
+
url: z.ZodString;
|
|
1149
|
+
mimeType: z.ZodString;
|
|
1150
|
+
sizeBytes: z.ZodNumber;
|
|
1151
|
+
fileName: z.ZodString;
|
|
1152
|
+
createdAt: z.ZodString;
|
|
1153
|
+
}, z.core.$strip>>;
|
|
1154
|
+
}, z.core.$strip>>;
|
|
1102
1155
|
}, z.core.$strip>;
|
|
1103
1156
|
declare const MarkMarketplaceHiringThreadReadRequestSchema: z.ZodObject<{
|
|
1104
1157
|
upToMessageId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1204,6 +1257,9 @@ type MarkMarketplaceHiringThreadReadResponse = z.infer<typeof MarkMarketplaceHir
|
|
|
1204
1257
|
type MarketplaceHiringThreadInboxItem = z.infer<typeof MarketplaceHiringThreadInboxItemSchema>;
|
|
1205
1258
|
type ListMarketplaceHiringThreadsResponse = z.infer<typeof ListMarketplaceHiringThreadsResponseSchema>;
|
|
1206
1259
|
type UploadMarketplaceHiringThreadAttachmentResponse = z.infer<typeof UploadMarketplaceHiringThreadAttachmentResponseSchema>;
|
|
1260
|
+
type MarketplaceHiringThreadPendingAttachment = z.infer<typeof MarketplaceHiringThreadPendingAttachmentSchema>;
|
|
1261
|
+
type DeleteMarketplaceHiringThreadPendingAttachmentRequest = z.infer<typeof DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema>;
|
|
1262
|
+
type DeleteMarketplaceHiringThreadMessageAttachmentResponse = z.infer<typeof DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema>;
|
|
1207
1263
|
|
|
1208
1264
|
/**
|
|
1209
1265
|
* `POST /reviews` — booking participant rates the counterparty once
|
|
@@ -2204,4 +2260,4 @@ type AcceptEventCrewAssignmentResponse = z.infer<typeof AcceptEventCrewAssignmen
|
|
|
2204
2260
|
type ReplaceEventCrewAssignmentRequest = z.infer<typeof ReplaceEventCrewAssignmentRequestSchema>;
|
|
2205
2261
|
type ReplaceEventCrewAssignmentResponse = z.infer<typeof ReplaceEventCrewAssignmentResponseSchema>;
|
|
2206
2262
|
|
|
2207
|
-
export { type AcceptEventCrewAssignmentResponse, AcceptEventCrewAssignmentResponseSchema, type AdminBookingAuditEntry, AdminBookingAuditEntrySchema, type AdminBookingAuditResponse, AdminBookingAuditResponseSchema, BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingAuditAction, BookingAuditActorSchema, type BookingAuditAttachmentAddedDetails, BookingAuditAttachmentAddedDetailsSchema, type BookingAuditMessageSentDetails, BookingAuditMessageSentDetailsSchema, BookingAuditRequestMetadataSchema, BookingAuditSnapshotSchema, type BookingAuditStateTransitionDetails, BookingAuditStateTransitionDetailsSchema, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type CancelMarketplaceJobListingRequest, CancelMarketplaceJobListingRequestSchema, type CancelMarketplaceJobListingResponse, CancelMarketplaceJobListingResponseSchema, type CloseMarketplaceJobListingResponse, CloseMarketplaceJobListingResponseSchema, type CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateEventCrewAssignmentRequest, CreateEventCrewAssignmentRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, EventCrewAssignmentProducerSummarySchema, type EventCrewAssignmentResponse, EventCrewAssignmentResponseSchema, EventCrewAssignmentState, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, IoiState, JobListingCompensationTier, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListEventCrewAssignmentsQuery, ListEventCrewAssignmentsQuerySchema, type ListEventCrewAssignmentsResponse, ListEventCrewAssignmentsResponseSchema, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListHostMarketplaceJobListingsQuery, ListHostMarketplaceJobListingsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListProducerJobsQuery, ListProducerJobsQuerySchema, type ListProducerMarketplaceIndicationsQuery, ListProducerMarketplaceIndicationsQuerySchema, type ListProducerReviewsQuery, ListProducerReviewsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingAssignedEvent, MarketplaceBookingAssignedEventSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, type MarketplaceHiringThreadInboxItem, MarketplaceHiringThreadInboxItemSchema, MarketplaceHiringThreadSchema, type MarketplaceHostIndicationOfInterestInboxItem, MarketplaceHostIndicationOfInterestInboxItemSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceProducerIndicationOfInterestInboxItem, MarketplaceProducerIndicationOfInterestInboxItemSchema, type MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type OpenMarketplaceJobListingResponse, OpenMarketplaceJobListingResponseSchema, type PagedProducerReviewsResponse, PagedProducerReviewsResponseSchema, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerJobRow, type ProducerJobRowKind, ProducerJobRowKindSchema, ProducerJobRowSchema, type ProducerJobRowStatus, ProducerJobRowStatusSchema, type ProducerJobsTab, type ProducerJobsTabCountsResponse, ProducerJobsTabCountsResponseSchema, type ProducerJobsTabResponse, ProducerJobsTabResponseSchema, ProducerJobsTabSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type PublishMarketplaceJobListingResponse, PublishMarketplaceJobListingResponseSchema, type PublishReadyJobListing, PublishReadyJobListingSchema, type RejectEventCrewAssignmentRequest, RejectEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentRequest, ReplaceEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentResponse, ReplaceEventCrewAssignmentResponseSchema, SortOrder, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateEventCrewAssignmentRequest, UpdateEventCrewAssignmentRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, type UploadMarketplaceHiringThreadAttachmentResponse, UploadMarketplaceHiringThreadAttachmentResponseSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
|
2263
|
+
export { type AcceptEventCrewAssignmentResponse, AcceptEventCrewAssignmentResponseSchema, type AdminBookingAuditEntry, AdminBookingAuditEntrySchema, type AdminBookingAuditResponse, AdminBookingAuditResponseSchema, BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingAuditAction, BookingAuditActorSchema, type BookingAuditAttachmentAddedDetails, BookingAuditAttachmentAddedDetailsSchema, type BookingAuditMessageSentDetails, BookingAuditMessageSentDetailsSchema, BookingAuditRequestMetadataSchema, BookingAuditSnapshotSchema, type BookingAuditStateTransitionDetails, BookingAuditStateTransitionDetailsSchema, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type CancelMarketplaceJobListingRequest, CancelMarketplaceJobListingRequestSchema, type CancelMarketplaceJobListingResponse, CancelMarketplaceJobListingResponseSchema, type CloseMarketplaceJobListingResponse, CloseMarketplaceJobListingResponseSchema, type CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateEventCrewAssignmentRequest, CreateEventCrewAssignmentRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, type DeleteMarketplaceHiringThreadMessageAttachmentResponse, DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema, type DeleteMarketplaceHiringThreadPendingAttachmentRequest, DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema, EventCrewAssignmentProducerSummarySchema, type EventCrewAssignmentResponse, EventCrewAssignmentResponseSchema, EventCrewAssignmentState, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, IoiState, JobListingCompensationTier, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListEventCrewAssignmentsQuery, ListEventCrewAssignmentsQuerySchema, type ListEventCrewAssignmentsResponse, ListEventCrewAssignmentsResponseSchema, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListHostMarketplaceJobListingsQuery, ListHostMarketplaceJobListingsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListProducerJobsQuery, ListProducerJobsQuerySchema, type ListProducerMarketplaceIndicationsQuery, ListProducerMarketplaceIndicationsQuerySchema, type ListProducerReviewsQuery, ListProducerReviewsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingAssignedEvent, MarketplaceBookingAssignedEventSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, MarketplaceHiringThreadAttachmentFileNameSchema, type MarketplaceHiringThreadInboxItem, MarketplaceHiringThreadInboxItemSchema, type MarketplaceHiringThreadPendingAttachment, MarketplaceHiringThreadPendingAttachmentSchema, MarketplaceHiringThreadSchema, type MarketplaceHostIndicationOfInterestInboxItem, MarketplaceHostIndicationOfInterestInboxItemSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceProducerIndicationOfInterestInboxItem, MarketplaceProducerIndicationOfInterestInboxItemSchema, type MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type OpenMarketplaceJobListingResponse, OpenMarketplaceJobListingResponseSchema, type PagedProducerReviewsResponse, PagedProducerReviewsResponseSchema, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerJobRow, type ProducerJobRowKind, ProducerJobRowKindSchema, ProducerJobRowSchema, type ProducerJobRowStatus, ProducerJobRowStatusSchema, type ProducerJobsTab, type ProducerJobsTabCountsResponse, ProducerJobsTabCountsResponseSchema, type ProducerJobsTabResponse, ProducerJobsTabResponseSchema, ProducerJobsTabSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type PublishMarketplaceJobListingResponse, PublishMarketplaceJobListingResponseSchema, type PublishReadyJobListing, PublishReadyJobListingSchema, type RejectEventCrewAssignmentRequest, RejectEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentRequest, ReplaceEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentResponse, ReplaceEventCrewAssignmentResponseSchema, SortOrder, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateEventCrewAssignmentRequest, UpdateEventCrewAssignmentRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, type UploadMarketplaceHiringThreadAttachmentResponse, UploadMarketplaceHiringThreadAttachmentResponseSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
package/dist/booking/index.d.ts
CHANGED
|
@@ -963,11 +963,21 @@ declare const MarketplaceHiringThreadSchema: z.ZodObject<{
|
|
|
963
963
|
createdAt: z.ZodString;
|
|
964
964
|
updatedAt: z.ZodString;
|
|
965
965
|
}, z.core.$strip>;
|
|
966
|
+
/** Original upload name (sanitized server-side). Always present on API responses. */
|
|
967
|
+
declare const MarketplaceHiringThreadAttachmentFileNameSchema: z.ZodString;
|
|
968
|
+
declare const MarketplaceHiringThreadPendingAttachmentSchema: z.ZodObject<{
|
|
969
|
+
url: z.ZodString;
|
|
970
|
+
key: z.ZodString;
|
|
971
|
+
mimeType: z.ZodString;
|
|
972
|
+
sizeBytes: z.ZodNumber;
|
|
973
|
+
fileName: z.ZodString;
|
|
974
|
+
}, z.core.$strip>;
|
|
966
975
|
declare const MarketplaceHiringMessageAttachmentSchema: z.ZodObject<{
|
|
967
976
|
id: z.ZodUUID;
|
|
968
977
|
url: z.ZodString;
|
|
969
978
|
mimeType: z.ZodString;
|
|
970
979
|
sizeBytes: z.ZodNumber;
|
|
980
|
+
fileName: z.ZodString;
|
|
971
981
|
createdAt: z.ZodString;
|
|
972
982
|
}, z.core.$strip>;
|
|
973
983
|
declare const MarketplaceHiringMessageSchema: z.ZodObject<{
|
|
@@ -987,6 +997,7 @@ declare const MarketplaceHiringMessageSchema: z.ZodObject<{
|
|
|
987
997
|
url: z.ZodString;
|
|
988
998
|
mimeType: z.ZodString;
|
|
989
999
|
sizeBytes: z.ZodNumber;
|
|
1000
|
+
fileName: z.ZodString;
|
|
990
1001
|
createdAt: z.ZodString;
|
|
991
1002
|
}, z.core.$strip>>;
|
|
992
1003
|
}, z.core.$strip>;
|
|
@@ -1018,6 +1029,7 @@ declare const ListMarketplaceHiringThreadMessagesResponseSchema: z.ZodObject<{
|
|
|
1018
1029
|
url: z.ZodString;
|
|
1019
1030
|
mimeType: z.ZodString;
|
|
1020
1031
|
sizeBytes: z.ZodNumber;
|
|
1032
|
+
fileName: z.ZodString;
|
|
1021
1033
|
createdAt: z.ZodString;
|
|
1022
1034
|
}, z.core.$strip>>;
|
|
1023
1035
|
}, z.core.$strip>>;
|
|
@@ -1054,6 +1066,7 @@ declare const GetMarketplaceHiringThreadResponseSchema: z.ZodObject<{
|
|
|
1054
1066
|
url: z.ZodString;
|
|
1055
1067
|
mimeType: z.ZodString;
|
|
1056
1068
|
sizeBytes: z.ZodNumber;
|
|
1069
|
+
fileName: z.ZodString;
|
|
1057
1070
|
createdAt: z.ZodString;
|
|
1058
1071
|
}, z.core.$strip>>;
|
|
1059
1072
|
}, z.core.$strip>>;
|
|
@@ -1062,8 +1075,10 @@ declare const PostMarketplaceHiringThreadMessageRequestSchema: z.ZodObject<{
|
|
|
1062
1075
|
body: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1063
1076
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1064
1077
|
url: z.ZodString;
|
|
1078
|
+
key: z.ZodString;
|
|
1065
1079
|
mimeType: z.ZodString;
|
|
1066
1080
|
sizeBytes: z.ZodNumber;
|
|
1081
|
+
fileName: z.ZodString;
|
|
1067
1082
|
}, z.core.$strip>>>;
|
|
1068
1083
|
}, z.core.$strip>;
|
|
1069
1084
|
declare const PostMarketplaceHiringThreadMessageResponseSchema: z.ZodObject<{
|
|
@@ -1084,6 +1099,7 @@ declare const PostMarketplaceHiringThreadMessageResponseSchema: z.ZodObject<{
|
|
|
1084
1099
|
url: z.ZodString;
|
|
1085
1100
|
mimeType: z.ZodString;
|
|
1086
1101
|
sizeBytes: z.ZodNumber;
|
|
1102
|
+
fileName: z.ZodString;
|
|
1087
1103
|
createdAt: z.ZodString;
|
|
1088
1104
|
}, z.core.$strip>>;
|
|
1089
1105
|
}, z.core.$strip>;
|
|
@@ -1091,14 +1107,51 @@ declare const PostMarketplaceHiringThreadMessageResponseSchema: z.ZodObject<{
|
|
|
1091
1107
|
/**
|
|
1092
1108
|
* `POST /marketplace/bookings/:bookingId/thread/attachments`
|
|
1093
1109
|
* Multipart upload for hiring-thread chat (images, PDF, Word, MP4).
|
|
1094
|
-
* FE uploads first, then posts `{ url, mimeType, sizeBytes }`
|
|
1095
|
-
* `hiring_thread.message.post` (body optional when attachments present).
|
|
1110
|
+
* FE uploads first, then posts `{ url, key, mimeType, sizeBytes, fileName }`
|
|
1111
|
+
* via WS `hiring_thread.message.post` (body optional when attachments present).
|
|
1096
1112
|
*/
|
|
1097
1113
|
declare const UploadMarketplaceHiringThreadAttachmentResponseSchema: z.ZodObject<{
|
|
1098
1114
|
url: z.ZodURL;
|
|
1099
1115
|
key: z.ZodString;
|
|
1100
1116
|
mimeType: z.ZodString;
|
|
1101
1117
|
sizeBytes: z.ZodNumber;
|
|
1118
|
+
fileName: z.ZodString;
|
|
1119
|
+
}, z.core.$strip>;
|
|
1120
|
+
/**
|
|
1121
|
+
* `DELETE /marketplace/bookings/:bookingId/thread/attachments`
|
|
1122
|
+
* Drop a pending upload before the message is sent (composer trash).
|
|
1123
|
+
*/
|
|
1124
|
+
declare const DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema: z.ZodObject<{
|
|
1125
|
+
key: z.ZodString;
|
|
1126
|
+
}, z.core.$strip>;
|
|
1127
|
+
/**
|
|
1128
|
+
* `DELETE /marketplace/bookings/:bookingId/thread/messages/:messageId/attachments/:attachmentId`
|
|
1129
|
+
* Remove one attachment from a sent message (sender only).
|
|
1130
|
+
*/
|
|
1131
|
+
declare const DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema: z.ZodObject<{
|
|
1132
|
+
messageId: z.ZodUUID;
|
|
1133
|
+
messageDeleted: z.ZodBoolean;
|
|
1134
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
1135
|
+
id: z.ZodUUID;
|
|
1136
|
+
threadId: z.ZodUUID;
|
|
1137
|
+
senderUserId: z.ZodUUID;
|
|
1138
|
+
body: z.ZodString;
|
|
1139
|
+
sentAt: z.ZodString;
|
|
1140
|
+
deliveryStatus: z.ZodEnum<{
|
|
1141
|
+
readonly SENT: "SENT";
|
|
1142
|
+
readonly DELIVERED: "DELIVERED";
|
|
1143
|
+
readonly READ: "READ";
|
|
1144
|
+
}>;
|
|
1145
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
1146
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
1147
|
+
id: z.ZodUUID;
|
|
1148
|
+
url: z.ZodString;
|
|
1149
|
+
mimeType: z.ZodString;
|
|
1150
|
+
sizeBytes: z.ZodNumber;
|
|
1151
|
+
fileName: z.ZodString;
|
|
1152
|
+
createdAt: z.ZodString;
|
|
1153
|
+
}, z.core.$strip>>;
|
|
1154
|
+
}, z.core.$strip>>;
|
|
1102
1155
|
}, z.core.$strip>;
|
|
1103
1156
|
declare const MarkMarketplaceHiringThreadReadRequestSchema: z.ZodObject<{
|
|
1104
1157
|
upToMessageId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1204,6 +1257,9 @@ type MarkMarketplaceHiringThreadReadResponse = z.infer<typeof MarkMarketplaceHir
|
|
|
1204
1257
|
type MarketplaceHiringThreadInboxItem = z.infer<typeof MarketplaceHiringThreadInboxItemSchema>;
|
|
1205
1258
|
type ListMarketplaceHiringThreadsResponse = z.infer<typeof ListMarketplaceHiringThreadsResponseSchema>;
|
|
1206
1259
|
type UploadMarketplaceHiringThreadAttachmentResponse = z.infer<typeof UploadMarketplaceHiringThreadAttachmentResponseSchema>;
|
|
1260
|
+
type MarketplaceHiringThreadPendingAttachment = z.infer<typeof MarketplaceHiringThreadPendingAttachmentSchema>;
|
|
1261
|
+
type DeleteMarketplaceHiringThreadPendingAttachmentRequest = z.infer<typeof DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema>;
|
|
1262
|
+
type DeleteMarketplaceHiringThreadMessageAttachmentResponse = z.infer<typeof DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema>;
|
|
1207
1263
|
|
|
1208
1264
|
/**
|
|
1209
1265
|
* `POST /reviews` — booking participant rates the counterparty once
|
|
@@ -2204,4 +2260,4 @@ type AcceptEventCrewAssignmentResponse = z.infer<typeof AcceptEventCrewAssignmen
|
|
|
2204
2260
|
type ReplaceEventCrewAssignmentRequest = z.infer<typeof ReplaceEventCrewAssignmentRequestSchema>;
|
|
2205
2261
|
type ReplaceEventCrewAssignmentResponse = z.infer<typeof ReplaceEventCrewAssignmentResponseSchema>;
|
|
2206
2262
|
|
|
2207
|
-
export { type AcceptEventCrewAssignmentResponse, AcceptEventCrewAssignmentResponseSchema, type AdminBookingAuditEntry, AdminBookingAuditEntrySchema, type AdminBookingAuditResponse, AdminBookingAuditResponseSchema, BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingAuditAction, BookingAuditActorSchema, type BookingAuditAttachmentAddedDetails, BookingAuditAttachmentAddedDetailsSchema, type BookingAuditMessageSentDetails, BookingAuditMessageSentDetailsSchema, BookingAuditRequestMetadataSchema, BookingAuditSnapshotSchema, type BookingAuditStateTransitionDetails, BookingAuditStateTransitionDetailsSchema, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type CancelMarketplaceJobListingRequest, CancelMarketplaceJobListingRequestSchema, type CancelMarketplaceJobListingResponse, CancelMarketplaceJobListingResponseSchema, type CloseMarketplaceJobListingResponse, CloseMarketplaceJobListingResponseSchema, type CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateEventCrewAssignmentRequest, CreateEventCrewAssignmentRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, EventCrewAssignmentProducerSummarySchema, type EventCrewAssignmentResponse, EventCrewAssignmentResponseSchema, EventCrewAssignmentState, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, IoiState, JobListingCompensationTier, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListEventCrewAssignmentsQuery, ListEventCrewAssignmentsQuerySchema, type ListEventCrewAssignmentsResponse, ListEventCrewAssignmentsResponseSchema, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListHostMarketplaceJobListingsQuery, ListHostMarketplaceJobListingsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListProducerJobsQuery, ListProducerJobsQuerySchema, type ListProducerMarketplaceIndicationsQuery, ListProducerMarketplaceIndicationsQuerySchema, type ListProducerReviewsQuery, ListProducerReviewsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingAssignedEvent, MarketplaceBookingAssignedEventSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, type MarketplaceHiringThreadInboxItem, MarketplaceHiringThreadInboxItemSchema, MarketplaceHiringThreadSchema, type MarketplaceHostIndicationOfInterestInboxItem, MarketplaceHostIndicationOfInterestInboxItemSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceProducerIndicationOfInterestInboxItem, MarketplaceProducerIndicationOfInterestInboxItemSchema, type MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type OpenMarketplaceJobListingResponse, OpenMarketplaceJobListingResponseSchema, type PagedProducerReviewsResponse, PagedProducerReviewsResponseSchema, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerJobRow, type ProducerJobRowKind, ProducerJobRowKindSchema, ProducerJobRowSchema, type ProducerJobRowStatus, ProducerJobRowStatusSchema, type ProducerJobsTab, type ProducerJobsTabCountsResponse, ProducerJobsTabCountsResponseSchema, type ProducerJobsTabResponse, ProducerJobsTabResponseSchema, ProducerJobsTabSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type PublishMarketplaceJobListingResponse, PublishMarketplaceJobListingResponseSchema, type PublishReadyJobListing, PublishReadyJobListingSchema, type RejectEventCrewAssignmentRequest, RejectEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentRequest, ReplaceEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentResponse, ReplaceEventCrewAssignmentResponseSchema, SortOrder, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateEventCrewAssignmentRequest, UpdateEventCrewAssignmentRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, type UploadMarketplaceHiringThreadAttachmentResponse, UploadMarketplaceHiringThreadAttachmentResponseSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
|
2263
|
+
export { type AcceptEventCrewAssignmentResponse, AcceptEventCrewAssignmentResponseSchema, type AdminBookingAuditEntry, AdminBookingAuditEntrySchema, type AdminBookingAuditResponse, AdminBookingAuditResponseSchema, BOOKING_TERMINAL_STATES, BOOKING_TRANSITION_ACTORS, BOOKING_TRANSITION_TARGETS_REQUIRING_REASON, BookingAuditAction, BookingAuditActorSchema, type BookingAuditAttachmentAddedDetails, BookingAuditAttachmentAddedDetailsSchema, type BookingAuditMessageSentDetails, BookingAuditMessageSentDetailsSchema, BookingAuditRequestMetadataSchema, BookingAuditSnapshotSchema, type BookingAuditStateTransitionDetails, BookingAuditStateTransitionDetailsSchema, BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, BookingTransitionActor, type BookingTransitionKey, type CancelMarketplaceJobListingRequest, CancelMarketplaceJobListingRequestSchema, type CancelMarketplaceJobListingResponse, CancelMarketplaceJobListingResponseSchema, type CloseMarketplaceJobListingResponse, CloseMarketplaceJobListingResponseSchema, type CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateEventCrewAssignmentRequest, CreateEventCrewAssignmentRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, type DeleteMarketplaceHiringThreadMessageAttachmentResponse, DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema, type DeleteMarketplaceHiringThreadPendingAttachmentRequest, DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema, EventCrewAssignmentProducerSummarySchema, type EventCrewAssignmentResponse, EventCrewAssignmentResponseSchema, EventCrewAssignmentState, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, IoiState, JobListingCompensationTier, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListEventCrewAssignmentsQuery, ListEventCrewAssignmentsQuerySchema, type ListEventCrewAssignmentsResponse, ListEventCrewAssignmentsResponseSchema, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListHostMarketplaceJobListingsQuery, ListHostMarketplaceJobListingsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListProducerJobsQuery, ListProducerJobsQuerySchema, type ListProducerMarketplaceIndicationsQuery, ListProducerMarketplaceIndicationsQuerySchema, type ListProducerReviewsQuery, ListProducerReviewsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, type MarketplaceBookingAssignedEvent, MarketplaceBookingAssignedEventSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceHiringMessage, MarketplaceHiringMessageAttachmentSchema, MarketplaceHiringMessageSchema, type MarketplaceHiringThread, MarketplaceHiringThreadAttachmentFileNameSchema, type MarketplaceHiringThreadInboxItem, MarketplaceHiringThreadInboxItemSchema, type MarketplaceHiringThreadPendingAttachment, MarketplaceHiringThreadPendingAttachmentSchema, MarketplaceHiringThreadSchema, type MarketplaceHostIndicationOfInterestInboxItem, MarketplaceHostIndicationOfInterestInboxItemSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceProducerIndicationOfInterestInboxItem, MarketplaceProducerIndicationOfInterestInboxItemSchema, type MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type OpenMarketplaceJobListingResponse, OpenMarketplaceJobListingResponseSchema, type PagedProducerReviewsResponse, PagedProducerReviewsResponseSchema, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerJobRow, type ProducerJobRowKind, ProducerJobRowKindSchema, ProducerJobRowSchema, type ProducerJobRowStatus, ProducerJobRowStatusSchema, type ProducerJobsTab, type ProducerJobsTabCountsResponse, ProducerJobsTabCountsResponseSchema, type ProducerJobsTabResponse, ProducerJobsTabResponseSchema, ProducerJobsTabSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type PublishMarketplaceJobListingResponse, PublishMarketplaceJobListingResponseSchema, type PublishReadyJobListing, PublishReadyJobListingSchema, type RejectEventCrewAssignmentRequest, RejectEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentRequest, ReplaceEventCrewAssignmentRequestSchema, type ReplaceEventCrewAssignmentResponse, ReplaceEventCrewAssignmentResponseSchema, SortOrder, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateEventCrewAssignmentRequest, UpdateEventCrewAssignmentRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, type UploadMarketplaceHiringThreadAttachmentResponse, UploadMarketplaceHiringThreadAttachmentResponseSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
package/dist/booking/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkTDGWNGV5_js=require('../chunk-TDGWNGV5.js'),chunkFG6EV3WQ_js=require('../chunk-FG6EV3WQ.js');require('../chunk-EAKBQ5VD.js');var chunk72SD46VJ_js=require('../chunk-72SD46VJ.js');require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"AcceptEventCrewAssignmentResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Ea}});Object.defineProperty(exports,"AdminBookingAuditEntrySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ta}});Object.defineProperty(exports,"AdminBookingAuditResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ua}});Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkTDGWNGV5_js.a}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkTDGWNGV5_js.c}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkTDGWNGV5_js.d}});Object.defineProperty(exports,"BookingAuditActorSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.na}});Object.defineProperty(exports,"BookingAuditAttachmentAddedDetailsSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.sa}});Object.defineProperty(exports,"BookingAuditMessageSentDetailsSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ra}});Object.defineProperty(exports,"BookingAuditRequestMetadataSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.oa}});Object.defineProperty(exports,"BookingAuditSnapshotSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.pa}});Object.defineProperty(exports,"BookingAuditStateTransitionDetailsSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.qa}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.m}});Object.defineProperty(exports,"CancelMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.H}});Object.defineProperty(exports,"CancelMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.I}});Object.defineProperty(exports,"CloseMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.J}});Object.defineProperty(exports,"CompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.x}});Object.defineProperty(exports,"CompleteMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.z}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.l}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.k}});Object.defineProperty(exports,"CreateEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.wa}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.n}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.r}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.u}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.A}});Object.defineProperty(exports,"EventCrewAssignmentProducerSummarySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.za}});Object.defineProperty(exports,"EventCrewAssignmentResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Aa}});Object.defineProperty(exports,"EventCrewAssignmentState",{enumerable:true,get:function(){return chunkTDGWNGV5_js.va}});Object.defineProperty(exports,"ForceCompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.y}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js._}});Object.defineProperty(exports,"HostIndicationOfInterestSortBy",{enumerable:true,get:function(){return chunkTDGWNGV5_js.O}});Object.defineProperty(exports,"JobListingCompensationTier",{enumerable:true,get:function(){return chunkTDGWNGV5_js.q}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.o}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkTDGWNGV5_js.p}});Object.defineProperty(exports,"ListEventCrewAssignmentsQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Ca}});Object.defineProperty(exports,"ListEventCrewAssignmentsResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Ba}});Object.defineProperty(exports,"ListHostMarketplaceIndicationsQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Q}});Object.defineProperty(exports,"ListHostMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.D}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Y}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Z}});Object.defineProperty(exports,"ListMarketplaceHiringThreadsResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.fa}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.C}});Object.defineProperty(exports,"ListProducerJobsQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ja}});Object.defineProperty(exports,"ListProducerMarketplaceIndicationsQuerySchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.S}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ca}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.da}});Object.defineProperty(exports,"MarketplaceBookingAssignedEventSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.s}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.t}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.W}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.X}});Object.defineProperty(exports,"MarketplaceHiringThreadInboxItemSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ea}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.V}});Object.defineProperty(exports,"MarketplaceHostIndicationOfInterestInboxItemSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.R}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.N}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.M}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.G}});Object.defineProperty(exports,"MarketplaceProducerIndicationOfInterestInboxItemSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.T}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkTDGWNGV5_js.U}});Object.defineProperty(exports,"OpenMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.K}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.$}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.aa}});Object.defineProperty(exports,"ProducerJobRowKindSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ia}});Object.defineProperty(exports,"ProducerJobRowSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ka}});Object.defineProperty(exports,"ProducerJobRowStatusSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ha}});Object.defineProperty(exports,"ProducerJobsTabCountsResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ma}});Object.defineProperty(exports,"ProducerJobsTabResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.la}});Object.defineProperty(exports,"ProducerJobsTabSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ga}});Object.defineProperty(exports,"PublishMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.F}});Object.defineProperty(exports,"PublishReadyJobListingSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.E}});Object.defineProperty(exports,"RejectEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Da}});Object.defineProperty(exports,"ReplaceEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ya}});Object.defineProperty(exports,"ReplaceEventCrewAssignmentResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.Fa}});Object.defineProperty(exports,"SortOrder",{enumerable:true,get:function(){return chunkTDGWNGV5_js.P}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.L}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.v}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.w}});Object.defineProperty(exports,"UpdateEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.xa}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.B}});Object.defineProperty(exports,"UploadMarketplaceHiringThreadAttachmentResponseSchema",{enumerable:true,get:function(){return chunkTDGWNGV5_js.ba}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkTDGWNGV5_js.b}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkTDGWNGV5_js.e}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkTDGWNGV5_js.j}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkTDGWNGV5_js.i}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkTDGWNGV5_js.f}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkTDGWNGV5_js.h}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkTDGWNGV5_js.g}});Object.defineProperty(exports,"BookingAuditAction",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.g}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.e}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.f}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.d}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.c}});Object.defineProperty(exports,"CreateMarketplaceReviewRequestSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.a}});Object.defineProperty(exports,"ListProducerReviewsQuerySchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.d}});Object.defineProperty(exports,"MarketplaceReviewResponseSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.b}});Object.defineProperty(exports,"PagedProducerReviewsResponseSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.e}});Object.defineProperty(exports,"ProducerRecentReviewSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.c}});//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';var chunkWHTUXSF6_js=require('../chunk-WHTUXSF6.js'),chunkFG6EV3WQ_js=require('../chunk-FG6EV3WQ.js');require('../chunk-EAKBQ5VD.js');var chunk72SD46VJ_js=require('../chunk-72SD46VJ.js');require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"AcceptEventCrewAssignmentResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ia}});Object.defineProperty(exports,"AdminBookingAuditEntrySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.xa}});Object.defineProperty(exports,"AdminBookingAuditResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ya}});Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkWHTUXSF6_js.a}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkWHTUXSF6_js.c}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkWHTUXSF6_js.d}});Object.defineProperty(exports,"BookingAuditActorSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ra}});Object.defineProperty(exports,"BookingAuditAttachmentAddedDetailsSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.wa}});Object.defineProperty(exports,"BookingAuditMessageSentDetailsSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.va}});Object.defineProperty(exports,"BookingAuditRequestMetadataSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.sa}});Object.defineProperty(exports,"BookingAuditSnapshotSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ta}});Object.defineProperty(exports,"BookingAuditStateTransitionDetailsSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ua}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.m}});Object.defineProperty(exports,"CancelMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.H}});Object.defineProperty(exports,"CancelMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.I}});Object.defineProperty(exports,"CloseMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.J}});Object.defineProperty(exports,"CompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.x}});Object.defineProperty(exports,"CompleteMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.z}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.l}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.k}});Object.defineProperty(exports,"CreateEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Aa}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.n}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.r}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.u}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.A}});Object.defineProperty(exports,"DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.fa}});Object.defineProperty(exports,"DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ea}});Object.defineProperty(exports,"EventCrewAssignmentProducerSummarySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Da}});Object.defineProperty(exports,"EventCrewAssignmentResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ea}});Object.defineProperty(exports,"EventCrewAssignmentState",{enumerable:true,get:function(){return chunkWHTUXSF6_js.za}});Object.defineProperty(exports,"ForceCompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.y}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.aa}});Object.defineProperty(exports,"HostIndicationOfInterestSortBy",{enumerable:true,get:function(){return chunkWHTUXSF6_js.O}});Object.defineProperty(exports,"JobListingCompensationTier",{enumerable:true,get:function(){return chunkWHTUXSF6_js.q}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.o}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkWHTUXSF6_js.p}});Object.defineProperty(exports,"ListEventCrewAssignmentsQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ga}});Object.defineProperty(exports,"ListEventCrewAssignmentsResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Fa}});Object.defineProperty(exports,"ListHostMarketplaceIndicationsQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Q}});Object.defineProperty(exports,"ListHostMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.D}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js._}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.$}});Object.defineProperty(exports,"ListMarketplaceHiringThreadsResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ja}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.C}});Object.defineProperty(exports,"ListProducerJobsQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.na}});Object.defineProperty(exports,"ListProducerMarketplaceIndicationsQuerySchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.S}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ga}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ha}});Object.defineProperty(exports,"MarketplaceBookingAssignedEventSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.s}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.t}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Y}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Z}});Object.defineProperty(exports,"MarketplaceHiringThreadAttachmentFileNameSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.W}});Object.defineProperty(exports,"MarketplaceHiringThreadInboxItemSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ia}});Object.defineProperty(exports,"MarketplaceHiringThreadPendingAttachmentSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.X}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.V}});Object.defineProperty(exports,"MarketplaceHostIndicationOfInterestInboxItemSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.R}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.N}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.M}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.G}});Object.defineProperty(exports,"MarketplaceProducerIndicationOfInterestInboxItemSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.T}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkWHTUXSF6_js.U}});Object.defineProperty(exports,"OpenMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.K}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ba}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ca}});Object.defineProperty(exports,"ProducerJobRowKindSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ma}});Object.defineProperty(exports,"ProducerJobRowSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.oa}});Object.defineProperty(exports,"ProducerJobRowStatusSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.la}});Object.defineProperty(exports,"ProducerJobsTabCountsResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.qa}});Object.defineProperty(exports,"ProducerJobsTabResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.pa}});Object.defineProperty(exports,"ProducerJobsTabSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.ka}});Object.defineProperty(exports,"PublishMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.F}});Object.defineProperty(exports,"PublishReadyJobListingSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.E}});Object.defineProperty(exports,"RejectEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ha}});Object.defineProperty(exports,"ReplaceEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ca}});Object.defineProperty(exports,"ReplaceEventCrewAssignmentResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ja}});Object.defineProperty(exports,"SortOrder",{enumerable:true,get:function(){return chunkWHTUXSF6_js.P}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.L}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.v}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.w}});Object.defineProperty(exports,"UpdateEventCrewAssignmentRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.Ba}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.B}});Object.defineProperty(exports,"UploadMarketplaceHiringThreadAttachmentResponseSchema",{enumerable:true,get:function(){return chunkWHTUXSF6_js.da}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkWHTUXSF6_js.b}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkWHTUXSF6_js.e}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkWHTUXSF6_js.j}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkWHTUXSF6_js.i}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkWHTUXSF6_js.f}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkWHTUXSF6_js.h}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkWHTUXSF6_js.g}});Object.defineProperty(exports,"BookingAuditAction",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.g}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.e}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.f}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.d}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkFG6EV3WQ_js.c}});Object.defineProperty(exports,"CreateMarketplaceReviewRequestSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.a}});Object.defineProperty(exports,"ListProducerReviewsQuerySchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.d}});Object.defineProperty(exports,"MarketplaceReviewResponseSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.b}});Object.defineProperty(exports,"PagedProducerReviewsResponseSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.e}});Object.defineProperty(exports,"ProducerRecentReviewSchema",{enumerable:true,get:function(){return chunk72SD46VJ_js.c}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/booking/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Ia as AcceptEventCrewAssignmentResponseSchema,xa as AdminBookingAuditEntrySchema,ya as AdminBookingAuditResponseSchema,a as BOOKING_TERMINAL_STATES,c as BOOKING_TRANSITION_ACTORS,d as BOOKING_TRANSITION_TARGETS_REQUIRING_REASON,ra as BookingAuditActorSchema,wa as BookingAuditAttachmentAddedDetailsSchema,va as BookingAuditMessageSentDetailsSchema,sa as BookingAuditRequestMetadataSchema,ta as BookingAuditSnapshotSchema,ua as BookingAuditStateTransitionDetailsSchema,m as BookingResponseSchema,H as CancelMarketplaceJobListingRequestSchema,I as CancelMarketplaceJobListingResponseSchema,J as CloseMarketplaceJobListingResponseSchema,x as CompleteMarketplaceBookingRequestSchema,z as CompleteMarketplaceBookingResponseSchema,l as ConfirmBookingRequestSchema,k as CreateBookingRequestSchema,Aa as CreateEventCrewAssignmentRequestSchema,n as CreateJobListingRequestSchema,r as CreateMarketplaceBookingRequestSchema,u as CreateMarketplaceBookingResponseSchema,A as CreateMarketplaceJobListingRequestSchema,fa as DeleteMarketplaceHiringThreadMessageAttachmentResponseSchema,ea as DeleteMarketplaceHiringThreadPendingAttachmentRequestSchema,Da as EventCrewAssignmentProducerSummarySchema,Ea as EventCrewAssignmentResponseSchema,za as EventCrewAssignmentState,y as ForceCompleteMarketplaceBookingRequestSchema,aa as GetMarketplaceHiringThreadResponseSchema,O as HostIndicationOfInterestSortBy,q as JobListingCompensationTier,o as JobListingResponseSchema,p as JobLocation,Ga as ListEventCrewAssignmentsQuerySchema,Fa as ListEventCrewAssignmentsResponseSchema,Q as ListHostMarketplaceIndicationsQuerySchema,D as ListHostMarketplaceJobListingsQuerySchema,_ as ListMarketplaceHiringThreadMessagesQuerySchema,$ as ListMarketplaceHiringThreadMessagesResponseSchema,ja as ListMarketplaceHiringThreadsResponseSchema,C as ListMarketplaceJobListingsQuerySchema,na as ListProducerJobsQuerySchema,S as ListProducerMarketplaceIndicationsQuerySchema,ga as MarkMarketplaceHiringThreadReadRequestSchema,ha as MarkMarketplaceHiringThreadReadResponseSchema,s as MarketplaceBookingAssignedEventSchema,t as MarketplaceBookingResponseSchema,Y as MarketplaceHiringMessageAttachmentSchema,Z as MarketplaceHiringMessageSchema,W as MarketplaceHiringThreadAttachmentFileNameSchema,ia as MarketplaceHiringThreadInboxItemSchema,X as MarketplaceHiringThreadPendingAttachmentSchema,V as MarketplaceHiringThreadSchema,R as MarketplaceHostIndicationOfInterestInboxItemSchema,N as MarketplaceIndicationOfInterestHostItemSchema,M as MarketplaceIndicationOfInterestResponseSchema,G as MarketplaceJobListingResponseSchema,T as MarketplaceProducerIndicationOfInterestInboxItemSchema,U as MessageDeliveryStatus,K as OpenMarketplaceJobListingResponseSchema,ba as PostMarketplaceHiringThreadMessageRequestSchema,ca as PostMarketplaceHiringThreadMessageResponseSchema,ma as ProducerJobRowKindSchema,oa as ProducerJobRowSchema,la as ProducerJobRowStatusSchema,qa as ProducerJobsTabCountsResponseSchema,pa as ProducerJobsTabResponseSchema,ka as ProducerJobsTabSchema,F as PublishMarketplaceJobListingResponseSchema,E as PublishReadyJobListingSchema,Ha as RejectEventCrewAssignmentRequestSchema,Ca as ReplaceEventCrewAssignmentRequestSchema,Ja as ReplaceEventCrewAssignmentResponseSchema,P as SortOrder,L as SubmitMarketplaceIndicationOfInterestRequestSchema,v as TransitionMarketplaceBookingRequestSchema,w as TransitionMarketplaceBookingResponseSchema,Ba as UpdateEventCrewAssignmentRequestSchema,B as UpdateMarketplaceJobListingRequestSchema,da as UploadMarketplaceHiringThreadAttachmentResponseSchema,b as VALID_BOOKING_TRANSITIONS,e as bookingTransitionKey,j as bookingTransitionRequiresReason,i as canActorPerformBookingTransition,f as getAllowedBookingTargetStates,h as getBookingTransitionActors,g as isValidBookingTransition}from'../chunk-2P4RID7B.mjs';export{g as BookingAuditAction,a as BookingOrigin,e as BookingPaymentStatus,b as BookingState,f as BookingTransitionActor,d as IoiState,c as JobListingState}from'../chunk-B7B7YFFC.mjs';import'../chunk-ASVBPXYH.mjs';export{a as CreateMarketplaceReviewRequestSchema,d as ListProducerReviewsQuerySchema,b as MarketplaceReviewResponseSchema,e as PagedProducerReviewsResponseSchema,c as ProducerRecentReviewSchema}from'../chunk-IIVGG46P.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
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 as k$1,b as b$1}from'./chunk-L4QDS3ET.mjs';import {z as z$1}from'zod';var $=[b.REJECTED,b.CANCELLED,b.CLOSED],y=[...$,b.IN_DISPUTE],H={[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]:[]},w={[`${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]},F=[b.REJECTED,b.CANCELLED,b.IN_DISPUTE];function W(n,a){return `${n}->${a}`}function z(n){let a=H[n]??[];return y.includes(n)?a:[...a,b.IN_DISPUTE]}function Ie(n,a){return z(n).includes(a)}function K(n,a){return a===b.IN_DISPUTE&&!y.includes(n)?[f$1.HOST,f$1.PRODUCER]:w[W(n,a)]??[]}function be(n,a,b){return K(n,a).includes(b)}function Se(n,a){return F.includes(a)}var Ce=z$1.object({origin:z$1.enum(a),eventId:z$1.uuid().optional(),producerId:z$1.uuid(),agreedAmount:z$1.number().min(0)}),De=z$1.object({escrowReference:z$1.string()}),he=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()}),Ne=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()}),Oe=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"},v={LOW:"LOW",MID:"MID",HIGH:"HIGH"};var _=z$1.record(z$1.string(),z$1.unknown()),ve=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"]});}),V=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()}),D=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:V.nullable()}),_e=z$1.object({bookingId:z$1.uuid(),booking:D}),Q=z$1.string().trim().min(5).max(500),Be=z$1.object({targetState:z$1.enum(b),reason:Q.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"]});}),je=z$1.object({booking:D}),Ue=z$1.object({notes:z$1.string().max(2e3).optional()}),Ge=z$1.object({notes:z$1.string().max(2e3).optional()}),qe=z$1.object({booking:D,hostAcked:z$1.boolean(),producerAcked:z$1.boolean(),completed:z$1.boolean(),forced:z$1.boolean().optional()}),Y=(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"]});},h=(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:_.optional(),eventId:z$1.uuid().optional()}),X=N.superRefine(Y).superRefine(h),Z=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()}),ee=Z,Je=N.partial().extend({saveAsDraft:z$1.boolean().optional().default(false)}).superRefine(h).superRefine((n,a)=>{if(n.saveAsDraft)return;let b=X.safeParse(n);b.success||a.addIssue({code:"custom",message:b.error.issues.map(J=>J.message).join("; ")});}),$e=N.partial().superRefine(h),He=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(v).optional(),matchMyAvailability:z$1.enum(["true","false"]).optional().transform(n=>n==="true")}),we=z$1.object({...g.shape,state:z$1.enum(c$1).optional(),search:z$1.string().trim().min(2).max(100).optional()}),Fe=ee.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")}),ze=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()}),Ke=z$1.object({reason:z$1.string().trim().min(5).max(500).optional()}),Ve=z$1.object({id:z$1.uuid(),state:z$1.literal("CANCELLED"),cancelledAt:z$1.iso.datetime().nullable()}),Qe=z$1.object({id:z$1.uuid(),state:z$1.literal(c$1.SUSPENDED)}),Ye=z$1.object({id:z$1.uuid(),state:z$1.literal(c$1.OPEN)}),Xe=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:_.optional()}),B=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()}),te=B.extend({producerCompanyName:z$1.string().nullable()}),A={CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",PROPOSED_AMOUNT:"proposedAmount"},T={ASC:"asc",DESC:"desc"},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=te.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()}),tt=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)}),ot=B.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 j={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var oe=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()}),O=z$1.string().trim().min(1).max(255),ne=z$1.object({url:z$1.string().url(),key:z$1.string().min(1),mimeType:z$1.string().min(1).max(120),sizeBytes:z$1.number().int().positive(),fileName:O}),ie=z$1.object({id:z$1.uuid(),url:z$1.string(),mimeType:z$1.string(),sizeBytes:z$1.number().int(),fileName:O,createdAt:z$1.string()}),C=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(j),readAt:z$1.string().nullable(),attachments:z$1.array(ie)}),ut=g,ct=z$1.object({messages:z$1.array(C),...k$1.shape}),mt=z$1.object({thread:oe,messages:z$1.array(C),...k$1.shape}),dt=z$1.object({body:z$1.string().trim().max(5e3).optional().default(""),attachments:z$1.array(ne).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"]}),pt=z$1.object({message:C}),gt=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(),fileName:O}),Et=z$1.object({key:z$1.string().min(1)}),It=z$1.object({messageId:z$1.uuid(),messageDeleted:z$1.boolean(),message:C.nullable()}),bt=z$1.object({upToMessageId:z$1.uuid().optional()}),St=z$1.object({markedCount:z$1.number().int().nonnegative()}),re=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"])}),Rt=z$1.object({items:z$1.array(re),...k$1.shape});var U=z$1.enum(["APPLICATIONS","UPCOMING","LIVE","COMPLETED","JOB_INVITES"]),se=z$1.enum(["PENDING","SHORTLISTED","SELECTED","WITHDRAWN","REJECTED","CANCELLED","INVITED","NEGOTIATING","CONFIRMED","LIVE","COMPLETED","DISPUTED"]),ae=z$1.enum(["IOI","BOOKING","ASSIGNMENT"]),Dt=z$1.object({tab:U,search:z$1.string().trim().min(2).max(100).optional(),...g.shape}),le=z$1.object({id:z$1.uuid(),kind:ae,eventName:z$1.string(),date:z$1.string().nullable(),role:z$1.string(),payment:h$1.nullable(),status:se,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()}),ht=z$1.object({tab:U,items:z$1.array(le),...k$1.shape}),Nt=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 ue=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()}),G=z$1.record(z$1.string(),z$1.unknown()),ce=L.extend({beforeState:G.optional(),afterState:G.optional()}),me=L.extend({messageId:z$1.string(),bodyPreview:z$1.string(),attachmentCount:z$1.number().int().nonnegative().optional()}),de=L.extend({messageId:z$1.string(),attachmentId:z$1.string(),url:z$1.string(),mimeType:z$1.string(),sizeBytes:z$1.number().int().nonnegative()}),x={timestamp:z$1.string().datetime(),actor:ue};function S(n){return z$1.object({...x,action:z$1.literal(n),details:ce})}var pe=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({...x,action:z$1.literal(g$1.MESSAGE_SENT),details:me}),z$1.object({...x,action:z$1.literal(g$1.ATTACHMENT_ADDED),details:de})]),Mt=z$1.object({items:z$1.array(pe),...k$1.shape});var f={DRAFT:"DRAFT",INVITED:"INVITED",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",CANCELLED:"CANCELLED",EXPIRED:"EXPIRED"};var q=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()}),Ut=q.extend({producerId:z$1.uuid()}),Gt=q.partial().refine(n=>Object.keys(n).length>0,{message:"At least one field is required"}),qt=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()}),ge=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()}),k=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:ge.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(k)}),$t=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())}),Ht=z$1.object({reason:z$1.string().trim().min(5).max(500)}),wt=z$1.object({assignment:k,bookingId:z$1.uuid()}),Ft=z$1.object({assignment:k,replacedBookingId:z$1.uuid()});export{ct as $,Je as A,Ut as Aa,$e as B,Gt as Ba,He as C,qt as Ca,we as D,ge as Da,Fe as E,k as Ea,We as F,Jt as Fa,ze as G,$t as Ga,Ke as H,Ht as Ha,Ve as I,wt as Ia,Qe as J,Ft as Ja,Ye as K,Xe as L,B as M,te as N,A as O,T as P,Ze as Q,et as R,tt as S,ot as T,j as U,oe as V,O as W,ne as X,ie as Y,C as Z,ut as _,$ as a,mt as aa,H as b,dt as ba,w as c,pt as ca,F as d,gt as da,W as e,Et as ea,z as f,It as fa,Ie as g,bt as ga,K as h,St as ha,be as i,re as ia,Se as j,Rt as ja,Ce as k,U as ka,De as l,se as la,he as m,ae as ma,Ne as n,Dt as na,Oe as o,le as oa,c as p,ht as pa,v as q,Nt as qa,ve as r,ue as ra,V as s,L as sa,D as t,G as ta,_e as u,ce as ua,Be as v,me as va,je as w,de as wa,Ue as x,pe as xa,Ge as y,Mt as ya,qe as z,f as za};//# sourceMappingURL=chunk-2P4RID7B.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-2P4RID7B.mjs.map
|