import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';
import { APIRequestActionNamesEnum } from '@testlocallibrary/shared-kernel/models/enums';
import * as i1 from '@testlocallibrary/shared-kernel/services/main-api-action';

class LoggerService {
    constructor(mainApiActionService) {
        this.mainApiActionService = mainApiActionService;
    }
    createNewLog(loggerRequest) {
        let createNewLogRequestBody = {
            typename: APIRequestActionNamesEnum.AddLoggerScenario,
            loggerModel: loggerRequest,
        };
        return this.mainApiActionService.post(createNewLogRequestBody);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, deps: [{ token: i1.MainApiActionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
    static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, decorators: [{
            type: Injectable,
            args: [{
                    providedIn: 'root'
                }]
        }], ctorParameters: function () { return [{ type: i1.MainApiActionService }]; } });

/**
 * Generated bundle index. Do not edit.
 */

export { LoggerService };
//# sourceMappingURL=testlocallibrary-shared-kernel-services-logger.mjs.map
