1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: ts and composition api on missing components

This commit is contained in:
2022-06-21 17:54:47 +02:00
parent 89e8d9fcdb
commit a103617ce8
38 changed files with 4553 additions and 4846 deletions

View File

@@ -15,7 +15,7 @@ export default class {
return ipcRenderer.invoke('alter-function', unproxify(params));
}
static alterTriggerFunction (params: {func: CreateFunctionParams & { uid: string }}): Promise<IpcResponse> {
static alterTriggerFunction (params: { uid: string; func: AlterFunctionParams }): Promise<IpcResponse> {
return ipcRenderer.invoke('alter-trigger-function', unproxify(params));
}

View File

@@ -11,7 +11,7 @@ export default class {
return ipcRenderer.invoke('drop-routine', unproxify(params));
}
static alterRoutine (params: { routine: AlterRoutineParams & { uid: string } }): Promise<IpcResponse> {
static alterRoutine (params: { uid: string; routine: AlterRoutineParams }): Promise<IpcResponse> {
return ipcRenderer.invoke('alter-routine', unproxify(params));
}

View File

@@ -1,9 +1,9 @@
import { ipcRenderer } from 'electron';
import { unproxify } from '../libs/unproxify';
import { AlterEventParams, CreateEventParams, EventInfos, IpcResponse } from 'common/interfaces/antares';
import { AlterEventParams, CreateEventParams, IpcResponse } from 'common/interfaces/antares';
export default class {
static getSchedulerInformations (params: { uid: string; schema: string; scheduler: string}): Promise<IpcResponse<EventInfos>> {
static getSchedulerInformations (params: { uid: string; schema: string; scheduler: string}): Promise<IpcResponse> {
return ipcRenderer.invoke('get-scheduler-informations', unproxify(params));
}
@@ -11,7 +11,7 @@ export default class {
return ipcRenderer.invoke('drop-scheduler', unproxify(params));
}
static alterScheduler (params: { scheduler: AlterEventParams & { uid: string } }): Promise<IpcResponse> {
static alterScheduler (params: { uid: string; scheduler: AlterEventParams }): Promise<IpcResponse> {
return ipcRenderer.invoke('alter-scheduler', unproxify(params));
}

View File

@@ -82,7 +82,7 @@ export default class {
return ipcRenderer.invoke('get-processes', uid);
}
static killProcess (params: { uid: string; pid: string }): Promise<IpcResponse> {
static killProcess (params: { uid: string; pid: number }): Promise<IpcResponse> {
return ipcRenderer.invoke('kill-process', unproxify(params));
}

View File

@@ -1,6 +1,6 @@
import { ipcRenderer } from 'electron';
import { unproxify } from '../libs/unproxify';
import { AlterTableParams, CreateTableParams, IpcResponse, TableForeign, TableIndex, TableInfos } from 'common/interfaces/antares';
import { AlterTableParams, CreateTableParams, IpcResponse } from 'common/interfaces/antares';
export default class {
static getTableColumns (params: {schema: string; table: string }): Promise<IpcResponse> {
@@ -27,15 +27,15 @@ export default class {
return ipcRenderer.invoke('get-table-count', unproxify(params));
}
static getTableOptions (params: { uid: string; schema: string; table: string }): Promise<IpcResponse<TableInfos>> {
static getTableOptions (params: { uid: string; schema: string; table: string }): Promise<IpcResponse> {
return ipcRenderer.invoke('get-table-options', unproxify(params));
}
static getTableIndexes (params: { uid: string; schema: string; table: string }): Promise<IpcResponse<TableIndex[]>> {
static getTableIndexes (params: { uid: string; schema: string; table: string }): Promise<IpcResponse> {
return ipcRenderer.invoke('get-table-indexes', unproxify(params));
}
static getKeyUsage (params: { uid: string; schema: string; table: string }): Promise<IpcResponse<TableForeign[]>> {
static getKeyUsage (params: { uid: string; schema: string; table: string }): Promise<IpcResponse> {
return ipcRenderer.invoke('get-key-usage', unproxify(params));
}