From 3f88c0ba845049ca5ec6335317887c628cbfa9c4 Mon Sep 17 00:00:00 2001 From: Nicolas Van Labeke Date: Wed, 11 Dec 2024 16:06:57 +0000 Subject: [PATCH] refactor(28843): update openAPI stubs --- .../frontend/src/api/__generated__/index.ts | 4 +- .../__generated__/models/ApiErrorMessage.ts | 20 ----- .../src/api/__generated__/models/Error.ts | 6 +- .../src/api/__generated__/models/Errors.ts | 7 +- .../__generated__/models/ProblemDetails.ts | 19 +++++ .../__generated__/schemas/$ApiErrorMessage.ts | 20 ----- .../src/api/__generated__/schemas/$Error.ts | 5 +- .../src/api/__generated__/schemas/$Errors.ts | 9 +-- .../__generated__/schemas/$ProblemDetails.ts | 33 ++++++++ .../services/AuthenticationEndpointService.ts | 1 + .../services/AuthenticationService.ts | 1 + .../__generated__/services/BridgesService.ts | 23 ++++++ .../DataHubBehaviorPoliciesService.ts | 27 ++++--- .../services/DataHubDataPoliciesService.ts | 28 ++++--- .../services/DataHubFsmService.ts | 2 +- .../services/DataHubFunctionsService.ts | 2 +- .../services/DataHubSchemasService.ts | 22 ++++-- .../services/DataHubScriptsService.ts | 24 ++++-- .../services/DataHubStateService.ts | 6 +- .../services/MetricsEndpointService.ts | 3 + .../__generated__/services/MetricsService.ts | 3 + .../services/PayloadSamplingService.ts | 4 + .../services/ProtocolAdaptersService.ts | 75 +++++++++++++++++-- .../services/TopicFiltersService.ts | 11 ++- .../api/__generated__/services/UnsService.ts | 3 + 25 files changed, 252 insertions(+), 106 deletions(-) delete mode 100644 hivemq-edge/src/frontend/src/api/__generated__/models/ApiErrorMessage.ts create mode 100644 hivemq-edge/src/frontend/src/api/__generated__/models/ProblemDetails.ts delete mode 100644 hivemq-edge/src/frontend/src/api/__generated__/schemas/$ApiErrorMessage.ts create mode 100644 hivemq-edge/src/frontend/src/api/__generated__/schemas/$ProblemDetails.ts diff --git a/hivemq-edge/src/frontend/src/api/__generated__/index.ts b/hivemq-edge/src/frontend/src/api/__generated__/index.ts index 88d5156a98..e2c96ff7a7 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/index.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/index.ts @@ -14,7 +14,6 @@ export type { Adapter } from './models/Adapter'; export type { AdapterConfig } from './models/AdapterConfig'; export type { AdaptersList } from './models/AdaptersList'; export type { ApiBearerToken } from './models/ApiBearerToken'; -export type { ApiErrorMessage } from './models/ApiErrorMessage'; export type { BehaviorPolicy } from './models/BehaviorPolicy'; export type { BehaviorPolicyBehavior } from './models/BehaviorPolicyBehavior'; export type { BehaviorPolicyDeserialization } from './models/BehaviorPolicyDeserialization'; @@ -74,6 +73,7 @@ export { Payload } from './models/Payload'; export type { PayloadSample } from './models/PayloadSample'; export type { PayloadSampleList } from './models/PayloadSampleList'; export type { PolicyOperation } from './models/PolicyOperation'; +export type { ProblemDetails } from './models/ProblemDetails'; export type { ProtocolAdapter } from './models/ProtocolAdapter'; export type { ProtocolAdapterCategory } from './models/ProtocolAdapterCategory'; export type { ProtocolAdaptersList } from './models/ProtocolAdaptersList'; @@ -102,7 +102,6 @@ export { $Adapter } from './schemas/$Adapter'; export { $AdapterConfig } from './schemas/$AdapterConfig'; export { $AdaptersList } from './schemas/$AdaptersList'; export { $ApiBearerToken } from './schemas/$ApiBearerToken'; -export { $ApiErrorMessage } from './schemas/$ApiErrorMessage'; export { $BehaviorPolicy } from './schemas/$BehaviorPolicy'; export { $BehaviorPolicyBehavior } from './schemas/$BehaviorPolicyBehavior'; export { $BehaviorPolicyDeserialization } from './schemas/$BehaviorPolicyDeserialization'; @@ -162,6 +161,7 @@ export { $Payload } from './schemas/$Payload'; export { $PayloadSample } from './schemas/$PayloadSample'; export { $PayloadSampleList } from './schemas/$PayloadSampleList'; export { $PolicyOperation } from './schemas/$PolicyOperation'; +export { $ProblemDetails } from './schemas/$ProblemDetails'; export { $ProtocolAdapter } from './schemas/$ProtocolAdapter'; export { $ProtocolAdapterCategory } from './schemas/$ProtocolAdapterCategory'; export { $ProtocolAdaptersList } from './schemas/$ProtocolAdaptersList'; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/models/ApiErrorMessage.ts b/hivemq-edge/src/frontend/src/api/__generated__/models/ApiErrorMessage.ts deleted file mode 100644 index 35d8c48009..0000000000 --- a/hivemq-edge/src/frontend/src/api/__generated__/models/ApiErrorMessage.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type ApiErrorMessage = { - /** - * Detailed contextual description of this error - */ - detail?: string; - /** - * Application Error Code associate with this field - */ - fieldName?: string; - /** - * The title of this error - */ - title?: string; -}; - diff --git a/hivemq-edge/src/frontend/src/api/__generated__/models/Error.ts b/hivemq-edge/src/frontend/src/api/__generated__/models/Error.ts index a5c28f0432..2e6dc9d9e6 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/models/Error.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/models/Error.ts @@ -7,10 +7,10 @@ export type Error = { /** * Detailed contextual description of this error */ - detail?: string; + detail: string; /** - * The type of this error + * The parameter causing the issue */ - title?: string; + parameter?: string; }; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/models/Errors.ts b/hivemq-edge/src/frontend/src/api/__generated__/models/Errors.ts index ffeb705105..41e61734f7 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/models/Errors.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/models/Errors.ts @@ -3,9 +3,4 @@ /* tslint:disable */ /* eslint-disable */ -import type { Error } from './Error'; - -export type Errors = { - errors?: Array; -}; - +export type Errors = Record; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/models/ProblemDetails.ts b/hivemq-edge/src/frontend/src/api/__generated__/models/ProblemDetails.ts new file mode 100644 index 0000000000..738b96215a --- /dev/null +++ b/hivemq-edge/src/frontend/src/api/__generated__/models/ProblemDetails.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Error } from './Error'; + +export type ProblemDetails = { + /** + * Correlation id + */ + code?: string; + detail?: string; + errors?: Array; + status?: number; + title: string; + type?: string; +}; + diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$ApiErrorMessage.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$ApiErrorMessage.ts deleted file mode 100644 index 5d0101ce45..0000000000 --- a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$ApiErrorMessage.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export const $ApiErrorMessage = { - properties: { - detail: { - type: 'string', - description: `Detailed contextual description of this error`, - }, - fieldName: { - type: 'string', - description: `Application Error Code associate with this field`, - }, - title: { - type: 'string', - description: `The title of this error`, - }, - }, -} as const; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Error.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Error.ts index 79d320f79a..4c4654ba16 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Error.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Error.ts @@ -7,10 +7,11 @@ export const $Error = { detail: { type: 'string', description: `Detailed contextual description of this error`, + isRequired: true, }, - title: { + parameter: { type: 'string', - description: `The type of this error`, + description: `The parameter causing the issue`, }, }, } as const; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Errors.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Errors.ts index 2232d4d886..80f2f2cf88 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Errors.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Errors.ts @@ -3,12 +3,9 @@ /* tslint:disable */ /* eslint-disable */ export const $Errors = { - properties: { - errors: { - type: 'array', - contains: { - type: 'Error', - }, + type: 'dictionary', + contains: { + properties: { }, }, } as const; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$ProblemDetails.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$ProblemDetails.ts new file mode 100644 index 0000000000..b2e66439cd --- /dev/null +++ b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$ProblemDetails.ts @@ -0,0 +1,33 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $ProblemDetails = { + properties: { + code: { + type: 'string', + description: `Correlation id`, + }, + detail: { + type: 'string', + }, + errors: { + type: 'array', + contains: { + type: 'Error', + }, + }, + status: { + type: 'number', + format: 'int32', + }, + title: { + type: 'string', + isRequired: true, + }, + type: { + type: 'string', + format: 'uri', + }, + }, +} as const; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationEndpointService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationEndpointService.ts index 1ec6aa9c71..7069b825bc 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationEndpointService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationEndpointService.ts @@ -28,6 +28,7 @@ export class AuthenticationEndpointService { body: requestBody, mediaType: 'application/json', errors: { + 400: `Error in request.`, 401: `The requested credentials could not be authenticated.`, }, }); diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationService.ts index c92874d69c..a33e7f151a 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/AuthenticationService.ts @@ -28,6 +28,7 @@ export class AuthenticationService { body: requestBody, mediaType: 'application/json', errors: { + 400: `Error in request.`, 401: `The requested credentials could not be authenticated.`, }, }); diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/BridgesService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/BridgesService.ts index e14ae7b6ad..fee36fd6b7 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/BridgesService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/BridgesService.ts @@ -44,6 +44,9 @@ export class BridgesService { url: '/api/v1/management/bridges', body: requestBody, mediaType: 'application/json', + errors: { + 400: `Bridge is invalid`, + }, }); } @@ -76,6 +79,10 @@ export class BridgesService { path: { 'bridgeId': bridgeId, }, + errors: { + 400: `Query parameters invalid`, + 404: `Bridge not found`, + }, }); } @@ -95,6 +102,10 @@ export class BridgesService { path: { 'bridgeId': bridgeId, }, + errors: { + 400: `Query parameters invalid`, + 404: `Bridge not found`, + }, }); } @@ -118,6 +129,10 @@ export class BridgesService { }, body: requestBody, mediaType: 'application/json', + errors: { + 400: `Query parameters invalid`, + 404: `Bridge not found`, + }, }); } @@ -137,6 +152,10 @@ export class BridgesService { path: { 'bridgeId': bridgeId, }, + errors: { + 400: `Query parameters invalid`, + 404: `Bridge not found`, + }, }); } @@ -160,6 +179,10 @@ export class BridgesService { }, body: requestBody, mediaType: 'application/json', + errors: { + 400: `Query parameters invalid`, + 404: `Bridge not found`, + }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubBehaviorPoliciesService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubBehaviorPoliciesService.ts index 4de3b4f234..177e3e8cc0 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubBehaviorPoliciesService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubBehaviorPoliciesService.ts @@ -45,7 +45,7 @@ export class DataHubBehaviorPoliciesService { 'cursor': cursor, }, errors: { - 503: `Not all cluster nodes at minimum version`, + 503: `Temporarily not available`, }, }); } @@ -68,8 +68,11 @@ export class DataHubBehaviorPoliciesService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Bad request`, - 503: `Temporarily not available`, + 400: `Policy creation failed`, + 409: `Already exists`, + 500: `Internal error`, + 503: `Temporarily unavailable`, + 507: `Insufficient storage error`, }, }); } @@ -93,9 +96,11 @@ export class DataHubBehaviorPoliciesService { 'policyId': policyId, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, - 503: `Not all cluster nodes at minimum version`, + 400: `URL parameter missing`, + 404: `Policy not found`, + 412: `Precondition failed`, + 500: `Internal error`, + 503: `Temporarily not available`, }, }); } @@ -126,8 +131,8 @@ export class DataHubBehaviorPoliciesService { 'fields': fields, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, + 400: `Invalid query parameter`, + 404: `Policy not found`, }, }); } @@ -156,10 +161,12 @@ export class DataHubBehaviorPoliciesService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Bad request`, + 400: `Policy creation failed`, 404: `Policy not found`, 412: `Precondition failed`, - 503: `Not all cluster nodes at minimum version`, + 500: `Internal error`, + 503: `Temporarily unavailable`, + 507: `Insufficient storage error`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubDataPoliciesService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubDataPoliciesService.ts index 18cc2c0445..ed0ef36cca 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubDataPoliciesService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubDataPoliciesService.ts @@ -48,7 +48,10 @@ export class DataHubDataPoliciesService { 'cursor': cursor, }, errors: { - 503: `Not all cluster nodes at minimum version`, + 400: `URL parameter missing`, + 404: `DataPolicy not found`, + 500: `Internal server error`, + 503: `Request resource temporary unavailable`, }, }); } @@ -71,8 +74,11 @@ export class DataHubDataPoliciesService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Bad request`, - 503: `Not all cluster nodes at minimum version`, + 400: `DataPolicy creation failed`, + 409: `DataPolicy already present`, + 500: `Internal server error`, + 503: `Request resource temporary unavailable`, + 507: `Insufficient storage`, }, }); } @@ -96,9 +102,10 @@ export class DataHubDataPoliciesService { 'policyId': policyId, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, - 503: `Not all cluster nodes at minimum version`, + 400: `URL parameter missing`, + 404: `DataPolicy not found`, + 500: `Internal server error`, + 503: `Request resource temporary unavailable`, }, }); } @@ -160,10 +167,11 @@ export class DataHubDataPoliciesService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Bad request`, - 404: `Policy not found`, - 412: `Precondition failed`, - 503: `Not all cluster nodes at minimum version`, + 400: `DataPolicy creation failed`, + 404: `DataPolicy not found`, + 500: `Internal server error`, + 503: `Request resource temporary unavailable`, + 507: `Insufficient storage`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFsmService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFsmService.ts index 1dcac1beba..a13f9a6b1f 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFsmService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFsmService.ts @@ -22,7 +22,7 @@ export class DataHubFsmService { method: 'GET', url: '/api/v1/data-hub/fsm', errors: { - 404: `Resource not found`, + 500: `Internal server error`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFunctionsService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFunctionsService.ts index 63ee4c1fe0..fd6a6bff7c 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFunctionsService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubFunctionsService.ts @@ -22,7 +22,7 @@ export class DataHubFunctionsService { method: 'GET', url: '/api/v1/data-hub/functions', errors: { - 404: `Resource not found`, + 500: `Internal server error`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubSchemasService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubSchemasService.ts index bbc19ef427..e3d1042f76 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubSchemasService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubSchemasService.ts @@ -45,7 +45,7 @@ export class DataHubSchemasService { 'cursor': cursor, }, errors: { - 503: `Not all cluster nodes at minimum version`, + 503: `Request resource temporary unavailable`, }, }); } @@ -68,8 +68,11 @@ export class DataHubSchemasService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Bad request`, - 503: `Not all cluster nodes at minimum version`, + 400: `Schema could not be validatetd`, + 409: `Schema already exists`, + 412: `Mismatch between schema and etag`, + 500: `Internal server error`, + 507: `Insufficient storage`, }, }); } @@ -93,9 +96,11 @@ export class DataHubSchemasService { 'schemaId': schemaId, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, - 503: `Not all cluster nodes at minimum version`, + 400: `Schema referenced`, + 404: `Schema not found`, + 412: `Mismatch between schema and etag`, + 500: `Internal server error`, + 503: `Request resource temporary unavailable`, }, }); } @@ -126,8 +131,9 @@ export class DataHubSchemasService { 'fields': fields, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, + 400: `A url parameter is missing`, + 404: `Schema not found`, + 500: `Internal server error`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubScriptsService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubScriptsService.ts index d9427c96a3..6c36128a09 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubScriptsService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubScriptsService.ts @@ -41,7 +41,7 @@ export class DataHubScriptsService { 'cursor': cursor, }, errors: { - 503: `Not all cluster nodes at minimum version`, + 503: `Temporary not available`, }, }); } @@ -62,8 +62,12 @@ export class DataHubScriptsService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Bad request`, - 503: `Not all cluster nodes at minimum version`, + 400: `Script is invalid`, + 409: `Script is already present`, + 412: `Script doesn't match etag`, + 500: `Internal server error`, + 503: `Temporary not available`, + 507: `Insufficient storage`, }, }); } @@ -85,9 +89,11 @@ export class DataHubScriptsService { 'scriptId': scriptId, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, - 503: `Not all cluster nodes at minimum version`, + 400: `Script is referenced`, + 404: `Script not found`, + 412: `Script doesn't match etag`, + 500: `Internal Server error`, + 503: `Temporary not available`, }, }); } @@ -114,8 +120,10 @@ export class DataHubScriptsService { 'fields': fields, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, + 400: `URL parameter missing`, + 404: `Script not found`, + 500: `Internal Server error`, + 503: `Temporary not available`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubStateService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubStateService.ts index 13fd69408b..b8394de045 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubStateService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/DataHubStateService.ts @@ -30,9 +30,9 @@ export class DataHubStateService { 'clientId': clientId, }, errors: { - 400: `Bad request`, - 404: `Resource not found`, - 503: `Temporarily not available`, + 400: `URL parameter missing`, + 404: `Client is disconnected`, + 500: `Internal Server error`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsEndpointService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsEndpointService.ts index f57d1297aa..0712a59ce1 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsEndpointService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsEndpointService.ts @@ -41,6 +41,9 @@ export class MetricsEndpointService { path: { 'metricName': metricName, }, + errors: { + 400: `URL parameter missing`, + }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsService.ts index dc857c3c0e..7b71ebbea8 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/MetricsService.ts @@ -41,6 +41,9 @@ export class MetricsService { path: { 'metricName': metricName, }, + errors: { + 400: `URL parameter missing`, + }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/PayloadSamplingService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/PayloadSamplingService.ts index 380df75553..96642aa084 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/PayloadSamplingService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/PayloadSamplingService.ts @@ -28,6 +28,10 @@ export class PayloadSamplingService { path: { 'topic': topic, }, + errors: { + 404: `No samples found`, + 500: `Internal Server Error`, + }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/ProtocolAdaptersService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/ProtocolAdaptersService.ts index 57e3a27036..3e88e115ba 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/ProtocolAdaptersService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/ProtocolAdaptersService.ts @@ -48,6 +48,11 @@ export class ProtocolAdaptersService { }, body: requestBody, mediaType: 'application/json', + errors: { + 400: `Adapter failed validation`, + 404: `Adapter type not found`, + 500: `Internal Server Error`, + }, }); } @@ -80,6 +85,9 @@ export class ProtocolAdaptersService { path: { 'adapterId': adapterId, }, + errors: { + 404: `Adapter not found`, + }, }); } @@ -99,6 +107,9 @@ export class ProtocolAdaptersService { path: { 'adapterId': adapterId, }, + errors: { + 404: `Adapter not found`, + }, }); } @@ -122,6 +133,11 @@ export class ProtocolAdaptersService { }, body: requestBody, mediaType: 'application/json', + errors: { + 400: `Adapter is invalid`, + 404: `Adapter not found`, + 500: `Internal Server Error`, + }, }); } @@ -151,6 +167,8 @@ export class ProtocolAdaptersService { }, errors: { 400: `Protocol adapter does not support discovery`, + 404: `Adapter not found`, + 500: `Internal Server Error`, }, }); } @@ -171,6 +189,9 @@ export class ProtocolAdaptersService { path: { 'adapterId': adapterId, }, + errors: { + 404: `Adapter not found`, + }, }); } @@ -195,7 +216,9 @@ export class ProtocolAdaptersService { body: requestBody, mediaType: 'application/json', errors: { - 403: `Not Found`, + 400: `Missing tags`, + 404: `Adapter not found`, + 500: `Internal Server Error`, }, }); } @@ -216,6 +239,9 @@ export class ProtocolAdaptersService { path: { 'adapterId': adapterId, }, + errors: { + 404: `Adapter not found`, + }, }); } @@ -240,7 +266,9 @@ export class ProtocolAdaptersService { body: requestBody, mediaType: 'application/json', errors: { - 403: `Not Found`, + 400: `Missing tags`, + 404: `Adapter not found`, + 500: `Internal Server Error`, }, }); } @@ -261,6 +289,10 @@ export class ProtocolAdaptersService { path: { 'adapterId': adapterId, }, + errors: { + 400: `Adapter is invalid`, + 404: `Adapter not found`, + }, }); } @@ -284,6 +316,10 @@ export class ProtocolAdaptersService { }, body: requestBody, mediaType: 'application/json', + errors: { + 400: `Adapter is invalid`, + 404: `Adapter not found`, + }, }); } @@ -303,6 +339,9 @@ export class ProtocolAdaptersService { path: { 'adapterId': adapterId, }, + errors: { + 404: `Adapter not found`, + }, }); } @@ -327,7 +366,9 @@ export class ProtocolAdaptersService { body: requestBody, mediaType: 'application/json', errors: { - 403: `Already Present`, + 404: `Adapter not found`, + 409: `Tag already exists`, + 500: `Internal Server Error`, }, }); } @@ -353,7 +394,8 @@ export class ProtocolAdaptersService { body: requestBody, mediaType: 'application/json', errors: { - 403: `Not Found`, + 404: `Adapter not found`, + 500: `Internal Server Error`, }, }); } @@ -377,6 +419,10 @@ export class ProtocolAdaptersService { 'adapterId': adapterId, 'tagName': tagName, }, + errors: { + 404: `Tag not found`, + 500: `Internal Server Error`, + }, }); } @@ -404,7 +450,9 @@ export class ProtocolAdaptersService { body: requestBody, mediaType: 'application/json', errors: { - 403: `Not Found`, + 403: `Adapter not found`, + 404: `Tag not found`, + 500: `Internal Server Error`, }, }); } @@ -429,6 +477,10 @@ export class ProtocolAdaptersService { }, body: requestBody, mediaType: 'application/json', + errors: { + 400: `Adapter is invalid`, + 404: `Adapter type not found`, + }, }); } @@ -487,6 +539,9 @@ export class ProtocolAdaptersService { path: { 'protocolId': protocolId, }, + errors: { + 404: `Adapter type not found`, + }, }); } @@ -519,6 +574,9 @@ export class ProtocolAdaptersService { path: { 'tagName': tagName, }, + errors: { + 404: `Tag not found`, + }, }); } @@ -551,6 +609,9 @@ export class ProtocolAdaptersService { path: { 'adapterType': adapterType, }, + errors: { + 404: `Adapter type not found`, + }, }); } @@ -573,6 +634,10 @@ export class ProtocolAdaptersService { 'adapterId': adapterId, 'tagName': tagName, }, + errors: { + 404: `Adapter not found`, + 500: `Internal Server Error`, + }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/TopicFiltersService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/TopicFiltersService.ts index fcf760f984..63e11a7190 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/TopicFiltersService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/TopicFiltersService.ts @@ -42,6 +42,7 @@ export class TopicFiltersService { mediaType: 'application/json', errors: { 403: `Already Present`, + 500: `Internal Server Error`, }, }); } @@ -61,6 +62,9 @@ export class TopicFiltersService { url: '/api/v1/management/topic-filters', body: requestBody, mediaType: 'application/json', + errors: { + 500: `Internal Server Error`, + }, }); } @@ -80,6 +84,10 @@ export class TopicFiltersService { path: { 'filter': filter, }, + errors: { + 403: `Already Present`, + 404: `Topic filter not found`, + }, }); } @@ -104,7 +112,8 @@ export class TopicFiltersService { body: requestBody, mediaType: 'application/json', errors: { - 403: `Not Found`, + 400: `Topic filter failed validation`, + 500: `Internal Server Error`, }, }); } diff --git a/hivemq-edge/src/frontend/src/api/__generated__/services/UnsService.ts b/hivemq-edge/src/frontend/src/api/__generated__/services/UnsService.ts index ced9788626..0bcbefe48e 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/UnsService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/UnsService.ts @@ -39,6 +39,9 @@ export class UnsService { url: '/api/v1/management/uns/isa95', body: requestBody, mediaType: 'application/json', + errors: { + 400: `isa95 config failed validation`, + }, }); }