@studyportals/domain-client 6.3.1-beta.1 → 6.3.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 +33 -33
- package/package.json +2 -2
- package/protobuf/Article.d.ts +5 -5
- package/protobuf/Article.js +5 -5
- package/protobuf/Description.d.ts +2 -2
- package/protobuf/Description.js +2 -2
- package/protobuf/Discipline.d.ts +3 -3
- package/protobuf/Discipline.js +3 -3
- package/protobuf/InternalLink.js +1 -1
- package/protobuf/Location.d.ts +1 -1
- package/protobuf/Location.js +1 -1
- package/protobuf/MiniProgrammeCard.d.ts +3 -3
- package/protobuf/MiniProgrammeCard.js +3 -3
- package/protobuf/Organisation.d.ts +12 -12
- package/protobuf/Organisation.js +12 -12
- package/protobuf/OrganisationRanking.d.ts +2 -2
- package/protobuf/OrganisationRanking.js +2 -2
- package/protobuf/Person.d.ts +1 -1
- package/protobuf/Person.js +1 -1
- package/protobuf/ProgrammeCard.d.ts +14 -14
- package/protobuf/ProgrammeCard.js +14 -14
- package/protobuf/ProgrammeGrid.d.ts +2 -2
- package/protobuf/ProgrammeGrid.js +2 -2
- package/protobuf/Ranking.d.ts +1 -1
- package/protobuf/Ranking.js +1 -1
- package/protobuf/RankingInstitute.d.ts +1 -1
- package/protobuf/RankingInstitute.js +1 -1
- package/protobuf/Review.d.ts +1 -1
- package/protobuf/Review.js +1 -1
- package/protobuf/StartDate.d.ts +1 -1
- package/protobuf/StartDate.js +1 -1
- package/protobuf/Timing.d.ts +2 -2
- package/protobuf/Timing.js +2 -2
- package/protobuf/TrackedLink.d.ts +1 -1
- package/protobuf/TrackedLink.js +1 -1
- package/protobuf/Tracking.d.ts +1 -1
- package/protobuf/Tracking.js +1 -1
- package/protobuf/index.d.ts +42 -42
- package/protobuf/index.js +42 -42
- package/src/clients/article-detail-page-client.d.ts +2 -2
- package/src/clients/article-detail-page-client.js +2 -2
- package/src/clients/index.d.ts +4 -4
- package/src/clients/index.js +4 -4
- package/src/clients/organisation-page-client.d.ts +2 -2
- package/src/clients/organisation-page-client.js +2 -2
- package/src/clients/protobuf-client.d.ts +2 -2
- package/src/clients/protobuf-client.js +1 -1
- package/src/clients/public-mini-programme-card-client.d.ts +2 -2
- package/src/clients/public-mini-programme-card-client.js +2 -2
- package/src/domain-client.js +3 -3
- package/src/factories/DateFactory.d.ts +2 -2
- package/src/factories/InternalLinkFactory.d.ts +3 -3
- package/src/i-api-response.d.ts +1 -1
- package/src/i-class-factory.d.ts +1 -1
- package/src/i-model-description.d.ts +1 -1
- package/src/model-client.d.ts +2 -2
- package/src/model-client.js +3 -3
- package/src/model-factory.d.ts +2 -2
- package/src/model-factory.js +4 -4
- package/src/models/bestfit-programme/bestfit-programme-client.d.ts +2 -2
- package/src/models/bestfit-programme/bestfit-programme-client.js +1 -1
- package/src/models/bestfit-programme/i-best-fit-programme.d.ts +1 -1
- 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 +1 -1
- package/src/models/copilot-country/copilot-country-client.d.ts +2 -2
- package/src/models/copilot-country/copilot-country-client.js +1 -1
- package/src/models/copilot-country/i-copilot-country.d.ts +1 -1
- package/src/models/copilot-programme/copilot-programme-client.d.ts +2 -2
- package/src/models/copilot-programme/copilot-programme-client.js +1 -1
- package/src/models/copilot-programme/i-copilot-programme.d.ts +1 -1
- package/src/models/customerio-organisation/customerio-organisation-client.d.ts +2 -2
- package/src/models/customerio-organisation/customerio-organisation-client.js +1 -1
- package/src/models/customerio-organisation/i-customer-io-organisation.d.ts +1 -1
- package/src/models/customerio-programme/customerio-programme-client.d.ts +2 -2
- package/src/models/customerio-programme/customerio-programme-client.js +1 -1
- package/src/models/customerio-programme/i-customer-io-programme.d.ts +1 -1
- package/src/models/faq-static-content/i-faq-static-content.d.ts +2 -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 +1 -1
- package/src/models/organisation-card/i-organisation-card.d.ts +2 -2
- package/src/models/organisation-card/organisation-card-client.d.ts +2 -2
- package/src/models/organisation-card/organisation-card-client.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/models/programme-card/i-location.d.ts +1 -1
- package/src/models/programme-card/i-programme-card.d.ts +2 -2
- package/src/models/programme-card/i-start-date.d.ts +1 -1
- package/src/models/programme-card/i-timing.d.ts +1 -1
- package/src/models/programme-card/i-tracked-link.d.ts +1 -1
- package/src/models/programme-card/i-tracking.d.ts +1 -1
- package/src/models/programme-card/programme-card-client.d.ts +2 -2
- package/src/models/programme-card/programme-card-client.js +1 -1
- package/src/models/scholarship-card/public-scholarship-card-client.d.ts +2 -2
- package/src/models/scholarship-card/public-scholarship-card-client.js +1 -1
- package/src/models/scholarship-card/scholarship-card-v2-client.d.ts +2 -2
- package/src/models/scholarship-card/scholarship-card-v2-client.js +1 -1
- 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 +1 -1
- package/src/models/search-discipline/public-search-discipline-client.d.ts +2 -2
- package/src/models/search-discipline/public-search-discipline-client.js +1 -1
- package/src/models/search-projection/i-geo-targeting-values.d.ts +1 -1
- package/src/models/search-projection/i-search-projection.d.ts +1 -1
- package/src/models/search-projection/search-projection-client.d.ts +2 -2
- package/src/models/search-projection/search-projection-client.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/types/portal-map.d.ts +1 -1
package/protobuf/Ranking.d.ts
CHANGED
package/protobuf/Ranking.js
CHANGED
package/protobuf/Review.d.ts
CHANGED
package/protobuf/Review.js
CHANGED
package/protobuf/StartDate.d.ts
CHANGED
package/protobuf/StartDate.js
CHANGED
package/protobuf/Timing.d.ts
CHANGED
package/protobuf/Timing.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// protoc v3.12.4
|
|
5
5
|
// source: Timing.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
|
-
import { Deadline } from "./Deadline";
|
|
8
|
-
import { StartDate } from "./StartDate";
|
|
7
|
+
import { Deadline } from "./Deadline.js";
|
|
8
|
+
import { StartDate } from "./StartDate.js";
|
|
9
9
|
export const Timing = {
|
|
10
10
|
fromJSON(object) {
|
|
11
11
|
return {
|
package/protobuf/TrackedLink.js
CHANGED
package/protobuf/Tracking.d.ts
CHANGED
package/protobuf/Tracking.js
CHANGED
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,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";
|
|
@@ -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,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 class ArticleDetailPageClient extends ProtobufClient {
|
|
4
4
|
constructModel(data) {
|
|
5
5
|
return Article.fromJSON(data);
|
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,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";
|
|
@@ -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,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 class OrganisationPageClient extends ProtobufClient {
|
|
4
4
|
constructModel(data) {
|
|
5
5
|
return Organisation.fromJSON(data);
|
|
@@ -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,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,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 class PublicMiniProgrammeCardClient extends ProtobufClient {
|
|
4
4
|
constructModel(data) {
|
|
5
5
|
return MiniProgrammeCard.fromJSON(data);
|
package/src/domain-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BadRequestException } from "./exceptions/bad-request-exception";
|
|
2
|
-
import { InternalServerException } from "./exceptions/internal-server-exception";
|
|
3
|
-
import { NotFoundException } from "./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";
|
|
4
4
|
const decoder = new TextDecoder();
|
|
5
5
|
export class DomainClient {
|
|
6
6
|
baseUrl;
|
|
@@ -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,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);
|
package/src/i-api-response.d.ts
CHANGED
package/src/i-class-factory.d.ts
CHANGED
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;
|
package/src/model-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DomainClient } from "./domain-client";
|
|
2
|
-
import { ClientException } from "./exceptions/client-exception";
|
|
3
|
-
import { ModelFactory } from "./model-factory";
|
|
1
|
+
import { DomainClient } from "./domain-client.js";
|
|
2
|
+
import { ClientException } from "./exceptions/client-exception.js";
|
|
3
|
+
import { ModelFactory } from "./model-factory.js";
|
|
4
4
|
export class ModelClient {
|
|
5
5
|
domainClient;
|
|
6
6
|
modelFactory;
|
package/src/model-factory.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 class ModelFactory<T> {
|
|
4
4
|
private customClassFactories;
|
|
5
5
|
constructor(portalMap?: PortalMap);
|
package/src/model-factory.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InternalLinkFactory } from "./factories/InternalLinkFactory";
|
|
2
|
-
import { DateFactory } from "./factories/DateFactory";
|
|
3
|
-
import { isModelDescription } from "./i-model-description";
|
|
4
|
-
import { PropertyNotAvailableException } from "./exceptions/property-not-available-exception";
|
|
1
|
+
import { InternalLinkFactory } from "./factories/InternalLinkFactory.js";
|
|
2
|
+
import { DateFactory } from "./factories/DateFactory.js";
|
|
3
|
+
import { isModelDescription } from "./i-model-description.js";
|
|
4
|
+
import { PropertyNotAvailableException } from "./exceptions/property-not-available-exception.js";
|
|
5
5
|
export class ModelFactory {
|
|
6
6
|
customClassFactories;
|
|
7
7
|
constructor(portalMap = new Map()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBestFitProgramme } from "
|
|
2
|
-
import { ModelClient } from "../../model-client";
|
|
1
|
+
import { IBestFitProgramme } from "../../../index.js";
|
|
2
|
+
import { ModelClient } from "../../model-client.js";
|
|
3
3
|
export declare class BestfitProgrammeClient extends ModelClient<IBestFitProgramme> {
|
|
4
4
|
protected getModelName(): string;
|
|
5
5
|
protected getVersion(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICity, IEnglishRequirements, IGPARequirement, ILivingCost, ITuitionFee } from "
|
|
1
|
+
import { ICity, IEnglishRequirements, IGPARequirement, ILivingCost, ITuitionFee } from "../../../index.js";
|
|
2
2
|
export interface IBestFitProgramme {
|
|
3
3
|
/**
|
|
4
4
|
* Average university ranking across multiple ranking institutes.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelClient } from "../../model-client";
|
|
2
|
-
import { ICitySearchDocument } from "
|
|
1
|
+
import { ModelClient } from "../../model-client.js";
|
|
2
|
+
import { ICitySearchDocument } from "../../../index.js";
|
|
3
3
|
export declare class CitySearchDocumentClient extends ModelClient<ICitySearchDocument> {
|
|
4
4
|
protected getModelName(): string;
|
|
5
5
|
protected getVersion(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICopilotCountry } from "
|
|
2
|
-
import { ModelClient } from "../../model-client";
|
|
1
|
+
import { ICopilotCountry } from "../../../index.js";
|
|
2
|
+
import { ModelClient } from "../../model-client.js";
|
|
3
3
|
export declare class CopilotCountryClient extends ModelClient<ICopilotCountry> {
|
|
4
4
|
protected getModelName(): string;
|
|
5
5
|
protected getVersion(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICopilotProgramme } from "
|
|
2
|
-
import { ModelClient } from "../../model-client";
|
|
1
|
+
import { ICopilotProgramme } from "../../../index.js";
|
|
2
|
+
import { ModelClient } from "../../model-client.js";
|
|
3
3
|
export declare class CopilotProgrammeClient extends ModelClient<ICopilotProgramme> {
|
|
4
4
|
protected getModelName(): string;
|
|
5
5
|
protected getVersion(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEnglishRequirements, IGPARequirement, IGeoTargetingValues, IInternalLink, ILink, ILivingCost, ITiming, ITuitionValues } from "
|
|
1
|
+
import { IEnglishRequirements, IGPARequirement, IGeoTargetingValues, IInternalLink, ILink, ILivingCost, ITiming, ITuitionValues } from "../../../index.js";
|
|
2
2
|
export interface ICopilotProgramme {
|
|
3
3
|
/**
|
|
4
4
|
* Get country the programme is taught in
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICustomerIOOrganisation } from "
|
|
2
|
-
import { ModelClient } from "../../model-client";
|
|
1
|
+
import { ICustomerIOOrganisation } from "../../../index.js";
|
|
2
|
+
import { ModelClient } from "../../model-client.js";
|
|
3
3
|
export declare class CustomerIOOrganisationClient extends ModelClient<ICustomerIOOrganisation> {
|
|
4
4
|
protected getModelName(): string;
|
|
5
5
|
protected getVersion(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICustomerIOProgramme } from "
|
|
2
|
-
import { ModelClient } from "../../model-client";
|
|
1
|
+
import { ICustomerIOProgramme } from "../../../index.js";
|
|
2
|
+
import { ModelClient } from "../../model-client.js";
|
|
3
3
|
export declare class CustomerIOProgrammeClient extends ModelClient<ICustomerIOProgramme> {
|
|
4
4
|
protected getModelName(): string;
|
|
5
5
|
protected getVersion(): string;
|