@slicemachine/plugin-kit 0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.1 → 0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.2
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.
|
@@ -6,25 +6,17 @@ import type { ExtendSliceMachineHook, SliceMachinePluginOptions, SliceMachineHoo
|
|
|
6
6
|
export type CustomTypeUpdateHookData = {
|
|
7
7
|
model: CustomType;
|
|
8
8
|
updateMeta?: {
|
|
9
|
-
|
|
9
|
+
fieldDeleteOrIdChanged?: {
|
|
10
10
|
/**
|
|
11
11
|
* Previous path of the changed field. Can be used to identify the field
|
|
12
|
-
* that had an API ID rename (e.g. ["page", "title"])
|
|
12
|
+
* that had an API ID rename or was deleted (e.g. ["page", "title"])
|
|
13
13
|
*/
|
|
14
14
|
previousPath: string[];
|
|
15
15
|
/**
|
|
16
|
-
* New path of the changed field. Can be used to identify the field that
|
|
17
|
-
*
|
|
16
|
+
* New path of the changed field. Can be used to identify the field that had
|
|
17
|
+
* an API ID rename or was deleted (e.g. ["page", "title2"])
|
|
18
18
|
*/
|
|
19
|
-
newPath: string[];
|
|
20
|
-
};
|
|
21
|
-
fieldDeleted?: {
|
|
22
|
-
/**
|
|
23
|
-
* Path of the deleted field. Can be used to identify the field that was
|
|
24
|
-
* deleted to update a Content Relationship field. (e.g. ["page",
|
|
25
|
-
* "title2"])
|
|
26
|
-
*/
|
|
27
|
-
path: string[];
|
|
19
|
+
newPath: string[] | null;
|
|
28
20
|
};
|
|
29
21
|
};
|
|
30
22
|
};
|
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.
|
|
3
|
+
"version": "0.4.76-alpha.jp-update-cr-links-delete-field-data-flow.2",
|
|
4
4
|
"description": "A set of helpers to develop and run Slice Machine plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -12,25 +12,17 @@ import type {
|
|
|
12
12
|
export type CustomTypeUpdateHookData = {
|
|
13
13
|
model: CustomType;
|
|
14
14
|
updateMeta?: {
|
|
15
|
-
|
|
15
|
+
fieldDeleteOrIdChanged?: {
|
|
16
16
|
/**
|
|
17
17
|
* Previous path of the changed field. Can be used to identify the field
|
|
18
|
-
* that had an API ID rename (e.g. ["page", "title"])
|
|
18
|
+
* that had an API ID rename or was deleted (e.g. ["page", "title"])
|
|
19
19
|
*/
|
|
20
20
|
previousPath: string[];
|
|
21
21
|
/**
|
|
22
|
-
* New path of the changed field. Can be used to identify the field that
|
|
23
|
-
*
|
|
22
|
+
* New path of the changed field. Can be used to identify the field that had
|
|
23
|
+
* an API ID rename or was deleted (e.g. ["page", "title2"])
|
|
24
24
|
*/
|
|
25
|
-
newPath: string[];
|
|
26
|
-
};
|
|
27
|
-
fieldDeleted?: {
|
|
28
|
-
/**
|
|
29
|
-
* Path of the deleted field. Can be used to identify the field that was
|
|
30
|
-
* deleted to update a Content Relationship field. (e.g. ["page",
|
|
31
|
-
* "title2"])
|
|
32
|
-
*/
|
|
33
|
-
path: string[];
|
|
25
|
+
newPath: string[] | null;
|
|
34
26
|
};
|
|
35
27
|
};
|
|
36
28
|
};
|