kodexa 6.3.37316437491__py3-none-any.whl → 6.3.37316877948__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/platform/client.py +40 -4
- {kodexa-6.3.37316437491.dist-info → kodexa-6.3.37316877948.dist-info}/METADATA +1 -1
- {kodexa-6.3.37316437491.dist-info → kodexa-6.3.37316877948.dist-info}/RECORD +5 -5
- {kodexa-6.3.37316437491.dist-info → kodexa-6.3.37316877948.dist-info}/LICENSE +0 -0
- {kodexa-6.3.37316437491.dist-info → kodexa-6.3.37316877948.dist-info}/WHEEL +0 -0
kodexa/platform/client.py
CHANGED
@@ -626,8 +626,7 @@ class EntityEndpoint(ClientEndpoint):
|
|
626
626
|
|
627
627
|
# We need to update the id
|
628
628
|
self.id = response.json()["id"]
|
629
|
-
self.
|
630
|
-
self.updated_on = response.json()["updatedOn"]
|
629
|
+
self.reload()
|
631
630
|
return self
|
632
631
|
|
633
632
|
def update(self):
|
@@ -2396,9 +2395,44 @@ class ProjectEndpoint(EntityEndpoint, Project):
|
|
2396
2395
|
return [ProjectTag.model_validate(tag) for tag in response.json()]
|
2397
2396
|
|
2398
2397
|
|
2399
|
-
class
|
2400
|
-
"""Represents a
|
2398
|
+
class MessagesEndpoint(EntitiesEndpoint):
|
2399
|
+
"""Represents a message endpoint"""
|
2400
|
+
|
2401
|
+
def get_type(self) -> str:
|
2402
|
+
"""
|
2403
|
+
Get the type of the endpoint.
|
2404
|
+
|
2405
|
+
Returns:
|
2406
|
+
str: The type of the endpoint, in this case "messages".
|
2407
|
+
"""
|
2408
|
+
return "messages"
|
2409
|
+
|
2410
|
+
def get_instance_class(self, object_dict=None):
|
2411
|
+
"""
|
2412
|
+
Get the instance class of the endpoint.
|
2413
|
+
|
2414
|
+
Args:
|
2415
|
+
object_dict (dict, optional): An optional dictionary object. Defaults to None.
|
2416
|
+
|
2417
|
+
Returns:
|
2418
|
+
MessageEndpoint: The instance class of the endpoint.
|
2419
|
+
"""
|
2420
|
+
return MessageEndpoint
|
2421
|
+
|
2422
|
+
def get_page_class(self, object_dict=None):
|
2423
|
+
"""
|
2424
|
+
Get the page class of the endpoint.
|
2401
2425
|
|
2426
|
+
Args:
|
2427
|
+
object_dict (dict, optional): An optional dictionary object. Defaults to None.
|
2428
|
+
|
2429
|
+
Returns:
|
2430
|
+
PageMessageEndpoint: The page class of the endpoint.
|
2431
|
+
"""
|
2432
|
+
return PageMessageEndpoint
|
2433
|
+
|
2434
|
+
|
2435
|
+
class ChannelsEndpoint(EntitiesEndpoint):
|
2402
2436
|
"""Represents a channels endpoint"""
|
2403
2437
|
|
2404
2438
|
def get_type(self) -> str:
|
@@ -5836,6 +5870,7 @@ class KodexaClient:
|
|
5836
5870
|
memberships (MembershipsEndpoint): An endpoint for memberships.
|
5837
5871
|
executions (ExecutionsEndpoint): An endpoint for executions.
|
5838
5872
|
channels (ChannelsEndpoint): An endpoint for channels.
|
5873
|
+
messages (MessagesEndpoint): An endpoint for messages.
|
5839
5874
|
"""
|
5840
5875
|
|
5841
5876
|
def __init__(self, url=None, access_token=None, profile=None, insecure=None):
|
@@ -5858,6 +5893,7 @@ class KodexaClient:
|
|
5858
5893
|
self.executions = ExecutionsEndpoint(self)
|
5859
5894
|
self.channels = ChannelsEndpoint(self)
|
5860
5895
|
self.assistants = AssistantsEndpoint(self)
|
5896
|
+
self.messages = MessagesEndpoint(self)
|
5861
5897
|
|
5862
5898
|
@staticmethod
|
5863
5899
|
def login(url, email, password, insecure=False):
|
@@ -11,7 +11,7 @@ kodexa/model/persistence.py,sha256=TajtXfHp7dL85R5ui9A2h6rLMecDUr6OYZHVgm8CVJw,5
|
|
11
11
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
12
12
|
kodexa/pipeline/pipeline.py,sha256=cIRFOoJkguIYgNzx6FYrODdBpcY25CM_SULsqSsHeXE,24323
|
13
13
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
14
|
-
kodexa/platform/client.py,sha256=
|
14
|
+
kodexa/platform/client.py,sha256=_ZHXYesXaZEWZ2vhxlSurx4KNdV6C4mSFy5oR2uE3SA,204828
|
15
15
|
kodexa/platform/kodexa.py,sha256=g9Vcp2CtPn6haCQLc7TEmQmROQ1x8Bdpxfx1iK1KTqU,32292
|
16
16
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
17
17
|
kodexa/selectors/ast.py,sha256=gG-1st841IntgBE5V7p3Cq9azaym2jV5lB_AIywQTCI,13269
|
@@ -34,7 +34,7 @@ kodexa/testing/test_components.py,sha256=4BnzCCOA5v__82mB1TIBPHfNIGJbkZz9PiTZiNK
|
|
34
34
|
kodexa/testing/test_utils.py,sha256=IWLKBvMHATzrsoO9PQFGcwoGcuZykhAS3QRddfzb_XE,14043
|
35
35
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
36
36
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
kodexa-6.3.
|
38
|
-
kodexa-6.3.
|
39
|
-
kodexa-6.3.
|
40
|
-
kodexa-6.3.
|
37
|
+
kodexa-6.3.37316877948.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
38
|
+
kodexa-6.3.37316877948.dist-info/METADATA,sha256=swPIkvhiyCgpftY_qrEN3DDtMY6ROz4ievAyA6N1QZU,4003
|
39
|
+
kodexa-6.3.37316877948.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
40
|
+
kodexa-6.3.37316877948.dist-info/RECORD,,
|
File without changes
|
File without changes
|