var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
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 { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
var TapnpassService = /** @class */ (function (_super) {
    __extends(TapnpassService, _super);
    function TapnpassService() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.resources = SERVICE_CALLS;
        return _this;
    }
    /**
     * Get protocol configuration options
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @return
     */
    TapnpassService.prototype.getProtocolConfiguration = function () {
        return this.serviceCallRunner.execute(this.getProtocolConfigurationCall());
    };
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @return call options
     */
    TapnpassService.prototype.getProtocolConfigurationCall = function () {
        var callOptions = __assign({}, this.resources.getProtocolConfiguration);
        return callOptions;
    };
    /**
     * Temporary update configuration
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    TapnpassService.prototype.setProtocolConfiguration = function (
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.setProtocolConfigurationCall(value));
    };
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    TapnpassService.prototype.setProtocolConfigurationCall = function (
    /*
     *
     */
    value) {
        var callOptions = __assign({}, this.resources.setProtocolConfiguration);
        callOptions.body = value;
        return callOptions;
    };
    /**
     * Update protocol configuration
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    TapnpassService.prototype.putProtocolConfiguration = function (
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putProtocolConfigurationCall(value));
    };
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    TapnpassService.prototype.putProtocolConfigurationCall = function (
    /*
     *
     */
    value) {
        var callOptions = __assign({}, this.resources.putProtocolConfiguration);
        callOptions.body = value;
        return callOptions;
    };
    /**
     * Read target status
     *
     * LWM2M path: /1027//36
     *
     * @tapVersion(">=")
     * @return
     */
    TapnpassService.prototype.getStatus = function () {
        return this.serviceCallRunner.execute(this.getStatusCall());
    };
    /**
     *
     *
     * LWM2M path: /1027//36
     *
     * @tapVersion(">=")
     * @return call options
     */
    TapnpassService.prototype.getStatusCall = function () {
        var callOptions = __assign({}, this.resources.getStatus);
        return callOptions;
    };
    /**
     * Perform actions to ADP target.
     *
     * LWM2M path: /1027//39
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return
     */
    TapnpassService.prototype.postAction = function (
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.postActionCall(data));
    };
    /**
     *
     *
     * LWM2M path: /1027//39
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return call options
     */
    TapnpassService.prototype.postActionCall = function (
    /*
     *
     */
    data) {
        var callOptions = __assign({}, this.resources.postAction);
        callOptions.body = data;
        return callOptions;
    };
    /**
     * Get TAPNPass ADPCtrl1 Reg"
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @return
     */
    TapnpassService.prototype.getControlIn = function () {
        return this.serviceCallRunner.execute(this.getControlInCall());
    };
    /**
     *
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @return call options
     */
    TapnpassService.prototype.getControlInCall = function () {
        var callOptions = __assign({}, this.resources.getControlIn);
        return callOptions;
    };
    /**
     * Direct access to TAPNPass ADPCtrl1 Reg
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return
     */
    TapnpassService.prototype.setControlIn = function (
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.setControlInCall(data));
    };
    /**
     *
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return call options
     */
    TapnpassService.prototype.setControlInCall = function (
    /*
     *
     */
    data) {
        var callOptions = __assign({}, this.resources.setControlIn);
        callOptions.body = data;
        return callOptions;
    };
    /**
     * Direct access to TAPNPass ADPCtrl2 Reg
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @return
     */
    TapnpassService.prototype.getControlOut = function () {
        return this.serviceCallRunner.execute(this.getControlOutCall());
    };
    /**
     *
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @return call options
     */
    TapnpassService.prototype.getControlOutCall = function () {
        var callOptions = __assign({}, this.resources.getControlOut);
        return callOptions;
    };
    /**
     * Direct access to TAPNPass ADPCtrl2 Reg
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return
     */
    TapnpassService.prototype.setAdpControlOut = function (
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.setAdpControlOutCall(data));
    };
    /**
     *
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return call options
     */
    TapnpassService.prototype.setAdpControlOutCall = function (
    /*
     *
     */
    data) {
        var callOptions = __assign({}, this.resources.setAdpControlOut);
        callOptions.body = data;
        return callOptions;
    };
    return TapnpassService;
}(AbstractService));
export { TapnpassService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3Nlc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