kodexa 7.4.413771246579__py3-none-any.whl → 7.4.413775878390__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 +8 -7
- kodexa/platform/client.py +3 -0
- kodexa/platform/kodexa.py +10 -7
- {kodexa-7.4.413771246579.dist-info → kodexa-7.4.413775878390.dist-info}/METADATA +1 -1
- {kodexa-7.4.413771246579.dist-info → kodexa-7.4.413775878390.dist-info}/RECORD +7 -7
- {kodexa-7.4.413771246579.dist-info → kodexa-7.4.413775878390.dist-info}/LICENSE +0 -0
- {kodexa-7.4.413771246579.dist-info → kodexa-7.4.413775878390.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -4735,14 +4735,14 @@ class BaseEvent(
|
|
4735
4735
|
RootModel[
|
4736
4736
|
Union[
|
4737
4737
|
BaseEvent1,
|
4738
|
-
"DocumentFamilyEvent",
|
4739
|
-
"DataObjectEvent",
|
4740
|
-
"ContentEvent",
|
4741
|
-
"ScheduledEvent",
|
4742
4738
|
"AssistantEvent",
|
4743
4739
|
"ChannelEvent",
|
4744
|
-
"
|
4740
|
+
"ContentEvent",
|
4741
|
+
"DataObjectEvent",
|
4742
|
+
"DocumentFamilyEvent",
|
4743
|
+
"ScheduledEvent",
|
4745
4744
|
"TaskEvent",
|
4745
|
+
"WorkspaceEvent",
|
4746
4746
|
]
|
4747
4747
|
]
|
4748
4748
|
):
|
@@ -5200,12 +5200,13 @@ class PlatformEvent(BaseModel):
|
|
5200
5200
|
event_detail: Optional[
|
5201
5201
|
Union[
|
5202
5202
|
AssistantEvent,
|
5203
|
+
ChannelEvent,
|
5203
5204
|
ContentEvent,
|
5204
5205
|
DataObjectEvent,
|
5205
5206
|
DocumentFamilyEvent,
|
5206
5207
|
ScheduledEvent,
|
5207
|
-
|
5208
|
-
WorkspaceEvent
|
5208
|
+
TaskEvent,
|
5209
|
+
WorkspaceEvent,
|
5209
5210
|
]
|
5210
5211
|
] = Field(None, alias="eventDetail")
|
5211
5212
|
document_family: Optional[DocumentFamily] = Field(None, alias="documentFamily")
|
kodexa/platform/client.py
CHANGED
@@ -4726,6 +4726,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
|
|
4726
4726
|
friendly_names=False,
|
4727
4727
|
include_ids=True,
|
4728
4728
|
include_exceptions=False,
|
4729
|
+
inline_audits=False,
|
4729
4730
|
) -> str:
|
4730
4731
|
"""Get the JSON export for the document family
|
4731
4732
|
|
@@ -4734,6 +4735,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
|
|
4734
4735
|
friendly_names (bool): Whether to use friendly names. Defaults to False
|
4735
4736
|
include_ids (bool): Whether to include the IDs. Defaults to True
|
4736
4737
|
include_exceptions (bool): Whether to include the exceptions. Defaults to False
|
4738
|
+
inline_audits (bool): Whether to include inline audit information
|
4737
4739
|
|
4738
4740
|
Returns:
|
4739
4741
|
str: The JSON
|
@@ -4750,6 +4752,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
|
|
4750
4752
|
"projectId": project_id,
|
4751
4753
|
"includeIds": include_ids,
|
4752
4754
|
"includeExceptions": include_exceptions,
|
4755
|
+
"inlineAudits": inline_audits,
|
4753
4756
|
}
|
4754
4757
|
|
4755
4758
|
response = self.client.get(url, params=params)
|
kodexa/platform/kodexa.py
CHANGED
@@ -21,18 +21,19 @@ from kodexa.connectors import get_source
|
|
21
21
|
from kodexa.connectors.connectors import get_caller_dir, FolderConnector
|
22
22
|
from kodexa.model import Document
|
23
23
|
from kodexa.model.objects import (
|
24
|
-
ExecutionEvent,
|
25
|
-
ContentObject,
|
26
24
|
AssistantEvent,
|
27
|
-
ContentEvent,
|
28
|
-
ScheduledEvent,
|
29
|
-
DocumentFamilyEvent,
|
30
25
|
ChannelEvent,
|
26
|
+
ContentEvent,
|
27
|
+
ContentObject,
|
31
28
|
DataObjectEvent,
|
32
|
-
|
29
|
+
DocumentFamilyEvent,
|
30
|
+
ExecutionEvent,
|
31
|
+
ScheduledEvent,
|
32
|
+
TaskEvent,
|
33
|
+
WorkspaceEvent,
|
33
34
|
)
|
34
35
|
from kodexa.pipeline import PipelineContext, PipelineStatistics
|
35
|
-
from kodexa.platform.client import
|
36
|
+
from kodexa.platform.client import KodexaClient, process_response
|
36
37
|
|
37
38
|
logger = logging.getLogger()
|
38
39
|
|
@@ -830,6 +831,8 @@ class EventHelper:
|
|
830
831
|
return DataObjectEvent(**event_dict)
|
831
832
|
if event_dict["type"] == "workspace":
|
832
833
|
return WorkspaceEvent(**event_dict)
|
834
|
+
if event_dict["type"] == "task":
|
835
|
+
return TaskEvent(**event_dict)
|
833
836
|
|
834
837
|
raise f"Unknown event type {event_dict}"
|
835
838
|
|
@@ -13,15 +13,15 @@ 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=L0xBQ-WYI-D0jepBND5C87rphD5t9Gt5LqwVVrqJs5s,198821
|
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=TzcpWtkkD_h7Jf4O4eRFgSZL7GC5NaA8TgCiubhlfaI,234255
|
23
23
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
24
|
-
kodexa/platform/kodexa.py,sha256=
|
24
|
+
kodexa/platform/kodexa.py,sha256=MUkJx0g-92R0JxoOTUubFqDP4YriXreCSLy6s46XPmo,35102
|
25
25
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
26
26
|
kodexa/selectors/ast.py,sha256=K0JUY2tYYCmDlh4uz5N8Jh2zInDremlnriPsY3dx0AI,13523
|
27
27
|
kodexa/selectors/core.py,sha256=kkt02DN20gXeaDGoGubPPeeTV7rCr4sxTyELrI0l1YU,3691
|
@@ -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.413775878390.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
48
|
+
kodexa-7.4.413775878390.dist-info/METADATA,sha256=G4jz9k2c23QnXvKQh4bzImXc61aBqVxeGX3AGXAz_vk,2813
|
49
|
+
kodexa-7.4.413775878390.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
50
|
+
kodexa-7.4.413775878390.dist-info/RECORD,,
|
File without changes
|
File without changes
|