brynq-sdk-meta4 1.0.1__tar.gz → 1.0.1.dev1__tar.gz
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.
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/PKG-INFO +1 -1
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/meta4.py +6 -6
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/schemas/employee.py +8 -7
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/PKG-INFO +1 -1
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/setup.py +1 -1
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/README.md +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/__init__.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/cost_centers.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/employees.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/jobs.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/schemas/__init__.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/schemas/cost_center.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/schemas/job.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/schemas/reference_enums.py +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/not-zip-safe +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/requires.txt +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/top_level.txt +0 -0
- {brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/setup.cfg +0 -0
|
@@ -25,11 +25,11 @@ class Meta4(BrynQ):
|
|
|
25
25
|
|
|
26
26
|
self.output_path = output_path
|
|
27
27
|
# SFTP client as a composition attribute
|
|
28
|
-
self.sftp = SFTP()
|
|
29
|
-
credentials = self.interfaces.credentials.get(system="meta-4", system_type=system_type)
|
|
30
|
-
credentials = credentials.get('data', credentials)
|
|
28
|
+
# self.sftp = SFTP()
|
|
29
|
+
# credentials = self.interfaces.credentials.get(system="meta-4", system_type=system_type)
|
|
30
|
+
# credentials = credentials.get('data', credentials)
|
|
31
31
|
|
|
32
|
-
self.sftp._set_credentials(credentials)
|
|
32
|
+
# self.sftp._set_credentials(credentials)
|
|
33
33
|
|
|
34
34
|
# Initialize entity classes
|
|
35
35
|
self.employees = Employees(self)
|
|
@@ -56,8 +56,8 @@ class Meta4(BrynQ):
|
|
|
56
56
|
})
|
|
57
57
|
|
|
58
58
|
# Print invalid data count
|
|
59
|
-
if invalid_data:
|
|
60
|
-
|
|
59
|
+
# if invalid_data:
|
|
60
|
+
# print(f" {len(invalid_data)} lines of {schema.__name__} data validation failed:")
|
|
61
61
|
|
|
62
62
|
# Convert to DataFrame
|
|
63
63
|
df = pd.DataFrame(valid_data)
|
|
@@ -65,7 +65,7 @@ class EmployeeSchema(BaseModel):
|
|
|
65
65
|
street_type: Optional[StreetType] = Field(None, description="Tipo vía", example=StreetType.CALLE, alias="TIPO VÍA")
|
|
66
66
|
send_mail: Optional[Literal["0"]] = Field(None, description="Enviar correo", example="0", alias="ENVIAR CORREO")
|
|
67
67
|
employee_address: Optional[str] = Field(None, description="Dirección del empleado", example="Calle Mayor", alias="DIRECCIÓN DEL EMPLEADO")
|
|
68
|
-
street_number: Optional[
|
|
68
|
+
street_number: Optional[str] = Field(None, description="Número", example="123", alias="NÚMERO")
|
|
69
69
|
building: Optional[str] = Field(None, description="Bloque", example="A", alias="BLOQUE")
|
|
70
70
|
staircase: Optional[str] = Field(None, description="Escalera", example="1", alias="ESCALERA")
|
|
71
71
|
floor: Optional[str] = Field(None, description="Piso", example="2", alias="PISO")
|
|
@@ -100,7 +100,7 @@ class EmployeeSchema(BaseModel):
|
|
|
100
100
|
ss_agreement: Optional[str] = Field(None, description="Convenio S.S.", example="", alias="CONVENIO S.S.")
|
|
101
101
|
multi_employee_number: Optional[str] = Field(None, description="Número pluriempleado", example="", alias="NÚMERO PLURIEMPLEADO")
|
|
102
102
|
legal_contract: Optional[str] = Field(None, description="Contrato legal", example="", alias="CONTRATO LEGAL")
|
|
103
|
-
internal_contract: Optional[
|
|
103
|
+
internal_contract: Optional[str] = Field(None, description="Contrato interno", example=ContractType.REGULAR_INDEFINITE_FULL_TIME, alias="CONTRATO INTERNO")
|
|
104
104
|
contract_end_date: Optional[datetime] = Field(None, description="Fecha fin contrato", example="2024-12-31", alias="FECHA FIN CONTRATO")
|
|
105
105
|
labor_relationship: Optional[LaborRelationshipType] = Field(None, description="Relación laboral", example=LaborRelationshipType.HIGH_MANAGEMENT_PERSONNEL, alias="RELACIÓN LABORAL")
|
|
106
106
|
part_time_percentage: Optional[float] = Field(None, ge=0, le=100, description="% Jornada parcial", example=50.0, alias="% JORNADA PARCIAL")
|
|
@@ -198,14 +198,15 @@ class EmployeeSchema(BaseModel):
|
|
|
198
198
|
|
|
199
199
|
elif self.movement_type == MovementType.ALTA:
|
|
200
200
|
# For ALTA (1), all basic employee information is mandatory
|
|
201
|
+
# removed: ['document_type', 'birth_country', 'document_number', 'ss_province', 'ss_number', 'ss_check_digit',
|
|
202
|
+
# 'second_surname']
|
|
201
203
|
mandatory_fields_alta = [
|
|
202
|
-
'effective_date', 'person_id', 'first_surname',
|
|
203
|
-
'employee_name', '
|
|
204
|
-
'nationality', '
|
|
204
|
+
'effective_date', 'person_id', 'first_surname',
|
|
205
|
+
'employee_name', 'birth_date',
|
|
206
|
+
'nationality', 'gender', 'location_type', 'street_type',
|
|
205
207
|
'employee_address', 'street_number', 'postal_code', 'company', 'job',
|
|
206
208
|
'organizational_unit', 'work_location', 'cost_center', 'start_reason',
|
|
207
|
-
'employee_type', 'has_ss_number', '
|
|
208
|
-
'ss_check_digit', 'internal_contract', 'reduction_percentage',
|
|
209
|
+
'employee_type', 'has_ss_number', 'internal_contract', 'reduction_percentage',
|
|
209
210
|
'reduction_reason', 'additional_clause', 'adjustment_type', 'agreement',
|
|
210
211
|
'category', 'salary_type', 'irpf_type', 'irpf_status', 'payment_type',
|
|
211
212
|
'company_bank', 'bank_branch', 'account_number', 'check_digit',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4/schemas/reference_enums.py
RENAMED
|
File without changes
|
|
File without changes
|
{brynq_sdk_meta4-1.0.1 → brynq_sdk_meta4-1.0.1.dev1}/brynq_sdk_meta4.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|