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