|
|
@@ -66,14 +66,15 @@ export type SupportedTargetModelType = typeof SUPPORTED_TARGET_MODEL_TYPE[keyof
|
|
|
export type SupportedActionType = typeof SUPPORTED_ACTION_TYPE[keyof typeof SUPPORTED_ACTION_TYPE];
|
|
|
|
|
|
|
|
|
+export type ISnapshot = Pick<IUser, 'username'>
|
|
|
+
|
|
|
export type IActivity = {
|
|
|
user?: IUser
|
|
|
targetModel: SupportedTargetModelType
|
|
|
- targe: string
|
|
|
+ target: string
|
|
|
action: SupportedActionType
|
|
|
createdAt: Date
|
|
|
+ snapshot: ISnapshot
|
|
|
}
|
|
|
|
|
|
export type IActivityHasId = IActivity & HasObjectId;
|
|
|
-
|
|
|
-export type ISnapshot = Pick<IUser, 'username'>
|