@studyportals/domain-client 5.6.1-beta.0 → 6.0.0-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 (268) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +33 -63
  3. package/index.js.map +1 -1
  4. package/package.json +4 -2
  5. package/protobuf/InternalLink.d.ts +24 -0
  6. package/protobuf/InternalLink.js +49 -0
  7. package/protobuf/InternalLink.js.map +1 -0
  8. package/protobuf/Link.d.ts +23 -0
  9. package/protobuf/Link.js +44 -0
  10. package/protobuf/Link.js.map +1 -0
  11. package/protobuf/MiniProgrammeCard.d.ts +27 -0
  12. package/protobuf/MiniProgrammeCard.js +61 -0
  13. package/protobuf/MiniProgrammeCard.js.map +1 -0
  14. package/protobuf/index.d.ts +6 -0
  15. package/protobuf/index.js +7 -0
  16. package/protobuf/index.js.map +1 -0
  17. package/src/clients/index.d.ts +1 -0
  18. package/src/clients/index.js +2 -0
  19. package/src/clients/index.js.map +1 -0
  20. package/src/clients/mini-programme-card-client.d.ts +8 -0
  21. package/src/clients/mini-programme-card-client.js +17 -0
  22. package/src/clients/mini-programme-card-client.js.map +1 -0
  23. package/src/clients/protobuf-client.d.ts +11 -0
  24. package/src/clients/protobuf-client.js +16 -0
  25. package/src/clients/protobuf-client.js.map +1 -0
  26. package/src/domain-client.js +15 -13
  27. package/src/domain-client.js.map +1 -1
  28. package/src/exceptions/bad-request-exception.js +1 -5
  29. package/src/exceptions/bad-request-exception.js.map +1 -1
  30. package/src/exceptions/client-exception.js +1 -5
  31. package/src/exceptions/client-exception.js.map +1 -1
  32. package/src/exceptions/internal-server-exception.js +1 -5
  33. package/src/exceptions/internal-server-exception.js.map +1 -1
  34. package/src/exceptions/not-found-exception.js +1 -5
  35. package/src/exceptions/not-found-exception.js.map +1 -1
  36. package/src/exceptions/property-not-available-exception.js +1 -5
  37. package/src/exceptions/property-not-available-exception.js.map +1 -1
  38. package/src/factories/DateFactory.js +1 -5
  39. package/src/factories/DateFactory.js.map +1 -1
  40. package/src/factories/InternalLinkFactory.js +2 -5
  41. package/src/factories/InternalLinkFactory.js.map +1 -1
  42. package/src/i-api-response.js +1 -2
  43. package/src/i-class-factory.js +1 -2
  44. package/src/i-model-description.js +1 -5
  45. package/src/i-model-description.js.map +1 -1
  46. package/src/model-client.js +10 -12
  47. package/src/model-client.js.map +1 -1
  48. package/src/model-factory.js +11 -14
  49. package/src/model-factory.js.map +1 -1
  50. package/src/models/bestfit-programme/bestfit-programme-client.js +2 -6
  51. package/src/models/bestfit-programme/bestfit-programme-client.js.map +1 -1
  52. package/src/models/bestfit-programme/i-best-fit-programme.js +1 -2
  53. package/src/models/bestfit-programme/i-city.js +1 -2
  54. package/src/models/bestfit-programme/i-english-requirements.d.ts +51 -0
  55. package/src/models/bestfit-programme/i-english-requirements.js +2 -0
  56. package/src/models/bestfit-programme/i-english-requirements.js.map +1 -0
  57. package/src/models/bestfit-programme/i-g-p-a-requirement.d.ts +20 -0
  58. package/src/models/bestfit-programme/i-g-p-a-requirement.js +2 -0
  59. package/src/models/bestfit-programme/i-g-p-a-requirement.js.map +1 -0
  60. package/src/models/bestfit-programme/i-living-cost.js +1 -2
  61. package/src/models/bestfit-programme/i-tuition-fee.d.ts +50 -0
  62. package/src/models/bestfit-programme/i-tuition-fee.js +2 -0
  63. package/src/models/bestfit-programme/i-tuition-fee.js.map +1 -0
  64. package/src/models/common/i-city.js +1 -2
  65. package/src/models/common/i-country.js +1 -2
  66. package/src/models/common/i-english-requirements.js +1 -2
  67. package/src/models/common/i-g-p-a-requirement.js +1 -2
  68. package/src/models/common/i-internal-link.js +1 -2
  69. package/src/models/common/i-logo.js +1 -2
  70. package/src/models/common/i-tuition-fee.js +1 -2
  71. package/src/models/compare-programme/i-english-requirements.d.ts +51 -0
  72. package/src/models/compare-programme/i-english-requirements.js +2 -0
  73. package/src/models/compare-programme/i-english-requirements.js.map +1 -0
  74. package/src/models/compare-programme/i-g-p-a-requirement.d.ts +20 -0
  75. package/src/models/compare-programme/i-g-p-a-requirement.js +2 -0
  76. package/src/models/compare-programme/i-g-p-a-requirement.js.map +1 -0
  77. package/src/models/compare-programme/i-living-cost.d.ts +20 -0
  78. package/src/models/compare-programme/i-living-cost.js +2 -0
  79. package/src/models/compare-programme/i-living-cost.js.map +1 -0
  80. package/src/models/copilot-country/copilot-country-client.js +2 -6
  81. package/src/models/copilot-country/copilot-country-client.js.map +1 -1
  82. package/src/models/copilot-country/i-copilot-country.js +1 -2
  83. package/src/models/copilot-country/i-copilot-ranking-card.js +1 -2
  84. package/src/models/copilot-programme/copilot-programme-client.js +2 -6
  85. package/src/models/copilot-programme/copilot-programme-client.js.map +1 -1
  86. package/src/models/copilot-programme/i-copilot-programme.js +1 -2
  87. package/src/models/copilot-programme/i-deadline.d.ts +20 -0
  88. package/src/models/copilot-programme/i-deadline.js +2 -0
  89. package/src/models/copilot-programme/i-deadline.js.map +1 -0
  90. package/src/models/copilot-programme/i-english-requirements.d.ts +51 -0
  91. package/src/models/copilot-programme/i-english-requirements.js +2 -0
  92. package/src/models/copilot-programme/i-english-requirements.js.map +1 -0
  93. package/src/models/copilot-programme/i-g-p-a-requirement.d.ts +20 -0
  94. package/src/models/copilot-programme/i-g-p-a-requirement.js +2 -0
  95. package/src/models/copilot-programme/i-g-p-a-requirement.js.map +1 -0
  96. package/src/models/copilot-programme/i-geo-targeting-configuration.d.ts +38 -0
  97. package/src/models/copilot-programme/i-geo-targeting-configuration.js +2 -0
  98. package/src/models/copilot-programme/i-geo-targeting-configuration.js.map +1 -0
  99. package/src/models/copilot-programme/i-geo-targeting-values.d.ts +30 -0
  100. package/src/models/copilot-programme/i-geo-targeting-values.js +2 -0
  101. package/src/models/copilot-programme/i-geo-targeting-values.js.map +1 -0
  102. package/src/models/copilot-programme/i-internal-link.d.ts +28 -0
  103. package/src/models/copilot-programme/i-internal-link.js +2 -0
  104. package/src/models/copilot-programme/i-internal-link.js.map +1 -0
  105. package/src/models/copilot-programme/i-link.d.ts +22 -0
  106. package/src/models/copilot-programme/i-link.js +2 -0
  107. package/src/models/copilot-programme/i-link.js.map +1 -0
  108. package/src/models/copilot-programme/i-living-cost.d.ts +20 -0
  109. package/src/models/copilot-programme/i-living-cost.js +2 -0
  110. package/src/models/copilot-programme/i-living-cost.js.map +1 -0
  111. package/src/models/copilot-programme/i-start-date.d.ts +33 -0
  112. package/src/models/copilot-programme/i-start-date.js +2 -0
  113. package/src/models/copilot-programme/i-start-date.js.map +1 -0
  114. package/src/models/copilot-programme/i-timing.d.ts +45 -0
  115. package/src/models/copilot-programme/i-timing.js +2 -0
  116. package/src/models/copilot-programme/i-timing.js.map +1 -0
  117. package/src/models/copilot-programme/i-tuition-values.d.ts +50 -0
  118. package/src/models/copilot-programme/i-tuition-values.js +2 -0
  119. package/src/models/copilot-programme/i-tuition-values.js.map +1 -0
  120. package/src/models/customerio-organisation/customerio-organisation-client.js +2 -6
  121. package/src/models/customerio-organisation/customerio-organisation-client.js.map +1 -1
  122. package/src/models/customerio-organisation/i-city.d.ts +14 -0
  123. package/src/models/customerio-organisation/i-city.js +2 -0
  124. package/src/models/customerio-organisation/i-city.js.map +1 -0
  125. package/src/models/customerio-organisation/i-country.d.ts +20 -0
  126. package/src/models/customerio-organisation/i-country.js +2 -0
  127. package/src/models/customerio-organisation/i-country.js.map +1 -0
  128. package/src/models/customerio-organisation/i-customer-i-o-organisation.d.ts +35 -0
  129. package/src/models/customerio-organisation/i-customer-i-o-organisation.js +2 -0
  130. package/src/models/customerio-organisation/i-customer-i-o-organisation.js.map +1 -0
  131. package/src/models/customerio-organisation/i-customer-io-organisation.js +1 -2
  132. package/src/models/customerio-organisation/i-review.js +1 -2
  133. package/src/models/customerio-programme/customerio-programme-client.js +2 -6
  134. package/src/models/customerio-programme/customerio-programme-client.js.map +1 -1
  135. package/src/models/customerio-programme/i-country.d.ts +20 -0
  136. package/src/models/customerio-programme/i-country.js +2 -0
  137. package/src/models/customerio-programme/i-country.js.map +1 -0
  138. package/src/models/customerio-programme/i-customer-i-o-programme.d.ts +107 -0
  139. package/src/models/customerio-programme/i-customer-i-o-programme.js +2 -0
  140. package/src/models/customerio-programme/i-customer-i-o-programme.js.map +1 -0
  141. package/src/models/customerio-programme/i-customer-io-programme.js +1 -2
  142. package/src/models/customerio-programme/i-deadline.d.ts +20 -0
  143. package/src/models/customerio-programme/i-deadline.js +2 -0
  144. package/src/models/customerio-programme/i-deadline.js.map +1 -0
  145. package/src/models/customerio-programme/i-english-requirements.d.ts +51 -0
  146. package/src/models/customerio-programme/i-english-requirements.js +2 -0
  147. package/src/models/customerio-programme/i-english-requirements.js.map +1 -0
  148. package/src/models/customerio-programme/i-internal-link.js +1 -2
  149. package/src/models/customerio-programme/i-logo.d.ts +14 -0
  150. package/src/models/customerio-programme/i-logo.js +2 -0
  151. package/src/models/customerio-programme/i-logo.js.map +1 -0
  152. package/src/models/customerio-programme/i-start-date.d.ts +33 -0
  153. package/src/models/customerio-programme/i-start-date.js +2 -0
  154. package/src/models/customerio-programme/i-start-date.js.map +1 -0
  155. package/src/models/customerio-programme/i-timing.d.ts +45 -0
  156. package/src/models/customerio-programme/i-timing.js +2 -0
  157. package/src/models/customerio-programme/i-timing.js.map +1 -0
  158. package/src/models/customerio-programme/i-tuition-fee.d.ts +50 -0
  159. package/src/models/customerio-programme/i-tuition-fee.js +2 -0
  160. package/src/models/customerio-programme/i-tuition-fee.js.map +1 -0
  161. package/src/models/faq-static-content/i-faq-static-content.js +1 -2
  162. package/src/models/faq-static-content/i-faq.js +1 -2
  163. package/src/models/faq-static-content/i-static-content-url.js +1 -2
  164. package/src/models/faq-static-content/public-faq-static-content-client.js +2 -6
  165. package/src/models/faq-static-content/public-faq-static-content-client.js.map +1 -1
  166. package/src/models/organisation-card/i-organisation-card.d.ts +0 -2
  167. package/src/models/organisation-card/i-organisation-card.js +1 -2
  168. package/src/models/organisation-card/i-ranking-discipline.js +1 -2
  169. package/src/models/organisation-card/i-review-rating-domain.d.ts +6 -0
  170. package/src/models/organisation-card/i-review-rating-domain.js +2 -0
  171. package/src/models/organisation-card/i-review-rating-domain.js.map +1 -0
  172. package/src/models/organisation-card/organisation-card-client.js +2 -6
  173. package/src/models/organisation-card/organisation-card-client.js.map +1 -1
  174. package/src/models/organisation-for-search/i-organisation-for-search.js +1 -2
  175. package/src/models/organisation-for-search/public-organisation-for-search-client.js +2 -6
  176. package/src/models/organisation-for-search/public-organisation-for-search-client.js.map +1 -1
  177. package/src/models/organisation-search-document/i-organisation-search-document.js +1 -2
  178. package/src/models/organisation-search-document/organisation-search-document-client.js +2 -6
  179. package/src/models/organisation-search-document/organisation-search-document-client.js.map +1 -1
  180. package/src/models/programme-card/i-click-tracking-data.js +1 -2
  181. package/src/models/programme-card/i-cover.js +1 -2
  182. package/src/models/programme-card/i-deadline.js +1 -2
  183. package/src/models/programme-card/i-duration.js +1 -2
  184. package/src/models/programme-card/i-english-requirements.d.ts +51 -0
  185. package/src/models/programme-card/i-english-requirements.js +2 -0
  186. package/src/models/programme-card/i-english-requirements.js.map +1 -0
  187. package/src/models/programme-card/i-g-p-a-requirement.d.ts +20 -0
  188. package/src/models/programme-card/i-g-p-a-requirement.js +2 -0
  189. package/src/models/programme-card/i-g-p-a-requirement.js.map +1 -0
  190. package/src/models/programme-card/i-internal-link.js +1 -2
  191. package/src/models/programme-card/i-link.js +1 -2
  192. package/src/models/programme-card/i-living-cost.d.ts +20 -0
  193. package/src/models/programme-card/i-living-cost.js +2 -0
  194. package/src/models/programme-card/i-living-cost.js.map +1 -0
  195. package/src/models/programme-card/i-location.js +1 -2
  196. package/src/models/programme-card/i-logo.js +1 -2
  197. package/src/models/programme-card/i-optional-link.js +1 -2
  198. package/src/models/programme-card/i-programme-card.d.ts +0 -7
  199. package/src/models/programme-card/i-programme-card.js +1 -2
  200. package/src/models/programme-card/i-review-rating-domain.d.ts +6 -0
  201. package/src/models/programme-card/i-review-rating-domain.js +2 -0
  202. package/src/models/programme-card/i-review-rating-domain.js.map +1 -0
  203. package/src/models/programme-card/i-start-date.js +1 -2
  204. package/src/models/programme-card/i-timing.js +1 -2
  205. package/src/models/programme-card/i-tracked-link.js +1 -2
  206. package/src/models/programme-card/i-tracking.js +1 -2
  207. package/src/models/programme-card/i-tuition-fee.js +1 -2
  208. package/src/models/programme-card/programme-card-client.js +2 -6
  209. package/src/models/programme-card/programme-card-client.js.map +1 -1
  210. package/src/models/ranking-cards/i-ranking.js +1 -2
  211. package/src/models/scholarship-card/i-scholarship-card-v2.js +1 -2
  212. package/src/models/scholarship-card/i-scholarship-card.js +1 -2
  213. package/src/models/scholarship-card/public-scholarship-card-client.js +2 -6
  214. package/src/models/scholarship-card/public-scholarship-card-client.js.map +1 -1
  215. package/src/models/scholarship-card/scholarship-card-v2-client.js +2 -6
  216. package/src/models/scholarship-card/scholarship-card-v2-client.js.map +1 -1
  217. package/src/models/scholarship-card-v2/i-scholarship-card.d.ts +15 -0
  218. package/src/models/scholarship-card-v2/i-scholarship-card.js +2 -0
  219. package/src/models/scholarship-card-v2/i-scholarship-card.js.map +1 -0
  220. package/src/models/scholarship-card-v2/scholarship-card-v2-client.d.ts +7 -0
  221. package/src/models/scholarship-card-v2/scholarship-card-v2-client.js +13 -0
  222. package/src/models/scholarship-card-v2/scholarship-card-v2-client.js.map +1 -0
  223. package/src/models/scholarship-search-document/i-scholarship-search-document.js +1 -2
  224. package/src/models/scholarship-search-document/scholarship-search-document-client.js +2 -6
  225. package/src/models/scholarship-search-document/scholarship-search-document-client.js.map +1 -1
  226. package/src/models/search-discipline/i-search-discipline.js +1 -2
  227. package/src/models/search-discipline/public-search-discipline-client.js +2 -6
  228. package/src/models/search-discipline/public-search-discipline-client.js.map +1 -1
  229. package/src/models/search-projection/i-geo-targeting-configuration.js +1 -2
  230. package/src/models/search-projection/i-geo-targeting-values.js +1 -2
  231. package/src/models/search-projection/i-organisation-values.js +1 -2
  232. package/src/models/search-projection/i-premium-values.js +1 -2
  233. package/src/models/search-projection/i-search-projection.js +1 -2
  234. package/src/models/search-projection/i-tuition-values.js +1 -2
  235. package/src/models/search-projection/search-projection-client.js +2 -6
  236. package/src/models/search-projection/search-projection-client.js.map +1 -1
  237. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +1 -2
  238. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +2 -6
  239. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js.map +1 -1
  240. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +1 -2
  241. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +2 -6
  242. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js.map +1 -1
  243. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +1 -2
  244. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +2 -6
  245. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js.map +1 -1
  246. package/src/models/sitemap-country-degree-info/i-degree-info.js +1 -2
  247. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +1 -2
  248. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +2 -6
  249. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js.map +1 -1
  250. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +1 -2
  251. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +2 -6
  252. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js.map +1 -1
  253. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +1 -2
  254. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +2 -6
  255. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js.map +1 -1
  256. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +1 -2
  257. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +2 -6
  258. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js.map +1 -1
  259. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +1 -2
  260. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +2 -6
  261. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js.map +1 -1
  262. package/src/types/portal-map.js +1 -2
  263. package/src/types/portal-type.js +2 -5
  264. package/src/types/portal-type.js.map +1 -1
  265. package/src/types.js +1 -2
  266. package/src/models/common/i-review-rating.d.ts +0 -26
  267. package/src/models/common/i-review-rating.js +0 -3
  268. package/src/models/common/i-review-rating.js.map +0 -1
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientException = void 0;
4
- class ClientException extends Error {
1
+ export class ClientException extends Error {
5
2
  }
6
- exports.ClientException = ClientException;
7
3
  //# sourceMappingURL=client-exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-exception.js","sourceRoot":"","sources":["../../../src/exceptions/client-exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAgB,SAAQ,KAAK;CACzC;AADD,0CACC"}
1
+ {"version":3,"file":"client-exception.js","sourceRoot":"","sources":["../../../src/exceptions/client-exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,eAAgB,SAAQ,KAAK;CACzC"}
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalServerException = void 0;
4
- class InternalServerException extends Error {
1
+ export class InternalServerException extends Error {
5
2
  }
6
- exports.InternalServerException = InternalServerException;
7
3
  //# sourceMappingURL=internal-server-exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-server-exception.js","sourceRoot":"","sources":["../../../src/exceptions/internal-server-exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAwB,SAAQ,KAAK;CACjD;AADD,0DACC"}
1
+ {"version":3,"file":"internal-server-exception.js","sourceRoot":"","sources":["../../../src/exceptions/internal-server-exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,uBAAwB,SAAQ,KAAK;CACjD"}
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotFoundException = void 0;
4
- class NotFoundException extends Error {
1
+ export class NotFoundException extends Error {
5
2
  }
6
- exports.NotFoundException = NotFoundException;
7
3
  //# sourceMappingURL=not-found-exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"not-found-exception.js","sourceRoot":"","sources":["../../../src/exceptions/not-found-exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAkB,SAAQ,KAAK;CAC3C;AADD,8CACC"}
1
+ {"version":3,"file":"not-found-exception.js","sourceRoot":"","sources":["../../../src/exceptions/not-found-exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iBAAkB,SAAQ,KAAK;CAC3C"}
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyNotAvailableException = void 0;
4
- class PropertyNotAvailableException extends Error {
1
+ export class PropertyNotAvailableException extends Error {
5
2
  }
6
- exports.PropertyNotAvailableException = PropertyNotAvailableException;
7
3
  //# sourceMappingURL=property-not-available-exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"property-not-available-exception.js","sourceRoot":"","sources":["../../../src/exceptions/property-not-available-exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,6BAA8B,SAAQ,KAAK;CACvD;AADD,sEACC"}
1
+ {"version":3,"file":"property-not-available-exception.js","sourceRoot":"","sources":["../../../src/exceptions/property-not-available-exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,6BAA8B,SAAQ,KAAK;CACvD"}
@@ -1,10 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DateFactory = void 0;
4
- class DateFactory {
1
+ export class DateFactory {
5
2
  create(data, parameters) {
6
3
  return new Date(parameters[0]);
7
4
  }
8
5
  }
9
- exports.DateFactory = DateFactory;
10
6
  //# sourceMappingURL=DateFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateFactory.js","sourceRoot":"","sources":["../../../src/factories/DateFactory.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;IAChB,MAAM,CAAC,IAAW,EAAE,UAAoB;QAC9C,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;CACD;AAJD,kCAIC"}
1
+ {"version":3,"file":"DateFactory.js","sourceRoot":"","sources":["../../../src/factories/DateFactory.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,WAAW;IAChB,MAAM,CAAC,IAAW,EAAE,UAAoB;QAC9C,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;CACD"}
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalLinkFactory = void 0;
4
- class InternalLinkFactory {
1
+ export class InternalLinkFactory {
2
+ portalMap;
5
3
  constructor(portalMap) {
6
4
  this.portalMap = portalMap;
7
5
  }
@@ -16,5 +14,4 @@ class InternalLinkFactory {
16
14
  return url || '';
17
15
  }
18
16
  }
19
- exports.InternalLinkFactory = InternalLinkFactory;
20
17
  //# sourceMappingURL=InternalLinkFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternalLinkFactory.js","sourceRoot":"","sources":["../../../src/factories/InternalLinkFactory.ts"],"names":[],"mappings":";;;AAKA,MAAa,mBAAmB;IAG/B,YAAY,SAAoB;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,IAAW;QACxB,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAgB,CAAC,CAAC;QAEhF,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAY,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAW,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;QAEpD,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,gBAAgB,CAAC,UAAsB;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,GAAG,IAAI,EAAE,CAAC;IAClB,CAAC;CAED;AArBD,kDAqBC"}
1
+ {"version":3,"file":"InternalLinkFactory.js","sourceRoot":"","sources":["../../../src/factories/InternalLinkFactory.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,mBAAmB;IACvB,SAAS,CAAY;IAE7B,YAAY,SAAoB;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,IAAW;QACxB,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAgB,CAAC,CAAC;QAEhF,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAY,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAW,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;QAEpD,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,gBAAgB,CAAC,UAAsB;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,GAAG,IAAI,EAAE,CAAC;IAClB,CAAC;CAED"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-api-response.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-class-factory.js.map
@@ -1,10 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isModelDescription = void 0;
4
1
  // eslint-disable-next-line
5
- function isModelDescription(arg) {
2
+ export function isModelDescription(arg) {
6
3
  // eslint-disable-next-line
7
4
  return arg && arg.class && (arg.func || arg.parameters);
8
5
  }
9
- exports.isModelDescription = isModelDescription;
10
6
  //# sourceMappingURL=i-model-description.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-model-description.js","sourceRoot":"","sources":["../../src/i-model-description.ts"],"names":[],"mappings":";;;AAQA,2BAA2B;AAC3B,SAAgB,kBAAkB,CAAC,GAAQ;IAC1C,2BAA2B;IAC3B,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;AACzD,CAAC;AAHD,gDAGC"}
1
+ {"version":3,"file":"i-model-description.js","sourceRoot":"","sources":["../../src/i-model-description.ts"],"names":[],"mappings":"AAQA,2BAA2B;AAC3B,MAAM,UAAU,kBAAkB,CAAC,GAAQ;IAC1C,2BAA2B;IAC3B,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;AACzD,CAAC"}
@@ -1,16 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelClient = void 0;
4
- const domain_client_1 = require("./domain-client");
5
- const client_exception_1 = require("./exceptions/client-exception");
6
- const model_factory_1 = require("./model-factory");
7
- class ModelClient {
1
+ import { DomainClient } from "./domain-client";
2
+ import { ClientException } from "./exceptions/client-exception";
3
+ import { ModelFactory } from "./model-factory";
4
+ export class ModelClient {
5
+ domainClient;
6
+ modelFactory;
8
7
  constructor(baseUrl, apiKey, seed, portalMap) {
9
8
  if (!baseUrl || !seed) {
10
9
  return;
11
10
  }
12
- this.modelFactory = new model_factory_1.ModelFactory(portalMap);
13
- this.domainClient = new domain_client_1.DomainClient(baseUrl, apiKey, this.getModelName(), this.getVersion(), this.isPublic(), seed);
11
+ this.modelFactory = new ModelFactory(portalMap);
12
+ this.domainClient = new DomainClient(baseUrl, apiKey, this.getModelName(), this.getVersion(), this.isPublic(), seed);
14
13
  }
15
14
  async fetch(id) {
16
15
  const modelDescriptions = await this.fetchDescription(id);
@@ -18,7 +17,7 @@ class ModelClient {
18
17
  }
19
18
  async fetchDescription(id) {
20
19
  if (!this.domainClient) {
21
- throw new client_exception_1.ClientException("Offline mode active: did you provide all parameters " +
20
+ throw new ClientException("Offline mode active: did you provide all parameters " +
22
21
  "in the constructor?");
23
22
  }
24
23
  const result = await this.domainClient.doRequest([id]);
@@ -30,7 +29,7 @@ class ModelClient {
30
29
  }
31
30
  async fetchMultipleDescriptions(ids) {
32
31
  if (!this.domainClient) {
33
- throw new client_exception_1.ClientException('Offline mode active: did you provide all parameters ' +
32
+ throw new ClientException('Offline mode active: did you provide all parameters ' +
34
33
  'in the constructor?');
35
34
  }
36
35
  return await this.domainClient.doRequest(ids);
@@ -42,5 +41,4 @@ class ModelClient {
42
41
  return this.modelFactory.fromDescriptions(descriptions);
43
42
  }
44
43
  }
45
- exports.ModelClient = ModelClient;
46
44
  //# sourceMappingURL=model-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-client.js","sourceRoot":"","sources":["../../src/model-client.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAC/C,oEAAgE;AAEhE,mDAA+C;AAI/C,MAAsB,WAAW;IAIhC,YACC,OAAgB,EAChB,MAAe,EACf,IAAa,EACb,SAAqB;QAErB,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE;YACtB,OAAO;SACP;QAED,IAAI,CAAC,YAAY,GAAG,IAAI,4BAAY,CAAI,SAAS,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,4BAAY,CACnC,OAAO,EACP,MAAM,EACN,IAAI,CAAC,YAAY,EAAE,EACnB,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,QAAQ,EAAE,EACf,IAAI,CACJ,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,EAAU;QAC5B,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,EAAE,CA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AAI,CAAC,YAAY,EAAE;YACvB,MAAM,IAAI,eAAe,CACxB,sDAAsD;gBACtD,qBAAqB,CACrB,CAAC;SACF;QACD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IAEM,eAAe,CAAC,WAA8B;QACpD,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;IAEM,gBAAgB,CAAC,YAAiC;QACxD,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACzD,CAAC;CAOD"}
@@ -1,15 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelFactory = void 0;
4
- const InternalLinkFactory_1 = require("./factories/InternalLinkFactory");
5
- const DateFactory_1 = require("./factories/DateFactory");
6
- const i_model_description_1 = require("./i-model-description");
7
- const property_not_available_exception_1 = require("./exceptions/property-not-available-exception");
8
- class ModelFactory {
1
+ import { InternalLinkFactory } from "./factories/InternalLinkFactory";
2
+ import { DateFactory } from "./factories/DateFactory";
3
+ import { isModelDescription } from "./i-model-description";
4
+ import { PropertyNotAvailableException } from "./exceptions/property-not-available-exception";
5
+ export class ModelFactory {
6
+ customClassFactories;
9
7
  constructor(portalMap = new Map()) {
10
8
  const factories = new Map();
11
- factories.set('IInternalLink', new InternalLinkFactory_1.InternalLinkFactory(portalMap));
12
- factories.set('SerializableDateTime', new DateFactory_1.DateFactory());
9
+ factories.set('IInternalLink', new InternalLinkFactory(portalMap));
10
+ factories.set('SerializableDateTime', new DateFactory());
13
11
  this.customClassFactories = factories;
14
12
  }
15
13
  fromDescription(data) {
@@ -38,7 +36,7 @@ class ModelFactory {
38
36
  const canShowFunction = 'canShow' + propertyName;
39
37
  const value = data.func[functionName];
40
38
  let returnValue;
41
- if ((0, i_model_description_1.isModelDescription)(value)) {
39
+ if (isModelDescription(value)) {
42
40
  returnValue = this.unpackClass(value);
43
41
  }
44
42
  else if (Array.isArray(value)) {
@@ -50,7 +48,7 @@ class ModelFactory {
50
48
  if (canShowFunction in data.func) {
51
49
  return () => {
52
50
  if (data.func[canShowFunction] === false) {
53
- throw new property_not_available_exception_1.PropertyNotAvailableException(`Property '${propertyName}' not available`);
51
+ throw new PropertyNotAvailableException(`Property '${propertyName}' not available`);
54
52
  }
55
53
  return returnValue;
56
54
  };
@@ -61,12 +59,11 @@ class ModelFactory {
61
59
  }
62
60
  unpackArray(list) {
63
61
  return list.map(item => {
64
- if ((0, i_model_description_1.isModelDescription)(item)) {
62
+ if (isModelDescription(item)) {
65
63
  return this.unpackClass(item);
66
64
  }
67
65
  return item;
68
66
  });
69
67
  }
70
68
  }
71
- exports.ModelFactory = ModelFactory;
72
69
  //# sourceMappingURL=model-factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-factory.js","sourceRoot":"","sources":["../../src/model-factory.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AACtE,yDAAsD;AAEtD,+DAA8E;AAC9E,oGAA8F;AAK9F,MAAa,YAAY;IAIxB,YAAY,YAAuB,IAAI,GAAG,EAAsB;QAC/D,MAAM,SAAS,GAAG,IAAI,GAAG,EAAyB,CAAC;QACnD,SAAS,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,yCAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;QACnE,SAAS,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,yBAAW,EAAE,CAAC,CAAC;QAEzD,IAAI,CAAC,oBAAoB,GAAG,SAAS,CAAC;IACvC,CAAC;IAEM,eAAe,CAAC,IAAuB;QAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAiB,CAAC;IAC/C,CAAC;IAEM,gBAAgB,CAAC,IAAyB;QAChD,MAAM,MAAM,GAAQ,EAAE,CAAC;QACvB,KAAK,MAAM,gBAAgB,IAAI,IAAI,EAAE;YACpC,MAAM,CAAC,IAAI,CAAC,IAAI,CA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AE;YACjC,OAAO,GAAQ,EAAE;gBAChB,IAAI,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,KAAK,EAAE;oBACzC,MAAM,IAAI,6BAA6B,CACtC,aAAa,YAAY,iBAAiB,CAC1C,CAAC;iBACF;gBACD,OAAO,WAAW,CAAC;YACpB,CAAC,CAAC;SACF;QACD,OAAO,GAAQ,EAAE;YAChB,OAAO,WAAW,CAAC;QACpB,CAAC,CAAC;IACH,CAAC;IAEO,WAAW,CAAC,IAAW;QAC9B,OAAO,IAAI,CAAC,GAAG,CACd,IAAI,CAAC,EAAE;YACN,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE;gBAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;aAC7B;YAED,OAAO,IAA0B,CAAC;QACnC,CAAC,CACD,CAAC;IACH,CAAC;CACD"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BestfitProgrammeClient = void 0;
4
- const model_client_1 = require("../../model-client");
5
- class BestfitProgrammeClient extends model_client_1.ModelClient {
1
+ import { ModelClient } from "../../model-client";
2
+ export class BestfitProgrammeClient extends ModelClient {
6
3
  getModelName() {
7
4
  return 'bestfit-programme';
8
5
  }
@@ -13,5 +10,4 @@ class BestfitProgrammeClient extends model_client_1.ModelClient {
13
10
  return false;
14
11
  }
15
12
  }
16
- exports.BestfitProgrammeClient = BestfitProgrammeClient;
17
13
  //# sourceMappingURL=bestfit-programme-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bestfit-programme-client.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/bestfit-programme-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,sBAAuB,SAAQ,0BAA8B;IAC/D,YAAY;QACrB,OAAO,mBAAmB,CAAC;IAC5B,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAZD,wDAYC"}
1
+ {"version":3,"file":"bestfit-programme-client.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/bestfit-programme-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,OAAO,sBAAuB,SAAQ,WAA8B;IAC/D,YAAY;QACrB,OAAO,mBAAmB,CAAC;IAC5B,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-best-fit-programme.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-city.js.map
@@ -0,0 +1,51 @@
1
+ export interface IEnglishRequirements {
2
+ /**
3
+ * Required score for Cambridge english
4
+ *
5
+ * @return number
6
+ */
7
+ getCambridgeEnglish(): number;
8
+ canShowCambridgeEnglish(): boolean;
9
+ /**
10
+ * Required score for Duolingo
11
+ *
12
+ * @return number
13
+ */
14
+ getDuolingo(): number;
15
+ canShowDuolingo(): boolean;
16
+ /**
17
+ * Required score for IELTS tests
18
+ *
19
+ * @return number
20
+ */
21
+ getIELTS(): number;
22
+ canShowIELTS(): boolean;
23
+ /**
24
+ * Required score for OTE
25
+ *
26
+ * @return number
27
+ */
28
+ getOte(): number;
29
+ canShowOte(): boolean;
30
+ /**
31
+ * Required score for PTE
32
+ *
33
+ * @return number
34
+ */
35
+ getPTE(): number;
36
+ canShowPTE(): boolean;
37
+ /**
38
+ * Required score for TOEFL internet
39
+ *
40
+ * @return number
41
+ */
42
+ getTOEFLInternet(): number;
43
+ canShowTOEFLInternet(): boolean;
44
+ /**
45
+ * Required score for TOEFL paper
46
+ *
47
+ * @return number
48
+ */
49
+ getTOEFLPaper(): number;
50
+ canShowTOEFLPaper(): boolean;
51
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i-english-requirements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-english-requirements.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-english-requirements.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export interface IGPARequirement {
2
+ /**
3
+ * The used GPA scale for this requirement
4
+ *
5
+ * @return string
6
+ */
7
+ getScale(): string;
8
+ /**
9
+ * Required minimum score.
10
+ *
11
+ * @return string
12
+ */
13
+ getScore(): string;
14
+ /**
15
+ * Is GPA recommended or required.
16
+ *
17
+ * @return boolean
18
+ */
19
+ isRequired(): boolean;
20
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i-g-p-a-requirement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-g-p-a-requirement.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-g-p-a-requirement.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-living-cost.js.map
@@ -0,0 +1,50 @@
1
+ export interface ITuitionFee {
2
+ /**
3
+ * Get the tuition amount per unit in the provided currency.
4
+ *
5
+ * Note: all transformable units will be converted to yearly amounts. This
6
+ * includes per semester and full programme tuition fees.
7
+ *
8
+ * @return number
9
+ */
10
+ getAmount(): number;
11
+ /**
12
+ * Get the applicable currency.
13
+ *
14
+ * @return string
15
+ */
16
+ getCurrency(): string;
17
+ /**
18
+ * Get the original tuition amount before any transformation step.
19
+ *
20
+ * @return number
21
+ */
22
+ getOriginalAmount(): number;
23
+ /**
24
+ * Get the original tuition unit before any transformation step.
25
+ *
26
+ * @return string
27
+ */
28
+ getOriginalUnit(): string;
29
+ /**
30
+ * Get targeted audience (national, international, eea, etc).
31
+ *
32
+ * @return string
33
+ */
34
+ getTarget(): string;
35
+ /**
36
+ * Get the unit the tuition fee applies for.
37
+ *
38
+ * Note: all transformable units will be converted to 'year'. This means
39
+ * this value will be either 'year', 'module' or 'credit'.
40
+ *
41
+ * @return string
42
+ */
43
+ getUnit(): string;
44
+ /**
45
+ * True if the study is free for this target audience.
46
+ *
47
+ * @return boolean
48
+ */
49
+ isFree(): boolean;
50
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i-tuition-fee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-tuition-fee.js","sourceRoot":"","sources":["../../../../src/models/bestfit-programme/i-tuition-fee.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-city.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-country.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-english-requirements.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-g-p-a-requirement.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-internal-link.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-logo.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=i-tuition-fee.js.map
@@ -0,0 +1,51 @@
1
+ export interface IEnglishRequirements {
2
+ /**
3
+ * Required score for Cambridge english
4
+ *
5
+ * @return number
6
+ */
7
+ getCambridgeEnglish(): number;
8
+ canShowCambridgeEnglish(): boolean;
9
+ /**
10
+ * Required score for Duolingo
11
+ *
12
+ * @return number
13
+ */
14
+ getDuolingo(): number;
15
+ canShowDuolingo(): boolean;
16
+ /**
17
+ * Required score for IELTS tests
18
+ *
19
+ * @return number
20
+ */
21
+ getIELTS(): number;
22
+ canShowIELTS(): boolean;
23
+ /**
24
+ * Required score for OTE
25
+ *
26
+ * @return number
27
+ */
28
+ getOte(): number;
29
+ canShowOte(): boolean;
30
+ /**
31
+ * Required score for PTE
32
+ *
33
+ * @return number
34
+ */
35
+ getPTE(): number;
36
+ canShowPTE(): boolean;
37
+ /**
38
+ * Required score for TOEFL internet
39
+ *
40
+ * @return number
41
+ */
42
+ getTOEFLInternet(): number;
43
+ canShowTOEFLInternet(): boolean;
44
+ /**
45
+ * Required score for TOEFL paper
46
+ *
47
+ * @return number
48
+ */
49
+ getTOEFLPaper(): number;
50
+ canShowTOEFLPaper(): boolean;
51
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i-english-requirements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-english-requirements.js","sourceRoot":"","sources":["../../../../src/models/compare-programme/i-english-requirements.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export interface IGPARequirement {
2
+ /**
3
+ * The used GPA scale for this requirement
4
+ *
5
+ * @return string
6
+ */
7
+ getScale(): string;
8
+ /**
9
+ * Required minimum score.
10
+ *
11
+ * @return string
12
+ */
13
+ getScore(): string;
14
+ /**
15
+ * Is GPA recommended or required.
16
+ *
17
+ * @return boolean
18
+ */
19
+ isRequired(): boolean;
20
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i-g-p-a-requirement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-g-p-a-requirement.js","sourceRoot":"","sources":["../../../../src/models/compare-programme/i-g-p-a-requirement.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export interface ILivingCost {
2
+ /**
3
+ * Get the applicable currency.
4
+ *
5
+ * @return string
6
+ */
7
+ getCurrency(): string;
8
+ /**
9
+ * Get the maximum living cost in the provided currency.
10
+ *
11
+ * @return number
12
+ */
13
+ getMax(): number;
14
+ /**
15
+ * Get the minimum living cost in the provided currency.
16
+ *
17
+ * @return number
18
+ */
19
+ getMin(): number;
20
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i-living-cost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-living-cost.js","sourceRoot":"","sources":["../../../../src/models/compare-programme/i-living-cost.ts"],"names":[],"mappings":""}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CopilotCountryClient = void 0;
4
- const model_client_1 = require("../../model-client");
5
- class CopilotCountryClient extends model_client_1.ModelClient {
1
+ import { ModelClient } from "../../model-client";
2
+ export class CopilotCountryClient extends ModelClient {
6
3
  getModelName() {
7
4
  return 'copilot-country';
8
5
  }
@@ -13,5 +10,4 @@ class CopilotCountryClient extends model_client_1.ModelClient {
13
10
  return false;
14
11
  }
15
12
  }
16
- exports.CopilotCountryClient = CopilotCountryClient;
17
13
  //# sourceMappingURL=copilot-country-client.js.map