kodexa 7.4.417159307192__py3-none-any.whl → 7.4.417175879461__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 +35 -40
- {kodexa-7.4.417159307192.dist-info → kodexa-7.4.417175879461.dist-info}/METADATA +1 -1
- {kodexa-7.4.417159307192.dist-info → kodexa-7.4.417175879461.dist-info}/RECORD +5 -5
- {kodexa-7.4.417159307192.dist-info → kodexa-7.4.417175879461.dist-info}/LICENSE +0 -0
- {kodexa-7.4.417159307192.dist-info → kodexa-7.4.417175879461.dist-info}/WHEEL +0 -0
kodexa/platform/client.py
CHANGED
@@ -103,9 +103,9 @@ from kodexa.model.objects import (
|
|
103
103
|
TaskDocumentFamily,
|
104
104
|
TaskTag,
|
105
105
|
ProjectTemplateRequest,
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
PageTaskDocumentFamily,
|
107
|
+
PageTaskActivity,
|
108
|
+
PageTaskTag,
|
109
109
|
Note,
|
110
110
|
PageNote,
|
111
111
|
)
|
@@ -1205,26 +1205,32 @@ class PageTaskEndpoint(PageTask, PageEndpoint):
|
|
1205
1205
|
def get_type(self) -> Optional[str]:
|
1206
1206
|
return "task"
|
1207
1207
|
|
1208
|
-
class PageTaskActivityEndpoint(PageEndpoint):
|
1208
|
+
class PageTaskActivityEndpoint(PageTaskActivity, PageEndpoint):
|
1209
1209
|
"""
|
1210
1210
|
Represents a page of task activities.
|
1211
1211
|
"""
|
1212
|
+
|
1212
1213
|
def get_type(self) -> Optional[str]:
|
1213
|
-
return "
|
1214
|
+
return "taskActivity"
|
1214
1215
|
|
1215
|
-
|
1216
|
+
|
1217
|
+
class PageTaskDocumentFamilyEndpoint(PageTaskDocumentFamily, PageEndpoint):
|
1216
1218
|
"""
|
1217
1219
|
Represents a page of task document families.
|
1218
1220
|
"""
|
1221
|
+
|
1219
1222
|
def get_type(self) -> Optional[str]:
|
1220
|
-
return "
|
1223
|
+
return "taskDocumentFamily"
|
1224
|
+
|
1221
1225
|
|
1222
|
-
class PageTaskTagEndpoint(PageEndpoint):
|
1226
|
+
class PageTaskTagEndpoint(PageTaskTag, PageEndpoint):
|
1223
1227
|
"""
|
1224
1228
|
Represents a page of task tags.
|
1225
1229
|
"""
|
1230
|
+
|
1226
1231
|
def get_type(self) -> Optional[str]:
|
1227
|
-
return "
|
1232
|
+
return "taskTag"
|
1233
|
+
|
1228
1234
|
|
1229
1235
|
class TaskEndpoint(EntityEndpoint, Task):
|
1230
1236
|
"""
|
@@ -1247,7 +1253,7 @@ class TaskEndpoint(EntityEndpoint, Task):
|
|
1247
1253
|
def update_status(self, status: TaskStatus):
|
1248
1254
|
"""Update the status of the task."""
|
1249
1255
|
url = f"/api/tasks/{self.id}/status"
|
1250
|
-
response = self.client.put(url, body=status)
|
1256
|
+
response = self.client.put(url, body=status.model_dump(mode="json", by_alias=True))
|
1251
1257
|
process_response(response)
|
1252
1258
|
return TaskEndpoint.model_validate(response.json()).set_client(self.client)
|
1253
1259
|
|
@@ -1272,10 +1278,12 @@ class TaskEndpoint(EntityEndpoint, Task):
|
|
1272
1278
|
process_response(response)
|
1273
1279
|
return TaskEndpoint.model_validate(response.json()).set_client(self.client)
|
1274
1280
|
|
1281
|
+
|
1275
1282
|
class TasksEndpoint(EntitiesEndpoint):
|
1276
1283
|
"""
|
1277
1284
|
Represents tasks endpoints.
|
1278
1285
|
"""
|
1286
|
+
|
1279
1287
|
def get_type(self) -> str:
|
1280
1288
|
return "tasks"
|
1281
1289
|
|
@@ -1285,14 +1293,14 @@ class TasksEndpoint(EntitiesEndpoint):
|
|
1285
1293
|
def get_page_class(self, object_dict=None):
|
1286
1294
|
return PageTaskEndpoint
|
1287
1295
|
|
1288
|
-
def create_with_template(self, task: Task, task_template: Optional[TaskTemplate] = None,
|
1296
|
+
def create_with_template(self, task: Task, task_template: Optional[TaskTemplate] = None,
|
1289
1297
|
document_families: Optional[List[DocumentFamily]] = None) -> TaskEndpoint:
|
1290
1298
|
"""Create a task with the given template."""
|
1291
1299
|
url = "/api/tasks/createTaskWithRequest"
|
1292
1300
|
create_body = {
|
1293
1301
|
"task": task.model_dump(mode="json", by_alias=True),
|
1294
1302
|
"taskTemplate": task_template.model_dump(mode="json", by_alias=True) if task_template else None,
|
1295
|
-
"documentFamilies": [df.model_dump(mode="json", by_alias=True) for df in
|
1303
|
+
"documentFamilies": [df.model_dump(mode="json", by_alias=True) for df in
|
1296
1304
|
document_families] if document_families else None
|
1297
1305
|
}
|
1298
1306
|
response = self.client.post(url, create_body)
|
@@ -1300,17 +1308,21 @@ class TasksEndpoint(EntitiesEndpoint):
|
|
1300
1308
|
|
1301
1309
|
return TaskEndpoint.model_validate(response.json()).set_client(self.client)
|
1302
1310
|
|
1311
|
+
|
1303
1312
|
class TaskTemplateEndpoint(EntityEndpoint, TaskTemplate):
|
1304
1313
|
"""
|
1305
1314
|
Represents a task template endpoint.
|
1306
1315
|
"""
|
1316
|
+
|
1307
1317
|
def get_type(self) -> str:
|
1308
1318
|
return "taskTemplates"
|
1309
1319
|
|
1320
|
+
|
1310
1321
|
class TaskTemplatesEndpoint(EntitiesEndpoint):
|
1311
1322
|
"""
|
1312
1323
|
Represents task templates endpoints.
|
1313
1324
|
"""
|
1325
|
+
|
1314
1326
|
def get_type(self) -> str:
|
1315
1327
|
return "taskTemplates"
|
1316
1328
|
|
@@ -1320,17 +1332,21 @@ class TaskTemplatesEndpoint(EntitiesEndpoint):
|
|
1320
1332
|
def get_page_class(self, object_dict=None):
|
1321
1333
|
return PageTaskTemplateEndpoint
|
1322
1334
|
|
1335
|
+
|
1323
1336
|
class TaskActivityEndpoint(EntityEndpoint, TaskActivity):
|
1324
1337
|
"""
|
1325
1338
|
Represents a task activity endpoint.
|
1326
1339
|
"""
|
1340
|
+
|
1327
1341
|
def get_type(self) -> str:
|
1328
1342
|
return "taskActivities"
|
1329
1343
|
|
1344
|
+
|
1330
1345
|
class TaskActivitiesEndpoint(EntitiesEndpoint):
|
1331
1346
|
"""
|
1332
1347
|
Represents task activities endpoints.
|
1333
1348
|
"""
|
1349
|
+
|
1334
1350
|
def get_type(self) -> str:
|
1335
1351
|
return "taskActivities"
|
1336
1352
|
|
@@ -1340,17 +1356,21 @@ class TaskActivitiesEndpoint(EntitiesEndpoint):
|
|
1340
1356
|
def get_page_class(self, object_dict=None):
|
1341
1357
|
return PageTaskActivityEndpoint
|
1342
1358
|
|
1359
|
+
|
1343
1360
|
class TaskDocumentFamilyEndpoint(EntityEndpoint, TaskDocumentFamily):
|
1344
1361
|
"""
|
1345
1362
|
Represents a task document family endpoint.
|
1346
1363
|
"""
|
1364
|
+
|
1347
1365
|
def get_type(self) -> str:
|
1348
1366
|
return "taskDocumentFamilies"
|
1349
1367
|
|
1368
|
+
|
1350
1369
|
class TaskDocumentFamiliesEndpoint(EntitiesEndpoint):
|
1351
1370
|
"""
|
1352
1371
|
Represents task document families endpoints.
|
1353
1372
|
"""
|
1373
|
+
|
1354
1374
|
def get_type(self) -> str:
|
1355
1375
|
return "taskDocumentFamilies"
|
1356
1376
|
|
@@ -1360,31 +1380,6 @@ class TaskDocumentFamiliesEndpoint(EntitiesEndpoint):
|
|
1360
1380
|
def get_page_class(self, object_dict=None):
|
1361
1381
|
return PageTaskDocumentFamilyEndpoint
|
1362
1382
|
|
1363
|
-
class TaskTagEndpoint(EntityEndpoint, TaskTag):
|
1364
|
-
"""
|
1365
|
-
Represents a task tag endpoint.
|
1366
|
-
"""
|
1367
|
-
def get_type(self) -> str:
|
1368
|
-
return "taskTags"
|
1369
|
-
|
1370
|
-
class TaskTagsEndpoint(EntitiesEndpoint):
|
1371
|
-
"""
|
1372
|
-
Represents task tags endpoints.
|
1373
|
-
"""
|
1374
|
-
def get_type(self) -> str:
|
1375
|
-
return "taskTags"
|
1376
|
-
|
1377
|
-
def get_instance_class(self, object_dict=None):
|
1378
|
-
return TaskTagEndpoint
|
1379
|
-
|
1380
|
-
def get_page_class(self, object_dict=None):
|
1381
|
-
return PageTaskTagEndpoint
|
1382
|
-
|
1383
|
-
|
1384
|
-
class PageTaskTemplateEndpoint(PageTask, PageEndpoint):
|
1385
|
-
def get_type(self) -> Optional[str]:
|
1386
|
-
return "taskTemplate"
|
1387
|
-
|
1388
1383
|
|
1389
1384
|
class DocumentFamiliesEndpoint(EntitiesEndpoint):
|
1390
1385
|
"""
|
@@ -1414,7 +1409,7 @@ class DataExceptionsEndpoint(EntitiesEndpoint):
|
|
1414
1409
|
def get_page_class(self, object_dict=None):
|
1415
1410
|
return PageDataExceptionEndpoint
|
1416
1411
|
|
1417
|
-
|
1412
|
+
|
1418
1413
|
class TaskTagEndpoint(EntityEndpoint, TaskTag):
|
1419
1414
|
"""
|
1420
1415
|
Represents a task tag endpoint.
|
@@ -1423,7 +1418,7 @@ class TaskTagEndpoint(EntityEndpoint, TaskTag):
|
|
1423
1418
|
def get_type(self) -> str:
|
1424
1419
|
return "taskTags"
|
1425
1420
|
|
1426
|
-
|
1421
|
+
|
1427
1422
|
class TaskTagsEndpoint(EntitiesEndpoint):
|
1428
1423
|
"""
|
1429
1424
|
Represents task tags endpoints.
|
@@ -1471,7 +1466,7 @@ class PageNoteEndpoint(PageNote, PageEndpoint):
|
|
1471
1466
|
def get_type(self) -> Optional[str]:
|
1472
1467
|
return "notes"
|
1473
1468
|
|
1474
|
-
|
1469
|
+
|
1475
1470
|
class PageTaskTemplateEndpoint(PageTask, PageEndpoint):
|
1476
1471
|
def get_type(self) -> Optional[str]:
|
1477
1472
|
return "taskTemplate"
|
@@ -19,7 +19,7 @@ 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=SxXZm89JJdCuLsLqVdZSsjHznWrF_SmcqWhGcPTNm-0,239736
|
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.417175879461.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
49
|
+
kodexa-7.4.417175879461.dist-info/METADATA,sha256=vHimeFFNpGqa1zO3xdqoD6_oSGblHJhx5zf4tOn5tFk,2916
|
50
|
+
kodexa-7.4.417175879461.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
51
|
+
kodexa-7.4.417175879461.dist-info/RECORD,,
|
File without changes
|
File without changes
|