@slicemachine/plugin-kit 0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.6 → 0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.7

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.
@@ -5,20 +5,9 @@ import type { ExtendSliceMachineHook, SliceMachinePluginOptions, SliceMachineHoo
5
5
  */
6
6
  export type CustomTypeUpdateHookData = {
7
7
  model: CustomType;
8
- /** Details/context about the changes made to the custom type. */
9
- updateDetails?: {
10
- fieldDeletedOrIdChanged?: {
11
- /**
12
- * Previous path of the changed field. Can be used to identify the field
13
- * that had an API ID renamed or was deleted (e.g. ["page", "title"])
14
- */
15
- previousPath: string[];
16
- /**
17
- * New path of the changed field. Can be used to identify the field that
18
- * had an API ID renamed or was deleted (e.g. ["page", "title2"])
19
- */
20
- newPath: string[] | null;
21
- };
8
+ /** Record of updated paths in the custom type. */
9
+ updates?: {
10
+ [key: string]: string | null;
22
11
  };
23
12
  };
24
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/plugin-kit",
3
- "version": "0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.6",
3
+ "version": "0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.7",
4
4
  "description": "A set of helpers to develop and run Slice Machine plugins",
5
5
  "keywords": [
6
6
  "typescript",
@@ -11,20 +11,9 @@ import type {
11
11
  */
12
12
  export type CustomTypeUpdateHookData = {
13
13
  model: CustomType;
14
- /** Details/context about the changes made to the custom type. */
15
- updateDetails?: {
16
- fieldDeletedOrIdChanged?: {
17
- /**
18
- * Previous path of the changed field. Can be used to identify the field
19
- * that had an API ID renamed or was deleted (e.g. ["page", "title"])
20
- */
21
- previousPath: string[];
22
- /**
23
- * New path of the changed field. Can be used to identify the field that
24
- * had an API ID renamed or was deleted (e.g. ["page", "title2"])
25
- */
26
- newPath: string[] | null;
27
- };
14
+ /** Record of updated paths in the custom type. */
15
+ updates?: {
16
+ [key: string]: string | null;
28
17
  };
29
18
  };
30
19