@tmlmobilidade/types 20251103.1255.55 → 20251202.1821.43
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 → _common}/index.d.ts +4 -2
- package/dist/{src/_common → _common}/index.js +4 -2
- package/dist/_common/mongo.d.ts +3 -0
- package/dist/_common/status.d.ts +13 -0
- package/dist/_common/status.js +20 -0
- package/dist/_common/utility.js +1 -0
- package/dist/{src/agency.d.ts → agency.d.ts} +4 -15
- package/dist/{src/agency.js → agency.js} +1 -6
- package/dist/{src/alert.d.ts → alert.d.ts} +20 -21
- package/dist/{src/alert.js → alert.js} +8 -14
- package/dist/{src/simplified-apex → apex}/simplified-apex-validation.d.ts +20 -20
- package/dist/{src/auth → auth}/index.d.ts +1 -1
- package/dist/{src/auth → auth}/index.js +1 -1
- package/dist/{src/auth → auth}/password-requirements.js +2 -1
- package/dist/auth/role.d.ts +958 -0
- package/dist/{src/auth → auth}/role.js +2 -2
- package/dist/{src/auth → auth}/session.d.ts +13 -9
- package/dist/{src/auth → auth}/session.js +1 -1
- package/dist/auth/user.d.ts +1281 -0
- package/dist/{src/auth → auth}/user.js +11 -14
- package/dist/{src/file-exports → file-exports}/common.d.ts +9 -8
- package/dist/{src/file-exports → file-exports}/common.js +1 -1
- package/dist/file-exports/index.d.ts +121 -0
- package/dist/file-exports/ride-export.d.ts +410 -0
- package/dist/file-exports/ride-export.js +131 -0
- package/dist/{src/file.d.ts → file.d.ts} +18 -18
- package/dist/gtfs/agency.d.ts +30 -0
- package/dist/gtfs/agency.js +13 -0
- package/dist/gtfs/feed-info.d.ts +33 -0
- package/dist/{src/gtfs.js → gtfs/feed-info.js} +1 -11
- package/dist/{src/gtfs → gtfs}/index.d.ts +3 -0
- package/dist/{src/gtfs → gtfs}/index.js +3 -0
- package/dist/gtfs/service-alert.d.ts +26 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +22 -22
- package/dist/locations/census.d.ts +211 -0
- package/dist/locations/census.js +2 -0
- package/dist/locations/district.d.ts +24 -0
- package/dist/locations/district.js +2 -0
- package/dist/locations/index.d.ts +6 -0
- package/dist/locations/index.js +6 -0
- package/dist/locations/locality.d.ts +27 -0
- package/dist/locations/locality.js +2 -0
- package/dist/locations/municipality.d.ts +25 -0
- package/dist/locations/municipality.js +2 -0
- package/dist/locations/parish.d.ts +26 -0
- package/dist/locations/parish.js +2 -0
- package/dist/locations/queries.d.ts +117 -0
- package/dist/{src/locations.js → locations/queries.js} +5 -16
- package/dist/metrics/demand/demand_by_agency.d.ts +210 -0
- package/dist/metrics/demand/demand_by_agency.js +39 -0
- package/dist/metrics/demand/demand_by_category.d.ts +475 -0
- package/dist/metrics/demand/demand_by_category.js +114 -0
- package/dist/metrics/demand/demand_by_line.d.ts +246 -0
- package/dist/metrics/demand/demand_by_line.js +56 -0
- package/dist/metrics/demand/demand_by_pattern.d.ts +332 -0
- package/dist/metrics/demand/demand_by_pattern.js +56 -0
- package/dist/metrics/demand/demand_by_product.d.ts +475 -0
- package/dist/metrics/demand/demand_by_product.js +114 -0
- package/dist/metrics/demand/index.d.ts +6 -0
- package/dist/metrics/demand/index.js +8 -0
- package/dist/metrics/demand/records.d.ts +320 -0
- package/dist/metrics/demand/records.js +53 -0
- package/dist/metrics/index.d.ts +2647 -0
- package/dist/metrics/index.js +48 -0
- package/dist/metrics/realtime.d.ts +667 -0
- package/dist/metrics/realtime.js +41 -0
- package/dist/{src/notification.d.ts → notification.d.ts} +4 -4
- package/dist/{src/organization.d.ts → organization.d.ts} +32 -32
- package/dist/{src/organization.js → organization.js} +7 -7
- package/dist/permissions/agencies.d.ts +12 -0
- package/dist/permissions/agencies.js +13 -0
- package/dist/permissions/alerts.d.ts +36 -0
- package/dist/permissions/alerts.js +25 -0
- package/dist/permissions/controller.d.ts +36 -0
- package/dist/permissions/controller.js +30 -0
- package/dist/permissions/gtfs-validations.d.ts +25 -0
- package/dist/permissions/gtfs-validations.js +14 -0
- package/dist/permissions/home.d.ts +12 -0
- package/dist/permissions/home.js +10 -0
- package/dist/permissions/index.d.ts +268 -0
- package/dist/permissions/index.js +149 -0
- package/dist/permissions/organizations.d.ts +12 -0
- package/dist/permissions/organizations.js +12 -0
- package/dist/permissions/performance.d.ts +12 -0
- package/dist/permissions/performance.js +9 -0
- package/dist/permissions/plans.d.ts +25 -0
- package/dist/permissions/plans.js +22 -0
- package/dist/permissions/roles.d.ts +12 -0
- package/dist/permissions/roles.js +12 -0
- package/dist/permissions/stops.d.ts +30 -0
- package/dist/permissions/stops.js +17 -0
- package/dist/permissions/users.d.ts +12 -0
- package/dist/permissions/users.js +12 -0
- package/dist/{src/plans → plans}/gtfs-validation.d.ts +55 -63
- package/dist/{src/plans → plans}/gtfs-validation.js +3 -6
- package/dist/plans/plan-app-status.d.ts +15 -0
- package/dist/plans/plan-app-status.js +10 -0
- package/dist/{src/plans → plans}/plan.d.ts +240 -104
- package/dist/{src/plans → plans}/plan.js +8 -10
- package/dist/{src/_common/proposed-change.d.ts → proposed-change.d.ts} +21 -22
- package/dist/{src/_common/proposed-change.js → proposed-change.js} +5 -7
- package/dist/{src/rides → rides}/index.d.ts +1 -0
- package/dist/{src/rides → rides}/index.js +1 -0
- package/dist/{src/rides → rides}/ride-acceptance.d.ts +65 -65
- package/dist/{src/rides → rides}/ride-analysis.d.ts +34 -34
- package/dist/{src/rides → rides}/ride-audit.d.ts +10 -10
- package/dist/rides/ride-normalized.d.ts +29 -0
- package/dist/rides/ride-normalized.js +2 -0
- package/dist/{src/rides → rides}/ride.d.ts +523 -567
- package/dist/{src/rides → rides}/ride.js +2 -16
- package/dist/{src/sams → sams}/sam-analysis.d.ts +11 -11
- package/dist/{src/sams → sams}/sam-analysis.js +4 -4
- package/dist/{src/sams → sams}/sam.d.ts +76 -76
- package/dist/{src/sams → sams}/sam.js +1 -1
- package/dist/{src/stop.d.ts → stop.d.ts} +32 -43
- package/dist/{src/stop.js → stop.js} +3 -8
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +77 -0
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +21 -0
- package/dist/vehicle-events/index.d.ts +2 -0
- package/dist/vehicle-events/index.js +2 -0
- package/dist/{src/vehicle-event.d.ts → vehicle-events/simplified-vehicle-event.d.ts} +9 -9
- package/dist/{src/vehicle-event.js → vehicle-events/simplified-vehicle-event.js} +3 -3
- package/dist/wiki.js +2 -0
- package/dist/{src/zone.d.ts → zone.d.ts} +2 -16
- package/dist/{src/zone.js → zone.js} +0 -6
- package/package.json +18 -21
- package/README.md +0 -13
- package/dist/src/_common/email.d.ts +0 -4
- package/dist/src/_common/email.js +0 -7
- package/dist/src/auth/permission.d.ts +0 -19
- package/dist/src/auth/permission.js +0 -8
- package/dist/src/auth/role.d.ts +0 -127
- package/dist/src/auth/user.d.ts +0 -311
- package/dist/src/file-exports/index.d.ts +0 -121
- package/dist/src/file-exports/ride-export.d.ts +0 -407
- package/dist/src/file-exports/ride-export.js +0 -120
- package/dist/src/gtfs.d.ts +0 -88
- package/dist/src/locations.d.ts +0 -319
- package/dist/src/metrics/demand.d.ts +0 -803
- package/dist/src/metrics/demand.js +0 -153
- package/dist/src/metrics/index.d.ts +0 -806
- package/dist/src/metrics/index.js +0 -19
- package/dist/src/plans/plan-controller.d.ts +0 -15
- package/dist/src/plans/plan-controller.js +0 -10
- package/dist/src/system/index.d.ts +0 -2
- package/dist/src/system/index.js +0 -2
- package/dist/src/system/processing-status.d.ts +0 -9
- package/dist/src/system/processing-status.js +0 -5
- package/dist/{src/_common → _common}/comment.d.ts +8 -8
- package/dist/{src/_common → _common}/comment.js +0 -0
- package/dist/{src/_common → _common}/document.d.ts +0 -0
- package/dist/{src/_common → _common}/document.js +0 -0
- package/dist/{src/system → _common}/environment.d.ts +0 -0
- package/dist/{src/system → _common}/environment.js +0 -0
- package/dist/{src/_common → _common}/fastify.d.ts +0 -0
- package/dist/{src/_common → _common}/fastify.js +0 -0
- package/dist/{src/_common/utility.js → _common/mongo.js} +0 -0
- package/dist/{src/_common → _common}/operational-date.d.ts +0 -0
- package/dist/{src/_common → _common}/operational-date.js +0 -0
- package/dist/{src/_common → _common}/unix-timestamp.d.ts +0 -0
- package/dist/{src/_common → _common}/unix-timestamp.js +0 -0
- package/dist/{src/_common → _common}/utility.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/index.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/index.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-location.d.ts +16 -16
- package/dist/{src/simplified-apex → apex}/simplified-apex-location.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.d.ts +20 -20
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.d.ts +25 -25
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-type.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-type.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-validation.js +0 -0
- package/dist/{src/auth → auth}/login.d.ts +0 -0
- package/dist/{src/auth → auth}/login.js +0 -0
- package/dist/{src/auth → auth}/password-requirements.d.ts +0 -0
- package/dist/{src/auth → auth}/verification-token.d.ts +0 -0
- package/dist/{src/auth → auth}/verification-token.js +0 -0
- package/dist/{src/file-exports → file-exports}/index.js +0 -0
- package/dist/{src/file.js → file.js} +0 -0
- package/dist/{src/gtfs → gtfs}/calendar-dates.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/calendar-dates.js +0 -0
- package/dist/{src/gtfs → gtfs}/calendar.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/calendar.js +0 -0
- package/dist/{src/gtfs → gtfs}/cause-effetcs.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/cause-effetcs.js +0 -0
- package/dist/{src/gtfs → gtfs}/common.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/common.js +0 -0
- package/dist/{src/gtfs → gtfs}/routes.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/routes.js +0 -0
- package/dist/{src/pcgi/pcgi-apex-location.js → gtfs/service-alert.js} +0 -0
- package/dist/{src/gtfs → gtfs}/shapes.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/shapes.js +0 -0
- package/dist/{src/gtfs → gtfs}/stop-times.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/stop-times.js +0 -0
- package/dist/{src/gtfs → gtfs}/stops.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/stops.js +0 -0
- package/dist/{src/gtfs → gtfs}/trips.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/trips.js +0 -0
- package/dist/{src/metrics → metrics}/common.d.ts +0 -0
- package/dist/{src/metrics → metrics}/common.js +0 -0
- package/dist/{src/notification.js → notification.js} +0 -0
- package/dist/{src/pcgi → pcgi}/index.d.ts +0 -0
- package/dist/{src/pcgi → pcgi}/index.js +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-location.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-refund.js → pcgi/pcgi-apex-location.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-refund.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-sale.js → pcgi/pcgi-apex-refund.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-sale.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-validation.js → pcgi/pcgi-apex-sale.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-validation.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-transaction-entity.js → pcgi/pcgi-apex-validation.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-transaction-entity.d.ts +0 -0
- package/dist/{src/rides/hashed-shape.js → pcgi/pcgi-transaction-entity.js} +0 -0
- package/dist/{src/plans → plans}/index.d.ts +0 -0
- package/dist/{src/plans → plans}/index.js +0 -0
- package/dist/{src/plans → plans}/plan-pcgi-legacy.d.ts +0 -0
- package/dist/{src/plans → plans}/plan-pcgi-legacy.js +0 -0
- package/dist/{src/rides → rides}/hashed-shape.d.ts +0 -0
- package/dist/{src/rides/hashed-trip.js → rides/hashed-shape.js} +0 -0
- package/dist/{src/rides → rides}/hashed-trip.d.ts +0 -0
- package/dist/{src/wiki.js → rides/hashed-trip.js} +0 -0
- package/dist/{src/rides → rides}/ride-acceptance.js +1 -1
- /package/dist/{src/rides → rides}/ride-analysis.js +0 -0
- /package/dist/{src/rides → rides}/ride-audit.js +0 -0
- /package/dist/{src/rides → rides}/ride-overrides.d.ts +0 -0
- /package/dist/{src/rides → rides}/ride-overrides.js +0 -0
- /package/dist/{src/sams → sams}/index.d.ts +0 -0
- /package/dist/{src/sams → sams}/index.js +0 -0
- /package/dist/{src/wiki.d.ts → wiki.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
3
|
import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
|
-
import { PermissionSchema } from '
|
|
4
|
+
import { PermissionSchema } from '../permissions/index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
/* * */
|
|
7
7
|
export const UserPreferenceValueSchema = z.union([
|
|
@@ -13,23 +13,20 @@ export const UserPreferenceValueSchema = z.union([
|
|
|
13
13
|
]);
|
|
14
14
|
/* * */
|
|
15
15
|
export const UserSchema = DocumentSchema.extend({
|
|
16
|
-
avatar: z.string().nullish(),
|
|
17
|
-
bio: z.string().nullish(),
|
|
18
16
|
email: z.string().email(),
|
|
19
|
-
email_verified: unixTimeStampSchema.
|
|
20
|
-
first_name: z.string().
|
|
21
|
-
last_name: z.string().
|
|
22
|
-
organization_id: z.string().
|
|
23
|
-
password_hash: z.string().
|
|
24
|
-
permissions: z.array(PermissionSchema),
|
|
25
|
-
phone: z.string().
|
|
26
|
-
preferences: z.record(z.record(UserPreferenceValueSchema)).
|
|
17
|
+
email_verified: unixTimeStampSchema.nullable(),
|
|
18
|
+
first_name: z.string().min(2),
|
|
19
|
+
last_name: z.string().min(2),
|
|
20
|
+
organization_id: z.string().nullable(),
|
|
21
|
+
password_hash: z.string().nullable(),
|
|
22
|
+
permissions: z.array(PermissionSchema).default([]),
|
|
23
|
+
phone: z.string().nullable(),
|
|
24
|
+
preferences: z.record(z.record(UserPreferenceValueSchema)).nullable(),
|
|
27
25
|
role_ids: z.array(z.string()).default([]),
|
|
28
26
|
session_ids: z.array(z.string()).default([]),
|
|
29
|
-
theme_id: z.string().nullish(),
|
|
30
27
|
verification_token_ids: z.array(z.string()).default([]),
|
|
31
|
-
})
|
|
28
|
+
});
|
|
32
29
|
export const CreateUserSchema = UserSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
33
30
|
export const UpdateUserSchema = CreateUserSchema.omit({ created_by: true }).partial();
|
|
34
|
-
export const UserDisplayFields = { _id: true,
|
|
31
|
+
export const UserDisplayFields = { _id: true, email: true, first_name: true, last_name: true, phone: true };
|
|
35
32
|
export const UserDisplaySchema = UserSchema.pick(UserDisplayFields);
|
|
@@ -4,14 +4,14 @@ export declare const FileExportTypeSchema: z.ZodEnum<["ride"]>;
|
|
|
4
4
|
export type FileExportType = z.infer<typeof FileExportTypeSchema>;
|
|
5
5
|
export declare const FileExportBaseSchema: z.ZodObject<{
|
|
6
6
|
_id: z.ZodString;
|
|
7
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
7
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
8
8
|
created_by: z.ZodOptional<z.ZodString>;
|
|
9
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
9
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
10
10
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
11
11
|
} & {
|
|
12
12
|
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
file_name: z.ZodString;
|
|
14
|
-
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
|
|
14
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
15
15
|
properties: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
16
16
|
type: z.ZodEnum<["ride"]>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -24,7 +24,7 @@ export declare const FileExportBaseSchema: z.ZodObject<{
|
|
|
24
24
|
};
|
|
25
25
|
type: "ride";
|
|
26
26
|
file_name: string;
|
|
27
|
-
processing_status: "
|
|
27
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
28
28
|
properties: Record<string, any>;
|
|
29
29
|
created_by?: string | undefined;
|
|
30
30
|
updated_by?: string | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const FileExportBaseSchema: z.ZodObject<{
|
|
|
35
35
|
updated_at: number;
|
|
36
36
|
type: "ride";
|
|
37
37
|
file_name: string;
|
|
38
|
-
processing_status: "
|
|
38
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
39
39
|
properties: Record<string, any>;
|
|
40
40
|
created_by?: string | undefined;
|
|
41
41
|
updated_by?: string | undefined;
|
|
@@ -45,23 +45,24 @@ export declare const UpdateFileExportSchema: z.ZodObject<{
|
|
|
45
45
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
46
46
|
file_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
47
47
|
file_name: z.ZodOptional<z.ZodString>;
|
|
48
|
-
processing_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
48
|
+
processing_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
49
49
|
}, "strict", z.ZodTypeAny, {
|
|
50
50
|
updated_by?: string | undefined;
|
|
51
51
|
file_id?: string | null | undefined;
|
|
52
52
|
file_name?: string | undefined;
|
|
53
|
-
processing_status?: "
|
|
53
|
+
processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
updated_by?: string | undefined;
|
|
56
56
|
file_id?: string | null | undefined;
|
|
57
57
|
file_name?: string | undefined;
|
|
58
|
-
processing_status?: "
|
|
58
|
+
processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export type UpdateFileExport = z.infer<typeof UpdateFileExportSchema>;
|
|
61
61
|
export type CreateFileExportDto<T extends {
|
|
62
62
|
properties: Record<string, unknown>;
|
|
63
63
|
type: string;
|
|
64
64
|
}> = Omit<z.infer<typeof FileExportBaseSchema>, '_id' | 'created_at' | 'file_id' | 'processing_status' | 'updated_at'> & {
|
|
65
|
+
file_id: null;
|
|
65
66
|
processing_status?: 'waiting';
|
|
66
67
|
properties: T['properties'];
|
|
67
68
|
type: T['type'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import { ProcessingStatusSchema } from '../
|
|
3
|
+
import { ProcessingStatusSchema } from '../_common/status.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
export const FILE_EXPORT_TYPES = ['ride'];
|
|
6
6
|
export const FileExportTypeSchema = z.enum(FILE_EXPORT_TYPES);
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type FileExport = z.infer<typeof FileExportSchema>;
|
|
3
|
+
export { type CreateFileExportDto, type FileExportType, FileExportTypeSchema, type UpdateFileExport, UpdateFileExportSchema } from './common.js';
|
|
4
|
+
export { type RideExportData, type RideExportProperties, RideExportPropertiesSchema, RideExportSchema } from './ride-export.js';
|
|
5
|
+
export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6
|
+
_id: z.ZodString;
|
|
7
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
8
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
9
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
10
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
11
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
file_name: z.ZodString;
|
|
13
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
14
|
+
} & {
|
|
15
|
+
properties: z.ZodObject<{
|
|
16
|
+
agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17
|
+
analysis_ended_at_last_stop: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>;
|
|
18
|
+
analysis_expected_apex_validation_interval: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>;
|
|
19
|
+
analysis_simple_three_vehicle_events: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>;
|
|
20
|
+
analysis_transaction_sequentiality: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>;
|
|
21
|
+
date_end: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
22
|
+
date_start: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
23
|
+
delay_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>>;
|
|
24
|
+
operational_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>>;
|
|
25
|
+
seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["gone", "seen", "unseen"]>, "many">>>;
|
|
26
|
+
line_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
27
|
+
stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
28
|
+
acceptance_status: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
date_end: number & {
|
|
31
|
+
__brand: "UnixTimestamp";
|
|
32
|
+
};
|
|
33
|
+
date_start: number & {
|
|
34
|
+
__brand: "UnixTimestamp";
|
|
35
|
+
};
|
|
36
|
+
agency_ids?: string[] | null | undefined;
|
|
37
|
+
acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
|
|
38
|
+
analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
39
|
+
analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
40
|
+
analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
41
|
+
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
42
|
+
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
43
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
44
|
+
seen_statuses?: ("gone" | "seen" | "unseen")[] | null | undefined;
|
|
45
|
+
line_ids?: string[] | null | undefined;
|
|
46
|
+
stop_ids?: string[] | null | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
date_end: number;
|
|
49
|
+
date_start: number;
|
|
50
|
+
agency_ids?: string[] | null | undefined;
|
|
51
|
+
acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
|
|
52
|
+
analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
53
|
+
analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
54
|
+
analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
55
|
+
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
56
|
+
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
57
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
58
|
+
seen_statuses?: ("gone" | "seen" | "unseen")[] | null | undefined;
|
|
59
|
+
line_ids?: string[] | null | undefined;
|
|
60
|
+
stop_ids?: string[] | null | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
type: z.ZodLiteral<"ride">;
|
|
63
|
+
}, "strict", z.ZodTypeAny, {
|
|
64
|
+
_id: string;
|
|
65
|
+
created_at: number & {
|
|
66
|
+
__brand: "UnixTimestamp";
|
|
67
|
+
};
|
|
68
|
+
updated_at: number & {
|
|
69
|
+
__brand: "UnixTimestamp";
|
|
70
|
+
};
|
|
71
|
+
type: "ride";
|
|
72
|
+
file_name: string;
|
|
73
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
74
|
+
properties: {
|
|
75
|
+
date_end: number & {
|
|
76
|
+
__brand: "UnixTimestamp";
|
|
77
|
+
};
|
|
78
|
+
date_start: number & {
|
|
79
|
+
__brand: "UnixTimestamp";
|
|
80
|
+
};
|
|
81
|
+
agency_ids?: string[] | null | undefined;
|
|
82
|
+
acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
|
|
83
|
+
analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
84
|
+
analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
85
|
+
analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
86
|
+
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
87
|
+
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
88
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
89
|
+
seen_statuses?: ("gone" | "seen" | "unseen")[] | null | undefined;
|
|
90
|
+
line_ids?: string[] | null | undefined;
|
|
91
|
+
stop_ids?: string[] | null | undefined;
|
|
92
|
+
};
|
|
93
|
+
created_by?: string | undefined;
|
|
94
|
+
updated_by?: string | undefined;
|
|
95
|
+
file_id?: string | null | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
_id: string;
|
|
98
|
+
created_at: number;
|
|
99
|
+
updated_at: number;
|
|
100
|
+
type: "ride";
|
|
101
|
+
file_name: string;
|
|
102
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
103
|
+
properties: {
|
|
104
|
+
date_end: number;
|
|
105
|
+
date_start: number;
|
|
106
|
+
agency_ids?: string[] | null | undefined;
|
|
107
|
+
acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
|
|
108
|
+
analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
109
|
+
analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
110
|
+
analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
111
|
+
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
112
|
+
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
113
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
114
|
+
seen_statuses?: ("gone" | "seen" | "unseen")[] | null | undefined;
|
|
115
|
+
line_ids?: string[] | null | undefined;
|
|
116
|
+
stop_ids?: string[] | null | undefined;
|
|
117
|
+
};
|
|
118
|
+
created_by?: string | undefined;
|
|
119
|
+
updated_by?: string | undefined;
|
|
120
|
+
file_id?: string | null | undefined;
|
|
121
|
+
}>]>;
|