kodexa 7.0.9962400120__py3-none-any.whl → 7.0.10052855711__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.
@@ -0,0 +1,132 @@
1
+ from typing import Optional, List
2
+
3
+ from pydantic import BaseModel, ConfigDict, Field
4
+ from kodexa.model.base import StandardDateTime
5
+ from kodexa.model.objects import User
6
+ from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
7
+
8
+ from enum import Enum
9
+
10
+
11
+ class CheckStatus(Enum):
12
+ """ Check Status ENUM: OPEN, CLOSED, IN_PROGRESS """
13
+ open = "OPEN"
14
+ closed = "CLOSED"
15
+ in_progress = "IN_PROGRESS"
16
+
17
+
18
+ class CheckResponse(BaseModel):
19
+ """
20
+ Entity of check response
21
+ """
22
+ model_config = ConfigDict(
23
+ populate_by_name=True,
24
+ use_enum_values=True,
25
+ arbitrary_types_allowed=True,
26
+ protected_namespaces=("model_config",),
27
+ )
28
+
29
+ id: Optional[str] = Field(None)
30
+ uuid: Optional[str] = None
31
+ change_sequence: Optional[int] = Field(None, alias="changeSequence")
32
+ created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
33
+ updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
34
+ title: Optional[str] = None
35
+ description: Optional[str] = None
36
+ status: Optional[CheckStatus] = None
37
+ confidence: Optional[float] = None
38
+ approver: Optional[User] = None
39
+
40
+
41
+ class PageCheckResponse(BaseModel):
42
+ """
43
+ A page pydantic for check response
44
+ """
45
+
46
+ model_config = ConfigDict(
47
+ populate_by_name=True,
48
+ use_enum_values=True,
49
+ arbitrary_types_allowed=True,
50
+ protected_namespaces=("model_config",),
51
+ )
52
+ total_pages: Optional[int] = Field(None, alias="totalPages")
53
+ total_elements: Optional[int] = Field(None, alias="totalElements")
54
+ size: Optional[int] = None
55
+ content: Optional[List[CheckResponse]] = None
56
+ number: Optional[int] = None
57
+ number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
58
+ first: Optional[bool] = None
59
+ last: Optional[bool] = None
60
+ empty: Optional[bool] = None
61
+
62
+
63
+ class PageCheckResponseEndpoint(PageCheckResponse, PageEndpoint):
64
+ """
65
+ Represents a page check response endpoint
66
+
67
+ This class is used to represent the endpoints of a page check response. It inherits from
68
+ the PageCheckResponse and PageEndpoint classes.
69
+
70
+ Methods:
71
+ get_type: Returns the type of the endpoint.
72
+ """
73
+
74
+ def get_type(self) -> str:
75
+ """Get the type of the endpoint
76
+
77
+ This method is used to get the type of the endpoint. In this case, it will always
78
+ return "workspace".
79
+
80
+ Returns:
81
+ str: The type of the endpoint, "workspace".
82
+ """
83
+ return "checkResponse"
84
+
85
+
86
+ class CheckResponseEndpoint(CheckResponse, EntityEndpoint):
87
+ """Represents a Check Response endpoint"""
88
+
89
+ def get_type(self) -> str:
90
+ """
91
+ Get the type of endpoint
92
+
93
+ :return: The type of endpoint
94
+ """
95
+ return "checkResponses"
96
+
97
+
98
+ class CheckResponsesEndpoint(EntitiesEndpoint):
99
+ """ Represents check responses endpoint """
100
+
101
+ def get_type(self) -> str:
102
+ """
103
+ Get the type of endpoint
104
+ :return: The type of endpoint
105
+ """
106
+ return "checkResponses"
107
+
108
+ def get_instance_class(self, object_dict=None) -> CheckResponseEndpoint:
109
+ """Get the instance class of the endpoint
110
+
111
+ This method is used to get the instance class of the endpoint.
112
+
113
+ Args:
114
+ object_dict (dict, optional): A dictionary containing the object data.
115
+
116
+ Returns:
117
+ CheckResponseEndpoint: The instance class of the endpoint.
118
+ """
119
+ return CheckResponseEndpoint
120
+
121
+ def get_page_class(self, object_dict=None) -> PageCheckResponseEndpoint:
122
+ """Get the page class of the endpoint
123
+
124
+ This method is used to get the page class of the endpoint.
125
+
126
+ Args:
127
+ object_dict (dict, optional): A dictionary containing the object data.
128
+
129
+ Returns:
130
+ PageCheckResponseEndpoint: The page class of the endpoint.
131
+ """
132
+ return PageCheckResponseEndpoint
kodexa/model/objects.py CHANGED
@@ -766,6 +766,23 @@ class RelatedTaxon(BaseModel):
766
766
  priority: Optional[int] = None
767
767
 
768
768
 
769
+ class ChecklistDefinition(BaseModel):
770
+ """
771
+ Checklist Definiton
772
+ """
773
+ model_config = ConfigDict(
774
+ populate_by_name=True,
775
+ use_enum_values=True,
776
+ arbitrary_types_allowed=True,
777
+ protected_namespaces=("model_config",),
778
+ )
779
+
780
+ title: Optional[str] = None
781
+ description: Optional[str] = None
782
+ definition: Optional[str] = None
783
+ type: Optional[str] = None
784
+
785
+
769
786
  class ScheduleDefinition(BaseModel):
770
787
  """
771
788
 
@@ -2666,6 +2683,8 @@ class Taxon(BaseModel):
2666
2683
 
2667
2684
  conditional_formats: Optional[List[TaxonConditionalFormat]] = Field(None, alias="conditionalFormats")
2668
2685
 
2686
+ checklist_definitions: Optional[List[ChecklistDefinition]] = Field(None, alias="checklistDefinitions")
2687
+
2669
2688
  def update_path(self, parent_path=None):
2670
2689
  if parent_path is None:
2671
2690
  parent_path = ""
kodexa/platform/client.py CHANGED
@@ -6924,6 +6924,7 @@ class KodexaClient:
6924
6924
 
6925
6925
  from kodexa.model.entities.product import ProductEndpoint
6926
6926
  from kodexa.model.entities.product_subscription import ProductSubscriptionEndpoint
6927
+ from kodexa.model.entities.check_response import CheckResponseEndpoint
6927
6928
  known_components = {
6928
6929
  "taxonomy": TaxonomyEndpoint,
6929
6930
  "pipeline": PipelineEndpoint,
@@ -6949,6 +6950,7 @@ class KodexaClient:
6949
6950
  "channel": ChannelEndpoint,
6950
6951
  "product": ProductEndpoint,
6951
6952
  "productSubscription": ProductSubscriptionEndpoint,
6953
+ "checkResponse": CheckResponseEndpoint
6952
6954
  }
6953
6955
 
6954
6956
  if component_type in known_components:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.9962400120
3
+ Version: 7.0.10052855711
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -6,15 +6,16 @@ kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7TH
6
6
  kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
7
7
  kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
8
8
  kodexa/model/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ kodexa/model/entities/check_response.py,sha256=eqBHxO6G2OAziL3p9bHGI-oiPkAG82H6Choc8wyvtM4,3949
9
10
  kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
10
11
  kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
11
12
  kodexa/model/model.py,sha256=BURhrOEVTTlKkDJho5CEFeLR9Dyq157mztlvbAdL1d4,115769
12
- kodexa/model/objects.py,sha256=1do5qAkQu-zVnkRpfWkDaEJk-qlgTL_mLhYIlXjg-ec,176187
13
+ kodexa/model/objects.py,sha256=EPTqjlSF2yH8YhM0d3mmwJwwEQRZaFXG8ssznEHxU-s,176702
13
14
  kodexa/model/persistence.py,sha256=sx5FwTSsWMdAZpAs0-6PqyULHkQyNQClApUKJZ-ly8M,62032
14
15
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
15
16
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
16
17
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
17
- kodexa/platform/client.py,sha256=ZctQyY_iHmEO7ukPeiyBAD-Ad1mMQhSXJr7-d5JNLzQ,222044
18
+ kodexa/platform/client.py,sha256=GCOlFN7BgnCDEg4MNiLgDmSCHGglWdMeCrQQH6y2_oM,222182
18
19
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
19
20
  kodexa/platform/kodexa.py,sha256=Bvf6x43FWsFuAuQ4N8TvjSZq6niEtBTESmFCWVPASeQ,34024
20
21
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
@@ -38,7 +39,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
38
39
  kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
39
40
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
40
41
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
- kodexa-7.0.9962400120.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
42
- kodexa-7.0.9962400120.dist-info/METADATA,sha256=0FK1HMgJnU5WBxYe0veEJxVmV_8djCz9p6FOn3bkH6I,3532
43
- kodexa-7.0.9962400120.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
44
- kodexa-7.0.9962400120.dist-info/RECORD,,
42
+ kodexa-7.0.10052855711.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
43
+ kodexa-7.0.10052855711.dist-info/METADATA,sha256=CuYkyKaZSY8Zf3M9_L5xDxpuotTJvmdcxCpHrsiUm3Y,3533
44
+ kodexa-7.0.10052855711.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
45
+ kodexa-7.0.10052855711.dist-info/RECORD,,