@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.
Files changed (47) hide show
  1. package/package.json +68 -68
  2. package/protobuf/Area.js +2 -2
  3. package/protobuf/Article.js +2 -2
  4. package/protobuf/Body.js +2 -2
  5. package/protobuf/CampaignInformation.js +2 -2
  6. package/protobuf/ClickTracking.js +2 -2
  7. package/protobuf/CommercialEntity.js +2 -2
  8. package/protobuf/Cover.js +2 -2
  9. package/protobuf/Deadline.js +2 -2
  10. package/protobuf/Degree.js +2 -2
  11. package/protobuf/Description.js +2 -2
  12. package/protobuf/Discipline.js +2 -2
  13. package/protobuf/Duration.js +2 -2
  14. package/protobuf/EnglishRequirements.js +2 -2
  15. package/protobuf/EssentialInformation.js +2 -2
  16. package/protobuf/File.js +2 -2
  17. package/protobuf/GPARequirement.js +2 -2
  18. package/protobuf/GSSAResults.js +2 -2
  19. package/protobuf/Link.js +2 -2
  20. package/protobuf/LivingCost.js +2 -2
  21. package/protobuf/Location.d.ts +2 -2
  22. package/protobuf/Location.js +4 -4
  23. package/protobuf/Logo.js +2 -2
  24. package/protobuf/MiniProgrammeCard.js +2 -2
  25. package/protobuf/OptionalLink.d.ts +1 -1
  26. package/protobuf/OptionalLink.js +4 -4
  27. package/protobuf/Organisation.js +2 -2
  28. package/protobuf/OrganisationInformation.js +2 -2
  29. package/protobuf/OrganisationRanking.js +2 -2
  30. package/protobuf/Person.js +2 -2
  31. package/protobuf/ProgrammeCard.d.ts +12 -11
  32. package/protobuf/ProgrammeCard.js +17 -11
  33. package/protobuf/Ranking.js +2 -2
  34. package/protobuf/RankingInstitute.js +2 -2
  35. package/protobuf/Review.js +2 -2
  36. package/protobuf/ReviewCountPerStar.js +2 -2
  37. package/protobuf/ReviewRating.js +2 -2
  38. package/protobuf/RichText.js +2 -2
  39. package/protobuf/SocialLink.js +2 -2
  40. package/protobuf/StartDate.js +2 -2
  41. package/protobuf/Timing.js +2 -2
  42. package/protobuf/Topic.js +2 -2
  43. package/protobuf/TrackedLink.js +2 -2
  44. package/protobuf/Tracking.js +2 -2
  45. package/protobuf/TuitionFee.js +2 -2
  46. package/protobuf/Unibuddy.js +2 -2
  47. 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.7",
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
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Area.proto
6
6
  export const Area = {
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.5
4
- // protoc v6.33.1
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Body.proto
6
6
  export const Body = {
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.5
4
- // protoc v6.33.1
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: ClickTracking.proto
6
6
  export const ClickTracking = {
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.5
4
- // protoc v6.33.1
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
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Cover.proto
6
6
  export const Cover = {
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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Degree.proto
6
6
  export const Degree = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Description.proto
6
6
  /* eslint-disable */
7
7
  import { Link } from "./Link.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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Duration.proto
6
6
  export const Duration = {
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.5
4
- // protoc v6.33.1
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.5
4
- // protoc v6.33.1
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
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: File.proto
6
6
  export const File = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: GPARequirement.proto
6
6
  export const GPARequirement = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: GSSAResults.proto
6
6
  export const GSSAResults = {
7
7
  fromJSON(object) {
package/protobuf/Link.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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Link.proto
6
6
  export const Link = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: LivingCost.proto
6
6
  export const LivingCost = {
7
7
  fromJSON(object) {
@@ -5,8 +5,8 @@ export interface Location {
5
5
  countryId: number;
6
6
  countryIso: string;
7
7
  country: OptionalLink | undefined;
8
- areaId: number;
9
- area: OptionalLink | undefined;
8
+ areaId?: number | undefined;
9
+ area?: OptionalLink | undefined;
10
10
  text: string;
11
11
  }
12
12
  export declare const Location: MessageFns<Location>;
@@ -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.5
4
- // protoc v6.33.1
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) : 0,
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 !== 0) {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Logo.proto
6
6
  export const Logo = {
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.5
4
- // protoc v6.33.1
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";
@@ -1,5 +1,5 @@
1
1
  export interface OptionalLink {
2
- url: string;
2
+ url?: string | undefined;
3
3
  description: string;
4
4
  }
5
5
  export declare const OptionalLink: MessageFns<OptionalLink>;
@@ -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.5
4
- // protoc v6.33.1
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 !== "") {
@@ -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.5
4
- // protoc v6.33.1
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.5
4
- // protoc v6.33.1
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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Person.proto
6
6
  /* eslint-disable */
7
7
  import { File } from "./File.js";
@@ -33,23 +33,24 @@ export interface ProgrammeCard {
33
33
  universityId: number;
34
34
  topLevelLocation: Location | undefined;
35
35
  locations: Location[];
36
- tracking: Tracking | undefined;
36
+ tracking?: Tracking | undefined;
37
37
  tuitionFees: TuitionFee[];
38
- duration: Duration | undefined;
38
+ duration?: Duration | undefined;
39
39
  timings: Timing[];
40
- referralLink: TrackedLink | undefined;
40
+ referralLink?: TrackedLink | undefined;
41
41
  countryIsoCode: string;
42
42
  premiumType: string;
43
43
  disciplineIds: number[];
44
44
  englishRequirements: EnglishRequirements | undefined;
45
- workExperienceYears: number;
46
- gpa: GPARequirement | undefined;
47
- livingCost: LivingCost | undefined;
48
- universityGlobalPositionPercentage: string;
49
- ects: string;
50
- campaignType: string;
51
- lastUpdated: Date | undefined;
52
- reviewRating: ReviewRating | undefined;
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.5
4
- // protoc v6.33.1
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) ? globalThis.Number(object.workExperienceYears) : 0,
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.String(object.ects) : "",
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 !== 0) {
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
  };
@@ -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.5
4
- // protoc v6.33.1
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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Review.proto
6
6
  /* eslint-disable */
7
7
  import { Person } from "./Person.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.5
4
- // protoc v6.33.1
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) {
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: ReviewRating.proto
6
6
  export const ReviewRating = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: RichText.proto
6
6
  export const RichText = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: SocialLink.proto
6
6
  export const SocialLink = {
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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
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
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Topic.proto
6
6
  export const Topic = {
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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
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";
@@ -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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: TuitionFee.proto
6
6
  export const TuitionFee = {
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.5
4
- // protoc v6.33.1
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
5
  // source: Unibuddy.proto
6
6
  export const Unibuddy = {
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.5
4
- // protoc v6.33.1
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) {