@tmlmobilidade/types 20251031.1051.3 → 20251202.1817.5
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 → _common}/index.d.ts +4 -2
- package/dist/{src/_common → _common}/index.js +4 -2
- package/dist/_common/mongo.d.ts +3 -0
- package/dist/_common/status.d.ts +13 -0
- package/dist/_common/status.js +20 -0
- package/dist/_common/utility.js +1 -0
- package/dist/{src/agency.d.ts → agency.d.ts} +4 -15
- package/dist/{src/agency.js → agency.js} +1 -6
- package/dist/{src/alert.d.ts → alert.d.ts} +20 -21
- package/dist/{src/alert.js → alert.js} +8 -14
- package/dist/{src/simplified-apex → apex}/simplified-apex-validation.d.ts +20 -20
- package/dist/{src/auth → auth}/index.d.ts +1 -1
- package/dist/{src/auth → auth}/index.js +1 -1
- package/dist/{src/auth → auth}/password-requirements.js +2 -1
- package/dist/auth/role.d.ts +958 -0
- package/dist/{src/auth → auth}/role.js +2 -2
- package/dist/{src/auth → auth}/session.d.ts +13 -9
- package/dist/{src/auth → auth}/session.js +1 -1
- package/dist/auth/user.d.ts +1281 -0
- package/dist/{src/auth → auth}/user.js +11 -14
- package/dist/{src/file-exports → file-exports}/common.d.ts +9 -8
- package/dist/{src/file-exports → file-exports}/common.js +1 -1
- package/dist/file-exports/index.d.ts +121 -0
- package/dist/file-exports/ride-export.d.ts +410 -0
- package/dist/file-exports/ride-export.js +131 -0
- package/dist/{src/file.d.ts → file.d.ts} +18 -18
- package/dist/gtfs/agency.d.ts +30 -0
- package/dist/gtfs/agency.js +13 -0
- package/dist/gtfs/feed-info.d.ts +33 -0
- package/dist/{src/gtfs.js → gtfs/feed-info.js} +1 -11
- package/dist/{src/gtfs → gtfs}/index.d.ts +3 -0
- package/dist/{src/gtfs → gtfs}/index.js +3 -0
- package/dist/gtfs/service-alert.d.ts +26 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +22 -22
- package/dist/locations/census.d.ts +211 -0
- package/dist/locations/census.js +2 -0
- package/dist/locations/district.d.ts +24 -0
- package/dist/locations/district.js +2 -0
- package/dist/locations/index.d.ts +6 -0
- package/dist/locations/index.js +6 -0
- package/dist/locations/locality.d.ts +27 -0
- package/dist/locations/locality.js +2 -0
- package/dist/locations/municipality.d.ts +25 -0
- package/dist/locations/municipality.js +2 -0
- package/dist/locations/parish.d.ts +26 -0
- package/dist/locations/parish.js +2 -0
- package/dist/locations/queries.d.ts +117 -0
- package/dist/{src/locations.js → locations/queries.js} +5 -16
- package/dist/metrics/demand/demand_by_agency.d.ts +210 -0
- package/dist/metrics/demand/demand_by_agency.js +39 -0
- package/dist/metrics/demand/demand_by_category.d.ts +475 -0
- package/dist/metrics/demand/demand_by_category.js +114 -0
- package/dist/metrics/demand/demand_by_line.d.ts +246 -0
- package/dist/metrics/demand/demand_by_line.js +56 -0
- package/dist/metrics/demand/demand_by_pattern.d.ts +332 -0
- package/dist/metrics/demand/demand_by_pattern.js +56 -0
- package/dist/metrics/demand/demand_by_product.d.ts +475 -0
- package/dist/metrics/demand/demand_by_product.js +114 -0
- package/dist/metrics/demand/index.d.ts +6 -0
- package/dist/metrics/demand/index.js +8 -0
- package/dist/metrics/demand/records.d.ts +320 -0
- package/dist/metrics/demand/records.js +53 -0
- package/dist/metrics/index.d.ts +2647 -0
- package/dist/metrics/index.js +48 -0
- package/dist/metrics/realtime.d.ts +667 -0
- package/dist/metrics/realtime.js +41 -0
- package/dist/{src/notification.d.ts → notification.d.ts} +4 -4
- package/dist/{src/organization.d.ts → organization.d.ts} +32 -32
- package/dist/{src/organization.js → organization.js} +7 -7
- package/dist/permissions/agencies.d.ts +12 -0
- package/dist/permissions/agencies.js +13 -0
- package/dist/permissions/alerts.d.ts +36 -0
- package/dist/permissions/alerts.js +25 -0
- package/dist/permissions/controller.d.ts +36 -0
- package/dist/permissions/controller.js +30 -0
- package/dist/permissions/gtfs-validations.d.ts +25 -0
- package/dist/permissions/gtfs-validations.js +14 -0
- package/dist/permissions/home.d.ts +12 -0
- package/dist/permissions/home.js +10 -0
- package/dist/permissions/index.d.ts +268 -0
- package/dist/permissions/index.js +149 -0
- package/dist/permissions/organizations.d.ts +12 -0
- package/dist/permissions/organizations.js +12 -0
- package/dist/permissions/performance.d.ts +12 -0
- package/dist/permissions/performance.js +9 -0
- package/dist/permissions/plans.d.ts +25 -0
- package/dist/permissions/plans.js +22 -0
- package/dist/permissions/roles.d.ts +12 -0
- package/dist/permissions/roles.js +12 -0
- package/dist/permissions/stops.d.ts +30 -0
- package/dist/permissions/stops.js +17 -0
- package/dist/permissions/users.d.ts +12 -0
- package/dist/permissions/users.js +12 -0
- package/dist/{src/plans → plans}/gtfs-validation.d.ts +55 -63
- package/dist/{src/plans → plans}/gtfs-validation.js +3 -6
- package/dist/plans/plan-app-status.d.ts +15 -0
- package/dist/plans/plan-app-status.js +10 -0
- package/dist/{src/plans → plans}/plan.d.ts +240 -104
- package/dist/{src/plans → plans}/plan.js +8 -10
- package/dist/{src/_common/proposed-change.d.ts → proposed-change.d.ts} +21 -22
- package/dist/{src/_common/proposed-change.js → proposed-change.js} +5 -7
- package/dist/{src/rides → rides}/index.d.ts +1 -0
- package/dist/{src/rides → rides}/index.js +1 -0
- package/dist/{src/rides → rides}/ride-acceptance.d.ts +65 -65
- package/dist/{src/rides → rides}/ride-analysis.d.ts +34 -34
- package/dist/{src/rides → rides}/ride-audit.d.ts +10 -10
- package/dist/rides/ride-normalized.d.ts +29 -0
- package/dist/rides/ride-normalized.js +2 -0
- package/dist/{src/rides → rides}/ride.d.ts +523 -567
- package/dist/{src/rides → rides}/ride.js +2 -16
- package/dist/{src/sams → sams}/sam-analysis.d.ts +11 -11
- package/dist/{src/sams → sams}/sam-analysis.js +4 -4
- package/dist/{src/sams → sams}/sam.d.ts +76 -76
- package/dist/{src/sams → sams}/sam.js +1 -1
- package/dist/{src/stop.d.ts → stop.d.ts} +32 -43
- package/dist/{src/stop.js → stop.js} +3 -8
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +77 -0
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +21 -0
- package/dist/vehicle-events/index.d.ts +2 -0
- package/dist/vehicle-events/index.js +2 -0
- package/dist/{src/vehicle-event.d.ts → vehicle-events/simplified-vehicle-event.d.ts} +9 -9
- package/dist/{src/vehicle-event.js → vehicle-events/simplified-vehicle-event.js} +3 -3
- package/dist/wiki.js +2 -0
- package/dist/{src/zone.d.ts → zone.d.ts} +2 -16
- package/dist/{src/zone.js → zone.js} +0 -6
- package/package.json +18 -21
- package/README.md +0 -13
- package/dist/src/_common/email.d.ts +0 -4
- package/dist/src/_common/email.js +0 -7
- package/dist/src/auth/permission.d.ts +0 -19
- package/dist/src/auth/permission.js +0 -8
- package/dist/src/auth/role.d.ts +0 -127
- package/dist/src/auth/user.d.ts +0 -311
- package/dist/src/file-exports/index.d.ts +0 -121
- package/dist/src/file-exports/ride-export.d.ts +0 -470
- package/dist/src/file-exports/ride-export.js +0 -128
- package/dist/src/gtfs.d.ts +0 -88
- package/dist/src/locations.d.ts +0 -319
- package/dist/src/metrics/demand.d.ts +0 -803
- package/dist/src/metrics/demand.js +0 -153
- package/dist/src/metrics/index.d.ts +0 -806
- package/dist/src/metrics/index.js +0 -19
- package/dist/src/plans/plan-controller.d.ts +0 -15
- package/dist/src/plans/plan-controller.js +0 -10
- package/dist/src/system/index.d.ts +0 -2
- package/dist/src/system/index.js +0 -2
- package/dist/src/system/processing-status.d.ts +0 -9
- package/dist/src/system/processing-status.js +0 -5
- package/dist/{src/_common → _common}/comment.d.ts +8 -8
- package/dist/{src/_common → _common}/comment.js +0 -0
- package/dist/{src/_common → _common}/document.d.ts +0 -0
- package/dist/{src/_common → _common}/document.js +0 -0
- package/dist/{src/system → _common}/environment.d.ts +0 -0
- package/dist/{src/system → _common}/environment.js +0 -0
- package/dist/{src/_common → _common}/fastify.d.ts +0 -0
- package/dist/{src/_common → _common}/fastify.js +0 -0
- package/dist/{src/_common/utility.js → _common/mongo.js} +0 -0
- package/dist/{src/_common → _common}/operational-date.d.ts +0 -0
- package/dist/{src/_common → _common}/operational-date.js +0 -0
- package/dist/{src/_common → _common}/unix-timestamp.d.ts +0 -0
- package/dist/{src/_common → _common}/unix-timestamp.js +0 -0
- package/dist/{src/_common → _common}/utility.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/index.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/index.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-location.d.ts +16 -16
- package/dist/{src/simplified-apex → apex}/simplified-apex-location.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.d.ts +20 -20
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.d.ts +25 -25
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-type.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-type.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-validation.js +0 -0
- package/dist/{src/auth → auth}/login.d.ts +0 -0
- package/dist/{src/auth → auth}/login.js +0 -0
- package/dist/{src/auth → auth}/password-requirements.d.ts +0 -0
- package/dist/{src/auth → auth}/verification-token.d.ts +0 -0
- package/dist/{src/auth → auth}/verification-token.js +0 -0
- package/dist/{src/file-exports → file-exports}/index.js +0 -0
- package/dist/{src/file.js → file.js} +0 -0
- package/dist/{src/gtfs → gtfs}/calendar-dates.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/calendar-dates.js +0 -0
- package/dist/{src/gtfs → gtfs}/calendar.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/calendar.js +0 -0
- package/dist/{src/gtfs → gtfs}/cause-effetcs.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/cause-effetcs.js +0 -0
- package/dist/{src/gtfs → gtfs}/common.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/common.js +0 -0
- package/dist/{src/gtfs → gtfs}/routes.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/routes.js +0 -0
- package/dist/{src/pcgi/pcgi-apex-location.js → gtfs/service-alert.js} +0 -0
- package/dist/{src/gtfs → gtfs}/shapes.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/shapes.js +0 -0
- package/dist/{src/gtfs → gtfs}/stop-times.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/stop-times.js +0 -0
- package/dist/{src/gtfs → gtfs}/stops.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/stops.js +0 -0
- package/dist/{src/gtfs → gtfs}/trips.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/trips.js +0 -0
- package/dist/{src/metrics → metrics}/common.d.ts +0 -0
- package/dist/{src/metrics → metrics}/common.js +0 -0
- package/dist/{src/notification.js → notification.js} +0 -0
- package/dist/{src/pcgi → pcgi}/index.d.ts +0 -0
- package/dist/{src/pcgi → pcgi}/index.js +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-location.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-refund.js → pcgi/pcgi-apex-location.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-refund.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-sale.js → pcgi/pcgi-apex-refund.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-sale.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-validation.js → pcgi/pcgi-apex-sale.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-validation.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-transaction-entity.js → pcgi/pcgi-apex-validation.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-transaction-entity.d.ts +0 -0
- package/dist/{src/rides/hashed-shape.js → pcgi/pcgi-transaction-entity.js} +0 -0
- package/dist/{src/plans → plans}/index.d.ts +0 -0
- package/dist/{src/plans → plans}/index.js +0 -0
- package/dist/{src/plans → plans}/plan-pcgi-legacy.d.ts +0 -0
- package/dist/{src/plans → plans}/plan-pcgi-legacy.js +0 -0
- package/dist/{src/rides → rides}/hashed-shape.d.ts +0 -0
- package/dist/{src/rides/hashed-trip.js → rides/hashed-shape.js} +0 -0
- package/dist/{src/rides → rides}/hashed-trip.d.ts +0 -0
- package/dist/{src/wiki.js → rides/hashed-trip.js} +0 -0
- package/dist/{src/rides → rides}/ride-acceptance.js +1 -1
- /package/dist/{src/rides → rides}/ride-analysis.js +0 -0
- /package/dist/{src/rides → rides}/ride-audit.js +0 -0
- /package/dist/{src/rides → rides}/ride-overrides.d.ts +0 -0
- /package/dist/{src/rides → rides}/ride-overrides.js +0 -0
- /package/dist/{src/sams → sams}/index.d.ts +0 -0
- /package/dist/{src/sams → sams}/index.js +0 -0
- /package/dist/{src/wiki.d.ts → wiki.d.ts} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { UnixTimestamp } from './unix-timestamp.js';
|
|
1
|
+
import { UnixTimestamp } from './_common/unix-timestamp.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export type Scope = z.infer<typeof
|
|
6
|
-
export type Status = z.infer<typeof statusSchema>;
|
|
3
|
+
import { ApprovalStatus } from './_common/status.js';
|
|
4
|
+
export declare const ScopeSchema: z.ZodEnum<["stop", "lines"]>;
|
|
5
|
+
export type Scope = z.infer<typeof ScopeSchema>;
|
|
7
6
|
export declare const ProposedChangeSchema: z.ZodObject<{
|
|
8
7
|
_id: z.ZodString;
|
|
9
8
|
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
@@ -15,7 +14,7 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
15
14
|
field: z.ZodString;
|
|
16
15
|
related_id: z.ZodString;
|
|
17
16
|
scope: z.ZodEnum<["stop", "lines"]>;
|
|
18
|
-
status: z.
|
|
17
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "none"]>;
|
|
19
18
|
}, "strict", z.ZodTypeAny, {
|
|
20
19
|
_id: string;
|
|
21
20
|
created_at: number & {
|
|
@@ -24,10 +23,10 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
24
23
|
updated_at: number & {
|
|
25
24
|
__brand: "UnixTimestamp";
|
|
26
25
|
};
|
|
27
|
-
status: "
|
|
26
|
+
status: "none" | "pending" | "approved" | "rejected";
|
|
27
|
+
scope: "stop" | "lines";
|
|
28
28
|
field: string;
|
|
29
29
|
related_id: string;
|
|
30
|
-
scope: "stop" | "lines";
|
|
31
30
|
created_by?: string | undefined;
|
|
32
31
|
updated_by?: string | undefined;
|
|
33
32
|
curr_value?: any;
|
|
@@ -35,12 +34,12 @@ export declare const ProposedChangeSchema: z.ZodObject<{
|
|
|
35
34
|
_id: string;
|
|
36
35
|
created_at: number;
|
|
37
36
|
updated_at: number;
|
|
37
|
+
status: "none" | "pending" | "approved" | "rejected";
|
|
38
|
+
scope: "stop" | "lines";
|
|
38
39
|
field: string;
|
|
39
40
|
related_id: string;
|
|
40
|
-
scope: "stop" | "lines";
|
|
41
41
|
created_by?: string | undefined;
|
|
42
42
|
updated_by?: string | undefined;
|
|
43
|
-
status?: "pending" | "approved" | "rejected" | "none" | undefined;
|
|
44
43
|
curr_value?: any;
|
|
45
44
|
}>;
|
|
46
45
|
export type ProposedChange<T> = {
|
|
@@ -52,7 +51,7 @@ export type ProposedChange<T> = {
|
|
|
52
51
|
field: P;
|
|
53
52
|
related_id: string;
|
|
54
53
|
scope: Scope;
|
|
55
|
-
status:
|
|
54
|
+
status: ApprovalStatus;
|
|
56
55
|
updated_at: UnixTimestamp;
|
|
57
56
|
updated_by: string;
|
|
58
57
|
};
|
|
@@ -68,45 +67,45 @@ export declare const CreateProposedChangeSchema: z.ZodObject<Omit<{
|
|
|
68
67
|
field: z.ZodString;
|
|
69
68
|
related_id: z.ZodString;
|
|
70
69
|
scope: z.ZodEnum<["stop", "lines"]>;
|
|
71
|
-
status: z.
|
|
70
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "none"]>;
|
|
72
71
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
73
|
-
status: "
|
|
72
|
+
status: "none" | "pending" | "approved" | "rejected";
|
|
73
|
+
scope: "stop" | "lines";
|
|
74
74
|
field: string;
|
|
75
75
|
related_id: string;
|
|
76
|
-
scope: "stop" | "lines";
|
|
77
76
|
created_by?: string | undefined;
|
|
78
77
|
updated_by?: string | undefined;
|
|
79
78
|
curr_value?: any;
|
|
80
79
|
}, {
|
|
80
|
+
status: "none" | "pending" | "approved" | "rejected";
|
|
81
|
+
scope: "stop" | "lines";
|
|
81
82
|
field: string;
|
|
82
83
|
related_id: string;
|
|
83
|
-
scope: "stop" | "lines";
|
|
84
84
|
created_by?: string | undefined;
|
|
85
85
|
updated_by?: string | undefined;
|
|
86
|
-
status?: "pending" | "approved" | "rejected" | "none" | undefined;
|
|
87
86
|
curr_value?: any;
|
|
88
87
|
}>;
|
|
89
88
|
export declare const UpdateProposedChangeSchema: z.ZodObject<{
|
|
90
89
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
91
|
-
status: z.ZodOptional<z.
|
|
90
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "none"]>>;
|
|
91
|
+
scope: z.ZodOptional<z.ZodEnum<["stop", "lines"]>>;
|
|
92
92
|
curr_value: z.ZodOptional<z.ZodAny>;
|
|
93
93
|
field: z.ZodOptional<z.ZodString>;
|
|
94
94
|
related_id: z.ZodOptional<z.ZodString>;
|
|
95
|
-
scope: z.ZodOptional<z.ZodEnum<["stop", "lines"]>>;
|
|
96
95
|
}, "strict", z.ZodTypeAny, {
|
|
97
96
|
updated_by?: string | undefined;
|
|
98
|
-
status?: "
|
|
97
|
+
status?: "none" | "pending" | "approved" | "rejected" | undefined;
|
|
98
|
+
scope?: "stop" | "lines" | undefined;
|
|
99
99
|
curr_value?: any;
|
|
100
100
|
field?: string | undefined;
|
|
101
101
|
related_id?: string | undefined;
|
|
102
|
-
scope?: "stop" | "lines" | undefined;
|
|
103
102
|
}, {
|
|
104
103
|
updated_by?: string | undefined;
|
|
105
|
-
status?: "
|
|
104
|
+
status?: "none" | "pending" | "approved" | "rejected" | undefined;
|
|
105
|
+
scope?: "stop" | "lines" | undefined;
|
|
106
106
|
curr_value?: any;
|
|
107
107
|
field?: string | undefined;
|
|
108
108
|
related_id?: string | undefined;
|
|
109
|
-
scope?: "stop" | "lines" | undefined;
|
|
110
109
|
}>;
|
|
111
110
|
export type CreateProposedChangeDto<T> = Omit<ProposedChange<T>, '_id' | 'created_at' | 'updated_at'>;
|
|
112
111
|
export type UpdateProposedChangeDto<T> = Omit<CreateProposedChangeDto<T>, 'created_by'>;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { DocumentSchema } from './document.js';
|
|
2
|
+
import { DocumentSchema } from './_common/document.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { ApprovalStatusSchema } from './_common/status.js';
|
|
4
5
|
/* * */
|
|
5
6
|
//
|
|
6
7
|
// Define constants for enum values for better maintainability
|
|
7
|
-
const
|
|
8
|
-
const STATUS_VALUES = ['pending', 'approved', 'rejected', 'none'];
|
|
9
|
-
export const scopeSchema = z.enum(SCOPE_VALUES);
|
|
10
|
-
export const statusSchema = z.enum(STATUS_VALUES).default('pending');
|
|
8
|
+
export const ScopeSchema = z.enum(['stop', 'lines']);
|
|
11
9
|
// Define schemas using constants
|
|
12
10
|
export const ProposedChangeSchema = DocumentSchema.extend({
|
|
13
11
|
curr_value: z.any(),
|
|
14
12
|
field: z.string(),
|
|
15
13
|
related_id: z.string(),
|
|
16
|
-
scope:
|
|
17
|
-
status:
|
|
14
|
+
scope: ScopeSchema,
|
|
15
|
+
status: ApprovalStatusSchema,
|
|
18
16
|
}).strict();
|
|
19
17
|
export const CreateProposedChangeSchema = ProposedChangeSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
20
18
|
export const UpdateProposedChangeSchema = CreateProposedChangeSchema.omit({ created_by: true }).partial();
|
|
@@ -10,9 +10,9 @@ export declare const RideJustificationStatusTypeSchema: z.ZodEnum<["locked_statu
|
|
|
10
10
|
export type RideJustificationStatusType = z.infer<typeof RideJustificationStatusTypeSchema>;
|
|
11
11
|
export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
12
12
|
_id: z.ZodString;
|
|
13
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
13
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
14
14
|
created_by: z.ZodOptional<z.ZodString>;
|
|
15
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
15
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
16
16
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
17
17
|
} & {
|
|
18
18
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
@@ -45,9 +45,9 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
45
45
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
46
46
|
export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
47
47
|
_id: z.ZodString;
|
|
48
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
48
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
49
49
|
created_by: z.ZodOptional<z.ZodString>;
|
|
50
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
50
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
51
51
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
52
52
|
} & {
|
|
53
53
|
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
@@ -55,17 +55,17 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
55
55
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
56
56
|
reason: z.ZodString;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
grade: "
|
|
58
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
59
59
|
reason: string;
|
|
60
60
|
}, {
|
|
61
|
-
grade: "
|
|
61
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
62
62
|
reason: string;
|
|
63
63
|
}>>;
|
|
64
64
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
65
65
|
_id: z.ZodOptional<z.ZodString>;
|
|
66
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
66
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
67
67
|
created_by: z.ZodOptional<z.ZodString>;
|
|
68
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
68
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
69
69
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
70
70
|
message: z.ZodString;
|
|
71
71
|
type: z.ZodLiteral<"note">;
|
|
@@ -91,14 +91,14 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
91
91
|
updated_by?: string | undefined;
|
|
92
92
|
}>, z.ZodObject<{
|
|
93
93
|
_id: z.ZodOptional<z.ZodString>;
|
|
94
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
94
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
95
95
|
created_by: z.ZodOptional<z.ZodString>;
|
|
96
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
96
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
97
97
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
98
98
|
type: z.ZodLiteral<"field_changed">;
|
|
99
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
99
100
|
curr_value: z.ZodAny;
|
|
100
101
|
field: z.ZodString;
|
|
101
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
102
102
|
prev_value: z.ZodAny;
|
|
103
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
104
|
created_at: number & {
|
|
@@ -112,8 +112,8 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
112
112
|
_id?: string | undefined;
|
|
113
113
|
created_by?: string | undefined;
|
|
114
114
|
updated_by?: string | undefined;
|
|
115
|
-
curr_value?: any;
|
|
116
115
|
metadata?: Record<string, unknown> | null | undefined;
|
|
116
|
+
curr_value?: any;
|
|
117
117
|
prev_value?: any;
|
|
118
118
|
}, {
|
|
119
119
|
created_at: number;
|
|
@@ -123,14 +123,14 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
123
123
|
_id?: string | undefined;
|
|
124
124
|
created_by?: string | undefined;
|
|
125
125
|
updated_by?: string | undefined;
|
|
126
|
-
curr_value?: any;
|
|
127
126
|
metadata?: Record<string, unknown> | null | undefined;
|
|
127
|
+
curr_value?: any;
|
|
128
128
|
prev_value?: any;
|
|
129
129
|
}>, z.ZodObject<{
|
|
130
130
|
_id: z.ZodOptional<z.ZodString>;
|
|
131
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
131
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
132
132
|
created_by: z.ZodOptional<z.ZodString>;
|
|
133
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
133
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
134
134
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
135
135
|
type: z.ZodLiteral<"crud">;
|
|
136
136
|
action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
|
|
@@ -178,8 +178,8 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
178
178
|
_id?: string | undefined;
|
|
179
179
|
created_by?: string | undefined;
|
|
180
180
|
updated_by?: string | undefined;
|
|
181
|
-
curr_value?: any;
|
|
182
181
|
metadata?: Record<string, unknown> | null | undefined;
|
|
182
|
+
curr_value?: any;
|
|
183
183
|
prev_value?: any;
|
|
184
184
|
} | {
|
|
185
185
|
created_at: number & {
|
|
@@ -209,8 +209,8 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
209
209
|
_id?: string | undefined;
|
|
210
210
|
created_by?: string | undefined;
|
|
211
211
|
updated_by?: string | undefined;
|
|
212
|
-
curr_value?: any;
|
|
213
212
|
metadata?: Record<string, unknown> | null | undefined;
|
|
213
|
+
curr_value?: any;
|
|
214
214
|
prev_value?: any;
|
|
215
215
|
} | {
|
|
216
216
|
created_at: number;
|
|
@@ -224,9 +224,9 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
224
224
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
225
225
|
justification: z.ZodNullable<z.ZodObject<Omit<{
|
|
226
226
|
_id: z.ZodString;
|
|
227
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
227
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
228
228
|
created_by: z.ZodOptional<z.ZodString>;
|
|
229
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
229
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
230
230
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
231
231
|
} & {
|
|
232
232
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
@@ -267,7 +267,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
267
267
|
};
|
|
268
268
|
acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
|
|
269
269
|
analysis_summary: Record<string, {
|
|
270
|
-
grade: "
|
|
270
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
271
271
|
reason: string;
|
|
272
272
|
}>;
|
|
273
273
|
comments: ({
|
|
@@ -294,8 +294,8 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
294
294
|
_id?: string | undefined;
|
|
295
295
|
created_by?: string | undefined;
|
|
296
296
|
updated_by?: string | undefined;
|
|
297
|
-
curr_value?: any;
|
|
298
297
|
metadata?: Record<string, unknown> | null | undefined;
|
|
298
|
+
curr_value?: any;
|
|
299
299
|
prev_value?: any;
|
|
300
300
|
} | {
|
|
301
301
|
created_at: number & {
|
|
@@ -334,7 +334,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
334
334
|
updated_at: number;
|
|
335
335
|
acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
|
|
336
336
|
analysis_summary: Record<string, {
|
|
337
|
-
grade: "
|
|
337
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
338
338
|
reason: string;
|
|
339
339
|
}>;
|
|
340
340
|
justification: {
|
|
@@ -366,8 +366,8 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
366
366
|
_id?: string | undefined;
|
|
367
367
|
created_by?: string | undefined;
|
|
368
368
|
updated_by?: string | undefined;
|
|
369
|
-
curr_value?: any;
|
|
370
369
|
metadata?: Record<string, unknown> | null | undefined;
|
|
370
|
+
curr_value?: any;
|
|
371
371
|
prev_value?: any;
|
|
372
372
|
} | {
|
|
373
373
|
created_at: number;
|
|
@@ -382,26 +382,26 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
382
382
|
}>;
|
|
383
383
|
export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
384
384
|
_id: z.ZodOptional<z.ZodString>;
|
|
385
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
385
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
386
386
|
created_by: z.ZodOptional<z.ZodString>;
|
|
387
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
387
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
388
388
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
389
389
|
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
390
390
|
analysis_summary: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
391
391
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
392
392
|
reason: z.ZodString;
|
|
393
393
|
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
grade: "
|
|
394
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
395
395
|
reason: string;
|
|
396
396
|
}, {
|
|
397
|
-
grade: "
|
|
397
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
398
398
|
reason: string;
|
|
399
399
|
}>>;
|
|
400
400
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
401
401
|
_id: z.ZodOptional<z.ZodString>;
|
|
402
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
402
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
403
403
|
created_by: z.ZodOptional<z.ZodString>;
|
|
404
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
404
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
405
405
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
406
406
|
message: z.ZodString;
|
|
407
407
|
type: z.ZodLiteral<"note">;
|
|
@@ -427,14 +427,14 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
427
427
|
updated_by?: string | undefined;
|
|
428
428
|
}>, z.ZodObject<{
|
|
429
429
|
_id: z.ZodOptional<z.ZodString>;
|
|
430
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
430
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
431
431
|
created_by: z.ZodOptional<z.ZodString>;
|
|
432
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
432
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
433
433
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
434
434
|
type: z.ZodLiteral<"field_changed">;
|
|
435
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
435
436
|
curr_value: z.ZodAny;
|
|
436
437
|
field: z.ZodString;
|
|
437
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
438
438
|
prev_value: z.ZodAny;
|
|
439
439
|
}, "strip", z.ZodTypeAny, {
|
|
440
440
|
created_at: number & {
|
|
@@ -448,8 +448,8 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
448
448
|
_id?: string | undefined;
|
|
449
449
|
created_by?: string | undefined;
|
|
450
450
|
updated_by?: string | undefined;
|
|
451
|
-
curr_value?: any;
|
|
452
451
|
metadata?: Record<string, unknown> | null | undefined;
|
|
452
|
+
curr_value?: any;
|
|
453
453
|
prev_value?: any;
|
|
454
454
|
}, {
|
|
455
455
|
created_at: number;
|
|
@@ -459,14 +459,14 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
459
459
|
_id?: string | undefined;
|
|
460
460
|
created_by?: string | undefined;
|
|
461
461
|
updated_by?: string | undefined;
|
|
462
|
-
curr_value?: any;
|
|
463
462
|
metadata?: Record<string, unknown> | null | undefined;
|
|
463
|
+
curr_value?: any;
|
|
464
464
|
prev_value?: any;
|
|
465
465
|
}>, z.ZodObject<{
|
|
466
466
|
_id: z.ZodOptional<z.ZodString>;
|
|
467
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
467
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
468
468
|
created_by: z.ZodOptional<z.ZodString>;
|
|
469
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
469
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
470
470
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
471
471
|
type: z.ZodLiteral<"crud">;
|
|
472
472
|
action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
|
|
@@ -514,8 +514,8 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
514
514
|
_id?: string | undefined;
|
|
515
515
|
created_by?: string | undefined;
|
|
516
516
|
updated_by?: string | undefined;
|
|
517
|
-
curr_value?: any;
|
|
518
517
|
metadata?: Record<string, unknown> | null | undefined;
|
|
518
|
+
curr_value?: any;
|
|
519
519
|
prev_value?: any;
|
|
520
520
|
} | {
|
|
521
521
|
created_at: number & {
|
|
@@ -545,8 +545,8 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
545
545
|
_id?: string | undefined;
|
|
546
546
|
created_by?: string | undefined;
|
|
547
547
|
updated_by?: string | undefined;
|
|
548
|
-
curr_value?: any;
|
|
549
548
|
metadata?: Record<string, unknown> | null | undefined;
|
|
549
|
+
curr_value?: any;
|
|
550
550
|
prev_value?: any;
|
|
551
551
|
} | {
|
|
552
552
|
created_at: number;
|
|
@@ -560,9 +560,9 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
560
560
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
561
561
|
justification: z.ZodNullable<z.ZodObject<Omit<{
|
|
562
562
|
_id: z.ZodString;
|
|
563
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
563
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
564
564
|
created_by: z.ZodOptional<z.ZodString>;
|
|
565
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
565
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
566
566
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
567
567
|
} & {
|
|
568
568
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
@@ -596,7 +596,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
596
596
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
597
597
|
acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
|
|
598
598
|
analysis_summary: Record<string, {
|
|
599
|
-
grade: "
|
|
599
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
600
600
|
reason: string;
|
|
601
601
|
}>;
|
|
602
602
|
comments: ({
|
|
@@ -623,8 +623,8 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
623
623
|
_id?: string | undefined;
|
|
624
624
|
created_by?: string | undefined;
|
|
625
625
|
updated_by?: string | undefined;
|
|
626
|
-
curr_value?: any;
|
|
627
626
|
metadata?: Record<string, unknown> | null | undefined;
|
|
627
|
+
curr_value?: any;
|
|
628
628
|
prev_value?: any;
|
|
629
629
|
} | {
|
|
630
630
|
created_at: number & {
|
|
@@ -661,7 +661,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
661
661
|
}, {
|
|
662
662
|
acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
|
|
663
663
|
analysis_summary: Record<string, {
|
|
664
|
-
grade: "
|
|
664
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
665
665
|
reason: string;
|
|
666
666
|
}>;
|
|
667
667
|
justification: {
|
|
@@ -694,8 +694,8 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
694
694
|
_id?: string | undefined;
|
|
695
695
|
created_by?: string | undefined;
|
|
696
696
|
updated_by?: string | undefined;
|
|
697
|
-
curr_value?: any;
|
|
698
697
|
metadata?: Record<string, unknown> | null | undefined;
|
|
698
|
+
curr_value?: any;
|
|
699
699
|
prev_value?: any;
|
|
700
700
|
} | {
|
|
701
701
|
created_at: number;
|
|
@@ -710,24 +710,24 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
710
710
|
}>;
|
|
711
711
|
export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
712
712
|
_id: z.ZodOptional<z.ZodString>;
|
|
713
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../
|
|
713
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>;
|
|
714
714
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
715
715
|
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
716
716
|
analysis_summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
717
717
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
718
718
|
reason: z.ZodString;
|
|
719
719
|
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
grade: "
|
|
720
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
721
721
|
reason: string;
|
|
722
722
|
}, {
|
|
723
|
-
grade: "
|
|
723
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
724
724
|
reason: string;
|
|
725
725
|
}>>>;
|
|
726
726
|
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
727
727
|
_id: z.ZodOptional<z.ZodString>;
|
|
728
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
728
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
729
729
|
created_by: z.ZodOptional<z.ZodString>;
|
|
730
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
730
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
731
731
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
732
732
|
message: z.ZodString;
|
|
733
733
|
type: z.ZodLiteral<"note">;
|
|
@@ -753,14 +753,14 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
753
753
|
updated_by?: string | undefined;
|
|
754
754
|
}>, z.ZodObject<{
|
|
755
755
|
_id: z.ZodOptional<z.ZodString>;
|
|
756
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
756
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
757
757
|
created_by: z.ZodOptional<z.ZodString>;
|
|
758
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
758
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
759
759
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
760
760
|
type: z.ZodLiteral<"field_changed">;
|
|
761
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
761
762
|
curr_value: z.ZodAny;
|
|
762
763
|
field: z.ZodString;
|
|
763
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
764
764
|
prev_value: z.ZodAny;
|
|
765
765
|
}, "strip", z.ZodTypeAny, {
|
|
766
766
|
created_at: number & {
|
|
@@ -774,8 +774,8 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
774
774
|
_id?: string | undefined;
|
|
775
775
|
created_by?: string | undefined;
|
|
776
776
|
updated_by?: string | undefined;
|
|
777
|
-
curr_value?: any;
|
|
778
777
|
metadata?: Record<string, unknown> | null | undefined;
|
|
778
|
+
curr_value?: any;
|
|
779
779
|
prev_value?: any;
|
|
780
780
|
}, {
|
|
781
781
|
created_at: number;
|
|
@@ -785,14 +785,14 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
785
785
|
_id?: string | undefined;
|
|
786
786
|
created_by?: string | undefined;
|
|
787
787
|
updated_by?: string | undefined;
|
|
788
|
-
curr_value?: any;
|
|
789
788
|
metadata?: Record<string, unknown> | null | undefined;
|
|
789
|
+
curr_value?: any;
|
|
790
790
|
prev_value?: any;
|
|
791
791
|
}>, z.ZodObject<{
|
|
792
792
|
_id: z.ZodOptional<z.ZodString>;
|
|
793
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
793
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
794
794
|
created_by: z.ZodOptional<z.ZodString>;
|
|
795
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
795
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
796
796
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
797
797
|
type: z.ZodLiteral<"crud">;
|
|
798
798
|
action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
|
|
@@ -840,8 +840,8 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
840
840
|
_id?: string | undefined;
|
|
841
841
|
created_by?: string | undefined;
|
|
842
842
|
updated_by?: string | undefined;
|
|
843
|
-
curr_value?: any;
|
|
844
843
|
metadata?: Record<string, unknown> | null | undefined;
|
|
844
|
+
curr_value?: any;
|
|
845
845
|
prev_value?: any;
|
|
846
846
|
} | {
|
|
847
847
|
created_at: number & {
|
|
@@ -871,8 +871,8 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
871
871
|
_id?: string | undefined;
|
|
872
872
|
created_by?: string | undefined;
|
|
873
873
|
updated_by?: string | undefined;
|
|
874
|
-
curr_value?: any;
|
|
875
874
|
metadata?: Record<string, unknown> | null | undefined;
|
|
875
|
+
curr_value?: any;
|
|
876
876
|
prev_value?: any;
|
|
877
877
|
} | {
|
|
878
878
|
created_at: number;
|
|
@@ -886,9 +886,9 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
886
886
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
887
887
|
justification: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
|
|
888
888
|
_id: z.ZodString;
|
|
889
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
889
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
890
890
|
created_by: z.ZodOptional<z.ZodString>;
|
|
891
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
891
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
892
892
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
893
893
|
} & {
|
|
894
894
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
@@ -921,11 +921,11 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
921
921
|
ride_id: z.ZodOptional<z.ZodString>;
|
|
922
922
|
}, "strict", z.ZodTypeAny, {
|
|
923
923
|
_id?: string | undefined;
|
|
924
|
-
updated_at?: import("../
|
|
924
|
+
updated_at?: import("../index.js").UnixTimestamp | undefined;
|
|
925
925
|
updated_by?: string | undefined;
|
|
926
926
|
acceptance_status?: "rejected" | "justification_required" | "under_review" | "accepted" | undefined;
|
|
927
927
|
analysis_summary?: Record<string, {
|
|
928
|
-
grade: "
|
|
928
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
929
929
|
reason: string;
|
|
930
930
|
}> | undefined;
|
|
931
931
|
comments?: ({
|
|
@@ -952,8 +952,8 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
952
952
|
_id?: string | undefined;
|
|
953
953
|
created_by?: string | undefined;
|
|
954
954
|
updated_by?: string | undefined;
|
|
955
|
-
curr_value?: any;
|
|
956
955
|
metadata?: Record<string, unknown> | null | undefined;
|
|
956
|
+
curr_value?: any;
|
|
957
957
|
prev_value?: any;
|
|
958
958
|
} | {
|
|
959
959
|
created_at: number & {
|
|
@@ -990,7 +990,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
990
990
|
updated_by?: string | undefined;
|
|
991
991
|
acceptance_status?: "rejected" | "justification_required" | "under_review" | "accepted" | undefined;
|
|
992
992
|
analysis_summary?: Record<string, {
|
|
993
|
-
grade: "
|
|
993
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
994
994
|
reason: string;
|
|
995
995
|
}> | undefined;
|
|
996
996
|
comments?: ({
|
|
@@ -1009,8 +1009,8 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1009
1009
|
_id?: string | undefined;
|
|
1010
1010
|
created_by?: string | undefined;
|
|
1011
1011
|
updated_by?: string | undefined;
|
|
1012
|
-
curr_value?: any;
|
|
1013
1012
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1013
|
+
curr_value?: any;
|
|
1014
1014
|
prev_value?: any;
|
|
1015
1015
|
} | {
|
|
1016
1016
|
created_at: number;
|