@tmlmobilidade/types 20250911.1034.51 → 20250911.1425.9
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/operational-date.d.ts +1 -1
- package/dist/src/_common/operational-date.js +1 -2
- package/dist/src/_common/proposed-change.d.ts +18 -40
- package/dist/src/_common/proposed-change.js +5 -14
- package/dist/src/agency.d.ts +19 -30
- package/dist/src/agency.js +1 -1
- package/dist/src/alert.d.ts +37 -63
- package/dist/src/alert.js +8 -48
- package/dist/src/auth/login.js +2 -8
- package/dist/src/auth/role.d.ts +15 -22
- package/dist/src/auth/role.js +1 -1
- package/dist/src/auth/session.d.ts +22 -38
- package/dist/src/auth/session.js +3 -3
- package/dist/src/auth/user.d.ts +22 -41
- package/dist/src/auth/user.js +3 -3
- package/dist/src/auth/verification-token.d.ts +22 -34
- package/dist/src/auth/verification-token.js +3 -3
- package/dist/src/gtfs.d.ts +6 -17
- package/dist/src/organization.d.ts +10 -13
- package/dist/src/organization.js +1 -1
- package/dist/src/plans/gtfs-validation.d.ts +34 -72
- package/dist/src/plans/gtfs-validation.js +2 -6
- package/dist/src/plans/plan-controller.d.ts +3 -8
- package/dist/src/plans/plan-controller.js +2 -2
- package/dist/src/plans/plan.d.ts +43 -95
- package/dist/src/plans/plan.js +2 -6
- package/dist/src/rides/ride-audit.d.ts +27 -30
- package/dist/src/rides/ride-audit.js +1 -1
- package/dist/src/rides/ride-justification.d.ts +69 -72
- package/dist/src/rides/ride-justification.js +1 -1
- package/dist/src/rides/ride.d.ts +55 -106
- package/dist/src/rides/ride.js +8 -8
- package/dist/src/sams/sam-analysis.d.ts +5 -13
- package/dist/src/sams/sam-analysis.js +3 -3
- package/dist/src/sams/sam.d.ts +46 -97
- package/dist/src/sams/sam.js +4 -4
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +18 -25
- package/dist/src/simplified-apex/simplified-apex-location.js +2 -2
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +18 -25
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.js +2 -2
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +28 -38
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.js +3 -3
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +18 -25
- package/dist/src/simplified-apex/simplified-apex-validation.js +2 -2
- package/dist/src/stop.d.ts +133 -151
- package/dist/src/stop.js +11 -74
- package/dist/src/vehicle-event.d.ts +9 -14
- package/dist/src/vehicle-event.js +2 -2
- package/dist/src/zone.d.ts +9 -12
- package/dist/src/zone.js +1 -1
- package/package.json +1 -1
package/dist/src/plans/plan.js
CHANGED
|
@@ -16,12 +16,8 @@ export const PlanSchema = DocumentSchema.extend({
|
|
|
16
16
|
pcgi_legacy: PlanPcgiLegacySchema,
|
|
17
17
|
status_merger: ProcessingStatusSchema.default('waiting'),
|
|
18
18
|
}).strict();
|
|
19
|
-
export const CreatePlanSchema = PlanSchema.omit({
|
|
20
|
-
|
|
21
|
-
created_at: true,
|
|
22
|
-
updated_at: true,
|
|
23
|
-
});
|
|
24
|
-
export const UpdatePlanSchema = CreatePlanSchema.partial();
|
|
19
|
+
export const CreatePlanSchema = PlanSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
20
|
+
export const UpdatePlanSchema = CreatePlanSchema.omit({ created_by: true }).partial();
|
|
25
21
|
/* * */
|
|
26
22
|
export const PlanPermissionSchema = z.object({
|
|
27
23
|
agency_ids: z.array(z.string()),
|
|
@@ -2,16 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RideAuditSchema: 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
|
comments: z.ZodArray<z.ZodObject<{
|
|
10
10
|
_id: z.ZodString;
|
|
11
11
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
12
|
-
created_by: z.
|
|
12
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
13
13
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
14
|
-
updated_by: z.
|
|
14
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
15
15
|
} & {
|
|
16
16
|
message: z.ZodString;
|
|
17
17
|
type: z.ZodLiteral<"note">;
|
|
@@ -20,13 +20,13 @@ export declare const RideAuditSchema: z.ZodObject<{
|
|
|
20
20
|
created_at: number & {
|
|
21
21
|
__brand: "UnixTimestamp";
|
|
22
22
|
};
|
|
23
|
-
created_by: string;
|
|
24
23
|
updated_at: number & {
|
|
25
24
|
__brand: "UnixTimestamp";
|
|
26
25
|
};
|
|
27
|
-
updated_by: string;
|
|
28
26
|
message: string;
|
|
29
27
|
type: "note";
|
|
28
|
+
created_by?: string | undefined;
|
|
29
|
+
updated_by?: string | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
_id: string;
|
|
32
32
|
created_at: number;
|
|
@@ -43,26 +43,26 @@ export declare const RideAuditSchema: z.ZodObject<{
|
|
|
43
43
|
created_at: number & {
|
|
44
44
|
__brand: "UnixTimestamp";
|
|
45
45
|
};
|
|
46
|
-
created_by: string;
|
|
47
46
|
updated_at: number & {
|
|
48
47
|
__brand: "UnixTimestamp";
|
|
49
48
|
};
|
|
50
|
-
updated_by: string;
|
|
51
49
|
is_locked: boolean;
|
|
52
50
|
comments: {
|
|
53
51
|
_id: string;
|
|
54
52
|
created_at: number & {
|
|
55
53
|
__brand: "UnixTimestamp";
|
|
56
54
|
};
|
|
57
|
-
created_by: string;
|
|
58
55
|
updated_at: number & {
|
|
59
56
|
__brand: "UnixTimestamp";
|
|
60
57
|
};
|
|
61
|
-
updated_by: string;
|
|
62
58
|
message: string;
|
|
63
59
|
type: "note";
|
|
60
|
+
created_by?: string | undefined;
|
|
61
|
+
updated_by?: string | undefined;
|
|
64
62
|
}[];
|
|
65
63
|
ride_id: string;
|
|
64
|
+
created_by?: string | undefined;
|
|
65
|
+
updated_by?: string | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
_id: string;
|
|
68
68
|
created_at: number;
|
|
@@ -84,16 +84,16 @@ export declare const RideAuditSchema: z.ZodObject<{
|
|
|
84
84
|
export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
|
|
85
85
|
_id: z.ZodOptional<z.ZodString>;
|
|
86
86
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
87
|
-
created_by: z.
|
|
87
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
88
88
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
89
|
-
updated_by: z.
|
|
89
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
90
90
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
91
91
|
comments: z.ZodArray<z.ZodObject<{
|
|
92
92
|
_id: z.ZodString;
|
|
93
93
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
94
|
-
created_by: z.
|
|
94
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
95
95
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
96
|
-
updated_by: z.
|
|
96
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
97
97
|
} & {
|
|
98
98
|
message: z.ZodString;
|
|
99
99
|
type: z.ZodLiteral<"note">;
|
|
@@ -102,13 +102,13 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
|
|
|
102
102
|
created_at: number & {
|
|
103
103
|
__brand: "UnixTimestamp";
|
|
104
104
|
};
|
|
105
|
-
created_by: string;
|
|
106
105
|
updated_at: number & {
|
|
107
106
|
__brand: "UnixTimestamp";
|
|
108
107
|
};
|
|
109
|
-
updated_by: string;
|
|
110
108
|
message: string;
|
|
111
109
|
type: "note";
|
|
110
|
+
created_by?: string | undefined;
|
|
111
|
+
updated_by?: string | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
_id: string;
|
|
114
114
|
created_at: number;
|
|
@@ -120,24 +120,24 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
|
|
|
120
120
|
}>, "many">;
|
|
121
121
|
ride_id: z.ZodString;
|
|
122
122
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
123
|
-
created_by: string;
|
|
124
|
-
updated_by: string;
|
|
125
123
|
is_locked: boolean;
|
|
126
124
|
comments: {
|
|
127
125
|
_id: string;
|
|
128
126
|
created_at: number & {
|
|
129
127
|
__brand: "UnixTimestamp";
|
|
130
128
|
};
|
|
131
|
-
created_by: string;
|
|
132
129
|
updated_at: number & {
|
|
133
130
|
__brand: "UnixTimestamp";
|
|
134
131
|
};
|
|
135
|
-
updated_by: string;
|
|
136
132
|
message: string;
|
|
137
133
|
type: "note";
|
|
134
|
+
created_by?: string | undefined;
|
|
135
|
+
updated_by?: string | undefined;
|
|
138
136
|
}[];
|
|
139
137
|
ride_id: string;
|
|
140
138
|
_id?: string | undefined;
|
|
139
|
+
created_by?: string | undefined;
|
|
140
|
+
updated_by?: string | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
comments: {
|
|
143
143
|
_id: string;
|
|
@@ -156,15 +156,14 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
|
|
|
156
156
|
}>;
|
|
157
157
|
export declare const UpdateRideAuditSchema: z.ZodObject<{
|
|
158
158
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
159
|
-
|
|
160
|
-
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
159
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
161
160
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
162
161
|
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
163
162
|
_id: z.ZodString;
|
|
164
163
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
165
|
-
created_by: z.
|
|
164
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
166
165
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
167
|
-
updated_by: z.
|
|
166
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
168
167
|
} & {
|
|
169
168
|
message: z.ZodString;
|
|
170
169
|
type: z.ZodLiteral<"note">;
|
|
@@ -173,13 +172,13 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
|
|
|
173
172
|
created_at: number & {
|
|
174
173
|
__brand: "UnixTimestamp";
|
|
175
174
|
};
|
|
176
|
-
created_by: string;
|
|
177
175
|
updated_at: number & {
|
|
178
176
|
__brand: "UnixTimestamp";
|
|
179
177
|
};
|
|
180
|
-
updated_by: string;
|
|
181
178
|
message: string;
|
|
182
179
|
type: "note";
|
|
180
|
+
created_by?: string | undefined;
|
|
181
|
+
updated_by?: string | undefined;
|
|
183
182
|
}, {
|
|
184
183
|
_id: string;
|
|
185
184
|
created_at: number;
|
|
@@ -192,7 +191,6 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
|
|
|
192
191
|
ride_id: z.ZodOptional<z.ZodString>;
|
|
193
192
|
}, "strict", z.ZodTypeAny, {
|
|
194
193
|
_id?: string | undefined;
|
|
195
|
-
created_by?: string | undefined;
|
|
196
194
|
updated_by?: string | undefined;
|
|
197
195
|
is_locked?: boolean | undefined;
|
|
198
196
|
comments?: {
|
|
@@ -200,18 +198,17 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
|
|
|
200
198
|
created_at: number & {
|
|
201
199
|
__brand: "UnixTimestamp";
|
|
202
200
|
};
|
|
203
|
-
created_by: string;
|
|
204
201
|
updated_at: number & {
|
|
205
202
|
__brand: "UnixTimestamp";
|
|
206
203
|
};
|
|
207
|
-
updated_by: string;
|
|
208
204
|
message: string;
|
|
209
205
|
type: "note";
|
|
206
|
+
created_by?: string | undefined;
|
|
207
|
+
updated_by?: string | undefined;
|
|
210
208
|
}[] | undefined;
|
|
211
209
|
ride_id?: string | undefined;
|
|
212
210
|
}, {
|
|
213
211
|
_id?: string | undefined;
|
|
214
|
-
created_by?: string | undefined;
|
|
215
212
|
updated_by?: string | undefined;
|
|
216
213
|
is_locked?: boolean | undefined;
|
|
217
214
|
comments?: {
|
|
@@ -9,4 +9,4 @@ export const RideAuditSchema = DocumentSchema.extend({
|
|
|
9
9
|
ride_id: z.string(),
|
|
10
10
|
}).strict();
|
|
11
11
|
export const CreateRideAuditSchema = RideAuditSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
12
|
-
export const UpdateRideAuditSchema = CreateRideAuditSchema.partial();
|
|
12
|
+
export const UpdateRideAuditSchema = CreateRideAuditSchema.omit({ created_by: true }).partial();
|