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.
- brynq_sdk_factorial/__init__.py +60 -0
- brynq_sdk_factorial/companies.py +76 -0
- brynq_sdk_factorial/compensations.py +80 -0
- brynq_sdk_factorial/contracts.py +50 -0
- brynq_sdk_factorial/costcenter.py +80 -0
- brynq_sdk_factorial/custom_fields.py +76 -0
- brynq_sdk_factorial/employees.py +57 -0
- brynq_sdk_factorial/family_situation.py +50 -0
- brynq_sdk_factorial/files.py +22 -0
- brynq_sdk_factorial/locations.py +49 -0
- brynq_sdk_factorial/payroll.py +54 -0
- brynq_sdk_factorial/schemas/attendance_schemas.py +264 -0
- brynq_sdk_factorial/schemas/banking_schemas.py +87 -0
- brynq_sdk_factorial/schemas/companies_schemas.py +29 -0
- brynq_sdk_factorial/schemas/contracts_schemas.py +395 -0
- brynq_sdk_factorial/schemas/documents_schemas.py +95 -0
- brynq_sdk_factorial/schemas/employee_updates_schemas.py +300 -0
- brynq_sdk_factorial/schemas/employees_schemas.py +187 -0
- brynq_sdk_factorial/schemas/expenses_schemas.py +144 -0
- brynq_sdk_factorial/schemas/family_situation.py +33 -0
- brynq_sdk_factorial/schemas/finance_schemas.py +433 -0
- brynq_sdk_factorial/schemas/holidays_schemas.py +21 -0
- brynq_sdk_factorial/schemas/job_catalog_schemas.py +35 -0
- brynq_sdk_factorial/schemas/locations_schemas.py +85 -0
- brynq_sdk_factorial/schemas/payroll_employees_schemas.py +33 -0
- brynq_sdk_factorial/schemas/payroll_integrations_base_schemas.py +27 -0
- brynq_sdk_factorial/schemas/payroll_schemas.py +92 -0
- brynq_sdk_factorial/schemas/project_management_schemas.py +192 -0
- brynq_sdk_factorial/schemas/shift_management_schemas.py +40 -0
- brynq_sdk_factorial/schemas/teams_schemas.py +57 -0
- brynq_sdk_factorial/schemas/time_planning_schemas.py +28 -0
- brynq_sdk_factorial/schemas/time_settings_schemas.py +29 -0
- brynq_sdk_factorial/schemas/timeoff_schemas.py +386 -0
- brynq_sdk_factorial/schemas/trainings_schemas.py +215 -0
- brynq_sdk_factorial/schemas/work_schedule_schemas.py +82 -0
- brynq_sdk_factorial/teams.py +76 -0
- brynq_sdk_factorial/workschedules.py +50 -0
- brynq_sdk_factorial-2.3.0.dist-info/METADATA +17 -0
- brynq_sdk_factorial-2.3.0.dist-info/RECORD +41 -0
- brynq_sdk_factorial-2.3.0.dist-info/WHEEL +5 -0
- brynq_sdk_factorial-2.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# Auto-generated schemas for category: contracts
|
|
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 CompensationsGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Compensation ID", alias="id")
|
|
13
|
+
contract_version_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Contract version ID", alias="contract_version_id")
|
|
14
|
+
contracts_taxonomy_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Contracts taxonomy ID", alias="contracts_taxonomy_id")
|
|
15
|
+
description: Series[String] = pa.Field(coerce=True, nullable=True, description="Compensation description", alias="description")
|
|
16
|
+
compensation_type: Series[String] = pa.Field(coerce=True, nullable=True, description="Required field. You can only use the following options: fixed, undefined, up_to, per_worked_day, per_worked_hour", alias="compensation_type")
|
|
17
|
+
amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Required field unless your compensation type is undefined", alias="amount")
|
|
18
|
+
unit: Series[String] = pa.Field(coerce=True, nullable=False, description="Unit of the compensation", alias="unit")
|
|
19
|
+
sync_with_supplements: Series[Bool] = pa.Field(coerce=True, nullable=True, description="Sync with supplements", alias="sync_with_supplements")
|
|
20
|
+
payroll_policy_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Payroll policy ID", alias="payroll_policy_id")
|
|
21
|
+
recurrence_count: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Recurrence count", alias="recurrence_count")
|
|
22
|
+
starts_on: Series[String] = pa.Field(coerce=True, nullable=True, description="When the compensation starts_on", alias="starts_on")
|
|
23
|
+
recurrence: Series[String] = pa.Field(coerce=True, nullable=True, description="Compensation recurrence", alias="recurrence")
|
|
24
|
+
first_payment_on: Series[String] = pa.Field(coerce=True, nullable=True, description="When the first payment is done", alias="first_payment_on")
|
|
25
|
+
calculation: Series[String] = pa.Field(coerce=True, nullable=True, description="Compensation calculation", alias="calculation")
|
|
26
|
+
currency: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="currency")
|
|
27
|
+
time_condition: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="time_condition")
|
|
28
|
+
minimum_amount_of_hours: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="minimum_amount_of_hours")
|
|
29
|
+
minimum_amount_of_hours_in_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Compensation expected minimum amount of hours in cents", alias="minimum_amount_of_hours_in_cents")
|
|
30
|
+
|
|
31
|
+
class _Annotation:
|
|
32
|
+
primary_key = "id"
|
|
33
|
+
foreign_keys = {
|
|
34
|
+
"contract_version_id": {
|
|
35
|
+
"parent_schema": "Contract_versionsGet",
|
|
36
|
+
"parent_column": "id",
|
|
37
|
+
"cardinality": "N:1"
|
|
38
|
+
},
|
|
39
|
+
"contracts_taxonomy_id": {
|
|
40
|
+
"parent_schema": "TaxonomiesGet",
|
|
41
|
+
"parent_column": "id",
|
|
42
|
+
"cardinality": "N:1"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
class Contract_templatesGet(BrynQPanderaDataFrameModel):
|
|
47
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Unique identifier for the contract template", alias="id")
|
|
48
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="ID of the company this template belongs to", alias="company_id")
|
|
49
|
+
contract_version_type: Series[String] = pa.Field(coerce=True, nullable=True, description="Type of contract version (e.g., es for Spain, fr for France)", alias="contract_version_type")
|
|
50
|
+
|
|
51
|
+
class _Annotation:
|
|
52
|
+
primary_key = "id"
|
|
53
|
+
foreign_keys = {}
|
|
54
|
+
|
|
55
|
+
class Contract_versionsGet(BrynQPanderaDataFrameModel):
|
|
56
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="identifier for the contract version.", alias="id")
|
|
57
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for company.", alias="company_id")
|
|
58
|
+
employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="employee identifier, refers to /employees/employees endpoint.", alias="employee_id")
|
|
59
|
+
effective_on: Series[String] = pa.Field(coerce=True, nullable=False, description="the day the specific contract starts, in case of hiring the same than starts_on.", alias="effective_on")
|
|
60
|
+
country: Series[String] = pa.Field(coerce=True, nullable=True, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="country")
|
|
61
|
+
job_title: Series[String] = pa.Field(coerce=True, nullable=True, description="job title of the employee.", alias="job_title")
|
|
62
|
+
job_catalog_level_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="job catalog level identifier, refers to /job_catalog/levels endpoint.", alias="job_catalog_level_id")
|
|
63
|
+
job_catalog_level: Series[String] = pa.Field(coerce=True, nullable=True, description="the level of the employee in the job catalog.", alias="job_catalog_level")
|
|
64
|
+
job_catalog_role: Series[String] = pa.Field(coerce=True, nullable=True, description="the role of the employee in the job catalog.", alias="job_catalog_role")
|
|
65
|
+
starts_on: Series[String] = pa.Field(coerce=True, nullable=True, description="the day the employee is hired.", alias="starts_on")
|
|
66
|
+
ends_on: Series[String] = pa.Field(coerce=True, nullable=True, description="the day the employee is terminated.", alias="ends_on")
|
|
67
|
+
has_payroll: Series[Bool] = pa.Field(coerce=True, nullable=False, description="boolean that indicates if the employee asociated to this contract belongs to a payroll policy.", alias="has_payroll")
|
|
68
|
+
has_trial_period: Series[Bool] = pa.Field(coerce=True, nullable=True, description="a flag that indicates if the employee has a trial period.", alias="has_trial_period")
|
|
69
|
+
trial_period_ends_on: Series[String] = pa.Field(coerce=True, nullable=True, description="when the trial period ends.", alias="trial_period_ends_on")
|
|
70
|
+
salary_amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the amount of money the employee earns.", alias="salary_amount")
|
|
71
|
+
salary_frequency: Series[String] = pa.Field(coerce=True, nullable=True, description="the frequency of the salary payment.", alias="salary_frequency")
|
|
72
|
+
working_week_days: Series[String] = pa.Field(coerce=True, nullable=True, description="the days of the week the employee works.", alias="working_week_days")
|
|
73
|
+
working_hours: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the amount of hours the employee works.", alias="working_hours")
|
|
74
|
+
working_hours_frequency: Series[String] = pa.Field(coerce=True, nullable=True, description="the frequency of the working hours.", alias="working_hours_frequency")
|
|
75
|
+
max_legal_yearly_hours: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the maximum amount of hours the employee can work in a year.", alias="max_legal_yearly_hours")
|
|
76
|
+
maximum_weekly_hours: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the maximum amount of hours the employee can work in a week.", alias="maximum_weekly_hours")
|
|
77
|
+
bank_holiday_treatment: Series[String] = pa.Field(coerce=True, nullable=False, description="Defines whether a bank holiday should be considered as a workable or non-workable day.", alias="bank_holiday_treatment")
|
|
78
|
+
working_time_percentage_in_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Working time percentage in cents (e.g., when an employee is working part-time, the percentage of full-time hours they are working).", alias="working_time_percentage_in_cents")
|
|
79
|
+
min_rest_minutes_between_days: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the minimum amount of minutes the employee must rest between working periods.", alias="min_rest_minutes_between_days")
|
|
80
|
+
max_work_minutes_per_day: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the maximum amount of minutes the employee can work in a day.", alias="max_work_minutes_per_day")
|
|
81
|
+
max_work_days_in_row: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the maximum amount of days the employee can work in a row.", alias="max_work_days_in_row")
|
|
82
|
+
min_rest_hours_in_row: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the minimum amount of hours the employee must rest in a row.", alias="min_rest_hours_in_row")
|
|
83
|
+
created_at: Series[String] = pa.Field(coerce=True, nullable=False, description="the date the contract version was created.", alias="created_at")
|
|
84
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="the date of the last contract version updated.", alias="updated_at")
|
|
85
|
+
es_has_teleworking_contract: Series[Bool] = pa.Field(coerce=True, nullable=True, description="flag that indicates if the contract has teleworking.", alias="es_has_teleworking_contract")
|
|
86
|
+
es_cotization_group: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the group of cotization of the employee.", alias="es_cotization_group")
|
|
87
|
+
contracts_es_tariff_group_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the group of cotization of the employee.", alias="contracts_es_tariff_group_id")
|
|
88
|
+
es_contract_observations: Series[String] = pa.Field(coerce=True, nullable=True, description="observations of the contract.", alias="es_contract_observations")
|
|
89
|
+
es_job_description: Series[String] = pa.Field(coerce=True, nullable=True, description="the job description of the employee.", alias="es_job_description")
|
|
90
|
+
es_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="contract type identifier.", alias="es_contract_type_id")
|
|
91
|
+
es_working_day_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="working day type identifier.", alias="es_working_day_type_id")
|
|
92
|
+
es_education_level_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="education level identifier.", alias="es_education_level_id")
|
|
93
|
+
es_professional_category_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="professional category identifier.", alias="es_professional_category_id")
|
|
94
|
+
fr_employee_type: Series[String] = pa.Field(coerce=True, nullable=True, description="employee type.", alias="fr_employee_type")
|
|
95
|
+
fr_forfait_jours: Series[Bool] = pa.Field(coerce=True, nullable=False, description="flag that indicates if the employee is allowed to work within the framework of a fixed number of days.", alias="fr_forfait_jours")
|
|
96
|
+
fr_jours_par_an: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="the number of days the employee is allowed to work.", alias="fr_jours_par_an")
|
|
97
|
+
fr_coefficient: Series[String] = pa.Field(coerce=True, nullable=True, description="coefficient for france contracts.", alias="fr_coefficient")
|
|
98
|
+
fr_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="contract type identifier.", alias="fr_contract_type_id")
|
|
99
|
+
fr_level_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="level identifier.", alias="fr_level_id")
|
|
100
|
+
fr_step_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="step identifier.", alias="fr_step_id")
|
|
101
|
+
fr_mutual_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="mutual identifier.", alias="fr_mutual_id")
|
|
102
|
+
fr_professional_category_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="professional category identifier.", alias="fr_professional_category_id")
|
|
103
|
+
fr_work_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="work type identifier.", alias="fr_work_type_id")
|
|
104
|
+
de_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="contract type identifier.", alias="de_contract_type_id")
|
|
105
|
+
pt_contract_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="contract type identifier.", alias="pt_contract_type_id")
|
|
106
|
+
|
|
107
|
+
class _Annotation:
|
|
108
|
+
primary_key = "id"
|
|
109
|
+
foreign_keys = {
|
|
110
|
+
"employee_id": {
|
|
111
|
+
"parent_schema": "EmployeesGet",
|
|
112
|
+
"parent_column": "id",
|
|
113
|
+
"cardinality": "N:1"
|
|
114
|
+
},
|
|
115
|
+
"job_catalog_level_id": {
|
|
116
|
+
"parent_schema": "LevelsGet",
|
|
117
|
+
"parent_column": "id",
|
|
118
|
+
"cardinality": "N:1"
|
|
119
|
+
},
|
|
120
|
+
"es_contract_type_id": {
|
|
121
|
+
"parent_schema": "Spanish_contract_typesGet",
|
|
122
|
+
"parent_column": "id",
|
|
123
|
+
"cardinality": "N:1"
|
|
124
|
+
},
|
|
125
|
+
"es_education_level_id": {
|
|
126
|
+
"parent_schema": "Spanish_education_levelsGet",
|
|
127
|
+
"parent_column": "id",
|
|
128
|
+
"cardinality": "N:1"
|
|
129
|
+
},
|
|
130
|
+
"es_professional_category_id": {
|
|
131
|
+
"parent_schema": "Spanish_professional_categoriesGet",
|
|
132
|
+
"parent_column": "id",
|
|
133
|
+
"cardinality": "N:1"
|
|
134
|
+
},
|
|
135
|
+
"fr_contract_type_id": {
|
|
136
|
+
"parent_schema": "French_contract_typesGet",
|
|
137
|
+
"parent_column": "id",
|
|
138
|
+
"cardinality": "N:1"
|
|
139
|
+
},
|
|
140
|
+
"de_contract_type_id": {
|
|
141
|
+
"parent_schema": "German_contract_typesGet",
|
|
142
|
+
"parent_column": "id",
|
|
143
|
+
"cardinality": "N:1"
|
|
144
|
+
},
|
|
145
|
+
"pt_contract_type_id": {
|
|
146
|
+
"parent_schema": "Portuguese_contract_typesGet",
|
|
147
|
+
"parent_column": "id",
|
|
148
|
+
"cardinality": "N:1"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
class French_contract_typesGet(BrynQPanderaDataFrameModel):
|
|
153
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the contract type", alias="id")
|
|
154
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Contract type name", alias="name")
|
|
155
|
+
|
|
156
|
+
class _Annotation:
|
|
157
|
+
primary_key = "id"
|
|
158
|
+
foreign_keys = {}
|
|
159
|
+
|
|
160
|
+
class German_contract_typesGet(BrynQPanderaDataFrameModel):
|
|
161
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the contract type", alias="id")
|
|
162
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Contract type name", alias="name")
|
|
163
|
+
|
|
164
|
+
class _Annotation:
|
|
165
|
+
primary_key = "id"
|
|
166
|
+
foreign_keys = {}
|
|
167
|
+
|
|
168
|
+
class Portuguese_contract_typesGet(BrynQPanderaDataFrameModel):
|
|
169
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the contract type", alias="id")
|
|
170
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Contract type name", alias="name")
|
|
171
|
+
|
|
172
|
+
class _Annotation:
|
|
173
|
+
primary_key = "id"
|
|
174
|
+
foreign_keys = {}
|
|
175
|
+
|
|
176
|
+
class Spanish_contract_typesGet(BrynQPanderaDataFrameModel):
|
|
177
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the contract type", alias="id")
|
|
178
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="The name of the contract type", alias="name")
|
|
179
|
+
default: Series[Bool] = pa.Field(coerce=True, nullable=True, description="This contract type is a predefined one", alias="default")
|
|
180
|
+
contracts_contract_template_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The contract template identifier. Refers to contracts/contract_templates.", alias="contracts_contract_template_id")
|
|
181
|
+
|
|
182
|
+
class _Annotation:
|
|
183
|
+
primary_key = "id"
|
|
184
|
+
foreign_keys = {
|
|
185
|
+
"contracts_contract_template_id": {
|
|
186
|
+
"parent_schema": "Contract_templatesGet",
|
|
187
|
+
"parent_column": "id",
|
|
188
|
+
"cardinality": "N:1"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
class Spanish_education_levelsGet(BrynQPanderaDataFrameModel):
|
|
193
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Education level identifier", alias="id")
|
|
194
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="education level name", alias="name")
|
|
195
|
+
default: Series[Bool] = pa.Field(coerce=True, nullable=True, description="Whether the education level is a predefined value", alias="default")
|
|
196
|
+
contracts_contract_template_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Contract template identifier, refers to contracts/contract_templates", alias="contracts_contract_template_id")
|
|
197
|
+
|
|
198
|
+
class _Annotation:
|
|
199
|
+
primary_key = "id"
|
|
200
|
+
foreign_keys = {
|
|
201
|
+
"contracts_contract_template_id": {
|
|
202
|
+
"parent_schema": "Contract_templatesGet",
|
|
203
|
+
"parent_column": "id",
|
|
204
|
+
"cardinality": "N:1"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
class Spanish_professional_categoriesGet(BrynQPanderaDataFrameModel):
|
|
209
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Professional category identifier", alias="id")
|
|
210
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Professional category name", alias="name")
|
|
211
|
+
default: Series[Bool] = pa.Field(coerce=True, nullable=True, description="Whether the professional category is a predefined value", alias="default")
|
|
212
|
+
contracts_contract_template_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Contract template identifier, refers to contracts/contract_templates", alias="contracts_contract_template_id")
|
|
213
|
+
|
|
214
|
+
class _Annotation:
|
|
215
|
+
primary_key = "id"
|
|
216
|
+
foreign_keys = {
|
|
217
|
+
"contracts_contract_template_id": {
|
|
218
|
+
"parent_schema": "Contract_templatesGet",
|
|
219
|
+
"parent_column": "id",
|
|
220
|
+
"cardinality": "N:1"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
class TaxonomiesGet(BrynQPanderaDataFrameModel):
|
|
225
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="id")
|
|
226
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="name")
|
|
227
|
+
archived: Series[Bool] = pa.Field(coerce=True, nullable=False, description="", alias="archived")
|
|
228
|
+
default: Series[Bool] = pa.Field(coerce=True, nullable=False, description="", alias="default")
|
|
229
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="legal_entity_id")
|
|
230
|
+
|
|
231
|
+
class _Annotation:
|
|
232
|
+
primary_key = "id"
|
|
233
|
+
foreign_keys = {
|
|
234
|
+
"legal_entity_id": {
|
|
235
|
+
"parent_schema": "Legal_entitiesGet",
|
|
236
|
+
"parent_column": "id",
|
|
237
|
+
"cardinality": "N:1"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
class CompensationsCreate(BaseModel):
|
|
242
|
+
contract_version_id: int = Field(..., description="", alias="contract_version_id")
|
|
243
|
+
contracts_taxonomy_id: int = Field(..., description="", alias="contracts_taxonomy_id")
|
|
244
|
+
description: Optional[str] = Field(None, description="", alias="description")
|
|
245
|
+
compensation_type: Optional[str] = Field(None, description="", alias="compensation_type")
|
|
246
|
+
amount: Optional[int] = Field(None, description="", alias="amount")
|
|
247
|
+
unit: Optional[str] = Field(None, description="", alias="unit")
|
|
248
|
+
sync_with_supplements: Optional[bool] = Field(None, description="", alias="sync_with_supplements")
|
|
249
|
+
payroll_policy_id: Optional[int] = Field(None, description="", alias="payroll_policy_id")
|
|
250
|
+
recurrence_count: Optional[int] = Field(None, description="", alias="recurrence_count")
|
|
251
|
+
starts_on: Optional[str] = Field(None, description="", alias="starts_on")
|
|
252
|
+
recurrence: Optional[str] = Field(None, description="", alias="recurrence")
|
|
253
|
+
first_payment_on: Optional[str] = Field(None, description="", alias="first_payment_on")
|
|
254
|
+
calculation: Optional[str] = Field(None, description="", alias="calculation")
|
|
255
|
+
time_condition: Optional[Annotated[str, StringConstraints(pattern=r'^full_day|half_day|custom$', strip_whitespace=True)]] = Field(None, description="", alias="time_condition")
|
|
256
|
+
minimum_amount_of_hours: Optional[int] = Field(None, description="", alias="minimum_amount_of_hours")
|
|
257
|
+
minimum_amount_of_hours_in_cents: Optional[int] = Field(None, description="", alias="minimum_amount_of_hours_in_cents")
|
|
258
|
+
|
|
259
|
+
class CompensationsUpdate(BaseModel):
|
|
260
|
+
id: int = Field(..., description="ID", alias="id")
|
|
261
|
+
contract_version_id: int = Field(..., description="Contract version ID", alias="contract_version_id")
|
|
262
|
+
contracts_taxonomy_id: int = Field(..., description="Contracts taxonomy ID", alias="contracts_taxonomy_id")
|
|
263
|
+
description: Optional[str] = Field(None, description="Compensation description", alias="description")
|
|
264
|
+
compensation_type: Optional[str] = Field(None, description="Required field. You can only use the following options: fixed, undefined, up_to, per_worked_day, per_worked_hour", alias="compensation_type")
|
|
265
|
+
amount: Optional[int] = Field(None, description="Required field unless your compensation type is undefined", alias="amount")
|
|
266
|
+
unit: str = Field(..., description="Unit of the compensation", alias="unit")
|
|
267
|
+
sync_with_supplements: Optional[bool] = Field(None, description="Sync with supplements", alias="sync_with_supplements")
|
|
268
|
+
payroll_policy_id: Optional[int] = Field(None, description="Payroll policy ID", alias="payroll_policy_id")
|
|
269
|
+
recurrence_count: Optional[int] = Field(None, description="Recurrence count", alias="recurrence_count")
|
|
270
|
+
starts_on: Optional[str] = Field(None, description="When the compensation starts_on", alias="starts_on")
|
|
271
|
+
recurrence: Optional[str] = Field(None, description="Compensation recurrence", alias="recurrence")
|
|
272
|
+
first_payment_on: Optional[str] = Field(None, description="When the first payment is done", alias="first_payment_on")
|
|
273
|
+
calculation: Optional[str] = Field(None, description="Compensation calculation", alias="calculation")
|
|
274
|
+
currency: Optional[str] = Field(None, description="", alias="currency")
|
|
275
|
+
time_condition: Optional[Annotated[str, StringConstraints(pattern=r'^full_day|half_day|custom$', strip_whitespace=True)]] = Field(None, description="", alias="time_condition")
|
|
276
|
+
minimum_amount_of_hours: Optional[int] = Field(None, description="", alias="minimum_amount_of_hours")
|
|
277
|
+
minimum_amount_of_hours_in_cents: Optional[int] = Field(None, description="Compensation expected minimum amount of hours in cents", alias="minimum_amount_of_hours_in_cents")
|
|
278
|
+
|
|
279
|
+
class CompensationsDelete(BaseModel):
|
|
280
|
+
id: int = Field(..., description="ID", alias="id")
|
|
281
|
+
|
|
282
|
+
class Contract_templatesDelete(BaseModel):
|
|
283
|
+
id: int = Field(..., description="ID", alias="id")
|
|
284
|
+
|
|
285
|
+
class Contract_versionsCreate(BaseModel):
|
|
286
|
+
employee_id: int = Field(..., description="employee identifier, refers to /employees/employees endpoint.", alias="employee_id")
|
|
287
|
+
effective_on: str = Field(..., description="the day the specific contract starts, in case of hiring the same than starts_on.", alias="effective_on")
|
|
288
|
+
starts_on: str = Field(..., description="the day the employee is hired.", alias="starts_on")
|
|
289
|
+
ends_on: Optional[str] = Field(None, description="the day the employee is terminated.", alias="ends_on")
|
|
290
|
+
working_hours_frequency: Optional[str] = Field(None, description="the frequency of the working hours.", alias="working_hours_frequency")
|
|
291
|
+
working_week_days: Optional[str] = Field(None, description="the days of the week the employee works.", alias="working_week_days")
|
|
292
|
+
working_hours: Optional[int] = Field(None, description="the amount of hours the employee works.", alias="working_hours")
|
|
293
|
+
max_legal_yearly_hours: Optional[int] = Field(None, description="the maximum amount of hours the employee can work in a year.", alias="max_legal_yearly_hours")
|
|
294
|
+
maximum_weekly_hours: Optional[int] = Field(None, description="the maximum amount of hours the employee can work in a week.", alias="maximum_weekly_hours")
|
|
295
|
+
min_rest_minutes_between_days: Optional[int] = Field(None, description="the minimum amount of minutes the employee must rest between working periods.", alias="min_rest_minutes_between_days")
|
|
296
|
+
max_work_minutes_per_day: Optional[int] = Field(None, description="the maximum amount of minutes the employee can work in a day.", alias="max_work_minutes_per_day")
|
|
297
|
+
max_work_days_in_row: Optional[int] = Field(None, description="the maximum amount of days the employee can work in a row.", alias="max_work_days_in_row")
|
|
298
|
+
min_rest_hours_in_row: Optional[int] = Field(None, description="the minimum amount of hours the employee must rest in a row.", alias="min_rest_hours_in_row")
|
|
299
|
+
salary_frequency: Optional[str] = Field(None, description="the frequency of the salary payment.", alias="salary_frequency")
|
|
300
|
+
salary_amount: Optional[int] = Field(None, description="the amount of money the employee earns.", alias="salary_amount")
|
|
301
|
+
job_title: Optional[str] = Field(None, description="job title of the employee.", alias="job_title")
|
|
302
|
+
has_trial_period: Optional[bool] = Field(None, description="a flag that indicates if the employee has a trial period.", alias="has_trial_period")
|
|
303
|
+
trial_period_ends_on: Optional[str] = Field(None, description="when the trial period ends.", alias="trial_period_ends_on")
|
|
304
|
+
working_time_percentage_in_cents: Optional[int] = Field(None, description="Working time percentage in cents (e.g., when an employee is working part-time, the percentage of full-time hours they are working).", alias="working_time_percentage_in_cents")
|
|
305
|
+
copy_current_contract_version: Optional[bool] = Field(None, description="wether to copy the current contract version.", alias="copy_current_contract_version")
|
|
306
|
+
job_catalog_level_id: Optional[int] = Field(None, description="the id of the job catalog level.", alias="job_catalog_level_id")
|
|
307
|
+
bank_holiday_treatment: Optional[Annotated[str, StringConstraints(pattern=r'^workable|non_workable$', strip_whitespace=True)]] = Field(None, description="Defines whether a bank holiday should be considered as a workable or non-workable day.", alias="bank_holiday_treatment")
|
|
308
|
+
|
|
309
|
+
class Contract_versionsUpdate(BaseModel):
|
|
310
|
+
id: int = Field(..., description="ID", alias="id")
|
|
311
|
+
company_id: int = Field(..., description="identifier for company.", alias="company_id")
|
|
312
|
+
employee_id: int = Field(..., description="employee identifier, refers to /employees/employees endpoint.", alias="employee_id")
|
|
313
|
+
effective_on: str = Field(..., description="the day the specific contract starts, in case of hiring the same than starts_on.", alias="effective_on")
|
|
314
|
+
country: Optional[str] = Field(None, description="nationality country code of the employee (Spain ES, United Kingdom GB).", alias="country")
|
|
315
|
+
job_title: Optional[str] = Field(None, description="job title of the employee.", alias="job_title")
|
|
316
|
+
job_catalog_level_id: Optional[int] = Field(None, description="job catalog level identifier, refers to /job_catalog/levels endpoint.", alias="job_catalog_level_id")
|
|
317
|
+
job_catalog_level: Optional[str] = Field(None, description="the level of the employee in the job catalog.", alias="job_catalog_level")
|
|
318
|
+
job_catalog_role: Optional[str] = Field(None, description="the role of the employee in the job catalog.", alias="job_catalog_role")
|
|
319
|
+
starts_on: Optional[str] = Field(None, description="the day the employee is hired.", alias="starts_on")
|
|
320
|
+
ends_on: Optional[str] = Field(None, description="the day the employee is terminated.", alias="ends_on")
|
|
321
|
+
has_payroll: bool = Field(..., description="boolean that indicates if the employee asociated to this contract belongs to a payroll policy.", alias="has_payroll")
|
|
322
|
+
has_trial_period: Optional[bool] = Field(None, description="a flag that indicates if the employee has a trial period.", alias="has_trial_period")
|
|
323
|
+
trial_period_ends_on: Optional[str] = Field(None, description="when the trial period ends.", alias="trial_period_ends_on")
|
|
324
|
+
salary_amount: Optional[int] = Field(None, description="the amount of money the employee earns.", alias="salary_amount")
|
|
325
|
+
salary_frequency: Optional[str] = Field(None, description="the frequency of the salary payment.", alias="salary_frequency")
|
|
326
|
+
working_week_days: Optional[str] = Field(None, description="the days of the week the employee works.", alias="working_week_days")
|
|
327
|
+
working_hours: Optional[int] = Field(None, description="the amount of hours the employee works.", alias="working_hours")
|
|
328
|
+
working_hours_frequency: Optional[str] = Field(None, description="the frequency of the working hours.", alias="working_hours_frequency")
|
|
329
|
+
max_legal_yearly_hours: Optional[int] = Field(None, description="the maximum amount of hours the employee can work in a year.", alias="max_legal_yearly_hours")
|
|
330
|
+
maximum_weekly_hours: Optional[int] = Field(None, description="the maximum amount of hours the employee can work in a week.", alias="maximum_weekly_hours")
|
|
331
|
+
bank_holiday_treatment: Annotated[str, StringConstraints(pattern=r'^workable|non_workable$', strip_whitespace=True)] = Field(..., description="Defines whether a bank holiday should be considered as a workable or non-workable day.", alias="bank_holiday_treatment")
|
|
332
|
+
working_time_percentage_in_cents: Optional[int] = Field(None, description="Working time percentage in cents (e.g., when an employee is working part-time, the percentage of full-time hours they are working).", alias="working_time_percentage_in_cents")
|
|
333
|
+
min_rest_minutes_between_days: Optional[int] = Field(None, description="the minimum amount of minutes the employee must rest between working periods.", alias="min_rest_minutes_between_days")
|
|
334
|
+
max_work_minutes_per_day: Optional[int] = Field(None, description="the maximum amount of minutes the employee can work in a day.", alias="max_work_minutes_per_day")
|
|
335
|
+
max_work_days_in_row: Optional[int] = Field(None, description="the maximum amount of days the employee can work in a row.", alias="max_work_days_in_row")
|
|
336
|
+
min_rest_hours_in_row: Optional[int] = Field(None, description="the minimum amount of hours the employee must rest in a row.", alias="min_rest_hours_in_row")
|
|
337
|
+
created_at: str = Field(..., description="the date the contract version was created.", alias="created_at")
|
|
338
|
+
updated_at: str = Field(..., description="the date of the last contract version updated.", alias="updated_at")
|
|
339
|
+
es_has_teleworking_contract: Optional[bool] = Field(None, description="flag that indicates if the contract has teleworking.", alias="es_has_teleworking_contract")
|
|
340
|
+
es_cotization_group: Optional[int] = Field(None, description="the group of cotization of the employee.", alias="es_cotization_group")
|
|
341
|
+
contracts_es_tariff_group_id: Optional[int] = Field(None, description="the group of cotization of the employee.", alias="contracts_es_tariff_group_id")
|
|
342
|
+
es_contract_observations: Optional[str] = Field(None, description="observations of the contract.", alias="es_contract_observations")
|
|
343
|
+
es_job_description: Optional[str] = Field(None, description="the job description of the employee.", alias="es_job_description")
|
|
344
|
+
es_contract_type_id: Optional[int] = Field(None, description="contract type identifier.", alias="es_contract_type_id")
|
|
345
|
+
es_working_day_type_id: Optional[int] = Field(None, description="working day type identifier.", alias="es_working_day_type_id")
|
|
346
|
+
es_education_level_id: Optional[int] = Field(None, description="education level identifier.", alias="es_education_level_id")
|
|
347
|
+
es_professional_category_id: Optional[int] = Field(None, description="professional category identifier.", alias="es_professional_category_id")
|
|
348
|
+
fr_employee_type: Optional[str] = Field(None, description="employee type.", alias="fr_employee_type")
|
|
349
|
+
fr_forfait_jours: bool = Field(..., description="flag that indicates if the employee is allowed to work within the framework of a fixed number of days.", alias="fr_forfait_jours")
|
|
350
|
+
fr_jours_par_an: Optional[int] = Field(None, description="the number of days the employee is allowed to work.", alias="fr_jours_par_an")
|
|
351
|
+
fr_coefficient: Optional[str] = Field(None, description="coefficient for france contracts.", alias="fr_coefficient")
|
|
352
|
+
fr_contract_type_id: Optional[int] = Field(None, description="contract type identifier.", alias="fr_contract_type_id")
|
|
353
|
+
fr_level_id: Optional[int] = Field(None, description="level identifier.", alias="fr_level_id")
|
|
354
|
+
fr_step_id: Optional[int] = Field(None, description="step identifier.", alias="fr_step_id")
|
|
355
|
+
fr_mutual_id: Optional[int] = Field(None, description="mutual identifier.", alias="fr_mutual_id")
|
|
356
|
+
fr_professional_category_id: Optional[int] = Field(None, description="professional category identifier.", alias="fr_professional_category_id")
|
|
357
|
+
fr_work_type_id: Optional[int] = Field(None, description="work type identifier.", alias="fr_work_type_id")
|
|
358
|
+
de_contract_type_id: Optional[int] = Field(None, description="contract type identifier.", alias="de_contract_type_id")
|
|
359
|
+
pt_contract_type_id: Optional[int] = Field(None, description="contract type identifier.", alias="pt_contract_type_id")
|
|
360
|
+
|
|
361
|
+
class Contract_versionsDelete(BaseModel):
|
|
362
|
+
id: int = Field(..., description="ID", alias="id")
|
|
363
|
+
|
|
364
|
+
class French_contract_typesDelete(BaseModel):
|
|
365
|
+
id: int = Field(..., description="ID", alias="id")
|
|
366
|
+
|
|
367
|
+
class German_contract_typesDelete(BaseModel):
|
|
368
|
+
id: int = Field(..., description="ID", alias="id")
|
|
369
|
+
|
|
370
|
+
class Portuguese_contract_typesDelete(BaseModel):
|
|
371
|
+
id: int = Field(..., description="ID", alias="id")
|
|
372
|
+
|
|
373
|
+
class Spanish_contract_typesCreate(BaseModel):
|
|
374
|
+
name: str = Field(..., description="Contract type name", alias="name")
|
|
375
|
+
contracts_contract_template_id: int = Field(..., description="Contract template identifier. Refers to contracts/contract_templates.", alias="contracts_contract_template_id")
|
|
376
|
+
|
|
377
|
+
class Spanish_contract_typesDelete(BaseModel):
|
|
378
|
+
id: int = Field(..., description="ID", alias="id")
|
|
379
|
+
|
|
380
|
+
class Spanish_education_levelsCreate(BaseModel):
|
|
381
|
+
name: str = Field(..., description="Education level name", alias="name")
|
|
382
|
+
contracts_contract_template_id: int = Field(..., description="Contract template identifier, refers to contracts/contract_templates", alias="contracts_contract_template_id")
|
|
383
|
+
|
|
384
|
+
class Spanish_education_levelsDelete(BaseModel):
|
|
385
|
+
id: int = Field(..., description="ID", alias="id")
|
|
386
|
+
|
|
387
|
+
class Spanish_professional_categoriesCreate(BaseModel):
|
|
388
|
+
name: str = Field(..., description="Professional category name", alias="name")
|
|
389
|
+
contracts_contract_template_id: int = Field(..., description="Contract template identifier, refers to contracts/contract_templates", alias="contracts_contract_template_id")
|
|
390
|
+
|
|
391
|
+
class Spanish_professional_categoriesDelete(BaseModel):
|
|
392
|
+
id: int = Field(..., description="ID", alias="id")
|
|
393
|
+
|
|
394
|
+
class TaxonomiesDelete(BaseModel):
|
|
395
|
+
id: int = Field(..., description="ID", alias="id")
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Auto-generated schemas for category: documents
|
|
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 DocumentsGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
author_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="access identifier of the author, refers to /employees/employees endpoint.", alias="author_id")
|
|
13
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="company identifier, refers to /api/me endpoint.", alias="company_id")
|
|
14
|
+
content_type: Series[String] = pa.Field(coerce=True, nullable=True, description="document content type.", alias="content_type")
|
|
15
|
+
created_at: Series[String] = pa.Field(coerce=True, nullable=False, description="creation date of the document.", alias="created_at")
|
|
16
|
+
employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="employee identifier associated to the document.", alias="employee_id")
|
|
17
|
+
extension: Series[String] = pa.Field(coerce=True, nullable=True, description="document extension.", alias="extension")
|
|
18
|
+
file_size: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="document file size in bytes.", alias="file_size")
|
|
19
|
+
filename: Series[String] = pa.Field(coerce=True, nullable=False, description="name of the document.", alias="filename")
|
|
20
|
+
folder_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="folder identifier, references to documents/folders endpoint.", alias="folder_id")
|
|
21
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="document identifier.", alias="id")
|
|
22
|
+
is_company_document: Series[Bool] = pa.Field(coerce=True, nullable=True, description="flag that indicates if the document is a company document.", alias="is_company_document")
|
|
23
|
+
is_management_document: Series[Bool] = pa.Field(coerce=True, nullable=True, description="flag that indicates if the document is a management document.", alias="is_management_document")
|
|
24
|
+
is_pending_assignment: Series[Bool] = pa.Field(coerce=True, nullable=True, description="flag that indicates if the document is pending assignment.", alias="is_pending_assignment")
|
|
25
|
+
leave_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="leave identifier associated to the document, refers to /timeoff/leaves endpoint.", alias="leave_id")
|
|
26
|
+
public: Series[Bool] = pa.Field(coerce=True, nullable=False, description="flag to indicate if the document is public.", alias="public")
|
|
27
|
+
signature_status: Series[String] = pa.Field(coerce=True, nullable=True, description="document signature status.", alias="signature_status")
|
|
28
|
+
signees: Series[String] = pa.Field(coerce=True, nullable=True, description="list of signee access identifiers associated to the document, refers to /employees/employees endpoint.", alias="signees")
|
|
29
|
+
space: Series[String] = pa.Field(coerce=True, nullable=False, description="document space.", alias="space")
|
|
30
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="last update date of the document.", alias="updated_at")
|
|
31
|
+
deleted_at: Series[String] = pa.Field(coerce=True, nullable=True, description="deletion date of the document.", alias="deleted_at")
|
|
32
|
+
|
|
33
|
+
class FoldersGet(BrynQPanderaDataFrameModel):
|
|
34
|
+
active: Series[Bool] = pa.Field(coerce=True, nullable=False, description="Whether the folder is active or not", alias="active")
|
|
35
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Company ID of the folder", alias="company_id")
|
|
36
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Folder ID", alias="id")
|
|
37
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Folder name", alias="name")
|
|
38
|
+
parent_folder_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Id of the parent folder", alias="parent_folder_id")
|
|
39
|
+
space: Series[String] = pa.Field(coerce=True, nullable=False, description="The space of the folder is related to the place where the folder is displayed.", alias="space")
|
|
40
|
+
|
|
41
|
+
class DocumentsCreate(BaseModel):
|
|
42
|
+
public: bool = Field(..., description="flag to indicate if the document is public.", alias="public")
|
|
43
|
+
space: Annotated[str, StringConstraints(pattern=r'^employee_my_documents|company_public|company_internal|pending_to_assign|pending_to_destroy$', strip_whitespace=True)] = Field(..., description="document space, in case of employee_my_documents it's necessary to fill employee_id.", alias="space")
|
|
44
|
+
folder_id: Optional[int] = Field(None, description="folder identifier, references to documents/folders endpoint.", alias="folder_id")
|
|
45
|
+
file_filename: Optional[str] = Field(None, description="final name of the file, even if the file has been uploaded with a different name.", alias="file_filename")
|
|
46
|
+
is_pending_assignment: bool = Field(..., description="flag that indicates if the document is pending assignment.", alias="is_pending_assignment")
|
|
47
|
+
leave_id: Optional[int] = Field(None, description="leave identifier associated to the document, refers to /timeoff/leaves endpoint.", alias="leave_id")
|
|
48
|
+
file: str = Field(..., description="file to upload, the binary file.", alias="file")
|
|
49
|
+
employee_id: Optional[int] = Field(None, description="employee identifier associated to the document.", alias="employee_id")
|
|
50
|
+
author_id: int = Field(..., description="access identifier of the author, refers to /employees/employees endpoint.", alias="author_id")
|
|
51
|
+
company_id: int = Field(..., description="company identifier, refers to /api/me endpoint.", alias="company_id")
|
|
52
|
+
signee_ids: str = Field(..., description="list of user access identifiers associated to the document, refers to /employees/employees endpoint.", alias="signee_ids")
|
|
53
|
+
request_esignature: bool = Field(..., description="flag to indicate if the document requires an electronic signature.", alias="request_esignature")
|
|
54
|
+
|
|
55
|
+
class DocumentsUpdate(BaseModel):
|
|
56
|
+
id: int = Field(..., description="ID", alias="id")
|
|
57
|
+
author_id: Optional[int] = Field(None, description="access identifier of the author, refers to /employees/employees endpoint.", alias="author_id")
|
|
58
|
+
company_id: Optional[int] = Field(None, description="company identifier, refers to /api/me endpoint.", alias="company_id")
|
|
59
|
+
content_type: Optional[str] = Field(None, description="document content type.", alias="content_type")
|
|
60
|
+
created_at: str = Field(..., description="creation date of the document.", alias="created_at")
|
|
61
|
+
employee_id: Optional[int] = Field(None, description="employee identifier associated to the document.", alias="employee_id")
|
|
62
|
+
extension: Optional[str] = Field(None, description="document extension.", alias="extension")
|
|
63
|
+
file_size: Optional[int] = Field(None, description="document file size in bytes.", alias="file_size")
|
|
64
|
+
filename: str = Field(..., description="name of the document.", alias="filename")
|
|
65
|
+
folder_id: Optional[int] = Field(None, description="folder identifier, references to documents/folders endpoint.", alias="folder_id")
|
|
66
|
+
is_company_document: Optional[bool] = Field(None, description="flag that indicates if the document is a company document.", alias="is_company_document")
|
|
67
|
+
is_management_document: Optional[bool] = Field(None, description="flag that indicates if the document is a management document.", alias="is_management_document")
|
|
68
|
+
is_pending_assignment: Optional[bool] = Field(None, description="flag that indicates if the document is pending assignment.", alias="is_pending_assignment")
|
|
69
|
+
leave_id: Optional[int] = Field(None, description="leave identifier associated to the document, refers to /timeoff/leaves endpoint.", alias="leave_id")
|
|
70
|
+
public: bool = Field(..., description="flag to indicate if the document is public.", alias="public")
|
|
71
|
+
signature_status: Optional[Annotated[str, StringConstraints(pattern=r'^pending|partially_signed|declined|completed|bounced_email|cancelled|error|expired$', strip_whitespace=True)]] = Field(None, description="document signature status.", alias="signature_status")
|
|
72
|
+
signees: Optional[str] = Field(None, description="list of signee access identifiers associated to the document, refers to /employees/employees endpoint.", alias="signees")
|
|
73
|
+
space: str = Field(..., description="document space.", alias="space")
|
|
74
|
+
updated_at: str = Field(..., description="last update date of the document.", alias="updated_at")
|
|
75
|
+
deleted_at: Optional[str] = Field(None, description="deletion date of the document.", alias="deleted_at")
|
|
76
|
+
|
|
77
|
+
class DocumentsDelete(BaseModel):
|
|
78
|
+
id: int = Field(..., description="ID", alias="id")
|
|
79
|
+
|
|
80
|
+
class FoldersCreate(BaseModel):
|
|
81
|
+
company_id: int = Field(..., description="Company ID", alias="company_id")
|
|
82
|
+
name: str = Field(..., description="Folder name", alias="name")
|
|
83
|
+
space: str = Field(..., description="The space of the folder is related to the type of documents that will be stored in it. You should always use "employee_my_documents"", alias="space")
|
|
84
|
+
|
|
85
|
+
class FoldersUpdate(BaseModel):
|
|
86
|
+
id: int = Field(..., description="ID", alias="id")
|
|
87
|
+
active: bool = Field(..., description="Whether the folder is active or not", alias="active")
|
|
88
|
+
company_id: Optional[int] = Field(None, description="Company ID of the folder", alias="company_id")
|
|
89
|
+
name: str = Field(..., description="Folder name", alias="name")
|
|
90
|
+
parent_folder_id: Optional[int] = Field(None, description="Id of the parent folder", alias="parent_folder_id")
|
|
91
|
+
space: str = Field(..., description="The space of the folder is related to the place where the folder is displayed.", alias="space")
|
|
92
|
+
|
|
93
|
+
class FoldersDelete(BaseModel):
|
|
94
|
+
id: int = Field(..., description="ID", alias="id")
|
|
95
|
+
|