@studyportals/domain-client 7.1.1-beta.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.js +34 -81
- package/package.json +1 -1
- package/protobuf/Area.js +1 -4
- 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.js +13 -16
- 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.js +8 -11
- package/protobuf/Logo.js +1 -4
- package/protobuf/MiniProgrammeCard.js +10 -13
- package/protobuf/OptionalLink.js +1 -4
- package/protobuf/Organisation.js +86 -89
- package/protobuf/OrganisationInformation.js +1 -4
- package/protobuf/OrganisationRanking.js +7 -10
- package/protobuf/Person.js +4 -7
- package/protobuf/ProgrammeCard.js +43 -46
- package/protobuf/ProgrammeGrid.js +9 -12
- package/protobuf/Ranking.js +6 -9
- package/protobuf/RankingInstitute.js +4 -7
- 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.js +4 -7
- package/protobuf/Timing.js +7 -10
- package/protobuf/Topic.js +1 -4
- package/protobuf/TrackedLink.js +4 -7
- package/protobuf/Tracking.js +4 -7
- package/protobuf/TuitionFee.js +1 -4
- package/protobuf/Unibuddy.js +1 -4
- package/protobuf/index.js +42 -58
- package/src/clients/article-detail-page-client.js +4 -8
- package/src/clients/index.js +4 -20
- package/src/clients/organisation-page-client.js +4 -8
- package/src/clients/protobuf-client.js +3 -7
- 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.js +1 -5
- package/src/factories/InternalLinkFactory.js +1 -5
- package/src/i-api-response.js +1 -2
- package/src/i-class-factory.js +1 -2
- package/src/i-model-description.js +1 -4
- package/src/model-client.js +8 -12
- package/src/model-factory.js +10 -14
- package/src/models/bestfit-programme/bestfit-programme-client.js +2 -6
- 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.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.js +2 -6
- 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.js +2 -6
- package/src/models/copilot-programme/i-copilot-programme.js +1 -2
- package/src/models/customerio-organisation/customerio-organisation-client.js +2 -6
- 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.js +2 -6
- 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.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.js +1 -2
- package/src/models/faq-static-content/public-faq-static-content-client.js +2 -6
- 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.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.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.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.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.js +1 -2
- package/src/models/programme-card/i-start-date.js +1 -2
- package/src/models/programme-card/i-timing.js +1 -2
- package/src/models/programme-card/i-tracked-link.js +1 -2
- 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.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.js +2 -6
- 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.js +2 -6
- package/src/models/search-discipline/i-search-discipline.js +1 -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.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.js +1 -2
- package/src/models/search-projection/i-tuition-values.js +1 -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.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.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.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.js +1 -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.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.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.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.js +2 -6
- package/src/types/portal-map.js +1 -2
- package/src/types/portal-type.js +2 -5
- package/src/types.js +1 -2
|
@@ -1,27 +1,24 @@
|
|
|
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: ProgrammeCard.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ProgrammeCard = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
import { Cover } from "./Cover.js";
|
|
8
|
+
import { Duration } from "./Duration.js";
|
|
9
|
+
import { EnglishRequirement } from "./EnglishRequirement.js";
|
|
10
|
+
import { GPARequirement } from "./GPARequirement.js";
|
|
11
|
+
import { InternalLink } from "./InternalLink.js";
|
|
12
|
+
import { Link } from "./Link.js";
|
|
13
|
+
import { LivingCost } from "./LivingCost.js";
|
|
14
|
+
import { Location } from "./Location.js";
|
|
15
|
+
import { Logo } from "./Logo.js";
|
|
16
|
+
import { Country } from "./Organisation.js";
|
|
17
|
+
import { Timing } from "./Timing.js";
|
|
18
|
+
import { TrackedLink } from "./TrackedLink.js";
|
|
19
|
+
import { Tracking } from "./Tracking.js";
|
|
20
|
+
import { TuitionFee } from "./TuitionFee.js";
|
|
21
|
+
export const ProgrammeCard = {
|
|
25
22
|
fromJSON(object) {
|
|
26
23
|
return {
|
|
27
24
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -37,24 +34,24 @@ exports.ProgrammeCard = {
|
|
|
37
34
|
isPartTime: isSet(object.isPartTime) ? globalThis.Boolean(object.isPartTime) : false,
|
|
38
35
|
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
|
39
36
|
degree: isSet(object.degree) ? globalThis.String(object.degree) : "",
|
|
40
|
-
programmeLink: isSet(object.programmeLink) ?
|
|
37
|
+
programmeLink: isSet(object.programmeLink) ? InternalLink.fromJSON(object.programmeLink) : undefined,
|
|
41
38
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
|
|
42
|
-
logo: isSet(object.logo) ?
|
|
43
|
-
cover: isSet(object.cover) ?
|
|
44
|
-
universityLink: isSet(object.universityLink) ?
|
|
39
|
+
logo: isSet(object.logo) ? Logo.fromJSON(object.logo) : undefined,
|
|
40
|
+
cover: isSet(object.cover) ? Cover.fromJSON(object.cover) : undefined,
|
|
41
|
+
universityLink: isSet(object.universityLink) ? Link.fromJSON(object.universityLink) : undefined,
|
|
45
42
|
universityId: isSet(object.universityId) ? globalThis.Number(object.universityId) : 0,
|
|
46
|
-
location: isSet(object.location) ?
|
|
43
|
+
location: isSet(object.location) ? Location.fromJSON(object.location) : undefined,
|
|
47
44
|
locationText: isSet(object.locationText) ? globalThis.String(object.locationText) : "",
|
|
48
|
-
tracking: isSet(object.tracking) ?
|
|
45
|
+
tracking: isSet(object.tracking) ? Tracking.fromJSON(object.tracking) : undefined,
|
|
49
46
|
tuitionFees: globalThis.Array.isArray(object?.tuitionFees)
|
|
50
|
-
? object.tuitionFees.map((e) =>
|
|
47
|
+
? object.tuitionFees.map((e) => TuitionFee.fromJSON(e))
|
|
51
48
|
: [],
|
|
52
|
-
duration: isSet(object.duration) ?
|
|
49
|
+
duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
|
|
53
50
|
timings: globalThis.Array.isArray(object?.timings)
|
|
54
|
-
? object.timings.map((e) =>
|
|
51
|
+
? object.timings.map((e) => Timing.fromJSON(e))
|
|
55
52
|
: [],
|
|
56
|
-
referralLink: isSet(object.referralLink) ?
|
|
57
|
-
country: isSet(object.country) ?
|
|
53
|
+
referralLink: isSet(object.referralLink) ? TrackedLink.fromJSON(object.referralLink) : undefined,
|
|
54
|
+
country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
|
|
58
55
|
topLevelOrganisation: globalThis.Array.isArray(object?.topLevelOrganisation)
|
|
59
56
|
? object.topLevelOrganisation.map((e) => globalThis.String(e))
|
|
60
57
|
: [],
|
|
@@ -63,11 +60,11 @@ exports.ProgrammeCard = {
|
|
|
63
60
|
? object.disciplineIds.map((e) => globalThis.Number(e))
|
|
64
61
|
: [],
|
|
65
62
|
englishRequirements: isSet(object.englishRequirements)
|
|
66
|
-
?
|
|
63
|
+
? EnglishRequirement.fromJSON(object.englishRequirements)
|
|
67
64
|
: undefined,
|
|
68
65
|
workExperienceYears: isSet(object.workExperienceYears) ? globalThis.Number(object.workExperienceYears) : 0,
|
|
69
|
-
gpa: isSet(object.gpa) ?
|
|
70
|
-
livingCost: isSet(object.livingCost) ?
|
|
66
|
+
gpa: isSet(object.gpa) ? GPARequirement.fromJSON(object.gpa) : undefined,
|
|
67
|
+
livingCost: isSet(object.livingCost) ? LivingCost.fromJSON(object.livingCost) : undefined,
|
|
71
68
|
ects: isSet(object.ects) ? globalThis.String(object.ects) : "",
|
|
72
69
|
campaignType: isSet(object.campaignType) ? globalThis.Number(object.campaignType) : 0,
|
|
73
70
|
lastUpdated: isSet(object.lastUpdated) ? globalThis.String(object.lastUpdated) : "",
|
|
@@ -118,46 +115,46 @@ exports.ProgrammeCard = {
|
|
|
118
115
|
obj.degree = message.degree;
|
|
119
116
|
}
|
|
120
117
|
if (message.programmeLink !== undefined) {
|
|
121
|
-
obj.programmeLink =
|
|
118
|
+
obj.programmeLink = InternalLink.toJSON(message.programmeLink);
|
|
122
119
|
}
|
|
123
120
|
if (message.summary !== "") {
|
|
124
121
|
obj.summary = message.summary;
|
|
125
122
|
}
|
|
126
123
|
if (message.logo !== undefined) {
|
|
127
|
-
obj.logo =
|
|
124
|
+
obj.logo = Logo.toJSON(message.logo);
|
|
128
125
|
}
|
|
129
126
|
if (message.cover !== undefined) {
|
|
130
|
-
obj.cover =
|
|
127
|
+
obj.cover = Cover.toJSON(message.cover);
|
|
131
128
|
}
|
|
132
129
|
if (message.universityLink !== undefined) {
|
|
133
|
-
obj.universityLink =
|
|
130
|
+
obj.universityLink = Link.toJSON(message.universityLink);
|
|
134
131
|
}
|
|
135
132
|
if (message.universityId !== 0) {
|
|
136
133
|
obj.universityId = Math.round(message.universityId);
|
|
137
134
|
}
|
|
138
135
|
if (message.location !== undefined) {
|
|
139
|
-
obj.location =
|
|
136
|
+
obj.location = Location.toJSON(message.location);
|
|
140
137
|
}
|
|
141
138
|
if (message.locationText !== "") {
|
|
142
139
|
obj.locationText = message.locationText;
|
|
143
140
|
}
|
|
144
141
|
if (message.tracking !== undefined) {
|
|
145
|
-
obj.tracking =
|
|
142
|
+
obj.tracking = Tracking.toJSON(message.tracking);
|
|
146
143
|
}
|
|
147
144
|
if (message.tuitionFees?.length) {
|
|
148
|
-
obj.tuitionFees = message.tuitionFees.map((e) =>
|
|
145
|
+
obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee.toJSON(e));
|
|
149
146
|
}
|
|
150
147
|
if (message.duration !== undefined) {
|
|
151
|
-
obj.duration =
|
|
148
|
+
obj.duration = Duration.toJSON(message.duration);
|
|
152
149
|
}
|
|
153
150
|
if (message.timings?.length) {
|
|
154
|
-
obj.timings = message.timings.map((e) =>
|
|
151
|
+
obj.timings = message.timings.map((e) => Timing.toJSON(e));
|
|
155
152
|
}
|
|
156
153
|
if (message.referralLink !== undefined) {
|
|
157
|
-
obj.referralLink =
|
|
154
|
+
obj.referralLink = TrackedLink.toJSON(message.referralLink);
|
|
158
155
|
}
|
|
159
156
|
if (message.country !== undefined) {
|
|
160
|
-
obj.country =
|
|
157
|
+
obj.country = Country.toJSON(message.country);
|
|
161
158
|
}
|
|
162
159
|
if (message.topLevelOrganisation?.length) {
|
|
163
160
|
obj.topLevelOrganisation = message.topLevelOrganisation;
|
|
@@ -169,16 +166,16 @@ exports.ProgrammeCard = {
|
|
|
169
166
|
obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
|
|
170
167
|
}
|
|
171
168
|
if (message.englishRequirements !== undefined) {
|
|
172
|
-
obj.englishRequirements =
|
|
169
|
+
obj.englishRequirements = EnglishRequirement.toJSON(message.englishRequirements);
|
|
173
170
|
}
|
|
174
171
|
if (message.workExperienceYears !== 0) {
|
|
175
172
|
obj.workExperienceYears = Math.round(message.workExperienceYears);
|
|
176
173
|
}
|
|
177
174
|
if (message.gpa !== undefined) {
|
|
178
|
-
obj.gpa =
|
|
175
|
+
obj.gpa = GPARequirement.toJSON(message.gpa);
|
|
179
176
|
}
|
|
180
177
|
if (message.livingCost !== undefined) {
|
|
181
|
-
obj.livingCost =
|
|
178
|
+
obj.livingCost = LivingCost.toJSON(message.livingCost);
|
|
182
179
|
}
|
|
183
180
|
if (message.ects !== "") {
|
|
184
181
|
obj.ects = message.ects;
|
|
@@ -1,21 +1,18 @@
|
|
|
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: ProgrammeGrid.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ProgrammeGrid = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { Link } from "./Link.js";
|
|
8
|
+
import { ProgrammeCard } from "./ProgrammeCard.js";
|
|
9
|
+
export const ProgrammeGrid = {
|
|
13
10
|
fromJSON(object) {
|
|
14
11
|
return {
|
|
15
12
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
16
|
-
searchLink: isSet(object.searchLink) ?
|
|
17
|
-
cards: globalThis.Array.isArray(object?.cards) ? object.cards.map((e) =>
|
|
18
|
-
sblpLink: isSet(object.sblpLink) ?
|
|
13
|
+
searchLink: isSet(object.searchLink) ? Link.fromJSON(object.searchLink) : undefined,
|
|
14
|
+
cards: globalThis.Array.isArray(object?.cards) ? object.cards.map((e) => ProgrammeCard.fromJSON(e)) : [],
|
|
15
|
+
sblpLink: isSet(object.sblpLink) ? Link.fromJSON(object.sblpLink) : undefined,
|
|
19
16
|
};
|
|
20
17
|
},
|
|
21
18
|
toJSON(message) {
|
|
@@ -24,13 +21,13 @@ exports.ProgrammeGrid = {
|
|
|
24
21
|
obj.title = message.title;
|
|
25
22
|
}
|
|
26
23
|
if (message.searchLink !== undefined) {
|
|
27
|
-
obj.searchLink =
|
|
24
|
+
obj.searchLink = Link.toJSON(message.searchLink);
|
|
28
25
|
}
|
|
29
26
|
if (message.cards?.length) {
|
|
30
|
-
obj.cards = message.cards.map((e) =>
|
|
27
|
+
obj.cards = message.cards.map((e) => ProgrammeCard.toJSON(e));
|
|
31
28
|
}
|
|
32
29
|
if (message.sblpLink !== undefined) {
|
|
33
|
-
obj.sblpLink =
|
|
30
|
+
obj.sblpLink = Link.toJSON(message.sblpLink);
|
|
34
31
|
}
|
|
35
32
|
return obj;
|
|
36
33
|
},
|
package/protobuf/Ranking.js
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
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: Ranking.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Ranking = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { RankingInstitute } from "./RankingInstitute.js";
|
|
8
|
+
export const Ranking = {
|
|
12
9
|
fromJSON(object) {
|
|
13
10
|
return {
|
|
14
11
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
15
12
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
16
13
|
acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : undefined,
|
|
17
14
|
allRankingInstitutes: globalThis.Array.isArray(object?.allRankingInstitutes)
|
|
18
|
-
? object.allRankingInstitutes.map((e) =>
|
|
15
|
+
? object.allRankingInstitutes.map((e) => RankingInstitute.fromJSON(e))
|
|
19
16
|
: [],
|
|
20
17
|
mostRecentRankedYears: globalThis.Array.isArray(object?.mostRecentRankedYears)
|
|
21
18
|
? object.mostRecentRankedYears.map((e) => globalThis.String(e))
|
|
22
19
|
: [],
|
|
23
|
-
rankingInstitute: isSet(object.rankingInstitute) ?
|
|
20
|
+
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
24
21
|
rankingYear: isSet(object.rankingYear) ? globalThis.String(object.rankingYear) : "",
|
|
25
22
|
year: isSet(object.year) ? globalThis.Number(object.year) : 0,
|
|
26
23
|
rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
|
|
@@ -42,13 +39,13 @@ exports.Ranking = {
|
|
|
42
39
|
obj.acronym = message.acronym;
|
|
43
40
|
}
|
|
44
41
|
if (message.allRankingInstitutes?.length) {
|
|
45
|
-
obj.allRankingInstitutes = message.allRankingInstitutes.map((e) =>
|
|
42
|
+
obj.allRankingInstitutes = message.allRankingInstitutes.map((e) => RankingInstitute.toJSON(e));
|
|
46
43
|
}
|
|
47
44
|
if (message.mostRecentRankedYears?.length) {
|
|
48
45
|
obj.mostRecentRankedYears = message.mostRecentRankedYears;
|
|
49
46
|
}
|
|
50
47
|
if (message.rankingInstitute !== undefined) {
|
|
51
|
-
obj.rankingInstitute =
|
|
48
|
+
obj.rankingInstitute = RankingInstitute.toJSON(message.rankingInstitute);
|
|
52
49
|
}
|
|
53
50
|
if (message.rankingYear !== "") {
|
|
54
51
|
obj.rankingYear = message.rankingYear;
|
|
@@ -1,14 +1,11 @@
|
|
|
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: RankingInstitute.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.RankingInstitute = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { Body } from "./Body.js";
|
|
8
|
+
export const RankingInstitute = {
|
|
12
9
|
fromJSON(object) {
|
|
13
10
|
return {
|
|
14
11
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -16,7 +13,7 @@ exports.RankingInstitute = {
|
|
|
16
13
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
17
14
|
linkHomePageUrl: isSet(object.linkHomePageUrl) ? globalThis.String(object.linkHomePageUrl) : "",
|
|
18
15
|
acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : "",
|
|
19
|
-
body: isSet(object.body) ?
|
|
16
|
+
body: isSet(object.body) ? Body.fromJSON(object.body) : undefined,
|
|
20
17
|
};
|
|
21
18
|
},
|
|
22
19
|
toJSON(message) {
|
|
@@ -37,7 +34,7 @@ exports.RankingInstitute = {
|
|
|
37
34
|
obj.acronym = message.acronym;
|
|
38
35
|
}
|
|
39
36
|
if (message.body !== undefined) {
|
|
40
|
-
obj.body =
|
|
37
|
+
obj.body = Body.toJSON(message.body);
|
|
41
38
|
}
|
|
42
39
|
return obj;
|
|
43
40
|
},
|
package/protobuf/Review.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
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: Review.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Review = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { Person } from "./Person.js";
|
|
8
|
+
export const Review = {
|
|
12
9
|
fromJSON(object) {
|
|
13
10
|
return {
|
|
14
11
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -16,7 +13,7 @@ exports.Review = {
|
|
|
16
13
|
review: isSet(object.review) ? globalThis.String(object.review) : undefined,
|
|
17
14
|
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
18
15
|
hasTitle: isSet(object.hasTitle) ? globalThis.Boolean(object.hasTitle) : false,
|
|
19
|
-
author: isSet(object.author) ?
|
|
16
|
+
author: isSet(object.author) ? Person.fromJSON(object.author) : undefined,
|
|
20
17
|
startDate: isSet(object.startDate) ? globalThis.String(object.startDate) : "",
|
|
21
18
|
endDate: isSet(object.endDate) ? globalThis.String(object.endDate) : "",
|
|
22
19
|
};
|
|
@@ -39,7 +36,7 @@ exports.Review = {
|
|
|
39
36
|
obj.hasTitle = message.hasTitle;
|
|
40
37
|
}
|
|
41
38
|
if (message.author !== undefined) {
|
|
42
|
-
obj.author =
|
|
39
|
+
obj.author = Person.toJSON(message.author);
|
|
43
40
|
}
|
|
44
41
|
if (message.startDate !== "") {
|
|
45
42
|
obj.startDate = message.startDate;
|
package/protobuf/ReviewRating.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: ReviewRating.proto
|
|
7
|
-
|
|
8
|
-
exports.ReviewRating = void 0;
|
|
9
|
-
exports.ReviewRating = {
|
|
6
|
+
export const ReviewRating = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
average: isSet(object.average) ? globalThis.Number(object.average) : 0,
|
package/protobuf/RichText.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: RichText.proto
|
|
7
|
-
|
|
8
|
-
exports.RichText = void 0;
|
|
9
|
-
exports.RichText = {
|
|
6
|
+
export const RichText = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
contents: isSet(object.contents) ? globalThis.String(object.contents) : "",
|
package/protobuf/SocialLink.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: SocialLink.proto
|
|
7
|
-
|
|
8
|
-
exports.SocialLink = void 0;
|
|
9
|
-
exports.SocialLink = {
|
|
6
|
+
export const SocialLink = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/StartDate.js
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
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: StartDate.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.StartDate = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { Deadline } from "./Deadline.js";
|
|
8
|
+
export const StartDate = {
|
|
12
9
|
fromJSON(object) {
|
|
13
10
|
return {
|
|
14
11
|
isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
|
|
15
12
|
date: isSet(object.date) ? globalThis.String(object.date) : "",
|
|
16
13
|
isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
|
|
17
14
|
deadlines: globalThis.Array.isArray(object?.deadlines)
|
|
18
|
-
? object.deadlines.map((e) =>
|
|
15
|
+
? object.deadlines.map((e) => Deadline.fromJSON(e))
|
|
19
16
|
: [],
|
|
20
17
|
};
|
|
21
18
|
},
|
|
@@ -31,7 +28,7 @@ exports.StartDate = {
|
|
|
31
28
|
obj.isApplyingAnytime = message.isApplyingAnytime;
|
|
32
29
|
}
|
|
33
30
|
if (message.deadlines?.length) {
|
|
34
|
-
obj.deadlines = message.deadlines.map((e) =>
|
|
31
|
+
obj.deadlines = message.deadlines.map((e) => Deadline.toJSON(e));
|
|
35
32
|
}
|
|
36
33
|
return obj;
|
|
37
34
|
},
|
package/protobuf/Timing.js
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
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: Timing.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Timing = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { Deadline } from "./Deadline.js";
|
|
8
|
+
import { StartDate } from "./StartDate.js";
|
|
9
|
+
export const Timing = {
|
|
13
10
|
fromJSON(object) {
|
|
14
11
|
return {
|
|
15
12
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
16
13
|
isStartingAnytime: isSet(object.isStartingAnytime) ? globalThis.Boolean(object.isStartingAnytime) : false,
|
|
17
|
-
startDate: isSet(object.startDate) ?
|
|
14
|
+
startDate: isSet(object.startDate) ? StartDate.fromJSON(object.startDate) : undefined,
|
|
18
15
|
canShowStartDate: isSet(object.canShowStartDate) ? globalThis.Boolean(object.canShowStartDate) : false,
|
|
19
16
|
isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
|
|
20
|
-
deadline: isSet(object.deadline) ?
|
|
17
|
+
deadline: isSet(object.deadline) ? Deadline.fromJSON(object.deadline) : undefined,
|
|
21
18
|
canShowDeadline: isSet(object.canShowDeadline) ? globalThis.Boolean(object.canShowDeadline) : false,
|
|
22
19
|
};
|
|
23
20
|
},
|
|
@@ -30,7 +27,7 @@ exports.Timing = {
|
|
|
30
27
|
obj.isStartingAnytime = message.isStartingAnytime;
|
|
31
28
|
}
|
|
32
29
|
if (message.startDate !== undefined) {
|
|
33
|
-
obj.startDate =
|
|
30
|
+
obj.startDate = StartDate.toJSON(message.startDate);
|
|
34
31
|
}
|
|
35
32
|
if (message.canShowStartDate !== false) {
|
|
36
33
|
obj.canShowStartDate = message.canShowStartDate;
|
|
@@ -39,7 +36,7 @@ exports.Timing = {
|
|
|
39
36
|
obj.isApplyingAnytime = message.isApplyingAnytime;
|
|
40
37
|
}
|
|
41
38
|
if (message.deadline !== undefined) {
|
|
42
|
-
obj.deadline =
|
|
39
|
+
obj.deadline = Deadline.toJSON(message.deadline);
|
|
43
40
|
}
|
|
44
41
|
if (message.canShowDeadline !== false) {
|
|
45
42
|
obj.canShowDeadline = message.canShowDeadline;
|
package/protobuf/Topic.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: Topic.proto
|
|
7
|
-
|
|
8
|
-
exports.Topic = void 0;
|
|
9
|
-
exports.Topic = {
|
|
6
|
+
export const Topic = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/TrackedLink.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
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: TrackedLink.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TrackedLink = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { Tracking } from "./Tracking.js";
|
|
8
|
+
export const TrackedLink = {
|
|
12
9
|
fromJSON(object) {
|
|
13
10
|
return {
|
|
14
11
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
15
12
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
16
13
|
canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
|
|
17
|
-
tracking: isSet(object.tracking) ?
|
|
14
|
+
tracking: isSet(object.tracking) ? Tracking.fromJSON(object.tracking) : undefined,
|
|
18
15
|
};
|
|
19
16
|
},
|
|
20
17
|
toJSON(message) {
|
|
@@ -29,7 +26,7 @@ exports.TrackedLink = {
|
|
|
29
26
|
obj.canShowDescription = message.canShowDescription;
|
|
30
27
|
}
|
|
31
28
|
if (message.tracking !== undefined) {
|
|
32
|
-
obj.tracking =
|
|
29
|
+
obj.tracking = Tracking.toJSON(message.tracking);
|
|
33
30
|
}
|
|
34
31
|
return obj;
|
|
35
32
|
},
|
package/protobuf/Tracking.js
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
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: Tracking.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Tracking = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { ClickTracking } from "./ClickTracking.js";
|
|
8
|
+
export const Tracking = {
|
|
12
9
|
fromJSON(object) {
|
|
13
10
|
return {
|
|
14
11
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
15
|
-
clickTracking: isSet(object.clickTracking) ?
|
|
12
|
+
clickTracking: isSet(object.clickTracking) ? ClickTracking.fromJSON(object.clickTracking) : undefined,
|
|
16
13
|
canShowClickTracking: isSet(object.canShowClickTracking)
|
|
17
14
|
? globalThis.Boolean(object.canShowClickTracking)
|
|
18
15
|
: false,
|
|
@@ -30,7 +27,7 @@ exports.Tracking = {
|
|
|
30
27
|
obj.id = Math.round(message.id);
|
|
31
28
|
}
|
|
32
29
|
if (message.clickTracking !== undefined) {
|
|
33
|
-
obj.clickTracking =
|
|
30
|
+
obj.clickTracking = ClickTracking.toJSON(message.clickTracking);
|
|
34
31
|
}
|
|
35
32
|
if (message.canShowClickTracking !== false) {
|
|
36
33
|
obj.canShowClickTracking = message.canShowClickTracking;
|
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) : "",
|