brynq-sdk-factorial 2.3.0__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.
Files changed (41) hide show
  1. brynq_sdk_factorial/__init__.py +60 -0
  2. brynq_sdk_factorial/companies.py +76 -0
  3. brynq_sdk_factorial/compensations.py +80 -0
  4. brynq_sdk_factorial/contracts.py +50 -0
  5. brynq_sdk_factorial/costcenter.py +80 -0
  6. brynq_sdk_factorial/custom_fields.py +76 -0
  7. brynq_sdk_factorial/employees.py +57 -0
  8. brynq_sdk_factorial/family_situation.py +50 -0
  9. brynq_sdk_factorial/files.py +22 -0
  10. brynq_sdk_factorial/locations.py +49 -0
  11. brynq_sdk_factorial/payroll.py +54 -0
  12. brynq_sdk_factorial/schemas/attendance_schemas.py +264 -0
  13. brynq_sdk_factorial/schemas/banking_schemas.py +87 -0
  14. brynq_sdk_factorial/schemas/companies_schemas.py +29 -0
  15. brynq_sdk_factorial/schemas/contracts_schemas.py +395 -0
  16. brynq_sdk_factorial/schemas/documents_schemas.py +95 -0
  17. brynq_sdk_factorial/schemas/employee_updates_schemas.py +300 -0
  18. brynq_sdk_factorial/schemas/employees_schemas.py +187 -0
  19. brynq_sdk_factorial/schemas/expenses_schemas.py +144 -0
  20. brynq_sdk_factorial/schemas/family_situation.py +33 -0
  21. brynq_sdk_factorial/schemas/finance_schemas.py +433 -0
  22. brynq_sdk_factorial/schemas/holidays_schemas.py +21 -0
  23. brynq_sdk_factorial/schemas/job_catalog_schemas.py +35 -0
  24. brynq_sdk_factorial/schemas/locations_schemas.py +85 -0
  25. brynq_sdk_factorial/schemas/payroll_employees_schemas.py +33 -0
  26. brynq_sdk_factorial/schemas/payroll_integrations_base_schemas.py +27 -0
  27. brynq_sdk_factorial/schemas/payroll_schemas.py +92 -0
  28. brynq_sdk_factorial/schemas/project_management_schemas.py +192 -0
  29. brynq_sdk_factorial/schemas/shift_management_schemas.py +40 -0
  30. brynq_sdk_factorial/schemas/teams_schemas.py +57 -0
  31. brynq_sdk_factorial/schemas/time_planning_schemas.py +28 -0
  32. brynq_sdk_factorial/schemas/time_settings_schemas.py +29 -0
  33. brynq_sdk_factorial/schemas/timeoff_schemas.py +386 -0
  34. brynq_sdk_factorial/schemas/trainings_schemas.py +215 -0
  35. brynq_sdk_factorial/schemas/work_schedule_schemas.py +82 -0
  36. brynq_sdk_factorial/teams.py +76 -0
  37. brynq_sdk_factorial/workschedules.py +50 -0
  38. brynq_sdk_factorial-2.3.0.dist-info/METADATA +17 -0
  39. brynq_sdk_factorial-2.3.0.dist-info/RECORD +41 -0
  40. brynq_sdk_factorial-2.3.0.dist-info/WHEEL +5 -0
  41. brynq_sdk_factorial-2.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,300 @@
1
+ # Auto-generated schemas for category: employee_updates
2
+
3
+ import pandas as pd
4
+ import pandera as pa
5
+ from pandera.typing import Series, String, Int, Float, Bool, DateTime
6
+ import pandera.extensions as extensions
7
+ from brynq_sdk_functions import BrynQPanderaDataFrameModel
8
+ from typing import Optional, Annotated
9
+ from pydantic import BaseModel, Field, StringConstraints
10
+
11
+ class AbsencesGet(BrynQPanderaDataFrameModel):
12
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="id")
13
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="status")
14
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="employee_id")
15
+ employee_full_name: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="employee_full_name")
16
+ approved: Series[Bool] = pa.Field(coerce=True, nullable=True, description="", alias="approved")
17
+ description: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="description")
18
+ start_on: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="start_on")
19
+ prev_start_on: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="prev_start_on")
20
+ finish_on: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="finish_on")
21
+ prev_finish_on: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="prev_finish_on")
22
+ half_day: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="half_day")
23
+ leave_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="leave_type_id")
24
+ leave_type_name: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="leave_type_name")
25
+
26
+ class _Annotation:
27
+ primary_key = "id"
28
+ foreign_keys = {
29
+ "employee_id": {
30
+ "parent_schema": "EmployeesGet",
31
+ "parent_column": "id",
32
+ "cardinality": "N:1"
33
+ },
34
+ "leave_type_id": {
35
+ "parent_schema": "Leave_typesGet",
36
+ "parent_column": "id",
37
+ "cardinality": "N:1"
38
+ }
39
+ }
40
+
41
+ class Contract_changesGet(BrynQPanderaDataFrameModel):
42
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The id of the contract change incidence", alias="id")
43
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="The status of the contract change incidence", alias="status")
44
+ effective_on: Series[String] = pa.Field(coerce=True, nullable=False, description="The effective date of the contract", alias="effective_on")
45
+ starts_on: Series[String] = pa.Field(coerce=True, nullable=True, description="The start date of the contract", alias="starts_on")
46
+ ends_on: Series[String] = pa.Field(coerce=True, nullable=True, description="The end date of the contract", alias="ends_on")
47
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The employee id", alias="employee_id")
48
+ job_title: Series[String] = pa.Field(coerce=True, nullable=True, description="The job title on the contract change", alias="job_title")
49
+ job_role: Series[String] = pa.Field(coerce=True, nullable=True, description="The job role on the contract change", alias="job_role")
50
+ job_level: Series[String] = pa.Field(coerce=True, nullable=True, description="The job level on the contract change", alias="job_level")
51
+ has_payroll: Series[Bool] = pa.Field(coerce=True, nullable=False, description="The payrollable status of the employee on the contract change", alias="has_payroll")
52
+ salary_amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The salary amount on the contract change", alias="salary_amount")
53
+ salary_frequency: Series[String] = pa.Field(coerce=True, nullable=True, description="The salary payment frequency on the contract change", alias="salary_frequency")
54
+ working_week_days: Series[String] = pa.Field(coerce=True, nullable=True, description="The working week days on the contract change", alias="working_week_days")
55
+ working_hours: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The working hours on the contract change", alias="working_hours")
56
+ working_hours_frequency: Series[String] = pa.Field(coerce=True, nullable=True, description="The working hours frequency on the contract change", alias="working_hours_frequency")
57
+ country: Series[String] = pa.Field(coerce=True, nullable=True, description="The country on the contract change", alias="country")
58
+ es_has_teleworking_contract: Series[Bool] = pa.Field(coerce=True, nullable=True, description="The teleworking status on the contract change", alias="es_has_teleworking_contract")
59
+ es_cotization_group: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The cotization group on the contract change", alias="es_cotization_group")
60
+ es_contract_observations: Series[String] = pa.Field(coerce=True, nullable=True, description="The contract observations on the contract change", alias="es_contract_observations")
61
+ es_job_description: Series[String] = pa.Field(coerce=True, nullable=True, description="The job description on the contract change", alias="es_job_description")
62
+ es_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The contract type id on the contract change", alias="es_contract_type_id")
63
+ es_contract_type_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The contract type name on the contract change", alias="es_contract_type_name")
64
+ es_trial_period_ends_on: Series[String] = pa.Field(coerce=True, nullable=True, description="The trial period end date on the contract change", alias="es_trial_period_ends_on")
65
+ es_working_day_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The working day type id on the contract change", alias="es_working_day_type_id")
66
+ es_education_level_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The education level id on the contract change", alias="es_education_level_id")
67
+ es_professional_category_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The professional category id on the contract change", alias="es_professional_category_id")
68
+ fr_employee_type: Series[String] = pa.Field(coerce=True, nullable=True, description="The employee type on the contract change", alias="fr_employee_type")
69
+ fr_forfait_jours: Series[Bool] = pa.Field(coerce=True, nullable=False, description="The forfait jours status on the contract change", alias="fr_forfait_jours")
70
+ fr_jours_par_an: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The jours par an on the contract change", alias="fr_jours_par_an")
71
+ fr_coefficient: Series[String] = pa.Field(coerce=True, nullable=True, description="The coefficient on the contract change", alias="fr_coefficient")
72
+ fr_level_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The level id on the contract change", alias="fr_level_id")
73
+ fr_level_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The level name on the contract change", alias="fr_level_name")
74
+ fr_step_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The step id on the contract change", alias="fr_step_id")
75
+ fr_step_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The step name on the contract change", alias="fr_step_name")
76
+ fr_mutual_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The mutual id on the contract change", alias="fr_mutual_id")
77
+ fr_mutual_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The mutual name on the contract change", alias="fr_mutual_name")
78
+ fr_professional_category_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The professional category id on the contract change", alias="fr_professional_category_id")
79
+ fr_professional_category_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The professional category name on the contract change", alias="fr_professional_category_name")
80
+ fr_work_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The work type id on the contract change", alias="fr_work_type_id")
81
+ fr_work_type_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The work type name on the contract change", alias="fr_work_type_name")
82
+ compensation_ids: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="compensation_ids")
83
+ fr_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The contract type id on the contract change", alias="fr_contract_type_id")
84
+ fr_contract_type_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The contract type name on the contract change", alias="fr_contract_type_name")
85
+ de_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The contract type id on the contract change", alias="de_contract_type_id")
86
+ de_contract_type_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The contract type name on the contract change", alias="de_contract_type_name")
87
+ pt_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The contract type id on the contract change", alias="pt_contract_type_id")
88
+ pt_contract_type_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The contract type name on the contract change", alias="pt_contract_type_name")
89
+ created_at: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="created_at")
90
+ updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="updated_at")
91
+
92
+ class _Annotation:
93
+ primary_key = "id"
94
+ foreign_keys = {
95
+ "employee_id": {
96
+ "parent_schema": "EmployeesGet",
97
+ "parent_column": "id",
98
+ "cardinality": "N:1"
99
+ },
100
+ "es_contract_type_id": {
101
+ "parent_schema": "Spanish_contract_typesGet",
102
+ "parent_column": "id",
103
+ "cardinality": "N:1"
104
+ },
105
+ "es_education_level_id": {
106
+ "parent_schema": "Spanish_education_levelsGet",
107
+ "parent_column": "id",
108
+ "cardinality": "N:1"
109
+ },
110
+ "es_professional_category_id": {
111
+ "parent_schema": "Spanish_professional_categoriesGet",
112
+ "parent_column": "id",
113
+ "cardinality": "N:1"
114
+ },
115
+ "fr_level_id": {
116
+ "parent_schema": "French_levelSchema",
117
+ "parent_column": "id",
118
+ "cardinality": "N:1"
119
+ },
120
+ "fr_step_id": {
121
+ "parent_schema": "French_stepSchema",
122
+ "parent_column": "id",
123
+ "cardinality": "N:1"
124
+ },
125
+ "fr_mutual_id": {
126
+ "parent_schema": "French_mutualSchema",
127
+ "parent_column": "id",
128
+ "cardinality": "N:1"
129
+ },
130
+ "fr_professional_category_id": {
131
+ "parent_schema": "French_professional_categoriesGet",
132
+ "parent_column": "id",
133
+ "cardinality": "N:1"
134
+ },
135
+ "fr_work_type_id": {
136
+ "parent_schema": "French_work_typesGet",
137
+ "parent_column": "id",
138
+ "cardinality": "N:1"
139
+ },
140
+ "fr_contract_type_id": {
141
+ "parent_schema": "French_contract_typesGet",
142
+ "parent_column": "id",
143
+ "cardinality": "N:1"
144
+ },
145
+ "de_contract_type_id": {
146
+ "parent_schema": "German_contract_typesGet",
147
+ "parent_column": "id",
148
+ "cardinality": "N:1"
149
+ },
150
+ "pt_contract_type_id": {
151
+ "parent_schema": "Portuguese_contract_typesGet",
152
+ "parent_column": "id",
153
+ "cardinality": "N:1"
154
+ }
155
+ }
156
+
157
+ class New_hiresGet(BrynQPanderaDataFrameModel):
158
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The id of the new hire incidence", alias="id")
159
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="The status of the new hire incidence", alias="status")
160
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The employee id of the new hire", alias="employee_id")
161
+ first_name: Series[String] = pa.Field(coerce=True, nullable=False, description="name of the employee.", alias="first_name")
162
+ last_name: Series[String] = pa.Field(coerce=True, nullable=False, description="last name of the employee.", alias="last_name")
163
+ birth_name: Series[String] = pa.Field(coerce=True, nullable=True, description="The birth name of the new hire", alias="birth_name")
164
+ identifier: Series[String] = pa.Field(coerce=True, nullable=True, description="national identifier number.", alias="identifier")
165
+ identifier_type: Series[String] = pa.Field(coerce=True, nullable=True, description="type of identifier (ex passport).", alias="identifier_type")
166
+ payroll_identifier: Series[String] = pa.Field(coerce=True, nullable=True, description="payroll identifier.", alias="payroll_identifier")
167
+ work_email: Series[String] = pa.Field(coerce=True, nullable=True, description="personal email of the employee.", alias="work_email")
168
+ phone_number: Series[String] = pa.Field(coerce=True, nullable=True, description="phone number of the employee.", alias="phone_number")
169
+ gender: Series[String] = pa.Field(coerce=True, nullable=True, description="gender of the employee (male | female).", alias="gender")
170
+ job_title: Series[String] = pa.Field(coerce=True, nullable=True, description="job title of the employee.", alias="job_title")
171
+ address: Series[String] = pa.Field(coerce=True, nullable=False, description="address of the employee.", alias="address")
172
+ city: Series[String] = pa.Field(coerce=True, nullable=True, description="city of the employee.", alias="city")
173
+ country: Series[String] = pa.Field(coerce=True, nullable=True, description="country code of the employee (Spain ES, United Kingdom GB).", alias="country")
174
+ state: Series[String] = pa.Field(coerce=True, nullable=True, description="state/province/region of the employee.", alias="state")
175
+ postal_code: Series[String] = pa.Field(coerce=True, nullable=True, description="postal code of the employee.", alias="postal_code")
176
+ date_of_birth: Series[String] = pa.Field(coerce=True, nullable=True, description="birthday of the employee.", alias="date_of_birth")
177
+ nationality: Series[String] = pa.Field(coerce=True, nullable=True, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="nationality")
178
+ start_date: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="start_date")
179
+ contract_effective_date: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="contract_effective_date")
180
+ contract_end_date: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="contract_end_date")
181
+ bank_account: Series[String] = pa.Field(coerce=True, nullable=True, description="bank account number of the employee.", alias="bank_account")
182
+ salary_amount_in_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="salary amount in cents.", alias="salary_amount_in_cents")
183
+ salary_frequency: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="salary_frequency")
184
+ working_hours: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="working_hours")
185
+ working_hours_frequency: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="working_hours_frequency")
186
+ social_security_number: Series[String] = pa.Field(coerce=True, nullable=True, description="social security number of the employee.", alias="social_security_number")
187
+ manager_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="manager id of the employee, you can get the manager id from employees endpoint.", alias="manager_id")
188
+ tax_id: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="tax_id")
189
+ legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The legal entity id of the new hire", alias="legal_entity_id")
190
+ workplace_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="workplace id of the employee.", alias="workplace_id")
191
+
192
+ class _Annotation:
193
+ primary_key = "id"
194
+ foreign_keys = {
195
+ "employee_id": {
196
+ "parent_schema": "EmployeesGet",
197
+ "parent_column": "id",
198
+ "cardinality": "N:1"
199
+ },
200
+ "manager_id": {
201
+ "parent_schema": "EmployeesGet",
202
+ "parent_column": "id",
203
+ "cardinality": "N:1"
204
+ },
205
+ "legal_entity_id": {
206
+ "parent_schema": "Legal_entitiesGet",
207
+ "parent_column": "id",
208
+ "cardinality": "N:1"
209
+ },
210
+ "workplace_id": {
211
+ "parent_schema": "LocationsGet",
212
+ "parent_column": "id",
213
+ "cardinality": "N:1"
214
+ }
215
+ }
216
+
217
+ class Personal_changesGet(BrynQPanderaDataFrameModel):
218
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The id of the new hire incidence", alias="id")
219
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="The status of the new hire incidence", alias="status")
220
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The employee id of the new hire", alias="employee_id")
221
+ work_email: Series[String] = pa.Field(coerce=True, nullable=True, description="personal email of the employee.", alias="work_email")
222
+ phone_number: Series[String] = pa.Field(coerce=True, nullable=True, description="phone number of the employee.", alias="phone_number")
223
+ identifier_type: Series[String] = pa.Field(coerce=True, nullable=True, description="type of identifier (ex passport).", alias="identifier_type")
224
+ identifier: Series[String] = pa.Field(coerce=True, nullable=True, description="national identifier number.", alias="identifier")
225
+ social_security_number: Series[String] = pa.Field(coerce=True, nullable=True, description="social security number of the employee.", alias="social_security_number")
226
+ tax_id: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="tax_id")
227
+ first_name: Series[String] = pa.Field(coerce=True, nullable=False, description="name of the employee.", alias="first_name")
228
+ last_name: Series[String] = pa.Field(coerce=True, nullable=False, description="last name of the employee.", alias="last_name")
229
+ gender: Series[String] = pa.Field(coerce=True, nullable=True, description="gender of the employee (male | female).", alias="gender")
230
+ date_of_birth: Series[String] = pa.Field(coerce=True, nullable=True, description="birthday of the employee.", alias="date_of_birth")
231
+ nationality: Series[String] = pa.Field(coerce=True, nullable=True, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="nationality")
232
+ address_line_1: Series[String] = pa.Field(coerce=True, nullable=True, description="address line 1 of the employee.", alias="address_line_1")
233
+ address_line_2: Series[String] = pa.Field(coerce=True, nullable=True, description="address line 1 of the employee.", alias="address_line_2")
234
+ postal_code: Series[String] = pa.Field(coerce=True, nullable=True, description="postal code of the employee.", alias="postal_code")
235
+ city: Series[String] = pa.Field(coerce=True, nullable=True, description="city of the employee.", alias="city")
236
+ state: Series[String] = pa.Field(coerce=True, nullable=True, description="state/province/region of the employee.", alias="state")
237
+ country: Series[String] = pa.Field(coerce=True, nullable=True, description="country code of the employee (Spain ES, United Kingdom GB).", alias="country")
238
+ bank_number: Series[String] = pa.Field(coerce=True, nullable=True, description="bank account number of the employee.", alias="bank_number")
239
+ job_title: Series[String] = pa.Field(coerce=True, nullable=True, description="job title of the employee.", alias="job_title")
240
+ workplace_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="workplace id of the employee.", alias="workplace_id")
241
+
242
+ class _Annotation:
243
+ primary_key = "id"
244
+ foreign_keys = {
245
+ "employee_id": {
246
+ "parent_schema": "EmployeesGet",
247
+ "parent_column": "id",
248
+ "cardinality": "N:1"
249
+ },
250
+ "workplace_id": {
251
+ "parent_schema": "LocationsGet",
252
+ "parent_column": "id",
253
+ "cardinality": "N:1"
254
+ }
255
+ }
256
+
257
+ class TerminationsGet(BrynQPanderaDataFrameModel):
258
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="id")
259
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="status")
260
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="employee_id")
261
+ terminated_on: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="terminated_on")
262
+ termination_reason: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="termination_reason")
263
+ termination_observations: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="termination_observations")
264
+ legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="legal_entity_id")
265
+ remaining_holidays: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="remaining_holidays")
266
+ termination_reason_type: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="termination_reason_type")
267
+ termination_type_description: Series[String] = pa.Field(coerce=True, nullable=True, description="The description of the termination type.", alias="termination_type_description")
268
+
269
+ class _Annotation:
270
+ primary_key = "id"
271
+ foreign_keys = {
272
+ "employee_id": {
273
+ "parent_schema": "EmployeesGet",
274
+ "parent_column": "id",
275
+ "cardinality": "N:1"
276
+ },
277
+ "legal_entity_id": {
278
+ "parent_schema": "Legal_entitiesGet",
279
+ "parent_column": "id",
280
+ "cardinality": "N:1"
281
+ }
282
+ }
283
+
284
+ class AbsencesDelete(BaseModel):
285
+ id: int = Field(..., description="ID", alias="id")
286
+
287
+ class Contract_changesDelete(BaseModel):
288
+ id: int = Field(..., description="ID", alias="id")
289
+
290
+ class New_hiresDelete(BaseModel):
291
+ id: int = Field(..., description="ID", alias="id")
292
+
293
+ class Personal_changesDelete(BaseModel):
294
+ id: int = Field(..., description="ID", alias="id")
295
+
296
+ class SummariesDelete(BaseModel):
297
+ id: int = Field(..., description="ID", alias="id")
298
+
299
+ class TerminationsDelete(BaseModel):
300
+ id: int = Field(..., description="ID", alias="id")
@@ -0,0 +1,187 @@
1
+ # Auto-generated schemas for category: employees
2
+
3
+ import pandas as pd
4
+ import pandera as pa
5
+ from pandera.typing import Series, String, Int, Float, Bool, DateTime
6
+ import pandera.extensions as extensions
7
+ from brynq_sdk_functions import BrynQPanderaDataFrameModel
8
+ from typing import Optional, Annotated
9
+ from pydantic import BaseModel, Field, StringConstraints
10
+
11
+ class EmployeesGet(BrynQPanderaDataFrameModel):
12
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="id of the employee.", alias="id")
13
+ access_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="access_id associated to the employee.", alias="access_id")
14
+ first_name: Series[String] = pa.Field(coerce=True, nullable=False, description="name of the employee.", alias="first_name")
15
+ last_name: Series[String] = pa.Field(coerce=True, nullable=False, description="last name of the employee.", alias="last_name")
16
+ full_name: Series[String] = pa.Field(coerce=True, nullable=False, description="full name of the employee.", alias="full_name")
17
+ preferred_name: Series[String] = pa.Field(coerce=True, nullable=True, description="nickname of the employee or a name that defines the employee better.", alias="preferred_name")
18
+ birth_name: Series[String] = pa.Field(coerce=True, nullable=True, description="Birthname of the employee.", alias="birth_name")
19
+ gender: Series[String] = pa.Field(coerce=True, nullable=True, description="gender of the employee (male | female).", alias="gender")
20
+ identifier: Series[String] = pa.Field(coerce=True, nullable=True, description="national identifier number.", alias="identifier")
21
+ identifier_type: Series[String] = pa.Field(coerce=True, nullable=True, description="type of identifier (ex passport).", alias="identifier_type")
22
+ email: Series[String] = pa.Field(coerce=True, nullable=True, description="personal email of the employee.", alias="email")
23
+ login_email: Series[String] = pa.Field(coerce=True, nullable=True, description="email associated to the session.", alias="login_email")
24
+ birthday_on: Series[String] = pa.Field(coerce=True, nullable=True, description="birthday of the employee.", alias="birthday_on")
25
+ nationality: Series[String] = pa.Field(coerce=True, nullable=True, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="nationality")
26
+ address_line_1: Series[String] = pa.Field(coerce=True, nullable=True, description="address of the employee.", alias="address_line_1")
27
+ address_line_2: Series[String] = pa.Field(coerce=True, nullable=True, description="secondary address of the employee.", alias="address_line_2")
28
+ postal_code: Series[String] = pa.Field(coerce=True, nullable=True, description="postal code of the employee.", alias="postal_code")
29
+ city: Series[String] = pa.Field(coerce=True, nullable=True, description="city of the employee.", alias="city")
30
+ state: Series[String] = pa.Field(coerce=True, nullable=True, description="state/province/region of the employee.", alias="state")
31
+ country: Series[String] = pa.Field(coerce=True, nullable=True, description="country code of the employee (Spain ES, United Kingdom GB).", alias="country")
32
+ bank_number: Series[String] = pa.Field(coerce=True, nullable=True, description="bank account number of the employee.", alias="bank_number")
33
+ swift_bic: Series[String] = pa.Field(coerce=True, nullable=True, description="code to identify banks and financial institutions globally.", alias="swift_bic")
34
+ bank_number_format: Series[String] = pa.Field(coerce=True, nullable=True, description="bank number format.", alias="bank_number_format")
35
+ company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="id of the company to which the employee belongs (not editable).", alias="company_id")
36
+ legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="legal entity of the employee, references to companies/legal_entities.", alias="legal_entity_id")
37
+ location_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="location id of the employee, references to locations/locations.", alias="location_id")
38
+ created_at: Series[String] = pa.Field(coerce=True, nullable=False, description="creation date of the employee.", alias="created_at")
39
+ updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="date of last modification of the employee", alias="updated_at")
40
+ social_security_number: Series[String] = pa.Field(coerce=True, nullable=True, description="social security number of the employee.", alias="social_security_number")
41
+ is_terminating: Series[Bool] = pa.Field(coerce=True, nullable=False, description="is the employee being terminated?", alias="is_terminating")
42
+ terminated_on: Series[String] = pa.Field(coerce=True, nullable=True, description="termination date of the employee.", alias="terminated_on")
43
+ termination_reason_type: Series[String] = pa.Field(coerce=True, nullable=True, description="termination reason type of the employee", alias="termination_reason_type")
44
+ termination_reason: Series[String] = pa.Field(coerce=True, nullable=True, description="A reason for the termination.", alias="termination_reason")
45
+ termination_observations: Series[String] = pa.Field(coerce=True, nullable=True, description="observations about the termination.", alias="termination_observations")
46
+ manager_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="manager id of the employee, you can get the manager id from employees endpoint.", alias="manager_id")
47
+ timeoff_manager_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Timeoff manager id of the employee.", alias="timeoff_manager_id")
48
+ phone_number: Series[String] = pa.Field(coerce=True, nullable=True, description="phone number of the employee.", alias="phone_number")
49
+ company_identifier: Series[String] = pa.Field(coerce=True, nullable=True, description="identity number or string used inside a company to internally identify the employee.", alias="company_identifier")
50
+ age_number: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="age of the employee.", alias="age_number")
51
+ termination_type_description: Series[String] = pa.Field(coerce=True, nullable=True, description="The description of the termination type.", alias="termination_type_description")
52
+ contact_name: Series[String] = pa.Field(coerce=True, nullable=True, description="name of the employee contact.", alias="contact_name")
53
+ contact_number: Series[String] = pa.Field(coerce=True, nullable=True, description="phone number of the employee contact .", alias="contact_number")
54
+ personal_email: Series[String] = pa.Field(coerce=True, nullable=True, description="personal email of the employee.", alias="personal_email")
55
+ seniority_calculation_date: Series[String] = pa.Field(coerce=True, nullable=True, description="date since when the employee is working in the company.", alias="seniority_calculation_date")
56
+ pronouns: Series[String] = pa.Field(coerce=True, nullable=True, description="pronouns that an employee uses to define themselves.", alias="pronouns")
57
+ active: Series[Bool] = pa.Field(coerce=True, nullable=True, description="status of the employee, true when active, false when terminated.", alias="active")
58
+ disability_percentage_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="officially certified level of disability granted by public administration for individuals with physical or mental impairments, expressed in cents", alias="disability_percentage_cents")
59
+ identifier_expiration_date: Series[String] = pa.Field(coerce=True, nullable=True, description="identifier expiration date", alias="identifier_expiration_date")
60
+
61
+ class _Annotation:
62
+ primary_key = "id"
63
+ foreign_keys = {
64
+ "legal_entity_id": {
65
+ "parent_schema": "Legal_entitiesGet",
66
+ "parent_column": "id",
67
+ "cardinality": "N:1"
68
+ },
69
+ "location_id": {
70
+ "parent_schema": "LocationsGet",
71
+ "parent_column": "id",
72
+ "cardinality": "N:1"
73
+ },
74
+ "manager_id": {
75
+ "parent_schema": "EmployeesGet",
76
+ "parent_column": "id",
77
+ "cardinality": "N:1"
78
+ },
79
+ "timeoff_manager_id": {
80
+ "parent_schema": "EmployeesGet",
81
+ "parent_column": "id",
82
+ "cardinality": "N:1"
83
+ }
84
+ }
85
+
86
+ class EmployeesCreate(BaseModel):
87
+ id: int = Field(..., description="id of the employee.", alias="id")
88
+ access_id: int = Field(..., description="access_id associated to the employee.", alias="access_id")
89
+ first_name: str = Field(..., description="name of the employee.", alias="first_name")
90
+ last_name: str = Field(..., description="last name of the employee.", alias="last_name")
91
+ full_name: str = Field(..., description="full name of the employee.", alias="full_name")
92
+ preferred_name: Optional[str] = Field(None, description="nickname of the employee or a name that defines the employee better.", alias="preferred_name")
93
+ birth_name: Optional[str] = Field(None, description="Birthname of the employee.", alias="birth_name")
94
+ gender: Optional[str] = Field(None, description="gender of the employee (male | female).", alias="gender")
95
+ identifier: Optional[str] = Field(None, description="national identifier number.", alias="identifier")
96
+ identifier_type: Optional[str] = Field(None, description="type of identifier (ex passport).", alias="identifier_type")
97
+ email: Optional[str] = Field(None, description="personal email of the employee.", alias="email")
98
+ login_email: Optional[str] = Field(None, description="email associated to the session.", alias="login_email")
99
+ birthday_on: Optional[str] = Field(None, description="birthday of the employee.", alias="birthday_on")
100
+ nationality: Optional[str] = Field(None, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="nationality")
101
+ address_line_1: Optional[str] = Field(None, description="address of the employee.", alias="address_line_1")
102
+ address_line_2: Optional[str] = Field(None, description="secondary address of the employee.", alias="address_line_2")
103
+ postal_code: Optional[str] = Field(None, description="postal code of the employee.", alias="postal_code")
104
+ city: Optional[str] = Field(None, description="city of the employee.", alias="city")
105
+ state: Optional[str] = Field(None, description="state/province/region of the employee.", alias="state")
106
+ country: Optional[str] = Field(None, description="country code of the employee (Spain ES, United Kingdom GB).", alias="country")
107
+ bank_number: Optional[str] = Field(None, description="bank account number of the employee.", alias="bank_number")
108
+ swift_bic: Optional[str] = Field(None, description="code to identify banks and financial institutions globally.", alias="swift_bic")
109
+ bank_number_format: Optional[Annotated[str, StringConstraints(pattern=r'^iban|sort_code_and_account_number|routing_number_and_account_number|clabe|other|bank_name_and_account_number$', strip_whitespace=True)]] = Field(None, description="bank number format.", alias="bank_number_format")
110
+ company_id: int = Field(..., description="id of the company to which the employee belongs (not editable).", alias="company_id")
111
+ legal_entity_id: Optional[int] = Field(None, description="legal entity of the employee, references to companies/legal_entities.", alias="legal_entity_id")
112
+ location_id: int = Field(..., description="location id of the employee, references to locations/locations.", alias="location_id")
113
+ created_at: str = Field(..., description="creation date of the employee.", alias="created_at")
114
+ updated_at: str = Field(..., description="date of last modification of the employee", alias="updated_at")
115
+ social_security_number: Optional[str] = Field(None, description="social security number of the employee.", alias="social_security_number")
116
+ is_terminating: bool = Field(..., description="is the employee being terminated?", alias="is_terminating")
117
+ terminated_on: Optional[str] = Field(None, description="termination date of the employee.", alias="terminated_on")
118
+ termination_reason_type: Optional[str] = Field(None, description="termination reason type of the employee", alias="termination_reason_type")
119
+ termination_reason: Optional[str] = Field(None, description="A reason for the termination.", alias="termination_reason")
120
+ termination_observations: Optional[str] = Field(None, description="observations about the termination.", alias="termination_observations")
121
+ manager_id: Optional[int] = Field(None, description="manager id of the employee, you can get the manager id from employees endpoint.", alias="manager_id")
122
+ timeoff_manager_id: Optional[int] = Field(None, description="Timeoff manager id of the employee.", alias="timeoff_manager_id")
123
+ phone_number: Optional[str] = Field(None, description="phone number of the employee.", alias="phone_number")
124
+ company_identifier: Optional[str] = Field(None, description="identity number or string used inside a company to internally identify the employee.", alias="company_identifier")
125
+ age_number: Optional[int] = Field(None, description="age of the employee.", alias="age_number")
126
+ termination_type_description: Optional[str] = Field(None, description="The description of the termination type.", alias="termination_type_description")
127
+ contact_name: Optional[str] = Field(None, description="name of the employee contact.", alias="contact_name")
128
+ contact_number: Optional[str] = Field(None, description="phone number of the employee contact .", alias="contact_number")
129
+ personal_email: Optional[str] = Field(None, description="personal email of the employee.", alias="personal_email")
130
+ seniority_calculation_date: Optional[str] = Field(None, description="date since when the employee is working in the company.", alias="seniority_calculation_date")
131
+ pronouns: Optional[str] = Field(None, description="pronouns that an employee uses to define themselves.", alias="pronouns")
132
+ active: Optional[bool] = Field(None, description="status of the employee, true when active, false when terminated.", alias="active")
133
+ disability_percentage_cents: Optional[int] = Field(None, description="officially certified level of disability granted by public administration for individuals with physical or mental impairments, expressed in cents", alias="disability_percentage_cents")
134
+ identifier_expiration_date: Optional[str] = Field(None, description="identifier expiration date", alias="identifier_expiration_date")
135
+
136
+ class EmployeesUpdate(BaseModel):
137
+ id: int = Field(..., description="ID", alias="id")
138
+ access_id: int = Field(..., description="access_id associated to the employee.", alias="access_id")
139
+ first_name: str = Field(..., description="name of the employee.", alias="first_name")
140
+ last_name: str = Field(..., description="last name of the employee.", alias="last_name")
141
+ full_name: str = Field(..., description="full name of the employee.", alias="full_name")
142
+ preferred_name: Optional[str] = Field(None, description="nickname of the employee or a name that defines the employee better.", alias="preferred_name")
143
+ birth_name: Optional[str] = Field(None, description="Birthname of the employee.", alias="birth_name")
144
+ gender: Optional[str] = Field(None, description="gender of the employee (male | female).", alias="gender")
145
+ identifier: Optional[str] = Field(None, description="national identifier number.", alias="identifier")
146
+ identifier_type: Optional[str] = Field(None, description="type of identifier (ex passport).", alias="identifier_type")
147
+ email: Optional[str] = Field(None, description="personal email of the employee.", alias="email")
148
+ login_email: Optional[str] = Field(None, description="email associated to the session.", alias="login_email")
149
+ birthday_on: Optional[str] = Field(None, description="birthday of the employee.", alias="birthday_on")
150
+ nationality: Optional[str] = Field(None, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="nationality")
151
+ address_line_1: Optional[str] = Field(None, description="address of the employee.", alias="address_line_1")
152
+ address_line_2: Optional[str] = Field(None, description="secondary address of the employee.", alias="address_line_2")
153
+ postal_code: Optional[str] = Field(None, description="postal code of the employee.", alias="postal_code")
154
+ city: Optional[str] = Field(None, description="city of the employee.", alias="city")
155
+ state: Optional[str] = Field(None, description="state/province/region of the employee.", alias="state")
156
+ country: Optional[str] = Field(None, description="country code of the employee (Spain ES, United Kingdom GB).", alias="country")
157
+ bank_number: Optional[str] = Field(None, description="bank account number of the employee.", alias="bank_number")
158
+ swift_bic: Optional[str] = Field(None, description="code to identify banks and financial institutions globally.", alias="swift_bic")
159
+ bank_number_format: Optional[Annotated[str, StringConstraints(pattern=r'^iban|sort_code_and_account_number|routing_number_and_account_number|clabe|other|bank_name_and_account_number$', strip_whitespace=True)]] = Field(None, description="bank number format.", alias="bank_number_format")
160
+ company_id: int = Field(..., description="id of the company to which the employee belongs (not editable).", alias="company_id")
161
+ legal_entity_id: Optional[int] = Field(None, description="legal entity of the employee, references to companies/legal_entities.", alias="legal_entity_id")
162
+ location_id: int = Field(..., description="location id of the employee, references to locations/locations.", alias="location_id")
163
+ created_at: str = Field(..., description="creation date of the employee.", alias="created_at")
164
+ updated_at: str = Field(..., description="date of last modification of the employee", alias="updated_at")
165
+ social_security_number: Optional[str] = Field(None, description="social security number of the employee.", alias="social_security_number")
166
+ is_terminating: bool = Field(..., description="is the employee being terminated?", alias="is_terminating")
167
+ terminated_on: Optional[str] = Field(None, description="termination date of the employee.", alias="terminated_on")
168
+ termination_reason_type: Optional[str] = Field(None, description="termination reason type of the employee", alias="termination_reason_type")
169
+ termination_reason: Optional[str] = Field(None, description="A reason for the termination.", alias="termination_reason")
170
+ termination_observations: Optional[str] = Field(None, description="observations about the termination.", alias="termination_observations")
171
+ manager_id: Optional[int] = Field(None, description="manager id of the employee, you can get the manager id from employees endpoint.", alias="manager_id")
172
+ timeoff_manager_id: Optional[int] = Field(None, description="Timeoff manager id of the employee.", alias="timeoff_manager_id")
173
+ phone_number: Optional[str] = Field(None, description="phone number of the employee.", alias="phone_number")
174
+ company_identifier: Optional[str] = Field(None, description="identity number or string used inside a company to internally identify the employee.", alias="company_identifier")
175
+ age_number: Optional[int] = Field(None, description="age of the employee.", alias="age_number")
176
+ termination_type_description: Optional[str] = Field(None, description="The description of the termination type.", alias="termination_type_description")
177
+ contact_name: Optional[str] = Field(None, description="name of the employee contact.", alias="contact_name")
178
+ contact_number: Optional[str] = Field(None, description="phone number of the employee contact .", alias="contact_number")
179
+ personal_email: Optional[str] = Field(None, description="personal email of the employee.", alias="personal_email")
180
+ seniority_calculation_date: Optional[str] = Field(None, description="date since when the employee is working in the company.", alias="seniority_calculation_date")
181
+ pronouns: Optional[str] = Field(None, description="pronouns that an employee uses to define themselves.", alias="pronouns")
182
+ active: Optional[bool] = Field(None, description="status of the employee, true when active, false when terminated.", alias="active")
183
+ disability_percentage_cents: Optional[int] = Field(None, description="officially certified level of disability granted by public administration for individuals with physical or mental impairments, expressed in cents", alias="disability_percentage_cents")
184
+ identifier_expiration_date: Optional[str] = Field(None, description="identifier expiration date", alias="identifier_expiration_date")
185
+
186
+ class EmployeesDelete(BaseModel):
187
+ id: int = Field(..., description="ID", alias="id")