@dakkitor/api-contracts 1.4.0 → 1.5.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.
Files changed (46) hide show
  1. package/dist/abilities/abilities.contract.d.ts +3 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +4 -1
  4. package/dist/abilities/first-agent.abilities.json +13 -0
  5. package/dist/abilities/outreach-service.abilities.json +14 -0
  6. package/dist/abilities/second-agent.abilities.json +13 -0
  7. package/dist/actives/actives.contract.d.ts +8657 -8657
  8. package/dist/bookings/bookings.contract.d.ts +13082 -13082
  9. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +4322 -4322
  10. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +398 -398
  11. package/dist/curated-worker-leads/consent-queue.contract.d.ts +1205 -1205
  12. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5811 -5629
  13. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  14. package/dist/curated-worker-leads/jobs-tab.contract.js +31 -1
  15. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +190 -190
  16. package/dist/dashboards/dashboard-widgets.contract.d.ts +262 -262
  17. package/dist/export-jobs/export-jobs.contract.d.ts +828 -818
  18. package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -1
  19. package/dist/exports-events/exports-events.schemas.d.ts +2 -2
  20. package/dist/index.d.ts +4 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +4 -0
  23. package/dist/jobs/jobs.contract.d.ts +9534 -9522
  24. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  25. package/dist/jobs/jobs.contract.js +9 -0
  26. package/dist/notifications/notifications.contract.d.ts +42 -42
  27. package/dist/outreach/__tests__/outreach-claim.test.js +1 -0
  28. package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts +2 -0
  29. package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts.map +1 -0
  30. package/dist/outreach/__tests__/outreach-contract-additions.spec.js +78 -0
  31. package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts +2 -0
  32. package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts.map +1 -0
  33. package/dist/outreach/__tests__/outreach-requests.contract.spec.js +64 -0
  34. package/dist/outreach/__tests__/outreach.schemas.test.js +5 -1
  35. package/dist/outreach/outreach-requests.contract.d.ts +1108 -0
  36. package/dist/outreach/outreach-requests.contract.d.ts.map +1 -0
  37. package/dist/outreach/outreach-requests.contract.js +134 -0
  38. package/dist/outreach/outreach-requests.schemas.d.ts +49 -0
  39. package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -0
  40. package/dist/outreach/outreach-requests.schemas.js +60 -0
  41. package/dist/outreach/outreach.contract.d.ts +145 -135
  42. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  43. package/dist/outreach/outreach.schemas.d.ts +15 -10
  44. package/dist/outreach/outreach.schemas.d.ts.map +1 -1
  45. package/dist/outreach/outreach.schemas.js +5 -2
  46. package/package.json +1 -1
@@ -0,0 +1,1108 @@
1
+ import { z } from 'zod';
2
+ export * from './outreach-requests.schemas';
3
+ /** A queue row plus enough of the job to label a campaign in Relay Lab. */
4
+ export declare const OutreachRequestQueueItemSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ jobId: z.ZodString;
7
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
8
+ eligibleAtRequest: z.ZodNumber;
9
+ requestedByName: z.ZodNullable<z.ZodString>;
10
+ contactedCount: z.ZodNumber;
11
+ createdAt: z.ZodString;
12
+ startedAt: z.ZodNullable<z.ZodString>;
13
+ completedAt: z.ZodNullable<z.ZodString>;
14
+ } & {
15
+ job: z.ZodObject<{
16
+ title: z.ZodString;
17
+ trade: z.ZodNullable<z.ZodString>;
18
+ payText: z.ZodNullable<z.ZodString>;
19
+ locationText: z.ZodNullable<z.ZodString>;
20
+ createdByName: z.ZodNullable<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ createdByName: string | null;
23
+ title: string;
24
+ trade: string | null;
25
+ payText: string | null;
26
+ locationText: string | null;
27
+ }, {
28
+ createdByName: string | null;
29
+ title: string;
30
+ trade: string | null;
31
+ payText: string | null;
32
+ locationText: string | null;
33
+ }>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ id: string;
36
+ createdAt: string;
37
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
38
+ jobId: string;
39
+ job: {
40
+ createdByName: string | null;
41
+ title: string;
42
+ trade: string | null;
43
+ payText: string | null;
44
+ locationText: string | null;
45
+ };
46
+ startedAt: string | null;
47
+ completedAt: string | null;
48
+ requestedByName: string | null;
49
+ contactedCount: number;
50
+ eligibleAtRequest: number;
51
+ }, {
52
+ id: string;
53
+ createdAt: string;
54
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
55
+ jobId: string;
56
+ job: {
57
+ createdByName: string | null;
58
+ title: string;
59
+ trade: string | null;
60
+ payText: string | null;
61
+ locationText: string | null;
62
+ };
63
+ startedAt: string | null;
64
+ completedAt: string | null;
65
+ requestedByName: string | null;
66
+ contactedCount: number;
67
+ eligibleAtRequest: number;
68
+ }>;
69
+ export type OutreachRequestQueueItem = z.infer<typeof OutreachRequestQueueItemSchema>;
70
+ export declare const CreateOutreachRequestBodySchema: z.ZodObject<{
71
+ jobId: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ jobId: string;
74
+ }, {
75
+ jobId: string;
76
+ }>;
77
+ export type CreateOutreachRequestBody = z.infer<typeof CreateOutreachRequestBodySchema>;
78
+ export declare const ListOutreachRequestsResponseSchema: z.ZodObject<{
79
+ items: z.ZodArray<z.ZodObject<{
80
+ id: z.ZodString;
81
+ jobId: z.ZodString;
82
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
83
+ eligibleAtRequest: z.ZodNumber;
84
+ requestedByName: z.ZodNullable<z.ZodString>;
85
+ contactedCount: z.ZodNumber;
86
+ createdAt: z.ZodString;
87
+ startedAt: z.ZodNullable<z.ZodString>;
88
+ completedAt: z.ZodNullable<z.ZodString>;
89
+ } & {
90
+ job: z.ZodObject<{
91
+ title: z.ZodString;
92
+ trade: z.ZodNullable<z.ZodString>;
93
+ payText: z.ZodNullable<z.ZodString>;
94
+ locationText: z.ZodNullable<z.ZodString>;
95
+ createdByName: z.ZodNullable<z.ZodString>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ createdByName: string | null;
98
+ title: string;
99
+ trade: string | null;
100
+ payText: string | null;
101
+ locationText: string | null;
102
+ }, {
103
+ createdByName: string | null;
104
+ title: string;
105
+ trade: string | null;
106
+ payText: string | null;
107
+ locationText: string | null;
108
+ }>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ id: string;
111
+ createdAt: string;
112
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
113
+ jobId: string;
114
+ job: {
115
+ createdByName: string | null;
116
+ title: string;
117
+ trade: string | null;
118
+ payText: string | null;
119
+ locationText: string | null;
120
+ };
121
+ startedAt: string | null;
122
+ completedAt: string | null;
123
+ requestedByName: string | null;
124
+ contactedCount: number;
125
+ eligibleAtRequest: number;
126
+ }, {
127
+ id: string;
128
+ createdAt: string;
129
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
130
+ jobId: string;
131
+ job: {
132
+ createdByName: string | null;
133
+ title: string;
134
+ trade: string | null;
135
+ payText: string | null;
136
+ locationText: string | null;
137
+ };
138
+ startedAt: string | null;
139
+ completedAt: string | null;
140
+ requestedByName: string | null;
141
+ contactedCount: number;
142
+ eligibleAtRequest: number;
143
+ }>, "many">;
144
+ }, "strip", z.ZodTypeAny, {
145
+ items: {
146
+ id: string;
147
+ createdAt: string;
148
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
149
+ jobId: string;
150
+ job: {
151
+ createdByName: string | null;
152
+ title: string;
153
+ trade: string | null;
154
+ payText: string | null;
155
+ locationText: string | null;
156
+ };
157
+ startedAt: string | null;
158
+ completedAt: string | null;
159
+ requestedByName: string | null;
160
+ contactedCount: number;
161
+ eligibleAtRequest: number;
162
+ }[];
163
+ }, {
164
+ items: {
165
+ id: string;
166
+ createdAt: string;
167
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
168
+ jobId: string;
169
+ job: {
170
+ createdByName: string | null;
171
+ title: string;
172
+ trade: string | null;
173
+ payText: string | null;
174
+ locationText: string | null;
175
+ };
176
+ startedAt: string | null;
177
+ completedAt: string | null;
178
+ requestedByName: string | null;
179
+ contactedCount: number;
180
+ eligibleAtRequest: number;
181
+ }[];
182
+ }>;
183
+ export type ListOutreachRequestsResponse = z.infer<typeof ListOutreachRequestsResponseSchema>;
184
+ export declare const outreachRequestsContract: {
185
+ create: {
186
+ description: string;
187
+ metadata: {
188
+ tags: string[];
189
+ };
190
+ summary: "Mark a job for outreach";
191
+ method: "POST";
192
+ body: z.ZodObject<{
193
+ jobId: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ jobId: string;
196
+ }, {
197
+ jobId: string;
198
+ }>;
199
+ path: "/v2/outreach/requests";
200
+ responses: {
201
+ 400: z.ZodObject<{
202
+ statusCode: z.ZodNumber;
203
+ message: z.ZodString;
204
+ code: z.ZodString;
205
+ details: z.ZodOptional<z.ZodUnknown>;
206
+ timestamp: z.ZodString;
207
+ path: z.ZodString;
208
+ correlationId: z.ZodOptional<z.ZodString>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ message: string;
211
+ path: string;
212
+ code: string;
213
+ statusCode: number;
214
+ timestamp: string;
215
+ details?: unknown;
216
+ correlationId?: string | undefined;
217
+ }, {
218
+ message: string;
219
+ path: string;
220
+ code: string;
221
+ statusCode: number;
222
+ timestamp: string;
223
+ details?: unknown;
224
+ correlationId?: string | undefined;
225
+ }>;
226
+ 401: z.ZodObject<{
227
+ statusCode: z.ZodNumber;
228
+ message: z.ZodString;
229
+ code: z.ZodString;
230
+ details: z.ZodOptional<z.ZodUnknown>;
231
+ timestamp: z.ZodString;
232
+ path: z.ZodString;
233
+ correlationId: z.ZodOptional<z.ZodString>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ message: string;
236
+ path: string;
237
+ code: string;
238
+ statusCode: number;
239
+ timestamp: string;
240
+ details?: unknown;
241
+ correlationId?: string | undefined;
242
+ }, {
243
+ message: string;
244
+ path: string;
245
+ code: string;
246
+ statusCode: number;
247
+ timestamp: string;
248
+ details?: unknown;
249
+ correlationId?: string | undefined;
250
+ }>;
251
+ 403: z.ZodObject<{
252
+ statusCode: z.ZodNumber;
253
+ message: z.ZodString;
254
+ code: z.ZodString;
255
+ details: z.ZodOptional<z.ZodUnknown>;
256
+ timestamp: z.ZodString;
257
+ path: z.ZodString;
258
+ correlationId: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ message: string;
261
+ path: string;
262
+ code: string;
263
+ statusCode: number;
264
+ timestamp: string;
265
+ details?: unknown;
266
+ correlationId?: string | undefined;
267
+ }, {
268
+ message: string;
269
+ path: string;
270
+ code: string;
271
+ statusCode: number;
272
+ timestamp: string;
273
+ details?: unknown;
274
+ correlationId?: string | undefined;
275
+ }>;
276
+ 500: z.ZodObject<{
277
+ statusCode: z.ZodNumber;
278
+ message: z.ZodString;
279
+ code: z.ZodString;
280
+ details: z.ZodOptional<z.ZodUnknown>;
281
+ timestamp: z.ZodString;
282
+ path: z.ZodString;
283
+ correlationId: z.ZodOptional<z.ZodString>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ message: string;
286
+ path: string;
287
+ code: string;
288
+ statusCode: number;
289
+ timestamp: string;
290
+ details?: unknown;
291
+ correlationId?: string | undefined;
292
+ }, {
293
+ message: string;
294
+ path: string;
295
+ code: string;
296
+ statusCode: number;
297
+ timestamp: string;
298
+ details?: unknown;
299
+ correlationId?: string | undefined;
300
+ }>;
301
+ 200: z.ZodObject<{
302
+ id: z.ZodString;
303
+ jobId: z.ZodString;
304
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
305
+ eligibleAtRequest: z.ZodNumber;
306
+ requestedByName: z.ZodNullable<z.ZodString>;
307
+ contactedCount: z.ZodNumber;
308
+ createdAt: z.ZodString;
309
+ startedAt: z.ZodNullable<z.ZodString>;
310
+ completedAt: z.ZodNullable<z.ZodString>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ id: string;
313
+ createdAt: string;
314
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
315
+ jobId: string;
316
+ startedAt: string | null;
317
+ completedAt: string | null;
318
+ requestedByName: string | null;
319
+ contactedCount: number;
320
+ eligibleAtRequest: number;
321
+ }, {
322
+ id: string;
323
+ createdAt: string;
324
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
325
+ jobId: string;
326
+ startedAt: string | null;
327
+ completedAt: string | null;
328
+ requestedByName: string | null;
329
+ contactedCount: number;
330
+ eligibleAtRequest: number;
331
+ }>;
332
+ 404: z.ZodObject<{
333
+ statusCode: z.ZodNumber;
334
+ message: z.ZodString;
335
+ code: z.ZodString;
336
+ details: z.ZodOptional<z.ZodUnknown>;
337
+ timestamp: z.ZodString;
338
+ path: z.ZodString;
339
+ correlationId: z.ZodOptional<z.ZodString>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ message: string;
342
+ path: string;
343
+ code: string;
344
+ statusCode: number;
345
+ timestamp: string;
346
+ details?: unknown;
347
+ correlationId?: string | undefined;
348
+ }, {
349
+ message: string;
350
+ path: string;
351
+ code: string;
352
+ statusCode: number;
353
+ timestamp: string;
354
+ details?: unknown;
355
+ correlationId?: string | undefined;
356
+ }>;
357
+ };
358
+ };
359
+ cancel: {
360
+ description: string;
361
+ metadata: {
362
+ tags: string[];
363
+ };
364
+ pathParams: z.ZodObject<{
365
+ id: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ id: string;
368
+ }, {
369
+ id: string;
370
+ }>;
371
+ summary: "Withdraw an outreach request";
372
+ method: "POST";
373
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
374
+ path: "/v2/outreach/requests/:id/cancel";
375
+ responses: {
376
+ 400: z.ZodObject<{
377
+ statusCode: z.ZodNumber;
378
+ message: z.ZodString;
379
+ code: z.ZodString;
380
+ details: z.ZodOptional<z.ZodUnknown>;
381
+ timestamp: z.ZodString;
382
+ path: z.ZodString;
383
+ correlationId: z.ZodOptional<z.ZodString>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ message: string;
386
+ path: string;
387
+ code: string;
388
+ statusCode: number;
389
+ timestamp: string;
390
+ details?: unknown;
391
+ correlationId?: string | undefined;
392
+ }, {
393
+ message: string;
394
+ path: string;
395
+ code: string;
396
+ statusCode: number;
397
+ timestamp: string;
398
+ details?: unknown;
399
+ correlationId?: string | undefined;
400
+ }>;
401
+ 401: z.ZodObject<{
402
+ statusCode: z.ZodNumber;
403
+ message: z.ZodString;
404
+ code: z.ZodString;
405
+ details: z.ZodOptional<z.ZodUnknown>;
406
+ timestamp: z.ZodString;
407
+ path: z.ZodString;
408
+ correlationId: z.ZodOptional<z.ZodString>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ message: string;
411
+ path: string;
412
+ code: string;
413
+ statusCode: number;
414
+ timestamp: string;
415
+ details?: unknown;
416
+ correlationId?: string | undefined;
417
+ }, {
418
+ message: string;
419
+ path: string;
420
+ code: string;
421
+ statusCode: number;
422
+ timestamp: string;
423
+ details?: unknown;
424
+ correlationId?: string | undefined;
425
+ }>;
426
+ 403: z.ZodObject<{
427
+ statusCode: z.ZodNumber;
428
+ message: z.ZodString;
429
+ code: z.ZodString;
430
+ details: z.ZodOptional<z.ZodUnknown>;
431
+ timestamp: z.ZodString;
432
+ path: z.ZodString;
433
+ correlationId: z.ZodOptional<z.ZodString>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ message: string;
436
+ path: string;
437
+ code: string;
438
+ statusCode: number;
439
+ timestamp: string;
440
+ details?: unknown;
441
+ correlationId?: string | undefined;
442
+ }, {
443
+ message: string;
444
+ path: string;
445
+ code: string;
446
+ statusCode: number;
447
+ timestamp: string;
448
+ details?: unknown;
449
+ correlationId?: string | undefined;
450
+ }>;
451
+ 500: z.ZodObject<{
452
+ statusCode: z.ZodNumber;
453
+ message: z.ZodString;
454
+ code: z.ZodString;
455
+ details: z.ZodOptional<z.ZodUnknown>;
456
+ timestamp: z.ZodString;
457
+ path: z.ZodString;
458
+ correlationId: z.ZodOptional<z.ZodString>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ message: string;
461
+ path: string;
462
+ code: string;
463
+ statusCode: number;
464
+ timestamp: string;
465
+ details?: unknown;
466
+ correlationId?: string | undefined;
467
+ }, {
468
+ message: string;
469
+ path: string;
470
+ code: string;
471
+ statusCode: number;
472
+ timestamp: string;
473
+ details?: unknown;
474
+ correlationId?: string | undefined;
475
+ }>;
476
+ 200: z.ZodObject<{
477
+ id: z.ZodString;
478
+ jobId: z.ZodString;
479
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
480
+ eligibleAtRequest: z.ZodNumber;
481
+ requestedByName: z.ZodNullable<z.ZodString>;
482
+ contactedCount: z.ZodNumber;
483
+ createdAt: z.ZodString;
484
+ startedAt: z.ZodNullable<z.ZodString>;
485
+ completedAt: z.ZodNullable<z.ZodString>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ id: string;
488
+ createdAt: string;
489
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
490
+ jobId: string;
491
+ startedAt: string | null;
492
+ completedAt: string | null;
493
+ requestedByName: string | null;
494
+ contactedCount: number;
495
+ eligibleAtRequest: number;
496
+ }, {
497
+ id: string;
498
+ createdAt: string;
499
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
500
+ jobId: string;
501
+ startedAt: string | null;
502
+ completedAt: string | null;
503
+ requestedByName: string | null;
504
+ contactedCount: number;
505
+ eligibleAtRequest: number;
506
+ }>;
507
+ 404: z.ZodObject<{
508
+ statusCode: z.ZodNumber;
509
+ message: z.ZodString;
510
+ code: z.ZodString;
511
+ details: z.ZodOptional<z.ZodUnknown>;
512
+ timestamp: z.ZodString;
513
+ path: z.ZodString;
514
+ correlationId: z.ZodOptional<z.ZodString>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ message: string;
517
+ path: string;
518
+ code: string;
519
+ statusCode: number;
520
+ timestamp: string;
521
+ details?: unknown;
522
+ correlationId?: string | undefined;
523
+ }, {
524
+ message: string;
525
+ path: string;
526
+ code: string;
527
+ statusCode: number;
528
+ timestamp: string;
529
+ details?: unknown;
530
+ correlationId?: string | undefined;
531
+ }>;
532
+ };
533
+ };
534
+ list: {
535
+ description: string;
536
+ metadata: {
537
+ tags: string[];
538
+ };
539
+ query: z.ZodObject<{
540
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ status?: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING" | undefined;
543
+ }, {
544
+ status?: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING" | undefined;
545
+ }>;
546
+ summary: "The open outreach queue";
547
+ method: "GET";
548
+ path: "/v2/outreach/requests";
549
+ responses: {
550
+ 400: z.ZodObject<{
551
+ statusCode: z.ZodNumber;
552
+ message: z.ZodString;
553
+ code: z.ZodString;
554
+ details: z.ZodOptional<z.ZodUnknown>;
555
+ timestamp: z.ZodString;
556
+ path: z.ZodString;
557
+ correlationId: z.ZodOptional<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ message: string;
560
+ path: string;
561
+ code: string;
562
+ statusCode: number;
563
+ timestamp: string;
564
+ details?: unknown;
565
+ correlationId?: string | undefined;
566
+ }, {
567
+ message: string;
568
+ path: string;
569
+ code: string;
570
+ statusCode: number;
571
+ timestamp: string;
572
+ details?: unknown;
573
+ correlationId?: string | undefined;
574
+ }>;
575
+ 401: z.ZodObject<{
576
+ statusCode: z.ZodNumber;
577
+ message: z.ZodString;
578
+ code: z.ZodString;
579
+ details: z.ZodOptional<z.ZodUnknown>;
580
+ timestamp: z.ZodString;
581
+ path: z.ZodString;
582
+ correlationId: z.ZodOptional<z.ZodString>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ message: string;
585
+ path: string;
586
+ code: string;
587
+ statusCode: number;
588
+ timestamp: string;
589
+ details?: unknown;
590
+ correlationId?: string | undefined;
591
+ }, {
592
+ message: string;
593
+ path: string;
594
+ code: string;
595
+ statusCode: number;
596
+ timestamp: string;
597
+ details?: unknown;
598
+ correlationId?: string | undefined;
599
+ }>;
600
+ 403: z.ZodObject<{
601
+ statusCode: z.ZodNumber;
602
+ message: z.ZodString;
603
+ code: z.ZodString;
604
+ details: z.ZodOptional<z.ZodUnknown>;
605
+ timestamp: z.ZodString;
606
+ path: z.ZodString;
607
+ correlationId: z.ZodOptional<z.ZodString>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ message: string;
610
+ path: string;
611
+ code: string;
612
+ statusCode: number;
613
+ timestamp: string;
614
+ details?: unknown;
615
+ correlationId?: string | undefined;
616
+ }, {
617
+ message: string;
618
+ path: string;
619
+ code: string;
620
+ statusCode: number;
621
+ timestamp: string;
622
+ details?: unknown;
623
+ correlationId?: string | undefined;
624
+ }>;
625
+ 500: z.ZodObject<{
626
+ statusCode: z.ZodNumber;
627
+ message: z.ZodString;
628
+ code: z.ZodString;
629
+ details: z.ZodOptional<z.ZodUnknown>;
630
+ timestamp: z.ZodString;
631
+ path: z.ZodString;
632
+ correlationId: z.ZodOptional<z.ZodString>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ message: string;
635
+ path: string;
636
+ code: string;
637
+ statusCode: number;
638
+ timestamp: string;
639
+ details?: unknown;
640
+ correlationId?: string | undefined;
641
+ }, {
642
+ message: string;
643
+ path: string;
644
+ code: string;
645
+ statusCode: number;
646
+ timestamp: string;
647
+ details?: unknown;
648
+ correlationId?: string | undefined;
649
+ }>;
650
+ 200: z.ZodObject<{
651
+ items: z.ZodArray<z.ZodObject<{
652
+ id: z.ZodString;
653
+ jobId: z.ZodString;
654
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
655
+ eligibleAtRequest: z.ZodNumber;
656
+ requestedByName: z.ZodNullable<z.ZodString>;
657
+ contactedCount: z.ZodNumber;
658
+ createdAt: z.ZodString;
659
+ startedAt: z.ZodNullable<z.ZodString>;
660
+ completedAt: z.ZodNullable<z.ZodString>;
661
+ } & {
662
+ job: z.ZodObject<{
663
+ title: z.ZodString;
664
+ trade: z.ZodNullable<z.ZodString>;
665
+ payText: z.ZodNullable<z.ZodString>;
666
+ locationText: z.ZodNullable<z.ZodString>;
667
+ createdByName: z.ZodNullable<z.ZodString>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ createdByName: string | null;
670
+ title: string;
671
+ trade: string | null;
672
+ payText: string | null;
673
+ locationText: string | null;
674
+ }, {
675
+ createdByName: string | null;
676
+ title: string;
677
+ trade: string | null;
678
+ payText: string | null;
679
+ locationText: string | null;
680
+ }>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ id: string;
683
+ createdAt: string;
684
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
685
+ jobId: string;
686
+ job: {
687
+ createdByName: string | null;
688
+ title: string;
689
+ trade: string | null;
690
+ payText: string | null;
691
+ locationText: string | null;
692
+ };
693
+ startedAt: string | null;
694
+ completedAt: string | null;
695
+ requestedByName: string | null;
696
+ contactedCount: number;
697
+ eligibleAtRequest: number;
698
+ }, {
699
+ id: string;
700
+ createdAt: string;
701
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
702
+ jobId: string;
703
+ job: {
704
+ createdByName: string | null;
705
+ title: string;
706
+ trade: string | null;
707
+ payText: string | null;
708
+ locationText: string | null;
709
+ };
710
+ startedAt: string | null;
711
+ completedAt: string | null;
712
+ requestedByName: string | null;
713
+ contactedCount: number;
714
+ eligibleAtRequest: number;
715
+ }>, "many">;
716
+ }, "strip", z.ZodTypeAny, {
717
+ items: {
718
+ id: string;
719
+ createdAt: string;
720
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
721
+ jobId: string;
722
+ job: {
723
+ createdByName: string | null;
724
+ title: string;
725
+ trade: string | null;
726
+ payText: string | null;
727
+ locationText: string | null;
728
+ };
729
+ startedAt: string | null;
730
+ completedAt: string | null;
731
+ requestedByName: string | null;
732
+ contactedCount: number;
733
+ eligibleAtRequest: number;
734
+ }[];
735
+ }, {
736
+ items: {
737
+ id: string;
738
+ createdAt: string;
739
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
740
+ jobId: string;
741
+ job: {
742
+ createdByName: string | null;
743
+ title: string;
744
+ trade: string | null;
745
+ payText: string | null;
746
+ locationText: string | null;
747
+ };
748
+ startedAt: string | null;
749
+ completedAt: string | null;
750
+ requestedByName: string | null;
751
+ contactedCount: number;
752
+ eligibleAtRequest: number;
753
+ }[];
754
+ }>;
755
+ };
756
+ };
757
+ start: {
758
+ description: string;
759
+ metadata: {
760
+ tags: string[];
761
+ };
762
+ pathParams: z.ZodObject<{
763
+ id: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ id: string;
766
+ }, {
767
+ id: string;
768
+ }>;
769
+ summary: "Mark a request as being worked";
770
+ method: "POST";
771
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
772
+ path: "/v2/outreach/requests/:id/start";
773
+ responses: {
774
+ 400: z.ZodObject<{
775
+ statusCode: z.ZodNumber;
776
+ message: z.ZodString;
777
+ code: z.ZodString;
778
+ details: z.ZodOptional<z.ZodUnknown>;
779
+ timestamp: z.ZodString;
780
+ path: z.ZodString;
781
+ correlationId: z.ZodOptional<z.ZodString>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ message: string;
784
+ path: string;
785
+ code: string;
786
+ statusCode: number;
787
+ timestamp: string;
788
+ details?: unknown;
789
+ correlationId?: string | undefined;
790
+ }, {
791
+ message: string;
792
+ path: string;
793
+ code: string;
794
+ statusCode: number;
795
+ timestamp: string;
796
+ details?: unknown;
797
+ correlationId?: string | undefined;
798
+ }>;
799
+ 401: z.ZodObject<{
800
+ statusCode: z.ZodNumber;
801
+ message: z.ZodString;
802
+ code: z.ZodString;
803
+ details: z.ZodOptional<z.ZodUnknown>;
804
+ timestamp: z.ZodString;
805
+ path: z.ZodString;
806
+ correlationId: z.ZodOptional<z.ZodString>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ message: string;
809
+ path: string;
810
+ code: string;
811
+ statusCode: number;
812
+ timestamp: string;
813
+ details?: unknown;
814
+ correlationId?: string | undefined;
815
+ }, {
816
+ message: string;
817
+ path: string;
818
+ code: string;
819
+ statusCode: number;
820
+ timestamp: string;
821
+ details?: unknown;
822
+ correlationId?: string | undefined;
823
+ }>;
824
+ 403: z.ZodObject<{
825
+ statusCode: z.ZodNumber;
826
+ message: z.ZodString;
827
+ code: z.ZodString;
828
+ details: z.ZodOptional<z.ZodUnknown>;
829
+ timestamp: z.ZodString;
830
+ path: z.ZodString;
831
+ correlationId: z.ZodOptional<z.ZodString>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ message: string;
834
+ path: string;
835
+ code: string;
836
+ statusCode: number;
837
+ timestamp: string;
838
+ details?: unknown;
839
+ correlationId?: string | undefined;
840
+ }, {
841
+ message: string;
842
+ path: string;
843
+ code: string;
844
+ statusCode: number;
845
+ timestamp: string;
846
+ details?: unknown;
847
+ correlationId?: string | undefined;
848
+ }>;
849
+ 500: z.ZodObject<{
850
+ statusCode: z.ZodNumber;
851
+ message: z.ZodString;
852
+ code: z.ZodString;
853
+ details: z.ZodOptional<z.ZodUnknown>;
854
+ timestamp: z.ZodString;
855
+ path: z.ZodString;
856
+ correlationId: z.ZodOptional<z.ZodString>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ message: string;
859
+ path: string;
860
+ code: string;
861
+ statusCode: number;
862
+ timestamp: string;
863
+ details?: unknown;
864
+ correlationId?: string | undefined;
865
+ }, {
866
+ message: string;
867
+ path: string;
868
+ code: string;
869
+ statusCode: number;
870
+ timestamp: string;
871
+ details?: unknown;
872
+ correlationId?: string | undefined;
873
+ }>;
874
+ 200: z.ZodObject<{
875
+ id: z.ZodString;
876
+ jobId: z.ZodString;
877
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
878
+ eligibleAtRequest: z.ZodNumber;
879
+ requestedByName: z.ZodNullable<z.ZodString>;
880
+ contactedCount: z.ZodNumber;
881
+ createdAt: z.ZodString;
882
+ startedAt: z.ZodNullable<z.ZodString>;
883
+ completedAt: z.ZodNullable<z.ZodString>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ id: string;
886
+ createdAt: string;
887
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
888
+ jobId: string;
889
+ startedAt: string | null;
890
+ completedAt: string | null;
891
+ requestedByName: string | null;
892
+ contactedCount: number;
893
+ eligibleAtRequest: number;
894
+ }, {
895
+ id: string;
896
+ createdAt: string;
897
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
898
+ jobId: string;
899
+ startedAt: string | null;
900
+ completedAt: string | null;
901
+ requestedByName: string | null;
902
+ contactedCount: number;
903
+ eligibleAtRequest: number;
904
+ }>;
905
+ 404: z.ZodObject<{
906
+ statusCode: z.ZodNumber;
907
+ message: z.ZodString;
908
+ code: z.ZodString;
909
+ details: z.ZodOptional<z.ZodUnknown>;
910
+ timestamp: z.ZodString;
911
+ path: z.ZodString;
912
+ correlationId: z.ZodOptional<z.ZodString>;
913
+ }, "strip", z.ZodTypeAny, {
914
+ message: string;
915
+ path: string;
916
+ code: string;
917
+ statusCode: number;
918
+ timestamp: string;
919
+ details?: unknown;
920
+ correlationId?: string | undefined;
921
+ }, {
922
+ message: string;
923
+ path: string;
924
+ code: string;
925
+ statusCode: number;
926
+ timestamp: string;
927
+ details?: unknown;
928
+ correlationId?: string | undefined;
929
+ }>;
930
+ };
931
+ };
932
+ complete: {
933
+ description: string;
934
+ metadata: {
935
+ tags: string[];
936
+ };
937
+ pathParams: z.ZodObject<{
938
+ id: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ id: string;
941
+ }, {
942
+ id: string;
943
+ }>;
944
+ summary: "Mark a request as drained or ended";
945
+ method: "POST";
946
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
947
+ path: "/v2/outreach/requests/:id/complete";
948
+ responses: {
949
+ 400: z.ZodObject<{
950
+ statusCode: z.ZodNumber;
951
+ message: z.ZodString;
952
+ code: z.ZodString;
953
+ details: z.ZodOptional<z.ZodUnknown>;
954
+ timestamp: z.ZodString;
955
+ path: z.ZodString;
956
+ correlationId: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ message: string;
959
+ path: string;
960
+ code: string;
961
+ statusCode: number;
962
+ timestamp: string;
963
+ details?: unknown;
964
+ correlationId?: string | undefined;
965
+ }, {
966
+ message: string;
967
+ path: string;
968
+ code: string;
969
+ statusCode: number;
970
+ timestamp: string;
971
+ details?: unknown;
972
+ correlationId?: string | undefined;
973
+ }>;
974
+ 401: z.ZodObject<{
975
+ statusCode: z.ZodNumber;
976
+ message: z.ZodString;
977
+ code: z.ZodString;
978
+ details: z.ZodOptional<z.ZodUnknown>;
979
+ timestamp: z.ZodString;
980
+ path: z.ZodString;
981
+ correlationId: z.ZodOptional<z.ZodString>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ message: string;
984
+ path: string;
985
+ code: string;
986
+ statusCode: number;
987
+ timestamp: string;
988
+ details?: unknown;
989
+ correlationId?: string | undefined;
990
+ }, {
991
+ message: string;
992
+ path: string;
993
+ code: string;
994
+ statusCode: number;
995
+ timestamp: string;
996
+ details?: unknown;
997
+ correlationId?: string | undefined;
998
+ }>;
999
+ 403: z.ZodObject<{
1000
+ statusCode: z.ZodNumber;
1001
+ message: z.ZodString;
1002
+ code: z.ZodString;
1003
+ details: z.ZodOptional<z.ZodUnknown>;
1004
+ timestamp: z.ZodString;
1005
+ path: z.ZodString;
1006
+ correlationId: z.ZodOptional<z.ZodString>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ message: string;
1009
+ path: string;
1010
+ code: string;
1011
+ statusCode: number;
1012
+ timestamp: string;
1013
+ details?: unknown;
1014
+ correlationId?: string | undefined;
1015
+ }, {
1016
+ message: string;
1017
+ path: string;
1018
+ code: string;
1019
+ statusCode: number;
1020
+ timestamp: string;
1021
+ details?: unknown;
1022
+ correlationId?: string | undefined;
1023
+ }>;
1024
+ 500: z.ZodObject<{
1025
+ statusCode: z.ZodNumber;
1026
+ message: z.ZodString;
1027
+ code: z.ZodString;
1028
+ details: z.ZodOptional<z.ZodUnknown>;
1029
+ timestamp: z.ZodString;
1030
+ path: z.ZodString;
1031
+ correlationId: z.ZodOptional<z.ZodString>;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ message: string;
1034
+ path: string;
1035
+ code: string;
1036
+ statusCode: number;
1037
+ timestamp: string;
1038
+ details?: unknown;
1039
+ correlationId?: string | undefined;
1040
+ }, {
1041
+ message: string;
1042
+ path: string;
1043
+ code: string;
1044
+ statusCode: number;
1045
+ timestamp: string;
1046
+ details?: unknown;
1047
+ correlationId?: string | undefined;
1048
+ }>;
1049
+ 200: z.ZodObject<{
1050
+ id: z.ZodString;
1051
+ jobId: z.ZodString;
1052
+ status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
1053
+ eligibleAtRequest: z.ZodNumber;
1054
+ requestedByName: z.ZodNullable<z.ZodString>;
1055
+ contactedCount: z.ZodNumber;
1056
+ createdAt: z.ZodString;
1057
+ startedAt: z.ZodNullable<z.ZodString>;
1058
+ completedAt: z.ZodNullable<z.ZodString>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ id: string;
1061
+ createdAt: string;
1062
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
1063
+ jobId: string;
1064
+ startedAt: string | null;
1065
+ completedAt: string | null;
1066
+ requestedByName: string | null;
1067
+ contactedCount: number;
1068
+ eligibleAtRequest: number;
1069
+ }, {
1070
+ id: string;
1071
+ createdAt: string;
1072
+ status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
1073
+ jobId: string;
1074
+ startedAt: string | null;
1075
+ completedAt: string | null;
1076
+ requestedByName: string | null;
1077
+ contactedCount: number;
1078
+ eligibleAtRequest: number;
1079
+ }>;
1080
+ 404: z.ZodObject<{
1081
+ statusCode: z.ZodNumber;
1082
+ message: z.ZodString;
1083
+ code: z.ZodString;
1084
+ details: z.ZodOptional<z.ZodUnknown>;
1085
+ timestamp: z.ZodString;
1086
+ path: z.ZodString;
1087
+ correlationId: z.ZodOptional<z.ZodString>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ message: string;
1090
+ path: string;
1091
+ code: string;
1092
+ statusCode: number;
1093
+ timestamp: string;
1094
+ details?: unknown;
1095
+ correlationId?: string | undefined;
1096
+ }, {
1097
+ message: string;
1098
+ path: string;
1099
+ code: string;
1100
+ statusCode: number;
1101
+ timestamp: string;
1102
+ details?: unknown;
1103
+ correlationId?: string | undefined;
1104
+ }>;
1105
+ };
1106
+ };
1107
+ };
1108
+ //# sourceMappingURL=outreach-requests.contract.d.ts.map