@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28
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/_common/comment.d.ts +24 -24
- package/dist/_common/document.d.ts +3 -3
- package/dist/_common/document.js +1 -1
- package/dist/_common/status.d.ts +2 -2
- package/dist/_common/status.js +1 -1
- package/dist/_common/unix-timestamp.js +1 -0
- package/dist/agency.d.ts +6 -6
- package/dist/alerts/alert.d.ts +262 -0
- package/dist/alerts/alert.js +34 -0
- package/dist/alerts/cause-effect-map.d.ts +106 -0
- package/dist/alerts/cause-effect-map.js +94 -0
- package/dist/alerts/cause.d.ts +17 -0
- package/dist/alerts/cause.js +45 -0
- package/dist/alerts/effect.d.ts +17 -0
- package/dist/alerts/effect.js +35 -0
- package/dist/alerts/index.d.ts +6 -0
- package/dist/alerts/index.js +6 -0
- package/dist/alerts/query.d.ts +9 -0
- package/dist/alerts/query.js +6 -0
- package/dist/alerts/reference-type.d.ts +4 -0
- package/dist/alerts/reference-type.js +10 -0
- package/dist/apex/simplified-apex-location.d.ts +2 -12
- package/dist/apex/simplified-apex-location.js +1 -1
- package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
- package/dist/apex/simplified-apex-on-board-refund.js +1 -1
- package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
- package/dist/apex/simplified-apex-on-board-sale.js +2 -2
- package/dist/apex/simplified-apex-validation.d.ts +6 -16
- package/dist/apex/simplified-apex-validation.js +1 -1
- package/dist/auth/role.d.ts +718 -130
- package/dist/auth/session.d.ts +6 -6
- package/dist/auth/user.d.ts +1182 -270
- package/dist/auth/verification-token.d.ts +4 -4
- package/dist/calendar/event.d.ts +43 -0
- package/dist/calendar/event.js +16 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.js +2 -0
- package/dist/dates/annotation.d.ts +6 -6
- package/dist/dates/date.d.ts +32 -0
- package/dist/dates/date.js +18 -0
- package/dist/dates/index.d.ts +2 -0
- package/dist/dates/index.js +2 -0
- package/dist/dates/period.d.ts +94 -0
- package/dist/dates/period.js +14 -0
- package/dist/file-exports/base.d.ts +9 -9
- package/dist/file-exports/file-exports.d.ts +7 -7
- package/dist/file-exports/ride-export.d.ts +14 -14
- package/dist/file-exports/ride-export.js +2 -2
- package/dist/gtfs/cause.d.ts +10 -0
- package/dist/gtfs/cause.js +18 -0
- package/dist/gtfs/effect.d.ts +10 -0
- package/dist/gtfs/effect.js +17 -0
- package/dist/gtfs/index.d.ts +2 -1
- package/dist/gtfs/index.js +2 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -2
- package/dist/locations/queries.d.ts +2 -2
- package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
- package/dist/metrics/demand/demand_by_category.d.ts +12 -12
- package/dist/metrics/demand/demand_by_line.d.ts +4 -4
- package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
- package/dist/metrics/demand/demand_by_product.d.ts +12 -12
- package/dist/metrics/index.d.ts +93 -48
- package/dist/metrics/index.js +4 -1
- package/dist/metrics/passenger-impact/index.d.ts +1 -0
- package/dist/metrics/passenger-impact/index.js +1 -0
- package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
- package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
- package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
- package/dist/notification.d.ts +18 -18
- package/dist/offer/index.d.ts +5 -0
- package/dist/offer/index.js +5 -0
- package/dist/offer/line.d.ts +296 -0
- package/dist/offer/line.js +60 -0
- package/dist/offer/pattern.d.ts +3608 -0
- package/dist/offer/pattern.js +75 -0
- package/dist/offer/route.d.ts +187 -0
- package/dist/offer/route.js +33 -0
- package/dist/offer/scheduleRule.d.ts +80 -0
- package/dist/offer/scheduleRule.js +50 -0
- package/dist/offer/typology.d.ts +124 -0
- package/dist/offer/typology.js +30 -0
- package/dist/organization.d.ts +20 -20
- package/dist/permissions/alerts.d.ts +13 -19
- package/dist/permissions/alerts.js +8 -13
- package/dist/permissions/annotations.d.ts +25 -0
- package/dist/permissions/annotations.js +16 -0
- package/dist/permissions/fares.d.ts +25 -0
- package/dist/permissions/fares.js +16 -0
- package/dist/permissions/index.d.ts +196 -21
- package/dist/permissions/index.js +142 -6
- package/dist/permissions/lines.d.ts +25 -0
- package/dist/permissions/lines.js +16 -0
- package/dist/permissions/periods.d.ts +25 -0
- package/dist/permissions/periods.js +16 -0
- package/dist/permissions/typologies.d.ts +25 -0
- package/dist/permissions/typologies.js +16 -0
- package/dist/permissions/vehicles.d.ts +25 -0
- package/dist/permissions/vehicles.js +16 -0
- package/dist/permissions/zones.d.ts +25 -0
- package/dist/permissions/zones.js +16 -0
- package/dist/plans/gtfs-validation.d.ts +30 -30
- package/dist/plans/plan.d.ts +6 -6
- package/dist/proposed-change.d.ts +12 -12
- package/dist/rides/batch-query.d.ts +52 -0
- package/dist/rides/batch-query.js +54 -0
- package/dist/rides/index.d.ts +1 -0
- package/dist/rides/index.js +1 -0
- package/dist/rides/ride-acceptance.d.ts +105 -105
- package/dist/rides/ride-acceptance.js +2 -2
- package/dist/rides/ride-audit.d.ts +21 -21
- package/dist/rides/ride-normalized.d.ts +808 -21
- package/dist/rides/ride-normalized.js +31 -1
- package/dist/rides/ride.d.ts +6 -6
- package/dist/sams/sam.d.ts +0 -15
- package/dist/sams/sam.js +2 -2
- package/dist/stops/connections.d.ts +1 -0
- package/dist/stops/connections.js +1 -1
- package/dist/stops/equipment.d.ts +1 -0
- package/dist/stops/equipment.js +1 -1
- package/dist/stops/parent-station.d.ts +6 -6
- package/dist/stops/stop-area.d.ts +6 -6
- package/dist/stops/stop.d.ts +69 -69
- package/dist/ticketing/fare.d.ts +137 -0
- package/dist/ticketing/fare.js +44 -0
- package/dist/ticketing/index.d.ts +2 -0
- package/dist/ticketing/index.js +2 -0
- package/dist/ticketing/zone.d.ts +220 -0
- package/dist/ticketing/zone.js +34 -0
- package/dist/vehicle/emission.d.ts +3 -0
- package/dist/vehicle/emission.js +12 -0
- package/dist/vehicle/index.d.ts +4 -0
- package/dist/vehicle/index.js +4 -0
- package/dist/vehicle/propulsion.d.ts +3 -0
- package/dist/vehicle/propulsion.js +14 -0
- package/dist/vehicle/vehicle.d.ts +189 -0
- package/dist/vehicle/vehicle.js +27 -0
- package/dist/vehicle/wheelchair.d.ts +3 -0
- package/dist/vehicle/wheelchair.js +10 -0
- package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
- package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
- package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
- package/dist/zone.d.ts +6 -6
- package/package.json +2 -2
- package/dist/alert.d.ts +0 -265
- package/dist/alert.js +0 -42
- package/dist/gtfs/cause-effetcs.d.ts +0 -86
- package/dist/gtfs/cause-effetcs.js +0 -31
- package/dist/permissions/dates.d.ts +0 -25
- package/dist/permissions/dates.js +0 -16
|
@@ -146,11 +146,11 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
|
|
|
146
146
|
export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
|
|
147
147
|
_id: z.ZodString;
|
|
148
148
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
149
|
-
created_by: z.
|
|
149
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
150
150
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
151
151
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
152
152
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, "is_locked"> & {
|
|
153
|
+
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
154
154
|
agency_id: z.ZodString;
|
|
155
155
|
apex_version: z.ZodString;
|
|
156
156
|
card_serial_number: z.ZodString;
|
|
@@ -271,9 +271,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
|
|
|
271
271
|
event_type: number;
|
|
272
272
|
product_id: string;
|
|
273
273
|
units_qty: number | null;
|
|
274
|
-
validation_status: 0 | 1 | 2 | 12 |
|
|
275
|
-
created_by?: string | undefined;
|
|
276
|
-
updated_by?: string | undefined;
|
|
274
|
+
validation_status: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13;
|
|
277
275
|
}, {
|
|
278
276
|
_id: string;
|
|
279
277
|
created_at: number;
|
|
@@ -297,16 +295,12 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
|
|
|
297
295
|
event_type: number;
|
|
298
296
|
product_id: string;
|
|
299
297
|
units_qty: number | null;
|
|
300
|
-
validation_status: 0 | 1 | 2 | 12 |
|
|
301
|
-
created_by?: string | undefined;
|
|
302
|
-
updated_by?: string | undefined;
|
|
298
|
+
validation_status: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13;
|
|
303
299
|
}>;
|
|
304
300
|
export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
305
301
|
_id: z.ZodOptional<z.ZodString>;
|
|
306
302
|
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
307
|
-
created_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
308
303
|
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
309
|
-
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
310
304
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
311
305
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
312
306
|
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
@@ -401,9 +395,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
401
395
|
}, "strip", z.ZodTypeAny, {
|
|
402
396
|
_id?: string | undefined;
|
|
403
397
|
created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
404
|
-
created_by?: string | undefined;
|
|
405
398
|
updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
406
|
-
updated_by?: string | undefined;
|
|
407
399
|
agency_id?: string | undefined;
|
|
408
400
|
apex_version?: string | undefined;
|
|
409
401
|
device_id?: string | undefined;
|
|
@@ -423,13 +415,11 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
423
415
|
event_type?: number | undefined;
|
|
424
416
|
product_id?: string | undefined;
|
|
425
417
|
units_qty?: number | null | undefined;
|
|
426
|
-
validation_status?: 0 | 1 | 2 | 12 |
|
|
418
|
+
validation_status?: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13 | undefined;
|
|
427
419
|
}, {
|
|
428
420
|
_id?: string | undefined;
|
|
429
421
|
created_at?: number | undefined;
|
|
430
|
-
created_by?: string | undefined;
|
|
431
422
|
updated_at?: number | undefined;
|
|
432
|
-
updated_by?: string | undefined;
|
|
433
423
|
agency_id?: string | undefined;
|
|
434
424
|
apex_version?: string | undefined;
|
|
435
425
|
device_id?: string | undefined;
|
|
@@ -449,7 +439,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
449
439
|
event_type?: number | undefined;
|
|
450
440
|
product_id?: string | undefined;
|
|
451
441
|
units_qty?: number | null | undefined;
|
|
452
|
-
validation_status?: 0 | 1 | 2 | 12 |
|
|
442
|
+
validation_status?: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13 | undefined;
|
|
453
443
|
}>;
|
|
454
444
|
/**
|
|
455
445
|
* APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
|
|
@@ -78,7 +78,7 @@ export const ApexValidationStatus = {
|
|
|
78
78
|
export const ApexValidationStatusSchema = z.nativeEnum(ApexValidationStatus);
|
|
79
79
|
/* * */
|
|
80
80
|
export const SimplifiedApexValidationSchema = DocumentSchema
|
|
81
|
-
.omit({ is_locked: true })
|
|
81
|
+
.omit({ created_by: true, is_locked: true, updated_by: true })
|
|
82
82
|
.extend({
|
|
83
83
|
agency_id: z.string(),
|
|
84
84
|
apex_version: z.string(),
|