-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity.ts
45 lines (40 loc) · 915 Bytes
/
activity.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export type ActivityInfo = {
title: string;
message: string | null;
frontImage: string;
otherInfo: string | null;
backImage: string | null;
};
type Action = {
actionTakerId: string;
postId: string | null;
};
type GenerationDetails = {
id: string;
creatorId: string;
postId: string | null;
};
export type ActivityType =
| "USER_NOTIFICATION"
| "CREATOR_NOTIFICATION"
| "CREDIT_NOTIFICATION"
| "POST_NOTIFICATION"
| "GENERATION_NOTIFICATION"
| "USER_GENERATION_NOTIFICATION"
| "CREATOR_GENERATION_NOTIFICATION"
| "QUESTION_NOTIFICATION";
export type Activity = {
activityId: string;
userId: string;
activity: ActivityInfo;
action: Action;
generationDetails: GenerationDetails | null;
activityType: ActivityType;
createdAt: string;
updatedAt: string;
};
export type ActivityCounts = {
notification: number;
offerCreated: number;
offerReceived: number;
};