rez_core 4.0.191 → 4.0.192

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "4.0.191",
3
+ "version": "4.0.192",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -62,7 +62,6 @@
62
62
  "passport-google-oauth20": "^2.0.0",
63
63
  "passport-jwt": "^4.0.1",
64
64
  "passport-local": "^1.0.0",
65
- "pg": "^8.16.3",
66
65
  "redis": "^4.7.1",
67
66
  "reflect-metadata": "^0.2.2",
68
67
  "rxjs": "^7.8.1",
@@ -85,7 +84,7 @@
85
84
  "@types/cron": "^2.0.1",
86
85
  "@types/express": "^5.0.0",
87
86
  "@types/jest": "^29.5.14",
88
- "@types/multer": "^1.4.12",
87
+ "@types/multer": "^1.4.13",
89
88
  "@types/node": "^22.10.7",
90
89
  "@types/nodemailer": "^6.4.17",
91
90
  "@types/supertest": "^6.0.2",
@@ -16,11 +16,16 @@ import { LayoutPreferenceModule } from './module/layout_preference/layout_prefer
16
16
  import { WorkflowModule } from './module/workflow/workflow.module';
17
17
  import { WorkflowAutomationModule } from './module/workflow-automation/workflow-automation.module';
18
18
  import { MapperModule } from './module/mapper/mapper.module';
19
+ import { WorkflowScheduleModule } from './module/workflow-schedule/workflow-schedule.module';
19
20
 
20
21
  @Global()
21
22
  @Module({})
22
23
  export class CoreModule {
23
- static forRootAsync(dbModule: DynamicModule, isSso: boolean): DynamicModule {
24
+ static forRootAsync(
25
+ dbModule: DynamicModule,
26
+ isSso: boolean,
27
+ isWorkflow?: boolean,
28
+ ): DynamicModule {
24
29
  if (!dbModule) {
25
30
  throw new Error('Database module must be provided.');
26
31
  }
@@ -38,7 +43,8 @@ export class CoreModule {
38
43
  LayoutPreferenceModule,
39
44
  WorkflowModule,
40
45
  WorkflowAutomationModule,
41
- MapperModule
46
+ WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
47
+ MapperModule,
42
48
  ];
43
49
 
44
50
  const exportsArray = [
@@ -52,9 +58,10 @@ export class CoreModule {
52
58
  FilterModule,
53
59
  LeadModule,
54
60
  LayoutPreferenceModule,
61
+ MapperModule,
55
62
  WorkflowModule,
56
63
  WorkflowAutomationModule,
57
- MapperModule
64
+ WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
58
65
  ];
59
66
 
60
67
  if (isSso) {
@@ -93,7 +93,7 @@ export class FilterService {
93
93
  return [
94
94
  { tab_value: 'All', tab_value_count: total },
95
95
  ...rows.map((r) => ({
96
- tab_value: r.tab_value ?? 'UNKNOWN',
96
+ tab_value: r.tab_value ?? 'BLANK',
97
97
  tab_value_count: parseInt(r.tab_value_count, 10),
98
98
  })),
99
99
  ];
@@ -12,7 +12,6 @@ import { ActionRegistryService } from './service/action-registery.service';
12
12
  import { ScheduleHandlerService } from './service/schedule-handler.service';
13
13
  import { ScheduledWorkflow } from '../workflow-schedule/entities/scheduled-workflow.entity';
14
14
  import { WorkflowExecutionLog } from '../workflow-schedule/entities/workflow-execution-log.entity';
15
- import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.module';
16
15
 
17
16
  @Module({
18
17
  imports: [
@@ -39,6 +39,8 @@ import { UserSession } from "./module/user/entity/user-session.entity";
39
39
  import { UserData } from "./module/user/entity/user.entity";
40
40
  import { WorkflowAutomationActionEntity } from "./module/workflow-automation/entity/workflow-automation-action.entity";
41
41
  import { WorkflowAutomation } from "./module/workflow-automation/entity/workflow-automation.entity";
42
+ import { ScheduledWorkflow } from "./module/workflow-schedule/entities/scheduled-workflow.entity";
43
+ import { WorkflowExecutionLog } from "./module/workflow-schedule/entities/workflow-execution-log.entity";
42
44
  import { ActionCategory } from "./module/workflow/entity/action-category.entity";
43
45
  import { ActionDataEntity } from "./module/workflow/entity/action-data.entity";
44
46
  import { ActionResourcesMapping } from "./module/workflow/entity/action-resources-mapping.entity";
@@ -105,7 +107,9 @@ export const workflowTables = [
105
107
  WorkflowAutomation,
106
108
  WorkflowAutomationActionEntity,
107
109
  WorkflowLevelMappingEntity,
108
- WorkFlowData
110
+ WorkFlowData,
111
+ WorkflowExecutionLog,
112
+ ScheduledWorkflow
109
113
  ]
110
114
 
111
115
  export const SSOTables = [