@tmlmobilidade/types 20251217.1540.37 → 20251222.1537.24
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.js +15 -6
- package/dist/_common/document.d.ts +3 -0
- package/dist/_common/document.js +4 -3
- package/dist/_common/status.d.ts +15 -1
- package/dist/_common/status.js +24 -6
- package/dist/_common/unix-timestamp.d.ts +1 -1
- package/dist/_common/unix-timestamp.js +1 -1
- package/dist/agency.d.ts +18 -13
- package/dist/agency.js +1 -1
- package/dist/alert.d.ts +101 -112
- package/dist/alert.js +18 -19
- package/dist/apex/simplified-apex-location.d.ts +5 -4
- package/dist/apex/simplified-apex-location.js +6 -4
- package/dist/apex/simplified-apex-on-board-refund.d.ts +5 -4
- package/dist/apex/simplified-apex-on-board-refund.js +6 -4
- package/dist/apex/simplified-apex-on-board-sale.d.ts +5 -4
- package/dist/apex/simplified-apex-on-board-sale.js +6 -4
- package/dist/apex/simplified-apex-validation.d.ts +9 -8
- package/dist/apex/simplified-apex-validation.js +6 -4
- package/dist/auth/login.d.ts +1 -1
- package/dist/auth/login.js +1 -1
- package/dist/auth/role.d.ts +260 -149
- package/dist/auth/role.js +1 -1
- package/dist/auth/session.d.ts +9 -7
- package/dist/auth/session.js +6 -4
- package/dist/auth/user.d.ts +737 -207
- package/dist/auth/user.js +12 -9
- package/dist/auth/verification-token.d.ts +9 -14
- package/dist/auth/verification-token.js +8 -6
- package/dist/dates/annotation.d.ts +94 -0
- package/dist/dates/annotation.js +14 -0
- package/dist/dates/index.d.ts +1 -0
- package/dist/dates/index.js +1 -0
- package/dist/file-exports/{common.d.ts → base.d.ts} +6 -5
- package/dist/file-exports/{common.js → base.js} +7 -4
- package/dist/file-exports/file-exports.d.ts +124 -0
- package/dist/file-exports/file-exports.js +7 -0
- package/dist/file-exports/index.d.ts +3 -126
- package/dist/file-exports/index.js +3 -9
- package/dist/file-exports/ride-export.d.ts +13 -13
- package/dist/file-exports/ride-export.js +5 -5
- package/dist/file.d.ts +3 -3
- package/dist/file.js +4 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/notification.d.ts +9 -7
- package/dist/notification.js +4 -2
- package/dist/organization.d.ts +24 -15
- package/dist/organization.js +3 -3
- package/dist/permissions/agencies.d.ts +3 -3
- package/dist/permissions/agencies.js +1 -1
- package/dist/permissions/alerts.d.ts +6 -6
- package/dist/permissions/alerts.js +2 -2
- package/dist/permissions/dates.d.ts +25 -0
- package/dist/permissions/dates.js +16 -0
- package/dist/permissions/gtfs-validations.d.ts +3 -3
- package/dist/permissions/gtfs-validations.js +1 -0
- package/dist/permissions/index.d.ts +49 -27
- package/dist/permissions/index.js +2 -0
- package/dist/permissions/organizations.d.ts +3 -3
- package/dist/permissions/organizations.js +1 -0
- package/dist/permissions/plans.d.ts +3 -3
- package/dist/permissions/plans.js +1 -1
- package/dist/permissions/roles.d.ts +3 -3
- package/dist/permissions/roles.js +1 -0
- package/dist/permissions/stops.d.ts +3 -3
- package/dist/permissions/stops.js +1 -1
- package/dist/permissions/users.d.ts +3 -3
- package/dist/permissions/users.js +1 -0
- package/dist/plans/gtfs-validation.d.ts +12 -3
- package/dist/plans/gtfs-validation.js +1 -1
- package/dist/plans/plan-app-status.js +2 -2
- package/dist/plans/plan-pcgi-legacy.d.ts +1 -1
- package/dist/plans/plan-pcgi-legacy.js +1 -1
- package/dist/plans/plan.d.ts +9 -9
- package/dist/proposed-change.d.ts +12 -3
- package/dist/proposed-change.js +1 -1
- package/dist/rides/ride-acceptance.d.ts +23 -19
- package/dist/rides/ride-acceptance.js +5 -3
- package/dist/rides/ride-analysis.d.ts +16 -16
- package/dist/rides/ride-analysis.js +16 -16
- package/dist/rides/ride-audit.d.ts +11 -11
- package/dist/rides/ride-audit.js +1 -1
- package/dist/rides/ride-overrides.d.ts +1 -1
- package/dist/rides/ride-overrides.js +1 -1
- package/dist/rides/ride.d.ts +56 -55
- package/dist/rides/ride.js +10 -8
- package/dist/sams/sam-analysis.d.ts +1 -1
- package/dist/sams/sam-analysis.js +4 -4
- package/dist/sams/sam.d.ts +13 -13
- package/dist/sams/sam.js +7 -5
- package/dist/stops/connections.d.ts +3 -0
- package/dist/stops/connections.js +15 -0
- package/dist/stops/equipment.d.ts +3 -0
- package/dist/stops/equipment.js +9 -0
- package/dist/stops/facilities.d.ts +4 -0
- package/dist/stops/facilities.js +16 -0
- package/dist/stops/index.d.ts +9 -0
- package/dist/stops/index.js +9 -0
- package/dist/stops/jurisdiction.d.ts +4 -0
- package/dist/stops/jurisdiction.js +10 -0
- package/dist/stops/name-abbreviations.d.ts +11 -0
- package/dist/stops/name-abbreviations.js +117 -0
- package/dist/stops/parent-station.d.ts +76 -0
- package/dist/stops/parent-station.js +11 -0
- package/dist/stops/road-type.d.ts +3 -0
- package/dist/stops/road-type.js +13 -0
- package/dist/stops/stop-area.d.ts +67 -0
- package/dist/stops/stop-area.js +10 -0
- package/dist/{stop.d.ts → stops/stop.d.ts} +271 -345
- package/dist/stops/stop.js +78 -0
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +1 -21
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +4 -5
- package/dist/vehicle-events/simplified-vehicle-event.d.ts +4 -3
- package/dist/vehicle-events/simplified-vehicle-event.js +6 -4
- package/dist/zone.d.ts +10 -10
- package/dist/zone.js +1 -1
- package/package.json +2 -2
- package/dist/stop.js +0 -102
|
@@ -143,13 +143,14 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
|
|
|
143
143
|
*/
|
|
144
144
|
readonly _13_MaxValue: 13;
|
|
145
145
|
}>;
|
|
146
|
-
export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
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
149
|
created_by: z.ZodOptional<z.ZodString>;
|
|
150
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
150
151
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
151
152
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
152
|
-
} & {
|
|
153
|
+
}, "is_locked"> & {
|
|
153
154
|
agency_id: z.ZodString;
|
|
154
155
|
apex_version: z.ZodString;
|
|
155
156
|
card_serial_number: z.ZodString;
|
|
@@ -241,7 +242,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
241
242
|
readonly _13_MaxValue: 13;
|
|
242
243
|
}>;
|
|
243
244
|
vehicle_id: z.ZodNumber;
|
|
244
|
-
}, "
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
246
|
_id: string;
|
|
246
247
|
created_at: number & {
|
|
247
248
|
__brand: "UnixTimestamp";
|
|
@@ -270,7 +271,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
270
271
|
event_type: number;
|
|
271
272
|
product_id: string;
|
|
272
273
|
units_qty: number | null;
|
|
273
|
-
validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 |
|
|
274
|
+
validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13;
|
|
274
275
|
created_by?: string | undefined;
|
|
275
276
|
updated_by?: string | undefined;
|
|
276
277
|
}, {
|
|
@@ -296,7 +297,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
296
297
|
event_type: number;
|
|
297
298
|
product_id: string;
|
|
298
299
|
units_qty: number | null;
|
|
299
|
-
validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 |
|
|
300
|
+
validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13;
|
|
300
301
|
created_by?: string | undefined;
|
|
301
302
|
updated_by?: string | undefined;
|
|
302
303
|
}>;
|
|
@@ -397,7 +398,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
397
398
|
readonly _13_MaxValue: 13;
|
|
398
399
|
}>>;
|
|
399
400
|
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
400
|
-
}, "
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
402
|
_id?: string | undefined;
|
|
402
403
|
created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
403
404
|
created_by?: string | undefined;
|
|
@@ -422,7 +423,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
422
423
|
event_type?: number | undefined;
|
|
423
424
|
product_id?: string | undefined;
|
|
424
425
|
units_qty?: number | null | undefined;
|
|
425
|
-
validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 |
|
|
426
|
+
validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13 | undefined;
|
|
426
427
|
}, {
|
|
427
428
|
_id?: string | undefined;
|
|
428
429
|
created_at?: number | undefined;
|
|
@@ -448,7 +449,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
448
449
|
event_type?: number | undefined;
|
|
449
450
|
product_id?: string | undefined;
|
|
450
451
|
units_qty?: number | null | undefined;
|
|
451
|
-
validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 |
|
|
452
|
+
validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13 | undefined;
|
|
452
453
|
}>;
|
|
453
454
|
/**
|
|
454
455
|
* APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import {
|
|
3
|
+
import { UnixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/* * */
|
|
6
6
|
export const ApexValidationStatus = {
|
|
@@ -77,7 +77,9 @@ export const ApexValidationStatus = {
|
|
|
77
77
|
};
|
|
78
78
|
export const ApexValidationStatusSchema = z.nativeEnum(ApexValidationStatus);
|
|
79
79
|
/* * */
|
|
80
|
-
export const SimplifiedApexValidationSchema = DocumentSchema
|
|
80
|
+
export const SimplifiedApexValidationSchema = DocumentSchema
|
|
81
|
+
.omit({ is_locked: true })
|
|
82
|
+
.extend({
|
|
81
83
|
agency_id: z.string(),
|
|
82
84
|
apex_version: z.string(),
|
|
83
85
|
card_serial_number: z.string(),
|
|
@@ -92,13 +94,13 @@ export const SimplifiedApexValidationSchema = DocumentSchema.extend({
|
|
|
92
94
|
on_board_sale_id: z.string().nullable(),
|
|
93
95
|
pattern_id: z.string(),
|
|
94
96
|
product_id: z.string(),
|
|
95
|
-
received_at:
|
|
97
|
+
received_at: UnixTimeStampSchema,
|
|
96
98
|
stop_id: z.string(),
|
|
97
99
|
trip_id: z.string(),
|
|
98
100
|
units_qty: z.number().nullable(),
|
|
99
101
|
validation_status: ApexValidationStatusSchema,
|
|
100
102
|
vehicle_id: z.number(),
|
|
101
|
-
})
|
|
103
|
+
});
|
|
102
104
|
export const UpdateSimplifiedApexValidationSchema = SimplifiedApexValidationSchema.partial();
|
|
103
105
|
/**
|
|
104
106
|
* Validation statuses that are considered valid for the card holder to travel.
|
package/dist/auth/login.d.ts
CHANGED
package/dist/auth/login.js
CHANGED