@tmlmobilidade/types 20250909.1538.52 → 20250910.1344.34

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 (35) hide show
  1. package/dist/src/_common/comment.d.ts +20 -12
  2. package/dist/src/_common/comment.js +0 -1
  3. package/dist/src/_common/document.d.ts +14 -8
  4. package/dist/src/_common/document.js +4 -2
  5. package/dist/src/_common/proposed-change.d.ts +37 -19
  6. package/dist/src/agency.d.ts +30 -12
  7. package/dist/src/alert.d.ts +21 -12
  8. package/dist/src/auth/role.d.ts +30 -12
  9. package/dist/src/auth/session.d.ts +30 -12
  10. package/dist/src/auth/user.d.ts +30 -12
  11. package/dist/src/auth/verification-token.d.ts +30 -12
  12. package/dist/src/file.d.ts +23 -23
  13. package/dist/src/organization.d.ts +30 -12
  14. package/dist/src/plans/gtfs-validation.d.ts +30 -12
  15. package/dist/src/plans/plan.d.ts +30 -12
  16. package/dist/src/rides/index.d.ts +2 -1
  17. package/dist/src/rides/index.js +2 -1
  18. package/dist/src/rides/ride-audit.d.ts +219 -0
  19. package/dist/src/rides/ride-audit.js +12 -0
  20. package/dist/src/rides/ride-justification.d.ts +447 -0
  21. package/dist/src/rides/ride-justification.js +43 -0
  22. package/dist/src/rides/ride-overrides.d.ts +9 -0
  23. package/dist/src/rides/ride-overrides.js +6 -0
  24. package/dist/src/rides/ride.d.ts +38 -20
  25. package/dist/src/sams/sam.d.ts +30 -12
  26. package/dist/src/simplified-apex/simplified-apex-location.d.ts +32 -20
  27. package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +32 -20
  28. package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +32 -20
  29. package/dist/src/simplified-apex/simplified-apex-validation.d.ts +32 -20
  30. package/dist/src/stop.d.ts +146 -101
  31. package/dist/src/vehicle-event.d.ts +18 -12
  32. package/dist/src/zone.d.ts +24 -6
  33. package/package.json +1 -1
  34. package/dist/src/rides/ride-annotation.d.ts +0 -579
  35. package/dist/src/rides/ride-annotation.js +0 -34
@@ -2,8 +2,10 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
6
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
5
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
6
+ created_by: z.ZodDefault<z.ZodString>;
7
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
8
+ updated_by: z.ZodDefault<z.ZodString>;
7
9
  } & {
8
10
  agency_id: z.ZodString;
9
11
  apex_version: z.ZodString;
@@ -29,11 +31,19 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
29
31
  vehicle_id: z.ZodNullable<z.ZodNumber>;
30
32
  }, "strict", z.ZodTypeAny, {
31
33
  _id: string;
34
+ created_at: number & {
35
+ __brand: "UnixTimestamp";
36
+ } & z.BRAND<"UnixTimestamp">;
37
+ created_by: string;
38
+ updated_at: number & {
39
+ __brand: "UnixTimestamp";
40
+ } & z.BRAND<"UnixTimestamp">;
41
+ updated_by: string;
32
42
  agency_id: string;
33
43
  line_id: string | null;
34
44
  validation_id: string | null;
35
- trip_id: string | null;
36
45
  pattern_id: string | null;
46
+ trip_id: string | null;
37
47
  apex_version: string;
38
48
  device_id: string;
39
49
  vehicle_id: number | null;
@@ -53,19 +63,15 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
53
63
  product_quantity: number;
54
64
  is_passenger: boolean;
55
65
  on_board_refund_id: string | null;
56
- created_at?: (number & {
57
- __brand: "UnixTimestamp";
58
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
59
- updated_at?: (number & {
60
- __brand: "UnixTimestamp";
61
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
62
66
  }, {
63
67
  _id: string;
68
+ created_at: number;
69
+ updated_at: number;
64
70
  agency_id: string;
65
71
  line_id: string | null;
66
72
  validation_id: string | null;
67
- trip_id: string | null;
68
73
  pattern_id: string | null;
74
+ trip_id: string | null;
69
75
  apex_version: string;
70
76
  device_id: string;
71
77
  vehicle_id: number | null;
@@ -83,13 +89,15 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
83
89
  product_quantity: number;
84
90
  is_passenger: boolean;
85
91
  on_board_refund_id: string | null;
86
- created_at?: number | null | undefined;
87
- updated_at?: number | null | undefined;
92
+ created_by?: string | undefined;
93
+ updated_by?: string | undefined;
88
94
  }>;
89
95
  export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
90
96
  _id: z.ZodOptional<z.ZodString>;
91
- created_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
92
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
97
+ created_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
98
+ created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
99
+ updated_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
100
+ updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
93
101
  agency_id: z.ZodOptional<z.ZodString>;
94
102
  apex_version: z.ZodOptional<z.ZodString>;
95
103
  block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -116,15 +124,17 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
116
124
  _id?: string | undefined;
117
125
  created_at?: (number & {
118
126
  __brand: "UnixTimestamp";
119
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
127
+ } & z.BRAND<"UnixTimestamp">) | undefined;
128
+ created_by?: string | undefined;
120
129
  updated_at?: (number & {
121
130
  __brand: "UnixTimestamp";
122
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
131
+ } & z.BRAND<"UnixTimestamp">) | undefined;
132
+ updated_by?: string | undefined;
123
133
  agency_id?: string | undefined;
124
134
  line_id?: string | null | undefined;
125
135
  validation_id?: string | null | undefined;
126
- trip_id?: string | null | undefined;
127
136
  pattern_id?: string | null | undefined;
137
+ trip_id?: string | null | undefined;
128
138
  apex_version?: string | undefined;
129
139
  device_id?: string | undefined;
130
140
  vehicle_id?: number | null | undefined;
@@ -146,13 +156,15 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
146
156
  on_board_refund_id?: string | null | undefined;
147
157
  }, {
148
158
  _id?: string | undefined;
149
- created_at?: number | null | undefined;
150
- updated_at?: number | null | undefined;
159
+ created_at?: number | undefined;
160
+ created_by?: string | undefined;
161
+ updated_at?: number | undefined;
162
+ updated_by?: string | undefined;
151
163
  agency_id?: string | undefined;
152
164
  line_id?: string | null | undefined;
153
165
  validation_id?: string | null | undefined;
154
- trip_id?: string | null | undefined;
155
166
  pattern_id?: string | null | undefined;
167
+ trip_id?: string | null | undefined;
156
168
  apex_version?: string | undefined;
157
169
  device_id?: string | undefined;
158
170
  vehicle_id?: number | null | undefined;
@@ -146,8 +146,10 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
146
146
  }>;
147
147
  export declare const SimplifiedApexValidationSchema: z.ZodObject<{
148
148
  _id: z.ZodString;
149
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
150
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
149
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
150
+ created_by: z.ZodDefault<z.ZodString>;
151
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
152
+ updated_by: z.ZodDefault<z.ZodString>;
151
153
  } & {
152
154
  agency_id: z.ZodString;
153
155
  apex_version: z.ZodString;
@@ -242,10 +244,18 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
242
244
  vehicle_id: z.ZodNumber;
243
245
  }, "strict", z.ZodTypeAny, {
244
246
  _id: string;
247
+ created_at: number & {
248
+ __brand: "UnixTimestamp";
249
+ } & z.BRAND<"UnixTimestamp">;
250
+ created_by: string;
251
+ updated_at: number & {
252
+ __brand: "UnixTimestamp";
253
+ } & z.BRAND<"UnixTimestamp">;
254
+ updated_by: string;
245
255
  agency_id: string;
246
256
  line_id: string;
247
- trip_id: string;
248
257
  pattern_id: string;
258
+ trip_id: string;
249
259
  apex_version: string;
250
260
  device_id: string;
251
261
  vehicle_id: number;
@@ -264,18 +274,14 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
264
274
  product_id: string;
265
275
  units_qty: number | null;
266
276
  validation_status: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13;
267
- created_at?: (number & {
268
- __brand: "UnixTimestamp";
269
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
270
- updated_at?: (number & {
271
- __brand: "UnixTimestamp";
272
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
273
277
  }, {
274
278
  _id: string;
279
+ created_at: number;
280
+ updated_at: number;
275
281
  agency_id: string;
276
282
  line_id: string;
277
- trip_id: string;
278
283
  pattern_id: string;
284
+ trip_id: string;
279
285
  apex_version: string;
280
286
  device_id: string;
281
287
  vehicle_id: number;
@@ -292,13 +298,15 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
292
298
  product_id: string;
293
299
  units_qty: number | null;
294
300
  validation_status: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13;
295
- created_at?: number | null | undefined;
296
- updated_at?: number | null | undefined;
301
+ created_by?: string | undefined;
302
+ updated_by?: string | undefined;
297
303
  }>;
298
304
  export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
299
305
  _id: z.ZodOptional<z.ZodString>;
300
- created_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
301
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
306
+ created_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
307
+ created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
308
+ updated_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
309
+ updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
302
310
  agency_id: z.ZodOptional<z.ZodString>;
303
311
  apex_version: z.ZodOptional<z.ZodString>;
304
312
  card_serial_number: z.ZodOptional<z.ZodString>;
@@ -394,14 +402,16 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
394
402
  _id?: string | undefined;
395
403
  created_at?: (number & {
396
404
  __brand: "UnixTimestamp";
397
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
405
+ } & z.BRAND<"UnixTimestamp">) | undefined;
406
+ created_by?: string | undefined;
398
407
  updated_at?: (number & {
399
408
  __brand: "UnixTimestamp";
400
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
409
+ } & z.BRAND<"UnixTimestamp">) | undefined;
410
+ updated_by?: string | undefined;
401
411
  agency_id?: string | undefined;
402
412
  line_id?: string | undefined;
403
- trip_id?: string | undefined;
404
413
  pattern_id?: string | undefined;
414
+ trip_id?: string | undefined;
405
415
  apex_version?: string | undefined;
406
416
  device_id?: string | undefined;
407
417
  vehicle_id?: number | undefined;
@@ -422,12 +432,14 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
422
432
  validation_status?: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13 | undefined;
423
433
  }, {
424
434
  _id?: string | undefined;
425
- created_at?: number | null | undefined;
426
- updated_at?: number | null | undefined;
435
+ created_at?: number | undefined;
436
+ created_by?: string | undefined;
437
+ updated_at?: number | undefined;
438
+ updated_by?: string | undefined;
427
439
  agency_id?: string | undefined;
428
440
  line_id?: string | undefined;
429
- trip_id?: string | undefined;
430
441
  pattern_id?: string | undefined;
442
+ trip_id?: string | undefined;
431
443
  apex_version?: string | undefined;
432
444
  device_id?: string | undefined;
433
445
  vehicle_id?: number | undefined;