2021-01-10 18:30:56 +01:00
|
|
|
'use strict';
|
|
|
|
import { ipcRenderer } from 'electron';
|
2022-04-24 12:17:29 +02:00
|
|
|
import { unproxify } from '../libs/unproxify';
|
2021-01-10 18:30:56 +01:00
|
|
|
|
|
|
|
export default class {
|
|
|
|
static getFunctionInformations (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.invoke('get-function-informations', unproxify(params));
|
2021-01-10 18:30:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static dropFunction (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.invoke('drop-function', unproxify(params));
|
2021-01-10 18:30:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static alterFunction (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.invoke('alter-function', unproxify(params));
|
2021-01-10 18:30:56 +01:00
|
|
|
}
|
|
|
|
|
2021-07-03 11:29:14 +02:00
|
|
|
static alterTriggerFunction (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.invoke('alter-trigger-function', unproxify(params));
|
2021-07-03 11:29:14 +02:00
|
|
|
}
|
|
|
|
|
2021-01-10 18:30:56 +01:00
|
|
|
static createFunction (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.invoke('create-function', unproxify(params));
|
2021-01-10 18:30:56 +01:00
|
|
|
}
|
2021-07-03 11:29:14 +02:00
|
|
|
|
|
|
|
static createTriggerFunction (params) {
|
2022-04-24 12:17:29 +02:00
|
|
|
return ipcRenderer.invoke('create-trigger-function', unproxify(params));
|
2021-07-03 11:29:14 +02:00
|
|
|
}
|
2021-01-10 18:30:56 +01:00
|
|
|
}
|