forked from owid/owid-grapher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuggestedChartRevision.ts
48 lines (37 loc) · 1.08 KB
/
SuggestedChartRevision.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
46
47
48
import { GrapherInterface } from "@ourworldindata/types"
import { SuggestedChartRevisionStatus } from "@ourworldindata/utils"
export interface SuggestedChartRevisionSerialized {
id: number
chartId: number
createdAt: string
updatedAt?: string
chartCreatedAt: string
chartUpdatedAt?: string
createdById: number
updatedById?: number
createdByFullName: string
updatedByFullName?: string
originalConfig: GrapherInterface
suggestedConfig: GrapherInterface
existingConfig: GrapherInterface
status: SuggestedChartRevisionStatus
suggestedReason?: string
decisionReason?: string
changesInDataSummary?: string
canApprove?: boolean
canReject?: boolean
canFlag?: boolean
canPending?: boolean
experimental?: SuggestedChartRevisionExperimentalSerialized
}
export interface SuggestedChartRevisionExperimentalSerialized {
gpt?: {
model?: string
suggestions?: GPTSuggestionsSerialized[]
}
[key: string]: any
}
export interface GPTSuggestionsSerialized {
title?: string
subtitle?: string
}