@studyportals/domain-client 10.1.0 → 10.3.0

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 (76) hide show
  1. package/package.json +1 -1
  2. package/protobuf/Credits.d.ts +17 -0
  3. package/protobuf/Credits.js +54 -0
  4. package/protobuf/DisciplineDescription.d.ts +16 -0
  5. package/protobuf/DisciplineDescription.js +45 -0
  6. package/protobuf/DisciplineEssentialInformation.d.ts +17 -0
  7. package/protobuf/DisciplineEssentialInformation.js +54 -0
  8. package/protobuf/Language.d.ts +16 -0
  9. package/protobuf/Language.js +54 -0
  10. package/protobuf/OrganisationReview.d.ts +13 -0
  11. package/protobuf/OrganisationReview.js +42 -0
  12. package/protobuf/PartnerApi/PartnerApiScholarship.d.ts +1 -0
  13. package/protobuf/PartnerApi/PartnerApiScholarship.js +8 -2
  14. package/protobuf/Programme/AcademicRequirements.d.ts +15 -0
  15. package/protobuf/Programme/AcademicRequirements.js +41 -0
  16. package/protobuf/Programme/BannerTargeting.d.ts +11 -0
  17. package/protobuf/Programme/BannerTargeting.js +31 -0
  18. package/protobuf/Programme/CourseInstance.d.ts +21 -0
  19. package/protobuf/Programme/CourseInstance.js +83 -0
  20. package/protobuf/Programme/DeliveryMethod.d.ts +19 -0
  21. package/protobuf/Programme/DeliveryMethod.js +76 -0
  22. package/protobuf/Programme/DisciplineList.d.ts +13 -0
  23. package/protobuf/Programme/DisciplineList.js +37 -0
  24. package/protobuf/Programme/InsuranceConfiguration.d.ts +9 -0
  25. package/protobuf/Programme/InsuranceConfiguration.js +20 -0
  26. package/protobuf/Programme/Intensity.d.ts +18 -0
  27. package/protobuf/Programme/Intensity.js +57 -0
  28. package/protobuf/Programme/LandingPageLink.d.ts +12 -0
  29. package/protobuf/Programme/LandingPageLink.js +34 -0
  30. package/protobuf/Programme/LivingCostDetails.d.ts +12 -0
  31. package/protobuf/Programme/LivingCostDetails.js +29 -0
  32. package/protobuf/Programme/Media.d.ts +24 -0
  33. package/protobuf/Programme/Media.js +87 -0
  34. package/protobuf/Programme/PartTimeDuration.d.ts +18 -0
  35. package/protobuf/Programme/PartTimeDuration.js +54 -0
  36. package/protobuf/Programme/Programme.d.ts +111 -0
  37. package/protobuf/Programme/Programme.js +376 -0
  38. package/protobuf/Programme/ProgrammeDescription.d.ts +17 -0
  39. package/protobuf/Programme/ProgrammeDescription.js +59 -0
  40. package/protobuf/Programme/ProgrammeEnglishRequirements.d.ts +14 -0
  41. package/protobuf/Programme/ProgrammeEnglishRequirements.js +40 -0
  42. package/protobuf/Programme/ProgrammeEssentialInformation.d.ts +27 -0
  43. package/protobuf/Programme/ProgrammeEssentialInformation.js +111 -0
  44. package/protobuf/Programme/Provider.d.ts +18 -0
  45. package/protobuf/Programme/Provider.js +56 -0
  46. package/protobuf/Programme/QuickFacts.d.ts +19 -0
  47. package/protobuf/Programme/QuickFacts.js +56 -0
  48. package/protobuf/Programme/RemarketingUserTag.d.ts +12 -0
  49. package/protobuf/Programme/RemarketingUserTag.js +36 -0
  50. package/protobuf/Programme/Requirements.d.ts +19 -0
  51. package/protobuf/Programme/Requirements.js +70 -0
  52. package/protobuf/Programme/Score.d.ts +10 -0
  53. package/protobuf/Programme/Score.js +26 -0
  54. package/protobuf/Programme/StartDate.d.ts +15 -0
  55. package/protobuf/Programme/StartDate.js +43 -0
  56. package/protobuf/Programme/StartDateDomain.d.ts +13 -0
  57. package/protobuf/Programme/StartDateDomain.js +55 -0
  58. package/protobuf/Programme/StructuredData.d.ts +20 -0
  59. package/protobuf/Programme/StructuredData.js +67 -0
  60. package/protobuf/Programme/Summary.d.ts +12 -0
  61. package/protobuf/Programme/Summary.js +34 -0
  62. package/protobuf/Programme/TestCard.d.ts +12 -0
  63. package/protobuf/Programme/TestCard.js +32 -0
  64. package/protobuf/Programme/TestProviderConfiguration.d.ts +14 -0
  65. package/protobuf/Programme/TestProviderConfiguration.js +42 -0
  66. package/protobuf/Programme/TuitionFeeDetails.d.ts +17 -0
  67. package/protobuf/Programme/TuitionFeeDetails.js +48 -0
  68. package/protobuf/Programme/Venue.d.ts +15 -0
  69. package/protobuf/Programme/Venue.js +46 -0
  70. package/protobuf/Programme/VenueList.d.ts +12 -0
  71. package/protobuf/Programme/VenueList.js +32 -0
  72. package/protobuf/SimpleTrackedLink.d.ts +14 -0
  73. package/protobuf/SimpleTrackedLink.js +42 -0
  74. package/protobuf/google/protobuf/duration.d.ts +83 -0
  75. package/protobuf/google/protobuf/duration.js +26 -0
  76. package/src/models/search-projection/i-search-projection.d.ts +6 -0
@@ -0,0 +1,376 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/Programme.proto
6
+ /* eslint-disable */
7
+ import { CampaignInformation } from "../CampaignInformation.js";
8
+ import { CommercialEntity } from "../CommercialEntity.js";
9
+ import { Credits } from "../Credits.js";
10
+ import { Discipline } from "../Discipline.js";
11
+ import { File } from "../File.js";
12
+ import { Languages } from "../Language.js";
13
+ import { Link } from "../Link.js";
14
+ import { OrganisationInformation } from "../OrganisationInformation.js";
15
+ import { ProgrammeCard } from "../ProgrammeCard.js";
16
+ import { RichText } from "../RichText.js";
17
+ import { MiniScholarshipCard } from "../Scholarship/MiniScholarshipCard.js";
18
+ import { TrackedLink } from "../TrackedLink.js";
19
+ import { Unibuddy } from "../Unibuddy.js";
20
+ import { BannerTargeting } from "./BannerTargeting.js";
21
+ import { DeliveryMethod } from "./DeliveryMethod.js";
22
+ import { DisciplineList } from "./DisciplineList.js";
23
+ import { InsuranceConfiguration } from "./InsuranceConfiguration.js";
24
+ import { Intensity } from "./Intensity.js";
25
+ import { LivingCostDetails } from "./LivingCostDetails.js";
26
+ import { Media } from "./Media.js";
27
+ import { ProgrammeDescription } from "./ProgrammeDescription.js";
28
+ import { ProgrammeEssentialInformation } from "./ProgrammeEssentialInformation.js";
29
+ import { QuickFacts } from "./QuickFacts.js";
30
+ import { RemarketingUserTag } from "./RemarketingUserTag.js";
31
+ import { Requirements } from "./Requirements.js";
32
+ import { StartDate } from "./StartDate.js";
33
+ import { StructuredData } from "./StructuredData.js";
34
+ import { Summary } from "./Summary.js";
35
+ import { TestProviderConfiguration } from "./TestProviderConfiguration.js";
36
+ import { TuitionFeeDetails } from "./TuitionFeeDetails.js";
37
+ import { VenueList } from "./VenueList.js";
38
+ export const Programme = {
39
+ fromJSON(object) {
40
+ return {
41
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
42
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
43
+ pagePortalType: isSet(object.pagePortalType) ? globalThis.String(object.pagePortalType) : "",
44
+ degreeFormatted: isSet(object.degreeFormatted) ? globalThis.String(object.degreeFormatted) : "",
45
+ pagePremiums: isSet(object.pagePremiums) ? globalThis.String(object.pagePremiums) : "",
46
+ cover: isSet(object.cover) ? File.fromJSON(object.cover) : undefined,
47
+ mediaGallery: globalThis.Array.isArray(object?.mediaGallery)
48
+ ? object.mediaGallery.map((e) => Media.fromJSON(e))
49
+ : [],
50
+ deliveryMethod: isSet(object.deliveryMethod) ? DeliveryMethod.fromJSON(object.deliveryMethod) : undefined,
51
+ languages: isSet(object.languages) ? Languages.fromJSON(object.languages) : undefined,
52
+ quickFacts: isSet(object.quickFacts) ? QuickFacts.fromJSON(object.quickFacts) : undefined,
53
+ summary: isSet(object.summary) ? Summary.fromJSON(object.summary) : undefined,
54
+ description: isSet(object.description) ? ProgrammeDescription.fromJSON(object.description) : undefined,
55
+ contents: isSet(object.contents) ? RichText.fromJSON(object.contents) : undefined,
56
+ accreditation: isSet(object.accreditation) ? RichText.fromJSON(object.accreditation) : undefined,
57
+ premiumReferralLink: isSet(object.premiumReferralLink)
58
+ ? TrackedLink.fromJSON(object.premiumReferralLink)
59
+ : undefined,
60
+ lecturers: isSet(object.lecturers) ? RichText.fromJSON(object.lecturers) : undefined,
61
+ audience: isSet(object.audience) ? RichText.fromJSON(object.audience) : undefined,
62
+ funding: isSet(object.funding) ? RichText.fromJSON(object.funding) : undefined,
63
+ credits: isSet(object.credits) ? Credits.fromJSON(object.credits) : undefined,
64
+ intensity: isSet(object.intensity) ? Intensity.fromJSON(object.intensity) : undefined,
65
+ livingCostDetails: isSet(object.livingCostDetails)
66
+ ? LivingCostDetails.fromJSON(object.livingCostDetails)
67
+ : undefined,
68
+ testProviderConfiguration: isSet(object.testProviderConfiguration)
69
+ ? TestProviderConfiguration.fromJSON(object.testProviderConfiguration)
70
+ : undefined,
71
+ bannerTargeting: isSet(object.bannerTargeting) ? BannerTargeting.fromJSON(object.bannerTargeting) : undefined,
72
+ requirements: isSet(object.requirements) ? Requirements.fromJSON(object.requirements) : undefined,
73
+ SBLPLink: isSet(object.SBLPLink) ? Link.fromJSON(object.SBLPLink) : undefined,
74
+ remarketingUserTag: isSet(object.remarketingUserTag)
75
+ ? RemarketingUserTag.fromJSON(object.remarketingUserTag)
76
+ : undefined,
77
+ campaignInformation: isSet(object.campaignInformation)
78
+ ? CampaignInformation.fromJSON(object.campaignInformation)
79
+ : undefined,
80
+ structuredData: isSet(object.structuredData) ? StructuredData.fromJSON(object.structuredData) : undefined,
81
+ pixelLinks: globalThis.Array.isArray(object?.pixelLinks)
82
+ ? object.pixelLinks.map((e) => Link.fromJSON(e))
83
+ : [],
84
+ gaStudyInformation: isSet(object.gaStudyInformation) ? globalThis.String(object.gaStudyInformation) : undefined,
85
+ disciplines: globalThis.Array.isArray(object?.disciplines)
86
+ ? object.disciplines.map((e) => Discipline.fromJSON(e))
87
+ : [],
88
+ disciplineList: isSet(object.disciplineList) ? DisciplineList.fromJSON(object.disciplineList) : undefined,
89
+ tuitionFeeDetails: isSet(object.tuitionFeeDetails)
90
+ ? TuitionFeeDetails.fromJSON(object.tuitionFeeDetails)
91
+ : undefined,
92
+ venueList: isSet(object.venueList) ? VenueList.fromJSON(object.venueList) : undefined,
93
+ startDates: isSet(object.startDates) ? StartDate.fromJSON(object.startDates) : undefined,
94
+ regionId: isSet(object.regionId) ? globalThis.Number(object.regionId) : 0,
95
+ country: isSet(object.country) ? Country.fromJSON(object.country) : undefined,
96
+ programmeLink: isSet(object.programmeLink) ? Link.fromJSON(object.programmeLink) : undefined,
97
+ isFullyOnline: isSet(object.isFullyOnline) ? globalThis.Boolean(object.isFullyOnline) : false,
98
+ universityTrafficSourceForwardingMethod: isSet(object.universityTrafficSourceForwardingMethod)
99
+ ? globalThis.String(object.universityTrafficSourceForwardingMethod)
100
+ : undefined,
101
+ preparingProgrammes: globalThis.Array.isArray(object?.preparingProgrammes)
102
+ ? object.preparingProgrammes.map((e) => ChainnedProgrammeInfo.fromJSON(e))
103
+ : [],
104
+ succeedingProgrammes: globalThis.Array.isArray(object?.succeedingProgrammes)
105
+ ? object.succeedingProgrammes.map((e) => ChainnedProgrammeInfo.fromJSON(e))
106
+ : [],
107
+ preparingProgrammeCards: globalThis.Array.isArray(object?.preparingProgrammeCards)
108
+ ? object.preparingProgrammeCards.map((e) => ChainnedProgramme.fromJSON(e))
109
+ : [],
110
+ succeedingProgrammeCards: globalThis.Array.isArray(object?.succeedingProgrammeCards)
111
+ ? object.succeedingProgrammeCards.map((e) => ChainnedProgramme.fromJSON(e))
112
+ : [],
113
+ insuranceConfiguration: isSet(object.insuranceConfiguration)
114
+ ? InsuranceConfiguration.fromJSON(object.insuranceConfiguration)
115
+ : undefined,
116
+ canShowFundingPartnerMPower: isSet(object.canShowFundingPartnerMPower)
117
+ ? globalThis.Boolean(object.canShowFundingPartnerMPower)
118
+ : false,
119
+ canShowFundingPartnerProdigy: isSet(object.canShowFundingPartnerProdigy)
120
+ ? globalThis.Boolean(object.canShowFundingPartnerProdigy)
121
+ : false,
122
+ scholarshipIds: globalThis.Array.isArray(object?.scholarshipIds)
123
+ ? object.scholarshipIds.map((e) => globalThis.Number(e))
124
+ : [],
125
+ uniBuddy: isSet(object.uniBuddy) ? Unibuddy.fromJSON(object.uniBuddy) : undefined,
126
+ essentialInformation: isSet(object.essentialInformation)
127
+ ? ProgrammeEssentialInformation.fromJSON(object.essentialInformation)
128
+ : undefined,
129
+ organisationInformation: isSet(object.organisationInformation)
130
+ ? OrganisationInformation.fromJSON(object.organisationInformation)
131
+ : undefined,
132
+ scholarshipCards: globalThis.Array.isArray(object?.scholarshipCards)
133
+ ? object.scholarshipCards.map((e) => MiniScholarshipCard.fromJSON(e))
134
+ : [],
135
+ commercialEntity: isSet(object.commercialEntity) ? CommercialEntity.fromJSON(object.commercialEntity) : undefined,
136
+ isPublished: isSet(object.isPublished) ? globalThis.Boolean(object.isPublished) : false,
137
+ };
138
+ },
139
+ toJSON(message) {
140
+ const obj = {};
141
+ if (message.id !== 0) {
142
+ obj.id = Math.round(message.id);
143
+ }
144
+ if (message.title !== "") {
145
+ obj.title = message.title;
146
+ }
147
+ if (message.pagePortalType !== "") {
148
+ obj.pagePortalType = message.pagePortalType;
149
+ }
150
+ if (message.degreeFormatted !== "") {
151
+ obj.degreeFormatted = message.degreeFormatted;
152
+ }
153
+ if (message.pagePremiums !== "") {
154
+ obj.pagePremiums = message.pagePremiums;
155
+ }
156
+ if (message.cover !== undefined) {
157
+ obj.cover = File.toJSON(message.cover);
158
+ }
159
+ if (message.mediaGallery?.length) {
160
+ obj.mediaGallery = message.mediaGallery.map((e) => Media.toJSON(e));
161
+ }
162
+ if (message.deliveryMethod !== undefined) {
163
+ obj.deliveryMethod = DeliveryMethod.toJSON(message.deliveryMethod);
164
+ }
165
+ if (message.languages !== undefined) {
166
+ obj.languages = Languages.toJSON(message.languages);
167
+ }
168
+ if (message.quickFacts !== undefined) {
169
+ obj.quickFacts = QuickFacts.toJSON(message.quickFacts);
170
+ }
171
+ if (message.summary !== undefined) {
172
+ obj.summary = Summary.toJSON(message.summary);
173
+ }
174
+ if (message.description !== undefined) {
175
+ obj.description = ProgrammeDescription.toJSON(message.description);
176
+ }
177
+ if (message.contents !== undefined) {
178
+ obj.contents = RichText.toJSON(message.contents);
179
+ }
180
+ if (message.accreditation !== undefined) {
181
+ obj.accreditation = RichText.toJSON(message.accreditation);
182
+ }
183
+ if (message.premiumReferralLink !== undefined) {
184
+ obj.premiumReferralLink = TrackedLink.toJSON(message.premiumReferralLink);
185
+ }
186
+ if (message.lecturers !== undefined) {
187
+ obj.lecturers = RichText.toJSON(message.lecturers);
188
+ }
189
+ if (message.audience !== undefined) {
190
+ obj.audience = RichText.toJSON(message.audience);
191
+ }
192
+ if (message.funding !== undefined) {
193
+ obj.funding = RichText.toJSON(message.funding);
194
+ }
195
+ if (message.credits !== undefined) {
196
+ obj.credits = Credits.toJSON(message.credits);
197
+ }
198
+ if (message.intensity !== undefined) {
199
+ obj.intensity = Intensity.toJSON(message.intensity);
200
+ }
201
+ if (message.livingCostDetails !== undefined) {
202
+ obj.livingCostDetails = LivingCostDetails.toJSON(message.livingCostDetails);
203
+ }
204
+ if (message.testProviderConfiguration !== undefined) {
205
+ obj.testProviderConfiguration = TestProviderConfiguration.toJSON(message.testProviderConfiguration);
206
+ }
207
+ if (message.bannerTargeting !== undefined) {
208
+ obj.bannerTargeting = BannerTargeting.toJSON(message.bannerTargeting);
209
+ }
210
+ if (message.requirements !== undefined) {
211
+ obj.requirements = Requirements.toJSON(message.requirements);
212
+ }
213
+ if (message.SBLPLink !== undefined) {
214
+ obj.SBLPLink = Link.toJSON(message.SBLPLink);
215
+ }
216
+ if (message.remarketingUserTag !== undefined) {
217
+ obj.remarketingUserTag = RemarketingUserTag.toJSON(message.remarketingUserTag);
218
+ }
219
+ if (message.campaignInformation !== undefined) {
220
+ obj.campaignInformation = CampaignInformation.toJSON(message.campaignInformation);
221
+ }
222
+ if (message.structuredData !== undefined) {
223
+ obj.structuredData = StructuredData.toJSON(message.structuredData);
224
+ }
225
+ if (message.pixelLinks?.length) {
226
+ obj.pixelLinks = message.pixelLinks.map((e) => Link.toJSON(e));
227
+ }
228
+ if (message.gaStudyInformation !== undefined) {
229
+ obj.gaStudyInformation = message.gaStudyInformation;
230
+ }
231
+ if (message.disciplines?.length) {
232
+ obj.disciplines = message.disciplines.map((e) => Discipline.toJSON(e));
233
+ }
234
+ if (message.disciplineList !== undefined) {
235
+ obj.disciplineList = DisciplineList.toJSON(message.disciplineList);
236
+ }
237
+ if (message.tuitionFeeDetails !== undefined) {
238
+ obj.tuitionFeeDetails = TuitionFeeDetails.toJSON(message.tuitionFeeDetails);
239
+ }
240
+ if (message.venueList !== undefined) {
241
+ obj.venueList = VenueList.toJSON(message.venueList);
242
+ }
243
+ if (message.startDates !== undefined) {
244
+ obj.startDates = StartDate.toJSON(message.startDates);
245
+ }
246
+ if (message.regionId !== 0) {
247
+ obj.regionId = Math.round(message.regionId);
248
+ }
249
+ if (message.country !== undefined) {
250
+ obj.country = Country.toJSON(message.country);
251
+ }
252
+ if (message.programmeLink !== undefined) {
253
+ obj.programmeLink = Link.toJSON(message.programmeLink);
254
+ }
255
+ if (message.isFullyOnline !== false) {
256
+ obj.isFullyOnline = message.isFullyOnline;
257
+ }
258
+ if (message.universityTrafficSourceForwardingMethod !== undefined) {
259
+ obj.universityTrafficSourceForwardingMethod = message.universityTrafficSourceForwardingMethod;
260
+ }
261
+ if (message.preparingProgrammes?.length) {
262
+ obj.preparingProgrammes = message.preparingProgrammes.map((e) => ChainnedProgrammeInfo.toJSON(e));
263
+ }
264
+ if (message.succeedingProgrammes?.length) {
265
+ obj.succeedingProgrammes = message.succeedingProgrammes.map((e) => ChainnedProgrammeInfo.toJSON(e));
266
+ }
267
+ if (message.preparingProgrammeCards?.length) {
268
+ obj.preparingProgrammeCards = message.preparingProgrammeCards.map((e) => ChainnedProgramme.toJSON(e));
269
+ }
270
+ if (message.succeedingProgrammeCards?.length) {
271
+ obj.succeedingProgrammeCards = message.succeedingProgrammeCards.map((e) => ChainnedProgramme.toJSON(e));
272
+ }
273
+ if (message.insuranceConfiguration !== undefined) {
274
+ obj.insuranceConfiguration = InsuranceConfiguration.toJSON(message.insuranceConfiguration);
275
+ }
276
+ if (message.canShowFundingPartnerMPower !== false) {
277
+ obj.canShowFundingPartnerMPower = message.canShowFundingPartnerMPower;
278
+ }
279
+ if (message.canShowFundingPartnerProdigy !== false) {
280
+ obj.canShowFundingPartnerProdigy = message.canShowFundingPartnerProdigy;
281
+ }
282
+ if (message.scholarshipIds?.length) {
283
+ obj.scholarshipIds = message.scholarshipIds.map((e) => Math.round(e));
284
+ }
285
+ if (message.uniBuddy !== undefined) {
286
+ obj.uniBuddy = Unibuddy.toJSON(message.uniBuddy);
287
+ }
288
+ if (message.essentialInformation !== undefined) {
289
+ obj.essentialInformation = ProgrammeEssentialInformation.toJSON(message.essentialInformation);
290
+ }
291
+ if (message.organisationInformation !== undefined) {
292
+ obj.organisationInformation = OrganisationInformation.toJSON(message.organisationInformation);
293
+ }
294
+ if (message.scholarshipCards?.length) {
295
+ obj.scholarshipCards = message.scholarshipCards.map((e) => MiniScholarshipCard.toJSON(e));
296
+ }
297
+ if (message.commercialEntity !== undefined) {
298
+ obj.commercialEntity = CommercialEntity.toJSON(message.commercialEntity);
299
+ }
300
+ if (message.isPublished !== false) {
301
+ obj.isPublished = message.isPublished;
302
+ }
303
+ return obj;
304
+ },
305
+ };
306
+ export const ChainnedProgrammeInfo = {
307
+ fromJSON(object) {
308
+ return {
309
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
310
+ chainType: isSet(object.chainType) ? globalThis.String(object.chainType) : "",
311
+ };
312
+ },
313
+ toJSON(message) {
314
+ const obj = {};
315
+ if (message.id !== 0) {
316
+ obj.id = Math.round(message.id);
317
+ }
318
+ if (message.chainType !== "") {
319
+ obj.chainType = message.chainType;
320
+ }
321
+ return obj;
322
+ },
323
+ };
324
+ export const ChainnedProgramme = {
325
+ fromJSON(object) {
326
+ return {
327
+ chainType: isSet(object.chainType) ? globalThis.String(object.chainType) : "",
328
+ programmeCard: isSet(object.programmeCard) ? ProgrammeCard.fromJSON(object.programmeCard) : undefined,
329
+ };
330
+ },
331
+ toJSON(message) {
332
+ const obj = {};
333
+ if (message.chainType !== "") {
334
+ obj.chainType = message.chainType;
335
+ }
336
+ if (message.programmeCard !== undefined) {
337
+ obj.programmeCard = ProgrammeCard.toJSON(message.programmeCard);
338
+ }
339
+ return obj;
340
+ },
341
+ };
342
+ export const Country = {
343
+ fromJSON(object) {
344
+ return {
345
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
346
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
347
+ isoCode: isSet(object.isoCode) ? globalThis.String(object.isoCode) : "",
348
+ useWorkPermitContentForChina: isSet(object.useWorkPermitContentForChina)
349
+ ? globalThis.Boolean(object.useWorkPermitContentForChina)
350
+ : false,
351
+ virtualName: isSet(object.virtualName) ? globalThis.String(object.virtualName) : "",
352
+ };
353
+ },
354
+ toJSON(message) {
355
+ const obj = {};
356
+ if (message.id !== 0) {
357
+ obj.id = Math.round(message.id);
358
+ }
359
+ if (message.name !== "") {
360
+ obj.name = message.name;
361
+ }
362
+ if (message.isoCode !== "") {
363
+ obj.isoCode = message.isoCode;
364
+ }
365
+ if (message.useWorkPermitContentForChina !== false) {
366
+ obj.useWorkPermitContentForChina = message.useWorkPermitContentForChina;
367
+ }
368
+ if (message.virtualName !== "") {
369
+ obj.virtualName = message.virtualName;
370
+ }
371
+ return obj;
372
+ },
373
+ };
374
+ function isSet(value) {
375
+ return value !== null && value !== undefined;
376
+ }
@@ -0,0 +1,17 @@
1
+ import { RichText } from "../RichText.js";
2
+ import { TrackedLink } from "../TrackedLink.js";
3
+ export interface ProgrammeDescription {
4
+ description?: RichText | undefined;
5
+ inDescriptionLink?: TrackedLink | undefined;
6
+ canShowInDescriptionLink: boolean;
7
+ programmeReplaceLink?: TrackedLink | undefined;
8
+ canShowProgrammeReplaceLink: boolean;
9
+ organisationReplaceLink?: TrackedLink | undefined;
10
+ canShowOrganisationReplaceLink: boolean;
11
+ }
12
+ export declare const ProgrammeDescription: MessageFns<ProgrammeDescription>;
13
+ interface MessageFns<T> {
14
+ fromJSON(object: any): T;
15
+ toJSON(message: T): unknown;
16
+ }
17
+ export {};
@@ -0,0 +1,59 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/ProgrammeDescription.proto
6
+ /* eslint-disable */
7
+ import { RichText } from "../RichText.js";
8
+ import { TrackedLink } from "../TrackedLink.js";
9
+ export const ProgrammeDescription = {
10
+ fromJSON(object) {
11
+ return {
12
+ description: isSet(object.description) ? RichText.fromJSON(object.description) : undefined,
13
+ inDescriptionLink: isSet(object.inDescriptionLink) ? TrackedLink.fromJSON(object.inDescriptionLink) : undefined,
14
+ canShowInDescriptionLink: isSet(object.canShowInDescriptionLink)
15
+ ? globalThis.Boolean(object.canShowInDescriptionLink)
16
+ : false,
17
+ programmeReplaceLink: isSet(object.programmeReplaceLink)
18
+ ? TrackedLink.fromJSON(object.programmeReplaceLink)
19
+ : undefined,
20
+ canShowProgrammeReplaceLink: isSet(object.canShowProgrammeReplaceLink)
21
+ ? globalThis.Boolean(object.canShowProgrammeReplaceLink)
22
+ : false,
23
+ organisationReplaceLink: isSet(object.organisationReplaceLink)
24
+ ? TrackedLink.fromJSON(object.organisationReplaceLink)
25
+ : undefined,
26
+ canShowOrganisationReplaceLink: isSet(object.canShowOrganisationReplaceLink)
27
+ ? globalThis.Boolean(object.canShowOrganisationReplaceLink)
28
+ : false,
29
+ };
30
+ },
31
+ toJSON(message) {
32
+ const obj = {};
33
+ if (message.description !== undefined) {
34
+ obj.description = RichText.toJSON(message.description);
35
+ }
36
+ if (message.inDescriptionLink !== undefined) {
37
+ obj.inDescriptionLink = TrackedLink.toJSON(message.inDescriptionLink);
38
+ }
39
+ if (message.canShowInDescriptionLink !== false) {
40
+ obj.canShowInDescriptionLink = message.canShowInDescriptionLink;
41
+ }
42
+ if (message.programmeReplaceLink !== undefined) {
43
+ obj.programmeReplaceLink = TrackedLink.toJSON(message.programmeReplaceLink);
44
+ }
45
+ if (message.canShowProgrammeReplaceLink !== false) {
46
+ obj.canShowProgrammeReplaceLink = message.canShowProgrammeReplaceLink;
47
+ }
48
+ if (message.organisationReplaceLink !== undefined) {
49
+ obj.organisationReplaceLink = TrackedLink.toJSON(message.organisationReplaceLink);
50
+ }
51
+ if (message.canShowOrganisationReplaceLink !== false) {
52
+ obj.canShowOrganisationReplaceLink = message.canShowOrganisationReplaceLink;
53
+ }
54
+ return obj;
55
+ },
56
+ };
57
+ function isSet(value) {
58
+ return value !== null && value !== undefined;
59
+ }
@@ -0,0 +1,14 @@
1
+ import { TestCard } from "./TestCard.js";
2
+ export interface ProgrammeEnglishRequirements {
3
+ ieltsCard?: TestCard | undefined;
4
+ toeflCard?: TestCard | undefined;
5
+ pteCard?: TestCard | undefined;
6
+ duolingoCard?: TestCard | undefined;
7
+ oteCard?: TestCard | undefined;
8
+ }
9
+ export declare const ProgrammeEnglishRequirements: MessageFns<ProgrammeEnglishRequirements>;
10
+ interface MessageFns<T> {
11
+ fromJSON(object: any): T;
12
+ toJSON(message: T): unknown;
13
+ }
14
+ export {};
@@ -0,0 +1,40 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/ProgrammeEnglishRequirements.proto
6
+ /* eslint-disable */
7
+ import { TestCard } from "./TestCard.js";
8
+ export const ProgrammeEnglishRequirements = {
9
+ fromJSON(object) {
10
+ return {
11
+ ieltsCard: isSet(object.ieltsCard) ? TestCard.fromJSON(object.ieltsCard) : undefined,
12
+ toeflCard: isSet(object.toeflCard) ? TestCard.fromJSON(object.toeflCard) : undefined,
13
+ pteCard: isSet(object.pteCard) ? TestCard.fromJSON(object.pteCard) : undefined,
14
+ duolingoCard: isSet(object.duolingoCard) ? TestCard.fromJSON(object.duolingoCard) : undefined,
15
+ oteCard: isSet(object.oteCard) ? TestCard.fromJSON(object.oteCard) : undefined,
16
+ };
17
+ },
18
+ toJSON(message) {
19
+ const obj = {};
20
+ if (message.ieltsCard !== undefined) {
21
+ obj.ieltsCard = TestCard.toJSON(message.ieltsCard);
22
+ }
23
+ if (message.toeflCard !== undefined) {
24
+ obj.toeflCard = TestCard.toJSON(message.toeflCard);
25
+ }
26
+ if (message.pteCard !== undefined) {
27
+ obj.pteCard = TestCard.toJSON(message.pteCard);
28
+ }
29
+ if (message.duolingoCard !== undefined) {
30
+ obj.duolingoCard = TestCard.toJSON(message.duolingoCard);
31
+ }
32
+ if (message.oteCard !== undefined) {
33
+ obj.oteCard = TestCard.toJSON(message.oteCard);
34
+ }
35
+ return obj;
36
+ },
37
+ };
38
+ function isSet(value) {
39
+ return value !== null && value !== undefined;
40
+ }
@@ -0,0 +1,27 @@
1
+ import { Link } from "../Link.js";
2
+ import { SimpleTrackedLink } from "../SimpleTrackedLink.js";
3
+ import { TrackedLink } from "../TrackedLink.js";
4
+ export interface ProgrammeEssentialInformation {
5
+ id: number;
6
+ title: string;
7
+ level: string;
8
+ organisationId: number;
9
+ organisationTitle: string;
10
+ degreeType: string;
11
+ isOnline: boolean;
12
+ listingType: string;
13
+ mainWebsiteLink?: TrackedLink | undefined;
14
+ canShowMainWebsiteLink: boolean;
15
+ alternativeLink?: Link | undefined;
16
+ canShowAlternativeLink: boolean;
17
+ canShowReferralRegistrationLock: boolean;
18
+ canShowHighlightedReferrals: boolean;
19
+ lastUpdated?: Date | undefined;
20
+ mainApplyLink?: SimpleTrackedLink | undefined;
21
+ }
22
+ export declare const ProgrammeEssentialInformation: MessageFns<ProgrammeEssentialInformation>;
23
+ interface MessageFns<T> {
24
+ fromJSON(object: any): T;
25
+ toJSON(message: T): unknown;
26
+ }
27
+ export {};
@@ -0,0 +1,111 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.7
4
+ // protoc v6.33.2
5
+ // source: Programme/ProgrammeEssentialInformation.proto
6
+ /* eslint-disable */
7
+ import { Link } from "../Link.js";
8
+ import { SimpleTrackedLink } from "../SimpleTrackedLink.js";
9
+ import { TrackedLink } from "../TrackedLink.js";
10
+ import { Timestamp } from "../google/protobuf/timestamp.js";
11
+ export const ProgrammeEssentialInformation = {
12
+ fromJSON(object) {
13
+ return {
14
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
15
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
16
+ level: isSet(object.level) ? globalThis.String(object.level) : "",
17
+ organisationId: isSet(object.organisationId) ? globalThis.Number(object.organisationId) : 0,
18
+ organisationTitle: isSet(object.organisationTitle) ? globalThis.String(object.organisationTitle) : "",
19
+ degreeType: isSet(object.degreeType) ? globalThis.String(object.degreeType) : "",
20
+ isOnline: isSet(object.isOnline) ? globalThis.Boolean(object.isOnline) : false,
21
+ listingType: isSet(object.listingType) ? globalThis.String(object.listingType) : "",
22
+ mainWebsiteLink: isSet(object.mainWebsiteLink) ? TrackedLink.fromJSON(object.mainWebsiteLink) : undefined,
23
+ canShowMainWebsiteLink: isSet(object.canShowMainWebsiteLink)
24
+ ? globalThis.Boolean(object.canShowMainWebsiteLink)
25
+ : false,
26
+ alternativeLink: isSet(object.alternativeLink) ? Link.fromJSON(object.alternativeLink) : undefined,
27
+ canShowAlternativeLink: isSet(object.canShowAlternativeLink)
28
+ ? globalThis.Boolean(object.canShowAlternativeLink)
29
+ : false,
30
+ canShowReferralRegistrationLock: isSet(object.canShowReferralRegistrationLock)
31
+ ? globalThis.Boolean(object.canShowReferralRegistrationLock)
32
+ : false,
33
+ canShowHighlightedReferrals: isSet(object.canShowHighlightedReferrals)
34
+ ? globalThis.Boolean(object.canShowHighlightedReferrals)
35
+ : false,
36
+ lastUpdated: isSet(object.lastUpdated) ? fromJsonTimestamp(object.lastUpdated) : undefined,
37
+ mainApplyLink: isSet(object.mainApplyLink) ? SimpleTrackedLink.fromJSON(object.mainApplyLink) : undefined,
38
+ };
39
+ },
40
+ toJSON(message) {
41
+ const obj = {};
42
+ if (message.id !== 0) {
43
+ obj.id = Math.round(message.id);
44
+ }
45
+ if (message.title !== "") {
46
+ obj.title = message.title;
47
+ }
48
+ if (message.level !== "") {
49
+ obj.level = message.level;
50
+ }
51
+ if (message.organisationId !== 0) {
52
+ obj.organisationId = Math.round(message.organisationId);
53
+ }
54
+ if (message.organisationTitle !== "") {
55
+ obj.organisationTitle = message.organisationTitle;
56
+ }
57
+ if (message.degreeType !== "") {
58
+ obj.degreeType = message.degreeType;
59
+ }
60
+ if (message.isOnline !== false) {
61
+ obj.isOnline = message.isOnline;
62
+ }
63
+ if (message.listingType !== "") {
64
+ obj.listingType = message.listingType;
65
+ }
66
+ if (message.mainWebsiteLink !== undefined) {
67
+ obj.mainWebsiteLink = TrackedLink.toJSON(message.mainWebsiteLink);
68
+ }
69
+ if (message.canShowMainWebsiteLink !== false) {
70
+ obj.canShowMainWebsiteLink = message.canShowMainWebsiteLink;
71
+ }
72
+ if (message.alternativeLink !== undefined) {
73
+ obj.alternativeLink = Link.toJSON(message.alternativeLink);
74
+ }
75
+ if (message.canShowAlternativeLink !== false) {
76
+ obj.canShowAlternativeLink = message.canShowAlternativeLink;
77
+ }
78
+ if (message.canShowReferralRegistrationLock !== false) {
79
+ obj.canShowReferralRegistrationLock = message.canShowReferralRegistrationLock;
80
+ }
81
+ if (message.canShowHighlightedReferrals !== false) {
82
+ obj.canShowHighlightedReferrals = message.canShowHighlightedReferrals;
83
+ }
84
+ if (message.lastUpdated !== undefined) {
85
+ obj.lastUpdated = message.lastUpdated.toISOString();
86
+ }
87
+ if (message.mainApplyLink !== undefined) {
88
+ obj.mainApplyLink = SimpleTrackedLink.toJSON(message.mainApplyLink);
89
+ }
90
+ return obj;
91
+ },
92
+ };
93
+ function fromTimestamp(t) {
94
+ let millis = (t.seconds || 0) * 1_000;
95
+ millis += (t.nanos || 0) / 1_000_000;
96
+ return new globalThis.Date(millis);
97
+ }
98
+ function fromJsonTimestamp(o) {
99
+ if (o instanceof globalThis.Date) {
100
+ return o;
101
+ }
102
+ else if (typeof o === "string") {
103
+ return new globalThis.Date(o);
104
+ }
105
+ else {
106
+ return fromTimestamp(Timestamp.fromJSON(o));
107
+ }
108
+ }
109
+ function isSet(value) {
110
+ return value !== null && value !== undefined;
111
+ }
@@ -0,0 +1,18 @@
1
+ export interface ProviderLocation {
2
+ id: string;
3
+ name: string;
4
+ address: string;
5
+ }
6
+ export interface Provider {
7
+ id: string;
8
+ name: string;
9
+ url: string;
10
+ location?: ProviderLocation | undefined;
11
+ }
12
+ export declare const ProviderLocation: MessageFns<ProviderLocation>;
13
+ export declare const Provider: MessageFns<Provider>;
14
+ interface MessageFns<T> {
15
+ fromJSON(object: any): T;
16
+ toJSON(message: T): unknown;
17
+ }
18
+ export {};