rez_core 4.0.171 → 4.0.172
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/core.module.d.ts +1 -1
- package/dist/core.module.js +7 -7
- package/dist/core.module.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/core.module.ts +12 -7
package/package.json
CHANGED
package/src/core.module.ts
CHANGED
|
@@ -20,7 +20,11 @@ import { MapperModule } from './module/mapper/mapper.module';
|
|
|
20
20
|
@Global()
|
|
21
21
|
@Module({})
|
|
22
22
|
export class CoreModule {
|
|
23
|
-
static forRootAsync(
|
|
23
|
+
static forRootAsync(
|
|
24
|
+
dbModule: DynamicModule,
|
|
25
|
+
isSso: boolean,
|
|
26
|
+
isWorkflow?: boolean,
|
|
27
|
+
): DynamicModule {
|
|
24
28
|
if (!dbModule) {
|
|
25
29
|
throw new Error('Database module must be provided.');
|
|
26
30
|
}
|
|
@@ -36,9 +40,8 @@ export class CoreModule {
|
|
|
36
40
|
AuthModule,
|
|
37
41
|
LeadModule,
|
|
38
42
|
LayoutPreferenceModule,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
MapperModule
|
|
43
|
+
|
|
44
|
+
MapperModule,
|
|
42
45
|
];
|
|
43
46
|
|
|
44
47
|
const exportsArray = [
|
|
@@ -52,9 +55,7 @@ export class CoreModule {
|
|
|
52
55
|
FilterModule,
|
|
53
56
|
LeadModule,
|
|
54
57
|
LayoutPreferenceModule,
|
|
55
|
-
|
|
56
|
-
WorkflowAutomationModule,
|
|
57
|
-
MapperModule
|
|
58
|
+
MapperModule,
|
|
58
59
|
];
|
|
59
60
|
|
|
60
61
|
if (isSso) {
|
|
@@ -71,6 +72,10 @@ export class CoreModule {
|
|
|
71
72
|
EnterpriseModule,
|
|
72
73
|
);
|
|
73
74
|
}
|
|
75
|
+
if (isWorkflow) {
|
|
76
|
+
importsArray.push(WorkflowModule, WorkflowAutomationModule);
|
|
77
|
+
exportsArray.push(WorkflowModule, WorkflowAutomationModule);
|
|
78
|
+
}
|
|
74
79
|
|
|
75
80
|
return {
|
|
76
81
|
module: CoreModule,
|