@studyportals/domain-client 3.16.0 → 3.16.1-beta.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.
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;AAsE3E,oGAtEQ,2CAAmB,OAsER;AArEpB,wEAAmE;AAsElE,gGAtEQ,kCAAe,OAsER;AArEhB,0FAAoF;AAsEnF,wGAtEQ,mDAAuB,OAsER;AArExB,8EAAwE;AAsEvE,kGAtEQ,uCAAiB,OAsER;AArElB,wGAAiG;AAsEhG,8GAtEQ,gEAA6B,OAsER;AAzD9B,6FAAwF;AAsEvF,oGAtEQ,2CAAmB,OAsER;AA/DpB,sGAAiG;AAsEhG,uGAtEQ,iDAAsB,OAsER;AAlEvB,sGAAiG;AAsEhG,uGAtEQ,iDAAsB,OAsER;AAhEvB,+GAA0G;AAsEzG,0GAtEQ,uDAAyB,OAsER;AApE1B,qHAA+G;AAsE9G,2GAtEQ,0DAA0B,OAsER;AApE3B,uHAAgH;AAsE/G,6GAtEQ,+DAA4B,OAsER;AApE7B,qHAA+G;AAsE9G,2GAtEQ,0DAA0B,OAsER;AAnE3B,oIAA6H;AAsE5H,+GAtEQ,mEAA8B,OAsER;AApE/B,oHAA8G;AAsE7G,6GAtEQ,8DAA4B,OAsER;AApE7B,2HAAqH;AAsEpH,6GAtEQ,8DAA4B,OAsER;AAjE7B,wHAAmH;AAsElH,6GAtEQ,6DAA4B,OAsER;AApE7B,iIAA2H;AAsE1H,+GAtEQ,kEAA8B,OAsER;AApE/B,kHAA4G;A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,0GAzEQ,wDAAyB,OAyER;AAvE1B,kHAA4G;AAyE3G,0GAzEQ,wDAAyB,OAyER;AAvE1B,4GAAsG;AAyErG,wGAzEQ,oDAAuB,OAyER;AAvExB,iHAA2G;AAyE1G,4GAzEQ,4DAA2B,OAyER;AAtE5B,qGAA+F;AAyE9F,wGAzEQ,oDAAuB,OAyER;AAxExB,yDAAqD;AA2EpD,2FA3EQ,wBAAU,OA2ER;AAzEX,qDAAiD;AA2EhD,4FA3EQ,0BAAW,OA2ER;AAzEZ,sGAAgG;AAsE/F,uGAtEQ,iDAAsB,OAsER"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "3.16.0",
3
+ "version": "3.16.1-beta.1",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "main": "bin/index.js",
6
6
  "author": "StudyPortals B.V.",
@@ -0,0 +1,63 @@
1
+ import { IRanking } from "../../..";
2
+ export interface IRankingCard {
3
+ /**
4
+ * Get the organisation city.
5
+ *
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 the year the organisation was ranked.
47
+ *
48
+ * @return string | null
49
+ */
50
+ getRankingYear(): string | null;
51
+ /**
52
+ * Get this organisation's ranked position for each available ranking.
53
+ *
54
+ * @return IRanking[]
55
+ */
56
+ getRankings(): IRanking[];
57
+ /**
58
+ * Verifies if the organisation's logo can be displayed.
59
+ *
60
+ * @return boolean
61
+ */
62
+ hasOrganisationLogo(): boolean;
63
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-ranking-card.js.map
@@ -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,14 @@
1
+ export interface IRanking {
2
+ /**
3
+ * @return number
4
+ */
5
+ getId(): number;
6
+ /**
7
+ * @return number
8
+ */
9
+ getPosition(): number;
10
+ /**
11
+ * @return string
12
+ */
13
+ getRankingYear(): string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-ranking.js.map
@@ -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 "../../..";
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"}