@studyportals/domain-client 7.6.7 → 7.6.9
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 +68 -68
- package/protobuf/Area.js +2 -2
- package/protobuf/Article.js +2 -2
- package/protobuf/Body.js +2 -2
- package/protobuf/CampaignInformation.js +2 -2
- package/protobuf/ClickTracking.js +2 -2
- package/protobuf/CommercialEntity.js +2 -2
- package/protobuf/Cover.js +2 -2
- package/protobuf/Deadline.js +2 -2
- package/protobuf/Degree.js +2 -2
- package/protobuf/Description.js +2 -2
- package/protobuf/Discipline.js +2 -2
- package/protobuf/Duration.js +2 -2
- package/protobuf/EnglishRequirements.js +2 -2
- package/protobuf/EssentialInformation.js +2 -2
- package/protobuf/File.js +2 -2
- package/protobuf/GPARequirement.js +2 -2
- package/protobuf/GSSAResults.js +2 -2
- package/protobuf/Link.js +2 -2
- package/protobuf/LivingCost.js +2 -2
- package/protobuf/Location.d.ts +2 -2
- package/protobuf/Location.js +4 -4
- package/protobuf/Logo.js +2 -2
- package/protobuf/MiniProgrammeCard.js +2 -2
- package/protobuf/OptionalLink.d.ts +1 -1
- package/protobuf/OptionalLink.js +4 -4
- package/protobuf/Organisation.js +2 -2
- package/protobuf/OrganisationInformation.js +2 -2
- package/protobuf/OrganisationRanking.js +2 -2
- package/protobuf/Person.js +2 -2
- package/protobuf/ProgrammeCard.d.ts +12 -11
- package/protobuf/ProgrammeCard.js +17 -11
- package/protobuf/Ranking.js +2 -2
- package/protobuf/RankingInstitute.js +2 -2
- package/protobuf/Review.js +2 -2
- package/protobuf/ReviewCountPerStar.js +2 -2
- package/protobuf/ReviewRating.js +2 -2
- package/protobuf/RichText.js +2 -2
- package/protobuf/SocialLink.js +2 -2
- package/protobuf/StartDate.js +2 -2
- package/protobuf/Timing.js +2 -2
- package/protobuf/Topic.js +2 -2
- package/protobuf/TrackedLink.js +2 -2
- package/protobuf/Tracking.js +2 -2
- package/protobuf/TuitionFee.js +2 -2
- package/protobuf/Unibuddy.js +2 -2
- package/protobuf/google/protobuf/timestamp.js +2 -2
package/package.json
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@studyportals/domain-client",
|
|
3
|
-
"version": "7.6.
|
|
4
|
-
"description": "Responsible for fetching data from the Domain API",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"module": "index.js",
|
|
8
|
-
"types": "index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./index.d.ts",
|
|
12
|
-
"require": "./index.js",
|
|
13
|
-
"import": "./index.js",
|
|
14
|
-
"default": "./index.js"
|
|
15
|
-
},
|
|
16
|
-
"./protobuf": {
|
|
17
|
-
"types": "./protobuf/index.d.ts",
|
|
18
|
-
"require": "./protobuf/index.js",
|
|
19
|
-
"import": "./protobuf/index.js",
|
|
20
|
-
"default": "./protobuf/index.js"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"author": "StudyPortals B.V.",
|
|
24
|
-
"sideEffects": false,
|
|
25
|
-
"contributors": [
|
|
26
|
-
"braaibander <danny@studyportals.com>"
|
|
27
|
-
],
|
|
28
|
-
"license": "BSD-3-Clause",
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "tsc",
|
|
31
|
-
"test": "vitest run",
|
|
32
|
-
"test:watch": "vitest",
|
|
33
|
-
"coverage": "vitest run --coverage",
|
|
34
|
-
"lint": "eslint . --ext .ts --max-warnings=0",
|
|
35
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
36
|
-
"pre-push": "npm run test && npm run coverage && npm run lint",
|
|
37
|
-
"prepare-dist": "npm run test && rm -fR bin && npx tsc && npx tsc-alias -p tsconfig.json --outDir bin -f && cp package.json bin/package.json && rm -fR bin/tests",
|
|
38
|
-
"publish-beta": "npm version prerelease --preid=beta && npm run prepare-dist && npm publish ./bin --tag beta",
|
|
39
|
-
"publish-major": "npm version major && npm run prepare-dist && npm publish ./bin",
|
|
40
|
-
"publish-minor": "npm version minor && npm run prepare-dist && npm publish ./bin",
|
|
41
|
-
"publish-patch": "npm version patch && npm run prepare-dist && npm publish ./bin",
|
|
42
|
-
"publish-current": "npm run prepare-dist && npm publish ./bin"
|
|
43
|
-
},
|
|
44
|
-
"husky": {
|
|
45
|
-
"hooks": {
|
|
46
|
-
"pre-push": "npm run pre-push"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@studyportals/code-style": "^2.0.4",
|
|
51
|
-
"@types/node": "^24.2.1",
|
|
52
|
-
"@types/reflect-metadata": "^0.1.0",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
54
|
-
"@typescript-eslint/parser": "^4.8.1",
|
|
55
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
56
|
-
"eslint": "^7.13.0",
|
|
57
|
-
"eslint-plugin-import": "^2.22.1",
|
|
58
|
-
"eslint-plugin-mocha": "^10.1.0",
|
|
59
|
-
"husky": "^4.3.0",
|
|
60
|
-
"nyc": "^15.1.0",
|
|
61
|
-
"source-map-support": "^0.5.19",
|
|
62
|
-
"tsc-alias": "^1.8.16",
|
|
63
|
-
"tslint": "^6.1.3",
|
|
64
|
-
"typemoq": "^2.1.0",
|
|
65
|
-
"typescript": "^5.9.2",
|
|
66
|
-
"vitest": "^3.2.4"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@studyportals/domain-client",
|
|
3
|
+
"version": "7.6.9",
|
|
4
|
+
"description": "Responsible for fetching data from the Domain API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"module": "index.js",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"require": "./index.js",
|
|
13
|
+
"import": "./index.js",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"./protobuf": {
|
|
17
|
+
"types": "./protobuf/index.d.ts",
|
|
18
|
+
"require": "./protobuf/index.js",
|
|
19
|
+
"import": "./protobuf/index.js",
|
|
20
|
+
"default": "./protobuf/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"author": "StudyPortals B.V.",
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"contributors": [
|
|
26
|
+
"braaibander <danny@studyportals.com>"
|
|
27
|
+
],
|
|
28
|
+
"license": "BSD-3-Clause",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:watch": "vitest",
|
|
33
|
+
"coverage": "vitest run --coverage",
|
|
34
|
+
"lint": "eslint . --ext .ts --max-warnings=0",
|
|
35
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
36
|
+
"pre-push": "npm run test && npm run coverage && npm run lint",
|
|
37
|
+
"prepare-dist": "npm run test && rm -fR bin && npx tsc && npx tsc-alias -p tsconfig.json --outDir bin -f && cp package.json bin/package.json && rm -fR bin/tests",
|
|
38
|
+
"publish-beta": "npm version prerelease --preid=beta && npm run prepare-dist && npm publish ./bin --tag beta",
|
|
39
|
+
"publish-major": "npm version major && npm run prepare-dist && npm publish ./bin",
|
|
40
|
+
"publish-minor": "npm version minor && npm run prepare-dist && npm publish ./bin",
|
|
41
|
+
"publish-patch": "npm version patch && npm run prepare-dist && npm publish ./bin",
|
|
42
|
+
"publish-current": "npm run prepare-dist && npm publish ./bin"
|
|
43
|
+
},
|
|
44
|
+
"husky": {
|
|
45
|
+
"hooks": {
|
|
46
|
+
"pre-push": "npm run pre-push"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@studyportals/code-style": "^2.0.4",
|
|
51
|
+
"@types/node": "^24.2.1",
|
|
52
|
+
"@types/reflect-metadata": "^0.1.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
54
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
55
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
56
|
+
"eslint": "^7.13.0",
|
|
57
|
+
"eslint-plugin-import": "^2.22.1",
|
|
58
|
+
"eslint-plugin-mocha": "^10.1.0",
|
|
59
|
+
"husky": "^4.3.0",
|
|
60
|
+
"nyc": "^15.1.0",
|
|
61
|
+
"source-map-support": "^0.5.19",
|
|
62
|
+
"tsc-alias": "^1.8.16",
|
|
63
|
+
"tslint": "^6.1.3",
|
|
64
|
+
"typemoq": "^2.1.0",
|
|
65
|
+
"typescript": "^5.9.2",
|
|
66
|
+
"vitest": "^3.2.4"
|
|
67
|
+
}
|
|
68
|
+
}
|
package/protobuf/Area.js
CHANGED
package/protobuf/Article.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Article.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Discipline } from "./Discipline.js";
|
package/protobuf/Body.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: CampaignInformation.proto
|
|
6
6
|
export const CampaignInformation = {
|
|
7
7
|
fromJSON(object) {
|
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: CommercialEntity.proto
|
|
6
6
|
export const CommercialEntity = {
|
|
7
7
|
fromJSON(object) {
|
package/protobuf/Cover.js
CHANGED
package/protobuf/Deadline.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Deadline.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Timestamp } from "./google/protobuf/timestamp.js";
|
package/protobuf/Degree.js
CHANGED
package/protobuf/Description.js
CHANGED
package/protobuf/Discipline.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Discipline.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Description } from "./Description.js";
|
package/protobuf/Duration.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: EnglishRequirements.proto
|
|
6
6
|
export const EnglishRequirements = {
|
|
7
7
|
fromJSON(object) {
|
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: EssentialInformation.proto
|
|
6
6
|
export const EssentialInformation = {
|
|
7
7
|
fromJSON(object) {
|
package/protobuf/File.js
CHANGED
package/protobuf/GSSAResults.js
CHANGED
package/protobuf/Link.js
CHANGED
package/protobuf/LivingCost.js
CHANGED
package/protobuf/Location.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export interface Location {
|
|
|
5
5
|
countryId: number;
|
|
6
6
|
countryIso: string;
|
|
7
7
|
country: OptionalLink | undefined;
|
|
8
|
-
areaId
|
|
9
|
-
area
|
|
8
|
+
areaId?: number | undefined;
|
|
9
|
+
area?: OptionalLink | undefined;
|
|
10
10
|
text: string;
|
|
11
11
|
}
|
|
12
12
|
export declare const Location: MessageFns<Location>;
|
package/protobuf/Location.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Location.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { OptionalLink } from "./OptionalLink.js";
|
|
@@ -13,7 +13,7 @@ export const Location = {
|
|
|
13
13
|
countryId: isSet(object.countryId) ? globalThis.Number(object.countryId) : 0,
|
|
14
14
|
countryIso: isSet(object.countryIso) ? globalThis.String(object.countryIso) : "",
|
|
15
15
|
country: isSet(object.country) ? OptionalLink.fromJSON(object.country) : undefined,
|
|
16
|
-
areaId: isSet(object.areaId) ? globalThis.Number(object.areaId) :
|
|
16
|
+
areaId: isSet(object.areaId) ? globalThis.Number(object.areaId) : undefined,
|
|
17
17
|
area: isSet(object.area) ? OptionalLink.fromJSON(object.area) : undefined,
|
|
18
18
|
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
19
19
|
};
|
|
@@ -35,7 +35,7 @@ export const Location = {
|
|
|
35
35
|
if (message.country !== undefined) {
|
|
36
36
|
obj.country = OptionalLink.toJSON(message.country);
|
|
37
37
|
}
|
|
38
|
-
if (message.areaId !==
|
|
38
|
+
if (message.areaId !== undefined) {
|
|
39
39
|
obj.areaId = Math.round(message.areaId);
|
|
40
40
|
}
|
|
41
41
|
if (message.area !== undefined) {
|
package/protobuf/Logo.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: MiniProgrammeCard.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { InternalLink } from "./InternalLink.js";
|
package/protobuf/OptionalLink.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: OptionalLink.proto
|
|
6
6
|
export const OptionalLink = {
|
|
7
7
|
fromJSON(object) {
|
|
8
8
|
return {
|
|
9
|
-
url: isSet(object.url) ? globalThis.String(object.url) :
|
|
9
|
+
url: isSet(object.url) ? globalThis.String(object.url) : undefined,
|
|
10
10
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
11
11
|
};
|
|
12
12
|
},
|
|
13
13
|
toJSON(message) {
|
|
14
14
|
const obj = {};
|
|
15
|
-
if (message.url !==
|
|
15
|
+
if (message.url !== undefined) {
|
|
16
16
|
obj.url = message.url;
|
|
17
17
|
}
|
|
18
18
|
if (message.description !== "") {
|
package/protobuf/Organisation.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Organisation.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Area } from "./Area.js";
|
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: OrganisationInformation.proto
|
|
6
6
|
export const OrganisationInformation = {
|
|
7
7
|
fromJSON(object) {
|
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: OrganisationRanking.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Body } from "./Body.js";
|
package/protobuf/Person.js
CHANGED
|
@@ -33,23 +33,24 @@ export interface ProgrammeCard {
|
|
|
33
33
|
universityId: number;
|
|
34
34
|
topLevelLocation: Location | undefined;
|
|
35
35
|
locations: Location[];
|
|
36
|
-
tracking
|
|
36
|
+
tracking?: Tracking | undefined;
|
|
37
37
|
tuitionFees: TuitionFee[];
|
|
38
|
-
duration
|
|
38
|
+
duration?: Duration | undefined;
|
|
39
39
|
timings: Timing[];
|
|
40
|
-
referralLink
|
|
40
|
+
referralLink?: TrackedLink | undefined;
|
|
41
41
|
countryIsoCode: string;
|
|
42
42
|
premiumType: string;
|
|
43
43
|
disciplineIds: number[];
|
|
44
44
|
englishRequirements: EnglishRequirements | undefined;
|
|
45
|
-
workExperienceYears
|
|
46
|
-
gpa
|
|
47
|
-
livingCost
|
|
48
|
-
universityGlobalPositionPercentage
|
|
49
|
-
ects
|
|
50
|
-
campaignType
|
|
51
|
-
lastUpdated
|
|
52
|
-
reviewRating
|
|
45
|
+
workExperienceYears?: number | undefined;
|
|
46
|
+
gpa?: GPARequirement | undefined;
|
|
47
|
+
livingCost?: LivingCost | undefined;
|
|
48
|
+
universityGlobalPositionPercentage?: string | undefined;
|
|
49
|
+
ects?: number | undefined;
|
|
50
|
+
campaignType?: string | undefined;
|
|
51
|
+
lastUpdated?: Date | undefined;
|
|
52
|
+
reviewRating?: ReviewRating | undefined;
|
|
53
|
+
degreeFormatted: string;
|
|
53
54
|
}
|
|
54
55
|
export declare const ProgrammeCard: MessageFns<ProgrammeCard>;
|
|
55
56
|
interface MessageFns<T> {
|
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: ProgrammeCard.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Cover } from "./Cover.js";
|
|
@@ -59,16 +59,19 @@ export const ProgrammeCard = {
|
|
|
59
59
|
englishRequirements: isSet(object.englishRequirements)
|
|
60
60
|
? EnglishRequirements.fromJSON(object.englishRequirements)
|
|
61
61
|
: undefined,
|
|
62
|
-
workExperienceYears: isSet(object.workExperienceYears)
|
|
62
|
+
workExperienceYears: isSet(object.workExperienceYears)
|
|
63
|
+
? globalThis.Number(object.workExperienceYears)
|
|
64
|
+
: undefined,
|
|
63
65
|
gpa: isSet(object.gpa) ? GPARequirement.fromJSON(object.gpa) : undefined,
|
|
64
66
|
livingCost: isSet(object.livingCost) ? LivingCost.fromJSON(object.livingCost) : undefined,
|
|
65
67
|
universityGlobalPositionPercentage: isSet(object.universityGlobalPositionPercentage)
|
|
66
68
|
? globalThis.String(object.universityGlobalPositionPercentage)
|
|
67
|
-
:
|
|
68
|
-
ects: isSet(object.ects) ? globalThis.
|
|
69
|
-
campaignType: isSet(object.campaignType) ? globalThis.String(object.campaignType) :
|
|
69
|
+
: undefined,
|
|
70
|
+
ects: isSet(object.ects) ? globalThis.Number(object.ects) : undefined,
|
|
71
|
+
campaignType: isSet(object.campaignType) ? globalThis.String(object.campaignType) : undefined,
|
|
70
72
|
lastUpdated: isSet(object.lastUpdated) ? fromJsonTimestamp(object.lastUpdated) : undefined,
|
|
71
73
|
reviewRating: isSet(object.reviewRating) ? ReviewRating.fromJSON(object.reviewRating) : undefined,
|
|
74
|
+
degreeFormatted: isSet(object.degreeFormatted) ? globalThis.String(object.degreeFormatted) : "",
|
|
72
75
|
};
|
|
73
76
|
},
|
|
74
77
|
toJSON(message) {
|
|
@@ -160,7 +163,7 @@ export const ProgrammeCard = {
|
|
|
160
163
|
if (message.englishRequirements !== undefined) {
|
|
161
164
|
obj.englishRequirements = EnglishRequirements.toJSON(message.englishRequirements);
|
|
162
165
|
}
|
|
163
|
-
if (message.workExperienceYears !==
|
|
166
|
+
if (message.workExperienceYears !== undefined) {
|
|
164
167
|
obj.workExperienceYears = Math.round(message.workExperienceYears);
|
|
165
168
|
}
|
|
166
169
|
if (message.gpa !== undefined) {
|
|
@@ -169,13 +172,13 @@ export const ProgrammeCard = {
|
|
|
169
172
|
if (message.livingCost !== undefined) {
|
|
170
173
|
obj.livingCost = LivingCost.toJSON(message.livingCost);
|
|
171
174
|
}
|
|
172
|
-
if (message.universityGlobalPositionPercentage !==
|
|
175
|
+
if (message.universityGlobalPositionPercentage !== undefined) {
|
|
173
176
|
obj.universityGlobalPositionPercentage = message.universityGlobalPositionPercentage;
|
|
174
177
|
}
|
|
175
|
-
if (message.ects !==
|
|
176
|
-
obj.ects = message.ects;
|
|
178
|
+
if (message.ects !== undefined) {
|
|
179
|
+
obj.ects = Math.round(message.ects);
|
|
177
180
|
}
|
|
178
|
-
if (message.campaignType !==
|
|
181
|
+
if (message.campaignType !== undefined) {
|
|
179
182
|
obj.campaignType = message.campaignType;
|
|
180
183
|
}
|
|
181
184
|
if (message.lastUpdated !== undefined) {
|
|
@@ -184,6 +187,9 @@ export const ProgrammeCard = {
|
|
|
184
187
|
if (message.reviewRating !== undefined) {
|
|
185
188
|
obj.reviewRating = ReviewRating.toJSON(message.reviewRating);
|
|
186
189
|
}
|
|
190
|
+
if (message.degreeFormatted !== "") {
|
|
191
|
+
obj.degreeFormatted = message.degreeFormatted;
|
|
192
|
+
}
|
|
187
193
|
return obj;
|
|
188
194
|
},
|
|
189
195
|
};
|
package/protobuf/Ranking.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Ranking.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { RankingInstitute } from "./RankingInstitute.js";
|
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: RankingInstitute.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Body } from "./Body.js";
|
package/protobuf/Review.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: ReviewCountPerStar.proto
|
|
6
6
|
export const ReviewCountPerStar = {
|
|
7
7
|
fromJSON(object) {
|
package/protobuf/ReviewRating.js
CHANGED
package/protobuf/RichText.js
CHANGED
package/protobuf/SocialLink.js
CHANGED
package/protobuf/StartDate.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: StartDate.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Deadline } from "./Deadline.js";
|
package/protobuf/Timing.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Timing.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Deadline } from "./Deadline.js";
|
package/protobuf/Topic.js
CHANGED
package/protobuf/TrackedLink.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: TrackedLink.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { Tracking } from "./Tracking.js";
|
package/protobuf/Tracking.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: Tracking.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { ClickTracking } from "./ClickTracking.js";
|
package/protobuf/TuitionFee.js
CHANGED
package/protobuf/Unibuddy.js
CHANGED
|
@@ -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.7.
|
|
4
|
-
// protoc v6.33.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc v6.33.2
|
|
5
5
|
// source: google/protobuf/timestamp.proto
|
|
6
6
|
export const Timestamp = {
|
|
7
7
|
fromJSON(object) {
|