@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
|
@@ -72,6 +72,7 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
72
72
|
line_id: number | null;
|
|
73
73
|
pattern_id: string | null;
|
|
74
74
|
trip_id: string | null;
|
|
75
|
+
seen_last_at: string | null;
|
|
75
76
|
driver_ids: string | null;
|
|
76
77
|
headsign: string | null;
|
|
77
78
|
plan_id: string | null;
|
|
@@ -88,7 +89,6 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
88
89
|
extension_observed: number | null;
|
|
89
90
|
extension_scheduled: number | null;
|
|
90
91
|
seen_first_at: string | null;
|
|
91
|
-
seen_last_at: string | null;
|
|
92
92
|
seen_status: string | null;
|
|
93
93
|
passengers_estimated: number | null;
|
|
94
94
|
passengers_observed: number | null;
|
|
@@ -139,6 +139,7 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
139
139
|
line_id: number | null;
|
|
140
140
|
pattern_id: string | null;
|
|
141
141
|
trip_id: string | null;
|
|
142
|
+
seen_last_at: string | null;
|
|
142
143
|
driver_ids: string | null;
|
|
143
144
|
headsign: string | null;
|
|
144
145
|
plan_id: string | null;
|
|
@@ -155,7 +156,6 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
155
156
|
extension_observed: number | null;
|
|
156
157
|
extension_scheduled: number | null;
|
|
157
158
|
seen_first_at: string | null;
|
|
158
|
-
seen_last_at: string | null;
|
|
159
159
|
seen_status: string | null;
|
|
160
160
|
passengers_estimated: number | null;
|
|
161
161
|
passengers_observed: number | null;
|
|
@@ -212,7 +212,7 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
212
212
|
date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
213
213
|
delay_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>>;
|
|
214
214
|
operational_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>>;
|
|
215
|
-
seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["
|
|
215
|
+
seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["unseen", "seen", "gone"]>, "many">>>;
|
|
216
216
|
line_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
217
217
|
stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
218
218
|
acceptance_status: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>>;
|
|
@@ -233,7 +233,7 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
233
233
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
234
234
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
235
235
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
236
|
-
seen_statuses?: ("
|
|
236
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
237
237
|
line_ids?: string[] | null | undefined;
|
|
238
238
|
stop_ids?: string[] | null | undefined;
|
|
239
239
|
}, {
|
|
@@ -248,7 +248,7 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
248
248
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
249
249
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
250
250
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
251
|
-
seen_statuses?: ("
|
|
251
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
252
252
|
line_ids?: string[] | null | undefined;
|
|
253
253
|
stop_ids?: string[] | null | undefined;
|
|
254
254
|
}>;
|
|
@@ -271,7 +271,7 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
271
271
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
272
272
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
273
273
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
274
|
-
seen_statuses?: ("
|
|
274
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
275
275
|
line_ids?: string[] | null | undefined;
|
|
276
276
|
stop_ids?: string[] | null | undefined;
|
|
277
277
|
};
|
|
@@ -289,7 +289,7 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
289
289
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
290
290
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
291
291
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
292
|
-
seen_statuses?: ("
|
|
292
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
293
293
|
line_ids?: string[] | null | undefined;
|
|
294
294
|
stop_ids?: string[] | null | undefined;
|
|
295
295
|
};
|
|
@@ -314,7 +314,7 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
314
314
|
date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
315
315
|
delay_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>>;
|
|
316
316
|
operational_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>>;
|
|
317
|
-
seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["
|
|
317
|
+
seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["unseen", "seen", "gone"]>, "many">>>;
|
|
318
318
|
line_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
319
319
|
stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
320
320
|
acceptance_status: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>>;
|
|
@@ -335,7 +335,7 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
335
335
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
336
336
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
337
337
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
338
|
-
seen_statuses?: ("
|
|
338
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
339
339
|
line_ids?: string[] | null | undefined;
|
|
340
340
|
stop_ids?: string[] | null | undefined;
|
|
341
341
|
}, {
|
|
@@ -350,12 +350,12 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
350
350
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
351
351
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
352
352
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
353
|
-
seen_statuses?: ("
|
|
353
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
354
354
|
line_ids?: string[] | null | undefined;
|
|
355
355
|
stop_ids?: string[] | null | undefined;
|
|
356
356
|
}>;
|
|
357
357
|
type: z.ZodLiteral<"ride">;
|
|
358
|
-
}, "
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
359
|
_id: string;
|
|
360
360
|
created_at: number & {
|
|
361
361
|
__brand: "UnixTimestamp";
|
|
@@ -382,7 +382,7 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
382
382
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
383
383
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
384
384
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
385
|
-
seen_statuses?: ("
|
|
385
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
386
386
|
line_ids?: string[] | null | undefined;
|
|
387
387
|
stop_ids?: string[] | null | undefined;
|
|
388
388
|
};
|
|
@@ -408,7 +408,7 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
408
408
|
analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
|
|
409
409
|
delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined;
|
|
410
410
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
411
|
-
seen_statuses?: ("
|
|
411
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
412
412
|
line_ids?: string[] | null | undefined;
|
|
413
413
|
stop_ids?: string[] | null | undefined;
|
|
414
414
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DelayStatusSchema, OperationalStatusSchema, SeenStatusSchema } from '../_common/status.js';
|
|
3
|
-
import {
|
|
4
|
-
import { FileExportBaseSchema } from './
|
|
3
|
+
import { UnixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
|
+
import { FileExportBaseSchema } from './base.js';
|
|
5
5
|
import { gtfsCauseSchema } from '../gtfs/cause-effetcs.js';
|
|
6
6
|
import { RideAcceptanceStatusSchema, RideJustificationSourceSchema } from '../rides/ride-acceptance.js';
|
|
7
7
|
import { RideAnalysisGradeWithNoneSchema } from '../rides/ride-analysis.js';
|
|
@@ -112,8 +112,8 @@ export const RideExportPropertiesSchema = z.object({
|
|
|
112
112
|
analysis_simple_three_vehicle_events: z.array(RideAnalysisGradeWithNoneSchema).optional().nullable(),
|
|
113
113
|
analysis_transaction_sequentiality: z.array(RideAnalysisGradeWithNoneSchema).optional().nullable(),
|
|
114
114
|
/* * */
|
|
115
|
-
date_end:
|
|
116
|
-
date_start:
|
|
115
|
+
date_end: UnixTimeStampSchema,
|
|
116
|
+
date_start: UnixTimeStampSchema,
|
|
117
117
|
/* * */
|
|
118
118
|
delay_statuses: z.array(DelayStatusSchema).optional().nullable(),
|
|
119
119
|
operational_statuses: z.array(OperationalStatusSchema).optional().nullable(),
|
|
@@ -129,4 +129,4 @@ export const RideExportPropertiesSchema = z.object({
|
|
|
129
129
|
});
|
|
130
130
|
/* CREATE SCHEMA */
|
|
131
131
|
/* * */
|
|
132
|
-
export const RideExportSchema = FileExportBaseSchema.extend(RideExportPropertiesSchema.shape)
|
|
132
|
+
export const RideExportSchema = FileExportBaseSchema.extend(RideExportPropertiesSchema.shape);
|
package/dist/file.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const FileSchema: z.ZodObject<{
|
|
|
14
14
|
type: z.ZodString;
|
|
15
15
|
updated_by: z.ZodString;
|
|
16
16
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, "
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
_id: string;
|
|
19
19
|
created_at: number & {
|
|
20
20
|
__brand: "UnixTimestamp";
|
|
@@ -62,7 +62,7 @@ export declare const CreateFileSchema: z.ZodObject<Omit<{
|
|
|
62
62
|
type: z.ZodString;
|
|
63
63
|
updated_by: z.ZodString;
|
|
64
64
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
}, "_id" | "created_at" | "updated_at">, "
|
|
65
|
+
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
66
66
|
created_by: string;
|
|
67
67
|
updated_by: string;
|
|
68
68
|
type: string;
|
|
@@ -95,7 +95,7 @@ export declare const UpdateFileSchema: z.ZodObject<{
|
|
|
95
95
|
scope: z.ZodOptional<z.ZodString>;
|
|
96
96
|
size: z.ZodOptional<z.ZodNumber>;
|
|
97
97
|
url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
98
|
-
}, "
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
updated_by?: string | undefined;
|
|
100
100
|
type?: string | undefined;
|
|
101
101
|
name?: string | undefined;
|
package/dist/file.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { DocumentSchema } from './_common/document.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
/* * */
|
|
5
|
-
export const FileSchema = DocumentSchema
|
|
5
|
+
export const FileSchema = DocumentSchema
|
|
6
|
+
.omit({ is_locked: true })
|
|
7
|
+
.extend({
|
|
6
8
|
created_by: z.string(),
|
|
7
9
|
description: z.string().nullish(),
|
|
8
10
|
metadata: z.record(z.unknown()).nullish(),
|
|
@@ -13,6 +15,6 @@ export const FileSchema = DocumentSchema.extend({
|
|
|
13
15
|
type: z.string().describe('mime type'),
|
|
14
16
|
updated_by: z.string(),
|
|
15
17
|
url: z.string().nullish(),
|
|
16
|
-
})
|
|
18
|
+
});
|
|
17
19
|
export const CreateFileSchema = FileSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
18
20
|
export const UpdateFileSchema = FileSchema.omit({ _id: true, created_at: true, created_by: true, updated_at: true }).partial();
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './agency.js';
|
|
|
3
3
|
export * from './alert.js';
|
|
4
4
|
export * from './apex/index.js';
|
|
5
5
|
export * from './auth/index.js';
|
|
6
|
+
export * from './dates/index.js';
|
|
6
7
|
export * from './file-exports/index.js';
|
|
7
8
|
export * from './file.js';
|
|
8
9
|
export * from './gtfs/index.js';
|
|
@@ -16,7 +17,7 @@ export * from './plans/index.js';
|
|
|
16
17
|
export * from './proposed-change.js';
|
|
17
18
|
export * from './rides/index.js';
|
|
18
19
|
export * from './sams/index.js';
|
|
19
|
-
export * from './
|
|
20
|
+
export * from './stops/index.js';
|
|
20
21
|
export * from './vehicle-events/index.js';
|
|
21
22
|
export * from './wiki.js';
|
|
22
23
|
export * from './zone.js';
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './agency.js';
|
|
|
6
6
|
export * from './alert.js';
|
|
7
7
|
export * from './apex/index.js';
|
|
8
8
|
export * from './auth/index.js';
|
|
9
|
+
export * from './dates/index.js';
|
|
9
10
|
export * from './file-exports/index.js';
|
|
10
11
|
export * from './file.js';
|
|
11
12
|
export * from './gtfs/index.js';
|
|
@@ -19,7 +20,7 @@ export * from './plans/index.js';
|
|
|
19
20
|
export * from './proposed-change.js';
|
|
20
21
|
export * from './rides/index.js';
|
|
21
22
|
export * from './sams/index.js';
|
|
22
|
-
export * from './
|
|
23
|
+
export * from './stops/index.js';
|
|
23
24
|
export * from './vehicle-events/index.js';
|
|
24
25
|
export * from './wiki.js';
|
|
25
26
|
export * from './zone.js';
|
package/dist/notification.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type Notification = z.infer<typeof NotificationSchema>;
|
|
3
|
-
export declare const NotificationSchema: z.ZodObject<{
|
|
3
|
+
export declare const NotificationSchema: z.ZodObject<Omit<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
5
|
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
6
6
|
created_by: z.ZodOptional<z.ZodString>;
|
|
7
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
8
|
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
8
9
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
|
-
} & {
|
|
10
|
+
}, "is_locked"> & {
|
|
10
11
|
is_read: z.ZodBoolean;
|
|
11
12
|
payload: z.ZodObject<{
|
|
12
13
|
body: z.ZodString;
|
|
@@ -28,7 +29,7 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
28
29
|
scope: z.ZodString;
|
|
29
30
|
topic: z.ZodString;
|
|
30
31
|
user_id: z.ZodOptional<z.ZodString>;
|
|
31
|
-
}, "
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
33
|
_id: string;
|
|
33
34
|
created_at: number & {
|
|
34
35
|
__brand: "UnixTimestamp";
|
|
@@ -67,13 +68,14 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
67
68
|
user_id?: string | undefined;
|
|
68
69
|
priority?: "high" | "normal" | "low" | undefined;
|
|
69
70
|
}>;
|
|
70
|
-
export declare const CreateNotificationSchema: z.ZodObject<Omit<{
|
|
71
|
+
export declare const CreateNotificationSchema: z.ZodObject<Omit<Omit<{
|
|
71
72
|
_id: z.ZodString;
|
|
72
73
|
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
73
74
|
created_by: z.ZodOptional<z.ZodString>;
|
|
75
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
74
76
|
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
75
77
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
76
|
-
} & {
|
|
78
|
+
}, "is_locked"> & {
|
|
77
79
|
is_read: z.ZodBoolean;
|
|
78
80
|
payload: z.ZodObject<{
|
|
79
81
|
body: z.ZodString;
|
|
@@ -95,7 +97,7 @@ export declare const CreateNotificationSchema: z.ZodObject<Omit<{
|
|
|
95
97
|
scope: z.ZodString;
|
|
96
98
|
topic: z.ZodString;
|
|
97
99
|
user_id: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, "_id" | "created_at" | "updated_at">, "
|
|
100
|
+
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
99
101
|
scope: string;
|
|
100
102
|
is_read: boolean;
|
|
101
103
|
payload: {
|
|
@@ -147,7 +149,7 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
|
|
|
147
149
|
}>>;
|
|
148
150
|
priority: z.ZodOptional<z.ZodDefault<z.ZodEnum<["high", "normal", "low"]>>>;
|
|
149
151
|
topic: z.ZodOptional<z.ZodString>;
|
|
150
|
-
}, "
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
153
|
updated_by?: string | undefined;
|
|
152
154
|
scope?: string | undefined;
|
|
153
155
|
user_id?: string | undefined;
|
package/dist/notification.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from './_common/document.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
export const NotificationSchema = DocumentSchema
|
|
4
|
+
export const NotificationSchema = DocumentSchema
|
|
5
|
+
.omit({ is_locked: true })
|
|
6
|
+
.extend({
|
|
5
7
|
is_read: z.boolean(),
|
|
6
8
|
payload: z.object({
|
|
7
9
|
body: z.string().min(1),
|
|
@@ -13,7 +15,7 @@ export const NotificationSchema = DocumentSchema.extend({
|
|
|
13
15
|
scope: z.string().min(1), // e.g., 'agencies', 'alerts', 'auth'
|
|
14
16
|
topic: z.string().min(1), // e.g., 'new_alert', 'plan_update'
|
|
15
17
|
user_id: z.string().optional(), // Id of the user this notification belongs to
|
|
16
|
-
})
|
|
18
|
+
});
|
|
17
19
|
/* * */
|
|
18
20
|
export const CreateNotificationSchema = NotificationSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
19
21
|
export const UpdateNotificationSchema = CreateNotificationSchema.omit({ created_by: true }).partial();
|
package/dist/organization.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
20
20
|
_id: z.ZodString;
|
|
21
21
|
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
22
22
|
created_by: z.ZodOptional<z.ZodString>;
|
|
23
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
23
24
|
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
24
25
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
25
26
|
} & {
|
|
@@ -40,16 +41,17 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
40
41
|
order: number;
|
|
41
42
|
}>, "many">>;
|
|
42
43
|
home_wikis: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
-
logo_dark: z.ZodNullable<z.ZodString
|
|
44
|
-
logo_light: z.ZodNullable<z.ZodString
|
|
44
|
+
logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
45
46
|
long_name: z.ZodString;
|
|
46
47
|
short_name: z.ZodString;
|
|
47
|
-
theme: z.ZodNullable<z.ZodString
|
|
48
|
+
theme: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
48
49
|
}, "strip", z.ZodTypeAny, {
|
|
49
50
|
_id: string;
|
|
50
51
|
created_at: number & {
|
|
51
52
|
__brand: "UnixTimestamp";
|
|
52
53
|
};
|
|
54
|
+
is_locked: boolean;
|
|
53
55
|
updated_at: number & {
|
|
54
56
|
__brand: "UnixTimestamp";
|
|
55
57
|
};
|
|
@@ -72,11 +74,9 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
72
74
|
created_at: number;
|
|
73
75
|
updated_at: number;
|
|
74
76
|
short_name: string;
|
|
75
|
-
logo_dark: string | null;
|
|
76
|
-
logo_light: string | null;
|
|
77
77
|
long_name: string;
|
|
78
|
-
theme: string | null;
|
|
79
78
|
created_by?: string | undefined;
|
|
79
|
+
is_locked?: boolean | undefined;
|
|
80
80
|
updated_by?: string | undefined;
|
|
81
81
|
home_links?: {
|
|
82
82
|
title: string;
|
|
@@ -85,11 +85,15 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
85
85
|
order: number;
|
|
86
86
|
}[] | undefined;
|
|
87
87
|
home_wikis?: string[] | undefined;
|
|
88
|
+
logo_dark?: string | null | undefined;
|
|
89
|
+
logo_light?: string | null | undefined;
|
|
90
|
+
theme?: string | null | undefined;
|
|
88
91
|
}>;
|
|
89
92
|
export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
90
93
|
_id: z.ZodString;
|
|
91
94
|
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
92
95
|
created_by: z.ZodOptional<z.ZodString>;
|
|
96
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
93
97
|
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
94
98
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
95
99
|
} & {
|
|
@@ -110,12 +114,13 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
|
110
114
|
order: number;
|
|
111
115
|
}>, "many">>;
|
|
112
116
|
home_wikis: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
113
|
-
logo_dark: z.ZodNullable<z.ZodString
|
|
114
|
-
logo_light: z.ZodNullable<z.ZodString
|
|
117
|
+
logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
115
119
|
long_name: z.ZodString;
|
|
116
120
|
short_name: z.ZodString;
|
|
117
|
-
theme: z.ZodNullable<z.ZodString
|
|
121
|
+
theme: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
118
122
|
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
123
|
+
is_locked: boolean;
|
|
119
124
|
short_name: string;
|
|
120
125
|
home_links: {
|
|
121
126
|
title: string;
|
|
@@ -132,11 +137,9 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
|
132
137
|
updated_by?: string | undefined;
|
|
133
138
|
}, {
|
|
134
139
|
short_name: string;
|
|
135
|
-
logo_dark: string | null;
|
|
136
|
-
logo_light: string | null;
|
|
137
140
|
long_name: string;
|
|
138
|
-
theme: string | null;
|
|
139
141
|
created_by?: string | undefined;
|
|
142
|
+
is_locked?: boolean | undefined;
|
|
140
143
|
updated_by?: string | undefined;
|
|
141
144
|
home_links?: {
|
|
142
145
|
title: string;
|
|
@@ -145,8 +148,12 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
|
145
148
|
order: number;
|
|
146
149
|
}[] | undefined;
|
|
147
150
|
home_wikis?: string[] | undefined;
|
|
151
|
+
logo_dark?: string | null | undefined;
|
|
152
|
+
logo_light?: string | null | undefined;
|
|
153
|
+
theme?: string | null | undefined;
|
|
148
154
|
}>;
|
|
149
155
|
export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
156
|
+
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
150
157
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
151
158
|
short_name: z.ZodOptional<z.ZodString>;
|
|
152
159
|
home_links: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -166,11 +173,12 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
166
173
|
order: number;
|
|
167
174
|
}>, "many">>>;
|
|
168
175
|
home_wikis: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
169
|
-
logo_dark: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
170
|
-
logo_light: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
176
|
+
logo_dark: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
177
|
+
logo_light: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
171
178
|
long_name: z.ZodOptional<z.ZodString>;
|
|
172
|
-
theme: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
179
|
+
theme: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
173
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
is_locked?: boolean | undefined;
|
|
174
182
|
updated_by?: string | undefined;
|
|
175
183
|
short_name?: string | undefined;
|
|
176
184
|
home_links?: {
|
|
@@ -185,6 +193,7 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
185
193
|
long_name?: string | undefined;
|
|
186
194
|
theme?: string | null | undefined;
|
|
187
195
|
}, {
|
|
196
|
+
is_locked?: boolean | undefined;
|
|
188
197
|
updated_by?: string | undefined;
|
|
189
198
|
short_name?: string | undefined;
|
|
190
199
|
home_links?: {
|
package/dist/organization.js
CHANGED
|
@@ -12,11 +12,11 @@ export const HomeLinkSchema = z.object({
|
|
|
12
12
|
export const OrganizationSchema = DocumentSchema.extend({
|
|
13
13
|
home_links: z.array(HomeLinkSchema).default([]),
|
|
14
14
|
home_wikis: z.array(z.string()).default([]),
|
|
15
|
-
logo_dark: z.string().nullable(),
|
|
16
|
-
logo_light: z.string().nullable(),
|
|
15
|
+
logo_dark: z.string().nullable().default(null),
|
|
16
|
+
logo_light: z.string().nullable().default(null),
|
|
17
17
|
long_name: z.string(),
|
|
18
18
|
short_name: z.string(),
|
|
19
|
-
theme: z.string().nullable(),
|
|
19
|
+
theme: z.string().nullable().default(null),
|
|
20
20
|
});
|
|
21
21
|
export const CreateOrganizationSchema = OrganizationSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
22
22
|
export const UpdateOrganizationSchema = CreateOrganizationSchema.omit({ created_by: true }).partial();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AgenciesPermissionSchema: z.ZodObject<{
|
|
3
|
-
action: z.ZodEnum<["create", "delete", "read", "
|
|
3
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
4
4
|
scope: z.ZodLiteral<"agencies">;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
scope: "agencies";
|
|
7
|
-
action: "create" | "update" | "delete" | "read" | "
|
|
7
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
8
8
|
}, {
|
|
9
9
|
scope: "agencies";
|
|
10
|
-
action: "create" | "update" | "delete" | "read" | "
|
|
10
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
11
11
|
}>;
|
|
12
12
|
export type AgenciesPermission = z.infer<typeof AgenciesPermissionSchema>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AlertsScheduledPermissionSchema: z.ZodObject<{
|
|
3
|
-
action: z.ZodEnum<["create", "delete", "read", "
|
|
3
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
4
4
|
scope: z.ZodLiteral<"alerts_scheduled">;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
scope: "alerts_scheduled";
|
|
7
|
-
action: "create" | "update" | "delete" | "read" | "
|
|
7
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
8
8
|
}, {
|
|
9
9
|
scope: "alerts_scheduled";
|
|
10
|
-
action: "create" | "update" | "delete" | "read" | "
|
|
10
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
11
11
|
}>;
|
|
12
12
|
export type AlertsScheduledPermission = z.infer<typeof AlertsScheduledPermissionSchema>;
|
|
13
13
|
export declare const AlertsRealtimePermissionSchema: z.ZodObject<{
|
|
14
|
-
action: z.ZodEnum<["create", "delete", "read", "
|
|
14
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
15
15
|
resources: z.ZodDefault<z.ZodObject<{
|
|
16
16
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22,13 +22,13 @@ export declare const AlertsRealtimePermissionSchema: z.ZodObject<{
|
|
|
22
22
|
scope: z.ZodLiteral<"alerts_realtime">;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
scope: "alerts_realtime";
|
|
25
|
-
action: "create" | "update" | "delete" | "read" | "
|
|
25
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
26
26
|
resources: {
|
|
27
27
|
agency_ids: string[];
|
|
28
28
|
};
|
|
29
29
|
}, {
|
|
30
30
|
scope: "alerts_realtime";
|
|
31
|
-
action: "create" | "update" | "delete" | "read" | "
|
|
31
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
32
32
|
resources?: {
|
|
33
33
|
agency_ids?: string[] | undefined;
|
|
34
34
|
} | undefined;
|
|
@@ -5,7 +5,7 @@ export const AlertsScheduledPermissionSchema = z.object({
|
|
|
5
5
|
action: z.enum(['create',
|
|
6
6
|
'delete',
|
|
7
7
|
'read',
|
|
8
|
-
'
|
|
8
|
+
'lock',
|
|
9
9
|
'update',
|
|
10
10
|
]),
|
|
11
11
|
scope: z.literal('alerts_scheduled'),
|
|
@@ -15,7 +15,7 @@ export const AlertsRealtimePermissionSchema = z.object({
|
|
|
15
15
|
action: z.enum(['create',
|
|
16
16
|
'delete',
|
|
17
17
|
'read',
|
|
18
|
-
'
|
|
18
|
+
'lock',
|
|
19
19
|
'update',
|
|
20
20
|
]),
|
|
21
21
|
resources: z.object({
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DatesPermissionSchema: z.ZodObject<{
|
|
3
|
+
action: z.ZodEnum<["create_annotations", "delete_annotations", "read_annotations", "update_annotations", "lock_annotations"]>;
|
|
4
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
5
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
agency_ids: string[];
|
|
8
|
+
}, {
|
|
9
|
+
agency_ids?: string[] | undefined;
|
|
10
|
+
}>>;
|
|
11
|
+
scope: z.ZodLiteral<"dates">;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
scope: "dates";
|
|
14
|
+
action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
|
|
15
|
+
resources: {
|
|
16
|
+
agency_ids: string[];
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
scope: "dates";
|
|
20
|
+
action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
|
|
21
|
+
resources?: {
|
|
22
|
+
agency_ids?: string[] | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export type DatesPermission = z.infer<typeof DatesPermissionSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
4
|
+
export const DatesPermissionSchema = z.object({
|
|
5
|
+
action: z.enum([
|
|
6
|
+
'create_annotations',
|
|
7
|
+
'delete_annotations',
|
|
8
|
+
'read_annotations',
|
|
9
|
+
'update_annotations',
|
|
10
|
+
'lock_annotations',
|
|
11
|
+
]),
|
|
12
|
+
resources: z.object({
|
|
13
|
+
agency_ids: z.array(z.string()).default([]),
|
|
14
|
+
}).default({}),
|
|
15
|
+
scope: z.literal('dates'),
|
|
16
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const GtfsValidationsPermissionSchema: z.ZodObject<{
|
|
3
|
-
action: z.ZodEnum<["create", "read", "request_approval"]>;
|
|
3
|
+
action: z.ZodEnum<["create", "read", "lock", "request_approval"]>;
|
|
4
4
|
resources: z.ZodDefault<z.ZodObject<{
|
|
5
5
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,13 +11,13 @@ export declare const GtfsValidationsPermissionSchema: z.ZodObject<{
|
|
|
11
11
|
scope: z.ZodLiteral<"gtfs_validations">;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
scope: "gtfs_validations";
|
|
14
|
-
action: "create" | "read" | "request_approval";
|
|
14
|
+
action: "create" | "read" | "lock" | "request_approval";
|
|
15
15
|
resources: {
|
|
16
16
|
agency_ids: string[];
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
19
|
scope: "gtfs_validations";
|
|
20
|
-
action: "create" | "read" | "request_approval";
|
|
20
|
+
action: "create" | "read" | "lock" | "request_approval";
|
|
21
21
|
resources?: {
|
|
22
22
|
agency_ids?: string[] | undefined;
|
|
23
23
|
} | undefined;
|