@konplit-services/common 1.0.68 → 1.0.70
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.
|
@@ -4,6 +4,7 @@ export declare enum LOGACTIONS {
|
|
|
4
4
|
ROLE_UPDATED = "ROLE_UPDATED",
|
|
5
5
|
USER_ADDED = "USER_ADDED",
|
|
6
6
|
USER_BLOCKED = "USER_BLOCKED",
|
|
7
|
+
USER_UPDATED = "USER_UPDATED",
|
|
7
8
|
PERMISSION_ADDED = "PERMISSION_ADDED",
|
|
8
9
|
PERMISSION_REMOVED = "PERMISSION_REMOVED",
|
|
9
10
|
PERMISSION_ADDED_USER = "PERMISSION_ADDED_USER",
|
|
@@ -10,6 +10,7 @@ var LOGACTIONS;
|
|
|
10
10
|
//ADMIN USERS
|
|
11
11
|
LOGACTIONS["USER_ADDED"] = "USER_ADDED";
|
|
12
12
|
LOGACTIONS["USER_BLOCKED"] = "USER_BLOCKED";
|
|
13
|
+
LOGACTIONS["USER_UPDATED"] = "USER_UPDATED";
|
|
13
14
|
// PERMISSIONS
|
|
14
15
|
LOGACTIONS["PERMISSION_ADDED"] = "PERMISSION_ADDED";
|
|
15
16
|
LOGACTIONS["PERMISSION_REMOVED"] = "PERMISSION_REMOVED";
|
|
@@ -6,6 +6,7 @@ import { NotAuthorizedError } from "../errors/notAuthorized";
|
|
|
6
6
|
import { AxiosRequestError } from "../errors/axios-request-error";
|
|
7
7
|
import { JetStreamClient } from "nats";
|
|
8
8
|
import { LOGACTIONS } from "../log-activities/actions";
|
|
9
|
+
import { JWT_Data } from "./Jwt";
|
|
9
10
|
interface User {
|
|
10
11
|
id?: string;
|
|
11
12
|
email?: string;
|
|
@@ -20,7 +21,7 @@ export declare class Service {
|
|
|
20
21
|
protected NotAuthorizedError: typeof NotAuthorizedError;
|
|
21
22
|
protected ServiceNotAvailableError: typeof ServiceNotAvailableError;
|
|
22
23
|
protected AxiosRequestError: typeof AxiosRequestError;
|
|
23
|
-
activityLog(client: JetStreamClient, user: User
|
|
24
|
-
merchantOnlyLogs(client: JetStreamClient, user: User
|
|
24
|
+
activityLog(client: JetStreamClient, user: Partial<User> | Partial<JWT_Data>, action: LOGACTIONS, data: any): void;
|
|
25
|
+
merchantOnlyLogs(client: JetStreamClient, user: Partial<User> | Partial<JWT_Data>, action: LOGACTIONS, data: any): void;
|
|
25
26
|
}
|
|
26
27
|
export {};
|