@studyportals/domain-client 7.0.0 → 7.0.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 +81 -34
- package/package.json +18 -2
- package/protobuf/Area.js +4 -1
- package/protobuf/Article.js +33 -30
- package/protobuf/Body.js +4 -1
- package/protobuf/CampaignInformation.js +4 -1
- package/protobuf/ClickTracking.js +4 -1
- package/protobuf/CommercialEntity.js +4 -1
- package/protobuf/Cover.js +4 -1
- package/protobuf/Deadline.js +4 -1
- package/protobuf/Degree.js +4 -1
- package/protobuf/Description.js +16 -13
- package/protobuf/Discipline.js +13 -10
- package/protobuf/Duration.js +4 -1
- package/protobuf/EnglishRequirement.js +4 -1
- package/protobuf/EssentialInformation.js +4 -1
- package/protobuf/File.js +6 -3
- package/protobuf/GPARequirement.js +4 -1
- package/protobuf/InternalLink.js +6 -3
- package/protobuf/Link.js +4 -1
- package/protobuf/LivingCost.js +4 -1
- package/protobuf/Location.js +11 -8
- package/protobuf/Logo.js +4 -1
- package/protobuf/MiniProgrammeCard.js +13 -10
- package/protobuf/OptionalLink.js +4 -1
- package/protobuf/Organisation.js +89 -86
- package/protobuf/OrganisationInformation.js +4 -1
- package/protobuf/OrganisationRanking.js +10 -7
- package/protobuf/Person.js +7 -4
- package/protobuf/ProgrammeCard.js +46 -43
- package/protobuf/ProgrammeGrid.js +12 -9
- package/protobuf/Ranking.js +9 -6
- package/protobuf/RankingInstitute.js +7 -4
- package/protobuf/Review.js +7 -4
- package/protobuf/ReviewRating.js +4 -1
- package/protobuf/RichText.js +4 -1
- package/protobuf/SocialLink.js +4 -1
- package/protobuf/StartDate.js +7 -4
- package/protobuf/Timing.js +10 -7
- package/protobuf/Topic.js +4 -1
- package/protobuf/TrackedLink.js +7 -4
- package/protobuf/Tracking.js +7 -4
- package/protobuf/TuitionFee.js +4 -1
- package/protobuf/Unibuddy.js +4 -1
- package/protobuf/index.js +58 -42
- package/src/clients/article-detail-page-client.js +8 -4
- package/src/clients/index.js +20 -4
- package/src/clients/organisation-page-client.js +8 -4
- package/src/clients/protobuf-client.js +7 -3
- package/src/clients/public-mini-programme-card-client.js +8 -4
- package/src/domain-client.js +13 -9
- package/src/exceptions/bad-request-exception.js +5 -1
- package/src/exceptions/client-exception.js +5 -1
- package/src/exceptions/internal-server-exception.js +5 -1
- package/src/exceptions/not-found-exception.js +5 -1
- package/src/exceptions/property-not-available-exception.js +5 -1
- package/src/factories/DateFactory.js +5 -1
- package/src/factories/InternalLinkFactory.js +5 -1
- package/src/i-api-response.js +2 -1
- package/src/i-class-factory.js +2 -1
- package/src/i-model-description.js +4 -1
- package/src/model-client.js +12 -8
- package/src/model-factory.js +14 -10
- package/src/models/bestfit-programme/bestfit-programme-client.js +6 -2
- package/src/models/bestfit-programme/i-best-fit-programme.js +2 -1
- package/src/models/bestfit-programme/i-city.js +2 -1
- package/src/models/bestfit-programme/i-living-cost.js +2 -1
- package/src/models/city-search-document/city-search-document-client.js +6 -2
- package/src/models/city-search-document/i-city-search-document.js +2 -1
- package/src/models/common/i-city.js +2 -1
- package/src/models/common/i-country.js +2 -1
- package/src/models/common/i-english-requirements.js +2 -1
- package/src/models/common/i-g-p-a-requirement.js +2 -1
- package/src/models/common/i-internal-link.js +2 -1
- package/src/models/common/i-logo.js +2 -1
- package/src/models/common/i-review-rating.js +2 -1
- package/src/models/common/i-tuition-fee.js +2 -1
- package/src/models/copilot-country/copilot-country-client.js +6 -2
- package/src/models/copilot-country/i-copilot-country.js +2 -1
- package/src/models/copilot-country/i-copilot-ranking-card.js +2 -1
- package/src/models/copilot-programme/copilot-programme-client.js +6 -2
- package/src/models/copilot-programme/i-copilot-programme.js +2 -1
- package/src/models/customerio-organisation/customerio-organisation-client.js +6 -2
- package/src/models/customerio-organisation/i-customer-io-organisation.js +2 -1
- package/src/models/customerio-organisation/i-review.js +2 -1
- package/src/models/customerio-programme/customerio-programme-client.js +6 -2
- package/src/models/customerio-programme/i-customer-io-programme.js +2 -1
- package/src/models/customerio-programme/i-internal-link.js +2 -1
- package/src/models/faq-static-content/i-faq-static-content.js +2 -1
- package/src/models/faq-static-content/i-faq.js +2 -1
- package/src/models/faq-static-content/i-static-content-url.js +2 -1
- package/src/models/faq-static-content/i-static-content.js +2 -1
- package/src/models/faq-static-content/public-faq-static-content-client.js +6 -2
- package/src/models/organisation-card/i-organisation-card.js +2 -1
- package/src/models/organisation-card/i-ranking-discipline.js +2 -1
- package/src/models/organisation-card/organisation-card-client.js +6 -2
- package/src/models/organisation-for-search/i-organisation-for-search.js +2 -1
- package/src/models/organisation-for-search/public-organisation-for-search-client.js +6 -2
- package/src/models/organisation-search-document/i-organisation-search-document.js +2 -1
- package/src/models/organisation-search-document/organisation-search-document-client.js +6 -2
- package/src/models/programme-card/i-click-tracking-data.js +2 -1
- package/src/models/programme-card/i-cover.js +2 -1
- package/src/models/programme-card/i-deadline.js +2 -1
- package/src/models/programme-card/i-duration.js +2 -1
- package/src/models/programme-card/i-internal-link.js +2 -1
- package/src/models/programme-card/i-link.js +2 -1
- package/src/models/programme-card/i-location.js +2 -1
- package/src/models/programme-card/i-logo.js +2 -1
- package/src/models/programme-card/i-optional-link.js +2 -1
- package/src/models/programme-card/i-programme-card.js +2 -1
- package/src/models/programme-card/i-start-date.js +2 -1
- package/src/models/programme-card/i-timing.js +2 -1
- package/src/models/programme-card/i-tracked-link.js +2 -1
- package/src/models/programme-card/i-tracking.js +2 -1
- package/src/models/programme-card/i-tuition-fee.js +2 -1
- package/src/models/programme-card/programme-card-client.js +6 -2
- package/src/models/ranking-cards/i-ranking.js +2 -1
- package/src/models/scholarship-card/i-scholarship-card-v2.js +2 -1
- package/src/models/scholarship-card/i-scholarship-card.js +2 -1
- package/src/models/scholarship-card/public-scholarship-card-client.js +6 -2
- package/src/models/scholarship-card/scholarship-card-v2-client.js +6 -2
- package/src/models/scholarship-search-document/i-scholarship-search-document.js +2 -1
- package/src/models/scholarship-search-document/scholarship-search-document-client.js +6 -2
- package/src/models/search-discipline/i-search-discipline.js +2 -1
- package/src/models/search-discipline/public-search-discipline-client.js +6 -2
- package/src/models/search-projection/i-geo-targeting-configuration.js +2 -1
- package/src/models/search-projection/i-geo-targeting-values.js +2 -1
- package/src/models/search-projection/i-organisation-values.js +2 -1
- package/src/models/search-projection/i-premium-values.js +2 -1
- package/src/models/search-projection/i-search-projection.js +2 -1
- package/src/models/search-projection/i-tuition-values.js +2 -1
- package/src/models/search-projection/search-projection-client.js +6 -2
- package/src/models/sitemap-articles-info/i-sitemap-article-info.js +2 -1
- package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +6 -2
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js +2 -1
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +6 -2
- package/src/models/sitemap-countries-info/i-sitemap-country-info.js +2 -1
- package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +6 -2
- package/src/models/sitemap-country-degree-info/i-degree-info.js +2 -1
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +2 -1
- package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +6 -2
- package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +2 -1
- package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +6 -2
- package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +2 -1
- package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +6 -2
- package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +2 -1
- package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +6 -2
- package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +2 -1
- package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +6 -2
- package/src/types/portal-map.js +2 -1
- package/src/types/portal-type.js +5 -2
- package/src/types.js +2 -1
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: ProgrammeCard.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProgrammeCard = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
const Cover_1 = require("./Cover");
|
|
11
|
+
const Duration_1 = require("./Duration");
|
|
12
|
+
const EnglishRequirement_1 = require("./EnglishRequirement");
|
|
13
|
+
const GPARequirement_1 = require("./GPARequirement");
|
|
14
|
+
const InternalLink_1 = require("./InternalLink");
|
|
15
|
+
const Link_1 = require("./Link");
|
|
16
|
+
const LivingCost_1 = require("./LivingCost");
|
|
17
|
+
const Location_1 = require("./Location");
|
|
18
|
+
const Logo_1 = require("./Logo");
|
|
19
|
+
const Organisation_1 = require("./Organisation");
|
|
20
|
+
const Timing_1 = require("./Timing");
|
|
21
|
+
const TrackedLink_1 = require("./TrackedLink");
|
|
22
|
+
const Tracking_1 = require("./Tracking");
|
|
23
|
+
const TuitionFee_1 = require("./TuitionFee");
|
|
24
|
+
exports.ProgrammeCard = {
|
|
22
25
|
fromJSON(object) {
|
|
23
26
|
return {
|
|
24
27
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -34,24 +37,24 @@ export const ProgrammeCard = {
|
|
|
34
37
|
isPartTime: isSet(object.isPartTime) ? globalThis.Boolean(object.isPartTime) : false,
|
|
35
38
|
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
|
36
39
|
degree: isSet(object.degree) ? globalThis.String(object.degree) : "",
|
|
37
|
-
programmeLink: isSet(object.programmeLink) ? InternalLink.fromJSON(object.programmeLink) : undefined,
|
|
40
|
+
programmeLink: isSet(object.programmeLink) ? InternalLink_1.InternalLink.fromJSON(object.programmeLink) : undefined,
|
|
38
41
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
|
|
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,
|
|
42
|
+
logo: isSet(object.logo) ? Logo_1.Logo.fromJSON(object.logo) : undefined,
|
|
43
|
+
cover: isSet(object.cover) ? Cover_1.Cover.fromJSON(object.cover) : undefined,
|
|
44
|
+
universityLink: isSet(object.universityLink) ? Link_1.Link.fromJSON(object.universityLink) : undefined,
|
|
42
45
|
universityId: isSet(object.universityId) ? globalThis.Number(object.universityId) : 0,
|
|
43
|
-
location: isSet(object.location) ? Location.fromJSON(object.location) : undefined,
|
|
46
|
+
location: isSet(object.location) ? Location_1.Location.fromJSON(object.location) : undefined,
|
|
44
47
|
locationText: isSet(object.locationText) ? globalThis.String(object.locationText) : "",
|
|
45
|
-
tracking: isSet(object.tracking) ? Tracking.fromJSON(object.tracking) : undefined,
|
|
48
|
+
tracking: isSet(object.tracking) ? Tracking_1.Tracking.fromJSON(object.tracking) : undefined,
|
|
46
49
|
tuitionFees: globalThis.Array.isArray(object?.tuitionFees)
|
|
47
|
-
? object.tuitionFees.map((e) => TuitionFee.fromJSON(e))
|
|
50
|
+
? object.tuitionFees.map((e) => TuitionFee_1.TuitionFee.fromJSON(e))
|
|
48
51
|
: [],
|
|
49
|
-
duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
|
|
52
|
+
duration: isSet(object.duration) ? Duration_1.Duration.fromJSON(object.duration) : undefined,
|
|
50
53
|
timings: globalThis.Array.isArray(object?.timings)
|
|
51
|
-
? object.timings.map((e) => Timing.fromJSON(e))
|
|
54
|
+
? object.timings.map((e) => Timing_1.Timing.fromJSON(e))
|
|
52
55
|
: [],
|
|
53
|
-
referralLink: isSet(object.referralLink) ? TrackedLink.fromJSON(object.referralLink) : undefined,
|
|
54
|
-
country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
|
|
56
|
+
referralLink: isSet(object.referralLink) ? TrackedLink_1.TrackedLink.fromJSON(object.referralLink) : undefined,
|
|
57
|
+
country: isSet(object.country) ? Organisation_1.Country.fromJSON(object.country) : undefined,
|
|
55
58
|
topLevelOrganisation: globalThis.Array.isArray(object?.topLevelOrganisation)
|
|
56
59
|
? object.topLevelOrganisation.map((e) => globalThis.String(e))
|
|
57
60
|
: [],
|
|
@@ -60,11 +63,11 @@ export const ProgrammeCard = {
|
|
|
60
63
|
? object.disciplineIds.map((e) => globalThis.Number(e))
|
|
61
64
|
: [],
|
|
62
65
|
englishRequirements: isSet(object.englishRequirements)
|
|
63
|
-
? EnglishRequirement.fromJSON(object.englishRequirements)
|
|
66
|
+
? EnglishRequirement_1.EnglishRequirement.fromJSON(object.englishRequirements)
|
|
64
67
|
: undefined,
|
|
65
68
|
workExperienceYears: isSet(object.workExperienceYears) ? globalThis.Number(object.workExperienceYears) : 0,
|
|
66
|
-
gpa: isSet(object.gpa) ? GPARequirement.fromJSON(object.gpa) : undefined,
|
|
67
|
-
livingCost: isSet(object.livingCost) ? LivingCost.fromJSON(object.livingCost) : undefined,
|
|
69
|
+
gpa: isSet(object.gpa) ? GPARequirement_1.GPARequirement.fromJSON(object.gpa) : undefined,
|
|
70
|
+
livingCost: isSet(object.livingCost) ? LivingCost_1.LivingCost.fromJSON(object.livingCost) : undefined,
|
|
68
71
|
ects: isSet(object.ects) ? globalThis.String(object.ects) : "",
|
|
69
72
|
campaignType: isSet(object.campaignType) ? globalThis.Number(object.campaignType) : 0,
|
|
70
73
|
lastUpdated: isSet(object.lastUpdated) ? globalThis.String(object.lastUpdated) : "",
|
|
@@ -115,46 +118,46 @@ export const ProgrammeCard = {
|
|
|
115
118
|
obj.degree = message.degree;
|
|
116
119
|
}
|
|
117
120
|
if (message.programmeLink !== undefined) {
|
|
118
|
-
obj.programmeLink = InternalLink.toJSON(message.programmeLink);
|
|
121
|
+
obj.programmeLink = InternalLink_1.InternalLink.toJSON(message.programmeLink);
|
|
119
122
|
}
|
|
120
123
|
if (message.summary !== "") {
|
|
121
124
|
obj.summary = message.summary;
|
|
122
125
|
}
|
|
123
126
|
if (message.logo !== undefined) {
|
|
124
|
-
obj.logo = Logo.toJSON(message.logo);
|
|
127
|
+
obj.logo = Logo_1.Logo.toJSON(message.logo);
|
|
125
128
|
}
|
|
126
129
|
if (message.cover !== undefined) {
|
|
127
|
-
obj.cover = Cover.toJSON(message.cover);
|
|
130
|
+
obj.cover = Cover_1.Cover.toJSON(message.cover);
|
|
128
131
|
}
|
|
129
132
|
if (message.universityLink !== undefined) {
|
|
130
|
-
obj.universityLink = Link.toJSON(message.universityLink);
|
|
133
|
+
obj.universityLink = Link_1.Link.toJSON(message.universityLink);
|
|
131
134
|
}
|
|
132
135
|
if (message.universityId !== 0) {
|
|
133
136
|
obj.universityId = Math.round(message.universityId);
|
|
134
137
|
}
|
|
135
138
|
if (message.location !== undefined) {
|
|
136
|
-
obj.location = Location.toJSON(message.location);
|
|
139
|
+
obj.location = Location_1.Location.toJSON(message.location);
|
|
137
140
|
}
|
|
138
141
|
if (message.locationText !== "") {
|
|
139
142
|
obj.locationText = message.locationText;
|
|
140
143
|
}
|
|
141
144
|
if (message.tracking !== undefined) {
|
|
142
|
-
obj.tracking = Tracking.toJSON(message.tracking);
|
|
145
|
+
obj.tracking = Tracking_1.Tracking.toJSON(message.tracking);
|
|
143
146
|
}
|
|
144
147
|
if (message.tuitionFees?.length) {
|
|
145
|
-
obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee.toJSON(e));
|
|
148
|
+
obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee_1.TuitionFee.toJSON(e));
|
|
146
149
|
}
|
|
147
150
|
if (message.duration !== undefined) {
|
|
148
|
-
obj.duration = Duration.toJSON(message.duration);
|
|
151
|
+
obj.duration = Duration_1.Duration.toJSON(message.duration);
|
|
149
152
|
}
|
|
150
153
|
if (message.timings?.length) {
|
|
151
|
-
obj.timings = message.timings.map((e) => Timing.toJSON(e));
|
|
154
|
+
obj.timings = message.timings.map((e) => Timing_1.Timing.toJSON(e));
|
|
152
155
|
}
|
|
153
156
|
if (message.referralLink !== undefined) {
|
|
154
|
-
obj.referralLink = TrackedLink.toJSON(message.referralLink);
|
|
157
|
+
obj.referralLink = TrackedLink_1.TrackedLink.toJSON(message.referralLink);
|
|
155
158
|
}
|
|
156
159
|
if (message.country !== undefined) {
|
|
157
|
-
obj.country = Country.toJSON(message.country);
|
|
160
|
+
obj.country = Organisation_1.Country.toJSON(message.country);
|
|
158
161
|
}
|
|
159
162
|
if (message.topLevelOrganisation?.length) {
|
|
160
163
|
obj.topLevelOrganisation = message.topLevelOrganisation;
|
|
@@ -166,16 +169,16 @@ export const ProgrammeCard = {
|
|
|
166
169
|
obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
|
|
167
170
|
}
|
|
168
171
|
if (message.englishRequirements !== undefined) {
|
|
169
|
-
obj.englishRequirements = EnglishRequirement.toJSON(message.englishRequirements);
|
|
172
|
+
obj.englishRequirements = EnglishRequirement_1.EnglishRequirement.toJSON(message.englishRequirements);
|
|
170
173
|
}
|
|
171
174
|
if (message.workExperienceYears !== 0) {
|
|
172
175
|
obj.workExperienceYears = Math.round(message.workExperienceYears);
|
|
173
176
|
}
|
|
174
177
|
if (message.gpa !== undefined) {
|
|
175
|
-
obj.gpa = GPARequirement.toJSON(message.gpa);
|
|
178
|
+
obj.gpa = GPARequirement_1.GPARequirement.toJSON(message.gpa);
|
|
176
179
|
}
|
|
177
180
|
if (message.livingCost !== undefined) {
|
|
178
|
-
obj.livingCost = LivingCost.toJSON(message.livingCost);
|
|
181
|
+
obj.livingCost = LivingCost_1.LivingCost.toJSON(message.livingCost);
|
|
179
182
|
}
|
|
180
183
|
if (message.ects !== "") {
|
|
181
184
|
obj.ects = message.ects;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: ProgrammeGrid.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProgrammeGrid = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
const Link_1 = require("./Link");
|
|
11
|
+
const ProgrammeCard_1 = require("./ProgrammeCard");
|
|
12
|
+
exports.ProgrammeGrid = {
|
|
10
13
|
fromJSON(object) {
|
|
11
14
|
return {
|
|
12
15
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
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,
|
|
16
|
+
searchLink: isSet(object.searchLink) ? Link_1.Link.fromJSON(object.searchLink) : undefined,
|
|
17
|
+
cards: globalThis.Array.isArray(object?.cards) ? object.cards.map((e) => ProgrammeCard_1.ProgrammeCard.fromJSON(e)) : [],
|
|
18
|
+
sblpLink: isSet(object.sblpLink) ? Link_1.Link.fromJSON(object.sblpLink) : undefined,
|
|
16
19
|
};
|
|
17
20
|
},
|
|
18
21
|
toJSON(message) {
|
|
@@ -21,13 +24,13 @@ export const ProgrammeGrid = {
|
|
|
21
24
|
obj.title = message.title;
|
|
22
25
|
}
|
|
23
26
|
if (message.searchLink !== undefined) {
|
|
24
|
-
obj.searchLink = Link.toJSON(message.searchLink);
|
|
27
|
+
obj.searchLink = Link_1.Link.toJSON(message.searchLink);
|
|
25
28
|
}
|
|
26
29
|
if (message.cards?.length) {
|
|
27
|
-
obj.cards = message.cards.map((e) => ProgrammeCard.toJSON(e));
|
|
30
|
+
obj.cards = message.cards.map((e) => ProgrammeCard_1.ProgrammeCard.toJSON(e));
|
|
28
31
|
}
|
|
29
32
|
if (message.sblpLink !== undefined) {
|
|
30
|
-
obj.sblpLink = Link.toJSON(message.sblpLink);
|
|
33
|
+
obj.sblpLink = Link_1.Link.toJSON(message.sblpLink);
|
|
31
34
|
}
|
|
32
35
|
return obj;
|
|
33
36
|
},
|
package/protobuf/Ranking.js
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: Ranking.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Ranking = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const RankingInstitute_1 = require("./RankingInstitute");
|
|
11
|
+
exports.Ranking = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
12
15
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
13
16
|
acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : undefined,
|
|
14
17
|
allRankingInstitutes: globalThis.Array.isArray(object?.allRankingInstitutes)
|
|
15
|
-
? object.allRankingInstitutes.map((e) => RankingInstitute.fromJSON(e))
|
|
18
|
+
? object.allRankingInstitutes.map((e) => RankingInstitute_1.RankingInstitute.fromJSON(e))
|
|
16
19
|
: [],
|
|
17
20
|
mostRecentRankedYears: globalThis.Array.isArray(object?.mostRecentRankedYears)
|
|
18
21
|
? object.mostRecentRankedYears.map((e) => globalThis.String(e))
|
|
19
22
|
: [],
|
|
20
|
-
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
23
|
+
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute_1.RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
21
24
|
rankingYear: isSet(object.rankingYear) ? globalThis.String(object.rankingYear) : "",
|
|
22
25
|
year: isSet(object.year) ? globalThis.Number(object.year) : 0,
|
|
23
26
|
rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
|
|
@@ -39,13 +42,13 @@ export const Ranking = {
|
|
|
39
42
|
obj.acronym = message.acronym;
|
|
40
43
|
}
|
|
41
44
|
if (message.allRankingInstitutes?.length) {
|
|
42
|
-
obj.allRankingInstitutes = message.allRankingInstitutes.map((e) => RankingInstitute.toJSON(e));
|
|
45
|
+
obj.allRankingInstitutes = message.allRankingInstitutes.map((e) => RankingInstitute_1.RankingInstitute.toJSON(e));
|
|
43
46
|
}
|
|
44
47
|
if (message.mostRecentRankedYears?.length) {
|
|
45
48
|
obj.mostRecentRankedYears = message.mostRecentRankedYears;
|
|
46
49
|
}
|
|
47
50
|
if (message.rankingInstitute !== undefined) {
|
|
48
|
-
obj.rankingInstitute = RankingInstitute.toJSON(message.rankingInstitute);
|
|
51
|
+
obj.rankingInstitute = RankingInstitute_1.RankingInstitute.toJSON(message.rankingInstitute);
|
|
49
52
|
}
|
|
50
53
|
if (message.rankingYear !== "") {
|
|
51
54
|
obj.rankingYear = message.rankingYear;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: RankingInstitute.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RankingInstitute = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const Body_1 = require("./Body");
|
|
11
|
+
exports.RankingInstitute = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -13,7 +16,7 @@ export const RankingInstitute = {
|
|
|
13
16
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
14
17
|
linkHomePageUrl: isSet(object.linkHomePageUrl) ? globalThis.String(object.linkHomePageUrl) : "",
|
|
15
18
|
acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : "",
|
|
16
|
-
body: isSet(object.body) ? Body.fromJSON(object.body) : undefined,
|
|
19
|
+
body: isSet(object.body) ? Body_1.Body.fromJSON(object.body) : undefined,
|
|
17
20
|
};
|
|
18
21
|
},
|
|
19
22
|
toJSON(message) {
|
|
@@ -34,7 +37,7 @@ export const RankingInstitute = {
|
|
|
34
37
|
obj.acronym = message.acronym;
|
|
35
38
|
}
|
|
36
39
|
if (message.body !== undefined) {
|
|
37
|
-
obj.body = Body.toJSON(message.body);
|
|
40
|
+
obj.body = Body_1.Body.toJSON(message.body);
|
|
38
41
|
}
|
|
39
42
|
return obj;
|
|
40
43
|
},
|
package/protobuf/Review.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: Review.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Review = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const Person_1 = require("./Person");
|
|
11
|
+
exports.Review = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -13,7 +16,7 @@ export const Review = {
|
|
|
13
16
|
review: isSet(object.review) ? globalThis.String(object.review) : undefined,
|
|
14
17
|
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
15
18
|
hasTitle: isSet(object.hasTitle) ? globalThis.Boolean(object.hasTitle) : false,
|
|
16
|
-
author: isSet(object.author) ? Person.fromJSON(object.author) : undefined,
|
|
19
|
+
author: isSet(object.author) ? Person_1.Person.fromJSON(object.author) : undefined,
|
|
17
20
|
startDate: isSet(object.startDate) ? globalThis.String(object.startDate) : "",
|
|
18
21
|
endDate: isSet(object.endDate) ? globalThis.String(object.endDate) : "",
|
|
19
22
|
};
|
|
@@ -36,7 +39,7 @@ export const Review = {
|
|
|
36
39
|
obj.hasTitle = message.hasTitle;
|
|
37
40
|
}
|
|
38
41
|
if (message.author !== undefined) {
|
|
39
|
-
obj.author = Person.toJSON(message.author);
|
|
42
|
+
obj.author = Person_1.Person.toJSON(message.author);
|
|
40
43
|
}
|
|
41
44
|
if (message.startDate !== "") {
|
|
42
45
|
obj.startDate = message.startDate;
|
package/protobuf/ReviewRating.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: ReviewRating.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ReviewRating = void 0;
|
|
9
|
+
exports.ReviewRating = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return {
|
|
9
12
|
average: isSet(object.average) ? globalThis.Number(object.average) : 0,
|
package/protobuf/RichText.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: RichText.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RichText = void 0;
|
|
9
|
+
exports.RichText = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return {
|
|
9
12
|
contents: isSet(object.contents) ? globalThis.String(object.contents) : "",
|
package/protobuf/SocialLink.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: SocialLink.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SocialLink = void 0;
|
|
9
|
+
exports.SocialLink = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return {
|
|
9
12
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/StartDate.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: StartDate.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.StartDate = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const Deadline_1 = require("./Deadline");
|
|
11
|
+
exports.StartDate = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
|
|
12
15
|
date: isSet(object.date) ? globalThis.String(object.date) : "",
|
|
13
16
|
isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
|
|
14
17
|
deadlines: globalThis.Array.isArray(object?.deadlines)
|
|
15
|
-
? object.deadlines.map((e) => Deadline.fromJSON(e))
|
|
18
|
+
? object.deadlines.map((e) => Deadline_1.Deadline.fromJSON(e))
|
|
16
19
|
: [],
|
|
17
20
|
};
|
|
18
21
|
},
|
|
@@ -28,7 +31,7 @@ export const StartDate = {
|
|
|
28
31
|
obj.isApplyingAnytime = message.isApplyingAnytime;
|
|
29
32
|
}
|
|
30
33
|
if (message.deadlines?.length) {
|
|
31
|
-
obj.deadlines = message.deadlines.map((e) => Deadline.toJSON(e));
|
|
34
|
+
obj.deadlines = message.deadlines.map((e) => Deadline_1.Deadline.toJSON(e));
|
|
32
35
|
}
|
|
33
36
|
return obj;
|
|
34
37
|
},
|
package/protobuf/Timing.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: Timing.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Timing = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
const Deadline_1 = require("./Deadline");
|
|
11
|
+
const StartDate_1 = require("./StartDate");
|
|
12
|
+
exports.Timing = {
|
|
10
13
|
fromJSON(object) {
|
|
11
14
|
return {
|
|
12
15
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
13
16
|
isStartingAnytime: isSet(object.isStartingAnytime) ? globalThis.Boolean(object.isStartingAnytime) : false,
|
|
14
|
-
startDate: isSet(object.startDate) ? StartDate.fromJSON(object.startDate) : undefined,
|
|
17
|
+
startDate: isSet(object.startDate) ? StartDate_1.StartDate.fromJSON(object.startDate) : undefined,
|
|
15
18
|
canShowStartDate: isSet(object.canShowStartDate) ? globalThis.Boolean(object.canShowStartDate) : false,
|
|
16
19
|
isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
|
|
17
|
-
deadline: isSet(object.deadline) ? Deadline.fromJSON(object.deadline) : undefined,
|
|
20
|
+
deadline: isSet(object.deadline) ? Deadline_1.Deadline.fromJSON(object.deadline) : undefined,
|
|
18
21
|
canShowDeadline: isSet(object.canShowDeadline) ? globalThis.Boolean(object.canShowDeadline) : false,
|
|
19
22
|
};
|
|
20
23
|
},
|
|
@@ -27,7 +30,7 @@ export const Timing = {
|
|
|
27
30
|
obj.isStartingAnytime = message.isStartingAnytime;
|
|
28
31
|
}
|
|
29
32
|
if (message.startDate !== undefined) {
|
|
30
|
-
obj.startDate = StartDate.toJSON(message.startDate);
|
|
33
|
+
obj.startDate = StartDate_1.StartDate.toJSON(message.startDate);
|
|
31
34
|
}
|
|
32
35
|
if (message.canShowStartDate !== false) {
|
|
33
36
|
obj.canShowStartDate = message.canShowStartDate;
|
|
@@ -36,7 +39,7 @@ export const Timing = {
|
|
|
36
39
|
obj.isApplyingAnytime = message.isApplyingAnytime;
|
|
37
40
|
}
|
|
38
41
|
if (message.deadline !== undefined) {
|
|
39
|
-
obj.deadline = Deadline.toJSON(message.deadline);
|
|
42
|
+
obj.deadline = Deadline_1.Deadline.toJSON(message.deadline);
|
|
40
43
|
}
|
|
41
44
|
if (message.canShowDeadline !== false) {
|
|
42
45
|
obj.canShowDeadline = message.canShowDeadline;
|
package/protobuf/Topic.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: Topic.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Topic = void 0;
|
|
9
|
+
exports.Topic = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return {
|
|
9
12
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/TrackedLink.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: TrackedLink.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.TrackedLink = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const Tracking_1 = require("./Tracking");
|
|
11
|
+
exports.TrackedLink = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
12
15
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
13
16
|
canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
|
|
14
|
-
tracking: isSet(object.tracking) ? Tracking.fromJSON(object.tracking) : undefined,
|
|
17
|
+
tracking: isSet(object.tracking) ? Tracking_1.Tracking.fromJSON(object.tracking) : undefined,
|
|
15
18
|
};
|
|
16
19
|
},
|
|
17
20
|
toJSON(message) {
|
|
@@ -26,7 +29,7 @@ export const TrackedLink = {
|
|
|
26
29
|
obj.canShowDescription = message.canShowDescription;
|
|
27
30
|
}
|
|
28
31
|
if (message.tracking !== undefined) {
|
|
29
|
-
obj.tracking = Tracking.toJSON(message.tracking);
|
|
32
|
+
obj.tracking = Tracking_1.Tracking.toJSON(message.tracking);
|
|
30
33
|
}
|
|
31
34
|
return obj;
|
|
32
35
|
},
|
package/protobuf/Tracking.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: Tracking.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Tracking = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const ClickTracking_1 = require("./ClickTracking");
|
|
11
|
+
exports.Tracking = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
12
|
-
clickTracking: isSet(object.clickTracking) ? ClickTracking.fromJSON(object.clickTracking) : undefined,
|
|
15
|
+
clickTracking: isSet(object.clickTracking) ? ClickTracking_1.ClickTracking.fromJSON(object.clickTracking) : undefined,
|
|
13
16
|
canShowClickTracking: isSet(object.canShowClickTracking)
|
|
14
17
|
? globalThis.Boolean(object.canShowClickTracking)
|
|
15
18
|
: false,
|
|
@@ -27,7 +30,7 @@ export const Tracking = {
|
|
|
27
30
|
obj.id = Math.round(message.id);
|
|
28
31
|
}
|
|
29
32
|
if (message.clickTracking !== undefined) {
|
|
30
|
-
obj.clickTracking = ClickTracking.toJSON(message.clickTracking);
|
|
33
|
+
obj.clickTracking = ClickTracking_1.ClickTracking.toJSON(message.clickTracking);
|
|
31
34
|
}
|
|
32
35
|
if (message.canShowClickTracking !== false) {
|
|
33
36
|
obj.canShowClickTracking = message.canShowClickTracking;
|
package/protobuf/TuitionFee.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: TuitionFee.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.TuitionFee = void 0;
|
|
9
|
+
exports.TuitionFee = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return {
|
|
9
12
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
package/protobuf/Unibuddy.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.7.5
|
|
4
5
|
// protoc v3.12.4
|
|
5
6
|
// source: Unibuddy.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Unibuddy = void 0;
|
|
9
|
+
exports.Unibuddy = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return {
|
|
9
12
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|