All files / publisher/release constants.js

100% Statements 14/14
100% Branches 0/0
100% Functions 0/0
100% Lines 14/14

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 36 37 38 39 40 41 42 43 44 45 46 4710x 10x 10x 10x 10x 10x   10x 10x       10x 10x 10x   10x     10x   10x                                                  
const STABLE = "stable";
const CANDIDATE = "candidate";
const BETA = "beta";
const EDGE = "edge";
const AVAILABLE = "AVAILABLE"; // fake 'risk' with all available revisions
const BUILD = "BUILD"; // fake 'risk' for build sets
 
const RISKS = [STABLE, CANDIDATE, BETA, EDGE];
const RISKS_WITH_AVAILABLE = [STABLE, CANDIDATE, BETA, EDGE, AVAILABLE];
 
// available revisions select values
const AVAILABLE_REVISIONS_SELECT_UNRELEASED =
  "AVAILABLE_REVISIONS_SELECT_UNRELEASED";
const AVAILABLE_REVISIONS_SELECT_RECENT = "AVAILABLE_REVISIONS_SELECT_RECENT";
const AVAILABLE_REVISIONS_SELECT_ALL = "AVAILABLE_REVISIONS_SELECT_ALL";
const AVAILABLE_REVISIONS_SELECT_LAUNCHPAD =
  "AVAILABLE_REVISIONS_SELECT_LAUNCHPAD";
 
const DEFAULT_ERROR_MESSAGE =
  "There was an error while processing your request, please try again later.";
 
const REVISION_STATUS = {
  PUBLISHED: "Published",
  UNPUBLISHED: "Unpublished",
  MANUAL_REVIEW_PENDING: "ManualReviewPending",
  NEEDS_INFORMATION: "NeedsInformation",
  AUTOMATICALLY_REJECTED: "AutomaticallyRejected",
  REJECTED: "Rejected",
};
 
export {
  AVAILABLE_REVISIONS_SELECT_LAUNCHPAD,
  AVAILABLE_REVISIONS_SELECT_UNRELEASED,
  AVAILABLE_REVISIONS_SELECT_RECENT,
  AVAILABLE_REVISIONS_SELECT_ALL,
  DEFAULT_ERROR_MESSAGE,
  STABLE,
  CANDIDATE,
  BETA,
  EDGE,
  AVAILABLE,
  BUILD,
  RISKS,
  RISKS_WITH_AVAILABLE,
  REVISION_STATUS,
};