@studyportals/domain-client 7.5.0 → 7.6.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.
Files changed (65) 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/index.d.ts +1 -0
  62. package/src/clients/index.js +1 -0
  63. package/src/clients/organisation-page-client.js +1 -1
  64. package/src/clients/programme-card-v2-client.d.ts +8 -0
  65. package/src/clients/programme-card-v2-client.js +16 -0
@@ -1,15 +1,13 @@
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: OptionalLink.proto
6
6
  export const OptionalLink = {
7
7
  fromJSON(object) {
8
8
  return {
9
9
  url: isSet(object.url) ? globalThis.String(object.url) : "",
10
10
  description: isSet(object.description) ? globalThis.String(object.description) : "",
11
- canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
12
- canShowUrl: isSet(object.canShowUrl) ? globalThis.Boolean(object.canShowUrl) : false,
13
11
  };
14
12
  },
15
13
  toJSON(message) {
@@ -20,12 +18,6 @@ export const OptionalLink = {
20
18
  if (message.description !== "") {
21
19
  obj.description = message.description;
22
20
  }
23
- if (message.canShowDescription !== false) {
24
- obj.canShowDescription = message.canShowDescription;
25
- }
26
- if (message.canShowUrl !== false) {
27
- obj.canShowUrl = message.canShowUrl;
28
- }
29
21
  return obj;
30
22
  },
31
23
  };
@@ -3,10 +3,12 @@ import { CommercialEntity } from "./CommercialEntity.js";
3
3
  import { Degree } from "./Degree.js";
4
4
  import { Discipline } from "./Discipline.js";
5
5
  import { File } from "./File.js";
6
+ import { GSSAResults } from "./GSSAResults.js";
6
7
  import { Link } from "./Link.js";
7
8
  import { OrganisationRanking } from "./OrganisationRanking.js";
8
9
  import { Ranking } from "./Ranking.js";
9
10
  import { Review } from "./Review.js";
11
+ import { ReviewCountPerStar } from "./ReviewCountPerStar.js";
10
12
  import { ReviewRating } from "./ReviewRating.js";
11
13
  import { SocialLink } from "./SocialLink.js";
12
14
  import { Unibuddy } from "./Unibuddy.js";
@@ -89,6 +91,8 @@ export interface Organisation {
89
91
  countryMetaRankingPosition?: number | undefined;
90
92
  globalMetaRankingPositionPercentage?: string | undefined;
91
93
  countryMetaRankingPositionPercentage?: string | undefined;
94
+ reviewCountPerStar?: ReviewCountPerStar | undefined;
95
+ gssaResults: GSSAResults | undefined;
92
96
  }
93
97
  export interface Organisation_RankingsEntry {
94
98
  key: number;
@@ -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: Organisation.proto
6
6
  /* eslint-disable */
7
7
  import { Area } from "./Area.js";
@@ -9,10 +9,12 @@ import { CommercialEntity } from "./CommercialEntity.js";
9
9
  import { Degree } from "./Degree.js";
10
10
  import { Discipline } from "./Discipline.js";
11
11
  import { File } from "./File.js";
12
+ import { GSSAResults } from "./GSSAResults.js";
12
13
  import { Link } from "./Link.js";
13
14
  import { OrganisationRanking } from "./OrganisationRanking.js";
14
15
  import { Ranking } from "./Ranking.js";
15
16
  import { Review } from "./Review.js";
17
+ import { ReviewCountPerStar } from "./ReviewCountPerStar.js";
16
18
  import { ReviewRating } from "./ReviewRating.js";
17
19
  import { SocialLink } from "./SocialLink.js";
18
20
  import { Unibuddy } from "./Unibuddy.js";
@@ -136,6 +138,10 @@ export const Organisation = {
136
138
  countryMetaRankingPositionPercentage: isSet(object.countryMetaRankingPositionPercentage)
137
139
  ? globalThis.String(object.countryMetaRankingPositionPercentage)
138
140
  : undefined,
141
+ reviewCountPerStar: isSet(object.reviewCountPerStar)
142
+ ? ReviewCountPerStar.fromJSON(object.reviewCountPerStar)
143
+ : undefined,
144
+ gssaResults: isSet(object.gssaResults) ? GSSAResults.fromJSON(object.gssaResults) : undefined,
139
145
  };
140
146
  },
141
147
  toJSON(message) {
@@ -374,6 +380,12 @@ export const Organisation = {
374
380
  if (message.countryMetaRankingPositionPercentage !== undefined) {
375
381
  obj.countryMetaRankingPositionPercentage = message.countryMetaRankingPositionPercentage;
376
382
  }
383
+ if (message.reviewCountPerStar !== undefined) {
384
+ obj.reviewCountPerStar = ReviewCountPerStar.toJSON(message.reviewCountPerStar);
385
+ }
386
+ if (message.gssaResults !== undefined) {
387
+ obj.gssaResults = GSSAResults.toJSON(message.gssaResults);
388
+ }
377
389
  return obj;
378
390
  },
379
391
  };
@@ -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: 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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Person.proto
6
6
  /* eslint-disable */
7
7
  import { File } from "./File.js";
@@ -1,20 +1,19 @@
1
1
  import { Cover } from "./Cover.js";
2
2
  import { Duration } from "./Duration.js";
3
- import { EnglishRequirement } from "./EnglishRequirement.js";
3
+ import { EnglishRequirements } from "./EnglishRequirements.js";
4
4
  import { GPARequirement } from "./GPARequirement.js";
5
5
  import { InternalLink } from "./InternalLink.js";
6
6
  import { Link } from "./Link.js";
7
7
  import { LivingCost } from "./LivingCost.js";
8
8
  import { Location } from "./Location.js";
9
9
  import { Logo } from "./Logo.js";
10
- import { Country } from "./Organisation.js";
10
+ import { ReviewRating } from "./ReviewRating.js";
11
11
  import { Timing } from "./Timing.js";
12
12
  import { TrackedLink } from "./TrackedLink.js";
13
13
  import { Tracking } from "./Tracking.js";
14
14
  import { TuitionFee } from "./TuitionFee.js";
15
15
  export interface ProgrammeCard {
16
16
  id: number;
17
- name: string;
18
17
  title: string;
19
18
  description: string;
20
19
  isPublic: boolean;
@@ -32,25 +31,25 @@ export interface ProgrammeCard {
32
31
  cover: Cover | undefined;
33
32
  universityLink: Link | undefined;
34
33
  universityId: number;
35
- location: Location | undefined;
36
- locationText: string;
34
+ topLevelLocation: Location | undefined;
35
+ locations: Location[];
37
36
  tracking: Tracking | undefined;
38
37
  tuitionFees: TuitionFee[];
39
38
  duration: Duration | undefined;
40
39
  timings: Timing[];
41
40
  referralLink: TrackedLink | undefined;
42
- country: Country | undefined;
43
- topLevelOrganisation: string[];
41
+ countryIsoCode: string;
44
42
  premiumType: string;
45
43
  disciplineIds: number[];
46
- englishRequirements: EnglishRequirement | undefined;
44
+ englishRequirements: EnglishRequirements | undefined;
47
45
  workExperienceYears: number;
48
46
  gpa: GPARequirement | undefined;
49
47
  livingCost: LivingCost | undefined;
48
+ universityGlobalPositionPercentage: string;
50
49
  ects: string;
51
- campaignType: number;
52
- lastUpdated: string;
53
- commercialRange: string[];
50
+ campaignType: string;
51
+ lastUpdated: Date | undefined;
52
+ reviewRating: ReviewRating | undefined;
54
53
  }
55
54
  export declare const ProgrammeCard: MessageFns<ProgrammeCard>;
56
55
  interface MessageFns<T> {
@@ -1,28 +1,28 @@
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: ProgrammeCard.proto
6
6
  /* eslint-disable */
7
7
  import { Cover } from "./Cover.js";
8
8
  import { Duration } from "./Duration.js";
9
- import { EnglishRequirement } from "./EnglishRequirement.js";
9
+ import { EnglishRequirements } from "./EnglishRequirements.js";
10
10
  import { GPARequirement } from "./GPARequirement.js";
11
11
  import { InternalLink } from "./InternalLink.js";
12
12
  import { Link } from "./Link.js";
13
13
  import { LivingCost } from "./LivingCost.js";
14
14
  import { Location } from "./Location.js";
15
15
  import { Logo } from "./Logo.js";
16
- import { Country } from "./Organisation.js";
16
+ import { ReviewRating } from "./ReviewRating.js";
17
17
  import { Timing } from "./Timing.js";
18
18
  import { TrackedLink } from "./TrackedLink.js";
19
19
  import { Tracking } from "./Tracking.js";
20
20
  import { TuitionFee } from "./TuitionFee.js";
21
+ import { Timestamp } from "./google/protobuf/timestamp.js";
21
22
  export const ProgrammeCard = {
22
23
  fromJSON(object) {
23
24
  return {
24
25
  id: isSet(object.id) ? globalThis.Number(object.id) : 0,
25
- name: isSet(object.name) ? globalThis.String(object.name) : "",
26
26
  title: isSet(object.title) ? globalThis.String(object.title) : "",
27
27
  description: isSet(object.description) ? globalThis.String(object.description) : "",
28
28
  isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
@@ -40,37 +40,35 @@ export const ProgrammeCard = {
40
40
  cover: isSet(object.cover) ? Cover.fromJSON(object.cover) : undefined,
41
41
  universityLink: isSet(object.universityLink) ? Link.fromJSON(object.universityLink) : undefined,
42
42
  universityId: isSet(object.universityId) ? globalThis.Number(object.universityId) : 0,
43
- location: isSet(object.location) ? Location.fromJSON(object.location) : undefined,
44
- locationText: isSet(object.locationText) ? globalThis.String(object.locationText) : "",
43
+ topLevelLocation: isSet(object.topLevelLocation) ? Location.fromJSON(object.topLevelLocation) : undefined,
44
+ locations: globalThis.Array.isArray(object?.locations)
45
+ ? object.locations.map((e) => Location.fromJSON(e))
46
+ : [],
45
47
  tracking: isSet(object.tracking) ? Tracking.fromJSON(object.tracking) : undefined,
46
48
  tuitionFees: globalThis.Array.isArray(object?.tuitionFees)
47
49
  ? object.tuitionFees.map((e) => TuitionFee.fromJSON(e))
48
50
  : [],
49
51
  duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
50
- timings: globalThis.Array.isArray(object?.timings)
51
- ? object.timings.map((e) => Timing.fromJSON(e))
52
- : [],
52
+ timings: globalThis.Array.isArray(object?.timings) ? object.timings.map((e) => Timing.fromJSON(e)) : [],
53
53
  referralLink: isSet(object.referralLink) ? TrackedLink.fromJSON(object.referralLink) : undefined,
54
- country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
55
- topLevelOrganisation: globalThis.Array.isArray(object?.topLevelOrganisation)
56
- ? object.topLevelOrganisation.map((e) => globalThis.String(e))
57
- : [],
54
+ countryIsoCode: isSet(object.countryIsoCode) ? globalThis.String(object.countryIsoCode) : "",
58
55
  premiumType: isSet(object.premiumType) ? globalThis.String(object.premiumType) : "",
59
56
  disciplineIds: globalThis.Array.isArray(object?.disciplineIds)
60
57
  ? object.disciplineIds.map((e) => globalThis.Number(e))
61
58
  : [],
62
59
  englishRequirements: isSet(object.englishRequirements)
63
- ? EnglishRequirement.fromJSON(object.englishRequirements)
60
+ ? EnglishRequirements.fromJSON(object.englishRequirements)
64
61
  : undefined,
65
62
  workExperienceYears: isSet(object.workExperienceYears) ? globalThis.Number(object.workExperienceYears) : 0,
66
63
  gpa: isSet(object.gpa) ? GPARequirement.fromJSON(object.gpa) : undefined,
67
64
  livingCost: isSet(object.livingCost) ? LivingCost.fromJSON(object.livingCost) : undefined,
65
+ universityGlobalPositionPercentage: isSet(object.universityGlobalPositionPercentage)
66
+ ? globalThis.String(object.universityGlobalPositionPercentage)
67
+ : "",
68
68
  ects: isSet(object.ects) ? globalThis.String(object.ects) : "",
69
- campaignType: isSet(object.campaignType) ? globalThis.Number(object.campaignType) : 0,
70
- lastUpdated: isSet(object.lastUpdated) ? globalThis.String(object.lastUpdated) : "",
71
- commercialRange: globalThis.Array.isArray(object?.commercialRange)
72
- ? object.commercialRange.map((e) => globalThis.String(e))
73
- : [],
69
+ campaignType: isSet(object.campaignType) ? globalThis.String(object.campaignType) : "",
70
+ lastUpdated: isSet(object.lastUpdated) ? fromJsonTimestamp(object.lastUpdated) : undefined,
71
+ reviewRating: isSet(object.reviewRating) ? ReviewRating.fromJSON(object.reviewRating) : undefined,
74
72
  };
75
73
  },
76
74
  toJSON(message) {
@@ -78,9 +76,6 @@ export const ProgrammeCard = {
78
76
  if (message.id !== 0) {
79
77
  obj.id = Math.round(message.id);
80
78
  }
81
- if (message.name !== "") {
82
- obj.name = message.name;
83
- }
84
79
  if (message.title !== "") {
85
80
  obj.title = message.title;
86
81
  }
@@ -132,11 +127,11 @@ export const ProgrammeCard = {
132
127
  if (message.universityId !== 0) {
133
128
  obj.universityId = Math.round(message.universityId);
134
129
  }
135
- if (message.location !== undefined) {
136
- obj.location = Location.toJSON(message.location);
130
+ if (message.topLevelLocation !== undefined) {
131
+ obj.topLevelLocation = Location.toJSON(message.topLevelLocation);
137
132
  }
138
- if (message.locationText !== "") {
139
- obj.locationText = message.locationText;
133
+ if (message.locations?.length) {
134
+ obj.locations = message.locations.map((e) => Location.toJSON(e));
140
135
  }
141
136
  if (message.tracking !== undefined) {
142
137
  obj.tracking = Tracking.toJSON(message.tracking);
@@ -153,11 +148,8 @@ export const ProgrammeCard = {
153
148
  if (message.referralLink !== undefined) {
154
149
  obj.referralLink = TrackedLink.toJSON(message.referralLink);
155
150
  }
156
- if (message.country !== undefined) {
157
- obj.country = Country.toJSON(message.country);
158
- }
159
- if (message.topLevelOrganisation?.length) {
160
- obj.topLevelOrganisation = message.topLevelOrganisation;
151
+ if (message.countryIsoCode !== "") {
152
+ obj.countryIsoCode = message.countryIsoCode;
161
153
  }
162
154
  if (message.premiumType !== "") {
163
155
  obj.premiumType = message.premiumType;
@@ -166,7 +158,7 @@ export const ProgrammeCard = {
166
158
  obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
167
159
  }
168
160
  if (message.englishRequirements !== undefined) {
169
- obj.englishRequirements = EnglishRequirement.toJSON(message.englishRequirements);
161
+ obj.englishRequirements = EnglishRequirements.toJSON(message.englishRequirements);
170
162
  }
171
163
  if (message.workExperienceYears !== 0) {
172
164
  obj.workExperienceYears = Math.round(message.workExperienceYears);
@@ -177,21 +169,40 @@ export const ProgrammeCard = {
177
169
  if (message.livingCost !== undefined) {
178
170
  obj.livingCost = LivingCost.toJSON(message.livingCost);
179
171
  }
172
+ if (message.universityGlobalPositionPercentage !== "") {
173
+ obj.universityGlobalPositionPercentage = message.universityGlobalPositionPercentage;
174
+ }
180
175
  if (message.ects !== "") {
181
176
  obj.ects = message.ects;
182
177
  }
183
- if (message.campaignType !== 0) {
184
- obj.campaignType = Math.round(message.campaignType);
178
+ if (message.campaignType !== "") {
179
+ obj.campaignType = message.campaignType;
185
180
  }
186
- if (message.lastUpdated !== "") {
187
- obj.lastUpdated = message.lastUpdated;
181
+ if (message.lastUpdated !== undefined) {
182
+ obj.lastUpdated = message.lastUpdated.toISOString();
188
183
  }
189
- if (message.commercialRange?.length) {
190
- obj.commercialRange = message.commercialRange;
184
+ if (message.reviewRating !== undefined) {
185
+ obj.reviewRating = ReviewRating.toJSON(message.reviewRating);
191
186
  }
192
187
  return obj;
193
188
  },
194
189
  };
190
+ function fromTimestamp(t) {
191
+ let millis = (t.seconds || 0) * 1_000;
192
+ millis += (t.nanos || 0) / 1_000_000;
193
+ return new globalThis.Date(millis);
194
+ }
195
+ function fromJsonTimestamp(o) {
196
+ if (o instanceof globalThis.Date) {
197
+ return o;
198
+ }
199
+ else if (typeof o === "string") {
200
+ return new globalThis.Date(o);
201
+ }
202
+ else {
203
+ return fromTimestamp(Timestamp.fromJSON(o));
204
+ }
205
+ }
195
206
  function isSet(value) {
196
207
  return value !== null && value !== undefined;
197
208
  }
@@ -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: 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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: RankingInstitute.proto
6
6
  /* eslint-disable */
7
7
  import { Body } from "./Body.js";
@@ -8,6 +8,7 @@ export interface Review {
8
8
  author: Person | undefined;
9
9
  startDate: string;
10
10
  endDate: string;
11
+ creationDate: string;
11
12
  }
12
13
  export declare const Review: MessageFns<Review>;
13
14
  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: Review.proto
6
6
  /* eslint-disable */
7
7
  import { Person } from "./Person.js";
@@ -16,6 +16,7 @@ export const Review = {
16
16
  author: isSet(object.author) ? Person.fromJSON(object.author) : undefined,
17
17
  startDate: isSet(object.startDate) ? globalThis.String(object.startDate) : "",
18
18
  endDate: isSet(object.endDate) ? globalThis.String(object.endDate) : "",
19
+ creationDate: isSet(object.creationDate) ? globalThis.String(object.creationDate) : "",
19
20
  };
20
21
  },
21
22
  toJSON(message) {
@@ -44,6 +45,9 @@ export const Review = {
44
45
  if (message.endDate !== "") {
45
46
  obj.endDate = message.endDate;
46
47
  }
48
+ if (message.creationDate !== "") {
49
+ obj.creationDate = message.creationDate;
50
+ }
47
51
  return obj;
48
52
  },
49
53
  };
@@ -0,0 +1,13 @@
1
+ export interface ReviewCountPerStar {
2
+ oneStar: number;
3
+ twoStar: number;
4
+ threeStar: number;
5
+ fourStar: number;
6
+ fiveStar: number;
7
+ }
8
+ export declare const ReviewCountPerStar: MessageFns<ReviewCountPerStar>;
9
+ interface MessageFns<T> {
10
+ fromJSON(object: any): T;
11
+ toJSON(message: T): unknown;
12
+ }
13
+ export {};
@@ -0,0 +1,38 @@
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: ReviewCountPerStar.proto
6
+ export const ReviewCountPerStar = {
7
+ fromJSON(object) {
8
+ return {
9
+ oneStar: isSet(object.oneStar) ? globalThis.Number(object.oneStar) : 0,
10
+ twoStar: isSet(object.twoStar) ? globalThis.Number(object.twoStar) : 0,
11
+ threeStar: isSet(object.threeStar) ? globalThis.Number(object.threeStar) : 0,
12
+ fourStar: isSet(object.fourStar) ? globalThis.Number(object.fourStar) : 0,
13
+ fiveStar: isSet(object.fiveStar) ? globalThis.Number(object.fiveStar) : 0,
14
+ };
15
+ },
16
+ toJSON(message) {
17
+ const obj = {};
18
+ if (message.oneStar !== 0) {
19
+ obj.oneStar = Math.round(message.oneStar);
20
+ }
21
+ if (message.twoStar !== 0) {
22
+ obj.twoStar = Math.round(message.twoStar);
23
+ }
24
+ if (message.threeStar !== 0) {
25
+ obj.threeStar = Math.round(message.threeStar);
26
+ }
27
+ if (message.fourStar !== 0) {
28
+ obj.fourStar = Math.round(message.fourStar);
29
+ }
30
+ if (message.fiveStar !== 0) {
31
+ obj.fiveStar = Math.round(message.fiveStar);
32
+ }
33
+ return obj;
34
+ },
35
+ };
36
+ function isSet(value) {
37
+ return value !== null && value !== undefined;
38
+ }
@@ -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: 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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: SocialLink.proto
6
6
  export const SocialLink = {
7
7
  fromJSON(object) {
@@ -1,7 +1,7 @@
1
1
  import { Deadline } from "./Deadline.js";
2
2
  export interface StartDate {
3
3
  isPassed: boolean;
4
- date: string;
4
+ date: Date | undefined;
5
5
  isApplyingAnytime: boolean;
6
6
  deadlines: Deadline[];
7
7
  }
@@ -1,15 +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: StartDate.proto
6
6
  /* eslint-disable */
7
7
  import { Deadline } from "./Deadline.js";
8
+ import { Timestamp } from "./google/protobuf/timestamp.js";
8
9
  export const StartDate = {
9
10
  fromJSON(object) {
10
11
  return {
11
12
  isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
12
- date: isSet(object.date) ? globalThis.String(object.date) : "",
13
+ date: isSet(object.date) ? fromJsonTimestamp(object.date) : undefined,
13
14
  isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
14
15
  deadlines: globalThis.Array.isArray(object?.deadlines)
15
16
  ? object.deadlines.map((e) => Deadline.fromJSON(e))
@@ -21,8 +22,8 @@ export const StartDate = {
21
22
  if (message.isPassed !== false) {
22
23
  obj.isPassed = message.isPassed;
23
24
  }
24
- if (message.date !== "") {
25
- obj.date = message.date;
25
+ if (message.date !== undefined) {
26
+ obj.date = message.date.toISOString();
26
27
  }
27
28
  if (message.isApplyingAnytime !== false) {
28
29
  obj.isApplyingAnytime = message.isApplyingAnytime;
@@ -33,6 +34,22 @@ export const StartDate = {
33
34
  return obj;
34
35
  },
35
36
  };
37
+ function fromTimestamp(t) {
38
+ let millis = (t.seconds || 0) * 1_000;
39
+ millis += (t.nanos || 0) / 1_000_000;
40
+ return new globalThis.Date(millis);
41
+ }
42
+ function fromJsonTimestamp(o) {
43
+ if (o instanceof globalThis.Date) {
44
+ return o;
45
+ }
46
+ else if (typeof o === "string") {
47
+ return new globalThis.Date(o);
48
+ }
49
+ else {
50
+ return fromTimestamp(Timestamp.fromJSON(o));
51
+ }
52
+ }
36
53
  function isSet(value) {
37
54
  return value !== null && value !== undefined;
38
55
  }
@@ -4,10 +4,8 @@ export interface Timing {
4
4
  type: string;
5
5
  isStartingAnytime: boolean;
6
6
  startDate: StartDate | undefined;
7
- canShowStartDate: boolean;
8
7
  isApplyingAnytime: boolean;
9
8
  deadline: Deadline | undefined;
10
- canShowDeadline: boolean;
11
9
  }
12
10
  export declare const Timing: MessageFns<Timing>;
13
11
  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: Timing.proto
6
6
  /* eslint-disable */
7
7
  import { Deadline } from "./Deadline.js";
@@ -12,10 +12,8 @@ export const Timing = {
12
12
  type: isSet(object.type) ? globalThis.String(object.type) : "",
13
13
  isStartingAnytime: isSet(object.isStartingAnytime) ? globalThis.Boolean(object.isStartingAnytime) : false,
14
14
  startDate: isSet(object.startDate) ? StartDate.fromJSON(object.startDate) : undefined,
15
- canShowStartDate: isSet(object.canShowStartDate) ? globalThis.Boolean(object.canShowStartDate) : false,
16
15
  isApplyingAnytime: isSet(object.isApplyingAnytime) ? globalThis.Boolean(object.isApplyingAnytime) : false,
17
16
  deadline: isSet(object.deadline) ? Deadline.fromJSON(object.deadline) : undefined,
18
- canShowDeadline: isSet(object.canShowDeadline) ? globalThis.Boolean(object.canShowDeadline) : false,
19
17
  };
20
18
  },
21
19
  toJSON(message) {
@@ -29,18 +27,12 @@ export const Timing = {
29
27
  if (message.startDate !== undefined) {
30
28
  obj.startDate = StartDate.toJSON(message.startDate);
31
29
  }
32
- if (message.canShowStartDate !== false) {
33
- obj.canShowStartDate = message.canShowStartDate;
34
- }
35
30
  if (message.isApplyingAnytime !== false) {
36
31
  obj.isApplyingAnytime = message.isApplyingAnytime;
37
32
  }
38
33
  if (message.deadline !== undefined) {
39
34
  obj.deadline = Deadline.toJSON(message.deadline);
40
35
  }
41
- if (message.canShowDeadline !== false) {
42
- obj.canShowDeadline = message.canShowDeadline;
43
- }
44
36
  return obj;
45
37
  },
46
38
  };
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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.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
3
  // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
4
+ // protoc v6.30.2
5
5
  // source: Tracking.proto
6
6
  /* eslint-disable */
7
7
  import { ClickTracking } from "./ClickTracking.js";
@@ -1,4 +1,6 @@
1
1
  export interface TuitionFee {
2
+ isFree: boolean;
3
+ target: string;
2
4
  amount: number;
3
5
  currency: string;
4
6
  unit: string;