M18: implement operational workspaces
This commit is contained in:
@@ -227,6 +227,16 @@ paths:
|
||||
type: boolean
|
||||
default: false
|
||||
title: Attention Only
|
||||
- name: location
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
anyOf:
|
||||
- type: string
|
||||
minLength: 1
|
||||
maxLength: 120
|
||||
- type: 'null'
|
||||
title: Location
|
||||
- name: query
|
||||
in: query
|
||||
required: false
|
||||
@@ -396,6 +406,45 @@ paths:
|
||||
maxLength: 100
|
||||
- type: 'null'
|
||||
title: Query
|
||||
- name: starts_from
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Starts From
|
||||
- name: starts_to
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Starts To
|
||||
- name: location
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
anyOf:
|
||||
- type: string
|
||||
minLength: 1
|
||||
maxLength: 120
|
||||
- type: 'null'
|
||||
title: Location
|
||||
- name: sort
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
enum:
|
||||
- operational
|
||||
- starts_asc
|
||||
- starts_desc
|
||||
type: string
|
||||
default: operational
|
||||
title: Sort
|
||||
- name: page
|
||||
in: query
|
||||
required: false
|
||||
@@ -847,6 +896,22 @@ paths:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Severity
|
||||
- name: assigned_to_ref
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Assigned To Ref
|
||||
- name: overdue
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
anyOf:
|
||||
- type: boolean
|
||||
- type: 'null'
|
||||
title: Overdue
|
||||
- name: page
|
||||
in: query
|
||||
required: false
|
||||
@@ -883,6 +948,31 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/HTTPValidationError'
|
||||
/api/v1/data-quality/issues/bulk-work:
|
||||
post:
|
||||
tags:
|
||||
- data-quality
|
||||
summary: Update Issue Work Queue
|
||||
operationId: update_issue_work_queue_api_v1_data_quality_issues_bulk_work_post
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/BulkDataQualityWorkRequest'
|
||||
required: true
|
||||
responses:
|
||||
'200':
|
||||
description: Successful Response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/BulkDataQualityWorkResult'
|
||||
'422':
|
||||
description: Validation Error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/HTTPValidationError'
|
||||
/api/v1/data-quality/issues/{public_ref}:
|
||||
get:
|
||||
tags:
|
||||
@@ -2276,6 +2366,51 @@ components:
|
||||
- ends_at
|
||||
- status
|
||||
title: BookingSummaryOut
|
||||
BulkDataQualityWorkRequest:
|
||||
properties:
|
||||
issue_refs:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
maxItems: 25
|
||||
minItems: 1
|
||||
title: Issue Refs
|
||||
assigned_to_ref:
|
||||
anyOf:
|
||||
- type: string
|
||||
maxLength: 20
|
||||
minLength: 3
|
||||
- type: 'null'
|
||||
title: Assigned To Ref
|
||||
clear_assignment:
|
||||
type: boolean
|
||||
title: Clear Assignment
|
||||
default: false
|
||||
due_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Due At
|
||||
clear_due_at:
|
||||
type: boolean
|
||||
title: Clear Due At
|
||||
default: false
|
||||
type: object
|
||||
required:
|
||||
- issue_refs
|
||||
title: BulkDataQualityWorkRequest
|
||||
BulkDataQualityWorkResult:
|
||||
properties:
|
||||
updated:
|
||||
items:
|
||||
$ref: '#/components/schemas/DataQualityIssueOut'
|
||||
type: array
|
||||
title: Updated
|
||||
type: object
|
||||
required:
|
||||
- updated
|
||||
title: BulkDataQualityWorkResult
|
||||
CancelBookingRequest:
|
||||
properties:
|
||||
reason:
|
||||
@@ -2584,6 +2719,26 @@ components:
|
||||
type: string
|
||||
format: date-time
|
||||
title: Detected At
|
||||
due_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Due At
|
||||
assigned_to_ref:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Assigned To Ref
|
||||
assigned_to_name:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Assigned To Name
|
||||
overdue:
|
||||
type: boolean
|
||||
title: Overdue
|
||||
default: false
|
||||
resolved_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
@@ -2641,6 +2796,26 @@ components:
|
||||
type: string
|
||||
format: date-time
|
||||
title: Detected At
|
||||
due_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Due At
|
||||
assigned_to_ref:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Assigned To Ref
|
||||
assigned_to_name:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Assigned To Name
|
||||
overdue:
|
||||
type: boolean
|
||||
title: Overdue
|
||||
default: false
|
||||
resolved_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
@@ -3968,6 +4143,25 @@ components:
|
||||
type: boolean
|
||||
title: Attention
|
||||
default: false
|
||||
attention_reason:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Attention Reason
|
||||
service_remaining_km:
|
||||
type: integer
|
||||
title: Service Remaining Km
|
||||
next_booking_ref:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Next Booking Ref
|
||||
next_booking_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Next Booking At
|
||||
bookings:
|
||||
items:
|
||||
$ref: '#/components/schemas/BookingSummaryOut'
|
||||
@@ -4000,6 +4194,7 @@ components:
|
||||
- odometer_km
|
||||
- next_service_km
|
||||
- active
|
||||
- service_remaining_km
|
||||
title: VehicleDetailOut
|
||||
VehicleOut:
|
||||
properties:
|
||||
@@ -4037,6 +4232,25 @@ components:
|
||||
type: boolean
|
||||
title: Attention
|
||||
default: false
|
||||
attention_reason:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Attention Reason
|
||||
service_remaining_km:
|
||||
type: integer
|
||||
title: Service Remaining Km
|
||||
next_booking_ref:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
title: Next Booking Ref
|
||||
next_booking_at:
|
||||
anyOf:
|
||||
- type: string
|
||||
format: date-time
|
||||
- type: 'null'
|
||||
title: Next Booking At
|
||||
type: object
|
||||
required:
|
||||
- public_ref
|
||||
@@ -4049,6 +4263,7 @@ components:
|
||||
- odometer_km
|
||||
- next_service_km
|
||||
- active
|
||||
- service_remaining_km
|
||||
title: VehicleOut
|
||||
VehiclePageOut:
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user