import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
export class FirmwareService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Firmware package
     *
     * LWM2M path: /5//0
     *
     * @deprecated
     * @tapVersion(">=")
     * @return
     */
    postPackage() {
        return this.serviceCallRunner.execute(this.postPackageCall());
    }
    /**
     *
     *
     * LWM2M path: /5//0
     *
     * @deprecated
     * @tapVersion(">=")
     * @return call options
     */
    postPackageCall() {
        const callOptions = Object.assign({}, this.resources.postPackage);
        return callOptions;
    }
    /**
     * Update
     *
     * LWM2M path: /5//2
     *
     * @deprecated
     * @tapVersion(">=")
     * @return
     */
    postUpdate() {
        return this.serviceCallRunner.execute(this.postUpdateCall());
    }
    /**
     *
     *
     * LWM2M path: /5//2
     *
     * @deprecated
     * @tapVersion(">=")
     * @return call options
     */
    postUpdateCall() {
        const callOptions = Object.assign({}, this.resources.postUpdate);
        return callOptions;
    }
    /**
     * Get state
     *
     * LWM2M path: /5//3
     *
     * @deprecated
     * @tapVersion(">=")
     * @return
     */
    getState() {
        return this.serviceCallRunner.execute(this.getStateCall());
    }
    /**
     *
     *
     * LWM2M path: /5//3
     *
     * @deprecated
     * @tapVersion(">=")
     * @return call options
     */
    getStateCall() {
        const callOptions = Object.assign({}, this.resources.getState);
        return callOptions;
    }
    /**
     * Check CRC
     *
     * LWM2M path: /5//6
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return
     */
    postCrcCheck(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.postCrcCheckCall(data));
    }
    /**
     *
     *
     * LWM2M path: /5//6
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return call options
     */
    postCrcCheckCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.postCrcCheck);
        callOptions.body = data;
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZ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