Skip to content

Commit 331b429

Browse files
Merge pull request #3 from Web3-Plurality/feat-add-claims
add claims field in privateData
2 parents 31580d0 + 98a6c16 commit 331b429

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/entity/profile-private-data.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ interface CredSalts {
1717
collections: string;
1818
}
1919

20+
21+
export class Claims {
22+
interests: string[];
23+
reputationTags: string[];
24+
badges: string[];
25+
collections: string[];
26+
analyzed : boolean
27+
28+
constructor() {
29+
this.interests = [];
30+
this.reputationTags = [];
31+
this.badges = [];
32+
this.collections = [];
33+
this.analyzed = false;
34+
}
35+
}
36+
37+
2038
export class AttestedCred {
2139
interests: string[];
2240
reputationTags: string[];
@@ -56,11 +74,13 @@ export class ProfilePrivateData {
5674
attestedPlatformIds: AttestedPlatformIds;
5775
linkedAddress: LinkedAddress[];
5876
extendedPrivateData: any;
77+
claims: Claims;
5978

6079
constructor() {
6180
this.attestedCred = new AttestedCred();
6281
this.attestedPlatformIds = new AttestedPlatformIds();
6382
this.linkedAddress = [];
6483
this.extendedPrivateData = {};
84+
this.claims = new Claims();
6585
}
6686
}

0 commit comments

Comments
 (0)