@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
57 lines • 1.79 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { StringLiteral } from './string-literal';
/**
* A request to create a group.
*
* @category Model Admin
*/
let CreateGroupRequest = class CreateGroupRequest {
constructor() {
/**
* Descriptions of a user group
*/
this.descriptions = undefined;
/**
* The name of the enclosing object.
*/
this.name = '';
/**
* The IRI of a project.
*/
this.project = '';
/**
* Exists and is true if users can add themselves to the project or group.
*/
this.selfjoin = false;
/**
* The status of the user / group / project. It is false if the entity has been deactivated (deleted).
*/
this.status = false;
}
};
__decorate([
JsonProperty('descriptions', [StringLiteral], true),
__metadata("design:type", Array)
], CreateGroupRequest.prototype, "descriptions", void 0);
__decorate([
JsonProperty('name', String),
__metadata("design:type", Object)
], CreateGroupRequest.prototype, "name", void 0);
__decorate([
JsonProperty('project', String),
__metadata("design:type", Object)
], CreateGroupRequest.prototype, "project", void 0);
__decorate([
JsonProperty('selfjoin', Boolean),
__metadata("design:type", Object)
], CreateGroupRequest.prototype, "selfjoin", void 0);
__decorate([
JsonProperty('status', Boolean),
__metadata("design:type", Object)
], CreateGroupRequest.prototype, "status", void 0);
CreateGroupRequest = __decorate([
JsonObject('CreateGroupRequest')
], CreateGroupRequest);
export { CreateGroupRequest };
//# sourceMappingURL=create-group-request.js.map