@aristid/leav-types 1.7.0-b7d2b554 → 1.7.0-e73b6cb6

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.
@@ -24,6 +24,7 @@ export declare enum Errors {
24
24
  FORBIDDEN_KEY = "FORBIDDEN_KEY",
25
25
  FORMAT_ERROR = "FORMAT_ERROR",
26
26
  INVALID_ACTION_TYPE = "INVALID_ACTION_TYPE",
27
+ INVALID_ATTRIBUTE_TYPE = "INVALID_ATTRIBUTE_TYPE",
27
28
  INVALID_ATTRIBUTE_FILTER_FORMAT = "INVALID_ATTRIBUTE_FILTER_FORMAT",
28
29
  INVALID_ATTRIBUTE_FOR_LIBRARY = "INVALID_ATTRIBUTE_FOR_LIBRARY",
29
30
  INVALID_ATTRIBUTES = "INVALID_ATTRIBUTES",
@@ -81,6 +81,7 @@ export interface IRecordIdentity {
81
81
  getSubLabel?: () => Promise<string | null>;
82
82
  getColor?: () => Promise<string | null>;
83
83
  getPreview?: () => Promise<IPreview | null>;
84
+ getParentContext?: () => Promise<IRecordIdentity[] | null>;
84
85
  }
85
86
  export interface IRecordIdentityConf {
86
87
  label?: string;
@@ -88,6 +89,7 @@ export interface IRecordIdentityConf {
88
89
  preview?: string;
89
90
  treeColorPreview?: string;
90
91
  subLabel?: string;
92
+ parentContext?: string;
91
93
  }
92
94
  export interface IRecordUpdateEvent {
93
95
  record: IRecord;
@@ -7,8 +7,10 @@ interface IDeps {
7
7
  config: IConfig;
8
8
  'core.utils.logger': ILogger;
9
9
  }
10
- export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.utils.logger': logger, config, }: IDeps): IActionsListFunction<{
10
+ type ActionParams = {
11
11
  Formula: true;
12
12
  Description: true;
13
- }>;
13
+ ['Return only calculated value']: false;
14
+ };
15
+ export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.utils.logger': logger, config, }: IDeps): IActionsListFunction<ActionParams>;
14
16
  export {};
@@ -5,8 +5,10 @@ interface IDeps {
5
5
  'core.domain.helpers.calculationVariable'?: ICalculationVariable;
6
6
  'core.domain.attribute'?: IAttributeDomain;
7
7
  }
8
- export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.domain.attribute': attributeDomain, }?: IDeps): IActionsListFunction<{
8
+ type ActionParams = {
9
9
  Formula: true;
10
10
  Description: true;
11
- }>;
11
+ ['Return only calculated value']: false;
12
+ };
13
+ export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.domain.attribute': attributeDomain, }?: IDeps): IActionsListFunction<ActionParams>;
12
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.7.0-b7d2b554",
3
+ "version": "1.7.0-e73b6cb6",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",