@aristid/leav-types 1.7.0-178015c1 → 1.7.0-6482bfcc

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",
@@ -84,6 +84,7 @@ export declare enum AdminPermissionsActions {
84
84
  EDIT_API_KEY = "admin_edit_api_key",
85
85
  DELETE_API_KEY = "admin_delete_api_key",
86
86
  EDIT_GLOBAL_SETTINGS = "admin_edit_global_settings",
87
+ LIST_PLUGINS = "admin_list_plugins",
87
88
  ACCESS_LOGS = "admin_access_logs",
88
89
  IMPORT_CONFIG_CLEAR_DATABASE = "admin_import_config_clear_database"
89
90
  }
@@ -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 {};
@@ -1,11 +1,14 @@
1
1
  import { IPluginsRepo } from 'infra/plugins/pluginsRepo';
2
2
  import { IPluginInfos, IRegisteredPlugin } from '_types/plugin';
3
+ import { IQueryInfos } from '../../_types/queryInfos';
4
+ import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
3
5
  interface IDeps {
6
+ 'core.domain.permission.admin': IAdminPermissionDomain;
4
7
  'core.infra.plugins': IPluginsRepo;
5
8
  }
6
9
  export interface IPluginsDomain {
7
10
  registerPlugin(path: string, plugin: IPluginInfos): IRegisteredPlugin;
8
- getRegisteredPlugins(): IRegisteredPlugin[];
11
+ getRegisteredPlugins(ctx: IQueryInfos): Promise<IRegisteredPlugin[]>;
9
12
  }
10
- export default function ({ 'core.infra.plugins': pluginsRepo }: IDeps): IPluginsDomain;
13
+ export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.infra.plugins': pluginsRepo, }: IDeps): IPluginsDomain;
11
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.7.0-178015c1",
3
+ "version": "1.7.0-6482bfcc",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",