From 4c564164e8f67e863655f25128bf02d97916da1a Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Mon, 30 Oct 2023 22:15:44 +0100 Subject: [PATCH] patch client definitions until definitions rework --- client/src/definitions.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/client/src/definitions.ts b/client/src/definitions.ts index b7d4124..a5e1d1f 100644 --- a/client/src/definitions.ts +++ b/client/src/definitions.ts @@ -84,9 +84,9 @@ const GetPeers: SearchProvider = async (o) => { export const editTypes: { [key: string]: { [key: string]: any } } = { 'firewall': { - name: 'Firewall', + name: 'firewall', 'forwardrules': { - name: 'ForwardRule', + name: 'forward_rule', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -111,7 +111,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'destinationnatrules': { - name: 'DestinationNATRule', + name: 'destination_nat_rule', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -142,7 +142,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'sourcenatrules': { - name: 'SourceNATRule', + name: 'source_nat_rule', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -175,9 +175,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { }, }, 'network': { - name: 'Network', + name: 'network', 'interfaces': { - name: 'Interface', + name: 'interface', validationSchema: toFormValidator( zod.object({ name: zod.string(), @@ -210,7 +210,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'staticroutes': { - name: 'StaticRoute', + name: 'static_route', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -231,9 +231,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { }, }, 'object': { - name: 'Object', + name: 'object', 'addresses': { - name: 'Address', + name: 'address', validationSchema: toFormValidator( zod.object({ }), @@ -253,7 +253,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'services': { - name: 'Service', + name: 'service', validationSchema: toFormValidator( zod.object({ }), @@ -276,9 +276,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { }, }, 'service': { - name: 'Service', - 'dhcpv4servers': { - name: 'DHCPv4Server', + name: 'service', + 'dhcpservers': { + name: 'dhcp_server', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -303,7 +303,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'ntpservers': { - name: 'NTPServer', + name: 'ntp_server', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -319,7 +319,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'dnsservers': { - name: 'DNSServer', + name: 'dns_server', idType: 'Number', validationSchema: toFormValidator( zod.object({ @@ -336,9 +336,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { }, }, 'vpn': { - name: 'VPN', + name: 'vpn', 'wireguardinterfaces': { - name: 'WireguardInterface', + name: 'wireguard_interface', validationSchema: toFormValidator( zod.object({ }), @@ -357,7 +357,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { ], }, 'wireguardpeers': { - name: 'WireguardPeer', + name: 'wireguard_peer', validationSchema: toFormValidator( zod.object({ }),