@studyportals/domain-client 7.0.1-beta.3 → 7.0.1-beta.5

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 (302) hide show
  1. package/package.json +5 -1
  2. package/index.d.ts +0 -91
  3. package/protobuf/Area.d.ts +0 -11
  4. package/protobuf/Area.js +0 -30
  5. package/protobuf/Article.d.ts +0 -60
  6. package/protobuf/Article.js +0 -226
  7. package/protobuf/Body.d.ts +0 -11
  8. package/protobuf/Body.js +0 -30
  9. package/protobuf/CampaignInformation.d.ts +0 -11
  10. package/protobuf/CampaignInformation.js +0 -30
  11. package/protobuf/ClickTracking.d.ts +0 -11
  12. package/protobuf/ClickTracking.js +0 -30
  13. package/protobuf/CommercialEntity.d.ts +0 -14
  14. package/protobuf/CommercialEntity.js +0 -48
  15. package/protobuf/Cover.d.ts +0 -10
  16. package/protobuf/Cover.js +0 -26
  17. package/protobuf/Deadline.d.ts +0 -11
  18. package/protobuf/Deadline.js +0 -30
  19. package/protobuf/Degree.d.ts +0 -16
  20. package/protobuf/Degree.js +0 -50
  21. package/protobuf/Description.d.ts +0 -16
  22. package/protobuf/Description.js +0 -45
  23. package/protobuf/Discipline.d.ts +0 -26
  24. package/protobuf/Discipline.js +0 -84
  25. package/protobuf/Duration.d.ts +0 -11
  26. package/protobuf/Duration.js +0 -30
  27. package/protobuf/EnglishRequirement.d.ts +0 -11
  28. package/protobuf/EnglishRequirement.js +0 -30
  29. package/protobuf/EssentialInformation.d.ts +0 -17
  30. package/protobuf/EssentialInformation.js +0 -54
  31. package/protobuf/File.d.ts +0 -22
  32. package/protobuf/File.js +0 -74
  33. package/protobuf/GPARequirement.d.ts +0 -11
  34. package/protobuf/GPARequirement.js +0 -30
  35. package/protobuf/InternalLink.d.ts +0 -12
  36. package/protobuf/InternalLink.js +0 -30
  37. package/protobuf/Link.d.ts +0 -11
  38. package/protobuf/Link.js +0 -30
  39. package/protobuf/LivingCost.d.ts +0 -11
  40. package/protobuf/LivingCost.js +0 -30
  41. package/protobuf/Location.d.ts +0 -18
  42. package/protobuf/Location.js +0 -56
  43. package/protobuf/Logo.d.ts +0 -10
  44. package/protobuf/Logo.js +0 -26
  45. package/protobuf/MiniProgrammeCard.d.ts +0 -18
  46. package/protobuf/MiniProgrammeCard.js +0 -50
  47. package/protobuf/OptionalLink.d.ts +0 -12
  48. package/protobuf/OptionalLink.js +0 -34
  49. package/protobuf/Organisation.d.ts +0 -211
  50. package/protobuf/Organisation.js +0 -853
  51. package/protobuf/OrganisationInformation.d.ts +0 -9
  52. package/protobuf/OrganisationInformation.js +0 -20
  53. package/protobuf/OrganisationRanking.d.ts +0 -15
  54. package/protobuf/OrganisationRanking.js +0 -41
  55. package/protobuf/Person.d.ts +0 -14
  56. package/protobuf/Person.js +0 -40
  57. package/protobuf/ProgrammeCard.d.ts +0 -60
  58. package/protobuf/ProgrammeCard.js +0 -197
  59. package/protobuf/ProgrammeGrid.d.ts +0 -14
  60. package/protobuf/ProgrammeGrid.js +0 -37
  61. package/protobuf/Ranking.d.ts +0 -22
  62. package/protobuf/Ranking.js +0 -76
  63. package/protobuf/RankingInstitute.d.ts +0 -15
  64. package/protobuf/RankingInstitute.js +0 -44
  65. package/protobuf/Review.d.ts +0 -17
  66. package/protobuf/Review.js +0 -52
  67. package/protobuf/ReviewRating.d.ts +0 -12
  68. package/protobuf/ReviewRating.js +0 -34
  69. package/protobuf/RichText.d.ts +0 -10
  70. package/protobuf/RichText.js +0 -28
  71. package/protobuf/SocialLink.d.ts +0 -21
  72. package/protobuf/SocialLink.js +0 -70
  73. package/protobuf/StartDate.d.ts +0 -13
  74. package/protobuf/StartDate.js +0 -38
  75. package/protobuf/Timing.d.ts +0 -17
  76. package/protobuf/Timing.js +0 -49
  77. package/protobuf/Topic.d.ts +0 -10
  78. package/protobuf/Topic.js +0 -26
  79. package/protobuf/TrackedLink.d.ts +0 -13
  80. package/protobuf/TrackedLink.js +0 -36
  81. package/protobuf/Tracking.d.ts +0 -18
  82. package/protobuf/Tracking.js +0 -58
  83. package/protobuf/TuitionFee.d.ts +0 -13
  84. package/protobuf/TuitionFee.js +0 -38
  85. package/protobuf/Unibuddy.d.ts +0 -10
  86. package/protobuf/Unibuddy.js +0 -26
  87. package/protobuf/index.d.ts +0 -45
  88. package/protobuf/index.js +0 -45
  89. package/src/clients/article-detail-page-client.d.ts +0 -8
  90. package/src/clients/article-detail-page-client.js +0 -16
  91. package/src/clients/index.d.ts +0 -7
  92. package/src/clients/index.js +0 -7
  93. package/src/clients/organisation-page-client.d.ts +0 -8
  94. package/src/clients/organisation-page-client.js +0 -16
  95. package/src/clients/protobuf-client.d.ts +0 -14
  96. package/src/clients/protobuf-client.js +0 -26
  97. package/src/clients/public-mini-programme-card-client.d.ts +0 -8
  98. package/src/clients/public-mini-programme-card-client.js +0 -16
  99. package/src/domain-client.d.ts +0 -14
  100. package/src/domain-client.js +0 -91
  101. package/src/exceptions/bad-request-exception.d.ts +0 -2
  102. package/src/exceptions/bad-request-exception.js +0 -2
  103. package/src/exceptions/client-exception.d.ts +0 -2
  104. package/src/exceptions/client-exception.js +0 -2
  105. package/src/exceptions/internal-server-exception.d.ts +0 -2
  106. package/src/exceptions/internal-server-exception.js +0 -2
  107. package/src/exceptions/not-found-exception.d.ts +0 -2
  108. package/src/exceptions/not-found-exception.js +0 -2
  109. package/src/exceptions/property-not-available-exception.d.ts +0 -2
  110. package/src/exceptions/property-not-available-exception.js +0 -2
  111. package/src/factories/DateFactory.d.ts +0 -5
  112. package/src/factories/DateFactory.js +0 -5
  113. package/src/factories/InternalLinkFactory.d.ts +0 -9
  114. package/src/factories/InternalLinkFactory.js +0 -22
  115. package/src/i-api-response.d.ts +0 -6
  116. package/src/i-api-response.js +0 -1
  117. package/src/i-class-factory.d.ts +0 -4
  118. package/src/i-class-factory.js +0 -1
  119. package/src/i-model-description.d.ts +0 -7
  120. package/src/i-model-description.js +0 -5
  121. package/src/model-client.d.ts +0 -16
  122. package/src/model-client.js +0 -43
  123. package/src/model-factory.d.ts +0 -11
  124. package/src/model-factory.js +0 -68
  125. package/src/models/bestfit-programme/bestfit-programme-client.d.ts +0 -7
  126. package/src/models/bestfit-programme/bestfit-programme-client.js +0 -12
  127. package/src/models/bestfit-programme/i-best-fit-programme.d.ts +0 -82
  128. package/src/models/bestfit-programme/i-best-fit-programme.js +0 -1
  129. package/src/models/bestfit-programme/i-city.d.ts +0 -14
  130. package/src/models/bestfit-programme/i-city.js +0 -1
  131. package/src/models/bestfit-programme/i-living-cost.d.ts +0 -20
  132. package/src/models/bestfit-programme/i-living-cost.js +0 -1
  133. package/src/models/city-search-document/city-search-document-client.d.ts +0 -7
  134. package/src/models/city-search-document/city-search-document-client.js +0 -12
  135. package/src/models/city-search-document/i-city-search-document.d.ts +0 -7
  136. package/src/models/city-search-document/i-city-search-document.js +0 -1
  137. package/src/models/common/i-city.d.ts +0 -14
  138. package/src/models/common/i-city.js +0 -1
  139. package/src/models/common/i-country.d.ts +0 -20
  140. package/src/models/common/i-country.js +0 -1
  141. package/src/models/common/i-english-requirements.d.ts +0 -51
  142. package/src/models/common/i-english-requirements.js +0 -1
  143. package/src/models/common/i-g-p-a-requirement.d.ts +0 -20
  144. package/src/models/common/i-g-p-a-requirement.js +0 -1
  145. package/src/models/common/i-internal-link.d.ts +0 -28
  146. package/src/models/common/i-internal-link.js +0 -1
  147. package/src/models/common/i-logo.d.ts +0 -14
  148. package/src/models/common/i-logo.js +0 -1
  149. package/src/models/common/i-review-rating.d.ts +0 -26
  150. package/src/models/common/i-review-rating.js +0 -1
  151. package/src/models/common/i-tuition-fee.d.ts +0 -50
  152. package/src/models/common/i-tuition-fee.js +0 -1
  153. package/src/models/copilot-country/copilot-country-client.d.ts +0 -7
  154. package/src/models/copilot-country/copilot-country-client.js +0 -12
  155. package/src/models/copilot-country/i-copilot-country.d.ts +0 -39
  156. package/src/models/copilot-country/i-copilot-country.js +0 -1
  157. package/src/models/copilot-country/i-copilot-ranking-card.d.ts +0 -38
  158. package/src/models/copilot-country/i-copilot-ranking-card.js +0 -1
  159. package/src/models/copilot-programme/copilot-programme-client.d.ts +0 -7
  160. package/src/models/copilot-programme/copilot-programme-client.js +0 -12
  161. package/src/models/copilot-programme/i-copilot-programme.d.ts +0 -125
  162. package/src/models/copilot-programme/i-copilot-programme.js +0 -1
  163. package/src/models/customerio-organisation/customerio-organisation-client.d.ts +0 -7
  164. package/src/models/customerio-organisation/customerio-organisation-client.js +0 -12
  165. package/src/models/customerio-organisation/i-customer-io-organisation.d.ts +0 -35
  166. package/src/models/customerio-organisation/i-customer-io-organisation.js +0 -1
  167. package/src/models/customerio-organisation/i-review.d.ts +0 -7
  168. package/src/models/customerio-organisation/i-review.js +0 -1
  169. package/src/models/customerio-programme/customerio-programme-client.d.ts +0 -7
  170. package/src/models/customerio-programme/customerio-programme-client.js +0 -12
  171. package/src/models/customerio-programme/i-customer-io-programme.d.ts +0 -107
  172. package/src/models/customerio-programme/i-customer-io-programme.js +0 -1
  173. package/src/models/customerio-programme/i-internal-link.d.ts +0 -28
  174. package/src/models/customerio-programme/i-internal-link.js +0 -1
  175. package/src/models/faq-static-content/i-faq-static-content.d.ts +0 -10
  176. package/src/models/faq-static-content/i-faq-static-content.js +0 -1
  177. package/src/models/faq-static-content/i-faq.d.ts +0 -4
  178. package/src/models/faq-static-content/i-faq.js +0 -1
  179. package/src/models/faq-static-content/i-static-content-url.d.ts +0 -4
  180. package/src/models/faq-static-content/i-static-content-url.js +0 -1
  181. package/src/models/faq-static-content/i-static-content.d.ts +0 -5
  182. package/src/models/faq-static-content/i-static-content.js +0 -1
  183. package/src/models/faq-static-content/public-faq-static-content-client.d.ts +0 -7
  184. package/src/models/faq-static-content/public-faq-static-content-client.js +0 -12
  185. package/src/models/organisation-card/i-organisation-card.d.ts +0 -39
  186. package/src/models/organisation-card/i-organisation-card.js +0 -1
  187. package/src/models/organisation-card/i-ranking-discipline.d.ts +0 -4
  188. package/src/models/organisation-card/i-ranking-discipline.js +0 -1
  189. package/src/models/organisation-card/organisation-card-client.d.ts +0 -7
  190. package/src/models/organisation-card/organisation-card-client.js +0 -12
  191. package/src/models/organisation-for-search/i-organisation-for-search.d.ts +0 -32
  192. package/src/models/organisation-for-search/i-organisation-for-search.js +0 -1
  193. package/src/models/organisation-for-search/public-organisation-for-search-client.d.ts +0 -7
  194. package/src/models/organisation-for-search/public-organisation-for-search-client.js +0 -12
  195. package/src/models/organisation-search-document/i-organisation-search-document.d.ts +0 -158
  196. package/src/models/organisation-search-document/i-organisation-search-document.js +0 -1
  197. package/src/models/organisation-search-document/organisation-search-document-client.d.ts +0 -7
  198. package/src/models/organisation-search-document/organisation-search-document-client.js +0 -12
  199. package/src/models/programme-card/i-click-tracking-data.d.ts +0 -5
  200. package/src/models/programme-card/i-click-tracking-data.js +0 -1
  201. package/src/models/programme-card/i-cover.d.ts +0 -14
  202. package/src/models/programme-card/i-cover.js +0 -1
  203. package/src/models/programme-card/i-deadline.d.ts +0 -20
  204. package/src/models/programme-card/i-deadline.js +0 -1
  205. package/src/models/programme-card/i-duration.d.ts +0 -40
  206. package/src/models/programme-card/i-duration.js +0 -1
  207. package/src/models/programme-card/i-internal-link.d.ts +0 -28
  208. package/src/models/programme-card/i-internal-link.js +0 -1
  209. package/src/models/programme-card/i-link.d.ts +0 -22
  210. package/src/models/programme-card/i-link.js +0 -1
  211. package/src/models/programme-card/i-location.d.ts +0 -12
  212. package/src/models/programme-card/i-location.js +0 -1
  213. package/src/models/programme-card/i-logo.d.ts +0 -14
  214. package/src/models/programme-card/i-logo.js +0 -1
  215. package/src/models/programme-card/i-optional-link.d.ts +0 -23
  216. package/src/models/programme-card/i-optional-link.js +0 -1
  217. package/src/models/programme-card/i-programme-card.d.ts +0 -212
  218. package/src/models/programme-card/i-programme-card.js +0 -1
  219. package/src/models/programme-card/i-start-date.d.ts +0 -33
  220. package/src/models/programme-card/i-start-date.js +0 -1
  221. package/src/models/programme-card/i-timing.d.ts +0 -45
  222. package/src/models/programme-card/i-timing.js +0 -1
  223. package/src/models/programme-card/i-tracked-link.d.ts +0 -29
  224. package/src/models/programme-card/i-tracked-link.js +0 -1
  225. package/src/models/programme-card/i-tracking.d.ts +0 -46
  226. package/src/models/programme-card/i-tracking.js +0 -1
  227. package/src/models/programme-card/i-tuition-fee.d.ts +0 -50
  228. package/src/models/programme-card/i-tuition-fee.js +0 -1
  229. package/src/models/programme-card/programme-card-client.d.ts +0 -7
  230. package/src/models/programme-card/programme-card-client.js +0 -12
  231. package/src/models/ranking-cards/i-ranking.d.ts +0 -18
  232. package/src/models/ranking-cards/i-ranking.js +0 -1
  233. package/src/models/scholarship-card/i-scholarship-card-v2.d.ts +0 -20
  234. package/src/models/scholarship-card/i-scholarship-card-v2.js +0 -1
  235. package/src/models/scholarship-card/i-scholarship-card.d.ts +0 -15
  236. package/src/models/scholarship-card/i-scholarship-card.js +0 -1
  237. package/src/models/scholarship-card/public-scholarship-card-client.d.ts +0 -7
  238. package/src/models/scholarship-card/public-scholarship-card-client.js +0 -12
  239. package/src/models/scholarship-card/scholarship-card-v2-client.d.ts +0 -7
  240. package/src/models/scholarship-card/scholarship-card-v2-client.js +0 -12
  241. package/src/models/scholarship-search-document/i-scholarship-search-document.d.ts +0 -38
  242. package/src/models/scholarship-search-document/i-scholarship-search-document.js +0 -1
  243. package/src/models/scholarship-search-document/scholarship-search-document-client.d.ts +0 -7
  244. package/src/models/scholarship-search-document/scholarship-search-document-client.js +0 -12
  245. package/src/models/search-discipline/i-search-discipline.d.ts +0 -26
  246. package/src/models/search-discipline/i-search-discipline.js +0 -1
  247. package/src/models/search-discipline/public-search-discipline-client.d.ts +0 -7
  248. package/src/models/search-discipline/public-search-discipline-client.js +0 -12
  249. package/src/models/search-projection/i-geo-targeting-configuration.d.ts +0 -38
  250. package/src/models/search-projection/i-geo-targeting-configuration.js +0 -1
  251. package/src/models/search-projection/i-geo-targeting-values.d.ts +0 -30
  252. package/src/models/search-projection/i-geo-targeting-values.js +0 -1
  253. package/src/models/search-projection/i-organisation-values.d.ts +0 -46
  254. package/src/models/search-projection/i-organisation-values.js +0 -1
  255. package/src/models/search-projection/i-premium-values.d.ts +0 -35
  256. package/src/models/search-projection/i-premium-values.js +0 -1
  257. package/src/models/search-projection/i-search-projection.d.ts +0 -186
  258. package/src/models/search-projection/i-search-projection.js +0 -1
  259. package/src/models/search-projection/i-tuition-values.d.ts +0 -50
  260. package/src/models/search-projection/i-tuition-values.js +0 -1
  261. package/src/models/search-projection/search-projection-client.d.ts +0 -7
  262. package/src/models/search-projection/search-projection-client.js +0 -12
  263. package/src/models/sitemap-articles-info/i-sitemap-article-info.d.ts +0 -26
  264. package/src/models/sitemap-articles-info/i-sitemap-article-info.js +0 -1
  265. package/src/models/sitemap-articles-info/sitemap-articles-info-client.d.ts +0 -7
  266. package/src/models/sitemap-articles-info/sitemap-articles-info-client.js +0 -12
  267. package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +0 -14
  268. package/src/models/sitemap-cities-info/i-sitemap-city-info.js +0 -1
  269. package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +0 -7
  270. package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +0 -12
  271. package/src/models/sitemap-countries-info/i-sitemap-country-info.d.ts +0 -14
  272. package/src/models/sitemap-countries-info/i-sitemap-country-info.js +0 -1
  273. package/src/models/sitemap-countries-info/sitemap-countries-info-client.d.ts +0 -7
  274. package/src/models/sitemap-countries-info/sitemap-countries-info-client.js +0 -12
  275. package/src/models/sitemap-country-degree-info/i-degree-info.d.ts +0 -14
  276. package/src/models/sitemap-country-degree-info/i-degree-info.js +0 -1
  277. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.d.ts +0 -11
  278. package/src/models/sitemap-country-degree-info/i-sitemap-country-degree-info.js +0 -1
  279. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.d.ts +0 -7
  280. package/src/models/sitemap-country-degree-info/sitemap-country-degree-info-client.js +0 -12
  281. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.d.ts +0 -14
  282. package/src/models/sitemap-disciplines-info/i-sitemap-discipline-info.js +0 -1
  283. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.d.ts +0 -7
  284. package/src/models/sitemap-disciplines-info/sitemap-disciplines-info-client.js +0 -12
  285. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.d.ts +0 -26
  286. package/src/models/sitemap-organisations-info/i-sitemap-organisation-info.js +0 -1
  287. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.d.ts +0 -7
  288. package/src/models/sitemap-organisations-info/sitemap-organisations-info-client.js +0 -12
  289. package/src/models/sitemap-programme-info/i-sitemap-programme-info.d.ts +0 -26
  290. package/src/models/sitemap-programme-info/i-sitemap-programme-info.js +0 -1
  291. package/src/models/sitemap-programme-info/sitemap-programme-info-client.d.ts +0 -7
  292. package/src/models/sitemap-programme-info/sitemap-programme-info-client.js +0 -12
  293. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.d.ts +0 -14
  294. package/src/models/sitemap-rankings-info/i-sitemap-rankings-info.js +0 -1
  295. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.d.ts +0 -7
  296. package/src/models/sitemap-rankings-info/sitemap-rankings-info-client.js +0 -12
  297. package/src/types/portal-map.d.ts +0 -2
  298. package/src/types/portal-map.js +0 -1
  299. package/src/types/portal-type.d.ts +0 -7
  300. package/src/types/portal-type.js +0 -8
  301. package/src/types.d.ts +0 -4
  302. package/src/types.js +0 -1
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@studyportals/domain-client",
3
- "version": "7.0.1-beta.3",
3
+ "version": "7.0.1-beta.5",
4
4
  "description": "Responsible for fetching data from the Domain API",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
+ "types": "index.d.ts",
8
+ "files": [
9
+ "bin/"
10
+ ],
7
11
  "author": "StudyPortals B.V.",
8
12
  "sideEffects": false,
9
13
  "contributors": [
package/index.d.ts DELETED
@@ -1,91 +0,0 @@
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 { ICover } from "./src/models/programme-card/i-cover";
7
- import { ILink } from "./src/models/programme-card/i-link";
8
- import { IOptionalLink } from "./src/models/programme-card/i-optional-link";
9
- import { ILocation } from "./src/models/programme-card/i-location";
10
- import { IClickTrackingData } from "./src/models/programme-card/i-click-tracking-data";
11
- import { ITracking } from "./src/models/programme-card/i-tracking";
12
- import { IDuration } from "./src/models/programme-card/i-duration";
13
- import { IDeadline } from "./src/models/programme-card/i-deadline";
14
- import { IStartDate } from "./src/models/programme-card/i-start-date";
15
- import { ITiming } from "./src/models/programme-card/i-timing";
16
- import { ITrackedLink } from "./src/models/programme-card/i-tracked-link";
17
- import { IProgrammeCard } from "./src/models/programme-card/i-programme-card";
18
- import { ProgrammeCardClient } from "./src/models/programme-card/programme-card-client";
19
- import { ITuitionValues } from "./src/models/search-projection/i-tuition-values";
20
- import { IPremiumValues } from "./src/models/search-projection/i-premium-values";
21
- import { IOrganisationValues } from "./src/models/search-projection/i-organisation-values";
22
- import { IGeoTargetingConfiguration } from "./src/models/search-projection/i-geo-targeting-configuration";
23
- import { IGeoTargetingValues } from "./src/models/search-projection/i-geo-targeting-values";
24
- import { ISearchProjection } from "./src/models/search-projection/i-search-projection";
25
- import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client";
26
- import { ILivingCost } from "./src/models/bestfit-programme/i-living-cost";
27
- import { IGPARequirement } from "./src/models/common/i-g-p-a-requirement";
28
- import { IBestFitProgramme } from "./src/models/bestfit-programme/i-best-fit-programme";
29
- import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client";
30
- import { ILogo } from "./src/models/common/i-logo";
31
- import { ITuitionFee } from "./src/models/common/i-tuition-fee";
32
- import { IEnglishRequirements } from "./src/models/common/i-english-requirements";
33
- import { IInternalLink } from "./src/models/customerio-programme/i-internal-link";
34
- import { ICustomerIOProgramme } from "./src/models/customerio-programme/i-customer-io-programme";
35
- import { CustomerIOProgrammeClient } from "./src/models/customerio-programme/customerio-programme-client";
36
- import { IFaqStaticContent } from "./src/models/faq-static-content/i-faq-static-content";
37
- import { IFaq } from "./src/models/faq-static-content/i-faq";
38
- import { IStaticContent } from "./src/models/faq-static-content/i-static-content";
39
- import { IStaticContentUrl } from "./src/models/faq-static-content/i-static-content-url";
40
- import { PublicFaqStaticContentClient } from "./src/models/faq-static-content/public-faq-static-content-client";
41
- import { ISitemapProgrammeInfo } from "./src/models/sitemap-programme-info/i-sitemap-programme-info";
42
- import { SitemapProgrammeInfoClient } from "./src/models/sitemap-programme-info/sitemap-programme-info-client";
43
- import { ISitemapCountryInfo } from "./src/models/sitemap-countries-info/i-sitemap-country-info";
44
- import { SitemapCountriesInfoClient } from "./src/models/sitemap-countries-info/sitemap-countries-info-client";
45
- import { IDegreeInfo } from "./src/models/sitemap-country-degree-info/i-degree-info";
46
- import { ISitemapCountryDegreeInfo } from "./src/models/sitemap-country-degree-info/i-sitemap-country-degree-info";
47
- import { SitemapCountryDegreeInfoClient } from "./src/models/sitemap-country-degree-info/sitemap-country-degree-info-client";
48
- import { ISearchDiscipline } from "./src/models/search-discipline/i-search-discipline";
49
- import { PublicSearchDisciplineClient } from "./src/models/search-discipline/public-search-discipline-client";
50
- import { ISitemapDisciplineInfo } from "./src/models/sitemap-disciplines-info/i-sitemap-discipline-info";
51
- import { SitemapDisciplinesInfoClient } from "./src/models/sitemap-disciplines-info/sitemap-disciplines-info-client";
52
- import { ICountry } from "./src/models/common/i-country";
53
- import { ICity } from "./src/models/common/i-city";
54
- import { IReview } from "./src/models/customerio-organisation/i-review";
55
- import { ICustomerIOOrganisation } from "./src/models/customerio-organisation/i-customer-io-organisation";
56
- import { CustomerIOOrganisationClient } from "./src/models/customerio-organisation/customerio-organisation-client";
57
- import { ISitemapOrganisationInfo } from "./src/models/sitemap-organisations-info/i-sitemap-organisation-info";
58
- import { SitemapOrganisationsInfoClient } from "./src/models/sitemap-organisations-info/sitemap-organisations-info-client";
59
- import { IOrganisationCard } from "./src/models/organisation-card/i-organisation-card";
60
- import { IRankingDiscipline } from "./src/models/organisation-card/i-ranking-discipline";
61
- import { OrganisationCardClient } from "./src/models/organisation-card/organisation-card-client";
62
- import { IOrganisationSearchDocument } from "./src/models/organisation-search-document/i-organisation-search-document";
63
- import { OrganisationSearchDocumentClient } from "./src/models/organisation-search-document/organisation-search-document-client";
64
- import { ISitemapRankingsInfo } from "./src/models/sitemap-rankings-info/i-sitemap-rankings-info";
65
- import { SitemapRankingsInfoClient } from "./src/models/sitemap-rankings-info/sitemap-rankings-info-client";
66
- import { ISitemapArticleInfo } from "./src/models/sitemap-articles-info/i-sitemap-article-info";
67
- import { SitemapArticlesInfoClient } from "./src/models/sitemap-articles-info/sitemap-articles-info-client";
68
- import { ISitemapCityInfo } from "./src/models/sitemap-cities-info/i-sitemap-city-info";
69
- import { SitemapCitiesInfoClient } from "./src/models/sitemap-cities-info/sitemap-cities-info-client";
70
- import { IScholarshipCard } from "./src/models/scholarship-card/i-scholarship-card";
71
- import { PublicScholarshipCardClient } from "./src/models/scholarship-card/public-scholarship-card-client";
72
- import { ScholarshipCardV2Client } from "./src/models/scholarship-card/scholarship-card-v2-client";
73
- import { IScholarshipSearchDocument } from "./src/models/scholarship-search-document/i-scholarship-search-document";
74
- import { ScholarshipSearchDocumentClient } from "./src/models/scholarship-search-document/scholarship-search-document-client";
75
- import { ICitySearchDocument } from "./src/models/city-search-document/i-city-search-document";
76
- import { CitySearchDocumentClient } from "./src/models/city-search-document/city-search-document-client";
77
- import { IRanking } from './src/models/ranking-cards/i-ranking';
78
- import { PortalType } from "./src/types/portal-type";
79
- import { PortalMap } from "./src/types/portal-map";
80
- import { ModelClient } from "./src/model-client";
81
- import { IOrganisationForSearch } from "./src/models/organisation-for-search/i-organisation-for-search";
82
- import { PublicOrganisationForSearchClient } from "./src/models/organisation-for-search/public-organisation-for-search-client";
83
- import { ICopilotProgramme } from "./src/models/copilot-programme/i-copilot-programme";
84
- import { CopilotProgrammeClient } from "./src/models/copilot-programme/copilot-programme-client";
85
- import { ICopilotCountry } from "./src/models/copilot-country/i-copilot-country";
86
- import { CopilotCountryClient } from "./src/models/copilot-country/copilot-country-client";
87
- import { ICopilotRankingCard } from "./src/models/copilot-country/i-copilot-ranking-card";
88
- import { IReviewRating } from "./src/models/common/i-review-rating";
89
- export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, ICustomerIOProgramme, CustomerIOProgrammeClient, IFaqStaticContent, PublicFaqStaticContentClient, IFaq, IStaticContent, IStaticContentUrl, ISitemapProgrammeInfo, SitemapProgrammeInfoClient, ISitemapCountryInfo, SitemapCountriesInfoClient, IDegreeInfo, ISitemapCountryDegreeInfo, SitemapCountryDegreeInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, ICustomerIOOrganisation, CustomerIOOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, IOrganisationSearchDocument, OrganisationSearchDocumentClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, IScholarshipCard, PublicScholarshipCardClient, ScholarshipCardV2Client, IScholarshipSearchDocument, ScholarshipSearchDocumentClient, ICitySearchDocument, CitySearchDocumentClient, IRanking, PortalType, PortalMap, ModelClient, IOrganisationForSearch, PublicOrganisationForSearchClient, IOrganisationCard, IRankingDiscipline, OrganisationCardClient, ICopilotProgramme, ICopilotCountry, CopilotProgrammeClient, CopilotCountryClient, ICopilotRankingCard, IReviewRating };
90
- export * from './src/clients';
91
- export * from './protobuf';
@@ -1,11 +0,0 @@
1
- export interface Area {
2
- id: number;
3
- name?: string | undefined;
4
- code?: string | undefined;
5
- }
6
- export declare const Area: MessageFns<Area>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
package/protobuf/Area.js DELETED
@@ -1,30 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: Area.proto
6
- export const Area = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
11
- code: isSet(object.code) ? globalThis.String(object.code) : undefined,
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.id !== 0) {
17
- obj.id = Math.round(message.id);
18
- }
19
- if (message.name !== undefined) {
20
- obj.name = message.name;
21
- }
22
- if (message.code !== undefined) {
23
- obj.code = message.code;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,60 +0,0 @@
1
- import { Discipline } from "./Discipline";
2
- import { File } from "./File";
3
- import { Country } from "./Organisation";
4
- import { Person } from "./Person";
5
- import { Topic } from "./Topic";
6
- export interface Article {
7
- id: number;
8
- name: string;
9
- title: string;
10
- summary: string;
11
- description: string;
12
- promo: string;
13
- canonicalUrl: string;
14
- /** string author = 8; */
15
- type: string;
16
- topicId: number;
17
- date: string;
18
- creationDate: string;
19
- modifiedDate: string;
20
- publishedDate: string;
21
- isHighlighted: boolean;
22
- hasSocialBookmarking: boolean;
23
- visibility: string;
24
- mayShowGallery: boolean;
25
- urlName: string;
26
- virtualPath: string;
27
- tags: TagsArray | undefined;
28
- relatedArticles: Article[];
29
- relatedCountries: Country[];
30
- relatedCities: number[];
31
- relatedDisciplines: Discipline[];
32
- relatedReviewCategories: number[];
33
- relatedStudies: number[];
34
- relatedOrganisations: number[];
35
- featuredArticles: Article[];
36
- recentArticles: Article[];
37
- archivedArticles: Article[];
38
- isPublic: boolean;
39
- author: Person | undefined;
40
- isSponsored: boolean;
41
- topic: Topic | undefined;
42
- image: File | undefined;
43
- canBeIndexed: boolean;
44
- roundedAmountOfProgrammes: number;
45
- }
46
- export interface TagsStruct {
47
- id: string;
48
- name: string;
49
- }
50
- export interface TagsArray {
51
- tags: TagsStruct[];
52
- }
53
- export declare const Article: MessageFns<Article>;
54
- export declare const TagsStruct: MessageFns<TagsStruct>;
55
- export declare const TagsArray: MessageFns<TagsArray>;
56
- interface MessageFns<T> {
57
- fromJSON(object: any): T;
58
- toJSON(message: T): unknown;
59
- }
60
- export {};
@@ -1,226 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: Article.proto
6
- /* 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 = {
13
- fromJSON(object) {
14
- return {
15
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
16
- name: isSet(object.name) ? globalThis.String(object.name) : "",
17
- title: isSet(object.title) ? globalThis.String(object.title) : "",
18
- summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
19
- description: isSet(object.description) ? globalThis.String(object.description) : "",
20
- promo: isSet(object.promo) ? globalThis.String(object.promo) : "",
21
- canonicalUrl: isSet(object.canonicalUrl) ? globalThis.String(object.canonicalUrl) : "",
22
- type: isSet(object.type) ? globalThis.String(object.type) : "",
23
- topicId: isSet(object.topicId) ? globalThis.Number(object.topicId) : 0,
24
- date: isSet(object.date) ? globalThis.String(object.date) : "",
25
- creationDate: isSet(object.creationDate) ? globalThis.String(object.creationDate) : "",
26
- modifiedDate: isSet(object.modifiedDate) ? globalThis.String(object.modifiedDate) : "",
27
- publishedDate: isSet(object.publishedDate) ? globalThis.String(object.publishedDate) : "",
28
- isHighlighted: isSet(object.isHighlighted) ? globalThis.Boolean(object.isHighlighted) : false,
29
- hasSocialBookmarking: isSet(object.hasSocialBookmarking)
30
- ? globalThis.Boolean(object.hasSocialBookmarking)
31
- : false,
32
- visibility: isSet(object.visibility) ? globalThis.String(object.visibility) : "",
33
- mayShowGallery: isSet(object.mayShowGallery) ? globalThis.Boolean(object.mayShowGallery) : false,
34
- urlName: isSet(object.urlName) ? globalThis.String(object.urlName) : "",
35
- virtualPath: isSet(object.virtualPath) ? globalThis.String(object.virtualPath) : "",
36
- tags: isSet(object.tags) ? TagsArray.fromJSON(object.tags) : undefined,
37
- relatedArticles: globalThis.Array.isArray(object?.relatedArticles)
38
- ? object.relatedArticles.map((e) => Article.fromJSON(e))
39
- : [],
40
- relatedCountries: globalThis.Array.isArray(object?.relatedCountries)
41
- ? object.relatedCountries.map((e) => Country.fromJSON(e))
42
- : [],
43
- relatedCities: globalThis.Array.isArray(object?.relatedCities)
44
- ? object.relatedCities.map((e) => globalThis.Number(e))
45
- : [],
46
- relatedDisciplines: globalThis.Array.isArray(object?.relatedDisciplines)
47
- ? object.relatedDisciplines.map((e) => Discipline.fromJSON(e))
48
- : [],
49
- relatedReviewCategories: globalThis.Array.isArray(object?.relatedReviewCategories)
50
- ? object.relatedReviewCategories.map((e) => globalThis.Number(e))
51
- : [],
52
- relatedStudies: globalThis.Array.isArray(object?.relatedStudies)
53
- ? object.relatedStudies.map((e) => globalThis.Number(e))
54
- : [],
55
- relatedOrganisations: globalThis.Array.isArray(object?.relatedOrganisations)
56
- ? object.relatedOrganisations.map((e) => globalThis.Number(e))
57
- : [],
58
- featuredArticles: globalThis.Array.isArray(object?.featuredArticles)
59
- ? object.featuredArticles.map((e) => Article.fromJSON(e))
60
- : [],
61
- recentArticles: globalThis.Array.isArray(object?.recentArticles)
62
- ? object.recentArticles.map((e) => Article.fromJSON(e))
63
- : [],
64
- archivedArticles: globalThis.Array.isArray(object?.archivedArticles)
65
- ? object.archivedArticles.map((e) => Article.fromJSON(e))
66
- : [],
67
- isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
68
- author: isSet(object.author) ? Person.fromJSON(object.author) : undefined,
69
- 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,
72
- canBeIndexed: isSet(object.canBeIndexed) ? globalThis.Boolean(object.canBeIndexed) : false,
73
- roundedAmountOfProgrammes: isSet(object.roundedAmountOfProgrammes)
74
- ? globalThis.Number(object.roundedAmountOfProgrammes)
75
- : 0,
76
- };
77
- },
78
- toJSON(message) {
79
- const obj = {};
80
- if (message.id !== 0) {
81
- obj.id = Math.round(message.id);
82
- }
83
- if (message.name !== "") {
84
- obj.name = message.name;
85
- }
86
- if (message.title !== "") {
87
- obj.title = message.title;
88
- }
89
- if (message.summary !== "") {
90
- obj.summary = message.summary;
91
- }
92
- if (message.description !== "") {
93
- obj.description = message.description;
94
- }
95
- if (message.promo !== "") {
96
- obj.promo = message.promo;
97
- }
98
- if (message.canonicalUrl !== "") {
99
- obj.canonicalUrl = message.canonicalUrl;
100
- }
101
- if (message.type !== "") {
102
- obj.type = message.type;
103
- }
104
- if (message.topicId !== 0) {
105
- obj.topicId = Math.round(message.topicId);
106
- }
107
- if (message.date !== "") {
108
- obj.date = message.date;
109
- }
110
- if (message.creationDate !== "") {
111
- obj.creationDate = message.creationDate;
112
- }
113
- if (message.modifiedDate !== "") {
114
- obj.modifiedDate = message.modifiedDate;
115
- }
116
- if (message.publishedDate !== "") {
117
- obj.publishedDate = message.publishedDate;
118
- }
119
- if (message.isHighlighted !== false) {
120
- obj.isHighlighted = message.isHighlighted;
121
- }
122
- if (message.hasSocialBookmarking !== false) {
123
- obj.hasSocialBookmarking = message.hasSocialBookmarking;
124
- }
125
- if (message.visibility !== "") {
126
- obj.visibility = message.visibility;
127
- }
128
- if (message.mayShowGallery !== false) {
129
- obj.mayShowGallery = message.mayShowGallery;
130
- }
131
- if (message.urlName !== "") {
132
- obj.urlName = message.urlName;
133
- }
134
- if (message.virtualPath !== "") {
135
- obj.virtualPath = message.virtualPath;
136
- }
137
- if (message.tags !== undefined) {
138
- obj.tags = TagsArray.toJSON(message.tags);
139
- }
140
- if (message.relatedArticles?.length) {
141
- obj.relatedArticles = message.relatedArticles.map((e) => Article.toJSON(e));
142
- }
143
- if (message.relatedCountries?.length) {
144
- obj.relatedCountries = message.relatedCountries.map((e) => Country.toJSON(e));
145
- }
146
- if (message.relatedCities?.length) {
147
- obj.relatedCities = message.relatedCities.map((e) => Math.round(e));
148
- }
149
- if (message.relatedDisciplines?.length) {
150
- obj.relatedDisciplines = message.relatedDisciplines.map((e) => Discipline.toJSON(e));
151
- }
152
- if (message.relatedReviewCategories?.length) {
153
- obj.relatedReviewCategories = message.relatedReviewCategories.map((e) => Math.round(e));
154
- }
155
- if (message.relatedStudies?.length) {
156
- obj.relatedStudies = message.relatedStudies.map((e) => Math.round(e));
157
- }
158
- if (message.relatedOrganisations?.length) {
159
- obj.relatedOrganisations = message.relatedOrganisations.map((e) => Math.round(e));
160
- }
161
- if (message.featuredArticles?.length) {
162
- obj.featuredArticles = message.featuredArticles.map((e) => Article.toJSON(e));
163
- }
164
- if (message.recentArticles?.length) {
165
- obj.recentArticles = message.recentArticles.map((e) => Article.toJSON(e));
166
- }
167
- if (message.archivedArticles?.length) {
168
- obj.archivedArticles = message.archivedArticles.map((e) => Article.toJSON(e));
169
- }
170
- if (message.isPublic !== false) {
171
- obj.isPublic = message.isPublic;
172
- }
173
- if (message.author !== undefined) {
174
- obj.author = Person.toJSON(message.author);
175
- }
176
- if (message.isSponsored !== false) {
177
- obj.isSponsored = message.isSponsored;
178
- }
179
- if (message.topic !== undefined) {
180
- obj.topic = Topic.toJSON(message.topic);
181
- }
182
- if (message.image !== undefined) {
183
- obj.image = File.toJSON(message.image);
184
- }
185
- if (message.canBeIndexed !== false) {
186
- obj.canBeIndexed = message.canBeIndexed;
187
- }
188
- if (message.roundedAmountOfProgrammes !== 0) {
189
- obj.roundedAmountOfProgrammes = Math.round(message.roundedAmountOfProgrammes);
190
- }
191
- return obj;
192
- },
193
- };
194
- export const TagsStruct = {
195
- fromJSON(object) {
196
- return {
197
- id: isSet(object.id) ? globalThis.String(object.id) : "",
198
- name: isSet(object.name) ? globalThis.String(object.name) : "",
199
- };
200
- },
201
- toJSON(message) {
202
- const obj = {};
203
- if (message.id !== "") {
204
- obj.id = message.id;
205
- }
206
- if (message.name !== "") {
207
- obj.name = message.name;
208
- }
209
- return obj;
210
- },
211
- };
212
- export const TagsArray = {
213
- fromJSON(object) {
214
- return { tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => TagsStruct.fromJSON(e)) : [] };
215
- },
216
- toJSON(message) {
217
- const obj = {};
218
- if (message.tags?.length) {
219
- obj.tags = message.tags.map((e) => TagsStruct.toJSON(e));
220
- }
221
- return obj;
222
- },
223
- };
224
- function isSet(value) {
225
- return value !== null && value !== undefined;
226
- }
@@ -1,11 +0,0 @@
1
- export interface Body {
2
- id: number;
3
- name: string;
4
- acronym: string;
5
- }
6
- export declare const Body: MessageFns<Body>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
package/protobuf/Body.js DELETED
@@ -1,30 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: Body.proto
6
- export const Body = {
7
- fromJSON(object) {
8
- return {
9
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
10
- name: isSet(object.name) ? globalThis.String(object.name) : "",
11
- acronym: isSet(object.acronym) ? globalThis.String(object.acronym) : "",
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.id !== 0) {
17
- obj.id = Math.round(message.id);
18
- }
19
- if (message.name !== "") {
20
- obj.name = message.name;
21
- }
22
- if (message.acronym !== "") {
23
- obj.acronym = message.acronym;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,11 +0,0 @@
1
- export interface CampaignInformation {
2
- type: number;
3
- isCapped: boolean;
4
- name: string;
5
- }
6
- export declare const CampaignInformation: MessageFns<CampaignInformation>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,30 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: CampaignInformation.proto
6
- export const CampaignInformation = {
7
- fromJSON(object) {
8
- return {
9
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
10
- isCapped: isSet(object.isCapped) ? globalThis.Boolean(object.isCapped) : false,
11
- name: isSet(object.name) ? globalThis.String(object.name) : "",
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.type !== 0) {
17
- obj.type = Math.round(message.type);
18
- }
19
- if (message.isCapped !== false) {
20
- obj.isCapped = message.isCapped;
21
- }
22
- if (message.name !== "") {
23
- obj.name = message.name;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,11 +0,0 @@
1
- export interface ClickTracking {
2
- category: string;
3
- action: string;
4
- label: string;
5
- }
6
- export declare const ClickTracking: MessageFns<ClickTracking>;
7
- interface MessageFns<T> {
8
- fromJSON(object: any): T;
9
- toJSON(message: T): unknown;
10
- }
11
- export {};
@@ -1,30 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: ClickTracking.proto
6
- export const ClickTracking = {
7
- fromJSON(object) {
8
- return {
9
- category: isSet(object.category) ? globalThis.String(object.category) : "",
10
- action: isSet(object.action) ? globalThis.String(object.action) : "",
11
- label: isSet(object.label) ? globalThis.String(object.label) : "",
12
- };
13
- },
14
- toJSON(message) {
15
- const obj = {};
16
- if (message.category !== "") {
17
- obj.category = message.category;
18
- }
19
- if (message.action !== "") {
20
- obj.action = message.action;
21
- }
22
- if (message.label !== "") {
23
- obj.label = message.label;
24
- }
25
- return obj;
26
- },
27
- };
28
- function isSet(value) {
29
- return value !== null && value !== undefined;
30
- }
@@ -1,14 +0,0 @@
1
- export interface CommercialEntity {
2
- premiums: string[];
3
- cpm: number;
4
- commercialRange: string[];
5
- premiumsOutOfRange: string[];
6
- premiumsOutOfDate: string[];
7
- isOutOfDate: boolean;
8
- }
9
- export declare const CommercialEntity: MessageFns<CommercialEntity>;
10
- interface MessageFns<T> {
11
- fromJSON(object: any): T;
12
- toJSON(message: T): unknown;
13
- }
14
- export {};
@@ -1,48 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v3.12.4
5
- // source: CommercialEntity.proto
6
- export const CommercialEntity = {
7
- fromJSON(object) {
8
- return {
9
- premiums: globalThis.Array.isArray(object?.premiums) ? object.premiums.map((e) => globalThis.String(e)) : [],
10
- cpm: isSet(object.cpm) ? globalThis.Number(object.cpm) : 0,
11
- commercialRange: globalThis.Array.isArray(object?.commercialRange)
12
- ? object.commercialRange.map((e) => globalThis.String(e))
13
- : [],
14
- premiumsOutOfRange: globalThis.Array.isArray(object?.premiumsOutOfRange)
15
- ? object.premiumsOutOfRange.map((e) => globalThis.String(e))
16
- : [],
17
- premiumsOutOfDate: globalThis.Array.isArray(object?.premiumsOutOfDate)
18
- ? object.premiumsOutOfDate.map((e) => globalThis.String(e))
19
- : [],
20
- isOutOfDate: isSet(object.isOutOfDate) ? globalThis.Boolean(object.isOutOfDate) : false,
21
- };
22
- },
23
- toJSON(message) {
24
- const obj = {};
25
- if (message.premiums?.length) {
26
- obj.premiums = message.premiums;
27
- }
28
- if (message.cpm !== 0) {
29
- obj.cpm = Math.round(message.cpm);
30
- }
31
- if (message.commercialRange?.length) {
32
- obj.commercialRange = message.commercialRange;
33
- }
34
- if (message.premiumsOutOfRange?.length) {
35
- obj.premiumsOutOfRange = message.premiumsOutOfRange;
36
- }
37
- if (message.premiumsOutOfDate?.length) {
38
- obj.premiumsOutOfDate = message.premiumsOutOfDate;
39
- }
40
- if (message.isOutOfDate !== false) {
41
- obj.isOutOfDate = message.isOutOfDate;
42
- }
43
- return obj;
44
- },
45
- };
46
- function isSet(value) {
47
- return value !== null && value !== undefined;
48
- }
@@ -1,10 +0,0 @@
1
- export interface Cover {
2
- id: number;
3
- source: string;
4
- }
5
- export declare const Cover: MessageFns<Cover>;
6
- interface MessageFns<T> {
7
- fromJSON(object: any): T;
8
- toJSON(message: T): unknown;
9
- }
10
- export {};