@tmlmobilidade/types 20250911.1325.18 → 20250911.1428.53
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/src/_common/comment.d.ts +20 -20
- package/dist/src/_common/document.d.ts +4 -4
- package/dist/src/_common/document.js +2 -2
- package/dist/src/_common/proposed-change.d.ts +9 -9
- package/dist/src/agency.d.ts +9 -9
- package/dist/src/alert.d.ts +5 -5
- package/dist/src/auth/role.d.ts +9 -9
- package/dist/src/auth/session.d.ts +9 -9
- package/dist/src/auth/user.d.ts +9 -9
- package/dist/src/auth/verification-token.d.ts +9 -9
- package/dist/src/organization.d.ts +9 -9
- package/dist/src/plans/gtfs-validation.d.ts +9 -9
- package/dist/src/plans/plan.d.ts +9 -9
- package/dist/src/rides/ride-audit.d.ts +27 -27
- package/dist/src/rides/ride-justification.d.ts +69 -69
- package/dist/src/rides/ride.d.ts +9 -9
- package/dist/src/sams/sam.d.ts +9 -9
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +6 -6
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +6 -6
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +5 -5
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +6 -6
- package/dist/src/stop.d.ts +65 -65
- package/dist/src/vehicle-event.d.ts +4 -4
- package/dist/src/zone.d.ts +9 -9
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ export type CommentType = z.infer<typeof CommentTypeSchema>;
|
|
|
5
5
|
export declare const NoteCommentSchema: z.ZodObject<{
|
|
6
6
|
_id: z.ZodString;
|
|
7
7
|
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
|
-
created_by: z.
|
|
8
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
9
9
|
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
10
|
-
updated_by: z.
|
|
10
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
11
11
|
} & {
|
|
12
12
|
message: z.ZodString;
|
|
13
13
|
type: z.ZodLiteral<"note">;
|
|
@@ -16,13 +16,13 @@ export declare const NoteCommentSchema: z.ZodObject<{
|
|
|
16
16
|
created_at: number & {
|
|
17
17
|
__brand: "UnixTimestamp";
|
|
18
18
|
};
|
|
19
|
-
created_by: string;
|
|
20
19
|
updated_at: number & {
|
|
21
20
|
__brand: "UnixTimestamp";
|
|
22
21
|
};
|
|
23
|
-
updated_by: string;
|
|
24
22
|
message: string;
|
|
25
23
|
type: "note";
|
|
24
|
+
created_by?: string | undefined;
|
|
25
|
+
updated_by?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
_id: string;
|
|
28
28
|
created_at: number;
|
|
@@ -65,9 +65,9 @@ export declare const SystemInfoCommentSchema: z.ZodObject<{
|
|
|
65
65
|
export declare const StatusChangedCommentSchema: z.ZodObject<{
|
|
66
66
|
_id: z.ZodString;
|
|
67
67
|
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
68
|
-
created_by: z.
|
|
68
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
69
69
|
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
70
|
-
updated_by: z.
|
|
70
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
71
71
|
} & {
|
|
72
72
|
curr_status: z.ZodString;
|
|
73
73
|
prev_status: z.ZodString;
|
|
@@ -77,14 +77,14 @@ export declare const StatusChangedCommentSchema: z.ZodObject<{
|
|
|
77
77
|
created_at: number & {
|
|
78
78
|
__brand: "UnixTimestamp";
|
|
79
79
|
};
|
|
80
|
-
created_by: string;
|
|
81
80
|
updated_at: number & {
|
|
82
81
|
__brand: "UnixTimestamp";
|
|
83
82
|
};
|
|
84
|
-
updated_by: string;
|
|
85
83
|
type: "statusChanged";
|
|
86
84
|
curr_status: string;
|
|
87
85
|
prev_status: string;
|
|
86
|
+
created_by?: string | undefined;
|
|
87
|
+
updated_by?: string | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
_id: string;
|
|
90
90
|
created_at: number;
|
|
@@ -98,9 +98,9 @@ export declare const StatusChangedCommentSchema: z.ZodObject<{
|
|
|
98
98
|
export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
99
99
|
_id: z.ZodString;
|
|
100
100
|
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
101
|
-
created_by: z.
|
|
101
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
102
102
|
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
103
|
-
updated_by: z.
|
|
103
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
104
104
|
} & {
|
|
105
105
|
message: z.ZodString;
|
|
106
106
|
type: z.ZodLiteral<"note">;
|
|
@@ -109,13 +109,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
109
109
|
created_at: number & {
|
|
110
110
|
__brand: "UnixTimestamp";
|
|
111
111
|
};
|
|
112
|
-
created_by: string;
|
|
113
112
|
updated_at: number & {
|
|
114
113
|
__brand: "UnixTimestamp";
|
|
115
114
|
};
|
|
116
|
-
updated_by: string;
|
|
117
115
|
message: string;
|
|
118
116
|
type: "note";
|
|
117
|
+
created_by?: string | undefined;
|
|
118
|
+
updated_by?: string | undefined;
|
|
119
119
|
}, {
|
|
120
120
|
_id: string;
|
|
121
121
|
created_at: number;
|
|
@@ -156,9 +156,9 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
156
156
|
}>, z.ZodObject<{
|
|
157
157
|
_id: z.ZodString;
|
|
158
158
|
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
159
|
-
created_by: z.
|
|
159
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
160
160
|
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
161
|
-
updated_by: z.
|
|
161
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
162
162
|
} & {
|
|
163
163
|
curr_status: z.ZodString;
|
|
164
164
|
prev_status: z.ZodString;
|
|
@@ -168,14 +168,14 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
168
168
|
created_at: number & {
|
|
169
169
|
__brand: "UnixTimestamp";
|
|
170
170
|
};
|
|
171
|
-
created_by: string;
|
|
172
171
|
updated_at: number & {
|
|
173
172
|
__brand: "UnixTimestamp";
|
|
174
173
|
};
|
|
175
|
-
updated_by: string;
|
|
176
174
|
type: "statusChanged";
|
|
177
175
|
curr_status: string;
|
|
178
176
|
prev_status: string;
|
|
177
|
+
created_by?: string | undefined;
|
|
178
|
+
updated_by?: string | undefined;
|
|
179
179
|
}, {
|
|
180
180
|
_id: string;
|
|
181
181
|
created_at: number;
|
|
@@ -190,13 +190,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
190
190
|
created_at: number & {
|
|
191
191
|
__brand: "UnixTimestamp";
|
|
192
192
|
};
|
|
193
|
-
created_by: string;
|
|
194
193
|
updated_at: number & {
|
|
195
194
|
__brand: "UnixTimestamp";
|
|
196
195
|
};
|
|
197
|
-
updated_by: string;
|
|
198
196
|
message: string;
|
|
199
197
|
type: "note";
|
|
198
|
+
created_by?: string | undefined;
|
|
199
|
+
updated_by?: string | undefined;
|
|
200
200
|
} | {
|
|
201
201
|
_id: string;
|
|
202
202
|
created_at: number & {
|
|
@@ -214,14 +214,14 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
214
214
|
created_at: number & {
|
|
215
215
|
__brand: "UnixTimestamp";
|
|
216
216
|
};
|
|
217
|
-
created_by: string;
|
|
218
217
|
updated_at: number & {
|
|
219
218
|
__brand: "UnixTimestamp";
|
|
220
219
|
};
|
|
221
|
-
updated_by: string;
|
|
222
220
|
type: "statusChanged";
|
|
223
221
|
curr_status: string;
|
|
224
222
|
prev_status: string;
|
|
223
|
+
created_by?: string | undefined;
|
|
224
|
+
updated_by?: string | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
_id: string;
|
|
227
227
|
created_at: number;
|
|
@@ -2,19 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const DocumentSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
6
|
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
-
updated_by: z.
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
_id: string;
|
|
10
10
|
created_at: number & {
|
|
11
11
|
__brand: "UnixTimestamp";
|
|
12
12
|
};
|
|
13
|
-
created_by: string;
|
|
14
13
|
updated_at: number & {
|
|
15
14
|
__brand: "UnixTimestamp";
|
|
16
15
|
};
|
|
17
|
-
|
|
16
|
+
created_by?: string | undefined;
|
|
17
|
+
updated_by?: string | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
_id: string;
|
|
20
20
|
created_at: number;
|
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
export const DocumentSchema = z.object({
|
|
6
6
|
_id: z.string(),
|
|
7
7
|
created_at: unixTimeStampSchema,
|
|
8
|
-
created_by: z.string().
|
|
8
|
+
created_by: z.string().optional(),
|
|
9
9
|
updated_at: unixTimeStampSchema,
|
|
10
|
-
updated_by: z.string().
|
|
10
|
+
updated_by: z.string().optional(),
|
|
11
11
|
});
|
|
@@ -6,9 +6,9 @@ export type Status = z.infer<typeof statusSchema>;
|
|
|
6
6
|
export declare const ProposedChangeSchema: z.ZodObject<{
|
|
7
7
|
_id: z.ZodString;
|
|
8
8
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
9
|
-
created_by: z.
|
|
9
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
10
10
|
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
11
|
-
updated_by: z.
|
|
11
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
12
12
|
} & {
|
|
13
13
|
field_path: z.ZodString;
|
|
14
14
|
field_value: z.ZodAny;
|
|
@@ -21,16 +21,16 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
21
21
|
created_at: number & {
|
|
22
22
|
__brand: "UnixTimestamp";
|
|
23
23
|
};
|
|
24
|
-
created_by: string;
|
|
25
24
|
updated_at: number & {
|
|
26
25
|
__brand: "UnixTimestamp";
|
|
27
26
|
};
|
|
28
|
-
updated_by: string;
|
|
29
27
|
status: "pending" | "accepted" | "declined";
|
|
30
28
|
field_path: string;
|
|
31
29
|
scope: "stop" | "lines";
|
|
32
30
|
target_id: string;
|
|
33
31
|
user_id: string;
|
|
32
|
+
created_by?: string | undefined;
|
|
33
|
+
updated_by?: string | undefined;
|
|
34
34
|
field_value?: any;
|
|
35
35
|
}, {
|
|
36
36
|
_id: string;
|
|
@@ -48,9 +48,9 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
48
48
|
export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
49
49
|
_id: z.ZodString;
|
|
50
50
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
51
|
-
created_by: z.
|
|
51
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
52
52
|
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
53
|
-
updated_by: z.
|
|
53
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
54
54
|
} & {
|
|
55
55
|
field_path: z.ZodString;
|
|
56
56
|
field_value: z.ZodAny;
|
|
@@ -59,13 +59,13 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
|
59
59
|
target_id: z.ZodString;
|
|
60
60
|
user_id: z.ZodString;
|
|
61
61
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
62
|
-
created_by: string;
|
|
63
|
-
updated_by: string;
|
|
64
62
|
status: "pending" | "accepted" | "declined";
|
|
65
63
|
field_path: string;
|
|
66
64
|
scope: "stop" | "lines";
|
|
67
65
|
target_id: string;
|
|
68
66
|
user_id: string;
|
|
67
|
+
created_by?: string | undefined;
|
|
68
|
+
updated_by?: string | undefined;
|
|
69
69
|
field_value?: any;
|
|
70
70
|
}, {
|
|
71
71
|
field_path: string;
|
|
@@ -78,7 +78,7 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
|
78
78
|
field_value?: any;
|
|
79
79
|
}>;
|
|
80
80
|
export declare const UpdateProposedChangeSchema: z.ZodObject<{
|
|
81
|
-
updated_by: z.ZodOptional<z.
|
|
81
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
82
82
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["pending", "accepted", "declined"]>>>;
|
|
83
83
|
field_path: z.ZodOptional<z.ZodString>;
|
|
84
84
|
field_value: z.ZodOptional<z.ZodAny>;
|
package/dist/src/agency.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const AgencySchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
6
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
-
updated_by: z.
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
} & {
|
|
9
9
|
contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
10
10
|
contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -31,11 +31,9 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
31
31
|
created_at: number & {
|
|
32
32
|
__brand: "UnixTimestamp";
|
|
33
33
|
};
|
|
34
|
-
created_by: string;
|
|
35
34
|
updated_at: number & {
|
|
36
35
|
__brand: "UnixTimestamp";
|
|
37
36
|
};
|
|
38
|
-
updated_by: string;
|
|
39
37
|
contact_emails_pta: string[];
|
|
40
38
|
contact_emails_pto: string[];
|
|
41
39
|
fare_url: string;
|
|
@@ -52,6 +50,8 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
52
50
|
short_name: string;
|
|
53
51
|
timezone: string;
|
|
54
52
|
website_url: string;
|
|
53
|
+
created_by?: string | undefined;
|
|
54
|
+
updated_by?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
_id: string;
|
|
57
57
|
created_at: number;
|
|
@@ -76,9 +76,9 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
76
76
|
export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
77
77
|
_id: z.ZodString;
|
|
78
78
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
79
|
-
created_by: z.
|
|
79
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
80
80
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
81
|
-
updated_by: z.
|
|
81
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
82
82
|
} & {
|
|
83
83
|
contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
84
84
|
contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -102,8 +102,6 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
102
102
|
website_url: z.ZodString;
|
|
103
103
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
104
104
|
_id: string;
|
|
105
|
-
created_by: string;
|
|
106
|
-
updated_by: string;
|
|
107
105
|
contact_emails_pta: string[];
|
|
108
106
|
contact_emails_pto: string[];
|
|
109
107
|
fare_url: string;
|
|
@@ -120,6 +118,8 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
120
118
|
short_name: string;
|
|
121
119
|
timezone: string;
|
|
122
120
|
website_url: string;
|
|
121
|
+
created_by?: string | undefined;
|
|
122
|
+
updated_by?: string | undefined;
|
|
123
123
|
}, {
|
|
124
124
|
_id: string;
|
|
125
125
|
fare_url: string;
|
|
@@ -141,7 +141,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
141
141
|
}>;
|
|
142
142
|
export declare const UpdateAgencySchema: z.ZodObject<{
|
|
143
143
|
_id: z.ZodOptional<z.ZodString>;
|
|
144
|
-
updated_by: z.ZodOptional<z.
|
|
144
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
145
145
|
contact_emails_pta: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
146
146
|
contact_emails_pto: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
147
147
|
fare_url: z.ZodOptional<z.ZodString>;
|
package/dist/src/alert.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
13
13
|
_id: z.ZodString;
|
|
14
14
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
15
15
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
16
|
-
updated_by: z.
|
|
16
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
17
17
|
} & {
|
|
18
18
|
active_period_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
19
19
|
active_period_start_date: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -51,7 +51,6 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
51
51
|
updated_at: number & {
|
|
52
52
|
__brand: "UnixTimestamp";
|
|
53
53
|
};
|
|
54
|
-
updated_by: string;
|
|
55
54
|
type: "PLANNED" | "REALTIME";
|
|
56
55
|
municipality_ids: string[];
|
|
57
56
|
active_period_start_date: number & {
|
|
@@ -71,6 +70,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
71
70
|
parent_id: string;
|
|
72
71
|
}[];
|
|
73
72
|
title: string;
|
|
73
|
+
updated_by?: string | undefined;
|
|
74
74
|
active_period_end_date?: import("./_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
75
75
|
coordinates?: [number, number] | null | undefined;
|
|
76
76
|
file_id?: string | null | undefined;
|
|
@@ -107,7 +107,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
107
107
|
_id: z.ZodString;
|
|
108
108
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
109
109
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
110
|
-
updated_by: z.
|
|
110
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
111
111
|
} & {
|
|
112
112
|
active_period_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
113
113
|
active_period_start_date: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -138,7 +138,6 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
138
138
|
type: z.ZodEnum<["PLANNED", "REALTIME"]>;
|
|
139
139
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
140
140
|
created_by: string;
|
|
141
|
-
updated_by: string;
|
|
142
141
|
type: "PLANNED" | "REALTIME";
|
|
143
142
|
municipality_ids: string[];
|
|
144
143
|
active_period_start_date: number & {
|
|
@@ -158,6 +157,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
158
157
|
parent_id: string;
|
|
159
158
|
}[];
|
|
160
159
|
title: string;
|
|
160
|
+
updated_by?: string | undefined;
|
|
161
161
|
active_period_end_date?: import("./_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
162
162
|
coordinates?: [number, number] | null | undefined;
|
|
163
163
|
file_id?: string | null | undefined;
|
|
@@ -188,7 +188,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
188
188
|
publish_end_date?: number | null | undefined;
|
|
189
189
|
}>;
|
|
190
190
|
export declare const UpdateAlertSchema: z.ZodObject<{
|
|
191
|
-
updated_by: z.ZodOptional<z.
|
|
191
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
192
192
|
type: z.ZodOptional<z.ZodEnum<["PLANNED", "REALTIME"]>>;
|
|
193
193
|
municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
194
194
|
active_period_end_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>>>>;
|
package/dist/src/auth/role.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RoleSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
6
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
-
updated_by: z.
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
} & {
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
permissions: z.ZodArray<z.ZodObject<{
|
|
@@ -25,17 +25,17 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
25
25
|
created_at: number & {
|
|
26
26
|
__brand: "UnixTimestamp";
|
|
27
27
|
};
|
|
28
|
-
created_by: string;
|
|
29
28
|
updated_at: number & {
|
|
30
29
|
__brand: "UnixTimestamp";
|
|
31
30
|
};
|
|
32
|
-
updated_by: string;
|
|
33
31
|
name: string;
|
|
34
32
|
permissions: {
|
|
35
33
|
scope: string;
|
|
36
34
|
action: string;
|
|
37
35
|
resource?: Record<string, any> | null | undefined;
|
|
38
36
|
}[];
|
|
37
|
+
created_by?: string | undefined;
|
|
38
|
+
updated_by?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
_id: string;
|
|
41
41
|
created_at: number;
|
|
@@ -52,9 +52,9 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
52
52
|
export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
53
53
|
_id: z.ZodString;
|
|
54
54
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
55
|
-
created_by: z.
|
|
55
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
56
56
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
57
|
-
updated_by: z.
|
|
57
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
58
58
|
} & {
|
|
59
59
|
name: z.ZodString;
|
|
60
60
|
permissions: z.ZodArray<z.ZodObject<{
|
|
@@ -71,14 +71,14 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
71
71
|
resource?: Record<string, any> | null | undefined;
|
|
72
72
|
}>, "many">;
|
|
73
73
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
74
|
-
created_by: string;
|
|
75
|
-
updated_by: string;
|
|
76
74
|
name: string;
|
|
77
75
|
permissions: {
|
|
78
76
|
scope: string;
|
|
79
77
|
action: string;
|
|
80
78
|
resource?: Record<string, any> | null | undefined;
|
|
81
79
|
}[];
|
|
80
|
+
created_by?: string | undefined;
|
|
81
|
+
updated_by?: string | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
name: string;
|
|
84
84
|
permissions: {
|
|
@@ -90,7 +90,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
90
90
|
updated_by?: string | undefined;
|
|
91
91
|
}>;
|
|
92
92
|
export declare const UpdateRoleSchema: z.ZodObject<{
|
|
93
|
-
updated_by: z.ZodOptional<z.
|
|
93
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
94
94
|
name: z.ZodOptional<z.ZodString>;
|
|
95
95
|
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
96
|
action: z.ZodString;
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const SessionSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
6
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
-
updated_by: z.
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
} & {
|
|
9
9
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
10
10
|
token: z.ZodString;
|
|
@@ -14,13 +14,13 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
14
14
|
created_at: number & {
|
|
15
15
|
__brand: "UnixTimestamp";
|
|
16
16
|
};
|
|
17
|
-
created_by: string;
|
|
18
17
|
updated_at: number & {
|
|
19
18
|
__brand: "UnixTimestamp";
|
|
20
19
|
};
|
|
21
|
-
updated_by: string;
|
|
22
20
|
user_id: string;
|
|
23
21
|
token: string;
|
|
22
|
+
created_by?: string | undefined;
|
|
23
|
+
updated_by?: string | undefined;
|
|
24
24
|
expires_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
_id: string;
|
|
@@ -35,18 +35,18 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
35
35
|
export declare const CreateSessionSchema: z.ZodObject<Omit<{
|
|
36
36
|
_id: z.ZodString;
|
|
37
37
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
38
|
-
created_by: z.
|
|
38
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
39
39
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
40
|
-
updated_by: z.
|
|
40
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
41
41
|
} & {
|
|
42
42
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
43
43
|
token: z.ZodString;
|
|
44
44
|
user_id: z.ZodString;
|
|
45
45
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
46
|
-
created_by: string;
|
|
47
|
-
updated_by: string;
|
|
48
46
|
user_id: string;
|
|
49
47
|
token: string;
|
|
48
|
+
created_by?: string | undefined;
|
|
49
|
+
updated_by?: string | undefined;
|
|
50
50
|
expires_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
user_id: string;
|
|
@@ -56,7 +56,7 @@ export declare const CreateSessionSchema: z.ZodObject<Omit<{
|
|
|
56
56
|
expires_at?: number | null | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
export declare const UpdateSessionSchema: z.ZodObject<{
|
|
59
|
-
updated_by: z.ZodOptional<z.
|
|
59
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
60
60
|
user_id: z.ZodOptional<z.ZodString>;
|
|
61
61
|
expires_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
|
|
62
62
|
token: z.ZodOptional<z.ZodString>;
|
package/dist/src/auth/user.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export type UserPreferenceValue = z.infer<typeof UserPreferenceValueSchema>;
|
|
|
5
5
|
export declare const UserSchema: z.ZodObject<{
|
|
6
6
|
_id: z.ZodString;
|
|
7
7
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
8
|
-
created_by: z.
|
|
8
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
9
9
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
10
|
-
updated_by: z.
|
|
10
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
11
11
|
} & {
|
|
12
12
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -41,11 +41,9 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
41
41
|
created_at: number & {
|
|
42
42
|
__brand: "UnixTimestamp";
|
|
43
43
|
};
|
|
44
|
-
created_by: string;
|
|
45
44
|
updated_at: number & {
|
|
46
45
|
__brand: "UnixTimestamp";
|
|
47
46
|
};
|
|
48
|
-
updated_by: string;
|
|
49
47
|
email: string;
|
|
50
48
|
permissions: {
|
|
51
49
|
scope: string;
|
|
@@ -58,6 +56,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
58
56
|
role_ids: string[];
|
|
59
57
|
session_ids: string[];
|
|
60
58
|
verification_token_ids: string[];
|
|
59
|
+
created_by?: string | undefined;
|
|
60
|
+
updated_by?: string | undefined;
|
|
61
61
|
phone?: string | null | undefined;
|
|
62
62
|
avatar?: string | null | undefined;
|
|
63
63
|
bio?: string | null | undefined;
|
|
@@ -94,9 +94,9 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
94
94
|
export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
95
95
|
_id: z.ZodString;
|
|
96
96
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
97
|
-
created_by: z.
|
|
97
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
98
98
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
99
|
-
updated_by: z.
|
|
99
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
100
100
|
} & {
|
|
101
101
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
102
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -126,8 +126,6 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
126
126
|
theme_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
127
|
verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
128
128
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
129
|
-
created_by: string;
|
|
130
|
-
updated_by: string;
|
|
131
129
|
email: string;
|
|
132
130
|
permissions: {
|
|
133
131
|
scope: string;
|
|
@@ -140,6 +138,8 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
140
138
|
role_ids: string[];
|
|
141
139
|
session_ids: string[];
|
|
142
140
|
verification_token_ids: string[];
|
|
141
|
+
created_by?: string | undefined;
|
|
142
|
+
updated_by?: string | undefined;
|
|
143
143
|
phone?: string | null | undefined;
|
|
144
144
|
avatar?: string | null | undefined;
|
|
145
145
|
bio?: string | null | undefined;
|
|
@@ -171,7 +171,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
171
171
|
verification_token_ids?: string[] | undefined;
|
|
172
172
|
}>;
|
|
173
173
|
export declare const UpdateUserSchema: z.ZodObject<{
|
|
174
|
-
updated_by: z.ZodOptional<z.
|
|
174
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
175
175
|
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
176
176
|
email: z.ZodOptional<z.ZodString>;
|
|
177
177
|
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const VerificationTokenSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
6
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
-
updated_by: z.
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
} & {
|
|
9
9
|
expires_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
10
10
|
token: z.ZodString;
|
|
@@ -14,16 +14,16 @@ export declare const VerificationTokenSchema: z.ZodObject<{
|
|
|
14
14
|
created_at: number & {
|
|
15
15
|
__brand: "UnixTimestamp";
|
|
16
16
|
};
|
|
17
|
-
created_by: string;
|
|
18
17
|
updated_at: number & {
|
|
19
18
|
__brand: "UnixTimestamp";
|
|
20
19
|
};
|
|
21
|
-
updated_by: string;
|
|
22
20
|
user_id: string;
|
|
23
21
|
expires_at: number & {
|
|
24
22
|
__brand: "UnixTimestamp";
|
|
25
23
|
};
|
|
26
24
|
token: string;
|
|
25
|
+
created_by?: string | undefined;
|
|
26
|
+
updated_by?: string | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
_id: string;
|
|
29
29
|
created_at: number;
|
|
@@ -37,21 +37,21 @@ export declare const VerificationTokenSchema: z.ZodObject<{
|
|
|
37
37
|
export declare const CreateVerificationTokenSchema: z.ZodObject<Omit<{
|
|
38
38
|
_id: z.ZodString;
|
|
39
39
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
40
|
-
created_by: z.
|
|
40
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
41
41
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
42
|
-
updated_by: z.
|
|
42
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
43
43
|
} & {
|
|
44
44
|
expires_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
45
45
|
token: z.ZodString;
|
|
46
46
|
user_id: z.ZodString;
|
|
47
47
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
48
|
-
created_by: string;
|
|
49
|
-
updated_by: string;
|
|
50
48
|
user_id: string;
|
|
51
49
|
expires_at: number & {
|
|
52
50
|
__brand: "UnixTimestamp";
|
|
53
51
|
};
|
|
54
52
|
token: string;
|
|
53
|
+
created_by?: string | undefined;
|
|
54
|
+
updated_by?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
user_id: string;
|
|
57
57
|
expires_at: number;
|
|
@@ -60,7 +60,7 @@ export declare const CreateVerificationTokenSchema: z.ZodObject<Omit<{
|
|
|
60
60
|
updated_by?: string | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
export declare const UpdateVerificationTokenSchema: z.ZodObject<{
|
|
63
|
-
updated_by: z.ZodOptional<z.
|
|
63
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
64
64
|
user_id: z.ZodOptional<z.ZodString>;
|
|
65
65
|
expires_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
66
66
|
token: z.ZodOptional<z.ZodString>;
|