kodexa 7.4.412417009064__tar.gz → 7.4.412519057986__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.
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/PKG-INFO +1 -1
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/entities/product.py +2 -1
- kodexa-7.4.412519057986/kodexa/model/entities/product_group.py +126 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/pyproject.toml +1 -1
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/LICENSE +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/README.md +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/dataclasses/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/base.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/model.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/objects.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/persistence.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/utils.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/platform/client.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/core.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/steps/common.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/training/__init__.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/utils/__init__.py +0 -0
@@ -3,7 +3,7 @@ from typing import Optional, List
|
|
3
3
|
from pydantic import BaseModel, ConfigDict, Field
|
4
4
|
from kodexa.model.base import StandardDateTime
|
5
5
|
from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
|
6
|
-
|
6
|
+
from .product_group import ProductGroup
|
7
7
|
|
8
8
|
class Product(BaseModel):
|
9
9
|
"""
|
@@ -28,6 +28,7 @@ class Product(BaseModel):
|
|
28
28
|
name: str
|
29
29
|
description: Optional[str] = None
|
30
30
|
overview_markdown: Optional[str] = Field(None, alias="overviewMarkdown")
|
31
|
+
product_group: ProductGroup
|
31
32
|
|
32
33
|
|
33
34
|
class ProductEndpoint(Product, EntityEndpoint):
|
@@ -0,0 +1,126 @@
|
|
1
|
+
from typing import Optional, List
|
2
|
+
|
3
|
+
from pydantic import BaseModel, ConfigDict, Field
|
4
|
+
from kodexa.model.base import StandardDateTime
|
5
|
+
from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
|
6
|
+
|
7
|
+
|
8
|
+
class ProductGroup(BaseModel):
|
9
|
+
"""
|
10
|
+
|
11
|
+
"""
|
12
|
+
model_config = ConfigDict(
|
13
|
+
populate_by_name=True,
|
14
|
+
use_enum_values=True,
|
15
|
+
arbitrary_types_allowed=True,
|
16
|
+
protected_namespaces=("model_config",),
|
17
|
+
)
|
18
|
+
"""
|
19
|
+
A product group
|
20
|
+
"""
|
21
|
+
|
22
|
+
|
23
|
+
id: Optional[str] = None
|
24
|
+
uuid: Optional[str] = None
|
25
|
+
change_sequence: Optional[int] = Field(None, alias="changeSequence")
|
26
|
+
created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
|
27
|
+
updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
|
28
|
+
name: str
|
29
|
+
description: Optional[str] = None
|
30
|
+
overview_markdown: Optional[str] = Field(None, alias="overviewMarkdown")
|
31
|
+
|
32
|
+
|
33
|
+
class ProductGroupEndpoint(ProductGroup, EntityEndpoint):
|
34
|
+
"""Handles the endpoint for a product group
|
35
|
+
|
36
|
+
This class is a combination of DataException and EntityEndpoint. It is used
|
37
|
+
to manage the endpoint for data exceptions.
|
38
|
+
|
39
|
+
Methods:
|
40
|
+
get_type: Returns the type of the endpoint.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def get_type(self) -> str:
|
44
|
+
"""Gets the type of the endpoint.
|
45
|
+
|
46
|
+
This method returns the type of the endpoint which is "exceptions".
|
47
|
+
|
48
|
+
Returns:
|
49
|
+
str: The type of the endpoint.
|
50
|
+
"""
|
51
|
+
return "product-groups"
|
52
|
+
|
53
|
+
|
54
|
+
class PageProductGroup(BaseModel):
|
55
|
+
"""
|
56
|
+
|
57
|
+
"""
|
58
|
+
model_config = ConfigDict(
|
59
|
+
populate_by_name=True,
|
60
|
+
use_enum_values=True,
|
61
|
+
arbitrary_types_allowed=True,
|
62
|
+
protected_namespaces=("model_config",),
|
63
|
+
)
|
64
|
+
total_pages: Optional[int] = Field(None, alias="totalPages")
|
65
|
+
total_elements: Optional[int] = Field(None, alias="totalElements")
|
66
|
+
size: Optional[int] = None
|
67
|
+
content: Optional[List[ProductGroup]] = None
|
68
|
+
number: Optional[int] = None
|
69
|
+
|
70
|
+
number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
|
71
|
+
first: Optional[bool] = None
|
72
|
+
last: Optional[bool] = None
|
73
|
+
empty: Optional[bool] = None
|
74
|
+
|
75
|
+
|
76
|
+
class PageProductGroupEndpoint(PageProductGroup, PageEndpoint):
|
77
|
+
def get_type(self) -> Optional[str]:
|
78
|
+
return "product-group"
|
79
|
+
|
80
|
+
|
81
|
+
class ProductGroupsEndpoint(EntitiesEndpoint):
|
82
|
+
"""Represents the product groups endpoint
|
83
|
+
|
84
|
+
This class is used to represent the product groups endpoint in the system.
|
85
|
+
|
86
|
+
Attributes:
|
87
|
+
object_dict: A dictionary containing the object data.
|
88
|
+
"""
|
89
|
+
|
90
|
+
"""Represents a assistants endpoint"""
|
91
|
+
|
92
|
+
def get_type(self) -> str:
|
93
|
+
"""Get the type of the endpoint
|
94
|
+
|
95
|
+
This method is used to get the type of the endpoint.
|
96
|
+
|
97
|
+
Returns:
|
98
|
+
str: The type of the endpoint.
|
99
|
+
"""
|
100
|
+
return "product-groups"
|
101
|
+
|
102
|
+
def get_instance_class(self, object_dict=None):
|
103
|
+
"""Get the instance class of the endpoint
|
104
|
+
|
105
|
+
This method is used to get the instance class of the endpoint.
|
106
|
+
|
107
|
+
Args:
|
108
|
+
object_dict (dict, optional): A dictionary containing the object data.
|
109
|
+
|
110
|
+
Returns:
|
111
|
+
AssistantEndpoint: The instance class of the endpoint.
|
112
|
+
"""
|
113
|
+
return ProductGroupEndpoint
|
114
|
+
|
115
|
+
def get_page_class(self, object_dict=None):
|
116
|
+
"""Get the page class of the endpoint
|
117
|
+
|
118
|
+
This method is used to get the page class of the endpoint.
|
119
|
+
|
120
|
+
Args:
|
121
|
+
object_dict (dict, optional): A dictionary containing the object data.
|
122
|
+
|
123
|
+
Returns:
|
124
|
+
PageAssistantEndpoint: The page class of the endpoint.
|
125
|
+
"""
|
126
|
+
return PageProductGroupEndpoint
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.4.
|
3
|
+
version = "7.4.412519057986"
|
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"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/dataclasses/templates/llm_data_class.j2
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.4.412417009064 → kodexa-7.4.412519057986}/kodexa/model/entities/product_subscription.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|