UNPKG

@dasch-swiss/dsp-js

Version:
80 lines 2.27 kB
import { __decorate, __metadata } from "tslib"; import { JsonObject, JsonProperty } from 'json2typescript'; /** * Represents a Knora user. * * @category Model Admin */ let User = class User { constructor() { /** * The email address and login name of a user. */ this.email = ''; /** * The user's family name. */ this.familyName = ''; /** * The user's given name. */ this.givenName = ''; /** * The ISO 639-1 code of the user's preferred language. */ this.lang = ''; /** * An encrypted credential for access */ this.password = undefined; /** * The status of the user / group / project. It is false if the entity has been deactivated (deleted). */ this.status = false; /** * Exists and is true if the user is a member of the SystemAdmin group. */ this.systemAdmin = undefined; /** * The username and login name of a user. */ this.username = ''; } }; __decorate([ JsonProperty('email', String), __metadata("design:type", Object) ], User.prototype, "email", void 0); __decorate([ JsonProperty('familyName', String), __metadata("design:type", Object) ], User.prototype, "familyName", void 0); __decorate([ JsonProperty('givenName', String), __metadata("design:type", Object) ], User.prototype, "givenName", void 0); __decorate([ JsonProperty('lang', String), __metadata("design:type", Object) ], User.prototype, "lang", void 0); __decorate([ JsonProperty('password', String, true), __metadata("design:type", String) ], User.prototype, "password", void 0); __decorate([ JsonProperty('status', Boolean), __metadata("design:type", Object) ], User.prototype, "status", void 0); __decorate([ JsonProperty('systemAdmin', Boolean, true), __metadata("design:type", Boolean) ], User.prototype, "systemAdmin", void 0); __decorate([ JsonProperty('username', String), __metadata("design:type", Object) ], User.prototype, "username", void 0); User = __decorate([ JsonObject('User') ], User); export { User }; //# sourceMappingURL=user.js.map