Skip to content

Commit

Permalink
Automated update by SDK Generator version:3.1.0 commit:486999d
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2023
1 parent ea5ee15 commit d5fe627
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
19 changes: 18 additions & 1 deletion src/gen/docs/models/Employee.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Name | Type | Description | Notes
`company_name` | **string** | The name of the company. | [optional]
`employment_start_date` | **string** | A Start Date is the date that the employee started working at the company | [optional]
`employment_end_date` | **string** | An End Date is the date that the employee ended working at the company | [optional]
`leaving_reason` | **string \| Null** | | [optional]
`leaving_reason` | **string** | The reason because the employment ended. | [optional]
`employee_number` | **string** | 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 Expand Up @@ -75,6 +75,21 @@ Name | Type | Description | Notes



<a name="EmployeeLeavingReason"></a>
## Enum: Employee.leaving_reason


* `dismissed` (value: `'dismissed'`)

* `resigned` (value: `'resigned'`)

* `redundancy` (value: `'redundancy'`)

* `other` (value: `'other'`)




## Referenced Types:


Expand All @@ -97,6 +112,8 @@ Name | Type | Description | Notes





* [`EmploymentStatus`](EmploymentStatus.md)
* [`EmployeeEmploymentRole`](EmployeeEmploymentRole.md)

Expand Down
23 changes: 16 additions & 7 deletions src/gen/models/Employee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ export interface Employee {
*/
employment_end_date?: string | null
/**
*
* @type {string | Null}
* The reason because the employment ended.
* @type {string}
* @memberof Employee
*/
leaving_reason?: string | Null | null
leaving_reason?: EmployeeLeavingReason
/**
* An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company.
* @type {string}
Expand Down Expand Up @@ -440,6 +440,17 @@ export interface Employee {
readonly created_at?: Date | null
}

/**
* @export
* @enum {string}
*/
export enum EmployeeLeavingReason {
dismissed = 'dismissed',
resigned = 'resigned',
redundancy = 'redundancy',
other = 'other'
}

export function EmployeeFromJSON(json: any): Employee {
return EmployeeFromJSONTyped(json, false)
}
Expand Down Expand Up @@ -474,9 +485,7 @@ export function EmployeeFromJSONTyped(json: any, ignoreDiscriminator: boolean):
employment_end_date: !exists(json, 'employment_end_date')
? undefined
: json['employment_end_date'],
leaving_reason: !exists(json, 'leaving_reason')
? undefined
: string | NullFromJSON(json['leaving_reason']),
leaving_reason: !exists(json, 'leaving_reason') ? undefined : json['leaving_reason'],
employee_number: !exists(json, 'employee_number') ? undefined : json['employee_number'],
employment_status: !exists(json, 'employment_status')
? undefined
Expand Down Expand Up @@ -597,7 +606,7 @@ export function EmployeeToJSON(value?: Employee | null): any {
company_name: value.company_name,
employment_start_date: value.employment_start_date,
employment_end_date: value.employment_end_date,
leaving_reason: string | NullToJSON(value.leaving_reason),
leaving_reason: value.leaving_reason,
employee_number: value.employee_number,
employment_status: EmploymentStatusToJSON(value.employment_status),
employment_role: EmployeeEmploymentRoleToJSON(value.employment_role),
Expand Down

0 comments on commit d5fe627

Please sign in to comment.