@artsy/cohesion 4.388.0 → 4.390.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.390.0 (Fri Aug 14 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add ArtOS column visibility tracking events [#737](https://github.com/artsy/cohesion/pull/737) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
13
+ # v4.389.0 (Mon Aug 10 2026)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - feat: Add OsReorderedInventoryTableColumns event for column drag-reorder [#736](https://github.com/artsy/cohesion/pull/736) ([@olerichter00](https://github.com/olerichter00))
18
+
19
+ #### Authors: 1
20
+
21
+ - Ole ([@olerichter00](https://github.com/olerichter00))
22
+
23
+ ---
24
+
1
25
  # v4.388.0 (Wed Jul 29 2026)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -110,4 +110,4 @@ export interface ClickedOpenList {
110
110
  list_type: string;
111
111
  source: string;
112
112
  }
113
- export type OsClickEvent = ClickedActionsDropdown | ClickedAddUniqueWork | ClickedAddEditionSet | ClickedCancelBulkEdit | ClickedOpenList;
113
+ export type OsClickEvent = ClickedActionsDropdown | ClickedAddEditionSet | ClickedAddUniqueWork | ClickedCancelBulkEdit | ClickedOpenList;
@@ -1,6 +1,7 @@
1
1
  import { OsContextModule } from "../Values/OsContextModule";
2
2
  import { OsOwnerType } from "../Values/OsOwnerType";
3
3
  import { OsActionType } from ".";
4
+ import { ChangedInventoryTableColumnVisibility } from "./Submit";
4
5
  /**
5
6
  * Schemas describing Art OS Inventory Table events
6
7
  * @packageDocumentation
@@ -351,4 +352,37 @@ export interface EditedInventoryField {
351
352
  /** false e.g. for "Not For Sale" (OS-only value that does not push to the destination) */
352
353
  did_push_to_cms: boolean;
353
354
  }
354
- export type OsInventoryTable = EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsSavedArtworkImages;
355
+ /**
356
+ * A partner drags a column header and drops it in a new position in the inventory
357
+ * table. Fires once per completed drop (not per drag-over). The new order is
358
+ * persisted to localStorage, keyed per browser/device.
359
+ *
360
+ * This schema describes events sent to Segment from [[OsReorderedInventoryTableColumns]]
361
+ *
362
+ * @example
363
+ * ```
364
+ * {
365
+ * action: "reorderedInventoryTableColumns",
366
+ * context_module: "artworkTable",
367
+ * context_page_owner_type: "inventory",
368
+ * column: "price",
369
+ * from_index: 4,
370
+ * to_index: 1,
371
+ * new_order: ["title", "price", "artist", "medium", "dimensions"]
372
+ * }
373
+ * ```
374
+ */
375
+ export interface OsReorderedInventoryTableColumns {
376
+ action: OsActionType.reorderedInventoryTableColumns;
377
+ context_module: OsContextModule.artworkTable;
378
+ context_page_owner_type: OsOwnerType;
379
+ /** The key of the column that was dragged */
380
+ column: string;
381
+ /** 0-based position among reorderable (non-pinned) columns before the move */
382
+ from_index: number;
383
+ /** 0-based position among reorderable (non-pinned) columns after the move */
384
+ to_index: number;
385
+ /** Full resulting column key order (reorderable columns only, pinned columns excluded) */
386
+ new_order: string[];
387
+ }
388
+ export type OsInventoryTable = ChangedInventoryTableColumnVisibility | EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
@@ -351,6 +351,45 @@ export interface UpdatedEditionSet {
351
351
  variants_edited: number;
352
352
  variants_removed: number;
353
353
  }
354
+ /**
355
+ * A partner changes column visibility either by clicking "Done" in the
356
+ * column-visibility dropdown panel or by right-clicking a header and selecting
357
+ * "Hide column". Fires on persist to localStorage. `mode` distinguishes the two
358
+ * entry points: `dropdown` for the panel's "Done" button, `header` for the
359
+ * right-click context menu.
360
+ *
361
+ * @example Dropdown mode
362
+ * ```
363
+ * {
364
+ * action: "changedInventoryTableColumnVisibility",
365
+ * context_module: "artworkTable",
366
+ * context_page_owner_type: "inventory",
367
+ * hidden_columns: ["inventoryId", "provenance"],
368
+ * visible_columns: ["title", "artist", "price", "medium", "dimensions"],
369
+ * mode: "dropdown"
370
+ * }
371
+ * ```
372
+ *
373
+ * @example Header context menu mode
374
+ * ```
375
+ * {
376
+ * action: "changedInventoryTableColumnVisibility",
377
+ * context_module: "artworkTable",
378
+ * context_page_owner_type: "inventory",
379
+ * hidden_columns: ["provenance"],
380
+ * visible_columns: ["title", "artist", "price", "medium", "dimensions"],
381
+ * mode: "header"
382
+ * }
383
+ * ```
384
+ */
385
+ export interface ChangedInventoryTableColumnVisibility {
386
+ action: OsActionType.changedInventoryTableColumnVisibility;
387
+ context_module: OsContextModule.artworkTable;
388
+ context_page_owner_type: OsOwnerType;
389
+ hidden_columns: string[];
390
+ mode: "dropdown" | "header";
391
+ visible_columns: string[];
392
+ }
354
393
  /**
355
394
  * A partner confirms or cancels reverting an edition-set artwork to a unique
356
395
  * work in the Convert to Unique confirmation modal.
@@ -373,4 +412,4 @@ export interface ConvertedArtworkToUnique {
373
412
  context_page_owner_type: OsOwnerType;
374
413
  value: "confirm" | "cancel";
375
414
  }
376
- export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | BulkEditedArtworks | CompletedArtworkDistribution | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | CreatedList | DeletedArtwork | DeletedArtwork | DeletedList | DistributedArtworks | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UpdatedEditionSet | UpdatedList;
415
+ export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | BulkEditedArtworks | ChangedInventoryTableColumnVisibility | CompletedArtworkDistribution | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | CreatedList | DeletedArtwork | DeletedArtwork | DeletedList | DistributedArtworks | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UpdatedEditionSet | UpdatedList;
@@ -22,14 +22,14 @@ export type OsEvent = ClickedAddBrandKitFile | ClickedBrandKitColor | ClickedBra
22
22
  * Each OsActionType corresponds with a table in Redshift.
23
23
  */
24
24
  export declare enum OsActionType {
25
- /**
26
- * Corresponds to {@link OsFilterSortSearch}
27
- */
28
- appliedFilter = "appliedFilter",
29
25
  /**
30
26
  * Corresponds to {@link OsInventoryTable}
31
27
  */
32
28
  addedArtist = "addedArtist",
29
+ /**
30
+ * Corresponds to {@link OsFilterSortSearch}
31
+ */
32
+ appliedFilter = "appliedFilter",
33
33
  /**
34
34
  * Corresponds to {@link OsInventoryTable}
35
35
  */
@@ -50,6 +50,10 @@ export declare enum OsActionType {
50
50
  * Corresponds to {@link CancelledArtworkImport}
51
51
  */
52
52
  cancelledArtworkImport = "cancelledArtworkImport",
53
+ /**
54
+ * Corresponds to {@link ChangedInventoryTableColumnVisibility}
55
+ */
56
+ changedInventoryTableColumnVisibility = "changedInventoryTableColumnVisibility",
53
57
  /**
54
58
  * Corresponds to {@link OsClickedActionsDropdown}
55
59
  */
@@ -79,10 +83,6 @@ export declare enum OsActionType {
79
83
  * Corresponds to {@link ClickedCancelBulkEdit}
80
84
  */
81
85
  clickedCancelBulkEdit = "clickedCancelBulkEdit",
82
- /**
83
- * Corresponds to {@link OsFilterSortSearch}
84
- */
85
- clickedFilterDrawer = "clickedFilterDrawer",
86
86
  /**
87
87
  * Corresponds to {@link ClickedConnectAccount}
88
88
  */
@@ -91,6 +91,10 @@ export declare enum OsActionType {
91
91
  * Corresponds to {@link ClickedConnectAccountModal}
92
92
  */
93
93
  clickedConnectAccountModal = "clickedConnectAccountModal",
94
+ /**
95
+ * Corresponds to {@link OsFilterSortSearch}
96
+ */
97
+ clickedFilterDrawer = "clickedFilterDrawer",
94
98
  /**
95
99
  * Corresponds to {@link OsInstagramEditor}
96
100
  */
@@ -220,6 +224,10 @@ export declare enum OsActionType {
220
224
  * Corresponds to {@link RemovedArtworksFromList}
221
225
  */
222
226
  removedArtworksFromList = "removedArtworksFromList",
227
+ /**
228
+ * Corresponds to {@link OsInventoryTable}
229
+ */
230
+ reorderedInventoryTableColumns = "reorderedInventoryTableColumns",
223
231
  /**
224
232
  * Corresponds to {@link ResumedArtworkImport}
225
233
  */
@@ -20,13 +20,14 @@ var OsActionType;
20
20
  exports.OsActionType = OsActionType;
21
21
 
22
22
  (function (OsActionType) {
23
- OsActionType["appliedFilter"] = "appliedFilter";
24
23
  OsActionType["addedArtist"] = "addedArtist";
24
+ OsActionType["appliedFilter"] = "appliedFilter";
25
25
  OsActionType["addedArtworkDocument"] = "addedArtworkDocument";
26
26
  OsActionType["addedArtworksToList"] = "addedArtworksToList";
27
27
  OsActionType["addedLocation"] = "addedLocation";
28
28
  OsActionType["bulkEditedArtworks"] = "bulkEditedArtworks";
29
29
  OsActionType["cancelledArtworkImport"] = "cancelledArtworkImport";
30
+ OsActionType["changedInventoryTableColumnVisibility"] = "changedInventoryTableColumnVisibility";
30
31
  OsActionType["clickedActionsDropdown"] = "clickedActionsDropdown";
31
32
  OsActionType["clickedAddEditionSet"] = "clickedAddEditionSet";
32
33
  OsActionType["clickedAddFromFile"] = "clickedAddFromFile";
@@ -35,9 +36,9 @@ exports.OsActionType = OsActionType;
35
36
  OsActionType["clickedAspectRatio"] = "clickedAspectRatio";
36
37
  OsActionType["clickedBrandKitModal"] = "clickedBrandKitModal";
37
38
  OsActionType["clickedCancelBulkEdit"] = "clickedCancelBulkEdit";
38
- OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
39
39
  OsActionType["clickedConnectAccount"] = "clickedConnectAccount";
40
40
  OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
41
+ OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
41
42
  OsActionType["clickedConnectModal"] = "clickedConnectModal";
42
43
  OsActionType["clickedEditionSetRow"] = "clickedEditionSetRow";
43
44
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
@@ -70,6 +71,7 @@ exports.OsActionType = OsActionType;
70
71
  OsActionType["removedArtworkDocument"] = "removedArtworkDocument";
71
72
  OsActionType["removedFilter"] = "removedFilter";
72
73
  OsActionType["removedArtworksFromList"] = "removedArtworksFromList";
74
+ OsActionType["reorderedInventoryTableColumns"] = "reorderedInventoryTableColumns";
73
75
  OsActionType["resumedArtworkImport"] = "resumedArtworkImport";
74
76
  OsActionType["savedArtworkImages"] = "savedArtworkImages";
75
77
  OsActionType["searchedArtworks"] = "searchedArtworks";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.388.0",
3
+ "version": "4.390.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {