@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.
- package/package.json +1 -1
- package/protobuf/Credits.d.ts +17 -0
- package/protobuf/Credits.js +54 -0
- package/protobuf/DisciplineDescription.d.ts +16 -0
- package/protobuf/DisciplineDescription.js +45 -0
- package/protobuf/DisciplineEssentialInformation.d.ts +17 -0
- package/protobuf/DisciplineEssentialInformation.js +54 -0
- package/protobuf/Language.d.ts +16 -0
- package/protobuf/Language.js +54 -0
- package/protobuf/OrganisationReview.d.ts +13 -0
- package/protobuf/OrganisationReview.js +42 -0
- package/protobuf/PartnerApi/PartnerApiScholarship.d.ts +1 -0
- package/protobuf/PartnerApi/PartnerApiScholarship.js +8 -2
- package/protobuf/Programme/AcademicRequirements.d.ts +15 -0
- package/protobuf/Programme/AcademicRequirements.js +41 -0
- package/protobuf/Programme/BannerTargeting.d.ts +11 -0
- package/protobuf/Programme/BannerTargeting.js +31 -0
- package/protobuf/Programme/CourseInstance.d.ts +21 -0
- package/protobuf/Programme/CourseInstance.js +83 -0
- package/protobuf/Programme/DeliveryMethod.d.ts +19 -0
- package/protobuf/Programme/DeliveryMethod.js +76 -0
- package/protobuf/Programme/DisciplineList.d.ts +13 -0
- package/protobuf/Programme/DisciplineList.js +37 -0
- package/protobuf/Programme/InsuranceConfiguration.d.ts +9 -0
- package/protobuf/Programme/InsuranceConfiguration.js +20 -0
- package/protobuf/Programme/Intensity.d.ts +18 -0
- package/protobuf/Programme/Intensity.js +57 -0
- package/protobuf/Programme/LandingPageLink.d.ts +12 -0
- package/protobuf/Programme/LandingPageLink.js +34 -0
- package/protobuf/Programme/LivingCostDetails.d.ts +12 -0
- package/protobuf/Programme/LivingCostDetails.js +29 -0
- package/protobuf/Programme/Media.d.ts +24 -0
- package/protobuf/Programme/Media.js +87 -0
- package/protobuf/Programme/PartTimeDuration.d.ts +18 -0
- package/protobuf/Programme/PartTimeDuration.js +54 -0
- package/protobuf/Programme/Programme.d.ts +111 -0
- package/protobuf/Programme/Programme.js +376 -0
- package/protobuf/Programme/ProgrammeDescription.d.ts +17 -0
- package/protobuf/Programme/ProgrammeDescription.js +59 -0
- package/protobuf/Programme/ProgrammeEnglishRequirements.d.ts +14 -0
- package/protobuf/Programme/ProgrammeEnglishRequirements.js +40 -0
- package/protobuf/Programme/ProgrammeEssentialInformation.d.ts +27 -0
- package/protobuf/Programme/ProgrammeEssentialInformation.js +111 -0
- package/protobuf/Programme/Provider.d.ts +18 -0
- package/protobuf/Programme/Provider.js +56 -0
- package/protobuf/Programme/QuickFacts.d.ts +19 -0
- package/protobuf/Programme/QuickFacts.js +56 -0
- package/protobuf/Programme/RemarketingUserTag.d.ts +12 -0
- package/protobuf/Programme/RemarketingUserTag.js +36 -0
- package/protobuf/Programme/Requirements.d.ts +19 -0
- package/protobuf/Programme/Requirements.js +70 -0
- package/protobuf/Programme/Score.d.ts +10 -0
- package/protobuf/Programme/Score.js +26 -0
- package/protobuf/Programme/StartDate.d.ts +15 -0
- package/protobuf/Programme/StartDate.js +43 -0
- package/protobuf/Programme/StartDateDomain.d.ts +13 -0
- package/protobuf/Programme/StartDateDomain.js +55 -0
- package/protobuf/Programme/StructuredData.d.ts +20 -0
- package/protobuf/Programme/StructuredData.js +67 -0
- package/protobuf/Programme/Summary.d.ts +12 -0
- package/protobuf/Programme/Summary.js +34 -0
- package/protobuf/Programme/TestCard.d.ts +12 -0
- package/protobuf/Programme/TestCard.js +32 -0
- package/protobuf/Programme/TestProviderConfiguration.d.ts +14 -0
- package/protobuf/Programme/TestProviderConfiguration.js +42 -0
- package/protobuf/Programme/TuitionFeeDetails.d.ts +17 -0
- package/protobuf/Programme/TuitionFeeDetails.js +48 -0
- package/protobuf/Programme/Venue.d.ts +15 -0
- package/protobuf/Programme/Venue.js +46 -0
- package/protobuf/Programme/VenueList.d.ts +12 -0
- package/protobuf/Programme/VenueList.js +32 -0
- package/protobuf/SimpleTrackedLink.d.ts +14 -0
- package/protobuf/SimpleTrackedLink.js +42 -0
- package/protobuf/google/protobuf/duration.d.ts +83 -0
- package/protobuf/google/protobuf/duration.js +26 -0
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RichText } from "./RichText.js";
|
|
2
|
+
export interface Credits {
|
|
3
|
+
ects: number;
|
|
4
|
+
canShowEcts: boolean;
|
|
5
|
+
schCredits: number;
|
|
6
|
+
canShowSchCredits: boolean;
|
|
7
|
+
alternativeCredits: number;
|
|
8
|
+
canShowAlternativeCredits: boolean;
|
|
9
|
+
description: RichText | undefined;
|
|
10
|
+
canShowDescription: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Credits: MessageFns<Credits>;
|
|
13
|
+
interface MessageFns<T> {
|
|
14
|
+
fromJSON(object: any): T;
|
|
15
|
+
toJSON(message: T): unknown;
|
|
16
|
+
}
|
|
17
|
+
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: Credits.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { RichText } from "./RichText.js";
|
|
8
|
+
export const Credits = {
|
|
9
|
+
fromJSON(object) {
|
|
10
|
+
return {
|
|
11
|
+
ects: isSet(object.ects) ? globalThis.Number(object.ects) : 0,
|
|
12
|
+
canShowEcts: isSet(object.canShowEcts) ? globalThis.Boolean(object.canShowEcts) : false,
|
|
13
|
+
schCredits: isSet(object.schCredits) ? globalThis.Number(object.schCredits) : 0,
|
|
14
|
+
canShowSchCredits: isSet(object.canShowSchCredits) ? globalThis.Boolean(object.canShowSchCredits) : false,
|
|
15
|
+
alternativeCredits: isSet(object.alternativeCredits) ? globalThis.Number(object.alternativeCredits) : 0,
|
|
16
|
+
canShowAlternativeCredits: isSet(object.canShowAlternativeCredits)
|
|
17
|
+
? globalThis.Boolean(object.canShowAlternativeCredits)
|
|
18
|
+
: false,
|
|
19
|
+
description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
|
|
20
|
+
canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
toJSON(message) {
|
|
24
|
+
const obj = {};
|
|
25
|
+
if (message.ects !== 0) {
|
|
26
|
+
obj.ects = Math.round(message.ects);
|
|
27
|
+
}
|
|
28
|
+
if (message.canShowEcts !== false) {
|
|
29
|
+
obj.canShowEcts = message.canShowEcts;
|
|
30
|
+
}
|
|
31
|
+
if (message.schCredits !== 0) {
|
|
32
|
+
obj.schCredits = Math.round(message.schCredits);
|
|
33
|
+
}
|
|
34
|
+
if (message.canShowSchCredits !== false) {
|
|
35
|
+
obj.canShowSchCredits = message.canShowSchCredits;
|
|
36
|
+
}
|
|
37
|
+
if (message.alternativeCredits !== 0) {
|
|
38
|
+
obj.alternativeCredits = Math.round(message.alternativeCredits);
|
|
39
|
+
}
|
|
40
|
+
if (message.canShowAlternativeCredits !== false) {
|
|
41
|
+
obj.canShowAlternativeCredits = message.canShowAlternativeCredits;
|
|
42
|
+
}
|
|
43
|
+
if (message.description !== undefined) {
|
|
44
|
+
obj.description = RichText.toJSON(message.description);
|
|
45
|
+
}
|
|
46
|
+
if (message.canShowDescription !== false) {
|
|
47
|
+
obj.canShowDescription = message.canShowDescription;
|
|
48
|
+
}
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function isSet(value) {
|
|
53
|
+
return value !== null && value !== undefined;
|
|
54
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Link } from "./Link.js";
|
|
2
|
+
import { RichText } from "./RichText.js";
|
|
3
|
+
export interface DisciplineDescription {
|
|
4
|
+
name: string;
|
|
5
|
+
description: RichText | undefined;
|
|
6
|
+
searchLink: Link | undefined;
|
|
7
|
+
pilsLink: Link | undefined;
|
|
8
|
+
sblpLink: Link | undefined;
|
|
9
|
+
onlineSBLPLink: Link | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const DisciplineDescription: MessageFns<DisciplineDescription>;
|
|
12
|
+
interface MessageFns<T> {
|
|
13
|
+
fromJSON(object: any): T;
|
|
14
|
+
toJSON(message: T): unknown;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
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: DisciplineDescription.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { Link } from "./Link.js";
|
|
8
|
+
import { RichText } from "./RichText.js";
|
|
9
|
+
export const DisciplineDescription = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
13
|
+
description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
|
|
14
|
+
searchLink: isSet(object.searchLink) ? Link.fromJSON(object.searchLink) : undefined,
|
|
15
|
+
pilsLink: isSet(object.pilsLink) ? Link.fromJSON(object.pilsLink) : undefined,
|
|
16
|
+
sblpLink: isSet(object.sblpLink) ? Link.fromJSON(object.sblpLink) : undefined,
|
|
17
|
+
onlineSBLPLink: isSet(object.onlineSBLPLink) ? Link.fromJSON(object.onlineSBLPLink) : undefined,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
toJSON(message) {
|
|
21
|
+
const obj = {};
|
|
22
|
+
if (message.name !== "") {
|
|
23
|
+
obj.name = message.name;
|
|
24
|
+
}
|
|
25
|
+
if (message.description !== undefined) {
|
|
26
|
+
obj.description = RichText.toJSON(message.description);
|
|
27
|
+
}
|
|
28
|
+
if (message.searchLink !== undefined) {
|
|
29
|
+
obj.searchLink = Link.toJSON(message.searchLink);
|
|
30
|
+
}
|
|
31
|
+
if (message.pilsLink !== undefined) {
|
|
32
|
+
obj.pilsLink = Link.toJSON(message.pilsLink);
|
|
33
|
+
}
|
|
34
|
+
if (message.sblpLink !== undefined) {
|
|
35
|
+
obj.sblpLink = Link.toJSON(message.sblpLink);
|
|
36
|
+
}
|
|
37
|
+
if (message.onlineSBLPLink !== undefined) {
|
|
38
|
+
obj.onlineSBLPLink = Link.toJSON(message.onlineSBLPLink);
|
|
39
|
+
}
|
|
40
|
+
return obj;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
function isSet(value) {
|
|
44
|
+
return value !== null && value !== undefined;
|
|
45
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DisciplineEssentialInformation {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
promo: string;
|
|
6
|
+
canShowPromo: boolean;
|
|
7
|
+
parentName: string;
|
|
8
|
+
canShowParentName: boolean;
|
|
9
|
+
isNameOfDegree: boolean;
|
|
10
|
+
programmeCount: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const DisciplineEssentialInformation: MessageFns<DisciplineEssentialInformation>;
|
|
13
|
+
interface MessageFns<T> {
|
|
14
|
+
fromJSON(object: any): T;
|
|
15
|
+
toJSON(message: T): unknown;
|
|
16
|
+
}
|
|
17
|
+
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: DisciplineEssentialInformation.proto
|
|
6
|
+
export const DisciplineEssentialInformation = {
|
|
7
|
+
fromJSON(object) {
|
|
8
|
+
return {
|
|
9
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
10
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
11
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
12
|
+
promo: isSet(object.promo) ? globalThis.String(object.promo) : "",
|
|
13
|
+
canShowPromo: isSet(object.canShowPromo) ? globalThis.Boolean(object.canShowPromo) : false,
|
|
14
|
+
parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : "",
|
|
15
|
+
canShowParentName: isSet(object.canShowParentName) ? globalThis.Boolean(object.canShowParentName) : false,
|
|
16
|
+
isNameOfDegree: isSet(object.isNameOfDegree) ? globalThis.Boolean(object.isNameOfDegree) : false,
|
|
17
|
+
programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : 0,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
toJSON(message) {
|
|
21
|
+
const obj = {};
|
|
22
|
+
if (message.id !== 0) {
|
|
23
|
+
obj.id = Math.round(message.id);
|
|
24
|
+
}
|
|
25
|
+
if (message.name !== "") {
|
|
26
|
+
obj.name = message.name;
|
|
27
|
+
}
|
|
28
|
+
if (message.icon !== "") {
|
|
29
|
+
obj.icon = message.icon;
|
|
30
|
+
}
|
|
31
|
+
if (message.promo !== "") {
|
|
32
|
+
obj.promo = message.promo;
|
|
33
|
+
}
|
|
34
|
+
if (message.canShowPromo !== false) {
|
|
35
|
+
obj.canShowPromo = message.canShowPromo;
|
|
36
|
+
}
|
|
37
|
+
if (message.parentName !== "") {
|
|
38
|
+
obj.parentName = message.parentName;
|
|
39
|
+
}
|
|
40
|
+
if (message.canShowParentName !== false) {
|
|
41
|
+
obj.canShowParentName = message.canShowParentName;
|
|
42
|
+
}
|
|
43
|
+
if (message.isNameOfDegree !== false) {
|
|
44
|
+
obj.isNameOfDegree = message.isNameOfDegree;
|
|
45
|
+
}
|
|
46
|
+
if (message.programmeCount !== 0) {
|
|
47
|
+
obj.programmeCount = Math.round(message.programmeCount);
|
|
48
|
+
}
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function isSet(value) {
|
|
53
|
+
return value !== null && value !== undefined;
|
|
54
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Language {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
export interface Languages {
|
|
5
|
+
taughtInLanguages: Language[];
|
|
6
|
+
canShowTaughtInLanguages: boolean;
|
|
7
|
+
partiallyTaughtInLanguages: Language[];
|
|
8
|
+
canShowPartiallyTaughtInLanguages: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Language: MessageFns<Language>;
|
|
11
|
+
export declare const Languages: MessageFns<Languages>;
|
|
12
|
+
interface MessageFns<T> {
|
|
13
|
+
fromJSON(object: any): T;
|
|
14
|
+
toJSON(message: T): unknown;
|
|
15
|
+
}
|
|
16
|
+
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: Language.proto
|
|
6
|
+
export const Language = {
|
|
7
|
+
fromJSON(object) {
|
|
8
|
+
return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
|
|
9
|
+
},
|
|
10
|
+
toJSON(message) {
|
|
11
|
+
const obj = {};
|
|
12
|
+
if (message.name !== "") {
|
|
13
|
+
obj.name = message.name;
|
|
14
|
+
}
|
|
15
|
+
return obj;
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export const Languages = {
|
|
19
|
+
fromJSON(object) {
|
|
20
|
+
return {
|
|
21
|
+
taughtInLanguages: globalThis.Array.isArray(object?.taughtInLanguages)
|
|
22
|
+
? object.taughtInLanguages.map((e) => Language.fromJSON(e))
|
|
23
|
+
: [],
|
|
24
|
+
canShowTaughtInLanguages: isSet(object.canShowTaughtInLanguages)
|
|
25
|
+
? globalThis.Boolean(object.canShowTaughtInLanguages)
|
|
26
|
+
: false,
|
|
27
|
+
partiallyTaughtInLanguages: globalThis.Array.isArray(object?.partiallyTaughtInLanguages)
|
|
28
|
+
? object.partiallyTaughtInLanguages.map((e) => Language.fromJSON(e))
|
|
29
|
+
: [],
|
|
30
|
+
canShowPartiallyTaughtInLanguages: isSet(object.canShowPartiallyTaughtInLanguages)
|
|
31
|
+
? globalThis.Boolean(object.canShowPartiallyTaughtInLanguages)
|
|
32
|
+
: false,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
toJSON(message) {
|
|
36
|
+
const obj = {};
|
|
37
|
+
if (message.taughtInLanguages?.length) {
|
|
38
|
+
obj.taughtInLanguages = message.taughtInLanguages.map((e) => Language.toJSON(e));
|
|
39
|
+
}
|
|
40
|
+
if (message.canShowTaughtInLanguages !== false) {
|
|
41
|
+
obj.canShowTaughtInLanguages = message.canShowTaughtInLanguages;
|
|
42
|
+
}
|
|
43
|
+
if (message.partiallyTaughtInLanguages?.length) {
|
|
44
|
+
obj.partiallyTaughtInLanguages = message.partiallyTaughtInLanguages.map((e) => Language.toJSON(e));
|
|
45
|
+
}
|
|
46
|
+
if (message.canShowPartiallyTaughtInLanguages !== false) {
|
|
47
|
+
obj.canShowPartiallyTaughtInLanguages = message.canShowPartiallyTaughtInLanguages;
|
|
48
|
+
}
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function isSet(value) {
|
|
53
|
+
return value !== null && value !== undefined;
|
|
54
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface OrganisationReview {
|
|
2
|
+
ratingAverage: number;
|
|
3
|
+
ratingQuantity: number;
|
|
4
|
+
canShowRatingQuantity: boolean;
|
|
5
|
+
canShowReviews: boolean;
|
|
6
|
+
canShowRatingAverage: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const OrganisationReview: MessageFns<OrganisationReview>;
|
|
9
|
+
interface MessageFns<T> {
|
|
10
|
+
fromJSON(object: any): T;
|
|
11
|
+
toJSON(message: T): unknown;
|
|
12
|
+
}
|
|
13
|
+
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: OrganisationReview.proto
|
|
6
|
+
export const OrganisationReview = {
|
|
7
|
+
fromJSON(object) {
|
|
8
|
+
return {
|
|
9
|
+
ratingAverage: isSet(object.ratingAverage) ? globalThis.Number(object.ratingAverage) : 0,
|
|
10
|
+
ratingQuantity: isSet(object.ratingQuantity) ? globalThis.Number(object.ratingQuantity) : 0,
|
|
11
|
+
canShowRatingQuantity: isSet(object.canShowRatingQuantity)
|
|
12
|
+
? globalThis.Boolean(object.canShowRatingQuantity)
|
|
13
|
+
: false,
|
|
14
|
+
canShowReviews: isSet(object.canShowReviews) ? globalThis.Boolean(object.canShowReviews) : false,
|
|
15
|
+
canShowRatingAverage: isSet(object.canShowRatingAverage)
|
|
16
|
+
? globalThis.Boolean(object.canShowRatingAverage)
|
|
17
|
+
: false,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
toJSON(message) {
|
|
21
|
+
const obj = {};
|
|
22
|
+
if (message.ratingAverage !== 0) {
|
|
23
|
+
obj.ratingAverage = message.ratingAverage;
|
|
24
|
+
}
|
|
25
|
+
if (message.ratingQuantity !== 0) {
|
|
26
|
+
obj.ratingQuantity = Math.round(message.ratingQuantity);
|
|
27
|
+
}
|
|
28
|
+
if (message.canShowRatingQuantity !== false) {
|
|
29
|
+
obj.canShowRatingQuantity = message.canShowRatingQuantity;
|
|
30
|
+
}
|
|
31
|
+
if (message.canShowReviews !== false) {
|
|
32
|
+
obj.canShowReviews = message.canShowReviews;
|
|
33
|
+
}
|
|
34
|
+
if (message.canShowRatingAverage !== false) {
|
|
35
|
+
obj.canShowRatingAverage = message.canShowRatingAverage;
|
|
36
|
+
}
|
|
37
|
+
return obj;
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
function isSet(value) {
|
|
41
|
+
return value !== null && value !== undefined;
|
|
42
|
+
}
|
|
@@ -27,6 +27,7 @@ export interface PartnerApiEligibility {
|
|
|
27
27
|
studyLevel: Degree[];
|
|
28
28
|
scholarshipType: ApplicationBasis[];
|
|
29
29
|
description?: string | undefined;
|
|
30
|
+
destinationCountries?: QualifiedCountries | undefined;
|
|
30
31
|
}
|
|
31
32
|
export interface PartnerApiScholarshipOrganisation {
|
|
32
33
|
id: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: PartnerApi/PartnerApiScholarship.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Link } from "../Link.js";
|
|
@@ -112,6 +112,9 @@ export const PartnerApiEligibility = {
|
|
|
112
112
|
? object.scholarshipType.map((e) => ApplicationBasis.fromJSON(e))
|
|
113
113
|
: [],
|
|
114
114
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
115
|
+
destinationCountries: isSet(object.destinationCountries)
|
|
116
|
+
? QualifiedCountries.fromJSON(object.destinationCountries)
|
|
117
|
+
: undefined,
|
|
115
118
|
};
|
|
116
119
|
},
|
|
117
120
|
toJSON(message) {
|
|
@@ -128,6 +131,9 @@ export const PartnerApiEligibility = {
|
|
|
128
131
|
if (message.description !== undefined) {
|
|
129
132
|
obj.description = message.description;
|
|
130
133
|
}
|
|
134
|
+
if (message.destinationCountries !== undefined) {
|
|
135
|
+
obj.destinationCountries = QualifiedCountries.toJSON(message.destinationCountries);
|
|
136
|
+
}
|
|
131
137
|
return obj;
|
|
132
138
|
},
|
|
133
139
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RichText } from "../RichText.js";
|
|
2
|
+
import { TestCard } from "./TestCard.js";
|
|
3
|
+
export interface AcademicRequirements {
|
|
4
|
+
gmatCard?: TestCard | undefined;
|
|
5
|
+
gpaCard?: TestCard | undefined;
|
|
6
|
+
greCard?: TestCard | undefined;
|
|
7
|
+
conditions?: RichText | undefined;
|
|
8
|
+
canShowConditions: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const AcademicRequirements: MessageFns<AcademicRequirements>;
|
|
11
|
+
interface MessageFns<T> {
|
|
12
|
+
fromJSON(object: any): T;
|
|
13
|
+
toJSON(message: T): unknown;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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/AcademicRequirements.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { RichText } from "../RichText.js";
|
|
8
|
+
import { TestCard } from "./TestCard.js";
|
|
9
|
+
export const AcademicRequirements = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
gmatCard: isSet(object.gmatCard) ? TestCard.fromJSON(object.gmatCard) : undefined,
|
|
13
|
+
gpaCard: isSet(object.gpaCard) ? TestCard.fromJSON(object.gpaCard) : undefined,
|
|
14
|
+
greCard: isSet(object.greCard) ? TestCard.fromJSON(object.greCard) : undefined,
|
|
15
|
+
conditions: isSet(object.conditions) ? RichText.fromJSON(object.conditions) : undefined,
|
|
16
|
+
canShowConditions: isSet(object.canShowConditions) ? globalThis.Boolean(object.canShowConditions) : false,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
toJSON(message) {
|
|
20
|
+
const obj = {};
|
|
21
|
+
if (message.gmatCard !== undefined) {
|
|
22
|
+
obj.gmatCard = TestCard.toJSON(message.gmatCard);
|
|
23
|
+
}
|
|
24
|
+
if (message.gpaCard !== undefined) {
|
|
25
|
+
obj.gpaCard = TestCard.toJSON(message.gpaCard);
|
|
26
|
+
}
|
|
27
|
+
if (message.greCard !== undefined) {
|
|
28
|
+
obj.greCard = TestCard.toJSON(message.greCard);
|
|
29
|
+
}
|
|
30
|
+
if (message.conditions !== undefined) {
|
|
31
|
+
obj.conditions = RichText.toJSON(message.conditions);
|
|
32
|
+
}
|
|
33
|
+
if (message.canShowConditions !== false) {
|
|
34
|
+
obj.canShowConditions = message.canShowConditions;
|
|
35
|
+
}
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
function isSet(value) {
|
|
40
|
+
return value !== null && value !== undefined;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface BannerTargeting {
|
|
2
|
+
countryIds: number[];
|
|
3
|
+
disciplineIds: number[];
|
|
4
|
+
levels: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const BannerTargeting: MessageFns<BannerTargeting>;
|
|
7
|
+
interface MessageFns<T> {
|
|
8
|
+
fromJSON(object: any): T;
|
|
9
|
+
toJSON(message: T): unknown;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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/BannerTargeting.proto
|
|
6
|
+
export const BannerTargeting = {
|
|
7
|
+
fromJSON(object) {
|
|
8
|
+
return {
|
|
9
|
+
countryIds: globalThis.Array.isArray(object?.countryIds)
|
|
10
|
+
? object.countryIds.map((e) => globalThis.Number(e))
|
|
11
|
+
: [],
|
|
12
|
+
disciplineIds: globalThis.Array.isArray(object?.disciplineIds)
|
|
13
|
+
? object.disciplineIds.map((e) => globalThis.Number(e))
|
|
14
|
+
: [],
|
|
15
|
+
levels: globalThis.Array.isArray(object?.levels) ? object.levels.map((e) => globalThis.String(e)) : [],
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
toJSON(message) {
|
|
19
|
+
const obj = {};
|
|
20
|
+
if (message.countryIds?.length) {
|
|
21
|
+
obj.countryIds = message.countryIds.map((e) => Math.round(e));
|
|
22
|
+
}
|
|
23
|
+
if (message.disciplineIds?.length) {
|
|
24
|
+
obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
|
|
25
|
+
}
|
|
26
|
+
if (message.levels?.length) {
|
|
27
|
+
obj.levels = message.levels;
|
|
28
|
+
}
|
|
29
|
+
return obj;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Duration } from "../google/protobuf/duration.js";
|
|
2
|
+
export interface CourseLocation {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
address: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CourseInstance {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
startDate?: Date | undefined;
|
|
11
|
+
duration?: Duration | undefined;
|
|
12
|
+
canShowDuration: boolean;
|
|
13
|
+
location?: CourseLocation | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare const CourseLocation: MessageFns<CourseLocation>;
|
|
16
|
+
export declare const CourseInstance: MessageFns<CourseInstance>;
|
|
17
|
+
interface MessageFns<T> {
|
|
18
|
+
fromJSON(object: any): T;
|
|
19
|
+
toJSON(message: T): unknown;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
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/CourseInstance.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { Duration } from "../google/protobuf/duration.js";
|
|
8
|
+
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
9
|
+
export const CourseLocation = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
13
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
14
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.id !== "") {
|
|
20
|
+
obj.id = message.id;
|
|
21
|
+
}
|
|
22
|
+
if (message.name !== "") {
|
|
23
|
+
obj.name = message.name;
|
|
24
|
+
}
|
|
25
|
+
if (message.address !== "") {
|
|
26
|
+
obj.address = message.address;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export const CourseInstance = {
|
|
32
|
+
fromJSON(object) {
|
|
33
|
+
return {
|
|
34
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
35
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
36
|
+
startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined,
|
|
37
|
+
duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
|
|
38
|
+
canShowDuration: isSet(object.canShowDuration) ? globalThis.Boolean(object.canShowDuration) : false,
|
|
39
|
+
location: isSet(object.location) ? CourseLocation.fromJSON(object.location) : undefined,
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
toJSON(message) {
|
|
43
|
+
const obj = {};
|
|
44
|
+
if (message.id !== "") {
|
|
45
|
+
obj.id = message.id;
|
|
46
|
+
}
|
|
47
|
+
if (message.name !== "") {
|
|
48
|
+
obj.name = message.name;
|
|
49
|
+
}
|
|
50
|
+
if (message.startDate !== undefined) {
|
|
51
|
+
obj.startDate = message.startDate.toISOString();
|
|
52
|
+
}
|
|
53
|
+
if (message.duration !== undefined) {
|
|
54
|
+
obj.duration = Duration.toJSON(message.duration);
|
|
55
|
+
}
|
|
56
|
+
if (message.canShowDuration !== false) {
|
|
57
|
+
obj.canShowDuration = message.canShowDuration;
|
|
58
|
+
}
|
|
59
|
+
if (message.location !== undefined) {
|
|
60
|
+
obj.location = CourseLocation.toJSON(message.location);
|
|
61
|
+
}
|
|
62
|
+
return obj;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function fromTimestamp(t) {
|
|
66
|
+
let millis = (t.seconds || 0) * 1_000;
|
|
67
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
68
|
+
return new globalThis.Date(millis);
|
|
69
|
+
}
|
|
70
|
+
function fromJsonTimestamp(o) {
|
|
71
|
+
if (o instanceof globalThis.Date) {
|
|
72
|
+
return o;
|
|
73
|
+
}
|
|
74
|
+
else if (typeof o === "string") {
|
|
75
|
+
return new globalThis.Date(o);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function isSet(value) {
|
|
82
|
+
return value !== null && value !== undefined;
|
|
83
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface DeliveryMethod {
|
|
2
|
+
isOnline: boolean;
|
|
3
|
+
isBlended: boolean;
|
|
4
|
+
isOnCampus: boolean;
|
|
5
|
+
canShowTimeFlexibility: boolean;
|
|
6
|
+
timeFlexibility: string[];
|
|
7
|
+
canShowTeacherSupport: boolean;
|
|
8
|
+
teacherSupport: string[];
|
|
9
|
+
canShowStudentInteractions: boolean;
|
|
10
|
+
studentInteractions: string[];
|
|
11
|
+
canShowAttendances: boolean;
|
|
12
|
+
attendances: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare const DeliveryMethod: MessageFns<DeliveryMethod>;
|
|
15
|
+
interface MessageFns<T> {
|
|
16
|
+
fromJSON(object: any): T;
|
|
17
|
+
toJSON(message: T): unknown;
|
|
18
|
+
}
|
|
19
|
+
export {};
|