UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

88 lines 3.68 kB
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 { JsonElementType, JsonObject, JsonProperty } from "ta-json"; let UsageRightsProperty = class UsageRightsProperty { }; __decorate([ JsonProperty("key"), __metadata("design:type", String) ], UsageRightsProperty.prototype, "key", void 0); __decorate([ JsonProperty("rights_profile_property"), __metadata("design:type", String) ], UsageRightsProperty.prototype, "rightsProfileLinkProperty", void 0); __decorate([ JsonProperty("usage_rights_request_property"), __metadata("design:type", String) ], UsageRightsProperty.prototype, "usageRightsRequestProperty", void 0); UsageRightsProperty = __decorate([ JsonObject() ], UsageRightsProperty); export { UsageRightsProperty }; let UsageRightsRelation = class UsageRightsRelation { }; __decorate([ JsonProperty("key"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "key", void 0); __decorate([ JsonProperty("rights_profile_link_relation"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "rightsProfileLinkRelation", void 0); __decorate([ JsonProperty("usage_rights_request_link_relation"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "usageRightsRequestLinkRelation", void 0); __decorate([ JsonProperty("hierarchy_relation"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "hierarchyRelation", void 0); __decorate([ JsonProperty("role"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "role", void 0); UsageRightsRelation = __decorate([ JsonObject() ], UsageRightsRelation); export { UsageRightsRelation }; var UsageRightsMatchStrategy; (function (UsageRightsMatchStrategy) { UsageRightsMatchStrategy["All"] = "All"; UsageRightsMatchStrategy["Any"] = "Any"; UsageRightsMatchStrategy["SubjectBased"] = "SubjectBased"; })(UsageRightsMatchStrategy || (UsageRightsMatchStrategy = {})); let UsageRightsConfiguration = class UsageRightsConfiguration { constructor() { this.matchStrategy = UsageRightsMatchStrategy.Any; } }; __decorate([ JsonProperty("relations"), JsonElementType(UsageRightsRelation), __metadata("design:type", Array) ], UsageRightsConfiguration.prototype, "relations", void 0); __decorate([ JsonProperty("properties"), JsonElementType(UsageRightsProperty), __metadata("design:type", Array) ], UsageRightsConfiguration.prototype, "properties", void 0); __decorate([ JsonProperty("match_strategy"), __metadata("design:type", String) ], UsageRightsConfiguration.prototype, "matchStrategy", void 0); __decorate([ JsonProperty("maximum_complexity"), __metadata("design:type", Number) ], UsageRightsConfiguration.prototype, "maximumComplexity", void 0); UsageRightsConfiguration = __decorate([ JsonObject() ], UsageRightsConfiguration); export { UsageRightsConfiguration }; //# sourceMappingURL=usage-rights-configuration.js.map