/**
 *   Generated file. Do not edit
 */
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { TapRequestFrame } from "@iotize/tap/client/api";
import * as serviceConverters from "./service-converters";
import { converters as commonConverters } from "@iotize/tap/service/core";
import * as customConverters from "../custom/converter-map";
var allConverters = __assign(__assign(__assign({}, commonConverters), serviceConverters), customConverters);
export var SERVICE_CALLS = {
    getProtocol: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/protocol",
        path: "/1027//1",
        responseBodyDecoder: allConverters.targetProtocol
    },
    setProtocol: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/protocol",
        path: "/1027//1",
        bodyEncoder: allConverters.targetProtocol
    },
    putProtocol: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/protocol",
        path: "/1027//1",
        bodyEncoder: allConverters.targetProtocol
    },
    getCoreType: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/core-type",
        path: "/1027//2",
        responseBodyDecoder: allConverters.targetCoreType
    },
    putCoreType: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/core-type",
        path: "/1027//2",
        bodyEncoder: allConverters.targetCoreType
    },
    isConnected: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/connect",
        path: "/1027//3",
        responseBodyDecoder: allConverters.boolean
    },
    connect: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/connect",
        path: "/1027//3"
    },
    disconnect: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/disconnect",
        path: "/1027//4"
    },
    reset: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/reset",
        path: "/1027//5"
    },
    getFirmwareVersion: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/firmware-version",
        path: "/1027//6",
        responseBodyDecoder: allConverters.stringVersion
    },
    putFirmwareVersion: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/firmware-version",
        path: "/1027//6",
        bodyEncoder: allConverters.stringVersion
    },
    getVcc: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/vcc",
        path: "/1027//7",
        responseBodyDecoder: allConverters.uint16
    },
    getMinVoltage: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/min-voltage",
        path: "/1027//8",
        responseBodyDecoder: allConverters.uint16
    },
    putMinVoltage: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/min-voltage",
        path: "/1027//8",
        bodyEncoder: allConverters.uint16
    },
    getMaxVoltage: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/max-voltage",
        path: "/1027//9",
        responseBodyDecoder: allConverters.uint16
    },
    putMaxVoltage: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/max-voltage",
        path: "/1027//9",
        bodyEncoder: allConverters.uint16
    },
    getPageSize: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/page-size",
        path: "/1027//10",
        responseBodyDecoder: allConverters.uint32
    },
    putPageSize: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/page-size",
        path: "/1027//10",
        bodyEncoder: allConverters.uint32
    },
    getComStats: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/com-stats",
        path: "/1027//11",
        responseBodyDecoder: allConverters.targetComStats
    },
    clearComStats: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/com-stats",
        path: "/1027//11"
    },
    getAvailableProtocols: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/available-protocols",
        path: "/1027//20",
        responseBodyDecoder: allConverters.targetProtocolArray
    },
    getSerialModbusConfiguration: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/serial-modbus-configuration",
        path: "/1027//21",
        responseBodyDecoder: allConverters.reversedTargetSerialModbusConfiguration
    },
    setSerialModbusConfiguration: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/serial-modbus-configuration",
        path: "/1027//21",
        bodyEncoder: allConverters.reversedTargetSerialModbusConfiguration
    },
    putSerialModbusConfiguration: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/serial-modbus-configuration",
        path: "/1027//21",
        bodyEncoder: allConverters.reversedTargetSerialModbusConfiguration
    },
    getS3PConfiguration: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/s3p-configuration",
        path: "/1027//21",
        responseBodyDecoder: allConverters.targetS3PProtocolConfiguration
    },
    setS3PConfiguration: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/s3p-configuration",
        path: "/1027//21",
        bodyEncoder: allConverters.targetS3PProtocolConfiguration
    },
    putS3PConfiguration: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/target/s3p-configuration",
        path: "/1027//21",
        bodyEncoder: allConverters.targetS3PProtocolConfiguration
    },
    postResetKeep: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/reset-keep",
        path: "/1027//30"
    },
    readDebug: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/debug-access",
        path: "/1027//31",
        bodyEncoder: allConverters.uint32
    },
    writeDebug: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/debug-access",
        path: "/1027//31"
    },
    getRegisterAccess: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/register-access",
        path: "/1027//32"
    },
    postRegisterAccess: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/register-access",
        path: "/1027//32"
    },
    sendReceive: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/transparent/send-receive",
        path: "/1027//34"
    },
    send: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/transparent/send",
        path: "/1027//34"
    },
    readBytes: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/transparent/read-bytes",
        path: "/1027//35"
    },
    modbusWrite: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/modbus/write",
        path: "/1027//37",
        bodyEncoder: allConverters.modbusWriteOptions
    },
    modbusRead: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/modbus/read",
        path: "/1027//38",
        bodyEncoder: allConverters.modbusOptions
    },
    getSubProtocol: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/sub-protocol",
        path: "/1027//40",
        responseBodyDecoder: allConverters.targetProtocol
    },
    getReceivedCount: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/received-count",
        path: "/1027//43",
        responseBodyDecoder: allConverters.uint16
    },
    readAddress: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/target/read-address",
        path: "/1027//33",
        bodyEncoder: allConverters.memoryInfo
    },
    writeAddress: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/target/read-address",
        path: "/1027//33",
        bodyEncoder: allConverters.memoryWriteInfo
    }
};
//# sourceMappingURL=data:application/json;base64, 