@tmlmobilidade/types 20251103.1255.55 → 20251202.1817.5
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
|
@@ -12,17 +12,17 @@ export declare const GTFSValidatorMessageSchema: z.ZodObject<{
|
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
message: string;
|
|
14
14
|
field: string;
|
|
15
|
+
validation_id: string;
|
|
15
16
|
file_name: string;
|
|
16
17
|
rows: number[];
|
|
17
18
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
18
|
-
validation_id: string;
|
|
19
19
|
}, {
|
|
20
20
|
message: string;
|
|
21
21
|
field: string;
|
|
22
|
+
validation_id: string;
|
|
22
23
|
file_name: string;
|
|
23
24
|
rows: number[];
|
|
24
25
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
25
|
-
validation_id: string;
|
|
26
26
|
}>;
|
|
27
27
|
export declare const GTFSValidatorSummarySchema: z.ZodObject<{
|
|
28
28
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -35,17 +35,17 @@ export declare const GTFSValidatorSummarySchema: z.ZodObject<{
|
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
message: string;
|
|
37
37
|
field: string;
|
|
38
|
+
validation_id: string;
|
|
38
39
|
file_name: string;
|
|
39
40
|
rows: number[];
|
|
40
41
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
41
|
-
validation_id: string;
|
|
42
42
|
}, {
|
|
43
43
|
message: string;
|
|
44
44
|
field: string;
|
|
45
|
+
validation_id: string;
|
|
45
46
|
file_name: string;
|
|
46
47
|
rows: number[];
|
|
47
48
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
48
|
-
validation_id: string;
|
|
49
49
|
}>, "many">;
|
|
50
50
|
total_errors: z.ZodNumber;
|
|
51
51
|
total_warnings: z.ZodNumber;
|
|
@@ -53,10 +53,10 @@ export declare const GTFSValidatorSummarySchema: z.ZodObject<{
|
|
|
53
53
|
messages: {
|
|
54
54
|
message: string;
|
|
55
55
|
field: string;
|
|
56
|
+
validation_id: string;
|
|
56
57
|
file_name: string;
|
|
57
58
|
rows: number[];
|
|
58
59
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
59
|
-
validation_id: string;
|
|
60
60
|
}[];
|
|
61
61
|
total_errors: number;
|
|
62
62
|
total_warnings: number;
|
|
@@ -64,10 +64,10 @@ export declare const GTFSValidatorSummarySchema: z.ZodObject<{
|
|
|
64
64
|
messages: {
|
|
65
65
|
message: string;
|
|
66
66
|
field: string;
|
|
67
|
+
validation_id: string;
|
|
67
68
|
file_name: string;
|
|
68
69
|
rows: number[];
|
|
69
70
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
70
|
-
validation_id: string;
|
|
71
71
|
}[];
|
|
72
72
|
total_errors: number;
|
|
73
73
|
total_warnings: number;
|
|
@@ -76,12 +76,12 @@ export type GTFSValidatorSummary = z.infer<typeof GTFSValidatorSummarySchema>;
|
|
|
76
76
|
export type GTFSValidatorMessage = z.infer<typeof GTFSValidatorMessageSchema>;
|
|
77
77
|
export declare const GtfsValidationSchema: z.ZodObject<{
|
|
78
78
|
_id: z.ZodString;
|
|
79
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
79
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
80
80
|
created_by: z.ZodOptional<z.ZodString>;
|
|
81
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
81
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
82
82
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
83
83
|
} & {
|
|
84
|
-
feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
|
|
84
|
+
feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
85
85
|
file_id: z.ZodString;
|
|
86
86
|
gtfs_agency: z.ZodObject<{
|
|
87
87
|
agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -115,21 +115,21 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
115
115
|
default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
116
|
feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../
|
|
118
|
+
feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
|
|
119
119
|
feed_lang: z.ZodString;
|
|
120
120
|
feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
121
|
feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
-
feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../
|
|
122
|
+
feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
|
|
123
123
|
feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
feed_lang: string;
|
|
126
126
|
default_lang?: string | null | undefined;
|
|
127
127
|
feed_contact_email?: string | null | undefined;
|
|
128
128
|
feed_contact_url?: string | null | undefined;
|
|
129
|
-
feed_end_date?: import("../
|
|
129
|
+
feed_end_date?: import("../index.js").OperationalDate | null | undefined;
|
|
130
130
|
feed_publisher_name?: string | null | undefined;
|
|
131
131
|
feed_publisher_url?: string | null | undefined;
|
|
132
|
-
feed_start_date?: import("../
|
|
132
|
+
feed_start_date?: import("../index.js").OperationalDate | null | undefined;
|
|
133
133
|
feed_version?: string | null | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
feed_lang: string;
|
|
@@ -154,17 +154,17 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
155
|
message: string;
|
|
156
156
|
field: string;
|
|
157
|
+
validation_id: string;
|
|
157
158
|
file_name: string;
|
|
158
159
|
rows: number[];
|
|
159
160
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
160
|
-
validation_id: string;
|
|
161
161
|
}, {
|
|
162
162
|
message: string;
|
|
163
163
|
field: string;
|
|
164
|
+
validation_id: string;
|
|
164
165
|
file_name: string;
|
|
165
166
|
rows: number[];
|
|
166
167
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
167
|
-
validation_id: string;
|
|
168
168
|
}>, "many">;
|
|
169
169
|
total_errors: z.ZodNumber;
|
|
170
170
|
total_warnings: z.ZodNumber;
|
|
@@ -172,10 +172,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
172
172
|
messages: {
|
|
173
173
|
message: string;
|
|
174
174
|
field: string;
|
|
175
|
+
validation_id: string;
|
|
175
176
|
file_name: string;
|
|
176
177
|
rows: number[];
|
|
177
178
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
178
|
-
validation_id: string;
|
|
179
179
|
}[];
|
|
180
180
|
total_errors: number;
|
|
181
181
|
total_warnings: number;
|
|
@@ -183,10 +183,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
183
183
|
messages: {
|
|
184
184
|
message: string;
|
|
185
185
|
field: string;
|
|
186
|
+
validation_id: string;
|
|
186
187
|
file_name: string;
|
|
187
188
|
rows: number[];
|
|
188
189
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
189
|
-
validation_id: string;
|
|
190
190
|
}[];
|
|
191
191
|
total_errors: number;
|
|
192
192
|
total_warnings: number;
|
|
@@ -200,7 +200,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
200
200
|
__brand: "UnixTimestamp";
|
|
201
201
|
};
|
|
202
202
|
file_id: string;
|
|
203
|
-
feeder_status: "
|
|
203
|
+
feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
204
204
|
gtfs_agency: {
|
|
205
205
|
agency_id: string;
|
|
206
206
|
agency_name: string;
|
|
@@ -216,10 +216,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
216
216
|
default_lang?: string | null | undefined;
|
|
217
217
|
feed_contact_email?: string | null | undefined;
|
|
218
218
|
feed_contact_url?: string | null | undefined;
|
|
219
|
-
feed_end_date?: import("../
|
|
219
|
+
feed_end_date?: import("../index.js").OperationalDate | null | undefined;
|
|
220
220
|
feed_publisher_name?: string | null | undefined;
|
|
221
221
|
feed_publisher_url?: string | null | undefined;
|
|
222
|
-
feed_start_date?: import("../
|
|
222
|
+
feed_start_date?: import("../index.js").OperationalDate | null | undefined;
|
|
223
223
|
feed_version?: string | null | undefined;
|
|
224
224
|
};
|
|
225
225
|
notification_sent: boolean;
|
|
@@ -229,10 +229,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
229
229
|
messages: {
|
|
230
230
|
message: string;
|
|
231
231
|
field: string;
|
|
232
|
+
validation_id: string;
|
|
232
233
|
file_name: string;
|
|
233
234
|
rows: number[];
|
|
234
235
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
235
|
-
validation_id: string;
|
|
236
236
|
}[];
|
|
237
237
|
total_errors: number;
|
|
238
238
|
total_warnings: number;
|
|
@@ -242,7 +242,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
242
242
|
created_at: number;
|
|
243
243
|
updated_at: number;
|
|
244
244
|
file_id: string;
|
|
245
|
-
feeder_status: "
|
|
245
|
+
feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
246
246
|
gtfs_agency: {
|
|
247
247
|
agency_id: string;
|
|
248
248
|
agency_name: string;
|
|
@@ -271,10 +271,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
271
271
|
messages: {
|
|
272
272
|
message: string;
|
|
273
273
|
field: string;
|
|
274
|
+
validation_id: string;
|
|
274
275
|
file_name: string;
|
|
275
276
|
rows: number[];
|
|
276
277
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
277
|
-
validation_id: string;
|
|
278
278
|
}[];
|
|
279
279
|
total_errors: number;
|
|
280
280
|
total_warnings: number;
|
|
@@ -282,12 +282,12 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
282
282
|
}>;
|
|
283
283
|
export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
284
284
|
_id: z.ZodString;
|
|
285
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
285
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
286
286
|
created_by: z.ZodOptional<z.ZodString>;
|
|
287
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
287
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
288
288
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
289
289
|
} & {
|
|
290
|
-
feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
|
|
290
|
+
feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
291
291
|
file_id: z.ZodString;
|
|
292
292
|
gtfs_agency: z.ZodObject<{
|
|
293
293
|
agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -321,21 +321,21 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
321
321
|
default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
322
|
feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
323
|
feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
-
feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../
|
|
324
|
+
feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
|
|
325
325
|
feed_lang: z.ZodString;
|
|
326
326
|
feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
327
|
feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
-
feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../
|
|
328
|
+
feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
|
|
329
329
|
feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
331
|
feed_lang: string;
|
|
332
332
|
default_lang?: string | null | undefined;
|
|
333
333
|
feed_contact_email?: string | null | undefined;
|
|
334
334
|
feed_contact_url?: string | null | undefined;
|
|
335
|
-
feed_end_date?: import("../
|
|
335
|
+
feed_end_date?: import("../index.js").OperationalDate | null | undefined;
|
|
336
336
|
feed_publisher_name?: string | null | undefined;
|
|
337
337
|
feed_publisher_url?: string | null | undefined;
|
|
338
|
-
feed_start_date?: import("../
|
|
338
|
+
feed_start_date?: import("../index.js").OperationalDate | null | undefined;
|
|
339
339
|
feed_version?: string | null | undefined;
|
|
340
340
|
}, {
|
|
341
341
|
feed_lang: string;
|
|
@@ -360,17 +360,17 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
361
|
message: string;
|
|
362
362
|
field: string;
|
|
363
|
+
validation_id: string;
|
|
363
364
|
file_name: string;
|
|
364
365
|
rows: number[];
|
|
365
366
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
366
|
-
validation_id: string;
|
|
367
367
|
}, {
|
|
368
368
|
message: string;
|
|
369
369
|
field: string;
|
|
370
|
+
validation_id: string;
|
|
370
371
|
file_name: string;
|
|
371
372
|
rows: number[];
|
|
372
373
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
373
|
-
validation_id: string;
|
|
374
374
|
}>, "many">;
|
|
375
375
|
total_errors: z.ZodNumber;
|
|
376
376
|
total_warnings: z.ZodNumber;
|
|
@@ -378,10 +378,10 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
378
378
|
messages: {
|
|
379
379
|
message: string;
|
|
380
380
|
field: string;
|
|
381
|
+
validation_id: string;
|
|
381
382
|
file_name: string;
|
|
382
383
|
rows: number[];
|
|
383
384
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
384
|
-
validation_id: string;
|
|
385
385
|
}[];
|
|
386
386
|
total_errors: number;
|
|
387
387
|
total_warnings: number;
|
|
@@ -389,17 +389,17 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
389
389
|
messages: {
|
|
390
390
|
message: string;
|
|
391
391
|
field: string;
|
|
392
|
+
validation_id: string;
|
|
392
393
|
file_name: string;
|
|
393
394
|
rows: number[];
|
|
394
395
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
395
|
-
validation_id: string;
|
|
396
396
|
}[];
|
|
397
397
|
total_errors: number;
|
|
398
398
|
total_warnings: number;
|
|
399
399
|
}>>>;
|
|
400
400
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
401
401
|
file_id: string;
|
|
402
|
-
feeder_status: "
|
|
402
|
+
feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
403
403
|
gtfs_agency: {
|
|
404
404
|
agency_id: string;
|
|
405
405
|
agency_name: string;
|
|
@@ -415,10 +415,10 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
415
415
|
default_lang?: string | null | undefined;
|
|
416
416
|
feed_contact_email?: string | null | undefined;
|
|
417
417
|
feed_contact_url?: string | null | undefined;
|
|
418
|
-
feed_end_date?: import("../
|
|
418
|
+
feed_end_date?: import("../index.js").OperationalDate | null | undefined;
|
|
419
419
|
feed_publisher_name?: string | null | undefined;
|
|
420
420
|
feed_publisher_url?: string | null | undefined;
|
|
421
|
-
feed_start_date?: import("../
|
|
421
|
+
feed_start_date?: import("../index.js").OperationalDate | null | undefined;
|
|
422
422
|
feed_version?: string | null | undefined;
|
|
423
423
|
};
|
|
424
424
|
notification_sent: boolean;
|
|
@@ -428,17 +428,17 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
428
428
|
messages: {
|
|
429
429
|
message: string;
|
|
430
430
|
field: string;
|
|
431
|
+
validation_id: string;
|
|
431
432
|
file_name: string;
|
|
432
433
|
rows: number[];
|
|
433
434
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
434
|
-
validation_id: string;
|
|
435
435
|
}[];
|
|
436
436
|
total_errors: number;
|
|
437
437
|
total_warnings: number;
|
|
438
438
|
} | null | undefined;
|
|
439
439
|
}, {
|
|
440
440
|
file_id: string;
|
|
441
|
-
feeder_status: "
|
|
441
|
+
feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
442
442
|
gtfs_agency: {
|
|
443
443
|
agency_id: string;
|
|
444
444
|
agency_name: string;
|
|
@@ -467,10 +467,10 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
467
467
|
messages: {
|
|
468
468
|
message: string;
|
|
469
469
|
field: string;
|
|
470
|
+
validation_id: string;
|
|
470
471
|
file_name: string;
|
|
471
472
|
rows: number[];
|
|
472
473
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
473
|
-
validation_id: string;
|
|
474
474
|
}[];
|
|
475
475
|
total_errors: number;
|
|
476
476
|
total_warnings: number;
|
|
@@ -479,7 +479,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
479
479
|
export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
480
480
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
481
481
|
file_id: z.ZodOptional<z.ZodString>;
|
|
482
|
-
feeder_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
482
|
+
feeder_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
483
483
|
gtfs_agency: z.ZodOptional<z.ZodObject<{
|
|
484
484
|
agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
485
|
agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -512,21 +512,21 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
512
512
|
default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
513
513
|
feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
514
|
feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
|
-
feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../
|
|
515
|
+
feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
|
|
516
516
|
feed_lang: z.ZodString;
|
|
517
517
|
feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
518
518
|
feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
519
|
-
feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../
|
|
519
|
+
feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
|
|
520
520
|
feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
521
|
}, "strip", z.ZodTypeAny, {
|
|
522
522
|
feed_lang: string;
|
|
523
523
|
default_lang?: string | null | undefined;
|
|
524
524
|
feed_contact_email?: string | null | undefined;
|
|
525
525
|
feed_contact_url?: string | null | undefined;
|
|
526
|
-
feed_end_date?: import("../
|
|
526
|
+
feed_end_date?: import("../index.js").OperationalDate | null | undefined;
|
|
527
527
|
feed_publisher_name?: string | null | undefined;
|
|
528
528
|
feed_publisher_url?: string | null | undefined;
|
|
529
|
-
feed_start_date?: import("../
|
|
529
|
+
feed_start_date?: import("../index.js").OperationalDate | null | undefined;
|
|
530
530
|
feed_version?: string | null | undefined;
|
|
531
531
|
}, {
|
|
532
532
|
feed_lang: string;
|
|
@@ -551,17 +551,17 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
551
551
|
}, "strip", z.ZodTypeAny, {
|
|
552
552
|
message: string;
|
|
553
553
|
field: string;
|
|
554
|
+
validation_id: string;
|
|
554
555
|
file_name: string;
|
|
555
556
|
rows: number[];
|
|
556
557
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
557
|
-
validation_id: string;
|
|
558
558
|
}, {
|
|
559
559
|
message: string;
|
|
560
560
|
field: string;
|
|
561
|
+
validation_id: string;
|
|
561
562
|
file_name: string;
|
|
562
563
|
rows: number[];
|
|
563
564
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
564
|
-
validation_id: string;
|
|
565
565
|
}>, "many">;
|
|
566
566
|
total_errors: z.ZodNumber;
|
|
567
567
|
total_warnings: z.ZodNumber;
|
|
@@ -569,10 +569,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
569
569
|
messages: {
|
|
570
570
|
message: string;
|
|
571
571
|
field: string;
|
|
572
|
+
validation_id: string;
|
|
572
573
|
file_name: string;
|
|
573
574
|
rows: number[];
|
|
574
575
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
575
|
-
validation_id: string;
|
|
576
576
|
}[];
|
|
577
577
|
total_errors: number;
|
|
578
578
|
total_warnings: number;
|
|
@@ -580,10 +580,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
580
580
|
messages: {
|
|
581
581
|
message: string;
|
|
582
582
|
field: string;
|
|
583
|
+
validation_id: string;
|
|
583
584
|
file_name: string;
|
|
584
585
|
rows: number[];
|
|
585
586
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
586
|
-
validation_id: string;
|
|
587
587
|
}[];
|
|
588
588
|
total_errors: number;
|
|
589
589
|
total_warnings: number;
|
|
@@ -591,7 +591,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
591
591
|
}, "strict", z.ZodTypeAny, {
|
|
592
592
|
updated_by?: string | undefined;
|
|
593
593
|
file_id?: string | undefined;
|
|
594
|
-
feeder_status?: "
|
|
594
|
+
feeder_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
595
595
|
gtfs_agency?: {
|
|
596
596
|
agency_id: string;
|
|
597
597
|
agency_name: string;
|
|
@@ -607,10 +607,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
607
607
|
default_lang?: string | null | undefined;
|
|
608
608
|
feed_contact_email?: string | null | undefined;
|
|
609
609
|
feed_contact_url?: string | null | undefined;
|
|
610
|
-
feed_end_date?: import("../
|
|
610
|
+
feed_end_date?: import("../index.js").OperationalDate | null | undefined;
|
|
611
611
|
feed_publisher_name?: string | null | undefined;
|
|
612
612
|
feed_publisher_url?: string | null | undefined;
|
|
613
|
-
feed_start_date?: import("../
|
|
613
|
+
feed_start_date?: import("../index.js").OperationalDate | null | undefined;
|
|
614
614
|
feed_version?: string | null | undefined;
|
|
615
615
|
} | undefined;
|
|
616
616
|
notification_sent?: boolean | undefined;
|
|
@@ -618,10 +618,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
618
618
|
messages: {
|
|
619
619
|
message: string;
|
|
620
620
|
field: string;
|
|
621
|
+
validation_id: string;
|
|
621
622
|
file_name: string;
|
|
622
623
|
rows: number[];
|
|
623
624
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
624
|
-
validation_id: string;
|
|
625
625
|
}[];
|
|
626
626
|
total_errors: number;
|
|
627
627
|
total_warnings: number;
|
|
@@ -629,7 +629,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
629
629
|
}, {
|
|
630
630
|
updated_by?: string | undefined;
|
|
631
631
|
file_id?: string | undefined;
|
|
632
|
-
feeder_status?: "
|
|
632
|
+
feeder_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
633
633
|
gtfs_agency?: {
|
|
634
634
|
agency_id: string;
|
|
635
635
|
agency_name: string;
|
|
@@ -656,10 +656,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
656
656
|
messages: {
|
|
657
657
|
message: string;
|
|
658
658
|
field: string;
|
|
659
|
+
validation_id: string;
|
|
659
660
|
file_name: string;
|
|
660
661
|
rows: number[];
|
|
661
662
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
662
|
-
validation_id: string;
|
|
663
663
|
}[];
|
|
664
664
|
total_errors: number;
|
|
665
665
|
total_warnings: number;
|
|
@@ -668,11 +668,3 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
668
668
|
export type GtfsValidation = z.infer<typeof GtfsValidationSchema>;
|
|
669
669
|
export type CreateGtfsValidationDto = z.infer<typeof CreateGtfsValidationSchema>;
|
|
670
670
|
export type UpdateGtfsValidationDto = z.infer<typeof UpdateGtfsValidationSchema>;
|
|
671
|
-
export declare const GtfsValidationPermissionSchema: z.ZodObject<{
|
|
672
|
-
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
673
|
-
}, "strip", z.ZodTypeAny, {
|
|
674
|
-
agency_ids: string[];
|
|
675
|
-
}, {
|
|
676
|
-
agency_ids: string[];
|
|
677
|
-
}>;
|
|
678
|
-
export type GtfsValidationPermission = z.infer<typeof GtfsValidationPermissionSchema>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ProcessingStatusSchema } from '../_common/status.js';
|
|
4
|
+
import { GtfsAgencySchema } from '../gtfs/agency.js';
|
|
5
|
+
import { GtfsFeedInfoSchema } from '../gtfs/feed-info.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
/* * */
|
|
7
8
|
/* SUMMARY */
|
|
@@ -31,7 +32,3 @@ export const GtfsValidationSchema = DocumentSchema.extend({
|
|
|
31
32
|
}).strict();
|
|
32
33
|
export const CreateGtfsValidationSchema = GtfsValidationSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
33
34
|
export const UpdateGtfsValidationSchema = CreateGtfsValidationSchema.omit({ created_by: true }).partial();
|
|
34
|
-
/* * */
|
|
35
|
-
export const GtfsValidationPermissionSchema = z.object({
|
|
36
|
-
agency_ids: z.array(z.string()),
|
|
37
|
-
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PlanAppStatusSchema: z.ZodDefault<z.ZodObject<{
|
|
3
|
+
last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
5
|
+
timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
8
|
+
last_hash: string | null;
|
|
9
|
+
timestamp: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
10
|
+
}, {
|
|
11
|
+
status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
12
|
+
last_hash?: string | null | undefined;
|
|
13
|
+
timestamp?: number | null | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
export type PlanAppStatus = z.infer<typeof PlanAppStatusSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { ProcessingStatusSchema } from '../_common/status.js';
|
|
3
|
+
import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/* * */
|
|
6
|
+
export const PlanAppStatusSchema = z.object({
|
|
7
|
+
last_hash: z.string().nullable().default(null),
|
|
8
|
+
status: ProcessingStatusSchema.default('waiting'),
|
|
9
|
+
timestamp: unixTimeStampSchema.nullable().default(null),
|
|
10
|
+
}).default({});
|