@acorex-platform/module-rule-engine-management-client 0.0.30 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs +162 -0
  2. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs +167 -0
  4. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs +166 -0
  6. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs +164 -0
  8. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs +179 -0
  10. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs +77 -0
  12. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs +23 -0
  14. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs +89 -0
  16. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs +28 -0
  18. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs +27 -0
  20. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs +25 -0
  22. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs +40 -0
  24. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs +2 -0
  26. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-rule-engine-management-client-local-entities.mjs +33 -0
  28. package/fesm2022/acorex-platform-module-rule-engine-management-client-local-entities.mjs.map +1 -0
  29. package/package.json +29 -1
  30. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.d.ts +5 -0
  31. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.d.ts +5 -0
  32. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.d.ts +5 -0
  33. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.d.ts +5 -0
  34. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.d.ts +5 -0
  35. package/types/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.d.ts +10 -0
  36. package/types/acorex-platform-module-rule-engine-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,162 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'rule-engine-management',
6
+ module: 'RuleEngineManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'rule-engine-management',
12
+ name: config.module,
13
+ title: '@rule-engine-management:module.title',
14
+ icon: 'fa-light fa-scale-balanced',
15
+ },
16
+ entities: {
17
+ ruleSet: {
18
+ name: 'RuleSet',
19
+ fullName: `${config.module}.RuleSet`,
20
+ title: '@rule-engine-management:rule-sets.entities.rule-set.title',
21
+ titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',
22
+ icon: 'fa-light fa-layer-group',
23
+ },
24
+ ruleDefinition: {
25
+ name: 'RuleDefinition',
26
+ fullName: `${config.module}.RuleDefinition`,
27
+ title: '@rule-engine-management:rules.entities.rule-definition.title',
28
+ titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',
29
+ icon: 'fa-light fa-list-check',
30
+ },
31
+ decisionTable: {
32
+ name: 'DecisionTable',
33
+ fullName: `${config.module}.DecisionTable`,
34
+ title: '@rule-engine-management:tables.entities.decision-table.title',
35
+ titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',
36
+ icon: 'fa-light fa-table',
37
+ },
38
+ ruleSetVersion: {
39
+ name: 'RuleSetVersion',
40
+ fullName: `${config.module}.RuleSetVersion`,
41
+ title: '@rule-engine-management:versions.entities.rule-set-version.title',
42
+ titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',
43
+ icon: 'fa-light fa-code-branch',
44
+ },
45
+ ruleEvaluationRun: {
46
+ name: 'RuleEvaluationRun',
47
+ fullName: `${config.module}.RuleEvaluationRun`,
48
+ title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',
49
+ titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',
50
+ icon: 'fa-light fa-play',
51
+ },
52
+ },
53
+ };
54
+
55
+ function createSimpleCrudEntity(options) {
56
+ const i18n = options.i18nPrefix;
57
+ return {
58
+ module: options.module,
59
+ name: options.name,
60
+ title: options.title,
61
+ icon: options.icon,
62
+ plugins: [{ name: 'history' }],
63
+ ...(options.pages?.length ? { pages: options.pages } : {}),
64
+ formats: {
65
+ individual: options.title,
66
+ plural: options.titlePlural,
67
+ searchResult: {
68
+ title: '{{ name || title || id }}',
69
+ description: '{{ domain || ruleSetId || status }}',
70
+ },
71
+ },
72
+ groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],
73
+ properties: [
74
+ {
75
+ name: 'id',
76
+ title: 'ID',
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'uuid',
80
+ visible: false,
81
+ nullable: false,
82
+ readonly: true,
83
+ unique: { enabled: true },
84
+ },
85
+ },
86
+ ...options.fields.map((field) => ({
87
+ name: field.name,
88
+ title: `${i18n}.fields.${field.titleKey}.title`,
89
+ groupId: 'basic-info',
90
+ schema: {
91
+ dataType: field.dataType ?? 'string',
92
+ visible: field.visible !== false,
93
+ readonly: field.readonly === true,
94
+ interface: {
95
+ type: field.largeText
96
+ ? AXPWidgetsCatalog.largeText
97
+ : field.widget ?? AXPWidgetsCatalog.text,
98
+ options: field.largeText ? { rows: 8 } : undefined,
99
+ },
100
+ },
101
+ options: {
102
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
103
+ sort: { enabled: true },
104
+ },
105
+ validations: field.required ? [{ rule: 'required' }] : [],
106
+ })),
107
+ ],
108
+ columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map((name) => ({ name })),
109
+ interfaces: {
110
+ master: {
111
+ create: {
112
+ sections: [{ id: 'basic-info' }],
113
+ properties: options.fields
114
+ .filter((f) => !f.readonly && f.visible !== false)
115
+ .map((f) => ({ name: f.name })),
116
+ },
117
+ update: {
118
+ sections: [{ id: 'basic-info' }],
119
+ properties: options.fields
120
+ .filter((f) => !f.readonly && f.visible !== false)
121
+ .map((f) => ({ name: f.name })),
122
+ },
123
+ single: {
124
+ title: '{{ name || title || id }}',
125
+ sections: [{ id: 'basic-info' }],
126
+ properties: options.fields.map((f) => ({ name: f.name })),
127
+ actions: [...entityMasterRecordActions()],
128
+ },
129
+ list: {
130
+ actions: [...entityMasterCrudActions()],
131
+ views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],
132
+ },
133
+ },
134
+ },
135
+ };
136
+ }
137
+ //#endregion
138
+
139
+ async function factoryDecisionTable() {
140
+ return createSimpleCrudEntity({
141
+ module: RootConfig.module.name,
142
+ name: RootConfig.entities.decisionTable.name,
143
+ title: RootConfig.entities.decisionTable.title,
144
+ titlePlural: RootConfig.entities.decisionTable.titlePlural,
145
+ icon: RootConfig.entities.decisionTable.icon,
146
+ i18nPrefix: '@rule-engine-management:tables.entities.decision-table',
147
+ fields: [
148
+ { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
149
+ { name: 'name', titleKey: 'name', required: true },
150
+ { name: 'hitPolicy', titleKey: 'hit-policy', required: true },
151
+ { name: 'tableJson', titleKey: 'table-json', largeText: true, required: true },
152
+ ],
153
+ columns: ['name', 'ruleSetId', 'hitPolicy'],
154
+ });
155
+ }
156
+
157
+ /**
158
+ * Generated bundle index. Do not edit.
159
+ */
160
+
161
+ export { factoryDecisionTable };
162
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/entity-factory.util.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/decision-table/decision-table.entity.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.ts"],"sourcesContent":["const config = {\n i18n: 'rule-engine-management',\n module: 'RuleEngineManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'rule-engine-management',\n name: config.module,\n title: '@rule-engine-management:module.title',\n icon: 'fa-light fa-scale-balanced',\n },\n entities: {\n ruleSet: {\n name: 'RuleSet',\n fullName: `${config.module}.RuleSet`,\n title: '@rule-engine-management:rule-sets.entities.rule-set.title',\n titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',\n icon: 'fa-light fa-layer-group',\n },\n ruleDefinition: {\n name: 'RuleDefinition',\n fullName: `${config.module}.RuleDefinition`,\n title: '@rule-engine-management:rules.entities.rule-definition.title',\n titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',\n icon: 'fa-light fa-list-check',\n },\n decisionTable: {\n name: 'DecisionTable',\n fullName: `${config.module}.DecisionTable`,\n title: '@rule-engine-management:tables.entities.decision-table.title',\n titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',\n icon: 'fa-light fa-table',\n },\n ruleSetVersion: {\n name: 'RuleSetVersion',\n fullName: `${config.module}.RuleSetVersion`,\n title: '@rule-engine-management:versions.entities.rule-set-version.title',\n titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',\n icon: 'fa-light fa-code-branch',\n },\n ruleEvaluationRun: {\n name: 'RuleEvaluationRun',\n fullName: `${config.module}.RuleEvaluationRun`,\n title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',\n titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',\n icon: 'fa-light fa-play',\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityPage,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Shared entity factory helper ----\n\nexport interface SimpleEntityFactoryOptions {\n module: string;\n name: string;\n title: string;\n titlePlural: string;\n icon: string;\n i18nPrefix: string;\n fields: Array<{\n name: string;\n titleKey: string;\n dataType?: 'string' | 'number' | 'boolean' | 'object' | 'uuid';\n required?: boolean;\n widget?: string;\n visible?: boolean;\n readonly?: boolean;\n largeText?: boolean;\n }>;\n columns?: string[];\n /** Optional custom entity detail tabs (workflow Activities pattern). */\n pages?: AXPEntityPage[];\n}\n\nexport function createSimpleCrudEntity(options: SimpleEntityFactoryOptions): AXPEntity {\n const i18n = options.i18nPrefix;\n return {\n module: options.module,\n name: options.name,\n title: options.title,\n icon: options.icon,\n plugins: [{ name: 'history' }],\n ...(options.pages?.length ? { pages: options.pages } : {}),\n formats: {\n individual: options.title,\n plural: options.titlePlural,\n searchResult: {\n title: '{{ name || title || id }}',\n description: '{{ domain || ruleSetId || status }}',\n },\n },\n groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n ...options.fields.map((field) => ({\n name: field.name,\n title: `${i18n}.fields.${field.titleKey}.title`,\n groupId: 'basic-info',\n schema: {\n dataType: field.dataType ?? 'string',\n visible: field.visible !== false,\n readonly: field.readonly === true,\n interface: {\n type: field.largeText\n ? AXPWidgetsCatalog.largeText\n : field.widget ?? AXPWidgetsCatalog.text,\n options: field.largeText ? { rows: 8 } : undefined,\n },\n },\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n sort: { enabled: true },\n },\n validations: field.required ? [{ rule: 'required' as const }] : [],\n })),\n ],\n columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map(\n (name) => ({ name }),\n ),\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n single: {\n title: '{{ name || title || id }}',\n sections: [{ id: 'basic-info' }],\n properties: options.fields.map((f) => ({ name: f.name })),\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","import { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { createSimpleCrudEntity } from '../entity-factory.util';\n\nexport async function factoryDecisionTable(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.decisionTable.name,\n title: RootConfig.entities.decisionTable.title,\n titlePlural: RootConfig.entities.decisionTable.titlePlural,\n icon: RootConfig.entities.decisionTable.icon,\n i18nPrefix: '@rule-engine-management:tables.entities.decision-table',\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'name', titleKey: 'name', required: true },\n { name: 'hitPolicy', titleKey: 'hit-policy', required: true },\n { name: 'tableJson', titleKey: 'table-json', largeText: true, required: true },\n ],\n columns: ['name', 'ruleSetId', 'hitPolicy'],\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.decision-table';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,MAAM,EAAE,sBAAsB;CAC/B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,MAAM,CAAC,MA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RecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'rule-engine-management',
6
+ module: 'RuleEngineManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'rule-engine-management',
12
+ name: config.module,
13
+ title: '@rule-engine-management:module.title',
14
+ icon: 'fa-light fa-scale-balanced',
15
+ },
16
+ entities: {
17
+ ruleSet: {
18
+ name: 'RuleSet',
19
+ fullName: `${config.module}.RuleSet`,
20
+ title: '@rule-engine-management:rule-sets.entities.rule-set.title',
21
+ titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',
22
+ icon: 'fa-light fa-layer-group',
23
+ },
24
+ ruleDefinition: {
25
+ name: 'RuleDefinition',
26
+ fullName: `${config.module}.RuleDefinition`,
27
+ title: '@rule-engine-management:rules.entities.rule-definition.title',
28
+ titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',
29
+ icon: 'fa-light fa-list-check',
30
+ },
31
+ decisionTable: {
32
+ name: 'DecisionTable',
33
+ fullName: `${config.module}.DecisionTable`,
34
+ title: '@rule-engine-management:tables.entities.decision-table.title',
35
+ titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',
36
+ icon: 'fa-light fa-table',
37
+ },
38
+ ruleSetVersion: {
39
+ name: 'RuleSetVersion',
40
+ fullName: `${config.module}.RuleSetVersion`,
41
+ title: '@rule-engine-management:versions.entities.rule-set-version.title',
42
+ titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',
43
+ icon: 'fa-light fa-code-branch',
44
+ },
45
+ ruleEvaluationRun: {
46
+ name: 'RuleEvaluationRun',
47
+ fullName: `${config.module}.RuleEvaluationRun`,
48
+ title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',
49
+ titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',
50
+ icon: 'fa-light fa-play',
51
+ },
52
+ },
53
+ };
54
+
55
+ function createSimpleCrudEntity(options) {
56
+ const i18n = options.i18nPrefix;
57
+ return {
58
+ module: options.module,
59
+ name: options.name,
60
+ title: options.title,
61
+ icon: options.icon,
62
+ plugins: [{ name: 'history' }],
63
+ ...(options.pages?.length ? { pages: options.pages } : {}),
64
+ formats: {
65
+ individual: options.title,
66
+ plural: options.titlePlural,
67
+ searchResult: {
68
+ title: '{{ name || title || id }}',
69
+ description: '{{ domain || ruleSetId || status }}',
70
+ },
71
+ },
72
+ groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],
73
+ properties: [
74
+ {
75
+ name: 'id',
76
+ title: 'ID',
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'uuid',
80
+ visible: false,
81
+ nullable: false,
82
+ readonly: true,
83
+ unique: { enabled: true },
84
+ },
85
+ },
86
+ ...options.fields.map((field) => ({
87
+ name: field.name,
88
+ title: `${i18n}.fields.${field.titleKey}.title`,
89
+ groupId: 'basic-info',
90
+ schema: {
91
+ dataType: field.dataType ?? 'string',
92
+ visible: field.visible !== false,
93
+ readonly: field.readonly === true,
94
+ interface: {
95
+ type: field.largeText
96
+ ? AXPWidgetsCatalog.largeText
97
+ : field.widget ?? AXPWidgetsCatalog.text,
98
+ options: field.largeText ? { rows: 8 } : undefined,
99
+ },
100
+ },
101
+ options: {
102
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
103
+ sort: { enabled: true },
104
+ },
105
+ validations: field.required ? [{ rule: 'required' }] : [],
106
+ })),
107
+ ],
108
+ columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map((name) => ({ name })),
109
+ interfaces: {
110
+ master: {
111
+ create: {
112
+ sections: [{ id: 'basic-info' }],
113
+ properties: options.fields
114
+ .filter((f) => !f.readonly && f.visible !== false)
115
+ .map((f) => ({ name: f.name })),
116
+ },
117
+ update: {
118
+ sections: [{ id: 'basic-info' }],
119
+ properties: options.fields
120
+ .filter((f) => !f.readonly && f.visible !== false)
121
+ .map((f) => ({ name: f.name })),
122
+ },
123
+ single: {
124
+ title: '{{ name || title || id }}',
125
+ sections: [{ id: 'basic-info' }],
126
+ properties: options.fields.map((f) => ({ name: f.name })),
127
+ actions: [...entityMasterRecordActions()],
128
+ },
129
+ list: {
130
+ actions: [...entityMasterCrudActions()],
131
+ views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],
132
+ },
133
+ },
134
+ },
135
+ };
136
+ }
137
+ //#endregion
138
+
139
+ async function factoryRuleDefinition() {
140
+ return createSimpleCrudEntity({
141
+ module: RootConfig.module.name,
142
+ name: RootConfig.entities.ruleDefinition.name,
143
+ title: RootConfig.entities.ruleDefinition.title,
144
+ titlePlural: RootConfig.entities.ruleDefinition.titlePlural,
145
+ icon: RootConfig.entities.ruleDefinition.icon,
146
+ i18nPrefix: '@rule-engine-management:rules.entities.rule-definition',
147
+ fields: [
148
+ { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
149
+ { name: 'name', titleKey: 'name', required: true },
150
+ { name: 'enabled', titleKey: 'enabled', dataType: 'boolean' },
151
+ { name: 'priority', titleKey: 'priority', dataType: 'number' },
152
+ { name: 'salience', titleKey: 'salience', dataType: 'number' },
153
+ { name: 'activationGroup', titleKey: 'activation-group' },
154
+ { name: 'severity', titleKey: 'severity' },
155
+ { name: 'whenJson', titleKey: 'when-json', largeText: true, required: true },
156
+ { name: 'thenJson', titleKey: 'then-json', largeText: true, required: true },
157
+ ],
158
+ columns: ['name', 'ruleSetId', 'severity', 'priority', 'enabled'],
159
+ });
160
+ }
161
+
162
+ /**
163
+ * Generated bundle index. Do not edit.
164
+ */
165
+
166
+ export { factoryRuleDefinition };
167
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/entity-factory.util.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-definition/rule-definition.entity.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.ts"],"sourcesContent":["const config = {\n i18n: 'rule-engine-management',\n module: 'RuleEngineManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'rule-engine-management',\n name: config.module,\n title: '@rule-engine-management:module.title',\n icon: 'fa-light fa-scale-balanced',\n },\n entities: {\n ruleSet: {\n name: 'RuleSet',\n fullName: `${config.module}.RuleSet`,\n title: '@rule-engine-management:rule-sets.entities.rule-set.title',\n titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',\n icon: 'fa-light fa-layer-group',\n },\n ruleDefinition: {\n name: 'RuleDefinition',\n fullName: `${config.module}.RuleDefinition`,\n title: '@rule-engine-management:rules.entities.rule-definition.title',\n titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',\n icon: 'fa-light fa-list-check',\n },\n decisionTable: {\n name: 'DecisionTable',\n fullName: `${config.module}.DecisionTable`,\n title: '@rule-engine-management:tables.entities.decision-table.title',\n titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',\n icon: 'fa-light fa-table',\n },\n ruleSetVersion: {\n name: 'RuleSetVersion',\n fullName: `${config.module}.RuleSetVersion`,\n title: '@rule-engine-management:versions.entities.rule-set-version.title',\n titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',\n icon: 'fa-light fa-code-branch',\n },\n ruleEvaluationRun: {\n name: 'RuleEvaluationRun',\n fullName: `${config.module}.RuleEvaluationRun`,\n title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',\n titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',\n icon: 'fa-light fa-play',\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityPage,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Shared entity factory helper ----\n\nexport interface SimpleEntityFactoryOptions {\n module: string;\n name: string;\n title: string;\n titlePlural: string;\n icon: string;\n i18nPrefix: string;\n fields: Array<{\n name: string;\n titleKey: string;\n dataType?: 'string' | 'number' | 'boolean' | 'object' | 'uuid';\n required?: boolean;\n widget?: string;\n visible?: boolean;\n readonly?: boolean;\n largeText?: boolean;\n }>;\n columns?: string[];\n /** Optional custom entity detail tabs (workflow Activities pattern). */\n pages?: AXPEntityPage[];\n}\n\nexport function createSimpleCrudEntity(options: SimpleEntityFactoryOptions): AXPEntity {\n const i18n = options.i18nPrefix;\n return {\n module: options.module,\n name: options.name,\n title: options.title,\n icon: options.icon,\n plugins: [{ name: 'history' }],\n ...(options.pages?.length ? { pages: options.pages } : {}),\n formats: {\n individual: options.title,\n plural: options.titlePlural,\n searchResult: {\n title: '{{ name || title || id }}',\n description: '{{ domain || ruleSetId || status }}',\n },\n },\n groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n ...options.fields.map((field) => ({\n name: field.name,\n title: `${i18n}.fields.${field.titleKey}.title`,\n groupId: 'basic-info',\n schema: {\n dataType: field.dataType ?? 'string',\n visible: field.visible !== false,\n readonly: field.readonly === true,\n interface: {\n type: field.largeText\n ? AXPWidgetsCatalog.largeText\n : field.widget ?? AXPWidgetsCatalog.text,\n options: field.largeText ? { rows: 8 } : undefined,\n },\n },\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n sort: { enabled: true },\n },\n validations: field.required ? [{ rule: 'required' as const }] : [],\n })),\n ],\n columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map(\n (name) => ({ name }),\n ),\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n single: {\n title: '{{ name || title || id }}',\n sections: [{ id: 'basic-info' }],\n properties: options.fields.map((f) => ({ name: f.name })),\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","import { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { createSimpleCrudEntity } from '../entity-factory.util';\n\nexport async function factoryRuleDefinition(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleDefinition.name,\n title: RootConfig.entities.ruleDefinition.title,\n titlePlural: RootConfig.entities.ruleDefinition.titlePlural,\n icon: RootConfig.entities.ruleDefinition.icon,\n i18nPrefix: '@rule-engine-management:rules.entities.rule-definition',\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'name', titleKey: 'name', required: true },\n { name: 'enabled', titleKey: 'enabled', dataType: 'boolean' },\n { name: 'priority', titleKey: 'priority', dataType: 'number' },\n { name: 'salience', titleKey: 'salience', dataType: 'number' },\n { name: 'activationGroup', titleKey: 'activation-group' },\n { name: 'severity', titleKey: 'severity' },\n { name: 'whenJson', titleKey: 'when-json', largeText: true, required: true },\n { name: 'thenJson', titleKey: 'then-json', largeText: true, required: true },\n ],\n columns: ['name', 'ruleSetId', 'severity', 'priority', 'enabled'],\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.rule-definition';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,MAAM,EAAE,sBAAsB;CAC/B;AAEM,MAAM,U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E,kBAAkB,EAAE;AACzD,YAAA,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE;AAC1C,YAAA,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC5E,YAAA,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC7E,SAAA;QACD,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;AAClE,KAAA,CAAC;AACJ;;ACzBA;;AAEG;;;;"}
@@ -0,0 +1,166 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'rule-engine-management',
6
+ module: 'RuleEngineManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'rule-engine-management',
12
+ name: config.module,
13
+ title: '@rule-engine-management:module.title',
14
+ icon: 'fa-light fa-scale-balanced',
15
+ },
16
+ entities: {
17
+ ruleSet: {
18
+ name: 'RuleSet',
19
+ fullName: `${config.module}.RuleSet`,
20
+ title: '@rule-engine-management:rule-sets.entities.rule-set.title',
21
+ titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',
22
+ icon: 'fa-light fa-layer-group',
23
+ },
24
+ ruleDefinition: {
25
+ name: 'RuleDefinition',
26
+ fullName: `${config.module}.RuleDefinition`,
27
+ title: '@rule-engine-management:rules.entities.rule-definition.title',
28
+ titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',
29
+ icon: 'fa-light fa-list-check',
30
+ },
31
+ decisionTable: {
32
+ name: 'DecisionTable',
33
+ fullName: `${config.module}.DecisionTable`,
34
+ title: '@rule-engine-management:tables.entities.decision-table.title',
35
+ titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',
36
+ icon: 'fa-light fa-table',
37
+ },
38
+ ruleSetVersion: {
39
+ name: 'RuleSetVersion',
40
+ fullName: `${config.module}.RuleSetVersion`,
41
+ title: '@rule-engine-management:versions.entities.rule-set-version.title',
42
+ titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',
43
+ icon: 'fa-light fa-code-branch',
44
+ },
45
+ ruleEvaluationRun: {
46
+ name: 'RuleEvaluationRun',
47
+ fullName: `${config.module}.RuleEvaluationRun`,
48
+ title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',
49
+ titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',
50
+ icon: 'fa-light fa-play',
51
+ },
52
+ },
53
+ };
54
+
55
+ function createSimpleCrudEntity(options) {
56
+ const i18n = options.i18nPrefix;
57
+ return {
58
+ module: options.module,
59
+ name: options.name,
60
+ title: options.title,
61
+ icon: options.icon,
62
+ plugins: [{ name: 'history' }],
63
+ ...(options.pages?.length ? { pages: options.pages } : {}),
64
+ formats: {
65
+ individual: options.title,
66
+ plural: options.titlePlural,
67
+ searchResult: {
68
+ title: '{{ name || title || id }}',
69
+ description: '{{ domain || ruleSetId || status }}',
70
+ },
71
+ },
72
+ groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],
73
+ properties: [
74
+ {
75
+ name: 'id',
76
+ title: 'ID',
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'uuid',
80
+ visible: false,
81
+ nullable: false,
82
+ readonly: true,
83
+ unique: { enabled: true },
84
+ },
85
+ },
86
+ ...options.fields.map((field) => ({
87
+ name: field.name,
88
+ title: `${i18n}.fields.${field.titleKey}.title`,
89
+ groupId: 'basic-info',
90
+ schema: {
91
+ dataType: field.dataType ?? 'string',
92
+ visible: field.visible !== false,
93
+ readonly: field.readonly === true,
94
+ interface: {
95
+ type: field.largeText
96
+ ? AXPWidgetsCatalog.largeText
97
+ : field.widget ?? AXPWidgetsCatalog.text,
98
+ options: field.largeText ? { rows: 8 } : undefined,
99
+ },
100
+ },
101
+ options: {
102
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
103
+ sort: { enabled: true },
104
+ },
105
+ validations: field.required ? [{ rule: 'required' }] : [],
106
+ })),
107
+ ],
108
+ columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map((name) => ({ name })),
109
+ interfaces: {
110
+ master: {
111
+ create: {
112
+ sections: [{ id: 'basic-info' }],
113
+ properties: options.fields
114
+ .filter((f) => !f.readonly && f.visible !== false)
115
+ .map((f) => ({ name: f.name })),
116
+ },
117
+ update: {
118
+ sections: [{ id: 'basic-info' }],
119
+ properties: options.fields
120
+ .filter((f) => !f.readonly && f.visible !== false)
121
+ .map((f) => ({ name: f.name })),
122
+ },
123
+ single: {
124
+ title: '{{ name || title || id }}',
125
+ sections: [{ id: 'basic-info' }],
126
+ properties: options.fields.map((f) => ({ name: f.name })),
127
+ actions: [...entityMasterRecordActions()],
128
+ },
129
+ list: {
130
+ actions: [...entityMasterCrudActions()],
131
+ views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],
132
+ },
133
+ },
134
+ },
135
+ };
136
+ }
137
+ //#endregion
138
+
139
+ async function factoryRuleEvaluationRun() {
140
+ return createSimpleCrudEntity({
141
+ module: RootConfig.module.name,
142
+ name: RootConfig.entities.ruleEvaluationRun.name,
143
+ title: RootConfig.entities.ruleEvaluationRun.title,
144
+ titlePlural: RootConfig.entities.ruleEvaluationRun.titlePlural,
145
+ icon: RootConfig.entities.ruleEvaluationRun.icon,
146
+ i18nPrefix: '@rule-engine-management:runs.entities.rule-evaluation-run',
147
+ fields: [
148
+ { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
149
+ { name: 'ruleSetVersion', titleKey: 'rule-set-version' },
150
+ { name: 'mode', titleKey: 'mode' },
151
+ { name: 'passed', titleKey: 'passed', dataType: 'boolean' },
152
+ { name: 'durationMs', titleKey: 'duration-ms', dataType: 'number' },
153
+ { name: 'factsJson', titleKey: 'facts-json', largeText: true },
154
+ { name: 'resultJson', titleKey: 'result-json', largeText: true },
155
+ { name: 'correlationId', titleKey: 'correlation-id' },
156
+ ],
157
+ columns: ['ruleSetId', 'ruleSetVersion', 'mode', 'passed', 'durationMs'],
158
+ });
159
+ }
160
+
161
+ /**
162
+ * Generated bundle index. Do not edit.
163
+ */
164
+
165
+ export { factoryRuleEvaluationRun };
166
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/entity-factory.util.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-evaluation-run/rule-evaluation-run.entity.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.ts"],"sourcesContent":["const config = {\n i18n: 'rule-engine-management',\n module: 'RuleEngineManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'rule-engine-management',\n name: config.module,\n title: '@rule-engine-management:module.title',\n icon: 'fa-light fa-scale-balanced',\n },\n entities: {\n ruleSet: {\n name: 'RuleSet',\n fullName: `${config.module}.RuleSet`,\n title: '@rule-engine-management:rule-sets.entities.rule-set.title',\n titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',\n icon: 'fa-light fa-layer-group',\n },\n ruleDefinition: {\n name: 'RuleDefinition',\n fullName: `${config.module}.RuleDefinition`,\n title: '@rule-engine-management:rules.entities.rule-definition.title',\n titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',\n icon: 'fa-light fa-list-check',\n },\n decisionTable: {\n name: 'DecisionTable',\n fullName: `${config.module}.DecisionTable`,\n title: '@rule-engine-management:tables.entities.decision-table.title',\n titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',\n icon: 'fa-light fa-table',\n },\n ruleSetVersion: {\n name: 'RuleSetVersion',\n fullName: `${config.module}.RuleSetVersion`,\n title: '@rule-engine-management:versions.entities.rule-set-version.title',\n titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',\n icon: 'fa-light fa-code-branch',\n },\n ruleEvaluationRun: {\n name: 'RuleEvaluationRun',\n fullName: `${config.module}.RuleEvaluationRun`,\n title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',\n titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',\n icon: 'fa-light fa-play',\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityPage,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Shared entity factory helper ----\n\nexport interface SimpleEntityFactoryOptions {\n module: string;\n name: string;\n title: string;\n titlePlural: string;\n icon: string;\n i18nPrefix: string;\n fields: Array<{\n name: string;\n titleKey: string;\n dataType?: 'string' | 'number' | 'boolean' | 'object' | 'uuid';\n required?: boolean;\n widget?: string;\n visible?: boolean;\n readonly?: boolean;\n largeText?: boolean;\n }>;\n columns?: string[];\n /** Optional custom entity detail tabs (workflow Activities pattern). */\n pages?: AXPEntityPage[];\n}\n\nexport function createSimpleCrudEntity(options: SimpleEntityFactoryOptions): AXPEntity {\n const i18n = options.i18nPrefix;\n return {\n module: options.module,\n name: options.name,\n title: options.title,\n icon: options.icon,\n plugins: [{ name: 'history' }],\n ...(options.pages?.length ? { pages: options.pages } : {}),\n formats: {\n individual: options.title,\n plural: options.titlePlural,\n searchResult: {\n title: '{{ name || title || id }}',\n description: '{{ domain || ruleSetId || status }}',\n },\n },\n groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n ...options.fields.map((field) => ({\n name: field.name,\n title: `${i18n}.fields.${field.titleKey}.title`,\n groupId: 'basic-info',\n schema: {\n dataType: field.dataType ?? 'string',\n visible: field.visible !== false,\n readonly: field.readonly === true,\n interface: {\n type: field.largeText\n ? AXPWidgetsCatalog.largeText\n : field.widget ?? AXPWidgetsCatalog.text,\n options: field.largeText ? { rows: 8 } : undefined,\n },\n },\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n sort: { enabled: true },\n },\n validations: field.required ? [{ rule: 'required' as const }] : [],\n })),\n ],\n columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map(\n (name) => ({ name }),\n ),\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n single: {\n title: '{{ name || title || id }}',\n sections: [{ id: 'basic-info' }],\n properties: options.fields.map((f) => ({ name: f.name })),\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","import { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { createSimpleCrudEntity } from '../entity-factory.util';\n\nexport async function factoryRuleEvaluationRun(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleEvaluationRun.name,\n title: RootConfig.entities.ruleEvaluationRun.title,\n titlePlural: RootConfig.entities.ruleEvaluationRun.titlePlural,\n icon: RootConfig.entities.ruleEvaluationRun.icon,\n i18nPrefix: '@rule-engine-management:runs.entities.rule-evaluation-run',\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'ruleSetVersion', titleKey: 'rule-set-version' },\n { name: 'mode', titleKey: 'mode' },\n { name: 'passed', titleKey: 'passed', dataType: 'boolean' },\n { name: 'durationMs', titleKey: 'duration-ms', dataType: 'number' },\n { name: 'factsJson', titleKey: 'facts-json', largeText: true },\n { name: 'resultJson', titleKey: 'result-json', largeText: true },\n { name: 'correlationId', titleKey: 'correlation-id' },\n ],\n columns: ['ruleSetId', 'ruleSetVersion', 'mode', 'passed', 'durationMs'],\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.rule-evaluation-run';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,MAAM,EAAE,sBAAsB;CAC/B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,sCAAsC;AAC7C,QAAA,IAAI,EAAE,4BAA4B;AACnC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,QAAA,CAAU;AACpC,YAAA,KAAK,EAAE,2DAA2D;AAClE,YAAA,WAAW,EAAE,4DAA4D;AACzE,YAAA,IAAI,EAAE,yBAAyB;AAChC,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AAC3C,YAAA,KAAK,EAAE,8DAA8D;AACrE,YAAA,WAAW,E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