ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
types/leave
Leave
Interface Leave
interface
Leave
{
id
:
string
;
employeeId
:
string
;
type
:
|
"EMERGENCY"
|
"UNPAID"
|
"PERSONAL"
|
"ANNUAL"
|
"SICK"
|
"MATERNITY"
|
"PATERNITY"
;
startDate
:
string
;
endDate
:
string
;
days
:
number
;
reason
?:
string
;
status
:
"REJECTED"
|
"APPROVED"
|
"CANCELLED"
|
"PENDING"
;
approvedBy
?:
string
;
approvedAt
?:
string
;
rejectedAt
?:
string
;
rejectionReason
?:
string
;
createdAt
:
string
;
updatedAt
:
string
;
employee
?:
{
id
:
string
;
firstName
:
string
;
lastName
:
string
;
employeeNumber
:
string
;
user
?:
{
email
:
string
}
;
}
;
approver
?:
{
id
:
string
;
name
:
string
;
email
:
string
}
;
}
Index
Properties
id
employee
Id
type
start
Date
end
Date
days
reason?
status
approved
By?
approved
At?
rejected
At?
rejection
Reason?
created
At
updated
At
employee?
approver?
Properties
id
id
:
string
employee
Id
employeeId
:
string
type
type
:
|
"EMERGENCY"
|
"UNPAID"
|
"PERSONAL"
|
"ANNUAL"
|
"SICK"
|
"MATERNITY"
|
"PATERNITY"
start
Date
startDate
:
string
end
Date
endDate
:
string
days
days
:
number
Optional
reason
reason
?:
string
status
status
:
"REJECTED"
|
"APPROVED"
|
"CANCELLED"
|
"PENDING"
Optional
approved
By
approvedBy
?:
string
Optional
approved
At
approvedAt
?:
string
Optional
rejected
At
rejectedAt
?:
string
Optional
rejection
Reason
rejectionReason
?:
string
created
At
createdAt
:
string
updated
At
updatedAt
:
string
Optional
employee
employee
?:
{
id
:
string
;
firstName
:
string
;
lastName
:
string
;
employeeNumber
:
string
;
user
?:
{
email
:
string
}
;
}
Optional
approver
approver
?:
{
id
:
string
;
name
:
string
;
email
:
string
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
id
employee
Id
type
start
Date
end
Date
days
reason
status
approved
By
approved
At
rejected
At
rejection
Reason
created
At
updated
At
employee
approver
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...