neurograph-core 1.202510092220__py3-none-any.whl → 1.202510101705__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.
- neurograph/v1/__init__.py +0 -34
- neurograph/v1/api/admin_api.py +8 -8
- neurograph/v1/api/reporting_api.py +36 -1475
- neurograph/v1/models/__init__.py +0 -17
- neurograph/v1/models/admin_user_detail_response.py +11 -4
- neurograph/v1/models/db_user_client_role.py +6 -2
- neurograph/v1/models/db_user_in_db.py +11 -4
- neurograph/v1/models/db_user_org_role.py +6 -2
- neurograph/v1/models/db_user_role.py +6 -2
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +3 -1
- {neurograph_core-1.202510092220.dist-info → neurograph_core-1.202510101705.dist-info}/METADATA +1 -1
- {neurograph_core-1.202510092220.dist-info → neurograph_core-1.202510101705.dist-info}/RECORD +14 -31
- neurograph/v1/models/reporting_affinities_response.py +0 -89
- neurograph/v1/models/reporting_chart_data.py +0 -97
- neurograph/v1/models/reporting_chart_dataset.py +0 -93
- neurograph/v1/models/reporting_chart_defaults.py +0 -91
- neurograph/v1/models/reporting_chart_options.py +0 -93
- neurograph/v1/models/reporting_content_config.py +0 -113
- neurograph/v1/models/reporting_customer_activity_response.py +0 -89
- neurograph/v1/models/reporting_data_range.py +0 -89
- neurograph/v1/models/reporting_exploration_topic.py +0 -91
- neurograph/v1/models/reporting_header_config.py +0 -89
- neurograph/v1/models/reporting_meta_config.py +0 -99
- neurograph/v1/models/reporting_persona_activity_response.py +0 -89
- neurograph/v1/models/reporting_personas_response.py +0 -89
- neurograph/v1/models/reporting_primary_analysis.py +0 -99
- neurograph/v1/models/reporting_rich_insights_config.py +0 -97
- neurograph/v1/models/reporting_visualization.py +0 -103
- neurograph/v1/models/reporting_visualization_insights.py +0 -91
- {neurograph_core-1.202510092220.dist-info → neurograph_core-1.202510101705.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202510092220.dist-info → neurograph_core-1.202510101705.dist-info}/top_level.txt +0 -0
neurograph/v1/models/__init__.py
CHANGED
|
@@ -182,26 +182,9 @@ from neurograph.v1.models.pgtype_infinity_modifier import PgtypeInfinityModifier
|
|
|
182
182
|
from neurograph.v1.models.pgtype_int8 import PgtypeInt8
|
|
183
183
|
from neurograph.v1.models.pgtype_text import PgtypeText
|
|
184
184
|
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
185
|
-
from neurograph.v1.models.reporting_affinities_response import ReportingAffinitiesResponse
|
|
186
|
-
from neurograph.v1.models.reporting_chart_data import ReportingChartData
|
|
187
|
-
from neurograph.v1.models.reporting_chart_dataset import ReportingChartDataset
|
|
188
|
-
from neurograph.v1.models.reporting_chart_defaults import ReportingChartDefaults
|
|
189
|
-
from neurograph.v1.models.reporting_chart_options import ReportingChartOptions
|
|
190
|
-
from neurograph.v1.models.reporting_content_config import ReportingContentConfig
|
|
191
|
-
from neurograph.v1.models.reporting_customer_activity_response import ReportingCustomerActivityResponse
|
|
192
185
|
from neurograph.v1.models.reporting_daily_metric import ReportingDailyMetric
|
|
193
186
|
from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse
|
|
194
|
-
from neurograph.v1.models.reporting_data_range import ReportingDataRange
|
|
195
|
-
from neurograph.v1.models.reporting_exploration_topic import ReportingExplorationTopic
|
|
196
|
-
from neurograph.v1.models.reporting_header_config import ReportingHeaderConfig
|
|
197
|
-
from neurograph.v1.models.reporting_meta_config import ReportingMetaConfig
|
|
198
|
-
from neurograph.v1.models.reporting_persona_activity_response import ReportingPersonaActivityResponse
|
|
199
|
-
from neurograph.v1.models.reporting_personas_response import ReportingPersonasResponse
|
|
200
|
-
from neurograph.v1.models.reporting_primary_analysis import ReportingPrimaryAnalysis
|
|
201
187
|
from neurograph.v1.models.reporting_query import ReportingQuery
|
|
202
|
-
from neurograph.v1.models.reporting_rich_insights_config import ReportingRichInsightsConfig
|
|
203
|
-
from neurograph.v1.models.reporting_visualization import ReportingVisualization
|
|
204
|
-
from neurograph.v1.models.reporting_visualization_insights import ReportingVisualizationInsights
|
|
205
188
|
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
|
|
206
189
|
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
|
|
207
190
|
from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from neurograph.v1.models.db_my_client import DbMyClient
|
|
23
23
|
from neurograph.v1.models.db_my_org import DbMyOrg
|
|
24
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
26
27
|
|
|
@@ -36,8 +37,8 @@ class AdminUserDetailResponse(BaseModel):
|
|
|
36
37
|
id: Optional[StrictInt] = None
|
|
37
38
|
ng_roles: Optional[List[StrictStr]] = None
|
|
38
39
|
orgs: Optional[List[DbMyOrg]] = None
|
|
39
|
-
ts_created: Optional[
|
|
40
|
-
ts_updated: Optional[
|
|
40
|
+
ts_created: Optional[PgtypeTimestamp] = None
|
|
41
|
+
ts_updated: Optional[PgtypeTimestamp] = None
|
|
41
42
|
__properties: ClassVar[List[str]] = ["clients", "display_name", "email", "error", "firebase_uid", "id", "ng_roles", "orgs", "ts_created", "ts_updated"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
@@ -93,6 +94,12 @@ class AdminUserDetailResponse(BaseModel):
|
|
|
93
94
|
if _item_orgs:
|
|
94
95
|
_items.append(_item_orgs.to_dict())
|
|
95
96
|
_dict['orgs'] = _items
|
|
97
|
+
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
98
|
+
if self.ts_created:
|
|
99
|
+
_dict['ts_created'] = self.ts_created.to_dict()
|
|
100
|
+
# override the default output from pydantic by calling `to_dict()` of ts_updated
|
|
101
|
+
if self.ts_updated:
|
|
102
|
+
_dict['ts_updated'] = self.ts_updated.to_dict()
|
|
96
103
|
return _dict
|
|
97
104
|
|
|
98
105
|
@classmethod
|
|
@@ -113,8 +120,8 @@ class AdminUserDetailResponse(BaseModel):
|
|
|
113
120
|
"id": obj.get("id"),
|
|
114
121
|
"ng_roles": obj.get("ng_roles"),
|
|
115
122
|
"orgs": [DbMyOrg.from_dict(_item) for _item in obj["orgs"]] if obj.get("orgs") is not None else None,
|
|
116
|
-
"ts_created": obj.get("ts_created"),
|
|
117
|
-
"ts_updated": obj.get("ts_updated")
|
|
123
|
+
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None,
|
|
124
|
+
"ts_updated": PgtypeTimestamp.from_dict(obj["ts_updated"]) if obj.get("ts_updated") is not None else None
|
|
118
125
|
})
|
|
119
126
|
return _obj
|
|
120
127
|
|
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -29,7 +30,7 @@ class DbUserClientRole(BaseModel):
|
|
|
29
30
|
client_id: Optional[StrictStr] = None
|
|
30
31
|
id: Optional[StrictInt] = None
|
|
31
32
|
role_name: Optional[StrictStr] = None
|
|
32
|
-
ts_created: Optional[
|
|
33
|
+
ts_created: Optional[PgtypeTimestamp] = None
|
|
33
34
|
__properties: ClassVar[List[str]] = ["client_id", "id", "role_name", "ts_created"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
@@ -71,6 +72,9 @@ class DbUserClientRole(BaseModel):
|
|
|
71
72
|
exclude=excluded_fields,
|
|
72
73
|
exclude_none=True,
|
|
73
74
|
)
|
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
76
|
+
if self.ts_created:
|
|
77
|
+
_dict['ts_created'] = self.ts_created.to_dict()
|
|
74
78
|
return _dict
|
|
75
79
|
|
|
76
80
|
@classmethod
|
|
@@ -86,7 +90,7 @@ class DbUserClientRole(BaseModel):
|
|
|
86
90
|
"client_id": obj.get("client_id"),
|
|
87
91
|
"id": obj.get("id"),
|
|
88
92
|
"role_name": obj.get("role_name"),
|
|
89
|
-
"ts_created": obj.get("ts_created")
|
|
93
|
+
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None
|
|
90
94
|
})
|
|
91
95
|
return _obj
|
|
92
96
|
|
|
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from neurograph.v1.models.db_user_client_role import DbUserClientRole
|
|
23
23
|
from neurograph.v1.models.db_user_org_role import DbUserOrgRole
|
|
24
24
|
from neurograph.v1.models.db_user_role import DbUserRole
|
|
25
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
25
26
|
from typing import Optional, Set
|
|
26
27
|
from typing_extensions import Self
|
|
27
28
|
|
|
@@ -36,8 +37,8 @@ class DbUserInDb(BaseModel):
|
|
|
36
37
|
id: Optional[StrictInt] = None
|
|
37
38
|
org_roles: Optional[List[DbUserOrgRole]] = None
|
|
38
39
|
roles: Optional[List[DbUserRole]] = None
|
|
39
|
-
ts_created: Optional[
|
|
40
|
-
ts_updated: Optional[
|
|
40
|
+
ts_created: Optional[PgtypeTimestamp] = None
|
|
41
|
+
ts_updated: Optional[PgtypeTimestamp] = None
|
|
41
42
|
__properties: ClassVar[List[str]] = ["client_roles", "display_name", "email", "firebase_uid", "id", "org_roles", "roles", "ts_created", "ts_updated"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
@@ -100,6 +101,12 @@ class DbUserInDb(BaseModel):
|
|
|
100
101
|
if _item_roles:
|
|
101
102
|
_items.append(_item_roles.to_dict())
|
|
102
103
|
_dict['roles'] = _items
|
|
104
|
+
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
105
|
+
if self.ts_created:
|
|
106
|
+
_dict['ts_created'] = self.ts_created.to_dict()
|
|
107
|
+
# override the default output from pydantic by calling `to_dict()` of ts_updated
|
|
108
|
+
if self.ts_updated:
|
|
109
|
+
_dict['ts_updated'] = self.ts_updated.to_dict()
|
|
103
110
|
return _dict
|
|
104
111
|
|
|
105
112
|
@classmethod
|
|
@@ -119,8 +126,8 @@ class DbUserInDb(BaseModel):
|
|
|
119
126
|
"id": obj.get("id"),
|
|
120
127
|
"org_roles": [DbUserOrgRole.from_dict(_item) for _item in obj["org_roles"]] if obj.get("org_roles") is not None else None,
|
|
121
128
|
"roles": [DbUserRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
|
|
122
|
-
"ts_created": obj.get("ts_created"),
|
|
123
|
-
"ts_updated": obj.get("ts_updated")
|
|
129
|
+
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None,
|
|
130
|
+
"ts_updated": PgtypeTimestamp.from_dict(obj["ts_updated"]) if obj.get("ts_updated") is not None else None
|
|
124
131
|
})
|
|
125
132
|
return _obj
|
|
126
133
|
|
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -29,7 +30,7 @@ class DbUserOrgRole(BaseModel):
|
|
|
29
30
|
id: Optional[StrictInt] = None
|
|
30
31
|
org_id: Optional[StrictStr] = None
|
|
31
32
|
role_name: Optional[StrictStr] = None
|
|
32
|
-
ts_created: Optional[
|
|
33
|
+
ts_created: Optional[PgtypeTimestamp] = None
|
|
33
34
|
__properties: ClassVar[List[str]] = ["id", "org_id", "role_name", "ts_created"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
@@ -71,6 +72,9 @@ class DbUserOrgRole(BaseModel):
|
|
|
71
72
|
exclude=excluded_fields,
|
|
72
73
|
exclude_none=True,
|
|
73
74
|
)
|
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
76
|
+
if self.ts_created:
|
|
77
|
+
_dict['ts_created'] = self.ts_created.to_dict()
|
|
74
78
|
return _dict
|
|
75
79
|
|
|
76
80
|
@classmethod
|
|
@@ -86,7 +90,7 @@ class DbUserOrgRole(BaseModel):
|
|
|
86
90
|
"id": obj.get("id"),
|
|
87
91
|
"org_id": obj.get("org_id"),
|
|
88
92
|
"role_name": obj.get("role_name"),
|
|
89
|
-
"ts_created": obj.get("ts_created")
|
|
93
|
+
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None
|
|
90
94
|
})
|
|
91
95
|
return _obj
|
|
92
96
|
|
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -28,7 +29,7 @@ class DbUserRole(BaseModel):
|
|
|
28
29
|
""" # noqa: E501
|
|
29
30
|
id: Optional[StrictInt] = None
|
|
30
31
|
role_name: Optional[StrictStr] = None
|
|
31
|
-
ts_created: Optional[
|
|
32
|
+
ts_created: Optional[PgtypeTimestamp] = None
|
|
32
33
|
__properties: ClassVar[List[str]] = ["id", "role_name", "ts_created"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
@@ -70,6 +71,9 @@ class DbUserRole(BaseModel):
|
|
|
70
71
|
exclude=excluded_fields,
|
|
71
72
|
exclude_none=True,
|
|
72
73
|
)
|
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
75
|
+
if self.ts_created:
|
|
76
|
+
_dict['ts_created'] = self.ts_created.to_dict()
|
|
73
77
|
return _dict
|
|
74
78
|
|
|
75
79
|
@classmethod
|
|
@@ -84,7 +88,7 @@ class DbUserRole(BaseModel):
|
|
|
84
88
|
_obj = cls.model_validate({
|
|
85
89
|
"id": obj.get("id"),
|
|
86
90
|
"role_name": obj.get("role_name"),
|
|
87
|
-
"ts_created": obj.get("ts_created")
|
|
91
|
+
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None
|
|
88
92
|
})
|
|
89
93
|
return _obj
|
|
90
94
|
|
|
@@ -38,11 +38,12 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
38
38
|
output_schema_id: Optional[StrictStr] = None
|
|
39
39
|
output_text: Optional[StrictStr] = None
|
|
40
40
|
spec_version: Optional[StrictInt] = None
|
|
41
|
+
status: Optional[StrictStr] = None
|
|
41
42
|
subject_entity_id: Optional[StrictStr] = None
|
|
42
43
|
supersedes_artifact_id: Optional[StrictInt] = None
|
|
43
44
|
task_name: Optional[StrictStr] = None
|
|
44
45
|
task_queue_name: Optional[StrictStr] = None
|
|
45
|
-
__properties: ClassVar[List[str]] = ["client_id", "cloud_run_job_name", "confidence", "config_entity_id", "config_snapshot", "input_params", "job_name", "kind", "output_json", "output_schema_id", "output_text", "spec_version", "subject_entity_id", "supersedes_artifact_id", "task_name", "task_queue_name"]
|
|
46
|
+
__properties: ClassVar[List[str]] = ["client_id", "cloud_run_job_name", "confidence", "config_entity_id", "config_snapshot", "input_params", "job_name", "kind", "output_json", "output_schema_id", "output_text", "spec_version", "status", "subject_entity_id", "supersedes_artifact_id", "task_name", "task_queue_name"]
|
|
46
47
|
|
|
47
48
|
model_config = ConfigDict(
|
|
48
49
|
populate_by_name=True,
|
|
@@ -107,6 +108,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
107
108
|
"output_schema_id": obj.get("output_schema_id"),
|
|
108
109
|
"output_text": obj.get("output_text"),
|
|
109
110
|
"spec_version": obj.get("spec_version"),
|
|
111
|
+
"status": obj.get("status"),
|
|
110
112
|
"subject_entity_id": obj.get("subject_entity_id"),
|
|
111
113
|
"supersedes_artifact_id": obj.get("supersedes_artifact_id"),
|
|
112
114
|
"task_name": obj.get("task_name"),
|
{neurograph_core-1.202510092220.dist-info → neurograph_core-1.202510101705.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
neurograph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
neurograph/v1/__init__.py,sha256=
|
|
2
|
+
neurograph/v1/__init__.py,sha256=z6Dz_duQ709r8FBGS5lWcotDFPTZHnYudgbc-g1kcMU,28229
|
|
3
3
|
neurograph/v1/api_client.py,sha256=DDElXCrEofUsxEKyghe4QzGQABihYiXZ7nQ-NXo0Qbo,27790
|
|
4
4
|
neurograph/v1/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
5
5
|
neurograph/v1/configuration.py,sha256=Z9W6H5lLIHbBY8hJwTw9Zd26kLWVOaoPwnc3daBOIVM,19190
|
|
@@ -7,7 +7,7 @@ neurograph/v1/exceptions.py,sha256=I4t1fFbhv-J1GCFTfEPCwpt44WyqWNjLwQCVafRLMB4,6
|
|
|
7
7
|
neurograph/v1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
neurograph/v1/rest.py,sha256=76e_8kyCWAYYFmtCFJajhCm7clvTTufaidBiNl6pNEA,9473
|
|
9
9
|
neurograph/v1/api/__init__.py,sha256=jzr1RuqGQ_loqq3CyAZWo52K7ifBbOyehvoePmVojcs,924
|
|
10
|
-
neurograph/v1/api/admin_api.py,sha256=
|
|
10
|
+
neurograph/v1/api/admin_api.py,sha256=PxeLgMNBH-n6d4CmTe1kUa9BjIeeTRfRcL_FukbL1nI,43402
|
|
11
11
|
neurograph/v1/api/authentication_api.py,sha256=5Qzs_TMzcjrPAQxbWAZ6HHXM80Fqfv42hq9_uzkKRAI,33388
|
|
12
12
|
neurograph/v1/api/client_api.py,sha256=XEtI472SI4gtCLMt8LR54_bDqbsk_BEBqdI1bUjVHh8,97977
|
|
13
13
|
neurograph/v1/api/client_metadata_api.py,sha256=799y_V9AdA_TYCeN-qTEtKUFbq05Mv1vgCc0UY4qpcc,45652
|
|
@@ -18,17 +18,17 @@ neurograph/v1/api/lookup_api.py,sha256=FF-HYxUi3TweR1P7oQvYGqsYfvZFWst9GCEjcfC9u
|
|
|
18
18
|
neurograph/v1/api/organization_api.py,sha256=3X0qublErpfx4J1zvPzjzY7S_AxcVi4vkc3APC519d8,77955
|
|
19
19
|
neurograph/v1/api/organization_metadata_api.py,sha256=PtwuBFSY0FjCAB7fuR710CRkQbtR-xpruX9780hGQxk,34860
|
|
20
20
|
neurograph/v1/api/persona_api.py,sha256=5uQJHMz3qo-iFPHZVeEcDe02GkkMvMDI5fCh7Kmqi7g,132658
|
|
21
|
-
neurograph/v1/api/reporting_api.py,sha256=
|
|
21
|
+
neurograph/v1/api/reporting_api.py,sha256=EcqzhzFcaZGYtNPmTtXPSHLYL8P7BEiVv2dUQMdnRXU,11505
|
|
22
22
|
neurograph/v1/api/system_api.py,sha256=IIy_ywuthVoa9e_Mrhf34ZsPemMTFm-3lMxVT6DgaKI,10864
|
|
23
23
|
neurograph/v1/api/user_api.py,sha256=0Y4xYK1n7WxkfAY8X6umW0y21mFkeKEaEWcLO9ub20o,10366
|
|
24
24
|
neurograph/v1/api/workbench_api.py,sha256=BMhqbbd_PSZ27br7idOgyZFdxMQ0N7O4fFQq8n_6JVs,34221
|
|
25
|
-
neurograph/v1/models/__init__.py,sha256=
|
|
25
|
+
neurograph/v1/models/__init__.py,sha256=Z_iL5Hb0q3AILjSLkboh4JUvNlGm7CbMngN2dNsdwiA,15403
|
|
26
26
|
neurograph/v1/models/admin_permission_response.py,sha256=RPM3v7iutgJKHnZbVo5ALwqMO8UDc6K0DzHdEoRgubo,2936
|
|
27
27
|
neurograph/v1/models/admin_set_permission_request.py,sha256=TQUB1ar9h-VmiRNm5cbUMCV5Rr98AXG7aew5BMyHBq0,2753
|
|
28
28
|
neurograph/v1/models/admin_upsert_user_request.py,sha256=FtnMRtbtg-5rHEFvt62j5K9LhdyIcM1f52BkpLSfQyk,2740
|
|
29
29
|
neurograph/v1/models/admin_upsert_user_response.py,sha256=pF2wNSGAaZONg3do6Ov4KbISxABm4OyxdY0qBDS3xsk,3144
|
|
30
30
|
neurograph/v1/models/admin_user.py,sha256=w37D3fJP1SGnOAsTQ80SY0FFKM7wixwreALADR3OyfI,3002
|
|
31
|
-
neurograph/v1/models/admin_user_detail_response.py,sha256=
|
|
31
|
+
neurograph/v1/models/admin_user_detail_response.py,sha256=FGmuKV54CTjl_34tjIwJ7BcZiIpUWzeFkdLiUb_-Km8,4924
|
|
32
32
|
neurograph/v1/models/admin_users_get_many_response.py,sha256=DnRqWfaGxTKrozMQU84ZHbILsBWntrQ0DDGzRef7leo,3088
|
|
33
33
|
neurograph/v1/models/admin_users_org_response.py,sha256=_dp3011IVjEHHcACw6h4dKvQGk1PacqJv6s_CbwvXAU,3066
|
|
34
34
|
neurograph/v1/models/auth_service_token_request.py,sha256=xm8UyKQ-BlU-DvP94s5q7Rkn0lX1Nv4URh1ZemH4V7U,2545
|
|
@@ -78,10 +78,10 @@ neurograph/v1/models/db_knowledge_store.py,sha256=wVT3ruIFhibYScSMa-SJ0XpPmuXGEl
|
|
|
78
78
|
neurograph/v1/models/db_my_client.py,sha256=4STLsY76RbMu5BbyjikEOlbt_1PoLLjNKIl3IK3i8x0,3134
|
|
79
79
|
neurograph/v1/models/db_my_org.py,sha256=HVYZdlORBmUKkm-XMtLNTLGGyvzLfY34HNJlg5xFYkw,4482
|
|
80
80
|
neurograph/v1/models/db_persona_factor_create_params.py,sha256=a0u8yJJRMjRFtsuYlDp2JwrU0O2ZlCitVQX_sB6tvZY,3074
|
|
81
|
-
neurograph/v1/models/db_user_client_role.py,sha256=
|
|
82
|
-
neurograph/v1/models/db_user_in_db.py,sha256=
|
|
83
|
-
neurograph/v1/models/db_user_org_role.py,sha256=
|
|
84
|
-
neurograph/v1/models/db_user_role.py,sha256=
|
|
81
|
+
neurograph/v1/models/db_user_client_role.py,sha256=pzVPYlRE96r2GxIoP1vpSGm3iSByWk7_V_EHJo92coI,3145
|
|
82
|
+
neurograph/v1/models/db_user_in_db.py,sha256=ITP40_5XPIVLjzKghh653mZg2OWCreG9lx8lBrgSaIw,5398
|
|
83
|
+
neurograph/v1/models/db_user_org_role.py,sha256=p0RWNklWZD_2olo3vWVJZkFbh1Nv_xTCZfb1W6Q8Nf0,3121
|
|
84
|
+
neurograph/v1/models/db_user_role.py,sha256=6apPNHXmTcKOnwxhJRjYAAeA4n6r3pxldi6C6VG84_k,3019
|
|
85
85
|
neurograph/v1/models/knowledge_assertion.py,sha256=Zw17ZH2ny65ILvArGo6RVZVFlmyDmAipePQ7IgbHCMY,3913
|
|
86
86
|
neurograph/v1/models/knowledge_assertion_create_request.py,sha256=HgG3iyH38FlEFxQa86rpjwzqBcqGe3s7Ebym2yTcsTo,3553
|
|
87
87
|
neurograph/v1/models/knowledge_assertion_list_response.py,sha256=9kFCe_dQ8m2NvLKhw-ue2LJt6iMTGYNWYmqy646IwSc,3551
|
|
@@ -90,7 +90,7 @@ neurograph/v1/models/knowledge_assertion_response.py,sha256=A4wvo3vi_Z8w9rTuVH67
|
|
|
90
90
|
neurograph/v1/models/knowledge_customer_query.py,sha256=DicUa5QawV_bcayluA1lgIu7DL8jno6Nl3UB-ua_ywU,3124
|
|
91
91
|
neurograph/v1/models/knowledge_customer_response.py,sha256=UeARH1OzL7FojckE78St9LTUkxvsEiyh2JM3L8kRuGk,3532
|
|
92
92
|
neurograph/v1/models/knowledge_enrichment_artifact.py,sha256=qvNiECbfrRAycfq_JQC8GmUCGPYwsKh7ow-MNtvlMLQ,5602
|
|
93
|
-
neurograph/v1/models/knowledge_enrichment_artifact_create_request.py,sha256
|
|
93
|
+
neurograph/v1/models/knowledge_enrichment_artifact_create_request.py,sha256=-lsFUX4WED3oEBaNEpqCryZvjragKCs6uvJ4ajjnfKE,4559
|
|
94
94
|
neurograph/v1/models/knowledge_enrichment_artifact_list_response.py,sha256=QV7XCpC2Kf_wXSbd8uLeTKyPHy_pxeiP4XIwm5ZMMUM,3628
|
|
95
95
|
neurograph/v1/models/knowledge_enrichment_artifact_response.py,sha256=U0kYpPU1KmpEMVEJHv9D57p5_PgDaOUwcgwj2IUZ4_Y,3013
|
|
96
96
|
neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py,sha256=KWi5Q_D6r-yCDCaFkadaw9RCOXf-6JmmRh_m3KpwNbo,3023
|
|
@@ -192,33 +192,16 @@ neurograph/v1/models/pgtype_infinity_modifier.py,sha256=rROhs-_4H5Vuk0omVmVTzu8e
|
|
|
192
192
|
neurograph/v1/models/pgtype_int8.py,sha256=jDeN8o2tU2gsiTu0qR9tlwqNTZXzlOQWrtCOYtEiY-Y,2592
|
|
193
193
|
neurograph/v1/models/pgtype_text.py,sha256=fOIS-9aEpA0pMgswkN8yehcG9Bzx6XYIbPXQTWcOk7o,2596
|
|
194
194
|
neurograph/v1/models/pgtype_timestamp.py,sha256=EBT-tEr4tuItetIaorIe7l-wGF3adPnZ1NCLsmQQFaI,2966
|
|
195
|
-
neurograph/v1/models/reporting_affinities_response.py,sha256=ILffpzqL27FSPHnw7KGcgznnlUG-NVwrD2K9DpxmxME,2672
|
|
196
|
-
neurograph/v1/models/reporting_chart_data.py,sha256=qXE6U8T1aGa6wv9hsWaSq21eGeIT39FYPtBMcdB52Ts,3161
|
|
197
|
-
neurograph/v1/models/reporting_chart_dataset.py,sha256=P0RPzhIw7Jg_3MhqD0oDSbQqyfXuf5Jq2sPxkV9zc5g,3027
|
|
198
|
-
neurograph/v1/models/reporting_chart_defaults.py,sha256=FMl-3qltYoq8RpV03cM9ypr-B7IbytOr4oSWngCF6bs,2867
|
|
199
|
-
neurograph/v1/models/reporting_chart_options.py,sha256=0J7EI0QiraIpo7oS_c_f47N8ejotYETUbFFnvCJkTh0,2971
|
|
200
|
-
neurograph/v1/models/reporting_content_config.py,sha256=daMpOwoCZGpds0hcTv_IErtL-lutu5kYBHzLTCoYSPA,4640
|
|
201
|
-
neurograph/v1/models/reporting_customer_activity_response.py,sha256=fqRqD4mxFrA7oN_mZflP5WzUrmad82_Ky0l4fKrOa8g,2688
|
|
202
195
|
neurograph/v1/models/reporting_daily_metric.py,sha256=m4ez3Caz-foe3MNT8Oyvhmz4JhLp0tmfO9LHvhtZDg8,3104
|
|
203
196
|
neurograph/v1/models/reporting_daily_metrics_response.py,sha256=lmj9ClSx0BaO9Z16jjkWNmcj2yPP574eeRMEEZ-Vf6s,3143
|
|
204
|
-
neurograph/v1/models/reporting_data_range.py,sha256=AIiUoqPvXCXy0UTX_tz2H3NEy6jvzRMw1JiFtVcRf4U,2603
|
|
205
|
-
neurograph/v1/models/reporting_exploration_topic.py,sha256=HQzNOsVXUR5Z40xAfdvXV7icY7k0Su-CRzEFOxmW_9k,2749
|
|
206
|
-
neurograph/v1/models/reporting_header_config.py,sha256=0gjRrAa6wxvR9OVXo7olyX1BYWCD0-JFUHYScAQhrb4,2635
|
|
207
|
-
neurograph/v1/models/reporting_meta_config.py,sha256=690xmgJM_XtWxScuwOfbxu8ClMVkxJMighvihWvANlM,3515
|
|
208
|
-
neurograph/v1/models/reporting_persona_activity_response.py,sha256=BSGu9QJnhmjN2Sl3kYhhV9ViJOHtnEHaSmbBtFIMa8M,2692
|
|
209
|
-
neurograph/v1/models/reporting_personas_response.py,sha256=v28wgBg10nM2sqdnhnD7ib3J2J4X64WpvE5zazuQHLc,2656
|
|
210
|
-
neurograph/v1/models/reporting_primary_analysis.py,sha256=BgKJUzYzEB8nFombkSCOorb9WVeBbMH0l_QUYCBa_yE,3516
|
|
211
197
|
neurograph/v1/models/reporting_query.py,sha256=4IyMl4MHKSEozjFdmyx6dP2ZL2qTgTQ_gLHYbUW_YhU,2733
|
|
212
|
-
neurograph/v1/models/reporting_rich_insights_config.py,sha256=mVBC3SQQmvcKRsDYlPfZt4Gxpw8lDZ6QOFwLuBiXYD0,3279
|
|
213
|
-
neurograph/v1/models/reporting_visualization.py,sha256=KAUc0ry2kV91s05GUkn1EMChNaF-flrFORQ_j6-8VJA,3549
|
|
214
|
-
neurograph/v1/models/reporting_visualization_insights.py,sha256=rjnV8m1zKLt9M3YYwigLbab52nahw8hEP1qSt-cALUM,2767
|
|
215
198
|
neurograph/v1/models/workbench_workbench_url_check_request.py,sha256=3H9SYJE78OlRPvVUZbTW4_KELkp8UUlM7Urpj3YDwyU,2581
|
|
216
199
|
neurograph/v1/models/workbench_workbench_url_check_response.py,sha256=X8x_i7U2x1ckfI3lSNvu1FUrp7lq3atXilYI5k10dbA,3913
|
|
217
200
|
neurograph/v1/models/workbench_workbench_version.py,sha256=AsgikzRU6BRj99gRFGGTlkJA6eqUY2v1HKu22mxfNpU,3165
|
|
218
201
|
neurograph/v1/models/workbench_workbench_version_many_response.py,sha256=xuOxnMscyIo8DhsR-yyir1rruExSgNWMu3yMWzgWbc0,3195
|
|
219
202
|
neurograph/v1/models/workbench_workbench_version_response.py,sha256=nMupKXBsoi4eXD-fsp_5PHrMislATwoBpVIZU7mG9RM,3283
|
|
220
203
|
neurograph/v1/models/workbench_workbench_version_upsert_request.py,sha256=bAxjBeFe8EG3bXPUrLjfntlC65lK5p_ddPs_0yX3A9g,2994
|
|
221
|
-
neurograph_core-1.
|
|
222
|
-
neurograph_core-1.
|
|
223
|
-
neurograph_core-1.
|
|
224
|
-
neurograph_core-1.
|
|
204
|
+
neurograph_core-1.202510101705.dist-info/METADATA,sha256=m4yqe8P-ODzanrLtAygkgqGE0QdFYEyvG6O4FlmvrAc,1902
|
|
205
|
+
neurograph_core-1.202510101705.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
206
|
+
neurograph_core-1.202510101705.dist-info/top_level.txt,sha256=iajcSUfGanaBq4McklJQ4IXVuwV24WJhY7FRzlQybxI,11
|
|
207
|
+
neurograph_core-1.202510101705.dist-info/RECORD,,
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Neurograph Core
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class ReportingAffinitiesResponse(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
ReportingAffinitiesResponse
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
affinities: Optional[Dict[str, Any]] = None
|
|
30
|
-
error: Optional[StrictStr] = None
|
|
31
|
-
__properties: ClassVar[List[str]] = ["affinities", "error"]
|
|
32
|
-
|
|
33
|
-
model_config = ConfigDict(
|
|
34
|
-
populate_by_name=True,
|
|
35
|
-
validate_assignment=True,
|
|
36
|
-
protected_namespaces=(),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of ReportingAffinitiesResponse from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
"""Return the dictionary representation of the model using alias.
|
|
56
|
-
|
|
57
|
-
This has the following differences from calling pydantic's
|
|
58
|
-
`self.model_dump(by_alias=True)`:
|
|
59
|
-
|
|
60
|
-
* `None` is only added to the output dict for nullable fields that
|
|
61
|
-
were set at model initialization. Other fields with value `None`
|
|
62
|
-
are ignored.
|
|
63
|
-
"""
|
|
64
|
-
excluded_fields: Set[str] = set([
|
|
65
|
-
])
|
|
66
|
-
|
|
67
|
-
_dict = self.model_dump(
|
|
68
|
-
by_alias=True,
|
|
69
|
-
exclude=excluded_fields,
|
|
70
|
-
exclude_none=True,
|
|
71
|
-
)
|
|
72
|
-
return _dict
|
|
73
|
-
|
|
74
|
-
@classmethod
|
|
75
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
-
"""Create an instance of ReportingAffinitiesResponse from a dict"""
|
|
77
|
-
if obj is None:
|
|
78
|
-
return None
|
|
79
|
-
|
|
80
|
-
if not isinstance(obj, dict):
|
|
81
|
-
return cls.model_validate(obj)
|
|
82
|
-
|
|
83
|
-
_obj = cls.model_validate({
|
|
84
|
-
"affinities": obj.get("affinities"),
|
|
85
|
-
"error": obj.get("error")
|
|
86
|
-
})
|
|
87
|
-
return _obj
|
|
88
|
-
|
|
89
|
-
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Neurograph Core
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.reporting_chart_dataset import ReportingChartDataset
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class ReportingChartData(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
ReportingChartData
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
datasets: Optional[List[ReportingChartDataset]] = None
|
|
31
|
-
labels: Optional[List[StrictStr]] = None
|
|
32
|
-
__properties: ClassVar[List[str]] = ["datasets", "labels"]
|
|
33
|
-
|
|
34
|
-
model_config = ConfigDict(
|
|
35
|
-
populate_by_name=True,
|
|
36
|
-
validate_assignment=True,
|
|
37
|
-
protected_namespaces=(),
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
def to_str(self) -> str:
|
|
42
|
-
"""Returns the string representation of the model using alias"""
|
|
43
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
-
|
|
45
|
-
def to_json(self) -> str:
|
|
46
|
-
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
-
|
|
50
|
-
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of ReportingChartData from a JSON string"""
|
|
53
|
-
return cls.from_dict(json.loads(json_str))
|
|
54
|
-
|
|
55
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
-
"""Return the dictionary representation of the model using alias.
|
|
57
|
-
|
|
58
|
-
This has the following differences from calling pydantic's
|
|
59
|
-
`self.model_dump(by_alias=True)`:
|
|
60
|
-
|
|
61
|
-
* `None` is only added to the output dict for nullable fields that
|
|
62
|
-
were set at model initialization. Other fields with value `None`
|
|
63
|
-
are ignored.
|
|
64
|
-
"""
|
|
65
|
-
excluded_fields: Set[str] = set([
|
|
66
|
-
])
|
|
67
|
-
|
|
68
|
-
_dict = self.model_dump(
|
|
69
|
-
by_alias=True,
|
|
70
|
-
exclude=excluded_fields,
|
|
71
|
-
exclude_none=True,
|
|
72
|
-
)
|
|
73
|
-
# override the default output from pydantic by calling `to_dict()` of each item in datasets (list)
|
|
74
|
-
_items = []
|
|
75
|
-
if self.datasets:
|
|
76
|
-
for _item_datasets in self.datasets:
|
|
77
|
-
if _item_datasets:
|
|
78
|
-
_items.append(_item_datasets.to_dict())
|
|
79
|
-
_dict['datasets'] = _items
|
|
80
|
-
return _dict
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
-
"""Create an instance of ReportingChartData from a dict"""
|
|
85
|
-
if obj is None:
|
|
86
|
-
return None
|
|
87
|
-
|
|
88
|
-
if not isinstance(obj, dict):
|
|
89
|
-
return cls.model_validate(obj)
|
|
90
|
-
|
|
91
|
-
_obj = cls.model_validate({
|
|
92
|
-
"datasets": [ReportingChartDataset.from_dict(_item) for _item in obj["datasets"]] if obj.get("datasets") is not None else None,
|
|
93
|
-
"labels": obj.get("labels")
|
|
94
|
-
})
|
|
95
|
-
return _obj
|
|
96
|
-
|
|
97
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Neurograph Core
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class ReportingChartDataset(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
ReportingChartDataset
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
background_color: Optional[StrictStr] = Field(default=None, alias="backgroundColor")
|
|
30
|
-
bar_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="barPercentage")
|
|
31
|
-
data: Optional[List[Union[StrictFloat, StrictInt]]] = None
|
|
32
|
-
label: Optional[StrictStr] = None
|
|
33
|
-
__properties: ClassVar[List[str]] = ["backgroundColor", "barPercentage", "data", "label"]
|
|
34
|
-
|
|
35
|
-
model_config = ConfigDict(
|
|
36
|
-
populate_by_name=True,
|
|
37
|
-
validate_assignment=True,
|
|
38
|
-
protected_namespaces=(),
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def to_str(self) -> str:
|
|
43
|
-
"""Returns the string representation of the model using alias"""
|
|
44
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
-
|
|
46
|
-
def to_json(self) -> str:
|
|
47
|
-
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
-
|
|
51
|
-
@classmethod
|
|
52
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of ReportingChartDataset from a JSON string"""
|
|
54
|
-
return cls.from_dict(json.loads(json_str))
|
|
55
|
-
|
|
56
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
-
"""Return the dictionary representation of the model using alias.
|
|
58
|
-
|
|
59
|
-
This has the following differences from calling pydantic's
|
|
60
|
-
`self.model_dump(by_alias=True)`:
|
|
61
|
-
|
|
62
|
-
* `None` is only added to the output dict for nullable fields that
|
|
63
|
-
were set at model initialization. Other fields with value `None`
|
|
64
|
-
are ignored.
|
|
65
|
-
"""
|
|
66
|
-
excluded_fields: Set[str] = set([
|
|
67
|
-
])
|
|
68
|
-
|
|
69
|
-
_dict = self.model_dump(
|
|
70
|
-
by_alias=True,
|
|
71
|
-
exclude=excluded_fields,
|
|
72
|
-
exclude_none=True,
|
|
73
|
-
)
|
|
74
|
-
return _dict
|
|
75
|
-
|
|
76
|
-
@classmethod
|
|
77
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
-
"""Create an instance of ReportingChartDataset from a dict"""
|
|
79
|
-
if obj is None:
|
|
80
|
-
return None
|
|
81
|
-
|
|
82
|
-
if not isinstance(obj, dict):
|
|
83
|
-
return cls.model_validate(obj)
|
|
84
|
-
|
|
85
|
-
_obj = cls.model_validate({
|
|
86
|
-
"backgroundColor": obj.get("backgroundColor"),
|
|
87
|
-
"barPercentage": obj.get("barPercentage"),
|
|
88
|
-
"data": obj.get("data"),
|
|
89
|
-
"label": obj.get("label")
|
|
90
|
-
})
|
|
91
|
-
return _obj
|
|
92
|
-
|
|
93
|
-
|