@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
package/protobuf/Organisation.js
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
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: Organisation.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Country = exports.City = exports.Venue = exports.StudyCountPerPortal = exports.Organisation_RankingsEntry = exports.Organisation = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const Area_1 = require("./Area");
|
|
11
|
+
const CommercialEntity_1 = require("./CommercialEntity");
|
|
12
|
+
const Degree_1 = require("./Degree");
|
|
13
|
+
const Discipline_1 = require("./Discipline");
|
|
14
|
+
const File_1 = require("./File");
|
|
15
|
+
const Link_1 = require("./Link");
|
|
16
|
+
const OrganisationRanking_1 = require("./OrganisationRanking");
|
|
17
|
+
const Ranking_1 = require("./Ranking");
|
|
18
|
+
const Review_1 = require("./Review");
|
|
19
|
+
const ReviewRating_1 = require("./ReviewRating");
|
|
20
|
+
const SocialLink_1 = require("./SocialLink");
|
|
21
|
+
const Unibuddy_1 = require("./Unibuddy");
|
|
22
|
+
exports.Organisation = {
|
|
20
23
|
fromJSON(object) {
|
|
21
24
|
return {
|
|
22
25
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
23
26
|
topOrganisationId: isSet(object.topOrganisationId) ? globalThis.Number(object.topOrganisationId) : 0,
|
|
24
27
|
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
25
28
|
amountOfProgrammes: isSet(object.amountOfProgrammes) ? globalThis.Number(object.amountOfProgrammes) : 0,
|
|
26
|
-
logo: isSet(object.logo) ? File.fromJSON(object.logo) : undefined,
|
|
29
|
+
logo: isSet(object.logo) ? File_1.File.fromJSON(object.logo) : undefined,
|
|
27
30
|
hasLogo: isSet(object.hasLogo) ? globalThis.Boolean(object.hasLogo) : false,
|
|
28
|
-
squareLogo: isSet(object.squareLogo) ? File.fromJSON(object.squareLogo) : undefined,
|
|
31
|
+
squareLogo: isSet(object.squareLogo) ? File_1.File.fromJSON(object.squareLogo) : undefined,
|
|
29
32
|
hasSquareLogo: isSet(object.hasSquareLogo) ? globalThis.Boolean(object.hasSquareLogo) : false,
|
|
30
|
-
organisationLink: isSet(object.organisationLink) ? Link.fromJSON(object.organisationLink) : undefined,
|
|
33
|
+
organisationLink: isSet(object.organisationLink) ? Link_1.Link.fromJSON(object.organisationLink) : undefined,
|
|
31
34
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
32
35
|
isPublished: isSet(object.isPublished) ? globalThis.Boolean(object.isPublished) : false,
|
|
33
36
|
longDescription: isSet(object.longDescription) ? globalThis.String(object.longDescription) : undefined,
|
|
@@ -37,7 +40,7 @@ export const Organisation = {
|
|
|
37
40
|
? globalThis.String(object.trafficSourceForwardingMethod)
|
|
38
41
|
: undefined,
|
|
39
42
|
links: globalThis.Array.isArray(object?.links)
|
|
40
|
-
? object.links.map((e) => SocialLink.fromJSON(e))
|
|
43
|
+
? object.links.map((e) => SocialLink_1.SocialLink.fromJSON(e))
|
|
41
44
|
: [],
|
|
42
45
|
promo: isSet(object.promo) ? globalThis.String(object.promo) : undefined,
|
|
43
46
|
canonical: isSet(object.canonical) ? globalThis.String(object.canonical) : undefined,
|
|
@@ -50,13 +53,13 @@ export const Organisation = {
|
|
|
50
53
|
servicesICT: isSet(object.servicesICT) ? globalThis.String(object.servicesICT) : undefined,
|
|
51
54
|
servicesMedical: isSet(object.servicesMedical) ? globalThis.String(object.servicesMedical) : undefined,
|
|
52
55
|
studentLifeCampus: isSet(object.studentLifeCampus) ? globalThis.String(object.studentLifeCampus) : undefined,
|
|
53
|
-
cover: isSet(object.cover) ? File.fromJSON(object.cover) : undefined,
|
|
56
|
+
cover: isSet(object.cover) ? File_1.File.fromJSON(object.cover) : undefined,
|
|
54
57
|
longitude: isSet(object.longitude) ? globalThis.String(object.longitude) : undefined,
|
|
55
58
|
latitude: isSet(object.latitude) ? globalThis.String(object.latitude) : undefined,
|
|
56
59
|
reasons: globalThis.Array.isArray(object?.reasons) ? object.reasons.map((e) => globalThis.String(e)) : [],
|
|
57
|
-
city: isSet(object.city) ? City.fromJSON(object.city) : undefined,
|
|
60
|
+
city: isSet(object.city) ? exports.City.fromJSON(object.city) : undefined,
|
|
58
61
|
mediaFiles: globalThis.Array.isArray(object?.mediaFiles)
|
|
59
|
-
? object.mediaFiles.map((e) => File.fromJSON(e))
|
|
62
|
+
? object.mediaFiles.map((e) => File_1.File.fromJSON(e))
|
|
60
63
|
: [],
|
|
61
64
|
students: isSet(object.students) ? globalThis.Number(object.students) : undefined,
|
|
62
65
|
studentsInternational: isSet(object.studentsInternational)
|
|
@@ -72,45 +75,45 @@ export const Organisation = {
|
|
|
72
75
|
: undefined,
|
|
73
76
|
hasFiles: isSet(object.hasFiles) ? globalThis.Boolean(object.hasFiles) : false,
|
|
74
77
|
studyCountPerPortal: globalThis.Array.isArray(object?.studyCountPerPortal)
|
|
75
|
-
? object.studyCountPerPortal.map((e) => StudyCountPerPortal.fromJSON(e))
|
|
78
|
+
? object.studyCountPerPortal.map((e) => exports.StudyCountPerPortal.fromJSON(e))
|
|
76
79
|
: [],
|
|
77
80
|
rankings: isObject(object.rankings)
|
|
78
81
|
? Object.entries(object.rankings).reduce((acc, [key, value]) => {
|
|
79
|
-
acc[globalThis.Number(key)] = Ranking.fromJSON(value);
|
|
82
|
+
acc[globalThis.Number(key)] = Ranking_1.Ranking.fromJSON(value);
|
|
80
83
|
return acc;
|
|
81
84
|
}, {})
|
|
82
85
|
: {},
|
|
83
86
|
services: isSet(object.services) ? globalThis.String(object.services) : undefined,
|
|
84
87
|
accreditation: isSet(object.accreditation) ? globalThis.String(object.accreditation) : undefined,
|
|
85
|
-
topOrganisation: isSet(object.topOrganisation) ? Organisation.fromJSON(object.topOrganisation) : undefined,
|
|
88
|
+
topOrganisation: isSet(object.topOrganisation) ? exports.Organisation.fromJSON(object.topOrganisation) : undefined,
|
|
86
89
|
venues: globalThis.Array.isArray(object?.venues)
|
|
87
|
-
? object.venues.map((e) => Venue.fromJSON(e))
|
|
90
|
+
? object.venues.map((e) => exports.Venue.fromJSON(e))
|
|
88
91
|
: [],
|
|
89
92
|
linksHomepage: globalThis.Array.isArray(object?.linksHomepage)
|
|
90
|
-
? object.linksHomepage.map((e) => SocialLink.fromJSON(e))
|
|
93
|
+
? object.linksHomepage.map((e) => SocialLink_1.SocialLink.fromJSON(e))
|
|
91
94
|
: [],
|
|
92
95
|
studentLife: isSet(object.studentLife) ? globalThis.String(object.studentLife) : undefined,
|
|
93
96
|
isOnlineOnly: isSet(object.isOnlineOnly) ? globalThis.Boolean(object.isOnlineOnly) : false,
|
|
94
97
|
research: isSet(object.research) ? globalThis.String(object.research) : "",
|
|
95
|
-
reviews: isSet(object.reviews) ? ReviewRating.fromJSON(object.reviews) : undefined,
|
|
98
|
+
reviews: isSet(object.reviews) ? ReviewRating_1.ReviewRating.fromJSON(object.reviews) : undefined,
|
|
96
99
|
mostFavorableRanking: isSet(object.mostFavorableRanking)
|
|
97
|
-
? OrganisationRanking.fromJSON(object.mostFavorableRanking)
|
|
100
|
+
? OrganisationRanking_1.OrganisationRanking.fromJSON(object.mostFavorableRanking)
|
|
98
101
|
: undefined,
|
|
99
102
|
universityReviews: globalThis.Array.isArray(object?.universityReviews)
|
|
100
|
-
? object.universityReviews.map((e) => Review.fromJSON(e))
|
|
103
|
+
? object.universityReviews.map((e) => Review_1.Review.fromJSON(e))
|
|
101
104
|
: [],
|
|
102
105
|
isGSSAWinner: isSet(object.isGSSAWinner) ? globalThis.Boolean(object.isGSSAWinner) : false,
|
|
103
106
|
isPublicFunding: isSet(object.isPublicFunding) ? globalThis.Boolean(object.isPublicFunding) : false,
|
|
104
107
|
isNonProfitFunding: isSet(object.isNonProfitFunding) ? globalThis.Boolean(object.isNonProfitFunding) : false,
|
|
105
108
|
isForProfitFunding: isSet(object.isForProfitFunding) ? globalThis.Boolean(object.isForProfitFunding) : false,
|
|
106
109
|
mostPositiveUniversityReview: isSet(object.mostPositiveUniversityReview)
|
|
107
|
-
? Review.fromJSON(object.mostPositiveUniversityReview)
|
|
110
|
+
? Review_1.Review.fromJSON(object.mostPositiveUniversityReview)
|
|
108
111
|
: undefined,
|
|
109
|
-
country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
|
|
112
|
+
country: isSet(object.country) ? exports.Country.fromJSON(object.country) : undefined,
|
|
110
113
|
mostCriticalUniversityReview: isSet(object.mostCriticalUniversityReview)
|
|
111
|
-
? Review.fromJSON(object.mostCriticalUniversityReview)
|
|
114
|
+
? Review_1.Review.fromJSON(object.mostCriticalUniversityReview)
|
|
112
115
|
: undefined,
|
|
113
|
-
unibuddy: isSet(object.unibuddy) ? Unibuddy.fromJSON(object.unibuddy) : undefined,
|
|
116
|
+
unibuddy: isSet(object.unibuddy) ? Unibuddy_1.Unibuddy.fromJSON(object.unibuddy) : undefined,
|
|
114
117
|
canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
|
|
115
118
|
isTopOrganisation: isSet(object.isTopOrganisation) ? globalThis.Boolean(object.isTopOrganisation) : false,
|
|
116
119
|
persistGlParamRefLink: isSet(object.persistGlParamRefLink)
|
|
@@ -121,7 +124,7 @@ export const Organisation = {
|
|
|
121
124
|
: false,
|
|
122
125
|
virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
|
|
123
126
|
virtualName: isSet(object.virtualName) ? globalThis.String(object.virtualName) : "",
|
|
124
|
-
commercialEntity: isSet(object.commercialEntity) ? CommercialEntity.fromJSON(object.commercialEntity) : undefined,
|
|
127
|
+
commercialEntity: isSet(object.commercialEntity) ? CommercialEntity_1.CommercialEntity.fromJSON(object.commercialEntity) : undefined,
|
|
125
128
|
canShowAon: isSet(object.canShowAon) ? globalThis.Boolean(object.canShowAon) : false,
|
|
126
129
|
reviewCount: isSet(object.reviewCount) ? globalThis.Number(object.reviewCount) : 0,
|
|
127
130
|
globalMetaRankingPosition: isSet(object.globalMetaRankingPosition)
|
|
@@ -153,19 +156,19 @@ export const Organisation = {
|
|
|
153
156
|
obj.amountOfProgrammes = Math.round(message.amountOfProgrammes);
|
|
154
157
|
}
|
|
155
158
|
if (message.logo !== undefined) {
|
|
156
|
-
obj.logo = File.toJSON(message.logo);
|
|
159
|
+
obj.logo = File_1.File.toJSON(message.logo);
|
|
157
160
|
}
|
|
158
161
|
if (message.hasLogo !== false) {
|
|
159
162
|
obj.hasLogo = message.hasLogo;
|
|
160
163
|
}
|
|
161
164
|
if (message.squareLogo !== undefined) {
|
|
162
|
-
obj.squareLogo = File.toJSON(message.squareLogo);
|
|
165
|
+
obj.squareLogo = File_1.File.toJSON(message.squareLogo);
|
|
163
166
|
}
|
|
164
167
|
if (message.hasSquareLogo !== false) {
|
|
165
168
|
obj.hasSquareLogo = message.hasSquareLogo;
|
|
166
169
|
}
|
|
167
170
|
if (message.organisationLink !== undefined) {
|
|
168
|
-
obj.organisationLink = Link.toJSON(message.organisationLink);
|
|
171
|
+
obj.organisationLink = Link_1.Link.toJSON(message.organisationLink);
|
|
169
172
|
}
|
|
170
173
|
if (message.summary !== undefined) {
|
|
171
174
|
obj.summary = message.summary;
|
|
@@ -186,7 +189,7 @@ export const Organisation = {
|
|
|
186
189
|
obj.trafficSourceForwardingMethod = message.trafficSourceForwardingMethod;
|
|
187
190
|
}
|
|
188
191
|
if (message.links?.length) {
|
|
189
|
-
obj.links = message.links.map((e) => SocialLink.toJSON(e));
|
|
192
|
+
obj.links = message.links.map((e) => SocialLink_1.SocialLink.toJSON(e));
|
|
190
193
|
}
|
|
191
194
|
if (message.promo !== undefined) {
|
|
192
195
|
obj.promo = message.promo;
|
|
@@ -222,7 +225,7 @@ export const Organisation = {
|
|
|
222
225
|
obj.studentLifeCampus = message.studentLifeCampus;
|
|
223
226
|
}
|
|
224
227
|
if (message.cover !== undefined) {
|
|
225
|
-
obj.cover = File.toJSON(message.cover);
|
|
228
|
+
obj.cover = File_1.File.toJSON(message.cover);
|
|
226
229
|
}
|
|
227
230
|
if (message.longitude !== undefined) {
|
|
228
231
|
obj.longitude = message.longitude;
|
|
@@ -234,10 +237,10 @@ export const Organisation = {
|
|
|
234
237
|
obj.reasons = message.reasons;
|
|
235
238
|
}
|
|
236
239
|
if (message.city !== undefined) {
|
|
237
|
-
obj.city = City.toJSON(message.city);
|
|
240
|
+
obj.city = exports.City.toJSON(message.city);
|
|
238
241
|
}
|
|
239
242
|
if (message.mediaFiles?.length) {
|
|
240
|
-
obj.mediaFiles = message.mediaFiles.map((e) => File.toJSON(e));
|
|
243
|
+
obj.mediaFiles = message.mediaFiles.map((e) => File_1.File.toJSON(e));
|
|
241
244
|
}
|
|
242
245
|
if (message.students !== undefined) {
|
|
243
246
|
obj.students = Math.round(message.students);
|
|
@@ -267,14 +270,14 @@ export const Organisation = {
|
|
|
267
270
|
obj.hasFiles = message.hasFiles;
|
|
268
271
|
}
|
|
269
272
|
if (message.studyCountPerPortal?.length) {
|
|
270
|
-
obj.studyCountPerPortal = message.studyCountPerPortal.map((e) => StudyCountPerPortal.toJSON(e));
|
|
273
|
+
obj.studyCountPerPortal = message.studyCountPerPortal.map((e) => exports.StudyCountPerPortal.toJSON(e));
|
|
271
274
|
}
|
|
272
275
|
if (message.rankings) {
|
|
273
276
|
const entries = Object.entries(message.rankings);
|
|
274
277
|
if (entries.length > 0) {
|
|
275
278
|
obj.rankings = {};
|
|
276
279
|
entries.forEach(([k, v]) => {
|
|
277
|
-
obj.rankings[k] = Ranking.toJSON(v);
|
|
280
|
+
obj.rankings[k] = Ranking_1.Ranking.toJSON(v);
|
|
278
281
|
});
|
|
279
282
|
}
|
|
280
283
|
}
|
|
@@ -285,13 +288,13 @@ export const Organisation = {
|
|
|
285
288
|
obj.accreditation = message.accreditation;
|
|
286
289
|
}
|
|
287
290
|
if (message.topOrganisation !== undefined) {
|
|
288
|
-
obj.topOrganisation = Organisation.toJSON(message.topOrganisation);
|
|
291
|
+
obj.topOrganisation = exports.Organisation.toJSON(message.topOrganisation);
|
|
289
292
|
}
|
|
290
293
|
if (message.venues?.length) {
|
|
291
|
-
obj.venues = message.venues.map((e) => Venue.toJSON(e));
|
|
294
|
+
obj.venues = message.venues.map((e) => exports.Venue.toJSON(e));
|
|
292
295
|
}
|
|
293
296
|
if (message.linksHomepage?.length) {
|
|
294
|
-
obj.linksHomepage = message.linksHomepage.map((e) => SocialLink.toJSON(e));
|
|
297
|
+
obj.linksHomepage = message.linksHomepage.map((e) => SocialLink_1.SocialLink.toJSON(e));
|
|
295
298
|
}
|
|
296
299
|
if (message.studentLife !== undefined) {
|
|
297
300
|
obj.studentLife = message.studentLife;
|
|
@@ -303,13 +306,13 @@ export const Organisation = {
|
|
|
303
306
|
obj.research = message.research;
|
|
304
307
|
}
|
|
305
308
|
if (message.reviews !== undefined) {
|
|
306
|
-
obj.reviews = ReviewRating.toJSON(message.reviews);
|
|
309
|
+
obj.reviews = ReviewRating_1.ReviewRating.toJSON(message.reviews);
|
|
307
310
|
}
|
|
308
311
|
if (message.mostFavorableRanking !== undefined) {
|
|
309
|
-
obj.mostFavorableRanking = OrganisationRanking.toJSON(message.mostFavorableRanking);
|
|
312
|
+
obj.mostFavorableRanking = OrganisationRanking_1.OrganisationRanking.toJSON(message.mostFavorableRanking);
|
|
310
313
|
}
|
|
311
314
|
if (message.universityReviews?.length) {
|
|
312
|
-
obj.universityReviews = message.universityReviews.map((e) => Review.toJSON(e));
|
|
315
|
+
obj.universityReviews = message.universityReviews.map((e) => Review_1.Review.toJSON(e));
|
|
313
316
|
}
|
|
314
317
|
if (message.isGSSAWinner !== false) {
|
|
315
318
|
obj.isGSSAWinner = message.isGSSAWinner;
|
|
@@ -324,16 +327,16 @@ export const Organisation = {
|
|
|
324
327
|
obj.isForProfitFunding = message.isForProfitFunding;
|
|
325
328
|
}
|
|
326
329
|
if (message.mostPositiveUniversityReview !== undefined) {
|
|
327
|
-
obj.mostPositiveUniversityReview = Review.toJSON(message.mostPositiveUniversityReview);
|
|
330
|
+
obj.mostPositiveUniversityReview = Review_1.Review.toJSON(message.mostPositiveUniversityReview);
|
|
328
331
|
}
|
|
329
332
|
if (message.country !== undefined) {
|
|
330
|
-
obj.country = Country.toJSON(message.country);
|
|
333
|
+
obj.country = exports.Country.toJSON(message.country);
|
|
331
334
|
}
|
|
332
335
|
if (message.mostCriticalUniversityReview !== undefined) {
|
|
333
|
-
obj.mostCriticalUniversityReview = Review.toJSON(message.mostCriticalUniversityReview);
|
|
336
|
+
obj.mostCriticalUniversityReview = Review_1.Review.toJSON(message.mostCriticalUniversityReview);
|
|
334
337
|
}
|
|
335
338
|
if (message.unibuddy !== undefined) {
|
|
336
|
-
obj.unibuddy = Unibuddy.toJSON(message.unibuddy);
|
|
339
|
+
obj.unibuddy = Unibuddy_1.Unibuddy.toJSON(message.unibuddy);
|
|
337
340
|
}
|
|
338
341
|
if (message.canBeIndexed !== false) {
|
|
339
342
|
obj.canBeIndexed = message.canBeIndexed;
|
|
@@ -354,7 +357,7 @@ export const Organisation = {
|
|
|
354
357
|
obj.virtualName = message.virtualName;
|
|
355
358
|
}
|
|
356
359
|
if (message.commercialEntity !== undefined) {
|
|
357
|
-
obj.commercialEntity = CommercialEntity.toJSON(message.commercialEntity);
|
|
360
|
+
obj.commercialEntity = CommercialEntity_1.CommercialEntity.toJSON(message.commercialEntity);
|
|
358
361
|
}
|
|
359
362
|
if (message.canShowAon !== false) {
|
|
360
363
|
obj.canShowAon = message.canShowAon;
|
|
@@ -377,11 +380,11 @@ export const Organisation = {
|
|
|
377
380
|
return obj;
|
|
378
381
|
},
|
|
379
382
|
};
|
|
380
|
-
|
|
383
|
+
exports.Organisation_RankingsEntry = {
|
|
381
384
|
fromJSON(object) {
|
|
382
385
|
return {
|
|
383
386
|
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
|
384
|
-
value: isSet(object.value) ? Ranking.fromJSON(object.value) : undefined,
|
|
387
|
+
value: isSet(object.value) ? Ranking_1.Ranking.fromJSON(object.value) : undefined,
|
|
385
388
|
};
|
|
386
389
|
},
|
|
387
390
|
toJSON(message) {
|
|
@@ -390,12 +393,12 @@ export const Organisation_RankingsEntry = {
|
|
|
390
393
|
obj.key = Math.round(message.key);
|
|
391
394
|
}
|
|
392
395
|
if (message.value !== undefined) {
|
|
393
|
-
obj.value = Ranking.toJSON(message.value);
|
|
396
|
+
obj.value = Ranking_1.Ranking.toJSON(message.value);
|
|
394
397
|
}
|
|
395
398
|
return obj;
|
|
396
399
|
},
|
|
397
400
|
};
|
|
398
|
-
|
|
401
|
+
exports.StudyCountPerPortal = {
|
|
399
402
|
fromJSON(object) {
|
|
400
403
|
return {
|
|
401
404
|
portal: isSet(object.portal) ? globalThis.String(object.portal) : "",
|
|
@@ -413,11 +416,11 @@ export const StudyCountPerPortal = {
|
|
|
413
416
|
return obj;
|
|
414
417
|
},
|
|
415
418
|
};
|
|
416
|
-
|
|
419
|
+
exports.Venue = {
|
|
417
420
|
fromJSON(object) {
|
|
418
421
|
return {
|
|
419
422
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
420
|
-
cities: globalThis.Array.isArray(object?.cities) ? object.cities.map((e) => City.fromJSON(e)) : [],
|
|
423
|
+
cities: globalThis.Array.isArray(object?.cities) ? object.cities.map((e) => exports.City.fromJSON(e)) : [],
|
|
421
424
|
};
|
|
422
425
|
},
|
|
423
426
|
toJSON(message) {
|
|
@@ -426,20 +429,20 @@ export const Venue = {
|
|
|
426
429
|
obj.id = Math.round(message.id);
|
|
427
430
|
}
|
|
428
431
|
if (message.cities?.length) {
|
|
429
|
-
obj.cities = message.cities.map((e) => City.toJSON(e));
|
|
432
|
+
obj.cities = message.cities.map((e) => exports.City.toJSON(e));
|
|
430
433
|
}
|
|
431
434
|
return obj;
|
|
432
435
|
},
|
|
433
436
|
};
|
|
434
|
-
|
|
437
|
+
exports.City = {
|
|
435
438
|
fromJSON(object) {
|
|
436
439
|
return {
|
|
437
440
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
438
441
|
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
439
442
|
amountOfProgrammes: isSet(object.amountOfProgrammes) ? globalThis.Number(object.amountOfProgrammes) : 0,
|
|
440
|
-
cityLink: isSet(object.cityLink) ? Link.fromJSON(object.cityLink) : undefined,
|
|
443
|
+
cityLink: isSet(object.cityLink) ? Link_1.Link.fromJSON(object.cityLink) : undefined,
|
|
441
444
|
organisations: globalThis.Array.isArray(object?.organisations)
|
|
442
|
-
? object.organisations.map((e) => Organisation.fromJSON(e))
|
|
445
|
+
? object.organisations.map((e) => exports.Organisation.fromJSON(e))
|
|
443
446
|
: [],
|
|
444
447
|
liveIn: isSet(object.liveIn) ? globalThis.String(object.liveIn) : undefined,
|
|
445
448
|
atmosphere: isSet(object.atmosphere) ? globalThis.String(object.atmosphere) : undefined,
|
|
@@ -454,16 +457,16 @@ export const City = {
|
|
|
454
457
|
livingCostsMax: isSet(object.livingCostsMax) ? globalThis.Number(object.livingCostsMax) : undefined,
|
|
455
458
|
currency: isSet(object.currency) ? globalThis.String(object.currency) : undefined,
|
|
456
459
|
studyIn: isSet(object.studyIn) ? globalThis.String(object.studyIn) : undefined,
|
|
457
|
-
country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
|
|
460
|
+
country: isSet(object.country) ? exports.Country.fromJSON(object.country) : undefined,
|
|
458
461
|
opportunities: isSet(object.opportunities) ? globalThis.String(object.opportunities) : undefined,
|
|
459
462
|
longitude: isSet(object.longitude) ? globalThis.String(object.longitude) : undefined,
|
|
460
463
|
latitude: isSet(object.latitude) ? globalThis.String(object.latitude) : undefined,
|
|
461
464
|
organisationCount: isSet(object.organisationCount) ? globalThis.Number(object.organisationCount) : 0,
|
|
462
465
|
hasOrganisations: isSet(object.hasOrganisations) ? globalThis.Boolean(object.hasOrganisations) : false,
|
|
463
466
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
464
|
-
area: isSet(object.area) ? Area.fromJSON(object.area) : undefined,
|
|
467
|
+
area: isSet(object.area) ? Area_1.Area.fromJSON(object.area) : undefined,
|
|
465
468
|
hasCover: isSet(object.hasCover) ? globalThis.Boolean(object.hasCover) : false,
|
|
466
|
-
cover: isSet(object.cover) ? File.fromJSON(object.cover) : undefined,
|
|
469
|
+
cover: isSet(object.cover) ? File_1.File.fromJSON(object.cover) : undefined,
|
|
467
470
|
canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
|
|
468
471
|
};
|
|
469
472
|
},
|
|
@@ -479,10 +482,10 @@ export const City = {
|
|
|
479
482
|
obj.amountOfProgrammes = Math.round(message.amountOfProgrammes);
|
|
480
483
|
}
|
|
481
484
|
if (message.cityLink !== undefined) {
|
|
482
|
-
obj.cityLink = Link.toJSON(message.cityLink);
|
|
485
|
+
obj.cityLink = Link_1.Link.toJSON(message.cityLink);
|
|
483
486
|
}
|
|
484
487
|
if (message.organisations?.length) {
|
|
485
|
-
obj.organisations = message.organisations.map((e) => Organisation.toJSON(e));
|
|
488
|
+
obj.organisations = message.organisations.map((e) => exports.Organisation.toJSON(e));
|
|
486
489
|
}
|
|
487
490
|
if (message.liveIn !== undefined) {
|
|
488
491
|
obj.liveIn = message.liveIn;
|
|
@@ -518,7 +521,7 @@ export const City = {
|
|
|
518
521
|
obj.studyIn = message.studyIn;
|
|
519
522
|
}
|
|
520
523
|
if (message.country !== undefined) {
|
|
521
|
-
obj.country = Country.toJSON(message.country);
|
|
524
|
+
obj.country = exports.Country.toJSON(message.country);
|
|
522
525
|
}
|
|
523
526
|
if (message.opportunities !== undefined) {
|
|
524
527
|
obj.opportunities = message.opportunities;
|
|
@@ -539,13 +542,13 @@ export const City = {
|
|
|
539
542
|
obj.summary = message.summary;
|
|
540
543
|
}
|
|
541
544
|
if (message.area !== undefined) {
|
|
542
|
-
obj.area = Area.toJSON(message.area);
|
|
545
|
+
obj.area = Area_1.Area.toJSON(message.area);
|
|
543
546
|
}
|
|
544
547
|
if (message.hasCover !== false) {
|
|
545
548
|
obj.hasCover = message.hasCover;
|
|
546
549
|
}
|
|
547
550
|
if (message.cover !== undefined) {
|
|
548
|
-
obj.cover = File.toJSON(message.cover);
|
|
551
|
+
obj.cover = File_1.File.toJSON(message.cover);
|
|
549
552
|
}
|
|
550
553
|
if (message.canBeIndexed !== false) {
|
|
551
554
|
obj.canBeIndexed = message.canBeIndexed;
|
|
@@ -553,19 +556,19 @@ export const City = {
|
|
|
553
556
|
return obj;
|
|
554
557
|
},
|
|
555
558
|
};
|
|
556
|
-
|
|
559
|
+
exports.Country = {
|
|
557
560
|
fromJSON(object) {
|
|
558
561
|
return {
|
|
559
562
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
560
563
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
561
564
|
isPremium: isSet(object.isPremium) ? globalThis.Boolean(object.isPremium) : false,
|
|
562
565
|
homepageLink: isSet(object.homepageLink) ? globalThis.String(object.homepageLink) : "",
|
|
563
|
-
countryLink: isSet(object.countryLink) ? Link.fromJSON(object.countryLink) : undefined,
|
|
566
|
+
countryLink: isSet(object.countryLink) ? Link_1.Link.fromJSON(object.countryLink) : undefined,
|
|
564
567
|
whyStudyHere: isSet(object.whyStudyHere) ? globalThis.String(object.whyStudyHere) : undefined,
|
|
565
568
|
practicalInfo: isSet(object.practicalInfo) ? globalThis.String(object.practicalInfo) : undefined,
|
|
566
569
|
mayShowGallery: isSet(object.mayShowGallery) ? globalThis.Boolean(object.mayShowGallery) : false,
|
|
567
570
|
photosAndVideos: globalThis.Array.isArray(object?.photosAndVideos)
|
|
568
|
-
? object.photosAndVideos.map((e) => File.fromJSON(e))
|
|
571
|
+
? object.photosAndVideos.map((e) => File_1.File.fromJSON(e))
|
|
569
572
|
: [],
|
|
570
573
|
researchCareer: isSet(object.researchCareer) ? globalThis.String(object.researchCareer) : undefined,
|
|
571
574
|
career: isSet(object.career) ? globalThis.String(object.career) : undefined,
|
|
@@ -601,7 +604,7 @@ export const Country = {
|
|
|
601
604
|
faqs: isSet(object.faqs) ? globalThis.String(object.faqs) : undefined,
|
|
602
605
|
hasInstitutes: isSet(object.hasInstitutes) ? globalThis.Boolean(object.hasInstitutes) : false,
|
|
603
606
|
cities: globalThis.Array.isArray(object?.cities)
|
|
604
|
-
? object.cities.map((e) => City.fromJSON(e))
|
|
607
|
+
? object.cities.map((e) => exports.City.fromJSON(e))
|
|
605
608
|
: [],
|
|
606
609
|
numberOfStudents: isSet(object.numberOfStudents) ? globalThis.Number(object.numberOfStudents) : undefined,
|
|
607
610
|
studyIn: isSet(object.studyIn) ? globalThis.String(object.studyIn) : undefined,
|
|
@@ -620,7 +623,7 @@ export const Country = {
|
|
|
620
623
|
? globalThis.Number(object.academicEndDateTime)
|
|
621
624
|
: undefined,
|
|
622
625
|
disciplineCards: globalThis.Array.isArray(object?.disciplineCards)
|
|
623
|
-
? object.disciplineCards.map((e) => Discipline.fromJSON(e))
|
|
626
|
+
? object.disciplineCards.map((e) => Discipline_1.Discipline.fromJSON(e))
|
|
624
627
|
: [],
|
|
625
628
|
rankedInstitutesCount: isSet(object.rankedInstitutesCount) ? globalThis.Number(object.rankedInstitutesCount) : 0,
|
|
626
629
|
isoCode: isSet(object.isoCode) ? globalThis.String(object.isoCode) : "",
|
|
@@ -628,15 +631,15 @@ export const Country = {
|
|
|
628
631
|
demonym: isSet(object.demonym) ? globalThis.String(object.demonym) : undefined,
|
|
629
632
|
canShowDemonym: isSet(object.canShowDemonym) ? globalThis.Boolean(object.canShowDemonym) : false,
|
|
630
633
|
hasDegrees: isSet(object.hasDegrees) ? globalThis.Boolean(object.hasDegrees) : false,
|
|
631
|
-
degrees: globalThis.Array.isArray(object?.degrees) ? object.degrees.map((e) => Degree.fromJSON(e)) : [],
|
|
634
|
+
degrees: globalThis.Array.isArray(object?.degrees) ? object.degrees.map((e) => Degree_1.Degree.fromJSON(e)) : [],
|
|
632
635
|
allDegrees: globalThis.Array.isArray(object?.allDegrees)
|
|
633
|
-
? object.allDegrees.map((e) => Degree.fromJSON(e))
|
|
636
|
+
? object.allDegrees.map((e) => Degree_1.Degree.fromJSON(e))
|
|
634
637
|
: [],
|
|
635
638
|
isCountryUnitedStates: isSet(object.isCountryUnitedStates)
|
|
636
639
|
? globalThis.Boolean(object.isCountryUnitedStates)
|
|
637
640
|
: false,
|
|
638
641
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
639
|
-
image: isSet(object.image) ? File.fromJSON(object.image) : undefined,
|
|
642
|
+
image: isSet(object.image) ? File_1.File.fromJSON(object.image) : undefined,
|
|
640
643
|
virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
|
|
641
644
|
hasFiles: isSet(object.hasFiles) ? globalThis.Boolean(object.hasFiles) : false,
|
|
642
645
|
mayShowIELTS: isSet(object.mayShowIELTS) ? globalThis.Boolean(object.mayShowIELTS) : false,
|
|
@@ -660,7 +663,7 @@ export const Country = {
|
|
|
660
663
|
obj.homepageLink = message.homepageLink;
|
|
661
664
|
}
|
|
662
665
|
if (message.countryLink !== undefined) {
|
|
663
|
-
obj.countryLink = Link.toJSON(message.countryLink);
|
|
666
|
+
obj.countryLink = Link_1.Link.toJSON(message.countryLink);
|
|
664
667
|
}
|
|
665
668
|
if (message.whyStudyHere !== undefined) {
|
|
666
669
|
obj.whyStudyHere = message.whyStudyHere;
|
|
@@ -672,7 +675,7 @@ export const Country = {
|
|
|
672
675
|
obj.mayShowGallery = message.mayShowGallery;
|
|
673
676
|
}
|
|
674
677
|
if (message.photosAndVideos?.length) {
|
|
675
|
-
obj.photosAndVideos = message.photosAndVideos.map((e) => File.toJSON(e));
|
|
678
|
+
obj.photosAndVideos = message.photosAndVideos.map((e) => File_1.File.toJSON(e));
|
|
676
679
|
}
|
|
677
680
|
if (message.researchCareer !== undefined) {
|
|
678
681
|
obj.researchCareer = message.researchCareer;
|
|
@@ -762,7 +765,7 @@ export const Country = {
|
|
|
762
765
|
obj.hasInstitutes = message.hasInstitutes;
|
|
763
766
|
}
|
|
764
767
|
if (message.cities?.length) {
|
|
765
|
-
obj.cities = message.cities.map((e) => City.toJSON(e));
|
|
768
|
+
obj.cities = message.cities.map((e) => exports.City.toJSON(e));
|
|
766
769
|
}
|
|
767
770
|
if (message.numberOfStudents !== undefined) {
|
|
768
771
|
obj.numberOfStudents = Math.round(message.numberOfStudents);
|
|
@@ -789,7 +792,7 @@ export const Country = {
|
|
|
789
792
|
obj.academicEndDateTime = Math.round(message.academicEndDateTime);
|
|
790
793
|
}
|
|
791
794
|
if (message.disciplineCards?.length) {
|
|
792
|
-
obj.disciplineCards = message.disciplineCards.map((e) => Discipline.toJSON(e));
|
|
795
|
+
obj.disciplineCards = message.disciplineCards.map((e) => Discipline_1.Discipline.toJSON(e));
|
|
793
796
|
}
|
|
794
797
|
if (message.rankedInstitutesCount !== 0) {
|
|
795
798
|
obj.rankedInstitutesCount = Math.round(message.rankedInstitutesCount);
|
|
@@ -810,10 +813,10 @@ export const Country = {
|
|
|
810
813
|
obj.hasDegrees = message.hasDegrees;
|
|
811
814
|
}
|
|
812
815
|
if (message.degrees?.length) {
|
|
813
|
-
obj.degrees = message.degrees.map((e) => Degree.toJSON(e));
|
|
816
|
+
obj.degrees = message.degrees.map((e) => Degree_1.Degree.toJSON(e));
|
|
814
817
|
}
|
|
815
818
|
if (message.allDegrees?.length) {
|
|
816
|
-
obj.allDegrees = message.allDegrees.map((e) => Degree.toJSON(e));
|
|
819
|
+
obj.allDegrees = message.allDegrees.map((e) => Degree_1.Degree.toJSON(e));
|
|
817
820
|
}
|
|
818
821
|
if (message.isCountryUnitedStates !== false) {
|
|
819
822
|
obj.isCountryUnitedStates = message.isCountryUnitedStates;
|
|
@@ -822,7 +825,7 @@ export const Country = {
|
|
|
822
825
|
obj.title = message.title;
|
|
823
826
|
}
|
|
824
827
|
if (message.image !== undefined) {
|
|
825
|
-
obj.image = File.toJSON(message.image);
|
|
828
|
+
obj.image = File_1.File.toJSON(message.image);
|
|
826
829
|
}
|
|
827
830
|
if (message.virtualPath !== "") {
|
|
828
831
|
obj.virtualPath = message.virtualPath;
|
|
@@ -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: OrganisationInformation.proto
|
|
6
|
-
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OrganisationInformation = void 0;
|
|
9
|
+
exports.OrganisationInformation = {
|
|
7
10
|
fromJSON(object) {
|
|
8
11
|
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
9
12
|
},
|
|
@@ -1,19 +1,22 @@
|
|
|
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: OrganisationRanking.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OrganisationRanking = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
const Body_1 = require("./Body");
|
|
11
|
+
const RankingInstitute_1 = require("./RankingInstitute");
|
|
12
|
+
exports.OrganisationRanking = {
|
|
10
13
|
fromJSON(object) {
|
|
11
14
|
return {
|
|
12
15
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
13
16
|
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
14
17
|
rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
|
|
15
|
-
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
16
|
-
rankingBody: isSet(object.rankingBody) ? Body.fromJSON(object.rankingBody) : undefined,
|
|
18
|
+
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute_1.RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
19
|
+
rankingBody: isSet(object.rankingBody) ? Body_1.Body.fromJSON(object.rankingBody) : undefined,
|
|
17
20
|
};
|
|
18
21
|
},
|
|
19
22
|
toJSON(message) {
|
|
@@ -28,10 +31,10 @@ export const OrganisationRanking = {
|
|
|
28
31
|
obj.rank = Math.round(message.rank);
|
|
29
32
|
}
|
|
30
33
|
if (message.rankingInstitute !== undefined) {
|
|
31
|
-
obj.rankingInstitute = RankingInstitute.toJSON(message.rankingInstitute);
|
|
34
|
+
obj.rankingInstitute = RankingInstitute_1.RankingInstitute.toJSON(message.rankingInstitute);
|
|
32
35
|
}
|
|
33
36
|
if (message.rankingBody !== undefined) {
|
|
34
|
-
obj.rankingBody = Body.toJSON(message.rankingBody);
|
|
37
|
+
obj.rankingBody = Body_1.Body.toJSON(message.rankingBody);
|
|
35
38
|
}
|
|
36
39
|
return obj;
|
|
37
40
|
},
|
package/protobuf/Person.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: Person.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Person = void 0;
|
|
6
9
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const File_1 = require("./File");
|
|
11
|
+
exports.Person = {
|
|
9
12
|
fromJSON(object) {
|
|
10
13
|
return {
|
|
11
14
|
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
12
15
|
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
13
16
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
14
|
-
logo: isSet(object.logo) ? File.fromJSON(object.logo) : undefined,
|
|
17
|
+
logo: isSet(object.logo) ? File_1.File.fromJSON(object.logo) : undefined,
|
|
15
18
|
job: isSet(object.job) ? globalThis.String(object.job) : undefined,
|
|
16
19
|
};
|
|
17
20
|
},
|
|
@@ -27,7 +30,7 @@ export const Person = {
|
|
|
27
30
|
obj.summary = message.summary;
|
|
28
31
|
}
|
|
29
32
|
if (message.logo !== undefined) {
|
|
30
|
-
obj.logo = File.toJSON(message.logo);
|
|
33
|
+
obj.logo = File_1.File.toJSON(message.logo);
|
|
31
34
|
}
|
|
32
35
|
if (message.job !== undefined) {
|
|
33
36
|
obj.job = message.job;
|