kodexa 7.4.413824212111__py3-none-any.whl → 7.4.414042430016__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kodexa/model/objects.py +3 -2
- kodexa/platform/client.py +19 -1
- {kodexa-7.4.413824212111.dist-info → kodexa-7.4.414042430016.dist-info}/METADATA +1 -1
- {kodexa-7.4.413824212111.dist-info → kodexa-7.4.414042430016.dist-info}/RECORD +6 -6
- {kodexa-7.4.413824212111.dist-info → kodexa-7.4.414042430016.dist-info}/LICENSE +0 -0
- {kodexa-7.4.413824212111.dist-info → kodexa-7.4.414042430016.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -4063,7 +4063,7 @@ class CustomEvent(BaseModel):
|
|
4063
4063
|
None, description="The name of the event", pattern=r"^[a-zA-Z0-9\-_]{0,40}$"
|
4064
4064
|
)
|
4065
4065
|
icon: Optional[str] = Field(
|
4066
|
-
None, description="The name of
|
4066
|
+
None, description="The name of an icon to use for the event"
|
4067
4067
|
)
|
4068
4068
|
label: Optional[str] = Field(
|
4069
4069
|
None, description="The label to use on the event in the UI"
|
@@ -4690,6 +4690,7 @@ class AssistantExecution(BaseModel):
|
|
4690
4690
|
ScheduledEvent,
|
4691
4691
|
ChannelEvent,
|
4692
4692
|
WorkspaceEvent,
|
4693
|
+
TaskEvent,
|
4693
4694
|
]
|
4694
4695
|
] = None
|
4695
4696
|
response: Optional[AssistantExecutionResponse] = None
|
@@ -6312,6 +6313,7 @@ ContentEvent.model_rebuild()
|
|
6312
6313
|
DataObjectEvent.model_rebuild()
|
6313
6314
|
DocumentFamilyEvent.model_rebuild()
|
6314
6315
|
ScheduledEvent.model_rebuild()
|
6316
|
+
TaskEvent.model_rebuild()
|
6315
6317
|
DataException.model_rebuild()
|
6316
6318
|
Workspace.model_rebuild()
|
6317
6319
|
AssistantResponsePipeline.model_rebuild()
|
@@ -6320,4 +6322,3 @@ Message.model_rebuild()
|
|
6320
6322
|
MessageFeedback.model_rebuild()
|
6321
6323
|
MessageFeedbackResponse.model_rebuild()
|
6322
6324
|
MessageFeedbackOption.model_rebuild()
|
6323
|
-
|
kodexa/platform/client.py
CHANGED
@@ -23,6 +23,7 @@ from pydantic import BaseModel, Field, ConfigDict
|
|
23
23
|
from pydantic_yaml import to_yaml_str
|
24
24
|
|
25
25
|
from kodexa.model import Document
|
26
|
+
from kodexa.model.model import Ref
|
26
27
|
from kodexa.model.objects import (
|
27
28
|
PageUser,
|
28
29
|
PageMembership,
|
@@ -1240,7 +1241,7 @@ class TaskEndpoint(EntityEndpoint, Task):
|
|
1240
1241
|
def update_status(self, status: TaskStatus):
|
1241
1242
|
"""Update the status of the task."""
|
1242
1243
|
url = f"/api/tasks/{self.id}/status"
|
1243
|
-
response = self.client.put(url, body=status)
|
1244
|
+
response = self.client.put(url, body=status.model_dump(mode="json", by_alias=True))
|
1244
1245
|
return TaskEndpoint.model_validate(response.json()).set_client(self.client)
|
1245
1246
|
|
1246
1247
|
def remove_status(self):
|
@@ -4669,6 +4670,23 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
|
|
4669
4670
|
process_response(response)
|
4670
4671
|
self.change_sequence = response.json()["changeSequence"]
|
4671
4672
|
|
4673
|
+
def rename(self, new_name: str):
|
4674
|
+
"""
|
4675
|
+
Rename the document family.
|
4676
|
+
|
4677
|
+
Args:
|
4678
|
+
name (str): The new name of the document family.
|
4679
|
+
|
4680
|
+
Returns:
|
4681
|
+
None
|
4682
|
+
"""
|
4683
|
+
ref_helper = Ref(self.store_ref)
|
4684
|
+
url = f"/api/stores/{ref_helper.org_slug}/{ref_helper.slug}/fs"
|
4685
|
+
params = {"rename": new_name, "path": self.path}
|
4686
|
+
response = self.client.put(url, params=params)
|
4687
|
+
process_response(response)
|
4688
|
+
self.change_sequence = response.json()["changeSequence"]
|
4689
|
+
|
4672
4690
|
def lock(self):
|
4673
4691
|
"""
|
4674
4692
|
Lock the document family.
|
@@ -13,13 +13,13 @@ kodexa/model/entities/product.py,sha256=StUhTEeLXmc05cj6XnZppQfeJsqCPbX1jdhsysHH
|
|
13
13
|
kodexa/model/entities/product_group.py,sha256=540fRGyUf34h1BzAN1DiWu6rGgvaj3xDFhZ2k-RvSFY,3617
|
14
14
|
kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
|
15
15
|
kodexa/model/model.py,sha256=q3zEm6pPOB-xPCKbOxmTMqLALzmQr2Ppam8knApoSEE,119645
|
16
|
-
kodexa/model/objects.py,sha256=
|
16
|
+
kodexa/model/objects.py,sha256=kC7B7ix50r9Q6j1h6BXJg5q-mKZXceUqmRHQOQtd7DY,198864
|
17
17
|
kodexa/model/persistence.py,sha256=jUgQ8xwsAFIoZ_bEynxCDEWhUII42eN0e0Mum0dkQPg,72043
|
18
18
|
kodexa/model/utils.py,sha256=YEG3f8YzBil06D0P3_dfx2S9GnHREzyrjnlWwQ7oPlU,3038
|
19
19
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
20
20
|
kodexa/pipeline/pipeline.py,sha256=zyNEpA7KlGhPs_l-vgV6m-OCb16dbxQhl8QezeylugA,25540
|
21
21
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
22
|
-
kodexa/platform/client.py,sha256=
|
22
|
+
kodexa/platform/client.py,sha256=j_GhxL_BpPV7SjPBsy6gaE0Cq-Fh2cDtfRzUvKhiDiY,235015
|
23
23
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
24
24
|
kodexa/platform/kodexa.py,sha256=MUkJx0g-92R0JxoOTUubFqDP4YriXreCSLy6s46XPmo,35102
|
25
25
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
@@ -44,7 +44,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
|
|
44
44
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
45
45
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
46
46
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
47
|
-
kodexa-7.4.
|
48
|
-
kodexa-7.4.
|
49
|
-
kodexa-7.4.
|
50
|
-
kodexa-7.4.
|
47
|
+
kodexa-7.4.414042430016.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
48
|
+
kodexa-7.4.414042430016.dist-info/METADATA,sha256=FPbC8bp88XRGk6ULxCoYBmuCS8RVI8UuGys1Rw4nMcQ,2813
|
49
|
+
kodexa-7.4.414042430016.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
50
|
+
kodexa-7.4.414042430016.dist-info/RECORD,,
|
File without changes
|
File without changes
|