@dakkitor/api-contracts 1.9.1 → 1.9.2
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 +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +31 -1
- package/dist/abilities/abilities.contract.spec.js +52 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +32 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +7200 -6919
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
- package/dist/auth/auth.contract.d.ts +85 -85
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +10542 -10116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +315 -140
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +6847 -1872
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.js +304 -16
- package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
- package/dist/collaborations/collaborations.contract.d.ts +538 -538
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
- package/dist/curated-worker-leads/contact-history.spec.js +86 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +5586 -3381
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
- package/dist/leads/leads.contract.d.ts +210 -210
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +512 -40
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- package/dist/own-research/own-research.contract.d.ts +196 -130
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
- package/dist/users/users.contract.d.ts +236 -236
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
- package/dist/workers/workers.contract.d.ts +2620 -2420
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -42,25 +42,25 @@ export declare const ActiveStatusNotificationPayloadSchema: z.ZodObject<{
|
|
|
42
42
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
43
43
|
}>, "many">;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
workerName: string | null;
|
|
46
45
|
entries: {
|
|
47
46
|
date: string;
|
|
48
47
|
activeId: string;
|
|
49
48
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
50
49
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
51
50
|
}[];
|
|
51
|
+
workerName: string | null;
|
|
52
52
|
workerId: string;
|
|
53
53
|
actorId: string;
|
|
54
54
|
actorName: string | null;
|
|
55
55
|
openedAt: string;
|
|
56
56
|
}, {
|
|
57
|
-
workerName: string | null;
|
|
58
57
|
entries: {
|
|
59
58
|
date: string;
|
|
60
59
|
activeId: string;
|
|
61
60
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
62
61
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
63
62
|
}[];
|
|
63
|
+
workerName: string | null;
|
|
64
64
|
workerId: string;
|
|
65
65
|
actorId: string;
|
|
66
66
|
actorName: string | null;
|
|
@@ -100,7 +100,57 @@ export declare const AiMergeAppliedNotificationPayloadSchema: z.ZodObject<{
|
|
|
100
100
|
workerNames: string[];
|
|
101
101
|
}>;
|
|
102
102
|
export type AiMergeAppliedNotificationPayload = z.infer<typeof AiMergeAppliedNotificationPayloadSchema>;
|
|
103
|
-
|
|
103
|
+
/** Emitted by CandidateCallCallbackService.sweep() when a candidate asked to
|
|
104
|
+
* be called back and the requested (or fallback) time has arrived.
|
|
105
|
+
* `requestedAt` mirrors pass 2's raw extraction — null means the candidate
|
|
106
|
+
* asked for a callback without naming a specific time. */
|
|
107
|
+
export declare const CandidateCallCallbackNotificationPayloadSchema: z.ZodObject<{
|
|
108
|
+
callId: z.ZodString;
|
|
109
|
+
candidateName: z.ZodString;
|
|
110
|
+
requestedAt: z.ZodNullable<z.ZodString>;
|
|
111
|
+
jobId: z.ZodString;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
requestedAt: string | null;
|
|
114
|
+
jobId: string;
|
|
115
|
+
callId: string;
|
|
116
|
+
candidateName: string;
|
|
117
|
+
}, {
|
|
118
|
+
requestedAt: string | null;
|
|
119
|
+
jobId: string;
|
|
120
|
+
callId: string;
|
|
121
|
+
candidateName: string;
|
|
122
|
+
}>;
|
|
123
|
+
export type CandidateCallCallbackNotificationPayload = z.infer<typeof CandidateCallCallbackNotificationPayloadSchema>;
|
|
124
|
+
export declare const LeadCallbackDueNotificationPayloadSchema: z.ZodObject<{
|
|
125
|
+
callbackId: z.ZodString;
|
|
126
|
+
leadId: z.ZodString;
|
|
127
|
+
leadName: z.ZodString;
|
|
128
|
+
companyName: z.ZodNullable<z.ZodString>;
|
|
129
|
+
phoneNumber: z.ZodString;
|
|
130
|
+
dueAt: z.ZodString;
|
|
131
|
+
originRating: z.ZodNumber;
|
|
132
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
phoneNumber: string;
|
|
135
|
+
leadName: string;
|
|
136
|
+
companyName: string | null;
|
|
137
|
+
callbackId: string;
|
|
138
|
+
leadId: string;
|
|
139
|
+
dueAt: string;
|
|
140
|
+
originRating: number;
|
|
141
|
+
originNotes: string | null;
|
|
142
|
+
}, {
|
|
143
|
+
phoneNumber: string;
|
|
144
|
+
leadName: string;
|
|
145
|
+
companyName: string | null;
|
|
146
|
+
callbackId: string;
|
|
147
|
+
leadId: string;
|
|
148
|
+
dueAt: string;
|
|
149
|
+
originRating: number;
|
|
150
|
+
originNotes: string | null;
|
|
151
|
+
}>;
|
|
152
|
+
export type LeadCallbackDueNotificationPayload = z.infer<typeof LeadCallbackDueNotificationPayloadSchema>;
|
|
153
|
+
export declare const NotificationKindSchema: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED", "CANDIDATE_CALL_CALLBACK", "LEAD_CALLBACK_DUE"]>;
|
|
104
154
|
/** Discriminated union on `kind`; new kinds extend the union. */
|
|
105
155
|
export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
106
156
|
id: z.ZodString;
|
|
@@ -129,25 +179,25 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
129
179
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
130
180
|
}>, "many">;
|
|
131
181
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
workerName: string | null;
|
|
133
182
|
entries: {
|
|
134
183
|
date: string;
|
|
135
184
|
activeId: string;
|
|
136
185
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
137
186
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
138
187
|
}[];
|
|
188
|
+
workerName: string | null;
|
|
139
189
|
workerId: string;
|
|
140
190
|
actorId: string;
|
|
141
191
|
actorName: string | null;
|
|
142
192
|
openedAt: string;
|
|
143
193
|
}, {
|
|
144
|
-
workerName: string | null;
|
|
145
194
|
entries: {
|
|
146
195
|
date: string;
|
|
147
196
|
activeId: string;
|
|
148
197
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
149
198
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
150
199
|
}[];
|
|
200
|
+
workerName: string | null;
|
|
151
201
|
workerId: string;
|
|
152
202
|
actorId: string;
|
|
153
203
|
actorName: string | null;
|
|
@@ -160,13 +210,13 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
160
210
|
kind: "ACTIVE_STATUS";
|
|
161
211
|
refId: string;
|
|
162
212
|
payload: {
|
|
163
|
-
workerName: string | null;
|
|
164
213
|
entries: {
|
|
165
214
|
date: string;
|
|
166
215
|
activeId: string;
|
|
167
216
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
168
217
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
169
218
|
}[];
|
|
219
|
+
workerName: string | null;
|
|
170
220
|
workerId: string;
|
|
171
221
|
actorId: string;
|
|
172
222
|
actorName: string | null;
|
|
@@ -178,13 +228,13 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
178
228
|
kind: "ACTIVE_STATUS";
|
|
179
229
|
refId: string;
|
|
180
230
|
payload: {
|
|
181
|
-
workerName: string | null;
|
|
182
231
|
entries: {
|
|
183
232
|
date: string;
|
|
184
233
|
activeId: string;
|
|
185
234
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
186
235
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
187
236
|
}[];
|
|
237
|
+
workerName: string | null;
|
|
188
238
|
workerId: string;
|
|
189
239
|
actorId: string;
|
|
190
240
|
actorName: string | null;
|
|
@@ -276,6 +326,112 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
276
326
|
proposalId: string;
|
|
277
327
|
workerNames: string[];
|
|
278
328
|
};
|
|
329
|
+
}>, z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
kind: z.ZodLiteral<"CANDIDATE_CALL_CALLBACK">;
|
|
332
|
+
refId: z.ZodString;
|
|
333
|
+
payload: z.ZodObject<{
|
|
334
|
+
callId: z.ZodString;
|
|
335
|
+
candidateName: z.ZodString;
|
|
336
|
+
requestedAt: z.ZodNullable<z.ZodString>;
|
|
337
|
+
jobId: z.ZodString;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
requestedAt: string | null;
|
|
340
|
+
jobId: string;
|
|
341
|
+
callId: string;
|
|
342
|
+
candidateName: string;
|
|
343
|
+
}, {
|
|
344
|
+
requestedAt: string | null;
|
|
345
|
+
jobId: string;
|
|
346
|
+
callId: string;
|
|
347
|
+
candidateName: string;
|
|
348
|
+
}>;
|
|
349
|
+
createdAt: z.ZodString;
|
|
350
|
+
}, "strip", z.ZodTypeAny, {
|
|
351
|
+
createdAt: string;
|
|
352
|
+
id: string;
|
|
353
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
354
|
+
refId: string;
|
|
355
|
+
payload: {
|
|
356
|
+
requestedAt: string | null;
|
|
357
|
+
jobId: string;
|
|
358
|
+
callId: string;
|
|
359
|
+
candidateName: string;
|
|
360
|
+
};
|
|
361
|
+
}, {
|
|
362
|
+
createdAt: string;
|
|
363
|
+
id: string;
|
|
364
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
365
|
+
refId: string;
|
|
366
|
+
payload: {
|
|
367
|
+
requestedAt: string | null;
|
|
368
|
+
jobId: string;
|
|
369
|
+
callId: string;
|
|
370
|
+
candidateName: string;
|
|
371
|
+
};
|
|
372
|
+
}>, z.ZodObject<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
kind: z.ZodLiteral<"LEAD_CALLBACK_DUE">;
|
|
375
|
+
refId: z.ZodString;
|
|
376
|
+
payload: z.ZodObject<{
|
|
377
|
+
callbackId: z.ZodString;
|
|
378
|
+
leadId: z.ZodString;
|
|
379
|
+
leadName: z.ZodString;
|
|
380
|
+
companyName: z.ZodNullable<z.ZodString>;
|
|
381
|
+
phoneNumber: z.ZodString;
|
|
382
|
+
dueAt: z.ZodString;
|
|
383
|
+
originRating: z.ZodNumber;
|
|
384
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
phoneNumber: string;
|
|
387
|
+
leadName: string;
|
|
388
|
+
companyName: string | null;
|
|
389
|
+
callbackId: string;
|
|
390
|
+
leadId: string;
|
|
391
|
+
dueAt: string;
|
|
392
|
+
originRating: number;
|
|
393
|
+
originNotes: string | null;
|
|
394
|
+
}, {
|
|
395
|
+
phoneNumber: string;
|
|
396
|
+
leadName: string;
|
|
397
|
+
companyName: string | null;
|
|
398
|
+
callbackId: string;
|
|
399
|
+
leadId: string;
|
|
400
|
+
dueAt: string;
|
|
401
|
+
originRating: number;
|
|
402
|
+
originNotes: string | null;
|
|
403
|
+
}>;
|
|
404
|
+
createdAt: z.ZodString;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
createdAt: string;
|
|
407
|
+
id: string;
|
|
408
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
409
|
+
refId: string;
|
|
410
|
+
payload: {
|
|
411
|
+
phoneNumber: string;
|
|
412
|
+
leadName: string;
|
|
413
|
+
companyName: string | null;
|
|
414
|
+
callbackId: string;
|
|
415
|
+
leadId: string;
|
|
416
|
+
dueAt: string;
|
|
417
|
+
originRating: number;
|
|
418
|
+
originNotes: string | null;
|
|
419
|
+
};
|
|
420
|
+
}, {
|
|
421
|
+
createdAt: string;
|
|
422
|
+
id: string;
|
|
423
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
424
|
+
refId: string;
|
|
425
|
+
payload: {
|
|
426
|
+
phoneNumber: string;
|
|
427
|
+
leadName: string;
|
|
428
|
+
companyName: string | null;
|
|
429
|
+
callbackId: string;
|
|
430
|
+
leadId: string;
|
|
431
|
+
dueAt: string;
|
|
432
|
+
originRating: number;
|
|
433
|
+
originNotes: string | null;
|
|
434
|
+
};
|
|
279
435
|
}>]>;
|
|
280
436
|
export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
281
437
|
items: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -305,25 +461,25 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
305
461
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
306
462
|
}>, "many">;
|
|
307
463
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
workerName: string | null;
|
|
309
464
|
entries: {
|
|
310
465
|
date: string;
|
|
311
466
|
activeId: string;
|
|
312
467
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
313
468
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
314
469
|
}[];
|
|
470
|
+
workerName: string | null;
|
|
315
471
|
workerId: string;
|
|
316
472
|
actorId: string;
|
|
317
473
|
actorName: string | null;
|
|
318
474
|
openedAt: string;
|
|
319
475
|
}, {
|
|
320
|
-
workerName: string | null;
|
|
321
476
|
entries: {
|
|
322
477
|
date: string;
|
|
323
478
|
activeId: string;
|
|
324
479
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
325
480
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
326
481
|
}[];
|
|
482
|
+
workerName: string | null;
|
|
327
483
|
workerId: string;
|
|
328
484
|
actorId: string;
|
|
329
485
|
actorName: string | null;
|
|
@@ -336,13 +492,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
336
492
|
kind: "ACTIVE_STATUS";
|
|
337
493
|
refId: string;
|
|
338
494
|
payload: {
|
|
339
|
-
workerName: string | null;
|
|
340
495
|
entries: {
|
|
341
496
|
date: string;
|
|
342
497
|
activeId: string;
|
|
343
498
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
344
499
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
345
500
|
}[];
|
|
501
|
+
workerName: string | null;
|
|
346
502
|
workerId: string;
|
|
347
503
|
actorId: string;
|
|
348
504
|
actorName: string | null;
|
|
@@ -354,13 +510,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
354
510
|
kind: "ACTIVE_STATUS";
|
|
355
511
|
refId: string;
|
|
356
512
|
payload: {
|
|
357
|
-
workerName: string | null;
|
|
358
513
|
entries: {
|
|
359
514
|
date: string;
|
|
360
515
|
activeId: string;
|
|
361
516
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
362
517
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
363
518
|
}[];
|
|
519
|
+
workerName: string | null;
|
|
364
520
|
workerId: string;
|
|
365
521
|
actorId: string;
|
|
366
522
|
actorName: string | null;
|
|
@@ -452,6 +608,112 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
452
608
|
proposalId: string;
|
|
453
609
|
workerNames: string[];
|
|
454
610
|
};
|
|
611
|
+
}>, z.ZodObject<{
|
|
612
|
+
id: z.ZodString;
|
|
613
|
+
kind: z.ZodLiteral<"CANDIDATE_CALL_CALLBACK">;
|
|
614
|
+
refId: z.ZodString;
|
|
615
|
+
payload: z.ZodObject<{
|
|
616
|
+
callId: z.ZodString;
|
|
617
|
+
candidateName: z.ZodString;
|
|
618
|
+
requestedAt: z.ZodNullable<z.ZodString>;
|
|
619
|
+
jobId: z.ZodString;
|
|
620
|
+
}, "strip", z.ZodTypeAny, {
|
|
621
|
+
requestedAt: string | null;
|
|
622
|
+
jobId: string;
|
|
623
|
+
callId: string;
|
|
624
|
+
candidateName: string;
|
|
625
|
+
}, {
|
|
626
|
+
requestedAt: string | null;
|
|
627
|
+
jobId: string;
|
|
628
|
+
callId: string;
|
|
629
|
+
candidateName: string;
|
|
630
|
+
}>;
|
|
631
|
+
createdAt: z.ZodString;
|
|
632
|
+
}, "strip", z.ZodTypeAny, {
|
|
633
|
+
createdAt: string;
|
|
634
|
+
id: string;
|
|
635
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
636
|
+
refId: string;
|
|
637
|
+
payload: {
|
|
638
|
+
requestedAt: string | null;
|
|
639
|
+
jobId: string;
|
|
640
|
+
callId: string;
|
|
641
|
+
candidateName: string;
|
|
642
|
+
};
|
|
643
|
+
}, {
|
|
644
|
+
createdAt: string;
|
|
645
|
+
id: string;
|
|
646
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
647
|
+
refId: string;
|
|
648
|
+
payload: {
|
|
649
|
+
requestedAt: string | null;
|
|
650
|
+
jobId: string;
|
|
651
|
+
callId: string;
|
|
652
|
+
candidateName: string;
|
|
653
|
+
};
|
|
654
|
+
}>, z.ZodObject<{
|
|
655
|
+
id: z.ZodString;
|
|
656
|
+
kind: z.ZodLiteral<"LEAD_CALLBACK_DUE">;
|
|
657
|
+
refId: z.ZodString;
|
|
658
|
+
payload: z.ZodObject<{
|
|
659
|
+
callbackId: z.ZodString;
|
|
660
|
+
leadId: z.ZodString;
|
|
661
|
+
leadName: z.ZodString;
|
|
662
|
+
companyName: z.ZodNullable<z.ZodString>;
|
|
663
|
+
phoneNumber: z.ZodString;
|
|
664
|
+
dueAt: z.ZodString;
|
|
665
|
+
originRating: z.ZodNumber;
|
|
666
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
667
|
+
}, "strip", z.ZodTypeAny, {
|
|
668
|
+
phoneNumber: string;
|
|
669
|
+
leadName: string;
|
|
670
|
+
companyName: string | null;
|
|
671
|
+
callbackId: string;
|
|
672
|
+
leadId: string;
|
|
673
|
+
dueAt: string;
|
|
674
|
+
originRating: number;
|
|
675
|
+
originNotes: string | null;
|
|
676
|
+
}, {
|
|
677
|
+
phoneNumber: string;
|
|
678
|
+
leadName: string;
|
|
679
|
+
companyName: string | null;
|
|
680
|
+
callbackId: string;
|
|
681
|
+
leadId: string;
|
|
682
|
+
dueAt: string;
|
|
683
|
+
originRating: number;
|
|
684
|
+
originNotes: string | null;
|
|
685
|
+
}>;
|
|
686
|
+
createdAt: z.ZodString;
|
|
687
|
+
}, "strip", z.ZodTypeAny, {
|
|
688
|
+
createdAt: string;
|
|
689
|
+
id: string;
|
|
690
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
691
|
+
refId: string;
|
|
692
|
+
payload: {
|
|
693
|
+
phoneNumber: string;
|
|
694
|
+
leadName: string;
|
|
695
|
+
companyName: string | null;
|
|
696
|
+
callbackId: string;
|
|
697
|
+
leadId: string;
|
|
698
|
+
dueAt: string;
|
|
699
|
+
originRating: number;
|
|
700
|
+
originNotes: string | null;
|
|
701
|
+
};
|
|
702
|
+
}, {
|
|
703
|
+
createdAt: string;
|
|
704
|
+
id: string;
|
|
705
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
706
|
+
refId: string;
|
|
707
|
+
payload: {
|
|
708
|
+
phoneNumber: string;
|
|
709
|
+
leadName: string;
|
|
710
|
+
companyName: string | null;
|
|
711
|
+
callbackId: string;
|
|
712
|
+
leadId: string;
|
|
713
|
+
dueAt: string;
|
|
714
|
+
originRating: number;
|
|
715
|
+
originNotes: string | null;
|
|
716
|
+
};
|
|
455
717
|
}>]>, "many">;
|
|
456
718
|
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
457
719
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -461,13 +723,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
461
723
|
kind: "ACTIVE_STATUS";
|
|
462
724
|
refId: string;
|
|
463
725
|
payload: {
|
|
464
|
-
workerName: string | null;
|
|
465
726
|
entries: {
|
|
466
727
|
date: string;
|
|
467
728
|
activeId: string;
|
|
468
729
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
469
730
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
470
731
|
}[];
|
|
732
|
+
workerName: string | null;
|
|
471
733
|
workerId: string;
|
|
472
734
|
actorId: string;
|
|
473
735
|
actorName: string | null;
|
|
@@ -495,6 +757,32 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
495
757
|
proposalId: string;
|
|
496
758
|
workerNames: string[];
|
|
497
759
|
};
|
|
760
|
+
} | {
|
|
761
|
+
createdAt: string;
|
|
762
|
+
id: string;
|
|
763
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
764
|
+
refId: string;
|
|
765
|
+
payload: {
|
|
766
|
+
requestedAt: string | null;
|
|
767
|
+
jobId: string;
|
|
768
|
+
callId: string;
|
|
769
|
+
candidateName: string;
|
|
770
|
+
};
|
|
771
|
+
} | {
|
|
772
|
+
createdAt: string;
|
|
773
|
+
id: string;
|
|
774
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
775
|
+
refId: string;
|
|
776
|
+
payload: {
|
|
777
|
+
phoneNumber: string;
|
|
778
|
+
leadName: string;
|
|
779
|
+
companyName: string | null;
|
|
780
|
+
callbackId: string;
|
|
781
|
+
leadId: string;
|
|
782
|
+
dueAt: string;
|
|
783
|
+
originRating: number;
|
|
784
|
+
originNotes: string | null;
|
|
785
|
+
};
|
|
498
786
|
})[];
|
|
499
787
|
lastSeenAt: string | null;
|
|
500
788
|
}, {
|
|
@@ -504,13 +792,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
504
792
|
kind: "ACTIVE_STATUS";
|
|
505
793
|
refId: string;
|
|
506
794
|
payload: {
|
|
507
|
-
workerName: string | null;
|
|
508
795
|
entries: {
|
|
509
796
|
date: string;
|
|
510
797
|
activeId: string;
|
|
511
798
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
512
799
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
513
800
|
}[];
|
|
801
|
+
workerName: string | null;
|
|
514
802
|
workerId: string;
|
|
515
803
|
actorId: string;
|
|
516
804
|
actorName: string | null;
|
|
@@ -538,6 +826,32 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
538
826
|
proposalId: string;
|
|
539
827
|
workerNames: string[];
|
|
540
828
|
};
|
|
829
|
+
} | {
|
|
830
|
+
createdAt: string;
|
|
831
|
+
id: string;
|
|
832
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
833
|
+
refId: string;
|
|
834
|
+
payload: {
|
|
835
|
+
requestedAt: string | null;
|
|
836
|
+
jobId: string;
|
|
837
|
+
callId: string;
|
|
838
|
+
candidateName: string;
|
|
839
|
+
};
|
|
840
|
+
} | {
|
|
841
|
+
createdAt: string;
|
|
842
|
+
id: string;
|
|
843
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
844
|
+
refId: string;
|
|
845
|
+
payload: {
|
|
846
|
+
phoneNumber: string;
|
|
847
|
+
leadName: string;
|
|
848
|
+
companyName: string | null;
|
|
849
|
+
callbackId: string;
|
|
850
|
+
leadId: string;
|
|
851
|
+
dueAt: string;
|
|
852
|
+
originRating: number;
|
|
853
|
+
originNotes: string | null;
|
|
854
|
+
};
|
|
541
855
|
})[];
|
|
542
856
|
lastSeenAt: string | null;
|
|
543
857
|
}>;
|
|
@@ -547,11 +861,11 @@ export declare const notificationsContract: {
|
|
|
547
861
|
tags: string[];
|
|
548
862
|
};
|
|
549
863
|
query: z.ZodObject<{
|
|
550
|
-
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
864
|
+
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED", "CANDIDATE_CALL_CALLBACK", "LEAD_CALLBACK_DUE"]>;
|
|
551
865
|
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
866
|
+
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED" | "CANDIDATE_CALL_CALLBACK" | "LEAD_CALLBACK_DUE";
|
|
553
867
|
}, {
|
|
554
|
-
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
868
|
+
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED" | "CANDIDATE_CALL_CALLBACK" | "LEAD_CALLBACK_DUE";
|
|
555
869
|
}>;
|
|
556
870
|
summary: "List notifications for the current user (undismissed only).";
|
|
557
871
|
method: "GET";
|
|
@@ -566,17 +880,17 @@ export declare const notificationsContract: {
|
|
|
566
880
|
path: z.ZodString;
|
|
567
881
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
568
882
|
}, "strip", z.ZodTypeAny, {
|
|
569
|
-
message: string;
|
|
570
883
|
code: string;
|
|
571
884
|
path: string;
|
|
885
|
+
message: string;
|
|
572
886
|
statusCode: number;
|
|
573
887
|
timestamp: string;
|
|
574
888
|
details?: unknown;
|
|
575
889
|
correlationId?: string | undefined;
|
|
576
890
|
}, {
|
|
577
|
-
message: string;
|
|
578
891
|
code: string;
|
|
579
892
|
path: string;
|
|
893
|
+
message: string;
|
|
580
894
|
statusCode: number;
|
|
581
895
|
timestamp: string;
|
|
582
896
|
details?: unknown;
|
|
@@ -610,25 +924,25 @@ export declare const notificationsContract: {
|
|
|
610
924
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
611
925
|
}>, "many">;
|
|
612
926
|
}, "strip", z.ZodTypeAny, {
|
|
613
|
-
workerName: string | null;
|
|
614
927
|
entries: {
|
|
615
928
|
date: string;
|
|
616
929
|
activeId: string;
|
|
617
930
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
618
931
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
619
932
|
}[];
|
|
933
|
+
workerName: string | null;
|
|
620
934
|
workerId: string;
|
|
621
935
|
actorId: string;
|
|
622
936
|
actorName: string | null;
|
|
623
937
|
openedAt: string;
|
|
624
938
|
}, {
|
|
625
|
-
workerName: string | null;
|
|
626
939
|
entries: {
|
|
627
940
|
date: string;
|
|
628
941
|
activeId: string;
|
|
629
942
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
630
943
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
631
944
|
}[];
|
|
945
|
+
workerName: string | null;
|
|
632
946
|
workerId: string;
|
|
633
947
|
actorId: string;
|
|
634
948
|
actorName: string | null;
|
|
@@ -641,13 +955,13 @@ export declare const notificationsContract: {
|
|
|
641
955
|
kind: "ACTIVE_STATUS";
|
|
642
956
|
refId: string;
|
|
643
957
|
payload: {
|
|
644
|
-
workerName: string | null;
|
|
645
958
|
entries: {
|
|
646
959
|
date: string;
|
|
647
960
|
activeId: string;
|
|
648
961
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
649
962
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
650
963
|
}[];
|
|
964
|
+
workerName: string | null;
|
|
651
965
|
workerId: string;
|
|
652
966
|
actorId: string;
|
|
653
967
|
actorName: string | null;
|
|
@@ -659,13 +973,13 @@ export declare const notificationsContract: {
|
|
|
659
973
|
kind: "ACTIVE_STATUS";
|
|
660
974
|
refId: string;
|
|
661
975
|
payload: {
|
|
662
|
-
workerName: string | null;
|
|
663
976
|
entries: {
|
|
664
977
|
date: string;
|
|
665
978
|
activeId: string;
|
|
666
979
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
667
980
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
668
981
|
}[];
|
|
982
|
+
workerName: string | null;
|
|
669
983
|
workerId: string;
|
|
670
984
|
actorId: string;
|
|
671
985
|
actorName: string | null;
|
|
@@ -757,6 +1071,112 @@ export declare const notificationsContract: {
|
|
|
757
1071
|
proposalId: string;
|
|
758
1072
|
workerNames: string[];
|
|
759
1073
|
};
|
|
1074
|
+
}>, z.ZodObject<{
|
|
1075
|
+
id: z.ZodString;
|
|
1076
|
+
kind: z.ZodLiteral<"CANDIDATE_CALL_CALLBACK">;
|
|
1077
|
+
refId: z.ZodString;
|
|
1078
|
+
payload: z.ZodObject<{
|
|
1079
|
+
callId: z.ZodString;
|
|
1080
|
+
candidateName: z.ZodString;
|
|
1081
|
+
requestedAt: z.ZodNullable<z.ZodString>;
|
|
1082
|
+
jobId: z.ZodString;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
requestedAt: string | null;
|
|
1085
|
+
jobId: string;
|
|
1086
|
+
callId: string;
|
|
1087
|
+
candidateName: string;
|
|
1088
|
+
}, {
|
|
1089
|
+
requestedAt: string | null;
|
|
1090
|
+
jobId: string;
|
|
1091
|
+
callId: string;
|
|
1092
|
+
candidateName: string;
|
|
1093
|
+
}>;
|
|
1094
|
+
createdAt: z.ZodString;
|
|
1095
|
+
}, "strip", z.ZodTypeAny, {
|
|
1096
|
+
createdAt: string;
|
|
1097
|
+
id: string;
|
|
1098
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
1099
|
+
refId: string;
|
|
1100
|
+
payload: {
|
|
1101
|
+
requestedAt: string | null;
|
|
1102
|
+
jobId: string;
|
|
1103
|
+
callId: string;
|
|
1104
|
+
candidateName: string;
|
|
1105
|
+
};
|
|
1106
|
+
}, {
|
|
1107
|
+
createdAt: string;
|
|
1108
|
+
id: string;
|
|
1109
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
1110
|
+
refId: string;
|
|
1111
|
+
payload: {
|
|
1112
|
+
requestedAt: string | null;
|
|
1113
|
+
jobId: string;
|
|
1114
|
+
callId: string;
|
|
1115
|
+
candidateName: string;
|
|
1116
|
+
};
|
|
1117
|
+
}>, z.ZodObject<{
|
|
1118
|
+
id: z.ZodString;
|
|
1119
|
+
kind: z.ZodLiteral<"LEAD_CALLBACK_DUE">;
|
|
1120
|
+
refId: z.ZodString;
|
|
1121
|
+
payload: z.ZodObject<{
|
|
1122
|
+
callbackId: z.ZodString;
|
|
1123
|
+
leadId: z.ZodString;
|
|
1124
|
+
leadName: z.ZodString;
|
|
1125
|
+
companyName: z.ZodNullable<z.ZodString>;
|
|
1126
|
+
phoneNumber: z.ZodString;
|
|
1127
|
+
dueAt: z.ZodString;
|
|
1128
|
+
originRating: z.ZodNumber;
|
|
1129
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
1130
|
+
}, "strip", z.ZodTypeAny, {
|
|
1131
|
+
phoneNumber: string;
|
|
1132
|
+
leadName: string;
|
|
1133
|
+
companyName: string | null;
|
|
1134
|
+
callbackId: string;
|
|
1135
|
+
leadId: string;
|
|
1136
|
+
dueAt: string;
|
|
1137
|
+
originRating: number;
|
|
1138
|
+
originNotes: string | null;
|
|
1139
|
+
}, {
|
|
1140
|
+
phoneNumber: string;
|
|
1141
|
+
leadName: string;
|
|
1142
|
+
companyName: string | null;
|
|
1143
|
+
callbackId: string;
|
|
1144
|
+
leadId: string;
|
|
1145
|
+
dueAt: string;
|
|
1146
|
+
originRating: number;
|
|
1147
|
+
originNotes: string | null;
|
|
1148
|
+
}>;
|
|
1149
|
+
createdAt: z.ZodString;
|
|
1150
|
+
}, "strip", z.ZodTypeAny, {
|
|
1151
|
+
createdAt: string;
|
|
1152
|
+
id: string;
|
|
1153
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
1154
|
+
refId: string;
|
|
1155
|
+
payload: {
|
|
1156
|
+
phoneNumber: string;
|
|
1157
|
+
leadName: string;
|
|
1158
|
+
companyName: string | null;
|
|
1159
|
+
callbackId: string;
|
|
1160
|
+
leadId: string;
|
|
1161
|
+
dueAt: string;
|
|
1162
|
+
originRating: number;
|
|
1163
|
+
originNotes: string | null;
|
|
1164
|
+
};
|
|
1165
|
+
}, {
|
|
1166
|
+
createdAt: string;
|
|
1167
|
+
id: string;
|
|
1168
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
1169
|
+
refId: string;
|
|
1170
|
+
payload: {
|
|
1171
|
+
phoneNumber: string;
|
|
1172
|
+
leadName: string;
|
|
1173
|
+
companyName: string | null;
|
|
1174
|
+
callbackId: string;
|
|
1175
|
+
leadId: string;
|
|
1176
|
+
dueAt: string;
|
|
1177
|
+
originRating: number;
|
|
1178
|
+
originNotes: string | null;
|
|
1179
|
+
};
|
|
760
1180
|
}>]>, "many">;
|
|
761
1181
|
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
762
1182
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -766,13 +1186,13 @@ export declare const notificationsContract: {
|
|
|
766
1186
|
kind: "ACTIVE_STATUS";
|
|
767
1187
|
refId: string;
|
|
768
1188
|
payload: {
|
|
769
|
-
workerName: string | null;
|
|
770
1189
|
entries: {
|
|
771
1190
|
date: string;
|
|
772
1191
|
activeId: string;
|
|
773
1192
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
774
1193
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
775
1194
|
}[];
|
|
1195
|
+
workerName: string | null;
|
|
776
1196
|
workerId: string;
|
|
777
1197
|
actorId: string;
|
|
778
1198
|
actorName: string | null;
|
|
@@ -800,6 +1220,32 @@ export declare const notificationsContract: {
|
|
|
800
1220
|
proposalId: string;
|
|
801
1221
|
workerNames: string[];
|
|
802
1222
|
};
|
|
1223
|
+
} | {
|
|
1224
|
+
createdAt: string;
|
|
1225
|
+
id: string;
|
|
1226
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
1227
|
+
refId: string;
|
|
1228
|
+
payload: {
|
|
1229
|
+
requestedAt: string | null;
|
|
1230
|
+
jobId: string;
|
|
1231
|
+
callId: string;
|
|
1232
|
+
candidateName: string;
|
|
1233
|
+
};
|
|
1234
|
+
} | {
|
|
1235
|
+
createdAt: string;
|
|
1236
|
+
id: string;
|
|
1237
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
1238
|
+
refId: string;
|
|
1239
|
+
payload: {
|
|
1240
|
+
phoneNumber: string;
|
|
1241
|
+
leadName: string;
|
|
1242
|
+
companyName: string | null;
|
|
1243
|
+
callbackId: string;
|
|
1244
|
+
leadId: string;
|
|
1245
|
+
dueAt: string;
|
|
1246
|
+
originRating: number;
|
|
1247
|
+
originNotes: string | null;
|
|
1248
|
+
};
|
|
803
1249
|
})[];
|
|
804
1250
|
lastSeenAt: string | null;
|
|
805
1251
|
}, {
|
|
@@ -809,13 +1255,13 @@ export declare const notificationsContract: {
|
|
|
809
1255
|
kind: "ACTIVE_STATUS";
|
|
810
1256
|
refId: string;
|
|
811
1257
|
payload: {
|
|
812
|
-
workerName: string | null;
|
|
813
1258
|
entries: {
|
|
814
1259
|
date: string;
|
|
815
1260
|
activeId: string;
|
|
816
1261
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
817
1262
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
818
1263
|
}[];
|
|
1264
|
+
workerName: string | null;
|
|
819
1265
|
workerId: string;
|
|
820
1266
|
actorId: string;
|
|
821
1267
|
actorName: string | null;
|
|
@@ -843,6 +1289,32 @@ export declare const notificationsContract: {
|
|
|
843
1289
|
proposalId: string;
|
|
844
1290
|
workerNames: string[];
|
|
845
1291
|
};
|
|
1292
|
+
} | {
|
|
1293
|
+
createdAt: string;
|
|
1294
|
+
id: string;
|
|
1295
|
+
kind: "CANDIDATE_CALL_CALLBACK";
|
|
1296
|
+
refId: string;
|
|
1297
|
+
payload: {
|
|
1298
|
+
requestedAt: string | null;
|
|
1299
|
+
jobId: string;
|
|
1300
|
+
callId: string;
|
|
1301
|
+
candidateName: string;
|
|
1302
|
+
};
|
|
1303
|
+
} | {
|
|
1304
|
+
createdAt: string;
|
|
1305
|
+
id: string;
|
|
1306
|
+
kind: "LEAD_CALLBACK_DUE";
|
|
1307
|
+
refId: string;
|
|
1308
|
+
payload: {
|
|
1309
|
+
phoneNumber: string;
|
|
1310
|
+
leadName: string;
|
|
1311
|
+
companyName: string | null;
|
|
1312
|
+
callbackId: string;
|
|
1313
|
+
leadId: string;
|
|
1314
|
+
dueAt: string;
|
|
1315
|
+
originRating: number;
|
|
1316
|
+
originNotes: string | null;
|
|
1317
|
+
};
|
|
846
1318
|
})[];
|
|
847
1319
|
lastSeenAt: string | null;
|
|
848
1320
|
}>;
|
|
@@ -873,17 +1345,17 @@ export declare const notificationsContract: {
|
|
|
873
1345
|
path: z.ZodString;
|
|
874
1346
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
875
1347
|
}, "strip", z.ZodTypeAny, {
|
|
876
|
-
message: string;
|
|
877
1348
|
code: string;
|
|
878
1349
|
path: string;
|
|
1350
|
+
message: string;
|
|
879
1351
|
statusCode: number;
|
|
880
1352
|
timestamp: string;
|
|
881
1353
|
details?: unknown;
|
|
882
1354
|
correlationId?: string | undefined;
|
|
883
1355
|
}, {
|
|
884
|
-
message: string;
|
|
885
1356
|
code: string;
|
|
886
1357
|
path: string;
|
|
1358
|
+
message: string;
|
|
887
1359
|
statusCode: number;
|
|
888
1360
|
timestamp: string;
|
|
889
1361
|
details?: unknown;
|
|
@@ -899,17 +1371,17 @@ export declare const notificationsContract: {
|
|
|
899
1371
|
path: z.ZodString;
|
|
900
1372
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
901
1373
|
}, "strip", z.ZodTypeAny, {
|
|
902
|
-
message: string;
|
|
903
1374
|
code: string;
|
|
904
1375
|
path: string;
|
|
1376
|
+
message: string;
|
|
905
1377
|
statusCode: number;
|
|
906
1378
|
timestamp: string;
|
|
907
1379
|
details?: unknown;
|
|
908
1380
|
correlationId?: string | undefined;
|
|
909
1381
|
}, {
|
|
910
|
-
message: string;
|
|
911
1382
|
code: string;
|
|
912
1383
|
path: string;
|
|
1384
|
+
message: string;
|
|
913
1385
|
statusCode: number;
|
|
914
1386
|
timestamp: string;
|
|
915
1387
|
details?: unknown;
|
|
@@ -924,17 +1396,17 @@ export declare const notificationsContract: {
|
|
|
924
1396
|
path: z.ZodString;
|
|
925
1397
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
926
1398
|
}, "strip", z.ZodTypeAny, {
|
|
927
|
-
message: string;
|
|
928
1399
|
code: string;
|
|
929
1400
|
path: string;
|
|
1401
|
+
message: string;
|
|
930
1402
|
statusCode: number;
|
|
931
1403
|
timestamp: string;
|
|
932
1404
|
details?: unknown;
|
|
933
1405
|
correlationId?: string | undefined;
|
|
934
1406
|
}, {
|
|
935
|
-
message: string;
|
|
936
1407
|
code: string;
|
|
937
1408
|
path: string;
|
|
1409
|
+
message: string;
|
|
938
1410
|
statusCode: number;
|
|
939
1411
|
timestamp: string;
|
|
940
1412
|
details?: unknown;
|
|
@@ -947,11 +1419,11 @@ export declare const notificationsContract: {
|
|
|
947
1419
|
tags: string[];
|
|
948
1420
|
};
|
|
949
1421
|
query: z.ZodObject<{
|
|
950
|
-
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
1422
|
+
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED", "CANDIDATE_CALL_CALLBACK", "LEAD_CALLBACK_DUE"]>;
|
|
951
1423
|
}, "strip", z.ZodTypeAny, {
|
|
952
|
-
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
1424
|
+
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED" | "CANDIDATE_CALL_CALLBACK" | "LEAD_CALLBACK_DUE";
|
|
953
1425
|
}, {
|
|
954
|
-
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
1426
|
+
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED" | "CANDIDATE_CALL_CALLBACK" | "LEAD_CALLBACK_DUE";
|
|
955
1427
|
}>;
|
|
956
1428
|
summary: "Soft-delete all the user notifications of a kind.";
|
|
957
1429
|
method: "POST";
|
|
@@ -967,17 +1439,17 @@ export declare const notificationsContract: {
|
|
|
967
1439
|
path: z.ZodString;
|
|
968
1440
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
969
1441
|
}, "strip", z.ZodTypeAny, {
|
|
970
|
-
message: string;
|
|
971
1442
|
code: string;
|
|
972
1443
|
path: string;
|
|
1444
|
+
message: string;
|
|
973
1445
|
statusCode: number;
|
|
974
1446
|
timestamp: string;
|
|
975
1447
|
details?: unknown;
|
|
976
1448
|
correlationId?: string | undefined;
|
|
977
1449
|
}, {
|
|
978
|
-
message: string;
|
|
979
1450
|
code: string;
|
|
980
1451
|
path: string;
|
|
1452
|
+
message: string;
|
|
981
1453
|
statusCode: number;
|
|
982
1454
|
timestamp: string;
|
|
983
1455
|
details?: unknown;
|
|
@@ -991,11 +1463,11 @@ export declare const notificationsContract: {
|
|
|
991
1463
|
tags: string[];
|
|
992
1464
|
};
|
|
993
1465
|
query: z.ZodObject<{
|
|
994
|
-
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
1466
|
+
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED", "CANDIDATE_CALL_CALLBACK", "LEAD_CALLBACK_DUE"]>;
|
|
995
1467
|
}, "strip", z.ZodTypeAny, {
|
|
996
|
-
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
1468
|
+
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED" | "CANDIDATE_CALL_CALLBACK" | "LEAD_CALLBACK_DUE";
|
|
997
1469
|
}, {
|
|
998
|
-
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
1470
|
+
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED" | "CANDIDATE_CALL_CALLBACK" | "LEAD_CALLBACK_DUE";
|
|
999
1471
|
}>;
|
|
1000
1472
|
summary: "Set lastSeenAt to now for (current user, kind).";
|
|
1001
1473
|
method: "POST";
|
|
@@ -1011,17 +1483,17 @@ export declare const notificationsContract: {
|
|
|
1011
1483
|
path: z.ZodString;
|
|
1012
1484
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1013
1485
|
}, "strip", z.ZodTypeAny, {
|
|
1014
|
-
message: string;
|
|
1015
1486
|
code: string;
|
|
1016
1487
|
path: string;
|
|
1488
|
+
message: string;
|
|
1017
1489
|
statusCode: number;
|
|
1018
1490
|
timestamp: string;
|
|
1019
1491
|
details?: unknown;
|
|
1020
1492
|
correlationId?: string | undefined;
|
|
1021
1493
|
}, {
|
|
1022
|
-
message: string;
|
|
1023
1494
|
code: string;
|
|
1024
1495
|
path: string;
|
|
1496
|
+
message: string;
|
|
1025
1497
|
statusCode: number;
|
|
1026
1498
|
timestamp: string;
|
|
1027
1499
|
details?: unknown;
|