kodexa 7.0.9962400120__tar.gz → 7.0.10205642365__tar.gz

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.
Files changed (45) hide show
  1. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/PKG-INFO +1 -1
  2. kodexa-7.0.10205642365/kodexa/model/entities/check_response.py +132 -0
  3. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/objects.py +20 -0
  4. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/platform/client.py +2 -0
  5. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/pyproject.toml +1 -1
  6. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/LICENSE +0 -0
  7. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/README.md +0 -0
  8. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/__init__.py +0 -0
  9. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/assistant/__init__.py +0 -0
  10. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/assistant/assistant.py +0 -0
  11. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/connectors/__init__.py +0 -0
  12. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/connectors/connectors.py +0 -0
  13. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/__init__.py +0 -0
  14. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/base.py +0 -0
  15. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/entities/__init__.py +0 -0
  16. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/entities/product.py +0 -0
  17. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/entities/product_subscription.py +0 -0
  18. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/model.py +0 -0
  19. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/model/persistence.py +0 -0
  20. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/pipeline/__init__.py +0 -0
  21. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/pipeline/pipeline.py +0 -0
  22. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/platform/__init__.py +0 -0
  23. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/platform/interaction.py +0 -0
  24. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/platform/kodexa.py +0 -0
  25. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/__init__.py +0 -0
  26. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/ast.py +0 -0
  27. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/core.py +0 -0
  28. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/lexrules.py +0 -0
  29. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/lextab.py +0 -0
  30. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/lextab.pyi +0 -0
  31. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/parserules.py +0 -0
  32. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/parserules.pyi +0 -0
  33. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/parsetab.py +0 -0
  34. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/selectors/parsetab.pyi +0 -0
  35. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/spatial/__init__.py +0 -0
  36. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/spatial/azure_models.py +0 -0
  37. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/spatial/bbox_common.py +0 -0
  38. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/spatial/table_form_common.py +0 -0
  39. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/steps/__init__.py +0 -0
  40. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/steps/common.py +0 -0
  41. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/testing/__init__.py +0 -0
  42. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/testing/test_components.py +0 -0
  43. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/testing/test_utils.py +0 -0
  44. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/training/__init__.py +0 -0
  45. {kodexa-7.0.9962400120 → kodexa-7.0.10205642365}/kodexa/training/train_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.9962400120
3
+ Version: 7.0.10205642365
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -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
@@ -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
 
@@ -1019,6 +1036,7 @@ class TaxonType(Enum):
1019
1036
  phone_number = "PHONE_NUMBER"
1020
1037
  selection = "SELECTION"
1021
1038
  section = "SECTION"
1039
+ review = "REVIEW"
1022
1040
 
1023
1041
 
1024
1042
  class TaxonomyType1(Enum):
@@ -2666,6 +2684,8 @@ class Taxon(BaseModel):
2666
2684
 
2667
2685
  conditional_formats: Optional[List[TaxonConditionalFormat]] = Field(None, alias="conditionalFormats")
2668
2686
 
2687
+ checklist_definitions: Optional[List[ChecklistDefinition]] = Field(None, alias="checklistDefinitions")
2688
+
2669
2689
  def update_path(self, parent_path=None):
2670
2690
  if parent_path is None:
2671
2691
  parent_path = ""
@@ -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
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.09962400120"
3
+ version = "7.0.010205642365"
4
4
  description = "Python SDK for the Kodexa Platform"
5
5
  authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
6
6
  readme = "README.md"