Skip to content

Commit

Permalink
Add new fields required by custom apps (#77)
Browse files Browse the repository at this point in the history
olaughter authored Aug 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 813e3fc commit 00b4875
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/cpr_sdk/pipeline_general_models.py
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ class BackendDocument(BaseModel):
"""

name: str
document_title: Optional[str] = None
description: str
import_id: str
slug: str
@@ -31,11 +32,15 @@ class BackendDocument(BaseModel):
date: Optional[str] = None # Set on import by a validator
source_url: Optional[str] = None
download_url: Optional[str] = None

corpus_import_id: Optional[str] = None
corpus_type_name: Optional[str] = None
collection_title: Optional[str] = None
collection_summary: Optional[str] = None
type: str
source: str
category: str
geography: str
geographies: Optional[list[str]] = None
languages: Sequence[str]

metadata: Json
2 changes: 1 addition & 1 deletion src/cpr_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_MAJOR = "1"
_MINOR = "2"
_MINOR = "3"
_PATCH = "10"
_SUFFIX = ""

0 comments on commit 00b4875

Please sign in to comment.