@aristid/leav-types 1.12.0-de0e4bca → 1.12.0-decab695

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.
Files changed (48) hide show
  1. package/apps/core/config/default.d.ts +9 -2
  2. package/apps/core/src/_types/automation.d.ts +5 -14
  3. package/apps/core/src/_types/config.d.ts +9 -0
  4. package/apps/core/src/_types/errors.d.ts +8 -0
  5. package/apps/core/src/_types/events.d.ts +3 -0
  6. package/apps/core/src/_types/eventsManager.d.ts +8 -0
  7. package/apps/core/src/_types/extensionPoints.d.ts +2 -0
  8. package/apps/core/src/_types/record.d.ts +1 -0
  9. package/apps/core/src/app/core/automationApp.d.ts +5 -3
  10. package/apps/core/src/app/trpc/index.d.ts +1 -0
  11. package/apps/core/src/app/trpc/trpcApp.d.ts +30 -0
  12. package/apps/core/src/domain/actions/index.d.ts +1 -0
  13. package/apps/core/src/domain/actions/jexlCalculationAction.d.ts +14 -0
  14. package/apps/core/src/domain/automation/{types.d.ts → actions/_types.d.ts} +16 -11
  15. package/apps/core/src/domain/automation/actions/conditionAction.d.ts +1 -1
  16. package/apps/core/src/domain/automation/actions/errorAction.d.ts +1 -1
  17. package/apps/core/src/domain/automation/actions/index.d.ts +2 -0
  18. package/apps/core/src/domain/automation/actions/jexlCalculationAutomationAction.d.ts +14 -0
  19. package/apps/core/src/domain/automation/actions/logAction.d.ts +1 -1
  20. package/apps/core/src/domain/automation/actions/modifyAttributeAction.d.ts +18 -0
  21. package/apps/core/src/domain/automation/automationActionsRegistry.d.ts +10 -0
  22. package/apps/core/src/domain/automation/automationDomain.d.ts +23 -7
  23. package/apps/core/src/domain/automation/index.d.ts +3 -1
  24. package/apps/core/src/domain/automation/pipeline/_types.d.ts +33 -0
  25. package/apps/core/src/domain/automation/pipeline/index.d.ts +1 -0
  26. package/apps/core/src/domain/automation/pipeline/pipeline.d.ts +18 -0
  27. package/apps/core/src/domain/automation/triggers/_types.d.ts +15 -0
  28. package/apps/core/src/domain/automation/triggers/automationTriggers.d.ts +14 -0
  29. package/apps/core/src/domain/automation/triggers/automationTriggersRegistry.d.ts +19 -0
  30. package/apps/core/src/domain/automation/triggers/automationTriggersTopics.d.ts +18 -0
  31. package/apps/core/src/domain/automation/triggers/index.d.ts +3 -0
  32. package/apps/core/src/domain/discussion/discussionDomain.d.ts +3 -1
  33. package/apps/core/src/domain/jexl/index.d.ts +1 -0
  34. package/apps/core/src/domain/jexl/jexlDomain.d.ts +19 -0
  35. package/apps/core/src/domain/jexl/jexlExtended.d.ts +2 -0
  36. package/apps/core/src/domain/jexl/types.d.ts +37 -0
  37. package/apps/core/src/domain/permission/attributeDependentValuesPermissionDomain.d.ts +5 -1
  38. package/apps/core/src/infra/automation/automationRuleRepo.d.ts +2 -0
  39. package/apps/core/src/infra/db/dbUtils.d.ts +1 -1
  40. package/apps/core/src/interface/server.d.ts +3 -1
  41. package/apps/core/tsconfig.types.tsbuildinfo +1 -1
  42. package/apps/core/vitest.e2e-api.config.d.ts +2 -0
  43. package/apps/core/vitest.e2e-fileManager.config.d.ts +2 -0
  44. package/apps/core/vitest.e2e-indexationManager.config.d.ts +2 -0
  45. package/libs/utils/src/types/events.d.ts +3 -0
  46. package/libs/utils/src/utils.d.ts +3 -1
  47. package/package.json +2 -4
  48. package/apps/core/src/domain/automation/pipelineExecutor.d.ts +0 -16
@@ -9,6 +9,9 @@ export declare namespace server {
9
9
  let allowIntrospection: boolean;
10
10
  let uploadLimit: string;
11
11
  let supportEmail: string;
12
+ namespace trpc {
13
+ let ssePingIntervalMs: string | number;
14
+ }
12
15
  namespace admin {
13
16
  let login: string;
14
17
  let password: string;
@@ -105,6 +108,10 @@ export declare namespace actions {
105
108
  namespace excel {
106
109
  let debug: boolean;
107
110
  }
111
+ namespace jexl {
112
+ let debug_1: boolean;
113
+ export { debug_1 as debug };
114
+ }
108
115
  }
109
116
  export declare namespace bugsnag {
110
117
  let enable_1: boolean;
@@ -230,7 +237,7 @@ export declare namespace indexationManager {
230
237
  }
231
238
  export { queues_3 as queues };
232
239
  }
233
- declare let debug_1: boolean;
240
+ declare let debug_2: boolean;
234
241
  export declare let defaultUserId: string;
235
242
  export declare namespace _export {
236
243
  let directory_1: string;
@@ -291,4 +298,4 @@ export declare namespace automation {
291
298
  let enable_7: boolean;
292
299
  export { enable_7 as enable };
293
300
  }
294
- export { debug_1 as debug, _export as export, _import as import };
301
+ export { debug_2 as debug, _export as export, _import as import };
@@ -1,4 +1,5 @@
1
1
  import { type EventAction, type IDbPayload } from '@leav/utils';
2
+ import { type AutomationRulePipeline } from '../domain/automation/pipeline/_types';
2
3
  export type IAutomationRule = ICoreEntity & {
3
4
  createdAt: number;
4
5
  createdBy: string;
@@ -15,13 +16,16 @@ export type ICreateAutomationRule = {
15
16
  label: string;
16
17
  description?: string;
17
18
  trigger: AutomationRuleTrigger;
19
+ pipeline: AutomationRulePipeline;
20
+ active: boolean;
18
21
  };
19
22
  export type IUpdateAutomationRule = {
20
23
  id: string;
21
24
  label?: string;
22
25
  description?: string;
23
26
  active?: boolean;
24
- trigger?: Partial<AutomationRuleTrigger>;
27
+ trigger?: AutomationRuleTrigger;
28
+ pipeline?: AutomationRulePipeline;
25
29
  };
26
30
  export declare enum SyncAutomationRuleEventAction {
27
31
  RECORD_INIT = "RECORD_INIT"
@@ -33,16 +37,3 @@ export type AutomationRuleTrigger = {
33
37
  eventAction: AutomationRuleEventAction;
34
38
  eventTopic?: AutomationRulesEventTopic;
35
39
  };
36
- export type AutomationRulePipeline = {
37
- steps: AutomationRulePipelineStep[];
38
- };
39
- export declare enum AutomationRuleActions {
40
- LOG = "log",
41
- CONDITION = "condition",
42
- ERROR = "error"
43
- }
44
- export type AutomationRulePipelineStep = {
45
- type: AutomationRuleActions | string;
46
- name?: string;
47
- params: Record<string, unknown>;
48
- };
@@ -60,6 +60,9 @@ export interface IServer {
60
60
  allowIntrospection: boolean;
61
61
  uploadLimit: number | string;
62
62
  supportEmail: string;
63
+ trpc: {
64
+ ssePingIntervalMs: number;
65
+ };
63
66
  admin: {
64
67
  login: string;
65
68
  password: string;
@@ -77,6 +80,12 @@ export interface IActions {
77
80
  */
78
81
  debug: boolean;
79
82
  };
83
+ jexl: {
84
+ /**
85
+ * Add debug log for each calculation with formula and result or error
86
+ */
87
+ debug: boolean;
88
+ };
80
89
  }
81
90
  export interface IDb {
82
91
  url: string;
@@ -7,6 +7,11 @@ export declare enum ErrorTypes {
7
7
  export declare enum Errors {
8
8
  APP_STUDIO_WORKSPACE_LIBRARY_ID_REQUIRED = "APP_STUDIO_WORKSPACE_LIBRARY_ID_REQUIRED",
9
9
  APP_STUDIO_WORKSPACE_RECORD_ID_REQUIRED = "APP_STUDIO_WORKSPACE_RECORD_ID_REQUIRED",
10
+ AUTOMATION_UNKNOWN_TRIGGER_EVENT_ACTION = "AUTOMATION_UNKNOWN_TRIGGER_EVENT_ACTION",
11
+ AUTOMATION_INVALID_TRIGGER_EVENT_TOPIC = "AUTOMATION_INVALID_TRIGGER_EVENT_TOPIC",
12
+ AUTOMATION_INVALID_TRIGGER_ONLY_SYNC = "AUTOMATION_INVALID_TRIGGER_ONLY_SYNC",
13
+ AUTOMATION_INVALID_TRIGGER_ONLY_ASYNC = "AUTOMATION_INVALID_TRIGGER_ONLY_ASYNC",
14
+ AUTOMATION_RULE_PIPELINE_EMPTY = "AUTOMATION_RULE_PIPELINE_EMPTY",
10
15
  ATTRIBUTE_USED_BY_LIBRARY = "ATTRIBUTE_USED_BY_LIBRARY",
11
16
  ATTRIBUTE_USED_IN_METADATA = "ATTRIBUTE_USED_IN_METADATA",
12
17
  CANNOT_SAVE_METADATA = "CANNOT_SAVE_METADATA",
@@ -28,6 +33,8 @@ export declare enum Errors {
28
33
  FORMAT_ERROR = "FORMAT_ERROR",
29
34
  IMMUTABLE_CORE_SYSTEM_ATTRIBUTE = "IMMUTABLE_CORE_SYSTEM_ATTRIBUTE",
30
35
  INVALID_ACTION_TYPE = "INVALID_ACTION_TYPE",
36
+ INVALID_AUTOMATION_ACTION_PARAMS = "INVALID_AUTOMATION_ACTION_PARAMS",
37
+ INVALID_AUTOMATION_ACTION_TYPE = "INVALID_AUTOMATION_ACTION_TYPE",
31
38
  INVALID_ATTRIBUTE_TYPE = "INVALID_ATTRIBUTE_TYPE",
32
39
  INVALID_ATTRIBUTE_FILTER_FORMAT = "INVALID_ATTRIBUTE_FILTER_FORMAT",
33
40
  INVALID_ATTRIBUTE_FOR_LIBRARY = "INVALID_ATTRIBUTE_FOR_LIBRARY",
@@ -45,6 +52,7 @@ export declare enum Errors {
45
52
  INVALID_MAPPING = "INVALID_MAPPING",
46
53
  INVALID_PERMISSIONS_CONF_LIBRARIES = "INVALID_PERMISSIONS_CONF_LIBRARIES",
47
54
  INVALID_REGEXP = "INVALID_REGEXP",
55
+ INVALID_JEXL_EXPRESSION = "INVALID_JEXL_EXPRESSION",
48
56
  INVALID_SORT_FIELDS = "INVALID_SORT_FIELDS",
49
57
  INVALID_TREE_FILTER_FORMAT = "INVALID_TREE_FILTER_FORMAT",
50
58
  INVALID_URL = "INVALID_URL",
@@ -10,6 +10,7 @@ import { type IVersionProfile } from './versionProfile';
10
10
  import { type IPermission } from './permissions';
11
11
  import { type ITreeDbEvent, type ITree } from './tree';
12
12
  import { type IAutomationRule } from './automation';
13
+ import { type IAutomationPipelineFailure, type IAutomationPipelineSuccess } from '../domain/automation/pipeline/_types';
13
14
  type OnlyObject<T> = T extends object ? T : never;
14
15
  /**
15
16
  * Maybe move all DBPayloadData types in @leav/utils type to allow event consumers outside core to use them
@@ -33,6 +34,8 @@ interface IDBPayloadDataMap {
33
34
  [EventAction.APP_DELETE]: IApplication;
34
35
  [EventAction.AUTOMATION_RULE_CREATE]: IAutomationRule;
35
36
  [EventAction.AUTOMATION_RULE_UPDATE]: IAutomationRule;
37
+ [EventAction.AUTOMATION_PIPELINE_SUCCESS]: IAutomationPipelineSuccess;
38
+ [EventAction.AUTOMATION_PIPELINE_FAILURE]: IAutomationPipelineFailure;
36
39
  [EventAction.GLOBAL_SETTINGS_SAVE]: IGlobalSettings;
37
40
  [EventAction.LIBRARY_SAVE]: ILibraryDbEvent;
38
41
  [EventAction.LIBRARY_DELETE]: ILibraryDbEvent;
@@ -1,4 +1,5 @@
1
1
  import { type INotification } from './notification';
2
+ import { type IRecord } from './record';
2
3
  import { type ITask } from './tasksManager';
3
4
  export declare enum TriggerNames {
4
5
  APPLICATION_EVENT = "APPLICATION_EVENT",
@@ -7,6 +8,7 @@ export declare enum TriggerNames {
7
8
  TASK = "TASK",
8
9
  TREE_EVENT = "TREE_EVENT",
9
10
  RECORD_UPDATE = "RECORD_UPDATE",
11
+ RECORD_NEW_COMMENT = "RECORD_NEW_COMMENT",
10
12
  NOTIFICATION = "NOTIFICATION"
11
13
  }
12
14
  export interface IPubSubNotificationData {
@@ -16,3 +18,9 @@ export interface IPubSubNotificationData {
16
18
  export interface IPubSubTaskData {
17
19
  task: ITask;
18
20
  }
21
+ export interface IPubSubRecordNewCommentData {
22
+ recordNewComment: {
23
+ record: IRecord;
24
+ comment: IRecord;
25
+ };
26
+ }
@@ -4,6 +4,7 @@ import { type PermissionTypes } from './permissions';
4
4
  import { type PluginRegisterRoute } from './endpoint';
5
5
  import { type AuthPostOidcLoginCallback } from './auth';
6
6
  import { type RegisterCronTask } from './cronTask';
7
+ import { type ITRPCRouterFactory } from '../app/trpc/trpcApp';
7
8
  export interface IExtensionPoints {
8
9
  [name: string]: (...args: any[]) => void;
9
10
  }
@@ -16,6 +17,7 @@ export interface IExtensionPointsFunctions extends IExtensionPoints {
16
17
  * @param {IAppGraphQLSchema} schemaPart
17
18
  */
18
19
  registerGraphQLSchema: (schemaPart: IAppGraphQLSchema) => void;
20
+ registerTRPCRouter: (initRouter: ITRPCRouterFactory) => void;
19
21
  registerTranslations: (path: string) => Promise<void>;
20
22
  registerPermissionActions: (type: PermissionTypes, actions: string[], applyOn?: string[]) => void;
21
23
  registerEventActions: (actions: string[], prefix: string) => void;
@@ -102,6 +102,7 @@ export interface IRecordUpdateEventFilters {
102
102
  libraries?: string[];
103
103
  records?: string[];
104
104
  }
105
+ export type IRecordCommentEventFilters = IRecordUpdateEventFilters;
105
106
  export interface IRecordFilterLight {
106
107
  field?: string;
107
108
  value?: string;
@@ -2,11 +2,13 @@ import { type IGraphqlAppModule } from '../graphql/graphqlApp';
2
2
  import { type IAutomationDomain } from '../../domain/automation/automationDomain';
3
3
  import { type IAutomationRule } from '../../_types/automation';
4
4
  import { type IPaginationParams, type ISortParams } from '../../_types/list';
5
- import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
5
+ import { type IAutomationTriggers } from '../../domain/automation/triggers/automationTriggers';
6
+ import { type IAutomationTriggersRegistry } from '../..//domain/automation/triggers/automationTriggersRegistry';
6
7
  export type ICoreImportApp = IGraphqlAppModule;
7
8
  interface IAutomationAppDeps {
8
9
  'core.domain.automation': IAutomationDomain;
9
- 'core.domain.eventsManager': IEventsManagerDomain;
10
+ 'core.domain.automation.triggers': IAutomationTriggers;
11
+ 'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
10
12
  }
11
13
  export interface IGetAutomationRulesArgs {
12
14
  filters?: ICoreEntityFilterOptions & {
@@ -18,5 +20,5 @@ export interface IGetAutomationRulesArgs {
18
20
  pagination?: IPaginationParams;
19
21
  sort?: ISortParams;
20
22
  }
21
- export default function ({ 'core.domain.automation': automationDomain, 'core.domain.eventsManager': eventsManagerDomain, }: IAutomationAppDeps): ICoreImportApp;
23
+ export default function ({ 'core.domain.automation': automationDomain, 'core.domain.automation.triggers': automationTriggers, 'core.domain.automation.triggers.registry': automationTriggersRegistry, }: IAutomationAppDeps): ICoreImportApp;
22
24
  export {};
@@ -0,0 +1 @@
1
+ export { default } from './trpcApp';
@@ -0,0 +1,30 @@
1
+ import { type IAppModule } from '../../_types/shared';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
+ import { type CreateExpressContextOptions } from '@trpc/server/adapters/express';
4
+ import { type Handler } from 'express';
5
+ import { type IConfig } from '../../_types/config';
6
+ import { type ILogger } from '@leav/logger';
7
+ export interface ITRPCApp extends IAppModule {
8
+ createExpressHandler: (initContext: (opts: CreateExpressContextOptions) => Promise<IQueryInfos>) => Handler;
9
+ }
10
+ declare const createTrpc: (config: IConfig) => import("@trpc/server").TRPCRootObject<IQueryInfos, object, {
11
+ sse: {
12
+ ping: {
13
+ enabled: true;
14
+ intervalMs: number;
15
+ };
16
+ };
17
+ }, {
18
+ ctx: IQueryInfos;
19
+ meta: object;
20
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
21
+ transformer: false;
22
+ }>;
23
+ export type TTrpc = ReturnType<typeof createTrpc>;
24
+ export type ITRPCRouterFactory = (trpc: TTrpc) => ReturnType<TTrpc['router']>;
25
+ interface IDeps {
26
+ config: IConfig;
27
+ 'core.utils.logger'?: ILogger;
28
+ }
29
+ export default function ({ config, 'core.utils.logger': logger }: IDeps): ITRPCApp;
30
+ export {};
@@ -1,6 +1,7 @@
1
1
  export { default as dateRangeToNumberAction } from './dateRangeToNumberAction';
2
2
  export { default as encryptAction } from './encryptAction';
3
3
  export { default as excelAction } from './excelCalculationAction';
4
+ export { default as jexlCalculationAction } from './jexlCalculationAction';
4
5
  export { default as formatDateAction } from './formatDateAction';
5
6
  export { default as formatDateRangeAction } from './formatDateRangeAction';
6
7
  export { default as formatNumberAction } from './formatNumberAction';
@@ -0,0 +1,14 @@
1
+ import { type IJexlDomain } from '../jexl/jexlDomain';
2
+ import { type IActionsListFunction } from '../../_types/actionsList';
3
+ import { type IConfig } from '../../_types/config';
4
+ interface IDeps {
5
+ 'core.domain.jexl': IJexlDomain;
6
+ config: IConfig;
7
+ }
8
+ type ActionParams = {
9
+ Formula: true;
10
+ Description: true;
11
+ ['Return only calculated value']: false;
12
+ };
13
+ export default function ({ 'core.domain.jexl': jexlDomain, config }: IDeps): IActionsListFunction<ActionParams>;
14
+ export {};
@@ -1,22 +1,27 @@
1
1
  import { type ZodObject } from 'zod';
2
- import { type AutomationRuleActions, type AutomationRuleTrigger } from '../../_types/automation';
3
- import { type IQueryInfos } from '../../_types/queryInfos';
2
+ import { type IAutomationPipelineExecutionState } from '../pipeline/_types';
3
+ import { type IQueryInfos } from '../../../_types/queryInfos';
4
+ export declare enum AutomationRuleActions {
5
+ LOG = "log",
6
+ CONDITION = "condition",
7
+ ERROR = "error",
8
+ JEXL_CALCULATION = "jexlCalculation",
9
+ MODIFY_ATTRIBUTE = "modifyAttribute"
10
+ }
11
+ export interface IAutomationAction<Params = unknown> {
12
+ readonly type: AutomationRuleActions | string;
13
+ readonly paramsSchema: ZodObject<any>;
14
+ validateParams?: (params: Params) => Promise<void>;
15
+ execute(params: Params, state: IAutomationPipelineExecutionState, ctx: IQueryInfos): Promise<IActionExecutionResult | void>;
16
+ }
4
17
  export declare enum ActionExecutionResultStatus {
5
18
  CONTINUE = "continue",
6
19
  STOP = "stop"
7
20
  }
8
21
  export type IActionExecutionResult = {
9
22
  status: ActionExecutionResultStatus.CONTINUE;
23
+ result?: unknown;
10
24
  } | {
11
25
  status: ActionExecutionResultStatus.STOP;
12
26
  reason?: string;
13
27
  };
14
- export type IAutomationPipelineExecutionState = {
15
- readonly trigger: AutomationRuleTrigger;
16
- };
17
- export interface IAutomationAction<Params = unknown> {
18
- readonly type: AutomationRuleActions | string;
19
- readonly paramsSchema: ZodObject<any>;
20
- validateParams?: (params: Params) => Promise<void>;
21
- execute(params: Params, state: IAutomationPipelineExecutionState, ctx: IQueryInfos): Promise<IActionExecutionResult | void>;
22
- }
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { type IAutomationAction } from '../types';
2
+ import { type IAutomationAction } from './_types';
3
3
  declare const conditionActionParamsSchema: z.ZodObject<{
4
4
  result: z.ZodBoolean;
5
5
  }, z.core.$strip>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { type IAutomationAction } from '../types';
2
+ import { type IAutomationAction } from './_types';
3
3
  declare const errorActionParamsSchema: z.ZodObject<{
4
4
  message: z.ZodString;
5
5
  }, z.core.$strip>;
@@ -1,3 +1,5 @@
1
1
  export { default as condition } from './conditionAction';
2
2
  export { default as error } from './errorAction';
3
3
  export { default as log } from './logAction';
4
+ export { default as jexlCalculation } from './jexlCalculationAutomationAction';
5
+ export { default as modifyAttribute } from './modifyAttributeAction';
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { type IJexlDomain } from '../../jexl/jexlDomain';
3
+ import { type IConfig } from '../../../_types/config';
4
+ import { type IAutomationAction } from './_types';
5
+ declare const jexlCalculationActionParamsSchema: z.ZodObject<{
6
+ formula: z.ZodString;
7
+ }, z.core.$strip>;
8
+ export type JexlCalculationActionParams = z.infer<typeof jexlCalculationActionParamsSchema>;
9
+ interface IDeps {
10
+ 'core.domain.jexl': IJexlDomain;
11
+ config: IConfig;
12
+ }
13
+ export default function ({ 'core.domain.jexl': jexl, config }: IDeps): IAutomationAction<JexlCalculationActionParams>;
14
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { type IAutomationAction } from '../types';
2
+ import { type IAutomationAction } from './_types';
3
3
  declare const logActionParamsSchema: z.ZodObject<{
4
4
  message: z.ZodString;
5
5
  level: z.ZodOptional<z.ZodEnum<{
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ import { type IAutomationAction } from './_types';
3
+ import { type IValueDomain } from '../../value/valueDomain';
4
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
5
+ declare const modifyAttributeActionParamsSchema: z.ZodObject<{
6
+ attributePath: z.ZodString;
7
+ mode: z.ZodEnum<{
8
+ replace: "replace";
9
+ add: "add";
10
+ }>;
11
+ }, z.core.$strip>;
12
+ export type ModifyAttributeActionParams = z.infer<typeof modifyAttributeActionParamsSchema>;
13
+ interface IDeps {
14
+ 'core.domain.value': IValueDomain;
15
+ 'core.domain.attribute': IAttributeDomain;
16
+ }
17
+ export default function ({ 'core.domain.value': valueDomain, 'core.domain.attribute': attributeDomain, }: IDeps): IAutomationAction<ModifyAttributeActionParams>;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type AwilixContainer } from 'awilix';
2
+ import { type IAutomationAction, type AutomationRuleActions } from './actions/_types';
3
+ export interface IAutomationActionsRegistry {
4
+ getAction(type: AutomationRuleActions | string): IAutomationAction | undefined;
5
+ listAvailableActions(): IAutomationAction[];
6
+ }
7
+ export interface IAutomationActionsRegistryDeps {
8
+ 'core.depsManager': AwilixContainer;
9
+ }
10
+ export default function ({ 'core.depsManager': depsManager, }: IAutomationActionsRegistryDeps): IAutomationActionsRegistry;
@@ -6,7 +6,9 @@ import { type IAutomationRuleRepo } from '../../infra/automation/automationRuleR
6
6
  import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
7
7
  import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
8
8
  import { type IConfig } from '../../_types/config';
9
- import { type IPipelineExecutor } from './pipelineExecutor';
9
+ import { type IAutomationPipelineDomain } from './pipeline/pipeline';
10
+ import { type IAutomationTriggers } from './triggers/automationTriggers';
11
+ import { type AutomationTriggerDef } from './triggers/_types';
10
12
  export interface IGetAutomationRulesParams extends IGetCoreEntitiesParams {
11
13
  filters?: ICoreEntityFilterOptions & {
12
14
  active?: boolean;
@@ -15,6 +17,14 @@ export interface IGetAutomationRulesParams extends IGetCoreEntitiesParams {
15
17
  eventTopic?: AutomationRulesEventTopic;
16
18
  };
17
19
  }
20
+ interface ITriggerRulesParams {
21
+ event: {
22
+ action: IAutomationRule['trigger']['eventAction'];
23
+ topic?: IAutomationRule['trigger']['eventTopic'];
24
+ };
25
+ synchronous: boolean;
26
+ ctx: IQueryInfos;
27
+ }
18
28
  export interface IAutomationDomain {
19
29
  getAutomationRules({ params, ctx, }: {
20
30
  params: IGetAutomationRulesParams;
@@ -28,16 +38,22 @@ export interface IAutomationDomain {
28
38
  rule: IUpdateAutomationRule;
29
39
  ctx: IQueryInfos;
30
40
  }): Promise<IAutomationRule>;
31
- triggerRules(event: {
32
- action: AutomationRuleEventAction;
33
- topic?: AutomationRulesEventTopic;
34
- }, synchronous: boolean, ctx: IQueryInfos): Promise<void>;
41
+ deleteAutomationRule({ ruleId, ctx }: {
42
+ ruleId: string;
43
+ ctx: IQueryInfos;
44
+ }): Promise<IAutomationRule>;
45
+ triggerRules(params: ITriggerRulesParams): Promise<void>;
46
+ listAutomationTriggersDef({ ctx }: {
47
+ ctx: IQueryInfos;
48
+ }): Promise<AutomationTriggerDef[]>;
35
49
  }
36
50
  export interface IAutomationDomainDeps {
51
+ 'core.domain.automation.triggers': IAutomationTriggers;
37
52
  'core.domain.permission.admin': IAdminPermissionDomain;
38
53
  'core.domain.eventsManager': IEventsManagerDomain;
39
- 'core.domain.automation.pipelineExecutor': IPipelineExecutor;
54
+ 'core.domain.automation.pipeline': IAutomationPipelineDomain;
40
55
  'core.infra.automation.rule': IAutomationRuleRepo;
41
56
  config: IConfig;
42
57
  }
43
- export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.automation.pipelineExecutor': pipelineExecutor, 'core.infra.automation.rule': automationRuleRepo, config, }: IAutomationDomainDeps): IAutomationDomain;
58
+ export default function ({ 'core.domain.automation.triggers': automationTriggers, 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.automation.pipeline': pipelineDomain, 'core.infra.automation.rule': automationRuleRepo, config, }: IAutomationDomainDeps): IAutomationDomain;
59
+ export {};
@@ -1,2 +1,4 @@
1
1
  export { default } from './automationDomain';
2
- export { default as pipelineExecutor } from './pipelineExecutor';
2
+ export { default as actionsRegistry } from './automationActionsRegistry';
3
+ export { default as pipeline } from './pipeline';
4
+ export { default as triggers } from './triggers';
@@ -0,0 +1,33 @@
1
+ import { type AutomationRuleTrigger } from '../../../_types/automation';
2
+ import { type AutomationRuleActions } from '../actions/_types';
3
+ export type AutomationPipelineToExecute = AutomationRulePipeline & {
4
+ ruleId: string;
5
+ trigger: AutomationRuleTrigger;
6
+ };
7
+ export type AutomationRulePipeline = {
8
+ steps: AutomationRulePipelineStep[];
9
+ };
10
+ export type AutomationRulePipelineStep = {
11
+ type: AutomationRuleActions | string;
12
+ name?: string;
13
+ params: Record<string, unknown>;
14
+ };
15
+ export type IAutomationPipelineFailure = {
16
+ readonly results: Record<string, unknown | {
17
+ stack?: string;
18
+ message: string;
19
+ name: string;
20
+ [k: string]: unknown;
21
+ }>;
22
+ };
23
+ export type IAutomationPipelineSuccess = {
24
+ readonly results: Record<string, unknown>;
25
+ };
26
+ export type IAutomationPipelineExecutionState = {
27
+ readonly trigger: AutomationRuleTrigger;
28
+ readonly results: IAutomationPipelineExecutionResults;
29
+ readonly lastResult?: unknown;
30
+ readonly startDateMs: number;
31
+ stepIndex: number;
32
+ };
33
+ export type IAutomationPipelineExecutionResults = Record<string, unknown>;
@@ -0,0 +1 @@
1
+ export { default } from './pipeline';
@@ -0,0 +1,18 @@
1
+ import { type AutomationRuleTrigger } from '../../../_types/automation';
2
+ import { type AutomationRulePipeline } from '../pipeline/_types';
3
+ import { type IEventsManagerDomain } from '../../eventsManager/eventsManagerDomain';
4
+ import { type IQueryInfos } from '../../../_types/queryInfos';
5
+ import { type IAutomationActionsRegistry } from '../automationActionsRegistry';
6
+ export type AutomationPipelineToExecute = AutomationRulePipeline & {
7
+ ruleId: string;
8
+ trigger: AutomationRuleTrigger;
9
+ };
10
+ export interface IAutomationPipelineDomain {
11
+ executePipeline(pipelineExec: AutomationPipelineToExecute, ctx: IQueryInfos): Promise<boolean>;
12
+ validatePipeline(pipeline: AutomationRulePipeline): Promise<void>;
13
+ }
14
+ export interface IPipelineExecutorDeps {
15
+ 'core.domain.eventsManager': IEventsManagerDomain;
16
+ 'core.domain.automation.actionsRegistry': IAutomationActionsRegistry;
17
+ }
18
+ export default function ({ 'core.domain.eventsManager': eventsManager, 'core.domain.automation.actionsRegistry': actionsRegistry, }: IPipelineExecutorDeps): IAutomationPipelineDomain;
@@ -0,0 +1,15 @@
1
+ import { type AutomationRuleEventAction } from '../../../_types/automation';
2
+ export declare enum AutomationTriggerDefTopics {
3
+ LIBRARY = "LIBRARY",
4
+ ATTRIBUTE = "ATTRIBUTE"
5
+ }
6
+ export declare enum AutomationTriggerDefSynchronicity {
7
+ SYNC = "SYNC",
8
+ ASYNC = "ASYNC",
9
+ BOTH = "BOTH"
10
+ }
11
+ export type AutomationTriggerDef = {
12
+ eventAction: AutomationRuleEventAction;
13
+ topics: AutomationTriggerDefTopics[];
14
+ synchronicity: AutomationTriggerDefSynchronicity;
15
+ };
@@ -0,0 +1,14 @@
1
+ import { type AutomationRuleTrigger } from '../../../_types/automation';
2
+ import { type IQueryInfos } from '../../../_types/queryInfos';
3
+ import { type IAutomationTriggersRegistry } from './automationTriggersRegistry';
4
+ import { type AutomationTriggerDef } from './_types';
5
+ export interface IAutomationTriggers {
6
+ listAutomationTriggersDef({ ctx }: {
7
+ ctx: IQueryInfos;
8
+ }): AutomationTriggerDef[];
9
+ validateAutomationRuleTrigger(ruleTrigger: AutomationRuleTrigger, ctx: IQueryInfos): Promise<void>;
10
+ }
11
+ export interface IAutomationTriggersDeps {
12
+ 'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
13
+ }
14
+ export default function ({ 'core.domain.automation.triggers.registry': triggersRegistry, }: IAutomationTriggersDeps): IAutomationTriggers;
@@ -0,0 +1,19 @@
1
+ import { type ZodType } from 'zod';
2
+ import { type AutomationRuleEventAction, type AutomationRulesEventTopic } from '../../../_types/automation';
3
+ import { type IAutomationTriggersTopics } from './automationTriggersTopics';
4
+ import { AutomationTriggerDefSynchronicity } from './_types';
5
+ type AutomationTriggerRegistration = {
6
+ eventAction: AutomationRuleEventAction;
7
+ topicSchema: ZodType<Partial<AutomationRulesEventTopic>>;
8
+ synchronicity: AutomationTriggerDefSynchronicity;
9
+ };
10
+ export interface IAutomationTriggersRegistry {
11
+ listTriggers(): AutomationTriggerRegistration[];
12
+ getTrigger(eventAction: AutomationRuleEventAction): AutomationTriggerRegistration;
13
+ registerTrigger(def: AutomationTriggerRegistration): void;
14
+ }
15
+ export interface IAutomationTriggersRegistryDeps {
16
+ 'core.domain.automation.triggers.topics': IAutomationTriggersTopics;
17
+ }
18
+ export default function ({ 'core.domain.automation.triggers.topics': topics, }: IAutomationTriggersRegistryDeps): IAutomationTriggersRegistry;
19
+ export {};
@@ -0,0 +1,18 @@
1
+ import { type ZodType } from 'zod';
2
+ import { type GetSystemQueryContext } from '../../../utils/helpers/getSystemQueryContext';
3
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
4
+ import { type IValidateHelper } from '../../helpers/validate';
5
+ export interface IAutomationTriggersTopics {
6
+ librarySchema: ZodType<string>;
7
+ attributeSchema: ZodType<string>;
8
+ libraryAndAttributeSchema: ZodType<{
9
+ library: string;
10
+ attribute: string;
11
+ }>;
12
+ }
13
+ export interface IAutomationTriggersTopicsDeps {
14
+ 'core.domain.attribute': IAttributeDomain;
15
+ 'core.domain.helpers.validate': IValidateHelper;
16
+ 'core.utils.getSystemQueryContext': GetSystemQueryContext;
17
+ }
18
+ export default function ({ 'core.domain.attribute': attributeDomain, 'core.domain.helpers.validate': validate, 'core.utils.getSystemQueryContext': getSystemQueryContext, }: IAutomationTriggersTopicsDeps): IAutomationTriggersTopics;
@@ -0,0 +1,3 @@
1
+ export { default } from './automationTriggers';
2
+ export { default as topics } from './automationTriggersTopics';
3
+ export { default as registry } from './automationTriggersRegistry';
@@ -6,6 +6,7 @@ import { type IValueDomain } from '../value/valueDomain';
6
6
  import { type IUserDomain } from '../user/userDomain';
7
7
  import { type i18n } from 'i18next';
8
8
  import { type IConfig } from '../../_types/config';
9
+ import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
9
10
  export interface IDiscussionDomain {
10
11
  postDiscussionComment(params: {
11
12
  params?: IPostDiscussionCommentParams;
@@ -17,7 +18,8 @@ export interface IDiscussionDomainDeps {
17
18
  'core.domain.record': IRecordDomain;
18
19
  'core.domain.value': IValueDomain;
19
20
  'core.domain.user': IUserDomain;
21
+ 'core.domain.eventsManager': IEventsManagerDomain;
20
22
  translator: i18n;
21
23
  config: IConfig;
22
24
  }
23
- export default function ({ 'core.domain.notification': notificationDomain, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.user': userDomain, translator, config, }: IDiscussionDomainDeps): IDiscussionDomain;
25
+ export default function ({ 'core.domain.notification': notificationDomain, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.user': userDomain, 'core.domain.eventsManager': eventsManagerDomain, translator, config, }: IDiscussionDomainDeps): IDiscussionDomain;
@@ -0,0 +1 @@
1
+ export { default } from './jexlDomain';
@@ -0,0 +1,19 @@
1
+ import { type IValueDomain } from '../value/valueDomain';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
+ import { type IRecord } from '../../_types/record';
4
+ import { type IValue } from '../../_types/value';
5
+ import { type ITreeNode } from '../../_types/tree';
6
+ import { type JexlContext, type JexlRecordContext, type JexlRootContext, type JexlTreeNodeContext, type JexlValueContext } from './types';
7
+ interface IDeps {
8
+ 'core.domain.value': IValueDomain;
9
+ }
10
+ export interface IJexlDomain {
11
+ eval<Ctx extends JexlContext>(expression: string, context?: Ctx): Promise<any>;
12
+ validate(expression: string): Promise<void>;
13
+ buildRootContext: <T>(contextData: T, ctx: IQueryInfos) => JexlRootContext<T>;
14
+ buildRecordContext: (record: IRecord, ctx: IQueryInfos) => JexlRecordContext;
15
+ buildTreeNodeContext: (treeNode: ITreeNode, ctx: IQueryInfos) => JexlTreeNodeContext;
16
+ buildValuesContext: (values: IValue[], ctx: IQueryInfos) => JexlValueContext[];
17
+ }
18
+ export default function ({ 'core.domain.value': valueDomain }: IDeps): IJexlDomain;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ import jexl from 'jexl-extended';
2
+ export default jexl;
@@ -0,0 +1,37 @@
1
+ import { type IQueryInfos } from '../../_types/queryInfos';
2
+ import { type IRecord } from '../../_types/record';
3
+ import { type ITreeNode } from '../../_types/tree';
4
+ import { type IStandardValue } from '../../_types/value';
5
+ export declare enum JexlContextType {
6
+ ROOT = "root",
7
+ RECORD = "record",
8
+ TREE_NODE = "treeNode",
9
+ USER = "user"
10
+ }
11
+ export type JexlContext<T extends JexlContextType = JexlContextType> = {
12
+ /**
13
+ * This property is used internally to identify the type of context (root, record, tree node, user)
14
+ * and should not be used in Jexl expressions as it may cause conflicts with user-defined properties.
15
+ */
16
+ __jexlContextType: T;
17
+ /**
18
+ * This method is used internally to retrieve the IQueryInfos context for the current Jexl evaluation.
19
+ * It should not be used in Jexl expressions as it may cause conflicts with user-defined properties and is not intended for direct use in expressions.
20
+ */
21
+ __getJexlQueryCtx(): IQueryInfos;
22
+ };
23
+ /**
24
+ * The jexl context to be passed in jexl evaluation
25
+ * Still subject to change but the idea is to have a clear separation between root context (which can be defined by the user of the jexl domain)
26
+ * and record/tree node contexts which are built from values payload when using getValues transform or function in jexl expressions
27
+ */
28
+ export type JexlRootContext<T = unknown> = T & JexlContext<JexlContextType.ROOT> & {
29
+ currentUser: JexlUserContext;
30
+ };
31
+ export type JexlRecordContext = IRecord & JexlContext<JexlContextType.RECORD>;
32
+ export type JexlTreeNodeContext = ITreeNode & JexlContext<JexlContextType.TREE_NODE>;
33
+ export type JexlUserContext = JexlContext<JexlContextType.USER> & {
34
+ record: JexlRecordContext;
35
+ lang?: string;
36
+ };
37
+ export type JexlValueContext = IStandardValue['payload'] | JexlRecordContext | JexlTreeNodeContext;
@@ -21,12 +21,16 @@ export interface IAttributeDependentValuesPermissionDomain {
21
21
  dependenciesTreeTargets: IPermissionsDependenciesTreeTarget[];
22
22
  ctx: IQueryInfos;
23
23
  }): Promise<boolean>;
24
- filterAllowedDependentValuesOnItself(params: {
24
+ filterAllowedWorkflowDependentValues(params: {
25
25
  action: AttributeDependentValuesPermissionsActions;
26
26
  attributeId: string;
27
27
  targetValue: {
28
28
  nodeId: string | null;
29
29
  };
30
+ dependentValue?: {
31
+ attributeId: string;
32
+ nodeId: string | null;
33
+ };
30
34
  allValues: Array<{
31
35
  nodeId: string | null;
32
36
  }>;
@@ -16,11 +16,13 @@ export type IAutomationRuleFilterOptionsInRepo = ICoreEntityFilterOptions & {
16
16
  };
17
17
  export type IGetAutomationRulesParams = IGetCoreEntitiesParams & {
18
18
  filters?: IAutomationRuleFilterOptionsInRepo;
19
+ partialMatchOnEventTopic?: boolean;
19
20
  };
20
21
  export interface IAutomationRuleRepo {
21
22
  createAutomationRule(rule: ICreateAutomationRule, ctx: IQueryInfos): Promise<IAutomationRule>;
22
23
  updateAutomationRule(rule: IUpdateAutomationRule, ctx: IQueryInfos): Promise<IAutomationRule>;
23
24
  getAutomationRules(params: IGetAutomationRulesParams, ctx: IQueryInfos): Promise<IList<IAutomationRule>>;
25
+ deleteAutomationRule(ruleId: string, ctx: IQueryInfos): Promise<IAutomationRule>;
24
26
  }
25
27
  export interface IAutomationRuleRepoDeps {
26
28
  'core.infra.db.dbService': IDbService;
@@ -10,7 +10,7 @@ import { type IDbService } from './dbService';
10
10
  import { type IDbDocument } from './_types';
11
11
  import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
12
12
  export declare const MIGRATIONS_COLLECTION_NAME = "core_db_migrations";
13
- export type CustomFilterConditionsFunc = (filterKey: string, filterVal: string | boolean | string[], strictFilters: boolean) => GeneratedAqlQuery;
13
+ export type CustomFilterConditionsFunc = (filterKey: string, filterVal: string | boolean | string[] | Record<string, unknown>, strictFilter: boolean) => GeneratedAqlQuery;
14
14
  export interface IFindCoreEntityParams<T extends ICoreEntity, DbDocument extends IDbDocument = IDbDocument> {
15
15
  collectionName: string;
16
16
  filters?: ICoreEntityFilterOptions;
@@ -10,6 +10,7 @@ import { type IConfig } from '../_types/config';
10
10
  import { type ValidateRequestTokenFunc } from '../app/helpers/validateRequestToken';
11
11
  import { type HandleGraphqlErrorFunc } from './helpers/handleGraphqlError';
12
12
  import { type InitQueryContextFunc } from '../app/helpers/initQueryContext';
13
+ import { type ITRPCApp } from '../app/trpc/trpcApp';
13
14
  export interface IServer {
14
15
  init(): Promise<void>;
15
16
  initConsumers(): Promise<void>;
@@ -24,6 +25,7 @@ interface IDeps {
24
25
  config?: IConfig;
25
26
  'core.interface.helpers.handleGraphqlError'?: HandleGraphqlErrorFunc;
26
27
  'core.app.graphql'?: IGraphqlApp;
28
+ 'core.app.trpc'?: ITRPCApp;
27
29
  'core.app.auth'?: IAuthApp;
28
30
  'core.app.application'?: IApplicationApp;
29
31
  'core.app.core'?: ICoreApp;
@@ -33,5 +35,5 @@ interface IDeps {
33
35
  'core.utils'?: IUtils;
34
36
  'core.depsManager'?: AwilixContainer;
35
37
  }
36
- export default function ({ config: config, 'core.interface.helpers.handleGraphqlError': handleGraphqlError, 'core.app.graphql': graphqlApp, 'core.app.auth': authApp, 'core.app.application': applicationApp, 'core.app.core': coreApp, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.app.helpers.initQueryContext': initQueryContext, 'core.utils.logger': logger, 'core.utils': utils, 'core.depsManager': depsManager, }?: IDeps): IServer;
38
+ export default function ({ config: config, 'core.interface.helpers.handleGraphqlError': handleGraphqlError, 'core.app.graphql': graphqlApp, 'core.app.trpc': trpcApp, 'core.app.auth': authApp, 'core.app.application': applicationApp, 'core.app.core': coreApp, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.app.helpers.initQueryContext': initQueryContext, 'core.utils.logger': logger, 'core.utils': utils, 'core.depsManager': depsManager, }?: IDeps): IServer;
37
39
  export {};
@@ -1 +1 @@
1
- {"root":["../../../codegen.ts","../../../vitest.integration.config.ts","../../../vitest.unit.config.ts","../../../config/default.js","../../../config/development.js","../../../config/test.js","../../../src/config.ts","../../../src/depsManager.ts","../../../src/env.ts","../../../src/i18nextInit.ts","../../../src/index.ts","../../../src/pluginsLoader.ts","../../../src/pluginsModuleResolver.ts","../../../src/testConfig.ts","../../../src/_constants/attributes.ts","../../../src/_constants/discussions.ts","../../../src/_constants/globalSettings.ts","../../../src/_constants/libraries.ts","../../../src/_constants/notifications.ts","../../../src/_constants/users.ts","../../../src/_constants/values.ts","../../../src/_types/actionsList.ts","../../../src/_types/apiKey.ts","../../../src/_types/application.ts","../../../src/_types/attribute.ts","../../../src/_types/auth.ts","../../../src/_types/automation.ts","../../../src/_types/config.ts","../../../src/_types/cronTask.ts","../../../src/_types/dbProfiler.ts","../../../src/_types/discussion.ts","../../../src/_types/elasticSearch.ts","../../../src/_types/endpoint.ts","../../../src/_types/errors.ts","../../../src/_types/events.ts","../../../src/_types/eventsManager.ts","../../../src/_types/express.ts","../../../src/_types/extensionPoints.ts","../../../src/_types/filesManager.ts","../../../src/_types/forms.ts","../../../src/_types/globalSettings.ts","../../../src/_types/graphql.ts","../../../src/_types/import.ts","../../../src/_types/library.ts","../../../src/_types/list.ts","../../../src/_types/log.ts","../../../src/_types/migration.ts","../../../src/_types/notification.ts","../../../src/_types/permissions.ts","../../../src/_types/plugin.ts","../../../src/_types/preview.ts","../../../src/_types/queryInfos.ts","../../../src/_types/record.ts","../../../src/_types/shared.ts","../../../src/_types/systemTranslation.ts","../../../src/_types/tasksManager.ts","../../../src/_types/tree.ts","../../../src/_types/userData.ts","../../../src/_types/utils.ts","../../../src/_types/value.ts","../../../src/_types/versionProfile.ts","../../../src/_types/views.ts","../../../src/app/application/applicationApp.ts","../../../src/app/application/index.ts","../../../src/app/auth/authApp.ts","../../../src/app/auth/index.ts","../../../src/app/core/actionListApp.ts","../../../src/app/core/automationApp.ts","../../../src/app/core/coreApp.ts","../../../src/app/core/discussionApp.ts","../../../src/app/core/eventsManagerApp.ts","../../../src/app/core/exportApp.ts","../../../src/app/core/filesManagerApp.ts","../../../src/app/core/globalSettingsApp.ts","../../../src/app/core/importApp.ts","../../../src/app/core/index.ts","../../../src/app/core/indexationManagerApp.ts","../../../src/app/core/logApp.ts","../../../src/app/core/logsCollectorApp.ts","../../../src/app/core/notificationApp.ts","../../../src/app/core/pluginsApp.ts","../../../src/app/core/tasksManagerApp.ts","../../../src/app/core/userDataApp.ts","../../../src/app/core/valueApp.ts","../../../src/app/core/viewApp.ts","../../../src/app/core/apiKeyApp/_types.ts","../../../src/app/core/apiKeyApp/apiKeyApp.ts","../../../src/app/core/attributeApp/attributeApp.ts","../../../src/app/core/formApp/_types.ts","../../../src/app/core/formApp/formApp.ts","../../../src/app/core/helpers/subscriptions.ts","../../../src/app/core/libraryApp/_types.ts","../../../src/app/core/libraryApp/libraryApp.ts","../../../src/app/core/permissionApp/_types.ts","../../../src/app/core/permissionApp/permissionApp.ts","../../../src/app/core/recordApp/_types.ts","../../../src/app/core/recordApp/recordApp.ts","../../../src/app/core/treeApp/_types.ts","../../../src/app/core/treeApp/treeApp.ts","../../../src/app/core/versionProfileApp/_types.ts","../../../src/app/core/versionProfileApp/versionProfileApp.ts","../../../src/app/endpoint/endpointApp.ts","../../../src/app/endpoint/index.ts","../../../src/app/graphql/graphqlApp.ts","../../../src/app/graphql/index.ts","../../../src/app/graphql/customScalars/any/any.ts","../../../src/app/graphql/customScalars/any/index.ts","../../../src/app/graphql/customScalars/dateTime/dateTime.ts","../../../src/app/graphql/customScalars/dateTime/index.ts","../../../src/app/graphql/customScalars/helpers/parseLiteral.ts","../../../src/app/graphql/customScalars/systemTranslation/index.ts","../../../src/app/graphql/customScalars/systemTranslation/systemTranslation.ts","../../../src/app/helpers/convertOIDCIdentifier.ts","../../../src/app/helpers/convertVersionFromGqlFormat.ts","../../../src/app/helpers/index.ts","../../../src/app/helpers/initQueryContext.ts","../../../src/app/helpers/validateRequestToken.ts","../../../src/domain/actions/dateRangeToNumberAction.ts","../../../src/domain/actions/encryptAction.ts","../../../src/domain/actions/excelCalculationAction.ts","../../../src/domain/actions/formatDateAction.ts","../../../src/domain/actions/formatDateRangeAction.ts","../../../src/domain/actions/formatNumberAction.ts","../../../src/domain/actions/index.ts","../../../src/domain/actions/inheritanceCalculationAction.ts","../../../src/domain/actions/maskValueAction.ts","../../../src/domain/actions/parseJSONAction.ts","../../../src/domain/actions/replaceAnotherAttributeAction.ts","../../../src/domain/actions/toBooleanAction.ts","../../../src/domain/actions/toJSONAction.ts","../../../src/domain/actions/toLowercaseAction.ts","../../../src/domain/actions/toNumberAction.ts","../../../src/domain/actions/toStringAction.ts","../../../src/domain/actions/toUppercaseAction.ts","../../../src/domain/actions/validateEmailAction.ts","../../../src/domain/actions/validateFormatAction.ts","../../../src/domain/actions/validateRegexAction.ts","../../../src/domain/actions/validateURLAction.ts","../../../src/domain/actionsList/actionsListDomain.ts","../../../src/domain/actionsList/index.ts","../../../src/domain/apiKey/apiKeyDomain.ts","../../../src/domain/apiKey/index.ts","../../../src/domain/application/appStudioDomain.ts","../../../src/domain/application/applicationDomain.ts","../../../src/domain/application/index.ts","../../../src/domain/application/helpers/getLibrarySystemPanels.ts","../../../src/domain/application/helpers/index.ts","../../../src/domain/attribute/attributeDomain.ts","../../../src/domain/attribute/index.ts","../../../src/domain/attribute/helpers/attributeALHelper.ts","../../../src/domain/attribute/helpers/attributeValidationHelper.ts","../../../src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.ts","../../../src/domain/attribute/helpers/index.ts","../../../src/domain/automation/automationDomain.ts","../../../src/domain/automation/fakeRulesToTrigger.ts","../../../src/domain/automation/index.ts","../../../src/domain/automation/pipelineExecutor.ts","../../../src/domain/automation/types.ts","../../../src/domain/automation/actions/conditionAction.ts","../../../src/domain/automation/actions/errorAction.ts","../../../src/domain/automation/actions/index.ts","../../../src/domain/automation/actions/logAction.ts","../../../src/domain/core/coreDomain.ts","../../../src/domain/core/index.ts","../../../src/domain/discussion/discussionDomain.ts","../../../src/domain/discussion/index.ts","../../../src/domain/eventsManager/eventsManagerDomain.ts","../../../src/domain/eventsManager/index.ts","../../../src/domain/export/exportDomain.ts","../../../src/domain/export/exportProfileDomain.ts","../../../src/domain/export/index.ts","../../../src/domain/filesManager/_constants.ts","../../../src/domain/filesManager/filesManagerDomain.ts","../../../src/domain/filesManager/index.ts","../../../src/domain/filesManager/helpers/extractFileMetadata.ts","../../../src/domain/filesManager/helpers/getRootPathByKey.ts","../../../src/domain/filesManager/helpers/handleFileUtilsHelper.ts","../../../src/domain/filesManager/helpers/handlePreview.ts","../../../src/domain/filesManager/helpers/handlePreviewResponse.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/_types.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/index.ts","../../../src/domain/filesManager/helpers/messagesHandler/index.ts","../../../src/domain/filesManager/helpers/messagesHandler/messagesHandler.ts","../../../src/domain/form/formDomain.ts","../../../src/domain/form/index.ts","../../../src/domain/form/helpers/getElementValues.ts","../../../src/domain/form/helpers/mustIncludeElement.ts","../../../src/domain/globalSettings/globalSettingsDomain.ts","../../../src/domain/globalSettings/index.ts","../../../src/domain/helpers/createDirectory.ts","../../../src/domain/helpers/getCoreEntityById.ts","../../../src/domain/helpers/index.ts","../../../src/domain/helpers/storeUploadFile.ts","../../../src/domain/helpers/updateRecordLastModif.ts","../../../src/domain/helpers/updateTaskProgress.ts","../../../src/domain/helpers/validate.ts","../../../src/domain/helpers/calculations/calculationVariable.ts","../../../src/domain/helpers/calculations/calculationsVariableFunctions.ts","../../../src/domain/import/importDomain.ts","../../../src/domain/import/index.ts","../../../src/domain/indexationManager/index.ts","../../../src/domain/indexationManager/indexationManagerDomain.ts","../../../src/domain/library/index.ts","../../../src/domain/library/libraryDomain.ts","../../../src/domain/library/helpers/checkSavePermission.ts","../../../src/domain/library/helpers/deleteAssociatedValues.ts","../../../src/domain/library/helpers/index.ts","../../../src/domain/library/helpers/runBehaviorPostSave.ts","../../../src/domain/library/helpers/runPreDelete.ts","../../../src/domain/library/helpers/updateAssociatedForms.ts","../../../src/domain/library/helpers/validateLibAttributes.ts","../../../src/domain/library/helpers/validateLibFullTextAttributes.ts","../../../src/domain/library/helpers/validatePermConf.ts","../../../src/domain/library/helpers/validatePreviewsSettings.ts","../../../src/domain/library/helpers/validateRecordIdentityConf.ts","../../../src/domain/log/index.ts","../../../src/domain/log/logDomain.ts","../../../src/domain/logsCollector/index.ts","../../../src/domain/logsCollector/logsCollectorDomain.ts","../../../src/domain/notification/index.ts","../../../src/domain/notification/notificationDomain.ts","../../../src/domain/notification/channels/emailChannel.ts","../../../src/domain/notification/channels/webSocketChannel.ts","../../../src/domain/permission/_types.ts","../../../src/domain/permission/adminPermissionDomain.ts","../../../src/domain/permission/applicationPermissionDomain.ts","../../../src/domain/permission/attributeDependentValuesPermissionDomain.ts","../../../src/domain/permission/attributePermissionDomain.ts","../../../src/domain/permission/index.ts","../../../src/domain/permission/libraryPermissionDomain.ts","../../../src/domain/permission/permissionDomain.ts","../../../src/domain/permission/recordAttributePermissionDomain.ts","../../../src/domain/permission/recordPermissionDomain.ts","../../../src/domain/permission/treeLibraryPermissionDomain.ts","../../../src/domain/permission/treeNodePermissionDomain.ts","../../../src/domain/permission/treePermissionDomain.ts","../../../src/domain/permission/helpers/defaultPermission.ts","../../../src/domain/permission/helpers/getPermissionCacheKey.ts","../../../src/domain/permission/helpers/getPermissionCachePatternKey.ts","../../../src/domain/permission/helpers/globalPermission.ts","../../../src/domain/permission/helpers/index.ts","../../../src/domain/permission/helpers/permissionByUserGroups.ts","../../../src/domain/permission/helpers/permissionsByActions.ts","../../../src/domain/permission/helpers/recordInCreationBypass.ts","../../../src/domain/permission/helpers/reducePermissionsArray.ts","../../../src/domain/permission/helpers/simplePermission.ts","../../../src/domain/permission/helpers/treeBasedPermissions.ts","../../../src/domain/plugins/index.ts","../../../src/domain/plugins/pluginsDomain.ts","../../../src/domain/record/_types.ts","../../../src/domain/record/index.ts","../../../src/domain/record/recordDomain.ts","../../../src/domain/record/helpers/createRecord.ts","../../../src/domain/record/helpers/deleteRecord.ts","../../../src/domain/record/helpers/findRecords.ts","../../../src/domain/record/helpers/getAccessPermissionFilters.ts","../../../src/domain/record/helpers/getAttributesFromField.ts","../../../src/domain/record/helpers/getRecordIdentity.ts","../../../src/domain/record/helpers/index.ts","../../../src/domain/record/helpers/sendRecordUpdateEvent.ts","../../../src/domain/tasksManager/cronTasksManagerDomain.ts","../../../src/domain/tasksManager/index.ts","../../../src/domain/tasksManager/tasksManagerDomain.ts","../../../src/domain/tree/index.ts","../../../src/domain/tree/treeDomain.ts","../../../src/domain/tree/helpers/elementAncestors.ts","../../../src/domain/tree/helpers/getDefaultElement.ts","../../../src/domain/tree/helpers/handleRemovedLibraries.ts","../../../src/domain/tree/helpers/index.ts","../../../src/domain/tree/helpers/treeDataValidation.ts","../../../src/domain/user/index.ts","../../../src/domain/user/userDomain.ts","../../../src/domain/value/_types.ts","../../../src/domain/value/index.ts","../../../src/domain/value/valueDomain.ts","../../../src/domain/value/helpers/areValuesIdentical.ts","../../../src/domain/value/helpers/canSaveRecordValue.ts","../../../src/domain/value/helpers/doesValueExist.ts","../../../src/domain/value/helpers/findValue.ts","../../../src/domain/value/helpers/formatLogValue.ts","../../../src/domain/value/helpers/formatValue.ts","../../../src/domain/value/helpers/getRecordFieldValue.ts","../../../src/domain/value/helpers/getValues.ts","../../../src/domain/value/helpers/index.ts","../../../src/domain/value/helpers/isEmptyValue.ts","../../../src/domain/value/helpers/manageEventMetadata.ts","../../../src/domain/value/helpers/postDeleteValue.ts","../../../src/domain/value/helpers/postSaveValue.ts","../../../src/domain/value/helpers/prepareValue.ts","../../../src/domain/value/helpers/runActionsList.ts","../../../src/domain/value/helpers/saveOneValue.ts","../../../src/domain/value/helpers/validateValue.ts","../../../src/domain/value/tasks/index.ts","../../../src/domain/value/tasks/purgeMultipleValues.ts","../../../src/domain/value/tasks/saveValueBulk.ts","../../../src/domain/versionProfile/index.ts","../../../src/domain/versionProfile/versionProfileDomain.ts","../../../src/domain/view/index.ts","../../../src/domain/view/viewDomain.ts","../../../src/errors/ApplicationError.ts","../../../src/errors/AuthenticationError.ts","../../../src/errors/GraphQLAuthenticationError.ts","../../../src/errors/LeavError.ts","../../../src/errors/PermissionError.ts","../../../src/errors/ValidationError.ts","../../../src/errors/typeguards.ts","../../../src/infra/apiKey/apiKeyRepo.ts","../../../src/infra/apiKey/index.ts","../../../src/infra/application/applicationRepo.ts","../../../src/infra/application/index.ts","../../../src/infra/attribute/attributeRepo.ts","../../../src/infra/attribute/index.ts","../../../src/infra/attributeTypes/attributeAdvancedLinkRepo.ts","../../../src/infra/attributeTypes/attributeAdvancedRepo.ts","../../../src/infra/attributeTypes/attributeSimpleLinkRepo.ts","../../../src/infra/attributeTypes/attributeSimpleRepo.ts","../../../src/infra/attributeTypes/attributeTreeRepo.ts","../../../src/infra/attributeTypes/attributeTypesRepo.ts","../../../src/infra/attributeTypes/index.ts","../../../src/infra/attributeTypes/helpers/getConditionPart.ts","../../../src/infra/attributeTypes/helpers/index.ts","../../../src/infra/automation/automationRuleRepo.ts","../../../src/infra/automation/index.ts","../../../src/infra/cache/cacheService.ts","../../../src/infra/cache/diskService.ts","../../../src/infra/cache/index.ts","../../../src/infra/cache/ramService.ts","../../../src/infra/cache/redis.ts","../../../src/infra/db/_constants.ts","../../../src/infra/db/_types.ts","../../../src/infra/db/db.ts","../../../src/infra/db/dbService.ts","../../../src/infra/db/dbUtils.ts","../../../src/infra/db/index.ts","../../../src/infra/db/helpers/libraryUtils.ts","../../../src/infra/db/helpers/loadMigrationFile.ts","../../../src/infra/db/helpers/runMigrationFiles.ts","../../../src/infra/db/migrations/001-delInstallApps.ts","../../../src/infra/db/migrations/002-previewsSettings.ts","../../../src/infra/db/migrations/003-filesMetadata.ts","../../../src/infra/db/migrations/004-formsLabels.ts","../../../src/infra/db/migrations/005-viewSortToArray.ts","../../../src/infra/db/migrations/006-addRequiredAttributeProperty.ts","../../../src/infra/db/migrations/007-updateHexColor.ts","../../../src/infra/db/migrations/008-addSkeletonApp.ts","../../../src/infra/db/migrations/009-addDisplayMultiLinkOptAttributeProperty.ts","../../../src/infra/db/migrations/010-formSidePanel.ts","../../../src/infra/db/migrations/011-moveSkeletonApptoAppStudio.ts","../../../src/infra/db/migrations/012-addDisplayMultiTreeOptAttributeProperty.ts","../../../src/infra/db/migrations/013-passwordAttributeMaskValue.ts","../../../src/infra/db/migrations/014-notificationsCollection.ts","../../../src/infra/db/migrations/015-addExplorerStudioApp.ts","../../../src/infra/db/migrations/016-addStatusIconAttribute.ts","../../../src/infra/db/migrations/017-moveLibrariesPanelsFromApplicationsToLibrariesSettings.ts","../../../src/infra/db/migrations/018-moveAppStudioToCampaignsManager.ts","../../../src/infra/db/migrations/019-automationRuleCollection.ts","../../../src/infra/db/migrations/000-init/coreCollections.ts","../../../src/infra/db/migrations/000-init/index.ts","../../../src/infra/db/migrations/000-init/systemApplications.ts","../../../src/infra/db/migrations/000-init/systemAttributes.ts","../../../src/infra/db/migrations/000-init/systemLibraries.ts","../../../src/infra/db/migrations/000-init/systemTrees.ts","../../../src/infra/db/migrations/013-threads/comments.ts","../../../src/infra/db/migrations/013-threads/constants.ts","../../../src/infra/db/migrations/013-threads/index.ts","../../../src/infra/db/migrations/013-threads/statuses.ts","../../../src/infra/db/migrations/013-threads/threads.ts","../../../src/infra/elasticsearch/elasticsearchClient.ts","../../../src/infra/elasticsearch/elasticsearchService.ts","../../../src/infra/elasticsearch/index.ts","../../../src/infra/filesManager/filesManagerRepo.ts","../../../src/infra/filesManager/index.ts","../../../src/infra/form/formRepo.ts","../../../src/infra/form/index.ts","../../../src/infra/globalSettings/globalSettingsRepo.ts","../../../src/infra/globalSettings/index.ts","../../../src/infra/indexation/index.ts","../../../src/infra/indexation/indexationService.ts","../../../src/infra/indexation/helpers/getSearchQuery.ts","../../../src/infra/indexation/helpers/index.ts","../../../src/infra/library/index.ts","../../../src/infra/library/libraryRepo.ts","../../../src/infra/log/index.ts","../../../src/infra/log/logRepo.ts","../../../src/infra/mailer/index.ts","../../../src/infra/mailer/mailer.ts","../../../src/infra/mailer/mailerService.ts","../../../src/infra/notification/index.ts","../../../src/infra/notification/notificationRepo.ts","../../../src/infra/oidc/index.ts","../../../src/infra/oidc/oidcClient.ts","../../../src/infra/oidc/oidcClientService.ts","../../../src/infra/permission/index.ts","../../../src/infra/permission/permissionRepo.ts","../../../src/infra/plugins/index.ts","../../../src/infra/plugins/pluginsRepo.ts","../../../src/infra/record/index.ts","../../../src/infra/record/recordRepo.ts","../../../src/infra/record/helpers/filterTypes.ts","../../../src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.ts","../../../src/infra/record/helpers/getSearchVariableName.ts","../../../src/infra/record/helpers/getSearchVariablesQueryPart.ts","../../../src/infra/record/helpers/index.ts","../../../src/infra/session/index.ts","../../../src/infra/session/sessionRepo.ts","../../../src/infra/task/index.ts","../../../src/infra/task/taskRepo.ts","../../../src/infra/tree/_types.ts","../../../src/infra/tree/index.ts","../../../src/infra/tree/treeRepo.ts","../../../src/infra/tree/helpers/utils.ts","../../../src/infra/userData/index.ts","../../../src/infra/userData/userDataRepo.ts","../../../src/infra/value/index.ts","../../../src/infra/value/valueRepo.ts","../../../src/infra/versionProfile/index.ts","../../../src/infra/versionProfile/versionProfileRepo.ts","../../../src/infra/view/_types.ts","../../../src/infra/view/index.ts","../../../src/infra/view/viewRepo.ts","../../../src/interface/cli.ts","../../../src/interface/filesManager.ts","../../../src/interface/index.ts","../../../src/interface/indexationManager.ts","../../../src/interface/logsCollector.ts","../../../src/interface/server.ts","../../../src/interface/tasksManager.ts","../../../src/interface/helpers/handleGraphqlError.ts","../../../src/interface/helpers/index.ts","../../../src/interface/plugins/apolloTracerPlugin.ts","../../../src/utils/configureDayjs.ts","../../../src/utils/dataloader.ts","../../../src/utils/index.ts","../../../src/utils/utils.ts","../../../src/utils/helpers/getDefaultActionsList.ts","../../../src/utils/helpers/getExcelData.ts","../../../src/utils/helpers/getFileDataBuffer.ts","../../../src/utils/helpers/getLibraryDefaultAttributes.ts","../../../src/utils/helpers/getPreviewsAttributes.ts","../../../src/utils/helpers/getSystemQueryContext.ts","../../../src/utils/helpers/getValuesToDisplay.ts","../../../src/utils/logger/logger.ts","../../../src/utils/typeGuards/index.ts"],"version":"5.9.3"}
1
+ {"root":["../../../codegen.ts","../../../vitest.e2e-api.config.ts","../../../vitest.e2e-fileManager.config.ts","../../../vitest.e2e-indexationManager.config.ts","../../../vitest.integration.config.ts","../../../vitest.unit.config.ts","../../../config/default.js","../../../config/development.js","../../../config/test.js","../../../src/config.ts","../../../src/depsManager.ts","../../../src/env.ts","../../../src/i18nextInit.ts","../../../src/index.ts","../../../src/pluginsLoader.ts","../../../src/pluginsModuleResolver.ts","../../../src/testConfig.ts","../../../src/_constants/attributes.ts","../../../src/_constants/discussions.ts","../../../src/_constants/globalSettings.ts","../../../src/_constants/libraries.ts","../../../src/_constants/notifications.ts","../../../src/_constants/users.ts","../../../src/_constants/values.ts","../../../src/_types/actionsList.ts","../../../src/_types/apiKey.ts","../../../src/_types/application.ts","../../../src/_types/attribute.ts","../../../src/_types/auth.ts","../../../src/_types/automation.ts","../../../src/_types/config.ts","../../../src/_types/cronTask.ts","../../../src/_types/dbProfiler.ts","../../../src/_types/discussion.ts","../../../src/_types/elasticSearch.ts","../../../src/_types/endpoint.ts","../../../src/_types/errors.ts","../../../src/_types/events.ts","../../../src/_types/eventsManager.ts","../../../src/_types/express.ts","../../../src/_types/extensionPoints.ts","../../../src/_types/filesManager.ts","../../../src/_types/forms.ts","../../../src/_types/globalSettings.ts","../../../src/_types/graphql.ts","../../../src/_types/import.ts","../../../src/_types/library.ts","../../../src/_types/list.ts","../../../src/_types/log.ts","../../../src/_types/migration.ts","../../../src/_types/notification.ts","../../../src/_types/permissions.ts","../../../src/_types/plugin.ts","../../../src/_types/preview.ts","../../../src/_types/queryInfos.ts","../../../src/_types/record.ts","../../../src/_types/shared.ts","../../../src/_types/systemTranslation.ts","../../../src/_types/tasksManager.ts","../../../src/_types/tree.ts","../../../src/_types/userData.ts","../../../src/_types/utils.ts","../../../src/_types/value.ts","../../../src/_types/versionProfile.ts","../../../src/_types/views.ts","../../../src/app/application/applicationApp.ts","../../../src/app/application/index.ts","../../../src/app/auth/authApp.ts","../../../src/app/auth/index.ts","../../../src/app/core/actionListApp.ts","../../../src/app/core/automationApp.ts","../../../src/app/core/coreApp.ts","../../../src/app/core/discussionApp.ts","../../../src/app/core/eventsManagerApp.ts","../../../src/app/core/exportApp.ts","../../../src/app/core/filesManagerApp.ts","../../../src/app/core/globalSettingsApp.ts","../../../src/app/core/importApp.ts","../../../src/app/core/index.ts","../../../src/app/core/indexationManagerApp.ts","../../../src/app/core/logApp.ts","../../../src/app/core/logsCollectorApp.ts","../../../src/app/core/notificationApp.ts","../../../src/app/core/pluginsApp.ts","../../../src/app/core/tasksManagerApp.ts","../../../src/app/core/userDataApp.ts","../../../src/app/core/valueApp.ts","../../../src/app/core/viewApp.ts","../../../src/app/core/apiKeyApp/_types.ts","../../../src/app/core/apiKeyApp/apiKeyApp.ts","../../../src/app/core/attributeApp/attributeApp.ts","../../../src/app/core/formApp/_types.ts","../../../src/app/core/formApp/formApp.ts","../../../src/app/core/helpers/subscriptions.ts","../../../src/app/core/libraryApp/_types.ts","../../../src/app/core/libraryApp/libraryApp.ts","../../../src/app/core/permissionApp/_types.ts","../../../src/app/core/permissionApp/permissionApp.ts","../../../src/app/core/recordApp/_types.ts","../../../src/app/core/recordApp/recordApp.ts","../../../src/app/core/treeApp/_types.ts","../../../src/app/core/treeApp/treeApp.ts","../../../src/app/core/versionProfileApp/_types.ts","../../../src/app/core/versionProfileApp/versionProfileApp.ts","../../../src/app/endpoint/endpointApp.ts","../../../src/app/endpoint/index.ts","../../../src/app/graphql/graphqlApp.ts","../../../src/app/graphql/index.ts","../../../src/app/graphql/customScalars/any/any.ts","../../../src/app/graphql/customScalars/any/index.ts","../../../src/app/graphql/customScalars/dateTime/dateTime.ts","../../../src/app/graphql/customScalars/dateTime/index.ts","../../../src/app/graphql/customScalars/helpers/parseLiteral.ts","../../../src/app/graphql/customScalars/systemTranslation/index.ts","../../../src/app/graphql/customScalars/systemTranslation/systemTranslation.ts","../../../src/app/helpers/convertOIDCIdentifier.ts","../../../src/app/helpers/convertVersionFromGqlFormat.ts","../../../src/app/helpers/index.ts","../../../src/app/helpers/initQueryContext.ts","../../../src/app/helpers/validateRequestToken.ts","../../../src/app/trpc/index.ts","../../../src/app/trpc/trpcApp.ts","../../../src/domain/actions/dateRangeToNumberAction.ts","../../../src/domain/actions/encryptAction.ts","../../../src/domain/actions/excelCalculationAction.ts","../../../src/domain/actions/formatDateAction.ts","../../../src/domain/actions/formatDateRangeAction.ts","../../../src/domain/actions/formatNumberAction.ts","../../../src/domain/actions/index.ts","../../../src/domain/actions/inheritanceCalculationAction.ts","../../../src/domain/actions/jexlCalculationAction.ts","../../../src/domain/actions/maskValueAction.ts","../../../src/domain/actions/parseJSONAction.ts","../../../src/domain/actions/replaceAnotherAttributeAction.ts","../../../src/domain/actions/toBooleanAction.ts","../../../src/domain/actions/toJSONAction.ts","../../../src/domain/actions/toLowercaseAction.ts","../../../src/domain/actions/toNumberAction.ts","../../../src/domain/actions/toStringAction.ts","../../../src/domain/actions/toUppercaseAction.ts","../../../src/domain/actions/validateEmailAction.ts","../../../src/domain/actions/validateFormatAction.ts","../../../src/domain/actions/validateRegexAction.ts","../../../src/domain/actions/validateURLAction.ts","../../../src/domain/actionsList/actionsListDomain.ts","../../../src/domain/actionsList/index.ts","../../../src/domain/apiKey/apiKeyDomain.ts","../../../src/domain/apiKey/index.ts","../../../src/domain/application/appStudioDomain.ts","../../../src/domain/application/applicationDomain.ts","../../../src/domain/application/index.ts","../../../src/domain/application/helpers/getLibrarySystemPanels.ts","../../../src/domain/application/helpers/index.ts","../../../src/domain/attribute/attributeDomain.ts","../../../src/domain/attribute/index.ts","../../../src/domain/attribute/helpers/attributeALHelper.ts","../../../src/domain/attribute/helpers/attributeValidationHelper.ts","../../../src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.ts","../../../src/domain/attribute/helpers/index.ts","../../../src/domain/automation/automationActionsRegistry.ts","../../../src/domain/automation/automationDomain.ts","../../../src/domain/automation/fakeRulesToTrigger.ts","../../../src/domain/automation/index.ts","../../../src/domain/automation/actions/_types.ts","../../../src/domain/automation/actions/conditionAction.ts","../../../src/domain/automation/actions/errorAction.ts","../../../src/domain/automation/actions/index.ts","../../../src/domain/automation/actions/jexlCalculationAutomationAction.ts","../../../src/domain/automation/actions/logAction.ts","../../../src/domain/automation/actions/modifyAttributeAction.ts","../../../src/domain/automation/pipeline/_types.ts","../../../src/domain/automation/pipeline/index.ts","../../../src/domain/automation/pipeline/pipeline.ts","../../../src/domain/automation/triggers/_types.ts","../../../src/domain/automation/triggers/automationTriggers.ts","../../../src/domain/automation/triggers/automationTriggersRegistry.ts","../../../src/domain/automation/triggers/automationTriggersTopics.ts","../../../src/domain/automation/triggers/index.ts","../../../src/domain/core/coreDomain.ts","../../../src/domain/core/index.ts","../../../src/domain/discussion/discussionDomain.ts","../../../src/domain/discussion/index.ts","../../../src/domain/eventsManager/eventsManagerDomain.ts","../../../src/domain/eventsManager/index.ts","../../../src/domain/export/exportDomain.ts","../../../src/domain/export/exportProfileDomain.ts","../../../src/domain/export/index.ts","../../../src/domain/filesManager/_constants.ts","../../../src/domain/filesManager/filesManagerDomain.ts","../../../src/domain/filesManager/index.ts","../../../src/domain/filesManager/helpers/extractFileMetadata.ts","../../../src/domain/filesManager/helpers/getRootPathByKey.ts","../../../src/domain/filesManager/helpers/handleFileUtilsHelper.ts","../../../src/domain/filesManager/helpers/handlePreview.ts","../../../src/domain/filesManager/helpers/handlePreviewResponse.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/_types.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.ts","../../../src/domain/filesManager/helpers/handleFileSystemEvent/index.ts","../../../src/domain/filesManager/helpers/messagesHandler/index.ts","../../../src/domain/filesManager/helpers/messagesHandler/messagesHandler.ts","../../../src/domain/form/formDomain.ts","../../../src/domain/form/index.ts","../../../src/domain/form/helpers/getElementValues.ts","../../../src/domain/form/helpers/mustIncludeElement.ts","../../../src/domain/globalSettings/globalSettingsDomain.ts","../../../src/domain/globalSettings/index.ts","../../../src/domain/helpers/createDirectory.ts","../../../src/domain/helpers/getCoreEntityById.ts","../../../src/domain/helpers/index.ts","../../../src/domain/helpers/storeUploadFile.ts","../../../src/domain/helpers/updateRecordLastModif.ts","../../../src/domain/helpers/updateTaskProgress.ts","../../../src/domain/helpers/validate.ts","../../../src/domain/helpers/calculations/calculationVariable.ts","../../../src/domain/helpers/calculations/calculationsVariableFunctions.ts","../../../src/domain/import/importDomain.ts","../../../src/domain/import/index.ts","../../../src/domain/indexationManager/index.ts","../../../src/domain/indexationManager/indexationManagerDomain.ts","../../../src/domain/jexl/index.ts","../../../src/domain/jexl/jexlDomain.ts","../../../src/domain/jexl/jexlExtended.ts","../../../src/domain/jexl/types.ts","../../../src/domain/library/index.ts","../../../src/domain/library/libraryDomain.ts","../../../src/domain/library/helpers/checkSavePermission.ts","../../../src/domain/library/helpers/deleteAssociatedValues.ts","../../../src/domain/library/helpers/index.ts","../../../src/domain/library/helpers/runBehaviorPostSave.ts","../../../src/domain/library/helpers/runPreDelete.ts","../../../src/domain/library/helpers/updateAssociatedForms.ts","../../../src/domain/library/helpers/validateLibAttributes.ts","../../../src/domain/library/helpers/validateLibFullTextAttributes.ts","../../../src/domain/library/helpers/validatePermConf.ts","../../../src/domain/library/helpers/validatePreviewsSettings.ts","../../../src/domain/library/helpers/validateRecordIdentityConf.ts","../../../src/domain/log/index.ts","../../../src/domain/log/logDomain.ts","../../../src/domain/logsCollector/index.ts","../../../src/domain/logsCollector/logsCollectorDomain.ts","../../../src/domain/notification/index.ts","../../../src/domain/notification/notificationDomain.ts","../../../src/domain/notification/channels/emailChannel.ts","../../../src/domain/notification/channels/webSocketChannel.ts","../../../src/domain/permission/_types.ts","../../../src/domain/permission/adminPermissionDomain.ts","../../../src/domain/permission/applicationPermissionDomain.ts","../../../src/domain/permission/attributeDependentValuesPermissionDomain.ts","../../../src/domain/permission/attributePermissionDomain.ts","../../../src/domain/permission/index.ts","../../../src/domain/permission/libraryPermissionDomain.ts","../../../src/domain/permission/permissionDomain.ts","../../../src/domain/permission/recordAttributePermissionDomain.ts","../../../src/domain/permission/recordPermissionDomain.ts","../../../src/domain/permission/treeLibraryPermissionDomain.ts","../../../src/domain/permission/treeNodePermissionDomain.ts","../../../src/domain/permission/treePermissionDomain.ts","../../../src/domain/permission/helpers/defaultPermission.ts","../../../src/domain/permission/helpers/getPermissionCacheKey.ts","../../../src/domain/permission/helpers/getPermissionCachePatternKey.ts","../../../src/domain/permission/helpers/globalPermission.ts","../../../src/domain/permission/helpers/index.ts","../../../src/domain/permission/helpers/permissionByUserGroups.ts","../../../src/domain/permission/helpers/permissionsByActions.ts","../../../src/domain/permission/helpers/recordInCreationBypass.ts","../../../src/domain/permission/helpers/reducePermissionsArray.ts","../../../src/domain/permission/helpers/simplePermission.ts","../../../src/domain/permission/helpers/treeBasedPermissions.ts","../../../src/domain/plugins/index.ts","../../../src/domain/plugins/pluginsDomain.ts","../../../src/domain/record/_types.ts","../../../src/domain/record/index.ts","../../../src/domain/record/recordDomain.ts","../../../src/domain/record/helpers/createRecord.ts","../../../src/domain/record/helpers/deleteRecord.ts","../../../src/domain/record/helpers/findRecords.ts","../../../src/domain/record/helpers/getAccessPermissionFilters.ts","../../../src/domain/record/helpers/getAttributesFromField.ts","../../../src/domain/record/helpers/getRecordIdentity.ts","../../../src/domain/record/helpers/index.ts","../../../src/domain/record/helpers/sendRecordUpdateEvent.ts","../../../src/domain/tasksManager/cronTasksManagerDomain.ts","../../../src/domain/tasksManager/index.ts","../../../src/domain/tasksManager/tasksManagerDomain.ts","../../../src/domain/tree/index.ts","../../../src/domain/tree/treeDomain.ts","../../../src/domain/tree/helpers/elementAncestors.ts","../../../src/domain/tree/helpers/getDefaultElement.ts","../../../src/domain/tree/helpers/handleRemovedLibraries.ts","../../../src/domain/tree/helpers/index.ts","../../../src/domain/tree/helpers/treeDataValidation.ts","../../../src/domain/user/index.ts","../../../src/domain/user/userDomain.ts","../../../src/domain/value/_types.ts","../../../src/domain/value/index.ts","../../../src/domain/value/valueDomain.ts","../../../src/domain/value/helpers/areValuesIdentical.ts","../../../src/domain/value/helpers/canSaveRecordValue.ts","../../../src/domain/value/helpers/doesValueExist.ts","../../../src/domain/value/helpers/findValue.ts","../../../src/domain/value/helpers/formatLogValue.ts","../../../src/domain/value/helpers/formatValue.ts","../../../src/domain/value/helpers/getRecordFieldValue.ts","../../../src/domain/value/helpers/getValues.ts","../../../src/domain/value/helpers/index.ts","../../../src/domain/value/helpers/isEmptyValue.ts","../../../src/domain/value/helpers/manageEventMetadata.ts","../../../src/domain/value/helpers/postDeleteValue.ts","../../../src/domain/value/helpers/postSaveValue.ts","../../../src/domain/value/helpers/prepareValue.ts","../../../src/domain/value/helpers/runActionsList.ts","../../../src/domain/value/helpers/saveOneValue.ts","../../../src/domain/value/helpers/validateValue.ts","../../../src/domain/value/tasks/index.ts","../../../src/domain/value/tasks/purgeMultipleValues.ts","../../../src/domain/value/tasks/saveValueBulk.ts","../../../src/domain/versionProfile/index.ts","../../../src/domain/versionProfile/versionProfileDomain.ts","../../../src/domain/view/index.ts","../../../src/domain/view/viewDomain.ts","../../../src/errors/ApplicationError.ts","../../../src/errors/AuthenticationError.ts","../../../src/errors/GraphQLAuthenticationError.ts","../../../src/errors/LeavError.ts","../../../src/errors/PermissionError.ts","../../../src/errors/ValidationError.ts","../../../src/errors/typeguards.ts","../../../src/infra/apiKey/apiKeyRepo.ts","../../../src/infra/apiKey/index.ts","../../../src/infra/application/applicationRepo.ts","../../../src/infra/application/index.ts","../../../src/infra/attribute/attributeRepo.ts","../../../src/infra/attribute/index.ts","../../../src/infra/attributeTypes/attributeAdvancedLinkRepo.ts","../../../src/infra/attributeTypes/attributeAdvancedRepo.ts","../../../src/infra/attributeTypes/attributeSimpleLinkRepo.ts","../../../src/infra/attributeTypes/attributeSimpleRepo.ts","../../../src/infra/attributeTypes/attributeTreeRepo.ts","../../../src/infra/attributeTypes/attributeTypesRepo.ts","../../../src/infra/attributeTypes/index.ts","../../../src/infra/attributeTypes/helpers/getConditionPart.ts","../../../src/infra/attributeTypes/helpers/index.ts","../../../src/infra/automation/automationRuleRepo.ts","../../../src/infra/automation/index.ts","../../../src/infra/cache/cacheService.ts","../../../src/infra/cache/diskService.ts","../../../src/infra/cache/index.ts","../../../src/infra/cache/ramService.ts","../../../src/infra/cache/redis.ts","../../../src/infra/db/_constants.ts","../../../src/infra/db/_types.ts","../../../src/infra/db/db.ts","../../../src/infra/db/dbService.ts","../../../src/infra/db/dbUtils.ts","../../../src/infra/db/index.ts","../../../src/infra/db/helpers/libraryUtils.ts","../../../src/infra/db/helpers/loadMigrationFile.ts","../../../src/infra/db/helpers/runMigrationFiles.ts","../../../src/infra/db/migrations/001-delInstallApps.ts","../../../src/infra/db/migrations/002-previewsSettings.ts","../../../src/infra/db/migrations/003-filesMetadata.ts","../../../src/infra/db/migrations/004-formsLabels.ts","../../../src/infra/db/migrations/005-viewSortToArray.ts","../../../src/infra/db/migrations/006-addRequiredAttributeProperty.ts","../../../src/infra/db/migrations/007-updateHexColor.ts","../../../src/infra/db/migrations/008-addSkeletonApp.ts","../../../src/infra/db/migrations/009-addDisplayMultiLinkOptAttributeProperty.ts","../../../src/infra/db/migrations/010-formSidePanel.ts","../../../src/infra/db/migrations/011-moveSkeletonApptoAppStudio.ts","../../../src/infra/db/migrations/012-addDisplayMultiTreeOptAttributeProperty.ts","../../../src/infra/db/migrations/013-passwordAttributeMaskValue.ts","../../../src/infra/db/migrations/014-notificationsCollection.ts","../../../src/infra/db/migrations/015-addExplorerStudioApp.ts","../../../src/infra/db/migrations/016-addStatusIconAttribute.ts","../../../src/infra/db/migrations/017-moveLibrariesPanelsFromApplicationsToLibrariesSettings.ts","../../../src/infra/db/migrations/018-moveAppStudioToCampaignsManager.ts","../../../src/infra/db/migrations/019-automationRuleCollection.ts","../../../src/infra/db/migrations/000-init/coreCollections.ts","../../../src/infra/db/migrations/000-init/index.ts","../../../src/infra/db/migrations/000-init/systemApplications.ts","../../../src/infra/db/migrations/000-init/systemAttributes.ts","../../../src/infra/db/migrations/000-init/systemLibraries.ts","../../../src/infra/db/migrations/000-init/systemTrees.ts","../../../src/infra/db/migrations/013-threads/comments.ts","../../../src/infra/db/migrations/013-threads/constants.ts","../../../src/infra/db/migrations/013-threads/index.ts","../../../src/infra/db/migrations/013-threads/statuses.ts","../../../src/infra/db/migrations/013-threads/threads.ts","../../../src/infra/elasticsearch/elasticsearchClient.ts","../../../src/infra/elasticsearch/elasticsearchService.ts","../../../src/infra/elasticsearch/index.ts","../../../src/infra/filesManager/filesManagerRepo.ts","../../../src/infra/filesManager/index.ts","../../../src/infra/form/formRepo.ts","../../../src/infra/form/index.ts","../../../src/infra/globalSettings/globalSettingsRepo.ts","../../../src/infra/globalSettings/index.ts","../../../src/infra/indexation/index.ts","../../../src/infra/indexation/indexationService.ts","../../../src/infra/indexation/helpers/getSearchQuery.ts","../../../src/infra/indexation/helpers/index.ts","../../../src/infra/library/index.ts","../../../src/infra/library/libraryRepo.ts","../../../src/infra/log/index.ts","../../../src/infra/log/logRepo.ts","../../../src/infra/mailer/index.ts","../../../src/infra/mailer/mailer.ts","../../../src/infra/mailer/mailerService.ts","../../../src/infra/notification/index.ts","../../../src/infra/notification/notificationRepo.ts","../../../src/infra/oidc/index.ts","../../../src/infra/oidc/oidcClient.ts","../../../src/infra/oidc/oidcClientService.ts","../../../src/infra/permission/index.ts","../../../src/infra/permission/permissionRepo.ts","../../../src/infra/plugins/index.ts","../../../src/infra/plugins/pluginsRepo.ts","../../../src/infra/record/index.ts","../../../src/infra/record/recordRepo.ts","../../../src/infra/record/helpers/filterTypes.ts","../../../src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.ts","../../../src/infra/record/helpers/getSearchVariableName.ts","../../../src/infra/record/helpers/getSearchVariablesQueryPart.ts","../../../src/infra/record/helpers/index.ts","../../../src/infra/session/index.ts","../../../src/infra/session/sessionRepo.ts","../../../src/infra/task/index.ts","../../../src/infra/task/taskRepo.ts","../../../src/infra/tree/_types.ts","../../../src/infra/tree/index.ts","../../../src/infra/tree/treeRepo.ts","../../../src/infra/tree/helpers/utils.ts","../../../src/infra/userData/index.ts","../../../src/infra/userData/userDataRepo.ts","../../../src/infra/value/index.ts","../../../src/infra/value/valueRepo.ts","../../../src/infra/versionProfile/index.ts","../../../src/infra/versionProfile/versionProfileRepo.ts","../../../src/infra/view/_types.ts","../../../src/infra/view/index.ts","../../../src/infra/view/viewRepo.ts","../../../src/interface/cli.ts","../../../src/interface/filesManager.ts","../../../src/interface/index.ts","../../../src/interface/indexationManager.ts","../../../src/interface/logsCollector.ts","../../../src/interface/server.ts","../../../src/interface/tasksManager.ts","../../../src/interface/helpers/handleGraphqlError.ts","../../../src/interface/helpers/index.ts","../../../src/interface/plugins/apolloTracerPlugin.ts","../../../src/utils/configureDayjs.ts","../../../src/utils/dataloader.ts","../../../src/utils/index.ts","../../../src/utils/utils.ts","../../../src/utils/helpers/getDefaultActionsList.ts","../../../src/utils/helpers/getExcelData.ts","../../../src/utils/helpers/getFileDataBuffer.ts","../../../src/utils/helpers/getLibraryDefaultAttributes.ts","../../../src/utils/helpers/getPreviewsAttributes.ts","../../../src/utils/helpers/getSystemQueryContext.ts","../../../src/utils/helpers/getValuesToDisplay.ts","../../../src/utils/logger/logger.ts","../../../src/utils/typeGuards/index.ts"],"version":"5.9.3"}
@@ -0,0 +1,2 @@
1
+ declare const _default: UserConfig;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: UserConfig;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: UserConfig;
2
+ export default _default;
@@ -13,6 +13,9 @@ export declare enum EventAction {
13
13
  APP_SAVE = "APP_SAVE",
14
14
  AUTOMATION_RULE_CREATE = "AUTOMATION_RULE_CREATE",
15
15
  AUTOMATION_RULE_UPDATE = "AUTOMATION_RULE_UPDATE",
16
+ AUTOMATION_RULE_DELETE = "AUTOMATION_RULE_DELETE",
17
+ AUTOMATION_PIPELINE_SUCCESS = "AUTOMATION_PIPELINE_SUCCESS",
18
+ AUTOMATION_PIPELINE_FAILURE = "AUTOMATION_PIPELINE_FAILURE",
16
19
  ATTRIBUTE_DELETE = "ATTRIBUTE_DELETE",
17
20
  ATTRIBUTE_SAVE = "ATTRIBUTE_SAVE",
18
21
  EXPORT_START = "EXPORT_START",
@@ -1,10 +1,11 @@
1
1
  import { AttributeType } from './types/attributes';
2
2
  import { FileType } from './types/files';
3
3
  import { type IKeyValue } from './types/helpers';
4
+ type SystemTranslation = Record<string, string | null>;
4
5
  export declare const getGraphqlTypeFromLibraryName: (library: string) => string;
5
6
  export declare const getGraphqlQueryNameFromLibraryName: (library: string) => string;
6
7
  export declare const isFileAllowed: (fsPath: string, allowList: string[], ignoreList: string[], filePath: string) => boolean;
7
- export declare const localizedTranslation: (translations: Record<string, string>, availableLanguages: string[]) => string;
8
+ export declare const localizedTranslation: (translations: SystemTranslation | undefined | null, availableLanguages: string[]) => string;
8
9
  /**
9
10
  *
10
11
  * @param str
@@ -64,3 +65,4 @@ export declare const isTypeStandard: (type: AttributeType) => type is AttributeT
64
65
  * Return a new object without the keys passed in parameter
65
66
  */
66
67
  export declare const omit: <T extends object, K extends keyof T>(obj: T, ...keys: K[]) => Omit<T, K>;
68
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.12.0-de0e4bca",
3
+ "version": "1.12.0-decab695",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",
@@ -17,11 +17,9 @@
17
17
  "@leav/utils": "1.12.0",
18
18
  "@types/amqplib": "0.10.8",
19
19
  "@types/express": "5.0.6",
20
- "@types/jest": "29.5.14",
21
20
  "amqplib": "0.10.9",
22
21
  "arangojs": "8.8.1",
23
22
  "awilix": "12.1.1",
24
- "i18next": "24.2.3",
25
- "jest": "29.7.0"
23
+ "i18next": "24.2.3"
26
24
  }
27
25
  }
@@ -1,16 +0,0 @@
1
- import { type AwilixContainer } from 'awilix';
2
- import { type AutomationRuleTrigger, type AutomationRulePipeline } from '../../_types/automation';
3
- import { type IAutomationAction } from './types';
4
- import { type IQueryInfos } from '../../_types/queryInfos';
5
- export type AutomationPipelineToExecute = AutomationRulePipeline & {
6
- ruleId: string;
7
- trigger: AutomationRuleTrigger;
8
- };
9
- export interface IPipelineExecutor {
10
- getAvailableActions(): IAutomationAction[];
11
- executePipeline(pipelineExec: AutomationPipelineToExecute, ctx: IQueryInfos): Promise<boolean>;
12
- }
13
- export interface IPipelineExecutorDeps {
14
- 'core.depsManager': AwilixContainer;
15
- }
16
- export default function ({ 'core.depsManager': depsManager }: IPipelineExecutorDeps): IPipelineExecutor;