@drax/audit-back 0.50.0 → 1.0.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/routes/AuditRoutes.js +1 -1
- package/dist/schemas/AuditSchema.js +1 -1
- package/package.json +4 -4
- package/src/routes/AuditRoutes.ts +1 -1
- package/src/schemas/AuditSchema.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/schemas/AuditSchema.d.ts +11 -180
- package/types/schemas/AuditSchema.d.ts.map +1 -1
|
@@ -6,15 +6,7 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
username: z.ZodString;
|
|
8
8
|
rolName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
-
},
|
|
10
|
-
id?: string;
|
|
11
|
-
username?: string;
|
|
12
|
-
rolName?: string;
|
|
13
|
-
}, {
|
|
14
|
-
id?: string;
|
|
15
|
-
username?: string;
|
|
16
|
-
rolName?: string;
|
|
17
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
18
10
|
action: z.ZodString;
|
|
19
11
|
ip: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
12
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -22,93 +14,19 @@ declare const AuditBaseSchema: z.ZodObject<{
|
|
|
22
14
|
field: z.ZodString;
|
|
23
15
|
old: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
24
16
|
new: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
25
|
-
},
|
|
26
|
-
field?: string;
|
|
27
|
-
old?: any;
|
|
28
|
-
new?: any;
|
|
29
|
-
}, {
|
|
30
|
-
field?: string;
|
|
31
|
-
old?: any;
|
|
32
|
-
new?: any;
|
|
33
|
-
}>, "many">>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
34
18
|
sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
19
|
requestId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
20
|
detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
21
|
tenant: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
38
22
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
39
23
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
-
},
|
|
41
|
-
id?: string;
|
|
42
|
-
name?: string;
|
|
43
|
-
}, {
|
|
44
|
-
id?: string;
|
|
45
|
-
name?: string;
|
|
46
|
-
}>>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
47
25
|
apiKey: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
48
26
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
49
27
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
name?: string;
|
|
53
|
-
}, {
|
|
54
|
-
id?: string;
|
|
55
|
-
name?: string;
|
|
56
|
-
}>>>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
entity?: string;
|
|
59
|
-
resourceId?: string;
|
|
60
|
-
user?: {
|
|
61
|
-
id?: string;
|
|
62
|
-
username?: string;
|
|
63
|
-
rolName?: string;
|
|
64
|
-
};
|
|
65
|
-
action?: string;
|
|
66
|
-
ip?: string;
|
|
67
|
-
userAgent?: string;
|
|
68
|
-
changes?: {
|
|
69
|
-
field?: string;
|
|
70
|
-
old?: any;
|
|
71
|
-
new?: any;
|
|
72
|
-
}[];
|
|
73
|
-
sessionId?: string;
|
|
74
|
-
requestId?: string;
|
|
75
|
-
detail?: string;
|
|
76
|
-
tenant?: {
|
|
77
|
-
id?: string;
|
|
78
|
-
name?: string;
|
|
79
|
-
};
|
|
80
|
-
apiKey?: {
|
|
81
|
-
id?: string;
|
|
82
|
-
name?: string;
|
|
83
|
-
};
|
|
84
|
-
}, {
|
|
85
|
-
entity?: string;
|
|
86
|
-
resourceId?: string;
|
|
87
|
-
user?: {
|
|
88
|
-
id?: string;
|
|
89
|
-
username?: string;
|
|
90
|
-
rolName?: string;
|
|
91
|
-
};
|
|
92
|
-
action?: string;
|
|
93
|
-
ip?: string;
|
|
94
|
-
userAgent?: string;
|
|
95
|
-
changes?: {
|
|
96
|
-
field?: string;
|
|
97
|
-
old?: any;
|
|
98
|
-
new?: any;
|
|
99
|
-
}[];
|
|
100
|
-
sessionId?: string;
|
|
101
|
-
requestId?: string;
|
|
102
|
-
detail?: string;
|
|
103
|
-
tenant?: {
|
|
104
|
-
id?: string;
|
|
105
|
-
name?: string;
|
|
106
|
-
};
|
|
107
|
-
apiKey?: {
|
|
108
|
-
id?: string;
|
|
109
|
-
name?: string;
|
|
110
|
-
};
|
|
111
|
-
}>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
112
30
|
declare const AuditSchema: z.ZodObject<{
|
|
113
31
|
entity: z.ZodString;
|
|
114
32
|
resourceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -116,15 +34,7 @@ declare const AuditSchema: z.ZodObject<{
|
|
|
116
34
|
id: z.ZodString;
|
|
117
35
|
username: z.ZodString;
|
|
118
36
|
rolName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
119
|
-
},
|
|
120
|
-
id?: string;
|
|
121
|
-
username?: string;
|
|
122
|
-
rolName?: string;
|
|
123
|
-
}, {
|
|
124
|
-
id?: string;
|
|
125
|
-
username?: string;
|
|
126
|
-
rolName?: string;
|
|
127
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
128
38
|
action: z.ZodString;
|
|
129
39
|
ip: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
130
40
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -132,100 +42,21 @@ declare const AuditSchema: z.ZodObject<{
|
|
|
132
42
|
field: z.ZodString;
|
|
133
43
|
old: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
134
44
|
new: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
135
|
-
},
|
|
136
|
-
field?: string;
|
|
137
|
-
old?: any;
|
|
138
|
-
new?: any;
|
|
139
|
-
}, {
|
|
140
|
-
field?: string;
|
|
141
|
-
old?: any;
|
|
142
|
-
new?: any;
|
|
143
|
-
}>, "many">>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
144
46
|
sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
145
47
|
requestId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
146
48
|
detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
147
49
|
tenant: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
148
50
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
149
51
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
150
|
-
},
|
|
151
|
-
id?: string;
|
|
152
|
-
name?: string;
|
|
153
|
-
}, {
|
|
154
|
-
id?: string;
|
|
155
|
-
name?: string;
|
|
156
|
-
}>>>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
157
53
|
apiKey: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
158
54
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
159
55
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
|
-
},
|
|
161
|
-
id?: string;
|
|
162
|
-
name?: string;
|
|
163
|
-
}, {
|
|
164
|
-
id?: string;
|
|
165
|
-
name?: string;
|
|
166
|
-
}>>>;
|
|
167
|
-
} & {
|
|
56
|
+
}, z.core.$strip>>>;
|
|
168
57
|
_id: z.ZodString;
|
|
169
|
-
createdAt: z.
|
|
170
|
-
},
|
|
171
|
-
_id?: string;
|
|
172
|
-
createdAt?: Date;
|
|
173
|
-
entity?: string;
|
|
174
|
-
resourceId?: string;
|
|
175
|
-
user?: {
|
|
176
|
-
id?: string;
|
|
177
|
-
username?: string;
|
|
178
|
-
rolName?: string;
|
|
179
|
-
};
|
|
180
|
-
action?: string;
|
|
181
|
-
ip?: string;
|
|
182
|
-
userAgent?: string;
|
|
183
|
-
changes?: {
|
|
184
|
-
field?: string;
|
|
185
|
-
old?: any;
|
|
186
|
-
new?: any;
|
|
187
|
-
}[];
|
|
188
|
-
sessionId?: string;
|
|
189
|
-
requestId?: string;
|
|
190
|
-
detail?: string;
|
|
191
|
-
tenant?: {
|
|
192
|
-
id?: string;
|
|
193
|
-
name?: string;
|
|
194
|
-
};
|
|
195
|
-
apiKey?: {
|
|
196
|
-
id?: string;
|
|
197
|
-
name?: string;
|
|
198
|
-
};
|
|
199
|
-
}, {
|
|
200
|
-
_id?: string;
|
|
201
|
-
createdAt?: Date;
|
|
202
|
-
entity?: string;
|
|
203
|
-
resourceId?: string;
|
|
204
|
-
user?: {
|
|
205
|
-
id?: string;
|
|
206
|
-
username?: string;
|
|
207
|
-
rolName?: string;
|
|
208
|
-
};
|
|
209
|
-
action?: string;
|
|
210
|
-
ip?: string;
|
|
211
|
-
userAgent?: string;
|
|
212
|
-
changes?: {
|
|
213
|
-
field?: string;
|
|
214
|
-
old?: any;
|
|
215
|
-
new?: any;
|
|
216
|
-
}[];
|
|
217
|
-
sessionId?: string;
|
|
218
|
-
requestId?: string;
|
|
219
|
-
detail?: string;
|
|
220
|
-
tenant?: {
|
|
221
|
-
id?: string;
|
|
222
|
-
name?: string;
|
|
223
|
-
};
|
|
224
|
-
apiKey?: {
|
|
225
|
-
id?: string;
|
|
226
|
-
name?: string;
|
|
227
|
-
};
|
|
228
|
-
}>;
|
|
58
|
+
createdAt: z.ZodISODateTime;
|
|
59
|
+
}, z.core.$strip>;
|
|
229
60
|
export default AuditSchema;
|
|
230
61
|
export { AuditSchema, AuditBaseSchema };
|
|
231
62
|
//# sourceMappingURL=AuditSchema.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BnB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKX,CAAA;AAEN,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAE,eAAe,EAAC,CAAA"}
|