@dakkitor/api-contracts 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +6 -2
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +45 -1
- package/dist/abilities/abilities.contract.spec.js +98 -0
- package/dist/abilities/first-agent.abilities.json +8 -14
- package/dist/abilities/outreach.abilities.json +25 -0
- package/dist/abilities/second-agent.abilities.json +4 -13
- package/dist/actives/actives.contract.d.ts +3618 -3479
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +2 -0
- package/dist/actives/actives.contract.spec.d.ts +2 -0
- package/dist/actives/actives.contract.spec.d.ts.map +1 -0
- package/dist/actives/actives.contract.spec.js +35 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
- package/dist/auth/auth.contract.d.ts +108 -108
- package/dist/bookings/bookings.contract.d.ts +6644 -6452
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +718 -718
- package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
- package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
- package/dist/clients/clients.contract.d.ts +203 -203
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
- package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
- package/dist/common/common-schemas.d.ts +12 -12
- package/dist/companies/companies.contract.d.ts +74 -74
- package/dist/crews/crews.contract.d.ts +253 -253
- package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1117 -1087
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
- package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/document-intake/document-intake.contract.d.ts +601 -601
- package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +74 -74
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/interactions/interactions.contract.d.ts +6 -6
- package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
- package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
- package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
- package/dist/jobs/job-moderation-fields.spec.js +72 -0
- package/dist/jobs/jobs.contract.d.ts +4773 -4525
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +48 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
- package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
- package/dist/leads/leads.contract.d.ts +283 -283
- package/dist/locations/locations.contract.d.ts +49 -49
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/offices/offices.contract.d.ts +34 -34
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +50 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/lab-outreach.contract.d.ts +1110 -0
- package/dist/outreach/lab-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.js +174 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.spec.js +90 -0
- package/dist/outreach/outreach-requests.contract.d.ts +946 -217
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.contract.js +23 -3
- package/dist/outreach/outreach-requests.schemas.d.ts +65 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +6 -0
- package/dist/outreach/outreach.contract.d.ts +300 -38
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +18 -0
- package/dist/outreach/outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.spec.js +57 -0
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/own-research/own-research.contract.d.ts +775 -775
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/proofs/proof-type.enum.d.ts +4 -4
- package/dist/proofs/proofs.contract.d.ts +363 -363
- package/dist/proofs/proofs.dtos.d.ts +124 -124
- package/dist/qualifications/qualifications.contract.d.ts +38 -38
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +829 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.js +79 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.js +146 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +443 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.js +138 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
- package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
- package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.js +188 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.schemas.js +112 -0
- package/dist/shared/live-booking.schema.d.ts +4 -4
- package/dist/shared/summary-schemas.d.ts +6 -6
- package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
- package/dist/telegram/telegram.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +90 -90
- package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
- package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
- package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
- package/dist/users/__tests__/assignable-roles.spec.js +41 -0
- package/dist/users/users.contract.d.ts +399 -393
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +11 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
- package/dist/workers/workers.contract.d.ts +2919 -2919
- package/package.json +1 -1
- package/dist/bookings/bookings.contract.spec.d.ts +0 -2
- package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
- package/dist/bookings/bookings.contract.spec.js +0 -11
|
@@ -22,39 +22,39 @@ export declare const ExtractedDocumentFieldsSchema: z.ZodObject<{
|
|
|
22
22
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
23
23
|
confidence: z.ZodNumber;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
26
25
|
firstName: string | null;
|
|
27
26
|
lastName: string | null;
|
|
27
|
+
nationality: string | null;
|
|
28
28
|
dateOfBirth: string | null;
|
|
29
|
-
expiryDate: string | null;
|
|
30
29
|
issueDate: string | null;
|
|
30
|
+
expiryDate: string | null;
|
|
31
31
|
referenceNumber: string | null;
|
|
32
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
32
33
|
shareCode: string | null;
|
|
33
|
-
nationality: string | null;
|
|
34
34
|
confidence: number;
|
|
35
|
-
qualificationName?: string | null | undefined;
|
|
36
|
-
qualificationTypeName?: string | null | undefined;
|
|
37
35
|
qualificationId?: string | null | undefined;
|
|
38
36
|
qualificationTypeId?: string | null | undefined;
|
|
37
|
+
qualificationName?: string | null | undefined;
|
|
38
|
+
qualificationTypeName?: string | null | undefined;
|
|
39
39
|
qualificationIssuerText?: string | null | undefined;
|
|
40
40
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
41
41
|
qualificationRoleText?: string | null | undefined;
|
|
42
42
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
43
43
|
}, {
|
|
44
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
45
44
|
firstName: string | null;
|
|
46
45
|
lastName: string | null;
|
|
46
|
+
nationality: string | null;
|
|
47
47
|
dateOfBirth: string | null;
|
|
48
|
-
expiryDate: string | null;
|
|
49
48
|
issueDate: string | null;
|
|
49
|
+
expiryDate: string | null;
|
|
50
50
|
referenceNumber: string | null;
|
|
51
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
51
52
|
shareCode: string | null;
|
|
52
|
-
nationality: string | null;
|
|
53
53
|
confidence: number;
|
|
54
|
-
qualificationName?: string | null | undefined;
|
|
55
|
-
qualificationTypeName?: string | null | undefined;
|
|
56
54
|
qualificationId?: string | null | undefined;
|
|
57
55
|
qualificationTypeId?: string | null | undefined;
|
|
56
|
+
qualificationName?: string | null | undefined;
|
|
57
|
+
qualificationTypeName?: string | null | undefined;
|
|
58
58
|
qualificationIssuerText?: string | null | undefined;
|
|
59
59
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
60
60
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -87,39 +87,39 @@ export declare const IntakeRecordResponseSchema: z.ZodObject<{
|
|
|
87
87
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
88
88
|
confidence: z.ZodNumber;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
91
90
|
firstName: string | null;
|
|
92
91
|
lastName: string | null;
|
|
92
|
+
nationality: string | null;
|
|
93
93
|
dateOfBirth: string | null;
|
|
94
|
-
expiryDate: string | null;
|
|
95
94
|
issueDate: string | null;
|
|
95
|
+
expiryDate: string | null;
|
|
96
96
|
referenceNumber: string | null;
|
|
97
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
97
98
|
shareCode: string | null;
|
|
98
|
-
nationality: string | null;
|
|
99
99
|
confidence: number;
|
|
100
|
-
qualificationName?: string | null | undefined;
|
|
101
|
-
qualificationTypeName?: string | null | undefined;
|
|
102
100
|
qualificationId?: string | null | undefined;
|
|
103
101
|
qualificationTypeId?: string | null | undefined;
|
|
102
|
+
qualificationName?: string | null | undefined;
|
|
103
|
+
qualificationTypeName?: string | null | undefined;
|
|
104
104
|
qualificationIssuerText?: string | null | undefined;
|
|
105
105
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
106
106
|
qualificationRoleText?: string | null | undefined;
|
|
107
107
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
110
109
|
firstName: string | null;
|
|
111
110
|
lastName: string | null;
|
|
111
|
+
nationality: string | null;
|
|
112
112
|
dateOfBirth: string | null;
|
|
113
|
-
expiryDate: string | null;
|
|
114
113
|
issueDate: string | null;
|
|
114
|
+
expiryDate: string | null;
|
|
115
115
|
referenceNumber: string | null;
|
|
116
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
116
117
|
shareCode: string | null;
|
|
117
|
-
nationality: string | null;
|
|
118
118
|
confidence: number;
|
|
119
|
-
qualificationName?: string | null | undefined;
|
|
120
|
-
qualificationTypeName?: string | null | undefined;
|
|
121
119
|
qualificationId?: string | null | undefined;
|
|
122
120
|
qualificationTypeId?: string | null | undefined;
|
|
121
|
+
qualificationName?: string | null | undefined;
|
|
122
|
+
qualificationTypeName?: string | null | undefined;
|
|
123
123
|
qualificationIssuerText?: string | null | undefined;
|
|
124
124
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
125
125
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -129,29 +129,29 @@ export declare const IntakeRecordResponseSchema: z.ZodObject<{
|
|
|
129
129
|
overridden: z.ZodBoolean;
|
|
130
130
|
status: z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
|
|
133
|
-
status: "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | "FAILED";
|
|
132
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
134
133
|
id: string;
|
|
135
134
|
fileId: string;
|
|
136
135
|
workerId: string | null;
|
|
137
|
-
|
|
136
|
+
confidence: number | null;
|
|
137
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
138
138
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
139
139
|
destinationFinal: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN" | null;
|
|
140
140
|
extracted: {
|
|
141
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
142
141
|
firstName: string | null;
|
|
143
142
|
lastName: string | null;
|
|
143
|
+
nationality: string | null;
|
|
144
144
|
dateOfBirth: string | null;
|
|
145
|
-
expiryDate: string | null;
|
|
146
145
|
issueDate: string | null;
|
|
146
|
+
expiryDate: string | null;
|
|
147
147
|
referenceNumber: string | null;
|
|
148
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
148
149
|
shareCode: string | null;
|
|
149
|
-
nationality: string | null;
|
|
150
150
|
confidence: number;
|
|
151
|
-
qualificationName?: string | null | undefined;
|
|
152
|
-
qualificationTypeName?: string | null | undefined;
|
|
153
151
|
qualificationId?: string | null | undefined;
|
|
154
152
|
qualificationTypeId?: string | null | undefined;
|
|
153
|
+
qualificationName?: string | null | undefined;
|
|
154
|
+
qualificationTypeName?: string | null | undefined;
|
|
155
155
|
qualificationIssuerText?: string | null | undefined;
|
|
156
156
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
157
157
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -159,29 +159,29 @@ export declare const IntakeRecordResponseSchema: z.ZodObject<{
|
|
|
159
159
|
} | null;
|
|
160
160
|
overridden: boolean;
|
|
161
161
|
}, {
|
|
162
|
-
|
|
163
|
-
status: "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | "FAILED";
|
|
162
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
164
163
|
id: string;
|
|
165
164
|
fileId: string;
|
|
166
165
|
workerId: string | null;
|
|
167
|
-
|
|
166
|
+
confidence: number | null;
|
|
167
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
168
168
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
169
169
|
destinationFinal: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN" | null;
|
|
170
170
|
extracted: {
|
|
171
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
172
171
|
firstName: string | null;
|
|
173
172
|
lastName: string | null;
|
|
173
|
+
nationality: string | null;
|
|
174
174
|
dateOfBirth: string | null;
|
|
175
|
-
expiryDate: string | null;
|
|
176
175
|
issueDate: string | null;
|
|
176
|
+
expiryDate: string | null;
|
|
177
177
|
referenceNumber: string | null;
|
|
178
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
178
179
|
shareCode: string | null;
|
|
179
|
-
nationality: string | null;
|
|
180
180
|
confidence: number;
|
|
181
|
-
qualificationName?: string | null | undefined;
|
|
182
|
-
qualificationTypeName?: string | null | undefined;
|
|
183
181
|
qualificationId?: string | null | undefined;
|
|
184
182
|
qualificationTypeId?: string | null | undefined;
|
|
183
|
+
qualificationName?: string | null | undefined;
|
|
184
|
+
qualificationTypeName?: string | null | undefined;
|
|
185
185
|
qualificationIssuerText?: string | null | undefined;
|
|
186
186
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
187
187
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -231,15 +231,15 @@ export declare const BackfillSubjectSummarySchema: z.ZodObject<{
|
|
|
231
231
|
pendingKinds: z.ZodArray<z.ZodEnum<["NAME", "FILL", "REROUTE"]>, "many">;
|
|
232
232
|
oldestDocumentAt: z.ZodString;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
235
234
|
subjectId: string;
|
|
235
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
236
236
|
subjectName: string;
|
|
237
237
|
documentCount: number;
|
|
238
238
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
239
239
|
oldestDocumentAt: string;
|
|
240
240
|
}, {
|
|
241
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
242
241
|
subjectId: string;
|
|
242
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
243
243
|
subjectName: string;
|
|
244
244
|
documentCount: number;
|
|
245
245
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -254,15 +254,15 @@ export declare const BackfillSubjectListSchema: z.ZodObject<{
|
|
|
254
254
|
pendingKinds: z.ZodArray<z.ZodEnum<["NAME", "FILL", "REROUTE"]>, "many">;
|
|
255
255
|
oldestDocumentAt: z.ZodString;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
258
257
|
subjectId: string;
|
|
258
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
259
259
|
subjectName: string;
|
|
260
260
|
documentCount: number;
|
|
261
261
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
262
262
|
oldestDocumentAt: string;
|
|
263
263
|
}, {
|
|
264
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
265
264
|
subjectId: string;
|
|
265
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
266
266
|
subjectName: string;
|
|
267
267
|
documentCount: number;
|
|
268
268
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -273,9 +273,11 @@ export declare const BackfillSubjectListSchema: z.ZodObject<{
|
|
|
273
273
|
page: z.ZodNumber;
|
|
274
274
|
limit: z.ZodNumber;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
limit: number;
|
|
277
|
+
page: number;
|
|
276
278
|
items: {
|
|
277
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
278
279
|
subjectId: string;
|
|
280
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
279
281
|
subjectName: string;
|
|
280
282
|
documentCount: number;
|
|
281
283
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -283,12 +285,12 @@ export declare const BackfillSubjectListSchema: z.ZodObject<{
|
|
|
283
285
|
}[];
|
|
284
286
|
totalCount: number;
|
|
285
287
|
totalPages: number;
|
|
286
|
-
page: number;
|
|
287
|
-
limit: number;
|
|
288
288
|
}, {
|
|
289
|
+
limit: number;
|
|
290
|
+
page: number;
|
|
289
291
|
items: {
|
|
290
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
291
292
|
subjectId: string;
|
|
293
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
292
294
|
subjectName: string;
|
|
293
295
|
documentCount: number;
|
|
294
296
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -296,8 +298,6 @@ export declare const BackfillSubjectListSchema: z.ZodObject<{
|
|
|
296
298
|
}[];
|
|
297
299
|
totalCount: number;
|
|
298
300
|
totalPages: number;
|
|
299
|
-
page: number;
|
|
300
|
-
limit: number;
|
|
301
301
|
}>;
|
|
302
302
|
export declare const BackfillSubjectQuerySchema: z.ZodObject<{
|
|
303
303
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -307,18 +307,18 @@ export declare const BackfillSubjectQuerySchema: z.ZodObject<{
|
|
|
307
307
|
pendingKinds: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["NAME", "FILL", "REROUTE"]>, z.ZodArray<z.ZodEnum<["NAME", "FILL", "REROUTE"]>, "many">]>>, ("NAME" | "FILL" | "REROUTE")[] | undefined, "NAME" | "FILL" | "REROUTE" | ("NAME" | "FILL" | "REROUTE")[] | undefined>;
|
|
308
308
|
subjectIds: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, string[] | undefined, string | string[] | undefined>;
|
|
309
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
page: number;
|
|
311
310
|
limit: number;
|
|
311
|
+
page: number;
|
|
312
|
+
search?: string | undefined;
|
|
312
313
|
subjectType?: "WORKER" | "CURATED_WORKER" | undefined;
|
|
313
314
|
pendingKinds?: ("NAME" | "FILL" | "REROUTE")[] | undefined;
|
|
314
|
-
search?: string | undefined;
|
|
315
315
|
subjectIds?: string[] | undefined;
|
|
316
316
|
}, {
|
|
317
|
+
search?: string | undefined;
|
|
318
|
+
limit?: number | undefined;
|
|
319
|
+
page?: number | undefined;
|
|
317
320
|
subjectType?: "WORKER" | "CURATED_WORKER" | undefined;
|
|
318
321
|
pendingKinds?: "NAME" | "FILL" | "REROUTE" | ("NAME" | "FILL" | "REROUTE")[] | undefined;
|
|
319
|
-
page?: number | undefined;
|
|
320
|
-
limit?: number | undefined;
|
|
321
|
-
search?: string | undefined;
|
|
322
322
|
subjectIds?: string | string[] | undefined;
|
|
323
323
|
}>;
|
|
324
324
|
export declare const BackfillCandidateSchema: z.ZodObject<{
|
|
@@ -328,16 +328,16 @@ export declare const BackfillCandidateSchema: z.ZodObject<{
|
|
|
328
328
|
email: z.ZodNullable<z.ZodString>;
|
|
329
329
|
unprocessedCount: z.ZodNumber;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
332
|
-
subjectId: string;
|
|
333
331
|
name: string;
|
|
334
332
|
email: string | null;
|
|
333
|
+
subjectId: string;
|
|
334
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
335
335
|
unprocessedCount: number;
|
|
336
336
|
}, {
|
|
337
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
338
|
-
subjectId: string;
|
|
339
337
|
name: string;
|
|
340
338
|
email: string | null;
|
|
339
|
+
subjectId: string;
|
|
340
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
341
341
|
unprocessedCount: number;
|
|
342
342
|
}>;
|
|
343
343
|
export declare const BackfillCandidateListSchema: z.ZodObject<{
|
|
@@ -348,32 +348,32 @@ export declare const BackfillCandidateListSchema: z.ZodObject<{
|
|
|
348
348
|
email: z.ZodNullable<z.ZodString>;
|
|
349
349
|
unprocessedCount: z.ZodNumber;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
352
|
-
subjectId: string;
|
|
353
351
|
name: string;
|
|
354
352
|
email: string | null;
|
|
353
|
+
subjectId: string;
|
|
354
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
355
355
|
unprocessedCount: number;
|
|
356
356
|
}, {
|
|
357
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
358
|
-
subjectId: string;
|
|
359
357
|
name: string;
|
|
360
358
|
email: string | null;
|
|
359
|
+
subjectId: string;
|
|
360
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
361
361
|
unprocessedCount: number;
|
|
362
362
|
}>, "many">;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
364
|
items: {
|
|
365
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
366
|
-
subjectId: string;
|
|
367
365
|
name: string;
|
|
368
366
|
email: string | null;
|
|
367
|
+
subjectId: string;
|
|
368
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
369
369
|
unprocessedCount: number;
|
|
370
370
|
}[];
|
|
371
371
|
}, {
|
|
372
372
|
items: {
|
|
373
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
374
|
-
subjectId: string;
|
|
375
373
|
name: string;
|
|
376
374
|
email: string | null;
|
|
375
|
+
subjectId: string;
|
|
376
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
377
377
|
unprocessedCount: number;
|
|
378
378
|
}[];
|
|
379
379
|
}>;
|
|
@@ -396,19 +396,19 @@ export declare const DocumentBackfillJobItemSchema: z.ZodObject<{
|
|
|
396
396
|
failed: z.ZodNumber;
|
|
397
397
|
error: z.ZodNullable<z.ZodString>;
|
|
398
398
|
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
status: "
|
|
399
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
400
400
|
workerId: string;
|
|
401
|
+
error: string | null;
|
|
401
402
|
scanned: number;
|
|
402
403
|
queuedForReview: number;
|
|
403
404
|
failed: number;
|
|
404
|
-
error: string | null;
|
|
405
405
|
}, {
|
|
406
|
-
status: "
|
|
406
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
407
407
|
workerId: string;
|
|
408
|
+
error: string | null;
|
|
408
409
|
scanned: number;
|
|
409
410
|
queuedForReview: number;
|
|
410
411
|
failed: number;
|
|
411
|
-
error: string | null;
|
|
412
412
|
}>;
|
|
413
413
|
export declare const CuratedDocumentBackfillJobItemSchema: z.ZodObject<{
|
|
414
414
|
curatedWorkerId: z.ZodString;
|
|
@@ -418,19 +418,19 @@ export declare const CuratedDocumentBackfillJobItemSchema: z.ZodObject<{
|
|
|
418
418
|
failed: z.ZodNumber;
|
|
419
419
|
error: z.ZodNullable<z.ZodString>;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
|
-
status: "
|
|
421
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
422
|
+
curatedWorkerId: string;
|
|
423
|
+
error: string | null;
|
|
422
424
|
scanned: number;
|
|
423
425
|
queuedForReview: number;
|
|
424
426
|
failed: number;
|
|
425
|
-
error: string | null;
|
|
426
|
-
curatedWorkerId: string;
|
|
427
427
|
}, {
|
|
428
|
-
status: "
|
|
428
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
429
|
+
curatedWorkerId: string;
|
|
430
|
+
error: string | null;
|
|
429
431
|
scanned: number;
|
|
430
432
|
queuedForReview: number;
|
|
431
433
|
failed: number;
|
|
432
|
-
error: string | null;
|
|
433
|
-
curatedWorkerId: string;
|
|
434
434
|
}>;
|
|
435
435
|
export declare const DocumentBackfillJobSchema: z.ZodObject<{
|
|
436
436
|
id: z.ZodString;
|
|
@@ -446,19 +446,19 @@ export declare const DocumentBackfillJobSchema: z.ZodObject<{
|
|
|
446
446
|
failed: z.ZodNumber;
|
|
447
447
|
error: z.ZodNullable<z.ZodString>;
|
|
448
448
|
}, "strip", z.ZodTypeAny, {
|
|
449
|
-
status: "
|
|
449
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
450
450
|
workerId: string;
|
|
451
|
+
error: string | null;
|
|
451
452
|
scanned: number;
|
|
452
453
|
queuedForReview: number;
|
|
453
454
|
failed: number;
|
|
454
|
-
error: string | null;
|
|
455
455
|
}, {
|
|
456
|
-
status: "
|
|
456
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
457
457
|
workerId: string;
|
|
458
|
+
error: string | null;
|
|
458
459
|
scanned: number;
|
|
459
460
|
queuedForReview: number;
|
|
460
461
|
failed: number;
|
|
461
|
-
error: string | null;
|
|
462
462
|
}>, "many">;
|
|
463
463
|
curatedWorkers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
464
464
|
curatedWorkerId: z.ZodString;
|
|
@@ -468,63 +468,63 @@ export declare const DocumentBackfillJobSchema: z.ZodObject<{
|
|
|
468
468
|
failed: z.ZodNumber;
|
|
469
469
|
error: z.ZodNullable<z.ZodString>;
|
|
470
470
|
}, "strip", z.ZodTypeAny, {
|
|
471
|
-
status: "
|
|
471
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
472
|
+
curatedWorkerId: string;
|
|
473
|
+
error: string | null;
|
|
472
474
|
scanned: number;
|
|
473
475
|
queuedForReview: number;
|
|
474
476
|
failed: number;
|
|
475
|
-
error: string | null;
|
|
476
|
-
curatedWorkerId: string;
|
|
477
477
|
}, {
|
|
478
|
-
status: "
|
|
478
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
479
|
+
curatedWorkerId: string;
|
|
480
|
+
error: string | null;
|
|
479
481
|
scanned: number;
|
|
480
482
|
queuedForReview: number;
|
|
481
483
|
failed: number;
|
|
482
|
-
error: string | null;
|
|
483
|
-
curatedWorkerId: string;
|
|
484
484
|
}>, "many">>;
|
|
485
485
|
}, "strip", z.ZodTypeAny, {
|
|
486
|
-
status: "
|
|
486
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
487
487
|
id: string;
|
|
488
488
|
createdAt: string;
|
|
489
|
-
startedAt: string | null;
|
|
490
|
-
finishedAt: string | null;
|
|
491
489
|
workers: {
|
|
492
|
-
status: "
|
|
490
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
493
491
|
workerId: string;
|
|
492
|
+
error: string | null;
|
|
494
493
|
scanned: number;
|
|
495
494
|
queuedForReview: number;
|
|
496
495
|
failed: number;
|
|
497
|
-
error: string | null;
|
|
498
496
|
}[];
|
|
497
|
+
startedAt: string | null;
|
|
498
|
+
finishedAt: string | null;
|
|
499
499
|
curatedWorkers: {
|
|
500
|
-
status: "
|
|
500
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
501
|
+
curatedWorkerId: string;
|
|
502
|
+
error: string | null;
|
|
501
503
|
scanned: number;
|
|
502
504
|
queuedForReview: number;
|
|
503
505
|
failed: number;
|
|
504
|
-
error: string | null;
|
|
505
|
-
curatedWorkerId: string;
|
|
506
506
|
}[];
|
|
507
507
|
}, {
|
|
508
|
-
status: "
|
|
508
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
509
509
|
id: string;
|
|
510
510
|
createdAt: string;
|
|
511
|
-
startedAt: string | null;
|
|
512
|
-
finishedAt: string | null;
|
|
513
511
|
workers: {
|
|
514
|
-
status: "
|
|
512
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
515
513
|
workerId: string;
|
|
514
|
+
error: string | null;
|
|
516
515
|
scanned: number;
|
|
517
516
|
queuedForReview: number;
|
|
518
517
|
failed: number;
|
|
519
|
-
error: string | null;
|
|
520
518
|
}[];
|
|
519
|
+
startedAt: string | null;
|
|
520
|
+
finishedAt: string | null;
|
|
521
521
|
curatedWorkers?: {
|
|
522
|
-
status: "
|
|
522
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
523
|
+
curatedWorkerId: string;
|
|
524
|
+
error: string | null;
|
|
523
525
|
scanned: number;
|
|
524
526
|
queuedForReview: number;
|
|
525
527
|
failed: number;
|
|
526
|
-
error: string | null;
|
|
527
|
-
curatedWorkerId: string;
|
|
528
528
|
}[] | undefined;
|
|
529
529
|
}>;
|
|
530
530
|
export declare const StartDocumentBackfillJobSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -576,39 +576,39 @@ export declare const BackfillSubjectDocumentSchema: z.ZodObject<{
|
|
|
576
576
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
577
577
|
confidence: z.ZodNumber;
|
|
578
578
|
}, "strip", z.ZodTypeAny, {
|
|
579
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
580
579
|
firstName: string | null;
|
|
581
580
|
lastName: string | null;
|
|
581
|
+
nationality: string | null;
|
|
582
582
|
dateOfBirth: string | null;
|
|
583
|
-
expiryDate: string | null;
|
|
584
583
|
issueDate: string | null;
|
|
584
|
+
expiryDate: string | null;
|
|
585
585
|
referenceNumber: string | null;
|
|
586
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
586
587
|
shareCode: string | null;
|
|
587
|
-
nationality: string | null;
|
|
588
588
|
confidence: number;
|
|
589
|
-
qualificationName?: string | null | undefined;
|
|
590
|
-
qualificationTypeName?: string | null | undefined;
|
|
591
589
|
qualificationId?: string | null | undefined;
|
|
592
590
|
qualificationTypeId?: string | null | undefined;
|
|
591
|
+
qualificationName?: string | null | undefined;
|
|
592
|
+
qualificationTypeName?: string | null | undefined;
|
|
593
593
|
qualificationIssuerText?: string | null | undefined;
|
|
594
594
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
595
595
|
qualificationRoleText?: string | null | undefined;
|
|
596
596
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
597
597
|
}, {
|
|
598
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
599
598
|
firstName: string | null;
|
|
600
599
|
lastName: string | null;
|
|
600
|
+
nationality: string | null;
|
|
601
601
|
dateOfBirth: string | null;
|
|
602
|
-
expiryDate: string | null;
|
|
603
602
|
issueDate: string | null;
|
|
603
|
+
expiryDate: string | null;
|
|
604
604
|
referenceNumber: string | null;
|
|
605
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
605
606
|
shareCode: string | null;
|
|
606
|
-
nationality: string | null;
|
|
607
607
|
confidence: number;
|
|
608
|
-
qualificationName?: string | null | undefined;
|
|
609
|
-
qualificationTypeName?: string | null | undefined;
|
|
610
608
|
qualificationId?: string | null | undefined;
|
|
611
609
|
qualificationTypeId?: string | null | undefined;
|
|
610
|
+
qualificationName?: string | null | undefined;
|
|
611
|
+
qualificationTypeName?: string | null | undefined;
|
|
612
612
|
qualificationIssuerText?: string | null | undefined;
|
|
613
613
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
614
614
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -623,49 +623,49 @@ export declare const BackfillSubjectDocumentSchema: z.ZodObject<{
|
|
|
623
623
|
issueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
624
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
625
625
|
}, "strip", z.ZodTypeAny, {
|
|
626
|
-
documentType?: string | null | undefined;
|
|
627
|
-
expiryDate?: string | null | undefined;
|
|
628
626
|
issueDate?: string | null | undefined;
|
|
627
|
+
expiryDate?: string | null | undefined;
|
|
629
628
|
referenceNumber?: string | null | undefined;
|
|
629
|
+
documentType?: string | null | undefined;
|
|
630
630
|
documentNumber?: string | null | undefined;
|
|
631
631
|
}, {
|
|
632
|
-
documentType?: string | null | undefined;
|
|
633
|
-
expiryDate?: string | null | undefined;
|
|
634
632
|
issueDate?: string | null | undefined;
|
|
633
|
+
expiryDate?: string | null | undefined;
|
|
635
634
|
referenceNumber?: string | null | undefined;
|
|
635
|
+
documentType?: string | null | undefined;
|
|
636
636
|
documentNumber?: string | null | undefined;
|
|
637
637
|
}>>;
|
|
638
638
|
createdAt: z.ZodString;
|
|
639
639
|
}, "strip", z.ZodTypeAny, {
|
|
640
|
-
|
|
641
|
-
|
|
640
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
641
|
+
createdAt: string;
|
|
642
642
|
fileId: string;
|
|
643
|
-
|
|
643
|
+
confidence: number | null;
|
|
644
|
+
mimeType: string | null;
|
|
645
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
644
646
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
645
647
|
extracted: {
|
|
646
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
647
648
|
firstName: string | null;
|
|
648
649
|
lastName: string | null;
|
|
650
|
+
nationality: string | null;
|
|
649
651
|
dateOfBirth: string | null;
|
|
650
|
-
expiryDate: string | null;
|
|
651
652
|
issueDate: string | null;
|
|
653
|
+
expiryDate: string | null;
|
|
652
654
|
referenceNumber: string | null;
|
|
655
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
653
656
|
shareCode: string | null;
|
|
654
|
-
nationality: string | null;
|
|
655
657
|
confidence: number;
|
|
656
|
-
qualificationName?: string | null | undefined;
|
|
657
|
-
qualificationTypeName?: string | null | undefined;
|
|
658
658
|
qualificationId?: string | null | undefined;
|
|
659
659
|
qualificationTypeId?: string | null | undefined;
|
|
660
|
+
qualificationName?: string | null | undefined;
|
|
661
|
+
qualificationTypeName?: string | null | undefined;
|
|
660
662
|
qualificationIssuerText?: string | null | undefined;
|
|
661
663
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
662
664
|
qualificationRoleText?: string | null | undefined;
|
|
663
665
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
664
666
|
} | null;
|
|
665
|
-
createdAt: string;
|
|
666
667
|
recordId: string;
|
|
667
668
|
originalName: string | null;
|
|
668
|
-
mimeType: string | null;
|
|
669
669
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
670
670
|
reviewable: boolean;
|
|
671
671
|
evaluatedAt: string | null;
|
|
@@ -673,42 +673,42 @@ export declare const BackfillSubjectDocumentSchema: z.ZodObject<{
|
|
|
673
673
|
currentQualificationId: string | null;
|
|
674
674
|
currentQualificationName: string | null;
|
|
675
675
|
sourceRow: {
|
|
676
|
-
documentType?: string | null | undefined;
|
|
677
|
-
expiryDate?: string | null | undefined;
|
|
678
676
|
issueDate?: string | null | undefined;
|
|
677
|
+
expiryDate?: string | null | undefined;
|
|
679
678
|
referenceNumber?: string | null | undefined;
|
|
679
|
+
documentType?: string | null | undefined;
|
|
680
680
|
documentNumber?: string | null | undefined;
|
|
681
681
|
} | null;
|
|
682
682
|
}, {
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
684
|
+
createdAt: string;
|
|
685
685
|
fileId: string;
|
|
686
|
-
|
|
686
|
+
confidence: number | null;
|
|
687
|
+
mimeType: string | null;
|
|
688
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
687
689
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
688
690
|
extracted: {
|
|
689
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
690
691
|
firstName: string | null;
|
|
691
692
|
lastName: string | null;
|
|
693
|
+
nationality: string | null;
|
|
692
694
|
dateOfBirth: string | null;
|
|
693
|
-
expiryDate: string | null;
|
|
694
695
|
issueDate: string | null;
|
|
696
|
+
expiryDate: string | null;
|
|
695
697
|
referenceNumber: string | null;
|
|
698
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
696
699
|
shareCode: string | null;
|
|
697
|
-
nationality: string | null;
|
|
698
700
|
confidence: number;
|
|
699
|
-
qualificationName?: string | null | undefined;
|
|
700
|
-
qualificationTypeName?: string | null | undefined;
|
|
701
701
|
qualificationId?: string | null | undefined;
|
|
702
702
|
qualificationTypeId?: string | null | undefined;
|
|
703
|
+
qualificationName?: string | null | undefined;
|
|
704
|
+
qualificationTypeName?: string | null | undefined;
|
|
703
705
|
qualificationIssuerText?: string | null | undefined;
|
|
704
706
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
705
707
|
qualificationRoleText?: string | null | undefined;
|
|
706
708
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
707
709
|
} | null;
|
|
708
|
-
createdAt: string;
|
|
709
710
|
recordId: string;
|
|
710
711
|
originalName: string | null;
|
|
711
|
-
mimeType: string | null;
|
|
712
712
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
713
713
|
reviewable: boolean;
|
|
714
714
|
evaluatedAt: string | null;
|
|
@@ -716,10 +716,10 @@ export declare const BackfillSubjectDocumentSchema: z.ZodObject<{
|
|
|
716
716
|
currentQualificationId: string | null;
|
|
717
717
|
currentQualificationName: string | null;
|
|
718
718
|
sourceRow: {
|
|
719
|
-
documentType?: string | null | undefined;
|
|
720
|
-
expiryDate?: string | null | undefined;
|
|
721
719
|
issueDate?: string | null | undefined;
|
|
720
|
+
expiryDate?: string | null | undefined;
|
|
722
721
|
referenceNumber?: string | null | undefined;
|
|
722
|
+
documentType?: string | null | undefined;
|
|
723
723
|
documentNumber?: string | null | undefined;
|
|
724
724
|
} | null;
|
|
725
725
|
}>;
|
|
@@ -736,30 +736,30 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
736
736
|
code: z.ZodNullable<z.ZodString>;
|
|
737
737
|
expiryDate: z.ZodNullable<z.ZodString>;
|
|
738
738
|
}, "strip", z.ZodTypeAny, {
|
|
739
|
-
expiryDate: string | null;
|
|
740
739
|
code: string | null;
|
|
741
|
-
}, {
|
|
742
740
|
expiryDate: string | null;
|
|
741
|
+
}, {
|
|
743
742
|
code: string | null;
|
|
743
|
+
expiryDate: string | null;
|
|
744
744
|
}>>;
|
|
745
745
|
}, "strip", z.ZodTypeAny, {
|
|
746
746
|
firstName: string | null;
|
|
747
747
|
lastName: string | null;
|
|
748
|
+
nationality: string | null;
|
|
748
749
|
dateOfBirth: string | null;
|
|
749
750
|
shareCode: {
|
|
750
|
-
expiryDate: string | null;
|
|
751
751
|
code: string | null;
|
|
752
|
+
expiryDate: string | null;
|
|
752
753
|
} | null;
|
|
753
|
-
nationality: string | null;
|
|
754
754
|
}, {
|
|
755
755
|
firstName: string | null;
|
|
756
756
|
lastName: string | null;
|
|
757
|
+
nationality: string | null;
|
|
757
758
|
dateOfBirth: string | null;
|
|
758
759
|
shareCode: {
|
|
759
|
-
expiryDate: string | null;
|
|
760
760
|
code: string | null;
|
|
761
|
+
expiryDate: string | null;
|
|
761
762
|
} | null;
|
|
762
|
-
nationality: string | null;
|
|
763
763
|
}>;
|
|
764
764
|
documents: z.ZodArray<z.ZodObject<{
|
|
765
765
|
recordId: z.ZodString;
|
|
@@ -794,39 +794,39 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
794
794
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
795
795
|
confidence: z.ZodNumber;
|
|
796
796
|
}, "strip", z.ZodTypeAny, {
|
|
797
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
798
797
|
firstName: string | null;
|
|
799
798
|
lastName: string | null;
|
|
799
|
+
nationality: string | null;
|
|
800
800
|
dateOfBirth: string | null;
|
|
801
|
-
expiryDate: string | null;
|
|
802
801
|
issueDate: string | null;
|
|
802
|
+
expiryDate: string | null;
|
|
803
803
|
referenceNumber: string | null;
|
|
804
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
804
805
|
shareCode: string | null;
|
|
805
|
-
nationality: string | null;
|
|
806
806
|
confidence: number;
|
|
807
|
-
qualificationName?: string | null | undefined;
|
|
808
|
-
qualificationTypeName?: string | null | undefined;
|
|
809
807
|
qualificationId?: string | null | undefined;
|
|
810
808
|
qualificationTypeId?: string | null | undefined;
|
|
809
|
+
qualificationName?: string | null | undefined;
|
|
810
|
+
qualificationTypeName?: string | null | undefined;
|
|
811
811
|
qualificationIssuerText?: string | null | undefined;
|
|
812
812
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
813
813
|
qualificationRoleText?: string | null | undefined;
|
|
814
814
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
815
815
|
}, {
|
|
816
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
817
816
|
firstName: string | null;
|
|
818
817
|
lastName: string | null;
|
|
818
|
+
nationality: string | null;
|
|
819
819
|
dateOfBirth: string | null;
|
|
820
|
-
expiryDate: string | null;
|
|
821
820
|
issueDate: string | null;
|
|
821
|
+
expiryDate: string | null;
|
|
822
822
|
referenceNumber: string | null;
|
|
823
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
823
824
|
shareCode: string | null;
|
|
824
|
-
nationality: string | null;
|
|
825
825
|
confidence: number;
|
|
826
|
-
qualificationName?: string | null | undefined;
|
|
827
|
-
qualificationTypeName?: string | null | undefined;
|
|
828
826
|
qualificationId?: string | null | undefined;
|
|
829
827
|
qualificationTypeId?: string | null | undefined;
|
|
828
|
+
qualificationName?: string | null | undefined;
|
|
829
|
+
qualificationTypeName?: string | null | undefined;
|
|
830
830
|
qualificationIssuerText?: string | null | undefined;
|
|
831
831
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
832
832
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -841,49 +841,49 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
841
841
|
issueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
842
842
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
843
|
}, "strip", z.ZodTypeAny, {
|
|
844
|
-
documentType?: string | null | undefined;
|
|
845
|
-
expiryDate?: string | null | undefined;
|
|
846
844
|
issueDate?: string | null | undefined;
|
|
845
|
+
expiryDate?: string | null | undefined;
|
|
847
846
|
referenceNumber?: string | null | undefined;
|
|
847
|
+
documentType?: string | null | undefined;
|
|
848
848
|
documentNumber?: string | null | undefined;
|
|
849
849
|
}, {
|
|
850
|
-
documentType?: string | null | undefined;
|
|
851
|
-
expiryDate?: string | null | undefined;
|
|
852
850
|
issueDate?: string | null | undefined;
|
|
851
|
+
expiryDate?: string | null | undefined;
|
|
853
852
|
referenceNumber?: string | null | undefined;
|
|
853
|
+
documentType?: string | null | undefined;
|
|
854
854
|
documentNumber?: string | null | undefined;
|
|
855
855
|
}>>;
|
|
856
856
|
createdAt: z.ZodString;
|
|
857
857
|
}, "strip", z.ZodTypeAny, {
|
|
858
|
-
|
|
859
|
-
|
|
858
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
859
|
+
createdAt: string;
|
|
860
860
|
fileId: string;
|
|
861
|
-
|
|
861
|
+
confidence: number | null;
|
|
862
|
+
mimeType: string | null;
|
|
863
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
862
864
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
863
865
|
extracted: {
|
|
864
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
865
866
|
firstName: string | null;
|
|
866
867
|
lastName: string | null;
|
|
868
|
+
nationality: string | null;
|
|
867
869
|
dateOfBirth: string | null;
|
|
868
|
-
expiryDate: string | null;
|
|
869
870
|
issueDate: string | null;
|
|
871
|
+
expiryDate: string | null;
|
|
870
872
|
referenceNumber: string | null;
|
|
873
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
871
874
|
shareCode: string | null;
|
|
872
|
-
nationality: string | null;
|
|
873
875
|
confidence: number;
|
|
874
|
-
qualificationName?: string | null | undefined;
|
|
875
|
-
qualificationTypeName?: string | null | undefined;
|
|
876
876
|
qualificationId?: string | null | undefined;
|
|
877
877
|
qualificationTypeId?: string | null | undefined;
|
|
878
|
+
qualificationName?: string | null | undefined;
|
|
879
|
+
qualificationTypeName?: string | null | undefined;
|
|
878
880
|
qualificationIssuerText?: string | null | undefined;
|
|
879
881
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
880
882
|
qualificationRoleText?: string | null | undefined;
|
|
881
883
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
882
884
|
} | null;
|
|
883
|
-
createdAt: string;
|
|
884
885
|
recordId: string;
|
|
885
886
|
originalName: string | null;
|
|
886
|
-
mimeType: string | null;
|
|
887
887
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
888
888
|
reviewable: boolean;
|
|
889
889
|
evaluatedAt: string | null;
|
|
@@ -891,42 +891,42 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
891
891
|
currentQualificationId: string | null;
|
|
892
892
|
currentQualificationName: string | null;
|
|
893
893
|
sourceRow: {
|
|
894
|
-
documentType?: string | null | undefined;
|
|
895
|
-
expiryDate?: string | null | undefined;
|
|
896
894
|
issueDate?: string | null | undefined;
|
|
895
|
+
expiryDate?: string | null | undefined;
|
|
897
896
|
referenceNumber?: string | null | undefined;
|
|
897
|
+
documentType?: string | null | undefined;
|
|
898
898
|
documentNumber?: string | null | undefined;
|
|
899
899
|
} | null;
|
|
900
900
|
}, {
|
|
901
|
-
|
|
902
|
-
|
|
901
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
902
|
+
createdAt: string;
|
|
903
903
|
fileId: string;
|
|
904
|
-
|
|
904
|
+
confidence: number | null;
|
|
905
|
+
mimeType: string | null;
|
|
906
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
905
907
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
906
908
|
extracted: {
|
|
907
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
908
909
|
firstName: string | null;
|
|
909
910
|
lastName: string | null;
|
|
911
|
+
nationality: string | null;
|
|
910
912
|
dateOfBirth: string | null;
|
|
911
|
-
expiryDate: string | null;
|
|
912
913
|
issueDate: string | null;
|
|
914
|
+
expiryDate: string | null;
|
|
913
915
|
referenceNumber: string | null;
|
|
916
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
914
917
|
shareCode: string | null;
|
|
915
|
-
nationality: string | null;
|
|
916
918
|
confidence: number;
|
|
917
|
-
qualificationName?: string | null | undefined;
|
|
918
|
-
qualificationTypeName?: string | null | undefined;
|
|
919
919
|
qualificationId?: string | null | undefined;
|
|
920
920
|
qualificationTypeId?: string | null | undefined;
|
|
921
|
+
qualificationName?: string | null | undefined;
|
|
922
|
+
qualificationTypeName?: string | null | undefined;
|
|
921
923
|
qualificationIssuerText?: string | null | undefined;
|
|
922
924
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
923
925
|
qualificationRoleText?: string | null | undefined;
|
|
924
926
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
925
927
|
} | null;
|
|
926
|
-
createdAt: string;
|
|
927
928
|
recordId: string;
|
|
928
929
|
originalName: string | null;
|
|
929
|
-
mimeType: string | null;
|
|
930
930
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
931
931
|
reviewable: boolean;
|
|
932
932
|
evaluatedAt: string | null;
|
|
@@ -934,57 +934,57 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
934
934
|
currentQualificationId: string | null;
|
|
935
935
|
currentQualificationName: string | null;
|
|
936
936
|
sourceRow: {
|
|
937
|
-
documentType?: string | null | undefined;
|
|
938
|
-
expiryDate?: string | null | undefined;
|
|
939
937
|
issueDate?: string | null | undefined;
|
|
938
|
+
expiryDate?: string | null | undefined;
|
|
940
939
|
referenceNumber?: string | null | undefined;
|
|
940
|
+
documentType?: string | null | undefined;
|
|
941
941
|
documentNumber?: string | null | undefined;
|
|
942
942
|
} | null;
|
|
943
943
|
}>, "many">;
|
|
944
944
|
}, "strip", z.ZodTypeAny, {
|
|
945
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
946
945
|
subjectId: string;
|
|
947
|
-
subjectName: string;
|
|
948
946
|
current: {
|
|
949
947
|
firstName: string | null;
|
|
950
948
|
lastName: string | null;
|
|
949
|
+
nationality: string | null;
|
|
951
950
|
dateOfBirth: string | null;
|
|
952
951
|
shareCode: {
|
|
953
|
-
expiryDate: string | null;
|
|
954
952
|
code: string | null;
|
|
953
|
+
expiryDate: string | null;
|
|
955
954
|
} | null;
|
|
956
|
-
nationality: string | null;
|
|
957
955
|
};
|
|
956
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
957
|
+
subjectName: string;
|
|
958
958
|
documents: {
|
|
959
|
-
|
|
960
|
-
|
|
959
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
960
|
+
createdAt: string;
|
|
961
961
|
fileId: string;
|
|
962
|
-
|
|
962
|
+
confidence: number | null;
|
|
963
|
+
mimeType: string | null;
|
|
964
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
963
965
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
964
966
|
extracted: {
|
|
965
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
966
967
|
firstName: string | null;
|
|
967
968
|
lastName: string | null;
|
|
969
|
+
nationality: string | null;
|
|
968
970
|
dateOfBirth: string | null;
|
|
969
|
-
expiryDate: string | null;
|
|
970
971
|
issueDate: string | null;
|
|
972
|
+
expiryDate: string | null;
|
|
971
973
|
referenceNumber: string | null;
|
|
974
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
972
975
|
shareCode: string | null;
|
|
973
|
-
nationality: string | null;
|
|
974
976
|
confidence: number;
|
|
975
|
-
qualificationName?: string | null | undefined;
|
|
976
|
-
qualificationTypeName?: string | null | undefined;
|
|
977
977
|
qualificationId?: string | null | undefined;
|
|
978
978
|
qualificationTypeId?: string | null | undefined;
|
|
979
|
+
qualificationName?: string | null | undefined;
|
|
980
|
+
qualificationTypeName?: string | null | undefined;
|
|
979
981
|
qualificationIssuerText?: string | null | undefined;
|
|
980
982
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
981
983
|
qualificationRoleText?: string | null | undefined;
|
|
982
984
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
983
985
|
} | null;
|
|
984
|
-
createdAt: string;
|
|
985
986
|
recordId: string;
|
|
986
987
|
originalName: string | null;
|
|
987
|
-
mimeType: string | null;
|
|
988
988
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
989
989
|
reviewable: boolean;
|
|
990
990
|
evaluatedAt: string | null;
|
|
@@ -992,57 +992,57 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
992
992
|
currentQualificationId: string | null;
|
|
993
993
|
currentQualificationName: string | null;
|
|
994
994
|
sourceRow: {
|
|
995
|
-
documentType?: string | null | undefined;
|
|
996
|
-
expiryDate?: string | null | undefined;
|
|
997
995
|
issueDate?: string | null | undefined;
|
|
996
|
+
expiryDate?: string | null | undefined;
|
|
998
997
|
referenceNumber?: string | null | undefined;
|
|
998
|
+
documentType?: string | null | undefined;
|
|
999
999
|
documentNumber?: string | null | undefined;
|
|
1000
1000
|
} | null;
|
|
1001
1001
|
}[];
|
|
1002
1002
|
}, {
|
|
1003
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1004
1003
|
subjectId: string;
|
|
1005
|
-
subjectName: string;
|
|
1006
1004
|
current: {
|
|
1007
1005
|
firstName: string | null;
|
|
1008
1006
|
lastName: string | null;
|
|
1007
|
+
nationality: string | null;
|
|
1009
1008
|
dateOfBirth: string | null;
|
|
1010
1009
|
shareCode: {
|
|
1011
|
-
expiryDate: string | null;
|
|
1012
1010
|
code: string | null;
|
|
1011
|
+
expiryDate: string | null;
|
|
1013
1012
|
} | null;
|
|
1014
|
-
nationality: string | null;
|
|
1015
1013
|
};
|
|
1014
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1015
|
+
subjectName: string;
|
|
1016
1016
|
documents: {
|
|
1017
|
-
|
|
1018
|
-
|
|
1017
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1018
|
+
createdAt: string;
|
|
1019
1019
|
fileId: string;
|
|
1020
|
-
|
|
1020
|
+
confidence: number | null;
|
|
1021
|
+
mimeType: string | null;
|
|
1022
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1021
1023
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
1022
1024
|
extracted: {
|
|
1023
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1024
1025
|
firstName: string | null;
|
|
1025
1026
|
lastName: string | null;
|
|
1027
|
+
nationality: string | null;
|
|
1026
1028
|
dateOfBirth: string | null;
|
|
1027
|
-
expiryDate: string | null;
|
|
1028
1029
|
issueDate: string | null;
|
|
1030
|
+
expiryDate: string | null;
|
|
1029
1031
|
referenceNumber: string | null;
|
|
1032
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1030
1033
|
shareCode: string | null;
|
|
1031
|
-
nationality: string | null;
|
|
1032
1034
|
confidence: number;
|
|
1033
|
-
qualificationName?: string | null | undefined;
|
|
1034
|
-
qualificationTypeName?: string | null | undefined;
|
|
1035
1035
|
qualificationId?: string | null | undefined;
|
|
1036
1036
|
qualificationTypeId?: string | null | undefined;
|
|
1037
|
+
qualificationName?: string | null | undefined;
|
|
1038
|
+
qualificationTypeName?: string | null | undefined;
|
|
1037
1039
|
qualificationIssuerText?: string | null | undefined;
|
|
1038
1040
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1039
1041
|
qualificationRoleText?: string | null | undefined;
|
|
1040
1042
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
1041
1043
|
} | null;
|
|
1042
|
-
createdAt: string;
|
|
1043
1044
|
recordId: string;
|
|
1044
1045
|
originalName: string | null;
|
|
1045
|
-
mimeType: string | null;
|
|
1046
1046
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
1047
1047
|
reviewable: boolean;
|
|
1048
1048
|
evaluatedAt: string | null;
|
|
@@ -1050,10 +1050,10 @@ export declare const BackfillSubjectDetailSchema: z.ZodObject<{
|
|
|
1050
1050
|
currentQualificationId: string | null;
|
|
1051
1051
|
currentQualificationName: string | null;
|
|
1052
1052
|
sourceRow: {
|
|
1053
|
-
documentType?: string | null | undefined;
|
|
1054
|
-
expiryDate?: string | null | undefined;
|
|
1055
1053
|
issueDate?: string | null | undefined;
|
|
1054
|
+
expiryDate?: string | null | undefined;
|
|
1056
1055
|
referenceNumber?: string | null | undefined;
|
|
1056
|
+
documentType?: string | null | undefined;
|
|
1057
1057
|
documentNumber?: string | null | undefined;
|
|
1058
1058
|
} | null;
|
|
1059
1059
|
}[];
|
|
@@ -1067,13 +1067,13 @@ export declare const ApplyBackfillSubjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1067
1067
|
}, "strip", z.ZodTypeAny, {
|
|
1068
1068
|
firstName?: string | undefined;
|
|
1069
1069
|
lastName?: string | undefined;
|
|
1070
|
-
dateOfBirth?: string | undefined;
|
|
1071
1070
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1071
|
+
dateOfBirth?: string | undefined;
|
|
1072
1072
|
}, {
|
|
1073
1073
|
firstName?: string | undefined;
|
|
1074
1074
|
lastName?: string | undefined;
|
|
1075
|
-
dateOfBirth?: string | undefined;
|
|
1076
1075
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1076
|
+
dateOfBirth?: string | undefined;
|
|
1077
1077
|
}>;
|
|
1078
1078
|
fieldSources: z.ZodObject<{
|
|
1079
1079
|
firstName: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1083,13 +1083,13 @@ export declare const ApplyBackfillSubjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1083
1083
|
}, "strip", z.ZodTypeAny, {
|
|
1084
1084
|
firstName?: string[] | undefined;
|
|
1085
1085
|
lastName?: string[] | undefined;
|
|
1086
|
-
dateOfBirth?: string[] | undefined;
|
|
1087
1086
|
nationality?: string[] | undefined;
|
|
1087
|
+
dateOfBirth?: string[] | undefined;
|
|
1088
1088
|
}, {
|
|
1089
1089
|
firstName?: string[] | undefined;
|
|
1090
1090
|
lastName?: string[] | undefined;
|
|
1091
|
-
dateOfBirth?: string[] | undefined;
|
|
1092
1091
|
nationality?: string[] | undefined;
|
|
1092
|
+
dateOfBirth?: string[] | undefined;
|
|
1093
1093
|
}>;
|
|
1094
1094
|
documents: z.ZodArray<z.ZodObject<{
|
|
1095
1095
|
recordId: z.ZodString;
|
|
@@ -1098,97 +1098,97 @@ export declare const ApplyBackfillSubjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1098
1098
|
qualificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1099
1099
|
qualificationTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1100
1100
|
}, "strip", z.ZodTypeAny, {
|
|
1101
|
-
recordId: string;
|
|
1102
1101
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
1102
|
+
recordId: string;
|
|
1103
1103
|
qualificationId?: string | null | undefined;
|
|
1104
1104
|
qualificationTypeId?: string | null | undefined;
|
|
1105
1105
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
1106
1106
|
}, {
|
|
1107
|
-
recordId: string;
|
|
1108
1107
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
1108
|
+
recordId: string;
|
|
1109
1109
|
qualificationId?: string | null | undefined;
|
|
1110
1110
|
qualificationTypeId?: string | null | undefined;
|
|
1111
1111
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
1112
1112
|
}>, "many">;
|
|
1113
1113
|
}, "strip", z.ZodTypeAny, {
|
|
1114
|
+
fields: {
|
|
1115
|
+
firstName?: string | undefined;
|
|
1116
|
+
lastName?: string | undefined;
|
|
1117
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1118
|
+
dateOfBirth?: string | undefined;
|
|
1119
|
+
};
|
|
1114
1120
|
documents: {
|
|
1115
|
-
recordId: string;
|
|
1116
1121
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
1122
|
+
recordId: string;
|
|
1117
1123
|
qualificationId?: string | null | undefined;
|
|
1118
1124
|
qualificationTypeId?: string | null | undefined;
|
|
1119
1125
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
1120
1126
|
}[];
|
|
1121
|
-
fields: {
|
|
1122
|
-
firstName?: string | undefined;
|
|
1123
|
-
lastName?: string | undefined;
|
|
1124
|
-
dateOfBirth?: string | undefined;
|
|
1125
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1126
|
-
};
|
|
1127
1127
|
fieldSources: {
|
|
1128
1128
|
firstName?: string[] | undefined;
|
|
1129
1129
|
lastName?: string[] | undefined;
|
|
1130
|
-
dateOfBirth?: string[] | undefined;
|
|
1131
1130
|
nationality?: string[] | undefined;
|
|
1131
|
+
dateOfBirth?: string[] | undefined;
|
|
1132
1132
|
};
|
|
1133
1133
|
}, {
|
|
1134
|
+
fields: {
|
|
1135
|
+
firstName?: string | undefined;
|
|
1136
|
+
lastName?: string | undefined;
|
|
1137
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1138
|
+
dateOfBirth?: string | undefined;
|
|
1139
|
+
};
|
|
1134
1140
|
documents: {
|
|
1135
|
-
recordId: string;
|
|
1136
1141
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
1142
|
+
recordId: string;
|
|
1137
1143
|
qualificationId?: string | null | undefined;
|
|
1138
1144
|
qualificationTypeId?: string | null | undefined;
|
|
1139
1145
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
1140
1146
|
}[];
|
|
1141
|
-
fields: {
|
|
1142
|
-
firstName?: string | undefined;
|
|
1143
|
-
lastName?: string | undefined;
|
|
1144
|
-
dateOfBirth?: string | undefined;
|
|
1145
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1146
|
-
};
|
|
1147
1147
|
fieldSources: {
|
|
1148
1148
|
firstName?: string[] | undefined;
|
|
1149
1149
|
lastName?: string[] | undefined;
|
|
1150
|
-
dateOfBirth?: string[] | undefined;
|
|
1151
1150
|
nationality?: string[] | undefined;
|
|
1151
|
+
dateOfBirth?: string[] | undefined;
|
|
1152
1152
|
};
|
|
1153
1153
|
}>, {
|
|
1154
|
+
fields: {
|
|
1155
|
+
firstName?: string | undefined;
|
|
1156
|
+
lastName?: string | undefined;
|
|
1157
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1158
|
+
dateOfBirth?: string | undefined;
|
|
1159
|
+
};
|
|
1154
1160
|
documents: {
|
|
1155
|
-
recordId: string;
|
|
1156
1161
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
1162
|
+
recordId: string;
|
|
1157
1163
|
qualificationId?: string | null | undefined;
|
|
1158
1164
|
qualificationTypeId?: string | null | undefined;
|
|
1159
1165
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
1160
1166
|
}[];
|
|
1161
|
-
fields: {
|
|
1162
|
-
firstName?: string | undefined;
|
|
1163
|
-
lastName?: string | undefined;
|
|
1164
|
-
dateOfBirth?: string | undefined;
|
|
1165
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1166
|
-
};
|
|
1167
1167
|
fieldSources: {
|
|
1168
1168
|
firstName?: string[] | undefined;
|
|
1169
1169
|
lastName?: string[] | undefined;
|
|
1170
|
-
dateOfBirth?: string[] | undefined;
|
|
1171
1170
|
nationality?: string[] | undefined;
|
|
1171
|
+
dateOfBirth?: string[] | undefined;
|
|
1172
1172
|
};
|
|
1173
1173
|
}, {
|
|
1174
|
+
fields: {
|
|
1175
|
+
firstName?: string | undefined;
|
|
1176
|
+
lastName?: string | undefined;
|
|
1177
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1178
|
+
dateOfBirth?: string | undefined;
|
|
1179
|
+
};
|
|
1174
1180
|
documents: {
|
|
1175
|
-
recordId: string;
|
|
1176
1181
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
1182
|
+
recordId: string;
|
|
1177
1183
|
qualificationId?: string | null | undefined;
|
|
1178
1184
|
qualificationTypeId?: string | null | undefined;
|
|
1179
1185
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
1180
1186
|
}[];
|
|
1181
|
-
fields: {
|
|
1182
|
-
firstName?: string | undefined;
|
|
1183
|
-
lastName?: string | undefined;
|
|
1184
|
-
dateOfBirth?: string | undefined;
|
|
1185
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
1186
|
-
};
|
|
1187
1187
|
fieldSources: {
|
|
1188
1188
|
firstName?: string[] | undefined;
|
|
1189
1189
|
lastName?: string[] | undefined;
|
|
1190
|
-
dateOfBirth?: string[] | undefined;
|
|
1191
1190
|
nationality?: string[] | undefined;
|
|
1191
|
+
dateOfBirth?: string[] | undefined;
|
|
1192
1192
|
};
|
|
1193
1193
|
}>;
|
|
1194
1194
|
export declare const BackfillAuditRecordSchema: z.ZodObject<{
|
|
@@ -1211,14 +1211,14 @@ export declare const BackfillAuditRecordSchema: z.ZodObject<{
|
|
|
1211
1211
|
extractorFingerprint: z.ZodNullable<z.ZodString>;
|
|
1212
1212
|
evaluationFingerprint: z.ZodNullable<z.ZodString>;
|
|
1213
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1214
|
-
|
|
1215
|
-
|
|
1214
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1215
|
+
createdAt: string;
|
|
1216
1216
|
fileId: string;
|
|
1217
1217
|
workerId: string | null;
|
|
1218
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1219
|
-
subjectName: string;
|
|
1220
1218
|
curatedWorkerId: string | null;
|
|
1221
|
-
|
|
1219
|
+
confidence: number | null;
|
|
1220
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1221
|
+
subjectName: string;
|
|
1222
1222
|
recordId: string;
|
|
1223
1223
|
originalName: string | null;
|
|
1224
1224
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -1230,14 +1230,14 @@ export declare const BackfillAuditRecordSchema: z.ZodObject<{
|
|
|
1230
1230
|
extractorFingerprint: string | null;
|
|
1231
1231
|
evaluationFingerprint: string | null;
|
|
1232
1232
|
}, {
|
|
1233
|
-
|
|
1234
|
-
|
|
1233
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1234
|
+
createdAt: string;
|
|
1235
1235
|
fileId: string;
|
|
1236
1236
|
workerId: string | null;
|
|
1237
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1238
|
-
subjectName: string;
|
|
1239
1237
|
curatedWorkerId: string | null;
|
|
1240
|
-
|
|
1238
|
+
confidence: number | null;
|
|
1239
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1240
|
+
subjectName: string;
|
|
1241
1241
|
recordId: string;
|
|
1242
1242
|
originalName: string | null;
|
|
1243
1243
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -1252,17 +1252,17 @@ export declare const BackfillAuditRecordSchema: z.ZodObject<{
|
|
|
1252
1252
|
export declare const BackfillAuditQuerySchema: z.ZodObject<{
|
|
1253
1253
|
page: z.ZodDefault<z.ZodNumber>;
|
|
1254
1254
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1255
|
-
statuses: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, z.ZodArray<z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, "many">]>>, ("
|
|
1255
|
+
statuses: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, z.ZodArray<z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, "many">]>>, ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined, "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined>;
|
|
1256
1256
|
supersededOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1257
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1258
|
-
page: number;
|
|
1259
1258
|
limit: number;
|
|
1260
|
-
|
|
1259
|
+
page: number;
|
|
1260
|
+
statuses?: ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined;
|
|
1261
1261
|
supersededOnly?: boolean | undefined;
|
|
1262
1262
|
}, {
|
|
1263
|
-
page?: number | undefined;
|
|
1264
1263
|
limit?: number | undefined;
|
|
1265
|
-
|
|
1264
|
+
page?: number | undefined;
|
|
1265
|
+
statuses?: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined;
|
|
1266
1266
|
supersededOnly?: boolean | undefined;
|
|
1267
1267
|
}>;
|
|
1268
1268
|
export declare const BackfillAuditListSchema: z.ZodObject<{
|
|
@@ -1286,14 +1286,14 @@ export declare const BackfillAuditListSchema: z.ZodObject<{
|
|
|
1286
1286
|
extractorFingerprint: z.ZodNullable<z.ZodString>;
|
|
1287
1287
|
evaluationFingerprint: z.ZodNullable<z.ZodString>;
|
|
1288
1288
|
}, "strip", z.ZodTypeAny, {
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1290
|
+
createdAt: string;
|
|
1291
1291
|
fileId: string;
|
|
1292
1292
|
workerId: string | null;
|
|
1293
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1294
|
-
subjectName: string;
|
|
1295
1293
|
curatedWorkerId: string | null;
|
|
1296
|
-
|
|
1294
|
+
confidence: number | null;
|
|
1295
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1296
|
+
subjectName: string;
|
|
1297
1297
|
recordId: string;
|
|
1298
1298
|
originalName: string | null;
|
|
1299
1299
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -1305,14 +1305,14 @@ export declare const BackfillAuditListSchema: z.ZodObject<{
|
|
|
1305
1305
|
extractorFingerprint: string | null;
|
|
1306
1306
|
evaluationFingerprint: string | null;
|
|
1307
1307
|
}, {
|
|
1308
|
-
|
|
1309
|
-
|
|
1308
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1309
|
+
createdAt: string;
|
|
1310
1310
|
fileId: string;
|
|
1311
1311
|
workerId: string | null;
|
|
1312
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1313
|
-
subjectName: string;
|
|
1314
1312
|
curatedWorkerId: string | null;
|
|
1315
|
-
|
|
1313
|
+
confidence: number | null;
|
|
1314
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1315
|
+
subjectName: string;
|
|
1316
1316
|
recordId: string;
|
|
1317
1317
|
originalName: string | null;
|
|
1318
1318
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -1329,15 +1329,17 @@ export declare const BackfillAuditListSchema: z.ZodObject<{
|
|
|
1329
1329
|
page: z.ZodNumber;
|
|
1330
1330
|
limit: z.ZodNumber;
|
|
1331
1331
|
}, "strip", z.ZodTypeAny, {
|
|
1332
|
+
limit: number;
|
|
1333
|
+
page: number;
|
|
1332
1334
|
items: {
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1336
|
+
createdAt: string;
|
|
1335
1337
|
fileId: string;
|
|
1336
1338
|
workerId: string | null;
|
|
1337
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1338
|
-
subjectName: string;
|
|
1339
1339
|
curatedWorkerId: string | null;
|
|
1340
|
-
|
|
1340
|
+
confidence: number | null;
|
|
1341
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1342
|
+
subjectName: string;
|
|
1341
1343
|
recordId: string;
|
|
1342
1344
|
originalName: string | null;
|
|
1343
1345
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -1351,18 +1353,18 @@ export declare const BackfillAuditListSchema: z.ZodObject<{
|
|
|
1351
1353
|
}[];
|
|
1352
1354
|
totalCount: number;
|
|
1353
1355
|
totalPages: number;
|
|
1354
|
-
page: number;
|
|
1355
|
-
limit: number;
|
|
1356
1356
|
}, {
|
|
1357
|
+
limit: number;
|
|
1358
|
+
page: number;
|
|
1357
1359
|
items: {
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1361
|
+
createdAt: string;
|
|
1360
1362
|
fileId: string;
|
|
1361
1363
|
workerId: string | null;
|
|
1362
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1363
|
-
subjectName: string;
|
|
1364
1364
|
curatedWorkerId: string | null;
|
|
1365
|
-
|
|
1365
|
+
confidence: number | null;
|
|
1366
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1367
|
+
subjectName: string;
|
|
1366
1368
|
recordId: string;
|
|
1367
1369
|
originalName: string | null;
|
|
1368
1370
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -1376,8 +1378,6 @@ export declare const BackfillAuditListSchema: z.ZodObject<{
|
|
|
1376
1378
|
}[];
|
|
1377
1379
|
totalCount: number;
|
|
1378
1380
|
totalPages: number;
|
|
1379
|
-
page: number;
|
|
1380
|
-
limit: number;
|
|
1381
1381
|
}>;
|
|
1382
1382
|
export declare const documentIntakeContract: {
|
|
1383
1383
|
extract: {
|
|
@@ -1404,17 +1404,17 @@ export declare const documentIntakeContract: {
|
|
|
1404
1404
|
path: z.ZodString;
|
|
1405
1405
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1406
1406
|
}, "strip", z.ZodTypeAny, {
|
|
1407
|
+
message: string;
|
|
1407
1408
|
code: string;
|
|
1408
1409
|
path: string;
|
|
1409
|
-
message: string;
|
|
1410
1410
|
statusCode: number;
|
|
1411
1411
|
timestamp: string;
|
|
1412
1412
|
details?: unknown;
|
|
1413
1413
|
correlationId?: string | undefined;
|
|
1414
1414
|
}, {
|
|
1415
|
+
message: string;
|
|
1415
1416
|
code: string;
|
|
1416
1417
|
path: string;
|
|
1417
|
-
message: string;
|
|
1418
1418
|
statusCode: number;
|
|
1419
1419
|
timestamp: string;
|
|
1420
1420
|
details?: unknown;
|
|
@@ -1447,39 +1447,39 @@ export declare const documentIntakeContract: {
|
|
|
1447
1447
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
1448
1448
|
confidence: z.ZodNumber;
|
|
1449
1449
|
}, "strip", z.ZodTypeAny, {
|
|
1450
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1451
1450
|
firstName: string | null;
|
|
1452
1451
|
lastName: string | null;
|
|
1452
|
+
nationality: string | null;
|
|
1453
1453
|
dateOfBirth: string | null;
|
|
1454
|
-
expiryDate: string | null;
|
|
1455
1454
|
issueDate: string | null;
|
|
1455
|
+
expiryDate: string | null;
|
|
1456
1456
|
referenceNumber: string | null;
|
|
1457
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1457
1458
|
shareCode: string | null;
|
|
1458
|
-
nationality: string | null;
|
|
1459
1459
|
confidence: number;
|
|
1460
|
-
qualificationName?: string | null | undefined;
|
|
1461
|
-
qualificationTypeName?: string | null | undefined;
|
|
1462
1460
|
qualificationId?: string | null | undefined;
|
|
1463
1461
|
qualificationTypeId?: string | null | undefined;
|
|
1462
|
+
qualificationName?: string | null | undefined;
|
|
1463
|
+
qualificationTypeName?: string | null | undefined;
|
|
1464
1464
|
qualificationIssuerText?: string | null | undefined;
|
|
1465
1465
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1466
1466
|
qualificationRoleText?: string | null | undefined;
|
|
1467
1467
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
1468
1468
|
}, {
|
|
1469
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1470
1469
|
firstName: string | null;
|
|
1471
1470
|
lastName: string | null;
|
|
1471
|
+
nationality: string | null;
|
|
1472
1472
|
dateOfBirth: string | null;
|
|
1473
|
-
expiryDate: string | null;
|
|
1474
1473
|
issueDate: string | null;
|
|
1474
|
+
expiryDate: string | null;
|
|
1475
1475
|
referenceNumber: string | null;
|
|
1476
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1476
1477
|
shareCode: string | null;
|
|
1477
|
-
nationality: string | null;
|
|
1478
1478
|
confidence: number;
|
|
1479
|
-
qualificationName?: string | null | undefined;
|
|
1480
|
-
qualificationTypeName?: string | null | undefined;
|
|
1481
1479
|
qualificationId?: string | null | undefined;
|
|
1482
1480
|
qualificationTypeId?: string | null | undefined;
|
|
1481
|
+
qualificationName?: string | null | undefined;
|
|
1482
|
+
qualificationTypeName?: string | null | undefined;
|
|
1483
1483
|
qualificationIssuerText?: string | null | undefined;
|
|
1484
1484
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1485
1485
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -1489,29 +1489,29 @@ export declare const documentIntakeContract: {
|
|
|
1489
1489
|
overridden: z.ZodBoolean;
|
|
1490
1490
|
status: z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>;
|
|
1491
1491
|
}, "strip", z.ZodTypeAny, {
|
|
1492
|
-
|
|
1493
|
-
status: "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | "FAILED";
|
|
1492
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1494
1493
|
id: string;
|
|
1495
1494
|
fileId: string;
|
|
1496
1495
|
workerId: string | null;
|
|
1497
|
-
|
|
1496
|
+
confidence: number | null;
|
|
1497
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1498
1498
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
1499
1499
|
destinationFinal: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN" | null;
|
|
1500
1500
|
extracted: {
|
|
1501
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1502
1501
|
firstName: string | null;
|
|
1503
1502
|
lastName: string | null;
|
|
1503
|
+
nationality: string | null;
|
|
1504
1504
|
dateOfBirth: string | null;
|
|
1505
|
-
expiryDate: string | null;
|
|
1506
1505
|
issueDate: string | null;
|
|
1506
|
+
expiryDate: string | null;
|
|
1507
1507
|
referenceNumber: string | null;
|
|
1508
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1508
1509
|
shareCode: string | null;
|
|
1509
|
-
nationality: string | null;
|
|
1510
1510
|
confidence: number;
|
|
1511
|
-
qualificationName?: string | null | undefined;
|
|
1512
|
-
qualificationTypeName?: string | null | undefined;
|
|
1513
1511
|
qualificationId?: string | null | undefined;
|
|
1514
1512
|
qualificationTypeId?: string | null | undefined;
|
|
1513
|
+
qualificationName?: string | null | undefined;
|
|
1514
|
+
qualificationTypeName?: string | null | undefined;
|
|
1515
1515
|
qualificationIssuerText?: string | null | undefined;
|
|
1516
1516
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1517
1517
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -1519,29 +1519,29 @@ export declare const documentIntakeContract: {
|
|
|
1519
1519
|
} | null;
|
|
1520
1520
|
overridden: boolean;
|
|
1521
1521
|
}, {
|
|
1522
|
-
|
|
1523
|
-
status: "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | "FAILED";
|
|
1522
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1524
1523
|
id: string;
|
|
1525
1524
|
fileId: string;
|
|
1526
1525
|
workerId: string | null;
|
|
1527
|
-
|
|
1526
|
+
confidence: number | null;
|
|
1527
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1528
1528
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
1529
1529
|
destinationFinal: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN" | null;
|
|
1530
1530
|
extracted: {
|
|
1531
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1532
1531
|
firstName: string | null;
|
|
1533
1532
|
lastName: string | null;
|
|
1533
|
+
nationality: string | null;
|
|
1534
1534
|
dateOfBirth: string | null;
|
|
1535
|
-
expiryDate: string | null;
|
|
1536
1535
|
issueDate: string | null;
|
|
1536
|
+
expiryDate: string | null;
|
|
1537
1537
|
referenceNumber: string | null;
|
|
1538
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1538
1539
|
shareCode: string | null;
|
|
1539
|
-
nationality: string | null;
|
|
1540
1540
|
confidence: number;
|
|
1541
|
-
qualificationName?: string | null | undefined;
|
|
1542
|
-
qualificationTypeName?: string | null | undefined;
|
|
1543
1541
|
qualificationId?: string | null | undefined;
|
|
1544
1542
|
qualificationTypeId?: string | null | undefined;
|
|
1543
|
+
qualificationName?: string | null | undefined;
|
|
1544
|
+
qualificationTypeName?: string | null | undefined;
|
|
1545
1545
|
qualificationIssuerText?: string | null | undefined;
|
|
1546
1546
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1547
1547
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -1558,17 +1558,17 @@ export declare const documentIntakeContract: {
|
|
|
1558
1558
|
path: z.ZodString;
|
|
1559
1559
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1560
1560
|
}, "strip", z.ZodTypeAny, {
|
|
1561
|
+
message: string;
|
|
1561
1562
|
code: string;
|
|
1562
1563
|
path: string;
|
|
1563
|
-
message: string;
|
|
1564
1564
|
statusCode: number;
|
|
1565
1565
|
timestamp: string;
|
|
1566
1566
|
details?: unknown;
|
|
1567
1567
|
correlationId?: string | undefined;
|
|
1568
1568
|
}, {
|
|
1569
|
+
message: string;
|
|
1569
1570
|
code: string;
|
|
1570
1571
|
path: string;
|
|
1571
|
-
message: string;
|
|
1572
1572
|
statusCode: number;
|
|
1573
1573
|
timestamp: string;
|
|
1574
1574
|
details?: unknown;
|
|
@@ -1631,17 +1631,17 @@ export declare const documentIntakeContract: {
|
|
|
1631
1631
|
path: z.ZodString;
|
|
1632
1632
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1633
1633
|
}, "strip", z.ZodTypeAny, {
|
|
1634
|
+
message: string;
|
|
1634
1635
|
code: string;
|
|
1635
1636
|
path: string;
|
|
1636
|
-
message: string;
|
|
1637
1637
|
statusCode: number;
|
|
1638
1638
|
timestamp: string;
|
|
1639
1639
|
details?: unknown;
|
|
1640
1640
|
correlationId?: string | undefined;
|
|
1641
1641
|
}, {
|
|
1642
|
+
message: string;
|
|
1642
1643
|
code: string;
|
|
1643
1644
|
path: string;
|
|
1644
|
-
message: string;
|
|
1645
1645
|
statusCode: number;
|
|
1646
1646
|
timestamp: string;
|
|
1647
1647
|
details?: unknown;
|
|
@@ -1674,39 +1674,39 @@ export declare const documentIntakeContract: {
|
|
|
1674
1674
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
1675
1675
|
confidence: z.ZodNumber;
|
|
1676
1676
|
}, "strip", z.ZodTypeAny, {
|
|
1677
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1678
1677
|
firstName: string | null;
|
|
1679
1678
|
lastName: string | null;
|
|
1679
|
+
nationality: string | null;
|
|
1680
1680
|
dateOfBirth: string | null;
|
|
1681
|
-
expiryDate: string | null;
|
|
1682
1681
|
issueDate: string | null;
|
|
1682
|
+
expiryDate: string | null;
|
|
1683
1683
|
referenceNumber: string | null;
|
|
1684
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1684
1685
|
shareCode: string | null;
|
|
1685
|
-
nationality: string | null;
|
|
1686
1686
|
confidence: number;
|
|
1687
|
-
qualificationName?: string | null | undefined;
|
|
1688
|
-
qualificationTypeName?: string | null | undefined;
|
|
1689
1687
|
qualificationId?: string | null | undefined;
|
|
1690
1688
|
qualificationTypeId?: string | null | undefined;
|
|
1689
|
+
qualificationName?: string | null | undefined;
|
|
1690
|
+
qualificationTypeName?: string | null | undefined;
|
|
1691
1691
|
qualificationIssuerText?: string | null | undefined;
|
|
1692
1692
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1693
1693
|
qualificationRoleText?: string | null | undefined;
|
|
1694
1694
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
1695
1695
|
}, {
|
|
1696
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1697
1696
|
firstName: string | null;
|
|
1698
1697
|
lastName: string | null;
|
|
1698
|
+
nationality: string | null;
|
|
1699
1699
|
dateOfBirth: string | null;
|
|
1700
|
-
expiryDate: string | null;
|
|
1701
1700
|
issueDate: string | null;
|
|
1701
|
+
expiryDate: string | null;
|
|
1702
1702
|
referenceNumber: string | null;
|
|
1703
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1703
1704
|
shareCode: string | null;
|
|
1704
|
-
nationality: string | null;
|
|
1705
1705
|
confidence: number;
|
|
1706
|
-
qualificationName?: string | null | undefined;
|
|
1707
|
-
qualificationTypeName?: string | null | undefined;
|
|
1708
1706
|
qualificationId?: string | null | undefined;
|
|
1709
1707
|
qualificationTypeId?: string | null | undefined;
|
|
1708
|
+
qualificationName?: string | null | undefined;
|
|
1709
|
+
qualificationTypeName?: string | null | undefined;
|
|
1710
1710
|
qualificationIssuerText?: string | null | undefined;
|
|
1711
1711
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1712
1712
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -1716,29 +1716,29 @@ export declare const documentIntakeContract: {
|
|
|
1716
1716
|
overridden: z.ZodBoolean;
|
|
1717
1717
|
status: z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>;
|
|
1718
1718
|
}, "strip", z.ZodTypeAny, {
|
|
1719
|
-
|
|
1720
|
-
status: "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | "FAILED";
|
|
1719
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1721
1720
|
id: string;
|
|
1722
1721
|
fileId: string;
|
|
1723
1722
|
workerId: string | null;
|
|
1724
|
-
|
|
1723
|
+
confidence: number | null;
|
|
1724
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1725
1725
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
1726
1726
|
destinationFinal: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN" | null;
|
|
1727
1727
|
extracted: {
|
|
1728
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1729
1728
|
firstName: string | null;
|
|
1730
1729
|
lastName: string | null;
|
|
1730
|
+
nationality: string | null;
|
|
1731
1731
|
dateOfBirth: string | null;
|
|
1732
|
-
expiryDate: string | null;
|
|
1733
1732
|
issueDate: string | null;
|
|
1733
|
+
expiryDate: string | null;
|
|
1734
1734
|
referenceNumber: string | null;
|
|
1735
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1735
1736
|
shareCode: string | null;
|
|
1736
|
-
nationality: string | null;
|
|
1737
1737
|
confidence: number;
|
|
1738
|
-
qualificationName?: string | null | undefined;
|
|
1739
|
-
qualificationTypeName?: string | null | undefined;
|
|
1740
1738
|
qualificationId?: string | null | undefined;
|
|
1741
1739
|
qualificationTypeId?: string | null | undefined;
|
|
1740
|
+
qualificationName?: string | null | undefined;
|
|
1741
|
+
qualificationTypeName?: string | null | undefined;
|
|
1742
1742
|
qualificationIssuerText?: string | null | undefined;
|
|
1743
1743
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1744
1744
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -1746,29 +1746,29 @@ export declare const documentIntakeContract: {
|
|
|
1746
1746
|
} | null;
|
|
1747
1747
|
overridden: boolean;
|
|
1748
1748
|
}, {
|
|
1749
|
-
|
|
1750
|
-
status: "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | "FAILED";
|
|
1749
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
1751
1750
|
id: string;
|
|
1752
1751
|
fileId: string;
|
|
1753
1752
|
workerId: string | null;
|
|
1754
|
-
|
|
1753
|
+
confidence: number | null;
|
|
1754
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1755
1755
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
1756
1756
|
destinationFinal: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN" | null;
|
|
1757
1757
|
extracted: {
|
|
1758
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
1759
1758
|
firstName: string | null;
|
|
1760
1759
|
lastName: string | null;
|
|
1760
|
+
nationality: string | null;
|
|
1761
1761
|
dateOfBirth: string | null;
|
|
1762
|
-
expiryDate: string | null;
|
|
1763
1762
|
issueDate: string | null;
|
|
1763
|
+
expiryDate: string | null;
|
|
1764
1764
|
referenceNumber: string | null;
|
|
1765
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
1765
1766
|
shareCode: string | null;
|
|
1766
|
-
nationality: string | null;
|
|
1767
1767
|
confidence: number;
|
|
1768
|
-
qualificationName?: string | null | undefined;
|
|
1769
|
-
qualificationTypeName?: string | null | undefined;
|
|
1770
1768
|
qualificationId?: string | null | undefined;
|
|
1771
1769
|
qualificationTypeId?: string | null | undefined;
|
|
1770
|
+
qualificationName?: string | null | undefined;
|
|
1771
|
+
qualificationTypeName?: string | null | undefined;
|
|
1772
1772
|
qualificationIssuerText?: string | null | undefined;
|
|
1773
1773
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
1774
1774
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -1785,17 +1785,17 @@ export declare const documentIntakeContract: {
|
|
|
1785
1785
|
path: z.ZodString;
|
|
1786
1786
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1787
1787
|
}, "strip", z.ZodTypeAny, {
|
|
1788
|
+
message: string;
|
|
1788
1789
|
code: string;
|
|
1789
1790
|
path: string;
|
|
1790
|
-
message: string;
|
|
1791
1791
|
statusCode: number;
|
|
1792
1792
|
timestamp: string;
|
|
1793
1793
|
details?: unknown;
|
|
1794
1794
|
correlationId?: string | undefined;
|
|
1795
1795
|
}, {
|
|
1796
|
+
message: string;
|
|
1796
1797
|
code: string;
|
|
1797
1798
|
path: string;
|
|
1798
|
-
message: string;
|
|
1799
1799
|
statusCode: number;
|
|
1800
1800
|
timestamp: string;
|
|
1801
1801
|
details?: unknown;
|
|
@@ -1804,9 +1804,6 @@ export declare const documentIntakeContract: {
|
|
|
1804
1804
|
};
|
|
1805
1805
|
};
|
|
1806
1806
|
backfillSubjects: {
|
|
1807
|
-
metadata: {
|
|
1808
|
-
tags: string[];
|
|
1809
|
-
};
|
|
1810
1807
|
query: z.ZodObject<{
|
|
1811
1808
|
page: z.ZodDefault<z.ZodNumber>;
|
|
1812
1809
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1815,20 +1812,23 @@ export declare const documentIntakeContract: {
|
|
|
1815
1812
|
pendingKinds: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["NAME", "FILL", "REROUTE"]>, z.ZodArray<z.ZodEnum<["NAME", "FILL", "REROUTE"]>, "many">]>>, ("NAME" | "FILL" | "REROUTE")[] | undefined, "NAME" | "FILL" | "REROUTE" | ("NAME" | "FILL" | "REROUTE")[] | undefined>;
|
|
1816
1813
|
subjectIds: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, string[] | undefined, string | string[] | undefined>;
|
|
1817
1814
|
}, "strip", z.ZodTypeAny, {
|
|
1818
|
-
page: number;
|
|
1819
1815
|
limit: number;
|
|
1816
|
+
page: number;
|
|
1817
|
+
search?: string | undefined;
|
|
1820
1818
|
subjectType?: "WORKER" | "CURATED_WORKER" | undefined;
|
|
1821
1819
|
pendingKinds?: ("NAME" | "FILL" | "REROUTE")[] | undefined;
|
|
1822
|
-
search?: string | undefined;
|
|
1823
1820
|
subjectIds?: string[] | undefined;
|
|
1824
1821
|
}, {
|
|
1822
|
+
search?: string | undefined;
|
|
1823
|
+
limit?: number | undefined;
|
|
1824
|
+
page?: number | undefined;
|
|
1825
1825
|
subjectType?: "WORKER" | "CURATED_WORKER" | undefined;
|
|
1826
1826
|
pendingKinds?: "NAME" | "FILL" | "REROUTE" | ("NAME" | "FILL" | "REROUTE")[] | undefined;
|
|
1827
|
-
page?: number | undefined;
|
|
1828
|
-
limit?: number | undefined;
|
|
1829
|
-
search?: string | undefined;
|
|
1830
1827
|
subjectIds?: string | string[] | undefined;
|
|
1831
1828
|
}>;
|
|
1829
|
+
metadata: {
|
|
1830
|
+
tags: string[];
|
|
1831
|
+
};
|
|
1832
1832
|
summary: "List worker/curated-worker subjects with pending backfill documents awaiting review (paginated).";
|
|
1833
1833
|
method: "GET";
|
|
1834
1834
|
path: "/v2/document-intake/backfill/subjects";
|
|
@@ -1842,17 +1842,17 @@ export declare const documentIntakeContract: {
|
|
|
1842
1842
|
path: z.ZodString;
|
|
1843
1843
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1844
1844
|
}, "strip", z.ZodTypeAny, {
|
|
1845
|
+
message: string;
|
|
1845
1846
|
code: string;
|
|
1846
1847
|
path: string;
|
|
1847
|
-
message: string;
|
|
1848
1848
|
statusCode: number;
|
|
1849
1849
|
timestamp: string;
|
|
1850
1850
|
details?: unknown;
|
|
1851
1851
|
correlationId?: string | undefined;
|
|
1852
1852
|
}, {
|
|
1853
|
+
message: string;
|
|
1853
1854
|
code: string;
|
|
1854
1855
|
path: string;
|
|
1855
|
-
message: string;
|
|
1856
1856
|
statusCode: number;
|
|
1857
1857
|
timestamp: string;
|
|
1858
1858
|
details?: unknown;
|
|
@@ -1867,15 +1867,15 @@ export declare const documentIntakeContract: {
|
|
|
1867
1867
|
pendingKinds: z.ZodArray<z.ZodEnum<["NAME", "FILL", "REROUTE"]>, "many">;
|
|
1868
1868
|
oldestDocumentAt: z.ZodString;
|
|
1869
1869
|
}, "strip", z.ZodTypeAny, {
|
|
1870
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1871
1870
|
subjectId: string;
|
|
1871
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1872
1872
|
subjectName: string;
|
|
1873
1873
|
documentCount: number;
|
|
1874
1874
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
1875
1875
|
oldestDocumentAt: string;
|
|
1876
1876
|
}, {
|
|
1877
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1878
1877
|
subjectId: string;
|
|
1878
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1879
1879
|
subjectName: string;
|
|
1880
1880
|
documentCount: number;
|
|
1881
1881
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -1886,9 +1886,11 @@ export declare const documentIntakeContract: {
|
|
|
1886
1886
|
page: z.ZodNumber;
|
|
1887
1887
|
limit: z.ZodNumber;
|
|
1888
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1889
|
+
limit: number;
|
|
1890
|
+
page: number;
|
|
1889
1891
|
items: {
|
|
1890
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1891
1892
|
subjectId: string;
|
|
1893
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1892
1894
|
subjectName: string;
|
|
1893
1895
|
documentCount: number;
|
|
1894
1896
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -1896,12 +1898,12 @@ export declare const documentIntakeContract: {
|
|
|
1896
1898
|
}[];
|
|
1897
1899
|
totalCount: number;
|
|
1898
1900
|
totalPages: number;
|
|
1899
|
-
page: number;
|
|
1900
|
-
limit: number;
|
|
1901
1901
|
}, {
|
|
1902
|
+
limit: number;
|
|
1903
|
+
page: number;
|
|
1902
1904
|
items: {
|
|
1903
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1904
1905
|
subjectId: string;
|
|
1906
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1905
1907
|
subjectName: string;
|
|
1906
1908
|
documentCount: number;
|
|
1907
1909
|
pendingKinds: ("NAME" | "FILL" | "REROUTE")[];
|
|
@@ -1909,15 +1911,10 @@ export declare const documentIntakeContract: {
|
|
|
1909
1911
|
}[];
|
|
1910
1912
|
totalCount: number;
|
|
1911
1913
|
totalPages: number;
|
|
1912
|
-
page: number;
|
|
1913
|
-
limit: number;
|
|
1914
1914
|
}>;
|
|
1915
1915
|
};
|
|
1916
1916
|
};
|
|
1917
1917
|
backfillCandidates: {
|
|
1918
|
-
metadata: {
|
|
1919
|
-
tags: string[];
|
|
1920
|
-
};
|
|
1921
1918
|
query: z.ZodObject<{
|
|
1922
1919
|
name: z.ZodOptional<z.ZodString>;
|
|
1923
1920
|
subjectTypes: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["WORKER", "CURATED_WORKER"]>, z.ZodArray<z.ZodEnum<["WORKER", "CURATED_WORKER"]>, "many">]>>, ("WORKER" | "CURATED_WORKER")[] | undefined, "WORKER" | "CURATED_WORKER" | ("WORKER" | "CURATED_WORKER")[] | undefined>;
|
|
@@ -1928,6 +1925,9 @@ export declare const documentIntakeContract: {
|
|
|
1928
1925
|
name?: string | undefined;
|
|
1929
1926
|
subjectTypes?: "WORKER" | "CURATED_WORKER" | ("WORKER" | "CURATED_WORKER")[] | undefined;
|
|
1930
1927
|
}>;
|
|
1928
|
+
metadata: {
|
|
1929
|
+
tags: string[];
|
|
1930
|
+
};
|
|
1931
1931
|
summary: "List worker/curated-worker records with at least one unprocessed document (never extracted, failed, or changed since processing). Capped at 50.";
|
|
1932
1932
|
method: "GET";
|
|
1933
1933
|
path: "/v2/document-intake/backfill/candidates";
|
|
@@ -1941,17 +1941,17 @@ export declare const documentIntakeContract: {
|
|
|
1941
1941
|
path: z.ZodString;
|
|
1942
1942
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1943
1943
|
}, "strip", z.ZodTypeAny, {
|
|
1944
|
+
message: string;
|
|
1944
1945
|
code: string;
|
|
1945
1946
|
path: string;
|
|
1946
|
-
message: string;
|
|
1947
1947
|
statusCode: number;
|
|
1948
1948
|
timestamp: string;
|
|
1949
1949
|
details?: unknown;
|
|
1950
1950
|
correlationId?: string | undefined;
|
|
1951
1951
|
}, {
|
|
1952
|
+
message: string;
|
|
1952
1953
|
code: string;
|
|
1953
1954
|
path: string;
|
|
1954
|
-
message: string;
|
|
1955
1955
|
statusCode: number;
|
|
1956
1956
|
timestamp: string;
|
|
1957
1957
|
details?: unknown;
|
|
@@ -1965,32 +1965,32 @@ export declare const documentIntakeContract: {
|
|
|
1965
1965
|
email: z.ZodNullable<z.ZodString>;
|
|
1966
1966
|
unprocessedCount: z.ZodNumber;
|
|
1967
1967
|
}, "strip", z.ZodTypeAny, {
|
|
1968
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1969
|
-
subjectId: string;
|
|
1970
1968
|
name: string;
|
|
1971
1969
|
email: string | null;
|
|
1970
|
+
subjectId: string;
|
|
1971
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1972
1972
|
unprocessedCount: number;
|
|
1973
1973
|
}, {
|
|
1974
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1975
|
-
subjectId: string;
|
|
1976
1974
|
name: string;
|
|
1977
1975
|
email: string | null;
|
|
1976
|
+
subjectId: string;
|
|
1977
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1978
1978
|
unprocessedCount: number;
|
|
1979
1979
|
}>, "many">;
|
|
1980
1980
|
}, "strip", z.ZodTypeAny, {
|
|
1981
1981
|
items: {
|
|
1982
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1983
|
-
subjectId: string;
|
|
1984
1982
|
name: string;
|
|
1985
1983
|
email: string | null;
|
|
1984
|
+
subjectId: string;
|
|
1985
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1986
1986
|
unprocessedCount: number;
|
|
1987
1987
|
}[];
|
|
1988
1988
|
}, {
|
|
1989
1989
|
items: {
|
|
1990
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1991
|
-
subjectId: string;
|
|
1992
1990
|
name: string;
|
|
1993
1991
|
email: string | null;
|
|
1992
|
+
subjectId: string;
|
|
1993
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
1994
1994
|
unprocessedCount: number;
|
|
1995
1995
|
}[];
|
|
1996
1996
|
}>;
|
|
@@ -2029,17 +2029,17 @@ export declare const documentIntakeContract: {
|
|
|
2029
2029
|
path: z.ZodString;
|
|
2030
2030
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2031
2031
|
}, "strip", z.ZodTypeAny, {
|
|
2032
|
+
message: string;
|
|
2032
2033
|
code: string;
|
|
2033
2034
|
path: string;
|
|
2034
|
-
message: string;
|
|
2035
2035
|
statusCode: number;
|
|
2036
2036
|
timestamp: string;
|
|
2037
2037
|
details?: unknown;
|
|
2038
2038
|
correlationId?: string | undefined;
|
|
2039
2039
|
}, {
|
|
2040
|
+
message: string;
|
|
2040
2041
|
code: string;
|
|
2041
2042
|
path: string;
|
|
2042
|
-
message: string;
|
|
2043
2043
|
statusCode: number;
|
|
2044
2044
|
timestamp: string;
|
|
2045
2045
|
details?: unknown;
|
|
@@ -2059,19 +2059,19 @@ export declare const documentIntakeContract: {
|
|
|
2059
2059
|
failed: z.ZodNumber;
|
|
2060
2060
|
error: z.ZodNullable<z.ZodString>;
|
|
2061
2061
|
}, "strip", z.ZodTypeAny, {
|
|
2062
|
-
status: "
|
|
2062
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2063
2063
|
workerId: string;
|
|
2064
|
+
error: string | null;
|
|
2064
2065
|
scanned: number;
|
|
2065
2066
|
queuedForReview: number;
|
|
2066
2067
|
failed: number;
|
|
2067
|
-
error: string | null;
|
|
2068
2068
|
}, {
|
|
2069
|
-
status: "
|
|
2069
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2070
2070
|
workerId: string;
|
|
2071
|
+
error: string | null;
|
|
2071
2072
|
scanned: number;
|
|
2072
2073
|
queuedForReview: number;
|
|
2073
2074
|
failed: number;
|
|
2074
|
-
error: string | null;
|
|
2075
2075
|
}>, "many">;
|
|
2076
2076
|
curatedWorkers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2077
2077
|
curatedWorkerId: z.ZodString;
|
|
@@ -2081,63 +2081,63 @@ export declare const documentIntakeContract: {
|
|
|
2081
2081
|
failed: z.ZodNumber;
|
|
2082
2082
|
error: z.ZodNullable<z.ZodString>;
|
|
2083
2083
|
}, "strip", z.ZodTypeAny, {
|
|
2084
|
-
status: "
|
|
2084
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2085
|
+
curatedWorkerId: string;
|
|
2086
|
+
error: string | null;
|
|
2085
2087
|
scanned: number;
|
|
2086
2088
|
queuedForReview: number;
|
|
2087
2089
|
failed: number;
|
|
2088
|
-
error: string | null;
|
|
2089
|
-
curatedWorkerId: string;
|
|
2090
2090
|
}, {
|
|
2091
|
-
status: "
|
|
2091
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2092
|
+
curatedWorkerId: string;
|
|
2093
|
+
error: string | null;
|
|
2092
2094
|
scanned: number;
|
|
2093
2095
|
queuedForReview: number;
|
|
2094
2096
|
failed: number;
|
|
2095
|
-
error: string | null;
|
|
2096
|
-
curatedWorkerId: string;
|
|
2097
2097
|
}>, "many">>;
|
|
2098
2098
|
}, "strip", z.ZodTypeAny, {
|
|
2099
|
-
status: "
|
|
2099
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2100
2100
|
id: string;
|
|
2101
2101
|
createdAt: string;
|
|
2102
|
-
startedAt: string | null;
|
|
2103
|
-
finishedAt: string | null;
|
|
2104
2102
|
workers: {
|
|
2105
|
-
status: "
|
|
2103
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2106
2104
|
workerId: string;
|
|
2105
|
+
error: string | null;
|
|
2107
2106
|
scanned: number;
|
|
2108
2107
|
queuedForReview: number;
|
|
2109
2108
|
failed: number;
|
|
2110
|
-
error: string | null;
|
|
2111
2109
|
}[];
|
|
2110
|
+
startedAt: string | null;
|
|
2111
|
+
finishedAt: string | null;
|
|
2112
2112
|
curatedWorkers: {
|
|
2113
|
-
status: "
|
|
2113
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2114
|
+
curatedWorkerId: string;
|
|
2115
|
+
error: string | null;
|
|
2114
2116
|
scanned: number;
|
|
2115
2117
|
queuedForReview: number;
|
|
2116
2118
|
failed: number;
|
|
2117
|
-
error: string | null;
|
|
2118
|
-
curatedWorkerId: string;
|
|
2119
2119
|
}[];
|
|
2120
2120
|
}, {
|
|
2121
|
-
status: "
|
|
2121
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2122
2122
|
id: string;
|
|
2123
2123
|
createdAt: string;
|
|
2124
|
-
startedAt: string | null;
|
|
2125
|
-
finishedAt: string | null;
|
|
2126
2124
|
workers: {
|
|
2127
|
-
status: "
|
|
2125
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2128
2126
|
workerId: string;
|
|
2127
|
+
error: string | null;
|
|
2129
2128
|
scanned: number;
|
|
2130
2129
|
queuedForReview: number;
|
|
2131
2130
|
failed: number;
|
|
2132
|
-
error: string | null;
|
|
2133
2131
|
}[];
|
|
2132
|
+
startedAt: string | null;
|
|
2133
|
+
finishedAt: string | null;
|
|
2134
2134
|
curatedWorkers?: {
|
|
2135
|
-
status: "
|
|
2135
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2136
|
+
curatedWorkerId: string;
|
|
2137
|
+
error: string | null;
|
|
2136
2138
|
scanned: number;
|
|
2137
2139
|
queuedForReview: number;
|
|
2138
2140
|
failed: number;
|
|
2139
|
-
error: string | null;
|
|
2140
|
-
curatedWorkerId: string;
|
|
2141
2141
|
}[] | undefined;
|
|
2142
2142
|
}>;
|
|
2143
2143
|
};
|
|
@@ -2166,17 +2166,17 @@ export declare const documentIntakeContract: {
|
|
|
2166
2166
|
path: z.ZodString;
|
|
2167
2167
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2168
2168
|
}, "strip", z.ZodTypeAny, {
|
|
2169
|
+
message: string;
|
|
2169
2170
|
code: string;
|
|
2170
2171
|
path: string;
|
|
2171
|
-
message: string;
|
|
2172
2172
|
statusCode: number;
|
|
2173
2173
|
timestamp: string;
|
|
2174
2174
|
details?: unknown;
|
|
2175
2175
|
correlationId?: string | undefined;
|
|
2176
2176
|
}, {
|
|
2177
|
+
message: string;
|
|
2177
2178
|
code: string;
|
|
2178
2179
|
path: string;
|
|
2179
|
-
message: string;
|
|
2180
2180
|
statusCode: number;
|
|
2181
2181
|
timestamp: string;
|
|
2182
2182
|
details?: unknown;
|
|
@@ -2196,19 +2196,19 @@ export declare const documentIntakeContract: {
|
|
|
2196
2196
|
failed: z.ZodNumber;
|
|
2197
2197
|
error: z.ZodNullable<z.ZodString>;
|
|
2198
2198
|
}, "strip", z.ZodTypeAny, {
|
|
2199
|
-
status: "
|
|
2199
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2200
2200
|
workerId: string;
|
|
2201
|
+
error: string | null;
|
|
2201
2202
|
scanned: number;
|
|
2202
2203
|
queuedForReview: number;
|
|
2203
2204
|
failed: number;
|
|
2204
|
-
error: string | null;
|
|
2205
2205
|
}, {
|
|
2206
|
-
status: "
|
|
2206
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2207
2207
|
workerId: string;
|
|
2208
|
+
error: string | null;
|
|
2208
2209
|
scanned: number;
|
|
2209
2210
|
queuedForReview: number;
|
|
2210
2211
|
failed: number;
|
|
2211
|
-
error: string | null;
|
|
2212
2212
|
}>, "many">;
|
|
2213
2213
|
curatedWorkers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2214
2214
|
curatedWorkerId: z.ZodString;
|
|
@@ -2218,63 +2218,63 @@ export declare const documentIntakeContract: {
|
|
|
2218
2218
|
failed: z.ZodNumber;
|
|
2219
2219
|
error: z.ZodNullable<z.ZodString>;
|
|
2220
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2221
|
-
status: "
|
|
2221
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2222
|
+
curatedWorkerId: string;
|
|
2223
|
+
error: string | null;
|
|
2222
2224
|
scanned: number;
|
|
2223
2225
|
queuedForReview: number;
|
|
2224
2226
|
failed: number;
|
|
2225
|
-
error: string | null;
|
|
2226
|
-
curatedWorkerId: string;
|
|
2227
2227
|
}, {
|
|
2228
|
-
status: "
|
|
2228
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2229
|
+
curatedWorkerId: string;
|
|
2230
|
+
error: string | null;
|
|
2229
2231
|
scanned: number;
|
|
2230
2232
|
queuedForReview: number;
|
|
2231
2233
|
failed: number;
|
|
2232
|
-
error: string | null;
|
|
2233
|
-
curatedWorkerId: string;
|
|
2234
2234
|
}>, "many">>;
|
|
2235
2235
|
}, "strip", z.ZodTypeAny, {
|
|
2236
|
-
status: "
|
|
2236
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2237
2237
|
id: string;
|
|
2238
2238
|
createdAt: string;
|
|
2239
|
-
startedAt: string | null;
|
|
2240
|
-
finishedAt: string | null;
|
|
2241
2239
|
workers: {
|
|
2242
|
-
status: "
|
|
2240
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2243
2241
|
workerId: string;
|
|
2242
|
+
error: string | null;
|
|
2244
2243
|
scanned: number;
|
|
2245
2244
|
queuedForReview: number;
|
|
2246
2245
|
failed: number;
|
|
2247
|
-
error: string | null;
|
|
2248
2246
|
}[];
|
|
2247
|
+
startedAt: string | null;
|
|
2248
|
+
finishedAt: string | null;
|
|
2249
2249
|
curatedWorkers: {
|
|
2250
|
-
status: "
|
|
2250
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2251
|
+
curatedWorkerId: string;
|
|
2252
|
+
error: string | null;
|
|
2251
2253
|
scanned: number;
|
|
2252
2254
|
queuedForReview: number;
|
|
2253
2255
|
failed: number;
|
|
2254
|
-
error: string | null;
|
|
2255
|
-
curatedWorkerId: string;
|
|
2256
2256
|
}[];
|
|
2257
2257
|
}, {
|
|
2258
|
-
status: "
|
|
2258
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2259
2259
|
id: string;
|
|
2260
2260
|
createdAt: string;
|
|
2261
|
-
startedAt: string | null;
|
|
2262
|
-
finishedAt: string | null;
|
|
2263
2261
|
workers: {
|
|
2264
|
-
status: "
|
|
2262
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2265
2263
|
workerId: string;
|
|
2264
|
+
error: string | null;
|
|
2266
2265
|
scanned: number;
|
|
2267
2266
|
queuedForReview: number;
|
|
2268
2267
|
failed: number;
|
|
2269
|
-
error: string | null;
|
|
2270
2268
|
}[];
|
|
2269
|
+
startedAt: string | null;
|
|
2270
|
+
finishedAt: string | null;
|
|
2271
2271
|
curatedWorkers?: {
|
|
2272
|
-
status: "
|
|
2272
|
+
status: "COMPLETED" | "FAILED" | "PROCESSING" | "QUEUED";
|
|
2273
|
+
curatedWorkerId: string;
|
|
2274
|
+
error: string | null;
|
|
2273
2275
|
scanned: number;
|
|
2274
2276
|
queuedForReview: number;
|
|
2275
2277
|
failed: number;
|
|
2276
|
-
error: string | null;
|
|
2277
|
-
curatedWorkerId: string;
|
|
2278
2278
|
}[] | undefined;
|
|
2279
2279
|
}>;
|
|
2280
2280
|
404: z.ZodObject<{
|
|
@@ -2286,17 +2286,17 @@ export declare const documentIntakeContract: {
|
|
|
2286
2286
|
path: z.ZodString;
|
|
2287
2287
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2288
2288
|
}, "strip", z.ZodTypeAny, {
|
|
2289
|
+
message: string;
|
|
2289
2290
|
code: string;
|
|
2290
2291
|
path: string;
|
|
2291
|
-
message: string;
|
|
2292
2292
|
statusCode: number;
|
|
2293
2293
|
timestamp: string;
|
|
2294
2294
|
details?: unknown;
|
|
2295
2295
|
correlationId?: string | undefined;
|
|
2296
2296
|
}, {
|
|
2297
|
+
message: string;
|
|
2297
2298
|
code: string;
|
|
2298
2299
|
path: string;
|
|
2299
|
-
message: string;
|
|
2300
2300
|
statusCode: number;
|
|
2301
2301
|
timestamp: string;
|
|
2302
2302
|
details?: unknown;
|
|
@@ -2312,11 +2312,11 @@ export declare const documentIntakeContract: {
|
|
|
2312
2312
|
subjectType: z.ZodEnum<["WORKER", "CURATED_WORKER"]>;
|
|
2313
2313
|
subjectId: z.ZodString;
|
|
2314
2314
|
}, "strip", z.ZodTypeAny, {
|
|
2315
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2316
2315
|
subjectId: string;
|
|
2317
|
-
}, {
|
|
2318
2316
|
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2317
|
+
}, {
|
|
2319
2318
|
subjectId: string;
|
|
2319
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2320
2320
|
}>;
|
|
2321
2321
|
summary: "Fetch a subject plus all of its pending backfill documents for consolidated review.";
|
|
2322
2322
|
method: "GET";
|
|
@@ -2331,17 +2331,17 @@ export declare const documentIntakeContract: {
|
|
|
2331
2331
|
path: z.ZodString;
|
|
2332
2332
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2333
2333
|
}, "strip", z.ZodTypeAny, {
|
|
2334
|
+
message: string;
|
|
2334
2335
|
code: string;
|
|
2335
2336
|
path: string;
|
|
2336
|
-
message: string;
|
|
2337
2337
|
statusCode: number;
|
|
2338
2338
|
timestamp: string;
|
|
2339
2339
|
details?: unknown;
|
|
2340
2340
|
correlationId?: string | undefined;
|
|
2341
2341
|
}, {
|
|
2342
|
+
message: string;
|
|
2342
2343
|
code: string;
|
|
2343
2344
|
path: string;
|
|
2344
|
-
message: string;
|
|
2345
2345
|
statusCode: number;
|
|
2346
2346
|
timestamp: string;
|
|
2347
2347
|
details?: unknown;
|
|
@@ -2360,30 +2360,30 @@ export declare const documentIntakeContract: {
|
|
|
2360
2360
|
code: z.ZodNullable<z.ZodString>;
|
|
2361
2361
|
expiryDate: z.ZodNullable<z.ZodString>;
|
|
2362
2362
|
}, "strip", z.ZodTypeAny, {
|
|
2363
|
-
expiryDate: string | null;
|
|
2364
2363
|
code: string | null;
|
|
2365
|
-
}, {
|
|
2366
2364
|
expiryDate: string | null;
|
|
2365
|
+
}, {
|
|
2367
2366
|
code: string | null;
|
|
2367
|
+
expiryDate: string | null;
|
|
2368
2368
|
}>>;
|
|
2369
2369
|
}, "strip", z.ZodTypeAny, {
|
|
2370
2370
|
firstName: string | null;
|
|
2371
2371
|
lastName: string | null;
|
|
2372
|
+
nationality: string | null;
|
|
2372
2373
|
dateOfBirth: string | null;
|
|
2373
2374
|
shareCode: {
|
|
2374
|
-
expiryDate: string | null;
|
|
2375
2375
|
code: string | null;
|
|
2376
|
+
expiryDate: string | null;
|
|
2376
2377
|
} | null;
|
|
2377
|
-
nationality: string | null;
|
|
2378
2378
|
}, {
|
|
2379
2379
|
firstName: string | null;
|
|
2380
2380
|
lastName: string | null;
|
|
2381
|
+
nationality: string | null;
|
|
2381
2382
|
dateOfBirth: string | null;
|
|
2382
2383
|
shareCode: {
|
|
2383
|
-
expiryDate: string | null;
|
|
2384
2384
|
code: string | null;
|
|
2385
|
+
expiryDate: string | null;
|
|
2385
2386
|
} | null;
|
|
2386
|
-
nationality: string | null;
|
|
2387
2387
|
}>;
|
|
2388
2388
|
documents: z.ZodArray<z.ZodObject<{
|
|
2389
2389
|
recordId: z.ZodString;
|
|
@@ -2418,39 +2418,39 @@ export declare const documentIntakeContract: {
|
|
|
2418
2418
|
qualificationMatchMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<["catalogue_exact", "scheme_rule", "none"]>>>;
|
|
2419
2419
|
confidence: z.ZodNumber;
|
|
2420
2420
|
}, "strip", z.ZodTypeAny, {
|
|
2421
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
2422
2421
|
firstName: string | null;
|
|
2423
2422
|
lastName: string | null;
|
|
2423
|
+
nationality: string | null;
|
|
2424
2424
|
dateOfBirth: string | null;
|
|
2425
|
-
expiryDate: string | null;
|
|
2426
2425
|
issueDate: string | null;
|
|
2426
|
+
expiryDate: string | null;
|
|
2427
2427
|
referenceNumber: string | null;
|
|
2428
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2428
2429
|
shareCode: string | null;
|
|
2429
|
-
nationality: string | null;
|
|
2430
2430
|
confidence: number;
|
|
2431
|
-
qualificationName?: string | null | undefined;
|
|
2432
|
-
qualificationTypeName?: string | null | undefined;
|
|
2433
2431
|
qualificationId?: string | null | undefined;
|
|
2434
2432
|
qualificationTypeId?: string | null | undefined;
|
|
2433
|
+
qualificationName?: string | null | undefined;
|
|
2434
|
+
qualificationTypeName?: string | null | undefined;
|
|
2435
2435
|
qualificationIssuerText?: string | null | undefined;
|
|
2436
2436
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
2437
2437
|
qualificationRoleText?: string | null | undefined;
|
|
2438
2438
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
2439
2439
|
}, {
|
|
2440
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
2441
2440
|
firstName: string | null;
|
|
2442
2441
|
lastName: string | null;
|
|
2442
|
+
nationality: string | null;
|
|
2443
2443
|
dateOfBirth: string | null;
|
|
2444
|
-
expiryDate: string | null;
|
|
2445
2444
|
issueDate: string | null;
|
|
2445
|
+
expiryDate: string | null;
|
|
2446
2446
|
referenceNumber: string | null;
|
|
2447
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2447
2448
|
shareCode: string | null;
|
|
2448
|
-
nationality: string | null;
|
|
2449
2449
|
confidence: number;
|
|
2450
|
-
qualificationName?: string | null | undefined;
|
|
2451
|
-
qualificationTypeName?: string | null | undefined;
|
|
2452
2450
|
qualificationId?: string | null | undefined;
|
|
2453
2451
|
qualificationTypeId?: string | null | undefined;
|
|
2452
|
+
qualificationName?: string | null | undefined;
|
|
2453
|
+
qualificationTypeName?: string | null | undefined;
|
|
2454
2454
|
qualificationIssuerText?: string | null | undefined;
|
|
2455
2455
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
2456
2456
|
qualificationRoleText?: string | null | undefined;
|
|
@@ -2465,49 +2465,49 @@ export declare const documentIntakeContract: {
|
|
|
2465
2465
|
issueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2466
2466
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2467
2467
|
}, "strip", z.ZodTypeAny, {
|
|
2468
|
-
documentType?: string | null | undefined;
|
|
2469
|
-
expiryDate?: string | null | undefined;
|
|
2470
2468
|
issueDate?: string | null | undefined;
|
|
2469
|
+
expiryDate?: string | null | undefined;
|
|
2471
2470
|
referenceNumber?: string | null | undefined;
|
|
2471
|
+
documentType?: string | null | undefined;
|
|
2472
2472
|
documentNumber?: string | null | undefined;
|
|
2473
2473
|
}, {
|
|
2474
|
-
documentType?: string | null | undefined;
|
|
2475
|
-
expiryDate?: string | null | undefined;
|
|
2476
2474
|
issueDate?: string | null | undefined;
|
|
2475
|
+
expiryDate?: string | null | undefined;
|
|
2477
2476
|
referenceNumber?: string | null | undefined;
|
|
2477
|
+
documentType?: string | null | undefined;
|
|
2478
2478
|
documentNumber?: string | null | undefined;
|
|
2479
2479
|
}>>;
|
|
2480
2480
|
createdAt: z.ZodString;
|
|
2481
2481
|
}, "strip", z.ZodTypeAny, {
|
|
2482
|
-
|
|
2483
|
-
|
|
2482
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
2483
|
+
createdAt: string;
|
|
2484
2484
|
fileId: string;
|
|
2485
|
-
|
|
2485
|
+
confidence: number | null;
|
|
2486
|
+
mimeType: string | null;
|
|
2487
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2486
2488
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
2487
2489
|
extracted: {
|
|
2488
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
2489
2490
|
firstName: string | null;
|
|
2490
2491
|
lastName: string | null;
|
|
2492
|
+
nationality: string | null;
|
|
2491
2493
|
dateOfBirth: string | null;
|
|
2492
|
-
expiryDate: string | null;
|
|
2493
2494
|
issueDate: string | null;
|
|
2495
|
+
expiryDate: string | null;
|
|
2494
2496
|
referenceNumber: string | null;
|
|
2497
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2495
2498
|
shareCode: string | null;
|
|
2496
|
-
nationality: string | null;
|
|
2497
2499
|
confidence: number;
|
|
2498
|
-
qualificationName?: string | null | undefined;
|
|
2499
|
-
qualificationTypeName?: string | null | undefined;
|
|
2500
2500
|
qualificationId?: string | null | undefined;
|
|
2501
2501
|
qualificationTypeId?: string | null | undefined;
|
|
2502
|
+
qualificationName?: string | null | undefined;
|
|
2503
|
+
qualificationTypeName?: string | null | undefined;
|
|
2502
2504
|
qualificationIssuerText?: string | null | undefined;
|
|
2503
2505
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
2504
2506
|
qualificationRoleText?: string | null | undefined;
|
|
2505
2507
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
2506
2508
|
} | null;
|
|
2507
|
-
createdAt: string;
|
|
2508
2509
|
recordId: string;
|
|
2509
2510
|
originalName: string | null;
|
|
2510
|
-
mimeType: string | null;
|
|
2511
2511
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
2512
2512
|
reviewable: boolean;
|
|
2513
2513
|
evaluatedAt: string | null;
|
|
@@ -2515,42 +2515,42 @@ export declare const documentIntakeContract: {
|
|
|
2515
2515
|
currentQualificationId: string | null;
|
|
2516
2516
|
currentQualificationName: string | null;
|
|
2517
2517
|
sourceRow: {
|
|
2518
|
-
documentType?: string | null | undefined;
|
|
2519
|
-
expiryDate?: string | null | undefined;
|
|
2520
2518
|
issueDate?: string | null | undefined;
|
|
2519
|
+
expiryDate?: string | null | undefined;
|
|
2521
2520
|
referenceNumber?: string | null | undefined;
|
|
2521
|
+
documentType?: string | null | undefined;
|
|
2522
2522
|
documentNumber?: string | null | undefined;
|
|
2523
2523
|
} | null;
|
|
2524
2524
|
}, {
|
|
2525
|
-
|
|
2526
|
-
|
|
2525
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
2526
|
+
createdAt: string;
|
|
2527
2527
|
fileId: string;
|
|
2528
|
-
|
|
2528
|
+
confidence: number | null;
|
|
2529
|
+
mimeType: string | null;
|
|
2530
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2529
2531
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
2530
2532
|
extracted: {
|
|
2531
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
2532
2533
|
firstName: string | null;
|
|
2533
2534
|
lastName: string | null;
|
|
2535
|
+
nationality: string | null;
|
|
2534
2536
|
dateOfBirth: string | null;
|
|
2535
|
-
expiryDate: string | null;
|
|
2536
2537
|
issueDate: string | null;
|
|
2538
|
+
expiryDate: string | null;
|
|
2537
2539
|
referenceNumber: string | null;
|
|
2540
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2538
2541
|
shareCode: string | null;
|
|
2539
|
-
nationality: string | null;
|
|
2540
2542
|
confidence: number;
|
|
2541
|
-
qualificationName?: string | null | undefined;
|
|
2542
|
-
qualificationTypeName?: string | null | undefined;
|
|
2543
2543
|
qualificationId?: string | null | undefined;
|
|
2544
2544
|
qualificationTypeId?: string | null | undefined;
|
|
2545
|
+
qualificationName?: string | null | undefined;
|
|
2546
|
+
qualificationTypeName?: string | null | undefined;
|
|
2545
2547
|
qualificationIssuerText?: string | null | undefined;
|
|
2546
2548
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
2547
2549
|
qualificationRoleText?: string | null | undefined;
|
|
2548
2550
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
2549
2551
|
} | null;
|
|
2550
|
-
createdAt: string;
|
|
2551
2552
|
recordId: string;
|
|
2552
2553
|
originalName: string | null;
|
|
2553
|
-
mimeType: string | null;
|
|
2554
2554
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
2555
2555
|
reviewable: boolean;
|
|
2556
2556
|
evaluatedAt: string | null;
|
|
@@ -2558,57 +2558,57 @@ export declare const documentIntakeContract: {
|
|
|
2558
2558
|
currentQualificationId: string | null;
|
|
2559
2559
|
currentQualificationName: string | null;
|
|
2560
2560
|
sourceRow: {
|
|
2561
|
-
documentType?: string | null | undefined;
|
|
2562
|
-
expiryDate?: string | null | undefined;
|
|
2563
2561
|
issueDate?: string | null | undefined;
|
|
2562
|
+
expiryDate?: string | null | undefined;
|
|
2564
2563
|
referenceNumber?: string | null | undefined;
|
|
2564
|
+
documentType?: string | null | undefined;
|
|
2565
2565
|
documentNumber?: string | null | undefined;
|
|
2566
2566
|
} | null;
|
|
2567
2567
|
}>, "many">;
|
|
2568
2568
|
}, "strip", z.ZodTypeAny, {
|
|
2569
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2570
2569
|
subjectId: string;
|
|
2571
|
-
subjectName: string;
|
|
2572
2570
|
current: {
|
|
2573
2571
|
firstName: string | null;
|
|
2574
2572
|
lastName: string | null;
|
|
2573
|
+
nationality: string | null;
|
|
2575
2574
|
dateOfBirth: string | null;
|
|
2576
2575
|
shareCode: {
|
|
2577
|
-
expiryDate: string | null;
|
|
2578
2576
|
code: string | null;
|
|
2577
|
+
expiryDate: string | null;
|
|
2579
2578
|
} | null;
|
|
2580
|
-
nationality: string | null;
|
|
2581
2579
|
};
|
|
2580
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2581
|
+
subjectName: string;
|
|
2582
2582
|
documents: {
|
|
2583
|
-
|
|
2584
|
-
|
|
2583
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
2584
|
+
createdAt: string;
|
|
2585
2585
|
fileId: string;
|
|
2586
|
-
|
|
2586
|
+
confidence: number | null;
|
|
2587
|
+
mimeType: string | null;
|
|
2588
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2587
2589
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
2588
2590
|
extracted: {
|
|
2589
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
2590
2591
|
firstName: string | null;
|
|
2591
2592
|
lastName: string | null;
|
|
2593
|
+
nationality: string | null;
|
|
2592
2594
|
dateOfBirth: string | null;
|
|
2593
|
-
expiryDate: string | null;
|
|
2594
2595
|
issueDate: string | null;
|
|
2596
|
+
expiryDate: string | null;
|
|
2595
2597
|
referenceNumber: string | null;
|
|
2598
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2596
2599
|
shareCode: string | null;
|
|
2597
|
-
nationality: string | null;
|
|
2598
2600
|
confidence: number;
|
|
2599
|
-
qualificationName?: string | null | undefined;
|
|
2600
|
-
qualificationTypeName?: string | null | undefined;
|
|
2601
2601
|
qualificationId?: string | null | undefined;
|
|
2602
2602
|
qualificationTypeId?: string | null | undefined;
|
|
2603
|
+
qualificationName?: string | null | undefined;
|
|
2604
|
+
qualificationTypeName?: string | null | undefined;
|
|
2603
2605
|
qualificationIssuerText?: string | null | undefined;
|
|
2604
2606
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
2605
2607
|
qualificationRoleText?: string | null | undefined;
|
|
2606
2608
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
2607
2609
|
} | null;
|
|
2608
|
-
createdAt: string;
|
|
2609
2610
|
recordId: string;
|
|
2610
2611
|
originalName: string | null;
|
|
2611
|
-
mimeType: string | null;
|
|
2612
2612
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
2613
2613
|
reviewable: boolean;
|
|
2614
2614
|
evaluatedAt: string | null;
|
|
@@ -2616,57 +2616,57 @@ export declare const documentIntakeContract: {
|
|
|
2616
2616
|
currentQualificationId: string | null;
|
|
2617
2617
|
currentQualificationName: string | null;
|
|
2618
2618
|
sourceRow: {
|
|
2619
|
-
documentType?: string | null | undefined;
|
|
2620
|
-
expiryDate?: string | null | undefined;
|
|
2621
2619
|
issueDate?: string | null | undefined;
|
|
2620
|
+
expiryDate?: string | null | undefined;
|
|
2622
2621
|
referenceNumber?: string | null | undefined;
|
|
2622
|
+
documentType?: string | null | undefined;
|
|
2623
2623
|
documentNumber?: string | null | undefined;
|
|
2624
2624
|
} | null;
|
|
2625
2625
|
}[];
|
|
2626
2626
|
}, {
|
|
2627
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2628
2627
|
subjectId: string;
|
|
2629
|
-
subjectName: string;
|
|
2630
2628
|
current: {
|
|
2631
2629
|
firstName: string | null;
|
|
2632
2630
|
lastName: string | null;
|
|
2631
|
+
nationality: string | null;
|
|
2633
2632
|
dateOfBirth: string | null;
|
|
2634
2633
|
shareCode: {
|
|
2635
|
-
expiryDate: string | null;
|
|
2636
2634
|
code: string | null;
|
|
2635
|
+
expiryDate: string | null;
|
|
2637
2636
|
} | null;
|
|
2638
|
-
nationality: string | null;
|
|
2639
2637
|
};
|
|
2638
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2639
|
+
subjectName: string;
|
|
2640
2640
|
documents: {
|
|
2641
|
-
|
|
2642
|
-
|
|
2641
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
2642
|
+
createdAt: string;
|
|
2643
2643
|
fileId: string;
|
|
2644
|
-
|
|
2644
|
+
confidence: number | null;
|
|
2645
|
+
mimeType: string | null;
|
|
2646
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2645
2647
|
destinationSuggested: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | "UNKNOWN";
|
|
2646
2648
|
extracted: {
|
|
2647
|
-
documentType: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
2648
2649
|
firstName: string | null;
|
|
2649
2650
|
lastName: string | null;
|
|
2651
|
+
nationality: string | null;
|
|
2650
2652
|
dateOfBirth: string | null;
|
|
2651
|
-
expiryDate: string | null;
|
|
2652
2653
|
issueDate: string | null;
|
|
2654
|
+
expiryDate: string | null;
|
|
2653
2655
|
referenceNumber: string | null;
|
|
2656
|
+
documentType: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
2654
2657
|
shareCode: string | null;
|
|
2655
|
-
nationality: string | null;
|
|
2656
2658
|
confidence: number;
|
|
2657
|
-
qualificationName?: string | null | undefined;
|
|
2658
|
-
qualificationTypeName?: string | null | undefined;
|
|
2659
2659
|
qualificationId?: string | null | undefined;
|
|
2660
2660
|
qualificationTypeId?: string | null | undefined;
|
|
2661
|
+
qualificationName?: string | null | undefined;
|
|
2662
|
+
qualificationTypeName?: string | null | undefined;
|
|
2661
2663
|
qualificationIssuerText?: string | null | undefined;
|
|
2662
2664
|
qualificationCardColour?: "green" | "blue" | "gold" | "black" | "white" | "red" | null | undefined;
|
|
2663
2665
|
qualificationRoleText?: string | null | undefined;
|
|
2664
2666
|
qualificationMatchMethod?: "catalogue_exact" | "scheme_rule" | "none" | null | undefined;
|
|
2665
2667
|
} | null;
|
|
2666
|
-
createdAt: string;
|
|
2667
2668
|
recordId: string;
|
|
2668
2669
|
originalName: string | null;
|
|
2669
|
-
mimeType: string | null;
|
|
2670
2670
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
2671
2671
|
reviewable: boolean;
|
|
2672
2672
|
evaluatedAt: string | null;
|
|
@@ -2674,10 +2674,10 @@ export declare const documentIntakeContract: {
|
|
|
2674
2674
|
currentQualificationId: string | null;
|
|
2675
2675
|
currentQualificationName: string | null;
|
|
2676
2676
|
sourceRow: {
|
|
2677
|
-
documentType?: string | null | undefined;
|
|
2678
|
-
expiryDate?: string | null | undefined;
|
|
2679
2677
|
issueDate?: string | null | undefined;
|
|
2678
|
+
expiryDate?: string | null | undefined;
|
|
2680
2679
|
referenceNumber?: string | null | undefined;
|
|
2680
|
+
documentType?: string | null | undefined;
|
|
2681
2681
|
documentNumber?: string | null | undefined;
|
|
2682
2682
|
} | null;
|
|
2683
2683
|
}[];
|
|
@@ -2691,17 +2691,17 @@ export declare const documentIntakeContract: {
|
|
|
2691
2691
|
path: z.ZodString;
|
|
2692
2692
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2693
2693
|
}, "strip", z.ZodTypeAny, {
|
|
2694
|
+
message: string;
|
|
2694
2695
|
code: string;
|
|
2695
2696
|
path: string;
|
|
2696
|
-
message: string;
|
|
2697
2697
|
statusCode: number;
|
|
2698
2698
|
timestamp: string;
|
|
2699
2699
|
details?: unknown;
|
|
2700
2700
|
correlationId?: string | undefined;
|
|
2701
2701
|
}, {
|
|
2702
|
+
message: string;
|
|
2702
2703
|
code: string;
|
|
2703
2704
|
path: string;
|
|
2704
|
-
message: string;
|
|
2705
2705
|
statusCode: number;
|
|
2706
2706
|
timestamp: string;
|
|
2707
2707
|
details?: unknown;
|
|
@@ -2717,11 +2717,11 @@ export declare const documentIntakeContract: {
|
|
|
2717
2717
|
subjectType: z.ZodEnum<["WORKER", "CURATED_WORKER"]>;
|
|
2718
2718
|
subjectId: z.ZodString;
|
|
2719
2719
|
}, "strip", z.ZodTypeAny, {
|
|
2720
|
-
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2721
2720
|
subjectId: string;
|
|
2722
|
-
}, {
|
|
2723
2721
|
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2722
|
+
}, {
|
|
2724
2723
|
subjectId: string;
|
|
2724
|
+
subjectType: "WORKER" | "CURATED_WORKER";
|
|
2725
2725
|
}>;
|
|
2726
2726
|
summary: "Consolidated per-subject apply: one transaction over every pending document plus the subject scalar fields.";
|
|
2727
2727
|
method: "POST";
|
|
@@ -2734,13 +2734,13 @@ export declare const documentIntakeContract: {
|
|
|
2734
2734
|
}, "strip", z.ZodTypeAny, {
|
|
2735
2735
|
firstName?: string | undefined;
|
|
2736
2736
|
lastName?: string | undefined;
|
|
2737
|
-
dateOfBirth?: string | undefined;
|
|
2738
2737
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2738
|
+
dateOfBirth?: string | undefined;
|
|
2739
2739
|
}, {
|
|
2740
2740
|
firstName?: string | undefined;
|
|
2741
2741
|
lastName?: string | undefined;
|
|
2742
|
-
dateOfBirth?: string | undefined;
|
|
2743
2742
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2743
|
+
dateOfBirth?: string | undefined;
|
|
2744
2744
|
}>;
|
|
2745
2745
|
fieldSources: z.ZodObject<{
|
|
2746
2746
|
firstName: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2750,13 +2750,13 @@ export declare const documentIntakeContract: {
|
|
|
2750
2750
|
}, "strip", z.ZodTypeAny, {
|
|
2751
2751
|
firstName?: string[] | undefined;
|
|
2752
2752
|
lastName?: string[] | undefined;
|
|
2753
|
-
dateOfBirth?: string[] | undefined;
|
|
2754
2753
|
nationality?: string[] | undefined;
|
|
2754
|
+
dateOfBirth?: string[] | undefined;
|
|
2755
2755
|
}, {
|
|
2756
2756
|
firstName?: string[] | undefined;
|
|
2757
2757
|
lastName?: string[] | undefined;
|
|
2758
|
-
dateOfBirth?: string[] | undefined;
|
|
2759
2758
|
nationality?: string[] | undefined;
|
|
2759
|
+
dateOfBirth?: string[] | undefined;
|
|
2760
2760
|
}>;
|
|
2761
2761
|
documents: z.ZodArray<z.ZodObject<{
|
|
2762
2762
|
recordId: z.ZodString;
|
|
@@ -2765,97 +2765,97 @@ export declare const documentIntakeContract: {
|
|
|
2765
2765
|
qualificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2766
2766
|
qualificationTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2767
2767
|
}, "strip", z.ZodTypeAny, {
|
|
2768
|
-
recordId: string;
|
|
2769
2768
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
2769
|
+
recordId: string;
|
|
2770
2770
|
qualificationId?: string | null | undefined;
|
|
2771
2771
|
qualificationTypeId?: string | null | undefined;
|
|
2772
2772
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
2773
2773
|
}, {
|
|
2774
|
-
recordId: string;
|
|
2775
2774
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
2775
|
+
recordId: string;
|
|
2776
2776
|
qualificationId?: string | null | undefined;
|
|
2777
2777
|
qualificationTypeId?: string | null | undefined;
|
|
2778
2778
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
2779
2779
|
}>, "many">;
|
|
2780
2780
|
}, "strip", z.ZodTypeAny, {
|
|
2781
|
+
fields: {
|
|
2782
|
+
firstName?: string | undefined;
|
|
2783
|
+
lastName?: string | undefined;
|
|
2784
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2785
|
+
dateOfBirth?: string | undefined;
|
|
2786
|
+
};
|
|
2781
2787
|
documents: {
|
|
2782
|
-
recordId: string;
|
|
2783
2788
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
2789
|
+
recordId: string;
|
|
2784
2790
|
qualificationId?: string | null | undefined;
|
|
2785
2791
|
qualificationTypeId?: string | null | undefined;
|
|
2786
2792
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
2787
2793
|
}[];
|
|
2788
|
-
fields: {
|
|
2789
|
-
firstName?: string | undefined;
|
|
2790
|
-
lastName?: string | undefined;
|
|
2791
|
-
dateOfBirth?: string | undefined;
|
|
2792
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2793
|
-
};
|
|
2794
2794
|
fieldSources: {
|
|
2795
2795
|
firstName?: string[] | undefined;
|
|
2796
2796
|
lastName?: string[] | undefined;
|
|
2797
|
-
dateOfBirth?: string[] | undefined;
|
|
2798
2797
|
nationality?: string[] | undefined;
|
|
2798
|
+
dateOfBirth?: string[] | undefined;
|
|
2799
2799
|
};
|
|
2800
2800
|
}, {
|
|
2801
|
+
fields: {
|
|
2802
|
+
firstName?: string | undefined;
|
|
2803
|
+
lastName?: string | undefined;
|
|
2804
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2805
|
+
dateOfBirth?: string | undefined;
|
|
2806
|
+
};
|
|
2801
2807
|
documents: {
|
|
2802
|
-
recordId: string;
|
|
2803
2808
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
2809
|
+
recordId: string;
|
|
2804
2810
|
qualificationId?: string | null | undefined;
|
|
2805
2811
|
qualificationTypeId?: string | null | undefined;
|
|
2806
2812
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
2807
2813
|
}[];
|
|
2808
|
-
fields: {
|
|
2809
|
-
firstName?: string | undefined;
|
|
2810
|
-
lastName?: string | undefined;
|
|
2811
|
-
dateOfBirth?: string | undefined;
|
|
2812
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2813
|
-
};
|
|
2814
2814
|
fieldSources: {
|
|
2815
2815
|
firstName?: string[] | undefined;
|
|
2816
2816
|
lastName?: string[] | undefined;
|
|
2817
|
-
dateOfBirth?: string[] | undefined;
|
|
2818
2817
|
nationality?: string[] | undefined;
|
|
2818
|
+
dateOfBirth?: string[] | undefined;
|
|
2819
2819
|
};
|
|
2820
2820
|
}>, {
|
|
2821
|
+
fields: {
|
|
2822
|
+
firstName?: string | undefined;
|
|
2823
|
+
lastName?: string | undefined;
|
|
2824
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2825
|
+
dateOfBirth?: string | undefined;
|
|
2826
|
+
};
|
|
2821
2827
|
documents: {
|
|
2822
|
-
recordId: string;
|
|
2823
2828
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
2829
|
+
recordId: string;
|
|
2824
2830
|
qualificationId?: string | null | undefined;
|
|
2825
2831
|
qualificationTypeId?: string | null | undefined;
|
|
2826
2832
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
2827
2833
|
}[];
|
|
2828
|
-
fields: {
|
|
2829
|
-
firstName?: string | undefined;
|
|
2830
|
-
lastName?: string | undefined;
|
|
2831
|
-
dateOfBirth?: string | undefined;
|
|
2832
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2833
|
-
};
|
|
2834
2834
|
fieldSources: {
|
|
2835
2835
|
firstName?: string[] | undefined;
|
|
2836
2836
|
lastName?: string[] | undefined;
|
|
2837
|
-
dateOfBirth?: string[] | undefined;
|
|
2838
2837
|
nationality?: string[] | undefined;
|
|
2838
|
+
dateOfBirth?: string[] | undefined;
|
|
2839
2839
|
};
|
|
2840
2840
|
}, {
|
|
2841
|
+
fields: {
|
|
2842
|
+
firstName?: string | undefined;
|
|
2843
|
+
lastName?: string | undefined;
|
|
2844
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2845
|
+
dateOfBirth?: string | undefined;
|
|
2846
|
+
};
|
|
2841
2847
|
documents: {
|
|
2842
|
-
recordId: string;
|
|
2843
2848
|
action: "REROUTE" | "KEEP" | "DISMISS";
|
|
2849
|
+
recordId: string;
|
|
2844
2850
|
qualificationId?: string | null | undefined;
|
|
2845
2851
|
qualificationTypeId?: string | null | undefined;
|
|
2846
2852
|
destination?: "ID_DOCUMENT" | "QUALIFICATION" | "SHARE_CODE" | undefined;
|
|
2847
2853
|
}[];
|
|
2848
|
-
fields: {
|
|
2849
|
-
firstName?: string | undefined;
|
|
2850
|
-
lastName?: string | undefined;
|
|
2851
|
-
dateOfBirth?: string | undefined;
|
|
2852
|
-
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | undefined;
|
|
2853
|
-
};
|
|
2854
2854
|
fieldSources: {
|
|
2855
2855
|
firstName?: string[] | undefined;
|
|
2856
2856
|
lastName?: string[] | undefined;
|
|
2857
|
-
dateOfBirth?: string[] | undefined;
|
|
2858
2857
|
nationality?: string[] | undefined;
|
|
2858
|
+
dateOfBirth?: string[] | undefined;
|
|
2859
2859
|
};
|
|
2860
2860
|
}>;
|
|
2861
2861
|
path: "/v2/document-intake/backfill/subjects/:subjectType/:subjectId/apply";
|
|
@@ -2869,17 +2869,17 @@ export declare const documentIntakeContract: {
|
|
|
2869
2869
|
path: z.ZodString;
|
|
2870
2870
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2871
2871
|
}, "strip", z.ZodTypeAny, {
|
|
2872
|
+
message: string;
|
|
2872
2873
|
code: string;
|
|
2873
2874
|
path: string;
|
|
2874
|
-
message: string;
|
|
2875
2875
|
statusCode: number;
|
|
2876
2876
|
timestamp: string;
|
|
2877
2877
|
details?: unknown;
|
|
2878
2878
|
correlationId?: string | undefined;
|
|
2879
2879
|
}, {
|
|
2880
|
+
message: string;
|
|
2880
2881
|
code: string;
|
|
2881
2882
|
path: string;
|
|
2882
|
-
message: string;
|
|
2883
2883
|
statusCode: number;
|
|
2884
2884
|
timestamp: string;
|
|
2885
2885
|
details?: unknown;
|
|
@@ -2901,17 +2901,17 @@ export declare const documentIntakeContract: {
|
|
|
2901
2901
|
path: z.ZodString;
|
|
2902
2902
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2903
2903
|
}, "strip", z.ZodTypeAny, {
|
|
2904
|
+
message: string;
|
|
2904
2905
|
code: string;
|
|
2905
2906
|
path: string;
|
|
2906
|
-
message: string;
|
|
2907
2907
|
statusCode: number;
|
|
2908
2908
|
timestamp: string;
|
|
2909
2909
|
details?: unknown;
|
|
2910
2910
|
correlationId?: string | undefined;
|
|
2911
2911
|
}, {
|
|
2912
|
+
message: string;
|
|
2912
2913
|
code: string;
|
|
2913
2914
|
path: string;
|
|
2914
|
-
message: string;
|
|
2915
2915
|
statusCode: number;
|
|
2916
2916
|
timestamp: string;
|
|
2917
2917
|
details?: unknown;
|
|
@@ -2926,17 +2926,17 @@ export declare const documentIntakeContract: {
|
|
|
2926
2926
|
path: z.ZodString;
|
|
2927
2927
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2928
2928
|
}, "strip", z.ZodTypeAny, {
|
|
2929
|
+
message: string;
|
|
2929
2930
|
code: string;
|
|
2930
2931
|
path: string;
|
|
2931
|
-
message: string;
|
|
2932
2932
|
statusCode: number;
|
|
2933
2933
|
timestamp: string;
|
|
2934
2934
|
details?: unknown;
|
|
2935
2935
|
correlationId?: string | undefined;
|
|
2936
2936
|
}, {
|
|
2937
|
+
message: string;
|
|
2937
2938
|
code: string;
|
|
2938
2939
|
path: string;
|
|
2939
|
-
message: string;
|
|
2940
2940
|
statusCode: number;
|
|
2941
2941
|
timestamp: string;
|
|
2942
2942
|
details?: unknown;
|
|
@@ -2945,25 +2945,25 @@ export declare const documentIntakeContract: {
|
|
|
2945
2945
|
};
|
|
2946
2946
|
};
|
|
2947
2947
|
backfillHistory: {
|
|
2948
|
-
metadata: {
|
|
2949
|
-
tags: string[];
|
|
2950
|
-
};
|
|
2951
2948
|
query: z.ZodObject<{
|
|
2952
2949
|
page: z.ZodDefault<z.ZodNumber>;
|
|
2953
2950
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2954
|
-
statuses: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, z.ZodArray<z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, "many">]>>, ("
|
|
2951
|
+
statuses: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, z.ZodArray<z.ZodEnum<["PENDING_CONFIRM", "VERIFIED_NO_CHANGE", "APPLIED", "DISCARDED", "FAILED"]>, "many">]>>, ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined, "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined>;
|
|
2955
2952
|
supersededOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2956
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2957
|
-
page: number;
|
|
2958
2954
|
limit: number;
|
|
2959
|
-
|
|
2955
|
+
page: number;
|
|
2956
|
+
statuses?: ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined;
|
|
2960
2957
|
supersededOnly?: boolean | undefined;
|
|
2961
2958
|
}, {
|
|
2962
|
-
page?: number | undefined;
|
|
2963
2959
|
limit?: number | undefined;
|
|
2964
|
-
|
|
2960
|
+
page?: number | undefined;
|
|
2961
|
+
statuses?: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED" | ("FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED")[] | undefined;
|
|
2965
2962
|
supersededOnly?: boolean | undefined;
|
|
2966
2963
|
}>;
|
|
2964
|
+
metadata: {
|
|
2965
|
+
tags: string[];
|
|
2966
|
+
};
|
|
2967
2967
|
summary: "List current and superseded document backfill audit cycles.";
|
|
2968
2968
|
method: "GET";
|
|
2969
2969
|
path: "/v2/document-intake/backfill/history";
|
|
@@ -2977,17 +2977,17 @@ export declare const documentIntakeContract: {
|
|
|
2977
2977
|
path: z.ZodString;
|
|
2978
2978
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2979
2979
|
}, "strip", z.ZodTypeAny, {
|
|
2980
|
+
message: string;
|
|
2980
2981
|
code: string;
|
|
2981
2982
|
path: string;
|
|
2982
|
-
message: string;
|
|
2983
2983
|
statusCode: number;
|
|
2984
2984
|
timestamp: string;
|
|
2985
2985
|
details?: unknown;
|
|
2986
2986
|
correlationId?: string | undefined;
|
|
2987
2987
|
}, {
|
|
2988
|
+
message: string;
|
|
2988
2989
|
code: string;
|
|
2989
2990
|
path: string;
|
|
2990
|
-
message: string;
|
|
2991
2991
|
statusCode: number;
|
|
2992
2992
|
timestamp: string;
|
|
2993
2993
|
details?: unknown;
|
|
@@ -3014,14 +3014,14 @@ export declare const documentIntakeContract: {
|
|
|
3014
3014
|
extractorFingerprint: z.ZodNullable<z.ZodString>;
|
|
3015
3015
|
evaluationFingerprint: z.ZodNullable<z.ZodString>;
|
|
3016
3016
|
}, "strip", z.ZodTypeAny, {
|
|
3017
|
-
|
|
3018
|
-
|
|
3017
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
3018
|
+
createdAt: string;
|
|
3019
3019
|
fileId: string;
|
|
3020
3020
|
workerId: string | null;
|
|
3021
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
3022
|
-
subjectName: string;
|
|
3023
3021
|
curatedWorkerId: string | null;
|
|
3024
|
-
|
|
3022
|
+
confidence: number | null;
|
|
3023
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
3024
|
+
subjectName: string;
|
|
3025
3025
|
recordId: string;
|
|
3026
3026
|
originalName: string | null;
|
|
3027
3027
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -3033,14 +3033,14 @@ export declare const documentIntakeContract: {
|
|
|
3033
3033
|
extractorFingerprint: string | null;
|
|
3034
3034
|
evaluationFingerprint: string | null;
|
|
3035
3035
|
}, {
|
|
3036
|
-
|
|
3037
|
-
|
|
3036
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
3037
|
+
createdAt: string;
|
|
3038
3038
|
fileId: string;
|
|
3039
3039
|
workerId: string | null;
|
|
3040
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
3041
|
-
subjectName: string;
|
|
3042
3040
|
curatedWorkerId: string | null;
|
|
3043
|
-
|
|
3041
|
+
confidence: number | null;
|
|
3042
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
3043
|
+
subjectName: string;
|
|
3044
3044
|
recordId: string;
|
|
3045
3045
|
originalName: string | null;
|
|
3046
3046
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -3057,15 +3057,17 @@ export declare const documentIntakeContract: {
|
|
|
3057
3057
|
page: z.ZodNumber;
|
|
3058
3058
|
limit: z.ZodNumber;
|
|
3059
3059
|
}, "strip", z.ZodTypeAny, {
|
|
3060
|
+
limit: number;
|
|
3061
|
+
page: number;
|
|
3060
3062
|
items: {
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
3064
|
+
createdAt: string;
|
|
3063
3065
|
fileId: string;
|
|
3064
3066
|
workerId: string | null;
|
|
3065
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
3066
|
-
subjectName: string;
|
|
3067
3067
|
curatedWorkerId: string | null;
|
|
3068
|
-
|
|
3068
|
+
confidence: number | null;
|
|
3069
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
3070
|
+
subjectName: string;
|
|
3069
3071
|
recordId: string;
|
|
3070
3072
|
originalName: string | null;
|
|
3071
3073
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -3079,18 +3081,18 @@ export declare const documentIntakeContract: {
|
|
|
3079
3081
|
}[];
|
|
3080
3082
|
totalCount: number;
|
|
3081
3083
|
totalPages: number;
|
|
3082
|
-
page: number;
|
|
3083
|
-
limit: number;
|
|
3084
3084
|
}, {
|
|
3085
|
+
limit: number;
|
|
3086
|
+
page: number;
|
|
3085
3087
|
items: {
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
+
status: "FAILED" | "PENDING_CONFIRM" | "VERIFIED_NO_CHANGE" | "APPLIED" | "DISCARDED";
|
|
3089
|
+
createdAt: string;
|
|
3088
3090
|
fileId: string;
|
|
3089
3091
|
workerId: string | null;
|
|
3090
|
-
classification: "passport" | "id_card" | "cscs_card" | "driving_license" | "qualification_certificate" | "unknown";
|
|
3091
|
-
subjectName: string;
|
|
3092
3092
|
curatedWorkerId: string | null;
|
|
3093
|
-
|
|
3093
|
+
confidence: number | null;
|
|
3094
|
+
classification: "passport" | "id_card" | "driving_license" | "unknown" | "cscs_card" | "qualification_certificate";
|
|
3095
|
+
subjectName: string;
|
|
3094
3096
|
recordId: string;
|
|
3095
3097
|
originalName: string | null;
|
|
3096
3098
|
sourceType: "DROPZONE" | "WORKER_ID_DOCUMENT" | "CURATED_ID_DOCUMENT" | "QUALIFICATION_PROOF";
|
|
@@ -3104,8 +3106,6 @@ export declare const documentIntakeContract: {
|
|
|
3104
3106
|
}[];
|
|
3105
3107
|
totalCount: number;
|
|
3106
3108
|
totalPages: number;
|
|
3107
|
-
page: number;
|
|
3108
|
-
limit: number;
|
|
3109
3109
|
}>;
|
|
3110
3110
|
};
|
|
3111
3111
|
};
|