@dakkitor/api-contracts 1.8.0 → 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 +32 -1
- package/dist/abilities/abilities.contract.spec.js +63 -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 +48 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +6959 -6547
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1275 -1173
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +102 -102
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +9963 -9305
- 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 +1040 -828
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +138 -98
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +18372 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +494 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.js +357 -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 +3108 -3004
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2604 -2507
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- 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 +245 -245
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3830 -2354
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +73 -7
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +94 -94
- package/dist/curated-worker-leads/contact-history.spec.js +141 -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 +8185 -2106
- 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 +2033 -1951
- 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 +1027 -284
- 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 +755 -755
- package/dist/exports-events/exports-events.schemas.d.ts +6 -6
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/jobs/jobs.contract.d.ts +8507 -6044
- 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 +102 -102
- package/dist/lead-assignments/lead-assignments.contract.d.ts +2985 -1139
- 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 +341 -317
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +282 -282
- 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 +579 -107
- 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/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/outreach.contract.d.ts +583 -162
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +50 -1
- package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
- package/dist/outreach/relay-hub-outreach.contract.js +10 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
- package/dist/own-research/check-phone-response.spec.d.ts +2 -0
- package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
- package/dist/own-research/check-phone-response.spec.js +54 -0
- package/dist/own-research/own-research.contract.d.ts +971 -820
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -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 +216 -216
- package/dist/users/users.contract.d.ts +365 -336
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -1
- package/dist/users/users.contract.spec.js +39 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +150 -150
- package/dist/workers/workers.contract.d.ts +4505 -4261
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +12 -0
- package/package.json +1 -1
|
@@ -10,14 +10,14 @@ export declare const ActiveStatusBatchEntrySchema: z.ZodObject<{
|
|
|
10
10
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
date: string;
|
|
13
|
+
activeId: string;
|
|
13
14
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
14
15
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
15
|
-
activeId: string;
|
|
16
16
|
}, {
|
|
17
17
|
date: string;
|
|
18
|
+
activeId: string;
|
|
18
19
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
19
20
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
20
|
-
activeId: string;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const ActiveStatusNotificationPayloadSchema: z.ZodObject<{
|
|
23
23
|
workerId: z.ZodString;
|
|
@@ -32,35 +32,35 @@ export declare const ActiveStatusNotificationPayloadSchema: z.ZodObject<{
|
|
|
32
32
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
date: string;
|
|
35
|
+
activeId: string;
|
|
35
36
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
36
37
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
37
|
-
activeId: string;
|
|
38
38
|
}, {
|
|
39
39
|
date: string;
|
|
40
|
+
activeId: string;
|
|
40
41
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
41
42
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
42
|
-
activeId: string;
|
|
43
43
|
}>, "many">;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
workerName: string | null;
|
|
46
45
|
entries: {
|
|
47
46
|
date: string;
|
|
47
|
+
activeId: string;
|
|
48
48
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
49
49
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
50
|
-
activeId: string;
|
|
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;
|
|
59
|
+
activeId: string;
|
|
60
60
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
61
61
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
62
|
-
activeId: string;
|
|
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;
|
|
@@ -119,35 +169,35 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
119
169
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
120
170
|
}, "strip", z.ZodTypeAny, {
|
|
121
171
|
date: string;
|
|
172
|
+
activeId: string;
|
|
122
173
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
123
174
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
124
|
-
activeId: string;
|
|
125
175
|
}, {
|
|
126
176
|
date: string;
|
|
177
|
+
activeId: string;
|
|
127
178
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
128
179
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
129
|
-
activeId: string;
|
|
130
180
|
}>, "many">;
|
|
131
181
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
workerName: string | null;
|
|
133
182
|
entries: {
|
|
134
183
|
date: string;
|
|
184
|
+
activeId: string;
|
|
135
185
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
136
186
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
137
|
-
activeId: string;
|
|
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;
|
|
196
|
+
activeId: string;
|
|
147
197
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
148
198
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
149
|
-
activeId: string;
|
|
150
199
|
}[];
|
|
200
|
+
workerName: string | null;
|
|
151
201
|
workerId: string;
|
|
152
202
|
actorId: string;
|
|
153
203
|
actorName: string | null;
|
|
@@ -155,36 +205,36 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
155
205
|
}>;
|
|
156
206
|
createdAt: z.ZodString;
|
|
157
207
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
id: string;
|
|
159
208
|
createdAt: string;
|
|
209
|
+
id: string;
|
|
160
210
|
kind: "ACTIVE_STATUS";
|
|
161
211
|
refId: string;
|
|
162
212
|
payload: {
|
|
163
|
-
workerName: string | null;
|
|
164
213
|
entries: {
|
|
165
214
|
date: string;
|
|
215
|
+
activeId: string;
|
|
166
216
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
167
217
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
168
|
-
activeId: string;
|
|
169
218
|
}[];
|
|
219
|
+
workerName: string | null;
|
|
170
220
|
workerId: string;
|
|
171
221
|
actorId: string;
|
|
172
222
|
actorName: string | null;
|
|
173
223
|
openedAt: string;
|
|
174
224
|
};
|
|
175
225
|
}, {
|
|
176
|
-
id: string;
|
|
177
226
|
createdAt: string;
|
|
227
|
+
id: string;
|
|
178
228
|
kind: "ACTIVE_STATUS";
|
|
179
229
|
refId: string;
|
|
180
230
|
payload: {
|
|
181
|
-
workerName: string | null;
|
|
182
231
|
entries: {
|
|
183
232
|
date: string;
|
|
233
|
+
activeId: string;
|
|
184
234
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
185
235
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
186
|
-
activeId: string;
|
|
187
236
|
}[];
|
|
237
|
+
workerName: string | null;
|
|
188
238
|
workerId: string;
|
|
189
239
|
actorId: string;
|
|
190
240
|
actorName: string | null;
|
|
@@ -212,8 +262,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
212
262
|
}>;
|
|
213
263
|
createdAt: z.ZodString;
|
|
214
264
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
id: string;
|
|
216
265
|
createdAt: string;
|
|
266
|
+
id: string;
|
|
217
267
|
kind: "AI_MERGE_MISMATCH";
|
|
218
268
|
refId: string;
|
|
219
269
|
payload: {
|
|
@@ -223,8 +273,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
223
273
|
workerNames: string[];
|
|
224
274
|
};
|
|
225
275
|
}, {
|
|
226
|
-
id: string;
|
|
227
276
|
createdAt: string;
|
|
277
|
+
id: string;
|
|
228
278
|
kind: "AI_MERGE_MISMATCH";
|
|
229
279
|
refId: string;
|
|
230
280
|
payload: {
|
|
@@ -255,8 +305,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
255
305
|
}>;
|
|
256
306
|
createdAt: z.ZodString;
|
|
257
307
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
id: string;
|
|
259
308
|
createdAt: string;
|
|
309
|
+
id: string;
|
|
260
310
|
kind: "AI_MERGE_APPLIED";
|
|
261
311
|
refId: string;
|
|
262
312
|
payload: {
|
|
@@ -266,8 +316,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
266
316
|
workerNames: string[];
|
|
267
317
|
};
|
|
268
318
|
}, {
|
|
269
|
-
id: string;
|
|
270
319
|
createdAt: string;
|
|
320
|
+
id: string;
|
|
271
321
|
kind: "AI_MERGE_APPLIED";
|
|
272
322
|
refId: string;
|
|
273
323
|
payload: {
|
|
@@ -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<{
|
|
@@ -295,35 +451,35 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
295
451
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
296
452
|
}, "strip", z.ZodTypeAny, {
|
|
297
453
|
date: string;
|
|
454
|
+
activeId: string;
|
|
298
455
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
299
456
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
300
|
-
activeId: string;
|
|
301
457
|
}, {
|
|
302
458
|
date: string;
|
|
459
|
+
activeId: string;
|
|
303
460
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
304
461
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
305
|
-
activeId: string;
|
|
306
462
|
}>, "many">;
|
|
307
463
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
workerName: string | null;
|
|
309
464
|
entries: {
|
|
310
465
|
date: string;
|
|
466
|
+
activeId: string;
|
|
311
467
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
312
468
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
313
|
-
activeId: string;
|
|
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;
|
|
478
|
+
activeId: string;
|
|
323
479
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
324
480
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
325
|
-
activeId: string;
|
|
326
481
|
}[];
|
|
482
|
+
workerName: string | null;
|
|
327
483
|
workerId: string;
|
|
328
484
|
actorId: string;
|
|
329
485
|
actorName: string | null;
|
|
@@ -331,36 +487,36 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
331
487
|
}>;
|
|
332
488
|
createdAt: z.ZodString;
|
|
333
489
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
id: string;
|
|
335
490
|
createdAt: string;
|
|
491
|
+
id: string;
|
|
336
492
|
kind: "ACTIVE_STATUS";
|
|
337
493
|
refId: string;
|
|
338
494
|
payload: {
|
|
339
|
-
workerName: string | null;
|
|
340
495
|
entries: {
|
|
341
496
|
date: string;
|
|
497
|
+
activeId: string;
|
|
342
498
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
343
499
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
344
|
-
activeId: string;
|
|
345
500
|
}[];
|
|
501
|
+
workerName: string | null;
|
|
346
502
|
workerId: string;
|
|
347
503
|
actorId: string;
|
|
348
504
|
actorName: string | null;
|
|
349
505
|
openedAt: string;
|
|
350
506
|
};
|
|
351
507
|
}, {
|
|
352
|
-
id: string;
|
|
353
508
|
createdAt: string;
|
|
509
|
+
id: string;
|
|
354
510
|
kind: "ACTIVE_STATUS";
|
|
355
511
|
refId: string;
|
|
356
512
|
payload: {
|
|
357
|
-
workerName: string | null;
|
|
358
513
|
entries: {
|
|
359
514
|
date: string;
|
|
515
|
+
activeId: string;
|
|
360
516
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
361
517
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
362
|
-
activeId: string;
|
|
363
518
|
}[];
|
|
519
|
+
workerName: string | null;
|
|
364
520
|
workerId: string;
|
|
365
521
|
actorId: string;
|
|
366
522
|
actorName: string | null;
|
|
@@ -388,8 +544,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
388
544
|
}>;
|
|
389
545
|
createdAt: z.ZodString;
|
|
390
546
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
id: string;
|
|
392
547
|
createdAt: string;
|
|
548
|
+
id: string;
|
|
393
549
|
kind: "AI_MERGE_MISMATCH";
|
|
394
550
|
refId: string;
|
|
395
551
|
payload: {
|
|
@@ -399,8 +555,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
399
555
|
workerNames: string[];
|
|
400
556
|
};
|
|
401
557
|
}, {
|
|
402
|
-
id: string;
|
|
403
558
|
createdAt: string;
|
|
559
|
+
id: string;
|
|
404
560
|
kind: "AI_MERGE_MISMATCH";
|
|
405
561
|
refId: string;
|
|
406
562
|
payload: {
|
|
@@ -431,8 +587,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
431
587
|
}>;
|
|
432
588
|
createdAt: z.ZodString;
|
|
433
589
|
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
id: string;
|
|
435
590
|
createdAt: string;
|
|
591
|
+
id: string;
|
|
436
592
|
kind: "AI_MERGE_APPLIED";
|
|
437
593
|
refId: string;
|
|
438
594
|
payload: {
|
|
@@ -442,8 +598,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
442
598
|
workerNames: string[];
|
|
443
599
|
};
|
|
444
600
|
}, {
|
|
445
|
-
id: string;
|
|
446
601
|
createdAt: string;
|
|
602
|
+
id: string;
|
|
447
603
|
kind: "AI_MERGE_APPLIED";
|
|
448
604
|
refId: string;
|
|
449
605
|
payload: {
|
|
@@ -452,30 +608,136 @@ 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, {
|
|
458
720
|
items: ({
|
|
459
|
-
id: string;
|
|
460
721
|
createdAt: string;
|
|
722
|
+
id: string;
|
|
461
723
|
kind: "ACTIVE_STATUS";
|
|
462
724
|
refId: string;
|
|
463
725
|
payload: {
|
|
464
|
-
workerName: string | null;
|
|
465
726
|
entries: {
|
|
466
727
|
date: string;
|
|
728
|
+
activeId: string;
|
|
467
729
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
468
730
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
469
|
-
activeId: string;
|
|
470
731
|
}[];
|
|
732
|
+
workerName: string | null;
|
|
471
733
|
workerId: string;
|
|
472
734
|
actorId: string;
|
|
473
735
|
actorName: string | null;
|
|
474
736
|
openedAt: string;
|
|
475
737
|
};
|
|
476
738
|
} | {
|
|
477
|
-
id: string;
|
|
478
739
|
createdAt: string;
|
|
740
|
+
id: string;
|
|
479
741
|
kind: "AI_MERGE_MISMATCH";
|
|
480
742
|
refId: string;
|
|
481
743
|
payload: {
|
|
@@ -485,8 +747,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
485
747
|
workerNames: string[];
|
|
486
748
|
};
|
|
487
749
|
} | {
|
|
488
|
-
id: string;
|
|
489
750
|
createdAt: string;
|
|
751
|
+
id: string;
|
|
490
752
|
kind: "AI_MERGE_APPLIED";
|
|
491
753
|
refId: string;
|
|
492
754
|
payload: {
|
|
@@ -495,30 +757,56 @@ 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
|
}, {
|
|
501
789
|
items: ({
|
|
502
|
-
id: string;
|
|
503
790
|
createdAt: string;
|
|
791
|
+
id: string;
|
|
504
792
|
kind: "ACTIVE_STATUS";
|
|
505
793
|
refId: string;
|
|
506
794
|
payload: {
|
|
507
|
-
workerName: string | null;
|
|
508
795
|
entries: {
|
|
509
796
|
date: string;
|
|
797
|
+
activeId: string;
|
|
510
798
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
511
799
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
512
|
-
activeId: string;
|
|
513
800
|
}[];
|
|
801
|
+
workerName: string | null;
|
|
514
802
|
workerId: string;
|
|
515
803
|
actorId: string;
|
|
516
804
|
actorName: string | null;
|
|
517
805
|
openedAt: string;
|
|
518
806
|
};
|
|
519
807
|
} | {
|
|
520
|
-
id: string;
|
|
521
808
|
createdAt: string;
|
|
809
|
+
id: string;
|
|
522
810
|
kind: "AI_MERGE_MISMATCH";
|
|
523
811
|
refId: string;
|
|
524
812
|
payload: {
|
|
@@ -528,8 +816,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
528
816
|
workerNames: string[];
|
|
529
817
|
};
|
|
530
818
|
} | {
|
|
531
|
-
id: string;
|
|
532
819
|
createdAt: string;
|
|
820
|
+
id: string;
|
|
533
821
|
kind: "AI_MERGE_APPLIED";
|
|
534
822
|
refId: string;
|
|
535
823
|
payload: {
|
|
@@ -538,21 +826,47 @@ 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
|
}>;
|
|
544
858
|
export declare const notificationsContract: {
|
|
545
859
|
list: {
|
|
860
|
+
metadata: {
|
|
861
|
+
tags: string[];
|
|
862
|
+
};
|
|
546
863
|
query: z.ZodObject<{
|
|
547
|
-
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"]>;
|
|
548
865
|
}, "strip", z.ZodTypeAny, {
|
|
549
|
-
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";
|
|
550
867
|
}, {
|
|
551
|
-
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";
|
|
552
869
|
}>;
|
|
553
|
-
metadata: {
|
|
554
|
-
tags: string[];
|
|
555
|
-
};
|
|
556
870
|
summary: "List notifications for the current user (undismissed only).";
|
|
557
871
|
method: "GET";
|
|
558
872
|
path: "/v2/notifications";
|
|
@@ -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;
|
|
@@ -600,35 +914,35 @@ export declare const notificationsContract: {
|
|
|
600
914
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
601
915
|
}, "strip", z.ZodTypeAny, {
|
|
602
916
|
date: string;
|
|
917
|
+
activeId: string;
|
|
603
918
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
604
919
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
605
|
-
activeId: string;
|
|
606
920
|
}, {
|
|
607
921
|
date: string;
|
|
922
|
+
activeId: string;
|
|
608
923
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
609
924
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
610
|
-
activeId: string;
|
|
611
925
|
}>, "many">;
|
|
612
926
|
}, "strip", z.ZodTypeAny, {
|
|
613
|
-
workerName: string | null;
|
|
614
927
|
entries: {
|
|
615
928
|
date: string;
|
|
929
|
+
activeId: string;
|
|
616
930
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
617
931
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
618
|
-
activeId: string;
|
|
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;
|
|
941
|
+
activeId: string;
|
|
628
942
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
629
943
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
630
|
-
activeId: string;
|
|
631
944
|
}[];
|
|
945
|
+
workerName: string | null;
|
|
632
946
|
workerId: string;
|
|
633
947
|
actorId: string;
|
|
634
948
|
actorName: string | null;
|
|
@@ -636,36 +950,36 @@ export declare const notificationsContract: {
|
|
|
636
950
|
}>;
|
|
637
951
|
createdAt: z.ZodString;
|
|
638
952
|
}, "strip", z.ZodTypeAny, {
|
|
639
|
-
id: string;
|
|
640
953
|
createdAt: string;
|
|
954
|
+
id: string;
|
|
641
955
|
kind: "ACTIVE_STATUS";
|
|
642
956
|
refId: string;
|
|
643
957
|
payload: {
|
|
644
|
-
workerName: string | null;
|
|
645
958
|
entries: {
|
|
646
959
|
date: string;
|
|
960
|
+
activeId: string;
|
|
647
961
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
648
962
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
649
|
-
activeId: string;
|
|
650
963
|
}[];
|
|
964
|
+
workerName: string | null;
|
|
651
965
|
workerId: string;
|
|
652
966
|
actorId: string;
|
|
653
967
|
actorName: string | null;
|
|
654
968
|
openedAt: string;
|
|
655
969
|
};
|
|
656
970
|
}, {
|
|
657
|
-
id: string;
|
|
658
971
|
createdAt: string;
|
|
972
|
+
id: string;
|
|
659
973
|
kind: "ACTIVE_STATUS";
|
|
660
974
|
refId: string;
|
|
661
975
|
payload: {
|
|
662
|
-
workerName: string | null;
|
|
663
976
|
entries: {
|
|
664
977
|
date: string;
|
|
978
|
+
activeId: string;
|
|
665
979
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
666
980
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
667
|
-
activeId: string;
|
|
668
981
|
}[];
|
|
982
|
+
workerName: string | null;
|
|
669
983
|
workerId: string;
|
|
670
984
|
actorId: string;
|
|
671
985
|
actorName: string | null;
|
|
@@ -693,8 +1007,8 @@ export declare const notificationsContract: {
|
|
|
693
1007
|
}>;
|
|
694
1008
|
createdAt: z.ZodString;
|
|
695
1009
|
}, "strip", z.ZodTypeAny, {
|
|
696
|
-
id: string;
|
|
697
1010
|
createdAt: string;
|
|
1011
|
+
id: string;
|
|
698
1012
|
kind: "AI_MERGE_MISMATCH";
|
|
699
1013
|
refId: string;
|
|
700
1014
|
payload: {
|
|
@@ -704,8 +1018,8 @@ export declare const notificationsContract: {
|
|
|
704
1018
|
workerNames: string[];
|
|
705
1019
|
};
|
|
706
1020
|
}, {
|
|
707
|
-
id: string;
|
|
708
1021
|
createdAt: string;
|
|
1022
|
+
id: string;
|
|
709
1023
|
kind: "AI_MERGE_MISMATCH";
|
|
710
1024
|
refId: string;
|
|
711
1025
|
payload: {
|
|
@@ -736,8 +1050,8 @@ export declare const notificationsContract: {
|
|
|
736
1050
|
}>;
|
|
737
1051
|
createdAt: z.ZodString;
|
|
738
1052
|
}, "strip", z.ZodTypeAny, {
|
|
739
|
-
id: string;
|
|
740
1053
|
createdAt: string;
|
|
1054
|
+
id: string;
|
|
741
1055
|
kind: "AI_MERGE_APPLIED";
|
|
742
1056
|
refId: string;
|
|
743
1057
|
payload: {
|
|
@@ -747,8 +1061,8 @@ export declare const notificationsContract: {
|
|
|
747
1061
|
workerNames: string[];
|
|
748
1062
|
};
|
|
749
1063
|
}, {
|
|
750
|
-
id: string;
|
|
751
1064
|
createdAt: string;
|
|
1065
|
+
id: string;
|
|
752
1066
|
kind: "AI_MERGE_APPLIED";
|
|
753
1067
|
refId: string;
|
|
754
1068
|
payload: {
|
|
@@ -757,30 +1071,136 @@ 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, {
|
|
763
1183
|
items: ({
|
|
764
|
-
id: string;
|
|
765
1184
|
createdAt: string;
|
|
1185
|
+
id: string;
|
|
766
1186
|
kind: "ACTIVE_STATUS";
|
|
767
1187
|
refId: string;
|
|
768
1188
|
payload: {
|
|
769
|
-
workerName: string | null;
|
|
770
1189
|
entries: {
|
|
771
1190
|
date: string;
|
|
1191
|
+
activeId: string;
|
|
772
1192
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
773
1193
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
774
|
-
activeId: string;
|
|
775
1194
|
}[];
|
|
1195
|
+
workerName: string | null;
|
|
776
1196
|
workerId: string;
|
|
777
1197
|
actorId: string;
|
|
778
1198
|
actorName: string | null;
|
|
779
1199
|
openedAt: string;
|
|
780
1200
|
};
|
|
781
1201
|
} | {
|
|
782
|
-
id: string;
|
|
783
1202
|
createdAt: string;
|
|
1203
|
+
id: string;
|
|
784
1204
|
kind: "AI_MERGE_MISMATCH";
|
|
785
1205
|
refId: string;
|
|
786
1206
|
payload: {
|
|
@@ -790,8 +1210,8 @@ export declare const notificationsContract: {
|
|
|
790
1210
|
workerNames: string[];
|
|
791
1211
|
};
|
|
792
1212
|
} | {
|
|
793
|
-
id: string;
|
|
794
1213
|
createdAt: string;
|
|
1214
|
+
id: string;
|
|
795
1215
|
kind: "AI_MERGE_APPLIED";
|
|
796
1216
|
refId: string;
|
|
797
1217
|
payload: {
|
|
@@ -800,30 +1220,56 @@ 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
|
}, {
|
|
806
1252
|
items: ({
|
|
807
|
-
id: string;
|
|
808
1253
|
createdAt: string;
|
|
1254
|
+
id: string;
|
|
809
1255
|
kind: "ACTIVE_STATUS";
|
|
810
1256
|
refId: string;
|
|
811
1257
|
payload: {
|
|
812
|
-
workerName: string | null;
|
|
813
1258
|
entries: {
|
|
814
1259
|
date: string;
|
|
1260
|
+
activeId: string;
|
|
815
1261
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
816
1262
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
817
|
-
activeId: string;
|
|
818
1263
|
}[];
|
|
1264
|
+
workerName: string | null;
|
|
819
1265
|
workerId: string;
|
|
820
1266
|
actorId: string;
|
|
821
1267
|
actorName: string | null;
|
|
822
1268
|
openedAt: string;
|
|
823
1269
|
};
|
|
824
1270
|
} | {
|
|
825
|
-
id: string;
|
|
826
1271
|
createdAt: string;
|
|
1272
|
+
id: string;
|
|
827
1273
|
kind: "AI_MERGE_MISMATCH";
|
|
828
1274
|
refId: string;
|
|
829
1275
|
payload: {
|
|
@@ -833,8 +1279,8 @@ export declare const notificationsContract: {
|
|
|
833
1279
|
workerNames: string[];
|
|
834
1280
|
};
|
|
835
1281
|
} | {
|
|
836
|
-
id: string;
|
|
837
1282
|
createdAt: string;
|
|
1283
|
+
id: string;
|
|
838
1284
|
kind: "AI_MERGE_APPLIED";
|
|
839
1285
|
refId: string;
|
|
840
1286
|
payload: {
|
|
@@ -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;
|
|
@@ -943,16 +1415,16 @@ export declare const notificationsContract: {
|
|
|
943
1415
|
};
|
|
944
1416
|
};
|
|
945
1417
|
dismissAll: {
|
|
1418
|
+
metadata: {
|
|
1419
|
+
tags: string[];
|
|
1420
|
+
};
|
|
946
1421
|
query: z.ZodObject<{
|
|
947
|
-
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"]>;
|
|
948
1423
|
}, "strip", z.ZodTypeAny, {
|
|
949
|
-
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";
|
|
950
1425
|
}, {
|
|
951
|
-
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";
|
|
952
1427
|
}>;
|
|
953
|
-
metadata: {
|
|
954
|
-
tags: string[];
|
|
955
|
-
};
|
|
956
1428
|
summary: "Soft-delete all the user notifications of a kind.";
|
|
957
1429
|
method: "POST";
|
|
958
1430
|
body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
@@ -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;
|
|
@@ -987,16 +1459,16 @@ export declare const notificationsContract: {
|
|
|
987
1459
|
};
|
|
988
1460
|
};
|
|
989
1461
|
markAllSeen: {
|
|
1462
|
+
metadata: {
|
|
1463
|
+
tags: string[];
|
|
1464
|
+
};
|
|
990
1465
|
query: z.ZodObject<{
|
|
991
|
-
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"]>;
|
|
992
1467
|
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
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";
|
|
994
1469
|
}, {
|
|
995
|
-
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";
|
|
996
1471
|
}>;
|
|
997
|
-
metadata: {
|
|
998
|
-
tags: string[];
|
|
999
|
-
};
|
|
1000
1472
|
summary: "Set lastSeenAt to now for (current user, kind).";
|
|
1001
1473
|
method: "POST";
|
|
1002
1474
|
body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
@@ -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;
|