cs2-inventory-resolver 0.3.8 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,6 +63,19 @@ Returns `null` if the item could not be identified.
63
63
  | `entity` | `ItemEntity` | Item type (`skin`, `crate`, `key`, `collectible`, etc.) |
64
64
  | `rarity` | `{id, name, color} \| null` | Rarity info or `null` |
65
65
  | `marketable` | `boolean` | Whether the item is marketable on Steam |
66
+ | `status` | `TradeStatus` | Trade state of this instance (see below) |
67
+ | `trade_hold_expires` | `string \| null` | ISO 8601 trade-hold expiry, or `null` |
68
+
69
+ #### Trade status (`TradeStatus`)
70
+
71
+ Derived from attribute `312` (`trade_protected_escrow_date`). Items that are not
72
+ `'tradable'` cannot be moved into or out of a storage unit.
73
+
74
+ | Value | Meaning | `trade_hold_expires` |
75
+ |-------|---------|--------------------|
76
+ | `'tradable'` | No hold — freely tradable and movable (attribute absent) | `null` |
77
+ | `'market_listed'` | Listed on the Steam Community Market, kept in the inventory until it sells (attribute is `0`) | `null` |
78
+ | `'trade_hold'` | Under a trade-protection / escrow hold (attribute is a future timestamp) | ISO date |
66
79
 
67
80
  ### `getAttributeUint32(item, attrDefIndex)`
68
81