var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from '../../environments/environment.prod';
var UsersService = /** @class */ (function () {
    function UsersService(httpClient) {
        this.httpClient = httpClient;
    }
    UsersService.prototype.getMe = function () {
        return this.httpClient.get(environment.apiVersionPath + "/users/me");
    };
    UsersService.prototype.getUsers = function () {
        return this.httpClient.get(environment.apiVersionPath + "/users");
    };
    UsersService.prototype.updateUser = function (userId, patchData) {
        return this.httpClient.put(environment.apiVersionPath + "/users/" + userId, patchData);
    };
    UsersService.prototype.getNotifications = function () {
        return this.httpClient.get(environment.apiVersionPath + "/notifications");
    };
    UsersService.prototype.getApiKeys = function () {
        return this.httpClient.get(environment.apiVersionPath + "/apikeys");
    };
    UsersService.prototype.addApikey = function (userId) {
        return this.httpClient.post(environment.apiVersionPath + "/apikeys/" + userId, null);
    };
    UsersService.prototype.delApikey = function (id) {
        return this.httpClient.put(environment.apiVersionPath + "/apikeys/" + id, null);
    };
    UsersService = __decorate([
        Injectable({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [HttpClient])
    ], UsersService);
    return UsersService;
}());
export { UsersService };
//# sourceMappingURL=users.service.js.map