@tmlmobilidade/types 20250909.1538.52 → 20250910.1344.34
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/comment.d.ts +20 -12
- package/dist/src/_common/comment.js +0 -1
- package/dist/src/_common/document.d.ts +14 -8
- package/dist/src/_common/document.js +4 -2
- package/dist/src/_common/proposed-change.d.ts +37 -19
- package/dist/src/agency.d.ts +30 -12
- package/dist/src/alert.d.ts +21 -12
- package/dist/src/auth/role.d.ts +30 -12
- package/dist/src/auth/session.d.ts +30 -12
- package/dist/src/auth/user.d.ts +30 -12
- package/dist/src/auth/verification-token.d.ts +30 -12
- package/dist/src/file.d.ts +23 -23
- package/dist/src/organization.d.ts +30 -12
- package/dist/src/plans/gtfs-validation.d.ts +30 -12
- package/dist/src/plans/plan.d.ts +30 -12
- package/dist/src/rides/index.d.ts +2 -1
- package/dist/src/rides/index.js +2 -1
- package/dist/src/rides/ride-audit.d.ts +219 -0
- package/dist/src/rides/ride-audit.js +12 -0
- package/dist/src/rides/ride-justification.d.ts +447 -0
- package/dist/src/rides/ride-justification.js +43 -0
- package/dist/src/rides/ride-overrides.d.ts +9 -0
- package/dist/src/rides/ride-overrides.js +6 -0
- package/dist/src/rides/ride.d.ts +38 -20
- package/dist/src/sams/sam.d.ts +30 -12
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +32 -20
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +32 -20
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +32 -20
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +32 -20
- package/dist/src/stop.d.ts +146 -101
- package/dist/src/vehicle-event.d.ts +18 -12
- package/dist/src/zone.d.ts +24 -6
- package/package.json +1 -1
- package/dist/src/rides/ride-annotation.d.ts +0 -579
- package/dist/src/rides/ride-annotation.js +0 -34
package/dist/src/auth/user.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export declare const UserPreferenceValueSchema: z.ZodUnion<[z.ZodString, z.ZodNu
|
|
|
5
5
|
export type UserPreferenceValue = z.infer<typeof UserPreferenceValueSchema>;
|
|
6
6
|
export declare const UserSchema: z.ZodObject<{
|
|
7
7
|
_id: z.ZodString;
|
|
8
|
-
created_at: z.
|
|
9
|
-
|
|
8
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
9
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
10
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
11
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
10
12
|
} & {
|
|
11
13
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -37,6 +39,14 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
37
39
|
verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
38
40
|
}, "strict", z.ZodTypeAny, {
|
|
39
41
|
_id: string;
|
|
42
|
+
created_at: number & {
|
|
43
|
+
__brand: "UnixTimestamp";
|
|
44
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
45
|
+
created_by: string;
|
|
46
|
+
updated_at: number & {
|
|
47
|
+
__brand: "UnixTimestamp";
|
|
48
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
49
|
+
updated_by: string;
|
|
40
50
|
email: string;
|
|
41
51
|
permissions: {
|
|
42
52
|
scope: string;
|
|
@@ -49,12 +59,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
49
59
|
role_ids: string[];
|
|
50
60
|
session_ids: string[];
|
|
51
61
|
verification_token_ids: string[];
|
|
52
|
-
created_at?: (number & {
|
|
53
|
-
__brand: "UnixTimestamp";
|
|
54
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
55
|
-
updated_at?: (number & {
|
|
56
|
-
__brand: "UnixTimestamp";
|
|
57
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
58
62
|
phone?: string | null | undefined;
|
|
59
63
|
avatar?: string | null | undefined;
|
|
60
64
|
bio?: string | null | undefined;
|
|
@@ -66,6 +70,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
66
70
|
theme_id?: string | null | undefined;
|
|
67
71
|
}, {
|
|
68
72
|
_id: string;
|
|
73
|
+
created_at: number;
|
|
74
|
+
updated_at: number;
|
|
69
75
|
email: string;
|
|
70
76
|
permissions: {
|
|
71
77
|
scope: string;
|
|
@@ -74,8 +80,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
74
80
|
}[];
|
|
75
81
|
first_name: string;
|
|
76
82
|
last_name: string;
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
created_by?: string | undefined;
|
|
84
|
+
updated_by?: string | undefined;
|
|
79
85
|
phone?: string | null | undefined;
|
|
80
86
|
avatar?: string | null | undefined;
|
|
81
87
|
bio?: string | null | undefined;
|
|
@@ -90,8 +96,10 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
90
96
|
}>;
|
|
91
97
|
export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
92
98
|
_id: z.ZodString;
|
|
93
|
-
created_at: z.
|
|
94
|
-
|
|
99
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
100
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
101
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
102
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
95
103
|
} & {
|
|
96
104
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
105
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -121,6 +129,8 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
121
129
|
theme_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
130
|
verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
123
131
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
132
|
+
created_by: string;
|
|
133
|
+
updated_by: string;
|
|
124
134
|
email: string;
|
|
125
135
|
permissions: {
|
|
126
136
|
scope: string;
|
|
@@ -151,6 +161,8 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
151
161
|
}[];
|
|
152
162
|
first_name: string;
|
|
153
163
|
last_name: string;
|
|
164
|
+
created_by?: string | undefined;
|
|
165
|
+
updated_by?: string | undefined;
|
|
154
166
|
phone?: string | null | undefined;
|
|
155
167
|
avatar?: string | null | undefined;
|
|
156
168
|
bio?: string | null | undefined;
|
|
@@ -164,6 +176,8 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
164
176
|
verification_token_ids?: string[] | undefined;
|
|
165
177
|
}>;
|
|
166
178
|
export declare const UpdateUserSchema: z.ZodObject<{
|
|
179
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
180
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
167
181
|
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
168
182
|
email: z.ZodOptional<z.ZodString>;
|
|
169
183
|
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -192,6 +206,8 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
192
206
|
theme_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
193
207
|
verification_token_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
194
208
|
}, "strict", z.ZodTypeAny, {
|
|
209
|
+
created_by?: string | undefined;
|
|
210
|
+
updated_by?: string | undefined;
|
|
195
211
|
phone?: string | null | undefined;
|
|
196
212
|
email?: string | undefined;
|
|
197
213
|
permissions?: {
|
|
@@ -214,6 +230,8 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
214
230
|
theme_id?: string | null | undefined;
|
|
215
231
|
verification_token_ids?: string[] | undefined;
|
|
216
232
|
}, {
|
|
233
|
+
created_by?: string | undefined;
|
|
234
|
+
updated_by?: string | undefined;
|
|
217
235
|
phone?: string | null | undefined;
|
|
218
236
|
email?: string | undefined;
|
|
219
237
|
permissions?: {
|
|
@@ -2,42 +2,52 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const VerificationTokenSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
|
-
created_at: z.
|
|
6
|
-
|
|
5
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
6
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
7
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
8
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
7
9
|
} & {
|
|
8
10
|
expires_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
9
11
|
token: z.ZodString;
|
|
10
12
|
user_id: z.ZodString;
|
|
11
13
|
}, "strict", z.ZodTypeAny, {
|
|
12
14
|
_id: string;
|
|
15
|
+
created_at: number & {
|
|
16
|
+
__brand: "UnixTimestamp";
|
|
17
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
18
|
+
created_by: string;
|
|
19
|
+
updated_at: number & {
|
|
20
|
+
__brand: "UnixTimestamp";
|
|
21
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
22
|
+
updated_by: string;
|
|
13
23
|
user_id: string;
|
|
14
24
|
expires_at: number & {
|
|
15
25
|
__brand: "UnixTimestamp";
|
|
16
26
|
} & z.BRAND<"UnixTimestamp">;
|
|
17
27
|
token: string;
|
|
18
|
-
created_at?: (number & {
|
|
19
|
-
__brand: "UnixTimestamp";
|
|
20
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
21
|
-
updated_at?: (number & {
|
|
22
|
-
__brand: "UnixTimestamp";
|
|
23
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
24
28
|
}, {
|
|
25
29
|
_id: string;
|
|
30
|
+
created_at: number;
|
|
31
|
+
updated_at: number;
|
|
26
32
|
user_id: string;
|
|
27
33
|
expires_at: number;
|
|
28
34
|
token: string;
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
created_by?: string | undefined;
|
|
36
|
+
updated_by?: string | undefined;
|
|
31
37
|
}>;
|
|
32
38
|
export declare const CreateVerificationTokenSchema: z.ZodObject<Omit<{
|
|
33
39
|
_id: z.ZodString;
|
|
34
|
-
created_at: z.
|
|
35
|
-
|
|
40
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
41
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
42
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
43
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
36
44
|
} & {
|
|
37
45
|
expires_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
38
46
|
token: z.ZodString;
|
|
39
47
|
user_id: z.ZodString;
|
|
40
48
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
49
|
+
created_by: string;
|
|
50
|
+
updated_by: string;
|
|
41
51
|
user_id: string;
|
|
42
52
|
expires_at: number & {
|
|
43
53
|
__brand: "UnixTimestamp";
|
|
@@ -47,18 +57,26 @@ export declare const CreateVerificationTokenSchema: z.ZodObject<Omit<{
|
|
|
47
57
|
user_id: string;
|
|
48
58
|
expires_at: number;
|
|
49
59
|
token: string;
|
|
60
|
+
created_by?: string | undefined;
|
|
61
|
+
updated_by?: string | undefined;
|
|
50
62
|
}>;
|
|
51
63
|
export declare const UpdateVerificationTokenSchema: z.ZodObject<{
|
|
64
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
65
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
52
66
|
user_id: z.ZodOptional<z.ZodString>;
|
|
53
67
|
expires_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
54
68
|
token: z.ZodOptional<z.ZodString>;
|
|
55
69
|
}, "strict", z.ZodTypeAny, {
|
|
70
|
+
created_by?: string | undefined;
|
|
71
|
+
updated_by?: string | undefined;
|
|
56
72
|
user_id?: string | undefined;
|
|
57
73
|
expires_at?: (number & {
|
|
58
74
|
__brand: "UnixTimestamp";
|
|
59
75
|
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
60
76
|
token?: string | undefined;
|
|
61
77
|
}, {
|
|
78
|
+
created_by?: string | undefined;
|
|
79
|
+
updated_by?: string | undefined;
|
|
62
80
|
user_id?: string | undefined;
|
|
63
81
|
expires_at?: number | undefined;
|
|
64
82
|
token?: string | undefined;
|
package/dist/src/file.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const FileSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
|
-
created_at: z.
|
|
5
|
-
updated_at: z.
|
|
4
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
5
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
6
6
|
} & {
|
|
7
7
|
created_by: z.ZodString;
|
|
8
8
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -16,41 +16,41 @@ export declare const FileSchema: z.ZodObject<{
|
|
|
16
16
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
18
18
|
_id: string;
|
|
19
|
+
created_at: number & {
|
|
20
|
+
__brand: "UnixTimestamp";
|
|
21
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
19
22
|
type: string;
|
|
20
|
-
scope: string;
|
|
21
23
|
created_by: string;
|
|
24
|
+
updated_at: number & {
|
|
25
|
+
__brand: "UnixTimestamp";
|
|
26
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
27
|
+
updated_by: string;
|
|
28
|
+
scope: string;
|
|
22
29
|
name: string;
|
|
23
30
|
resource_id: string;
|
|
24
31
|
size: number;
|
|
25
|
-
updated_by: string;
|
|
26
|
-
created_at?: (number & {
|
|
27
|
-
__brand: "UnixTimestamp";
|
|
28
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
29
|
-
updated_at?: (number & {
|
|
30
|
-
__brand: "UnixTimestamp";
|
|
31
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
32
32
|
description?: string | null | undefined;
|
|
33
33
|
metadata?: Record<string, unknown> | null | undefined;
|
|
34
34
|
url?: string | null | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
_id: string;
|
|
37
|
+
created_at: number;
|
|
37
38
|
type: string;
|
|
38
|
-
scope: string;
|
|
39
39
|
created_by: string;
|
|
40
|
+
updated_at: number;
|
|
41
|
+
updated_by: string;
|
|
42
|
+
scope: string;
|
|
40
43
|
name: string;
|
|
41
44
|
resource_id: string;
|
|
42
45
|
size: number;
|
|
43
|
-
updated_by: string;
|
|
44
|
-
created_at?: number | null | undefined;
|
|
45
|
-
updated_at?: number | null | undefined;
|
|
46
46
|
description?: string | null | undefined;
|
|
47
47
|
metadata?: Record<string, unknown> | null | undefined;
|
|
48
48
|
url?: string | null | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const CreateFileSchema: z.ZodObject<Omit<{
|
|
51
51
|
_id: z.ZodString;
|
|
52
|
-
created_at: z.
|
|
53
|
-
updated_at: z.
|
|
52
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
53
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
54
54
|
} & {
|
|
55
55
|
created_by: z.ZodString;
|
|
56
56
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -64,56 +64,56 @@ export declare const CreateFileSchema: z.ZodObject<Omit<{
|
|
|
64
64
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
66
66
|
type: string;
|
|
67
|
-
scope: string;
|
|
68
67
|
created_by: string;
|
|
68
|
+
updated_by: string;
|
|
69
|
+
scope: string;
|
|
69
70
|
name: string;
|
|
70
71
|
resource_id: string;
|
|
71
72
|
size: number;
|
|
72
|
-
updated_by: string;
|
|
73
73
|
description?: string | null | undefined;
|
|
74
74
|
metadata?: Record<string, unknown> | null | undefined;
|
|
75
75
|
url?: string | null | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
type: string;
|
|
78
|
-
scope: string;
|
|
79
78
|
created_by: string;
|
|
79
|
+
updated_by: string;
|
|
80
|
+
scope: string;
|
|
80
81
|
name: string;
|
|
81
82
|
resource_id: string;
|
|
82
83
|
size: number;
|
|
83
|
-
updated_by: string;
|
|
84
84
|
description?: string | null | undefined;
|
|
85
85
|
metadata?: Record<string, unknown> | null | undefined;
|
|
86
86
|
url?: string | null | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
export declare const UpdateFileSchema: z.ZodObject<{
|
|
89
89
|
type: z.ZodOptional<z.ZodString>;
|
|
90
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
90
91
|
scope: z.ZodOptional<z.ZodString>;
|
|
91
92
|
name: z.ZodOptional<z.ZodString>;
|
|
92
93
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
93
94
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
94
95
|
resource_id: z.ZodOptional<z.ZodString>;
|
|
95
96
|
size: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
97
97
|
url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
98
98
|
}, "strict", z.ZodTypeAny, {
|
|
99
99
|
type?: string | undefined;
|
|
100
|
+
updated_by?: string | undefined;
|
|
100
101
|
scope?: string | undefined;
|
|
101
102
|
name?: string | undefined;
|
|
102
103
|
description?: string | null | undefined;
|
|
103
104
|
metadata?: Record<string, unknown> | null | undefined;
|
|
104
105
|
resource_id?: string | undefined;
|
|
105
106
|
size?: number | undefined;
|
|
106
|
-
updated_by?: string | undefined;
|
|
107
107
|
url?: string | null | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
type?: string | undefined;
|
|
110
|
+
updated_by?: string | undefined;
|
|
110
111
|
scope?: string | undefined;
|
|
111
112
|
name?: string | undefined;
|
|
112
113
|
description?: string | null | undefined;
|
|
113
114
|
metadata?: Record<string, unknown> | null | undefined;
|
|
114
115
|
resource_id?: string | undefined;
|
|
115
116
|
size?: number | undefined;
|
|
116
|
-
updated_by?: string | undefined;
|
|
117
117
|
url?: string | null | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
export type File = z.infer<typeof FileSchema>;
|
|
@@ -1,50 +1,68 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const OrganizationSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
|
-
created_at: z.
|
|
5
|
-
|
|
4
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
5
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
6
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
7
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
6
8
|
} & {
|
|
7
9
|
code: z.ZodString;
|
|
8
10
|
name: z.ZodString;
|
|
9
11
|
}, "strict", z.ZodTypeAny, {
|
|
10
12
|
_id: string;
|
|
11
|
-
|
|
12
|
-
name: string;
|
|
13
|
-
created_at?: (number & {
|
|
13
|
+
created_at: number & {
|
|
14
14
|
__brand: "UnixTimestamp";
|
|
15
|
-
} & z.BRAND<"UnixTimestamp"
|
|
16
|
-
|
|
15
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
16
|
+
code: string;
|
|
17
|
+
created_by: string;
|
|
18
|
+
updated_at: number & {
|
|
17
19
|
__brand: "UnixTimestamp";
|
|
18
|
-
} & z.BRAND<"UnixTimestamp"
|
|
20
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
21
|
+
updated_by: string;
|
|
22
|
+
name: string;
|
|
19
23
|
}, {
|
|
20
24
|
_id: string;
|
|
25
|
+
created_at: number;
|
|
21
26
|
code: string;
|
|
27
|
+
updated_at: number;
|
|
22
28
|
name: string;
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
created_by?: string | undefined;
|
|
30
|
+
updated_by?: string | undefined;
|
|
25
31
|
}>;
|
|
26
32
|
export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
27
33
|
_id: z.ZodString;
|
|
28
|
-
created_at: z.
|
|
29
|
-
|
|
34
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
35
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
36
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
|
|
37
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
30
38
|
} & {
|
|
31
39
|
code: z.ZodString;
|
|
32
40
|
name: z.ZodString;
|
|
33
41
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
34
42
|
code: string;
|
|
43
|
+
created_by: string;
|
|
44
|
+
updated_by: string;
|
|
35
45
|
name: string;
|
|
36
46
|
}, {
|
|
37
47
|
code: string;
|
|
38
48
|
name: string;
|
|
49
|
+
created_by?: string | undefined;
|
|
50
|
+
updated_by?: string | undefined;
|
|
39
51
|
}>;
|
|
40
52
|
export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
41
53
|
code: z.ZodOptional<z.ZodString>;
|
|
54
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
55
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
42
56
|
name: z.ZodOptional<z.ZodString>;
|
|
43
57
|
}, "strict", z.ZodTypeAny, {
|
|
44
58
|
code?: string | undefined;
|
|
59
|
+
created_by?: string | undefined;
|
|
60
|
+
updated_by?: string | undefined;
|
|
45
61
|
name?: string | undefined;
|
|
46
62
|
}, {
|
|
47
63
|
code?: string | undefined;
|
|
64
|
+
created_by?: string | undefined;
|
|
65
|
+
updated_by?: string | undefined;
|
|
48
66
|
name?: string | undefined;
|
|
49
67
|
}>;
|
|
50
68
|
export type Organization = z.infer<typeof OrganizationSchema>;
|
|
@@ -78,8 +78,10 @@ export type GTFSValidatorSummary = z.infer<typeof GTFSValidatorSummarySchema>;
|
|
|
78
78
|
export type GTFSValidatorMessage = z.infer<typeof GTFSValidatorMessageSchema>;
|
|
79
79
|
export declare const GtfsValidationSchema: z.ZodObject<{
|
|
80
80
|
_id: z.ZodString;
|
|
81
|
-
created_at: z.
|
|
82
|
-
|
|
81
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
82
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
83
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
84
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
83
85
|
} & {
|
|
84
86
|
feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
|
|
85
87
|
file_id: z.ZodString;
|
|
@@ -197,6 +199,14 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
197
199
|
}>>>;
|
|
198
200
|
}, "strict", z.ZodTypeAny, {
|
|
199
201
|
_id: string;
|
|
202
|
+
created_at: number & {
|
|
203
|
+
__brand: "UnixTimestamp";
|
|
204
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
205
|
+
created_by: string;
|
|
206
|
+
updated_at: number & {
|
|
207
|
+
__brand: "UnixTimestamp";
|
|
208
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
209
|
+
updated_by: string;
|
|
200
210
|
file_id: string;
|
|
201
211
|
feeder_status: "waiting" | "processing" | "complete" | "error";
|
|
202
212
|
gtfs_agency: {
|
|
@@ -225,12 +235,6 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
225
235
|
feed_version?: string | null | undefined;
|
|
226
236
|
};
|
|
227
237
|
notification_sent: boolean;
|
|
228
|
-
created_at?: (number & {
|
|
229
|
-
__brand: "UnixTimestamp";
|
|
230
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
231
|
-
updated_at?: (number & {
|
|
232
|
-
__brand: "UnixTimestamp";
|
|
233
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
234
238
|
summary?: {
|
|
235
239
|
messages: {
|
|
236
240
|
message: string;
|
|
@@ -245,6 +249,8 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
245
249
|
} | null | undefined;
|
|
246
250
|
}, {
|
|
247
251
|
_id: string;
|
|
252
|
+
created_at: number;
|
|
253
|
+
updated_at: number;
|
|
248
254
|
file_id: string;
|
|
249
255
|
feeder_status: "waiting" | "processing" | "complete" | "error";
|
|
250
256
|
gtfs_agency: {
|
|
@@ -268,8 +274,8 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
268
274
|
feed_start_date?: string | null | undefined;
|
|
269
275
|
feed_version?: string | null | undefined;
|
|
270
276
|
};
|
|
271
|
-
|
|
272
|
-
|
|
277
|
+
created_by?: string | undefined;
|
|
278
|
+
updated_by?: string | undefined;
|
|
273
279
|
notification_sent?: boolean | undefined;
|
|
274
280
|
summary?: {
|
|
275
281
|
messages: {
|
|
@@ -286,8 +292,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
286
292
|
}>;
|
|
287
293
|
export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
288
294
|
_id: z.ZodString;
|
|
289
|
-
created_at: z.
|
|
290
|
-
|
|
295
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
296
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
297
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
298
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
291
299
|
} & {
|
|
292
300
|
feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
|
|
293
301
|
file_id: z.ZodString;
|
|
@@ -404,6 +412,8 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
404
412
|
total_warnings: number;
|
|
405
413
|
}>>>;
|
|
406
414
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
415
|
+
created_by: string;
|
|
416
|
+
updated_by: string;
|
|
407
417
|
file_id: string;
|
|
408
418
|
feeder_status: "waiting" | "processing" | "complete" | "error";
|
|
409
419
|
gtfs_agency: {
|
|
@@ -468,6 +478,8 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
468
478
|
feed_start_date?: string | null | undefined;
|
|
469
479
|
feed_version?: string | null | undefined;
|
|
470
480
|
};
|
|
481
|
+
created_by?: string | undefined;
|
|
482
|
+
updated_by?: string | undefined;
|
|
471
483
|
notification_sent?: boolean | undefined;
|
|
472
484
|
summary?: {
|
|
473
485
|
messages: {
|
|
@@ -483,6 +495,8 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
483
495
|
} | null | undefined;
|
|
484
496
|
}>;
|
|
485
497
|
export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
498
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
499
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
486
500
|
file_id: z.ZodOptional<z.ZodString>;
|
|
487
501
|
feeder_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
488
502
|
gtfs_agency: z.ZodOptional<z.ZodObject<{
|
|
@@ -598,6 +612,8 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
598
612
|
total_warnings: number;
|
|
599
613
|
}>>>>;
|
|
600
614
|
}, "strict", z.ZodTypeAny, {
|
|
615
|
+
created_by?: string | undefined;
|
|
616
|
+
updated_by?: string | undefined;
|
|
601
617
|
file_id?: string | undefined;
|
|
602
618
|
feeder_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
603
619
|
gtfs_agency?: {
|
|
@@ -639,6 +655,8 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
639
655
|
total_warnings: number;
|
|
640
656
|
} | null | undefined;
|
|
641
657
|
}, {
|
|
658
|
+
created_by?: string | undefined;
|
|
659
|
+
updated_by?: string | undefined;
|
|
642
660
|
file_id?: string | undefined;
|
|
643
661
|
feeder_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
644
662
|
gtfs_agency?: {
|
package/dist/src/plans/plan.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ import { PlanController } from './plan-controller.js';
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
export declare const PlanSchema: z.ZodObject<{
|
|
6
6
|
_id: z.ZodString;
|
|
7
|
-
created_at: z.
|
|
8
|
-
|
|
7
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
8
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
9
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
10
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
9
11
|
} & {
|
|
10
12
|
controller: z.ZodObject<{
|
|
11
13
|
last_hash: z.ZodNullable<z.ZodString>;
|
|
@@ -98,6 +100,14 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
98
100
|
status_merger: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
99
101
|
}, "strict", z.ZodTypeAny, {
|
|
100
102
|
_id: string;
|
|
103
|
+
created_at: number & {
|
|
104
|
+
__brand: "UnixTimestamp";
|
|
105
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
106
|
+
created_by: string;
|
|
107
|
+
updated_at: number & {
|
|
108
|
+
__brand: "UnixTimestamp";
|
|
109
|
+
} & z.BRAND<"UnixTimestamp">;
|
|
110
|
+
updated_by: string;
|
|
101
111
|
gtfs_agency: {
|
|
102
112
|
agency_id: string;
|
|
103
113
|
agency_name: string;
|
|
@@ -137,14 +147,10 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
137
147
|
operation_plan_id: string | null;
|
|
138
148
|
};
|
|
139
149
|
status_merger: "waiting" | "processing" | "complete" | "error";
|
|
140
|
-
created_at?: (number & {
|
|
141
|
-
__brand: "UnixTimestamp";
|
|
142
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
143
|
-
updated_at?: (number & {
|
|
144
|
-
__brand: "UnixTimestamp";
|
|
145
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
146
150
|
}, {
|
|
147
151
|
_id: string;
|
|
152
|
+
created_at: number;
|
|
153
|
+
updated_at: number;
|
|
148
154
|
gtfs_agency: {
|
|
149
155
|
agency_id: string;
|
|
150
156
|
agency_name: string;
|
|
@@ -176,15 +182,17 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
176
182
|
pcgi_legacy: {
|
|
177
183
|
operation_plan_id: string | null;
|
|
178
184
|
};
|
|
179
|
-
|
|
180
|
-
|
|
185
|
+
created_by?: string | undefined;
|
|
186
|
+
updated_by?: string | undefined;
|
|
181
187
|
is_locked?: boolean | undefined;
|
|
182
188
|
status_merger?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
183
189
|
}>;
|
|
184
190
|
export declare const CreatePlanSchema: z.ZodObject<Omit<{
|
|
185
191
|
_id: z.ZodString;
|
|
186
|
-
created_at: z.
|
|
187
|
-
|
|
192
|
+
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
193
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
194
|
+
updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
195
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
188
196
|
} & {
|
|
189
197
|
controller: z.ZodObject<{
|
|
190
198
|
last_hash: z.ZodNullable<z.ZodString>;
|
|
@@ -276,6 +284,8 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
|
|
|
276
284
|
}>;
|
|
277
285
|
status_merger: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
278
286
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
287
|
+
created_by: string;
|
|
288
|
+
updated_by: string;
|
|
279
289
|
gtfs_agency: {
|
|
280
290
|
agency_id: string;
|
|
281
291
|
agency_name: string;
|
|
@@ -347,10 +357,14 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
|
|
|
347
357
|
pcgi_legacy: {
|
|
348
358
|
operation_plan_id: string | null;
|
|
349
359
|
};
|
|
360
|
+
created_by?: string | undefined;
|
|
361
|
+
updated_by?: string | undefined;
|
|
350
362
|
is_locked?: boolean | undefined;
|
|
351
363
|
status_merger?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
352
364
|
}>;
|
|
353
365
|
export declare const UpdatePlanSchema: z.ZodObject<{
|
|
366
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
367
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
354
368
|
gtfs_agency: z.ZodOptional<z.ZodObject<{
|
|
355
369
|
agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
370
|
agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -441,6 +455,8 @@ export declare const UpdatePlanSchema: z.ZodObject<{
|
|
|
441
455
|
}>>;
|
|
442
456
|
status_merger: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
|
|
443
457
|
}, "strict", z.ZodTypeAny, {
|
|
458
|
+
created_by?: string | undefined;
|
|
459
|
+
updated_by?: string | undefined;
|
|
444
460
|
gtfs_agency?: {
|
|
445
461
|
agency_id: string;
|
|
446
462
|
agency_name: string;
|
|
@@ -481,6 +497,8 @@ export declare const UpdatePlanSchema: z.ZodObject<{
|
|
|
481
497
|
} | undefined;
|
|
482
498
|
status_merger?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
483
499
|
}, {
|
|
500
|
+
created_by?: string | undefined;
|
|
501
|
+
updated_by?: string | undefined;
|
|
484
502
|
gtfs_agency?: {
|
|
485
503
|
agency_id: string;
|
|
486
504
|
agency_name: string;
|
package/dist/src/rides/index.js
CHANGED