diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 832966d..6df5322 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -1,23 +1,30 @@ # This file controls the behavior of Trunk: https://docs.trunk.io/cli # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml version: 0.1 + cli: version: 1.22.9 + # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) plugins: sources: - id: trunk ref: v1.6.6 uri: https://github.com/trunk-io/plugins + # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) runtimes: enabled: - go@1.21.0 - node@18.20.5 - python@3.10.8 + # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) lint: - disabled: + ignore: + - linters: [ALL] + paths: + - generated/** enabled: - eslint@9.18.0 - actionlint@1.7.6 diff --git a/generated/api_grpc_pb.js b/generated/api_grpc_pb.js index d264fe8..8db0949 100644 --- a/generated/api_grpc_pb.js +++ b/generated/api_grpc_pb.js @@ -2,121 +2,111 @@ // Original file comments: // -// Copyright (C) 2017 Dgraph Labs, Inc. and Contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-FileCopyrightText: © Hypermode Inc. +// SPDX-License-Identifier: Apache-2.0 // // Style guide for Protocol Buffer 3. // Use PascalCase (camelCase with an initial capital) for message names – for example, // SongServerRequest. Use snake_case (underscore_separated_names) for field names – for // example, song_name. // -"use strict" -var grpc = require("@grpc/grpc-js") -var api_pb = require("./api_pb.js") +'use strict'; +var grpc = require('@grpc/grpc-js'); +var api_pb = require('./api_pb.js'); function serialize_api_Check(arg) { if (!(arg instanceof api_pb.Check)) { - throw new Error("Expected argument of type api.Check") + throw new Error('Expected argument of type api.Check'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_Check(buffer_arg) { - return api_pb.Check.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.Check.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_LoginRequest(arg) { if (!(arg instanceof api_pb.LoginRequest)) { - throw new Error("Expected argument of type api.LoginRequest") + throw new Error('Expected argument of type api.LoginRequest'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_LoginRequest(buffer_arg) { - return api_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_Operation(arg) { if (!(arg instanceof api_pb.Operation)) { - throw new Error("Expected argument of type api.Operation") + throw new Error('Expected argument of type api.Operation'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_Operation(buffer_arg) { - return api_pb.Operation.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.Operation.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_Payload(arg) { if (!(arg instanceof api_pb.Payload)) { - throw new Error("Expected argument of type api.Payload") + throw new Error('Expected argument of type api.Payload'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_Payload(buffer_arg) { - return api_pb.Payload.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.Payload.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_Request(arg) { if (!(arg instanceof api_pb.Request)) { - throw new Error("Expected argument of type api.Request") + throw new Error('Expected argument of type api.Request'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_Request(buffer_arg) { - return api_pb.Request.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.Request.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_Response(arg) { if (!(arg instanceof api_pb.Response)) { - throw new Error("Expected argument of type api.Response") + throw new Error('Expected argument of type api.Response'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_Response(buffer_arg) { - return api_pb.Response.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.Response.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_TxnContext(arg) { if (!(arg instanceof api_pb.TxnContext)) { - throw new Error("Expected argument of type api.TxnContext") + throw new Error('Expected argument of type api.TxnContext'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_TxnContext(buffer_arg) { - return api_pb.TxnContext.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.TxnContext.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_api_Version(arg) { if (!(arg instanceof api_pb.Version)) { - throw new Error("Expected argument of type api.Version") + throw new Error('Expected argument of type api.Version'); } - return Buffer.from(arg.serializeBinary()) + return Buffer.from(arg.serializeBinary()); } function deserialize_api_Version(buffer_arg) { - return api_pb.Version.deserializeBinary(new Uint8Array(buffer_arg)) + return api_pb.Version.deserializeBinary(new Uint8Array(buffer_arg)); } + // Graph response. -var DgraphService = (exports.DgraphService = { +var DgraphService = exports.DgraphService = { login: { - path: "/api.Dgraph/Login", + path: '/api.Dgraph/Login', requestStream: false, responseStream: false, requestType: api_pb.LoginRequest, @@ -127,7 +117,7 @@ var DgraphService = (exports.DgraphService = { responseDeserialize: deserialize_api_Response, }, query: { - path: "/api.Dgraph/Query", + path: '/api.Dgraph/Query', requestStream: false, responseStream: false, requestType: api_pb.Request, @@ -138,7 +128,7 @@ var DgraphService = (exports.DgraphService = { responseDeserialize: deserialize_api_Response, }, alter: { - path: "/api.Dgraph/Alter", + path: '/api.Dgraph/Alter', requestStream: false, responseStream: false, requestType: api_pb.Operation, @@ -149,7 +139,7 @@ var DgraphService = (exports.DgraphService = { responseDeserialize: deserialize_api_Payload, }, commitOrAbort: { - path: "/api.Dgraph/CommitOrAbort", + path: '/api.Dgraph/CommitOrAbort', requestStream: false, responseStream: false, requestType: api_pb.TxnContext, @@ -160,7 +150,7 @@ var DgraphService = (exports.DgraphService = { responseDeserialize: deserialize_api_TxnContext, }, checkVersion: { - path: "/api.Dgraph/CheckVersion", + path: '/api.Dgraph/CheckVersion', requestStream: false, responseStream: false, requestType: api_pb.Check, @@ -170,6 +160,6 @@ var DgraphService = (exports.DgraphService = { responseSerialize: serialize_api_Version, responseDeserialize: deserialize_api_Version, }, -}) +}; -exports.DgraphClient = grpc.makeGenericClientConstructor(DgraphService) +exports.DgraphClient = grpc.makeGenericClientConstructor(DgraphService);