@studyportals/domain-client 3.6.0-1 → 3.6.0
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 +14 -14
- package/src/factories/InternalLinkFactory.js.map +1 -1
- package/src/model-factory.js +2 -2
- package/src/model-factory.js.map +1 -1
- package/src/models/bestfit-programme/i-best-fit-programme.d.ts +2 -2
- package/src/models/bestfit-programme/i-city.d.ts +14 -0
- package/src/models/bestfit-programme/i-city.js +3 -0
- package/src/models/bestfit-programme/i-city.js.map +1 -0
- package/src/models/bestfit-programme/i-english-requirements.d.ts +37 -0
- package/src/models/bestfit-programme/i-english-requirements.js +3 -0
- package/src/models/bestfit-programme/i-english-requirements.js.map +1 -0
- package/src/models/bestfit-programme/i-tuition-fee.d.ts +50 -0
- package/src/models/bestfit-programme/i-tuition-fee.js +3 -0
- package/src/models/bestfit-programme/i-tuition-fee.js.map +1 -0
- package/src/models/dotdigital-organisation/i-city.d.ts +14 -0
- package/src/models/dotdigital-organisation/i-city.js +3 -0
- package/src/models/dotdigital-organisation/i-city.js.map +1 -0
- package/src/models/dotdigital-organisation/i-country.d.ts +14 -0
- package/src/models/dotdigital-organisation/i-country.js +3 -0
- package/src/models/dotdigital-organisation/i-country.js.map +1 -0
- package/src/models/dotdigital-organisation/i-dot-digital-organisation.d.ts +23 -19
- package/src/models/dotdigital-organisation/i-review.d.ts +4 -4
- package/src/models/dotdigital-programme/i-country.d.ts +14 -0
- package/src/models/dotdigital-programme/i-country.js +3 -0
- package/src/models/dotdigital-programme/i-country.js.map +1 -0
- package/src/models/dotdigital-programme/i-english-requirements.d.ts +37 -0
- package/src/models/dotdigital-programme/i-english-requirements.js +3 -0
- package/src/models/dotdigital-programme/i-english-requirements.js.map +1 -0
- package/src/models/dotdigital-programme/i-internal-link.d.ts +28 -0
- package/src/models/dotdigital-programme/i-internal-link.js +3 -0
- package/src/models/dotdigital-programme/i-internal-link.js.map +1 -0
- package/src/models/dotdigital-programme/i-logo.d.ts +14 -0
- package/src/models/dotdigital-programme/i-logo.js +3 -0
- package/src/models/dotdigital-programme/i-logo.js.map +1 -0
- package/src/models/dotdigital-programme/i-tuition-fee.d.ts +50 -0
- package/src/models/dotdigital-programme/i-tuition-fee.js +3 -0
- package/src/models/dotdigital-programme/i-tuition-fee.js.map +1 -0
- package/src/models/programme-card/i-internal-link.d.ts +28 -0
- package/src/models/programme-card/i-internal-link.js +3 -0
- package/src/models/programme-card/i-internal-link.js.map +1 -0
- package/src/models/programme-card/i-logo.d.ts +14 -0
- package/src/models/programme-card/i-logo.js +3 -0
- package/src/models/programme-card/i-logo.js.map +1 -0
- package/src/models/programme-card/i-programme-card.d.ts +1 -0
- package/src/models/programme-card/i-tuition-fee.d.ts +50 -0
- package/src/models/programme-card/i-tuition-fee.js +3 -0
- package/src/models/programme-card/i-tuition-fee.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/domain-client",
|
|
3
|
-
"version": "3.6.0
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Responsible for fetching data from the Domain API",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"author": "StudyPortals B.V.",
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
"axios": "^0.21.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@studyportals/code-style": "^1.
|
|
33
|
-
"@testdeck/mocha": "^0.1
|
|
32
|
+
"@studyportals/code-style": "^1.8.1",
|
|
33
|
+
"@testdeck/mocha": "^0.2.1",
|
|
34
34
|
"@types/axios": "^0.14.0",
|
|
35
|
-
"@types/mocha": "^
|
|
36
|
-
"@types/moxios": "^0.4.
|
|
37
|
-
"@types/node": "^
|
|
35
|
+
"@types/mocha": "^10.0.0",
|
|
36
|
+
"@types/moxios": "^0.4.15",
|
|
37
|
+
"@types/node": "^16.11.68",
|
|
38
38
|
"@types/reflect-metadata": "^0.1.0",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
40
|
-
"@typescript-eslint/parser": "^
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"eslint-plugin-import": "^2.
|
|
43
|
-
"eslint-plugin-mocha": "^
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^5.40.1",
|
|
40
|
+
"@typescript-eslint/parser": "^5.40.1",
|
|
41
|
+
"eslint": "^8.25.0",
|
|
42
|
+
"eslint-plugin-import": "^2.26.0",
|
|
43
|
+
"eslint-plugin-mocha": "^10.1.0",
|
|
44
44
|
"husky": "^4.3.0",
|
|
45
|
-
"mocha": "^
|
|
45
|
+
"mocha": "^10.1.0",
|
|
46
46
|
"moxios": "^0.4.0",
|
|
47
47
|
"nyc": "^15.1.0",
|
|
48
48
|
"source-map-support": "^0.5.19",
|
|
49
|
-
"ts-node": "^9.
|
|
49
|
+
"ts-node": "^10.9.1",
|
|
50
50
|
"tslint": "^6.1.3",
|
|
51
51
|
"typemoq": "^2.1.0",
|
|
52
|
-
"typescript": "^4.
|
|
52
|
+
"typescript": "^4.8.4"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalLinkFactory.js","sourceRoot":"","sources":["../../../src/factories/InternalLinkFactory.ts"],"names":[],"mappings":";;;AAKA,MAAa,mBAAmB;IAG/B,YAAY,SAAoB;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,IAAW;QACxB,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAgB,CAAC,CAAC;QAEhF,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAY,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"InternalLinkFactory.js","sourceRoot":"","sources":["../../../src/factories/InternalLinkFactory.ts"],"names":[],"mappings":";;;AAKA,MAAa,mBAAmB;IAG/B,YAAY,SAAoB;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,IAAW;QACxB,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAgB,CAAC,CAAC;QAEhF,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAY,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAW,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;QAEpD,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,gBAAgB,CAAC,UAAsB;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,GAAG,IAAI,EAAE,CAAC;IAClB,CAAC;CAED;AArBD,kDAqBC"}
|
package/src/model-factory.js
CHANGED
|
@@ -38,7 +38,7 @@ class ModelFactory {
|
|
|
38
38
|
const canShowFunction = 'canShow' + propertyName;
|
|
39
39
|
const value = data.func[functionName];
|
|
40
40
|
let returnValue;
|
|
41
|
-
if (i_model_description_1.isModelDescription(value)) {
|
|
41
|
+
if ((0, i_model_description_1.isModelDescription)(value)) {
|
|
42
42
|
returnValue = this.unpackClass(value);
|
|
43
43
|
}
|
|
44
44
|
else if (Array.isArray(value)) {
|
|
@@ -61,7 +61,7 @@ class ModelFactory {
|
|
|
61
61
|
}
|
|
62
62
|
unpackArray(list) {
|
|
63
63
|
return list.map(item => {
|
|
64
|
-
if (i_model_description_1.isModelDescription(item)) {
|
|
64
|
+
if ((0, i_model_description_1.isModelDescription)(item)) {
|
|
65
65
|
return this.unpackClass(item);
|
|
66
66
|
}
|
|
67
67
|
return item;
|
package/src/model-factory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-factory.js","sourceRoot":"","sources":["../../src/model-factory.ts"],"names":[],"mappings":";;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AAC,IAAI,CAAC,EAAE;gBAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;aAC7B;YAED,OAAO,IAA0B,CAAC;QACnC,CAAC,CACD,CAAC;IACH,CAAC;CACD;AApFD,oCAoFC"}
|
|
@@ -55,9 +55,9 @@ export interface IBestFitProgramme {
|
|
|
55
55
|
/**
|
|
56
56
|
* Minimum required education level
|
|
57
57
|
*
|
|
58
|
-
* @return string
|
|
58
|
+
* @return string | null
|
|
59
59
|
*/
|
|
60
|
-
getRequiredEducationalLevel(): string;
|
|
60
|
+
getRequiredEducationalLevel(): string | null;
|
|
61
61
|
canShowRequiredEducationalLevel(): boolean;
|
|
62
62
|
/**
|
|
63
63
|
* The programmes tuition fees
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-tuition-fee.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-city.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-country.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import { ICity, ICountry, IReview } from "../../..";
|
|
2
2
|
export interface IDotDigitalOrganisation {
|
|
3
|
-
getAboutCareer(): string;
|
|
4
|
-
getAboutEducation(): string;
|
|
5
|
-
getAboutHistory(): string;
|
|
6
|
-
getAboutResearch(): string;
|
|
7
|
-
getAcademicStaff(): number;
|
|
3
|
+
getAboutCareer(): string | null;
|
|
4
|
+
getAboutEducation(): string | null;
|
|
5
|
+
getAboutHistory(): string | null;
|
|
6
|
+
getAboutResearch(): string | null;
|
|
7
|
+
getAcademicStaff(): number | null;
|
|
8
8
|
getAmountOfProgrammes(): number;
|
|
9
|
+
getAverageStudentRating(): number | null;
|
|
9
10
|
getCity(): ICity;
|
|
10
11
|
getCountry(): ICountry;
|
|
11
|
-
getCoverUrl(): string;
|
|
12
|
-
getFemaleStudents(): number;
|
|
12
|
+
getCoverUrl(): string | null;
|
|
13
|
+
getFemaleStudents(): number | null;
|
|
13
14
|
getId(): number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
getName(): string;
|
|
15
|
+
getLogoUrl(): string | null;
|
|
16
|
+
getName(): string | null;
|
|
17
17
|
getOrganisationUrl(): string;
|
|
18
|
+
/**
|
|
19
|
+
* @return string[] | null
|
|
20
|
+
*/
|
|
21
|
+
getReasons(): string[] | null;
|
|
18
22
|
/**
|
|
19
23
|
* @return IReview[]
|
|
20
24
|
*/
|
|
21
25
|
getReviews(): IReview[];
|
|
22
|
-
getServicesHousing(): string;
|
|
23
|
-
getServicesICT(): string;
|
|
24
|
-
getServicesLibrary(): string;
|
|
25
|
-
getServicesMedical(): string;
|
|
26
|
-
getServicesStudent(): string;
|
|
27
|
-
getStudentLifeCampus(): string;
|
|
28
|
-
getStudentLifeSport(): string;
|
|
29
|
-
getStudents(): number;
|
|
30
|
-
getStudentsInternational(): number;
|
|
26
|
+
getServicesHousing(): string | null;
|
|
27
|
+
getServicesICT(): string | null;
|
|
28
|
+
getServicesLibrary(): string | null;
|
|
29
|
+
getServicesMedical(): string | null;
|
|
30
|
+
getServicesStudent(): string | null;
|
|
31
|
+
getStudentLifeCampus(): string | null;
|
|
32
|
+
getStudentLifeSport(): string | null;
|
|
33
|
+
getStudents(): number | null;
|
|
34
|
+
getStudentsInternational(): number | null;
|
|
31
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface IReview {
|
|
2
|
-
getEndDate(): Date;
|
|
2
|
+
getEndDate(): Date | null;
|
|
3
3
|
getRating(): number;
|
|
4
|
-
getReview(): string;
|
|
5
|
-
getStartDate(): Date;
|
|
6
|
-
getTitle(): string;
|
|
4
|
+
getReview(): string | null;
|
|
5
|
+
getStartDate(): Date | null;
|
|
6
|
+
getTitle(): string | null;
|
|
7
7
|
}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"i-internal-link.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-internal-link.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"i-internal-link.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-internal-link.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-logo.js","sourceRoot":"","sources":["../../../../src/models/programme-card/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 @@
|
|
|
1
|
+
{"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-tuition-fee.ts"],"names":[],"mappings":""}
|