import { SERVICE_CALLS } from './service-calls';
import { AbstractService } from '@iotize/tap';
export class DataLogService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get the maximum number of packet
     *
     * LWM2M path: /1024//23
     *
     * @tapVersion(">=")
     * @return
     */
    getMaxPacketCount() {
        return this.serviceCallRunner.execute(this.getMaxPacketCountCall());
    }
    /**
     *
     *
     * LWM2M path: /1024//23
     *
     * @tapVersion(">=")
     * @return call options
     */
    getMaxPacketCountCall() {
        const callOptions = Object.assign({}, this.resources.getMaxPacketCount);
        return callOptions;
    }
    /**
     * Returns true is data log acquisition is running
     *
     * LWM2M path: /1031//0
     *
     * @tapVersion(">=")
     * @return
     */
    isRunning() {
        return this.serviceCallRunner.execute(this.isRunningCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//0
     *
     * @tapVersion(">=")
     * @return call options
     */
    isRunningCall() {
        const callOptions = Object.assign({}, this.resources.isRunning);
        return callOptions;
    }
    /**
     * Run data-log acquisition
     *
     * LWM2M path: /1031//0
     *
     * @tapVersion(">=")
     * @return
     */
    run() {
        return this.serviceCallRunner.execute(this.runCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//0
     *
     * @tapVersion(">=")
     * @return call options
     */
    runCall() {
        const callOptions = Object.assign({}, this.resources.run);
        return callOptions;
    }
    /**
     * Stop data-log acquisition
     *
     * LWM2M path: /1031//1
     *
     * @tapVersion(">=")
     * @return
     */
    stop() {
        return this.serviceCallRunner.execute(this.stopCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//1
     *
     * @tapVersion(">=")
     * @return call options
     */
    stopCall() {
        const callOptions = Object.assign({}, this.resources.stop);
        return callOptions;
    }
    /**
     * Get data log options
     *
     * LWM2M path: /1031//2
     *
     * @tapVersion(">=")
     * @return
     */
    getOptions() {
        return this.serviceCallRunner.execute(this.getOptionsCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//2
     *
     * @tapVersion(">=")
     * @return call options
     */
    getOptionsCall() {
        const callOptions = Object.assign({}, this.resources.getOptions);
        return callOptions;
    }
    /**
     * Write data log option
     *
     * LWM2M path: /1031//2
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    putOptions(
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putOptionsCall(value));
    }
    /**
     *
     *
     * LWM2M path: /1031//2
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    putOptionsCall(
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putOptions);
        callOptions.body = value;
        return callOptions;
    }
    /**
     * Write data log crypto key
     *
     * LWM2M path: /1031//3
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    putCryptoKey(
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putCryptoKeyCall(value));
    }
    /**
     *
     *
     * LWM2M path: /1031//3
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    putCryptoKeyCall(
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putCryptoKey);
        callOptions.body = value;
        return callOptions;
    }
    /**
     * Flush data log packets
     *
     * LWM2M path: /1031//4
     *
     * @tapVersion(">=")
     * @return
     */
    flush() {
        return this.serviceCallRunner.execute(this.flushCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//4
     *
     * @tapVersion(">=")
     * @return call options
     */
    flushCall() {
        const callOptions = Object.assign({}, this.resources.flush);
        return callOptions;
    }
    /**
     * Get number of pending data-log packet
     *
     * LWM2M path: /1031//10
     *
     * @tapVersion(">=")
     * @return
     */
    getPacketCount() {
        return this.serviceCallRunner.execute(this.getPacketCountCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//10
     *
     * @tapVersion(">=")
     * @return call options
     */
    getPacketCountCall() {
        const callOptions = Object.assign({}, this.resources.getPacketCount);
        return callOptions;
    }
    /**
     * Dequeue one packet
     *
     * LWM2M path: /1031//11
     *
     * @tapVersion(">=")
     * @return
     */
    dequeueOnePacket() {
        return this.serviceCallRunner.execute(this.dequeueOnePacketCall());
    }
    /**
     *
     *
     * LWM2M path: /1031//11
     *
     * @tapVersion(">=")
     * @return call options
     */
    dequeueOnePacketCall() {
        const callOptions = Object.assign({}, this.resources.dequeueOnePacket);
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NlcnZpY2UvaW1wbC9kYXRhLWxvZy9zcmMvbGliL2dlbmVyYXRlZC9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUloRCxPQUFPLEVBQUUsZUFBZSxFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUUvRCxNQUFNLE9BQU8sY0FBZSxTQUFRLGVBQWU7SUFBbkQ7O1FBQ1MsY0FBUyxHQUFHLGFBQWEsQ0FBQztJQWlTbkMsQ0FBQztJQS9SQzs7Ozs7OztPQU9HO0lBQ0gsaUJBQWlCO1FBQ2YsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxxQkFBcUIsRUFBRSxDQUFDLENBQUM7SUFDdEUsQ0FBQztJQUVEOzs7Ozs7O09BT0c7SUFDSCxxQkFBcUI7UUFDbkIsTUFBTSxXQUFXLHFCQUFRLElBQUksQ0FBQyxTQUFTLENBQUMsaUJBQWlCLENBQUUsQ0FBQztRQUU1RCxPQUFPLFdBQVcsQ0FBQztJQUNyQixDQUFDO0lBRUQ7Ozs7Ozs7T0FPRztJQUNILFNBQVM7UUFDUCxPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDLENBQUM7SUFDOUQsQ0FBQztJQUVEOz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