@studyportals/domain-client 7.0.1-beta.5 → 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,55 @@
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: Review.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Review = void 0;
9
+ /* eslint-disable */
10
+ const Person_1 = require("./Person");
11
+ exports.Review = {
12
+ fromJSON(object) {
13
+ return {
14
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
15
+ rating: isSet(object.rating) ? globalThis.Number(object.rating) : 0,
16
+ review: isSet(object.review) ? globalThis.String(object.review) : undefined,
17
+ title: isSet(object.title) ? globalThis.String(object.title) : undefined,
18
+ hasTitle: isSet(object.hasTitle) ? globalThis.Boolean(object.hasTitle) : false,
19
+ author: isSet(object.author) ? Person_1.Person.fromJSON(object.author) : undefined,
20
+ startDate: isSet(object.startDate) ? globalThis.String(object.startDate) : "",
21
+ endDate: isSet(object.endDate) ? globalThis.String(object.endDate) : "",
22
+ };
23
+ },
24
+ toJSON(message) {
25
+ const obj = {};
26
+ if (message.id !== 0) {
27
+ obj.id = Math.round(message.id);
28
+ }
29
+ if (message.rating !== 0) {
30
+ obj.rating = message.rating;
31
+ }
32
+ if (message.review !== undefined) {
33
+ obj.review = message.review;
34
+ }
35
+ if (message.title !== undefined) {
36
+ obj.title = message.title;
37
+ }
38
+ if (message.hasTitle !== false) {
39
+ obj.hasTitle = message.hasTitle;
40
+ }
41
+ if (message.author !== undefined) {
42
+ obj.author = Person_1.Person.toJSON(message.author);
43
+ }
44
+ if (message.startDate !== "") {
45
+ obj.startDate = message.startDate;
46
+ }
47
+ if (message.endDate !== "") {
48
+ obj.endDate = message.endDate;
49
+ }
50
+ return obj;
51
+ },
52
+ };
53
+ function isSet(value) {
54
+ return value !== null && value !== undefined;
55
+ }
@@ -0,0 +1,12 @@
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 {};
@@ -0,0 +1,37 @@
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: ReviewRating.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ReviewRating = void 0;
9
+ exports.ReviewRating = {
10
+ fromJSON(object) {
11
+ return {
12
+ average: isSet(object.average) ? globalThis.Number(object.average) : 0,
13
+ quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0,
14
+ averageStarRating: isSet(object.averageStarRating) ? globalThis.Number(object.averageStarRating) : 0,
15
+ hasEnoughQuantity: isSet(object.hasEnoughQuantity) ? globalThis.Boolean(object.hasEnoughQuantity) : false,
16
+ };
17
+ },
18
+ toJSON(message) {
19
+ const obj = {};
20
+ if (message.average !== 0) {
21
+ obj.average = message.average;
22
+ }
23
+ if (message.quantity !== 0) {
24
+ obj.quantity = Math.round(message.quantity);
25
+ }
26
+ if (message.averageStarRating !== 0) {
27
+ obj.averageStarRating = message.averageStarRating;
28
+ }
29
+ if (message.hasEnoughQuantity !== false) {
30
+ obj.hasEnoughQuantity = message.hasEnoughQuantity;
31
+ }
32
+ return obj;
33
+ },
34
+ };
35
+ function isSet(value) {
36
+ return value !== null && value !== undefined;
37
+ }
@@ -0,0 +1,10 @@
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 {};
@@ -0,0 +1,31 @@
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: RichText.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RichText = void 0;
9
+ exports.RichText = {
10
+ fromJSON(object) {
11
+ return {
12
+ contents: isSet(object.contents) ? globalThis.String(object.contents) : "",
13
+ isRenderedAsWhitespace: isSet(object.isRenderedAsWhitespace)
14
+ ? globalThis.Boolean(object.isRenderedAsWhitespace)
15
+ : false,
16
+ };
17
+ },
18
+ toJSON(message) {
19
+ const obj = {};
20
+ if (message.contents !== "") {
21
+ obj.contents = message.contents;
22
+ }
23
+ if (message.isRenderedAsWhitespace !== false) {
24
+ obj.isRenderedAsWhitespace = message.isRenderedAsWhitespace;
25
+ }
26
+ return obj;
27
+ },
28
+ };
29
+ function isSet(value) {
30
+ return value !== null && value !== undefined;
31
+ }
@@ -0,0 +1,21 @@
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 {};
@@ -0,0 +1,73 @@
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: SocialLink.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.SocialLink = void 0;
9
+ exports.SocialLink = {
10
+ fromJSON(object) {
11
+ return {
12
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
13
+ description: isSet(object.description) ? globalThis.String(object.description) : undefined,
14
+ name: isSet(object.name) ? globalThis.String(object.name) : undefined,
15
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
16
+ trackedUrl: isSet(object.trackedUrl) ? globalThis.String(object.trackedUrl) : "",
17
+ isHomepage: isSet(object.isHomepage) ? globalThis.Boolean(object.isHomepage) : false,
18
+ isFacebook: isSet(object.isFacebook) ? globalThis.Boolean(object.isFacebook) : false,
19
+ isTwitter: isSet(object.isTwitter) ? globalThis.Boolean(object.isTwitter) : false,
20
+ isYoutube: isSet(object.isYoutube) ? globalThis.Boolean(object.isYoutube) : false,
21
+ isInstagram: isSet(object.isInstagram) ? globalThis.Boolean(object.isInstagram) : false,
22
+ isLinkedIn: isSet(object.isLinkedIn) ? globalThis.Boolean(object.isLinkedIn) : false,
23
+ isSocial: isSet(object.isSocial) ? globalThis.Boolean(object.isSocial) : false,
24
+ isMedia: isSet(object.isMedia) ? globalThis.Boolean(object.isMedia) : false,
25
+ };
26
+ },
27
+ toJSON(message) {
28
+ const obj = {};
29
+ if (message.id !== 0) {
30
+ obj.id = Math.round(message.id);
31
+ }
32
+ if (message.description !== undefined) {
33
+ obj.description = message.description;
34
+ }
35
+ if (message.name !== undefined) {
36
+ obj.name = message.name;
37
+ }
38
+ if (message.url !== "") {
39
+ obj.url = message.url;
40
+ }
41
+ if (message.trackedUrl !== "") {
42
+ obj.trackedUrl = message.trackedUrl;
43
+ }
44
+ if (message.isHomepage !== false) {
45
+ obj.isHomepage = message.isHomepage;
46
+ }
47
+ if (message.isFacebook !== false) {
48
+ obj.isFacebook = message.isFacebook;
49
+ }
50
+ if (message.isTwitter !== false) {
51
+ obj.isTwitter = message.isTwitter;
52
+ }
53
+ if (message.isYoutube !== false) {
54
+ obj.isYoutube = message.isYoutube;
55
+ }
56
+ if (message.isInstagram !== false) {
57
+ obj.isInstagram = message.isInstagram;
58
+ }
59
+ if (message.isLinkedIn !== false) {
60
+ obj.isLinkedIn = message.isLinkedIn;
61
+ }
62
+ if (message.isSocial !== false) {
63
+ obj.isSocial = message.isSocial;
64
+ }
65
+ if (message.isMedia !== false) {
66
+ obj.isMedia = message.isMedia;
67
+ }
68
+ return obj;
69
+ },
70
+ };
71
+ function isSet(value) {
72
+ return value !== null && value !== undefined;
73
+ }
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,41 @@
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: StartDate.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.StartDate = void 0;
9
+ /* eslint-disable */
10
+ const Deadline_1 = require("./Deadline");
11
+ exports.StartDate = {
12
+ fromJSON(object) {
13
+ return {
14
+ isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
15
+ date: isSet(object.date) ? globalThis.String(object.date) : "",
16
+ isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
17
+ deadlines: globalThis.Array.isArray(object?.deadlines)
18
+ ? object.deadlines.map((e) => Deadline_1.Deadline.fromJSON(e))
19
+ : [],
20
+ };
21
+ },
22
+ toJSON(message) {
23
+ const obj = {};
24
+ if (message.isPassed !== false) {
25
+ obj.isPassed = message.isPassed;
26
+ }
27
+ if (message.date !== "") {
28
+ obj.date = message.date;
29
+ }
30
+ if (message.isApplyingAnytime !== false) {
31
+ obj.isApplyingAnytime = message.isApplyingAnytime;
32
+ }
33
+ if (message.deadlines?.length) {
34
+ obj.deadlines = message.deadlines.map((e) => Deadline_1.Deadline.toJSON(e));
35
+ }
36
+ return obj;
37
+ },
38
+ };
39
+ function isSet(value) {
40
+ return value !== null && value !== undefined;
41
+ }
@@ -0,0 +1,17 @@
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 {};
@@ -0,0 +1,52 @@
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: Timing.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Timing = void 0;
9
+ /* eslint-disable */
10
+ const Deadline_1 = require("./Deadline");
11
+ const StartDate_1 = require("./StartDate");
12
+ exports.Timing = {
13
+ fromJSON(object) {
14
+ return {
15
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
16
+ isStartingAnytime: isSet(object.isStartingAnytime) ? globalThis.Boolean(object.isStartingAnytime) : false,
17
+ startDate: isSet(object.startDate) ? StartDate_1.StartDate.fromJSON(object.startDate) : undefined,
18
+ canShowStartDate: isSet(object.canShowStartDate) ? globalThis.Boolean(object.canShowStartDate) : false,
19
+ isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
20
+ deadline: isSet(object.deadline) ? Deadline_1.Deadline.fromJSON(object.deadline) : undefined,
21
+ canShowDeadline: isSet(object.canShowDeadline) ? globalThis.Boolean(object.canShowDeadline) : false,
22
+ };
23
+ },
24
+ toJSON(message) {
25
+ const obj = {};
26
+ if (message.type !== "") {
27
+ obj.type = message.type;
28
+ }
29
+ if (message.isStartingAnytime !== false) {
30
+ obj.isStartingAnytime = message.isStartingAnytime;
31
+ }
32
+ if (message.startDate !== undefined) {
33
+ obj.startDate = StartDate_1.StartDate.toJSON(message.startDate);
34
+ }
35
+ if (message.canShowStartDate !== false) {
36
+ obj.canShowStartDate = message.canShowStartDate;
37
+ }
38
+ if (message.isApplyingAnytime !== false) {
39
+ obj.isApplyingAnytime = message.isApplyingAnytime;
40
+ }
41
+ if (message.deadline !== undefined) {
42
+ obj.deadline = Deadline_1.Deadline.toJSON(message.deadline);
43
+ }
44
+ if (message.canShowDeadline !== false) {
45
+ obj.canShowDeadline = message.canShowDeadline;
46
+ }
47
+ return obj;
48
+ },
49
+ };
50
+ function isSet(value) {
51
+ return value !== null && value !== undefined;
52
+ }
@@ -0,0 +1,10 @@
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 {};
@@ -0,0 +1,29 @@
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: Topic.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Topic = void 0;
9
+ exports.Topic = {
10
+ fromJSON(object) {
11
+ return {
12
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
13
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
14
+ };
15
+ },
16
+ toJSON(message) {
17
+ const obj = {};
18
+ if (message.id !== 0) {
19
+ obj.id = Math.round(message.id);
20
+ }
21
+ if (message.name !== "") {
22
+ obj.name = message.name;
23
+ }
24
+ return obj;
25
+ },
26
+ };
27
+ function isSet(value) {
28
+ return value !== null && value !== undefined;
29
+ }
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,39 @@
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: TrackedLink.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TrackedLink = void 0;
9
+ /* eslint-disable */
10
+ const Tracking_1 = require("./Tracking");
11
+ exports.TrackedLink = {
12
+ fromJSON(object) {
13
+ return {
14
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
15
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
16
+ canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
17
+ tracking: isSet(object.tracking) ? Tracking_1.Tracking.fromJSON(object.tracking) : undefined,
18
+ };
19
+ },
20
+ toJSON(message) {
21
+ const obj = {};
22
+ if (message.url !== "") {
23
+ obj.url = message.url;
24
+ }
25
+ if (message.description !== "") {
26
+ obj.description = message.description;
27
+ }
28
+ if (message.canShowDescription !== false) {
29
+ obj.canShowDescription = message.canShowDescription;
30
+ }
31
+ if (message.tracking !== undefined) {
32
+ obj.tracking = Tracking_1.Tracking.toJSON(message.tracking);
33
+ }
34
+ return obj;
35
+ },
36
+ };
37
+ function isSet(value) {
38
+ return value !== null && value !== undefined;
39
+ }
@@ -0,0 +1,18 @@
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 {};
@@ -0,0 +1,61 @@
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: Tracking.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Tracking = void 0;
9
+ /* eslint-disable */
10
+ const ClickTracking_1 = require("./ClickTracking");
11
+ exports.Tracking = {
12
+ fromJSON(object) {
13
+ return {
14
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
15
+ clickTracking: isSet(object.clickTracking) ? ClickTracking_1.ClickTracking.fromJSON(object.clickTracking) : undefined,
16
+ canShowClickTracking: isSet(object.canShowClickTracking)
17
+ ? globalThis.Boolean(object.canShowClickTracking)
18
+ : false,
19
+ action: isSet(object.action) ? globalThis.String(object.action) : "",
20
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
21
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
22
+ label: isSet(object.label) ? globalThis.String(object.label) : "",
23
+ extra: isSet(object.extra) ? globalThis.String(object.extra) : "",
24
+ pgl: isSet(object.pgl) ? globalThis.Boolean(object.pgl) : false,
25
+ };
26
+ },
27
+ toJSON(message) {
28
+ const obj = {};
29
+ if (message.id !== 0) {
30
+ obj.id = Math.round(message.id);
31
+ }
32
+ if (message.clickTracking !== undefined) {
33
+ obj.clickTracking = ClickTracking_1.ClickTracking.toJSON(message.clickTracking);
34
+ }
35
+ if (message.canShowClickTracking !== false) {
36
+ obj.canShowClickTracking = message.canShowClickTracking;
37
+ }
38
+ if (message.action !== "") {
39
+ obj.action = message.action;
40
+ }
41
+ if (message.type !== "") {
42
+ obj.type = message.type;
43
+ }
44
+ if (message.description !== "") {
45
+ obj.description = message.description;
46
+ }
47
+ if (message.label !== "") {
48
+ obj.label = message.label;
49
+ }
50
+ if (message.extra !== "") {
51
+ obj.extra = message.extra;
52
+ }
53
+ if (message.pgl !== false) {
54
+ obj.pgl = message.pgl;
55
+ }
56
+ return obj;
57
+ },
58
+ };
59
+ function isSet(value) {
60
+ return value !== null && value !== undefined;
61
+ }
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,41 @@
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: TuitionFee.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TuitionFee = void 0;
9
+ exports.TuitionFee = {
10
+ fromJSON(object) {
11
+ return {
12
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
13
+ currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
14
+ unit: isSet(object.unit) ? globalThis.String(object.unit) : "",
15
+ originalAmount: isSet(object.originalAmount) ? globalThis.Number(object.originalAmount) : 0,
16
+ originalUnit: isSet(object.originalUnit) ? globalThis.String(object.originalUnit) : "",
17
+ };
18
+ },
19
+ toJSON(message) {
20
+ const obj = {};
21
+ if (message.amount !== 0) {
22
+ obj.amount = Math.round(message.amount);
23
+ }
24
+ if (message.currency !== "") {
25
+ obj.currency = message.currency;
26
+ }
27
+ if (message.unit !== "") {
28
+ obj.unit = message.unit;
29
+ }
30
+ if (message.originalAmount !== 0) {
31
+ obj.originalAmount = Math.round(message.originalAmount);
32
+ }
33
+ if (message.originalUnit !== "") {
34
+ obj.originalUnit = message.originalUnit;
35
+ }
36
+ return obj;
37
+ },
38
+ };
39
+ function isSet(value) {
40
+ return value !== null && value !== undefined;
41
+ }
@@ -0,0 +1,10 @@
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 {};
@@ -0,0 +1,29 @@
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: Unibuddy.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Unibuddy = void 0;
9
+ exports.Unibuddy = {
10
+ fromJSON(object) {
11
+ return {
12
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
13
+ isEnabled: isSet(object.isEnabled) ? globalThis.Boolean(object.isEnabled) : false,
14
+ };
15
+ },
16
+ toJSON(message) {
17
+ const obj = {};
18
+ if (message.id !== "") {
19
+ obj.id = message.id;
20
+ }
21
+ if (message.isEnabled !== false) {
22
+ obj.isEnabled = message.isEnabled;
23
+ }
24
+ return obj;
25
+ },
26
+ };
27
+ function isSet(value) {
28
+ return value !== null && value !== undefined;
29
+ }