@tmlmobilidade/types 20260519.2046.53 → 20260525.1333.38

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.
Files changed (41) hide show
  1. package/dist/auth/role.d.ts +15 -15
  2. package/dist/auth/simplified-user.d.ts +3 -3
  3. package/dist/auth/user.d.ts +23 -23
  4. package/dist/file-exports/base.d.ts +11 -11
  5. package/dist/file-exports/base.js +1 -1
  6. package/dist/file-exports/file-exports.d.ts +118 -0
  7. package/dist/file-exports/file-exports.js +2 -0
  8. package/dist/file-exports/index.d.ts +1 -0
  9. package/dist/file-exports/index.js +1 -0
  10. package/dist/file-exports/stop-export.d.ts +364 -0
  11. package/dist/file-exports/stop-export.js +91 -0
  12. package/dist/gtfs-tml/routes.d.ts +2 -2
  13. package/dist/gtfs-tml/stops.d.ts +22 -22
  14. package/dist/hub/index.d.ts +1 -0
  15. package/dist/hub/index.js +1 -0
  16. package/dist/hub/lines.d.ts +16 -0
  17. package/dist/hub/lines.js +2 -0
  18. package/dist/hub/patterns.d.ts +43 -0
  19. package/dist/hub/patterns.js +2 -0
  20. package/dist/hub/shapes.d.ts +4 -0
  21. package/dist/hub/shapes.js +2 -0
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/offer/pattern.d.ts +336 -336
  25. package/dist/permissions/index.d.ts +3 -3
  26. package/dist/permissions/stops.d.ts +3 -3
  27. package/dist/permissions/stops.js +1 -0
  28. package/dist/plans/plan.d.ts +198 -0
  29. package/dist/plans/plan.js +2 -0
  30. package/dist/stops/stop.d.ts +96 -96
  31. package/dist/vehicle-events/raw/cp/v1.d.ts +16 -16
  32. package/dist/vehicle-events/raw/cp/v1.js +1 -1
  33. package/dist/vehicle-events/raw/index.d.ts +1 -1
  34. package/dist/vehicle-events/raw/index.js +1 -1
  35. package/dist/vehicle-events/raw/{cap → mobi}/v1.d.ts +7 -7
  36. package/dist/vehicle-events/raw/{cap → mobi}/v1.js +4 -4
  37. package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +12 -12
  38. package/dist/vehicle-events/raw/raw-vehicle-event.js +2 -2
  39. package/package.json +2 -2
  40. /package/dist/vehicle-events/raw/{cap → mobi}/index.d.ts +0 -0
  41. /package/dist/vehicle-events/raw/{cap → mobi}/index.js +0 -0
@@ -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", "edit_coordinates"]>;
159
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
173
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
180
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
181
181
  resources?: {
182
182
  municipality_ids?: string[] | undefined;
183
183
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
485
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
486
486
  resources: {
487
487
  municipality_ids: string[];
488
488
  agency_ids: string[];
@@ -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" | "edit_coordinates";
602
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
603
603
  resources?: {
604
604
  municipality_ids?: string[] | undefined;
605
605
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
787
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
801
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
808
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
809
809
  resources?: {
810
810
  municipality_ids?: string[] | undefined;
811
811
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
1106
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1107
1107
  resources: {
1108
1108
  municipality_ids: string[];
1109
1109
  agency_ids: string[];
@@ -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" | "edit_coordinates";
1220
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1221
1221
  resources?: {
1222
1222
  municipality_ids?: string[] | undefined;
1223
1223
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
1400
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
1414
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
1421
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1422
1422
  resources?: {
1423
1423
  municipality_ids?: string[] | undefined;
1424
1424
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
1719
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1720
1720
  resources: {
1721
1721
  municipality_ids: string[];
1722
1722
  agency_ids: string[];
@@ -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" | "edit_coordinates";
1831
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1832
1832
  resources?: {
1833
1833
  municipality_ids?: string[] | undefined;
1834
1834
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
164
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
178
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
185
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
186
186
  resources?: {
187
187
  municipality_ids?: string[] | undefined;
188
188
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
166
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
180
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
187
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
188
188
  resources?: {
189
189
  municipality_ids?: string[] | undefined;
190
190
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
499
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
500
500
  resources: {
501
501
  municipality_ids: string[];
502
502
  agency_ids: string[];
@@ -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" | "edit_coordinates";
630
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
631
631
  resources?: {
632
632
  municipality_ids?: string[] | undefined;
633
633
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
827
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
841
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
848
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
849
849
  resources?: {
850
850
  municipality_ids?: string[] | undefined;
851
851
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
1153
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1154
1154
  resources: {
1155
1155
  municipality_ids: string[];
1156
1156
  agency_ids: string[];
@@ -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" | "edit_coordinates";
1281
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1282
1282
  resources?: {
1283
1283
  municipality_ids?: string[] | undefined;
1284
1284
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
1469
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
1483
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
1490
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1491
1491
  resources?: {
1492
1492
  municipality_ids?: string[] | undefined;
1493
1493
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
1797
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1798
1798
  resources: {
1799
1799
  municipality_ids: string[];
1800
1800
  agency_ids: string[];
@@ -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" | "edit_coordinates";
1918
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
1919
1919
  resources?: {
1920
1920
  municipality_ids?: string[] | undefined;
1921
1921
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
2116
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
2130
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
2137
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
2138
2138
  resources?: {
2139
2139
  municipality_ids?: string[] | undefined;
2140
2140
  agency_ids?: string[] | undefined;
@@ -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" | "edit_coordinates";
2449
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
2450
2450
  resources: {
2451
2451
  municipality_ids: string[];
2452
2452
  agency_ids: string[];
@@ -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" | "edit_coordinates";
2577
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
2578
2578
  resources?: {
2579
2579
  municipality_ids?: string[] | undefined;
2580
2580
  agency_ids?: string[] | undefined;
@@ -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", "edit_coordinates"]>;
2782
+ action: z.ZodEnum<["create", "delete", "read", "lock", "update", "export", "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" | "edit_coordinates";
2796
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "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" | "edit_coordinates";
2803
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
2804
2804
  resources?: {
2805
2805
  municipality_ids?: string[] | undefined;
2806
2806
  agency_ids?: string[] | undefined;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const FileExportTypes: readonly ["gtfs", "ride", "sams_analysis"];
3
- export declare const FileExportTypeSchema: z.ZodEnum<["gtfs", "ride", "sams_analysis"]>;
2
+ export declare const FileExportTypes: readonly ["gtfs", "ride", "sams_analysis", "stop"];
3
+ export declare const FileExportTypeSchema: z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop"]>;
4
4
  export type FileExportType = z.infer<typeof FileExportTypeSchema>;
5
5
  export declare const FileExportBaseSchema: z.ZodObject<Omit<{
6
6
  _id: z.ZodString;
@@ -14,7 +14,7 @@ export declare const FileExportBaseSchema: z.ZodObject<Omit<{
14
14
  file_name: z.ZodString;
15
15
  processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
16
16
  properties: z.ZodRecord<z.ZodString, z.ZodAny>;
17
- type: z.ZodEnum<["gtfs", "ride", "sams_analysis"]>;
17
+ type: z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop"]>;
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  _id: string;
20
20
  created_at: number & {
@@ -24,7 +24,7 @@ export declare const FileExportBaseSchema: z.ZodObject<Omit<{
24
24
  updated_at: number & {
25
25
  __brand: "UnixTimestamp";
26
26
  };
27
- type: "gtfs" | "ride" | "sams_analysis";
27
+ type: "gtfs" | "ride" | "sams_analysis" | "stop";
28
28
  file_name: string;
29
29
  processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
30
30
  properties: Record<string, any>;
@@ -34,7 +34,7 @@ export declare const FileExportBaseSchema: z.ZodObject<Omit<{
34
34
  _id: string;
35
35
  created_at: number;
36
36
  updated_at: number;
37
- type: "gtfs" | "ride" | "sams_analysis";
37
+ type: "gtfs" | "ride" | "sams_analysis" | "stop";
38
38
  file_name: string;
39
39
  processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
40
40
  properties: Record<string, any>;
@@ -45,7 +45,7 @@ export declare const FileExportBaseSchema: z.ZodObject<Omit<{
45
45
  export declare const CreateFileExportSchema: z.ZodObject<{
46
46
  created_by: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
47
47
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
48
- type: z.ZodOptional<z.ZodEnum<["gtfs", "ride", "sams_analysis"]>>;
48
+ type: z.ZodOptional<z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop"]>>;
49
49
  file_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
50
50
  file_name: z.ZodOptional<z.ZodString>;
51
51
  processing_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
@@ -53,7 +53,7 @@ export declare const CreateFileExportSchema: z.ZodObject<{
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  created_by?: string | null | undefined;
55
55
  updated_by?: string | undefined;
56
- type?: "gtfs" | "ride" | "sams_analysis" | undefined;
56
+ type?: "gtfs" | "ride" | "sams_analysis" | "stop" | undefined;
57
57
  file_id?: string | null | undefined;
58
58
  file_name?: string | undefined;
59
59
  processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
@@ -61,7 +61,7 @@ export declare const CreateFileExportSchema: z.ZodObject<{
61
61
  }, {
62
62
  created_by?: string | null | undefined;
63
63
  updated_by?: string | undefined;
64
- type?: "gtfs" | "ride" | "sams_analysis" | undefined;
64
+ type?: "gtfs" | "ride" | "sams_analysis" | "stop" | undefined;
65
65
  file_id?: string | null | undefined;
66
66
  file_name?: string | undefined;
67
67
  processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
@@ -70,7 +70,7 @@ export declare const CreateFileExportSchema: z.ZodObject<{
70
70
  export declare const UpdateFileExportSchema: z.ZodObject<{
71
71
  created_by: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
72
72
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
73
- type: z.ZodOptional<z.ZodOptional<z.ZodEnum<["gtfs", "ride", "sams_analysis"]>>>;
73
+ type: z.ZodOptional<z.ZodOptional<z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop"]>>>;
74
74
  file_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
75
75
  file_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
76
76
  processing_status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
@@ -78,7 +78,7 @@ export declare const UpdateFileExportSchema: z.ZodObject<{
78
78
  }, "strip", z.ZodTypeAny, {
79
79
  created_by?: string | null | undefined;
80
80
  updated_by?: string | undefined;
81
- type?: "gtfs" | "ride" | "sams_analysis" | undefined;
81
+ type?: "gtfs" | "ride" | "sams_analysis" | "stop" | undefined;
82
82
  file_id?: string | null | undefined;
83
83
  file_name?: string | undefined;
84
84
  processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
@@ -86,7 +86,7 @@ export declare const UpdateFileExportSchema: z.ZodObject<{
86
86
  }, {
87
87
  created_by?: string | null | undefined;
88
88
  updated_by?: string | undefined;
89
- type?: "gtfs" | "ride" | "sams_analysis" | undefined;
89
+ type?: "gtfs" | "ride" | "sams_analysis" | "stop" | undefined;
90
90
  file_id?: string | null | undefined;
91
91
  file_name?: string | undefined;
92
92
  processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
@@ -3,7 +3,7 @@ import { DocumentSchema } from '../_common/document.js';
3
3
  import { ProcessingStatusSchema } from '../_common/status.js';
4
4
  import { z } from 'zod';
5
5
  /* * */
6
- export const FileExportTypes = ['gtfs', 'ride', 'sams_analysis'];
6
+ export const FileExportTypes = ['gtfs', 'ride', 'sams_analysis', 'stop'];
7
7
  export const FileExportTypeSchema = z.enum(FileExportTypes);
8
8
  /* * */
9
9
  export const FileExportBaseSchema = DocumentSchema
@@ -332,5 +332,123 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
332
332
  created_by?: string | null | undefined;
333
333
  updated_by?: string | undefined;
334
334
  file_id?: string | null | undefined;
335
+ }>, z.ZodObject<{
336
+ _id: z.ZodString;
337
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
338
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
339
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
340
+ updated_by: z.ZodOptional<z.ZodString>;
341
+ file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ file_name: z.ZodString;
343
+ processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
344
+ } & {
345
+ properties: z.ZodObject<{
346
+ connections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>>;
347
+ equipment: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>>;
348
+ facilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>>;
349
+ flags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
350
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
351
+ is_harmonized: z.ZodDefault<z.ZodBoolean>;
352
+ short_name: z.ZodString;
353
+ stop_id: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ short_name: string;
356
+ stop_id: string;
357
+ agency_ids: string[];
358
+ is_harmonized: boolean;
359
+ }, {
360
+ short_name: string;
361
+ stop_id: string;
362
+ agency_ids?: string[] | undefined;
363
+ is_harmonized?: boolean | undefined;
364
+ }>, "many">>>;
365
+ jurisdiction: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ip", "municipality", "other", "unknown"]>, "many">>>;
366
+ lifecycle_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>, "many">>>;
367
+ search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
368
+ stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ search?: string | null | undefined;
371
+ stop_ids?: number[] | null | undefined;
372
+ flags?: {
373
+ short_name: string;
374
+ stop_id: string;
375
+ agency_ids: string[];
376
+ is_harmonized: boolean;
377
+ }[] | null | undefined;
378
+ jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
379
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
380
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
381
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
382
+ lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
383
+ }, {
384
+ search?: string | null | undefined;
385
+ stop_ids?: number[] | null | undefined;
386
+ flags?: {
387
+ short_name: string;
388
+ stop_id: string;
389
+ agency_ids?: string[] | undefined;
390
+ is_harmonized?: boolean | undefined;
391
+ }[] | null | undefined;
392
+ jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
393
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
394
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
395
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
396
+ lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
397
+ }>;
398
+ type: z.ZodLiteral<"stop">;
399
+ }, "strip", z.ZodTypeAny, {
400
+ _id: string;
401
+ created_at: number & {
402
+ __brand: "UnixTimestamp";
403
+ };
404
+ created_by: string | null;
405
+ updated_at: number & {
406
+ __brand: "UnixTimestamp";
407
+ };
408
+ type: "stop";
409
+ file_name: string;
410
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
411
+ properties: {
412
+ search?: string | null | undefined;
413
+ stop_ids?: number[] | null | undefined;
414
+ flags?: {
415
+ short_name: string;
416
+ stop_id: string;
417
+ agency_ids: string[];
418
+ is_harmonized: boolean;
419
+ }[] | null | undefined;
420
+ jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
421
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
422
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
423
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
424
+ lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
425
+ };
426
+ updated_by?: string | undefined;
427
+ file_id?: string | null | undefined;
428
+ }, {
429
+ _id: string;
430
+ created_at: number;
431
+ updated_at: number;
432
+ type: "stop";
433
+ file_name: string;
434
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
435
+ properties: {
436
+ search?: string | null | undefined;
437
+ stop_ids?: number[] | null | undefined;
438
+ flags?: {
439
+ short_name: string;
440
+ stop_id: string;
441
+ agency_ids?: string[] | undefined;
442
+ is_harmonized?: boolean | undefined;
443
+ }[] | null | undefined;
444
+ jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
445
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
446
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
447
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
448
+ lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
449
+ };
450
+ created_by?: string | null | undefined;
451
+ updated_by?: string | undefined;
452
+ file_id?: string | null | undefined;
335
453
  }>]>;
336
454
  export type FileExport = z.infer<typeof FileExportSchema>;
@@ -2,10 +2,12 @@
2
2
  import { GtfsExportSchema } from './gtfs-export.js';
3
3
  import { RideExportSchema } from './ride-export.js';
4
4
  import { SamsAnalysisExportSchema } from './sams-analysis-export.js';
5
+ import { StopExportSchema } from './stop-export.js';
5
6
  import { z } from 'zod';
6
7
  /* * */
7
8
  export const FileExportSchema = z.discriminatedUnion('type', [
8
9
  GtfsExportSchema,
9
10
  RideExportSchema,
10
11
  SamsAnalysisExportSchema,
12
+ StopExportSchema,
11
13
  ]);
@@ -3,3 +3,4 @@ export * from './file-exports.js';
3
3
  export * from './gtfs-export.js';
4
4
  export * from './ride-export.js';
5
5
  export * from './sams-analysis-export.js';
6
+ export * from './stop-export.js';
@@ -3,3 +3,4 @@ export * from './file-exports.js';
3
3
  export * from './gtfs-export.js';
4
4
  export * from './ride-export.js';
5
5
  export * from './sams-analysis-export.js';
6
+ export * from './stop-export.js';