@studyportals/domain-client 7.5.0 → 7.6.1-beta.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.
Files changed (63) hide show
  1. package/package.json +68 -68
  2. package/protobuf/Area.js +1 -1
  3. package/protobuf/Article.js +1 -1
  4. package/protobuf/Body.js +1 -1
  5. package/protobuf/CampaignInformation.js +1 -1
  6. package/protobuf/ClickTracking.js +1 -1
  7. package/protobuf/CommercialEntity.js +1 -1
  8. package/protobuf/Cover.js +1 -1
  9. package/protobuf/Deadline.d.ts +1 -1
  10. package/protobuf/Deadline.js +22 -4
  11. package/protobuf/Degree.js +1 -1
  12. package/protobuf/Description.js +1 -1
  13. package/protobuf/Discipline.js +1 -1
  14. package/protobuf/Duration.d.ts +3 -1
  15. package/protobuf/Duration.js +12 -4
  16. package/protobuf/EnglishRequirements.d.ts +15 -0
  17. package/protobuf/EnglishRequirements.js +46 -0
  18. package/protobuf/EssentialInformation.js +1 -1
  19. package/protobuf/File.js +1 -1
  20. package/protobuf/GPARequirement.js +1 -1
  21. package/protobuf/GSSAResults.d.ts +17 -0
  22. package/protobuf/GSSAResults.js +62 -0
  23. package/protobuf/Link.js +1 -1
  24. package/protobuf/LivingCost.js +1 -1
  25. package/protobuf/Location.d.ts +1 -2
  26. package/protobuf/Location.js +5 -9
  27. package/protobuf/Logo.js +1 -1
  28. package/protobuf/MiniProgrammeCard.js +1 -1
  29. package/protobuf/OptionalLink.d.ts +0 -2
  30. package/protobuf/OptionalLink.js +1 -9
  31. package/protobuf/Organisation.d.ts +4 -0
  32. package/protobuf/Organisation.js +13 -1
  33. package/protobuf/OrganisationInformation.js +1 -1
  34. package/protobuf/OrganisationRanking.js +1 -1
  35. package/protobuf/Person.js +1 -1
  36. package/protobuf/ProgrammeCard.d.ts +10 -11
  37. package/protobuf/ProgrammeCard.js +49 -38
  38. package/protobuf/Ranking.js +1 -1
  39. package/protobuf/RankingInstitute.js +1 -1
  40. package/protobuf/Review.d.ts +1 -0
  41. package/protobuf/Review.js +5 -1
  42. package/protobuf/ReviewCountPerStar.d.ts +13 -0
  43. package/protobuf/ReviewCountPerStar.js +38 -0
  44. package/protobuf/ReviewRating.js +1 -1
  45. package/protobuf/RichText.js +1 -1
  46. package/protobuf/SocialLink.js +1 -1
  47. package/protobuf/StartDate.d.ts +1 -1
  48. package/protobuf/StartDate.js +21 -4
  49. package/protobuf/Timing.d.ts +0 -2
  50. package/protobuf/Timing.js +1 -9
  51. package/protobuf/Topic.js +1 -1
  52. package/protobuf/TrackedLink.js +1 -1
  53. package/protobuf/Tracking.js +1 -1
  54. package/protobuf/TuitionFee.d.ts +2 -0
  55. package/protobuf/TuitionFee.js +9 -1
  56. package/protobuf/Unibuddy.js +1 -1
  57. package/protobuf/google/protobuf/timestamp.d.ts +112 -0
  58. package/protobuf/google/protobuf/timestamp.js +26 -0
  59. package/protobuf/index.d.ts +4 -0
  60. package/protobuf/index.js +4 -0
  61. package/src/clients/organisation-page-client.js +1 -1
  62. package/src/clients/programme-card-v2-client.d.ts +8 -0
  63. package/src/clients/programme-card-v2-client.js +16 -0
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "@studyportals/domain-client",
3
- "version": "7.5.0",
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.1-beta.0",
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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Cover.proto
6
6
  export const Cover = {
7
7
  fromJSON(object) {
@@ -1,6 +1,6 @@
1
1
  export interface Deadline {
2
2
  isPassed: boolean;
3
- date: string;
3
+ date: Date | undefined;
4
4
  type: string;
5
5
  }
6
6
  export declare const Deadline: MessageFns<Deadline>;
@@ -1,13 +1,15 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Deadline.proto
6
+ /* eslint-disable */
7
+ import { Timestamp } from "./google/protobuf/timestamp.js";
6
8
  export const Deadline = {
7
9
  fromJSON(object) {
8
10
  return {
9
11
  isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
10
- date: isSet(object.date) ? globalThis.String(object.date) : "",
12
+ date: isSet(object.date) ? fromJsonTimestamp(object.date) : undefined,
11
13
  type: isSet(object.type) ? globalThis.String(object.type) : "",
12
14
  };
13
15
  },
@@ -16,8 +18,8 @@ export const Deadline = {
16
18
  if (message.isPassed !== false) {
17
19
  obj.isPassed = message.isPassed;
18
20
  }
19
- if (message.date !== "") {
20
- obj.date = message.date;
21
+ if (message.date !== undefined) {
22
+ obj.date = message.date.toISOString();
21
23
  }
22
24
  if (message.type !== "") {
23
25
  obj.type = message.type;
@@ -25,6 +27,22 @@ export const Deadline = {
25
27
  return obj;
26
28
  },
27
29
  };
30
+ function fromTimestamp(t) {
31
+ let millis = (t.seconds || 0) * 1_000;
32
+ millis += (t.nanos || 0) / 1_000_000;
33
+ return new globalThis.Date(millis);
34
+ }
35
+ function fromJsonTimestamp(o) {
36
+ if (o instanceof globalThis.Date) {
37
+ return o;
38
+ }
39
+ else if (typeof o === "string") {
40
+ return new globalThis.Date(o);
41
+ }
42
+ else {
43
+ return fromTimestamp(Timestamp.fromJSON(o));
44
+ }
45
+ }
28
46
  function isSet(value) {
29
47
  return value !== null && value !== undefined;
30
48
  }
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Discipline.proto
6
6
  /* eslint-disable */
7
7
  import { Description } from "./Description.js";
@@ -1,7 +1,9 @@
1
1
  export interface Duration {
2
2
  amount: number;
3
3
  period: string;
4
- type: string;
4
+ originalDuration: number;
5
+ originalPeriod: string;
6
+ description: string;
5
7
  }
6
8
  export declare const Duration: MessageFns<Duration>;
7
9
  interface MessageFns<T> {
@@ -1,14 +1,16 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Duration.proto
6
6
  export const Duration = {
7
7
  fromJSON(object) {
8
8
  return {
9
9
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
10
10
  period: isSet(object.period) ? globalThis.String(object.period) : "",
11
- type: isSet(object.type) ? globalThis.String(object.type) : "",
11
+ originalDuration: isSet(object.originalDuration) ? globalThis.Number(object.originalDuration) : 0,
12
+ originalPeriod: isSet(object.originalPeriod) ? globalThis.String(object.originalPeriod) : "",
13
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
12
14
  };
13
15
  },
14
16
  toJSON(message) {
@@ -19,8 +21,14 @@ export const Duration = {
19
21
  if (message.period !== "") {
20
22
  obj.period = message.period;
21
23
  }
22
- if (message.type !== "") {
23
- obj.type = message.type;
24
+ if (message.originalDuration !== 0) {
25
+ obj.originalDuration = Math.round(message.originalDuration);
26
+ }
27
+ if (message.originalPeriod !== "") {
28
+ obj.originalPeriod = message.originalPeriod;
29
+ }
30
+ if (message.description !== "") {
31
+ obj.description = message.description;
24
32
  }
25
33
  return obj;
26
34
  },
@@ -0,0 +1,15 @@
1
+ export interface EnglishRequirements {
2
+ ielts: number;
3
+ toeflPaper: number;
4
+ toeflInternet: number;
5
+ pte: number;
6
+ duolingo: number;
7
+ cambridgeEnglish: number;
8
+ ote: number;
9
+ }
10
+ export declare const EnglishRequirements: MessageFns<EnglishRequirements>;
11
+ interface MessageFns<T> {
12
+ fromJSON(object: any): T;
13
+ toJSON(message: T): unknown;
14
+ }
15
+ export {};
@@ -0,0 +1,46 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.5
4
+ // protoc v6.30.2
5
+ // source: EnglishRequirements.proto
6
+ export const EnglishRequirements = {
7
+ fromJSON(object) {
8
+ return {
9
+ ielts: isSet(object.ielts) ? globalThis.Number(object.ielts) : 0,
10
+ toeflPaper: isSet(object.toeflPaper) ? globalThis.Number(object.toeflPaper) : 0,
11
+ toeflInternet: isSet(object.toeflInternet) ? globalThis.Number(object.toeflInternet) : 0,
12
+ pte: isSet(object.pte) ? globalThis.Number(object.pte) : 0,
13
+ duolingo: isSet(object.duolingo) ? globalThis.Number(object.duolingo) : 0,
14
+ cambridgeEnglish: isSet(object.cambridgeEnglish) ? globalThis.Number(object.cambridgeEnglish) : 0,
15
+ ote: isSet(object.ote) ? globalThis.Number(object.ote) : 0,
16
+ };
17
+ },
18
+ toJSON(message) {
19
+ const obj = {};
20
+ if (message.ielts !== 0) {
21
+ obj.ielts = message.ielts;
22
+ }
23
+ if (message.toeflPaper !== 0) {
24
+ obj.toeflPaper = message.toeflPaper;
25
+ }
26
+ if (message.toeflInternet !== 0) {
27
+ obj.toeflInternet = message.toeflInternet;
28
+ }
29
+ if (message.pte !== 0) {
30
+ obj.pte = message.pte;
31
+ }
32
+ if (message.duolingo !== 0) {
33
+ obj.duolingo = message.duolingo;
34
+ }
35
+ if (message.cambridgeEnglish !== 0) {
36
+ obj.cambridgeEnglish = message.cambridgeEnglish;
37
+ }
38
+ if (message.ote !== 0) {
39
+ obj.ote = message.ote;
40
+ }
41
+ return obj;
42
+ },
43
+ };
44
+ function isSet(value) {
45
+ return value !== null && value !== undefined;
46
+ }
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: GPARequirement.proto
6
6
  export const GPARequirement = {
7
7
  fromJSON(object) {
@@ -0,0 +1,17 @@
1
+ export interface GSSAResults {
2
+ organisationId: number;
3
+ overallSatisfaction?: string | undefined;
4
+ studentTeacherInteraction?: string | undefined;
5
+ careerDevelopment?: string | undefined;
6
+ studentDiversity?: string | undefined;
7
+ onlineClassroomExperience?: string | undefined;
8
+ admissionProcess?: string | undefined;
9
+ qualityOfStudentLife?: string | undefined;
10
+ year: number;
11
+ }
12
+ export declare const GSSAResults: MessageFns<GSSAResults>;
13
+ interface MessageFns<T> {
14
+ fromJSON(object: any): T;
15
+ toJSON(message: T): unknown;
16
+ }
17
+ export {};
@@ -0,0 +1,62 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.5
4
+ // protoc v6.30.2
5
+ // source: GSSAResults.proto
6
+ export const GSSAResults = {
7
+ fromJSON(object) {
8
+ return {
9
+ organisationId: isSet(object.organisationId) ? globalThis.Number(object.organisationId) : 0,
10
+ overallSatisfaction: isSet(object.overallSatisfaction)
11
+ ? globalThis.String(object.overallSatisfaction)
12
+ : undefined,
13
+ studentTeacherInteraction: isSet(object.studentTeacherInteraction)
14
+ ? globalThis.String(object.studentTeacherInteraction)
15
+ : undefined,
16
+ careerDevelopment: isSet(object.careerDevelopment) ? globalThis.String(object.careerDevelopment) : undefined,
17
+ studentDiversity: isSet(object.studentDiversity) ? globalThis.String(object.studentDiversity) : undefined,
18
+ onlineClassroomExperience: isSet(object.onlineClassroomExperience)
19
+ ? globalThis.String(object.onlineClassroomExperience)
20
+ : undefined,
21
+ admissionProcess: isSet(object.admissionProcess) ? globalThis.String(object.admissionProcess) : undefined,
22
+ qualityOfStudentLife: isSet(object.qualityOfStudentLife)
23
+ ? globalThis.String(object.qualityOfStudentLife)
24
+ : undefined,
25
+ year: isSet(object.year) ? globalThis.Number(object.year) : 0,
26
+ };
27
+ },
28
+ toJSON(message) {
29
+ const obj = {};
30
+ if (message.organisationId !== 0) {
31
+ obj.organisationId = Math.round(message.organisationId);
32
+ }
33
+ if (message.overallSatisfaction !== undefined) {
34
+ obj.overallSatisfaction = message.overallSatisfaction;
35
+ }
36
+ if (message.studentTeacherInteraction !== undefined) {
37
+ obj.studentTeacherInteraction = message.studentTeacherInteraction;
38
+ }
39
+ if (message.careerDevelopment !== undefined) {
40
+ obj.careerDevelopment = message.careerDevelopment;
41
+ }
42
+ if (message.studentDiversity !== undefined) {
43
+ obj.studentDiversity = message.studentDiversity;
44
+ }
45
+ if (message.onlineClassroomExperience !== undefined) {
46
+ obj.onlineClassroomExperience = message.onlineClassroomExperience;
47
+ }
48
+ if (message.admissionProcess !== undefined) {
49
+ obj.admissionProcess = message.admissionProcess;
50
+ }
51
+ if (message.qualityOfStudentLife !== undefined) {
52
+ obj.qualityOfStudentLife = message.qualityOfStudentLife;
53
+ }
54
+ if (message.year !== 0) {
55
+ obj.year = Math.round(message.year);
56
+ }
57
+ return obj;
58
+ },
59
+ };
60
+ function isSet(value) {
61
+ return value !== null && value !== undefined;
62
+ }
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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: LivingCost.proto
6
6
  export const LivingCost = {
7
7
  fromJSON(object) {
@@ -5,10 +5,9 @@ export interface Location {
5
5
  countryId: number;
6
6
  countryIso: string;
7
7
  country: OptionalLink | undefined;
8
- hasAreadId: boolean;
9
8
  areaId: number;
10
- canShowArea: boolean;
11
9
  area: OptionalLink | undefined;
10
+ text: string;
12
11
  }
13
12
  export declare const Location: MessageFns<Location>;
14
13
  interface MessageFns<T> {
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Location.proto
6
6
  /* eslint-disable */
7
7
  import { OptionalLink } from "./OptionalLink.js";
@@ -13,10 +13,9 @@ 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
- hasAreadId: isSet(object.hasAreadId) ? globalThis.Boolean(object.hasAreadId) : false,
17
16
  areaId: isSet(object.areaId) ? globalThis.Number(object.areaId) : 0,
18
- canShowArea: isSet(object.canShowArea) ? globalThis.Boolean(object.canShowArea) : false,
19
17
  area: isSet(object.area) ? OptionalLink.fromJSON(object.area) : undefined,
18
+ text: isSet(object.text) ? globalThis.String(object.text) : "",
20
19
  };
21
20
  },
22
21
  toJSON(message) {
@@ -36,18 +35,15 @@ export const Location = {
36
35
  if (message.country !== undefined) {
37
36
  obj.country = OptionalLink.toJSON(message.country);
38
37
  }
39
- if (message.hasAreadId !== false) {
40
- obj.hasAreadId = message.hasAreadId;
41
- }
42
38
  if (message.areaId !== 0) {
43
39
  obj.areaId = Math.round(message.areaId);
44
40
  }
45
- if (message.canShowArea !== false) {
46
- obj.canShowArea = message.canShowArea;
47
- }
48
41
  if (message.area !== undefined) {
49
42
  obj.area = OptionalLink.toJSON(message.area);
50
43
  }
44
+ if (message.text !== "") {
45
+ obj.text = message.text;
46
+ }
51
47
  return obj;
52
48
  },
53
49
  };
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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: MiniProgrammeCard.proto
6
6
  /* eslint-disable */
7
7
  import { InternalLink } from "./InternalLink.js";
@@ -1,8 +1,6 @@
1
1
  export interface OptionalLink {
2
2
  url: string;
3
3
  description: string;
4
- canShowDescription: boolean;
5
- canShowUrl: boolean;
6
4
  }
7
5
  export declare const OptionalLink: MessageFns<OptionalLink>;
8
6
  interface MessageFns<T> {