neurograph-core 1.202510040107__py3-none-any.whl → 1.202510081632__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 CHANGED
@@ -29,7 +29,6 @@ __all__ = [
29
29
  "OrganizationApi",
30
30
  "OrganizationMetadataApi",
31
31
  "PersonaApi",
32
- "ReportingApi",
33
32
  "SystemApi",
34
33
  "UserApi",
35
34
  "WorkbenchApi",
@@ -211,9 +210,6 @@ __all__ = [
211
210
  "PgtypeInt8",
212
211
  "PgtypeText",
213
212
  "PgtypeTimestamp",
214
- "ReportingDailyMetric",
215
- "ReportingDailyMetricsResponse",
216
- "ReportingQuery",
217
213
  "WorkbenchWorkbenchUrlCheckRequest",
218
214
  "WorkbenchWorkbenchUrlCheckResponse",
219
215
  "WorkbenchWorkbenchVersion",
@@ -234,7 +230,6 @@ from neurograph.v1.api.lookup_api import LookupApi as LookupApi
234
230
  from neurograph.v1.api.organization_api import OrganizationApi as OrganizationApi
235
231
  from neurograph.v1.api.organization_metadata_api import OrganizationMetadataApi as OrganizationMetadataApi
236
232
  from neurograph.v1.api.persona_api import PersonaApi as PersonaApi
237
- from neurograph.v1.api.reporting_api import ReportingApi as ReportingApi
238
233
  from neurograph.v1.api.system_api import SystemApi as SystemApi
239
234
  from neurograph.v1.api.user_api import UserApi as UserApi
240
235
  from neurograph.v1.api.workbench_api import WorkbenchApi as WorkbenchApi
@@ -420,9 +415,6 @@ from neurograph.v1.models.pgtype_infinity_modifier import PgtypeInfinityModifier
420
415
  from neurograph.v1.models.pgtype_int8 import PgtypeInt8 as PgtypeInt8
421
416
  from neurograph.v1.models.pgtype_text import PgtypeText as PgtypeText
422
417
  from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp as PgtypeTimestamp
423
- from neurograph.v1.models.reporting_daily_metric import ReportingDailyMetric as ReportingDailyMetric
424
- from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse as ReportingDailyMetricsResponse
425
- from neurograph.v1.models.reporting_query import ReportingQuery as ReportingQuery
426
418
  from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest as WorkbenchWorkbenchUrlCheckRequest
427
419
  from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse as WorkbenchWorkbenchUrlCheckResponse
428
420
  from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion as WorkbenchWorkbenchVersion
@@ -12,7 +12,6 @@ from neurograph.v1.api.lookup_api import LookupApi
12
12
  from neurograph.v1.api.organization_api import OrganizationApi
13
13
  from neurograph.v1.api.organization_metadata_api import OrganizationMetadataApi
14
14
  from neurograph.v1.api.persona_api import PersonaApi
15
- from neurograph.v1.api.reporting_api import ReportingApi
16
15
  from neurograph.v1.api.system_api import SystemApi
17
16
  from neurograph.v1.api.user_api import UserApi
18
17
  from neurograph.v1.api.workbench_api import WorkbenchApi
@@ -182,9 +182,6 @@ 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_daily_metric import ReportingDailyMetric
186
- from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse
187
- from neurograph.v1.models.reporting_query import ReportingQuery
188
185
  from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
189
186
  from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
190
187
  from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional, Union
22
22
  from neurograph.v1.models.client_kpi import ClientKpi
23
23
  from neurograph.v1.models.client_persona_factor import ClientPersonaFactor
@@ -37,6 +37,7 @@ class ClientPersona(BaseModel):
37
37
  id: Optional[StrictStr] = None
38
38
  income: Optional[StrictStr] = None
39
39
  insights: Optional[List[ClientPersonaInsight]] = None
40
+ is_active: Optional[StrictBool] = None
40
41
  kpis: Optional[List[ClientKpi]] = None
41
42
  male: Optional[Union[StrictFloat, StrictInt]] = None
42
43
  metadata: Optional[StrictStr] = None
@@ -57,7 +58,7 @@ class ClientPersona(BaseModel):
57
58
  ts_created: Optional[StrictInt] = None
58
59
  ts_updated: Optional[StrictInt] = None
59
60
  value: Optional[StrictStr] = None
60
- __properties: ClassVar[List[str]] = ["age", "description", "factors", "female", "id", "income", "insights", "kpis", "male", "metadata", "name", "persona_seed_id", "personality_background", "personality_first_name", "personality_img_url", "personality_last_name", "personality_quote", "personality_traits", "personality_video_url", "positioning_statement", "seed_uid", "summary_detail", "summary_headline", "tag", "ts_created", "ts_updated", "value"]
61
+ __properties: ClassVar[List[str]] = ["age", "description", "factors", "female", "id", "income", "insights", "is_active", "kpis", "male", "metadata", "name", "persona_seed_id", "personality_background", "personality_first_name", "personality_img_url", "personality_last_name", "personality_quote", "personality_traits", "personality_video_url", "positioning_statement", "seed_uid", "summary_detail", "summary_headline", "tag", "ts_created", "ts_updated", "value"]
61
62
 
62
63
  model_config = ConfigDict(
63
64
  populate_by_name=True,
@@ -145,6 +146,7 @@ class ClientPersona(BaseModel):
145
146
  "id": obj.get("id"),
146
147
  "income": obj.get("income"),
147
148
  "insights": [ClientPersonaInsight.from_dict(_item) for _item in obj["insights"]] if obj.get("insights") is not None else None,
149
+ "is_active": obj.get("is_active"),
148
150
  "kpis": [ClientKpi.from_dict(_item) for _item in obj["kpis"]] if obj.get("kpis") is not None else None,
149
151
  "male": obj.get("male"),
150
152
  "metadata": obj.get("metadata"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neurograph-core
3
- Version: 1.202510040107
3
+ Version: 1.202510081632
4
4
  Summary: Neurograph Core
5
5
  Home-page:
6
6
  Author: Neurograph Development Team
@@ -1,12 +1,12 @@
1
1
  neurograph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- neurograph/v1/__init__.py,sha256=z6Dz_duQ709r8FBGS5lWcotDFPTZHnYudgbc-g1kcMU,28229
2
+ neurograph/v1/__init__.py,sha256=q53y-nIbHQ9cca0BTyVf5fVQojA_LIqk8gcaGZn2SLQ,27737
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
6
6
  neurograph/v1/exceptions.py,sha256=I4t1fFbhv-J1GCFTfEPCwpt44WyqWNjLwQCVafRLMB4,6477
7
7
  neurograph/v1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  neurograph/v1/rest.py,sha256=76e_8kyCWAYYFmtCFJajhCm7clvTTufaidBiNl6pNEA,9473
9
- neurograph/v1/api/__init__.py,sha256=jzr1RuqGQ_loqq3CyAZWo52K7ifBbOyehvoePmVojcs,924
9
+ neurograph/v1/api/__init__.py,sha256=WwMtS4LSXgke6XAJlbBKSbZhGrhyoUqh8CB7_OC4s5E,867
10
10
  neurograph/v1/api/admin_api.py,sha256=wfhfTJUoot-B_EN5JZmoHSOiKm5q1HNjDT_TKs-7Wv0,43353
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
@@ -18,11 +18,10 @@ 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=A1X57XMqLl5usY26744TFBMSyBwcSGdKPLNEakmiatU,11463
22
21
  neurograph/v1/api/system_api.py,sha256=IIy_ywuthVoa9e_Mrhf34ZsPemMTFm-3lMxVT6DgaKI,10864
23
22
  neurograph/v1/api/user_api.py,sha256=0Y4xYK1n7WxkfAY8X6umW0y21mFkeKEaEWcLO9ub20o,10366
24
23
  neurograph/v1/api/workbench_api.py,sha256=BMhqbbd_PSZ27br7idOgyZFdxMQ0N7O4fFQq8n_6JVs,34221
25
- neurograph/v1/models/__init__.py,sha256=Z_iL5Hb0q3AILjSLkboh4JUvNlGm7CbMngN2dNsdwiA,15403
24
+ neurograph/v1/models/__init__.py,sha256=N89V6KiFw4Xk2_49bb0jPNVxRyebSgRajOTMUv1Ud8Y,15166
26
25
  neurograph/v1/models/admin_permission_response.py,sha256=RPM3v7iutgJKHnZbVo5ALwqMO8UDc6K0DzHdEoRgubo,2936
27
26
  neurograph/v1/models/admin_set_permission_request.py,sha256=TQUB1ar9h-VmiRNm5cbUMCV5Rr98AXG7aew5BMyHBq0,2753
28
27
  neurograph/v1/models/admin_upsert_user_request.py,sha256=FtnMRtbtg-5rHEFvt62j5K9LhdyIcM1f52BkpLSfQyk,2740
@@ -47,7 +46,7 @@ neurograph/v1/models/client_metadata_request.py,sha256=F6nO2sIRozjIYsZ6pI9gb9vIK
47
46
  neurograph/v1/models/client_metadata_response.py,sha256=kyNOh6RgzfrukOc7i6argnVeAO6122fulUTxZzMB7UI,3987
48
47
  neurograph/v1/models/client_organization_brand.py,sha256=Kr0gpptq1rjITAwrppacHDGNj2cSWTBV7GskzswNAjE,3601
49
48
  neurograph/v1/models/client_organization_detail.py,sha256=V4UdD5vWf1RckuzPWt86X7t2OWuSGU0gVZ7WkWsXdMM,4206
50
- neurograph/v1/models/client_persona.py,sha256=3wlYrhRaz-3bro0acQ3wH1F-LZMiBF2oCpu5v3sIdIE,7636
49
+ neurograph/v1/models/client_persona.py,sha256=xT0NS9HqkX3Q7grZSC5GJCd5_6bHAxgFsnAIjdIQo34,7751
51
50
  neurograph/v1/models/client_persona_factor.py,sha256=h7x5fkXRXSlyCkIdSE0fHuuDB5uPhfulNNJCFbigUXc,3116
52
51
  neurograph/v1/models/client_persona_insight.py,sha256=yiQHjiYjvdLhzpRJDOWtFgslcvvnLylrqmVuYEGTyA4,2839
53
52
  neurograph/v1/models/client_persona_personality_trait.py,sha256=ac6z3pxe2mpZJbSEjs0uL8JZnViIZ3Idnf0KEqDY5Tg,2888
@@ -192,16 +191,13 @@ neurograph/v1/models/pgtype_infinity_modifier.py,sha256=rROhs-_4H5Vuk0omVmVTzu8e
192
191
  neurograph/v1/models/pgtype_int8.py,sha256=jDeN8o2tU2gsiTu0qR9tlwqNTZXzlOQWrtCOYtEiY-Y,2592
193
192
  neurograph/v1/models/pgtype_text.py,sha256=fOIS-9aEpA0pMgswkN8yehcG9Bzx6XYIbPXQTWcOk7o,2596
194
193
  neurograph/v1/models/pgtype_timestamp.py,sha256=EBT-tEr4tuItetIaorIe7l-wGF3adPnZ1NCLsmQQFaI,2966
195
- neurograph/v1/models/reporting_daily_metric.py,sha256=m4ez3Caz-foe3MNT8Oyvhmz4JhLp0tmfO9LHvhtZDg8,3104
196
- neurograph/v1/models/reporting_daily_metrics_response.py,sha256=lmj9ClSx0BaO9Z16jjkWNmcj2yPP574eeRMEEZ-Vf6s,3143
197
- neurograph/v1/models/reporting_query.py,sha256=4IyMl4MHKSEozjFdmyx6dP2ZL2qTgTQ_gLHYbUW_YhU,2733
198
194
  neurograph/v1/models/workbench_workbench_url_check_request.py,sha256=3H9SYJE78OlRPvVUZbTW4_KELkp8UUlM7Urpj3YDwyU,2581
199
195
  neurograph/v1/models/workbench_workbench_url_check_response.py,sha256=X8x_i7U2x1ckfI3lSNvu1FUrp7lq3atXilYI5k10dbA,3913
200
196
  neurograph/v1/models/workbench_workbench_version.py,sha256=AsgikzRU6BRj99gRFGGTlkJA6eqUY2v1HKu22mxfNpU,3165
201
197
  neurograph/v1/models/workbench_workbench_version_many_response.py,sha256=xuOxnMscyIo8DhsR-yyir1rruExSgNWMu3yMWzgWbc0,3195
202
198
  neurograph/v1/models/workbench_workbench_version_response.py,sha256=nMupKXBsoi4eXD-fsp_5PHrMislATwoBpVIZU7mG9RM,3283
203
199
  neurograph/v1/models/workbench_workbench_version_upsert_request.py,sha256=bAxjBeFe8EG3bXPUrLjfntlC65lK5p_ddPs_0yX3A9g,2994
204
- neurograph_core-1.202510040107.dist-info/METADATA,sha256=K4ZybJV6vnn7mahLt-0EcQQess82pEDHh6pkWgrm7iE,1902
205
- neurograph_core-1.202510040107.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
206
- neurograph_core-1.202510040107.dist-info/top_level.txt,sha256=iajcSUfGanaBq4McklJQ4IXVuwV24WJhY7FRzlQybxI,11
207
- neurograph_core-1.202510040107.dist-info/RECORD,,
200
+ neurograph_core-1.202510081632.dist-info/METADATA,sha256=SHLpPGpvTnzfL7q3RDSWV0nWnSCXtp74iIQIG2zTjZs,1902
201
+ neurograph_core-1.202510081632.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
202
+ neurograph_core-1.202510081632.dist-info/top_level.txt,sha256=iajcSUfGanaBq4McklJQ4IXVuwV24WJhY7FRzlQybxI,11
203
+ neurograph_core-1.202510081632.dist-info/RECORD,,
@@ -1,300 +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
- import warnings
15
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
- from typing import Any, Dict, List, Optional, Tuple, Union
17
- from typing_extensions import Annotated
18
-
19
- from pydantic import Field
20
- from typing_extensions import Annotated
21
- from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse
22
- from neurograph.v1.models.reporting_query import ReportingQuery
23
-
24
- from neurograph.v1.api_client import ApiClient, RequestSerialized
25
- from neurograph.v1.api_response import ApiResponse
26
- from neurograph.v1.rest import RESTResponseType
27
-
28
-
29
- class ReportingApi:
30
- """NOTE: This class is auto generated by OpenAPI Generator
31
- Ref: https://openapi-generator.tech
32
-
33
- Do not edit the class manually.
34
- """
35
-
36
- def __init__(self, api_client=None) -> None:
37
- if api_client is None:
38
- api_client = ApiClient.get_default()
39
- self.api_client = api_client
40
-
41
-
42
- @validate_call
43
- def api_v1_reporting_daily_rollup_post(
44
- self,
45
- request: Annotated[ReportingQuery, Field(description="Body")],
46
- _request_timeout: Union[
47
- None,
48
- Annotated[StrictFloat, Field(gt=0)],
49
- Tuple[
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Annotated[StrictFloat, Field(gt=0)]
52
- ]
53
- ] = None,
54
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
- _content_type: Optional[StrictStr] = None,
56
- _headers: Optional[Dict[StrictStr, Any]] = None,
57
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
- ) -> ReportingDailyMetricsResponse:
59
- """Get Daily Metrics for Client by Persona
60
-
61
-
62
- :param request: Body (required)
63
- :type request: ReportingQuery
64
- :param _request_timeout: timeout setting for this request. If one
65
- number provided, it will be total request
66
- timeout. It can also be a pair (tuple) of
67
- (connection, read) timeouts.
68
- :type _request_timeout: int, tuple(int, int), optional
69
- :param _request_auth: set to override the auth_settings for an a single
70
- request; this effectively ignores the
71
- authentication in the spec for a single request.
72
- :type _request_auth: dict, optional
73
- :param _content_type: force content-type for the request.
74
- :type _content_type: str, Optional
75
- :param _headers: set to override the headers for a single
76
- request; this effectively ignores the headers
77
- in the spec for a single request.
78
- :type _headers: dict, optional
79
- :param _host_index: set to override the host_index for a single
80
- request; this effectively ignores the host_index
81
- in the spec for a single request.
82
- :type _host_index: int, optional
83
- :return: Returns the result object.
84
- """ # noqa: E501
85
-
86
- _param = self._api_v1_reporting_daily_rollup_post_serialize(
87
- request=request,
88
- _request_auth=_request_auth,
89
- _content_type=_content_type,
90
- _headers=_headers,
91
- _host_index=_host_index
92
- )
93
-
94
- _response_types_map: Dict[str, Optional[str]] = {
95
- '200': "ReportingDailyMetricsResponse",
96
- '400': "ReportingDailyMetricsResponse",
97
- }
98
- response_data = self.api_client.call_api(
99
- *_param,
100
- _request_timeout=_request_timeout
101
- )
102
- response_data.read()
103
- return self.api_client.response_deserialize(
104
- response_data=response_data,
105
- response_types_map=_response_types_map,
106
- ).data
107
-
108
-
109
- @validate_call
110
- def api_v1_reporting_daily_rollup_post_with_http_info(
111
- self,
112
- request: Annotated[ReportingQuery, Field(description="Body")],
113
- _request_timeout: Union[
114
- None,
115
- Annotated[StrictFloat, Field(gt=0)],
116
- Tuple[
117
- Annotated[StrictFloat, Field(gt=0)],
118
- Annotated[StrictFloat, Field(gt=0)]
119
- ]
120
- ] = None,
121
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
122
- _content_type: Optional[StrictStr] = None,
123
- _headers: Optional[Dict[StrictStr, Any]] = None,
124
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
125
- ) -> ApiResponse[ReportingDailyMetricsResponse]:
126
- """Get Daily Metrics for Client by Persona
127
-
128
-
129
- :param request: Body (required)
130
- :type request: ReportingQuery
131
- :param _request_timeout: timeout setting for this request. If one
132
- number provided, it will be total request
133
- timeout. It can also be a pair (tuple) of
134
- (connection, read) timeouts.
135
- :type _request_timeout: int, tuple(int, int), optional
136
- :param _request_auth: set to override the auth_settings for an a single
137
- request; this effectively ignores the
138
- authentication in the spec for a single request.
139
- :type _request_auth: dict, optional
140
- :param _content_type: force content-type for the request.
141
- :type _content_type: str, Optional
142
- :param _headers: set to override the headers for a single
143
- request; this effectively ignores the headers
144
- in the spec for a single request.
145
- :type _headers: dict, optional
146
- :param _host_index: set to override the host_index for a single
147
- request; this effectively ignores the host_index
148
- in the spec for a single request.
149
- :type _host_index: int, optional
150
- :return: Returns the result object.
151
- """ # noqa: E501
152
-
153
- _param = self._api_v1_reporting_daily_rollup_post_serialize(
154
- request=request,
155
- _request_auth=_request_auth,
156
- _content_type=_content_type,
157
- _headers=_headers,
158
- _host_index=_host_index
159
- )
160
-
161
- _response_types_map: Dict[str, Optional[str]] = {
162
- '200': "ReportingDailyMetricsResponse",
163
- '400': "ReportingDailyMetricsResponse",
164
- }
165
- response_data = self.api_client.call_api(
166
- *_param,
167
- _request_timeout=_request_timeout
168
- )
169
- response_data.read()
170
- return self.api_client.response_deserialize(
171
- response_data=response_data,
172
- response_types_map=_response_types_map,
173
- )
174
-
175
-
176
- @validate_call
177
- def api_v1_reporting_daily_rollup_post_without_preload_content(
178
- self,
179
- request: Annotated[ReportingQuery, Field(description="Body")],
180
- _request_timeout: Union[
181
- None,
182
- Annotated[StrictFloat, Field(gt=0)],
183
- Tuple[
184
- Annotated[StrictFloat, Field(gt=0)],
185
- Annotated[StrictFloat, Field(gt=0)]
186
- ]
187
- ] = None,
188
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
189
- _content_type: Optional[StrictStr] = None,
190
- _headers: Optional[Dict[StrictStr, Any]] = None,
191
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
192
- ) -> RESTResponseType:
193
- """Get Daily Metrics for Client by Persona
194
-
195
-
196
- :param request: Body (required)
197
- :type request: ReportingQuery
198
- :param _request_timeout: timeout setting for this request. If one
199
- number provided, it will be total request
200
- timeout. It can also be a pair (tuple) of
201
- (connection, read) timeouts.
202
- :type _request_timeout: int, tuple(int, int), optional
203
- :param _request_auth: set to override the auth_settings for an a single
204
- request; this effectively ignores the
205
- authentication in the spec for a single request.
206
- :type _request_auth: dict, optional
207
- :param _content_type: force content-type for the request.
208
- :type _content_type: str, Optional
209
- :param _headers: set to override the headers for a single
210
- request; this effectively ignores the headers
211
- in the spec for a single request.
212
- :type _headers: dict, optional
213
- :param _host_index: set to override the host_index for a single
214
- request; this effectively ignores the host_index
215
- in the spec for a single request.
216
- :type _host_index: int, optional
217
- :return: Returns the result object.
218
- """ # noqa: E501
219
-
220
- _param = self._api_v1_reporting_daily_rollup_post_serialize(
221
- request=request,
222
- _request_auth=_request_auth,
223
- _content_type=_content_type,
224
- _headers=_headers,
225
- _host_index=_host_index
226
- )
227
-
228
- _response_types_map: Dict[str, Optional[str]] = {
229
- '200': "ReportingDailyMetricsResponse",
230
- '400': "ReportingDailyMetricsResponse",
231
- }
232
- response_data = self.api_client.call_api(
233
- *_param,
234
- _request_timeout=_request_timeout
235
- )
236
- return response_data.response
237
-
238
-
239
- def _api_v1_reporting_daily_rollup_post_serialize(
240
- self,
241
- request,
242
- _request_auth,
243
- _content_type,
244
- _headers,
245
- _host_index,
246
- ) -> RequestSerialized:
247
-
248
- _host = None
249
-
250
- _collection_formats: Dict[str, str] = {
251
- }
252
-
253
- _path_params: Dict[str, str] = {}
254
- _query_params: List[Tuple[str, str]] = []
255
- _header_params: Dict[str, Optional[str]] = _headers or {}
256
- _form_params: List[Tuple[str, str]] = []
257
- _files: Dict[
258
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
259
- ] = {}
260
- _body_params: Optional[bytes] = None
261
-
262
- # process the path parameters
263
- # process the query parameters
264
- # process the header parameters
265
- # process the form parameters
266
- # process the body parameter
267
- if request is not None:
268
- _body_params = request
269
-
270
-
271
- # set the HTTP header `Accept`
272
- if 'Accept' not in _header_params:
273
- _header_params['Accept'] = self.api_client.select_header_accept(
274
- [
275
- 'application/json'
276
- ]
277
- )
278
-
279
-
280
- # authentication setting
281
- _auth_settings: List[str] = [
282
- 'ApiKeyAuth'
283
- ]
284
-
285
- return self.api_client.param_serialize(
286
- method='POST',
287
- resource_path='/api/v1/reporting/daily-rollup/',
288
- path_params=_path_params,
289
- query_params=_query_params,
290
- header_params=_header_params,
291
- body=_body_params,
292
- post_params=_form_params,
293
- files=_files,
294
- auth_settings=_auth_settings,
295
- collection_formats=_collection_formats,
296
- _host=_host,
297
- _request_auth=_request_auth
298
- )
299
-
300
-
@@ -1,95 +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, 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 ReportingDailyMetric(BaseModel):
26
- """
27
- ReportingDailyMetric
28
- """ # noqa: E501
29
- avg_lifetime_value: Optional[Union[StrictFloat, StrictInt]] = None
30
- persona_name: Optional[StrictStr] = None
31
- total_customers: Optional[StrictInt] = None
32
- total_orders: Optional[StrictInt] = None
33
- total_visits: Optional[StrictInt] = None
34
- __properties: ClassVar[List[str]] = ["avg_lifetime_value", "persona_name", "total_customers", "total_orders", "total_visits"]
35
-
36
- model_config = ConfigDict(
37
- populate_by_name=True,
38
- validate_assignment=True,
39
- protected_namespaces=(),
40
- )
41
-
42
-
43
- def to_str(self) -> str:
44
- """Returns the string representation of the model using alias"""
45
- return pprint.pformat(self.model_dump(by_alias=True))
46
-
47
- def to_json(self) -> str:
48
- """Returns the JSON representation of the model using alias"""
49
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
- return json.dumps(self.to_dict())
51
-
52
- @classmethod
53
- def from_json(cls, json_str: str) -> Optional[Self]:
54
- """Create an instance of ReportingDailyMetric from a JSON string"""
55
- return cls.from_dict(json.loads(json_str))
56
-
57
- def to_dict(self) -> Dict[str, Any]:
58
- """Return the dictionary representation of the model using alias.
59
-
60
- This has the following differences from calling pydantic's
61
- `self.model_dump(by_alias=True)`:
62
-
63
- * `None` is only added to the output dict for nullable fields that
64
- were set at model initialization. Other fields with value `None`
65
- are ignored.
66
- """
67
- excluded_fields: Set[str] = set([
68
- ])
69
-
70
- _dict = self.model_dump(
71
- by_alias=True,
72
- exclude=excluded_fields,
73
- exclude_none=True,
74
- )
75
- return _dict
76
-
77
- @classmethod
78
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
79
- """Create an instance of ReportingDailyMetric from a dict"""
80
- if obj is None:
81
- return None
82
-
83
- if not isinstance(obj, dict):
84
- return cls.model_validate(obj)
85
-
86
- _obj = cls.model_validate({
87
- "avg_lifetime_value": obj.get("avg_lifetime_value"),
88
- "persona_name": obj.get("persona_name"),
89
- "total_customers": obj.get("total_customers"),
90
- "total_orders": obj.get("total_orders"),
91
- "total_visits": obj.get("total_visits")
92
- })
93
- return _obj
94
-
95
-
@@ -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_daily_metric import ReportingDailyMetric
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ReportingDailyMetricsResponse(BaseModel):
27
- """
28
- ReportingDailyMetricsResponse
29
- """ # noqa: E501
30
- data: Optional[List[ReportingDailyMetric]] = None
31
- error: Optional[StrictStr] = None
32
- __properties: ClassVar[List[str]] = ["data", "error"]
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 ReportingDailyMetricsResponse 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 data (list)
74
- _items = []
75
- if self.data:
76
- for _item_data in self.data:
77
- if _item_data:
78
- _items.append(_item_data.to_dict())
79
- _dict['data'] = _items
80
- return _dict
81
-
82
- @classmethod
83
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of ReportingDailyMetricsResponse 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
- "data": [ReportingDailyMetric.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
93
- "error": obj.get("error")
94
- })
95
- return _obj
96
-
97
-
@@ -1,91 +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 ReportingQuery(BaseModel):
26
- """
27
- ReportingQuery
28
- """ # noqa: E501
29
- client_uid: Optional[StrictStr] = None
30
- end_date: Optional[StrictStr] = None
31
- start_date: Optional[StrictStr] = None
32
- __properties: ClassVar[List[str]] = ["client_uid", "end_date", "start_date"]
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 ReportingQuery 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
- return _dict
74
-
75
- @classmethod
76
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
- """Create an instance of ReportingQuery from a dict"""
78
- if obj is None:
79
- return None
80
-
81
- if not isinstance(obj, dict):
82
- return cls.model_validate(obj)
83
-
84
- _obj = cls.model_validate({
85
- "client_uid": obj.get("client_uid"),
86
- "end_date": obj.get("end_date"),
87
- "start_date": obj.get("start_date")
88
- })
89
- return _obj
90
-
91
-