kodexa 7.0.8172337105__tar.gz → 7.0.8187361589__tar.gz

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.
Files changed (41) hide show
  1. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/PKG-INFO +1 -1
  2. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/platform/client.py +63 -4
  3. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/pyproject.toml +1 -1
  4. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/LICENSE +0 -0
  5. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/README.md +0 -0
  6. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/__init__.py +0 -0
  7. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/assistant/__init__.py +0 -0
  8. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/assistant/assistant.py +0 -0
  9. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/connectors/__init__.py +0 -0
  10. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/connectors/connectors.py +0 -0
  11. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/model/__init__.py +0 -0
  12. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/model/base.py +0 -0
  13. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/model/model.py +0 -0
  14. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/model/objects.py +0 -0
  15. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/model/persistence.py +0 -0
  16. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/pipeline/__init__.py +0 -0
  17. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/pipeline/pipeline.py +0 -0
  18. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/platform/__init__.py +0 -0
  19. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/platform/interaction.py +0 -0
  20. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/platform/kodexa.py +0 -0
  21. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/__init__.py +0 -0
  22. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/ast.py +0 -0
  23. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/core.py +0 -0
  24. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/lexrules.py +0 -0
  25. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/lextab.py +0 -0
  26. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/lextab.pyi +0 -0
  27. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/parserules.py +0 -0
  28. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/parserules.pyi +0 -0
  29. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/parsetab.py +0 -0
  30. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/selectors/parsetab.pyi +0 -0
  31. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/spatial/__init__.py +0 -0
  32. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/spatial/azure_models.py +0 -0
  33. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/spatial/bbox_common.py +0 -0
  34. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/spatial/table_form_common.py +0 -0
  35. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/steps/__init__.py +0 -0
  36. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/steps/common.py +0 -0
  37. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/testing/__init__.py +0 -0
  38. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/testing/test_components.py +0 -0
  39. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/testing/test_utils.py +0 -0
  40. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/training/__init__.py +0 -0
  41. {kodexa-7.0.8172337105 → kodexa-7.0.8187361589}/kodexa/training/train_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.8172337105
3
+ Version: 7.0.8187361589
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -491,9 +491,9 @@ class ComponentEndpoint(ClientEndpoint, OrganizationOwned):
491
491
  # Yield each endpoint in the current page
492
492
  for endpoint in (
493
493
  self.get_page_class(list_response.json())
494
- .model_validate(list_response.json())
495
- .set_client(self.client)
496
- .to_endpoints()
494
+ .model_validate(list_response.json())
495
+ .set_client(self.client)
496
+ .to_endpoints()
497
497
  ):
498
498
  yield endpoint
499
499
 
@@ -2073,6 +2073,33 @@ class ProjectTaxonomiesEndpoint(ProjectResourceEndpoint):
2073
2073
  return TaxonomyEndpoint
2074
2074
 
2075
2075
 
2076
+ class ProjectGuidanceEndpoint(ProjectResourceEndpoint):
2077
+
2078
+ def get_type(self) -> str:
2079
+ return "guidance"
2080
+
2081
+ def get_instance_class(self, object_dict=None):
2082
+ return GuidanceEndpoint
2083
+
2084
+
2085
+ class ProjectDataFormEndpoint(ProjectResourceEndpoint):
2086
+
2087
+ def get_type(self) -> str:
2088
+ return "dataForms"
2089
+
2090
+ def get_instance_class(self, object_dict=None):
2091
+ return DataFormEndpoint
2092
+
2093
+
2094
+ class ProjectDashboardEndpoint(ProjectResourceEndpoint):
2095
+
2096
+ def get_type(self) -> str:
2097
+ return "dashboards"
2098
+
2099
+ def get_instance_class(self, object_dict=None):
2100
+ return DashboardEndpoint
2101
+
2102
+
2076
2103
  class ProjectStoresEndpoint(ProjectResourceEndpoint):
2077
2104
  """Represents a project stores endpoint"""
2078
2105
 
@@ -2353,12 +2380,18 @@ class ProjectEndpoint(EntityEndpoint, Project):
2353
2380
  self,
2354
2381
  stores: List["StoreEndpoint"] = None,
2355
2382
  taxonomies: List["TaxonomyEndpoint"] = None,
2383
+ data_forms: List["DataFormEndpoint"] = None,
2384
+ guidance: List["GuidanceSetEndpoint"] = None,
2385
+ dashboards: List["DashboardEndpoint"] = None,
2356
2386
  ) -> "ProjectEndpoint":
2357
2387
  """Update the resources of the project.
2358
2388
 
2359
2389
  Args:
2360
2390
  stores (List["StoreEndpoint"], optional): List of store endpoints to update.
2361
2391
  taxonomies (List["TaxonomyEndpoint"], optional): List of taxonomy endpoints to update.
2392
+ data_forms (List["DataFormEndpoint"], optional): List of data form endpoints to update.
2393
+ guidance (List["GuidanceSetEndpoint"], optional): List of guidance set endpoints to update.
2394
+ dashboards (List["DashboardEndpoint"], optional): List of dashboard endpoints to update.
2362
2395
 
2363
2396
  Returns:
2364
2397
  ProjectEndpoint: The updated project endpoint.
@@ -2367,6 +2400,8 @@ class ProjectEndpoint(EntityEndpoint, Project):
2367
2400
  project_resources_update.store_refs = []
2368
2401
  project_resources_update.taxonomy_refs = []
2369
2402
  project_resources_update.dashboard_refs = []
2403
+ project_resources_update.data_form_refs = []
2404
+ project_resources_update.guidance_set_refs = []
2370
2405
 
2371
2406
  if stores:
2372
2407
  project_resources_update.store_refs = [store.ref for store in stores]
@@ -2375,8 +2410,20 @@ class ProjectEndpoint(EntityEndpoint, Project):
2375
2410
  project_resources_update.taxonomy_refs = [
2376
2411
  taxonomy.ref for taxonomy in taxonomies
2377
2412
  ]
2413
+ if data_forms:
2414
+ project_resources_update.data_form_refs = [
2415
+ data_form.ref for data_form in data_forms
2416
+ ]
2417
+ if guidance:
2418
+ project_resources_update.guidance_set_refs = [
2419
+ guidance.ref for guidance in guidance
2420
+ ]
2421
+ if dashboards:
2422
+ project_resources_update.dashboard_refs = [
2423
+ dashboard.ref for dashboard in dashboards
2424
+ ]
2378
2425
 
2379
- self.client.put(
2426
+ response = self.client.put(
2380
2427
  f"/api/projects/{self.id}/resources",
2381
2428
  body=json.loads(project_resources_update.json(by_alias=True)),
2382
2429
  )
@@ -2417,6 +2464,16 @@ class ProjectEndpoint(EntityEndpoint, Project):
2417
2464
  """
2418
2465
  return ProjectTaxonomiesEndpoint().set_client(self.client).set_project(self)
2419
2466
 
2467
+ @property
2468
+ def guidance(self) -> "GuidanceEndpoint":
2469
+ """Get the guidance sets endpoint of the project.
2470
+
2471
+ Returns:
2472
+ GuidanceSetsEndpoint: The guidance sets endpoint of the project.
2473
+ """
2474
+ return ProjectGuidanceEndpoint().set_client(self.client).set_project(self)
2475
+
2476
+ @property
2420
2477
  @property
2421
2478
  def assistants(self) -> ProjectAssistantsEndpoint:
2422
2479
  """Get the assistants endpoint of the project.
@@ -2842,6 +2899,7 @@ class GuidanceEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2842
2899
  It provides methods to get the type, page class, and instance class of the endpoint,
2843
2900
  as well as to deploy an extension pack from a URL.
2844
2901
  """
2902
+
2845
2903
  def get_type(self) -> str:
2846
2904
  """
2847
2905
  Get the type of the endpoint.
@@ -2884,6 +2942,7 @@ class PromptsEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2884
2942
  It provides methods to get the type, page class, and instance class of the endpoint,
2885
2943
  as well as to deploy an extension pack from a URL.
2886
2944
  """
2945
+
2887
2946
  def get_type(self) -> str:
2888
2947
  """
2889
2948
  Get the type of the endpoint.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.08172337105"
3
+ version = "7.0.08187361589"
4
4
  description = "Python SDK for the Kodexa Platform"
5
5
  authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
6
6
  readme = "README.md"
File without changes