added npm files

This commit is contained in:
2024-05-09 08:10:20 -07:00
parent 9f0b036391
commit c58dab1807
11 changed files with 937 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
export class ReactionTypeCount {
constructor({ count, reactionType }) {
this.count = count;
this.reactionType = reactionType;
}
}
export class SocialActivityCounts {
constructor({ entityUrn, numComments, numLikes, reactionTypeCounts, liked, preDashEntityUrn }) {
this.entityUrn = entityUrn;
this.numComments = numComments;
this.numLikes = numLikes;
this.reactionTypeCounts = reactionTypeCounts.map(count => new ReactionTypeCount(count));
this.liked = liked;
this.preDashEntityUrn = preDashEntityUrn;
}
}
export class Group {
constructor({ entityUrn }) {
this.entityUrn = entityUrn;
}
}
// Placeholder class for any other types
export class GenericEntity {
constructor(data) {
Object.assign(this, data);
}
}