@persei/perseed-api 5.0.19 → 5.0.21
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/dist/client.cjs +875 -71
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +876 -72
- package/dist/client.mjs.map +1 -1
- package/dist/ecosystem-action-system.cjs +586 -0
- package/dist/ecosystem-action-system.cjs.map +1 -0
- package/dist/ecosystem-action-system.d.ts +1 -0
- package/dist/ecosystem-action-system.mjs +586 -0
- package/dist/ecosystem-action-system.mjs.map +1 -0
- package/dist/lib/src/client/customFetch.d.ts +51 -0
- package/dist/lib/src/client/customFetch.d.ts.map +1 -0
- package/dist/lib/src/client/customFetch.test.d.ts +2 -0
- package/dist/lib/src/client/customFetch.test.d.ts.map +1 -0
- package/dist/lib/src/client/index.d.ts +1 -0
- package/dist/lib/src/client/index.d.ts.map +1 -1
- package/dist/lib/src/generated/client.d.ts +5251 -670
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/AuthenticationSecurityService.d.ts +1 -1
- package/dist/src/Services/MobileService.d.ts +26 -1
- package/dist/src/Services/MobileService.d.ts.map +1 -1
- package/dist/src/Services/ProcessLogService.d.ts +1 -1
- package/dist/src/Services/ProcessLogService.d.ts.map +1 -1
- package/dist/src/Services/ProjectService.d.ts.map +1 -1
- package/dist/src/Services/QueryService.d.ts +24 -1
- package/dist/src/Services/QueryService.d.ts.map +1 -1
- package/dist/src/Services/RedisQueueService.d.ts +16 -0
- package/dist/src/Services/RedisQueueService.d.ts.map +1 -1
- package/dist/src/Services/TriggerProcessLogService.d.ts +90 -0
- package/dist/src/Services/TriggerProcessLogService.d.ts.map +1 -0
- package/dist/src/Services/TriggerService.d.ts +16 -11
- package/dist/src/Services/TriggerService.d.ts.map +1 -1
- package/dist/src/Services/trigger-process-log-service.test.d.ts +2 -0
- package/dist/src/Services/trigger-process-log-service.test.d.ts.map +1 -0
- package/dist/src/controllers/AuthController.d.ts.map +1 -1
- package/dist/src/controllers/FormController.d.ts.map +1 -1
- package/dist/src/helpers/error.d.ts +12 -0
- package/dist/src/helpers/error.d.ts.map +1 -1
- package/dist/src/lib.d.ts +1 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/models/ecosystem/NotificationConfiguration.d.ts +1 -1
- package/dist/src/models/ecosystem/NotificationConfiguration.d.ts.map +1 -1
- package/dist/src/models/ecosystem/User.d.ts +17 -0
- package/dist/src/models/ecosystem/User.d.ts.map +1 -1
- package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts +2 -0
- package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts.map +1 -0
- package/dist/src/models/perseed/PerseedEcosystem.d.ts +2 -0
- package/dist/src/models/perseed/PerseedEcosystem.d.ts.map +1 -1
- package/dist/src/models/project/DesignerCrf.d.ts +3 -2
- package/dist/src/models/project/DesignerCrf.d.ts.map +1 -1
- package/dist/src/models/project/designer-crf-after-save.test.d.ts +2 -0
- package/dist/src/models/project/designer-crf-after-save.test.d.ts.map +1 -0
- package/dist/src/module.d.ts +5 -0
- package/dist/src/schemas/api_action/ApiActionTypes.d.ts +11 -0
- package/dist/src/schemas/api_action/ApiActionTypes.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +1 -0
- package/dist/src/schemas/index.d.ts.map +1 -1
- package/dist/src/schemas/notification_configuration/types.d.ts +19 -8
- package/dist/src/schemas/notification_configuration/types.d.ts.map +1 -1
- package/dist/src/schemas/process_log/create_process_log_payload.schema.json +4 -0
- package/dist/src/schemas/process_log/types.d.ts +3 -0
- package/dist/src/schemas/process_log/types.d.ts.map +1 -1
- package/dist/src/schemas/project_user/index.d.ts +2 -0
- package/dist/src/schemas/project_user/index.d.ts.map +1 -0
- package/dist/src/schemas/project_user/types.d.ts +44 -0
- package/dist/src/schemas/project_user/types.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action.controller.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/automatic-trigger.controller.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/automatic-trigger.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/index.d.ts +6 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/manual-trigger.controller.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/manual-trigger.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts +149 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.d.ts +5 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.test.d.ts.map +1 -0
- package/dist/src/{Services/ConditionsMatcher/CustomConditionsFormat.d.ts → v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.d.ts} +2 -2
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts +5 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts +13 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts +122 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts +744 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.d.ts +37 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.d.ts +18 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts +137 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/index.d.ts +8 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts +34 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts +179 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.d.ts +31 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts +57 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/index.d.ts +6 -0
- package/dist/src/v2/modules/ecosystem/action-system/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/lib.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/lib.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts.map +1 -0
- package/dist/src/{models/ecosystem/ProcessLog.d.ts → v2/modules/ecosystem/process-log/process-log.model.d.ts} +16 -5
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts +20 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/api-error/api-error.schema.d.ts +9 -0
- package/dist/src/v2/modules/global/api-error/api-error.schema.d.ts.map +1 -1
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts.map +1 -1
- package/dist/src/v2/modules/global/request-log/request-log.middleware.d.ts.map +1 -1
- package/dist/src/v2/modules/project/document/document.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +16 -4
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/e2e/index.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/action/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/action/index.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/automatic-trigger/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/automatic-trigger/index.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/manual-trigger/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/manual-trigger/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +8 -11
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +7 -10
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/src/Services/ConditionsMatcher/CustomConditionsFormat.d.ts.map +0 -1
- package/dist/src/Services/ConditionsMatcher/index.d.ts +0 -4
- package/dist/src/Services/ConditionsMatcher/index.d.ts.map +0 -1
- package/dist/src/Services/conditions-matcher.test.d.ts +0 -2
- package/dist/src/Services/conditions-matcher.test.d.ts.map +0 -1
- package/dist/src/Services/custom-conditions-format.test.d.ts +0 -2
- package/dist/src/Services/custom-conditions-format.test.d.ts.map +0 -1
- package/dist/src/models/ecosystem/ProcessLog.d.ts.map +0 -1
|
@@ -0,0 +1,744 @@
|
|
|
1
|
+
import { Type, Static, TSchema } from 'typebox';
|
|
2
|
+
export declare const ConditionsFormat: {
|
|
3
|
+
readonly JSON_LOGIC: "jsonLogic";
|
|
4
|
+
readonly CUSTOM: "custom";
|
|
5
|
+
};
|
|
6
|
+
export declare const conditionsFormatSchema: Type.TEnum<("jsonLogic" | "custom")[]>;
|
|
7
|
+
export type ConditionsFormat = Static<typeof conditionsFormatSchema>;
|
|
8
|
+
export declare const TriggerSource: {
|
|
9
|
+
readonly MODEL: "model";
|
|
10
|
+
readonly DESIGNER: "designer";
|
|
11
|
+
readonly DISPLAYER: "displayer";
|
|
12
|
+
};
|
|
13
|
+
export declare const triggerSourceSchema: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
14
|
+
export type TriggerSource = Static<typeof triggerSourceSchema>;
|
|
15
|
+
export declare const TriggerOperation: {
|
|
16
|
+
readonly CREATE: "create";
|
|
17
|
+
readonly UPDATE: "update";
|
|
18
|
+
readonly DELETE: "delete";
|
|
19
|
+
};
|
|
20
|
+
export declare const triggerOperationSchema: Type.TEnum<("delete" | "update" | "create")[]>;
|
|
21
|
+
export type TriggerOperation = Static<typeof triggerOperationSchema>;
|
|
22
|
+
export declare const ActionType: {
|
|
23
|
+
readonly API_ACTION: "ApiAction";
|
|
24
|
+
};
|
|
25
|
+
export declare const actionTypeSchema: Type.TEnum<"ApiAction"[]>;
|
|
26
|
+
export type ActionType = Static<typeof actionTypeSchema>;
|
|
27
|
+
export declare const actionConfigBaseSchema: Type.TObject<{
|
|
28
|
+
id: Type.TString;
|
|
29
|
+
location: Type.TOptional<Type.TString>;
|
|
30
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
31
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
32
|
+
}>;
|
|
33
|
+
export type ActionConfigBaseData = Static<typeof actionConfigBaseSchema>;
|
|
34
|
+
export declare const apiActionConfigSchema: Type.TIntersect<[Type.TObject<{
|
|
35
|
+
id: Type.TString;
|
|
36
|
+
location: Type.TOptional<Type.TString>;
|
|
37
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
38
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
39
|
+
}>, Type.TObject<{
|
|
40
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
41
|
+
}>]>;
|
|
42
|
+
export type ApiActionConfig = Static<typeof apiActionConfigSchema>;
|
|
43
|
+
export declare const actionConfigSchema: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
44
|
+
id: Type.TString;
|
|
45
|
+
location: Type.TOptional<Type.TString>;
|
|
46
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
47
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
48
|
+
}>, Type.TObject<{
|
|
49
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
50
|
+
}>]>]>;
|
|
51
|
+
export type ActionConfig = Static<typeof actionConfigSchema>;
|
|
52
|
+
export declare const ACTION_CONFIG_SCHEMAS: Record<ActionType, TSchema>;
|
|
53
|
+
export declare const actionContextBaseSchema: Type.TObject<{
|
|
54
|
+
current: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
55
|
+
old: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
56
|
+
requestContextData: Type.TOptional<Type.TUnknown>;
|
|
57
|
+
requester: Type.TOptional<Type.TUnknown>;
|
|
58
|
+
projectId: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
59
|
+
}>;
|
|
60
|
+
export type ActionContextBaseData = Static<typeof actionContextBaseSchema>;
|
|
61
|
+
export declare const apiActionContextSchema: Type.TObject<{
|
|
62
|
+
current: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
63
|
+
old: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
64
|
+
requestContextData: Type.TOptional<Type.TUnknown>;
|
|
65
|
+
requester: Type.TOptional<Type.TUnknown>;
|
|
66
|
+
projectId: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const ACTION_CONTEXT_SCHEMAS: Record<ActionType, TSchema>;
|
|
69
|
+
export declare const triggerRelationsSchema: Type.TObject<{
|
|
70
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
71
|
+
}>;
|
|
72
|
+
export type TriggerRelations = Static<typeof triggerRelationsSchema>;
|
|
73
|
+
export declare const actionSchema: Type.TObject<{
|
|
74
|
+
id: Type.TNumber;
|
|
75
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
76
|
+
name: Type.TString;
|
|
77
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
78
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
79
|
+
id: Type.TString;
|
|
80
|
+
location: Type.TOptional<Type.TString>;
|
|
81
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
82
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
83
|
+
}>, Type.TObject<{
|
|
84
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
85
|
+
}>]>]>;
|
|
86
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
87
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
88
|
+
}>;
|
|
89
|
+
export type ActionData = Static<typeof actionSchema>;
|
|
90
|
+
export declare const createActionSchema: Type.TObject<{
|
|
91
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
92
|
+
name: Type.TString;
|
|
93
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
94
|
+
id: Type.TString;
|
|
95
|
+
location: Type.TOptional<Type.TString>;
|
|
96
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
97
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
98
|
+
}>, Type.TObject<{
|
|
99
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
100
|
+
}>]>]>;
|
|
101
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
102
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
103
|
+
}>;
|
|
104
|
+
export type CreateActionData = Static<typeof createActionSchema>;
|
|
105
|
+
export declare const updateActionSchema: Type.TObject<{
|
|
106
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
107
|
+
name: Type.TOptional<Type.TString>;
|
|
108
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
109
|
+
id: Type.TString;
|
|
110
|
+
location: Type.TOptional<Type.TString>;
|
|
111
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
112
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
113
|
+
}>, Type.TObject<{
|
|
114
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
115
|
+
}>]>]>>;
|
|
116
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
117
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
118
|
+
}>;
|
|
119
|
+
export type UpdateActionData = Static<typeof updateActionSchema>;
|
|
120
|
+
export declare const triggerActionInputSchema: Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
121
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
122
|
+
name: Type.TString;
|
|
123
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
124
|
+
id: Type.TString;
|
|
125
|
+
location: Type.TOptional<Type.TString>;
|
|
126
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
127
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
128
|
+
}>, Type.TObject<{
|
|
129
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
130
|
+
}>]>]>;
|
|
131
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
132
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
133
|
+
}>, Type.TObject<{
|
|
134
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
135
|
+
name: Type.TOptional<Type.TString>;
|
|
136
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
137
|
+
id: Type.TString;
|
|
138
|
+
location: Type.TOptional<Type.TString>;
|
|
139
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
140
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
141
|
+
}>, Type.TObject<{
|
|
142
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
143
|
+
}>]>]>>;
|
|
144
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
145
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
146
|
+
id: Type.TNumber;
|
|
147
|
+
}>]>;
|
|
148
|
+
export type TriggerActionInput = Static<typeof triggerActionInputSchema>;
|
|
149
|
+
export declare const triggerActionsInputSchema: Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
150
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
151
|
+
name: Type.TString;
|
|
152
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
153
|
+
id: Type.TString;
|
|
154
|
+
location: Type.TOptional<Type.TString>;
|
|
155
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
156
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
157
|
+
}>, Type.TObject<{
|
|
158
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
159
|
+
}>]>]>;
|
|
160
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
161
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
162
|
+
}>, Type.TObject<{
|
|
163
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
164
|
+
name: Type.TOptional<Type.TString>;
|
|
165
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
166
|
+
id: Type.TString;
|
|
167
|
+
location: Type.TOptional<Type.TString>;
|
|
168
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
169
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
170
|
+
}>, Type.TObject<{
|
|
171
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
172
|
+
}>]>]>>;
|
|
173
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
174
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
175
|
+
id: Type.TNumber;
|
|
176
|
+
}>]>>;
|
|
177
|
+
export declare const automaticTriggerSchema: Type.TObject<{
|
|
178
|
+
id: Type.TNumber;
|
|
179
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
180
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
181
|
+
target: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
182
|
+
operation: Type.TOptional<Type.TUnion<[Type.TEnum<("delete" | "update" | "create")[]>, Type.TNull]>>;
|
|
183
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
184
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
185
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
186
|
+
}>, Type.TNull]>>;
|
|
187
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
188
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
189
|
+
}>;
|
|
190
|
+
export type AutomaticTriggerData = Static<typeof automaticTriggerSchema>;
|
|
191
|
+
export declare const includeActionsQuerySchema: Type.TObject<{
|
|
192
|
+
includeActions: Type.TOptional<Type.TBoolean>;
|
|
193
|
+
}>;
|
|
194
|
+
export declare const createAutomaticTriggerSchema: Type.TObject<{
|
|
195
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
196
|
+
target: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
197
|
+
operation: Type.TOptional<Type.TUnion<[Type.TEnum<("delete" | "update" | "create")[]>, Type.TNull]>>;
|
|
198
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
199
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
200
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
201
|
+
}>, Type.TNull]>>;
|
|
202
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
203
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
204
|
+
actions: Type.TOptional<Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
205
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
206
|
+
name: Type.TString;
|
|
207
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
208
|
+
id: Type.TString;
|
|
209
|
+
location: Type.TOptional<Type.TString>;
|
|
210
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
211
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
212
|
+
}>, Type.TObject<{
|
|
213
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
214
|
+
}>]>]>;
|
|
215
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
216
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
217
|
+
}>, Type.TObject<{
|
|
218
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
219
|
+
name: Type.TOptional<Type.TString>;
|
|
220
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
221
|
+
id: Type.TString;
|
|
222
|
+
location: Type.TOptional<Type.TString>;
|
|
223
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
224
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
225
|
+
}>, Type.TObject<{
|
|
226
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
227
|
+
}>]>]>>;
|
|
228
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
229
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
230
|
+
id: Type.TNumber;
|
|
231
|
+
}>]>>>;
|
|
232
|
+
}>;
|
|
233
|
+
export type CreateAutomaticTriggerData = Static<typeof createAutomaticTriggerSchema>;
|
|
234
|
+
export declare const updateAutomaticTriggerSchema: Type.TObject<{
|
|
235
|
+
source: Type.TOptional<Type.TEnum<("model" | "designer" | "displayer")[]>>;
|
|
236
|
+
target: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
237
|
+
operation: Type.TOptional<Type.TUnion<[Type.TEnum<("delete" | "update" | "create")[]>, Type.TNull]>>;
|
|
238
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
239
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
240
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
241
|
+
}>, Type.TNull]>>;
|
|
242
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
243
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
244
|
+
actions: Type.TOptional<Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
245
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
246
|
+
name: Type.TString;
|
|
247
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
248
|
+
id: Type.TString;
|
|
249
|
+
location: Type.TOptional<Type.TString>;
|
|
250
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
251
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
252
|
+
}>, Type.TObject<{
|
|
253
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
254
|
+
}>]>]>;
|
|
255
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
256
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
257
|
+
}>, Type.TObject<{
|
|
258
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
259
|
+
name: Type.TOptional<Type.TString>;
|
|
260
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
261
|
+
id: Type.TString;
|
|
262
|
+
location: Type.TOptional<Type.TString>;
|
|
263
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
264
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
265
|
+
}>, Type.TObject<{
|
|
266
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
267
|
+
}>]>]>>;
|
|
268
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
269
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
270
|
+
id: Type.TNumber;
|
|
271
|
+
}>]>>>;
|
|
272
|
+
}>;
|
|
273
|
+
export type UpdateAutomaticTriggerData = Static<typeof updateAutomaticTriggerSchema>;
|
|
274
|
+
export declare const UnmatchedBehavior: {
|
|
275
|
+
readonly HIDE: "hide";
|
|
276
|
+
readonly DISABLE: "disable";
|
|
277
|
+
};
|
|
278
|
+
export declare const unmatchedBehaviorSchema: Type.TEnum<("hide" | "disable")[]>;
|
|
279
|
+
export type UnmatchedBehavior = Static<typeof unmatchedBehaviorSchema>;
|
|
280
|
+
export declare const IconPosition: {
|
|
281
|
+
readonly LEFT: "left";
|
|
282
|
+
readonly RIGHT: "right";
|
|
283
|
+
};
|
|
284
|
+
export declare const iconPositionSchema: Type.TEnum<("left" | "right")[]>;
|
|
285
|
+
export type IconPosition = Static<typeof iconPositionSchema>;
|
|
286
|
+
export declare const manualTriggerButtonStyleSchema: Type.TObject<{
|
|
287
|
+
text: Type.TOptional<Type.TString>;
|
|
288
|
+
textColor: Type.TOptional<Type.TString>;
|
|
289
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
290
|
+
icon: Type.TOptional<Type.TString>;
|
|
291
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
292
|
+
}>;
|
|
293
|
+
export type ManualTriggerButtonStyleData = Static<typeof manualTriggerButtonStyleSchema>;
|
|
294
|
+
export declare const manualTriggerConditionalStyleSchema: Type.TIntersect<[Type.TObject<{
|
|
295
|
+
text: Type.TOptional<Type.TString>;
|
|
296
|
+
textColor: Type.TOptional<Type.TString>;
|
|
297
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
298
|
+
icon: Type.TOptional<Type.TString>;
|
|
299
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
300
|
+
}>, Type.TObject<{
|
|
301
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
302
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
303
|
+
}>]>;
|
|
304
|
+
export type ManualTriggerConditionalStyleData = Static<typeof manualTriggerConditionalStyleSchema>;
|
|
305
|
+
/**
|
|
306
|
+
* Envelope for everything a manual trigger configures beyond its firing rules. Today it carries
|
|
307
|
+
* whether an unmatched trigger is hidden or shown disabled, plus the button presentation;
|
|
308
|
+
* `additionalProperties` stays open so a future concern can be added without another column.
|
|
309
|
+
*
|
|
310
|
+
* The two are deliberately separate concerns: `unmatchedBehavior` answers whether the button is
|
|
311
|
+
* offered at all, which only the trigger `conditions` decide, while `styles`/`conditionalStyles`
|
|
312
|
+
* only dress a button that is already going to be shown.
|
|
313
|
+
*/
|
|
314
|
+
export declare const manualTriggerConfigSchema: Type.TObject<{
|
|
315
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
316
|
+
styles: Type.TOptional<Type.TObject<{
|
|
317
|
+
text: Type.TOptional<Type.TString>;
|
|
318
|
+
textColor: Type.TOptional<Type.TString>;
|
|
319
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
320
|
+
icon: Type.TOptional<Type.TString>;
|
|
321
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
322
|
+
}>>;
|
|
323
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
324
|
+
text: Type.TOptional<Type.TString>;
|
|
325
|
+
textColor: Type.TOptional<Type.TString>;
|
|
326
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
327
|
+
icon: Type.TOptional<Type.TString>;
|
|
328
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
329
|
+
}>, Type.TObject<{
|
|
330
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
331
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
332
|
+
}>]>>>;
|
|
333
|
+
}>;
|
|
334
|
+
export type ManualTriggerConfigData = Static<typeof manualTriggerConfigSchema>;
|
|
335
|
+
export declare const manualTriggerSchema: Type.TObject<{
|
|
336
|
+
id: Type.TNumber;
|
|
337
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
338
|
+
name: Type.TString;
|
|
339
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
340
|
+
target: Type.TString;
|
|
341
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
342
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
343
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
344
|
+
}>, Type.TNull]>>;
|
|
345
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
346
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
347
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
348
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
349
|
+
styles: Type.TOptional<Type.TObject<{
|
|
350
|
+
text: Type.TOptional<Type.TString>;
|
|
351
|
+
textColor: Type.TOptional<Type.TString>;
|
|
352
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
353
|
+
icon: Type.TOptional<Type.TString>;
|
|
354
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
355
|
+
}>>;
|
|
356
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
357
|
+
text: Type.TOptional<Type.TString>;
|
|
358
|
+
textColor: Type.TOptional<Type.TString>;
|
|
359
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
360
|
+
icon: Type.TOptional<Type.TString>;
|
|
361
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
362
|
+
}>, Type.TObject<{
|
|
363
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
364
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
365
|
+
}>]>>>;
|
|
366
|
+
}>, Type.TNull]>>;
|
|
367
|
+
}>;
|
|
368
|
+
export type ManualTriggerData = Static<typeof manualTriggerSchema>;
|
|
369
|
+
export declare const createManualTriggerSchema: Type.TObject<{
|
|
370
|
+
name: Type.TString;
|
|
371
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
372
|
+
target: Type.TString;
|
|
373
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
374
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
375
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
376
|
+
}>, Type.TNull]>>;
|
|
377
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
378
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
379
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
380
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
381
|
+
styles: Type.TOptional<Type.TObject<{
|
|
382
|
+
text: Type.TOptional<Type.TString>;
|
|
383
|
+
textColor: Type.TOptional<Type.TString>;
|
|
384
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
385
|
+
icon: Type.TOptional<Type.TString>;
|
|
386
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
387
|
+
}>>;
|
|
388
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
389
|
+
text: Type.TOptional<Type.TString>;
|
|
390
|
+
textColor: Type.TOptional<Type.TString>;
|
|
391
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
392
|
+
icon: Type.TOptional<Type.TString>;
|
|
393
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
394
|
+
}>, Type.TObject<{
|
|
395
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
396
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
397
|
+
}>]>>>;
|
|
398
|
+
}>, Type.TNull]>>;
|
|
399
|
+
actions: Type.TOptional<Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
400
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
401
|
+
name: Type.TString;
|
|
402
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
403
|
+
id: Type.TString;
|
|
404
|
+
location: Type.TOptional<Type.TString>;
|
|
405
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
406
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
407
|
+
}>, Type.TObject<{
|
|
408
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
409
|
+
}>]>]>;
|
|
410
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
411
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
412
|
+
}>, Type.TObject<{
|
|
413
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
414
|
+
name: Type.TOptional<Type.TString>;
|
|
415
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
416
|
+
id: Type.TString;
|
|
417
|
+
location: Type.TOptional<Type.TString>;
|
|
418
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
419
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
420
|
+
}>, Type.TObject<{
|
|
421
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
422
|
+
}>]>]>>;
|
|
423
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
424
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
425
|
+
id: Type.TNumber;
|
|
426
|
+
}>]>>>;
|
|
427
|
+
}>;
|
|
428
|
+
export type CreateManualTriggerData = Static<typeof createManualTriggerSchema>;
|
|
429
|
+
export declare const updateManualTriggerSchema: Type.TObject<{
|
|
430
|
+
name: Type.TOptional<Type.TString>;
|
|
431
|
+
source: Type.TOptional<Type.TEnum<("model" | "designer" | "displayer")[]>>;
|
|
432
|
+
target: Type.TOptional<Type.TString>;
|
|
433
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
434
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
435
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
436
|
+
}>, Type.TNull]>>;
|
|
437
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
438
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
439
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
440
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
441
|
+
styles: Type.TOptional<Type.TObject<{
|
|
442
|
+
text: Type.TOptional<Type.TString>;
|
|
443
|
+
textColor: Type.TOptional<Type.TString>;
|
|
444
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
445
|
+
icon: Type.TOptional<Type.TString>;
|
|
446
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
447
|
+
}>>;
|
|
448
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
449
|
+
text: Type.TOptional<Type.TString>;
|
|
450
|
+
textColor: Type.TOptional<Type.TString>;
|
|
451
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
452
|
+
icon: Type.TOptional<Type.TString>;
|
|
453
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
454
|
+
}>, Type.TObject<{
|
|
455
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
456
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
457
|
+
}>]>>>;
|
|
458
|
+
}>, Type.TNull]>>;
|
|
459
|
+
actions: Type.TOptional<Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
460
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
461
|
+
name: Type.TString;
|
|
462
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
463
|
+
id: Type.TString;
|
|
464
|
+
location: Type.TOptional<Type.TString>;
|
|
465
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
466
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
467
|
+
}>, Type.TObject<{
|
|
468
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
469
|
+
}>]>]>;
|
|
470
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
471
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
472
|
+
}>, Type.TObject<{
|
|
473
|
+
type: Type.TOptional<Type.TEnum<"ApiAction"[]>>;
|
|
474
|
+
name: Type.TOptional<Type.TString>;
|
|
475
|
+
config: Type.TOptional<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
476
|
+
id: Type.TString;
|
|
477
|
+
location: Type.TOptional<Type.TString>;
|
|
478
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
479
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
480
|
+
}>, Type.TObject<{
|
|
481
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
482
|
+
}>]>]>>;
|
|
483
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
484
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
485
|
+
id: Type.TNumber;
|
|
486
|
+
}>]>>>;
|
|
487
|
+
}>;
|
|
488
|
+
export type UpdateManualTriggerData = Static<typeof updateManualTriggerSchema>;
|
|
489
|
+
export declare const manualTriggerAvailabilitySchema: Type.TObject<{
|
|
490
|
+
id: Type.TNumber;
|
|
491
|
+
name: Type.TString;
|
|
492
|
+
matched: Type.TBoolean;
|
|
493
|
+
actionsCount: Type.TNumber;
|
|
494
|
+
relationsSkipped: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
495
|
+
/**
|
|
496
|
+
* Resolved server-side: conditional styles already evaluated and label already compiled. Absent
|
|
497
|
+
* when the trigger has no config — the consumer then paints its own default button.
|
|
498
|
+
*/
|
|
499
|
+
style: Type.TOptional<Type.TObject<{
|
|
500
|
+
text: Type.TOptional<Type.TString>;
|
|
501
|
+
textColor: Type.TOptional<Type.TString>;
|
|
502
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
503
|
+
icon: Type.TOptional<Type.TString>;
|
|
504
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
505
|
+
}>>;
|
|
506
|
+
}>;
|
|
507
|
+
export type ManualTriggerAvailability = Static<typeof manualTriggerAvailabilitySchema>;
|
|
508
|
+
export declare const manualTriggerAvailabilityListSchema: Type.TObject<{
|
|
509
|
+
results: Type.TArray<Type.TObject<{
|
|
510
|
+
id: Type.TNumber;
|
|
511
|
+
name: Type.TString;
|
|
512
|
+
matched: Type.TBoolean;
|
|
513
|
+
actionsCount: Type.TNumber;
|
|
514
|
+
relationsSkipped: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
515
|
+
/**
|
|
516
|
+
* Resolved server-side: conditional styles already evaluated and label already compiled. Absent
|
|
517
|
+
* when the trigger has no config — the consumer then paints its own default button.
|
|
518
|
+
*/
|
|
519
|
+
style: Type.TOptional<Type.TObject<{
|
|
520
|
+
text: Type.TOptional<Type.TString>;
|
|
521
|
+
textColor: Type.TOptional<Type.TString>;
|
|
522
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
523
|
+
icon: Type.TOptional<Type.TString>;
|
|
524
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
525
|
+
}>>;
|
|
526
|
+
}>>;
|
|
527
|
+
}>;
|
|
528
|
+
export declare const manualTriggerAvailabilityQuerySchema: Type.TObject<{
|
|
529
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
530
|
+
target: Type.TString;
|
|
531
|
+
entityId: Type.TNumber;
|
|
532
|
+
}>;
|
|
533
|
+
export type ManualTriggerAvailabilityQuery = Static<typeof manualTriggerAvailabilityQuerySchema>;
|
|
534
|
+
export declare const runManualTriggerSchema: Type.TObject<{
|
|
535
|
+
entityId: Type.TNumber;
|
|
536
|
+
}>;
|
|
537
|
+
export type RunManualTriggerData = Static<typeof runManualTriggerSchema>;
|
|
538
|
+
export declare const automaticTriggerActionSchema: Type.TObject<{
|
|
539
|
+
id: Type.TNumber;
|
|
540
|
+
automatic_trigger_id: Type.TNumber;
|
|
541
|
+
action_id: Type.TNumber;
|
|
542
|
+
execution_order: Type.TNumber;
|
|
543
|
+
}>;
|
|
544
|
+
export type AutomaticTriggerActionData = Static<typeof automaticTriggerActionSchema>;
|
|
545
|
+
export declare const createAutomaticTriggerActionSchema: Type.TObject<{
|
|
546
|
+
automatic_trigger_id: Type.TNumber;
|
|
547
|
+
action_id: Type.TNumber;
|
|
548
|
+
execution_order: Type.TNumber;
|
|
549
|
+
}>;
|
|
550
|
+
export type CreateAutomaticTriggerActionData = Static<typeof createAutomaticTriggerActionSchema>;
|
|
551
|
+
export declare const updateAutomaticTriggerActionSchema: Type.TObject<{
|
|
552
|
+
automatic_trigger_id: Type.TOptional<Type.TNumber>;
|
|
553
|
+
action_id: Type.TOptional<Type.TNumber>;
|
|
554
|
+
execution_order: Type.TOptional<Type.TNumber>;
|
|
555
|
+
}>;
|
|
556
|
+
export type UpdateAutomaticTriggerActionData = Static<typeof updateAutomaticTriggerActionSchema>;
|
|
557
|
+
export declare const manualTriggerActionSchema: Type.TObject<{
|
|
558
|
+
id: Type.TNumber;
|
|
559
|
+
manual_trigger_id: Type.TNumber;
|
|
560
|
+
action_id: Type.TNumber;
|
|
561
|
+
execution_order: Type.TNumber;
|
|
562
|
+
}>;
|
|
563
|
+
export type ManualTriggerActionData = Static<typeof manualTriggerActionSchema>;
|
|
564
|
+
export declare const createManualTriggerActionSchema: Type.TObject<{
|
|
565
|
+
action_id: Type.TNumber;
|
|
566
|
+
execution_order: Type.TNumber;
|
|
567
|
+
manual_trigger_id: Type.TNumber;
|
|
568
|
+
}>;
|
|
569
|
+
export type CreateManualTriggerActionData = Static<typeof createManualTriggerActionSchema>;
|
|
570
|
+
export declare const updateManualTriggerActionSchema: Type.TObject<{
|
|
571
|
+
action_id: Type.TOptional<Type.TNumber>;
|
|
572
|
+
execution_order: Type.TOptional<Type.TNumber>;
|
|
573
|
+
manual_trigger_id: Type.TOptional<Type.TNumber>;
|
|
574
|
+
}>;
|
|
575
|
+
export type UpdateManualTriggerActionData = Static<typeof updateManualTriggerActionSchema>;
|
|
576
|
+
export declare const automaticTriggerWithActionsSchema: Type.TIntersect<[Type.TObject<{
|
|
577
|
+
id: Type.TNumber;
|
|
578
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
579
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
580
|
+
target: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
581
|
+
operation: Type.TOptional<Type.TUnion<[Type.TEnum<("delete" | "update" | "create")[]>, Type.TNull]>>;
|
|
582
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
583
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
584
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
585
|
+
}>, Type.TNull]>>;
|
|
586
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
587
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
588
|
+
}>, Type.TObject<{
|
|
589
|
+
actions: Type.TOptional<Type.TArray<Type.TObject<{
|
|
590
|
+
id: Type.TNumber;
|
|
591
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
592
|
+
name: Type.TString;
|
|
593
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
594
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
595
|
+
id: Type.TString;
|
|
596
|
+
location: Type.TOptional<Type.TString>;
|
|
597
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
598
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
599
|
+
}>, Type.TObject<{
|
|
600
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
601
|
+
}>]>]>;
|
|
602
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
603
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
604
|
+
}>>>;
|
|
605
|
+
}>]>;
|
|
606
|
+
export type AutomaticTriggerWithActionsData = Static<typeof automaticTriggerWithActionsSchema>;
|
|
607
|
+
export declare const manualTriggerWithActionsSchema: Type.TIntersect<[Type.TObject<{
|
|
608
|
+
id: Type.TNumber;
|
|
609
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
610
|
+
name: Type.TString;
|
|
611
|
+
source: Type.TEnum<("model" | "designer" | "displayer")[]>;
|
|
612
|
+
target: Type.TString;
|
|
613
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
614
|
+
relations: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
615
|
+
join: Type.TOptional<Type.TArray<Type.TString>>;
|
|
616
|
+
}>, Type.TNull]>>;
|
|
617
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
618
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
619
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
620
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
621
|
+
styles: Type.TOptional<Type.TObject<{
|
|
622
|
+
text: Type.TOptional<Type.TString>;
|
|
623
|
+
textColor: Type.TOptional<Type.TString>;
|
|
624
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
625
|
+
icon: Type.TOptional<Type.TString>;
|
|
626
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
627
|
+
}>>;
|
|
628
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
629
|
+
text: Type.TOptional<Type.TString>;
|
|
630
|
+
textColor: Type.TOptional<Type.TString>;
|
|
631
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
632
|
+
icon: Type.TOptional<Type.TString>;
|
|
633
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
634
|
+
}>, Type.TObject<{
|
|
635
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
636
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
637
|
+
}>]>>>;
|
|
638
|
+
}>, Type.TNull]>>;
|
|
639
|
+
}>, Type.TObject<{
|
|
640
|
+
actions: Type.TOptional<Type.TArray<Type.TObject<{
|
|
641
|
+
id: Type.TNumber;
|
|
642
|
+
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
643
|
+
name: Type.TString;
|
|
644
|
+
type: Type.TEnum<"ApiAction"[]>;
|
|
645
|
+
config: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
646
|
+
id: Type.TString;
|
|
647
|
+
location: Type.TOptional<Type.TString>;
|
|
648
|
+
overridable: Type.TOptional<Type.TArray<Type.TString>>;
|
|
649
|
+
default: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
650
|
+
}>, Type.TObject<{
|
|
651
|
+
payload: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
652
|
+
}>]>]>;
|
|
653
|
+
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
654
|
+
library: Type.TOptional<Type.TBoolean>;
|
|
655
|
+
}>>>;
|
|
656
|
+
}>]>;
|
|
657
|
+
export type ManualTriggerWithActionsData = Static<typeof manualTriggerWithActionsSchema>;
|
|
658
|
+
export interface ActionEvent {
|
|
659
|
+
source: TriggerSource;
|
|
660
|
+
target?: string | null;
|
|
661
|
+
operation?: TriggerOperation | null;
|
|
662
|
+
current: Record<string, unknown>;
|
|
663
|
+
old?: Record<string, unknown> | null;
|
|
664
|
+
}
|
|
665
|
+
export declare const triggerExecutionResultSchema: Type.TObject<{
|
|
666
|
+
triggerId: Type.TNumber;
|
|
667
|
+
matched: Type.TBoolean;
|
|
668
|
+
actionsRun: Type.TNumber;
|
|
669
|
+
actionsAborted: Type.TNumber;
|
|
670
|
+
}>;
|
|
671
|
+
export type TriggerExecutionResult = Static<typeof triggerExecutionResultSchema>;
|
|
672
|
+
/**
|
|
673
|
+
* Structural shape the engine needs from an action it is about to run: the
|
|
674
|
+
* identity it logs, the `type` that selects the validation/dispatch branch, the
|
|
675
|
+
* config it executes with, and the retention it resolves `expires_at` from.
|
|
676
|
+
* Deliberately loose (`type: string`, not `ActionType`) so an unknown type still
|
|
677
|
+
* reaches the always-blocking context validation instead of failing to typecheck.
|
|
678
|
+
*/
|
|
679
|
+
export interface ActionLike {
|
|
680
|
+
id: number;
|
|
681
|
+
type: string;
|
|
682
|
+
config: ActionConfig;
|
|
683
|
+
retention_days?: number | null;
|
|
684
|
+
}
|
|
685
|
+
/** Ordered trigger↔action link in the minimal shape the engine consumes. */
|
|
686
|
+
export interface TriggerActionLike {
|
|
687
|
+
action_id: number;
|
|
688
|
+
execution_order: number;
|
|
689
|
+
action?: ActionLike;
|
|
690
|
+
}
|
|
691
|
+
/** Minimal shape of a trigger for the engine, whatever its kind. */
|
|
692
|
+
export interface EvaluableTrigger {
|
|
693
|
+
id: number;
|
|
694
|
+
conditions?: object | null;
|
|
695
|
+
relations?: TriggerRelations | null;
|
|
696
|
+
retention_days?: number | null;
|
|
697
|
+
trigger_actions?: TriggerActionLike[];
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* A batch of already-resolved candidates a trigger kind hands to the engine,
|
|
701
|
+
* together with the event data they were resolved for. `relatedModel` is what
|
|
702
|
+
* the evaluation `process_log` row is related to (the trigger table of that
|
|
703
|
+
* kind), which is how trigger evaluations stay independently queryable per kind.
|
|
704
|
+
*/
|
|
705
|
+
export interface TriggerBatch<T extends EvaluableTrigger = EvaluableTrigger> {
|
|
706
|
+
triggers: T[];
|
|
707
|
+
relatedModel: string;
|
|
708
|
+
source: TriggerSource;
|
|
709
|
+
target?: string | null;
|
|
710
|
+
operation?: TriggerOperation | null;
|
|
711
|
+
current: Record<string, unknown>;
|
|
712
|
+
old?: Record<string, unknown> | null;
|
|
713
|
+
}
|
|
714
|
+
export interface ContextValidationResult {
|
|
715
|
+
ok: boolean;
|
|
716
|
+
type: string;
|
|
717
|
+
baseErrors: {
|
|
718
|
+
path: string;
|
|
719
|
+
message: string;
|
|
720
|
+
}[];
|
|
721
|
+
missingRefs: string[];
|
|
722
|
+
referencedRefs: string[];
|
|
723
|
+
overridableErrors: string[];
|
|
724
|
+
}
|
|
725
|
+
export interface ActionConfigLike {
|
|
726
|
+
payload?: Record<string, unknown>;
|
|
727
|
+
overridable?: string[];
|
|
728
|
+
default?: Record<string, unknown>;
|
|
729
|
+
}
|
|
730
|
+
export interface EffectiveConfigResult {
|
|
731
|
+
effective: Record<string, unknown>;
|
|
732
|
+
overridableErrors: string[];
|
|
733
|
+
}
|
|
734
|
+
export declare const successResponseSchema: Type.TObject<{
|
|
735
|
+
success: Type.TBoolean;
|
|
736
|
+
}>;
|
|
737
|
+
export declare const withIdParamsSchema: Type.TIntersect<[Type.TIntersect<[Type.TObject<{
|
|
738
|
+
ecosystemName: Type.TString;
|
|
739
|
+
}>, Type.TObject<{
|
|
740
|
+
projectName: Type.TString;
|
|
741
|
+
}>]>, Type.TObject<{
|
|
742
|
+
id: Type.TNumber;
|
|
743
|
+
}>]>;
|
|
744
|
+
//# sourceMappingURL=action-system.schema.d.ts.map
|