patch client definitions until definitions rework

This commit is contained in:
Samuel Lorch 2023-10-30 22:15:44 +01:00
parent 7ef66c772f
commit 4c564164e8

View file

@ -84,9 +84,9 @@ const GetPeers: SearchProvider = async (o) => {
export const editTypes: { [key: string]: { [key: string]: any } } = { export const editTypes: { [key: string]: { [key: string]: any } } = {
'firewall': { 'firewall': {
name: 'Firewall', name: 'firewall',
'forwardrules': { 'forwardrules': {
name: 'ForwardRule', name: 'forward_rule',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -111,7 +111,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'destinationnatrules': { 'destinationnatrules': {
name: 'DestinationNATRule', name: 'destination_nat_rule',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -142,7 +142,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'sourcenatrules': { 'sourcenatrules': {
name: 'SourceNATRule', name: 'source_nat_rule',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -175,9 +175,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
}, },
}, },
'network': { 'network': {
name: 'Network', name: 'network',
'interfaces': { 'interfaces': {
name: 'Interface', name: 'interface',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
name: zod.string(), name: zod.string(),
@ -210,7 +210,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'staticroutes': { 'staticroutes': {
name: 'StaticRoute', name: 'static_route',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -231,9 +231,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
}, },
}, },
'object': { 'object': {
name: 'Object', name: 'object',
'addresses': { 'addresses': {
name: 'Address', name: 'address',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
}), }),
@ -253,7 +253,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'services': { 'services': {
name: 'Service', name: 'service',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
}), }),
@ -276,9 +276,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
}, },
}, },
'service': { 'service': {
name: 'Service', name: 'service',
'dhcpv4servers': { 'dhcpservers': {
name: 'DHCPv4Server', name: 'dhcp_server',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -303,7 +303,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'ntpservers': { 'ntpservers': {
name: 'NTPServer', name: 'ntp_server',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -319,7 +319,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'dnsservers': { 'dnsservers': {
name: 'DNSServer', name: 'dns_server',
idType: 'Number', idType: 'Number',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
@ -336,9 +336,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
}, },
}, },
'vpn': { 'vpn': {
name: 'VPN', name: 'vpn',
'wireguardinterfaces': { 'wireguardinterfaces': {
name: 'WireguardInterface', name: 'wireguard_interface',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
}), }),
@ -357,7 +357,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
], ],
}, },
'wireguardpeers': { 'wireguardpeers': {
name: 'WireguardPeer', name: 'wireguard_peer',
validationSchema: toFormValidator( validationSchema: toFormValidator(
zod.object({ zod.object({
}), }),