@studyportals/domain-client 7.1.0 → 7.1.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 +89 -89
- package/index.js +34 -81
- package/package.json +3 -2
- package/protobuf/Area.js +1 -4
- package/protobuf/Article.d.ts +5 -5
- package/protobuf/Article.js +30 -33
- package/protobuf/Body.js +1 -4
- package/protobuf/CampaignInformation.js +1 -4
- package/protobuf/ClickTracking.js +1 -4
- package/protobuf/CommercialEntity.js +1 -4
- package/protobuf/Cover.js +1 -4
- package/protobuf/Deadline.js +1 -4
- package/protobuf/Degree.js +1 -4
- package/protobuf/Description.d.ts +2 -2
- package/protobuf/Description.js +13 -16
- package/protobuf/Discipline.d.ts +3 -3
- package/protobuf/Discipline.js +10 -13
- package/protobuf/Duration.js +1 -4
- package/protobuf/EnglishRequirement.js +1 -4
- package/protobuf/EssentialInformation.js +1 -4
- package/protobuf/File.js +3 -6
- package/protobuf/GPARequirement.js +1 -4
- package/protobuf/InternalLink.js +3 -6
- package/protobuf/Link.js +1 -4
- package/protobuf/LivingCost.js +1 -4
- package/protobuf/Location.d.ts +1 -1
- package/protobuf/Location.js +8 -11
- package/protobuf/Logo.js +1 -4
- package/protobuf/MiniProgrammeCard.d.ts +3 -3
- package/protobuf/MiniProgrammeCard.js +10 -13
- package/protobuf/OptionalLink.js +1 -4
- package/protobuf/Organisation.d.ts +12 -12
- package/protobuf/Organisation.js +86 -89
- package/protobuf/OrganisationInformation.js +1 -4
- package/protobuf/OrganisationRanking.d.ts +2 -2
- package/protobuf/OrganisationRanking.js +7 -10
- package/protobuf/Person.d.ts +1 -1
- package/protobuf/Person.js +4 -7
- package/protobuf/ProgrammeCard.d.ts +14 -14
- package/protobuf/ProgrammeCard.js +43 -46
- package/protobuf/ProgrammeGrid.d.ts +2 -2
- package/protobuf/ProgrammeGrid.js +9 -12
- package/protobuf/Ranking.d.ts +1 -1
- package/protobuf/Ranking.js +6 -9
- package/protobuf/RankingInstitute.d.ts +1 -1
- package/protobuf/RankingInstitute.js +4 -7
- package/protobuf/Review.d.ts +1 -1
- package/protobuf/Review.js +4 -7
- package/protobuf/ReviewRating.js +1 -4
- package/protobuf/RichText.js +1 -4
- package/protobuf/SocialLink.js +1 -4
- package/protobuf/StartDate.d.ts +1 -1
- package/protobuf/StartDate.js +4 -7
- package/protobuf/Timing.d.ts +2 -2
- package/protobuf/Timing.js +7 -10
- package/protobuf/Topic.js +1 -4
- package/protobuf/TrackedLink.d.ts +1 -1
- package/protobuf/TrackedLink.js +4 -7
- package/protobuf/Tracking.d.ts +1 -1
- package/protobuf/Tracking.js +4 -7
- package/protobuf/TuitionFee.js +1 -4
- package/protobuf/Unibuddy.js +1 -4
- package/protobuf/index.d.ts +42 -42
- package/protobuf/index.js +42 -58
- package/src/clients/article-detail-page-client.d.ts +2 -2
- package/src/clients/article-detail-page-client.js +4 -8
- package/src/clients/index.d.ts +4 -4
- package/src/clients/index.js +4 -20
- package/src/clients/organisation-page-client.d.ts +2 -2
- package/src/clients/organisation-page-client.js +4 -8
- package/src/clients/protobuf-client.d.ts +2 -2
- package/src/clients/protobuf-client.js +3 -7
- package/src/clients/public-mini-programme-card-client.d.ts +2 -2
- package/src/clients/public-mini-programme-card-client.js +4 -8
- package/src/domain-client.js +9 -13
- package/src/exceptions/bad-request-exception.js +1 -5
- package/src/exceptions/client-exception.js +1 -5
- package/src/exceptions/internal-server-exception.js +1 -5
- package/src/exceptions/not-found-exception.js +1 -5
- package/src/exceptions/property-not-available-exception.js +1 -5
- package/src/factories/DateFactory.d.ts +2 -2
- package/src/factories/DateFactory.js +1 -5
- package/src/factories/InternalLinkFactory.d.ts +3 -3
- package/src/factories/InternalLinkFactory.js +1 -5
- package/src/i-api-response.d.ts +1 -1
- package/src/i-api-response.js +1 -2
- package/src/i-class-factory.d.ts +1 -1
- package/src/i-class-factory.js +1 -2
- package/src/i-model-description.d.ts +1 -1
- package/src/i-model-description.js +1 -4
- package/src/model-client.d.ts +2 -2
- package/src/model-client.js +8 -12
- package/src/model-factory.d.ts +2 -2
- package/src/model-factory.js +10 -14
- package/src/models/bestfit-programme/bestfit-programme-client.d.ts +2 -2
- package/src/models/bestfit-programme/bestfit-programme-client.js +2 -6
- package/src/models/bestfit-programme/i-best-fit-programme.d.ts +1 -1
- package/src/models/bestfit-programme/i-best-fit-programme.js +1 -2
- package/src/models/bestfit-programme/i-city.js +1 -2
- package/src/models/bestfit-programme/i-living-cost.js +1 -2
- package/src/models/city-search-document/city-search-document-client.d.ts +2 -2
- package/src/models/city-search-document/city-search-document-client.js +2 -6
- package/src/models/city-search-document/i-city-search-document.js +1 -2
- package/src/models/common/i-city.js +1 -2
- package/src/models/common/i-country.js +1 -2
- package/src/models/common/i-english-requirements.js +1 -2
- package/src/models/common/i-g-p-a-requirement.js +1 -2
- package/src/models/common/i-internal-link.js +1 -2
- package/src/models/common/i-logo.js +1 -2
- package/src/models/common/i-review-rating.js +1 -2
- package/src/models/common/i-tuition-fee.js +1 -2
- package/src/models/copilot-country/copilot-country-client.d.ts +2 -2
- package/src/models/copilot-country/copilot-country-client.js +2 -6
- package/src/models/copilot-country/i-copilot-country.d.ts +1 -1
- package/src/models/copilot-country/i-copilot-country.js +1 -2
- package/src/models/copilot-country/i-copilot-ranking-card.js +1 -2
- package/src/models/copilot-programme/copilot-programme-client.d.ts +2 -2
- package/src/models/copilot-programme/copilot-programme-client.js +2 -6
- package/src/models/copilot-programme/i-copilot-programme.d.ts +1 -1
- package/src/models/copilot-programme/i-copilot-programme.js +1 -2
- package/src/models/customerio-organisation/customerio-organisation-client.d.ts +2 -2
- package/src/models/customerio-organisation/customerio-organisation-client.js +2 -6
- package/src/models/customerio-organisation/i-customer-io-organisation.d.ts +1 -1
- package/src/models/customerio-organisation/i-customer-io-organisation.js +1 -2
- package/src/models/customerio-organisation/i-review.js +1 -2
- package/src/models/customerio-programme/customerio-programme-client.d.ts +2 -2
- package/src/models/customerio-programme/customerio-programme-client.js +2 -6
- package/src/models/customerio-programme/i-customer-io-programme.d.ts +1 -1
- package/src/models/customerio-programme/i-customer-io-programme.js +1 -2
- package/src/models/customerio-programme/i-internal-link.js +1 -2
- package/src/models/faq-static-content/i-faq-static-content.d.ts +2 -2
- package/src/models/faq-static-content/i-faq-static-content.js +1 -2
- package/src/models/faq-static-content/i-faq.js +1 -2
- package/src/models/faq-static-content/i-static-content-url.js +1 -2
- package/src/models/faq-static-content/i-static-content.d.ts +1 -1
- package/src/models/faq-static-content/i-static-content.js +1 -2
- package/src/models/faq-static-content/public-faq-static-content-client.d.ts +2 -2
- package/src/models/faq-static-content/public-faq-static-content-client.js +2 -6
- package/src/models/organisation-card/i-organisation-card.d.ts +2 -2
- package/src/models/organisation-card/i-organisation-card.js +1 -2
- package/src/models/organisation-card/i-ranking-discipline.js +1 -2
- package/src/models/organisation-card/organisation-card-client.d.ts +2 -2
- package/src/models/organisation-card/organisation-card-client.js +2 -6
- package/src/models/organisation-for-search/i-organisation-for-search.js +1 -2
- package/src/models/organisation-for-search/public-organisation-for-search-client.d.ts +2 -2
- package/src/models/organisation-for-search/public-organisation-for-search-client.js +2 -6
- package/src/models/organisation-search-document/i-organisation-search-document.js +1 -2
- package/src/models/organisation-search-document/organisation-search-document-client.d.ts +2 -2
- package/src/models/organisation-search-document/organisation-search-document-client.js +2 -6
- package/src/models/programme-card/i-click-tracking-data.js +1 -2
- package/src/models/programme-card/i-cover.js +1 -2
- package/src/models/programme-card/i-deadline.js +1 -2
- package/src/models/programme-card/i-duration.js +1 -2
- package/src/models/programme-card/i-internal-link.js +1 -2
- package/src/models/programme-card/i-link.js +1 -2
- package/src/models/programme-card/i-location.d.ts +1 -1
- package/src/models/programme-card/i-location.js +1 -2
- package/src/models/programme-card/i-logo.js +1 -2
- package/src/models/programme-card/i-optional-link.js +1 -2
- package/src/models/programme-card/i-programme-card.d.ts +2 -2
- package/src/models/programme-card/i-programme-card.js +1 -2
- package/src/models/programme-card/i-start-date.d.ts +1 -1
- package/src/models/programme-card/i-start-date.js +1 -2
- package/src/models/programme-card/i-timing.d.ts +1 -1
- package/src/models/programme-card/i-timing.js +1 -2
- package/src/models/programme-card/i-tracked-link.d.ts +1 -1
- package/src/models/programme-card/i-tracked-link.js +1 -2
- package/src/models/programme-card/i-tracking.d.ts +1 -1
- package/src/models/programme-card/i-tracking.js +1 -2
- package/src/models/programme-card/i-tuition-fee.js +1 -2
- package/src/models/programme-card/programme-card-client.d.ts +2 -2
- package/src/models/programme-card/programme-card-client.js +2 -6
- package/src/models/ranking-cards/i-ranking.js +1 -2
- package/src/models/scholarship-card/i-scholarship-card-v2.js +1 -2
- package/src/models/scholarship-card/i-scholarship-card.js +1 -2
- package/src/models/scholarship-card/public-scholarship-card-client.d.ts +2 -2
- package/src/models/scholarship-card/public-scholarship-card-client.js +2 -6
- package/src/models/scholarship-card/scholarship-card-v2-client.d.ts +2 -2
- package/src/models/scholarship-card/scholarship-card-v2-client.js +2 -6
- package/src/models/scholarship-search-document/i-scholarship-search-document.js +1 -2
- package/src/models/scholarship-search-document/scholarship-search-document-client.d.ts +2 -2
- package/src/models/scholarship-search-document/scholarship-search-document-client.js +2 -6
- package/src/models/search-discipline/i-search-discipline.js +1 -2
- package/src/models/search-discipline/public-search-discipline-client.d.ts +2 -2
- package/src/models/search-discipline/public-search-discipline-client.js +2 -6
- package/src/models/search-projection/i-geo-targeting-configuration.js +1 -2
- package/src/models/search-projection/i-geo-targeting-values.d.ts +1 -1
- package/src/models/search-projection/i-geo-targeting-values.js +1 -2
- package/src/models/search-projection/i-organisation-values.js +1 -2
- package/src/models/search-projection/i-premium-values.js +1 -2
- package/src/models/search-projection/i-search-projection.d.ts +1 -1
- package/src/models/search-projection/i-search-projection.js +1 -2
- package/src/models/search-projection/i-tuition-values.js +1 -2
- package/src/models/search-projection/search-projection-client.d.ts +2 -2
- package/src/models/search-projection/search-projection-client.js +2 -6
- package/src/models/sitemap-articles-info/i-sitemap-article-info.js +1 -2
- package/src/models/sitemap-articles-info/sitemap-articles-info-client.d.ts +2 -2
- package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +2 -6
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js +1 -2
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +2 -2
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +2 -6
- package/src/models/sitemap-countries-info/i-sitemap-country-info.js +1 -2
- package/src/models/sitemap-countries-info/sitemap-countries-info-client.d.ts +2 -2
- package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +2 -6
- package/src/models/sitemap-country-degree-info/i-degree-info.js +1 -2
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +1 -1
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +1 -2
- package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.d.ts +2 -2
- package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +2 -6
- package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +1 -2
- package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.d.ts +2 -2
- package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +2 -6
- package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +1 -2
- package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.d.ts +2 -2
- package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +2 -6
- package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +1 -2
- package/src/models/sitemap-programme-info/sitemap-programme-info-client.d.ts +2 -2
- package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +2 -6
- package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +1 -2
- package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.d.ts +2 -2
- package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +2 -6
- package/src/types/portal-map.d.ts +1 -1
- package/src/types/portal-map.js +1 -2
- package/src/types/portal-type.js +2 -5
- package/src/types.js +1 -2
package/protobuf/TuitionFee.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: TuitionFee.proto
|
|
7
|
-
|
|
8
|
-
exports.TuitionFee = void 0;
|
|
9
|
-
exports.TuitionFee = {
|
|
6
|
+
export const TuitionFee = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
package/protobuf/Unibuddy.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Unibuddy.proto
|
|
7
|
-
|
|
8
|
-
exports.Unibuddy = void 0;
|
|
9
|
-
exports.Unibuddy = {
|
|
6
|
+
export const Unibuddy = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
package/protobuf/index.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./Area";
|
|
5
|
-
export * from "./Article";
|
|
6
|
-
export * from "./Body";
|
|
7
|
-
export * from "./CampaignInformation";
|
|
8
|
-
export * from "./ClickTracking";
|
|
9
|
-
export * from "./CommercialEntity";
|
|
10
|
-
export * from "./Cover";
|
|
11
|
-
export * from "./Deadline";
|
|
12
|
-
export * from "./Degree";
|
|
13
|
-
export * from "./Description";
|
|
14
|
-
export * from "./Discipline";
|
|
15
|
-
export * from "./Duration";
|
|
16
|
-
export * from "./EnglishRequirement";
|
|
17
|
-
export * from "./EssentialInformation";
|
|
18
|
-
export * from "./File";
|
|
19
|
-
export * from "./GPARequirement";
|
|
20
|
-
export * from "./InternalLink";
|
|
21
|
-
export * from "./Link";
|
|
22
|
-
export * from "./LivingCost";
|
|
23
|
-
export * from "./Location";
|
|
24
|
-
export * from "./Logo";
|
|
25
|
-
export * from "./MiniProgrammeCard";
|
|
26
|
-
export * from "./OptionalLink";
|
|
27
|
-
export * from "./Organisation";
|
|
28
|
-
export * from "./OrganisationInformation";
|
|
29
|
-
export * from "./OrganisationRanking";
|
|
30
|
-
export * from "./Person";
|
|
31
|
-
export * from "./ProgrammeCard";
|
|
32
|
-
export * from "./ProgrammeGrid";
|
|
33
|
-
export * from "./Ranking";
|
|
34
|
-
export * from "./RankingInstitute";
|
|
35
|
-
export * from "./Review";
|
|
36
|
-
export * from "./ReviewRating";
|
|
37
|
-
export * from "./RichText";
|
|
38
|
-
export * from "./SocialLink";
|
|
39
|
-
export * from "./StartDate";
|
|
40
|
-
export * from "./Timing";
|
|
41
|
-
export * from "./Topic";
|
|
42
|
-
export * from "./TrackedLink";
|
|
43
|
-
export * from "./Tracking";
|
|
44
|
-
export * from "./TuitionFee";
|
|
45
|
-
export * from "./Unibuddy";
|
|
4
|
+
export * from "./Area.js";
|
|
5
|
+
export * from "./Article.js";
|
|
6
|
+
export * from "./Body.js";
|
|
7
|
+
export * from "./CampaignInformation.js";
|
|
8
|
+
export * from "./ClickTracking.js";
|
|
9
|
+
export * from "./CommercialEntity.js";
|
|
10
|
+
export * from "./Cover.js";
|
|
11
|
+
export * from "./Deadline.js";
|
|
12
|
+
export * from "./Degree.js";
|
|
13
|
+
export * from "./Description.js";
|
|
14
|
+
export * from "./Discipline.js";
|
|
15
|
+
export * from "./Duration.js";
|
|
16
|
+
export * from "./EnglishRequirement.js";
|
|
17
|
+
export * from "./EssentialInformation.js";
|
|
18
|
+
export * from "./File.js";
|
|
19
|
+
export * from "./GPARequirement.js";
|
|
20
|
+
export * from "./InternalLink.js";
|
|
21
|
+
export * from "./Link.js";
|
|
22
|
+
export * from "./LivingCost.js";
|
|
23
|
+
export * from "./Location.js";
|
|
24
|
+
export * from "./Logo.js";
|
|
25
|
+
export * from "./MiniProgrammeCard.js";
|
|
26
|
+
export * from "./OptionalLink.js";
|
|
27
|
+
export * from "./Organisation.js";
|
|
28
|
+
export * from "./OrganisationInformation.js";
|
|
29
|
+
export * from "./OrganisationRanking.js";
|
|
30
|
+
export * from "./Person.js";
|
|
31
|
+
export * from "./ProgrammeCard.js";
|
|
32
|
+
export * from "./ProgrammeGrid.js";
|
|
33
|
+
export * from "./Ranking.js";
|
|
34
|
+
export * from "./RankingInstitute.js";
|
|
35
|
+
export * from "./Review.js";
|
|
36
|
+
export * from "./ReviewRating.js";
|
|
37
|
+
export * from "./RichText.js";
|
|
38
|
+
export * from "./SocialLink.js";
|
|
39
|
+
export * from "./StartDate.js";
|
|
40
|
+
export * from "./Timing.js";
|
|
41
|
+
export * from "./Topic.js";
|
|
42
|
+
export * from "./TrackedLink.js";
|
|
43
|
+
export * from "./Tracking.js";
|
|
44
|
+
export * from "./TuitionFee.js";
|
|
45
|
+
export * from "./Unibuddy.js";
|
package/protobuf/index.js
CHANGED
|
@@ -1,61 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @file Automatically generated by barrelsby.
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
__exportStar(require("./ProgrammeCard"), exports);
|
|
48
|
-
__exportStar(require("./ProgrammeGrid"), exports);
|
|
49
|
-
__exportStar(require("./Ranking"), exports);
|
|
50
|
-
__exportStar(require("./RankingInstitute"), exports);
|
|
51
|
-
__exportStar(require("./Review"), exports);
|
|
52
|
-
__exportStar(require("./ReviewRating"), exports);
|
|
53
|
-
__exportStar(require("./RichText"), exports);
|
|
54
|
-
__exportStar(require("./SocialLink"), exports);
|
|
55
|
-
__exportStar(require("./StartDate"), exports);
|
|
56
|
-
__exportStar(require("./Timing"), exports);
|
|
57
|
-
__exportStar(require("./Topic"), exports);
|
|
58
|
-
__exportStar(require("./TrackedLink"), exports);
|
|
59
|
-
__exportStar(require("./Tracking"), exports);
|
|
60
|
-
__exportStar(require("./TuitionFee"), exports);
|
|
61
|
-
__exportStar(require("./Unibuddy"), exports);
|
|
4
|
+
export * from "./Area.js";
|
|
5
|
+
export * from "./Article.js";
|
|
6
|
+
export * from "./Body.js";
|
|
7
|
+
export * from "./CampaignInformation.js";
|
|
8
|
+
export * from "./ClickTracking.js";
|
|
9
|
+
export * from "./CommercialEntity.js";
|
|
10
|
+
export * from "./Cover.js";
|
|
11
|
+
export * from "./Deadline.js";
|
|
12
|
+
export * from "./Degree.js";
|
|
13
|
+
export * from "./Description.js";
|
|
14
|
+
export * from "./Discipline.js";
|
|
15
|
+
export * from "./Duration.js";
|
|
16
|
+
export * from "./EnglishRequirement.js";
|
|
17
|
+
export * from "./EssentialInformation.js";
|
|
18
|
+
export * from "./File.js";
|
|
19
|
+
export * from "./GPARequirement.js";
|
|
20
|
+
export * from "./InternalLink.js";
|
|
21
|
+
export * from "./Link.js";
|
|
22
|
+
export * from "./LivingCost.js";
|
|
23
|
+
export * from "./Location.js";
|
|
24
|
+
export * from "./Logo.js";
|
|
25
|
+
export * from "./MiniProgrammeCard.js";
|
|
26
|
+
export * from "./OptionalLink.js";
|
|
27
|
+
export * from "./Organisation.js";
|
|
28
|
+
export * from "./OrganisationInformation.js";
|
|
29
|
+
export * from "./OrganisationRanking.js";
|
|
30
|
+
export * from "./Person.js";
|
|
31
|
+
export * from "./ProgrammeCard.js";
|
|
32
|
+
export * from "./ProgrammeGrid.js";
|
|
33
|
+
export * from "./Ranking.js";
|
|
34
|
+
export * from "./RankingInstitute.js";
|
|
35
|
+
export * from "./Review.js";
|
|
36
|
+
export * from "./ReviewRating.js";
|
|
37
|
+
export * from "./RichText.js";
|
|
38
|
+
export * from "./SocialLink.js";
|
|
39
|
+
export * from "./StartDate.js";
|
|
40
|
+
export * from "./Timing.js";
|
|
41
|
+
export * from "./Topic.js";
|
|
42
|
+
export * from "./TrackedLink.js";
|
|
43
|
+
export * from "./Tracking.js";
|
|
44
|
+
export * from "./TuitionFee.js";
|
|
45
|
+
export * from "./Unibuddy.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Article } from "../../protobuf";
|
|
2
|
-
import { ProtobufClient } from "./protobuf-client";
|
|
1
|
+
import { Article } from "../../protobuf/index.js";
|
|
2
|
+
import { ProtobufClient } from "./protobuf-client.js";
|
|
3
3
|
export declare class ArticleDetailPageClient extends ProtobufClient<Article> {
|
|
4
4
|
protected constructModel(data: Record<string, any>): Article;
|
|
5
5
|
protected getModelName(): string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const protobuf_1 = require("../../protobuf");
|
|
5
|
-
const protobuf_client_1 = require("./protobuf-client");
|
|
6
|
-
class ArticleDetailPageClient extends protobuf_client_1.ProtobufClient {
|
|
1
|
+
import { Article } from "../../protobuf/index.js";
|
|
2
|
+
import { ProtobufClient } from "./protobuf-client.js";
|
|
3
|
+
export class ArticleDetailPageClient extends ProtobufClient {
|
|
7
4
|
constructModel(data) {
|
|
8
|
-
return
|
|
5
|
+
return Article.fromJSON(data);
|
|
9
6
|
}
|
|
10
7
|
getModelName() {
|
|
11
8
|
return 'article-detail-page';
|
|
@@ -17,4 +14,3 @@ class ArticleDetailPageClient extends protobuf_client_1.ProtobufClient {
|
|
|
17
14
|
return false;
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
|
-
exports.ArticleDetailPageClient = ArticleDetailPageClient;
|
package/src/clients/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./article-detail-page-client";
|
|
5
|
-
export * from "./organisation-page-client";
|
|
6
|
-
export * from "./protobuf-client";
|
|
7
|
-
export * from "./public-mini-programme-card-client";
|
|
4
|
+
export * from "./article-detail-page-client.js";
|
|
5
|
+
export * from "./organisation-page-client.js";
|
|
6
|
+
export * from "./protobuf-client.js";
|
|
7
|
+
export * from "./public-mini-programme-card-client.js";
|
package/src/clients/index.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @file Automatically generated by barrelsby.
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./article-detail-page-client"), exports);
|
|
21
|
-
__exportStar(require("./organisation-page-client"), exports);
|
|
22
|
-
__exportStar(require("./protobuf-client"), exports);
|
|
23
|
-
__exportStar(require("./public-mini-programme-card-client"), exports);
|
|
4
|
+
export * from "./article-detail-page-client.js";
|
|
5
|
+
export * from "./organisation-page-client.js";
|
|
6
|
+
export * from "./protobuf-client.js";
|
|
7
|
+
export * from "./public-mini-programme-card-client.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Organisation } from "../../protobuf";
|
|
2
|
-
import { ProtobufClient } from "./protobuf-client";
|
|
1
|
+
import { Organisation } from "../../protobuf/index.js";
|
|
2
|
+
import { ProtobufClient } from "./protobuf-client.js";
|
|
3
3
|
export declare class OrganisationPageClient extends ProtobufClient<Organisation> {
|
|
4
4
|
protected constructModel(data: Record<string, any>): Organisation;
|
|
5
5
|
protected getModelName(): string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const protobuf_1 = require("../../protobuf");
|
|
5
|
-
const protobuf_client_1 = require("./protobuf-client");
|
|
6
|
-
class OrganisationPageClient extends protobuf_client_1.ProtobufClient {
|
|
1
|
+
import { Organisation } from "../../protobuf/index.js";
|
|
2
|
+
import { ProtobufClient } from "./protobuf-client.js";
|
|
3
|
+
export class OrganisationPageClient extends ProtobufClient {
|
|
7
4
|
constructModel(data) {
|
|
8
|
-
return
|
|
5
|
+
return Organisation.fromJSON(data);
|
|
9
6
|
}
|
|
10
7
|
getModelName() {
|
|
11
8
|
return 'organisation-page';
|
|
@@ -17,4 +14,3 @@ class OrganisationPageClient extends protobuf_client_1.ProtobufClient {
|
|
|
17
14
|
return false;
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
|
-
exports.OrganisationPageClient = OrganisationPageClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PortalMap } from "../types/portal-map";
|
|
2
|
-
import { PortalType } from "../types/portal-type";
|
|
1
|
+
import { PortalMap } from "../types/portal-map.js";
|
|
2
|
+
import { PortalType } from "../types/portal-type.js";
|
|
3
3
|
export declare abstract class ProtobufClient<T> {
|
|
4
4
|
static portalMap: PortalMap;
|
|
5
5
|
private readonly domainClient;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ProtobufClient = void 0;
|
|
4
|
-
const domain_client_1 = require("../domain-client");
|
|
5
|
-
class ProtobufClient {
|
|
1
|
+
import { DomainClient } from "../domain-client.js";
|
|
2
|
+
export class ProtobufClient {
|
|
6
3
|
static portalMap = new Map();
|
|
7
4
|
domainClient;
|
|
8
5
|
constructor(baseUrl, seed, apiKey, portalMap) {
|
|
9
6
|
if (portalMap) {
|
|
10
7
|
ProtobufClient.portalMap = portalMap;
|
|
11
8
|
}
|
|
12
|
-
this.domainClient = new
|
|
9
|
+
this.domainClient = new DomainClient(baseUrl, apiKey, this.getModelName(), this.getVersion(), this.isPublic(), seed);
|
|
13
10
|
}
|
|
14
11
|
async fetch(id) {
|
|
15
12
|
const results = await this.domainClient.doRequest([id]);
|
|
@@ -27,4 +24,3 @@ class ProtobufClient {
|
|
|
27
24
|
return path;
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
exports.ProtobufClient = ProtobufClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MiniProgrammeCard } from "../../protobuf";
|
|
2
|
-
import { ProtobufClient } from "./protobuf-client";
|
|
1
|
+
import { MiniProgrammeCard } from "../../protobuf/index.js";
|
|
2
|
+
import { ProtobufClient } from "./protobuf-client.js";
|
|
3
3
|
export declare class PublicMiniProgrammeCardClient extends ProtobufClient<MiniProgrammeCard> {
|
|
4
4
|
protected constructModel(data: Record<string, any>): MiniProgrammeCard;
|
|
5
5
|
protected getModelName(): string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const protobuf_1 = require("../../protobuf");
|
|
5
|
-
const protobuf_client_1 = require("./protobuf-client");
|
|
6
|
-
class PublicMiniProgrammeCardClient extends protobuf_client_1.ProtobufClient {
|
|
1
|
+
import { MiniProgrammeCard } from "../../protobuf/index.js";
|
|
2
|
+
import { ProtobufClient } from "./protobuf-client.js";
|
|
3
|
+
export class PublicMiniProgrammeCardClient extends ProtobufClient {
|
|
7
4
|
constructModel(data) {
|
|
8
|
-
return
|
|
5
|
+
return MiniProgrammeCard.fromJSON(data);
|
|
9
6
|
}
|
|
10
7
|
getModelName() {
|
|
11
8
|
return 'mini-programme-card';
|
|
@@ -17,4 +14,3 @@ class PublicMiniProgrammeCardClient extends protobuf_client_1.ProtobufClient {
|
|
|
17
14
|
return true;
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
|
-
exports.PublicMiniProgrammeCardClient = PublicMiniProgrammeCardClient;
|
package/src/domain-client.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const bad_request_exception_1 = require("./exceptions/bad-request-exception");
|
|
5
|
-
const internal_server_exception_1 = require("./exceptions/internal-server-exception");
|
|
6
|
-
const not_found_exception_1 = require("./exceptions/not-found-exception");
|
|
1
|
+
import { BadRequestException } from "./exceptions/bad-request-exception.js";
|
|
2
|
+
import { InternalServerException } from "./exceptions/internal-server-exception.js";
|
|
3
|
+
import { NotFoundException } from "./exceptions/not-found-exception.js";
|
|
7
4
|
const decoder = new TextDecoder();
|
|
8
|
-
class DomainClient {
|
|
5
|
+
export class DomainClient {
|
|
9
6
|
baseUrl;
|
|
10
7
|
apiKey;
|
|
11
8
|
model;
|
|
@@ -55,10 +52,10 @@ class DomainClient {
|
|
|
55
52
|
}
|
|
56
53
|
catch (error) {
|
|
57
54
|
console.error('Error fetching data from API:', error);
|
|
58
|
-
if (error instanceof
|
|
55
|
+
if (error instanceof InternalServerException || error instanceof BadRequestException || error instanceof NotFoundException) {
|
|
59
56
|
throw error;
|
|
60
57
|
}
|
|
61
|
-
throw new
|
|
58
|
+
throw new InternalServerException('Unable to fetch data from the API', error);
|
|
62
59
|
}
|
|
63
60
|
}
|
|
64
61
|
async decompressModelData(compressedData) {
|
|
@@ -71,13 +68,13 @@ class DomainClient {
|
|
|
71
68
|
}
|
|
72
69
|
handleErrors(response) {
|
|
73
70
|
if (!response.status) {
|
|
74
|
-
throw new
|
|
71
|
+
throw new InternalServerException(response.message);
|
|
75
72
|
}
|
|
76
73
|
if (response.status === 400) {
|
|
77
|
-
throw new
|
|
74
|
+
throw new BadRequestException(response.message);
|
|
78
75
|
}
|
|
79
76
|
if (response.status === 404) {
|
|
80
|
-
throw new
|
|
77
|
+
throw new NotFoundException(response.message);
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
80
|
buildUrl(ids) {
|
|
@@ -92,4 +89,3 @@ class DomainClient {
|
|
|
92
89
|
return this.isPublic && this.apiKey === undefined;
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
|
-
exports.DomainClient = DomainClient;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BadRequestException = void 0;
|
|
4
|
-
class BadRequestException extends Error {
|
|
1
|
+
export class BadRequestException extends Error {
|
|
5
2
|
}
|
|
6
|
-
exports.BadRequestException = BadRequestException;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalServerException = void 0;
|
|
4
|
-
class InternalServerException extends Error {
|
|
1
|
+
export class InternalServerException extends Error {
|
|
5
2
|
}
|
|
6
|
-
exports.InternalServerException = InternalServerException;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PropertyNotAvailableException = void 0;
|
|
4
|
-
class PropertyNotAvailableException extends Error {
|
|
1
|
+
export class PropertyNotAvailableException extends Error {
|
|
5
2
|
}
|
|
6
|
-
exports.PropertyNotAvailableException = PropertyNotAvailableException;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IClassFactory } from "../i-class-factory";
|
|
2
|
-
import { CallableReturnType, Model } from "../types";
|
|
1
|
+
import { IClassFactory } from "../i-class-factory.js";
|
|
2
|
+
import { CallableReturnType, Model } from "../types.js";
|
|
3
3
|
export declare class DateFactory implements IClassFactory {
|
|
4
4
|
create(data: Model, parameters: string[]): CallableReturnType;
|
|
5
5
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DateFactory = void 0;
|
|
4
|
-
class DateFactory {
|
|
1
|
+
export class DateFactory {
|
|
5
2
|
create(data, parameters) {
|
|
6
3
|
return new Date(parameters[0]);
|
|
7
4
|
}
|
|
8
5
|
}
|
|
9
|
-
exports.DateFactory = DateFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IClassFactory } from "../i-class-factory";
|
|
2
|
-
import { CallableReturnType, Model } from "../types";
|
|
3
|
-
import { PortalMap } from "../types/portal-map";
|
|
1
|
+
import { IClassFactory } from "../i-class-factory.js";
|
|
2
|
+
import { CallableReturnType, Model } from "../types.js";
|
|
3
|
+
import { PortalMap } from "../types/portal-map.js";
|
|
4
4
|
export declare class InternalLinkFactory implements IClassFactory {
|
|
5
5
|
private portalMap;
|
|
6
6
|
constructor(portalMap: PortalMap);
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalLinkFactory = void 0;
|
|
4
|
-
class InternalLinkFactory {
|
|
1
|
+
export class InternalLinkFactory {
|
|
5
2
|
portalMap;
|
|
6
3
|
constructor(portalMap) {
|
|
7
4
|
this.portalMap = portalMap;
|
|
@@ -23,4 +20,3 @@ class InternalLinkFactory {
|
|
|
23
20
|
return url || '';
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
exports.InternalLinkFactory = InternalLinkFactory;
|
package/src/i-api-response.d.ts
CHANGED
package/src/i-api-response.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/src/i-class-factory.d.ts
CHANGED
package/src/i-class-factory.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isModelDescription = isModelDescription;
|
|
4
1
|
// eslint-disable-next-line
|
|
5
|
-
function isModelDescription(arg) {
|
|
2
|
+
export function isModelDescription(arg) {
|
|
6
3
|
// eslint-disable-next-line
|
|
7
4
|
return arg && arg.class && (arg.func || arg.parameters);
|
|
8
5
|
}
|
package/src/model-client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IModelDescription } from "./i-model-description";
|
|
2
|
-
import { PortalMap } from "./types/portal-map";
|
|
1
|
+
import { IModelDescription } from "./i-model-description.js";
|
|
2
|
+
import { PortalMap } from "./types/portal-map.js";
|
|
3
3
|
export declare abstract class ModelClient<T> {
|
|
4
4
|
private readonly domainClient;
|
|
5
5
|
private readonly modelFactory;
|