@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.
Files changed (152) hide show
  1. package/index.js +34 -81
  2. package/package.json +1 -1
  3. package/protobuf/Area.js +1 -4
  4. package/protobuf/Article.js +30 -33
  5. package/protobuf/Body.js +1 -4
  6. package/protobuf/CampaignInformation.js +1 -4
  7. package/protobuf/ClickTracking.js +1 -4
  8. package/protobuf/CommercialEntity.js +1 -4
  9. package/protobuf/Cover.js +1 -4
  10. package/protobuf/Deadline.js +1 -4
  11. package/protobuf/Degree.js +1 -4
  12. package/protobuf/Description.js +13 -16
  13. package/protobuf/Discipline.js +10 -13
  14. package/protobuf/Duration.js +1 -4
  15. package/protobuf/EnglishRequirement.js +1 -4
  16. package/protobuf/EssentialInformation.js +1 -4
  17. package/protobuf/File.js +3 -6
  18. package/protobuf/GPARequirement.js +1 -4
  19. package/protobuf/InternalLink.js +3 -6
  20. package/protobuf/Link.js +1 -4
  21. package/protobuf/LivingCost.js +1 -4
  22. package/protobuf/Location.js +8 -11
  23. package/protobuf/Logo.js +1 -4
  24. package/protobuf/MiniProgrammeCard.js +10 -13
  25. package/protobuf/OptionalLink.js +1 -4
  26. package/protobuf/Organisation.js +86 -89
  27. package/protobuf/OrganisationInformation.js +1 -4
  28. package/protobuf/OrganisationRanking.js +7 -10
  29. package/protobuf/Person.js +4 -7
  30. package/protobuf/ProgrammeCard.js +43 -46
  31. package/protobuf/ProgrammeGrid.js +9 -12
  32. package/protobuf/Ranking.js +6 -9
  33. package/protobuf/RankingInstitute.js +4 -7
  34. package/protobuf/Review.js +4 -7
  35. package/protobuf/ReviewRating.js +1 -4
  36. package/protobuf/RichText.js +1 -4
  37. package/protobuf/SocialLink.js +1 -4
  38. package/protobuf/StartDate.js +4 -7
  39. package/protobuf/Timing.js +7 -10
  40. package/protobuf/Topic.js +1 -4
  41. package/protobuf/TrackedLink.js +4 -7
  42. package/protobuf/Tracking.js +4 -7
  43. package/protobuf/TuitionFee.js +1 -4
  44. package/protobuf/Unibuddy.js +1 -4
  45. package/protobuf/index.js +42 -58
  46. package/src/clients/article-detail-page-client.js +4 -8
  47. package/src/clients/index.js +4 -20
  48. package/src/clients/organisation-page-client.js +4 -8
  49. package/src/clients/protobuf-client.js +3 -7
  50. package/src/clients/public-mini-programme-card-client.js +4 -8
  51. package/src/domain-client.js +9 -13
  52. package/src/exceptions/bad-request-exception.js +1 -5
  53. package/src/exceptions/client-exception.js +1 -5
  54. package/src/exceptions/internal-server-exception.js +1 -5
  55. package/src/exceptions/not-found-exception.js +1 -5
  56. package/src/exceptions/property-not-available-exception.js +1 -5
  57. package/src/factories/DateFactory.js +1 -5
  58. package/src/factories/InternalLinkFactory.js +1 -5
  59. package/src/i-api-response.js +1 -2
  60. package/src/i-class-factory.js +1 -2
  61. package/src/i-model-description.js +1 -4
  62. package/src/model-client.js +8 -12
  63. package/src/model-factory.js +10 -14
  64. package/src/models/bestfit-programme/bestfit-programme-client.js +2 -6
  65. package/src/models/bestfit-programme/i-best-fit-programme.js +1 -2
  66. package/src/models/bestfit-programme/i-city.js +1 -2
  67. package/src/models/bestfit-programme/i-living-cost.js +1 -2
  68. package/src/models/city-search-document/city-search-document-client.js +2 -6
  69. package/src/models/city-search-document/i-city-search-document.js +1 -2
  70. package/src/models/common/i-city.js +1 -2
  71. package/src/models/common/i-country.js +1 -2
  72. package/src/models/common/i-english-requirements.js +1 -2
  73. package/src/models/common/i-g-p-a-requirement.js +1 -2
  74. package/src/models/common/i-internal-link.js +1 -2
  75. package/src/models/common/i-logo.js +1 -2
  76. package/src/models/common/i-review-rating.js +1 -2
  77. package/src/models/common/i-tuition-fee.js +1 -2
  78. package/src/models/copilot-country/copilot-country-client.js +2 -6
  79. package/src/models/copilot-country/i-copilot-country.js +1 -2
  80. package/src/models/copilot-country/i-copilot-ranking-card.js +1 -2
  81. package/src/models/copilot-programme/copilot-programme-client.js +2 -6
  82. package/src/models/copilot-programme/i-copilot-programme.js +1 -2
  83. package/src/models/customerio-organisation/customerio-organisation-client.js +2 -6
  84. package/src/models/customerio-organisation/i-customer-io-organisation.js +1 -2
  85. package/src/models/customerio-organisation/i-review.js +1 -2
  86. package/src/models/customerio-programme/customerio-programme-client.js +2 -6
  87. package/src/models/customerio-programme/i-customer-io-programme.js +1 -2
  88. package/src/models/customerio-programme/i-internal-link.js +1 -2
  89. package/src/models/faq-static-content/i-faq-static-content.js +1 -2
  90. package/src/models/faq-static-content/i-faq.js +1 -2
  91. package/src/models/faq-static-content/i-static-content-url.js +1 -2
  92. package/src/models/faq-static-content/i-static-content.js +1 -2
  93. package/src/models/faq-static-content/public-faq-static-content-client.js +2 -6
  94. package/src/models/organisation-card/i-organisation-card.js +1 -2
  95. package/src/models/organisation-card/i-ranking-discipline.js +1 -2
  96. package/src/models/organisation-card/organisation-card-client.js +2 -6
  97. package/src/models/organisation-for-search/i-organisation-for-search.js +1 -2
  98. package/src/models/organisation-for-search/public-organisation-for-search-client.js +2 -6
  99. package/src/models/organisation-search-document/i-organisation-search-document.js +1 -2
  100. package/src/models/organisation-search-document/organisation-search-document-client.js +2 -6
  101. package/src/models/programme-card/i-click-tracking-data.js +1 -2
  102. package/src/models/programme-card/i-cover.js +1 -2
  103. package/src/models/programme-card/i-deadline.js +1 -2
  104. package/src/models/programme-card/i-duration.js +1 -2
  105. package/src/models/programme-card/i-internal-link.js +1 -2
  106. package/src/models/programme-card/i-link.js +1 -2
  107. package/src/models/programme-card/i-location.js +1 -2
  108. package/src/models/programme-card/i-logo.js +1 -2
  109. package/src/models/programme-card/i-optional-link.js +1 -2
  110. package/src/models/programme-card/i-programme-card.js +1 -2
  111. package/src/models/programme-card/i-start-date.js +1 -2
  112. package/src/models/programme-card/i-timing.js +1 -2
  113. package/src/models/programme-card/i-tracked-link.js +1 -2
  114. package/src/models/programme-card/i-tracking.js +1 -2
  115. package/src/models/programme-card/i-tuition-fee.js +1 -2
  116. package/src/models/programme-card/programme-card-client.js +2 -6
  117. package/src/models/ranking-cards/i-ranking.js +1 -2
  118. package/src/models/scholarship-card/i-scholarship-card-v2.js +1 -2
  119. package/src/models/scholarship-card/i-scholarship-card.js +1 -2
  120. package/src/models/scholarship-card/public-scholarship-card-client.js +2 -6
  121. package/src/models/scholarship-card/scholarship-card-v2-client.js +2 -6
  122. package/src/models/scholarship-search-document/i-scholarship-search-document.js +1 -2
  123. package/src/models/scholarship-search-document/scholarship-search-document-client.js +2 -6
  124. package/src/models/search-discipline/i-search-discipline.js +1 -2
  125. package/src/models/search-discipline/public-search-discipline-client.js +2 -6
  126. package/src/models/search-projection/i-geo-targeting-configuration.js +1 -2
  127. package/src/models/search-projection/i-geo-targeting-values.js +1 -2
  128. package/src/models/search-projection/i-organisation-values.js +1 -2
  129. package/src/models/search-projection/i-premium-values.js +1 -2
  130. package/src/models/search-projection/i-search-projection.js +1 -2
  131. package/src/models/search-projection/i-tuition-values.js +1 -2
  132. package/src/models/search-projection/search-projection-client.js +2 -6
  133. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +1 -2
  134. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +2 -6
  135. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +1 -2
  136. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +2 -6
  137. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +1 -2
  138. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +2 -6
  139. package/src/models/sitemap-country-degree-info/i-degree-info.js +1 -2
  140. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +1 -2
  141. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +2 -6
  142. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +1 -2
  143. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +2 -6
  144. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +1 -2
  145. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +2 -6
  146. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +1 -2
  147. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +2 -6
  148. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +1 -2
  149. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +2 -6
  150. package/src/types/portal-map.js +1 -2
  151. package/src/types/portal-type.js +2 -5
  152. package/src/types.js +1 -2
package/index.js CHANGED
@@ -1,81 +1,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.js");
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.js");
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.js");
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.js");
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.js");
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.js");
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.js");
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.js");
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.js");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "7.1.1-beta.0",
3
+ "version": "7.1.1-beta.2",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
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
- Object.defineProperty(exports, "__esModule", { value: true });
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,
@@ -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
- const Discipline_1 = require("./Discipline.js");
11
- const File_1 = require("./File.js");
12
- const Organisation_1 = require("./Organisation.js");
13
- const Person_1 = require("./Person.js");
14
- const Topic_1 = require("./Topic.js");
15
- exports.Article = {
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) ? exports.TagsArray.fromJSON(object.tags) : undefined,
36
+ tags: isSet(object.tags) ? TagsArray.fromJSON(object.tags) : undefined,
40
37
  relatedArticles: globalThis.Array.isArray(object?.relatedArticles)
41
- ? object.relatedArticles.map((e) => exports.Article.fromJSON(e))
38
+ ? object.relatedArticles.map((e) => Article.fromJSON(e))
42
39
  : [],
43
40
  relatedCountries: globalThis.Array.isArray(object?.relatedCountries)
44
- ? object.relatedCountries.map((e) => Organisation_1.Country.fromJSON(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) => Discipline_1.Discipline.fromJSON(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) => exports.Article.fromJSON(e))
59
+ ? object.featuredArticles.map((e) => Article.fromJSON(e))
63
60
  : [],
64
61
  recentArticles: globalThis.Array.isArray(object?.recentArticles)
65
- ? object.recentArticles.map((e) => exports.Article.fromJSON(e))
62
+ ? object.recentArticles.map((e) => Article.fromJSON(e))
66
63
  : [],
67
64
  archivedArticles: globalThis.Array.isArray(object?.archivedArticles)
68
- ? object.archivedArticles.map((e) => exports.Article.fromJSON(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) ? Person_1.Person.fromJSON(object.author) : undefined,
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) ? Topic_1.Topic.fromJSON(object.topic) : undefined,
74
- image: isSet(object.image) ? File_1.File.fromJSON(object.image) : undefined,
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 = exports.TagsArray.toJSON(message.tags);
138
+ obj.tags = TagsArray.toJSON(message.tags);
142
139
  }
143
140
  if (message.relatedArticles?.length) {
144
- obj.relatedArticles = message.relatedArticles.map((e) => exports.Article.toJSON(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) => Organisation_1.Country.toJSON(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) => Discipline_1.Discipline.toJSON(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) => exports.Article.toJSON(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) => exports.Article.toJSON(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) => exports.Article.toJSON(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 = Person_1.Person.toJSON(message.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 = Topic_1.Topic.toJSON(message.topic);
180
+ obj.topic = Topic.toJSON(message.topic);
184
181
  }
185
182
  if (message.image !== undefined) {
186
- obj.image = File_1.File.toJSON(message.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
- exports.TagsStruct = {
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
- exports.TagsArray = {
212
+ export const TagsArray = {
216
213
  fromJSON(object) {
217
- return { tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => exports.TagsStruct.fromJSON(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) => exports.TagsStruct.toJSON(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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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,
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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,
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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,
@@ -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
- const Link_1 = require("./Link.js");
11
- const RichText_1 = require("./RichText.js");
12
- exports.Description = {
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) ? 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,
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 = RichText_1.RichText.toJSON(message.description);
26
+ obj.description = RichText.toJSON(message.description);
30
27
  }
31
28
  if (message.searchLink !== undefined) {
32
- obj.searchLink = Link_1.Link.toJSON(message.searchLink);
29
+ obj.searchLink = Link.toJSON(message.searchLink);
33
30
  }
34
31
  if (message.pilsLink !== undefined) {
35
- obj.pilsLink = Link_1.Link.toJSON(message.pilsLink);
32
+ obj.pilsLink = Link.toJSON(message.pilsLink);
36
33
  }
37
34
  if (message.sblpLink !== undefined) {
38
- obj.sblpLink = Link_1.Link.toJSON(message.sblpLink);
35
+ obj.sblpLink = Link.toJSON(message.sblpLink);
39
36
  }
40
37
  if (message.onlineSBLPLink !== undefined) {
41
- obj.onlineSBLPLink = Link_1.Link.toJSON(message.onlineSBLPLink);
38
+ obj.onlineSBLPLink = Link.toJSON(message.onlineSBLPLink);
42
39
  }
43
40
  return obj;
44
41
  },
@@ -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
- const Description_1 = require("./Description.js");
11
- const EssentialInformation_1 = require("./EssentialInformation.js");
12
- const Link_1 = require("./Link.js");
13
- exports.Discipline = {
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) ? Link_1.Link.fromJSON(object.link) : undefined,
29
- description: isSet(object.description) ? Description_1.Description.fromJSON(object.description) : undefined,
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
- ? EssentialInformation_1.EssentialInformation.fromJSON(object.essentialInformation)
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 = Link_1.Link.toJSON(message.link);
71
+ obj.link = Link.toJSON(message.link);
75
72
  }
76
73
  if (message.description !== undefined) {
77
- obj.description = Description_1.Description.toJSON(message.description);
74
+ obj.description = Description.toJSON(message.description);
78
75
  }
79
76
  if (message.essentialInformation !== undefined) {
80
- obj.essentialInformation = EssentialInformation_1.EssentialInformation.toJSON(message.essentialInformation);
77
+ obj.essentialInformation = EssentialInformation.toJSON(message.essentialInformation);
81
78
  }
82
79
  return obj;
83
80
  },
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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
- Object.defineProperty(exports, "__esModule", { value: true });
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) ? exports.File.fromJSON(object.preview) : undefined,
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 = exports.File.toJSON(message.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
- Object.defineProperty(exports, "__esModule", { value: true });
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) : "",