@livdot-tech/contracts 1.9.6 → 1.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/booking/index.d.mts +60 -15
- package/dist/booking/index.d.ts +60 -15
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-ASVBPXYH.mjs +2 -0
- package/dist/chunk-ASVBPXYH.mjs.map +1 -0
- package/dist/chunk-EAKBQ5VD.js +2 -0
- package/dist/chunk-EAKBQ5VD.js.map +1 -0
- package/dist/chunk-F4MRVOPL.js +2 -0
- package/dist/chunk-F4MRVOPL.js.map +1 -0
- package/dist/chunk-YDJOTD7W.mjs +2 -0
- package/dist/chunk-YDJOTD7W.mjs.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/dist/index.mjs.map +1 -1
- package/dist/joblisting/index.d.mts +1 -0
- package/dist/joblisting/index.d.ts +1 -0
- package/dist/joblisting/index.js +1 -1
- package/dist/joblisting/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BE2FRYLH.js +0 -2
- package/dist/chunk-BE2FRYLH.js.map +0 -1
- package/dist/chunk-GAZT5E62.mjs +0 -2
- package/dist/chunk-GAZT5E62.mjs.map +0 -1
- package/dist/chunk-GXIRTCDK.mjs +0 -2
- package/dist/chunk-GXIRTCDK.mjs.map +0 -1
- package/dist/chunk-L72M5DCH.js +0 -2
- package/dist/chunk-L72M5DCH.js.map +0 -1
package/dist/booking/index.d.mts
CHANGED
|
@@ -23,6 +23,7 @@ declare const BookingState: {
|
|
|
23
23
|
};
|
|
24
24
|
type BookingState = (typeof BookingState)[keyof typeof BookingState];
|
|
25
25
|
declare const JobListingState: {
|
|
26
|
+
readonly DRAFT: "DRAFT";
|
|
26
27
|
readonly OPEN: "OPEN";
|
|
27
28
|
readonly SUSPENDED: "SUSPENDED";
|
|
28
29
|
readonly CLOSED: "CLOSED";
|
|
@@ -31,9 +32,11 @@ declare const JobListingState: {
|
|
|
31
32
|
type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];
|
|
32
33
|
declare const IoiState: {
|
|
33
34
|
readonly OPEN: "OPEN";
|
|
35
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
34
36
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
35
37
|
readonly SELECTED: "SELECTED";
|
|
36
38
|
readonly REJECTED: "REJECTED";
|
|
39
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
37
40
|
};
|
|
38
41
|
type IoiState = (typeof IoiState)[keyof typeof IoiState];
|
|
39
42
|
/**
|
|
@@ -159,6 +162,7 @@ declare const JobListingResponseSchema: z.ZodObject<{
|
|
|
159
162
|
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
160
163
|
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
161
164
|
state: z.ZodEnum<{
|
|
165
|
+
readonly DRAFT: "DRAFT";
|
|
162
166
|
readonly OPEN: "OPEN";
|
|
163
167
|
readonly SUSPENDED: "SUSPENDED";
|
|
164
168
|
readonly CLOSED: "CLOSED";
|
|
@@ -180,9 +184,11 @@ declare const IndicationOfInterestResponseSchema: z.ZodObject<{
|
|
|
180
184
|
proposedAmount: z.ZodOptional<z.ZodNumber>;
|
|
181
185
|
state: z.ZodEnum<{
|
|
182
186
|
readonly OPEN: "OPEN";
|
|
187
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
183
188
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
184
189
|
readonly SELECTED: "SELECTED";
|
|
185
190
|
readonly REJECTED: "REJECTED";
|
|
191
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
186
192
|
}>;
|
|
187
193
|
createdAt: z.ZodISODateTime;
|
|
188
194
|
}, z.core.$strip>;
|
|
@@ -386,23 +392,24 @@ declare const CompleteMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
386
392
|
completed: z.ZodBoolean;
|
|
387
393
|
forced: z.ZodOptional<z.ZodBoolean>;
|
|
388
394
|
}, z.core.$strip>;
|
|
389
|
-
/** `POST /marketplace/job-listings` */
|
|
395
|
+
/** `POST /marketplace/job-listings` — publish immediately unless `saveAsDraft` */
|
|
390
396
|
declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
391
|
-
title: z.ZodString
|
|
392
|
-
description: z.ZodString
|
|
393
|
-
responsibilities: z.ZodString
|
|
394
|
-
requirements: z.ZodString
|
|
395
|
-
role: z.ZodString
|
|
396
|
-
requiredDate: z.ZodOptional<z.ZodISODateTime
|
|
397
|
-
estimatedDurationMinutes: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
398
|
-
location: z.ZodEnum<{
|
|
397
|
+
title: z.ZodOptional<z.ZodString>;
|
|
398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
399
|
+
responsibilities: z.ZodOptional<z.ZodString>;
|
|
400
|
+
requirements: z.ZodOptional<z.ZodString>;
|
|
401
|
+
role: z.ZodOptional<z.ZodString>;
|
|
402
|
+
requiredDate: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
403
|
+
estimatedDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
404
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
399
405
|
readonly ONSITE: "ONSITE";
|
|
400
406
|
readonly REMOTE: "REMOTE";
|
|
401
|
-
}
|
|
402
|
-
notes: z.ZodOptional<z.ZodString
|
|
403
|
-
compensation: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
404
|
-
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
405
|
-
eventId: z.ZodOptional<z.ZodUUID
|
|
407
|
+
}>>;
|
|
408
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
409
|
+
compensation: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
410
|
+
attachments: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
411
|
+
eventId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
412
|
+
saveAsDraft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
406
413
|
}, z.core.$strip>;
|
|
407
414
|
declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
408
415
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -429,6 +436,35 @@ declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
|
429
436
|
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
430
437
|
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
431
438
|
}, z.core.$strip>;
|
|
439
|
+
/** `GET /marketplace/job-listings/mine` (host) */
|
|
440
|
+
declare const ListHostMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
441
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
442
|
+
readonly DRAFT: "DRAFT";
|
|
443
|
+
readonly OPEN: "OPEN";
|
|
444
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
445
|
+
readonly CLOSED: "CLOSED";
|
|
446
|
+
readonly CANCELLED: "CANCELLED";
|
|
447
|
+
}>>;
|
|
448
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
449
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
/** Required persisted fields before a DRAFT job listing can be published */
|
|
452
|
+
declare const PublishReadyJobListingSchema: z.ZodObject<{
|
|
453
|
+
title: z.ZodString;
|
|
454
|
+
description: z.ZodString;
|
|
455
|
+
responsibilities: z.ZodString;
|
|
456
|
+
requirements: z.ZodString;
|
|
457
|
+
role: z.ZodString;
|
|
458
|
+
location: z.ZodEnum<{
|
|
459
|
+
readonly ONSITE: "ONSITE";
|
|
460
|
+
readonly REMOTE: "REMOTE";
|
|
461
|
+
}>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
/** `POST /marketplace/job-listings/:id/publish` (host owner) */
|
|
464
|
+
declare const PublishMarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
465
|
+
id: z.ZodUUID;
|
|
466
|
+
state: z.ZodLiteral<"OPEN">;
|
|
467
|
+
}, z.core.$strip>;
|
|
432
468
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
433
469
|
id: z.ZodUUID;
|
|
434
470
|
hostProfileId: z.ZodUUID;
|
|
@@ -448,6 +484,7 @@ declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
|
448
484
|
compensation: z.ZodNullable<z.ZodNumber>;
|
|
449
485
|
attachments: z.ZodNullable<z.ZodUnknown>;
|
|
450
486
|
state: z.ZodEnum<{
|
|
487
|
+
readonly DRAFT: "DRAFT";
|
|
451
488
|
readonly OPEN: "OPEN";
|
|
452
489
|
readonly SUSPENDED: "SUSPENDED";
|
|
453
490
|
readonly CLOSED: "CLOSED";
|
|
@@ -488,6 +525,7 @@ declare const MarketplaceIndicationOfInterestResponseSchema: z.ZodObject<{
|
|
|
488
525
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
489
526
|
readonly SELECTED: "SELECTED";
|
|
490
527
|
readonly REJECTED: "REJECTED";
|
|
528
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
491
529
|
}>;
|
|
492
530
|
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
493
531
|
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
@@ -509,6 +547,7 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
509
547
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
510
548
|
readonly SELECTED: "SELECTED";
|
|
511
549
|
readonly REJECTED: "REJECTED";
|
|
550
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
512
551
|
}>;
|
|
513
552
|
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
514
553
|
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
@@ -535,6 +574,7 @@ declare const ListHostMarketplaceIndicationsQuerySchema: z.ZodObject<{
|
|
|
535
574
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
536
575
|
readonly SELECTED: "SELECTED";
|
|
537
576
|
readonly REJECTED: "REJECTED";
|
|
577
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
538
578
|
}>>;
|
|
539
579
|
search: z.ZodOptional<z.ZodString>;
|
|
540
580
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
@@ -563,6 +603,7 @@ declare const MarketplaceHostIndicationOfInterestInboxItemSchema: z.ZodObject<{
|
|
|
563
603
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
564
604
|
readonly SELECTED: "SELECTED";
|
|
565
605
|
readonly REJECTED: "REJECTED";
|
|
606
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
566
607
|
}>;
|
|
567
608
|
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
568
609
|
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
@@ -576,6 +617,7 @@ declare const MarketplaceHostIndicationOfInterestInboxItemSchema: z.ZodObject<{
|
|
|
576
617
|
jobListingTitle: z.ZodString;
|
|
577
618
|
jobListingRole: z.ZodString;
|
|
578
619
|
jobListingState: z.ZodEnum<{
|
|
620
|
+
readonly DRAFT: "DRAFT";
|
|
579
621
|
readonly OPEN: "OPEN";
|
|
580
622
|
readonly SUSPENDED: "SUSPENDED";
|
|
581
623
|
readonly CLOSED: "CLOSED";
|
|
@@ -594,7 +636,10 @@ type MarketplaceBookingResponse = z.infer<typeof MarketplaceBookingResponseSchem
|
|
|
594
636
|
type CreateMarketplaceJobListingRequest = z.infer<typeof CreateMarketplaceJobListingRequestSchema>;
|
|
595
637
|
type UpdateMarketplaceJobListingRequest = z.infer<typeof UpdateMarketplaceJobListingRequestSchema>;
|
|
596
638
|
type ListMarketplaceJobListingsQuery = z.infer<typeof ListMarketplaceJobListingsQuerySchema>;
|
|
639
|
+
type ListHostMarketplaceJobListingsQuery = z.infer<typeof ListHostMarketplaceJobListingsQuerySchema>;
|
|
597
640
|
type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingResponseSchema>;
|
|
641
|
+
type PublishMarketplaceJobListingResponse = z.infer<typeof PublishMarketplaceJobListingResponseSchema>;
|
|
642
|
+
type PublishReadyJobListing = z.infer<typeof PublishReadyJobListingSchema>;
|
|
598
643
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
599
644
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
600
645
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
@@ -1328,4 +1373,4 @@ type BookingAuditAttachmentAddedDetails = z.infer<typeof BookingAuditAttachmentA
|
|
|
1328
1373
|
type AdminBookingAuditEntry = z.infer<typeof AdminBookingAuditEntrySchema>;
|
|
1329
1374
|
type AdminBookingAuditResponse = z.infer<typeof AdminBookingAuditResponseSchema>;
|
|
1330
1375
|
|
|
1331
|
-
export { 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 CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, 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 MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerRecentReview, ProducerRecentReviewSchema, SortOrder, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
|
1376
|
+
export { 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 CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListHostMarketplaceJobListingsQuery, ListHostMarketplaceJobListingsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, 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 MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type PublishMarketplaceJobListingResponse, PublishMarketplaceJobListingResponseSchema, type PublishReadyJobListing, PublishReadyJobListingSchema, SortOrder, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
package/dist/booking/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare const BookingState: {
|
|
|
23
23
|
};
|
|
24
24
|
type BookingState = (typeof BookingState)[keyof typeof BookingState];
|
|
25
25
|
declare const JobListingState: {
|
|
26
|
+
readonly DRAFT: "DRAFT";
|
|
26
27
|
readonly OPEN: "OPEN";
|
|
27
28
|
readonly SUSPENDED: "SUSPENDED";
|
|
28
29
|
readonly CLOSED: "CLOSED";
|
|
@@ -31,9 +32,11 @@ declare const JobListingState: {
|
|
|
31
32
|
type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];
|
|
32
33
|
declare const IoiState: {
|
|
33
34
|
readonly OPEN: "OPEN";
|
|
35
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
34
36
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
35
37
|
readonly SELECTED: "SELECTED";
|
|
36
38
|
readonly REJECTED: "REJECTED";
|
|
39
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
37
40
|
};
|
|
38
41
|
type IoiState = (typeof IoiState)[keyof typeof IoiState];
|
|
39
42
|
/**
|
|
@@ -159,6 +162,7 @@ declare const JobListingResponseSchema: z.ZodObject<{
|
|
|
159
162
|
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
160
163
|
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
161
164
|
state: z.ZodEnum<{
|
|
165
|
+
readonly DRAFT: "DRAFT";
|
|
162
166
|
readonly OPEN: "OPEN";
|
|
163
167
|
readonly SUSPENDED: "SUSPENDED";
|
|
164
168
|
readonly CLOSED: "CLOSED";
|
|
@@ -180,9 +184,11 @@ declare const IndicationOfInterestResponseSchema: z.ZodObject<{
|
|
|
180
184
|
proposedAmount: z.ZodOptional<z.ZodNumber>;
|
|
181
185
|
state: z.ZodEnum<{
|
|
182
186
|
readonly OPEN: "OPEN";
|
|
187
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
183
188
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
184
189
|
readonly SELECTED: "SELECTED";
|
|
185
190
|
readonly REJECTED: "REJECTED";
|
|
191
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
186
192
|
}>;
|
|
187
193
|
createdAt: z.ZodISODateTime;
|
|
188
194
|
}, z.core.$strip>;
|
|
@@ -386,23 +392,24 @@ declare const CompleteMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
386
392
|
completed: z.ZodBoolean;
|
|
387
393
|
forced: z.ZodOptional<z.ZodBoolean>;
|
|
388
394
|
}, z.core.$strip>;
|
|
389
|
-
/** `POST /marketplace/job-listings` */
|
|
395
|
+
/** `POST /marketplace/job-listings` — publish immediately unless `saveAsDraft` */
|
|
390
396
|
declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
391
|
-
title: z.ZodString
|
|
392
|
-
description: z.ZodString
|
|
393
|
-
responsibilities: z.ZodString
|
|
394
|
-
requirements: z.ZodString
|
|
395
|
-
role: z.ZodString
|
|
396
|
-
requiredDate: z.ZodOptional<z.ZodISODateTime
|
|
397
|
-
estimatedDurationMinutes: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
398
|
-
location: z.ZodEnum<{
|
|
397
|
+
title: z.ZodOptional<z.ZodString>;
|
|
398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
399
|
+
responsibilities: z.ZodOptional<z.ZodString>;
|
|
400
|
+
requirements: z.ZodOptional<z.ZodString>;
|
|
401
|
+
role: z.ZodOptional<z.ZodString>;
|
|
402
|
+
requiredDate: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
403
|
+
estimatedDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
404
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
399
405
|
readonly ONSITE: "ONSITE";
|
|
400
406
|
readonly REMOTE: "REMOTE";
|
|
401
|
-
}
|
|
402
|
-
notes: z.ZodOptional<z.ZodString
|
|
403
|
-
compensation: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
404
|
-
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
405
|
-
eventId: z.ZodOptional<z.ZodUUID
|
|
407
|
+
}>>;
|
|
408
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
409
|
+
compensation: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
410
|
+
attachments: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
411
|
+
eventId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
412
|
+
saveAsDraft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
406
413
|
}, z.core.$strip>;
|
|
407
414
|
declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
408
415
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -429,6 +436,35 @@ declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
|
429
436
|
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
430
437
|
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
431
438
|
}, z.core.$strip>;
|
|
439
|
+
/** `GET /marketplace/job-listings/mine` (host) */
|
|
440
|
+
declare const ListHostMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
441
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
442
|
+
readonly DRAFT: "DRAFT";
|
|
443
|
+
readonly OPEN: "OPEN";
|
|
444
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
445
|
+
readonly CLOSED: "CLOSED";
|
|
446
|
+
readonly CANCELLED: "CANCELLED";
|
|
447
|
+
}>>;
|
|
448
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
449
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
/** Required persisted fields before a DRAFT job listing can be published */
|
|
452
|
+
declare const PublishReadyJobListingSchema: z.ZodObject<{
|
|
453
|
+
title: z.ZodString;
|
|
454
|
+
description: z.ZodString;
|
|
455
|
+
responsibilities: z.ZodString;
|
|
456
|
+
requirements: z.ZodString;
|
|
457
|
+
role: z.ZodString;
|
|
458
|
+
location: z.ZodEnum<{
|
|
459
|
+
readonly ONSITE: "ONSITE";
|
|
460
|
+
readonly REMOTE: "REMOTE";
|
|
461
|
+
}>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
/** `POST /marketplace/job-listings/:id/publish` (host owner) */
|
|
464
|
+
declare const PublishMarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
465
|
+
id: z.ZodUUID;
|
|
466
|
+
state: z.ZodLiteral<"OPEN">;
|
|
467
|
+
}, z.core.$strip>;
|
|
432
468
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
433
469
|
id: z.ZodUUID;
|
|
434
470
|
hostProfileId: z.ZodUUID;
|
|
@@ -448,6 +484,7 @@ declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
|
448
484
|
compensation: z.ZodNullable<z.ZodNumber>;
|
|
449
485
|
attachments: z.ZodNullable<z.ZodUnknown>;
|
|
450
486
|
state: z.ZodEnum<{
|
|
487
|
+
readonly DRAFT: "DRAFT";
|
|
451
488
|
readonly OPEN: "OPEN";
|
|
452
489
|
readonly SUSPENDED: "SUSPENDED";
|
|
453
490
|
readonly CLOSED: "CLOSED";
|
|
@@ -488,6 +525,7 @@ declare const MarketplaceIndicationOfInterestResponseSchema: z.ZodObject<{
|
|
|
488
525
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
489
526
|
readonly SELECTED: "SELECTED";
|
|
490
527
|
readonly REJECTED: "REJECTED";
|
|
528
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
491
529
|
}>;
|
|
492
530
|
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
493
531
|
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
@@ -509,6 +547,7 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
509
547
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
510
548
|
readonly SELECTED: "SELECTED";
|
|
511
549
|
readonly REJECTED: "REJECTED";
|
|
550
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
512
551
|
}>;
|
|
513
552
|
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
514
553
|
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
@@ -535,6 +574,7 @@ declare const ListHostMarketplaceIndicationsQuerySchema: z.ZodObject<{
|
|
|
535
574
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
536
575
|
readonly SELECTED: "SELECTED";
|
|
537
576
|
readonly REJECTED: "REJECTED";
|
|
577
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
538
578
|
}>>;
|
|
539
579
|
search: z.ZodOptional<z.ZodString>;
|
|
540
580
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
@@ -563,6 +603,7 @@ declare const MarketplaceHostIndicationOfInterestInboxItemSchema: z.ZodObject<{
|
|
|
563
603
|
readonly WITHDRAWN: "WITHDRAWN";
|
|
564
604
|
readonly SELECTED: "SELECTED";
|
|
565
605
|
readonly REJECTED: "REJECTED";
|
|
606
|
+
readonly LISTING_CANCELLED: "LISTING_CANCELLED";
|
|
566
607
|
}>;
|
|
567
608
|
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
568
609
|
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
@@ -576,6 +617,7 @@ declare const MarketplaceHostIndicationOfInterestInboxItemSchema: z.ZodObject<{
|
|
|
576
617
|
jobListingTitle: z.ZodString;
|
|
577
618
|
jobListingRole: z.ZodString;
|
|
578
619
|
jobListingState: z.ZodEnum<{
|
|
620
|
+
readonly DRAFT: "DRAFT";
|
|
579
621
|
readonly OPEN: "OPEN";
|
|
580
622
|
readonly SUSPENDED: "SUSPENDED";
|
|
581
623
|
readonly CLOSED: "CLOSED";
|
|
@@ -594,7 +636,10 @@ type MarketplaceBookingResponse = z.infer<typeof MarketplaceBookingResponseSchem
|
|
|
594
636
|
type CreateMarketplaceJobListingRequest = z.infer<typeof CreateMarketplaceJobListingRequestSchema>;
|
|
595
637
|
type UpdateMarketplaceJobListingRequest = z.infer<typeof UpdateMarketplaceJobListingRequestSchema>;
|
|
596
638
|
type ListMarketplaceJobListingsQuery = z.infer<typeof ListMarketplaceJobListingsQuerySchema>;
|
|
639
|
+
type ListHostMarketplaceJobListingsQuery = z.infer<typeof ListHostMarketplaceJobListingsQuerySchema>;
|
|
597
640
|
type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingResponseSchema>;
|
|
641
|
+
type PublishMarketplaceJobListingResponse = z.infer<typeof PublishMarketplaceJobListingResponseSchema>;
|
|
642
|
+
type PublishReadyJobListing = z.infer<typeof PublishReadyJobListingSchema>;
|
|
598
643
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
599
644
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
600
645
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
@@ -1328,4 +1373,4 @@ type BookingAuditAttachmentAddedDetails = z.infer<typeof BookingAuditAttachmentA
|
|
|
1328
1373
|
type AdminBookingAuditEntry = z.infer<typeof AdminBookingAuditEntrySchema>;
|
|
1329
1374
|
type AdminBookingAuditResponse = z.infer<typeof AdminBookingAuditResponseSchema>;
|
|
1330
1375
|
|
|
1331
|
-
export { 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 CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, 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 MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerRecentReview, ProducerRecentReviewSchema, SortOrder, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
|
1376
|
+
export { 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 CompleteMarketplaceBookingRequest, CompleteMarketplaceBookingRequestSchema, type CompleteMarketplaceBookingResponse, CompleteMarketplaceBookingResponseSchema, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type CreateMarketplaceReviewRequest, CreateMarketplaceReviewRequestSchema, type ForceCompleteMarketplaceBookingRequest, ForceCompleteMarketplaceBookingRequestSchema, type GetMarketplaceHiringThreadResponse, GetMarketplaceHiringThreadResponseSchema, HostIndicationOfInterestSortBy, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListHostMarketplaceIndicationsQuery, ListHostMarketplaceIndicationsQuerySchema, type ListHostMarketplaceJobListingsQuery, ListHostMarketplaceJobListingsQuerySchema, type ListMarketplaceHiringThreadMessagesQuery, ListMarketplaceHiringThreadMessagesQuerySchema, type ListMarketplaceHiringThreadMessagesResponse, ListMarketplaceHiringThreadMessagesResponseSchema, type ListMarketplaceHiringThreadsResponse, ListMarketplaceHiringThreadsResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type MarkMarketplaceHiringThreadReadRequest, MarkMarketplaceHiringThreadReadRequestSchema, type MarkMarketplaceHiringThreadReadResponse, MarkMarketplaceHiringThreadReadResponseSchema, 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 MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type PublishMarketplaceJobListingResponse, PublishMarketplaceJobListingResponseSchema, type PublishReadyJobListing, PublishReadyJobListingSchema, SortOrder, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
package/dist/booking/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkF4MRVOPL_js=require('../chunk-F4MRVOPL.js'),chunkTO3WFEGT_js=require('../chunk-TO3WFEGT.js');require('../chunk-244RJ2YJ.js'),require('../chunk-DQG37GYU.js'),require('../chunk-EAKBQ5VD.js');Object.defineProperty(exports,"AdminBookingAuditEntrySchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.oa}});Object.defineProperty(exports,"AdminBookingAuditResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.pa}});Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkF4MRVOPL_js.h}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkF4MRVOPL_js.j}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkF4MRVOPL_js.k}});Object.defineProperty(exports,"BookingAuditAction",{enumerable:true,get:function(){return chunkF4MRVOPL_js.g}});Object.defineProperty(exports,"BookingAuditActorSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ia}});Object.defineProperty(exports,"BookingAuditAttachmentAddedDetailsSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.na}});Object.defineProperty(exports,"BookingAuditMessageSentDetailsSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ma}});Object.defineProperty(exports,"BookingAuditRequestMetadataSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ja}});Object.defineProperty(exports,"BookingAuditSnapshotSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ka}});Object.defineProperty(exports,"BookingAuditStateTransitionDetailsSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.la}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkF4MRVOPL_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkF4MRVOPL_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.t}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkF4MRVOPL_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkF4MRVOPL_js.f}});Object.defineProperty(exports,"CancelMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.O}});Object.defineProperty(exports,"CancelMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.P}});Object.defineProperty(exports,"CompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.E}});Object.defineProperty(exports,"CompleteMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.G}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.s}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.r}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.u}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.z}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.B}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.H}});Object.defineProperty(exports,"ForceCompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.F}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ba}});Object.defineProperty(exports,"HostIndicationOfInterestSortBy",{enumerable:true,get:function(){return chunkF4MRVOPL_js.T}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.x}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkF4MRVOPL_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.v}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkF4MRVOPL_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkF4MRVOPL_js.y}});Object.defineProperty(exports,"ListHostMarketplaceIndicationsQuerySchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.V}});Object.defineProperty(exports,"ListHostMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.K}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.$}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.aa}});Object.defineProperty(exports,"ListMarketplaceHiringThreadsResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ha}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.J}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ea}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.fa}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.A}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.Z}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js._}});Object.defineProperty(exports,"MarketplaceHiringThreadInboxItemSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ga}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.Y}});Object.defineProperty(exports,"MarketplaceHostIndicationOfInterestInboxItemSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.W}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.S}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.R}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.N}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkF4MRVOPL_js.X}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.ca}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.da}});Object.defineProperty(exports,"PublishMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.M}});Object.defineProperty(exports,"PublishReadyJobListingSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.L}});Object.defineProperty(exports,"SortOrder",{enumerable:true,get:function(){return chunkF4MRVOPL_js.U}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.w}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.Q}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.C}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.D}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkF4MRVOPL_js.I}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkF4MRVOPL_js.i}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkF4MRVOPL_js.l}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkF4MRVOPL_js.q}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkF4MRVOPL_js.p}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkF4MRVOPL_js.m}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkF4MRVOPL_js.o}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkF4MRVOPL_js.n}});Object.defineProperty(exports,"CreateMarketplaceReviewRequestSchema",{enumerable:true,get:function(){return chunkTO3WFEGT_js.a}});Object.defineProperty(exports,"MarketplaceReviewResponseSchema",{enumerable:true,get:function(){return chunkTO3WFEGT_js.b}});Object.defineProperty(exports,"ProducerRecentReviewSchema",{enumerable:true,get:function(){return chunkTO3WFEGT_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{oa as AdminBookingAuditEntrySchema,pa as AdminBookingAuditResponseSchema,h as BOOKING_TERMINAL_STATES,j as BOOKING_TRANSITION_ACTORS,k as BOOKING_TRANSITION_TARGETS_REQUIRING_REASON,g as BookingAuditAction,ia as BookingAuditActorSchema,na as BookingAuditAttachmentAddedDetailsSchema,ma as BookingAuditMessageSentDetailsSchema,ja as BookingAuditRequestMetadataSchema,ka as BookingAuditSnapshotSchema,la as BookingAuditStateTransitionDetailsSchema,a as BookingOrigin,e as BookingPaymentStatus,t as BookingResponseSchema,b as BookingState,f as BookingTransitionActor,O as CancelMarketplaceJobListingRequestSchema,P as CancelMarketplaceJobListingResponseSchema,E as CompleteMarketplaceBookingRequestSchema,G as CompleteMarketplaceBookingResponseSchema,s as ConfirmBookingRequestSchema,r as CreateBookingRequestSchema,u as CreateJobListingRequestSchema,z as CreateMarketplaceBookingRequestSchema,B as CreateMarketplaceBookingResponseSchema,H as CreateMarketplaceJobListingRequestSchema,F as ForceCompleteMarketplaceBookingRequestSchema,ba as GetMarketplaceHiringThreadResponseSchema,T as HostIndicationOfInterestSortBy,x as IndicationOfInterestResponseSchema,d as IoiState,v as JobListingResponseSchema,c as JobListingState,y as JobLocation,V as ListHostMarketplaceIndicationsQuerySchema,K as ListHostMarketplaceJobListingsQuerySchema,$ as ListMarketplaceHiringThreadMessagesQuerySchema,aa as ListMarketplaceHiringThreadMessagesResponseSchema,ha as ListMarketplaceHiringThreadsResponseSchema,J as ListMarketplaceJobListingsQuerySchema,ea as MarkMarketplaceHiringThreadReadRequestSchema,fa as MarkMarketplaceHiringThreadReadResponseSchema,A as MarketplaceBookingResponseSchema,Z as MarketplaceHiringMessageAttachmentSchema,_ as MarketplaceHiringMessageSchema,ga as MarketplaceHiringThreadInboxItemSchema,Y as MarketplaceHiringThreadSchema,W as MarketplaceHostIndicationOfInterestInboxItemSchema,S as MarketplaceIndicationOfInterestHostItemSchema,R as MarketplaceIndicationOfInterestResponseSchema,N as MarketplaceJobListingResponseSchema,X as MessageDeliveryStatus,ca as PostMarketplaceHiringThreadMessageRequestSchema,da as PostMarketplaceHiringThreadMessageResponseSchema,M as PublishMarketplaceJobListingResponseSchema,L as PublishReadyJobListingSchema,U as SortOrder,w as SubmitIndicationOfInterestRequestSchema,Q as SubmitMarketplaceIndicationOfInterestRequestSchema,C as TransitionMarketplaceBookingRequestSchema,D as TransitionMarketplaceBookingResponseSchema,I as UpdateMarketplaceJobListingRequestSchema,i as VALID_BOOKING_TRANSITIONS,l as bookingTransitionKey,q as bookingTransitionRequiresReason,p as canActorPerformBookingTransition,m as getAllowedBookingTargetStates,o as getBookingTransitionActors,n as isValidBookingTransition}from'../chunk-YDJOTD7W.mjs';export{a as CreateMarketplaceReviewRequestSchema,b as MarketplaceReviewResponseSchema,c as ProducerRecentReviewSchema}from'../chunk-6DKE37U5.mjs';import'../chunk-73FCZRSF.mjs';import'../chunk-KPEKHJVS.mjs';import'../chunk-ASVBPXYH.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/joblisting/listing.enum.ts"],"names":["JobInterestState"],"mappings":"AAGO,IAAMA,CAAAA,CAAmB,CAC9B,IAAA,CAAM,MAAA,CACN,WAAA,CAAa,aAAA,CACb,SAAA,CAAW,WAAA,CACX,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,kBAAmB,mBACrB","file":"chunk-ASVBPXYH.mjs","sourcesContent":["/**\n * Enum for job interest state.\n */\nexport const JobInterestState = {\n OPEN: 'OPEN',\n SHORTLISTED: 'SHORTLISTED',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n LISTING_CANCELLED: 'LISTING_CANCELLED',\n} as const;\nexport type JobInterestState = (typeof JobInterestState)[keyof typeof JobInterestState];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/joblisting/listing.enum.ts"],"names":["JobInterestState"],"mappings":"aAGO,IAAMA,CAAAA,CAAmB,CAC9B,IAAA,CAAM,MAAA,CACN,WAAA,CAAa,aAAA,CACb,SAAA,CAAW,WAAA,CACX,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,kBAAmB,mBACrB","file":"chunk-EAKBQ5VD.js","sourcesContent":["/**\n * Enum for job interest state.\n */\nexport const JobInterestState = {\n OPEN: 'OPEN',\n SHORTLISTED: 'SHORTLISTED',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n LISTING_CANCELLED: 'LISTING_CANCELLED',\n} as const;\nexport type JobInterestState = (typeof JobInterestState)[keyof typeof JobInterestState];\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk244RJ2YJ_js=require('./chunk-244RJ2YJ.js'),chunkDQG37GYU_js=require('./chunk-DQG37GYU.js'),chunkEAKBQ5VD_js=require('./chunk-EAKBQ5VD.js'),zod=require('zod');var c={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},t={REQUESTED:"REQUESTED",AWAITING_PRODUCER_RESPONSE:"AWAITING_PRODUCER_RESPONSE",IN_NEGOTIATION:"IN_NEGOTIATION",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",CANCELLED:"CANCELLED",AWAITING_ESCROW_FUNDING:"AWAITING_ESCROW_FUNDING",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",SERVICE_COMPLETED:"SERVICE_COMPLETED",IN_DISPUTE:"IN_DISPUTE",CLOSED:"CLOSED",AWAITING_PRODUCER_RECONFIRM:"AWAITING_PRODUCER_RECONFIRM"},I={DRAFT:"DRAFT",OPEN:"OPEN",SUSPENDED:"SUSPENDED",CLOSED:"CLOSED",CANCELLED:"CANCELLED"},N={OPEN:"OPEN",SHORTLISTED:"SHORTLISTED",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED",LISTING_CANCELLED:"LISTING_CANCELLED"},O={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"},i={HOST:"HOST",PRODUCER:"PRODUCER",ADMIN:"ADMIN",SYSTEM:"SYSTEM"},E={STATE_CHANGED:"STATE_CHANGED",TERMS_MODIFIED:"TERMS_MODIFIED",MESSAGE_SENT:"MESSAGE_SENT",ATTACHMENT_ADDED:"ATTACHMENT_ADDED",BOOKING_CREATED:"BOOKING_CREATED",BOOKING_COMPLETED:"BOOKING_COMPLETED",BOOKING_CANCELLED:"BOOKING_CANCELLED",BOOKING_ACCEPTED:"BOOKING_ACCEPTED",BOOKING_REJECTED:"BOOKING_REJECTED"};var f=[t.REJECTED,t.CANCELLED,t.CLOSED],b=[...f,t.IN_DISPUTE],h={[t.REQUESTED]:[t.AWAITING_PRODUCER_RESPONSE,t.CANCELLED],[t.AWAITING_PRODUCER_RESPONSE]:[t.IN_NEGOTIATION,t.REJECTED,t.CANCELLED],[t.IN_NEGOTIATION]:[t.ACCEPTED,t.REJECTED,t.CANCELLED],[t.ACCEPTED]:[t.AWAITING_ESCROW_FUNDING,t.CANCELLED],[t.AWAITING_ESCROW_FUNDING]:[t.CONFIRMED,t.CANCELLED],[t.CONFIRMED]:[t.IN_PROGRESS,t.AWAITING_PRODUCER_RECONFIRM],[t.AWAITING_PRODUCER_RECONFIRM]:[t.CONFIRMED,t.CANCELLED],[t.IN_PROGRESS]:[t.SERVICE_COMPLETED,t.CANCELLED],[t.SERVICE_COMPLETED]:[t.CLOSED],[t.IN_DISPUTE]:[t.CLOSED],[t.REJECTED]:[],[t.CANCELLED]:[],[t.CLOSED]:[]},B={[`${t.REQUESTED}->${t.AWAITING_PRODUCER_RESPONSE}`]:[i.HOST,i.SYSTEM],[`${t.REQUESTED}->${t.CANCELLED}`]:[i.HOST],[`${t.AWAITING_PRODUCER_RESPONSE}->${t.IN_NEGOTIATION}`]:[i.PRODUCER],[`${t.AWAITING_PRODUCER_RESPONSE}->${t.REJECTED}`]:[i.PRODUCER],[`${t.AWAITING_PRODUCER_RESPONSE}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${t.IN_NEGOTIATION}->${t.ACCEPTED}`]:[i.HOST,i.PRODUCER],[`${t.IN_NEGOTIATION}->${t.REJECTED}`]:[i.HOST,i.PRODUCER],[`${t.IN_NEGOTIATION}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${t.ACCEPTED}->${t.AWAITING_ESCROW_FUNDING}`]:[i.HOST,i.SYSTEM],[`${t.ACCEPTED}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER],[`${t.AWAITING_ESCROW_FUNDING}->${t.CONFIRMED}`]:[i.SYSTEM,i.ADMIN],[`${t.AWAITING_ESCROW_FUNDING}->${t.CANCELLED}`]:[i.HOST,i.ADMIN],[`${t.CONFIRMED}->${t.IN_PROGRESS}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${t.CONFIRMED}->${t.AWAITING_PRODUCER_RECONFIRM}`]:[i.HOST,i.SYSTEM,i.ADMIN],[`${t.AWAITING_PRODUCER_RECONFIRM}->${t.CONFIRMED}`]:[i.PRODUCER,i.ADMIN],[`${t.AWAITING_PRODUCER_RECONFIRM}->${t.CANCELLED}`]:[i.HOST,i.PRODUCER,i.ADMIN],[`${t.IN_PROGRESS}->${t.SERVICE_COMPLETED}`]:[i.PRODUCER,i.SYSTEM,i.ADMIN],[`${t.IN_PROGRESS}->${t.CANCELLED}`]:[i.HOST,i.ADMIN],[`${t.SERVICE_COMPLETED}->${t.CLOSED}`]:[i.HOST,i.ADMIN,i.SYSTEM],[`${t.IN_DISPUTE}->${t.CLOSED}`]:[i.ADMIN,i.HOST]},y=[t.REJECTED,t.CANCELLED,t.IN_DISPUTE];function G(r,s){return `${r}->${s}`}function U(r){let s=h[r]??[];return b.includes(r)?s:[...s,t.IN_DISPUTE]}function X(r,s){return U(r).includes(s)}function j(r,s){return s===t.IN_DISPUTE&&!b.includes(r)?[i.HOST,i.PRODUCER]:B[G(r,s)]??[]}function Z(r,s,l){return j(r,s).includes(l)}function ee(r,s){return y.includes(s)}var ie=zod.z.object({origin:zod.z.enum(c),eventId:zod.z.uuid().optional(),producerId:zod.z.uuid(),agreedAmount:zod.z.number().min(0)}),re=zod.z.object({escrowReference:zod.z.string()}),ae=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().optional(),hostId:zod.z.uuid(),producerId:zod.z.uuid(),quotedPrice:zod.z.number(),currency:zod.z.string(),scopeOfWork:zod.z.record(zod.z.string(),zod.z.any()).optional(),requiredStartAt:zod.z.iso.datetime(),requiredEndAt:zod.z.iso.datetime(),bookingState:zod.z.enum(t),paymentStatus:zod.z.enum(O),escrowReference:zod.z.string().optional(),completedAt:zod.z.iso.datetime().optional(),hostRating:zod.z.number().optional(),hostReview:zod.z.string().optional(),producerRating:zod.z.number().optional(),producerReview:zod.z.string().optional(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime()}),se=zod.z.object({title:zod.z.string().max(255),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationMinutes:zod.z.number().int().positive().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional()}),Ee=zod.z.object({id:zod.z.uuid(),hostProfileId:zod.z.uuid(),eventId:zod.z.uuid().optional(),title:zod.z.string(),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationMinutes:zod.z.number().int().nullable().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional(),state:zod.z.enum(I),proposalCount:zod.z.number(),createdAt:zod.z.iso.datetime()}),ce=zod.z.object({coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().min(0).optional(),availabilityNotes:zod.z.string().optional()}),ue=zod.z.object({id:zod.z.uuid(),jobListingId:zod.z.uuid(),producerProfileId:zod.z.uuid(),coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().optional(),state:zod.z.enum(N),createdAt:zod.z.iso.datetime()});var g={ONSITE:"ONSITE",REMOTE:"REMOTE"};var _=zod.z.record(zod.z.string(),zod.z.unknown()),Re=zod.z.object({producerId:zod.z.uuid(),origin:zod.z.enum(c),eventId:zod.z.uuid().optional(),jobListingId:zod.z.uuid().optional(),sourceIoiId:zod.z.uuid().optional(),agreedAmount:zod.z.coerce.number().nonnegative().optional(),scopeOfWork:zod.z.string().max(5e3).optional()}).superRefine((r,s)=>{r.origin===c.EVENT_DIRECT&&!r.eventId&&s.addIssue({code:"custom",message:"eventId is required when origin is EVENT_DIRECT",path:["eventId"]}),r.origin===c.MARKETPLACE_DIRECT&&(r.eventId&&s.addIssue({code:"custom",message:"eventId must not be set when origin is MARKETPLACE_DIRECT",path:["eventId"]}),r.sourceIoiId&&s.addIssue({code:"custom",message:"sourceIoiId must not be set when origin is MARKETPLACE_DIRECT",path:["sourceIoiId"]})),r.origin===c.JOB_LISTING&&(r.sourceIoiId||s.addIssue({code:"custom",message:"sourceIoiId is required when origin is JOB_LISTING",path:["sourceIoiId"]}),r.eventId&&s.addIssue({code:"custom",message:"eventId must not be set when origin is JOB_LISTING",path:["eventId"]})),r.sourceIoiId&&r.origin!==c.JOB_LISTING&&s.addIssue({code:"custom",message:"sourceIoiId is only allowed when origin is JOB_LISTING",path:["sourceIoiId"]});}),R=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().nullable(),eventLinked:zod.z.boolean(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),origin:zod.z.enum(c),jobListingId:zod.z.uuid().nullable(),sourceIoiId:zod.z.uuid().nullable(),state:zod.z.enum(t),agreedAmount:zod.z.number().nullable(),scopeOfWork:zod.z.string().nullable(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),Ae=zod.z.object({bookingId:zod.z.uuid(),booking:R}),v=zod.z.string().trim().min(5).max(500),Te=zod.z.object({targetState:zod.z.enum(t),reason:v.optional()}).superRefine((r,s)=>{(r.targetState===t.REJECTED||r.targetState===t.CANCELLED||r.targetState===t.IN_DISPUTE)&&r.reason===void 0&&s.addIssue({code:"custom",message:"reason is required for this transition",path:["reason"]});}),De=zod.z.object({booking:R}),Ce=zod.z.object({notes:zod.z.string().max(2e3).optional()}),Ne=zod.z.object({notes:zod.z.string().max(2e3).optional()}),Oe=zod.z.object({booking:R,hostAcked:zod.z.boolean(),producerAcked:zod.z.boolean(),completed:zod.z.boolean(),forced:zod.z.boolean().optional()}),S=zod.z.object({title:zod.z.string().min(1).max(200),description:zod.z.string().min(1).max(5e3),responsibilities:zod.z.string().min(1),requirements:zod.z.string().min(1),role:zod.z.string().min(1).max(120),requiredDate:zod.z.iso.datetime().optional(),estimatedDurationMinutes:zod.z.coerce.number().int().positive().optional(),location:zod.z.enum(g),notes:zod.z.string().max(2e3).optional(),compensation:zod.z.coerce.number().nonnegative().optional(),attachments:_.optional(),eventId:zod.z.uuid().optional()}),be=S.partial().extend({saveAsDraft:zod.z.boolean().optional().default(false)}).superRefine((r,s)=>{if(r.saveAsDraft)return;let l=S.safeParse(r);l.success||s.addIssue({code:"custom",message:l.error.issues.map(x=>x.message).join("; ")});}),ke=S.partial(),Le=zod.z.object({...chunkDQG37GYU_js.d.shape,location:zod.z.enum(g).optional()}),_e=zod.z.object({...chunkDQG37GYU_js.d.shape,state:zod.z.enum(I).optional()}),Me=zod.z.object({title:zod.z.string().min(1).max(200),description:zod.z.string().min(1).max(5e3),responsibilities:zod.z.string().min(1),requirements:zod.z.string().min(1),role:zod.z.string().min(1).max(120),location:zod.z.enum(g)}),Pe=zod.z.object({id:zod.z.uuid(),state:zod.z.literal("OPEN")}),xe=zod.z.object({id:zod.z.uuid(),hostProfileId:zod.z.uuid(),eventId:zod.z.uuid().nullable(),title:zod.z.string(),notes:zod.z.string().nullable(),description:zod.z.string(),responsibilities:zod.z.string(),requirements:zod.z.string(),role:zod.z.string(),requiredDate:zod.z.string().nullable(),estimatedDurationMinutes:zod.z.number().int().nullable(),location:zod.z.enum(g),compensation:zod.z.number().nullable(),attachments:zod.z.unknown().nullable(),state:zod.z.enum(I),proposalCount:zod.z.number().int(),cancelledAt:zod.z.string().nullable(),cancelledReason:zod.z.string().nullable(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),fe=zod.z.object({reason:zod.z.string().trim().min(5).max(500).optional()}),he=zod.z.object({id:zod.z.uuid(),state:zod.z.literal("CANCELLED"),cancelledAt:zod.z.iso.datetime().nullable()}),Be=zod.z.object({coverMessage:zod.z.string().min(1).max(2e3).optional(),proposedAmount:zod.z.coerce.number().nonnegative().optional(),availabilityNotes:zod.z.string().max(2e3).optional(),attachments:_.optional()}),J=zod.z.object({id:zod.z.uuid(),jobListingId:zod.z.uuid(),producerProfileId:zod.z.uuid(),coverMessage:zod.z.string().nullable(),proposedAmount:zod.z.number().nullable(),availabilityNotes:zod.z.string().nullable(),state:zod.z.enum(chunkEAKBQ5VD_js.a),resultingBookingId:zod.z.uuid().nullable(),withdrawnAt:zod.z.string().nullable(),selectedAt:zod.z.string().nullable(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),H=J.extend({producerCompanyName:zod.z.string().nullable()}),k={CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",PROPOSED_AMOUNT:"proposedAmount"},L={ASC:"asc",DESC:"desc"},ye=zod.z.object({...chunkDQG37GYU_js.d.shape,jobListingId:zod.z.uuid().optional(),state:zod.z.enum(chunkEAKBQ5VD_js.a).optional(),search:zod.z.string().trim().min(2).max(100).optional(),sortBy:zod.z.enum(k).default(k.CREATED_AT),sortOrder:zod.z.enum(L).default(L.DESC)}),Ge=H.extend({producerDisplayName:zod.z.string(),producerServiceCategoryLabels:zod.z.array(zod.z.string()),producerIsVerified:zod.z.boolean(),jobListingTitle:zod.z.string(),jobListingRole:zod.z.string(),jobListingState:zod.z.enum(I),jobListingLocation:zod.z.enum(g),jobListingEventId:zod.z.uuid().nullable(),jobListingEventTitle:zod.z.string().nullable()});var M={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var $=zod.z.object({id:zod.z.uuid(),bookingId:zod.z.uuid(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),W=zod.z.object({id:zod.z.uuid(),url:zod.z.string(),mimeType:zod.z.string(),sizeBytes:zod.z.number().int(),createdAt:zod.z.string()}),A=zod.z.object({id:zod.z.uuid(),threadId:zod.z.uuid(),senderUserId:zod.z.uuid(),body:zod.z.string(),sentAt:zod.z.string(),deliveryStatus:zod.z.enum(M),readAt:zod.z.string().nullable(),attachments:zod.z.array(W)}),We=chunkDQG37GYU_js.d,Fe=zod.z.object({messages:zod.z.array(A),...chunkDQG37GYU_js.e.shape}),qe=zod.z.object({thread:$,messages:zod.z.array(A),...chunkDQG37GYU_js.e.shape}),Ke=zod.z.object({body:zod.z.string().trim().min(1).max(5e3),attachments:zod.z.array(zod.z.object({url:zod.z.string().url(),mimeType:zod.z.string().min(1).max(120),sizeBytes:zod.z.number().int().positive()})).max(10).optional()}),we=zod.z.object({message:A}),Ve=zod.z.object({upToMessageId:zod.z.uuid().optional()}),Qe=zod.z.object({markedCount:zod.z.number().int().nonnegative()}),F=zod.z.object({threadId:zod.z.uuid(),bookingId:zod.z.uuid(),title:zod.z.string(),lastMessagePreview:zod.z.string().nullable(),lastMessageAt:zod.z.string().nullable(),lastSenderUserId:zod.z.uuid().nullable(),lastSenderDisplayName:zod.z.string().nullable(),unreadCount:zod.z.number().int().nonnegative(),bookingState:zod.z.enum(t)}),Ye=zod.z.object({items:zod.z.array(F),...chunkDQG37GYU_js.e.shape});var q=zod.z.object({id:zod.z.string(),role:chunk244RJ2YJ_js.b}),D=zod.z.object({reason:zod.z.string().optional(),ipAddress:zod.z.string().optional(),userAgent:zod.z.string().optional(),traceId:zod.z.string().optional()}),P=zod.z.record(zod.z.string(),zod.z.unknown()),K=D.extend({beforeState:P.optional(),afterState:P.optional()}),w=D.extend({messageId:zod.z.string(),bodyPreview:zod.z.string(),attachmentCount:zod.z.number().int().nonnegative().optional()}),V=D.extend({messageId:zod.z.string(),attachmentId:zod.z.string(),url:zod.z.string(),mimeType:zod.z.string(),sizeBytes:zod.z.number().int().nonnegative()}),T={timestamp:zod.z.string().datetime(),actor:q};function u(r){return zod.z.object({...T,action:zod.z.literal(r),details:K})}var Q=zod.z.discriminatedUnion("action",[u(E.STATE_CHANGED),u(E.TERMS_MODIFIED),u(E.BOOKING_CREATED),u(E.BOOKING_COMPLETED),u(E.BOOKING_CANCELLED),u(E.BOOKING_ACCEPTED),u(E.BOOKING_REJECTED),zod.z.object({...T,action:zod.z.literal(E.MESSAGE_SENT),details:w}),zod.z.object({...T,action:zod.z.literal(E.ATTACHMENT_ADDED),details:V})]),ot=zod.z.object({items:zod.z.array(Q),...chunkDQG37GYU_js.e.shape});exports.$=We;exports.A=R;exports.B=Ae;exports.C=Te;exports.D=De;exports.E=Ce;exports.F=Ne;exports.G=Oe;exports.H=be;exports.I=ke;exports.J=Le;exports.K=_e;exports.L=Me;exports.M=Pe;exports.N=xe;exports.O=fe;exports.P=he;exports.Q=Be;exports.R=J;exports.S=H;exports.T=k;exports.U=L;exports.V=ye;exports.W=Ge;exports.X=M;exports.Y=$;exports.Z=W;exports._=A;exports.a=c;exports.aa=Fe;exports.b=t;exports.ba=qe;exports.c=I;exports.ca=Ke;exports.d=N;exports.da=we;exports.e=O;exports.ea=Ve;exports.f=i;exports.fa=Qe;exports.g=E;exports.ga=F;exports.h=f;exports.ha=Ye;exports.i=h;exports.ia=q;exports.j=B;exports.ja=D;exports.k=y;exports.ka=P;exports.l=G;exports.la=K;exports.m=U;exports.ma=w;exports.n=X;exports.na=V;exports.o=j;exports.oa=Q;exports.p=Z;exports.pa=ot;exports.q=ee;exports.r=ie;exports.s=re;exports.t=ae;exports.u=se;exports.v=Ee;exports.w=ce;exports.x=ue;exports.y=g;exports.z=Re;//# sourceMappingURL=chunk-F4MRVOPL.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-F4MRVOPL.js.map
|