@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28
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/comment.d.ts +24 -24
- package/dist/_common/document.d.ts +3 -3
- package/dist/_common/document.js +1 -1
- package/dist/_common/status.d.ts +2 -2
- package/dist/_common/status.js +1 -1
- package/dist/_common/unix-timestamp.js +1 -0
- package/dist/agency.d.ts +6 -6
- package/dist/alerts/alert.d.ts +262 -0
- package/dist/alerts/alert.js +34 -0
- package/dist/alerts/cause-effect-map.d.ts +106 -0
- package/dist/alerts/cause-effect-map.js +94 -0
- package/dist/alerts/cause.d.ts +17 -0
- package/dist/alerts/cause.js +45 -0
- package/dist/alerts/effect.d.ts +17 -0
- package/dist/alerts/effect.js +35 -0
- package/dist/alerts/index.d.ts +6 -0
- package/dist/alerts/index.js +6 -0
- package/dist/alerts/query.d.ts +9 -0
- package/dist/alerts/query.js +6 -0
- package/dist/alerts/reference-type.d.ts +4 -0
- package/dist/alerts/reference-type.js +10 -0
- package/dist/apex/simplified-apex-location.d.ts +2 -12
- package/dist/apex/simplified-apex-location.js +1 -1
- package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
- package/dist/apex/simplified-apex-on-board-refund.js +1 -1
- package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
- package/dist/apex/simplified-apex-on-board-sale.js +2 -2
- package/dist/apex/simplified-apex-validation.d.ts +6 -16
- package/dist/apex/simplified-apex-validation.js +1 -1
- package/dist/auth/role.d.ts +718 -130
- package/dist/auth/session.d.ts +6 -6
- package/dist/auth/user.d.ts +1182 -270
- package/dist/auth/verification-token.d.ts +4 -4
- package/dist/calendar/event.d.ts +43 -0
- package/dist/calendar/event.js +16 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.js +2 -0
- package/dist/dates/annotation.d.ts +6 -6
- package/dist/dates/date.d.ts +32 -0
- package/dist/dates/date.js +18 -0
- package/dist/dates/index.d.ts +2 -0
- package/dist/dates/index.js +2 -0
- package/dist/dates/period.d.ts +94 -0
- package/dist/dates/period.js +14 -0
- package/dist/file-exports/base.d.ts +9 -9
- package/dist/file-exports/file-exports.d.ts +7 -7
- package/dist/file-exports/ride-export.d.ts +14 -14
- package/dist/file-exports/ride-export.js +2 -2
- package/dist/gtfs/cause.d.ts +10 -0
- package/dist/gtfs/cause.js +18 -0
- package/dist/gtfs/effect.d.ts +10 -0
- package/dist/gtfs/effect.js +17 -0
- package/dist/gtfs/index.d.ts +2 -1
- package/dist/gtfs/index.js +2 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -2
- package/dist/locations/queries.d.ts +2 -2
- package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
- package/dist/metrics/demand/demand_by_category.d.ts +12 -12
- package/dist/metrics/demand/demand_by_line.d.ts +4 -4
- package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
- package/dist/metrics/demand/demand_by_product.d.ts +12 -12
- package/dist/metrics/index.d.ts +93 -48
- package/dist/metrics/index.js +4 -1
- package/dist/metrics/passenger-impact/index.d.ts +1 -0
- package/dist/metrics/passenger-impact/index.js +1 -0
- package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
- package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
- package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
- package/dist/notification.d.ts +18 -18
- package/dist/offer/index.d.ts +5 -0
- package/dist/offer/index.js +5 -0
- package/dist/offer/line.d.ts +296 -0
- package/dist/offer/line.js +60 -0
- package/dist/offer/pattern.d.ts +3608 -0
- package/dist/offer/pattern.js +75 -0
- package/dist/offer/route.d.ts +187 -0
- package/dist/offer/route.js +33 -0
- package/dist/offer/scheduleRule.d.ts +80 -0
- package/dist/offer/scheduleRule.js +50 -0
- package/dist/offer/typology.d.ts +124 -0
- package/dist/offer/typology.js +30 -0
- package/dist/organization.d.ts +20 -20
- package/dist/permissions/alerts.d.ts +13 -19
- package/dist/permissions/alerts.js +8 -13
- package/dist/permissions/annotations.d.ts +25 -0
- package/dist/permissions/annotations.js +16 -0
- package/dist/permissions/fares.d.ts +25 -0
- package/dist/permissions/fares.js +16 -0
- package/dist/permissions/index.d.ts +196 -21
- package/dist/permissions/index.js +142 -6
- package/dist/permissions/lines.d.ts +25 -0
- package/dist/permissions/lines.js +16 -0
- package/dist/permissions/periods.d.ts +25 -0
- package/dist/permissions/periods.js +16 -0
- package/dist/permissions/typologies.d.ts +25 -0
- package/dist/permissions/typologies.js +16 -0
- package/dist/permissions/vehicles.d.ts +25 -0
- package/dist/permissions/vehicles.js +16 -0
- package/dist/permissions/zones.d.ts +25 -0
- package/dist/permissions/zones.js +16 -0
- package/dist/plans/gtfs-validation.d.ts +30 -30
- package/dist/plans/plan.d.ts +6 -6
- package/dist/proposed-change.d.ts +12 -12
- package/dist/rides/batch-query.d.ts +52 -0
- package/dist/rides/batch-query.js +54 -0
- package/dist/rides/index.d.ts +1 -0
- package/dist/rides/index.js +1 -0
- package/dist/rides/ride-acceptance.d.ts +105 -105
- package/dist/rides/ride-acceptance.js +2 -2
- package/dist/rides/ride-audit.d.ts +21 -21
- package/dist/rides/ride-normalized.d.ts +808 -21
- package/dist/rides/ride-normalized.js +31 -1
- package/dist/rides/ride.d.ts +6 -6
- package/dist/sams/sam.d.ts +0 -15
- package/dist/sams/sam.js +2 -2
- package/dist/stops/connections.d.ts +1 -0
- package/dist/stops/connections.js +1 -1
- package/dist/stops/equipment.d.ts +1 -0
- package/dist/stops/equipment.js +1 -1
- package/dist/stops/parent-station.d.ts +6 -6
- package/dist/stops/stop-area.d.ts +6 -6
- package/dist/stops/stop.d.ts +69 -69
- package/dist/ticketing/fare.d.ts +137 -0
- package/dist/ticketing/fare.js +44 -0
- package/dist/ticketing/index.d.ts +2 -0
- package/dist/ticketing/index.js +2 -0
- package/dist/ticketing/zone.d.ts +220 -0
- package/dist/ticketing/zone.js +34 -0
- package/dist/vehicle/emission.d.ts +3 -0
- package/dist/vehicle/emission.js +12 -0
- package/dist/vehicle/index.d.ts +4 -0
- package/dist/vehicle/index.js +4 -0
- package/dist/vehicle/propulsion.d.ts +3 -0
- package/dist/vehicle/propulsion.js +14 -0
- package/dist/vehicle/vehicle.d.ts +189 -0
- package/dist/vehicle/vehicle.js +27 -0
- package/dist/vehicle/wheelchair.d.ts +3 -0
- package/dist/vehicle/wheelchair.js +10 -0
- package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
- package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
- package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
- package/dist/zone.d.ts +6 -6
- package/package.json +2 -2
- package/dist/alert.d.ts +0 -265
- package/dist/alert.js +0 -42
- package/dist/gtfs/cause-effetcs.d.ts +0 -86
- package/dist/gtfs/cause-effetcs.js +0 -31
- package/dist/permissions/dates.d.ts +0 -25
- package/dist/permissions/dates.js +0 -16
package/dist/auth/role.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RoleSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
7
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
8
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
@@ -18,35 +18,31 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
18
18
|
scope: "agencies";
|
|
19
19
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
20
20
|
}>, z.ZodObject<{
|
|
21
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
22
|
-
scope: z.ZodLiteral<"alerts_scheduled">;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
scope: "alerts_scheduled";
|
|
25
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
26
|
-
}, {
|
|
27
|
-
scope: "alerts_scheduled";
|
|
28
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
29
|
-
}>, z.ZodObject<{
|
|
30
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
21
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "update_texts", "update_dates", "update_publish_status"]>;
|
|
31
22
|
resources: z.ZodDefault<z.ZodObject<{
|
|
32
23
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
+
reference_types: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
33
25
|
}, "strip", z.ZodTypeAny, {
|
|
34
26
|
agency_ids: string[];
|
|
27
|
+
reference_types: string[];
|
|
35
28
|
}, {
|
|
36
29
|
agency_ids?: string[] | undefined;
|
|
30
|
+
reference_types?: string[] | undefined;
|
|
37
31
|
}>>;
|
|
38
|
-
scope: z.ZodLiteral<"
|
|
32
|
+
scope: z.ZodLiteral<"alerts">;
|
|
39
33
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
scope: "
|
|
41
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
34
|
+
scope: "alerts";
|
|
35
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
42
36
|
resources: {
|
|
43
37
|
agency_ids: string[];
|
|
38
|
+
reference_types: string[];
|
|
44
39
|
};
|
|
45
40
|
}, {
|
|
46
|
-
scope: "
|
|
47
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
41
|
+
scope: "alerts";
|
|
42
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
48
43
|
resources?: {
|
|
49
44
|
agency_ids?: string[] | undefined;
|
|
45
|
+
reference_types?: string[] | undefined;
|
|
50
46
|
} | undefined;
|
|
51
47
|
}>, z.ZodObject<{
|
|
52
48
|
action: z.ZodEnum<["acceptance_change_status", "acceptance_justify", "acceptance_lock", "acceptance_read", "analsys_lock", "analysis_lock", "analysis_read", "analysis_reprocess", "analysis_update", "audit_lock", "audit_read", "audit_update"]>;
|
|
@@ -196,7 +192,139 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
196
192
|
scope: "users";
|
|
197
193
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
198
194
|
}>, z.ZodObject<{
|
|
199
|
-
action: z.ZodEnum<["
|
|
195
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
196
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
197
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
agency_ids: string[];
|
|
200
|
+
}, {
|
|
201
|
+
agency_ids?: string[] | undefined;
|
|
202
|
+
}>>;
|
|
203
|
+
scope: z.ZodLiteral<"vehicles">;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
scope: "vehicles";
|
|
206
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
207
|
+
resources: {
|
|
208
|
+
agency_ids: string[];
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
scope: "vehicles";
|
|
212
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
213
|
+
resources?: {
|
|
214
|
+
agency_ids?: string[] | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
}>, z.ZodObject<{
|
|
217
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
218
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
219
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
agency_ids: string[];
|
|
222
|
+
}, {
|
|
223
|
+
agency_ids?: string[] | undefined;
|
|
224
|
+
}>>;
|
|
225
|
+
scope: z.ZodLiteral<"fares">;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
scope: "fares";
|
|
228
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
229
|
+
resources: {
|
|
230
|
+
agency_ids: string[];
|
|
231
|
+
};
|
|
232
|
+
}, {
|
|
233
|
+
scope: "fares";
|
|
234
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
235
|
+
resources?: {
|
|
236
|
+
agency_ids?: string[] | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
}>, z.ZodObject<{
|
|
239
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
240
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
241
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
agency_ids: string[];
|
|
244
|
+
}, {
|
|
245
|
+
agency_ids?: string[] | undefined;
|
|
246
|
+
}>>;
|
|
247
|
+
scope: z.ZodLiteral<"annotations">;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
scope: "annotations";
|
|
250
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
251
|
+
resources: {
|
|
252
|
+
agency_ids: string[];
|
|
253
|
+
};
|
|
254
|
+
}, {
|
|
255
|
+
scope: "annotations";
|
|
256
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
257
|
+
resources?: {
|
|
258
|
+
agency_ids?: string[] | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
}>, z.ZodObject<{
|
|
261
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
262
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
263
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
agency_ids: string[];
|
|
266
|
+
}, {
|
|
267
|
+
agency_ids?: string[] | undefined;
|
|
268
|
+
}>>;
|
|
269
|
+
scope: z.ZodLiteral<"periods">;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
scope: "periods";
|
|
272
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
273
|
+
resources: {
|
|
274
|
+
agency_ids: string[];
|
|
275
|
+
};
|
|
276
|
+
}, {
|
|
277
|
+
scope: "periods";
|
|
278
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
279
|
+
resources?: {
|
|
280
|
+
agency_ids?: string[] | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
}>, z.ZodObject<{
|
|
283
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
284
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
285
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
agency_ids: string[];
|
|
288
|
+
}, {
|
|
289
|
+
agency_ids?: string[] | undefined;
|
|
290
|
+
}>>;
|
|
291
|
+
scope: z.ZodLiteral<"zones">;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
scope: "zones";
|
|
294
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
295
|
+
resources: {
|
|
296
|
+
agency_ids: string[];
|
|
297
|
+
};
|
|
298
|
+
}, {
|
|
299
|
+
scope: "zones";
|
|
300
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
301
|
+
resources?: {
|
|
302
|
+
agency_ids?: string[] | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
}>, z.ZodObject<{
|
|
305
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
306
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
307
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
agency_ids: string[];
|
|
310
|
+
}, {
|
|
311
|
+
agency_ids?: string[] | undefined;
|
|
312
|
+
}>>;
|
|
313
|
+
scope: z.ZodLiteral<"typologies">;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
scope: "typologies";
|
|
316
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
317
|
+
resources: {
|
|
318
|
+
agency_ids: string[];
|
|
319
|
+
};
|
|
320
|
+
}, {
|
|
321
|
+
scope: "typologies";
|
|
322
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
323
|
+
resources?: {
|
|
324
|
+
agency_ids?: string[] | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
}>, z.ZodObject<{
|
|
327
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
200
328
|
resources: z.ZodDefault<z.ZodObject<{
|
|
201
329
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
202
330
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -204,16 +332,16 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
204
332
|
}, {
|
|
205
333
|
agency_ids?: string[] | undefined;
|
|
206
334
|
}>>;
|
|
207
|
-
scope: z.ZodLiteral<"
|
|
335
|
+
scope: z.ZodLiteral<"lines">;
|
|
208
336
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
scope: "
|
|
210
|
-
action: "
|
|
337
|
+
scope: "lines";
|
|
338
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
211
339
|
resources: {
|
|
212
340
|
agency_ids: string[];
|
|
213
341
|
};
|
|
214
342
|
}, {
|
|
215
|
-
scope: "
|
|
216
|
-
action: "
|
|
343
|
+
scope: "lines";
|
|
344
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
217
345
|
resources?: {
|
|
218
346
|
agency_ids?: string[] | undefined;
|
|
219
347
|
} | undefined;
|
|
@@ -223,6 +351,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
223
351
|
created_at: number & {
|
|
224
352
|
__brand: "UnixTimestamp";
|
|
225
353
|
};
|
|
354
|
+
created_by: string | null;
|
|
226
355
|
is_locked: boolean;
|
|
227
356
|
updated_at: number & {
|
|
228
357
|
__brand: "UnixTimestamp";
|
|
@@ -232,10 +361,14 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
232
361
|
scope: "agencies";
|
|
233
362
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
234
363
|
} | {
|
|
235
|
-
scope: "
|
|
236
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
364
|
+
scope: "alerts";
|
|
365
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
366
|
+
resources: {
|
|
367
|
+
agency_ids: string[];
|
|
368
|
+
reference_types: string[];
|
|
369
|
+
};
|
|
237
370
|
} | {
|
|
238
|
-
scope: "
|
|
371
|
+
scope: "annotations";
|
|
239
372
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
240
373
|
resources: {
|
|
241
374
|
agency_ids: string[];
|
|
@@ -250,8 +383,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
250
383
|
scope: "sams";
|
|
251
384
|
action: "read";
|
|
252
385
|
} | {
|
|
253
|
-
scope: "
|
|
254
|
-
action: "
|
|
386
|
+
scope: "fares";
|
|
387
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
255
388
|
resources: {
|
|
256
389
|
agency_ids: string[];
|
|
257
390
|
};
|
|
@@ -264,12 +397,24 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
264
397
|
} | {
|
|
265
398
|
scope: "home";
|
|
266
399
|
action: "read_links" | "read_wiki";
|
|
400
|
+
} | {
|
|
401
|
+
scope: "lines";
|
|
402
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
403
|
+
resources: {
|
|
404
|
+
agency_ids: string[];
|
|
405
|
+
};
|
|
267
406
|
} | {
|
|
268
407
|
scope: "organizations";
|
|
269
408
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
270
409
|
} | {
|
|
271
410
|
scope: "performance";
|
|
272
411
|
action: "read";
|
|
412
|
+
} | {
|
|
413
|
+
scope: "periods";
|
|
414
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
415
|
+
resources: {
|
|
416
|
+
agency_ids: string[];
|
|
417
|
+
};
|
|
273
418
|
} | {
|
|
274
419
|
scope: "plans";
|
|
275
420
|
action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
|
|
@@ -286,28 +431,49 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
286
431
|
municipality_ids: string[];
|
|
287
432
|
agency_ids: string[];
|
|
288
433
|
};
|
|
434
|
+
} | {
|
|
435
|
+
scope: "typologies";
|
|
436
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
437
|
+
resources: {
|
|
438
|
+
agency_ids: string[];
|
|
439
|
+
};
|
|
289
440
|
} | {
|
|
290
441
|
scope: "users";
|
|
291
442
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
443
|
+
} | {
|
|
444
|
+
scope: "vehicles";
|
|
445
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
446
|
+
resources: {
|
|
447
|
+
agency_ids: string[];
|
|
448
|
+
};
|
|
449
|
+
} | {
|
|
450
|
+
scope: "zones";
|
|
451
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
452
|
+
resources: {
|
|
453
|
+
agency_ids: string[];
|
|
454
|
+
};
|
|
292
455
|
})[];
|
|
293
|
-
created_by?: string | undefined;
|
|
294
456
|
updated_by?: string | undefined;
|
|
295
457
|
}, {
|
|
296
458
|
_id: string;
|
|
297
459
|
created_at: number;
|
|
298
460
|
updated_at: number;
|
|
299
461
|
name: string;
|
|
300
|
-
created_by?: string | undefined;
|
|
462
|
+
created_by?: string | null | undefined;
|
|
301
463
|
is_locked?: boolean | undefined;
|
|
302
464
|
updated_by?: string | undefined;
|
|
303
465
|
permissions?: ({
|
|
304
466
|
scope: "agencies";
|
|
305
467
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
306
468
|
} | {
|
|
307
|
-
scope: "
|
|
308
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
469
|
+
scope: "alerts";
|
|
470
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
471
|
+
resources?: {
|
|
472
|
+
agency_ids?: string[] | undefined;
|
|
473
|
+
reference_types?: string[] | undefined;
|
|
474
|
+
} | undefined;
|
|
309
475
|
} | {
|
|
310
|
-
scope: "
|
|
476
|
+
scope: "annotations";
|
|
311
477
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
312
478
|
resources?: {
|
|
313
479
|
agency_ids?: string[] | undefined;
|
|
@@ -322,8 +488,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
322
488
|
scope: "sams";
|
|
323
489
|
action: "read";
|
|
324
490
|
} | {
|
|
325
|
-
scope: "
|
|
326
|
-
action: "
|
|
491
|
+
scope: "fares";
|
|
492
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
327
493
|
resources?: {
|
|
328
494
|
agency_ids?: string[] | undefined;
|
|
329
495
|
} | undefined;
|
|
@@ -336,12 +502,24 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
336
502
|
} | {
|
|
337
503
|
scope: "home";
|
|
338
504
|
action: "read_links" | "read_wiki";
|
|
505
|
+
} | {
|
|
506
|
+
scope: "lines";
|
|
507
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
508
|
+
resources?: {
|
|
509
|
+
agency_ids?: string[] | undefined;
|
|
510
|
+
} | undefined;
|
|
339
511
|
} | {
|
|
340
512
|
scope: "organizations";
|
|
341
513
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
342
514
|
} | {
|
|
343
515
|
scope: "performance";
|
|
344
516
|
action: "read";
|
|
517
|
+
} | {
|
|
518
|
+
scope: "periods";
|
|
519
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
520
|
+
resources?: {
|
|
521
|
+
agency_ids?: string[] | undefined;
|
|
522
|
+
} | undefined;
|
|
345
523
|
} | {
|
|
346
524
|
scope: "plans";
|
|
347
525
|
action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
|
|
@@ -358,15 +536,33 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
358
536
|
municipality_ids?: string[] | undefined;
|
|
359
537
|
agency_ids?: string[] | undefined;
|
|
360
538
|
} | undefined;
|
|
539
|
+
} | {
|
|
540
|
+
scope: "typologies";
|
|
541
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
542
|
+
resources?: {
|
|
543
|
+
agency_ids?: string[] | undefined;
|
|
544
|
+
} | undefined;
|
|
361
545
|
} | {
|
|
362
546
|
scope: "users";
|
|
363
547
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
548
|
+
} | {
|
|
549
|
+
scope: "vehicles";
|
|
550
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
551
|
+
resources?: {
|
|
552
|
+
agency_ids?: string[] | undefined;
|
|
553
|
+
} | undefined;
|
|
554
|
+
} | {
|
|
555
|
+
scope: "zones";
|
|
556
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
557
|
+
resources?: {
|
|
558
|
+
agency_ids?: string[] | undefined;
|
|
559
|
+
} | undefined;
|
|
364
560
|
})[] | undefined;
|
|
365
561
|
}>;
|
|
366
562
|
export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
367
563
|
_id: z.ZodString;
|
|
368
564
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
369
|
-
created_by: z.
|
|
565
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
370
566
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
371
567
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
372
568
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
@@ -382,35 +578,31 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
382
578
|
scope: "agencies";
|
|
383
579
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
384
580
|
}>, z.ZodObject<{
|
|
385
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
386
|
-
scope: z.ZodLiteral<"alerts_scheduled">;
|
|
387
|
-
}, "strip", z.ZodTypeAny, {
|
|
388
|
-
scope: "alerts_scheduled";
|
|
389
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
390
|
-
}, {
|
|
391
|
-
scope: "alerts_scheduled";
|
|
392
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
393
|
-
}>, z.ZodObject<{
|
|
394
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
581
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "update_texts", "update_dates", "update_publish_status"]>;
|
|
395
582
|
resources: z.ZodDefault<z.ZodObject<{
|
|
396
583
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
584
|
+
reference_types: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
397
585
|
}, "strip", z.ZodTypeAny, {
|
|
398
586
|
agency_ids: string[];
|
|
587
|
+
reference_types: string[];
|
|
399
588
|
}, {
|
|
400
589
|
agency_ids?: string[] | undefined;
|
|
590
|
+
reference_types?: string[] | undefined;
|
|
401
591
|
}>>;
|
|
402
|
-
scope: z.ZodLiteral<"
|
|
592
|
+
scope: z.ZodLiteral<"alerts">;
|
|
403
593
|
}, "strip", z.ZodTypeAny, {
|
|
404
|
-
scope: "
|
|
405
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
594
|
+
scope: "alerts";
|
|
595
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
406
596
|
resources: {
|
|
407
597
|
agency_ids: string[];
|
|
598
|
+
reference_types: string[];
|
|
408
599
|
};
|
|
409
600
|
}, {
|
|
410
|
-
scope: "
|
|
411
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
601
|
+
scope: "alerts";
|
|
602
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
412
603
|
resources?: {
|
|
413
604
|
agency_ids?: string[] | undefined;
|
|
605
|
+
reference_types?: string[] | undefined;
|
|
414
606
|
} | undefined;
|
|
415
607
|
}>, z.ZodObject<{
|
|
416
608
|
action: z.ZodEnum<["acceptance_change_status", "acceptance_justify", "acceptance_lock", "acceptance_read", "analsys_lock", "analysis_lock", "analysis_read", "analysis_reprocess", "analysis_update", "audit_lock", "audit_read", "audit_update"]>;
|
|
@@ -560,7 +752,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
560
752
|
scope: "users";
|
|
561
753
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
562
754
|
}>, z.ZodObject<{
|
|
563
|
-
action: z.ZodEnum<["
|
|
755
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
564
756
|
resources: z.ZodDefault<z.ZodObject<{
|
|
565
757
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
566
758
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -568,65 +760,214 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
568
760
|
}, {
|
|
569
761
|
agency_ids?: string[] | undefined;
|
|
570
762
|
}>>;
|
|
571
|
-
scope: z.ZodLiteral<"
|
|
763
|
+
scope: z.ZodLiteral<"vehicles">;
|
|
572
764
|
}, "strip", z.ZodTypeAny, {
|
|
573
|
-
scope: "
|
|
574
|
-
action: "
|
|
765
|
+
scope: "vehicles";
|
|
766
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
575
767
|
resources: {
|
|
576
768
|
agency_ids: string[];
|
|
577
769
|
};
|
|
578
770
|
}, {
|
|
579
|
-
scope: "
|
|
580
|
-
action: "
|
|
771
|
+
scope: "vehicles";
|
|
772
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
581
773
|
resources?: {
|
|
582
774
|
agency_ids?: string[] | undefined;
|
|
583
775
|
} | undefined;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
scope: "agencies";
|
|
590
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
591
|
-
} | {
|
|
592
|
-
scope: "alerts_scheduled";
|
|
593
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
594
|
-
} | {
|
|
595
|
-
scope: "alerts_realtime";
|
|
596
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
597
|
-
resources: {
|
|
776
|
+
}>, z.ZodObject<{
|
|
777
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
778
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
779
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
598
781
|
agency_ids: string[];
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
782
|
+
}, {
|
|
783
|
+
agency_ids?: string[] | undefined;
|
|
784
|
+
}>>;
|
|
785
|
+
scope: z.ZodLiteral<"fares">;
|
|
786
|
+
}, "strip", z.ZodTypeAny, {
|
|
787
|
+
scope: "fares";
|
|
788
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
603
789
|
resources: {
|
|
604
790
|
agency_ids: string[];
|
|
605
791
|
};
|
|
606
|
-
}
|
|
607
|
-
scope: "
|
|
608
|
-
action: "read";
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
792
|
+
}, {
|
|
793
|
+
scope: "fares";
|
|
794
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
795
|
+
resources?: {
|
|
796
|
+
agency_ids?: string[] | undefined;
|
|
797
|
+
} | undefined;
|
|
798
|
+
}>, z.ZodObject<{
|
|
799
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
800
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
801
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
802
|
+
}, "strip", z.ZodTypeAny, {
|
|
613
803
|
agency_ids: string[];
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
804
|
+
}, {
|
|
805
|
+
agency_ids?: string[] | undefined;
|
|
806
|
+
}>>;
|
|
807
|
+
scope: z.ZodLiteral<"annotations">;
|
|
808
|
+
}, "strip", z.ZodTypeAny, {
|
|
809
|
+
scope: "annotations";
|
|
810
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
618
811
|
resources: {
|
|
619
812
|
agency_ids: string[];
|
|
620
813
|
};
|
|
621
|
-
}
|
|
622
|
-
scope: "
|
|
623
|
-
action: "read_links" | "read_wiki";
|
|
624
|
-
} | {
|
|
625
|
-
scope: "organizations";
|
|
814
|
+
}, {
|
|
815
|
+
scope: "annotations";
|
|
626
816
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
627
|
-
|
|
628
|
-
|
|
817
|
+
resources?: {
|
|
818
|
+
agency_ids?: string[] | undefined;
|
|
819
|
+
} | undefined;
|
|
820
|
+
}>, z.ZodObject<{
|
|
821
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
822
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
823
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
824
|
+
}, "strip", z.ZodTypeAny, {
|
|
825
|
+
agency_ids: string[];
|
|
826
|
+
}, {
|
|
827
|
+
agency_ids?: string[] | undefined;
|
|
828
|
+
}>>;
|
|
829
|
+
scope: z.ZodLiteral<"periods">;
|
|
830
|
+
}, "strip", z.ZodTypeAny, {
|
|
831
|
+
scope: "periods";
|
|
832
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
833
|
+
resources: {
|
|
834
|
+
agency_ids: string[];
|
|
835
|
+
};
|
|
836
|
+
}, {
|
|
837
|
+
scope: "periods";
|
|
838
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
839
|
+
resources?: {
|
|
840
|
+
agency_ids?: string[] | undefined;
|
|
841
|
+
} | undefined;
|
|
842
|
+
}>, z.ZodObject<{
|
|
843
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
844
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
845
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
agency_ids: string[];
|
|
848
|
+
}, {
|
|
849
|
+
agency_ids?: string[] | undefined;
|
|
850
|
+
}>>;
|
|
851
|
+
scope: z.ZodLiteral<"zones">;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
scope: "zones";
|
|
854
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
855
|
+
resources: {
|
|
856
|
+
agency_ids: string[];
|
|
857
|
+
};
|
|
858
|
+
}, {
|
|
859
|
+
scope: "zones";
|
|
860
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
861
|
+
resources?: {
|
|
862
|
+
agency_ids?: string[] | undefined;
|
|
863
|
+
} | undefined;
|
|
864
|
+
}>, z.ZodObject<{
|
|
865
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
866
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
867
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
869
|
+
agency_ids: string[];
|
|
870
|
+
}, {
|
|
871
|
+
agency_ids?: string[] | undefined;
|
|
872
|
+
}>>;
|
|
873
|
+
scope: z.ZodLiteral<"typologies">;
|
|
874
|
+
}, "strip", z.ZodTypeAny, {
|
|
875
|
+
scope: "typologies";
|
|
876
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
877
|
+
resources: {
|
|
878
|
+
agency_ids: string[];
|
|
879
|
+
};
|
|
880
|
+
}, {
|
|
881
|
+
scope: "typologies";
|
|
882
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
883
|
+
resources?: {
|
|
884
|
+
agency_ids?: string[] | undefined;
|
|
885
|
+
} | undefined;
|
|
886
|
+
}>, z.ZodObject<{
|
|
887
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
888
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
889
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
|
+
agency_ids: string[];
|
|
892
|
+
}, {
|
|
893
|
+
agency_ids?: string[] | undefined;
|
|
894
|
+
}>>;
|
|
895
|
+
scope: z.ZodLiteral<"lines">;
|
|
896
|
+
}, "strip", z.ZodTypeAny, {
|
|
897
|
+
scope: "lines";
|
|
898
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
899
|
+
resources: {
|
|
900
|
+
agency_ids: string[];
|
|
901
|
+
};
|
|
902
|
+
}, {
|
|
903
|
+
scope: "lines";
|
|
904
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
905
|
+
resources?: {
|
|
906
|
+
agency_ids?: string[] | undefined;
|
|
907
|
+
} | undefined;
|
|
908
|
+
}>]>, "many">>;
|
|
909
|
+
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
910
|
+
created_by: string | null;
|
|
911
|
+
is_locked: boolean;
|
|
912
|
+
name: string;
|
|
913
|
+
permissions: ({
|
|
914
|
+
scope: "agencies";
|
|
915
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
916
|
+
} | {
|
|
917
|
+
scope: "alerts";
|
|
918
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
919
|
+
resources: {
|
|
920
|
+
agency_ids: string[];
|
|
921
|
+
reference_types: string[];
|
|
922
|
+
};
|
|
923
|
+
} | {
|
|
924
|
+
scope: "annotations";
|
|
925
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
926
|
+
resources: {
|
|
927
|
+
agency_ids: string[];
|
|
928
|
+
};
|
|
929
|
+
} | {
|
|
930
|
+
scope: "rides";
|
|
931
|
+
action: "acceptance_change_status" | "acceptance_justify" | "acceptance_lock" | "acceptance_read" | "analsys_lock" | "analysis_lock" | "analysis_read" | "analysis_reprocess" | "analysis_update" | "audit_lock" | "audit_read" | "audit_update";
|
|
932
|
+
resources: {
|
|
933
|
+
agency_ids: string[];
|
|
934
|
+
};
|
|
935
|
+
} | {
|
|
936
|
+
scope: "sams";
|
|
937
|
+
action: "read";
|
|
938
|
+
} | {
|
|
939
|
+
scope: "fares";
|
|
940
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
941
|
+
resources: {
|
|
942
|
+
agency_ids: string[];
|
|
943
|
+
};
|
|
944
|
+
} | {
|
|
945
|
+
scope: "gtfs_validations";
|
|
946
|
+
action: "create" | "read" | "lock" | "request_approval";
|
|
947
|
+
resources: {
|
|
948
|
+
agency_ids: string[];
|
|
949
|
+
};
|
|
950
|
+
} | {
|
|
951
|
+
scope: "home";
|
|
952
|
+
action: "read_links" | "read_wiki";
|
|
953
|
+
} | {
|
|
954
|
+
scope: "lines";
|
|
955
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
956
|
+
resources: {
|
|
957
|
+
agency_ids: string[];
|
|
958
|
+
};
|
|
959
|
+
} | {
|
|
960
|
+
scope: "organizations";
|
|
961
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
962
|
+
} | {
|
|
963
|
+
scope: "performance";
|
|
629
964
|
action: "read";
|
|
965
|
+
} | {
|
|
966
|
+
scope: "periods";
|
|
967
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
968
|
+
resources: {
|
|
969
|
+
agency_ids: string[];
|
|
970
|
+
};
|
|
630
971
|
} | {
|
|
631
972
|
scope: "plans";
|
|
632
973
|
action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
|
|
@@ -643,25 +984,46 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
643
984
|
municipality_ids: string[];
|
|
644
985
|
agency_ids: string[];
|
|
645
986
|
};
|
|
987
|
+
} | {
|
|
988
|
+
scope: "typologies";
|
|
989
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
990
|
+
resources: {
|
|
991
|
+
agency_ids: string[];
|
|
992
|
+
};
|
|
646
993
|
} | {
|
|
647
994
|
scope: "users";
|
|
648
995
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
996
|
+
} | {
|
|
997
|
+
scope: "vehicles";
|
|
998
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
999
|
+
resources: {
|
|
1000
|
+
agency_ids: string[];
|
|
1001
|
+
};
|
|
1002
|
+
} | {
|
|
1003
|
+
scope: "zones";
|
|
1004
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1005
|
+
resources: {
|
|
1006
|
+
agency_ids: string[];
|
|
1007
|
+
};
|
|
649
1008
|
})[];
|
|
650
|
-
created_by?: string | undefined;
|
|
651
1009
|
updated_by?: string | undefined;
|
|
652
1010
|
}, {
|
|
653
1011
|
name: string;
|
|
654
|
-
created_by?: string | undefined;
|
|
1012
|
+
created_by?: string | null | undefined;
|
|
655
1013
|
is_locked?: boolean | undefined;
|
|
656
1014
|
updated_by?: string | undefined;
|
|
657
1015
|
permissions?: ({
|
|
658
1016
|
scope: "agencies";
|
|
659
1017
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
660
1018
|
} | {
|
|
661
|
-
scope: "
|
|
662
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1019
|
+
scope: "alerts";
|
|
1020
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
1021
|
+
resources?: {
|
|
1022
|
+
agency_ids?: string[] | undefined;
|
|
1023
|
+
reference_types?: string[] | undefined;
|
|
1024
|
+
} | undefined;
|
|
663
1025
|
} | {
|
|
664
|
-
scope: "
|
|
1026
|
+
scope: "annotations";
|
|
665
1027
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
666
1028
|
resources?: {
|
|
667
1029
|
agency_ids?: string[] | undefined;
|
|
@@ -676,8 +1038,8 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
676
1038
|
scope: "sams";
|
|
677
1039
|
action: "read";
|
|
678
1040
|
} | {
|
|
679
|
-
scope: "
|
|
680
|
-
action: "
|
|
1041
|
+
scope: "fares";
|
|
1042
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
681
1043
|
resources?: {
|
|
682
1044
|
agency_ids?: string[] | undefined;
|
|
683
1045
|
} | undefined;
|
|
@@ -690,12 +1052,24 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
690
1052
|
} | {
|
|
691
1053
|
scope: "home";
|
|
692
1054
|
action: "read_links" | "read_wiki";
|
|
1055
|
+
} | {
|
|
1056
|
+
scope: "lines";
|
|
1057
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1058
|
+
resources?: {
|
|
1059
|
+
agency_ids?: string[] | undefined;
|
|
1060
|
+
} | undefined;
|
|
693
1061
|
} | {
|
|
694
1062
|
scope: "organizations";
|
|
695
1063
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
696
1064
|
} | {
|
|
697
1065
|
scope: "performance";
|
|
698
1066
|
action: "read";
|
|
1067
|
+
} | {
|
|
1068
|
+
scope: "periods";
|
|
1069
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1070
|
+
resources?: {
|
|
1071
|
+
agency_ids?: string[] | undefined;
|
|
1072
|
+
} | undefined;
|
|
699
1073
|
} | {
|
|
700
1074
|
scope: "plans";
|
|
701
1075
|
action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
|
|
@@ -712,9 +1086,27 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
|
|
|
712
1086
|
municipality_ids?: string[] | undefined;
|
|
713
1087
|
agency_ids?: string[] | undefined;
|
|
714
1088
|
} | undefined;
|
|
1089
|
+
} | {
|
|
1090
|
+
scope: "typologies";
|
|
1091
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1092
|
+
resources?: {
|
|
1093
|
+
agency_ids?: string[] | undefined;
|
|
1094
|
+
} | undefined;
|
|
715
1095
|
} | {
|
|
716
1096
|
scope: "users";
|
|
717
1097
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1098
|
+
} | {
|
|
1099
|
+
scope: "vehicles";
|
|
1100
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1101
|
+
resources?: {
|
|
1102
|
+
agency_ids?: string[] | undefined;
|
|
1103
|
+
} | undefined;
|
|
1104
|
+
} | {
|
|
1105
|
+
scope: "zones";
|
|
1106
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1107
|
+
resources?: {
|
|
1108
|
+
agency_ids?: string[] | undefined;
|
|
1109
|
+
} | undefined;
|
|
718
1110
|
})[] | undefined;
|
|
719
1111
|
}>;
|
|
720
1112
|
export declare const UpdateRoleSchema: z.ZodObject<{
|
|
@@ -731,35 +1123,31 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
731
1123
|
scope: "agencies";
|
|
732
1124
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
733
1125
|
}>, z.ZodObject<{
|
|
734
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
735
|
-
scope: z.ZodLiteral<"alerts_scheduled">;
|
|
736
|
-
}, "strip", z.ZodTypeAny, {
|
|
737
|
-
scope: "alerts_scheduled";
|
|
738
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
739
|
-
}, {
|
|
740
|
-
scope: "alerts_scheduled";
|
|
741
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
742
|
-
}>, z.ZodObject<{
|
|
743
|
-
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1126
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update", "update_texts", "update_dates", "update_publish_status"]>;
|
|
744
1127
|
resources: z.ZodDefault<z.ZodObject<{
|
|
745
1128
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1129
|
+
reference_types: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
746
1130
|
}, "strip", z.ZodTypeAny, {
|
|
747
1131
|
agency_ids: string[];
|
|
1132
|
+
reference_types: string[];
|
|
748
1133
|
}, {
|
|
749
1134
|
agency_ids?: string[] | undefined;
|
|
1135
|
+
reference_types?: string[] | undefined;
|
|
750
1136
|
}>>;
|
|
751
|
-
scope: z.ZodLiteral<"
|
|
1137
|
+
scope: z.ZodLiteral<"alerts">;
|
|
752
1138
|
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
scope: "
|
|
754
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1139
|
+
scope: "alerts";
|
|
1140
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
755
1141
|
resources: {
|
|
756
1142
|
agency_ids: string[];
|
|
1143
|
+
reference_types: string[];
|
|
757
1144
|
};
|
|
758
1145
|
}, {
|
|
759
|
-
scope: "
|
|
760
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1146
|
+
scope: "alerts";
|
|
1147
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
761
1148
|
resources?: {
|
|
762
1149
|
agency_ids?: string[] | undefined;
|
|
1150
|
+
reference_types?: string[] | undefined;
|
|
763
1151
|
} | undefined;
|
|
764
1152
|
}>, z.ZodObject<{
|
|
765
1153
|
action: z.ZodEnum<["acceptance_change_status", "acceptance_justify", "acceptance_lock", "acceptance_read", "analsys_lock", "analysis_lock", "analysis_read", "analysis_reprocess", "analysis_update", "audit_lock", "audit_read", "audit_update"]>;
|
|
@@ -909,7 +1297,139 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
909
1297
|
scope: "users";
|
|
910
1298
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
911
1299
|
}>, z.ZodObject<{
|
|
912
|
-
action: z.ZodEnum<["
|
|
1300
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1301
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
1302
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1303
|
+
}, "strip", z.ZodTypeAny, {
|
|
1304
|
+
agency_ids: string[];
|
|
1305
|
+
}, {
|
|
1306
|
+
agency_ids?: string[] | undefined;
|
|
1307
|
+
}>>;
|
|
1308
|
+
scope: z.ZodLiteral<"vehicles">;
|
|
1309
|
+
}, "strip", z.ZodTypeAny, {
|
|
1310
|
+
scope: "vehicles";
|
|
1311
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1312
|
+
resources: {
|
|
1313
|
+
agency_ids: string[];
|
|
1314
|
+
};
|
|
1315
|
+
}, {
|
|
1316
|
+
scope: "vehicles";
|
|
1317
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1318
|
+
resources?: {
|
|
1319
|
+
agency_ids?: string[] | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
}>, z.ZodObject<{
|
|
1322
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1323
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
1324
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1325
|
+
}, "strip", z.ZodTypeAny, {
|
|
1326
|
+
agency_ids: string[];
|
|
1327
|
+
}, {
|
|
1328
|
+
agency_ids?: string[] | undefined;
|
|
1329
|
+
}>>;
|
|
1330
|
+
scope: z.ZodLiteral<"fares">;
|
|
1331
|
+
}, "strip", z.ZodTypeAny, {
|
|
1332
|
+
scope: "fares";
|
|
1333
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1334
|
+
resources: {
|
|
1335
|
+
agency_ids: string[];
|
|
1336
|
+
};
|
|
1337
|
+
}, {
|
|
1338
|
+
scope: "fares";
|
|
1339
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1340
|
+
resources?: {
|
|
1341
|
+
agency_ids?: string[] | undefined;
|
|
1342
|
+
} | undefined;
|
|
1343
|
+
}>, z.ZodObject<{
|
|
1344
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1345
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
1346
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1347
|
+
}, "strip", z.ZodTypeAny, {
|
|
1348
|
+
agency_ids: string[];
|
|
1349
|
+
}, {
|
|
1350
|
+
agency_ids?: string[] | undefined;
|
|
1351
|
+
}>>;
|
|
1352
|
+
scope: z.ZodLiteral<"annotations">;
|
|
1353
|
+
}, "strip", z.ZodTypeAny, {
|
|
1354
|
+
scope: "annotations";
|
|
1355
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1356
|
+
resources: {
|
|
1357
|
+
agency_ids: string[];
|
|
1358
|
+
};
|
|
1359
|
+
}, {
|
|
1360
|
+
scope: "annotations";
|
|
1361
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1362
|
+
resources?: {
|
|
1363
|
+
agency_ids?: string[] | undefined;
|
|
1364
|
+
} | undefined;
|
|
1365
|
+
}>, z.ZodObject<{
|
|
1366
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1367
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
1368
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1369
|
+
}, "strip", z.ZodTypeAny, {
|
|
1370
|
+
agency_ids: string[];
|
|
1371
|
+
}, {
|
|
1372
|
+
agency_ids?: string[] | undefined;
|
|
1373
|
+
}>>;
|
|
1374
|
+
scope: z.ZodLiteral<"periods">;
|
|
1375
|
+
}, "strip", z.ZodTypeAny, {
|
|
1376
|
+
scope: "periods";
|
|
1377
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1378
|
+
resources: {
|
|
1379
|
+
agency_ids: string[];
|
|
1380
|
+
};
|
|
1381
|
+
}, {
|
|
1382
|
+
scope: "periods";
|
|
1383
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1384
|
+
resources?: {
|
|
1385
|
+
agency_ids?: string[] | undefined;
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
}>, z.ZodObject<{
|
|
1388
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1389
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
1390
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1391
|
+
}, "strip", z.ZodTypeAny, {
|
|
1392
|
+
agency_ids: string[];
|
|
1393
|
+
}, {
|
|
1394
|
+
agency_ids?: string[] | undefined;
|
|
1395
|
+
}>>;
|
|
1396
|
+
scope: z.ZodLiteral<"zones">;
|
|
1397
|
+
}, "strip", z.ZodTypeAny, {
|
|
1398
|
+
scope: "zones";
|
|
1399
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1400
|
+
resources: {
|
|
1401
|
+
agency_ids: string[];
|
|
1402
|
+
};
|
|
1403
|
+
}, {
|
|
1404
|
+
scope: "zones";
|
|
1405
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1406
|
+
resources?: {
|
|
1407
|
+
agency_ids?: string[] | undefined;
|
|
1408
|
+
} | undefined;
|
|
1409
|
+
}>, z.ZodObject<{
|
|
1410
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
1411
|
+
resources: z.ZodDefault<z.ZodObject<{
|
|
1412
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1413
|
+
}, "strip", z.ZodTypeAny, {
|
|
1414
|
+
agency_ids: string[];
|
|
1415
|
+
}, {
|
|
1416
|
+
agency_ids?: string[] | undefined;
|
|
1417
|
+
}>>;
|
|
1418
|
+
scope: z.ZodLiteral<"typologies">;
|
|
1419
|
+
}, "strip", z.ZodTypeAny, {
|
|
1420
|
+
scope: "typologies";
|
|
1421
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1422
|
+
resources: {
|
|
1423
|
+
agency_ids: string[];
|
|
1424
|
+
};
|
|
1425
|
+
}, {
|
|
1426
|
+
scope: "typologies";
|
|
1427
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1428
|
+
resources?: {
|
|
1429
|
+
agency_ids?: string[] | undefined;
|
|
1430
|
+
} | undefined;
|
|
1431
|
+
}>, z.ZodObject<{
|
|
1432
|
+
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
|
|
913
1433
|
resources: z.ZodDefault<z.ZodObject<{
|
|
914
1434
|
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
915
1435
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -917,16 +1437,16 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
917
1437
|
}, {
|
|
918
1438
|
agency_ids?: string[] | undefined;
|
|
919
1439
|
}>>;
|
|
920
|
-
scope: z.ZodLiteral<"
|
|
1440
|
+
scope: z.ZodLiteral<"lines">;
|
|
921
1441
|
}, "strip", z.ZodTypeAny, {
|
|
922
|
-
scope: "
|
|
923
|
-
action: "
|
|
1442
|
+
scope: "lines";
|
|
1443
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
924
1444
|
resources: {
|
|
925
1445
|
agency_ids: string[];
|
|
926
1446
|
};
|
|
927
1447
|
}, {
|
|
928
|
-
scope: "
|
|
929
|
-
action: "
|
|
1448
|
+
scope: "lines";
|
|
1449
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
930
1450
|
resources?: {
|
|
931
1451
|
agency_ids?: string[] | undefined;
|
|
932
1452
|
} | undefined;
|
|
@@ -939,10 +1459,14 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
939
1459
|
scope: "agencies";
|
|
940
1460
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
941
1461
|
} | {
|
|
942
|
-
scope: "
|
|
943
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1462
|
+
scope: "alerts";
|
|
1463
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
1464
|
+
resources: {
|
|
1465
|
+
agency_ids: string[];
|
|
1466
|
+
reference_types: string[];
|
|
1467
|
+
};
|
|
944
1468
|
} | {
|
|
945
|
-
scope: "
|
|
1469
|
+
scope: "annotations";
|
|
946
1470
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
947
1471
|
resources: {
|
|
948
1472
|
agency_ids: string[];
|
|
@@ -957,8 +1481,8 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
957
1481
|
scope: "sams";
|
|
958
1482
|
action: "read";
|
|
959
1483
|
} | {
|
|
960
|
-
scope: "
|
|
961
|
-
action: "
|
|
1484
|
+
scope: "fares";
|
|
1485
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
962
1486
|
resources: {
|
|
963
1487
|
agency_ids: string[];
|
|
964
1488
|
};
|
|
@@ -971,12 +1495,24 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
971
1495
|
} | {
|
|
972
1496
|
scope: "home";
|
|
973
1497
|
action: "read_links" | "read_wiki";
|
|
1498
|
+
} | {
|
|
1499
|
+
scope: "lines";
|
|
1500
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1501
|
+
resources: {
|
|
1502
|
+
agency_ids: string[];
|
|
1503
|
+
};
|
|
974
1504
|
} | {
|
|
975
1505
|
scope: "organizations";
|
|
976
1506
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
977
1507
|
} | {
|
|
978
1508
|
scope: "performance";
|
|
979
1509
|
action: "read";
|
|
1510
|
+
} | {
|
|
1511
|
+
scope: "periods";
|
|
1512
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1513
|
+
resources: {
|
|
1514
|
+
agency_ids: string[];
|
|
1515
|
+
};
|
|
980
1516
|
} | {
|
|
981
1517
|
scope: "plans";
|
|
982
1518
|
action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
|
|
@@ -993,9 +1529,27 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
993
1529
|
municipality_ids: string[];
|
|
994
1530
|
agency_ids: string[];
|
|
995
1531
|
};
|
|
1532
|
+
} | {
|
|
1533
|
+
scope: "typologies";
|
|
1534
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1535
|
+
resources: {
|
|
1536
|
+
agency_ids: string[];
|
|
1537
|
+
};
|
|
996
1538
|
} | {
|
|
997
1539
|
scope: "users";
|
|
998
1540
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1541
|
+
} | {
|
|
1542
|
+
scope: "vehicles";
|
|
1543
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1544
|
+
resources: {
|
|
1545
|
+
agency_ids: string[];
|
|
1546
|
+
};
|
|
1547
|
+
} | {
|
|
1548
|
+
scope: "zones";
|
|
1549
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1550
|
+
resources: {
|
|
1551
|
+
agency_ids: string[];
|
|
1552
|
+
};
|
|
999
1553
|
})[] | undefined;
|
|
1000
1554
|
}, {
|
|
1001
1555
|
is_locked?: boolean | undefined;
|
|
@@ -1005,10 +1559,14 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1005
1559
|
scope: "agencies";
|
|
1006
1560
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1007
1561
|
} | {
|
|
1008
|
-
scope: "
|
|
1009
|
-
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1562
|
+
scope: "alerts";
|
|
1563
|
+
action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
|
|
1564
|
+
resources?: {
|
|
1565
|
+
agency_ids?: string[] | undefined;
|
|
1566
|
+
reference_types?: string[] | undefined;
|
|
1567
|
+
} | undefined;
|
|
1010
1568
|
} | {
|
|
1011
|
-
scope: "
|
|
1569
|
+
scope: "annotations";
|
|
1012
1570
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1013
1571
|
resources?: {
|
|
1014
1572
|
agency_ids?: string[] | undefined;
|
|
@@ -1023,8 +1581,8 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1023
1581
|
scope: "sams";
|
|
1024
1582
|
action: "read";
|
|
1025
1583
|
} | {
|
|
1026
|
-
scope: "
|
|
1027
|
-
action: "
|
|
1584
|
+
scope: "fares";
|
|
1585
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1028
1586
|
resources?: {
|
|
1029
1587
|
agency_ids?: string[] | undefined;
|
|
1030
1588
|
} | undefined;
|
|
@@ -1037,12 +1595,24 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1037
1595
|
} | {
|
|
1038
1596
|
scope: "home";
|
|
1039
1597
|
action: "read_links" | "read_wiki";
|
|
1598
|
+
} | {
|
|
1599
|
+
scope: "lines";
|
|
1600
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1601
|
+
resources?: {
|
|
1602
|
+
agency_ids?: string[] | undefined;
|
|
1603
|
+
} | undefined;
|
|
1040
1604
|
} | {
|
|
1041
1605
|
scope: "organizations";
|
|
1042
1606
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1043
1607
|
} | {
|
|
1044
1608
|
scope: "performance";
|
|
1045
1609
|
action: "read";
|
|
1610
|
+
} | {
|
|
1611
|
+
scope: "periods";
|
|
1612
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1613
|
+
resources?: {
|
|
1614
|
+
agency_ids?: string[] | undefined;
|
|
1615
|
+
} | undefined;
|
|
1046
1616
|
} | {
|
|
1047
1617
|
scope: "plans";
|
|
1048
1618
|
action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
|
|
@@ -1059,9 +1629,27 @@ export declare const UpdateRoleSchema: z.ZodObject<{
|
|
|
1059
1629
|
municipality_ids?: string[] | undefined;
|
|
1060
1630
|
agency_ids?: string[] | undefined;
|
|
1061
1631
|
} | undefined;
|
|
1632
|
+
} | {
|
|
1633
|
+
scope: "typologies";
|
|
1634
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1635
|
+
resources?: {
|
|
1636
|
+
agency_ids?: string[] | undefined;
|
|
1637
|
+
} | undefined;
|
|
1062
1638
|
} | {
|
|
1063
1639
|
scope: "users";
|
|
1064
1640
|
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1641
|
+
} | {
|
|
1642
|
+
scope: "vehicles";
|
|
1643
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1644
|
+
resources?: {
|
|
1645
|
+
agency_ids?: string[] | undefined;
|
|
1646
|
+
} | undefined;
|
|
1647
|
+
} | {
|
|
1648
|
+
scope: "zones";
|
|
1649
|
+
action: "create" | "update" | "delete" | "read" | "lock";
|
|
1650
|
+
resources?: {
|
|
1651
|
+
agency_ids?: string[] | undefined;
|
|
1652
|
+
} | undefined;
|
|
1065
1653
|
})[] | undefined;
|
|
1066
1654
|
}>;
|
|
1067
1655
|
export type Role = z.infer<typeof RoleSchema>;
|