@eveble/eveble
Hierarchy
Statusful
↳ Entity
Implemented by
Index
Properties
Methods
Properties
status
• status: Status
Methods
getSelectableStatuses
▸ getSelectableStatuses(): Record‹string, Status›
Returns: Record‹string, Status›
▸ getSelectableStatuses(): Record‹string, Status›
Returns: Record‹string, Status›
getStatus
▸ getStatus(): Status
Returns: Status
▸ getStatus(): Status
Returns: Status
hasStatus
▸ hasStatus(): boolean
Returns: boolean
▸ hasStatus(): boolean
Returns: boolean
isInOneOfStatuses
▸ isInOneOfStatuses(status
: Status | Status[]): boolean
Parameters:
Name | Type |
---|---|
status | Status | Status[] |
Returns: boolean
▸ isInOneOfStatuses(status
: Status | Status[]): boolean
Parameters:
Name | Type |
---|---|
status | Status | Status[] |
Returns: boolean
isInStatus
▸ isInStatus(status
: Status | Status[]): boolean
Parameters:
Name | Type |
---|---|
status | Status | Status[] |
Returns: boolean
▸ isInStatus(status
: Status | Status[]): boolean
Parameters:
Name | Type |
---|---|
status | Status | Status[] |
Returns: boolean
setStatus
▸ setStatus(status
: Status): void
Parameters:
Name | Type |
---|---|
status | Status |
Returns: void
▸ setStatus(status
: Status): void
Parameters:
Name | Type |
---|---|
status | Status |
Returns: void
validateStatus
▸ validateStatus(statusOrStatuses
: Status | Status[], error?
: Error): boolean
Parameters:
Name | Type |
---|---|
statusOrStatuses | Status | Status[] |
error? | Error |
Returns: boolean
▸ validateStatus(statusOrStatuses
: Status | Status[], error?
: Error): boolean
Parameters:
Name | Type |
---|---|
statusOrStatuses | Status | Status[] |
error? | Error |
Returns: boolean