CONVERTIBLE PREFERRED STOCK - Future Tranche Right (Details) - USD ($) $ in Thousands |
3 Months Ended | ||||
|---|---|---|---|---|---|
Apr. 06, 2021 |
Apr. 30, 2022 |
Apr. 30, 2021 |
Jan. 31, 2022 |
May 07, 2020 |
|
| Subsidiary, Sale of Stock [Line Items] | |||||
| Future tranche right, fair value | $ 3,400 | ||||
| Temporary equity | $ 436,321 | $ 436,321 | |||
| Change in fair value of future tranche right | 0 | $ (15,810) | |||
| Series A Preferred Stock | |||||
| Subsidiary, Sale of Stock [Line Items] | |||||
| Temporary equity | 200,628 | 200,628 | $ 203,400 | ||
| Series B Preferred Stock | |||||
| Subsidiary, Sale of Stock [Line Items] | |||||
| Temporary equity | $ 237,000 | $ 235,693 | $ 235,693 | ||
| Change in fair value of future tranche right | $ 15,800 | ||||
| Future tranche right | $ 37,000 | ||||
| Series B Preferred Stock | Series B Private Placement | |||||
| Subsidiary, Sale of Stock [Line Items] | |||||
| Sale of stock, number of shares issued (in shares) | 200,000 | ||||