@studyportals/domain-client 5.3.2 → 5.4.2

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 (190) hide show
  1. package/index.d.ts +80 -80
  2. package/index.js +59 -59
  3. package/package.json +55 -55
  4. package/src/domain-client.d.ts +14 -14
  5. package/src/domain-client.js +60 -60
  6. package/src/exceptions/bad-request-exception.d.ts +2 -2
  7. package/src/exceptions/bad-request-exception.js +6 -6
  8. package/src/exceptions/client-exception.d.ts +2 -2
  9. package/src/exceptions/client-exception.js +6 -6
  10. package/src/exceptions/internal-server-exception.d.ts +2 -2
  11. package/src/exceptions/internal-server-exception.js +6 -6
  12. package/src/exceptions/not-found-exception.d.ts +2 -2
  13. package/src/exceptions/not-found-exception.js +6 -6
  14. package/src/exceptions/property-not-available-exception.d.ts +2 -2
  15. package/src/exceptions/property-not-available-exception.js +6 -6
  16. package/src/factories/DateFactory.d.ts +5 -5
  17. package/src/factories/DateFactory.js +9 -9
  18. package/src/factories/InternalLinkFactory.d.ts +9 -9
  19. package/src/factories/InternalLinkFactory.js +19 -19
  20. package/src/i-api-response.d.ts +6 -6
  21. package/src/i-api-response.js +2 -2
  22. package/src/i-class-factory.d.ts +4 -4
  23. package/src/i-class-factory.js +2 -2
  24. package/src/i-model-description.d.ts +7 -7
  25. package/src/i-model-description.js +9 -9
  26. package/src/model-client.d.ts +16 -16
  27. package/src/model-client.js +45 -45
  28. package/src/model-factory.d.ts +11 -11
  29. package/src/model-factory.js +71 -71
  30. package/src/models/bestfit-programme/bestfit-programme-client.d.ts +7 -7
  31. package/src/models/bestfit-programme/bestfit-programme-client.js +16 -16
  32. package/src/models/bestfit-programme/i-best-fit-programme.d.ts +82 -82
  33. package/src/models/bestfit-programme/i-best-fit-programme.js +2 -2
  34. package/src/models/bestfit-programme/i-city.d.ts +14 -14
  35. package/src/models/bestfit-programme/i-city.js +2 -2
  36. package/src/models/bestfit-programme/i-living-cost.d.ts +20 -20
  37. package/src/models/bestfit-programme/i-living-cost.js +2 -2
  38. package/src/models/common/i-city.d.ts +14 -14
  39. package/src/models/common/i-city.js +2 -2
  40. package/src/models/common/i-country.d.ts +20 -20
  41. package/src/models/common/i-country.js +2 -2
  42. package/src/models/common/i-english-requirements.d.ts +51 -51
  43. package/src/models/common/i-english-requirements.js +2 -2
  44. package/src/models/common/i-g-p-a-requirement.d.ts +20 -20
  45. package/src/models/common/i-g-p-a-requirement.js +2 -2
  46. package/src/models/common/i-internal-link.d.ts +28 -28
  47. package/src/models/common/i-internal-link.js +2 -2
  48. package/src/models/common/i-logo.d.ts +14 -14
  49. package/src/models/common/i-logo.js +2 -2
  50. package/src/models/common/i-tuition-fee.d.ts +50 -50
  51. package/src/models/common/i-tuition-fee.js +2 -2
  52. package/src/models/copilot-country/copilot-country-client.d.ts +7 -7
  53. package/src/models/copilot-country/copilot-country-client.js +16 -16
  54. package/src/models/copilot-country/i-copilot-country.d.ts +39 -39
  55. package/src/models/copilot-country/i-copilot-country.js +2 -2
  56. package/src/models/copilot-country/i-copilot-ranking-card.d.ts +38 -38
  57. package/src/models/copilot-country/i-copilot-ranking-card.js +2 -2
  58. package/src/models/copilot-programme/copilot-programme-client.d.ts +7 -7
  59. package/src/models/copilot-programme/copilot-programme-client.js +16 -16
  60. package/src/models/copilot-programme/i-copilot-programme.d.ts +125 -125
  61. package/src/models/copilot-programme/i-copilot-programme.js +2 -2
  62. package/src/models/customerio-organisation/customerio-organisation-client.d.ts +7 -7
  63. package/src/models/customerio-organisation/customerio-organisation-client.js +16 -16
  64. package/src/models/customerio-organisation/i-customer-io-organisation.d.ts +35 -35
  65. package/src/models/customerio-organisation/i-customer-io-organisation.js +2 -2
  66. package/src/models/customerio-organisation/i-review.d.ts +7 -7
  67. package/src/models/customerio-organisation/i-review.js +2 -2
  68. package/src/models/customerio-programme/customerio-programme-client.d.ts +7 -7
  69. package/src/models/customerio-programme/customerio-programme-client.js +16 -16
  70. package/src/models/customerio-programme/i-customer-io-programme.d.ts +107 -107
  71. package/src/models/customerio-programme/i-customer-io-programme.js +2 -2
  72. package/src/models/customerio-programme/i-internal-link.d.ts +28 -28
  73. package/src/models/customerio-programme/i-internal-link.js +2 -2
  74. package/src/models/organisation-card/i-organisation-card.d.ts +36 -36
  75. package/src/models/organisation-card/i-organisation-card.js +2 -2
  76. package/src/models/organisation-card/i-ranking-discipline.d.ts +4 -4
  77. package/src/models/organisation-card/i-ranking-discipline.js +2 -2
  78. package/src/models/organisation-card/organisation-card-client.d.ts +7 -7
  79. package/src/models/organisation-card/organisation-card-client.js +16 -16
  80. package/src/models/organisation-for-search/i-organisation-for-search.d.ts +32 -32
  81. package/src/models/organisation-for-search/i-organisation-for-search.js +2 -2
  82. package/src/models/organisation-for-search/public-organisation-for-search-client.d.ts +7 -7
  83. package/src/models/organisation-for-search/public-organisation-for-search-client.js +16 -16
  84. package/src/models/organisation-search-document/i-organisation-search-document.d.ts +122 -122
  85. package/src/models/organisation-search-document/i-organisation-search-document.js +2 -2
  86. package/src/models/organisation-search-document/organisation-search-document-client.d.ts +7 -7
  87. package/src/models/organisation-search-document/organisation-search-document-client.js +16 -16
  88. package/src/models/programme-card/i-click-tracking-data.d.ts +5 -5
  89. package/src/models/programme-card/i-click-tracking-data.js +2 -2
  90. package/src/models/programme-card/i-cover.d.ts +14 -14
  91. package/src/models/programme-card/i-cover.js +2 -2
  92. package/src/models/programme-card/i-deadline.d.ts +20 -20
  93. package/src/models/programme-card/i-deadline.js +2 -2
  94. package/src/models/programme-card/i-duration.d.ts +40 -40
  95. package/src/models/programme-card/i-duration.js +2 -2
  96. package/src/models/programme-card/i-internal-link.d.ts +28 -28
  97. package/src/models/programme-card/i-internal-link.js +2 -2
  98. package/src/models/programme-card/i-link.d.ts +22 -22
  99. package/src/models/programme-card/i-link.js +2 -2
  100. package/src/models/programme-card/i-location.d.ts +12 -12
  101. package/src/models/programme-card/i-location.js +2 -2
  102. package/src/models/programme-card/i-logo.d.ts +14 -14
  103. package/src/models/programme-card/i-logo.js +2 -2
  104. package/src/models/programme-card/i-optional-link.d.ts +23 -23
  105. package/src/models/programme-card/i-optional-link.js +2 -2
  106. package/src/models/programme-card/i-programme-card.d.ts +205 -205
  107. package/src/models/programme-card/i-programme-card.js +2 -2
  108. package/src/models/programme-card/i-start-date.d.ts +33 -33
  109. package/src/models/programme-card/i-start-date.js +2 -2
  110. package/src/models/programme-card/i-timing.d.ts +45 -45
  111. package/src/models/programme-card/i-timing.js +2 -2
  112. package/src/models/programme-card/i-tracked-link.d.ts +29 -29
  113. package/src/models/programme-card/i-tracked-link.js +2 -2
  114. package/src/models/programme-card/i-tracking.d.ts +46 -46
  115. package/src/models/programme-card/i-tracking.js +2 -2
  116. package/src/models/programme-card/i-tuition-fee.d.ts +50 -50
  117. package/src/models/programme-card/i-tuition-fee.js +2 -2
  118. package/src/models/programme-card/programme-card-client.d.ts +7 -7
  119. package/src/models/programme-card/programme-card-client.js +16 -16
  120. package/src/models/ranking-cards/i-ranking.d.ts +18 -18
  121. package/src/models/ranking-cards/i-ranking.js +2 -2
  122. package/src/models/scholarship-card/i-scholarship-card.d.ts +15 -15
  123. package/src/models/scholarship-card/i-scholarship-card.js +2 -2
  124. package/src/models/scholarship-card/public-scholarship-card-client.d.ts +7 -7
  125. package/src/models/scholarship-card/public-scholarship-card-client.js +16 -16
  126. package/src/models/scholarship-card/public-scholarship-card-v2-client.d.ts +7 -0
  127. package/src/models/scholarship-card/public-scholarship-card-v2-client.js +17 -0
  128. package/src/models/scholarship-card/public-scholarship-card-v2-client.js.map +1 -0
  129. package/src/models/scholarship-search-document/i-scholarship-search-document.d.ts +38 -38
  130. package/src/models/scholarship-search-document/i-scholarship-search-document.js +2 -2
  131. package/src/models/scholarship-search-document/scholarship-search-document-client.d.ts +7 -7
  132. package/src/models/scholarship-search-document/scholarship-search-document-client.js +16 -16
  133. package/src/models/search-discipline/i-search-discipline.d.ts +26 -26
  134. package/src/models/search-discipline/i-search-discipline.js +2 -2
  135. package/src/models/search-discipline/public-search-discipline-client.d.ts +7 -7
  136. package/src/models/search-discipline/public-search-discipline-client.js +16 -16
  137. package/src/models/search-projection/i-geo-targeting-configuration.d.ts +38 -38
  138. package/src/models/search-projection/i-geo-targeting-configuration.js +2 -2
  139. package/src/models/search-projection/i-geo-targeting-values.d.ts +30 -30
  140. package/src/models/search-projection/i-geo-targeting-values.js +2 -2
  141. package/src/models/search-projection/i-organisation-values.d.ts +46 -46
  142. package/src/models/search-projection/i-organisation-values.js +2 -2
  143. package/src/models/search-projection/i-premium-values.d.ts +35 -35
  144. package/src/models/search-projection/i-premium-values.js +2 -2
  145. package/src/models/search-projection/i-search-projection.d.ts +186 -186
  146. package/src/models/search-projection/i-search-projection.js +2 -2
  147. package/src/models/search-projection/i-tuition-values.d.ts +50 -50
  148. package/src/models/search-projection/i-tuition-values.js +2 -2
  149. package/src/models/search-projection/search-projection-client.d.ts +7 -7
  150. package/src/models/search-projection/search-projection-client.js +16 -16
  151. package/src/models/sitemap-articles-info/i-sitemap-article-info.d.ts +26 -26
  152. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +2 -2
  153. package/src/models/sitemap-articles-info/sitemap-articles-info-client.d.ts +7 -7
  154. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +16 -16
  155. package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +14 -14
  156. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +2 -2
  157. package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +7 -7
  158. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +16 -16
  159. package/src/models/sitemap-countries-info/i-sitemap-country-info.d.ts +14 -14
  160. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +2 -2
  161. package/src/models/sitemap-countries-info/sitemap-countries-info-client.d.ts +7 -7
  162. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +16 -16
  163. package/src/models/sitemap-country-degree-info/i-degree-info.d.ts +14 -14
  164. package/src/models/sitemap-country-degree-info/i-degree-info.js +2 -2
  165. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +11 -11
  166. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +2 -2
  167. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.d.ts +7 -7
  168. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +16 -16
  169. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.d.ts +14 -14
  170. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +2 -2
  171. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.d.ts +7 -7
  172. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +16 -16
  173. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.d.ts +26 -26
  174. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +2 -2
  175. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.d.ts +7 -7
  176. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +16 -16
  177. package/src/models/sitemap-programme-info/i-sitemap-programme-info.d.ts +26 -26
  178. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +2 -2
  179. package/src/models/sitemap-programme-info/sitemap-programme-info-client.d.ts +7 -7
  180. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +16 -16
  181. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.d.ts +14 -14
  182. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +2 -2
  183. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.d.ts +7 -7
  184. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +16 -16
  185. package/src/types/portal-map.d.ts +2 -2
  186. package/src/types/portal-map.js +2 -2
  187. package/src/types/portal-type.d.ts +7 -7
  188. package/src/types/portal-type.js +11 -11
  189. package/src/types.d.ts +4 -4
  190. package/src/types.js +2 -2
@@ -1,28 +1,28 @@
1
- export interface IInternalLink {
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
- * Returns on which portal a this link should link towards.
12
- *
13
- * @return string
14
- */
15
- getPortalType(): string;
16
- /**
17
- * Get the url to refer to.
18
- *
19
- * Note that the url provided is always a relative URL. A base URL is needed
20
- * to make it a full valid path.
21
- * The only exception is when an external link is provided (meaning, outside
22
- * of StudyPortals-maintained domains). In this case a full url will be
23
- * provided.
24
- *
25
- * @return string
26
- */
27
- getUrl(): string;
28
- }
1
+ export interface IInternalLink {
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
+ * Returns on which portal a this link should link towards.
12
+ *
13
+ * @return string
14
+ */
15
+ getPortalType(): string;
16
+ /**
17
+ * Get the url to refer to.
18
+ *
19
+ * Note that the url provided is always a relative URL. A base URL is needed
20
+ * to make it a full valid path.
21
+ * The only exception is when an external link is provided (meaning, outside
22
+ * of StudyPortals-maintained domains). In this case a full url will be
23
+ * provided.
24
+ *
25
+ * @return string
26
+ */
27
+ getUrl(): string;
28
+ }
@@ -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-internal-link.js.map
@@ -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,12 +1,12 @@
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
- getCountryIso(): string;
11
- hasAreaId(): boolean;
12
- }
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
+ getCountryIso(): string;
11
+ hasAreaId(): boolean;
12
+ }
@@ -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,205 +1,205 @@
1
- import { ICover, IDuration, IEnglishRequirements, IGPARequirement, IInternalLink, ILink, ILivingCost, 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
- * @return number[] | null
25
- */
26
- getDisciplineIds(): number[] | null;
27
- /**
28
- * Get duration of the programme.
29
- *
30
- * @return IDuration
31
- */
32
- getDuration(): IDuration;
33
- canShowDuration(): boolean;
34
- getEnglishRequirements(): IEnglishRequirements | null;
35
- getGPA(): IGPARequirement | null;
36
- /**
37
- * Get the programme id.
38
- *
39
- * @return number
40
- */
41
- getId(): number;
42
- /**
43
- * Get the programme level.
44
- *
45
- * @return string
46
- */
47
- getLevel(): string;
48
- getLivingCost(): ILivingCost | null;
49
- /**
50
- * Get the locaiton the programme is located in.
51
- *
52
- * Uses the country based on the programmes venues.
53
- *
54
- * @return ILocation
55
- */
56
- getLocation(): ILocation;
57
- canShowLocation(): boolean;
58
- /**
59
- * Get the location text the programme is located in
60
- *
61
- * Uses the country based on the programmes venues and isFullyOnline state
62
- *
63
- * @return string | null
64
- */
65
- getLocationText(): string | null;
66
- /**
67
- * Get the Logo of the programme if available.
68
- *
69
- * @return ILogo
70
- */
71
- getLogo(): ILogo;
72
- canShowLogo(): boolean;
73
- /**
74
- * Returns premium type
75
- * Such as Super premium, premium, light, etc..
76
- *
77
- * @return string
78
- */
79
- getPremiumType(): string;
80
- /**
81
- * Get a link to the programme page.
82
- *
83
- * The link contains the page path as url and the programme name as the
84
- * link description.
85
- *
86
- * @return IInternalLink
87
- */
88
- getProgrammeLink(): IInternalLink;
89
- /**
90
- * Get programme's referral link
91
- *
92
- * @return ITrackedLink
93
- */
94
- getReferralLink(): ITrackedLink;
95
- canShowReferralLink(): boolean;
96
- /**
97
- * Get the summary of the programme.
98
- *
99
- * @return string
100
- */
101
- getSummary(): string;
102
- /**
103
- * Get all start dates
104
- *
105
- * @return ITiming[]
106
- */
107
- getTimings(): ITiming[];
108
- canShowTimings(): boolean;
109
- /**
110
- * Get the programme title.
111
- *
112
- * @return string
113
- */
114
- getTitle(): string;
115
- /**
116
- * Get the tracking information needed to track the impression on the card.
117
- *
118
- * @return ITracking
119
- */
120
- getTracking(): ITracking;
121
- /**
122
- * Get all tuition fees of the programme.
123
- *
124
- * @return ITuitionFee[]
125
- */
126
- getTuitionFees(): ITuitionFee[];
127
- canShowTuitionFees(): boolean;
128
- /**
129
- * Get the programme's university global position percentage in Meta Ranking
130
- *
131
- * @return string | null
132
- */
133
- getUniversityGlobalPositionPercentage(): string | null;
134
- /**
135
- * Get the programme's university id
136
- *
137
- * @return number
138
- */
139
- getUniversityId(): number;
140
- /**
141
- * Get a link to the programme's university page.
142
- *
143
- * The link contains the page path as url and the university name as the
144
- * link description.
145
- *
146
- * @return ILink
147
- */
148
- getUniversityLink(): ILink;
149
- getWorkExperienceYears(): number | null;
150
- getEcts(): number | null;
151
- /**
152
- * If a program is both on campus and online
153
- *
154
- * @return boolean
155
- */
156
- isBlended(): boolean;
157
- /**
158
- * If a program is given in fulltime
159
- *
160
- * @return boolean
161
- */
162
- isFullTime(): boolean;
163
- /**
164
- * If a program can only be taught online or not
165
- *
166
- * @return boolean
167
- */
168
- isFullyOnline(): boolean;
169
- /**
170
- * If a program is taught on campus
171
- *
172
- * @return boolean
173
- */
174
- isOnCampus(): boolean;
175
- /**
176
- * If a program can be taught online
177
- *
178
- * @return boolean
179
- */
180
- isOnline(): boolean;
181
- /**
182
- * If a program is given in parttime
183
- *
184
- * @return boolean
185
- */
186
- isPartTime(): boolean;
187
- /**
188
- * Public status of the programme.
189
- *
190
- * @return boolean
191
- */
192
- isPublic(): boolean;
193
- /**
194
- * The last time the programme has been updated and verified
195
- *
196
- * @return Date
197
- */
198
- getLastUpdated(): Date;
199
- /**
200
- * Get the programme's campaign type
201
- *
202
- * @return number
203
- */
204
- getCampaignType(): number | null;
205
- }
1
+ import { ICover, IDuration, IEnglishRequirements, IGPARequirement, IInternalLink, ILink, ILivingCost, 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
+ * @return number[] | null
25
+ */
26
+ getDisciplineIds(): number[] | null;
27
+ /**
28
+ * Get duration of the programme.
29
+ *
30
+ * @return IDuration
31
+ */
32
+ getDuration(): IDuration;
33
+ canShowDuration(): boolean;
34
+ getEnglishRequirements(): IEnglishRequirements | null;
35
+ getGPA(): IGPARequirement | null;
36
+ /**
37
+ * Get the programme id.
38
+ *
39
+ * @return number
40
+ */
41
+ getId(): number;
42
+ /**
43
+ * Get the programme level.
44
+ *
45
+ * @return string
46
+ */
47
+ getLevel(): string;
48
+ getLivingCost(): ILivingCost | null;
49
+ /**
50
+ * Get the locaiton the programme is located in.
51
+ *
52
+ * Uses the country based on the programmes venues.
53
+ *
54
+ * @return ILocation
55
+ */
56
+ getLocation(): ILocation;
57
+ canShowLocation(): boolean;
58
+ /**
59
+ * Get the location text the programme is located in
60
+ *
61
+ * Uses the country based on the programmes venues and isFullyOnline state
62
+ *
63
+ * @return string | null
64
+ */
65
+ getLocationText(): string | null;
66
+ /**
67
+ * Get the Logo of the programme if available.
68
+ *
69
+ * @return ILogo
70
+ */
71
+ getLogo(): ILogo;
72
+ canShowLogo(): boolean;
73
+ /**
74
+ * Returns premium type
75
+ * Such as Super premium, premium, light, etc..
76
+ *
77
+ * @return string
78
+ */
79
+ getPremiumType(): string;
80
+ /**
81
+ * Get a link to the programme page.
82
+ *
83
+ * The link contains the page path as url and the programme name as the
84
+ * link description.
85
+ *
86
+ * @return IInternalLink
87
+ */
88
+ getProgrammeLink(): IInternalLink;
89
+ /**
90
+ * Get programme's referral link
91
+ *
92
+ * @return ITrackedLink
93
+ */
94
+ getReferralLink(): ITrackedLink;
95
+ canShowReferralLink(): boolean;
96
+ /**
97
+ * Get the summary of the programme.
98
+ *
99
+ * @return string
100
+ */
101
+ getSummary(): string;
102
+ /**
103
+ * Get all start dates
104
+ *
105
+ * @return ITiming[]
106
+ */
107
+ getTimings(): ITiming[];
108
+ canShowTimings(): boolean;
109
+ /**
110
+ * Get the programme title.
111
+ *
112
+ * @return string
113
+ */
114
+ getTitle(): string;
115
+ /**
116
+ * Get the tracking information needed to track the impression on the card.
117
+ *
118
+ * @return ITracking
119
+ */
120
+ getTracking(): ITracking;
121
+ /**
122
+ * Get all tuition fees of the programme.
123
+ *
124
+ * @return ITuitionFee[]
125
+ */
126
+ getTuitionFees(): ITuitionFee[];
127
+ canShowTuitionFees(): boolean;
128
+ /**
129
+ * Get the programme's university global position percentage in Meta Ranking
130
+ *
131
+ * @return string | null
132
+ */
133
+ getUniversityGlobalPositionPercentage(): string | null;
134
+ /**
135
+ * Get the programme's university id
136
+ *
137
+ * @return number
138
+ */
139
+ getUniversityId(): number;
140
+ /**
141
+ * Get a link to the programme's university page.
142
+ *
143
+ * The link contains the page path as url and the university name as the
144
+ * link description.
145
+ *
146
+ * @return ILink
147
+ */
148
+ getUniversityLink(): ILink;
149
+ getWorkExperienceYears(): number | null;
150
+ getEcts(): number | null;
151
+ /**
152
+ * If a program is both on campus and online
153
+ *
154
+ * @return boolean
155
+ */
156
+ isBlended(): boolean;
157
+ /**
158
+ * If a program is given in fulltime
159
+ *
160
+ * @return boolean
161
+ */
162
+ isFullTime(): boolean;
163
+ /**
164
+ * If a program can only be taught online or not
165
+ *
166
+ * @return boolean
167
+ */
168
+ isFullyOnline(): boolean;
169
+ /**
170
+ * If a program is taught on campus
171
+ *
172
+ * @return boolean
173
+ */
174
+ isOnCampus(): boolean;
175
+ /**
176
+ * If a program can be taught online
177
+ *
178
+ * @return boolean
179
+ */
180
+ isOnline(): boolean;
181
+ /**
182
+ * If a program is given in parttime
183
+ *
184
+ * @return boolean
185
+ */
186
+ isPartTime(): boolean;
187
+ /**
188
+ * Public status of the programme.
189
+ *
190
+ * @return boolean
191
+ */
192
+ isPublic(): boolean;
193
+ /**
194
+ * The last time the programme has been updated and verified
195
+ *
196
+ * @return Date
197
+ */
198
+ getLastUpdated(): Date;
199
+ /**
200
+ * Get the programme's campaign type
201
+ *
202
+ * @return number
203
+ */
204
+ getCampaignType(): number | null;
205
+ }
@@ -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