/*! * Copyright (c) 2026 Broadcom. All Rights Reserved. The term * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * This software and all information contained therein is * confidential and proprietary and shall not be duplicated, * used, disclosed, or disseminated in any way except as * authorized by the applicable license agreement, without the * express written permission of Broadcom. All authorized * reproductions must be marked with this language. * * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE, * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE. */ import { IDSJobGenerateDdl, IDSJobExCompareScript, IDSJobDeployDdl, IDSJobCompareDdl, IDSJobExScript, IDSJobPrepMigration, IDSJobCheckDdl } from "./IDSJob"; import { ICheckDdlPayload, IDeployDdlPayload, IGenerateDdlPayload, ICompareDdlPayload, IExecuteScriptPayload, IExecuteCompareScriptPayload, IPrepareMigrationPayload, IExecuteMigrationScriptPayload } from "./IDSRequestPayload"; import { IMessage } from "./IDSResponse"; import { Endpoints } from "../../../constants"; export interface IDSRestClient { restartToken: string; request(endpoint: Endpoints.CHECK, payload: ICheckDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.GENERATE, payload: IGenerateDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.DEPLOY, payload: IDeployDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.EXECUTE_COMPARE, payload: IExecuteCompareScriptPayload, modification?: string): Promise; request(endpoint: Endpoints.COMPARE, payload: ICompareDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.EXECUTE, payload: IExecuteScriptPayload, modification?: string): Promise; request(endpoint: Endpoints.EXECUTE_MIGRATE, payload: IExecuteMigrationScriptPayload, modification?: string): Promise; request(endpoint: Endpoints.MIGRATE, payload: IPrepareMigrationPayload, modification?: string): Promise; about(): Promise; } export interface IResponseMap { rows: Record[]; messages: IMessage[]; columnTypes: Record; } export interface IResponseMapRequest extends IResponseMap { timestamp: string; } export type IRequestType = "post" | "get";