Skip to content

Commit

Permalink
Merge pull request #56 from apideck-libraries/generator-update
Browse files Browse the repository at this point in the history
Automated update by SDK Generator
  • Loading branch information
thim81 authored Dec 11, 2023
2 parents fce6498 + 7123acb commit ff73b62
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
push:
branches:
- main


permissions:
id-token: write
contents: write

jobs:
release:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

permissions:
id-token: write
contents: write

jobs:
sync-branch:
name: Update generator-update branch
Expand Down
4 changes: 2 additions & 2 deletions docs/apis/HrisApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ with apideck.ApiClient(configuration) as api_client:
company_name="SpaceX",
employment_start_date="2021-10-26",
employment_end_date="2028-10-26",
leaving_reason=None,
leaving_reason="resigned",
employee_number="123456-AB",
employment_status=EmploymentStatus("active"),
employment_role=EmployeeEmploymentRole(
Expand Down Expand Up @@ -2311,7 +2311,7 @@ with apideck.ApiClient(configuration) as api_client:
company_name="SpaceX",
employment_start_date="2021-10-26",
employment_end_date="2028-10-26",
leaving_reason=None,
leaving_reason="resigned",
employee_number="123456-AB",
employment_status=EmploymentStatus("active"),
employment_role=EmployeeEmploymentRole(
Expand Down
2 changes: 1 addition & 1 deletion docs/models/Employee.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Name | Type | Description | Notes
**company_name** | **str, none_type** | The name of the company. | [optional]
**employment_start_date** | **str, none_type** | A Start Date is the date that the employee started working at the company | [optional]
**employment_end_date** | **str, none_type** | An End Date is the date that the employee ended working at the company | [optional]
**leaving_reason** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
**leaving_reason** | **str, none_type** | The reason because the employment ended. | [optional]
**employee_number** | **str, none_type** | An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company. | [optional]
**employment_status** | [**EmploymentStatus**](EmploymentStatus.md) | | [optional]
**employment_role** | [**EmployeeEmploymentRole**](EmployeeEmploymentRole.md) | | [optional]
Expand Down
13 changes: 10 additions & 3 deletions src/apideck/model/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ class Employee(ModelNormal):
"""

allowed_values = {
('leaving_reason',): {
'None': None,
'DISMISSED': "dismissed",
'RESIGNED': "resigned",
'REDUNDANCY': "redundancy",
'OTHER': "other",
},
}

validations = {
Expand Down Expand Up @@ -133,7 +140,7 @@ def openapi_types():
'company_name': (str, none_type,), # noqa: E501
'employment_start_date': (str, none_type,), # noqa: E501
'employment_end_date': (str, none_type,), # noqa: E501
'leaving_reason': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
'leaving_reason': (str, none_type,), # noqa: E501
'employee_number': (str, none_type,), # noqa: E501
'employment_status': (EmploymentStatus,), # noqa: E501
'employment_role': (EmployeeEmploymentRole,), # noqa: E501
Expand Down Expand Up @@ -322,7 +329,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
company_name (str, none_type): The name of the company.. [optional] # noqa: E501
employment_start_date (str, none_type): A Start Date is the date that the employee started working at the company. [optional] # noqa: E501
employment_end_date (str, none_type): An End Date is the date that the employee ended working at the company. [optional] # noqa: E501
leaving_reason (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
leaving_reason (str, none_type): The reason because the employment ended.. [optional] # noqa: E501
employee_number (str, none_type): An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company.. [optional] # noqa: E501
employment_status (EmploymentStatus): [optional] # noqa: E501
employment_role (EmployeeEmploymentRole): [optional] # noqa: E501
Expand Down Expand Up @@ -468,7 +475,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
company_name (str, none_type): The name of the company.. [optional] # noqa: E501
employment_start_date (str, none_type): A Start Date is the date that the employee started working at the company. [optional] # noqa: E501
employment_end_date (str, none_type): An End Date is the date that the employee ended working at the company. [optional] # noqa: E501
leaving_reason (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
leaving_reason (str, none_type): The reason because the employment ended.. [optional] # noqa: E501
employee_number (str, none_type): An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company.. [optional] # noqa: E501
employment_status (EmploymentStatus): [optional] # noqa: E501
employment_role (EmployeeEmploymentRole): [optional] # noqa: E501
Expand Down

0 comments on commit ff73b62

Please sign in to comment.