kodexa 7.4.413230066391__py3-none-any.whl → 7.4.413311765832__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 +0 -36
- kodexa/platform/client.py +8 -120
- {kodexa-7.4.413230066391.dist-info → kodexa-7.4.413311765832.dist-info}/METADATA +1 -1
- {kodexa-7.4.413230066391.dist-info → kodexa-7.4.413311765832.dist-info}/RECORD +6 -6
- {kodexa-7.4.413230066391.dist-info → kodexa-7.4.413311765832.dist-info}/LICENSE +0 -0
- {kodexa-7.4.413230066391.dist-info → kodexa-7.4.413311765832.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -5142,7 +5142,6 @@ class PageSlugBasedMetadata(BaseModel):
|
|
5142
5142
|
SlugBasedMetadata,
|
5143
5143
|
Action,
|
5144
5144
|
AssistantDefinition,
|
5145
|
-
CredentialDefinition,
|
5146
5145
|
Dashboard,
|
5147
5146
|
DataForm,
|
5148
5147
|
ExtensionPack,
|
@@ -5272,28 +5271,6 @@ class PageDashboard(BaseModel):
|
|
5272
5271
|
empty: Optional[bool] = None
|
5273
5272
|
|
5274
5273
|
|
5275
|
-
class PageCredentialDefinition(BaseModel):
|
5276
|
-
"""
|
5277
|
-
|
5278
|
-
"""
|
5279
|
-
model_config = ConfigDict(
|
5280
|
-
populate_by_name=True,
|
5281
|
-
use_enum_values=True,
|
5282
|
-
arbitrary_types_allowed=True,
|
5283
|
-
protected_namespaces=("model_config",),
|
5284
|
-
)
|
5285
|
-
total_pages: Optional[int] = Field(None, alias="totalPages")
|
5286
|
-
total_elements: Optional[int] = Field(None, alias="totalElements")
|
5287
|
-
size: Optional[int] = None
|
5288
|
-
content: Optional[List[CredentialDefinition]] = None
|
5289
|
-
number: Optional[int] = None
|
5290
|
-
|
5291
|
-
number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
|
5292
|
-
first: Optional[bool] = None
|
5293
|
-
last: Optional[bool] = None
|
5294
|
-
empty: Optional[bool] = None
|
5295
|
-
|
5296
|
-
|
5297
5274
|
class PageAssistantDefinition(BaseModel):
|
5298
5275
|
"""
|
5299
5276
|
|
@@ -5568,17 +5545,6 @@ class AssistantDefinition(ExtensionPackProvided):
|
|
5568
5545
|
)
|
5569
5546
|
|
5570
5547
|
|
5571
|
-
class CredentialDefinition(ExtensionPackProvided):
|
5572
|
-
"""
|
5573
|
-
|
5574
|
-
"""
|
5575
|
-
|
5576
|
-
credential_type: Optional[str] = Field(None, alias="credentialType")
|
5577
|
-
options: Optional[List[Option]] = Field(
|
5578
|
-
None, description="Options for the credential type"
|
5579
|
-
)
|
5580
|
-
|
5581
|
-
|
5582
5548
|
class Dashboard(ExtensionPackProvided):
|
5583
5549
|
"""
|
5584
5550
|
|
@@ -6017,14 +5983,12 @@ PageSlugBasedMetadata.model_rebuild()
|
|
6017
5983
|
PageExtensionPack.model_rebuild()
|
6018
5984
|
PageDataForm.model_rebuild()
|
6019
5985
|
PageDashboard.model_rebuild()
|
6020
|
-
PageCredentialDefinition.model_rebuild()
|
6021
5986
|
PageAssistantDefinition.model_rebuild()
|
6022
5987
|
PageAction.model_rebuild()
|
6023
5988
|
DocumentContentMetadata.model_rebuild()
|
6024
5989
|
ModelContentMetadata.model_rebuild()
|
6025
5990
|
Action.model_rebuild()
|
6026
5991
|
AssistantDefinition.model_rebuild()
|
6027
|
-
CredentialDefinition.model_rebuild()
|
6028
5992
|
Dashboard.model_rebuild()
|
6029
5993
|
DataForm.model_rebuild()
|
6030
5994
|
ExtensionPack.model_rebuild()
|
kodexa/platform/client.py
CHANGED
@@ -53,7 +53,6 @@ from kodexa.model.objects import (
|
|
53
53
|
ProjectTag,
|
54
54
|
ProjectTemplate,
|
55
55
|
Pipeline,
|
56
|
-
CredentialDefinition,
|
57
56
|
DataForm,
|
58
57
|
Dashboard,
|
59
58
|
ModelRuntime,
|
@@ -78,7 +77,6 @@ from kodexa.model.objects import (
|
|
78
77
|
PageStore,
|
79
78
|
PageTaxonomy,
|
80
79
|
PageAssistantDefinition,
|
81
|
-
PageCredentialDefinition,
|
82
80
|
DeploymentOptions,
|
83
81
|
AssistantDefinition,
|
84
82
|
DataException,
|
@@ -1046,21 +1044,6 @@ class PageAssistantDefinitionEndpoint(PageAssistantDefinition, PageEndpoint):
|
|
1046
1044
|
pass
|
1047
1045
|
|
1048
1046
|
|
1049
|
-
class PageCredentialDefinitionEndpoint(PageCredentialDefinition, PageEndpoint):
|
1050
|
-
"""Handles the endpoint for the Page Credential Definition.
|
1051
|
-
|
1052
|
-
This class inherits from the PageCredentialDefinition and PageEndpoint classes.
|
1053
|
-
|
1054
|
-
Attributes:
|
1055
|
-
None
|
1056
|
-
|
1057
|
-
Methods:
|
1058
|
-
None
|
1059
|
-
"""
|
1060
|
-
|
1061
|
-
pass
|
1062
|
-
|
1063
|
-
|
1064
1047
|
class PageUserEndpoint(PageUser, PageEndpoint):
|
1065
1048
|
"""
|
1066
1049
|
This class represents a page user endpoint. It inherits from both PageUser and PageEndpoint classes.
|
@@ -1179,7 +1162,7 @@ class PageTaskEndpoint(PageTask, PageEndpoint):
|
|
1179
1162
|
Represents a page of tasks.
|
1180
1163
|
"""
|
1181
1164
|
def get_type(self) -> Optional[str]:
|
1182
|
-
return "
|
1165
|
+
return "task"
|
1183
1166
|
|
1184
1167
|
class PageTaskActivityEndpoint(PageEndpoint):
|
1185
1168
|
"""
|
@@ -1758,30 +1741,16 @@ class OrganizationEndpoint(Organization, EntityEndpoint):
|
|
1758
1741
|
.set_client(self.client)
|
1759
1742
|
)
|
1760
1743
|
|
1761
|
-
@property
|
1762
|
-
def credentials(self):
|
1763
|
-
"""
|
1764
|
-
Get the credentials endpoint of the organization.
|
1765
|
-
|
1766
|
-
Returns:
|
1767
|
-
CredentialDefinitionsEndpoint: The credentials endpoint of the organization.
|
1768
|
-
"""
|
1769
|
-
return (
|
1770
|
-
CredentialDefinitionsEndpoint()
|
1771
|
-
.set_organization(self)
|
1772
|
-
.set_client(self.client)
|
1773
|
-
)
|
1774
|
-
|
1775
1744
|
@property
|
1776
1745
|
def data_forms(self):
|
1777
1746
|
"""
|
1778
1747
|
Get the data forms endpoint of the organization.
|
1779
1748
|
|
1780
1749
|
Returns:
|
1781
|
-
|
1750
|
+
DataFormsEndpoint: The data forms endpoint of the organization.
|
1782
1751
|
"""
|
1783
1752
|
return (
|
1784
|
-
|
1753
|
+
DataFormsEndpoint()
|
1785
1754
|
.set_organization(self)
|
1786
1755
|
.set_client(self.client)
|
1787
1756
|
)
|
@@ -3598,58 +3567,6 @@ class ProjectTemplatesEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOw
|
|
3598
3567
|
"""
|
3599
3568
|
return ProjectTemplateEndpoint
|
3600
3569
|
|
3601
|
-
|
3602
|
-
class CredentialDefinitionsEndpoint(
|
3603
|
-
ComponentEndpoint, ClientEndpoint, OrganizationOwned
|
3604
|
-
):
|
3605
|
-
"""Represents a credentials endpoint.
|
3606
|
-
|
3607
|
-
This class is used to represent a credentials endpoint. It inherits from
|
3608
|
-
ComponentEndpoint, ClientEndpoint, and OrganizationOwned classes.
|
3609
|
-
|
3610
|
-
Attributes:
|
3611
|
-
None
|
3612
|
-
"""
|
3613
|
-
|
3614
|
-
"""Represents a credentials endpoint"""
|
3615
|
-
|
3616
|
-
def get_type(self) -> str:
|
3617
|
-
"""Get the type of the endpoint.
|
3618
|
-
|
3619
|
-
This method is used to get the type of the endpoint.
|
3620
|
-
|
3621
|
-
Returns:
|
3622
|
-
str: The type of the endpoint.
|
3623
|
-
"""
|
3624
|
-
return "credentialDefinitions"
|
3625
|
-
|
3626
|
-
def get_page_class(self, object_dict=None):
|
3627
|
-
"""Get the page class of the endpoint.
|
3628
|
-
|
3629
|
-
This method is used to get the page class of the endpoint.
|
3630
|
-
|
3631
|
-
Args:
|
3632
|
-
object_dict (dict, optional): The object dictionary. Defaults to None.
|
3633
|
-
|
3634
|
-
Returns:
|
3635
|
-
PageCredentialDefinitionEndpoint: The page class of the endpoint.
|
3636
|
-
"""
|
3637
|
-
return PageCredentialDefinitionEndpoint
|
3638
|
-
|
3639
|
-
def get_instance_class(self, object_dict=None):
|
3640
|
-
"""Get the instance class of the endpoint.
|
3641
|
-
|
3642
|
-
This method is used to get the instance class of the endpoint.
|
3643
|
-
|
3644
|
-
Args:
|
3645
|
-
object_dict (dict, optional): The object dictionary. Defaults to None.
|
3646
|
-
|
3647
|
-
Returns:
|
3648
|
-
CredentialDefinitionEndpoint: The instance class of the endpoint.
|
3649
|
-
"""
|
3650
|
-
return CredentialDefinitionEndpoint
|
3651
|
-
|
3652
|
-
|
3653
3570
|
class DataFormsEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
|
3654
3571
|
"""
|
3655
3572
|
A class used to represent the DataFormsEndpoint.
|
@@ -4027,29 +3944,6 @@ class ActionEndpoint(ComponentInstanceEndpoint, Action):
|
|
4027
3944
|
return "actions"
|
4028
3945
|
|
4029
3946
|
|
4030
|
-
class CredentialDefinitionEndpoint(ComponentInstanceEndpoint, CredentialDefinition):
|
4031
|
-
"""Represents a credential endpoint.
|
4032
|
-
|
4033
|
-
This class is a combination of ComponentInstanceEndpoint and CredentialDefinition.
|
4034
|
-
It is used to represent a credential endpoint.
|
4035
|
-
|
4036
|
-
Attributes:
|
4037
|
-
None
|
4038
|
-
"""
|
4039
|
-
|
4040
|
-
"""Represents a credential endpoint"""
|
4041
|
-
|
4042
|
-
def get_type(self) -> str:
|
4043
|
-
"""Get the type of the endpoint.
|
4044
|
-
|
4045
|
-
This method returns the type of the endpoint which is "credentialDefinitions".
|
4046
|
-
|
4047
|
-
Returns:
|
4048
|
-
str: The type of the endpoint.
|
4049
|
-
"""
|
4050
|
-
return "credentialDefinitions"
|
4051
|
-
|
4052
|
-
|
4053
3947
|
class DataFormEndpoint(ComponentInstanceEndpoint, DataForm):
|
4054
3948
|
"""A class used to represent the endpoint of a data form component instance.
|
4055
3949
|
|
@@ -4228,7 +4122,8 @@ class TaxonomyEndpoint(ComponentInstanceEndpoint, Taxonomy):
|
|
4228
4122
|
|
4229
4123
|
Args:
|
4230
4124
|
taxons (list): A list of taxon objects to search through.
|
4231
|
-
|
4125
|
+
parts (list): A list of strings representing the path to the taxon.
|
4126
|
+
use_label (bool, optional): Whether to use the label or name of the taxon. Defaults to False.
|
4232
4127
|
|
4233
4128
|
Returns:
|
4234
4129
|
Taxon: The taxon object if found, None otherwise.
|
@@ -6535,12 +6430,6 @@ OBJECT_TYPES = {
|
|
6535
6430
|
"type": ModelRuntimeEndpoint,
|
6536
6431
|
"endpoint": ModelRuntimesEndpoint,
|
6537
6432
|
},
|
6538
|
-
"credentialDefinitions": {
|
6539
|
-
"name": "credentialDefinition",
|
6540
|
-
"plural": "credentialDefinitions",
|
6541
|
-
"type": CredentialDefinitionEndpoint,
|
6542
|
-
"endpoint": CredentialDefinitionsEndpoint,
|
6543
|
-
},
|
6544
6433
|
"taxonomies": {
|
6545
6434
|
"name": "taxonomy",
|
6546
6435
|
"plural": "taxonomies",
|
@@ -6648,7 +6537,7 @@ def resolve_object_type(obj_type):
|
|
6648
6537
|
if len(hits) == 0:
|
6649
6538
|
raise Exception(f"Unable to find object type {obj_type}")
|
6650
6539
|
|
6651
|
-
raise Exception(f"Too many potential matches for object type ({','.join(keys)}")
|
6540
|
+
raise Exception(f"Too many potential matches for object type ({','.join(keys)})")
|
6652
6541
|
|
6653
6542
|
|
6654
6543
|
class ExtractionEngineEndpoint:
|
@@ -7358,7 +7247,6 @@ class KodexaClient:
|
|
7358
7247
|
"taxonomy": TaxonomyEndpoint,
|
7359
7248
|
"pipeline": PipelineEndpoint,
|
7360
7249
|
"action": ActionEndpoint,
|
7361
|
-
"credential": CredentialDefinitionEndpoint,
|
7362
7250
|
"projectTemplate": ProjectTemplateEndpoint,
|
7363
7251
|
"modelRuntime": ModelRuntimeEndpoint,
|
7364
7252
|
"extensionPack": ExtensionPackEndpoint,
|
@@ -7381,7 +7269,8 @@ class KodexaClient:
|
|
7381
7269
|
"product": ProductEndpoint,
|
7382
7270
|
"task": TaskEndpoint,
|
7383
7271
|
"productSubscription": ProductSubscriptionEndpoint,
|
7384
|
-
"checkResponse": CheckResponseEndpoint
|
7272
|
+
"checkResponse": CheckResponseEndpoint,
|
7273
|
+
"taskTemplate": TaskTemplateEndpoint,
|
7385
7274
|
}
|
7386
7275
|
|
7387
7276
|
if component_type in known_components:
|
@@ -7451,7 +7340,6 @@ DataStoreEndpoint.model_rebuild()
|
|
7451
7340
|
TaxonomyEndpoint.model_rebuild()
|
7452
7341
|
PipelineEndpoint.model_rebuild()
|
7453
7342
|
ActionEndpoint.model_rebuild()
|
7454
|
-
CredentialDefinitionEndpoint.model_rebuild()
|
7455
7343
|
ProjectTemplateEndpoint.model_rebuild()
|
7456
7344
|
ModelRuntimeEndpoint.model_rebuild()
|
7457
7345
|
ExtensionPackEndpoint.model_rebuild()
|
@@ -13,13 +13,13 @@ 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=qh1YUew3UgtjU0t4fAwSXYYuzQjXTOZWZkafyFp_w8M,118801
|
16
|
-
kodexa/model/objects.py,sha256=
|
16
|
+
kodexa/model/objects.py,sha256=uyp8JVSrh8zEJ-Fl36QjKdZjKPEbsJgeI_xbV81lbhc,188525
|
17
17
|
kodexa/model/persistence.py,sha256=HX_uIkGs8bqHwqyE5wB2qMlGIG5ZnjuTu7xMdvKhEzA,72033
|
18
18
|
kodexa/model/utils.py,sha256=6R-3rFiW9irBwj0Mq5yhp7EDXkNUFaeFhr3bWmnlW4g,2961
|
19
19
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
20
20
|
kodexa/pipeline/pipeline.py,sha256=Z4O6UwoISeP_HMlxm6l6kbcvFBDw3Glm7lT4cUibri4,25461
|
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=Wh_1ia7VxS70LthyZGOQZ9LxAUt7yMBbNGK4GYRH9Vc,232452
|
23
23
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
24
24
|
kodexa/platform/kodexa.py,sha256=tPXHO500q3S75GhKGDcaxO51Viq2PNlHmAzpBZlahgo,34857
|
25
25
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
@@ -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.413311765832.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
48
|
+
kodexa-7.4.413311765832.dist-info/METADATA,sha256=2tFUW7Keyra_2AaVM4JCh202lMMCPXqy09JFAduEsN0,3528
|
49
|
+
kodexa-7.4.413311765832.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
50
|
+
kodexa-7.4.413311765832.dist-info/RECORD,,
|
File without changes
|
File without changes
|