rez_core 2.2.225 → 2.2.226
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/app.module.js +2 -0
- package/dist/app.module.js.map +1 -1
- package/dist/constant/global.constant.d.ts +1 -0
- package/dist/constant/global.constant.js +2 -1
- package/dist/constant/global.constant.js.map +1 -1
- package/dist/module/communication/controller/webhook.controller.d.ts +1 -0
- package/dist/module/communication/controller/webhook.controller.js +15 -0
- package/dist/module/communication/controller/webhook.controller.js.map +1 -1
- package/dist/module/filter/entity/saved-filter-master.entity.d.ts +1 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js +4 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +5 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +31 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +10 -0
- package/dist/module/{rule_engine/entity/rule-engine.entity.js → workflow-automation/entity/workflow-automation.entity.js} +17 -21
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +6 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js +27 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -0
- package/dist/module/workflow-automation/workflow-automation.module.d.ts +2 -0
- package/dist/module/workflow-automation/workflow-automation.module.js +32 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/app.module.ts +2 -0
- package/src/constant/global.constant.ts +1 -0
- package/src/module/communication/controller/webhook.controller.ts +10 -4
- package/src/module/filter/entity/saved-filter-master.entity.ts +3 -0
- package/src/module/workflow-automation/controller/workflow-automation.controller.ts +21 -0
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +29 -0
- package/src/module/workflow-automation/service/workflow-automation.service.ts +10 -0
- package/src/module/workflow-automation/workflow-automation.module.ts +19 -0
- package/dist/module/rule_engine/entity/rule-engine.entity.d.ts +0 -11
- package/dist/module/rule_engine/entity/rule-engine.entity.js.map +0 -1
- package/src/module/rule_engine/entity/rule-engine.entity.ts +0 -32
package/package.json
CHANGED
package/src/app.module.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { DashboardModule } from './module/dashboard/dashboard.module';
|
|
|
19
19
|
import { CommunicationModule } from './module/communication/communication.module';
|
|
20
20
|
import { ScheduleModule } from '@nestjs/schedule';
|
|
21
21
|
import { AuthModule } from './module/auth/auth.module';
|
|
22
|
+
import { WorkflowAutomationModule } from './module/workflow-automation/workflow-automation.module';
|
|
22
23
|
|
|
23
24
|
@Module({
|
|
24
25
|
imports: [
|
|
@@ -41,6 +42,7 @@ import { AuthModule } from './module/auth/auth.module';
|
|
|
41
42
|
DashboardModule,
|
|
42
43
|
CommunicationModule,
|
|
43
44
|
AuthModule,
|
|
45
|
+
WorkflowAutomationModule,
|
|
44
46
|
ScheduleModule.forRoot(),
|
|
45
47
|
],
|
|
46
48
|
})
|
|
@@ -47,6 +47,7 @@ export const ACTION = 'WFAC';
|
|
|
47
47
|
export const STAGE = 'WFS';
|
|
48
48
|
export const STAGE_GROUP = 'WFSG';
|
|
49
49
|
export const ACTION_CATEGORY = 'WFAC';
|
|
50
|
+
export const WORKFLOW_AUTOMATION = 'WFAM';
|
|
50
51
|
export const STAGE_ACTION_MAPPING = 'WFSA';
|
|
51
52
|
export const COMM_TEMPLATE = 'TEM';
|
|
52
53
|
export const ACTION_TEMPLATE_MAPPING = 'WFAT';
|
|
@@ -4,14 +4,20 @@ import { Response } from 'express';
|
|
|
4
4
|
@Controller('webhook')
|
|
5
5
|
export class WebhookController {
|
|
6
6
|
@Post('tubelight')
|
|
7
|
-
handleTubelightWebhook(
|
|
8
|
-
@Req() req: any,
|
|
9
|
-
@Res() res: Response,
|
|
10
|
-
) {
|
|
7
|
+
handleTubelightWebhook(@Req() req: any, @Res() res: Response) {
|
|
11
8
|
const apiKey = req.headers['x-api-key'];
|
|
12
9
|
console.log('API Key:', apiKey);
|
|
13
10
|
console.log('handleTubelightWebhook: START');
|
|
14
11
|
console.log(req);
|
|
15
12
|
res.status(200).send('Webhook received');
|
|
16
13
|
}
|
|
14
|
+
|
|
15
|
+
@Post('ozonetel')
|
|
16
|
+
handleOzonetelWebhook(@Req() req: any, @Res() res: Response) {
|
|
17
|
+
const apiKey = req.headers['x-api-key'];
|
|
18
|
+
console.log('API Key:', apiKey);
|
|
19
|
+
console.log('handleOzonetelWebhook: START');
|
|
20
|
+
console.log(req);
|
|
21
|
+
res.status(200).send('Webhook received');
|
|
22
|
+
}
|
|
17
23
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Body,
|
|
3
|
+
Controller,
|
|
4
|
+
HttpCode,
|
|
5
|
+
HttpStatus,
|
|
6
|
+
Inject,
|
|
7
|
+
Post,
|
|
8
|
+
Req,
|
|
9
|
+
UseGuards,
|
|
10
|
+
} from '@nestjs/common';
|
|
11
|
+
import { JwtAuthGuard } from 'src/module/auth/guards/jwt.guard';
|
|
12
|
+
import { WorkflowAutomationService } from '../service/workflow-automation.service';
|
|
13
|
+
|
|
14
|
+
@Controller('/workflow-automation')
|
|
15
|
+
@UseGuards(JwtAuthGuard)
|
|
16
|
+
export class WorkflowAutomationController {
|
|
17
|
+
constructor(
|
|
18
|
+
@Inject('WorkflowAutomationService')
|
|
19
|
+
private readonly workflowAutomationService: WorkflowAutomationService,
|
|
20
|
+
) {}
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { WORKFLOW_AUTOMATION } from 'src/constant/global.constant';
|
|
2
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
|
+
import { Column, Entity } from 'typeorm';
|
|
4
|
+
|
|
5
|
+
@Entity({ name: 'cr_workflow_automation' })
|
|
6
|
+
export class WorkflowAutomation extends BaseEntity {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.entity_type = WORKFLOW_AUTOMATION;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', nullable: true })
|
|
13
|
+
description: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', nullable: true })
|
|
16
|
+
mapped_entity_type: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', nullable: true })
|
|
19
|
+
trigger_event: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', nullable: true })
|
|
22
|
+
condition_filter_code: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'varchar', nullable: true })
|
|
25
|
+
criteria_filter_code: string;
|
|
26
|
+
|
|
27
|
+
@Column({ nullable: true })
|
|
28
|
+
is_active: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
3
|
+
import { DataSource } from 'typeorm';
|
|
4
|
+
|
|
5
|
+
@Injectable()
|
|
6
|
+
export class WorkflowAutomationService extends EntityServiceImpl {
|
|
7
|
+
constructor(private readonly dataSource: DataSource) {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Module } from '@nestjs/common';
|
|
2
|
+
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
3
|
+
import { WorkflowAutomation } from './entity/workflow-automation.entity';
|
|
4
|
+
import { WorkflowAutomationController } from './controller/workflow-automation.controller';
|
|
5
|
+
import { WorkflowAutomationService } from './service/workflow-automation.service';
|
|
6
|
+
import { EntityModule } from '../meta/entity.module';
|
|
7
|
+
|
|
8
|
+
@Module({
|
|
9
|
+
imports: [TypeOrmModule.forFeature([WorkflowAutomation]), EntityModule],
|
|
10
|
+
providers: [
|
|
11
|
+
{
|
|
12
|
+
provide: 'WorkflowAutomationService',
|
|
13
|
+
useClass: WorkflowAutomationService,
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
exports: [],
|
|
17
|
+
controllers: [WorkflowAutomationController],
|
|
18
|
+
})
|
|
19
|
+
export class WorkflowAutomationModule {}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
|
-
export declare class ActionCategory extends BaseEntity {
|
|
3
|
-
constructor();
|
|
4
|
-
logo: string;
|
|
5
|
-
modalName: string;
|
|
6
|
-
mapped_entity_type: string;
|
|
7
|
-
reason_code: string;
|
|
8
|
-
is_template: boolean;
|
|
9
|
-
is_form: boolean;
|
|
10
|
-
is_assignment: boolean;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rule-engine.entity.js","sourceRoot":"","sources":["../../../../src/module/rule_engine/entity/rule-engine.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA+D;AAC/D,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,+BAAU;IAC5C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,iCAAe,CAAC;IACrC,CAAC;CAsBF,CAAA;AA1BY,wCAAc;AAOzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC/B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC1B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACjB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACvB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC3B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACrB;yBAzBZ,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;GAChB,cAAc,CA0B1B"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ACTION_CATEGORY } from 'src/constant/global.constant';
|
|
2
|
-
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
|
-
import { Column, Entity } from 'typeorm';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'cr_rule_' })
|
|
6
|
-
export class ActionCategory extends BaseEntity {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.entity_type = ACTION_CATEGORY;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', nullable: true })
|
|
13
|
-
logo: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'varchar', nullable: true })
|
|
16
|
-
modalName: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'varchar', nullable: true })
|
|
19
|
-
mapped_entity_type: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'varchar', nullable: true })
|
|
22
|
-
reason_code: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'boolean', nullable: true })
|
|
25
|
-
is_template: boolean;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'boolean', nullable: true })
|
|
28
|
-
is_form: boolean;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'boolean', nullable: true })
|
|
31
|
-
is_assignment: boolean;
|
|
32
|
-
}
|