@tmlmobilidade/go-types-operation 20260902.1112.46 → 20260902.1453.48
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ride-processing-window/index.d.ts +1 -0
- package/dist/ride-processing-window/index.js +1 -0
- package/dist/ride-processing-window/ride-processing-window.d.ts +35 -0
- package/dist/ride-processing-window/ride-processing-window.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './hashed-trips/index.js';
|
|
|
5
5
|
export * from './plans/index.js';
|
|
6
6
|
export * from './ride-acceptances/index.js';
|
|
7
7
|
export * from './ride-analyses/index.js';
|
|
8
|
+
export * from './ride-processing-window/index.js';
|
|
8
9
|
export * from './rides/index.js';
|
|
9
10
|
export * from './sams/index.js';
|
|
10
11
|
export * from './vehicles/index.js';
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from './hashed-trips/index.js';
|
|
|
5
5
|
export * from './plans/index.js';
|
|
6
6
|
export * from './ride-acceptances/index.js';
|
|
7
7
|
export * from './ride-analyses/index.js';
|
|
8
|
+
export * from './ride-processing-window/index.js';
|
|
8
9
|
export * from './rides/index.js';
|
|
9
10
|
export * from './sams/index.js';
|
|
10
11
|
export * from './vehicles/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ride-processing-window.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ride-processing-window.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RideProcessingWindowSchema: z.ZodObject<{
|
|
3
|
+
agency_id: z.ZodString;
|
|
4
|
+
trip_id: z.ZodString;
|
|
5
|
+
window_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
6
|
+
window_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
7
|
+
operational_dates: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>, "many">;
|
|
8
|
+
generated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
agency_id: string;
|
|
11
|
+
trip_id: string;
|
|
12
|
+
window_start: number & {
|
|
13
|
+
__brand: "UnixMilliseconds";
|
|
14
|
+
};
|
|
15
|
+
window_end: number & {
|
|
16
|
+
__brand: "UnixMilliseconds";
|
|
17
|
+
};
|
|
18
|
+
operational_dates: import("@tmlmobilidade/go-types-shared").OperationalDateInt[];
|
|
19
|
+
generated_at: number & {
|
|
20
|
+
__brand: "UnixMilliseconds";
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
agency_id: string;
|
|
24
|
+
trip_id: string;
|
|
25
|
+
window_start: string | number;
|
|
26
|
+
window_end: string | number;
|
|
27
|
+
operational_dates: (string | number)[];
|
|
28
|
+
generated_at: string | number;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* This represents an intermediate schema for matching vehicle events to rides, before the actual matching is done.
|
|
32
|
+
* the window_start and window_end are the `event.created_at` ± the `std_window` (defined in `Dates.standardWindowMilliseconds`)
|
|
33
|
+
* which will be used to match the vehicle event to the ride's `start_time_scheduled` and `end_time_scheduled`.
|
|
34
|
+
*/
|
|
35
|
+
export type RideProcessingWindow = z.infer<typeof RideProcessingWindowSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { OperationalDateIntSchema, UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const RideProcessingWindowSchema = z.object({
|
|
6
|
+
agency_id: z.string(),
|
|
7
|
+
trip_id: z.string(),
|
|
8
|
+
window_start: UnixMillisecondsSchema,
|
|
9
|
+
window_end: UnixMillisecondsSchema,
|
|
10
|
+
operational_dates: z.array(OperationalDateIntSchema),
|
|
11
|
+
generated_at: UnixMillisecondsSchema,
|
|
12
|
+
});
|