@studyportals/domain-client 7.0.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.
Files changed (152) hide show
  1. package/index.js +81 -34
  2. package/package.json +18 -2
  3. package/protobuf/Area.js +4 -1
  4. package/protobuf/Article.js +33 -30
  5. package/protobuf/Body.js +4 -1
  6. package/protobuf/CampaignInformation.js +4 -1
  7. package/protobuf/ClickTracking.js +4 -1
  8. package/protobuf/CommercialEntity.js +4 -1
  9. package/protobuf/Cover.js +4 -1
  10. package/protobuf/Deadline.js +4 -1
  11. package/protobuf/Degree.js +4 -1
  12. package/protobuf/Description.js +16 -13
  13. package/protobuf/Discipline.js +13 -10
  14. package/protobuf/Duration.js +4 -1
  15. package/protobuf/EnglishRequirement.js +4 -1
  16. package/protobuf/EssentialInformation.js +4 -1
  17. package/protobuf/File.js +6 -3
  18. package/protobuf/GPARequirement.js +4 -1
  19. package/protobuf/InternalLink.js +6 -3
  20. package/protobuf/Link.js +4 -1
  21. package/protobuf/LivingCost.js +4 -1
  22. package/protobuf/Location.js +11 -8
  23. package/protobuf/Logo.js +4 -1
  24. package/protobuf/MiniProgrammeCard.js +13 -10
  25. package/protobuf/OptionalLink.js +4 -1
  26. package/protobuf/Organisation.js +89 -86
  27. package/protobuf/OrganisationInformation.js +4 -1
  28. package/protobuf/OrganisationRanking.js +10 -7
  29. package/protobuf/Person.js +7 -4
  30. package/protobuf/ProgrammeCard.js +46 -43
  31. package/protobuf/ProgrammeGrid.js +12 -9
  32. package/protobuf/Ranking.js +9 -6
  33. package/protobuf/RankingInstitute.js +7 -4
  34. package/protobuf/Review.js +7 -4
  35. package/protobuf/ReviewRating.js +4 -1
  36. package/protobuf/RichText.js +4 -1
  37. package/protobuf/SocialLink.js +4 -1
  38. package/protobuf/StartDate.js +7 -4
  39. package/protobuf/Timing.js +10 -7
  40. package/protobuf/Topic.js +4 -1
  41. package/protobuf/TrackedLink.js +7 -4
  42. package/protobuf/Tracking.js +7 -4
  43. package/protobuf/TuitionFee.js +4 -1
  44. package/protobuf/Unibuddy.js +4 -1
  45. package/protobuf/index.js +58 -42
  46. package/src/clients/article-detail-page-client.js +8 -4
  47. package/src/clients/index.js +20 -4
  48. package/src/clients/organisation-page-client.js +8 -4
  49. package/src/clients/protobuf-client.js +7 -3
  50. package/src/clients/public-mini-programme-card-client.js +8 -4
  51. package/src/domain-client.js +13 -9
  52. package/src/exceptions/bad-request-exception.js +5 -1
  53. package/src/exceptions/client-exception.js +5 -1
  54. package/src/exceptions/internal-server-exception.js +5 -1
  55. package/src/exceptions/not-found-exception.js +5 -1
  56. package/src/exceptions/property-not-available-exception.js +5 -1
  57. package/src/factories/DateFactory.js +5 -1
  58. package/src/factories/InternalLinkFactory.js +5 -1
  59. package/src/i-api-response.js +2 -1
  60. package/src/i-class-factory.js +2 -1
  61. package/src/i-model-description.js +4 -1
  62. package/src/model-client.js +12 -8
  63. package/src/model-factory.js +14 -10
  64. package/src/models/bestfit-programme/bestfit-programme-client.js +6 -2
  65. package/src/models/bestfit-programme/i-best-fit-programme.js +2 -1
  66. package/src/models/bestfit-programme/i-city.js +2 -1
  67. package/src/models/bestfit-programme/i-living-cost.js +2 -1
  68. package/src/models/city-search-document/city-search-document-client.js +6 -2
  69. package/src/models/city-search-document/i-city-search-document.js +2 -1
  70. package/src/models/common/i-city.js +2 -1
  71. package/src/models/common/i-country.js +2 -1
  72. package/src/models/common/i-english-requirements.js +2 -1
  73. package/src/models/common/i-g-p-a-requirement.js +2 -1
  74. package/src/models/common/i-internal-link.js +2 -1
  75. package/src/models/common/i-logo.js +2 -1
  76. package/src/models/common/i-review-rating.js +2 -1
  77. package/src/models/common/i-tuition-fee.js +2 -1
  78. package/src/models/copilot-country/copilot-country-client.js +6 -2
  79. package/src/models/copilot-country/i-copilot-country.js +2 -1
  80. package/src/models/copilot-country/i-copilot-ranking-card.js +2 -1
  81. package/src/models/copilot-programme/copilot-programme-client.js +6 -2
  82. package/src/models/copilot-programme/i-copilot-programme.js +2 -1
  83. package/src/models/customerio-organisation/customerio-organisation-client.js +6 -2
  84. package/src/models/customerio-organisation/i-customer-io-organisation.js +2 -1
  85. package/src/models/customerio-organisation/i-review.js +2 -1
  86. package/src/models/customerio-programme/customerio-programme-client.js +6 -2
  87. package/src/models/customerio-programme/i-customer-io-programme.js +2 -1
  88. package/src/models/customerio-programme/i-internal-link.js +2 -1
  89. package/src/models/faq-static-content/i-faq-static-content.js +2 -1
  90. package/src/models/faq-static-content/i-faq.js +2 -1
  91. package/src/models/faq-static-content/i-static-content-url.js +2 -1
  92. package/src/models/faq-static-content/i-static-content.js +2 -1
  93. package/src/models/faq-static-content/public-faq-static-content-client.js +6 -2
  94. package/src/models/organisation-card/i-organisation-card.js +2 -1
  95. package/src/models/organisation-card/i-ranking-discipline.js +2 -1
  96. package/src/models/organisation-card/organisation-card-client.js +6 -2
  97. package/src/models/organisation-for-search/i-organisation-for-search.js +2 -1
  98. package/src/models/organisation-for-search/public-organisation-for-search-client.js +6 -2
  99. package/src/models/organisation-search-document/i-organisation-search-document.js +2 -1
  100. package/src/models/organisation-search-document/organisation-search-document-client.js +6 -2
  101. package/src/models/programme-card/i-click-tracking-data.js +2 -1
  102. package/src/models/programme-card/i-cover.js +2 -1
  103. package/src/models/programme-card/i-deadline.js +2 -1
  104. package/src/models/programme-card/i-duration.js +2 -1
  105. package/src/models/programme-card/i-internal-link.js +2 -1
  106. package/src/models/programme-card/i-link.js +2 -1
  107. package/src/models/programme-card/i-location.js +2 -1
  108. package/src/models/programme-card/i-logo.js +2 -1
  109. package/src/models/programme-card/i-optional-link.js +2 -1
  110. package/src/models/programme-card/i-programme-card.js +2 -1
  111. package/src/models/programme-card/i-start-date.js +2 -1
  112. package/src/models/programme-card/i-timing.js +2 -1
  113. package/src/models/programme-card/i-tracked-link.js +2 -1
  114. package/src/models/programme-card/i-tracking.js +2 -1
  115. package/src/models/programme-card/i-tuition-fee.js +2 -1
  116. package/src/models/programme-card/programme-card-client.js +6 -2
  117. package/src/models/ranking-cards/i-ranking.js +2 -1
  118. package/src/models/scholarship-card/i-scholarship-card-v2.js +2 -1
  119. package/src/models/scholarship-card/i-scholarship-card.js +2 -1
  120. package/src/models/scholarship-card/public-scholarship-card-client.js +6 -2
  121. package/src/models/scholarship-card/scholarship-card-v2-client.js +6 -2
  122. package/src/models/scholarship-search-document/i-scholarship-search-document.js +2 -1
  123. package/src/models/scholarship-search-document/scholarship-search-document-client.js +6 -2
  124. package/src/models/search-discipline/i-search-discipline.js +2 -1
  125. package/src/models/search-discipline/public-search-discipline-client.js +6 -2
  126. package/src/models/search-projection/i-geo-targeting-configuration.js +2 -1
  127. package/src/models/search-projection/i-geo-targeting-values.js +2 -1
  128. package/src/models/search-projection/i-organisation-values.js +2 -1
  129. package/src/models/search-projection/i-premium-values.js +2 -1
  130. package/src/models/search-projection/i-search-projection.js +2 -1
  131. package/src/models/search-projection/i-tuition-values.js +2 -1
  132. package/src/models/search-projection/search-projection-client.js +6 -2
  133. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +2 -1
  134. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +6 -2
  135. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +2 -1
  136. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +6 -2
  137. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +2 -1
  138. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +6 -2
  139. package/src/models/sitemap-country-degree-info/i-degree-info.js +2 -1
  140. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +2 -1
  141. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +6 -2
  142. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +2 -1
  143. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +6 -2
  144. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +2 -1
  145. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +6 -2
  146. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +2 -1
  147. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +6 -2
  148. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +2 -1
  149. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +6 -2
  150. package/src/types/portal-map.js +2 -1
  151. package/src/types/portal-type.js +5 -2
  152. package/src/types.js +2 -1
package/index.js CHANGED
@@ -1,34 +1,81 @@
1
- import { BadRequestException } from "./src/exceptions/bad-request-exception";
2
- import { ClientException } from "./src/exceptions/client-exception";
3
- import { InternalServerException } from "./src/exceptions/internal-server-exception";
4
- import { NotFoundException } from "./src/exceptions/not-found-exception";
5
- import { PropertyNotAvailableException } from "./src/exceptions/property-not-available-exception";
6
- import { ProgrammeCardClient } from "./src/models/programme-card/programme-card-client";
7
- import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client";
8
- import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client";
9
- import { CustomerIOProgrammeClient } from "./src/models/customerio-programme/customerio-programme-client";
10
- import { PublicFaqStaticContentClient } from "./src/models/faq-static-content/public-faq-static-content-client";
11
- import { SitemapProgrammeInfoClient } from "./src/models/sitemap-programme-info/sitemap-programme-info-client";
12
- import { SitemapCountriesInfoClient } from "./src/models/sitemap-countries-info/sitemap-countries-info-client";
13
- import { SitemapCountryDegreeInfoClient } from "./src/models/sitemap-country-degree-info/sitemap-country-degree-info-client";
14
- import { PublicSearchDisciplineClient } from "./src/models/search-discipline/public-search-discipline-client";
15
- import { SitemapDisciplinesInfoClient } from "./src/models/sitemap-disciplines-info/sitemap-disciplines-info-client";
16
- import { CustomerIOOrganisationClient } from "./src/models/customerio-organisation/customerio-organisation-client";
17
- import { SitemapOrganisationsInfoClient } from "./src/models/sitemap-organisations-info/sitemap-organisations-info-client";
18
- import { OrganisationCardClient } from "./src/models/organisation-card/organisation-card-client";
19
- import { OrganisationSearchDocumentClient } from "./src/models/organisation-search-document/organisation-search-document-client";
20
- import { SitemapRankingsInfoClient } from "./src/models/sitemap-rankings-info/sitemap-rankings-info-client";
21
- import { SitemapArticlesInfoClient } from "./src/models/sitemap-articles-info/sitemap-articles-info-client";
22
- import { SitemapCitiesInfoClient } from "./src/models/sitemap-cities-info/sitemap-cities-info-client";
23
- import { PublicScholarshipCardClient } from "./src/models/scholarship-card/public-scholarship-card-client";
24
- import { ScholarshipCardV2Client } from "./src/models/scholarship-card/scholarship-card-v2-client";
25
- import { ScholarshipSearchDocumentClient } from "./src/models/scholarship-search-document/scholarship-search-document-client";
26
- import { CitySearchDocumentClient } from "./src/models/city-search-document/city-search-document-client";
27
- import { PortalType } from "./src/types/portal-type";
28
- import { ModelClient } from "./src/model-client";
29
- import { PublicOrganisationForSearchClient } from "./src/models/organisation-for-search/public-organisation-for-search-client";
30
- import { CopilotProgrammeClient } from "./src/models/copilot-programme/copilot-programme-client";
31
- import { CopilotCountryClient } from "./src/models/copilot-country/copilot-country-client";
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';
34
- export * from './protobuf';
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,8 +1,24 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "7.0.0",
3
+ "version": "7.0.1-beta.1",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "main": "index.js",
6
+ "module": "index.js",
7
+ "types": "index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "require": "./index.js",
12
+ "import": "./index.js",
13
+ "default": "./index.js"
14
+ },
15
+ "./protobuf": {
16
+ "types": "./protobuf/index.d.ts",
17
+ "require": "./protobuf/index.js",
18
+ "import": "./protobuf/index.js",
19
+ "default": "./protobuf/index.js"
20
+ }
21
+ },
6
22
  "author": "StudyPortals B.V.",
7
23
  "sideEffects": false,
8
24
  "contributors": [
@@ -17,7 +33,7 @@
17
33
  "lint": "eslint . --ext .ts --max-warnings=0",
18
34
  "lint:fix": "eslint . --ext .ts --fix",
19
35
  "pre-push": "npm run test && npm run coverage && npm run lint",
20
- "prepare-dist": "npm run test && rm -fR bin && npx tsc && cp package.json bin/package.json && rm -fR bin/tests",
36
+ "prepare-dist": "npm run test && rm -fR bin && npx tsc && cp package.json bin/package.json && rm -fR bin/tests",
21
37
  "publish-beta": "npm version prerelease --preid=beta && npm run prepare-dist && npm publish ./bin --tag beta",
22
38
  "publish-major": "npm version major && npm run prepare-dist && npm publish ./bin",
23
39
  "publish-minor": "npm version minor && npm run prepare-dist && npm publish ./bin",
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
- export const Area = {
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,
@@ -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
- import { Discipline } from "./Discipline";
8
- import { File } from "./File";
9
- import { Country } from "./Organisation";
10
- import { Person } from "./Person";
11
- import { Topic } from "./Topic";
12
- export const Article = {
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
- export const TagsStruct = {
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
- export const TagsArray = {
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
- export const Body = {
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
- export const CampaignInformation = {
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
- export const ClickTracking = {
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
- export const CommercialEntity = {
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
- export const Cover = {
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,
@@ -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
- export const Deadline = {
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,
@@ -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
- export const Degree = {
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,
@@ -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
- import { Link } from "./Link";
8
- import { RichText } from "./RichText";
9
- export const Description = {
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
  },
@@ -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
- import { Description } from "./Description";
8
- import { EssentialInformation } from "./EssentialInformation";
9
- import { Link } from "./Link";
10
- export const Discipline = {
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
  },
@@ -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
- export const Duration = {
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
- export const EnglishRequirement = {
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
- export const EssentialInformation = {
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,