@tmlmobilidade/types 20250917.1133.15 → 20250917.1305.2
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 +88 -1
- package/dist/src/_common/comment.js +15 -1
- package/dist/src/auth/permission.d.ts +2 -2
- package/dist/src/auth/role.d.ts +12 -12
- package/dist/src/auth/user.d.ts +12 -12
- package/dist/src/rides/ride-acceptance.d.ts +204 -0
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +5 -5
- package/dist/src/stop.d.ts +204 -0
- package/package.json +1 -1
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const CommentTypeSchema: z.ZodEnum<["field_changed", "note"]>;
|
|
2
|
+
export declare const CommentTypeSchema: z.ZodEnum<["field_changed", "note", "crud"]>;
|
|
3
3
|
export type CommentType = z.infer<typeof CommentTypeSchema>;
|
|
4
|
+
export declare const CrudCommentSchemaActionSchema: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
5
|
+
export type CrudCommentSchemaAction = z.infer<typeof CrudCommentSchemaActionSchema>;
|
|
6
|
+
export declare const CRUD_COMMENT_ACTION_OPTIONS_ICONS: Readonly<{
|
|
7
|
+
archived: "IconCircleDashedMinus";
|
|
8
|
+
create: "IconCircleDashed";
|
|
9
|
+
delete: "IconCircleDashedX";
|
|
10
|
+
restored: "IconCircleDashedLetterR";
|
|
11
|
+
update: "IconCircleDashedLetterU";
|
|
12
|
+
}>;
|
|
4
13
|
export declare const NoteCommentSchema: z.ZodObject<{
|
|
5
14
|
_id: z.ZodOptional<z.ZodString>;
|
|
6
15
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -68,6 +77,35 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
|
|
|
68
77
|
metadata?: Record<string, unknown> | null | undefined;
|
|
69
78
|
prev_value?: any;
|
|
70
79
|
}>;
|
|
80
|
+
export declare const CrudCommentSchema: z.ZodObject<{
|
|
81
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
83
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
84
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
85
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
86
|
+
type: z.ZodLiteral<"crud">;
|
|
87
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
created_at: number & {
|
|
90
|
+
__brand: "UnixTimestamp";
|
|
91
|
+
};
|
|
92
|
+
updated_at: number & {
|
|
93
|
+
__brand: "UnixTimestamp";
|
|
94
|
+
};
|
|
95
|
+
type: "crud";
|
|
96
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
97
|
+
_id?: string | undefined;
|
|
98
|
+
created_by?: string | undefined;
|
|
99
|
+
updated_by?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
created_at: number;
|
|
102
|
+
updated_at: number;
|
|
103
|
+
type: "crud";
|
|
104
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
105
|
+
_id?: string | undefined;
|
|
106
|
+
created_by?: string | undefined;
|
|
107
|
+
updated_by?: string | undefined;
|
|
108
|
+
}>;
|
|
71
109
|
export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
72
110
|
_id: z.ZodOptional<z.ZodString>;
|
|
73
111
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -133,6 +171,34 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
133
171
|
curr_value?: any;
|
|
134
172
|
metadata?: Record<string, unknown> | null | undefined;
|
|
135
173
|
prev_value?: any;
|
|
174
|
+
}>, z.ZodObject<{
|
|
175
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
176
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
177
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
178
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
179
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
180
|
+
type: z.ZodLiteral<"crud">;
|
|
181
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
created_at: number & {
|
|
184
|
+
__brand: "UnixTimestamp";
|
|
185
|
+
};
|
|
186
|
+
updated_at: number & {
|
|
187
|
+
__brand: "UnixTimestamp";
|
|
188
|
+
};
|
|
189
|
+
type: "crud";
|
|
190
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
191
|
+
_id?: string | undefined;
|
|
192
|
+
created_by?: string | undefined;
|
|
193
|
+
updated_by?: string | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
created_at: number;
|
|
196
|
+
updated_at: number;
|
|
197
|
+
type: "crud";
|
|
198
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
199
|
+
_id?: string | undefined;
|
|
200
|
+
created_by?: string | undefined;
|
|
201
|
+
updated_by?: string | undefined;
|
|
136
202
|
}>]>, {
|
|
137
203
|
created_at: number & {
|
|
138
204
|
__brand: "UnixTimestamp";
|
|
@@ -160,6 +226,18 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
160
226
|
curr_value?: any;
|
|
161
227
|
metadata?: Record<string, unknown> | null | undefined;
|
|
162
228
|
prev_value?: any;
|
|
229
|
+
} | {
|
|
230
|
+
created_at: number & {
|
|
231
|
+
__brand: "UnixTimestamp";
|
|
232
|
+
};
|
|
233
|
+
updated_at: number & {
|
|
234
|
+
__brand: "UnixTimestamp";
|
|
235
|
+
};
|
|
236
|
+
type: "crud";
|
|
237
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
238
|
+
_id?: string | undefined;
|
|
239
|
+
created_by?: string | undefined;
|
|
240
|
+
updated_by?: string | undefined;
|
|
163
241
|
}, {
|
|
164
242
|
created_at: number;
|
|
165
243
|
updated_at: number;
|
|
@@ -179,9 +257,18 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
179
257
|
curr_value?: any;
|
|
180
258
|
metadata?: Record<string, unknown> | null | undefined;
|
|
181
259
|
prev_value?: any;
|
|
260
|
+
} | {
|
|
261
|
+
created_at: number;
|
|
262
|
+
updated_at: number;
|
|
263
|
+
type: "crud";
|
|
264
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
265
|
+
_id?: string | undefined;
|
|
266
|
+
created_by?: string | undefined;
|
|
267
|
+
updated_by?: string | undefined;
|
|
182
268
|
}>;
|
|
183
269
|
export type Comment = z.infer<typeof CommentSchema>;
|
|
184
270
|
export type NoteComment = z.infer<typeof NoteCommentSchema>;
|
|
271
|
+
export type CrudComment = z.infer<typeof CrudCommentSchema>;
|
|
185
272
|
export interface FieldChangedComment<T, K extends keyof T> extends Omit<z.infer<typeof FieldChangedCommentSchema>, 'curr_value' | 'field' | 'prev_value'> {
|
|
186
273
|
curr_value: T[K];
|
|
187
274
|
field: K;
|
|
@@ -2,8 +2,17 @@
|
|
|
2
2
|
import { DocumentSchema } from './document.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
/* * */
|
|
5
|
-
const COMMENT_TYPE_OPTIONS = ['field_changed', 'note'];
|
|
5
|
+
const COMMENT_TYPE_OPTIONS = ['field_changed', 'note', 'crud'];
|
|
6
6
|
export const CommentTypeSchema = z.enum(COMMENT_TYPE_OPTIONS);
|
|
7
|
+
const CRUD_COMMENT_ACTION_OPTIONS = ['create', 'update', 'delete', 'archived', 'restored'];
|
|
8
|
+
export const CrudCommentSchemaActionSchema = z.enum(CRUD_COMMENT_ACTION_OPTIONS);
|
|
9
|
+
export const CRUD_COMMENT_ACTION_OPTIONS_ICONS = Object.freeze({
|
|
10
|
+
archived: 'IconCircleDashedMinus',
|
|
11
|
+
create: 'IconCircleDashed',
|
|
12
|
+
delete: 'IconCircleDashedX',
|
|
13
|
+
restored: 'IconCircleDashedLetterR',
|
|
14
|
+
update: 'IconCircleDashedLetterU',
|
|
15
|
+
});
|
|
7
16
|
/* * */
|
|
8
17
|
export const NoteCommentSchema = DocumentSchema.extend({
|
|
9
18
|
message: z.string(),
|
|
@@ -16,6 +25,10 @@ export const FieldChangedCommentSchema = DocumentSchema.extend({
|
|
|
16
25
|
prev_value: z.any(),
|
|
17
26
|
type: z.literal(CommentTypeSchema.enum.field_changed),
|
|
18
27
|
}).partial({ _id: true });
|
|
28
|
+
export const CrudCommentSchema = DocumentSchema.extend({
|
|
29
|
+
action: CrudCommentSchemaActionSchema,
|
|
30
|
+
type: z.literal(CommentTypeSchema.enum.crud),
|
|
31
|
+
}).partial({ _id: true });
|
|
19
32
|
/* * */
|
|
20
33
|
function validateFieldChanged(data, ctx) {
|
|
21
34
|
if (data.curr_value === data.prev_value) {
|
|
@@ -31,6 +44,7 @@ export const CommentSchema = z
|
|
|
31
44
|
.discriminatedUnion('type', [
|
|
32
45
|
NoteCommentSchema,
|
|
33
46
|
FieldChangedCommentSchema,
|
|
47
|
+
CrudCommentSchema,
|
|
34
48
|
])
|
|
35
49
|
.superRefine((data, ctx) => {
|
|
36
50
|
if (data.type === CommentTypeSchema.enum.field_changed) {
|
|
@@ -4,12 +4,12 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
4
4
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
5
5
|
scope: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
scope: string;
|
|
8
7
|
action: string;
|
|
8
|
+
scope: string;
|
|
9
9
|
resource?: Record<string, any> | null | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
scope: string;
|
|
12
11
|
action: string;
|
|
12
|
+
scope: string;
|
|
13
13
|
resource?: Record<string, any> | null | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export interface Permission<T> {
|
package/dist/src/auth/role.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
12
12
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
13
13
|
scope: z.ZodString;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
scope: string;
|
|
16
15
|
action: string;
|
|
16
|
+
scope: string;
|
|
17
17
|
resource?: Record<string, any> | null | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
scope: string;
|
|
20
19
|
action: string;
|
|
20
|
+
scope: string;
|
|
21
21
|
resource?: Record<string, any> | null | undefined;
|
|
22
22
|
}>, "many">;
|
|
23
23
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -30,8 +30,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
30
30
|
};
|
|
31
31
|
name: string;
|
|
32
32
|
permissions: {
|
|
33
|
-
scope: string;
|
|
34
33
|
action: string;
|
|
34
|
+
scope: string;
|
|
35
35
|
resource?: Record<string, any> | null | undefined;
|
|
36
36
|
}[];
|
|
37
37
|
created_by?: string | undefined;
|
|
@@ -42,8 +42,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
42
42
|
updated_at: number;
|
|
43
43
|
name: string;
|
|
44
44
|
permissions: {
|
|
45
|
-
scope: string;
|
|
46
45
|
action: string;
|
|
46
|
+
scope: string;
|
|
47
47
|
resource?: Record<string, any> | null | undefined;
|
|
48
48
|
}[];
|
|
49
49
|
created_by?: string | undefined;
|
|
@@ -62,19 +62,19 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
62
62
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
63
63
|
scope: z.ZodString;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
scope: string;
|
|
66
65
|
action: string;
|
|
66
|
+
scope: string;
|
|
67
67
|
resource?: Record<string, any> | null | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
scope: string;
|
|
70
69
|
action: string;
|
|
70
|
+
scope: string;
|
|
71
71
|
resource?: Record<string, any> | null | undefined;
|
|
72
72
|
}>, "many">;
|
|
73
73
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
74
74
|
name: string;
|
|
75
75
|
permissions: {
|
|
76
|
-
scope: string;
|
|
77
76
|
action: string;
|
|
77
|
+
scope: string;
|
|
78
78
|
resource?: Record<string, any> | null | undefined;
|
|
79
79
|
}[];
|
|
80
80
|
created_by?: string | undefined;
|
|
@@ -82,8 +82,8 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
82
82
|
}, {
|
|
83
83
|
name: string;
|
|
84
84
|
permissions: {
|
|
85
|
-
scope: string;
|
|
86
85
|
action: string;
|
|
86
|
+
scope: string;
|
|
87
87
|
resource?: Record<string, any> | null | undefined;
|
|
88
88
|
}[];
|
|
89
89
|
created_by?: string | undefined;
|
|
@@ -97,28 +97,28 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
97
97
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
98
98
|
scope: z.ZodString;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
scope: string;
|
|
101
100
|
action: string;
|
|
101
|
+
scope: string;
|
|
102
102
|
resource?: Record<string, any> | null | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
scope: string;
|
|
105
104
|
action: string;
|
|
105
|
+
scope: string;
|
|
106
106
|
resource?: Record<string, any> | null | undefined;
|
|
107
107
|
}>, "many">>;
|
|
108
108
|
}, "strict", z.ZodTypeAny, {
|
|
109
109
|
updated_by?: string | undefined;
|
|
110
110
|
name?: string | undefined;
|
|
111
111
|
permissions?: {
|
|
112
|
-
scope: string;
|
|
113
112
|
action: string;
|
|
113
|
+
scope: string;
|
|
114
114
|
resource?: Record<string, any> | null | undefined;
|
|
115
115
|
}[] | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
updated_by?: string | undefined;
|
|
118
118
|
name?: string | undefined;
|
|
119
119
|
permissions?: {
|
|
120
|
-
scope: string;
|
|
121
120
|
action: string;
|
|
121
|
+
scope: string;
|
|
122
122
|
resource?: Record<string, any> | null | undefined;
|
|
123
123
|
}[] | undefined;
|
|
124
124
|
}>;
|
package/dist/src/auth/user.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
22
22
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
23
23
|
scope: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
scope: string;
|
|
26
25
|
action: string;
|
|
26
|
+
scope: string;
|
|
27
27
|
resource?: Record<string, any> | null | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
scope: string;
|
|
30
29
|
action: string;
|
|
30
|
+
scope: string;
|
|
31
31
|
resource?: Record<string, any> | null | undefined;
|
|
32
32
|
}>, "many">;
|
|
33
33
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -46,8 +46,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
46
46
|
};
|
|
47
47
|
email: string;
|
|
48
48
|
permissions: {
|
|
49
|
-
scope: string;
|
|
50
49
|
action: string;
|
|
50
|
+
scope: string;
|
|
51
51
|
resource?: Record<string, any> | null | undefined;
|
|
52
52
|
}[];
|
|
53
53
|
first_name: string;
|
|
@@ -71,8 +71,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
71
71
|
updated_at: number;
|
|
72
72
|
email: string;
|
|
73
73
|
permissions: {
|
|
74
|
-
scope: string;
|
|
75
74
|
action: string;
|
|
75
|
+
scope: string;
|
|
76
76
|
resource?: Record<string, any> | null | undefined;
|
|
77
77
|
}[];
|
|
78
78
|
first_name: string;
|
|
@@ -111,12 +111,12 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
111
111
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
112
112
|
scope: z.ZodString;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
scope: string;
|
|
115
114
|
action: string;
|
|
115
|
+
scope: string;
|
|
116
116
|
resource?: Record<string, any> | null | undefined;
|
|
117
117
|
}, {
|
|
118
|
-
scope: string;
|
|
119
118
|
action: string;
|
|
119
|
+
scope: string;
|
|
120
120
|
resource?: Record<string, any> | null | undefined;
|
|
121
121
|
}>, "many">;
|
|
122
122
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -128,8 +128,8 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
128
128
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
129
129
|
email: string;
|
|
130
130
|
permissions: {
|
|
131
|
-
scope: string;
|
|
132
131
|
action: string;
|
|
132
|
+
scope: string;
|
|
133
133
|
resource?: Record<string, any> | null | undefined;
|
|
134
134
|
}[];
|
|
135
135
|
first_name: string;
|
|
@@ -150,8 +150,8 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
150
150
|
}, {
|
|
151
151
|
email: string;
|
|
152
152
|
permissions: {
|
|
153
|
-
scope: string;
|
|
154
153
|
action: string;
|
|
154
|
+
scope: string;
|
|
155
155
|
resource?: Record<string, any> | null | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
first_name: string;
|
|
@@ -179,12 +179,12 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
179
179
|
resource: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
180
180
|
scope: z.ZodString;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
scope: string;
|
|
183
182
|
action: string;
|
|
183
|
+
scope: string;
|
|
184
184
|
resource?: Record<string, any> | null | undefined;
|
|
185
185
|
}, {
|
|
186
|
-
scope: string;
|
|
187
186
|
action: string;
|
|
187
|
+
scope: string;
|
|
188
188
|
resource?: Record<string, any> | null | undefined;
|
|
189
189
|
}>, "many">>;
|
|
190
190
|
avatar: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -204,8 +204,8 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
204
204
|
phone?: string | null | undefined;
|
|
205
205
|
email?: string | undefined;
|
|
206
206
|
permissions?: {
|
|
207
|
-
scope: string;
|
|
208
207
|
action: string;
|
|
208
|
+
scope: string;
|
|
209
209
|
resource?: Record<string, any> | null | undefined;
|
|
210
210
|
}[] | undefined;
|
|
211
211
|
avatar?: string | null | undefined;
|
|
@@ -225,8 +225,8 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
225
225
|
phone?: string | null | undefined;
|
|
226
226
|
email?: string | undefined;
|
|
227
227
|
permissions?: {
|
|
228
|
-
scope: string;
|
|
229
228
|
action: string;
|
|
229
|
+
scope: string;
|
|
230
230
|
resource?: Record<string, any> | null | undefined;
|
|
231
231
|
}[] | undefined;
|
|
232
232
|
avatar?: string | null | undefined;
|
|
@@ -126,6 +126,34 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
126
126
|
curr_value?: any;
|
|
127
127
|
metadata?: Record<string, unknown> | null | undefined;
|
|
128
128
|
prev_value?: any;
|
|
129
|
+
}>, z.ZodObject<{
|
|
130
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
131
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
132
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
133
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
134
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
135
|
+
type: z.ZodLiteral<"crud">;
|
|
136
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
created_at: number & {
|
|
139
|
+
__brand: "UnixTimestamp";
|
|
140
|
+
};
|
|
141
|
+
updated_at: number & {
|
|
142
|
+
__brand: "UnixTimestamp";
|
|
143
|
+
};
|
|
144
|
+
type: "crud";
|
|
145
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
146
|
+
_id?: string | undefined;
|
|
147
|
+
created_by?: string | undefined;
|
|
148
|
+
updated_by?: string | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
created_at: number;
|
|
151
|
+
updated_at: number;
|
|
152
|
+
type: "crud";
|
|
153
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
154
|
+
_id?: string | undefined;
|
|
155
|
+
created_by?: string | undefined;
|
|
156
|
+
updated_by?: string | undefined;
|
|
129
157
|
}>]>, {
|
|
130
158
|
created_at: number & {
|
|
131
159
|
__brand: "UnixTimestamp";
|
|
@@ -153,6 +181,18 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
153
181
|
curr_value?: any;
|
|
154
182
|
metadata?: Record<string, unknown> | null | undefined;
|
|
155
183
|
prev_value?: any;
|
|
184
|
+
} | {
|
|
185
|
+
created_at: number & {
|
|
186
|
+
__brand: "UnixTimestamp";
|
|
187
|
+
};
|
|
188
|
+
updated_at: number & {
|
|
189
|
+
__brand: "UnixTimestamp";
|
|
190
|
+
};
|
|
191
|
+
type: "crud";
|
|
192
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
193
|
+
_id?: string | undefined;
|
|
194
|
+
created_by?: string | undefined;
|
|
195
|
+
updated_by?: string | undefined;
|
|
156
196
|
}, {
|
|
157
197
|
created_at: number;
|
|
158
198
|
updated_at: number;
|
|
@@ -172,6 +212,14 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
172
212
|
curr_value?: any;
|
|
173
213
|
metadata?: Record<string, unknown> | null | undefined;
|
|
174
214
|
prev_value?: any;
|
|
215
|
+
} | {
|
|
216
|
+
created_at: number;
|
|
217
|
+
updated_at: number;
|
|
218
|
+
type: "crud";
|
|
219
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
220
|
+
_id?: string | undefined;
|
|
221
|
+
created_by?: string | undefined;
|
|
222
|
+
updated_by?: string | undefined;
|
|
175
223
|
}>, "many">>;
|
|
176
224
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
177
225
|
justification: z.ZodNullable<z.ZodObject<Omit<{
|
|
@@ -247,6 +295,18 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
247
295
|
curr_value?: any;
|
|
248
296
|
metadata?: Record<string, unknown> | null | undefined;
|
|
249
297
|
prev_value?: any;
|
|
298
|
+
} | {
|
|
299
|
+
created_at: number & {
|
|
300
|
+
__brand: "UnixTimestamp";
|
|
301
|
+
};
|
|
302
|
+
updated_at: number & {
|
|
303
|
+
__brand: "UnixTimestamp";
|
|
304
|
+
};
|
|
305
|
+
type: "crud";
|
|
306
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
307
|
+
_id?: string | undefined;
|
|
308
|
+
created_by?: string | undefined;
|
|
309
|
+
updated_by?: string | undefined;
|
|
250
310
|
})[];
|
|
251
311
|
justification: {
|
|
252
312
|
created_at: number & {
|
|
@@ -305,6 +365,14 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
305
365
|
curr_value?: any;
|
|
306
366
|
metadata?: Record<string, unknown> | null | undefined;
|
|
307
367
|
prev_value?: any;
|
|
368
|
+
} | {
|
|
369
|
+
created_at: number;
|
|
370
|
+
updated_at: number;
|
|
371
|
+
type: "crud";
|
|
372
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
373
|
+
_id?: string | undefined;
|
|
374
|
+
created_by?: string | undefined;
|
|
375
|
+
updated_by?: string | undefined;
|
|
308
376
|
})[] | undefined;
|
|
309
377
|
}>;
|
|
310
378
|
export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
@@ -390,6 +458,34 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
390
458
|
curr_value?: any;
|
|
391
459
|
metadata?: Record<string, unknown> | null | undefined;
|
|
392
460
|
prev_value?: any;
|
|
461
|
+
}>, z.ZodObject<{
|
|
462
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
463
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
464
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
465
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
466
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
467
|
+
type: z.ZodLiteral<"crud">;
|
|
468
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
|
470
|
+
created_at: number & {
|
|
471
|
+
__brand: "UnixTimestamp";
|
|
472
|
+
};
|
|
473
|
+
updated_at: number & {
|
|
474
|
+
__brand: "UnixTimestamp";
|
|
475
|
+
};
|
|
476
|
+
type: "crud";
|
|
477
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
478
|
+
_id?: string | undefined;
|
|
479
|
+
created_by?: string | undefined;
|
|
480
|
+
updated_by?: string | undefined;
|
|
481
|
+
}, {
|
|
482
|
+
created_at: number;
|
|
483
|
+
updated_at: number;
|
|
484
|
+
type: "crud";
|
|
485
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
486
|
+
_id?: string | undefined;
|
|
487
|
+
created_by?: string | undefined;
|
|
488
|
+
updated_by?: string | undefined;
|
|
393
489
|
}>]>, {
|
|
394
490
|
created_at: number & {
|
|
395
491
|
__brand: "UnixTimestamp";
|
|
@@ -417,6 +513,18 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
417
513
|
curr_value?: any;
|
|
418
514
|
metadata?: Record<string, unknown> | null | undefined;
|
|
419
515
|
prev_value?: any;
|
|
516
|
+
} | {
|
|
517
|
+
created_at: number & {
|
|
518
|
+
__brand: "UnixTimestamp";
|
|
519
|
+
};
|
|
520
|
+
updated_at: number & {
|
|
521
|
+
__brand: "UnixTimestamp";
|
|
522
|
+
};
|
|
523
|
+
type: "crud";
|
|
524
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
525
|
+
_id?: string | undefined;
|
|
526
|
+
created_by?: string | undefined;
|
|
527
|
+
updated_by?: string | undefined;
|
|
420
528
|
}, {
|
|
421
529
|
created_at: number;
|
|
422
530
|
updated_at: number;
|
|
@@ -436,6 +544,14 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
436
544
|
curr_value?: any;
|
|
437
545
|
metadata?: Record<string, unknown> | null | undefined;
|
|
438
546
|
prev_value?: any;
|
|
547
|
+
} | {
|
|
548
|
+
created_at: number;
|
|
549
|
+
updated_at: number;
|
|
550
|
+
type: "crud";
|
|
551
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
552
|
+
_id?: string | undefined;
|
|
553
|
+
created_by?: string | undefined;
|
|
554
|
+
updated_by?: string | undefined;
|
|
439
555
|
}>, "many">>;
|
|
440
556
|
justification: z.ZodNullable<z.ZodObject<Omit<{
|
|
441
557
|
_id: z.ZodString;
|
|
@@ -503,6 +619,18 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
503
619
|
curr_value?: any;
|
|
504
620
|
metadata?: Record<string, unknown> | null | undefined;
|
|
505
621
|
prev_value?: any;
|
|
622
|
+
} | {
|
|
623
|
+
created_at: number & {
|
|
624
|
+
__brand: "UnixTimestamp";
|
|
625
|
+
};
|
|
626
|
+
updated_at: number & {
|
|
627
|
+
__brand: "UnixTimestamp";
|
|
628
|
+
};
|
|
629
|
+
type: "crud";
|
|
630
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
631
|
+
_id?: string | undefined;
|
|
632
|
+
created_by?: string | undefined;
|
|
633
|
+
updated_by?: string | undefined;
|
|
506
634
|
})[];
|
|
507
635
|
justification: {
|
|
508
636
|
created_at: number & {
|
|
@@ -560,6 +688,14 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
560
688
|
curr_value?: any;
|
|
561
689
|
metadata?: Record<string, unknown> | null | undefined;
|
|
562
690
|
prev_value?: any;
|
|
691
|
+
} | {
|
|
692
|
+
created_at: number;
|
|
693
|
+
updated_at: number;
|
|
694
|
+
type: "crud";
|
|
695
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
696
|
+
_id?: string | undefined;
|
|
697
|
+
created_by?: string | undefined;
|
|
698
|
+
updated_by?: string | undefined;
|
|
563
699
|
})[] | undefined;
|
|
564
700
|
}>;
|
|
565
701
|
export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
@@ -643,6 +779,34 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
643
779
|
curr_value?: any;
|
|
644
780
|
metadata?: Record<string, unknown> | null | undefined;
|
|
645
781
|
prev_value?: any;
|
|
782
|
+
}>, z.ZodObject<{
|
|
783
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
784
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
785
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
786
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
787
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
788
|
+
type: z.ZodLiteral<"crud">;
|
|
789
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
790
|
+
}, "strip", z.ZodTypeAny, {
|
|
791
|
+
created_at: number & {
|
|
792
|
+
__brand: "UnixTimestamp";
|
|
793
|
+
};
|
|
794
|
+
updated_at: number & {
|
|
795
|
+
__brand: "UnixTimestamp";
|
|
796
|
+
};
|
|
797
|
+
type: "crud";
|
|
798
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
799
|
+
_id?: string | undefined;
|
|
800
|
+
created_by?: string | undefined;
|
|
801
|
+
updated_by?: string | undefined;
|
|
802
|
+
}, {
|
|
803
|
+
created_at: number;
|
|
804
|
+
updated_at: number;
|
|
805
|
+
type: "crud";
|
|
806
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
807
|
+
_id?: string | undefined;
|
|
808
|
+
created_by?: string | undefined;
|
|
809
|
+
updated_by?: string | undefined;
|
|
646
810
|
}>]>, {
|
|
647
811
|
created_at: number & {
|
|
648
812
|
__brand: "UnixTimestamp";
|
|
@@ -670,6 +834,18 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
670
834
|
curr_value?: any;
|
|
671
835
|
metadata?: Record<string, unknown> | null | undefined;
|
|
672
836
|
prev_value?: any;
|
|
837
|
+
} | {
|
|
838
|
+
created_at: number & {
|
|
839
|
+
__brand: "UnixTimestamp";
|
|
840
|
+
};
|
|
841
|
+
updated_at: number & {
|
|
842
|
+
__brand: "UnixTimestamp";
|
|
843
|
+
};
|
|
844
|
+
type: "crud";
|
|
845
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
846
|
+
_id?: string | undefined;
|
|
847
|
+
created_by?: string | undefined;
|
|
848
|
+
updated_by?: string | undefined;
|
|
673
849
|
}, {
|
|
674
850
|
created_at: number;
|
|
675
851
|
updated_at: number;
|
|
@@ -689,6 +865,14 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
689
865
|
curr_value?: any;
|
|
690
866
|
metadata?: Record<string, unknown> | null | undefined;
|
|
691
867
|
prev_value?: any;
|
|
868
|
+
} | {
|
|
869
|
+
created_at: number;
|
|
870
|
+
updated_at: number;
|
|
871
|
+
type: "crud";
|
|
872
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
873
|
+
_id?: string | undefined;
|
|
874
|
+
created_by?: string | undefined;
|
|
875
|
+
updated_by?: string | undefined;
|
|
692
876
|
}>, "many">>>;
|
|
693
877
|
justification: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
|
|
694
878
|
_id: z.ZodString;
|
|
@@ -759,6 +943,18 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
759
943
|
curr_value?: any;
|
|
760
944
|
metadata?: Record<string, unknown> | null | undefined;
|
|
761
945
|
prev_value?: any;
|
|
946
|
+
} | {
|
|
947
|
+
created_at: number & {
|
|
948
|
+
__brand: "UnixTimestamp";
|
|
949
|
+
};
|
|
950
|
+
updated_at: number & {
|
|
951
|
+
__brand: "UnixTimestamp";
|
|
952
|
+
};
|
|
953
|
+
type: "crud";
|
|
954
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
955
|
+
_id?: string | undefined;
|
|
956
|
+
created_by?: string | undefined;
|
|
957
|
+
updated_by?: string | undefined;
|
|
762
958
|
})[] | undefined;
|
|
763
959
|
justification?: {
|
|
764
960
|
created_at: number & {
|
|
@@ -803,6 +999,14 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
803
999
|
curr_value?: any;
|
|
804
1000
|
metadata?: Record<string, unknown> | null | undefined;
|
|
805
1001
|
prev_value?: any;
|
|
1002
|
+
} | {
|
|
1003
|
+
created_at: number;
|
|
1004
|
+
updated_at: number;
|
|
1005
|
+
type: "crud";
|
|
1006
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
1007
|
+
_id?: string | undefined;
|
|
1008
|
+
created_by?: string | undefined;
|
|
1009
|
+
updated_by?: string | undefined;
|
|
806
1010
|
})[] | undefined;
|
|
807
1011
|
justification?: {
|
|
808
1012
|
created_at: number;
|
|
@@ -270,7 +270,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
270
270
|
event_type: number;
|
|
271
271
|
product_id: string;
|
|
272
272
|
units_qty: number | null;
|
|
273
|
-
validation_status: 0 | 1 | 2 | 3 |
|
|
273
|
+
validation_status: 0 | 1 | 2 | 3 | 5 | 4 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
274
274
|
created_by?: string | undefined;
|
|
275
275
|
updated_by?: string | undefined;
|
|
276
276
|
}, {
|
|
@@ -296,7 +296,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
296
296
|
event_type: number;
|
|
297
297
|
product_id: string;
|
|
298
298
|
units_qty: number | null;
|
|
299
|
-
validation_status: 0 | 1 | 2 | 3 |
|
|
299
|
+
validation_status: 0 | 1 | 2 | 3 | 5 | 4 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
300
300
|
created_by?: string | undefined;
|
|
301
301
|
updated_by?: string | undefined;
|
|
302
302
|
}>;
|
|
@@ -422,7 +422,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
422
422
|
event_type?: number | undefined;
|
|
423
423
|
product_id?: string | undefined;
|
|
424
424
|
units_qty?: number | null | undefined;
|
|
425
|
-
validation_status?: 0 | 1 | 2 | 3 |
|
|
425
|
+
validation_status?: 0 | 1 | 2 | 3 | 5 | 4 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
|
|
426
426
|
}, {
|
|
427
427
|
_id?: string | undefined;
|
|
428
428
|
created_at?: number | undefined;
|
|
@@ -448,7 +448,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
448
448
|
event_type?: number | undefined;
|
|
449
449
|
product_id?: string | undefined;
|
|
450
450
|
units_qty?: number | null | undefined;
|
|
451
|
-
validation_status?: 0 | 1 | 2 | 3 |
|
|
451
|
+
validation_status?: 0 | 1 | 2 | 3 | 5 | 4 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
|
|
452
452
|
}>;
|
|
453
453
|
/**
|
|
454
454
|
* APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
|
|
@@ -462,4 +462,4 @@ export type UpdateSimplifiedApexValidationDto = z.infer<typeof UpdateSimplifiedA
|
|
|
462
462
|
/**
|
|
463
463
|
* Validation statuses that are considered valid for the card holder to travel.
|
|
464
464
|
*/
|
|
465
|
-
export declare const ALLOWED_VALIDATION_STATUSES: (0 |
|
|
465
|
+
export declare const ALLOWED_VALIDATION_STATUSES: (0 | 5 | 4 | 6)[];
|
package/dist/src/stop.d.ts
CHANGED
|
@@ -129,6 +129,34 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
129
129
|
curr_value?: any;
|
|
130
130
|
metadata?: Record<string, unknown> | null | undefined;
|
|
131
131
|
prev_value?: any;
|
|
132
|
+
}>, z.ZodObject<{
|
|
133
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
134
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
135
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
136
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
137
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
138
|
+
type: z.ZodLiteral<"crud">;
|
|
139
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
created_at: number & {
|
|
142
|
+
__brand: "UnixTimestamp";
|
|
143
|
+
};
|
|
144
|
+
updated_at: number & {
|
|
145
|
+
__brand: "UnixTimestamp";
|
|
146
|
+
};
|
|
147
|
+
type: "crud";
|
|
148
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
149
|
+
_id?: string | undefined;
|
|
150
|
+
created_by?: string | undefined;
|
|
151
|
+
updated_by?: string | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
created_at: number;
|
|
154
|
+
updated_at: number;
|
|
155
|
+
type: "crud";
|
|
156
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
157
|
+
_id?: string | undefined;
|
|
158
|
+
created_by?: string | undefined;
|
|
159
|
+
updated_by?: string | undefined;
|
|
132
160
|
}>]>, {
|
|
133
161
|
created_at: number & {
|
|
134
162
|
__brand: "UnixTimestamp";
|
|
@@ -156,6 +184,18 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
156
184
|
curr_value?: any;
|
|
157
185
|
metadata?: Record<string, unknown> | null | undefined;
|
|
158
186
|
prev_value?: any;
|
|
187
|
+
} | {
|
|
188
|
+
created_at: number & {
|
|
189
|
+
__brand: "UnixTimestamp";
|
|
190
|
+
};
|
|
191
|
+
updated_at: number & {
|
|
192
|
+
__brand: "UnixTimestamp";
|
|
193
|
+
};
|
|
194
|
+
type: "crud";
|
|
195
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
196
|
+
_id?: string | undefined;
|
|
197
|
+
created_by?: string | undefined;
|
|
198
|
+
updated_by?: string | undefined;
|
|
159
199
|
}, {
|
|
160
200
|
created_at: number;
|
|
161
201
|
updated_at: number;
|
|
@@ -175,6 +215,14 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
175
215
|
curr_value?: any;
|
|
176
216
|
metadata?: Record<string, unknown> | null | undefined;
|
|
177
217
|
prev_value?: any;
|
|
218
|
+
} | {
|
|
219
|
+
created_at: number;
|
|
220
|
+
updated_at: number;
|
|
221
|
+
type: "crud";
|
|
222
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
223
|
+
_id?: string | undefined;
|
|
224
|
+
created_by?: string | undefined;
|
|
225
|
+
updated_by?: string | undefined;
|
|
178
226
|
}>, "many">;
|
|
179
227
|
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
228
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -220,6 +268,18 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
220
268
|
curr_value?: any;
|
|
221
269
|
metadata?: Record<string, unknown> | null | undefined;
|
|
222
270
|
prev_value?: any;
|
|
271
|
+
} | {
|
|
272
|
+
created_at: number & {
|
|
273
|
+
__brand: "UnixTimestamp";
|
|
274
|
+
};
|
|
275
|
+
updated_at: number & {
|
|
276
|
+
__brand: "UnixTimestamp";
|
|
277
|
+
};
|
|
278
|
+
type: "crud";
|
|
279
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
280
|
+
_id?: string | undefined;
|
|
281
|
+
created_by?: string | undefined;
|
|
282
|
+
updated_by?: string | undefined;
|
|
223
283
|
})[];
|
|
224
284
|
is_archived: boolean;
|
|
225
285
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
@@ -287,6 +347,14 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
287
347
|
curr_value?: any;
|
|
288
348
|
metadata?: Record<string, unknown> | null | undefined;
|
|
289
349
|
prev_value?: any;
|
|
350
|
+
} | {
|
|
351
|
+
created_at: number;
|
|
352
|
+
updated_at: number;
|
|
353
|
+
type: "crud";
|
|
354
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
355
|
+
_id?: string | undefined;
|
|
356
|
+
created_by?: string | undefined;
|
|
357
|
+
updated_by?: string | undefined;
|
|
290
358
|
})[];
|
|
291
359
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
292
360
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
@@ -496,6 +564,34 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
496
564
|
curr_value?: any;
|
|
497
565
|
metadata?: Record<string, unknown> | null | undefined;
|
|
498
566
|
prev_value?: any;
|
|
567
|
+
}>, z.ZodObject<{
|
|
568
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
569
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
570
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
571
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
572
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
573
|
+
type: z.ZodLiteral<"crud">;
|
|
574
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
575
|
+
}, "strip", z.ZodTypeAny, {
|
|
576
|
+
created_at: number & {
|
|
577
|
+
__brand: "UnixTimestamp";
|
|
578
|
+
};
|
|
579
|
+
updated_at: number & {
|
|
580
|
+
__brand: "UnixTimestamp";
|
|
581
|
+
};
|
|
582
|
+
type: "crud";
|
|
583
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
584
|
+
_id?: string | undefined;
|
|
585
|
+
created_by?: string | undefined;
|
|
586
|
+
updated_by?: string | undefined;
|
|
587
|
+
}, {
|
|
588
|
+
created_at: number;
|
|
589
|
+
updated_at: number;
|
|
590
|
+
type: "crud";
|
|
591
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
592
|
+
_id?: string | undefined;
|
|
593
|
+
created_by?: string | undefined;
|
|
594
|
+
updated_by?: string | undefined;
|
|
499
595
|
}>]>, {
|
|
500
596
|
created_at: number & {
|
|
501
597
|
__brand: "UnixTimestamp";
|
|
@@ -523,6 +619,18 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
523
619
|
curr_value?: any;
|
|
524
620
|
metadata?: Record<string, unknown> | null | undefined;
|
|
525
621
|
prev_value?: any;
|
|
622
|
+
} | {
|
|
623
|
+
created_at: number & {
|
|
624
|
+
__brand: "UnixTimestamp";
|
|
625
|
+
};
|
|
626
|
+
updated_at: number & {
|
|
627
|
+
__brand: "UnixTimestamp";
|
|
628
|
+
};
|
|
629
|
+
type: "crud";
|
|
630
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
631
|
+
_id?: string | undefined;
|
|
632
|
+
created_by?: string | undefined;
|
|
633
|
+
updated_by?: string | undefined;
|
|
526
634
|
}, {
|
|
527
635
|
created_at: number;
|
|
528
636
|
updated_at: number;
|
|
@@ -542,6 +650,14 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
542
650
|
curr_value?: any;
|
|
543
651
|
metadata?: Record<string, unknown> | null | undefined;
|
|
544
652
|
prev_value?: any;
|
|
653
|
+
} | {
|
|
654
|
+
created_at: number;
|
|
655
|
+
updated_at: number;
|
|
656
|
+
type: "crud";
|
|
657
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
658
|
+
_id?: string | undefined;
|
|
659
|
+
created_by?: string | undefined;
|
|
660
|
+
updated_by?: string | undefined;
|
|
545
661
|
}>, "many">;
|
|
546
662
|
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
547
663
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
@@ -580,6 +696,18 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
580
696
|
curr_value?: any;
|
|
581
697
|
metadata?: Record<string, unknown> | null | undefined;
|
|
582
698
|
prev_value?: any;
|
|
699
|
+
} | {
|
|
700
|
+
created_at: number & {
|
|
701
|
+
__brand: "UnixTimestamp";
|
|
702
|
+
};
|
|
703
|
+
updated_at: number & {
|
|
704
|
+
__brand: "UnixTimestamp";
|
|
705
|
+
};
|
|
706
|
+
type: "crud";
|
|
707
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
708
|
+
_id?: string | undefined;
|
|
709
|
+
created_by?: string | undefined;
|
|
710
|
+
updated_by?: string | undefined;
|
|
583
711
|
})[];
|
|
584
712
|
is_archived: boolean;
|
|
585
713
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
@@ -644,6 +772,14 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
644
772
|
curr_value?: any;
|
|
645
773
|
metadata?: Record<string, unknown> | null | undefined;
|
|
646
774
|
prev_value?: any;
|
|
775
|
+
} | {
|
|
776
|
+
created_at: number;
|
|
777
|
+
updated_at: number;
|
|
778
|
+
type: "crud";
|
|
779
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
780
|
+
_id?: string | undefined;
|
|
781
|
+
created_by?: string | undefined;
|
|
782
|
+
updated_by?: string | undefined;
|
|
647
783
|
})[];
|
|
648
784
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
649
785
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
@@ -762,6 +898,34 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
762
898
|
curr_value?: any;
|
|
763
899
|
metadata?: Record<string, unknown> | null | undefined;
|
|
764
900
|
prev_value?: any;
|
|
901
|
+
}>, z.ZodObject<{
|
|
902
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
903
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
904
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
905
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
906
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
907
|
+
type: z.ZodLiteral<"crud">;
|
|
908
|
+
action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
909
|
+
}, "strip", z.ZodTypeAny, {
|
|
910
|
+
created_at: number & {
|
|
911
|
+
__brand: "UnixTimestamp";
|
|
912
|
+
};
|
|
913
|
+
updated_at: number & {
|
|
914
|
+
__brand: "UnixTimestamp";
|
|
915
|
+
};
|
|
916
|
+
type: "crud";
|
|
917
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
918
|
+
_id?: string | undefined;
|
|
919
|
+
created_by?: string | undefined;
|
|
920
|
+
updated_by?: string | undefined;
|
|
921
|
+
}, {
|
|
922
|
+
created_at: number;
|
|
923
|
+
updated_at: number;
|
|
924
|
+
type: "crud";
|
|
925
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
926
|
+
_id?: string | undefined;
|
|
927
|
+
created_by?: string | undefined;
|
|
928
|
+
updated_by?: string | undefined;
|
|
765
929
|
}>]>, {
|
|
766
930
|
created_at: number & {
|
|
767
931
|
__brand: "UnixTimestamp";
|
|
@@ -789,6 +953,18 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
789
953
|
curr_value?: any;
|
|
790
954
|
metadata?: Record<string, unknown> | null | undefined;
|
|
791
955
|
prev_value?: any;
|
|
956
|
+
} | {
|
|
957
|
+
created_at: number & {
|
|
958
|
+
__brand: "UnixTimestamp";
|
|
959
|
+
};
|
|
960
|
+
updated_at: number & {
|
|
961
|
+
__brand: "UnixTimestamp";
|
|
962
|
+
};
|
|
963
|
+
type: "crud";
|
|
964
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
965
|
+
_id?: string | undefined;
|
|
966
|
+
created_by?: string | undefined;
|
|
967
|
+
updated_by?: string | undefined;
|
|
792
968
|
}, {
|
|
793
969
|
created_at: number;
|
|
794
970
|
updated_at: number;
|
|
@@ -808,6 +984,14 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
808
984
|
curr_value?: any;
|
|
809
985
|
metadata?: Record<string, unknown> | null | undefined;
|
|
810
986
|
prev_value?: any;
|
|
987
|
+
} | {
|
|
988
|
+
created_at: number;
|
|
989
|
+
updated_at: number;
|
|
990
|
+
type: "crud";
|
|
991
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
992
|
+
_id?: string | undefined;
|
|
993
|
+
created_by?: string | undefined;
|
|
994
|
+
updated_by?: string | undefined;
|
|
811
995
|
}>, "many">>;
|
|
812
996
|
is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
813
997
|
jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
|
|
@@ -880,6 +1064,18 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
880
1064
|
curr_value?: any;
|
|
881
1065
|
metadata?: Record<string, unknown> | null | undefined;
|
|
882
1066
|
prev_value?: any;
|
|
1067
|
+
} | {
|
|
1068
|
+
created_at: number & {
|
|
1069
|
+
__brand: "UnixTimestamp";
|
|
1070
|
+
};
|
|
1071
|
+
updated_at: number & {
|
|
1072
|
+
__brand: "UnixTimestamp";
|
|
1073
|
+
};
|
|
1074
|
+
type: "crud";
|
|
1075
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
1076
|
+
_id?: string | undefined;
|
|
1077
|
+
created_by?: string | undefined;
|
|
1078
|
+
updated_by?: string | undefined;
|
|
883
1079
|
})[] | undefined;
|
|
884
1080
|
is_archived?: boolean | undefined;
|
|
885
1081
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|
|
@@ -944,6 +1140,14 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
944
1140
|
curr_value?: any;
|
|
945
1141
|
metadata?: Record<string, unknown> | null | undefined;
|
|
946
1142
|
prev_value?: any;
|
|
1143
|
+
} | {
|
|
1144
|
+
created_at: number;
|
|
1145
|
+
updated_at: number;
|
|
1146
|
+
type: "crud";
|
|
1147
|
+
action: "create" | "update" | "delete" | "archived" | "restored";
|
|
1148
|
+
_id?: string | undefined;
|
|
1149
|
+
created_by?: string | undefined;
|
|
1150
|
+
updated_by?: string | undefined;
|
|
947
1151
|
})[] | undefined;
|
|
948
1152
|
is_archived?: boolean | undefined;
|
|
949
1153
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|
package/package.json
CHANGED