@livdot-tech/contracts 1.0.0 → 1.2.0
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/auth/index.d.mts +235 -0
- package/dist/auth/index.d.ts +235 -0
- package/dist/auth/index.js +2 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/index.mjs +2 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/booking/index.d.mts +313 -0
- package/dist/booking/index.d.ts +313 -0
- package/dist/booking/index.js +2 -0
- package/dist/booking/index.js.map +1 -0
- package/dist/booking/index.mjs +2 -0
- package/dist/booking/index.mjs.map +1 -0
- package/dist/chunk-6UTUVCOM.mjs +2 -0
- package/dist/chunk-6UTUVCOM.mjs.map +1 -0
- package/dist/chunk-6ZN2TPBZ.js +2 -0
- package/dist/chunk-6ZN2TPBZ.js.map +1 -0
- package/dist/chunk-726BT6I5.js +2 -0
- package/dist/chunk-726BT6I5.js.map +1 -0
- package/dist/chunk-C2QIE2HZ.js +2 -0
- package/dist/chunk-C2QIE2HZ.js.map +1 -0
- package/dist/chunk-CIV62KPR.mjs +2 -0
- package/dist/chunk-CIV62KPR.mjs.map +1 -0
- package/dist/chunk-DF4E66H2.mjs +2 -0
- package/dist/chunk-DF4E66H2.mjs.map +1 -0
- package/dist/chunk-F663RS3D.js +2 -0
- package/dist/chunk-F663RS3D.js.map +1 -0
- package/dist/chunk-FSQX27QM.mjs +2 -0
- package/dist/chunk-FSQX27QM.mjs.map +1 -0
- package/dist/chunk-GY7PCU2T.js +2 -0
- package/dist/chunk-GY7PCU2T.js.map +1 -0
- package/dist/chunk-HI6UMYA4.mjs +2 -0
- package/dist/chunk-HI6UMYA4.mjs.map +1 -0
- package/dist/chunk-HIY5BNTM.mjs +2 -0
- package/dist/chunk-HIY5BNTM.mjs.map +1 -0
- package/dist/chunk-IJ2PAFAX.js +2 -0
- package/dist/chunk-IJ2PAFAX.js.map +1 -0
- package/dist/chunk-JT7SH43N.js +2 -0
- package/dist/chunk-JT7SH43N.js.map +1 -0
- package/dist/chunk-L6NHN3V2.js +2 -0
- package/dist/chunk-L6NHN3V2.js.map +1 -0
- package/dist/chunk-NSBUBEZK.mjs +2 -0
- package/dist/chunk-NSBUBEZK.mjs.map +1 -0
- package/dist/chunk-PHGWWUP2.mjs +2 -0
- package/dist/chunk-PHGWWUP2.mjs.map +1 -0
- package/dist/chunk-T7C4AYVD.mjs +2 -0
- package/dist/chunk-T7C4AYVD.mjs.map +1 -0
- package/dist/chunk-UDHBQDRU.js +2 -0
- package/dist/chunk-UDHBQDRU.js.map +1 -0
- package/dist/chunk-UZZ46ZPG.js +2 -0
- package/dist/chunk-UZZ46ZPG.js.map +1 -0
- package/dist/chunk-WEET4HBJ.mjs +2 -0
- package/dist/chunk-WEET4HBJ.mjs.map +1 -0
- package/dist/chunk-Y5QIEJG2.mjs +2 -0
- package/dist/chunk-Y5QIEJG2.mjs.map +1 -0
- package/dist/chunk-ZFINSMCH.js +2 -0
- package/dist/chunk-ZFINSMCH.js.map +1 -0
- package/dist/common/index.d.mts +315 -0
- package/dist/common/index.d.ts +315 -0
- package/dist/common/index.js +2 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/index.mjs +2 -0
- package/dist/common/index.mjs.map +1 -0
- package/dist/dispute/index.d.mts +79 -0
- package/dist/dispute/index.d.ts +79 -0
- package/dist/dispute/index.js +2 -0
- package/dist/dispute/index.js.map +1 -0
- package/dist/dispute/index.mjs +2 -0
- package/dist/dispute/index.mjs.map +1 -0
- package/dist/errors/index.d.mts +67 -0
- package/dist/errors/index.d.ts +67 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/index.mjs +2 -0
- package/dist/errors/index.mjs.map +1 -0
- package/dist/event/index.d.mts +360 -0
- package/dist/event/index.d.ts +360 -0
- package/dist/event/index.js +2 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/index.mjs +2 -0
- package/dist/event/index.mjs.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/joblisting/index.d.mts +13 -0
- package/dist/joblisting/index.d.ts +13 -0
- package/dist/joblisting/index.js +2 -0
- package/dist/joblisting/index.js.map +1 -0
- package/dist/joblisting/index.mjs +2 -0
- package/dist/joblisting/index.mjs.map +1 -0
- package/dist/notification/index.d.mts +113 -0
- package/dist/notification/index.d.ts +113 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/index.mjs +2 -0
- package/dist/notification/index.mjs.map +1 -0
- package/dist/payment/index.d.mts +119 -0
- package/dist/payment/index.d.ts +119 -0
- package/dist/payment/index.js +2 -0
- package/dist/payment/index.js.map +1 -0
- package/dist/payment/index.mjs +2 -0
- package/dist/payment/index.mjs.map +1 -0
- package/dist/streaming/index.d.mts +79 -0
- package/dist/streaming/index.d.ts +79 -0
- package/dist/streaming/index.js +2 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/streaming/index.mjs +2 -0
- package/dist/streaming/index.mjs.map +1 -0
- package/dist/user/index.d.mts +427 -0
- package/dist/user/index.d.ts +427 -0
- package/dist/user/index.js +2 -0
- package/dist/user/index.js.map +1 -0
- package/dist/user/index.mjs +2 -0
- package/dist/user/index.mjs.map +1 -0
- package/package.json +27 -5
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const BookingOrigin: {
|
|
4
|
+
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
5
|
+
readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
|
|
6
|
+
readonly JOB_LISTING: "JOB_LISTING";
|
|
7
|
+
};
|
|
8
|
+
type BookingOrigin = (typeof BookingOrigin)[keyof typeof BookingOrigin];
|
|
9
|
+
declare const BookingState: {
|
|
10
|
+
readonly REQUESTED: "REQUESTED";
|
|
11
|
+
readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
|
|
12
|
+
readonly IN_NEGOTIATION: "IN_NEGOTIATION";
|
|
13
|
+
readonly ACCEPTED: "ACCEPTED";
|
|
14
|
+
readonly REJECTED: "REJECTED";
|
|
15
|
+
readonly CANCELLED: "CANCELLED";
|
|
16
|
+
readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
|
|
17
|
+
readonly CONFIRMED: "CONFIRMED";
|
|
18
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
19
|
+
readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
|
|
20
|
+
readonly IN_DISPUTE: "IN_DISPUTE";
|
|
21
|
+
readonly CLOSED: "CLOSED";
|
|
22
|
+
};
|
|
23
|
+
type BookingState = (typeof BookingState)[keyof typeof BookingState];
|
|
24
|
+
declare const JobListingState: {
|
|
25
|
+
readonly OPEN: "OPEN";
|
|
26
|
+
readonly CLOSED: "CLOSED";
|
|
27
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
28
|
+
};
|
|
29
|
+
type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];
|
|
30
|
+
declare const IoiState: {
|
|
31
|
+
readonly OPEN: "OPEN";
|
|
32
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
33
|
+
readonly SELECTED: "SELECTED";
|
|
34
|
+
readonly REJECTED: "REJECTED";
|
|
35
|
+
};
|
|
36
|
+
type IoiState = (typeof IoiState)[keyof typeof IoiState];
|
|
37
|
+
/**
|
|
38
|
+
* Enum for booking payment status.
|
|
39
|
+
*/
|
|
40
|
+
declare const BookingPaymentStatus: {
|
|
41
|
+
readonly PENDING: "PENDING";
|
|
42
|
+
readonly ESCROW_FUNDED: "ESCROW_FUNDED";
|
|
43
|
+
readonly RELEASED: "RELEASED";
|
|
44
|
+
readonly REFUNDED: "REFUNDED";
|
|
45
|
+
readonly FAILED: "FAILED";
|
|
46
|
+
};
|
|
47
|
+
type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];
|
|
48
|
+
|
|
49
|
+
declare const CreateBookingRequestSchema: z.ZodObject<{
|
|
50
|
+
origin: z.ZodNativeEnum<{
|
|
51
|
+
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
52
|
+
readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
|
|
53
|
+
readonly JOB_LISTING: "JOB_LISTING";
|
|
54
|
+
}>;
|
|
55
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
producerId: z.ZodString;
|
|
57
|
+
agreedAmount: z.ZodNumber;
|
|
58
|
+
serviceDetails: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
requiredDate: z.ZodString;
|
|
60
|
+
location: z.ZodString;
|
|
61
|
+
eventType: z.ZodString;
|
|
62
|
+
estimatedDurationHrs: z.ZodNumber;
|
|
63
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
requiredDate: string;
|
|
66
|
+
location: string;
|
|
67
|
+
eventType: string;
|
|
68
|
+
estimatedDurationHrs: number;
|
|
69
|
+
notes?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
requiredDate: string;
|
|
72
|
+
location: string;
|
|
73
|
+
eventType: string;
|
|
74
|
+
estimatedDurationHrs: number;
|
|
75
|
+
notes?: string | undefined;
|
|
76
|
+
}>>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
origin: "EVENT_DIRECT" | "MARKETPLACE_DIRECT" | "JOB_LISTING";
|
|
79
|
+
producerId: string;
|
|
80
|
+
agreedAmount: number;
|
|
81
|
+
eventId?: string | undefined;
|
|
82
|
+
serviceDetails?: {
|
|
83
|
+
requiredDate: string;
|
|
84
|
+
location: string;
|
|
85
|
+
eventType: string;
|
|
86
|
+
estimatedDurationHrs: number;
|
|
87
|
+
notes?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
origin: "EVENT_DIRECT" | "MARKETPLACE_DIRECT" | "JOB_LISTING";
|
|
91
|
+
producerId: string;
|
|
92
|
+
agreedAmount: number;
|
|
93
|
+
eventId?: string | undefined;
|
|
94
|
+
serviceDetails?: {
|
|
95
|
+
requiredDate: string;
|
|
96
|
+
location: string;
|
|
97
|
+
eventType: string;
|
|
98
|
+
estimatedDurationHrs: number;
|
|
99
|
+
notes?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
declare const ConfirmBookingRequestSchema: z.ZodObject<{
|
|
103
|
+
escrowReference: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
escrowReference: string;
|
|
106
|
+
}, {
|
|
107
|
+
escrowReference: string;
|
|
108
|
+
}>;
|
|
109
|
+
declare const BookingResponseSchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
hostId: z.ZodString;
|
|
113
|
+
producerId: z.ZodString;
|
|
114
|
+
quotedPrice: z.ZodNumber;
|
|
115
|
+
currency: z.ZodString;
|
|
116
|
+
scopeOfWork: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
117
|
+
requiredStartAt: z.ZodString;
|
|
118
|
+
requiredEndAt: z.ZodString;
|
|
119
|
+
bookingState: z.ZodNativeEnum<{
|
|
120
|
+
readonly REQUESTED: "REQUESTED";
|
|
121
|
+
readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
|
|
122
|
+
readonly IN_NEGOTIATION: "IN_NEGOTIATION";
|
|
123
|
+
readonly ACCEPTED: "ACCEPTED";
|
|
124
|
+
readonly REJECTED: "REJECTED";
|
|
125
|
+
readonly CANCELLED: "CANCELLED";
|
|
126
|
+
readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
|
|
127
|
+
readonly CONFIRMED: "CONFIRMED";
|
|
128
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
129
|
+
readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
|
|
130
|
+
readonly IN_DISPUTE: "IN_DISPUTE";
|
|
131
|
+
readonly CLOSED: "CLOSED";
|
|
132
|
+
}>;
|
|
133
|
+
paymentStatus: z.ZodNativeEnum<{
|
|
134
|
+
readonly PENDING: "PENDING";
|
|
135
|
+
readonly ESCROW_FUNDED: "ESCROW_FUNDED";
|
|
136
|
+
readonly RELEASED: "RELEASED";
|
|
137
|
+
readonly REFUNDED: "REFUNDED";
|
|
138
|
+
readonly FAILED: "FAILED";
|
|
139
|
+
}>;
|
|
140
|
+
escrowReference: z.ZodOptional<z.ZodString>;
|
|
141
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
142
|
+
hostRating: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
hostReview: z.ZodOptional<z.ZodString>;
|
|
144
|
+
producerRating: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
producerReview: z.ZodOptional<z.ZodString>;
|
|
146
|
+
createdAt: z.ZodString;
|
|
147
|
+
updatedAt: z.ZodString;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
id: string;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
currency: string;
|
|
153
|
+
hostId: string;
|
|
154
|
+
producerId: string;
|
|
155
|
+
quotedPrice: number;
|
|
156
|
+
requiredStartAt: string;
|
|
157
|
+
requiredEndAt: string;
|
|
158
|
+
bookingState: "REJECTED" | "CANCELLED" | "REQUESTED" | "AWAITING_PRODUCER_RESPONSE" | "IN_NEGOTIATION" | "ACCEPTED" | "AWAITING_ESCROW_FUNDING" | "CONFIRMED" | "IN_PROGRESS" | "SERVICE_COMPLETED" | "IN_DISPUTE" | "CLOSED";
|
|
159
|
+
paymentStatus: "PENDING" | "FAILED" | "ESCROW_FUNDED" | "RELEASED" | "REFUNDED";
|
|
160
|
+
eventId?: string | undefined;
|
|
161
|
+
escrowReference?: string | undefined;
|
|
162
|
+
scopeOfWork?: Record<string, any> | undefined;
|
|
163
|
+
completedAt?: string | undefined;
|
|
164
|
+
hostRating?: number | undefined;
|
|
165
|
+
hostReview?: string | undefined;
|
|
166
|
+
producerRating?: number | undefined;
|
|
167
|
+
producerReview?: string | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
id: string;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
updatedAt: string;
|
|
172
|
+
currency: string;
|
|
173
|
+
hostId: string;
|
|
174
|
+
producerId: string;
|
|
175
|
+
quotedPrice: number;
|
|
176
|
+
requiredStartAt: string;
|
|
177
|
+
requiredEndAt: string;
|
|
178
|
+
bookingState: "REJECTED" | "CANCELLED" | "REQUESTED" | "AWAITING_PRODUCER_RESPONSE" | "IN_NEGOTIATION" | "ACCEPTED" | "AWAITING_ESCROW_FUNDING" | "CONFIRMED" | "IN_PROGRESS" | "SERVICE_COMPLETED" | "IN_DISPUTE" | "CLOSED";
|
|
179
|
+
paymentStatus: "PENDING" | "FAILED" | "ESCROW_FUNDED" | "RELEASED" | "REFUNDED";
|
|
180
|
+
eventId?: string | undefined;
|
|
181
|
+
escrowReference?: string | undefined;
|
|
182
|
+
scopeOfWork?: Record<string, any> | undefined;
|
|
183
|
+
completedAt?: string | undefined;
|
|
184
|
+
hostRating?: number | undefined;
|
|
185
|
+
hostReview?: string | undefined;
|
|
186
|
+
producerRating?: number | undefined;
|
|
187
|
+
producerReview?: string | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
declare const CreateJobListingRequestSchema: z.ZodObject<{
|
|
190
|
+
title: z.ZodString;
|
|
191
|
+
description: z.ZodString;
|
|
192
|
+
requiredDate: z.ZodString;
|
|
193
|
+
estimatedDurationHrs: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
location: z.ZodString;
|
|
195
|
+
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
title: string;
|
|
199
|
+
description: string;
|
|
200
|
+
requiredDate: string;
|
|
201
|
+
location: string;
|
|
202
|
+
estimatedDurationHrs?: number | undefined;
|
|
203
|
+
budgetRangeMin?: number | undefined;
|
|
204
|
+
budgetRangeMax?: number | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
title: string;
|
|
207
|
+
description: string;
|
|
208
|
+
requiredDate: string;
|
|
209
|
+
location: string;
|
|
210
|
+
estimatedDurationHrs?: number | undefined;
|
|
211
|
+
budgetRangeMin?: number | undefined;
|
|
212
|
+
budgetRangeMax?: number | undefined;
|
|
213
|
+
}>;
|
|
214
|
+
declare const JobListingResponseSchema: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
hostProfileId: z.ZodString;
|
|
217
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
218
|
+
title: z.ZodString;
|
|
219
|
+
description: z.ZodString;
|
|
220
|
+
requiredDate: z.ZodString;
|
|
221
|
+
estimatedDurationHrs: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
location: z.ZodString;
|
|
223
|
+
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
state: z.ZodNativeEnum<{
|
|
226
|
+
readonly OPEN: "OPEN";
|
|
227
|
+
readonly CLOSED: "CLOSED";
|
|
228
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
229
|
+
}>;
|
|
230
|
+
proposalCount: z.ZodNumber;
|
|
231
|
+
createdAt: z.ZodString;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
title: string;
|
|
234
|
+
id: string;
|
|
235
|
+
createdAt: string;
|
|
236
|
+
description: string;
|
|
237
|
+
requiredDate: string;
|
|
238
|
+
location: string;
|
|
239
|
+
hostProfileId: string;
|
|
240
|
+
state: "SUSPENDED" | "CLOSED" | "OPEN";
|
|
241
|
+
proposalCount: number;
|
|
242
|
+
eventId?: string | undefined;
|
|
243
|
+
estimatedDurationHrs?: number | undefined;
|
|
244
|
+
budgetRangeMin?: number | undefined;
|
|
245
|
+
budgetRangeMax?: number | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
title: string;
|
|
248
|
+
id: string;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
description: string;
|
|
251
|
+
requiredDate: string;
|
|
252
|
+
location: string;
|
|
253
|
+
hostProfileId: string;
|
|
254
|
+
state: "SUSPENDED" | "CLOSED" | "OPEN";
|
|
255
|
+
proposalCount: number;
|
|
256
|
+
eventId?: string | undefined;
|
|
257
|
+
estimatedDurationHrs?: number | undefined;
|
|
258
|
+
budgetRangeMin?: number | undefined;
|
|
259
|
+
budgetRangeMax?: number | undefined;
|
|
260
|
+
}>;
|
|
261
|
+
declare const SubmitIndicationOfInterestRequestSchema: z.ZodObject<{
|
|
262
|
+
coverMessage: z.ZodOptional<z.ZodString>;
|
|
263
|
+
proposedAmount: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
availabilityNotes: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
coverMessage?: string | undefined;
|
|
267
|
+
proposedAmount?: number | undefined;
|
|
268
|
+
availabilityNotes?: string | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
coverMessage?: string | undefined;
|
|
271
|
+
proposedAmount?: number | undefined;
|
|
272
|
+
availabilityNotes?: string | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
declare const IndicationOfInterestResponseSchema: z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
jobListingId: z.ZodString;
|
|
277
|
+
producerProfileId: z.ZodString;
|
|
278
|
+
coverMessage: z.ZodOptional<z.ZodString>;
|
|
279
|
+
proposedAmount: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
state: z.ZodNativeEnum<{
|
|
281
|
+
readonly OPEN: "OPEN";
|
|
282
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
283
|
+
readonly SELECTED: "SELECTED";
|
|
284
|
+
readonly REJECTED: "REJECTED";
|
|
285
|
+
}>;
|
|
286
|
+
createdAt: z.ZodString;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
id: string;
|
|
289
|
+
createdAt: string;
|
|
290
|
+
state: "REJECTED" | "OPEN" | "WITHDRAWN" | "SELECTED";
|
|
291
|
+
jobListingId: string;
|
|
292
|
+
producerProfileId: string;
|
|
293
|
+
coverMessage?: string | undefined;
|
|
294
|
+
proposedAmount?: number | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
id: string;
|
|
297
|
+
createdAt: string;
|
|
298
|
+
state: "REJECTED" | "OPEN" | "WITHDRAWN" | "SELECTED";
|
|
299
|
+
jobListingId: string;
|
|
300
|
+
producerProfileId: string;
|
|
301
|
+
coverMessage?: string | undefined;
|
|
302
|
+
proposedAmount?: number | undefined;
|
|
303
|
+
}>;
|
|
304
|
+
|
|
305
|
+
type CreateBookingRequest = z.infer<typeof CreateBookingRequestSchema>;
|
|
306
|
+
type ConfirmBookingRequest = z.infer<typeof ConfirmBookingRequestSchema>;
|
|
307
|
+
type BookingResponse = z.infer<typeof BookingResponseSchema>;
|
|
308
|
+
type CreateJobListingRequest = z.infer<typeof CreateJobListingRequestSchema>;
|
|
309
|
+
type JobListingResponse = z.infer<typeof JobListingResponseSchema>;
|
|
310
|
+
type SubmitIndicationOfInterestRequest = z.infer<typeof SubmitIndicationOfInterestRequestSchema>;
|
|
311
|
+
type IndicationOfInterestResponse = z.infer<typeof IndicationOfInterestResponseSchema>;
|
|
312
|
+
|
|
313
|
+
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema };
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const BookingOrigin: {
|
|
4
|
+
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
5
|
+
readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
|
|
6
|
+
readonly JOB_LISTING: "JOB_LISTING";
|
|
7
|
+
};
|
|
8
|
+
type BookingOrigin = (typeof BookingOrigin)[keyof typeof BookingOrigin];
|
|
9
|
+
declare const BookingState: {
|
|
10
|
+
readonly REQUESTED: "REQUESTED";
|
|
11
|
+
readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
|
|
12
|
+
readonly IN_NEGOTIATION: "IN_NEGOTIATION";
|
|
13
|
+
readonly ACCEPTED: "ACCEPTED";
|
|
14
|
+
readonly REJECTED: "REJECTED";
|
|
15
|
+
readonly CANCELLED: "CANCELLED";
|
|
16
|
+
readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
|
|
17
|
+
readonly CONFIRMED: "CONFIRMED";
|
|
18
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
19
|
+
readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
|
|
20
|
+
readonly IN_DISPUTE: "IN_DISPUTE";
|
|
21
|
+
readonly CLOSED: "CLOSED";
|
|
22
|
+
};
|
|
23
|
+
type BookingState = (typeof BookingState)[keyof typeof BookingState];
|
|
24
|
+
declare const JobListingState: {
|
|
25
|
+
readonly OPEN: "OPEN";
|
|
26
|
+
readonly CLOSED: "CLOSED";
|
|
27
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
28
|
+
};
|
|
29
|
+
type JobListingState = (typeof JobListingState)[keyof typeof JobListingState];
|
|
30
|
+
declare const IoiState: {
|
|
31
|
+
readonly OPEN: "OPEN";
|
|
32
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
33
|
+
readonly SELECTED: "SELECTED";
|
|
34
|
+
readonly REJECTED: "REJECTED";
|
|
35
|
+
};
|
|
36
|
+
type IoiState = (typeof IoiState)[keyof typeof IoiState];
|
|
37
|
+
/**
|
|
38
|
+
* Enum for booking payment status.
|
|
39
|
+
*/
|
|
40
|
+
declare const BookingPaymentStatus: {
|
|
41
|
+
readonly PENDING: "PENDING";
|
|
42
|
+
readonly ESCROW_FUNDED: "ESCROW_FUNDED";
|
|
43
|
+
readonly RELEASED: "RELEASED";
|
|
44
|
+
readonly REFUNDED: "REFUNDED";
|
|
45
|
+
readonly FAILED: "FAILED";
|
|
46
|
+
};
|
|
47
|
+
type BookingPaymentStatus = (typeof BookingPaymentStatus)[keyof typeof BookingPaymentStatus];
|
|
48
|
+
|
|
49
|
+
declare const CreateBookingRequestSchema: z.ZodObject<{
|
|
50
|
+
origin: z.ZodNativeEnum<{
|
|
51
|
+
readonly EVENT_DIRECT: "EVENT_DIRECT";
|
|
52
|
+
readonly MARKETPLACE_DIRECT: "MARKETPLACE_DIRECT";
|
|
53
|
+
readonly JOB_LISTING: "JOB_LISTING";
|
|
54
|
+
}>;
|
|
55
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
producerId: z.ZodString;
|
|
57
|
+
agreedAmount: z.ZodNumber;
|
|
58
|
+
serviceDetails: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
requiredDate: z.ZodString;
|
|
60
|
+
location: z.ZodString;
|
|
61
|
+
eventType: z.ZodString;
|
|
62
|
+
estimatedDurationHrs: z.ZodNumber;
|
|
63
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
requiredDate: string;
|
|
66
|
+
location: string;
|
|
67
|
+
eventType: string;
|
|
68
|
+
estimatedDurationHrs: number;
|
|
69
|
+
notes?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
requiredDate: string;
|
|
72
|
+
location: string;
|
|
73
|
+
eventType: string;
|
|
74
|
+
estimatedDurationHrs: number;
|
|
75
|
+
notes?: string | undefined;
|
|
76
|
+
}>>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
origin: "EVENT_DIRECT" | "MARKETPLACE_DIRECT" | "JOB_LISTING";
|
|
79
|
+
producerId: string;
|
|
80
|
+
agreedAmount: number;
|
|
81
|
+
eventId?: string | undefined;
|
|
82
|
+
serviceDetails?: {
|
|
83
|
+
requiredDate: string;
|
|
84
|
+
location: string;
|
|
85
|
+
eventType: string;
|
|
86
|
+
estimatedDurationHrs: number;
|
|
87
|
+
notes?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
origin: "EVENT_DIRECT" | "MARKETPLACE_DIRECT" | "JOB_LISTING";
|
|
91
|
+
producerId: string;
|
|
92
|
+
agreedAmount: number;
|
|
93
|
+
eventId?: string | undefined;
|
|
94
|
+
serviceDetails?: {
|
|
95
|
+
requiredDate: string;
|
|
96
|
+
location: string;
|
|
97
|
+
eventType: string;
|
|
98
|
+
estimatedDurationHrs: number;
|
|
99
|
+
notes?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
declare const ConfirmBookingRequestSchema: z.ZodObject<{
|
|
103
|
+
escrowReference: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
escrowReference: string;
|
|
106
|
+
}, {
|
|
107
|
+
escrowReference: string;
|
|
108
|
+
}>;
|
|
109
|
+
declare const BookingResponseSchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
hostId: z.ZodString;
|
|
113
|
+
producerId: z.ZodString;
|
|
114
|
+
quotedPrice: z.ZodNumber;
|
|
115
|
+
currency: z.ZodString;
|
|
116
|
+
scopeOfWork: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
117
|
+
requiredStartAt: z.ZodString;
|
|
118
|
+
requiredEndAt: z.ZodString;
|
|
119
|
+
bookingState: z.ZodNativeEnum<{
|
|
120
|
+
readonly REQUESTED: "REQUESTED";
|
|
121
|
+
readonly AWAITING_PRODUCER_RESPONSE: "AWAITING_PRODUCER_RESPONSE";
|
|
122
|
+
readonly IN_NEGOTIATION: "IN_NEGOTIATION";
|
|
123
|
+
readonly ACCEPTED: "ACCEPTED";
|
|
124
|
+
readonly REJECTED: "REJECTED";
|
|
125
|
+
readonly CANCELLED: "CANCELLED";
|
|
126
|
+
readonly AWAITING_ESCROW_FUNDING: "AWAITING_ESCROW_FUNDING";
|
|
127
|
+
readonly CONFIRMED: "CONFIRMED";
|
|
128
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
129
|
+
readonly SERVICE_COMPLETED: "SERVICE_COMPLETED";
|
|
130
|
+
readonly IN_DISPUTE: "IN_DISPUTE";
|
|
131
|
+
readonly CLOSED: "CLOSED";
|
|
132
|
+
}>;
|
|
133
|
+
paymentStatus: z.ZodNativeEnum<{
|
|
134
|
+
readonly PENDING: "PENDING";
|
|
135
|
+
readonly ESCROW_FUNDED: "ESCROW_FUNDED";
|
|
136
|
+
readonly RELEASED: "RELEASED";
|
|
137
|
+
readonly REFUNDED: "REFUNDED";
|
|
138
|
+
readonly FAILED: "FAILED";
|
|
139
|
+
}>;
|
|
140
|
+
escrowReference: z.ZodOptional<z.ZodString>;
|
|
141
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
142
|
+
hostRating: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
hostReview: z.ZodOptional<z.ZodString>;
|
|
144
|
+
producerRating: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
producerReview: z.ZodOptional<z.ZodString>;
|
|
146
|
+
createdAt: z.ZodString;
|
|
147
|
+
updatedAt: z.ZodString;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
id: string;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
currency: string;
|
|
153
|
+
hostId: string;
|
|
154
|
+
producerId: string;
|
|
155
|
+
quotedPrice: number;
|
|
156
|
+
requiredStartAt: string;
|
|
157
|
+
requiredEndAt: string;
|
|
158
|
+
bookingState: "REJECTED" | "CANCELLED" | "REQUESTED" | "AWAITING_PRODUCER_RESPONSE" | "IN_NEGOTIATION" | "ACCEPTED" | "AWAITING_ESCROW_FUNDING" | "CONFIRMED" | "IN_PROGRESS" | "SERVICE_COMPLETED" | "IN_DISPUTE" | "CLOSED";
|
|
159
|
+
paymentStatus: "PENDING" | "FAILED" | "ESCROW_FUNDED" | "RELEASED" | "REFUNDED";
|
|
160
|
+
eventId?: string | undefined;
|
|
161
|
+
escrowReference?: string | undefined;
|
|
162
|
+
scopeOfWork?: Record<string, any> | undefined;
|
|
163
|
+
completedAt?: string | undefined;
|
|
164
|
+
hostRating?: number | undefined;
|
|
165
|
+
hostReview?: string | undefined;
|
|
166
|
+
producerRating?: number | undefined;
|
|
167
|
+
producerReview?: string | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
id: string;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
updatedAt: string;
|
|
172
|
+
currency: string;
|
|
173
|
+
hostId: string;
|
|
174
|
+
producerId: string;
|
|
175
|
+
quotedPrice: number;
|
|
176
|
+
requiredStartAt: string;
|
|
177
|
+
requiredEndAt: string;
|
|
178
|
+
bookingState: "REJECTED" | "CANCELLED" | "REQUESTED" | "AWAITING_PRODUCER_RESPONSE" | "IN_NEGOTIATION" | "ACCEPTED" | "AWAITING_ESCROW_FUNDING" | "CONFIRMED" | "IN_PROGRESS" | "SERVICE_COMPLETED" | "IN_DISPUTE" | "CLOSED";
|
|
179
|
+
paymentStatus: "PENDING" | "FAILED" | "ESCROW_FUNDED" | "RELEASED" | "REFUNDED";
|
|
180
|
+
eventId?: string | undefined;
|
|
181
|
+
escrowReference?: string | undefined;
|
|
182
|
+
scopeOfWork?: Record<string, any> | undefined;
|
|
183
|
+
completedAt?: string | undefined;
|
|
184
|
+
hostRating?: number | undefined;
|
|
185
|
+
hostReview?: string | undefined;
|
|
186
|
+
producerRating?: number | undefined;
|
|
187
|
+
producerReview?: string | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
declare const CreateJobListingRequestSchema: z.ZodObject<{
|
|
190
|
+
title: z.ZodString;
|
|
191
|
+
description: z.ZodString;
|
|
192
|
+
requiredDate: z.ZodString;
|
|
193
|
+
estimatedDurationHrs: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
location: z.ZodString;
|
|
195
|
+
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
title: string;
|
|
199
|
+
description: string;
|
|
200
|
+
requiredDate: string;
|
|
201
|
+
location: string;
|
|
202
|
+
estimatedDurationHrs?: number | undefined;
|
|
203
|
+
budgetRangeMin?: number | undefined;
|
|
204
|
+
budgetRangeMax?: number | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
title: string;
|
|
207
|
+
description: string;
|
|
208
|
+
requiredDate: string;
|
|
209
|
+
location: string;
|
|
210
|
+
estimatedDurationHrs?: number | undefined;
|
|
211
|
+
budgetRangeMin?: number | undefined;
|
|
212
|
+
budgetRangeMax?: number | undefined;
|
|
213
|
+
}>;
|
|
214
|
+
declare const JobListingResponseSchema: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
hostProfileId: z.ZodString;
|
|
217
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
218
|
+
title: z.ZodString;
|
|
219
|
+
description: z.ZodString;
|
|
220
|
+
requiredDate: z.ZodString;
|
|
221
|
+
estimatedDurationHrs: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
location: z.ZodString;
|
|
223
|
+
budgetRangeMin: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
budgetRangeMax: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
state: z.ZodNativeEnum<{
|
|
226
|
+
readonly OPEN: "OPEN";
|
|
227
|
+
readonly CLOSED: "CLOSED";
|
|
228
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
229
|
+
}>;
|
|
230
|
+
proposalCount: z.ZodNumber;
|
|
231
|
+
createdAt: z.ZodString;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
title: string;
|
|
234
|
+
id: string;
|
|
235
|
+
createdAt: string;
|
|
236
|
+
description: string;
|
|
237
|
+
requiredDate: string;
|
|
238
|
+
location: string;
|
|
239
|
+
hostProfileId: string;
|
|
240
|
+
state: "SUSPENDED" | "CLOSED" | "OPEN";
|
|
241
|
+
proposalCount: number;
|
|
242
|
+
eventId?: string | undefined;
|
|
243
|
+
estimatedDurationHrs?: number | undefined;
|
|
244
|
+
budgetRangeMin?: number | undefined;
|
|
245
|
+
budgetRangeMax?: number | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
title: string;
|
|
248
|
+
id: string;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
description: string;
|
|
251
|
+
requiredDate: string;
|
|
252
|
+
location: string;
|
|
253
|
+
hostProfileId: string;
|
|
254
|
+
state: "SUSPENDED" | "CLOSED" | "OPEN";
|
|
255
|
+
proposalCount: number;
|
|
256
|
+
eventId?: string | undefined;
|
|
257
|
+
estimatedDurationHrs?: number | undefined;
|
|
258
|
+
budgetRangeMin?: number | undefined;
|
|
259
|
+
budgetRangeMax?: number | undefined;
|
|
260
|
+
}>;
|
|
261
|
+
declare const SubmitIndicationOfInterestRequestSchema: z.ZodObject<{
|
|
262
|
+
coverMessage: z.ZodOptional<z.ZodString>;
|
|
263
|
+
proposedAmount: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
availabilityNotes: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
coverMessage?: string | undefined;
|
|
267
|
+
proposedAmount?: number | undefined;
|
|
268
|
+
availabilityNotes?: string | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
coverMessage?: string | undefined;
|
|
271
|
+
proposedAmount?: number | undefined;
|
|
272
|
+
availabilityNotes?: string | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
declare const IndicationOfInterestResponseSchema: z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
jobListingId: z.ZodString;
|
|
277
|
+
producerProfileId: z.ZodString;
|
|
278
|
+
coverMessage: z.ZodOptional<z.ZodString>;
|
|
279
|
+
proposedAmount: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
state: z.ZodNativeEnum<{
|
|
281
|
+
readonly OPEN: "OPEN";
|
|
282
|
+
readonly WITHDRAWN: "WITHDRAWN";
|
|
283
|
+
readonly SELECTED: "SELECTED";
|
|
284
|
+
readonly REJECTED: "REJECTED";
|
|
285
|
+
}>;
|
|
286
|
+
createdAt: z.ZodString;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
id: string;
|
|
289
|
+
createdAt: string;
|
|
290
|
+
state: "REJECTED" | "OPEN" | "WITHDRAWN" | "SELECTED";
|
|
291
|
+
jobListingId: string;
|
|
292
|
+
producerProfileId: string;
|
|
293
|
+
coverMessage?: string | undefined;
|
|
294
|
+
proposedAmount?: number | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
id: string;
|
|
297
|
+
createdAt: string;
|
|
298
|
+
state: "REJECTED" | "OPEN" | "WITHDRAWN" | "SELECTED";
|
|
299
|
+
jobListingId: string;
|
|
300
|
+
producerProfileId: string;
|
|
301
|
+
coverMessage?: string | undefined;
|
|
302
|
+
proposedAmount?: number | undefined;
|
|
303
|
+
}>;
|
|
304
|
+
|
|
305
|
+
type CreateBookingRequest = z.infer<typeof CreateBookingRequestSchema>;
|
|
306
|
+
type ConfirmBookingRequest = z.infer<typeof ConfirmBookingRequestSchema>;
|
|
307
|
+
type BookingResponse = z.infer<typeof BookingResponseSchema>;
|
|
308
|
+
type CreateJobListingRequest = z.infer<typeof CreateJobListingRequestSchema>;
|
|
309
|
+
type JobListingResponse = z.infer<typeof JobListingResponseSchema>;
|
|
310
|
+
type SubmitIndicationOfInterestRequest = z.infer<typeof SubmitIndicationOfInterestRequestSchema>;
|
|
311
|
+
type IndicationOfInterestResponse = z.infer<typeof IndicationOfInterestResponseSchema>;
|
|
312
|
+
|
|
313
|
+
export { BookingOrigin, BookingPaymentStatus, type BookingResponse, BookingResponseSchema, BookingState, type ConfirmBookingRequest, ConfirmBookingRequestSchema, type CreateBookingRequest, CreateBookingRequestSchema, type CreateJobListingRequest, CreateJobListingRequestSchema, type IndicationOfInterestResponse, IndicationOfInterestResponseSchema, IoiState, type JobListingResponse, JobListingResponseSchema, JobListingState, type SubmitIndicationOfInterestRequest, SubmitIndicationOfInterestRequestSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkC2QIE2HZ_js=require('../chunk-C2QIE2HZ.js');Object.defineProperty(exports,"BookingOrigin",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.a}});Object.defineProperty(exports,"BookingPaymentStatus",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.e}});Object.defineProperty(exports,"BookingResponseSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.h}});Object.defineProperty(exports,"BookingState",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.b}});Object.defineProperty(exports,"ConfirmBookingRequestSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.g}});Object.defineProperty(exports,"CreateBookingRequestSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.f}});Object.defineProperty(exports,"CreateJobListingRequestSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.i}});Object.defineProperty(exports,"IndicationOfInterestResponseSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.l}});Object.defineProperty(exports,"IoiState",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.d}});Object.defineProperty(exports,"JobListingResponseSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.j}});Object.defineProperty(exports,"JobListingState",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.c}});Object.defineProperty(exports,"SubmitIndicationOfInterestRequestSchema",{enumerable:true,get:function(){return chunkC2QIE2HZ_js.k}});//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +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,l as IndicationOfInterestResponseSchema,d as IoiState,j as JobListingResponseSchema,c as JobListingState,k as SubmitIndicationOfInterestRequestSchema}from'../chunk-CIV62KPR.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {z}from'zod';var o={PENDING:"pending",ACTIVE:"active",IDLE:"idle",ENDED:"ended",ERROR:"error"},e={RTMPS:"RTMPS",SRT:"SRT"};var p=z.object({token:z.string(),playbackUrl:z.string().url(),expiresAt:z.string().datetime()}),a=z.object({ingestEndpoint:z.string().url(),streamKey:z.string(),protocol:z.nativeEnum(e)}),i=z.object({eventId:z.string().uuid(),viewerCount:z.number().optional(),rebufferRate:z.number().optional(),bitrateKbps:z.number().optional(),latencyMs:z.number().optional(),playbackErrorRate:z.number().optional(),deviceType:z.string().optional(),region:z.string().optional()});export{o as a,e as b,p as c,a as d,i as e};//# sourceMappingURL=chunk-6UTUVCOM.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-6UTUVCOM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/streaming/streaming.enums.ts","../src/streaming/streaming.schemas.ts"],"names":["StreamStatus","IngestProtocol","PlaybackTokenResponseSchema","z","IngestCredentialsResponseSchema","TelemetryReportRequestSchema"],"mappings":"oBAAO,IAAMA,CAAAA,CAAe,CAC1B,OAAA,CAAS,SAAA,CACT,MAAA,CAAQ,QAAA,CACR,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,OAAA,CACP,KAAA,CAAO,OACT,CAAA,CAGaC,CAAAA,CAAiB,CAC5B,KAAA,CAAO,OAAA,CACP,GAAA,CAAK,KACP,ECTO,IAAMC,CAAAA,CAA8BC,CAAAA,CAAE,MAAA,CAAO,CAClD,MAAOA,CAAAA,CAAE,MAAA,EAAO,CAChB,WAAA,CAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAC5B,SAAA,CAAWA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EACxB,CAAC,CAAA,CAEYC,CAAAA,CAAkCD,CAAAA,CAAE,MAAA,CAAO,CACtD,cAAA,CAAgBA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAC/B,SAAA,CAAWA,CAAAA,CAAE,MAAA,GACb,QAAA,CAAUA,CAAAA,CAAE,UAAA,CAAWF,CAAc,CACvC,CAAC,CAAA,CAEYI,CAAAA,CAA+BF,CAAAA,CAAE,MAAA,CAAO,CACnD,OAAA,CAASA,CAAAA,CAAE,MAAA,EAAO,CAAE,IAAA,EAAK,CACzB,WAAA,CAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACjC,YAAA,CAAcA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAClC,WAAA,CAAaA,EAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACjC,SAAA,CAAWA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAC/B,iBAAA,CAAmBA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACvC,UAAA,CAAYA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAChC,MAAA,CAAQA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EACrB,CAAC","file":"chunk-6UTUVCOM.mjs","sourcesContent":["export const StreamStatus = {\n PENDING: 'pending',\n ACTIVE: 'active',\n IDLE: 'idle',\n ENDED: 'ended',\n ERROR: 'error',\n} as const;\nexport type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];\n\nexport const IngestProtocol = {\n RTMPS: 'RTMPS',\n SRT: 'SRT',\n} as const;\nexport type IngestProtocol = (typeof IngestProtocol)[keyof typeof IngestProtocol];\n","import { z } from 'zod';\nimport { IngestProtocol } from './streaming.enums';\n\nexport const PlaybackTokenResponseSchema = z.object({\n token: z.string(),\n playbackUrl: z.string().url(),\n expiresAt: z.string().datetime(),\n});\n\nexport const IngestCredentialsResponseSchema = z.object({\n ingestEndpoint: z.string().url(),\n streamKey: z.string(),\n protocol: z.nativeEnum(IngestProtocol),\n});\n\nexport const TelemetryReportRequestSchema = z.object({\n eventId: z.string().uuid(),\n viewerCount: z.number().optional(),\n rebufferRate: z.number().optional(),\n bitrateKbps: z.number().optional(),\n latencyMs: z.number().optional(),\n playbackErrorRate: z.number().optional(),\n deviceType: z.string().optional(),\n region: z.string().optional(),\n});\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var zod=require('zod');var e={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",UNLISTED:"UNLISTED"},n={FREE:"FREE",PAID:"PAID",SUBSCRIPTION:"SUBSCRIPTION"},a={EMAIL:"EMAIL",DOMAIN:"DOMAIN",PHONENUMBER:"PHONENUMBER",USERID:"USERID"},i={DRAFT:"DRAFT",SCHEDULED:"SCHEDULED",READY_FOR_TEST:"READY_FOR_TEST",LIVE:"LIVE",ENDED:"ENDED",REPLAY_READY:"REPLAY_READY",ARCHIVED:"ARCHIVED",CANCELLED:"CANCELLED",FAILED:"FAILED"},E={ART:"ART",TECHNOLOGY:"TECHNOLOGY",SCIENCE:"SCIENCE",TRAVEL:"TRAVEL",HISTORY:"HISTORY",LITERATURE:"LITERATURE",COOKING:"COOKING",FITNESS:"FITNESS",PHOTOGRAPHY:"PHOTOGRAPHY",GARDENING:"GARDENING",EDUCATION:"EDUCATION",FASHION:"FASHION",MOVIES:"MOVIES",SPORTS:"SPORTS",POLITICS:"POLITICS",HEALTH:"HEALTH",GAMING:"GAMING",FINANCE:"FINANCE",NATURE:"NATURE",CONCERT:"CONCERT",FESTIVAL:"FESTIVAL",WEDDING:"WEDDING",CORPORATE:"CORPORATE",RELIGIOUS:"RELIGIOUS",OTHER:"OTHER"};var o=zod.z.object({title:zod.z.string().max(120),description:zod.z.string().max(2e3),category:zod.z.nativeEnum(E),scheduledStartAt:zod.z.string().datetime(),scheduledEndAt:zod.z.string().datetime(),venueLocation:zod.z.string(),visibility:zod.z.nativeEnum(e),accessModel:zod.z.nativeEnum(n),ticketPrice:zod.z.number().min(0).optional(),maxTickets:zod.z.number().min(1).optional(),timezone:zod.z.string().default("Africa/Lagos"),replayEnabled:zod.z.boolean().default(true),retentionDays:zod.z.number().default(30),tags:zod.z.array(zod.z.string()).optional(),geoRestrictions:zod.z.record(zod.z.any()).optional()}),l=o.partial(),I=zod.z.object({id:zod.z.string().uuid(),title:zod.z.string(),description:zod.z.string(),category:zod.z.nativeEnum(E),coverImageUrl:zod.z.string().url().optional(),venueLocation:zod.z.string(),scheduledStartAt:zod.z.string().datetime(),scheduledEndAt:zod.z.string().datetime(),timezone:zod.z.string(),visibility:zod.z.nativeEnum(e),accessModel:zod.z.nativeEnum(n),ticketPrice:zod.z.number(),currency:zod.z.string(),maxTickets:zod.z.number().optional(),eventState:zod.z.nativeEnum(i),shareableUrl:zod.z.string().url(),hostId:zod.z.string().uuid(),isFeatured:zod.z.boolean(),replayEnabled:zod.z.boolean(),replayAvailableUntil:zod.z.string().datetime().optional(),createdAt:zod.z.string().datetime(),updatedAt:zod.z.string().datetime(),publishedAt:zod.z.string().datetime().optional(),liveStartedAt:zod.z.string().datetime().optional(),liveEndedAt:zod.z.string().datetime().optional()});exports.a=e;exports.b=n;exports.c=a;exports.d=i;exports.e=E;exports.f=o;exports.g=l;exports.h=I;//# sourceMappingURL=chunk-6ZN2TPBZ.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-6ZN2TPBZ.js.map
|