rez_core 3.1.160 → 3.1.161

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "3.1.160",
3
+ "version": "3.1.161",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -17,6 +17,8 @@ import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.s
17
17
  import { STATUS_ACTIVE, STATUS_INACTIVE } from 'src/constant/global.constant';
18
18
  import { ListMasterExtension } from './list-master-extension.interface';
19
19
  import { ListMasterEngine } from './list-master-engine';
20
+ import { Action } from '../../workflow-automation/interface/action.interface';
21
+
20
22
 
21
23
  @Injectable()
22
24
  export class ListMasterService {
@@ -34,6 +36,16 @@ export class ListMasterService {
34
36
  ) {}
35
37
 
36
38
  private readonly skipLevelFilterEntities = ['BRN'];
39
+ private readonly actions = new Map<string, Action>();
40
+
41
+
42
+ registerAction(actionName: string, actionInstance: Action) {
43
+ this.actions.set(actionName, actionInstance);
44
+ console.log(
45
+ `⚙️ [WorkflowAutomationEngine] Registered action: ${actionName}`,
46
+ );
47
+ }
48
+
37
49
 
38
50
  async getResolvedListCode(
39
51
  code: string,
@@ -66,18 +78,16 @@ export class ListMasterService {
66
78
 
67
79
  if (config.appcode!=loggedInUser?.appcode) {
68
80
 
69
- try {
70
- const extensionResult = await this.listMasterEngine.execute(type, {
71
- params,
72
- inactiveIdsArray,
73
- loggedInUser,
74
- config,
75
- });
76
-
77
- if (extensionResult !== undefined) return extensionResult;
78
- } catch (err) {
79
- console.warn(`No extension found for type ${type}, falling back to default logic`);
81
+ const impl = this.actions.get("LIST_MASTER")
82
+
83
+
84
+
85
+ if(impl) {
86
+ await impl.execute("HEY");
80
87
  }
88
+
89
+
90
+
81
91
  }
82
92
  // Check if a dynamic extension exists for this type
83
93
 
@@ -99,7 +99,11 @@ export class OtpService {
99
99
  }
100
100
 
101
101
  if (!verifyOTPResponse.isValid) {
102
- throw new BadRequestException('Invalid OTP!');
102
+ // throw new BadRequestException('Invalid OTP!');
103
+ return {
104
+ sucess: false,
105
+ message: 'Invalid OTP!',
106
+ };
103
107
  }
104
108
 
105
109
  // Proceed to login