/* * Copyright 2021 Collate * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { DynamicObj, Paging } from 'Models'; import { DashboardService } from '../generated/entity/services/dashboardService'; import { DatabaseService } from '../generated/entity/services/databaseService'; import { MessagingService } from '../generated/entity/services/messagingService'; import { MlmodelService } from '../generated/entity/services/mlmodelService'; import { PipelineService } from '../generated/entity/services/pipelineService'; export interface IngestionSchedule { repeatFrequency: string; startDate: string; } export interface DatabaseConnection { hostPort: string; password: string; username: string; database: string; connectionArguments: DynamicObj; connectionOptions: DynamicObj; } export interface DataObj { id?: string; description: string | undefined; ingestionSchedule?: IngestionSchedule; name: string; serviceType: string; databaseConnection?: DatabaseConnection; brokers?: Array; schemaRegistry?: string; dashboardUrl?: string; username?: string; password?: string; url?: string; api_key?: string; site_name?: string; api_version?: string; server?: string; env?: string; pipelineUrl?: string; } export interface EditObj { edit: boolean; id?: string; } export type ServiceDataObj = { name: string } & Partial & Partial & Partial & Partial & Partial; export type DataService = | DatabaseService | MessagingService | DashboardService | PipelineService | MlmodelService; export interface ServiceResponse { data: Array; paging: Paging; } export type ConfigData = Partial & Partial & Partial & Partial & Partial;