@studyportals/domain-client 10.5.0 → 10.5.1-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 +1 -1
- package/protobuf/Scholarship/ScholarshipCard.d.ts +9 -2
- package/protobuf/Scholarship/ScholarshipCard.js +42 -8
- package/protobuf/Scholarship/ScholarshipDeadlineType.d.ts +8 -0
- package/protobuf/Scholarship/ScholarshipDeadlineType.js +43 -0
- package/protobuf/Scholarship/ScholarshipDetail.d.ts +1 -15
- package/protobuf/Scholarship/ScholarshipDetail.js +3 -76
- package/protobuf/Scholarship/ScholarshipFormat.d.ts +15 -0
- package/protobuf/Scholarship/ScholarshipFormat.js +80 -0
- package/protobuf/Scholarship/ScholarshipType.d.ts +22 -0
- package/protobuf/Scholarship/ScholarshipType.js +122 -0
- package/protobuf/index.d.ts +3 -0
- package/protobuf/index.js +3 -0
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Location } from "../Location.js";
|
|
2
2
|
import { ReviewRating } from "../ReviewRating.js";
|
|
3
|
+
import { ScholarshipDeadlineType } from "./ScholarshipDeadlineType.js";
|
|
4
|
+
import { ScholarshipFormat } from "./ScholarshipFormat.js";
|
|
5
|
+
import { ScholarshipType } from "./ScholarshipType.js";
|
|
3
6
|
export interface ScholarshipCard {
|
|
4
7
|
id: number;
|
|
5
8
|
title: string;
|
|
@@ -14,8 +17,9 @@ export interface ScholarshipCard {
|
|
|
14
17
|
/** only set when isUniversityProvider */
|
|
15
18
|
providerOrganisation?: ScholarshipProviderOrganisation | undefined;
|
|
16
19
|
benefitText?: string | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
deadlineType: ScholarshipDeadlineType;
|
|
21
|
+
/** only set when deadlineType is SPECIFIED */
|
|
22
|
+
deadline?: Date | undefined;
|
|
19
23
|
destinationCountryRestrictionText: string;
|
|
20
24
|
applicationBasisText?: string | undefined;
|
|
21
25
|
grantCurrencyIso?: string | undefined;
|
|
@@ -27,6 +31,8 @@ export interface ScholarshipCard {
|
|
|
27
31
|
originCountryIsoCodes: string[];
|
|
28
32
|
isApplicableToAllDestinationCountries: boolean;
|
|
29
33
|
destinationCountryIsoCodes: string[];
|
|
34
|
+
formats: ScholarshipFormat[];
|
|
35
|
+
types: ScholarshipType[];
|
|
30
36
|
}
|
|
31
37
|
export interface ScholarshipProviderOrganisation {
|
|
32
38
|
id: number;
|
|
@@ -36,6 +42,7 @@ export interface ScholarshipProviderOrganisation {
|
|
|
36
42
|
reviewRating?: ReviewRating | undefined;
|
|
37
43
|
globalRankingPosition?: number | undefined;
|
|
38
44
|
globalRankingPositionPercentage?: string | undefined;
|
|
45
|
+
isPremium: boolean;
|
|
39
46
|
}
|
|
40
47
|
export declare const ScholarshipCard: MessageFns<ScholarshipCard>;
|
|
41
48
|
export declare const ScholarshipProviderOrganisation: MessageFns<ScholarshipProviderOrganisation>;
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Location } from "../Location.js";
|
|
8
8
|
import { ReviewRating } from "../ReviewRating.js";
|
|
9
|
+
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
10
|
+
import { scholarshipDeadlineTypeFromJSON, scholarshipDeadlineTypeToJSON, } from "./ScholarshipDeadlineType.js";
|
|
11
|
+
import { scholarshipFormatFromJSON, scholarshipFormatToJSON } from "./ScholarshipFormat.js";
|
|
12
|
+
import { scholarshipTypeFromJSON, scholarshipTypeToJSON } from "./ScholarshipType.js";
|
|
9
13
|
export const ScholarshipCard = {
|
|
10
14
|
fromJSON(object) {
|
|
11
15
|
return {
|
|
@@ -27,10 +31,8 @@ export const ScholarshipCard = {
|
|
|
27
31
|
? ScholarshipProviderOrganisation.fromJSON(object.providerOrganisation)
|
|
28
32
|
: undefined,
|
|
29
33
|
benefitText: isSet(object.benefitText) ? globalThis.String(object.benefitText) : undefined,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
? globalThis.Boolean(object.isDeadlineNotSpecified)
|
|
33
|
-
: false,
|
|
34
|
+
deadlineType: isSet(object.deadlineType) ? scholarshipDeadlineTypeFromJSON(object.deadlineType) : 0,
|
|
35
|
+
deadline: isSet(object.deadline) ? fromJsonTimestamp(object.deadline) : undefined,
|
|
34
36
|
destinationCountryRestrictionText: isSet(object.destinationCountryRestrictionText)
|
|
35
37
|
? globalThis.String(object.destinationCountryRestrictionText)
|
|
36
38
|
: "",
|
|
@@ -58,6 +60,12 @@ export const ScholarshipCard = {
|
|
|
58
60
|
destinationCountryIsoCodes: globalThis.Array.isArray(object?.destinationCountryIsoCodes)
|
|
59
61
|
? object.destinationCountryIsoCodes.map((e) => globalThis.String(e))
|
|
60
62
|
: [],
|
|
63
|
+
formats: globalThis.Array.isArray(object?.formats)
|
|
64
|
+
? object.formats.map((e) => scholarshipFormatFromJSON(e))
|
|
65
|
+
: [],
|
|
66
|
+
types: globalThis.Array.isArray(object?.types)
|
|
67
|
+
? object.types.map((e) => scholarshipTypeFromJSON(e))
|
|
68
|
+
: [],
|
|
61
69
|
};
|
|
62
70
|
},
|
|
63
71
|
toJSON(message) {
|
|
@@ -98,11 +106,11 @@ export const ScholarshipCard = {
|
|
|
98
106
|
if (message.benefitText !== undefined) {
|
|
99
107
|
obj.benefitText = message.benefitText;
|
|
100
108
|
}
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
109
|
+
if (message.deadlineType !== 0) {
|
|
110
|
+
obj.deadlineType = scholarshipDeadlineTypeToJSON(message.deadlineType);
|
|
103
111
|
}
|
|
104
|
-
if (message.
|
|
105
|
-
obj.
|
|
112
|
+
if (message.deadline !== undefined) {
|
|
113
|
+
obj.deadline = message.deadline.toISOString();
|
|
106
114
|
}
|
|
107
115
|
if (message.destinationCountryRestrictionText !== "") {
|
|
108
116
|
obj.destinationCountryRestrictionText = message.destinationCountryRestrictionText;
|
|
@@ -137,6 +145,12 @@ export const ScholarshipCard = {
|
|
|
137
145
|
if (message.destinationCountryIsoCodes?.length) {
|
|
138
146
|
obj.destinationCountryIsoCodes = message.destinationCountryIsoCodes;
|
|
139
147
|
}
|
|
148
|
+
if (message.formats?.length) {
|
|
149
|
+
obj.formats = message.formats.map((e) => scholarshipFormatToJSON(e));
|
|
150
|
+
}
|
|
151
|
+
if (message.types?.length) {
|
|
152
|
+
obj.types = message.types.map((e) => scholarshipTypeToJSON(e));
|
|
153
|
+
}
|
|
140
154
|
return obj;
|
|
141
155
|
},
|
|
142
156
|
};
|
|
@@ -156,6 +170,7 @@ export const ScholarshipProviderOrganisation = {
|
|
|
156
170
|
globalRankingPositionPercentage: isSet(object.globalRankingPositionPercentage)
|
|
157
171
|
? globalThis.String(object.globalRankingPositionPercentage)
|
|
158
172
|
: undefined,
|
|
173
|
+
isPremium: isSet(object.isPremium) ? globalThis.Boolean(object.isPremium) : false,
|
|
159
174
|
};
|
|
160
175
|
},
|
|
161
176
|
toJSON(message) {
|
|
@@ -181,9 +196,28 @@ export const ScholarshipProviderOrganisation = {
|
|
|
181
196
|
if (message.globalRankingPositionPercentage !== undefined) {
|
|
182
197
|
obj.globalRankingPositionPercentage = message.globalRankingPositionPercentage;
|
|
183
198
|
}
|
|
199
|
+
if (message.isPremium !== false) {
|
|
200
|
+
obj.isPremium = message.isPremium;
|
|
201
|
+
}
|
|
184
202
|
return obj;
|
|
185
203
|
},
|
|
186
204
|
};
|
|
205
|
+
function fromTimestamp(t) {
|
|
206
|
+
let millis = (t.seconds || 0) * 1_000;
|
|
207
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
208
|
+
return new globalThis.Date(millis);
|
|
209
|
+
}
|
|
210
|
+
function fromJsonTimestamp(o) {
|
|
211
|
+
if (o instanceof globalThis.Date) {
|
|
212
|
+
return o;
|
|
213
|
+
}
|
|
214
|
+
else if (typeof o === "string") {
|
|
215
|
+
return new globalThis.Date(o);
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
187
221
|
function isSet(value) {
|
|
188
222
|
return value !== null && value !== undefined;
|
|
189
223
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum ScholarshipDeadlineType {
|
|
2
|
+
NOT_SPECIFIED = 0,
|
|
3
|
+
ANY_TIME = 1,
|
|
4
|
+
SPECIFIED = 2,
|
|
5
|
+
UNRECOGNIZED = -1
|
|
6
|
+
}
|
|
7
|
+
export declare function scholarshipDeadlineTypeFromJSON(object: any): ScholarshipDeadlineType;
|
|
8
|
+
export declare function scholarshipDeadlineTypeToJSON(object: ScholarshipDeadlineType): string;
|
|
@@ -0,0 +1,43 @@
|
|
|
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: Scholarship/ScholarshipDeadlineType.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
export var ScholarshipDeadlineType;
|
|
8
|
+
(function (ScholarshipDeadlineType) {
|
|
9
|
+
ScholarshipDeadlineType[ScholarshipDeadlineType["NOT_SPECIFIED"] = 0] = "NOT_SPECIFIED";
|
|
10
|
+
ScholarshipDeadlineType[ScholarshipDeadlineType["ANY_TIME"] = 1] = "ANY_TIME";
|
|
11
|
+
ScholarshipDeadlineType[ScholarshipDeadlineType["SPECIFIED"] = 2] = "SPECIFIED";
|
|
12
|
+
ScholarshipDeadlineType[ScholarshipDeadlineType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
13
|
+
})(ScholarshipDeadlineType || (ScholarshipDeadlineType = {}));
|
|
14
|
+
export function scholarshipDeadlineTypeFromJSON(object) {
|
|
15
|
+
switch (object) {
|
|
16
|
+
case 0:
|
|
17
|
+
case "NOT_SPECIFIED":
|
|
18
|
+
return ScholarshipDeadlineType.NOT_SPECIFIED;
|
|
19
|
+
case 1:
|
|
20
|
+
case "ANY_TIME":
|
|
21
|
+
return ScholarshipDeadlineType.ANY_TIME;
|
|
22
|
+
case 2:
|
|
23
|
+
case "SPECIFIED":
|
|
24
|
+
return ScholarshipDeadlineType.SPECIFIED;
|
|
25
|
+
case -1:
|
|
26
|
+
case "UNRECOGNIZED":
|
|
27
|
+
default:
|
|
28
|
+
return ScholarshipDeadlineType.UNRECOGNIZED;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function scholarshipDeadlineTypeToJSON(object) {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case ScholarshipDeadlineType.NOT_SPECIFIED:
|
|
34
|
+
return "NOT_SPECIFIED";
|
|
35
|
+
case ScholarshipDeadlineType.ANY_TIME:
|
|
36
|
+
return "ANY_TIME";
|
|
37
|
+
case ScholarshipDeadlineType.SPECIFIED:
|
|
38
|
+
return "SPECIFIED";
|
|
39
|
+
case ScholarshipDeadlineType.UNRECOGNIZED:
|
|
40
|
+
default:
|
|
41
|
+
return "UNRECOGNIZED";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -4,21 +4,7 @@ import { Country } from "../Organisation.js";
|
|
|
4
4
|
import { OrganisationInformation } from "../OrganisationInformation.js";
|
|
5
5
|
import { ProgrammeCard } from "../ProgrammeCard.js";
|
|
6
6
|
import { RichText } from "../RichText.js";
|
|
7
|
-
|
|
8
|
-
/** SCHOLARSHIP_FORMAT_UNSPECIFIED - maps to null */
|
|
9
|
-
SCHOLARSHIP_FORMAT_UNSPECIFIED = 0,
|
|
10
|
-
TUITION_FEE_REDUCTION = 1,
|
|
11
|
-
LIVING_EXPENSES = 2,
|
|
12
|
-
ACCOMMODATION = 3,
|
|
13
|
-
TRAVEL_EXPENSES = 4,
|
|
14
|
-
SPOUSE_CHILD_CARE = 5,
|
|
15
|
-
HEALTH = 6,
|
|
16
|
-
APPLICATION = 7,
|
|
17
|
-
OTHER = 8,
|
|
18
|
-
UNRECOGNIZED = -1
|
|
19
|
-
}
|
|
20
|
-
export declare function scholarshipFormatFromJSON(object: any): ScholarshipFormat;
|
|
21
|
-
export declare function scholarshipFormatToJSON(object: ScholarshipFormat): string;
|
|
7
|
+
import { ScholarshipFormat } from "./ScholarshipFormat.js";
|
|
22
8
|
export interface ScholarshipDetail {
|
|
23
9
|
id: number;
|
|
24
10
|
title: string;
|
|
@@ -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: Scholarship/ScholarshipDetail.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Discipline } from "../Discipline.js";
|
|
@@ -10,80 +10,7 @@ import { Country } from "../Organisation.js";
|
|
|
10
10
|
import { OrganisationInformation } from "../OrganisationInformation.js";
|
|
11
11
|
import { ProgrammeCard } from "../ProgrammeCard.js";
|
|
12
12
|
import { RichText } from "../RichText.js";
|
|
13
|
-
|
|
14
|
-
(function (ScholarshipFormat) {
|
|
15
|
-
/** SCHOLARSHIP_FORMAT_UNSPECIFIED - maps to null */
|
|
16
|
-
ScholarshipFormat[ScholarshipFormat["SCHOLARSHIP_FORMAT_UNSPECIFIED"] = 0] = "SCHOLARSHIP_FORMAT_UNSPECIFIED";
|
|
17
|
-
ScholarshipFormat[ScholarshipFormat["TUITION_FEE_REDUCTION"] = 1] = "TUITION_FEE_REDUCTION";
|
|
18
|
-
ScholarshipFormat[ScholarshipFormat["LIVING_EXPENSES"] = 2] = "LIVING_EXPENSES";
|
|
19
|
-
ScholarshipFormat[ScholarshipFormat["ACCOMMODATION"] = 3] = "ACCOMMODATION";
|
|
20
|
-
ScholarshipFormat[ScholarshipFormat["TRAVEL_EXPENSES"] = 4] = "TRAVEL_EXPENSES";
|
|
21
|
-
ScholarshipFormat[ScholarshipFormat["SPOUSE_CHILD_CARE"] = 5] = "SPOUSE_CHILD_CARE";
|
|
22
|
-
ScholarshipFormat[ScholarshipFormat["HEALTH"] = 6] = "HEALTH";
|
|
23
|
-
ScholarshipFormat[ScholarshipFormat["APPLICATION"] = 7] = "APPLICATION";
|
|
24
|
-
ScholarshipFormat[ScholarshipFormat["OTHER"] = 8] = "OTHER";
|
|
25
|
-
ScholarshipFormat[ScholarshipFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
26
|
-
})(ScholarshipFormat || (ScholarshipFormat = {}));
|
|
27
|
-
export function scholarshipFormatFromJSON(object) {
|
|
28
|
-
switch (object) {
|
|
29
|
-
case 0:
|
|
30
|
-
case "SCHOLARSHIP_FORMAT_UNSPECIFIED":
|
|
31
|
-
return ScholarshipFormat.SCHOLARSHIP_FORMAT_UNSPECIFIED;
|
|
32
|
-
case 1:
|
|
33
|
-
case "TUITION_FEE_REDUCTION":
|
|
34
|
-
return ScholarshipFormat.TUITION_FEE_REDUCTION;
|
|
35
|
-
case 2:
|
|
36
|
-
case "LIVING_EXPENSES":
|
|
37
|
-
return ScholarshipFormat.LIVING_EXPENSES;
|
|
38
|
-
case 3:
|
|
39
|
-
case "ACCOMMODATION":
|
|
40
|
-
return ScholarshipFormat.ACCOMMODATION;
|
|
41
|
-
case 4:
|
|
42
|
-
case "TRAVEL_EXPENSES":
|
|
43
|
-
return ScholarshipFormat.TRAVEL_EXPENSES;
|
|
44
|
-
case 5:
|
|
45
|
-
case "SPOUSE_CHILD_CARE":
|
|
46
|
-
return ScholarshipFormat.SPOUSE_CHILD_CARE;
|
|
47
|
-
case 6:
|
|
48
|
-
case "HEALTH":
|
|
49
|
-
return ScholarshipFormat.HEALTH;
|
|
50
|
-
case 7:
|
|
51
|
-
case "APPLICATION":
|
|
52
|
-
return ScholarshipFormat.APPLICATION;
|
|
53
|
-
case 8:
|
|
54
|
-
case "OTHER":
|
|
55
|
-
return ScholarshipFormat.OTHER;
|
|
56
|
-
case -1:
|
|
57
|
-
case "UNRECOGNIZED":
|
|
58
|
-
default:
|
|
59
|
-
return ScholarshipFormat.UNRECOGNIZED;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export function scholarshipFormatToJSON(object) {
|
|
63
|
-
switch (object) {
|
|
64
|
-
case ScholarshipFormat.SCHOLARSHIP_FORMAT_UNSPECIFIED:
|
|
65
|
-
return "SCHOLARSHIP_FORMAT_UNSPECIFIED";
|
|
66
|
-
case ScholarshipFormat.TUITION_FEE_REDUCTION:
|
|
67
|
-
return "TUITION_FEE_REDUCTION";
|
|
68
|
-
case ScholarshipFormat.LIVING_EXPENSES:
|
|
69
|
-
return "LIVING_EXPENSES";
|
|
70
|
-
case ScholarshipFormat.ACCOMMODATION:
|
|
71
|
-
return "ACCOMMODATION";
|
|
72
|
-
case ScholarshipFormat.TRAVEL_EXPENSES:
|
|
73
|
-
return "TRAVEL_EXPENSES";
|
|
74
|
-
case ScholarshipFormat.SPOUSE_CHILD_CARE:
|
|
75
|
-
return "SPOUSE_CHILD_CARE";
|
|
76
|
-
case ScholarshipFormat.HEALTH:
|
|
77
|
-
return "HEALTH";
|
|
78
|
-
case ScholarshipFormat.APPLICATION:
|
|
79
|
-
return "APPLICATION";
|
|
80
|
-
case ScholarshipFormat.OTHER:
|
|
81
|
-
return "OTHER";
|
|
82
|
-
case ScholarshipFormat.UNRECOGNIZED:
|
|
83
|
-
default:
|
|
84
|
-
return "UNRECOGNIZED";
|
|
85
|
-
}
|
|
86
|
-
}
|
|
13
|
+
import { scholarshipFormatFromJSON, scholarshipFormatToJSON } from "./ScholarshipFormat.js";
|
|
87
14
|
export const ScholarshipDetail = {
|
|
88
15
|
fromJSON(object) {
|
|
89
16
|
return {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum ScholarshipFormat {
|
|
2
|
+
/** SCHOLARSHIP_FORMAT_UNSPECIFIED - maps to null */
|
|
3
|
+
SCHOLARSHIP_FORMAT_UNSPECIFIED = 0,
|
|
4
|
+
TUITION_FEE_REDUCTION = 1,
|
|
5
|
+
LIVING_EXPENSES = 2,
|
|
6
|
+
ACCOMMODATION = 3,
|
|
7
|
+
TRAVEL_EXPENSES = 4,
|
|
8
|
+
SPOUSE_CHILD_CARE = 5,
|
|
9
|
+
HEALTH = 6,
|
|
10
|
+
APPLICATION = 7,
|
|
11
|
+
OTHER = 8,
|
|
12
|
+
UNRECOGNIZED = -1
|
|
13
|
+
}
|
|
14
|
+
export declare function scholarshipFormatFromJSON(object: any): ScholarshipFormat;
|
|
15
|
+
export declare function scholarshipFormatToJSON(object: ScholarshipFormat): string;
|
|
@@ -0,0 +1,80 @@
|
|
|
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: Scholarship/ScholarshipFormat.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
export var ScholarshipFormat;
|
|
8
|
+
(function (ScholarshipFormat) {
|
|
9
|
+
/** SCHOLARSHIP_FORMAT_UNSPECIFIED - maps to null */
|
|
10
|
+
ScholarshipFormat[ScholarshipFormat["SCHOLARSHIP_FORMAT_UNSPECIFIED"] = 0] = "SCHOLARSHIP_FORMAT_UNSPECIFIED";
|
|
11
|
+
ScholarshipFormat[ScholarshipFormat["TUITION_FEE_REDUCTION"] = 1] = "TUITION_FEE_REDUCTION";
|
|
12
|
+
ScholarshipFormat[ScholarshipFormat["LIVING_EXPENSES"] = 2] = "LIVING_EXPENSES";
|
|
13
|
+
ScholarshipFormat[ScholarshipFormat["ACCOMMODATION"] = 3] = "ACCOMMODATION";
|
|
14
|
+
ScholarshipFormat[ScholarshipFormat["TRAVEL_EXPENSES"] = 4] = "TRAVEL_EXPENSES";
|
|
15
|
+
ScholarshipFormat[ScholarshipFormat["SPOUSE_CHILD_CARE"] = 5] = "SPOUSE_CHILD_CARE";
|
|
16
|
+
ScholarshipFormat[ScholarshipFormat["HEALTH"] = 6] = "HEALTH";
|
|
17
|
+
ScholarshipFormat[ScholarshipFormat["APPLICATION"] = 7] = "APPLICATION";
|
|
18
|
+
ScholarshipFormat[ScholarshipFormat["OTHER"] = 8] = "OTHER";
|
|
19
|
+
ScholarshipFormat[ScholarshipFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
|
+
})(ScholarshipFormat || (ScholarshipFormat = {}));
|
|
21
|
+
export function scholarshipFormatFromJSON(object) {
|
|
22
|
+
switch (object) {
|
|
23
|
+
case 0:
|
|
24
|
+
case "SCHOLARSHIP_FORMAT_UNSPECIFIED":
|
|
25
|
+
return ScholarshipFormat.SCHOLARSHIP_FORMAT_UNSPECIFIED;
|
|
26
|
+
case 1:
|
|
27
|
+
case "TUITION_FEE_REDUCTION":
|
|
28
|
+
return ScholarshipFormat.TUITION_FEE_REDUCTION;
|
|
29
|
+
case 2:
|
|
30
|
+
case "LIVING_EXPENSES":
|
|
31
|
+
return ScholarshipFormat.LIVING_EXPENSES;
|
|
32
|
+
case 3:
|
|
33
|
+
case "ACCOMMODATION":
|
|
34
|
+
return ScholarshipFormat.ACCOMMODATION;
|
|
35
|
+
case 4:
|
|
36
|
+
case "TRAVEL_EXPENSES":
|
|
37
|
+
return ScholarshipFormat.TRAVEL_EXPENSES;
|
|
38
|
+
case 5:
|
|
39
|
+
case "SPOUSE_CHILD_CARE":
|
|
40
|
+
return ScholarshipFormat.SPOUSE_CHILD_CARE;
|
|
41
|
+
case 6:
|
|
42
|
+
case "HEALTH":
|
|
43
|
+
return ScholarshipFormat.HEALTH;
|
|
44
|
+
case 7:
|
|
45
|
+
case "APPLICATION":
|
|
46
|
+
return ScholarshipFormat.APPLICATION;
|
|
47
|
+
case 8:
|
|
48
|
+
case "OTHER":
|
|
49
|
+
return ScholarshipFormat.OTHER;
|
|
50
|
+
case -1:
|
|
51
|
+
case "UNRECOGNIZED":
|
|
52
|
+
default:
|
|
53
|
+
return ScholarshipFormat.UNRECOGNIZED;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export function scholarshipFormatToJSON(object) {
|
|
57
|
+
switch (object) {
|
|
58
|
+
case ScholarshipFormat.SCHOLARSHIP_FORMAT_UNSPECIFIED:
|
|
59
|
+
return "SCHOLARSHIP_FORMAT_UNSPECIFIED";
|
|
60
|
+
case ScholarshipFormat.TUITION_FEE_REDUCTION:
|
|
61
|
+
return "TUITION_FEE_REDUCTION";
|
|
62
|
+
case ScholarshipFormat.LIVING_EXPENSES:
|
|
63
|
+
return "LIVING_EXPENSES";
|
|
64
|
+
case ScholarshipFormat.ACCOMMODATION:
|
|
65
|
+
return "ACCOMMODATION";
|
|
66
|
+
case ScholarshipFormat.TRAVEL_EXPENSES:
|
|
67
|
+
return "TRAVEL_EXPENSES";
|
|
68
|
+
case ScholarshipFormat.SPOUSE_CHILD_CARE:
|
|
69
|
+
return "SPOUSE_CHILD_CARE";
|
|
70
|
+
case ScholarshipFormat.HEALTH:
|
|
71
|
+
return "HEALTH";
|
|
72
|
+
case ScholarshipFormat.APPLICATION:
|
|
73
|
+
return "APPLICATION";
|
|
74
|
+
case ScholarshipFormat.OTHER:
|
|
75
|
+
return "OTHER";
|
|
76
|
+
case ScholarshipFormat.UNRECOGNIZED:
|
|
77
|
+
default:
|
|
78
|
+
return "UNRECOGNIZED";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum ScholarshipType {
|
|
2
|
+
/** SCHOLARSHIP_TYPE_UNSPECIFIED - maps to null */
|
|
3
|
+
SCHOLARSHIP_TYPE_UNSPECIFIED = 0,
|
|
4
|
+
FULL_TUITION_FEE_WAIVER = 1,
|
|
5
|
+
PARTIAL_FEE_WAIVER = 2,
|
|
6
|
+
FULL_RIDE = 3,
|
|
7
|
+
MILITARY = 4,
|
|
8
|
+
SPORTS = 5,
|
|
9
|
+
STEM = 6,
|
|
10
|
+
RELIGIOUS = 7,
|
|
11
|
+
HERITAGE = 8,
|
|
12
|
+
LEARNING_DISABILITIES = 9,
|
|
13
|
+
AUTOMATIC = 10,
|
|
14
|
+
MERIT_BASED = 11,
|
|
15
|
+
NEED_BASED = 12,
|
|
16
|
+
NO_ESSAY_REQUIRED = 13,
|
|
17
|
+
NO_GPA_REQUIREMENTS = 14,
|
|
18
|
+
NO_RECOMMENDATIONS_REQUIRED = 15,
|
|
19
|
+
UNRECOGNIZED = -1
|
|
20
|
+
}
|
|
21
|
+
export declare function scholarshipTypeFromJSON(object: any): ScholarshipType;
|
|
22
|
+
export declare function scholarshipTypeToJSON(object: ScholarshipType): string;
|
|
@@ -0,0 +1,122 @@
|
|
|
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: Scholarship/ScholarshipType.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
export var ScholarshipType;
|
|
8
|
+
(function (ScholarshipType) {
|
|
9
|
+
/** SCHOLARSHIP_TYPE_UNSPECIFIED - maps to null */
|
|
10
|
+
ScholarshipType[ScholarshipType["SCHOLARSHIP_TYPE_UNSPECIFIED"] = 0] = "SCHOLARSHIP_TYPE_UNSPECIFIED";
|
|
11
|
+
ScholarshipType[ScholarshipType["FULL_TUITION_FEE_WAIVER"] = 1] = "FULL_TUITION_FEE_WAIVER";
|
|
12
|
+
ScholarshipType[ScholarshipType["PARTIAL_FEE_WAIVER"] = 2] = "PARTIAL_FEE_WAIVER";
|
|
13
|
+
ScholarshipType[ScholarshipType["FULL_RIDE"] = 3] = "FULL_RIDE";
|
|
14
|
+
ScholarshipType[ScholarshipType["MILITARY"] = 4] = "MILITARY";
|
|
15
|
+
ScholarshipType[ScholarshipType["SPORTS"] = 5] = "SPORTS";
|
|
16
|
+
ScholarshipType[ScholarshipType["STEM"] = 6] = "STEM";
|
|
17
|
+
ScholarshipType[ScholarshipType["RELIGIOUS"] = 7] = "RELIGIOUS";
|
|
18
|
+
ScholarshipType[ScholarshipType["HERITAGE"] = 8] = "HERITAGE";
|
|
19
|
+
ScholarshipType[ScholarshipType["LEARNING_DISABILITIES"] = 9] = "LEARNING_DISABILITIES";
|
|
20
|
+
ScholarshipType[ScholarshipType["AUTOMATIC"] = 10] = "AUTOMATIC";
|
|
21
|
+
ScholarshipType[ScholarshipType["MERIT_BASED"] = 11] = "MERIT_BASED";
|
|
22
|
+
ScholarshipType[ScholarshipType["NEED_BASED"] = 12] = "NEED_BASED";
|
|
23
|
+
ScholarshipType[ScholarshipType["NO_ESSAY_REQUIRED"] = 13] = "NO_ESSAY_REQUIRED";
|
|
24
|
+
ScholarshipType[ScholarshipType["NO_GPA_REQUIREMENTS"] = 14] = "NO_GPA_REQUIREMENTS";
|
|
25
|
+
ScholarshipType[ScholarshipType["NO_RECOMMENDATIONS_REQUIRED"] = 15] = "NO_RECOMMENDATIONS_REQUIRED";
|
|
26
|
+
ScholarshipType[ScholarshipType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
27
|
+
})(ScholarshipType || (ScholarshipType = {}));
|
|
28
|
+
export function scholarshipTypeFromJSON(object) {
|
|
29
|
+
switch (object) {
|
|
30
|
+
case 0:
|
|
31
|
+
case "SCHOLARSHIP_TYPE_UNSPECIFIED":
|
|
32
|
+
return ScholarshipType.SCHOLARSHIP_TYPE_UNSPECIFIED;
|
|
33
|
+
case 1:
|
|
34
|
+
case "FULL_TUITION_FEE_WAIVER":
|
|
35
|
+
return ScholarshipType.FULL_TUITION_FEE_WAIVER;
|
|
36
|
+
case 2:
|
|
37
|
+
case "PARTIAL_FEE_WAIVER":
|
|
38
|
+
return ScholarshipType.PARTIAL_FEE_WAIVER;
|
|
39
|
+
case 3:
|
|
40
|
+
case "FULL_RIDE":
|
|
41
|
+
return ScholarshipType.FULL_RIDE;
|
|
42
|
+
case 4:
|
|
43
|
+
case "MILITARY":
|
|
44
|
+
return ScholarshipType.MILITARY;
|
|
45
|
+
case 5:
|
|
46
|
+
case "SPORTS":
|
|
47
|
+
return ScholarshipType.SPORTS;
|
|
48
|
+
case 6:
|
|
49
|
+
case "STEM":
|
|
50
|
+
return ScholarshipType.STEM;
|
|
51
|
+
case 7:
|
|
52
|
+
case "RELIGIOUS":
|
|
53
|
+
return ScholarshipType.RELIGIOUS;
|
|
54
|
+
case 8:
|
|
55
|
+
case "HERITAGE":
|
|
56
|
+
return ScholarshipType.HERITAGE;
|
|
57
|
+
case 9:
|
|
58
|
+
case "LEARNING_DISABILITIES":
|
|
59
|
+
return ScholarshipType.LEARNING_DISABILITIES;
|
|
60
|
+
case 10:
|
|
61
|
+
case "AUTOMATIC":
|
|
62
|
+
return ScholarshipType.AUTOMATIC;
|
|
63
|
+
case 11:
|
|
64
|
+
case "MERIT_BASED":
|
|
65
|
+
return ScholarshipType.MERIT_BASED;
|
|
66
|
+
case 12:
|
|
67
|
+
case "NEED_BASED":
|
|
68
|
+
return ScholarshipType.NEED_BASED;
|
|
69
|
+
case 13:
|
|
70
|
+
case "NO_ESSAY_REQUIRED":
|
|
71
|
+
return ScholarshipType.NO_ESSAY_REQUIRED;
|
|
72
|
+
case 14:
|
|
73
|
+
case "NO_GPA_REQUIREMENTS":
|
|
74
|
+
return ScholarshipType.NO_GPA_REQUIREMENTS;
|
|
75
|
+
case 15:
|
|
76
|
+
case "NO_RECOMMENDATIONS_REQUIRED":
|
|
77
|
+
return ScholarshipType.NO_RECOMMENDATIONS_REQUIRED;
|
|
78
|
+
case -1:
|
|
79
|
+
case "UNRECOGNIZED":
|
|
80
|
+
default:
|
|
81
|
+
return ScholarshipType.UNRECOGNIZED;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export function scholarshipTypeToJSON(object) {
|
|
85
|
+
switch (object) {
|
|
86
|
+
case ScholarshipType.SCHOLARSHIP_TYPE_UNSPECIFIED:
|
|
87
|
+
return "SCHOLARSHIP_TYPE_UNSPECIFIED";
|
|
88
|
+
case ScholarshipType.FULL_TUITION_FEE_WAIVER:
|
|
89
|
+
return "FULL_TUITION_FEE_WAIVER";
|
|
90
|
+
case ScholarshipType.PARTIAL_FEE_WAIVER:
|
|
91
|
+
return "PARTIAL_FEE_WAIVER";
|
|
92
|
+
case ScholarshipType.FULL_RIDE:
|
|
93
|
+
return "FULL_RIDE";
|
|
94
|
+
case ScholarshipType.MILITARY:
|
|
95
|
+
return "MILITARY";
|
|
96
|
+
case ScholarshipType.SPORTS:
|
|
97
|
+
return "SPORTS";
|
|
98
|
+
case ScholarshipType.STEM:
|
|
99
|
+
return "STEM";
|
|
100
|
+
case ScholarshipType.RELIGIOUS:
|
|
101
|
+
return "RELIGIOUS";
|
|
102
|
+
case ScholarshipType.HERITAGE:
|
|
103
|
+
return "HERITAGE";
|
|
104
|
+
case ScholarshipType.LEARNING_DISABILITIES:
|
|
105
|
+
return "LEARNING_DISABILITIES";
|
|
106
|
+
case ScholarshipType.AUTOMATIC:
|
|
107
|
+
return "AUTOMATIC";
|
|
108
|
+
case ScholarshipType.MERIT_BASED:
|
|
109
|
+
return "MERIT_BASED";
|
|
110
|
+
case ScholarshipType.NEED_BASED:
|
|
111
|
+
return "NEED_BASED";
|
|
112
|
+
case ScholarshipType.NO_ESSAY_REQUIRED:
|
|
113
|
+
return "NO_ESSAY_REQUIRED";
|
|
114
|
+
case ScholarshipType.NO_GPA_REQUIREMENTS:
|
|
115
|
+
return "NO_GPA_REQUIREMENTS";
|
|
116
|
+
case ScholarshipType.NO_RECOMMENDATIONS_REQUIRED:
|
|
117
|
+
return "NO_RECOMMENDATIONS_REQUIRED";
|
|
118
|
+
case ScholarshipType.UNRECOGNIZED:
|
|
119
|
+
default:
|
|
120
|
+
return "UNRECOGNIZED";
|
|
121
|
+
}
|
|
122
|
+
}
|
package/protobuf/index.d.ts
CHANGED
|
@@ -50,4 +50,7 @@ export * from "./PartnerApi/PartnerApiProgramme.js";
|
|
|
50
50
|
export * from "./PartnerApi/PartnerApiScholarship.js";
|
|
51
51
|
export * from "./Scholarship/MiniScholarshipCard.js";
|
|
52
52
|
export * from "./Scholarship/ScholarshipCard.js";
|
|
53
|
+
export * from "./Scholarship/ScholarshipDeadlineType.js";
|
|
54
|
+
export * from "./Scholarship/ScholarshipFormat.js";
|
|
55
|
+
export * from "./Scholarship/ScholarshipType.js";
|
|
53
56
|
export * from "./google/protobuf/timestamp.js";
|
package/protobuf/index.js
CHANGED
|
@@ -50,4 +50,7 @@ export * from "./PartnerApi/PartnerApiProgramme.js";
|
|
|
50
50
|
export * from "./PartnerApi/PartnerApiScholarship.js";
|
|
51
51
|
export * from "./Scholarship/MiniScholarshipCard.js";
|
|
52
52
|
export * from "./Scholarship/ScholarshipCard.js";
|
|
53
|
+
export * from "./Scholarship/ScholarshipDeadlineType.js";
|
|
54
|
+
export * from "./Scholarship/ScholarshipFormat.js";
|
|
55
|
+
export * from "./Scholarship/ScholarshipType.js";
|
|
53
56
|
export * from "./google/protobuf/timestamp.js";
|