rez_core 2.1.145 → 2.1.148

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 (91) hide show
  1. package/dist/module/layout_preference/controller/layout_preference.controller.js +2 -2
  2. package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -1
  3. package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +2 -0
  4. package/dist/module/layout_preference/entity/layout_preference.entity.js +13 -0
  5. package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -1
  6. package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +1 -1
  7. package/dist/module/layout_preference/repository/layout_preference.repository.js +4 -2
  8. package/dist/module/layout_preference/repository/layout_preference.repository.js.map +1 -1
  9. package/dist/module/layout_preference/service/layout_preference.service.d.ts +1 -1
  10. package/dist/module/layout_preference/service/layout_preference.service.js +10 -4
  11. package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -1
  12. package/dist/module/meta/controller/media.controller.d.ts +1 -1
  13. package/dist/module/meta/controller/media.controller.js +1 -1
  14. package/dist/module/meta/controller/media.controller.js.map +1 -1
  15. package/dist/module/workflow/controller/action-category.controller.d.ts +8 -0
  16. package/dist/module/workflow/controller/action-category.controller.js +45 -0
  17. package/dist/module/workflow/controller/action-category.controller.js.map +1 -0
  18. package/dist/module/workflow/controller/action.controller.d.ts +1 -1
  19. package/dist/module/workflow/controller/action.controller.js +3 -3
  20. package/dist/module/workflow/controller/action.controller.js.map +1 -1
  21. package/dist/module/workflow/controller/comm-template.controller.d.ts +2 -2
  22. package/dist/module/workflow/controller/comm-template.controller.js +4 -4
  23. package/dist/module/workflow/controller/comm-template.controller.js.map +1 -1
  24. package/dist/module/workflow/controller/workflow-meta.controller.d.ts +9 -0
  25. package/dist/module/workflow/controller/workflow-meta.controller.js +63 -0
  26. package/dist/module/workflow/controller/workflow-meta.controller.js.map +1 -0
  27. package/dist/module/workflow/controller/workflow.controller.d.ts +9 -1
  28. package/dist/module/workflow/controller/workflow.controller.js +17 -2
  29. package/dist/module/workflow/controller/workflow.controller.js.map +1 -1
  30. package/dist/module/workflow/entity/action-category.entity.d.ts +1 -0
  31. package/dist/module/workflow/entity/action-category.entity.js +4 -0
  32. package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
  33. package/dist/module/workflow/entity/action.entity.d.ts +2 -2
  34. package/dist/module/workflow/entity/action.entity.js +3 -3
  35. package/dist/module/workflow/entity/action.entity.js.map +1 -1
  36. package/dist/module/workflow/entity/comm-template.entity.d.ts +5 -0
  37. package/dist/module/workflow/entity/comm-template.entity.js +21 -1
  38. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
  39. package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +2 -0
  40. package/dist/module/workflow/entity/stage-movement-data.entity.js +8 -0
  41. package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
  42. package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +11 -0
  43. package/dist/module/workflow/entity/template-attach-mapper.entity.js +54 -0
  44. package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -0
  45. package/dist/module/workflow/repository/comm-template.repository.d.ts +8 -2
  46. package/dist/module/workflow/repository/comm-template.repository.js +37 -6
  47. package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
  48. package/dist/module/workflow/service/action-category.service.d.ts +5 -0
  49. package/dist/module/workflow/service/action-category.service.js +23 -1
  50. package/dist/module/workflow/service/action-category.service.js.map +1 -1
  51. package/dist/module/workflow/service/action.service.d.ts +1 -1
  52. package/dist/module/workflow/service/action.service.js +78 -26
  53. package/dist/module/workflow/service/action.service.js.map +1 -1
  54. package/dist/module/workflow/service/comm-template.service.d.ts +4 -1
  55. package/dist/module/workflow/service/comm-template.service.js +38 -1
  56. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  57. package/dist/module/workflow/service/populate-workflow.service.d.ts +21 -0
  58. package/dist/module/workflow/service/populate-workflow.service.js +124 -0
  59. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -0
  60. package/dist/module/workflow/service/workflow-list-master.service.js +3 -3
  61. package/dist/module/workflow/service/workflow-meta.service.d.ts +9 -0
  62. package/dist/module/workflow/service/workflow-meta.service.js +81 -0
  63. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -0
  64. package/dist/module/workflow/workflow.module.js +41 -26
  65. package/dist/module/workflow/workflow.module.js.map +1 -1
  66. package/dist/tsconfig.build.tsbuildinfo +1 -1
  67. package/package.json +1 -1
  68. package/src/module/layout_preference/controller/layout_preference.controller.ts +4 -2
  69. package/src/module/layout_preference/entity/layout_preference.entity.ts +11 -0
  70. package/src/module/layout_preference/repository/layout_preference.repository.ts +6 -2
  71. package/src/module/layout_preference/service/layout_preference.service.ts +24 -6
  72. package/src/module/meta/controller/media.controller.ts +5 -7
  73. package/src/module/workflow/controller/action-category.controller.ts +35 -0
  74. package/src/module/workflow/controller/action.controller.ts +2 -2
  75. package/src/module/workflow/controller/comm-template.controller.ts +5 -4
  76. package/src/module/workflow/controller/workflow-meta.controller.ts +52 -0
  77. package/src/module/workflow/controller/workflow.controller.ts +14 -0
  78. package/src/module/workflow/entity/action-category.entity.ts +3 -0
  79. package/src/module/workflow/entity/action.entity.ts +3 -3
  80. package/src/module/workflow/entity/comm-template.entity.ts +18 -1
  81. package/src/module/workflow/entity/stage-movement-data.entity.ts +6 -0
  82. package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -0
  83. package/src/module/workflow/repository/comm-template.repository.ts +58 -5
  84. package/src/module/workflow/service/action-category.service.ts +26 -1
  85. package/src/module/workflow/service/action-template-mapping.service.ts +1 -1
  86. package/src/module/workflow/service/action.service.ts +103 -24
  87. package/src/module/workflow/service/comm-template.service.ts +54 -1
  88. package/src/module/workflow/service/populate-workflow.service.ts +189 -0
  89. package/src/module/workflow/service/workflow-list-master.service.ts +3 -3
  90. package/src/module/workflow/service/workflow-meta.service.ts +98 -0
  91. package/src/module/workflow/workflow.module.ts +41 -27
@@ -21,8 +21,8 @@ let LayoutPreferenceController = class LayoutPreferenceController {
21
21
  this.layoutPreferenceService = layoutPreferenceService;
22
22
  }
23
23
  async getFilterById(entity_type, req) {
24
- const userId = req.user.userData.id;
25
- return this.layoutPreferenceService.getLayoutPreferenceByUserID(userId, entity_type);
24
+ const userDat = req.user.userData;
25
+ return this.layoutPreferenceService.getLayoutPreferenceByUserID(userDat.id, entity_type, userDat.level_id, userDat.level_type);
26
26
  }
27
27
  async getColumnValues(entity_type, column, sort_by, req) {
28
28
  const loggedInUser = req.user.userData;
@@ -1 +1 @@
1
- {"version":3,"file":"layout_preference.controller.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/controller/layout_preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgF;AAChF,oFAA+E;AAC/E,2DAAgE;AAGzD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAEmB,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAChE,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CACK,WAAmB,EAClC,GAA4B;QAEnC,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAEpC,OAAO,IAAI,CAAC,uBAAuB,CAAC,2BAA2B,CAC7D,MAAM,EACN,WAAW,CACZ,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,eAAe,CACG,WAAmB,EACxB,MAAc,EACb,OAAe,EAC1B,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEvC,OAAO,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAChD,WAAW,EACX,MAAM,EACN,OAAO,EACP,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AArCY,gEAA0B;AAQ/B;IAFL,IAAA,YAAG,EAAC,EAAE,CAAC;IACP,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAQP;AAIK;IAFL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;IACf,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEAUP;qCApCU,0BAA0B;IADtC,IAAA,mBAAU,EAAC,mBAAmB,CAAC;IAG3B,WAAA,IAAA,eAAM,EAAC,yBAAyB,CAAC,CAAA;qCACQ,mDAAuB;GAHxD,0BAA0B,CAqCtC"}
1
+ {"version":3,"file":"layout_preference.controller.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/controller/layout_preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgF;AAChF,oFAA+E;AAC/E,2DAAgE;AAGzD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAEmB,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAChE,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CACK,WAAmB,EAClC,GAA4B;QAEnC,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAElC,OAAO,IAAI,CAAC,uBAAuB,CAAC,2BAA2B,CAC7D,OAAO,CAAC,EAAE,EACV,WAAW,EACX,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,UAAU,CACnB,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,eAAe,CACG,WAAmB,EACxB,MAAc,EACb,OAAe,EAC1B,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEvC,OAAO,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAChD,WAAW,EACX,MAAM,EACN,OAAO,EACP,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAvCY,gEAA0B;AAQ/B;IAFL,IAAA,YAAG,EAAC,EAAE,CAAC;IACP,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAUP;AAIK;IAFL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;IACf,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEAUP;qCAtCU,0BAA0B;IADtC,IAAA,mBAAU,EAAC,mBAAmB,CAAC;IAG3B,WAAA,IAAA,eAAM,EAAC,yBAAyB,CAAC,CAAA;qCACQ,mDAAuB;GAHxD,0BAA0B,CAuCtC"}
@@ -4,4 +4,6 @@ export declare class LayoutPreference extends BaseEntity {
4
4
  layout_json: any;
5
5
  mapped_entity_type: string;
6
6
  navigation_tabs_json: any;
7
+ mapped_level_id: string;
8
+ mapped_level_type: string;
7
9
  }
@@ -31,6 +31,19 @@ __decorate([
31
31
  (0, typeorm_1.Column)({ nullable: true, type: 'json' }),
32
32
  __metadata("design:type", Object)
33
33
  ], LayoutPreference.prototype, "navigation_tabs_json", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({
36
+ name: 'mapped_level_id',
37
+ type: 'varchar',
38
+ length: 100,
39
+ nullable: true,
40
+ }),
41
+ __metadata("design:type", String)
42
+ ], LayoutPreference.prototype, "mapped_level_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ name: 'mapped_level_type', type: 'varchar', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], LayoutPreference.prototype, "mapped_level_type", void 0);
34
47
  exports.LayoutPreference = LayoutPreference = __decorate([
35
48
  (0, typeorm_1.Entity)({ name: 'cr_layout_preference' })
36
49
  ], LayoutPreference);
@@ -1 +1 @@
1
- {"version":3,"file":"layout_preference.entity.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/entity/layout_preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAuE;AACvE,qCAAiE;AAG1D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+BAAU;CAY/C,CAAA;AAZY,4CAAgB;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACvB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACf;2BAXf,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;GAC5B,gBAAgB,CAY5B"}
1
+ {"version":3,"file":"layout_preference.entity.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/entity/layout_preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAuE;AACvE,qCAAiE;AAG1D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+BAAU;CAuB/C,CAAA;AAvBY,4CAAgB;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACvB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACf;AAQ1B;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;;yDACsB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC7C;2BAtBf,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;GAC5B,gBAAgB,CAuB5B"}
@@ -3,5 +3,5 @@ import { LayoutPreference } from '../entity/layout_preference.entity';
3
3
  export declare class LayoutPreferenceRepository {
4
4
  private readonly layoutPreferenceRepo;
5
5
  constructor(layoutPreferenceRepo: Repository<LayoutPreference>);
6
- findByEntityUserId(entity_type: string, userId: number): Promise<LayoutPreference | null>;
6
+ findByEntityUserId(mapped_entity_type: string, mapped_level_id: string, mapped_level_type: string, userId: number): Promise<LayoutPreference | null>;
7
7
  }
@@ -21,11 +21,13 @@ let LayoutPreferenceRepository = class LayoutPreferenceRepository {
21
21
  constructor(layoutPreferenceRepo) {
22
22
  this.layoutPreferenceRepo = layoutPreferenceRepo;
23
23
  }
24
- async findByEntityUserId(entity_type, userId) {
24
+ async findByEntityUserId(mapped_entity_type, mapped_level_id, mapped_level_type, userId) {
25
25
  return this.layoutPreferenceRepo.findOne({
26
26
  where: {
27
27
  user_id: userId.toString(),
28
- mapped_entity_type: entity_type,
28
+ mapped_entity_type: mapped_entity_type,
29
+ mapped_level_id: mapped_level_id,
30
+ mapped_level_type: mapped_level_type,
29
31
  },
30
32
  });
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"layout_preference.repository.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/repository/layout_preference.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,iFAAsE;AAG/D,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAEmB,oBAAkD;QAAlD,yBAAoB,GAApB,oBAAoB,CAA8B;IAClE,CAAC;IAEJ,KAAK,CAAC,kBAAkB,CACtB,WAAmB,EACnB,MAAc;QAEd,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;gBAC1B,kBAAkB,EAAE,WAAW;aAChC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAjBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,2CAAgB,CAAC,CAAA;qCACI,oBAAU;GAHxC,0BAA0B,CAiBtC"}
1
+ {"version":3,"file":"layout_preference.repository.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/repository/layout_preference.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,iFAAsE;AAG/D,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAEmB,oBAAkD;QAAlD,yBAAoB,GAApB,oBAAoB,CAA8B;IAClE,CAAC;IAEJ,KAAK,CAAC,kBAAkB,CACtB,kBAA0B,EAC1B,eAAuB,EACvB,iBAAyB,EACzB,MAAc;QAEd,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;gBAC1B,kBAAkB,EAAE,kBAAkB;gBACtC,eAAe,EAAE,eAAe;gBAChC,iBAAiB,EAAE,iBAAiB;aACrC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AArBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,2CAAgB,CAAC,CAAA;qCACI,oBAAU;GAHxC,0BAA0B,CAqBtC"}
@@ -8,6 +8,6 @@ export declare class LayoutPreferenceService extends EntityServiceImpl {
8
8
  private readonly dataSource;
9
9
  constructor(layoutPreferenceRepository: LayoutPreferenceRepository, dataSource: DataSource);
10
10
  createEntity(entityData: BaseEntity, loggedInUser: UserData): Promise<any>;
11
- getLayoutPreferenceByUserID(user_id: any, mapped_entity_type: any): Promise<import("../entity/layout_preference.entity").LayoutPreference | null>;
11
+ getLayoutPreferenceByUserID(user_id: any, mapped_entity_type: any, mapped_level_id: any, mapped_level_type: any): Promise<import("../entity/layout_preference.entity").LayoutPreference | null>;
12
12
  getColumnValue(entity_type: string, column: string, sort_by: string, loggedInUser: UserData): Promise<string[]>;
13
13
  }
@@ -27,14 +27,20 @@ let LayoutPreferenceService = class LayoutPreferenceService extends entity_servi
27
27
  if (userId === undefined) {
28
28
  throw new Error('User ID is required to create layout preference.');
29
29
  }
30
- const existingLayoutPreference = await this.layoutPreferenceRepository.findByEntityUserId(mapped_entity_type, userId);
30
+ const existingLayoutPreference = await this.layoutPreferenceRepository.findByEntityUserId(mapped_entity_type, loggedInUser.level_id, loggedInUser.level_type, userId);
31
31
  if (existingLayoutPreference) {
32
32
  return await super.updateEntity({ ...entityData, id: existingLayoutPreference.id }, loggedInUser);
33
33
  }
34
- return await super.createEntity({ ...entityData, user_id: userId }, loggedInUser);
34
+ return await super.createEntity({
35
+ ...entityData,
36
+ user_id: userId,
37
+ mapped_level_id: loggedInUser.level_id,
38
+ mapped_level_type: loggedInUser.level_type,
39
+ }, loggedInUser);
35
40
  }
36
- async getLayoutPreferenceByUserID(user_id, mapped_entity_type) {
37
- return await this.layoutPreferenceRepository.findByEntityUserId(mapped_entity_type, user_id);
41
+ async getLayoutPreferenceByUserID(user_id, mapped_entity_type, mapped_level_id, mapped_level_type) {
42
+ const layoutPreference = await this.layoutPreferenceRepository.findByEntityUserId(mapped_entity_type, mapped_level_id, mapped_level_type, user_id);
43
+ return layoutPreference;
38
44
  }
39
45
  async getColumnValue(entity_type, column, sort_by, loggedInUser) {
40
46
  const getTableMeta = await this.entityTableService.findByEntityTypeAndListTypeAndDisplayType(entity_type, entity_type, 'LIST', loggedInUser?.organization_id);
@@ -1 +1 @@
1
- {"version":3,"file":"layout_preference.service.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/service/layout_preference.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,gGAAwF;AAExF,6FAAwF;AACxF,qCAAqC;AAG9B,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+CAAiB;IAC5D,YACU,0BAAsD,EAC7C,UAAsB;QAEvC,KAAK,EAAE,CAAC;QAHA,+BAA0B,GAA1B,0BAA0B,CAA4B;QAC7C,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAsB,EAAE,YAAsB;QAC/D,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;QAE1C,MAAM,EAAE,kBAAkB,EAAE,GAAG,UAAiB,CAAC;QACjD,MAAM,MAAM,GAAG,YAAY,EAAE,EAAE,CAAC;QAEhC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,wBAAwB,GAC5B,MAAM,IAAI,CAAC,0BAA0B,CAAC,kBAAkB,CACtD,k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,KAAK,CAAC,CAAC;IACzC,CAAC;CACF,CAAA;AA3GY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAG2B,yDAA0B;QACjC,oBAAU;GAH9B,uBAAuB,CA2GnC"}
1
+ {"version":3,"file":"layout_preference.service.js","sourceRoot":"","sources":["../../../../src/module/layout_preference/service/layout_preference.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,gGAAwF;AAExF,6FAAwF;AACxF,qCAAqC;AAG9B,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+CAAiB;IAC5D,YACU,0BAAsD,EAC7C,UAAsB;QAEvC,KAAK,EAAE,CAAC;QAHA,+BAA0B,GAA1B,0BAA0B,CAA4B;QAC7C,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAsB,EAAE,YAAsB;QAC/D,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;QAE1C,MAAM,EAAE,kBAAkB,EAAE,GAAG,UAAiB,CAAC;QACjD,MAAM,MAAM,GAAG,YAAY,EAAE,EAAE,CAAC;QAEhC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,wBAAwB,GAC5B,MAAM,IAAI,CAAC,0BAA0B,CAAC,kBAAkB,CACtD,kBAAkB,EAClB,YAAY,CAAC,QAAQ,EACrB,YAAY,CAAC,UAAU,EACvB,MAAM,CACP,CAAC;QAEJ,IAAI,wBAAwB,EAAE,CAAC;YAC7B,OAAO,MAAM,KAAK,CAAC,YAAY,CAC7B,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE,wBAAwB,CAAC,EAAE,EAAE,EAClD,YAAY,CACb,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,KAAK,CAAC,YAAY,CAC7B;YACE,GAAG,UAAU;YAC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G2B,yDAA0B;QACjC,oBAAU;GAH9B,uBAAuB,CA6HnC"}
@@ -1,5 +1,5 @@
1
- import { MediaDataService } from '../service/media-data.service';
2
1
  import { Response } from 'express';
2
+ import { MediaDataService } from '../service/media-data.service';
3
3
  export declare class MediaController {
4
4
  private readonly mediaDataService;
5
5
  constructor(mediaDataService: MediaDataService);
@@ -14,8 +14,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MediaController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
- const media_data_service_1 = require("../service/media-data.service");
18
17
  const jwt_guard_1 = require("../../auth/guards/jwt.guard");
18
+ const media_data_service_1 = require("../service/media-data.service");
19
19
  let MediaController = class MediaController {
20
20
  constructor(mediaDataService) {
21
21
  this.mediaDataService = mediaDataService;
@@ -1 +1 @@
1
- {"version":3,"file":"media.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/media.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,sEAAiE;AACjE,2DAA2D;AAOpD,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAI7D,AAAN,KAAK,CAAC,cAAc,CAElB,IAKC,EACM,GAA4B,EAC5B,GAAa;QAEpB,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEvC,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,CACjE,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,aAAa,EAClB,YAAY,EACZ,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,gBAAgB,CACtB,CAAC;QACF,IAAI,MAAM,EAAE,CAAC;YACX,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;gBAC7B,OAAO,EAAE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B,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAEyB,qCAAgB;GADpD,eAAe,CA6D3B"}
1
+ {"version":3,"file":"media.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/media.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AAExB,2DAA2D;AAC3D,sEAAiE;AAI1D,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAI7D,AAAN,KAAK,CAAC,cAAc,CAElB,IAKC,EACM,GAA4B,EAC5B,GAAa;QAEpB,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEvC,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,CACjE,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,aAAa,EAClB,YAAY,EACZ,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,gBAAgB,CACtB,CAAC;QACF,IAAI,MAAM,EAAE,CAAC;YACX,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;gBAC7B,OAAO,EAAE,+BAA+B;gBACxC,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,MAAM;aACb,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAIK,AAAN,KAAK,CAAC,cAAc,CACL,EAAU,EAChB,GAAa,EACb,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,IAAI,CAAC;YACH,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CACjE,EAAE,EACF,YAAY,CACb,CAAC;YACF,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;gBAC7B,OAAO,EAAE,mCAAmC;gBAC5C,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,WAAW;aAClB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC;gBAChD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,6BAA6B;gBACvD,OAAO,EAAE,KAAK;aACf,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAA;AA7DY,0CAAe;AAKpB;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IAErB,WAAA,IAAA,aAAI,GAAE,CAAA;IAON,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;qDAoBP;AAIK;IADL,IAAA,YAAG,EAAC,cAAc,CAAC;IAEjB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;qDAmBP;0BA5DU,eAAe;IAF3B,IAAA,mBAAU,EAAC,OAAO,CAAC;IACnB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAEyB,qCAAgB;GADpD,eAAe,CA6D3B"}
@@ -0,0 +1,8 @@
1
+ import { ActionCategoryService } from '../service/action-category.service';
2
+ export declare class ActionCategoryController {
3
+ private readonly actionCategoryService;
4
+ constructor(actionCategoryService: ActionCategoryService);
5
+ getActionsCat(req: Request & {
6
+ user: any;
7
+ }, entity_type: string): Promise<any>;
8
+ }
@@ -0,0 +1,45 @@
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.ActionCategoryController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const jwt_guard_1 = require("../../auth/guards/jwt.guard");
18
+ const action_category_service_1 = require("../service/action-category.service");
19
+ let ActionCategoryController = class ActionCategoryController {
20
+ constructor(actionCategoryService) {
21
+ this.actionCategoryService = actionCategoryService;
22
+ }
23
+ async getActionsCat(req, entity_type) {
24
+ const loggedInUser = req.user.userData;
25
+ const result = this.actionCategoryService.getActionsCat(loggedInUser, entity_type);
26
+ return result;
27
+ }
28
+ };
29
+ exports.ActionCategoryController = ActionCategoryController;
30
+ __decorate([
31
+ (0, common_1.Post)('/getActionsCategory'),
32
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
33
+ __param(0, (0, common_1.Req)()),
34
+ __param(1, (0, common_1.Body)('entity_type')),
35
+ __metadata("design:type", Function),
36
+ __metadata("design:paramtypes", [Object, String]),
37
+ __metadata("design:returntype", Promise)
38
+ ], ActionCategoryController.prototype, "getActionsCat", null);
39
+ exports.ActionCategoryController = ActionCategoryController = __decorate([
40
+ (0, common_1.Controller)('/actionCategory'),
41
+ (0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
42
+ __param(0, (0, common_1.Inject)('ActionCategoryService')),
43
+ __metadata("design:paramtypes", [action_category_service_1.ActionCategoryService])
44
+ ], ActionCategoryController);
45
+ //# sourceMappingURL=action-category.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-category.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/action-category.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,gFAA2E;AAIpE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,YAEmB,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAC5D,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CACV,GAA4B,EACd,WAAmB;QAExC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,qBAAqB,CAAC,aAAa,CACrD,YAAY,EACZ,WAAW,CACZ,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAnBY,4DAAwB;AAQ7B;IAFL,IAAA,aAAI,EAAC,qBAAqB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;;;;6DAQrB;mCAlBU,wBAAwB;IAFpC,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,uBAAuB,CAAC,CAAA;qCACQ,+CAAqB;GAHpD,wBAAwB,CAmBpC"}
@@ -12,5 +12,5 @@ export declare class ActionController {
12
12
  }): Promise<any>;
13
13
  getActions(req: Request & {
14
14
  user: any;
15
- }, workflow_id: number): Promise<any>;
15
+ }, stage_id: number): Promise<any[]>;
16
16
  }
@@ -30,9 +30,9 @@ let ActionController = class ActionController {
30
30
  const result = this.actionService.defaultReasonCode(body.list_type, loggedInUser);
31
31
  return result;
32
32
  }
33
- async getActions(req, workflow_id) {
33
+ async getActions(req, stage_id) {
34
34
  const loggedInUser = req.user.userData;
35
- const result = this.actionService.getActions(loggedInUser, workflow_id);
35
+ const result = this.actionService.getActions(loggedInUser, stage_id);
36
36
  return result;
37
37
  }
38
38
  };
@@ -58,7 +58,7 @@ __decorate([
58
58
  (0, common_1.Post)('/getActions'),
59
59
  (0, common_1.HttpCode)(common_1.HttpStatus.OK),
60
60
  __param(0, (0, common_1.Req)()),
61
- __param(1, (0, common_1.Body)('workflow_id')),
61
+ __param(1, (0, common_1.Body)('stage_id')),
62
62
  __metadata("design:type", Function),
63
63
  __metadata("design:paramtypes", [Object, Number]),
64
64
  __metadata("design:returntype", Promise)
@@ -1 +1 @@
1
- {"version":3,"file":"action.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/action.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,8DAA0D;AAInD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CAAQ,GAA4B;QACrD,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IAChB,CAAC;IAIK,AAAN,KAAK,CAAC,iBAAiB,CACd,GAA4B,EAC3B,IAA2B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,CACjD,IAAI,CAAC,SAAS,EACd,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IAIK,AAAN,KAAK,CAAC,UAAU,CACP,GAA4B,EACd,WAAmB;QAExC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QACxE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAtCY,4CAAgB;AAQrB;IAFL,IAAA,YAAG,EAAC,gBAAgB,CAAC;IACrB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACH,WAAA,IAAA,YAAG,GAAE,CAAA;;;;qDAIzB;AAIK;IAFL,IAAA,aAAI,EAAC,oBAAoB,CAAC;IAC1B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;yDAQR;AAIK;IAFL,IAAA,aAAI,EAAC,aAAa,CAAC;IACnB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;;;;kDAKrB;2BArCU,gBAAgB;IAF5B,IAAA,mBAAU,EAAC,SAAS,CAAC;IACrB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;qCACQ,8BAAa;GAHpC,gBAAgB,CAsC5B"}
1
+ {"version":3,"file":"action.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/action.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,8DAA0D;AAInD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CAAQ,GAA4B;QACrD,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAA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nB,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;qCACQ,8BAAa;GAHpC,gBAAgB,CAsC5B"}
@@ -4,8 +4,8 @@ export declare class CommTemplateController {
4
4
  constructor(commTemplateService: CommTemplateService);
5
5
  getTemplate(req: Request & {
6
6
  user: any;
7
- }, entityType?: string): Promise<{
8
- label: string;
7
+ }, entity_type: string): Promise<{
9
8
  value: string;
9
+ name: string;
10
10
  }[]>;
11
11
  }
@@ -20,18 +20,18 @@ let CommTemplateController = class CommTemplateController {
20
20
  constructor(commTemplateService) {
21
21
  this.commTemplateService = commTemplateService;
22
22
  }
23
- async getTemplate(req, entityType) {
23
+ async getTemplate(req, entity_type) {
24
24
  const loggedInUser = req.user.userData;
25
- const result = this.commTemplateService.getAllCommTemplate(entityType || '', loggedInUser);
25
+ const result = this.commTemplateService.getAllCommTemplate(entity_type || '', loggedInUser);
26
26
  return result;
27
27
  }
28
28
  };
29
29
  exports.CommTemplateController = CommTemplateController;
30
30
  __decorate([
31
- (0, common_1.Get)('/get-comm-template'),
31
+ (0, common_1.Post)('/getTemplates'),
32
32
  (0, common_1.HttpCode)(common_1.HttpStatus.OK),
33
33
  __param(0, (0, common_1.Req)()),
34
- __param(1, (0, common_1.Query)('entity_type')),
34
+ __param(1, (0, common_1.Body)('entity_type')),
35
35
  __metadata("design:type", Function),
36
36
  __metadata("design:paramtypes", [Object, String]),
37
37
  __metadata("design:returntype", Promise)
@@ -1 +1 @@
1
- {"version":3,"file":"comm-template.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/comm-template.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2DAAgE;AAChE,4EAAuE;AAIhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAInE,AAAN,KAAK,CAAC,WAAW,CACR,GAA4B,EACb,UAAmB;QAEzC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CACxD,UAAU,IAAI,EAAE,EAChB,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAhBY,wDAAsB;AAK3B;IAFL,IAAA,YAAG,EAAC,oBAAoB,CAAC;IACzB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;;;;yDAQtB;iCAfU,sBAAsB;IAFlC,IAAA,mBAAU,EAAC,YAAY,CAAC;IACxB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAE4B,2CAAmB;GAD1D,sBAAsB,CAgBlC"}
1
+ {"version":3,"file":"comm-template.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/comm-template.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,4EAAuE;AAIhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAInE,AAAN,KAAK,CAAC,WAAW,CACR,GAA4B,EACd,WAAmB;QAExC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CACxD,WAAW,IAAI,EAAE,EACjB,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAhBY,wDAAsB;AAK3B;IAFL,IAAA,aAAI,EAAC,eAAe,CAAC;IACrB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;;;;yDAQrB;iCAfU,sBAAsB;IAFlC,IAAA,mBAAU,EAAC,YAAY,CAAC;IACxB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAE4B,2CAAmB;GAD1D,sBAAsB,CAgBlC"}
@@ -0,0 +1,9 @@
1
+ import { WorkflowMetaService } from '../service/workflow-meta.service';
2
+ import { StageMovementData } from '../entity/stage-movement-data.entity';
3
+ export declare class WorkflowMetaController {
4
+ private readonly workflowMetaService;
5
+ constructor(workflowMetaService: WorkflowMetaService);
6
+ getCurrentStage(mapped_entity_type: string, mapped_entity_id: number): Promise<StageMovementData | null>;
7
+ getNextStage(mapped_entity_type: string, mapped_entity_id: number): Promise<number | null>;
8
+ moveToNextStage(mapped_entity_type: string, mapped_entity_id: number, current_user_id: number): Promise<string>;
9
+ }
@@ -0,0 +1,63 @@
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.WorkflowMetaController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const workflow_meta_service_1 = require("../service/workflow-meta.service");
18
+ let WorkflowMetaController = class WorkflowMetaController {
19
+ constructor(workflowMetaService) {
20
+ this.workflowMetaService = workflowMetaService;
21
+ }
22
+ async getCurrentStage(mapped_entity_type, mapped_entity_id) {
23
+ return this.workflowMetaService.getCurrentStage(mapped_entity_type, Number(mapped_entity_id));
24
+ }
25
+ async getNextStage(mapped_entity_type, mapped_entity_id) {
26
+ const current = await this.workflowMetaService.getCurrentStage(mapped_entity_type, Number(mapped_entity_id));
27
+ return current ? this.workflowMetaService.getNextStage(current) : null;
28
+ }
29
+ async moveToNextStage(mapped_entity_type, mapped_entity_id, current_user_id) {
30
+ return this.workflowMetaService.moveToNextStage(mapped_entity_type, Number(mapped_entity_id), current_user_id);
31
+ }
32
+ };
33
+ exports.WorkflowMetaController = WorkflowMetaController;
34
+ __decorate([
35
+ (0, common_1.Get)('current-stage'),
36
+ __param(0, (0, common_1.Query)('entityType')),
37
+ __param(1, (0, common_1.Query)('entityId')),
38
+ __metadata("design:type", Function),
39
+ __metadata("design:paramtypes", [String, Number]),
40
+ __metadata("design:returntype", Promise)
41
+ ], WorkflowMetaController.prototype, "getCurrentStage", null);
42
+ __decorate([
43
+ (0, common_1.Get)('next-stage'),
44
+ __param(0, (0, common_1.Query)('entityType')),
45
+ __param(1, (0, common_1.Query)('entityId')),
46
+ __metadata("design:type", Function),
47
+ __metadata("design:paramtypes", [String, Number]),
48
+ __metadata("design:returntype", Promise)
49
+ ], WorkflowMetaController.prototype, "getNextStage", null);
50
+ __decorate([
51
+ (0, common_1.Post)('move-next-stage'),
52
+ __param(0, (0, common_1.Body)('entityType')),
53
+ __param(1, (0, common_1.Body)('entityId')),
54
+ __param(2, (0, common_1.Body)('currentUserId')),
55
+ __metadata("design:type", Function),
56
+ __metadata("design:paramtypes", [String, Number, Number]),
57
+ __metadata("design:returntype", Promise)
58
+ ], WorkflowMetaController.prototype, "moveToNextStage", null);
59
+ exports.WorkflowMetaController = WorkflowMetaController = __decorate([
60
+ (0, common_1.Controller)('workflow-meta'),
61
+ __metadata("design:paramtypes", [workflow_meta_service_1.WorkflowMetaService])
62
+ ], WorkflowMetaController);
63
+ //# sourceMappingURL=workflow-meta.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-meta.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/workflow-meta.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,4EAAuE;AAIhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAMnE,AAAN,KAAK,CAAC,eAAe,CACE,kBAA0B,EAC5B,gBAAwB;QAE3C,OAAO,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAChG,CAAC;IAMK,AAAN,KAAK,CAAC,YAAY,CACK,kBAA0B,EAC5B,gBAAwB;QAE3C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC7G,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACzE,CAAC;IAWK,AAAN,KAAK,CAAC,eAAe,CACC,kBAA0B,EAC5B,gBAAwB,EACnB,eAAuB;QAE9C,OAAO,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAC7C,kBAAkB,EAClB,MAAM,CAAC,gBAAgB,CAAC,EACxB,eAAe,CAChB,CAAC;IACJ,CAAC;CACF,CAAA;AA9CY,wDAAsB;AAO3B;IADL,IAAA,YAAG,EAAC,eAAe,CAAC;IAElB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;;;;6DAGnB;AAMK;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IAEf,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;;;;0DAInB;AAWK;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IAErB,WAAA,IAAA,aAAI,EAAC,YAAY,CAAC,CAAA;IAClB,WAAA,IAAA,aAAI,EAAC,UAAU,CAAC,CAAA;IAChB,WAAA,IAAA,aAAI,EAAC,eAAe,CAAC,CAAA;;;;6DAOvB;iCA7CU,sBAAsB;IADlC,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAEwB,2CAAmB;GAD1D,sBAAsB,CA8ClC"}
@@ -1,7 +1,9 @@
1
1
  import { WorkflowService } from '../service/workflow.service';
2
+ import { PopulateWorkflowService } from '../service/populate-workflow.service';
2
3
  export declare class WorkflowController {
3
4
  private readonly workflowService;
4
- constructor(workflowService: WorkflowService);
5
+ private readonly populateWorkflowService;
6
+ constructor(workflowService: WorkflowService, populateWorkflowService: PopulateWorkflowService);
5
7
  getAllWorkflows(req: Request & {
6
8
  user: any;
7
9
  }, body: {
@@ -20,4 +22,10 @@ export declare class WorkflowController {
20
22
  error?: string;
21
23
  }[];
22
24
  }>;
25
+ populateWorkflow(body: any, req: Request & {
26
+ user: any;
27
+ }): Promise<{
28
+ message: string;
29
+ status: string;
30
+ }>;
23
31
  }
@@ -16,9 +16,11 @@ exports.WorkflowController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const jwt_guard_1 = require("../../auth/guards/jwt.guard");
18
18
  const workflow_service_1 = require("../service/workflow.service");
19
+ const populate_workflow_service_1 = require("../service/populate-workflow.service");
19
20
  let WorkflowController = class WorkflowController {
20
- constructor(workflowService) {
21
+ constructor(workflowService, populateWorkflowService) {
21
22
  this.workflowService = workflowService;
23
+ this.populateWorkflowService = populateWorkflowService;
22
24
  }
23
25
  async getAllWorkflows(req, body) {
24
26
  const { level_id, level_type } = req.user.userData;
@@ -31,6 +33,10 @@ let WorkflowController = class WorkflowController {
31
33
  const loggedInUser = req.user?.userData;
32
34
  return this.workflowService.updateSequence(body, loggedInUser);
33
35
  }
36
+ async populateWorkflow(body, req) {
37
+ const loggedInUser = req.user?.userData;
38
+ return this.populateWorkflowService.populateWorkflowData(body.organization_id, loggedInUser);
39
+ }
34
40
  };
35
41
  exports.WorkflowController = WorkflowController;
36
42
  __decorate([
@@ -59,10 +65,19 @@ __decorate([
59
65
  __metadata("design:paramtypes", [Object, Object]),
60
66
  __metadata("design:returntype", Promise)
61
67
  ], WorkflowController.prototype, "updateSequence", null);
68
+ __decorate([
69
+ (0, common_1.Post)('/populateWorkflow'),
70
+ __param(0, (0, common_1.Body)()),
71
+ __param(1, (0, common_1.Req)()),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [Object, Object]),
74
+ __metadata("design:returntype", Promise)
75
+ ], WorkflowController.prototype, "populateWorkflow", null);
62
76
  exports.WorkflowController = WorkflowController = __decorate([
63
77
  (0, common_1.Controller)('/workflow'),
64
78
  (0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
65
79
  __param(0, (0, common_1.Inject)('WorkflowService')),
66
- __metadata("design:paramtypes", [workflow_service_1.WorkflowService])
80
+ __metadata("design:paramtypes", [workflow_service_1.WorkflowService,
81
+ populate_workflow_service_1.PopulateWorkflowService])
67
82
  ], WorkflowController);
68
83
  //# sourceMappingURL=workflow.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/workflow.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAawB;AACxB,2DAAgE;AAChE,kEAA8D;AAIvD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAEmB,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAChD,CAAC;IAIE,AAAN,KAAK,CAAC,eAAe,CACZ,GAA4B,EAC3B,IAA6B;QAErC,MAAM,EAAE,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9B"}
1
+ {"version":3,"file":"workflow.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/workflow.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAawB;AACxB,2DAAgE;AAChE,kEAA8D;AAC9D,oFAA+E;AAIxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAEmB,eAAgC,EAChC,uBAAgD;QADhD,oBAAe,GAAf,eAAe,CAAiB;QAChC,4BAAuB,GAAvB,uBAAuB,CAAyB;IAChE,CAAC;IAIE,AAAN,KAAK,CAAC,eAAe,CACZ,GAA4B,EAC3B,IAA6B;QAErC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CACzC,IAAI,CAAC,WAAW,EAChB,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,eAAe,CAAc,EAAU;QAC3C,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAKK,AAAN,KAAK,CAAC,cAAc,CAAS,IAAS,EAAS,GAA4B;QACzE,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACZ,IAAS,EACV,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,OAAO,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,CACtD,IAAI,CAAC,eAAe,EACpB,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AA9CY,gDAAkB;AASvB;IAFL,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;yDAQR;AAIK;IAFL,IAAA,YAAG,EAAC,sBAAsB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACD,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAEjC;AAKK;IAFL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACvB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACF,WAAA,IAAA,aAAI,GAAE,CAAA;IAAa,WAAA,IAAA,YAAG,GAAE,CAAA;;;;wDAG7C;AAGK;IADL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IAEvB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;;;0DAOP;6BA7CU,kBAAkB;IAF9B,IAAA,mBAAU,EAAC,WAAW,CAAC;IACvB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,iBAAiB,CAAC,CAAA;qCACQ,kCAAe;QACP,mDAAuB;GAJxD,kBAAkB,CA8C9B"}
@@ -3,4 +3,5 @@ export declare class ActionCategory extends BaseEntity {
3
3
  constructor();
4
4
  logo: string;
5
5
  modalName: string;
6
+ mapped_entity_type: string;
6
7
  }
@@ -28,6 +28,10 @@ __decorate([
28
28
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
29
29
  __metadata("design:type", String)
30
30
  ], ActionCategory.prototype, "modalName", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], ActionCategory.prototype, "mapped_entity_type", void 0);
31
35
  exports.ActionCategory = ActionCategory = __decorate([
32
36
  (0, typeorm_1.Entity)({ name: 'cr_wf_action_category' }),
33
37
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":"action-category.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/action-category.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;CAOF,CAAA;AAXY,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;yBAVP,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;;GAC7B,cAAc,CAW1B"}
1
+ {"version":3,"file":"action-category.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/action-category.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;CAUF,CAAA;AAdY,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;yBAbhB,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;;GAC7B,cAAc,CAc1B"}
@@ -4,8 +4,8 @@ export declare class ActionEntity extends BaseEntity {
4
4
  workflow_id: number;
5
5
  action_cat_id: number;
6
6
  action_requirement: string;
7
- template: string;
7
+ sequence: string;
8
8
  reason_code: string;
9
- default_reason_code: string;
9
+ default_reason_code: number;
10
10
  default_value: boolean;
11
11
  }
@@ -35,14 +35,14 @@ __decorate([
35
35
  __decorate([
36
36
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
37
  __metadata("design:type", String)
38
- ], ActionEntity.prototype, "template", void 0);
38
+ ], ActionEntity.prototype, "sequence", void 0);
39
39
  __decorate([
40
40
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
41
41
  __metadata("design:type", String)
42
42
  ], ActionEntity.prototype, "reason_code", void 0);
43
43
  __decorate([
44
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
- __metadata("design:type", String)
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
45
+ __metadata("design:type", Number)
46
46
  ], ActionEntity.prototype, "default_reason_code", void 0);
47
47
  __decorate([
48
48
  (0, typeorm_1.Column)({ default: 0, type: 'boolean' }),
@@ -1 +1 @@
1
- {"version":3,"file":"action.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/action.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAsD;AACtD,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAU;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,wBAAM,CAAC;IAC5B,CAAC;CAsBF,CAAA;AA1BY,oCAAY;AAOvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGpB;IADC,IAA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AAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACjB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC3B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACZ;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACjB;uBAzBZ,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;GACpB,YAAY,CA0BxB"}
@@ -2,4 +2,9 @@ import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
2
  export declare class CommTemplate extends BaseEntity {
3
3
  constructor();
4
4
  mode: string;
5
+ mapped_entity_type: string;
6
+ subject: string;
7
+ format_type: string;
8
+ rich_text: string;
9
+ markup_id: number;
5
10
  }
@@ -21,9 +21,29 @@ let CommTemplate = class CommTemplate extends base_entity_entity_1.BaseEntity {
21
21
  };
22
22
  exports.CommTemplate = CommTemplate;
23
23
  __decorate([
24
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
24
+ (0, typeorm_1.Column)({ nullable: true }),
25
25
  __metadata("design:type", String)
26
26
  ], CommTemplate.prototype, "mode", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], CommTemplate.prototype, "mapped_entity_type", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], CommTemplate.prototype, "subject", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], CommTemplate.prototype, "format_type", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'longtext', nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], CommTemplate.prototype, "rich_text", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ nullable: true }),
45
+ __metadata("design:type", Number)
46
+ ], CommTemplate.prototype, "markup_id", void 0);
27
47
  exports.CommTemplate = CommTemplate = __decorate([
28
48
  (0, typeorm_1.Entity)({ name: 'cr_wf_comm_template' }),
29
49
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":"comm-template.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/comm-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA6D;AAC7D,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAU;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,+BAAa,CAAC;IACnC,CAAC;CAIF,CAAA;AARY,oCAAY;AAOvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC/B;uBAPF,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;GAC3B,YAAY,CAQxB"}
1
+ {"version":3,"file":"comm-template.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/comm-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA6D;AAC7D,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAU;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,+BAAa,CAAC;IACnC,CAAC;CAqBF,CAAA;AAzBY,oCAAY;AAOvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACjB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAIpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC3B;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;uBAxBP,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;GAC3B,YAAY,CAyBxB"}
@@ -6,4 +6,6 @@ export declare class StageMovementData extends BaseEntity {
6
6
  start_date: Date;
7
7
  end_date: Date;
8
8
  is_current: string;
9
+ mapped_entity_type: string;
10
+ mapped_entity_id: number;
9
11
  }