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.
Files changed (36) hide show
  1. package/dist/app.module.js +2 -0
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/constant/global.constant.d.ts +1 -0
  4. package/dist/constant/global.constant.js +2 -1
  5. package/dist/constant/global.constant.js.map +1 -1
  6. package/dist/module/communication/controller/webhook.controller.d.ts +1 -0
  7. package/dist/module/communication/controller/webhook.controller.js +15 -0
  8. package/dist/module/communication/controller/webhook.controller.js.map +1 -1
  9. package/dist/module/filter/entity/saved-filter-master.entity.d.ts +1 -0
  10. package/dist/module/filter/entity/saved-filter-master.entity.js +4 -0
  11. package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
  12. package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +5 -0
  13. package/dist/module/workflow-automation/controller/workflow-automation.controller.js +31 -0
  14. package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -0
  15. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +10 -0
  16. package/dist/module/{rule_engine/entity/rule-engine.entity.js → workflow-automation/entity/workflow-automation.entity.js} +17 -21
  17. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -0
  18. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +6 -0
  19. package/dist/module/workflow-automation/service/workflow-automation.service.js +27 -0
  20. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -0
  21. package/dist/module/workflow-automation/workflow-automation.module.d.ts +2 -0
  22. package/dist/module/workflow-automation/workflow-automation.module.js +32 -0
  23. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/src/app.module.ts +2 -0
  27. package/src/constant/global.constant.ts +1 -0
  28. package/src/module/communication/controller/webhook.controller.ts +10 -4
  29. package/src/module/filter/entity/saved-filter-master.entity.ts +3 -0
  30. package/src/module/workflow-automation/controller/workflow-automation.controller.ts +21 -0
  31. package/src/module/workflow-automation/entity/workflow-automation.entity.ts +29 -0
  32. package/src/module/workflow-automation/service/workflow-automation.service.ts +10 -0
  33. package/src/module/workflow-automation/workflow-automation.module.ts +19 -0
  34. package/dist/module/rule_engine/entity/rule-engine.entity.d.ts +0 -11
  35. package/dist/module/rule_engine/entity/rule-engine.entity.js.map +0 -1
  36. package/src/module/rule_engine/entity/rule-engine.entity.ts +0 -32
@@ -28,6 +28,7 @@ const dashboard_module_1 = require("./module/dashboard/dashboard.module");
28
28
  const communication_module_1 = require("./module/communication/communication.module");
29
29
  const schedule_1 = require("@nestjs/schedule");
30
30
  const auth_module_1 = require("./module/auth/auth.module");
31
+ const workflow_automation_module_1 = require("./module/workflow-automation/workflow-automation.module");
31
32
  let AppModule = class AppModule {
32
33
  };
33
34
  exports.AppModule = AppModule;
@@ -53,6 +54,7 @@ exports.AppModule = AppModule = __decorate([
53
54
  dashboard_module_1.DashboardModule,
54
55
  communication_module_1.CommunicationModule,
55
56
  auth_module_1.AuthModule,
57
+ workflow_automation_module_1.WorkflowAutomationModule,
56
58
  schedule_1.ScheduleModule.forRoot(),
57
59
  ],
58
60
  })
@@ -1 +1 @@
1
- {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAwD;AACxD,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAA6D;AAC7D,mFAA+E;AAC/E,qEAAuD;AACvD,iEAA6D;AAC7D,6EAAyE;AACzE,uFAAkF;AAClF,iEAA6D;AAC7D,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wDAA2D;AAC3D,0EAAsE;AACtE,sFAAkF;AAClF,+CAAkD;AAClD,2DAAuD;AA0BhD,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAxBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,4BAAY;YACZ,8BAAc;YACd,oCAAgB;YAChB,0BAAW;YACX,wBAAU;YACV,4BAAY;YACZ,wCAAkB;YAClB,2BAAU;YACV,4BAAY;YACZ,oCAAgB;YAChB,qCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,6BAAgB;YAChB,kCAAe;YACf,0CAAmB;YACnB,wBAAU;YACV,yBAAc,CAAC,OAAO,EAAE;SACzB;KACF,CAAC;GACW,SAAS,CAAG"}
1
+ {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAwD;AACxD,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAA6D;AAC7D,mFAA+E;AAC/E,qEAAuD;AACvD,iEAA6D;AAC7D,6EAAyE;AACzE,uFAAkF;AAClF,iEAA6D;AAC7D,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wDAA2D;AAC3D,0EAAsE;AACtE,sFAAkF;AAClF,+CAAkD;AAClD,2DAAuD;AACvD,wGAAmG;AA2B5F,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAzBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,4BAAY;YACZ,8BAAc;YACd,oCAAgB;YAChB,0BAAW;YACX,wBAAU;YACV,4BAAY;YACZ,wCAAkB;YAClB,2BAAU;YACV,4BAAY;YACZ,oCAAgB;YAChB,qCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,6BAAgB;YAChB,kCAAe;YACf,0CAAmB;YACnB,wBAAU;YACV,qDAAwB;YACxB,yBAAc,CAAC,OAAO,EAAE;SACzB;KACF,CAAC;GACW,SAAS,CAAG"}
@@ -33,6 +33,7 @@ export declare const ACTION = "WFAC";
33
33
  export declare const STAGE = "WFS";
34
34
  export declare const STAGE_GROUP = "WFSG";
35
35
  export declare const ACTION_CATEGORY = "WFAC";
36
+ export declare const WORKFLOW_AUTOMATION = "WFAM";
36
37
  export declare const STAGE_ACTION_MAPPING = "WFSA";
37
38
  export declare const COMM_TEMPLATE = "TEM";
38
39
  export declare const ACTION_TEMPLATE_MAPPING = "WFAT";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FORM_STATUS_ACCEPTED = exports.FORM_STATUS_RESUBMIT_REQUESTED = exports.FORM_STATUS_SUBMITTED = exports.FORM_STATUS_SAVED = exports.FORM_STATUS_SENT = exports.FORM_STATUS_TO_BE_SENT = exports.ACTION_RESOURCES_MAPPING = exports.ENTITY_MODIFICATION = exports.STAGE_MOVEMENT_DATA = exports.WORKFLOW_DATA = exports.ACTION_TEMPLATE_MAPPING = exports.COMM_TEMPLATE = exports.STAGE_ACTION_MAPPING = exports.ACTION_CATEGORY = exports.STAGE_GROUP = exports.STAGE = exports.ACTION = exports.WORKFLOW = exports.DISPLAY_REPORT = exports.DISPLAY_EXPORT = exports.DISPLAY_LIST = exports.ENTITYSTATUS_PUBLISHED = exports.ENTITYSTATUS_TO_BE_PUBLISHED = exports.INVITATION_STATUS_ACCEPTED = exports.INVITATION_STATUS_SENT = exports.STATUS_PENDING = exports.STATUS_INACTIVE = exports.STATUS_ACTIVE = exports.secretKey = exports.STORAGETYPE_COLUMN = exports.STORAGETYPE_SINGLEJSON = exports.ENTITYTYPE_ENTITY_RELATION_DATA = exports.ENTITYTYPE_ENTITY_RELATION = exports.ENTITYTYPE_SAVEDFILTERDETAIL = exports.ENTITYTYPE_SAVEDFILTERMASTER = exports.ENTITYTYPE_USRROLMAP = exports.ENTITYTYPE_FIELDMASTER = exports.ENTITYTYPE_SECTIONMASTER = exports.ENTITYTYPE_LISTMASTERITEMS = exports.ENTITYTYPE_LISTMASTER = exports.ENTITYTYPE_MEDIA = exports.ENTITYTYPE_VIEWMASTER = exports.ENTITYTYPE_PREFERENCEMASTER = exports.ENTITYTYPE_ENTITYTABLECOLUMN = exports.ENTITYTYPE_ENTITYTABLE = exports.ENTITYTYPE_ROLE = exports.ENTITYTYPE_ENTITYMASTER = exports.ENTITYTYPE_USER = void 0;
3
+ exports.FORM_STATUS_ACCEPTED = exports.FORM_STATUS_RESUBMIT_REQUESTED = exports.FORM_STATUS_SUBMITTED = exports.FORM_STATUS_SAVED = exports.FORM_STATUS_SENT = exports.FORM_STATUS_TO_BE_SENT = exports.ACTION_RESOURCES_MAPPING = exports.ENTITY_MODIFICATION = exports.STAGE_MOVEMENT_DATA = exports.WORKFLOW_DATA = exports.ACTION_TEMPLATE_MAPPING = exports.COMM_TEMPLATE = exports.STAGE_ACTION_MAPPING = exports.WORKFLOW_AUTOMATION = exports.ACTION_CATEGORY = exports.STAGE_GROUP = exports.STAGE = exports.ACTION = exports.WORKFLOW = exports.DISPLAY_REPORT = exports.DISPLAY_EXPORT = exports.DISPLAY_LIST = exports.ENTITYSTATUS_PUBLISHED = exports.ENTITYSTATUS_TO_BE_PUBLISHED = exports.INVITATION_STATUS_ACCEPTED = exports.INVITATION_STATUS_SENT = exports.STATUS_PENDING = exports.STATUS_INACTIVE = exports.STATUS_ACTIVE = exports.secretKey = exports.STORAGETYPE_COLUMN = exports.STORAGETYPE_SINGLEJSON = exports.ENTITYTYPE_ENTITY_RELATION_DATA = exports.ENTITYTYPE_ENTITY_RELATION = exports.ENTITYTYPE_SAVEDFILTERDETAIL = exports.ENTITYTYPE_SAVEDFILTERMASTER = exports.ENTITYTYPE_USRROLMAP = exports.ENTITYTYPE_FIELDMASTER = exports.ENTITYTYPE_SECTIONMASTER = exports.ENTITYTYPE_LISTMASTERITEMS = exports.ENTITYTYPE_LISTMASTER = exports.ENTITYTYPE_MEDIA = exports.ENTITYTYPE_VIEWMASTER = exports.ENTITYTYPE_PREFERENCEMASTER = exports.ENTITYTYPE_ENTITYTABLECOLUMN = exports.ENTITYTYPE_ENTITYTABLE = exports.ENTITYTYPE_ROLE = exports.ENTITYTYPE_ENTITYMASTER = exports.ENTITYTYPE_USER = void 0;
4
4
  exports.ENTITYTYPE_USER = 'USR';
5
5
  exports.ENTITYTYPE_ENTITYMASTER = 'EMS';
6
6
  exports.ENTITYTYPE_ROLE = 'ROL';
@@ -36,6 +36,7 @@ exports.ACTION = 'WFAC';
36
36
  exports.STAGE = 'WFS';
37
37
  exports.STAGE_GROUP = 'WFSG';
38
38
  exports.ACTION_CATEGORY = 'WFAC';
39
+ exports.WORKFLOW_AUTOMATION = 'WFAM';
39
40
  exports.STAGE_ACTION_MAPPING = 'WFSA';
40
41
  exports.COMM_TEMPLATE = 'TEM';
41
42
  exports.ACTION_TEMPLATE_MAPPING = 'WFAT';
@@ -1 +1 @@
1
- {"version":3,"file":"global.constant.js","sourceRoot":"","sources":["../../src/constant/global.constant.ts"],"names":[],"mappings":";;;AACa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,uBAAuB,GAAG,KAAK,CAAC;AAChC,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,2BAA2B,GAAG,KAAK,CAAC;AACpC,QAAA,qBAAqB,GAAG,KAAK,CAAC;AAC9B,QAAA,gBAAgB,GAAG,KAAK,CAAC;AACzB,QAAA,qBAAqB,GAAG,MAAM,CAAC;AAC/B,QAAA,0BAA0B,GAAG,MAAM,CAAC;AACpC,QAAA,wBAAwB,GAAG,KAAK,CAAC;AACjC,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAC7B,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,0BAA0B,GAAG,KAAK,C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QAAA,cAAc,GAAG,QAAQ,CAAC;AAC1B,QAAA,cAAc,GAAG,QAAQ,CAAC;AAG1B,QAAA,QAAQ,GAAG,MAAM,CAAC;AAClB,QAAA,MAAM,GAAG,MAAM,CAAC;AAChB,QAAA,KAAK,GAAG,KAAK,CAAC;AACd,QAAA,WAAW,GAAG,MAAM,CAAC;AACrB,QAAA,eAAe,GAAG,MAAM,CAAC;AACzB,QAAA,mBAAmB,GAAG,MAAM,CAAC;AAC7B,QAAA,oBAAoB,GAAG,MAAM,CAAC;AAC9B,QAAA,aAAa,GAAG,KAAK,CAAC;AACtB,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,mBAAmB,GAAG,MAAM,CAAC;AAE7B,QAAA,mBAAmB,GAAG,MAAM,CAAC;AAC7B,QAAA,wBAAwB,GAAG,MAAM,CAAC;AAGlC,QAAA,sBAAsB,GAAG,YAAY,CAAC;AACtC,QAAA,gBAAgB,GAAG,MAAM,CAAC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC;AAC5B,QAAA,qBAAqB,GAAG,WAAW,CAAC;AACpC,QAAA,8BAA8B,GAAG,oBAAoB,CAAC;AACtD,QAAA,oBAAoB,GAAG,UAAU,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Response } from 'express';
2
2
  export declare class WebhookController {
3
3
  handleTubelightWebhook(req: any, res: Response): void;
4
+ handleOzonetelWebhook(req: any, res: Response): void;
4
5
  }
@@ -22,6 +22,13 @@ let WebhookController = class WebhookController {
22
22
  console.log(req);
23
23
  res.status(200).send('Webhook received');
24
24
  }
25
+ handleOzonetelWebhook(req, res) {
26
+ const apiKey = req.headers['x-api-key'];
27
+ console.log('API Key:', apiKey);
28
+ console.log('handleOzonetelWebhook: START');
29
+ console.log(req);
30
+ res.status(200).send('Webhook received');
31
+ }
25
32
  };
26
33
  exports.WebhookController = WebhookController;
27
34
  __decorate([
@@ -32,6 +39,14 @@ __decorate([
32
39
  __metadata("design:paramtypes", [Object, Object]),
33
40
  __metadata("design:returntype", void 0)
34
41
  ], WebhookController.prototype, "handleTubelightWebhook", null);
42
+ __decorate([
43
+ (0, common_1.Post)('ozonetel'),
44
+ __param(0, (0, common_1.Req)()),
45
+ __param(1, (0, common_1.Res)()),
46
+ __metadata("design:type", Function),
47
+ __metadata("design:paramtypes", [Object, Object]),
48
+ __metadata("design:returntype", void 0)
49
+ ], WebhookController.prototype, "handleOzonetelWebhook", null);
35
50
  exports.WebhookController = WebhookController = __decorate([
36
51
  (0, common_1.Controller)('webhook')
37
52
  ], WebhookController);
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.controller.js","sourceRoot":"","sources":["../../../../src/module/communication/controller/webhook.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4D;AAIrD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,sBAAsB,CACb,GAAQ,EACR,GAAa;QAEpB,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAZY,8CAAiB;AAE5B;IADC,IAAA,aAAI,EAAC,WAAW,CAAC;IAEf,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAOP;4BAXU,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,SAAS,CAAC;GACT,iBAAiB,CAY7B"}
1
+ {"version":3,"file":"webhook.controller.js","sourceRoot":"","sources":["../../../../src/module/communication/controller/webhook.controller.ts"],"names":[],"mappings":";;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;
6
6
  is_default: boolean;
7
+ filter_scope: 'FILTER' | 'RULE';
7
8
  }
@@ -32,6 +32,10 @@ __decorate([
32
32
  (0, typeorm_1.Column)({ type: 'boolean', default: false }),
33
33
  __metadata("design:type", Boolean)
34
34
  ], SavedFilterMaster.prototype, "is_default", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'varchar', length: 20, default: 'FILTER' }),
37
+ __metadata("design:type", String)
38
+ ], SavedFilterMaster.prototype, "filter_scope", void 0);
35
39
  exports.SavedFilterMaster = SavedFilterMaster = __decorate([
36
40
  (0, typeorm_1.Entity)({ name: 'cr_saved_filter_master' }),
37
41
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":"saved-filter-master.entity.js","sourceRoot":"","sources":["../../../../src/module/filter/entity/saved-filter-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA4E;AAC5E,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAAU;IAC/C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,8CAA4B,CAAC;IAClD,CAAC;CAUF,CAAA;AAdY,8CAAiB;AAO5B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACxB;4BAbT,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;;GAC9B,iBAAiB,CAc7B"}
1
+ {"version":3,"file":"saved-filter-master.entity.js","sourceRoot":"","sources":["../../../../src/module/filter/entity/saved-filter-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA4E;AAC5E,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAAU;IAC/C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,8CAA4B,CAAC;IAClD,CAAC;CAaF,CAAA;AAjBY,8CAAiB;AAO5B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;uDAC3B;4BAhBrB,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;;GAC9B,iBAAiB,CAiB7B"}
@@ -0,0 +1,5 @@
1
+ import { WorkflowAutomationService } from '../service/workflow-automation.service';
2
+ export declare class WorkflowAutomationController {
3
+ private readonly workflowAutomationService;
4
+ constructor(workflowAutomationService: WorkflowAutomationService);
5
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.WorkflowAutomationController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const jwt_guard_1 = require("../../auth/guards/jwt.guard");
18
+ const workflow_automation_service_1 = require("../service/workflow-automation.service");
19
+ let WorkflowAutomationController = class WorkflowAutomationController {
20
+ constructor(workflowAutomationService) {
21
+ this.workflowAutomationService = workflowAutomationService;
22
+ }
23
+ };
24
+ exports.WorkflowAutomationController = WorkflowAutomationController;
25
+ exports.WorkflowAutomationController = WorkflowAutomationController = __decorate([
26
+ (0, common_1.Controller)('/workflow-automation'),
27
+ (0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
28
+ __param(0, (0, common_1.Inject)('WorkflowAutomationService')),
29
+ __metadata("design:paramtypes", [workflow_automation_service_1.WorkflowAutomationService])
30
+ ], WorkflowAutomationController);
31
+ //# sourceMappingURL=workflow-automation.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/controller/workflow-automation.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,wFAAmF;AAI5E,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAEmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;CACL,CAAA;AALY,oEAA4B;uCAA5B,4BAA4B;IAFxC,IAAA,mBAAU,EAAC,sBAAsB,CAAC;IAClC,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,2BAA2B,CAAC,CAAA;qCACQ,uDAAyB;GAH5D,4BAA4B,CAKxC"}
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
+ export declare class WorkflowAutomation extends BaseEntity {
3
+ constructor();
4
+ description: string;
5
+ mapped_entity_type: string;
6
+ trigger_event: string;
7
+ condition_filter_code: string;
8
+ criteria_filter_code: string;
9
+ is_active: boolean;
10
+ }
@@ -9,47 +9,43 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ActionCategory = void 0;
12
+ exports.WorkflowAutomation = void 0;
13
13
  const global_constant_1 = require("../../../constant/global.constant");
14
14
  const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
15
15
  const typeorm_1 = require("typeorm");
16
- let ActionCategory = class ActionCategory extends base_entity_entity_1.BaseEntity {
16
+ let WorkflowAutomation = class WorkflowAutomation extends base_entity_entity_1.BaseEntity {
17
17
  constructor() {
18
18
  super();
19
- this.entity_type = global_constant_1.ACTION_CATEGORY;
19
+ this.entity_type = global_constant_1.WORKFLOW_AUTOMATION;
20
20
  }
21
21
  };
22
- exports.ActionCategory = ActionCategory;
22
+ exports.WorkflowAutomation = WorkflowAutomation;
23
23
  __decorate([
24
24
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
25
25
  __metadata("design:type", String)
26
- ], ActionCategory.prototype, "logo", void 0);
26
+ ], WorkflowAutomation.prototype, "description", void 0);
27
27
  __decorate([
28
28
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
29
29
  __metadata("design:type", String)
30
- ], ActionCategory.prototype, "modalName", void 0);
30
+ ], WorkflowAutomation.prototype, "mapped_entity_type", void 0);
31
31
  __decorate([
32
32
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
33
  __metadata("design:type", String)
34
- ], ActionCategory.prototype, "mapped_entity_type", void 0);
34
+ ], WorkflowAutomation.prototype, "trigger_event", void 0);
35
35
  __decorate([
36
36
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
37
  __metadata("design:type", String)
38
- ], ActionCategory.prototype, "reason_code", void 0);
38
+ ], WorkflowAutomation.prototype, "condition_filter_code", void 0);
39
39
  __decorate([
40
- (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
41
- __metadata("design:type", Boolean)
42
- ], ActionCategory.prototype, "is_template", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
45
- __metadata("design:type", Boolean)
46
- ], ActionCategory.prototype, "is_form", void 0);
40
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], WorkflowAutomation.prototype, "criteria_filter_code", void 0);
47
43
  __decorate([
48
- (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
44
+ (0, typeorm_1.Column)({ nullable: true }),
49
45
  __metadata("design:type", Boolean)
50
- ], ActionCategory.prototype, "is_assignment", void 0);
51
- exports.ActionCategory = ActionCategory = __decorate([
52
- (0, typeorm_1.Entity)({ name: 'cr_rule_' }),
46
+ ], WorkflowAutomation.prototype, "is_active", void 0);
47
+ exports.WorkflowAutomation = WorkflowAutomation = __decorate([
48
+ (0, typeorm_1.Entity)({ name: 'cr_workflow_automation' }),
53
49
  __metadata("design:paramtypes", [])
54
- ], ActionCategory);
55
- //# sourceMappingURL=rule-engine.entity.js.map
50
+ ], WorkflowAutomation);
51
+ //# sourceMappingURL=workflow-automation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/entity/workflow-automation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+BAAU;IAChD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,qCAAmB,CAAC;IACzC,CAAC;CAmBF,CAAA;AAvBY,gDAAkB;AAO7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACjB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACd;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACf;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;6BAtBR,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;;GAC9B,kBAAkB,CAuB9B"}
@@ -0,0 +1,6 @@
1
+ import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
2
+ import { DataSource } from 'typeorm';
3
+ export declare class WorkflowAutomationService extends EntityServiceImpl {
4
+ private readonly dataSource;
5
+ constructor(dataSource: DataSource);
6
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.WorkflowAutomationService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
15
+ const typeorm_1 = require("typeorm");
16
+ let WorkflowAutomationService = class WorkflowAutomationService extends entity_service_impl_service_1.EntityServiceImpl {
17
+ constructor(dataSource) {
18
+ super();
19
+ this.dataSource = dataSource;
20
+ }
21
+ };
22
+ exports.WorkflowAutomationService = WorkflowAutomationService;
23
+ exports.WorkflowAutomationService = WorkflowAutomationService = __decorate([
24
+ (0, common_1.Injectable)(),
25
+ __metadata("design:paramtypes", [typeorm_1.DataSource])
26
+ ], WorkflowAutomationService);
27
+ //# sourceMappingURL=workflow-automation.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.service.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/service/workflow-automation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AACxF,qCAAqC;AAG9B,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,+CAAiB;IAC9D,YAA6B,UAAsB;QACjD,KAAK,EAAE,CAAC;QADmB,eAAU,GAAV,UAAU,CAAY;IAEnD,CAAC;CACF,CAAA;AAJY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;qCAE8B,oBAAU;GADxC,yBAAyB,CAIrC"}
@@ -0,0 +1,2 @@
1
+ export declare class WorkflowAutomationModule {
2
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.WorkflowAutomationModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const typeorm_1 = require("@nestjs/typeorm");
12
+ const workflow_automation_entity_1 = require("./entity/workflow-automation.entity");
13
+ const workflow_automation_controller_1 = require("./controller/workflow-automation.controller");
14
+ const workflow_automation_service_1 = require("./service/workflow-automation.service");
15
+ const entity_module_1 = require("../meta/entity.module");
16
+ let WorkflowAutomationModule = class WorkflowAutomationModule {
17
+ };
18
+ exports.WorkflowAutomationModule = WorkflowAutomationModule;
19
+ exports.WorkflowAutomationModule = WorkflowAutomationModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [typeorm_1.TypeOrmModule.forFeature([workflow_automation_entity_1.WorkflowAutomation]), entity_module_1.EntityModule],
22
+ providers: [
23
+ {
24
+ provide: 'WorkflowAutomationService',
25
+ useClass: workflow_automation_service_1.WorkflowAutomationService,
26
+ },
27
+ ],
28
+ exports: [],
29
+ controllers: [workflow_automation_controller_1.WorkflowAutomationController],
30
+ })
31
+ ], WorkflowAutomationModule);
32
+ //# sourceMappingURL=workflow-automation.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.module.js","sourceRoot":"","sources":["../../../src/module/workflow-automation/workflow-automation.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,oFAAyE;AACzE,gGAA2F;AAC3F,uFAAkF;AAClF,yDAAqD;AAa9C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IAXpC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,+CAAkB,CAAC,CAAC,EAAE,4BAAY,CAAC;QACvE,SAAS,EAAE;YACT;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,uDAAyB;aACpC;SACF;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,CAAC,6DAA4B,CAAC;KAC5C,CAAC;GACW,wBAAwB,CAAG"}