@studyportals/domain-client 10.1.0 → 10.3.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 (76) hide show
  1. package/package.json +1 -1
  2. package/protobuf/Credits.d.ts +17 -0
  3. package/protobuf/Credits.js +54 -0
  4. package/protobuf/DisciplineDescription.d.ts +16 -0
  5. package/protobuf/DisciplineDescription.js +45 -0
  6. package/protobuf/DisciplineEssentialInformation.d.ts +17 -0
  7. package/protobuf/DisciplineEssentialInformation.js +54 -0
  8. package/protobuf/Language.d.ts +16 -0
  9. package/protobuf/Language.js +54 -0
  10. package/protobuf/OrganisationReview.d.ts +13 -0
  11. package/protobuf/OrganisationReview.js +42 -0
  12. package/protobuf/PartnerApi/PartnerApiScholarship.d.ts +1 -0
  13. package/protobuf/PartnerApi/PartnerApiScholarship.js +8 -2
  14. package/protobuf/Programme/AcademicRequirements.d.ts +15 -0
  15. package/protobuf/Programme/AcademicRequirements.js +41 -0
  16. package/protobuf/Programme/BannerTargeting.d.ts +11 -0
  17. package/protobuf/Programme/BannerTargeting.js +31 -0
  18. package/protobuf/Programme/CourseInstance.d.ts +21 -0
  19. package/protobuf/Programme/CourseInstance.js +83 -0
  20. package/protobuf/Programme/DeliveryMethod.d.ts +19 -0
  21. package/protobuf/Programme/DeliveryMethod.js +76 -0
  22. package/protobuf/Programme/DisciplineList.d.ts +13 -0
  23. package/protobuf/Programme/DisciplineList.js +37 -0
  24. package/protobuf/Programme/InsuranceConfiguration.d.ts +9 -0
  25. package/protobuf/Programme/InsuranceConfiguration.js +20 -0
  26. package/protobuf/Programme/Intensity.d.ts +18 -0
  27. package/protobuf/Programme/Intensity.js +57 -0
  28. package/protobuf/Programme/LandingPageLink.d.ts +12 -0
  29. package/protobuf/Programme/LandingPageLink.js +34 -0
  30. package/protobuf/Programme/LivingCostDetails.d.ts +12 -0
  31. package/protobuf/Programme/LivingCostDetails.js +29 -0
  32. package/protobuf/Programme/Media.d.ts +24 -0
  33. package/protobuf/Programme/Media.js +87 -0
  34. package/protobuf/Programme/PartTimeDuration.d.ts +18 -0
  35. package/protobuf/Programme/PartTimeDuration.js +54 -0
  36. package/protobuf/Programme/Programme.d.ts +111 -0
  37. package/protobuf/Programme/Programme.js +376 -0
  38. package/protobuf/Programme/ProgrammeDescription.d.ts +17 -0
  39. package/protobuf/Programme/ProgrammeDescription.js +59 -0
  40. package/protobuf/Programme/ProgrammeEnglishRequirements.d.ts +14 -0
  41. package/protobuf/Programme/ProgrammeEnglishRequirements.js +40 -0
  42. package/protobuf/Programme/ProgrammeEssentialInformation.d.ts +27 -0
  43. package/protobuf/Programme/ProgrammeEssentialInformation.js +111 -0
  44. package/protobuf/Programme/Provider.d.ts +18 -0
  45. package/protobuf/Programme/Provider.js +56 -0
  46. package/protobuf/Programme/QuickFacts.d.ts +19 -0
  47. package/protobuf/Programme/QuickFacts.js +56 -0
  48. package/protobuf/Programme/RemarketingUserTag.d.ts +12 -0
  49. package/protobuf/Programme/RemarketingUserTag.js +36 -0
  50. package/protobuf/Programme/Requirements.d.ts +19 -0
  51. package/protobuf/Programme/Requirements.js +70 -0
  52. package/protobuf/Programme/Score.d.ts +10 -0
  53. package/protobuf/Programme/Score.js +26 -0
  54. package/protobuf/Programme/StartDate.d.ts +15 -0
  55. package/protobuf/Programme/StartDate.js +43 -0
  56. package/protobuf/Programme/StartDateDomain.d.ts +13 -0
  57. package/protobuf/Programme/StartDateDomain.js +55 -0
  58. package/protobuf/Programme/StructuredData.d.ts +20 -0
  59. package/protobuf/Programme/StructuredData.js +67 -0
  60. package/protobuf/Programme/Summary.d.ts +12 -0
  61. package/protobuf/Programme/Summary.js +34 -0
  62. package/protobuf/Programme/TestCard.d.ts +12 -0
  63. package/protobuf/Programme/TestCard.js +32 -0
  64. package/protobuf/Programme/TestProviderConfiguration.d.ts +14 -0
  65. package/protobuf/Programme/TestProviderConfiguration.js +42 -0
  66. package/protobuf/Programme/TuitionFeeDetails.d.ts +17 -0
  67. package/protobuf/Programme/TuitionFeeDetails.js +48 -0
  68. package/protobuf/Programme/Venue.d.ts +15 -0
  69. package/protobuf/Programme/Venue.js +46 -0
  70. package/protobuf/Programme/VenueList.d.ts +12 -0
  71. package/protobuf/Programme/VenueList.js +32 -0
  72. package/protobuf/SimpleTrackedLink.d.ts +14 -0
  73. package/protobuf/SimpleTrackedLink.js +42 -0
  74. package/protobuf/google/protobuf/duration.d.ts +83 -0
  75. package/protobuf/google/protobuf/duration.js +26 -0
  76. package/src/models/search-projection/i-search-projection.d.ts +6 -0
@@ -0,0 +1,42 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/TestProviderConfiguration.proto
6
+ export const TestProviderConfiguration = {
7
+ fromJSON(object) {
8
+ return {
9
+ canShowIeltsAd: isSet(object.canShowIeltsAd) ? globalThis.Boolean(object.canShowIeltsAd) : false,
10
+ canShowIeltsExtras: isSet(object.canShowIeltsExtras) ? globalThis.Boolean(object.canShowIeltsExtras) : false,
11
+ canShowToeflAd: isSet(object.canShowToeflAd) ? globalThis.Boolean(object.canShowToeflAd) : false,
12
+ canShowToeflExtras: isSet(object.canShowToeflExtras) ? globalThis.Boolean(object.canShowToeflExtras) : false,
13
+ canShowGreAd: isSet(object.canShowGreAd) ? globalThis.Boolean(object.canShowGreAd) : false,
14
+ canShowGreExtras: isSet(object.canShowGreExtras) ? globalThis.Boolean(object.canShowGreExtras) : false,
15
+ };
16
+ },
17
+ toJSON(message) {
18
+ const obj = {};
19
+ if (message.canShowIeltsAd !== false) {
20
+ obj.canShowIeltsAd = message.canShowIeltsAd;
21
+ }
22
+ if (message.canShowIeltsExtras !== false) {
23
+ obj.canShowIeltsExtras = message.canShowIeltsExtras;
24
+ }
25
+ if (message.canShowToeflAd !== false) {
26
+ obj.canShowToeflAd = message.canShowToeflAd;
27
+ }
28
+ if (message.canShowToeflExtras !== false) {
29
+ obj.canShowToeflExtras = message.canShowToeflExtras;
30
+ }
31
+ if (message.canShowGreAd !== false) {
32
+ obj.canShowGreAd = message.canShowGreAd;
33
+ }
34
+ if (message.canShowGreExtras !== false) {
35
+ obj.canShowGreExtras = message.canShowGreExtras;
36
+ }
37
+ return obj;
38
+ },
39
+ };
40
+ function isSet(value) {
41
+ return value !== null && value !== undefined;
42
+ }
@@ -0,0 +1,17 @@
1
+ import { RichText } from "../RichText.js";
2
+ import { TrackedLink } from "../TrackedLink.js";
3
+ import { TuitionFee } from "../TuitionFee.js";
4
+ export interface TuitionFeeDetails {
5
+ description?: RichText | undefined;
6
+ canShowDescription: boolean;
7
+ tuitionFees: TuitionFee[];
8
+ canShowTuitionFees: boolean;
9
+ websiteLink?: TrackedLink | undefined;
10
+ canShowWebsiteLink: boolean;
11
+ }
12
+ export declare const TuitionFeeDetails: MessageFns<TuitionFeeDetails>;
13
+ interface MessageFns<T> {
14
+ fromJSON(object: any): T;
15
+ toJSON(message: T): unknown;
16
+ }
17
+ export {};
@@ -0,0 +1,48 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/TuitionFeeDetails.proto
6
+ /* eslint-disable */
7
+ import { RichText } from "../RichText.js";
8
+ import { TrackedLink } from "../TrackedLink.js";
9
+ import { TuitionFee } from "../TuitionFee.js";
10
+ export const TuitionFeeDetails = {
11
+ fromJSON(object) {
12
+ return {
13
+ description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
14
+ canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
15
+ tuitionFees: globalThis.Array.isArray(object?.tuitionFees)
16
+ ? object.tuitionFees.map((e) => TuitionFee.fromJSON(e))
17
+ : [],
18
+ canShowTuitionFees: isSet(object.canShowTuitionFees) ? globalThis.Boolean(object.canShowTuitionFees) : false,
19
+ websiteLink: isSet(object.websiteLink) ? TrackedLink.fromJSON(object.websiteLink) : undefined,
20
+ canShowWebsiteLink: isSet(object.canShowWebsiteLink) ? globalThis.Boolean(object.canShowWebsiteLink) : false,
21
+ };
22
+ },
23
+ toJSON(message) {
24
+ const obj = {};
25
+ if (message.description !== undefined) {
26
+ obj.description = RichText.toJSON(message.description);
27
+ }
28
+ if (message.canShowDescription !== false) {
29
+ obj.canShowDescription = message.canShowDescription;
30
+ }
31
+ if (message.tuitionFees?.length) {
32
+ obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee.toJSON(e));
33
+ }
34
+ if (message.canShowTuitionFees !== false) {
35
+ obj.canShowTuitionFees = message.canShowTuitionFees;
36
+ }
37
+ if (message.websiteLink !== undefined) {
38
+ obj.websiteLink = TrackedLink.toJSON(message.websiteLink);
39
+ }
40
+ if (message.canShowWebsiteLink !== false) {
41
+ obj.canShowWebsiteLink = message.canShowWebsiteLink;
42
+ }
43
+ return obj;
44
+ },
45
+ };
46
+ function isSet(value) {
47
+ return value !== null && value !== undefined;
48
+ }
@@ -0,0 +1,15 @@
1
+ export interface Venue {
2
+ id: number;
3
+ cityId: number;
4
+ cityName: string;
5
+ areaCode?: string | undefined;
6
+ canShowAreaCode: boolean;
7
+ countryId: number;
8
+ countryName: string;
9
+ }
10
+ export declare const Venue: MessageFns<Venue>;
11
+ interface MessageFns<T> {
12
+ fromJSON(object: any): T;
13
+ toJSON(message: T): unknown;
14
+ }
15
+ export {};
@@ -0,0 +1,46 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/Venue.proto
6
+ export const Venue = {
7
+ fromJSON(object) {
8
+ return {
9
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
+ cityId: isSet(object.cityId) ? globalThis.Number(object.cityId) : 0,
11
+ cityName: isSet(object.cityName) ? globalThis.String(object.cityName) : "",
12
+ areaCode: isSet(object.areaCode) ? globalThis.String(object.areaCode) : undefined,
13
+ canShowAreaCode: isSet(object.canShowAreaCode) ? globalThis.Boolean(object.canShowAreaCode) : false,
14
+ countryId: isSet(object.countryId) ? globalThis.Number(object.countryId) : 0,
15
+ countryName: isSet(object.countryName) ? globalThis.String(object.countryName) : "",
16
+ };
17
+ },
18
+ toJSON(message) {
19
+ const obj = {};
20
+ if (message.id !== 0) {
21
+ obj.id = Math.round(message.id);
22
+ }
23
+ if (message.cityId !== 0) {
24
+ obj.cityId = Math.round(message.cityId);
25
+ }
26
+ if (message.cityName !== "") {
27
+ obj.cityName = message.cityName;
28
+ }
29
+ if (message.areaCode !== undefined) {
30
+ obj.areaCode = message.areaCode;
31
+ }
32
+ if (message.canShowAreaCode !== false) {
33
+ obj.canShowAreaCode = message.canShowAreaCode;
34
+ }
35
+ if (message.countryId !== 0) {
36
+ obj.countryId = Math.round(message.countryId);
37
+ }
38
+ if (message.countryName !== "") {
39
+ obj.countryName = message.countryName;
40
+ }
41
+ return obj;
42
+ },
43
+ };
44
+ function isSet(value) {
45
+ return value !== null && value !== undefined;
46
+ }
@@ -0,0 +1,12 @@
1
+ import { Venue } from "./Venue.js";
2
+ export interface VenueList {
3
+ isFullyOnline: boolean;
4
+ venues: Venue[];
5
+ canShowVenues: boolean;
6
+ }
7
+ export declare const VenueList: MessageFns<VenueList>;
8
+ interface MessageFns<T> {
9
+ fromJSON(object: any): T;
10
+ toJSON(message: T): unknown;
11
+ }
12
+ export {};
@@ -0,0 +1,32 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/VenueList.proto
6
+ /* eslint-disable */
7
+ import { Venue } from "./Venue.js";
8
+ export const VenueList = {
9
+ fromJSON(object) {
10
+ return {
11
+ isFullyOnline: isSet(object.isFullyOnline) ? globalThis.Boolean(object.isFullyOnline) : false,
12
+ venues: globalThis.Array.isArray(object?.venues) ? object.venues.map((e) => Venue.fromJSON(e)) : [],
13
+ canShowVenues: isSet(object.canShowVenues) ? globalThis.Boolean(object.canShowVenues) : false,
14
+ };
15
+ },
16
+ toJSON(message) {
17
+ const obj = {};
18
+ if (message.isFullyOnline !== false) {
19
+ obj.isFullyOnline = message.isFullyOnline;
20
+ }
21
+ if (message.venues?.length) {
22
+ obj.venues = message.venues.map((e) => Venue.toJSON(e));
23
+ }
24
+ if (message.canShowVenues !== false) {
25
+ obj.canShowVenues = message.canShowVenues;
26
+ }
27
+ return obj;
28
+ },
29
+ };
30
+ function isSet(value) {
31
+ return value !== null && value !== undefined;
32
+ }
@@ -0,0 +1,14 @@
1
+ export interface SimpleTrackedLink {
2
+ url: string;
3
+ action: string;
4
+ type: string;
5
+ description: string;
6
+ label: string;
7
+ id: number;
8
+ }
9
+ export declare const SimpleTrackedLink: MessageFns<SimpleTrackedLink>;
10
+ interface MessageFns<T> {
11
+ fromJSON(object: any): T;
12
+ toJSON(message: T): unknown;
13
+ }
14
+ export {};
@@ -0,0 +1,42 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: SimpleTrackedLink.proto
6
+ export const SimpleTrackedLink = {
7
+ fromJSON(object) {
8
+ return {
9
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
10
+ action: isSet(object.action) ? globalThis.String(object.action) : "",
11
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
12
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
13
+ label: isSet(object.label) ? globalThis.String(object.label) : "",
14
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
15
+ };
16
+ },
17
+ toJSON(message) {
18
+ const obj = {};
19
+ if (message.url !== "") {
20
+ obj.url = message.url;
21
+ }
22
+ if (message.action !== "") {
23
+ obj.action = message.action;
24
+ }
25
+ if (message.type !== "") {
26
+ obj.type = message.type;
27
+ }
28
+ if (message.description !== "") {
29
+ obj.description = message.description;
30
+ }
31
+ if (message.label !== "") {
32
+ obj.label = message.label;
33
+ }
34
+ if (message.id !== 0) {
35
+ obj.id = Math.round(message.id);
36
+ }
37
+ return obj;
38
+ },
39
+ };
40
+ function isSet(value) {
41
+ return value !== null && value !== undefined;
42
+ }
@@ -0,0 +1,83 @@
1
+ /**
2
+ * A Duration represents a signed, fixed-length span of time represented
3
+ * as a count of seconds and fractions of seconds at nanosecond
4
+ * resolution. It is independent of any calendar and concepts like "day"
5
+ * or "month". It is related to Timestamp in that the difference between
6
+ * two Timestamp values is a Duration and it can be added or subtracted
7
+ * from a Timestamp. Range is approximately +-10,000 years.
8
+ *
9
+ * # Examples
10
+ *
11
+ * Example 1: Compute Duration from two Timestamps in pseudo code.
12
+ *
13
+ * Timestamp start = ...;
14
+ * Timestamp end = ...;
15
+ * Duration duration = ...;
16
+ *
17
+ * duration.seconds = end.seconds - start.seconds;
18
+ * duration.nanos = end.nanos - start.nanos;
19
+ *
20
+ * if (duration.seconds < 0 && duration.nanos > 0) {
21
+ * duration.seconds += 1;
22
+ * duration.nanos -= 1000000000;
23
+ * } else if (duration.seconds > 0 && duration.nanos < 0) {
24
+ * duration.seconds -= 1;
25
+ * duration.nanos += 1000000000;
26
+ * }
27
+ *
28
+ * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
29
+ *
30
+ * Timestamp start = ...;
31
+ * Duration duration = ...;
32
+ * Timestamp end = ...;
33
+ *
34
+ * end.seconds = start.seconds + duration.seconds;
35
+ * end.nanos = start.nanos + duration.nanos;
36
+ *
37
+ * if (end.nanos < 0) {
38
+ * end.seconds -= 1;
39
+ * end.nanos += 1000000000;
40
+ * } else if (end.nanos >= 1000000000) {
41
+ * end.seconds += 1;
42
+ * end.nanos -= 1000000000;
43
+ * }
44
+ *
45
+ * Example 3: Compute Duration from datetime.timedelta in Python.
46
+ *
47
+ * td = datetime.timedelta(days=3, minutes=10)
48
+ * duration = Duration()
49
+ * duration.FromTimedelta(td)
50
+ *
51
+ * # JSON Mapping
52
+ *
53
+ * In JSON format, the Duration type is encoded as a string rather than an
54
+ * object, where the string ends in the suffix "s" (indicating seconds) and
55
+ * is preceded by the number of seconds, with nanoseconds expressed as
56
+ * fractional seconds. For example, 3 seconds with 0 nanoseconds should be
57
+ * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
58
+ * be expressed in JSON format as "3.000000001s", and 3 seconds and 1
59
+ * microsecond should be expressed in JSON format as "3.000001s".
60
+ */
61
+ export interface Duration {
62
+ /**
63
+ * Signed seconds of the span of time. Must be from -315,576,000,000
64
+ * to +315,576,000,000 inclusive. Note: these bounds are computed from:
65
+ * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
66
+ */
67
+ seconds: number;
68
+ /**
69
+ * Signed fractions of a second at nanosecond resolution of the span
70
+ * of time. Durations less than one second are represented with a 0
71
+ * `seconds` field and a positive or negative `nanos` field. For durations
72
+ * of one second or more, a non-zero value for the `nanos` field must be
73
+ * of the same sign as the `seconds` field. Must be from -999,999,999
74
+ * to +999,999,999 inclusive.
75
+ */
76
+ nanos: number;
77
+ }
78
+ export declare const Duration: MessageFns<Duration>;
79
+ interface MessageFns<T> {
80
+ fromJSON(object: any): T;
81
+ toJSON(message: T): unknown;
82
+ }
83
+ export {};
@@ -0,0 +1,26 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: google/protobuf/duration.proto
6
+ export const Duration = {
7
+ fromJSON(object) {
8
+ return {
9
+ seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
10
+ nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
11
+ };
12
+ },
13
+ toJSON(message) {
14
+ const obj = {};
15
+ if (message.seconds !== 0) {
16
+ obj.seconds = Math.round(message.seconds);
17
+ }
18
+ if (message.nanos !== 0) {
19
+ obj.nanos = Math.round(message.nanos);
20
+ }
21
+ return obj;
22
+ },
23
+ };
24
+ function isSet(value) {
25
+ return value !== null && value !== undefined;
26
+ }
@@ -30,6 +30,12 @@ export interface ISearchProjection {
30
30
  * @return string[]
31
31
  */
32
32
  getCountryIsoCodes(): string[];
33
+ /**
34
+ * Gets the ISO code of the main location of the organisation
35
+ *
36
+ * @return string|null
37
+ */
38
+ getCountryIsoCodeOfMainLocation(): string | null;
33
39
  /**
34
40
  * Unformatted degree of the programme.
35
41
  *