@studyportals/domain-client 7.4.1-beta.1 → 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.
- package/package.json +68 -68
- package/protobuf/Area.js +1 -1
- package/protobuf/Article.js +1 -1
- package/protobuf/Body.js +1 -1
- package/protobuf/CampaignInformation.js +1 -1
- package/protobuf/ClickTracking.js +1 -1
- package/protobuf/CommercialEntity.js +1 -1
- package/protobuf/Cover.js +1 -1
- package/protobuf/Deadline.d.ts +1 -1
- package/protobuf/Deadline.js +22 -4
- package/protobuf/Degree.js +1 -1
- package/protobuf/Description.js +1 -1
- package/protobuf/Discipline.js +1 -1
- package/protobuf/Duration.d.ts +3 -1
- package/protobuf/Duration.js +12 -4
- package/protobuf/EnglishRequirements.d.ts +15 -0
- package/protobuf/EnglishRequirements.js +46 -0
- package/protobuf/EssentialInformation.js +1 -1
- package/protobuf/File.js +1 -1
- package/protobuf/GPARequirement.js +1 -1
- package/protobuf/GSSAResults.d.ts +17 -0
- package/protobuf/GSSAResults.js +62 -0
- package/protobuf/Link.js +1 -1
- package/protobuf/LivingCost.js +1 -1
- package/protobuf/Location.d.ts +1 -2
- package/protobuf/Location.js +5 -9
- package/protobuf/Logo.js +1 -1
- package/protobuf/MiniProgrammeCard.js +1 -1
- package/protobuf/OptionalLink.d.ts +0 -2
- package/protobuf/OptionalLink.js +1 -9
- package/protobuf/Organisation.d.ts +4 -0
- package/protobuf/Organisation.js +13 -1
- package/protobuf/OrganisationInformation.js +1 -1
- package/protobuf/OrganisationRanking.js +1 -1
- package/protobuf/Person.js +1 -1
- package/protobuf/ProgrammeCard.d.ts +10 -11
- package/protobuf/ProgrammeCard.js +49 -38
- package/protobuf/Ranking.js +1 -1
- package/protobuf/RankingInstitute.js +1 -1
- package/protobuf/Review.d.ts +1 -0
- package/protobuf/Review.js +5 -1
- package/protobuf/ReviewCountPerStar.d.ts +13 -0
- package/protobuf/ReviewCountPerStar.js +38 -0
- package/protobuf/ReviewRating.js +1 -1
- package/protobuf/RichText.js +1 -1
- package/protobuf/SocialLink.js +1 -1
- package/protobuf/StartDate.d.ts +1 -1
- package/protobuf/StartDate.js +21 -4
- package/protobuf/Timing.d.ts +0 -2
- package/protobuf/Timing.js +1 -9
- package/protobuf/Topic.js +1 -1
- package/protobuf/TrackedLink.js +1 -1
- package/protobuf/Tracking.js +1 -1
- package/protobuf/TuitionFee.d.ts +2 -0
- package/protobuf/TuitionFee.js +9 -1
- package/protobuf/Unibuddy.js +1 -1
- package/protobuf/google/protobuf/timestamp.d.ts +112 -0
- package/protobuf/google/protobuf/timestamp.js +26 -0
- package/protobuf/index.d.ts +4 -0
- package/protobuf/index.js +4 -0
- package/src/clients/organisation-page-client.js +1 -1
- package/src/clients/programme-card-v2-client.d.ts +8 -0
- package/src/clients/programme-card-v2-client.js +16 -0
package/protobuf/OptionalLink.js
CHANGED
|
@@ -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
|
|
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;
|
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
3
|
// protoc-gen-ts_proto v2.7.5
|
|
4
|
-
// protoc
|
|
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
|
};
|
package/protobuf/Person.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { Cover } from "./Cover.js";
|
|
2
2
|
import { Duration } from "./Duration.js";
|
|
3
|
-
import {
|
|
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 {
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
43
|
-
topLevelOrganisation: string[];
|
|
41
|
+
countryIsoCode: string;
|
|
44
42
|
premiumType: string;
|
|
45
43
|
disciplineIds: number[];
|
|
46
|
-
englishRequirements:
|
|
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:
|
|
52
|
-
lastUpdated:
|
|
53
|
-
|
|
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
|
|
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 {
|
|
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 {
|
|
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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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
|
-
?
|
|
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.
|
|
70
|
-
lastUpdated: isSet(object.lastUpdated) ?
|
|
71
|
-
|
|
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.
|
|
136
|
-
obj.
|
|
130
|
+
if (message.topLevelLocation !== undefined) {
|
|
131
|
+
obj.topLevelLocation = Location.toJSON(message.topLevelLocation);
|
|
137
132
|
}
|
|
138
|
-
if (message.
|
|
139
|
-
obj.
|
|
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.
|
|
157
|
-
obj.
|
|
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 =
|
|
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 !==
|
|
184
|
-
obj.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.
|
|
190
|
-
obj.
|
|
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
|
}
|
package/protobuf/Ranking.js
CHANGED
package/protobuf/Review.d.ts
CHANGED
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
3
|
// protoc-gen-ts_proto v2.7.5
|
|
4
|
-
// protoc
|
|
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
|
+
}
|
package/protobuf/ReviewRating.js
CHANGED
package/protobuf/RichText.js
CHANGED
package/protobuf/SocialLink.js
CHANGED
package/protobuf/StartDate.d.ts
CHANGED
package/protobuf/StartDate.js
CHANGED
|
@@ -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
|
|
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) ?
|
|
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
|
}
|
package/protobuf/Timing.d.ts
CHANGED
|
@@ -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> {
|
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
3
|
// protoc-gen-ts_proto v2.7.5
|
|
4
|
-
// protoc
|
|
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
package/protobuf/TrackedLink.js
CHANGED
package/protobuf/Tracking.js
CHANGED