mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 19:50:42 +08:00
0b3aead1d2
* feat: initial toxic comments impl * feat: improved logging * feat: tenant cache adapter * feat: move more types into graphql
19 lines
423 B
TypeScript
19 lines
423 B
TypeScript
import {
|
|
GQLACTION_GROUP,
|
|
GQLACTION_ITEM_TYPE,
|
|
GQLACTION_TYPE,
|
|
} from "talk-server/graph/tenant/schema/__generated__/types";
|
|
|
|
export type ActionCounts = Record<string, number>;
|
|
|
|
export interface Action {
|
|
readonly id: string;
|
|
action_type: GQLACTION_TYPE;
|
|
item_type: GQLACTION_ITEM_TYPE;
|
|
item_id: string;
|
|
group_id?: GQLACTION_GROUP;
|
|
user_id?: string;
|
|
created_at: Date;
|
|
metadata?: Record<string, any>;
|
|
}
|