@tmlmobilidade/types 20260610.1553.25 → 20260611.1337.59
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/agencies/agency.d.ts +10 -10
- package/dist/agencies/agency.js +1 -2
- package/dist/alerts/alert.d.ts +26 -26
- package/dist/alerts/alert.js +1 -3
- package/dist/apex/raw/banking-taps/banking-tap-v40.d.ts +2 -2
- package/dist/apex/raw/inspections/inspection-decision-v20.d.ts +2 -2
- package/dist/apex/raw/inspections/inspection-v20.d.ts +2 -2
- package/dist/apex/raw/locations/location-v30.d.ts +2 -2
- package/dist/apex/raw/raw-apex-transaction-base.d.ts +2 -2
- package/dist/apex/raw/raw-apex-transaction-base.js +1 -1
- package/dist/apex/raw/raw-apex-transaction.d.ts +16 -16
- package/dist/apex/raw/sales/refund-v30.d.ts +2 -2
- package/dist/apex/raw/sales/sale-v30.d.ts +2 -2
- package/dist/apex/raw/validations/validation-v20.d.ts +2 -2
- package/dist/apex/raw/validations/validation-v30.d.ts +2 -2
- package/dist/apex/simplified/simplified-apex-banking-taps.d.ts +2 -2
- package/dist/apex/simplified/simplified-apex-banking-taps.js +1 -1
- package/dist/apex/simplified/simplified-apex-inspection-decision.d.ts +2 -2
- package/dist/apex/simplified/simplified-apex-inspection-decision.js +1 -1
- package/dist/apex/simplified/simplified-apex-inspection.d.ts +2 -2
- package/dist/apex/simplified/simplified-apex-inspection.js +1 -1
- package/dist/apex/simplified/simplified-apex-location.d.ts +9 -9
- package/dist/apex/simplified/simplified-apex-location.js +1 -2
- package/dist/apex/simplified/simplified-apex-on-board-refund.d.ts +9 -9
- package/dist/apex/simplified/simplified-apex-on-board-refund.js +1 -2
- package/dist/apex/simplified/simplified-apex-on-board-sale.d.ts +9 -9
- package/dist/apex/simplified/simplified-apex-on-board-sale.js +1 -2
- package/dist/apex/simplified/simplified-apex-validation.d.ts +11 -11
- package/dist/apex/simplified/simplified-apex-validation.js +1 -1
- package/dist/api/api-response.d.ts +4 -4
- package/dist/auth/role.d.ts +196 -196
- package/dist/auth/role.js +1 -1
- package/dist/auth/session.d.ts +8 -8
- package/dist/auth/session.js +1 -2
- package/dist/auth/simplified-user.d.ts +37 -37
- package/dist/auth/user.d.ts +322 -322
- package/dist/auth/user.js +1 -2
- package/dist/auth/verification-token.d.ts +8 -8
- package/dist/auth/verification-token.js +1 -2
- package/dist/dates/annotation.d.ts +10 -10
- package/dist/dates/annotation.js +1 -2
- package/dist/dates/event.d.ts +40 -40
- package/dist/dates/event.js +1 -2
- package/dist/dates/holiday.d.ts +10 -10
- package/dist/dates/holiday.js +1 -2
- package/dist/dates/year-period.d.ts +10 -10
- package/dist/dates/year-period.js +1 -2
- package/dist/file-exports/base.d.ts +8 -8
- package/dist/file-exports/base.js +1 -2
- package/dist/file-exports/file-exports.d.ts +70 -70
- package/dist/file-exports/gtfs-export.d.ts +12 -12
- package/dist/file-exports/gtfs-export.js +1 -1
- package/dist/file-exports/ride-export.d.ts +58 -58
- package/dist/file-exports/ride-export.js +1 -2
- package/dist/file-exports/sams-analysis-export.d.ts +40 -40
- package/dist/file-exports/sams-analysis-export.js +1 -2
- package/dist/file-exports/stop-export.d.ts +28 -28
- package/dist/file-exports/stop-export.js +1 -2
- package/dist/file-exports/vehicle-export.d.ts +4 -4
- package/dist/file.d.ts +4 -4
- package/dist/file.js +1 -1
- package/dist/gtfs/calendar-dates.d.ts +1 -1
- package/dist/gtfs/calendar-dates.js +1 -1
- package/dist/gtfs/calendar.d.ts +1 -1
- package/dist/gtfs/calendar.js +1 -1
- package/dist/gtfs/feed-info.d.ts +4 -4
- package/dist/gtfs/feed-info.js +1 -1
- package/dist/gtfs-rt/alert.d.ts +1 -1
- package/dist/gtfs-rt/entity-selector.d.ts +1 -1
- package/dist/gtfs-rt/feed-entity.d.ts +2 -2
- package/dist/gtfs-rt/feed-message.d.ts +2 -2
- package/dist/gtfs-rt/trip-descriptor.d.ts +1 -1
- package/dist/gtfs-rt/trip-descriptor.js +1 -1
- package/dist/gtfs-rt/vehicle-position.d.ts +1 -1
- package/dist/gtfs-tml/feed-info.d.ts +4 -4
- package/dist/gtfs-validation/gtfs-validation-message.d.ts +2 -2
- package/dist/gtfs-validation/gtfs-validation-summary.d.ts +4 -4
- package/dist/gtfs-validation/gtfs-validation.d.ts +46 -46
- package/dist/gtfs-validation/gtfs-validation.js +1 -2
- package/dist/hub/api/alerts/alert.d.ts +7 -7
- package/dist/hub/api/network/stop.d.ts +4 -4
- package/dist/hub/api/network/stop.js +1 -1
- package/dist/hub/api/plans/plan.d.ts +8 -8
- package/dist/hub/api/plans/plan.js +1 -1
- package/dist/hub/api/realtime/vehicle-position.d.ts +9 -9
- package/dist/hub/api/realtime/vehicle-position.js +1 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/dist/locations/queries.d.ts +6 -6
- package/dist/locations/queries.js +1 -1
- package/dist/notification.d.ts +4 -4
- package/dist/notification.js +1 -1
- package/dist/offer/fare.d.ts +2 -2
- package/dist/offer/fare.js +1 -1
- package/dist/offer/line.d.ts +10 -10
- package/dist/offer/line.js +1 -1
- package/dist/offer/parameters.d.ts +8 -8
- package/dist/offer/pattern.d.ts +646 -646
- package/dist/offer/pattern.js +1 -2
- package/dist/offer/route.d.ts +4 -4
- package/dist/offer/route.js +1 -1
- package/dist/offer/rules.d.ts +56 -56
- package/dist/offer/rules.js +1 -1
- package/dist/offer/transport-type.d.ts +2 -2
- package/dist/offer/typology.d.ts +2 -2
- package/dist/offer/typology.js +1 -1
- package/dist/offer/zone.d.ts +2 -2
- package/dist/offer/zone.js +1 -1
- package/dist/operation/hashed-lines/hashed-line.d.ts +2 -2
- package/dist/operation/hashed-lines/hashed-line.js +1 -1
- package/dist/operation/hashed-patterns/hashed-pattern.d.ts +2 -2
- package/dist/operation/hashed-patterns/hashed-pattern.js +1 -1
- package/dist/operation/hashed-shapes/hashed-shape.d.ts +1 -1
- package/dist/operation/hashed-trips/hashed-trip.d.ts +2 -2
- package/dist/operation/hashed-trips/hashed-trip.js +1 -1
- package/dist/operation/lines/batch-query.d.ts +2 -2
- package/dist/operation/lines/batch-query.js +1 -1
- package/dist/operation/lines/operational-line.d.ts +3 -3
- package/dist/operation/lines/operational-line.js +1 -1
- package/dist/operation/rides/batch-query.d.ts +14 -14
- package/dist/operation/rides/batch-query.js +1 -2
- package/dist/operation/rides/ride-acceptance.d.ts +167 -167
- package/dist/operation/rides/ride-acceptance.js +1 -2
- package/dist/operation/rides/ride-audit.d.ts +40 -40
- package/dist/operation/rides/ride-audit.js +1 -2
- package/dist/operation/rides/ride-normalized.d.ts +31 -31
- package/dist/operation/rides/ride-normalized.js +1 -1
- package/dist/operation/rides/ride.d.ts +46 -46
- package/dist/operation/rides/ride.js +1 -4
- package/dist/operation/stops/batch-query.d.ts +2 -2
- package/dist/operation/stops/batch-query.js +1 -1
- package/dist/operation/stops/operational-stop.d.ts +3 -3
- package/dist/operation/stops/operational-stop.js +1 -1
- package/dist/organization.d.ts +4 -4
- package/dist/organization.js +1 -1
- package/dist/permissions/agencies.d.ts +2 -2
- package/dist/permissions/alerts.d.ts +2 -2
- package/dist/permissions/dates.d.ts +8 -8
- package/dist/permissions/fares.d.ts +2 -2
- package/dist/permissions/index.d.ts +32 -32
- package/dist/permissions/lines.d.ts +2 -2
- package/dist/permissions/organizations.d.ts +2 -2
- package/dist/permissions/plans.d.ts +2 -2
- package/dist/permissions/roles.d.ts +2 -2
- package/dist/permissions/stops.d.ts +2 -2
- package/dist/permissions/typologies.d.ts +2 -2
- package/dist/permissions/users.d.ts +2 -2
- package/dist/permissions/vehicles.d.ts +2 -2
- package/dist/permissions/zones.d.ts +2 -2
- package/dist/plans/plan-app-status.d.ts +4 -4
- package/dist/plans/plan-app-status.js +1 -2
- package/dist/plans/plan.d.ts +142 -142
- package/dist/plans/plan.js +1 -1
- package/dist/proposed-change.d.ts +15 -15
- package/dist/proposed-change.js +2 -2
- package/dist/sams/batch-query.d.ts +6 -6
- package/dist/sams/batch-query.js +1 -2
- package/dist/sams/sam-analysis.d.ts +4 -4
- package/dist/sams/sam-analysis.js +1 -1
- package/dist/sams/sam.d.ts +40 -40
- package/dist/sams/sam.js +1 -3
- package/dist/stops/parent-station.d.ts +4 -4
- package/dist/stops/parent-station.js +1 -1
- package/dist/stops/stop-area.d.ts +4 -4
- package/dist/stops/stop-area.js +1 -1
- package/dist/stops/stop.d.ts +201 -201
- package/dist/stops/stop.js +1 -4
- package/dist/vehicle/vehicle.d.ts +18 -18
- package/dist/vehicle/vehicle.js +1 -2
- package/dist/vehicle-events/raw/ccfl/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-core.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-log.d.ts +2 -2
- package/dist/vehicle-events/raw/cp/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event-base.js +1 -1
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +34 -34
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +2 -2
- package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +5 -5
- package/dist/vehicle-events/simplified/simplified-vehicle-event.js +1 -1
- package/package.json +2 -1
- package/dist/_common/calendar-date.d.ts +0 -13
- package/dist/_common/calendar-date.js +0 -20
- package/dist/_common/comment.d.ts +0 -367
- package/dist/_common/comment.js +0 -83
- package/dist/_common/document.d.ts +0 -27
- package/dist/_common/document.js +0 -12
- package/dist/_common/environment.d.ts +0 -16
- package/dist/_common/environment.js +0 -15
- package/dist/_common/fastify.d.ts +0 -11
- package/dist/_common/fastify.js +0 -7
- package/dist/_common/i18n-code.d.ts +0 -4
- package/dist/_common/i18n-code.js +0 -9
- package/dist/_common/index.d.ts +0 -13
- package/dist/_common/index.js +0 -13
- package/dist/_common/mongo.d.ts +0 -3
- package/dist/_common/mongo.js +0 -1
- package/dist/_common/operational-date.d.ts +0 -13
- package/dist/_common/operational-date.js +0 -20
- package/dist/_common/position.d.ts +0 -160
- package/dist/_common/position.js +0 -41
- package/dist/_common/status.d.ts +0 -37
- package/dist/_common/status.js +0 -50
- package/dist/_common/transit-mode.d.ts +0 -4
- package/dist/_common/transit-mode.js +0 -10
- package/dist/_common/unix-timestamp.d.ts +0 -17
- package/dist/_common/unix-timestamp.js +0 -22
- package/dist/_common/utility.d.ts +0 -83
- package/dist/_common/utility.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AgencySchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
4
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
9
|
} & {
|
|
10
10
|
alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
|
|
@@ -23,7 +23,7 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
23
23
|
vkm_per_month: number[];
|
|
24
24
|
}>;
|
|
25
25
|
name: z.ZodString;
|
|
26
|
-
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("
|
|
26
|
+
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
|
|
27
27
|
phone: z.ZodString;
|
|
28
28
|
public_email: z.ZodString;
|
|
29
29
|
public_name: z.ZodString;
|
|
@@ -51,7 +51,7 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
51
51
|
price_per_km: number;
|
|
52
52
|
vkm_per_month: number[];
|
|
53
53
|
};
|
|
54
|
-
operation_start_date: import("
|
|
54
|
+
operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
|
|
55
55
|
phone: string;
|
|
56
56
|
public_email: string;
|
|
57
57
|
public_name: string;
|
|
@@ -88,10 +88,10 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
88
88
|
}>;
|
|
89
89
|
export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
90
90
|
_id: z.ZodString;
|
|
91
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
91
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
92
92
|
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
93
93
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("
|
|
94
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
95
95
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
96
96
|
} & {
|
|
97
97
|
alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
|
|
@@ -110,7 +110,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
110
110
|
vkm_per_month: number[];
|
|
111
111
|
}>;
|
|
112
112
|
name: z.ZodString;
|
|
113
|
-
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("
|
|
113
|
+
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
|
|
114
114
|
phone: z.ZodString;
|
|
115
115
|
public_email: z.ZodString;
|
|
116
116
|
public_name: z.ZodString;
|
|
@@ -132,7 +132,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
132
132
|
price_per_km: number;
|
|
133
133
|
vkm_per_month: number[];
|
|
134
134
|
};
|
|
135
|
-
operation_start_date: import("
|
|
135
|
+
operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
|
|
136
136
|
phone: string;
|
|
137
137
|
public_email: string;
|
|
138
138
|
public_name: string;
|
|
@@ -185,7 +185,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
185
185
|
price_per_km: number;
|
|
186
186
|
vkm_per_month: number[];
|
|
187
187
|
}>>;
|
|
188
|
-
operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("
|
|
188
|
+
operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>>;
|
|
189
189
|
phone: z.ZodOptional<z.ZodString>;
|
|
190
190
|
public_email: z.ZodOptional<z.ZodString>;
|
|
191
191
|
public_name: z.ZodOptional<z.ZodString>;
|
|
@@ -207,7 +207,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
207
207
|
price_per_km: number;
|
|
208
208
|
vkm_per_month: number[];
|
|
209
209
|
} | undefined;
|
|
210
|
-
operation_start_date?: import("
|
|
210
|
+
operation_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
|
|
211
211
|
phone?: string | undefined;
|
|
212
212
|
public_email?: string | undefined;
|
|
213
213
|
public_name?: string | undefined;
|
package/dist/agencies/agency.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import { OperationalDateSchema } from '../_common/operational-date.js';
|
|
4
2
|
import { AgencyAlertMapSchema } from './alert-map.js';
|
|
5
3
|
import { AgencyFinancialsSchema } from './financials.js';
|
|
4
|
+
import { DocumentSchema, OperationalDateSchema } from '@tmlmobilidade/go-types-shared';
|
|
6
5
|
import { z } from 'zod';
|
|
7
6
|
/* * */
|
|
8
7
|
export const AgencySchema = DocumentSchema.extend({
|
package/dist/alerts/alert.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AlertSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
4
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
9
|
} & {
|
|
10
|
-
active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
11
|
-
active_period_start_date: z.ZodEffects<z.ZodNumber, import("
|
|
10
|
+
active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
|
|
11
|
+
active_period_start_date: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
12
12
|
agency_id: z.ZodString;
|
|
13
13
|
auto_texts: z.ZodDefault<z.ZodBoolean>;
|
|
14
14
|
cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>;
|
|
@@ -19,8 +19,8 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
19
19
|
file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
info_url: z.ZodDefault<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
|
|
21
21
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
-
publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
23
|
-
publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
22
|
+
publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
|
|
23
|
+
publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
|
|
24
24
|
publish_status: z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>;
|
|
25
25
|
reference_type: z.ZodEnum<["agency", "lines", "stops", "rides"]>;
|
|
26
26
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -46,7 +46,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
46
46
|
__brand: "UnixTimestamp";
|
|
47
47
|
};
|
|
48
48
|
description: string;
|
|
49
|
-
active_period_end_date: import("
|
|
49
|
+
active_period_end_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
50
50
|
active_period_start_date: number & {
|
|
51
51
|
__brand: "UnixTimestamp";
|
|
52
52
|
};
|
|
@@ -59,8 +59,8 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
59
59
|
file_id: string | null;
|
|
60
60
|
info_url: string | null;
|
|
61
61
|
municipality_ids: string[];
|
|
62
|
-
publish_end_date: import("
|
|
63
|
-
publish_start_date: import("
|
|
62
|
+
publish_end_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
63
|
+
publish_start_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
64
64
|
publish_status: "published" | "archived" | "draft";
|
|
65
65
|
reference_type: "agency" | "lines" | "stops" | "rides";
|
|
66
66
|
references: {
|
|
@@ -102,14 +102,14 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
102
102
|
}>;
|
|
103
103
|
export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
104
104
|
_id: z.ZodString;
|
|
105
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
105
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
106
106
|
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
107
107
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
108
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("
|
|
108
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
109
109
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
110
110
|
} & {
|
|
111
|
-
active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
112
|
-
active_period_start_date: z.ZodEffects<z.ZodNumber, import("
|
|
111
|
+
active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
|
|
112
|
+
active_period_start_date: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
113
113
|
agency_id: z.ZodString;
|
|
114
114
|
auto_texts: z.ZodDefault<z.ZodBoolean>;
|
|
115
115
|
cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>;
|
|
@@ -120,8 +120,8 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
120
120
|
file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
121
121
|
info_url: z.ZodDefault<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
|
|
122
122
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
123
|
-
publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
124
|
-
publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
123
|
+
publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
|
|
124
|
+
publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
|
|
125
125
|
publish_status: z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>;
|
|
126
126
|
reference_type: z.ZodEnum<["agency", "lines", "stops", "rides"]>;
|
|
127
127
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -139,7 +139,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
139
139
|
}, "_id" | "created_at" | "created_by" | "updated_at" | "updated_by">, "strip", z.ZodTypeAny, {
|
|
140
140
|
is_locked: boolean;
|
|
141
141
|
description: string;
|
|
142
|
-
active_period_end_date: import("
|
|
142
|
+
active_period_end_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
143
143
|
active_period_start_date: number & {
|
|
144
144
|
__brand: "UnixTimestamp";
|
|
145
145
|
};
|
|
@@ -152,8 +152,8 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
152
152
|
file_id: string | null;
|
|
153
153
|
info_url: string | null;
|
|
154
154
|
municipality_ids: string[];
|
|
155
|
-
publish_end_date: import("
|
|
156
|
-
publish_start_date: import("
|
|
155
|
+
publish_end_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
156
|
+
publish_start_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
157
157
|
publish_status: "published" | "archived" | "draft";
|
|
158
158
|
reference_type: "agency" | "lines" | "stops" | "rides";
|
|
159
159
|
references: {
|
|
@@ -190,8 +190,8 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
190
190
|
export declare const UpdateAlertSchema: z.ZodObject<{
|
|
191
191
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
192
192
|
description: z.ZodOptional<z.ZodString>;
|
|
193
|
-
active_period_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
194
|
-
active_period_start_date: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("
|
|
193
|
+
active_period_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>>;
|
|
194
|
+
active_period_start_date: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
195
195
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
196
196
|
auto_texts: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
197
197
|
cause: z.ZodOptional<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>>;
|
|
@@ -201,8 +201,8 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
201
201
|
file_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
202
202
|
info_url: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>>;
|
|
203
203
|
municipality_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
204
|
-
publish_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
205
|
-
publish_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("
|
|
204
|
+
publish_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>>;
|
|
205
|
+
publish_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>>;
|
|
206
206
|
publish_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>>;
|
|
207
207
|
reference_type: z.ZodOptional<z.ZodEnum<["agency", "lines", "stops", "rides"]>>;
|
|
208
208
|
references: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -220,8 +220,8 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
221
|
is_locked?: boolean | undefined;
|
|
222
222
|
description?: string | undefined;
|
|
223
|
-
active_period_end_date?: import("
|
|
224
|
-
active_period_start_date?: import("
|
|
223
|
+
active_period_end_date?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
224
|
+
active_period_start_date?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
225
225
|
agency_id?: string | undefined;
|
|
226
226
|
auto_texts?: boolean | undefined;
|
|
227
227
|
cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE" | undefined;
|
|
@@ -231,8 +231,8 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
231
231
|
file_id?: string | null | undefined;
|
|
232
232
|
info_url?: string | null | undefined;
|
|
233
233
|
municipality_ids?: string[] | undefined;
|
|
234
|
-
publish_end_date?: import("
|
|
235
|
-
publish_start_date?: import("
|
|
234
|
+
publish_end_date?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
235
|
+
publish_start_date?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
236
236
|
publish_status?: "published" | "archived" | "draft" | undefined;
|
|
237
237
|
reference_type?: "agency" | "lines" | "stops" | "rides" | undefined;
|
|
238
238
|
references?: {
|
package/dist/alerts/alert.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import { PublishStatusSchema } from '../_common/status.js';
|
|
4
|
-
import { UnixTimestampSchema } from '../_common/unix-timestamp.js';
|
|
5
2
|
import { AlertCauseSchema } from './cause.js';
|
|
6
3
|
import { AlertEffectSchema } from './effect.js';
|
|
7
4
|
import { AlertReferenceTypeSchema } from './reference-type.js';
|
|
8
5
|
import { AlertReferenceSchema } from './reference.js';
|
|
6
|
+
import { DocumentSchema, PublishStatusSchema, UnixTimestampSchema } from '@tmlmobilidade/go-types-shared';
|
|
9
7
|
import { z } from 'zod';
|
|
10
8
|
/* * */
|
|
11
9
|
export const AlertSchema = DocumentSchema.extend({
|
|
@@ -265,9 +265,9 @@ export type RawApexTransactionBankingTapV40Payload = z.infer<typeof RawApexTrans
|
|
|
265
265
|
export declare const RawApexTransactionBankingTapV40Schema: z.ZodObject<{
|
|
266
266
|
_id: z.ZodString;
|
|
267
267
|
agency_id: z.ZodString;
|
|
268
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
268
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
269
269
|
is_ok: z.ZodBoolean;
|
|
270
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
270
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
271
271
|
transaction_id: z.ZodString;
|
|
272
272
|
} & {
|
|
273
273
|
payload: z.ZodObject<{
|
|
@@ -187,9 +187,9 @@ export type RawApexTransactionInspectionDecisionV20Payload = z.infer<typeof RawA
|
|
|
187
187
|
export declare const RawApexTransactionInspectionDecisionV20Schema: z.ZodObject<{
|
|
188
188
|
_id: z.ZodString;
|
|
189
189
|
agency_id: z.ZodString;
|
|
190
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
190
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
191
191
|
is_ok: z.ZodBoolean;
|
|
192
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
192
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
193
193
|
transaction_id: z.ZodString;
|
|
194
194
|
} & {
|
|
195
195
|
payload: z.ZodObject<{
|
|
@@ -387,9 +387,9 @@ export type RawApexTransactionInspectionV20Payload = z.infer<typeof RawApexTrans
|
|
|
387
387
|
export declare const RawApexTransactionInspectionV20Schema: z.ZodObject<{
|
|
388
388
|
_id: z.ZodString;
|
|
389
389
|
agency_id: z.ZodString;
|
|
390
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
390
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
391
391
|
is_ok: z.ZodBoolean;
|
|
392
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
392
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
393
393
|
transaction_id: z.ZodString;
|
|
394
394
|
} & {
|
|
395
395
|
payload: z.ZodObject<{
|
|
@@ -255,9 +255,9 @@ export type RawApexTransactionLocationV30Payload = z.infer<typeof RawApexTransac
|
|
|
255
255
|
export declare const RawApexTransactionLocationV30Schema: z.ZodObject<{
|
|
256
256
|
_id: z.ZodString;
|
|
257
257
|
agency_id: z.ZodString;
|
|
258
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
258
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
259
259
|
is_ok: z.ZodBoolean;
|
|
260
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
260
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
261
261
|
transaction_id: z.ZodString;
|
|
262
262
|
} & {
|
|
263
263
|
payload: z.ZodObject<{
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RawApexTransactionBaseSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
6
6
|
is_ok: z.ZodBoolean;
|
|
7
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
7
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
8
|
transaction_id: z.ZodString;
|
|
9
9
|
version: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
6
6
|
is_ok: z.ZodBoolean;
|
|
7
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
7
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
8
|
transaction_id: z.ZodString;
|
|
9
9
|
} & {
|
|
10
10
|
payload: z.ZodObject<{
|
|
@@ -405,9 +405,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
405
405
|
}>, z.ZodObject<{
|
|
406
406
|
_id: z.ZodString;
|
|
407
407
|
agency_id: z.ZodString;
|
|
408
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
408
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
409
409
|
is_ok: z.ZodBoolean;
|
|
410
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
410
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
411
411
|
transaction_id: z.ZodString;
|
|
412
412
|
} & {
|
|
413
413
|
payload: z.ZodObject<{
|
|
@@ -698,9 +698,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
698
698
|
}>, z.ZodObject<{
|
|
699
699
|
_id: z.ZodString;
|
|
700
700
|
agency_id: z.ZodString;
|
|
701
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
701
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
702
702
|
is_ok: z.ZodBoolean;
|
|
703
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
703
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
704
704
|
transaction_id: z.ZodString;
|
|
705
705
|
} & {
|
|
706
706
|
payload: z.ZodObject<{
|
|
@@ -1271,9 +1271,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
1271
1271
|
}>, z.ZodObject<{
|
|
1272
1272
|
_id: z.ZodString;
|
|
1273
1273
|
agency_id: z.ZodString;
|
|
1274
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
1274
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
1275
1275
|
is_ok: z.ZodBoolean;
|
|
1276
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
1276
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
1277
1277
|
transaction_id: z.ZodString;
|
|
1278
1278
|
} & {
|
|
1279
1279
|
payload: z.ZodObject<{
|
|
@@ -1660,9 +1660,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
1660
1660
|
}>, z.ZodObject<{
|
|
1661
1661
|
_id: z.ZodString;
|
|
1662
1662
|
agency_id: z.ZodString;
|
|
1663
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
1663
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
1664
1664
|
is_ok: z.ZodBoolean;
|
|
1665
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
1665
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
1666
1666
|
transaction_id: z.ZodString;
|
|
1667
1667
|
} & {
|
|
1668
1668
|
payload: z.ZodObject<{
|
|
@@ -2122,9 +2122,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
2122
2122
|
}>, z.ZodObject<{
|
|
2123
2123
|
_id: z.ZodString;
|
|
2124
2124
|
agency_id: z.ZodString;
|
|
2125
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
2125
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2126
2126
|
is_ok: z.ZodBoolean;
|
|
2127
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
2127
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2128
2128
|
transaction_id: z.ZodString;
|
|
2129
2129
|
} & {
|
|
2130
2130
|
payload: z.ZodObject<{
|
|
@@ -2577,9 +2577,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
2577
2577
|
}>, z.ZodObject<{
|
|
2578
2578
|
_id: z.ZodString;
|
|
2579
2579
|
agency_id: z.ZodString;
|
|
2580
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
2580
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2581
2581
|
is_ok: z.ZodBoolean;
|
|
2582
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
2582
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2583
2583
|
transaction_id: z.ZodString;
|
|
2584
2584
|
} & {
|
|
2585
2585
|
payload: z.ZodObject<{
|
|
@@ -3116,9 +3116,9 @@ export declare const RawApexTransactionSchema: z.ZodDiscriminatedUnion<"version"
|
|
|
3116
3116
|
}>, z.ZodObject<{
|
|
3117
3117
|
_id: z.ZodString;
|
|
3118
3118
|
agency_id: z.ZodString;
|
|
3119
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
3119
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
3120
3120
|
is_ok: z.ZodBoolean;
|
|
3121
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
3121
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
3122
3122
|
transaction_id: z.ZodString;
|
|
3123
3123
|
} & {
|
|
3124
3124
|
payload: z.ZodObject<{
|
|
@@ -306,9 +306,9 @@ export type RawApexTransactionRefundV30Payload = z.infer<typeof RawApexTransacti
|
|
|
306
306
|
export declare const RawApexTransactionRefundV30Schema: z.ZodObject<{
|
|
307
307
|
_id: z.ZodString;
|
|
308
308
|
agency_id: z.ZodString;
|
|
309
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
309
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
310
310
|
is_ok: z.ZodBoolean;
|
|
311
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
311
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
312
312
|
transaction_id: z.ZodString;
|
|
313
313
|
} & {
|
|
314
314
|
payload: z.ZodObject<{
|
|
@@ -301,9 +301,9 @@ export type RawApexTransactionSaleV30Payload = z.infer<typeof RawApexTransaction
|
|
|
301
301
|
export declare const RawApexTransactionSaleV30Schema: z.ZodObject<{
|
|
302
302
|
_id: z.ZodString;
|
|
303
303
|
agency_id: z.ZodString;
|
|
304
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
304
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
305
305
|
is_ok: z.ZodBoolean;
|
|
306
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
306
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
307
307
|
transaction_id: z.ZodString;
|
|
308
308
|
} & {
|
|
309
309
|
payload: z.ZodObject<{
|
|
@@ -361,9 +361,9 @@ export type RawApexTransactionValidationV20Payload = z.infer<typeof RawApexTrans
|
|
|
361
361
|
export declare const RawApexTransactionValidationV20Schema: z.ZodObject<{
|
|
362
362
|
_id: z.ZodString;
|
|
363
363
|
agency_id: z.ZodString;
|
|
364
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
364
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
365
365
|
is_ok: z.ZodBoolean;
|
|
366
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
366
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
367
367
|
transaction_id: z.ZodString;
|
|
368
368
|
} & {
|
|
369
369
|
payload: z.ZodObject<{
|
|
@@ -361,9 +361,9 @@ export type RawApexTransactionValidationV30Payload = z.infer<typeof RawApexTrans
|
|
|
361
361
|
export declare const RawApexTransactionValidationV30Schema: z.ZodObject<{
|
|
362
362
|
_id: z.ZodString;
|
|
363
363
|
agency_id: z.ZodString;
|
|
364
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
364
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
365
365
|
is_ok: z.ZodBoolean;
|
|
366
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
366
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
367
367
|
transaction_id: z.ZodString;
|
|
368
368
|
} & {
|
|
369
369
|
payload: z.ZodObject<{
|
|
@@ -6,7 +6,7 @@ export declare const SimplifiedApexBankingTapSchema: z.ZodObject<{
|
|
|
6
6
|
banking_token: z.ZodString;
|
|
7
7
|
card_brand: z.ZodNumber;
|
|
8
8
|
card_pan: z.ZodString;
|
|
9
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
9
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
10
10
|
device_id: z.ZodString;
|
|
11
11
|
event_type: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
is_ok: z.ZodBoolean;
|
|
@@ -16,7 +16,7 @@ export declare const SimplifiedApexBankingTapSchema: z.ZodObject<{
|
|
|
16
16
|
mac_sam_serial_number: z.ZodNumber;
|
|
17
17
|
pattern_id: z.ZodString;
|
|
18
18
|
product_id: z.ZodString;
|
|
19
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
19
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
20
20
|
stop_id: z.ZodString;
|
|
21
21
|
trip_id: z.ZodString;
|
|
22
22
|
units_qty: z.ZodNumber;
|
|
@@ -3,7 +3,7 @@ export declare const SimplifiedApexInspectionDecisionSchema: z.ZodObject<{
|
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
5
|
apex_version: z.ZodString;
|
|
6
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
6
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
7
7
|
device_id: z.ZodString;
|
|
8
8
|
final_control_status: z.ZodNumber;
|
|
9
9
|
inspection_decision_id: z.ZodNullable<z.ZodString>;
|
|
@@ -11,7 +11,7 @@ export declare const SimplifiedApexInspectionDecisionSchema: z.ZodObject<{
|
|
|
11
11
|
is_ok_pcgi: z.ZodBoolean;
|
|
12
12
|
mac_ase_counter_value: z.ZodNumber;
|
|
13
13
|
mac_sam_serial_number: z.ZodNumber;
|
|
14
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
14
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
_id: string;
|
|
17
17
|
created_at: number & {
|
|
@@ -7,7 +7,7 @@ export declare const SimplifiedApexInspectionSchema: z.ZodObject<{
|
|
|
7
7
|
control_destination_stop_id: z.ZodString;
|
|
8
8
|
control_origin_stop_id: z.ZodString;
|
|
9
9
|
control_status: z.ZodNumber;
|
|
10
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
10
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
11
11
|
device_id: z.ZodString;
|
|
12
12
|
environment_status: z.ZodNumber;
|
|
13
13
|
inspection_id: z.ZodNullable<z.ZodString>;
|
|
@@ -18,7 +18,7 @@ export declare const SimplifiedApexInspectionSchema: z.ZodObject<{
|
|
|
18
18
|
mac_sam_serial_number: z.ZodNumber;
|
|
19
19
|
pattern_id: z.ZodString;
|
|
20
20
|
product_id: z.ZodString;
|
|
21
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
21
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
22
22
|
trip_id: z.ZodString;
|
|
23
23
|
vehicle_id: z.ZodNumber;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SimplifiedApexLocationSchema: z.ZodObject<Omit<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
4
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
10
10
|
agency_id: z.ZodString;
|
|
@@ -14,7 +14,7 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<Omit<{
|
|
|
14
14
|
mac_ase_counter_value: z.ZodNumber;
|
|
15
15
|
mac_sam_serial_number: z.ZodNumber;
|
|
16
16
|
pattern_id: z.ZodString;
|
|
17
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
17
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
18
18
|
stop_id: z.ZodString;
|
|
19
19
|
trip_id: z.ZodString;
|
|
20
20
|
vehicle_id: z.ZodNumber;
|
|
@@ -57,8 +57,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<Omit<{
|
|
|
57
57
|
}>;
|
|
58
58
|
export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
59
59
|
_id: z.ZodOptional<z.ZodString>;
|
|
60
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("
|
|
61
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("
|
|
60
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
61
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
62
62
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
63
63
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
64
64
|
device_id: z.ZodOptional<z.ZodString>;
|
|
@@ -66,16 +66,16 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
66
66
|
mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
|
|
67
67
|
mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
|
|
68
68
|
pattern_id: z.ZodOptional<z.ZodString>;
|
|
69
|
-
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("
|
|
69
|
+
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
70
70
|
stop_id: z.ZodOptional<z.ZodString>;
|
|
71
71
|
trip_id: z.ZodOptional<z.ZodString>;
|
|
72
72
|
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
_id?: string | undefined;
|
|
75
|
-
created_at?: import("
|
|
76
|
-
updated_at?: import("
|
|
75
|
+
created_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
76
|
+
updated_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
77
77
|
agency_id?: string | undefined;
|
|
78
|
-
received_at?: import("
|
|
78
|
+
received_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
79
79
|
apex_version?: string | undefined;
|
|
80
80
|
device_id?: string | undefined;
|
|
81
81
|
line_id?: string | undefined;
|