@studyportals/domain-client 10.3.0 → 10.4.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 (75) hide show
  1. package/index.d.ts +2 -2
  2. package/package.json +1 -1
  3. package/src/models/organisation-search-document/i-organisation-search-document.d.ts +12 -0
  4. package/protobuf/Credits.d.ts +0 -17
  5. package/protobuf/Credits.js +0 -54
  6. package/protobuf/DisciplineDescription.d.ts +0 -16
  7. package/protobuf/DisciplineDescription.js +0 -45
  8. package/protobuf/DisciplineEssentialInformation.d.ts +0 -17
  9. package/protobuf/DisciplineEssentialInformation.js +0 -54
  10. package/protobuf/Language.d.ts +0 -16
  11. package/protobuf/Language.js +0 -54
  12. package/protobuf/OrganisationReview.d.ts +0 -13
  13. package/protobuf/OrganisationReview.js +0 -42
  14. package/protobuf/Programme/AcademicRequirements.d.ts +0 -15
  15. package/protobuf/Programme/AcademicRequirements.js +0 -41
  16. package/protobuf/Programme/BannerTargeting.d.ts +0 -11
  17. package/protobuf/Programme/BannerTargeting.js +0 -31
  18. package/protobuf/Programme/CourseInstance.d.ts +0 -21
  19. package/protobuf/Programme/CourseInstance.js +0 -83
  20. package/protobuf/Programme/DeliveryMethod.d.ts +0 -19
  21. package/protobuf/Programme/DeliveryMethod.js +0 -76
  22. package/protobuf/Programme/DisciplineList.d.ts +0 -13
  23. package/protobuf/Programme/DisciplineList.js +0 -37
  24. package/protobuf/Programme/InsuranceConfiguration.d.ts +0 -9
  25. package/protobuf/Programme/InsuranceConfiguration.js +0 -20
  26. package/protobuf/Programme/Intensity.d.ts +0 -18
  27. package/protobuf/Programme/Intensity.js +0 -57
  28. package/protobuf/Programme/LandingPageLink.d.ts +0 -12
  29. package/protobuf/Programme/LandingPageLink.js +0 -34
  30. package/protobuf/Programme/LivingCostDetails.d.ts +0 -12
  31. package/protobuf/Programme/LivingCostDetails.js +0 -29
  32. package/protobuf/Programme/Media.d.ts +0 -24
  33. package/protobuf/Programme/Media.js +0 -87
  34. package/protobuf/Programme/PartTimeDuration.d.ts +0 -18
  35. package/protobuf/Programme/PartTimeDuration.js +0 -54
  36. package/protobuf/Programme/Programme.d.ts +0 -111
  37. package/protobuf/Programme/Programme.js +0 -376
  38. package/protobuf/Programme/ProgrammeDescription.d.ts +0 -17
  39. package/protobuf/Programme/ProgrammeDescription.js +0 -59
  40. package/protobuf/Programme/ProgrammeEnglishRequirements.d.ts +0 -14
  41. package/protobuf/Programme/ProgrammeEnglishRequirements.js +0 -40
  42. package/protobuf/Programme/ProgrammeEssentialInformation.d.ts +0 -27
  43. package/protobuf/Programme/ProgrammeEssentialInformation.js +0 -111
  44. package/protobuf/Programme/Provider.d.ts +0 -18
  45. package/protobuf/Programme/Provider.js +0 -56
  46. package/protobuf/Programme/QuickFacts.d.ts +0 -19
  47. package/protobuf/Programme/QuickFacts.js +0 -56
  48. package/protobuf/Programme/RemarketingUserTag.d.ts +0 -12
  49. package/protobuf/Programme/RemarketingUserTag.js +0 -36
  50. package/protobuf/Programme/Requirements.d.ts +0 -19
  51. package/protobuf/Programme/Requirements.js +0 -70
  52. package/protobuf/Programme/Score.d.ts +0 -10
  53. package/protobuf/Programme/Score.js +0 -26
  54. package/protobuf/Programme/StartDate.d.ts +0 -15
  55. package/protobuf/Programme/StartDate.js +0 -43
  56. package/protobuf/Programme/StartDateDomain.d.ts +0 -13
  57. package/protobuf/Programme/StartDateDomain.js +0 -55
  58. package/protobuf/Programme/StructuredData.d.ts +0 -20
  59. package/protobuf/Programme/StructuredData.js +0 -67
  60. package/protobuf/Programme/Summary.d.ts +0 -12
  61. package/protobuf/Programme/Summary.js +0 -34
  62. package/protobuf/Programme/TestCard.d.ts +0 -12
  63. package/protobuf/Programme/TestCard.js +0 -32
  64. package/protobuf/Programme/TestProviderConfiguration.d.ts +0 -14
  65. package/protobuf/Programme/TestProviderConfiguration.js +0 -42
  66. package/protobuf/Programme/TuitionFeeDetails.d.ts +0 -17
  67. package/protobuf/Programme/TuitionFeeDetails.js +0 -48
  68. package/protobuf/Programme/Venue.d.ts +0 -15
  69. package/protobuf/Programme/Venue.js +0 -46
  70. package/protobuf/Programme/VenueList.d.ts +0 -12
  71. package/protobuf/Programme/VenueList.js +0 -32
  72. package/protobuf/SimpleTrackedLink.d.ts +0 -14
  73. package/protobuf/SimpleTrackedLink.js +0 -42
  74. package/protobuf/google/protobuf/duration.d.ts +0 -83
  75. package/protobuf/google/protobuf/duration.js +0 -26
package/index.d.ts CHANGED
@@ -57,7 +57,7 @@ import { ISitemapOrganisationInfo } from "./src/models/sitemap-organisations-inf
57
57
  import { SitemapOrganisationsInfoClient } from "./src/models/sitemap-organisations-info/sitemap-organisations-info-client.js";
58
58
  import { IOrganisationCard } from "./src/models/organisation-card/i-organisation-card.js";
59
59
  import { OrganisationCardClient } from "./src/models/organisation-card/organisation-card-client.js";
60
- import { IOrganisationSearchDocument } from "./src/models/organisation-search-document/i-organisation-search-document.js";
60
+ import { IOrganisationSearchDocument, IOrganisationSearchDocumentReviews } from "./src/models/organisation-search-document/i-organisation-search-document.js";
61
61
  import { OrganisationSearchDocumentClient } from "./src/models/organisation-search-document/organisation-search-document-client.js";
62
62
  import { ISitemapRankingsInfo } from "./src/models/sitemap-rankings-info/i-sitemap-rankings-info.js";
63
63
  import { SitemapRankingsInfoClient } from "./src/models/sitemap-rankings-info/sitemap-rankings-info-client.js";
@@ -84,6 +84,6 @@ import { ICopilotRankingCard } from "./src/models/copilot-country/i-copilot-rank
84
84
  import { IReviewRating } from "./src/models/common/i-review-rating.js";
85
85
  import { IScholarshipCard } from "./src/models/scholarship-card/i-scholarship-card.js";
86
86
  import { IRankingDiscipline } from './src/models/organisation-card/i-ranking-discipline.js';
87
- export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, ICustomerIOProgramme, CustomerIOProgrammeClient, IFaqStaticContent, PublicFaqStaticContentClient, IFaq, IStaticContentUrl, ISitemapProgrammeInfo, SitemapProgrammeInfoClient, ISitemapCountryInfo, SitemapCountriesInfoClient, IDegreeInfo, ISitemapCountryDegreeInfo, SitemapCountryDegreeInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, ICustomerIOOrganisation, CustomerIOOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, IOrganisationSearchDocument, OrganisationSearchDocumentClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, ScholarshipCardV2Client, IScholarshipCard, IScholarshipSearchDocument, ScholarshipSearchDocumentClient, ICitySearchDocument, CitySearchDocumentClient, IRanking, PortalType, PortalMap, ModelClient, IRankingDiscipline, IOrganisationForSearch, PublicOrganisationForSearchClient, IOrganisationCard, OrganisationCardClient, ICopilotProgramme, ICopilotCountry, CopilotProgrammeClient, CopilotCountryClient, ICopilotRankingCard, IReviewRating };
87
+ export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, ICustomerIOProgramme, CustomerIOProgrammeClient, IFaqStaticContent, PublicFaqStaticContentClient, IFaq, IStaticContentUrl, ISitemapProgrammeInfo, SitemapProgrammeInfoClient, ISitemapCountryInfo, SitemapCountriesInfoClient, IDegreeInfo, ISitemapCountryDegreeInfo, SitemapCountryDegreeInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, ICustomerIOOrganisation, CustomerIOOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, IOrganisationSearchDocument, IOrganisationSearchDocumentReviews, OrganisationSearchDocumentClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, ScholarshipCardV2Client, IScholarshipCard, IScholarshipSearchDocument, ScholarshipSearchDocumentClient, ICitySearchDocument, CitySearchDocumentClient, IRanking, PortalType, PortalMap, ModelClient, IRankingDiscipline, IOrganisationForSearch, PublicOrganisationForSearchClient, IOrganisationCard, OrganisationCardClient, ICopilotProgramme, ICopilotCountry, CopilotProgrammeClient, CopilotCountryClient, ICopilotRankingCard, IReviewRating };
88
88
  export * from './src/clients/index.js';
89
89
  export * from './protobuf/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "10.3.0",
3
+ "version": "10.4.0",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -179,4 +179,16 @@ export interface IOrganisationSearchDocument {
179
179
  * @return Record<string, number> | null
180
180
  */
181
181
  getRankedPositionByDiscipline(): Record<string, number> | null;
182
+ /**
183
+ * Gets the reviews of the organisation: average rating (null without reviews), number of reviews
184
+ * and GSSA scores per category of the latest GSSA edition (null when not available)
185
+ *
186
+ * @return IOrganisationSearchDocumentReviews
187
+ */
188
+ getReviews(): IOrganisationSearchDocumentReviews;
189
+ }
190
+ export interface IOrganisationSearchDocumentReviews {
191
+ average: number | null;
192
+ quantity: number;
193
+ gssaScores: Record<string, number | null> | null;
182
194
  }
@@ -1,17 +0,0 @@
1
- import { RichText } from "./RichText.js";
2
- export interface Credits {
3
- ects: number;
4
- canShowEcts: boolean;
5
- schCredits: number;
6
- canShowSchCredits: boolean;
7
- alternativeCredits: number;
8
- canShowAlternativeCredits: boolean;
9
- description: RichText | undefined;
10
- canShowDescription: boolean;
11
- }
12
- export declare const Credits: MessageFns<Credits>;
13
- interface MessageFns<T> {
14
- fromJSON(object: any): T;
15
- toJSON(message: T): unknown;
16
- }
17
- export {};
@@ -1,54 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: Credits.proto
6
- /* eslint-disable */
7
- import { RichText } from "./RichText.js";
8
- export const Credits = {
9
- fromJSON(object) {
10
- return {
11
- ects: isSet(object.ects) ? globalThis.Number(object.ects) : 0,
12
- canShowEcts: isSet(object.canShowEcts) ? globalThis.Boolean(object.canShowEcts) : false,
13
- schCredits: isSet(object.schCredits) ? globalThis.Number(object.schCredits) : 0,
14
- canShowSchCredits: isSet(object.canShowSchCredits) ? globalThis.Boolean(object.canShowSchCredits) : false,
15
- alternativeCredits: isSet(object.alternativeCredits) ? globalThis.Number(object.alternativeCredits) : 0,
16
- canShowAlternativeCredits: isSet(object.canShowAlternativeCredits)
17
- ? globalThis.Boolean(object.canShowAlternativeCredits)
18
- : false,
19
- description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
20
- canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
21
- };
22
- },
23
- toJSON(message) {
24
- const obj = {};
25
- if (message.ects !== 0) {
26
- obj.ects = Math.round(message.ects);
27
- }
28
- if (message.canShowEcts !== false) {
29
- obj.canShowEcts = message.canShowEcts;
30
- }
31
- if (message.schCredits !== 0) {
32
- obj.schCredits = Math.round(message.schCredits);
33
- }
34
- if (message.canShowSchCredits !== false) {
35
- obj.canShowSchCredits = message.canShowSchCredits;
36
- }
37
- if (message.alternativeCredits !== 0) {
38
- obj.alternativeCredits = Math.round(message.alternativeCredits);
39
- }
40
- if (message.canShowAlternativeCredits !== false) {
41
- obj.canShowAlternativeCredits = message.canShowAlternativeCredits;
42
- }
43
- if (message.description !== undefined) {
44
- obj.description = RichText.toJSON(message.description);
45
- }
46
- if (message.canShowDescription !== false) {
47
- obj.canShowDescription = message.canShowDescription;
48
- }
49
- return obj;
50
- },
51
- };
52
- function isSet(value) {
53
- return value !== null && value !== undefined;
54
- }
@@ -1,16 +0,0 @@
1
- import { Link } from "./Link.js";
2
- import { RichText } from "./RichText.js";
3
- export interface DisciplineDescription {
4
- name: string;
5
- description: RichText | undefined;
6
- searchLink: Link | undefined;
7
- pilsLink: Link | undefined;
8
- sblpLink: Link | undefined;
9
- onlineSBLPLink: Link | undefined;
10
- }
11
- export declare const DisciplineDescription: MessageFns<DisciplineDescription>;
12
- interface MessageFns<T> {
13
- fromJSON(object: any): T;
14
- toJSON(message: T): unknown;
15
- }
16
- export {};
@@ -1,45 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: DisciplineDescription.proto
6
- /* eslint-disable */
7
- import { Link } from "./Link.js";
8
- import { RichText } from "./RichText.js";
9
- export const DisciplineDescription = {
10
- fromJSON(object) {
11
- return {
12
- name: isSet(object.name) ? globalThis.String(object.name) : "",
13
- description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
14
- searchLink: isSet(object.searchLink) ? Link.fromJSON(object.searchLink) : undefined,
15
- pilsLink: isSet(object.pilsLink) ? Link.fromJSON(object.pilsLink) : undefined,
16
- sblpLink: isSet(object.sblpLink) ? Link.fromJSON(object.sblpLink) : undefined,
17
- onlineSBLPLink: isSet(object.onlineSBLPLink) ? Link.fromJSON(object.onlineSBLPLink) : undefined,
18
- };
19
- },
20
- toJSON(message) {
21
- const obj = {};
22
- if (message.name !== "") {
23
- obj.name = message.name;
24
- }
25
- if (message.description !== undefined) {
26
- obj.description = RichText.toJSON(message.description);
27
- }
28
- if (message.searchLink !== undefined) {
29
- obj.searchLink = Link.toJSON(message.searchLink);
30
- }
31
- if (message.pilsLink !== undefined) {
32
- obj.pilsLink = Link.toJSON(message.pilsLink);
33
- }
34
- if (message.sblpLink !== undefined) {
35
- obj.sblpLink = Link.toJSON(message.sblpLink);
36
- }
37
- if (message.onlineSBLPLink !== undefined) {
38
- obj.onlineSBLPLink = Link.toJSON(message.onlineSBLPLink);
39
- }
40
- return obj;
41
- },
42
- };
43
- function isSet(value) {
44
- return value !== null && value !== undefined;
45
- }
@@ -1,17 +0,0 @@
1
- export interface DisciplineEssentialInformation {
2
- id: number;
3
- name: string;
4
- icon: string;
5
- promo: string;
6
- canShowPromo: boolean;
7
- parentName: string;
8
- canShowParentName: boolean;
9
- isNameOfDegree: boolean;
10
- programmeCount: number;
11
- }
12
- export declare const DisciplineEssentialInformation: MessageFns<DisciplineEssentialInformation>;
13
- interface MessageFns<T> {
14
- fromJSON(object: any): T;
15
- toJSON(message: T): unknown;
16
- }
17
- export {};
@@ -1,54 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: DisciplineEssentialInformation.proto
6
- export const DisciplineEssentialInformation = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
- name: isSet(object.name) ? globalThis.String(object.name) : "",
11
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
12
- promo: isSet(object.promo) ? globalThis.String(object.promo) : "",
13
- canShowPromo: isSet(object.canShowPromo) ? globalThis.Boolean(object.canShowPromo) : false,
14
- parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : "",
15
- canShowParentName: isSet(object.canShowParentName) ? globalThis.Boolean(object.canShowParentName) : false,
16
- isNameOfDegree: isSet(object.isNameOfDegree) ? globalThis.Boolean(object.isNameOfDegree) : false,
17
- programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : 0,
18
- };
19
- },
20
- toJSON(message) {
21
- const obj = {};
22
- if (message.id !== 0) {
23
- obj.id = Math.round(message.id);
24
- }
25
- if (message.name !== "") {
26
- obj.name = message.name;
27
- }
28
- if (message.icon !== "") {
29
- obj.icon = message.icon;
30
- }
31
- if (message.promo !== "") {
32
- obj.promo = message.promo;
33
- }
34
- if (message.canShowPromo !== false) {
35
- obj.canShowPromo = message.canShowPromo;
36
- }
37
- if (message.parentName !== "") {
38
- obj.parentName = message.parentName;
39
- }
40
- if (message.canShowParentName !== false) {
41
- obj.canShowParentName = message.canShowParentName;
42
- }
43
- if (message.isNameOfDegree !== false) {
44
- obj.isNameOfDegree = message.isNameOfDegree;
45
- }
46
- if (message.programmeCount !== 0) {
47
- obj.programmeCount = Math.round(message.programmeCount);
48
- }
49
- return obj;
50
- },
51
- };
52
- function isSet(value) {
53
- return value !== null && value !== undefined;
54
- }
@@ -1,16 +0,0 @@
1
- export interface Language {
2
- name: string;
3
- }
4
- export interface Languages {
5
- taughtInLanguages: Language[];
6
- canShowTaughtInLanguages: boolean;
7
- partiallyTaughtInLanguages: Language[];
8
- canShowPartiallyTaughtInLanguages: boolean;
9
- }
10
- export declare const Language: MessageFns<Language>;
11
- export declare const Languages: MessageFns<Languages>;
12
- interface MessageFns<T> {
13
- fromJSON(object: any): T;
14
- toJSON(message: T): unknown;
15
- }
16
- export {};
@@ -1,54 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: Language.proto
6
- export const Language = {
7
- fromJSON(object) {
8
- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
9
- },
10
- toJSON(message) {
11
- const obj = {};
12
- if (message.name !== "") {
13
- obj.name = message.name;
14
- }
15
- return obj;
16
- },
17
- };
18
- export const Languages = {
19
- fromJSON(object) {
20
- return {
21
- taughtInLanguages: globalThis.Array.isArray(object?.taughtInLanguages)
22
- ? object.taughtInLanguages.map((e) => Language.fromJSON(e))
23
- : [],
24
- canShowTaughtInLanguages: isSet(object.canShowTaughtInLanguages)
25
- ? globalThis.Boolean(object.canShowTaughtInLanguages)
26
- : false,
27
- partiallyTaughtInLanguages: globalThis.Array.isArray(object?.partiallyTaughtInLanguages)
28
- ? object.partiallyTaughtInLanguages.map((e) => Language.fromJSON(e))
29
- : [],
30
- canShowPartiallyTaughtInLanguages: isSet(object.canShowPartiallyTaughtInLanguages)
31
- ? globalThis.Boolean(object.canShowPartiallyTaughtInLanguages)
32
- : false,
33
- };
34
- },
35
- toJSON(message) {
36
- const obj = {};
37
- if (message.taughtInLanguages?.length) {
38
- obj.taughtInLanguages = message.taughtInLanguages.map((e) => Language.toJSON(e));
39
- }
40
- if (message.canShowTaughtInLanguages !== false) {
41
- obj.canShowTaughtInLanguages = message.canShowTaughtInLanguages;
42
- }
43
- if (message.partiallyTaughtInLanguages?.length) {
44
- obj.partiallyTaughtInLanguages = message.partiallyTaughtInLanguages.map((e) => Language.toJSON(e));
45
- }
46
- if (message.canShowPartiallyTaughtInLanguages !== false) {
47
- obj.canShowPartiallyTaughtInLanguages = message.canShowPartiallyTaughtInLanguages;
48
- }
49
- return obj;
50
- },
51
- };
52
- function isSet(value) {
53
- return value !== null && value !== undefined;
54
- }
@@ -1,13 +0,0 @@
1
- export interface OrganisationReview {
2
- ratingAverage: number;
3
- ratingQuantity: number;
4
- canShowRatingQuantity: boolean;
5
- canShowReviews: boolean;
6
- canShowRatingAverage: boolean;
7
- }
8
- export declare const OrganisationReview: MessageFns<OrganisationReview>;
9
- interface MessageFns<T> {
10
- fromJSON(object: any): T;
11
- toJSON(message: T): unknown;
12
- }
13
- export {};
@@ -1,42 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: OrganisationReview.proto
6
- export const OrganisationReview = {
7
- fromJSON(object) {
8
- return {
9
- ratingAverage: isSet(object.ratingAverage) ? globalThis.Number(object.ratingAverage) : 0,
10
- ratingQuantity: isSet(object.ratingQuantity) ? globalThis.Number(object.ratingQuantity) : 0,
11
- canShowRatingQuantity: isSet(object.canShowRatingQuantity)
12
- ? globalThis.Boolean(object.canShowRatingQuantity)
13
- : false,
14
- canShowReviews: isSet(object.canShowReviews) ? globalThis.Boolean(object.canShowReviews) : false,
15
- canShowRatingAverage: isSet(object.canShowRatingAverage)
16
- ? globalThis.Boolean(object.canShowRatingAverage)
17
- : false,
18
- };
19
- },
20
- toJSON(message) {
21
- const obj = {};
22
- if (message.ratingAverage !== 0) {
23
- obj.ratingAverage = message.ratingAverage;
24
- }
25
- if (message.ratingQuantity !== 0) {
26
- obj.ratingQuantity = Math.round(message.ratingQuantity);
27
- }
28
- if (message.canShowRatingQuantity !== false) {
29
- obj.canShowRatingQuantity = message.canShowRatingQuantity;
30
- }
31
- if (message.canShowReviews !== false) {
32
- obj.canShowReviews = message.canShowReviews;
33
- }
34
- if (message.canShowRatingAverage !== false) {
35
- obj.canShowRatingAverage = message.canShowRatingAverage;
36
- }
37
- return obj;
38
- },
39
- };
40
- function isSet(value) {
41
- return value !== null && value !== undefined;
42
- }
@@ -1,15 +0,0 @@
1
- import { RichText } from "../RichText.js";
2
- import { TestCard } from "./TestCard.js";
3
- export interface AcademicRequirements {
4
- gmatCard?: TestCard | undefined;
5
- gpaCard?: TestCard | undefined;
6
- greCard?: TestCard | undefined;
7
- conditions?: RichText | undefined;
8
- canShowConditions: boolean;
9
- }
10
- export declare const AcademicRequirements: MessageFns<AcademicRequirements>;
11
- interface MessageFns<T> {
12
- fromJSON(object: any): T;
13
- toJSON(message: T): unknown;
14
- }
15
- export {};
@@ -1,41 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: Programme/AcademicRequirements.proto
6
- /* eslint-disable */
7
- import { RichText } from "../RichText.js";
8
- import { TestCard } from "./TestCard.js";
9
- export const AcademicRequirements = {
10
- fromJSON(object) {
11
- return {
12
- gmatCard: isSet(object.gmatCard) ? TestCard.fromJSON(object.gmatCard) : undefined,
13
- gpaCard: isSet(object.gpaCard) ? TestCard.fromJSON(object.gpaCard) : undefined,
14
- greCard: isSet(object.greCard) ? TestCard.fromJSON(object.greCard) : undefined,
15
- conditions: isSet(object.conditions) ? RichText.fromJSON(object.conditions) : undefined,
16
- canShowConditions: isSet(object.canShowConditions) ? globalThis.Boolean(object.canShowConditions) : false,
17
- };
18
- },
19
- toJSON(message) {
20
- const obj = {};
21
- if (message.gmatCard !== undefined) {
22
- obj.gmatCard = TestCard.toJSON(message.gmatCard);
23
- }
24
- if (message.gpaCard !== undefined) {
25
- obj.gpaCard = TestCard.toJSON(message.gpaCard);
26
- }
27
- if (message.greCard !== undefined) {
28
- obj.greCard = TestCard.toJSON(message.greCard);
29
- }
30
- if (message.conditions !== undefined) {
31
- obj.conditions = RichText.toJSON(message.conditions);
32
- }
33
- if (message.canShowConditions !== false) {
34
- obj.canShowConditions = message.canShowConditions;
35
- }
36
- return obj;
37
- },
38
- };
39
- function isSet(value) {
40
- return value !== null && value !== undefined;
41
- }
@@ -1,11 +0,0 @@
1
- export interface BannerTargeting {
2
- countryIds: number[];
3
- disciplineIds: number[];
4
- levels: string[];
5
- }
6
- export declare const BannerTargeting: MessageFns<BannerTargeting>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,31 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: Programme/BannerTargeting.proto
6
- export const BannerTargeting = {
7
- fromJSON(object) {
8
- return {
9
- countryIds: globalThis.Array.isArray(object?.countryIds)
10
- ? object.countryIds.map((e) => globalThis.Number(e))
11
- : [],
12
- disciplineIds: globalThis.Array.isArray(object?.disciplineIds)
13
- ? object.disciplineIds.map((e) => globalThis.Number(e))
14
- : [],
15
- levels: globalThis.Array.isArray(object?.levels) ? object.levels.map((e) => globalThis.String(e)) : [],
16
- };
17
- },
18
- toJSON(message) {
19
- const obj = {};
20
- if (message.countryIds?.length) {
21
- obj.countryIds = message.countryIds.map((e) => Math.round(e));
22
- }
23
- if (message.disciplineIds?.length) {
24
- obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
25
- }
26
- if (message.levels?.length) {
27
- obj.levels = message.levels;
28
- }
29
- return obj;
30
- },
31
- };
@@ -1,21 +0,0 @@
1
- import { Duration } from "../google/protobuf/duration.js";
2
- export interface CourseLocation {
3
- id: string;
4
- name: string;
5
- address: string;
6
- }
7
- export interface CourseInstance {
8
- id: string;
9
- name: string;
10
- startDate?: Date | undefined;
11
- duration?: Duration | undefined;
12
- canShowDuration: boolean;
13
- location?: CourseLocation | undefined;
14
- }
15
- export declare const CourseLocation: MessageFns<CourseLocation>;
16
- export declare const CourseInstance: MessageFns<CourseInstance>;
17
- interface MessageFns<T> {
18
- fromJSON(object: any): T;
19
- toJSON(message: T): unknown;
20
- }
21
- export {};
@@ -1,83 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.2
5
- // source: Programme/CourseInstance.proto
6
- /* eslint-disable */
7
- import { Duration } from "../google/protobuf/duration.js";
8
- import { Timestamp } from "../google/protobuf/timestamp.js";
9
- export const CourseLocation = {
10
- fromJSON(object) {
11
- return {
12
- id: isSet(object.id) ? globalThis.String(object.id) : "",
13
- name: isSet(object.name) ? globalThis.String(object.name) : "",
14
- address: isSet(object.address) ? globalThis.String(object.address) : "",
15
- };
16
- },
17
- toJSON(message) {
18
- const obj = {};
19
- if (message.id !== "") {
20
- obj.id = message.id;
21
- }
22
- if (message.name !== "") {
23
- obj.name = message.name;
24
- }
25
- if (message.address !== "") {
26
- obj.address = message.address;
27
- }
28
- return obj;
29
- },
30
- };
31
- export const CourseInstance = {
32
- fromJSON(object) {
33
- return {
34
- id: isSet(object.id) ? globalThis.String(object.id) : "",
35
- name: isSet(object.name) ? globalThis.String(object.name) : "",
36
- startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined,
37
- duration: isSet(object.duration) ? Duration.fromJSON(object.duration) : undefined,
38
- canShowDuration: isSet(object.canShowDuration) ? globalThis.Boolean(object.canShowDuration) : false,
39
- location: isSet(object.location) ? CourseLocation.fromJSON(object.location) : undefined,
40
- };
41
- },
42
- toJSON(message) {
43
- const obj = {};
44
- if (message.id !== "") {
45
- obj.id = message.id;
46
- }
47
- if (message.name !== "") {
48
- obj.name = message.name;
49
- }
50
- if (message.startDate !== undefined) {
51
- obj.startDate = message.startDate.toISOString();
52
- }
53
- if (message.duration !== undefined) {
54
- obj.duration = Duration.toJSON(message.duration);
55
- }
56
- if (message.canShowDuration !== false) {
57
- obj.canShowDuration = message.canShowDuration;
58
- }
59
- if (message.location !== undefined) {
60
- obj.location = CourseLocation.toJSON(message.location);
61
- }
62
- return obj;
63
- },
64
- };
65
- function fromTimestamp(t) {
66
- let millis = (t.seconds || 0) * 1_000;
67
- millis += (t.nanos || 0) / 1_000_000;
68
- return new globalThis.Date(millis);
69
- }
70
- function fromJsonTimestamp(o) {
71
- if (o instanceof globalThis.Date) {
72
- return o;
73
- }
74
- else if (typeof o === "string") {
75
- return new globalThis.Date(o);
76
- }
77
- else {
78
- return fromTimestamp(Timestamp.fromJSON(o));
79
- }
80
- }
81
- function isSet(value) {
82
- return value !== null && value !== undefined;
83
- }
@@ -1,19 +0,0 @@
1
- export interface DeliveryMethod {
2
- isOnline: boolean;
3
- isBlended: boolean;
4
- isOnCampus: boolean;
5
- canShowTimeFlexibility: boolean;
6
- timeFlexibility: string[];
7
- canShowTeacherSupport: boolean;
8
- teacherSupport: string[];
9
- canShowStudentInteractions: boolean;
10
- studentInteractions: string[];
11
- canShowAttendances: boolean;
12
- attendances: string[];
13
- }
14
- export declare const DeliveryMethod: MessageFns<DeliveryMethod>;
15
- interface MessageFns<T> {
16
- fromJSON(object: any): T;
17
- toJSON(message: T): unknown;
18
- }
19
- export {};