@medialane/sdk 0.22.0 → 0.23.0

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/dist/index.d.cts CHANGED
@@ -496,7 +496,15 @@ interface ApiCollectionsQuery {
496
496
  /** Filter by service id. */
497
497
  service?: string;
498
498
  }
499
- type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
499
+ /**
500
+ * Order lifecycle states. **Four canonical values** per `01-core-model §V`.
501
+ *
502
+ * The legacy `"COUNTER_OFFERED"` value was removed in 0.23.0 (audit P0-1
503
+ * Phase D). Counter-offers are linked orders via `parentOrderHash`, not a
504
+ * third lifecycle state on the parent bid. Use `ApiOrder.hasActiveCounterOffer`
505
+ * (added in 0.22.0) for the "this bid has been countered" affordance.
506
+ */
507
+ type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
500
508
  type SortOrder = "price_asc" | "price_desc" | "recent";
501
509
  type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
502
510
  type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
package/dist/index.d.ts CHANGED
@@ -496,7 +496,15 @@ interface ApiCollectionsQuery {
496
496
  /** Filter by service id. */
497
497
  service?: string;
498
498
  }
499
- type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
499
+ /**
500
+ * Order lifecycle states. **Four canonical values** per `01-core-model §V`.
501
+ *
502
+ * The legacy `"COUNTER_OFFERED"` value was removed in 0.23.0 (audit P0-1
503
+ * Phase D). Counter-offers are linked orders via `parentOrderHash`, not a
504
+ * third lifecycle state on the parent bid. Use `ApiOrder.hasActiveCounterOffer`
505
+ * (added in 0.22.0) for the "this bid has been countered" affordance.
506
+ */
507
+ type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
500
508
  type SortOrder = "price_asc" | "price_desc" | "recent";
501
509
  type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
502
510
  type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";