@studyportals/domain-client 10.2.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 (75) 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
@@ -0,0 +1,76 @@
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/DeliveryMethod.proto
6
+ export const DeliveryMethod = {
7
+ fromJSON(object) {
8
+ return {
9
+ isOnline: isSet(object.isOnline) ? globalThis.Boolean(object.isOnline) : false,
10
+ isBlended: isSet(object.isBlended) ? globalThis.Boolean(object.isBlended) : false,
11
+ isOnCampus: isSet(object.isOnCampus) ? globalThis.Boolean(object.isOnCampus) : false,
12
+ canShowTimeFlexibility: isSet(object.canShowTimeFlexibility)
13
+ ? globalThis.Boolean(object.canShowTimeFlexibility)
14
+ : false,
15
+ timeFlexibility: globalThis.Array.isArray(object?.timeFlexibility)
16
+ ? object.timeFlexibility.map((e) => globalThis.String(e))
17
+ : [],
18
+ canShowTeacherSupport: isSet(object.canShowTeacherSupport)
19
+ ? globalThis.Boolean(object.canShowTeacherSupport)
20
+ : false,
21
+ teacherSupport: globalThis.Array.isArray(object?.teacherSupport)
22
+ ? object.teacherSupport.map((e) => globalThis.String(e))
23
+ : [],
24
+ canShowStudentInteractions: isSet(object.canShowStudentInteractions)
25
+ ? globalThis.Boolean(object.canShowStudentInteractions)
26
+ : false,
27
+ studentInteractions: globalThis.Array.isArray(object?.studentInteractions)
28
+ ? object.studentInteractions.map((e) => globalThis.String(e))
29
+ : [],
30
+ canShowAttendances: isSet(object.canShowAttendances) ? globalThis.Boolean(object.canShowAttendances) : false,
31
+ attendances: globalThis.Array.isArray(object?.attendances)
32
+ ? object.attendances.map((e) => globalThis.String(e))
33
+ : [],
34
+ };
35
+ },
36
+ toJSON(message) {
37
+ const obj = {};
38
+ if (message.isOnline !== false) {
39
+ obj.isOnline = message.isOnline;
40
+ }
41
+ if (message.isBlended !== false) {
42
+ obj.isBlended = message.isBlended;
43
+ }
44
+ if (message.isOnCampus !== false) {
45
+ obj.isOnCampus = message.isOnCampus;
46
+ }
47
+ if (message.canShowTimeFlexibility !== false) {
48
+ obj.canShowTimeFlexibility = message.canShowTimeFlexibility;
49
+ }
50
+ if (message.timeFlexibility?.length) {
51
+ obj.timeFlexibility = message.timeFlexibility;
52
+ }
53
+ if (message.canShowTeacherSupport !== false) {
54
+ obj.canShowTeacherSupport = message.canShowTeacherSupport;
55
+ }
56
+ if (message.teacherSupport?.length) {
57
+ obj.teacherSupport = message.teacherSupport;
58
+ }
59
+ if (message.canShowStudentInteractions !== false) {
60
+ obj.canShowStudentInteractions = message.canShowStudentInteractions;
61
+ }
62
+ if (message.studentInteractions?.length) {
63
+ obj.studentInteractions = message.studentInteractions;
64
+ }
65
+ if (message.canShowAttendances !== false) {
66
+ obj.canShowAttendances = message.canShowAttendances;
67
+ }
68
+ if (message.attendances?.length) {
69
+ obj.attendances = message.attendances;
70
+ }
71
+ return obj;
72
+ },
73
+ };
74
+ function isSet(value) {
75
+ return value !== null && value !== undefined;
76
+ }
@@ -0,0 +1,13 @@
1
+ import { Link } from "../Link.js";
2
+ import { LandingPageLink } from "./LandingPageLink.js";
3
+ export interface DisciplineList {
4
+ disciplineLinks: Link[];
5
+ landingPageLink?: LandingPageLink | undefined;
6
+ canShowLandingPageLink: boolean;
7
+ }
8
+ export declare const DisciplineList: MessageFns<DisciplineList>;
9
+ interface MessageFns<T> {
10
+ fromJSON(object: any): T;
11
+ toJSON(message: T): unknown;
12
+ }
13
+ export {};
@@ -0,0 +1,37 @@
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/DisciplineList.proto
6
+ /* eslint-disable */
7
+ import { Link } from "../Link.js";
8
+ import { LandingPageLink } from "./LandingPageLink.js";
9
+ export const DisciplineList = {
10
+ fromJSON(object) {
11
+ return {
12
+ disciplineLinks: globalThis.Array.isArray(object?.disciplineLinks)
13
+ ? object.disciplineLinks.map((e) => Link.fromJSON(e))
14
+ : [],
15
+ landingPageLink: isSet(object.landingPageLink) ? LandingPageLink.fromJSON(object.landingPageLink) : undefined,
16
+ canShowLandingPageLink: isSet(object.canShowLandingPageLink)
17
+ ? globalThis.Boolean(object.canShowLandingPageLink)
18
+ : false,
19
+ };
20
+ },
21
+ toJSON(message) {
22
+ const obj = {};
23
+ if (message.disciplineLinks?.length) {
24
+ obj.disciplineLinks = message.disciplineLinks.map((e) => Link.toJSON(e));
25
+ }
26
+ if (message.landingPageLink !== undefined) {
27
+ obj.landingPageLink = LandingPageLink.toJSON(message.landingPageLink);
28
+ }
29
+ if (message.canShowLandingPageLink !== false) {
30
+ obj.canShowLandingPageLink = message.canShowLandingPageLink;
31
+ }
32
+ return obj;
33
+ },
34
+ };
35
+ function isSet(value) {
36
+ return value !== null && value !== undefined;
37
+ }
@@ -0,0 +1,9 @@
1
+ export interface InsuranceConfiguration {
2
+ canShowAon: boolean;
3
+ }
4
+ export declare const InsuranceConfiguration: MessageFns<InsuranceConfiguration>;
5
+ interface MessageFns<T> {
6
+ fromJSON(object: any): T;
7
+ toJSON(message: T): unknown;
8
+ }
9
+ export {};
@@ -0,0 +1,20 @@
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/InsuranceConfiguration.proto
6
+ export const InsuranceConfiguration = {
7
+ fromJSON(object) {
8
+ return { canShowAon: isSet(object.canShowAon) ? globalThis.Boolean(object.canShowAon) : false };
9
+ },
10
+ toJSON(message) {
11
+ const obj = {};
12
+ if (message.canShowAon !== false) {
13
+ obj.canShowAon = message.canShowAon;
14
+ }
15
+ return obj;
16
+ },
17
+ };
18
+ function isSet(value) {
19
+ return value !== null && value !== undefined;
20
+ }
@@ -0,0 +1,18 @@
1
+ import { Duration } from "../Duration.js";
2
+ import { PartTimeDuration } from "./PartTimeDuration.js";
3
+ export interface Intensity {
4
+ isFullTime: boolean;
5
+ isOnlyFullTime: boolean;
6
+ isPartTime: boolean;
7
+ isOnlyPartTime: boolean;
8
+ fullTimeDuration?: Duration | undefined;
9
+ partTimeDuration?: PartTimeDuration | undefined;
10
+ canShowFullTimeDuration: boolean;
11
+ canShowPartTimeDuration: boolean;
12
+ }
13
+ export declare const Intensity: MessageFns<Intensity>;
14
+ interface MessageFns<T> {
15
+ fromJSON(object: any): T;
16
+ toJSON(message: T): unknown;
17
+ }
18
+ export {};
@@ -0,0 +1,57 @@
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/Intensity.proto
6
+ /* eslint-disable */
7
+ import { Duration } from "../Duration.js";
8
+ import { PartTimeDuration } from "./PartTimeDuration.js";
9
+ export const Intensity = {
10
+ fromJSON(object) {
11
+ return {
12
+ isFullTime: isSet(object.isFullTime) ? globalThis.Boolean(object.isFullTime) : false,
13
+ isOnlyFullTime: isSet(object.isOnlyFullTime) ? globalThis.Boolean(object.isOnlyFullTime) : false,
14
+ isPartTime: isSet(object.isPartTime) ? globalThis.Boolean(object.isPartTime) : false,
15
+ isOnlyPartTime: isSet(object.isOnlyPartTime) ? globalThis.Boolean(object.isOnlyPartTime) : false,
16
+ fullTimeDuration: isSet(object.fullTimeDuration) ? Duration.fromJSON(object.fullTimeDuration) : undefined,
17
+ partTimeDuration: isSet(object.partTimeDuration) ? PartTimeDuration.fromJSON(object.partTimeDuration) : undefined,
18
+ canShowFullTimeDuration: isSet(object.canShowFullTimeDuration)
19
+ ? globalThis.Boolean(object.canShowFullTimeDuration)
20
+ : false,
21
+ canShowPartTimeDuration: isSet(object.canShowPartTimeDuration)
22
+ ? globalThis.Boolean(object.canShowPartTimeDuration)
23
+ : false,
24
+ };
25
+ },
26
+ toJSON(message) {
27
+ const obj = {};
28
+ if (message.isFullTime !== false) {
29
+ obj.isFullTime = message.isFullTime;
30
+ }
31
+ if (message.isOnlyFullTime !== false) {
32
+ obj.isOnlyFullTime = message.isOnlyFullTime;
33
+ }
34
+ if (message.isPartTime !== false) {
35
+ obj.isPartTime = message.isPartTime;
36
+ }
37
+ if (message.isOnlyPartTime !== false) {
38
+ obj.isOnlyPartTime = message.isOnlyPartTime;
39
+ }
40
+ if (message.fullTimeDuration !== undefined) {
41
+ obj.fullTimeDuration = Duration.toJSON(message.fullTimeDuration);
42
+ }
43
+ if (message.partTimeDuration !== undefined) {
44
+ obj.partTimeDuration = PartTimeDuration.toJSON(message.partTimeDuration);
45
+ }
46
+ if (message.canShowFullTimeDuration !== false) {
47
+ obj.canShowFullTimeDuration = message.canShowFullTimeDuration;
48
+ }
49
+ if (message.canShowPartTimeDuration !== false) {
50
+ obj.canShowPartTimeDuration = message.canShowPartTimeDuration;
51
+ }
52
+ return obj;
53
+ },
54
+ };
55
+ function isSet(value) {
56
+ return value !== null && value !== undefined;
57
+ }
@@ -0,0 +1,12 @@
1
+ export interface LandingPageLink {
2
+ url: string;
3
+ amountOfResults: number;
4
+ disciplineName: string;
5
+ countryName: string;
6
+ }
7
+ export declare const LandingPageLink: MessageFns<LandingPageLink>;
8
+ interface MessageFns<T> {
9
+ fromJSON(object: any): T;
10
+ toJSON(message: T): unknown;
11
+ }
12
+ export {};
@@ -0,0 +1,34 @@
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/LandingPageLink.proto
6
+ export const LandingPageLink = {
7
+ fromJSON(object) {
8
+ return {
9
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
10
+ amountOfResults: isSet(object.amountOfResults) ? globalThis.Number(object.amountOfResults) : 0,
11
+ disciplineName: isSet(object.disciplineName) ? globalThis.String(object.disciplineName) : "",
12
+ countryName: isSet(object.countryName) ? globalThis.String(object.countryName) : "",
13
+ };
14
+ },
15
+ toJSON(message) {
16
+ const obj = {};
17
+ if (message.url !== "") {
18
+ obj.url = message.url;
19
+ }
20
+ if (message.amountOfResults !== 0) {
21
+ obj.amountOfResults = Math.round(message.amountOfResults);
22
+ }
23
+ if (message.disciplineName !== "") {
24
+ obj.disciplineName = message.disciplineName;
25
+ }
26
+ if (message.countryName !== "") {
27
+ obj.countryName = message.countryName;
28
+ }
29
+ return obj;
30
+ },
31
+ };
32
+ function isSet(value) {
33
+ return value !== null && value !== undefined;
34
+ }
@@ -0,0 +1,12 @@
1
+ import { LivingCost } from "../LivingCost.js";
2
+ import { Location } from "../Location.js";
3
+ export interface LivingCostDetails {
4
+ cost?: LivingCost | undefined;
5
+ location?: Location | undefined;
6
+ }
7
+ export declare const LivingCostDetails: MessageFns<LivingCostDetails>;
8
+ interface MessageFns<T> {
9
+ fromJSON(object: any): T;
10
+ toJSON(message: T): unknown;
11
+ }
12
+ export {};
@@ -0,0 +1,29 @@
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/LivingCostDetails.proto
6
+ /* eslint-disable */
7
+ import { LivingCost } from "../LivingCost.js";
8
+ import { Location } from "../Location.js";
9
+ export const LivingCostDetails = {
10
+ fromJSON(object) {
11
+ return {
12
+ cost: isSet(object.cost) ? LivingCost.fromJSON(object.cost) : undefined,
13
+ location: isSet(object.location) ? Location.fromJSON(object.location) : undefined,
14
+ };
15
+ },
16
+ toJSON(message) {
17
+ const obj = {};
18
+ if (message.cost !== undefined) {
19
+ obj.cost = LivingCost.toJSON(message.cost);
20
+ }
21
+ if (message.location !== undefined) {
22
+ obj.location = Location.toJSON(message.location);
23
+ }
24
+ return obj;
25
+ },
26
+ };
27
+ function isSet(value) {
28
+ return value !== null && value !== undefined;
29
+ }
@@ -0,0 +1,24 @@
1
+ export interface Media {
2
+ id: number;
3
+ type: Media_MediaType;
4
+ title: string;
5
+ canShowTitle: boolean;
6
+ description?: string | undefined;
7
+ canShowDescription: boolean;
8
+ source?: string | undefined;
9
+ thumbnailSource?: string | undefined;
10
+ }
11
+ export declare enum Media_MediaType {
12
+ MEDIA_TYPE_UNSPECIFIED = 0,
13
+ PHOTO = 1,
14
+ VIDEO = 2,
15
+ UNRECOGNIZED = -1
16
+ }
17
+ export declare function media_MediaTypeFromJSON(object: any): Media_MediaType;
18
+ export declare function media_MediaTypeToJSON(object: Media_MediaType): string;
19
+ export declare const Media: MessageFns<Media>;
20
+ interface MessageFns<T> {
21
+ fromJSON(object: any): T;
22
+ toJSON(message: T): unknown;
23
+ }
24
+ export {};
@@ -0,0 +1,87 @@
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/Media.proto
6
+ export var Media_MediaType;
7
+ (function (Media_MediaType) {
8
+ Media_MediaType[Media_MediaType["MEDIA_TYPE_UNSPECIFIED"] = 0] = "MEDIA_TYPE_UNSPECIFIED";
9
+ Media_MediaType[Media_MediaType["PHOTO"] = 1] = "PHOTO";
10
+ Media_MediaType[Media_MediaType["VIDEO"] = 2] = "VIDEO";
11
+ Media_MediaType[Media_MediaType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
12
+ })(Media_MediaType || (Media_MediaType = {}));
13
+ export function media_MediaTypeFromJSON(object) {
14
+ switch (object) {
15
+ case 0:
16
+ case "MEDIA_TYPE_UNSPECIFIED":
17
+ return Media_MediaType.MEDIA_TYPE_UNSPECIFIED;
18
+ case 1:
19
+ case "PHOTO":
20
+ return Media_MediaType.PHOTO;
21
+ case 2:
22
+ case "VIDEO":
23
+ return Media_MediaType.VIDEO;
24
+ case -1:
25
+ case "UNRECOGNIZED":
26
+ default:
27
+ return Media_MediaType.UNRECOGNIZED;
28
+ }
29
+ }
30
+ export function media_MediaTypeToJSON(object) {
31
+ switch (object) {
32
+ case Media_MediaType.MEDIA_TYPE_UNSPECIFIED:
33
+ return "MEDIA_TYPE_UNSPECIFIED";
34
+ case Media_MediaType.PHOTO:
35
+ return "PHOTO";
36
+ case Media_MediaType.VIDEO:
37
+ return "VIDEO";
38
+ case Media_MediaType.UNRECOGNIZED:
39
+ default:
40
+ return "UNRECOGNIZED";
41
+ }
42
+ }
43
+ export const Media = {
44
+ fromJSON(object) {
45
+ return {
46
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
47
+ type: isSet(object.type) ? media_MediaTypeFromJSON(object.type) : 0,
48
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
49
+ canShowTitle: isSet(object.canShowTitle) ? globalThis.Boolean(object.canShowTitle) : false,
50
+ description: isSet(object.description) ? globalThis.String(object.description) : undefined,
51
+ canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
52
+ source: isSet(object.source) ? globalThis.String(object.source) : undefined,
53
+ thumbnailSource: isSet(object.thumbnailSource) ? globalThis.String(object.thumbnailSource) : undefined,
54
+ };
55
+ },
56
+ toJSON(message) {
57
+ const obj = {};
58
+ if (message.id !== 0) {
59
+ obj.id = Math.round(message.id);
60
+ }
61
+ if (message.type !== 0) {
62
+ obj.type = media_MediaTypeToJSON(message.type);
63
+ }
64
+ if (message.title !== "") {
65
+ obj.title = message.title;
66
+ }
67
+ if (message.canShowTitle !== false) {
68
+ obj.canShowTitle = message.canShowTitle;
69
+ }
70
+ if (message.description !== undefined) {
71
+ obj.description = message.description;
72
+ }
73
+ if (message.canShowDescription !== false) {
74
+ obj.canShowDescription = message.canShowDescription;
75
+ }
76
+ if (message.source !== undefined) {
77
+ obj.source = message.source;
78
+ }
79
+ if (message.thumbnailSource !== undefined) {
80
+ obj.thumbnailSource = message.thumbnailSource;
81
+ }
82
+ return obj;
83
+ },
84
+ };
85
+ function isSet(value) {
86
+ return value !== null && value !== undefined;
87
+ }
@@ -0,0 +1,18 @@
1
+ import { Duration } from "../Duration.js";
2
+ export interface PartTimeDuration {
3
+ duration?: Duration | undefined;
4
+ isFlexible: boolean;
5
+ intensity?: number | undefined;
6
+ canShowIntensity: boolean;
7
+ variants: SLVariant[];
8
+ }
9
+ export interface SLVariant {
10
+ value: string;
11
+ }
12
+ export declare const PartTimeDuration: MessageFns<PartTimeDuration>;
13
+ export declare const SLVariant: MessageFns<SLVariant>;
14
+ interface MessageFns<T> {
15
+ fromJSON(object: any): T;
16
+ toJSON(message: T): unknown;
17
+ }
18
+ export {};
@@ -0,0 +1,54 @@
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/PartTimeDuration.proto
6
+ /* eslint-disable */
7
+ import { Duration } from "../Duration.js";
8
+ export const PartTimeDuration = {
9
+ fromJSON(object) {
10
+ return {
11
+ duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
12
+ isFlexible: isSet(object.isFlexible) ? globalThis.Boolean(object.isFlexible) : false,
13
+ intensity: isSet(object.intensity) ? globalThis.Number(object.intensity) : undefined,
14
+ canShowIntensity: isSet(object.canShowIntensity) ? globalThis.Boolean(object.canShowIntensity) : false,
15
+ variants: globalThis.Array.isArray(object?.variants)
16
+ ? object.variants.map((e) => SLVariant.fromJSON(e))
17
+ : [],
18
+ };
19
+ },
20
+ toJSON(message) {
21
+ const obj = {};
22
+ if (message.duration !== undefined) {
23
+ obj.duration = Duration.toJSON(message.duration);
24
+ }
25
+ if (message.isFlexible !== false) {
26
+ obj.isFlexible = message.isFlexible;
27
+ }
28
+ if (message.intensity !== undefined) {
29
+ obj.intensity = Math.round(message.intensity);
30
+ }
31
+ if (message.canShowIntensity !== false) {
32
+ obj.canShowIntensity = message.canShowIntensity;
33
+ }
34
+ if (message.variants?.length) {
35
+ obj.variants = message.variants.map((e) => SLVariant.toJSON(e));
36
+ }
37
+ return obj;
38
+ },
39
+ };
40
+ export const SLVariant = {
41
+ fromJSON(object) {
42
+ return { value: isSet(object.value) ? globalThis.String(object.value) : "" };
43
+ },
44
+ toJSON(message) {
45
+ const obj = {};
46
+ if (message.value !== "") {
47
+ obj.value = message.value;
48
+ }
49
+ return obj;
50
+ },
51
+ };
52
+ function isSet(value) {
53
+ return value !== null && value !== undefined;
54
+ }
@@ -0,0 +1,111 @@
1
+ import { CampaignInformation } from "../CampaignInformation.js";
2
+ import { CommercialEntity } from "../CommercialEntity.js";
3
+ import { Credits } from "../Credits.js";
4
+ import { Discipline } from "../Discipline.js";
5
+ import { File } from "../File.js";
6
+ import { Languages } from "../Language.js";
7
+ import { Link } from "../Link.js";
8
+ import { OrganisationInformation } from "../OrganisationInformation.js";
9
+ import { ProgrammeCard } from "../ProgrammeCard.js";
10
+ import { RichText } from "../RichText.js";
11
+ import { MiniScholarshipCard } from "../Scholarship/MiniScholarshipCard.js";
12
+ import { TrackedLink } from "../TrackedLink.js";
13
+ import { Unibuddy } from "../Unibuddy.js";
14
+ import { BannerTargeting } from "./BannerTargeting.js";
15
+ import { DeliveryMethod } from "./DeliveryMethod.js";
16
+ import { DisciplineList } from "./DisciplineList.js";
17
+ import { InsuranceConfiguration } from "./InsuranceConfiguration.js";
18
+ import { Intensity } from "./Intensity.js";
19
+ import { LivingCostDetails } from "./LivingCostDetails.js";
20
+ import { Media } from "./Media.js";
21
+ import { ProgrammeDescription } from "./ProgrammeDescription.js";
22
+ import { ProgrammeEssentialInformation } from "./ProgrammeEssentialInformation.js";
23
+ import { QuickFacts } from "./QuickFacts.js";
24
+ import { RemarketingUserTag } from "./RemarketingUserTag.js";
25
+ import { Requirements } from "./Requirements.js";
26
+ import { StartDate } from "./StartDate.js";
27
+ import { StructuredData } from "./StructuredData.js";
28
+ import { Summary } from "./Summary.js";
29
+ import { TestProviderConfiguration } from "./TestProviderConfiguration.js";
30
+ import { TuitionFeeDetails } from "./TuitionFeeDetails.js";
31
+ import { VenueList } from "./VenueList.js";
32
+ export interface Programme {
33
+ id: number;
34
+ title: string;
35
+ pagePortalType: string;
36
+ degreeFormatted: string;
37
+ pagePremiums: string;
38
+ cover?: File | undefined;
39
+ mediaGallery: Media[];
40
+ deliveryMethod?: DeliveryMethod | undefined;
41
+ languages?: Languages | undefined;
42
+ quickFacts?: QuickFacts | undefined;
43
+ summary?: Summary | undefined;
44
+ description?: ProgrammeDescription | undefined;
45
+ contents?: RichText | undefined;
46
+ accreditation?: RichText | undefined;
47
+ premiumReferralLink?: TrackedLink | undefined;
48
+ lecturers?: RichText | undefined;
49
+ audience?: RichText | undefined;
50
+ funding?: RichText | undefined;
51
+ credits?: Credits | undefined;
52
+ intensity?: Intensity | undefined;
53
+ livingCostDetails?: LivingCostDetails | undefined;
54
+ testProviderConfiguration?: TestProviderConfiguration | undefined;
55
+ bannerTargeting?: BannerTargeting | undefined;
56
+ requirements?: Requirements | undefined;
57
+ SBLPLink?: Link | undefined;
58
+ remarketingUserTag?: RemarketingUserTag | undefined;
59
+ campaignInformation?: CampaignInformation | undefined;
60
+ structuredData?: StructuredData | undefined;
61
+ pixelLinks: Link[];
62
+ gaStudyInformation?: string | undefined;
63
+ disciplines: Discipline[];
64
+ disciplineList?: DisciplineList | undefined;
65
+ tuitionFeeDetails?: TuitionFeeDetails | undefined;
66
+ venueList?: VenueList | undefined;
67
+ startDates?: StartDate | undefined;
68
+ regionId: number;
69
+ country?: Country | undefined;
70
+ programmeLink?: Link | undefined;
71
+ isFullyOnline: boolean;
72
+ universityTrafficSourceForwardingMethod?: string | undefined;
73
+ preparingProgrammes: ChainnedProgrammeInfo[];
74
+ succeedingProgrammes: ChainnedProgrammeInfo[];
75
+ preparingProgrammeCards: ChainnedProgramme[];
76
+ succeedingProgrammeCards: ChainnedProgramme[];
77
+ insuranceConfiguration?: InsuranceConfiguration | undefined;
78
+ canShowFundingPartnerMPower: boolean;
79
+ canShowFundingPartnerProdigy: boolean;
80
+ scholarshipIds: number[];
81
+ uniBuddy?: Unibuddy | undefined;
82
+ essentialInformation?: ProgrammeEssentialInformation | undefined;
83
+ organisationInformation?: OrganisationInformation | undefined;
84
+ scholarshipCards: MiniScholarshipCard[];
85
+ commercialEntity?: CommercialEntity | undefined;
86
+ isPublished: boolean;
87
+ }
88
+ export interface ChainnedProgrammeInfo {
89
+ id: number;
90
+ chainType: string;
91
+ }
92
+ export interface ChainnedProgramme {
93
+ chainType: string;
94
+ programmeCard?: ProgrammeCard | undefined;
95
+ }
96
+ export interface Country {
97
+ id: number;
98
+ name: string;
99
+ isoCode: string;
100
+ useWorkPermitContentForChina: boolean;
101
+ virtualName: string;
102
+ }
103
+ export declare const Programme: MessageFns<Programme>;
104
+ export declare const ChainnedProgrammeInfo: MessageFns<ChainnedProgrammeInfo>;
105
+ export declare const ChainnedProgramme: MessageFns<ChainnedProgramme>;
106
+ export declare const Country: MessageFns<Country>;
107
+ interface MessageFns<T> {
108
+ fromJSON(object: any): T;
109
+ toJSON(message: T): unknown;
110
+ }
111
+ export {};