@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
199 lines • 7.46 kB
JavaScript
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 { JsonConverter, JsonElementType, JsonObject, JsonProperty } from "ta-json";
import { DateConverter } from "../converters/date-converter";
import { RelationMapResourceConverter } from "../converters/relation-map-resource-converter";
import Link from "../link";
import { EntityPath } from "./entity-path";
import { RelationMapResource } from "./relation-map-resource";
import Resource from "./resource";
let EntityResource = class EntityResource extends Resource {
constructor(init) {
super();
Object.assign(this, init);
}
};
__decorate([
JsonProperty("id"),
__metadata("design:type", Number)
], EntityResource.prototype, "id", void 0);
__decorate([
JsonProperty("identifier"),
__metadata("design:type", Object)
], EntityResource.prototype, "identifier", void 0);
__decorate([
JsonProperty("entitydefinition"),
__metadata("design:type", Link)
], EntityResource.prototype, "entityDefinition", void 0);
__decorate([
JsonProperty("cultures"),
JsonElementType(String),
__metadata("design:type", Array)
], EntityResource.prototype, "cultures", void 0);
__decorate([
JsonProperty("relations"),
JsonConverter(RelationMapResourceConverter),
__metadata("design:type", RelationMapResource)
], EntityResource.prototype, "relations", void 0);
__decorate([
JsonProperty("properties"),
__metadata("design:type", Object)
], EntityResource.prototype, "properties", void 0);
__decorate([
JsonProperty("renditions"),
__metadata("design:type", Object)
], EntityResource.prototype, "renditions", void 0);
__decorate([
JsonProperty("related_paths"),
__metadata("design:type", Object)
], EntityResource.prototype, "relatedPaths", void 0);
__decorate([
JsonProperty("locked_by"),
__metadata("design:type", Link)
], EntityResource.prototype, "lockedBy", void 0);
__decorate([
JsonProperty("locked_on"),
JsonConverter(DateConverter),
__metadata("design:type", Object)
], EntityResource.prototype, "lockedOn", void 0);
__decorate([
JsonProperty("is_root_taxonomy_item"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "isRootTaxonomyItem", void 0);
__decorate([
JsonProperty("is_path_root"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "isPathRoot", void 0);
__decorate([
JsonProperty("inherits_security"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "inheritsSecurity", void 0);
__decorate([
JsonProperty("is_system_owned"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "isSystemOwned", void 0);
__decorate([
JsonProperty("version"),
__metadata("design:type", Number)
], EntityResource.prototype, "version", void 0);
__decorate([
JsonProperty("created_on"),
JsonConverter(DateConverter),
__metadata("design:type", Date)
], EntityResource.prototype, "createdOn", void 0);
__decorate([
JsonProperty("modified_on"),
JsonConverter(DateConverter),
__metadata("design:type", Date)
], EntityResource.prototype, "modifiedOn", void 0);
__decorate([
JsonProperty("created_by"),
__metadata("design:type", Link)
], EntityResource.prototype, "createdBy", void 0);
__decorate([
JsonProperty("modified_by"),
__metadata("design:type", Link)
], EntityResource.prototype, "modifiedBy", void 0);
__decorate([
JsonProperty("requested_permissions"),
__metadata("design:type", Object)
], EntityResource.prototype, "requestedPermissions", void 0);
__decorate([
JsonProperty("copy"),
__metadata("design:type", Link)
], EntityResource.prototype, "copy", void 0);
__decorate([
JsonProperty("permissions"),
__metadata("design:type", Link)
], EntityResource.prototype, "permissions", void 0);
__decorate([
JsonProperty("lifecycle"),
__metadata("design:type", Link)
], EntityResource.prototype, "lifeCycle", void 0);
__decorate([
JsonProperty("saved_selections"),
__metadata("design:type", Link)
], EntityResource.prototype, "savedSelections", void 0);
__decorate([
JsonProperty("roles"),
__metadata("design:type", Link)
], EntityResource.prototype, "roles", void 0);
__decorate([
JsonProperty("annotations"),
__metadata("design:type", Link)
], EntityResource.prototype, "annotations", void 0);
__decorate([
JsonProperty("full"),
__metadata("design:type", Link)
], EntityResource.prototype, "full", void 0);
__decorate([
JsonProperty("is_current_user_default"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "isCurrentUserDefault", void 0);
__decorate([
JsonProperty("language_supported_ootb"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "languageSupportedOotb", void 0);
__decorate([
JsonProperty("HasPublicLink"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "hasPublicLink", void 0);
__decorate([
JsonProperty("annotationCount"),
__metadata("design:type", Number)
], EntityResource.prototype, "annotationCount", void 0);
__decorate([
JsonProperty("masterFileModifiedOn"),
__metadata("design:type", Date)
], EntityResource.prototype, "masterFileModifiedOn", void 0);
__decorate([
JsonProperty("saved_selection_page_name"),
__metadata("design:type", String)
], EntityResource.prototype, "savedSelectionPageName", void 0);
__decorate([
JsonProperty("gateway_links"),
__metadata("design:type", Object)
], EntityResource.prototype, "gatewayLinks", void 0);
__decorate([
JsonProperty("public_link"),
__metadata("design:type", String)
], EntityResource.prototype, "publicLink", void 0);
__decorate([
JsonProperty("public_collection_link"),
__metadata("design:type", String)
], EntityResource.prototype, "publicCollectionLink", void 0);
__decorate([
JsonProperty("is_enabled"),
__metadata("design:type", Boolean)
], EntityResource.prototype, "isEnabled", void 0);
__decorate([
JsonProperty("modules"),
JsonElementType(String),
__metadata("design:type", Array)
], EntityResource.prototype, "modules", void 0);
__decorate([
JsonProperty("path"),
JsonElementType(EntityPath),
__metadata("design:type", Array)
], EntityResource.prototype, "path", void 0);
__decorate([
JsonProperty("CombinedPublishStatus"),
__metadata("design:type", String)
], EntityResource.prototype, "combinedPublishStatus", void 0);
__decorate([
JsonProperty("CombinedPublishStatusDetails"),
__metadata("design:type", String)
], EntityResource.prototype, "combinedPublishStatusDetails", void 0);
EntityResource = __decorate([
JsonObject(),
__metadata("design:paramtypes", [Object])
], EntityResource);
export { EntityResource };
//# sourceMappingURL=entity-resource.js.map