@aristid/leav-types 1.12.0-c1e83ccc → 1.12.0-c695a514
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.
- package/apps/core/config/default.d.ts +3 -0
- package/apps/core/src/_types/automation.d.ts +5 -14
- package/apps/core/src/_types/config.d.ts +3 -0
- package/apps/core/src/_types/errors.d.ts +8 -1
- package/apps/core/src/_types/events.d.ts +1 -1
- package/apps/core/src/_types/extensionPoints.d.ts +2 -0
- package/apps/core/src/app/core/automationApp.d.ts +4 -4
- package/apps/core/src/app/trpc/index.d.ts +1 -0
- package/apps/core/src/app/trpc/trpcApp.d.ts +30 -0
- package/apps/core/src/domain/automation/actions/_types.d.ts +27 -0
- package/apps/core/src/domain/automation/actions/conditionAction.d.ts +1 -1
- package/apps/core/src/domain/automation/actions/errorAction.d.ts +1 -1
- package/apps/core/src/domain/automation/actions/index.d.ts +2 -0
- package/apps/core/src/domain/automation/actions/jexlCalculationAutomationAction.d.ts +14 -0
- package/apps/core/src/domain/automation/actions/logAction.d.ts +1 -1
- package/apps/core/src/domain/automation/actions/modifyAttributeAction.d.ts +18 -0
- package/apps/core/src/domain/automation/automationActionsRegistry.d.ts +10 -0
- package/apps/core/src/domain/automation/automationDomain.d.ts +23 -7
- package/apps/core/src/domain/automation/index.d.ts +3 -2
- package/apps/core/src/domain/automation/pipeline/_types.d.ts +33 -0
- package/apps/core/src/domain/automation/pipeline/index.d.ts +1 -0
- package/apps/core/src/domain/automation/pipeline/pipeline.d.ts +18 -0
- package/apps/core/src/domain/automation/{automationTriggers.d.ts → triggers/_types.d.ts} +1 -11
- package/apps/core/src/domain/automation/triggers/automationTriggers.d.ts +14 -0
- package/apps/core/src/domain/automation/triggers/automationTriggersRegistry.d.ts +19 -0
- package/apps/core/src/domain/automation/triggers/automationTriggersTopics.d.ts +18 -0
- package/apps/core/src/domain/automation/triggers/index.d.ts +3 -0
- package/apps/core/src/domain/jexl/jexlDomain.d.ts +1 -0
- package/apps/core/src/infra/automation/automationRuleRepo.d.ts +2 -0
- package/apps/core/src/infra/db/dbUtils.d.ts +1 -1
- package/apps/core/src/interface/server.d.ts +3 -1
- package/apps/core/tsconfig.types.tsbuildinfo +1 -1
- package/libs/utils/src/types/events.d.ts +1 -0
- package/libs/utils/src/utils.d.ts +3 -1
- package/package.json +1 -1
- package/apps/core/src/domain/automation/pipelineExecutor.d.ts +0 -18
- package/apps/core/src/domain/automation/types.d.ts +0 -37
|
@@ -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;
|
|
@@ -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?:
|
|
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
|
-
};
|
|
@@ -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,7 +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",
|
|
31
|
-
|
|
36
|
+
INVALID_AUTOMATION_ACTION_PARAMS = "INVALID_AUTOMATION_ACTION_PARAMS",
|
|
37
|
+
INVALID_AUTOMATION_ACTION_TYPE = "INVALID_AUTOMATION_ACTION_TYPE",
|
|
32
38
|
INVALID_ATTRIBUTE_TYPE = "INVALID_ATTRIBUTE_TYPE",
|
|
33
39
|
INVALID_ATTRIBUTE_FILTER_FORMAT = "INVALID_ATTRIBUTE_FILTER_FORMAT",
|
|
34
40
|
INVALID_ATTRIBUTE_FOR_LIBRARY = "INVALID_ATTRIBUTE_FOR_LIBRARY",
|
|
@@ -46,6 +52,7 @@ export declare enum Errors {
|
|
|
46
52
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
47
53
|
INVALID_PERMISSIONS_CONF_LIBRARIES = "INVALID_PERMISSIONS_CONF_LIBRARIES",
|
|
48
54
|
INVALID_REGEXP = "INVALID_REGEXP",
|
|
55
|
+
INVALID_JEXL_EXPRESSION = "INVALID_JEXL_EXPRESSION",
|
|
49
56
|
INVALID_SORT_FIELDS = "INVALID_SORT_FIELDS",
|
|
50
57
|
INVALID_TREE_FILTER_FORMAT = "INVALID_TREE_FILTER_FORMAT",
|
|
51
58
|
INVALID_URL = "INVALID_URL",
|
|
@@ -10,7 +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/
|
|
13
|
+
import { type IAutomationPipelineFailure, type IAutomationPipelineSuccess } from '../domain/automation/pipeline/_types';
|
|
14
14
|
type OnlyObject<T> = T extends object ? T : never;
|
|
15
15
|
/**
|
|
16
16
|
* Maybe move all DBPayloadData types in @leav/utils type to allow event consumers outside core to use them
|
|
@@ -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;
|
|
@@ -2,13 +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
|
|
6
|
-
import { type
|
|
5
|
+
import { type IAutomationTriggers } from '../../domain/automation/triggers/automationTriggers';
|
|
6
|
+
import { type IAutomationTriggersRegistry } from '../..//domain/automation/triggers/automationTriggersRegistry';
|
|
7
7
|
export type ICoreImportApp = IGraphqlAppModule;
|
|
8
8
|
interface IAutomationAppDeps {
|
|
9
9
|
'core.domain.automation': IAutomationDomain;
|
|
10
10
|
'core.domain.automation.triggers': IAutomationTriggers;
|
|
11
|
-
'core.domain.
|
|
11
|
+
'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
|
|
12
12
|
}
|
|
13
13
|
export interface IGetAutomationRulesArgs {
|
|
14
14
|
filters?: ICoreEntityFilterOptions & {
|
|
@@ -20,5 +20,5 @@ export interface IGetAutomationRulesArgs {
|
|
|
20
20
|
pagination?: IPaginationParams;
|
|
21
21
|
sort?: ISortParams;
|
|
22
22
|
}
|
|
23
|
-
export default function ({ 'core.domain.automation': automationDomain, 'core.domain.automation.triggers': automationTriggers, 'core.domain.
|
|
23
|
+
export default function ({ 'core.domain.automation': automationDomain, 'core.domain.automation.triggers': automationTriggers, 'core.domain.automation.triggers.registry': automationTriggersRegistry, }: IAutomationAppDeps): ICoreImportApp;
|
|
24
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 {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ZodObject } from 'zod';
|
|
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
|
+
}
|
|
17
|
+
export declare enum ActionExecutionResultStatus {
|
|
18
|
+
CONTINUE = "continue",
|
|
19
|
+
STOP = "stop"
|
|
20
|
+
}
|
|
21
|
+
export type IActionExecutionResult = {
|
|
22
|
+
status: ActionExecutionResultStatus.CONTINUE;
|
|
23
|
+
result?: unknown;
|
|
24
|
+
} | {
|
|
25
|
+
status: ActionExecutionResultStatus.STOP;
|
|
26
|
+
reason?: string;
|
|
27
|
+
};
|
|
@@ -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 {};
|
|
@@ -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
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
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.
|
|
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.
|
|
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,3 +1,4 @@
|
|
|
1
1
|
export { default } from './automationDomain';
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
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;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { type AutomationRuleEventAction } from '
|
|
2
|
-
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
3
|
-
/**
|
|
4
|
-
* This list of topic should match AutomationRulesEventTopic properties
|
|
5
|
-
*/
|
|
1
|
+
import { type AutomationRuleEventAction } from '../../../_types/automation';
|
|
6
2
|
export declare enum AutomationTriggerDefTopics {
|
|
7
3
|
LIBRARY = "LIBRARY",
|
|
8
4
|
ATTRIBUTE = "ATTRIBUTE"
|
|
@@ -17,9 +13,3 @@ export type AutomationTriggerDef = {
|
|
|
17
13
|
topics: AutomationTriggerDefTopics[];
|
|
18
14
|
synchronicity: AutomationTriggerDefSynchronicity;
|
|
19
15
|
};
|
|
20
|
-
export interface IAutomationTriggers {
|
|
21
|
-
getAutomationTriggers({ ctx }: {
|
|
22
|
-
ctx: IQueryInfos;
|
|
23
|
-
}): AutomationTriggerDef[];
|
|
24
|
-
}
|
|
25
|
-
export default function (): IAutomationTriggers;
|
|
@@ -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;
|
|
@@ -9,6 +9,7 @@ interface IDeps {
|
|
|
9
9
|
}
|
|
10
10
|
export interface IJexlDomain {
|
|
11
11
|
eval<Ctx extends JexlContext>(expression: string, context?: Ctx): Promise<any>;
|
|
12
|
+
validate(expression: string): Promise<void>;
|
|
12
13
|
buildRootContext: <T>(contextData: T, ctx: IQueryInfos) => JexlRootContext<T>;
|
|
13
14
|
buildRecordContext: (record: IRecord, ctx: IQueryInfos) => JexlRecordContext;
|
|
14
15
|
buildTreeNodeContext: (treeNode: ITreeNode, ctx: IQueryInfos) => JexlTreeNodeContext;
|
|
@@ -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[],
|
|
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.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/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/automationDomain.ts","../../../src/domain/automation/automationTriggers.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/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"}
|
|
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"}
|
|
@@ -13,6 +13,7 @@ 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",
|
|
16
17
|
AUTOMATION_PIPELINE_SUCCESS = "AUTOMATION_PIPELINE_SUCCESS",
|
|
17
18
|
AUTOMATION_PIPELINE_FAILURE = "AUTOMATION_PIPELINE_FAILURE",
|
|
18
19
|
ATTRIBUTE_DELETE = "ATTRIBUTE_DELETE",
|
|
@@ -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:
|
|
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,18 +0,0 @@
|
|
|
1
|
-
import { type AwilixContainer } from 'awilix';
|
|
2
|
-
import { type AutomationRuleTrigger, type AutomationRulePipeline } from '../../_types/automation';
|
|
3
|
-
import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
|
|
4
|
-
import { type IAutomationAction } from './types';
|
|
5
|
-
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
6
|
-
export type AutomationPipelineToExecute = AutomationRulePipeline & {
|
|
7
|
-
ruleId: string;
|
|
8
|
-
trigger: AutomationRuleTrigger;
|
|
9
|
-
};
|
|
10
|
-
export interface IPipelineExecutor {
|
|
11
|
-
getAvailableActions(): IAutomationAction[];
|
|
12
|
-
executePipeline(pipelineExec: AutomationPipelineToExecute, ctx: IQueryInfos): Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
export interface IPipelineExecutorDeps {
|
|
15
|
-
'core.depsManager': AwilixContainer;
|
|
16
|
-
'core.domain.eventsManager': IEventsManagerDomain;
|
|
17
|
-
}
|
|
18
|
-
export default function ({ 'core.depsManager': depsManager, 'core.domain.eventsManager': eventsManager, }: IPipelineExecutorDeps): IPipelineExecutor;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type ZodObject } from 'zod';
|
|
2
|
-
import { type AutomationRuleActions, type AutomationRuleTrigger } from '../../_types/automation';
|
|
3
|
-
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
4
|
-
export declare enum ActionExecutionResultStatus {
|
|
5
|
-
CONTINUE = "continue",
|
|
6
|
-
STOP = "stop"
|
|
7
|
-
}
|
|
8
|
-
export type IActionExecutionResult = {
|
|
9
|
-
status: ActionExecutionResultStatus.CONTINUE;
|
|
10
|
-
result?: unknown;
|
|
11
|
-
} | {
|
|
12
|
-
status: ActionExecutionResultStatus.STOP;
|
|
13
|
-
reason?: string;
|
|
14
|
-
};
|
|
15
|
-
export type IAutomationPipelineExecutionResults = Record<string, unknown>;
|
|
16
|
-
export type IAutomationPipelineExecutionState = {
|
|
17
|
-
readonly trigger: AutomationRuleTrigger;
|
|
18
|
-
readonly results: IAutomationPipelineExecutionResults;
|
|
19
|
-
readonly startDateMs: number;
|
|
20
|
-
};
|
|
21
|
-
export interface IAutomationAction<Params = unknown> {
|
|
22
|
-
readonly type: AutomationRuleActions | string;
|
|
23
|
-
readonly paramsSchema: ZodObject<any>;
|
|
24
|
-
validateParams?: (params: Params) => Promise<void>;
|
|
25
|
-
execute(params: Params, state: IAutomationPipelineExecutionState, ctx: IQueryInfos): Promise<IActionExecutionResult | void>;
|
|
26
|
-
}
|
|
27
|
-
export type IAutomationPipelineSuccess = {
|
|
28
|
-
readonly results: Record<string, unknown>;
|
|
29
|
-
};
|
|
30
|
-
export type IAutomationPipelineFailure = {
|
|
31
|
-
readonly results: Record<string, unknown | {
|
|
32
|
-
stack?: string;
|
|
33
|
-
message: string;
|
|
34
|
-
name: string;
|
|
35
|
-
[k: string]: unknown;
|
|
36
|
-
}>;
|
|
37
|
-
};
|