validation requester updated
This commit is contained in:
parent
a61efdf473
commit
3c8ec13dfe
|
|
@ -2,6 +2,7 @@ from typing import Optional
|
|||
from api_validations.core_validations import BaseModelRegular
|
||||
from api_validations.validations_request import (
|
||||
PydanticBaseModel,
|
||||
PydanticBaseModelValidation,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
|
|
@ -58,16 +59,56 @@ class DecisionBookDecisionBookInvitationsAssign(BaseModelRegular, DecisionBookDe
|
|||
occupant_type_uu_id: str
|
||||
|
||||
|
||||
class DecisionBookDecisionBookInvitationsUpdate(PydanticBaseModel):
|
||||
class DecisionBookDecisionBookInvitationsUpdateValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"token": "Token",
|
||||
"occupant_type_uu_id": "Sakin Tipi UUID",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"token": "Token",
|
||||
"occupant_type_uu_id": "Occupant Type UUID",
|
||||
}
|
||||
|
||||
class DecisionBookDecisionBookInvitationsUpdate(PydanticBaseModel, DecisionBookDecisionBookInvitationsUpdateValidation):
|
||||
token: str
|
||||
occupant_type_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class ListDecisionBook(ListOptions):
|
||||
class ListDecisionBookValidation:
|
||||
tr = {
|
||||
"build_decision_book_uu_id": "Karar Defteri UUID",
|
||||
}
|
||||
en = {
|
||||
"build_decision_book_uu_id": "Decision Book UUID",
|
||||
}
|
||||
|
||||
class ListDecisionBook(ListOptions, ListDecisionBookValidation):
|
||||
build_decision_book_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class InsertDecisionBook(PydanticBaseModel):
|
||||
class InsertDecisionBookValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"build_uu_id": "Yapı UUID",
|
||||
"decision_type": "Karar Tipi",
|
||||
"meeting_date": "Toplantı Tarihi",
|
||||
"is_out_sourced": "Dış Kaynak mı?",
|
||||
"resp_company_fix_wage": "Firma Sabit Ücreti",
|
||||
"resp_company_uu_id": "Firma UUID",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"build_uu_id": "Build UUID",
|
||||
"decision_type": "Decision Type",
|
||||
"meeting_date": "Meeting Date",
|
||||
"is_out_sourced": "Is Out Sourced?",
|
||||
"resp_company_fix_wage": "Company Fixed Wage",
|
||||
"resp_company_uu_id": "Company UUID",
|
||||
}
|
||||
|
||||
class InsertDecisionBook(PydanticBaseModel, InsertDecisionBookValidation):
|
||||
build_uu_id: str
|
||||
decision_type: str
|
||||
meeting_date: str
|
||||
|
|
@ -77,12 +118,42 @@ class InsertDecisionBook(PydanticBaseModel):
|
|||
resp_company_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class InsertDecisionBookCompleted(BaseModelRegular):
|
||||
class InsertDecisionBookCompletedValidation:
|
||||
tr = {
|
||||
"build_decision_book_uu_id": "Karar Defteri UUID",
|
||||
"meeting_completed_date": "Toplantı Tamamlanma Tarihi",
|
||||
}
|
||||
en = {
|
||||
"build_decision_book_uu_id": "Decision Book UUID",
|
||||
"meeting_completed_date": "Meeting Completed Date",
|
||||
}
|
||||
|
||||
|
||||
class InsertDecisionBookCompleted(BaseModelRegular, InsertDecisionBookCompletedValidation):
|
||||
build_decision_book_uu_id: str
|
||||
meeting_completed_date: str
|
||||
|
||||
|
||||
class InsertDecisionBookPerson(BaseModelRegular):
|
||||
class InsertDecisionBookPersonValidation:
|
||||
tr = {
|
||||
"person_uu_id": "Kişi UUID",
|
||||
"build_decision_book_uu_id": "Karar Defteri UUID",
|
||||
"management_typecode_uu_id": "Yönetim Tipi UUID",
|
||||
"dues_discount_approval_date": "Aidat İndirim Onay Tarihi",
|
||||
"dues_fix_discount": "Aidat Sabit İndirim",
|
||||
"dues_percent_discount": "Aidat Yüzde İndirim",
|
||||
}
|
||||
en = {
|
||||
"person_uu_id": "Person UUID",
|
||||
"build_decision_book_uu_id": "Decision Book UUID",
|
||||
"management_typecode_uu_id": "Management Type UUID",
|
||||
"dues_discount_approval_date": "Dues Discount Approval Date",
|
||||
"dues_fix_discount": "Dues Fix Discount",
|
||||
"dues_percent_discount": "Dues Percent Discount",
|
||||
}
|
||||
|
||||
|
||||
class InsertDecisionBookPerson(BaseModelRegular, InsertDecisionBookPersonValidation):
|
||||
person_uu_id: str
|
||||
build_decision_book_uu_id: str
|
||||
management_typecode_uu_id: str
|
||||
|
|
@ -92,18 +163,67 @@ class InsertDecisionBookPerson(BaseModelRegular):
|
|||
dues_percent_discount: Optional[int] = None
|
||||
|
||||
|
||||
class UpdateDecisionBookPerson(PydanticBaseModel):
|
||||
class UpdateDecisionBookPersonValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"dues_fix_discount": "Aidat Sabit İndirim",
|
||||
"dues_percent_discount": "Aidat Yüzde İndirim",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"dues_fix_discount": "Dues Fix Discount",
|
||||
"dues_percent_discount": "Dues Percent Discount",
|
||||
}
|
||||
|
||||
|
||||
class UpdateDecisionBookPerson(PydanticBaseModel, UpdateDecisionBookPersonValidation):
|
||||
|
||||
dues_fix_discount: Optional[float] = None
|
||||
dues_percent_discount: Optional[int] = None
|
||||
|
||||
|
||||
class RemoveDecisionBookPerson(PydanticBaseModel):
|
||||
class RemoveDecisionBookPersonValidation:
|
||||
tr = {
|
||||
"person_uu_id": "Kişi UUID",
|
||||
"build_decision_book_person_uu_id": "Karar Defteri Kişi UUID",
|
||||
}
|
||||
en = {
|
||||
"person_uu_id": "Person UUID",
|
||||
"build_decision_book_person_uu_id": "Decision Book Person UUID",
|
||||
}
|
||||
|
||||
|
||||
class RemoveDecisionBookPerson(PydanticBaseModel, RemoveDecisionBookPersonValidation):
|
||||
person_uu_id: str
|
||||
build_decision_book_person_uu_id: str
|
||||
|
||||
|
||||
class UpdateDecisionBook(PydanticBaseModel):
|
||||
class UpdateDecisionBookValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"decision_book_pdf_path": "Karar Defteri PDF Yolu",
|
||||
"is_out_sourced": "Dış Kaynak mı?",
|
||||
"contact_agreement_path": "İletişim Anlaşma Yolu",
|
||||
"contact_agreement_date": "İletişim Anlaşma Tarihi",
|
||||
"meeting_date": "Toplantı Tarihi",
|
||||
"decision_type": "Karar Tipi",
|
||||
"resp_company_fix_wage": "Firma Sabit Ücreti",
|
||||
"resp_company_uu_id": "Firma UUID",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"decision_book_pdf_path": "Decision Book PDF Path",
|
||||
"is_out_sourced": "Is Out Sourced?",
|
||||
"contact_agreement_path": "Contact Agreement Path",
|
||||
"contact_agreement_date": "Contact Agreement Date",
|
||||
"meeting_date": "Meeting Date",
|
||||
"decision_type": "Decision Type",
|
||||
"resp_company_fix_wage": "Company Fixed Wage",
|
||||
"resp_company_uu_id": "Company UUID",
|
||||
}
|
||||
|
||||
|
||||
class UpdateDecisionBook(PydanticBaseModel, UpdateDecisionBookValidation):
|
||||
decision_book_pdf_path: Optional[str] = None
|
||||
is_out_sourced: Optional[bool] = None
|
||||
contact_agreement_path: Optional[str] = None
|
||||
|
|
@ -115,7 +235,32 @@ class UpdateDecisionBook(PydanticBaseModel):
|
|||
resp_company_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class InsertBuildDecisionBookItems(BaseModelRegular):
|
||||
class InsertBuildDecisionBookItemsValidation:
|
||||
tr = {
|
||||
"token": "Token",
|
||||
"info_type_uu_id": "Bilgi Tipi UUID",
|
||||
"item_comment": "Öğe Yorumu / Açıklama",
|
||||
"currency": "Para Birimi",
|
||||
"unit_type": "Birim Tipi",
|
||||
"debit_start_date": "Borç Başlangıç Tarihi",
|
||||
"debit_end_date": "Borç Bitiş Tarihi",
|
||||
"unit_price_is_fixed": "Birim Fiyat Sabit mi?",
|
||||
"unit_price": "Birim Fiyat",
|
||||
}
|
||||
en = {
|
||||
"token": "Token",
|
||||
"info_type_uu_id": "Info Type UUID",
|
||||
"item_comment": "Item Comment",
|
||||
"currency": "Currency",
|
||||
"unit_type": "Unit Type",
|
||||
"debit_start_date": "Debit Start Date",
|
||||
"debit_end_date": "Debit End Date",
|
||||
"unit_price_is_fixed": "Unit Price Is Fixed?",
|
||||
"unit_price": "Unit Price",
|
||||
}
|
||||
|
||||
|
||||
class InsertBuildDecisionBookItems(BaseModelRegular, InsertBuildDecisionBookItemsValidation):
|
||||
token: str
|
||||
info_type_uu_id: str
|
||||
item_comment: str
|
||||
|
|
@ -131,19 +276,57 @@ class InsertBuildDecisionBookItems(BaseModelRegular):
|
|||
# item_objection: Optional[str] = None
|
||||
|
||||
|
||||
class UpdateBuildDecisionBookItems(PydanticBaseModel):
|
||||
class UpdateBuildDecisionBookItemsValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"item_comment": "Öğe Yorumu / Açıklama",
|
||||
"item_objection": "Öğe İtirazı",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"item_comment": "Item Comment",
|
||||
"item_objection": "Item Objection",
|
||||
}
|
||||
|
||||
class UpdateBuildDecisionBookItems(PydanticBaseModel, UpdateBuildDecisionBookItemsValidation):
|
||||
item_comment: Optional[str] = None
|
||||
item_objection: Optional[str] = None
|
||||
|
||||
|
||||
class InsertBuildDecisionBookItemDebits(BaseModelRegular):
|
||||
class InsertBuildDecisionBookItemDebitsValidation:
|
||||
tr = {
|
||||
"build_decision_book_item_uu_id": "Karar Defteri Öğe UUID",
|
||||
"dues_values": "Aidat Değerleri",
|
||||
}
|
||||
en = {
|
||||
"build_decision_book_item_uu_id": "Decision Book Item UUID",
|
||||
"dues_values": "Dues Values",
|
||||
}
|
||||
|
||||
|
||||
class InsertBuildDecisionBookItemDebits(BaseModelRegular, InsertBuildDecisionBookItemDebitsValidation):
|
||||
build_decision_book_item_uu_id: str
|
||||
dues_values: dict
|
||||
# dues_types_uu_id: str
|
||||
# decision_taken: Optional[bool] = None
|
||||
|
||||
|
||||
class UpdateBuildDecisionBookItemDebits(PydanticBaseModel):
|
||||
class UpdateBuildDecisionBookItemDebitsValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"dues_types_uu_id": "Aidat Tipi UUID",
|
||||
"dues_values": "Aidat Değerleri",
|
||||
"decision_taken": "Karar Alındı mı?",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"dues_types_uu_id": "Dues Type UUID",
|
||||
"dues_values": "Dues Values",
|
||||
"decision_taken": "Decision Taken?",
|
||||
}
|
||||
|
||||
|
||||
class UpdateBuildDecisionBookItemDebits(PydanticBaseModel, UpdateBuildDecisionBookItemDebitsValidation):
|
||||
dues_types_uu_id: Optional[str] = None
|
||||
dues_values: Optional[dict] = None
|
||||
decision_taken: Optional[bool] = None
|
||||
|
|
|
|||
|
|
@ -2,11 +2,28 @@ from typing import Optional
|
|||
from api_validations.core_validations import BaseModelRegular
|
||||
from api_validations.validations_request import (
|
||||
PydanticBaseModel,
|
||||
PydanticBaseModelValidation,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
|
||||
class DepartmentsPydantic(PydanticBaseModel):
|
||||
class DepartmentsPydanticValidation:
|
||||
tr = {
|
||||
"department_code": "Department Kodu",
|
||||
"department_name": "Departman Adı",
|
||||
"department_description": "Departman Açıklaması",
|
||||
"company_uu_id": "Şirket UUID",
|
||||
"parent_department_uu_id": "Üst Departman UUID",
|
||||
}
|
||||
en = {
|
||||
"department_code": "Department Code",
|
||||
"department_name": "Department Name",
|
||||
"department_description": "Department Description",
|
||||
"company_uu_id": "Company UUID",
|
||||
"parent_department_uu_id": "Parent Department UUID",
|
||||
}
|
||||
|
||||
class DepartmentsPydantic(PydanticBaseModel, PydanticBaseModelValidation):
|
||||
|
||||
department_code: Optional[str]
|
||||
department_name: Optional[str]
|
||||
|
|
|
|||
|
|
@ -2,55 +2,175 @@ from typing import Optional
|
|||
from api_validations.core_validations import BaseModelRegular
|
||||
from api_validations.validations_request import (
|
||||
PydanticBaseModel,
|
||||
PydanticBaseModelValidation,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
|
||||
class BindEmployees2People(PydanticBaseModel):
|
||||
class BindEmployees2PeopleValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"staff_uu_id": "Kadro UUID",
|
||||
"people_uu_id": "Kişi UUID",
|
||||
"expiry_starts": "Başlangıç Tarihi",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"staff_uu_id": "Staff UUID",
|
||||
"people_uu_id": "People UUID",
|
||||
"expiry_starts": "Start Date",
|
||||
}
|
||||
|
||||
|
||||
class BindEmployees2People(PydanticBaseModel, BindEmployees2PeopleValidation):
|
||||
staff_uu_id: str
|
||||
people_uu_id: str
|
||||
expiry_starts: Optional[str] = None
|
||||
|
||||
|
||||
class UnBindEmployees2People(PydanticBaseModel):
|
||||
class UnBindEmployees2PeopleValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"people_uu_id": "Kişi UUID",
|
||||
"expiry_ends": "Bitiş Tarihi",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"people_uu_id": "People UUID",
|
||||
"expiry_ends": "End Date",
|
||||
}
|
||||
|
||||
|
||||
class UnBindEmployees2People(PydanticBaseModel, UnBindEmployees2PeopleValidation):
|
||||
people_uu_id: str
|
||||
expiry_ends: str
|
||||
|
||||
|
||||
class InsertEmployees(PydanticBaseModel):
|
||||
class InsertEmployeesValidation:
|
||||
tr = {
|
||||
"staff_uu_id": "Kadro UUID",
|
||||
"people_uu_id": "Kişi UUID",
|
||||
}
|
||||
en = {
|
||||
"staff_uu_id": "Staff UUID",
|
||||
"people_uu_id": "People UUID",
|
||||
}
|
||||
|
||||
|
||||
class InsertEmployees(BaseModelRegular, InsertEmployeesValidation):
|
||||
staff_uu_id: str
|
||||
people_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class InsertCompanyDuty(PydanticBaseModel):
|
||||
class InsertCompanyDutyValidation:
|
||||
tr = {
|
||||
"duty_code": "Görev Kodu",
|
||||
"duty_name": "Görev Adı",
|
||||
"duty_description": "Görev Açıklaması",
|
||||
}
|
||||
en = {
|
||||
"duty_code": "Duty Code",
|
||||
"duty_name": "Duty Name",
|
||||
"duty_description": "Duty Description",
|
||||
}
|
||||
|
||||
|
||||
class InsertCompanyDuty(BaseModelRegular, InsertCompanyDutyValidation):
|
||||
duty_code: str
|
||||
duty_name: str
|
||||
duty_description: Optional[str] = None
|
||||
|
||||
|
||||
class SelectDuties(PydanticBaseModel):
|
||||
class SelectDutiesValidation:
|
||||
tr = {
|
||||
"duty_uu_id": "Görev UUID",
|
||||
}
|
||||
en = {
|
||||
"duty_uu_id": "Duty UUID",
|
||||
}
|
||||
|
||||
class SelectDuties(BaseModelRegular, SelectDutiesValidation):
|
||||
duty_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class InsertDuties(PydanticBaseModel):
|
||||
class InsertDutiesValidation:
|
||||
tr = {
|
||||
"duties_uu_id": "Görev UUID",
|
||||
"department_uu_id": "Departman UUID",
|
||||
"is_default_duty": "Varsayılan Görev",
|
||||
}
|
||||
en = {
|
||||
"duties_uu_id": "Duty UUID",
|
||||
"department_uu_id": "Department UUID",
|
||||
"is_default_duty": "Default Duty",
|
||||
}
|
||||
|
||||
|
||||
class InsertDuties(BaseModelRegular, InsertDutiesValidation):
|
||||
duties_uu_id: str
|
||||
department_uu_id: str
|
||||
is_default_duty: Optional[bool] = False
|
||||
|
||||
|
||||
class UpdateDutiesValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"duties_uu_id": "Görev UUID",
|
||||
"department_uu_id": "Departman UUID",
|
||||
"is_default_duty": "Varsayılan Görev",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"duties_uu_id": "Duty UUID",
|
||||
"department_uu_id": "Department UUID",
|
||||
"is_default_duty": "Default Duty",
|
||||
}
|
||||
|
||||
class UpdateDuties(PydanticBaseModel):
|
||||
duties_uu_id: Optional[str] = None
|
||||
department_uu_id: Optional[str] = None
|
||||
is_default_duty: Optional[bool] = None
|
||||
|
||||
|
||||
class UpdateCompanyDutyValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"duty_code": "Görev Kodu",
|
||||
"duty_name": "Görev Adı",
|
||||
"duty_description": "Görev Açıklaması",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"duty_code": "Duty Code",
|
||||
"duty_name": "Duty Name",
|
||||
"duty_description": "Duty Description",
|
||||
}
|
||||
|
||||
|
||||
class UpdateCompanyDuty(PydanticBaseModel):
|
||||
duty_code: Optional[str] = None
|
||||
duty_name: Optional[str] = None
|
||||
duty_description: Optional[str] = None
|
||||
|
||||
|
||||
class InsertCompanyEmployeesSalaries(PydanticBaseModel):
|
||||
class InsertCompanyEmployeesSalariesValidation:
|
||||
tr = {
|
||||
"gross_salary": "Brüt Maaş",
|
||||
"net_salary": "Net Maaş",
|
||||
"start_date": "Başlangıç Tarihi",
|
||||
"stop_date": "Bitiş Tarihi",
|
||||
"people_id": "Kişi ID",
|
||||
}
|
||||
en = {
|
||||
"gross_salary": "Gross Salary",
|
||||
"net_salary": "Net Salary",
|
||||
"start_date": "Start Date",
|
||||
"stop_date": "Stop Date",
|
||||
"people_id": "People ID",
|
||||
}
|
||||
|
||||
|
||||
class InsertCompanyEmployeesSalaries(BaseModelRegular):
|
||||
gross_salary: float
|
||||
net_salary: float
|
||||
start_date: str
|
||||
|
|
@ -58,6 +178,25 @@ class InsertCompanyEmployeesSalaries(PydanticBaseModel):
|
|||
people_id: int
|
||||
|
||||
|
||||
class UpdateCompanyEmployeesSalariesValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"gross_salary": "Brüt Maaş",
|
||||
"net_salary": "Net Maaş",
|
||||
"start_date": "Başlangıç Tarihi",
|
||||
"stop_date": "Bitiş Tarihi",
|
||||
"people_id": "Kişi ID",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"gross_salary": "Gross Salary",
|
||||
"net_salary": "Net Salary",
|
||||
"start_date": "Start Date",
|
||||
"stop_date": "Stop Date",
|
||||
"people_id": "People ID",
|
||||
}
|
||||
|
||||
|
||||
class UpdateCompanyEmployeesSalaries(PydanticBaseModel):
|
||||
gross_salary: Optional[float] = None
|
||||
net_salary: Optional[float] = None
|
||||
|
|
@ -66,7 +205,23 @@ class UpdateCompanyEmployeesSalaries(PydanticBaseModel):
|
|||
people_id: Optional[int] = None
|
||||
|
||||
|
||||
class InsertCompanyEmployees(PydanticBaseModel):
|
||||
class InsertCompanyEmployeesValidation:
|
||||
tr = {
|
||||
"employee_description": "Çalışan Açıklaması",
|
||||
"person_uu_id": "Kişi UUID",
|
||||
"duty_uu_id": "Görev UUID",
|
||||
"start_date": "Başlangıç Tarihi",
|
||||
"stop_date": "Bitiş Tarihi",
|
||||
}
|
||||
en = {
|
||||
"employee_description": "Employee Description",
|
||||
"person_uu_id": "Person UUID",
|
||||
"duty_uu_id": "Duty UUID",
|
||||
"start_date": "Start Date",
|
||||
"stop_date": "Stop Date",
|
||||
}
|
||||
|
||||
class InsertCompanyEmployees(BaseModelRegular, InsertCompanyEmployeesValidation):
|
||||
|
||||
employee_description: Optional[str] = None
|
||||
person_uu_id: str
|
||||
|
|
@ -76,6 +231,18 @@ class InsertCompanyEmployees(PydanticBaseModel):
|
|||
stop_date: Optional[str] = None
|
||||
|
||||
|
||||
class UpdateCompanyEmployees(PydanticBaseModel):
|
||||
class UpdateCompanyEmployeesValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
"stop_date": "Bitiş Tarihi",
|
||||
"employee_description": "Çalışan Açıklaması",
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
"stop_date": "Stop Date",
|
||||
"employee_description": "Employee Description",
|
||||
}
|
||||
|
||||
class UpdateCompanyEmployees(PydanticBaseModel, UpdateCompanyEmployeesValidation):
|
||||
stop_date: Optional[str] = None
|
||||
employee_description: Optional[str] = None
|
||||
|
|
|
|||
|
|
@ -6,12 +6,36 @@ from api_validations.validations_request import (
|
|||
)
|
||||
|
||||
|
||||
class RegisterEvents2Employee(PydanticBaseModel):
|
||||
class RegisterEvents2EmployeeValidation:
|
||||
tr = {
|
||||
"event_uu_id_list": "Etkinlikler Listesi",
|
||||
"employee_uu_id": "Çalışan UU ID",
|
||||
}
|
||||
en = {
|
||||
"event_uu_id_list": "Event List",
|
||||
"employee_uu_id": "Employee UU ID",
|
||||
}
|
||||
|
||||
|
||||
class RegisterEvents2Employee(BaseModelRegular, RegisterEvents2EmployeeValidation):
|
||||
event_uu_id_list: list[str] = []
|
||||
employee_uu_id: Optional[str] = None
|
||||
|
||||
|
||||
class RegisterEvents2Occupant(PydanticBaseModel):
|
||||
class RegisterEvents2OccupantValidation:
|
||||
tr = {
|
||||
"event_uu_id_list": "Etkinlikler Listesi",
|
||||
"build_part_uu_id": "Bina Parça UU ID",
|
||||
"occupant_uu_id": "Apartman Sakini UU ID",
|
||||
}
|
||||
en = {
|
||||
"event_uu_id_list": "Event List",
|
||||
"build_part_uu_id": "Building Part UU ID",
|
||||
"occupant_uu_id": "Occupant UU ID",
|
||||
}
|
||||
|
||||
|
||||
class RegisterEvents2Occupant(BaseModelRegular, RegisterEvents2OccupantValidation):
|
||||
event_uu_id_list: list[str] = []
|
||||
build_part_uu_id: Optional[str] = None
|
||||
occupant_uu_id: Optional[str] = None
|
||||
|
|
|
|||
|
|
@ -5,12 +5,36 @@ from api_validations.validations_request import (
|
|||
)
|
||||
|
||||
|
||||
class RegisterModules2Occupant(BaseModelRegular):
|
||||
class RegisterModules2OccupantValidation:
|
||||
tr = {
|
||||
"modules_uu_id": "Modül Listesi",
|
||||
"occupant_uu_id": "Mülk Sahibi",
|
||||
"build_part_uu_id": "Daire UUID",
|
||||
}
|
||||
en = {
|
||||
"modules_uu_id": "Module List",
|
||||
"occupant_uu_id": "Occupant",
|
||||
"build_part_uu_id": "Flat UUID",
|
||||
}
|
||||
|
||||
|
||||
class RegisterModules2Occupant(BaseModelRegular, RegisterModules2OccupantValidation):
|
||||
modules_uu_id: str
|
||||
occupant_uu_id: str
|
||||
build_part_uu_id: str
|
||||
|
||||
|
||||
class RegisterModules2Employee(BaseModelRegular):
|
||||
class RegisterModules2EmployeeValidation:
|
||||
tr = {
|
||||
"modules_uu_id": "Modül Listesi",
|
||||
"employee_uu_id": "Çalışan",
|
||||
}
|
||||
en = {
|
||||
"modules_uu_id": "Module List",
|
||||
"employee_uu_id": "Employee",
|
||||
}
|
||||
|
||||
|
||||
class RegisterModules2Employee(BaseModelRegular, RegisterModules2EmployeeValidation):
|
||||
modules_uu_id: str
|
||||
employee_uu_id: str
|
||||
|
|
|
|||
|
|
@ -2,11 +2,28 @@ from typing import Optional
|
|||
from api_validations.core_validations import BaseModelRegular
|
||||
from api_validations.validations_request import (
|
||||
PydanticBaseModel,
|
||||
PydanticBaseModelValidation,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
class InsertPersonValidation:
|
||||
tr = {
|
||||
"firstname": "İsim",
|
||||
"surname": "Soyisim",
|
||||
"sex_code": "Cinsiyet",
|
||||
"national_identity_id": "T.C. Kimlik Numarası",
|
||||
"middle_name": "Orta İsim",
|
||||
"father_name": "Baba Adı",
|
||||
"mother_name": "Anne Adı",
|
||||
"country_code": "Ülke Kodu",
|
||||
"birth_place": "Doğum Yeri",
|
||||
"birth_date": "Doğum Tarihi",
|
||||
"tax_no": "Vergi Numarası",
|
||||
"ref_id": "Referans ID",
|
||||
}
|
||||
|
||||
class InsertPerson(BaseModelRegular):
|
||||
|
||||
class InsertPerson(BaseModelRegular, InsertPersonValidation):
|
||||
firstname: str
|
||||
surname: str
|
||||
sex_code: str
|
||||
|
|
@ -21,17 +38,17 @@ class InsertPerson(BaseModelRegular):
|
|||
ref_id: Optional[str] = None
|
||||
|
||||
|
||||
class ResponsePersonSalesMange(PydanticBaseModel):
|
||||
uu_id: str
|
||||
firstname: str
|
||||
surname: str
|
||||
national_identity_id: str
|
||||
birth_place: Optional[str] = None
|
||||
birth_date: Optional[str] = None
|
||||
tax_no: Optional[str] = None
|
||||
class UpdatePersonValidation:
|
||||
tr = {
|
||||
**PydanticBaseModelValidation.tr,
|
||||
**InsertPersonValidation.tr,
|
||||
}
|
||||
en = {
|
||||
**PydanticBaseModelValidation.en,
|
||||
**InsertPersonValidation.tr,
|
||||
}
|
||||
|
||||
|
||||
class UpdatePerson(PydanticBaseModel):
|
||||
class UpdatePerson(PydanticBaseModel, UpdatePersonValidation):
|
||||
firstname: Optional[str] = None
|
||||
surname: Optional[str] = None
|
||||
middle_name: Optional[str]
|
||||
|
|
|
|||
Loading…
Reference in New Issue