@tmlmobilidade/types 20250910.1344.34 → 20250910.1538.31
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 +232 -9
- package/dist/src/_common/comment.js +36 -4
- package/dist/src/_common/document.d.ts +4 -4
- package/dist/src/_common/document.js +3 -3
- package/dist/src/_common/proposed-change.d.ts +13 -13
- package/dist/src/_common/unix-timestamp.d.ts +1 -1
- package/dist/src/_common/unix-timestamp.js +1 -2
- package/dist/src/agency.d.ts +6 -6
- package/dist/src/alert.d.ts +37 -53
- package/dist/src/auth/role.d.ts +6 -6
- package/dist/src/auth/session.d.ts +6 -6
- package/dist/src/auth/user.d.ts +6 -6
- package/dist/src/auth/verification-token.d.ts +6 -6
- package/dist/src/file.d.ts +13 -13
- package/dist/src/organization.d.ts +12 -12
- package/dist/src/plans/gtfs-validation.d.ts +6 -6
- package/dist/src/plans/plan.d.ts +6 -6
- package/dist/src/rides/ride-audit.d.ts +1185 -76
- package/dist/src/rides/ride-audit.js +4 -2
- package/dist/src/rides/ride-justification.d.ts +730 -263
- package/dist/src/rides/ride-justification.js +21 -29
- package/dist/src/rides/ride.d.ts +6 -6
- package/dist/src/sams/sam.d.ts +6 -6
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +8 -12
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +8 -12
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +8 -12
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +12 -16
- package/dist/src/stop.d.ts +605 -125
- package/dist/src/vehicle-event.d.ts +4 -4
- package/dist/src/zone.d.ts +9 -9
- package/package.json +1 -1
|
@@ -1,43 +1,35 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { CommentSchema } from '../_common/comment.js';
|
|
2
|
+
import { CommentSchema, CommentTypeSchema } from '../_common/comment.js';
|
|
3
3
|
import { DocumentSchema } from '../_common/document.js';
|
|
4
|
-
import { validateUnixTimestamp } from '../_common/unix-timestamp.js';
|
|
5
|
-
import { RideAnalysisSchema } from './ride-analysis.js';
|
|
6
4
|
import { z } from 'zod';
|
|
7
5
|
/* * */
|
|
8
6
|
export const RIDE_ACCEPTANCE_STATUS_OPTIONS = ['justification_required', 'under_review', 'accepted', 'rejected'];
|
|
9
7
|
export const RideAcceptanceStatusSchema = z.enum(RIDE_ACCEPTANCE_STATUS_OPTIONS);
|
|
10
8
|
/* * */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
const CommentSchemaWithRideJustificationStatus = CommentSchema.superRefine((data, ctx) => {
|
|
10
|
+
if (data.type === CommentTypeSchema.enum.statusChanged) {
|
|
11
|
+
const d = data;
|
|
12
|
+
if (RideAcceptanceStatusSchema.safeParse(d.curr_status).error) {
|
|
13
|
+
ctx.addIssue({
|
|
14
|
+
code: z.ZodIssueCode.custom,
|
|
15
|
+
message: 'curr_status must be a valid ride acceptance status',
|
|
16
|
+
path: ['curr_status'],
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (RideAcceptanceStatusSchema.safeParse(d.prev_status).error) {
|
|
20
|
+
ctx.addIssue({
|
|
21
|
+
code: z.ZodIssueCode.custom,
|
|
22
|
+
message: 'prev_status must be a valid ride acceptance status',
|
|
23
|
+
path: ['prev_status'],
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
20
28
|
/* * */
|
|
21
29
|
export const RideJustificationSchema = DocumentSchema.extend({
|
|
22
30
|
acceptance_status: RideAcceptanceStatusSchema,
|
|
23
|
-
|
|
24
|
-
comments: z.array(CommentSchema).default([]),
|
|
31
|
+
comments: z.array(CommentSchemaWithRideJustificationStatus).default([]),
|
|
25
32
|
pto_message: z.string().min(2).max(5000).default(''),
|
|
26
33
|
}).strict();
|
|
27
34
|
export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
28
35
|
export const UpdateRideJustificationSchema = CreateRideJustificationSchema.partial();
|
|
29
|
-
// const example: RideJustification = {
|
|
30
|
-
// _id: '64b64f4f8f1d2c001f6e4b8a',
|
|
31
|
-
// acceptance_status: 'rejected',
|
|
32
|
-
// analysis_result: null,
|
|
33
|
-
// changelog: [
|
|
34
|
-
// {
|
|
35
|
-
// acceptance_status: 'justification_required',
|
|
36
|
-
// created_at: 1690400000 as UnixTimestamp,
|
|
37
|
-
// created_by: 'joao',
|
|
38
|
-
// },
|
|
39
|
-
// ],
|
|
40
|
-
// comments: [],
|
|
41
|
-
// created_by: 'joao',
|
|
42
|
-
// pto_message: '',
|
|
43
|
-
// };
|
package/dist/src/rides/ride.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const RideSchema: z.ZodObject<{
|
|
5
5
|
_id: z.ZodString;
|
|
6
|
-
created_at: z.
|
|
6
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
7
7
|
created_by: z.ZodDefault<z.ZodString>;
|
|
8
|
-
updated_at: z.
|
|
8
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
9
9
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
10
10
|
} & {
|
|
11
11
|
agency_id: z.ZodString;
|
|
@@ -485,11 +485,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
485
485
|
_id: string;
|
|
486
486
|
created_at: number & {
|
|
487
487
|
__brand: "UnixTimestamp";
|
|
488
|
-
}
|
|
488
|
+
};
|
|
489
489
|
created_by: string;
|
|
490
490
|
updated_at: number & {
|
|
491
491
|
__brand: "UnixTimestamp";
|
|
492
|
-
}
|
|
492
|
+
};
|
|
493
493
|
updated_by: string;
|
|
494
494
|
agency_id: string;
|
|
495
495
|
line_id: number;
|
|
@@ -766,9 +766,9 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
766
766
|
}>;
|
|
767
767
|
export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
768
768
|
_id: z.ZodOptional<z.ZodString>;
|
|
769
|
-
created_at: z.
|
|
769
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
770
770
|
created_by: z.ZodDefault<z.ZodString>;
|
|
771
|
-
updated_at: z.
|
|
771
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
772
772
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
773
773
|
agency_id: z.ZodString;
|
|
774
774
|
line_id: z.ZodNumber;
|
package/dist/src/sams/sam.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { type SamAnalysis } from './sam-analysis.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const SamSchema: z.ZodObject<{
|
|
5
|
-
created_at: z.
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
6
|
created_by: z.ZodDefault<z.ZodString>;
|
|
7
|
-
updated_at: z.
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
9
9
|
} & {
|
|
10
10
|
_id: z.ZodNumber;
|
|
@@ -71,11 +71,11 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
71
71
|
_id: number;
|
|
72
72
|
created_at: number & {
|
|
73
73
|
__brand: "UnixTimestamp";
|
|
74
|
-
}
|
|
74
|
+
};
|
|
75
75
|
created_by: string;
|
|
76
76
|
updated_at: number & {
|
|
77
77
|
__brand: "UnixTimestamp";
|
|
78
|
-
}
|
|
78
|
+
};
|
|
79
79
|
updated_by: string;
|
|
80
80
|
agency_id: string;
|
|
81
81
|
analysis: {
|
|
@@ -143,9 +143,9 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
143
143
|
remarks?: string | null | undefined;
|
|
144
144
|
}>;
|
|
145
145
|
export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
146
|
-
created_at: z.
|
|
146
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
147
147
|
created_by: z.ZodDefault<z.ZodString>;
|
|
148
|
-
updated_at: z.
|
|
148
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
149
149
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
150
150
|
} & {
|
|
151
151
|
_id: z.ZodNumber;
|
|
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
|
-
created_at: z.
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
6
|
created_by: z.ZodDefault<z.ZodString>;
|
|
7
|
-
updated_at: z.
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
9
9
|
} & {
|
|
10
10
|
agency_id: z.ZodString;
|
|
@@ -22,11 +22,11 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
22
22
|
_id: string;
|
|
23
23
|
created_at: number & {
|
|
24
24
|
__brand: "UnixTimestamp";
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
created_by: string;
|
|
27
27
|
updated_at: number & {
|
|
28
28
|
__brand: "UnixTimestamp";
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
updated_by: string;
|
|
31
31
|
agency_id: string;
|
|
32
32
|
line_id: string;
|
|
@@ -61,9 +61,9 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
61
61
|
}>;
|
|
62
62
|
export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
63
63
|
_id: z.ZodOptional<z.ZodString>;
|
|
64
|
-
created_at: z.ZodOptional<z.
|
|
64
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
65
65
|
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
66
|
-
updated_at: z.ZodOptional<z.
|
|
66
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
67
67
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
68
68
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
69
69
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
@@ -78,13 +78,9 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
78
78
|
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
79
79
|
}, "strict", z.ZodTypeAny, {
|
|
80
80
|
_id?: string | undefined;
|
|
81
|
-
created_at?:
|
|
82
|
-
__brand: "UnixTimestamp";
|
|
83
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
81
|
+
created_at?: UnixTimestamp | undefined;
|
|
84
82
|
created_by?: string | undefined;
|
|
85
|
-
updated_at?:
|
|
86
|
-
__brand: "UnixTimestamp";
|
|
87
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
83
|
+
updated_at?: UnixTimestamp | undefined;
|
|
88
84
|
updated_by?: string | undefined;
|
|
89
85
|
agency_id?: string | undefined;
|
|
90
86
|
line_id?: string | undefined;
|
|
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
|
-
created_at: z.
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
6
|
created_by: z.ZodDefault<z.ZodString>;
|
|
7
|
-
updated_at: z.
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
9
9
|
} & {
|
|
10
10
|
agency_id: z.ZodString;
|
|
@@ -32,11 +32,11 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
32
32
|
_id: string;
|
|
33
33
|
created_at: number & {
|
|
34
34
|
__brand: "UnixTimestamp";
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
created_by: string;
|
|
37
37
|
updated_at: number & {
|
|
38
38
|
__brand: "UnixTimestamp";
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
40
|
updated_by: string;
|
|
41
41
|
agency_id: string;
|
|
42
42
|
line_id: string | null;
|
|
@@ -91,9 +91,9 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
91
91
|
}>;
|
|
92
92
|
export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
93
93
|
_id: z.ZodOptional<z.ZodString>;
|
|
94
|
-
created_at: z.ZodOptional<z.
|
|
94
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
95
95
|
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
96
|
-
updated_at: z.ZodOptional<z.
|
|
96
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
97
97
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
98
98
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
99
99
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
@@ -118,13 +118,9 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
118
118
|
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
119
119
|
}, "strict", z.ZodTypeAny, {
|
|
120
120
|
_id?: string | undefined;
|
|
121
|
-
created_at?:
|
|
122
|
-
__brand: "UnixTimestamp";
|
|
123
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
121
|
+
created_at?: UnixTimestamp | undefined;
|
|
124
122
|
created_by?: string | undefined;
|
|
125
|
-
updated_at?:
|
|
126
|
-
__brand: "UnixTimestamp";
|
|
127
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
123
|
+
updated_at?: UnixTimestamp | undefined;
|
|
128
124
|
updated_by?: string | undefined;
|
|
129
125
|
agency_id?: string | undefined;
|
|
130
126
|
line_id?: string | null | undefined;
|
|
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
|
-
created_at: z.
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
6
|
created_by: z.ZodDefault<z.ZodString>;
|
|
7
|
-
updated_at: z.
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
9
9
|
} & {
|
|
10
10
|
agency_id: z.ZodString;
|
|
@@ -33,11 +33,11 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
33
33
|
_id: string;
|
|
34
34
|
created_at: number & {
|
|
35
35
|
__brand: "UnixTimestamp";
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
37
|
created_by: string;
|
|
38
38
|
updated_at: number & {
|
|
39
39
|
__brand: "UnixTimestamp";
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
updated_by: string;
|
|
42
42
|
agency_id: string;
|
|
43
43
|
line_id: string | null;
|
|
@@ -94,9 +94,9 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
94
94
|
}>;
|
|
95
95
|
export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
96
96
|
_id: z.ZodOptional<z.ZodString>;
|
|
97
|
-
created_at: z.ZodOptional<z.
|
|
97
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
98
98
|
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
99
|
-
updated_at: z.ZodOptional<z.
|
|
99
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
100
100
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
101
101
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
102
102
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
@@ -122,13 +122,9 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
122
122
|
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
123
123
|
}, "strict", z.ZodTypeAny, {
|
|
124
124
|
_id?: string | undefined;
|
|
125
|
-
created_at?:
|
|
126
|
-
__brand: "UnixTimestamp";
|
|
127
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
125
|
+
created_at?: UnixTimestamp | undefined;
|
|
128
126
|
created_by?: string | undefined;
|
|
129
|
-
updated_at?:
|
|
130
|
-
__brand: "UnixTimestamp";
|
|
131
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
127
|
+
updated_at?: UnixTimestamp | undefined;
|
|
132
128
|
updated_by?: string | undefined;
|
|
133
129
|
agency_id?: string | undefined;
|
|
134
130
|
line_id?: string | null | undefined;
|
|
@@ -146,9 +146,9 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
|
|
|
146
146
|
}>;
|
|
147
147
|
export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
148
148
|
_id: z.ZodString;
|
|
149
|
-
created_at: z.
|
|
149
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
150
150
|
created_by: z.ZodDefault<z.ZodString>;
|
|
151
|
-
updated_at: z.
|
|
151
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
152
152
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
153
153
|
} & {
|
|
154
154
|
agency_id: z.ZodString;
|
|
@@ -246,11 +246,11 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
246
246
|
_id: string;
|
|
247
247
|
created_at: number & {
|
|
248
248
|
__brand: "UnixTimestamp";
|
|
249
|
-
}
|
|
249
|
+
};
|
|
250
250
|
created_by: string;
|
|
251
251
|
updated_at: number & {
|
|
252
252
|
__brand: "UnixTimestamp";
|
|
253
|
-
}
|
|
253
|
+
};
|
|
254
254
|
updated_by: string;
|
|
255
255
|
agency_id: string;
|
|
256
256
|
line_id: string;
|
|
@@ -273,7 +273,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
273
273
|
event_type: number;
|
|
274
274
|
product_id: string;
|
|
275
275
|
units_qty: number | null;
|
|
276
|
-
validation_status: 0 | 1 | 2 | 3 |
|
|
276
|
+
validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
277
277
|
}, {
|
|
278
278
|
_id: string;
|
|
279
279
|
created_at: number;
|
|
@@ -297,15 +297,15 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
297
297
|
event_type: number;
|
|
298
298
|
product_id: string;
|
|
299
299
|
units_qty: number | null;
|
|
300
|
-
validation_status: 0 | 1 | 2 | 3 |
|
|
300
|
+
validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
301
301
|
created_by?: string | undefined;
|
|
302
302
|
updated_by?: string | undefined;
|
|
303
303
|
}>;
|
|
304
304
|
export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
305
305
|
_id: z.ZodOptional<z.ZodString>;
|
|
306
|
-
created_at: z.ZodOptional<z.
|
|
306
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
307
307
|
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
308
|
-
updated_at: z.ZodOptional<z.
|
|
308
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
309
309
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
310
310
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
311
311
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
@@ -400,13 +400,9 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
400
400
|
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
401
401
|
}, "strict", z.ZodTypeAny, {
|
|
402
402
|
_id?: string | undefined;
|
|
403
|
-
created_at?:
|
|
404
|
-
__brand: "UnixTimestamp";
|
|
405
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
403
|
+
created_at?: UnixTimestamp | undefined;
|
|
406
404
|
created_by?: string | undefined;
|
|
407
|
-
updated_at?:
|
|
408
|
-
__brand: "UnixTimestamp";
|
|
409
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
405
|
+
updated_at?: UnixTimestamp | undefined;
|
|
410
406
|
updated_by?: string | undefined;
|
|
411
407
|
agency_id?: string | undefined;
|
|
412
408
|
line_id?: string | undefined;
|
|
@@ -429,7 +425,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
429
425
|
event_type?: number | undefined;
|
|
430
426
|
product_id?: string | undefined;
|
|
431
427
|
units_qty?: number | null | undefined;
|
|
432
|
-
validation_status?: 0 | 1 | 2 | 3 |
|
|
428
|
+
validation_status?: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
|
|
433
429
|
}, {
|
|
434
430
|
_id?: string | undefined;
|
|
435
431
|
created_at?: number | undefined;
|
|
@@ -455,7 +451,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
455
451
|
event_type?: number | undefined;
|
|
456
452
|
product_id?: string | undefined;
|
|
457
453
|
units_qty?: number | null | undefined;
|
|
458
|
-
validation_status?: 0 | 1 | 2 | 3 |
|
|
454
|
+
validation_status?: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
|
|
459
455
|
}>;
|
|
460
456
|
/**
|
|
461
457
|
* APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
|