@tmlmobilidade/go-types-shared 20260911.1754.53 → 20260914.1747.44

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.
@@ -21,7 +21,7 @@ export declare const NoteCommentSchema: z.ZodObject<{
21
21
  type: z.ZodLiteral<"note">;
22
22
  _id: z.ZodOptional<z.ZodString>;
23
23
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
24
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
+ created_by: z.ZodString;
25
25
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
26
26
  updated_by: z.ZodOptional<z.ZodString>;
27
27
  }, "strip", z.ZodTypeAny, {
@@ -30,7 +30,7 @@ export declare const NoteCommentSchema: z.ZodObject<{
30
30
  created_at: number & {
31
31
  __brand: "UnixMilliseconds";
32
32
  };
33
- created_by: string | null;
33
+ created_by: string;
34
34
  updated_at: number & {
35
35
  __brand: "UnixMilliseconds";
36
36
  };
@@ -40,16 +40,16 @@ export declare const NoteCommentSchema: z.ZodObject<{
40
40
  message: string;
41
41
  type: "note";
42
42
  created_at: string | number;
43
+ created_by: string;
43
44
  updated_at: string | number;
44
45
  _id?: string | undefined;
45
- created_by?: string | null | undefined;
46
46
  updated_by?: string | undefined;
47
47
  }>;
48
48
  export declare const FieldChangedCommentSchema: z.ZodObject<{
49
49
  type: z.ZodLiteral<"field_changed">;
50
50
  _id: z.ZodOptional<z.ZodString>;
51
51
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
52
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
52
+ created_by: z.ZodString;
53
53
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
54
54
  updated_by: z.ZodOptional<z.ZodString>;
55
55
  curr_value: z.ZodAny;
@@ -87,7 +87,7 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
87
87
  created_at: number & {
88
88
  __brand: "UnixMilliseconds";
89
89
  };
90
- created_by: string | null;
90
+ created_by: string;
91
91
  updated_at: number & {
92
92
  __brand: "UnixMilliseconds";
93
93
  };
@@ -106,10 +106,10 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
106
106
  }, {
107
107
  type: "field_changed";
108
108
  created_at: string | number;
109
+ created_by: string;
109
110
  updated_at: string | number;
110
111
  field: string;
111
112
  _id?: string | undefined;
112
- created_by?: string | null | undefined;
113
113
  updated_by?: string | undefined;
114
114
  curr_value?: any;
115
115
  prev_value?: any;
@@ -125,7 +125,7 @@ export declare const CrudCommentSchema: z.ZodObject<{
125
125
  type: z.ZodLiteral<"crud">;
126
126
  _id: z.ZodOptional<z.ZodString>;
127
127
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
128
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
128
+ created_by: z.ZodString;
129
129
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
130
130
  updated_by: z.ZodOptional<z.ZodString>;
131
131
  action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
@@ -134,7 +134,7 @@ export declare const CrudCommentSchema: z.ZodObject<{
134
134
  created_at: number & {
135
135
  __brand: "UnixMilliseconds";
136
136
  };
137
- created_by: string | null;
137
+ created_by: string;
138
138
  updated_at: number & {
139
139
  __brand: "UnixMilliseconds";
140
140
  };
@@ -144,10 +144,10 @@ export declare const CrudCommentSchema: z.ZodObject<{
144
144
  }, {
145
145
  type: "crud";
146
146
  created_at: string | number;
147
+ created_by: string;
147
148
  updated_at: string | number;
148
149
  action: "create" | "update" | "delete" | "archive" | "restore";
149
150
  _id?: string | undefined;
150
- created_by?: string | null | undefined;
151
151
  updated_by?: string | undefined;
152
152
  }>;
153
153
  export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -155,7 +155,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
155
155
  type: z.ZodLiteral<"note">;
156
156
  _id: z.ZodOptional<z.ZodString>;
157
157
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
158
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
158
+ created_by: z.ZodString;
159
159
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
160
160
  updated_by: z.ZodOptional<z.ZodString>;
161
161
  }, "strip", z.ZodTypeAny, {
@@ -164,7 +164,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
164
164
  created_at: number & {
165
165
  __brand: "UnixMilliseconds";
166
166
  };
167
- created_by: string | null;
167
+ created_by: string;
168
168
  updated_at: number & {
169
169
  __brand: "UnixMilliseconds";
170
170
  };
@@ -174,15 +174,15 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
174
174
  message: string;
175
175
  type: "note";
176
176
  created_at: string | number;
177
+ created_by: string;
177
178
  updated_at: string | number;
178
179
  _id?: string | undefined;
179
- created_by?: string | null | undefined;
180
180
  updated_by?: string | undefined;
181
181
  }>, z.ZodObject<{
182
182
  type: z.ZodLiteral<"field_changed">;
183
183
  _id: z.ZodOptional<z.ZodString>;
184
184
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
185
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
185
+ created_by: z.ZodString;
186
186
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
187
187
  updated_by: z.ZodOptional<z.ZodString>;
188
188
  curr_value: z.ZodAny;
@@ -220,7 +220,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
220
220
  created_at: number & {
221
221
  __brand: "UnixMilliseconds";
222
222
  };
223
- created_by: string | null;
223
+ created_by: string;
224
224
  updated_at: number & {
225
225
  __brand: "UnixMilliseconds";
226
226
  };
@@ -239,10 +239,10 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
239
239
  }, {
240
240
  type: "field_changed";
241
241
  created_at: string | number;
242
+ created_by: string;
242
243
  updated_at: string | number;
243
244
  field: string;
244
245
  _id?: string | undefined;
245
- created_by?: string | null | undefined;
246
246
  updated_by?: string | undefined;
247
247
  curr_value?: any;
248
248
  prev_value?: any;
@@ -257,7 +257,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
257
257
  type: z.ZodLiteral<"crud">;
258
258
  _id: z.ZodOptional<z.ZodString>;
259
259
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
260
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
260
+ created_by: z.ZodString;
261
261
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../index.js").UnixMilliseconds, string | number>;
262
262
  updated_by: z.ZodOptional<z.ZodString>;
263
263
  action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
@@ -266,7 +266,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
266
266
  created_at: number & {
267
267
  __brand: "UnixMilliseconds";
268
268
  };
269
- created_by: string | null;
269
+ created_by: string;
270
270
  updated_at: number & {
271
271
  __brand: "UnixMilliseconds";
272
272
  };
@@ -276,10 +276,10 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
276
276
  }, {
277
277
  type: "crud";
278
278
  created_at: string | number;
279
+ created_by: string;
279
280
  updated_at: string | number;
280
281
  action: "create" | "update" | "delete" | "archive" | "restore";
281
282
  _id?: string | undefined;
282
- created_by?: string | null | undefined;
283
283
  updated_by?: string | undefined;
284
284
  }>]>, {
285
285
  message: string;
@@ -287,7 +287,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
287
287
  created_at: number & {
288
288
  __brand: "UnixMilliseconds";
289
289
  };
290
- created_by: string | null;
290
+ created_by: string;
291
291
  updated_at: number & {
292
292
  __brand: "UnixMilliseconds";
293
293
  };
@@ -298,7 +298,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
298
298
  created_at: number & {
299
299
  __brand: "UnixMilliseconds";
300
300
  };
301
- created_by: string | null;
301
+ created_by: string;
302
302
  updated_at: number & {
303
303
  __brand: "UnixMilliseconds";
304
304
  };
@@ -319,7 +319,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
319
319
  created_at: number & {
320
320
  __brand: "UnixMilliseconds";
321
321
  };
322
- created_by: string | null;
322
+ created_by: string;
323
323
  updated_at: number & {
324
324
  __brand: "UnixMilliseconds";
325
325
  };
@@ -330,17 +330,17 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
330
330
  message: string;
331
331
  type: "note";
332
332
  created_at: string | number;
333
+ created_by: string;
333
334
  updated_at: string | number;
334
335
  _id?: string | undefined;
335
- created_by?: string | null | undefined;
336
336
  updated_by?: string | undefined;
337
337
  } | {
338
338
  type: "field_changed";
339
339
  created_at: string | number;
340
+ created_by: string;
340
341
  updated_at: string | number;
341
342
  field: string;
342
343
  _id?: string | undefined;
343
- created_by?: string | null | undefined;
344
344
  updated_by?: string | undefined;
345
345
  curr_value?: any;
346
346
  prev_value?: any;
@@ -354,10 +354,10 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
354
354
  } | {
355
355
  type: "crud";
356
356
  created_at: string | number;
357
+ created_by: string;
357
358
  updated_at: string | number;
358
359
  action: "create" | "update" | "delete" | "archive" | "restore";
359
360
  _id?: string | undefined;
360
- created_by?: string | null | undefined;
361
361
  updated_by?: string | undefined;
362
362
  }>;
363
363
  export type Comment = z.infer<typeof CommentSchema>;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const BaseDocumentSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../datetime/unix-millis.js").UnixMilliseconds, string | number>;
5
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
+ created_by: z.ZodString;
6
6
  is_locked: z.ZodDefault<z.ZodBoolean>;
7
7
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("../datetime/unix-millis.js").UnixMilliseconds, string | number>;
8
8
  updated_by: z.ZodOptional<z.ZodString>;
@@ -11,7 +11,7 @@ export declare const BaseDocumentSchema: z.ZodObject<{
11
11
  created_at: number & {
12
12
  __brand: "UnixMilliseconds";
13
13
  };
14
- created_by: string | null;
14
+ created_by: string;
15
15
  is_locked: boolean;
16
16
  updated_at: number & {
17
17
  __brand: "UnixMilliseconds";
@@ -20,8 +20,8 @@ export declare const BaseDocumentSchema: z.ZodObject<{
20
20
  }, {
21
21
  _id: string;
22
22
  created_at: string | number;
23
+ created_by: string;
23
24
  updated_at: string | number;
24
- created_by?: string | null | undefined;
25
25
  is_locked?: boolean | undefined;
26
26
  updated_by?: string | undefined;
27
27
  }>;
@@ -5,7 +5,7 @@ import { z } from 'zod';
5
5
  export const BaseDocumentSchema = z.object({
6
6
  _id: z.string(),
7
7
  created_at: UnixMillisecondsSchema,
8
- created_by: z.string().nullable().default(null),
8
+ created_by: z.string(),
9
9
  is_locked: z.boolean().default(false),
10
10
  updated_at: UnixMillisecondsSchema,
11
11
  updated_by: z.string().optional(),
@@ -6,7 +6,7 @@ export type Scope = z.infer<typeof ScopeSchema>;
6
6
  export declare const ProposedChangeSchema: z.ZodObject<{
7
7
  _id: z.ZodString;
8
8
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, UnixMilliseconds, string | number>;
9
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9
+ created_by: z.ZodString;
10
10
  is_locked: z.ZodDefault<z.ZodBoolean>;
11
11
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, UnixMilliseconds, string | number>;
12
12
  updated_by: z.ZodOptional<z.ZodString>;
@@ -22,7 +22,7 @@ export declare const ProposedChangeSchema: z.ZodObject<{
22
22
  created_at: number & {
23
23
  __brand: "UnixMilliseconds";
24
24
  };
25
- created_by: string | null;
25
+ created_by: string;
26
26
  is_locked: boolean;
27
27
  updated_at: number & {
28
28
  __brand: "UnixMilliseconds";
@@ -36,11 +36,11 @@ export declare const ProposedChangeSchema: z.ZodObject<{
36
36
  status: string;
37
37
  _id: string;
38
38
  created_at: string | number;
39
+ created_by: string;
39
40
  updated_at: string | number;
40
41
  field: string;
41
42
  related_id: string;
42
43
  scope: "stop" | "lines";
43
- created_by?: string | null | undefined;
44
44
  is_locked?: boolean | undefined;
45
45
  updated_by?: string | undefined;
46
46
  curr_value?: any;
@@ -62,7 +62,7 @@ export type ProposedChange<T> = {
62
62
  export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
63
63
  _id: z.ZodString;
64
64
  created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, UnixMilliseconds, string | number>;
65
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
65
+ created_by: z.ZodString;
66
66
  is_locked: z.ZodDefault<z.ZodBoolean>;
67
67
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, UnixMilliseconds, string | number>;
68
68
  updated_by: z.ZodOptional<z.ZodString>;
@@ -74,7 +74,7 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
74
74
  status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["pending", "approved", "rejected", "none"]>>;
75
75
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
76
76
  status: "pending" | "approved" | "rejected" | "none";
77
- created_by: string | null;
77
+ created_by: string;
78
78
  is_locked: boolean;
79
79
  field: string;
80
80
  related_id: string;
@@ -83,10 +83,10 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
83
83
  curr_value?: any;
84
84
  }, {
85
85
  status: string;
86
+ created_by: string;
86
87
  field: string;
87
88
  related_id: string;
88
89
  scope: "stop" | "lines";
89
- created_by?: string | null | undefined;
90
90
  is_locked?: boolean | undefined;
91
91
  updated_by?: string | undefined;
92
92
  curr_value?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-types-shared",
3
- "version": "20260911.1754.53",
3
+ "version": "20260914.1747.44",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"