@dakkitor/api-contracts 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.spec.js +39 -19
- package/dist/abilities/interconnection.abilities.json +6 -0
- package/dist/abilities/outreach.abilities.json +0 -7
- package/dist/abilities/second-agent.abilities.json +2 -91
- package/dist/abilities/team-leads.json +1 -0
- package/dist/abilities/worker-curator.abilities.json +2 -0
- package/dist/actives/actives.contract.d.ts +2562 -2515
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +908 -908
- package/dist/auth/auth.contract.d.ts +50 -44
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.js +1 -0
- package/dist/bookings/backdate-guard.spec.d.ts +2 -0
- package/dist/bookings/backdate-guard.spec.d.ts.map +1 -0
- package/dist/bookings/backdate-guard.spec.js +80 -0
- package/dist/bookings/bookings.contract.d.ts +4918 -4824
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +26 -2
- package/dist/call-history/call-history.contract.d.ts +434 -434
- package/dist/calls-feed/calls-feed.contract.d.ts +70 -70
- package/dist/client-contacts/client-contacts.contract.d.ts +290 -290
- package/dist/clients/clients.contract.d.ts +110 -110
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1412 -1412
- package/dist/collaborations/collaborations.contract.d.ts +1278 -1278
- package/dist/common/common-schemas.d.ts +13 -13
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -0
- package/dist/common/nino.d.ts +8 -0
- package/dist/common/nino.d.ts.map +1 -0
- package/dist/common/nino.js +26 -0
- package/dist/common/nino.spec.d.ts +2 -0
- package/dist/common/nino.spec.d.ts.map +1 -0
- package/dist/common/nino.spec.js +32 -0
- package/dist/companies/companies.contract.d.ts +30 -30
- package/dist/crews/crews.contract.d.ts +300 -300
- package/dist/cron-executions/cron-executions.contract.d.ts +19 -6
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +1 -0
- package/dist/cron-executions/cron-executions.contract.spec.d.ts +2 -0
- package/dist/cron-executions/cron-executions.contract.spec.d.ts.map +1 -0
- package/dist/cron-executions/cron-executions.contract.spec.js +27 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.d.ts +2 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.js +59 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +1255 -1188
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +22 -6
- package/dist/curated-worker-leads/candidate-coordination.contract.spec.js +11 -0
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +347 -304
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/contact-history.spec.js +1 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +2 -85
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.js +17 -41
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.js +30 -0
- package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.js +30 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +6058 -5381
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +64 -12
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +88 -88
- package/dist/curated-workers/curated-workers.contract.d.ts +1173 -962
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +37 -6
- package/dist/dashboards/dashboard-widgets.contract.d.ts +43 -73
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +1 -11
- package/dist/dashboards/dashboard-widgets.retirement.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.retirement.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.retirement.spec.js +22 -0
- package/dist/document-intake/document-intake.automation.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.automation.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.automation.spec.js +469 -0
- package/dist/document-intake/document-intake.card-side.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.card-side.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.card-side.spec.js +51 -0
- package/dist/document-intake/document-intake.contract.d.ts +9421 -1071
- package/dist/document-intake/document-intake.contract.d.ts.map +1 -1
- package/dist/document-intake/document-intake.contract.js +219 -5
- package/dist/document-intake/document-intake.contract.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.contract.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.contract.spec.js +37 -0
- package/dist/document-intake/document-intake.nino.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.nino.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.nino.spec.js +42 -0
- package/dist/export-jobs/export-jobs.contract.d.ts +426 -426
- package/dist/files/files.contract.d.ts +36 -36
- package/dist/index.d.ts +17 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -9
- package/dist/job-clusters/job-clusters.contract.d.ts +52 -52
- package/dist/jobs/jobs.contract.d.ts +3610 -3610
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +56 -56
- package/dist/lead-assignments/lead-assignments.contract.d.ts +706 -706
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +220 -220
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +10 -10
- package/dist/leads/leads.contract.d.ts +86 -86
- package/dist/locations/locations.contract.d.ts +46 -46
- package/dist/notifications/notifications.contract.d.ts +18 -18
- package/dist/offices/offices.contract.d.ts +24 -24
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +27 -0
- package/dist/outreach/lab-outreach.contract.d.ts +48 -48
- package/dist/outreach/outreach-requests.contract.d.ts +272 -272
- package/dist/outreach/outreach-requests.schemas.d.ts +14 -14
- package/dist/outreach/outreach.contract.d.ts +12 -12
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/outreach/relay-hub-outreach.contract.d.ts +1156 -0
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.contract.js +103 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +119 -0
- package/dist/own-research/own-research.contract.d.ts +708 -708
- package/dist/proofs/proofs.contract.d.ts +196 -196
- package/dist/proofs/proofs.dtos.d.ts +104 -104
- package/dist/qualifications/qualifications.contract.d.ts +22 -22
- package/dist/realtime/realtime-telemetry.contract.d.ts +181 -0
- package/dist/realtime/realtime-telemetry.contract.d.ts.map +1 -0
- package/dist/realtime/realtime-telemetry.contract.js +81 -0
- package/dist/realtime/realtime-telemetry.contract.spec.d.ts +2 -0
- package/dist/realtime/realtime-telemetry.contract.spec.d.ts.map +1 -0
- package/dist/realtime/realtime-telemetry.contract.spec.js +41 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.d.ts +9 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.d.ts.map +1 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.js +17 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.d.ts +2 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.d.ts.map +1 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.js +20 -0
- package/dist/relay-pods/relay-hub.contract.d.ts +1463 -0
- package/dist/relay-pods/relay-hub.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.contract.js +140 -0
- package/dist/relay-pods/relay-hub.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-hub.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.contract.spec.js +180 -0
- package/dist/relay-pods/relay-hub.schemas.d.ts +577 -0
- package/dist/relay-pods/relay-hub.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.schemas.js +158 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +81 -81
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +53 -53
- package/dist/{curated-worker-leads/lead-agent-area.contract.d.ts → relay-pods/relay-pod-members.contract.d.ts} +233 -126
- package/dist/relay-pods/relay-pod-members.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-members.contract.js +73 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +58 -58
- package/dist/relay-pods/relay-pods.contract.d.ts +169 -169
- package/dist/relay-pods/relay-pods.schemas.d.ts +46 -46
- package/dist/shared/summary-schemas.d.ts +10 -10
- package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.js +22 -2
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts +30 -0
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts.map +1 -1
- package/dist/sheets-sync/sheets-sync-events.schemas.js +16 -1
- package/dist/sheets-sync/sheets-sync.contract.d.ts +829 -262
- package/dist/sheets-sync/sheets-sync.contract.d.ts.map +1 -1
- package/dist/sheets-sync/sheets-sync.contract.js +156 -34
- package/dist/telegram/telegram.contract.d.ts +12 -12
- package/dist/trades/trades.contract.d.ts +16 -16
- package/dist/user-access-grants/user-access-grants.contract.d.ts +226 -226
- package/dist/users/__tests__/assignable-roles.spec.js +1 -1
- package/dist/users/users.contract.d.ts +327 -325
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +10 -7
- package/dist/users/users.contract.spec.js +15 -0
- package/dist/voice-screener/voice-screener.contract.d.ts +237 -0
- package/dist/voice-screener/voice-screener.contract.d.ts.map +1 -0
- package/dist/voice-screener/voice-screener.contract.js +89 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +500 -260
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-identity-cases/worker-identity-cases.contract.js +17 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +130 -130
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +35 -35
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +15 -15
- package/dist/workers/do-not-contact.contract.d.ts +4 -4
- package/dist/workers/qualification-back-proof.spec.d.ts +2 -0
- package/dist/workers/qualification-back-proof.spec.d.ts.map +1 -0
- package/dist/workers/qualification-back-proof.spec.js +39 -0
- package/dist/workers/workers.contract.d.ts +1969 -1775
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +5 -0
- package/package.json +1 -1
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +0 -4527
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/consent-queue.contract.js +0 -201
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +0 -135
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/curated-worker-leads.contract.js +0 -32
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.js +0 -51
|
@@ -71,12 +71,12 @@ export declare const WorkerIdentityCaseSummarySchema: z.ZodObject<{
|
|
|
71
71
|
lastName: z.ZodNullable<z.ZodString>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
id: string;
|
|
74
|
-
firstName: string;
|
|
75
74
|
lastName: string | null;
|
|
75
|
+
firstName: string;
|
|
76
76
|
}, {
|
|
77
77
|
id: string;
|
|
78
|
-
firstName: string;
|
|
79
78
|
lastName: string | null;
|
|
79
|
+
firstName: string;
|
|
80
80
|
}>>;
|
|
81
81
|
workers: z.ZodArray<z.ZodObject<{
|
|
82
82
|
id: z.ZodString;
|
|
@@ -86,15 +86,15 @@ export declare const WorkerIdentityCaseSummarySchema: z.ZodObject<{
|
|
|
86
86
|
agentName: z.ZodNullable<z.ZodString>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
id: string;
|
|
89
|
-
firstName: string;
|
|
90
|
-
lastName: string | null;
|
|
91
89
|
agentId: string | null;
|
|
90
|
+
lastName: string | null;
|
|
91
|
+
firstName: string;
|
|
92
92
|
agentName: string | null;
|
|
93
93
|
}, {
|
|
94
94
|
id: string;
|
|
95
|
-
firstName: string;
|
|
96
|
-
lastName: string | null;
|
|
97
95
|
agentId: string | null;
|
|
96
|
+
lastName: string | null;
|
|
97
|
+
firstName: string;
|
|
98
98
|
agentName: string | null;
|
|
99
99
|
}>, "many">;
|
|
100
100
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -112,22 +112,22 @@ export declare const WorkerIdentityCaseSummarySchema: z.ZodObject<{
|
|
|
112
112
|
}>>;
|
|
113
113
|
createdAt: z.ZodString;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
115
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
116
116
|
id: string;
|
|
117
117
|
createdAt: string;
|
|
118
118
|
conflicts: string[];
|
|
119
119
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
120
120
|
curatedWorker: {
|
|
121
121
|
id: string;
|
|
122
|
-
firstName: string;
|
|
123
122
|
lastName: string | null;
|
|
123
|
+
firstName: string;
|
|
124
124
|
} | null;
|
|
125
125
|
confidence: number | null;
|
|
126
126
|
workers: {
|
|
127
127
|
id: string;
|
|
128
|
-
firstName: string;
|
|
129
|
-
lastName: string | null;
|
|
130
128
|
agentId: string | null;
|
|
129
|
+
lastName: string | null;
|
|
130
|
+
firstName: string;
|
|
131
131
|
agentName: string | null;
|
|
132
132
|
}[];
|
|
133
133
|
revision: number;
|
|
@@ -138,22 +138,22 @@ export declare const WorkerIdentityCaseSummarySchema: z.ZodObject<{
|
|
|
138
138
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
139
139
|
} | null;
|
|
140
140
|
}, {
|
|
141
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
141
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
142
142
|
id: string;
|
|
143
143
|
createdAt: string;
|
|
144
144
|
conflicts: string[];
|
|
145
145
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
146
146
|
curatedWorker: {
|
|
147
147
|
id: string;
|
|
148
|
-
firstName: string;
|
|
149
148
|
lastName: string | null;
|
|
149
|
+
firstName: string;
|
|
150
150
|
} | null;
|
|
151
151
|
confidence: number | null;
|
|
152
152
|
workers: {
|
|
153
153
|
id: string;
|
|
154
|
-
firstName: string;
|
|
155
|
-
lastName: string | null;
|
|
156
154
|
agentId: string | null;
|
|
155
|
+
lastName: string | null;
|
|
156
|
+
firstName: string;
|
|
157
157
|
agentName: string | null;
|
|
158
158
|
}[];
|
|
159
159
|
revision: number;
|
|
@@ -170,12 +170,12 @@ export declare const WorkerIdentityCaseCuratedSubjectSchema: z.ZodObject<{
|
|
|
170
170
|
lastName: z.ZodNullable<z.ZodString>;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
172
|
id: string;
|
|
173
|
-
firstName: string;
|
|
174
173
|
lastName: string | null;
|
|
174
|
+
firstName: string;
|
|
175
175
|
}, {
|
|
176
176
|
id: string;
|
|
177
|
-
firstName: string;
|
|
178
177
|
lastName: string | null;
|
|
178
|
+
firstName: string;
|
|
179
179
|
}>;
|
|
180
180
|
/** Member documents the intelligence pipeline has not finished with — a
|
|
181
181
|
* staleness hint (spec §5): the case's evidence may still gain hard signals
|
|
@@ -204,12 +204,12 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
204
204
|
lastName: z.ZodNullable<z.ZodString>;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
id: string;
|
|
207
|
-
firstName: string;
|
|
208
207
|
lastName: string | null;
|
|
208
|
+
firstName: string;
|
|
209
209
|
}, {
|
|
210
210
|
id: string;
|
|
211
|
-
firstName: string;
|
|
212
211
|
lastName: string | null;
|
|
212
|
+
firstName: string;
|
|
213
213
|
}>>;
|
|
214
214
|
workers: z.ZodArray<z.ZodObject<{
|
|
215
215
|
id: z.ZodString;
|
|
@@ -219,15 +219,15 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
219
219
|
agentName: z.ZodNullable<z.ZodString>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
221
|
id: string;
|
|
222
|
-
firstName: string;
|
|
223
|
-
lastName: string | null;
|
|
224
222
|
agentId: string | null;
|
|
223
|
+
lastName: string | null;
|
|
224
|
+
firstName: string;
|
|
225
225
|
agentName: string | null;
|
|
226
226
|
}, {
|
|
227
227
|
id: string;
|
|
228
|
-
firstName: string;
|
|
229
|
-
lastName: string | null;
|
|
230
228
|
agentId: string | null;
|
|
229
|
+
lastName: string | null;
|
|
230
|
+
firstName: string;
|
|
231
231
|
agentName: string | null;
|
|
232
232
|
}>, "many">;
|
|
233
233
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -285,12 +285,12 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
285
285
|
lastName: z.ZodNullable<z.ZodString>;
|
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
|
287
287
|
id: string;
|
|
288
|
-
firstName: string;
|
|
289
288
|
lastName: string | null;
|
|
289
|
+
firstName: string;
|
|
290
290
|
}, {
|
|
291
291
|
id: string;
|
|
292
|
-
firstName: string;
|
|
293
292
|
lastName: string | null;
|
|
293
|
+
firstName: string;
|
|
294
294
|
}>, "many">;
|
|
295
295
|
pendingDocuments: z.ZodObject<{
|
|
296
296
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -310,28 +310,40 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
310
310
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
311
311
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
312
312
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
313
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
314
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
315
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
316
|
+
firstName: z.ZodString;
|
|
317
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
lastName: string | null;
|
|
320
|
+
firstName: string;
|
|
321
|
+
}, {
|
|
322
|
+
lastName: string | null;
|
|
323
|
+
firstName: string;
|
|
324
|
+
}>>;
|
|
313
325
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
326
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
315
327
|
id: string;
|
|
316
328
|
createdAt: string;
|
|
317
329
|
conflicts: string[];
|
|
318
330
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
319
331
|
curatedWorker: {
|
|
320
332
|
id: string;
|
|
321
|
-
firstName: string;
|
|
322
333
|
lastName: string | null;
|
|
334
|
+
firstName: string;
|
|
323
335
|
} | null;
|
|
324
336
|
reviewedAt: string | null;
|
|
325
337
|
confidence: number | null;
|
|
326
338
|
workers: {
|
|
327
339
|
id: string;
|
|
328
|
-
firstName: string;
|
|
329
|
-
lastName: string | null;
|
|
330
340
|
agentId: string | null;
|
|
341
|
+
lastName: string | null;
|
|
342
|
+
firstName: string;
|
|
331
343
|
agentName: string | null;
|
|
332
344
|
}[];
|
|
333
|
-
appliedCuratedWorkerId: string | null;
|
|
334
345
|
revision: number;
|
|
346
|
+
appliedCuratedWorkerId: string | null;
|
|
335
347
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
336
348
|
hasHardEvidence: boolean;
|
|
337
349
|
linkAudit: {
|
|
@@ -351,8 +363,8 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
351
363
|
}[];
|
|
352
364
|
curatedSubjects: {
|
|
353
365
|
id: string;
|
|
354
|
-
firstName: string;
|
|
355
366
|
lastName: string | null;
|
|
367
|
+
firstName: string;
|
|
356
368
|
}[];
|
|
357
369
|
pendingDocuments: {
|
|
358
370
|
notExtracted: number;
|
|
@@ -360,28 +372,32 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
360
372
|
};
|
|
361
373
|
absorbedIntoCaseId: string | null;
|
|
362
374
|
obsoleteReason: string | null;
|
|
375
|
+
suggestedCuratedRename: {
|
|
376
|
+
lastName: string | null;
|
|
377
|
+
firstName: string;
|
|
378
|
+
} | null;
|
|
363
379
|
}, {
|
|
364
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
380
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
365
381
|
id: string;
|
|
366
382
|
createdAt: string;
|
|
367
383
|
conflicts: string[];
|
|
368
384
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
369
385
|
curatedWorker: {
|
|
370
386
|
id: string;
|
|
371
|
-
firstName: string;
|
|
372
387
|
lastName: string | null;
|
|
388
|
+
firstName: string;
|
|
373
389
|
} | null;
|
|
374
390
|
reviewedAt: string | null;
|
|
375
391
|
confidence: number | null;
|
|
376
392
|
workers: {
|
|
377
393
|
id: string;
|
|
378
|
-
firstName: string;
|
|
379
|
-
lastName: string | null;
|
|
380
394
|
agentId: string | null;
|
|
395
|
+
lastName: string | null;
|
|
396
|
+
firstName: string;
|
|
381
397
|
agentName: string | null;
|
|
382
398
|
}[];
|
|
383
|
-
appliedCuratedWorkerId: string | null;
|
|
384
399
|
revision: number;
|
|
400
|
+
appliedCuratedWorkerId: string | null;
|
|
385
401
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
386
402
|
hasHardEvidence: boolean;
|
|
387
403
|
linkAudit: {
|
|
@@ -401,8 +417,8 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
401
417
|
}[];
|
|
402
418
|
curatedSubjects: {
|
|
403
419
|
id: string;
|
|
404
|
-
firstName: string;
|
|
405
420
|
lastName: string | null;
|
|
421
|
+
firstName: string;
|
|
406
422
|
}[];
|
|
407
423
|
pendingDocuments: {
|
|
408
424
|
notExtracted: number;
|
|
@@ -410,6 +426,10 @@ export declare const WorkerIdentityCaseDetailSchema: z.ZodObject<{
|
|
|
410
426
|
};
|
|
411
427
|
absorbedIntoCaseId: string | null;
|
|
412
428
|
obsoleteReason: string | null;
|
|
429
|
+
suggestedCuratedRename: {
|
|
430
|
+
lastName: string | null;
|
|
431
|
+
firstName: string;
|
|
432
|
+
} | null;
|
|
413
433
|
}>;
|
|
414
434
|
export declare const FilterWorkerIdentityCasesSchema: z.ZodObject<{
|
|
415
435
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -421,23 +441,23 @@ export declare const FilterWorkerIdentityCasesSchema: z.ZodObject<{
|
|
|
421
441
|
targetType: z.ZodOptional<z.ZodEnum<["EXISTING", "NEW"]>>;
|
|
422
442
|
search: z.ZodOptional<z.ZodString>;
|
|
423
443
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
limit: number;
|
|
425
444
|
page: number;
|
|
445
|
+
limit: number;
|
|
426
446
|
queue: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS";
|
|
427
|
-
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
447
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE" | undefined;
|
|
428
448
|
search?: string | undefined;
|
|
429
449
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
430
|
-
targetType?: "NEW" | "EXISTING" | undefined;
|
|
431
450
|
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
451
|
+
targetType?: "NEW" | "EXISTING" | undefined;
|
|
432
452
|
}, {
|
|
433
|
-
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
434
|
-
search?: string | undefined;
|
|
435
|
-
limit?: number | undefined;
|
|
453
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE" | undefined;
|
|
436
454
|
page?: number | undefined;
|
|
455
|
+
limit?: number | undefined;
|
|
456
|
+
search?: string | undefined;
|
|
437
457
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
458
|
+
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
438
459
|
targetType?: "NEW" | "EXISTING" | undefined;
|
|
439
460
|
queue?: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS" | undefined;
|
|
440
|
-
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
441
461
|
}>;
|
|
442
462
|
export type FilterWorkerIdentityCases = z.infer<typeof FilterWorkerIdentityCasesSchema>;
|
|
443
463
|
export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
@@ -453,12 +473,12 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
453
473
|
lastName: z.ZodNullable<z.ZodString>;
|
|
454
474
|
}, "strip", z.ZodTypeAny, {
|
|
455
475
|
id: string;
|
|
456
|
-
firstName: string;
|
|
457
476
|
lastName: string | null;
|
|
477
|
+
firstName: string;
|
|
458
478
|
}, {
|
|
459
479
|
id: string;
|
|
460
|
-
firstName: string;
|
|
461
480
|
lastName: string | null;
|
|
481
|
+
firstName: string;
|
|
462
482
|
}>>;
|
|
463
483
|
workers: z.ZodArray<z.ZodObject<{
|
|
464
484
|
id: z.ZodString;
|
|
@@ -468,15 +488,15 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
468
488
|
agentName: z.ZodNullable<z.ZodString>;
|
|
469
489
|
}, "strip", z.ZodTypeAny, {
|
|
470
490
|
id: string;
|
|
471
|
-
firstName: string;
|
|
472
|
-
lastName: string | null;
|
|
473
491
|
agentId: string | null;
|
|
492
|
+
lastName: string | null;
|
|
493
|
+
firstName: string;
|
|
474
494
|
agentName: string | null;
|
|
475
495
|
}, {
|
|
476
496
|
id: string;
|
|
477
|
-
firstName: string;
|
|
478
|
-
lastName: string | null;
|
|
479
497
|
agentId: string | null;
|
|
498
|
+
lastName: string | null;
|
|
499
|
+
firstName: string;
|
|
480
500
|
agentName: string | null;
|
|
481
501
|
}>, "many">;
|
|
482
502
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -494,22 +514,22 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
494
514
|
}>>;
|
|
495
515
|
createdAt: z.ZodString;
|
|
496
516
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
517
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
498
518
|
id: string;
|
|
499
519
|
createdAt: string;
|
|
500
520
|
conflicts: string[];
|
|
501
521
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
502
522
|
curatedWorker: {
|
|
503
523
|
id: string;
|
|
504
|
-
firstName: string;
|
|
505
524
|
lastName: string | null;
|
|
525
|
+
firstName: string;
|
|
506
526
|
} | null;
|
|
507
527
|
confidence: number | null;
|
|
508
528
|
workers: {
|
|
509
529
|
id: string;
|
|
510
|
-
firstName: string;
|
|
511
|
-
lastName: string | null;
|
|
512
530
|
agentId: string | null;
|
|
531
|
+
lastName: string | null;
|
|
532
|
+
firstName: string;
|
|
513
533
|
agentName: string | null;
|
|
514
534
|
}[];
|
|
515
535
|
revision: number;
|
|
@@ -520,22 +540,22 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
520
540
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
521
541
|
} | null;
|
|
522
542
|
}, {
|
|
523
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
543
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
524
544
|
id: string;
|
|
525
545
|
createdAt: string;
|
|
526
546
|
conflicts: string[];
|
|
527
547
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
528
548
|
curatedWorker: {
|
|
529
549
|
id: string;
|
|
530
|
-
firstName: string;
|
|
531
550
|
lastName: string | null;
|
|
551
|
+
firstName: string;
|
|
532
552
|
} | null;
|
|
533
553
|
confidence: number | null;
|
|
534
554
|
workers: {
|
|
535
555
|
id: string;
|
|
536
|
-
firstName: string;
|
|
537
|
-
lastName: string | null;
|
|
538
556
|
agentId: string | null;
|
|
557
|
+
lastName: string | null;
|
|
558
|
+
firstName: string;
|
|
539
559
|
agentName: string | null;
|
|
540
560
|
}[];
|
|
541
561
|
revision: number;
|
|
@@ -551,27 +571,27 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
551
571
|
page: z.ZodNumber;
|
|
552
572
|
limit: z.ZodNumber;
|
|
553
573
|
}, "strip", z.ZodTypeAny, {
|
|
554
|
-
limit: number;
|
|
555
574
|
page: number;
|
|
575
|
+
limit: number;
|
|
556
576
|
totalCount: number;
|
|
557
577
|
totalPages: number;
|
|
558
578
|
cases: {
|
|
559
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
579
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
560
580
|
id: string;
|
|
561
581
|
createdAt: string;
|
|
562
582
|
conflicts: string[];
|
|
563
583
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
564
584
|
curatedWorker: {
|
|
565
585
|
id: string;
|
|
566
|
-
firstName: string;
|
|
567
586
|
lastName: string | null;
|
|
587
|
+
firstName: string;
|
|
568
588
|
} | null;
|
|
569
589
|
confidence: number | null;
|
|
570
590
|
workers: {
|
|
571
591
|
id: string;
|
|
572
|
-
firstName: string;
|
|
573
|
-
lastName: string | null;
|
|
574
592
|
agentId: string | null;
|
|
593
|
+
lastName: string | null;
|
|
594
|
+
firstName: string;
|
|
575
595
|
agentName: string | null;
|
|
576
596
|
}[];
|
|
577
597
|
revision: number;
|
|
@@ -583,27 +603,27 @@ export declare const WorkerIdentityCaseListResponseSchema: z.ZodObject<{
|
|
|
583
603
|
} | null;
|
|
584
604
|
}[];
|
|
585
605
|
}, {
|
|
586
|
-
limit: number;
|
|
587
606
|
page: number;
|
|
607
|
+
limit: number;
|
|
588
608
|
totalCount: number;
|
|
589
609
|
totalPages: number;
|
|
590
610
|
cases: {
|
|
591
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
611
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
592
612
|
id: string;
|
|
593
613
|
createdAt: string;
|
|
594
614
|
conflicts: string[];
|
|
595
615
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
596
616
|
curatedWorker: {
|
|
597
617
|
id: string;
|
|
598
|
-
firstName: string;
|
|
599
618
|
lastName: string | null;
|
|
619
|
+
firstName: string;
|
|
600
620
|
} | null;
|
|
601
621
|
confidence: number | null;
|
|
602
622
|
workers: {
|
|
603
623
|
id: string;
|
|
604
|
-
firstName: string;
|
|
605
|
-
lastName: string | null;
|
|
606
624
|
agentId: string | null;
|
|
625
|
+
lastName: string | null;
|
|
626
|
+
firstName: string;
|
|
607
627
|
agentName: string | null;
|
|
608
628
|
}[];
|
|
609
629
|
revision: number;
|
|
@@ -884,9 +904,9 @@ export declare const WorkerIdentitySuggestedMergeValuesSchema: z.ZodObject<{
|
|
|
884
904
|
tradeIds: z.ZodArray<z.ZodString, "many">;
|
|
885
905
|
mainTradeId: z.ZodNullable<z.ZodString>;
|
|
886
906
|
}, "strip", z.ZodTypeAny, {
|
|
887
|
-
firstName: string | null;
|
|
888
|
-
lastName: string | null;
|
|
889
907
|
email: string | null;
|
|
908
|
+
lastName: string | null;
|
|
909
|
+
firstName: string | null;
|
|
890
910
|
phoneNumbers: string[];
|
|
891
911
|
englishLevel: string | null;
|
|
892
912
|
nationality: string | null;
|
|
@@ -900,9 +920,9 @@ export declare const WorkerIdentitySuggestedMergeValuesSchema: z.ZodObject<{
|
|
|
900
920
|
tradeIds: string[];
|
|
901
921
|
mainTradeId: string | null;
|
|
902
922
|
}, {
|
|
903
|
-
firstName: string | null;
|
|
904
|
-
lastName: string | null;
|
|
905
923
|
email: string | null;
|
|
924
|
+
lastName: string | null;
|
|
925
|
+
firstName: string | null;
|
|
906
926
|
phoneNumbers: string[];
|
|
907
927
|
englishLevel: string | null;
|
|
908
928
|
nationality: string | null;
|
|
@@ -965,18 +985,48 @@ export declare const RejectIdentityCaseSchema: z.ZodObject<{
|
|
|
965
985
|
reason?: string | undefined;
|
|
966
986
|
acknowledgeHardEvidence?: boolean | undefined;
|
|
967
987
|
}>;
|
|
988
|
+
/** Reviewer-edited curated-worker name fields, applied alongside a
|
|
989
|
+
* KEEP_CURRENT or MOVE link-audit resolution. */
|
|
990
|
+
export declare const CuratedRenameFieldsSchema: z.ZodObject<{
|
|
991
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
992
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
993
|
+
}, "strip", z.ZodTypeAny, {
|
|
994
|
+
lastName?: string | null | undefined;
|
|
995
|
+
firstName?: string | undefined;
|
|
996
|
+
}, {
|
|
997
|
+
lastName?: string | null | undefined;
|
|
998
|
+
firstName?: string | undefined;
|
|
999
|
+
}>;
|
|
968
1000
|
export declare const ResolveCuratedLinkAuditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
969
1001
|
action: z.ZodLiteral<"KEEP_CURRENT">;
|
|
970
1002
|
expectedRevision: z.ZodNumber;
|
|
971
1003
|
reason: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
curatedFields: z.ZodOptional<z.ZodObject<{
|
|
1005
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1007
|
+
}, "strip", z.ZodTypeAny, {
|
|
1008
|
+
lastName?: string | null | undefined;
|
|
1009
|
+
firstName?: string | undefined;
|
|
1010
|
+
}, {
|
|
1011
|
+
lastName?: string | null | undefined;
|
|
1012
|
+
firstName?: string | undefined;
|
|
1013
|
+
}>>;
|
|
972
1014
|
}, "strip", z.ZodTypeAny, {
|
|
973
1015
|
action: "KEEP_CURRENT";
|
|
974
1016
|
expectedRevision: number;
|
|
975
1017
|
reason?: string | undefined;
|
|
1018
|
+
curatedFields?: {
|
|
1019
|
+
lastName?: string | null | undefined;
|
|
1020
|
+
firstName?: string | undefined;
|
|
1021
|
+
} | undefined;
|
|
976
1022
|
}, {
|
|
977
1023
|
action: "KEEP_CURRENT";
|
|
978
1024
|
expectedRevision: number;
|
|
979
1025
|
reason?: string | undefined;
|
|
1026
|
+
curatedFields?: {
|
|
1027
|
+
lastName?: string | null | undefined;
|
|
1028
|
+
firstName?: string | undefined;
|
|
1029
|
+
} | undefined;
|
|
980
1030
|
}>, z.ZodObject<{
|
|
981
1031
|
action: z.ZodLiteral<"UNLINK_REPROCESS">;
|
|
982
1032
|
expectedRevision: z.ZodNumber;
|
|
@@ -994,16 +1044,34 @@ export declare const ResolveCuratedLinkAuditSchema: z.ZodDiscriminatedUnion<"act
|
|
|
994
1044
|
expectedRevision: z.ZodNumber;
|
|
995
1045
|
curatedWorkerId: z.ZodString;
|
|
996
1046
|
reason: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
curatedFields: z.ZodOptional<z.ZodObject<{
|
|
1048
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1049
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
lastName?: string | null | undefined;
|
|
1052
|
+
firstName?: string | undefined;
|
|
1053
|
+
}, {
|
|
1054
|
+
lastName?: string | null | undefined;
|
|
1055
|
+
firstName?: string | undefined;
|
|
1056
|
+
}>>;
|
|
997
1057
|
}, "strip", z.ZodTypeAny, {
|
|
998
1058
|
curatedWorkerId: string;
|
|
999
1059
|
action: "MOVE";
|
|
1000
1060
|
expectedRevision: number;
|
|
1001
1061
|
reason?: string | undefined;
|
|
1062
|
+
curatedFields?: {
|
|
1063
|
+
lastName?: string | null | undefined;
|
|
1064
|
+
firstName?: string | undefined;
|
|
1065
|
+
} | undefined;
|
|
1002
1066
|
}, {
|
|
1003
1067
|
curatedWorkerId: string;
|
|
1004
1068
|
action: "MOVE";
|
|
1005
1069
|
expectedRevision: number;
|
|
1006
1070
|
reason?: string | undefined;
|
|
1071
|
+
curatedFields?: {
|
|
1072
|
+
lastName?: string | null | undefined;
|
|
1073
|
+
firstName?: string | undefined;
|
|
1074
|
+
} | undefined;
|
|
1007
1075
|
}>, z.ZodObject<{
|
|
1008
1076
|
action: z.ZodLiteral<"CREATE_NEW">;
|
|
1009
1077
|
expectedRevision: z.ZodNumber;
|
|
@@ -1023,12 +1091,12 @@ export declare const CuratedLinkAuditReprocessingSchema: z.ZodObject<{
|
|
|
1023
1091
|
casesCreated: z.ZodNumber;
|
|
1024
1092
|
message: z.ZodNullable<z.ZodString>;
|
|
1025
1093
|
}, "strip", z.ZodTypeAny, {
|
|
1026
|
-
message: string | null;
|
|
1027
1094
|
status: "COMPLETED" | "FAILED";
|
|
1095
|
+
message: string | null;
|
|
1028
1096
|
casesCreated: number;
|
|
1029
1097
|
}, {
|
|
1030
|
-
message: string | null;
|
|
1031
1098
|
status: "COMPLETED" | "FAILED";
|
|
1099
|
+
message: string | null;
|
|
1032
1100
|
casesCreated: number;
|
|
1033
1101
|
}>;
|
|
1034
1102
|
export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
@@ -1044,12 +1112,12 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1044
1112
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1045
1113
|
}, "strip", z.ZodTypeAny, {
|
|
1046
1114
|
id: string;
|
|
1047
|
-
firstName: string;
|
|
1048
1115
|
lastName: string | null;
|
|
1116
|
+
firstName: string;
|
|
1049
1117
|
}, {
|
|
1050
1118
|
id: string;
|
|
1051
|
-
firstName: string;
|
|
1052
1119
|
lastName: string | null;
|
|
1120
|
+
firstName: string;
|
|
1053
1121
|
}>>;
|
|
1054
1122
|
workers: z.ZodArray<z.ZodObject<{
|
|
1055
1123
|
id: z.ZodString;
|
|
@@ -1059,15 +1127,15 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1059
1127
|
agentName: z.ZodNullable<z.ZodString>;
|
|
1060
1128
|
}, "strip", z.ZodTypeAny, {
|
|
1061
1129
|
id: string;
|
|
1062
|
-
firstName: string;
|
|
1063
|
-
lastName: string | null;
|
|
1064
1130
|
agentId: string | null;
|
|
1131
|
+
lastName: string | null;
|
|
1132
|
+
firstName: string;
|
|
1065
1133
|
agentName: string | null;
|
|
1066
1134
|
}, {
|
|
1067
1135
|
id: string;
|
|
1068
|
-
firstName: string;
|
|
1069
|
-
lastName: string | null;
|
|
1070
1136
|
agentId: string | null;
|
|
1137
|
+
lastName: string | null;
|
|
1138
|
+
firstName: string;
|
|
1071
1139
|
agentName: string | null;
|
|
1072
1140
|
}>, "many">;
|
|
1073
1141
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -1125,12 +1193,12 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1125
1193
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1126
1194
|
}, "strip", z.ZodTypeAny, {
|
|
1127
1195
|
id: string;
|
|
1128
|
-
firstName: string;
|
|
1129
1196
|
lastName: string | null;
|
|
1197
|
+
firstName: string;
|
|
1130
1198
|
}, {
|
|
1131
1199
|
id: string;
|
|
1132
|
-
firstName: string;
|
|
1133
1200
|
lastName: string | null;
|
|
1201
|
+
firstName: string;
|
|
1134
1202
|
}>, "many">;
|
|
1135
1203
|
pendingDocuments: z.ZodObject<{
|
|
1136
1204
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -1150,28 +1218,40 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1150
1218
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
1151
1219
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
1152
1220
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
1221
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
1222
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
1223
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
1224
|
+
firstName: z.ZodString;
|
|
1225
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1226
|
+
}, "strip", z.ZodTypeAny, {
|
|
1227
|
+
lastName: string | null;
|
|
1228
|
+
firstName: string;
|
|
1229
|
+
}, {
|
|
1230
|
+
lastName: string | null;
|
|
1231
|
+
firstName: string;
|
|
1232
|
+
}>>;
|
|
1153
1233
|
}, "strip", z.ZodTypeAny, {
|
|
1154
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1234
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1155
1235
|
id: string;
|
|
1156
1236
|
createdAt: string;
|
|
1157
1237
|
conflicts: string[];
|
|
1158
1238
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1159
1239
|
curatedWorker: {
|
|
1160
1240
|
id: string;
|
|
1161
|
-
firstName: string;
|
|
1162
1241
|
lastName: string | null;
|
|
1242
|
+
firstName: string;
|
|
1163
1243
|
} | null;
|
|
1164
1244
|
reviewedAt: string | null;
|
|
1165
1245
|
confidence: number | null;
|
|
1166
1246
|
workers: {
|
|
1167
1247
|
id: string;
|
|
1168
|
-
firstName: string;
|
|
1169
|
-
lastName: string | null;
|
|
1170
1248
|
agentId: string | null;
|
|
1249
|
+
lastName: string | null;
|
|
1250
|
+
firstName: string;
|
|
1171
1251
|
agentName: string | null;
|
|
1172
1252
|
}[];
|
|
1173
|
-
appliedCuratedWorkerId: string | null;
|
|
1174
1253
|
revision: number;
|
|
1254
|
+
appliedCuratedWorkerId: string | null;
|
|
1175
1255
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1176
1256
|
hasHardEvidence: boolean;
|
|
1177
1257
|
linkAudit: {
|
|
@@ -1191,8 +1271,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1191
1271
|
}[];
|
|
1192
1272
|
curatedSubjects: {
|
|
1193
1273
|
id: string;
|
|
1194
|
-
firstName: string;
|
|
1195
1274
|
lastName: string | null;
|
|
1275
|
+
firstName: string;
|
|
1196
1276
|
}[];
|
|
1197
1277
|
pendingDocuments: {
|
|
1198
1278
|
notExtracted: number;
|
|
@@ -1200,28 +1280,32 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1200
1280
|
};
|
|
1201
1281
|
absorbedIntoCaseId: string | null;
|
|
1202
1282
|
obsoleteReason: string | null;
|
|
1283
|
+
suggestedCuratedRename: {
|
|
1284
|
+
lastName: string | null;
|
|
1285
|
+
firstName: string;
|
|
1286
|
+
} | null;
|
|
1203
1287
|
}, {
|
|
1204
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1288
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1205
1289
|
id: string;
|
|
1206
1290
|
createdAt: string;
|
|
1207
1291
|
conflicts: string[];
|
|
1208
1292
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1209
1293
|
curatedWorker: {
|
|
1210
1294
|
id: string;
|
|
1211
|
-
firstName: string;
|
|
1212
1295
|
lastName: string | null;
|
|
1296
|
+
firstName: string;
|
|
1213
1297
|
} | null;
|
|
1214
1298
|
reviewedAt: string | null;
|
|
1215
1299
|
confidence: number | null;
|
|
1216
1300
|
workers: {
|
|
1217
1301
|
id: string;
|
|
1218
|
-
firstName: string;
|
|
1219
|
-
lastName: string | null;
|
|
1220
1302
|
agentId: string | null;
|
|
1303
|
+
lastName: string | null;
|
|
1304
|
+
firstName: string;
|
|
1221
1305
|
agentName: string | null;
|
|
1222
1306
|
}[];
|
|
1223
|
-
appliedCuratedWorkerId: string | null;
|
|
1224
1307
|
revision: number;
|
|
1308
|
+
appliedCuratedWorkerId: string | null;
|
|
1225
1309
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1226
1310
|
hasHardEvidence: boolean;
|
|
1227
1311
|
linkAudit: {
|
|
@@ -1241,8 +1325,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1241
1325
|
}[];
|
|
1242
1326
|
curatedSubjects: {
|
|
1243
1327
|
id: string;
|
|
1244
|
-
firstName: string;
|
|
1245
1328
|
lastName: string | null;
|
|
1329
|
+
firstName: string;
|
|
1246
1330
|
}[];
|
|
1247
1331
|
pendingDocuments: {
|
|
1248
1332
|
notExtracted: number;
|
|
@@ -1250,43 +1334,47 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1250
1334
|
};
|
|
1251
1335
|
absorbedIntoCaseId: string | null;
|
|
1252
1336
|
obsoleteReason: string | null;
|
|
1337
|
+
suggestedCuratedRename: {
|
|
1338
|
+
lastName: string | null;
|
|
1339
|
+
firstName: string;
|
|
1340
|
+
} | null;
|
|
1253
1341
|
}>;
|
|
1254
1342
|
reprocessing: z.ZodNullable<z.ZodObject<{
|
|
1255
1343
|
status: z.ZodEnum<["COMPLETED", "FAILED"]>;
|
|
1256
1344
|
casesCreated: z.ZodNumber;
|
|
1257
1345
|
message: z.ZodNullable<z.ZodString>;
|
|
1258
1346
|
}, "strip", z.ZodTypeAny, {
|
|
1259
|
-
message: string | null;
|
|
1260
1347
|
status: "COMPLETED" | "FAILED";
|
|
1348
|
+
message: string | null;
|
|
1261
1349
|
casesCreated: number;
|
|
1262
1350
|
}, {
|
|
1263
|
-
message: string | null;
|
|
1264
1351
|
status: "COMPLETED" | "FAILED";
|
|
1352
|
+
message: string | null;
|
|
1265
1353
|
casesCreated: number;
|
|
1266
1354
|
}>>;
|
|
1267
1355
|
}, "strip", z.ZodTypeAny, {
|
|
1268
1356
|
case: {
|
|
1269
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1357
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1270
1358
|
id: string;
|
|
1271
1359
|
createdAt: string;
|
|
1272
1360
|
conflicts: string[];
|
|
1273
1361
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1274
1362
|
curatedWorker: {
|
|
1275
1363
|
id: string;
|
|
1276
|
-
firstName: string;
|
|
1277
1364
|
lastName: string | null;
|
|
1365
|
+
firstName: string;
|
|
1278
1366
|
} | null;
|
|
1279
1367
|
reviewedAt: string | null;
|
|
1280
1368
|
confidence: number | null;
|
|
1281
1369
|
workers: {
|
|
1282
1370
|
id: string;
|
|
1283
|
-
firstName: string;
|
|
1284
|
-
lastName: string | null;
|
|
1285
1371
|
agentId: string | null;
|
|
1372
|
+
lastName: string | null;
|
|
1373
|
+
firstName: string;
|
|
1286
1374
|
agentName: string | null;
|
|
1287
1375
|
}[];
|
|
1288
|
-
appliedCuratedWorkerId: string | null;
|
|
1289
1376
|
revision: number;
|
|
1377
|
+
appliedCuratedWorkerId: string | null;
|
|
1290
1378
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1291
1379
|
hasHardEvidence: boolean;
|
|
1292
1380
|
linkAudit: {
|
|
@@ -1306,8 +1394,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1306
1394
|
}[];
|
|
1307
1395
|
curatedSubjects: {
|
|
1308
1396
|
id: string;
|
|
1309
|
-
firstName: string;
|
|
1310
1397
|
lastName: string | null;
|
|
1398
|
+
firstName: string;
|
|
1311
1399
|
}[];
|
|
1312
1400
|
pendingDocuments: {
|
|
1313
1401
|
notExtracted: number;
|
|
@@ -1315,35 +1403,39 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1315
1403
|
};
|
|
1316
1404
|
absorbedIntoCaseId: string | null;
|
|
1317
1405
|
obsoleteReason: string | null;
|
|
1406
|
+
suggestedCuratedRename: {
|
|
1407
|
+
lastName: string | null;
|
|
1408
|
+
firstName: string;
|
|
1409
|
+
} | null;
|
|
1318
1410
|
};
|
|
1319
1411
|
reprocessing: {
|
|
1320
|
-
message: string | null;
|
|
1321
1412
|
status: "COMPLETED" | "FAILED";
|
|
1413
|
+
message: string | null;
|
|
1322
1414
|
casesCreated: number;
|
|
1323
1415
|
} | null;
|
|
1324
1416
|
}, {
|
|
1325
1417
|
case: {
|
|
1326
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1418
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1327
1419
|
id: string;
|
|
1328
1420
|
createdAt: string;
|
|
1329
1421
|
conflicts: string[];
|
|
1330
1422
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1331
1423
|
curatedWorker: {
|
|
1332
1424
|
id: string;
|
|
1333
|
-
firstName: string;
|
|
1334
1425
|
lastName: string | null;
|
|
1426
|
+
firstName: string;
|
|
1335
1427
|
} | null;
|
|
1336
1428
|
reviewedAt: string | null;
|
|
1337
1429
|
confidence: number | null;
|
|
1338
1430
|
workers: {
|
|
1339
1431
|
id: string;
|
|
1340
|
-
firstName: string;
|
|
1341
|
-
lastName: string | null;
|
|
1342
1432
|
agentId: string | null;
|
|
1433
|
+
lastName: string | null;
|
|
1434
|
+
firstName: string;
|
|
1343
1435
|
agentName: string | null;
|
|
1344
1436
|
}[];
|
|
1345
|
-
appliedCuratedWorkerId: string | null;
|
|
1346
1437
|
revision: number;
|
|
1438
|
+
appliedCuratedWorkerId: string | null;
|
|
1347
1439
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
1348
1440
|
hasHardEvidence: boolean;
|
|
1349
1441
|
linkAudit: {
|
|
@@ -1363,8 +1455,8 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1363
1455
|
}[];
|
|
1364
1456
|
curatedSubjects: {
|
|
1365
1457
|
id: string;
|
|
1366
|
-
firstName: string;
|
|
1367
1458
|
lastName: string | null;
|
|
1459
|
+
firstName: string;
|
|
1368
1460
|
}[];
|
|
1369
1461
|
pendingDocuments: {
|
|
1370
1462
|
notExtracted: number;
|
|
@@ -1372,10 +1464,14 @@ export declare const ResolveCuratedLinkAuditResponseSchema: z.ZodObject<{
|
|
|
1372
1464
|
};
|
|
1373
1465
|
absorbedIntoCaseId: string | null;
|
|
1374
1466
|
obsoleteReason: string | null;
|
|
1467
|
+
suggestedCuratedRename: {
|
|
1468
|
+
lastName: string | null;
|
|
1469
|
+
firstName: string;
|
|
1470
|
+
} | null;
|
|
1375
1471
|
};
|
|
1376
1472
|
reprocessing: {
|
|
1377
|
-
message: string | null;
|
|
1378
1473
|
status: "COMPLETED" | "FAILED";
|
|
1474
|
+
message: string | null;
|
|
1379
1475
|
casesCreated: number;
|
|
1380
1476
|
} | null;
|
|
1381
1477
|
}>;
|
|
@@ -1393,23 +1489,23 @@ export declare const workerIdentityCasesContract: {
|
|
|
1393
1489
|
targetType: z.ZodOptional<z.ZodEnum<["EXISTING", "NEW"]>>;
|
|
1394
1490
|
search: z.ZodOptional<z.ZodString>;
|
|
1395
1491
|
}, "strip", z.ZodTypeAny, {
|
|
1396
|
-
limit: number;
|
|
1397
1492
|
page: number;
|
|
1493
|
+
limit: number;
|
|
1398
1494
|
queue: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS";
|
|
1399
|
-
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1495
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE" | undefined;
|
|
1400
1496
|
search?: string | undefined;
|
|
1401
1497
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
1402
|
-
targetType?: "NEW" | "EXISTING" | undefined;
|
|
1403
1498
|
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1499
|
+
targetType?: "NEW" | "EXISTING" | undefined;
|
|
1404
1500
|
}, {
|
|
1405
|
-
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1406
|
-
search?: string | undefined;
|
|
1407
|
-
limit?: number | undefined;
|
|
1501
|
+
status?: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE" | undefined;
|
|
1408
1502
|
page?: number | undefined;
|
|
1503
|
+
limit?: number | undefined;
|
|
1504
|
+
search?: string | undefined;
|
|
1409
1505
|
kind?: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT" | undefined;
|
|
1506
|
+
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1410
1507
|
targetType?: "NEW" | "EXISTING" | undefined;
|
|
1411
1508
|
queue?: "RESOLVED" | "NEEDS_REVIEW" | "CONFLICTS" | undefined;
|
|
1412
|
-
evidence?: "AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME" | undefined;
|
|
1413
1509
|
}>;
|
|
1414
1510
|
metadata: {
|
|
1415
1511
|
tags: string[];
|
|
@@ -1534,12 +1630,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
1534
1630
|
lastName: z.ZodNullable<z.ZodString>;
|
|
1535
1631
|
}, "strip", z.ZodTypeAny, {
|
|
1536
1632
|
id: string;
|
|
1537
|
-
firstName: string;
|
|
1538
1633
|
lastName: string | null;
|
|
1634
|
+
firstName: string;
|
|
1539
1635
|
}, {
|
|
1540
1636
|
id: string;
|
|
1541
|
-
firstName: string;
|
|
1542
1637
|
lastName: string | null;
|
|
1638
|
+
firstName: string;
|
|
1543
1639
|
}>>;
|
|
1544
1640
|
workers: z.ZodArray<z.ZodObject<{
|
|
1545
1641
|
id: z.ZodString;
|
|
@@ -1549,15 +1645,15 @@ export declare const workerIdentityCasesContract: {
|
|
|
1549
1645
|
agentName: z.ZodNullable<z.ZodString>;
|
|
1550
1646
|
}, "strip", z.ZodTypeAny, {
|
|
1551
1647
|
id: string;
|
|
1552
|
-
firstName: string;
|
|
1553
|
-
lastName: string | null;
|
|
1554
1648
|
agentId: string | null;
|
|
1649
|
+
lastName: string | null;
|
|
1650
|
+
firstName: string;
|
|
1555
1651
|
agentName: string | null;
|
|
1556
1652
|
}, {
|
|
1557
1653
|
id: string;
|
|
1558
|
-
firstName: string;
|
|
1559
|
-
lastName: string | null;
|
|
1560
1654
|
agentId: string | null;
|
|
1655
|
+
lastName: string | null;
|
|
1656
|
+
firstName: string;
|
|
1561
1657
|
agentName: string | null;
|
|
1562
1658
|
}>, "many">;
|
|
1563
1659
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -1575,22 +1671,22 @@ export declare const workerIdentityCasesContract: {
|
|
|
1575
1671
|
}>>;
|
|
1576
1672
|
createdAt: z.ZodString;
|
|
1577
1673
|
}, "strip", z.ZodTypeAny, {
|
|
1578
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1674
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1579
1675
|
id: string;
|
|
1580
1676
|
createdAt: string;
|
|
1581
1677
|
conflicts: string[];
|
|
1582
1678
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1583
1679
|
curatedWorker: {
|
|
1584
1680
|
id: string;
|
|
1585
|
-
firstName: string;
|
|
1586
1681
|
lastName: string | null;
|
|
1682
|
+
firstName: string;
|
|
1587
1683
|
} | null;
|
|
1588
1684
|
confidence: number | null;
|
|
1589
1685
|
workers: {
|
|
1590
1686
|
id: string;
|
|
1591
|
-
firstName: string;
|
|
1592
|
-
lastName: string | null;
|
|
1593
1687
|
agentId: string | null;
|
|
1688
|
+
lastName: string | null;
|
|
1689
|
+
firstName: string;
|
|
1594
1690
|
agentName: string | null;
|
|
1595
1691
|
}[];
|
|
1596
1692
|
revision: number;
|
|
@@ -1601,22 +1697,22 @@ export declare const workerIdentityCasesContract: {
|
|
|
1601
1697
|
reasons: ("NAME_MISMATCH" | "NINO_CONFLICT" | "DOB_CONFLICT" | "NO_SUPPORTING_EVIDENCE" | "WEAK_PHONE_ONLY")[];
|
|
1602
1698
|
} | null;
|
|
1603
1699
|
}, {
|
|
1604
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1700
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1605
1701
|
id: string;
|
|
1606
1702
|
createdAt: string;
|
|
1607
1703
|
conflicts: string[];
|
|
1608
1704
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1609
1705
|
curatedWorker: {
|
|
1610
1706
|
id: string;
|
|
1611
|
-
firstName: string;
|
|
1612
1707
|
lastName: string | null;
|
|
1708
|
+
firstName: string;
|
|
1613
1709
|
} | null;
|
|
1614
1710
|
confidence: number | null;
|
|
1615
1711
|
workers: {
|
|
1616
1712
|
id: string;
|
|
1617
|
-
firstName: string;
|
|
1618
|
-
lastName: string | null;
|
|
1619
1713
|
agentId: string | null;
|
|
1714
|
+
lastName: string | null;
|
|
1715
|
+
firstName: string;
|
|
1620
1716
|
agentName: string | null;
|
|
1621
1717
|
}[];
|
|
1622
1718
|
revision: number;
|
|
@@ -1632,27 +1728,27 @@ export declare const workerIdentityCasesContract: {
|
|
|
1632
1728
|
page: z.ZodNumber;
|
|
1633
1729
|
limit: z.ZodNumber;
|
|
1634
1730
|
}, "strip", z.ZodTypeAny, {
|
|
1635
|
-
limit: number;
|
|
1636
1731
|
page: number;
|
|
1732
|
+
limit: number;
|
|
1637
1733
|
totalCount: number;
|
|
1638
1734
|
totalPages: number;
|
|
1639
1735
|
cases: {
|
|
1640
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1736
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1641
1737
|
id: string;
|
|
1642
1738
|
createdAt: string;
|
|
1643
1739
|
conflicts: string[];
|
|
1644
1740
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1645
1741
|
curatedWorker: {
|
|
1646
1742
|
id: string;
|
|
1647
|
-
firstName: string;
|
|
1648
1743
|
lastName: string | null;
|
|
1744
|
+
firstName: string;
|
|
1649
1745
|
} | null;
|
|
1650
1746
|
confidence: number | null;
|
|
1651
1747
|
workers: {
|
|
1652
1748
|
id: string;
|
|
1653
|
-
firstName: string;
|
|
1654
|
-
lastName: string | null;
|
|
1655
1749
|
agentId: string | null;
|
|
1750
|
+
lastName: string | null;
|
|
1751
|
+
firstName: string;
|
|
1656
1752
|
agentName: string | null;
|
|
1657
1753
|
}[];
|
|
1658
1754
|
revision: number;
|
|
@@ -1664,27 +1760,27 @@ export declare const workerIdentityCasesContract: {
|
|
|
1664
1760
|
} | null;
|
|
1665
1761
|
}[];
|
|
1666
1762
|
}, {
|
|
1667
|
-
limit: number;
|
|
1668
1763
|
page: number;
|
|
1764
|
+
limit: number;
|
|
1669
1765
|
totalCount: number;
|
|
1670
1766
|
totalPages: number;
|
|
1671
1767
|
cases: {
|
|
1672
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
1768
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
1673
1769
|
id: string;
|
|
1674
1770
|
createdAt: string;
|
|
1675
1771
|
conflicts: string[];
|
|
1676
1772
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
1677
1773
|
curatedWorker: {
|
|
1678
1774
|
id: string;
|
|
1679
|
-
firstName: string;
|
|
1680
1775
|
lastName: string | null;
|
|
1776
|
+
firstName: string;
|
|
1681
1777
|
} | null;
|
|
1682
1778
|
confidence: number | null;
|
|
1683
1779
|
workers: {
|
|
1684
1780
|
id: string;
|
|
1685
|
-
firstName: string;
|
|
1686
|
-
lastName: string | null;
|
|
1687
1781
|
agentId: string | null;
|
|
1782
|
+
lastName: string | null;
|
|
1783
|
+
firstName: string;
|
|
1688
1784
|
agentName: string | null;
|
|
1689
1785
|
}[];
|
|
1690
1786
|
revision: number;
|
|
@@ -2312,12 +2408,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
2312
2408
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2313
2409
|
}, "strip", z.ZodTypeAny, {
|
|
2314
2410
|
id: string;
|
|
2315
|
-
firstName: string;
|
|
2316
2411
|
lastName: string | null;
|
|
2412
|
+
firstName: string;
|
|
2317
2413
|
}, {
|
|
2318
2414
|
id: string;
|
|
2319
|
-
firstName: string;
|
|
2320
2415
|
lastName: string | null;
|
|
2416
|
+
firstName: string;
|
|
2321
2417
|
}>>;
|
|
2322
2418
|
workers: z.ZodArray<z.ZodObject<{
|
|
2323
2419
|
id: z.ZodString;
|
|
@@ -2327,15 +2423,15 @@ export declare const workerIdentityCasesContract: {
|
|
|
2327
2423
|
agentName: z.ZodNullable<z.ZodString>;
|
|
2328
2424
|
}, "strip", z.ZodTypeAny, {
|
|
2329
2425
|
id: string;
|
|
2330
|
-
firstName: string;
|
|
2331
|
-
lastName: string | null;
|
|
2332
2426
|
agentId: string | null;
|
|
2427
|
+
lastName: string | null;
|
|
2428
|
+
firstName: string;
|
|
2333
2429
|
agentName: string | null;
|
|
2334
2430
|
}, {
|
|
2335
2431
|
id: string;
|
|
2336
|
-
firstName: string;
|
|
2337
|
-
lastName: string | null;
|
|
2338
2432
|
agentId: string | null;
|
|
2433
|
+
lastName: string | null;
|
|
2434
|
+
firstName: string;
|
|
2339
2435
|
agentName: string | null;
|
|
2340
2436
|
}>, "many">;
|
|
2341
2437
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -2393,12 +2489,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
2393
2489
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2394
2490
|
}, "strip", z.ZodTypeAny, {
|
|
2395
2491
|
id: string;
|
|
2396
|
-
firstName: string;
|
|
2397
2492
|
lastName: string | null;
|
|
2493
|
+
firstName: string;
|
|
2398
2494
|
}, {
|
|
2399
2495
|
id: string;
|
|
2400
|
-
firstName: string;
|
|
2401
2496
|
lastName: string | null;
|
|
2497
|
+
firstName: string;
|
|
2402
2498
|
}>, "many">;
|
|
2403
2499
|
pendingDocuments: z.ZodObject<{
|
|
2404
2500
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -2418,28 +2514,40 @@ export declare const workerIdentityCasesContract: {
|
|
|
2418
2514
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
2419
2515
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
2420
2516
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
2517
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
2518
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
2519
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
2520
|
+
firstName: z.ZodString;
|
|
2521
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
2522
|
+
}, "strip", z.ZodTypeAny, {
|
|
2523
|
+
lastName: string | null;
|
|
2524
|
+
firstName: string;
|
|
2525
|
+
}, {
|
|
2526
|
+
lastName: string | null;
|
|
2527
|
+
firstName: string;
|
|
2528
|
+
}>>;
|
|
2421
2529
|
}, "strip", z.ZodTypeAny, {
|
|
2422
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
2530
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
2423
2531
|
id: string;
|
|
2424
2532
|
createdAt: string;
|
|
2425
2533
|
conflicts: string[];
|
|
2426
2534
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2427
2535
|
curatedWorker: {
|
|
2428
2536
|
id: string;
|
|
2429
|
-
firstName: string;
|
|
2430
2537
|
lastName: string | null;
|
|
2538
|
+
firstName: string;
|
|
2431
2539
|
} | null;
|
|
2432
2540
|
reviewedAt: string | null;
|
|
2433
2541
|
confidence: number | null;
|
|
2434
2542
|
workers: {
|
|
2435
2543
|
id: string;
|
|
2436
|
-
firstName: string;
|
|
2437
|
-
lastName: string | null;
|
|
2438
2544
|
agentId: string | null;
|
|
2545
|
+
lastName: string | null;
|
|
2546
|
+
firstName: string;
|
|
2439
2547
|
agentName: string | null;
|
|
2440
2548
|
}[];
|
|
2441
|
-
appliedCuratedWorkerId: string | null;
|
|
2442
2549
|
revision: number;
|
|
2550
|
+
appliedCuratedWorkerId: string | null;
|
|
2443
2551
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2444
2552
|
hasHardEvidence: boolean;
|
|
2445
2553
|
linkAudit: {
|
|
@@ -2459,8 +2567,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2459
2567
|
}[];
|
|
2460
2568
|
curatedSubjects: {
|
|
2461
2569
|
id: string;
|
|
2462
|
-
firstName: string;
|
|
2463
2570
|
lastName: string | null;
|
|
2571
|
+
firstName: string;
|
|
2464
2572
|
}[];
|
|
2465
2573
|
pendingDocuments: {
|
|
2466
2574
|
notExtracted: number;
|
|
@@ -2468,28 +2576,32 @@ export declare const workerIdentityCasesContract: {
|
|
|
2468
2576
|
};
|
|
2469
2577
|
absorbedIntoCaseId: string | null;
|
|
2470
2578
|
obsoleteReason: string | null;
|
|
2579
|
+
suggestedCuratedRename: {
|
|
2580
|
+
lastName: string | null;
|
|
2581
|
+
firstName: string;
|
|
2582
|
+
} | null;
|
|
2471
2583
|
}, {
|
|
2472
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
2584
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
2473
2585
|
id: string;
|
|
2474
2586
|
createdAt: string;
|
|
2475
2587
|
conflicts: string[];
|
|
2476
2588
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2477
2589
|
curatedWorker: {
|
|
2478
2590
|
id: string;
|
|
2479
|
-
firstName: string;
|
|
2480
2591
|
lastName: string | null;
|
|
2592
|
+
firstName: string;
|
|
2481
2593
|
} | null;
|
|
2482
2594
|
reviewedAt: string | null;
|
|
2483
2595
|
confidence: number | null;
|
|
2484
2596
|
workers: {
|
|
2485
2597
|
id: string;
|
|
2486
|
-
firstName: string;
|
|
2487
|
-
lastName: string | null;
|
|
2488
2598
|
agentId: string | null;
|
|
2599
|
+
lastName: string | null;
|
|
2600
|
+
firstName: string;
|
|
2489
2601
|
agentName: string | null;
|
|
2490
2602
|
}[];
|
|
2491
|
-
appliedCuratedWorkerId: string | null;
|
|
2492
2603
|
revision: number;
|
|
2604
|
+
appliedCuratedWorkerId: string | null;
|
|
2493
2605
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2494
2606
|
hasHardEvidence: boolean;
|
|
2495
2607
|
linkAudit: {
|
|
@@ -2509,8 +2621,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2509
2621
|
}[];
|
|
2510
2622
|
curatedSubjects: {
|
|
2511
2623
|
id: string;
|
|
2512
|
-
firstName: string;
|
|
2513
2624
|
lastName: string | null;
|
|
2625
|
+
firstName: string;
|
|
2514
2626
|
}[];
|
|
2515
2627
|
pendingDocuments: {
|
|
2516
2628
|
notExtracted: number;
|
|
@@ -2518,6 +2630,10 @@ export declare const workerIdentityCasesContract: {
|
|
|
2518
2630
|
};
|
|
2519
2631
|
absorbedIntoCaseId: string | null;
|
|
2520
2632
|
obsoleteReason: string | null;
|
|
2633
|
+
suggestedCuratedRename: {
|
|
2634
|
+
lastName: string | null;
|
|
2635
|
+
firstName: string;
|
|
2636
|
+
} | null;
|
|
2521
2637
|
}>;
|
|
2522
2638
|
404: z.ZodObject<{
|
|
2523
2639
|
statusCode: z.ZodNumber;
|
|
@@ -2738,12 +2854,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
2738
2854
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2739
2855
|
}, "strip", z.ZodTypeAny, {
|
|
2740
2856
|
id: string;
|
|
2741
|
-
firstName: string;
|
|
2742
2857
|
lastName: string | null;
|
|
2858
|
+
firstName: string;
|
|
2743
2859
|
}, {
|
|
2744
2860
|
id: string;
|
|
2745
|
-
firstName: string;
|
|
2746
2861
|
lastName: string | null;
|
|
2862
|
+
firstName: string;
|
|
2747
2863
|
}>>;
|
|
2748
2864
|
workers: z.ZodArray<z.ZodObject<{
|
|
2749
2865
|
id: z.ZodString;
|
|
@@ -2753,15 +2869,15 @@ export declare const workerIdentityCasesContract: {
|
|
|
2753
2869
|
agentName: z.ZodNullable<z.ZodString>;
|
|
2754
2870
|
}, "strip", z.ZodTypeAny, {
|
|
2755
2871
|
id: string;
|
|
2756
|
-
firstName: string;
|
|
2757
|
-
lastName: string | null;
|
|
2758
2872
|
agentId: string | null;
|
|
2873
|
+
lastName: string | null;
|
|
2874
|
+
firstName: string;
|
|
2759
2875
|
agentName: string | null;
|
|
2760
2876
|
}, {
|
|
2761
2877
|
id: string;
|
|
2762
|
-
firstName: string;
|
|
2763
|
-
lastName: string | null;
|
|
2764
2878
|
agentId: string | null;
|
|
2879
|
+
lastName: string | null;
|
|
2880
|
+
firstName: string;
|
|
2765
2881
|
agentName: string | null;
|
|
2766
2882
|
}>, "many">;
|
|
2767
2883
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -2819,12 +2935,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
2819
2935
|
lastName: z.ZodNullable<z.ZodString>;
|
|
2820
2936
|
}, "strip", z.ZodTypeAny, {
|
|
2821
2937
|
id: string;
|
|
2822
|
-
firstName: string;
|
|
2823
2938
|
lastName: string | null;
|
|
2939
|
+
firstName: string;
|
|
2824
2940
|
}, {
|
|
2825
2941
|
id: string;
|
|
2826
|
-
firstName: string;
|
|
2827
2942
|
lastName: string | null;
|
|
2943
|
+
firstName: string;
|
|
2828
2944
|
}>, "many">;
|
|
2829
2945
|
pendingDocuments: z.ZodObject<{
|
|
2830
2946
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -2844,28 +2960,40 @@ export declare const workerIdentityCasesContract: {
|
|
|
2844
2960
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
2845
2961
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
2846
2962
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
2963
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
2964
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
2965
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
2966
|
+
firstName: z.ZodString;
|
|
2967
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
2968
|
+
}, "strip", z.ZodTypeAny, {
|
|
2969
|
+
lastName: string | null;
|
|
2970
|
+
firstName: string;
|
|
2971
|
+
}, {
|
|
2972
|
+
lastName: string | null;
|
|
2973
|
+
firstName: string;
|
|
2974
|
+
}>>;
|
|
2847
2975
|
}, "strip", z.ZodTypeAny, {
|
|
2848
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
2976
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
2849
2977
|
id: string;
|
|
2850
2978
|
createdAt: string;
|
|
2851
2979
|
conflicts: string[];
|
|
2852
2980
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2853
2981
|
curatedWorker: {
|
|
2854
2982
|
id: string;
|
|
2855
|
-
firstName: string;
|
|
2856
2983
|
lastName: string | null;
|
|
2984
|
+
firstName: string;
|
|
2857
2985
|
} | null;
|
|
2858
2986
|
reviewedAt: string | null;
|
|
2859
2987
|
confidence: number | null;
|
|
2860
2988
|
workers: {
|
|
2861
2989
|
id: string;
|
|
2862
|
-
firstName: string;
|
|
2863
|
-
lastName: string | null;
|
|
2864
2990
|
agentId: string | null;
|
|
2991
|
+
lastName: string | null;
|
|
2992
|
+
firstName: string;
|
|
2865
2993
|
agentName: string | null;
|
|
2866
2994
|
}[];
|
|
2867
|
-
appliedCuratedWorkerId: string | null;
|
|
2868
2995
|
revision: number;
|
|
2996
|
+
appliedCuratedWorkerId: string | null;
|
|
2869
2997
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2870
2998
|
hasHardEvidence: boolean;
|
|
2871
2999
|
linkAudit: {
|
|
@@ -2885,8 +3013,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2885
3013
|
}[];
|
|
2886
3014
|
curatedSubjects: {
|
|
2887
3015
|
id: string;
|
|
2888
|
-
firstName: string;
|
|
2889
3016
|
lastName: string | null;
|
|
3017
|
+
firstName: string;
|
|
2890
3018
|
}[];
|
|
2891
3019
|
pendingDocuments: {
|
|
2892
3020
|
notExtracted: number;
|
|
@@ -2894,28 +3022,32 @@ export declare const workerIdentityCasesContract: {
|
|
|
2894
3022
|
};
|
|
2895
3023
|
absorbedIntoCaseId: string | null;
|
|
2896
3024
|
obsoleteReason: string | null;
|
|
3025
|
+
suggestedCuratedRename: {
|
|
3026
|
+
lastName: string | null;
|
|
3027
|
+
firstName: string;
|
|
3028
|
+
} | null;
|
|
2897
3029
|
}, {
|
|
2898
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
3030
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
2899
3031
|
id: string;
|
|
2900
3032
|
createdAt: string;
|
|
2901
3033
|
conflicts: string[];
|
|
2902
3034
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
2903
3035
|
curatedWorker: {
|
|
2904
3036
|
id: string;
|
|
2905
|
-
firstName: string;
|
|
2906
3037
|
lastName: string | null;
|
|
3038
|
+
firstName: string;
|
|
2907
3039
|
} | null;
|
|
2908
3040
|
reviewedAt: string | null;
|
|
2909
3041
|
confidence: number | null;
|
|
2910
3042
|
workers: {
|
|
2911
3043
|
id: string;
|
|
2912
|
-
firstName: string;
|
|
2913
|
-
lastName: string | null;
|
|
2914
3044
|
agentId: string | null;
|
|
3045
|
+
lastName: string | null;
|
|
3046
|
+
firstName: string;
|
|
2915
3047
|
agentName: string | null;
|
|
2916
3048
|
}[];
|
|
2917
|
-
appliedCuratedWorkerId: string | null;
|
|
2918
3049
|
revision: number;
|
|
3050
|
+
appliedCuratedWorkerId: string | null;
|
|
2919
3051
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
2920
3052
|
hasHardEvidence: boolean;
|
|
2921
3053
|
linkAudit: {
|
|
@@ -2935,8 +3067,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
2935
3067
|
}[];
|
|
2936
3068
|
curatedSubjects: {
|
|
2937
3069
|
id: string;
|
|
2938
|
-
firstName: string;
|
|
2939
3070
|
lastName: string | null;
|
|
3071
|
+
firstName: string;
|
|
2940
3072
|
}[];
|
|
2941
3073
|
pendingDocuments: {
|
|
2942
3074
|
notExtracted: number;
|
|
@@ -2944,6 +3076,10 @@ export declare const workerIdentityCasesContract: {
|
|
|
2944
3076
|
};
|
|
2945
3077
|
absorbedIntoCaseId: string | null;
|
|
2946
3078
|
obsoleteReason: string | null;
|
|
3079
|
+
suggestedCuratedRename: {
|
|
3080
|
+
lastName: string | null;
|
|
3081
|
+
firstName: string;
|
|
3082
|
+
} | null;
|
|
2947
3083
|
}>;
|
|
2948
3084
|
404: z.ZodObject<{
|
|
2949
3085
|
statusCode: z.ZodNumber;
|
|
@@ -3165,12 +3301,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
3165
3301
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3166
3302
|
}, "strip", z.ZodTypeAny, {
|
|
3167
3303
|
id: string;
|
|
3168
|
-
firstName: string;
|
|
3169
3304
|
lastName: string | null;
|
|
3305
|
+
firstName: string;
|
|
3170
3306
|
}, {
|
|
3171
3307
|
id: string;
|
|
3172
|
-
firstName: string;
|
|
3173
3308
|
lastName: string | null;
|
|
3309
|
+
firstName: string;
|
|
3174
3310
|
}>>;
|
|
3175
3311
|
workers: z.ZodArray<z.ZodObject<{
|
|
3176
3312
|
id: z.ZodString;
|
|
@@ -3180,15 +3316,15 @@ export declare const workerIdentityCasesContract: {
|
|
|
3180
3316
|
agentName: z.ZodNullable<z.ZodString>;
|
|
3181
3317
|
}, "strip", z.ZodTypeAny, {
|
|
3182
3318
|
id: string;
|
|
3183
|
-
firstName: string;
|
|
3184
|
-
lastName: string | null;
|
|
3185
3319
|
agentId: string | null;
|
|
3320
|
+
lastName: string | null;
|
|
3321
|
+
firstName: string;
|
|
3186
3322
|
agentName: string | null;
|
|
3187
3323
|
}, {
|
|
3188
3324
|
id: string;
|
|
3189
|
-
firstName: string;
|
|
3190
|
-
lastName: string | null;
|
|
3191
3325
|
agentId: string | null;
|
|
3326
|
+
lastName: string | null;
|
|
3327
|
+
firstName: string;
|
|
3192
3328
|
agentName: string | null;
|
|
3193
3329
|
}>, "many">;
|
|
3194
3330
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -3246,12 +3382,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
3246
3382
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3247
3383
|
}, "strip", z.ZodTypeAny, {
|
|
3248
3384
|
id: string;
|
|
3249
|
-
firstName: string;
|
|
3250
3385
|
lastName: string | null;
|
|
3386
|
+
firstName: string;
|
|
3251
3387
|
}, {
|
|
3252
3388
|
id: string;
|
|
3253
|
-
firstName: string;
|
|
3254
3389
|
lastName: string | null;
|
|
3390
|
+
firstName: string;
|
|
3255
3391
|
}>, "many">;
|
|
3256
3392
|
pendingDocuments: z.ZodObject<{
|
|
3257
3393
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -3271,28 +3407,40 @@ export declare const workerIdentityCasesContract: {
|
|
|
3271
3407
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
3272
3408
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
3273
3409
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
3410
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
3411
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
3412
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
3413
|
+
firstName: z.ZodString;
|
|
3414
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
3415
|
+
}, "strip", z.ZodTypeAny, {
|
|
3416
|
+
lastName: string | null;
|
|
3417
|
+
firstName: string;
|
|
3418
|
+
}, {
|
|
3419
|
+
lastName: string | null;
|
|
3420
|
+
firstName: string;
|
|
3421
|
+
}>>;
|
|
3274
3422
|
}, "strip", z.ZodTypeAny, {
|
|
3275
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
3423
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
3276
3424
|
id: string;
|
|
3277
3425
|
createdAt: string;
|
|
3278
3426
|
conflicts: string[];
|
|
3279
3427
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3280
3428
|
curatedWorker: {
|
|
3281
3429
|
id: string;
|
|
3282
|
-
firstName: string;
|
|
3283
3430
|
lastName: string | null;
|
|
3431
|
+
firstName: string;
|
|
3284
3432
|
} | null;
|
|
3285
3433
|
reviewedAt: string | null;
|
|
3286
3434
|
confidence: number | null;
|
|
3287
3435
|
workers: {
|
|
3288
3436
|
id: string;
|
|
3289
|
-
firstName: string;
|
|
3290
|
-
lastName: string | null;
|
|
3291
3437
|
agentId: string | null;
|
|
3438
|
+
lastName: string | null;
|
|
3439
|
+
firstName: string;
|
|
3292
3440
|
agentName: string | null;
|
|
3293
3441
|
}[];
|
|
3294
|
-
appliedCuratedWorkerId: string | null;
|
|
3295
3442
|
revision: number;
|
|
3443
|
+
appliedCuratedWorkerId: string | null;
|
|
3296
3444
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3297
3445
|
hasHardEvidence: boolean;
|
|
3298
3446
|
linkAudit: {
|
|
@@ -3312,8 +3460,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3312
3460
|
}[];
|
|
3313
3461
|
curatedSubjects: {
|
|
3314
3462
|
id: string;
|
|
3315
|
-
firstName: string;
|
|
3316
3463
|
lastName: string | null;
|
|
3464
|
+
firstName: string;
|
|
3317
3465
|
}[];
|
|
3318
3466
|
pendingDocuments: {
|
|
3319
3467
|
notExtracted: number;
|
|
@@ -3321,28 +3469,32 @@ export declare const workerIdentityCasesContract: {
|
|
|
3321
3469
|
};
|
|
3322
3470
|
absorbedIntoCaseId: string | null;
|
|
3323
3471
|
obsoleteReason: string | null;
|
|
3472
|
+
suggestedCuratedRename: {
|
|
3473
|
+
lastName: string | null;
|
|
3474
|
+
firstName: string;
|
|
3475
|
+
} | null;
|
|
3324
3476
|
}, {
|
|
3325
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
3477
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
3326
3478
|
id: string;
|
|
3327
3479
|
createdAt: string;
|
|
3328
3480
|
conflicts: string[];
|
|
3329
3481
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3330
3482
|
curatedWorker: {
|
|
3331
3483
|
id: string;
|
|
3332
|
-
firstName: string;
|
|
3333
3484
|
lastName: string | null;
|
|
3485
|
+
firstName: string;
|
|
3334
3486
|
} | null;
|
|
3335
3487
|
reviewedAt: string | null;
|
|
3336
3488
|
confidence: number | null;
|
|
3337
3489
|
workers: {
|
|
3338
3490
|
id: string;
|
|
3339
|
-
firstName: string;
|
|
3340
|
-
lastName: string | null;
|
|
3341
3491
|
agentId: string | null;
|
|
3492
|
+
lastName: string | null;
|
|
3493
|
+
firstName: string;
|
|
3342
3494
|
agentName: string | null;
|
|
3343
3495
|
}[];
|
|
3344
|
-
appliedCuratedWorkerId: string | null;
|
|
3345
3496
|
revision: number;
|
|
3497
|
+
appliedCuratedWorkerId: string | null;
|
|
3346
3498
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3347
3499
|
hasHardEvidence: boolean;
|
|
3348
3500
|
linkAudit: {
|
|
@@ -3362,8 +3514,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3362
3514
|
}[];
|
|
3363
3515
|
curatedSubjects: {
|
|
3364
3516
|
id: string;
|
|
3365
|
-
firstName: string;
|
|
3366
3517
|
lastName: string | null;
|
|
3518
|
+
firstName: string;
|
|
3367
3519
|
}[];
|
|
3368
3520
|
pendingDocuments: {
|
|
3369
3521
|
notExtracted: number;
|
|
@@ -3371,6 +3523,10 @@ export declare const workerIdentityCasesContract: {
|
|
|
3371
3523
|
};
|
|
3372
3524
|
absorbedIntoCaseId: string | null;
|
|
3373
3525
|
obsoleteReason: string | null;
|
|
3526
|
+
suggestedCuratedRename: {
|
|
3527
|
+
lastName: string | null;
|
|
3528
|
+
firstName: string;
|
|
3529
|
+
} | null;
|
|
3374
3530
|
}>;
|
|
3375
3531
|
404: z.ZodObject<{
|
|
3376
3532
|
statusCode: z.ZodNumber;
|
|
@@ -3619,9 +3775,9 @@ export declare const workerIdentityCasesContract: {
|
|
|
3619
3775
|
tradeIds: z.ZodArray<z.ZodString, "many">;
|
|
3620
3776
|
mainTradeId: z.ZodNullable<z.ZodString>;
|
|
3621
3777
|
}, "strip", z.ZodTypeAny, {
|
|
3622
|
-
firstName: string | null;
|
|
3623
|
-
lastName: string | null;
|
|
3624
3778
|
email: string | null;
|
|
3779
|
+
lastName: string | null;
|
|
3780
|
+
firstName: string | null;
|
|
3625
3781
|
phoneNumbers: string[];
|
|
3626
3782
|
englishLevel: string | null;
|
|
3627
3783
|
nationality: string | null;
|
|
@@ -3635,9 +3791,9 @@ export declare const workerIdentityCasesContract: {
|
|
|
3635
3791
|
tradeIds: string[];
|
|
3636
3792
|
mainTradeId: string | null;
|
|
3637
3793
|
}, {
|
|
3638
|
-
firstName: string | null;
|
|
3639
|
-
lastName: string | null;
|
|
3640
3794
|
email: string | null;
|
|
3795
|
+
lastName: string | null;
|
|
3796
|
+
firstName: string | null;
|
|
3641
3797
|
phoneNumbers: string[];
|
|
3642
3798
|
englishLevel: string | null;
|
|
3643
3799
|
nationality: string | null;
|
|
@@ -3834,12 +3990,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
3834
3990
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3835
3991
|
}, "strip", z.ZodTypeAny, {
|
|
3836
3992
|
id: string;
|
|
3837
|
-
firstName: string;
|
|
3838
3993
|
lastName: string | null;
|
|
3994
|
+
firstName: string;
|
|
3839
3995
|
}, {
|
|
3840
3996
|
id: string;
|
|
3841
|
-
firstName: string;
|
|
3842
3997
|
lastName: string | null;
|
|
3998
|
+
firstName: string;
|
|
3843
3999
|
}>>;
|
|
3844
4000
|
workers: z.ZodArray<z.ZodObject<{
|
|
3845
4001
|
id: z.ZodString;
|
|
@@ -3849,15 +4005,15 @@ export declare const workerIdentityCasesContract: {
|
|
|
3849
4005
|
agentName: z.ZodNullable<z.ZodString>;
|
|
3850
4006
|
}, "strip", z.ZodTypeAny, {
|
|
3851
4007
|
id: string;
|
|
3852
|
-
firstName: string;
|
|
3853
|
-
lastName: string | null;
|
|
3854
4008
|
agentId: string | null;
|
|
4009
|
+
lastName: string | null;
|
|
4010
|
+
firstName: string;
|
|
3855
4011
|
agentName: string | null;
|
|
3856
4012
|
}, {
|
|
3857
4013
|
id: string;
|
|
3858
|
-
firstName: string;
|
|
3859
|
-
lastName: string | null;
|
|
3860
4014
|
agentId: string | null;
|
|
4015
|
+
lastName: string | null;
|
|
4016
|
+
firstName: string;
|
|
3861
4017
|
agentName: string | null;
|
|
3862
4018
|
}>, "many">;
|
|
3863
4019
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -3915,12 +4071,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
3915
4071
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3916
4072
|
}, "strip", z.ZodTypeAny, {
|
|
3917
4073
|
id: string;
|
|
3918
|
-
firstName: string;
|
|
3919
4074
|
lastName: string | null;
|
|
4075
|
+
firstName: string;
|
|
3920
4076
|
}, {
|
|
3921
4077
|
id: string;
|
|
3922
|
-
firstName: string;
|
|
3923
4078
|
lastName: string | null;
|
|
4079
|
+
firstName: string;
|
|
3924
4080
|
}>, "many">;
|
|
3925
4081
|
pendingDocuments: z.ZodObject<{
|
|
3926
4082
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -3940,28 +4096,40 @@ export declare const workerIdentityCasesContract: {
|
|
|
3940
4096
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
3941
4097
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
3942
4098
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
4099
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
4100
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
4101
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
4102
|
+
firstName: z.ZodString;
|
|
4103
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
4104
|
+
}, "strip", z.ZodTypeAny, {
|
|
4105
|
+
lastName: string | null;
|
|
4106
|
+
firstName: string;
|
|
4107
|
+
}, {
|
|
4108
|
+
lastName: string | null;
|
|
4109
|
+
firstName: string;
|
|
4110
|
+
}>>;
|
|
3943
4111
|
}, "strip", z.ZodTypeAny, {
|
|
3944
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
4112
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
3945
4113
|
id: string;
|
|
3946
4114
|
createdAt: string;
|
|
3947
4115
|
conflicts: string[];
|
|
3948
4116
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3949
4117
|
curatedWorker: {
|
|
3950
4118
|
id: string;
|
|
3951
|
-
firstName: string;
|
|
3952
4119
|
lastName: string | null;
|
|
4120
|
+
firstName: string;
|
|
3953
4121
|
} | null;
|
|
3954
4122
|
reviewedAt: string | null;
|
|
3955
4123
|
confidence: number | null;
|
|
3956
4124
|
workers: {
|
|
3957
4125
|
id: string;
|
|
3958
|
-
firstName: string;
|
|
3959
|
-
lastName: string | null;
|
|
3960
4126
|
agentId: string | null;
|
|
4127
|
+
lastName: string | null;
|
|
4128
|
+
firstName: string;
|
|
3961
4129
|
agentName: string | null;
|
|
3962
4130
|
}[];
|
|
3963
|
-
appliedCuratedWorkerId: string | null;
|
|
3964
4131
|
revision: number;
|
|
4132
|
+
appliedCuratedWorkerId: string | null;
|
|
3965
4133
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
3966
4134
|
hasHardEvidence: boolean;
|
|
3967
4135
|
linkAudit: {
|
|
@@ -3981,8 +4149,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
3981
4149
|
}[];
|
|
3982
4150
|
curatedSubjects: {
|
|
3983
4151
|
id: string;
|
|
3984
|
-
firstName: string;
|
|
3985
4152
|
lastName: string | null;
|
|
4153
|
+
firstName: string;
|
|
3986
4154
|
}[];
|
|
3987
4155
|
pendingDocuments: {
|
|
3988
4156
|
notExtracted: number;
|
|
@@ -3990,28 +4158,32 @@ export declare const workerIdentityCasesContract: {
|
|
|
3990
4158
|
};
|
|
3991
4159
|
absorbedIntoCaseId: string | null;
|
|
3992
4160
|
obsoleteReason: string | null;
|
|
4161
|
+
suggestedCuratedRename: {
|
|
4162
|
+
lastName: string | null;
|
|
4163
|
+
firstName: string;
|
|
4164
|
+
} | null;
|
|
3993
4165
|
}, {
|
|
3994
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
4166
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
3995
4167
|
id: string;
|
|
3996
4168
|
createdAt: string;
|
|
3997
4169
|
conflicts: string[];
|
|
3998
4170
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
3999
4171
|
curatedWorker: {
|
|
4000
4172
|
id: string;
|
|
4001
|
-
firstName: string;
|
|
4002
4173
|
lastName: string | null;
|
|
4174
|
+
firstName: string;
|
|
4003
4175
|
} | null;
|
|
4004
4176
|
reviewedAt: string | null;
|
|
4005
4177
|
confidence: number | null;
|
|
4006
4178
|
workers: {
|
|
4007
4179
|
id: string;
|
|
4008
|
-
firstName: string;
|
|
4009
|
-
lastName: string | null;
|
|
4010
4180
|
agentId: string | null;
|
|
4181
|
+
lastName: string | null;
|
|
4182
|
+
firstName: string;
|
|
4011
4183
|
agentName: string | null;
|
|
4012
4184
|
}[];
|
|
4013
|
-
appliedCuratedWorkerId: string | null;
|
|
4014
4185
|
revision: number;
|
|
4186
|
+
appliedCuratedWorkerId: string | null;
|
|
4015
4187
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4016
4188
|
hasHardEvidence: boolean;
|
|
4017
4189
|
linkAudit: {
|
|
@@ -4031,8 +4203,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4031
4203
|
}[];
|
|
4032
4204
|
curatedSubjects: {
|
|
4033
4205
|
id: string;
|
|
4034
|
-
firstName: string;
|
|
4035
4206
|
lastName: string | null;
|
|
4207
|
+
firstName: string;
|
|
4036
4208
|
}[];
|
|
4037
4209
|
pendingDocuments: {
|
|
4038
4210
|
notExtracted: number;
|
|
@@ -4040,6 +4212,10 @@ export declare const workerIdentityCasesContract: {
|
|
|
4040
4212
|
};
|
|
4041
4213
|
absorbedIntoCaseId: string | null;
|
|
4042
4214
|
obsoleteReason: string | null;
|
|
4215
|
+
suggestedCuratedRename: {
|
|
4216
|
+
lastName: string | null;
|
|
4217
|
+
firstName: string;
|
|
4218
|
+
} | null;
|
|
4043
4219
|
}>;
|
|
4044
4220
|
404: z.ZodObject<{
|
|
4045
4221
|
statusCode: z.ZodNumber;
|
|
@@ -4088,14 +4264,32 @@ export declare const workerIdentityCasesContract: {
|
|
|
4088
4264
|
action: z.ZodLiteral<"KEEP_CURRENT">;
|
|
4089
4265
|
expectedRevision: z.ZodNumber;
|
|
4090
4266
|
reason: z.ZodOptional<z.ZodString>;
|
|
4267
|
+
curatedFields: z.ZodOptional<z.ZodObject<{
|
|
4268
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
4269
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4270
|
+
}, "strip", z.ZodTypeAny, {
|
|
4271
|
+
lastName?: string | null | undefined;
|
|
4272
|
+
firstName?: string | undefined;
|
|
4273
|
+
}, {
|
|
4274
|
+
lastName?: string | null | undefined;
|
|
4275
|
+
firstName?: string | undefined;
|
|
4276
|
+
}>>;
|
|
4091
4277
|
}, "strip", z.ZodTypeAny, {
|
|
4092
4278
|
action: "KEEP_CURRENT";
|
|
4093
4279
|
expectedRevision: number;
|
|
4094
4280
|
reason?: string | undefined;
|
|
4281
|
+
curatedFields?: {
|
|
4282
|
+
lastName?: string | null | undefined;
|
|
4283
|
+
firstName?: string | undefined;
|
|
4284
|
+
} | undefined;
|
|
4095
4285
|
}, {
|
|
4096
4286
|
action: "KEEP_CURRENT";
|
|
4097
4287
|
expectedRevision: number;
|
|
4098
4288
|
reason?: string | undefined;
|
|
4289
|
+
curatedFields?: {
|
|
4290
|
+
lastName?: string | null | undefined;
|
|
4291
|
+
firstName?: string | undefined;
|
|
4292
|
+
} | undefined;
|
|
4099
4293
|
}>, z.ZodObject<{
|
|
4100
4294
|
action: z.ZodLiteral<"UNLINK_REPROCESS">;
|
|
4101
4295
|
expectedRevision: z.ZodNumber;
|
|
@@ -4113,16 +4307,34 @@ export declare const workerIdentityCasesContract: {
|
|
|
4113
4307
|
expectedRevision: z.ZodNumber;
|
|
4114
4308
|
curatedWorkerId: z.ZodString;
|
|
4115
4309
|
reason: z.ZodOptional<z.ZodString>;
|
|
4310
|
+
curatedFields: z.ZodOptional<z.ZodObject<{
|
|
4311
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
4312
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4313
|
+
}, "strip", z.ZodTypeAny, {
|
|
4314
|
+
lastName?: string | null | undefined;
|
|
4315
|
+
firstName?: string | undefined;
|
|
4316
|
+
}, {
|
|
4317
|
+
lastName?: string | null | undefined;
|
|
4318
|
+
firstName?: string | undefined;
|
|
4319
|
+
}>>;
|
|
4116
4320
|
}, "strip", z.ZodTypeAny, {
|
|
4117
4321
|
curatedWorkerId: string;
|
|
4118
4322
|
action: "MOVE";
|
|
4119
4323
|
expectedRevision: number;
|
|
4120
4324
|
reason?: string | undefined;
|
|
4325
|
+
curatedFields?: {
|
|
4326
|
+
lastName?: string | null | undefined;
|
|
4327
|
+
firstName?: string | undefined;
|
|
4328
|
+
} | undefined;
|
|
4121
4329
|
}, {
|
|
4122
4330
|
curatedWorkerId: string;
|
|
4123
4331
|
action: "MOVE";
|
|
4124
4332
|
expectedRevision: number;
|
|
4125
4333
|
reason?: string | undefined;
|
|
4334
|
+
curatedFields?: {
|
|
4335
|
+
lastName?: string | null | undefined;
|
|
4336
|
+
firstName?: string | undefined;
|
|
4337
|
+
} | undefined;
|
|
4126
4338
|
}>, z.ZodObject<{
|
|
4127
4339
|
action: z.ZodLiteral<"CREATE_NEW">;
|
|
4128
4340
|
expectedRevision: z.ZodNumber;
|
|
@@ -4251,12 +4463,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
4251
4463
|
lastName: z.ZodNullable<z.ZodString>;
|
|
4252
4464
|
}, "strip", z.ZodTypeAny, {
|
|
4253
4465
|
id: string;
|
|
4254
|
-
firstName: string;
|
|
4255
4466
|
lastName: string | null;
|
|
4467
|
+
firstName: string;
|
|
4256
4468
|
}, {
|
|
4257
4469
|
id: string;
|
|
4258
|
-
firstName: string;
|
|
4259
4470
|
lastName: string | null;
|
|
4471
|
+
firstName: string;
|
|
4260
4472
|
}>>;
|
|
4261
4473
|
workers: z.ZodArray<z.ZodObject<{
|
|
4262
4474
|
id: z.ZodString;
|
|
@@ -4266,15 +4478,15 @@ export declare const workerIdentityCasesContract: {
|
|
|
4266
4478
|
agentName: z.ZodNullable<z.ZodString>;
|
|
4267
4479
|
}, "strip", z.ZodTypeAny, {
|
|
4268
4480
|
id: string;
|
|
4269
|
-
firstName: string;
|
|
4270
|
-
lastName: string | null;
|
|
4271
4481
|
agentId: string | null;
|
|
4482
|
+
lastName: string | null;
|
|
4483
|
+
firstName: string;
|
|
4272
4484
|
agentName: string | null;
|
|
4273
4485
|
}, {
|
|
4274
4486
|
id: string;
|
|
4275
|
-
firstName: string;
|
|
4276
|
-
lastName: string | null;
|
|
4277
4487
|
agentId: string | null;
|
|
4488
|
+
lastName: string | null;
|
|
4489
|
+
firstName: string;
|
|
4278
4490
|
agentName: string | null;
|
|
4279
4491
|
}>, "many">;
|
|
4280
4492
|
evidenceBadges: z.ZodArray<z.ZodEnum<["NINO", "DOC_NUMBER", "SHARE_CODE", "EMAIL", "PHONE", "DOB_NAME", "AI"]>, "many">;
|
|
@@ -4332,12 +4544,12 @@ export declare const workerIdentityCasesContract: {
|
|
|
4332
4544
|
lastName: z.ZodNullable<z.ZodString>;
|
|
4333
4545
|
}, "strip", z.ZodTypeAny, {
|
|
4334
4546
|
id: string;
|
|
4335
|
-
firstName: string;
|
|
4336
4547
|
lastName: string | null;
|
|
4548
|
+
firstName: string;
|
|
4337
4549
|
}, {
|
|
4338
4550
|
id: string;
|
|
4339
|
-
firstName: string;
|
|
4340
4551
|
lastName: string | null;
|
|
4552
|
+
firstName: string;
|
|
4341
4553
|
}>, "many">;
|
|
4342
4554
|
pendingDocuments: z.ZodObject<{
|
|
4343
4555
|
/** Attachments with no extraction attempt yet (await the intake sweep). */
|
|
@@ -4357,28 +4569,40 @@ export declare const workerIdentityCasesContract: {
|
|
|
4357
4569
|
obsoleteReason: z.ZodNullable<z.ZodString>;
|
|
4358
4570
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
4359
4571
|
appliedCuratedWorkerId: z.ZodNullable<z.ZodString>;
|
|
4572
|
+
/** For link-audit cases, the curated worker's name fields as they would
|
|
4573
|
+
* be renamed to match the linked member; null for non-audit cases. */
|
|
4574
|
+
suggestedCuratedRename: z.ZodNullable<z.ZodObject<{
|
|
4575
|
+
firstName: z.ZodString;
|
|
4576
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
4577
|
+
}, "strip", z.ZodTypeAny, {
|
|
4578
|
+
lastName: string | null;
|
|
4579
|
+
firstName: string;
|
|
4580
|
+
}, {
|
|
4581
|
+
lastName: string | null;
|
|
4582
|
+
firstName: string;
|
|
4583
|
+
}>>;
|
|
4360
4584
|
}, "strip", z.ZodTypeAny, {
|
|
4361
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
4585
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
4362
4586
|
id: string;
|
|
4363
4587
|
createdAt: string;
|
|
4364
4588
|
conflicts: string[];
|
|
4365
4589
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4366
4590
|
curatedWorker: {
|
|
4367
4591
|
id: string;
|
|
4368
|
-
firstName: string;
|
|
4369
4592
|
lastName: string | null;
|
|
4593
|
+
firstName: string;
|
|
4370
4594
|
} | null;
|
|
4371
4595
|
reviewedAt: string | null;
|
|
4372
4596
|
confidence: number | null;
|
|
4373
4597
|
workers: {
|
|
4374
4598
|
id: string;
|
|
4375
|
-
firstName: string;
|
|
4376
|
-
lastName: string | null;
|
|
4377
4599
|
agentId: string | null;
|
|
4600
|
+
lastName: string | null;
|
|
4601
|
+
firstName: string;
|
|
4378
4602
|
agentName: string | null;
|
|
4379
4603
|
}[];
|
|
4380
|
-
appliedCuratedWorkerId: string | null;
|
|
4381
4604
|
revision: number;
|
|
4605
|
+
appliedCuratedWorkerId: string | null;
|
|
4382
4606
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4383
4607
|
hasHardEvidence: boolean;
|
|
4384
4608
|
linkAudit: {
|
|
@@ -4398,8 +4622,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4398
4622
|
}[];
|
|
4399
4623
|
curatedSubjects: {
|
|
4400
4624
|
id: string;
|
|
4401
|
-
firstName: string;
|
|
4402
4625
|
lastName: string | null;
|
|
4626
|
+
firstName: string;
|
|
4403
4627
|
}[];
|
|
4404
4628
|
pendingDocuments: {
|
|
4405
4629
|
notExtracted: number;
|
|
@@ -4407,28 +4631,32 @@ export declare const workerIdentityCasesContract: {
|
|
|
4407
4631
|
};
|
|
4408
4632
|
absorbedIntoCaseId: string | null;
|
|
4409
4633
|
obsoleteReason: string | null;
|
|
4634
|
+
suggestedCuratedRename: {
|
|
4635
|
+
lastName: string | null;
|
|
4636
|
+
firstName: string;
|
|
4637
|
+
} | null;
|
|
4410
4638
|
}, {
|
|
4411
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
4639
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
4412
4640
|
id: string;
|
|
4413
4641
|
createdAt: string;
|
|
4414
4642
|
conflicts: string[];
|
|
4415
4643
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4416
4644
|
curatedWorker: {
|
|
4417
4645
|
id: string;
|
|
4418
|
-
firstName: string;
|
|
4419
4646
|
lastName: string | null;
|
|
4647
|
+
firstName: string;
|
|
4420
4648
|
} | null;
|
|
4421
4649
|
reviewedAt: string | null;
|
|
4422
4650
|
confidence: number | null;
|
|
4423
4651
|
workers: {
|
|
4424
4652
|
id: string;
|
|
4425
|
-
firstName: string;
|
|
4426
|
-
lastName: string | null;
|
|
4427
4653
|
agentId: string | null;
|
|
4654
|
+
lastName: string | null;
|
|
4655
|
+
firstName: string;
|
|
4428
4656
|
agentName: string | null;
|
|
4429
4657
|
}[];
|
|
4430
|
-
appliedCuratedWorkerId: string | null;
|
|
4431
4658
|
revision: number;
|
|
4659
|
+
appliedCuratedWorkerId: string | null;
|
|
4432
4660
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4433
4661
|
hasHardEvidence: boolean;
|
|
4434
4662
|
linkAudit: {
|
|
@@ -4448,8 +4676,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4448
4676
|
}[];
|
|
4449
4677
|
curatedSubjects: {
|
|
4450
4678
|
id: string;
|
|
4451
|
-
firstName: string;
|
|
4452
4679
|
lastName: string | null;
|
|
4680
|
+
firstName: string;
|
|
4453
4681
|
}[];
|
|
4454
4682
|
pendingDocuments: {
|
|
4455
4683
|
notExtracted: number;
|
|
@@ -4457,43 +4685,47 @@ export declare const workerIdentityCasesContract: {
|
|
|
4457
4685
|
};
|
|
4458
4686
|
absorbedIntoCaseId: string | null;
|
|
4459
4687
|
obsoleteReason: string | null;
|
|
4688
|
+
suggestedCuratedRename: {
|
|
4689
|
+
lastName: string | null;
|
|
4690
|
+
firstName: string;
|
|
4691
|
+
} | null;
|
|
4460
4692
|
}>;
|
|
4461
4693
|
reprocessing: z.ZodNullable<z.ZodObject<{
|
|
4462
4694
|
status: z.ZodEnum<["COMPLETED", "FAILED"]>;
|
|
4463
4695
|
casesCreated: z.ZodNumber;
|
|
4464
4696
|
message: z.ZodNullable<z.ZodString>;
|
|
4465
4697
|
}, "strip", z.ZodTypeAny, {
|
|
4466
|
-
message: string | null;
|
|
4467
4698
|
status: "COMPLETED" | "FAILED";
|
|
4699
|
+
message: string | null;
|
|
4468
4700
|
casesCreated: number;
|
|
4469
4701
|
}, {
|
|
4470
|
-
message: string | null;
|
|
4471
4702
|
status: "COMPLETED" | "FAILED";
|
|
4703
|
+
message: string | null;
|
|
4472
4704
|
casesCreated: number;
|
|
4473
4705
|
}>>;
|
|
4474
4706
|
}, "strip", z.ZodTypeAny, {
|
|
4475
4707
|
case: {
|
|
4476
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
4708
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
4477
4709
|
id: string;
|
|
4478
4710
|
createdAt: string;
|
|
4479
4711
|
conflicts: string[];
|
|
4480
4712
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4481
4713
|
curatedWorker: {
|
|
4482
4714
|
id: string;
|
|
4483
|
-
firstName: string;
|
|
4484
4715
|
lastName: string | null;
|
|
4716
|
+
firstName: string;
|
|
4485
4717
|
} | null;
|
|
4486
4718
|
reviewedAt: string | null;
|
|
4487
4719
|
confidence: number | null;
|
|
4488
4720
|
workers: {
|
|
4489
4721
|
id: string;
|
|
4490
|
-
firstName: string;
|
|
4491
|
-
lastName: string | null;
|
|
4492
4722
|
agentId: string | null;
|
|
4723
|
+
lastName: string | null;
|
|
4724
|
+
firstName: string;
|
|
4493
4725
|
agentName: string | null;
|
|
4494
4726
|
}[];
|
|
4495
|
-
appliedCuratedWorkerId: string | null;
|
|
4496
4727
|
revision: number;
|
|
4728
|
+
appliedCuratedWorkerId: string | null;
|
|
4497
4729
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4498
4730
|
hasHardEvidence: boolean;
|
|
4499
4731
|
linkAudit: {
|
|
@@ -4513,8 +4745,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4513
4745
|
}[];
|
|
4514
4746
|
curatedSubjects: {
|
|
4515
4747
|
id: string;
|
|
4516
|
-
firstName: string;
|
|
4517
4748
|
lastName: string | null;
|
|
4749
|
+
firstName: string;
|
|
4518
4750
|
}[];
|
|
4519
4751
|
pendingDocuments: {
|
|
4520
4752
|
notExtracted: number;
|
|
@@ -4522,35 +4754,39 @@ export declare const workerIdentityCasesContract: {
|
|
|
4522
4754
|
};
|
|
4523
4755
|
absorbedIntoCaseId: string | null;
|
|
4524
4756
|
obsoleteReason: string | null;
|
|
4757
|
+
suggestedCuratedRename: {
|
|
4758
|
+
lastName: string | null;
|
|
4759
|
+
firstName: string;
|
|
4760
|
+
} | null;
|
|
4525
4761
|
};
|
|
4526
4762
|
reprocessing: {
|
|
4527
|
-
message: string | null;
|
|
4528
4763
|
status: "COMPLETED" | "FAILED";
|
|
4764
|
+
message: string | null;
|
|
4529
4765
|
casesCreated: number;
|
|
4530
4766
|
} | null;
|
|
4531
4767
|
}, {
|
|
4532
4768
|
case: {
|
|
4533
|
-
status: "PENDING" | "REJECTED" | "CONFIRMED" | "
|
|
4769
|
+
status: "PENDING" | "REJECTED" | "CONFIRMED" | "CONFLICT" | "AUTO_APPLIED" | "PARTIALLY_CONFIRMED" | "OBSOLETE";
|
|
4534
4770
|
id: string;
|
|
4535
4771
|
createdAt: string;
|
|
4536
4772
|
conflicts: string[];
|
|
4537
4773
|
kind: "IDENTITY_MERGE" | "CURATED_UPDATE" | "CURATED_LINK_AUDIT";
|
|
4538
4774
|
curatedWorker: {
|
|
4539
4775
|
id: string;
|
|
4540
|
-
firstName: string;
|
|
4541
4776
|
lastName: string | null;
|
|
4777
|
+
firstName: string;
|
|
4542
4778
|
} | null;
|
|
4543
4779
|
reviewedAt: string | null;
|
|
4544
4780
|
confidence: number | null;
|
|
4545
4781
|
workers: {
|
|
4546
4782
|
id: string;
|
|
4547
|
-
firstName: string;
|
|
4548
|
-
lastName: string | null;
|
|
4549
4783
|
agentId: string | null;
|
|
4784
|
+
lastName: string | null;
|
|
4785
|
+
firstName: string;
|
|
4550
4786
|
agentName: string | null;
|
|
4551
4787
|
}[];
|
|
4552
|
-
appliedCuratedWorkerId: string | null;
|
|
4553
4788
|
revision: number;
|
|
4789
|
+
appliedCuratedWorkerId: string | null;
|
|
4554
4790
|
evidenceBadges: ("AI" | "PHONE" | "NINO" | "EMAIL" | "SHARE_CODE" | "DOC_NUMBER" | "DOB_NAME")[];
|
|
4555
4791
|
hasHardEvidence: boolean;
|
|
4556
4792
|
linkAudit: {
|
|
@@ -4570,8 +4806,8 @@ export declare const workerIdentityCasesContract: {
|
|
|
4570
4806
|
}[];
|
|
4571
4807
|
curatedSubjects: {
|
|
4572
4808
|
id: string;
|
|
4573
|
-
firstName: string;
|
|
4574
4809
|
lastName: string | null;
|
|
4810
|
+
firstName: string;
|
|
4575
4811
|
}[];
|
|
4576
4812
|
pendingDocuments: {
|
|
4577
4813
|
notExtracted: number;
|
|
@@ -4579,10 +4815,14 @@ export declare const workerIdentityCasesContract: {
|
|
|
4579
4815
|
};
|
|
4580
4816
|
absorbedIntoCaseId: string | null;
|
|
4581
4817
|
obsoleteReason: string | null;
|
|
4818
|
+
suggestedCuratedRename: {
|
|
4819
|
+
lastName: string | null;
|
|
4820
|
+
firstName: string;
|
|
4821
|
+
} | null;
|
|
4582
4822
|
};
|
|
4583
4823
|
reprocessing: {
|
|
4584
|
-
message: string | null;
|
|
4585
4824
|
status: "COMPLETED" | "FAILED";
|
|
4825
|
+
message: string | null;
|
|
4586
4826
|
casesCreated: number;
|
|
4587
4827
|
} | null;
|
|
4588
4828
|
}>;
|