diff --git a/Makefile b/Makefile index 0e4cf2a..77cf721 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ doc: - poetry run python -m tools.mdtable + uv run python -m tools.mdtable schemas: - poetry run python -m csfunctions.tools.write_schema + uv run python -m csfunctions.tools.write_schema diff --git a/csfunctions/objects/document.py b/csfunctions/objects/document.py index f47f2e9..4f36342 100644 --- a/csfunctions/objects/document.py +++ b/csfunctions/objects/document.py @@ -68,6 +68,8 @@ class Document(BaseObject): z_art: str | None = Field(None, description="Document Type") mapped_materialnr_erp: str | None = Field(None, description="Materialnumber ERP") cdb_object_id: str | None = Field(None, description="Object ID") + pruefer: str | None = Field(None, description="Reviewer") + pruef_datum: datetime | None = Field(None, description="Review Date") # Custom Char Fields cca_char_doc_1: str | None = Field(None, description="Custom Char Field") diff --git a/json_schemas/request.json b/json_schemas/request.json index 16d9232..2040695 100644 --- a/json_schemas/request.json +++ b/json_schemas/request.json @@ -691,6 +691,33 @@ "description": "Object ID", "title": "Cdb Object Id" }, + "pruefer": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Reviewer", + "title": "Pruefer" + }, + "pruef_datum": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Review Date", + "title": "Pruef Datum" + }, "cca_char_doc_1": { "anyOf": [ {