placementt-core 1.400.967 → 1.400.968

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.
@@ -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. */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "placementt-core",
4
4
  "author": "Placementt",
5
- "version": "1.400.967",
5
+ "version": "1.400.968",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -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"|"standards";
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. */