@tmlmobilidade/types 20251217.1540.37 → 20251218.110.37
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 -7
- package/dist/auth/verification-token.js +6 -4
- 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
package/dist/auth/role.js
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
/* * */
|
|
6
6
|
export const RoleSchema = DocumentSchema.extend({
|
|
7
7
|
name: z.string(),
|
|
8
|
-
permissions: z.array(PermissionSchema),
|
|
8
|
+
permissions: z.array(PermissionSchema).default([]),
|
|
9
9
|
});
|
|
10
10
|
export const CreateRoleSchema = RoleSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
11
11
|
export const UpdateRoleSchema = CreateRoleSchema.omit({ created_by: true }).partial();
|
package/dist/auth/session.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SessionSchema: z.ZodObject<{
|
|
2
|
+
export declare const SessionSchema: z.ZodObject<Omit<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodOptional<z.ZodString>;
|
|
6
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
6
7
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
|
-
} & {
|
|
9
|
+
}, "is_locked"> & {
|
|
9
10
|
expires_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
10
11
|
token: z.ZodString;
|
|
11
12
|
user_id: z.ZodString;
|
|
12
|
-
}, "
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
14
|
_id: string;
|
|
14
15
|
created_at: number & {
|
|
15
16
|
__brand: "UnixTimestamp";
|
|
@@ -34,17 +35,18 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
34
35
|
created_by?: string | undefined;
|
|
35
36
|
updated_by?: string | undefined;
|
|
36
37
|
}>;
|
|
37
|
-
export declare const CreateSessionSchema: z.ZodObject<Omit<{
|
|
38
|
+
export declare const CreateSessionSchema: z.ZodObject<Omit<Omit<{
|
|
38
39
|
_id: z.ZodString;
|
|
39
40
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
40
41
|
created_by: z.ZodOptional<z.ZodString>;
|
|
42
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
41
43
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
42
44
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
43
|
-
} & {
|
|
45
|
+
}, "is_locked"> & {
|
|
44
46
|
expires_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
45
47
|
token: z.ZodString;
|
|
46
48
|
user_id: z.ZodString;
|
|
47
|
-
}, "_id" | "created_at" | "updated_at">, "
|
|
49
|
+
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
48
50
|
expires_at: number & {
|
|
49
51
|
__brand: "UnixTimestamp";
|
|
50
52
|
};
|
|
@@ -64,7 +66,7 @@ export declare const UpdateSessionSchema: z.ZodObject<{
|
|
|
64
66
|
expires_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
65
67
|
token: z.ZodOptional<z.ZodString>;
|
|
66
68
|
user_id: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, "
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
70
|
updated_by?: string | undefined;
|
|
69
71
|
expires_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
70
72
|
token?: string | undefined;
|
package/dist/auth/session.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
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
|
-
export const SessionSchema = DocumentSchema
|
|
7
|
-
|
|
6
|
+
export const SessionSchema = DocumentSchema
|
|
7
|
+
.omit({ is_locked: true })
|
|
8
|
+
.extend({
|
|
9
|
+
expires_at: UnixTimeStampSchema,
|
|
8
10
|
token: z.string(),
|
|
9
11
|
user_id: z.string(),
|
|
10
|
-
})
|
|
12
|
+
});
|
|
11
13
|
export const CreateSessionSchema = SessionSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
12
14
|
export const UpdateSessionSchema = CreateSessionSchema.omit({ created_by: true }).partial();
|