placementt-core 1.400.1086 → 1.400.1088

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.
@@ -444,6 +444,7 @@ export type UserData = {
444
444
  };
445
445
  aspirationHistory?: AspirationEntry[];
446
446
  currentJobPreferences?: CurrentJobPreferences;
447
+ currentCareerInterests?: string[];
447
448
  lmiViews?: LmiViewLog;
448
449
  wonde?: {
449
450
  upi: string;
@@ -4795,6 +4796,20 @@ export type ApprenticeshipVacancy = {
4795
4796
  lat: number;
4796
4797
  lng: number;
4797
4798
  }[];
4799
+ /**
4800
+ * Facets. The geohash cell each work address falls in, one attribute per
4801
+ * precision the Next Steps map clusters at (2 ≈ 1250km cells, 7 ≈ 150m),
4802
+ * deduped. A zoomed-out map asks Algolia for facet counts on one of these
4803
+ * and draws a number per cell, rather than reading thousands of vacancy
4804
+ * records to count them itself. Must be in the index's
4805
+ * `attributesForFaceting`. Empty for a national advert.
4806
+ */
4807
+ geohash2: string[];
4808
+ geohash3: string[];
4809
+ geohash4: string[];
4810
+ geohash5: string[];
4811
+ geohash6: string[];
4812
+ geohash7: string[];
4798
4813
  addresses: ApprenticeshipVacancyAddress[];
4799
4814
  /** Recruiting nationally: no fixed address, so no `_geoloc` entries. */
4800
4815
  isNational: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../src/typeDefinitions.ts"],"names":[],"mappings":";;;AA6lIA,sDASC;AAeD,oDAKC;AAaD,0CAEC;AAjoED;;;;;kFAKkF;AACrE,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAClC,QAAA,iBAAiB,GAAG,OAAO,CAAC;AA6iEzC;yEACyE;AAC5D,QAAA,0BAA0B,GAA2C;IAC9E,gBAAgB,EAAE,2BAA2B;IAC7C,mBAAmB,EAAE,sBAAsB;IAC3C,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,UAAU,EAAE,oCAAoC;IA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AAE,qBAAqB;IACzC,UAAU,EAAE,oCAAoC;IAChD,aAAa,EAAE,yBAAyB;IACxC,aAAa,EAAE,wBAAwB;IACvC,KAAK,EAAE,OAAO;CACjB,CAAC;AAEW,QAAA,0BAA0B,GAA+C;IAClF,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,SAAsC;IACxE,QAAQ,SAAS,EAAE,CAAC;QACpB,KAAK,MAAM,CAAC,CAAC,OAAO,OAAO,CAAC;QAC5B,KAAK,OAAO,CAAC,CAAC,OAAO,OAAO,CAAC;QAC7B,KAAK,WAAW,CAAC;QACjB,KAAK,OAAO,CAAC;QACb,KAAK,OAAO,CAAC;QACb,OAAO,CAAC,CAAC,OAAO,UAAU,CAAC;IAC3B,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,oBAAoB,CAChC,IAAwC,EACxC,MAA6C;IAE7C,OAAO,IAAI,EAAE,WAAW,IAAI,MAAM,EAAE,YAAY,IAAI,KAAK,CAAC;AAC9D,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAAC,KAA6D;IACzF,OAAO,GAAG,KAAK,CAAC,cAAc,IAAI,EAAE,IAAI,KAAK,CAAC,aAAa,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AAC/E,CAAC"}
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.1086",
5
+ "version": "1.400.1088",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -471,6 +471,12 @@ export type UserData = {
471
471
  // the home card and the staff profile. Unlike aspirationHistory this is current
472
472
  // state, not a record — removing a role here leaves the survey response intact.
473
473
  currentJobPreferences?: CurrentJobPreferences,
474
+ // The student's live career interest categories, from CAREER_INTEREST_CATEGORIES.
475
+ // The same split as currentJobPreferences: the survey submit replaces this with
476
+ // that year's answer, and the careers library lets the student change it in
477
+ // between, while AspirationEntry.careerInterests stays the record of what they
478
+ // said when asked. Readers fall back to the latest survey answer when unset.
479
+ currentCareerInterests?: string[],
474
480
  // Job-role profiles this student has opened, keyed by SOC. Written straight from
475
481
  // the profile popup by the student themselves, and read as Benchmark 2 evidence.
476
482
  lmiViews?: LmiViewLog,
@@ -4913,6 +4919,20 @@ export type ApprenticeshipVacancy = {
4913
4919
  description: string,
4914
4920
  /** One entry per work address, verbatim for Algolia's geo search. */
4915
4921
  _geoloc: {lat: number, lng: number}[],
4922
+ /**
4923
+ * Facets. The geohash cell each work address falls in, one attribute per
4924
+ * precision the Next Steps map clusters at (2 ≈ 1250km cells, 7 ≈ 150m),
4925
+ * deduped. A zoomed-out map asks Algolia for facet counts on one of these
4926
+ * and draws a number per cell, rather than reading thousands of vacancy
4927
+ * records to count them itself. Must be in the index's
4928
+ * `attributesForFaceting`. Empty for a national advert.
4929
+ */
4930
+ geohash2: string[],
4931
+ geohash3: string[],
4932
+ geohash4: string[],
4933
+ geohash5: string[],
4934
+ geohash6: string[],
4935
+ geohash7: string[],
4916
4936
  addresses: ApprenticeshipVacancyAddress[],
4917
4937
  /** Recruiting nationally: no fixed address, so no `_geoloc` entries. */
4918
4938
  isNational: boolean,