mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-09 07:08:20 +00:00
Merge branch 'WorkflowChange' of https://github.com/Tria-plc/emaui into estif-branch-1
This commit is contained in:
@@ -821,18 +821,29 @@ export interface Department {
|
||||
|
||||
export type RankCertificateCategory = "COC" | "COP";
|
||||
|
||||
/**
|
||||
* Which STCW ship-size/power limitation a CoC rank row is issued under —
|
||||
* every CoC rank exists twice, once per tier, plus a third untiered row kept
|
||||
* only so licences issued before the tier split still resolve to a catalogue
|
||||
* entry. `null` for a CoP rank (no such limitation applies) and for that
|
||||
* untiered legacy CoC row — never for a rank meant to be offered as a new
|
||||
* choice going forward.
|
||||
*/
|
||||
export type RankTier = "ABOVE" | "BELOW";
|
||||
|
||||
/** One rung of a CoC/CoP ladder for a department. */
|
||||
export interface Rank {
|
||||
id: string;
|
||||
departmentId: string;
|
||||
certificateCategory: RankCertificateCategory;
|
||||
/** Value stored on License.rank / Certification.rankKey, e.g. "CHIEF_MATE". */
|
||||
/** Value stored on License.rank / Certification.rankKey, e.g. "CHIEF_MATE_ABOVE". */
|
||||
key: string;
|
||||
name: Bilingual;
|
||||
/** Rung position within its department+category ladder. 0 is the entry rank. */
|
||||
ladderOrder: number;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
tier: RankTier | null;
|
||||
}
|
||||
|
||||
export interface LicenseTemplate {
|
||||
|
||||
Reference in New Issue
Block a user