@studyportals/domain-client 7.0.1-beta.3 → 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 +5 -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
package/protobuf/Cover.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: Cover.proto
6
- export const Cover = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
- source: isSet(object.source) ? globalThis.String(object.source) : "",
11
- };
12
- },
13
- toJSON(message) {
14
- const obj = {};
15
- if (message.id !== 0) {
16
- obj.id = Math.round(message.id);
17
- }
18
- if (message.source !== "") {
19
- obj.source = message.source;
20
- }
21
- return obj;
22
- },
23
- };
24
- function isSet(value) {
25
- return value !== null && value !== undefined;
26
- }
@@ -1,11 +0,0 @@
1
- export interface Deadline {
2
- isPassed: boolean;
3
- date: string;
4
- type: string;
5
- }
6
- export declare const Deadline: MessageFns<Deadline>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,30 +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: Deadline.proto
6
- export const Deadline = {
7
- fromJSON(object) {
8
- return {
9
- isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
10
- date: isSet(object.date) ? globalThis.String(object.date) : "",
11
- type: isSet(object.type) ? globalThis.String(object.type) : "",
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.isPassed !== false) {
17
- obj.isPassed = message.isPassed;
18
- }
19
- if (message.date !== "") {
20
- obj.date = message.date;
21
- }
22
- if (message.type !== "") {
23
- obj.type = message.type;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,16 +0,0 @@
1
- export interface Degree {
2
- programmeCount?: number | undefined;
3
- title?: string | undefined;
4
- abbreviation?: string | undefined;
5
- id?: number | undefined;
6
- name?: string | undefined;
7
- description?: string | undefined;
8
- level?: string | undefined;
9
- degree?: string | undefined;
10
- }
11
- export declare const Degree: MessageFns<Degree>;
12
- interface MessageFns<T> {
13
- fromJSON(object: any): T;
14
- toJSON(message: T): unknown;
15
- }
16
- export {};
@@ -1,50 +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: Degree.proto
6
- export const Degree = {
7
- fromJSON(object) {
8
- return {
9
- programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : undefined,
10
- title: isSet(object.title) ? globalThis.String(object.title) : undefined,
11
- abbreviation: isSet(object.abbreviation) ? globalThis.String(object.abbreviation) : undefined,
12
- id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
13
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
14
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
15
- level: isSet(object.level) ? globalThis.String(object.level) : undefined,
16
- degree: isSet(object.degree) ? globalThis.String(object.degree) : undefined,
17
- };
18
- },
19
- toJSON(message) {
20
- const obj = {};
21
- if (message.programmeCount !== undefined) {
22
- obj.programmeCount = Math.round(message.programmeCount);
23
- }
24
- if (message.title !== undefined) {
25
- obj.title = message.title;
26
- }
27
- if (message.abbreviation !== undefined) {
28
- obj.abbreviation = message.abbreviation;
29
- }
30
- if (message.id !== undefined) {
31
- obj.id = Math.round(message.id);
32
- }
33
- if (message.name !== undefined) {
34
- obj.name = message.name;
35
- }
36
- if (message.description !== undefined) {
37
- obj.description = message.description;
38
- }
39
- if (message.level !== undefined) {
40
- obj.level = message.level;
41
- }
42
- if (message.degree !== undefined) {
43
- obj.degree = message.degree;
44
- }
45
- return obj;
46
- },
47
- };
48
- function isSet(value) {
49
- return value !== null && value !== undefined;
50
- }
@@ -1,16 +0,0 @@
1
- import { Link } from "./Link";
2
- import { RichText } from "./RichText";
3
- export interface Description {
4
- name: string;
5
- description: RichText | undefined;
6
- searchLink: Link | undefined;
7
- pilsLink: Link | undefined;
8
- sblpLink: Link | undefined;
9
- onlineSBLPLink: Link | undefined;
10
- }
11
- export declare const Description: MessageFns<Description>;
12
- interface MessageFns<T> {
13
- fromJSON(object: any): T;
14
- toJSON(message: T): unknown;
15
- }
16
- export {};
@@ -1,45 +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: Description.proto
6
- /* eslint-disable */
7
- import { Link } from "./Link";
8
- import { RichText } from "./RichText";
9
- export const Description = {
10
- fromJSON(object) {
11
- return {
12
- name: isSet(object.name) ? globalThis.String(object.name) : "",
13
- description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
14
- searchLink: isSet(object.searchLink) ? Link.fromJSON(object.searchLink) : undefined,
15
- pilsLink: isSet(object.pilsLink) ? Link.fromJSON(object.pilsLink) : undefined,
16
- sblpLink: isSet(object.sblpLink) ? Link.fromJSON(object.sblpLink) : undefined,
17
- onlineSBLPLink: isSet(object.onlineSBLPLink) ? Link.fromJSON(object.onlineSBLPLink) : undefined,
18
- };
19
- },
20
- toJSON(message) {
21
- const obj = {};
22
- if (message.name !== "") {
23
- obj.name = message.name;
24
- }
25
- if (message.description !== undefined) {
26
- obj.description = RichText.toJSON(message.description);
27
- }
28
- if (message.searchLink !== undefined) {
29
- obj.searchLink = Link.toJSON(message.searchLink);
30
- }
31
- if (message.pilsLink !== undefined) {
32
- obj.pilsLink = Link.toJSON(message.pilsLink);
33
- }
34
- if (message.sblpLink !== undefined) {
35
- obj.sblpLink = Link.toJSON(message.sblpLink);
36
- }
37
- if (message.onlineSBLPLink !== undefined) {
38
- obj.onlineSBLPLink = Link.toJSON(message.onlineSBLPLink);
39
- }
40
- return obj;
41
- },
42
- };
43
- function isSet(value) {
44
- return value !== null && value !== undefined;
45
- }
@@ -1,26 +0,0 @@
1
- import { Description } from "./Description";
2
- import { EssentialInformation } from "./EssentialInformation";
3
- import { Link } from "./Link";
4
- export interface Discipline {
5
- id: number;
6
- name: string;
7
- title: string;
8
- summary?: string | undefined;
9
- icon: string;
10
- parentId?: number | undefined;
11
- oldVirtualPath?: string | undefined;
12
- canBeIndexed: boolean;
13
- descriptionText: string;
14
- promo?: string | undefined;
15
- parentName?: string | undefined;
16
- virtualPath: string;
17
- link: Link | undefined;
18
- description: Description | undefined;
19
- essentialInformation: EssentialInformation | undefined;
20
- }
21
- export declare const Discipline: MessageFns<Discipline>;
22
- interface MessageFns<T> {
23
- fromJSON(object: any): T;
24
- toJSON(message: T): unknown;
25
- }
26
- export {};
@@ -1,84 +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: Discipline.proto
6
- /* eslint-disable */
7
- import { Description } from "./Description";
8
- import { EssentialInformation } from "./EssentialInformation";
9
- import { Link } from "./Link";
10
- export const Discipline = {
11
- fromJSON(object) {
12
- return {
13
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
14
- name: isSet(object.name) ? globalThis.String(object.name) : "",
15
- title: isSet(object.title) ? globalThis.String(object.title) : "",
16
- summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
17
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
18
- parentId: isSet(object.parentId) ? globalThis.Number(object.parentId) : undefined,
19
- oldVirtualPath: isSet(object.oldVirtualPath) ? globalThis.String(object.oldVirtualPath) : undefined,
20
- canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
21
- descriptionText: isSet(object.descriptionText) ? globalThis.String(object.descriptionText) : "",
22
- promo: isSet(object.promo) ? globalThis.String(object.promo) : undefined,
23
- parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : undefined,
24
- virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
25
- link: isSet(object.link) ? Link.fromJSON(object.link) : undefined,
26
- description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
27
- essentialInformation: isSet(object.essentialInformation)
28
- ? EssentialInformation.fromJSON(object.essentialInformation)
29
- : undefined,
30
- };
31
- },
32
- toJSON(message) {
33
- const obj = {};
34
- if (message.id !== 0) {
35
- obj.id = Math.round(message.id);
36
- }
37
- if (message.name !== "") {
38
- obj.name = message.name;
39
- }
40
- if (message.title !== "") {
41
- obj.title = message.title;
42
- }
43
- if (message.summary !== undefined) {
44
- obj.summary = message.summary;
45
- }
46
- if (message.icon !== "") {
47
- obj.icon = message.icon;
48
- }
49
- if (message.parentId !== undefined) {
50
- obj.parentId = Math.round(message.parentId);
51
- }
52
- if (message.oldVirtualPath !== undefined) {
53
- obj.oldVirtualPath = message.oldVirtualPath;
54
- }
55
- if (message.canBeIndexed !== false) {
56
- obj.canBeIndexed = message.canBeIndexed;
57
- }
58
- if (message.descriptionText !== "") {
59
- obj.descriptionText = message.descriptionText;
60
- }
61
- if (message.promo !== undefined) {
62
- obj.promo = message.promo;
63
- }
64
- if (message.parentName !== undefined) {
65
- obj.parentName = message.parentName;
66
- }
67
- if (message.virtualPath !== "") {
68
- obj.virtualPath = message.virtualPath;
69
- }
70
- if (message.link !== undefined) {
71
- obj.link = Link.toJSON(message.link);
72
- }
73
- if (message.description !== undefined) {
74
- obj.description = Description.toJSON(message.description);
75
- }
76
- if (message.essentialInformation !== undefined) {
77
- obj.essentialInformation = EssentialInformation.toJSON(message.essentialInformation);
78
- }
79
- return obj;
80
- },
81
- };
82
- function isSet(value) {
83
- return value !== null && value !== undefined;
84
- }
@@ -1,11 +0,0 @@
1
- export interface Duration {
2
- amount: number;
3
- period: string;
4
- type: string;
5
- }
6
- export declare const Duration: MessageFns<Duration>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,30 +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: Duration.proto
6
- export const Duration = {
7
- fromJSON(object) {
8
- return {
9
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
10
- period: isSet(object.period) ? globalThis.String(object.period) : "",
11
- type: isSet(object.type) ? globalThis.String(object.type) : "",
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.amount !== 0) {
17
- obj.amount = Math.round(message.amount);
18
- }
19
- if (message.period !== "") {
20
- obj.period = message.period;
21
- }
22
- if (message.type !== "") {
23
- obj.type = message.type;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,11 +0,0 @@
1
- export interface EnglishRequirement {
2
- scale: string;
3
- score: string;
4
- isRequired: boolean;
5
- }
6
- export declare const EnglishRequirement: MessageFns<EnglishRequirement>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,30 +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: EnglishRequirement.proto
6
- export const EnglishRequirement = {
7
- fromJSON(object) {
8
- return {
9
- scale: isSet(object.scale) ? globalThis.String(object.scale) : "",
10
- score: isSet(object.score) ? globalThis.String(object.score) : "",
11
- isRequired: isSet(object.isRequired) ? globalThis.Boolean(object.isRequired) : false,
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.scale !== "") {
17
- obj.scale = message.scale;
18
- }
19
- if (message.score !== "") {
20
- obj.score = message.score;
21
- }
22
- if (message.isRequired !== false) {
23
- obj.isRequired = message.isRequired;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,17 +0,0 @@
1
- export interface EssentialInformation {
2
- id: number;
3
- name: string;
4
- icon: string;
5
- promo: string;
6
- canShowPromo: boolean;
7
- parentName: string;
8
- canShowParentName: boolean;
9
- isNameOfDegree: boolean;
10
- programmeCount: number;
11
- }
12
- export declare const EssentialInformation: MessageFns<EssentialInformation>;
13
- interface MessageFns<T> {
14
- fromJSON(object: any): T;
15
- toJSON(message: T): unknown;
16
- }
17
- export {};
@@ -1,54 +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: EssentialInformation.proto
6
- export const EssentialInformation = {
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
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
12
- promo: isSet(object.promo) ? globalThis.String(object.promo) : "",
13
- canShowPromo: isSet(object.canShowPromo) ? globalThis.Boolean(object.canShowPromo) : false,
14
- parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : "",
15
- canShowParentName: isSet(object.canShowParentName) ? globalThis.Boolean(object.canShowParentName) : false,
16
- isNameOfDegree: isSet(object.isNameOfDegree) ? globalThis.Boolean(object.isNameOfDegree) : false,
17
- programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : 0,
18
- };
19
- },
20
- toJSON(message) {
21
- const obj = {};
22
- if (message.id !== 0) {
23
- obj.id = Math.round(message.id);
24
- }
25
- if (message.name !== "") {
26
- obj.name = message.name;
27
- }
28
- if (message.icon !== "") {
29
- obj.icon = message.icon;
30
- }
31
- if (message.promo !== "") {
32
- obj.promo = message.promo;
33
- }
34
- if (message.canShowPromo !== false) {
35
- obj.canShowPromo = message.canShowPromo;
36
- }
37
- if (message.parentName !== "") {
38
- obj.parentName = message.parentName;
39
- }
40
- if (message.canShowParentName !== false) {
41
- obj.canShowParentName = message.canShowParentName;
42
- }
43
- if (message.isNameOfDegree !== false) {
44
- obj.isNameOfDegree = message.isNameOfDegree;
45
- }
46
- if (message.programmeCount !== 0) {
47
- obj.programmeCount = Math.round(message.programmeCount);
48
- }
49
- return obj;
50
- },
51
- };
52
- function isSet(value) {
53
- return value !== null && value !== undefined;
54
- }
@@ -1,22 +0,0 @@
1
- export interface File {
2
- id?: number | undefined;
3
- name?: string | undefined;
4
- title?: string | undefined;
5
- description?: string | undefined;
6
- isHorizontal: boolean;
7
- type?: string | undefined;
8
- isPhoto: boolean;
9
- imgix?: string | undefined;
10
- width?: string | undefined;
11
- height?: string | undefined;
12
- hasPreview: boolean;
13
- url?: string | undefined;
14
- isVideo: boolean;
15
- preview?: File | undefined;
16
- }
17
- export declare const File: MessageFns<File>;
18
- interface MessageFns<T> {
19
- fromJSON(object: any): T;
20
- toJSON(message: T): unknown;
21
- }
22
- export {};
package/protobuf/File.js DELETED
@@ -1,74 +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: File.proto
6
- export const File = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
10
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
11
- title: isSet(object.title) ? globalThis.String(object.title) : undefined,
12
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
13
- isHorizontal: isSet(object.isHorizontal) ? globalThis.Boolean(object.isHorizontal) : false,
14
- type: isSet(object.type) ? globalThis.String(object.type) : undefined,
15
- isPhoto: isSet(object.isPhoto) ? globalThis.Boolean(object.isPhoto) : false,
16
- imgix: isSet(object.imgix) ? globalThis.String(object.imgix) : undefined,
17
- width: isSet(object.width) ? globalThis.String(object.width) : undefined,
18
- height: isSet(object.height) ? globalThis.String(object.height) : undefined,
19
- hasPreview: isSet(object.hasPreview) ? globalThis.Boolean(object.hasPreview) : false,
20
- url: isSet(object.url) ? globalThis.String(object.url) : undefined,
21
- isVideo: isSet(object.isVideo) ? globalThis.Boolean(object.isVideo) : false,
22
- preview: isSet(object.preview) ? File.fromJSON(object.preview) : undefined,
23
- };
24
- },
25
- toJSON(message) {
26
- const obj = {};
27
- if (message.id !== undefined) {
28
- obj.id = Math.round(message.id);
29
- }
30
- if (message.name !== undefined) {
31
- obj.name = message.name;
32
- }
33
- if (message.title !== undefined) {
34
- obj.title = message.title;
35
- }
36
- if (message.description !== undefined) {
37
- obj.description = message.description;
38
- }
39
- if (message.isHorizontal !== false) {
40
- obj.isHorizontal = message.isHorizontal;
41
- }
42
- if (message.type !== undefined) {
43
- obj.type = message.type;
44
- }
45
- if (message.isPhoto !== false) {
46
- obj.isPhoto = message.isPhoto;
47
- }
48
- if (message.imgix !== undefined) {
49
- obj.imgix = message.imgix;
50
- }
51
- if (message.width !== undefined) {
52
- obj.width = message.width;
53
- }
54
- if (message.height !== undefined) {
55
- obj.height = message.height;
56
- }
57
- if (message.hasPreview !== false) {
58
- obj.hasPreview = message.hasPreview;
59
- }
60
- if (message.url !== undefined) {
61
- obj.url = message.url;
62
- }
63
- if (message.isVideo !== false) {
64
- obj.isVideo = message.isVideo;
65
- }
66
- if (message.preview !== undefined) {
67
- obj.preview = File.toJSON(message.preview);
68
- }
69
- return obj;
70
- },
71
- };
72
- function isSet(value) {
73
- return value !== null && value !== undefined;
74
- }
@@ -1,11 +0,0 @@
1
- export interface GPARequirement {
2
- scale: string;
3
- score: string;
4
- isRequired: boolean;
5
- }
6
- export declare const GPARequirement: MessageFns<GPARequirement>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,30 +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: GPARequirement.proto
6
- export const GPARequirement = {
7
- fromJSON(object) {
8
- return {
9
- scale: isSet(object.scale) ? globalThis.String(object.scale) : "",
10
- score: isSet(object.score) ? globalThis.String(object.score) : "",
11
- isRequired: isSet(object.isRequired) ? globalThis.Boolean(object.isRequired) : false,
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.scale !== "") {
17
- obj.scale = message.scale;
18
- }
19
- if (message.score !== "") {
20
- obj.score = message.score;
21
- }
22
- if (message.isRequired !== false) {
23
- obj.isRequired = message.isRequired;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,12 +0,0 @@
1
- export interface InternalLink {
2
- url: string;
3
- description: string;
4
- canShowDescription: boolean;
5
- portalType: string;
6
- }
7
- export declare const InternalLink: MessageFns<InternalLink>;
8
- interface MessageFns<T> {
9
- fromJSON(object: any): T;
10
- toJSON(message: T): unknown;
11
- }
12
- export {};
@@ -1,30 +0,0 @@
1
- import { ProtobufClient } from "../";
2
- export const InternalLink = {
3
- fromJSON(object) {
4
- return {
5
- url: isSet(object.url) ? ProtobufClient.transformUrlUsingPortalMap(globalThis.String(object.url), object.portalType) : "",
6
- description: isSet(object.description) ? globalThis.String(object.description) : "",
7
- canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
8
- portalType: isSet(object.portalType) ? globalThis.String(object.portalType) : "",
9
- };
10
- },
11
- toJSON(message) {
12
- const obj = {};
13
- if (message.url !== "") {
14
- obj.url = message.url;
15
- }
16
- if (message.description !== "") {
17
- obj.description = message.description;
18
- }
19
- if (message.canShowDescription !== false) {
20
- obj.canShowDescription = message.canShowDescription;
21
- }
22
- if (message.portalType !== "") {
23
- obj.portalType = message.portalType;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,11 +0,0 @@
1
- export interface Link {
2
- url: string;
3
- description: string;
4
- canShowDescription: boolean;
5
- }
6
- export declare const Link: MessageFns<Link>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};