1
1
import type { ManifestElementAndApi , ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api' ;
2
2
import type { UmbEntityAction , UmbEntityActionElement } from '@umbraco-cms/backoffice/entity-action' ;
3
- import type { UmbModalToken , UmbPickerModalData , UmbPickerModalValue } from '@umbraco-cms/backoffice/modal' ;
4
3
5
4
/**
6
5
* An action to perform on an entity
@@ -17,63 +16,8 @@ export interface ManifestEntityAction<MetaType extends MetaEntityAction = MetaEn
17
16
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
18
17
export interface MetaEntityAction { }
19
18
20
- export interface ManifestEntityActionDefaultKind extends ManifestEntityAction < MetaEntityActionDefaultKind > {
21
- type : 'entityAction' ;
22
- kind : 'default' ;
23
- }
24
-
25
- export interface MetaEntityActionDefaultKind extends MetaEntityAction {
26
- /**
27
- * An icon to represent the action to be performed
28
- * @examples [
29
- * "icon-box",
30
- * "icon-grid"
31
- * ]
32
- */
33
- icon : string ;
34
-
35
- /**
36
- * The friendly name of the action to perform
37
- * @examples [
38
- * "Create",
39
- * "Create Content Template"
40
- * ]
41
- */
42
- label : string ;
43
-
44
- /**
45
- * The action requires additional input from the user.
46
- * A dialog will prompt the user for more information or to make a choice.
47
- * @type {boolean }
48
- * @memberof MetaEntityActionDefaultKind
49
- */
50
- additionalOptions ?: boolean ;
51
- }
52
-
53
- // DELETE
54
- export interface ManifestEntityActionDeleteKind extends ManifestEntityAction < MetaEntityActionDeleteKind > {
55
- type : 'entityAction' ;
56
- kind : 'delete' ;
57
- }
58
-
59
- export interface MetaEntityActionDeleteKind extends MetaEntityActionDefaultKind {
60
- detailRepositoryAlias : string ;
61
- itemRepositoryAlias : string ;
62
- }
63
-
64
- export type UmbEntityActionExtensions =
65
- | ManifestEntityAction
66
- | ManifestEntityActionDefaultKind
67
- | ManifestEntityActionDeleteKind
68
- | ManifestEntityActionTrashKind ;
69
-
70
- /**
71
- * @deprecated use `UmbEntityActionExtensions` instead.
72
- */
73
- export type ManifestEntityActions = UmbEntityActionExtensions ;
74
-
75
19
declare global {
76
20
interface UmbExtensionManifestMap {
77
- UmbEntityActionExtensions : UmbEntityActionExtensions ;
21
+ umbEntityAction : ManifestEntityAction ;
78
22
}
79
23
}
0 commit comments