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,144 @@
1
+ # Auto-generated schemas for category: expenses
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 ExpensablesGet(BrynQPanderaDataFrameModel):
12
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Unique identifier for the expensable", alias="id")
13
+ type: Series[String] = pa.Field(coerce=True, nullable=False, description="Type of the expensable. Can be either "expense" or "mileage" or "perdiem"", alias="type")
14
+ company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The ID of the company that owns the expensable", alias="company_id")
15
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The ID of the employee that owns the expensable", alias="employee_id")
16
+ group_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional ID of the group that the expensable belongs to", alias="group_id")
17
+ created_at: Series[String] = pa.Field(coerce=True, nullable=False, description="The date and time when the expensable was created", alias="created_at")
18
+ amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional amount in cents", alias="amount")
19
+ currency: Series[String] = pa.Field(coerce=True, nullable=False, description="The currency code in ISO 4217 format", alias="currency")
20
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="The status of the expensable. Can be pending, approved, paid, archived, in_review, rejected, reversed, draft, or in_payroll", alias="status")
21
+ description: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional description of the expensable", alias="description")
22
+ reporter_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional ID of the employee that reported the expensable", alias="reporter_id")
23
+ status_updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="The optional date and time when the status was last updated", alias="status_updated_at")
24
+ effective_on: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional date and time when the expensable was effective", alias="effective_on")
25
+ review_request_at: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional date and time when the expensable was requested for review", alias="review_request_at")
26
+ paid_at: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional date and time when the expensable was set as paid", alias="paid_at")
27
+ updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="The date and time when the expensable was last updated", alias="updated_at")
28
+ reimbursable_amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional reimbursable amount in cents", alias="reimbursable_amount")
29
+ reimbursable_currency: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional reimbursable currency code in ISO 4217 format", alias="reimbursable_currency")
30
+ reimbursement_method: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional reimbursement method", alias="reimbursement_method")
31
+ internal_reference: Series[String] = pa.Field(coerce=True, nullable=True, description="The optional internal reference of the expensable", alias="internal_reference")
32
+ expense_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional ID of the expense that the expensable belongs to", alias="expense_id")
33
+ mileage_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional ID of the mileage that the expensable belongs to", alias="mileage_id")
34
+ per_diem_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional ID of the per_diem that the expensable belongs to", alias="per_diem_id")
35
+
36
+ class ExpensesGet(BrynQPanderaDataFrameModel):
37
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="id")
38
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The id of the expense's owner", alias="employee_id")
39
+ company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The id of the expense's company", alias="company_id")
40
+ card_payment_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="card_payment_id")
41
+ dispute_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="dispute_id")
42
+ expenses_expensable_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="expenses_expensable_id")
43
+ merchant_name: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="merchant_name")
44
+ user_merchant: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="user_merchant")
45
+ merchant_tin: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="merchant_tin")
46
+ category: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="category")
47
+ subcategory: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="subcategory")
48
+ creation_type: Series[String] = pa.Field(coerce=True, nullable=False, description="How the expense was created, one of 'manual', 'automatic' or 'travelperk'", alias="creation_type")
49
+ reference: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="reference")
50
+ amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional amount in cents", alias="amount")
51
+ currency: Series[String] = pa.Field(coerce=True, nullable=False, description="The currency of the expense", alias="currency")
52
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="status")
53
+ description: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="description")
54
+ effective_on: Series[String] = pa.Field(coerce=True, nullable=False, description="The date when the expense was made", alias="effective_on")
55
+ review_request_at: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="review_request_at")
56
+ status_updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="status_updated_at")
57
+ files: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="files")
58
+ external_authorization_id: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="external_authorization_id")
59
+ expenses_card_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="expenses_card_id")
60
+ card: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="card")
61
+ document_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="document_id")
62
+ signed_document: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="signed_document")
63
+ access_token: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="access_token")
64
+ paid_at: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="paid_at")
65
+ document_number: Series[String] = pa.Field(coerce=True, nullable=True, description="Number of the financial document associated to the expense", alias="document_number")
66
+ document_type: Series[String] = pa.Field(coerce=True, nullable=True, description="Type of the financial document associated to the expense", alias="document_type")
67
+ payment: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="payment")
68
+ payment_method: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="payment_method")
69
+ exchange_rate: Series[Float] = pa.Field(coerce=True, nullable=True, description="", alias="exchange_rate")
70
+ reimbursable_currency: Series[String] = pa.Field(coerce=True, nullable=True, description="The currency of the reimbursable amount", alias="reimbursable_currency")
71
+ reimbursable_amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The optional reimbursable amount in cents", alias="reimbursable_amount")
72
+ taxes: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="taxes")
73
+ category_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="category_id")
74
+ ledger_account_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="ledger_account_id")
75
+
76
+ class MileagesGet(BrynQPanderaDataFrameModel):
77
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="id")
78
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="employee_id")
79
+ company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="company_id")
80
+ expenses_expensable_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="expenses_expensable_id")
81
+ category: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="category")
82
+ subcategory: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="subcategory")
83
+ category_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="category_id")
84
+ amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="amount")
85
+ currency: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="currency")
86
+ reimbursable_amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The amount to be reimbursed for the mileage in cents.", alias="reimbursable_amount")
87
+ reimbursable_currency: Series[String] = pa.Field(coerce=True, nullable=True, description="The currency for the reimbursable amount.", alias="reimbursable_currency")
88
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="status")
89
+ mileage: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="mileage")
90
+ units: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="units")
91
+ rate: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="rate")
92
+ from: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="from")
93
+ to: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="to")
94
+ description: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="description")
95
+ effective_on: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="effective_on")
96
+ review_request_at: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="review_request_at")
97
+ files: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="files")
98
+ paid_at: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="paid_at")
99
+ payment: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="payment")
100
+ ledger_account_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="ledger_account_id")
101
+ round_trip: Series[Bool] = pa.Field(coerce=True, nullable=True, description="Indicates if the mileage is a round trip", alias="round_trip")
102
+ origin_longitude: Series[String] = pa.Field(coerce=True, nullable=True, description="The longitude of the origin of the mileage", alias="origin_longitude")
103
+ origin_latitude: Series[String] = pa.Field(coerce=True, nullable=True, description="The latitude of the origin of the mileage", alias="origin_latitude")
104
+ destination_longitude: Series[String] = pa.Field(coerce=True, nullable=True, description="The longitude of the destination of the mileage", alias="destination_longitude")
105
+ destination_latitude: Series[String] = pa.Field(coerce=True, nullable=True, description="The latitude of the destination of the mileage", alias="destination_latitude")
106
+ calculated_mileage: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The calculated mileage between origin and destination in decameters/10-milers", alias="calculated_mileage")
107
+
108
+ class Per_diemsGet(BrynQPanderaDataFrameModel):
109
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The ID of the per diem.", alias="id")
110
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The ID of the employee the per diem is for.", alias="employee_id")
111
+ company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The ID of the company the per diem is for.", alias="company_id")
112
+ expenses_expensable_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The ID of the expensable the per diem is for.", alias="expenses_expensable_id")
113
+ end_date: Series[String] = pa.Field(coerce=True, nullable=True, description="The end date of the per diem.", alias="end_date")
114
+ start_date: Series[String] = pa.Field(coerce=True, nullable=True, description="The start date of the per diem.", alias="start_date")
115
+ from: Series[String] = pa.Field(coerce=True, nullable=True, description="The location the per diem is from.", alias="from")
116
+ to: Series[String] = pa.Field(coerce=True, nullable=True, description="The location the per diem is to.", alias="to")
117
+ ledger_account_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The ID of the ledger account the per diem is for.", alias="ledger_account_id")
118
+ amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The amount of the per diem.", alias="amount")
119
+ currency: Series[String] = pa.Field(coerce=True, nullable=False, description="The currency for the reimbursable amount.", alias="currency")
120
+ reimbursable_amount: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="The amount to be reimbursed by the per diem in cents.", alias="reimbursable_amount")
121
+ reimbursable_currency: Series[String] = pa.Field(coerce=True, nullable=True, description="The currency for the reimbursable amount.", alias="reimbursable_currency")
122
+ payment: Series[String] = pa.Field(coerce=True, nullable=False, description="The payment method for the per diem.", alias="payment")
123
+ paid_at: Series[String] = pa.Field(coerce=True, nullable=True, description="The date the per diem was paid.", alias="paid_at")
124
+ files: Series[String] = pa.Field(coerce=True, nullable=False, description="The files attached to the per diem.", alias="files")
125
+ review_request_at: Series[String] = pa.Field(coerce=True, nullable=True, description="The date the per diem was requested for review.", alias="review_request_at")
126
+ effective_on: Series[String] = pa.Field(coerce=True, nullable=True, description="The date the per diem is effective on.", alias="effective_on")
127
+ description: Series[String] = pa.Field(coerce=True, nullable=True, description="The description of the per diem.", alias="description")
128
+ category: Series[String] = pa.Field(coerce=True, nullable=True, description="The category of the per diem.", alias="category")
129
+ subcategory: Series[String] = pa.Field(coerce=True, nullable=True, description="The subcategory of the per diem.", alias="subcategory")
130
+ status: Series[String] = pa.Field(coerce=True, nullable=False, description="The status of the per diem.", alias="status")
131
+ rates: Series[String] = pa.Field(coerce=True, nullable=False, description="The rates for the per diem.", alias="rates")
132
+
133
+ class ExpensablesDelete(BaseModel):
134
+ id: int = Field(..., description="ID", alias="id")
135
+
136
+ class ExpensesDelete(BaseModel):
137
+ id: int = Field(..., description="ID", alias="id")
138
+
139
+ class MileagesDelete(BaseModel):
140
+ id: int = Field(..., description="ID", alias="id")
141
+
142
+ class Per_diemsDelete(BaseModel):
143
+ id: int = Field(..., description="ID", alias="id")
144
+
@@ -0,0 +1,33 @@
1
+ # Auto-generated schemas for category: family_situation
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 Family_situationGet(BrynQPanderaDataFrameModel):
12
+ id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="ID of the family situation.", alias="id")
13
+ employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Employee id of the family situation.", alias="employee_id")
14
+ civil_status: Series[String] = pa.Field(coerce=True, nullable=True, description="Civil status of the employee.", alias="civil_status")
15
+ number_of_dependants: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Number of dependants of the employee.", alias="number_of_dependants")
16
+
17
+ class _Annotation:
18
+ primary_key = "id"
19
+ foreign_keys = {
20
+ "employee_id": {
21
+ "parent_schema": "EmployeesGet",
22
+ "parent_column": "id",
23
+ "cardinality": "N:1"
24
+ }
25
+ }
26
+
27
+ class Family_situationCreate(BaseModel):
28
+ employee_id: int = Field(..., description="Employee id.", alias="employee_id")
29
+ civil_status: Optional[Annotated[str, StringConstraints(pattern=r'^single|cohabitating|divorced|married|unknown|civil_partnership|separated|widow|not_applicable$', strip_whitespace=True)]] = Field(None, description="Civil status of the employee.", alias="civil_status")
30
+ number_of_dependants: Optional[int] = Field(None, description="Number of dependants of the employee.", alias="number_of_dependants")
31
+
32
+ class Family_situationDelete(BaseModel):
33
+ id: int = Field(..., description="ID", alias="id")