@studyportals/domain-client 7.0.1-beta.5 → 7.1.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/index.d.ts +90 -0
- package/index.js +81 -34
- package/package.json +66 -55
- package/protobuf/Area.d.ts +11 -0
- package/protobuf/Area.js +33 -0
- package/protobuf/Article.d.ts +60 -0
- package/protobuf/Article.js +229 -0
- package/protobuf/Body.d.ts +11 -0
- package/protobuf/Body.js +33 -0
- package/protobuf/CampaignInformation.d.ts +11 -0
- package/protobuf/CampaignInformation.js +33 -0
- package/protobuf/ClickTracking.d.ts +11 -0
- package/protobuf/ClickTracking.js +33 -0
- package/protobuf/CommercialEntity.d.ts +14 -0
- package/protobuf/CommercialEntity.js +51 -0
- package/protobuf/Cover.d.ts +10 -0
- package/protobuf/Cover.js +29 -0
- package/protobuf/Deadline.d.ts +11 -0
- package/protobuf/Deadline.js +33 -0
- package/protobuf/Degree.d.ts +16 -0
- package/protobuf/Degree.js +53 -0
- package/protobuf/Description.d.ts +16 -0
- package/protobuf/Description.js +48 -0
- package/protobuf/Discipline.d.ts +26 -0
- package/protobuf/Discipline.js +87 -0
- package/protobuf/Duration.d.ts +11 -0
- package/protobuf/Duration.js +33 -0
- package/protobuf/EnglishRequirement.d.ts +11 -0
- package/protobuf/EnglishRequirement.js +33 -0
- package/protobuf/EssentialInformation.d.ts +17 -0
- package/protobuf/EssentialInformation.js +57 -0
- package/protobuf/File.d.ts +22 -0
- package/protobuf/File.js +77 -0
- package/protobuf/GPARequirement.d.ts +11 -0
- package/protobuf/GPARequirement.js +33 -0
- package/protobuf/InternalLink.d.ts +12 -0
- package/protobuf/InternalLink.js +33 -0
- package/protobuf/Link.d.ts +11 -0
- package/protobuf/Link.js +33 -0
- package/protobuf/LivingCost.d.ts +11 -0
- package/protobuf/LivingCost.js +33 -0
- package/protobuf/Location.d.ts +18 -0
- package/protobuf/Location.js +59 -0
- package/protobuf/Logo.d.ts +10 -0
- package/protobuf/Logo.js +29 -0
- package/protobuf/MiniProgrammeCard.d.ts +18 -0
- package/protobuf/MiniProgrammeCard.js +53 -0
- package/protobuf/OptionalLink.d.ts +12 -0
- package/protobuf/OptionalLink.js +37 -0
- package/protobuf/Organisation.d.ts +211 -0
- package/protobuf/Organisation.js +856 -0
- package/protobuf/OrganisationInformation.d.ts +9 -0
- package/protobuf/OrganisationInformation.js +23 -0
- package/protobuf/OrganisationRanking.d.ts +15 -0
- package/protobuf/OrganisationRanking.js +44 -0
- package/protobuf/Person.d.ts +14 -0
- package/protobuf/Person.js +43 -0
- package/protobuf/ProgrammeCard.d.ts +60 -0
- package/protobuf/ProgrammeCard.js +200 -0
- package/protobuf/ProgrammeGrid.d.ts +14 -0
- package/protobuf/ProgrammeGrid.js +40 -0
- package/protobuf/Ranking.d.ts +22 -0
- package/protobuf/Ranking.js +79 -0
- package/protobuf/RankingInstitute.d.ts +15 -0
- package/protobuf/RankingInstitute.js +47 -0
- package/protobuf/Review.d.ts +17 -0
- package/protobuf/Review.js +55 -0
- package/protobuf/ReviewRating.d.ts +12 -0
- package/protobuf/ReviewRating.js +37 -0
- package/protobuf/RichText.d.ts +10 -0
- package/protobuf/RichText.js +31 -0
- package/protobuf/SocialLink.d.ts +21 -0
- package/protobuf/SocialLink.js +73 -0
- package/protobuf/StartDate.d.ts +13 -0
- package/protobuf/StartDate.js +41 -0
- package/protobuf/Timing.d.ts +17 -0
- package/protobuf/Timing.js +52 -0
- package/protobuf/Topic.d.ts +10 -0
- package/protobuf/Topic.js +29 -0
- package/protobuf/TrackedLink.d.ts +13 -0
- package/protobuf/TrackedLink.js +39 -0
- package/protobuf/Tracking.d.ts +18 -0
- package/protobuf/Tracking.js +61 -0
- package/protobuf/TuitionFee.d.ts +13 -0
- package/protobuf/TuitionFee.js +41 -0
- package/protobuf/Unibuddy.d.ts +10 -0
- package/protobuf/Unibuddy.js +29 -0
- package/protobuf/index.d.ts +45 -0
- package/protobuf/index.js +61 -0
- package/src/clients/article-detail-page-client.d.ts +8 -0
- package/src/clients/article-detail-page-client.js +20 -0
- package/src/clients/index.d.ts +7 -0
- package/src/clients/index.js +23 -0
- package/src/clients/organisation-page-client.d.ts +8 -0
- package/src/clients/organisation-page-client.js +20 -0
- package/src/clients/protobuf-client.d.ts +14 -0
- package/src/clients/protobuf-client.js +30 -0
- package/src/clients/public-mini-programme-card-client.d.ts +8 -0
- package/src/clients/public-mini-programme-card-client.js +20 -0
- package/src/domain-client.d.ts +14 -0
- package/src/domain-client.js +95 -0
- package/src/exceptions/bad-request-exception.d.ts +2 -0
- package/src/exceptions/bad-request-exception.js +6 -0
- package/src/exceptions/client-exception.d.ts +2 -0
- package/src/exceptions/client-exception.js +6 -0
- package/src/exceptions/internal-server-exception.d.ts +2 -0
- package/src/exceptions/internal-server-exception.js +6 -0
- package/src/exceptions/not-found-exception.d.ts +2 -0
- package/src/exceptions/not-found-exception.js +6 -0
- package/src/exceptions/property-not-available-exception.d.ts +2 -0
- package/src/exceptions/property-not-available-exception.js +6 -0
- package/src/factories/DateFactory.d.ts +5 -0
- package/src/factories/DateFactory.js +9 -0
- package/src/factories/InternalLinkFactory.d.ts +9 -0
- package/src/factories/InternalLinkFactory.js +26 -0
- package/src/i-api-response.d.ts +6 -0
- package/src/i-api-response.js +2 -0
- package/src/i-class-factory.d.ts +4 -0
- package/src/i-class-factory.js +2 -0
- package/src/i-model-description.d.ts +7 -0
- package/src/i-model-description.js +8 -0
- package/src/model-client.d.ts +16 -0
- package/src/model-client.js +47 -0
- package/src/model-factory.d.ts +11 -0
- package/src/model-factory.js +72 -0
- package/src/models/bestfit-programme/bestfit-programme-client.d.ts +7 -0
- package/src/models/bestfit-programme/bestfit-programme-client.js +16 -0
- package/src/models/bestfit-programme/i-best-fit-programme.d.ts +82 -0
- package/src/models/bestfit-programme/i-best-fit-programme.js +2 -0
- package/src/models/bestfit-programme/i-city.d.ts +14 -0
- package/src/models/bestfit-programme/i-city.js +2 -0
- package/src/models/bestfit-programme/i-living-cost.d.ts +20 -0
- package/src/models/bestfit-programme/i-living-cost.js +2 -0
- package/src/models/city-search-document/city-search-document-client.d.ts +7 -0
- package/src/models/city-search-document/city-search-document-client.js +16 -0
- package/src/models/city-search-document/i-city-search-document.d.ts +7 -0
- package/src/models/city-search-document/i-city-search-document.js +2 -0
- package/src/models/common/i-city.d.ts +14 -0
- package/src/models/common/i-city.js +2 -0
- package/src/models/common/i-country.d.ts +20 -0
- package/src/models/common/i-country.js +2 -0
- package/src/models/common/i-english-requirements.d.ts +51 -0
- package/src/models/common/i-english-requirements.js +2 -0
- package/src/models/common/i-g-p-a-requirement.d.ts +20 -0
- package/src/models/common/i-g-p-a-requirement.js +2 -0
- package/src/models/common/i-internal-link.d.ts +28 -0
- package/src/models/common/i-internal-link.js +2 -0
- package/src/models/common/i-logo.d.ts +14 -0
- package/src/models/common/i-logo.js +2 -0
- package/src/models/common/i-review-rating.d.ts +26 -0
- package/src/models/common/i-review-rating.js +2 -0
- package/src/models/common/i-tuition-fee.d.ts +50 -0
- package/src/models/common/i-tuition-fee.js +2 -0
- package/src/models/copilot-country/copilot-country-client.d.ts +7 -0
- package/src/models/copilot-country/copilot-country-client.js +16 -0
- package/src/models/copilot-country/i-copilot-country.d.ts +39 -0
- package/src/models/copilot-country/i-copilot-country.js +2 -0
- package/src/models/copilot-country/i-copilot-ranking-card.d.ts +38 -0
- package/src/models/copilot-country/i-copilot-ranking-card.js +2 -0
- package/src/models/copilot-programme/copilot-programme-client.d.ts +7 -0
- package/src/models/copilot-programme/copilot-programme-client.js +16 -0
- package/src/models/copilot-programme/i-copilot-programme.d.ts +125 -0
- package/src/models/copilot-programme/i-copilot-programme.js +2 -0
- package/src/models/customerio-organisation/customerio-organisation-client.d.ts +7 -0
- package/src/models/customerio-organisation/customerio-organisation-client.js +16 -0
- package/src/models/customerio-organisation/i-customer-io-organisation.d.ts +35 -0
- package/src/models/customerio-organisation/i-customer-io-organisation.js +2 -0
- package/src/models/customerio-organisation/i-review.d.ts +7 -0
- package/src/models/customerio-organisation/i-review.js +2 -0
- package/src/models/customerio-programme/customerio-programme-client.d.ts +7 -0
- package/src/models/customerio-programme/customerio-programme-client.js +16 -0
- package/src/models/customerio-programme/i-customer-io-programme.d.ts +107 -0
- package/src/models/customerio-programme/i-customer-io-programme.js +2 -0
- package/src/models/customerio-programme/i-internal-link.d.ts +28 -0
- package/src/models/customerio-programme/i-internal-link.js +2 -0
- package/src/models/faq-static-content/i-faq-static-content.d.ts +10 -0
- package/src/models/faq-static-content/i-faq-static-content.js +2 -0
- package/src/models/faq-static-content/i-faq.d.ts +4 -0
- package/src/models/faq-static-content/i-faq.js +2 -0
- package/src/models/faq-static-content/i-static-content-url.d.ts +4 -0
- package/src/models/faq-static-content/i-static-content-url.js +2 -0
- package/src/models/faq-static-content/i-static-content.d.ts +5 -0
- package/src/models/faq-static-content/i-static-content.js +2 -0
- package/src/models/faq-static-content/public-faq-static-content-client.d.ts +7 -0
- package/src/models/faq-static-content/public-faq-static-content-client.js +16 -0
- package/src/models/organisation-card/i-organisation-card.d.ts +39 -0
- package/src/models/organisation-card/i-organisation-card.js +2 -0
- package/src/models/organisation-card/i-ranking-discipline.d.ts +4 -0
- package/src/models/organisation-card/i-ranking-discipline.js +2 -0
- package/src/models/organisation-card/organisation-card-client.d.ts +7 -0
- package/src/models/organisation-card/organisation-card-client.js +16 -0
- package/src/models/organisation-for-search/i-organisation-for-search.d.ts +32 -0
- package/src/models/organisation-for-search/i-organisation-for-search.js +2 -0
- package/src/models/organisation-for-search/public-organisation-for-search-client.d.ts +7 -0
- package/src/models/organisation-for-search/public-organisation-for-search-client.js +16 -0
- package/src/models/organisation-search-document/i-organisation-search-document.d.ts +158 -0
- package/src/models/organisation-search-document/i-organisation-search-document.js +2 -0
- package/src/models/organisation-search-document/organisation-search-document-client.d.ts +7 -0
- package/src/models/organisation-search-document/organisation-search-document-client.js +16 -0
- package/src/models/programme-card/i-click-tracking-data.d.ts +5 -0
- package/src/models/programme-card/i-click-tracking-data.js +2 -0
- package/src/models/programme-card/i-cover.d.ts +14 -0
- package/src/models/programme-card/i-cover.js +2 -0
- package/src/models/programme-card/i-deadline.d.ts +20 -0
- package/src/models/programme-card/i-deadline.js +2 -0
- package/src/models/programme-card/i-duration.d.ts +40 -0
- package/src/models/programme-card/i-duration.js +2 -0
- package/src/models/programme-card/i-internal-link.d.ts +28 -0
- package/src/models/programme-card/i-internal-link.js +2 -0
- package/src/models/programme-card/i-link.d.ts +22 -0
- package/src/models/programme-card/i-link.js +2 -0
- package/src/models/programme-card/i-location.d.ts +12 -0
- package/src/models/programme-card/i-location.js +2 -0
- package/src/models/programme-card/i-logo.d.ts +14 -0
- package/src/models/programme-card/i-logo.js +2 -0
- package/src/models/programme-card/i-optional-link.d.ts +23 -0
- package/src/models/programme-card/i-optional-link.js +2 -0
- package/src/models/programme-card/i-programme-card.d.ts +212 -0
- package/src/models/programme-card/i-programme-card.js +2 -0
- package/src/models/programme-card/i-start-date.d.ts +33 -0
- package/src/models/programme-card/i-start-date.js +2 -0
- package/src/models/programme-card/i-timing.d.ts +45 -0
- package/src/models/programme-card/i-timing.js +2 -0
- package/src/models/programme-card/i-tracked-link.d.ts +29 -0
- package/src/models/programme-card/i-tracked-link.js +2 -0
- package/src/models/programme-card/i-tracking.d.ts +46 -0
- package/src/models/programme-card/i-tracking.js +2 -0
- package/src/models/programme-card/i-tuition-fee.d.ts +50 -0
- package/src/models/programme-card/i-tuition-fee.js +2 -0
- package/src/models/programme-card/programme-card-client.d.ts +7 -0
- package/src/models/programme-card/programme-card-client.js +16 -0
- package/src/models/ranking-cards/i-ranking.d.ts +18 -0
- package/src/models/ranking-cards/i-ranking.js +2 -0
- package/src/models/scholarship-card/i-scholarship-card-v2.d.ts +20 -0
- package/src/models/scholarship-card/i-scholarship-card-v2.js +2 -0
- package/src/models/scholarship-card/i-scholarship-card.d.ts +15 -0
- package/src/models/scholarship-card/i-scholarship-card.js +2 -0
- package/src/models/scholarship-card/public-scholarship-card-client.d.ts +7 -0
- package/src/models/scholarship-card/public-scholarship-card-client.js +16 -0
- package/src/models/scholarship-card/scholarship-card-v2-client.d.ts +7 -0
- package/src/models/scholarship-card/scholarship-card-v2-client.js +16 -0
- package/src/models/scholarship-search-document/i-scholarship-search-document.d.ts +38 -0
- package/src/models/scholarship-search-document/i-scholarship-search-document.js +2 -0
- package/src/models/scholarship-search-document/scholarship-search-document-client.d.ts +7 -0
- package/src/models/scholarship-search-document/scholarship-search-document-client.js +16 -0
- package/src/models/search-discipline/i-search-discipline.d.ts +26 -0
- package/src/models/search-discipline/i-search-discipline.js +2 -0
- package/src/models/search-discipline/public-search-discipline-client.d.ts +7 -0
- package/src/models/search-discipline/public-search-discipline-client.js +16 -0
- package/src/models/search-projection/i-geo-targeting-configuration.d.ts +38 -0
- package/src/models/search-projection/i-geo-targeting-configuration.js +2 -0
- package/src/models/search-projection/i-geo-targeting-values.d.ts +30 -0
- package/src/models/search-projection/i-geo-targeting-values.js +2 -0
- package/src/models/search-projection/i-organisation-values.d.ts +46 -0
- package/src/models/search-projection/i-organisation-values.js +2 -0
- package/src/models/search-projection/i-premium-values.d.ts +35 -0
- package/src/models/search-projection/i-premium-values.js +2 -0
- package/src/models/search-projection/i-search-projection.d.ts +186 -0
- package/src/models/search-projection/i-search-projection.js +2 -0
- package/src/models/search-projection/i-tuition-values.d.ts +50 -0
- package/src/models/search-projection/i-tuition-values.js +2 -0
- package/src/models/search-projection/search-projection-client.d.ts +7 -0
- package/src/models/search-projection/search-projection-client.js +16 -0
- package/src/models/sitemap-articles-info/i-sitemap-article-info.d.ts +26 -0
- package/src/models/sitemap-articles-info/i-sitemap-article-info.js +2 -0
- package/src/models/sitemap-articles-info/sitemap-articles-info-client.d.ts +7 -0
- package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +16 -0
- package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +14 -0
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js +2 -0
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +7 -0
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +16 -0
- package/src/models/sitemap-countries-info/i-sitemap-country-info.d.ts +14 -0
- package/src/models/sitemap-countries-info/i-sitemap-country-info.js +2 -0
- package/src/models/sitemap-countries-info/sitemap-countries-info-client.d.ts +7 -0
- package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +16 -0
- package/src/models/sitemap-country-degree-info/i-degree-info.d.ts +14 -0
- package/src/models/sitemap-country-degree-info/i-degree-info.js +2 -0
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +11 -0
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +2 -0
- package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.d.ts +7 -0
- package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +16 -0
- package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.d.ts +14 -0
- package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +2 -0
- package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.d.ts +7 -0
- package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +16 -0
- package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.d.ts +26 -0
- package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +2 -0
- package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.d.ts +7 -0
- package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +16 -0
- package/src/models/sitemap-programme-info/i-sitemap-programme-info.d.ts +26 -0
- package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +2 -0
- package/src/models/sitemap-programme-info/sitemap-programme-info-client.d.ts +7 -0
- package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +16 -0
- package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.d.ts +14 -0
- package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +2 -0
- package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.d.ts +7 -0
- package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +16 -0
- package/src/types/portal-map.d.ts +2 -0
- package/src/types/portal-map.js +2 -0
- package/src/types/portal-type.d.ts +7 -0
- package/src/types/portal-type.js +11 -0
- package/src/types.d.ts +4 -0
- package/src/types.js +2 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: OrganisationInformation.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OrganisationInformation = void 0;
|
|
9
|
+
exports.OrganisationInformation = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
12
|
+
},
|
|
13
|
+
toJSON(message) {
|
|
14
|
+
const obj = {};
|
|
15
|
+
if (message.id !== 0) {
|
|
16
|
+
obj.id = Math.round(message.id);
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
function isSet(value) {
|
|
22
|
+
return value !== null && value !== undefined;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Body } from "./Body";
|
|
2
|
+
import { RankingInstitute } from "./RankingInstitute";
|
|
3
|
+
export interface OrganisationRanking {
|
|
4
|
+
id: number;
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
rank: number;
|
|
7
|
+
rankingInstitute: RankingInstitute | undefined;
|
|
8
|
+
rankingBody: Body | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const OrganisationRanking: MessageFns<OrganisationRanking>;
|
|
11
|
+
interface MessageFns<T> {
|
|
12
|
+
fromJSON(object: any): T;
|
|
13
|
+
toJSON(message: T): unknown;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: OrganisationRanking.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OrganisationRanking = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const Body_1 = require("./Body");
|
|
11
|
+
const RankingInstitute_1 = require("./RankingInstitute");
|
|
12
|
+
exports.OrganisationRanking = {
|
|
13
|
+
fromJSON(object) {
|
|
14
|
+
return {
|
|
15
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
16
|
+
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
17
|
+
rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
|
|
18
|
+
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute_1.RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
19
|
+
rankingBody: isSet(object.rankingBody) ? Body_1.Body.fromJSON(object.rankingBody) : undefined,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
toJSON(message) {
|
|
23
|
+
const obj = {};
|
|
24
|
+
if (message.id !== 0) {
|
|
25
|
+
obj.id = Math.round(message.id);
|
|
26
|
+
}
|
|
27
|
+
if (message.name !== undefined) {
|
|
28
|
+
obj.name = message.name;
|
|
29
|
+
}
|
|
30
|
+
if (message.rank !== 0) {
|
|
31
|
+
obj.rank = Math.round(message.rank);
|
|
32
|
+
}
|
|
33
|
+
if (message.rankingInstitute !== undefined) {
|
|
34
|
+
obj.rankingInstitute = RankingInstitute_1.RankingInstitute.toJSON(message.rankingInstitute);
|
|
35
|
+
}
|
|
36
|
+
if (message.rankingBody !== undefined) {
|
|
37
|
+
obj.rankingBody = Body_1.Body.toJSON(message.rankingBody);
|
|
38
|
+
}
|
|
39
|
+
return obj;
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
function isSet(value) {
|
|
43
|
+
return value !== null && value !== undefined;
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { File } from "./File";
|
|
2
|
+
export interface Person {
|
|
3
|
+
name?: string | undefined;
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
summary?: string | undefined;
|
|
6
|
+
logo: File | undefined;
|
|
7
|
+
job?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const Person: MessageFns<Person>;
|
|
10
|
+
interface MessageFns<T> {
|
|
11
|
+
fromJSON(object: any): T;
|
|
12
|
+
toJSON(message: T): unknown;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: Person.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Person = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const File_1 = require("./File");
|
|
11
|
+
exports.Person = {
|
|
12
|
+
fromJSON(object) {
|
|
13
|
+
return {
|
|
14
|
+
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
15
|
+
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
16
|
+
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
17
|
+
logo: isSet(object.logo) ? File_1.File.fromJSON(object.logo) : undefined,
|
|
18
|
+
job: isSet(object.job) ? globalThis.String(object.job) : undefined,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
toJSON(message) {
|
|
22
|
+
const obj = {};
|
|
23
|
+
if (message.name !== undefined) {
|
|
24
|
+
obj.name = message.name;
|
|
25
|
+
}
|
|
26
|
+
if (message.title !== undefined) {
|
|
27
|
+
obj.title = message.title;
|
|
28
|
+
}
|
|
29
|
+
if (message.summary !== undefined) {
|
|
30
|
+
obj.summary = message.summary;
|
|
31
|
+
}
|
|
32
|
+
if (message.logo !== undefined) {
|
|
33
|
+
obj.logo = File_1.File.toJSON(message.logo);
|
|
34
|
+
}
|
|
35
|
+
if (message.job !== undefined) {
|
|
36
|
+
obj.job = message.job;
|
|
37
|
+
}
|
|
38
|
+
return obj;
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
function isSet(value) {
|
|
42
|
+
return value !== null && value !== undefined;
|
|
43
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Cover } from "./Cover";
|
|
2
|
+
import { Duration } from "./Duration";
|
|
3
|
+
import { EnglishRequirement } from "./EnglishRequirement";
|
|
4
|
+
import { GPARequirement } from "./GPARequirement";
|
|
5
|
+
import { InternalLink } from "./InternalLink";
|
|
6
|
+
import { Link } from "./Link";
|
|
7
|
+
import { LivingCost } from "./LivingCost";
|
|
8
|
+
import { Location } from "./Location";
|
|
9
|
+
import { Logo } from "./Logo";
|
|
10
|
+
import { Country } from "./Organisation";
|
|
11
|
+
import { Timing } from "./Timing";
|
|
12
|
+
import { TrackedLink } from "./TrackedLink";
|
|
13
|
+
import { Tracking } from "./Tracking";
|
|
14
|
+
import { TuitionFee } from "./TuitionFee";
|
|
15
|
+
export interface ProgrammeCard {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
isPublic: boolean;
|
|
21
|
+
isFullyOnline: boolean;
|
|
22
|
+
isOnline: boolean;
|
|
23
|
+
isOnCampus: boolean;
|
|
24
|
+
isBlended: boolean;
|
|
25
|
+
isFullTime: boolean;
|
|
26
|
+
isPartTime: boolean;
|
|
27
|
+
level: string;
|
|
28
|
+
degree: string;
|
|
29
|
+
programmeLink: InternalLink | undefined;
|
|
30
|
+
summary: string;
|
|
31
|
+
logo: Logo | undefined;
|
|
32
|
+
cover: Cover | undefined;
|
|
33
|
+
universityLink: Link | undefined;
|
|
34
|
+
universityId: number;
|
|
35
|
+
location: Location | undefined;
|
|
36
|
+
locationText: string;
|
|
37
|
+
tracking: Tracking | undefined;
|
|
38
|
+
tuitionFees: TuitionFee[];
|
|
39
|
+
duration: Duration | undefined;
|
|
40
|
+
timings: Timing[];
|
|
41
|
+
referralLink: TrackedLink | undefined;
|
|
42
|
+
country: Country | undefined;
|
|
43
|
+
topLevelOrganisation: string[];
|
|
44
|
+
premiumType: string;
|
|
45
|
+
disciplineIds: number[];
|
|
46
|
+
englishRequirements: EnglishRequirement | undefined;
|
|
47
|
+
workExperienceYears: number;
|
|
48
|
+
gpa: GPARequirement | undefined;
|
|
49
|
+
livingCost: LivingCost | undefined;
|
|
50
|
+
ects: string;
|
|
51
|
+
campaignType: number;
|
|
52
|
+
lastUpdated: string;
|
|
53
|
+
commercialRange: string[];
|
|
54
|
+
}
|
|
55
|
+
export declare const ProgrammeCard: MessageFns<ProgrammeCard>;
|
|
56
|
+
interface MessageFns<T> {
|
|
57
|
+
fromJSON(object: any): T;
|
|
58
|
+
toJSON(message: T): unknown;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: ProgrammeCard.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProgrammeCard = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const Cover_1 = require("./Cover");
|
|
11
|
+
const Duration_1 = require("./Duration");
|
|
12
|
+
const EnglishRequirement_1 = require("./EnglishRequirement");
|
|
13
|
+
const GPARequirement_1 = require("./GPARequirement");
|
|
14
|
+
const InternalLink_1 = require("./InternalLink");
|
|
15
|
+
const Link_1 = require("./Link");
|
|
16
|
+
const LivingCost_1 = require("./LivingCost");
|
|
17
|
+
const Location_1 = require("./Location");
|
|
18
|
+
const Logo_1 = require("./Logo");
|
|
19
|
+
const Organisation_1 = require("./Organisation");
|
|
20
|
+
const Timing_1 = require("./Timing");
|
|
21
|
+
const TrackedLink_1 = require("./TrackedLink");
|
|
22
|
+
const Tracking_1 = require("./Tracking");
|
|
23
|
+
const TuitionFee_1 = require("./TuitionFee");
|
|
24
|
+
exports.ProgrammeCard = {
|
|
25
|
+
fromJSON(object) {
|
|
26
|
+
return {
|
|
27
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
28
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
29
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
30
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
31
|
+
isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
|
|
32
|
+
isFullyOnline: isSet(object.isFullyOnline) ? globalThis.Boolean(object.isFullyOnline) : false,
|
|
33
|
+
isOnline: isSet(object.isOnline) ? globalThis.Boolean(object.isOnline) : false,
|
|
34
|
+
isOnCampus: isSet(object.isOnCampus) ? globalThis.Boolean(object.isOnCampus) : false,
|
|
35
|
+
isBlended: isSet(object.isBlended) ? globalThis.Boolean(object.isBlended) : false,
|
|
36
|
+
isFullTime: isSet(object.isFullTime) ? globalThis.Boolean(object.isFullTime) : false,
|
|
37
|
+
isPartTime: isSet(object.isPartTime) ? globalThis.Boolean(object.isPartTime) : false,
|
|
38
|
+
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
|
39
|
+
degree: isSet(object.degree) ? globalThis.String(object.degree) : "",
|
|
40
|
+
programmeLink: isSet(object.programmeLink) ? InternalLink_1.InternalLink.fromJSON(object.programmeLink) : undefined,
|
|
41
|
+
summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
|
|
42
|
+
logo: isSet(object.logo) ? Logo_1.Logo.fromJSON(object.logo) : undefined,
|
|
43
|
+
cover: isSet(object.cover) ? Cover_1.Cover.fromJSON(object.cover) : undefined,
|
|
44
|
+
universityLink: isSet(object.universityLink) ? Link_1.Link.fromJSON(object.universityLink) : undefined,
|
|
45
|
+
universityId: isSet(object.universityId) ? globalThis.Number(object.universityId) : 0,
|
|
46
|
+
location: isSet(object.location) ? Location_1.Location.fromJSON(object.location) : undefined,
|
|
47
|
+
locationText: isSet(object.locationText) ? globalThis.String(object.locationText) : "",
|
|
48
|
+
tracking: isSet(object.tracking) ? Tracking_1.Tracking.fromJSON(object.tracking) : undefined,
|
|
49
|
+
tuitionFees: globalThis.Array.isArray(object?.tuitionFees)
|
|
50
|
+
? object.tuitionFees.map((e) => TuitionFee_1.TuitionFee.fromJSON(e))
|
|
51
|
+
: [],
|
|
52
|
+
duration: isSet(object.duration) ? Duration_1.Duration.fromJSON(object.duration) : undefined,
|
|
53
|
+
timings: globalThis.Array.isArray(object?.timings)
|
|
54
|
+
? object.timings.map((e) => Timing_1.Timing.fromJSON(e))
|
|
55
|
+
: [],
|
|
56
|
+
referralLink: isSet(object.referralLink) ? TrackedLink_1.TrackedLink.fromJSON(object.referralLink) : undefined,
|
|
57
|
+
country: isSet(object.country) ? Organisation_1.Country.fromJSON(object.country) : undefined,
|
|
58
|
+
topLevelOrganisation: globalThis.Array.isArray(object?.topLevelOrganisation)
|
|
59
|
+
? object.topLevelOrganisation.map((e) => globalThis.String(e))
|
|
60
|
+
: [],
|
|
61
|
+
premiumType: isSet(object.premiumType) ? globalThis.String(object.premiumType) : "",
|
|
62
|
+
disciplineIds: globalThis.Array.isArray(object?.disciplineIds)
|
|
63
|
+
? object.disciplineIds.map((e) => globalThis.Number(e))
|
|
64
|
+
: [],
|
|
65
|
+
englishRequirements: isSet(object.englishRequirements)
|
|
66
|
+
? EnglishRequirement_1.EnglishRequirement.fromJSON(object.englishRequirements)
|
|
67
|
+
: undefined,
|
|
68
|
+
workExperienceYears: isSet(object.workExperienceYears) ? globalThis.Number(object.workExperienceYears) : 0,
|
|
69
|
+
gpa: isSet(object.gpa) ? GPARequirement_1.GPARequirement.fromJSON(object.gpa) : undefined,
|
|
70
|
+
livingCost: isSet(object.livingCost) ? LivingCost_1.LivingCost.fromJSON(object.livingCost) : undefined,
|
|
71
|
+
ects: isSet(object.ects) ? globalThis.String(object.ects) : "",
|
|
72
|
+
campaignType: isSet(object.campaignType) ? globalThis.Number(object.campaignType) : 0,
|
|
73
|
+
lastUpdated: isSet(object.lastUpdated) ? globalThis.String(object.lastUpdated) : "",
|
|
74
|
+
commercialRange: globalThis.Array.isArray(object?.commercialRange)
|
|
75
|
+
? object.commercialRange.map((e) => globalThis.String(e))
|
|
76
|
+
: [],
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
toJSON(message) {
|
|
80
|
+
const obj = {};
|
|
81
|
+
if (message.id !== 0) {
|
|
82
|
+
obj.id = Math.round(message.id);
|
|
83
|
+
}
|
|
84
|
+
if (message.name !== "") {
|
|
85
|
+
obj.name = message.name;
|
|
86
|
+
}
|
|
87
|
+
if (message.title !== "") {
|
|
88
|
+
obj.title = message.title;
|
|
89
|
+
}
|
|
90
|
+
if (message.description !== "") {
|
|
91
|
+
obj.description = message.description;
|
|
92
|
+
}
|
|
93
|
+
if (message.isPublic !== false) {
|
|
94
|
+
obj.isPublic = message.isPublic;
|
|
95
|
+
}
|
|
96
|
+
if (message.isFullyOnline !== false) {
|
|
97
|
+
obj.isFullyOnline = message.isFullyOnline;
|
|
98
|
+
}
|
|
99
|
+
if (message.isOnline !== false) {
|
|
100
|
+
obj.isOnline = message.isOnline;
|
|
101
|
+
}
|
|
102
|
+
if (message.isOnCampus !== false) {
|
|
103
|
+
obj.isOnCampus = message.isOnCampus;
|
|
104
|
+
}
|
|
105
|
+
if (message.isBlended !== false) {
|
|
106
|
+
obj.isBlended = message.isBlended;
|
|
107
|
+
}
|
|
108
|
+
if (message.isFullTime !== false) {
|
|
109
|
+
obj.isFullTime = message.isFullTime;
|
|
110
|
+
}
|
|
111
|
+
if (message.isPartTime !== false) {
|
|
112
|
+
obj.isPartTime = message.isPartTime;
|
|
113
|
+
}
|
|
114
|
+
if (message.level !== "") {
|
|
115
|
+
obj.level = message.level;
|
|
116
|
+
}
|
|
117
|
+
if (message.degree !== "") {
|
|
118
|
+
obj.degree = message.degree;
|
|
119
|
+
}
|
|
120
|
+
if (message.programmeLink !== undefined) {
|
|
121
|
+
obj.programmeLink = InternalLink_1.InternalLink.toJSON(message.programmeLink);
|
|
122
|
+
}
|
|
123
|
+
if (message.summary !== "") {
|
|
124
|
+
obj.summary = message.summary;
|
|
125
|
+
}
|
|
126
|
+
if (message.logo !== undefined) {
|
|
127
|
+
obj.logo = Logo_1.Logo.toJSON(message.logo);
|
|
128
|
+
}
|
|
129
|
+
if (message.cover !== undefined) {
|
|
130
|
+
obj.cover = Cover_1.Cover.toJSON(message.cover);
|
|
131
|
+
}
|
|
132
|
+
if (message.universityLink !== undefined) {
|
|
133
|
+
obj.universityLink = Link_1.Link.toJSON(message.universityLink);
|
|
134
|
+
}
|
|
135
|
+
if (message.universityId !== 0) {
|
|
136
|
+
obj.universityId = Math.round(message.universityId);
|
|
137
|
+
}
|
|
138
|
+
if (message.location !== undefined) {
|
|
139
|
+
obj.location = Location_1.Location.toJSON(message.location);
|
|
140
|
+
}
|
|
141
|
+
if (message.locationText !== "") {
|
|
142
|
+
obj.locationText = message.locationText;
|
|
143
|
+
}
|
|
144
|
+
if (message.tracking !== undefined) {
|
|
145
|
+
obj.tracking = Tracking_1.Tracking.toJSON(message.tracking);
|
|
146
|
+
}
|
|
147
|
+
if (message.tuitionFees?.length) {
|
|
148
|
+
obj.tuitionFees = message.tuitionFees.map((e) => TuitionFee_1.TuitionFee.toJSON(e));
|
|
149
|
+
}
|
|
150
|
+
if (message.duration !== undefined) {
|
|
151
|
+
obj.duration = Duration_1.Duration.toJSON(message.duration);
|
|
152
|
+
}
|
|
153
|
+
if (message.timings?.length) {
|
|
154
|
+
obj.timings = message.timings.map((e) => Timing_1.Timing.toJSON(e));
|
|
155
|
+
}
|
|
156
|
+
if (message.referralLink !== undefined) {
|
|
157
|
+
obj.referralLink = TrackedLink_1.TrackedLink.toJSON(message.referralLink);
|
|
158
|
+
}
|
|
159
|
+
if (message.country !== undefined) {
|
|
160
|
+
obj.country = Organisation_1.Country.toJSON(message.country);
|
|
161
|
+
}
|
|
162
|
+
if (message.topLevelOrganisation?.length) {
|
|
163
|
+
obj.topLevelOrganisation = message.topLevelOrganisation;
|
|
164
|
+
}
|
|
165
|
+
if (message.premiumType !== "") {
|
|
166
|
+
obj.premiumType = message.premiumType;
|
|
167
|
+
}
|
|
168
|
+
if (message.disciplineIds?.length) {
|
|
169
|
+
obj.disciplineIds = message.disciplineIds.map((e) => Math.round(e));
|
|
170
|
+
}
|
|
171
|
+
if (message.englishRequirements !== undefined) {
|
|
172
|
+
obj.englishRequirements = EnglishRequirement_1.EnglishRequirement.toJSON(message.englishRequirements);
|
|
173
|
+
}
|
|
174
|
+
if (message.workExperienceYears !== 0) {
|
|
175
|
+
obj.workExperienceYears = Math.round(message.workExperienceYears);
|
|
176
|
+
}
|
|
177
|
+
if (message.gpa !== undefined) {
|
|
178
|
+
obj.gpa = GPARequirement_1.GPARequirement.toJSON(message.gpa);
|
|
179
|
+
}
|
|
180
|
+
if (message.livingCost !== undefined) {
|
|
181
|
+
obj.livingCost = LivingCost_1.LivingCost.toJSON(message.livingCost);
|
|
182
|
+
}
|
|
183
|
+
if (message.ects !== "") {
|
|
184
|
+
obj.ects = message.ects;
|
|
185
|
+
}
|
|
186
|
+
if (message.campaignType !== 0) {
|
|
187
|
+
obj.campaignType = Math.round(message.campaignType);
|
|
188
|
+
}
|
|
189
|
+
if (message.lastUpdated !== "") {
|
|
190
|
+
obj.lastUpdated = message.lastUpdated;
|
|
191
|
+
}
|
|
192
|
+
if (message.commercialRange?.length) {
|
|
193
|
+
obj.commercialRange = message.commercialRange;
|
|
194
|
+
}
|
|
195
|
+
return obj;
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
function isSet(value) {
|
|
199
|
+
return value !== null && value !== undefined;
|
|
200
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Link } from "./Link";
|
|
2
|
+
import { ProgrammeCard } from "./ProgrammeCard";
|
|
3
|
+
export interface ProgrammeGrid {
|
|
4
|
+
title: string;
|
|
5
|
+
searchLink: Link | undefined;
|
|
6
|
+
cards: ProgrammeCard[];
|
|
7
|
+
sblpLink: Link | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProgrammeGrid: MessageFns<ProgrammeGrid>;
|
|
10
|
+
interface MessageFns<T> {
|
|
11
|
+
fromJSON(object: any): T;
|
|
12
|
+
toJSON(message: T): unknown;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: ProgrammeGrid.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProgrammeGrid = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const Link_1 = require("./Link");
|
|
11
|
+
const ProgrammeCard_1 = require("./ProgrammeCard");
|
|
12
|
+
exports.ProgrammeGrid = {
|
|
13
|
+
fromJSON(object) {
|
|
14
|
+
return {
|
|
15
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
16
|
+
searchLink: isSet(object.searchLink) ? Link_1.Link.fromJSON(object.searchLink) : undefined,
|
|
17
|
+
cards: globalThis.Array.isArray(object?.cards) ? object.cards.map((e) => ProgrammeCard_1.ProgrammeCard.fromJSON(e)) : [],
|
|
18
|
+
sblpLink: isSet(object.sblpLink) ? Link_1.Link.fromJSON(object.sblpLink) : undefined,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
toJSON(message) {
|
|
22
|
+
const obj = {};
|
|
23
|
+
if (message.title !== "") {
|
|
24
|
+
obj.title = message.title;
|
|
25
|
+
}
|
|
26
|
+
if (message.searchLink !== undefined) {
|
|
27
|
+
obj.searchLink = Link_1.Link.toJSON(message.searchLink);
|
|
28
|
+
}
|
|
29
|
+
if (message.cards?.length) {
|
|
30
|
+
obj.cards = message.cards.map((e) => ProgrammeCard_1.ProgrammeCard.toJSON(e));
|
|
31
|
+
}
|
|
32
|
+
if (message.sblpLink !== undefined) {
|
|
33
|
+
obj.sblpLink = Link_1.Link.toJSON(message.sblpLink);
|
|
34
|
+
}
|
|
35
|
+
return obj;
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
function isSet(value) {
|
|
39
|
+
return value !== null && value !== undefined;
|
|
40
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RankingInstitute } from "./RankingInstitute";
|
|
2
|
+
export interface Ranking {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
acronym?: string | undefined;
|
|
6
|
+
allRankingInstitutes: RankingInstitute[];
|
|
7
|
+
mostRecentRankedYears: string[];
|
|
8
|
+
rankingInstitute: RankingInstitute | undefined;
|
|
9
|
+
rankingYear: string;
|
|
10
|
+
year: number;
|
|
11
|
+
rank: number;
|
|
12
|
+
disciplineId?: number | undefined;
|
|
13
|
+
rankDifference?: number | undefined;
|
|
14
|
+
canBeIndexed: boolean;
|
|
15
|
+
rankingId?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare const Ranking: MessageFns<Ranking>;
|
|
18
|
+
interface MessageFns<T> {
|
|
19
|
+
fromJSON(object: any): T;
|
|
20
|
+
toJSON(message: T): unknown;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: Ranking.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Ranking = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const RankingInstitute_1 = require("./RankingInstitute");
|
|
11
|
+
exports.Ranking = {
|
|
12
|
+
fromJSON(object) {
|
|
13
|
+
return {
|
|
14
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
15
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
16
|
+
acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : undefined,
|
|
17
|
+
allRankingInstitutes: globalThis.Array.isArray(object?.allRankingInstitutes)
|
|
18
|
+
? object.allRankingInstitutes.map((e) => RankingInstitute_1.RankingInstitute.fromJSON(e))
|
|
19
|
+
: [],
|
|
20
|
+
mostRecentRankedYears: globalThis.Array.isArray(object?.mostRecentRankedYears)
|
|
21
|
+
? object.mostRecentRankedYears.map((e) => globalThis.String(e))
|
|
22
|
+
: [],
|
|
23
|
+
rankingInstitute: isSet(object.rankingInstitute) ? RankingInstitute_1.RankingInstitute.fromJSON(object.rankingInstitute) : undefined,
|
|
24
|
+
rankingYear: isSet(object.rankingYear) ? globalThis.String(object.rankingYear) : "",
|
|
25
|
+
year: isSet(object.year) ? globalThis.Number(object.year) : 0,
|
|
26
|
+
rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
|
|
27
|
+
disciplineId: isSet(object.disciplineId) ? globalThis.Number(object.disciplineId) : undefined,
|
|
28
|
+
rankDifference: isSet(object.rankDifference) ? globalThis.Number(object.rankDifference) : undefined,
|
|
29
|
+
canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
|
|
30
|
+
rankingId: isSet(object.rankingId) ? globalThis.Number(object.rankingId) : undefined,
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
toJSON(message) {
|
|
34
|
+
const obj = {};
|
|
35
|
+
if (message.id !== 0) {
|
|
36
|
+
obj.id = Math.round(message.id);
|
|
37
|
+
}
|
|
38
|
+
if (message.name !== "") {
|
|
39
|
+
obj.name = message.name;
|
|
40
|
+
}
|
|
41
|
+
if (message.acronym !== undefined) {
|
|
42
|
+
obj.acronym = message.acronym;
|
|
43
|
+
}
|
|
44
|
+
if (message.allRankingInstitutes?.length) {
|
|
45
|
+
obj.allRankingInstitutes = message.allRankingInstitutes.map((e) => RankingInstitute_1.RankingInstitute.toJSON(e));
|
|
46
|
+
}
|
|
47
|
+
if (message.mostRecentRankedYears?.length) {
|
|
48
|
+
obj.mostRecentRankedYears = message.mostRecentRankedYears;
|
|
49
|
+
}
|
|
50
|
+
if (message.rankingInstitute !== undefined) {
|
|
51
|
+
obj.rankingInstitute = RankingInstitute_1.RankingInstitute.toJSON(message.rankingInstitute);
|
|
52
|
+
}
|
|
53
|
+
if (message.rankingYear !== "") {
|
|
54
|
+
obj.rankingYear = message.rankingYear;
|
|
55
|
+
}
|
|
56
|
+
if (message.year !== 0) {
|
|
57
|
+
obj.year = Math.round(message.year);
|
|
58
|
+
}
|
|
59
|
+
if (message.rank !== 0) {
|
|
60
|
+
obj.rank = Math.round(message.rank);
|
|
61
|
+
}
|
|
62
|
+
if (message.disciplineId !== undefined) {
|
|
63
|
+
obj.disciplineId = Math.round(message.disciplineId);
|
|
64
|
+
}
|
|
65
|
+
if (message.rankDifference !== undefined) {
|
|
66
|
+
obj.rankDifference = Math.round(message.rankDifference);
|
|
67
|
+
}
|
|
68
|
+
if (message.canBeIndexed !== false) {
|
|
69
|
+
obj.canBeIndexed = message.canBeIndexed;
|
|
70
|
+
}
|
|
71
|
+
if (message.rankingId !== undefined) {
|
|
72
|
+
obj.rankingId = Math.round(message.rankingId);
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
function isSet(value) {
|
|
78
|
+
return value !== null && value !== undefined;
|
|
79
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Body } from "./Body";
|
|
2
|
+
export interface RankingInstitute {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
linkHomePageUrl: string;
|
|
7
|
+
acronym: string;
|
|
8
|
+
body: Body | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const RankingInstitute: MessageFns<RankingInstitute>;
|
|
11
|
+
interface MessageFns<T> {
|
|
12
|
+
fromJSON(object: any): T;
|
|
13
|
+
toJSON(message: T): unknown;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.12.4
|
|
6
|
+
// source: RankingInstitute.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RankingInstitute = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const Body_1 = require("./Body");
|
|
11
|
+
exports.RankingInstitute = {
|
|
12
|
+
fromJSON(object) {
|
|
13
|
+
return {
|
|
14
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
15
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
16
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
17
|
+
linkHomePageUrl: isSet(object.linkHomePageUrl) ? globalThis.String(object.linkHomePageUrl) : "",
|
|
18
|
+
acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : "",
|
|
19
|
+
body: isSet(object.body) ? Body_1.Body.fromJSON(object.body) : undefined,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
toJSON(message) {
|
|
23
|
+
const obj = {};
|
|
24
|
+
if (message.id !== 0) {
|
|
25
|
+
obj.id = Math.round(message.id);
|
|
26
|
+
}
|
|
27
|
+
if (message.name !== "") {
|
|
28
|
+
obj.name = message.name;
|
|
29
|
+
}
|
|
30
|
+
if (message.description !== "") {
|
|
31
|
+
obj.description = message.description;
|
|
32
|
+
}
|
|
33
|
+
if (message.linkHomePageUrl !== "") {
|
|
34
|
+
obj.linkHomePageUrl = message.linkHomePageUrl;
|
|
35
|
+
}
|
|
36
|
+
if (message.acronym !== "") {
|
|
37
|
+
obj.acronym = message.acronym;
|
|
38
|
+
}
|
|
39
|
+
if (message.body !== undefined) {
|
|
40
|
+
obj.body = Body_1.Body.toJSON(message.body);
|
|
41
|
+
}
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
function isSet(value) {
|
|
46
|
+
return value !== null && value !== undefined;
|
|
47
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Person } from "./Person";
|
|
2
|
+
export interface Review {
|
|
3
|
+
id: number;
|
|
4
|
+
rating: number;
|
|
5
|
+
review?: string | undefined;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
hasTitle: boolean;
|
|
8
|
+
author: Person | undefined;
|
|
9
|
+
startDate: string;
|
|
10
|
+
endDate: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Review: MessageFns<Review>;
|
|
13
|
+
interface MessageFns<T> {
|
|
14
|
+
fromJSON(object: any): T;
|
|
15
|
+
toJSON(message: T): unknown;
|
|
16
|
+
}
|
|
17
|
+
export {};
|