mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 03:31:02 +02:00
Update librarian to new API
This commit is contained in:
parent
6bf485788a
commit
6e31d24fb1
8 changed files with 136 additions and 221 deletions
|
|
@ -28,6 +28,7 @@ from . documents import Document, TextDocument
|
|||
|
||||
class DocumentPackage(Record):
|
||||
id = String()
|
||||
flow = String()
|
||||
document = Bytes()
|
||||
kind = String()
|
||||
user = String()
|
||||
|
|
@ -39,6 +40,7 @@ class DocumentPackage(Record):
|
|||
|
||||
class DocumentInfo(Record):
|
||||
id = String()
|
||||
flow = String()
|
||||
kind = String()
|
||||
user = String()
|
||||
collection = String()
|
||||
|
|
@ -55,6 +57,7 @@ class Criteria(Record):
|
|||
class LibrarianRequest(Record):
|
||||
operation = String()
|
||||
id = String()
|
||||
flow = String()
|
||||
document = DocumentPackage()
|
||||
user = String()
|
||||
collection = String()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue