@livdot-tech/contracts 1.5.1 → 1.5.3
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 +31 -5
- package/dist/booking/index.d.ts +31 -5
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-5Q4UOZ7K.js +2 -0
- package/dist/chunk-5Q4UOZ7K.js.map +1 -0
- package/dist/chunk-H3FA574X.mjs +2 -0
- package/dist/chunk-H3FA574X.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-6AKXCLBT.mjs +0 -2
- package/dist/chunk-6AKXCLBT.mjs.map +0 -1
- package/dist/chunk-THFSRA6W.js +0 -2
- package/dist/chunk-THFSRA6W.js.map +0 -1
package/dist/booking/index.d.mts
CHANGED
|
@@ -243,6 +243,16 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
243
243
|
updatedAt: z.ZodString;
|
|
244
244
|
}, z.core.$strip>;
|
|
245
245
|
}, z.core.$strip>;
|
|
246
|
+
/** Shared `limit` / `cursor` for host-scoped marketplace list endpoints */
|
|
247
|
+
declare const MarketplaceListPaginationQuerySchema: z.ZodObject<{
|
|
248
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
249
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
/** `GET /marketplace/bookings` */
|
|
252
|
+
declare const ListMarketplaceBookingsQuerySchema: z.ZodObject<{
|
|
253
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
254
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
255
|
+
}, z.core.$strip>;
|
|
246
256
|
declare const ListMarketplaceBookingsResponseSchema: z.ZodObject<{
|
|
247
257
|
bookings: z.ZodArray<z.ZodObject<{
|
|
248
258
|
id: z.ZodUUID;
|
|
@@ -273,6 +283,7 @@ declare const ListMarketplaceBookingsResponseSchema: z.ZodObject<{
|
|
|
273
283
|
createdAt: z.ZodString;
|
|
274
284
|
updatedAt: z.ZodString;
|
|
275
285
|
}, z.core.$strip>>;
|
|
286
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
276
287
|
}, z.core.$strip>;
|
|
277
288
|
/** `POST /marketplace/job-listings` */
|
|
278
289
|
declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
@@ -281,7 +292,7 @@ declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
|
281
292
|
responsibilities: z.ZodString;
|
|
282
293
|
requirements: z.ZodString;
|
|
283
294
|
role: z.ZodString;
|
|
284
|
-
requiredDate: z.ZodOptional<z.
|
|
295
|
+
requiredDate: z.ZodOptional<z.ZodISODateTime>;
|
|
285
296
|
estimatedDurationHours: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
286
297
|
location: z.ZodEnum<{
|
|
287
298
|
readonly ONSITE: "ONSITE";
|
|
@@ -298,7 +309,7 @@ declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
|
298
309
|
responsibilities: z.ZodOptional<z.ZodString>;
|
|
299
310
|
requirements: z.ZodOptional<z.ZodString>;
|
|
300
311
|
role: z.ZodOptional<z.ZodString>;
|
|
301
|
-
requiredDate: z.ZodOptional<z.ZodOptional<z.
|
|
312
|
+
requiredDate: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
302
313
|
estimatedDurationHours: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
303
314
|
location: z.ZodOptional<z.ZodEnum<{
|
|
304
315
|
readonly ONSITE: "ONSITE";
|
|
@@ -310,12 +321,17 @@ declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
|
310
321
|
eventId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
311
322
|
}, z.core.$strip>;
|
|
312
323
|
declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
313
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
314
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
315
324
|
location: z.ZodOptional<z.ZodEnum<{
|
|
316
325
|
readonly ONSITE: "ONSITE";
|
|
317
326
|
readonly REMOTE: "REMOTE";
|
|
318
327
|
}>>;
|
|
328
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
329
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
/** `GET /marketplace/job-listings/mine` */
|
|
332
|
+
declare const ListMarketplaceJobListingsMineQuerySchema: z.ZodObject<{
|
|
333
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
334
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
319
335
|
}, z.core.$strip>;
|
|
320
336
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
321
337
|
id: z.ZodUUID;
|
|
@@ -423,6 +439,11 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
423
439
|
updatedAt: z.ZodString;
|
|
424
440
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
425
441
|
}, z.core.$strip>;
|
|
442
|
+
/** `GET .../indications-of-interest` (host review list) */
|
|
443
|
+
declare const ListMarketplaceIndicationsOfInterestQuerySchema: z.ZodObject<{
|
|
444
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
445
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
446
|
+
}, z.core.$strip>;
|
|
426
447
|
declare const ListMarketplaceIndicationsOfInterestResponseSchema: z.ZodObject<{
|
|
427
448
|
indications: z.ZodArray<z.ZodObject<{
|
|
428
449
|
id: z.ZodUUID;
|
|
@@ -445,6 +466,7 @@ declare const ListMarketplaceIndicationsOfInterestResponseSchema: z.ZodObject<{
|
|
|
445
466
|
updatedAt: z.ZodString;
|
|
446
467
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
447
468
|
}, z.core.$strip>>;
|
|
469
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
448
470
|
}, z.core.$strip>;
|
|
449
471
|
|
|
450
472
|
type CreateMarketplaceBookingRequest = z.infer<typeof CreateMarketplaceBookingRequestSchema>;
|
|
@@ -457,8 +479,12 @@ type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingRespons
|
|
|
457
479
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
458
480
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
459
481
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
482
|
+
type MarketplaceListPaginationQuery = z.infer<typeof MarketplaceListPaginationQuerySchema>;
|
|
483
|
+
type ListMarketplaceBookingsQuery = z.infer<typeof ListMarketplaceBookingsQuerySchema>;
|
|
460
484
|
type ListMarketplaceBookingsResponse = z.infer<typeof ListMarketplaceBookingsResponseSchema>;
|
|
485
|
+
type ListMarketplaceJobListingsMineQuery = z.infer<typeof ListMarketplaceJobListingsMineQuerySchema>;
|
|
486
|
+
type ListMarketplaceIndicationsOfInterestQuery = z.infer<typeof ListMarketplaceIndicationsOfInterestQuerySchema>;
|
|
461
487
|
type ListMarketplaceIndicationsOfInterestResponse = z.infer<typeof ListMarketplaceIndicationsOfInterestResponseSchema>;
|
|
462
488
|
type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
|
|
463
489
|
|
|
464
|
-
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, type ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema };
|
|
490
|
+
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceBookingsQuery, ListMarketplaceBookingsQuerySchema, type ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, type ListMarketplaceIndicationsOfInterestQuery, ListMarketplaceIndicationsOfInterestQuerySchema, type ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, type ListMarketplaceJobListingsMineQuery, ListMarketplaceJobListingsMineQuerySchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceListPaginationQuery, MarketplaceListPaginationQuerySchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema };
|
package/dist/booking/index.d.ts
CHANGED
|
@@ -243,6 +243,16 @@ declare const CreateMarketplaceBookingResponseSchema: z.ZodObject<{
|
|
|
243
243
|
updatedAt: z.ZodString;
|
|
244
244
|
}, z.core.$strip>;
|
|
245
245
|
}, z.core.$strip>;
|
|
246
|
+
/** Shared `limit` / `cursor` for host-scoped marketplace list endpoints */
|
|
247
|
+
declare const MarketplaceListPaginationQuerySchema: z.ZodObject<{
|
|
248
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
249
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
/** `GET /marketplace/bookings` */
|
|
252
|
+
declare const ListMarketplaceBookingsQuerySchema: z.ZodObject<{
|
|
253
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
254
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
255
|
+
}, z.core.$strip>;
|
|
246
256
|
declare const ListMarketplaceBookingsResponseSchema: z.ZodObject<{
|
|
247
257
|
bookings: z.ZodArray<z.ZodObject<{
|
|
248
258
|
id: z.ZodUUID;
|
|
@@ -273,6 +283,7 @@ declare const ListMarketplaceBookingsResponseSchema: z.ZodObject<{
|
|
|
273
283
|
createdAt: z.ZodString;
|
|
274
284
|
updatedAt: z.ZodString;
|
|
275
285
|
}, z.core.$strip>>;
|
|
286
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
276
287
|
}, z.core.$strip>;
|
|
277
288
|
/** `POST /marketplace/job-listings` */
|
|
278
289
|
declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
@@ -281,7 +292,7 @@ declare const CreateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
|
281
292
|
responsibilities: z.ZodString;
|
|
282
293
|
requirements: z.ZodString;
|
|
283
294
|
role: z.ZodString;
|
|
284
|
-
requiredDate: z.ZodOptional<z.
|
|
295
|
+
requiredDate: z.ZodOptional<z.ZodISODateTime>;
|
|
285
296
|
estimatedDurationHours: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
286
297
|
location: z.ZodEnum<{
|
|
287
298
|
readonly ONSITE: "ONSITE";
|
|
@@ -298,7 +309,7 @@ declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
|
298
309
|
responsibilities: z.ZodOptional<z.ZodString>;
|
|
299
310
|
requirements: z.ZodOptional<z.ZodString>;
|
|
300
311
|
role: z.ZodOptional<z.ZodString>;
|
|
301
|
-
requiredDate: z.ZodOptional<z.ZodOptional<z.
|
|
312
|
+
requiredDate: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
302
313
|
estimatedDurationHours: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
303
314
|
location: z.ZodOptional<z.ZodEnum<{
|
|
304
315
|
readonly ONSITE: "ONSITE";
|
|
@@ -310,12 +321,17 @@ declare const UpdateMarketplaceJobListingRequestSchema: z.ZodObject<{
|
|
|
310
321
|
eventId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
311
322
|
}, z.core.$strip>;
|
|
312
323
|
declare const ListMarketplaceJobListingsQuerySchema: z.ZodObject<{
|
|
313
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
314
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
315
324
|
location: z.ZodOptional<z.ZodEnum<{
|
|
316
325
|
readonly ONSITE: "ONSITE";
|
|
317
326
|
readonly REMOTE: "REMOTE";
|
|
318
327
|
}>>;
|
|
328
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
329
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
/** `GET /marketplace/job-listings/mine` */
|
|
332
|
+
declare const ListMarketplaceJobListingsMineQuerySchema: z.ZodObject<{
|
|
333
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
334
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
319
335
|
}, z.core.$strip>;
|
|
320
336
|
declare const MarketplaceJobListingResponseSchema: z.ZodObject<{
|
|
321
337
|
id: z.ZodUUID;
|
|
@@ -423,6 +439,11 @@ declare const MarketplaceIndicationOfInterestHostItemSchema: z.ZodObject<{
|
|
|
423
439
|
updatedAt: z.ZodString;
|
|
424
440
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
425
441
|
}, z.core.$strip>;
|
|
442
|
+
/** `GET .../indications-of-interest` (host review list) */
|
|
443
|
+
declare const ListMarketplaceIndicationsOfInterestQuerySchema: z.ZodObject<{
|
|
444
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
445
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
446
|
+
}, z.core.$strip>;
|
|
426
447
|
declare const ListMarketplaceIndicationsOfInterestResponseSchema: z.ZodObject<{
|
|
427
448
|
indications: z.ZodArray<z.ZodObject<{
|
|
428
449
|
id: z.ZodUUID;
|
|
@@ -445,6 +466,7 @@ declare const ListMarketplaceIndicationsOfInterestResponseSchema: z.ZodObject<{
|
|
|
445
466
|
updatedAt: z.ZodString;
|
|
446
467
|
producerCompanyName: z.ZodNullable<z.ZodString>;
|
|
447
468
|
}, z.core.$strip>>;
|
|
469
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
448
470
|
}, z.core.$strip>;
|
|
449
471
|
|
|
450
472
|
type CreateMarketplaceBookingRequest = z.infer<typeof CreateMarketplaceBookingRequestSchema>;
|
|
@@ -457,8 +479,12 @@ type MarketplaceJobListingResponse = z.infer<typeof MarketplaceJobListingRespons
|
|
|
457
479
|
type SubmitMarketplaceIndicationOfInterestRequest = z.infer<typeof SubmitMarketplaceIndicationOfInterestRequestSchema>;
|
|
458
480
|
type MarketplaceIndicationOfInterestResponse = z.infer<typeof MarketplaceIndicationOfInterestResponseSchema>;
|
|
459
481
|
type CreateMarketplaceBookingResponse = z.infer<typeof CreateMarketplaceBookingResponseSchema>;
|
|
482
|
+
type MarketplaceListPaginationQuery = z.infer<typeof MarketplaceListPaginationQuerySchema>;
|
|
483
|
+
type ListMarketplaceBookingsQuery = z.infer<typeof ListMarketplaceBookingsQuerySchema>;
|
|
460
484
|
type ListMarketplaceBookingsResponse = z.infer<typeof ListMarketplaceBookingsResponseSchema>;
|
|
485
|
+
type ListMarketplaceJobListingsMineQuery = z.infer<typeof ListMarketplaceJobListingsMineQuerySchema>;
|
|
486
|
+
type ListMarketplaceIndicationsOfInterestQuery = z.infer<typeof ListMarketplaceIndicationsOfInterestQuerySchema>;
|
|
461
487
|
type ListMarketplaceIndicationsOfInterestResponse = z.infer<typeof ListMarketplaceIndicationsOfInterestResponseSchema>;
|
|
462
488
|
type MarketplaceIndicationOfInterestHostItem = z.infer<typeof MarketplaceIndicationOfInterestHostItemSchema>;
|
|
463
489
|
|
|
464
|
-
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, type ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema };
|
|
490
|
+
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, type CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, type CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, type ListMarketplaceBookingsQuery, ListMarketplaceBookingsQuerySchema, type ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, type ListMarketplaceIndicationsOfInterestQuery, ListMarketplaceIndicationsOfInterestQuerySchema, type ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, type ListMarketplaceJobListingsMineQuery, ListMarketplaceJobListingsMineQuerySchema, type ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, type ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, type MarketplaceBookingResponse, MarketplaceBookingResponseSchema, type MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, type MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, type MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, type MarketplaceListPaginationQuery, MarketplaceListPaginationQuerySchema, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, type SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, type UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema };
|
package/dist/booking/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk5Q4UOZ7K_js=require('../chunk-5Q4UOZ7K.js');require('../chunk-L72M5DCH.js');Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.h}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.b}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.g}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.f}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.i}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.n}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.p}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.t}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.l}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.j}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.m}});Object.defineProperty(exports,"ListMarketplaceBookingsQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.r}});Object.defineProperty(exports,"ListMarketplaceBookingsResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.s}});Object.defineProperty(exports,"ListMarketplaceIndicationsOfInterestQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.C}});Object.defineProperty(exports,"ListMarketplaceIndicationsOfInterestResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.D}});Object.defineProperty(exports,"ListMarketplaceJobListingsMineQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.w}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.v}});Object.defineProperty(exports,"ListMarketplaceJobListingsResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.y}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.o}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.B}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.A}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.x}});Object.defineProperty(exports,"MarketplaceListPaginationQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.q}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.k}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.z}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.u}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/booking/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as BookingOrigin,e as BookingPaymentStatus,h as BookingResponseSchema,b as BookingState,g as ConfirmBookingRequestSchema,f as CreateBookingRequestSchema,i as CreateJobListingRequestSchema,n as CreateMarketplaceBookingRequestSchema,p as CreateMarketplaceBookingResponseSchema,
|
|
1
|
+
export{a as BookingOrigin,e as BookingPaymentStatus,h as BookingResponseSchema,b as BookingState,g as ConfirmBookingRequestSchema,f as CreateBookingRequestSchema,i as CreateJobListingRequestSchema,n as CreateMarketplaceBookingRequestSchema,p as CreateMarketplaceBookingResponseSchema,t as CreateMarketplaceJobListingRequestSchema,l as IndicationOfInterestResponseSchema,d as IoiState,j as JobListingResponseSchema,c as JobListingState,m as JobLocation,r as ListMarketplaceBookingsQuerySchema,s as ListMarketplaceBookingsResponseSchema,C as ListMarketplaceIndicationsOfInterestQuerySchema,D as ListMarketplaceIndicationsOfInterestResponseSchema,w as ListMarketplaceJobListingsMineQuerySchema,v as ListMarketplaceJobListingsQuerySchema,y as ListMarketplaceJobListingsResponseSchema,o as MarketplaceBookingResponseSchema,B as MarketplaceIndicationOfInterestHostItemSchema,A as MarketplaceIndicationOfInterestResponseSchema,x as MarketplaceJobListingResponseSchema,q as MarketplaceListPaginationQuerySchema,k as SubmitIndicationOfInterestRequestSchema,z as SubmitMarketplaceIndicationOfInterestRequestSchema,u as UpdateMarketplaceJobListingRequestSchema}from'../chunk-H3FA574X.mjs';import'../chunk-GAZT5E62.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkL72M5DCH_js=require('./chunk-L72M5DCH.js'),zod=require('zod');var o={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},n={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"},i={OPEN:"OPEN",CLOSED:"CLOSED",SUSPENDED:"SUSPENDED"},u={OPEN:"OPEN",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED"},p={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"};var R=zod.z.object({origin:zod.z.enum(o),eventId:zod.z.uuid().optional(),producerId:zod.z.uuid(),agreedAmount:zod.z.number().min(0),serviceDetails:zod.z.object({requiredDate:zod.z.iso.datetime(),location:zod.z.string(),eventType:zod.z.string(),estimatedDurationHrs:zod.z.number(),notes:zod.z.string().optional()}).optional()}),D=zod.z.object({escrowReference:zod.z.string()}),k=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(n),paymentStatus:zod.z.enum(p),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()}),x=zod.z.object({title:zod.z.string().max(255),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationHrs:zod.z.number().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional()}),L=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(),estimatedDurationHrs:zod.z.number().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()}),N=zod.z.object({coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().min(0).optional(),availabilityNotes:zod.z.string().optional()}),f=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(u),createdAt:zod.z.iso.datetime()});var r={ONSITE:"ONSITE",REMOTE:"REMOTE"};var c=zod.z.record(zod.z.string(),zod.z.unknown()),M=zod.z.object({producerId:zod.z.uuid(),origin:zod.z.enum(o),eventId:zod.z.uuid().optional(),jobListingId:zod.z.uuid().optional(),agreedAmount:zod.z.coerce.number().nonnegative().optional(),scopeOfWork:zod.z.string().max(5e3).optional()}),l=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().nullable(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),origin:zod.z.enum(o),jobListingId:zod.z.uuid().nullable(),sourceIoiId:zod.z.uuid().nullable(),state:zod.z.enum(n),createdAt:zod.z.string(),updatedAt:zod.z.string()}),P=zod.z.object({bookingId:zod.z.uuid(),booking:l}),a=zod.z.object({limit:zod.z.coerce.number().int().min(1).max(50).optional(),cursor:zod.z.uuid().optional()}),B=a,J=zod.z.object({bookings:zod.z.array(l),nextCursor:zod.z.uuid().nullable()}),d=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(),estimatedDurationHours:zod.z.coerce.number().int().positive().optional(),location:zod.z.enum(r),notes:zod.z.string().max(2e3).optional(),compensation:zod.z.coerce.number().nonnegative().optional(),attachments:c.optional(),eventId:zod.z.uuid().optional()}),j=d,_=d.partial(),v=zod.z.object({...a.shape,location:zod.z.enum(r).optional()}),q=a,m=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(),estimatedDurationHours:zod.z.number().int().nullable(),location:zod.z.enum(r),compensation:zod.z.number().nullable(),attachments:zod.z.unknown().nullable(),state:zod.z.enum(i),proposalCount:zod.z.number().int(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),U=zod.z.object({jobListings:zod.z.array(m),nextCursor:zod.z.uuid().nullable()}),G=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:c.optional()}),g=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()}),E=g.extend({producerCompanyName:zod.z.string().nullable()}),W=a,F=zod.z.object({indications:zod.z.array(E),nextCursor:zod.z.uuid().nullable()});exports.A=g;exports.B=E;exports.C=W;exports.D=F;exports.a=o;exports.b=n;exports.c=i;exports.d=u;exports.e=p;exports.f=R;exports.g=D;exports.h=k;exports.i=x;exports.j=L;exports.k=N;exports.l=f;exports.m=r;exports.n=M;exports.o=l;exports.p=P;exports.q=a;exports.r=B;exports.s=J;exports.t=j;exports.u=_;exports.v=v;exports.w=q;exports.x=m;exports.y=U;exports.z=G;//# sourceMappingURL=chunk-5Q4UOZ7K.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-5Q4UOZ7K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/booking/booking.enums.ts","../src/booking/booking.schemas.ts","../src/booking/hiring.enums.ts","../src/booking/hiring.schemas.ts"],"names":["BookingOrigin","BookingState","JobListingState","IoiState","BookingPaymentStatus","CreateBookingRequestSchema","z","ConfirmBookingRequestSchema","BookingResponseSchema","CreateJobListingRequestSchema","JobListingResponseSchema","SubmitIndicationOfInterestRequestSchema","IndicationOfInterestResponseSchema","JobLocation","jsonRecordSchema","CreateMarketplaceBookingRequestSchema","MarketplaceBookingResponseSchema","CreateMarketplaceBookingResponseSchema","MarketplaceListPaginationQuerySchema","ListMarketplaceBookingsQuerySchema","ListMarketplaceBookingsResponseSchema","MarketplaceJobListingBodySchema","CreateMarketplaceJobListingRequestSchema","UpdateMarketplaceJobListingRequestSchema","ListMarketplaceJobListingsQuerySchema","ListMarketplaceJobListingsMineQuerySchema","MarketplaceJobListingResponseSchema","ListMarketplaceJobListingsResponseSchema","SubmitMarketplaceIndicationOfInterestRequestSchema","MarketplaceIndicationOfInterestResponseSchema","JobInterestState","MarketplaceIndicationOfInterestHostItemSchema","ListMarketplaceIndicationsOfInterestQuerySchema","ListMarketplaceIndicationsOfInterestResponseSchema"],"mappings":"oFAAO,IAAMA,CAAAA,CAAgB,CAC3B,YAAA,CAAc,cAAA,CACd,kBAAA,CAAoB,oBAAA,CACpB,WAAA,CAAa,aACf,CAAA,CAGaC,CAAAA,CAAe,CAC1B,SAAA,CAAW,WAAA,CACX,0BAAA,CAA4B,4BAAA,CAC5B,cAAA,CAAgB,gBAAA,CAChB,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,SAAA,CAAW,WAAA,CACX,uBAAA,CAAyB,yBAAA,CACzB,SAAA,CAAW,WAAA,CACX,WAAA,CAAa,aAAA,CACb,kBAAmB,mBAAA,CACnB,UAAA,CAAY,YAAA,CACZ,MAAA,CAAQ,QACV,CAAA,CAGaC,CAAAA,CAAkB,CAC7B,IAAA,CAAM,MAAA,CACN,MAAA,CAAQ,QAAA,CACR,SAAA,CAAW,WACb,CAAA,CAGaC,CAAAA,CAAW,CACtB,IAAA,CAAM,MAAA,CACN,SAAA,CAAW,WAAA,CACX,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UACZ,CAAA,CAMaC,CAAAA,CAAuB,CAClC,OAAA,CAAS,SAAA,CACT,cAAe,eAAA,CACf,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,MAAA,CAAQ,QACV,ECtCO,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ingOrigin = (typeof BookingOrigin)[keyof typeof BookingOrigin];\n\nexport const BookingState = {\n REQUESTED: 'REQUESTED',\n AWAITING_PRODUCER_RESPONSE: 'AWAITING_PRODUCER_RESPONSE',\n IN_NEGOTIATION: 'IN_NEGOTIATION',\n ACCEPTED: 'ACCEPTED',\n REJECTED: 'REJECTED',\n CANCELLED: 'CANCELLED',\n AWAITING_ESCROW_FUNDING: 'AWAITING_ESCROW_FUNDING',\n CONFIRMED: 'CONFIRMED',\n IN_PROGRESS: 'IN_PROGRESS',\n SERVICE_COMPLETED: 'SERVICE_COMPLETED',\n IN_DISPUTE: 'IN_DISPUTE',\n CLOSED: 'CLOSED',\n} as const;\nexport type BookingState = (typeof BookingState)[keyof typeof BookingState];\n\nexport const JobListingState = {\n OPEN: 'OPEN',\n CLOSED: 'CLOSED',\n SUSPENDED: 'SUSPENDED',\n} as const;\nexport type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];\n\nexport const IoiState = {\n OPEN: 'OPEN',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n} as const;\nexport type IoiState = (typeof IoiState)[keyof typeof IoiState];\n\n/**\n * Enum for booking payment status.\n */\nexport const BookingPaymentStatus = {\n PENDING: 'PENDING',\n ESCROW_FUNDED: 'ESCROW_FUNDED',\n RELEASED: 'RELEASED',\n REFUNDED: 'REFUNDED',\n FAILED: 'FAILED',\n} as const;\nexport type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];\n","import { z } from 'zod';\nimport {\n BookingOrigin,\n BookingState,\n JobListingState,\n IoiState,\n BookingPaymentStatus,\n} from './booking.enums';\n\nexport const CreateBookingRequestSchema = z.object({\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n producerId: z.uuid(),\n agreedAmount: z.number().min(0),\n serviceDetails: z\n .object({\n requiredDate: z.iso.datetime(),\n location: z.string(),\n eventType: z.string(),\n estimatedDurationHrs: z.number(),\n notes: z.string().optional(),\n })\n .optional(),\n});\n\nexport const ConfirmBookingRequestSchema = z.object({\n escrowReference: z.string(),\n});\n\nexport const BookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().optional(),\n hostId: z.uuid(),\n producerId: z.uuid(),\n quotedPrice: z.number(),\n currency: z.string(),\n scopeOfWork: z.record(z.string(), z.any()).optional(),\n requiredStartAt: z.iso.datetime(),\n requiredEndAt: z.iso.datetime(),\n bookingState: z.enum(BookingState),\n paymentStatus: z.enum(BookingPaymentStatus),\n escrowReference: z.string().optional(),\n completedAt: z.iso.datetime().optional(),\n hostRating: z.number().optional(),\n hostReview: z.string().optional(),\n producerRating: z.number().optional(),\n producerReview: z.string().optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const CreateJobListingRequestSchema = z.object({\n title: z.string().max(255),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n});\n\nexport const JobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().optional(),\n title: z.string(),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n state: z.enum(JobListingState),\n proposalCount: z.number(),\n createdAt: z.iso.datetime(),\n});\n\nexport const SubmitIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().optional(),\n proposedAmount: z.number().min(0).optional(),\n availabilityNotes: z.string().optional(),\n});\n\nexport const IndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().optional(),\n proposedAmount: z.number().optional(),\n state: z.enum(IoiState),\n createdAt: z.iso.datetime(),\n});\n","export const JobLocation = {\n ONSITE: 'ONSITE',\n REMOTE: 'REMOTE',\n} as const;\nexport type JobLocation = (typeof JobLocation)[keyof typeof JobLocation];\n","import { z } from 'zod';\nimport { JobInterestState } from '../joblisting/listing.enum';\nimport { BookingOrigin, BookingState, JobListingState } from './booking.enums';\nimport { JobLocation } from './hiring.enums';\n\nconst jsonRecordSchema = z.record(z.string(), z.unknown());\n\n/** `POST /marketplace/bookings` */\nexport const CreateMarketplaceBookingRequestSchema = z.object({\n producerId: z.uuid(),\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n jobListingId: z.uuid().optional(),\n agreedAmount: z.coerce.number().nonnegative().optional(),\n scopeOfWork: z.string().max(5000).optional(),\n});\n\nexport const MarketplaceBookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().nullable(),\n hostProfileId: z.uuid(),\n producerProfileId: z.uuid(),\n origin: z.enum(BookingOrigin),\n jobListingId: z.uuid().nullable(),\n sourceIoiId: z.uuid().nullable(),\n state: z.enum(BookingState),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** `POST /marketplace/bookings` — create acknowledgement */\nexport const CreateMarketplaceBookingResponseSchema = z.object({\n bookingId: z.uuid(),\n booking: MarketplaceBookingResponseSchema,\n});\n\n/** Shared `limit` / `cursor` for host-scoped marketplace list endpoints */\nexport const MarketplaceListPaginationQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(50).optional(),\n cursor: z.uuid().optional(),\n});\n\n/** `GET /marketplace/bookings` */\nexport const ListMarketplaceBookingsQuerySchema = MarketplaceListPaginationQuerySchema;\n\nexport const ListMarketplaceBookingsResponseSchema = z.object({\n bookings: z.array(MarketplaceBookingResponseSchema),\n nextCursor: z.uuid().nullable(),\n});\n\nconst MarketplaceJobListingBodySchema = z.object({\n title: z.string().min(1).max(200),\n description: z.string().min(1).max(5000),\n responsibilities: z.string().min(1),\n requirements: z.string().min(1),\n role: z.string().min(1).max(120),\n requiredDate: z.iso.datetime().optional(),\n estimatedDurationHours: z.coerce.number().int().positive().optional(),\n location: z.enum(JobLocation),\n notes: z.string().max(2000).optional(),\n compensation: z.coerce.number().nonnegative().optional(),\n attachments: jsonRecordSchema.optional(),\n eventId: z.uuid().optional(),\n});\n\n/** `POST /marketplace/job-listings` */\nexport const CreateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema;\n\nexport const UpdateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema.partial();\n\nexport const ListMarketplaceJobListingsQuerySchema = z.object({\n ...MarketplaceListPaginationQuerySchema.shape,\n location: z.enum(JobLocation).optional(),\n});\n\n/** `GET /marketplace/job-listings/mine` */\nexport const ListMarketplaceJobListingsMineQuerySchema = MarketplaceListPaginationQuerySchema;\n\nexport const MarketplaceJobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().nullable(),\n title: z.string(),\n notes: z.string().nullable(),\n description: z.string(),\n responsibilities: z.string(),\n requirements: z.string(),\n role: z.string(),\n requiredDate: z.string().nullable(),\n estimatedDurationHours: z.number().int().nullable(),\n location: z.enum(JobLocation),\n compensation: z.number().nullable(),\n attachments: z.unknown().nullable(),\n state: z.enum(JobListingState),\n proposalCount: z.number().int(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const ListMarketplaceJobListingsResponseSchema = z.object({\n jobListings: z.array(MarketplaceJobListingResponseSchema),\n nextCursor: z.uuid().nullable(),\n});\n\n/** `POST .../indications-of-interest` */\nexport const SubmitMarketplaceIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().min(1).max(2000).optional(),\n proposedAmount: z.coerce.number().nonnegative().optional(),\n availabilityNotes: z.string().max(2000).optional(),\n attachments: jsonRecordSchema.optional(),\n});\n\nexport const MarketplaceIndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().nullable(),\n proposedAmount: z.number().nullable(),\n availabilityNotes: z.string().nullable(),\n state: z.enum(JobInterestState),\n resultingBookingId: z.uuid().nullable(),\n withdrawnAt: z.string().nullable(),\n selectedAt: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** Host review row — IoI plus producer display label */\nexport const MarketplaceIndicationOfInterestHostItemSchema =\n MarketplaceIndicationOfInterestResponseSchema.extend({\n producerCompanyName: z.string().nullable(),\n });\n\n/** `GET .../indications-of-interest` (host review list) */\nexport const ListMarketplaceIndicationsOfInterestQuerySchema = MarketplaceListPaginationQuerySchema;\n\nexport const ListMarketplaceIndicationsOfInterestResponseSchema = z.object({\n indications: z.array(MarketplaceIndicationOfInterestHostItemSchema),\n nextCursor: z.uuid().nullable(),\n});\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-GAZT5E62.mjs';import {z}from'zod';var o={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},n={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"},i={OPEN:"OPEN",CLOSED:"CLOSED",SUSPENDED:"SUSPENDED"},u={OPEN:"OPEN",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED"},p={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"};var R=z.object({origin:z.enum(o),eventId:z.uuid().optional(),producerId:z.uuid(),agreedAmount:z.number().min(0),serviceDetails:z.object({requiredDate:z.iso.datetime(),location:z.string(),eventType:z.string(),estimatedDurationHrs:z.number(),notes:z.string().optional()}).optional()}),D=z.object({escrowReference:z.string()}),k=z.object({id:z.uuid(),eventId:z.uuid().optional(),hostId:z.uuid(),producerId:z.uuid(),quotedPrice:z.number(),currency:z.string(),scopeOfWork:z.record(z.string(),z.any()).optional(),requiredStartAt:z.iso.datetime(),requiredEndAt:z.iso.datetime(),bookingState:z.enum(n),paymentStatus:z.enum(p),escrowReference:z.string().optional(),completedAt:z.iso.datetime().optional(),hostRating:z.number().optional(),hostReview:z.string().optional(),producerRating:z.number().optional(),producerReview:z.string().optional(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}),x=z.object({title:z.string().max(255),description:z.string(),requiredDate:z.iso.datetime(),estimatedDurationHrs:z.number().optional(),location:z.string(),budgetRangeMin:z.number().optional(),budgetRangeMax:z.number().optional()}),L=z.object({id:z.uuid(),hostProfileId:z.uuid(),eventId:z.uuid().optional(),title:z.string(),description:z.string(),requiredDate:z.iso.datetime(),estimatedDurationHrs:z.number().optional(),location:z.string(),budgetRangeMin:z.number().optional(),budgetRangeMax:z.number().optional(),state:z.enum(i),proposalCount:z.number(),createdAt:z.iso.datetime()}),N=z.object({coverMessage:z.string().optional(),proposedAmount:z.number().min(0).optional(),availabilityNotes:z.string().optional()}),f=z.object({id:z.uuid(),jobListingId:z.uuid(),producerProfileId:z.uuid(),coverMessage:z.string().optional(),proposedAmount:z.number().optional(),state:z.enum(u),createdAt:z.iso.datetime()});var r={ONSITE:"ONSITE",REMOTE:"REMOTE"};var c=z.record(z.string(),z.unknown()),M=z.object({producerId:z.uuid(),origin:z.enum(o),eventId:z.uuid().optional(),jobListingId:z.uuid().optional(),agreedAmount:z.coerce.number().nonnegative().optional(),scopeOfWork:z.string().max(5e3).optional()}),l=z.object({id:z.uuid(),eventId:z.uuid().nullable(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),origin:z.enum(o),jobListingId:z.uuid().nullable(),sourceIoiId:z.uuid().nullable(),state:z.enum(n),createdAt:z.string(),updatedAt:z.string()}),P=z.object({bookingId:z.uuid(),booking:l}),a=z.object({limit:z.coerce.number().int().min(1).max(50).optional(),cursor:z.uuid().optional()}),B=a,J=z.object({bookings:z.array(l),nextCursor:z.uuid().nullable()}),d=z.object({title:z.string().min(1).max(200),description:z.string().min(1).max(5e3),responsibilities:z.string().min(1),requirements:z.string().min(1),role:z.string().min(1).max(120),requiredDate:z.iso.datetime().optional(),estimatedDurationHours:z.coerce.number().int().positive().optional(),location:z.enum(r),notes:z.string().max(2e3).optional(),compensation:z.coerce.number().nonnegative().optional(),attachments:c.optional(),eventId:z.uuid().optional()}),j=d,_=d.partial(),v=z.object({...a.shape,location:z.enum(r).optional()}),q=a,m=z.object({id:z.uuid(),hostProfileId:z.uuid(),eventId:z.uuid().nullable(),title:z.string(),notes:z.string().nullable(),description:z.string(),responsibilities:z.string(),requirements:z.string(),role:z.string(),requiredDate:z.string().nullable(),estimatedDurationHours:z.number().int().nullable(),location:z.enum(r),compensation:z.number().nullable(),attachments:z.unknown().nullable(),state:z.enum(i),proposalCount:z.number().int(),createdAt:z.string(),updatedAt:z.string()}),U=z.object({jobListings:z.array(m),nextCursor:z.uuid().nullable()}),G=z.object({coverMessage:z.string().min(1).max(2e3).optional(),proposedAmount:z.coerce.number().nonnegative().optional(),availabilityNotes:z.string().max(2e3).optional(),attachments:c.optional()}),g=z.object({id:z.uuid(),jobListingId:z.uuid(),producerProfileId:z.uuid(),coverMessage:z.string().nullable(),proposedAmount:z.number().nullable(),availabilityNotes:z.string().nullable(),state:z.enum(a$1),resultingBookingId:z.uuid().nullable(),withdrawnAt:z.string().nullable(),selectedAt:z.string().nullable(),createdAt:z.string(),updatedAt:z.string()}),E=g.extend({producerCompanyName:z.string().nullable()}),W=a,F=z.object({indications:z.array(E),nextCursor:z.uuid().nullable()});export{g as A,E as B,W as C,F as D,o as a,n as b,i as c,u as d,p as e,R as f,D as g,k as h,x as i,L as j,N as k,f as l,r as m,M as n,l as o,P as p,a as q,B as r,J as s,j as t,_ as u,v,q as w,m as x,U as y,G as z};//# sourceMappingURL=chunk-H3FA574X.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-H3FA574X.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/booking/booking.enums.ts","../src/booking/booking.schemas.ts","../src/booking/hiring.enums.ts","../src/booking/hiring.schemas.ts"],"names":["BookingOrigin","BookingState","JobListingState","IoiState","BookingPaymentStatus","CreateBookingRequestSchema","z","ConfirmBookingRequestSchema","BookingResponseSchema","CreateJobListingRequestSchema","JobListingResponseSchema","SubmitIndicationOfInterestRequestSchema","IndicationOfInterestResponseSchema","JobLocation","jsonRecordSchema","CreateMarketplaceBookingRequestSchema","MarketplaceBookingResponseSchema","CreateMarketplaceBookingResponseSchema","MarketplaceListPaginationQuerySchema","ListMarketplaceBookingsQuerySchema","ListMarketplaceBookingsResponseSchema","MarketplaceJobListingBodySchema","CreateMarketplaceJobListingRequestSchema","UpdateMarketplaceJobListingRequestSchema","ListMarketplaceJobListingsQuerySchema","ListMarketplaceJobListingsMineQuerySchema","MarketplaceJobListingResponseSchema","ListMarketplaceJobListingsResponseSchema","SubmitMarketplaceIndicationOfInterestRequestSchema","MarketplaceIndicationOfInterestResponseSchema","JobInterestState","MarketplaceIndicationOfInterestHostItemSchema","ListMarketplaceIndicationsOfInterestQuerySchema","ListMarketplaceIndicationsOfInterestResponseSchema"],"mappings":"gEAAO,IAAMA,CAAAA,CAAgB,CAC3B,YAAA,CAAc,cAAA,CACd,kBAAA,CAAoB,oBAAA,CACpB,WAAA,CAAa,aACf,CAAA,CAGaC,CAAAA,CAAe,CAC1B,SAAA,CAAW,WAAA,CACX,0BAAA,CAA4B,4BAAA,CAC5B,cAAA,CAAgB,gBAAA,CAChB,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,SAAA,CAAW,WAAA,CACX,uBAAA,CAAyB,yBAAA,CACzB,SAAA,CAAW,WAAA,CACX,WAAA,CAAa,aAA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BvB,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAClC,CAAC,CAAA,CAGU0B,CAAAA,CAAkDd,CAAAA,CAElDe,CAAAA,CAAqD3B,CAAAA,CAAE,MAAA,CAAO,CACzE,WAAA,CAAaA,CAAAA,CAAE,KAAA,CAAMyB,CAA6C,CAAA,CAClE,UAAA,CAAYzB,CAAAA,CAAE,IAAA,EAAK,CAAE,QAAA,EACvB,CAAC","file":"chunk-H3FA574X.mjs","sourcesContent":["export const BookingOrigin = {\n EVENT_DIRECT: 'EVENT_DIRECT',\n MARKETPLACE_DIRECT: 'MARKETPLACE_DIRECT',\n JOB_LISTING: 'JOB_LISTING',\n} as const;\nexport type BookingOrigin = (typeof BookingOrigin)[keyof typeof BookingOrigin];\n\nexport const BookingState = {\n REQUESTED: 'REQUESTED',\n AWAITING_PRODUCER_RESPONSE: 'AWAITING_PRODUCER_RESPONSE',\n IN_NEGOTIATION: 'IN_NEGOTIATION',\n ACCEPTED: 'ACCEPTED',\n REJECTED: 'REJECTED',\n CANCELLED: 'CANCELLED',\n AWAITING_ESCROW_FUNDING: 'AWAITING_ESCROW_FUNDING',\n CONFIRMED: 'CONFIRMED',\n IN_PROGRESS: 'IN_PROGRESS',\n SERVICE_COMPLETED: 'SERVICE_COMPLETED',\n IN_DISPUTE: 'IN_DISPUTE',\n CLOSED: 'CLOSED',\n} as const;\nexport type BookingState = (typeof BookingState)[keyof typeof BookingState];\n\nexport const JobListingState = {\n OPEN: 'OPEN',\n CLOSED: 'CLOSED',\n SUSPENDED: 'SUSPENDED',\n} as const;\nexport type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];\n\nexport const IoiState = {\n OPEN: 'OPEN',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n} as const;\nexport type IoiState = (typeof IoiState)[keyof typeof IoiState];\n\n/**\n * Enum for booking payment status.\n */\nexport const BookingPaymentStatus = {\n PENDING: 'PENDING',\n ESCROW_FUNDED: 'ESCROW_FUNDED',\n RELEASED: 'RELEASED',\n REFUNDED: 'REFUNDED',\n FAILED: 'FAILED',\n} as const;\nexport type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];\n","import { z } from 'zod';\nimport {\n BookingOrigin,\n BookingState,\n JobListingState,\n IoiState,\n BookingPaymentStatus,\n} from './booking.enums';\n\nexport const CreateBookingRequestSchema = z.object({\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n producerId: z.uuid(),\n agreedAmount: z.number().min(0),\n serviceDetails: z\n .object({\n requiredDate: z.iso.datetime(),\n location: z.string(),\n eventType: z.string(),\n estimatedDurationHrs: z.number(),\n notes: z.string().optional(),\n })\n .optional(),\n});\n\nexport const ConfirmBookingRequestSchema = z.object({\n escrowReference: z.string(),\n});\n\nexport const BookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().optional(),\n hostId: z.uuid(),\n producerId: z.uuid(),\n quotedPrice: z.number(),\n currency: z.string(),\n scopeOfWork: z.record(z.string(), z.any()).optional(),\n requiredStartAt: z.iso.datetime(),\n requiredEndAt: z.iso.datetime(),\n bookingState: z.enum(BookingState),\n paymentStatus: z.enum(BookingPaymentStatus),\n escrowReference: z.string().optional(),\n completedAt: z.iso.datetime().optional(),\n hostRating: z.number().optional(),\n hostReview: z.string().optional(),\n producerRating: z.number().optional(),\n producerReview: z.string().optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const CreateJobListingRequestSchema = z.object({\n title: z.string().max(255),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n});\n\nexport const JobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().optional(),\n title: z.string(),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n state: z.enum(JobListingState),\n proposalCount: z.number(),\n createdAt: z.iso.datetime(),\n});\n\nexport const SubmitIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().optional(),\n proposedAmount: z.number().min(0).optional(),\n availabilityNotes: z.string().optional(),\n});\n\nexport const IndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().optional(),\n proposedAmount: z.number().optional(),\n state: z.enum(IoiState),\n createdAt: z.iso.datetime(),\n});\n","export const JobLocation = {\n ONSITE: 'ONSITE',\n REMOTE: 'REMOTE',\n} as const;\nexport type JobLocation = (typeof JobLocation)[keyof typeof JobLocation];\n","import { z } from 'zod';\nimport { JobInterestState } from '../joblisting/listing.enum';\nimport { BookingOrigin, BookingState, JobListingState } from './booking.enums';\nimport { JobLocation } from './hiring.enums';\n\nconst jsonRecordSchema = z.record(z.string(), z.unknown());\n\n/** `POST /marketplace/bookings` */\nexport const CreateMarketplaceBookingRequestSchema = z.object({\n producerId: z.uuid(),\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n jobListingId: z.uuid().optional(),\n agreedAmount: z.coerce.number().nonnegative().optional(),\n scopeOfWork: z.string().max(5000).optional(),\n});\n\nexport const MarketplaceBookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().nullable(),\n hostProfileId: z.uuid(),\n producerProfileId: z.uuid(),\n origin: z.enum(BookingOrigin),\n jobListingId: z.uuid().nullable(),\n sourceIoiId: z.uuid().nullable(),\n state: z.enum(BookingState),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** `POST /marketplace/bookings` — create acknowledgement */\nexport const CreateMarketplaceBookingResponseSchema = z.object({\n bookingId: z.uuid(),\n booking: MarketplaceBookingResponseSchema,\n});\n\n/** Shared `limit` / `cursor` for host-scoped marketplace list endpoints */\nexport const MarketplaceListPaginationQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(50).optional(),\n cursor: z.uuid().optional(),\n});\n\n/** `GET /marketplace/bookings` */\nexport const ListMarketplaceBookingsQuerySchema = MarketplaceListPaginationQuerySchema;\n\nexport const ListMarketplaceBookingsResponseSchema = z.object({\n bookings: z.array(MarketplaceBookingResponseSchema),\n nextCursor: z.uuid().nullable(),\n});\n\nconst MarketplaceJobListingBodySchema = z.object({\n title: z.string().min(1).max(200),\n description: z.string().min(1).max(5000),\n responsibilities: z.string().min(1),\n requirements: z.string().min(1),\n role: z.string().min(1).max(120),\n requiredDate: z.iso.datetime().optional(),\n estimatedDurationHours: z.coerce.number().int().positive().optional(),\n location: z.enum(JobLocation),\n notes: z.string().max(2000).optional(),\n compensation: z.coerce.number().nonnegative().optional(),\n attachments: jsonRecordSchema.optional(),\n eventId: z.uuid().optional(),\n});\n\n/** `POST /marketplace/job-listings` */\nexport const CreateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema;\n\nexport const UpdateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema.partial();\n\nexport const ListMarketplaceJobListingsQuerySchema = z.object({\n ...MarketplaceListPaginationQuerySchema.shape,\n location: z.enum(JobLocation).optional(),\n});\n\n/** `GET /marketplace/job-listings/mine` */\nexport const ListMarketplaceJobListingsMineQuerySchema = MarketplaceListPaginationQuerySchema;\n\nexport const MarketplaceJobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().nullable(),\n title: z.string(),\n notes: z.string().nullable(),\n description: z.string(),\n responsibilities: z.string(),\n requirements: z.string(),\n role: z.string(),\n requiredDate: z.string().nullable(),\n estimatedDurationHours: z.number().int().nullable(),\n location: z.enum(JobLocation),\n compensation: z.number().nullable(),\n attachments: z.unknown().nullable(),\n state: z.enum(JobListingState),\n proposalCount: z.number().int(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const ListMarketplaceJobListingsResponseSchema = z.object({\n jobListings: z.array(MarketplaceJobListingResponseSchema),\n nextCursor: z.uuid().nullable(),\n});\n\n/** `POST .../indications-of-interest` */\nexport const SubmitMarketplaceIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().min(1).max(2000).optional(),\n proposedAmount: z.coerce.number().nonnegative().optional(),\n availabilityNotes: z.string().max(2000).optional(),\n attachments: jsonRecordSchema.optional(),\n});\n\nexport const MarketplaceIndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().nullable(),\n proposedAmount: z.number().nullable(),\n availabilityNotes: z.string().nullable(),\n state: z.enum(JobInterestState),\n resultingBookingId: z.uuid().nullable(),\n withdrawnAt: z.string().nullable(),\n selectedAt: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** Host review row — IoI plus producer display label */\nexport const MarketplaceIndicationOfInterestHostItemSchema =\n MarketplaceIndicationOfInterestResponseSchema.extend({\n producerCompanyName: z.string().nullable(),\n });\n\n/** `GET .../indications-of-interest` (host review list) */\nexport const ListMarketplaceIndicationsOfInterestQuerySchema = MarketplaceListPaginationQuerySchema;\n\nexport const ListMarketplaceIndicationsOfInterestResponseSchema = z.object({\n indications: z.array(MarketplaceIndicationOfInterestHostItemSchema),\n nextCursor: z.uuid().nullable(),\n});\n"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ export { ApiError, ApiResponse, ApiResponseSchema, PaginatedResponse, Pagination
|
|
|
2
2
|
export { ChangePasswordRequest, ChangePasswordRequestSchema, CognitoTokenPayload, CognitoTokenPayloadSchema, ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, LoginRequest, LoginRequestSchema, LoginResponse, LoginResponseSchema, LogoutRequestPayload, LogoutRequestSchema, RefreshTokenRequest, RefreshTokenRequestSchema, RegisterRequest, RegisterRequestSchema, RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, ResetPasswordRequest, ResetPasswordRequestSchema, VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema } from './auth/index.mjs';
|
|
3
3
|
export { AccountStatus, AdminScopeCode, CreateHostProfileRequest, CreateHostProfileRequestSchema, CreateProducerProfileRequest, CreateProducerProfileRequestSchema, DisplayName, DisplayNameSchema, FeedbackCategory, HostProfileResponse, HostProfileResponseSchema, KycStatus, NotificationCategory, NotificationPreferenceItem, NotificationPreferenceItemSchema, NotificationPreferencesResponse, NotificationPreferencesResponseSchema, ProducerExperienceLevel, ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, RESERVED_DISPLAY_NAMES, SendFeedbackRequest, SendFeedbackRequestSchema, SendFeedbackResponse, SendFeedbackResponseSchema, UpdateNotificationPreferencesRequest, UpdateNotificationPreferencesRequestSchema, UpdateUserRequest, UpdateUserRequestSchema, UpdateViewerCurrencyRequest, UpdateViewerCurrencyRequestSchema, UpdateViewerProfileRequest, UpdateViewerProfileRequestSchema, UserResponse, UserResponseSchema, UserRole, ViewerMeResponse, ViewerMeResponseSchema } from './user/index.mjs';
|
|
4
4
|
export { CreateEventRequest, CreateEventRequestSchema, EndViewingSessionResponse, EndViewingSessionResponseSchema, EventAccessModel, EventAllowListType, EventCard, EventCardSchema, EventCategory, EventReplayAccess, EventResponse, EventResponseSchema, EventState, EventVisibility, LivePlayback, LivePlaybackSchema, MyEventCard, MyEventCardSchema, MyEventsQuery, MyEventsQuerySchema, MyEventsResponse, MyEventsResponseSchema, MyEventsTabSchema, PagedEventsResponse, PagedEventsResponseSchema, PaginationCursor, PaginationCursorSchema, PlaybackResponse, PlaybackResponseSchema, RegisterForEventResponse, RegisterForEventResponseSchema, RegistrationScope, RegistrationStatus, ReplayPlayback, ReplayPlaybackSchema, SearchEventsQuery, SearchEventsQuerySchema, StartViewingSessionResponse, StartViewingSessionResponseSchema, UpdateEventRequest, UpdateEventRequestSchema, UpdateWatchProgressRequestSchema, ViewerHomeResponse, ViewerHomeResponseSchema, ViewerRegistrationView, ViewingSessionHeartbeatResponse, ViewingSessionHeartbeatResponseSchema } from './event/index.mjs';
|
|
5
|
-
export { BookingOrigin, BookingPaymentStatus, BookingResponse, BookingResponseSchema, BookingState, ConfirmBookingRequest, ConfirmBookingRequestSchema, CreateBookingRequest, CreateBookingRequestSchema, CreateJobListingRequest, CreateJobListingRequestSchema, CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, MarketplaceBookingResponse, MarketplaceBookingResponseSchema, MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema } from './booking/index.mjs';
|
|
5
|
+
export { BookingOrigin, BookingPaymentStatus, BookingResponse, BookingResponseSchema, BookingState, ConfirmBookingRequest, ConfirmBookingRequestSchema, CreateBookingRequest, CreateBookingRequestSchema, CreateJobListingRequest, CreateJobListingRequestSchema, CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, ListMarketplaceBookingsQuery, ListMarketplaceBookingsQuerySchema, ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, ListMarketplaceIndicationsOfInterestQuery, ListMarketplaceIndicationsOfInterestQuerySchema, ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, ListMarketplaceJobListingsMineQuery, ListMarketplaceJobListingsMineQuerySchema, ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, MarketplaceBookingResponse, MarketplaceBookingResponseSchema, MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, MarketplaceListPaginationQuery, MarketplaceListPaginationQuerySchema, SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema } from './booking/index.mjs';
|
|
6
6
|
export { IngestCredentialsResponse, IngestCredentialsResponseSchema, IngestProtocol, PlaybackTokenResponse, PlaybackTokenResponseSchema, StreamStatus, TelemetryReportRequest, TelemetryReportRequestSchema } from './streaming/index.mjs';
|
|
7
7
|
export { AccessCheckRequest, AccessCheckRequestSchema, AccessCheckResponse, AccessCheckResponseSchema, AccessReason, CreatePurchaseResponse, CreatePurchaseResponseSchema, CtaMode, EntitlementStatus, InitiatePaymentRequest, InitiatePaymentRequestSchema, InitiatePaymentResponse, InitiatePaymentResponseSchema, PaymentStatus, PayoutResponse, PayoutResponseSchema, PayoutStatus, PaystackWebhook, PaystackWebhookSchema, PlatformChargeStatus, PricingQuoteResponse, PricingQuoteResponseSchema, PurchaseStatusResponse, PurchaseStatusResponseSchema, ReceiptUrlResponse, ReceiptUrlResponseSchema, ReplayPurchasePayment, ReplayPurchasePaymentSchema, ReplayPurchaseResponse, ReplayPurchaseResponseSchema, ReplayPurchaseRow, ReplayPurchaseRowSchema, ReplayPurchaseStatus, TransactionStatus, TransactionType, ViewerEventDetailResponseSchema } from './payment/index.mjs';
|
|
8
8
|
export { AdminApproveProducerVerification, AdminApproveProducerVerificationSchema, AdminProducerVerificationReasonBody, AdminProducerVerificationReasonBodySchema, AdminRejectProducerVerification, AdminRejectProducerVerificationSchema, AdminSuspendProducerVerification, AdminSuspendProducerVerificationSchema, EquipmentCategory, GetProducerProfileQuery, GetProducerProfileQuerySchema, ListProducersQuery, ListProducersQuerySchema, ListProducersResponse, ListProducersResponseSchema, MarketplaceCurrency, ProducerProfileWorkspace, ProducerProfileWorkspaceSchema, PublicProducerListCategory, PublicProducerListCategorySchema, PublicProducerListEquipmentItem, PublicProducerListEquipmentItemSchema, PublicProducerListItem, PublicProducerListItemSchema, PublicProducerListPortfolioItem, PublicProducerListPortfolioItemSchema, PublicProducerListRateCardItem, PublicProducerListRateCardItemSchema, ServiceCategoryCode, SubmitProducerForVerification, SubmitProducerForVerificationSchema, UpsertProducerWorkspaceProfile, UpsertProducerWorkspaceProfileSchema, WorkspaceEquipmentItemInput, WorkspaceEquipmentItemInputSchema, WorkspacePortfolioItemInput, WorkspacePortfolioItemInputSchema, WorkspaceRateCardItemInput, WorkspaceRateCardItemInputSchema } from './marketplace/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { ApiError, ApiResponse, ApiResponseSchema, PaginatedResponse, Pagination
|
|
|
2
2
|
export { ChangePasswordRequest, ChangePasswordRequestSchema, CognitoTokenPayload, CognitoTokenPayloadSchema, ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, LoginRequest, LoginRequestSchema, LoginResponse, LoginResponseSchema, LogoutRequestPayload, LogoutRequestSchema, RefreshTokenRequest, RefreshTokenRequestSchema, RegisterRequest, RegisterRequestSchema, RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, ResetPasswordRequest, ResetPasswordRequestSchema, VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema } from './auth/index.js';
|
|
3
3
|
export { AccountStatus, AdminScopeCode, CreateHostProfileRequest, CreateHostProfileRequestSchema, CreateProducerProfileRequest, CreateProducerProfileRequestSchema, DisplayName, DisplayNameSchema, FeedbackCategory, HostProfileResponse, HostProfileResponseSchema, KycStatus, NotificationCategory, NotificationPreferenceItem, NotificationPreferenceItemSchema, NotificationPreferencesResponse, NotificationPreferencesResponseSchema, ProducerExperienceLevel, ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, RESERVED_DISPLAY_NAMES, SendFeedbackRequest, SendFeedbackRequestSchema, SendFeedbackResponse, SendFeedbackResponseSchema, UpdateNotificationPreferencesRequest, UpdateNotificationPreferencesRequestSchema, UpdateUserRequest, UpdateUserRequestSchema, UpdateViewerCurrencyRequest, UpdateViewerCurrencyRequestSchema, UpdateViewerProfileRequest, UpdateViewerProfileRequestSchema, UserResponse, UserResponseSchema, UserRole, ViewerMeResponse, ViewerMeResponseSchema } from './user/index.js';
|
|
4
4
|
export { CreateEventRequest, CreateEventRequestSchema, EndViewingSessionResponse, EndViewingSessionResponseSchema, EventAccessModel, EventAllowListType, EventCard, EventCardSchema, EventCategory, EventReplayAccess, EventResponse, EventResponseSchema, EventState, EventVisibility, LivePlayback, LivePlaybackSchema, MyEventCard, MyEventCardSchema, MyEventsQuery, MyEventsQuerySchema, MyEventsResponse, MyEventsResponseSchema, MyEventsTabSchema, PagedEventsResponse, PagedEventsResponseSchema, PaginationCursor, PaginationCursorSchema, PlaybackResponse, PlaybackResponseSchema, RegisterForEventResponse, RegisterForEventResponseSchema, RegistrationScope, RegistrationStatus, ReplayPlayback, ReplayPlaybackSchema, SearchEventsQuery, SearchEventsQuerySchema, StartViewingSessionResponse, StartViewingSessionResponseSchema, UpdateEventRequest, UpdateEventRequestSchema, UpdateWatchProgressRequestSchema, ViewerHomeResponse, ViewerHomeResponseSchema, ViewerRegistrationView, ViewingSessionHeartbeatResponse, ViewingSessionHeartbeatResponseSchema } from './event/index.js';
|
|
5
|
-
export { BookingOrigin, BookingPaymentStatus, BookingResponse, BookingResponseSchema, BookingState, ConfirmBookingRequest, ConfirmBookingRequestSchema, CreateBookingRequest, CreateBookingRequestSchema, CreateJobListingRequest, CreateJobListingRequestSchema, CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, MarketplaceBookingResponse, MarketplaceBookingResponseSchema, MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema } from './booking/index.js';
|
|
5
|
+
export { BookingOrigin, BookingPaymentStatus, BookingResponse, BookingResponseSchema, BookingState, ConfirmBookingRequest, ConfirmBookingRequestSchema, CreateBookingRequest, CreateBookingRequestSchema, CreateJobListingRequest, CreateJobListingRequestSchema, CreateMarketplaceBookingRequest, CreateMarketplaceBookingRequestSchema, CreateMarketplaceBookingResponse, CreateMarketplaceBookingResponseSchema, CreateMarketplaceJobListingRequest, CreateMarketplaceJobListingRequestSchema, IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, JobListingResponse, JobListingResponseSchema, JobListingState, JobLocation, ListMarketplaceBookingsQuery, ListMarketplaceBookingsQuerySchema, ListMarketplaceBookingsResponse, ListMarketplaceBookingsResponseSchema, ListMarketplaceIndicationsOfInterestQuery, ListMarketplaceIndicationsOfInterestQuerySchema, ListMarketplaceIndicationsOfInterestResponse, ListMarketplaceIndicationsOfInterestResponseSchema, ListMarketplaceJobListingsMineQuery, ListMarketplaceJobListingsMineQuerySchema, ListMarketplaceJobListingsQuery, ListMarketplaceJobListingsQuerySchema, ListMarketplaceJobListingsResponse, ListMarketplaceJobListingsResponseSchema, MarketplaceBookingResponse, MarketplaceBookingResponseSchema, MarketplaceIndicationOfInterestHostItem, MarketplaceIndicationOfInterestHostItemSchema, MarketplaceIndicationOfInterestResponse, MarketplaceIndicationOfInterestResponseSchema, MarketplaceJobListingResponse, MarketplaceJobListingResponseSchema, MarketplaceListPaginationQuery, MarketplaceListPaginationQuerySchema, SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema, SubmitMarketplaceIndicationOfInterestRequest, SubmitMarketplaceIndicationOfInterestRequestSchema, UpdateMarketplaceJobListingRequest, UpdateMarketplaceJobListingRequestSchema } from './booking/index.js';
|
|
6
6
|
export { IngestCredentialsResponse, IngestCredentialsResponseSchema, IngestProtocol, PlaybackTokenResponse, PlaybackTokenResponseSchema, StreamStatus, TelemetryReportRequest, TelemetryReportRequestSchema } from './streaming/index.js';
|
|
7
7
|
export { AccessCheckRequest, AccessCheckRequestSchema, AccessCheckResponse, AccessCheckResponseSchema, AccessReason, CreatePurchaseResponse, CreatePurchaseResponseSchema, CtaMode, EntitlementStatus, InitiatePaymentRequest, InitiatePaymentRequestSchema, InitiatePaymentResponse, InitiatePaymentResponseSchema, PaymentStatus, PayoutResponse, PayoutResponseSchema, PayoutStatus, PaystackWebhook, PaystackWebhookSchema, PlatformChargeStatus, PricingQuoteResponse, PricingQuoteResponseSchema, PurchaseStatusResponse, PurchaseStatusResponseSchema, ReceiptUrlResponse, ReceiptUrlResponseSchema, ReplayPurchasePayment, ReplayPurchasePaymentSchema, ReplayPurchaseResponse, ReplayPurchaseResponseSchema, ReplayPurchaseRow, ReplayPurchaseRowSchema, ReplayPurchaseStatus, TransactionStatus, TransactionType, ViewerEventDetailResponseSchema } from './payment/index.js';
|
|
8
8
|
export { AdminApproveProducerVerification, AdminApproveProducerVerificationSchema, AdminProducerVerificationReasonBody, AdminProducerVerificationReasonBodySchema, AdminRejectProducerVerification, AdminRejectProducerVerificationSchema, AdminSuspendProducerVerification, AdminSuspendProducerVerificationSchema, EquipmentCategory, GetProducerProfileQuery, GetProducerProfileQuerySchema, ListProducersQuery, ListProducersQuerySchema, ListProducersResponse, ListProducersResponseSchema, MarketplaceCurrency, ProducerProfileWorkspace, ProducerProfileWorkspaceSchema, PublicProducerListCategory, PublicProducerListCategorySchema, PublicProducerListEquipmentItem, PublicProducerListEquipmentItemSchema, PublicProducerListItem, PublicProducerListItemSchema, PublicProducerListPortfolioItem, PublicProducerListPortfolioItemSchema, PublicProducerListRateCardItem, PublicProducerListRateCardItemSchema, ServiceCategoryCode, SubmitProducerForVerification, SubmitProducerForVerificationSchema, UpsertProducerWorkspaceProfile, UpsertProducerWorkspaceProfileSchema, WorkspaceEquipmentItemInput, WorkspaceEquipmentItemInputSchema, WorkspacePortfolioItemInput, WorkspacePortfolioItemInputSchema, WorkspaceRateCardItemInput, WorkspaceRateCardItemInputSchema } from './marketplace/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunk54FMKF33_js=require('./chunk-54FMKF33.js'),chunk4YYJEPT6_js=require('./chunk-4YYJEPT6.js'),chunkC3LOLFNN_js=require('./chunk-C3LOLFNN.js'),chunkC7FWAE4X_js=require('./chunk-C7FWAE4X.js'),chunk5ROSQD5N_js=require('./chunk-5ROSQD5N.js'),chunk2TQ3BI34_js=require('./chunk-2TQ3BI34.js'),chunkW2AXUTIW_js=require('./chunk-W2AXUTIW.js'),chunkTHFSRA6W_js=require('./chunk-THFSRA6W.js'),chunkGKYB3J5L_js=require('./chunk-GKYB3J5L.js'),chunkZOBM5OSW_js=require('./chunk-ZOBM5OSW.js'),chunkHZF6DJHM_js=require('./chunk-HZF6DJHM.js'),chunkVRSJMPBY_js=require('./chunk-VRSJMPBY.js');require('./chunk-I2GAQT6S.js');var chunkL72M5DCH_js=require('./chunk-L72M5DCH.js'),t=require('zod');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);var r=50,n=100,s=1,i=500,e=200,a=t__default.default.object({id:t__default.default.string(),displayName:t__default.default.string(),colorHex:t__default.default.string().regex(/^#[0-9A-Fa-f]{6}$/)}),m=t__default.default.object({id:t__default.default.string(),body:t__default.default.string(),createdAt:t__default.default.iso.datetime(),user:a,deletedAt:t__default.default.iso.datetime().optional()}),oo=t__default.default.object({items:t__default.default.array(m),nextCursor:t__default.default.string().nullable()}),ro=t__default.default.object({cursor:t__default.default.string().optional(),limit:t__default.default.coerce.number().int().min(1).max(n).default(r).optional()}),no=t__default.default.object({body:t__default.default.string().trim().min(s).max(i)}),so=t__default.default.object({reason:t__default.default.string().trim().max(e).optional()}).strict(),io=t__default.default.object({until:t__default.default.iso.datetime().refine(o=>new Date(o).getTime()>Date.now(),{message:"until must be a future timestamp"}).optional(),reason:t__default.default.string().trim().max(e).optional()}).strict(),ao=t__default.default.object({eventId:t__default.default.string(),mutedUntil:t__default.default.iso.datetime().nullable()}),mo=t__default.default.discriminatedUnion("kind",[t__default.default.object({kind:t__default.default.literal("in-process"),wsNamespace:t__default.default.string(),token:t__default.default.string(),eventRoomId:t__default.default.string()}),t__default.default.object({kind:t__default.default.literal("ivs"),roomIdentifier:t__default.default.string(),endpoint:t__default.default.string(),token:t__default.default.string(),tokenTtlSeconds:t__default.default.number().int().positive()})]);Object.defineProperty(exports,"AdminApproveProducerVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.r}});Object.defineProperty(exports,"AdminProducerVerificationReasonBodySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.s}});Object.defineProperty(exports,"AdminRejectProducerVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.t}});Object.defineProperty(exports,"AdminSuspendProducerVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.u}});Object.defineProperty(exports,"EquipmentCategory",{enumerable:true,get:function(){return chunk54FMKF33_js.c}});Object.defineProperty(exports,"GetProducerProfileQuerySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.q}});Object.defineProperty(exports,"ListProducersQuerySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.d}});Object.defineProperty(exports,"ListProducersResponseSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.j}});Object.defineProperty(exports,"MarketplaceCurrency",{enumerable:true,get:function(){return chunk54FMKF33_js.a}});Object.defineProperty(exports,"ProducerProfileWorkspaceSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.n}});Object.defineProperty(exports,"PublicProducerListCategorySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.f}});Object.defineProperty(exports,"PublicProducerListEquipmentItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.e}});Object.defineProperty(exports,"PublicProducerListItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.i}});Object.defineProperty(exports,"PublicProducerListPortfolioItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.g}});Object.defineProperty(exports,"PublicProducerListRateCardItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.h}});Object.defineProperty(exports,"ServiceCategoryCode",{enumerable:true,get:function(){return chunk54FMKF33_js.b}});Object.defineProperty(exports,"SubmitProducerForVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.p}});Object.defineProperty(exports,"UpsertProducerWorkspaceProfileSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.o}});Object.defineProperty(exports,"WorkspaceEquipmentItemInputSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.k}});Object.defineProperty(exports,"WorkspacePortfolioItemInputSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.l}});Object.defineProperty(exports,"WorkspaceRateCardItemInputSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.m}});Object.defineProperty(exports,"NotificationChannel",{enumerable:true,get:function(){return chunk4YYJEPT6_js.b}});Object.defineProperty(exports,"NotificationPriority",{enumerable:true,get:function(){return chunk4YYJEPT6_js.a}});Object.defineProperty(exports,"NotificationResponseSchema",{enumerable:true,get:function(){return chunk4YYJEPT6_js.d}});Object.defineProperty(exports,"NotificationType",{enumerable:true,get:function(){return chunk4YYJEPT6_js.c}});Object.defineProperty(exports,"AccessCheckRequestSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.o}});Object.defineProperty(exports,"AccessCheckResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.q}});Object.defineProperty(exports,"AccessReason",{enumerable:true,get:function(){return chunkC3LOLFNN_js.f}});Object.defineProperty(exports,"CreatePurchaseResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.m}});Object.defineProperty(exports,"CtaMode",{enumerable:true,get:function(){return chunkC3LOLFNN_js.i}});Object.defineProperty(exports,"EntitlementStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.g}});Object.defineProperty(exports,"InitiatePaymentRequestSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.j}});Object.defineProperty(exports,"InitiatePaymentResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.k}});Object.defineProperty(exports,"PaymentStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.d}});Object.defineProperty(exports,"PayoutResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.l}});Object.defineProperty(exports,"PayoutStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.c}});Object.defineProperty(exports,"PaystackWebhookSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.p}});Object.defineProperty(exports,"PlatformChargeStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.h}});Object.defineProperty(exports,"PricingQuoteResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.r}});Object.defineProperty(exports,"PurchaseStatusResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.n}});Object.defineProperty(exports,"ReceiptUrlResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.t}});Object.defineProperty(exports,"ReplayPurchasePaymentSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.u}});Object.defineProperty(exports,"ReplayPurchaseResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.w}});Object.defineProperty(exports,"ReplayPurchaseRowSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.v}});Object.defineProperty(exports,"ReplayPurchaseStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.e}});Object.defineProperty(exports,"TransactionStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.b}});Object.defineProperty(exports,"TransactionType",{enumerable:true,get:function(){return chunkC3LOLFNN_js.a}});Object.defineProperty(exports,"ViewerEventDetailResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.s}});Object.defineProperty(exports,"IngestCredentialsResponseSchema",{enumerable:true,get:function(){return chunkC7FWAE4X_js.d}});Object.defineProperty(exports,"IngestProtocol",{enumerable:true,get:function(){return chunkC7FWAE4X_js.b}});Object.defineProperty(exports,"PlaybackTokenResponseSchema",{enumerable:true,get:function(){return chunkC7FWAE4X_js.c}});Object.defineProperty(exports,"StreamStatus",{enumerable:true,get:function(){return chunkC7FWAE4X_js.a}});Object.defineProperty(exports,"TelemetryReportRequestSchema",{enumerable:true,get:function(){return chunkC7FWAE4X_js.e}});Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.m}});Object.defineProperty(exports,"CognitoTokenPayloadSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.n}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.j}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.k}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.c}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.g}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.i}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.h}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.a}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.b}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.e}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.l}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.d}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.f}});Object.defineProperty(exports,"CreateHostProfileRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.e}});Object.defineProperty(exports,"CreateProducerProfileRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.f}});Object.defineProperty(exports,"DisplayNameSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.h}});Object.defineProperty(exports,"HostProfileResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.a}});Object.defineProperty(exports,"NotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.k}});Object.defineProperty(exports,"NotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.o}});Object.defineProperty(exports,"ProducerProfileResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.b}});Object.defineProperty(exports,"RESERVED_DISPLAY_NAMES",{enumerable:true,get:function(){return chunk2TQ3BI34_js.g}});Object.defineProperty(exports,"SendFeedbackRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.m}});Object.defineProperty(exports,"SendFeedbackResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.p}});Object.defineProperty(exports,"UpdateNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.l}});Object.defineProperty(exports,"UpdateUserRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.d}});Object.defineProperty(exports,"UpdateViewerCurrencyRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.j}});Object.defineProperty(exports,"UpdateViewerProfileRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.i}});Object.defineProperty(exports,"UserResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.c}});Object.defineProperty(exports,"ViewerMeResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.n}});Object.defineProperty(exports,"AccountStatus",{enumerable:true,get:function(){return chunkW2AXUTIW_js.b}});Object.defineProperty(exports,"AdminScopeCode",{enumerable:true,get:function(){return chunkW2AXUTIW_js.d}});Object.defineProperty(exports,"FeedbackCategory",{enumerable:true,get:function(){return chunkW2AXUTIW_js.e}});Object.defineProperty(exports,"KycStatus",{enumerable:true,get:function(){return chunkW2AXUTIW_js.c}});Object.defineProperty(exports,"NotificationCategory",{enumerable:true,get:function(){return chunkW2AXUTIW_js.f}});Object.defineProperty(exports,"ProducerExperienceLevel",{enumerable:true,get:function(){return chunkW2AXUTIW_js.h}});Object.defineProperty(exports,"ProducerVerificationStatus",{enumerable:true,get:function(){return chunkW2AXUTIW_js.g}});Object.defineProperty(exports,"UserRole",{enumerable:true,get:function(){return chunkW2AXUTIW_js.a}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkTHFSRA6W_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkTHFSRA6W_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.h}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkTHFSRA6W_js.b}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.g}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.f}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.i}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.n}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.p}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.r}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.l}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkTHFSRA6W_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.j}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkTHFSRA6W_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunkTHFSRA6W_js.m}});Object.defineProperty(exports,"ListMarketplaceBookingsResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.q}});Object.defineProperty(exports,"ListMarketplaceIndicationsOfInterestResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.z}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.t}});Object.defineProperty(exports,"ListMarketplaceJobListingsResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.v}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.o}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.y}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.x}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.u}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.k}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.w}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunkTHFSRA6W_js.s}});Object.defineProperty(exports,"ApiResponseSchema",{enumerable:true,get:function(){return chunkGKYB3J5L_js.a}});Object.defineProperty(exports,"PaginationParamsSchema",{enumerable:true,get:function(){return chunkGKYB3J5L_js.b}});Object.defineProperty(exports,"ResponseMessages",{enumerable:true,get:function(){return chunkGKYB3J5L_js.c}});Object.defineProperty(exports,"DisputeResponseSchema",{enumerable:true,get:function(){return chunkZOBM5OSW_js.c}});Object.defineProperty(exports,"DisputeStatus",{enumerable:true,get:function(){return chunkZOBM5OSW_js.b}});Object.defineProperty(exports,"DisputeType",{enumerable:true,get:function(){return chunkZOBM5OSW_js.a}});Object.defineProperty(exports,"ApiErrorCode",{enumerable:true,get:function(){return chunkHZF6DJHM_js.a}});Object.defineProperty(exports,"CreateEventRequestSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.k}});Object.defineProperty(exports,"EndViewingSessionResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.C}});Object.defineProperty(exports,"EventAccessModel",{enumerable:true,get:function(){return chunkVRSJMPBY_js.c}});Object.defineProperty(exports,"EventAllowListType",{enumerable:true,get:function(){return chunkVRSJMPBY_js.d}});Object.defineProperty(exports,"EventCardSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.n}});Object.defineProperty(exports,"EventCategory",{enumerable:true,get:function(){return chunkVRSJMPBY_js.f}});Object.defineProperty(exports,"EventReplayAccess",{enumerable:true,get:function(){return chunkVRSJMPBY_js.a}});Object.defineProperty(exports,"EventResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.m}});Object.defineProperty(exports,"EventState",{enumerable:true,get:function(){return chunkVRSJMPBY_js.e}});Object.defineProperty(exports,"EventVisibility",{enumerable:true,get:function(){return chunkVRSJMPBY_js.b}});Object.defineProperty(exports,"LivePlaybackSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.u}});Object.defineProperty(exports,"MyEventCardSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.x}});Object.defineProperty(exports,"MyEventsQuerySchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.z}});Object.defineProperty(exports,"MyEventsResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.y}});Object.defineProperty(exports,"MyEventsTabSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.j}});Object.defineProperty(exports,"PagedEventsResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.r}});Object.defineProperty(exports,"PaginationCursorSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.p}});Object.defineProperty(exports,"PlaybackResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.w}});Object.defineProperty(exports,"RegisterForEventResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.s}});Object.defineProperty(exports,"RegistrationScope",{enumerable:true,get:function(){return chunkVRSJMPBY_js.h}});Object.defineProperty(exports,"RegistrationStatus",{enumerable:true,get:function(){return chunkVRSJMPBY_js.g}});Object.defineProperty(exports,"ReplayPlaybackSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.v}});Object.defineProperty(exports,"SearchEventsQuerySchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.q}});Object.defineProperty(exports,"StartViewingSessionResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.A}});Object.defineProperty(exports,"UpdateEventRequestSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.l}});Object.defineProperty(exports,"UpdateWatchProgressRequestSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.t}});Object.defineProperty(exports,"ViewerHomeResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.o}});Object.defineProperty(exports,"ViewerRegistrationView",{enumerable:true,get:function(){return chunkVRSJMPBY_js.i}});Object.defineProperty(exports,"ViewingSessionHeartbeatResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.B}});Object.defineProperty(exports,"JobInterestState",{enumerable:true,get:function(){return chunkL72M5DCH_js.a}});exports.CHAT_HISTORY_DEFAULT_LIMIT=r;exports.CHAT_HISTORY_MAX_LIMIT=n;exports.CHAT_MESSAGE_BODY_MAX_LENGTH=i;exports.CHAT_MESSAGE_BODY_MIN_LENGTH=s;exports.CHAT_MODERATION_REASON_MAX_LENGTH=e;exports.ChatCredentialsResponseSchema=mo;exports.ChatHistoryQuerySchema=ro;exports.ChatHistoryResponseSchema=oo;exports.ChatMessageSchema=m;exports.ChatMessageUserSchema=a;exports.ChatModerationDeleteRequestSchema=so;exports.ChatModerationMuteRequestSchema=io;exports.ChatMuteStateResponseSchema=ao;exports.PostChatMessageRequestSchema=no;//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';var chunk54FMKF33_js=require('./chunk-54FMKF33.js'),chunk4YYJEPT6_js=require('./chunk-4YYJEPT6.js'),chunkC3LOLFNN_js=require('./chunk-C3LOLFNN.js'),chunkC7FWAE4X_js=require('./chunk-C7FWAE4X.js'),chunk5ROSQD5N_js=require('./chunk-5ROSQD5N.js'),chunk2TQ3BI34_js=require('./chunk-2TQ3BI34.js'),chunkW2AXUTIW_js=require('./chunk-W2AXUTIW.js'),chunk5Q4UOZ7K_js=require('./chunk-5Q4UOZ7K.js'),chunkGKYB3J5L_js=require('./chunk-GKYB3J5L.js'),chunkZOBM5OSW_js=require('./chunk-ZOBM5OSW.js'),chunkHZF6DJHM_js=require('./chunk-HZF6DJHM.js'),chunkVRSJMPBY_js=require('./chunk-VRSJMPBY.js');require('./chunk-I2GAQT6S.js');var chunkL72M5DCH_js=require('./chunk-L72M5DCH.js'),t=require('zod');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);var r=50,n=100,s=1,i=500,e=200,a=t__default.default.object({id:t__default.default.string(),displayName:t__default.default.string(),colorHex:t__default.default.string().regex(/^#[0-9A-Fa-f]{6}$/)}),m=t__default.default.object({id:t__default.default.string(),body:t__default.default.string(),createdAt:t__default.default.iso.datetime(),user:a,deletedAt:t__default.default.iso.datetime().optional()}),io=t__default.default.object({items:t__default.default.array(m),nextCursor:t__default.default.string().nullable()}),ao=t__default.default.object({cursor:t__default.default.string().optional(),limit:t__default.default.coerce.number().int().min(1).max(n).default(r).optional()}),mo=t__default.default.object({body:t__default.default.string().trim().min(s).max(i)}),po=t__default.default.object({reason:t__default.default.string().trim().max(e).optional()}).strict(),co=t__default.default.object({until:t__default.default.iso.datetime().refine(o=>new Date(o).getTime()>Date.now(),{message:"until must be a future timestamp"}).optional(),reason:t__default.default.string().trim().max(e).optional()}).strict(),xo=t__default.default.object({eventId:t__default.default.string(),mutedUntil:t__default.default.iso.datetime().nullable()}),lo=t__default.default.discriminatedUnion("kind",[t__default.default.object({kind:t__default.default.literal("in-process"),wsNamespace:t__default.default.string(),token:t__default.default.string(),eventRoomId:t__default.default.string()}),t__default.default.object({kind:t__default.default.literal("ivs"),roomIdentifier:t__default.default.string(),endpoint:t__default.default.string(),token:t__default.default.string(),tokenTtlSeconds:t__default.default.number().int().positive()})]);Object.defineProperty(exports,"AdminApproveProducerVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.r}});Object.defineProperty(exports,"AdminProducerVerificationReasonBodySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.s}});Object.defineProperty(exports,"AdminRejectProducerVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.t}});Object.defineProperty(exports,"AdminSuspendProducerVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.u}});Object.defineProperty(exports,"EquipmentCategory",{enumerable:true,get:function(){return chunk54FMKF33_js.c}});Object.defineProperty(exports,"GetProducerProfileQuerySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.q}});Object.defineProperty(exports,"ListProducersQuerySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.d}});Object.defineProperty(exports,"ListProducersResponseSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.j}});Object.defineProperty(exports,"MarketplaceCurrency",{enumerable:true,get:function(){return chunk54FMKF33_js.a}});Object.defineProperty(exports,"ProducerProfileWorkspaceSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.n}});Object.defineProperty(exports,"PublicProducerListCategorySchema",{enumerable:true,get:function(){return chunk54FMKF33_js.f}});Object.defineProperty(exports,"PublicProducerListEquipmentItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.e}});Object.defineProperty(exports,"PublicProducerListItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.i}});Object.defineProperty(exports,"PublicProducerListPortfolioItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.g}});Object.defineProperty(exports,"PublicProducerListRateCardItemSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.h}});Object.defineProperty(exports,"ServiceCategoryCode",{enumerable:true,get:function(){return chunk54FMKF33_js.b}});Object.defineProperty(exports,"SubmitProducerForVerificationSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.p}});Object.defineProperty(exports,"UpsertProducerWorkspaceProfileSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.o}});Object.defineProperty(exports,"WorkspaceEquipmentItemInputSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.k}});Object.defineProperty(exports,"WorkspacePortfolioItemInputSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.l}});Object.defineProperty(exports,"WorkspaceRateCardItemInputSchema",{enumerable:true,get:function(){return chunk54FMKF33_js.m}});Object.defineProperty(exports,"NotificationChannel",{enumerable:true,get:function(){return chunk4YYJEPT6_js.b}});Object.defineProperty(exports,"NotificationPriority",{enumerable:true,get:function(){return chunk4YYJEPT6_js.a}});Object.defineProperty(exports,"NotificationResponseSchema",{enumerable:true,get:function(){return chunk4YYJEPT6_js.d}});Object.defineProperty(exports,"NotificationType",{enumerable:true,get:function(){return chunk4YYJEPT6_js.c}});Object.defineProperty(exports,"AccessCheckRequestSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.o}});Object.defineProperty(exports,"AccessCheckResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.q}});Object.defineProperty(exports,"AccessReason",{enumerable:true,get:function(){return chunkC3LOLFNN_js.f}});Object.defineProperty(exports,"CreatePurchaseResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.m}});Object.defineProperty(exports,"CtaMode",{enumerable:true,get:function(){return chunkC3LOLFNN_js.i}});Object.defineProperty(exports,"EntitlementStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.g}});Object.defineProperty(exports,"InitiatePaymentRequestSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.j}});Object.defineProperty(exports,"InitiatePaymentResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.k}});Object.defineProperty(exports,"PaymentStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.d}});Object.defineProperty(exports,"PayoutResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.l}});Object.defineProperty(exports,"PayoutStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.c}});Object.defineProperty(exports,"PaystackWebhookSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.p}});Object.defineProperty(exports,"PlatformChargeStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.h}});Object.defineProperty(exports,"PricingQuoteResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.r}});Object.defineProperty(exports,"PurchaseStatusResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.n}});Object.defineProperty(exports,"ReceiptUrlResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.t}});Object.defineProperty(exports,"ReplayPurchasePaymentSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.u}});Object.defineProperty(exports,"ReplayPurchaseResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.w}});Object.defineProperty(exports,"ReplayPurchaseRowSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.v}});Object.defineProperty(exports,"ReplayPurchaseStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.e}});Object.defineProperty(exports,"TransactionStatus",{enumerable:true,get:function(){return chunkC3LOLFNN_js.b}});Object.defineProperty(exports,"TransactionType",{enumerable:true,get:function(){return chunkC3LOLFNN_js.a}});Object.defineProperty(exports,"ViewerEventDetailResponseSchema",{enumerable:true,get:function(){return chunkC3LOLFNN_js.s}});Object.defineProperty(exports,"IngestCredentialsResponseSchema",{enumerable:true,get:function(){return chunkC7FWAE4X_js.d}});Object.defineProperty(exports,"IngestProtocol",{enumerable:true,get:function(){return chunkC7FWAE4X_js.b}});Object.defineProperty(exports,"PlaybackTokenResponseSchema",{enumerable:true,get:function(){return chunkC7FWAE4X_js.c}});Object.defineProperty(exports,"StreamStatus",{enumerable:true,get:function(){return chunkC7FWAE4X_js.a}});Object.defineProperty(exports,"TelemetryReportRequestSchema",{enumerable:true,get:function(){return chunkC7FWAE4X_js.e}});Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.m}});Object.defineProperty(exports,"CognitoTokenPayloadSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.n}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.j}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.k}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.c}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.g}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.i}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.h}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.a}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.b}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.e}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.l}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.d}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunk5ROSQD5N_js.f}});Object.defineProperty(exports,"CreateHostProfileRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.e}});Object.defineProperty(exports,"CreateProducerProfileRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.f}});Object.defineProperty(exports,"DisplayNameSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.h}});Object.defineProperty(exports,"HostProfileResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.a}});Object.defineProperty(exports,"NotificationPreferenceItemSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.k}});Object.defineProperty(exports,"NotificationPreferencesResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.o}});Object.defineProperty(exports,"ProducerProfileResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.b}});Object.defineProperty(exports,"RESERVED_DISPLAY_NAMES",{enumerable:true,get:function(){return chunk2TQ3BI34_js.g}});Object.defineProperty(exports,"SendFeedbackRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.m}});Object.defineProperty(exports,"SendFeedbackResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.p}});Object.defineProperty(exports,"UpdateNotificationPreferencesRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.l}});Object.defineProperty(exports,"UpdateUserRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.d}});Object.defineProperty(exports,"UpdateViewerCurrencyRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.j}});Object.defineProperty(exports,"UpdateViewerProfileRequestSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.i}});Object.defineProperty(exports,"UserResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.c}});Object.defineProperty(exports,"ViewerMeResponseSchema",{enumerable:true,get:function(){return chunk2TQ3BI34_js.n}});Object.defineProperty(exports,"AccountStatus",{enumerable:true,get:function(){return chunkW2AXUTIW_js.b}});Object.defineProperty(exports,"AdminScopeCode",{enumerable:true,get:function(){return chunkW2AXUTIW_js.d}});Object.defineProperty(exports,"FeedbackCategory",{enumerable:true,get:function(){return chunkW2AXUTIW_js.e}});Object.defineProperty(exports,"KycStatus",{enumerable:true,get:function(){return chunkW2AXUTIW_js.c}});Object.defineProperty(exports,"NotificationCategory",{enumerable:true,get:function(){return chunkW2AXUTIW_js.f}});Object.defineProperty(exports,"ProducerExperienceLevel",{enumerable:true,get:function(){return chunkW2AXUTIW_js.h}});Object.defineProperty(exports,"ProducerVerificationStatus",{enumerable:true,get:function(){return chunkW2AXUTIW_js.g}});Object.defineProperty(exports,"UserRole",{enumerable:true,get:function(){return chunkW2AXUTIW_js.a}});Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.h}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.b}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.g}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.f}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.i}});Object.defineProperty(exports,"CreateMarketplaceBookingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.n}});Object.defineProperty(exports,"CreateMarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.p}});Object.defineProperty(exports,"CreateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.t}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.l}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.j}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.c}});Object.defineProperty(exports,"JobLocation",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.m}});Object.defineProperty(exports,"ListMarketplaceBookingsQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.r}});Object.defineProperty(exports,"ListMarketplaceBookingsResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.s}});Object.defineProperty(exports,"ListMarketplaceIndicationsOfInterestQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.C}});Object.defineProperty(exports,"ListMarketplaceIndicationsOfInterestResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.D}});Object.defineProperty(exports,"ListMarketplaceJobListingsMineQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.w}});Object.defineProperty(exports,"ListMarketplaceJobListingsQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.v}});Object.defineProperty(exports,"ListMarketplaceJobListingsResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.y}});Object.defineProperty(exports,"MarketplaceBookingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.o}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestHostItemSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.B}});Object.defineProperty(exports,"MarketplaceIndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.A}});Object.defineProperty(exports,"MarketplaceJobListingResponseSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.x}});Object.defineProperty(exports,"MarketplaceListPaginationQuerySchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.q}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.k}});Object.defineProperty(exports,"SubmitMarketplaceIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.z}});Object.defineProperty(exports,"UpdateMarketplaceJobListingRequestSchema",{enumerable:true,get:function(){return chunk5Q4UOZ7K_js.u}});Object.defineProperty(exports,"ApiResponseSchema",{enumerable:true,get:function(){return chunkGKYB3J5L_js.a}});Object.defineProperty(exports,"PaginationParamsSchema",{enumerable:true,get:function(){return chunkGKYB3J5L_js.b}});Object.defineProperty(exports,"ResponseMessages",{enumerable:true,get:function(){return chunkGKYB3J5L_js.c}});Object.defineProperty(exports,"DisputeResponseSchema",{enumerable:true,get:function(){return chunkZOBM5OSW_js.c}});Object.defineProperty(exports,"DisputeStatus",{enumerable:true,get:function(){return chunkZOBM5OSW_js.b}});Object.defineProperty(exports,"DisputeType",{enumerable:true,get:function(){return chunkZOBM5OSW_js.a}});Object.defineProperty(exports,"ApiErrorCode",{enumerable:true,get:function(){return chunkHZF6DJHM_js.a}});Object.defineProperty(exports,"CreateEventRequestSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.k}});Object.defineProperty(exports,"EndViewingSessionResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.C}});Object.defineProperty(exports,"EventAccessModel",{enumerable:true,get:function(){return chunkVRSJMPBY_js.c}});Object.defineProperty(exports,"EventAllowListType",{enumerable:true,get:function(){return chunkVRSJMPBY_js.d}});Object.defineProperty(exports,"EventCardSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.n}});Object.defineProperty(exports,"EventCategory",{enumerable:true,get:function(){return chunkVRSJMPBY_js.f}});Object.defineProperty(exports,"EventReplayAccess",{enumerable:true,get:function(){return chunkVRSJMPBY_js.a}});Object.defineProperty(exports,"EventResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.m}});Object.defineProperty(exports,"EventState",{enumerable:true,get:function(){return chunkVRSJMPBY_js.e}});Object.defineProperty(exports,"EventVisibility",{enumerable:true,get:function(){return chunkVRSJMPBY_js.b}});Object.defineProperty(exports,"LivePlaybackSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.u}});Object.defineProperty(exports,"MyEventCardSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.x}});Object.defineProperty(exports,"MyEventsQuerySchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.z}});Object.defineProperty(exports,"MyEventsResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.y}});Object.defineProperty(exports,"MyEventsTabSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.j}});Object.defineProperty(exports,"PagedEventsResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.r}});Object.defineProperty(exports,"PaginationCursorSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.p}});Object.defineProperty(exports,"PlaybackResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.w}});Object.defineProperty(exports,"RegisterForEventResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.s}});Object.defineProperty(exports,"RegistrationScope",{enumerable:true,get:function(){return chunkVRSJMPBY_js.h}});Object.defineProperty(exports,"RegistrationStatus",{enumerable:true,get:function(){return chunkVRSJMPBY_js.g}});Object.defineProperty(exports,"ReplayPlaybackSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.v}});Object.defineProperty(exports,"SearchEventsQuerySchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.q}});Object.defineProperty(exports,"StartViewingSessionResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.A}});Object.defineProperty(exports,"UpdateEventRequestSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.l}});Object.defineProperty(exports,"UpdateWatchProgressRequestSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.t}});Object.defineProperty(exports,"ViewerHomeResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.o}});Object.defineProperty(exports,"ViewerRegistrationView",{enumerable:true,get:function(){return chunkVRSJMPBY_js.i}});Object.defineProperty(exports,"ViewingSessionHeartbeatResponseSchema",{enumerable:true,get:function(){return chunkVRSJMPBY_js.B}});Object.defineProperty(exports,"JobInterestState",{enumerable:true,get:function(){return chunkL72M5DCH_js.a}});exports.CHAT_HISTORY_DEFAULT_LIMIT=r;exports.CHAT_HISTORY_MAX_LIMIT=n;exports.CHAT_MESSAGE_BODY_MAX_LENGTH=i;exports.CHAT_MESSAGE_BODY_MIN_LENGTH=s;exports.CHAT_MODERATION_REASON_MAX_LENGTH=e;exports.ChatCredentialsResponseSchema=lo;exports.ChatHistoryQuerySchema=ao;exports.ChatHistoryResponseSchema=io;exports.ChatMessageSchema=m;exports.ChatMessageUserSchema=a;exports.ChatModerationDeleteRequestSchema=po;exports.ChatModerationMuteRequestSchema=co;exports.ChatMuteStateResponseSchema=xo;exports.PostChatMessageRequestSchema=mo;//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{r as AdminApproveProducerVerificationSchema,s as AdminProducerVerificationReasonBodySchema,t as AdminRejectProducerVerificationSchema,u as AdminSuspendProducerVerificationSchema,c as EquipmentCategory,q as GetProducerProfileQuerySchema,d as ListProducersQuerySchema,j as ListProducersResponseSchema,a as MarketplaceCurrency,n as ProducerProfileWorkspaceSchema,f as PublicProducerListCategorySchema,e as PublicProducerListEquipmentItemSchema,i as PublicProducerListItemSchema,g as PublicProducerListPortfolioItemSchema,h as PublicProducerListRateCardItemSchema,b as ServiceCategoryCode,p as SubmitProducerForVerificationSchema,o as UpsertProducerWorkspaceProfileSchema,k as WorkspaceEquipmentItemInputSchema,l as WorkspacePortfolioItemInputSchema,m as WorkspaceRateCardItemInputSchema}from'./chunk-EGUWLSAA.mjs';export{b as NotificationChannel,a as NotificationPriority,d as NotificationResponseSchema,c as NotificationType}from'./chunk-SA4F4CDG.mjs';export{o as AccessCheckRequestSchema,q as AccessCheckResponseSchema,f as AccessReason,m as CreatePurchaseResponseSchema,i as CtaMode,g as EntitlementStatus,j as InitiatePaymentRequestSchema,k as InitiatePaymentResponseSchema,d as PaymentStatus,l as PayoutResponseSchema,c as PayoutStatus,p as PaystackWebhookSchema,h as PlatformChargeStatus,r as PricingQuoteResponseSchema,n as PurchaseStatusResponseSchema,t as ReceiptUrlResponseSchema,u as ReplayPurchasePaymentSchema,w as ReplayPurchaseResponseSchema,v as ReplayPurchaseRowSchema,e as ReplayPurchaseStatus,b as TransactionStatus,a as TransactionType,s as ViewerEventDetailResponseSchema}from'./chunk-MRWDLMMZ.mjs';export{d as IngestCredentialsResponseSchema,b as IngestProtocol,c as PlaybackTokenResponseSchema,a as StreamStatus,e as TelemetryReportRequestSchema}from'./chunk-MIIRC5BK.mjs';export{m as ChangePasswordRequestSchema,n as CognitoTokenPayloadSchema,j as ForgotPasswordRequestSchema,k as ForgotPasswordResponseSchema,c as LoginRequestSchema,g as LoginResponseSchema,i as LogoutRequestSchema,h as RefreshTokenRequestSchema,a as RegisterRequestSchema,b as RegisterResponseSchema,e as ResendOtpRequestSchema,l as ResetPasswordRequestSchema,d as VerifyOtpRequestSchema,f as VerifyOtpResponseSchema}from'./chunk-CBORZPGZ.mjs';export{e as CreateHostProfileRequestSchema,f as CreateProducerProfileRequestSchema,h as DisplayNameSchema,a as HostProfileResponseSchema,k as NotificationPreferenceItemSchema,o as NotificationPreferencesResponseSchema,b as ProducerProfileResponseSchema,g as RESERVED_DISPLAY_NAMES,m as SendFeedbackRequestSchema,p as SendFeedbackResponseSchema,l as UpdateNotificationPreferencesRequestSchema,d as UpdateUserRequestSchema,j as UpdateViewerCurrencyRequestSchema,i as UpdateViewerProfileRequestSchema,c as UserResponseSchema,n as ViewerMeResponseSchema}from'./chunk-XUOMVQVQ.mjs';export{b as AccountStatus,d as AdminScopeCode,e as FeedbackCategory,c as KycStatus,f as NotificationCategory,h as ProducerExperienceLevel,g as ProducerVerificationStatus,a as UserRole}from'./chunk-EQVYSKSG.mjs';export{a as BookingOrigin,e as BookingPaymentStatus,h as BookingResponseSchema,b as BookingState,g as ConfirmBookingRequestSchema,f as CreateBookingRequestSchema,i as CreateJobListingRequestSchema,n as CreateMarketplaceBookingRequestSchema,p as CreateMarketplaceBookingResponseSchema,
|
|
1
|
+
export{r as AdminApproveProducerVerificationSchema,s as AdminProducerVerificationReasonBodySchema,t as AdminRejectProducerVerificationSchema,u as AdminSuspendProducerVerificationSchema,c as EquipmentCategory,q as GetProducerProfileQuerySchema,d as ListProducersQuerySchema,j as ListProducersResponseSchema,a as MarketplaceCurrency,n as ProducerProfileWorkspaceSchema,f as PublicProducerListCategorySchema,e as PublicProducerListEquipmentItemSchema,i as PublicProducerListItemSchema,g as PublicProducerListPortfolioItemSchema,h as PublicProducerListRateCardItemSchema,b as ServiceCategoryCode,p as SubmitProducerForVerificationSchema,o as UpsertProducerWorkspaceProfileSchema,k as WorkspaceEquipmentItemInputSchema,l as WorkspacePortfolioItemInputSchema,m as WorkspaceRateCardItemInputSchema}from'./chunk-EGUWLSAA.mjs';export{b as NotificationChannel,a as NotificationPriority,d as NotificationResponseSchema,c as NotificationType}from'./chunk-SA4F4CDG.mjs';export{o as AccessCheckRequestSchema,q as AccessCheckResponseSchema,f as AccessReason,m as CreatePurchaseResponseSchema,i as CtaMode,g as EntitlementStatus,j as InitiatePaymentRequestSchema,k as InitiatePaymentResponseSchema,d as PaymentStatus,l as PayoutResponseSchema,c as PayoutStatus,p as PaystackWebhookSchema,h as PlatformChargeStatus,r as PricingQuoteResponseSchema,n as PurchaseStatusResponseSchema,t as ReceiptUrlResponseSchema,u as ReplayPurchasePaymentSchema,w as ReplayPurchaseResponseSchema,v as ReplayPurchaseRowSchema,e as ReplayPurchaseStatus,b as TransactionStatus,a as TransactionType,s as ViewerEventDetailResponseSchema}from'./chunk-MRWDLMMZ.mjs';export{d as IngestCredentialsResponseSchema,b as IngestProtocol,c as PlaybackTokenResponseSchema,a as StreamStatus,e as TelemetryReportRequestSchema}from'./chunk-MIIRC5BK.mjs';export{m as ChangePasswordRequestSchema,n as CognitoTokenPayloadSchema,j as ForgotPasswordRequestSchema,k as ForgotPasswordResponseSchema,c as LoginRequestSchema,g as LoginResponseSchema,i as LogoutRequestSchema,h as RefreshTokenRequestSchema,a as RegisterRequestSchema,b as RegisterResponseSchema,e as ResendOtpRequestSchema,l as ResetPasswordRequestSchema,d as VerifyOtpRequestSchema,f as VerifyOtpResponseSchema}from'./chunk-CBORZPGZ.mjs';export{e as CreateHostProfileRequestSchema,f as CreateProducerProfileRequestSchema,h as DisplayNameSchema,a as HostProfileResponseSchema,k as NotificationPreferenceItemSchema,o as NotificationPreferencesResponseSchema,b as ProducerProfileResponseSchema,g as RESERVED_DISPLAY_NAMES,m as SendFeedbackRequestSchema,p as SendFeedbackResponseSchema,l as UpdateNotificationPreferencesRequestSchema,d as UpdateUserRequestSchema,j as UpdateViewerCurrencyRequestSchema,i as UpdateViewerProfileRequestSchema,c as UserResponseSchema,n as ViewerMeResponseSchema}from'./chunk-XUOMVQVQ.mjs';export{b as AccountStatus,d as AdminScopeCode,e as FeedbackCategory,c as KycStatus,f as NotificationCategory,h as ProducerExperienceLevel,g as ProducerVerificationStatus,a as UserRole}from'./chunk-EQVYSKSG.mjs';export{a as BookingOrigin,e as BookingPaymentStatus,h as BookingResponseSchema,b as BookingState,g as ConfirmBookingRequestSchema,f as CreateBookingRequestSchema,i as CreateJobListingRequestSchema,n as CreateMarketplaceBookingRequestSchema,p as CreateMarketplaceBookingResponseSchema,t as CreateMarketplaceJobListingRequestSchema,l as IndicationOfInterestResponseSchema,d as IoiState,j as JobListingResponseSchema,c as JobListingState,m as JobLocation,r as ListMarketplaceBookingsQuerySchema,s as ListMarketplaceBookingsResponseSchema,C as ListMarketplaceIndicationsOfInterestQuerySchema,D as ListMarketplaceIndicationsOfInterestResponseSchema,w as ListMarketplaceJobListingsMineQuerySchema,v as ListMarketplaceJobListingsQuerySchema,y as ListMarketplaceJobListingsResponseSchema,o as MarketplaceBookingResponseSchema,B as MarketplaceIndicationOfInterestHostItemSchema,A as MarketplaceIndicationOfInterestResponseSchema,x as MarketplaceJobListingResponseSchema,q as MarketplaceListPaginationQuerySchema,k as SubmitIndicationOfInterestRequestSchema,z as SubmitMarketplaceIndicationOfInterestRequestSchema,u as UpdateMarketplaceJobListingRequestSchema}from'./chunk-H3FA574X.mjs';export{a as ApiResponseSchema,b as PaginationParamsSchema,c as ResponseMessages}from'./chunk-FE3AMYQL.mjs';export{c as DisputeResponseSchema,b as DisputeStatus,a as DisputeType}from'./chunk-CWGSFDFC.mjs';export{a as ApiErrorCode}from'./chunk-VGS23C2E.mjs';export{k as CreateEventRequestSchema,C as EndViewingSessionResponseSchema,c as EventAccessModel,d as EventAllowListType,n as EventCardSchema,f as EventCategory,a as EventReplayAccess,m as EventResponseSchema,e as EventState,b as EventVisibility,u as LivePlaybackSchema,x as MyEventCardSchema,z as MyEventsQuerySchema,y as MyEventsResponseSchema,j as MyEventsTabSchema,r as PagedEventsResponseSchema,p as PaginationCursorSchema,w as PlaybackResponseSchema,s as RegisterForEventResponseSchema,h as RegistrationScope,g as RegistrationStatus,v as ReplayPlaybackSchema,q as SearchEventsQuerySchema,A as StartViewingSessionResponseSchema,l as UpdateEventRequestSchema,t as UpdateWatchProgressRequestSchema,o as ViewerHomeResponseSchema,i as ViewerRegistrationView,B as ViewingSessionHeartbeatResponseSchema}from'./chunk-EJCFJL2F.mjs';import'./chunk-AZM7HX3M.mjs';export{a as JobInterestState}from'./chunk-GAZT5E62.mjs';import t from'zod';var r=50,n=100,s=1,i=500,e=200,a=t.object({id:t.string(),displayName:t.string(),colorHex:t.string().regex(/^#[0-9A-Fa-f]{6}$/)}),m=t.object({id:t.string(),body:t.string(),createdAt:t.iso.datetime(),user:a,deletedAt:t.iso.datetime().optional()}),io=t.object({items:t.array(m),nextCursor:t.string().nullable()}),ao=t.object({cursor:t.string().optional(),limit:t.coerce.number().int().min(1).max(n).default(r).optional()}),mo=t.object({body:t.string().trim().min(s).max(i)}),po=t.object({reason:t.string().trim().max(e).optional()}).strict(),co=t.object({until:t.iso.datetime().refine(o=>new Date(o).getTime()>Date.now(),{message:"until must be a future timestamp"}).optional(),reason:t.string().trim().max(e).optional()}).strict(),xo=t.object({eventId:t.string(),mutedUntil:t.iso.datetime().nullable()}),lo=t.discriminatedUnion("kind",[t.object({kind:t.literal("in-process"),wsNamespace:t.string(),token:t.string(),eventRoomId:t.string()}),t.object({kind:t.literal("ivs"),roomIdentifier:t.string(),endpoint:t.string(),token:t.string(),tokenTtlSeconds:t.number().int().positive()})]);export{r as CHAT_HISTORY_DEFAULT_LIMIT,n as CHAT_HISTORY_MAX_LIMIT,i as CHAT_MESSAGE_BODY_MAX_LENGTH,s as CHAT_MESSAGE_BODY_MIN_LENGTH,e as CHAT_MODERATION_REASON_MAX_LENGTH,lo as ChatCredentialsResponseSchema,ao as ChatHistoryQuerySchema,io as ChatHistoryResponseSchema,m as ChatMessageSchema,a as ChatMessageUserSchema,po as ChatModerationDeleteRequestSchema,co as ChatModerationMuteRequestSchema,xo as ChatMuteStateResponseSchema,mo as PostChatMessageRequestSchema};//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chat/chat.schemas.ts"],"names":["CHAT_HISTORY_DEFAULT_LIMIT","CHAT_HISTORY_MAX_LIMIT","CHAT_MESSAGE_BODY_MIN_LENGTH","CHAT_MESSAGE_BODY_MAX_LENGTH","CHAT_MODERATION_REASON_MAX_LENGTH","ChatMessageUserSchema","z","ChatMessageSchema","ChatHistoryResponseSchema","ChatHistoryQuerySchema","PostChatMessageRequestSchema","ChatModerationDeleteRequestSchema","ChatModerationMuteRequestSchema","value","ChatMuteStateResponseSchema","ChatCredentialsResponseSchema"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/chat/chat.schemas.ts"],"names":["CHAT_HISTORY_DEFAULT_LIMIT","CHAT_HISTORY_MAX_LIMIT","CHAT_MESSAGE_BODY_MIN_LENGTH","CHAT_MESSAGE_BODY_MAX_LENGTH","CHAT_MODERATION_REASON_MAX_LENGTH","ChatMessageUserSchema","z","ChatMessageSchema","ChatHistoryResponseSchema","ChatHistoryQuerySchema","PostChatMessageRequestSchema","ChatModerationDeleteRequestSchema","ChatModerationMuteRequestSchema","value","ChatMuteStateRespon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AO,CACP,IAAA,CAAMA,CAAAA,CAAE,OAAA,CAAQ,KAAK,CAAA,CACrB,cAAA,CAAgBA,CAAAA,CAAE,MAAA,EAAO,CACzB,SAAUA,CAAAA,CAAE,MAAA,EAAO,CACnB,KAAA,CAAOA,CAAAA,CAAE,MAAA,EAAO,CAChB,eAAA,CAAiBA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,QAAA,EACpC,CAAC,CACH,CAAC","file":"index.mjs","sourcesContent":["import z from 'zod';\n\nexport const CHAT_HISTORY_DEFAULT_LIMIT = 50;\nexport const CHAT_HISTORY_MAX_LIMIT = 100;\n\nexport const CHAT_MESSAGE_BODY_MIN_LENGTH = 1;\nexport const CHAT_MESSAGE_BODY_MAX_LENGTH = 500;\n\nexport const CHAT_MODERATION_REASON_MAX_LENGTH = 200;\n\nexport const ChatMessageUserSchema = z.object({\n id: z.string(),\n displayName: z.string(),\n colorHex: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n});\n\nexport const ChatMessageSchema = z.object({\n id: z.string(),\n body: z.string(),\n createdAt: z.iso.datetime(),\n user: ChatMessageUserSchema,\n deletedAt: z.iso.datetime().optional(),\n});\n\nexport const ChatHistoryResponseSchema = z.object({\n items: z.array(ChatMessageSchema),\n nextCursor: z.string().nullable(),\n});\n\nexport const ChatHistoryQuerySchema = z.object({\n cursor: z.string().optional(),\n limit: z.coerce\n .number()\n .int()\n .min(1)\n .max(CHAT_HISTORY_MAX_LIMIT)\n .default(CHAT_HISTORY_DEFAULT_LIMIT)\n .optional(),\n});\nexport const PostChatMessageRequestSchema = z.object({\n body: z.string().trim().min(CHAT_MESSAGE_BODY_MIN_LENGTH).max(CHAT_MESSAGE_BODY_MAX_LENGTH),\n});\n\nexport const ChatModerationDeleteRequestSchema = z\n .object({\n reason: z.string().trim().max(CHAT_MODERATION_REASON_MAX_LENGTH).optional(),\n })\n .strict();\n\nexport const ChatModerationMuteRequestSchema = z\n .object({\n /** Optional explicit future timestamp. Omit for the ~1y indefinite default. */\n until: z.iso\n .datetime()\n .refine((value) => new Date(value).getTime() > Date.now(), {\n message: 'until must be a future timestamp',\n })\n .optional(),\n reason: z.string().trim().max(CHAT_MODERATION_REASON_MAX_LENGTH).optional(),\n })\n .strict();\n\n/**\n * Public-shape response for `POST /chat/mute`. `mutedUntil` is the source\n * of truth (`null` = not muted). `mutedBy` is intentionally omitted —\n * moderation metadata stays out of the response surface.\n */\nexport const ChatMuteStateResponseSchema = z.object({\n eventId: z.string(),\n mutedUntil: z.iso.datetime().nullable(),\n});\n\nexport const ChatCredentialsResponseSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('in-process'),\n wsNamespace: z.string(),\n token: z.string(),\n eventRoomId: z.string(),\n }),\n z.object({\n kind: z.literal('ivs'),\n roomIdentifier: z.string(),\n endpoint: z.string(),\n token: z.string(),\n tokenTtlSeconds: z.number().int().positive(),\n }),\n]);\n"]}
|
package/package.json
CHANGED
package/dist/chunk-6AKXCLBT.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-GAZT5E62.mjs';import {z}from'zod';var o={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},n={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"},i={OPEN:"OPEN",CLOSED:"CLOSED",SUSPENDED:"SUSPENDED"},s={OPEN:"OPEN",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED"},u={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"};var S=z.object({origin:z.enum(o),eventId:z.uuid().optional(),producerId:z.uuid(),agreedAmount:z.number().min(0),serviceDetails:z.object({requiredDate:z.iso.datetime(),location:z.string(),eventType:z.string(),estimatedDurationHrs:z.number(),notes:z.string().optional()}).optional()}),R=z.object({escrowReference:z.string()}),D=z.object({id:z.uuid(),eventId:z.uuid().optional(),hostId:z.uuid(),producerId:z.uuid(),quotedPrice:z.number(),currency:z.string(),scopeOfWork:z.record(z.string(),z.any()).optional(),requiredStartAt:z.iso.datetime(),requiredEndAt:z.iso.datetime(),bookingState:z.enum(n),paymentStatus:z.enum(u),escrowReference:z.string().optional(),completedAt:z.iso.datetime().optional(),hostRating:z.number().optional(),hostReview:z.string().optional(),producerRating:z.number().optional(),producerReview:z.string().optional(),createdAt:z.iso.datetime(),updatedAt:z.iso.datetime()}),k=z.object({title:z.string().max(255),description:z.string(),requiredDate:z.iso.datetime(),estimatedDurationHrs:z.number().optional(),location:z.string(),budgetRangeMin:z.number().optional(),budgetRangeMax:z.number().optional()}),x=z.object({id:z.uuid(),hostProfileId:z.uuid(),eventId:z.uuid().optional(),title:z.string(),description:z.string(),requiredDate:z.iso.datetime(),estimatedDurationHrs:z.number().optional(),location:z.string(),budgetRangeMin:z.number().optional(),budgetRangeMax:z.number().optional(),state:z.enum(i),proposalCount:z.number(),createdAt:z.iso.datetime()}),N=z.object({coverMessage:z.string().optional(),proposedAmount:z.number().min(0).optional(),availabilityNotes:z.string().optional()}),L=z.object({id:z.uuid(),jobListingId:z.uuid(),producerProfileId:z.uuid(),coverMessage:z.string().optional(),proposedAmount:z.number().optional(),state:z.enum(s),createdAt:z.iso.datetime()});var r={ONSITE:"ONSITE",REMOTE:"REMOTE"};var p=z.record(z.string(),z.unknown()),P=z.object({producerId:z.uuid(),origin:z.enum(o),eventId:z.uuid().optional(),jobListingId:z.uuid().optional(),agreedAmount:z.coerce.number().nonnegative().optional(),scopeOfWork:z.string().max(5e3).optional()}),c=z.object({id:z.uuid(),eventId:z.uuid().nullable(),hostProfileId:z.uuid(),producerProfileId:z.uuid(),origin:z.enum(o),jobListingId:z.uuid().nullable(),sourceIoiId:z.uuid().nullable(),state:z.enum(n),createdAt:z.string(),updatedAt:z.string()}),h=z.object({bookingId:z.uuid(),booking:c}),M=z.object({bookings:z.array(c)}),d=z.object({title:z.string().min(1).max(200),description:z.string().min(1).max(5e3),responsibilities:z.string().min(1),requirements:z.string().min(1),role:z.string().min(1).max(120),requiredDate:z.coerce.date().optional(),estimatedDurationHours:z.coerce.number().int().positive().optional(),location:z.enum(r),notes:z.string().max(2e3).optional(),compensation:z.coerce.number().nonnegative().optional(),attachments:p.optional(),eventId:z.uuid().optional()}),B=d,J=d.partial(),j=z.object({limit:z.coerce.number().int().min(1).max(50).optional(),cursor:z.uuid().optional(),location:z.enum(r).optional()}),l=z.object({id:z.uuid(),hostProfileId:z.uuid(),eventId:z.uuid().nullable(),title:z.string(),notes:z.string().nullable(),description:z.string(),responsibilities:z.string(),requirements:z.string(),role:z.string(),requiredDate:z.string().nullable(),estimatedDurationHours:z.number().int().nullable(),location:z.enum(r),compensation:z.number().nullable(),attachments:z.unknown().nullable(),state:z.enum(i),proposalCount:z.number().int(),createdAt:z.string(),updatedAt:z.string()}),_=z.object({jobListings:z.array(l),nextCursor:z.uuid().nullable()}),v=z.object({coverMessage:z.string().min(1).max(2e3).optional(),proposedAmount:z.coerce.number().nonnegative().optional(),availabilityNotes:z.string().max(2e3).optional(),attachments:p.optional()}),m=z.object({id:z.uuid(),jobListingId:z.uuid(),producerProfileId:z.uuid(),coverMessage:z.string().nullable(),proposedAmount:z.number().nullable(),availabilityNotes:z.string().nullable(),state:z.enum(a),resultingBookingId:z.uuid().nullable(),withdrawnAt:z.string().nullable(),selectedAt:z.string().nullable(),createdAt:z.string(),updatedAt:z.string()}),g=m.extend({producerCompanyName:z.string().nullable()}),q=z.object({indications:z.array(g)});export{o as a,n as b,i as c,s as d,u as e,S as f,R as g,D as h,k as i,x as j,N as k,L as l,r as m,P as n,c as o,h as p,M as q,B as r,J as s,j as t,l as u,_ as v,v as w,m as x,g as y,q as z};//# sourceMappingURL=chunk-6AKXCLBT.mjs.map
|
|
2
|
-
//# sourceMappingURL=chunk-6AKXCLBT.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/booking/booking.enums.ts","../src/booking/booking.schemas.ts","../src/booking/hiring.enums.ts","../src/booking/hiring.schemas.ts"],"names":["BookingOrigin","BookingState","JobListingState","IoiState","BookingPaymentStatus","CreateBookingRequestSchema","z","ConfirmBookingRequestSchema","BookingResponseSchema","CreateJobListingRequestSchema","JobListingResponseSchema","SubmitIndicationOfInterestRequestSchema","IndicationOfInterestResponseSchema","JobLocation","jsonRecordSchema","CreateMarketplaceBookingRequestSchema","MarketplaceBookingResponseSchema","CreateMarketplaceBookingResponseSchema","ListMarketplaceBookingsResponseSchema","MarketplaceJobListingBodySchema","CreateMarketplaceJobListingRequestSchema","UpdateMarketplaceJobListingRequestSchema","ListMarketplaceJobListingsQuerySchema","MarketplaceJobListingResponseSchema","ListMarketplaceJobListingsResponseSchema","SubmitMarketplaceIndicationOfInterestRequestSchema","MarketplaceIndicationOfInterestResponseSchema","JobInterestState","MarketplaceIndicationOfInterestHostItemSchema","ListMarketplaceIndicationsOfInterestResponseSchema"],"mappings":"yDAAO,IAAMA,CAAAA,CAAgB,CAC3B,YAAA,CAAc,cAAA,CACd,kBAAA,CAAoB,oBAAA,CACpB,WAAA,CAAa,aACf,CAAA,CAGaC,CAAAA,CAAe,CAC1B,SAAA,CAAW,WAAA,CACX,2BAA4B,4BAAA,CAC5B,cAAA,CAAgB,gBAAA,CAChB,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,SAAA,CAAW,WAAA,CACX,uBAAA,CAAyB,yBAAA,CACzB,SAAA,CAAW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(typeof BookingOrigin)[keyof typeof BookingOrigin];\n\nexport const BookingState = {\n REQUESTED: 'REQUESTED',\n AWAITING_PRODUCER_RESPONSE: 'AWAITING_PRODUCER_RESPONSE',\n IN_NEGOTIATION: 'IN_NEGOTIATION',\n ACCEPTED: 'ACCEPTED',\n REJECTED: 'REJECTED',\n CANCELLED: 'CANCELLED',\n AWAITING_ESCROW_FUNDING: 'AWAITING_ESCROW_FUNDING',\n CONFIRMED: 'CONFIRMED',\n IN_PROGRESS: 'IN_PROGRESS',\n SERVICE_COMPLETED: 'SERVICE_COMPLETED',\n IN_DISPUTE: 'IN_DISPUTE',\n CLOSED: 'CLOSED',\n} as const;\nexport type BookingState = (typeof BookingState)[keyof typeof BookingState];\n\nexport const JobListingState = {\n OPEN: 'OPEN',\n CLOSED: 'CLOSED',\n SUSPENDED: 'SUSPENDED',\n} as const;\nexport type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];\n\nexport const IoiState = {\n OPEN: 'OPEN',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n} as const;\nexport type IoiState = (typeof IoiState)[keyof typeof IoiState];\n\n/**\n * Enum for booking payment status.\n */\nexport const BookingPaymentStatus = {\n PENDING: 'PENDING',\n ESCROW_FUNDED: 'ESCROW_FUNDED',\n RELEASED: 'RELEASED',\n REFUNDED: 'REFUNDED',\n FAILED: 'FAILED',\n} as const;\nexport type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];\n","import { z } from 'zod';\nimport {\n BookingOrigin,\n BookingState,\n JobListingState,\n IoiState,\n BookingPaymentStatus,\n} from './booking.enums';\n\nexport const CreateBookingRequestSchema = z.object({\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n producerId: z.uuid(),\n agreedAmount: z.number().min(0),\n serviceDetails: z\n .object({\n requiredDate: z.iso.datetime(),\n location: z.string(),\n eventType: z.string(),\n estimatedDurationHrs: z.number(),\n notes: z.string().optional(),\n })\n .optional(),\n});\n\nexport const ConfirmBookingRequestSchema = z.object({\n escrowReference: z.string(),\n});\n\nexport const BookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().optional(),\n hostId: z.uuid(),\n producerId: z.uuid(),\n quotedPrice: z.number(),\n currency: z.string(),\n scopeOfWork: z.record(z.string(), z.any()).optional(),\n requiredStartAt: z.iso.datetime(),\n requiredEndAt: z.iso.datetime(),\n bookingState: z.enum(BookingState),\n paymentStatus: z.enum(BookingPaymentStatus),\n escrowReference: z.string().optional(),\n completedAt: z.iso.datetime().optional(),\n hostRating: z.number().optional(),\n hostReview: z.string().optional(),\n producerRating: z.number().optional(),\n producerReview: z.string().optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const CreateJobListingRequestSchema = z.object({\n title: z.string().max(255),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n});\n\nexport const JobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().optional(),\n title: z.string(),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n state: z.enum(JobListingState),\n proposalCount: z.number(),\n createdAt: z.iso.datetime(),\n});\n\nexport const SubmitIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().optional(),\n proposedAmount: z.number().min(0).optional(),\n availabilityNotes: z.string().optional(),\n});\n\nexport const IndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().optional(),\n proposedAmount: z.number().optional(),\n state: z.enum(IoiState),\n createdAt: z.iso.datetime(),\n});\n","export const JobLocation = {\n ONSITE: 'ONSITE',\n REMOTE: 'REMOTE',\n} as const;\nexport type JobLocation = (typeof JobLocation)[keyof typeof JobLocation];\n","import { z } from 'zod';\nimport { JobInterestState } from '../joblisting/listing.enum';\nimport { BookingOrigin, BookingState, JobListingState } from './booking.enums';\nimport { JobLocation } from './hiring.enums';\n\nconst jsonRecordSchema = z.record(z.string(), z.unknown());\n\n/** `POST /marketplace/bookings` */\nexport const CreateMarketplaceBookingRequestSchema = z.object({\n producerId: z.uuid(),\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n jobListingId: z.uuid().optional(),\n agreedAmount: z.coerce.number().nonnegative().optional(),\n scopeOfWork: z.string().max(5000).optional(),\n});\n\nexport const MarketplaceBookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().nullable(),\n hostProfileId: z.uuid(),\n producerProfileId: z.uuid(),\n origin: z.enum(BookingOrigin),\n jobListingId: z.uuid().nullable(),\n sourceIoiId: z.uuid().nullable(),\n state: z.enum(BookingState),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** `POST /marketplace/bookings` — create acknowledgement */\nexport const CreateMarketplaceBookingResponseSchema = z.object({\n bookingId: z.uuid(),\n booking: MarketplaceBookingResponseSchema,\n});\n\nexport const ListMarketplaceBookingsResponseSchema = z.object({\n bookings: z.array(MarketplaceBookingResponseSchema),\n});\n\nconst MarketplaceJobListingBodySchema = z.object({\n title: z.string().min(1).max(200),\n description: z.string().min(1).max(5000),\n responsibilities: z.string().min(1),\n requirements: z.string().min(1),\n role: z.string().min(1).max(120),\n requiredDate: z.coerce.date().optional(),\n estimatedDurationHours: z.coerce.number().int().positive().optional(),\n location: z.enum(JobLocation),\n notes: z.string().max(2000).optional(),\n compensation: z.coerce.number().nonnegative().optional(),\n attachments: jsonRecordSchema.optional(),\n eventId: z.uuid().optional(),\n});\n\n/** `POST /marketplace/job-listings` */\nexport const CreateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema;\n\nexport const UpdateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema.partial();\n\nexport const ListMarketplaceJobListingsQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(50).optional(),\n cursor: z.uuid().optional(),\n location: z.enum(JobLocation).optional(),\n});\n\nexport const MarketplaceJobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().nullable(),\n title: z.string(),\n notes: z.string().nullable(),\n description: z.string(),\n responsibilities: z.string(),\n requirements: z.string(),\n role: z.string(),\n requiredDate: z.string().nullable(),\n estimatedDurationHours: z.number().int().nullable(),\n location: z.enum(JobLocation),\n compensation: z.number().nullable(),\n attachments: z.unknown().nullable(),\n state: z.enum(JobListingState),\n proposalCount: z.number().int(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const ListMarketplaceJobListingsResponseSchema = z.object({\n jobListings: z.array(MarketplaceJobListingResponseSchema),\n nextCursor: z.uuid().nullable(),\n});\n\n/** `POST .../indications-of-interest` */\nexport const SubmitMarketplaceIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().min(1).max(2000).optional(),\n proposedAmount: z.coerce.number().nonnegative().optional(),\n availabilityNotes: z.string().max(2000).optional(),\n attachments: jsonRecordSchema.optional(),\n});\n\nexport const MarketplaceIndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().nullable(),\n proposedAmount: z.number().nullable(),\n availabilityNotes: z.string().nullable(),\n state: z.enum(JobInterestState),\n resultingBookingId: z.uuid().nullable(),\n withdrawnAt: z.string().nullable(),\n selectedAt: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** Host review row — IoI plus producer display label */\nexport const MarketplaceIndicationOfInterestHostItemSchema =\n MarketplaceIndicationOfInterestResponseSchema.extend({\n producerCompanyName: z.string().nullable(),\n });\n\nexport const ListMarketplaceIndicationsOfInterestResponseSchema = z.object({\n indications: z.array(MarketplaceIndicationOfInterestHostItemSchema),\n});\n"]}
|
package/dist/chunk-THFSRA6W.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkL72M5DCH_js=require('./chunk-L72M5DCH.js'),zod=require('zod');var o={EVENT_DIRECT:"EVENT_DIRECT",MARKETPLACE_DIRECT:"MARKETPLACE_DIRECT",JOB_LISTING:"JOB_LISTING"},n={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"},i={OPEN:"OPEN",CLOSED:"CLOSED",SUSPENDED:"SUSPENDED"},s={OPEN:"OPEN",WITHDRAWN:"WITHDRAWN",SELECTED:"SELECTED",REJECTED:"REJECTED"},u={PENDING:"PENDING",ESCROW_FUNDED:"ESCROW_FUNDED",RELEASED:"RELEASED",REFUNDED:"REFUNDED",FAILED:"FAILED"};var S=zod.z.object({origin:zod.z.enum(o),eventId:zod.z.uuid().optional(),producerId:zod.z.uuid(),agreedAmount:zod.z.number().min(0),serviceDetails:zod.z.object({requiredDate:zod.z.iso.datetime(),location:zod.z.string(),eventType:zod.z.string(),estimatedDurationHrs:zod.z.number(),notes:zod.z.string().optional()}).optional()}),R=zod.z.object({escrowReference:zod.z.string()}),D=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(n),paymentStatus:zod.z.enum(u),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()}),k=zod.z.object({title:zod.z.string().max(255),description:zod.z.string(),requiredDate:zod.z.iso.datetime(),estimatedDurationHrs:zod.z.number().optional(),location:zod.z.string(),budgetRangeMin:zod.z.number().optional(),budgetRangeMax:zod.z.number().optional()}),x=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(),estimatedDurationHrs:zod.z.number().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()}),N=zod.z.object({coverMessage:zod.z.string().optional(),proposedAmount:zod.z.number().min(0).optional(),availabilityNotes:zod.z.string().optional()}),L=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(s),createdAt:zod.z.iso.datetime()});var r={ONSITE:"ONSITE",REMOTE:"REMOTE"};var p=zod.z.record(zod.z.string(),zod.z.unknown()),P=zod.z.object({producerId:zod.z.uuid(),origin:zod.z.enum(o),eventId:zod.z.uuid().optional(),jobListingId:zod.z.uuid().optional(),agreedAmount:zod.z.coerce.number().nonnegative().optional(),scopeOfWork:zod.z.string().max(5e3).optional()}),c=zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid().nullable(),hostProfileId:zod.z.uuid(),producerProfileId:zod.z.uuid(),origin:zod.z.enum(o),jobListingId:zod.z.uuid().nullable(),sourceIoiId:zod.z.uuid().nullable(),state:zod.z.enum(n),createdAt:zod.z.string(),updatedAt:zod.z.string()}),h=zod.z.object({bookingId:zod.z.uuid(),booking:c}),M=zod.z.object({bookings:zod.z.array(c)}),d=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.coerce.date().optional(),estimatedDurationHours:zod.z.coerce.number().int().positive().optional(),location:zod.z.enum(r),notes:zod.z.string().max(2e3).optional(),compensation:zod.z.coerce.number().nonnegative().optional(),attachments:p.optional(),eventId:zod.z.uuid().optional()}),B=d,J=d.partial(),j=zod.z.object({limit:zod.z.coerce.number().int().min(1).max(50).optional(),cursor:zod.z.uuid().optional(),location:zod.z.enum(r).optional()}),l=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(),estimatedDurationHours:zod.z.number().int().nullable(),location:zod.z.enum(r),compensation:zod.z.number().nullable(),attachments:zod.z.unknown().nullable(),state:zod.z.enum(i),proposalCount:zod.z.number().int(),createdAt:zod.z.string(),updatedAt:zod.z.string()}),_=zod.z.object({jobListings:zod.z.array(l),nextCursor:zod.z.uuid().nullable()}),v=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:p.optional()}),m=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()}),g=m.extend({producerCompanyName:zod.z.string().nullable()}),q=zod.z.object({indications:zod.z.array(g)});exports.a=o;exports.b=n;exports.c=i;exports.d=s;exports.e=u;exports.f=S;exports.g=R;exports.h=D;exports.i=k;exports.j=x;exports.k=N;exports.l=L;exports.m=r;exports.n=P;exports.o=c;exports.p=h;exports.q=M;exports.r=B;exports.s=J;exports.t=j;exports.u=l;exports.v=_;exports.w=v;exports.x=m;exports.y=g;exports.z=q;//# sourceMappingURL=chunk-THFSRA6W.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-THFSRA6W.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/booking/booking.enums.ts","../src/booking/booking.schemas.ts","../src/booking/hiring.enums.ts","../src/booking/hiring.schemas.ts"],"names":["BookingOrigin","BookingState","JobListingState","IoiState","BookingPaymentStatus","CreateBookingRequestSchema","z","ConfirmBookingRequestSchema","BookingResponseSchema","CreateJobListingRequestSchema","JobListingResponseSchema","SubmitIndicationOfInterestRequestSchema","IndicationOfInterestResponseSchema","JobLocation","jsonRecordSchema","CreateMarketplaceBookingRequestSchema","MarketplaceBookingResponseSchema","CreateMarketplaceBookingResponseSchema","ListMarketplaceBookingsResponseSchema","MarketplaceJobListingBodySchema","CreateMarketplaceJobListingRequestSchema","UpdateMarketplaceJobListingRequestSchema","ListMarketplaceJobListingsQuerySchema","MarketplaceJobListingResponseSchema","ListMarketplaceJobListingsResponseSchema","SubmitMarketplaceIndicationOfInterestRequestSchema","MarketplaceIndicationOfInterestResponseSchema","JobInterestState","MarketplaceIndicationOfInterestHostItemSchema","ListMarketplaceIndicationsOfInterestResponseSchema"],"mappings":"oFAAO,IAAMA,CAAAA,CAAgB,CAC3B,YAAA,CAAc,cAAA,CACd,kBAAA,CAAoB,oBAAA,CACpB,WAAA,CAAa,aACf,CAAA,CAGaC,CAAAA,CAAe,CAC1B,SAAA,CAAW,WAAA,CACX,2BAA4B,4BAAA,CAC5B,cAAA,CAAgB,gBAAA,CAChB,QAAA,CAAU,UAAA,CACV,QAAA,CAAU,UAAA,CACV,S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_DIRECT',\n JOB_LISTING: 'JOB_LISTING',\n} as const;\nexport type BookingOrigin = (typeof BookingOrigin)[keyof typeof BookingOrigin];\n\nexport const BookingState = {\n REQUESTED: 'REQUESTED',\n AWAITING_PRODUCER_RESPONSE: 'AWAITING_PRODUCER_RESPONSE',\n IN_NEGOTIATION: 'IN_NEGOTIATION',\n ACCEPTED: 'ACCEPTED',\n REJECTED: 'REJECTED',\n CANCELLED: 'CANCELLED',\n AWAITING_ESCROW_FUNDING: 'AWAITING_ESCROW_FUNDING',\n CONFIRMED: 'CONFIRMED',\n IN_PROGRESS: 'IN_PROGRESS',\n SERVICE_COMPLETED: 'SERVICE_COMPLETED',\n IN_DISPUTE: 'IN_DISPUTE',\n CLOSED: 'CLOSED',\n} as const;\nexport type BookingState = (typeof BookingState)[keyof typeof BookingState];\n\nexport const JobListingState = {\n OPEN: 'OPEN',\n CLOSED: 'CLOSED',\n SUSPENDED: 'SUSPENDED',\n} as const;\nexport type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];\n\nexport const IoiState = {\n OPEN: 'OPEN',\n WITHDRAWN: 'WITHDRAWN',\n SELECTED: 'SELECTED',\n REJECTED: 'REJECTED',\n} as const;\nexport type IoiState = (typeof IoiState)[keyof typeof IoiState];\n\n/**\n * Enum for booking payment status.\n */\nexport const BookingPaymentStatus = {\n PENDING: 'PENDING',\n ESCROW_FUNDED: 'ESCROW_FUNDED',\n RELEASED: 'RELEASED',\n REFUNDED: 'REFUNDED',\n FAILED: 'FAILED',\n} as const;\nexport type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];\n","import { z } from 'zod';\nimport {\n BookingOrigin,\n BookingState,\n JobListingState,\n IoiState,\n BookingPaymentStatus,\n} from './booking.enums';\n\nexport const CreateBookingRequestSchema = z.object({\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n producerId: z.uuid(),\n agreedAmount: z.number().min(0),\n serviceDetails: z\n .object({\n requiredDate: z.iso.datetime(),\n location: z.string(),\n eventType: z.string(),\n estimatedDurationHrs: z.number(),\n notes: z.string().optional(),\n })\n .optional(),\n});\n\nexport const ConfirmBookingRequestSchema = z.object({\n escrowReference: z.string(),\n});\n\nexport const BookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().optional(),\n hostId: z.uuid(),\n producerId: z.uuid(),\n quotedPrice: z.number(),\n currency: z.string(),\n scopeOfWork: z.record(z.string(), z.any()).optional(),\n requiredStartAt: z.iso.datetime(),\n requiredEndAt: z.iso.datetime(),\n bookingState: z.enum(BookingState),\n paymentStatus: z.enum(BookingPaymentStatus),\n escrowReference: z.string().optional(),\n completedAt: z.iso.datetime().optional(),\n hostRating: z.number().optional(),\n hostReview: z.string().optional(),\n producerRating: z.number().optional(),\n producerReview: z.string().optional(),\n createdAt: z.iso.datetime(),\n updatedAt: z.iso.datetime(),\n});\n\nexport const CreateJobListingRequestSchema = z.object({\n title: z.string().max(255),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n});\n\nexport const JobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().optional(),\n title: z.string(),\n description: z.string(),\n requiredDate: z.iso.datetime(),\n estimatedDurationHrs: z.number().optional(),\n location: z.string(),\n budgetRangeMin: z.number().optional(),\n budgetRangeMax: z.number().optional(),\n state: z.enum(JobListingState),\n proposalCount: z.number(),\n createdAt: z.iso.datetime(),\n});\n\nexport const SubmitIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().optional(),\n proposedAmount: z.number().min(0).optional(),\n availabilityNotes: z.string().optional(),\n});\n\nexport const IndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().optional(),\n proposedAmount: z.number().optional(),\n state: z.enum(IoiState),\n createdAt: z.iso.datetime(),\n});\n","export const JobLocation = {\n ONSITE: 'ONSITE',\n REMOTE: 'REMOTE',\n} as const;\nexport type JobLocation = (typeof JobLocation)[keyof typeof JobLocation];\n","import { z } from 'zod';\nimport { JobInterestState } from '../joblisting/listing.enum';\nimport { BookingOrigin, BookingState, JobListingState } from './booking.enums';\nimport { JobLocation } from './hiring.enums';\n\nconst jsonRecordSchema = z.record(z.string(), z.unknown());\n\n/** `POST /marketplace/bookings` */\nexport const CreateMarketplaceBookingRequestSchema = z.object({\n producerId: z.uuid(),\n origin: z.enum(BookingOrigin),\n eventId: z.uuid().optional(),\n jobListingId: z.uuid().optional(),\n agreedAmount: z.coerce.number().nonnegative().optional(),\n scopeOfWork: z.string().max(5000).optional(),\n});\n\nexport const MarketplaceBookingResponseSchema = z.object({\n id: z.uuid(),\n eventId: z.uuid().nullable(),\n hostProfileId: z.uuid(),\n producerProfileId: z.uuid(),\n origin: z.enum(BookingOrigin),\n jobListingId: z.uuid().nullable(),\n sourceIoiId: z.uuid().nullable(),\n state: z.enum(BookingState),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** `POST /marketplace/bookings` — create acknowledgement */\nexport const CreateMarketplaceBookingResponseSchema = z.object({\n bookingId: z.uuid(),\n booking: MarketplaceBookingResponseSchema,\n});\n\nexport const ListMarketplaceBookingsResponseSchema = z.object({\n bookings: z.array(MarketplaceBookingResponseSchema),\n});\n\nconst MarketplaceJobListingBodySchema = z.object({\n title: z.string().min(1).max(200),\n description: z.string().min(1).max(5000),\n responsibilities: z.string().min(1),\n requirements: z.string().min(1),\n role: z.string().min(1).max(120),\n requiredDate: z.coerce.date().optional(),\n estimatedDurationHours: z.coerce.number().int().positive().optional(),\n location: z.enum(JobLocation),\n notes: z.string().max(2000).optional(),\n compensation: z.coerce.number().nonnegative().optional(),\n attachments: jsonRecordSchema.optional(),\n eventId: z.uuid().optional(),\n});\n\n/** `POST /marketplace/job-listings` */\nexport const CreateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema;\n\nexport const UpdateMarketplaceJobListingRequestSchema = MarketplaceJobListingBodySchema.partial();\n\nexport const ListMarketplaceJobListingsQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(50).optional(),\n cursor: z.uuid().optional(),\n location: z.enum(JobLocation).optional(),\n});\n\nexport const MarketplaceJobListingResponseSchema = z.object({\n id: z.uuid(),\n hostProfileId: z.uuid(),\n eventId: z.uuid().nullable(),\n title: z.string(),\n notes: z.string().nullable(),\n description: z.string(),\n responsibilities: z.string(),\n requirements: z.string(),\n role: z.string(),\n requiredDate: z.string().nullable(),\n estimatedDurationHours: z.number().int().nullable(),\n location: z.enum(JobLocation),\n compensation: z.number().nullable(),\n attachments: z.unknown().nullable(),\n state: z.enum(JobListingState),\n proposalCount: z.number().int(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nexport const ListMarketplaceJobListingsResponseSchema = z.object({\n jobListings: z.array(MarketplaceJobListingResponseSchema),\n nextCursor: z.uuid().nullable(),\n});\n\n/** `POST .../indications-of-interest` */\nexport const SubmitMarketplaceIndicationOfInterestRequestSchema = z.object({\n coverMessage: z.string().min(1).max(2000).optional(),\n proposedAmount: z.coerce.number().nonnegative().optional(),\n availabilityNotes: z.string().max(2000).optional(),\n attachments: jsonRecordSchema.optional(),\n});\n\nexport const MarketplaceIndicationOfInterestResponseSchema = z.object({\n id: z.uuid(),\n jobListingId: z.uuid(),\n producerProfileId: z.uuid(),\n coverMessage: z.string().nullable(),\n proposedAmount: z.number().nullable(),\n availabilityNotes: z.string().nullable(),\n state: z.enum(JobInterestState),\n resultingBookingId: z.uuid().nullable(),\n withdrawnAt: z.string().nullable(),\n selectedAt: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** Host review row — IoI plus producer display label */\nexport const MarketplaceIndicationOfInterestHostItemSchema =\n MarketplaceIndicationOfInterestResponseSchema.extend({\n producerCompanyName: z.string().nullable(),\n });\n\nexport const ListMarketplaceIndicationsOfInterestResponseSchema = z.object({\n indications: z.array(MarketplaceIndicationOfInterestHostItemSchema),\n});\n"]}
|