neurograph-core 1.202509071925__py3-none-any.whl → 1.202509160244__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 +295 -43
- neurograph/v1/api/__init__.py +28 -2
- neurograph/v1/api/client_api.py +541 -0
- neurograph/v1/api/knowledge_api.py +2281 -124
- neurograph/v1/api/knowledge_extract_api.py +1798 -0
- neurograph/v1/api_client.py +4 -1
- neurograph/v1/models/__init__.py +215 -21
- neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
- neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
- neurograph/v1/models/{atlas_atlas_version_response.py → client_client_url_snapshot_row.py} +20 -22
- neurograph/v1/models/client_client_urls_response.py +3 -3
- neurograph/v1/models/{organizations_organization_set_atlas_response.py → client_probe.py} +22 -16
- neurograph/v1/models/client_probe_todo_row.py +89 -0
- neurograph/v1/models/client_trigger_probe_response.py +101 -0
- neurograph/v1/models/db_knowledge_customer.py +97 -0
- neurograph/v1/models/db_knowledge_order.py +177 -0
- neurograph/v1/models/db_knowledge_product.py +107 -0
- neurograph/v1/models/{atlas_atlas_version_upsert_request.py → db_knowledge_store.py} +16 -12
- neurograph/v1/models/knowledge_assertion.py +111 -0
- neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
- neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
- neurograph/v1/models/knowledge_assertion_query.py +99 -0
- neurograph/v1/models/{atlas_atlas_version_many_response.py → knowledge_assertion_response.py} +9 -13
- neurograph/v1/models/knowledge_customer_query.py +99 -0
- neurograph/v1/models/knowledge_customer_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
- neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
- neurograph/v1/models/{organizations_atlas_config.py → knowledge_enrichment_query.py} +19 -17
- neurograph/v1/models/{knowledge_knowledge_entity.py → knowledge_entity.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_request.py → knowledge_entity_create_request.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_create_response.py → knowledge_entity_create_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_extra.py → knowledge_entity_extra.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_get_many_response.py → knowledge_entity_get_many_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_in_db.py → knowledge_entity_in_db.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_relations.py → knowledge_entity_relations.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema.py → knowledge_entity_schema.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_row.py → knowledge_entity_schema_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_upsert_request.py → knowledge_entity_schema_upsert_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_response.py → knowledge_entity_schemas_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_upsert_response.py → knowledge_entity_schemas_upsert_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_type_row.py → knowledge_entity_type_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_create_request.py → knowledge_entity_upsert_request.py} +9 -11
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_row.py → knowledge_entity_upsert_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_request.py → knowledge_ingest_raw_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_response.py → knowledge_ingest_raw_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_kind_response.py → knowledge_kind_response.py} +4 -4
- neurograph/v1/models/knowledge_order_query.py +129 -0
- neurograph/v1/models/knowledge_order_response.py +103 -0
- neurograph/v1/models/knowledge_product_query.py +101 -0
- neurograph/v1/models/knowledge_product_response.py +103 -0
- neurograph/v1/models/{client_client_create_request.py → knowledge_store_query.py} +17 -15
- neurograph/v1/models/knowledge_store_response.py +103 -0
- neurograph/v1/models/{knowledge_knowledge_type_response.py → knowledge_type_response.py} +7 -7
- neurograph/v1/models/{tasks_sync_from_firebase_result.py → pgtype_int8.py} +10 -8
- neurograph/v1/models/pgtype_text.py +89 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/METADATA +2 -1
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/RECORD +63 -42
- neurograph/v1/api/atlas_api.py +0 -588
- neurograph/v1/api/tasks_api.py +0 -286
- neurograph/v1/models/atlas_atlas_version.py +0 -99
- neurograph/v1/models/organizations_organization_set_atlas_request.py +0 -93
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/top_level.txt +0 -0
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class KnowledgeEntitySchemasUpsertResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeEntitySchemasUpsertResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
schema_id: Optional[StrictStr] = None
|
|
@@ -51,7 +51,7 @@ class KnowledgeKnowledgeEntitySchemasUpsertResponse(BaseModel):
|
|
|
51
51
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of
|
|
54
|
+
"""Create an instance of KnowledgeEntitySchemasUpsertResponse from a JSON string"""
|
|
55
55
|
return cls.from_dict(json.loads(json_str))
|
|
56
56
|
|
|
57
57
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -76,7 +76,7 @@ class KnowledgeKnowledgeEntitySchemasUpsertResponse(BaseModel):
|
|
|
76
76
|
|
|
77
77
|
@classmethod
|
|
78
78
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
-
"""Create an instance of
|
|
79
|
+
"""Create an instance of KnowledgeEntitySchemasUpsertResponse from a dict"""
|
|
80
80
|
if obj is None:
|
|
81
81
|
return None
|
|
82
82
|
|
neurograph/v1/models/{knowledge_knowledge_entity_type_row.py → knowledge_entity_type_row.py}
RENAMED
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class KnowledgeEntityTypeRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeEntityTypeRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
id: Optional[StrictInt] = None
|
|
30
30
|
kind: Optional[StrictStr] = None
|
|
@@ -52,7 +52,7 @@ class KnowledgeKnowledgeEntityTypeRow(BaseModel):
|
|
|
52
52
|
|
|
53
53
|
@classmethod
|
|
54
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
-
"""Create an instance of
|
|
55
|
+
"""Create an instance of KnowledgeEntityTypeRow from a JSON string"""
|
|
56
56
|
return cls.from_dict(json.loads(json_str))
|
|
57
57
|
|
|
58
58
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -77,7 +77,7 @@ class KnowledgeKnowledgeEntityTypeRow(BaseModel):
|
|
|
77
77
|
|
|
78
78
|
@classmethod
|
|
79
79
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
-
"""Create an instance of
|
|
80
|
+
"""Create an instance of KnowledgeEntityTypeRow from a dict"""
|
|
81
81
|
if obj is None:
|
|
82
82
|
return None
|
|
83
83
|
|
|
@@ -17,19 +17,18 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.knowledge_entity_upsert_row import KnowledgeEntityUpsertRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class KnowledgeEntityUpsertRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
KnowledgeEntityUpsertRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
31
|
-
|
|
32
|
-
__properties: ClassVar[List[str]] = ["data", "foo"]
|
|
30
|
+
data: Optional[List[KnowledgeEntityUpsertRow]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["data"]
|
|
33
32
|
|
|
34
33
|
model_config = ConfigDict(
|
|
35
34
|
populate_by_name=True,
|
|
@@ -49,7 +48,7 @@ class KnowledgeKnowledgeEntityCreateRequest(BaseModel):
|
|
|
49
48
|
|
|
50
49
|
@classmethod
|
|
51
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of KnowledgeEntityUpsertRequest from a JSON string"""
|
|
53
52
|
return cls.from_dict(json.loads(json_str))
|
|
54
53
|
|
|
55
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -81,7 +80,7 @@ class KnowledgeKnowledgeEntityCreateRequest(BaseModel):
|
|
|
81
80
|
|
|
82
81
|
@classmethod
|
|
83
82
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
-
"""Create an instance of
|
|
83
|
+
"""Create an instance of KnowledgeEntityUpsertRequest from a dict"""
|
|
85
84
|
if obj is None:
|
|
86
85
|
return None
|
|
87
86
|
|
|
@@ -89,8 +88,7 @@ class KnowledgeKnowledgeEntityCreateRequest(BaseModel):
|
|
|
89
88
|
return cls.model_validate(obj)
|
|
90
89
|
|
|
91
90
|
_obj = cls.model_validate({
|
|
92
|
-
"data": [
|
|
93
|
-
"foo": obj.get("foo")
|
|
91
|
+
"data": [KnowledgeEntityUpsertRow.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
|
|
94
92
|
})
|
|
95
93
|
return _obj
|
|
96
94
|
|
neurograph/v1/models/{knowledge_knowledge_entity_upsert_row.py → knowledge_entity_upsert_row.py}
RENAMED
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class KnowledgeEntityUpsertRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeEntityUpsertRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
id: Optional[StrictInt] = None
|
|
30
30
|
kind: Optional[StrictStr] = None
|
|
@@ -50,7 +50,7 @@ class KnowledgeKnowledgeEntityUpsertRow(BaseModel):
|
|
|
50
50
|
|
|
51
51
|
@classmethod
|
|
52
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of
|
|
53
|
+
"""Create an instance of KnowledgeEntityUpsertRow from a JSON string"""
|
|
54
54
|
return cls.from_dict(json.loads(json_str))
|
|
55
55
|
|
|
56
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -75,7 +75,7 @@ class KnowledgeKnowledgeEntityUpsertRow(BaseModel):
|
|
|
75
75
|
|
|
76
76
|
@classmethod
|
|
77
77
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
-
"""Create an instance of
|
|
78
|
+
"""Create an instance of KnowledgeEntityUpsertRow from a dict"""
|
|
79
79
|
if obj is None:
|
|
80
80
|
return None
|
|
81
81
|
|
neurograph/v1/models/{knowledge_knowledge_ingest_raw_request.py → knowledge_ingest_raw_request.py}
RENAMED
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.knowledge_ingest_raw_row import KnowledgeIngestRawRow
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class KnowledgeIngestRawRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
KnowledgeIngestRawRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
data: Optional[List[KnowledgeIngestRawRow]] = None
|
|
31
31
|
__properties: ClassVar[List[str]] = ["data"]
|
|
@@ -48,7 +48,7 @@ class KnowledgeKnowledgeIngestRawRequest(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of KnowledgeIngestRawRequest from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -80,7 +80,7 @@ class KnowledgeKnowledgeIngestRawRequest(BaseModel):
|
|
|
80
80
|
|
|
81
81
|
@classmethod
|
|
82
82
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
-
"""Create an instance of
|
|
83
|
+
"""Create an instance of KnowledgeIngestRawRequest from a dict"""
|
|
84
84
|
if obj is None:
|
|
85
85
|
return None
|
|
86
86
|
|
neurograph/v1/models/{knowledge_knowledge_ingest_raw_response.py → knowledge_ingest_raw_response.py}
RENAMED
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.knowledge_err_entity_row import KnowledgeErrEntityRow
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class KnowledgeIngestRawResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
KnowledgeIngestRawResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
31
31
|
error_rows: Optional[List[KnowledgeErrEntityRow]] = None
|
|
@@ -51,7 +51,7 @@ class KnowledgeKnowledgeIngestRawResponse(BaseModel):
|
|
|
51
51
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of
|
|
54
|
+
"""Create an instance of KnowledgeIngestRawResponse from a JSON string"""
|
|
55
55
|
return cls.from_dict(json.loads(json_str))
|
|
56
56
|
|
|
57
57
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -83,7 +83,7 @@ class KnowledgeKnowledgeIngestRawResponse(BaseModel):
|
|
|
83
83
|
|
|
84
84
|
@classmethod
|
|
85
85
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
-
"""Create an instance of
|
|
86
|
+
"""Create an instance of KnowledgeIngestRawResponse from a dict"""
|
|
87
87
|
if obj is None:
|
|
88
88
|
return None
|
|
89
89
|
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class KnowledgeKindResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeKindResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
kinds: Optional[List[StrictStr]] = None
|
|
@@ -48,7 +48,7 @@ class KnowledgeKnowledgeKindResponse(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of KnowledgeKindResponse from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,7 +73,7 @@ class KnowledgeKnowledgeKindResponse(BaseModel):
|
|
|
73
73
|
|
|
74
74
|
@classmethod
|
|
75
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
-
"""Create an instance of
|
|
76
|
+
"""Create an instance of KnowledgeKindResponse from a dict"""
|
|
77
77
|
if obj is None:
|
|
78
78
|
return None
|
|
79
79
|
|
|
@@ -0,0 +1,129 @@
|
|
|
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, StrictInt, 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 KnowledgeOrderQuery(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
KnowledgeOrderQuery
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
billing_address_hash: Optional[StrictStr] = None
|
|
30
|
+
channel: Optional[StrictStr] = None
|
|
31
|
+
client_id: Optional[StrictStr] = Field(default=None, description="required")
|
|
32
|
+
currency: Optional[StrictStr] = None
|
|
33
|
+
customer_entity_id: Optional[StrictStr] = None
|
|
34
|
+
email_at_order: Optional[StrictStr] = None
|
|
35
|
+
ext_order_id: Optional[StrictStr] = None
|
|
36
|
+
ext_order_number: Optional[StrictStr] = None
|
|
37
|
+
ext_store_id: Optional[StrictStr] = None
|
|
38
|
+
financial_status: Optional[StrictStr] = None
|
|
39
|
+
fulfillment_status: Optional[StrictStr] = None
|
|
40
|
+
limit: Optional[StrictInt] = None
|
|
41
|
+
offset: Optional[StrictInt] = None
|
|
42
|
+
phone_at_order: Optional[StrictStr] = None
|
|
43
|
+
placed_from: Optional[StrictStr] = Field(default=None, description="raw string ISO-8601")
|
|
44
|
+
placed_to: Optional[StrictStr] = None
|
|
45
|
+
shipping_address_hash: Optional[StrictStr] = None
|
|
46
|
+
source_name: Optional[StrictStr] = None
|
|
47
|
+
status: Optional[StrictStr] = None
|
|
48
|
+
store_entity_id: Optional[StrictStr] = None
|
|
49
|
+
total_max: Optional[StrictStr] = None
|
|
50
|
+
total_min: Optional[StrictStr] = None
|
|
51
|
+
__properties: ClassVar[List[str]] = ["billing_address_hash", "channel", "client_id", "currency", "customer_entity_id", "email_at_order", "ext_order_id", "ext_order_number", "ext_store_id", "financial_status", "fulfillment_status", "limit", "offset", "phone_at_order", "placed_from", "placed_to", "shipping_address_hash", "source_name", "status", "store_entity_id", "total_max", "total_min"]
|
|
52
|
+
|
|
53
|
+
model_config = ConfigDict(
|
|
54
|
+
populate_by_name=True,
|
|
55
|
+
validate_assignment=True,
|
|
56
|
+
protected_namespaces=(),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def to_str(self) -> str:
|
|
61
|
+
"""Returns the string representation of the model using alias"""
|
|
62
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
63
|
+
|
|
64
|
+
def to_json(self) -> str:
|
|
65
|
+
"""Returns the JSON representation of the model using alias"""
|
|
66
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
67
|
+
return json.dumps(self.to_dict())
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
71
|
+
"""Create an instance of KnowledgeOrderQuery from a JSON string"""
|
|
72
|
+
return cls.from_dict(json.loads(json_str))
|
|
73
|
+
|
|
74
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
75
|
+
"""Return the dictionary representation of the model using alias.
|
|
76
|
+
|
|
77
|
+
This has the following differences from calling pydantic's
|
|
78
|
+
`self.model_dump(by_alias=True)`:
|
|
79
|
+
|
|
80
|
+
* `None` is only added to the output dict for nullable fields that
|
|
81
|
+
were set at model initialization. Other fields with value `None`
|
|
82
|
+
are ignored.
|
|
83
|
+
"""
|
|
84
|
+
excluded_fields: Set[str] = set([
|
|
85
|
+
])
|
|
86
|
+
|
|
87
|
+
_dict = self.model_dump(
|
|
88
|
+
by_alias=True,
|
|
89
|
+
exclude=excluded_fields,
|
|
90
|
+
exclude_none=True,
|
|
91
|
+
)
|
|
92
|
+
return _dict
|
|
93
|
+
|
|
94
|
+
@classmethod
|
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
96
|
+
"""Create an instance of KnowledgeOrderQuery from a dict"""
|
|
97
|
+
if obj is None:
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
if not isinstance(obj, dict):
|
|
101
|
+
return cls.model_validate(obj)
|
|
102
|
+
|
|
103
|
+
_obj = cls.model_validate({
|
|
104
|
+
"billing_address_hash": obj.get("billing_address_hash"),
|
|
105
|
+
"channel": obj.get("channel"),
|
|
106
|
+
"client_id": obj.get("client_id"),
|
|
107
|
+
"currency": obj.get("currency"),
|
|
108
|
+
"customer_entity_id": obj.get("customer_entity_id"),
|
|
109
|
+
"email_at_order": obj.get("email_at_order"),
|
|
110
|
+
"ext_order_id": obj.get("ext_order_id"),
|
|
111
|
+
"ext_order_number": obj.get("ext_order_number"),
|
|
112
|
+
"ext_store_id": obj.get("ext_store_id"),
|
|
113
|
+
"financial_status": obj.get("financial_status"),
|
|
114
|
+
"fulfillment_status": obj.get("fulfillment_status"),
|
|
115
|
+
"limit": obj.get("limit"),
|
|
116
|
+
"offset": obj.get("offset"),
|
|
117
|
+
"phone_at_order": obj.get("phone_at_order"),
|
|
118
|
+
"placed_from": obj.get("placed_from"),
|
|
119
|
+
"placed_to": obj.get("placed_to"),
|
|
120
|
+
"shipping_address_hash": obj.get("shipping_address_hash"),
|
|
121
|
+
"source_name": obj.get("source_name"),
|
|
122
|
+
"status": obj.get("status"),
|
|
123
|
+
"store_entity_id": obj.get("store_entity_id"),
|
|
124
|
+
"total_max": obj.get("total_max"),
|
|
125
|
+
"total_min": obj.get("total_min")
|
|
126
|
+
})
|
|
127
|
+
return _obj
|
|
128
|
+
|
|
129
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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.db_knowledge_order import DbKnowledgeOrder
|
|
23
|
+
from neurograph.v1.models.knowledge_order_query import KnowledgeOrderQuery
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class KnowledgeOrderResponse(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
KnowledgeOrderResponse
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
data: Optional[List[DbKnowledgeOrder]] = None
|
|
32
|
+
error: Optional[StrictStr] = None
|
|
33
|
+
query: Optional[KnowledgeOrderQuery] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["data", "error", "query"]
|
|
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 KnowledgeOrderResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in data (list)
|
|
76
|
+
_items = []
|
|
77
|
+
if self.data:
|
|
78
|
+
for _item_data in self.data:
|
|
79
|
+
if _item_data:
|
|
80
|
+
_items.append(_item_data.to_dict())
|
|
81
|
+
_dict['data'] = _items
|
|
82
|
+
# override the default output from pydantic by calling `to_dict()` of query
|
|
83
|
+
if self.query:
|
|
84
|
+
_dict['query'] = self.query.to_dict()
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of KnowledgeOrderResponse from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"data": [DbKnowledgeOrder.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
98
|
+
"error": obj.get("error"),
|
|
99
|
+
"query": KnowledgeOrderQuery.from_dict(obj["query"]) if obj.get("query") is not None else None
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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, StrictInt, 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 KnowledgeProductQuery(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
KnowledgeProductQuery
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
client_id: Optional[StrictStr] = None
|
|
30
|
+
handle: Optional[StrictStr] = None
|
|
31
|
+
limit: Optional[StrictInt] = None
|
|
32
|
+
offset: Optional[StrictInt] = None
|
|
33
|
+
product_hash: Optional[StrictStr] = None
|
|
34
|
+
product_id: Optional[StrictInt] = None
|
|
35
|
+
title: Optional[StrictStr] = None
|
|
36
|
+
type: Optional[StrictStr] = None
|
|
37
|
+
__properties: ClassVar[List[str]] = ["client_id", "handle", "limit", "offset", "product_hash", "product_id", "title", "type"]
|
|
38
|
+
|
|
39
|
+
model_config = ConfigDict(
|
|
40
|
+
populate_by_name=True,
|
|
41
|
+
validate_assignment=True,
|
|
42
|
+
protected_namespaces=(),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def to_str(self) -> str:
|
|
47
|
+
"""Returns the string representation of the model using alias"""
|
|
48
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
49
|
+
|
|
50
|
+
def to_json(self) -> str:
|
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
|
52
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
57
|
+
"""Create an instance of KnowledgeProductQuery from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
61
|
+
"""Return the dictionary representation of the model using alias.
|
|
62
|
+
|
|
63
|
+
This has the following differences from calling pydantic's
|
|
64
|
+
`self.model_dump(by_alias=True)`:
|
|
65
|
+
|
|
66
|
+
* `None` is only added to the output dict for nullable fields that
|
|
67
|
+
were set at model initialization. Other fields with value `None`
|
|
68
|
+
are ignored.
|
|
69
|
+
"""
|
|
70
|
+
excluded_fields: Set[str] = set([
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
return _dict
|
|
79
|
+
|
|
80
|
+
@classmethod
|
|
81
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
82
|
+
"""Create an instance of KnowledgeProductQuery from a dict"""
|
|
83
|
+
if obj is None:
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
if not isinstance(obj, dict):
|
|
87
|
+
return cls.model_validate(obj)
|
|
88
|
+
|
|
89
|
+
_obj = cls.model_validate({
|
|
90
|
+
"client_id": obj.get("client_id"),
|
|
91
|
+
"handle": obj.get("handle"),
|
|
92
|
+
"limit": obj.get("limit"),
|
|
93
|
+
"offset": obj.get("offset"),
|
|
94
|
+
"product_hash": obj.get("product_hash"),
|
|
95
|
+
"product_id": obj.get("product_id"),
|
|
96
|
+
"title": obj.get("title"),
|
|
97
|
+
"type": obj.get("type")
|
|
98
|
+
})
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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.db_knowledge_product import DbKnowledgeProduct
|
|
23
|
+
from neurograph.v1.models.knowledge_product_query import KnowledgeProductQuery
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class KnowledgeProductResponse(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
KnowledgeProductResponse
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
data: Optional[List[DbKnowledgeProduct]] = None
|
|
32
|
+
error: Optional[StrictStr] = None
|
|
33
|
+
query: Optional[KnowledgeProductQuery] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["data", "error", "query"]
|
|
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 KnowledgeProductResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in data (list)
|
|
76
|
+
_items = []
|
|
77
|
+
if self.data:
|
|
78
|
+
for _item_data in self.data:
|
|
79
|
+
if _item_data:
|
|
80
|
+
_items.append(_item_data.to_dict())
|
|
81
|
+
_dict['data'] = _items
|
|
82
|
+
# override the default output from pydantic by calling `to_dict()` of query
|
|
83
|
+
if self.query:
|
|
84
|
+
_dict['query'] = self.query.to_dict()
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of KnowledgeProductResponse from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"data": [DbKnowledgeProduct.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
98
|
+
"error": obj.get("error"),
|
|
99
|
+
"query": KnowledgeProductQuery.from_dict(obj["query"]) if obj.get("query") is not None else None
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|