File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,27 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
313
313
type: RequiredPermissionType .adminOnly, // Only administrators can delete
314
314
),
315
315
),
316
+ 'dashboard_summary' : ModelConfig <DashboardSummary >(
317
+ fromJson: DashboardSummary .fromJson,
318
+ getId: (summary) => summary.id,
319
+ getOwnerId: null , // Not a user-owned resource
320
+ // Permissions: Read-only for admins, all other actions unsupported.
321
+ getCollectionPermission: const ModelActionPermission (
322
+ type: RequiredPermissionType .unsupported,
323
+ ),
324
+ getItemPermission: const ModelActionPermission (
325
+ type: RequiredPermissionType .adminOnly,
326
+ ),
327
+ postPermission: const ModelActionPermission (
328
+ type: RequiredPermissionType .unsupported,
329
+ ),
330
+ putPermission: const ModelActionPermission (
331
+ type: RequiredPermissionType .unsupported,
332
+ ),
333
+ deletePermission: const ModelActionPermission (
334
+ type: RequiredPermissionType .unsupported,
335
+ ),
336
+ ),
316
337
};
317
338
318
339
/// Type alias for the ModelRegistry map for easier provider usage.
You can’t perform that action at this time.
0 commit comments