diff --git a/app/Transformers/Admin/NodeTransformer.php b/app/Transformers/Admin/NodeTransformer.php index 65556aee054..9bfe97a89c7 100644 --- a/app/Transformers/Admin/NodeTransformer.php +++ b/app/Transformers/Admin/NodeTransformer.php @@ -14,6 +14,7 @@ public function transform(Node $node): array 'location_id' => $node->location_id, 'name' => $node->name, 'cluster' => $node->cluster, + 'verify_tls' => $node->verify_tls, 'fqdn' => $node->fqdn, 'port' => $node->port, 'memory' => $node->memory, @@ -30,7 +31,7 @@ public function transform(Node $node): array 'coterm_tls_enabled' => $node->coterm_tls_enabled, 'coterm_fqdn' => $node->coterm_fqdn, 'coterm_port' => $node->coterm_port, - 'servers_count' => (int) $node->servers_count, + 'servers_count' => (int)$node->servers_count, ]; } } diff --git a/resources/scripts/api/admin/nodes/createNode.ts b/resources/scripts/api/admin/nodes/createNode.ts index be4582fa7ab..d77eb847276 100644 --- a/resources/scripts/api/admin/nodes/createNode.ts +++ b/resources/scripts/api/admin/nodes/createNode.ts @@ -5,6 +5,7 @@ interface CreateNodeParameters { locationId: number name: string cluster: string + verifyTls: boolean fqdn: string tokenId: string secret: string @@ -26,6 +27,7 @@ const createNode = async (data: CreateNodeParameters): Promise => { location_id: data.locationId, name: data.name, cluster: data.cluster, + verify_tls: data.verifyTls, fqdn: data.fqdn, token_id: data.tokenId, secret: data.secret, @@ -43,4 +45,4 @@ const createNode = async (data: CreateNodeParameters): Promise => { return rawDataToNode(responseData) } -export default createNode \ No newline at end of file +export default createNode diff --git a/resources/scripts/api/admin/nodes/getNodes.ts b/resources/scripts/api/admin/nodes/getNodes.ts index 1ca2b28e5c4..ad72a825759 100644 --- a/resources/scripts/api/admin/nodes/getNodes.ts +++ b/resources/scripts/api/admin/nodes/getNodes.ts @@ -5,6 +5,7 @@ export interface Node { locationId: number name: string cluster: string + verifyTls: boolean fqdn: string port: number memory: number @@ -29,6 +30,7 @@ export const rawDataToNode = (data: any): Node => ({ locationId: data.location_id, name: data.name, cluster: data.cluster, + verifyTls: data.verify_tls, fqdn: data.fqdn, port: data.port, memory: data.memory, @@ -84,4 +86,4 @@ const getNodes = async ({ } } -export default getNodes \ No newline at end of file +export default getNodes diff --git a/resources/scripts/api/admin/nodes/updateNode.ts b/resources/scripts/api/admin/nodes/updateNode.ts index 266d27b61d0..966988d2da0 100644 --- a/resources/scripts/api/admin/nodes/updateNode.ts +++ b/resources/scripts/api/admin/nodes/updateNode.ts @@ -5,6 +5,7 @@ interface UpdateNodeParameters { locationId: number name: string cluster: string + verifyTls: boolean fqdn: string port: number tokenId?: string | null @@ -26,6 +27,7 @@ const updateNode = async (nodeId: number, payload: UpdateNodeParameters) => { location_id: payload.locationId, name: payload.name, cluster: payload.cluster, + verify_tls: payload.verifyTls, fqdn: payload.fqdn, port: payload.port, token_id: payload.tokenId ? payload.tokenId : undefined, @@ -43,4 +45,4 @@ const updateNode = async (nodeId: number, payload: UpdateNodeParameters) => { return rawDataToNode(data) } -export default updateNode \ No newline at end of file +export default updateNode