@livdot-tech/contracts 1.9.5 → 1.9.7
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 +131 -18
- package/dist/booking/index.d.ts +131 -18
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-IEBLOTOF.js +2 -0
- package/dist/chunk-IEBLOTOF.js.map +1 -0
- package/dist/chunk-Z4JUUIN4.mjs +2 -0
- package/dist/chunk-Z4JUUIN4.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/package.json +1 -1
- package/dist/chunk-IXIWJ7H7.js +0 -2
- package/dist/chunk-IXIWJ7H7.js.map +0 -1
- package/dist/chunk-Q2I5IWID.mjs +0 -2
- package/dist/chunk-Q2I5IWID.mjs.map +0 -1
package/dist/booking/index.d.mts
CHANGED
|
@@ -23,9 +23,11 @@ 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
|
-
readonly CLOSED: "CLOSED";
|
|
28
28
|
readonly SUSPENDED: "SUSPENDED";
|
|
29
|
+
readonly CLOSED: "CLOSED";
|
|
30
|
+
readonly CANCELLED: "CANCELLED";
|
|
29
31
|
};
|
|
30
32
|
type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];
|
|
31
33
|
declare const IoiState: {
|
|
@@ -158,9 +160,11 @@ declare const JobListingResponseSchema: z.ZodObject<{
|
|
|
158
160
|
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
159
161
|
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
160
162
|
state: z.ZodEnum<{
|
|
163
|
+
readonly DRAFT: "DRAFT";
|
|
161
164
|
readonly OPEN: "OPEN";
|
|
162
|
-
readonly CLOSED: "CLOSED";
|
|
163
165
|
readonly SUSPENDED: "SUSPENDED";
|
|
166
|
+
readonly CLOSED: "CLOSED";
|
|
167
|
+
readonly CANCELLED: "CANCELLED";
|
|
164
168
|
}>;
|
|
165
169
|
proposalCount: z.ZodNumber;
|
|
166
170
|
createdAt: z.ZodISODateTime;
|
|
@@ -384,23 +388,24 @@ declare const CompleteMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
384
388
|
completed: z.ZodBoolean;
|
|
385
389
|
forced: z.ZodOptional<z.ZodBoolean>;
|
|
386
390
|
}, z.core.$strip>;
|
|
387
|
-
/** `POST /marketplace/job-listings` */
|
|
391
|
+
/** `POST /marketplace/job-listings` — publish immediately unless `saveAsDraft` */
|
|
388
392
|
declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
389
|
-
title: z.ZodString
|
|
390
|
-
description: z.ZodString
|
|
391
|
-
responsibilities: z.ZodString
|
|
392
|
-
requirements: z.ZodString
|
|
393
|
-
role: z.ZodString
|
|
394
|
-
requiredDate: z.ZodOptional<z.ZodISODateTime
|
|
395
|
-
estimatedDurationMinutes: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
396
|
-
location: z.ZodEnum<{
|
|
393
|
+
title: z.ZodOptional<z.ZodString>;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
responsibilities: z.ZodOptional<z.ZodString>;
|
|
396
|
+
requirements: z.ZodOptional<z.ZodString>;
|
|
397
|
+
role: z.ZodOptional<z.ZodString>;
|
|
398
|
+
requiredDate: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
399
|
+
estimatedDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
400
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
397
401
|
readonly ONSITE: "ONSITE";
|
|
398
402
|
readonly REMOTE: "REMOTE";
|
|
399
|
-
}
|
|
400
|
-
notes: z.ZodOptional<z.ZodString
|
|
401
|
-
compensation: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
402
|
-
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
403
|
-
eventId: z.ZodOptional<z.ZodUUID
|
|
403
|
+
}>>;
|
|
404
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
405
|
+
compensation: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
406
|
+
attachments: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
407
|
+
eventId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
408
|
+
saveAsDraft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
404
409
|
}, z.core.$strip>;
|
|
405
410
|
declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
406
411
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -427,6 +432,23 @@ declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
|
427
432
|
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
428
433
|
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
429
434
|
}, z.core.$strip>;
|
|
435
|
+
/** `GET /marketplace/job-listings/mine` (host) */
|
|
436
|
+
declare const ListHostMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
437
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
438
|
+
readonly DRAFT: "DRAFT";
|
|
439
|
+
readonly OPEN: "OPEN";
|
|
440
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
441
|
+
readonly CLOSED: "CLOSED";
|
|
442
|
+
readonly CANCELLED: "CANCELLED";
|
|
443
|
+
}>>;
|
|
444
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
445
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
/** `POST /marketplace/job-listings/:id/publish` (host owner) */
|
|
448
|
+
declare const PublishMarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
449
|
+
id: z.ZodUUID;
|
|
450
|
+
state: z.ZodLiteral<"OPEN">;
|
|
451
|
+
}, z.core.$strip>;
|
|
430
452
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
431
453
|
id: z.ZodUUID;
|
|
432
454
|
hostProfileId: z.ZodUUID;
|
|
@@ -446,14 +468,27 @@ declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
|
446
468
|
compensation: z.ZodNullable<z.ZodNumber>;
|
|
447
469
|
attachments: z.ZodNullable<z.ZodUnknown>;
|
|
448
470
|
state: z.ZodEnum<{
|
|
471
|
+
readonly DRAFT: "DRAFT";
|
|
449
472
|
readonly OPEN: "OPEN";
|
|
450
|
-
readonly CLOSED: "CLOSED";
|
|
451
473
|
readonly SUSPENDED: "SUSPENDED";
|
|
474
|
+
readonly CLOSED: "CLOSED";
|
|
475
|
+
readonly CANCELLED: "CANCELLED";
|
|
452
476
|
}>;
|
|
453
477
|
proposalCount: z.ZodNumber;
|
|
478
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
479
|
+
cancelledReason: z.ZodNullable<z.ZodString>;
|
|
454
480
|
createdAt: z.ZodString;
|
|
455
481
|
updatedAt: z.ZodString;
|
|
456
482
|
}, z.core.$strip>;
|
|
483
|
+
/** `POST /marketplace/job-listings/:id/cancel` (host owner) — mirrors HostEventCancelResponseSchema shape */
|
|
484
|
+
declare const CancelMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
485
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
declare const CancelMarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
488
|
+
id: z.ZodUUID;
|
|
489
|
+
state: z.ZodLiteral<"CANCELLED">;
|
|
490
|
+
cancelledAt: z.ZodNullable<z.ZodISODateTime>;
|
|
491
|
+
}, z.core.$strip>;
|
|
457
492
|
/** `POST .../indications-of-interest` */
|
|
458
493
|
declare const SubmitMarketplaceIndicationOfInterestRequestSchema: z.ZodObject<{
|
|
459
494
|
coverMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -503,22 +538,100 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
503
538
|
updatedAt: z.ZodString;
|
|
504
539
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
505
540
|
}, z.core.$strip>;
|
|
541
|
+
declare const HostIndicationOfInterestSortBy: {
|
|
542
|
+
readonly CREATED_AT: "createdAt";
|
|
543
|
+
readonly UPDATED_AT: "updatedAt";
|
|
544
|
+
readonly PROPOSED_AMOUNT: "proposedAmount";
|
|
545
|
+
};
|
|
546
|
+
declare const SortOrder: {
|
|
547
|
+
readonly ASC: "asc";
|
|
548
|
+
readonly DESC: "desc";
|
|
549
|
+
};
|
|
550
|
+
/** `GET /marketplace/job-listings/indications-of-interest/mine` (host inbox) */
|
|
551
|
+
declare const ListHostMarketplaceIndicationsQuerySchema: z.ZodObject<{
|
|
552
|
+
jobListingId: z.ZodOptional<z.ZodUUID>;
|
|
553
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
readonly OPEN: "OPEN";
|
|
555
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
556
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
557
|
+
readonly SELECTED: "SELECTED";
|
|
558
|
+
readonly REJECTED: "REJECTED";
|
|
559
|
+
}>>;
|
|
560
|
+
search: z.ZodOptional<z.ZodString>;
|
|
561
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
562
|
+
readonly CREATED_AT: "createdAt";
|
|
563
|
+
readonly UPDATED_AT: "updatedAt";
|
|
564
|
+
readonly PROPOSED_AMOUNT: "proposedAmount";
|
|
565
|
+
}>>;
|
|
566
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
567
|
+
readonly ASC: "asc";
|
|
568
|
+
readonly DESC: "desc";
|
|
569
|
+
}>>;
|
|
570
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
571
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
/** Host inbox row — IoI with applicant + parent job listing summary */
|
|
574
|
+
declare const MarketplaceHostIndicationOfInterestInboxItemSchema: z.ZodObject<{
|
|
575
|
+
id: z.ZodUUID;
|
|
576
|
+
jobListingId: z.ZodUUID;
|
|
577
|
+
producerProfileId: z.ZodUUID;
|
|
578
|
+
coverMessage: z.ZodNullable<z.ZodString>;
|
|
579
|
+
proposedAmount: z.ZodNullable<z.ZodNumber>;
|
|
580
|
+
availabilityNotes: z.ZodNullable<z.ZodString>;
|
|
581
|
+
state: z.ZodEnum<{
|
|
582
|
+
readonly OPEN: "OPEN";
|
|
583
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
584
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
585
|
+
readonly SELECTED: "SELECTED";
|
|
586
|
+
readonly REJECTED: "REJECTED";
|
|
587
|
+
}>;
|
|
588
|
+
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
589
|
+
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
590
|
+
selectedAt: z.ZodNullable<z.ZodString>;
|
|
591
|
+
createdAt: z.ZodString;
|
|
592
|
+
updatedAt: z.ZodString;
|
|
593
|
+
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
594
|
+
producerDisplayName: z.ZodString;
|
|
595
|
+
producerServiceCategoryLabels: z.ZodArray<z.ZodString>;
|
|
596
|
+
producerIsVerified: z.ZodBoolean;
|
|
597
|
+
jobListingTitle: z.ZodString;
|
|
598
|
+
jobListingRole: z.ZodString;
|
|
599
|
+
jobListingState: z.ZodEnum<{
|
|
600
|
+
readonly DRAFT: "DRAFT";
|
|
601
|
+
readonly OPEN: "OPEN";
|
|
602
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
603
|
+
readonly CLOSED: "CLOSED";
|
|
604
|
+
readonly CANCELLED: "CANCELLED";
|
|
605
|
+
}>;
|
|
606
|
+
jobListingLocation: z.ZodEnum<{
|
|
607
|
+
readonly ONSITE: "ONSITE";
|
|
608
|
+
readonly REMOTE: "REMOTE";
|
|
609
|
+
}>;
|
|
610
|
+
jobListingEventId: z.ZodNullable<z.ZodUUID>;
|
|
611
|
+
jobListingEventTitle: z.ZodNullable<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>;
|
|
506
613
|
|
|
507
614
|
type CreateMarketplaceBookingRequest = z.infer<typeof CreateMarketplaceBookingRequestSchema>;
|
|
508
615
|
type MarketplaceBookingResponse = z.infer<typeof MarketplaceBookingResponseSchema>;
|
|
509
616
|
type CreateMarketplaceJobListingRequest = z.infer<typeof CreateMarketplaceJobListingRequestSchema>;
|
|
510
617
|
type UpdateMarketplaceJobListingRequest = z.infer<typeof UpdateMarketplaceJobListingRequestSchema>;
|
|
511
618
|
type ListMarketplaceJobListingsQuery = z.infer<typeof ListMarketplaceJobListingsQuerySchema>;
|
|
619
|
+
type ListHostMarketplaceJobListingsQuery = z.infer<typeof ListHostMarketplaceJobListingsQuerySchema>;
|
|
512
620
|
type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingResponseSchema>;
|
|
621
|
+
type PublishMarketplaceJobListingResponse = z.infer<typeof PublishMarketplaceJobListingResponseSchema>;
|
|
513
622
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
514
623
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
515
624
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
516
625
|
type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
|
|
626
|
+
type ListHostMarketplaceIndicationsQuery = z.infer<typeof ListHostMarketplaceIndicationsQuerySchema>;
|
|
627
|
+
type MarketplaceHostIndicationOfInterestInboxItem = z.infer<typeof MarketplaceHostIndicationOfInterestInboxItemSchema>;
|
|
517
628
|
type TransitionMarketplaceBookingRequest = z.infer<typeof TransitionMarketplaceBookingRequestSchema>;
|
|
518
629
|
type TransitionMarketplaceBookingResponse = z.infer<typeof TransitionMarketplaceBookingResponseSchema>;
|
|
519
630
|
type CompleteMarketplaceBookingRequest = z.infer<typeof CompleteMarketplaceBookingRequestSchema>;
|
|
520
631
|
type CompleteMarketplaceBookingResponse = z.infer<typeof CompleteMarketplaceBookingResponseSchema>;
|
|
521
632
|
type ForceCompleteMarketplaceBookingRequest = z.infer<typeof ForceCompleteMarketplaceBookingRequestSchema>;
|
|
633
|
+
type CancelMarketplaceJobListingRequest = z.infer<typeof CancelMarketplaceJobListingRequestSchema>;
|
|
634
|
+
type CancelMarketplaceJobListingResponse = z.infer<typeof CancelMarketplaceJobListingResponseSchema>;
|
|
522
635
|
|
|
523
636
|
declare const MessageDeliveryStatus: {
|
|
524
637
|
readonly SENT: "SENT";
|
|
@@ -1239,4 +1352,4 @@ type BookingAuditAttachmentAddedDetails = z.infer<typeof BookingAuditAttachmentA
|
|
|
1239
1352
|
type AdminBookingAuditEntry = z.infer<typeof AdminBookingAuditEntrySchema>;
|
|
1240
1353
|
type AdminBookingAuditResponse = z.infer<typeof AdminBookingAuditResponseSchema>;
|
|
1241
1354
|
|
|
1242
|
-
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 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, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, 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 MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
|
1355
|
+
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, 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,9 +23,11 @@ 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
|
-
readonly CLOSED: "CLOSED";
|
|
28
28
|
readonly SUSPENDED: "SUSPENDED";
|
|
29
|
+
readonly CLOSED: "CLOSED";
|
|
30
|
+
readonly CANCELLED: "CANCELLED";
|
|
29
31
|
};
|
|
30
32
|
type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];
|
|
31
33
|
declare const IoiState: {
|
|
@@ -158,9 +160,11 @@ declare const JobListingResponseSchema: z.ZodObject<{
|
|
|
158
160
|
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
159
161
|
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
160
162
|
state: z.ZodEnum<{
|
|
163
|
+
readonly DRAFT: "DRAFT";
|
|
161
164
|
readonly OPEN: "OPEN";
|
|
162
|
-
readonly CLOSED: "CLOSED";
|
|
163
165
|
readonly SUSPENDED: "SUSPENDED";
|
|
166
|
+
readonly CLOSED: "CLOSED";
|
|
167
|
+
readonly CANCELLED: "CANCELLED";
|
|
164
168
|
}>;
|
|
165
169
|
proposalCount: z.ZodNumber;
|
|
166
170
|
createdAt: z.ZodISODateTime;
|
|
@@ -384,23 +388,24 @@ declare const CompleteMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
384
388
|
completed: z.ZodBoolean;
|
|
385
389
|
forced: z.ZodOptional<z.ZodBoolean>;
|
|
386
390
|
}, z.core.$strip>;
|
|
387
|
-
/** `POST /marketplace/job-listings` */
|
|
391
|
+
/** `POST /marketplace/job-listings` — publish immediately unless `saveAsDraft` */
|
|
388
392
|
declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
389
|
-
title: z.ZodString
|
|
390
|
-
description: z.ZodString
|
|
391
|
-
responsibilities: z.ZodString
|
|
392
|
-
requirements: z.ZodString
|
|
393
|
-
role: z.ZodString
|
|
394
|
-
requiredDate: z.ZodOptional<z.ZodISODateTime
|
|
395
|
-
estimatedDurationMinutes: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
396
|
-
location: z.ZodEnum<{
|
|
393
|
+
title: z.ZodOptional<z.ZodString>;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
responsibilities: z.ZodOptional<z.ZodString>;
|
|
396
|
+
requirements: z.ZodOptional<z.ZodString>;
|
|
397
|
+
role: z.ZodOptional<z.ZodString>;
|
|
398
|
+
requiredDate: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
399
|
+
estimatedDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
400
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
397
401
|
readonly ONSITE: "ONSITE";
|
|
398
402
|
readonly REMOTE: "REMOTE";
|
|
399
|
-
}
|
|
400
|
-
notes: z.ZodOptional<z.ZodString
|
|
401
|
-
compensation: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
402
|
-
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
403
|
-
eventId: z.ZodOptional<z.ZodUUID
|
|
403
|
+
}>>;
|
|
404
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
405
|
+
compensation: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
406
|
+
attachments: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
407
|
+
eventId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
408
|
+
saveAsDraft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
404
409
|
}, z.core.$strip>;
|
|
405
410
|
declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
406
411
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -427,6 +432,23 @@ declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
|
427
432
|
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
428
433
|
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
429
434
|
}, z.core.$strip>;
|
|
435
|
+
/** `GET /marketplace/job-listings/mine` (host) */
|
|
436
|
+
declare const ListHostMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
437
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
438
|
+
readonly DRAFT: "DRAFT";
|
|
439
|
+
readonly OPEN: "OPEN";
|
|
440
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
441
|
+
readonly CLOSED: "CLOSED";
|
|
442
|
+
readonly CANCELLED: "CANCELLED";
|
|
443
|
+
}>>;
|
|
444
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
445
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
/** `POST /marketplace/job-listings/:id/publish` (host owner) */
|
|
448
|
+
declare const PublishMarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
449
|
+
id: z.ZodUUID;
|
|
450
|
+
state: z.ZodLiteral<"OPEN">;
|
|
451
|
+
}, z.core.$strip>;
|
|
430
452
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
431
453
|
id: z.ZodUUID;
|
|
432
454
|
hostProfileId: z.ZodUUID;
|
|
@@ -446,14 +468,27 @@ declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
|
446
468
|
compensation: z.ZodNullable<z.ZodNumber>;
|
|
447
469
|
attachments: z.ZodNullable<z.ZodUnknown>;
|
|
448
470
|
state: z.ZodEnum<{
|
|
471
|
+
readonly DRAFT: "DRAFT";
|
|
449
472
|
readonly OPEN: "OPEN";
|
|
450
|
-
readonly CLOSED: "CLOSED";
|
|
451
473
|
readonly SUSPENDED: "SUSPENDED";
|
|
474
|
+
readonly CLOSED: "CLOSED";
|
|
475
|
+
readonly CANCELLED: "CANCELLED";
|
|
452
476
|
}>;
|
|
453
477
|
proposalCount: z.ZodNumber;
|
|
478
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
479
|
+
cancelledReason: z.ZodNullable<z.ZodString>;
|
|
454
480
|
createdAt: z.ZodString;
|
|
455
481
|
updatedAt: z.ZodString;
|
|
456
482
|
}, z.core.$strip>;
|
|
483
|
+
/** `POST /marketplace/job-listings/:id/cancel` (host owner) — mirrors HostEventCancelResponseSchema shape */
|
|
484
|
+
declare const CancelMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
485
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
declare const CancelMarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
488
|
+
id: z.ZodUUID;
|
|
489
|
+
state: z.ZodLiteral<"CANCELLED">;
|
|
490
|
+
cancelledAt: z.ZodNullable<z.ZodISODateTime>;
|
|
491
|
+
}, z.core.$strip>;
|
|
457
492
|
/** `POST .../indications-of-interest` */
|
|
458
493
|
declare const SubmitMarketplaceIndicationOfInterestRequestSchema: z.ZodObject<{
|
|
459
494
|
coverMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -503,22 +538,100 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
503
538
|
updatedAt: z.ZodString;
|
|
504
539
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
505
540
|
}, z.core.$strip>;
|
|
541
|
+
declare const HostIndicationOfInterestSortBy: {
|
|
542
|
+
readonly CREATED_AT: "createdAt";
|
|
543
|
+
readonly UPDATED_AT: "updatedAt";
|
|
544
|
+
readonly PROPOSED_AMOUNT: "proposedAmount";
|
|
545
|
+
};
|
|
546
|
+
declare const SortOrder: {
|
|
547
|
+
readonly ASC: "asc";
|
|
548
|
+
readonly DESC: "desc";
|
|
549
|
+
};
|
|
550
|
+
/** `GET /marketplace/job-listings/indications-of-interest/mine` (host inbox) */
|
|
551
|
+
declare const ListHostMarketplaceIndicationsQuerySchema: z.ZodObject<{
|
|
552
|
+
jobListingId: z.ZodOptional<z.ZodUUID>;
|
|
553
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
readonly OPEN: "OPEN";
|
|
555
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
556
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
557
|
+
readonly SELECTED: "SELECTED";
|
|
558
|
+
readonly REJECTED: "REJECTED";
|
|
559
|
+
}>>;
|
|
560
|
+
search: z.ZodOptional<z.ZodString>;
|
|
561
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
562
|
+
readonly CREATED_AT: "createdAt";
|
|
563
|
+
readonly UPDATED_AT: "updatedAt";
|
|
564
|
+
readonly PROPOSED_AMOUNT: "proposedAmount";
|
|
565
|
+
}>>;
|
|
566
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
567
|
+
readonly ASC: "asc";
|
|
568
|
+
readonly DESC: "desc";
|
|
569
|
+
}>>;
|
|
570
|
+
pageNumber: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
571
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
/** Host inbox row — IoI with applicant + parent job listing summary */
|
|
574
|
+
declare const MarketplaceHostIndicationOfInterestInboxItemSchema: z.ZodObject<{
|
|
575
|
+
id: z.ZodUUID;
|
|
576
|
+
jobListingId: z.ZodUUID;
|
|
577
|
+
producerProfileId: z.ZodUUID;
|
|
578
|
+
coverMessage: z.ZodNullable<z.ZodString>;
|
|
579
|
+
proposedAmount: z.ZodNullable<z.ZodNumber>;
|
|
580
|
+
availabilityNotes: z.ZodNullable<z.ZodString>;
|
|
581
|
+
state: z.ZodEnum<{
|
|
582
|
+
readonly OPEN: "OPEN";
|
|
583
|
+
readonly SHORTLISTED: "SHORTLISTED";
|
|
584
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
585
|
+
readonly SELECTED: "SELECTED";
|
|
586
|
+
readonly REJECTED: "REJECTED";
|
|
587
|
+
}>;
|
|
588
|
+
resultingBookingId: z.ZodNullable<z.ZodUUID>;
|
|
589
|
+
withdrawnAt: z.ZodNullable<z.ZodString>;
|
|
590
|
+
selectedAt: z.ZodNullable<z.ZodString>;
|
|
591
|
+
createdAt: z.ZodString;
|
|
592
|
+
updatedAt: z.ZodString;
|
|
593
|
+
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
594
|
+
producerDisplayName: z.ZodString;
|
|
595
|
+
producerServiceCategoryLabels: z.ZodArray<z.ZodString>;
|
|
596
|
+
producerIsVerified: z.ZodBoolean;
|
|
597
|
+
jobListingTitle: z.ZodString;
|
|
598
|
+
jobListingRole: z.ZodString;
|
|
599
|
+
jobListingState: z.ZodEnum<{
|
|
600
|
+
readonly DRAFT: "DRAFT";
|
|
601
|
+
readonly OPEN: "OPEN";
|
|
602
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
603
|
+
readonly CLOSED: "CLOSED";
|
|
604
|
+
readonly CANCELLED: "CANCELLED";
|
|
605
|
+
}>;
|
|
606
|
+
jobListingLocation: z.ZodEnum<{
|
|
607
|
+
readonly ONSITE: "ONSITE";
|
|
608
|
+
readonly REMOTE: "REMOTE";
|
|
609
|
+
}>;
|
|
610
|
+
jobListingEventId: z.ZodNullable<z.ZodUUID>;
|
|
611
|
+
jobListingEventTitle: z.ZodNullable<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>;
|
|
506
613
|
|
|
507
614
|
type CreateMarketplaceBookingRequest = z.infer<typeof CreateMarketplaceBookingRequestSchema>;
|
|
508
615
|
type MarketplaceBookingResponse = z.infer<typeof MarketplaceBookingResponseSchema>;
|
|
509
616
|
type CreateMarketplaceJobListingRequest = z.infer<typeof CreateMarketplaceJobListingRequestSchema>;
|
|
510
617
|
type UpdateMarketplaceJobListingRequest = z.infer<typeof UpdateMarketplaceJobListingRequestSchema>;
|
|
511
618
|
type ListMarketplaceJobListingsQuery = z.infer<typeof ListMarketplaceJobListingsQuerySchema>;
|
|
619
|
+
type ListHostMarketplaceJobListingsQuery = z.infer<typeof ListHostMarketplaceJobListingsQuerySchema>;
|
|
512
620
|
type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingResponseSchema>;
|
|
621
|
+
type PublishMarketplaceJobListingResponse = z.infer<typeof PublishMarketplaceJobListingResponseSchema>;
|
|
513
622
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
514
623
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
515
624
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
516
625
|
type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
|
|
626
|
+
type ListHostMarketplaceIndicationsQuery = z.infer<typeof ListHostMarketplaceIndicationsQuerySchema>;
|
|
627
|
+
type MarketplaceHostIndicationOfInterestInboxItem = z.infer<typeof MarketplaceHostIndicationOfInterestInboxItemSchema>;
|
|
517
628
|
type TransitionMarketplaceBookingRequest = z.infer<typeof TransitionMarketplaceBookingRequestSchema>;
|
|
518
629
|
type TransitionMarketplaceBookingResponse = z.infer<typeof TransitionMarketplaceBookingResponseSchema>;
|
|
519
630
|
type CompleteMarketplaceBookingRequest = z.infer<typeof CompleteMarketplaceBookingRequestSchema>;
|
|
520
631
|
type CompleteMarketplaceBookingResponse = z.infer<typeof CompleteMarketplaceBookingResponseSchema>;
|
|
521
632
|
type ForceCompleteMarketplaceBookingRequest = z.infer<typeof ForceCompleteMarketplaceBookingRequestSchema>;
|
|
633
|
+
type CancelMarketplaceJobListingRequest = z.infer<typeof CancelMarketplaceJobListingRequestSchema>;
|
|
634
|
+
type CancelMarketplaceJobListingResponse = z.infer<typeof CancelMarketplaceJobListingResponseSchema>;
|
|
522
635
|
|
|
523
636
|
declare const MessageDeliveryStatus: {
|
|
524
637
|
readonly SENT: "SENT";
|
|
@@ -1239,4 +1352,4 @@ type BookingAuditAttachmentAddedDetails = z.infer<typeof BookingAuditAttachmentA
|
|
|
1239
1352
|
type AdminBookingAuditEntry = z.infer<typeof AdminBookingAuditEntrySchema>;
|
|
1240
1353
|
type AdminBookingAuditResponse = z.infer<typeof AdminBookingAuditResponseSchema>;
|
|
1241
1354
|
|
|
1242
|
-
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 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, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, 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 MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceReviewResponse, MarketplaceReviewResponseSchema, MessageDeliveryStatus, type PostMarketplaceHiringThreadMessageRequest, PostMarketplaceHiringThreadMessageRequestSchema, type PostMarketplaceHiringThreadMessageResponse, PostMarketplaceHiringThreadMessageResponseSchema, type ProducerRecentReview, ProducerRecentReviewSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type TransitionMarketplaceBookingRequest, TransitionMarketplaceBookingRequestSchema, type TransitionMarketplaceBookingResponse, TransitionMarketplaceBookingResponseSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema, VALID_BOOKING_TRANSITIONS, bookingTransitionKey, bookingTransitionRequiresReason, canActorPerformBookingTransition, getAllowedBookingTargetStates, getBookingTransitionActors, isValidBookingTransition };
|
|
1355
|
+
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, 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 chunkIEBLOTOF_js=require('../chunk-IEBLOTOF.js'),chunkTO3WFEGT_js=require('../chunk-TO3WFEGT.js');require('../chunk-244RJ2YJ.js'),require('../chunk-DQG37GYU.js'),require('../chunk-L72M5DCH.js');Object.defineProperty(exports,"AdminBookingAuditEntrySchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.na}});Object.defineProperty(exports,"AdminBookingAuditResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.oa}});Object.defineProperty(exports,"BOOKING_TERMINAL_STATES",{enumerable:true,get:function(){return chunkIEBLOTOF_js.h}});Object.defineProperty(exports,"BOOKING_TRANSITION_ACTORS",{enumerable:true,get:function(){return chunkIEBLOTOF_js.j}});Object.defineProperty(exports,"BOOKING_TRANSITION_TARGETS_REQUIRING_REASON",{enumerable:true,get:function(){return chunkIEBLOTOF_js.k}});Object.defineProperty(exports,"BookingAuditAction",{enumerable:true,get:function(){return chunkIEBLOTOF_js.g}});Object.defineProperty(exports,"BookingAuditActorSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ha}});Object.defineProperty(exports,"BookingAuditAttachmentAddedDetailsSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ma}});Object.defineProperty(exports,"BookingAuditMessageSentDetailsSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.la}});Object.defineProperty(exports,"BookingAuditRequestMetadataSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ia}});Object.defineProperty(exports,"BookingAuditSnapshotSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ja}});Object.defineProperty(exports,"BookingAuditStateTransitionDetailsSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ka}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkIEBLOTOF_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkIEBLOTOF_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.t}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkIEBLOTOF_js.b}});Object.defineProperty(exports,"BookingTransitionActor",{enumerable:true,get:function(){return chunkIEBLOTOF_js.f}});Object.defineProperty(exports,"CancelMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.N}});Object.defineProperty(exports,"CancelMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.O}});Object.defineProperty(exports,"CompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.E}});Object.defineProperty(exports,"CompleteMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.G}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.s}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.r}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.u}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.z}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.B}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.H}});Object.defineProperty(exports,"ForceCompleteMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.F}});Object.defineProperty(exports,"GetMarketplaceHiringThreadResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.aa}});Object.defineProperty(exports,"HostIndicationOfInterestSortBy",{enumerable:true,get:function(){return chunkIEBLOTOF_js.S}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.x}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkIEBLOTOF_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.v}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkIEBLOTOF_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkIEBLOTOF_js.y}});Object.defineProperty(exports,"ListHostMarketplaceIndicationsQuerySchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.U}});Object.defineProperty(exports,"ListHostMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.K}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesQuerySchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js._}});Object.defineProperty(exports,"ListMarketplaceHiringThreadMessagesResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.$}});Object.defineProperty(exports,"ListMarketplaceHiringThreadsResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ga}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.J}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.da}});Object.defineProperty(exports,"MarkMarketplaceHiringThreadReadResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ea}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.A}});Object.defineProperty(exports,"MarketplaceHiringMessageAttachmentSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.Y}});Object.defineProperty(exports,"MarketplaceHiringMessageSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.Z}});Object.defineProperty(exports,"MarketplaceHiringThreadInboxItemSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.fa}});Object.defineProperty(exports,"MarketplaceHiringThreadSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.X}});Object.defineProperty(exports,"MarketplaceHostIndicationOfInterestInboxItemSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.V}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.R}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.Q}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.M}});Object.defineProperty(exports,"MessageDeliveryStatus",{enumerable:true,get:function(){return chunkIEBLOTOF_js.W}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ba}});Object.defineProperty(exports,"PostMarketplaceHiringThreadMessageResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.ca}});Object.defineProperty(exports,"PublishMarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.L}});Object.defineProperty(exports,"SortOrder",{enumerable:true,get:function(){return chunkIEBLOTOF_js.T}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.w}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.P}});Object.defineProperty(exports,"TransitionMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.C}});Object.defineProperty(exports,"TransitionMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.D}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkIEBLOTOF_js.I}});Object.defineProperty(exports,"VALID_BOOKING_TRANSITIONS",{enumerable:true,get:function(){return chunkIEBLOTOF_js.i}});Object.defineProperty(exports,"bookingTransitionKey",{enumerable:true,get:function(){return chunkIEBLOTOF_js.l}});Object.defineProperty(exports,"bookingTransitionRequiresReason",{enumerable:true,get:function(){return chunkIEBLOTOF_js.q}});Object.defineProperty(exports,"canActorPerformBookingTransition",{enumerable:true,get:function(){return chunkIEBLOTOF_js.p}});Object.defineProperty(exports,"getAllowedBookingTargetStates",{enumerable:true,get:function(){return chunkIEBLOTOF_js.m}});Object.defineProperty(exports,"getBookingTransitionActors",{enumerable:true,get:function(){return chunkIEBLOTOF_js.o}});Object.defineProperty(exports,"isValidBookingTransition",{enumerable:true,get:function(){return chunkIEBLOTOF_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{na as AdminBookingAuditEntrySchema,oa as AdminBookingAuditResponseSchema,h as BOOKING_TERMINAL_STATES,j as BOOKING_TRANSITION_ACTORS,k as BOOKING_TRANSITION_TARGETS_REQUIRING_REASON,g as BookingAuditAction,ha as BookingAuditActorSchema,ma as BookingAuditAttachmentAddedDetailsSchema,la as BookingAuditMessageSentDetailsSchema,ia as BookingAuditRequestMetadataSchema,ja as BookingAuditSnapshotSchema,ka as BookingAuditStateTransitionDetailsSchema,a as BookingOrigin,e as BookingPaymentStatus,t as BookingResponseSchema,b as BookingState,f as BookingTransitionActor,N as CancelMarketplaceJobListingRequestSchema,O 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,aa as GetMarketplaceHiringThreadResponseSchema,S as HostIndicationOfInterestSortBy,x as IndicationOfInterestResponseSchema,d as IoiState,v as JobListingResponseSchema,c as JobListingState,y as JobLocation,U as ListHostMarketplaceIndicationsQuerySchema,K as ListHostMarketplaceJobListingsQuerySchema,_ as ListMarketplaceHiringThreadMessagesQuerySchema,$ as ListMarketplaceHiringThreadMessagesResponseSchema,ga as ListMarketplaceHiringThreadsResponseSchema,J as ListMarketplaceJobListingsQuerySchema,da as MarkMarketplaceHiringThreadReadRequestSchema,ea as MarkMarketplaceHiringThreadReadResponseSchema,A as MarketplaceBookingResponseSchema,Y as MarketplaceHiringMessageAttachmentSchema,Z as MarketplaceHiringMessageSchema,fa as MarketplaceHiringThreadInboxItemSchema,X as MarketplaceHiringThreadSchema,V as MarketplaceHostIndicationOfInterestInboxItemSchema,R as MarketplaceIndicationOfInterestHostItemSchema,Q as MarketplaceIndicationOfInterestResponseSchema,M as MarketplaceJobListingResponseSchema,W as MessageDeliveryStatus,ba as PostMarketplaceHiringThreadMessageRequestSchema,ca as PostMarketplaceHiringThreadMessageResponseSchema,L as PublishMarketplaceJobListingResponseSchema,T as SortOrder,w as SubmitIndicationOfInterestRequestSchema,P 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-Z4JUUIN4.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-GAZT5E62.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk244RJ2YJ_js=require('./chunk-244RJ2YJ.js'),chunkDQG37GYU_js=require('./chunk-DQG37GYU.js'),chunkL72M5DCH_js=require('./chunk-L72M5DCH.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",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED"},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 x=[t.REJECTED,t.CANCELLED,t.CLOSED],b=[...x,t.IN_DISPUTE],B={[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]:[]},h={[`${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=B[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]:h[G(r,s)]??[]}function Z(r,s,g){return j(r,s).includes(g)}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 l={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),De=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"]});}),Te=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(l),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 g=S.safeParse(r);g.success||s.addIssue({code:"custom",message:g.error.issues.map(f=>f.message).join("; ")});}),ke=S.partial(),Le=zod.z.object({...chunkDQG37GYU_js.d.shape,location:zod.z.enum(l).optional()}),_e=zod.z.object({...chunkDQG37GYU_js.d.shape,state:zod.z.enum(I).optional()}),Me=zod.z.object({id:zod.z.uuid(),state:zod.z.literal("OPEN")}),Pe=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(l),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()}),xe=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(chunkL72M5DCH_js.a),resultingBookingId:zod.z.uuid().nullable(),withdrawnAt:zod.z.string().nullable(),selectedAt:zod.z.string().nullable(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),$=J.extend({producerCompanyName:zod.z.string().nullable()}),k={CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",PROPOSED_AMOUNT:"proposedAmount"},L={ASC:"asc",DESC:"desc"},he=zod.z.object({...chunkDQG37GYU_js.d.shape,jobListingId:zod.z.uuid().optional(),state:zod.z.enum(chunkL72M5DCH_js.a).optional(),search:zod.z.string().trim().min(2).max(120).optional(),sortBy:zod.z.enum(k).default(k.CREATED_AT),sortOrder:zod.z.enum(L).default(L.DESC)}),ye=$.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(l),jobListingEventId:zod.z.uuid().nullable(),jobListingEventTitle:zod.z.string().nullable()});var M={SENT:"SENT",DELIVERED:"DELIVERED",READ:"READ"};var H=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)}),He=chunkDQG37GYU_js.d,We=zod.z.object({messages:zod.z.array(A),...chunkDQG37GYU_js.e.shape}),Fe=zod.z.object({thread:H,messages:zod.z.array(A),...chunkDQG37GYU_js.e.shape}),qe=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()}),Ke=zod.z.object({message:A}),we=zod.z.object({upToMessageId:zod.z.uuid().optional()}),Ve=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)}),Qe=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}),T=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=T.extend({beforeState:P.optional(),afterState:P.optional()}),w=T.extend({messageId:zod.z.string(),bodyPreview:zod.z.string(),attachmentCount:zod.z.number().int().nonnegative().optional()}),V=T.extend({messageId:zod.z.string(),attachmentId:zod.z.string(),url:zod.z.string(),mimeType:zod.z.string(),sizeBytes:zod.z.number().int().nonnegative()}),D={timestamp:zod.z.string().datetime(),actor:q};function u(r){return zod.z.object({...D,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({...D,action:zod.z.literal(E.MESSAGE_SENT),details:w}),zod.z.object({...D,action:zod.z.literal(E.ATTACHMENT_ADDED),details:V})]),tt=zod.z.object({items:zod.z.array(Q),...chunkDQG37GYU_js.e.shape});exports.$=We;exports.A=R;exports.B=Ae;exports.C=De;exports.D=Te;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=fe;exports.O=xe;exports.P=Be;exports.Q=J;exports.R=$;exports.S=k;exports.T=L;exports.U=he;exports.V=ye;exports.W=M;exports.X=H;exports.Y=W;exports.Z=A;exports._=He;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=F;exports.g=E;exports.ga=Qe;exports.h=x;exports.ha=q;exports.i=B;exports.ia=T;exports.j=h;exports.ja=P;exports.k=y;exports.ka=K;exports.l=G;exports.la=w;exports.m=U;exports.ma=V;exports.n=X;exports.na=Q;exports.o=j;exports.oa=tt;exports.p=Z;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=l;exports.z=Re;//# sourceMappingURL=chunk-IEBLOTOF.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-IEBLOTOF.js.map
|