Files
talk/src/core/server/models/actions.ts
T
Wyatt Johnson 0b3aead1d2 [next] Perspective API Integration (#1797)
* feat: initial toxic comments impl

* feat: improved logging

* feat: tenant cache adapter

* feat: move more types into graphql
2018-08-14 14:37:00 +00:00

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>;
}