@studyportals/static-domain-data 6.2.0 → 6.3.1-2

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/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "@studyportals/static-domain-data",
3
- "version": "6.2.0",
4
- "exports": {
5
- "./*": "./src/*.js"
6
- },
7
- "typesVersions": {
8
- "*": {
9
- "*": [
10
- "./src/*"
11
- ]
12
- }
13
- },
14
- "description": "Package that allows to keep static data from SP domain (disciplines, countries...) in a centralized place",
15
- "scripts": {
16
- "test": "npm run compile-data && mocha \"test/**/*Test.ts\"",
17
- "prepare-deployment": "npm run compile-data && npm run build && cp package.json bin/package.json",
18
- "compile-data": "ts-node compile",
19
- "deploy-patch": "npm version patch && npm run deploy",
20
- "deploy-minor": "npm version minor && npm run deploy",
21
- "deploy-major": "npm version major && npm run deploy",
22
- "deploy": "npm run prepare-deployment && npm publish ./bin",
23
- "deploy-initial": "npm run prepare-deployment && npm publish ./bin --access=public",
24
- "deploy-beta": "npm version prerelease && npm run prepare-deployment && npm publish ./bin --tag beta --access=public",
25
- "build": "rm -rf bin && tsc && rm -rf bin/test"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/studyportals/static-domain-data.git"
30
- },
31
- "author": "SP - The Jedi Council",
32
- "license": "BSD-3-Clause",
33
- "bugs": {
34
- "url": "https://github.com/studyportals/static-domain-data/issues"
35
- },
36
- "homepage": "https://github.com/studyportals/static-domain-data#readme",
37
- "engines": {
38
- "npm": ">=10",
39
- "node": ">=20"
40
- },
41
- "devDependencies": {
42
- "@testdeck/mocha": "^0.1.2",
43
- "@types/chai": "^4.2.22",
44
- "@types/mocha": "^9.0.0",
45
- "chai": "^4.3.4",
46
- "mocha": "^9.1.3",
47
- "ts-node": "^10.4.0",
48
- "typemoq": "^2.1.0",
49
- "typescript": "^5.5.4"
50
- },
51
- "dependencies": {
52
- "@studyportals/multiselect": "^4.3.5"
53
- }
54
- }
1
+ {
2
+ "name": "@studyportals/static-domain-data",
3
+ "version": "6.3.1-2",
4
+ "exports": {
5
+ "./*": "./src/*.js"
6
+ },
7
+ "typesVersions": {
8
+ "*": {
9
+ "*": [
10
+ "./src/*"
11
+ ]
12
+ }
13
+ },
14
+ "description": "Package that allows to keep static data from SP domain (disciplines, countries...) in a centralized place",
15
+ "scripts": {
16
+ "test": "npm run compile-data && mocha \"test/**/*Test.ts\"",
17
+ "prepare-deployment": "npm run compile-data && npm run build && cp package.json bin/package.json",
18
+ "compile-data": "ts-node compile",
19
+ "deploy-patch": "npm version patch && npm run deploy",
20
+ "deploy-minor": "npm version minor && npm run deploy",
21
+ "deploy-major": "npm version major && npm run deploy",
22
+ "deploy": "npm run prepare-deployment && npm publish ./bin",
23
+ "deploy-initial": "npm run prepare-deployment && npm publish ./bin --access=public",
24
+ "deploy-beta": "npm version prerelease && npm run prepare-deployment && npm publish ./bin --tag beta --access=public",
25
+ "build": "rm -rf bin && tsc && rm -rf bin/test"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/studyportals/static-domain-data.git"
30
+ },
31
+ "author": "SP - The Jedi Council",
32
+ "license": "BSD-3-Clause",
33
+ "bugs": {
34
+ "url": "https://github.com/studyportals/static-domain-data/issues"
35
+ },
36
+ "homepage": "https://github.com/studyportals/static-domain-data#readme",
37
+ "engines": {
38
+ "npm": ">=10",
39
+ "node": ">=20"
40
+ },
41
+ "devDependencies": {
42
+ "@testdeck/mocha": "^0.1.2",
43
+ "@types/chai": "^4.2.22",
44
+ "@types/mocha": "^9.0.0",
45
+ "chai": "^4.3.4",
46
+ "mocha": "^9.1.3",
47
+ "ts-node": "^10.4.0",
48
+ "typemoq": "^2.1.0",
49
+ "typescript": "^5.5.4"
50
+ },
51
+ "dependencies": {
52
+ "@studyportals/multiselect": "^4.3.5"
53
+ }
54
+ }
@@ -0,0 +1,4 @@
1
+ import { ISubDiscipline } from "./i-sub-discipline";
2
+ import { IDiscipline } from "./i-discipline";
3
+ declare const disciplineGetSubOrParentDiscipline: (id: string) => ISubDiscipline | IDiscipline | undefined;
4
+ export { disciplineGetSubOrParentDiscipline, };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.disciplineGetSubOrParentDiscipline = void 0;
4
+ const subdisciplines_1 = require("./subdisciplines");
5
+ const disciplines_1 = require("./disciplines");
6
+ const disciplineGetSubOrParentDiscipline = (id) => {
7
+ const subDiscipline = subdisciplines_1.subdisciplinesAll.find((subdiscipline) => subdiscipline.id === id);
8
+ if (subDiscipline) {
9
+ return subDiscipline;
10
+ }
11
+ return disciplines_1.disciplinesAll.find((discipline) => discipline.id === id);
12
+ };
13
+ exports.disciplineGetSubOrParentDiscipline = disciplineGetSubOrParentDiscipline;
14
+ //# sourceMappingURL=discipline-get-sub-or-parent-discipline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discipline-get-sub-or-parent-discipline.js","sourceRoot":"","sources":["../../../src/disciplines/discipline-get-sub-or-parent-discipline.ts"],"names":[],"mappings":";;;AACA,qDAAqD;AAErD,+CAA+C;AAE/C,MAAM,kCAAkC,GAAG,CAAC,EAAU,EAA4C,EAAE;IAChG,MAAM,aAAa,GAAG,kCAAiB,CAAC,IAAI,CAAC,CAAC,aAA6B,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAEzG,IAAI,aAAa,EAAE,CAAC;QAChB,OAAO,aAAa,CAAC;IACzB,CAAC;IAED,OAAO,4BAAc,CAAC,IAAI,CAAC,CAAC,UAAuB,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAClF,CAAC,CAAA;AAGG,gFAAkC"}
@@ -7,13 +7,32 @@ const synonymByDisciplineId = new Map([
7
7
  ["264", "music-history"],
8
8
  ["89", "management-organization-leadership"],
9
9
  ["248", "technology-management"],
10
- ["108", "informatics-information-sciences"],
11
- ["280", "videogames-multimedia"],
10
+ ["108", "informatics-information-technology"],
11
+ ["280", "video-games-animation"],
12
12
  ["292", "counselling"],
13
13
  ["229", "health-management"],
14
14
  ["326", "bioinformatics"],
15
15
  ["71", "communication-science"],
16
- ["304", "horticulture-and-crop-science"]
16
+ ["304", "horticulture"],
17
+ ["31", "biomedicine"],
18
+ ["33", "materials-science-engineering"],
19
+ ["69", "film-photography-media"],
20
+ ["84", "philosophy-ethics"],
21
+ ["92", "human-medicine"],
22
+ ["94", "energy-power-engineering"],
23
+ ["99", "religious-studies-theology"],
24
+ ["234", "business-intelligence-analytics"],
25
+ ["269", "general-studies-classics"],
26
+ ["274", "american-studies"],
27
+ ["275", "cognitive-sciences"],
28
+ ["298", "food-sciences"],
29
+ ["301", "animal-sciences"],
30
+ ["302", "marine-studies"],
31
+ ["317", "sports-sciences"],
32
+ ["318", "theatre-dance"],
33
+ ["322", "digital-communication"],
34
+ ["358", "teaching-english"],
35
+ ["362", "banking-and-investment"]
17
36
  ]);
18
37
  const disciplineGetSynonym = (id) => {
19
38
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"discipline-get-synonym.js","sourceRoot":"","sources":["../../../src/disciplines/discipline-get-synonym.ts"],"names":[],"mappings":";;;AAAA,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAiB;IAClD,CAAE,KAAK,EAAE,uBAAuB,CAAE;IAClC,CAAE,KAAK,EAAE,oBAAoB,CAAE;IAC/B,CAAE,KAAK,EAAE,eAAe,CAAE;IAC1B,CAAE,IAAI,EAAE,oCAAoC,CAAE;IAC9C,CAAE,KAAK,EAAE,uBAAuB,CAAE;IAClC,CAAE,KAAK,EAAE,kCAAkC,CAAE;IAC7C,CAAE,KAAK,EAAE,uBAAuB,CAAE;IAClC,CAAE,KAAK,EAAE,aAAa,CAAE;IACxB,CAAE,KAAK,EAAE,mBAAmB,CAAE;IAC9B,CAAE,KAAK,EAAE,gBAAgB,CAAE;IAC3B,CAAE,IAAI,EAAE,uB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