All files / lib/packages/shared-types/seatool-statics SPW_Status.ts

100% Statements 18/18
100% Branches 2/2
100% Functions 2/2
100% Lines 16/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36215x 105x 105x 105x 105x 105x 105x 105x 105x 105x 105x 105x   105x 105x 105x     215x                                  
export enum SeatoolSpwStatusEnum {
  Pending = 1,
  PendingRAI = 2,
  PendingOffTheClock = 3,
  Approved = 4,
  Disapproved = 5,
  Withdrawn = 6,
  Terminated = 7,
  PendingConcurrence = 8,
  Unsubmitted = 9,
  PendingFinance = 10,
  PendingApproval = 11,
  // These are for placeholder statuses. Seatool expects a number returned for the zod object.
  WithdrawalRequested = 12,
  FormalRAIResponseWithdrawalRequested = 13,
  Submitted = 14,
}
// seatool authorities and authority ids.
export const SEATOOL_SPW_STATUS: { [key: string]: string } = {
  "1": "Pending",
  "2": "Pending-RAI",
  "3": "Pending-Off the Clock",
  "4": "Approved",
  "5": "Disapproved",
  "6": "Withdrawn",
  "7": "Terminated",
  "8": "Pending-Concurrence",
  "9": "Unsubmitted",
  "10": "Pending-Finance",
  "11": "Pending-Approval",
  // These are for our placeholder statuses.  Seatool expects a number returned for the zod object.
  "12": "Withdrawal Requested",
  "13": "Formal RAI Response - Withdrawal Requested",
  "14": "Submitted",
};