@studyportals/domain-client 3.5.2 → 3.6.0-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
@@ -3,15 +3,12 @@ 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/common/i-internal-link";
7
- import { ILogo } from "./src/models/common/i-logo";
8
6
  import { ICover } from "./src/models/programme-card/i-cover";
9
7
  import { ILink } from "./src/models/programme-card/i-link";
10
8
  import { IOptionalLink } from "./src/models/programme-card/i-optional-link";
11
9
  import { ILocation } from "./src/models/programme-card/i-location";
12
10
  import { IClickTrackingData } from "./src/models/programme-card/i-click-tracking-data";
13
11
  import { ITracking } from "./src/models/programme-card/i-tracking";
14
- import { ITuitionFee } from "./src/models/common/i-tuition-fee";
15
12
  import { IDuration } from "./src/models/programme-card/i-duration";
16
13
  import { IDeadline } from "./src/models/programme-card/i-deadline";
17
14
  import { IStartDate } from "./src/models/programme-card/i-start-date";
@@ -26,17 +23,23 @@ import { IGeoTargetingConfiguration } from "./src/models/search-projection/i-geo
26
23
  import { IGeoTargetingValues } from "./src/models/search-projection/i-geo-targeting-values";
27
24
  import { ISearchProjection } from "./src/models/search-projection/i-search-projection";
28
25
  import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client";
29
- import { IEnglishRequirements } from "./src/models/common/i-english-requirements";
30
26
  import { ILivingCost } from "./src/models/bestfit-programme/i-living-cost";
31
- import { ICity } from "./src/models/bestfit-programme/i-city";
32
27
  import { IGPARequirement } from "./src/models/bestfit-programme/i-g-p-a-requirement";
33
28
  import { IBestFitProgramme } from "./src/models/bestfit-programme/i-best-fit-programme";
34
29
  import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client";
35
30
  import { IDotDigitalProgramme } from "./src/models/dotdigital-programme/i-dot-digital-programme";
36
31
  import { DotdigitalProgrammeClient } from "./src/models/dotdigital-programme/dotdigital-programme-client";
37
- import { ICountry } from "./src/models/dotdigital-programme/i-country";
38
32
  import { ISearchCountryFaq } from "./src/models/search-country-faq/i-search-country-faq";
39
33
  import { PublicSearchCountryFaqClient } from "./src/models/search-country-faq/public-search-country-faq-client";
40
- import { PortalMap } from "./src/types/portal-map";
34
+ import { IReview } from "./src/models/dotdigital-organisation/i-review";
35
+ import { IDotDigitalOrganisation } from "./src/models/dotdigital-organisation/i-dot-digital-organisation";
36
+ import { DotdigitalOrganisationClient } from "./src/models/dotdigital-organisation/dotdigital-organisation-client";
37
+ import { IInternalLink } from "./src/models/common/i-internal-link";
38
+ import { ILogo } from "./src/models/common/i-logo";
39
+ import { ITuitionFee } from "./src/models/common/i-tuition-fee";
40
+ import { IEnglishRequirements } from "./src/models/common/i-english-requirements";
41
+ import { ICity } from "./src/models/common/i-city";
42
+ import { ICountry } from "./src/models/common/i-country";
41
43
  import { PortalType } from "./src/types/portal-type";
42
- export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, IInternalLink, ILogo, ICover, ICountry, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, ICity, IBestFitProgramme, BestfitProgrammeClient, ITuitionFee, IEnglishRequirements, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, PortalMap, PortalType };
44
+ import { PortalMap } from "./src/types/portal-map";
45
+ export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, IInternalLink, ILogo, ITuitionFee, IEnglishRequirements, ICity, ICountry, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, PortalMap, PortalType };
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PortalType = exports.PublicSearchCountryFaqClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
3
+ exports.PortalType = exports.DotdigitalOrganisationClient = 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");
@@ -21,6 +21,8 @@ const dotdigital_programme_client_1 = require("./src/models/dotdigital-programme
21
21
  Object.defineProperty(exports, "DotdigitalProgrammeClient", { enumerable: true, get: function () { return dotdigital_programme_client_1.DotdigitalProgrammeClient; } });
22
22
  const public_search_country_faq_client_1 = require("./src/models/search-country-faq/public-search-country-faq-client");
23
23
  Object.defineProperty(exports, "PublicSearchCountryFaqClient", { enumerable: true, get: function () { return public_search_country_faq_client_1.PublicSearchCountryFaqClient; } });
24
+ const dotdigital_organisation_client_1 = require("./src/models/dotdigital-organisation/dotdigital-organisation-client");
25
+ Object.defineProperty(exports, "DotdigitalOrganisationClient", { enumerable: true, get: function () { return dotdigital_organisation_client_1.DotdigitalOrganisationClient; } });
24
26
  const portal_type_1 = require("./src/types/portal-type");
25
27
  Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
26
28
  //# 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;AA2C3E,oGA3CQ,2CAAmB,OA2CR;AA1CpB,wEAAmE;AA2ClE,gGA3CQ,kCAAe,OA2CR;AA1ChB,0FAAoF;AA2CnF,wGA3CQ,mDAAuB,OA2CR;AA1CxB,8EAAwE;AA2CvE,kGA3CQ,uCAAiB,OA2CR;AA1ClB,wGAAiG;AA2ChG,8GA3CQ,gEAA6B,OA2CR;AA3B9B,6FAAwF;AA2CvF,oGA3CQ,2CAAmB,OA2CR;AApCpB,sGAAiG;AA2ChG,uGA3CQ,iDAAsB,OA2CR;AArCvB,sGAAiG;AA0ChG,uGA1CQ,iDAAsB,OA0CR;AAxCvB,+GAA0G;AA4CzG,0GA5CQ,uDAAyB,OA4CR;AAzC1B,uHAAgH;AA2C/G,6GA3CQ,+DAA4B,OA2CR;AAzC7B,yDAAoD;AA2CnD,2FA3CQ,wBAAU,OA2CR"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kFAA4E;AA8C3E,oGA9CQ,2CAAmB,OA8CR;AA7CpB,wEAAmE;AA8ClE,gGA9CQ,kCAAe,OA8CR;AA7ChB,0FAAoF;AA8CnF,wGA9CQ,mDAAuB,OA8CR;AA7CxB,8EAAwE;AA8CvE,kGA9CQ,uCAAiB,OA8CR;AA7ClB,wGAAiG;AA8ChG,8GA9CQ,gEAA6B,OA8CR;AAjC9B,6FAAwF;AAoDvF,oGApDQ,2CAAmB,OAoDR;AA7CpB,sGAAiG;AAoDhG,uGApDQ,iDAAsB,OAoDR;AAhDvB,sGAAiG;AAoDhG,uGApDQ,iDAAsB,OAoDR;AAlDvB,+GAA0G;AAoDzG,0GApDQ,uDAAyB,OAoDR;AAlD1B,uHAAgH;AAoD/G,6GApDQ,+DAA4B,OAoDR;AAjD7B,wHAAmH;AAoDlH,6GApDQ,6DAA4B,OAoDR;AA7C7B,yDAAoD;AA+CnD,2FA/CQ,wBAAU,OA+CR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "3.5.2",
3
+ "version": "3.6.0-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 @@
1
+ {"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/common/i-city.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/common/i-country.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { IDotDigitalOrganisation } from "../../..";
2
+ import { ModelClient } from "../../model-client";
3
+ export declare class DotdigitalOrganisationClient extends ModelClient<IDotDigitalOrganisation> {
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.DotdigitalOrganisationClient = void 0;
4
+ const model_client_1 = require("../../model-client");
5
+ class DotdigitalOrganisationClient extends model_client_1.ModelClient {
6
+ getModelName() {
7
+ return 'dotdigital-organisation';
8
+ }
9
+ getVersion() {
10
+ return 'v1';
11
+ }
12
+ isPublic() {
13
+ return false;
14
+ }
15
+ }
16
+ exports.DotdigitalOrganisationClient = DotdigitalOrganisationClient;
17
+ //# sourceMappingURL=dotdigital-organisation-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotdigital-organisation-client.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/dotdigital-organisation-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,4BAA6B,SAAQ,0BAAoC;IAC3E,YAAY;QACrB,OAAO,yBAAyB,CAAC;IAClC,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAZD,oEAYC"}
@@ -0,0 +1,31 @@
1
+ import { ICity, ICountry, IReview } from "../../..";
2
+ export interface IDotDigitalOrganisation {
3
+ getAboutCareer(): string;
4
+ getAboutEducation(): string;
5
+ getAboutHistory(): string;
6
+ getAboutResearch(): string;
7
+ getAcademicStaff(): number;
8
+ getAmountOfProgrammes(): number;
9
+ getCity(): ICity;
10
+ getCountry(): ICountry;
11
+ getCoverUrl(): string;
12
+ getFemaleStudents(): number;
13
+ getId(): number;
14
+ getAverageStudentRating(): number;
15
+ getLogoUrl(): string;
16
+ getName(): string;
17
+ getOrganisationUrl(): string;
18
+ /**
19
+ * @return IReview[]
20
+ */
21
+ 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;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-dot-digital-organisation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-dot-digital-organisation.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-dot-digital-organisation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface IReview {
2
+ getEndDate(): Date;
3
+ getRating(): number;
4
+ getReview(): string;
5
+ getStartDate(): Date;
6
+ getTitle(): string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-review.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-review.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-organisation/i-review.ts"],"names":[],"mappings":""}
@@ -98,7 +98,6 @@ export interface IProgrammeCard {
98
98
  getTracking(): ITracking;
99
99
  /**
100
100
  * Get all tuition fees of the programme.
101
- *
102
101
  * @return ITuitionFee[]
103
102
  */
104
103
  getTuitionFees(): ITuitionFee[];
@@ -1 +0,0 @@
1
- {"version":3,"file":"i-city.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-city.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"i-country.js","sourceRoot":"","sources":["../../../../src/models/dotdigital-programme/i-country.ts"],"names":[],"mappings":""}