@tmlmobilidade/types 20260513.1602.22 → 20260514.1347.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_common/status.d.ts +3 -0
- package/dist/_common/status.js +4 -0
- package/dist/auth/role.d.ts +30 -30
- package/dist/auth/simplified-user.d.ts +6 -6
- package/dist/auth/user.d.ts +46 -46
- package/dist/file-exports/base.d.ts +11 -11
- package/dist/file-exports/base.js +1 -1
- package/dist/file-exports/file-exports.d.ts +98 -0
- package/dist/file-exports/file-exports.js +2 -0
- package/dist/file-exports/index.d.ts +1 -0
- package/dist/file-exports/index.js +1 -0
- package/dist/file-exports/sams-analysis-export.d.ts +226 -0
- package/dist/file-exports/sams-analysis-export.js +34 -0
- package/dist/permissions/controller.d.ts +3 -3
- package/dist/permissions/controller.js +1 -0
- package/dist/permissions/index.d.ts +6 -6
- package/dist/permissions/stops.d.ts +3 -3
- package/dist/permissions/stops.js +1 -0
- package/dist/sams/batch-query.d.ts +24 -0
- package/dist/sams/batch-query.js +45 -0
- package/dist/sams/index.d.ts +3 -0
- package/dist/sams/index.js +3 -0
- package/dist/sams/sam-timeline-summary.d.ts +74 -0
- package/dist/sams/sam-timeline-summary.js +17 -0
- package/dist/sams/sam.d.ts +226 -24
- package/dist/sams/sam.js +4 -2
- package/dist/sams/timeline-month-gap-flags.d.ts +7 -0
- package/dist/sams/timeline-month-gap-flags.js +82 -0
- package/package.json +1 -1
package/dist/_common/status.d.ts
CHANGED
|
@@ -28,3 +28,6 @@ export type AvailabilityStatus = z.infer<typeof AvailabilityStatusSchema>;
|
|
|
28
28
|
export declare const ValidityStatusValues: readonly ["valid", "invalid", "unknown"];
|
|
29
29
|
export declare const ValidityStatusSchema: z.ZodEnum<["valid", "invalid", "unknown"]>;
|
|
30
30
|
export type ValidityStatus = z.infer<typeof ValidityStatusSchema>;
|
|
31
|
+
export declare const SystemStatusValues: readonly ["waiting", "incomplete", "complete", "error"];
|
|
32
|
+
export declare const SystemStatusSchema: z.ZodEnum<["waiting", "incomplete", "complete", "error"]>;
|
|
33
|
+
export type SystemStatus = z.infer<typeof SystemStatusSchema>;
|
package/dist/_common/status.js
CHANGED
|
@@ -40,3 +40,7 @@ export const AvailabilityStatusSchema = z.enum(AvailabilityStatusValues);
|
|
|
40
40
|
/* VALIDITY STATUS */
|
|
41
41
|
export const ValidityStatusValues = ['valid', 'invalid', 'unknown'];
|
|
42
42
|
export const ValidityStatusSchema = z.enum(ValidityStatusValues);
|
|
43
|
+
/* * */
|
|
44
|
+
/* SYSTEM STATUS */
|
|
45
|
+
export const SystemStatusValues = ['waiting', 'incomplete', 'complete', 'error'];
|
|
46
|
+
export const SystemStatusSchema = z.enum(SystemStatusValues);
|
package/dist/auth/role.d.ts
CHANGED
|
@@ -67,14 +67,14 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
67
67
|
agency_ids?: string[] | undefined;
|
|
68
68
|
} | undefined;
|
|
69
69
|
}>, z.ZodObject<{
|
|
70
|
-
action: z.ZodEnum<["read"]>;
|
|
70
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
71
71
|
scope: z.ZodLiteral<"sams">;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
scope: "sams";
|
|
74
|
-
action: "read";
|
|
74
|
+
action: "read" | "export";
|
|
75
75
|
}, {
|
|
76
76
|
scope: "sams";
|
|
77
|
-
action: "read";
|
|
77
|
+
action: "read" | "export";
|
|
78
78
|
}>, z.ZodObject<{
|
|
79
79
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
80
80
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -156,7 +156,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
156
156
|
scope: "roles";
|
|
157
157
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
158
158
|
}>, z.ZodObject<{
|
|
159
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
159
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
160
160
|
resources: z.ZodDefault<z.ZodObject<{
|
|
161
161
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
162
162
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -170,14 +170,14 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
170
170
|
scope: z.ZodLiteral<"stops">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
172
|
scope: "stops";
|
|
173
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
173
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
174
174
|
resources: {
|
|
175
175
|
municipality_ids: string[];
|
|
176
176
|
agency_ids: string[];
|
|
177
177
|
};
|
|
178
178
|
}, {
|
|
179
179
|
scope: "stops";
|
|
180
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
180
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
181
181
|
resources?: {
|
|
182
182
|
municipality_ids?: string[] | undefined;
|
|
183
183
|
agency_ids?: string[] | undefined;
|
|
@@ -419,7 +419,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
419
419
|
};
|
|
420
420
|
} | {
|
|
421
421
|
scope: "sams";
|
|
422
|
-
action: "read";
|
|
422
|
+
action: "read" | "export";
|
|
423
423
|
} | {
|
|
424
424
|
scope: "annotations";
|
|
425
425
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -482,7 +482,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
482
482
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
483
483
|
} | {
|
|
484
484
|
scope: "stops";
|
|
485
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
485
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
486
486
|
resources: {
|
|
487
487
|
municipality_ids: string[];
|
|
488
488
|
agency_ids: string[];
|
|
@@ -536,7 +536,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
536
536
|
} | undefined;
|
|
537
537
|
} | {
|
|
538
538
|
scope: "sams";
|
|
539
|
-
action: "read";
|
|
539
|
+
action: "read" | "export";
|
|
540
540
|
} | {
|
|
541
541
|
scope: "annotations";
|
|
542
542
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -599,7 +599,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
599
599
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
600
600
|
} | {
|
|
601
601
|
scope: "stops";
|
|
602
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
602
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
603
603
|
resources?: {
|
|
604
604
|
municipality_ids?: string[] | undefined;
|
|
605
605
|
agency_ids?: string[] | undefined;
|
|
@@ -695,14 +695,14 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
695
695
|
agency_ids?: string[] | undefined;
|
|
696
696
|
} | undefined;
|
|
697
697
|
}>, z.ZodObject<{
|
|
698
|
-
action: z.ZodEnum<["read"]>;
|
|
698
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
699
699
|
scope: z.ZodLiteral<"sams">;
|
|
700
700
|
}, "strip", z.ZodTypeAny, {
|
|
701
701
|
scope: "sams";
|
|
702
|
-
action: "read";
|
|
702
|
+
action: "read" | "export";
|
|
703
703
|
}, {
|
|
704
704
|
scope: "sams";
|
|
705
|
-
action: "read";
|
|
705
|
+
action: "read" | "export";
|
|
706
706
|
}>, z.ZodObject<{
|
|
707
707
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
708
708
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -784,7 +784,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
784
784
|
scope: "roles";
|
|
785
785
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
786
786
|
}>, z.ZodObject<{
|
|
787
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
787
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
788
788
|
resources: z.ZodDefault<z.ZodObject<{
|
|
789
789
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
790
790
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -798,14 +798,14 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
798
798
|
scope: z.ZodLiteral<"stops">;
|
|
799
799
|
}, "strip", z.ZodTypeAny, {
|
|
800
800
|
scope: "stops";
|
|
801
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
801
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
802
802
|
resources: {
|
|
803
803
|
municipality_ids: string[];
|
|
804
804
|
agency_ids: string[];
|
|
805
805
|
};
|
|
806
806
|
}, {
|
|
807
807
|
scope: "stops";
|
|
808
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
808
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
809
809
|
resources?: {
|
|
810
810
|
municipality_ids?: string[] | undefined;
|
|
811
811
|
agency_ids?: string[] | undefined;
|
|
@@ -1040,7 +1040,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
1040
1040
|
};
|
|
1041
1041
|
} | {
|
|
1042
1042
|
scope: "sams";
|
|
1043
|
-
action: "read";
|
|
1043
|
+
action: "read" | "export";
|
|
1044
1044
|
} | {
|
|
1045
1045
|
scope: "annotations";
|
|
1046
1046
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1103,7 +1103,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
1103
1103
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1104
1104
|
} | {
|
|
1105
1105
|
scope: "stops";
|
|
1106
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1106
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1107
1107
|
resources: {
|
|
1108
1108
|
municipality_ids: string[];
|
|
1109
1109
|
agency_ids: string[];
|
|
@@ -1154,7 +1154,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
1154
1154
|
} | undefined;
|
|
1155
1155
|
} | {
|
|
1156
1156
|
scope: "sams";
|
|
1157
|
-
action: "read";
|
|
1157
|
+
action: "read" | "export";
|
|
1158
1158
|
} | {
|
|
1159
1159
|
scope: "annotations";
|
|
1160
1160
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1217,7 +1217,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
1217
1217
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1218
1218
|
} | {
|
|
1219
1219
|
scope: "stops";
|
|
1220
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1220
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1221
1221
|
resources?: {
|
|
1222
1222
|
municipality_ids?: string[] | undefined;
|
|
1223
1223
|
agency_ids?: string[] | undefined;
|
|
@@ -1308,14 +1308,14 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1308
1308
|
agency_ids?: string[] | undefined;
|
|
1309
1309
|
} | undefined;
|
|
1310
1310
|
}>, z.ZodObject<{
|
|
1311
|
-
action: z.ZodEnum<["read"]>;
|
|
1311
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
1312
1312
|
scope: z.ZodLiteral<"sams">;
|
|
1313
1313
|
}, "strip", z.ZodTypeAny, {
|
|
1314
1314
|
scope: "sams";
|
|
1315
|
-
action: "read";
|
|
1315
|
+
action: "read" | "export";
|
|
1316
1316
|
}, {
|
|
1317
1317
|
scope: "sams";
|
|
1318
|
-
action: "read";
|
|
1318
|
+
action: "read" | "export";
|
|
1319
1319
|
}>, z.ZodObject<{
|
|
1320
1320
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
1321
1321
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -1397,7 +1397,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1397
1397
|
scope: "roles";
|
|
1398
1398
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1399
1399
|
}>, z.ZodObject<{
|
|
1400
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1400
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
1401
1401
|
resources: z.ZodDefault<z.ZodObject<{
|
|
1402
1402
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1403
1403
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1411,14 +1411,14 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1411
1411
|
scope: z.ZodLiteral<"stops">;
|
|
1412
1412
|
}, "strip", z.ZodTypeAny, {
|
|
1413
1413
|
scope: "stops";
|
|
1414
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1414
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1415
1415
|
resources: {
|
|
1416
1416
|
municipality_ids: string[];
|
|
1417
1417
|
agency_ids: string[];
|
|
1418
1418
|
};
|
|
1419
1419
|
}, {
|
|
1420
1420
|
scope: "stops";
|
|
1421
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1421
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1422
1422
|
resources?: {
|
|
1423
1423
|
municipality_ids?: string[] | undefined;
|
|
1424
1424
|
agency_ids?: string[] | undefined;
|
|
@@ -1653,7 +1653,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1653
1653
|
};
|
|
1654
1654
|
} | {
|
|
1655
1655
|
scope: "sams";
|
|
1656
|
-
action: "read";
|
|
1656
|
+
action: "read" | "export";
|
|
1657
1657
|
} | {
|
|
1658
1658
|
scope: "annotations";
|
|
1659
1659
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1716,7 +1716,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1716
1716
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1717
1717
|
} | {
|
|
1718
1718
|
scope: "stops";
|
|
1719
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1719
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1720
1720
|
resources: {
|
|
1721
1721
|
municipality_ids: string[];
|
|
1722
1722
|
agency_ids: string[];
|
|
@@ -1765,7 +1765,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1765
1765
|
} | undefined;
|
|
1766
1766
|
} | {
|
|
1767
1767
|
scope: "sams";
|
|
1768
|
-
action: "read";
|
|
1768
|
+
action: "read" | "export";
|
|
1769
1769
|
} | {
|
|
1770
1770
|
scope: "annotations";
|
|
1771
1771
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1828,7 +1828,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1828
1828
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1829
1829
|
} | {
|
|
1830
1830
|
scope: "stops";
|
|
1831
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1831
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1832
1832
|
resources?: {
|
|
1833
1833
|
municipality_ids?: string[] | undefined;
|
|
1834
1834
|
agency_ids?: string[] | undefined;
|
|
@@ -72,14 +72,14 @@ export declare const SimplifiedUserSchema: z.ZodObject<Pick<Omit<{
|
|
|
72
72
|
agency_ids?: string[] | undefined;
|
|
73
73
|
} | undefined;
|
|
74
74
|
}>, z.ZodObject<{
|
|
75
|
-
action: z.ZodEnum<["read"]>;
|
|
75
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
76
76
|
scope: z.ZodLiteral<"sams">;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
78
|
scope: "sams";
|
|
79
|
-
action: "read";
|
|
79
|
+
action: "read" | "export";
|
|
80
80
|
}, {
|
|
81
81
|
scope: "sams";
|
|
82
|
-
action: "read";
|
|
82
|
+
action: "read" | "export";
|
|
83
83
|
}>, z.ZodObject<{
|
|
84
84
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
85
85
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -161,7 +161,7 @@ export declare const SimplifiedUserSchema: z.ZodObject<Pick<Omit<{
|
|
|
161
161
|
scope: "roles";
|
|
162
162
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
163
163
|
}>, z.ZodObject<{
|
|
164
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
164
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
165
165
|
resources: z.ZodDefault<z.ZodObject<{
|
|
166
166
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
167
167
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -175,14 +175,14 @@ export declare const SimplifiedUserSchema: z.ZodObject<Pick<Omit<{
|
|
|
175
175
|
scope: z.ZodLiteral<"stops">;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
177
|
scope: "stops";
|
|
178
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
178
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
179
179
|
resources: {
|
|
180
180
|
municipality_ids: string[];
|
|
181
181
|
agency_ids: string[];
|
|
182
182
|
};
|
|
183
183
|
}, {
|
|
184
184
|
scope: "stops";
|
|
185
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
185
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
186
186
|
resources?: {
|
|
187
187
|
municipality_ids?: string[] | undefined;
|
|
188
188
|
agency_ids?: string[] | undefined;
|
package/dist/auth/user.d.ts
CHANGED
|
@@ -74,14 +74,14 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
74
74
|
agency_ids?: string[] | undefined;
|
|
75
75
|
} | undefined;
|
|
76
76
|
}>, z.ZodObject<{
|
|
77
|
-
action: z.ZodEnum<["read"]>;
|
|
77
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
78
78
|
scope: z.ZodLiteral<"sams">;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
80
|
scope: "sams";
|
|
81
|
-
action: "read";
|
|
81
|
+
action: "read" | "export";
|
|
82
82
|
}, {
|
|
83
83
|
scope: "sams";
|
|
84
|
-
action: "read";
|
|
84
|
+
action: "read" | "export";
|
|
85
85
|
}>, z.ZodObject<{
|
|
86
86
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
87
87
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -163,7 +163,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
163
163
|
scope: "roles";
|
|
164
164
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
165
165
|
}>, z.ZodObject<{
|
|
166
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
166
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
167
167
|
resources: z.ZodDefault<z.ZodObject<{
|
|
168
168
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
169
169
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -177,14 +177,14 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
177
177
|
scope: z.ZodLiteral<"stops">;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
179
|
scope: "stops";
|
|
180
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
180
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
181
181
|
resources: {
|
|
182
182
|
municipality_ids: string[];
|
|
183
183
|
agency_ids: string[];
|
|
184
184
|
};
|
|
185
185
|
}, {
|
|
186
186
|
scope: "stops";
|
|
187
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
187
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
188
188
|
resources?: {
|
|
189
189
|
municipality_ids?: string[] | undefined;
|
|
190
190
|
agency_ids?: string[] | undefined;
|
|
@@ -433,7 +433,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
433
433
|
};
|
|
434
434
|
} | {
|
|
435
435
|
scope: "sams";
|
|
436
|
-
action: "read";
|
|
436
|
+
action: "read" | "export";
|
|
437
437
|
} | {
|
|
438
438
|
scope: "annotations";
|
|
439
439
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -496,7 +496,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
496
496
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
497
497
|
} | {
|
|
498
498
|
scope: "stops";
|
|
499
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
499
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
500
500
|
resources: {
|
|
501
501
|
municipality_ids: string[];
|
|
502
502
|
agency_ids: string[];
|
|
@@ -564,7 +564,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
564
564
|
} | undefined;
|
|
565
565
|
} | {
|
|
566
566
|
scope: "sams";
|
|
567
|
-
action: "read";
|
|
567
|
+
action: "read" | "export";
|
|
568
568
|
} | {
|
|
569
569
|
scope: "annotations";
|
|
570
570
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -627,7 +627,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
|
|
|
627
627
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
628
628
|
} | {
|
|
629
629
|
scope: "stops";
|
|
630
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
630
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
631
631
|
resources?: {
|
|
632
632
|
municipality_ids?: string[] | undefined;
|
|
633
633
|
agency_ids?: string[] | undefined;
|
|
@@ -735,14 +735,14 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
735
735
|
agency_ids?: string[] | undefined;
|
|
736
736
|
} | undefined;
|
|
737
737
|
}>, z.ZodObject<{
|
|
738
|
-
action: z.ZodEnum<["read"]>;
|
|
738
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
739
739
|
scope: z.ZodLiteral<"sams">;
|
|
740
740
|
}, "strip", z.ZodTypeAny, {
|
|
741
741
|
scope: "sams";
|
|
742
|
-
action: "read";
|
|
742
|
+
action: "read" | "export";
|
|
743
743
|
}, {
|
|
744
744
|
scope: "sams";
|
|
745
|
-
action: "read";
|
|
745
|
+
action: "read" | "export";
|
|
746
746
|
}>, z.ZodObject<{
|
|
747
747
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
748
748
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -824,7 +824,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
824
824
|
scope: "roles";
|
|
825
825
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
826
826
|
}>, z.ZodObject<{
|
|
827
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
827
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
828
828
|
resources: z.ZodDefault<z.ZodObject<{
|
|
829
829
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
830
830
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -838,14 +838,14 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
838
838
|
scope: z.ZodLiteral<"stops">;
|
|
839
839
|
}, "strip", z.ZodTypeAny, {
|
|
840
840
|
scope: "stops";
|
|
841
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
841
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
842
842
|
resources: {
|
|
843
843
|
municipality_ids: string[];
|
|
844
844
|
agency_ids: string[];
|
|
845
845
|
};
|
|
846
846
|
}, {
|
|
847
847
|
scope: "stops";
|
|
848
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
848
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
849
849
|
resources?: {
|
|
850
850
|
municipality_ids?: string[] | undefined;
|
|
851
851
|
agency_ids?: string[] | undefined;
|
|
@@ -1087,7 +1087,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
1087
1087
|
};
|
|
1088
1088
|
} | {
|
|
1089
1089
|
scope: "sams";
|
|
1090
|
-
action: "read";
|
|
1090
|
+
action: "read" | "export";
|
|
1091
1091
|
} | {
|
|
1092
1092
|
scope: "annotations";
|
|
1093
1093
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1150,7 +1150,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
1150
1150
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1151
1151
|
} | {
|
|
1152
1152
|
scope: "stops";
|
|
1153
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1153
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1154
1154
|
resources: {
|
|
1155
1155
|
municipality_ids: string[];
|
|
1156
1156
|
agency_ids: string[];
|
|
@@ -1215,7 +1215,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
1215
1215
|
} | undefined;
|
|
1216
1216
|
} | {
|
|
1217
1217
|
scope: "sams";
|
|
1218
|
-
action: "read";
|
|
1218
|
+
action: "read" | "export";
|
|
1219
1219
|
} | {
|
|
1220
1220
|
scope: "annotations";
|
|
1221
1221
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1278,7 +1278,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
|
|
|
1278
1278
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1279
1279
|
} | {
|
|
1280
1280
|
scope: "stops";
|
|
1281
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1281
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1282
1282
|
resources?: {
|
|
1283
1283
|
municipality_ids?: string[] | undefined;
|
|
1284
1284
|
agency_ids?: string[] | undefined;
|
|
@@ -1377,14 +1377,14 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1377
1377
|
agency_ids?: string[] | undefined;
|
|
1378
1378
|
} | undefined;
|
|
1379
1379
|
}>, z.ZodObject<{
|
|
1380
|
-
action: z.ZodEnum<["read"]>;
|
|
1380
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
1381
1381
|
scope: z.ZodLiteral<"sams">;
|
|
1382
1382
|
}, "strip", z.ZodTypeAny, {
|
|
1383
1383
|
scope: "sams";
|
|
1384
|
-
action: "read";
|
|
1384
|
+
action: "read" | "export";
|
|
1385
1385
|
}, {
|
|
1386
1386
|
scope: "sams";
|
|
1387
|
-
action: "read";
|
|
1387
|
+
action: "read" | "export";
|
|
1388
1388
|
}>, z.ZodObject<{
|
|
1389
1389
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
1390
1390
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -1466,7 +1466,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1466
1466
|
scope: "roles";
|
|
1467
1467
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1468
1468
|
}>, z.ZodObject<{
|
|
1469
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1469
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
1470
1470
|
resources: z.ZodDefault<z.ZodObject<{
|
|
1471
1471
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1472
1472
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1480,14 +1480,14 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1480
1480
|
scope: z.ZodLiteral<"stops">;
|
|
1481
1481
|
}, "strip", z.ZodTypeAny, {
|
|
1482
1482
|
scope: "stops";
|
|
1483
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1483
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1484
1484
|
resources: {
|
|
1485
1485
|
municipality_ids: string[];
|
|
1486
1486
|
agency_ids: string[];
|
|
1487
1487
|
};
|
|
1488
1488
|
}, {
|
|
1489
1489
|
scope: "stops";
|
|
1490
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1490
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1491
1491
|
resources?: {
|
|
1492
1492
|
municipality_ids?: string[] | undefined;
|
|
1493
1493
|
agency_ids?: string[] | undefined;
|
|
@@ -1731,7 +1731,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1731
1731
|
};
|
|
1732
1732
|
} | {
|
|
1733
1733
|
scope: "sams";
|
|
1734
|
-
action: "read";
|
|
1734
|
+
action: "read" | "export";
|
|
1735
1735
|
} | {
|
|
1736
1736
|
scope: "annotations";
|
|
1737
1737
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1794,7 +1794,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1794
1794
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1795
1795
|
} | {
|
|
1796
1796
|
scope: "stops";
|
|
1797
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1797
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1798
1798
|
resources: {
|
|
1799
1799
|
municipality_ids: string[];
|
|
1800
1800
|
agency_ids: string[];
|
|
@@ -1852,7 +1852,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1852
1852
|
} | undefined;
|
|
1853
1853
|
} | {
|
|
1854
1854
|
scope: "sams";
|
|
1855
|
-
action: "read";
|
|
1855
|
+
action: "read" | "export";
|
|
1856
1856
|
} | {
|
|
1857
1857
|
scope: "annotations";
|
|
1858
1858
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -1915,7 +1915,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
1915
1915
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1916
1916
|
} | {
|
|
1917
1917
|
scope: "stops";
|
|
1918
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1918
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
1919
1919
|
resources?: {
|
|
1920
1920
|
municipality_ids?: string[] | undefined;
|
|
1921
1921
|
agency_ids?: string[] | undefined;
|
|
@@ -2024,14 +2024,14 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2024
2024
|
agency_ids?: string[] | undefined;
|
|
2025
2025
|
} | undefined;
|
|
2026
2026
|
}>, z.ZodObject<{
|
|
2027
|
-
action: z.ZodEnum<["read"]>;
|
|
2027
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
2028
2028
|
scope: z.ZodLiteral<"sams">;
|
|
2029
2029
|
}, "strip", z.ZodTypeAny, {
|
|
2030
2030
|
scope: "sams";
|
|
2031
|
-
action: "read";
|
|
2031
|
+
action: "read" | "export";
|
|
2032
2032
|
}, {
|
|
2033
2033
|
scope: "sams";
|
|
2034
|
-
action: "read";
|
|
2034
|
+
action: "read" | "export";
|
|
2035
2035
|
}>, z.ZodObject<{
|
|
2036
2036
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
2037
2037
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -2113,7 +2113,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2113
2113
|
scope: "roles";
|
|
2114
2114
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2115
2115
|
}>, z.ZodObject<{
|
|
2116
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
2116
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
2117
2117
|
resources: z.ZodDefault<z.ZodObject<{
|
|
2118
2118
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2119
2119
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2127,14 +2127,14 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2127
2127
|
scope: z.ZodLiteral<"stops">;
|
|
2128
2128
|
}, "strip", z.ZodTypeAny, {
|
|
2129
2129
|
scope: "stops";
|
|
2130
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2130
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
2131
2131
|
resources: {
|
|
2132
2132
|
municipality_ids: string[];
|
|
2133
2133
|
agency_ids: string[];
|
|
2134
2134
|
};
|
|
2135
2135
|
}, {
|
|
2136
2136
|
scope: "stops";
|
|
2137
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2137
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
2138
2138
|
resources?: {
|
|
2139
2139
|
municipality_ids?: string[] | undefined;
|
|
2140
2140
|
agency_ids?: string[] | undefined;
|
|
@@ -2383,7 +2383,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2383
2383
|
};
|
|
2384
2384
|
} | {
|
|
2385
2385
|
scope: "sams";
|
|
2386
|
-
action: "read";
|
|
2386
|
+
action: "read" | "export";
|
|
2387
2387
|
} | {
|
|
2388
2388
|
scope: "annotations";
|
|
2389
2389
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -2446,7 +2446,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2446
2446
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2447
2447
|
} | {
|
|
2448
2448
|
scope: "stops";
|
|
2449
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2449
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
2450
2450
|
resources: {
|
|
2451
2451
|
municipality_ids: string[];
|
|
2452
2452
|
agency_ids: string[];
|
|
@@ -2511,7 +2511,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2511
2511
|
} | undefined;
|
|
2512
2512
|
} | {
|
|
2513
2513
|
scope: "sams";
|
|
2514
|
-
action: "read";
|
|
2514
|
+
action: "read" | "export";
|
|
2515
2515
|
} | {
|
|
2516
2516
|
scope: "annotations";
|
|
2517
2517
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
@@ -2574,7 +2574,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
|
|
|
2574
2574
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2575
2575
|
} | {
|
|
2576
2576
|
scope: "stops";
|
|
2577
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2577
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
2578
2578
|
resources?: {
|
|
2579
2579
|
municipality_ids?: string[] | undefined;
|
|
2580
2580
|
agency_ids?: string[] | undefined;
|
|
@@ -2690,14 +2690,14 @@ export declare const UserDisplaySchema: z.ZodObject<Pick<Omit<{
|
|
|
2690
2690
|
agency_ids?: string[] | undefined;
|
|
2691
2691
|
} | undefined;
|
|
2692
2692
|
}>, z.ZodObject<{
|
|
2693
|
-
action: z.ZodEnum<["read"]>;
|
|
2693
|
+
action: z.ZodEnum<["read", "export"]>;
|
|
2694
2694
|
scope: z.ZodLiteral<"sams">;
|
|
2695
2695
|
}, "strip", z.ZodTypeAny, {
|
|
2696
2696
|
scope: "sams";
|
|
2697
|
-
action: "read";
|
|
2697
|
+
action: "read" | "export";
|
|
2698
2698
|
}, {
|
|
2699
2699
|
scope: "sams";
|
|
2700
|
-
action: "read";
|
|
2700
|
+
action: "read" | "export";
|
|
2701
2701
|
}>, z.ZodObject<{
|
|
2702
2702
|
action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>;
|
|
2703
2703
|
resources: z.ZodDefault<z.ZodObject<{
|
|
@@ -2779,7 +2779,7 @@ export declare const UserDisplaySchema: z.ZodObject<Pick<Omit<{
|
|
|
2779
2779
|
scope: "roles";
|
|
2780
2780
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2781
2781
|
}>, z.ZodObject<{
|
|
2782
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
2782
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "edit_coordinates"]>;
|
|
2783
2783
|
resources: z.ZodDefault<z.ZodObject<{
|
|
2784
2784
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2785
2785
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2793,14 +2793,14 @@ export declare const UserDisplaySchema: z.ZodObject<Pick<Omit<{
|
|
|
2793
2793
|
scope: z.ZodLiteral<"stops">;
|
|
2794
2794
|
}, "strip", z.ZodTypeAny, {
|
|
2795
2795
|
scope: "stops";
|
|
2796
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2796
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
2797
2797
|
resources: {
|
|
2798
2798
|
municipality_ids: string[];
|
|
2799
2799
|
agency_ids: string[];
|
|
2800
2800
|
};
|
|
2801
2801
|
}, {
|
|
2802
2802
|
scope: "stops";
|
|
2803
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
2803
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
|
|
2804
2804
|
resources?: {
|
|
2805
2805
|
municipality_ids?: string[] | undefined;
|
|
2806
2806
|
agency_ids?: string[] | undefined;
|