UNPKG

@signiant/media-shuttle-sdk-base

Version:

The base parent sdk behind other media shuttle sdks (e.g. media-shuttle-sdk)

35 lines (34 loc) 1.17 kB
/** * The various states that a transfer can be in. */ var TransferState; (function (TransferState) { /** * The start function has been invoked but the transfer has not yet started. */ TransferState["STARTING"] = "STARTING"; /** * The transfer is in progress. */ TransferState["IN_PROGRESS"] = "IN_PROGRESS"; /** * The cancel operation has been invoked but the cancel is not yet complete. */ TransferState["CANCELING"] = "CANCELING"; /** * The transfer has ended in failure. * * Failed transfers can be manually retried but typically the root cause of the failure (lost internet connection, * firewall blocking ports, bad permission set, etc.) must be addressed before the transfer can succeed. */ TransferState["FAILURE"] = "FAILURE"; /** * The transfer has been canceled by caller action. */ TransferState["CANCELED"] = "CANCELED"; /** * The transfer is successful, and the file should be present at the desired destination. */ TransferState["SUCCESSFUL"] = "SUCCESSFUL"; })(TransferState || (TransferState = {})); export default TransferState;