@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,52 +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: Review.proto
6
- /* eslint-disable */
7
- import { Person } from "./Person";
8
- export const Review = {
9
- fromJSON(object) {
10
- return {
11
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
12
- rating: isSet(object.rating) ? globalThis.Number(object.rating) : 0,
13
- review: isSet(object.review) ? globalThis.String(object.review) : undefined,
14
- title: isSet(object.title) ? globalThis.String(object.title) : undefined,
15
- hasTitle: isSet(object.hasTitle) ? globalThis.Boolean(object.hasTitle) : false,
16
- author: isSet(object.author) ? Person.fromJSON(object.author) : undefined,
17
- startDate: isSet(object.startDate) ? globalThis.String(object.startDate) : "",
18
- endDate: isSet(object.endDate) ? globalThis.String(object.endDate) : "",
19
- };
20
- },
21
- toJSON(message) {
22
- const obj = {};
23
- if (message.id !== 0) {
24
- obj.id = Math.round(message.id);
25
- }
26
- if (message.rating !== 0) {
27
- obj.rating = message.rating;
28
- }
29
- if (message.review !== undefined) {
30
- obj.review = message.review;
31
- }
32
- if (message.title !== undefined) {
33
- obj.title = message.title;
34
- }
35
- if (message.hasTitle !== false) {
36
- obj.hasTitle = message.hasTitle;
37
- }
38
- if (message.author !== undefined) {
39
- obj.author = Person.toJSON(message.author);
40
- }
41
- if (message.startDate !== "") {
42
- obj.startDate = message.startDate;
43
- }
44
- if (message.endDate !== "") {
45
- obj.endDate = message.endDate;
46
- }
47
- return obj;
48
- },
49
- };
50
- function isSet(value) {
51
- return value !== null && value !== undefined;
52
- }
@@ -1,12 +0,0 @@
1
- export interface ReviewRating {
2
- average: number;
3
- quantity: number;
4
- averageStarRating: number;
5
- hasEnoughQuantity: boolean;
6
- }
7
- export declare const ReviewRating: MessageFns<ReviewRating>;
8
- interface MessageFns<T> {
9
- fromJSON(object: any): T;
10
- toJSON(message: T): unknown;
11
- }
12
- export {};
@@ -1,34 +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: ReviewRating.proto
6
- export const ReviewRating = {
7
- fromJSON(object) {
8
- return {
9
- average: isSet(object.average) ? globalThis.Number(object.average) : 0,
10
- quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0,
11
- averageStarRating: isSet(object.averageStarRating) ? globalThis.Number(object.averageStarRating) : 0,
12
- hasEnoughQuantity: isSet(object.hasEnoughQuantity) ? globalThis.Boolean(object.hasEnoughQuantity) : false,
13
- };
14
- },
15
- toJSON(message) {
16
- const obj = {};
17
- if (message.average !== 0) {
18
- obj.average = message.average;
19
- }
20
- if (message.quantity !== 0) {
21
- obj.quantity = Math.round(message.quantity);
22
- }
23
- if (message.averageStarRating !== 0) {
24
- obj.averageStarRating = message.averageStarRating;
25
- }
26
- if (message.hasEnoughQuantity !== false) {
27
- obj.hasEnoughQuantity = message.hasEnoughQuantity;
28
- }
29
- return obj;
30
- },
31
- };
32
- function isSet(value) {
33
- return value !== null && value !== undefined;
34
- }
@@ -1,10 +0,0 @@
1
- export interface RichText {
2
- contents: string;
3
- isRenderedAsWhitespace: boolean;
4
- }
5
- export declare const RichText: MessageFns<RichText>;
6
- interface MessageFns<T> {
7
- fromJSON(object: any): T;
8
- toJSON(message: T): unknown;
9
- }
10
- export {};
@@ -1,28 +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: RichText.proto
6
- export const RichText = {
7
- fromJSON(object) {
8
- return {
9
- contents: isSet(object.contents) ? globalThis.String(object.contents) : "",
10
- isRenderedAsWhitespace: isSet(object.isRenderedAsWhitespace)
11
- ? globalThis.Boolean(object.isRenderedAsWhitespace)
12
- : false,
13
- };
14
- },
15
- toJSON(message) {
16
- const obj = {};
17
- if (message.contents !== "") {
18
- obj.contents = message.contents;
19
- }
20
- if (message.isRenderedAsWhitespace !== false) {
21
- obj.isRenderedAsWhitespace = message.isRenderedAsWhitespace;
22
- }
23
- return obj;
24
- },
25
- };
26
- function isSet(value) {
27
- return value !== null && value !== undefined;
28
- }
@@ -1,21 +0,0 @@
1
- export interface SocialLink {
2
- id: number;
3
- description?: string | undefined;
4
- name?: string | undefined;
5
- url: string;
6
- trackedUrl: string;
7
- isHomepage: boolean;
8
- isFacebook: boolean;
9
- isTwitter: boolean;
10
- isYoutube: boolean;
11
- isInstagram: boolean;
12
- isLinkedIn: boolean;
13
- isSocial: boolean;
14
- isMedia: boolean;
15
- }
16
- export declare const SocialLink: MessageFns<SocialLink>;
17
- interface MessageFns<T> {
18
- fromJSON(object: any): T;
19
- toJSON(message: T): unknown;
20
- }
21
- export {};
@@ -1,70 +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: SocialLink.proto
6
- export const SocialLink = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
11
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
12
- url: isSet(object.url) ? globalThis.String(object.url) : "",
13
- trackedUrl: isSet(object.trackedUrl) ? globalThis.String(object.trackedUrl) : "",
14
- isHomepage: isSet(object.isHomepage) ? globalThis.Boolean(object.isHomepage) : false,
15
- isFacebook: isSet(object.isFacebook) ? globalThis.Boolean(object.isFacebook) : false,
16
- isTwitter: isSet(object.isTwitter) ? globalThis.Boolean(object.isTwitter) : false,
17
- isYoutube: isSet(object.isYoutube) ? globalThis.Boolean(object.isYoutube) : false,
18
- isInstagram: isSet(object.isInstagram) ? globalThis.Boolean(object.isInstagram) : false,
19
- isLinkedIn: isSet(object.isLinkedIn) ? globalThis.Boolean(object.isLinkedIn) : false,
20
- isSocial: isSet(object.isSocial) ? globalThis.Boolean(object.isSocial) : false,
21
- isMedia: isSet(object.isMedia) ? globalThis.Boolean(object.isMedia) : false,
22
- };
23
- },
24
- toJSON(message) {
25
- const obj = {};
26
- if (message.id !== 0) {
27
- obj.id = Math.round(message.id);
28
- }
29
- if (message.description !== undefined) {
30
- obj.description = message.description;
31
- }
32
- if (message.name !== undefined) {
33
- obj.name = message.name;
34
- }
35
- if (message.url !== "") {
36
- obj.url = message.url;
37
- }
38
- if (message.trackedUrl !== "") {
39
- obj.trackedUrl = message.trackedUrl;
40
- }
41
- if (message.isHomepage !== false) {
42
- obj.isHomepage = message.isHomepage;
43
- }
44
- if (message.isFacebook !== false) {
45
- obj.isFacebook = message.isFacebook;
46
- }
47
- if (message.isTwitter !== false) {
48
- obj.isTwitter = message.isTwitter;
49
- }
50
- if (message.isYoutube !== false) {
51
- obj.isYoutube = message.isYoutube;
52
- }
53
- if (message.isInstagram !== false) {
54
- obj.isInstagram = message.isInstagram;
55
- }
56
- if (message.isLinkedIn !== false) {
57
- obj.isLinkedIn = message.isLinkedIn;
58
- }
59
- if (message.isSocial !== false) {
60
- obj.isSocial = message.isSocial;
61
- }
62
- if (message.isMedia !== false) {
63
- obj.isMedia = message.isMedia;
64
- }
65
- return obj;
66
- },
67
- };
68
- function isSet(value) {
69
- return value !== null && value !== undefined;
70
- }
@@ -1,13 +0,0 @@
1
- import { Deadline } from "./Deadline";
2
- export interface StartDate {
3
- isPassed: boolean;
4
- date: string;
5
- isApplyingAnytime: boolean;
6
- deadlines: Deadline[];
7
- }
8
- export declare const StartDate: MessageFns<StartDate>;
9
- interface MessageFns<T> {
10
- fromJSON(object: any): T;
11
- toJSON(message: T): unknown;
12
- }
13
- export {};
@@ -1,38 +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: StartDate.proto
6
- /* eslint-disable */
7
- import { Deadline } from "./Deadline";
8
- export const StartDate = {
9
- fromJSON(object) {
10
- return {
11
- isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
12
- date: isSet(object.date) ? globalThis.String(object.date) : "",
13
- isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
14
- deadlines: globalThis.Array.isArray(object?.deadlines)
15
- ? object.deadlines.map((e) => Deadline.fromJSON(e))
16
- : [],
17
- };
18
- },
19
- toJSON(message) {
20
- const obj = {};
21
- if (message.isPassed !== false) {
22
- obj.isPassed = message.isPassed;
23
- }
24
- if (message.date !== "") {
25
- obj.date = message.date;
26
- }
27
- if (message.isApplyingAnytime !== false) {
28
- obj.isApplyingAnytime = message.isApplyingAnytime;
29
- }
30
- if (message.deadlines?.length) {
31
- obj.deadlines = message.deadlines.map((e) => Deadline.toJSON(e));
32
- }
33
- return obj;
34
- },
35
- };
36
- function isSet(value) {
37
- return value !== null && value !== undefined;
38
- }
@@ -1,17 +0,0 @@
1
- import { Deadline } from "./Deadline";
2
- import { StartDate } from "./StartDate";
3
- export interface Timing {
4
- type: string;
5
- isStartingAnytime: boolean;
6
- startDate: StartDate | undefined;
7
- canShowStartDate: boolean;
8
- isApplyingAnytime: boolean;
9
- deadline: Deadline | undefined;
10
- canShowDeadline: boolean;
11
- }
12
- export declare const Timing: MessageFns<Timing>;
13
- interface MessageFns<T> {
14
- fromJSON(object: any): T;
15
- toJSON(message: T): unknown;
16
- }
17
- export {};
@@ -1,49 +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: Timing.proto
6
- /* eslint-disable */
7
- import { Deadline } from "./Deadline";
8
- import { StartDate } from "./StartDate";
9
- export const Timing = {
10
- fromJSON(object) {
11
- return {
12
- type: isSet(object.type) ? globalThis.String(object.type) : "",
13
- isStartingAnytime: isSet(object.isStartingAnytime) ? globalThis.Boolean(object.isStartingAnytime) : false,
14
- startDate: isSet(object.startDate) ? StartDate.fromJSON(object.startDate) : undefined,
15
- canShowStartDate: isSet(object.canShowStartDate) ? globalThis.Boolean(object.canShowStartDate) : false,
16
- isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
17
- deadline: isSet(object.deadline) ? Deadline.fromJSON(object.deadline) : undefined,
18
- canShowDeadline: isSet(object.canShowDeadline) ? globalThis.Boolean(object.canShowDeadline) : false,
19
- };
20
- },
21
- toJSON(message) {
22
- const obj = {};
23
- if (message.type !== "") {
24
- obj.type = message.type;
25
- }
26
- if (message.isStartingAnytime !== false) {
27
- obj.isStartingAnytime = message.isStartingAnytime;
28
- }
29
- if (message.startDate !== undefined) {
30
- obj.startDate = StartDate.toJSON(message.startDate);
31
- }
32
- if (message.canShowStartDate !== false) {
33
- obj.canShowStartDate = message.canShowStartDate;
34
- }
35
- if (message.isApplyingAnytime !== false) {
36
- obj.isApplyingAnytime = message.isApplyingAnytime;
37
- }
38
- if (message.deadline !== undefined) {
39
- obj.deadline = Deadline.toJSON(message.deadline);
40
- }
41
- if (message.canShowDeadline !== false) {
42
- obj.canShowDeadline = message.canShowDeadline;
43
- }
44
- return obj;
45
- },
46
- };
47
- function isSet(value) {
48
- return value !== null && value !== undefined;
49
- }
@@ -1,10 +0,0 @@
1
- export interface Topic {
2
- id: number;
3
- name: string;
4
- }
5
- export declare const Topic: MessageFns<Topic>;
6
- interface MessageFns<T> {
7
- fromJSON(object: any): T;
8
- toJSON(message: T): unknown;
9
- }
10
- export {};
package/protobuf/Topic.js DELETED
@@ -1,26 +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: Topic.proto
6
- export const Topic = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
- name: isSet(object.name) ? globalThis.String(object.name) : "",
11
- };
12
- },
13
- toJSON(message) {
14
- const obj = {};
15
- if (message.id !== 0) {
16
- obj.id = Math.round(message.id);
17
- }
18
- if (message.name !== "") {
19
- obj.name = message.name;
20
- }
21
- return obj;
22
- },
23
- };
24
- function isSet(value) {
25
- return value !== null && value !== undefined;
26
- }
@@ -1,13 +0,0 @@
1
- import { Tracking } from "./Tracking";
2
- export interface TrackedLink {
3
- url: string;
4
- description: string;
5
- canShowDescription: boolean;
6
- tracking: Tracking | undefined;
7
- }
8
- export declare const TrackedLink: MessageFns<TrackedLink>;
9
- interface MessageFns<T> {
10
- fromJSON(object: any): T;
11
- toJSON(message: T): unknown;
12
- }
13
- export {};
@@ -1,36 +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: TrackedLink.proto
6
- /* eslint-disable */
7
- import { Tracking } from "./Tracking";
8
- export const TrackedLink = {
9
- fromJSON(object) {
10
- return {
11
- url: isSet(object.url) ? globalThis.String(object.url) : "",
12
- description: isSet(object.description) ? globalThis.String(object.description) : "",
13
- canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
14
- tracking: isSet(object.tracking) ? Tracking.fromJSON(object.tracking) : undefined,
15
- };
16
- },
17
- toJSON(message) {
18
- const obj = {};
19
- if (message.url !== "") {
20
- obj.url = message.url;
21
- }
22
- if (message.description !== "") {
23
- obj.description = message.description;
24
- }
25
- if (message.canShowDescription !== false) {
26
- obj.canShowDescription = message.canShowDescription;
27
- }
28
- if (message.tracking !== undefined) {
29
- obj.tracking = Tracking.toJSON(message.tracking);
30
- }
31
- return obj;
32
- },
33
- };
34
- function isSet(value) {
35
- return value !== null && value !== undefined;
36
- }
@@ -1,18 +0,0 @@
1
- import { ClickTracking } from "./ClickTracking";
2
- export interface Tracking {
3
- id: number;
4
- clickTracking: ClickTracking | undefined;
5
- canShowClickTracking: boolean;
6
- action: string;
7
- type: string;
8
- description: string;
9
- label: string;
10
- extra: string;
11
- pgl: boolean;
12
- }
13
- export declare const Tracking: MessageFns<Tracking>;
14
- interface MessageFns<T> {
15
- fromJSON(object: any): T;
16
- toJSON(message: T): unknown;
17
- }
18
- export {};
@@ -1,58 +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: Tracking.proto
6
- /* eslint-disable */
7
- import { ClickTracking } from "./ClickTracking";
8
- export const Tracking = {
9
- fromJSON(object) {
10
- return {
11
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
12
- clickTracking: isSet(object.clickTracking) ? ClickTracking.fromJSON(object.clickTracking) : undefined,
13
- canShowClickTracking: isSet(object.canShowClickTracking)
14
- ? globalThis.Boolean(object.canShowClickTracking)
15
- : false,
16
- action: isSet(object.action) ? globalThis.String(object.action) : "",
17
- type: isSet(object.type) ? globalThis.String(object.type) : "",
18
- description: isSet(object.description) ? globalThis.String(object.description) : "",
19
- label: isSet(object.label) ? globalThis.String(object.label) : "",
20
- extra: isSet(object.extra) ? globalThis.String(object.extra) : "",
21
- pgl: isSet(object.pgl) ? globalThis.Boolean(object.pgl) : false,
22
- };
23
- },
24
- toJSON(message) {
25
- const obj = {};
26
- if (message.id !== 0) {
27
- obj.id = Math.round(message.id);
28
- }
29
- if (message.clickTracking !== undefined) {
30
- obj.clickTracking = ClickTracking.toJSON(message.clickTracking);
31
- }
32
- if (message.canShowClickTracking !== false) {
33
- obj.canShowClickTracking = message.canShowClickTracking;
34
- }
35
- if (message.action !== "") {
36
- obj.action = message.action;
37
- }
38
- if (message.type !== "") {
39
- obj.type = message.type;
40
- }
41
- if (message.description !== "") {
42
- obj.description = message.description;
43
- }
44
- if (message.label !== "") {
45
- obj.label = message.label;
46
- }
47
- if (message.extra !== "") {
48
- obj.extra = message.extra;
49
- }
50
- if (message.pgl !== false) {
51
- obj.pgl = message.pgl;
52
- }
53
- return obj;
54
- },
55
- };
56
- function isSet(value) {
57
- return value !== null && value !== undefined;
58
- }
@@ -1,13 +0,0 @@
1
- export interface TuitionFee {
2
- amount: number;
3
- currency: string;
4
- unit: string;
5
- originalAmount: number;
6
- originalUnit: string;
7
- }
8
- export declare const TuitionFee: MessageFns<TuitionFee>;
9
- interface MessageFns<T> {
10
- fromJSON(object: any): T;
11
- toJSON(message: T): unknown;
12
- }
13
- export {};
@@ -1,38 +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: TuitionFee.proto
6
- export const TuitionFee = {
7
- fromJSON(object) {
8
- return {
9
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
10
- currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
11
- unit: isSet(object.unit) ? globalThis.String(object.unit) : "",
12
- originalAmount: isSet(object.originalAmount) ? globalThis.Number(object.originalAmount) : 0,
13
- originalUnit: isSet(object.originalUnit) ? globalThis.String(object.originalUnit) : "",
14
- };
15
- },
16
- toJSON(message) {
17
- const obj = {};
18
- if (message.amount !== 0) {
19
- obj.amount = Math.round(message.amount);
20
- }
21
- if (message.currency !== "") {
22
- obj.currency = message.currency;
23
- }
24
- if (message.unit !== "") {
25
- obj.unit = message.unit;
26
- }
27
- if (message.originalAmount !== 0) {
28
- obj.originalAmount = Math.round(message.originalAmount);
29
- }
30
- if (message.originalUnit !== "") {
31
- obj.originalUnit = message.originalUnit;
32
- }
33
- return obj;
34
- },
35
- };
36
- function isSet(value) {
37
- return value !== null && value !== undefined;
38
- }
@@ -1,10 +0,0 @@
1
- export interface Unibuddy {
2
- id: string;
3
- isEnabled: boolean;
4
- }
5
- export declare const Unibuddy: MessageFns<Unibuddy>;
6
- interface MessageFns<T> {
7
- fromJSON(object: any): T;
8
- toJSON(message: T): unknown;
9
- }
10
- export {};
@@ -1,26 +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: Unibuddy.proto
6
- export const Unibuddy = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.String(object.id) : "",
10
- isEnabled: isSet(object.isEnabled) ? globalThis.Boolean(object.isEnabled) : false,
11
- };
12
- },
13
- toJSON(message) {
14
- const obj = {};
15
- if (message.id !== "") {
16
- obj.id = message.id;
17
- }
18
- if (message.isEnabled !== false) {
19
- obj.isEnabled = message.isEnabled;
20
- }
21
- return obj;
22
- },
23
- };
24
- function isSet(value) {
25
- return value !== null && value !== undefined;
26
- }
@@ -1,45 +0,0 @@
1
- /**
2
- * @file Automatically generated by barrelsby.
3
- */
4
- export * from "./Area";
5
- export * from "./Article";
6
- export * from "./Body";
7
- export * from "./CampaignInformation";
8
- export * from "./ClickTracking";
9
- export * from "./CommercialEntity";
10
- export * from "./Cover";
11
- export * from "./Deadline";
12
- export * from "./Degree";
13
- export * from "./Description";
14
- export * from "./Discipline";
15
- export * from "./Duration";
16
- export * from "./EnglishRequirement";
17
- export * from "./EssentialInformation";
18
- export * from "./File";
19
- export * from "./GPARequirement";
20
- export * from "./InternalLink";
21
- export * from "./Link";
22
- export * from "./LivingCost";
23
- export * from "./Location";
24
- export * from "./Logo";
25
- export * from "./MiniProgrammeCard";
26
- export * from "./OptionalLink";
27
- export * from "./Organisation";
28
- export * from "./OrganisationInformation";
29
- export * from "./OrganisationRanking";
30
- export * from "./Person";
31
- export * from "./ProgrammeCard";
32
- export * from "./ProgrammeGrid";
33
- export * from "./Ranking";
34
- export * from "./RankingInstitute";
35
- export * from "./Review";
36
- export * from "./ReviewRating";
37
- export * from "./RichText";
38
- export * from "./SocialLink";
39
- export * from "./StartDate";
40
- export * from "./Timing";
41
- export * from "./Topic";
42
- export * from "./TrackedLink";
43
- export * from "./Tracking";
44
- export * from "./TuitionFee";
45
- export * from "./Unibuddy";