kodexa 7.4.416576510437__py3-none-any.whl → 7.4.416607913655__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 +72 -0
- kodexa/platform/client.py +37 -0
- {kodexa-7.4.416576510437.dist-info → kodexa-7.4.416607913655.dist-info}/METADATA +1 -1
- {kodexa-7.4.416576510437.dist-info → kodexa-7.4.416607913655.dist-info}/RECORD +6 -6
- {kodexa-7.4.416576510437.dist-info → kodexa-7.4.416607913655.dist-info}/LICENSE +0 -0
- {kodexa-7.4.416576510437.dist-info → kodexa-7.4.416607913655.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -6320,6 +6320,76 @@ class OrchestrationEvent(BaseModel):
|
|
6320
6320
|
execution_event: Optional[ExecutionEvent] = Field(None, alias="executionEvent")
|
6321
6321
|
|
6322
6322
|
|
6323
|
+
|
6324
|
+
class PageNote(BaseModel):
|
6325
|
+
"""
|
6326
|
+
A page of notes
|
6327
|
+
"""
|
6328
|
+
model_config = ConfigDict(
|
6329
|
+
populate_by_name=True,
|
6330
|
+
use_enum_values=True,
|
6331
|
+
arbitrary_types_allowed=True,
|
6332
|
+
protected_namespaces=("model_config",),
|
6333
|
+
)
|
6334
|
+
total_pages: Optional[int] = Field(None, alias="totalPages")
|
6335
|
+
total_elements: Optional[int] = Field(None, alias="totalElements")
|
6336
|
+
size: Optional[int] = None
|
6337
|
+
content: Optional[List[Note]] = None
|
6338
|
+
number: Optional[int] = None
|
6339
|
+
number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
|
6340
|
+
first: Optional[bool] = None
|
6341
|
+
last: Optional[bool] = None
|
6342
|
+
empty: Optional[bool] = None
|
6343
|
+
|
6344
|
+
|
6345
|
+
class NoteType(Enum):
|
6346
|
+
"""
|
6347
|
+
The NoteType enumeration represents the different formats a note can have.
|
6348
|
+
This includes MARKDOWN, TEXT, HTML formats, and ASSISTANT_KNOWLEDGE.
|
6349
|
+
"""
|
6350
|
+
markdown = "MARKDOWN"
|
6351
|
+
text = "TEXT"
|
6352
|
+
html = "HTML"
|
6353
|
+
assistant_knowledge = "ASSISTANT_KNOWLEDGE"
|
6354
|
+
|
6355
|
+
|
6356
|
+
class Note(BaseModel):
|
6357
|
+
"""
|
6358
|
+
A note within the Kodexa platform
|
6359
|
+
"""
|
6360
|
+
model_config = ConfigDict(
|
6361
|
+
populate_by_name=True,
|
6362
|
+
use_enum_values=True,
|
6363
|
+
arbitrary_types_allowed=True,
|
6364
|
+
protected_namespaces=("model_config",),
|
6365
|
+
)
|
6366
|
+
|
6367
|
+
id: Optional[str] = Field(None)
|
6368
|
+
uuid: Optional[str] = None
|
6369
|
+
created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
|
6370
|
+
updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
|
6371
|
+
|
6372
|
+
# Data relationships
|
6373
|
+
workspace: Optional['Workspace'] = None
|
6374
|
+
assistant: Optional['Assistant'] = None
|
6375
|
+
parent_comment: Optional['Note'] = Field(None, alias="parentComment")
|
6376
|
+
|
6377
|
+
# Core content
|
6378
|
+
title: Optional[str] = None
|
6379
|
+
content: Optional[str] = None
|
6380
|
+
note_type: Optional[NoteType] = Field(None, alias="noteType")
|
6381
|
+
|
6382
|
+
# Author and replies
|
6383
|
+
author: Optional['User'] = None
|
6384
|
+
replies: Optional[List['Note']] = Field(default_factory=list)
|
6385
|
+
|
6386
|
+
# Task association
|
6387
|
+
task: Optional['Task'] = None
|
6388
|
+
|
6389
|
+
# Properties map
|
6390
|
+
note_properties: Optional[Dict[str, str]] = Field(default_factory=dict, alias="noteProperties")
|
6391
|
+
|
6392
|
+
|
6323
6393
|
ThrowableProblem.model_rebuild()
|
6324
6394
|
Option.model_rebuild()
|
6325
6395
|
Taxon.model_rebuild()
|
@@ -6377,3 +6447,5 @@ Message.model_rebuild()
|
|
6377
6447
|
MessageFeedback.model_rebuild()
|
6378
6448
|
MessageFeedbackResponse.model_rebuild()
|
6379
6449
|
MessageFeedbackOption.model_rebuild()
|
6450
|
+
Note.model_rebuild()
|
6451
|
+
PageNote.model_rebuild()
|
kodexa/platform/client.py
CHANGED
@@ -105,6 +105,8 @@ from kodexa.model.objects import (
|
|
105
105
|
PageTaskDocumentFamily,
|
106
106
|
PageTaskActivity,
|
107
107
|
PageTaskTag,
|
108
|
+
Note,
|
109
|
+
PageNote,
|
108
110
|
)
|
109
111
|
|
110
112
|
logger = logging.getLogger()
|
@@ -1416,6 +1418,39 @@ class TaskTagsEndpoint(EntitiesEndpoint):
|
|
1416
1418
|
return PageTaskTagEndpoint
|
1417
1419
|
|
1418
1420
|
|
1421
|
+
class NoteEndpoint(EntityEndpoint, Note):
|
1422
|
+
"""
|
1423
|
+
Represents a note endpoint.
|
1424
|
+
"""
|
1425
|
+
|
1426
|
+
def get_type(self) -> str:
|
1427
|
+
return "notes"
|
1428
|
+
|
1429
|
+
|
1430
|
+
class NotesEndpoint(EntitiesEndpoint):
|
1431
|
+
"""
|
1432
|
+
Represents notes endpoints.
|
1433
|
+
"""
|
1434
|
+
|
1435
|
+
def get_type(self) -> str:
|
1436
|
+
return "notes"
|
1437
|
+
|
1438
|
+
def get_instance_class(self, object_dict=None):
|
1439
|
+
return NoteEndpoint
|
1440
|
+
|
1441
|
+
def get_page_class(self, object_dict=None):
|
1442
|
+
return PageNoteEndpoint
|
1443
|
+
|
1444
|
+
|
1445
|
+
class PageNoteEndpoint(PageNote, PageEndpoint):
|
1446
|
+
"""
|
1447
|
+
Represents a page note endpoint.
|
1448
|
+
"""
|
1449
|
+
|
1450
|
+
def get_type(self) -> Optional[str]:
|
1451
|
+
return "notes"
|
1452
|
+
|
1453
|
+
|
1419
1454
|
class PageTaskTemplateEndpoint(PageTask, PageEndpoint):
|
1420
1455
|
def get_type(self) -> Optional[str]:
|
1421
1456
|
return "taskTemplate"
|
@@ -6740,6 +6775,7 @@ class KodexaClient:
|
|
6740
6775
|
tasks (TasksEndpoint): An endpoint for tasks.
|
6741
6776
|
users (UsersEndpoint): An endpoint for users.
|
6742
6777
|
workspaces (WorkspacesEndpoint): An endpoint for workspaces.
|
6778
|
+
notes (NotesEndpoint): An endpoint for notes.
|
6743
6779
|
"""
|
6744
6780
|
|
6745
6781
|
def __init__(self, url=None, access_token=None, profile=None):
|
@@ -6770,6 +6806,7 @@ class KodexaClient:
|
|
6770
6806
|
self.users = UsersEndpoint(self)
|
6771
6807
|
self.workspaces = WorkspacesEndpoint(self)
|
6772
6808
|
self.data_exceptions = DataExceptionsEndpoint(self)
|
6809
|
+
self.notes = NotesEndpoint(self)
|
6773
6810
|
|
6774
6811
|
@staticmethod
|
6775
6812
|
def login(url, token):
|
@@ -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=o93SDgw8mj28LWbwJB78PF_Oim8qeCTH1a9x_GDc7yg,120895
|
16
|
-
kodexa/model/objects.py,sha256=
|
16
|
+
kodexa/model/objects.py,sha256=yicqJZx38uEDgzvmMgiTiGKEwlBqGA7vxLfqDqd0KEI,203449
|
17
17
|
kodexa/model/persistence.py,sha256=jUgQ8xwsAFIoZ_bEynxCDEWhUII42eN0e0Mum0dkQPg,72043
|
18
18
|
kodexa/model/utils.py,sha256=YEG3f8YzBil06D0P3_dfx2S9GnHREzyrjnlWwQ7oPlU,3038
|
19
19
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
20
20
|
kodexa/pipeline/pipeline.py,sha256=zyNEpA7KlGhPs_l-vgV6m-OCb16dbxQhl8QezeylugA,25540
|
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=Ipc4ePAMPNSEhANifaxNk3Zi3tZKGnbVy8ZXLupP5ao,237184
|
23
23
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
24
24
|
kodexa/platform/kodexa.py,sha256=2s7Ez7_o-ywpNwbTRhtOUaQKtB9hKsDC_oJHaskXw-I,35315
|
25
25
|
kodexa/platform/manifest.py,sha256=ThjQOk0xbP0qACcpS8NM6-zQL_Emd_bv4QAW2FpbUWk,19454
|
@@ -45,7 +45,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
|
|
45
45
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
46
46
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
48
|
-
kodexa-7.4.
|
49
|
-
kodexa-7.4.
|
50
|
-
kodexa-7.4.
|
51
|
-
kodexa-7.4.
|
48
|
+
kodexa-7.4.416607913655.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
49
|
+
kodexa-7.4.416607913655.dist-info/METADATA,sha256=zyVP1fRVS247JWYBAU5QGcN2F0Um5hbLgbg-a3kp2o8,2916
|
50
|
+
kodexa-7.4.416607913655.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
51
|
+
kodexa-7.4.416607913655.dist-info/RECORD,,
|
File without changes
|
File without changes
|