@artsy/cohesion 4.387.0 → 4.389.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,27 @@
|
|
|
1
|
+
# v4.389.0 (Mon Aug 10 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: Add OsReorderedInventoryTableColumns event for column drag-reorder [#736](https://github.com/artsy/cohesion/pull/736) ([@olerichter00](https://github.com/olerichter00))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Ole ([@olerichter00](https://github.com/olerichter00))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.388.0 (Wed Jul 29 2026)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- chore: Support the new fields tracking in OS Inventory [#735](https://github.com/artsy/cohesion/pull/735) ([@lidimayra](https://github.com/lidimayra))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Lidiane T ([@lidimayra](https://github.com/lidimayra))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.387.0 (Mon Jul 27 2026)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
|
@@ -104,7 +104,7 @@ export interface OsEditedArtworkField {
|
|
|
104
104
|
artwork_id: string;
|
|
105
105
|
/** Present only for edition-set variant rows in the Artsy CMS sub-row */
|
|
106
106
|
edition_set_id?: string;
|
|
107
|
-
field: "artist" | "availability" | "certificateOfAuthenticity" | "dimensions" | "location" | "medium" | "price" | "priceCurrency" | "privateNotes" | "title" | "year";
|
|
107
|
+
field: "artist" | "availability" | "certificateOfAuthenticity" | "description" | "dimensions" | "inventoryId" | "location" | "medium" | "price" | "priceCurrency" | "privateNotes" | "provenance" | "title" | "year";
|
|
108
108
|
/** Omit for privateNotes (free text — don't log contents) */
|
|
109
109
|
old_value?: string;
|
|
110
110
|
/** Omit for privateNotes (free text — don't log contents) */
|
|
@@ -351,4 +351,37 @@ export interface EditedInventoryField {
|
|
|
351
351
|
/** false e.g. for "Not For Sale" (OS-only value that does not push to the destination) */
|
|
352
352
|
did_push_to_cms: boolean;
|
|
353
353
|
}
|
|
354
|
-
|
|
354
|
+
/**
|
|
355
|
+
* A partner drags a column header and drops it in a new position in the inventory
|
|
356
|
+
* table. Fires once per completed drop (not per drag-over). The new order is
|
|
357
|
+
* persisted to localStorage, keyed per browser/device.
|
|
358
|
+
*
|
|
359
|
+
* This schema describes events sent to Segment from [[OsReorderedInventoryTableColumns]]
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* ```
|
|
363
|
+
* {
|
|
364
|
+
* action: "reorderedInventoryTableColumns",
|
|
365
|
+
* context_module: "artworkTable",
|
|
366
|
+
* context_page_owner_type: "inventory",
|
|
367
|
+
* column: "price",
|
|
368
|
+
* from_index: 4,
|
|
369
|
+
* to_index: 1,
|
|
370
|
+
* new_order: ["title", "price", "artist", "medium", "dimensions"]
|
|
371
|
+
* }
|
|
372
|
+
* ```
|
|
373
|
+
*/
|
|
374
|
+
export interface OsReorderedInventoryTableColumns {
|
|
375
|
+
action: OsActionType.reorderedInventoryTableColumns;
|
|
376
|
+
context_module: OsContextModule.artworkTable;
|
|
377
|
+
context_page_owner_type: OsOwnerType;
|
|
378
|
+
/** The key of the column that was dragged */
|
|
379
|
+
column: string;
|
|
380
|
+
/** 0-based position among reorderable (non-pinned) columns before the move */
|
|
381
|
+
from_index: number;
|
|
382
|
+
/** 0-based position among reorderable (non-pinned) columns after the move */
|
|
383
|
+
to_index: number;
|
|
384
|
+
/** Full resulting column key order (reorderable columns only, pinned columns excluded) */
|
|
385
|
+
new_order: string[];
|
|
386
|
+
}
|
|
387
|
+
export type OsInventoryTable = EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -220,6 +220,10 @@ export declare enum OsActionType {
|
|
|
220
220
|
* Corresponds to {@link RemovedArtworksFromList}
|
|
221
221
|
*/
|
|
222
222
|
removedArtworksFromList = "removedArtworksFromList",
|
|
223
|
+
/**
|
|
224
|
+
* Corresponds to {@link OsInventoryTable}
|
|
225
|
+
*/
|
|
226
|
+
reorderedInventoryTableColumns = "reorderedInventoryTableColumns",
|
|
223
227
|
/**
|
|
224
228
|
* Corresponds to {@link ResumedArtworkImport}
|
|
225
229
|
*/
|
|
@@ -70,6 +70,7 @@ exports.OsActionType = OsActionType;
|
|
|
70
70
|
OsActionType["removedArtworkDocument"] = "removedArtworkDocument";
|
|
71
71
|
OsActionType["removedFilter"] = "removedFilter";
|
|
72
72
|
OsActionType["removedArtworksFromList"] = "removedArtworksFromList";
|
|
73
|
+
OsActionType["reorderedInventoryTableColumns"] = "reorderedInventoryTableColumns";
|
|
73
74
|
OsActionType["resumedArtworkImport"] = "resumedArtworkImport";
|
|
74
75
|
OsActionType["savedArtworkImages"] = "savedArtworkImages";
|
|
75
76
|
OsActionType["searchedArtworks"] = "searchedArtworks";
|