@studyportals/domain-client 8.5.1-beta.22 → 10.0.1-beta.1
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
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Duration } from "../Duration.js";
|
|
1
2
|
import { Location } from "../Location.js";
|
|
2
3
|
import { Logo } from "../Logo.js";
|
|
3
|
-
import { TuitionFee as TuitionFeeDetails } from "../TuitionFee.js";
|
|
4
4
|
import { Timing } from "../Timing.js";
|
|
5
|
+
import { TuitionFee } from "../TuitionFee.js";
|
|
5
6
|
export interface PartnerApiProgramme {
|
|
6
7
|
id: number;
|
|
7
8
|
title: string;
|
|
@@ -9,9 +10,17 @@ export interface PartnerApiProgramme {
|
|
|
9
10
|
degreeFormatted: string;
|
|
10
11
|
summary?: string | undefined;
|
|
11
12
|
logo?: Logo | undefined;
|
|
12
|
-
|
|
13
|
+
tuitionFees: TuitionFee[];
|
|
13
14
|
locations: Location[];
|
|
14
15
|
timings: Timing[];
|
|
16
|
+
isPublic: boolean;
|
|
17
|
+
isFullyOnline: boolean;
|
|
18
|
+
isOnline: boolean;
|
|
19
|
+
isOnCampus: boolean;
|
|
20
|
+
isBlended: boolean;
|
|
21
|
+
isFullTime: boolean;
|
|
22
|
+
isPartTime: boolean;
|
|
23
|
+
duration?: Duration | undefined;
|
|
15
24
|
}
|
|
16
25
|
export declare const PartnerApiProgramme: MessageFns<PartnerApiProgramme>;
|
|
17
26
|
interface MessageFns<T> {
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: PartnerApi/PartnerApiProgramme.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
|
+
import { Duration } from "../Duration.js";
|
|
7
8
|
import { Location } from "../Location.js";
|
|
8
9
|
import { Logo } from "../Logo.js";
|
|
9
|
-
import { TuitionFee as TuitionFeeDetails } from "../TuitionFee.js";
|
|
10
10
|
import { Timing } from "../Timing.js";
|
|
11
|
+
import { TuitionFee } from "../TuitionFee.js";
|
|
11
12
|
export const PartnerApiProgramme = {
|
|
12
13
|
fromJSON(object) {
|
|
13
14
|
return {
|
|
@@ -17,13 +18,21 @@ export const PartnerApiProgramme = {
|
|
|
17
18
|
degreeFormatted: isSet(object.degreeFormatted) ? globalThis.String(object.degreeFormatted) : "",
|
|
18
19
|
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
19
20
|
logo: isSet(object.logo) ? Logo.fromJSON(object.logo) : undefined,
|
|
20
|
-
|
|
21
|
-
?
|
|
22
|
-
:
|
|
21
|
+
tuitionFees: globalThis.Array.isArray(object?.tuitionFees)
|
|
22
|
+
? object.tuitionFees.map((e) => TuitionFee.fromJSON(e))
|
|
23
|
+
: [],
|
|
23
24
|
locations: globalThis.Array.isArray(object?.locations)
|
|
24
25
|
? object.locations.map((e) => Location.fromJSON(e))
|
|
25
26
|
: [],
|
|
26
27
|
timings: globalThis.Array.isArray(object?.timings) ? object.timings.map((e) => Timing.fromJSON(e)) : [],
|
|
28
|
+
isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
|
|
29
|
+
isFullyOnline: isSet(object.isFullyOnline) ? globalThis.Boolean(object.isFullyOnline) : false,
|
|
30
|
+
isOnline: isSet(object.isOnline) ? globalThis.Boolean(object.isOnline) : false,
|
|
31
|
+
isOnCampus: isSet(object.isOnCampus) ? globalThis.Boolean(object.isOnCampus) : false,
|
|
32
|
+
isBlended: isSet(object.isBlended) ? globalThis.Boolean(object.isBlended) : false,
|
|
33
|
+
isFullTime: isSet(object.isFullTime) ? globalThis.Boolean(object.isFullTime) : false,
|
|
34
|
+
isPartTime: isSet(object.isPartTime) ? globalThis.Boolean(object.isPartTime) : false,
|
|
35
|
+
duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
|
|
27
36
|
};
|
|
28
37
|
},
|
|
29
38
|
toJSON(message) {
|
|
@@ -46,8 +55,8 @@ export const PartnerApiProgramme = {
|
|
|
46
55
|
if (message.logo !== undefined) {
|
|
47
56
|
obj.logo = Logo.toJSON(message.logo);
|
|
48
57
|
}
|
|
49
|
-
if (message.
|
|
50
|
-
obj.
|
|
58
|
+
if (message.tuitionFees?.length) {
|
|
59
|
+
obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee.toJSON(e));
|
|
51
60
|
}
|
|
52
61
|
if (message.locations?.length) {
|
|
53
62
|
obj.locations = message.locations.map((e) => Location.toJSON(e));
|
|
@@ -55,6 +64,30 @@ export const PartnerApiProgramme = {
|
|
|
55
64
|
if (message.timings?.length) {
|
|
56
65
|
obj.timings = message.timings.map((e) => Timing.toJSON(e));
|
|
57
66
|
}
|
|
67
|
+
if (message.isPublic !== false) {
|
|
68
|
+
obj.isPublic = message.isPublic;
|
|
69
|
+
}
|
|
70
|
+
if (message.isFullyOnline !== false) {
|
|
71
|
+
obj.isFullyOnline = message.isFullyOnline;
|
|
72
|
+
}
|
|
73
|
+
if (message.isOnline !== false) {
|
|
74
|
+
obj.isOnline = message.isOnline;
|
|
75
|
+
}
|
|
76
|
+
if (message.isOnCampus !== false) {
|
|
77
|
+
obj.isOnCampus = message.isOnCampus;
|
|
78
|
+
}
|
|
79
|
+
if (message.isBlended !== false) {
|
|
80
|
+
obj.isBlended = message.isBlended;
|
|
81
|
+
}
|
|
82
|
+
if (message.isFullTime !== false) {
|
|
83
|
+
obj.isFullTime = message.isFullTime;
|
|
84
|
+
}
|
|
85
|
+
if (message.isPartTime !== false) {
|
|
86
|
+
obj.isPartTime = message.isPartTime;
|
|
87
|
+
}
|
|
88
|
+
if (message.duration !== undefined) {
|
|
89
|
+
obj.duration = Duration.toJSON(message.duration);
|
|
90
|
+
}
|
|
58
91
|
return obj;
|
|
59
92
|
},
|
|
60
93
|
};
|