@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
48 lines • 1.76 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { Constants } from '../../Constants';
import { DateTimeStampConverter } from '../../custom-converters/date-time-stamp-converter';
import { IdConverter } from '../../custom-converters/id-converter';
/**
* @category Model V2
*/
let CreateResource = class CreateResource {
constructor() {
this.type = '';
this.label = '';
this.hasPermissions = undefined;
this.attachedToProject = '';
this.attachedToUser = undefined;
this.creationDate = undefined;
this.properties = {};
}
};
__decorate([
JsonProperty('@type', String),
__metadata("design:type", Object)
], CreateResource.prototype, "type", void 0);
__decorate([
JsonProperty(Constants.Label, String),
__metadata("design:type", Object)
], CreateResource.prototype, "label", void 0);
__decorate([
JsonProperty(Constants.HasPermissions, String, true),
__metadata("design:type", String)
], CreateResource.prototype, "hasPermissions", void 0);
__decorate([
JsonProperty(Constants.AttachedToProject, IdConverter),
__metadata("design:type", Object)
], CreateResource.prototype, "attachedToProject", void 0);
__decorate([
JsonProperty(Constants.AttachedToUser, IdConverter, true),
__metadata("design:type", String)
], CreateResource.prototype, "attachedToUser", void 0);
__decorate([
JsonProperty(Constants.CreationDate, DateTimeStampConverter, true),
__metadata("design:type", String)
], CreateResource.prototype, "creationDate", void 0);
CreateResource = __decorate([
JsonObject('CreateResource')
], CreateResource);
export { CreateResource };
//# sourceMappingURL=create-resource.js.map