@studyportals/domain-client 8.6.1-beta.1 → 9.0.1-beta.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.
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { File } from "../File.js";
|
|
2
2
|
import { Location } from "../Location.js";
|
|
3
3
|
import { SocialLink } from "../SocialLink.js";
|
|
4
|
+
export interface LeadRecipient {
|
|
5
|
+
email: string;
|
|
6
|
+
emailType: string;
|
|
7
|
+
}
|
|
4
8
|
export interface PartnerApiOrganisation {
|
|
5
9
|
id: number;
|
|
6
10
|
name: string;
|
|
@@ -10,7 +14,9 @@ export interface PartnerApiOrganisation {
|
|
|
10
14
|
locations: Location[];
|
|
11
15
|
links: SocialLink[];
|
|
12
16
|
isoCode: string;
|
|
17
|
+
leadRecipients: LeadRecipient[];
|
|
13
18
|
}
|
|
19
|
+
export declare const LeadRecipient: MessageFns<LeadRecipient>;
|
|
14
20
|
export declare const PartnerApiOrganisation: MessageFns<PartnerApiOrganisation>;
|
|
15
21
|
interface MessageFns<T> {
|
|
16
22
|
fromJSON(object: any): T;
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v2.11.8
|
|
4
|
-
// protoc
|
|
4
|
+
// protoc v6.30.2
|
|
5
5
|
// source: PartnerApi/PartnerApiOrganisation.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { File } from "../File.js";
|
|
8
8
|
import { Location } from "../Location.js";
|
|
9
9
|
import { SocialLink } from "../SocialLink.js";
|
|
10
|
+
export const LeadRecipient = {
|
|
11
|
+
fromJSON(object) {
|
|
12
|
+
return {
|
|
13
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
14
|
+
emailType: isSet(object.emailType) ? globalThis.String(object.emailType) : "",
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
toJSON(message) {
|
|
18
|
+
const obj = {};
|
|
19
|
+
if (message.email !== "") {
|
|
20
|
+
obj.email = message.email;
|
|
21
|
+
}
|
|
22
|
+
if (message.emailType !== "") {
|
|
23
|
+
obj.emailType = message.emailType;
|
|
24
|
+
}
|
|
25
|
+
return obj;
|
|
26
|
+
},
|
|
27
|
+
};
|
|
10
28
|
export const PartnerApiOrganisation = {
|
|
11
29
|
fromJSON(object) {
|
|
12
30
|
return {
|
|
@@ -22,6 +40,9 @@ export const PartnerApiOrganisation = {
|
|
|
22
40
|
? object.links.map((e) => SocialLink.fromJSON(e))
|
|
23
41
|
: [],
|
|
24
42
|
isoCode: isSet(object.isoCode) ? globalThis.String(object.isoCode) : "",
|
|
43
|
+
leadRecipients: globalThis.Array.isArray(object?.leadRecipients)
|
|
44
|
+
? object.leadRecipients.map((e) => LeadRecipient.fromJSON(e))
|
|
45
|
+
: [],
|
|
25
46
|
};
|
|
26
47
|
},
|
|
27
48
|
toJSON(message) {
|
|
@@ -50,6 +71,9 @@ export const PartnerApiOrganisation = {
|
|
|
50
71
|
if (message.isoCode !== "") {
|
|
51
72
|
obj.isoCode = message.isoCode;
|
|
52
73
|
}
|
|
74
|
+
if (message.leadRecipients?.length) {
|
|
75
|
+
obj.leadRecipients = message.leadRecipients.map((e) => LeadRecipient.toJSON(e));
|
|
76
|
+
}
|
|
53
77
|
return obj;
|
|
54
78
|
},
|
|
55
79
|
};
|