generated from IBM/template-graphql-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
158 lines (139 loc) · 3.28 KB
/
schema.gql
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
"""CSV Document"""
type CsvDocument {
description: String
id: ID!
name: String!
originalUrl: String!
status: CsvDocumentStatus!
}
"""Csv Document Record"""
type CsvDocumentRecord {
confidence: Float
data: String!
documentId: String!
id: String!
predictionValue: String
providedValue: String
}
"""Csv document statuses"""
enum CsvDocumentStatus {
Completed
Deleted
Error
InProgress
}
"""Csv document statuses"""
enum CsvDocumentStatusFilter {
All
Completed
Deleted
Error
InProgress
}
"""CSV Prediction"""
type CsvPrediction {
corrections: [CsvPredictionCorrection!]
date: String!
documentId: String!
id: ID!
model: String!
performanceSummary: PerformanceSummary
predictionField: String
predictionUrl: String!
predictions: [CsvPredictionResult!]!
}
"""Csv prediction correction"""
type CsvPredictionCorrection {
agree: Boolean!
confidence: [Float!]!
documentId: String!
id: ID!
predictionId: String!
predictionRecordId: String!
predictionValue: String!
providedValue: String
}
"""Filter for csv prediction records"""
enum CsvPredictionRecordFilter {
All
AllBelowConfidence
AllDisagree
DisagreeAboveConfidence
DisagreeBelowConfidence
}
"""CSV Prediction Result"""
input CsvPredictionRecordOptions {
filter: CsvPredictionRecordFilter!
}
"""CSV Prediction Result"""
type CsvPredictionResult {
agree: Boolean
confidence: Float!
csvRecordId: String!
data: String
documentId: String!
id: ID!
predictionId: String!
predictionValue: String!
providedValue: String
}
type Mutation {
createCsvPrediction(id: ID!, model: String): CsvPrediction!
deleteCsvDocument(id: ID!): Record!
}
"""Paginated CsvDocumentRecords"""
type PaginatedCsvDocumentRecords {
data: [CsvDocumentRecord!]!
metadata: PaginationMetadata!
}
"""Paginated CsvDocumentModel"""
type PaginatedCsvDocuments {
data: [CsvDocument!]!
metadata: PaginationMetadata!
}
"""Paginated CsvPredictionResults"""
type PaginatedCsvPredictionResults {
data: [CsvPredictionResult!]!
metadata: PaginationMetadata!
}
"""Pagination input"""
input PaginationInput {
page: Float!
pageSize: Float!
}
"""Pagination metadata"""
type PaginationMetadata {
hasMore: Boolean!
page: Float!
pageSize: Float!
totalCount: Float!
}
"""Performance Summary"""
type PerformanceSummary {
agreeAboveThreshold: Float!
agreeBelowThreshold: Float!
confidenceThreshold: Float!
correctedRecords: Float!
disagreeAboveThreshold: Float!
disagreeBelowThreshold: Float!
totalCount: Float!
}
type Query {
getCsvDocument(id: ID!): CsvDocument!
getCsvPrediction(id: ID!): [CsvPrediction!]!
listCsvDocumentRecords(id: ID!, pagination: PaginationInput): PaginatedCsvDocumentRecords!
listCsvDocuments(pagination: PaginationInput, status: CsvDocumentStatusFilter): PaginatedCsvDocuments!
listCsvPredictionRecords(id: ID!, options: CsvPredictionRecordOptions, pagination: PaginationInput): PaginatedCsvPredictionResults!
listCsvPredictions(id: ID!): [CsvPrediction!]!
}
"""Record"""
type Record {
id: ID!
}
type Subscription {
observeCsvDocumentUpdates: CsvDocument!
observeCsvPredictionUpdates: CsvPrediction!
}