@studyportals/domain-client 7.0.1-beta.4 → 7.0.1-beta.5

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 (302) hide show
  1. package/package.json +4 -1
  2. package/index.d.ts +0 -91
  3. package/protobuf/Area.d.ts +0 -11
  4. package/protobuf/Area.js +0 -30
  5. package/protobuf/Article.d.ts +0 -60
  6. package/protobuf/Article.js +0 -226
  7. package/protobuf/Body.d.ts +0 -11
  8. package/protobuf/Body.js +0 -30
  9. package/protobuf/CampaignInformation.d.ts +0 -11
  10. package/protobuf/CampaignInformation.js +0 -30
  11. package/protobuf/ClickTracking.d.ts +0 -11
  12. package/protobuf/ClickTracking.js +0 -30
  13. package/protobuf/CommercialEntity.d.ts +0 -14
  14. package/protobuf/CommercialEntity.js +0 -48
  15. package/protobuf/Cover.d.ts +0 -10
  16. package/protobuf/Cover.js +0 -26
  17. package/protobuf/Deadline.d.ts +0 -11
  18. package/protobuf/Deadline.js +0 -30
  19. package/protobuf/Degree.d.ts +0 -16
  20. package/protobuf/Degree.js +0 -50
  21. package/protobuf/Description.d.ts +0 -16
  22. package/protobuf/Description.js +0 -45
  23. package/protobuf/Discipline.d.ts +0 -26
  24. package/protobuf/Discipline.js +0 -84
  25. package/protobuf/Duration.d.ts +0 -11
  26. package/protobuf/Duration.js +0 -30
  27. package/protobuf/EnglishRequirement.d.ts +0 -11
  28. package/protobuf/EnglishRequirement.js +0 -30
  29. package/protobuf/EssentialInformation.d.ts +0 -17
  30. package/protobuf/EssentialInformation.js +0 -54
  31. package/protobuf/File.d.ts +0 -22
  32. package/protobuf/File.js +0 -74
  33. package/protobuf/GPARequirement.d.ts +0 -11
  34. package/protobuf/GPARequirement.js +0 -30
  35. package/protobuf/InternalLink.d.ts +0 -12
  36. package/protobuf/InternalLink.js +0 -30
  37. package/protobuf/Link.d.ts +0 -11
  38. package/protobuf/Link.js +0 -30
  39. package/protobuf/LivingCost.d.ts +0 -11
  40. package/protobuf/LivingCost.js +0 -30
  41. package/protobuf/Location.d.ts +0 -18
  42. package/protobuf/Location.js +0 -56
  43. package/protobuf/Logo.d.ts +0 -10
  44. package/protobuf/Logo.js +0 -26
  45. package/protobuf/MiniProgrammeCard.d.ts +0 -18
  46. package/protobuf/MiniProgrammeCard.js +0 -50
  47. package/protobuf/OptionalLink.d.ts +0 -12
  48. package/protobuf/OptionalLink.js +0 -34
  49. package/protobuf/Organisation.d.ts +0 -211
  50. package/protobuf/Organisation.js +0 -853
  51. package/protobuf/OrganisationInformation.d.ts +0 -9
  52. package/protobuf/OrganisationInformation.js +0 -20
  53. package/protobuf/OrganisationRanking.d.ts +0 -15
  54. package/protobuf/OrganisationRanking.js +0 -41
  55. package/protobuf/Person.d.ts +0 -14
  56. package/protobuf/Person.js +0 -40
  57. package/protobuf/ProgrammeCard.d.ts +0 -60
  58. package/protobuf/ProgrammeCard.js +0 -197
  59. package/protobuf/ProgrammeGrid.d.ts +0 -14
  60. package/protobuf/ProgrammeGrid.js +0 -37
  61. package/protobuf/Ranking.d.ts +0 -22
  62. package/protobuf/Ranking.js +0 -76
  63. package/protobuf/RankingInstitute.d.ts +0 -15
  64. package/protobuf/RankingInstitute.js +0 -44
  65. package/protobuf/Review.d.ts +0 -17
  66. package/protobuf/Review.js +0 -52
  67. package/protobuf/ReviewRating.d.ts +0 -12
  68. package/protobuf/ReviewRating.js +0 -34
  69. package/protobuf/RichText.d.ts +0 -10
  70. package/protobuf/RichText.js +0 -28
  71. package/protobuf/SocialLink.d.ts +0 -21
  72. package/protobuf/SocialLink.js +0 -70
  73. package/protobuf/StartDate.d.ts +0 -13
  74. package/protobuf/StartDate.js +0 -38
  75. package/protobuf/Timing.d.ts +0 -17
  76. package/protobuf/Timing.js +0 -49
  77. package/protobuf/Topic.d.ts +0 -10
  78. package/protobuf/Topic.js +0 -26
  79. package/protobuf/TrackedLink.d.ts +0 -13
  80. package/protobuf/TrackedLink.js +0 -36
  81. package/protobuf/Tracking.d.ts +0 -18
  82. package/protobuf/Tracking.js +0 -58
  83. package/protobuf/TuitionFee.d.ts +0 -13
  84. package/protobuf/TuitionFee.js +0 -38
  85. package/protobuf/Unibuddy.d.ts +0 -10
  86. package/protobuf/Unibuddy.js +0 -26
  87. package/protobuf/index.d.ts +0 -45
  88. package/protobuf/index.js +0 -45
  89. package/src/clients/article-detail-page-client.d.ts +0 -8
  90. package/src/clients/article-detail-page-client.js +0 -16
  91. package/src/clients/index.d.ts +0 -7
  92. package/src/clients/index.js +0 -7
  93. package/src/clients/organisation-page-client.d.ts +0 -8
  94. package/src/clients/organisation-page-client.js +0 -16
  95. package/src/clients/protobuf-client.d.ts +0 -14
  96. package/src/clients/protobuf-client.js +0 -26
  97. package/src/clients/public-mini-programme-card-client.d.ts +0 -8
  98. package/src/clients/public-mini-programme-card-client.js +0 -16
  99. package/src/domain-client.d.ts +0 -14
  100. package/src/domain-client.js +0 -91
  101. package/src/exceptions/bad-request-exception.d.ts +0 -2
  102. package/src/exceptions/bad-request-exception.js +0 -2
  103. package/src/exceptions/client-exception.d.ts +0 -2
  104. package/src/exceptions/client-exception.js +0 -2
  105. package/src/exceptions/internal-server-exception.d.ts +0 -2
  106. package/src/exceptions/internal-server-exception.js +0 -2
  107. package/src/exceptions/not-found-exception.d.ts +0 -2
  108. package/src/exceptions/not-found-exception.js +0 -2
  109. package/src/exceptions/property-not-available-exception.d.ts +0 -2
  110. package/src/exceptions/property-not-available-exception.js +0 -2
  111. package/src/factories/DateFactory.d.ts +0 -5
  112. package/src/factories/DateFactory.js +0 -5
  113. package/src/factories/InternalLinkFactory.d.ts +0 -9
  114. package/src/factories/InternalLinkFactory.js +0 -22
  115. package/src/i-api-response.d.ts +0 -6
  116. package/src/i-api-response.js +0 -1
  117. package/src/i-class-factory.d.ts +0 -4
  118. package/src/i-class-factory.js +0 -1
  119. package/src/i-model-description.d.ts +0 -7
  120. package/src/i-model-description.js +0 -5
  121. package/src/model-client.d.ts +0 -16
  122. package/src/model-client.js +0 -43
  123. package/src/model-factory.d.ts +0 -11
  124. package/src/model-factory.js +0 -68
  125. package/src/models/bestfit-programme/bestfit-programme-client.d.ts +0 -7
  126. package/src/models/bestfit-programme/bestfit-programme-client.js +0 -12
  127. package/src/models/bestfit-programme/i-best-fit-programme.d.ts +0 -82
  128. package/src/models/bestfit-programme/i-best-fit-programme.js +0 -1
  129. package/src/models/bestfit-programme/i-city.d.ts +0 -14
  130. package/src/models/bestfit-programme/i-city.js +0 -1
  131. package/src/models/bestfit-programme/i-living-cost.d.ts +0 -20
  132. package/src/models/bestfit-programme/i-living-cost.js +0 -1
  133. package/src/models/city-search-document/city-search-document-client.d.ts +0 -7
  134. package/src/models/city-search-document/city-search-document-client.js +0 -12
  135. package/src/models/city-search-document/i-city-search-document.d.ts +0 -7
  136. package/src/models/city-search-document/i-city-search-document.js +0 -1
  137. package/src/models/common/i-city.d.ts +0 -14
  138. package/src/models/common/i-city.js +0 -1
  139. package/src/models/common/i-country.d.ts +0 -20
  140. package/src/models/common/i-country.js +0 -1
  141. package/src/models/common/i-english-requirements.d.ts +0 -51
  142. package/src/models/common/i-english-requirements.js +0 -1
  143. package/src/models/common/i-g-p-a-requirement.d.ts +0 -20
  144. package/src/models/common/i-g-p-a-requirement.js +0 -1
  145. package/src/models/common/i-internal-link.d.ts +0 -28
  146. package/src/models/common/i-internal-link.js +0 -1
  147. package/src/models/common/i-logo.d.ts +0 -14
  148. package/src/models/common/i-logo.js +0 -1
  149. package/src/models/common/i-review-rating.d.ts +0 -26
  150. package/src/models/common/i-review-rating.js +0 -1
  151. package/src/models/common/i-tuition-fee.d.ts +0 -50
  152. package/src/models/common/i-tuition-fee.js +0 -1
  153. package/src/models/copilot-country/copilot-country-client.d.ts +0 -7
  154. package/src/models/copilot-country/copilot-country-client.js +0 -12
  155. package/src/models/copilot-country/i-copilot-country.d.ts +0 -39
  156. package/src/models/copilot-country/i-copilot-country.js +0 -1
  157. package/src/models/copilot-country/i-copilot-ranking-card.d.ts +0 -38
  158. package/src/models/copilot-country/i-copilot-ranking-card.js +0 -1
  159. package/src/models/copilot-programme/copilot-programme-client.d.ts +0 -7
  160. package/src/models/copilot-programme/copilot-programme-client.js +0 -12
  161. package/src/models/copilot-programme/i-copilot-programme.d.ts +0 -125
  162. package/src/models/copilot-programme/i-copilot-programme.js +0 -1
  163. package/src/models/customerio-organisation/customerio-organisation-client.d.ts +0 -7
  164. package/src/models/customerio-organisation/customerio-organisation-client.js +0 -12
  165. package/src/models/customerio-organisation/i-customer-io-organisation.d.ts +0 -35
  166. package/src/models/customerio-organisation/i-customer-io-organisation.js +0 -1
  167. package/src/models/customerio-organisation/i-review.d.ts +0 -7
  168. package/src/models/customerio-organisation/i-review.js +0 -1
  169. package/src/models/customerio-programme/customerio-programme-client.d.ts +0 -7
  170. package/src/models/customerio-programme/customerio-programme-client.js +0 -12
  171. package/src/models/customerio-programme/i-customer-io-programme.d.ts +0 -107
  172. package/src/models/customerio-programme/i-customer-io-programme.js +0 -1
  173. package/src/models/customerio-programme/i-internal-link.d.ts +0 -28
  174. package/src/models/customerio-programme/i-internal-link.js +0 -1
  175. package/src/models/faq-static-content/i-faq-static-content.d.ts +0 -10
  176. package/src/models/faq-static-content/i-faq-static-content.js +0 -1
  177. package/src/models/faq-static-content/i-faq.d.ts +0 -4
  178. package/src/models/faq-static-content/i-faq.js +0 -1
  179. package/src/models/faq-static-content/i-static-content-url.d.ts +0 -4
  180. package/src/models/faq-static-content/i-static-content-url.js +0 -1
  181. package/src/models/faq-static-content/i-static-content.d.ts +0 -5
  182. package/src/models/faq-static-content/i-static-content.js +0 -1
  183. package/src/models/faq-static-content/public-faq-static-content-client.d.ts +0 -7
  184. package/src/models/faq-static-content/public-faq-static-content-client.js +0 -12
  185. package/src/models/organisation-card/i-organisation-card.d.ts +0 -39
  186. package/src/models/organisation-card/i-organisation-card.js +0 -1
  187. package/src/models/organisation-card/i-ranking-discipline.d.ts +0 -4
  188. package/src/models/organisation-card/i-ranking-discipline.js +0 -1
  189. package/src/models/organisation-card/organisation-card-client.d.ts +0 -7
  190. package/src/models/organisation-card/organisation-card-client.js +0 -12
  191. package/src/models/organisation-for-search/i-organisation-for-search.d.ts +0 -32
  192. package/src/models/organisation-for-search/i-organisation-for-search.js +0 -1
  193. package/src/models/organisation-for-search/public-organisation-for-search-client.d.ts +0 -7
  194. package/src/models/organisation-for-search/public-organisation-for-search-client.js +0 -12
  195. package/src/models/organisation-search-document/i-organisation-search-document.d.ts +0 -158
  196. package/src/models/organisation-search-document/i-organisation-search-document.js +0 -1
  197. package/src/models/organisation-search-document/organisation-search-document-client.d.ts +0 -7
  198. package/src/models/organisation-search-document/organisation-search-document-client.js +0 -12
  199. package/src/models/programme-card/i-click-tracking-data.d.ts +0 -5
  200. package/src/models/programme-card/i-click-tracking-data.js +0 -1
  201. package/src/models/programme-card/i-cover.d.ts +0 -14
  202. package/src/models/programme-card/i-cover.js +0 -1
  203. package/src/models/programme-card/i-deadline.d.ts +0 -20
  204. package/src/models/programme-card/i-deadline.js +0 -1
  205. package/src/models/programme-card/i-duration.d.ts +0 -40
  206. package/src/models/programme-card/i-duration.js +0 -1
  207. package/src/models/programme-card/i-internal-link.d.ts +0 -28
  208. package/src/models/programme-card/i-internal-link.js +0 -1
  209. package/src/models/programme-card/i-link.d.ts +0 -22
  210. package/src/models/programme-card/i-link.js +0 -1
  211. package/src/models/programme-card/i-location.d.ts +0 -12
  212. package/src/models/programme-card/i-location.js +0 -1
  213. package/src/models/programme-card/i-logo.d.ts +0 -14
  214. package/src/models/programme-card/i-logo.js +0 -1
  215. package/src/models/programme-card/i-optional-link.d.ts +0 -23
  216. package/src/models/programme-card/i-optional-link.js +0 -1
  217. package/src/models/programme-card/i-programme-card.d.ts +0 -212
  218. package/src/models/programme-card/i-programme-card.js +0 -1
  219. package/src/models/programme-card/i-start-date.d.ts +0 -33
  220. package/src/models/programme-card/i-start-date.js +0 -1
  221. package/src/models/programme-card/i-timing.d.ts +0 -45
  222. package/src/models/programme-card/i-timing.js +0 -1
  223. package/src/models/programme-card/i-tracked-link.d.ts +0 -29
  224. package/src/models/programme-card/i-tracked-link.js +0 -1
  225. package/src/models/programme-card/i-tracking.d.ts +0 -46
  226. package/src/models/programme-card/i-tracking.js +0 -1
  227. package/src/models/programme-card/i-tuition-fee.d.ts +0 -50
  228. package/src/models/programme-card/i-tuition-fee.js +0 -1
  229. package/src/models/programme-card/programme-card-client.d.ts +0 -7
  230. package/src/models/programme-card/programme-card-client.js +0 -12
  231. package/src/models/ranking-cards/i-ranking.d.ts +0 -18
  232. package/src/models/ranking-cards/i-ranking.js +0 -1
  233. package/src/models/scholarship-card/i-scholarship-card-v2.d.ts +0 -20
  234. package/src/models/scholarship-card/i-scholarship-card-v2.js +0 -1
  235. package/src/models/scholarship-card/i-scholarship-card.d.ts +0 -15
  236. package/src/models/scholarship-card/i-scholarship-card.js +0 -1
  237. package/src/models/scholarship-card/public-scholarship-card-client.d.ts +0 -7
  238. package/src/models/scholarship-card/public-scholarship-card-client.js +0 -12
  239. package/src/models/scholarship-card/scholarship-card-v2-client.d.ts +0 -7
  240. package/src/models/scholarship-card/scholarship-card-v2-client.js +0 -12
  241. package/src/models/scholarship-search-document/i-scholarship-search-document.d.ts +0 -38
  242. package/src/models/scholarship-search-document/i-scholarship-search-document.js +0 -1
  243. package/src/models/scholarship-search-document/scholarship-search-document-client.d.ts +0 -7
  244. package/src/models/scholarship-search-document/scholarship-search-document-client.js +0 -12
  245. package/src/models/search-discipline/i-search-discipline.d.ts +0 -26
  246. package/src/models/search-discipline/i-search-discipline.js +0 -1
  247. package/src/models/search-discipline/public-search-discipline-client.d.ts +0 -7
  248. package/src/models/search-discipline/public-search-discipline-client.js +0 -12
  249. package/src/models/search-projection/i-geo-targeting-configuration.d.ts +0 -38
  250. package/src/models/search-projection/i-geo-targeting-configuration.js +0 -1
  251. package/src/models/search-projection/i-geo-targeting-values.d.ts +0 -30
  252. package/src/models/search-projection/i-geo-targeting-values.js +0 -1
  253. package/src/models/search-projection/i-organisation-values.d.ts +0 -46
  254. package/src/models/search-projection/i-organisation-values.js +0 -1
  255. package/src/models/search-projection/i-premium-values.d.ts +0 -35
  256. package/src/models/search-projection/i-premium-values.js +0 -1
  257. package/src/models/search-projection/i-search-projection.d.ts +0 -186
  258. package/src/models/search-projection/i-search-projection.js +0 -1
  259. package/src/models/search-projection/i-tuition-values.d.ts +0 -50
  260. package/src/models/search-projection/i-tuition-values.js +0 -1
  261. package/src/models/search-projection/search-projection-client.d.ts +0 -7
  262. package/src/models/search-projection/search-projection-client.js +0 -12
  263. package/src/models/sitemap-articles-info/i-sitemap-article-info.d.ts +0 -26
  264. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +0 -1
  265. package/src/models/sitemap-articles-info/sitemap-articles-info-client.d.ts +0 -7
  266. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +0 -12
  267. package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +0 -14
  268. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +0 -1
  269. package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +0 -7
  270. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +0 -12
  271. package/src/models/sitemap-countries-info/i-sitemap-country-info.d.ts +0 -14
  272. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +0 -1
  273. package/src/models/sitemap-countries-info/sitemap-countries-info-client.d.ts +0 -7
  274. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +0 -12
  275. package/src/models/sitemap-country-degree-info/i-degree-info.d.ts +0 -14
  276. package/src/models/sitemap-country-degree-info/i-degree-info.js +0 -1
  277. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +0 -11
  278. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +0 -1
  279. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.d.ts +0 -7
  280. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +0 -12
  281. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.d.ts +0 -14
  282. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +0 -1
  283. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.d.ts +0 -7
  284. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +0 -12
  285. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.d.ts +0 -26
  286. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +0 -1
  287. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.d.ts +0 -7
  288. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +0 -12
  289. package/src/models/sitemap-programme-info/i-sitemap-programme-info.d.ts +0 -26
  290. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +0 -1
  291. package/src/models/sitemap-programme-info/sitemap-programme-info-client.d.ts +0 -7
  292. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +0 -12
  293. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.d.ts +0 -14
  294. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +0 -1
  295. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.d.ts +0 -7
  296. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +0 -12
  297. package/src/types/portal-map.d.ts +0 -2
  298. package/src/types/portal-map.js +0 -1
  299. package/src/types/portal-type.d.ts +0 -7
  300. package/src/types/portal-type.js +0 -8
  301. package/src/types.d.ts +0 -4
  302. package/src/types.js +0 -1
@@ -1,853 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: Organisation.proto
6
- /* eslint-disable */
7
- import { Area } from "./Area";
8
- import { CommercialEntity } from "./CommercialEntity";
9
- import { Degree } from "./Degree";
10
- import { Discipline } from "./Discipline";
11
- import { File } from "./File";
12
- import { Link } from "./Link";
13
- import { OrganisationRanking } from "./OrganisationRanking";
14
- import { Ranking } from "./Ranking";
15
- import { Review } from "./Review";
16
- import { ReviewRating } from "./ReviewRating";
17
- import { SocialLink } from "./SocialLink";
18
- import { Unibuddy } from "./Unibuddy";
19
- export const Organisation = {
20
- fromJSON(object) {
21
- return {
22
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
23
- topOrganisationId: isSet(object.topOrganisationId) ? globalThis.Number(object.topOrganisationId) : 0,
24
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
25
- amountOfProgrammes: isSet(object.amountOfProgrammes) ? globalThis.Number(object.amountOfProgrammes) : 0,
26
- logo: isSet(object.logo) ? File.fromJSON(object.logo) : undefined,
27
- hasLogo: isSet(object.hasLogo) ? globalThis.Boolean(object.hasLogo) : false,
28
- squareLogo: isSet(object.squareLogo) ? File.fromJSON(object.squareLogo) : undefined,
29
- hasSquareLogo: isSet(object.hasSquareLogo) ? globalThis.Boolean(object.hasSquareLogo) : false,
30
- organisationLink: isSet(object.organisationLink) ? Link.fromJSON(object.organisationLink) : undefined,
31
- summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
32
- isPublished: isSet(object.isPublished) ? globalThis.Boolean(object.isPublished) : false,
33
- longDescription: isSet(object.longDescription) ? globalThis.String(object.longDescription) : undefined,
34
- shortDescription: isSet(object.shortDescription) ? globalThis.String(object.shortDescription) : undefined,
35
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
36
- trafficSourceForwardingMethod: isSet(object.trafficSourceForwardingMethod)
37
- ? globalThis.String(object.trafficSourceForwardingMethod)
38
- : undefined,
39
- links: globalThis.Array.isArray(object?.links)
40
- ? object.links.map((e) => SocialLink.fromJSON(e))
41
- : [],
42
- promo: isSet(object.promo) ? globalThis.String(object.promo) : undefined,
43
- canonical: isSet(object.canonical) ? globalThis.String(object.canonical) : undefined,
44
- aboutHistory: isSet(object.aboutHistory) ? globalThis.String(object.aboutHistory) : undefined,
45
- aboutEducation: isSet(object.aboutEducation) ? globalThis.String(object.aboutEducation) : undefined,
46
- aboutResearch: isSet(object.aboutResearch) ? globalThis.String(object.aboutResearch) : undefined,
47
- aboutCareer: isSet(object.aboutCareer) ? globalThis.String(object.aboutCareer) : undefined,
48
- servicesHousing: isSet(object.servicesHousing) ? globalThis.String(object.servicesHousing) : undefined,
49
- servicesStudent: isSet(object.servicesStudent) ? globalThis.String(object.servicesStudent) : undefined,
50
- servicesICT: isSet(object.servicesICT) ? globalThis.String(object.servicesICT) : undefined,
51
- servicesMedical: isSet(object.servicesMedical) ? globalThis.String(object.servicesMedical) : undefined,
52
- studentLifeCampus: isSet(object.studentLifeCampus) ? globalThis.String(object.studentLifeCampus) : undefined,
53
- cover: isSet(object.cover) ? File.fromJSON(object.cover) : undefined,
54
- longitude: isSet(object.longitude) ? globalThis.String(object.longitude) : undefined,
55
- latitude: isSet(object.latitude) ? globalThis.String(object.latitude) : undefined,
56
- reasons: globalThis.Array.isArray(object?.reasons) ? object.reasons.map((e) => globalThis.String(e)) : [],
57
- city: isSet(object.city) ? City.fromJSON(object.city) : undefined,
58
- mediaFiles: globalThis.Array.isArray(object?.mediaFiles)
59
- ? object.mediaFiles.map((e) => File.fromJSON(e))
60
- : [],
61
- students: isSet(object.students) ? globalThis.Number(object.students) : undefined,
62
- studentsInternational: isSet(object.studentsInternational)
63
- ? globalThis.Number(object.studentsInternational)
64
- : undefined,
65
- academicStaff: isSet(object.academicStaff) ? globalThis.Number(object.academicStaff) : undefined,
66
- femaleStudents: isSet(object.femaleStudents) ? globalThis.Number(object.femaleStudents) : undefined,
67
- fundingType: isSet(object.fundingType) ? globalThis.String(object.fundingType) : undefined,
68
- servicesLibrary: isSet(object.servicesLibrary) ? globalThis.String(object.servicesLibrary) : undefined,
69
- studentLifeSports: isSet(object.studentLifeSports) ? globalThis.String(object.studentLifeSports) : undefined,
70
- studentLifeAssociations: isSet(object.studentLifeAssociations)
71
- ? globalThis.String(object.studentLifeAssociations)
72
- : undefined,
73
- hasFiles: isSet(object.hasFiles) ? globalThis.Boolean(object.hasFiles) : false,
74
- studyCountPerPortal: globalThis.Array.isArray(object?.studyCountPerPortal)
75
- ? object.studyCountPerPortal.map((e) => StudyCountPerPortal.fromJSON(e))
76
- : [],
77
- rankings: isObject(object.rankings)
78
- ? Object.entries(object.rankings).reduce((acc, [key, value]) => {
79
- acc[globalThis.Number(key)] = Ranking.fromJSON(value);
80
- return acc;
81
- }, {})
82
- : {},
83
- services: isSet(object.services) ? globalThis.String(object.services) : undefined,
84
- accreditation: isSet(object.accreditation) ? globalThis.String(object.accreditation) : undefined,
85
- topOrganisation: isSet(object.topOrganisation) ? Organisation.fromJSON(object.topOrganisation) : undefined,
86
- venues: globalThis.Array.isArray(object?.venues)
87
- ? object.venues.map((e) => Venue.fromJSON(e))
88
- : [],
89
- linksHomepage: globalThis.Array.isArray(object?.linksHomepage)
90
- ? object.linksHomepage.map((e) => SocialLink.fromJSON(e))
91
- : [],
92
- studentLife: isSet(object.studentLife) ? globalThis.String(object.studentLife) : undefined,
93
- isOnlineOnly: isSet(object.isOnlineOnly) ? globalThis.Boolean(object.isOnlineOnly) : false,
94
- research: isSet(object.research) ? globalThis.String(object.research) : "",
95
- reviews: isSet(object.reviews) ? ReviewRating.fromJSON(object.reviews) : undefined,
96
- mostFavorableRanking: isSet(object.mostFavorableRanking)
97
- ? OrganisationRanking.fromJSON(object.mostFavorableRanking)
98
- : undefined,
99
- universityReviews: globalThis.Array.isArray(object?.universityReviews)
100
- ? object.universityReviews.map((e) => Review.fromJSON(e))
101
- : [],
102
- isGSSAWinner: isSet(object.isGSSAWinner) ? globalThis.Boolean(object.isGSSAWinner) : false,
103
- isPublicFunding: isSet(object.isPublicFunding) ? globalThis.Boolean(object.isPublicFunding) : false,
104
- isNonProfitFunding: isSet(object.isNonProfitFunding) ? globalThis.Boolean(object.isNonProfitFunding) : false,
105
- isForProfitFunding: isSet(object.isForProfitFunding) ? globalThis.Boolean(object.isForProfitFunding) : false,
106
- mostPositiveUniversityReview: isSet(object.mostPositiveUniversityReview)
107
- ? Review.fromJSON(object.mostPositiveUniversityReview)
108
- : undefined,
109
- country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
110
- mostCriticalUniversityReview: isSet(object.mostCriticalUniversityReview)
111
- ? Review.fromJSON(object.mostCriticalUniversityReview)
112
- : undefined,
113
- unibuddy: isSet(object.unibuddy) ? Unibuddy.fromJSON(object.unibuddy) : undefined,
114
- canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
115
- isTopOrganisation: isSet(object.isTopOrganisation) ? globalThis.Boolean(object.isTopOrganisation) : false,
116
- persistGlParamRefLink: isSet(object.persistGlParamRefLink)
117
- ? globalThis.Boolean(object.persistGlParamRefLink)
118
- : false,
119
- canShowReferralRegistrationLock: isSet(object.canShowReferralRegistrationLock)
120
- ? globalThis.Boolean(object.canShowReferralRegistrationLock)
121
- : false,
122
- virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
123
- virtualName: isSet(object.virtualName) ? globalThis.String(object.virtualName) : "",
124
- commercialEntity: isSet(object.commercialEntity) ? CommercialEntity.fromJSON(object.commercialEntity) : undefined,
125
- canShowAon: isSet(object.canShowAon) ? globalThis.Boolean(object.canShowAon) : false,
126
- reviewCount: isSet(object.reviewCount) ? globalThis.Number(object.reviewCount) : 0,
127
- globalMetaRankingPosition: isSet(object.globalMetaRankingPosition)
128
- ? globalThis.Number(object.globalMetaRankingPosition)
129
- : undefined,
130
- countryMetaRankingPosition: isSet(object.countryMetaRankingPosition)
131
- ? globalThis.Number(object.countryMetaRankingPosition)
132
- : undefined,
133
- globalMetaRankingPositionPercentage: isSet(object.globalMetaRankingPositionPercentage)
134
- ? globalThis.String(object.globalMetaRankingPositionPercentage)
135
- : undefined,
136
- countryMetaRankingPositionPercentage: isSet(object.countryMetaRankingPositionPercentage)
137
- ? globalThis.String(object.countryMetaRankingPositionPercentage)
138
- : undefined,
139
- };
140
- },
141
- toJSON(message) {
142
- const obj = {};
143
- if (message.id !== 0) {
144
- obj.id = Math.round(message.id);
145
- }
146
- if (message.topOrganisationId !== 0) {
147
- obj.topOrganisationId = Math.round(message.topOrganisationId);
148
- }
149
- if (message.name !== undefined) {
150
- obj.name = message.name;
151
- }
152
- if (message.amountOfProgrammes !== 0) {
153
- obj.amountOfProgrammes = Math.round(message.amountOfProgrammes);
154
- }
155
- if (message.logo !== undefined) {
156
- obj.logo = File.toJSON(message.logo);
157
- }
158
- if (message.hasLogo !== false) {
159
- obj.hasLogo = message.hasLogo;
160
- }
161
- if (message.squareLogo !== undefined) {
162
- obj.squareLogo = File.toJSON(message.squareLogo);
163
- }
164
- if (message.hasSquareLogo !== false) {
165
- obj.hasSquareLogo = message.hasSquareLogo;
166
- }
167
- if (message.organisationLink !== undefined) {
168
- obj.organisationLink = Link.toJSON(message.organisationLink);
169
- }
170
- if (message.summary !== undefined) {
171
- obj.summary = message.summary;
172
- }
173
- if (message.isPublished !== false) {
174
- obj.isPublished = message.isPublished;
175
- }
176
- if (message.longDescription !== undefined) {
177
- obj.longDescription = message.longDescription;
178
- }
179
- if (message.shortDescription !== undefined) {
180
- obj.shortDescription = message.shortDescription;
181
- }
182
- if (message.description !== undefined) {
183
- obj.description = message.description;
184
- }
185
- if (message.trafficSourceForwardingMethod !== undefined) {
186
- obj.trafficSourceForwardingMethod = message.trafficSourceForwardingMethod;
187
- }
188
- if (message.links?.length) {
189
- obj.links = message.links.map((e) => SocialLink.toJSON(e));
190
- }
191
- if (message.promo !== undefined) {
192
- obj.promo = message.promo;
193
- }
194
- if (message.canonical !== undefined) {
195
- obj.canonical = message.canonical;
196
- }
197
- if (message.aboutHistory !== undefined) {
198
- obj.aboutHistory = message.aboutHistory;
199
- }
200
- if (message.aboutEducation !== undefined) {
201
- obj.aboutEducation = message.aboutEducation;
202
- }
203
- if (message.aboutResearch !== undefined) {
204
- obj.aboutResearch = message.aboutResearch;
205
- }
206
- if (message.aboutCareer !== undefined) {
207
- obj.aboutCareer = message.aboutCareer;
208
- }
209
- if (message.servicesHousing !== undefined) {
210
- obj.servicesHousing = message.servicesHousing;
211
- }
212
- if (message.servicesStudent !== undefined) {
213
- obj.servicesStudent = message.servicesStudent;
214
- }
215
- if (message.servicesICT !== undefined) {
216
- obj.servicesICT = message.servicesICT;
217
- }
218
- if (message.servicesMedical !== undefined) {
219
- obj.servicesMedical = message.servicesMedical;
220
- }
221
- if (message.studentLifeCampus !== undefined) {
222
- obj.studentLifeCampus = message.studentLifeCampus;
223
- }
224
- if (message.cover !== undefined) {
225
- obj.cover = File.toJSON(message.cover);
226
- }
227
- if (message.longitude !== undefined) {
228
- obj.longitude = message.longitude;
229
- }
230
- if (message.latitude !== undefined) {
231
- obj.latitude = message.latitude;
232
- }
233
- if (message.reasons?.length) {
234
- obj.reasons = message.reasons;
235
- }
236
- if (message.city !== undefined) {
237
- obj.city = City.toJSON(message.city);
238
- }
239
- if (message.mediaFiles?.length) {
240
- obj.mediaFiles = message.mediaFiles.map((e) => File.toJSON(e));
241
- }
242
- if (message.students !== undefined) {
243
- obj.students = Math.round(message.students);
244
- }
245
- if (message.studentsInternational !== undefined) {
246
- obj.studentsInternational = Math.round(message.studentsInternational);
247
- }
248
- if (message.academicStaff !== undefined) {
249
- obj.academicStaff = Math.round(message.academicStaff);
250
- }
251
- if (message.femaleStudents !== undefined) {
252
- obj.femaleStudents = Math.round(message.femaleStudents);
253
- }
254
- if (message.fundingType !== undefined) {
255
- obj.fundingType = message.fundingType;
256
- }
257
- if (message.servicesLibrary !== undefined) {
258
- obj.servicesLibrary = message.servicesLibrary;
259
- }
260
- if (message.studentLifeSports !== undefined) {
261
- obj.studentLifeSports = message.studentLifeSports;
262
- }
263
- if (message.studentLifeAssociations !== undefined) {
264
- obj.studentLifeAssociations = message.studentLifeAssociations;
265
- }
266
- if (message.hasFiles !== false) {
267
- obj.hasFiles = message.hasFiles;
268
- }
269
- if (message.studyCountPerPortal?.length) {
270
- obj.studyCountPerPortal = message.studyCountPerPortal.map((e) => StudyCountPerPortal.toJSON(e));
271
- }
272
- if (message.rankings) {
273
- const entries = Object.entries(message.rankings);
274
- if (entries.length > 0) {
275
- obj.rankings = {};
276
- entries.forEach(([k, v]) => {
277
- obj.rankings[k] = Ranking.toJSON(v);
278
- });
279
- }
280
- }
281
- if (message.services !== undefined) {
282
- obj.services = message.services;
283
- }
284
- if (message.accreditation !== undefined) {
285
- obj.accreditation = message.accreditation;
286
- }
287
- if (message.topOrganisation !== undefined) {
288
- obj.topOrganisation = Organisation.toJSON(message.topOrganisation);
289
- }
290
- if (message.venues?.length) {
291
- obj.venues = message.venues.map((e) => Venue.toJSON(e));
292
- }
293
- if (message.linksHomepage?.length) {
294
- obj.linksHomepage = message.linksHomepage.map((e) => SocialLink.toJSON(e));
295
- }
296
- if (message.studentLife !== undefined) {
297
- obj.studentLife = message.studentLife;
298
- }
299
- if (message.isOnlineOnly !== false) {
300
- obj.isOnlineOnly = message.isOnlineOnly;
301
- }
302
- if (message.research !== "") {
303
- obj.research = message.research;
304
- }
305
- if (message.reviews !== undefined) {
306
- obj.reviews = ReviewRating.toJSON(message.reviews);
307
- }
308
- if (message.mostFavorableRanking !== undefined) {
309
- obj.mostFavorableRanking = OrganisationRanking.toJSON(message.mostFavorableRanking);
310
- }
311
- if (message.universityReviews?.length) {
312
- obj.universityReviews = message.universityReviews.map((e) => Review.toJSON(e));
313
- }
314
- if (message.isGSSAWinner !== false) {
315
- obj.isGSSAWinner = message.isGSSAWinner;
316
- }
317
- if (message.isPublicFunding !== false) {
318
- obj.isPublicFunding = message.isPublicFunding;
319
- }
320
- if (message.isNonProfitFunding !== false) {
321
- obj.isNonProfitFunding = message.isNonProfitFunding;
322
- }
323
- if (message.isForProfitFunding !== false) {
324
- obj.isForProfitFunding = message.isForProfitFunding;
325
- }
326
- if (message.mostPositiveUniversityReview !== undefined) {
327
- obj.mostPositiveUniversityReview = Review.toJSON(message.mostPositiveUniversityReview);
328
- }
329
- if (message.country !== undefined) {
330
- obj.country = Country.toJSON(message.country);
331
- }
332
- if (message.mostCriticalUniversityReview !== undefined) {
333
- obj.mostCriticalUniversityReview = Review.toJSON(message.mostCriticalUniversityReview);
334
- }
335
- if (message.unibuddy !== undefined) {
336
- obj.unibuddy = Unibuddy.toJSON(message.unibuddy);
337
- }
338
- if (message.canBeIndexed !== false) {
339
- obj.canBeIndexed = message.canBeIndexed;
340
- }
341
- if (message.isTopOrganisation !== false) {
342
- obj.isTopOrganisation = message.isTopOrganisation;
343
- }
344
- if (message.persistGlParamRefLink !== false) {
345
- obj.persistGlParamRefLink = message.persistGlParamRefLink;
346
- }
347
- if (message.canShowReferralRegistrationLock !== false) {
348
- obj.canShowReferralRegistrationLock = message.canShowReferralRegistrationLock;
349
- }
350
- if (message.virtualPath !== "") {
351
- obj.virtualPath = message.virtualPath;
352
- }
353
- if (message.virtualName !== "") {
354
- obj.virtualName = message.virtualName;
355
- }
356
- if (message.commercialEntity !== undefined) {
357
- obj.commercialEntity = CommercialEntity.toJSON(message.commercialEntity);
358
- }
359
- if (message.canShowAon !== false) {
360
- obj.canShowAon = message.canShowAon;
361
- }
362
- if (message.reviewCount !== 0) {
363
- obj.reviewCount = Math.round(message.reviewCount);
364
- }
365
- if (message.globalMetaRankingPosition !== undefined) {
366
- obj.globalMetaRankingPosition = Math.round(message.globalMetaRankingPosition);
367
- }
368
- if (message.countryMetaRankingPosition !== undefined) {
369
- obj.countryMetaRankingPosition = Math.round(message.countryMetaRankingPosition);
370
- }
371
- if (message.globalMetaRankingPositionPercentage !== undefined) {
372
- obj.globalMetaRankingPositionPercentage = message.globalMetaRankingPositionPercentage;
373
- }
374
- if (message.countryMetaRankingPositionPercentage !== undefined) {
375
- obj.countryMetaRankingPositionPercentage = message.countryMetaRankingPositionPercentage;
376
- }
377
- return obj;
378
- },
379
- };
380
- export const Organisation_RankingsEntry = {
381
- fromJSON(object) {
382
- return {
383
- key: isSet(object.key) ? globalThis.Number(object.key) : 0,
384
- value: isSet(object.value) ? Ranking.fromJSON(object.value) : undefined,
385
- };
386
- },
387
- toJSON(message) {
388
- const obj = {};
389
- if (message.key !== 0) {
390
- obj.key = Math.round(message.key);
391
- }
392
- if (message.value !== undefined) {
393
- obj.value = Ranking.toJSON(message.value);
394
- }
395
- return obj;
396
- },
397
- };
398
- export const StudyCountPerPortal = {
399
- fromJSON(object) {
400
- return {
401
- portal: isSet(object.portal) ? globalThis.String(object.portal) : "",
402
- studyCount: isSet(object.studyCount) ? globalThis.Number(object.studyCount) : 0,
403
- };
404
- },
405
- toJSON(message) {
406
- const obj = {};
407
- if (message.portal !== "") {
408
- obj.portal = message.portal;
409
- }
410
- if (message.studyCount !== 0) {
411
- obj.studyCount = Math.round(message.studyCount);
412
- }
413
- return obj;
414
- },
415
- };
416
- export const Venue = {
417
- fromJSON(object) {
418
- return {
419
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
420
- cities: globalThis.Array.isArray(object?.cities) ? object.cities.map((e) => City.fromJSON(e)) : [],
421
- };
422
- },
423
- toJSON(message) {
424
- const obj = {};
425
- if (message.id !== 0) {
426
- obj.id = Math.round(message.id);
427
- }
428
- if (message.cities?.length) {
429
- obj.cities = message.cities.map((e) => City.toJSON(e));
430
- }
431
- return obj;
432
- },
433
- };
434
- export const City = {
435
- fromJSON(object) {
436
- return {
437
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
438
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
439
- amountOfProgrammes: isSet(object.amountOfProgrammes) ? globalThis.Number(object.amountOfProgrammes) : 0,
440
- cityLink: isSet(object.cityLink) ? Link.fromJSON(object.cityLink) : undefined,
441
- organisations: globalThis.Array.isArray(object?.organisations)
442
- ? object.organisations.map((e) => Organisation.fromJSON(e))
443
- : [],
444
- liveIn: isSet(object.liveIn) ? globalThis.String(object.liveIn) : undefined,
445
- atmosphere: isSet(object.atmosphere) ? globalThis.String(object.atmosphere) : undefined,
446
- climate: isSet(object.climate) ? globalThis.String(object.climate) : undefined,
447
- accommodationCosts: isSet(object.accommodationCosts) ? globalThis.String(object.accommodationCosts) : undefined,
448
- livingCostsDescription: isSet(object.livingCostsDescription)
449
- ? globalThis.String(object.livingCostsDescription)
450
- : undefined,
451
- students: isSet(object.students) ? globalThis.Number(object.students) : undefined,
452
- population: isSet(object.population) ? globalThis.Number(object.population) : undefined,
453
- livingCostsMin: isSet(object.livingCostsMin) ? globalThis.Number(object.livingCostsMin) : undefined,
454
- livingCostsMax: isSet(object.livingCostsMax) ? globalThis.Number(object.livingCostsMax) : undefined,
455
- currency: isSet(object.currency) ? globalThis.String(object.currency) : undefined,
456
- studyIn: isSet(object.studyIn) ? globalThis.String(object.studyIn) : undefined,
457
- country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
458
- opportunities: isSet(object.opportunities) ? globalThis.String(object.opportunities) : undefined,
459
- longitude: isSet(object.longitude) ? globalThis.String(object.longitude) : undefined,
460
- latitude: isSet(object.latitude) ? globalThis.String(object.latitude) : undefined,
461
- organisationCount: isSet(object.organisationCount) ? globalThis.Number(object.organisationCount) : 0,
462
- hasOrganisations: isSet(object.hasOrganisations) ? globalThis.Boolean(object.hasOrganisations) : false,
463
- summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
464
- area: isSet(object.area) ? Area.fromJSON(object.area) : undefined,
465
- hasCover: isSet(object.hasCover) ? globalThis.Boolean(object.hasCover) : false,
466
- cover: isSet(object.cover) ? File.fromJSON(object.cover) : undefined,
467
- canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
468
- };
469
- },
470
- toJSON(message) {
471
- const obj = {};
472
- if (message.id !== 0) {
473
- obj.id = Math.round(message.id);
474
- }
475
- if (message.name !== undefined) {
476
- obj.name = message.name;
477
- }
478
- if (message.amountOfProgrammes !== 0) {
479
- obj.amountOfProgrammes = Math.round(message.amountOfProgrammes);
480
- }
481
- if (message.cityLink !== undefined) {
482
- obj.cityLink = Link.toJSON(message.cityLink);
483
- }
484
- if (message.organisations?.length) {
485
- obj.organisations = message.organisations.map((e) => Organisation.toJSON(e));
486
- }
487
- if (message.liveIn !== undefined) {
488
- obj.liveIn = message.liveIn;
489
- }
490
- if (message.atmosphere !== undefined) {
491
- obj.atmosphere = message.atmosphere;
492
- }
493
- if (message.climate !== undefined) {
494
- obj.climate = message.climate;
495
- }
496
- if (message.accommodationCosts !== undefined) {
497
- obj.accommodationCosts = message.accommodationCosts;
498
- }
499
- if (message.livingCostsDescription !== undefined) {
500
- obj.livingCostsDescription = message.livingCostsDescription;
501
- }
502
- if (message.students !== undefined) {
503
- obj.students = Math.round(message.students);
504
- }
505
- if (message.population !== undefined) {
506
- obj.population = Math.round(message.population);
507
- }
508
- if (message.livingCostsMin !== undefined) {
509
- obj.livingCostsMin = Math.round(message.livingCostsMin);
510
- }
511
- if (message.livingCostsMax !== undefined) {
512
- obj.livingCostsMax = Math.round(message.livingCostsMax);
513
- }
514
- if (message.currency !== undefined) {
515
- obj.currency = message.currency;
516
- }
517
- if (message.studyIn !== undefined) {
518
- obj.studyIn = message.studyIn;
519
- }
520
- if (message.country !== undefined) {
521
- obj.country = Country.toJSON(message.country);
522
- }
523
- if (message.opportunities !== undefined) {
524
- obj.opportunities = message.opportunities;
525
- }
526
- if (message.longitude !== undefined) {
527
- obj.longitude = message.longitude;
528
- }
529
- if (message.latitude !== undefined) {
530
- obj.latitude = message.latitude;
531
- }
532
- if (message.organisationCount !== 0) {
533
- obj.organisationCount = Math.round(message.organisationCount);
534
- }
535
- if (message.hasOrganisations !== false) {
536
- obj.hasOrganisations = message.hasOrganisations;
537
- }
538
- if (message.summary !== undefined) {
539
- obj.summary = message.summary;
540
- }
541
- if (message.area !== undefined) {
542
- obj.area = Area.toJSON(message.area);
543
- }
544
- if (message.hasCover !== false) {
545
- obj.hasCover = message.hasCover;
546
- }
547
- if (message.cover !== undefined) {
548
- obj.cover = File.toJSON(message.cover);
549
- }
550
- if (message.canBeIndexed !== false) {
551
- obj.canBeIndexed = message.canBeIndexed;
552
- }
553
- return obj;
554
- },
555
- };
556
- export const Country = {
557
- fromJSON(object) {
558
- return {
559
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
560
- name: isSet(object.name) ? globalThis.String(object.name) : "",
561
- isPremium: isSet(object.isPremium) ? globalThis.Boolean(object.isPremium) : false,
562
- homepageLink: isSet(object.homepageLink) ? globalThis.String(object.homepageLink) : "",
563
- countryLink: isSet(object.countryLink) ? Link.fromJSON(object.countryLink) : undefined,
564
- whyStudyHere: isSet(object.whyStudyHere) ? globalThis.String(object.whyStudyHere) : undefined,
565
- practicalInfo: isSet(object.practicalInfo) ? globalThis.String(object.practicalInfo) : undefined,
566
- mayShowGallery: isSet(object.mayShowGallery) ? globalThis.Boolean(object.mayShowGallery) : false,
567
- photosAndVideos: globalThis.Array.isArray(object?.photosAndVideos)
568
- ? object.photosAndVideos.map((e) => File.fromJSON(e))
569
- : [],
570
- researchCareer: isSet(object.researchCareer) ? globalThis.String(object.researchCareer) : undefined,
571
- career: isSet(object.career) ? globalThis.String(object.career) : undefined,
572
- studentLife: isSet(object.studentLife) ? globalThis.String(object.studentLife) : undefined,
573
- regulations: isSet(object.regulations) ? globalThis.String(object.regulations) : undefined,
574
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
575
- longDescription: isSet(object.longDescription) ? globalThis.String(object.longDescription) : undefined,
576
- whyStudyIn: isSet(object.whyStudyIn) ? globalThis.String(object.whyStudyIn) : undefined,
577
- culture: isSet(object.culture) ? globalThis.String(object.culture) : undefined,
578
- chooseUniversity: isSet(object.chooseUniversity) ? globalThis.String(object.chooseUniversity) : undefined,
579
- tuitionFees: isSet(object.tuitionFees) ? globalThis.String(object.tuitionFees) : undefined,
580
- studyForFree: isSet(object.studyForFree) ? globalThis.String(object.studyForFree) : undefined,
581
- scholarships: isSet(object.scholarships) ? globalThis.String(object.scholarships) : undefined,
582
- applyForUniversity: isSet(object.applyForUniversity) ? globalThis.String(object.applyForUniversity) : undefined,
583
- languageRequirements: isSet(object.languageRequirements)
584
- ? globalThis.String(object.languageRequirements)
585
- : undefined,
586
- studentHousing: isSet(object.studentHousing) ? globalThis.String(object.studentHousing) : undefined,
587
- livingCost: isSet(object.livingCost) ? globalThis.String(object.livingCost) : undefined,
588
- workAndStudy: isSet(object.workAndStudy) ? globalThis.String(object.workAndStudy) : undefined,
589
- isSafe: isSet(object.isSafe) ? globalThis.String(object.isSafe) : undefined,
590
- studentInsurance: isSet(object.studentInsurance) ? globalThis.String(object.studentInsurance) : undefined,
591
- studentSupport: isSet(object.studentSupport) ? globalThis.String(object.studentSupport) : undefined,
592
- studentOrganisations: isSet(object.studentOrganisations)
593
- ? globalThis.String(object.studentOrganisations)
594
- : undefined,
595
- onBudget: isSet(object.onBudget) ? globalThis.String(object.onBudget) : undefined,
596
- learningLanguage: isSet(object.learningLanguage) ? globalThis.String(object.learningLanguage) : undefined,
597
- expatLiving: isSet(object.expatLiving) ? globalThis.String(object.expatLiving) : undefined,
598
- immigrationRules: isSet(object.immigrationRules) ? globalThis.String(object.immigrationRules) : undefined,
599
- jobOpportunities: isSet(object.jobOpportunities) ? globalThis.String(object.jobOpportunities) : undefined,
600
- continueStudies: isSet(object.continueStudies) ? globalThis.String(object.continueStudies) : undefined,
601
- faqs: isSet(object.faqs) ? globalThis.String(object.faqs) : undefined,
602
- hasInstitutes: isSet(object.hasInstitutes) ? globalThis.Boolean(object.hasInstitutes) : false,
603
- cities: globalThis.Array.isArray(object?.cities)
604
- ? object.cities.map((e) => City.fromJSON(e))
605
- : [],
606
- numberOfStudents: isSet(object.numberOfStudents) ? globalThis.Number(object.numberOfStudents) : undefined,
607
- studyIn: isSet(object.studyIn) ? globalThis.String(object.studyIn) : undefined,
608
- research: isSet(object.research) ? globalThis.String(object.research) : undefined,
609
- inhabitants: isSet(object.inhabitants) ? globalThis.Number(object.inhabitants) : undefined,
610
- officialLanguages: globalThis.Array.isArray(object?.officialLanguages)
611
- ? object.officialLanguages.map((e) => globalThis.String(e))
612
- : [],
613
- internationalStudents: isSet(object.internationalStudents)
614
- ? globalThis.Number(object.internationalStudents)
615
- : undefined,
616
- academicStartDateTime: isSet(object.academicStartDateTime)
617
- ? globalThis.Number(object.academicStartDateTime)
618
- : undefined,
619
- academicEndDateTime: isSet(object.academicEndDateTime)
620
- ? globalThis.Number(object.academicEndDateTime)
621
- : undefined,
622
- disciplineCards: globalThis.Array.isArray(object?.disciplineCards)
623
- ? object.disciplineCards.map((e) => Discipline.fromJSON(e))
624
- : [],
625
- rankedInstitutesCount: isSet(object.rankedInstitutesCount) ? globalThis.Number(object.rankedInstitutesCount) : 0,
626
- isoCode: isSet(object.isoCode) ? globalThis.String(object.isoCode) : "",
627
- programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : 0,
628
- demonym: isSet(object.demonym) ? globalThis.String(object.demonym) : undefined,
629
- canShowDemonym: isSet(object.canShowDemonym) ? globalThis.Boolean(object.canShowDemonym) : false,
630
- hasDegrees: isSet(object.hasDegrees) ? globalThis.Boolean(object.hasDegrees) : false,
631
- degrees: globalThis.Array.isArray(object?.degrees) ? object.degrees.map((e) => Degree.fromJSON(e)) : [],
632
- allDegrees: globalThis.Array.isArray(object?.allDegrees)
633
- ? object.allDegrees.map((e) => Degree.fromJSON(e))
634
- : [],
635
- isCountryUnitedStates: isSet(object.isCountryUnitedStates)
636
- ? globalThis.Boolean(object.isCountryUnitedStates)
637
- : false,
638
- title: isSet(object.title) ? globalThis.String(object.title) : "",
639
- image: isSet(object.image) ? File.fromJSON(object.image) : undefined,
640
- virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
641
- hasFiles: isSet(object.hasFiles) ? globalThis.Boolean(object.hasFiles) : false,
642
- mayShowIELTS: isSet(object.mayShowIELTS) ? globalThis.Boolean(object.mayShowIELTS) : false,
643
- summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
644
- canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
645
- areaPresent: isSet(object.areaPresent) ? globalThis.Boolean(object.areaPresent) : false,
646
- };
647
- },
648
- toJSON(message) {
649
- const obj = {};
650
- if (message.id !== 0) {
651
- obj.id = Math.round(message.id);
652
- }
653
- if (message.name !== "") {
654
- obj.name = message.name;
655
- }
656
- if (message.isPremium !== false) {
657
- obj.isPremium = message.isPremium;
658
- }
659
- if (message.homepageLink !== "") {
660
- obj.homepageLink = message.homepageLink;
661
- }
662
- if (message.countryLink !== undefined) {
663
- obj.countryLink = Link.toJSON(message.countryLink);
664
- }
665
- if (message.whyStudyHere !== undefined) {
666
- obj.whyStudyHere = message.whyStudyHere;
667
- }
668
- if (message.practicalInfo !== undefined) {
669
- obj.practicalInfo = message.practicalInfo;
670
- }
671
- if (message.mayShowGallery !== false) {
672
- obj.mayShowGallery = message.mayShowGallery;
673
- }
674
- if (message.photosAndVideos?.length) {
675
- obj.photosAndVideos = message.photosAndVideos.map((e) => File.toJSON(e));
676
- }
677
- if (message.researchCareer !== undefined) {
678
- obj.researchCareer = message.researchCareer;
679
- }
680
- if (message.career !== undefined) {
681
- obj.career = message.career;
682
- }
683
- if (message.studentLife !== undefined) {
684
- obj.studentLife = message.studentLife;
685
- }
686
- if (message.regulations !== undefined) {
687
- obj.regulations = message.regulations;
688
- }
689
- if (message.description !== undefined) {
690
- obj.description = message.description;
691
- }
692
- if (message.longDescription !== undefined) {
693
- obj.longDescription = message.longDescription;
694
- }
695
- if (message.whyStudyIn !== undefined) {
696
- obj.whyStudyIn = message.whyStudyIn;
697
- }
698
- if (message.culture !== undefined) {
699
- obj.culture = message.culture;
700
- }
701
- if (message.chooseUniversity !== undefined) {
702
- obj.chooseUniversity = message.chooseUniversity;
703
- }
704
- if (message.tuitionFees !== undefined) {
705
- obj.tuitionFees = message.tuitionFees;
706
- }
707
- if (message.studyForFree !== undefined) {
708
- obj.studyForFree = message.studyForFree;
709
- }
710
- if (message.scholarships !== undefined) {
711
- obj.scholarships = message.scholarships;
712
- }
713
- if (message.applyForUniversity !== undefined) {
714
- obj.applyForUniversity = message.applyForUniversity;
715
- }
716
- if (message.languageRequirements !== undefined) {
717
- obj.languageRequirements = message.languageRequirements;
718
- }
719
- if (message.studentHousing !== undefined) {
720
- obj.studentHousing = message.studentHousing;
721
- }
722
- if (message.livingCost !== undefined) {
723
- obj.livingCost = message.livingCost;
724
- }
725
- if (message.workAndStudy !== undefined) {
726
- obj.workAndStudy = message.workAndStudy;
727
- }
728
- if (message.isSafe !== undefined) {
729
- obj.isSafe = message.isSafe;
730
- }
731
- if (message.studentInsurance !== undefined) {
732
- obj.studentInsurance = message.studentInsurance;
733
- }
734
- if (message.studentSupport !== undefined) {
735
- obj.studentSupport = message.studentSupport;
736
- }
737
- if (message.studentOrganisations !== undefined) {
738
- obj.studentOrganisations = message.studentOrganisations;
739
- }
740
- if (message.onBudget !== undefined) {
741
- obj.onBudget = message.onBudget;
742
- }
743
- if (message.learningLanguage !== undefined) {
744
- obj.learningLanguage = message.learningLanguage;
745
- }
746
- if (message.expatLiving !== undefined) {
747
- obj.expatLiving = message.expatLiving;
748
- }
749
- if (message.immigrationRules !== undefined) {
750
- obj.immigrationRules = message.immigrationRules;
751
- }
752
- if (message.jobOpportunities !== undefined) {
753
- obj.jobOpportunities = message.jobOpportunities;
754
- }
755
- if (message.continueStudies !== undefined) {
756
- obj.continueStudies = message.continueStudies;
757
- }
758
- if (message.faqs !== undefined) {
759
- obj.faqs = message.faqs;
760
- }
761
- if (message.hasInstitutes !== false) {
762
- obj.hasInstitutes = message.hasInstitutes;
763
- }
764
- if (message.cities?.length) {
765
- obj.cities = message.cities.map((e) => City.toJSON(e));
766
- }
767
- if (message.numberOfStudents !== undefined) {
768
- obj.numberOfStudents = Math.round(message.numberOfStudents);
769
- }
770
- if (message.studyIn !== undefined) {
771
- obj.studyIn = message.studyIn;
772
- }
773
- if (message.research !== undefined) {
774
- obj.research = message.research;
775
- }
776
- if (message.inhabitants !== undefined) {
777
- obj.inhabitants = Math.round(message.inhabitants);
778
- }
779
- if (message.officialLanguages?.length) {
780
- obj.officialLanguages = message.officialLanguages;
781
- }
782
- if (message.internationalStudents !== undefined) {
783
- obj.internationalStudents = Math.round(message.internationalStudents);
784
- }
785
- if (message.academicStartDateTime !== undefined) {
786
- obj.academicStartDateTime = Math.round(message.academicStartDateTime);
787
- }
788
- if (message.academicEndDateTime !== undefined) {
789
- obj.academicEndDateTime = Math.round(message.academicEndDateTime);
790
- }
791
- if (message.disciplineCards?.length) {
792
- obj.disciplineCards = message.disciplineCards.map((e) => Discipline.toJSON(e));
793
- }
794
- if (message.rankedInstitutesCount !== 0) {
795
- obj.rankedInstitutesCount = Math.round(message.rankedInstitutesCount);
796
- }
797
- if (message.isoCode !== "") {
798
- obj.isoCode = message.isoCode;
799
- }
800
- if (message.programmeCount !== 0) {
801
- obj.programmeCount = Math.round(message.programmeCount);
802
- }
803
- if (message.demonym !== undefined) {
804
- obj.demonym = message.demonym;
805
- }
806
- if (message.canShowDemonym !== false) {
807
- obj.canShowDemonym = message.canShowDemonym;
808
- }
809
- if (message.hasDegrees !== false) {
810
- obj.hasDegrees = message.hasDegrees;
811
- }
812
- if (message.degrees?.length) {
813
- obj.degrees = message.degrees.map((e) => Degree.toJSON(e));
814
- }
815
- if (message.allDegrees?.length) {
816
- obj.allDegrees = message.allDegrees.map((e) => Degree.toJSON(e));
817
- }
818
- if (message.isCountryUnitedStates !== false) {
819
- obj.isCountryUnitedStates = message.isCountryUnitedStates;
820
- }
821
- if (message.title !== "") {
822
- obj.title = message.title;
823
- }
824
- if (message.image !== undefined) {
825
- obj.image = File.toJSON(message.image);
826
- }
827
- if (message.virtualPath !== "") {
828
- obj.virtualPath = message.virtualPath;
829
- }
830
- if (message.hasFiles !== false) {
831
- obj.hasFiles = message.hasFiles;
832
- }
833
- if (message.mayShowIELTS !== false) {
834
- obj.mayShowIELTS = message.mayShowIELTS;
835
- }
836
- if (message.summary !== undefined) {
837
- obj.summary = message.summary;
838
- }
839
- if (message.canBeIndexed !== false) {
840
- obj.canBeIndexed = message.canBeIndexed;
841
- }
842
- if (message.areaPresent !== false) {
843
- obj.areaPresent = message.areaPresent;
844
- }
845
- return obj;
846
- },
847
- };
848
- function isObject(value) {
849
- return typeof value === "object" && value !== null;
850
- }
851
- function isSet(value) {
852
- return value !== null && value !== undefined;
853
- }