@studyportals/domain-client 3.16.0 → 3.16.1-beta.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 +4 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/models/ranking-card/i-ranking-card.d.ts +57 -0
- package/src/models/ranking-card/i-ranking-card.js +3 -0
- package/src/models/ranking-card/i-ranking-card.js.map +1 -0
- package/src/models/ranking-card/i-ranking.d.ts +14 -0
- package/src/models/ranking-card/i-ranking.js +3 -0
- package/src/models/ranking-card/i-ranking.js.map +1 -0
- package/src/models/ranking-card/public-ranking-card-client.d.ts +7 -0
- package/src/models/ranking-card/public-ranking-card-client.js +17 -0
- package/src/models/ranking-card/public-ranking-card-client.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -61,9 +61,12 @@ import { ISitemapCityInfo } from "./src/models/sitemap-cities-info/i-sitemap-cit
|
|
|
61
61
|
import { SitemapCitiesInfoClient } from "./src/models/sitemap-cities-info/sitemap-cities-info-client";
|
|
62
62
|
import { IScholarshipCard } from "./src/models/scholarship-card/i-scholarship-card";
|
|
63
63
|
import { PublicScholarshipCardClient } from "./src/models/scholarship-card/public-scholarship-card-client";
|
|
64
|
+
import { IRankingCard } from './src/models/ranking-card/i-ranking-card';
|
|
65
|
+
import { IRanking } from './src/models/ranking-card/i-ranking';
|
|
66
|
+
import { PublicRankingCardClient } from './src/models/ranking-card/public-ranking-card-client';
|
|
64
67
|
import { PortalType } from "./src/types/portal-type";
|
|
65
68
|
import { PortalMap } from "./src/types/portal-map";
|
|
66
69
|
import { ModelClient } from "./src/model-client";
|
|
67
70
|
import { ICompareProgramme } from "./src/models/compare-programme/i-compare-programme";
|
|
68
71
|
import { CompareProgrammeClient } from "./src/models/compare-programme/compare-programme-client";
|
|
69
|
-
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, ISitemapProgrammeInfo, SitemapProgrammeInfoClient, ISearchCountryFaq, PublicSearchCountryFaqClient, ISitemapCountryInfo, SitemapCountriesInfoClient, IDegreeInfo, ISitemapCountryDegreeInfo, SitemapCountryDegreeInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, IScholarshipCard, PublicScholarshipCardClient, ICompareProgramme, CompareProgrammeClient, PortalType, PortalMap, ModelClient };
|
|
72
|
+
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, ISitemapProgrammeInfo, SitemapProgrammeInfoClient, ISearchCountryFaq, PublicSearchCountryFaqClient, ISitemapCountryInfo, SitemapCountriesInfoClient, IDegreeInfo, ISitemapCountryDegreeInfo, SitemapCountryDegreeInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, IScholarshipCard, PublicScholarshipCardClient, IRankingCard, IRanking, PublicRankingCardClient, ICompareProgramme, CompareProgrammeClient, 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.CompareProgrammeClient = exports.PublicScholarshipCardClient = exports.SitemapCitiesInfoClient = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.SitemapOrganisationsInfoClient = exports.DotdigitalOrganisationClient = exports.SitemapDisciplinesInfoClient = exports.PublicSearchDisciplineClient = exports.SitemapCountryDegreeInfoClient = exports.SitemapCountriesInfoClient = exports.PublicSearchCountryFaqClient = exports.SitemapProgrammeInfoClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
|
|
3
|
+
exports.ModelClient = exports.PortalType = exports.CompareProgrammeClient = exports.PublicRankingCardClient = exports.PublicScholarshipCardClient = exports.SitemapCitiesInfoClient = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.SitemapOrganisationsInfoClient = exports.DotdigitalOrganisationClient = exports.SitemapDisciplinesInfoClient = exports.PublicSearchDisciplineClient = exports.SitemapCountryDegreeInfoClient = exports.SitemapCountriesInfoClient = exports.PublicSearchCountryFaqClient = exports.SitemapProgrammeInfoClient = 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");
|
|
@@ -43,6 +43,8 @@ const sitemap_cities_info_client_1 = require("./src/models/sitemap-cities-info/s
|
|
|
43
43
|
Object.defineProperty(exports, "SitemapCitiesInfoClient", { enumerable: true, get: function () { return sitemap_cities_info_client_1.SitemapCitiesInfoClient; } });
|
|
44
44
|
const public_scholarship_card_client_1 = require("./src/models/scholarship-card/public-scholarship-card-client");
|
|
45
45
|
Object.defineProperty(exports, "PublicScholarshipCardClient", { enumerable: true, get: function () { return public_scholarship_card_client_1.PublicScholarshipCardClient; } });
|
|
46
|
+
const public_ranking_card_client_1 = require("./src/models/ranking-card/public-ranking-card-client");
|
|
47
|
+
Object.defineProperty(exports, "PublicRankingCardClient", { enumerable: true, get: function () { return public_ranking_card_client_1.PublicRankingCardClient; } });
|
|
46
48
|
const portal_type_1 = require("./src/types/portal-type");
|
|
47
49
|
Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
|
|
48
50
|
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;AAyE3E,oGAzEQ,2CAAmB,OAyER;AAxEpB,wEAAmE;AAyElE,gGAzEQ,kCAAe,OAyER;AAxEhB,0FAAoF;AAyEnF,wGAzEQ,mDAAuB,OAyER;AA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6
|
+
* @return string | null
|
|
7
|
+
*/
|
|
8
|
+
getOrganisationCity(): string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Get the organisation country.
|
|
11
|
+
*
|
|
12
|
+
* @return string | null
|
|
13
|
+
*/
|
|
14
|
+
getOrganisationCountry(): string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Get the organisation id.
|
|
17
|
+
*
|
|
18
|
+
* @return number
|
|
19
|
+
*/
|
|
20
|
+
getOrganisationId(): number;
|
|
21
|
+
/**
|
|
22
|
+
* Get the organisation logo url.
|
|
23
|
+
*
|
|
24
|
+
* @return string | null
|
|
25
|
+
*/
|
|
26
|
+
getOrganisationLogoUrl(): string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Get the organisation name.
|
|
29
|
+
*
|
|
30
|
+
* @return string | null
|
|
31
|
+
*/
|
|
32
|
+
getOrganisationName(): string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Get the organisation homepage link.
|
|
35
|
+
*
|
|
36
|
+
* @return string | null
|
|
37
|
+
*/
|
|
38
|
+
getOrganisationPageUrl(): string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Get the position for the organisation in the Studyportals ranking.
|
|
41
|
+
*
|
|
42
|
+
* @return number | null
|
|
43
|
+
*/
|
|
44
|
+
getPosition(): number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Get this organisation's ranked position for each available ranking.
|
|
47
|
+
*
|
|
48
|
+
* @return IRanking[]
|
|
49
|
+
*/
|
|
50
|
+
getRankings(): IRanking[];
|
|
51
|
+
/**
|
|
52
|
+
* Verifies if the organisation's logo can be displayed.
|
|
53
|
+
*
|
|
54
|
+
* @return boolean
|
|
55
|
+
*/
|
|
56
|
+
hasOrganisationLogo(): boolean;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-ranking-card.js","sourceRoot":"","sources":["../../../../src/models/ranking-card/i-ranking-card.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-ranking.js","sourceRoot":"","sources":["../../../../src/models/ranking-card/i-ranking.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IRankingCard } from "./i-ranking-card";
|
|
2
|
+
import { ModelClient } from "../../model-client";
|
|
3
|
+
export declare class PublicRankingCardClient extends ModelClient<IRankingCard> {
|
|
4
|
+
protected getModelName(): string;
|
|
5
|
+
protected getVersion(): string;
|
|
6
|
+
isPublic(): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicRankingCardClient = void 0;
|
|
4
|
+
const model_client_1 = require("../../model-client");
|
|
5
|
+
class PublicRankingCardClient extends model_client_1.ModelClient {
|
|
6
|
+
getModelName() {
|
|
7
|
+
return 'ranking-card';
|
|
8
|
+
}
|
|
9
|
+
getVersion() {
|
|
10
|
+
return 'v1';
|
|
11
|
+
}
|
|
12
|
+
isPublic() {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.PublicRankingCardClient = PublicRankingCardClient;
|
|
17
|
+
//# sourceMappingURL=public-ranking-card-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-ranking-card-client.js","sourceRoot":"","sources":["../../../../src/models/ranking-card/public-ranking-card-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,0BAAyB;IAC3D,YAAY;QACrB,OAAO,cAAc,CAAC;IACvB,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAZD,0DAYC"}
|