@studyportals/domain-client 7.0.1-beta.9 → 7.1.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/index.d.ts +90 -0
- package/index.js +81 -34
- package/package.json +67 -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,26 @@
|
|
|
1
|
+
import { Description } from "./Description.js";
|
|
2
|
+
import { EssentialInformation } from "./EssentialInformation.js";
|
|
3
|
+
import { Link } from "./Link.js";
|
|
4
|
+
export interface Discipline {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
title: string;
|
|
8
|
+
summary?: string | undefined;
|
|
9
|
+
icon: string;
|
|
10
|
+
parentId?: number | undefined;
|
|
11
|
+
oldVirtualPath?: string | undefined;
|
|
12
|
+
canBeIndexed: boolean;
|
|
13
|
+
descriptionText: string;
|
|
14
|
+
promo?: string | undefined;
|
|
15
|
+
parentName?: string | undefined;
|
|
16
|
+
virtualPath: string;
|
|
17
|
+
link: Link | undefined;
|
|
18
|
+
description: Description | undefined;
|
|
19
|
+
essentialInformation: EssentialInformation | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const Discipline: MessageFns<Discipline>;
|
|
22
|
+
interface MessageFns<T> {
|
|
23
|
+
fromJSON(object: any): T;
|
|
24
|
+
toJSON(message: T): unknown;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
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: Discipline.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Discipline = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const Description_1 = require("./Description.js");
|
|
11
|
+
const EssentialInformation_1 = require("./EssentialInformation.js");
|
|
12
|
+
const Link_1 = require("./Link.js");
|
|
13
|
+
exports.Discipline = {
|
|
14
|
+
fromJSON(object) {
|
|
15
|
+
return {
|
|
16
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
17
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
18
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
19
|
+
summary: isSet(object.summary) ? globalThis.String(object.summary) : undefined,
|
|
20
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
21
|
+
parentId: isSet(object.parentId) ? globalThis.Number(object.parentId) : undefined,
|
|
22
|
+
oldVirtualPath: isSet(object.oldVirtualPath) ? globalThis.String(object.oldVirtualPath) : undefined,
|
|
23
|
+
canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
|
|
24
|
+
descriptionText: isSet(object.descriptionText) ? globalThis.String(object.descriptionText) : "",
|
|
25
|
+
promo: isSet(object.promo) ? globalThis.String(object.promo) : undefined,
|
|
26
|
+
parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : undefined,
|
|
27
|
+
virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
|
|
28
|
+
link: isSet(object.link) ? Link_1.Link.fromJSON(object.link) : undefined,
|
|
29
|
+
description: isSet(object.description) ? Description_1.Description.fromJSON(object.description) : undefined,
|
|
30
|
+
essentialInformation: isSet(object.essentialInformation)
|
|
31
|
+
? EssentialInformation_1.EssentialInformation.fromJSON(object.essentialInformation)
|
|
32
|
+
: undefined,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
toJSON(message) {
|
|
36
|
+
const obj = {};
|
|
37
|
+
if (message.id !== 0) {
|
|
38
|
+
obj.id = Math.round(message.id);
|
|
39
|
+
}
|
|
40
|
+
if (message.name !== "") {
|
|
41
|
+
obj.name = message.name;
|
|
42
|
+
}
|
|
43
|
+
if (message.title !== "") {
|
|
44
|
+
obj.title = message.title;
|
|
45
|
+
}
|
|
46
|
+
if (message.summary !== undefined) {
|
|
47
|
+
obj.summary = message.summary;
|
|
48
|
+
}
|
|
49
|
+
if (message.icon !== "") {
|
|
50
|
+
obj.icon = message.icon;
|
|
51
|
+
}
|
|
52
|
+
if (message.parentId !== undefined) {
|
|
53
|
+
obj.parentId = Math.round(message.parentId);
|
|
54
|
+
}
|
|
55
|
+
if (message.oldVirtualPath !== undefined) {
|
|
56
|
+
obj.oldVirtualPath = message.oldVirtualPath;
|
|
57
|
+
}
|
|
58
|
+
if (message.canBeIndexed !== false) {
|
|
59
|
+
obj.canBeIndexed = message.canBeIndexed;
|
|
60
|
+
}
|
|
61
|
+
if (message.descriptionText !== "") {
|
|
62
|
+
obj.descriptionText = message.descriptionText;
|
|
63
|
+
}
|
|
64
|
+
if (message.promo !== undefined) {
|
|
65
|
+
obj.promo = message.promo;
|
|
66
|
+
}
|
|
67
|
+
if (message.parentName !== undefined) {
|
|
68
|
+
obj.parentName = message.parentName;
|
|
69
|
+
}
|
|
70
|
+
if (message.virtualPath !== "") {
|
|
71
|
+
obj.virtualPath = message.virtualPath;
|
|
72
|
+
}
|
|
73
|
+
if (message.link !== undefined) {
|
|
74
|
+
obj.link = Link_1.Link.toJSON(message.link);
|
|
75
|
+
}
|
|
76
|
+
if (message.description !== undefined) {
|
|
77
|
+
obj.description = Description_1.Description.toJSON(message.description);
|
|
78
|
+
}
|
|
79
|
+
if (message.essentialInformation !== undefined) {
|
|
80
|
+
obj.essentialInformation = EssentialInformation_1.EssentialInformation.toJSON(message.essentialInformation);
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
function isSet(value) {
|
|
86
|
+
return value !== null && value !== undefined;
|
|
87
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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: Duration.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Duration = void 0;
|
|
9
|
+
exports.Duration = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
13
|
+
period: isSet(object.period) ? globalThis.String(object.period) : "",
|
|
14
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.amount !== 0) {
|
|
20
|
+
obj.amount = Math.round(message.amount);
|
|
21
|
+
}
|
|
22
|
+
if (message.period !== "") {
|
|
23
|
+
obj.period = message.period;
|
|
24
|
+
}
|
|
25
|
+
if (message.type !== "") {
|
|
26
|
+
obj.type = message.type;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function isSet(value) {
|
|
32
|
+
return value !== null && value !== undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface EnglishRequirement {
|
|
2
|
+
scale: string;
|
|
3
|
+
score: string;
|
|
4
|
+
isRequired: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const EnglishRequirement: MessageFns<EnglishRequirement>;
|
|
7
|
+
interface MessageFns<T> {
|
|
8
|
+
fromJSON(object: any): T;
|
|
9
|
+
toJSON(message: T): unknown;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
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: EnglishRequirement.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.EnglishRequirement = void 0;
|
|
9
|
+
exports.EnglishRequirement = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
scale: isSet(object.scale) ? globalThis.String(object.scale) : "",
|
|
13
|
+
score: isSet(object.score) ? globalThis.String(object.score) : "",
|
|
14
|
+
isRequired: isSet(object.isRequired) ? globalThis.Boolean(object.isRequired) : false,
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.scale !== "") {
|
|
20
|
+
obj.scale = message.scale;
|
|
21
|
+
}
|
|
22
|
+
if (message.score !== "") {
|
|
23
|
+
obj.score = message.score;
|
|
24
|
+
}
|
|
25
|
+
if (message.isRequired !== false) {
|
|
26
|
+
obj.isRequired = message.isRequired;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function isSet(value) {
|
|
32
|
+
return value !== null && value !== undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface EssentialInformation {
|
|
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 EssentialInformation: MessageFns<EssentialInformation>;
|
|
13
|
+
interface MessageFns<T> {
|
|
14
|
+
fromJSON(object: any): T;
|
|
15
|
+
toJSON(message: T): unknown;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
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: EssentialInformation.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.EssentialInformation = void 0;
|
|
9
|
+
exports.EssentialInformation = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
13
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
14
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
15
|
+
promo: isSet(object.promo) ? globalThis.String(object.promo) : "",
|
|
16
|
+
canShowPromo: isSet(object.canShowPromo) ? globalThis.Boolean(object.canShowPromo) : false,
|
|
17
|
+
parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : "",
|
|
18
|
+
canShowParentName: isSet(object.canShowParentName) ? globalThis.Boolean(object.canShowParentName) : false,
|
|
19
|
+
isNameOfDegree: isSet(object.isNameOfDegree) ? globalThis.Boolean(object.isNameOfDegree) : false,
|
|
20
|
+
programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : 0,
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
toJSON(message) {
|
|
24
|
+
const obj = {};
|
|
25
|
+
if (message.id !== 0) {
|
|
26
|
+
obj.id = Math.round(message.id);
|
|
27
|
+
}
|
|
28
|
+
if (message.name !== "") {
|
|
29
|
+
obj.name = message.name;
|
|
30
|
+
}
|
|
31
|
+
if (message.icon !== "") {
|
|
32
|
+
obj.icon = message.icon;
|
|
33
|
+
}
|
|
34
|
+
if (message.promo !== "") {
|
|
35
|
+
obj.promo = message.promo;
|
|
36
|
+
}
|
|
37
|
+
if (message.canShowPromo !== false) {
|
|
38
|
+
obj.canShowPromo = message.canShowPromo;
|
|
39
|
+
}
|
|
40
|
+
if (message.parentName !== "") {
|
|
41
|
+
obj.parentName = message.parentName;
|
|
42
|
+
}
|
|
43
|
+
if (message.canShowParentName !== false) {
|
|
44
|
+
obj.canShowParentName = message.canShowParentName;
|
|
45
|
+
}
|
|
46
|
+
if (message.isNameOfDegree !== false) {
|
|
47
|
+
obj.isNameOfDegree = message.isNameOfDegree;
|
|
48
|
+
}
|
|
49
|
+
if (message.programmeCount !== 0) {
|
|
50
|
+
obj.programmeCount = Math.round(message.programmeCount);
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
function isSet(value) {
|
|
56
|
+
return value !== null && value !== undefined;
|
|
57
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface File {
|
|
2
|
+
id?: number | undefined;
|
|
3
|
+
name?: string | undefined;
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
description?: string | undefined;
|
|
6
|
+
isHorizontal: boolean;
|
|
7
|
+
type?: string | undefined;
|
|
8
|
+
isPhoto: boolean;
|
|
9
|
+
imgix?: string | undefined;
|
|
10
|
+
width?: string | undefined;
|
|
11
|
+
height?: string | undefined;
|
|
12
|
+
hasPreview: boolean;
|
|
13
|
+
url?: string | undefined;
|
|
14
|
+
isVideo: boolean;
|
|
15
|
+
preview?: File | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare const File: MessageFns<File>;
|
|
18
|
+
interface MessageFns<T> {
|
|
19
|
+
fromJSON(object: any): T;
|
|
20
|
+
toJSON(message: T): unknown;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
package/protobuf/File.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
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: File.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.File = void 0;
|
|
9
|
+
exports.File = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
|
|
13
|
+
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
14
|
+
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
15
|
+
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
16
|
+
isHorizontal: isSet(object.isHorizontal) ? globalThis.Boolean(object.isHorizontal) : false,
|
|
17
|
+
type: isSet(object.type) ? globalThis.String(object.type) : undefined,
|
|
18
|
+
isPhoto: isSet(object.isPhoto) ? globalThis.Boolean(object.isPhoto) : false,
|
|
19
|
+
imgix: isSet(object.imgix) ? globalThis.String(object.imgix) : undefined,
|
|
20
|
+
width: isSet(object.width) ? globalThis.String(object.width) : undefined,
|
|
21
|
+
height: isSet(object.height) ? globalThis.String(object.height) : undefined,
|
|
22
|
+
hasPreview: isSet(object.hasPreview) ? globalThis.Boolean(object.hasPreview) : false,
|
|
23
|
+
url: isSet(object.url) ? globalThis.String(object.url) : undefined,
|
|
24
|
+
isVideo: isSet(object.isVideo) ? globalThis.Boolean(object.isVideo) : false,
|
|
25
|
+
preview: isSet(object.preview) ? exports.File.fromJSON(object.preview) : undefined,
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
toJSON(message) {
|
|
29
|
+
const obj = {};
|
|
30
|
+
if (message.id !== undefined) {
|
|
31
|
+
obj.id = Math.round(message.id);
|
|
32
|
+
}
|
|
33
|
+
if (message.name !== undefined) {
|
|
34
|
+
obj.name = message.name;
|
|
35
|
+
}
|
|
36
|
+
if (message.title !== undefined) {
|
|
37
|
+
obj.title = message.title;
|
|
38
|
+
}
|
|
39
|
+
if (message.description !== undefined) {
|
|
40
|
+
obj.description = message.description;
|
|
41
|
+
}
|
|
42
|
+
if (message.isHorizontal !== false) {
|
|
43
|
+
obj.isHorizontal = message.isHorizontal;
|
|
44
|
+
}
|
|
45
|
+
if (message.type !== undefined) {
|
|
46
|
+
obj.type = message.type;
|
|
47
|
+
}
|
|
48
|
+
if (message.isPhoto !== false) {
|
|
49
|
+
obj.isPhoto = message.isPhoto;
|
|
50
|
+
}
|
|
51
|
+
if (message.imgix !== undefined) {
|
|
52
|
+
obj.imgix = message.imgix;
|
|
53
|
+
}
|
|
54
|
+
if (message.width !== undefined) {
|
|
55
|
+
obj.width = message.width;
|
|
56
|
+
}
|
|
57
|
+
if (message.height !== undefined) {
|
|
58
|
+
obj.height = message.height;
|
|
59
|
+
}
|
|
60
|
+
if (message.hasPreview !== false) {
|
|
61
|
+
obj.hasPreview = message.hasPreview;
|
|
62
|
+
}
|
|
63
|
+
if (message.url !== undefined) {
|
|
64
|
+
obj.url = message.url;
|
|
65
|
+
}
|
|
66
|
+
if (message.isVideo !== false) {
|
|
67
|
+
obj.isVideo = message.isVideo;
|
|
68
|
+
}
|
|
69
|
+
if (message.preview !== undefined) {
|
|
70
|
+
obj.preview = exports.File.toJSON(message.preview);
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
function isSet(value) {
|
|
76
|
+
return value !== null && value !== undefined;
|
|
77
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface GPARequirement {
|
|
2
|
+
scale: string;
|
|
3
|
+
score: string;
|
|
4
|
+
isRequired: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const GPARequirement: MessageFns<GPARequirement>;
|
|
7
|
+
interface MessageFns<T> {
|
|
8
|
+
fromJSON(object: any): T;
|
|
9
|
+
toJSON(message: T): unknown;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
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: GPARequirement.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.GPARequirement = void 0;
|
|
9
|
+
exports.GPARequirement = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
scale: isSet(object.scale) ? globalThis.String(object.scale) : "",
|
|
13
|
+
score: isSet(object.score) ? globalThis.String(object.score) : "",
|
|
14
|
+
isRequired: isSet(object.isRequired) ? globalThis.Boolean(object.isRequired) : false,
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.scale !== "") {
|
|
20
|
+
obj.scale = message.scale;
|
|
21
|
+
}
|
|
22
|
+
if (message.score !== "") {
|
|
23
|
+
obj.score = message.score;
|
|
24
|
+
}
|
|
25
|
+
if (message.isRequired !== false) {
|
|
26
|
+
obj.isRequired = message.isRequired;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function isSet(value) {
|
|
32
|
+
return value !== null && value !== undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface InternalLink {
|
|
2
|
+
url: string;
|
|
3
|
+
description: string;
|
|
4
|
+
canShowDescription: boolean;
|
|
5
|
+
portalType: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const InternalLink: MessageFns<InternalLink>;
|
|
8
|
+
interface MessageFns<T> {
|
|
9
|
+
fromJSON(object: any): T;
|
|
10
|
+
toJSON(message: T): unknown;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalLink = void 0;
|
|
4
|
+
const __1 = require("../index.js");
|
|
5
|
+
exports.InternalLink = {
|
|
6
|
+
fromJSON(object) {
|
|
7
|
+
return {
|
|
8
|
+
url: isSet(object.url) ? __1.ProtobufClient.transformUrlUsingPortalMap(globalThis.String(object.url), object.portalType) : "",
|
|
9
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
10
|
+
canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
|
|
11
|
+
portalType: isSet(object.portalType) ? globalThis.String(object.portalType) : "",
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
toJSON(message) {
|
|
15
|
+
const obj = {};
|
|
16
|
+
if (message.url !== "") {
|
|
17
|
+
obj.url = message.url;
|
|
18
|
+
}
|
|
19
|
+
if (message.description !== "") {
|
|
20
|
+
obj.description = message.description;
|
|
21
|
+
}
|
|
22
|
+
if (message.canShowDescription !== false) {
|
|
23
|
+
obj.canShowDescription = message.canShowDescription;
|
|
24
|
+
}
|
|
25
|
+
if (message.portalType !== "") {
|
|
26
|
+
obj.portalType = message.portalType;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function isSet(value) {
|
|
32
|
+
return value !== null && value !== undefined;
|
|
33
|
+
}
|
package/protobuf/Link.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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: Link.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Link = void 0;
|
|
9
|
+
exports.Link = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
13
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
14
|
+
canShowDescription: isSet(object.canShowDescription) ? globalThis.Boolean(object.canShowDescription) : false,
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.url !== "") {
|
|
20
|
+
obj.url = message.url;
|
|
21
|
+
}
|
|
22
|
+
if (message.description !== "") {
|
|
23
|
+
obj.description = message.description;
|
|
24
|
+
}
|
|
25
|
+
if (message.canShowDescription !== false) {
|
|
26
|
+
obj.canShowDescription = message.canShowDescription;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function isSet(value) {
|
|
32
|
+
return value !== null && value !== undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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: LivingCost.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.LivingCost = void 0;
|
|
9
|
+
exports.LivingCost = {
|
|
10
|
+
fromJSON(object) {
|
|
11
|
+
return {
|
|
12
|
+
min: isSet(object.min) ? globalThis.Number(object.min) : 0,
|
|
13
|
+
max: isSet(object.max) ? globalThis.Number(object.max) : 0,
|
|
14
|
+
currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.min !== 0) {
|
|
20
|
+
obj.min = Math.round(message.min);
|
|
21
|
+
}
|
|
22
|
+
if (message.max !== 0) {
|
|
23
|
+
obj.max = Math.round(message.max);
|
|
24
|
+
}
|
|
25
|
+
if (message.currency !== "") {
|
|
26
|
+
obj.currency = message.currency;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function isSet(value) {
|
|
32
|
+
return value !== null && value !== undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OptionalLink } from "./OptionalLink.js";
|
|
2
|
+
export interface Location {
|
|
3
|
+
cityId: number;
|
|
4
|
+
city: OptionalLink | undefined;
|
|
5
|
+
countryId: number;
|
|
6
|
+
countryIso: string;
|
|
7
|
+
country: OptionalLink | undefined;
|
|
8
|
+
hasAreadId: boolean;
|
|
9
|
+
areaId: number;
|
|
10
|
+
canShowArea: boolean;
|
|
11
|
+
area: OptionalLink | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare const Location: MessageFns<Location>;
|
|
14
|
+
interface MessageFns<T> {
|
|
15
|
+
fromJSON(object: any): T;
|
|
16
|
+
toJSON(message: T): unknown;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
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: Location.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Location = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const OptionalLink_1 = require("./OptionalLink.js");
|
|
11
|
+
exports.Location = {
|
|
12
|
+
fromJSON(object) {
|
|
13
|
+
return {
|
|
14
|
+
cityId: isSet(object.cityId) ? globalThis.Number(object.cityId) : 0,
|
|
15
|
+
city: isSet(object.city) ? OptionalLink_1.OptionalLink.fromJSON(object.city) : undefined,
|
|
16
|
+
countryId: isSet(object.countryId) ? globalThis.Number(object.countryId) : 0,
|
|
17
|
+
countryIso: isSet(object.countryIso) ? globalThis.String(object.countryIso) : "",
|
|
18
|
+
country: isSet(object.country) ? OptionalLink_1.OptionalLink.fromJSON(object.country) : undefined,
|
|
19
|
+
hasAreadId: isSet(object.hasAreadId) ? globalThis.Boolean(object.hasAreadId) : false,
|
|
20
|
+
areaId: isSet(object.areaId) ? globalThis.Number(object.areaId) : 0,
|
|
21
|
+
canShowArea: isSet(object.canShowArea) ? globalThis.Boolean(object.canShowArea) : false,
|
|
22
|
+
area: isSet(object.area) ? OptionalLink_1.OptionalLink.fromJSON(object.area) : undefined,
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
toJSON(message) {
|
|
26
|
+
const obj = {};
|
|
27
|
+
if (message.cityId !== 0) {
|
|
28
|
+
obj.cityId = Math.round(message.cityId);
|
|
29
|
+
}
|
|
30
|
+
if (message.city !== undefined) {
|
|
31
|
+
obj.city = OptionalLink_1.OptionalLink.toJSON(message.city);
|
|
32
|
+
}
|
|
33
|
+
if (message.countryId !== 0) {
|
|
34
|
+
obj.countryId = Math.round(message.countryId);
|
|
35
|
+
}
|
|
36
|
+
if (message.countryIso !== "") {
|
|
37
|
+
obj.countryIso = message.countryIso;
|
|
38
|
+
}
|
|
39
|
+
if (message.country !== undefined) {
|
|
40
|
+
obj.country = OptionalLink_1.OptionalLink.toJSON(message.country);
|
|
41
|
+
}
|
|
42
|
+
if (message.hasAreadId !== false) {
|
|
43
|
+
obj.hasAreadId = message.hasAreadId;
|
|
44
|
+
}
|
|
45
|
+
if (message.areaId !== 0) {
|
|
46
|
+
obj.areaId = Math.round(message.areaId);
|
|
47
|
+
}
|
|
48
|
+
if (message.canShowArea !== false) {
|
|
49
|
+
obj.canShowArea = message.canShowArea;
|
|
50
|
+
}
|
|
51
|
+
if (message.area !== undefined) {
|
|
52
|
+
obj.area = OptionalLink_1.OptionalLink.toJSON(message.area);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
function isSet(value) {
|
|
58
|
+
return value !== null && value !== undefined;
|
|
59
|
+
}
|