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/.vscode/extensions.json +5 -0
- package/dist/module/listmaster/controller/list-master.controller.d.ts +4 -1
- package/dist/module/listmaster/service/list-master.service.d.ts +7 -1
- package/dist/module/listmaster/service/list-master.service.js +8 -12
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.d.ts +24 -6
- package/dist/module/meta/repository/entity-master.repository.d.ts +24 -6
- package/dist/module/meta/service/entity-master.service.d.ts +24 -6
- package/dist/module/notification/controller/otp.controller.d.ts +3 -0
- package/dist/module/notification/service/otp.service.d.ts +3 -0
- package/dist/module/notification/service/otp.service.js +4 -1
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/listmaster/service/list-master.service.ts +21 -11
- package/src/module/notification/service/otp.service.ts +5 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|