@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.
- package/dist/abilities/abilities.contract.d.ts +3 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +4 -1
- package/dist/abilities/first-agent.abilities.json +13 -0
- package/dist/abilities/outreach-service.abilities.json +14 -0
- package/dist/abilities/second-agent.abilities.json +13 -0
- package/dist/actives/actives.contract.d.ts +8657 -8657
- package/dist/bookings/bookings.contract.d.ts +13082 -13082
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +4322 -4322
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +398 -398
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1205 -1205
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5811 -5629
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +31 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +190 -190
- package/dist/dashboards/dashboard-widgets.contract.d.ts +262 -262
- package/dist/export-jobs/export-jobs.contract.d.ts +828 -818
- package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -1
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/jobs/jobs.contract.d.ts +9534 -9522
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +9 -0
- package/dist/notifications/notifications.contract.d.ts +42 -42
- package/dist/outreach/__tests__/outreach-claim.test.js +1 -0
- package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts +2 -0
- package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts.map +1 -0
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +78 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts +2 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts.map +1 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +64 -0
- package/dist/outreach/__tests__/outreach.schemas.test.js +5 -1
- package/dist/outreach/outreach-requests.contract.d.ts +1108 -0
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -0
- package/dist/outreach/outreach-requests.contract.js +134 -0
- package/dist/outreach/outreach-requests.schemas.d.ts +49 -0
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -0
- package/dist/outreach/outreach-requests.schemas.js +60 -0
- package/dist/outreach/outreach.contract.d.ts +145 -135
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.schemas.d.ts +15 -10
- package/dist/outreach/outreach.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach.schemas.js +5 -2
- package/package.json +1 -1
|
@@ -37,11 +37,11 @@ export declare const ClaimNextOutreachResponseSchema: z.ZodDiscriminatedUnion<"s
|
|
|
37
37
|
leaseId: z.ZodString;
|
|
38
38
|
expiresAt: z.ZodString;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
leaseId: string;
|
|
41
40
|
expiresAt: string;
|
|
42
|
-
}, {
|
|
43
41
|
leaseId: string;
|
|
42
|
+
}, {
|
|
44
43
|
expiresAt: string;
|
|
44
|
+
leaseId: string;
|
|
45
45
|
}>;
|
|
46
46
|
candidate: z.ZodObject<{
|
|
47
47
|
subjectKind: z.ZodEnum<["OWNED", "CURATED"]>;
|
|
@@ -53,35 +53,38 @@ export declare const ClaimNextOutreachResponseSchema: z.ZodDiscriminatedUnion<"s
|
|
|
53
53
|
commuteMinutes: z.ZodNumber;
|
|
54
54
|
transportMode: z.ZodEnum<["DRIVE", "PUBLIC_TRANSPORT"]>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
name: string;
|
|
57
|
+
phoneNumber: string;
|
|
56
58
|
subjectKind: "OWNED" | "CURATED";
|
|
57
59
|
subjectId: string;
|
|
58
60
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
59
61
|
canonicalId: string;
|
|
60
|
-
name: string;
|
|
61
|
-
phoneNumber: string;
|
|
62
62
|
commuteMinutes: number;
|
|
63
|
-
transportMode: "
|
|
63
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
64
64
|
}, {
|
|
65
|
+
name: string;
|
|
66
|
+
phoneNumber: string;
|
|
65
67
|
subjectKind: "OWNED" | "CURATED";
|
|
66
68
|
subjectId: string;
|
|
67
69
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
68
70
|
canonicalId: string;
|
|
69
|
-
name: string;
|
|
70
|
-
phoneNumber: string;
|
|
71
71
|
commuteMinutes: number;
|
|
72
|
-
transportMode: "
|
|
72
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
73
73
|
}>;
|
|
74
74
|
job: z.ZodObject<{
|
|
75
75
|
title: z.ZodString;
|
|
76
76
|
trade: z.ZodNullable<z.ZodString>;
|
|
77
77
|
payText: z.ZodNullable<z.ZodString>;
|
|
78
78
|
locationText: z.ZodNullable<z.ZodString>;
|
|
79
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
79
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
createdByName: string | null;
|
|
80
82
|
title: string;
|
|
81
83
|
trade: string | null;
|
|
82
84
|
payText: string | null;
|
|
83
85
|
locationText: string | null;
|
|
84
86
|
}, {
|
|
87
|
+
createdByName: string | null;
|
|
85
88
|
title: string;
|
|
86
89
|
trade: string | null;
|
|
87
90
|
payText: string | null;
|
|
@@ -89,47 +92,49 @@ export declare const ClaimNextOutreachResponseSchema: z.ZodDiscriminatedUnion<"s
|
|
|
89
92
|
}>;
|
|
90
93
|
}, "strip", z.ZodTypeAny, {
|
|
91
94
|
status: "CLAIMED";
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
job: {
|
|
96
|
+
createdByName: string | null;
|
|
97
|
+
title: string;
|
|
98
|
+
trade: string | null;
|
|
99
|
+
payText: string | null;
|
|
100
|
+
locationText: string | null;
|
|
95
101
|
};
|
|
96
102
|
candidate: {
|
|
103
|
+
name: string;
|
|
104
|
+
phoneNumber: string;
|
|
97
105
|
subjectKind: "OWNED" | "CURATED";
|
|
98
106
|
subjectId: string;
|
|
99
107
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
100
108
|
canonicalId: string;
|
|
101
|
-
name: string;
|
|
102
|
-
phoneNumber: string;
|
|
103
109
|
commuteMinutes: number;
|
|
104
|
-
transportMode: "
|
|
110
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
105
111
|
};
|
|
112
|
+
lease: {
|
|
113
|
+
expiresAt: string;
|
|
114
|
+
leaseId: string;
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
status: "CLAIMED";
|
|
106
118
|
job: {
|
|
119
|
+
createdByName: string | null;
|
|
107
120
|
title: string;
|
|
108
121
|
trade: string | null;
|
|
109
122
|
payText: string | null;
|
|
110
123
|
locationText: string | null;
|
|
111
124
|
};
|
|
112
|
-
}, {
|
|
113
|
-
status: "CLAIMED";
|
|
114
|
-
lease: {
|
|
115
|
-
leaseId: string;
|
|
116
|
-
expiresAt: string;
|
|
117
|
-
};
|
|
118
125
|
candidate: {
|
|
126
|
+
name: string;
|
|
127
|
+
phoneNumber: string;
|
|
119
128
|
subjectKind: "OWNED" | "CURATED";
|
|
120
129
|
subjectId: string;
|
|
121
130
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
122
131
|
canonicalId: string;
|
|
123
|
-
name: string;
|
|
124
|
-
phoneNumber: string;
|
|
125
132
|
commuteMinutes: number;
|
|
126
|
-
transportMode: "
|
|
133
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
127
134
|
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
payText: string | null;
|
|
132
|
-
locationText: string | null;
|
|
135
|
+
lease: {
|
|
136
|
+
expiresAt: string;
|
|
137
|
+
leaseId: string;
|
|
133
138
|
};
|
|
134
139
|
}>, z.ZodObject<{
|
|
135
140
|
status: z.ZodLiteral<"POOL_EMPTY">;
|
|
@@ -195,12 +200,12 @@ export declare const ReleaseOutreachLeaseBodySchema: z.ZodObject<{
|
|
|
195
200
|
reason: z.ZodEnum<["CONTACT_SAVE_FAILED", "CHAT_OPEN_FAILED", "COMPOSE_FAILED", "OTHER"]>;
|
|
196
201
|
detail: z.ZodOptional<z.ZodString>;
|
|
197
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
198
204
|
deviceId: string;
|
|
199
|
-
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
200
205
|
detail?: string | undefined;
|
|
201
206
|
}, {
|
|
207
|
+
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
202
208
|
deviceId: string;
|
|
203
|
-
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
204
209
|
detail?: string | undefined;
|
|
205
210
|
}>;
|
|
206
211
|
export type ReleaseOutreachLeaseBody = z.infer<typeof ReleaseOutreachLeaseBodySchema>;
|
|
@@ -214,6 +219,7 @@ export declare const ReleaseOutreachLeaseResponseSchema: z.ZodObject<{
|
|
|
214
219
|
export type ReleaseOutreachLeaseResponse = z.infer<typeof ReleaseOutreachLeaseResponseSchema>;
|
|
215
220
|
export declare const outreachContract: {
|
|
216
221
|
claimNext: {
|
|
222
|
+
description: string;
|
|
217
223
|
metadata: {
|
|
218
224
|
tags: string[];
|
|
219
225
|
};
|
|
@@ -225,7 +231,6 @@ export declare const outreachContract: {
|
|
|
225
231
|
jobId: string;
|
|
226
232
|
}>;
|
|
227
233
|
summary: "Claim the next eligible candidate for a job";
|
|
228
|
-
description: string;
|
|
229
234
|
method: "POST";
|
|
230
235
|
body: z.ZodObject<{
|
|
231
236
|
deviceId: z.ZodString;
|
|
@@ -236,7 +241,7 @@ export declare const outreachContract: {
|
|
|
236
241
|
}>;
|
|
237
242
|
path: "/v2/outreach/jobs/:jobId/claim-next";
|
|
238
243
|
responses: {
|
|
239
|
-
|
|
244
|
+
400: z.ZodObject<{
|
|
240
245
|
statusCode: z.ZodNumber;
|
|
241
246
|
message: z.ZodString;
|
|
242
247
|
code: z.ZodString;
|
|
@@ -245,23 +250,23 @@ export declare const outreachContract: {
|
|
|
245
250
|
path: z.ZodString;
|
|
246
251
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
247
252
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
code: string;
|
|
249
|
-
path: string;
|
|
250
253
|
message: string;
|
|
254
|
+
path: string;
|
|
255
|
+
code: string;
|
|
251
256
|
statusCode: number;
|
|
252
257
|
timestamp: string;
|
|
253
258
|
details?: unknown;
|
|
254
259
|
correlationId?: string | undefined;
|
|
255
260
|
}, {
|
|
256
|
-
code: string;
|
|
257
|
-
path: string;
|
|
258
261
|
message: string;
|
|
262
|
+
path: string;
|
|
263
|
+
code: string;
|
|
259
264
|
statusCode: number;
|
|
260
265
|
timestamp: string;
|
|
261
266
|
details?: unknown;
|
|
262
267
|
correlationId?: string | undefined;
|
|
263
268
|
}>;
|
|
264
|
-
|
|
269
|
+
401: z.ZodObject<{
|
|
265
270
|
statusCode: z.ZodNumber;
|
|
266
271
|
message: z.ZodString;
|
|
267
272
|
code: z.ZodString;
|
|
@@ -270,23 +275,23 @@ export declare const outreachContract: {
|
|
|
270
275
|
path: z.ZodString;
|
|
271
276
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
272
277
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
code: string;
|
|
274
|
-
path: string;
|
|
275
278
|
message: string;
|
|
279
|
+
path: string;
|
|
280
|
+
code: string;
|
|
276
281
|
statusCode: number;
|
|
277
282
|
timestamp: string;
|
|
278
283
|
details?: unknown;
|
|
279
284
|
correlationId?: string | undefined;
|
|
280
285
|
}, {
|
|
281
|
-
code: string;
|
|
282
|
-
path: string;
|
|
283
286
|
message: string;
|
|
287
|
+
path: string;
|
|
288
|
+
code: string;
|
|
284
289
|
statusCode: number;
|
|
285
290
|
timestamp: string;
|
|
286
291
|
details?: unknown;
|
|
287
292
|
correlationId?: string | undefined;
|
|
288
293
|
}>;
|
|
289
|
-
|
|
294
|
+
403: z.ZodObject<{
|
|
290
295
|
statusCode: z.ZodNumber;
|
|
291
296
|
message: z.ZodString;
|
|
292
297
|
code: z.ZodString;
|
|
@@ -295,23 +300,23 @@ export declare const outreachContract: {
|
|
|
295
300
|
path: z.ZodString;
|
|
296
301
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
297
302
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
code: string;
|
|
299
|
-
path: string;
|
|
300
303
|
message: string;
|
|
304
|
+
path: string;
|
|
305
|
+
code: string;
|
|
301
306
|
statusCode: number;
|
|
302
307
|
timestamp: string;
|
|
303
308
|
details?: unknown;
|
|
304
309
|
correlationId?: string | undefined;
|
|
305
310
|
}, {
|
|
306
|
-
code: string;
|
|
307
|
-
path: string;
|
|
308
311
|
message: string;
|
|
312
|
+
path: string;
|
|
313
|
+
code: string;
|
|
309
314
|
statusCode: number;
|
|
310
315
|
timestamp: string;
|
|
311
316
|
details?: unknown;
|
|
312
317
|
correlationId?: string | undefined;
|
|
313
318
|
}>;
|
|
314
|
-
|
|
319
|
+
500: z.ZodObject<{
|
|
315
320
|
statusCode: z.ZodNumber;
|
|
316
321
|
message: z.ZodString;
|
|
317
322
|
code: z.ZodString;
|
|
@@ -320,17 +325,17 @@ export declare const outreachContract: {
|
|
|
320
325
|
path: z.ZodString;
|
|
321
326
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
322
327
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
-
code: string;
|
|
324
|
-
path: string;
|
|
325
328
|
message: string;
|
|
329
|
+
path: string;
|
|
330
|
+
code: string;
|
|
326
331
|
statusCode: number;
|
|
327
332
|
timestamp: string;
|
|
328
333
|
details?: unknown;
|
|
329
334
|
correlationId?: string | undefined;
|
|
330
335
|
}, {
|
|
331
|
-
code: string;
|
|
332
|
-
path: string;
|
|
333
336
|
message: string;
|
|
337
|
+
path: string;
|
|
338
|
+
code: string;
|
|
334
339
|
statusCode: number;
|
|
335
340
|
timestamp: string;
|
|
336
341
|
details?: unknown;
|
|
@@ -342,11 +347,11 @@ export declare const outreachContract: {
|
|
|
342
347
|
leaseId: z.ZodString;
|
|
343
348
|
expiresAt: z.ZodString;
|
|
344
349
|
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
leaseId: string;
|
|
346
350
|
expiresAt: string;
|
|
347
|
-
}, {
|
|
348
351
|
leaseId: string;
|
|
352
|
+
}, {
|
|
349
353
|
expiresAt: string;
|
|
354
|
+
leaseId: string;
|
|
350
355
|
}>;
|
|
351
356
|
candidate: z.ZodObject<{
|
|
352
357
|
subjectKind: z.ZodEnum<["OWNED", "CURATED"]>;
|
|
@@ -358,35 +363,38 @@ export declare const outreachContract: {
|
|
|
358
363
|
commuteMinutes: z.ZodNumber;
|
|
359
364
|
transportMode: z.ZodEnum<["DRIVE", "PUBLIC_TRANSPORT"]>;
|
|
360
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
name: string;
|
|
367
|
+
phoneNumber: string;
|
|
361
368
|
subjectKind: "OWNED" | "CURATED";
|
|
362
369
|
subjectId: string;
|
|
363
370
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
364
371
|
canonicalId: string;
|
|
365
|
-
name: string;
|
|
366
|
-
phoneNumber: string;
|
|
367
372
|
commuteMinutes: number;
|
|
368
|
-
transportMode: "
|
|
373
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
369
374
|
}, {
|
|
375
|
+
name: string;
|
|
376
|
+
phoneNumber: string;
|
|
370
377
|
subjectKind: "OWNED" | "CURATED";
|
|
371
378
|
subjectId: string;
|
|
372
379
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
373
380
|
canonicalId: string;
|
|
374
|
-
name: string;
|
|
375
|
-
phoneNumber: string;
|
|
376
381
|
commuteMinutes: number;
|
|
377
|
-
transportMode: "
|
|
382
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
378
383
|
}>;
|
|
379
384
|
job: z.ZodObject<{
|
|
380
385
|
title: z.ZodString;
|
|
381
386
|
trade: z.ZodNullable<z.ZodString>;
|
|
382
387
|
payText: z.ZodNullable<z.ZodString>;
|
|
383
388
|
locationText: z.ZodNullable<z.ZodString>;
|
|
389
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
384
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
createdByName: string | null;
|
|
385
392
|
title: string;
|
|
386
393
|
trade: string | null;
|
|
387
394
|
payText: string | null;
|
|
388
395
|
locationText: string | null;
|
|
389
396
|
}, {
|
|
397
|
+
createdByName: string | null;
|
|
390
398
|
title: string;
|
|
391
399
|
trade: string | null;
|
|
392
400
|
payText: string | null;
|
|
@@ -394,47 +402,49 @@ export declare const outreachContract: {
|
|
|
394
402
|
}>;
|
|
395
403
|
}, "strip", z.ZodTypeAny, {
|
|
396
404
|
status: "CLAIMED";
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
405
|
+
job: {
|
|
406
|
+
createdByName: string | null;
|
|
407
|
+
title: string;
|
|
408
|
+
trade: string | null;
|
|
409
|
+
payText: string | null;
|
|
410
|
+
locationText: string | null;
|
|
400
411
|
};
|
|
401
412
|
candidate: {
|
|
413
|
+
name: string;
|
|
414
|
+
phoneNumber: string;
|
|
402
415
|
subjectKind: "OWNED" | "CURATED";
|
|
403
416
|
subjectId: string;
|
|
404
417
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
405
418
|
canonicalId: string;
|
|
406
|
-
name: string;
|
|
407
|
-
phoneNumber: string;
|
|
408
419
|
commuteMinutes: number;
|
|
409
|
-
transportMode: "
|
|
420
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
410
421
|
};
|
|
422
|
+
lease: {
|
|
423
|
+
expiresAt: string;
|
|
424
|
+
leaseId: string;
|
|
425
|
+
};
|
|
426
|
+
}, {
|
|
427
|
+
status: "CLAIMED";
|
|
411
428
|
job: {
|
|
429
|
+
createdByName: string | null;
|
|
412
430
|
title: string;
|
|
413
431
|
trade: string | null;
|
|
414
432
|
payText: string | null;
|
|
415
433
|
locationText: string | null;
|
|
416
434
|
};
|
|
417
|
-
}, {
|
|
418
|
-
status: "CLAIMED";
|
|
419
|
-
lease: {
|
|
420
|
-
leaseId: string;
|
|
421
|
-
expiresAt: string;
|
|
422
|
-
};
|
|
423
435
|
candidate: {
|
|
436
|
+
name: string;
|
|
437
|
+
phoneNumber: string;
|
|
424
438
|
subjectKind: "OWNED" | "CURATED";
|
|
425
439
|
subjectId: string;
|
|
426
440
|
canonicalKind: "WORKER" | "CURATED_WORKER";
|
|
427
441
|
canonicalId: string;
|
|
428
|
-
name: string;
|
|
429
|
-
phoneNumber: string;
|
|
430
442
|
commuteMinutes: number;
|
|
431
|
-
transportMode: "
|
|
443
|
+
transportMode: "PUBLIC_TRANSPORT" | "DRIVE";
|
|
432
444
|
};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
payText: string | null;
|
|
437
|
-
locationText: string | null;
|
|
445
|
+
lease: {
|
|
446
|
+
expiresAt: string;
|
|
447
|
+
leaseId: string;
|
|
438
448
|
};
|
|
439
449
|
}>, z.ZodObject<{
|
|
440
450
|
status: z.ZodLiteral<"POOL_EMPTY">;
|
|
@@ -452,17 +462,17 @@ export declare const outreachContract: {
|
|
|
452
462
|
path: z.ZodString;
|
|
453
463
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
454
464
|
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
code: string;
|
|
456
|
-
path: string;
|
|
457
465
|
message: string;
|
|
466
|
+
path: string;
|
|
467
|
+
code: string;
|
|
458
468
|
statusCode: number;
|
|
459
469
|
timestamp: string;
|
|
460
470
|
details?: unknown;
|
|
461
471
|
correlationId?: string | undefined;
|
|
462
472
|
}, {
|
|
463
|
-
code: string;
|
|
464
|
-
path: string;
|
|
465
473
|
message: string;
|
|
474
|
+
path: string;
|
|
475
|
+
code: string;
|
|
466
476
|
statusCode: number;
|
|
467
477
|
timestamp: string;
|
|
468
478
|
details?: unknown;
|
|
@@ -471,6 +481,7 @@ export declare const outreachContract: {
|
|
|
471
481
|
};
|
|
472
482
|
};
|
|
473
483
|
confirmSent: {
|
|
484
|
+
description: string;
|
|
474
485
|
metadata: {
|
|
475
486
|
tags: string[];
|
|
476
487
|
};
|
|
@@ -482,7 +493,6 @@ export declare const outreachContract: {
|
|
|
482
493
|
leaseId: string;
|
|
483
494
|
}>;
|
|
484
495
|
summary: "Confirm that a message was sent under a lease";
|
|
485
|
-
description: string;
|
|
486
496
|
method: "POST";
|
|
487
497
|
body: z.ZodObject<{
|
|
488
498
|
deviceId: z.ZodString;
|
|
@@ -505,7 +515,7 @@ export declare const outreachContract: {
|
|
|
505
515
|
}>;
|
|
506
516
|
path: "/v2/outreach/leases/:leaseId/sent";
|
|
507
517
|
responses: {
|
|
508
|
-
|
|
518
|
+
400: z.ZodObject<{
|
|
509
519
|
statusCode: z.ZodNumber;
|
|
510
520
|
message: z.ZodString;
|
|
511
521
|
code: z.ZodString;
|
|
@@ -514,23 +524,23 @@ export declare const outreachContract: {
|
|
|
514
524
|
path: z.ZodString;
|
|
515
525
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
516
526
|
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
code: string;
|
|
518
|
-
path: string;
|
|
519
527
|
message: string;
|
|
528
|
+
path: string;
|
|
529
|
+
code: string;
|
|
520
530
|
statusCode: number;
|
|
521
531
|
timestamp: string;
|
|
522
532
|
details?: unknown;
|
|
523
533
|
correlationId?: string | undefined;
|
|
524
534
|
}, {
|
|
525
|
-
code: string;
|
|
526
|
-
path: string;
|
|
527
535
|
message: string;
|
|
536
|
+
path: string;
|
|
537
|
+
code: string;
|
|
528
538
|
statusCode: number;
|
|
529
539
|
timestamp: string;
|
|
530
540
|
details?: unknown;
|
|
531
541
|
correlationId?: string | undefined;
|
|
532
542
|
}>;
|
|
533
|
-
|
|
543
|
+
401: z.ZodObject<{
|
|
534
544
|
statusCode: z.ZodNumber;
|
|
535
545
|
message: z.ZodString;
|
|
536
546
|
code: z.ZodString;
|
|
@@ -539,23 +549,23 @@ export declare const outreachContract: {
|
|
|
539
549
|
path: z.ZodString;
|
|
540
550
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
541
551
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
code: string;
|
|
543
|
-
path: string;
|
|
544
552
|
message: string;
|
|
553
|
+
path: string;
|
|
554
|
+
code: string;
|
|
545
555
|
statusCode: number;
|
|
546
556
|
timestamp: string;
|
|
547
557
|
details?: unknown;
|
|
548
558
|
correlationId?: string | undefined;
|
|
549
559
|
}, {
|
|
550
|
-
code: string;
|
|
551
|
-
path: string;
|
|
552
560
|
message: string;
|
|
561
|
+
path: string;
|
|
562
|
+
code: string;
|
|
553
563
|
statusCode: number;
|
|
554
564
|
timestamp: string;
|
|
555
565
|
details?: unknown;
|
|
556
566
|
correlationId?: string | undefined;
|
|
557
567
|
}>;
|
|
558
|
-
|
|
568
|
+
403: z.ZodObject<{
|
|
559
569
|
statusCode: z.ZodNumber;
|
|
560
570
|
message: z.ZodString;
|
|
561
571
|
code: z.ZodString;
|
|
@@ -564,23 +574,23 @@ export declare const outreachContract: {
|
|
|
564
574
|
path: z.ZodString;
|
|
565
575
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
566
576
|
}, "strip", z.ZodTypeAny, {
|
|
567
|
-
code: string;
|
|
568
|
-
path: string;
|
|
569
577
|
message: string;
|
|
578
|
+
path: string;
|
|
579
|
+
code: string;
|
|
570
580
|
statusCode: number;
|
|
571
581
|
timestamp: string;
|
|
572
582
|
details?: unknown;
|
|
573
583
|
correlationId?: string | undefined;
|
|
574
584
|
}, {
|
|
575
|
-
code: string;
|
|
576
|
-
path: string;
|
|
577
585
|
message: string;
|
|
586
|
+
path: string;
|
|
587
|
+
code: string;
|
|
578
588
|
statusCode: number;
|
|
579
589
|
timestamp: string;
|
|
580
590
|
details?: unknown;
|
|
581
591
|
correlationId?: string | undefined;
|
|
582
592
|
}>;
|
|
583
|
-
|
|
593
|
+
500: z.ZodObject<{
|
|
584
594
|
statusCode: z.ZodNumber;
|
|
585
595
|
message: z.ZodString;
|
|
586
596
|
code: z.ZodString;
|
|
@@ -589,17 +599,17 @@ export declare const outreachContract: {
|
|
|
589
599
|
path: z.ZodString;
|
|
590
600
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
591
601
|
}, "strip", z.ZodTypeAny, {
|
|
592
|
-
code: string;
|
|
593
|
-
path: string;
|
|
594
602
|
message: string;
|
|
603
|
+
path: string;
|
|
604
|
+
code: string;
|
|
595
605
|
statusCode: number;
|
|
596
606
|
timestamp: string;
|
|
597
607
|
details?: unknown;
|
|
598
608
|
correlationId?: string | undefined;
|
|
599
609
|
}, {
|
|
600
|
-
code: string;
|
|
601
|
-
path: string;
|
|
602
610
|
message: string;
|
|
611
|
+
path: string;
|
|
612
|
+
code: string;
|
|
603
613
|
statusCode: number;
|
|
604
614
|
timestamp: string;
|
|
605
615
|
details?: unknown;
|
|
@@ -624,17 +634,17 @@ export declare const outreachContract: {
|
|
|
624
634
|
path: z.ZodString;
|
|
625
635
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
626
636
|
}, "strip", z.ZodTypeAny, {
|
|
627
|
-
code: string;
|
|
628
|
-
path: string;
|
|
629
637
|
message: string;
|
|
638
|
+
path: string;
|
|
639
|
+
code: string;
|
|
630
640
|
statusCode: number;
|
|
631
641
|
timestamp: string;
|
|
632
642
|
details?: unknown;
|
|
633
643
|
correlationId?: string | undefined;
|
|
634
644
|
}, {
|
|
635
|
-
code: string;
|
|
636
|
-
path: string;
|
|
637
645
|
message: string;
|
|
646
|
+
path: string;
|
|
647
|
+
code: string;
|
|
638
648
|
statusCode: number;
|
|
639
649
|
timestamp: string;
|
|
640
650
|
details?: unknown;
|
|
@@ -643,6 +653,7 @@ export declare const outreachContract: {
|
|
|
643
653
|
};
|
|
644
654
|
};
|
|
645
655
|
release: {
|
|
656
|
+
description: string;
|
|
646
657
|
metadata: {
|
|
647
658
|
tags: string[];
|
|
648
659
|
};
|
|
@@ -654,24 +665,23 @@ export declare const outreachContract: {
|
|
|
654
665
|
leaseId: string;
|
|
655
666
|
}>;
|
|
656
667
|
summary: "Return a claimed candidate to the pool unsent";
|
|
657
|
-
description: string;
|
|
658
668
|
method: "POST";
|
|
659
669
|
body: z.ZodObject<{
|
|
660
670
|
deviceId: z.ZodString;
|
|
661
671
|
reason: z.ZodEnum<["CONTACT_SAVE_FAILED", "CHAT_OPEN_FAILED", "COMPOSE_FAILED", "OTHER"]>;
|
|
662
672
|
detail: z.ZodOptional<z.ZodString>;
|
|
663
673
|
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
664
675
|
deviceId: string;
|
|
665
|
-
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
666
676
|
detail?: string | undefined;
|
|
667
677
|
}, {
|
|
678
|
+
reason: "OTHER" | "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED";
|
|
668
679
|
deviceId: string;
|
|
669
|
-
reason: "CONTACT_SAVE_FAILED" | "CHAT_OPEN_FAILED" | "COMPOSE_FAILED" | "OTHER";
|
|
670
680
|
detail?: string | undefined;
|
|
671
681
|
}>;
|
|
672
682
|
path: "/v2/outreach/leases/:leaseId/release";
|
|
673
683
|
responses: {
|
|
674
|
-
|
|
684
|
+
400: z.ZodObject<{
|
|
675
685
|
statusCode: z.ZodNumber;
|
|
676
686
|
message: z.ZodString;
|
|
677
687
|
code: z.ZodString;
|
|
@@ -680,23 +690,23 @@ export declare const outreachContract: {
|
|
|
680
690
|
path: z.ZodString;
|
|
681
691
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
682
692
|
}, "strip", z.ZodTypeAny, {
|
|
683
|
-
code: string;
|
|
684
|
-
path: string;
|
|
685
693
|
message: string;
|
|
694
|
+
path: string;
|
|
695
|
+
code: string;
|
|
686
696
|
statusCode: number;
|
|
687
697
|
timestamp: string;
|
|
688
698
|
details?: unknown;
|
|
689
699
|
correlationId?: string | undefined;
|
|
690
700
|
}, {
|
|
691
|
-
code: string;
|
|
692
|
-
path: string;
|
|
693
701
|
message: string;
|
|
702
|
+
path: string;
|
|
703
|
+
code: string;
|
|
694
704
|
statusCode: number;
|
|
695
705
|
timestamp: string;
|
|
696
706
|
details?: unknown;
|
|
697
707
|
correlationId?: string | undefined;
|
|
698
708
|
}>;
|
|
699
|
-
|
|
709
|
+
401: z.ZodObject<{
|
|
700
710
|
statusCode: z.ZodNumber;
|
|
701
711
|
message: z.ZodString;
|
|
702
712
|
code: z.ZodString;
|
|
@@ -705,23 +715,23 @@ export declare const outreachContract: {
|
|
|
705
715
|
path: z.ZodString;
|
|
706
716
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
707
717
|
}, "strip", z.ZodTypeAny, {
|
|
708
|
-
code: string;
|
|
709
|
-
path: string;
|
|
710
718
|
message: string;
|
|
719
|
+
path: string;
|
|
720
|
+
code: string;
|
|
711
721
|
statusCode: number;
|
|
712
722
|
timestamp: string;
|
|
713
723
|
details?: unknown;
|
|
714
724
|
correlationId?: string | undefined;
|
|
715
725
|
}, {
|
|
716
|
-
code: string;
|
|
717
|
-
path: string;
|
|
718
726
|
message: string;
|
|
727
|
+
path: string;
|
|
728
|
+
code: string;
|
|
719
729
|
statusCode: number;
|
|
720
730
|
timestamp: string;
|
|
721
731
|
details?: unknown;
|
|
722
732
|
correlationId?: string | undefined;
|
|
723
733
|
}>;
|
|
724
|
-
|
|
734
|
+
403: z.ZodObject<{
|
|
725
735
|
statusCode: z.ZodNumber;
|
|
726
736
|
message: z.ZodString;
|
|
727
737
|
code: z.ZodString;
|
|
@@ -730,23 +740,23 @@ export declare const outreachContract: {
|
|
|
730
740
|
path: z.ZodString;
|
|
731
741
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
732
742
|
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
code: string;
|
|
734
|
-
path: string;
|
|
735
743
|
message: string;
|
|
744
|
+
path: string;
|
|
745
|
+
code: string;
|
|
736
746
|
statusCode: number;
|
|
737
747
|
timestamp: string;
|
|
738
748
|
details?: unknown;
|
|
739
749
|
correlationId?: string | undefined;
|
|
740
750
|
}, {
|
|
741
|
-
code: string;
|
|
742
|
-
path: string;
|
|
743
751
|
message: string;
|
|
752
|
+
path: string;
|
|
753
|
+
code: string;
|
|
744
754
|
statusCode: number;
|
|
745
755
|
timestamp: string;
|
|
746
756
|
details?: unknown;
|
|
747
757
|
correlationId?: string | undefined;
|
|
748
758
|
}>;
|
|
749
|
-
|
|
759
|
+
500: z.ZodObject<{
|
|
750
760
|
statusCode: z.ZodNumber;
|
|
751
761
|
message: z.ZodString;
|
|
752
762
|
code: z.ZodString;
|
|
@@ -755,17 +765,17 @@ export declare const outreachContract: {
|
|
|
755
765
|
path: z.ZodString;
|
|
756
766
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
757
767
|
}, "strip", z.ZodTypeAny, {
|
|
758
|
-
code: string;
|
|
759
|
-
path: string;
|
|
760
768
|
message: string;
|
|
769
|
+
path: string;
|
|
770
|
+
code: string;
|
|
761
771
|
statusCode: number;
|
|
762
772
|
timestamp: string;
|
|
763
773
|
details?: unknown;
|
|
764
774
|
correlationId?: string | undefined;
|
|
765
775
|
}, {
|
|
766
|
-
code: string;
|
|
767
|
-
path: string;
|
|
768
776
|
message: string;
|
|
777
|
+
path: string;
|
|
778
|
+
code: string;
|
|
769
779
|
statusCode: number;
|
|
770
780
|
timestamp: string;
|
|
771
781
|
details?: unknown;
|
|
@@ -787,17 +797,17 @@ export declare const outreachContract: {
|
|
|
787
797
|
path: z.ZodString;
|
|
788
798
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
789
799
|
}, "strip", z.ZodTypeAny, {
|
|
790
|
-
code: string;
|
|
791
|
-
path: string;
|
|
792
800
|
message: string;
|
|
801
|
+
path: string;
|
|
802
|
+
code: string;
|
|
793
803
|
statusCode: number;
|
|
794
804
|
timestamp: string;
|
|
795
805
|
details?: unknown;
|
|
796
806
|
correlationId?: string | undefined;
|
|
797
807
|
}, {
|
|
798
|
-
code: string;
|
|
799
|
-
path: string;
|
|
800
808
|
message: string;
|
|
809
|
+
path: string;
|
|
810
|
+
code: string;
|
|
801
811
|
statusCode: number;
|
|
802
812
|
timestamp: string;
|
|
803
813
|
details?: unknown;
|