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