@studyportals/domain-client 3.14.0-0 → 3.14.0-schcard.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 (216) hide show
  1. package/index.d.ts +67 -67
  2. package/index.js +49 -49
  3. package/index.js.map +1 -1
  4. package/package.json +55 -55
  5. package/src/domain-client.d.ts +14 -14
  6. package/src/domain-client.js +60 -60
  7. package/src/exceptions/bad-request-exception.d.ts +2 -2
  8. package/src/exceptions/bad-request-exception.js +6 -6
  9. package/src/exceptions/client-exception.d.ts +2 -2
  10. package/src/exceptions/client-exception.js +6 -6
  11. package/src/exceptions/internal-server-exception.d.ts +2 -2
  12. package/src/exceptions/internal-server-exception.js +6 -6
  13. package/src/exceptions/not-found-exception.d.ts +2 -2
  14. package/src/exceptions/not-found-exception.js +6 -6
  15. package/src/exceptions/property-not-available-exception.d.ts +2 -2
  16. package/src/exceptions/property-not-available-exception.js +6 -6
  17. package/src/factories/DateFactory.d.ts +5 -5
  18. package/src/factories/DateFactory.js +9 -9
  19. package/src/factories/InternalLinkFactory.d.ts +9 -9
  20. package/src/factories/InternalLinkFactory.js +19 -19
  21. package/src/i-api-response.d.ts +6 -6
  22. package/src/i-api-response.js +2 -2
  23. package/src/i-class-factory.d.ts +4 -4
  24. package/src/i-class-factory.js +2 -2
  25. package/src/i-model-description.d.ts +7 -7
  26. package/src/i-model-description.js +9 -9
  27. package/src/model-client.d.ts +16 -16
  28. package/src/model-client.js +45 -45
  29. package/src/model-factory.d.ts +11 -11
  30. package/src/model-factory.js +71 -71
  31. package/src/models/bestfit-programme/bestfit-programme-client.d.ts +7 -7
  32. package/src/models/bestfit-programme/bestfit-programme-client.js +16 -16
  33. package/src/models/bestfit-programme/i-best-fit-programme.d.ts +82 -82
  34. package/src/models/bestfit-programme/i-best-fit-programme.js +2 -2
  35. package/src/models/bestfit-programme/i-city.d.ts +14 -14
  36. package/src/models/bestfit-programme/i-city.js +2 -2
  37. package/src/models/{compare-programme → bestfit-programme}/i-english-requirements.d.ts +37 -44
  38. package/src/models/{compare-programme/i-compare-programme.js → bestfit-programme/i-english-requirements.js} +3 -3
  39. package/src/models/bestfit-programme/i-english-requirements.js.map +1 -0
  40. package/src/models/bestfit-programme/i-g-p-a-requirement.d.ts +20 -20
  41. package/src/models/bestfit-programme/i-g-p-a-requirement.js +2 -2
  42. package/src/models/bestfit-programme/i-living-cost.d.ts +20 -20
  43. package/src/models/bestfit-programme/i-living-cost.js +2 -2
  44. package/src/models/{compare-programme → bestfit-programme}/i-tuition-fee.d.ts +50 -50
  45. package/src/models/{compare-programme/i-deadline.js → bestfit-programme/i-tuition-fee.js} +3 -3
  46. package/src/models/bestfit-programme/i-tuition-fee.js.map +1 -0
  47. package/src/models/common/i-city.d.ts +14 -14
  48. package/src/models/common/i-city.js +2 -2
  49. package/src/models/common/i-country.d.ts +14 -14
  50. package/src/models/common/i-country.js +2 -2
  51. package/src/models/common/i-english-requirements.d.ts +30 -37
  52. package/src/models/common/i-english-requirements.js +2 -2
  53. package/src/models/common/i-internal-link.d.ts +28 -28
  54. package/src/models/common/i-internal-link.js +2 -2
  55. package/src/models/common/i-logo.d.ts +14 -14
  56. package/src/models/common/i-logo.js +2 -2
  57. package/src/models/common/i-tuition-fee.d.ts +50 -50
  58. package/src/models/common/i-tuition-fee.js +2 -2
  59. package/src/models/dotdigital-organisation/dotdigital-organisation-client.d.ts +7 -7
  60. package/src/models/dotdigital-organisation/dotdigital-organisation-client.js +16 -16
  61. package/src/models/dotdigital-organisation/i-city.d.ts +14 -0
  62. package/src/models/{compare-programme/i-link.js → dotdigital-organisation/i-city.js} +3 -3
  63. package/src/models/dotdigital-organisation/i-city.js.map +1 -0
  64. package/src/models/dotdigital-organisation/i-country.d.ts +14 -0
  65. package/src/models/{compare-programme/i-timing.js → dotdigital-organisation/i-country.js} +3 -3
  66. package/src/models/dotdigital-organisation/i-country.js.map +1 -0
  67. package/src/models/dotdigital-organisation/i-dot-digital-organisation.d.ts +35 -35
  68. package/src/models/dotdigital-organisation/i-dot-digital-organisation.js +2 -2
  69. package/src/models/dotdigital-organisation/i-review.d.ts +7 -7
  70. package/src/models/dotdigital-organisation/i-review.js +2 -2
  71. package/src/models/dotdigital-programme/dotdigital-programme-client.d.ts +7 -7
  72. package/src/models/dotdigital-programme/dotdigital-programme-client.js +16 -16
  73. package/src/models/dotdigital-programme/i-country.d.ts +14 -0
  74. package/src/models/{compare-programme/i-duration.js → dotdigital-programme/i-country.js} +3 -3
  75. package/src/models/dotdigital-programme/i-country.js.map +1 -0
  76. package/src/models/dotdigital-programme/i-dot-digital-programme.d.ts +89 -89
  77. package/src/models/dotdigital-programme/i-dot-digital-programme.js +2 -2
  78. package/src/models/dotdigital-programme/i-english-requirements.d.ts +37 -0
  79. package/src/models/{compare-programme/i-g-p-a-requirement.js → dotdigital-programme/i-english-requirements.js} +3 -3
  80. package/src/models/dotdigital-programme/i-english-requirements.js.map +1 -0
  81. package/src/models/dotdigital-programme/i-internal-link.d.ts +28 -28
  82. package/src/models/dotdigital-programme/i-internal-link.js +2 -2
  83. package/src/models/dotdigital-programme/i-logo.d.ts +14 -0
  84. package/src/models/{compare-programme/i-location.js → dotdigital-programme/i-logo.js} +3 -3
  85. package/src/models/dotdigital-programme/i-logo.js.map +1 -0
  86. package/src/models/dotdigital-programme/i-tuition-fee.d.ts +50 -0
  87. package/src/models/dotdigital-programme/i-tuition-fee.js +3 -0
  88. package/src/models/dotdigital-programme/i-tuition-fee.js.map +1 -0
  89. package/src/models/programme-card/i-click-tracking-data.d.ts +5 -5
  90. package/src/models/programme-card/i-click-tracking-data.js +2 -2
  91. package/src/models/programme-card/i-cover.d.ts +14 -14
  92. package/src/models/programme-card/i-cover.js +2 -2
  93. package/src/models/programme-card/i-deadline.d.ts +20 -20
  94. package/src/models/programme-card/i-deadline.js +2 -2
  95. package/src/models/programme-card/i-duration.d.ts +40 -40
  96. package/src/models/programme-card/i-duration.js +2 -2
  97. package/src/models/programme-card/i-internal-link.d.ts +28 -28
  98. package/src/models/programme-card/i-internal-link.js +2 -2
  99. package/src/models/programme-card/i-link.d.ts +22 -22
  100. package/src/models/programme-card/i-link.js +2 -2
  101. package/src/models/programme-card/i-location.d.ts +11 -11
  102. package/src/models/programme-card/i-location.js +2 -2
  103. package/src/models/programme-card/i-logo.d.ts +14 -14
  104. package/src/models/programme-card/i-logo.js +2 -2
  105. package/src/models/programme-card/i-optional-link.d.ts +23 -23
  106. package/src/models/programme-card/i-optional-link.js +2 -2
  107. package/src/models/programme-card/i-programme-card.d.ts +178 -177
  108. package/src/models/programme-card/i-programme-card.js +2 -2
  109. package/src/models/programme-card/i-start-date.d.ts +33 -33
  110. package/src/models/programme-card/i-start-date.js +2 -2
  111. package/src/models/programme-card/i-timing.d.ts +45 -45
  112. package/src/models/programme-card/i-timing.js +2 -2
  113. package/src/models/programme-card/i-tracked-link.d.ts +29 -29
  114. package/src/models/programme-card/i-tracked-link.js +2 -2
  115. package/src/models/programme-card/i-tracking.d.ts +46 -46
  116. package/src/models/programme-card/i-tracking.js +2 -2
  117. package/src/models/programme-card/i-tuition-fee.d.ts +50 -50
  118. package/src/models/programme-card/i-tuition-fee.js +2 -2
  119. package/src/models/programme-card/programme-card-client.d.ts +7 -7
  120. package/src/models/programme-card/programme-card-client.js +16 -16
  121. package/src/models/scholarship-card/i-scholarship-card.d.ts +46 -0
  122. package/src/models/{compare-programme/i-living-cost.js → scholarship-card/i-scholarship-card.js} +3 -3
  123. package/src/models/scholarship-card/i-scholarship-card.js.map +1 -0
  124. package/src/models/{compare-programme/compare-programme-client.d.ts → scholarship-card/public-scholarship-card-client.d.ts} +7 -7
  125. package/src/models/scholarship-card/public-scholarship-card-client.js +17 -0
  126. package/src/models/scholarship-card/public-scholarship-card-client.js.map +1 -0
  127. package/src/models/search-country-faq/i-search-country-faq.d.ts +18 -18
  128. package/src/models/search-country-faq/i-search-country-faq.js +2 -2
  129. package/src/models/search-country-faq/public-search-country-faq-client.d.ts +7 -7
  130. package/src/models/search-country-faq/public-search-country-faq-client.js +16 -16
  131. package/src/models/search-discipline/i-search-discipline.d.ts +26 -26
  132. package/src/models/search-discipline/i-search-discipline.js +2 -2
  133. package/src/models/search-discipline/public-search-discipline-client.d.ts +7 -7
  134. package/src/models/search-discipline/public-search-discipline-client.js +16 -16
  135. package/src/models/search-projection/i-geo-targeting-configuration.d.ts +38 -38
  136. package/src/models/search-projection/i-geo-targeting-configuration.js +2 -2
  137. package/src/models/search-projection/i-geo-targeting-values.d.ts +30 -30
  138. package/src/models/search-projection/i-geo-targeting-values.js +2 -2
  139. package/src/models/search-projection/i-organisation-values.d.ts +40 -40
  140. package/src/models/search-projection/i-organisation-values.js +2 -2
  141. package/src/models/search-projection/i-premium-values.d.ts +35 -35
  142. package/src/models/search-projection/i-premium-values.js +2 -2
  143. package/src/models/search-projection/i-search-projection.d.ts +180 -180
  144. package/src/models/search-projection/i-search-projection.js +2 -2
  145. package/src/models/search-projection/i-tuition-values.d.ts +50 -50
  146. package/src/models/search-projection/i-tuition-values.js +2 -2
  147. package/src/models/search-projection/search-projection-client.d.ts +7 -7
  148. package/src/models/search-projection/search-projection-client.js +16 -16
  149. package/src/models/sitemap-articles-info/i-sitemap-article-info.d.ts +14 -14
  150. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +2 -2
  151. package/src/models/sitemap-articles-info/sitemap-articles-info-client.d.ts +7 -7
  152. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +16 -16
  153. package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +14 -14
  154. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +2 -2
  155. package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +7 -7
  156. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +16 -16
  157. package/src/models/sitemap-countries-info/i-sitemap-country-info.d.ts +14 -14
  158. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +2 -2
  159. package/src/models/sitemap-countries-info/sitemap-countries-info-client.d.ts +7 -7
  160. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +16 -16
  161. package/src/models/sitemap-country-degree-info/i-degree-info.d.ts +14 -14
  162. package/src/models/sitemap-country-degree-info/i-degree-info.js +2 -2
  163. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +11 -11
  164. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +2 -2
  165. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.d.ts +7 -7
  166. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +16 -16
  167. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.d.ts +14 -14
  168. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +2 -2
  169. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.d.ts +7 -7
  170. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +16 -16
  171. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.d.ts +26 -26
  172. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +2 -2
  173. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.d.ts +7 -7
  174. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +16 -16
  175. package/src/models/sitemap-programme-info/i-sitemap-programme-info.d.ts +26 -26
  176. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +2 -2
  177. package/src/models/sitemap-programme-info/sitemap-programme-info-client.d.ts +7 -7
  178. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +16 -16
  179. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.d.ts +14 -14
  180. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +2 -2
  181. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.d.ts +7 -7
  182. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +16 -16
  183. package/src/types/portal-map.d.ts +2 -2
  184. package/src/types/portal-map.js +2 -2
  185. package/src/types/portal-type.d.ts +7 -7
  186. package/src/types/portal-type.js +11 -11
  187. package/src/types.d.ts +4 -4
  188. package/src/types.js +2 -2
  189. package/src/models/compare-programme/compare-programme-client.js +0 -17
  190. package/src/models/compare-programme/compare-programme-client.js.map +0 -1
  191. package/src/models/compare-programme/i-compare-programme.d.ts +0 -86
  192. package/src/models/compare-programme/i-compare-programme.js.map +0 -1
  193. package/src/models/compare-programme/i-deadline.d.ts +0 -20
  194. package/src/models/compare-programme/i-deadline.js.map +0 -1
  195. package/src/models/compare-programme/i-duration.d.ts +0 -40
  196. package/src/models/compare-programme/i-duration.js.map +0 -1
  197. package/src/models/compare-programme/i-english-requirements.js +0 -3
  198. package/src/models/compare-programme/i-english-requirements.js.map +0 -1
  199. package/src/models/compare-programme/i-g-p-a-requirement.d.ts +0 -20
  200. package/src/models/compare-programme/i-g-p-a-requirement.js.map +0 -1
  201. package/src/models/compare-programme/i-link.d.ts +0 -22
  202. package/src/models/compare-programme/i-link.js.map +0 -1
  203. package/src/models/compare-programme/i-living-cost.d.ts +0 -20
  204. package/src/models/compare-programme/i-living-cost.js.map +0 -1
  205. package/src/models/compare-programme/i-location.d.ts +0 -11
  206. package/src/models/compare-programme/i-location.js.map +0 -1
  207. package/src/models/compare-programme/i-optional-link.d.ts +0 -23
  208. package/src/models/compare-programme/i-optional-link.js +0 -3
  209. package/src/models/compare-programme/i-optional-link.js.map +0 -1
  210. package/src/models/compare-programme/i-start-date.d.ts +0 -33
  211. package/src/models/compare-programme/i-start-date.js +0 -3
  212. package/src/models/compare-programme/i-start-date.js.map +0 -1
  213. package/src/models/compare-programme/i-timing.d.ts +0 -45
  214. package/src/models/compare-programme/i-timing.js.map +0 -1
  215. package/src/models/compare-programme/i-tuition-fee.js +0 -3
  216. package/src/models/compare-programme/i-tuition-fee.js.map +0 -1
@@ -1,22 +1,22 @@
1
- export interface ILink {
2
- /**
3
- * Get an optional text describing the link (typically <a>-tags contents).
4
- *
5
- * @return string
6
- * @throws PropertyNotAvailableException
7
- */
8
- getDescription(): string;
9
- canShowDescription(): boolean;
10
- /**
11
- * Get the url to refer to.
12
- *
13
- * Note that the url provided is always a relative URL. A base URL is needed
14
- * to make it a full valid path.
15
- * The only exception is when an external link is provided (meaning, outside
16
- * of StudyPortals-maintained domains). In this case a full url will be
17
- * provided.
18
- *
19
- * @return string
20
- */
21
- getUrl(): string;
22
- }
1
+ export interface ILink {
2
+ /**
3
+ * Get an optional text describing the link (typically <a>-tags contents).
4
+ *
5
+ * @return string
6
+ * @throws PropertyNotAvailableException
7
+ */
8
+ getDescription(): string;
9
+ canShowDescription(): boolean;
10
+ /**
11
+ * Get the url to refer to.
12
+ *
13
+ * Note that the url provided is always a relative URL. A base URL is needed
14
+ * to make it a full valid path.
15
+ * The only exception is when an external link is provided (meaning, outside
16
+ * of StudyPortals-maintained domains). In this case a full url will be
17
+ * provided.
18
+ *
19
+ * @return string
20
+ */
21
+ getUrl(): string;
22
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=i-link.js.map
@@ -1,11 +1,11 @@
1
- import { IOptionalLink } from "../../..";
2
- export interface ILocation {
3
- getArea(): IOptionalLink;
4
- canShowArea(): boolean;
5
- getAreaId(): number;
6
- getCity(): IOptionalLink;
7
- getCityId(): number;
8
- getCountry(): IOptionalLink;
9
- getCountryId(): number;
10
- hasAreaId(): boolean;
11
- }
1
+ import { IOptionalLink } from "../../..";
2
+ export interface ILocation {
3
+ getArea(): IOptionalLink;
4
+ canShowArea(): boolean;
5
+ getAreaId(): number;
6
+ getCity(): IOptionalLink;
7
+ getCityId(): number;
8
+ getCountry(): IOptionalLink;
9
+ getCountryId(): number;
10
+ hasAreaId(): boolean;
11
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=i-location.js.map
@@ -1,14 +1,14 @@
1
- export interface ILogo {
2
- /**
3
- * Get the file ID of the logo.
4
- *
5
- * @return number
6
- */
7
- getId(): number;
8
- /**
9
- * Get the imgix URL of the logo.
10
- *
11
- * @return string
12
- */
13
- getSource(): string;
14
- }
1
+ export interface ILogo {
2
+ /**
3
+ * Get the file ID of the logo.
4
+ *
5
+ * @return number
6
+ */
7
+ getId(): number;
8
+ /**
9
+ * Get the imgix URL of the logo.
10
+ *
11
+ * @return string
12
+ */
13
+ getSource(): string;
14
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=i-logo.js.map
@@ -1,23 +1,23 @@
1
- export interface IOptionalLink {
2
- /**
3
- * Get an optional text describing the link (typically <a>-tags contents).
4
- *
5
- * @return string
6
- * @throws PropertyNotAvailableException
7
- */
8
- getDescription(): string;
9
- canShowDescription(): boolean;
10
- /**
11
- * Get the url to refer to.
12
- *
13
- * Note that the url provided is always a relative URL. A base URL is needed
14
- * to make it a full valid path.
15
- * The only exception is when an external link is provided (meaning, outside
16
- * of StudyPortals-maintained domains). In this case a full url will be
17
- * provided.
18
- *
19
- * @return string
20
- */
21
- getUrl(): string;
22
- canShowUrl(): boolean;
23
- }
1
+ export interface IOptionalLink {
2
+ /**
3
+ * Get an optional text describing the link (typically <a>-tags contents).
4
+ *
5
+ * @return string
6
+ * @throws PropertyNotAvailableException
7
+ */
8
+ getDescription(): string;
9
+ canShowDescription(): boolean;
10
+ /**
11
+ * Get the url to refer to.
12
+ *
13
+ * Note that the url provided is always a relative URL. A base URL is needed
14
+ * to make it a full valid path.
15
+ * The only exception is when an external link is provided (meaning, outside
16
+ * of StudyPortals-maintained domains). In this case a full url will be
17
+ * provided.
18
+ *
19
+ * @return string
20
+ */
21
+ getUrl(): string;
22
+ canShowUrl(): boolean;
23
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=i-optional-link.js.map
@@ -1,177 +1,178 @@
1
- import { ICover, IDuration, IInternalLink, ILink, ILocation, ILogo, ITiming, ITrackedLink, ITracking, ITuitionFee } from "../../..";
2
- export interface IProgrammeCard {
3
- /**
4
- * ISO code of the country the programme is taught.
5
- * Formatted in UPPERCASE
6
- *
7
- * @return string | null
8
- */
9
- getCountryIsoCode(): string | null;
10
- /**
11
- * Get the Cover of the programme if available.
12
- *
13
- * @return ICover
14
- */
15
- getCover(): ICover;
16
- canShowCover(): boolean;
17
- /**
18
- * Get the degree name of the programme.
19
- *
20
- * @return string
21
- */
22
- getDegree(): string;
23
- /**
24
- * Get duration of the programme.
25
- *
26
- * @return IDuration
27
- */
28
- getDuration(): IDuration;
29
- canShowDuration(): boolean;
30
- /**
31
- * Get the programme id.
32
- *
33
- * @return number
34
- */
35
- getId(): number;
36
- /**
37
- * Get the programme level.
38
- *
39
- * @return string
40
- */
41
- getLevel(): string;
42
- /**
43
- * Get the locaiton the programme is located in.
44
- *
45
- * Uses the country based on the programmes venues.
46
- *
47
- * @return ILocation
48
- */
49
- getLocation(): ILocation;
50
- canShowLocation(): boolean;
51
- /**
52
- * Get the location text the programme is located in
53
- *
54
- * Uses the country based on the programmes venues and isFullyOnline state
55
- *
56
- * @return string | null
57
- */
58
- getLocationText(): string | null;
59
- /**
60
- * Get the Logo of the programme if available.
61
- *
62
- * @return ILogo
63
- */
64
- getLogo(): ILogo;
65
- canShowLogo(): boolean;
66
- /**
67
- * Returns premium type
68
- * Such as Super premium, premium, light, etc..
69
- *
70
- * @return string
71
- */
72
- getPremiumType(): string;
73
- /**
74
- * Get a link to the programme page.
75
- *
76
- * The link contains the page path as url and the programme name as the
77
- * link description.
78
- *
79
- * @return IInternalLink
80
- */
81
- getProgrammeLink(): IInternalLink;
82
- /**
83
- * Get programme's referral link
84
- *
85
- * @return ITrackedLink
86
- */
87
- getReferralLink(): ITrackedLink;
88
- canShowReferralLink(): boolean;
89
- /**
90
- * Get the summary of the programme.
91
- *
92
- * @return string
93
- */
94
- getSummary(): string;
95
- /**
96
- * Get all start dates
97
- *
98
- * @return ITiming[]
99
- */
100
- getTimings(): ITiming[];
101
- canShowTimings(): boolean;
102
- /**
103
- * Get the programme title.
104
- *
105
- * @return string
106
- */
107
- getTitle(): string;
108
- /**
109
- * Get the tracking information needed to track the impression on the card.
110
- *
111
- * @return ITracking
112
- */
113
- getTracking(): ITracking;
114
- /**
115
- * Get all tuition fees of the programme.
116
- * @return ITuitionFee[]
117
- */
118
- getTuitionFees(): ITuitionFee[];
119
- canShowTuitionFees(): boolean;
120
- /**
121
- * Get the programme's university id
122
- *
123
- * @return number
124
- */
125
- getUniversityId(): number;
126
- /**
127
- * Get a link to the programme's university page.
128
- *
129
- * The link contains the page path as url and the university name as the
130
- * link description.
131
- *
132
- * @return ILink
133
- */
134
- getUniversityLink(): ILink;
135
- /**
136
- * If a program is both on campus and online
137
- *
138
- * @return boolean
139
- */
140
- isBlended(): boolean;
141
- /**
142
- * If a program is given in fulltime
143
- *
144
- * @return boolean
145
- */
146
- isFullTime(): boolean;
147
- /**
148
- * If a program can only be taught online or not
149
- *
150
- * @return boolean
151
- */
152
- isFullyOnline(): boolean;
153
- /**
154
- * If a program is taught on campus
155
- *
156
- * @return boolean
157
- */
158
- isOnCampus(): boolean;
159
- /**
160
- * If a program can be taught online
161
- *
162
- * @return boolean
163
- */
164
- isOnline(): boolean;
165
- /**
166
- * If a program is given in parttime
167
- *
168
- * @return boolean
169
- */
170
- isPartTime(): boolean;
171
- /**
172
- * Public status of the programme.
173
- *
174
- * @return boolean
175
- */
176
- isPublic(): boolean;
177
- }
1
+ import { ICover, IDuration, IInternalLink, ILink, ILocation, ILogo, ITiming, ITrackedLink, ITracking, ITuitionFee } from "../../..";
2
+ export interface IProgrammeCard {
3
+ /**
4
+ * ISO code of the country the programme is taught.
5
+ * Formatted in UPPERCASE
6
+ *
7
+ * @return string | null
8
+ */
9
+ getCountryIsoCode(): string | null;
10
+ /**
11
+ * Get the Cover of the programme if available.
12
+ *
13
+ * @return ICover
14
+ */
15
+ getCover(): ICover;
16
+ canShowCover(): boolean;
17
+ /**
18
+ * Get the degree name of the programme.
19
+ *
20
+ * @return string
21
+ */
22
+ getDegree(): string;
23
+ /**
24
+ * Get duration of the programme.
25
+ *
26
+ * @return IDuration
27
+ */
28
+ getDuration(): IDuration;
29
+ canShowDuration(): boolean;
30
+ /**
31
+ * Get the programme id.
32
+ *
33
+ * @return number
34
+ */
35
+ getId(): number;
36
+ /**
37
+ * Get the programme level.
38
+ *
39
+ * @return string
40
+ */
41
+ getLevel(): string;
42
+ /**
43
+ * Get the locaiton the programme is located in.
44
+ *
45
+ * Uses the country based on the programmes venues.
46
+ *
47
+ * @return ILocation
48
+ */
49
+ getLocation(): ILocation;
50
+ canShowLocation(): boolean;
51
+ /**
52
+ * Get the location text the programme is located in
53
+ *
54
+ * Uses the country based on the programmes venues and isFullyOnline state
55
+ *
56
+ * @return string | null
57
+ */
58
+ getLocationText(): string | null;
59
+ /**
60
+ * Get the Logo of the programme if available.
61
+ *
62
+ * @return ILogo
63
+ */
64
+ getLogo(): ILogo;
65
+ canShowLogo(): boolean;
66
+ /**
67
+ * Returns premium type
68
+ * Such as Super premium, premium, light, etc..
69
+ *
70
+ * @return string
71
+ */
72
+ getPremiumType(): string;
73
+ /**
74
+ * Get a link to the programme page.
75
+ *
76
+ * The link contains the page path as url and the programme name as the
77
+ * link description.
78
+ *
79
+ * @return IInternalLink
80
+ */
81
+ getProgrammeLink(): IInternalLink;
82
+ /**
83
+ * Get programme's referral link
84
+ *
85
+ * @return ITrackedLink
86
+ */
87
+ getReferralLink(): ITrackedLink;
88
+ canShowReferralLink(): boolean;
89
+ /**
90
+ * Get the summary of the programme.
91
+ *
92
+ * @return string
93
+ */
94
+ getSummary(): string;
95
+ /**
96
+ * Get all start dates
97
+ *
98
+ * @return ITiming[]
99
+ */
100
+ getTimings(): ITiming[];
101
+ canShowTimings(): boolean;
102
+ /**
103
+ * Get the programme title.
104
+ *
105
+ * @return string
106
+ */
107
+ getTitle(): string;
108
+ /**
109
+ * Get the tracking information needed to track the impression on the card.
110
+ *
111
+ * @return ITracking
112
+ */
113
+ getTracking(): ITracking;
114
+ /**
115
+ * Get all tuition fees of the programme.
116
+ *
117
+ * @return ITuitionFee[]
118
+ */
119
+ getTuitionFees(): ITuitionFee[];
120
+ canShowTuitionFees(): boolean;
121
+ /**
122
+ * Get the programme's university id
123
+ *
124
+ * @return number
125
+ */
126
+ getUniversityId(): number;
127
+ /**
128
+ * Get a link to the programme's university page.
129
+ *
130
+ * The link contains the page path as url and the university name as the
131
+ * link description.
132
+ *
133
+ * @return ILink
134
+ */
135
+ getUniversityLink(): ILink;
136
+ /**
137
+ * If a program is both on campus and online
138
+ *
139
+ * @return boolean
140
+ */
141
+ isBlended(): boolean;
142
+ /**
143
+ * If a program is given in fulltime
144
+ *
145
+ * @return boolean
146
+ */
147
+ isFullTime(): boolean;
148
+ /**
149
+ * If a program can only be taught online or not
150
+ *
151
+ * @return boolean
152
+ */
153
+ isFullyOnline(): boolean;
154
+ /**
155
+ * If a program is taught on campus
156
+ *
157
+ * @return boolean
158
+ */
159
+ isOnCampus(): boolean;
160
+ /**
161
+ * If a program can be taught online
162
+ *
163
+ * @return boolean
164
+ */
165
+ isOnline(): boolean;
166
+ /**
167
+ * If a program is given in parttime
168
+ *
169
+ * @return boolean
170
+ */
171
+ isPartTime(): boolean;
172
+ /**
173
+ * Public status of the programme.
174
+ *
175
+ * @return boolean
176
+ */
177
+ isPublic(): boolean;
178
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=i-programme-card.js.map
@@ -1,33 +1,33 @@
1
- import { IDeadline } from "../../..";
2
- export interface IStartDate {
3
- /**
4
- * Get the date the programme starts on.
5
- *
6
- * @return Date
7
- */
8
- getDate(): Date;
9
- /**
10
- * Get a list of deadlines that apply to this start date.
11
- *
12
- * Note: In case of extendable start dates, all information in the
13
- * Deadline objects has already been extended to the first available start
14
- * date.
15
- *
16
- * @return IDeadline[]
17
- * @throws PropertyNotAvailableException
18
- */
19
- getDeadlines(): IDeadline[];
20
- canShowDeadlines(): boolean;
21
- /**
22
- * True if you can apply at any time for this programme (rolling admission)
23
- *
24
- * @return boolean
25
- */
26
- isApplyingAnytime(): boolean;
27
- /**
28
- * True if the start date has passed (you can't start at this date anymore).
29
- *
30
- * @return boolean
31
- */
32
- isPassed(): boolean;
33
- }
1
+ import { IDeadline } from "../../..";
2
+ export interface IStartDate {
3
+ /**
4
+ * Get the date the programme starts on.
5
+ *
6
+ * @return Date
7
+ */
8
+ getDate(): Date;
9
+ /**
10
+ * Get a list of deadlines that apply to this start date.
11
+ *
12
+ * Note: In case of extendable start dates, all information in the
13
+ * Deadline objects has already been extended to the first available start
14
+ * date.
15
+ *
16
+ * @return IDeadline[]
17
+ * @throws PropertyNotAvailableException
18
+ */
19
+ getDeadlines(): IDeadline[];
20
+ canShowDeadlines(): boolean;
21
+ /**
22
+ * True if you can apply at any time for this programme (rolling admission)
23
+ *
24
+ * @return boolean
25
+ */
26
+ isApplyingAnytime(): boolean;
27
+ /**
28
+ * True if the start date has passed (you can't start at this date anymore).
29
+ *
30
+ * @return boolean
31
+ */
32
+ isPassed(): boolean;
33
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=i-start-date.js.map