placementt-core 1.400.967 → 1.400.969
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/lib/typeDefinitions.d.ts +18 -1
- package/package.json +1 -1
- package/src/typeDefinitions.ts +16 -1
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -3350,7 +3350,17 @@ export type LeaverGroup = {
|
|
|
3350
3350
|
};
|
|
3351
3351
|
/** Keys identifying each importable LMI source. Used for lmiMeta/status and
|
|
3352
3352
|
* for addressing individual sync callables from the admin cards. */
|
|
3353
|
-
export type LmiSourceKey = "socDescriptions" | "asheNational" | "asheRegional" | "nomisEmployment" | "standards";
|
|
3353
|
+
export type LmiSourceKey = "socDescriptions" | "asheNational" | "asheRegional" | "nomisEmployment" | "standards" | "titleAliases";
|
|
3354
|
+
/** One searchable job-title alias pointing into a 4-digit SOC profile, from the
|
|
3355
|
+
* ONS SOC 2020 Volume 2 coding index (~30k titles). Stored in lmiTitleAliases
|
|
3356
|
+
* so a student searching "physiotherapist" or "ethical hacker" resolves to the
|
|
3357
|
+
* right occupation even though those aren't SOC unit-group names. */
|
|
3358
|
+
export type LmiTitleAlias = {
|
|
3359
|
+
title: string;
|
|
3360
|
+
search: string;
|
|
3361
|
+
keywords: string[];
|
|
3362
|
+
soc: string;
|
|
3363
|
+
};
|
|
3354
3364
|
/** National full-time gross annual pay percentiles for an occupation (whole
|
|
3355
3365
|
* pounds). Any percentile ONS suppressed ("x" / "..") is stored as null. */
|
|
3356
3366
|
export type LmiSalaryPercentiles = {
|
|
@@ -3427,6 +3437,9 @@ export type LmiMetaConfig = {
|
|
|
3427
3437
|
standards?: {
|
|
3428
3438
|
url: string;
|
|
3429
3439
|
};
|
|
3440
|
+
titleAliases?: {
|
|
3441
|
+
url: string;
|
|
3442
|
+
};
|
|
3430
3443
|
};
|
|
3431
3444
|
/** Optional per-source note surfaced in the admin card, e.g. to flag a URL
|
|
3432
3445
|
* that could not be verified and should be checked/corrected by an admin. */
|
|
@@ -3466,5 +3479,9 @@ export type LmiStandardsMatchReview = {
|
|
|
3466
3479
|
standardLevel: number;
|
|
3467
3480
|
confidence: number;
|
|
3468
3481
|
}[];
|
|
3482
|
+
/** Why-it-did-what-it-did counters + samples, for debugging the run. */
|
|
3483
|
+
diagnostics?: {
|
|
3484
|
+
[key: string]: unknown;
|
|
3485
|
+
};
|
|
3469
3486
|
};
|
|
3470
3487
|
export {};
|
package/package.json
CHANGED
package/src/typeDefinitions.ts
CHANGED
|
@@ -3334,7 +3334,19 @@ export type LeaverGroup = {
|
|
|
3334
3334
|
/** Keys identifying each importable LMI source. Used for lmiMeta/status and
|
|
3335
3335
|
* for addressing individual sync callables from the admin cards. */
|
|
3336
3336
|
export type LmiSourceKey =
|
|
3337
|
-
"socDescriptions"|"asheNational"|"asheRegional"|"nomisEmployment"|
|
|
3337
|
+
"socDescriptions"|"asheNational"|"asheRegional"|"nomisEmployment"|
|
|
3338
|
+
"standards"|"titleAliases";
|
|
3339
|
+
|
|
3340
|
+
/** One searchable job-title alias pointing into a 4-digit SOC profile, from the
|
|
3341
|
+
* ONS SOC 2020 Volume 2 coding index (~30k titles). Stored in lmiTitleAliases
|
|
3342
|
+
* so a student searching "physiotherapist" or "ethical hacker" resolves to the
|
|
3343
|
+
* right occupation even though those aren't SOC unit-group names. */
|
|
3344
|
+
export type LmiTitleAlias = {
|
|
3345
|
+
title: string, // display title, natural word order
|
|
3346
|
+
search: string, // sanitised lowercase title for prefix search
|
|
3347
|
+
keywords: string[], // sanitised tokens for word (array-contains) search
|
|
3348
|
+
soc: string, // 4-digit SOC 2020 the title codes to
|
|
3349
|
+
}
|
|
3338
3350
|
|
|
3339
3351
|
/** National full-time gross annual pay percentiles for an occupation (whole
|
|
3340
3352
|
* pounds). Any percentile ONS suppressed ("x" / "..") is stored as null. */
|
|
@@ -3400,6 +3412,7 @@ export type LmiMetaConfig = {
|
|
|
3400
3412
|
socVolume1: {url: string},
|
|
3401
3413
|
nomis: {datasetId: string, geography: string},
|
|
3402
3414
|
standards?: {url: string}, // Phase 3 — IfATE/Skills England endpoint
|
|
3415
|
+
titleAliases?: {url: string}, // ONS SOC 2020 Vol 2 coding index
|
|
3403
3416
|
},
|
|
3404
3417
|
/** Optional per-source note surfaced in the admin card, e.g. to flag a URL
|
|
3405
3418
|
* that could not be verified and should be checked/corrected by an admin. */
|
|
@@ -3434,4 +3447,6 @@ export type LmiStandardsMatchReview = {
|
|
|
3434
3447
|
standardLevel: number,
|
|
3435
3448
|
confidence: number, // 0-1 heuristic score
|
|
3436
3449
|
}[],
|
|
3450
|
+
/** Why-it-did-what-it-did counters + samples, for debugging the run. */
|
|
3451
|
+
diagnostics?: {[key: string]: unknown},
|
|
3437
3452
|
}
|