@studyportals/domain-client 8.5.1-beta.11 → 8.5.1-beta.16
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.
- package/package.json +1 -1
- package/protobuf/PartnerApi/PartnerApiOrganisation.d.ts +18 -0
- package/protobuf/PartnerApi/PartnerApiOrganisation.js +54 -0
- package/protobuf/PartnerApi/PartnerApiProgramme.d.ts +21 -0
- package/protobuf/PartnerApi/{Programme.js → PartnerApiProgramme.js} +19 -15
- package/protobuf/PartnerApi/PartnerApiScholarship.d.ts +42 -0
- package/protobuf/PartnerApi/{Scholarship.js → PartnerApiScholarship.js} +43 -12
- package/protobuf/PartnerApi/Organisation.d.ts +0 -31
- package/protobuf/PartnerApi/Organisation.js +0 -105
- package/protobuf/PartnerApi/Programme.d.ts +0 -21
- package/protobuf/PartnerApi/Scholarship.d.ts +0 -34
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { File } from "../File.js";
|
|
2
|
+
import { Location } from "../Location.js";
|
|
3
|
+
import { SocialLink } from "../SocialLink.js";
|
|
4
|
+
export interface PartnerApiOrganisation {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
logo?: File | undefined;
|
|
8
|
+
location?: string | undefined;
|
|
9
|
+
about?: string | undefined;
|
|
10
|
+
locations: Location[];
|
|
11
|
+
links: SocialLink[];
|
|
12
|
+
}
|
|
13
|
+
export declare const PartnerApiOrganisation: MessageFns<PartnerApiOrganisation>;
|
|
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.11.8
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: PartnerApi/PartnerApiOrganisation.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { File } from "../File.js";
|
|
8
|
+
import { Location } from "../Location.js";
|
|
9
|
+
import { SocialLink } from "../SocialLink.js";
|
|
10
|
+
export const PartnerApiOrganisation = {
|
|
11
|
+
fromJSON(object) {
|
|
12
|
+
return {
|
|
13
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
14
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
15
|
+
logo: isSet(object.logo) ? File.fromJSON(object.logo) : undefined,
|
|
16
|
+
location: isSet(object.location) ? globalThis.String(object.location) : undefined,
|
|
17
|
+
about: isSet(object.about) ? globalThis.String(object.about) : undefined,
|
|
18
|
+
locations: globalThis.Array.isArray(object?.locations)
|
|
19
|
+
? object.locations.map((e) => Location.fromJSON(e))
|
|
20
|
+
: [],
|
|
21
|
+
links: globalThis.Array.isArray(object?.links)
|
|
22
|
+
? object.links.map((e) => SocialLink.fromJSON(e))
|
|
23
|
+
: [],
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
toJSON(message) {
|
|
27
|
+
const obj = {};
|
|
28
|
+
if (message.id !== 0) {
|
|
29
|
+
obj.id = Math.round(message.id);
|
|
30
|
+
}
|
|
31
|
+
if (message.name !== "") {
|
|
32
|
+
obj.name = message.name;
|
|
33
|
+
}
|
|
34
|
+
if (message.logo !== undefined) {
|
|
35
|
+
obj.logo = File.toJSON(message.logo);
|
|
36
|
+
}
|
|
37
|
+
if (message.location !== undefined) {
|
|
38
|
+
obj.location = message.location;
|
|
39
|
+
}
|
|
40
|
+
if (message.about !== undefined) {
|
|
41
|
+
obj.about = message.about;
|
|
42
|
+
}
|
|
43
|
+
if (message.locations?.length) {
|
|
44
|
+
obj.locations = message.locations.map((e) => Location.toJSON(e));
|
|
45
|
+
}
|
|
46
|
+
if (message.links?.length) {
|
|
47
|
+
obj.links = message.links.map((e) => SocialLink.toJSON(e));
|
|
48
|
+
}
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function isSet(value) {
|
|
53
|
+
return value !== null && value !== undefined;
|
|
54
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Location } from "../Location.js";
|
|
2
|
+
import { Logo } from "../Logo.js";
|
|
3
|
+
import { TuitionFee as TuitionFeeDetails } from "../TuitionFee.js";
|
|
4
|
+
import { Timing } from "../Timing.js";
|
|
5
|
+
export interface PartnerApiProgramme {
|
|
6
|
+
id: number;
|
|
7
|
+
title: string;
|
|
8
|
+
pagePortalType: string;
|
|
9
|
+
degreeFormatted: string;
|
|
10
|
+
summary?: string | undefined;
|
|
11
|
+
logo?: Logo | undefined;
|
|
12
|
+
tuitionFeeDetails?: TuitionFeeDetails | undefined;
|
|
13
|
+
locations: Location[];
|
|
14
|
+
timings: Timing[];
|
|
15
|
+
}
|
|
16
|
+
export declare const PartnerApiProgramme: MessageFns<PartnerApiProgramme>;
|
|
17
|
+
interface MessageFns<T> {
|
|
18
|
+
fromJSON(object: any): T;
|
|
19
|
+
toJSON(message: T): unknown;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -2,24 +2,28 @@
|
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v2.11.8
|
|
4
4
|
// protoc v3.21.12
|
|
5
|
-
// source: PartnerApi/
|
|
5
|
+
// source: PartnerApi/PartnerApiProgramme.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
|
+
import { Location } from "../Location.js";
|
|
7
8
|
import { Logo } from "../Logo.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
export const Programme = {
|
|
9
|
+
import { TuitionFee as TuitionFeeDetails } from "../TuitionFee.js";
|
|
10
|
+
import { Timing } from "../Timing.js";
|
|
11
|
+
export const PartnerApiProgramme = {
|
|
12
12
|
fromJSON(object) {
|
|
13
13
|
return {
|
|
14
14
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
15
15
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
16
16
|
pagePortalType: isSet(object.pagePortalType) ? globalThis.String(object.pagePortalType) : "",
|
|
17
17
|
degreeFormatted: isSet(object.degreeFormatted) ? globalThis.String(object.degreeFormatted) : "",
|
|
18
|
-
description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
|
|
19
18
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
20
19
|
logo: isSet(object.logo) ? Logo.fromJSON(object.logo) : undefined,
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
tuitionFeeDetails: isSet(object.tuitionFeeDetails)
|
|
21
|
+
? TuitionFeeDetails.fromJSON(object.tuitionFeeDetails)
|
|
22
|
+
: undefined,
|
|
23
|
+
locations: globalThis.Array.isArray(object?.locations)
|
|
24
|
+
? object.locations.map((e) => Location.fromJSON(e))
|
|
25
|
+
: [],
|
|
26
|
+
timings: globalThis.Array.isArray(object?.timings) ? object.timings.map((e) => Timing.fromJSON(e)) : [],
|
|
23
27
|
};
|
|
24
28
|
},
|
|
25
29
|
toJSON(message) {
|
|
@@ -36,20 +40,20 @@ export const Programme = {
|
|
|
36
40
|
if (message.degreeFormatted !== "") {
|
|
37
41
|
obj.degreeFormatted = message.degreeFormatted;
|
|
38
42
|
}
|
|
39
|
-
if (message.description !== undefined) {
|
|
40
|
-
obj.description = Description.toJSON(message.description);
|
|
41
|
-
}
|
|
42
43
|
if (message.summary !== undefined) {
|
|
43
44
|
obj.summary = message.summary;
|
|
44
45
|
}
|
|
45
46
|
if (message.logo !== undefined) {
|
|
46
47
|
obj.logo = Logo.toJSON(message.logo);
|
|
47
48
|
}
|
|
48
|
-
if (message.
|
|
49
|
-
obj.
|
|
49
|
+
if (message.tuitionFeeDetails !== undefined) {
|
|
50
|
+
obj.tuitionFeeDetails = TuitionFeeDetails.toJSON(message.tuitionFeeDetails);
|
|
51
|
+
}
|
|
52
|
+
if (message.locations?.length) {
|
|
53
|
+
obj.locations = message.locations.map((e) => Location.toJSON(e));
|
|
50
54
|
}
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
55
|
+
if (message.timings?.length) {
|
|
56
|
+
obj.timings = message.timings.map((e) => Timing.toJSON(e));
|
|
53
57
|
}
|
|
54
58
|
return obj;
|
|
55
59
|
},
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Link } from "../Link.js";
|
|
2
|
+
import { Location } from "../Location.js";
|
|
3
|
+
export interface PartnerApiScholarship {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
providerName?: string | undefined;
|
|
7
|
+
providerLocation?: string | undefined;
|
|
8
|
+
scholarshipDetailsLink?: Link | undefined;
|
|
9
|
+
funding?: PartnerApiFunding | undefined;
|
|
10
|
+
eligibility?: PartnerApiEligibility | undefined;
|
|
11
|
+
about?: string | undefined;
|
|
12
|
+
providerLogo?: string | undefined;
|
|
13
|
+
sourceUrl?: string | undefined;
|
|
14
|
+
organisation?: PartnerApiScholarshipOrganisation | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface PartnerApiFunding {
|
|
17
|
+
kind: string;
|
|
18
|
+
hasGrantAmount: boolean;
|
|
19
|
+
grantAmount?: number | undefined;
|
|
20
|
+
grantCurrencyIso?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface PartnerApiEligibility {
|
|
24
|
+
nationality?: string | undefined;
|
|
25
|
+
studyLevel?: string | undefined;
|
|
26
|
+
scholarshipType?: string | undefined;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface PartnerApiScholarshipOrganisation {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
locations: Location[];
|
|
33
|
+
}
|
|
34
|
+
export declare const PartnerApiScholarship: MessageFns<PartnerApiScholarship>;
|
|
35
|
+
export declare const PartnerApiFunding: MessageFns<PartnerApiFunding>;
|
|
36
|
+
export declare const PartnerApiEligibility: MessageFns<PartnerApiEligibility>;
|
|
37
|
+
export declare const PartnerApiScholarshipOrganisation: MessageFns<PartnerApiScholarshipOrganisation>;
|
|
38
|
+
interface MessageFns<T> {
|
|
39
|
+
fromJSON(object: any): T;
|
|
40
|
+
toJSON(message: T): unknown;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -2,24 +2,28 @@
|
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v2.11.8
|
|
4
4
|
// protoc v3.21.12
|
|
5
|
-
// source: PartnerApi/
|
|
5
|
+
// source: PartnerApi/PartnerApiScholarship.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Link } from "../Link.js";
|
|
8
|
-
|
|
8
|
+
import { Location } from "../Location.js";
|
|
9
|
+
export const PartnerApiScholarship = {
|
|
9
10
|
fromJSON(object) {
|
|
10
11
|
return {
|
|
11
12
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
12
13
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
13
14
|
providerName: isSet(object.providerName) ? globalThis.String(object.providerName) : undefined,
|
|
14
15
|
providerLocation: isSet(object.providerLocation) ? globalThis.String(object.providerLocation) : undefined,
|
|
15
|
-
providerMapLink: isSet(object.providerMapLink) ? Link.fromJSON(object.providerMapLink) : undefined,
|
|
16
16
|
scholarshipDetailsLink: isSet(object.scholarshipDetailsLink)
|
|
17
17
|
? Link.fromJSON(object.scholarshipDetailsLink)
|
|
18
18
|
: undefined,
|
|
19
|
-
funding: isSet(object.funding) ?
|
|
20
|
-
eligibility: isSet(object.eligibility) ?
|
|
19
|
+
funding: isSet(object.funding) ? PartnerApiFunding.fromJSON(object.funding) : undefined,
|
|
20
|
+
eligibility: isSet(object.eligibility) ? PartnerApiEligibility.fromJSON(object.eligibility) : undefined,
|
|
21
21
|
about: isSet(object.about) ? globalThis.String(object.about) : undefined,
|
|
22
22
|
providerLogo: isSet(object.providerLogo) ? globalThis.String(object.providerLogo) : undefined,
|
|
23
|
+
sourceUrl: isSet(object.sourceUrl) ? globalThis.String(object.sourceUrl) : undefined,
|
|
24
|
+
organisation: isSet(object.organisation)
|
|
25
|
+
? PartnerApiScholarshipOrganisation.fromJSON(object.organisation)
|
|
26
|
+
: undefined,
|
|
23
27
|
};
|
|
24
28
|
},
|
|
25
29
|
toJSON(message) {
|
|
@@ -36,17 +40,14 @@ export const Scholarship = {
|
|
|
36
40
|
if (message.providerLocation !== undefined) {
|
|
37
41
|
obj.providerLocation = message.providerLocation;
|
|
38
42
|
}
|
|
39
|
-
if (message.providerMapLink !== undefined) {
|
|
40
|
-
obj.providerMapLink = Link.toJSON(message.providerMapLink);
|
|
41
|
-
}
|
|
42
43
|
if (message.scholarshipDetailsLink !== undefined) {
|
|
43
44
|
obj.scholarshipDetailsLink = Link.toJSON(message.scholarshipDetailsLink);
|
|
44
45
|
}
|
|
45
46
|
if (message.funding !== undefined) {
|
|
46
|
-
obj.funding =
|
|
47
|
+
obj.funding = PartnerApiFunding.toJSON(message.funding);
|
|
47
48
|
}
|
|
48
49
|
if (message.eligibility !== undefined) {
|
|
49
|
-
obj.eligibility =
|
|
50
|
+
obj.eligibility = PartnerApiEligibility.toJSON(message.eligibility);
|
|
50
51
|
}
|
|
51
52
|
if (message.about !== undefined) {
|
|
52
53
|
obj.about = message.about;
|
|
@@ -54,10 +55,16 @@ export const Scholarship = {
|
|
|
54
55
|
if (message.providerLogo !== undefined) {
|
|
55
56
|
obj.providerLogo = message.providerLogo;
|
|
56
57
|
}
|
|
58
|
+
if (message.sourceUrl !== undefined) {
|
|
59
|
+
obj.sourceUrl = message.sourceUrl;
|
|
60
|
+
}
|
|
61
|
+
if (message.organisation !== undefined) {
|
|
62
|
+
obj.organisation = PartnerApiScholarshipOrganisation.toJSON(message.organisation);
|
|
63
|
+
}
|
|
57
64
|
return obj;
|
|
58
65
|
},
|
|
59
66
|
};
|
|
60
|
-
export const
|
|
67
|
+
export const PartnerApiFunding = {
|
|
61
68
|
fromJSON(object) {
|
|
62
69
|
return {
|
|
63
70
|
kind: isSet(object.kind) ? globalThis.String(object.kind) : "",
|
|
@@ -87,7 +94,7 @@ export const Funding = {
|
|
|
87
94
|
return obj;
|
|
88
95
|
},
|
|
89
96
|
};
|
|
90
|
-
export const
|
|
97
|
+
export const PartnerApiEligibility = {
|
|
91
98
|
fromJSON(object) {
|
|
92
99
|
return {
|
|
93
100
|
nationality: isSet(object.nationality) ? globalThis.String(object.nationality) : undefined,
|
|
@@ -113,6 +120,30 @@ export const Eligibility = {
|
|
|
113
120
|
return obj;
|
|
114
121
|
},
|
|
115
122
|
};
|
|
123
|
+
export const PartnerApiScholarshipOrganisation = {
|
|
124
|
+
fromJSON(object) {
|
|
125
|
+
return {
|
|
126
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
127
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
128
|
+
locations: globalThis.Array.isArray(object?.locations)
|
|
129
|
+
? object.locations.map((e) => Location.fromJSON(e))
|
|
130
|
+
: [],
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
toJSON(message) {
|
|
134
|
+
const obj = {};
|
|
135
|
+
if (message.id !== 0) {
|
|
136
|
+
obj.id = Math.round(message.id);
|
|
137
|
+
}
|
|
138
|
+
if (message.name !== "") {
|
|
139
|
+
obj.name = message.name;
|
|
140
|
+
}
|
|
141
|
+
if (message.locations?.length) {
|
|
142
|
+
obj.locations = message.locations.map((e) => Location.toJSON(e));
|
|
143
|
+
}
|
|
144
|
+
return obj;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
116
147
|
function isSet(value) {
|
|
117
148
|
return value !== null && value !== undefined;
|
|
118
149
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { File } from "../File.js";
|
|
2
|
-
import { Link } from "../Link.js";
|
|
3
|
-
export interface Organisation {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
logo?: File | undefined;
|
|
7
|
-
location?: string | undefined;
|
|
8
|
-
organisationLink?: Link | undefined;
|
|
9
|
-
about?: string | undefined;
|
|
10
|
-
courses?: CourseCount | undefined;
|
|
11
|
-
locations: OrganisationLocation[];
|
|
12
|
-
institutionWebsiteLink?: Link | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface CourseCount {
|
|
15
|
-
undergraduate: number;
|
|
16
|
-
postgraduate: number;
|
|
17
|
-
phd: number;
|
|
18
|
-
}
|
|
19
|
-
export interface OrganisationLocation {
|
|
20
|
-
name: string;
|
|
21
|
-
address?: string | undefined;
|
|
22
|
-
mapLink?: Link | undefined;
|
|
23
|
-
}
|
|
24
|
-
export declare const Organisation: MessageFns<Organisation>;
|
|
25
|
-
export declare const CourseCount: MessageFns<CourseCount>;
|
|
26
|
-
export declare const OrganisationLocation: MessageFns<OrganisationLocation>;
|
|
27
|
-
interface MessageFns<T> {
|
|
28
|
-
fromJSON(object: any): T;
|
|
29
|
-
toJSON(message: T): unknown;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.8
|
|
4
|
-
// protoc v3.21.12
|
|
5
|
-
// source: PartnerApi/Organisation.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { File } from "../File.js";
|
|
8
|
-
import { Link } from "../Link.js";
|
|
9
|
-
export const Organisation = {
|
|
10
|
-
fromJSON(object) {
|
|
11
|
-
return {
|
|
12
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
13
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
14
|
-
logo: isSet(object.logo) ? File.fromJSON(object.logo) : undefined,
|
|
15
|
-
location: isSet(object.location) ? globalThis.String(object.location) : undefined,
|
|
16
|
-
organisationLink: isSet(object.organisationLink) ? Link.fromJSON(object.organisationLink) : undefined,
|
|
17
|
-
about: isSet(object.about) ? globalThis.String(object.about) : undefined,
|
|
18
|
-
courses: isSet(object.courses) ? CourseCount.fromJSON(object.courses) : undefined,
|
|
19
|
-
locations: globalThis.Array.isArray(object?.locations)
|
|
20
|
-
? object.locations.map((e) => OrganisationLocation.fromJSON(e))
|
|
21
|
-
: [],
|
|
22
|
-
institutionWebsiteLink: isSet(object.institutionWebsiteLink)
|
|
23
|
-
? Link.fromJSON(object.institutionWebsiteLink)
|
|
24
|
-
: undefined,
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
toJSON(message) {
|
|
28
|
-
const obj = {};
|
|
29
|
-
if (message.id !== 0) {
|
|
30
|
-
obj.id = Math.round(message.id);
|
|
31
|
-
}
|
|
32
|
-
if (message.name !== "") {
|
|
33
|
-
obj.name = message.name;
|
|
34
|
-
}
|
|
35
|
-
if (message.logo !== undefined) {
|
|
36
|
-
obj.logo = File.toJSON(message.logo);
|
|
37
|
-
}
|
|
38
|
-
if (message.location !== undefined) {
|
|
39
|
-
obj.location = message.location;
|
|
40
|
-
}
|
|
41
|
-
if (message.organisationLink !== undefined) {
|
|
42
|
-
obj.organisationLink = Link.toJSON(message.organisationLink);
|
|
43
|
-
}
|
|
44
|
-
if (message.about !== undefined) {
|
|
45
|
-
obj.about = message.about;
|
|
46
|
-
}
|
|
47
|
-
if (message.courses !== undefined) {
|
|
48
|
-
obj.courses = CourseCount.toJSON(message.courses);
|
|
49
|
-
}
|
|
50
|
-
if (message.locations?.length) {
|
|
51
|
-
obj.locations = message.locations.map((e) => OrganisationLocation.toJSON(e));
|
|
52
|
-
}
|
|
53
|
-
if (message.institutionWebsiteLink !== undefined) {
|
|
54
|
-
obj.institutionWebsiteLink = Link.toJSON(message.institutionWebsiteLink);
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
export const CourseCount = {
|
|
60
|
-
fromJSON(object) {
|
|
61
|
-
return {
|
|
62
|
-
undergraduate: isSet(object.undergraduate) ? globalThis.Number(object.undergraduate) : 0,
|
|
63
|
-
postgraduate: isSet(object.postgraduate) ? globalThis.Number(object.postgraduate) : 0,
|
|
64
|
-
phd: isSet(object.phd) ? globalThis.Number(object.phd) : 0,
|
|
65
|
-
};
|
|
66
|
-
},
|
|
67
|
-
toJSON(message) {
|
|
68
|
-
const obj = {};
|
|
69
|
-
if (message.undergraduate !== 0) {
|
|
70
|
-
obj.undergraduate = Math.round(message.undergraduate);
|
|
71
|
-
}
|
|
72
|
-
if (message.postgraduate !== 0) {
|
|
73
|
-
obj.postgraduate = Math.round(message.postgraduate);
|
|
74
|
-
}
|
|
75
|
-
if (message.phd !== 0) {
|
|
76
|
-
obj.phd = Math.round(message.phd);
|
|
77
|
-
}
|
|
78
|
-
return obj;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
export const OrganisationLocation = {
|
|
82
|
-
fromJSON(object) {
|
|
83
|
-
return {
|
|
84
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
85
|
-
address: isSet(object.address) ? globalThis.String(object.address) : undefined,
|
|
86
|
-
mapLink: isSet(object.mapLink) ? Link.fromJSON(object.mapLink) : undefined,
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
toJSON(message) {
|
|
90
|
-
const obj = {};
|
|
91
|
-
if (message.name !== "") {
|
|
92
|
-
obj.name = message.name;
|
|
93
|
-
}
|
|
94
|
-
if (message.address !== undefined) {
|
|
95
|
-
obj.address = message.address;
|
|
96
|
-
}
|
|
97
|
-
if (message.mapLink !== undefined) {
|
|
98
|
-
obj.mapLink = Link.toJSON(message.mapLink);
|
|
99
|
-
}
|
|
100
|
-
return obj;
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
function isSet(value) {
|
|
104
|
-
return value !== null && value !== undefined;
|
|
105
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Logo } from "../Logo.js";
|
|
2
|
-
import { Description } from "../Description.js";
|
|
3
|
-
import { StartDate } from "../StartDate.js";
|
|
4
|
-
import { TuitionFee } from "../TuitionFee.js";
|
|
5
|
-
export interface Programme {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
pagePortalType: string;
|
|
9
|
-
degreeFormatted: string;
|
|
10
|
-
description?: Description | undefined;
|
|
11
|
-
summary?: string | undefined;
|
|
12
|
-
logo?: Logo | undefined;
|
|
13
|
-
tuitionFee?: TuitionFee | undefined;
|
|
14
|
-
startDates?: StartDate | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare const Programme: MessageFns<Programme>;
|
|
17
|
-
interface MessageFns<T> {
|
|
18
|
-
fromJSON(object: any): T;
|
|
19
|
-
toJSON(message: T): unknown;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Link } from "../Link.js";
|
|
2
|
-
export interface Scholarship {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
providerName?: string | undefined;
|
|
6
|
-
providerLocation?: string | undefined;
|
|
7
|
-
providerMapLink?: Link | undefined;
|
|
8
|
-
scholarshipDetailsLink?: Link | undefined;
|
|
9
|
-
funding?: Funding | undefined;
|
|
10
|
-
eligibility?: Eligibility | undefined;
|
|
11
|
-
about?: string | undefined;
|
|
12
|
-
providerLogo?: string | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface Funding {
|
|
15
|
-
kind: string;
|
|
16
|
-
hasGrantAmount: boolean;
|
|
17
|
-
grantAmount?: number | undefined;
|
|
18
|
-
grantCurrencyIso?: string | undefined;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
}
|
|
21
|
-
export interface Eligibility {
|
|
22
|
-
nationality?: string | undefined;
|
|
23
|
-
studyLevel?: string | undefined;
|
|
24
|
-
scholarshipType?: string | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
}
|
|
27
|
-
export declare const Scholarship: MessageFns<Scholarship>;
|
|
28
|
-
export declare const Funding: MessageFns<Funding>;
|
|
29
|
-
export declare const Eligibility: MessageFns<Eligibility>;
|
|
30
|
-
interface MessageFns<T> {
|
|
31
|
-
fromJSON(object: any): T;
|
|
32
|
-
toJSON(message: T): unknown;
|
|
33
|
-
}
|
|
34
|
-
export {};
|