people endpoints and super user events built
This commit is contained in:
0
ApiServices/IdentityService/validations/__init__.py
Normal file
0
ApiServices/IdentityService/validations/__init__.py
Normal file
26
ApiServices/IdentityService/validations/lists/validations.py
Normal file
26
ApiServices/IdentityService/validations/lists/validations.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class ListOptions(BaseModel):
|
||||
"""
|
||||
Query for list option abilities
|
||||
"""
|
||||
|
||||
page: Optional[int] = 1
|
||||
size: Optional[int] = 10
|
||||
order_field: Optional[str] = "id"
|
||||
order_type: Optional[str] = "asc"
|
||||
# include_joins: Optional[list] = None
|
||||
query: Optional[dict] = None
|
||||
|
||||
|
||||
class PaginateOnly(BaseModel):
|
||||
"""
|
||||
Query for list option abilities
|
||||
"""
|
||||
|
||||
page: Optional[int] = 1
|
||||
size: Optional[int] = 10
|
||||
order_field: Optional[str] = "id"
|
||||
order_type: Optional[str] = "asc"
|
||||
@@ -0,0 +1,53 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
"""
|
||||
"sex_code": "M",
|
||||
"country_code": "TR",
|
||||
"created_at": "2025-04-13 10:03:32 +00:00",
|
||||
"father_name": "Father",
|
||||
"birth_place": "Ankara",
|
||||
"updated_credentials_token": null,
|
||||
"cryp_uu_id": null,
|
||||
"mother_name": "Mother",
|
||||
"expiry_starts": "2025-04-13 10:03:32 +00:00",
|
||||
"confirmed_credentials_token": null,
|
||||
"surname": "Karatay",
|
||||
"firstname": "Berkay Super User",
|
||||
"birth_date": "1990-01-07 00:00:00 +00:00",
|
||||
"expiry_ends": "2099-12-31 00:00:00 +00:00",
|
||||
"is_confirmed": true,
|
||||
"is_email_send": false,
|
||||
"tax_no": "1231231232",
|
||||
"person_ref": "",
|
||||
"active": true,
|
||||
"deleted": false,
|
||||
"updated_at": "2025-04-13 10:03:32 +00:00",
|
||||
"uu_id": "b5b6e68f-a4d0-4d64-aa18-634671cb1299",
|
||||
"middle_name": "",
|
||||
"created_credentials_token": null,
|
||||
"person_tag": "BSU-System",
|
||||
"is_notification_send": false
|
||||
"""
|
||||
|
||||
|
||||
class REQUESTAWMXNTKMGPPOJWRCTZUBADNFLQDBDYVQAORFAVCSXUUHEBQHCEPCSKFBADBODFDBPYKOVINV(
|
||||
BaseModel
|
||||
):
|
||||
uu_id: str
|
||||
created_at: str
|
||||
updated_at: str
|
||||
person_tag: str
|
||||
expiry_starts: str
|
||||
expiry_ends: str
|
||||
firstname: str
|
||||
middle_name: str
|
||||
surname: str
|
||||
birth_date: str
|
||||
birth_place: str
|
||||
sex_code: str
|
||||
country_code: str
|
||||
tax_no: str
|
||||
active: bool
|
||||
deleted: bool
|
||||
is_confirmed: bool
|
||||
is_notification_send: bool
|
||||
33
ApiServices/IdentityService/validations/user/validations.py
Normal file
33
ApiServices/IdentityService/validations/user/validations.py
Normal file
@@ -0,0 +1,33 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class FF7C859A068EB4583A47AB5924EC8C19A033881823FBA42EAAD089BF7AC8059CE(BaseModel):
|
||||
"""
|
||||
a13143ade48954c2ba3f86869e027de5b28c8a9b619bf4ef28264a8e375371601
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class F1B82565925FF4F5DAD2A36370788305A0A362E031EAC4A9E8BDFF4F35E265A6C(BaseModel):
|
||||
"""
|
||||
aa487ab3bfd9e4e6abc2db714ac6197f60bbc9068ac6541e7a815d5b1e969796b
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class F3117E7D66FE6471C8452B97AB504EF0C29822B6395CA4D65A18FDD563F0EC8D7(BaseModel):
|
||||
"""
|
||||
a1bf55a214b684438a97a47e4f097ac7ae27b0dff03c4475cbd4301e24a032aac
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class F33B4DE316B8A456480DD6ED5B5E2D35A2E6FCAF74BAC40D7A2970D318B153F85(BaseModel):
|
||||
"""
|
||||
F33B4DE316B8A456480DD6ED5B5E2D35A2E6FCAF74BAC40D7A2970D318B153F85
|
||||
"""
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user