@studyportals/domain-client 7.0.1-beta.9 → 7.1.0

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