@tmlmobilidade/types 20260406.1442.3 → 20260408.1117.19
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/offer/pattern.d.ts +5 -5
- package/dist/offer/pattern.js +1 -1
- package/dist/offer/route.d.ts +5 -5
- package/dist/offer/route.js +1 -1
- package/package.json +1 -1
package/dist/offer/pattern.d.ts
CHANGED
|
@@ -927,7 +927,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
927
927
|
updated_by?: string | undefined;
|
|
928
928
|
}>, "many">>>;
|
|
929
929
|
destination: z.ZodString;
|
|
930
|
-
direction: z.ZodEnum<["outbound", "inbound"]
|
|
930
|
+
direction: z.ZodDefault<z.ZodEnum<["outbound", "inbound"]>>;
|
|
931
931
|
headsign: z.ZodString;
|
|
932
932
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
933
933
|
line_id: z.ZodString;
|
|
@@ -2185,7 +2185,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2185
2185
|
headsign: string;
|
|
2186
2186
|
route_id: string;
|
|
2187
2187
|
destination: string;
|
|
2188
|
-
direction: "outbound" | "inbound";
|
|
2189
2188
|
origin: string;
|
|
2190
2189
|
created_by?: string | null | undefined;
|
|
2191
2190
|
is_locked?: boolean | undefined;
|
|
@@ -2369,6 +2368,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2369
2368
|
created_by?: string | null | undefined;
|
|
2370
2369
|
updated_by?: string | undefined;
|
|
2371
2370
|
})[] | undefined;
|
|
2371
|
+
direction?: "outbound" | "inbound" | undefined;
|
|
2372
2372
|
parameters?: ({
|
|
2373
2373
|
path: {
|
|
2374
2374
|
stop_id: string;
|
|
@@ -2632,7 +2632,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2632
2632
|
updated_by?: string | undefined;
|
|
2633
2633
|
}>, "many">>>;
|
|
2634
2634
|
destination: z.ZodString;
|
|
2635
|
-
direction: z.ZodEnum<["outbound", "inbound"]
|
|
2635
|
+
direction: z.ZodDefault<z.ZodEnum<["outbound", "inbound"]>>;
|
|
2636
2636
|
headsign: z.ZodString;
|
|
2637
2637
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
2638
2638
|
line_id: z.ZodString;
|
|
@@ -3880,7 +3880,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3880
3880
|
headsign: string;
|
|
3881
3881
|
route_id: string;
|
|
3882
3882
|
destination: string;
|
|
3883
|
-
direction: "outbound" | "inbound";
|
|
3884
3883
|
origin: string;
|
|
3885
3884
|
created_by?: string | null | undefined;
|
|
3886
3885
|
is_locked?: boolean | undefined;
|
|
@@ -4064,6 +4063,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
4064
4063
|
created_by?: string | null | undefined;
|
|
4065
4064
|
updated_by?: string | undefined;
|
|
4066
4065
|
})[] | undefined;
|
|
4066
|
+
direction?: "outbound" | "inbound" | undefined;
|
|
4067
4067
|
parameters?: ({
|
|
4068
4068
|
path: {
|
|
4069
4069
|
stop_id: string;
|
|
@@ -5005,7 +5005,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5005
5005
|
headsign: z.ZodOptional<z.ZodString>;
|
|
5006
5006
|
route_id: z.ZodOptional<z.ZodString>;
|
|
5007
5007
|
destination: z.ZodOptional<z.ZodString>;
|
|
5008
|
-
direction: z.ZodOptional<z.ZodEnum<["outbound", "inbound"]
|
|
5008
|
+
direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["outbound", "inbound"]>>>;
|
|
5009
5009
|
origin: z.ZodOptional<z.ZodString>;
|
|
5010
5010
|
parameters: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5011
5011
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/offer/pattern.js
CHANGED
|
@@ -49,7 +49,7 @@ export const PatternSchema = DocumentSchema.extend({
|
|
|
49
49
|
// Activity (field changes and notes)
|
|
50
50
|
comments: z.array(CommentSchema).optional().default([]),
|
|
51
51
|
destination: z.string().trim().min(1).max(100),
|
|
52
|
-
direction: PatternDirectionSchema,
|
|
52
|
+
direction: PatternDirectionSchema.default('outbound'),
|
|
53
53
|
headsign: z.string().trim().min(1).max(100),
|
|
54
54
|
is_locked: z.boolean().default(false),
|
|
55
55
|
line_id: z.string(),
|
package/dist/offer/route.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const RouteSchema: z.ZodObject<{
|
|
|
15
15
|
code: z.ZodString;
|
|
16
16
|
line_id: z.ZodString;
|
|
17
17
|
name: z.ZodString;
|
|
18
|
-
path_type: z.ZodEnum<["base", "partial", "variant"]
|
|
18
|
+
path_type: z.ZodDefault<z.ZodEnum<["base", "partial", "variant"]>>;
|
|
19
19
|
patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
20
|
_id: z.ZodString;
|
|
21
21
|
code: z.ZodString;
|
|
@@ -64,10 +64,10 @@ export declare const RouteSchema: z.ZodObject<{
|
|
|
64
64
|
code: string;
|
|
65
65
|
name: string;
|
|
66
66
|
line_id: string;
|
|
67
|
-
path_type: "partial" | "base" | "variant";
|
|
68
67
|
created_by?: string | null | undefined;
|
|
69
68
|
is_locked?: boolean | undefined;
|
|
70
69
|
updated_by?: string | undefined;
|
|
70
|
+
path_type?: "partial" | "base" | "variant" | undefined;
|
|
71
71
|
patterns?: {
|
|
72
72
|
_id: string;
|
|
73
73
|
code: string;
|
|
@@ -100,7 +100,7 @@ export declare const CreateRouteSchema: z.ZodObject<Omit<{
|
|
|
100
100
|
code: z.ZodString;
|
|
101
101
|
line_id: z.ZodString;
|
|
102
102
|
name: z.ZodString;
|
|
103
|
-
path_type: z.ZodEnum<["base", "partial", "variant"]
|
|
103
|
+
path_type: z.ZodDefault<z.ZodEnum<["base", "partial", "variant"]>>;
|
|
104
104
|
patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
105
|
_id: z.ZodString;
|
|
106
106
|
code: z.ZodString;
|
|
@@ -132,10 +132,10 @@ export declare const CreateRouteSchema: z.ZodObject<Omit<{
|
|
|
132
132
|
code: string;
|
|
133
133
|
name: string;
|
|
134
134
|
line_id: string;
|
|
135
|
-
path_type: "partial" | "base" | "variant";
|
|
136
135
|
created_by?: string | null | undefined;
|
|
137
136
|
is_locked?: boolean | undefined;
|
|
138
137
|
updated_by?: string | undefined;
|
|
138
|
+
path_type?: "partial" | "base" | "variant" | undefined;
|
|
139
139
|
}>;
|
|
140
140
|
export declare const UpdateRouteSchema: z.ZodObject<{
|
|
141
141
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -143,7 +143,7 @@ export declare const UpdateRouteSchema: z.ZodObject<{
|
|
|
143
143
|
code: z.ZodOptional<z.ZodString>;
|
|
144
144
|
name: z.ZodOptional<z.ZodString>;
|
|
145
145
|
line_id: z.ZodOptional<z.ZodString>;
|
|
146
|
-
path_type: z.ZodOptional<z.ZodEnum<["base", "partial", "variant"]
|
|
146
|
+
path_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["base", "partial", "variant"]>>>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
is_locked?: boolean | undefined;
|
|
149
149
|
updated_by?: string | undefined;
|
package/dist/offer/route.js
CHANGED
|
@@ -14,7 +14,7 @@ export const RouteSchema = DocumentSchema.extend({
|
|
|
14
14
|
code: z.string().trim().min(1).max(10),
|
|
15
15
|
line_id: z.string(),
|
|
16
16
|
name: z.string().trim().min(1),
|
|
17
|
-
path_type: RoutePathTypeSchema,
|
|
17
|
+
path_type: RoutePathTypeSchema.default('base'),
|
|
18
18
|
patterns: z.array(PatternSimplifiedSchema).optional(),
|
|
19
19
|
});
|
|
20
20
|
export const RouteSimplifiedSchema = z.object({
|