@drax/audit-back 0.38.0 → 0.39.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.
@@ -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;;;;;;;;EAsBK,CAAC;AAgBvB,QAAA,MAAM,UAAU,wCAA0F,CAAC;AAE3G,OAAO,EACH,WAAW,EACX,UAAU,EACb,CAAA;AAED,eAAe,UAAU,CAAA"}
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.ZodString>>;
23
- new: z.ZodNullable<z.ZodOptional<z.ZodString>>;
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?: string;
27
- new?: string;
27
+ old?: any;
28
+ new?: any;
28
29
  }, {
29
30
  field?: string;
30
- old?: string;
31
- new?: string;
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?: string;
59
- new?: string;
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?: string;
81
- new?: string;
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.ZodString>>;
112
- new: z.ZodNullable<z.ZodOptional<z.ZodString>>;
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?: string;
116
- new?: string;
137
+ old?: any;
138
+ new?: any;
117
139
  }, {
118
140
  field?: string;
119
- old?: string;
120
- new?: string;
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?: string;
151
- new?: string;
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?: string;
175
- new?: string;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBnB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKX,CAAA;AAEN,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAE,eAAe,EAAC,CAAA"}
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,+CA0E7D;AAED,OAAO,EAAC,iBAAiB,EAAC,CAAA;AAC1B,eAAe,iBAAiB,CAAA"}
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,+CAyH7D;AAED,OAAO,EAAC,iBAAiB,EAAC,CAAA;AAC1B,eAAe,iBAAiB,CAAA"}