kodexa 7.0.11121143338__py3-none-any.whl → 7.0.11124021784__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 +24 -0
- kodexa/platform/client.py +54 -4
- {kodexa-7.0.11121143338.dist-info → kodexa-7.0.11124021784.dist-info}/METADATA +1 -1
- {kodexa-7.0.11121143338.dist-info → kodexa-7.0.11124021784.dist-info}/RECORD +6 -6
- {kodexa-7.0.11121143338.dist-info → kodexa-7.0.11124021784.dist-info}/LICENSE +0 -0
- {kodexa-7.0.11121143338.dist-info → kodexa-7.0.11124021784.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -2564,6 +2564,8 @@ class TaxonAdditionContext(BaseModel):
|
|
2564
2564
|
|
2565
2565
|
class TaxonGuideProperties(BaseModel):
|
2566
2566
|
guidance_key: Optional[bool] = Field(None, alias="guidanceKey")
|
2567
|
+
guidance_key_expression: Optional[str] = Field(None, alias="guidanceKeyExpression")
|
2568
|
+
use_guidance_for_classification: Optional[bool] = Field(None, alias="useGuidanceForClassification")
|
2567
2569
|
|
2568
2570
|
|
2569
2571
|
class TaxonConditionalFormat(BaseModel):
|
@@ -3488,6 +3490,28 @@ class PageMessage(BaseModel):
|
|
3488
3490
|
empty: Optional[bool] = None
|
3489
3491
|
|
3490
3492
|
|
3493
|
+
class PageTask(BaseModel):
|
3494
|
+
"""
|
3495
|
+
|
3496
|
+
"""
|
3497
|
+
model_config = ConfigDict(
|
3498
|
+
populate_by_name=True,
|
3499
|
+
use_enum_values=True,
|
3500
|
+
arbitrary_types_allowed=True,
|
3501
|
+
protected_namespaces=("model_config",),
|
3502
|
+
)
|
3503
|
+
total_pages: Optional[int] = Field(None, alias="totalPages")
|
3504
|
+
total_elements: Optional[int] = Field(None, alias="totalElements")
|
3505
|
+
size: Optional[int] = None
|
3506
|
+
content: Optional[List[Task]] = None
|
3507
|
+
number: Optional[int] = None
|
3508
|
+
|
3509
|
+
number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
|
3510
|
+
first: Optional[bool] = None
|
3511
|
+
last: Optional[bool] = None
|
3512
|
+
empty: Optional[bool] = None
|
3513
|
+
|
3514
|
+
|
3491
3515
|
class PageChannel(BaseModel):
|
3492
3516
|
"""
|
3493
3517
|
|
kodexa/platform/client.py
CHANGED
@@ -86,7 +86,7 @@ from kodexa.model.objects import (
|
|
86
86
|
PageExtensionPack,
|
87
87
|
PageOrganization,
|
88
88
|
DocumentFamilyStatistics, MessageContext, PagePrompt, Prompt, GuidanceSet, PageGuidanceSet, DocumentEmbedding,
|
89
|
-
DocumentExternalData,
|
89
|
+
DocumentExternalData, Task, PageTask,
|
90
90
|
)
|
91
91
|
|
92
92
|
logger = logging.getLogger()
|
@@ -1173,6 +1173,11 @@ class PagePipelineEndpoint(PagePipeline, PageEndpoint):
|
|
1173
1173
|
return "pipeline"
|
1174
1174
|
|
1175
1175
|
|
1176
|
+
class PageTaskEndpoint(PageTask, PageEndpoint):
|
1177
|
+
def get_type(self) -> Optional[str]:
|
1178
|
+
return "task"
|
1179
|
+
|
1180
|
+
|
1176
1181
|
class PageProjectEndpoint(PageProject, PageEndpoint):
|
1177
1182
|
"""Represents a page project endpoint.
|
1178
1183
|
|
@@ -2516,15 +2521,25 @@ class WorkspaceEndpoint(EntityEndpoint, Workspace):
|
|
2516
2521
|
else:
|
2517
2522
|
raise ValueError("Workspace has no channel")
|
2518
2523
|
|
2524
|
+
class TaskEndpoint(EntityEndpoint, Task):
|
2525
|
+
"""Represents a task endpoint.
|
2526
|
+
|
2527
|
+
This class is used to interact with the task endpoint of the API.
|
2528
|
+
"""
|
2529
|
+
def get_type(self) -> str:
|
2530
|
+
"""Get the type of the endpoint.
|
2531
|
+
|
2532
|
+
Returns:
|
2533
|
+
str: The type of the endpoint, in this case "projects".
|
2534
|
+
"""
|
2535
|
+
return "tasks"
|
2536
|
+
|
2519
2537
|
|
2520
2538
|
class ProjectEndpoint(EntityEndpoint, Project):
|
2521
2539
|
"""Represents a project endpoint.
|
2522
2540
|
|
2523
2541
|
This class is used to interact with the project endpoint of the API.
|
2524
2542
|
"""
|
2525
|
-
|
2526
|
-
"""Represents a project endpoint"""
|
2527
|
-
|
2528
2543
|
def get_type(self) -> str:
|
2529
2544
|
"""Get the type of the endpoint.
|
2530
2545
|
|
@@ -2849,6 +2864,39 @@ class AssistantsEndpoint(EntitiesEndpoint):
|
|
2849
2864
|
return PageAssistantEndpoint
|
2850
2865
|
|
2851
2866
|
|
2867
|
+
class TasksEndpoint(EntitiesEndpoint):
|
2868
|
+
"""Represents a projects endpoint"""
|
2869
|
+
|
2870
|
+
"""Represents a projects endpoint"""
|
2871
|
+
|
2872
|
+
def get_type(self) -> str:
|
2873
|
+
"""
|
2874
|
+
Get the type of the endpoint.
|
2875
|
+
|
2876
|
+
Returns:
|
2877
|
+
str: The type of the endpoint.
|
2878
|
+
"""
|
2879
|
+
return "tasks"
|
2880
|
+
|
2881
|
+
def get_instance_class(self, object_dict=None):
|
2882
|
+
"""
|
2883
|
+
Get the instance class of the endpoint.
|
2884
|
+
|
2885
|
+
Returns:
|
2886
|
+
ProjectEndpoint: The instance class of the endpoint.
|
2887
|
+
"""
|
2888
|
+
return TaskEndpoint
|
2889
|
+
|
2890
|
+
def get_page_class(self, object_dict=None):
|
2891
|
+
"""
|
2892
|
+
Get the page class of the endpoint.
|
2893
|
+
|
2894
|
+
Returns:
|
2895
|
+
PageProjectEndpoint: The page class of the endpoint.
|
2896
|
+
"""
|
2897
|
+
return PageTaskEndpoint
|
2898
|
+
|
2899
|
+
|
2852
2900
|
class ProjectsEndpoint(EntitiesEndpoint):
|
2853
2901
|
"""Represents a projects endpoint"""
|
2854
2902
|
|
@@ -6374,6 +6422,7 @@ class KodexaClient:
|
|
6374
6422
|
self.messages = MessagesEndpoint(self)
|
6375
6423
|
from kodexa.model.entities.product import ProductsEndpoint
|
6376
6424
|
self.products = ProductsEndpoint(self)
|
6425
|
+
self.tasks = TasksEndpoint(self)
|
6377
6426
|
|
6378
6427
|
@staticmethod
|
6379
6428
|
def login(url, token):
|
@@ -6969,6 +7018,7 @@ class KodexaClient:
|
|
6969
7018
|
"guidance": GuidanceSetEndpoint,
|
6970
7019
|
"channel": ChannelEndpoint,
|
6971
7020
|
"product": ProductEndpoint,
|
7021
|
+
"task": TaskEndpoint,
|
6972
7022
|
"productSubscription": ProductSubscriptionEndpoint,
|
6973
7023
|
"checkResponse": CheckResponseEndpoint
|
6974
7024
|
}
|
@@ -12,12 +12,12 @@ kodexa/model/entities/check_response.py,sha256=eqBHxO6G2OAziL3p9bHGI-oiPkAG82H6C
|
|
12
12
|
kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
|
13
13
|
kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
|
14
14
|
kodexa/model/model.py,sha256=Ay3X9rsoJaUdG51WysSDPp2iy_cnz4eEYJgWdC25uio,118058
|
15
|
-
kodexa/model/objects.py,sha256=
|
15
|
+
kodexa/model/objects.py,sha256=1DzkLwMovAIwmd_e5LA6clUiLLhKmE7o0SBs-TiJpWo,179243
|
16
16
|
kodexa/model/persistence.py,sha256=w4WGS_qH1iowH8-ZMawZBZ2RFW3bNvmFy5fgSwr6VmQ,66198
|
17
17
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
18
18
|
kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
|
19
19
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
20
|
-
kodexa/platform/client.py,sha256=
|
20
|
+
kodexa/platform/client.py,sha256=s1MhDnR827qFUPecDw1OWVj24L2A7g1NprJ_CLX4L_Q,224198
|
21
21
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
22
22
|
kodexa/platform/kodexa.py,sha256=RVtArtzn1TVhBf3NGC4xe-ZO-VEVDIC3RjLhR06p-uU,34033
|
23
23
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
@@ -42,7 +42,7 @@ kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,
|
|
42
42
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
43
43
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
45
|
-
kodexa-7.0.
|
46
|
-
kodexa-7.0.
|
47
|
-
kodexa-7.0.
|
48
|
-
kodexa-7.0.
|
45
|
+
kodexa-7.0.11124021784.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
46
|
+
kodexa-7.0.11124021784.dist-info/METADATA,sha256=AK3qC8ecsDSZWgf02VcTjkAwFAL7caDYoulEjlSJrsc,3529
|
47
|
+
kodexa-7.0.11124021784.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
48
|
+
kodexa-7.0.11124021784.dist-info/RECORD,,
|
File without changes
|
File without changes
|