@studyportals/domain-client 10.3.0 → 10.4.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/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/organisation-search-document/i-organisation-search-document.d.ts +12 -0
- package/protobuf/Credits.d.ts +0 -17
- package/protobuf/Credits.js +0 -54
- package/protobuf/DisciplineDescription.d.ts +0 -16
- package/protobuf/DisciplineDescription.js +0 -45
- package/protobuf/DisciplineEssentialInformation.d.ts +0 -17
- package/protobuf/DisciplineEssentialInformation.js +0 -54
- package/protobuf/Language.d.ts +0 -16
- package/protobuf/Language.js +0 -54
- package/protobuf/OrganisationReview.d.ts +0 -13
- package/protobuf/OrganisationReview.js +0 -42
- package/protobuf/Programme/AcademicRequirements.d.ts +0 -15
- package/protobuf/Programme/AcademicRequirements.js +0 -41
- package/protobuf/Programme/BannerTargeting.d.ts +0 -11
- package/protobuf/Programme/BannerTargeting.js +0 -31
- package/protobuf/Programme/CourseInstance.d.ts +0 -21
- package/protobuf/Programme/CourseInstance.js +0 -83
- package/protobuf/Programme/DeliveryMethod.d.ts +0 -19
- package/protobuf/Programme/DeliveryMethod.js +0 -76
- package/protobuf/Programme/DisciplineList.d.ts +0 -13
- package/protobuf/Programme/DisciplineList.js +0 -37
- package/protobuf/Programme/InsuranceConfiguration.d.ts +0 -9
- package/protobuf/Programme/InsuranceConfiguration.js +0 -20
- package/protobuf/Programme/Intensity.d.ts +0 -18
- package/protobuf/Programme/Intensity.js +0 -57
- package/protobuf/Programme/LandingPageLink.d.ts +0 -12
- package/protobuf/Programme/LandingPageLink.js +0 -34
- package/protobuf/Programme/LivingCostDetails.d.ts +0 -12
- package/protobuf/Programme/LivingCostDetails.js +0 -29
- package/protobuf/Programme/Media.d.ts +0 -24
- package/protobuf/Programme/Media.js +0 -87
- package/protobuf/Programme/PartTimeDuration.d.ts +0 -18
- package/protobuf/Programme/PartTimeDuration.js +0 -54
- package/protobuf/Programme/Programme.d.ts +0 -111
- package/protobuf/Programme/Programme.js +0 -376
- package/protobuf/Programme/ProgrammeDescription.d.ts +0 -17
- package/protobuf/Programme/ProgrammeDescription.js +0 -59
- package/protobuf/Programme/ProgrammeEnglishRequirements.d.ts +0 -14
- package/protobuf/Programme/ProgrammeEnglishRequirements.js +0 -40
- package/protobuf/Programme/ProgrammeEssentialInformation.d.ts +0 -27
- package/protobuf/Programme/ProgrammeEssentialInformation.js +0 -111
- package/protobuf/Programme/Provider.d.ts +0 -18
- package/protobuf/Programme/Provider.js +0 -56
- package/protobuf/Programme/QuickFacts.d.ts +0 -19
- package/protobuf/Programme/QuickFacts.js +0 -56
- package/protobuf/Programme/RemarketingUserTag.d.ts +0 -12
- package/protobuf/Programme/RemarketingUserTag.js +0 -36
- package/protobuf/Programme/Requirements.d.ts +0 -19
- package/protobuf/Programme/Requirements.js +0 -70
- package/protobuf/Programme/Score.d.ts +0 -10
- package/protobuf/Programme/Score.js +0 -26
- package/protobuf/Programme/StartDate.d.ts +0 -15
- package/protobuf/Programme/StartDate.js +0 -43
- package/protobuf/Programme/StartDateDomain.d.ts +0 -13
- package/protobuf/Programme/StartDateDomain.js +0 -55
- package/protobuf/Programme/StructuredData.d.ts +0 -20
- package/protobuf/Programme/StructuredData.js +0 -67
- package/protobuf/Programme/Summary.d.ts +0 -12
- package/protobuf/Programme/Summary.js +0 -34
- package/protobuf/Programme/TestCard.d.ts +0 -12
- package/protobuf/Programme/TestCard.js +0 -32
- package/protobuf/Programme/TestProviderConfiguration.d.ts +0 -14
- package/protobuf/Programme/TestProviderConfiguration.js +0 -42
- package/protobuf/Programme/TuitionFeeDetails.d.ts +0 -17
- package/protobuf/Programme/TuitionFeeDetails.js +0 -48
- package/protobuf/Programme/Venue.d.ts +0 -15
- package/protobuf/Programme/Venue.js +0 -46
- package/protobuf/Programme/VenueList.d.ts +0 -12
- package/protobuf/Programme/VenueList.js +0 -32
- package/protobuf/SimpleTrackedLink.d.ts +0 -14
- package/protobuf/SimpleTrackedLink.js +0 -42
- package/protobuf/google/protobuf/duration.d.ts +0 -83
- package/protobuf/google/protobuf/duration.js +0 -26
|
@@ -1,56 +0,0 @@
|
|
|
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/Provider.proto
|
|
6
|
-
export const ProviderLocation = {
|
|
7
|
-
fromJSON(object) {
|
|
8
|
-
return {
|
|
9
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
10
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
11
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
toJSON(message) {
|
|
15
|
-
const obj = {};
|
|
16
|
-
if (message.id !== "") {
|
|
17
|
-
obj.id = message.id;
|
|
18
|
-
}
|
|
19
|
-
if (message.name !== "") {
|
|
20
|
-
obj.name = message.name;
|
|
21
|
-
}
|
|
22
|
-
if (message.address !== "") {
|
|
23
|
-
obj.address = message.address;
|
|
24
|
-
}
|
|
25
|
-
return obj;
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
export const Provider = {
|
|
29
|
-
fromJSON(object) {
|
|
30
|
-
return {
|
|
31
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
32
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
33
|
-
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
34
|
-
location: isSet(object.location) ? ProviderLocation.fromJSON(object.location) : undefined,
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
toJSON(message) {
|
|
38
|
-
const obj = {};
|
|
39
|
-
if (message.id !== "") {
|
|
40
|
-
obj.id = message.id;
|
|
41
|
-
}
|
|
42
|
-
if (message.name !== "") {
|
|
43
|
-
obj.name = message.name;
|
|
44
|
-
}
|
|
45
|
-
if (message.url !== "") {
|
|
46
|
-
obj.url = message.url;
|
|
47
|
-
}
|
|
48
|
-
if (message.location !== undefined) {
|
|
49
|
-
obj.location = ProviderLocation.toJSON(message.location);
|
|
50
|
-
}
|
|
51
|
-
return obj;
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
function isSet(value) {
|
|
55
|
-
return value !== null && value !== undefined;
|
|
56
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Duration } from "../Duration.js";
|
|
2
|
-
import { Timing } from "../Timing.js";
|
|
3
|
-
import { TuitionFee } from "../TuitionFee.js";
|
|
4
|
-
export interface QuickFacts {
|
|
5
|
-
duration: Duration | undefined;
|
|
6
|
-
canShowDuration: boolean;
|
|
7
|
-
tuitionFees: TuitionFee[];
|
|
8
|
-
canShowTuitionFees: boolean;
|
|
9
|
-
timings: Timing[];
|
|
10
|
-
canShowTimings: boolean;
|
|
11
|
-
countryId: number;
|
|
12
|
-
canShowCountryId: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const QuickFacts: MessageFns<QuickFacts>;
|
|
15
|
-
interface MessageFns<T> {
|
|
16
|
-
fromJSON(object: any): T;
|
|
17
|
-
toJSON(message: T): unknown;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
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/QuickFacts.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { Duration } from "../Duration.js";
|
|
8
|
-
import { Timing } from "../Timing.js";
|
|
9
|
-
import { TuitionFee } from "../TuitionFee.js";
|
|
10
|
-
export const QuickFacts = {
|
|
11
|
-
fromJSON(object) {
|
|
12
|
-
return {
|
|
13
|
-
duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
|
|
14
|
-
canShowDuration: isSet(object.canShowDuration) ? globalThis.Boolean(object.canShowDuration) : 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
|
-
timings: globalThis.Array.isArray(object?.timings) ? object.timings.map((e) => Timing.fromJSON(e)) : [],
|
|
20
|
-
canShowTimings: isSet(object.canShowTimings) ? globalThis.Boolean(object.canShowTimings) : false,
|
|
21
|
-
countryId: isSet(object.countryId) ? globalThis.Number(object.countryId) : 0,
|
|
22
|
-
canShowCountryId: isSet(object.canShowCountryId) ? globalThis.Boolean(object.canShowCountryId) : false,
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
toJSON(message) {
|
|
26
|
-
const obj = {};
|
|
27
|
-
if (message.duration !== undefined) {
|
|
28
|
-
obj.duration = Duration.toJSON(message.duration);
|
|
29
|
-
}
|
|
30
|
-
if (message.canShowDuration !== false) {
|
|
31
|
-
obj.canShowDuration = message.canShowDuration;
|
|
32
|
-
}
|
|
33
|
-
if (message.tuitionFees?.length) {
|
|
34
|
-
obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee.toJSON(e));
|
|
35
|
-
}
|
|
36
|
-
if (message.canShowTuitionFees !== false) {
|
|
37
|
-
obj.canShowTuitionFees = message.canShowTuitionFees;
|
|
38
|
-
}
|
|
39
|
-
if (message.timings?.length) {
|
|
40
|
-
obj.timings = message.timings.map((e) => Timing.toJSON(e));
|
|
41
|
-
}
|
|
42
|
-
if (message.canShowTimings !== false) {
|
|
43
|
-
obj.canShowTimings = message.canShowTimings;
|
|
44
|
-
}
|
|
45
|
-
if (message.countryId !== 0) {
|
|
46
|
-
obj.countryId = Math.round(message.countryId);
|
|
47
|
-
}
|
|
48
|
-
if (message.canShowCountryId !== false) {
|
|
49
|
-
obj.canShowCountryId = message.canShowCountryId;
|
|
50
|
-
}
|
|
51
|
-
return obj;
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
function isSet(value) {
|
|
55
|
-
return value !== null && value !== undefined;
|
|
56
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface RemarketingUserTag {
|
|
2
|
-
programmeId: number;
|
|
3
|
-
disciplineIds: number[];
|
|
4
|
-
countryId: number;
|
|
5
|
-
campaignType: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const RemarketingUserTag: MessageFns<RemarketingUserTag>;
|
|
8
|
-
interface MessageFns<T> {
|
|
9
|
-
fromJSON(object: any): T;
|
|
10
|
-
toJSON(message: T): unknown;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
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/RemarketingUserTag.proto
|
|
6
|
-
export const RemarketingUserTag = {
|
|
7
|
-
fromJSON(object) {
|
|
8
|
-
return {
|
|
9
|
-
programmeId: isSet(object.programmeId) ? globalThis.Number(object.programmeId) : 0,
|
|
10
|
-
disciplineIds: globalThis.Array.isArray(object?.disciplineIds)
|
|
11
|
-
? object.disciplineIds.map((e) => globalThis.Number(e))
|
|
12
|
-
: [],
|
|
13
|
-
countryId: isSet(object.countryId) ? globalThis.Number(object.countryId) : 0,
|
|
14
|
-
campaignType: isSet(object.campaignType) ? globalThis.String(object.campaignType) : "",
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
toJSON(message) {
|
|
18
|
-
const obj = {};
|
|
19
|
-
if (message.programmeId !== 0) {
|
|
20
|
-
obj.programmeId = Math.round(message.programmeId);
|
|
21
|
-
}
|
|
22
|
-
if (message.disciplineIds?.length) {
|
|
23
|
-
obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
|
|
24
|
-
}
|
|
25
|
-
if (message.countryId !== 0) {
|
|
26
|
-
obj.countryId = Math.round(message.countryId);
|
|
27
|
-
}
|
|
28
|
-
if (message.campaignType !== "") {
|
|
29
|
-
obj.campaignType = message.campaignType;
|
|
30
|
-
}
|
|
31
|
-
return obj;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
function isSet(value) {
|
|
35
|
-
return value !== null && value !== undefined;
|
|
36
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RichText } from "../RichText.js";
|
|
2
|
-
import { AcademicRequirements } from "./AcademicRequirements.js";
|
|
3
|
-
import { ProgrammeEnglishRequirements } from "./ProgrammeEnglishRequirements.js";
|
|
4
|
-
export interface Requirements {
|
|
5
|
-
generalRequirements?: RichText | undefined;
|
|
6
|
-
technologyRequirements?: RichText | undefined;
|
|
7
|
-
workExperienceRequirements?: RichText | undefined;
|
|
8
|
-
englishRequirements?: ProgrammeEnglishRequirements | undefined;
|
|
9
|
-
academicRequirements?: AcademicRequirements | undefined;
|
|
10
|
-
canShowGeneralRequirements: boolean;
|
|
11
|
-
canShowTechnologyRequirements: boolean;
|
|
12
|
-
canShowWorkExperienceRequirements: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const Requirements: MessageFns<Requirements>;
|
|
15
|
-
interface MessageFns<T> {
|
|
16
|
-
fromJSON(object: any): T;
|
|
17
|
-
toJSON(message: T): unknown;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,70 +0,0 @@
|
|
|
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/Requirements.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { RichText } from "../RichText.js";
|
|
8
|
-
import { AcademicRequirements } from "./AcademicRequirements.js";
|
|
9
|
-
import { ProgrammeEnglishRequirements } from "./ProgrammeEnglishRequirements.js";
|
|
10
|
-
export const Requirements = {
|
|
11
|
-
fromJSON(object) {
|
|
12
|
-
return {
|
|
13
|
-
generalRequirements: isSet(object.generalRequirements)
|
|
14
|
-
? RichText.fromJSON(object.generalRequirements)
|
|
15
|
-
: undefined,
|
|
16
|
-
technologyRequirements: isSet(object.technologyRequirements)
|
|
17
|
-
? RichText.fromJSON(object.technologyRequirements)
|
|
18
|
-
: undefined,
|
|
19
|
-
workExperienceRequirements: isSet(object.workExperienceRequirements)
|
|
20
|
-
? RichText.fromJSON(object.workExperienceRequirements)
|
|
21
|
-
: undefined,
|
|
22
|
-
englishRequirements: isSet(object.englishRequirements)
|
|
23
|
-
? ProgrammeEnglishRequirements.fromJSON(object.englishRequirements)
|
|
24
|
-
: undefined,
|
|
25
|
-
academicRequirements: isSet(object.academicRequirements)
|
|
26
|
-
? AcademicRequirements.fromJSON(object.academicRequirements)
|
|
27
|
-
: undefined,
|
|
28
|
-
canShowGeneralRequirements: isSet(object.canShowGeneralRequirements)
|
|
29
|
-
? globalThis.Boolean(object.canShowGeneralRequirements)
|
|
30
|
-
: false,
|
|
31
|
-
canShowTechnologyRequirements: isSet(object.canShowTechnologyRequirements)
|
|
32
|
-
? globalThis.Boolean(object.canShowTechnologyRequirements)
|
|
33
|
-
: false,
|
|
34
|
-
canShowWorkExperienceRequirements: isSet(object.canShowWorkExperienceRequirements)
|
|
35
|
-
? globalThis.Boolean(object.canShowWorkExperienceRequirements)
|
|
36
|
-
: false,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
toJSON(message) {
|
|
40
|
-
const obj = {};
|
|
41
|
-
if (message.generalRequirements !== undefined) {
|
|
42
|
-
obj.generalRequirements = RichText.toJSON(message.generalRequirements);
|
|
43
|
-
}
|
|
44
|
-
if (message.technologyRequirements !== undefined) {
|
|
45
|
-
obj.technologyRequirements = RichText.toJSON(message.technologyRequirements);
|
|
46
|
-
}
|
|
47
|
-
if (message.workExperienceRequirements !== undefined) {
|
|
48
|
-
obj.workExperienceRequirements = RichText.toJSON(message.workExperienceRequirements);
|
|
49
|
-
}
|
|
50
|
-
if (message.englishRequirements !== undefined) {
|
|
51
|
-
obj.englishRequirements = ProgrammeEnglishRequirements.toJSON(message.englishRequirements);
|
|
52
|
-
}
|
|
53
|
-
if (message.academicRequirements !== undefined) {
|
|
54
|
-
obj.academicRequirements = AcademicRequirements.toJSON(message.academicRequirements);
|
|
55
|
-
}
|
|
56
|
-
if (message.canShowGeneralRequirements !== false) {
|
|
57
|
-
obj.canShowGeneralRequirements = message.canShowGeneralRequirements;
|
|
58
|
-
}
|
|
59
|
-
if (message.canShowTechnologyRequirements !== false) {
|
|
60
|
-
obj.canShowTechnologyRequirements = message.canShowTechnologyRequirements;
|
|
61
|
-
}
|
|
62
|
-
if (message.canShowWorkExperienceRequirements !== false) {
|
|
63
|
-
obj.canShowWorkExperienceRequirements = message.canShowWorkExperienceRequirements;
|
|
64
|
-
}
|
|
65
|
-
return obj;
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
function isSet(value) {
|
|
69
|
-
return value !== null && value !== undefined;
|
|
70
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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/Score.proto
|
|
6
|
-
export const Score = {
|
|
7
|
-
fromJSON(object) {
|
|
8
|
-
return {
|
|
9
|
-
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
10
|
-
score: isSet(object.score) ? globalThis.String(object.score) : undefined,
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
toJSON(message) {
|
|
14
|
-
const obj = {};
|
|
15
|
-
if (message.type !== "") {
|
|
16
|
-
obj.type = message.type;
|
|
17
|
-
}
|
|
18
|
-
if (message.score !== undefined) {
|
|
19
|
-
obj.score = message.score;
|
|
20
|
-
}
|
|
21
|
-
return obj;
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
function isSet(value) {
|
|
25
|
-
return value !== null && value !== undefined;
|
|
26
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RichText } from "../RichText.js";
|
|
2
|
-
import { StartDateDomain } from "./StartDateDomain.js";
|
|
3
|
-
export interface StartDate {
|
|
4
|
-
isStartingAnytime: boolean;
|
|
5
|
-
startDates: StartDateDomain[];
|
|
6
|
-
canShowStartDates: boolean;
|
|
7
|
-
description?: RichText | undefined;
|
|
8
|
-
canShowDescription: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const StartDate: MessageFns<StartDate>;
|
|
11
|
-
interface MessageFns<T> {
|
|
12
|
-
fromJSON(object: any): T;
|
|
13
|
-
toJSON(message: T): unknown;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
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/StartDate.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { RichText } from "../RichText.js";
|
|
8
|
-
import { StartDateDomain } from "./StartDateDomain.js";
|
|
9
|
-
export const StartDate = {
|
|
10
|
-
fromJSON(object) {
|
|
11
|
-
return {
|
|
12
|
-
isStartingAnytime: isSet(object.isStartingAnytime) ? globalThis.Boolean(object.isStartingAnytime) : false,
|
|
13
|
-
startDates: globalThis.Array.isArray(object?.startDates)
|
|
14
|
-
? object.startDates.map((e) => StartDateDomain.fromJSON(e))
|
|
15
|
-
: [],
|
|
16
|
-
canShowStartDates: isSet(object.canShowStartDates) ? globalThis.Boolean(object.canShowStartDates) : false,
|
|
17
|
-
description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
|
|
18
|
-
canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
toJSON(message) {
|
|
22
|
-
const obj = {};
|
|
23
|
-
if (message.isStartingAnytime !== false) {
|
|
24
|
-
obj.isStartingAnytime = message.isStartingAnytime;
|
|
25
|
-
}
|
|
26
|
-
if (message.startDates?.length) {
|
|
27
|
-
obj.startDates = message.startDates.map((e) => StartDateDomain.toJSON(e));
|
|
28
|
-
}
|
|
29
|
-
if (message.canShowStartDates !== false) {
|
|
30
|
-
obj.canShowStartDates = message.canShowStartDates;
|
|
31
|
-
}
|
|
32
|
-
if (message.description !== undefined) {
|
|
33
|
-
obj.description = RichText.toJSON(message.description);
|
|
34
|
-
}
|
|
35
|
-
if (message.canShowDescription !== false) {
|
|
36
|
-
obj.canShowDescription = message.canShowDescription;
|
|
37
|
-
}
|
|
38
|
-
return obj;
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
function isSet(value) {
|
|
42
|
-
return value !== null && value !== undefined;
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Deadline } from "../Deadline.js";
|
|
2
|
-
export interface StartDateDomain {
|
|
3
|
-
isPassed: boolean;
|
|
4
|
-
date?: Date | undefined;
|
|
5
|
-
isApplyingAnytime: boolean;
|
|
6
|
-
deadlines: Deadline[];
|
|
7
|
-
}
|
|
8
|
-
export declare const StartDateDomain: MessageFns<StartDateDomain>;
|
|
9
|
-
interface MessageFns<T> {
|
|
10
|
-
fromJSON(object: any): T;
|
|
11
|
-
toJSON(message: T): unknown;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
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/StartDateDomain.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { Deadline } from "../Deadline.js";
|
|
8
|
-
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
9
|
-
export const StartDateDomain = {
|
|
10
|
-
fromJSON(object) {
|
|
11
|
-
return {
|
|
12
|
-
isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
|
|
13
|
-
date: isSet(object.date) ? fromJsonTimestamp(object.date) : undefined,
|
|
14
|
-
isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
|
|
15
|
-
deadlines: globalThis.Array.isArray(object?.deadlines)
|
|
16
|
-
? object.deadlines.map((e) => Deadline.fromJSON(e))
|
|
17
|
-
: [],
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
toJSON(message) {
|
|
21
|
-
const obj = {};
|
|
22
|
-
if (message.isPassed !== false) {
|
|
23
|
-
obj.isPassed = message.isPassed;
|
|
24
|
-
}
|
|
25
|
-
if (message.date !== undefined) {
|
|
26
|
-
obj.date = message.date.toISOString();
|
|
27
|
-
}
|
|
28
|
-
if (message.isApplyingAnytime !== false) {
|
|
29
|
-
obj.isApplyingAnytime = message.isApplyingAnytime;
|
|
30
|
-
}
|
|
31
|
-
if (message.deadlines?.length) {
|
|
32
|
-
obj.deadlines = message.deadlines.map((e) => Deadline.toJSON(e));
|
|
33
|
-
}
|
|
34
|
-
return obj;
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
function fromTimestamp(t) {
|
|
38
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
39
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
40
|
-
return new globalThis.Date(millis);
|
|
41
|
-
}
|
|
42
|
-
function fromJsonTimestamp(o) {
|
|
43
|
-
if (o instanceof globalThis.Date) {
|
|
44
|
-
return o;
|
|
45
|
-
}
|
|
46
|
-
else if (typeof o === "string") {
|
|
47
|
-
return new globalThis.Date(o);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function isSet(value) {
|
|
54
|
-
return value !== null && value !== undefined;
|
|
55
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CourseInstance } from "./CourseInstance.js";
|
|
2
|
-
import { Provider } from "./Provider.js";
|
|
3
|
-
export interface StructuredData {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
url: string;
|
|
7
|
-
description: string;
|
|
8
|
-
educationalCredentialAwarded: string;
|
|
9
|
-
image: string;
|
|
10
|
-
canShowImage: boolean;
|
|
11
|
-
provider?: Provider | undefined;
|
|
12
|
-
courseInstances: CourseInstance[];
|
|
13
|
-
canShowCourseInstances: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const StructuredData: MessageFns<StructuredData>;
|
|
16
|
-
interface MessageFns<T> {
|
|
17
|
-
fromJSON(object: any): T;
|
|
18
|
-
toJSON(message: T): unknown;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
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/StructuredData.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { CourseInstance } from "./CourseInstance.js";
|
|
8
|
-
import { Provider } from "./Provider.js";
|
|
9
|
-
export const StructuredData = {
|
|
10
|
-
fromJSON(object) {
|
|
11
|
-
return {
|
|
12
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
13
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
14
|
-
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
15
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
16
|
-
educationalCredentialAwarded: isSet(object.educationalCredentialAwarded)
|
|
17
|
-
? globalThis.String(object.educationalCredentialAwarded)
|
|
18
|
-
: "",
|
|
19
|
-
image: isSet(object.image) ? globalThis.String(object.image) : "",
|
|
20
|
-
canShowImage: isSet(object.canShowImage) ? globalThis.Boolean(object.canShowImage) : false,
|
|
21
|
-
provider: isSet(object.provider) ? Provider.fromJSON(object.provider) : undefined,
|
|
22
|
-
courseInstances: globalThis.Array.isArray(object?.courseInstances)
|
|
23
|
-
? object.courseInstances.map((e) => CourseInstance.fromJSON(e))
|
|
24
|
-
: [],
|
|
25
|
-
canShowCourseInstances: isSet(object.canShowCourseInstances)
|
|
26
|
-
? globalThis.Boolean(object.canShowCourseInstances)
|
|
27
|
-
: false,
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
toJSON(message) {
|
|
31
|
-
const obj = {};
|
|
32
|
-
if (message.id !== "") {
|
|
33
|
-
obj.id = message.id;
|
|
34
|
-
}
|
|
35
|
-
if (message.name !== "") {
|
|
36
|
-
obj.name = message.name;
|
|
37
|
-
}
|
|
38
|
-
if (message.url !== "") {
|
|
39
|
-
obj.url = message.url;
|
|
40
|
-
}
|
|
41
|
-
if (message.description !== "") {
|
|
42
|
-
obj.description = message.description;
|
|
43
|
-
}
|
|
44
|
-
if (message.educationalCredentialAwarded !== "") {
|
|
45
|
-
obj.educationalCredentialAwarded = message.educationalCredentialAwarded;
|
|
46
|
-
}
|
|
47
|
-
if (message.image !== "") {
|
|
48
|
-
obj.image = message.image;
|
|
49
|
-
}
|
|
50
|
-
if (message.canShowImage !== false) {
|
|
51
|
-
obj.canShowImage = message.canShowImage;
|
|
52
|
-
}
|
|
53
|
-
if (message.provider !== undefined) {
|
|
54
|
-
obj.provider = Provider.toJSON(message.provider);
|
|
55
|
-
}
|
|
56
|
-
if (message.courseInstances?.length) {
|
|
57
|
-
obj.courseInstances = message.courseInstances.map((e) => CourseInstance.toJSON(e));
|
|
58
|
-
}
|
|
59
|
-
if (message.canShowCourseInstances !== false) {
|
|
60
|
-
obj.canShowCourseInstances = message.canShowCourseInstances;
|
|
61
|
-
}
|
|
62
|
-
return obj;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
function isSet(value) {
|
|
66
|
-
return value !== null && value !== undefined;
|
|
67
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TrackedLink } from "../TrackedLink.js";
|
|
2
|
-
export interface Summary {
|
|
3
|
-
inSummaryLink?: TrackedLink | undefined;
|
|
4
|
-
summary: string;
|
|
5
|
-
canShowInSummaryLink: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const Summary: MessageFns<Summary>;
|
|
8
|
-
interface MessageFns<T> {
|
|
9
|
-
fromJSON(object: any): T;
|
|
10
|
-
toJSON(message: T): unknown;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
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/Summary.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { TrackedLink } from "../TrackedLink.js";
|
|
8
|
-
export const Summary = {
|
|
9
|
-
fromJSON(object) {
|
|
10
|
-
return {
|
|
11
|
-
inSummaryLink: isSet(object.inSummaryLink) ? TrackedLink.fromJSON(object.inSummaryLink) : undefined,
|
|
12
|
-
summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
|
|
13
|
-
canShowInSummaryLink: isSet(object.canShowInSummaryLink)
|
|
14
|
-
? globalThis.Boolean(object.canShowInSummaryLink)
|
|
15
|
-
: false,
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
toJSON(message) {
|
|
19
|
-
const obj = {};
|
|
20
|
-
if (message.inSummaryLink !== undefined) {
|
|
21
|
-
obj.inSummaryLink = TrackedLink.toJSON(message.inSummaryLink);
|
|
22
|
-
}
|
|
23
|
-
if (message.summary !== "") {
|
|
24
|
-
obj.summary = message.summary;
|
|
25
|
-
}
|
|
26
|
-
if (message.canShowInSummaryLink !== false) {
|
|
27
|
-
obj.canShowInSummaryLink = message.canShowInSummaryLink;
|
|
28
|
-
}
|
|
29
|
-
return obj;
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
function isSet(value) {
|
|
33
|
-
return value !== null && value !== undefined;
|
|
34
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Score } from "./Score.js";
|
|
2
|
-
export interface TestCard {
|
|
3
|
-
scores: Score[];
|
|
4
|
-
canShowCard: boolean;
|
|
5
|
-
canShowScores: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const TestCard: MessageFns<TestCard>;
|
|
8
|
-
interface MessageFns<T> {
|
|
9
|
-
fromJSON(object: any): T;
|
|
10
|
-
toJSON(message: T): unknown;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
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/TestCard.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { Score } from "./Score.js";
|
|
8
|
-
export const TestCard = {
|
|
9
|
-
fromJSON(object) {
|
|
10
|
-
return {
|
|
11
|
-
scores: globalThis.Array.isArray(object?.scores) ? object.scores.map((e) => Score.fromJSON(e)) : [],
|
|
12
|
-
canShowCard: isSet(object.canShowCard) ? globalThis.Boolean(object.canShowCard) : false,
|
|
13
|
-
canShowScores: isSet(object.canShowScores) ? globalThis.Boolean(object.canShowScores) : false,
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
toJSON(message) {
|
|
17
|
-
const obj = {};
|
|
18
|
-
if (message.scores?.length) {
|
|
19
|
-
obj.scores = message.scores.map((e) => Score.toJSON(e));
|
|
20
|
-
}
|
|
21
|
-
if (message.canShowCard !== false) {
|
|
22
|
-
obj.canShowCard = message.canShowCard;
|
|
23
|
-
}
|
|
24
|
-
if (message.canShowScores !== false) {
|
|
25
|
-
obj.canShowScores = message.canShowScores;
|
|
26
|
-
}
|
|
27
|
-
return obj;
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
function isSet(value) {
|
|
31
|
-
return value !== null && value !== undefined;
|
|
32
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface TestProviderConfiguration {
|
|
2
|
-
canShowIeltsAd: boolean;
|
|
3
|
-
canShowIeltsExtras: boolean;
|
|
4
|
-
canShowToeflAd: boolean;
|
|
5
|
-
canShowToeflExtras: boolean;
|
|
6
|
-
canShowGreAd: boolean;
|
|
7
|
-
canShowGreExtras: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const TestProviderConfiguration: MessageFns<TestProviderConfiguration>;
|
|
10
|
-
interface MessageFns<T> {
|
|
11
|
-
fromJSON(object: any): T;
|
|
12
|
-
toJSON(message: T): unknown;
|
|
13
|
-
}
|
|
14
|
-
export {};
|