@studyportals/domain-client 7.1.1-beta.0 → 7.1.1-beta.2
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.js +34 -81
- package/package.json +1 -1
- package/protobuf/Area.js +1 -4
- package/protobuf/Article.js +30 -33
- package/protobuf/Body.js +1 -4
- package/protobuf/CampaignInformation.js +1 -4
- package/protobuf/ClickTracking.js +1 -4
- package/protobuf/CommercialEntity.js +1 -4
- package/protobuf/Cover.js +1 -4
- package/protobuf/Deadline.js +1 -4
- package/protobuf/Degree.js +1 -4
- package/protobuf/Description.js +13 -16
- package/protobuf/Discipline.js +10 -13
- package/protobuf/Duration.js +1 -4
- package/protobuf/EnglishRequirement.js +1 -4
- package/protobuf/EssentialInformation.js +1 -4
- package/protobuf/File.js +3 -6
- package/protobuf/GPARequirement.js +1 -4
- package/protobuf/InternalLink.js +3 -6
- package/protobuf/Link.js +1 -4
- package/protobuf/LivingCost.js +1 -4
- package/protobuf/Location.js +8 -11
- package/protobuf/Logo.js +1 -4
- package/protobuf/MiniProgrammeCard.js +10 -13
- package/protobuf/OptionalLink.js +1 -4
- package/protobuf/Organisation.js +86 -89
- package/protobuf/OrganisationInformation.js +1 -4
- package/protobuf/OrganisationRanking.js +7 -10
- package/protobuf/Person.js +4 -7
- package/protobuf/ProgrammeCard.js +43 -46
- package/protobuf/ProgrammeGrid.js +9 -12
- package/protobuf/Ranking.js +6 -9
- package/protobuf/RankingInstitute.js +4 -7
- package/protobuf/Review.js +4 -7
- package/protobuf/ReviewRating.js +1 -4
- package/protobuf/RichText.js +1 -4
- package/protobuf/SocialLink.js +1 -4
- package/protobuf/StartDate.js +4 -7
- package/protobuf/Timing.js +7 -10
- package/protobuf/Topic.js +1 -4
- package/protobuf/TrackedLink.js +4 -7
- package/protobuf/Tracking.js +4 -7
- package/protobuf/TuitionFee.js +1 -4
- package/protobuf/Unibuddy.js +1 -4
- package/protobuf/index.js +42 -58
- package/src/clients/article-detail-page-client.js +4 -8
- package/src/clients/index.js +4 -20
- package/src/clients/organisation-page-client.js +4 -8
- package/src/clients/protobuf-client.js +3 -7
- package/src/clients/public-mini-programme-card-client.js +4 -8
- package/src/domain-client.js +9 -13
- package/src/exceptions/bad-request-exception.js +1 -5
- package/src/exceptions/client-exception.js +1 -5
- package/src/exceptions/internal-server-exception.js +1 -5
- package/src/exceptions/not-found-exception.js +1 -5
- package/src/exceptions/property-not-available-exception.js +1 -5
- package/src/factories/DateFactory.js +1 -5
- package/src/factories/InternalLinkFactory.js +1 -5
- package/src/i-api-response.js +1 -2
- package/src/i-class-factory.js +1 -2
- package/src/i-model-description.js +1 -4
- package/src/model-client.js +8 -12
- package/src/model-factory.js +10 -14
- package/src/models/bestfit-programme/bestfit-programme-client.js +2 -6
- package/src/models/bestfit-programme/i-best-fit-programme.js +1 -2
- package/src/models/bestfit-programme/i-city.js +1 -2
- package/src/models/bestfit-programme/i-living-cost.js +1 -2
- package/src/models/city-search-document/city-search-document-client.js +2 -6
- package/src/models/city-search-document/i-city-search-document.js +1 -2
- package/src/models/common/i-city.js +1 -2
- package/src/models/common/i-country.js +1 -2
- package/src/models/common/i-english-requirements.js +1 -2
- package/src/models/common/i-g-p-a-requirement.js +1 -2
- package/src/models/common/i-internal-link.js +1 -2
- package/src/models/common/i-logo.js +1 -2
- package/src/models/common/i-review-rating.js +1 -2
- package/src/models/common/i-tuition-fee.js +1 -2
- package/src/models/copilot-country/copilot-country-client.js +2 -6
- package/src/models/copilot-country/i-copilot-country.js +1 -2
- package/src/models/copilot-country/i-copilot-ranking-card.js +1 -2
- package/src/models/copilot-programme/copilot-programme-client.js +2 -6
- package/src/models/copilot-programme/i-copilot-programme.js +1 -2
- package/src/models/customerio-organisation/customerio-organisation-client.js +2 -6
- package/src/models/customerio-organisation/i-customer-io-organisation.js +1 -2
- package/src/models/customerio-organisation/i-review.js +1 -2
- package/src/models/customerio-programme/customerio-programme-client.js +2 -6
- package/src/models/customerio-programme/i-customer-io-programme.js +1 -2
- package/src/models/customerio-programme/i-internal-link.js +1 -2
- package/src/models/faq-static-content/i-faq-static-content.js +1 -2
- package/src/models/faq-static-content/i-faq.js +1 -2
- package/src/models/faq-static-content/i-static-content-url.js +1 -2
- package/src/models/faq-static-content/i-static-content.js +1 -2
- package/src/models/faq-static-content/public-faq-static-content-client.js +2 -6
- package/src/models/organisation-card/i-organisation-card.js +1 -2
- package/src/models/organisation-card/i-ranking-discipline.js +1 -2
- package/src/models/organisation-card/organisation-card-client.js +2 -6
- package/src/models/organisation-for-search/i-organisation-for-search.js +1 -2
- package/src/models/organisation-for-search/public-organisation-for-search-client.js +2 -6
- package/src/models/organisation-search-document/i-organisation-search-document.js +1 -2
- package/src/models/organisation-search-document/organisation-search-document-client.js +2 -6
- package/src/models/programme-card/i-click-tracking-data.js +1 -2
- package/src/models/programme-card/i-cover.js +1 -2
- package/src/models/programme-card/i-deadline.js +1 -2
- package/src/models/programme-card/i-duration.js +1 -2
- package/src/models/programme-card/i-internal-link.js +1 -2
- package/src/models/programme-card/i-link.js +1 -2
- package/src/models/programme-card/i-location.js +1 -2
- package/src/models/programme-card/i-logo.js +1 -2
- package/src/models/programme-card/i-optional-link.js +1 -2
- package/src/models/programme-card/i-programme-card.js +1 -2
- package/src/models/programme-card/i-start-date.js +1 -2
- package/src/models/programme-card/i-timing.js +1 -2
- package/src/models/programme-card/i-tracked-link.js +1 -2
- package/src/models/programme-card/i-tracking.js +1 -2
- package/src/models/programme-card/i-tuition-fee.js +1 -2
- package/src/models/programme-card/programme-card-client.js +2 -6
- package/src/models/ranking-cards/i-ranking.js +1 -2
- package/src/models/scholarship-card/i-scholarship-card-v2.js +1 -2
- package/src/models/scholarship-card/i-scholarship-card.js +1 -2
- package/src/models/scholarship-card/public-scholarship-card-client.js +2 -6
- package/src/models/scholarship-card/scholarship-card-v2-client.js +2 -6
- package/src/models/scholarship-search-document/i-scholarship-search-document.js +1 -2
- package/src/models/scholarship-search-document/scholarship-search-document-client.js +2 -6
- package/src/models/search-discipline/i-search-discipline.js +1 -2
- package/src/models/search-discipline/public-search-discipline-client.js +2 -6
- package/src/models/search-projection/i-geo-targeting-configuration.js +1 -2
- package/src/models/search-projection/i-geo-targeting-values.js +1 -2
- package/src/models/search-projection/i-organisation-values.js +1 -2
- package/src/models/search-projection/i-premium-values.js +1 -2
- package/src/models/search-projection/i-search-projection.js +1 -2
- package/src/models/search-projection/i-tuition-values.js +1 -2
- package/src/models/search-projection/search-projection-client.js +2 -6
- package/src/models/sitemap-articles-info/i-sitemap-article-info.js +1 -2
- package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +2 -6
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js +1 -2
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +2 -6
- package/src/models/sitemap-countries-info/i-sitemap-country-info.js +1 -2
- package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +2 -6
- package/src/models/sitemap-country-degree-info/i-degree-info.js +1 -2
- package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +1 -2
- package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +2 -6
- package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +1 -2
- package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +2 -6
- package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +1 -2
- package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +2 -6
- package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +1 -2
- package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +2 -6
- package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +1 -2
- package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +2 -6
- package/src/types/portal-map.js +1 -2
- package/src/types/portal-type.js +2 -5
- package/src/types.js +1 -2
package/index.js
CHANGED
|
@@ -1,81 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Object.defineProperty(exports, "CustomerIOProgrammeClient", { enumerable: true, get: function () { return customerio_programme_client_1.CustomerIOProgrammeClient; } });
|
|
36
|
-
const public_faq_static_content_client_1 = require("./src/models/faq-static-content/public-faq-static-content-client.js");
|
|
37
|
-
Object.defineProperty(exports, "PublicFaqStaticContentClient", { enumerable: true, get: function () { return public_faq_static_content_client_1.PublicFaqStaticContentClient; } });
|
|
38
|
-
const sitemap_programme_info_client_1 = require("./src/models/sitemap-programme-info/sitemap-programme-info-client.js");
|
|
39
|
-
Object.defineProperty(exports, "SitemapProgrammeInfoClient", { enumerable: true, get: function () { return sitemap_programme_info_client_1.SitemapProgrammeInfoClient; } });
|
|
40
|
-
const sitemap_countries_info_client_1 = require("./src/models/sitemap-countries-info/sitemap-countries-info-client.js");
|
|
41
|
-
Object.defineProperty(exports, "SitemapCountriesInfoClient", { enumerable: true, get: function () { return sitemap_countries_info_client_1.SitemapCountriesInfoClient; } });
|
|
42
|
-
const sitemap_country_degree_info_client_1 = require("./src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js");
|
|
43
|
-
Object.defineProperty(exports, "SitemapCountryDegreeInfoClient", { enumerable: true, get: function () { return sitemap_country_degree_info_client_1.SitemapCountryDegreeInfoClient; } });
|
|
44
|
-
const public_search_discipline_client_1 = require("./src/models/search-discipline/public-search-discipline-client.js");
|
|
45
|
-
Object.defineProperty(exports, "PublicSearchDisciplineClient", { enumerable: true, get: function () { return public_search_discipline_client_1.PublicSearchDisciplineClient; } });
|
|
46
|
-
const sitemap_disciplines_info_client_1 = require("./src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js");
|
|
47
|
-
Object.defineProperty(exports, "SitemapDisciplinesInfoClient", { enumerable: true, get: function () { return sitemap_disciplines_info_client_1.SitemapDisciplinesInfoClient; } });
|
|
48
|
-
const customerio_organisation_client_1 = require("./src/models/customerio-organisation/customerio-organisation-client.js");
|
|
49
|
-
Object.defineProperty(exports, "CustomerIOOrganisationClient", { enumerable: true, get: function () { return customerio_organisation_client_1.CustomerIOOrganisationClient; } });
|
|
50
|
-
const sitemap_organisations_info_client_1 = require("./src/models/sitemap-organisations-info/sitemap-organisations-info-client.js");
|
|
51
|
-
Object.defineProperty(exports, "SitemapOrganisationsInfoClient", { enumerable: true, get: function () { return sitemap_organisations_info_client_1.SitemapOrganisationsInfoClient; } });
|
|
52
|
-
const organisation_card_client_1 = require("./src/models/organisation-card/organisation-card-client.js");
|
|
53
|
-
Object.defineProperty(exports, "OrganisationCardClient", { enumerable: true, get: function () { return organisation_card_client_1.OrganisationCardClient; } });
|
|
54
|
-
const organisation_search_document_client_1 = require("./src/models/organisation-search-document/organisation-search-document-client.js");
|
|
55
|
-
Object.defineProperty(exports, "OrganisationSearchDocumentClient", { enumerable: true, get: function () { return organisation_search_document_client_1.OrganisationSearchDocumentClient; } });
|
|
56
|
-
const sitemap_rankings_info_client_1 = require("./src/models/sitemap-rankings-info/sitemap-rankings-info-client.js");
|
|
57
|
-
Object.defineProperty(exports, "SitemapRankingsInfoClient", { enumerable: true, get: function () { return sitemap_rankings_info_client_1.SitemapRankingsInfoClient; } });
|
|
58
|
-
const sitemap_articles_info_client_1 = require("./src/models/sitemap-articles-info/sitemap-articles-info-client.js");
|
|
59
|
-
Object.defineProperty(exports, "SitemapArticlesInfoClient", { enumerable: true, get: function () { return sitemap_articles_info_client_1.SitemapArticlesInfoClient; } });
|
|
60
|
-
const sitemap_cities_info_client_1 = require("./src/models/sitemap-cities-info/sitemap-cities-info-client.js");
|
|
61
|
-
Object.defineProperty(exports, "SitemapCitiesInfoClient", { enumerable: true, get: function () { return sitemap_cities_info_client_1.SitemapCitiesInfoClient; } });
|
|
62
|
-
const public_scholarship_card_client_1 = require("./src/models/scholarship-card/public-scholarship-card-client.js");
|
|
63
|
-
Object.defineProperty(exports, "PublicScholarshipCardClient", { enumerable: true, get: function () { return public_scholarship_card_client_1.PublicScholarshipCardClient; } });
|
|
64
|
-
const scholarship_card_v2_client_1 = require("./src/models/scholarship-card/scholarship-card-v2-client.js");
|
|
65
|
-
Object.defineProperty(exports, "ScholarshipCardV2Client", { enumerable: true, get: function () { return scholarship_card_v2_client_1.ScholarshipCardV2Client; } });
|
|
66
|
-
const scholarship_search_document_client_1 = require("./src/models/scholarship-search-document/scholarship-search-document-client.js");
|
|
67
|
-
Object.defineProperty(exports, "ScholarshipSearchDocumentClient", { enumerable: true, get: function () { return scholarship_search_document_client_1.ScholarshipSearchDocumentClient; } });
|
|
68
|
-
const city_search_document_client_1 = require("./src/models/city-search-document/city-search-document-client.js");
|
|
69
|
-
Object.defineProperty(exports, "CitySearchDocumentClient", { enumerable: true, get: function () { return city_search_document_client_1.CitySearchDocumentClient; } });
|
|
70
|
-
const portal_type_1 = require("./src/types/portal-type.js");
|
|
71
|
-
Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
|
|
72
|
-
const model_client_1 = require("./src/model-client.js");
|
|
73
|
-
Object.defineProperty(exports, "ModelClient", { enumerable: true, get: function () { return model_client_1.ModelClient; } });
|
|
74
|
-
const public_organisation_for_search_client_1 = require("./src/models/organisation-for-search/public-organisation-for-search-client.js");
|
|
75
|
-
Object.defineProperty(exports, "PublicOrganisationForSearchClient", { enumerable: true, get: function () { return public_organisation_for_search_client_1.PublicOrganisationForSearchClient; } });
|
|
76
|
-
const copilot_programme_client_1 = require("./src/models/copilot-programme/copilot-programme-client.js");
|
|
77
|
-
Object.defineProperty(exports, "CopilotProgrammeClient", { enumerable: true, get: function () { return copilot_programme_client_1.CopilotProgrammeClient; } });
|
|
78
|
-
const copilot_country_client_1 = require("./src/models/copilot-country/copilot-country-client.js");
|
|
79
|
-
Object.defineProperty(exports, "CopilotCountryClient", { enumerable: true, get: function () { return copilot_country_client_1.CopilotCountryClient; } });
|
|
80
|
-
__exportStar(require("./src/clients/index.js"), exports);
|
|
81
|
-
__exportStar(require("./protobuf/index.js"), exports);
|
|
1
|
+
import { BadRequestException } from "./src/exceptions/bad-request-exception.js";
|
|
2
|
+
import { ClientException } from "./src/exceptions/client-exception.js";
|
|
3
|
+
import { InternalServerException } from "./src/exceptions/internal-server-exception.js";
|
|
4
|
+
import { NotFoundException } from "./src/exceptions/not-found-exception.js";
|
|
5
|
+
import { PropertyNotAvailableException } from "./src/exceptions/property-not-available-exception.js";
|
|
6
|
+
import { ProgrammeCardClient } from "./src/models/programme-card/programme-card-client.js";
|
|
7
|
+
import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client.js";
|
|
8
|
+
import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client.js";
|
|
9
|
+
import { CustomerIOProgrammeClient } from "./src/models/customerio-programme/customerio-programme-client.js";
|
|
10
|
+
import { PublicFaqStaticContentClient } from "./src/models/faq-static-content/public-faq-static-content-client.js";
|
|
11
|
+
import { SitemapProgrammeInfoClient } from "./src/models/sitemap-programme-info/sitemap-programme-info-client.js";
|
|
12
|
+
import { SitemapCountriesInfoClient } from "./src/models/sitemap-countries-info/sitemap-countries-info-client.js";
|
|
13
|
+
import { SitemapCountryDegreeInfoClient } from "./src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js";
|
|
14
|
+
import { PublicSearchDisciplineClient } from "./src/models/search-discipline/public-search-discipline-client.js";
|
|
15
|
+
import { SitemapDisciplinesInfoClient } from "./src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js";
|
|
16
|
+
import { CustomerIOOrganisationClient } from "./src/models/customerio-organisation/customerio-organisation-client.js";
|
|
17
|
+
import { SitemapOrganisationsInfoClient } from "./src/models/sitemap-organisations-info/sitemap-organisations-info-client.js";
|
|
18
|
+
import { OrganisationCardClient } from "./src/models/organisation-card/organisation-card-client.js";
|
|
19
|
+
import { OrganisationSearchDocumentClient } from "./src/models/organisation-search-document/organisation-search-document-client.js";
|
|
20
|
+
import { SitemapRankingsInfoClient } from "./src/models/sitemap-rankings-info/sitemap-rankings-info-client.js";
|
|
21
|
+
import { SitemapArticlesInfoClient } from "./src/models/sitemap-articles-info/sitemap-articles-info-client.js";
|
|
22
|
+
import { SitemapCitiesInfoClient } from "./src/models/sitemap-cities-info/sitemap-cities-info-client.js";
|
|
23
|
+
import { PublicScholarshipCardClient } from "./src/models/scholarship-card/public-scholarship-card-client.js";
|
|
24
|
+
import { ScholarshipCardV2Client } from "./src/models/scholarship-card/scholarship-card-v2-client.js";
|
|
25
|
+
import { ScholarshipSearchDocumentClient } from "./src/models/scholarship-search-document/scholarship-search-document-client.js";
|
|
26
|
+
import { CitySearchDocumentClient } from "./src/models/city-search-document/city-search-document-client.js";
|
|
27
|
+
import { PortalType } from "./src/types/portal-type.js";
|
|
28
|
+
import { ModelClient } from "./src/model-client.js";
|
|
29
|
+
import { PublicOrganisationForSearchClient } from "./src/models/organisation-for-search/public-organisation-for-search-client.js";
|
|
30
|
+
import { CopilotProgrammeClient } from "./src/models/copilot-programme/copilot-programme-client.js";
|
|
31
|
+
import { CopilotCountryClient } from "./src/models/copilot-country/copilot-country-client.js";
|
|
32
|
+
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ProgrammeCardClient, SearchProjectionClient, BestfitProgrammeClient, CustomerIOProgrammeClient, PublicFaqStaticContentClient, SitemapProgrammeInfoClient, SitemapCountriesInfoClient, SitemapCountryDegreeInfoClient, PublicSearchDisciplineClient, SitemapDisciplinesInfoClient, CustomerIOOrganisationClient, SitemapOrganisationsInfoClient, OrganisationSearchDocumentClient, SitemapRankingsInfoClient, SitemapArticlesInfoClient, SitemapCitiesInfoClient, PublicScholarshipCardClient, ScholarshipCardV2Client, ScholarshipSearchDocumentClient, CitySearchDocumentClient, PortalType, ModelClient, PublicOrganisationForSearchClient, OrganisationCardClient, CopilotProgrammeClient, CopilotCountryClient };
|
|
33
|
+
export * from './src/clients/index.js';
|
|
34
|
+
export * from './protobuf/index.js';
|
package/package.json
CHANGED
package/protobuf/Area.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Area.proto
|
|
7
|
-
|
|
8
|
-
exports.Area = void 0;
|
|
9
|
-
exports.Area = {
|
|
6
|
+
export const Area = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/Article.js
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Article.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TagsArray = exports.TagsStruct = exports.Article = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
import { Discipline } from "./Discipline.js";
|
|
8
|
+
import { File } from "./File.js";
|
|
9
|
+
import { Country } from "./Organisation.js";
|
|
10
|
+
import { Person } from "./Person.js";
|
|
11
|
+
import { Topic } from "./Topic.js";
|
|
12
|
+
export const Article = {
|
|
16
13
|
fromJSON(object) {
|
|
17
14
|
return {
|
|
18
15
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -36,18 +33,18 @@ exports.Article = {
|
|
|
36
33
|
mayShowGallery: isSet(object.mayShowGallery) ? globalThis.Boolean(object.mayShowGallery) : false,
|
|
37
34
|
urlName: isSet(object.urlName) ? globalThis.String(object.urlName) : "",
|
|
38
35
|
virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
|
|
39
|
-
tags: isSet(object.tags) ?
|
|
36
|
+
tags: isSet(object.tags) ? TagsArray.fromJSON(object.tags) : undefined,
|
|
40
37
|
relatedArticles: globalThis.Array.isArray(object?.relatedArticles)
|
|
41
|
-
? object.relatedArticles.map((e) =>
|
|
38
|
+
? object.relatedArticles.map((e) => Article.fromJSON(e))
|
|
42
39
|
: [],
|
|
43
40
|
relatedCountries: globalThis.Array.isArray(object?.relatedCountries)
|
|
44
|
-
? object.relatedCountries.map((e) =>
|
|
41
|
+
? object.relatedCountries.map((e) => Country.fromJSON(e))
|
|
45
42
|
: [],
|
|
46
43
|
relatedCities: globalThis.Array.isArray(object?.relatedCities)
|
|
47
44
|
? object.relatedCities.map((e) => globalThis.Number(e))
|
|
48
45
|
: [],
|
|
49
46
|
relatedDisciplines: globalThis.Array.isArray(object?.relatedDisciplines)
|
|
50
|
-
? object.relatedDisciplines.map((e) =>
|
|
47
|
+
? object.relatedDisciplines.map((e) => Discipline.fromJSON(e))
|
|
51
48
|
: [],
|
|
52
49
|
relatedReviewCategories: globalThis.Array.isArray(object?.relatedReviewCategories)
|
|
53
50
|
? object.relatedReviewCategories.map((e) => globalThis.Number(e))
|
|
@@ -59,19 +56,19 @@ exports.Article = {
|
|
|
59
56
|
? object.relatedOrganisations.map((e) => globalThis.Number(e))
|
|
60
57
|
: [],
|
|
61
58
|
featuredArticles: globalThis.Array.isArray(object?.featuredArticles)
|
|
62
|
-
? object.featuredArticles.map((e) =>
|
|
59
|
+
? object.featuredArticles.map((e) => Article.fromJSON(e))
|
|
63
60
|
: [],
|
|
64
61
|
recentArticles: globalThis.Array.isArray(object?.recentArticles)
|
|
65
|
-
? object.recentArticles.map((e) =>
|
|
62
|
+
? object.recentArticles.map((e) => Article.fromJSON(e))
|
|
66
63
|
: [],
|
|
67
64
|
archivedArticles: globalThis.Array.isArray(object?.archivedArticles)
|
|
68
|
-
? object.archivedArticles.map((e) =>
|
|
65
|
+
? object.archivedArticles.map((e) => Article.fromJSON(e))
|
|
69
66
|
: [],
|
|
70
67
|
isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
|
|
71
|
-
author: isSet(object.author) ?
|
|
68
|
+
author: isSet(object.author) ? Person.fromJSON(object.author) : undefined,
|
|
72
69
|
isSponsored: isSet(object.isSponsored) ? globalThis.Boolean(object.isSponsored) : false,
|
|
73
|
-
topic: isSet(object.topic) ?
|
|
74
|
-
image: isSet(object.image) ?
|
|
70
|
+
topic: isSet(object.topic) ? Topic.fromJSON(object.topic) : undefined,
|
|
71
|
+
image: isSet(object.image) ? File.fromJSON(object.image) : undefined,
|
|
75
72
|
canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
|
|
76
73
|
roundedAmountOfProgrammes: isSet(object.roundedAmountOfProgrammes)
|
|
77
74
|
? globalThis.Number(object.roundedAmountOfProgrammes)
|
|
@@ -138,19 +135,19 @@ exports.Article = {
|
|
|
138
135
|
obj.virtualPath = message.virtualPath;
|
|
139
136
|
}
|
|
140
137
|
if (message.tags !== undefined) {
|
|
141
|
-
obj.tags =
|
|
138
|
+
obj.tags = TagsArray.toJSON(message.tags);
|
|
142
139
|
}
|
|
143
140
|
if (message.relatedArticles?.length) {
|
|
144
|
-
obj.relatedArticles = message.relatedArticles.map((e) =>
|
|
141
|
+
obj.relatedArticles = message.relatedArticles.map((e) => Article.toJSON(e));
|
|
145
142
|
}
|
|
146
143
|
if (message.relatedCountries?.length) {
|
|
147
|
-
obj.relatedCountries = message.relatedCountries.map((e) =>
|
|
144
|
+
obj.relatedCountries = message.relatedCountries.map((e) => Country.toJSON(e));
|
|
148
145
|
}
|
|
149
146
|
if (message.relatedCities?.length) {
|
|
150
147
|
obj.relatedCities = message.relatedCities.map((e) => Math.round(e));
|
|
151
148
|
}
|
|
152
149
|
if (message.relatedDisciplines?.length) {
|
|
153
|
-
obj.relatedDisciplines = message.relatedDisciplines.map((e) =>
|
|
150
|
+
obj.relatedDisciplines = message.relatedDisciplines.map((e) => Discipline.toJSON(e));
|
|
154
151
|
}
|
|
155
152
|
if (message.relatedReviewCategories?.length) {
|
|
156
153
|
obj.relatedReviewCategories = message.relatedReviewCategories.map((e) => Math.round(e));
|
|
@@ -162,28 +159,28 @@ exports.Article = {
|
|
|
162
159
|
obj.relatedOrganisations = message.relatedOrganisations.map((e) => Math.round(e));
|
|
163
160
|
}
|
|
164
161
|
if (message.featuredArticles?.length) {
|
|
165
|
-
obj.featuredArticles = message.featuredArticles.map((e) =>
|
|
162
|
+
obj.featuredArticles = message.featuredArticles.map((e) => Article.toJSON(e));
|
|
166
163
|
}
|
|
167
164
|
if (message.recentArticles?.length) {
|
|
168
|
-
obj.recentArticles = message.recentArticles.map((e) =>
|
|
165
|
+
obj.recentArticles = message.recentArticles.map((e) => Article.toJSON(e));
|
|
169
166
|
}
|
|
170
167
|
if (message.archivedArticles?.length) {
|
|
171
|
-
obj.archivedArticles = message.archivedArticles.map((e) =>
|
|
168
|
+
obj.archivedArticles = message.archivedArticles.map((e) => Article.toJSON(e));
|
|
172
169
|
}
|
|
173
170
|
if (message.isPublic !== false) {
|
|
174
171
|
obj.isPublic = message.isPublic;
|
|
175
172
|
}
|
|
176
173
|
if (message.author !== undefined) {
|
|
177
|
-
obj.author =
|
|
174
|
+
obj.author = Person.toJSON(message.author);
|
|
178
175
|
}
|
|
179
176
|
if (message.isSponsored !== false) {
|
|
180
177
|
obj.isSponsored = message.isSponsored;
|
|
181
178
|
}
|
|
182
179
|
if (message.topic !== undefined) {
|
|
183
|
-
obj.topic =
|
|
180
|
+
obj.topic = Topic.toJSON(message.topic);
|
|
184
181
|
}
|
|
185
182
|
if (message.image !== undefined) {
|
|
186
|
-
obj.image =
|
|
183
|
+
obj.image = File.toJSON(message.image);
|
|
187
184
|
}
|
|
188
185
|
if (message.canBeIndexed !== false) {
|
|
189
186
|
obj.canBeIndexed = message.canBeIndexed;
|
|
@@ -194,7 +191,7 @@ exports.Article = {
|
|
|
194
191
|
return obj;
|
|
195
192
|
},
|
|
196
193
|
};
|
|
197
|
-
|
|
194
|
+
export const TagsStruct = {
|
|
198
195
|
fromJSON(object) {
|
|
199
196
|
return {
|
|
200
197
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
@@ -212,14 +209,14 @@ exports.TagsStruct = {
|
|
|
212
209
|
return obj;
|
|
213
210
|
},
|
|
214
211
|
};
|
|
215
|
-
|
|
212
|
+
export const TagsArray = {
|
|
216
213
|
fromJSON(object) {
|
|
217
|
-
return { tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) =>
|
|
214
|
+
return { tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => TagsStruct.fromJSON(e)) : [] };
|
|
218
215
|
},
|
|
219
216
|
toJSON(message) {
|
|
220
217
|
const obj = {};
|
|
221
218
|
if (message.tags?.length) {
|
|
222
|
-
obj.tags = message.tags.map((e) =>
|
|
219
|
+
obj.tags = message.tags.map((e) => TagsStruct.toJSON(e));
|
|
223
220
|
}
|
|
224
221
|
return obj;
|
|
225
222
|
},
|
package/protobuf/Body.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Body.proto
|
|
7
|
-
|
|
8
|
-
exports.Body = void 0;
|
|
9
|
-
exports.Body = {
|
|
6
|
+
export const Body = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: CampaignInformation.proto
|
|
7
|
-
|
|
8
|
-
exports.CampaignInformation = void 0;
|
|
9
|
-
exports.CampaignInformation = {
|
|
6
|
+
export const CampaignInformation = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: ClickTracking.proto
|
|
7
|
-
|
|
8
|
-
exports.ClickTracking = void 0;
|
|
9
|
-
exports.ClickTracking = {
|
|
6
|
+
export const ClickTracking = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: CommercialEntity.proto
|
|
7
|
-
|
|
8
|
-
exports.CommercialEntity = void 0;
|
|
9
|
-
exports.CommercialEntity = {
|
|
6
|
+
export const CommercialEntity = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
premiums: globalThis.Array.isArray(object?.premiums) ? object.premiums.map((e) => globalThis.String(e)) : [],
|
package/protobuf/Cover.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Cover.proto
|
|
7
|
-
|
|
8
|
-
exports.Cover = void 0;
|
|
9
|
-
exports.Cover = {
|
|
6
|
+
export const Cover = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/Deadline.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Deadline.proto
|
|
7
|
-
|
|
8
|
-
exports.Deadline = void 0;
|
|
9
|
-
exports.Deadline = {
|
|
6
|
+
export const Deadline = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
isPassed: isSet(object.isPassed) ? globalThis.Boolean(object.isPassed) : false,
|
package/protobuf/Degree.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Degree.proto
|
|
7
|
-
|
|
8
|
-
exports.Degree = void 0;
|
|
9
|
-
exports.Degree = {
|
|
6
|
+
export const Degree = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
programmeCount: isSet(object.programmeCount) ? globalThis.Number(object.programmeCount) : undefined,
|
package/protobuf/Description.js
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Description.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Description = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { Link } from "./Link.js";
|
|
8
|
+
import { RichText } from "./RichText.js";
|
|
9
|
+
export const Description = {
|
|
13
10
|
fromJSON(object) {
|
|
14
11
|
return {
|
|
15
12
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
16
|
-
description: isSet(object.description) ?
|
|
17
|
-
searchLink: isSet(object.searchLink) ?
|
|
18
|
-
pilsLink: isSet(object.pilsLink) ?
|
|
19
|
-
sblpLink: isSet(object.sblpLink) ?
|
|
20
|
-
onlineSBLPLink: isSet(object.onlineSBLPLink) ?
|
|
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,
|
|
21
18
|
};
|
|
22
19
|
},
|
|
23
20
|
toJSON(message) {
|
|
@@ -26,19 +23,19 @@ exports.Description = {
|
|
|
26
23
|
obj.name = message.name;
|
|
27
24
|
}
|
|
28
25
|
if (message.description !== undefined) {
|
|
29
|
-
obj.description =
|
|
26
|
+
obj.description = RichText.toJSON(message.description);
|
|
30
27
|
}
|
|
31
28
|
if (message.searchLink !== undefined) {
|
|
32
|
-
obj.searchLink =
|
|
29
|
+
obj.searchLink = Link.toJSON(message.searchLink);
|
|
33
30
|
}
|
|
34
31
|
if (message.pilsLink !== undefined) {
|
|
35
|
-
obj.pilsLink =
|
|
32
|
+
obj.pilsLink = Link.toJSON(message.pilsLink);
|
|
36
33
|
}
|
|
37
34
|
if (message.sblpLink !== undefined) {
|
|
38
|
-
obj.sblpLink =
|
|
35
|
+
obj.sblpLink = Link.toJSON(message.sblpLink);
|
|
39
36
|
}
|
|
40
37
|
if (message.onlineSBLPLink !== undefined) {
|
|
41
|
-
obj.onlineSBLPLink =
|
|
38
|
+
obj.onlineSBLPLink = Link.toJSON(message.onlineSBLPLink);
|
|
42
39
|
}
|
|
43
40
|
return obj;
|
|
44
41
|
},
|
package/protobuf/Discipline.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Discipline.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Discipline = void 0;
|
|
9
6
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
import { Description } from "./Description.js";
|
|
8
|
+
import { EssentialInformation } from "./EssentialInformation.js";
|
|
9
|
+
import { Link } from "./Link.js";
|
|
10
|
+
export const Discipline = {
|
|
14
11
|
fromJSON(object) {
|
|
15
12
|
return {
|
|
16
13
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
@@ -25,10 +22,10 @@ exports.Discipline = {
|
|
|
25
22
|
promo: isSet(object.promo) ? globalThis.String(object.promo) : undefined,
|
|
26
23
|
parentName: isSet(object.parentName) ? globalThis.String(object.parentName) : undefined,
|
|
27
24
|
virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
|
|
28
|
-
link: isSet(object.link) ?
|
|
29
|
-
description: isSet(object.description) ?
|
|
25
|
+
link: isSet(object.link) ? Link.fromJSON(object.link) : undefined,
|
|
26
|
+
description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
|
|
30
27
|
essentialInformation: isSet(object.essentialInformation)
|
|
31
|
-
?
|
|
28
|
+
? EssentialInformation.fromJSON(object.essentialInformation)
|
|
32
29
|
: undefined,
|
|
33
30
|
};
|
|
34
31
|
},
|
|
@@ -71,13 +68,13 @@ exports.Discipline = {
|
|
|
71
68
|
obj.virtualPath = message.virtualPath;
|
|
72
69
|
}
|
|
73
70
|
if (message.link !== undefined) {
|
|
74
|
-
obj.link =
|
|
71
|
+
obj.link = Link.toJSON(message.link);
|
|
75
72
|
}
|
|
76
73
|
if (message.description !== undefined) {
|
|
77
|
-
obj.description =
|
|
74
|
+
obj.description = Description.toJSON(message.description);
|
|
78
75
|
}
|
|
79
76
|
if (message.essentialInformation !== undefined) {
|
|
80
|
-
obj.essentialInformation =
|
|
77
|
+
obj.essentialInformation = EssentialInformation.toJSON(message.essentialInformation);
|
|
81
78
|
}
|
|
82
79
|
return obj;
|
|
83
80
|
},
|
package/protobuf/Duration.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: Duration.proto
|
|
7
|
-
|
|
8
|
-
exports.Duration = void 0;
|
|
9
|
-
exports.Duration = {
|
|
6
|
+
export const Duration = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: EnglishRequirement.proto
|
|
7
|
-
|
|
8
|
-
exports.EnglishRequirement = void 0;
|
|
9
|
-
exports.EnglishRequirement = {
|
|
6
|
+
export const EnglishRequirement = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
scale: isSet(object.scale) ? globalThis.String(object.scale) : "",
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: EssentialInformation.proto
|
|
7
|
-
|
|
8
|
-
exports.EssentialInformation = void 0;
|
|
9
|
-
exports.EssentialInformation = {
|
|
6
|
+
export const EssentialInformation = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
package/protobuf/File.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: File.proto
|
|
7
|
-
|
|
8
|
-
exports.File = void 0;
|
|
9
|
-
exports.File = {
|
|
6
|
+
export const File = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
|
|
@@ -22,7 +19,7 @@ exports.File = {
|
|
|
22
19
|
hasPreview: isSet(object.hasPreview) ? globalThis.Boolean(object.hasPreview) : false,
|
|
23
20
|
url: isSet(object.url) ? globalThis.String(object.url) : undefined,
|
|
24
21
|
isVideo: isSet(object.isVideo) ? globalThis.Boolean(object.isVideo) : false,
|
|
25
|
-
preview: isSet(object.preview) ?
|
|
22
|
+
preview: isSet(object.preview) ? File.fromJSON(object.preview) : undefined,
|
|
26
23
|
};
|
|
27
24
|
},
|
|
28
25
|
toJSON(message) {
|
|
@@ -67,7 +64,7 @@ exports.File = {
|
|
|
67
64
|
obj.isVideo = message.isVideo;
|
|
68
65
|
}
|
|
69
66
|
if (message.preview !== undefined) {
|
|
70
|
-
obj.preview =
|
|
67
|
+
obj.preview = File.toJSON(message.preview);
|
|
71
68
|
}
|
|
72
69
|
return obj;
|
|
73
70
|
},
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.5
|
|
5
4
|
// protoc v3.12.4
|
|
6
5
|
// source: GPARequirement.proto
|
|
7
|
-
|
|
8
|
-
exports.GPARequirement = void 0;
|
|
9
|
-
exports.GPARequirement = {
|
|
6
|
+
export const GPARequirement = {
|
|
10
7
|
fromJSON(object) {
|
|
11
8
|
return {
|
|
12
9
|
scale: isSet(object.scale) ? globalThis.String(object.scale) : "",
|