@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28

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.
Files changed (150) hide show
  1. package/dist/_common/comment.d.ts +24 -24
  2. package/dist/_common/document.d.ts +3 -3
  3. package/dist/_common/document.js +1 -1
  4. package/dist/_common/status.d.ts +2 -2
  5. package/dist/_common/status.js +1 -1
  6. package/dist/_common/unix-timestamp.js +1 -0
  7. package/dist/agency.d.ts +6 -6
  8. package/dist/alerts/alert.d.ts +262 -0
  9. package/dist/alerts/alert.js +34 -0
  10. package/dist/alerts/cause-effect-map.d.ts +106 -0
  11. package/dist/alerts/cause-effect-map.js +94 -0
  12. package/dist/alerts/cause.d.ts +17 -0
  13. package/dist/alerts/cause.js +45 -0
  14. package/dist/alerts/effect.d.ts +17 -0
  15. package/dist/alerts/effect.js +35 -0
  16. package/dist/alerts/index.d.ts +6 -0
  17. package/dist/alerts/index.js +6 -0
  18. package/dist/alerts/query.d.ts +9 -0
  19. package/dist/alerts/query.js +6 -0
  20. package/dist/alerts/reference-type.d.ts +4 -0
  21. package/dist/alerts/reference-type.js +10 -0
  22. package/dist/apex/simplified-apex-location.d.ts +2 -12
  23. package/dist/apex/simplified-apex-location.js +1 -1
  24. package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
  25. package/dist/apex/simplified-apex-on-board-refund.js +1 -1
  26. package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
  27. package/dist/apex/simplified-apex-on-board-sale.js +2 -2
  28. package/dist/apex/simplified-apex-validation.d.ts +6 -16
  29. package/dist/apex/simplified-apex-validation.js +1 -1
  30. package/dist/auth/role.d.ts +718 -130
  31. package/dist/auth/session.d.ts +6 -6
  32. package/dist/auth/user.d.ts +1182 -270
  33. package/dist/auth/verification-token.d.ts +4 -4
  34. package/dist/calendar/event.d.ts +43 -0
  35. package/dist/calendar/event.js +16 -0
  36. package/dist/calendar/index.d.ts +1 -0
  37. package/dist/calendar/index.js +2 -0
  38. package/dist/dates/annotation.d.ts +6 -6
  39. package/dist/dates/date.d.ts +32 -0
  40. package/dist/dates/date.js +18 -0
  41. package/dist/dates/index.d.ts +2 -0
  42. package/dist/dates/index.js +2 -0
  43. package/dist/dates/period.d.ts +94 -0
  44. package/dist/dates/period.js +14 -0
  45. package/dist/file-exports/base.d.ts +9 -9
  46. package/dist/file-exports/file-exports.d.ts +7 -7
  47. package/dist/file-exports/ride-export.d.ts +14 -14
  48. package/dist/file-exports/ride-export.js +2 -2
  49. package/dist/gtfs/cause.d.ts +10 -0
  50. package/dist/gtfs/cause.js +18 -0
  51. package/dist/gtfs/effect.d.ts +10 -0
  52. package/dist/gtfs/effect.js +17 -0
  53. package/dist/gtfs/index.d.ts +2 -1
  54. package/dist/gtfs/index.js +2 -1
  55. package/dist/index.d.ts +5 -2
  56. package/dist/index.js +5 -2
  57. package/dist/locations/queries.d.ts +2 -2
  58. package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
  59. package/dist/metrics/demand/demand_by_category.d.ts +12 -12
  60. package/dist/metrics/demand/demand_by_line.d.ts +4 -4
  61. package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
  62. package/dist/metrics/demand/demand_by_product.d.ts +12 -12
  63. package/dist/metrics/index.d.ts +93 -48
  64. package/dist/metrics/index.js +4 -1
  65. package/dist/metrics/passenger-impact/index.d.ts +1 -0
  66. package/dist/metrics/passenger-impact/index.js +1 -0
  67. package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
  68. package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
  69. package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
  70. package/dist/notification.d.ts +18 -18
  71. package/dist/offer/index.d.ts +5 -0
  72. package/dist/offer/index.js +5 -0
  73. package/dist/offer/line.d.ts +296 -0
  74. package/dist/offer/line.js +60 -0
  75. package/dist/offer/pattern.d.ts +3608 -0
  76. package/dist/offer/pattern.js +75 -0
  77. package/dist/offer/route.d.ts +187 -0
  78. package/dist/offer/route.js +33 -0
  79. package/dist/offer/scheduleRule.d.ts +80 -0
  80. package/dist/offer/scheduleRule.js +50 -0
  81. package/dist/offer/typology.d.ts +124 -0
  82. package/dist/offer/typology.js +30 -0
  83. package/dist/organization.d.ts +20 -20
  84. package/dist/permissions/alerts.d.ts +13 -19
  85. package/dist/permissions/alerts.js +8 -13
  86. package/dist/permissions/annotations.d.ts +25 -0
  87. package/dist/permissions/annotations.js +16 -0
  88. package/dist/permissions/fares.d.ts +25 -0
  89. package/dist/permissions/fares.js +16 -0
  90. package/dist/permissions/index.d.ts +196 -21
  91. package/dist/permissions/index.js +142 -6
  92. package/dist/permissions/lines.d.ts +25 -0
  93. package/dist/permissions/lines.js +16 -0
  94. package/dist/permissions/periods.d.ts +25 -0
  95. package/dist/permissions/periods.js +16 -0
  96. package/dist/permissions/typologies.d.ts +25 -0
  97. package/dist/permissions/typologies.js +16 -0
  98. package/dist/permissions/vehicles.d.ts +25 -0
  99. package/dist/permissions/vehicles.js +16 -0
  100. package/dist/permissions/zones.d.ts +25 -0
  101. package/dist/permissions/zones.js +16 -0
  102. package/dist/plans/gtfs-validation.d.ts +30 -30
  103. package/dist/plans/plan.d.ts +6 -6
  104. package/dist/proposed-change.d.ts +12 -12
  105. package/dist/rides/batch-query.d.ts +52 -0
  106. package/dist/rides/batch-query.js +54 -0
  107. package/dist/rides/index.d.ts +1 -0
  108. package/dist/rides/index.js +1 -0
  109. package/dist/rides/ride-acceptance.d.ts +105 -105
  110. package/dist/rides/ride-acceptance.js +2 -2
  111. package/dist/rides/ride-audit.d.ts +21 -21
  112. package/dist/rides/ride-normalized.d.ts +808 -21
  113. package/dist/rides/ride-normalized.js +31 -1
  114. package/dist/rides/ride.d.ts +6 -6
  115. package/dist/sams/sam.d.ts +0 -15
  116. package/dist/sams/sam.js +2 -2
  117. package/dist/stops/connections.d.ts +1 -0
  118. package/dist/stops/connections.js +1 -1
  119. package/dist/stops/equipment.d.ts +1 -0
  120. package/dist/stops/equipment.js +1 -1
  121. package/dist/stops/parent-station.d.ts +6 -6
  122. package/dist/stops/stop-area.d.ts +6 -6
  123. package/dist/stops/stop.d.ts +69 -69
  124. package/dist/ticketing/fare.d.ts +137 -0
  125. package/dist/ticketing/fare.js +44 -0
  126. package/dist/ticketing/index.d.ts +2 -0
  127. package/dist/ticketing/index.js +2 -0
  128. package/dist/ticketing/zone.d.ts +220 -0
  129. package/dist/ticketing/zone.js +34 -0
  130. package/dist/vehicle/emission.d.ts +3 -0
  131. package/dist/vehicle/emission.js +12 -0
  132. package/dist/vehicle/index.d.ts +4 -0
  133. package/dist/vehicle/index.js +4 -0
  134. package/dist/vehicle/propulsion.d.ts +3 -0
  135. package/dist/vehicle/propulsion.js +14 -0
  136. package/dist/vehicle/vehicle.d.ts +189 -0
  137. package/dist/vehicle/vehicle.js +27 -0
  138. package/dist/vehicle/wheelchair.d.ts +3 -0
  139. package/dist/vehicle/wheelchair.js +10 -0
  140. package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
  141. package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
  142. package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
  143. package/dist/zone.d.ts +6 -6
  144. package/package.json +2 -2
  145. package/dist/alert.d.ts +0 -265
  146. package/dist/alert.js +0 -42
  147. package/dist/gtfs/cause-effetcs.d.ts +0 -86
  148. package/dist/gtfs/cause-effetcs.js +0 -31
  149. package/dist/permissions/dates.d.ts +0 -25
  150. package/dist/permissions/dates.js +0 -16
@@ -1,2 +1,32 @@
1
1
  /* * */
2
- export {};
2
+ import { DelayStatusSchema, OperationalStatusSchema, SeenStatusSchema } from '../_common/status.js';
3
+ import { RideAcceptanceStatusSchema } from './ride-acceptance.js';
4
+ import { RideAnalysisGradeSchema } from './ride-analysis.js';
5
+ import { RideSchema } from './ride.js';
6
+ import { z } from 'zod';
7
+ /* * */
8
+ export const RideNormalizedSchema = RideSchema.extend({
9
+ acceptance_status: RideAcceptanceStatusSchema,
10
+ analysis_ended_at_last_stop_grade: RideAnalysisGradeSchema.or(z.literal('none')),
11
+ analysis_expected_apex_validation_interval: RideAnalysisGradeSchema.or(z.literal('none')),
12
+ analysis_simple_three_vehicle_events_grade: RideAnalysisGradeSchema.or(z.literal('none')),
13
+ analysis_transaction_sequentiality: RideAnalysisGradeSchema.or(z.literal('none')),
14
+ /**
15
+ * @deprecated use `start_time_observed_display` instead
16
+ */
17
+ delay_status: DelayStatusSchema,
18
+ /**
19
+ * @deprecated use `start_time_observed_display` instead
20
+ */
21
+ delay_value_display: z.string().nullable(),
22
+ end_delay_status: DelayStatusSchema,
23
+ end_delay_value_display: z.string().nullable(),
24
+ end_time_observed_display: z.string().nullable(),
25
+ end_time_scheduled_display: z.string(),
26
+ operational_status: OperationalStatusSchema,
27
+ seen_status: SeenStatusSchema,
28
+ start_delay_status: DelayStatusSchema,
29
+ start_delay_value_display: z.string().nullable(),
30
+ start_time_observed_display: z.string().nullable(),
31
+ start_time_scheduled_display: z.string(),
32
+ });
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const RideSchema: z.ZodObject<Omit<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
5
- created_by: z.ZodOptional<z.ZodString>;
5
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
6
  is_locked: z.ZodDefault<z.ZodBoolean>;
7
7
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
8
8
  updated_by: z.ZodOptional<z.ZodString>;
@@ -485,6 +485,7 @@ export declare const RideSchema: z.ZodObject<Omit<{
485
485
  created_at: number & {
486
486
  __brand: "UnixTimestamp";
487
487
  };
488
+ created_by: string | null;
488
489
  updated_at: number & {
489
490
  __brand: "UnixTimestamp";
490
491
  };
@@ -620,7 +621,6 @@ export declare const RideSchema: z.ZodObject<Omit<{
620
621
  hashed_shape_id: string;
621
622
  hashed_trip_id: string;
622
623
  system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
623
- created_by?: string | undefined;
624
624
  updated_by?: string | undefined;
625
625
  }, {
626
626
  _id: string;
@@ -751,14 +751,14 @@ export declare const RideSchema: z.ZodObject<Omit<{
751
751
  } | null;
752
752
  hashed_shape_id: string;
753
753
  hashed_trip_id: string;
754
- created_by?: string | undefined;
754
+ created_by?: string | null | undefined;
755
755
  updated_by?: string | undefined;
756
756
  system_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
757
757
  }>;
758
758
  export declare const CreateRideSchema: z.ZodObject<Omit<{
759
759
  _id: z.ZodOptional<z.ZodString>;
760
760
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
761
- created_by: z.ZodOptional<z.ZodString>;
761
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
762
762
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
763
763
  updated_by: z.ZodOptional<z.ZodString>;
764
764
  agency_id: z.ZodString;
@@ -1235,6 +1235,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1235
1235
  hashed_trip_id: z.ZodString;
1236
1236
  system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
1237
1237
  }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
1238
+ created_by: string | null;
1238
1239
  agency_id: string;
1239
1240
  line_id: number;
1240
1241
  pattern_id: string;
@@ -1368,7 +1369,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1368
1369
  hashed_trip_id: string;
1369
1370
  system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
1370
1371
  _id?: string | undefined;
1371
- created_by?: string | undefined;
1372
1372
  updated_by?: string | undefined;
1373
1373
  }, {
1374
1374
  agency_id: string;
@@ -1497,7 +1497,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1497
1497
  hashed_shape_id: string;
1498
1498
  hashed_trip_id: string;
1499
1499
  _id?: string | undefined;
1500
- created_by?: string | undefined;
1500
+ created_by?: string | null | undefined;
1501
1501
  updated_by?: string | undefined;
1502
1502
  system_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
1503
1503
  }>;
@@ -1,9 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SamSchema: z.ZodObject<{
3
3
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
4
- created_by: z.ZodOptional<z.ZodString>;
5
4
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
6
- updated_by: z.ZodOptional<z.ZodString>;
7
5
  } & {
8
6
  _id: z.ZodNumber;
9
7
  agency_id: z.ZodString;
@@ -94,8 +92,6 @@ export declare const SamSchema: z.ZodObject<{
94
92
  transactions_missing: number | null;
95
93
  latest_apex_version: string | null;
96
94
  remarks: string | null;
97
- created_by?: string | undefined;
98
- updated_by?: string | undefined;
99
95
  }, {
100
96
  _id: number;
101
97
  created_at: number;
@@ -107,8 +103,6 @@ export declare const SamSchema: z.ZodObject<{
107
103
  transactions_found: number | null;
108
104
  transactions_missing: number | null;
109
105
  latest_apex_version: string | null;
110
- created_by?: string | undefined;
111
- updated_by?: string | undefined;
112
106
  analysis?: {
113
107
  apex_version: string | null;
114
108
  device_id: string | null;
@@ -130,9 +124,7 @@ export declare const SamSchema: z.ZodObject<{
130
124
  }>;
131
125
  export declare const CreateSamSchema: z.ZodObject<Omit<{
132
126
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
133
- created_by: z.ZodOptional<z.ZodString>;
134
127
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
135
- updated_by: z.ZodOptional<z.ZodString>;
136
128
  } & {
137
129
  _id: z.ZodNumber;
138
130
  agency_id: z.ZodString;
@@ -217,8 +209,6 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
217
209
  transactions_missing: number | null;
218
210
  latest_apex_version: string | null;
219
211
  remarks: string | null;
220
- created_by?: string | undefined;
221
- updated_by?: string | undefined;
222
212
  }, {
223
213
  _id: number;
224
214
  agency_id: string;
@@ -228,8 +218,6 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
228
218
  transactions_found: number | null;
229
219
  transactions_missing: number | null;
230
220
  latest_apex_version: string | null;
231
- created_by?: string | undefined;
232
- updated_by?: string | undefined;
233
221
  analysis?: {
234
222
  apex_version: string | null;
235
223
  device_id: string | null;
@@ -251,7 +239,6 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
251
239
  }>;
252
240
  export declare const UpdateSamSchema: z.ZodObject<{
253
241
  _id: z.ZodOptional<z.ZodNumber>;
254
- updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
255
242
  agency_id: z.ZodOptional<z.ZodString>;
256
243
  seen_last_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
257
244
  seen_first_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
@@ -309,7 +296,6 @@ export declare const UpdateSamSchema: z.ZodObject<{
309
296
  remarks: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
310
297
  }, "strip", z.ZodTypeAny, {
311
298
  _id?: number | undefined;
312
- updated_by?: string | undefined;
313
299
  agency_id?: string | undefined;
314
300
  seen_last_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
315
301
  seen_first_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
@@ -337,7 +323,6 @@ export declare const UpdateSamSchema: z.ZodObject<{
337
323
  remarks?: string | null | undefined;
338
324
  }, {
339
325
  _id?: number | undefined;
340
- updated_by?: string | undefined;
341
326
  agency_id?: string | undefined;
342
327
  seen_last_at?: number | null | undefined;
343
328
  seen_first_at?: number | null | undefined;
package/dist/sams/sam.js CHANGED
@@ -6,7 +6,7 @@ import { SamAnalysisSchema } from './sam-analysis.js';
6
6
  import { z } from 'zod';
7
7
  /* * */
8
8
  export const SamSchema = DocumentSchema
9
- .omit({ is_locked: true })
9
+ .omit({ created_by: true, is_locked: true, updated_by: true })
10
10
  .extend({
11
11
  _id: z.number(),
12
12
  agency_id: z.string(),
@@ -21,4 +21,4 @@ export const SamSchema = DocumentSchema
21
21
  transactions_missing: z.number().nullable(),
22
22
  });
23
23
  export const CreateSamSchema = SamSchema.omit({ created_at: true, updated_at: true });
24
- export const UpdateSamSchema = CreateSamSchema.omit({ created_by: true }).partial();
24
+ export const UpdateSamSchema = CreateSamSchema.partial();
@@ -1,3 +1,4 @@
1
1
  import { z } from 'zod';
2
+ export declare const StopConnectionValues: readonly ["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"];
2
3
  export declare const StopConnectionSchema: z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>;
3
4
  export type StopConnection = z.infer<typeof StopConnectionSchema>;
@@ -1,7 +1,7 @@
1
1
  /* * */
2
2
  import { z } from 'zod';
3
3
  /* * */
4
- const StopConnectionValues = [
4
+ export const StopConnectionValues = [
5
5
  'ferry',
6
6
  'light_rail',
7
7
  'subway',
@@ -1,3 +1,4 @@
1
1
  import { z } from 'zod';
2
+ export declare const StopEquipmentValues: readonly ["pip", "mupi", "mini_pip"];
2
3
  export declare const StopEquipmentSchema: z.ZodEnum<["pip", "mupi", "mini_pip"]>;
3
4
  export type StopEquipment = z.infer<typeof StopEquipmentSchema>;
@@ -1,7 +1,7 @@
1
1
  /* * */
2
2
  import { z } from 'zod';
3
3
  /* * */
4
- const StopEquipmentValues = [
4
+ export const StopEquipmentValues = [
5
5
  'pip',
6
6
  'mupi',
7
7
  'mini_pip',
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ParentStationSchema: z.ZodObject<{
3
3
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
4
- created_by: z.ZodOptional<z.ZodString>;
4
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
5
  is_locked: z.ZodDefault<z.ZodBoolean>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodOptional<z.ZodString>;
@@ -14,13 +14,13 @@ export declare const ParentStationSchema: z.ZodObject<{
14
14
  created_at: number & {
15
15
  __brand: "UnixTimestamp";
16
16
  };
17
+ created_by: string | null;
17
18
  is_locked: boolean;
18
19
  updated_at: number & {
19
20
  __brand: "UnixTimestamp";
20
21
  };
21
22
  title: string;
22
23
  stop_ids: string[];
23
- created_by?: string | undefined;
24
24
  updated_by?: string | undefined;
25
25
  }, {
26
26
  _id: string;
@@ -28,13 +28,13 @@ export declare const ParentStationSchema: z.ZodObject<{
28
28
  updated_at: number;
29
29
  title: string;
30
30
  stop_ids: string[];
31
- created_by?: string | undefined;
31
+ created_by?: string | null | undefined;
32
32
  is_locked?: boolean | undefined;
33
33
  updated_by?: string | undefined;
34
34
  }>;
35
35
  export declare const CreateParentStationSchema: z.ZodObject<Omit<{
36
36
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
37
- created_by: z.ZodOptional<z.ZodString>;
37
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
38
  is_locked: z.ZodDefault<z.ZodBoolean>;
39
39
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
40
40
  updated_by: z.ZodOptional<z.ZodString>;
@@ -43,15 +43,15 @@ export declare const CreateParentStationSchema: z.ZodObject<Omit<{
43
43
  stop_ids: z.ZodArray<z.ZodString, "many">;
44
44
  title: z.ZodString;
45
45
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
46
+ created_by: string | null;
46
47
  is_locked: boolean;
47
48
  title: string;
48
49
  stop_ids: string[];
49
- created_by?: string | undefined;
50
50
  updated_by?: string | undefined;
51
51
  }, {
52
52
  title: string;
53
53
  stop_ids: string[];
54
- created_by?: string | undefined;
54
+ created_by?: string | null | undefined;
55
55
  is_locked?: boolean | undefined;
56
56
  updated_by?: string | undefined;
57
57
  }>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const StopAreaSchema: z.ZodObject<{
3
3
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
4
- created_by: z.ZodOptional<z.ZodString>;
4
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
5
  is_locked: z.ZodDefault<z.ZodBoolean>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodOptional<z.ZodString>;
@@ -13,25 +13,25 @@ export declare const StopAreaSchema: z.ZodObject<{
13
13
  created_at: number & {
14
14
  __brand: "UnixTimestamp";
15
15
  };
16
+ created_by: string | null;
16
17
  is_locked: boolean;
17
18
  updated_at: number & {
18
19
  __brand: "UnixTimestamp";
19
20
  };
20
21
  parent_station_ids: string[];
21
- created_by?: string | undefined;
22
22
  updated_by?: string | undefined;
23
23
  }, {
24
24
  _id: string;
25
25
  created_at: number;
26
26
  updated_at: number;
27
27
  parent_station_ids: string[];
28
- created_by?: string | undefined;
28
+ created_by?: string | null | undefined;
29
29
  is_locked?: boolean | undefined;
30
30
  updated_by?: string | undefined;
31
31
  }>;
32
32
  export declare const CreateStopAreaSchema: z.ZodObject<Omit<{
33
33
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
34
- created_by: z.ZodOptional<z.ZodString>;
34
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
35
  is_locked: z.ZodDefault<z.ZodBoolean>;
36
36
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
37
37
  updated_by: z.ZodOptional<z.ZodString>;
@@ -39,13 +39,13 @@ export declare const CreateStopAreaSchema: z.ZodObject<Omit<{
39
39
  _id: z.ZodString;
40
40
  parent_station_ids: z.ZodArray<z.ZodString, "many">;
41
41
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
42
+ created_by: string | null;
42
43
  is_locked: boolean;
43
44
  parent_station_ids: string[];
44
- created_by?: string | undefined;
45
45
  updated_by?: string | undefined;
46
46
  }, {
47
47
  parent_station_ids: string[];
48
- created_by?: string | undefined;
48
+ created_by?: string | null | undefined;
49
49
  is_locked?: boolean | undefined;
50
50
  updated_by?: string | undefined;
51
51
  }>;