@artsy/cohesion 4.376.0 → 4.377.0--canary.722.15410.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.
@@ -59,6 +59,7 @@ export * from "./os/Events/InstagramEditor";
59
59
  export * from "./os/Events/InventoryTable";
60
60
  export * from "./os/Events/MaterialsEditor";
61
61
  export * from "./os/Events/MultiAddFlow";
62
+ export * from "./os/Events/OnboardingFlow";
62
63
  export * from "./os/Events/Submit";
63
64
  export * from "./os/Events/Toggle";
64
65
  export * from "./os/Values/OsContextModule";
@@ -628,6 +628,18 @@ Object.keys(_MultiAddFlow).forEach(function (key) {
628
628
  });
629
629
  });
630
630
 
631
+ var _OnboardingFlow = require("./os/Events/OnboardingFlow");
632
+
633
+ Object.keys(_OnboardingFlow).forEach(function (key) {
634
+ if (key === "default" || key === "__esModule") return;
635
+ Object.defineProperty(exports, key, {
636
+ enumerable: true,
637
+ get: function get() {
638
+ return _OnboardingFlow[key];
639
+ }
640
+ });
641
+ });
642
+
631
643
  var _Submit = require("./os/Events/Submit");
632
644
 
633
645
  Object.keys(_Submit).forEach(function (key) {
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Schemas describing Art OS Onboarding Flow events
3
+ * @packageDocumentation
4
+ */
5
+ import { OsContextModule } from "../Values/OsContextModule";
6
+ import { OsOwnerType } from "../Values/OsOwnerType";
7
+ import { OsActionType } from "./index";
8
+ /**
9
+ * A partner clicks the "Show me how" link on a Getting Started checklist step
10
+ * to open the guidance for that step.
11
+ *
12
+ * @example
13
+ * ```
14
+ * {
15
+ * action: "clickedShowMeHow",
16
+ * context_module: "onboardingFlow",
17
+ * context_page_owner_type: "inventory",
18
+ * step: "create an artwork"
19
+ * }
20
+ * ```
21
+ */
22
+ export interface ClickedShowMeHow {
23
+ action: OsActionType.clickedShowMeHow;
24
+ context_module: OsContextModule.onboardingFlow;
25
+ context_page_owner_type: OsOwnerType.collection | OsOwnerType.inventory;
26
+ step: string;
27
+ }
28
+ /**
29
+ * Fires when the partner completes the final remaining step of the Getting Started
30
+ * checklist — the "🎉 You're all set!" moment (10 of 10). If the checklist gains
31
+ * steps later, completion recomputes and this event may re-fire when the new full
32
+ * set is completed.
33
+ *
34
+ * @example
35
+ * ```
36
+ * {
37
+ * action: "completedOnboarding",
38
+ * context_module: "onboardingFlow",
39
+ * context_page_owner_type: "inventory",
40
+ * total_steps: 10
41
+ * }
42
+ * ```
43
+ */
44
+ export interface CompletedGettingStarted {
45
+ action: OsActionType.completedOnboarding;
46
+ context_module: OsContextModule.onboardingFlow;
47
+ context_page_owner_type: OsOwnerType.collection | OsOwnerType.inventory;
48
+ total_steps: number;
49
+ }
50
+ /**
51
+ * Fires each time a Getting Started checklist item is auto-ticked (step completed).
52
+ * Records which step finished and how far the partner has progressed.
53
+ * Onboarding is tracked per-user, not per-gallery.
54
+ *
55
+ * @example
56
+ * ```
57
+ * {
58
+ * action: "progressedOnboarding",
59
+ * completed_step_count: 3,
60
+ * context_module: "onboardingFlow",
61
+ * context_page_owner_type: "inventory",
62
+ * step: "create an artwork",
63
+ * total_steps: 10
64
+ * }
65
+ * ```
66
+ */
67
+ export interface ProgressedGettingStarted {
68
+ action: OsActionType.progressedOnboarding;
69
+ completed_step_count: number;
70
+ context_module: OsContextModule.onboardingFlow;
71
+ context_page_owner_type: OsOwnerType.collection | OsOwnerType.inventory;
72
+ /** Lower-case label matching UI copy (e.g. "create an artwork"). Typed as `string` because steps are backend-defined and expected to evolve. */
73
+ step: string;
74
+ total_steps: number;
75
+ }
76
+ export type OsOnboardingFlow = ClickedShowMeHow | CompletedGettingStarted | ProgressedGettingStarted;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -6,6 +6,7 @@ import { OsInstagramEditor } from "./InstagramEditor";
6
6
  import { OsInventoryTable } from "./InventoryTable";
7
7
  import { OsMaterialsEditor } from "./MaterialsEditor";
8
8
  import { OsMultiAddFlow } from "./MultiAddFlow";
9
+ import { OsOnboardingFlow } from "./OnboardingFlow";
9
10
  import { OsSubmitEvent } from "./Submit";
10
11
  import { OsToggleEvent } from "./Toggle";
11
12
  /**
@@ -13,7 +14,7 @@ import { OsToggleEvent } from "./Toggle";
13
14
  *
14
15
  * Each event describes one ActionType
15
16
  */
16
- export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsFilterSortSearch | OsInstagramEditor | OsInventoryTable | OsMaterialsEditor | OsSubmitEvent | OsToggleEvent;
17
+ export type OsEvent = ClickedAddBrandKitFile | ClickedBrandKitColor | ClickedBrandKitFont | ClickedSaveBrandKit | OsClickEvent | OsConnectedAppsFlow | OsFilterSortSearch | OsInstagramEditor | OsInventoryTable | OsMaterialsEditor | OsMultiAddFlow | OsOnboardingFlow | OsSubmitEvent | OsToggleEvent;
17
18
  /**
18
19
  * List of all Art OS actions
19
20
  *
@@ -117,6 +118,10 @@ export declare enum OsActionType {
117
118
  * Corresponds to {@link OsInstagramEditor}
118
119
  */
119
120
  clickedPublishConfirmation = "clickedPublishConfirmation",
121
+ /**
122
+ * Corresponds to {@link ClickedShowMeHow}
123
+ */
124
+ clickedShowMeHow = "clickedShowMeHow",
120
125
  /**
121
126
  * Corresponds to {@link OsInstagramEditor}
122
127
  */
@@ -129,6 +134,10 @@ export declare enum OsActionType {
129
134
  * Corresponds to {@link CompletedArtworkImport}
130
135
  */
131
136
  completedArtworkImport = "completedArtworkImport",
137
+ /**
138
+ * Corresponds to {@link CompletedGettingStarted}
139
+ */
140
+ completedOnboarding = "completedOnboarding",
132
141
  /**
133
142
  * Corresponds to {@link ConvertedArtworkToUnique}
134
143
  */
@@ -181,6 +190,10 @@ export declare enum OsActionType {
181
190
  * Corresponds to {@link MovedArtworksBetweenLists}
182
191
  */
183
192
  movedArtworksBetweenLists = "movedArtworksBetweenLists",
193
+ /**
194
+ * Corresponds to {@link ProgressedGettingStarted}
195
+ */
196
+ progressedOnboarding = "progressedOnboarding",
184
197
  /**
185
198
  * Corresponds to {@link OsInventoryTable}
186
199
  */
@@ -45,9 +45,11 @@ exports.OsActionType = OsActionType;
45
45
  OsActionType["clickedImagesModal"] = "clickedImagesModal";
46
46
  OsActionType["clickedOpenList"] = "clickedOpenList";
47
47
  OsActionType["clickedPublishConfirmation"] = "clickedPublishConfirmation";
48
+ OsActionType["clickedShowMeHow"] = "clickedShowMeHow";
48
49
  OsActionType["clickedUploadImageBank"] = "clickedUploadImageBank";
49
50
  OsActionType["completedArtworkDistribution"] = "completedArtworkDistribution";
50
51
  OsActionType["completedArtworkImport"] = "completedArtworkImport";
52
+ OsActionType["completedOnboarding"] = "completedOnboarding";
51
53
  OsActionType["convertedArtworkToUnique"] = "convertedArtworkToUnique";
52
54
  OsActionType["createdEditionSet"] = "createdEditionSet";
53
55
  OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
@@ -61,6 +63,7 @@ exports.OsActionType = OsActionType;
61
63
  OsActionType["editedArtworkField"] = "editedArtworkField";
62
64
  OsActionType["editedInventoryField"] = "editedInventoryField";
63
65
  OsActionType["movedArtworksBetweenLists"] = "movedArtworksBetweenLists";
66
+ OsActionType["progressedOnboarding"] = "progressedOnboarding";
64
67
  OsActionType["removedArtworkDocument"] = "removedArtworkDocument";
65
68
  OsActionType["removedFilter"] = "removedFilter";
66
69
  OsActionType["removedArtworksFromList"] = "removedArtworksFromList";
@@ -32,6 +32,7 @@ export declare enum OsContextModule {
32
32
  materialsEditor = "materialsEditor",
33
33
  multiAdd = "multiAdd",
34
34
  multiAddReview = "multiAddReview",
35
+ onboardingFlow = "onboardingFlow",
35
36
  publishConfirmationModal = "publishConfirmationModal",
36
37
  tableActions = "tableActions"
37
38
  }
@@ -42,6 +42,7 @@ exports.OsContextModule = OsContextModule;
42
42
  OsContextModule["materialsEditor"] = "materialsEditor";
43
43
  OsContextModule["multiAdd"] = "multiAdd";
44
44
  OsContextModule["multiAddReview"] = "multiAddReview";
45
+ OsContextModule["onboardingFlow"] = "onboardingFlow";
45
46
  OsContextModule["publishConfirmationModal"] = "publishConfirmationModal";
46
47
  OsContextModule["tableActions"] = "tableActions";
47
48
  })(OsContextModule || (exports.OsContextModule = OsContextModule = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.376.0",
3
+ "version": "4.377.0--canary.722.15410.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {