mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-05-20 05:03:02 +02:00
Remove Lunasea
This commit is contained in:
parent
bbad467fe6
commit
00932bf6bd
@ -2,7 +2,6 @@ import {deleteData, getData, putData} from "./fetchApi.tsx";
|
|||||||
import INotificationConnector from "./types/INotificationConnector.ts";
|
import INotificationConnector from "./types/INotificationConnector.ts";
|
||||||
import IGotifyRecord from "./types/records/IGotifyRecord.ts";
|
import IGotifyRecord from "./types/records/IGotifyRecord.ts";
|
||||||
import INtfyRecord from "./types/records/INtfyRecord.ts";
|
import INtfyRecord from "./types/records/INtfyRecord.ts";
|
||||||
import ILunaseaRecord from "./types/records/ILunaseaRecord.ts";
|
|
||||||
import IPushoverRecord from "./types/records/IPushoverRecord.ts";
|
import IPushoverRecord from "./types/records/IPushoverRecord.ts";
|
||||||
|
|
||||||
export const GetNotificationConnectors = async (apiUri: string) : Promise<INotificationConnector[]> => {
|
export const GetNotificationConnectors = async (apiUri: string) : Promise<INotificationConnector[]> => {
|
||||||
@ -39,12 +38,6 @@ export const CreateNtfy = async (apiUri: string, ntfy: INtfyRecord) : Promise<s
|
|||||||
return await putData(`${apiUri}/v2/NotificationConnector/Ntfy`, ntfy) as Promise<string>;
|
return await putData(`${apiUri}/v2/NotificationConnector/Ntfy`, ntfy) as Promise<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const CreateLunasea = async (apiUri: string, lunasea: ILunaseaRecord) : Promise<string> => {
|
|
||||||
if(lunasea === undefined || lunasea === null)
|
|
||||||
return Promise.reject("lunasea was not provided");
|
|
||||||
return await putData(`${apiUri}/v2/NotificationConnector/Lunasea`, lunasea) as Promise<string>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const CreatePushover = async (apiUri: string, pushover: IPushoverRecord) : Promise<string> => {
|
export const CreatePushover = async (apiUri: string, pushover: IPushoverRecord) : Promise<string> => {
|
||||||
if(pushover === undefined || pushover === null)
|
if(pushover === undefined || pushover === null)
|
||||||
return Promise.reject("pushover was not provided");
|
return Promise.reject("pushover was not provided");
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
import "../../../styles/notificationConnector.css";
|
|
||||||
|
|
||||||
export default interface ILunaseaRecord {
|
|
||||||
id: string;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user