/**
 *   Generated file. Do not edit
 */
import { TapRequestFrame } from "@iotize/tap/client/api";
import * as serviceConverters from "./service-converters";
import { converters as commonConverters } from "@iotize/tap/service/core";
const allConverters = Object.assign(Object.assign({}, commonConverters), serviceConverters);
export const SERVICE_CALLS = {
    getManufacturer: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/manufacturer",
        path: "/3//0",
        responseBodyDecoder: allConverters.ascii
    },
    getFirmwareFlavor: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/firmware-flavor",
        path: "/3//1",
        responseBodyDecoder: allConverters.ascii
    },
    getSerialNumber: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/serial-number",
        path: "/3//2",
        responseBodyDecoder: allConverters.ascii
    },
    getFirmwareVersion: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/firmware-version",
        path: "/3//3",
        responseBodyDecoder: allConverters.ascii
    },
    reboot: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/device/reboot",
        path: "/3//4"
    },
    factoryReset: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/device/factory-reset",
        path: "/3//5"
    },
    getAvailablePowerSource: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/available-power-source",
        path: "/3//6",
        responseBodyDecoder: allConverters.availablePowerSource
    },
    getPowerSourceVoltage: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/power-source-voltage",
        path: "/3//7",
        responseBodyDecoder: allConverters.uint32
    },
    getMemoryFree: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/memory-free",
        path: "/3//10",
        responseBodyDecoder: allConverters.uint32
    },
    getLastErrorCode: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/last-error-code",
        path: "/3//11",
        responseBodyDecoder: allConverters.uint32
    },
    postLastErrorCode: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/device/last-error-code",
        path: "/3//11"
    },
    resetLastErrorCode: {
        method: TapRequestFrame.MethodType.POST,
        pathAlias: "/device/reset-last-error-code",
        path: "/3//12"
    },
    getCurrentTime: {
        method: TapRequestFrame.MethodType.GET,
        pathAlias: "/device/current-time",
        path: "/3//13",
        responseBodyDecoder: allConverters.ascii
    },
    putCurrentTime: {
        method: TapRequestFrame.MethodType.PUT,
        pathAlias: "/device/current-time",
        path: "/3//13",
        bodyEncoder: allConverters.uint32
    }
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1jYWxscy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9kZXZpY2UvIiwic291cmNlcyI6WyJsaWIvZ2VuZXJhdGVkL3NlcnZpY2UtY2FsbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFJSCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDekQsT0FBTyxLQUFLLGlCQUFpQixNQUFNLHNCQUFzQixDQUFDO0FBQzFELE9BQU8sRUFBRSxVQUFVLElBQUksZ0JBQWdCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUUxRSxNQUFNLGFBQWEsbUNBQ2QsZ0JBQWdCLEdBQ2hCLGlCQUFpQixDQUNyQixDQUFDO0FBRUYsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHO0lBQzNCLGVBQWUsRUFBRTtRQUNmLE1BQU0sRUFBRSxlQUFlLENBQUMsVUFBVSxDQUFDLEdBQUc7UUFDdEMsU0FBUyxFQUFFLHNCQUFzQjtRQUNqQyxJQUFJLEVBQUUsT0FBTztRQUNiLG1CQUFtQixFQUFFLGFBQWEsQ0FBQyxLQUFLO0tBQ1I7SUFFbEMsaUJBQWlCLEVBQUU7UUFDakIsTUFBTSxFQUFFLGVBQWUsQ0FBQyxVQUFVLENBQUMsR0FBRztRQUN0QyxTQUFTLEVBQUUseUJBQXlCO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