Enhance vehicle summary retrieval for customers and update OpenAPI schema for subuser management grants

This commit is contained in:
Jeppe Bundgaard
2026-07-08 12:15:18 +02:00
parent b51006d9d1
commit 3221223865
6 changed files with 185 additions and 13 deletions
+35
View File
@@ -16908,6 +16908,41 @@ components:
$ref: '#/components/schemas/SubuserPermissionGroup'
grant_created_at: { type: string, format: date-time, nullable: true }
grant_updated_at: { type: string, format: date-time, nullable: true }
grants:
type: array
items:
$ref: '#/components/schemas/SubuserManagementGrant'
grant_count: { type: integer }
customer_numbers:
type: array
items: { type: integer }
access_state:
type: string
enum: [active, pending_setup, disabled, inactive]
SubuserManagementGrant:
type: object
properties:
grant_id: { type: integer }
customer_number: { type: integer }
customer_name: { type: string, nullable: true }
grant_enabled: { type: boolean }
grant_note: { type: string, nullable: true }
grant_permissions:
type: array
items: { type: string }
permissions:
type: array
items: { type: string }
permission_template_key:
type: string
enum: [deactivated, driver, booking_coordinator, fleet_admin, custom]
permission_groups:
type: array
items:
$ref: '#/components/schemas/SubuserPermissionGroup'
grant_created_at: { type: string, format: date-time, nullable: true }
grant_updated_at: { type: string, format: date-time, nullable: true }
access_state:
type: string
enum: [active, pending_setup, disabled, inactive]