rez_core 2.2.232 → 2.2.235
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/module/enterprise/enterprise.module.js +1 -1
- package/dist/module/user/service/login.service.js +1 -0
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +2 -2
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +1 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +4 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +3 -2
- package/dist/module/workflow-automation/service/workflow-automation.service.js +4 -2
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +2 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/enterprise/enterprise.module.ts +1 -1
- package/src/module/user/service/login.service.ts +1 -0
- package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +2 -2
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +3 -0
- package/src/module/workflow-automation/service/workflow-automation.service.ts +6 -3
- package/src/module/workflow-automation/workflow-automation.module.ts +3 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ import { SchoolRepository } from './repository/school.repository';
|
|
|
16
16
|
TypeOrmModule.forFeature([OrganizationData, OrganizationAppMapping]),
|
|
17
17
|
forwardRef(() => UserModule),
|
|
18
18
|
UtilsModule,
|
|
19
|
-
EntityModule
|
|
19
|
+
EntityModule,
|
|
20
20
|
],
|
|
21
21
|
controllers: [OrganizationController],
|
|
22
22
|
providers: [
|
|
@@ -15,8 +15,8 @@ export class WorkflowAutomationActionEntity extends BaseEntity {
|
|
|
15
15
|
@Column({ type: 'int', nullable: true })
|
|
16
16
|
action_category_id: number;
|
|
17
17
|
|
|
18
|
-
@Column({ type: '
|
|
19
|
-
payload:
|
|
18
|
+
@Column({ type: 'json', nullable: true })
|
|
19
|
+
payload: JSON;
|
|
20
20
|
|
|
21
21
|
@Column({ type: 'varchar', nullable: true })
|
|
22
22
|
action_decorator: string;
|
|
@@ -3,17 +3,20 @@ import { InjectRepository } from '@nestjs/typeorm';
|
|
|
3
3
|
import { Repository } from 'typeorm';
|
|
4
4
|
import { WorkflowAutomation } from '../entity/workflow-automation.entity';
|
|
5
5
|
import { WorkflowAutomationActionEntity } from '../entity/workflow-automation-action.entity';
|
|
6
|
+
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
6
7
|
|
|
7
8
|
@Injectable()
|
|
8
|
-
export class WorkflowAutomationService {
|
|
9
|
+
export class WorkflowAutomationService extends EntityServiceImpl {
|
|
9
10
|
constructor(
|
|
10
11
|
@InjectRepository(WorkflowAutomation)
|
|
11
12
|
private readonly wfRepo: Repository<WorkflowAutomation>,
|
|
12
13
|
@InjectRepository(WorkflowAutomationActionEntity)
|
|
13
14
|
private readonly actionRepo: Repository<WorkflowAutomationActionEntity>,
|
|
14
|
-
) {
|
|
15
|
+
) {
|
|
16
|
+
super();
|
|
17
|
+
}
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
asyncreateRule(
|
|
17
20
|
data: Partial<WorkflowAutomation>,
|
|
18
21
|
): Promise<WorkflowAutomation> {
|
|
19
22
|
const rule = this.wfRepo.create(data);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Module } from '@nestjs/common';
|
|
1
|
+
import { forwardRef, Module } from '@nestjs/common';
|
|
2
2
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
3
3
|
import { DiscoveryModule } from '@nestjs/core';
|
|
4
4
|
import { WorkflowAutomation } from './entity/workflow-automation.entity';
|
|
@@ -7,6 +7,7 @@ import { WorkflowAutomationEngineService } from './service/workflow-automation-e
|
|
|
7
7
|
import { FilterModule } from '../filter/filter.module';
|
|
8
8
|
import { WorkflowAutomationService } from './service/workflow-automation.service';
|
|
9
9
|
import { WorkflowAutomationActionEntity } from './entity/workflow-automation-action.entity';
|
|
10
|
+
import { EntityModule } from '../meta/entity.module';
|
|
10
11
|
import { ActionRegistryService } from './service/action-registery.service';
|
|
11
12
|
|
|
12
13
|
@Module({
|
|
@@ -16,6 +17,7 @@ import { ActionRegistryService } from './service/action-registery.service';
|
|
|
16
17
|
WorkflowAutomationActionEntity,
|
|
17
18
|
]),
|
|
18
19
|
FilterModule,
|
|
20
|
+
forwardRef(() => EntityModule),
|
|
19
21
|
DiscoveryModule, // 👈 enables provider scanning
|
|
20
22
|
],
|
|
21
23
|
providers: [
|