@studyportals/domain-client 3.32.0-organisations.0 → 3.34.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 CHANGED
@@ -76,4 +76,8 @@ import { ICompareProgramme } from "./src/models/compare-programme/i-compare-prog
76
76
  import { CompareProgrammeClient } from "./src/models/compare-programme/compare-programme-client";
77
77
  import { IOrganisationForSearch } from "./src/models/organisation-for-search/i-organisation-for-search";
78
78
  import { PublicOrganisationForSearchClient } from "./src/models/organisation-for-search/public-organisation-for-search-client";
79
- 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, IOrganisationSearchDocument, OrganisationSearchDocumentClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, IScholarshipCard, PublicScholarshipCardClient, IRankingCards, IRankingCard, IRanking, PublicRankingCardsClient, ICompareProgramme, CompareProgrammeClient, PortalType, PortalMap, ModelClient, IOrganisationForSearch, PublicOrganisationForSearchClient, IOrganisationCard, OrganisationCardClient };
79
+ import { ICopilotProgramme } from "./src/models/copilot-programme/i-copilot-programme";
80
+ import { CopilotProgrammeClient } from "./src/models/copilot-programme/copilot-programme-client";
81
+ import { ICopilotCountry } from "./src/models/copilot-country/i-copilot-country";
82
+ import { CopilotCountryClient } from "./src/models/copilot-country/copilot-country-client";
83
+ 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, IOrganisationSearchDocument, OrganisationSearchDocumentClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, IScholarshipCard, PublicScholarshipCardClient, IRankingCards, IRankingCard, IRanking, PublicRankingCardsClient, ICompareProgramme, CompareProgrammeClient, PortalType, PortalMap, ModelClient, IOrganisationForSearch, PublicOrganisationForSearchClient, IOrganisationCard, OrganisationCardClient, ICopilotProgramme, ICopilotCountry, CopilotProgrammeClient, CopilotCountryClient };
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrganisationCardClient = exports.PublicOrganisationForSearchClient = exports.ModelClient = exports.PortalType = exports.CompareProgrammeClient = exports.PublicRankingCardsClient = exports.PublicScholarshipCardClient = exports.SitemapCitiesInfoClient = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.OrganisationSearchDocumentClient = 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.CopilotCountryClient = exports.CopilotProgrammeClient = exports.OrganisationCardClient = exports.PublicOrganisationForSearchClient = exports.ModelClient = exports.PortalType = exports.CompareProgrammeClient = exports.PublicRankingCardsClient = exports.PublicScholarshipCardClient = exports.SitemapCitiesInfoClient = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.OrganisationSearchDocumentClient = 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");
@@ -57,4 +57,8 @@ const compare_programme_client_1 = require("./src/models/compare-programme/compa
57
57
  Object.defineProperty(exports, "CompareProgrammeClient", { enumerable: true, get: function () { return compare_programme_client_1.CompareProgrammeClient; } });
58
58
  const public_organisation_for_search_client_1 = require("./src/models/organisation-for-search/public-organisation-for-search-client");
59
59
  Object.defineProperty(exports, "PublicOrganisationForSearchClient", { enumerable: true, get: function () { return public_organisation_for_search_client_1.PublicOrganisationForSearchClient; } });
60
+ const copilot_programme_client_1 = require("./src/models/copilot-programme/copilot-programme-client");
61
+ Object.defineProperty(exports, "CopilotProgrammeClient", { enumerable: true, get: function () { return copilot_programme_client_1.CopilotProgrammeClient; } });
62
+ const copilot_country_client_1 = require("./src/models/copilot-country/copilot-country-client");
63
+ Object.defineProperty(exports, "CopilotCountryClient", { enumerable: true, get: function () { return copilot_country_client_1.CopilotCountryClient; } });
60
64
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kFAA4E;AAgF3E,oGAhFQ,2CAAmB,OAgFR;AA/EpB,wEAAmE;AAgFlE,gGAhFQ,kCAAe,OAgFR;AA/EhB,0FAAoF;AAgFnF,wGAhFQ,mDAAuB,OAgFR;AA/ExB,8EAAwE;AAgFvE,kGAhFQ,uCAAiB,OAgFR;AA/ElB,wGAAiG;AAgFhG,8GAhFQ,gEAA6B,OAgFR;AAnE9B,6FAAwF;AAgFvF,oGAhFQ,2CAAmB,OAgFR;AAzEpB,sGAAiG;AAgFhG,uGAhFQ,iDAAsB,OAgFR;AA5EvB,sGAAiG;AAgFhG,uGAhFQ,iDAAsB,OAgFR;AA1EvB,+GAA0G;AAgFzG,0GAhFQ,uDAAyB,OAgFR;AA9E1B,qHAA+G;AAgF9G,2GAhFQ,0DAA0B,OAgFR;AA9E3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 -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "3.32.0-organisations.0",
3
+ "version": "3.34.0",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "main": "index.js",
6
6
  "author": "StudyPortals B.V.",
@@ -0,0 +1,7 @@
1
+ import { ICopilotCountry } from "../../..";
2
+ import { ModelClient } from "../../model-client";
3
+ export declare class CopilotCountryClient extends ModelClient<ICopilotCountry> {
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.CopilotCountryClient = void 0;
4
+ const model_client_1 = require("../../model-client");
5
+ class CopilotCountryClient extends model_client_1.ModelClient {
6
+ getModelName() {
7
+ return 'copilot-country';
8
+ }
9
+ getVersion() {
10
+ return 'v1';
11
+ }
12
+ isPublic() {
13
+ return false;
14
+ }
15
+ }
16
+ exports.CopilotCountryClient = CopilotCountryClient;
17
+ //# sourceMappingURL=copilot-country-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copilot-country-client.js","sourceRoot":"","sources":["../../../../src/models/copilot-country/copilot-country-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,oBAAqB,SAAQ,0BAA4B;IAC3D,YAAY;QACrB,OAAO,iBAAiB,CAAC;IAC1B,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAZD,oDAYC"}
@@ -0,0 +1,32 @@
1
+ export interface ICopilotCountry {
2
+ /**
3
+ * How to apply in country x text
4
+ *
5
+ * @return string | null
6
+ */
7
+ getHowToApplyText(): string | null;
8
+ /**
9
+ * Id of the country.
10
+ *
11
+ * @return number
12
+ */
13
+ getId(): number;
14
+ /**
15
+ * ISO code ALPHA-2
16
+ *
17
+ * @return string
18
+ */
19
+ getIsoCode(): string;
20
+ /**
21
+ * Country title
22
+ *
23
+ * @return string
24
+ */
25
+ getTitle(): string;
26
+ /**
27
+ * Why study in country x text
28
+ *
29
+ * @return string | null
30
+ */
31
+ getWhyText(): string | null;
32
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-copilot-country.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-copilot-country.js","sourceRoot":"","sources":["../../../../src/models/copilot-country/i-copilot-country.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { ICopilotProgramme } from "../../..";
2
+ import { ModelClient } from "../../model-client";
3
+ export declare class CopilotProgrammeClient extends ModelClient<ICopilotProgramme> {
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.CopilotProgrammeClient = void 0;
4
+ const model_client_1 = require("../../model-client");
5
+ class CopilotProgrammeClient extends model_client_1.ModelClient {
6
+ getModelName() {
7
+ return 'copilot-programme';
8
+ }
9
+ getVersion() {
10
+ return 'v1';
11
+ }
12
+ isPublic() {
13
+ return false;
14
+ }
15
+ }
16
+ exports.CopilotProgrammeClient = CopilotProgrammeClient;
17
+ //# sourceMappingURL=copilot-programme-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copilot-programme-client.js","sourceRoot":"","sources":["../../../../src/models/copilot-programme/copilot-programme-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,sBAAuB,SAAQ,0BAA8B;IAC/D,YAAY;QACrB,OAAO,mBAAmB,CAAC;IAC5B,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAZD,wDAYC"}
@@ -0,0 +1,92 @@
1
+ import { IEnglishRequirements, IGeoTargetingValues, IInternalLink, ITiming, ITuitionValues } from "../../..";
2
+ export interface ICopilotProgramme {
3
+ /**
4
+ * Get country the programme is teached in
5
+ *
6
+ * @return number[]
7
+ */
8
+ getCountryIds(): number[];
9
+ /**
10
+ * Get discipline ids attached to this programme
11
+ *
12
+ * @return number[]
13
+ */
14
+ getDisciplineIds(): number[];
15
+ /**
16
+ * Education level
17
+ *
18
+ * @return string
19
+ */
20
+ getEducationalLevel(): string;
21
+ /**
22
+ * English level requirements.
23
+ *
24
+ * @return IEnglishRequirements
25
+ */
26
+ getEnglishRequirements(): IEnglishRequirements;
27
+ getGeneralRequirements(): string | null;
28
+ /**
29
+ * Get geotargetting settings for the programme
30
+ *
31
+ * @return IGeoTargetingValues
32
+ */
33
+ getGeoTargetingValues(): IGeoTargetingValues;
34
+ getGlobalUniversityRanking(): string | null;
35
+ /**
36
+ * Id of the programme.
37
+ *
38
+ * @return number
39
+ */
40
+ getId(): number;
41
+ /**
42
+ * Get a link to the programme page.
43
+ *
44
+ * The link contains the page path as url and the programme name as the
45
+ * link description.
46
+ *
47
+ * @return IInternalLink
48
+ */
49
+ getProgrammeLink(): IInternalLink;
50
+ /**
51
+ * Summary of the programme.
52
+ *
53
+ * @return string
54
+ */
55
+ getSummary(): string;
56
+ /**
57
+ * Get all start dates
58
+ *
59
+ * @return ITiming[]
60
+ */
61
+ getTimings(): ITiming[];
62
+ /**
63
+ * Title of the programme.
64
+ *
65
+ * @return string
66
+ */
67
+ getTitle(): string;
68
+ /**
69
+ * The programmes tuition fees
70
+ *
71
+ * @return ITuitionValues | null
72
+ */
73
+ getTuitionValues(): ITuitionValues | null;
74
+ /**
75
+ * University id
76
+ *
77
+ * @return number
78
+ */
79
+ getUniversityId(): number;
80
+ /**
81
+ * University title
82
+ *
83
+ * @return string
84
+ */
85
+ getUniversityTitle(): string;
86
+ /**
87
+ * Is programme public
88
+ *
89
+ * @return boolean
90
+ */
91
+ isPublic(): boolean;
92
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-copilot-programme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-copilot-programme.js","sourceRoot":"","sources":["../../../../src/models/copilot-programme/i-copilot-programme.ts"],"names":[],"mappings":""}
@@ -13,6 +13,7 @@ export interface IOrganisationSearchDocument {
13
13
  getOrganisationId(): number;
14
14
  /**
15
15
  * Gets the premium type of the organisation
16
+ *
16
17
  * @return string | null
17
18
  */
18
19
  getPremiumType(): string | null;
@@ -42,24 +43,34 @@ export interface IOrganisationSearchDocument {
42
43
  identifyAreasOfVenues(): number[];
43
44
  /**
44
45
  * Gets the disciplines of Bachelors programmes taught at the organisation
46
+ *
45
47
  * @return number[]
46
48
  */
47
49
  identifyDisciplinesForBachelors(): number[];
48
50
  /**
49
51
  * Gets the disciplines of Masters programmes taught at the organisation
52
+ *
50
53
  * @return number[]
51
54
  */
52
55
  identifyDisciplinesForMasters(): number[];
53
56
  /**
54
57
  * Gets the disciplines of PhD programmes taught at the organisation
58
+ *
55
59
  * @return number[]
56
60
  */
57
61
  identifyDisciplinesForPhd(): number[];
58
62
  /**
59
63
  * Gets the disciplines of short courses programmes taught at the organisation
64
+ *
60
65
  * @return number[]
61
66
  */
62
67
  identifyDisciplinesForShortCourses(): number[];
68
+ /**
69
+ * Returns true when the organisation does not have a parent organisation
70
+ *
71
+ * @return boolean
72
+ */
73
+ isMainOrganisation(): boolean;
63
74
  /**
64
75
  * Indicates whether the organisation is published or not
65
76
  *