@drax/audit-back 0.38.1 → 0.40.0
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/dist/models/AuditModel.js +8 -3
- package/dist/schemas/AuditSchema.js +7 -2
- package/dist/utils/RegisterCrudEvent.js +63 -11
- package/package.json +4 -4
- package/src/models/AuditModel.ts +8 -3
- package/src/schemas/AuditSchema.ts +7 -2
- package/src/utils/RegisterCrudEvent.ts +72 -11
- package/tsconfig.tsbuildinfo +1 -1
- package/types/models/AuditModel.d.ts.map +1 -1
- package/types/schemas/AuditSchema.d.ts +62 -20
- package/types/schemas/AuditSchema.d.ts.map +1 -1
- package/types/utils/RegisterCrudEvent.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditModel.d.ts","sourceRoot":"","sources":["../../src/models/AuditModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AAE7C,QAAA,MAAM,WAAW;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AuditModel.d.ts","sourceRoot":"","sources":["../../src/models/AuditModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AAE7C,QAAA,MAAM,WAAW;;;;;;;;EA2BK,CAAC;AAgBvB,QAAA,MAAM,UAAU,wCAA0F,CAAC;AAE3G,OAAO,EACH,WAAW,EACX,UAAU,EACb,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const AuditBaseSchema: z.ZodObject<{
|
|
3
3
|
entity: z.ZodString;
|
|
4
|
+
resourceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4
5
|
user: z.ZodObject<{
|
|
5
6
|
id: z.ZodString;
|
|
6
7
|
username: z.ZodString;
|
|
@@ -19,16 +20,16 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
19
20
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
21
|
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
22
|
field: z.ZodString;
|
|
22
|
-
old: z.ZodNullable<z.ZodOptional<z.
|
|
23
|
-
new: z.ZodNullable<z.ZodOptional<z.
|
|
23
|
+
old: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
24
|
+
new: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
24
25
|
}, "strip", z.ZodTypeAny, {
|
|
25
26
|
field?: string;
|
|
26
|
-
old?:
|
|
27
|
-
new?:
|
|
27
|
+
old?: any;
|
|
28
|
+
new?: any;
|
|
28
29
|
}, {
|
|
29
30
|
field?: string;
|
|
30
|
-
old?:
|
|
31
|
-
new?:
|
|
31
|
+
old?: any;
|
|
32
|
+
new?: any;
|
|
32
33
|
}>, "many">>;
|
|
33
34
|
sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
35
|
requestId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -43,8 +44,19 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
43
44
|
id?: string;
|
|
44
45
|
name?: string;
|
|
45
46
|
}>>>;
|
|
47
|
+
apiKey: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
48
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
id?: string;
|
|
52
|
+
name?: string;
|
|
53
|
+
}, {
|
|
54
|
+
id?: string;
|
|
55
|
+
name?: string;
|
|
56
|
+
}>>>;
|
|
46
57
|
}, "strip", z.ZodTypeAny, {
|
|
47
58
|
entity?: string;
|
|
59
|
+
resourceId?: string;
|
|
48
60
|
user?: {
|
|
49
61
|
id?: string;
|
|
50
62
|
username?: string;
|
|
@@ -55,8 +67,8 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
55
67
|
userAgent?: string;
|
|
56
68
|
changes?: {
|
|
57
69
|
field?: string;
|
|
58
|
-
old?:
|
|
59
|
-
new?:
|
|
70
|
+
old?: any;
|
|
71
|
+
new?: any;
|
|
60
72
|
}[];
|
|
61
73
|
sessionId?: string;
|
|
62
74
|
requestId?: string;
|
|
@@ -65,8 +77,13 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
65
77
|
id?: string;
|
|
66
78
|
name?: string;
|
|
67
79
|
};
|
|
80
|
+
apiKey?: {
|
|
81
|
+
id?: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
};
|
|
68
84
|
}, {
|
|
69
85
|
entity?: string;
|
|
86
|
+
resourceId?: string;
|
|
70
87
|
user?: {
|
|
71
88
|
id?: string;
|
|
72
89
|
username?: string;
|
|
@@ -77,8 +94,8 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
77
94
|
userAgent?: string;
|
|
78
95
|
changes?: {
|
|
79
96
|
field?: string;
|
|
80
|
-
old?:
|
|
81
|
-
new?:
|
|
97
|
+
old?: any;
|
|
98
|
+
new?: any;
|
|
82
99
|
}[];
|
|
83
100
|
sessionId?: string;
|
|
84
101
|
requestId?: string;
|
|
@@ -87,9 +104,14 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
87
104
|
id?: string;
|
|
88
105
|
name?: string;
|
|
89
106
|
};
|
|
107
|
+
apiKey?: {
|
|
108
|
+
id?: string;
|
|
109
|
+
name?: string;
|
|
110
|
+
};
|
|
90
111
|
}>;
|
|
91
112
|
declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
92
113
|
entity: z.ZodString;
|
|
114
|
+
resourceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
115
|
user: z.ZodObject<{
|
|
94
116
|
id: z.ZodString;
|
|
95
117
|
username: z.ZodString;
|
|
@@ -108,16 +130,16 @@ declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
108
130
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
131
|
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
132
|
field: z.ZodString;
|
|
111
|
-
old: z.ZodNullable<z.ZodOptional<z.
|
|
112
|
-
new: z.ZodNullable<z.ZodOptional<z.
|
|
133
|
+
old: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
134
|
+
new: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
113
135
|
}, "strip", z.ZodTypeAny, {
|
|
114
136
|
field?: string;
|
|
115
|
-
old?:
|
|
116
|
-
new?:
|
|
137
|
+
old?: any;
|
|
138
|
+
new?: any;
|
|
117
139
|
}, {
|
|
118
140
|
field?: string;
|
|
119
|
-
old?:
|
|
120
|
-
new?:
|
|
141
|
+
old?: any;
|
|
142
|
+
new?: any;
|
|
121
143
|
}>, "many">>;
|
|
122
144
|
sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
123
145
|
requestId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -132,11 +154,22 @@ declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
132
154
|
id?: string;
|
|
133
155
|
name?: string;
|
|
134
156
|
}>>>;
|
|
157
|
+
apiKey: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
158
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
159
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
id?: string;
|
|
162
|
+
name?: string;
|
|
163
|
+
}, {
|
|
164
|
+
id?: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
}>>>;
|
|
135
167
|
}, {
|
|
136
168
|
_id: z.ZodString;
|
|
137
169
|
createdAt: z.ZodDate;
|
|
138
170
|
}>, "strip", z.ZodTypeAny, {
|
|
139
171
|
entity?: string;
|
|
172
|
+
resourceId?: string;
|
|
140
173
|
user?: {
|
|
141
174
|
id?: string;
|
|
142
175
|
username?: string;
|
|
@@ -147,8 +180,8 @@ declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
147
180
|
userAgent?: string;
|
|
148
181
|
changes?: {
|
|
149
182
|
field?: string;
|
|
150
|
-
old?:
|
|
151
|
-
new?:
|
|
183
|
+
old?: any;
|
|
184
|
+
new?: any;
|
|
152
185
|
}[];
|
|
153
186
|
sessionId?: string;
|
|
154
187
|
requestId?: string;
|
|
@@ -157,10 +190,15 @@ declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
157
190
|
id?: string;
|
|
158
191
|
name?: string;
|
|
159
192
|
};
|
|
193
|
+
apiKey?: {
|
|
194
|
+
id?: string;
|
|
195
|
+
name?: string;
|
|
196
|
+
};
|
|
160
197
|
_id?: string;
|
|
161
198
|
createdAt?: Date;
|
|
162
199
|
}, {
|
|
163
200
|
entity?: string;
|
|
201
|
+
resourceId?: string;
|
|
164
202
|
user?: {
|
|
165
203
|
id?: string;
|
|
166
204
|
username?: string;
|
|
@@ -171,8 +209,8 @@ declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
171
209
|
userAgent?: string;
|
|
172
210
|
changes?: {
|
|
173
211
|
field?: string;
|
|
174
|
-
old?:
|
|
175
|
-
new?:
|
|
212
|
+
old?: any;
|
|
213
|
+
new?: any;
|
|
176
214
|
}[];
|
|
177
215
|
sessionId?: string;
|
|
178
216
|
requestId?: string;
|
|
@@ -181,6 +219,10 @@ declare const AuditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
181
219
|
id?: string;
|
|
182
220
|
name?: string;
|
|
183
221
|
};
|
|
222
|
+
apiKey?: {
|
|
223
|
+
id?: string;
|
|
224
|
+
name?: string;
|
|
225
|
+
};
|
|
184
226
|
_id?: string;
|
|
185
227
|
createdAt?: Date;
|
|
186
228
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/AuditSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"AuditSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/AuditSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BnB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKX,CAAA;AAEN,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAE,eAAe,EAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterCrudEvent.d.ts","sourceRoot":"","sources":["../../src/utils/RegisterCrudEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAShD,iBAAe,iBAAiB,CAAC,aAAa,EAAE,cAAc,+
|
|
1
|
+
{"version":3,"file":"RegisterCrudEvent.d.ts","sourceRoot":"","sources":["../../src/utils/RegisterCrudEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAShD,iBAAe,iBAAiB,CAAC,aAAa,EAAE,cAAc,+CAuI7D;AAED,OAAO,EAAC,iBAAiB,EAAC,CAAA;AAC1B,eAAe,iBAAiB,CAAA"}
|