@kontourai/survey 0.4.15 → 0.4.16
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.
|
@@ -267,6 +267,164 @@ export declare const regulatedRuleConflictReviewItemFixture: {
|
|
|
267
267
|
selectedCandidateId: string;
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
|
+
export declare const facilityCredentialReviewItemFixture: {
|
|
271
|
+
apiVersion: "survey.kontourai.io/v1alpha1";
|
|
272
|
+
kind: "ReviewItem";
|
|
273
|
+
metadata: {
|
|
274
|
+
name: string;
|
|
275
|
+
labels: {
|
|
276
|
+
domain: string;
|
|
277
|
+
workflow: string;
|
|
278
|
+
};
|
|
279
|
+
producer: {
|
|
280
|
+
displayName: string;
|
|
281
|
+
slug: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
spec: {
|
|
285
|
+
target: string;
|
|
286
|
+
selectedCandidateId: string;
|
|
287
|
+
candidateSetStatus: "needs-review";
|
|
288
|
+
rationale: string;
|
|
289
|
+
projection: {
|
|
290
|
+
candidateSetId: string;
|
|
291
|
+
};
|
|
292
|
+
producerPolicy: {
|
|
293
|
+
decisionMode: string;
|
|
294
|
+
sourceAuthorityProjection: string;
|
|
295
|
+
feedbackTags: string[];
|
|
296
|
+
};
|
|
297
|
+
candidates: ({
|
|
298
|
+
id: string;
|
|
299
|
+
role: "current";
|
|
300
|
+
value: {
|
|
301
|
+
licenseNumber: string;
|
|
302
|
+
status: string;
|
|
303
|
+
issuedAt: string;
|
|
304
|
+
expiresAt: string;
|
|
305
|
+
permittedServices: string[];
|
|
306
|
+
inspections: {
|
|
307
|
+
date: string;
|
|
308
|
+
outcome: string;
|
|
309
|
+
findingCount: number;
|
|
310
|
+
}[];
|
|
311
|
+
};
|
|
312
|
+
confidence: number;
|
|
313
|
+
source: {
|
|
314
|
+
sourceId: string;
|
|
315
|
+
sourceRef: string;
|
|
316
|
+
kind: "manual-entry";
|
|
317
|
+
observedAt: string;
|
|
318
|
+
locatorScheme: "structured-field";
|
|
319
|
+
fetchedAt?: undefined;
|
|
320
|
+
};
|
|
321
|
+
locator: {
|
|
322
|
+
scheme: "structured-field";
|
|
323
|
+
locator: string;
|
|
324
|
+
excerpt: string;
|
|
325
|
+
};
|
|
326
|
+
extraction: {
|
|
327
|
+
extractionId: string;
|
|
328
|
+
target: string;
|
|
329
|
+
confidence: number;
|
|
330
|
+
extractor: string;
|
|
331
|
+
extractedAt: string;
|
|
332
|
+
};
|
|
333
|
+
claimTarget: {
|
|
334
|
+
claimId: string;
|
|
335
|
+
subjectType: string;
|
|
336
|
+
subjectId: string;
|
|
337
|
+
surface: string;
|
|
338
|
+
claimType: string;
|
|
339
|
+
fieldOrBehavior: string;
|
|
340
|
+
impactLevel: "high";
|
|
341
|
+
evidenceType: "human_attestation";
|
|
342
|
+
evidenceMethod: "attestation";
|
|
343
|
+
collectedBy: string;
|
|
344
|
+
};
|
|
345
|
+
projection: {
|
|
346
|
+
rawSourceId: string;
|
|
347
|
+
extractionId: string;
|
|
348
|
+
candidateSetId: string;
|
|
349
|
+
candidateId: string;
|
|
350
|
+
claimId: string;
|
|
351
|
+
};
|
|
352
|
+
producer: {
|
|
353
|
+
credentialSystem: string;
|
|
354
|
+
sourceAuthority?: undefined;
|
|
355
|
+
};
|
|
356
|
+
sourceRank?: undefined;
|
|
357
|
+
} | {
|
|
358
|
+
id: string;
|
|
359
|
+
role: "proposed";
|
|
360
|
+
value: {
|
|
361
|
+
licenseNumber: string;
|
|
362
|
+
status: string;
|
|
363
|
+
issuedAt: string;
|
|
364
|
+
expiresAt: string;
|
|
365
|
+
permittedServices: string[];
|
|
366
|
+
inspections: {
|
|
367
|
+
date: string;
|
|
368
|
+
outcome: string;
|
|
369
|
+
findingCount: number;
|
|
370
|
+
}[];
|
|
371
|
+
};
|
|
372
|
+
confidence: number;
|
|
373
|
+
sourceRank: number;
|
|
374
|
+
source: {
|
|
375
|
+
sourceId: string;
|
|
376
|
+
sourceRef: string;
|
|
377
|
+
kind: "api-record";
|
|
378
|
+
observedAt: string;
|
|
379
|
+
fetchedAt: string;
|
|
380
|
+
locatorScheme: "structured-field";
|
|
381
|
+
};
|
|
382
|
+
locator: {
|
|
383
|
+
scheme: "structured-field";
|
|
384
|
+
locator: string;
|
|
385
|
+
excerpt: string;
|
|
386
|
+
};
|
|
387
|
+
extraction: {
|
|
388
|
+
extractionId: string;
|
|
389
|
+
target: string;
|
|
390
|
+
confidence: number;
|
|
391
|
+
extractor: string;
|
|
392
|
+
extractedAt: string;
|
|
393
|
+
};
|
|
394
|
+
claimTarget: {
|
|
395
|
+
claimId: string;
|
|
396
|
+
subjectType: string;
|
|
397
|
+
subjectId: string;
|
|
398
|
+
surface: string;
|
|
399
|
+
claimType: string;
|
|
400
|
+
fieldOrBehavior: string;
|
|
401
|
+
impactLevel: "high";
|
|
402
|
+
evidenceType: "source_excerpt";
|
|
403
|
+
evidenceMethod: "extraction";
|
|
404
|
+
collectedBy: string;
|
|
405
|
+
};
|
|
406
|
+
projection: {
|
|
407
|
+
rawSourceId: string;
|
|
408
|
+
extractionId: string;
|
|
409
|
+
candidateSetId: string;
|
|
410
|
+
candidateId: string;
|
|
411
|
+
claimId: string;
|
|
412
|
+
};
|
|
413
|
+
producer: {
|
|
414
|
+
credentialSystem: string;
|
|
415
|
+
sourceAuthority: {
|
|
416
|
+
authorityClass: string;
|
|
417
|
+
declaredBy: string;
|
|
418
|
+
scope: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
})[];
|
|
422
|
+
};
|
|
423
|
+
status: {
|
|
424
|
+
observedCandidateCount: number;
|
|
425
|
+
selectedCandidateId: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
270
428
|
export declare const reviewWorkbenchQueueFixtures: (ReviewItem | {
|
|
271
429
|
apiVersion: "survey.kontourai.io/v1alpha1";
|
|
272
430
|
kind: "ReviewItem";
|
|
@@ -267,6 +267,161 @@ export const regulatedRuleConflictReviewItemFixture = {
|
|
|
267
267
|
selectedCandidateId: "regulated-rule-conflict-standard-threshold:candidate:current",
|
|
268
268
|
},
|
|
269
269
|
};
|
|
270
|
+
export const facilityCredentialReviewItemFixture = {
|
|
271
|
+
apiVersion: reviewResourceApiVersion,
|
|
272
|
+
kind: "ReviewItem",
|
|
273
|
+
metadata: {
|
|
274
|
+
name: "facility-credential-review-operating-license",
|
|
275
|
+
labels: {
|
|
276
|
+
domain: "facility-credential",
|
|
277
|
+
workflow: "credential-review",
|
|
278
|
+
},
|
|
279
|
+
producer: {
|
|
280
|
+
displayName: "Facility Credential Review",
|
|
281
|
+
slug: "facility-credential-review",
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
spec: {
|
|
285
|
+
target: "operatingLicenseCredential",
|
|
286
|
+
selectedCandidateId: "facility-credential-review-operating-license:candidate:current",
|
|
287
|
+
candidateSetStatus: "needs-review",
|
|
288
|
+
rationale: "A source-of-authority registry update may supersede the currently managed facility credential snapshot.",
|
|
289
|
+
projection: {
|
|
290
|
+
candidateSetId: "facility-credential-review-operating-license:candidate-set",
|
|
291
|
+
},
|
|
292
|
+
producerPolicy: {
|
|
293
|
+
decisionMode: "current-proposed",
|
|
294
|
+
sourceAuthorityProjection: "only-for-selected-source-backed-value",
|
|
295
|
+
feedbackTags: ["credential-review", "authority-backed-registry", "nested-value"],
|
|
296
|
+
},
|
|
297
|
+
candidates: [
|
|
298
|
+
{
|
|
299
|
+
id: "facility-credential-review-operating-license:candidate:current",
|
|
300
|
+
role: "current",
|
|
301
|
+
value: {
|
|
302
|
+
licenseNumber: "FAC-2025-1042",
|
|
303
|
+
status: "active",
|
|
304
|
+
issuedAt: "2025-01-15",
|
|
305
|
+
expiresAt: "2026-01-15",
|
|
306
|
+
permittedServices: ["day-program", "after-school-care"],
|
|
307
|
+
inspections: [
|
|
308
|
+
{ date: "2025-11-20", outcome: "passed", findingCount: 0 },
|
|
309
|
+
],
|
|
310
|
+
},
|
|
311
|
+
confidence: 0.98,
|
|
312
|
+
source: {
|
|
313
|
+
sourceId: "facility-credential-review-operating-license:source:managed-record",
|
|
314
|
+
sourceRef: "survey-example://facility-credentials/facility-42/current",
|
|
315
|
+
kind: "manual-entry",
|
|
316
|
+
observedAt: "2026-01-02T16:00:00.000Z",
|
|
317
|
+
locatorScheme: "structured-field",
|
|
318
|
+
},
|
|
319
|
+
locator: {
|
|
320
|
+
scheme: "structured-field",
|
|
321
|
+
locator: "facilityCredentials[path=operatingLicense]",
|
|
322
|
+
excerpt: "Managed facility credential FAC-2025-1042 is active through 2026-01-15.",
|
|
323
|
+
},
|
|
324
|
+
extraction: {
|
|
325
|
+
extractionId: "facility-credential-review-operating-license:extraction:current",
|
|
326
|
+
target: "operatingLicenseCredential",
|
|
327
|
+
confidence: 0.98,
|
|
328
|
+
extractor: "credential-record-manager",
|
|
329
|
+
extractedAt: "2026-01-02T16:00:00.000Z",
|
|
330
|
+
},
|
|
331
|
+
claimTarget: {
|
|
332
|
+
claimId: "facility-credential.facility-42.operating-license.current",
|
|
333
|
+
subjectType: "facility",
|
|
334
|
+
subjectId: "facility-42",
|
|
335
|
+
surface: "facility.credential-profile",
|
|
336
|
+
claimType: "facility.credential",
|
|
337
|
+
fieldOrBehavior: "operatingLicenseCredential",
|
|
338
|
+
impactLevel: "high",
|
|
339
|
+
evidenceType: "human_attestation",
|
|
340
|
+
evidenceMethod: "attestation",
|
|
341
|
+
collectedBy: "credential-record-manager",
|
|
342
|
+
},
|
|
343
|
+
projection: {
|
|
344
|
+
rawSourceId: "facility-credential-review-operating-license:source:managed-record",
|
|
345
|
+
extractionId: "facility-credential-review-operating-license:extraction:current",
|
|
346
|
+
candidateSetId: "facility-credential-review-operating-license:candidate-set",
|
|
347
|
+
candidateId: "facility-credential-review-operating-license:projection:current",
|
|
348
|
+
claimId: "facility-credential.facility-42.operating-license.current",
|
|
349
|
+
},
|
|
350
|
+
producer: {
|
|
351
|
+
credentialSystem: "managed-record",
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
id: "facility-credential-review-operating-license:candidate:proposed",
|
|
356
|
+
role: "proposed",
|
|
357
|
+
value: {
|
|
358
|
+
licenseNumber: "FAC-2026-1042",
|
|
359
|
+
status: "active",
|
|
360
|
+
issuedAt: "2026-01-16",
|
|
361
|
+
expiresAt: "2027-01-15",
|
|
362
|
+
permittedServices: ["day-program", "after-school-care", "summer-session"],
|
|
363
|
+
inspections: [
|
|
364
|
+
{ date: "2026-01-10", outcome: "passed", findingCount: 1 },
|
|
365
|
+
{ date: "2026-01-12", outcome: "corrected", findingCount: 0 },
|
|
366
|
+
],
|
|
367
|
+
},
|
|
368
|
+
confidence: 0.93,
|
|
369
|
+
sourceRank: 1,
|
|
370
|
+
source: {
|
|
371
|
+
sourceId: "facility-credential-review-operating-license:source:registry",
|
|
372
|
+
sourceRef: "https://example.test/facility-registry/facility-42/license",
|
|
373
|
+
kind: "api-record",
|
|
374
|
+
observedAt: "2026-01-17T14:45:00.000Z",
|
|
375
|
+
fetchedAt: "2026-01-17T14:45:00.000Z",
|
|
376
|
+
locatorScheme: "structured-field",
|
|
377
|
+
},
|
|
378
|
+
locator: {
|
|
379
|
+
scheme: "structured-field",
|
|
380
|
+
locator: "/facilityCredentials/operatingLicense",
|
|
381
|
+
excerpt: "License FAC-2026-1042 active through 2027-01-15; permitted services include summer-session.",
|
|
382
|
+
},
|
|
383
|
+
extraction: {
|
|
384
|
+
extractionId: "facility-credential-review-operating-license:extraction:registry",
|
|
385
|
+
target: "operatingLicenseCredential",
|
|
386
|
+
confidence: 0.93,
|
|
387
|
+
extractor: "credential-registry-sync",
|
|
388
|
+
extractedAt: "2026-01-17T14:45:00.000Z",
|
|
389
|
+
},
|
|
390
|
+
claimTarget: {
|
|
391
|
+
claimId: "facility-credential.facility-42.operating-license.registry",
|
|
392
|
+
subjectType: "facility",
|
|
393
|
+
subjectId: "facility-42",
|
|
394
|
+
surface: "facility.credential-profile",
|
|
395
|
+
claimType: "facility.credential-candidate",
|
|
396
|
+
fieldOrBehavior: "operatingLicenseCredential",
|
|
397
|
+
impactLevel: "high",
|
|
398
|
+
evidenceType: "source_excerpt",
|
|
399
|
+
evidenceMethod: "extraction",
|
|
400
|
+
collectedBy: "credential-registry-sync",
|
|
401
|
+
},
|
|
402
|
+
projection: {
|
|
403
|
+
rawSourceId: "facility-credential-review-operating-license:source:registry",
|
|
404
|
+
extractionId: "facility-credential-review-operating-license:extraction:registry",
|
|
405
|
+
candidateSetId: "facility-credential-review-operating-license:candidate-set",
|
|
406
|
+
candidateId: "facility-credential-review-operating-license:projection:registry",
|
|
407
|
+
claimId: "facility-credential.facility-42.operating-license.registry",
|
|
408
|
+
},
|
|
409
|
+
producer: {
|
|
410
|
+
credentialSystem: "source-of-authority-registry",
|
|
411
|
+
sourceAuthority: {
|
|
412
|
+
authorityClass: "facility-credential-registry",
|
|
413
|
+
declaredBy: "Example Facility Registry",
|
|
414
|
+
scope: "Operating license credential for facility-42",
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
},
|
|
420
|
+
status: {
|
|
421
|
+
observedCandidateCount: 2,
|
|
422
|
+
selectedCandidateId: "facility-credential-review-operating-license:candidate:current",
|
|
423
|
+
},
|
|
424
|
+
};
|
|
270
425
|
function queueFixture(name, target, currentValue, proposedValue, candidateSetStatus, feedbackTags) {
|
|
271
426
|
return {
|
|
272
427
|
...publicDirectoryReviewItemFixture,
|
package/package.json
CHANGED