Skip to main content

Type alias: SubmitClassification

SubmitClassification = SubmitStatus | "rejected" | "unconfirmed"

How a raw gateway envelope classifies:

  • 'executed': error === false and data.mode === 'sync' (the executed result came back).
  • 'queued': error === false, data.mode === 'queued' and data.uniqueKey is a string.
  • 'rejected': no envelope at all, or error === true: a DEFINITE failure.
  • 'unconfirmed': anything else (error: false with another or no mode, a queued answer with no uniqueKey, an envelope with no boolean error): accepted, outcome not known. It is NOT a rejection and must not be shown as one.

The four are mutually exclusive and exhaustive.