@managesome/eposmatic-toolkit 0.2.466 → 0.2.468
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.
|
@@ -396,7 +396,7 @@ export interface IWorker_PostWarehouseActivityLogs {
|
|
|
396
396
|
title: string;
|
|
397
397
|
description?: string | null;
|
|
398
398
|
changes?: IWarehouseActivityLogChange[];
|
|
399
|
-
staff_id
|
|
399
|
+
staff_id: string;
|
|
400
400
|
staff_name?: string | null;
|
|
401
401
|
severity?: WAREHOUSE_ACTIVITY_LOG_SEVERITY_ENUM;
|
|
402
402
|
}[];
|
|
@@ -34,13 +34,11 @@ export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").
|
|
|
34
34
|
description?: string | null | undefined;
|
|
35
35
|
entity_number?: number | null | undefined;
|
|
36
36
|
actor?: {
|
|
37
|
+
role: string;
|
|
37
38
|
staff_id?: string | null | undefined;
|
|
38
39
|
staff_name?: string | null | undefined;
|
|
39
|
-
uid?: string | null | undefined;
|
|
40
40
|
staff_mobile?: string | null | undefined;
|
|
41
41
|
staff_email?: string | null | undefined;
|
|
42
|
-
role_id?: string | null | undefined;
|
|
43
|
-
role_name?: string | null | undefined;
|
|
44
42
|
} | null | undefined;
|
|
45
43
|
event_at?: NativeDate | null | undefined;
|
|
46
44
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -72,13 +70,11 @@ export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").
|
|
|
72
70
|
description?: string | null | undefined;
|
|
73
71
|
entity_number?: number | null | undefined;
|
|
74
72
|
actor?: {
|
|
73
|
+
role: string;
|
|
75
74
|
staff_id?: string | null | undefined;
|
|
76
75
|
staff_name?: string | null | undefined;
|
|
77
|
-
uid?: string | null | undefined;
|
|
78
76
|
staff_mobile?: string | null | undefined;
|
|
79
77
|
staff_email?: string | null | undefined;
|
|
80
|
-
role_id?: string | null | undefined;
|
|
81
|
-
role_name?: string | null | undefined;
|
|
82
78
|
} | null | undefined;
|
|
83
79
|
event_at?: NativeDate | null | undefined;
|
|
84
80
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -110,13 +106,11 @@ export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").
|
|
|
110
106
|
description?: string | null | undefined;
|
|
111
107
|
entity_number?: number | null | undefined;
|
|
112
108
|
actor?: {
|
|
109
|
+
role: string;
|
|
113
110
|
staff_id?: string | null | undefined;
|
|
114
111
|
staff_name?: string | null | undefined;
|
|
115
|
-
uid?: string | null | undefined;
|
|
116
112
|
staff_mobile?: string | null | undefined;
|
|
117
113
|
staff_email?: string | null | undefined;
|
|
118
|
-
role_id?: string | null | undefined;
|
|
119
|
-
role_name?: string | null | undefined;
|
|
120
114
|
} | null | undefined;
|
|
121
115
|
event_at?: NativeDate | null | undefined;
|
|
122
116
|
}> & Required<{
|
|
@@ -27,20 +27,9 @@ const WarehouseActivityLogActorSchema = new mongoose_1.Schema({
|
|
|
27
27
|
required: false,
|
|
28
28
|
default: null,
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
role: {
|
|
31
31
|
type: String,
|
|
32
|
-
required:
|
|
33
|
-
default: null,
|
|
34
|
-
},
|
|
35
|
-
role_name: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: false,
|
|
38
|
-
default: null,
|
|
39
|
-
},
|
|
40
|
-
uid: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: false,
|
|
43
|
-
default: null,
|
|
32
|
+
required: true,
|
|
44
33
|
},
|
|
45
34
|
}, {
|
|
46
35
|
_id: false,
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { WAREHOUSE_ACTIVITY_LOG_ACTION_ENUM, WAREHOUSE_ACTIVITY_LOG_ENTITY_TYPE_ENUM, WAREHOUSE_ACTIVITY_LOG_SEVERITY_ENUM } from '../../constants';
|
|
2
2
|
export interface IWarehouseActivityLogActor {
|
|
3
|
-
staff_id
|
|
4
|
-
staff_name
|
|
5
|
-
staff_email
|
|
6
|
-
staff_mobile
|
|
7
|
-
|
|
8
|
-
role_name?: string | null;
|
|
9
|
-
uid?: string | null;
|
|
3
|
+
staff_id: string;
|
|
4
|
+
staff_name: string | null;
|
|
5
|
+
staff_email: string | null;
|
|
6
|
+
staff_mobile: string | null;
|
|
7
|
+
role: string;
|
|
10
8
|
}
|
|
11
9
|
export interface IWarehouseActivityLogChange {
|
|
12
10
|
field: string;
|
|
13
|
-
old_value:
|
|
14
|
-
new_value:
|
|
11
|
+
old_value: string | number | null;
|
|
12
|
+
new_value: string | number | null;
|
|
15
13
|
}
|
|
16
14
|
export interface IWarehouseActivityLog {
|
|
17
15
|
_id: string;
|