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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9kYXRhLWxvZy8iLCJzb3VyY2VzIjpbImxpYi9nZW5lcmF0ZWQvc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFJaEQsT0FBTyxFQUFFLGVBQWUsRUFBbUIsTUFBTSxhQUFhLENBQUM7QUFFL0QsTUFBTSxPQUFPLGNBQWUsU0FBUSxlQUFlO0lBQW5EOztRQUNTLGNBQVMsR0FBRyxhQUFhLENBQUM7SUFpU25DLENBQUM7SUEvUkM7Ozs7Ozs7T0FPRztJQUNILGlCQUFpQjtRQUNmLE9BQU8sSUFBSSxDQUFDLGlCQUFpQixDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMscUJBQXFCLEVBQUUsQ0FBQyxDQUFDO0lBQ3RFLENBQUM7SUFFRDs7Ozs7OztPQU9HO0lBQ0gscUJBQXFCO1FBQ25CLE1BQU0sV0FBVyxxQkFBUSxJQUFJLENBQUMsU0FBUyxDQUFDLGlCQUFpQixDQUFFLENBQUM7UUFFNUQsT0FBTyxXQUFXLENBQUM7SUFDckIsQ0FBQztJQUVEOzs7Ozs7O09BT0c7SUFDSCxTQUFTO1FBQ1AsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQyxDQUFDO0lBQzlELENBQUM7SUFFRDs7Ozs7OztPQU9HO0lBQ0gsYUFBYTtRQ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