@studyportals/domain-client 3.10.0-2 → 3.10.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/index.d.ts +7 -9
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/src/domain-client.js.map +1 -1
- package/src/models/programme-card/i-programme-card.d.ts +44 -1
- package/src/types/portal-map.d.ts +1 -1
- package/src/types.d.ts +4 -4
- package/src/models/bestfit-programme/i-city.d.ts +0 -14
- package/src/models/bestfit-programme/i-city.js +0 -3
- package/src/models/bestfit-programme/i-city.js.map +0 -1
- package/src/models/bestfit-programme/i-english-requirements.d.ts +0 -37
- package/src/models/bestfit-programme/i-english-requirements.js +0 -3
- package/src/models/bestfit-programme/i-english-requirements.js.map +0 -1
- package/src/models/bestfit-programme/i-tuition-fee.d.ts +0 -50
- package/src/models/bestfit-programme/i-tuition-fee.js +0 -3
- package/src/models/bestfit-programme/i-tuition-fee.js.map +0 -1
- package/src/models/dotdigital-organisation/i-city.d.ts +0 -14
- package/src/models/dotdigital-organisation/i-city.js +0 -3
- package/src/models/dotdigital-organisation/i-city.js.map +0 -1
- package/src/models/dotdigital-organisation/i-country.d.ts +0 -14
- package/src/models/dotdigital-organisation/i-country.js +0 -3
- package/src/models/dotdigital-organisation/i-country.js.map +0 -1
- package/src/models/dotdigital-programme/i-country.d.ts +0 -14
- package/src/models/dotdigital-programme/i-country.js +0 -3
- package/src/models/dotdigital-programme/i-country.js.map +0 -1
- package/src/models/dotdigital-programme/i-english-requirements.d.ts +0 -37
- package/src/models/dotdigital-programme/i-english-requirements.js +0 -3
- package/src/models/dotdigital-programme/i-english-requirements.js.map +0 -1
- package/src/models/dotdigital-programme/i-internal-link.d.ts +0 -28
- package/src/models/dotdigital-programme/i-internal-link.js +0 -3
- package/src/models/dotdigital-programme/i-internal-link.js.map +0 -1
- package/src/models/dotdigital-programme/i-logo.d.ts +0 -14
- package/src/models/dotdigital-programme/i-logo.js +0 -3
- package/src/models/dotdigital-programme/i-logo.js.map +0 -1
- package/src/models/dotdigital-programme/i-tuition-fee.d.ts +0 -50
- package/src/models/dotdigital-programme/i-tuition-fee.js +0 -3
- package/src/models/dotdigital-programme/i-tuition-fee.js.map +0 -1
- package/src/models/programme-card/i-internal-link.d.ts +0 -28
- package/src/models/programme-card/i-internal-link.js +0 -3
- package/src/models/programme-card/i-internal-link.js.map +0 -1
- package/src/models/programme-card/i-logo.d.ts +0 -14
- package/src/models/programme-card/i-logo.js +0 -3
- package/src/models/programme-card/i-logo.js.map +0 -1
- package/src/models/programme-card/i-tuition-fee.d.ts +0 -50
- package/src/models/programme-card/i-tuition-fee.js +0 -3
- package/src/models/programme-card/i-tuition-fee.js.map +0 -1
- package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +0 -14
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js +0 -3
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js.map +0 -1
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +0 -7
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +0 -17
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import { ClientException } from "./src/exceptions/client-exception";
|
|
|
3
3
|
import { InternalServerException } from "./src/exceptions/internal-server-exception";
|
|
4
4
|
import { NotFoundException } from "./src/exceptions/not-found-exception";
|
|
5
5
|
import { PropertyNotAvailableException } from "./src/exceptions/property-not-available-exception";
|
|
6
|
-
import { IInternalLink } from "./src/models/
|
|
7
|
-
import { ILogo } from "./src/models/
|
|
6
|
+
import { IInternalLink } from "./src/models/common/i-internal-link";
|
|
7
|
+
import { ILogo } from "./src/models/common/i-logo";
|
|
8
8
|
import { ICover } from "./src/models/programme-card/i-cover";
|
|
9
9
|
import { ILink } from "./src/models/programme-card/i-link";
|
|
10
10
|
import { IOptionalLink } from "./src/models/programme-card/i-optional-link";
|
|
11
11
|
import { ILocation } from "./src/models/programme-card/i-location";
|
|
12
12
|
import { IClickTrackingData } from "./src/models/programme-card/i-click-tracking-data";
|
|
13
13
|
import { ITracking } from "./src/models/programme-card/i-tracking";
|
|
14
|
-
import { ITuitionFee } from "./src/models/
|
|
14
|
+
import { ITuitionFee } from "./src/models/common/i-tuition-fee";
|
|
15
15
|
import { IDuration } from "./src/models/programme-card/i-duration";
|
|
16
16
|
import { IDeadline } from "./src/models/programme-card/i-deadline";
|
|
17
17
|
import { IStartDate } from "./src/models/programme-card/i-start-date";
|
|
@@ -26,13 +26,13 @@ import { IGeoTargetingConfiguration } from "./src/models/search-projection/i-geo
|
|
|
26
26
|
import { IGeoTargetingValues } from "./src/models/search-projection/i-geo-targeting-values";
|
|
27
27
|
import { ISearchProjection } from "./src/models/search-projection/i-search-projection";
|
|
28
28
|
import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client";
|
|
29
|
-
import { IEnglishRequirements } from "./src/models/
|
|
30
|
-
import { ICity } from "./src/models/
|
|
29
|
+
import { IEnglishRequirements } from "./src/models/common/i-english-requirements";
|
|
30
|
+
import { ICity } from "./src/models/common/i-city";
|
|
31
31
|
import { ILivingCost } from "./src/models/bestfit-programme/i-living-cost";
|
|
32
32
|
import { IGPARequirement } from "./src/models/bestfit-programme/i-g-p-a-requirement";
|
|
33
33
|
import { IBestFitProgramme } from "./src/models/bestfit-programme/i-best-fit-programme";
|
|
34
34
|
import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client";
|
|
35
|
-
import { ICountry } from "./src/models/
|
|
35
|
+
import { ICountry } from "./src/models/common/i-country";
|
|
36
36
|
import { IDotDigitalProgramme } from "./src/models/dotdigital-programme/i-dot-digital-programme";
|
|
37
37
|
import { DotdigitalProgrammeClient } from "./src/models/dotdigital-programme/dotdigital-programme-client";
|
|
38
38
|
import { ISearchCountryFaq } from "./src/models/search-country-faq/i-search-country-faq";
|
|
@@ -52,9 +52,7 @@ import { ISitemapRankingsInfo } from "./src/models/sitemap-rankings-info/i-sitem
|
|
|
52
52
|
import { SitemapRankingsInfoClient } from "./src/models/sitemap-rankings-info/sitemap-rankings-info-client";
|
|
53
53
|
import { ISitemapArticleInfo } from "./src/models/sitemap-articles-info/i-sitemap-article-info";
|
|
54
54
|
import { SitemapArticlesInfoClient } from "./src/models/sitemap-articles-info/sitemap-articles-info-client";
|
|
55
|
-
import { ISitemapCityInfo } from "./src/models/sitemap-cities-info/i-sitemap-city-info";
|
|
56
|
-
import { SitemapCitiesInfoClient } from "./src/models/sitemap-cities-info/sitemap-cities-info-client";
|
|
57
55
|
import { PortalType } from "./src/types/portal-type";
|
|
58
56
|
import { PortalMap } from "./src/types/portal-map";
|
|
59
57
|
import { ModelClient } from "./src/model-client";
|
|
60
|
-
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, ISitemapCountryInfo, SitemapCountriesInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient,
|
|
58
|
+
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, ISitemapCountryInfo, SitemapCountriesInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, PortalType, PortalMap, ModelClient };
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelClient = exports.PortalType = exports.
|
|
3
|
+
exports.ModelClient = exports.PortalType = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.SitemapOrganisationsInfoClient = exports.DotdigitalOrganisationClient = exports.SitemapDisciplinesInfoClient = exports.PublicSearchDisciplineClient = exports.SitemapCountriesInfoClient = exports.PublicSearchCountryFaqClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
|
|
4
4
|
const bad_request_exception_1 = require("./src/exceptions/bad-request-exception");
|
|
5
5
|
Object.defineProperty(exports, "BadRequestException", { enumerable: true, get: function () { return bad_request_exception_1.BadRequestException; } });
|
|
6
6
|
const client_exception_1 = require("./src/exceptions/client-exception");
|
|
@@ -35,8 +35,6 @@ const sitemap_rankings_info_client_1 = require("./src/models/sitemap-rankings-in
|
|
|
35
35
|
Object.defineProperty(exports, "SitemapRankingsInfoClient", { enumerable: true, get: function () { return sitemap_rankings_info_client_1.SitemapRankingsInfoClient; } });
|
|
36
36
|
const sitemap_articles_info_client_1 = require("./src/models/sitemap-articles-info/sitemap-articles-info-client");
|
|
37
37
|
Object.defineProperty(exports, "SitemapArticlesInfoClient", { enumerable: true, get: function () { return sitemap_articles_info_client_1.SitemapArticlesInfoClient; } });
|
|
38
|
-
const sitemap_cities_info_client_1 = require("./src/models/sitemap-cities-info/sitemap-cities-info-client");
|
|
39
|
-
Object.defineProperty(exports, "SitemapCitiesInfoClient", { enumerable: true, get: function () { return sitemap_cities_info_client_1.SitemapCitiesInfoClient; } });
|
|
40
38
|
const portal_type_1 = require("./src/types/portal-type");
|
|
41
39
|
Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
|
|
42
40
|
const model_client_1 = require("./src/model-client");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kFAA4E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kFAA4E;AA2D3E,oGA3DQ,2CAAmB,OA2DR;AA1DpB,wEAAmE;AA2DlE,gGA3DQ,kCAAe,OA2DR;AA1DhB,0FAAoF;AA2DnF,wGA3DQ,mDAAuB,OA2DR;AA1DxB,8EAAwE;AA2DvE,kGA3DQ,uCAAiB,OA2DR;AA1DlB,wGAAiG;AA2DhG,8GA3DQ,gEAA6B,OA2DR;AA3C9B,6FAAwF;AAwDvF,oGAxDQ,2CAAmB,OAwDR;AAjDpB,sGAAiG;AAwDhG,uGAxDQ,iDAAsB,OAwDR;AAlDvB,sGAAiG;AAsDhG,uGAtDQ,iDAAsB,OAsDR;AAnDvB,+GAA0G;AAyDzG,0GAzDQ,uDAAyB,OAyDR;AAvD1B,uHAAgH;AAyD/G,6GAzDQ,+DAA4B,OAyDR;AAvD7B,qHAA+G;AAyD9G,2GAzDQ,0DAA0B,OAyDR;AAvD3B,oHAA8G;AAyD7G,6GAzDQ,8DAA4B,OAyDR;AAvD7B,2HAAqH;AAyDpH,6GAzDQ,8DAA4B,OAyDR;AAtD7B,wHAAmH;AA2DlH,6GA3DQ,6DAA4B,OA2DR;AAzD7B,iIAA2H;AA2D1H,+GA3DQ,kEAA8B,OA2DR;AAzD/B,kHAA4G;AA2D3G,0GA3DQ,wDAAyB,OA2DR;AAzD1B,kHAA4G;AA2D3G,0GA3DQ,wDAAyB,OA2DR;AA1D1B,yDAAqD;AA2DpD,2FA3DQ,wBAAU,OA2DR;AAzDX,qDAAiD;AA2DhD,4FA3DQ,0BAAW,OA2DR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/domain-client",
|
|
3
|
-
"version": "3.10.0
|
|
3
|
+
"version": "3.10.0",
|
|
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": "
|
|
21
|
-
"publish-patch": "
|
|
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": {
|
package/src/domain-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-client.js","sourceRoot":"","sources":["../../src/domain-client.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"domain-client.js","sourceRoot":"","sources":["../../src/domain-client.ts"],"names":[],"mappings":";;;AAAA,iCAAkD;AAElD,8EAAyE;AACzE,sFAAiF;AACjF,0EAAqE;AAKrE,MAAa,YAAY;IAExB,YACiB,OAAe,EACf,MAA0B,EAC1B,KAAa,EACb,OAAe,EACf,QAAiB,EACjB,IAAY;QALZ,YAAO,GAAP,OAAO,CAAQ;QACf,WAAM,GAAN,MAAM,CAAoB;QAC1B,UAAK,GAAL,KAAK,CAAQ;QACb,YAAO,GAAP,OAAO,CAAQ;QACf,aAAQ,GAAR,QAAQ,CAAS;QACjB,SAAI,GAAJ,IAAI,CAAQ;IAE7B,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,GAAa;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAuB,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAA;QAC5D,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;YAC9B,sEAAsE;YACtE,MAAM,CAAC,SAAS,CAAC,GAAG,EAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAC,CAAA;SAC9C;QACD,MAAM,aAAa,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAoB,CAAC;QACpD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAE5B,MAAM,MAAM,GAAwB,EAAE,CAAC;QACvC,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE;YACrB,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACpC,IAAI,CAAC,SAAS,EAAE;gBACf,SAAS;aACT;YACD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACvB;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IAEO,YAAY,CAAC,QAAsB;QAC1C,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACrB,MAAM,IAAI,mDAAuB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SACpD;QAED,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;YAC5B,MAAM,IAAI,2CAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SAChD;QAED,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;YAC5B,MAAM,IAAI,uCAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC9C;IACF,CAAC;IAEO,QAAQ,CAAC,GAAa;QAC7B,MAAM,YAAY,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,IAAI,KAAK,GAAG,GAAG,YAAY,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,UAAU,IAAI,CAAC,IAAI,EAAE,CAAC;QAC9E,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE;YACrB,KAAK,IAAI,OAAO,EAAE,EAAE,CAAC;SACrB;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAEO,qBAAqB;QAC5B,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC;IACnD,CAAC;CACD;AA5DD,oCA4DC"}
|
|
@@ -40,7 +40,14 @@ export interface IProgrammeCard {
|
|
|
40
40
|
* @return ILocation
|
|
41
41
|
*/
|
|
42
42
|
getLocation(): ILocation;
|
|
43
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Get the location text the programme is located in
|
|
45
|
+
*
|
|
46
|
+
* Uses the country based on the programmes venues and isFullyOnline state
|
|
47
|
+
*
|
|
48
|
+
* @return string | null
|
|
49
|
+
*/
|
|
50
|
+
getLocationText(): string | null;
|
|
44
51
|
/**
|
|
45
52
|
* Get the Logo of the programme if available.
|
|
46
53
|
*
|
|
@@ -118,6 +125,42 @@ export interface IProgrammeCard {
|
|
|
118
125
|
* @return ILink
|
|
119
126
|
*/
|
|
120
127
|
getUniversityLink(): ILink;
|
|
128
|
+
/**
|
|
129
|
+
* If a program is both on campus and online
|
|
130
|
+
*
|
|
131
|
+
* @return boolean
|
|
132
|
+
*/
|
|
133
|
+
isBlended(): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* If a program is given in fulltime
|
|
136
|
+
*
|
|
137
|
+
* @return boolean
|
|
138
|
+
*/
|
|
139
|
+
isFullTime(): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* If a program can only be taught online or not
|
|
142
|
+
*
|
|
143
|
+
* @return boolean
|
|
144
|
+
*/
|
|
145
|
+
isFullyOnline(): boolean;
|
|
146
|
+
/**
|
|
147
|
+
* If a program is taught on campus
|
|
148
|
+
*
|
|
149
|
+
* @return boolean
|
|
150
|
+
*/
|
|
151
|
+
isOnCampus(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* If a program can be taught online
|
|
154
|
+
*
|
|
155
|
+
* @return boolean
|
|
156
|
+
*/
|
|
157
|
+
isOnline(): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* If a program is given in parttime
|
|
160
|
+
*
|
|
161
|
+
* @return boolean
|
|
162
|
+
*/
|
|
163
|
+
isPartTime(): boolean;
|
|
121
164
|
/**
|
|
122
165
|
* Public status of the programme.
|
|
123
166
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PortalType } from "./portal-type";
|
|
2
|
-
export type PortalMap = Map<PortalType, string>;
|
|
2
|
+
export declare type PortalMap = Map<PortalType, string>;
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Model = Record<string, Callable>;
|
|
2
|
-
export type Callable = () => CallableReturnType | CallableReturnType[];
|
|
3
|
-
export type CallableReturnType = AcceptedType | Model;
|
|
4
|
-
export type AcceptedType = string | string[] | number | number[] | boolean | null | Date;
|
|
1
|
+
export declare type Model = Record<string, Callable>;
|
|
2
|
+
export declare type Callable = () => CallableReturnType | CallableReturnType[];
|
|
3
|
+
export declare type CallableReturnType = AcceptedType | Model;
|
|
4
|
+
export declare type AcceptedType = string | string[] | number | number[] | boolean | null | Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-city.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-english-requirements.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-english-requirements.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-tuition-fee.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-city.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-country.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-country.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-english-requirements.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-english-requirements.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-internal-link.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-internal-link.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-logo.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-logo.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-tuition-fee.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-internal-link.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-internal-link.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-logo.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-logo.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/programme-card/i-tuition-fee.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-sitemap-city-info.js","sourceRoot":"","sources":["../../../../src/models/sitemap-cities-info/i-sitemap-city-info.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ISitemapCityInfo } from "../../..";
|
|
2
|
-
import { ModelClient } from "../../model-client";
|
|
3
|
-
export declare class SitemapCitiesInfoClient extends ModelClient<ISitemapCityInfo> {
|
|
4
|
-
protected getModelName(): string;
|
|
5
|
-
protected getVersion(): string;
|
|
6
|
-
isPublic(): boolean;
|
|
7
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SitemapCitiesInfoClient = void 0;
|
|
4
|
-
const model_client_1 = require("../../model-client");
|
|
5
|
-
class SitemapCitiesInfoClient extends model_client_1.ModelClient {
|
|
6
|
-
getModelName() {
|
|
7
|
-
return 'sitemap-cities-info';
|
|
8
|
-
}
|
|
9
|
-
getVersion() {
|
|
10
|
-
return 'v1';
|
|
11
|
-
}
|
|
12
|
-
isPublic() {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.SitemapCitiesInfoClient = SitemapCitiesInfoClient;
|
|
17
|
-
//# sourceMappingURL=sitemap-cities-info-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sitemap-cities-info-client.js","sourceRoot":"","sources":["../../../../src/models/sitemap-cities-info/sitemap-cities-info-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,0BAA6B;IAC/D,YAAY;QACrB,OAAO,qBAAqB,CAAC;IAC9B,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAZD,0DAYC"}
|