kodexa 6.2.25202947930__py3-none-any.whl → 6.2.25209999189__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 +19 -2
- {kodexa-6.2.25202947930.dist-info → kodexa-6.2.25209999189.dist-info}/METADATA +1 -1
- {kodexa-6.2.25202947930.dist-info → kodexa-6.2.25209999189.dist-info}/RECORD +5 -5
- {kodexa-6.2.25202947930.dist-info → kodexa-6.2.25209999189.dist-info}/LICENSE +0 -0
- {kodexa-6.2.25202947930.dist-info → kodexa-6.2.25209999189.dist-info}/WHEEL +0 -0
kodexa/platform/client.py
CHANGED
@@ -313,7 +313,7 @@ class EntityEndpoint(BaseEntity, ClientEndpoint):
|
|
313
313
|
"""
|
314
314
|
if self.id is not None:
|
315
315
|
raise Exception("Can't create as it already exists")
|
316
|
-
|
316
|
+
|
317
317
|
url = f"/api/{self.get_type()}"
|
318
318
|
self.client.post(url, self.to_dict())
|
319
319
|
|
@@ -969,7 +969,7 @@ class ChannelEndpoint(EntityEndpoint, Channel):
|
|
969
969
|
|
970
970
|
def send_text_message(self, content: str) -> MessageEndpoint:
|
971
971
|
new_message = MessageEndpoint().set_client(self.client)
|
972
|
-
new_message.channel = self
|
972
|
+
new_message.channel = self.detach()
|
973
973
|
new_message.content = content
|
974
974
|
new_message.message_type = "TEXT"
|
975
975
|
return new_message.create()
|
@@ -1066,6 +1066,22 @@ class ProjectEndpoint(EntityEndpoint, Project):
|
|
1066
1066
|
return [ProjectTag.parse_obj(tag) for tag in response.json()]
|
1067
1067
|
|
1068
1068
|
|
1069
|
+
class ChannelsEndpoint(EntitiesEndpoint):
|
1070
|
+
"""Represents a channels endpoint"""
|
1071
|
+
|
1072
|
+
def get_type(self) -> str:
|
1073
|
+
"""Get the type of the endpoint"""
|
1074
|
+
return f"channels"
|
1075
|
+
|
1076
|
+
def get_instance_class(self, object_dict=None) -> Type[BaseModel]:
|
1077
|
+
"""Get the instance class of the endpoint"""
|
1078
|
+
return ChannelEndpoint
|
1079
|
+
|
1080
|
+
def get_page_class(self, object_dict=None) -> Type[BaseModel]:
|
1081
|
+
"""Get the page class of the endpoint"""
|
1082
|
+
return PageChannelEndpoint
|
1083
|
+
|
1084
|
+
|
1069
1085
|
class WorkspacesEndpoint(EntitiesEndpoint):
|
1070
1086
|
"""Represents a workspaces endpoint"""
|
1071
1087
|
|
@@ -2643,6 +2659,7 @@ class KodexaClient:
|
|
2643
2659
|
self.users = UsersEndpoint(self)
|
2644
2660
|
self.memberships = MembershipsEndpoint(self)
|
2645
2661
|
self.executions = ExecutionsEndpoint(self)
|
2662
|
+
self.channels = ChannelsEndpoint(self)
|
2646
2663
|
|
2647
2664
|
@staticmethod
|
2648
2665
|
def login(url, email, password):
|
@@ -11,7 +11,7 @@ kodexa/model/persistence.py,sha256=ZWESzXS-jkGbp-NlPuQzQFxmZeRup7uNJjrUkGaYIOk,3
|
|
11
11
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
12
12
|
kodexa/pipeline/pipeline.py,sha256=uzxe7HuSW1CKDZOrnV_LRHj3SHhbs14lvmMGJ_DIVdw,19763
|
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=qKWSkbJGJC-GKjcEa4dxXsJDcXjx48E7H3Amk4ZkU9A,111822
|
15
15
|
kodexa/platform/kodexa.py,sha256=4aGg2n9joDLyPckkRu5iynd99Ph8YxGOeX3hk_xDtMk,26888
|
16
16
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
17
17
|
kodexa/selectors/ast.py,sha256=mTAcX_pjDiDy99ELxbMMwAAkzezOqz5uCyui9qz7Q4A,13499
|
@@ -34,7 +34,7 @@ kodexa/testing/test_components.py,sha256=i_9M6-bfUBdR1uYAzZZzWiW0M1DGKzE5mkNuHq4
|
|
34
34
|
kodexa/testing/test_utils.py,sha256=HXM3S5FDzarzS6R7jkOHps6d6Ox2UtNqymoK6VCw8Zg,13596
|
35
35
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
36
36
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
kodexa-6.2.
|
38
|
-
kodexa-6.2.
|
39
|
-
kodexa-6.2.
|
40
|
-
kodexa-6.2.
|
37
|
+
kodexa-6.2.25209999189.dist-info/METADATA,sha256=Wsnu5PxeNTbZCpJaUyEEy-Oujc3Efg9ata3U8NgHACE,4158
|
38
|
+
kodexa-6.2.25209999189.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
39
|
+
kodexa-6.2.25209999189.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
40
|
+
kodexa-6.2.25209999189.dist-info/RECORD,,
|
File without changes
|
File without changes
|