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