I have an enum in typscript. I need to convert the value of the enum to string so that I can pass this to an api endpoint. How do I do this? Thanks.
enum RecordStatus {
    CancelledClosed = 102830004,
    Completed = 102830003,
    InProgress = 102830002,
    ShoppingCart = 102830005,
    Submitted = 102830001,
    Unordered = 102830000
}
example:
var submittedStrValue = RecordStatus.Submitted // I want to get "10283001" (note the string value rather than the int value. 
 
    