@studyportals/domain-client 3.10.0-beta.0 → 3.10.1

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.
Files changed (42) hide show
  1. package/package.json +6 -6
  2. package/src/models/bestfit-programme/i-city.d.ts +14 -0
  3. package/src/models/bestfit-programme/i-city.js +3 -0
  4. package/src/models/bestfit-programme/i-city.js.map +1 -0
  5. package/src/models/bestfit-programme/i-english-requirements.d.ts +37 -0
  6. package/src/models/bestfit-programme/i-english-requirements.js +3 -0
  7. package/src/models/bestfit-programme/i-english-requirements.js.map +1 -0
  8. package/src/models/bestfit-programme/i-tuition-fee.d.ts +50 -0
  9. package/src/models/bestfit-programme/i-tuition-fee.js +3 -0
  10. package/src/models/bestfit-programme/i-tuition-fee.js.map +1 -0
  11. package/src/models/dotdigital-organisation/i-city.d.ts +14 -0
  12. package/src/models/dotdigital-organisation/i-city.js +3 -0
  13. package/src/models/dotdigital-organisation/i-city.js.map +1 -0
  14. package/src/models/dotdigital-organisation/i-country.d.ts +14 -0
  15. package/src/models/dotdigital-organisation/i-country.js +3 -0
  16. package/src/models/dotdigital-organisation/i-country.js.map +1 -0
  17. package/src/models/dotdigital-programme/i-country.d.ts +14 -0
  18. package/src/models/dotdigital-programme/i-country.js +3 -0
  19. package/src/models/dotdigital-programme/i-country.js.map +1 -0
  20. package/src/models/dotdigital-programme/i-english-requirements.d.ts +37 -0
  21. package/src/models/dotdigital-programme/i-english-requirements.js +3 -0
  22. package/src/models/dotdigital-programme/i-english-requirements.js.map +1 -0
  23. package/src/models/dotdigital-programme/i-internal-link.d.ts +28 -0
  24. package/src/models/dotdigital-programme/i-internal-link.js +3 -0
  25. package/src/models/dotdigital-programme/i-internal-link.js.map +1 -0
  26. package/src/models/dotdigital-programme/i-logo.d.ts +14 -0
  27. package/src/models/dotdigital-programme/i-logo.js +3 -0
  28. package/src/models/dotdigital-programme/i-logo.js.map +1 -0
  29. package/src/models/dotdigital-programme/i-tuition-fee.d.ts +50 -0
  30. package/src/models/dotdigital-programme/i-tuition-fee.js +3 -0
  31. package/src/models/dotdigital-programme/i-tuition-fee.js.map +1 -0
  32. package/src/models/programme-card/i-internal-link.d.ts +28 -0
  33. package/src/models/programme-card/i-internal-link.js +3 -0
  34. package/src/models/programme-card/i-internal-link.js.map +1 -0
  35. package/src/models/programme-card/i-logo.d.ts +14 -0
  36. package/src/models/programme-card/i-logo.js +3 -0
  37. package/src/models/programme-card/i-logo.js.map +1 -0
  38. package/src/models/programme-card/i-programme-card.d.ts +8 -0
  39. package/src/models/programme-card/i-tuition-fee.d.ts +50 -0
  40. package/src/models/programme-card/i-tuition-fee.js +3 -0
  41. package/src/models/programme-card/i-tuition-fee.js.map +1 -0
  42. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.d.ts +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "3.10.0-beta.0",
3
+ "version": "3.10.1",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "main": "bin/index.js",
6
6
  "author": "StudyPortals B.V.",
@@ -15,11 +15,11 @@
15
15
  "lint:fix": "eslint . --ext .ts --fix",
16
16
  "pre-push": "npm run test && npm run coverage && npm run lint",
17
17
  "prepare-dist": "npm run test && rm -fR bin && npx tsc && cp package.json bin/package.json && rm -fR bin/tests",
18
- "publish-beta": "npm version prerelease --preid=beta && npm run prepare-dist && npm publish bin --tag beta",
19
- "publish-major": "npm version major && npm run prepare-dist && npm publish bin",
20
- "publish-minor": " npm version minor && npm run prepare-dist &&npm publish bin",
21
- "publish-patch": " npm version patch && npm run prepare-dist && npm publish bin",
22
- "publish-current": "npm run prepare-dist && npm publish bin"
18
+ "publish-beta": "npm version prerelease --preid=beta && npm run prepare-dist && npm publish ./bin --tag beta",
19
+ "publish-major": "npm version major && npm run prepare-dist && npm publish ./bin",
20
+ "publish-minor": "npm version minor && npm run prepare-dist && npm publish ./bin",
21
+ "publish-patch": "npm version patch && npm run prepare-dist && npm publish ./bin",
22
+ "publish-current": "npm run prepare-dist && npm publish ./bin"
23
23
  },
24
24
  "husky": {
25
25
  "hooks": {
@@ -0,0 +1,14 @@
1
+ export interface ICity {
2
+ /**
3
+ * Get city id
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get city name
10
+ *
11
+ * @return string
12
+ */
13
+ getName(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-city.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-city.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ export interface IEnglishRequirements {
2
+ /**
3
+ * Required score for Duolingo
4
+ *
5
+ * @return number
6
+ */
7
+ getDuolingo(): number;
8
+ canShowDuolingo(): boolean;
9
+ /**
10
+ * Required score for IELTS tests
11
+ *
12
+ * @return number
13
+ */
14
+ getIELTS(): number;
15
+ canShowIELTS(): boolean;
16
+ /**
17
+ * Required score for PTE
18
+ *
19
+ * @return number
20
+ */
21
+ getPTE(): number;
22
+ canShowPTE(): boolean;
23
+ /**
24
+ * Required score for TOEFL internet
25
+ *
26
+ * @return number
27
+ */
28
+ getTOEFLInternet(): number;
29
+ canShowTOEFLInternet(): boolean;
30
+ /**
31
+ * Required score for TOEFL paper
32
+ *
33
+ * @return number
34
+ */
35
+ getTOEFLPaper(): number;
36
+ canShowTOEFLPaper(): boolean;
37
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-english-requirements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-english-requirements.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-english-requirements.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
1
+ export interface ITuitionFee {
2
+ /**
3
+ * Get the tuition amount per unit in the provided currency.
4
+ *
5
+ * Note: all transformable units will be converted to yearly amounts. This
6
+ * includes per semester and full programme tuition fees.
7
+ *
8
+ * @return number
9
+ */
10
+ getAmount(): number;
11
+ /**
12
+ * Get the applicable currency.
13
+ *
14
+ * @return string
15
+ */
16
+ getCurrency(): string;
17
+ /**
18
+ * Get the original tuition amount before any transformation step.
19
+ *
20
+ * @return number
21
+ */
22
+ getOriginalAmount(): number;
23
+ /**
24
+ * Get the original tuition unit before any transformation step.
25
+ *
26
+ * @return string
27
+ */
28
+ getOriginalUnit(): string;
29
+ /**
30
+ * Get targeted audience (national, international, eea, etc).
31
+ *
32
+ * @return string
33
+ */
34
+ getTarget(): string;
35
+ /**
36
+ * Get the unit the tuition fee applies for.
37
+ *
38
+ * Note: all transformable units will be converted to 'year'. This means
39
+ * this value will be either 'year', 'module' or 'credit'.
40
+ *
41
+ * @return string
42
+ */
43
+ getUnit(): string;
44
+ /**
45
+ * True if the study is free for this target audience.
46
+ *
47
+ * @return boolean
48
+ */
49
+ isFree(): boolean;
50
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-tuition-fee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-tuition-fee.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface ICity {
2
+ /**
3
+ * Get city id
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get city name
10
+ *
11
+ * @return string
12
+ */
13
+ getName(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-city.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-city.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface ICountry {
2
+ /**
3
+ * Get country id
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get country name
10
+ *
11
+ * @return string
12
+ */
13
+ getName(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-country.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-country.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface ICountry {
2
+ /**
3
+ * Get country id
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get country name
10
+ *
11
+ * @return string
12
+ */
13
+ getName(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-country.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-country.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ export interface IEnglishRequirements {
2
+ /**
3
+ * Required score for Duolingo
4
+ *
5
+ * @return number
6
+ */
7
+ getDuolingo(): number;
8
+ canShowDuolingo(): boolean;
9
+ /**
10
+ * Required score for IELTS tests
11
+ *
12
+ * @return number
13
+ */
14
+ getIELTS(): number;
15
+ canShowIELTS(): boolean;
16
+ /**
17
+ * Required score for PTE
18
+ *
19
+ * @return number
20
+ */
21
+ getPTE(): number;
22
+ canShowPTE(): boolean;
23
+ /**
24
+ * Required score for TOEFL internet
25
+ *
26
+ * @return number
27
+ */
28
+ getTOEFLInternet(): number;
29
+ canShowTOEFLInternet(): boolean;
30
+ /**
31
+ * Required score for TOEFL paper
32
+ *
33
+ * @return number
34
+ */
35
+ getTOEFLPaper(): number;
36
+ canShowTOEFLPaper(): boolean;
37
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-english-requirements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-english-requirements.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-english-requirements.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ export interface IInternalLink {
2
+ /**
3
+ * Get an optional text describing the link (typically <a>-tags contents).
4
+ *
5
+ * @return string
6
+ * @throws PropertyNotAvailableException
7
+ */
8
+ getDescription(): string;
9
+ canShowDescription(): boolean;
10
+ /**
11
+ * Returns on which portal a this link should link towards.
12
+ *
13
+ * @return string
14
+ */
15
+ getPortalType(): string;
16
+ /**
17
+ * Get the url to refer to.
18
+ *
19
+ * Note that the url provided is always a relative URL. A base URL is needed
20
+ * to make it a full valid path.
21
+ * The only exception is when an external link is provided (meaning, outside
22
+ * of StudyPortals-maintained domains). In this case a full url will be
23
+ * provided.
24
+ *
25
+ * @return string
26
+ */
27
+ getUrl(): string;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-internal-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-internal-link.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-internal-link.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface ILogo {
2
+ /**
3
+ * Get the file ID of the logo.
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get the imgix URL of the logo.
10
+ *
11
+ * @return string
12
+ */
13
+ getSource(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-logo.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-logo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
1
+ export interface ITuitionFee {
2
+ /**
3
+ * Get the tuition amount per unit in the provided currency.
4
+ *
5
+ * Note: all transformable units will be converted to yearly amounts. This
6
+ * includes per semester and full programme tuition fees.
7
+ *
8
+ * @return number
9
+ */
10
+ getAmount(): number;
11
+ /**
12
+ * Get the applicable currency.
13
+ *
14
+ * @return string
15
+ */
16
+ getCurrency(): string;
17
+ /**
18
+ * Get the original tuition amount before any transformation step.
19
+ *
20
+ * @return number
21
+ */
22
+ getOriginalAmount(): number;
23
+ /**
24
+ * Get the original tuition unit before any transformation step.
25
+ *
26
+ * @return string
27
+ */
28
+ getOriginalUnit(): string;
29
+ /**
30
+ * Get targeted audience (national, international, eea, etc).
31
+ *
32
+ * @return string
33
+ */
34
+ getTarget(): string;
35
+ /**
36
+ * Get the unit the tuition fee applies for.
37
+ *
38
+ * Note: all transformable units will be converted to 'year'. This means
39
+ * this value will be either 'year', 'module' or 'credit'.
40
+ *
41
+ * @return string
42
+ */
43
+ getUnit(): string;
44
+ /**
45
+ * True if the study is free for this target audience.
46
+ *
47
+ * @return boolean
48
+ */
49
+ isFree(): boolean;
50
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-tuition-fee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-tuition-fee.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ export interface IInternalLink {
2
+ /**
3
+ * Get an optional text describing the link (typically <a>-tags contents).
4
+ *
5
+ * @return string
6
+ * @throws PropertyNotAvailableException
7
+ */
8
+ getDescription(): string;
9
+ canShowDescription(): boolean;
10
+ /**
11
+ * Returns on which portal a this link should link towards.
12
+ *
13
+ * @return string
14
+ */
15
+ getPortalType(): string;
16
+ /**
17
+ * Get the url to refer to.
18
+ *
19
+ * Note that the url provided is always a relative URL. A base URL is needed
20
+ * to make it a full valid path.
21
+ * The only exception is when an external link is provided (meaning, outside
22
+ * of StudyPortals-maintained domains). In this case a full url will be
23
+ * provided.
24
+ *
25
+ * @return string
26
+ */
27
+ getUrl(): string;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-internal-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-internal-link.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-internal-link.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface ILogo {
2
+ /**
3
+ * Get the file ID of the logo.
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get the imgix URL of the logo.
10
+ *
11
+ * @return string
12
+ */
13
+ getSource(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-logo.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-logo.ts"],"names":[],"mappings":""}
@@ -1,5 +1,12 @@
1
1
  import { ICover, IDuration, IInternalLink, ILink, ILocation, ILogo, ITiming, ITrackedLink, ITracking, ITuitionFee } from "../../..";
2
2
  export interface IProgrammeCard {
3
+ /**
4
+ * ISO code of the country the programme is taught.
5
+ * Formatted in UPPERCASE
6
+ *
7
+ * @return string | null
8
+ */
9
+ getCountryIsoCode(): string | null;
3
10
  /**
4
11
  * Get the Cover of the programme if available.
5
12
  *
@@ -40,6 +47,7 @@ export interface IProgrammeCard {
40
47
  * @return ILocation
41
48
  */
42
49
  getLocation(): ILocation;
50
+ canShowLocation(): boolean;
43
51
  /**
44
52
  * Get the location text the programme is located in
45
53
  *
@@ -0,0 +1,50 @@
1
+ export interface ITuitionFee {
2
+ /**
3
+ * Get the tuition amount per unit in the provided currency.
4
+ *
5
+ * Note: all transformable units will be converted to yearly amounts. This
6
+ * includes per semester and full programme tuition fees.
7
+ *
8
+ * @return number
9
+ */
10
+ getAmount(): number;
11
+ /**
12
+ * Get the applicable currency.
13
+ *
14
+ * @return string
15
+ */
16
+ getCurrency(): string;
17
+ /**
18
+ * Get the original tuition amount before any transformation step.
19
+ *
20
+ * @return number
21
+ */
22
+ getOriginalAmount(): number;
23
+ /**
24
+ * Get the original tuition unit before any transformation step.
25
+ *
26
+ * @return string
27
+ */
28
+ getOriginalUnit(): string;
29
+ /**
30
+ * Get targeted audience (national, international, eea, etc).
31
+ *
32
+ * @return string
33
+ */
34
+ getTarget(): string;
35
+ /**
36
+ * Get the unit the tuition fee applies for.
37
+ *
38
+ * Note: all transformable units will be converted to 'year'. This means
39
+ * this value will be either 'year', 'module' or 'credit'.
40
+ *
41
+ * @return string
42
+ */
43
+ getUnit(): string;
44
+ /**
45
+ * True if the study is free for this target audience.
46
+ *
47
+ * @return boolean
48
+ */
49
+ isFree(): boolean;
50
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-tuition-fee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-tuition-fee.ts"],"names":[],"mappings":""}
@@ -10,5 +10,17 @@ export interface ISitemapOrganisationInfo {
10
10
  /**
11
11
  * @return boolean
12
12
  */
13
- shouldBeInSitemap(): boolean;
13
+ shouldBeInSitemapForBachelors(): boolean;
14
+ /**
15
+ * @return boolean
16
+ */
17
+ shouldBeInSitemapForMasters(): boolean;
18
+ /**
19
+ * @return boolean
20
+ */
21
+ shouldBeInSitemapForPhd(): boolean;
22
+ /**
23
+ * @return boolean
24
+ */
25
+ shouldBeInSitemapForShortCourses(): boolean;
14
26
  }