From f7487f2f6a4f9b42f3a3efee5dfedde2ec1fec7b Mon Sep 17 00:00:00 2001 From: lwi Date: Thu, 9 Jul 2026 13:43:28 +0200 Subject: [PATCH 1/2] missing ml fields --- csfunctions/objects/document.py | 4 + csfunctions/objects/engineering_change.py | 6 + csfunctions/objects/part.py | 14 + docs/reference/objects.md | 30 ++ json_schemas/request.json | 338 ++++++++++++++++++++++ 5 files changed, 392 insertions(+) diff --git a/csfunctions/objects/document.py b/csfunctions/objects/document.py index 4f36342..a541c24 100644 --- a/csfunctions/objects/document.py +++ b/csfunctions/objects/document.py @@ -25,8 +25,12 @@ class Document(BaseObject): titel: str | None = Field(..., description="title") category1_name_en: str | None = Field(..., description="Main Category") category1_name_de: str | None = Field(..., description="Main Category") + category1_name_ja: str | None = Field(None, description="Main Category") + category1_name_zh: str | None = Field(None, description="Main Category") category2_name_en: str | None = Field(..., description="Category") category2_name_de: str | None = Field(..., description="Category") + category2_name_ja: str | None = Field(None, description="Category") + category2_name_zh: str | None = Field(None, description="Category") z_categ1: str | None = Field(..., description="Main Category") z_categ2: str | None = Field(..., description="Category") cdb_obsolete: int | None = Field(..., description="Obsolete") diff --git a/csfunctions/objects/engineering_change.py b/csfunctions/objects/engineering_change.py index b00d2f8..1ba7860 100644 --- a/csfunctions/objects/engineering_change.py +++ b/csfunctions/objects/engineering_change.py @@ -120,14 +120,20 @@ class Change(BaseObject): status: int = Field(..., description="Status") title_de: str | None = Field("", description="Title (de)") title_en: str | None = Field("", description="Title (en)") + title_ja: str | None = Field("", description="Title (ja)") + title_zh: str | None = Field("", description="Title (zh)") cdb_object_id: str | None = Field(None, description="Object ID") change_type: str | None = Field(None, description="Change Type") cs_ecm_change_description_de: str | None = Field("", description="Description (de)") cs_ecm_change_description_en: str | None = Field("", description="Description (en)") + cs_ecm_change_description_ja: str | None = Field("", description="Description (ja)") + cs_ecm_change_description_zh: str | None = Field("", description="Description (zh)") c_event: str | None = Field("", description="Event") change_reason_de: str | None = Field("", description="Reason (de)") change_reason_en: str | None = Field("", description="Reason (en)") + change_reason_ja: str | None = Field("", description="Reason (ja)") + change_reason_zh: str | None = Field("", description="Reason (zh)") c_source: str | None = Field("", description="Source") part_ids: list[str] = Field([], description="List of part IDs, that were changed. (teilenummer@t_index)") diff --git a/csfunctions/objects/part.py b/csfunctions/objects/part.py index 785f2b2..e5c417f 100644 --- a/csfunctions/objects/part.py +++ b/csfunctions/objects/part.py @@ -25,23 +25,33 @@ class Part(BaseObject): benennung2: str | None = Field(None, description="Additional Name") cssaas_benennung3_en: str | None = Field(None, description="Supplementary Name") cssaas_benennung3_de: str | None = Field(None, description="Supplementary Name") + cssaas_benennung3_ja: str | None = Field(None, description="Supplementary Name") + cssaas_benennung3_zh: str | None = Field(None, description="Supplementary Name") t_kategorie_name_de: str | None = Field(None, description="Category Name") t_kategorie_name_en: str | None = Field(None, description="Category Name") + t_kategorie_name_ja: str | None = Field(None, description="Category Name") + t_kategorie_name_zh: str | None = Field(None, description="Category Name") cdb_t_project_id: str | None = Field(None, description="Project ID") t_bereich: str | None = Field(None, description="Department") cdb_t_ec_id: str | None = Field(None, description="Engineering Change ID") item_maturity: int | None = Field(None, description="Maturity Level") gebrauchsstand_name_de: str | None = Field(None, description="Usage Status") gebrauchsstand_name_en: str | None = Field(None, description="Usage Status") + gebrauchsstand_name_ja: str | None = Field(None, description="Usage Status") + gebrauchsstand_name_zh: str | None = Field(None, description="Usage Status") ce_valid_from: date | datetime | None = Field(None, description="Effective from") ce_valid_to: date | datetime | None = Field(None, description="Effective to") mengeneinheit_name_de: str | None = Field(None, description="Quantity Unit") mengeneinheit_name_en: str | None = Field(None, description="Quantity Unit") + mengeneinheit_name_ja: str | None = Field(None, description="Quantity Unit") + mengeneinheit_name_zh: str | None = Field(None, description="Quantity Unit") st_gewicht: float | None = Field(None, description="Weight (kg)") material_object_id: str | None = Field(None, description="Material ID") surface_name_en: str | None = Field(None, description="Surface") surface_name_de: str | None = Field(None, description="Surface") + surface_name_ja: str | None = Field(None, description="Surface") + surface_name_zh: str | None = Field(None, description="Surface") techdaten: str | None = Field(None, description="Engineering Data") cssaas_mirrored_from: str | None = Field(None, description="Mirror Part ID") t_ersatz_fuer: str | None = Field(None, description="Replacement for") @@ -231,6 +241,8 @@ class Material(BaseObject): material_id: str | None = Field(None, description="Material ID") name_de: str | None = Field(None, description="Name DE") name_en: str | None = Field(None, description="Name EN") + name_ja: str | None = Field(None, description="Name JA") + name_zh: str | None = Field(None, description="Name ZH") short_name: str | None = Field(None, description="Short Name") application: str | None = Field(None, description="Applications") remark: str | None = Field(None, description="Remarks") @@ -249,6 +261,8 @@ class MaturityLevel(BaseObject): id: int | None = Field(None, description="Maturity Level") name_de: str | None = Field(None, description="Name DE") name_en: str | None = Field(None, description="Name EN") + name_ja: str | None = Field(None, description="Name JA") + name_zh: str | None = Field(None, description="Name ZH") obsolete: bool | None = Field(None, description="Obsolete Flag") template_workflow_object_id: str | None = Field(None, description="Template Workflow Object ID") diff --git a/docs/reference/objects.md b/docs/reference/objects.md index 8a0716b..60f05a9 100644 --- a/docs/reference/objects.md +++ b/docs/reference/objects.md @@ -175,13 +175,19 @@ A change order of the ECM module. Shares all attributes of its base class `csfun |status|int|Status| |title_de|str \| None|Title (de)| |title_en|str \| None|Title (en)| +|title_ja|str \| None|Title (ja)| +|title_zh|str \| None|Title (zh)| |cdb_object_id|str \| None|Object ID| |change_type|str \| None|Change Type| |cs_ecm_change_description_de|str \| None|Description (de)| |cs_ecm_change_description_en|str \| None|Description (en)| +|cs_ecm_change_description_ja|str \| None|Description (ja)| +|cs_ecm_change_description_zh|str \| None|Description (zh)| |c_event|str \| None|Event| |change_reason_de|str \| None|Reason (de)| |change_reason_en|str \| None|Reason (en)| +|change_reason_ja|str \| None|Reason (ja)| +|change_reason_zh|str \| None|Reason (zh)| |c_source|str \| None|Source| |part_ids|list[str]|List of part IDs, that were changed. (teilenummer@t_index)| |document_ids|list[str]|List of document IDs, that were changed. (z_nummer@z_index)| @@ -212,13 +218,19 @@ A change request of the ECM module. Shares all attributes of its base class `csf |status|int|Status| |title_de|str \| None|Title (de)| |title_en|str \| None|Title (en)| +|title_ja|str \| None|Title (ja)| +|title_zh|str \| None|Title (zh)| |cdb_object_id|str \| None|Object ID| |change_type|str \| None|Change Type| |cs_ecm_change_description_de|str \| None|Description (de)| |cs_ecm_change_description_en|str \| None|Description (en)| +|cs_ecm_change_description_ja|str \| None|Description (ja)| +|cs_ecm_change_description_zh|str \| None|Description (zh)| |c_event|str \| None|Event| |change_reason_de|str \| None|Reason (de)| |change_reason_en|str \| None|Reason (en)| +|change_reason_ja|str \| None|Reason (ja)| +|change_reason_zh|str \| None|Reason (zh)| |c_source|str \| None|Source| |part_ids|list[str]|List of part IDs, that were changed. (teilenummer@t_index)| |document_ids|list[str]|List of document IDs, that were changed. (z_nummer@z_index)| @@ -247,8 +259,12 @@ Normal Document that doesn't contain a CAD-Model. |titel|str \| None|title| |category1_name_en|str \| None|Main Category| |category1_name_de|str \| None|Main Category| +|category1_name_ja|str \| None|Main Category| +|category1_name_zh|str \| None|Main Category| |category2_name_en|str \| None|Category| |category2_name_de|str \| None|Category| +|category2_name_ja|str \| None|Category| +|category2_name_zh|str \| None|Category| |z_categ1|str \| None|Main Category| |z_categ2|str \| None|Category| |cdb_obsolete|int \| None|Obsolete| @@ -595,6 +611,8 @@ Normal Document that doesn't contain a CAD-Model. |material_id|str \| None|Material ID| |name_de|str \| None|Name DE| |name_en|str \| None|Name EN| +|name_ja|str \| None|Name JA| +|name_zh|str \| None|Name ZH| |short_name|str \| None|Short Name| |application|str \| None|Applications| |remark|str \| None|Remarks| @@ -613,6 +631,8 @@ Normal Document that doesn't contain a CAD-Model. |id|int \| None|Maturity Level| |name_de|str \| None|Name DE| |name_en|str \| None|Name EN| +|name_ja|str \| None|Name JA| +|name_zh|str \| None|Name ZH| |obsolete|bool \| None|Obsolete Flag| |template_workflow_object_id|str \| None|Template Workflow Object ID| @@ -651,22 +671,32 @@ An objects property, used by classification. |benennung2|str \| None|Additional Name| |cssaas_benennung3_en|str \| None|Supplementary Name| |cssaas_benennung3_de|str \| None|Supplementary Name| +|cssaas_benennung3_ja|str \| None|Supplementary Name| +|cssaas_benennung3_zh|str \| None|Supplementary Name| |t_kategorie_name_de|str \| None|Category Name| |t_kategorie_name_en|str \| None|Category Name| +|t_kategorie_name_ja|str \| None|Category Name| +|t_kategorie_name_zh|str \| None|Category Name| |cdb_t_project_id|str \| None|Project ID| |t_bereich|str \| None|Department| |cdb_t_ec_id|str \| None|Engineering Change ID| |item_maturity|int \| None|Maturity Level| |gebrauchsstand_name_de|str \| None|Usage Status| |gebrauchsstand_name_en|str \| None|Usage Status| +|gebrauchsstand_name_ja|str \| None|Usage Status| +|gebrauchsstand_name_zh|str \| None|Usage Status| |ce_valid_from|date \| datetime \| None|Effective from| |ce_valid_to|date \| datetime \| None|Effective to| |mengeneinheit_name_de|str \| None|Quantity Unit| |mengeneinheit_name_en|str \| None|Quantity Unit| +|mengeneinheit_name_ja|str \| None|Quantity Unit| +|mengeneinheit_name_zh|str \| None|Quantity Unit| |st_gewicht|float \| None|Weight (kg)| |material_object_id|str \| None|Material ID| |surface_name_en|str \| None|Surface| |surface_name_de|str \| None|Surface| +|surface_name_ja|str \| None|Surface| +|surface_name_zh|str \| None|Surface| |techdaten|str \| None|Engineering Data| |cssaas_mirrored_from|str \| None|Mirror Part ID| |t_ersatz_fuer|str \| None|Replacement for| diff --git a/json_schemas/request.json b/json_schemas/request.json index fa0ca78..1bedcbd 100644 --- a/json_schemas/request.json +++ b/json_schemas/request.json @@ -2040,6 +2040,32 @@ "description": "Title (en)", "title": "Title En" }, + "title_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Title (ja)", + "title": "Title Ja" + }, + "title_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Title (zh)", + "title": "Title Zh" + }, "cdb_object_id": { "anyOf": [ { @@ -2092,6 +2118,32 @@ "description": "Description (en)", "title": "Cs Ecm Change Description En" }, + "cs_ecm_change_description_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Description (ja)", + "title": "Cs Ecm Change Description Ja" + }, + "cs_ecm_change_description_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Description (zh)", + "title": "Cs Ecm Change Description Zh" + }, "c_event": { "anyOf": [ { @@ -2131,6 +2183,32 @@ "description": "Reason (en)", "title": "Change Reason En" }, + "change_reason_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Reason (ja)", + "title": "Change Reason Ja" + }, + "change_reason_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Reason (zh)", + "title": "Change Reason Zh" + }, "c_source": { "anyOf": [ { @@ -2608,6 +2686,32 @@ "description": "Title (en)", "title": "Title En" }, + "title_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Title (ja)", + "title": "Title Ja" + }, + "title_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Title (zh)", + "title": "Title Zh" + }, "cdb_object_id": { "anyOf": [ { @@ -2660,6 +2764,32 @@ "description": "Description (en)", "title": "Cs Ecm Change Description En" }, + "cs_ecm_change_description_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Description (ja)", + "title": "Cs Ecm Change Description Ja" + }, + "cs_ecm_change_description_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Description (zh)", + "title": "Cs Ecm Change Description Zh" + }, "c_event": { "anyOf": [ { @@ -2699,6 +2829,32 @@ "description": "Reason (en)", "title": "Change Reason En" }, + "change_reason_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Reason (ja)", + "title": "Change Reason Ja" + }, + "change_reason_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "", + "description": "Reason (zh)", + "title": "Change Reason Zh" + }, "c_source": { "anyOf": [ { @@ -3249,6 +3405,32 @@ "description": "Main Category", "title": "Category1 Name De" }, + "category1_name_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Main Category", + "title": "Category1 Name Ja" + }, + "category1_name_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Main Category", + "title": "Category1 Name Zh" + }, "category2_name_en": { "anyOf": [ { @@ -3273,6 +3455,32 @@ "description": "Category", "title": "Category2 Name De" }, + "category2_name_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Category", + "title": "Category2 Name Ja" + }, + "category2_name_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Category", + "title": "Category2 Name Zh" + }, "z_categ1": { "anyOf": [ { @@ -8325,6 +8533,32 @@ "description": "Supplementary Name", "title": "Cssaas Benennung3 De" }, + "cssaas_benennung3_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supplementary Name", + "title": "Cssaas Benennung3 Ja" + }, + "cssaas_benennung3_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supplementary Name", + "title": "Cssaas Benennung3 Zh" + }, "t_kategorie_name_de": { "anyOf": [ { @@ -8351,6 +8585,32 @@ "description": "Category Name", "title": "T Kategorie Name En" }, + "t_kategorie_name_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Category Name", + "title": "T Kategorie Name Ja" + }, + "t_kategorie_name_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Category Name", + "title": "T Kategorie Name Zh" + }, "cdb_t_project_id": { "anyOf": [ { @@ -8429,6 +8689,32 @@ "description": "Usage Status", "title": "Gebrauchsstand Name En" }, + "gebrauchsstand_name_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Usage Status", + "title": "Gebrauchsstand Name Ja" + }, + "gebrauchsstand_name_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Usage Status", + "title": "Gebrauchsstand Name Zh" + }, "ce_valid_from": { "anyOf": [ { @@ -8491,6 +8777,32 @@ "description": "Quantity Unit", "title": "Mengeneinheit Name En" }, + "mengeneinheit_name_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Quantity Unit", + "title": "Mengeneinheit Name Ja" + }, + "mengeneinheit_name_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Quantity Unit", + "title": "Mengeneinheit Name Zh" + }, "st_gewicht": { "anyOf": [ { @@ -8543,6 +8855,32 @@ "description": "Surface", "title": "Surface Name De" }, + "surface_name_ja": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Surface", + "title": "Surface Name Ja" + }, + "surface_name_zh": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Surface", + "title": "Surface Name Zh" + }, "techdaten": { "anyOf": [ { From 6bfcb315a6c0b8a3896e69631fc3bc52b23d0b55 Mon Sep 17 00:00:00 2001 From: lwi Date: Thu, 9 Jul 2026 13:46:09 +0200 Subject: [PATCH 2/2] relnotes --- docs/release_notes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/release_notes.md b/docs/release_notes.md index 1a0cede..96f63fd 100644 --- a/docs/release_notes.md +++ b/docs/release_notes.md @@ -3,6 +3,12 @@ hide: - toc --- +### Version 0.26.0 +- Feat: Extend all multi-language object fields with Japanese (ja) and Chinese (zh) variants + +### Version 0.25.0 +- Feat: Add change objects (ChangeOrder and ChangeRequest) with their release and status change events + ### Version 0.24.0 - Feat: Add maturity levels