diff --git a/hivemq-edge/src/frontend/src/api/__generated__/index.ts b/hivemq-edge/src/frontend/src/api/__generated__/index.ts index e52d9bfe6..88d5156a9 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/index.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/index.ts @@ -59,7 +59,6 @@ export type { LinkList } from './models/LinkList'; export { Listener } from './models/Listener'; export type { ListenerList } from './models/ListenerList'; export { LocalBridgeSubscription } from './models/LocalBridgeSubscription'; -export type { Metadata } from './models/Metadata'; export type { Metric } from './models/Metric'; export type { MetricList } from './models/MetricList'; export type { Module } from './models/Module'; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/models/FieldMapping.ts b/hivemq-edge/src/frontend/src/api/__generated__/models/FieldMapping.ts index edeff8a63..b06bc744d 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/models/FieldMapping.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/models/FieldMapping.ts @@ -4,7 +4,6 @@ /* eslint-disable */ import type { Instruction } from './Instruction'; -import type { Metadata } from './Metadata'; /** * Defines how incoming data should be transformed before being sent out. @@ -15,9 +14,5 @@ export type FieldMapping = { * List of instructions to be applied to incoming data */ instructions?: Array; - /** - * TODO[28498] Changed manually until backend fixed - */ - metadata?: Metadata; }; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/models/Metadata.ts b/hivemq-edge/src/frontend/src/api/__generated__/models/Metadata.ts deleted file mode 100644 index 3f569485e..000000000 --- a/hivemq-edge/src/frontend/src/api/__generated__/models/Metadata.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { JsonNode } from './JsonNode'; - -/** - * Metadata for the whole mapping - * TODO[28498] Changed manually until backend fixed - */ -export type Metadata = { - destination?: JsonNode; - source?: JsonNode; -}; - diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$FieldMapping.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$FieldMapping.ts index 2ed41765f..da3fcfb5f 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$FieldMapping.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$FieldMapping.ts @@ -11,8 +11,5 @@ export const $FieldMapping = { type: 'Instruction', }, }, - metadata: { - type: 'Metadata', - }, }, } as const; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Metadata.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Metadata.ts deleted file mode 100644 index 3167520c3..000000000 --- a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$Metadata.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export const $Metadata = { - description: `Metadata for the whole mapping`, - properties: { - destination: { - type: 'JsonNode', - isRequired: true, - }, - source: { - type: 'JsonNode', - isRequired: true, - }, - }, -} as const; diff --git a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$TopicFilter.ts b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$TopicFilter.ts index 0f78ef18c..ce3be17fe 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/schemas/$TopicFilter.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/schemas/$TopicFilter.ts @@ -12,6 +12,7 @@ export const $TopicFilter = { schema: { type: 'string', description: `The optional json schema for this topic filter in the data uri format.`, + format: 'data-url', }, topicFilter: { type: 'string', 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 92160f2a3..57e3a2703 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/ProtocolAdaptersService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/ProtocolAdaptersService.ts @@ -432,6 +432,32 @@ export class ProtocolAdaptersService { }); } + /** + * Get the mappings for northbound messages. + * Get all northbound mappings + * @returns NorthboundMappingList Success + * @throws ApiError + */ + public getNorthboundMappings(): CancelablePromise { + return this.httpRequest.request({ + method: 'GET', + url: '/api/v1/management/protocol-adapters/northboundMappings', + }); + } + + /** + * Get all southbound mappings. + * Get all southbound mappings. + * @returns SouthboundMappingList Success + * @throws ApiError + */ + public getSouthboundMappings(): CancelablePromise { + return this.httpRequest.request({ + method: 'GET', + url: '/api/v1/management/protocol-adapters/southboundMappings', + }); + } + /** * Get the status of all the adapters in the system. * Obtain the details. 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 657848a5a..fcf760f98 100644 --- a/hivemq-edge/src/frontend/src/api/__generated__/services/TopicFiltersService.ts +++ b/hivemq-edge/src/frontend/src/api/__generated__/services/TopicFiltersService.ts @@ -67,7 +67,7 @@ export class TopicFiltersService { /** * Delete an topic filter * Delete the specified topic filter. - * @param filter The URL-encoded filter of the topic filter that should be deleted. + * @param filter The URL-encoded filter of the topic filter that should be deleted. * @returns any Success * @throws ApiError */