@artsy/cohesion 4.231.0 → 4.232.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v4.232.0 (Tue Feb 11 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat(EMI-2276): adding estimate_available for when widget fails [#557](https://github.com/artsy/cohesion/pull/557) ([@xander-pero](https://github.com/xander-pero))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@xander-pero](https://github.com/xander-pero)
10
+
11
+ ---
12
+
1
13
  # v4.231.0 (Wed Feb 05 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -294,23 +294,24 @@ export interface CreateAlertReminderMessageViewed {
294
294
  context_module: ContextModule.artistArtworksCreateAlertReminderMessage;
295
295
  }
296
296
  /**
297
- * User sees a shipping estimate
297
+ * User sees a shipping estimate. estimate_available = false when artwork is disqualified
298
+ * from arta (due to size, weight, origin country) and therefore does not show an estimate
298
299
  *
299
300
  * This schema describes events sent to segment from [[ArtsyShippingEstimateViewed]]
300
301
  *
301
302
  * @example
302
303
  * ```
303
304
  * {
304
- * "action": "shippingEstimateViewed",
305
- * "context_page_owner_type": "artwork",
306
- * context_page_owner_id: "58de681f275b2464fcdde097",
307
- * context_page_owner_slug: "damien-hirst",
308
- * "origin": "New York, NY, US",
309
- * "destination": "Chicago, IL, US",
310
- * "minimum_estimate": 24
311
- * "maximum_estimate": 78
312
- * "estimate_currency": "USD"
313
- *
305
+ * action: "shippingEstimateViewed",
306
+ * context_page_owner_type: "artwork",
307
+ * context_page_owner_id: "58de681f275b2464fcdde097",
308
+ * context_page_owner_slug: "damien-hirst",
309
+ * origin: "New York, NY, US",
310
+ * destination: "Chicago, IL, US",
311
+ * estimate_available: true | false
312
+ * minimum_estimate: 24 | null
313
+ * maximum_estimate: 78 | null
314
+ * estimate_currency: "USD"
314
315
  * }
315
316
  * ```
316
317
  */
@@ -321,7 +322,8 @@ export interface ShippingEstimateViewed {
321
322
  context_page_owner_slug: string;
322
323
  origin: string;
323
324
  destination: string;
324
- minimum_estimate: number;
325
+ estimate_available: boolean;
326
+ minimum_estimate?: number | null;
325
327
  maximum_estimate?: number | null;
326
328
  estimate_currency: string;
327
329
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.231.0",
3
+ "version": "4.232.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {